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
900 HAVE_FREEBSD_OS_FALSE
904 HAVE_OPENBSD_OS_FALSE
935 BUILD_INCLUDED_LIBINTL
942 INTL_LIBTOOL_SUFFIX_PREFIX
956 TRAY_MONITOR_CPPFLAGS
1043 ac_subst_files='MCOMMON'
1044 ac_precious_vars='build_alias
1062 # Initialize some variables set by options.
1064 ac_init_version=false
1065 # The variables have the same names as the options, with
1066 # dashes changed to underlines.
1067 cache_file=/dev/null
1074 program_transform_name=s,x,x,
1082 # Installation directory options.
1083 # These are left unexpanded so users can "make install exec_prefix=/foo"
1084 # and all the variables that are supposed to be based on exec_prefix
1085 # by default will actually change.
1086 # Use braces instead of parens because sh, perl, etc. also accept them.
1087 # (The list follows the same order as the GNU Coding Standards.)
1088 bindir='${exec_prefix}/bin'
1089 sbindir='${exec_prefix}/sbin'
1090 libexecdir='${exec_prefix}/libexec'
1091 datarootdir='${prefix}/share'
1092 datadir='${datarootdir}'
1093 sysconfdir='${prefix}/etc'
1094 sharedstatedir='${prefix}/com'
1095 localstatedir='${prefix}/var'
1096 includedir='${prefix}/include'
1097 oldincludedir='/usr/include'
1098 docdir='${datarootdir}/doc/${PACKAGE}'
1099 infodir='${datarootdir}/info'
1104 libdir='${exec_prefix}/lib'
1105 localedir='${datarootdir}/locale'
1106 mandir='${datarootdir}/man'
1112 # If the previous option needs an argument, assign it.
1113 if test -n "$ac_prev"; then
1114 eval $ac_prev=\$ac_option
1120 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1124 # Accept the important Cygnus configure options, so we can diagnose typos.
1126 case $ac_dashdash$ac_option in
1130 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1132 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1133 bindir=$ac_optarg ;;
1135 -build | --build | --buil | --bui | --bu)
1136 ac_prev=build_alias ;;
1137 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1138 build_alias=$ac_optarg ;;
1140 -cache-file | --cache-file | --cache-fil | --cache-fi \
1141 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1142 ac_prev=cache_file ;;
1143 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1144 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1145 cache_file=$ac_optarg ;;
1147 --config-cache | -C)
1148 cache_file=config.cache ;;
1150 -datadir | --datadir | --datadi | --datad)
1152 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1153 datadir=$ac_optarg ;;
1155 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1156 | --dataroo | --dataro | --datar)
1157 ac_prev=datarootdir ;;
1158 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1159 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1160 datarootdir=$ac_optarg ;;
1162 -disable-* | --disable-*)
1163 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1164 # Reject names that are not valid shell variable names.
1165 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1166 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1167 { (exit 1); exit 1; }; }
1168 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1169 eval enable_$ac_feature=no ;;
1171 -docdir | --docdir | --docdi | --doc | --do)
1173 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1174 docdir=$ac_optarg ;;
1176 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1178 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1179 dvidir=$ac_optarg ;;
1181 -enable-* | --enable-*)
1182 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1183 # Reject names that are not valid shell variable names.
1184 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1185 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1186 { (exit 1); exit 1; }; }
1187 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1188 eval enable_$ac_feature=\$ac_optarg ;;
1190 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1191 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1192 | --exec | --exe | --ex)
1193 ac_prev=exec_prefix ;;
1194 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1195 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1196 | --exec=* | --exe=* | --ex=*)
1197 exec_prefix=$ac_optarg ;;
1199 -gas | --gas | --ga | --g)
1200 # Obsolete; use --with-gas.
1203 -help | --help | --hel | --he | -h)
1204 ac_init_help=long ;;
1205 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1206 ac_init_help=recursive ;;
1207 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1208 ac_init_help=short ;;
1210 -host | --host | --hos | --ho)
1211 ac_prev=host_alias ;;
1212 -host=* | --host=* | --hos=* | --ho=*)
1213 host_alias=$ac_optarg ;;
1215 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1217 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1219 htmldir=$ac_optarg ;;
1221 -includedir | --includedir | --includedi | --included | --include \
1222 | --includ | --inclu | --incl | --inc)
1223 ac_prev=includedir ;;
1224 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1225 | --includ=* | --inclu=* | --incl=* | --inc=*)
1226 includedir=$ac_optarg ;;
1228 -infodir | --infodir | --infodi | --infod | --info | --inf)
1230 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1231 infodir=$ac_optarg ;;
1233 -libdir | --libdir | --libdi | --libd)
1235 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1236 libdir=$ac_optarg ;;
1238 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1239 | --libexe | --libex | --libe)
1240 ac_prev=libexecdir ;;
1241 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1242 | --libexe=* | --libex=* | --libe=*)
1243 libexecdir=$ac_optarg ;;
1245 -localedir | --localedir | --localedi | --localed | --locale)
1246 ac_prev=localedir ;;
1247 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1248 localedir=$ac_optarg ;;
1250 -localstatedir | --localstatedir | --localstatedi | --localstated \
1251 | --localstate | --localstat | --localsta | --localst | --locals)
1252 ac_prev=localstatedir ;;
1253 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1254 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1255 localstatedir=$ac_optarg ;;
1257 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1259 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1260 mandir=$ac_optarg ;;
1262 -nfp | --nfp | --nf)
1263 # Obsolete; use --without-fp.
1266 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1267 | --no-cr | --no-c | -n)
1270 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1271 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1274 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1275 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1276 | --oldin | --oldi | --old | --ol | --o)
1277 ac_prev=oldincludedir ;;
1278 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1279 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1280 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1281 oldincludedir=$ac_optarg ;;
1283 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1285 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1286 prefix=$ac_optarg ;;
1288 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1289 | --program-pre | --program-pr | --program-p)
1290 ac_prev=program_prefix ;;
1291 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1292 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1293 program_prefix=$ac_optarg ;;
1295 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1296 | --program-suf | --program-su | --program-s)
1297 ac_prev=program_suffix ;;
1298 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1299 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1300 program_suffix=$ac_optarg ;;
1302 -program-transform-name | --program-transform-name \
1303 | --program-transform-nam | --program-transform-na \
1304 | --program-transform-n | --program-transform- \
1305 | --program-transform | --program-transfor \
1306 | --program-transfo | --program-transf \
1307 | --program-trans | --program-tran \
1308 | --progr-tra | --program-tr | --program-t)
1309 ac_prev=program_transform_name ;;
1310 -program-transform-name=* | --program-transform-name=* \
1311 | --program-transform-nam=* | --program-transform-na=* \
1312 | --program-transform-n=* | --program-transform-=* \
1313 | --program-transform=* | --program-transfor=* \
1314 | --program-transfo=* | --program-transf=* \
1315 | --program-trans=* | --program-tran=* \
1316 | --progr-tra=* | --program-tr=* | --program-t=*)
1317 program_transform_name=$ac_optarg ;;
1319 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1321 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1322 pdfdir=$ac_optarg ;;
1324 -psdir | --psdir | --psdi | --psd | --ps)
1326 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1329 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1330 | -silent | --silent | --silen | --sile | --sil)
1333 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1335 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1337 sbindir=$ac_optarg ;;
1339 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1340 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1341 | --sharedst | --shareds | --shared | --share | --shar \
1343 ac_prev=sharedstatedir ;;
1344 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1345 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1346 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1348 sharedstatedir=$ac_optarg ;;
1350 -site | --site | --sit)
1352 -site=* | --site=* | --sit=*)
1355 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1357 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1358 srcdir=$ac_optarg ;;
1360 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1361 | --syscon | --sysco | --sysc | --sys | --sy)
1362 ac_prev=sysconfdir ;;
1363 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1364 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1365 sysconfdir=$ac_optarg ;;
1367 -target | --target | --targe | --targ | --tar | --ta | --t)
1368 ac_prev=target_alias ;;
1369 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1370 target_alias=$ac_optarg ;;
1372 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1375 -version | --version | --versio | --versi | --vers | -V)
1376 ac_init_version=: ;;
1379 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1380 # Reject names that are not valid shell variable names.
1381 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1382 { echo "$as_me: error: invalid package name: $ac_package" >&2
1383 { (exit 1); exit 1; }; }
1384 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1385 eval with_$ac_package=\$ac_optarg ;;
1387 -without-* | --without-*)
1388 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1389 # Reject names that are not valid shell variable names.
1390 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1391 { echo "$as_me: error: invalid package name: $ac_package" >&2
1392 { (exit 1); exit 1; }; }
1393 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1394 eval with_$ac_package=no ;;
1397 # Obsolete; use --with-x.
1400 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1401 | --x-incl | --x-inc | --x-in | --x-i)
1402 ac_prev=x_includes ;;
1403 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1404 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1405 x_includes=$ac_optarg ;;
1407 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1408 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1409 ac_prev=x_libraries ;;
1410 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1411 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1412 x_libraries=$ac_optarg ;;
1414 -*) { echo "$as_me: error: unrecognized option: $ac_option
1415 Try \`$0 --help' for more information." >&2
1416 { (exit 1); exit 1; }; }
1420 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1421 # Reject names that are not valid shell variable names.
1422 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1423 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1424 { (exit 1); exit 1; }; }
1425 eval $ac_envvar=\$ac_optarg
1426 export $ac_envvar ;;
1429 # FIXME: should be removed in autoconf 3.0.
1430 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1431 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1432 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1433 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1439 if test -n "$ac_prev"; then
1440 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1441 { echo "$as_me: error: missing argument to $ac_option" >&2
1442 { (exit 1); exit 1; }; }
1445 # Be sure to have absolute directory names.
1446 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1447 datadir sysconfdir sharedstatedir localstatedir includedir \
1448 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1449 libdir localedir mandir
1451 eval ac_val=\$$ac_var
1453 [\\/$]* | ?:[\\/]* ) continue;;
1454 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1456 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1457 { (exit 1); exit 1; }; }
1460 # There might be people who depend on the old broken behavior: `$host'
1461 # used to hold the argument of --host etc.
1462 # FIXME: To remove some day.
1465 target=$target_alias
1467 # FIXME: To remove some day.
1468 if test "x$host_alias" != x; then
1469 if test "x$build_alias" = x; then
1470 cross_compiling=maybe
1471 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1472 If a cross compiler is detected then cross compile mode will be used." >&2
1473 elif test "x$build_alias" != "x$host_alias"; then
1479 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1481 test "$silent" = yes && exec 6>/dev/null
1484 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1485 ac_ls_di=`ls -di .` &&
1486 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1487 { echo "$as_me: error: Working directory cannot be determined" >&2
1488 { (exit 1); exit 1; }; }
1489 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1490 { echo "$as_me: error: pwd does not report name of working directory" >&2
1491 { (exit 1); exit 1; }; }
1494 # Find the source files, if location was not specified.
1495 if test -z "$srcdir"; then
1496 ac_srcdir_defaulted=yes
1497 # Try the directory containing this script, then the parent directory.
1498 ac_confdir=`$as_dirname -- "$0" ||
1499 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1500 X"$0" : 'X\(//\)[^/]' \| \
1501 X"$0" : 'X\(//\)$' \| \
1502 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1504 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1522 if test ! -r "$srcdir/$ac_unique_file"; then
1526 ac_srcdir_defaulted=no
1528 if test ! -r "$srcdir/$ac_unique_file"; then
1529 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1530 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1531 { (exit 1); exit 1; }; }
1533 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1535 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1536 { (exit 1); exit 1; }; }
1538 # When building in place, set srcdir=.
1539 if test "$ac_abs_confdir" = "$ac_pwd"; then
1542 # Remove unnecessary trailing slashes from srcdir.
1543 # Double slashes in file names in object file debugging info
1544 # mess up M-x gdb in Emacs.
1546 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1548 for ac_var in $ac_precious_vars; do
1549 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1550 eval ac_env_${ac_var}_value=\$${ac_var}
1551 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1552 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1556 # Report the --help message.
1558 if test "$ac_init_help" = "long"; then
1559 # Omit some internal or obsolete options to make the list less imposing.
1560 # This message is too long to be a string in the A/UX 3.1 sh.
1562 \`configure' configures this package to adapt to many kinds of systems.
1564 Usage: $0 [OPTION]... [VAR=VALUE]...
1566 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1567 VAR=VALUE. See below for descriptions of some of the useful variables.
1569 Defaults for the options are specified in brackets.
1572 -h, --help display this help and exit
1573 --help=short display options specific to this package
1574 --help=recursive display the short help of all the included packages
1575 -V, --version display version information and exit
1576 -q, --quiet, --silent do not print \`checking...' messages
1577 --cache-file=FILE cache test results in FILE [disabled]
1578 -C, --config-cache alias for \`--cache-file=config.cache'
1579 -n, --no-create do not create output files
1580 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1582 Installation directories:
1583 --prefix=PREFIX install architecture-independent files in PREFIX
1584 [$ac_default_prefix]
1585 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1588 By default, \`make install' will install all the files in
1589 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1590 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1591 for instance \`--prefix=\$HOME'.
1593 For better control, use the options below.
1595 Fine tuning of the installation directories:
1596 --bindir=DIR user executables [EPREFIX/bin]
1597 --sbindir=DIR system admin executables [EPREFIX/sbin]
1598 --libexecdir=DIR program executables [EPREFIX/libexec]
1599 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1600 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1601 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1602 --libdir=DIR object code libraries [EPREFIX/lib]
1603 --includedir=DIR C header files [PREFIX/include]
1604 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1605 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1606 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1607 --infodir=DIR info documentation [DATAROOTDIR/info]
1608 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1609 --mandir=DIR man documentation [DATAROOTDIR/man]
1610 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1611 --htmldir=DIR html documentation [DOCDIR]
1612 --dvidir=DIR dvi documentation [DOCDIR]
1613 --pdfdir=DIR pdf documentation [DOCDIR]
1614 --psdir=DIR ps documentation [DOCDIR]
1620 --x-includes=DIR X include files are in DIR
1621 --x-libraries=DIR X library files are in DIR
1624 --build=BUILD configure for building on BUILD [guessed]
1625 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1629 if test -n "$ac_init_help"; then
1634 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1635 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1636 --enable-shared[=PKGS] build shared libraries [default=yes]
1637 --enable-static[=PKGS] build static libraries [default=no]
1638 --enable-fast-install[=PKGS]
1639 optimize for fast installation [default=yes]
1640 --disable-libtool-lock avoid locking (might break parallel builds)
1641 --enable-libtool enable building using GNU libtool [default=yes]
1642 --disable-nls do not use Native Language Support
1643 --disable-rpath do not hardcode runtime library paths
1644 --enable-gnome enable build of bgnome-console GUI [default=no]
1645 --enable-bat enable build of bat Qt4 GUI [default=no]
1646 --enable-bwx-console enable build of wxWidgets console [default=no]
1647 --enable-tray-monitor enable build of Gnome tray monitor (compatible with
1649 --enable-smartalloc enable smartalloc debugging support [default=no]
1650 --enable-static-tools enable static tape tools [default=no]
1651 --enable-static-fd enable static File daemon [default=no]
1652 --enable-static-sd enable static Storage daemon [default=no]
1653 --enable-static-dir enable static Director [default=no]
1654 --enable-static-cons enable static Console [default=no]
1655 --enable-client-only build client (File daemon) only [default=no]
1656 --enable-build-dird enable building of dird (Director) [default=yes]
1657 --enable-build-stored enable building of stored (Storage daemon)
1659 --disable-conio disable conio support [default=no]
1660 --enable-ipv6 enable ipv6 support [default=yes]
1661 --disable-readline disable readline support [default=yes]
1662 --enable-batch-insert enable the DB batch insert code [default=no]
1663 --disable-largefile omit support for large files
1666 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1667 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1668 --with-pic try to use only PIC/non-PIC objects [default=use
1670 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1671 --with-gnu-ld assume the C compiler uses GNU ld default=no
1672 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1673 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1674 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1675 --without-libintl-prefix don't search for libintl in includedir and libdir
1676 --with-included-gettext use the GNU gettext library included here
1677 --with-qwt[=DIR] specify qwt library directory
1678 --with-readline[=DIR] specify readline library directory
1679 --with-python[=DIR] Include Python support. DIR is the Python base
1680 install directory, default is to search through a
1681 number of common places for the Python files.
1682 --with-tcp-wrappers[=DIR]
1683 enable tcpwrappers support
1684 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1685 --with-working-dir=PATH specify path of Bacula working directory
1686 --with-archivedir=PATH specify path of SD archive directory
1687 --with-scriptdir=PATH specify path of Bacula scripts directory
1688 --with-plugindir=PATH specify path of Bacula plugins directory
1689 --with-dump-email=EMAIL dump email address
1690 --with-job-email=EMAIL job output email address
1691 --with-smtp-host=HOST SMTP mail host address
1692 --with-pid-dir=PATH specify location of Bacula pid files
1693 --with-subsys-dir=PATH specify location of Bacula subsys file
1694 --with-baseport=PORT specify base port address for daemons
1695 --with-dir-password=PASSWORD
1696 specify Director's password
1697 --with-fd-password=PASSWORD
1698 specify Client's password
1699 --with-sd-password=PASSWORD
1700 specify Storage daemon's password
1701 --with-mon-dir-password=PASSWORD
1702 specify Director's password used by the monitor
1703 --with-mon-fd-password=PASSWORD
1704 specify Client's password used by the monitor
1705 --with-mon-sd-password=PASSWORD
1706 specify Storage daemon's password used by the
1708 --with-db-name=DBNAME specify database name [default=bacula]
1709 --with-db-user=UNAME specify database user [default=bacula]
1710 --with-db-password=PWD specify database password [default=*none*]
1711 --with-db-port=DBPORT specify a database port [default=null]
1712 --with-dir-user=USER specify user for Director daemon
1713 --with-dir-group=GROUP specify group for Director daemon
1714 --with-sd-user=USER specify user for Storage daemon
1715 --with-sd-group=GROUP specify group for Storage daemon
1716 --with-fd-user=USER specify user for File daemon
1717 --with-fd-group=GROUP specify group for File daemon
1718 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0754]
1719 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1720 base install directory, [default=/usr/local/pgsql]
1721 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base install
1722 directory, default is to search through a number of
1723 common places for the MySQL files.
1724 --with-embedded-mysql[=DIR]
1725 Include MySQL support. DIR is the MySQL base install
1726 directory, default is to search through a number of
1727 common places for the MySQL files.
1728 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1729 install directory, default is to search through a
1730 number of common places for the SQLite3 files.
1731 --with-sqlite[=DIR] Include SQLite support. DIR is the SQLite base
1732 install directory, default is to search through a
1733 number of common places for the SQLite files.
1734 --with-dbi[=DIR] Include DBI support. DIR is the DBD base install
1735 directory, default is to search through a number of
1736 common places for the DBI files.
1737 --with-dbi-driver[=DRIVER]
1738 Suport for DBI driver. DRIVER is the one DBI driver
1739 like Mysql, Postgresql, others. Default is to not
1740 configure any driver.
1741 --with-x use the X Window System
1743 Some influential environment variables:
1744 CC C compiler command
1745 CFLAGS C compiler flags
1746 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1747 nonstandard directory <lib dir>
1748 LIBS libraries to pass to the linker, e.g. -l<library>
1749 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1750 you have headers in a nonstandard directory <include dir>
1751 CXX C++ compiler command
1752 CXXFLAGS C++ compiler flags
1754 WXCONFIG wx-config command. On some systems, you must set it to
1755 wx-config-2.6 to use wxWidgets 2.6.
1756 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1757 CXXCPP C++ preprocessor
1758 XMKMF Path to xmkmf, Makefile generator for X Window System
1760 Use these variables to override the choices made by `configure' or to help
1761 it to find libraries and programs with nonstandard names/locations.
1767 if test "$ac_init_help" = "recursive"; then
1768 # If there are subdirs, report their specific --help.
1769 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1770 test -d "$ac_dir" || continue
1774 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1776 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1777 # A ".." for each directory in $ac_dir_suffix.
1778 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1779 case $ac_top_builddir_sub in
1780 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1781 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1784 ac_abs_top_builddir=$ac_pwd
1785 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1786 # for backward compatibility:
1787 ac_top_builddir=$ac_top_build_prefix
1790 .) # We are building in place.
1792 ac_top_srcdir=$ac_top_builddir_sub
1793 ac_abs_top_srcdir=$ac_pwd ;;
1794 [\\/]* | ?:[\\/]* ) # Absolute name.
1795 ac_srcdir=$srcdir$ac_dir_suffix;
1796 ac_top_srcdir=$srcdir
1797 ac_abs_top_srcdir=$srcdir ;;
1799 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1800 ac_top_srcdir=$ac_top_build_prefix$srcdir
1801 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1803 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1805 cd "$ac_dir" || { ac_status=$?; continue; }
1806 # Check for guested configure.
1807 if test -f "$ac_srcdir/configure.gnu"; then
1809 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1810 elif test -f "$ac_srcdir/configure"; then
1812 $SHELL "$ac_srcdir/configure" --help=recursive
1814 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1816 cd "$ac_pwd" || { ac_status=$?; break; }
1820 test -n "$ac_init_help" && exit $ac_status
1821 if $ac_init_version; then
1824 generated by GNU Autoconf 2.61
1826 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1827 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1828 This configure script is free software; the Free Software Foundation
1829 gives unlimited permission to copy, distribute and modify it.
1833 cat >config.log <<_ACEOF
1834 This file contains any messages produced by compilers while
1835 running configure, to aid debugging if configure makes a mistake.
1837 It was created by $as_me, which was
1838 generated by GNU Autoconf 2.61. Invocation command line was
1850 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1851 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1852 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1853 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1854 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1856 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1857 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1859 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1860 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1861 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1862 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1863 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1864 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1865 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1873 test -z "$as_dir" && as_dir=.
1874 echo "PATH: $as_dir"
1890 # Keep a trace of the command line.
1891 # Strip out --no-create and --no-recursion so they do not pile up.
1892 # Strip out --silent because we don't want to record it for future runs.
1893 # Also quote any args containing shell meta-characters.
1894 # Make two passes to allow for proper duplicate-argument suppression.
1898 ac_must_keep_next=false
1904 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1905 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1906 | -silent | --silent | --silen | --sile | --sil)
1909 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1912 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1914 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1915 if test $ac_must_keep_next = true; then
1916 ac_must_keep_next=false # Got value, back to normal.
1919 *=* | --config-cache | -C | -disable-* | --disable-* \
1920 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1921 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1922 | -with-* | --with-* | -without-* | --without-* | --x)
1923 case "$ac_configure_args0 " in
1924 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1927 -* ) ac_must_keep_next=true ;;
1930 ac_configure_args="$ac_configure_args '$ac_arg'"
1935 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1936 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1938 # When interrupted or exit'd, cleanup temporary files, and complete
1939 # config.log. We remove comments because anyway the quotes in there
1940 # would cause problems or look ugly.
1941 # WARNING: Use '\'' to represent an apostrophe within the trap.
1942 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1943 trap 'exit_status=$?
1944 # Save into config.log some information that might help in debugging.
1949 ## ---------------- ##
1950 ## Cache variables. ##
1951 ## ---------------- ##
1954 # The following way of writing the cache mishandles newlines in values,
1956 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1957 eval ac_val=\$$ac_var
1961 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1962 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1965 _ | IFS | as_nl) ;; #(
1966 *) $as_unset $ac_var ;;
1971 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1972 *${as_nl}ac_space=\ *)
1974 "s/'\''/'\''\\\\'\'''\''/g;
1975 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1978 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1986 ## ----------------- ##
1987 ## Output variables. ##
1988 ## ----------------- ##
1991 for ac_var in $ac_subst_vars
1993 eval ac_val=\$$ac_var
1995 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1997 echo "$ac_var='\''$ac_val'\''"
2001 if test -n "$ac_subst_files"; then
2003 ## ------------------- ##
2004 ## File substitutions. ##
2005 ## ------------------- ##
2008 for ac_var in $ac_subst_files
2010 eval ac_val=\$$ac_var
2012 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2014 echo "$ac_var='\''$ac_val'\''"
2019 if test -s confdefs.h; then
2029 test "$ac_signal" != 0 &&
2030 echo "$as_me: caught signal $ac_signal"
2031 echo "$as_me: exit $exit_status"
2033 rm -f core *.core core.conftest.* &&
2034 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2037 for ac_signal in 1 2 13 15; do
2038 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2042 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2043 rm -f -r conftest* confdefs.h
2045 # Predefined preprocessor variables.
2047 cat >>confdefs.h <<_ACEOF
2048 #define PACKAGE_NAME "$PACKAGE_NAME"
2052 cat >>confdefs.h <<_ACEOF
2053 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2057 cat >>confdefs.h <<_ACEOF
2058 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2062 cat >>confdefs.h <<_ACEOF
2063 #define PACKAGE_STRING "$PACKAGE_STRING"
2067 cat >>confdefs.h <<_ACEOF
2068 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2072 # Let the site file select an alternate cache file if it wants to.
2073 # Prefer explicitly selected file to automatically selected ones.
2074 if test -n "$CONFIG_SITE"; then
2075 set x "$CONFIG_SITE"
2076 elif test "x$prefix" != xNONE; then
2077 set x "$prefix/share/config.site" "$prefix/etc/config.site"
2079 set x "$ac_default_prefix/share/config.site" \
2080 "$ac_default_prefix/etc/config.site"
2085 if test -r "$ac_site_file"; then
2086 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2087 echo "$as_me: loading site script $ac_site_file" >&6;}
2088 sed 's/^/| /' "$ac_site_file" >&5
2093 if test -r "$cache_file"; then
2094 # Some versions of bash will fail to source /dev/null (special
2095 # files actually), so we avoid doing that.
2096 if test -f "$cache_file"; then
2097 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2098 echo "$as_me: loading cache $cache_file" >&6;}
2100 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2101 *) . "./$cache_file";;
2105 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2106 echo "$as_me: creating cache $cache_file" >&6;}
2110 # Check that the precious variables saved in the cache have kept the same
2112 ac_cache_corrupted=false
2113 for ac_var in $ac_precious_vars; do
2114 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2115 eval ac_new_set=\$ac_env_${ac_var}_set
2116 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2117 eval ac_new_val=\$ac_env_${ac_var}_value
2118 case $ac_old_set,$ac_new_set in
2120 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2121 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2122 ac_cache_corrupted=: ;;
2124 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2125 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2126 ac_cache_corrupted=: ;;
2129 if test "x$ac_old_val" != "x$ac_new_val"; then
2130 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2131 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2132 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2133 echo "$as_me: former value: $ac_old_val" >&2;}
2134 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2135 echo "$as_me: current value: $ac_new_val" >&2;}
2136 ac_cache_corrupted=:
2139 # Pass precious variables to config.status.
2140 if test "$ac_new_set" = set; then
2142 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2143 *) ac_arg=$ac_var=$ac_new_val ;;
2145 case " $ac_configure_args " in
2146 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2147 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2151 if $ac_cache_corrupted; then
2152 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2153 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2154 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2155 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2156 { (exit 1); exit 1; }; }
2176 ac_cpp='$CPP $CPPFLAGS'
2177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2189 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2190 if test -f "$ac_dir/install-sh"; then
2192 ac_install_sh="$ac_aux_dir/install-sh -c"
2194 elif test -f "$ac_dir/install.sh"; then
2196 ac_install_sh="$ac_aux_dir/install.sh -c"
2198 elif test -f "$ac_dir/shtool"; then
2200 ac_install_sh="$ac_aux_dir/shtool install -c"
2204 if test -z "$ac_aux_dir"; then
2205 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2206 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2207 { (exit 1); exit 1; }; }
2210 # These three variables are undocumented and unsupported,
2211 # and are intended to be withdrawn in a future Autoconf release.
2212 # They can cause serious problems if a builder's source tree is in a directory
2213 # whose full name contains unusual characters.
2214 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2215 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2216 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2219 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2227 # Extract the first word of "$ac_prog", so it can be a program name with args.
2228 set dummy $ac_prog; ac_word=$2
2229 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2231 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2232 echo $ECHO_N "(cached) $ECHO_C" >&6
2236 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2243 test -z "$as_dir" && as_dir=.
2244 for ac_exec_ext in '' $ac_executable_extensions; do
2245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2246 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2257 TRUEPRG=$ac_cv_path_TRUEPRG
2258 if test -n "$TRUEPRG"; then
2259 { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2260 echo "${ECHO_T}$TRUEPRG" >&6; }
2262 { echo "$as_me:$LINENO: result: no" >&5
2263 echo "${ECHO_T}no" >&6; }
2267 test -n "$TRUEPRG" && break
2269 test -n "$TRUEPRG" || TRUEPRG=":"
2271 for ac_prog in false
2273 # Extract the first word of "$ac_prog", so it can be a program name with args.
2274 set dummy $ac_prog; ac_word=$2
2275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2277 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2278 echo $ECHO_N "(cached) $ECHO_C" >&6
2282 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289 test -z "$as_dir" && as_dir=.
2290 for ac_exec_ext in '' $ac_executable_extensions; do
2291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2292 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2303 FALSEPRG=$ac_cv_path_FALSEPRG
2304 if test -n "$FALSEPRG"; then
2305 { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2306 echo "${ECHO_T}$FALSEPRG" >&6; }
2308 { echo "$as_me:$LINENO: result: no" >&5
2309 echo "${ECHO_T}no" >&6; }
2313 test -n "$FALSEPRG" && break
2315 test -n "$FALSEPRG" || FALSEPRG=":"
2320 if test "x$BACULA" != x; then
2321 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2323 BACULA=${BACULA-Bacula}
2324 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2325 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2326 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2327 echo "configuring for ${BACULA} $VERSION ($DATE)"
2331 ac_cpp='$CPP $CPPFLAGS'
2332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2335 if test -n "$ac_tool_prefix"; then
2336 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2337 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2338 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2340 if test "${ac_cv_prog_CC+set}" = set; then
2341 echo $ECHO_N "(cached) $ECHO_C" >&6
2343 if test -n "$CC"; then
2344 ac_cv_prog_CC="$CC" # Let the user override the test.
2346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2350 test -z "$as_dir" && as_dir=.
2351 for ac_exec_ext in '' $ac_executable_extensions; do
2352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2353 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2364 if test -n "$CC"; then
2365 { echo "$as_me:$LINENO: result: $CC" >&5
2366 echo "${ECHO_T}$CC" >&6; }
2368 { echo "$as_me:$LINENO: result: no" >&5
2369 echo "${ECHO_T}no" >&6; }
2374 if test -z "$ac_cv_prog_CC"; then
2376 # Extract the first word of "gcc", so it can be a program name with args.
2377 set dummy gcc; ac_word=$2
2378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2380 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2381 echo $ECHO_N "(cached) $ECHO_C" >&6
2383 if test -n "$ac_ct_CC"; then
2384 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2390 test -z "$as_dir" && as_dir=.
2391 for ac_exec_ext in '' $ac_executable_extensions; do
2392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2393 ac_cv_prog_ac_ct_CC="gcc"
2394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2403 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2404 if test -n "$ac_ct_CC"; then
2405 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2406 echo "${ECHO_T}$ac_ct_CC" >&6; }
2408 { echo "$as_me:$LINENO: result: no" >&5
2409 echo "${ECHO_T}no" >&6; }
2412 if test "x$ac_ct_CC" = x; then
2415 case $cross_compiling:$ac_tool_warned in
2417 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2418 whose name does not start with the host triplet. If you think this
2419 configuration is useful to you, please write to autoconf@gnu.org." >&5
2420 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2421 whose name does not start with the host triplet. If you think this
2422 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2423 ac_tool_warned=yes ;;
2431 if test -z "$CC"; then
2432 if test -n "$ac_tool_prefix"; then
2433 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2434 set dummy ${ac_tool_prefix}cc; ac_word=$2
2435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2437 if test "${ac_cv_prog_CC+set}" = set; then
2438 echo $ECHO_N "(cached) $ECHO_C" >&6
2440 if test -n "$CC"; then
2441 ac_cv_prog_CC="$CC" # Let the user override the test.
2443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2447 test -z "$as_dir" && as_dir=.
2448 for ac_exec_ext in '' $ac_executable_extensions; do
2449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2450 ac_cv_prog_CC="${ac_tool_prefix}cc"
2451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2461 if test -n "$CC"; then
2462 { echo "$as_me:$LINENO: result: $CC" >&5
2463 echo "${ECHO_T}$CC" >&6; }
2465 { echo "$as_me:$LINENO: result: no" >&5
2466 echo "${ECHO_T}no" >&6; }
2472 if test -z "$CC"; then
2473 # Extract the first word of "cc", so it can be a program name with args.
2474 set dummy cc; ac_word=$2
2475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2477 if test "${ac_cv_prog_CC+set}" = set; then
2478 echo $ECHO_N "(cached) $ECHO_C" >&6
2480 if test -n "$CC"; then
2481 ac_cv_prog_CC="$CC" # Let the user override the test.
2484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488 test -z "$as_dir" && as_dir=.
2489 for ac_exec_ext in '' $ac_executable_extensions; do
2490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2491 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2492 ac_prog_rejected=yes
2496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2503 if test $ac_prog_rejected = yes; then
2504 # We found a bogon in the path, so make sure we never use it.
2505 set dummy $ac_cv_prog_CC
2507 if test $# != 0; then
2508 # We chose a different compiler from the bogus one.
2509 # However, it has the same basename, so the bogon will be chosen
2510 # first if we set CC to just the basename; use the full file name.
2512 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2518 if test -n "$CC"; then
2519 { echo "$as_me:$LINENO: result: $CC" >&5
2520 echo "${ECHO_T}$CC" >&6; }
2522 { echo "$as_me:$LINENO: result: no" >&5
2523 echo "${ECHO_T}no" >&6; }
2528 if test -z "$CC"; then
2529 if test -n "$ac_tool_prefix"; then
2530 for ac_prog in cl.exe
2532 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2533 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2536 if test "${ac_cv_prog_CC+set}" = set; then
2537 echo $ECHO_N "(cached) $ECHO_C" >&6
2539 if test -n "$CC"; then
2540 ac_cv_prog_CC="$CC" # Let the user override the test.
2542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546 test -z "$as_dir" && as_dir=.
2547 for ac_exec_ext in '' $ac_executable_extensions; do
2548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2549 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2560 if test -n "$CC"; then
2561 { echo "$as_me:$LINENO: result: $CC" >&5
2562 echo "${ECHO_T}$CC" >&6; }
2564 { echo "$as_me:$LINENO: result: no" >&5
2565 echo "${ECHO_T}no" >&6; }
2569 test -n "$CC" && break
2572 if test -z "$CC"; then
2574 for ac_prog in cl.exe
2576 # Extract the first word of "$ac_prog", so it can be a program name with args.
2577 set dummy $ac_prog; ac_word=$2
2578 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2580 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2581 echo $ECHO_N "(cached) $ECHO_C" >&6
2583 if test -n "$ac_ct_CC"; then
2584 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590 test -z "$as_dir" && as_dir=.
2591 for ac_exec_ext in '' $ac_executable_extensions; do
2592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2593 ac_cv_prog_ac_ct_CC="$ac_prog"
2594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2603 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2604 if test -n "$ac_ct_CC"; then
2605 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2606 echo "${ECHO_T}$ac_ct_CC" >&6; }
2608 { echo "$as_me:$LINENO: result: no" >&5
2609 echo "${ECHO_T}no" >&6; }
2613 test -n "$ac_ct_CC" && break
2616 if test "x$ac_ct_CC" = x; then
2619 case $cross_compiling:$ac_tool_warned in
2621 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2622 whose name does not start with the host triplet. If you think this
2623 configuration is useful to you, please write to autoconf@gnu.org." >&5
2624 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2625 whose name does not start with the host triplet. If you think this
2626 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2627 ac_tool_warned=yes ;;
2636 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2637 See \`config.log' for more details." >&5
2638 echo "$as_me: error: no acceptable C compiler found in \$PATH
2639 See \`config.log' for more details." >&2;}
2640 { (exit 1); exit 1; }; }
2642 # Provide some information about the compiler.
2643 echo "$as_me:$LINENO: checking for C compiler version" >&5
2644 ac_compiler=`set X $ac_compile; echo $2`
2645 { (ac_try="$ac_compiler --version >&5"
2647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2648 *) ac_try_echo=$ac_try;;
2650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2651 (eval "$ac_compiler --version >&5") 2>&5
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); }
2655 { (ac_try="$ac_compiler -v >&5"
2657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2658 *) ac_try_echo=$ac_try;;
2660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2661 (eval "$ac_compiler -v >&5") 2>&5
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); }
2665 { (ac_try="$ac_compiler -V >&5"
2667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2668 *) ac_try_echo=$ac_try;;
2670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2671 (eval "$ac_compiler -V >&5") 2>&5
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); }
2676 cat >conftest.$ac_ext <<_ACEOF
2679 cat confdefs.h >>conftest.$ac_ext
2680 cat >>conftest.$ac_ext <<_ACEOF
2681 /* end confdefs.h. */
2691 ac_clean_files_save=$ac_clean_files
2692 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2693 # Try to create an executable without -o first, disregard a.out.
2694 # It will help us diagnose broken compilers, and finding out an intuition
2696 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2697 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2698 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2700 # List of possible output files, starting from the most likely.
2701 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2702 # only as a last resort. b.out is created by i960 compilers.
2703 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2705 # The IRIX 6 linker writes into existing files which may not be
2706 # executable, retaining their permissions. Remove them first so a
2707 # subsequent execution test works.
2709 for ac_file in $ac_files
2712 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2713 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2718 if { (ac_try="$ac_link_default"
2720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721 *) ac_try_echo=$ac_try;;
2723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2724 (eval "$ac_link_default") 2>&5
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }; then
2728 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2729 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2730 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2731 # so that the user can short-circuit this test for compilers unknown to
2733 for ac_file in $ac_files ''
2735 test -f "$ac_file" || continue
2737 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2740 # We found the default executable, but exeext='' is most
2744 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2746 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2748 # We set ac_cv_exeext here because the later test for it is not
2749 # safe: cross compilers may not add the suffix if given an `-o'
2750 # argument, so we may need to know it at that point already.
2751 # Even if this section looks crufty: it has the advantage of
2758 test "$ac_cv_exeext" = no && ac_cv_exeext=
2764 { echo "$as_me:$LINENO: result: $ac_file" >&5
2765 echo "${ECHO_T}$ac_file" >&6; }
2766 if test -z "$ac_file"; then
2767 echo "$as_me: failed program was:" >&5
2768 sed 's/^/| /' conftest.$ac_ext >&5
2770 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2771 See \`config.log' for more details." >&5
2772 echo "$as_me: error: C compiler cannot create executables
2773 See \`config.log' for more details." >&2;}
2774 { (exit 77); exit 77; }; }
2777 ac_exeext=$ac_cv_exeext
2779 # Check that the compiler produces executables we can run. If not, either
2780 # the compiler is broken, or we cross compile.
2781 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2782 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2783 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2784 # If not cross compiling, check that we can run a simple program.
2785 if test "$cross_compiling" != yes; then
2786 if { ac_try='./$ac_file'
2787 { (case "(($ac_try" in
2788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2789 *) ac_try_echo=$ac_try;;
2791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2792 (eval "$ac_try") 2>&5
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); }; }; then
2798 if test "$cross_compiling" = maybe; then
2801 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2802 If you meant to cross compile, use \`--host'.
2803 See \`config.log' for more details." >&5
2804 echo "$as_me: error: cannot run C compiled programs.
2805 If you meant to cross compile, use \`--host'.
2806 See \`config.log' for more details." >&2;}
2807 { (exit 1); exit 1; }; }
2811 { echo "$as_me:$LINENO: result: yes" >&5
2812 echo "${ECHO_T}yes" >&6; }
2814 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2815 ac_clean_files=$ac_clean_files_save
2816 # Check that the compiler produces executables we can run. If not, either
2817 # the compiler is broken, or we cross compile.
2818 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2819 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2820 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2821 echo "${ECHO_T}$cross_compiling" >&6; }
2823 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2824 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2825 if { (ac_try="$ac_link"
2827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2828 *) ac_try_echo=$ac_try;;
2830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2831 (eval "$ac_link") 2>&5
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); }; then
2835 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2836 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2837 # work properly (i.e., refer to `conftest.exe'), while it won't with
2839 for ac_file in conftest.exe conftest conftest.*; do
2840 test -f "$ac_file" || continue
2842 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2843 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2849 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2850 See \`config.log' for more details." >&5
2851 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2852 See \`config.log' for more details." >&2;}
2853 { (exit 1); exit 1; }; }
2856 rm -f conftest$ac_cv_exeext
2857 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2858 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2860 rm -f conftest.$ac_ext
2861 EXEEXT=$ac_cv_exeext
2863 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2864 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2865 if test "${ac_cv_objext+set}" = set; then
2866 echo $ECHO_N "(cached) $ECHO_C" >&6
2868 cat >conftest.$ac_ext <<_ACEOF
2871 cat confdefs.h >>conftest.$ac_ext
2872 cat >>conftest.$ac_ext <<_ACEOF
2873 /* end confdefs.h. */
2883 rm -f conftest.o conftest.obj
2884 if { (ac_try="$ac_compile"
2886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887 *) ac_try_echo=$ac_try;;
2889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2890 (eval "$ac_compile") 2>&5
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }; then
2894 for ac_file in conftest.o conftest.obj conftest.*; do
2895 test -f "$ac_file" || continue;
2897 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2898 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2903 echo "$as_me: failed program was:" >&5
2904 sed 's/^/| /' conftest.$ac_ext >&5
2906 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2907 See \`config.log' for more details." >&5
2908 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2909 See \`config.log' for more details." >&2;}
2910 { (exit 1); exit 1; }; }
2913 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2915 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2916 echo "${ECHO_T}$ac_cv_objext" >&6; }
2917 OBJEXT=$ac_cv_objext
2919 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2920 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2921 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2922 echo $ECHO_N "(cached) $ECHO_C" >&6
2924 cat >conftest.$ac_ext <<_ACEOF
2927 cat confdefs.h >>conftest.$ac_ext
2928 cat >>conftest.$ac_ext <<_ACEOF
2929 /* end confdefs.h. */
2942 rm -f conftest.$ac_objext
2943 if { (ac_try="$ac_compile"
2945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2946 *) ac_try_echo=$ac_try;;
2948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2949 (eval "$ac_compile") 2>conftest.er1
2951 grep -v '^ *+' conftest.er1 >conftest.err
2953 cat conftest.err >&5
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); } && {
2956 test -z "$ac_c_werror_flag" ||
2957 test ! -s conftest.err
2958 } && test -s conftest.$ac_objext; then
2961 echo "$as_me: failed program was:" >&5
2962 sed 's/^/| /' conftest.$ac_ext >&5
2967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2968 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2971 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2972 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2973 GCC=`test $ac_compiler_gnu = yes && echo yes`
2974 ac_test_CFLAGS=${CFLAGS+set}
2975 ac_save_CFLAGS=$CFLAGS
2976 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2977 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2978 if test "${ac_cv_prog_cc_g+set}" = set; then
2979 echo $ECHO_N "(cached) $ECHO_C" >&6
2981 ac_save_c_werror_flag=$ac_c_werror_flag
2982 ac_c_werror_flag=yes
2985 cat >conftest.$ac_ext <<_ACEOF
2988 cat confdefs.h >>conftest.$ac_ext
2989 cat >>conftest.$ac_ext <<_ACEOF
2990 /* end confdefs.h. */
3000 rm -f conftest.$ac_objext
3001 if { (ac_try="$ac_compile"
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3007 (eval "$ac_compile") 2>conftest.er1
3009 grep -v '^ *+' conftest.er1 >conftest.err
3011 cat conftest.err >&5
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); } && {
3014 test -z "$ac_c_werror_flag" ||
3015 test ! -s conftest.err
3016 } && test -s conftest.$ac_objext; then
3019 echo "$as_me: failed program was:" >&5
3020 sed 's/^/| /' conftest.$ac_ext >&5
3023 cat >conftest.$ac_ext <<_ACEOF
3026 cat confdefs.h >>conftest.$ac_ext
3027 cat >>conftest.$ac_ext <<_ACEOF
3028 /* end confdefs.h. */
3038 rm -f conftest.$ac_objext
3039 if { (ac_try="$ac_compile"
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045 (eval "$ac_compile") 2>conftest.er1
3047 grep -v '^ *+' conftest.er1 >conftest.err
3049 cat conftest.err >&5
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); } && {
3052 test -z "$ac_c_werror_flag" ||
3053 test ! -s conftest.err
3054 } && test -s conftest.$ac_objext; then
3057 echo "$as_me: failed program was:" >&5
3058 sed 's/^/| /' conftest.$ac_ext >&5
3060 ac_c_werror_flag=$ac_save_c_werror_flag
3062 cat >conftest.$ac_ext <<_ACEOF
3065 cat confdefs.h >>conftest.$ac_ext
3066 cat >>conftest.$ac_ext <<_ACEOF
3067 /* end confdefs.h. */
3077 rm -f conftest.$ac_objext
3078 if { (ac_try="$ac_compile"
3080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081 *) ac_try_echo=$ac_try;;
3083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3084 (eval "$ac_compile") 2>conftest.er1
3086 grep -v '^ *+' conftest.er1 >conftest.err
3088 cat conftest.err >&5
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); } && {
3091 test -z "$ac_c_werror_flag" ||
3092 test ! -s conftest.err
3093 } && test -s conftest.$ac_objext; then
3096 echo "$as_me: failed program was:" >&5
3097 sed 's/^/| /' conftest.$ac_ext >&5
3102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3109 ac_c_werror_flag=$ac_save_c_werror_flag
3111 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3112 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3113 if test "$ac_test_CFLAGS" = set; then
3114 CFLAGS=$ac_save_CFLAGS
3115 elif test $ac_cv_prog_cc_g = yes; then
3116 if test "$GCC" = yes; then
3122 if test "$GCC" = yes; then
3128 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3129 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3130 if test "${ac_cv_prog_cc_c89+set}" = set; then
3131 echo $ECHO_N "(cached) $ECHO_C" >&6
3133 ac_cv_prog_cc_c89=no
3135 cat >conftest.$ac_ext <<_ACEOF
3138 cat confdefs.h >>conftest.$ac_ext
3139 cat >>conftest.$ac_ext <<_ACEOF
3140 /* end confdefs.h. */
3143 #include <sys/types.h>
3144 #include <sys/stat.h>
3145 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3146 struct buf { int x; };
3147 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3148 static char *e (p, i)
3154 static char *f (char * (*g) (char **, int), char **p, ...)
3159 s = g (p, va_arg (v,int));
3164 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3165 function prototypes and stuff, but not '\xHH' hex character constants.
3166 These don't provoke an error unfortunately, instead are silently treated
3167 as 'x'. The following induces an error, until -std is added to get
3168 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3169 array size at least. It's necessary to write '\x00'==0 to get something
3170 that's true only with -std. */
3171 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3173 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3174 inside strings and character constants. */
3176 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3178 int test (int i, double x);
3179 struct s1 {int (*f) (int a);};
3180 struct s2 {int (*f) (double a);};
3181 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3187 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3192 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3193 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3195 CC="$ac_save_CC $ac_arg"
3196 rm -f conftest.$ac_objext
3197 if { (ac_try="$ac_compile"
3199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200 *) ac_try_echo=$ac_try;;
3202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3203 (eval "$ac_compile") 2>conftest.er1
3205 grep -v '^ *+' conftest.er1 >conftest.err
3207 cat conftest.err >&5
3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); } && {
3210 test -z "$ac_c_werror_flag" ||
3211 test ! -s conftest.err
3212 } && test -s conftest.$ac_objext; then
3213 ac_cv_prog_cc_c89=$ac_arg
3215 echo "$as_me: failed program was:" >&5
3216 sed 's/^/| /' conftest.$ac_ext >&5
3221 rm -f core conftest.err conftest.$ac_objext
3222 test "x$ac_cv_prog_cc_c89" != "xno" && break
3224 rm -f conftest.$ac_ext
3229 case "x$ac_cv_prog_cc_c89" in
3231 { echo "$as_me:$LINENO: result: none needed" >&5
3232 echo "${ECHO_T}none needed" >&6; } ;;
3234 { echo "$as_me:$LINENO: result: unsupported" >&5
3235 echo "${ECHO_T}unsupported" >&6; } ;;
3237 CC="$CC $ac_cv_prog_cc_c89"
3238 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3239 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3244 ac_cpp='$CPP $CPPFLAGS'
3245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3250 ac_cpp='$CXXCPP $CPPFLAGS'
3251 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3252 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3253 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3254 if test -z "$CXX"; then
3255 if test -n "$CCC"; then
3258 if test -n "$ac_tool_prefix"; then
3259 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3261 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3262 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3265 if test "${ac_cv_prog_CXX+set}" = set; then
3266 echo $ECHO_N "(cached) $ECHO_C" >&6
3268 if test -n "$CXX"; then
3269 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3275 test -z "$as_dir" && as_dir=.
3276 for ac_exec_ext in '' $ac_executable_extensions; do
3277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3278 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3289 if test -n "$CXX"; then
3290 { echo "$as_me:$LINENO: result: $CXX" >&5
3291 echo "${ECHO_T}$CXX" >&6; }
3293 { echo "$as_me:$LINENO: result: no" >&5
3294 echo "${ECHO_T}no" >&6; }
3298 test -n "$CXX" && break
3301 if test -z "$CXX"; then
3303 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3305 # Extract the first word of "$ac_prog", so it can be a program name with args.
3306 set dummy $ac_prog; ac_word=$2
3307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3309 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3310 echo $ECHO_N "(cached) $ECHO_C" >&6
3312 if test -n "$ac_ct_CXX"; then
3313 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3319 test -z "$as_dir" && as_dir=.
3320 for ac_exec_ext in '' $ac_executable_extensions; do
3321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3322 ac_cv_prog_ac_ct_CXX="$ac_prog"
3323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3332 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3333 if test -n "$ac_ct_CXX"; then
3334 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3335 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3337 { echo "$as_me:$LINENO: result: no" >&5
3338 echo "${ECHO_T}no" >&6; }
3342 test -n "$ac_ct_CXX" && break
3345 if test "x$ac_ct_CXX" = x; then
3348 case $cross_compiling:$ac_tool_warned in
3350 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3351 whose name does not start with the host triplet. If you think this
3352 configuration is useful to you, please write to autoconf@gnu.org." >&5
3353 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3354 whose name does not start with the host triplet. If you think this
3355 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3356 ac_tool_warned=yes ;;
3364 # Provide some information about the compiler.
3365 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3366 ac_compiler=`set X $ac_compile; echo $2`
3367 { (ac_try="$ac_compiler --version >&5"
3369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3370 *) ac_try_echo=$ac_try;;
3372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3373 (eval "$ac_compiler --version >&5") 2>&5
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); }
3377 { (ac_try="$ac_compiler -v >&5"
3379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380 *) ac_try_echo=$ac_try;;
3382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3383 (eval "$ac_compiler -v >&5") 2>&5
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); }
3387 { (ac_try="$ac_compiler -V >&5"
3389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390 *) ac_try_echo=$ac_try;;
3392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3393 (eval "$ac_compiler -V >&5") 2>&5
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); }
3398 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3399 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3400 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3401 echo $ECHO_N "(cached) $ECHO_C" >&6
3403 cat >conftest.$ac_ext <<_ACEOF
3406 cat confdefs.h >>conftest.$ac_ext
3407 cat >>conftest.$ac_ext <<_ACEOF
3408 /* end confdefs.h. */
3421 rm -f conftest.$ac_objext
3422 if { (ac_try="$ac_compile"
3424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3425 *) ac_try_echo=$ac_try;;
3427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3428 (eval "$ac_compile") 2>conftest.er1
3430 grep -v '^ *+' conftest.er1 >conftest.err
3432 cat conftest.err >&5
3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); } && {
3435 test -z "$ac_cxx_werror_flag" ||
3436 test ! -s conftest.err
3437 } && test -s conftest.$ac_objext; then
3440 echo "$as_me: failed program was:" >&5
3441 sed 's/^/| /' conftest.$ac_ext >&5
3446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3447 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3450 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3451 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3452 GXX=`test $ac_compiler_gnu = yes && echo yes`
3453 ac_test_CXXFLAGS=${CXXFLAGS+set}
3454 ac_save_CXXFLAGS=$CXXFLAGS
3455 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3456 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3457 if test "${ac_cv_prog_cxx_g+set}" = set; then
3458 echo $ECHO_N "(cached) $ECHO_C" >&6
3460 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3461 ac_cxx_werror_flag=yes
3464 cat >conftest.$ac_ext <<_ACEOF
3467 cat confdefs.h >>conftest.$ac_ext
3468 cat >>conftest.$ac_ext <<_ACEOF
3469 /* end confdefs.h. */
3479 rm -f conftest.$ac_objext
3480 if { (ac_try="$ac_compile"
3482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3483 *) ac_try_echo=$ac_try;;
3485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3486 (eval "$ac_compile") 2>conftest.er1
3488 grep -v '^ *+' conftest.er1 >conftest.err
3490 cat conftest.err >&5
3491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); } && {
3493 test -z "$ac_cxx_werror_flag" ||
3494 test ! -s conftest.err
3495 } && test -s conftest.$ac_objext; then
3496 ac_cv_prog_cxx_g=yes
3498 echo "$as_me: failed program was:" >&5
3499 sed 's/^/| /' conftest.$ac_ext >&5
3502 cat >conftest.$ac_ext <<_ACEOF
3505 cat confdefs.h >>conftest.$ac_ext
3506 cat >>conftest.$ac_ext <<_ACEOF
3507 /* end confdefs.h. */
3517 rm -f conftest.$ac_objext
3518 if { (ac_try="$ac_compile"
3520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521 *) ac_try_echo=$ac_try;;
3523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3524 (eval "$ac_compile") 2>conftest.er1
3526 grep -v '^ *+' conftest.er1 >conftest.err
3528 cat conftest.err >&5
3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); } && {
3531 test -z "$ac_cxx_werror_flag" ||
3532 test ! -s conftest.err
3533 } && test -s conftest.$ac_objext; then
3536 echo "$as_me: failed program was:" >&5
3537 sed 's/^/| /' conftest.$ac_ext >&5
3539 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3541 cat >conftest.$ac_ext <<_ACEOF
3544 cat confdefs.h >>conftest.$ac_ext
3545 cat >>conftest.$ac_ext <<_ACEOF
3546 /* end confdefs.h. */
3556 rm -f conftest.$ac_objext
3557 if { (ac_try="$ac_compile"
3559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3560 *) ac_try_echo=$ac_try;;
3562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3563 (eval "$ac_compile") 2>conftest.er1
3565 grep -v '^ *+' conftest.er1 >conftest.err
3567 cat conftest.err >&5
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); } && {
3570 test -z "$ac_cxx_werror_flag" ||
3571 test ! -s conftest.err
3572 } && test -s conftest.$ac_objext; then
3573 ac_cv_prog_cxx_g=yes
3575 echo "$as_me: failed program was:" >&5
3576 sed 's/^/| /' conftest.$ac_ext >&5
3581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3588 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3590 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3591 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3592 if test "$ac_test_CXXFLAGS" = set; then
3593 CXXFLAGS=$ac_save_CXXFLAGS
3594 elif test $ac_cv_prog_cxx_g = yes; then
3595 if test "$GXX" = yes; then
3601 if test "$GXX" = yes; then
3608 ac_cpp='$CPP $CPPFLAGS'
3609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3613 if test "x$CC" != xcc; then
3614 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3615 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3617 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3618 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3620 set dummy $CC; ac_cc=`echo $2 |
3621 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3622 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3623 echo $ECHO_N "(cached) $ECHO_C" >&6
3625 cat >conftest.$ac_ext <<_ACEOF
3628 cat confdefs.h >>conftest.$ac_ext
3629 cat >>conftest.$ac_ext <<_ACEOF
3630 /* end confdefs.h. */
3640 # Make sure it works both with $CC and with simple cc.
3641 # We do the test twice because some compilers refuse to overwrite an
3642 # existing .o file with -o, though they will create one.
3643 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3645 if { (case "(($ac_try" in
3646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3647 *) ac_try_echo=$ac_try;;
3649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3650 (eval "$ac_try") 2>&5
3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); } &&
3654 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656 *) ac_try_echo=$ac_try;;
3658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3659 (eval "$ac_try") 2>&5
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); };
3664 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3665 if test "x$CC" != xcc; then
3666 # Test first that cc exists at all.
3667 if { ac_try='cc -c conftest.$ac_ext >&5'
3668 { (case "(($ac_try" in
3669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3670 *) ac_try_echo=$ac_try;;
3672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3673 (eval "$ac_try") 2>&5
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); }; }; then
3677 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3679 if { (case "(($ac_try" in
3680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3681 *) ac_try_echo=$ac_try;;
3683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3684 (eval "$ac_try") 2>&5
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); } &&
3688 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3690 *) ac_try_echo=$ac_try;;
3692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3693 (eval "$ac_try") 2>&5
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); };
3701 # cc exists but doesn't like -o.
3702 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3707 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3709 rm -f core conftest*
3712 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3713 { echo "$as_me:$LINENO: result: yes" >&5
3714 echo "${ECHO_T}yes" >&6; }
3716 { echo "$as_me:$LINENO: result: no" >&5
3717 echo "${ECHO_T}no" >&6; }
3719 cat >>confdefs.h <<\_ACEOF
3720 #define NO_MINUS_C_MINUS_O 1
3726 ac_cpp='$CPP $CPPFLAGS'
3727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3730 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3731 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3732 # On Suns, sometimes $CPP names a directory.
3733 if test -n "$CPP" && test -d "$CPP"; then
3736 if test -z "$CPP"; then
3737 if test "${ac_cv_prog_CPP+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3740 # Double quotes because CPP needs to be expanded
3741 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3744 for ac_c_preproc_warn_flag in '' yes
3746 # Use a header file that comes with gcc, so configuring glibc
3747 # with a fresh cross-compiler works.
3748 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3749 # <limits.h> exists even on freestanding compilers.
3750 # On the NeXT, cc -E runs the code through the compiler's parser,
3751 # not just through cpp. "Syntax error" is here to catch this case.
3752 cat >conftest.$ac_ext <<_ACEOF
3755 cat confdefs.h >>conftest.$ac_ext
3756 cat >>conftest.$ac_ext <<_ACEOF
3757 /* end confdefs.h. */
3759 # include <limits.h>
3761 # include <assert.h>
3765 if { (ac_try="$ac_cpp conftest.$ac_ext"
3767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3768 *) ac_try_echo=$ac_try;;
3770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3773 grep -v '^ *+' conftest.er1 >conftest.err
3775 cat conftest.err >&5
3776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777 (exit $ac_status); } >/dev/null && {
3778 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3779 test ! -s conftest.err
3783 echo "$as_me: failed program was:" >&5
3784 sed 's/^/| /' conftest.$ac_ext >&5
3786 # Broken: fails on valid input.
3790 rm -f conftest.err conftest.$ac_ext
3792 # OK, works on sane cases. Now check whether nonexistent headers
3793 # can be detected and how.
3794 cat >conftest.$ac_ext <<_ACEOF
3797 cat confdefs.h >>conftest.$ac_ext
3798 cat >>conftest.$ac_ext <<_ACEOF
3799 /* end confdefs.h. */
3800 #include <ac_nonexistent.h>
3802 if { (ac_try="$ac_cpp conftest.$ac_ext"
3804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3805 *) ac_try_echo=$ac_try;;
3807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3810 grep -v '^ *+' conftest.er1 >conftest.err
3812 cat conftest.err >&5
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); } >/dev/null && {
3815 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3816 test ! -s conftest.err
3818 # Broken: success on invalid input.
3821 echo "$as_me: failed program was:" >&5
3822 sed 's/^/| /' conftest.$ac_ext >&5
3824 # Passes both tests.
3829 rm -f conftest.err conftest.$ac_ext
3832 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3833 rm -f conftest.err conftest.$ac_ext
3834 if $ac_preproc_ok; then
3846 { echo "$as_me:$LINENO: result: $CPP" >&5
3847 echo "${ECHO_T}$CPP" >&6; }
3849 for ac_c_preproc_warn_flag in '' yes
3851 # Use a header file that comes with gcc, so configuring glibc
3852 # with a fresh cross-compiler works.
3853 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3854 # <limits.h> exists even on freestanding compilers.
3855 # On the NeXT, cc -E runs the code through the compiler's parser,
3856 # not just through cpp. "Syntax error" is here to catch this case.
3857 cat >conftest.$ac_ext <<_ACEOF
3860 cat confdefs.h >>conftest.$ac_ext
3861 cat >>conftest.$ac_ext <<_ACEOF
3862 /* end confdefs.h. */
3864 # include <limits.h>
3866 # include <assert.h>
3870 if { (ac_try="$ac_cpp conftest.$ac_ext"
3872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3873 *) ac_try_echo=$ac_try;;
3875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3878 grep -v '^ *+' conftest.er1 >conftest.err
3880 cat conftest.err >&5
3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882 (exit $ac_status); } >/dev/null && {
3883 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3884 test ! -s conftest.err
3888 echo "$as_me: failed program was:" >&5
3889 sed 's/^/| /' conftest.$ac_ext >&5
3891 # Broken: fails on valid input.
3895 rm -f conftest.err conftest.$ac_ext
3897 # OK, works on sane cases. Now check whether nonexistent headers
3898 # can be detected and how.
3899 cat >conftest.$ac_ext <<_ACEOF
3902 cat confdefs.h >>conftest.$ac_ext
3903 cat >>conftest.$ac_ext <<_ACEOF
3904 /* end confdefs.h. */
3905 #include <ac_nonexistent.h>
3907 if { (ac_try="$ac_cpp conftest.$ac_ext"
3909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3910 *) ac_try_echo=$ac_try;;
3912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3915 grep -v '^ *+' conftest.er1 >conftest.err
3917 cat conftest.err >&5
3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919 (exit $ac_status); } >/dev/null && {
3920 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3921 test ! -s conftest.err
3923 # Broken: success on invalid input.
3926 echo "$as_me: failed program was:" >&5
3927 sed 's/^/| /' conftest.$ac_ext >&5
3929 # Passes both tests.
3934 rm -f conftest.err conftest.$ac_ext
3937 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3938 rm -f conftest.err conftest.$ac_ext
3939 if $ac_preproc_ok; then
3942 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3943 See \`config.log' for more details." >&5
3944 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3945 See \`config.log' for more details." >&2;}
3946 { (exit 1); exit 1; }; }
3950 ac_cpp='$CPP $CPPFLAGS'
3951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3956 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3957 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3958 if test "${ac_cv_path_GREP+set}" = set; then
3959 echo $ECHO_N "(cached) $ECHO_C" >&6
3961 # Extract the first word of "grep ggrep" to use in msg output
3962 if test -z "$GREP"; then
3963 set dummy grep ggrep; ac_prog_name=$2
3964 if test "${ac_cv_path_GREP+set}" = set; then
3965 echo $ECHO_N "(cached) $ECHO_C" >&6
3967 ac_path_GREP_found=false
3968 # Loop through the user's path and test for each of PROGNAME-LIST
3969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3970 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3973 test -z "$as_dir" && as_dir=.
3974 for ac_prog in grep ggrep; do
3975 for ac_exec_ext in '' $ac_executable_extensions; do
3976 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3977 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3978 # Check for GNU ac_path_GREP and select it if it is found.
3979 # Check for GNU $ac_path_GREP
3980 case `"$ac_path_GREP" --version 2>&1` in
3982 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3985 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3988 cat "conftest.in" "conftest.in" >"conftest.tmp"
3989 mv "conftest.tmp" "conftest.in"
3990 cp "conftest.in" "conftest.nl"
3991 echo 'GREP' >> "conftest.nl"
3992 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3993 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3994 ac_count=`expr $ac_count + 1`
3995 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3996 # Best one so far, save it but keep looking for a better one
3997 ac_cv_path_GREP="$ac_path_GREP"
3998 ac_path_GREP_max=$ac_count
4000 # 10*(2^10) chars as input seems more than enough
4001 test $ac_count -gt 10 && break
4003 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4007 $ac_path_GREP_found && break 3
4017 GREP="$ac_cv_path_GREP"
4018 if test -z "$GREP"; then
4019 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4020 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4021 { (exit 1); exit 1; }; }
4025 ac_cv_path_GREP=$GREP
4030 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4031 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4032 GREP="$ac_cv_path_GREP"
4035 { echo "$as_me:$LINENO: checking for egrep" >&5
4036 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4037 if test "${ac_cv_path_EGREP+set}" = set; then
4038 echo $ECHO_N "(cached) $ECHO_C" >&6
4040 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4041 then ac_cv_path_EGREP="$GREP -E"
4043 # Extract the first word of "egrep" to use in msg output
4044 if test -z "$EGREP"; then
4045 set dummy egrep; ac_prog_name=$2
4046 if test "${ac_cv_path_EGREP+set}" = set; then
4047 echo $ECHO_N "(cached) $ECHO_C" >&6
4049 ac_path_EGREP_found=false
4050 # Loop through the user's path and test for each of PROGNAME-LIST
4051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4052 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4055 test -z "$as_dir" && as_dir=.
4056 for ac_prog in egrep; do
4057 for ac_exec_ext in '' $ac_executable_extensions; do
4058 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4059 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4060 # Check for GNU ac_path_EGREP and select it if it is found.
4061 # Check for GNU $ac_path_EGREP
4062 case `"$ac_path_EGREP" --version 2>&1` in
4064 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4067 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4070 cat "conftest.in" "conftest.in" >"conftest.tmp"
4071 mv "conftest.tmp" "conftest.in"
4072 cp "conftest.in" "conftest.nl"
4073 echo 'EGREP' >> "conftest.nl"
4074 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4075 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4076 ac_count=`expr $ac_count + 1`
4077 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4078 # Best one so far, save it but keep looking for a better one
4079 ac_cv_path_EGREP="$ac_path_EGREP"
4080 ac_path_EGREP_max=$ac_count
4082 # 10*(2^10) chars as input seems more than enough
4083 test $ac_count -gt 10 && break
4085 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4089 $ac_path_EGREP_found && break 3
4099 EGREP="$ac_cv_path_EGREP"
4100 if test -z "$EGREP"; then
4101 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4102 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4103 { (exit 1); exit 1; }; }
4107 ac_cv_path_EGREP=$EGREP
4113 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4114 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4115 EGREP="$ac_cv_path_EGREP"
4118 if test $ac_cv_c_compiler_gnu = yes; then
4119 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4120 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4121 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4122 echo $ECHO_N "(cached) $ECHO_C" >&6
4124 ac_pattern="Autoconf.*'x'"
4125 cat >conftest.$ac_ext <<_ACEOF
4128 cat confdefs.h >>conftest.$ac_ext
4129 cat >>conftest.$ac_ext <<_ACEOF
4130 /* end confdefs.h. */
4134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4135 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4136 ac_cv_prog_gcc_traditional=yes
4138 ac_cv_prog_gcc_traditional=no
4143 if test $ac_cv_prog_gcc_traditional = no; then
4144 cat >conftest.$ac_ext <<_ACEOF
4147 cat confdefs.h >>conftest.$ac_ext
4148 cat >>conftest.$ac_ext <<_ACEOF
4149 /* end confdefs.h. */
4153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4154 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4155 ac_cv_prog_gcc_traditional=yes
4161 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4162 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4163 if test $ac_cv_prog_gcc_traditional = yes; then
4164 CC="$CC -traditional"
4168 BASECC=`basename $CC`
4170 if test "x$BASECC" = xgcc; then
4171 cat >>confdefs.h <<\_ACEOF
4177 # Extract the first word of "$CXX", so it can be a program name with args.
4178 set dummy $CXX; ac_word=$2
4179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4181 if test "${ac_cv_path_CXX+set}" = set; then
4182 echo $ECHO_N "(cached) $ECHO_C" >&6
4186 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4193 test -z "$as_dir" && as_dir=.
4194 for ac_exec_ext in '' $ac_executable_extensions; do
4195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4196 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4204 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4209 if test -n "$CXX"; then
4210 { echo "$as_me:$LINENO: result: $CXX" >&5
4211 echo "${ECHO_T}$CXX" >&6; }
4213 { echo "$as_me:$LINENO: result: no" >&5
4214 echo "${ECHO_T}no" >&6; }
4218 if test ! -e $CXX; then
4219 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4220 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4221 { (exit 1); exit 1; }; }
4224 # Find a good install program. We prefer a C program (faster),
4225 # so one script is as good as another. But avoid the broken or
4226 # incompatible versions:
4227 # SysV /etc/install, /usr/sbin/install
4228 # SunOS /usr/etc/install
4229 # IRIX /sbin/install
4231 # AmigaOS /C/install, which installs bootblocks on floppy discs
4232 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4233 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4234 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4235 # OS/2's system install, which has a completely different semantic
4236 # ./install, which can be erroneously created by make from ./install.sh.
4237 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4238 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4239 if test -z "$INSTALL"; then
4240 if test "${ac_cv_path_install+set}" = set; then
4241 echo $ECHO_N "(cached) $ECHO_C" >&6
4243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4247 test -z "$as_dir" && as_dir=.
4248 # Account for people who put trailing slashes in PATH elements.
4250 ./ | .// | /cC/* | \
4251 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4252 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4255 # OSF1 and SCO ODT 3.0 have their own names for install.
4256 # Don't use installbsd from OSF since it installs stuff as root
4258 for ac_prog in ginstall scoinst install; do
4259 for ac_exec_ext in '' $ac_executable_extensions; do
4260 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4261 if test $ac_prog = install &&
4262 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4263 # AIX install. It has an incompatible calling convention.
4265 elif test $ac_prog = install &&
4266 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4267 # program-specific install script used by HP pwplus--don't use.
4270 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4283 if test "${ac_cv_path_install+set}" = set; then
4284 INSTALL=$ac_cv_path_install
4286 # As a last resort, use the slow shell script. Don't cache a
4287 # value for INSTALL within a source directory, because that will
4288 # break other packages using the cache if that directory is
4289 # removed, or if the value is a relative name.
4290 INSTALL=$ac_install_sh
4293 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4294 echo "${ECHO_T}$INSTALL" >&6; }
4296 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4297 # It thinks the first close brace ends the variable substitution.
4298 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4300 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4302 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4304 # Extract the first word of "mv", so it can be a program name with args.
4305 set dummy mv; ac_word=$2
4306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4308 if test "${ac_cv_path_MV+set}" = set; then
4309 echo $ECHO_N "(cached) $ECHO_C" >&6
4313 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4320 test -z "$as_dir" && as_dir=.
4321 for ac_exec_ext in '' $ac_executable_extensions; do
4322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4323 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4331 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4336 if test -n "$MV"; then
4337 { echo "$as_me:$LINENO: result: $MV" >&5
4338 echo "${ECHO_T}$MV" >&6; }
4340 { echo "$as_me:$LINENO: result: no" >&5
4341 echo "${ECHO_T}no" >&6; }
4345 # Extract the first word of "rm", so it can be a program name with args.
4346 set dummy rm; ac_word=$2
4347 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4349 if test "${ac_cv_path_REMOVE+set}" = set; then
4350 echo $ECHO_N "(cached) $ECHO_C" >&6
4354 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4361 test -z "$as_dir" && as_dir=.
4362 for ac_exec_ext in '' $ac_executable_extensions; do
4363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4364 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4372 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4376 REMOVE=$ac_cv_path_REMOVE
4377 if test -n "$REMOVE"; then
4378 { echo "$as_me:$LINENO: result: $REMOVE" >&5
4379 echo "${ECHO_T}$REMOVE" >&6; }
4381 { echo "$as_me:$LINENO: result: no" >&5
4382 echo "${ECHO_T}no" >&6; }
4386 # Extract the first word of "cp", so it can be a program name with args.
4387 set dummy cp; ac_word=$2
4388 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4390 if test "${ac_cv_path_CP+set}" = set; then
4391 echo $ECHO_N "(cached) $ECHO_C" >&6
4395 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4402 test -z "$as_dir" && as_dir=.
4403 for ac_exec_ext in '' $ac_executable_extensions; do
4404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4405 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4413 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4418 if test -n "$CP"; then
4419 { echo "$as_me:$LINENO: result: $CP" >&5
4420 echo "${ECHO_T}$CP" >&6; }
4422 { echo "$as_me:$LINENO: result: no" >&5
4423 echo "${ECHO_T}no" >&6; }
4427 # Extract the first word of "sed", so it can be a program name with args.
4428 set dummy sed; ac_word=$2
4429 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4431 if test "${ac_cv_path_SED+set}" = set; then
4432 echo $ECHO_N "(cached) $ECHO_C" >&6
4436 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443 test -z "$as_dir" && as_dir=.
4444 for ac_exec_ext in '' $ac_executable_extensions; do
4445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4446 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4454 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4459 if test -n "$SED"; then
4460 { echo "$as_me:$LINENO: result: $SED" >&5
4461 echo "${ECHO_T}$SED" >&6; }
4463 { echo "$as_me:$LINENO: result: no" >&5
4464 echo "${ECHO_T}no" >&6; }
4468 # Extract the first word of "echo", so it can be a program name with args.
4469 set dummy echo; ac_word=$2
4470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4472 if test "${ac_cv_path_ECHO+set}" = set; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
4477 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484 test -z "$as_dir" && as_dir=.
4485 for ac_exec_ext in '' $ac_executable_extensions; do
4486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4487 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4495 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4499 ECHO=$ac_cv_path_ECHO
4500 if test -n "$ECHO"; then
4501 { echo "$as_me:$LINENO: result: $ECHO" >&5
4502 echo "${ECHO_T}$ECHO" >&6; }
4504 { echo "$as_me:$LINENO: result: no" >&5
4505 echo "${ECHO_T}no" >&6; }
4509 # Extract the first word of "cmp", so it can be a program name with args.
4510 set dummy cmp; ac_word=$2
4511 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4513 if test "${ac_cv_path_CMP+set}" = set; then
4514 echo $ECHO_N "(cached) $ECHO_C" >&6
4518 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525 test -z "$as_dir" && as_dir=.
4526 for ac_exec_ext in '' $ac_executable_extensions; do
4527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4528 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4536 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4541 if test -n "$CMP"; then
4542 { echo "$as_me:$LINENO: result: $CMP" >&5
4543 echo "${ECHO_T}$CMP" >&6; }
4545 { echo "$as_me:$LINENO: result: no" >&5
4546 echo "${ECHO_T}no" >&6; }
4550 # Extract the first word of "tbl", so it can be a program name with args.
4551 set dummy tbl; ac_word=$2
4552 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4554 if test "${ac_cv_path_TBL+set}" = set; then
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
4559 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566 test -z "$as_dir" && as_dir=.
4567 for ac_exec_ext in '' $ac_executable_extensions; do
4568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4569 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4577 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4582 if test -n "$TBL"; then
4583 { echo "$as_me:$LINENO: result: $TBL" >&5
4584 echo "${ECHO_T}$TBL" >&6; }
4586 { echo "$as_me:$LINENO: result: no" >&5
4587 echo "${ECHO_T}no" >&6; }
4591 # Extract the first word of "ar", so it can be a program name with args.
4592 set dummy ar; ac_word=$2
4593 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4595 if test "${ac_cv_path_AR+set}" = set; then
4596 echo $ECHO_N "(cached) $ECHO_C" >&6
4600 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607 test -z "$as_dir" && as_dir=.
4608 for ac_exec_ext in '' $ac_executable_extensions; do
4609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4610 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4618 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4623 if test -n "$AR"; then
4624 { echo "$as_me:$LINENO: result: $AR" >&5
4625 echo "${ECHO_T}$AR" >&6; }
4627 { echo "$as_me:$LINENO: result: no" >&5
4628 echo "${ECHO_T}no" >&6; }
4632 # Extract the first word of "openssl", so it can be a program name with args.
4633 set dummy openssl; ac_word=$2
4634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4636 if test "${ac_cv_path_OPENSSL+set}" = set; then
4637 echo $ECHO_N "(cached) $ECHO_C" >&6
4641 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648 test -z "$as_dir" && as_dir=.
4649 for ac_exec_ext in '' $ac_executable_extensions; do
4650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4651 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4659 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4663 OPENSSL=$ac_cv_path_OPENSSL
4664 if test -n "$OPENSSL"; then
4665 { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4666 echo "${ECHO_T}$OPENSSL" >&6; }
4668 { echo "$as_me:$LINENO: result: no" >&5
4669 echo "${ECHO_T}no" >&6; }
4673 # Extract the first word of "mtx", so it can be a program name with args.
4674 set dummy mtx; ac_word=$2
4675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4677 if test "${ac_cv_path_MTX+set}" = set; then
4678 echo $ECHO_N "(cached) $ECHO_C" >&6
4682 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4689 test -z "$as_dir" && as_dir=.
4690 for ac_exec_ext in '' $ac_executable_extensions; do
4691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4692 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4700 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4705 if test -n "$MTX"; then
4706 { echo "$as_me:$LINENO: result: $MTX" >&5
4707 echo "${ECHO_T}$MTX" >&6; }
4709 { echo "$as_me:$LINENO: result: no" >&5
4710 echo "${ECHO_T}no" >&6; }
4714 # Extract the first word of "dd", so it can be a program name with args.
4715 set dummy dd; ac_word=$2
4716 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4718 if test "${ac_cv_path_DD+set}" = set; then
4719 echo $ECHO_N "(cached) $ECHO_C" >&6
4723 ac_cv_path_DD="$DD" # Let the user override the test with a path.
4726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4730 test -z "$as_dir" && as_dir=.
4731 for ac_exec_ext in '' $ac_executable_extensions; do
4732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4733 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4741 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4746 if test -n "$DD"; then
4747 { echo "$as_me:$LINENO: result: $DD" >&5
4748 echo "${ECHO_T}$DD" >&6; }
4750 { echo "$as_me:$LINENO: result: no" >&5
4751 echo "${ECHO_T}no" >&6; }
4755 # Extract the first word of "mkisofs", so it can be a program name with args.
4756 set dummy mkisofs; ac_word=$2
4757 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4759 if test "${ac_cv_path_MKISOFS+set}" = set; then
4760 echo $ECHO_N "(cached) $ECHO_C" >&6
4764 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4771 test -z "$as_dir" && as_dir=.
4772 for ac_exec_ext in '' $ac_executable_extensions; do
4773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4774 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4782 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4786 MKISOFS=$ac_cv_path_MKISOFS
4787 if test -n "$MKISOFS"; then
4788 { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4789 echo "${ECHO_T}$MKISOFS" >&6; }
4791 { echo "$as_me:$LINENO: result: no" >&5
4792 echo "${ECHO_T}no" >&6; }
4796 # Extract the first word of "python", so it can be a program name with args.
4797 set dummy python; ac_word=$2
4798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4800 if test "${ac_cv_path_PYTHON+set}" = set; then
4801 echo $ECHO_N "(cached) $ECHO_C" >&6
4805 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4812 test -z "$as_dir" && as_dir=.
4813 for ac_exec_ext in '' $ac_executable_extensions; do
4814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4815 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4823 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4827 PYTHON=$ac_cv_path_PYTHON
4828 if test -n "$PYTHON"; then
4829 { echo "$as_me:$LINENO: result: $PYTHON" >&5
4830 echo "${ECHO_T}$PYTHON" >&6; }
4832 { echo "$as_me:$LINENO: result: no" >&5
4833 echo "${ECHO_T}no" >&6; }
4837 # Extract the first word of "growisofs", so it can be a program name with args.
4838 set dummy growisofs; ac_word=$2
4839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4841 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4842 echo $ECHO_N "(cached) $ECHO_C" >&6
4846 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4853 test -z "$as_dir" && as_dir=.
4854 for ac_exec_ext in '' $ac_executable_extensions; do
4855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4856 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4864 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4868 GROWISOFS=$ac_cv_path_GROWISOFS
4869 if test -n "$GROWISOFS"; then
4870 { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4871 echo "${ECHO_T}$GROWISOFS" >&6; }
4873 { echo "$as_me:$LINENO: result: no" >&5
4874 echo "${ECHO_T}no" >&6; }
4878 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4879 set dummy dvd+rw-mediainfo; ac_word=$2
4880 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4882 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4883 echo $ECHO_N "(cached) $ECHO_C" >&6
4885 case $DVDRWMEDIAINFO in
4887 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4894 test -z "$as_dir" && as_dir=.
4895 for ac_exec_ext in '' $ac_executable_extensions; do
4896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4897 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4905 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4909 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4910 if test -n "$DVDRWMEDIAINFO"; then
4911 { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4912 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4914 { echo "$as_me:$LINENO: result: no" >&5
4915 echo "${ECHO_T}no" >&6; }
4919 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4920 set dummy dvd+rw-format; ac_word=$2
4921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4923 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4924 echo $ECHO_N "(cached) $ECHO_C" >&6
4926 case $DVDRWFORMAT in
4928 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935 test -z "$as_dir" && as_dir=.
4936 for ac_exec_ext in '' $ac_executable_extensions; do
4937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4938 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4946 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4950 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4951 if test -n "$DVDRWFORMAT"; then
4952 { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4953 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4955 { echo "$as_me:$LINENO: result: no" >&5
4956 echo "${ECHO_T}no" >&6; }
4960 # Extract the first word of "pkg-config", so it can be a program name with args.
4961 set dummy pkg-config; ac_word=$2
4962 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4964 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4965 echo $ECHO_N "(cached) $ECHO_C" >&6
4969 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4976 test -z "$as_dir" && as_dir=.
4977 for ac_exec_ext in '' $ac_executable_extensions; do
4978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4979 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4987 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4991 PKGCONFIG=$ac_cv_path_PKGCONFIG
4992 if test -n "$PKGCONFIG"; then
4993 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4994 echo "${ECHO_T}$PKGCONFIG" >&6; }
4996 { echo "$as_me:$LINENO: result: no" >&5
4997 echo "${ECHO_T}no" >&6; }
5001 # Extract the first word of "qmake", so it can be a program name with args.
5002 set dummy qmake; ac_word=$2
5003 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5005 if test "${ac_cv_path_QMAKE+set}" = set; then
5006 echo $ECHO_N "(cached) $ECHO_C" >&6
5010 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5017 test -z "$as_dir" && as_dir=.
5018 for ac_exec_ext in '' $ac_executable_extensions; do
5019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5020 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5028 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5032 QMAKE=$ac_cv_path_QMAKE
5033 if test -n "$QMAKE"; then
5034 { echo "$as_me:$LINENO: result: $QMAKE" >&5
5035 echo "${ECHO_T}$QMAKE" >&6; }
5037 { echo "$as_me:$LINENO: result: no" >&5
5038 echo "${ECHO_T}no" >&6; }
5042 # Extract the first word of "qmake-qt4", so it can be a program name with args.
5043 set dummy qmake-qt4; ac_word=$2
5044 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5046 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
5047 echo $ECHO_N "(cached) $ECHO_C" >&6
5051 ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
5054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058 test -z "$as_dir" && as_dir=.
5059 for ac_exec_ext in '' $ac_executable_extensions; do
5060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5061 ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
5062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5069 test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
5073 QMAKEQT4=$ac_cv_path_QMAKEQT4
5074 if test -n "$QMAKEQT4"; then
5075 { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
5076 echo "${ECHO_T}$QMAKEQT4" >&6; }
5078 { echo "$as_me:$LINENO: result: no" >&5
5079 echo "${ECHO_T}no" >&6; }
5084 if test "x$WXCONFIG" = x; then
5087 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5088 set dummy ${WXCONFIG}; ac_word=$2
5089 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5091 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5092 echo $ECHO_N "(cached) $ECHO_C" >&6
5096 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5103 test -z "$as_dir" && as_dir=.
5104 for ac_exec_ext in '' $ac_executable_extensions; do
5105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5106 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5114 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5118 WXCONFIG=$ac_cv_path_WXCONFIG
5119 if test -n "$WXCONFIG"; then
5120 { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5121 echo "${ECHO_T}$WXCONFIG" >&6; }
5123 { echo "$as_me:$LINENO: result: no" >&5
5124 echo "${ECHO_T}no" >&6; }
5129 # Extract the first word of "cdrecord", so it can be a program name with args.
5130 set dummy cdrecord; ac_word=$2
5131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5133 if test "${ac_cv_path_CDRECORD+set}" = set; then
5134 echo $ECHO_N "(cached) $ECHO_C" >&6
5138 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5145 test -z "$as_dir" && as_dir=.
5146 for ac_exec_ext in '' $ac_executable_extensions; do
5147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5148 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5156 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5160 CDRECORD=$ac_cv_path_CDRECORD
5161 if test -n "$CDRECORD"; then
5162 { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5163 echo "${ECHO_T}$CDRECORD" >&6; }
5165 { echo "$as_me:$LINENO: result: no" >&5
5166 echo "${ECHO_T}no" >&6; }
5170 # Extract the first word of "pidof", so it can be a program name with args.
5171 set dummy pidof; ac_word=$2
5172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5174 if test "${ac_cv_path_PIDOF+set}" = set; then
5175 echo $ECHO_N "(cached) $ECHO_C" >&6
5179 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186 test -z "$as_dir" && as_dir=.
5187 for ac_exec_ext in '' $ac_executable_extensions; do
5188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5189 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5197 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5201 PIDOF=$ac_cv_path_PIDOF
5202 if test -n "$PIDOF"; then
5203 { echo "$as_me:$LINENO: result: $PIDOF" >&5
5204 echo "${ECHO_T}$PIDOF" >&6; }
5206 { echo "$as_me:$LINENO: result: no" >&5
5207 echo "${ECHO_T}no" >&6; }
5211 for ac_prog in gawk mawk nawk awk
5213 # Extract the first word of "$ac_prog", so it can be a program name with args.
5214 set dummy $ac_prog; ac_word=$2
5215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5217 if test "${ac_cv_prog_AWK+set}" = set; then
5218 echo $ECHO_N "(cached) $ECHO_C" >&6
5220 if test -n "$AWK"; then
5221 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5227 test -z "$as_dir" && as_dir=.
5228 for ac_exec_ext in '' $ac_executable_extensions; do
5229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5230 ac_cv_prog_AWK="$ac_prog"
5231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5241 if test -n "$AWK"; then
5242 { echo "$as_me:$LINENO: result: $AWK" >&5
5243 echo "${ECHO_T}$AWK" >&6; }
5245 { echo "$as_me:$LINENO: result: no" >&5
5246 echo "${ECHO_T}no" >&6; }
5250 test -n "$AWK" && break
5253 # Some AWK programs fail, so test it and warn the user
5254 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5255 { if ((prog == $2) || (("(" prog ")") == $2) ||
5256 (("" prog "") == $2) ||
5257 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5259 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5260 The regex engine of $AWK is too broken to be used you
5261 might want to install GNU AWK.
5262 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5263 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5264 The regex engine of $AWK is too broken to be used you
5265 might want to install GNU AWK.
5266 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5267 { (exit 1); exit 1; }; }
5270 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5271 set dummy $THE_AWK; ac_word=$2
5272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5274 if test "${ac_cv_path_AWK+set}" = set; then
5275 echo $ECHO_N "(cached) $ECHO_C" >&6
5279 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5286 test -z "$as_dir" && as_dir=.
5287 for ac_exec_ext in '' $ac_executable_extensions; do
5288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5289 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5297 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5302 if test -n "$AWK"; then
5303 { echo "$as_me:$LINENO: result: $AWK" >&5
5304 echo "${ECHO_T}$AWK" >&6; }
5306 { echo "$as_me:$LINENO: result: no" >&5
5307 echo "${ECHO_T}no" >&6; }
5313 test -n "$ARFLAG" || ARFLAGS="cr"
5326 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5327 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5332 macro_version='2.2.6'
5333 macro_revision='1.3012'
5347 ltmain="$ac_aux_dir/ltmain.sh"
5349 # Make sure we can run config.sub.
5350 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5351 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5352 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5353 { (exit 1); exit 1; }; }
5355 { echo "$as_me:$LINENO: checking build system type" >&5
5356 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5357 if test "${ac_cv_build+set}" = set; then
5358 echo $ECHO_N "(cached) $ECHO_C" >&6
5360 ac_build_alias=$build_alias
5361 test "x$ac_build_alias" = x &&
5362 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5363 test "x$ac_build_alias" = x &&
5364 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5365 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5366 { (exit 1); exit 1; }; }
5367 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5368 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5369 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5370 { (exit 1); exit 1; }; }
5373 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5374 echo "${ECHO_T}$ac_cv_build" >&6; }
5375 case $ac_cv_build in
5377 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5378 echo "$as_me: error: invalid value of canonical build" >&2;}
5379 { (exit 1); exit 1; }; };;
5382 ac_save_IFS=$IFS; IFS='-'
5388 # Remember, the first character of IFS is used to create $*,
5389 # except with old shells:
5392 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5395 { echo "$as_me:$LINENO: checking host system type" >&5
5396 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5397 if test "${ac_cv_host+set}" = set; then
5398 echo $ECHO_N "(cached) $ECHO_C" >&6
5400 if test "x$host_alias" = x; then
5401 ac_cv_host=$ac_cv_build
5403 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5404 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5405 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5406 { (exit 1); exit 1; }; }
5410 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5411 echo "${ECHO_T}$ac_cv_host" >&6; }
5414 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5415 echo "$as_me: error: invalid value of canonical host" >&2;}
5416 { (exit 1); exit 1; }; };;
5419 ac_save_IFS=$IFS; IFS='-'
5425 # Remember, the first character of IFS is used to create $*,
5426 # except with old shells:
5429 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5432 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5433 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5434 if test "${ac_cv_path_SED+set}" = set; then
5435 echo $ECHO_N "(cached) $ECHO_C" >&6
5437 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5438 for ac_i in 1 2 3 4 5 6 7; do
5439 ac_script="$ac_script$as_nl$ac_script"
5441 echo "$ac_script" | sed 99q >conftest.sed
5442 $as_unset ac_script || ac_script=
5443 # Extract the first word of "sed gsed" to use in msg output
5444 if test -z "$SED"; then
5445 set dummy sed gsed; ac_prog_name=$2
5446 if test "${ac_cv_path_SED+set}" = set; then
5447 echo $ECHO_N "(cached) $ECHO_C" >&6
5449 ac_path_SED_found=false
5450 # Loop through the user's path and test for each of PROGNAME-LIST
5451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5455 test -z "$as_dir" && as_dir=.
5456 for ac_prog in sed gsed; do
5457 for ac_exec_ext in '' $ac_executable_extensions; do
5458 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5459 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5460 # Check for GNU ac_path_SED and select it if it is found.
5461 # Check for GNU $ac_path_SED
5462 case `"$ac_path_SED" --version 2>&1` in
5464 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5467 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5470 cat "conftest.in" "conftest.in" >"conftest.tmp"
5471 mv "conftest.tmp" "conftest.in"
5472 cp "conftest.in" "conftest.nl"
5473 echo '' >> "conftest.nl"
5474 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5475 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5476 ac_count=`expr $ac_count + 1`
5477 if test $ac_count -gt ${ac_path_SED_max-0}; then
5478 # Best one so far, save it but keep looking for a better one
5479 ac_cv_path_SED="$ac_path_SED"
5480 ac_path_SED_max=$ac_count
5482 # 10*(2^10) chars as input seems more than enough
5483 test $ac_count -gt 10 && break
5485 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5489 $ac_path_SED_found && break 3
5499 SED="$ac_cv_path_SED"
5500 if test -z "$SED"; then
5501 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5502 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5503 { (exit 1); exit 1; }; }
5511 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5512 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5513 SED="$ac_cv_path_SED"
5516 test -z "$SED" && SED=sed
5517 Xsed="$SED -e 1s/^X//"
5529 { echo "$as_me:$LINENO: checking for fgrep" >&5
5530 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5531 if test "${ac_cv_path_FGREP+set}" = set; then
5532 echo $ECHO_N "(cached) $ECHO_C" >&6
5534 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5535 then ac_cv_path_FGREP="$GREP -F"
5537 # Extract the first word of "fgrep" to use in msg output
5538 if test -z "$FGREP"; then
5539 set dummy fgrep; ac_prog_name=$2
5540 if test "${ac_cv_path_FGREP+set}" = set; then
5541 echo $ECHO_N "(cached) $ECHO_C" >&6
5543 ac_path_FGREP_found=false
5544 # Loop through the user's path and test for each of PROGNAME-LIST
5545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5546 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5549 test -z "$as_dir" && as_dir=.
5550 for ac_prog in fgrep; do
5551 for ac_exec_ext in '' $ac_executable_extensions; do
5552 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5553 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5554 # Check for GNU ac_path_FGREP and select it if it is found.
5555 # Check for GNU $ac_path_FGREP
5556 case `"$ac_path_FGREP" --version 2>&1` in
5558 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5561 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5564 cat "conftest.in" "conftest.in" >"conftest.tmp"
5565 mv "conftest.tmp" "conftest.in"
5566 cp "conftest.in" "conftest.nl"
5567 echo 'FGREP' >> "conftest.nl"
5568 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5569 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5570 ac_count=`expr $ac_count + 1`
5571 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5572 # Best one so far, save it but keep looking for a better one
5573 ac_cv_path_FGREP="$ac_path_FGREP"
5574 ac_path_FGREP_max=$ac_count
5576 # 10*(2^10) chars as input seems more than enough
5577 test $ac_count -gt 10 && break
5579 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5583 $ac_path_FGREP_found && break 3
5593 FGREP="$ac_cv_path_FGREP"
5594 if test -z "$FGREP"; then
5595 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5596 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5597 { (exit 1); exit 1; }; }
5601 ac_cv_path_FGREP=$FGREP
5607 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5608 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5609 FGREP="$ac_cv_path_FGREP"
5612 test -z "$GREP" && GREP=grep
5632 # Check whether --with-gnu-ld was given.
5633 if test "${with_gnu_ld+set}" = set; then
5634 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5640 if test "$GCC" = yes; then
5641 # Check if gcc -print-prog-name=ld gives a path.
5642 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5643 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5646 # gcc leaves a trailing carriage return which upsets mingw
5647 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5649 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5652 # Accept absolute paths.
5654 re_direlt='/[^/][^/]*/\.\./'
5655 # Canonicalize the pathname of ld
5656 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5657 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5658 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5660 test -z "$LD" && LD="$ac_prog"
5663 # If it fails, then pretend we aren't using GCC.
5667 # If it is relative, then search for the first ld in PATH.
5671 elif test "$with_gnu_ld" = yes; then
5672 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5673 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5675 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5676 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5678 if test "${lt_cv_path_LD+set}" = set; then
5679 echo $ECHO_N "(cached) $ECHO_C" >&6
5681 if test -z "$LD"; then
5682 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5683 for ac_dir in $PATH; do
5685 test -z "$ac_dir" && ac_dir=.
5686 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5687 lt_cv_path_LD="$ac_dir/$ac_prog"
5688 # Check to see if the program is GNU ld. I'd rather use --version,
5689 # but apparently some variants of GNU ld only accept -v.
5690 # Break only if it was the GNU/non-GNU ld that we prefer.
5691 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5692 *GNU* | *'with BFD'*)
5693 test "$with_gnu_ld" != no && break
5696 test "$with_gnu_ld" != yes && break
5703 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5708 if test -n "$LD"; then
5709 { echo "$as_me:$LINENO: result: $LD" >&5
5710 echo "${ECHO_T}$LD" >&6; }
5712 { echo "$as_me:$LINENO: result: no" >&5
5713 echo "${ECHO_T}no" >&6; }
5715 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5716 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5717 { (exit 1); exit 1; }; }
5718 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5719 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5720 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5721 echo $ECHO_N "(cached) $ECHO_C" >&6
5723 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5724 case `$LD -v 2>&1 </dev/null` in
5725 *GNU* | *'with BFD'*)
5726 lt_cv_prog_gnu_ld=yes
5729 lt_cv_prog_gnu_ld=no
5733 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5734 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5735 with_gnu_ld=$lt_cv_prog_gnu_ld
5745 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5746 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5747 if test "${lt_cv_path_NM+set}" = set; then
5748 echo $ECHO_N "(cached) $ECHO_C" >&6
5750 if test -n "$NM"; then
5751 # Let the user override the test.
5754 lt_nm_to_check="${ac_tool_prefix}nm"
5755 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5756 lt_nm_to_check="$lt_nm_to_check nm"
5758 for lt_tmp_nm in $lt_nm_to_check; do
5759 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5760 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5762 test -z "$ac_dir" && ac_dir=.
5763 tmp_nm="$ac_dir/$lt_tmp_nm"
5764 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5765 # Check to see if the nm accepts a BSD-compat flag.
5766 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5767 # nm: unknown option "B" ignored
5768 # Tru64's nm complains that /dev/null is an invalid object file
5769 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5770 */dev/null* | *'Invalid file or object type'*)
5771 lt_cv_path_NM="$tmp_nm -B"
5775 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5777 lt_cv_path_NM="$tmp_nm -p"
5781 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5782 continue # so that we can try to find one that supports BSD flags
5791 : ${lt_cv_path_NM=no}
5794 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5795 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5796 if test "$lt_cv_path_NM" != "no"; then
5799 # Didn't find any BSD compatible name lister, look for dumpbin.
5800 if test -n "$ac_tool_prefix"; then
5801 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5803 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5804 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5805 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5807 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5808 echo $ECHO_N "(cached) $ECHO_C" >&6
5810 if test -n "$DUMPBIN"; then
5811 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5817 test -z "$as_dir" && as_dir=.
5818 for ac_exec_ext in '' $ac_executable_extensions; do
5819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5820 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5830 DUMPBIN=$ac_cv_prog_DUMPBIN
5831 if test -n "$DUMPBIN"; then
5832 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5833 echo "${ECHO_T}$DUMPBIN" >&6; }
5835 { echo "$as_me:$LINENO: result: no" >&5
5836 echo "${ECHO_T}no" >&6; }
5840 test -n "$DUMPBIN" && break
5843 if test -z "$DUMPBIN"; then
5844 ac_ct_DUMPBIN=$DUMPBIN
5845 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5847 # Extract the first word of "$ac_prog", so it can be a program name with args.
5848 set dummy $ac_prog; ac_word=$2
5849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5851 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5852 echo $ECHO_N "(cached) $ECHO_C" >&6
5854 if test -n "$ac_ct_DUMPBIN"; then
5855 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5861 test -z "$as_dir" && as_dir=.
5862 for ac_exec_ext in '' $ac_executable_extensions; do
5863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5864 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5874 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5875 if test -n "$ac_ct_DUMPBIN"; then
5876 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5877 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5879 { echo "$as_me:$LINENO: result: no" >&5
5880 echo "${ECHO_T}no" >&6; }
5884 test -n "$ac_ct_DUMPBIN" && break
5887 if test "x$ac_ct_DUMPBIN" = x; then
5890 case $cross_compiling:$ac_tool_warned in
5892 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5893 whose name does not start with the host triplet. If you think this
5894 configuration is useful to you, please write to autoconf@gnu.org." >&5
5895 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5896 whose name does not start with the host triplet. If you think this
5897 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5898 ac_tool_warned=yes ;;
5900 DUMPBIN=$ac_ct_DUMPBIN
5905 if test "$DUMPBIN" != ":"; then
5909 test -z "$NM" && NM=nm
5916 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5917 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5918 if test "${lt_cv_nm_interface+set}" = set; then
5919 echo $ECHO_N "(cached) $ECHO_C" >&6
5921 lt_cv_nm_interface="BSD nm"
5922 echo "int some_variable = 0;" > conftest.$ac_ext
5923 (eval echo "\"\$as_me:5923: $ac_compile\"" >&5)
5924 (eval "$ac_compile" 2>conftest.err)
5925 cat conftest.err >&5
5926 (eval echo "\"\$as_me:5926: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5927 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5928 cat conftest.err >&5
5929 (eval echo "\"\$as_me:5929: output\"" >&5)
5930 cat conftest.out >&5
5931 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5932 lt_cv_nm_interface="MS dumpbin"
5936 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5937 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
5939 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5940 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5942 if test "$LN_S" = "ln -s"; then
5943 { echo "$as_me:$LINENO: result: yes" >&5
5944 echo "${ECHO_T}yes" >&6; }
5946 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5947 echo "${ECHO_T}no, using $LN_S" >&6; }
5950 # find the maximum length of command line arguments
5951 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5952 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5953 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5954 echo $ECHO_N "(cached) $ECHO_C" >&6
5961 # On DJGPP, this test can blow up pretty badly due to problems in libc
5962 # (any single argument exceeding 2000 bytes causes a buffer overrun
5963 # during glob expansion). Even if it were fixed, the result of this
5964 # check would be larger than it should be.
5965 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5969 # Under GNU Hurd, this test is not required because there is
5970 # no limit to the length of command line arguments.
5971 # Libtool will interpret -1 as no limit whatsoever
5972 lt_cv_sys_max_cmd_len=-1;
5975 cygwin* | mingw* | cegcc*)
5976 # On Win9x/ME, this test blows up -- it succeeds, but takes
5977 # about 5 minutes as the teststring grows exponentially.
5978 # Worse, since 9x/ME are not pre-emptively multitasking,
5979 # you end up with a "frozen" computer, even though with patience
5980 # the test eventually succeeds (with a max line length of 256k).
5981 # Instead, let's just punt: use the minimum linelength reported by
5982 # all of the supported platforms: 8192 (on NT/2K/XP).
5983 lt_cv_sys_max_cmd_len=8192;
5987 # On AmigaOS with pdksh, this test takes hours, literally.
5988 # So we just punt and use a minimum line length of 8192.
5989 lt_cv_sys_max_cmd_len=8192;
5992 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5993 # This has been around since 386BSD, at least. Likely further.
5994 if test -x /sbin/sysctl; then
5995 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5996 elif test -x /usr/sbin/sysctl; then
5997 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5999 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6001 # And add a safety zone
6002 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6003 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6007 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6008 lt_cv_sys_max_cmd_len=196608
6012 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6013 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6014 # nice to cause kernel panics so lets avoid the loop below.
6015 # First set a reasonable default.
6016 lt_cv_sys_max_cmd_len=16384
6018 if test -x /sbin/sysconfig; then
6019 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6020 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6025 lt_cv_sys_max_cmd_len=102400
6027 sysv5* | sco5v6* | sysv4.2uw2*)
6028 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6029 if test -n "$kargmax"; then
6030 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6032 lt_cv_sys_max_cmd_len=32768
6036 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6037 if test -n "$lt_cv_sys_max_cmd_len"; then
6038 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6039 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6041 # Make teststring a little bigger before we do anything with it.
6042 # a 1K string should be a reasonable start.
6043 for i in 1 2 3 4 5 6 7 8 ; do
6044 teststring=$teststring$teststring
6046 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6047 # If test is not a shell built-in, we'll probably end up computing a
6048 # maximum length that is only half of the actual maximum length, but
6050 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6051 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6052 test $i != 17 # 1/2 MB should be enough
6055 teststring=$teststring$teststring
6057 # Only check the string length outside the loop.
6058 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6060 # Add a significant safety factor because C++ compilers can tack on
6061 # massive amounts of additional arguments before passing them to the
6062 # linker. It appears as though 1/2 is a usable value.
6063 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6070 if test -n $lt_cv_sys_max_cmd_len ; then
6071 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6072 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6074 { echo "$as_me:$LINENO: result: none" >&5
6075 echo "${ECHO_T}none" >&6; }
6077 max_cmd_len=$lt_cv_sys_max_cmd_len
6088 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6089 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
6090 # Try some XSI features
6093 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6095 && eval 'test $(( 1 + 1 )) -eq 2 \
6096 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6098 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
6099 echo "${ECHO_T}$xsi_shell" >&6; }
6102 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6103 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
6105 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6107 && lt_shell_append=yes
6108 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6109 echo "${ECHO_T}$lt_shell_append" >&6; }
6112 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6122 # test EBCDIC or ASCII
6123 case `echo X|tr X '\101'` in
6124 A) # ASCII based system
6125 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6126 lt_SP2NL='tr \040 \012'
6127 lt_NL2SP='tr \015\012 \040\040'
6129 *) # EBCDIC based system
6130 lt_SP2NL='tr \100 \n'
6131 lt_NL2SP='tr \r\n \100\100'
6143 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6144 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6145 if test "${lt_cv_ld_reload_flag+set}" = set; then
6146 echo $ECHO_N "(cached) $ECHO_C" >&6
6148 lt_cv_ld_reload_flag='-r'
6150 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6151 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6152 reload_flag=$lt_cv_ld_reload_flag
6153 case $reload_flag in
6155 *) reload_flag=" $reload_flag" ;;
6157 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6160 if test "$GCC" = yes; then
6161 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6163 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6176 if test -n "$ac_tool_prefix"; then
6177 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6178 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6181 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6182 echo $ECHO_N "(cached) $ECHO_C" >&6
6184 if test -n "$OBJDUMP"; then
6185 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6191 test -z "$as_dir" && as_dir=.
6192 for ac_exec_ext in '' $ac_executable_extensions; do
6193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6194 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6204 OBJDUMP=$ac_cv_prog_OBJDUMP
6205 if test -n "$OBJDUMP"; then
6206 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6207 echo "${ECHO_T}$OBJDUMP" >&6; }
6209 { echo "$as_me:$LINENO: result: no" >&5
6210 echo "${ECHO_T}no" >&6; }
6215 if test -z "$ac_cv_prog_OBJDUMP"; then
6216 ac_ct_OBJDUMP=$OBJDUMP
6217 # Extract the first word of "objdump", so it can be a program name with args.
6218 set dummy objdump; ac_word=$2
6219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6221 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6222 echo $ECHO_N "(cached) $ECHO_C" >&6
6224 if test -n "$ac_ct_OBJDUMP"; then
6225 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6231 test -z "$as_dir" && as_dir=.
6232 for ac_exec_ext in '' $ac_executable_extensions; do
6233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6234 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6244 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6245 if test -n "$ac_ct_OBJDUMP"; then
6246 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6247 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6249 { echo "$as_me:$LINENO: result: no" >&5
6250 echo "${ECHO_T}no" >&6; }
6253 if test "x$ac_ct_OBJDUMP" = x; then
6256 case $cross_compiling:$ac_tool_warned in
6258 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6259 whose name does not start with the host triplet. If you think this
6260 configuration is useful to you, please write to autoconf@gnu.org." >&5
6261 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6262 whose name does not start with the host triplet. If you think this
6263 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6264 ac_tool_warned=yes ;;
6266 OBJDUMP=$ac_ct_OBJDUMP
6269 OBJDUMP="$ac_cv_prog_OBJDUMP"
6272 test -z "$OBJDUMP" && OBJDUMP=objdump
6282 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6283 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6284 if test "${lt_cv_deplibs_check_method+set}" = set; then
6285 echo $ECHO_N "(cached) $ECHO_C" >&6
6287 lt_cv_file_magic_cmd='$MAGIC_CMD'
6288 lt_cv_file_magic_test_file=
6289 lt_cv_deplibs_check_method='unknown'
6290 # Need to set the preceding variable on all platforms that support
6291 # interlibrary dependencies.
6292 # 'none' -- dependencies not supported.
6293 # `unknown' -- same as none, but documents that we really don't know.
6294 # 'pass_all' -- all dependencies passed with no checks.
6295 # 'test_compile' -- check by making test program.
6296 # 'file_magic [[regex]]' -- check by looking for files in library path
6297 # which responds to the $file_magic_cmd with a given extended regex.
6298 # If you have `file' or equivalent on your system and you're not sure
6299 # whether `pass_all' will *always* work, you probably want this one.
6303 lt_cv_deplibs_check_method=pass_all
6307 lt_cv_deplibs_check_method=pass_all
6311 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6312 lt_cv_file_magic_cmd='/usr/bin/file -L'
6313 lt_cv_file_magic_test_file=/shlib/libc.so
6317 # func_win32_libid is a shell function defined in ltmain.sh
6318 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6319 lt_cv_file_magic_cmd='func_win32_libid'
6323 # Base MSYS/MinGW do not provide the 'file' command needed by
6324 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6325 # unless we find 'file', for example because we are cross-compiling.
6326 if ( file / ) >/dev/null 2>&1; then
6327 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6328 lt_cv_file_magic_cmd='func_win32_libid'
6330 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6331 lt_cv_file_magic_cmd='$OBJDUMP -f'
6336 # use the weaker test based on 'objdump'. See mingw*.
6337 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6338 lt_cv_file_magic_cmd='$OBJDUMP -f'
6341 darwin* | rhapsody*)
6342 lt_cv_deplibs_check_method=pass_all
6345 freebsd* | dragonfly*)
6346 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6349 # Not sure whether the presence of OpenBSD here was a mistake.
6350 # Let's accept both of them until this is cleared up.
6351 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6352 lt_cv_file_magic_cmd=/usr/bin/file
6353 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6357 lt_cv_deplibs_check_method=pass_all
6362 lt_cv_deplibs_check_method=pass_all
6365 hpux10.20* | hpux11*)
6366 lt_cv_file_magic_cmd=/usr/bin/file
6369 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6370 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6373 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]'
6374 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6377 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6378 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6384 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6385 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6388 irix5* | irix6* | nonstopux*)
6390 *-32|*"-32 ") libmagic=32-bit;;
6391 *-n32|*"-n32 ") libmagic=N32;;
6392 *-64|*"-64 ") libmagic=64-bit;;
6393 *) libmagic=never-match;;
6395 lt_cv_deplibs_check_method=pass_all
6398 # This must be Linux ELF.
6399 linux* | k*bsd*-gnu)
6400 lt_cv_deplibs_check_method=pass_all
6404 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6405 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6407 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6412 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6413 lt_cv_file_magic_cmd=/usr/bin/file
6414 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6418 lt_cv_deplibs_check_method=pass_all
6422 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6423 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6425 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6429 osf3* | osf4* | osf5*)
6430 lt_cv_deplibs_check_method=pass_all
6434 lt_cv_deplibs_check_method=pass_all
6438 lt_cv_deplibs_check_method=pass_all
6441 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6442 lt_cv_deplibs_check_method=pass_all
6446 case $host_vendor in
6448 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]'
6449 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6452 lt_cv_deplibs_check_method=pass_all
6455 lt_cv_file_magic_cmd='/bin/file'
6456 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6459 lt_cv_file_magic_cmd='/bin/file'
6460 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6461 lt_cv_file_magic_test_file=/lib/libc.so
6464 lt_cv_deplibs_check_method=pass_all
6467 lt_cv_deplibs_check_method=pass_all
6473 lt_cv_deplibs_check_method=pass_all
6478 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6479 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6480 file_magic_cmd=$lt_cv_file_magic_cmd
6481 deplibs_check_method=$lt_cv_deplibs_check_method
6482 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6495 if test -n "$ac_tool_prefix"; then
6496 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6497 set dummy ${ac_tool_prefix}ar; ac_word=$2
6498 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6500 if test "${ac_cv_prog_AR+set}" = set; then
6501 echo $ECHO_N "(cached) $ECHO_C" >&6
6503 if test -n "$AR"; then
6504 ac_cv_prog_AR="$AR" # Let the user override the test.
6506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6510 test -z "$as_dir" && as_dir=.
6511 for ac_exec_ext in '' $ac_executable_extensions; do
6512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6513 ac_cv_prog_AR="${ac_tool_prefix}ar"
6514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6524 if test -n "$AR"; then
6525 { echo "$as_me:$LINENO: result: $AR" >&5
6526 echo "${ECHO_T}$AR" >&6; }
6528 { echo "$as_me:$LINENO: result: no" >&5
6529 echo "${ECHO_T}no" >&6; }
6534 if test -z "$ac_cv_prog_AR"; then
6536 # Extract the first word of "ar", so it can be a program name with args.
6537 set dummy ar; ac_word=$2
6538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6540 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6541 echo $ECHO_N "(cached) $ECHO_C" >&6
6543 if test -n "$ac_ct_AR"; then
6544 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6550 test -z "$as_dir" && as_dir=.
6551 for ac_exec_ext in '' $ac_executable_extensions; do
6552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6553 ac_cv_prog_ac_ct_AR="ar"
6554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6563 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6564 if test -n "$ac_ct_AR"; then
6565 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6566 echo "${ECHO_T}$ac_ct_AR" >&6; }
6568 { echo "$as_me:$LINENO: result: no" >&5
6569 echo "${ECHO_T}no" >&6; }
6572 if test "x$ac_ct_AR" = x; then
6575 case $cross_compiling:$ac_tool_warned in
6577 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6578 whose name does not start with the host triplet. If you think this
6579 configuration is useful to you, please write to autoconf@gnu.org." >&5
6580 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6581 whose name does not start with the host triplet. If you think this
6582 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6583 ac_tool_warned=yes ;;
6591 test -z "$AR" && AR=ar
6592 test -z "$AR_FLAGS" && AR_FLAGS=cru
6604 if test -n "$ac_tool_prefix"; then
6605 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6606 set dummy ${ac_tool_prefix}strip; ac_word=$2
6607 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6609 if test "${ac_cv_prog_STRIP+set}" = set; then
6610 echo $ECHO_N "(cached) $ECHO_C" >&6
6612 if test -n "$STRIP"; then
6613 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6619 test -z "$as_dir" && as_dir=.
6620 for ac_exec_ext in '' $ac_executable_extensions; do
6621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6622 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6632 STRIP=$ac_cv_prog_STRIP
6633 if test -n "$STRIP"; then
6634 { echo "$as_me:$LINENO: result: $STRIP" >&5
6635 echo "${ECHO_T}$STRIP" >&6; }
6637 { echo "$as_me:$LINENO: result: no" >&5
6638 echo "${ECHO_T}no" >&6; }
6643 if test -z "$ac_cv_prog_STRIP"; then
6645 # Extract the first word of "strip", so it can be a program name with args.
6646 set dummy strip; ac_word=$2
6647 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6649 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6650 echo $ECHO_N "(cached) $ECHO_C" >&6
6652 if test -n "$ac_ct_STRIP"; then
6653 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6659 test -z "$as_dir" && as_dir=.
6660 for ac_exec_ext in '' $ac_executable_extensions; do
6661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6662 ac_cv_prog_ac_ct_STRIP="strip"
6663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6672 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6673 if test -n "$ac_ct_STRIP"; then
6674 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6675 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6677 { echo "$as_me:$LINENO: result: no" >&5
6678 echo "${ECHO_T}no" >&6; }
6681 if test "x$ac_ct_STRIP" = x; then
6684 case $cross_compiling:$ac_tool_warned in
6686 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6687 whose name does not start with the host triplet. If you think this
6688 configuration is useful to you, please write to autoconf@gnu.org." >&5
6689 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6690 whose name does not start with the host triplet. If you think this
6691 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6692 ac_tool_warned=yes ;;
6697 STRIP="$ac_cv_prog_STRIP"
6700 test -z "$STRIP" && STRIP=:
6707 if test -n "$ac_tool_prefix"; then
6708 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6709 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6712 if test "${ac_cv_prog_RANLIB+set}" = set; then
6713 echo $ECHO_N "(cached) $ECHO_C" >&6
6715 if test -n "$RANLIB"; then
6716 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6722 test -z "$as_dir" && as_dir=.
6723 for ac_exec_ext in '' $ac_executable_extensions; do
6724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6725 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6735 RANLIB=$ac_cv_prog_RANLIB
6736 if test -n "$RANLIB"; then
6737 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6738 echo "${ECHO_T}$RANLIB" >&6; }
6740 { echo "$as_me:$LINENO: result: no" >&5
6741 echo "${ECHO_T}no" >&6; }
6746 if test -z "$ac_cv_prog_RANLIB"; then
6747 ac_ct_RANLIB=$RANLIB
6748 # Extract the first word of "ranlib", so it can be a program name with args.
6749 set dummy ranlib; ac_word=$2
6750 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6752 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6753 echo $ECHO_N "(cached) $ECHO_C" >&6
6755 if test -n "$ac_ct_RANLIB"; then
6756 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762 test -z "$as_dir" && as_dir=.
6763 for ac_exec_ext in '' $ac_executable_extensions; do
6764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6765 ac_cv_prog_ac_ct_RANLIB="ranlib"
6766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6775 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6776 if test -n "$ac_ct_RANLIB"; then
6777 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6778 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6780 { echo "$as_me:$LINENO: result: no" >&5
6781 echo "${ECHO_T}no" >&6; }
6784 if test "x$ac_ct_RANLIB" = x; then
6787 case $cross_compiling:$ac_tool_warned in
6789 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6790 whose name does not start with the host triplet. If you think this
6791 configuration is useful to you, please write to autoconf@gnu.org." >&5
6792 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6793 whose name does not start with the host triplet. If you think this
6794 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6795 ac_tool_warned=yes ;;
6797 RANLIB=$ac_ct_RANLIB
6800 RANLIB="$ac_cv_prog_RANLIB"
6803 test -z "$RANLIB" && RANLIB=:
6810 # Determine commands to create old-style static archives.
6811 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6812 old_postinstall_cmds='chmod 644 $oldlib'
6813 old_postuninstall_cmds=
6815 if test -n "$RANLIB"; then
6818 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6821 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6824 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6860 # If no C compiler was specified, use CC.
6863 # If no C compiler flags were specified, use CFLAGS.
6864 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6866 # Allow CC to be a program name with arguments.
6870 # Check for command to grab the raw symbol name followed by C symbol from nm.
6871 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6872 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6873 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6874 echo $ECHO_N "(cached) $ECHO_C" >&6
6877 # These are sane defaults that work on at least a few old systems.
6878 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6880 # Character class describing NM global symbol codes.
6881 symcode='[BCDEGRST]'
6883 # Regexp to match symbols that can be accessed directly from C.
6884 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6886 # Define system-specific variables.
6891 cygwin* | mingw* | pw32* | cegcc*)
6892 symcode='[ABCDGISTW]'
6895 if test "$host_cpu" = ia64; then
6896 symcode='[ABCDEGRST]'
6900 symcode='[BCDEGRST]'
6903 symcode='[BCDEGQRST]'
6914 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6922 # If we're using GNU nm, then use its standard symbol codes.
6923 case `$NM -V 2>&1` in
6924 *GNU* | *'with BFD'*)
6925 symcode='[ABCDGIRSTW]' ;;
6928 # Transform an extracted symbol line into a proper C declaration.
6929 # Some systems (esp. on ia64) link data and code symbols differently,
6930 # so use this general approach.
6931 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6933 # Transform an extracted symbol line into symbol name and symbol address
6934 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6935 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'"
6937 # Handle CRLF in mingw tool chain
6941 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6945 # Try without a prefix underscore, then with it.
6946 for ac_symprfx in "" "_"; do
6948 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6949 symxfrm="\\1 $ac_symprfx\\2 \\2"
6951 # Write the raw and C identifiers.
6952 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6953 # Fake it for dumpbin and say T for any non-static function
6954 # and D for any global variable.
6955 # Also find C++ and __fastcall symbols from MSVC++,
6956 # which start with @ or ?.
6957 lt_cv_sys_global_symbol_pipe="$AWK '"\
6958 " {last_section=section; section=\$ 3};"\
6959 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6960 " \$ 0!~/External *\|/{next};"\
6961 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6962 " {if(hide[section]) next};"\
6963 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6964 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6965 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6966 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6967 " ' prfx=^$ac_symprfx"
6969 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6972 # Check to see that the pipe works correctly.
6976 cat > conftest.$ac_ext <<_LT_EOF
6981 void nm_test_func(void);
6982 void nm_test_func(void){}
6986 int main(){nm_test_var='a';nm_test_func();return(0);}
6989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6990 (eval $ac_compile) 2>&5
6992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993 (exit $ac_status); }; then
6994 # Now try to grab the symbols.
6996 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6997 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000 (exit $ac_status); } && test -s "$nlist"; then
7001 # Try sorting and uniquifying the output.
7002 if sort "$nlist" | uniq > "$nlist"T; then
7003 mv -f "$nlist"T "$nlist"
7008 # Make sure that we snagged all the symbols we need.
7009 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7010 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7011 cat <<_LT_EOF > conftest.$ac_ext
7017 # Now generate the symbol file.
7018 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7020 cat <<_LT_EOF >> conftest.$ac_ext
7022 /* The mapping between symbol names and symbols. */
7027 lt__PROGRAM__LTX_preloaded_symbols[] =
7029 { "@PROGRAM@", (void *) 0 },
7031 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7032 cat <<\_LT_EOF >> conftest.$ac_ext
7036 /* This works around a problem in FreeBSD linker */
7037 #ifdef FREEBSD_WORKAROUND
7038 static const void *lt_preloaded_setup() {
7039 return lt__PROGRAM__LTX_preloaded_symbols;
7047 # Now try linking the two files.
7048 mv conftest.$ac_objext conftstm.$ac_objext
7049 lt_save_LIBS="$LIBS"
7050 lt_save_CFLAGS="$CFLAGS"
7051 LIBS="conftstm.$ac_objext"
7052 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7054 (eval $ac_link) 2>&5
7056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7060 LIBS="$lt_save_LIBS"
7061 CFLAGS="$lt_save_CFLAGS"
7063 echo "cannot find nm_test_func in $nlist" >&5
7066 echo "cannot find nm_test_var in $nlist" >&5
7069 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7072 echo "$progname: failed program was:" >&5
7073 cat conftest.$ac_ext >&5
7075 rm -rf conftest* conftst*
7077 # Do not use the global_symbol_pipe unless it works.
7078 if test "$pipe_works" = yes; then
7081 lt_cv_sys_global_symbol_pipe=
7087 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7088 lt_cv_sys_global_symbol_to_cdecl=
7090 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7091 { echo "$as_me:$LINENO: result: failed" >&5
7092 echo "${ECHO_T}failed" >&6; }
7094 { echo "$as_me:$LINENO: result: ok" >&5
7095 echo "${ECHO_T}ok" >&6; }
7119 # Check whether --enable-libtool-lock was given.
7120 if test "${enable_libtool_lock+set}" = set; then
7121 enableval=$enable_libtool_lock;
7124 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7126 # Some flags need to be propagated to the compiler or linker for good
7130 # Find out which ABI we are using.
7131 echo 'int i;' > conftest.$ac_ext
7132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7133 (eval $ac_compile) 2>&5
7135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136 (exit $ac_status); }; then
7137 case `/usr/bin/file conftest.$ac_objext` in
7149 # Find out which ABI we are using.
7150 echo '#line 7150 "configure"' > conftest.$ac_ext
7151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7152 (eval $ac_compile) 2>&5
7154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155 (exit $ac_status); }; then
7156 if test "$lt_cv_prog_gnu_ld" = yes; then
7157 case `/usr/bin/file conftest.$ac_objext` in
7159 LD="${LD-ld} -melf32bsmip"
7162 LD="${LD-ld} -melf32bmipn32"
7165 LD="${LD-ld} -melf64bmip"
7169 case `/usr/bin/file conftest.$ac_objext` in
7185 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7186 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7187 # Find out which ABI we are using.
7188 echo 'int i;' > conftest.$ac_ext
7189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7190 (eval $ac_compile) 2>&5
7192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193 (exit $ac_status); }; then
7194 case `/usr/bin/file conftest.o` in
7197 x86_64-*kfreebsd*-gnu)
7198 LD="${LD-ld} -m elf_i386_fbsd"
7201 LD="${LD-ld} -m elf_i386"
7203 ppc64-*linux*|powerpc64-*linux*)
7204 LD="${LD-ld} -m elf32ppclinux"
7207 LD="${LD-ld} -m elf_s390"
7210 LD="${LD-ld} -m elf32_sparc"
7216 x86_64-*kfreebsd*-gnu)
7217 LD="${LD-ld} -m elf_x86_64_fbsd"
7220 LD="${LD-ld} -m elf_x86_64"
7222 ppc*-*linux*|powerpc*-*linux*)
7223 LD="${LD-ld} -m elf64ppc"
7225 s390*-*linux*|s390*-*tpf*)
7226 LD="${LD-ld} -m elf64_s390"
7229 LD="${LD-ld} -m elf64_sparc"
7239 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7240 SAVE_CFLAGS="$CFLAGS"
7241 CFLAGS="$CFLAGS -belf"
7242 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7243 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7244 if test "${lt_cv_cc_needs_belf+set}" = set; then
7245 echo $ECHO_N "(cached) $ECHO_C" >&6
7248 ac_cpp='$CPP $CPPFLAGS'
7249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7253 cat >conftest.$ac_ext <<_ACEOF
7256 cat confdefs.h >>conftest.$ac_ext
7257 cat >>conftest.$ac_ext <<_ACEOF
7258 /* end confdefs.h. */
7268 rm -f conftest.$ac_objext conftest$ac_exeext
7269 if { (ac_try="$ac_link"
7271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7272 *) ac_try_echo=$ac_try;;
7274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7275 (eval "$ac_link") 2>conftest.er1
7277 grep -v '^ *+' conftest.er1 >conftest.err
7279 cat conftest.err >&5
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); } && {
7282 test -z "$ac_c_werror_flag" ||
7283 test ! -s conftest.err
7284 } && test -s conftest$ac_exeext &&
7285 $as_test_x conftest$ac_exeext; then
7286 lt_cv_cc_needs_belf=yes
7288 echo "$as_me: failed program was:" >&5
7289 sed 's/^/| /' conftest.$ac_ext >&5
7291 lt_cv_cc_needs_belf=no
7294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7295 conftest$ac_exeext conftest.$ac_ext
7297 ac_cpp='$CPP $CPPFLAGS'
7298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7303 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7304 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7305 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7306 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7307 CFLAGS="$SAVE_CFLAGS"
7311 # Find out which ABI we are using.
7312 echo 'int i;' > conftest.$ac_ext
7313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7314 (eval $ac_compile) 2>&5
7316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317 (exit $ac_status); }; then
7318 case `/usr/bin/file conftest.o` in
7320 case $lt_cv_prog_gnu_ld in
7321 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7323 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7335 need_locks="$enable_libtool_lock"
7339 rhapsody* | darwin*)
7340 if test -n "$ac_tool_prefix"; then
7341 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7342 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7345 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7346 echo $ECHO_N "(cached) $ECHO_C" >&6
7348 if test -n "$DSYMUTIL"; then
7349 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355 test -z "$as_dir" && as_dir=.
7356 for ac_exec_ext in '' $ac_executable_extensions; do
7357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7358 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7368 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7369 if test -n "$DSYMUTIL"; then
7370 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7371 echo "${ECHO_T}$DSYMUTIL" >&6; }
7373 { echo "$as_me:$LINENO: result: no" >&5
7374 echo "${ECHO_T}no" >&6; }
7379 if test -z "$ac_cv_prog_DSYMUTIL"; then
7380 ac_ct_DSYMUTIL=$DSYMUTIL
7381 # Extract the first word of "dsymutil", so it can be a program name with args.
7382 set dummy dsymutil; ac_word=$2
7383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7385 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7386 echo $ECHO_N "(cached) $ECHO_C" >&6
7388 if test -n "$ac_ct_DSYMUTIL"; then
7389 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7395 test -z "$as_dir" && as_dir=.
7396 for ac_exec_ext in '' $ac_executable_extensions; do
7397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7398 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7408 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7409 if test -n "$ac_ct_DSYMUTIL"; then
7410 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7411 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7413 { echo "$as_me:$LINENO: result: no" >&5
7414 echo "${ECHO_T}no" >&6; }
7417 if test "x$ac_ct_DSYMUTIL" = x; then
7420 case $cross_compiling:$ac_tool_warned in
7422 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7423 whose name does not start with the host triplet. If you think this
7424 configuration is useful to you, please write to autoconf@gnu.org." >&5
7425 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7426 whose name does not start with the host triplet. If you think this
7427 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7428 ac_tool_warned=yes ;;
7430 DSYMUTIL=$ac_ct_DSYMUTIL
7433 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7436 if test -n "$ac_tool_prefix"; then
7437 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7438 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7439 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7441 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7442 echo $ECHO_N "(cached) $ECHO_C" >&6
7444 if test -n "$NMEDIT"; then
7445 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7451 test -z "$as_dir" && as_dir=.
7452 for ac_exec_ext in '' $ac_executable_extensions; do
7453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7454 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7464 NMEDIT=$ac_cv_prog_NMEDIT
7465 if test -n "$NMEDIT"; then
7466 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7467 echo "${ECHO_T}$NMEDIT" >&6; }
7469 { echo "$as_me:$LINENO: result: no" >&5
7470 echo "${ECHO_T}no" >&6; }
7475 if test -z "$ac_cv_prog_NMEDIT"; then
7476 ac_ct_NMEDIT=$NMEDIT
7477 # Extract the first word of "nmedit", so it can be a program name with args.
7478 set dummy nmedit; ac_word=$2
7479 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7481 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7482 echo $ECHO_N "(cached) $ECHO_C" >&6
7484 if test -n "$ac_ct_NMEDIT"; then
7485 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7491 test -z "$as_dir" && as_dir=.
7492 for ac_exec_ext in '' $ac_executable_extensions; do
7493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7494 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7504 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7505 if test -n "$ac_ct_NMEDIT"; then
7506 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7507 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7509 { echo "$as_me:$LINENO: result: no" >&5
7510 echo "${ECHO_T}no" >&6; }
7513 if test "x$ac_ct_NMEDIT" = x; then
7516 case $cross_compiling:$ac_tool_warned in
7518 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7519 whose name does not start with the host triplet. If you think this
7520 configuration is useful to you, please write to autoconf@gnu.org." >&5
7521 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7522 whose name does not start with the host triplet. If you think this
7523 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7524 ac_tool_warned=yes ;;
7526 NMEDIT=$ac_ct_NMEDIT
7529 NMEDIT="$ac_cv_prog_NMEDIT"
7532 if test -n "$ac_tool_prefix"; then
7533 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7534 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7537 if test "${ac_cv_prog_LIPO+set}" = set; then
7538 echo $ECHO_N "(cached) $ECHO_C" >&6
7540 if test -n "$LIPO"; then
7541 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7547 test -z "$as_dir" && as_dir=.
7548 for ac_exec_ext in '' $ac_executable_extensions; do
7549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7550 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7560 LIPO=$ac_cv_prog_LIPO
7561 if test -n "$LIPO"; then
7562 { echo "$as_me:$LINENO: result: $LIPO" >&5
7563 echo "${ECHO_T}$LIPO" >&6; }
7565 { echo "$as_me:$LINENO: result: no" >&5
7566 echo "${ECHO_T}no" >&6; }
7571 if test -z "$ac_cv_prog_LIPO"; then
7573 # Extract the first word of "lipo", so it can be a program name with args.
7574 set dummy lipo; ac_word=$2
7575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7577 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7578 echo $ECHO_N "(cached) $ECHO_C" >&6
7580 if test -n "$ac_ct_LIPO"; then
7581 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7587 test -z "$as_dir" && as_dir=.
7588 for ac_exec_ext in '' $ac_executable_extensions; do
7589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7590 ac_cv_prog_ac_ct_LIPO="lipo"
7591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7600 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7601 if test -n "$ac_ct_LIPO"; then
7602 { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7603 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7605 { echo "$as_me:$LINENO: result: no" >&5
7606 echo "${ECHO_T}no" >&6; }
7609 if test "x$ac_ct_LIPO" = x; then
7612 case $cross_compiling:$ac_tool_warned in
7614 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7615 whose name does not start with the host triplet. If you think this
7616 configuration is useful to you, please write to autoconf@gnu.org." >&5
7617 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7618 whose name does not start with the host triplet. If you think this
7619 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7620 ac_tool_warned=yes ;;
7625 LIPO="$ac_cv_prog_LIPO"
7628 if test -n "$ac_tool_prefix"; then
7629 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7630 set dummy ${ac_tool_prefix}otool; ac_word=$2
7631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7633 if test "${ac_cv_prog_OTOOL+set}" = set; then
7634 echo $ECHO_N "(cached) $ECHO_C" >&6
7636 if test -n "$OTOOL"; then
7637 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7643 test -z "$as_dir" && as_dir=.
7644 for ac_exec_ext in '' $ac_executable_extensions; do
7645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7646 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7656 OTOOL=$ac_cv_prog_OTOOL
7657 if test -n "$OTOOL"; then
7658 { echo "$as_me:$LINENO: result: $OTOOL" >&5
7659 echo "${ECHO_T}$OTOOL" >&6; }
7661 { echo "$as_me:$LINENO: result: no" >&5
7662 echo "${ECHO_T}no" >&6; }
7667 if test -z "$ac_cv_prog_OTOOL"; then
7669 # Extract the first word of "otool", so it can be a program name with args.
7670 set dummy otool; ac_word=$2
7671 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7673 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7674 echo $ECHO_N "(cached) $ECHO_C" >&6
7676 if test -n "$ac_ct_OTOOL"; then
7677 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7683 test -z "$as_dir" && as_dir=.
7684 for ac_exec_ext in '' $ac_executable_extensions; do
7685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7686 ac_cv_prog_ac_ct_OTOOL="otool"
7687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7696 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7697 if test -n "$ac_ct_OTOOL"; then
7698 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7699 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
7701 { echo "$as_me:$LINENO: result: no" >&5
7702 echo "${ECHO_T}no" >&6; }
7705 if test "x$ac_ct_OTOOL" = x; then
7708 case $cross_compiling:$ac_tool_warned in
7710 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7711 whose name does not start with the host triplet. If you think this
7712 configuration is useful to you, please write to autoconf@gnu.org." >&5
7713 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7714 whose name does not start with the host triplet. If you think this
7715 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7716 ac_tool_warned=yes ;;
7721 OTOOL="$ac_cv_prog_OTOOL"
7724 if test -n "$ac_tool_prefix"; then
7725 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7726 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7727 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7729 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7730 echo $ECHO_N "(cached) $ECHO_C" >&6
7732 if test -n "$OTOOL64"; then
7733 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7739 test -z "$as_dir" && as_dir=.
7740 for ac_exec_ext in '' $ac_executable_extensions; do
7741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7742 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7752 OTOOL64=$ac_cv_prog_OTOOL64
7753 if test -n "$OTOOL64"; then
7754 { echo "$as_me:$LINENO: result: $OTOOL64" >&5
7755 echo "${ECHO_T}$OTOOL64" >&6; }
7757 { echo "$as_me:$LINENO: result: no" >&5
7758 echo "${ECHO_T}no" >&6; }
7763 if test -z "$ac_cv_prog_OTOOL64"; then
7764 ac_ct_OTOOL64=$OTOOL64
7765 # Extract the first word of "otool64", so it can be a program name with args.
7766 set dummy otool64; ac_word=$2
7767 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7769 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7770 echo $ECHO_N "(cached) $ECHO_C" >&6
7772 if test -n "$ac_ct_OTOOL64"; then
7773 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7779 test -z "$as_dir" && as_dir=.
7780 for ac_exec_ext in '' $ac_executable_extensions; do
7781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7782 ac_cv_prog_ac_ct_OTOOL64="otool64"
7783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7792 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7793 if test -n "$ac_ct_OTOOL64"; then
7794 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7795 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
7797 { echo "$as_me:$LINENO: result: no" >&5
7798 echo "${ECHO_T}no" >&6; }
7801 if test "x$ac_ct_OTOOL64" = x; then
7804 case $cross_compiling:$ac_tool_warned in
7806 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7807 whose name does not start with the host triplet. If you think this
7808 configuration is useful to you, please write to autoconf@gnu.org." >&5
7809 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7810 whose name does not start with the host triplet. If you think this
7811 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7812 ac_tool_warned=yes ;;
7814 OTOOL64=$ac_ct_OTOOL64
7817 OTOOL64="$ac_cv_prog_OTOOL64"
7846 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7847 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7848 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7849 echo $ECHO_N "(cached) $ECHO_C" >&6
7851 lt_cv_apple_cc_single_mod=no
7852 if test -z "${LT_MULTI_MODULE}"; then
7853 # By default we will add the -single_module flag. You can override
7854 # by either setting the environment variable LT_MULTI_MODULE
7855 # non-empty at configure time, or by adding -multi_module to the
7857 rm -rf libconftest.dylib*
7858 echo "int foo(void){return 1;}" > conftest.c
7859 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7860 -dynamiclib -Wl,-single_module conftest.c" >&5
7861 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7862 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7864 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7865 lt_cv_apple_cc_single_mod=yes
7867 cat conftest.err >&5
7869 rm -rf libconftest.dylib*
7873 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7874 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7875 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7876 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7877 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7878 echo $ECHO_N "(cached) $ECHO_C" >&6
7880 lt_cv_ld_exported_symbols_list=no
7881 save_LDFLAGS=$LDFLAGS
7882 echo "_main" > conftest.sym
7883 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7884 cat >conftest.$ac_ext <<_ACEOF
7887 cat confdefs.h >>conftest.$ac_ext
7888 cat >>conftest.$ac_ext <<_ACEOF
7889 /* end confdefs.h. */
7899 rm -f conftest.$ac_objext conftest$ac_exeext
7900 if { (ac_try="$ac_link"
7902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7903 *) ac_try_echo=$ac_try;;
7905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7906 (eval "$ac_link") 2>conftest.er1
7908 grep -v '^ *+' conftest.er1 >conftest.err
7910 cat conftest.err >&5
7911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912 (exit $ac_status); } && {
7913 test -z "$ac_c_werror_flag" ||
7914 test ! -s conftest.err
7915 } && test -s conftest$ac_exeext &&
7916 $as_test_x conftest$ac_exeext; then
7917 lt_cv_ld_exported_symbols_list=yes
7919 echo "$as_me: failed program was:" >&5
7920 sed 's/^/| /' conftest.$ac_ext >&5
7922 lt_cv_ld_exported_symbols_list=no
7925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7926 conftest$ac_exeext conftest.$ac_ext
7927 LDFLAGS="$save_LDFLAGS"
7930 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7931 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7933 rhapsody* | darwin1.[012])
7934 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7936 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7937 darwin*) # darwin 5.x on
7938 # if running on 10.5 or later, the deployment target defaults
7939 # to the OS version, if on x86, and 10.4, the deployment
7940 # target defaults to 10.4. Don't you love it?
7941 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7942 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7943 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7945 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7947 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7951 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7952 _lt_dar_single_mod='$single_module'
7954 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7955 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7957 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7959 if test "$DSYMUTIL" != ":"; then
7960 _lt_dsymutil='~$DSYMUTIL $lib || :'
7967 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7968 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7969 if test "${ac_cv_header_stdc+set}" = set; then
7970 echo $ECHO_N "(cached) $ECHO_C" >&6
7972 cat >conftest.$ac_ext <<_ACEOF
7975 cat confdefs.h >>conftest.$ac_ext
7976 cat >>conftest.$ac_ext <<_ACEOF
7977 /* end confdefs.h. */
7991 rm -f conftest.$ac_objext
7992 if { (ac_try="$ac_compile"
7994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7995 *) ac_try_echo=$ac_try;;
7997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7998 (eval "$ac_compile") 2>conftest.er1
8000 grep -v '^ *+' conftest.er1 >conftest.err
8002 cat conftest.err >&5
8003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004 (exit $ac_status); } && {
8005 test -z "$ac_c_werror_flag" ||
8006 test ! -s conftest.err
8007 } && test -s conftest.$ac_objext; then
8008 ac_cv_header_stdc=yes
8010 echo "$as_me: failed program was:" >&5
8011 sed 's/^/| /' conftest.$ac_ext >&5
8013 ac_cv_header_stdc=no
8016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8018 if test $ac_cv_header_stdc = yes; then
8019 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8020 cat >conftest.$ac_ext <<_ACEOF
8023 cat confdefs.h >>conftest.$ac_ext
8024 cat >>conftest.$ac_ext <<_ACEOF
8025 /* end confdefs.h. */
8029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8030 $EGREP "memchr" >/dev/null 2>&1; then
8033 ac_cv_header_stdc=no
8039 if test $ac_cv_header_stdc = yes; then
8040 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8041 cat >conftest.$ac_ext <<_ACEOF
8044 cat confdefs.h >>conftest.$ac_ext
8045 cat >>conftest.$ac_ext <<_ACEOF
8046 /* end confdefs.h. */
8050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8051 $EGREP "free" >/dev/null 2>&1; then
8054 ac_cv_header_stdc=no
8060 if test $ac_cv_header_stdc = yes; then
8061 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8062 if test "$cross_compiling" = yes; then
8065 cat >conftest.$ac_ext <<_ACEOF
8068 cat confdefs.h >>conftest.$ac_ext
8069 cat >>conftest.$ac_ext <<_ACEOF
8070 /* end confdefs.h. */
8073 #if ((' ' & 0x0FF) == 0x020)
8074 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8075 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8077 # define ISLOWER(c) \
8078 (('a' <= (c) && (c) <= 'i') \
8079 || ('j' <= (c) && (c) <= 'r') \
8080 || ('s' <= (c) && (c) <= 'z'))
8081 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8084 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8089 for (i = 0; i < 256; i++)
8090 if (XOR (islower (i), ISLOWER (i))
8091 || toupper (i) != TOUPPER (i))
8096 rm -f conftest$ac_exeext
8097 if { (ac_try="$ac_link"
8099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8100 *) ac_try_echo=$ac_try;;
8102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8103 (eval "$ac_link") 2>&5
8105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8107 { (case "(($ac_try" in
8108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8109 *) ac_try_echo=$ac_try;;
8111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8112 (eval "$ac_try") 2>&5
8114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115 (exit $ac_status); }; }; then
8118 echo "$as_me: program exited with status $ac_status" >&5
8119 echo "$as_me: failed program was:" >&5
8120 sed 's/^/| /' conftest.$ac_ext >&5
8123 ac_cv_header_stdc=no
8125 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8131 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8132 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8133 if test $ac_cv_header_stdc = yes; then
8135 cat >>confdefs.h <<\_ACEOF
8136 #define STDC_HEADERS 1
8141 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8151 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8152 inttypes.h stdint.h unistd.h
8154 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8155 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8158 echo $ECHO_N "(cached) $ECHO_C" >&6
8160 cat >conftest.$ac_ext <<_ACEOF
8163 cat confdefs.h >>conftest.$ac_ext
8164 cat >>conftest.$ac_ext <<_ACEOF
8165 /* end confdefs.h. */
8166 $ac_includes_default
8168 #include <$ac_header>
8170 rm -f conftest.$ac_objext
8171 if { (ac_try="$ac_compile"
8173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8174 *) ac_try_echo=$ac_try;;
8176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8177 (eval "$ac_compile") 2>conftest.er1
8179 grep -v '^ *+' conftest.er1 >conftest.err
8181 cat conftest.err >&5
8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183 (exit $ac_status); } && {
8184 test -z "$ac_c_werror_flag" ||
8185 test ! -s conftest.err
8186 } && test -s conftest.$ac_objext; then
8187 eval "$as_ac_Header=yes"
8189 echo "$as_me: failed program was:" >&5
8190 sed 's/^/| /' conftest.$ac_ext >&5
8192 eval "$as_ac_Header=no"
8195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8197 ac_res=`eval echo '${'$as_ac_Header'}'`
8198 { echo "$as_me:$LINENO: result: $ac_res" >&5
8199 echo "${ECHO_T}$ac_res" >&6; }
8200 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8201 cat >>confdefs.h <<_ACEOF
8202 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8211 for ac_header in dlfcn.h
8213 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8214 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8217 echo $ECHO_N "(cached) $ECHO_C" >&6
8219 cat >conftest.$ac_ext <<_ACEOF
8222 cat confdefs.h >>conftest.$ac_ext
8223 cat >>conftest.$ac_ext <<_ACEOF
8224 /* end confdefs.h. */
8225 $ac_includes_default
8227 #include <$ac_header>
8229 rm -f conftest.$ac_objext
8230 if { (ac_try="$ac_compile"
8232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8233 *) ac_try_echo=$ac_try;;
8235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8236 (eval "$ac_compile") 2>conftest.er1
8238 grep -v '^ *+' conftest.er1 >conftest.err
8240 cat conftest.err >&5
8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); } && {
8243 test -z "$ac_c_werror_flag" ||
8244 test ! -s conftest.err
8245 } && test -s conftest.$ac_objext; then
8246 eval "$as_ac_Header=yes"
8248 echo "$as_me: failed program was:" >&5
8249 sed 's/^/| /' conftest.$ac_ext >&5
8251 eval "$as_ac_Header=no"
8254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8256 ac_res=`eval echo '${'$as_ac_Header'}'`
8257 { echo "$as_me:$LINENO: result: $ac_res" >&5
8258 echo "${ECHO_T}$ac_res" >&6; }
8259 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8260 cat >>confdefs.h <<_ACEOF
8261 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8271 ac_cpp='$CXXCPP $CPPFLAGS'
8272 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8273 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8274 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8275 if test -z "$CXX"; then
8276 if test -n "$CCC"; then
8279 if test -n "$ac_tool_prefix"; then
8280 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8282 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8283 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8286 if test "${ac_cv_prog_CXX+set}" = set; then
8287 echo $ECHO_N "(cached) $ECHO_C" >&6
8289 if test -n "$CXX"; then
8290 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8296 test -z "$as_dir" && as_dir=.
8297 for ac_exec_ext in '' $ac_executable_extensions; do
8298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8299 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8310 if test -n "$CXX"; then
8311 { echo "$as_me:$LINENO: result: $CXX" >&5
8312 echo "${ECHO_T}$CXX" >&6; }
8314 { echo "$as_me:$LINENO: result: no" >&5
8315 echo "${ECHO_T}no" >&6; }
8319 test -n "$CXX" && break
8322 if test -z "$CXX"; then
8324 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8326 # Extract the first word of "$ac_prog", so it can be a program name with args.
8327 set dummy $ac_prog; ac_word=$2
8328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8330 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8331 echo $ECHO_N "(cached) $ECHO_C" >&6
8333 if test -n "$ac_ct_CXX"; then
8334 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8340 test -z "$as_dir" && as_dir=.
8341 for ac_exec_ext in '' $ac_executable_extensions; do
8342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8343 ac_cv_prog_ac_ct_CXX="$ac_prog"
8344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8353 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8354 if test -n "$ac_ct_CXX"; then
8355 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8356 echo "${ECHO_T}$ac_ct_CXX" >&6; }
8358 { echo "$as_me:$LINENO: result: no" >&5
8359 echo "${ECHO_T}no" >&6; }
8363 test -n "$ac_ct_CXX" && break
8366 if test "x$ac_ct_CXX" = x; then
8369 case $cross_compiling:$ac_tool_warned in
8371 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8372 whose name does not start with the host triplet. If you think this
8373 configuration is useful to you, please write to autoconf@gnu.org." >&5
8374 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8375 whose name does not start with the host triplet. If you think this
8376 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8377 ac_tool_warned=yes ;;
8385 # Provide some information about the compiler.
8386 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8387 ac_compiler=`set X $ac_compile; echo $2`
8388 { (ac_try="$ac_compiler --version >&5"
8390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8391 *) ac_try_echo=$ac_try;;
8393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8394 (eval "$ac_compiler --version >&5") 2>&5
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); }
8398 { (ac_try="$ac_compiler -v >&5"
8400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8401 *) ac_try_echo=$ac_try;;
8403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8404 (eval "$ac_compiler -v >&5") 2>&5
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); }
8408 { (ac_try="$ac_compiler -V >&5"
8410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8411 *) ac_try_echo=$ac_try;;
8413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8414 (eval "$ac_compiler -V >&5") 2>&5
8416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417 (exit $ac_status); }
8419 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8420 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8421 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8422 echo $ECHO_N "(cached) $ECHO_C" >&6
8424 cat >conftest.$ac_ext <<_ACEOF
8427 cat confdefs.h >>conftest.$ac_ext
8428 cat >>conftest.$ac_ext <<_ACEOF
8429 /* end confdefs.h. */
8442 rm -f conftest.$ac_objext
8443 if { (ac_try="$ac_compile"
8445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8446 *) ac_try_echo=$ac_try;;
8448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8449 (eval "$ac_compile") 2>conftest.er1
8451 grep -v '^ *+' conftest.er1 >conftest.err
8453 cat conftest.err >&5
8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 (exit $ac_status); } && {
8456 test -z "$ac_cxx_werror_flag" ||
8457 test ! -s conftest.err
8458 } && test -s conftest.$ac_objext; then
8461 echo "$as_me: failed program was:" >&5
8462 sed 's/^/| /' conftest.$ac_ext >&5
8467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8468 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8471 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8472 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8473 GXX=`test $ac_compiler_gnu = yes && echo yes`
8474 ac_test_CXXFLAGS=${CXXFLAGS+set}
8475 ac_save_CXXFLAGS=$CXXFLAGS
8476 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8477 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8478 if test "${ac_cv_prog_cxx_g+set}" = set; then
8479 echo $ECHO_N "(cached) $ECHO_C" >&6
8481 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8482 ac_cxx_werror_flag=yes
8485 cat >conftest.$ac_ext <<_ACEOF
8488 cat confdefs.h >>conftest.$ac_ext
8489 cat >>conftest.$ac_ext <<_ACEOF
8490 /* end confdefs.h. */
8500 rm -f conftest.$ac_objext
8501 if { (ac_try="$ac_compile"
8503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8504 *) ac_try_echo=$ac_try;;
8506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8507 (eval "$ac_compile") 2>conftest.er1
8509 grep -v '^ *+' conftest.er1 >conftest.err
8511 cat conftest.err >&5
8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513 (exit $ac_status); } && {
8514 test -z "$ac_cxx_werror_flag" ||
8515 test ! -s conftest.err
8516 } && test -s conftest.$ac_objext; then
8517 ac_cv_prog_cxx_g=yes
8519 echo "$as_me: failed program was:" >&5
8520 sed 's/^/| /' conftest.$ac_ext >&5
8523 cat >conftest.$ac_ext <<_ACEOF
8526 cat confdefs.h >>conftest.$ac_ext
8527 cat >>conftest.$ac_ext <<_ACEOF
8528 /* end confdefs.h. */
8538 rm -f conftest.$ac_objext
8539 if { (ac_try="$ac_compile"
8541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8542 *) ac_try_echo=$ac_try;;
8544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8545 (eval "$ac_compile") 2>conftest.er1
8547 grep -v '^ *+' conftest.er1 >conftest.err
8549 cat conftest.err >&5
8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 (exit $ac_status); } && {
8552 test -z "$ac_cxx_werror_flag" ||
8553 test ! -s conftest.err
8554 } && test -s conftest.$ac_objext; then
8557 echo "$as_me: failed program was:" >&5
8558 sed 's/^/| /' conftest.$ac_ext >&5
8560 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8562 cat >conftest.$ac_ext <<_ACEOF
8565 cat confdefs.h >>conftest.$ac_ext
8566 cat >>conftest.$ac_ext <<_ACEOF
8567 /* end confdefs.h. */
8577 rm -f conftest.$ac_objext
8578 if { (ac_try="$ac_compile"
8580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8581 *) ac_try_echo=$ac_try;;
8583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8584 (eval "$ac_compile") 2>conftest.er1
8586 grep -v '^ *+' conftest.er1 >conftest.err
8588 cat conftest.err >&5
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); } && {
8591 test -z "$ac_cxx_werror_flag" ||
8592 test ! -s conftest.err
8593 } && test -s conftest.$ac_objext; then
8594 ac_cv_prog_cxx_g=yes
8596 echo "$as_me: failed program was:" >&5
8597 sed 's/^/| /' conftest.$ac_ext >&5
8602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8609 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8611 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8612 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8613 if test "$ac_test_CXXFLAGS" = set; then
8614 CXXFLAGS=$ac_save_CXXFLAGS
8615 elif test $ac_cv_prog_cxx_g = yes; then
8616 if test "$GXX" = yes; then
8622 if test "$GXX" = yes; then
8629 ac_cpp='$CPP $CPPFLAGS'
8630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8634 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8635 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8636 (test "X$CXX" != "Xg++"))) ; then
8638 ac_cpp='$CXXCPP $CPPFLAGS'
8639 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8640 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8641 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8642 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8643 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8644 if test -z "$CXXCPP"; then
8645 if test "${ac_cv_prog_CXXCPP+set}" = set; then
8646 echo $ECHO_N "(cached) $ECHO_C" >&6
8648 # Double quotes because CXXCPP needs to be expanded
8649 for CXXCPP in "$CXX -E" "/lib/cpp"
8652 for ac_cxx_preproc_warn_flag in '' yes
8654 # Use a header file that comes with gcc, so configuring glibc
8655 # with a fresh cross-compiler works.
8656 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8657 # <limits.h> exists even on freestanding compilers.
8658 # On the NeXT, cc -E runs the code through the compiler's parser,
8659 # not just through cpp. "Syntax error" is here to catch this case.
8660 cat >conftest.$ac_ext <<_ACEOF
8663 cat confdefs.h >>conftest.$ac_ext
8664 cat >>conftest.$ac_ext <<_ACEOF
8665 /* end confdefs.h. */
8667 # include <limits.h>
8669 # include <assert.h>
8673 if { (ac_try="$ac_cpp conftest.$ac_ext"
8675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8676 *) ac_try_echo=$ac_try;;
8678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8679 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8681 grep -v '^ *+' conftest.er1 >conftest.err
8683 cat conftest.err >&5
8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); } >/dev/null && {
8686 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8687 test ! -s conftest.err
8691 echo "$as_me: failed program was:" >&5
8692 sed 's/^/| /' conftest.$ac_ext >&5
8694 # Broken: fails on valid input.
8698 rm -f conftest.err conftest.$ac_ext
8700 # OK, works on sane cases. Now check whether nonexistent headers
8701 # can be detected and how.
8702 cat >conftest.$ac_ext <<_ACEOF
8705 cat confdefs.h >>conftest.$ac_ext
8706 cat >>conftest.$ac_ext <<_ACEOF
8707 /* end confdefs.h. */
8708 #include <ac_nonexistent.h>
8710 if { (ac_try="$ac_cpp conftest.$ac_ext"
8712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8713 *) ac_try_echo=$ac_try;;
8715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8716 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8718 grep -v '^ *+' conftest.er1 >conftest.err
8720 cat conftest.err >&5
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); } >/dev/null && {
8723 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8724 test ! -s conftest.err
8726 # Broken: success on invalid input.
8729 echo "$as_me: failed program was:" >&5
8730 sed 's/^/| /' conftest.$ac_ext >&5
8732 # Passes both tests.
8737 rm -f conftest.err conftest.$ac_ext
8740 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8741 rm -f conftest.err conftest.$ac_ext
8742 if $ac_preproc_ok; then
8747 ac_cv_prog_CXXCPP=$CXXCPP
8750 CXXCPP=$ac_cv_prog_CXXCPP
8752 ac_cv_prog_CXXCPP=$CXXCPP
8754 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
8755 echo "${ECHO_T}$CXXCPP" >&6; }
8757 for ac_cxx_preproc_warn_flag in '' yes
8759 # Use a header file that comes with gcc, so configuring glibc
8760 # with a fresh cross-compiler works.
8761 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8762 # <limits.h> exists even on freestanding compilers.
8763 # On the NeXT, cc -E runs the code through the compiler's parser,
8764 # not just through cpp. "Syntax error" is here to catch this case.
8765 cat >conftest.$ac_ext <<_ACEOF
8768 cat confdefs.h >>conftest.$ac_ext
8769 cat >>conftest.$ac_ext <<_ACEOF
8770 /* end confdefs.h. */
8772 # include <limits.h>
8774 # include <assert.h>
8778 if { (ac_try="$ac_cpp conftest.$ac_ext"
8780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8781 *) ac_try_echo=$ac_try;;
8783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8784 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8786 grep -v '^ *+' conftest.er1 >conftest.err
8788 cat conftest.err >&5
8789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790 (exit $ac_status); } >/dev/null && {
8791 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8792 test ! -s conftest.err
8796 echo "$as_me: failed program was:" >&5
8797 sed 's/^/| /' conftest.$ac_ext >&5
8799 # Broken: fails on valid input.
8803 rm -f conftest.err conftest.$ac_ext
8805 # OK, works on sane cases. Now check whether nonexistent headers
8806 # can be detected and how.
8807 cat >conftest.$ac_ext <<_ACEOF
8810 cat confdefs.h >>conftest.$ac_ext
8811 cat >>conftest.$ac_ext <<_ACEOF
8812 /* end confdefs.h. */
8813 #include <ac_nonexistent.h>
8815 if { (ac_try="$ac_cpp conftest.$ac_ext"
8817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8818 *) ac_try_echo=$ac_try;;
8820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8823 grep -v '^ *+' conftest.er1 >conftest.err
8825 cat conftest.err >&5
8826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827 (exit $ac_status); } >/dev/null && {
8828 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8829 test ! -s conftest.err
8831 # Broken: success on invalid input.
8834 echo "$as_me: failed program was:" >&5
8835 sed 's/^/| /' conftest.$ac_ext >&5
8837 # Passes both tests.
8842 rm -f conftest.err conftest.$ac_ext
8845 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8846 rm -f conftest.err conftest.$ac_ext
8847 if $ac_preproc_ok; then
8850 _lt_caught_CXX_error=yes
8854 ac_cpp='$CPP $CPPFLAGS'
8855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8860 _lt_caught_CXX_error=yes
8868 # Check whether --enable-shared was given.
8869 if test "${enable_shared+set}" = set; then
8870 enableval=$enable_shared; p=${PACKAGE-default}
8872 yes) enable_shared=yes ;;
8873 no) enable_shared=no ;;
8876 # Look at the argument we got. We use all the common list separators.
8877 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8878 for pkg in $enableval; do
8880 if test "X$pkg" = "X$p"; then
8897 # Check whether --enable-static was given.
8898 if test "${enable_static+set}" = set; then
8899 enableval=$enable_static; p=${PACKAGE-default}
8901 yes) enable_static=yes ;;
8902 no) enable_static=no ;;
8905 # Look at the argument we got. We use all the common list separators.
8906 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8907 for pkg in $enableval; do
8909 if test "X$pkg" = "X$p"; then
8938 # Check whether --with-pic was given.
8939 if test "${with_pic+set}" = set; then
8940 withval=$with_pic; pic_mode="$withval"
8946 test -z "$pic_mode" && pic_mode=default
8954 # Check whether --enable-fast-install was given.
8955 if test "${enable_fast_install+set}" = set; then
8956 enableval=$enable_fast_install; p=${PACKAGE-default}
8958 yes) enable_fast_install=yes ;;
8959 no) enable_fast_install=no ;;
8961 enable_fast_install=no
8962 # Look at the argument we got. We use all the common list separators.
8963 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8964 for pkg in $enableval; do
8966 if test "X$pkg" = "X$p"; then
8967 enable_fast_install=yes
8974 enable_fast_install=yes
8987 # This can be used to rebuild libtool when needed
8988 LIBTOOL_DEPS="$ltmain"
8990 # Always use our own libtool.
8991 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9017 test -z "$LN_S" && LN_S="ln -s"
9032 if test -n "${ZSH_VERSION+set}" ; then
9033 setopt NO_GLOB_SUBST
9036 { echo "$as_me:$LINENO: checking for objdir" >&5
9037 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9038 if test "${lt_cv_objdir+set}" = set; then
9039 echo $ECHO_N "(cached) $ECHO_C" >&6
9041 rm -f .libs 2>/dev/null
9042 mkdir .libs 2>/dev/null
9043 if test -d .libs; then
9046 # MS-DOS does not allow filenames that begin with a dot.
9049 rmdir .libs 2>/dev/null
9051 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9052 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9053 objdir=$lt_cv_objdir
9059 cat >>confdefs.h <<_ACEOF
9060 #define LT_OBJDIR "$lt_cv_objdir/"
9081 # AIX sometimes has problems with the GCC collect2 program. For some
9082 # reason, if we set the COLLECT_NAMES environment variable, the problems
9083 # vanish in a puff of smoke.
9084 if test "X${COLLECT_NAMES+set}" != Xset; then
9086 export COLLECT_NAMES
9091 # Sed substitution that helps us do robust quoting. It backslashifies
9092 # metacharacters that are still active within double-quoted strings.
9093 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9095 # Same as above, but do not quote variable references.
9096 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9098 # Sed substitution to delay expansion of an escaped shell variable in a
9099 # double_quote_subst'ed string.
9100 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9102 # Sed substitution to delay expansion of an escaped single quote.
9103 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9105 # Sed substitution to avoid accidental globbing in evaled expressions
9106 no_glob_subst='s/\*/\\\*/g'
9110 can_build_shared=yes
9112 # All known linkers require a `.a' archive for static linking (except MSVC,
9113 # which needs '.lib').
9116 with_gnu_ld="$lt_cv_prog_gnu_ld"
9119 old_CFLAGS="$CFLAGS"
9121 # Set sane defaults for various variables
9122 test -z "$CC" && CC=cc
9123 test -z "$LTCC" && LTCC=$CC
9124 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9125 test -z "$LD" && LD=ld
9126 test -z "$ac_objext" && ac_objext=o
9128 for cc_temp in $compiler""; do
9130 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9131 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9136 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9139 # Only perform the check for file, if the check method requires it
9140 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9141 case $deplibs_check_method in
9143 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9144 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9145 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9146 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9147 echo $ECHO_N "(cached) $ECHO_C" >&6
9151 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9154 lt_save_MAGIC_CMD="$MAGIC_CMD"
9155 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9156 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9157 for ac_dir in $ac_dummy; do
9159 test -z "$ac_dir" && ac_dir=.
9160 if test -f $ac_dir/${ac_tool_prefix}file; then
9161 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9162 if test -n "$file_magic_test_file"; then
9163 case $deplibs_check_method in
9165 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9166 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9167 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9168 $EGREP "$file_magic_regex" > /dev/null; then
9173 *** Warning: the command libtool uses to detect shared libraries,
9174 *** $file_magic_cmd, produces output that libtool cannot recognize.
9175 *** The result is that libtool may fail to recognize shared libraries
9176 *** as such. This will affect the creation of libtool libraries that
9177 *** depend on shared libraries, but programs linked with such libtool
9178 *** libraries will work regardless of this problem. Nevertheless, you
9179 *** may want to report the problem to your system manager and/or to
9180 *** bug-libtool@gnu.org
9190 MAGIC_CMD="$lt_save_MAGIC_CMD"
9195 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9196 if test -n "$MAGIC_CMD"; then
9197 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9198 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9200 { echo "$as_me:$LINENO: result: no" >&5
9201 echo "${ECHO_T}no" >&6; }
9208 if test -z "$lt_cv_path_MAGIC_CMD"; then
9209 if test -n "$ac_tool_prefix"; then
9210 { echo "$as_me:$LINENO: checking for file" >&5
9211 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9212 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9213 echo $ECHO_N "(cached) $ECHO_C" >&6
9217 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9220 lt_save_MAGIC_CMD="$MAGIC_CMD"
9221 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9222 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9223 for ac_dir in $ac_dummy; do
9225 test -z "$ac_dir" && ac_dir=.
9226 if test -f $ac_dir/file; then
9227 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9228 if test -n "$file_magic_test_file"; then
9229 case $deplibs_check_method in
9231 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9232 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9233 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9234 $EGREP "$file_magic_regex" > /dev/null; then
9239 *** Warning: the command libtool uses to detect shared libraries,
9240 *** $file_magic_cmd, produces output that libtool cannot recognize.
9241 *** The result is that libtool may fail to recognize shared libraries
9242 *** as such. This will affect the creation of libtool libraries that
9243 *** depend on shared libraries, but programs linked with such libtool
9244 *** libraries will work regardless of this problem. Nevertheless, you
9245 *** may want to report the problem to your system manager and/or to
9246 *** bug-libtool@gnu.org
9256 MAGIC_CMD="$lt_save_MAGIC_CMD"
9261 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9262 if test -n "$MAGIC_CMD"; then
9263 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9264 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9266 { echo "$as_me:$LINENO: result: no" >&5
9267 echo "${ECHO_T}no" >&6; }
9280 # Use C for the default configuration in the libtool script
9284 ac_cpp='$CPP $CPPFLAGS'
9285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9290 # Source file extension for C test sources.
9293 # Object file extension for compiled C test sources.
9297 # Code to be used in simple compile tests
9298 lt_simple_compile_test_code="int some_variable = 0;"
9300 # Code to be used in simple link tests
9301 lt_simple_link_test_code='int main(){return(0);}'
9309 # If no C compiler was specified, use CC.
9312 # If no C compiler flags were specified, use CFLAGS.
9313 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9315 # Allow CC to be a program name with arguments.
9318 # Save the default compiler, since it gets overwritten when the other
9319 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9320 compiler_DEFAULT=$CC
9322 # save warnings/boilerplate of simple test code
9323 ac_outfile=conftest.$ac_objext
9324 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9325 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9326 _lt_compiler_boilerplate=`cat conftest.err`
9329 ac_outfile=conftest.$ac_objext
9330 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9331 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9332 _lt_linker_boilerplate=`cat conftest.err`
9337 ## There is no encapsulation within the following macros, do not change
9338 ## the running order or otherwise move them around unless you know exactly
9339 ## what you are doing...
9340 if test -n "$compiler"; then
9342 lt_prog_compiler_no_builtin_flag=
9344 if test "$GCC" = yes; then
9345 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9347 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9348 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9349 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9350 echo $ECHO_N "(cached) $ECHO_C" >&6
9352 lt_cv_prog_compiler_rtti_exceptions=no
9353 ac_outfile=conftest.$ac_objext
9354 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9355 lt_compiler_flag="-fno-rtti -fno-exceptions"
9356 # Insert the option either (1) after the last *FLAGS variable, or
9357 # (2) before a word containing "conftest.", or (3) at the end.
9358 # Note that $ac_compile itself does not contain backslashes and begins
9359 # with a dollar sign (not a hyphen), so the echo should work correctly.
9360 # The option is referenced via a variable to avoid confusing sed.
9361 lt_compile=`echo "$ac_compile" | $SED \
9362 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9363 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9364 -e 's:$: $lt_compiler_flag:'`
9365 (eval echo "\"\$as_me:9365: $lt_compile\"" >&5)
9366 (eval "$lt_compile" 2>conftest.err)
9368 cat conftest.err >&5
9369 echo "$as_me:9369: \$? = $ac_status" >&5
9370 if (exit $ac_status) && test -s "$ac_outfile"; then
9371 # The compiler can only warn and ignore the option if not recognized
9372 # So say no if there are warnings other than the usual output.
9373 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9374 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9375 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9376 lt_cv_prog_compiler_rtti_exceptions=yes
9382 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9383 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9385 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9386 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9398 lt_prog_compiler_wl=
9399 lt_prog_compiler_pic=
9400 lt_prog_compiler_static=
9402 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9403 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9405 if test "$GCC" = yes; then
9406 lt_prog_compiler_wl='-Wl,'
9407 lt_prog_compiler_static='-static'
9411 # All AIX code is PIC.
9412 if test "$host_cpu" = ia64; then
9413 # AIX 5 now supports IA64 processor
9414 lt_prog_compiler_static='-Bstatic'
9421 # see comment about AmigaOS4 .so support
9422 lt_prog_compiler_pic='-fPIC'
9425 # FIXME: we need at least 68020 code to build shared libraries, but
9426 # adding the `-m68020' flag to GCC prevents building anything better,
9428 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9433 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9434 # PIC is the default for these OSes.
9437 mingw* | cygwin* | pw32* | os2* | cegcc*)
9438 # This hack is so that the source file can tell whether it is being
9439 # built for inclusion in a dll (and should export symbols for example).
9440 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9441 # (--disable-auto-import) libraries
9442 lt_prog_compiler_pic='-DDLL_EXPORT'
9445 darwin* | rhapsody*)
9446 # PIC is the default on this platform
9447 # Common symbols not allowed in MH_DYLIB files
9448 lt_prog_compiler_pic='-fno-common'
9452 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9453 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9454 # sets the default TLS model and affects inlining.
9460 lt_prog_compiler_pic='-fPIC'
9466 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9467 # Instead, we relocate shared libraries at runtime.
9471 # Just because we use GCC doesn't mean we suddenly get shared libraries
9472 # on systems that don't support them.
9473 lt_prog_compiler_can_build_shared=no
9478 # QNX uses GNU C++, but need to define -shared option too, otherwise
9480 lt_prog_compiler_pic='-fPIC -shared'
9484 if test -d /usr/nec; then
9485 lt_prog_compiler_pic=-Kconform_pic
9490 lt_prog_compiler_pic='-fPIC'
9494 # PORTME Check for flag to pass linker flags through the system compiler.
9497 lt_prog_compiler_wl='-Wl,'
9498 if test "$host_cpu" = ia64; then
9499 # AIX 5 now supports IA64 processor
9500 lt_prog_compiler_static='-Bstatic'
9502 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9506 mingw* | cygwin* | pw32* | os2* | cegcc*)
9507 # This hack is so that the source file can tell whether it is being
9508 # built for inclusion in a dll (and should export symbols for example).
9509 lt_prog_compiler_pic='-DDLL_EXPORT'
9512 hpux9* | hpux10* | hpux11*)
9513 lt_prog_compiler_wl='-Wl,'
9514 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9521 lt_prog_compiler_pic='+Z'
9524 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9525 lt_prog_compiler_static='${wl}-a ${wl}archive'
9528 irix5* | irix6* | nonstopux*)
9529 lt_prog_compiler_wl='-Wl,'
9530 # PIC (with -KPIC) is the default.
9531 lt_prog_compiler_static='-non_shared'
9534 linux* | k*bsd*-gnu)
9535 case $cc_basename in
9536 # old Intel for x86_64 which still supported -KPIC.
9538 lt_prog_compiler_wl='-Wl,'
9539 lt_prog_compiler_pic='-KPIC'
9540 lt_prog_compiler_static='-static'
9542 # icc used to be incompatible with GCC.
9543 # ICC 10 doesn't accept -KPIC any more.
9545 lt_prog_compiler_wl='-Wl,'
9546 lt_prog_compiler_pic='-fPIC'
9547 lt_prog_compiler_static='-static'
9549 # Lahey Fortran 8.1.
9551 lt_prog_compiler_wl='-Wl,'
9552 lt_prog_compiler_pic='--shared'
9553 lt_prog_compiler_static='--static'
9555 pgcc* | pgf77* | pgf90* | pgf95*)
9556 # Portland Group compilers (*not* the Pentium gcc compiler,
9557 # which looks to be a dead project)
9558 lt_prog_compiler_wl='-Wl,'
9559 lt_prog_compiler_pic='-fpic'
9560 lt_prog_compiler_static='-Bstatic'
9563 lt_prog_compiler_wl='-Wl,'
9564 # All Alpha code is PIC.
9565 lt_prog_compiler_static='-non_shared'
9568 # IBM XL C 8.0/Fortran 10.1 on PPC
9569 lt_prog_compiler_wl='-Wl,'
9570 lt_prog_compiler_pic='-qpic'
9571 lt_prog_compiler_static='-qstaticlink'
9574 case `$CC -V 2>&1 | sed 5q` in
9577 lt_prog_compiler_pic='-KPIC'
9578 lt_prog_compiler_static='-Bstatic'
9579 lt_prog_compiler_wl='-Wl,'
9582 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9583 lt_prog_compiler_pic='-KPIC'
9584 lt_prog_compiler_static='-Bstatic'
9585 lt_prog_compiler_wl=''
9593 lt_prog_compiler_pic='-KPIC'
9594 lt_prog_compiler_static='-Bstatic'
9598 # QNX uses GNU C++, but need to define -shared option too, otherwise
9600 lt_prog_compiler_pic='-fPIC -shared'
9603 osf3* | osf4* | osf5*)
9604 lt_prog_compiler_wl='-Wl,'
9605 # All OSF/1 code is PIC.
9606 lt_prog_compiler_static='-non_shared'
9610 lt_prog_compiler_static='-non_shared'
9614 lt_prog_compiler_pic='-KPIC'
9615 lt_prog_compiler_static='-Bstatic'
9616 case $cc_basename in
9618 lt_prog_compiler_wl='-Qoption ld ';;
9620 lt_prog_compiler_wl='-Wl,';;
9625 lt_prog_compiler_wl='-Qoption ld '
9626 lt_prog_compiler_pic='-PIC'
9627 lt_prog_compiler_static='-Bstatic'
9630 sysv4 | sysv4.2uw2* | sysv4.3*)
9631 lt_prog_compiler_wl='-Wl,'
9632 lt_prog_compiler_pic='-KPIC'
9633 lt_prog_compiler_static='-Bstatic'
9637 if test -d /usr/nec ;then
9638 lt_prog_compiler_pic='-Kconform_pic'
9639 lt_prog_compiler_static='-Bstatic'
9643 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9644 lt_prog_compiler_wl='-Wl,'
9645 lt_prog_compiler_pic='-KPIC'
9646 lt_prog_compiler_static='-Bstatic'
9650 lt_prog_compiler_wl='-Wl,'
9651 lt_prog_compiler_can_build_shared=no
9655 lt_prog_compiler_pic='-pic'
9656 lt_prog_compiler_static='-Bstatic'
9660 lt_prog_compiler_can_build_shared=no
9666 # For platforms which do not support PIC, -DPIC is meaningless:
9668 lt_prog_compiler_pic=
9671 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9674 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9675 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9683 # Check to make sure the PIC flag actually works.
9685 if test -n "$lt_prog_compiler_pic"; then
9686 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9687 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9688 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9689 echo $ECHO_N "(cached) $ECHO_C" >&6
9691 lt_cv_prog_compiler_pic_works=no
9692 ac_outfile=conftest.$ac_objext
9693 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9694 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9695 # Insert the option either (1) after the last *FLAGS variable, or
9696 # (2) before a word containing "conftest.", or (3) at the end.
9697 # Note that $ac_compile itself does not contain backslashes and begins
9698 # with a dollar sign (not a hyphen), so the echo should work correctly.
9699 # The option is referenced via a variable to avoid confusing sed.
9700 lt_compile=`echo "$ac_compile" | $SED \
9701 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9702 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9703 -e 's:$: $lt_compiler_flag:'`
9704 (eval echo "\"\$as_me:9704: $lt_compile\"" >&5)
9705 (eval "$lt_compile" 2>conftest.err)
9707 cat conftest.err >&5
9708 echo "$as_me:9708: \$? = $ac_status" >&5
9709 if (exit $ac_status) && test -s "$ac_outfile"; then
9710 # The compiler can only warn and ignore the option if not recognized
9711 # So say no if there are warnings other than the usual output.
9712 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9713 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9714 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9715 lt_cv_prog_compiler_pic_works=yes
9721 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9722 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9724 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9725 case $lt_prog_compiler_pic in
9727 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9730 lt_prog_compiler_pic=
9731 lt_prog_compiler_can_build_shared=no
9742 # Check to make sure the static flag actually works.
9744 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9745 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9746 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9747 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9748 echo $ECHO_N "(cached) $ECHO_C" >&6
9750 lt_cv_prog_compiler_static_works=no
9751 save_LDFLAGS="$LDFLAGS"
9752 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9753 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9754 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9755 # The linker can only warn and ignore the option if not recognized
9756 # So say no if there are warnings
9757 if test -s conftest.err; then
9758 # Append any errors to the config.log.
9759 cat conftest.err 1>&5
9760 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9761 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9762 if diff conftest.exp conftest.er2 >/dev/null; then
9763 lt_cv_prog_compiler_static_works=yes
9766 lt_cv_prog_compiler_static_works=yes
9770 LDFLAGS="$save_LDFLAGS"
9773 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9774 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9776 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9779 lt_prog_compiler_static=
9788 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9789 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9790 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9791 echo $ECHO_N "(cached) $ECHO_C" >&6
9793 lt_cv_prog_compiler_c_o=no
9794 $RM -r conftest 2>/dev/null
9798 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9800 lt_compiler_flag="-o out/conftest2.$ac_objext"
9801 # Insert the option either (1) after the last *FLAGS variable, or
9802 # (2) before a word containing "conftest.", or (3) at the end.
9803 # Note that $ac_compile itself does not contain backslashes and begins
9804 # with a dollar sign (not a hyphen), so the echo should work correctly.
9805 lt_compile=`echo "$ac_compile" | $SED \
9806 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9807 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9808 -e 's:$: $lt_compiler_flag:'`
9809 (eval echo "\"\$as_me:9809: $lt_compile\"" >&5)
9810 (eval "$lt_compile" 2>out/conftest.err)
9812 cat out/conftest.err >&5
9813 echo "$as_me:9813: \$? = $ac_status" >&5
9814 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9816 # The compiler can only warn and ignore the option if not recognized
9817 # So say no if there are warnings
9818 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9819 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9820 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9821 lt_cv_prog_compiler_c_o=yes
9826 # SGI C++ compiler will create directory out/ii_files/ for
9827 # template instantiation
9828 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9829 $RM out/* && rmdir out
9835 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9836 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9843 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9844 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9845 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9846 echo $ECHO_N "(cached) $ECHO_C" >&6
9848 lt_cv_prog_compiler_c_o=no
9849 $RM -r conftest 2>/dev/null
9853 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9855 lt_compiler_flag="-o out/conftest2.$ac_objext"
9856 # Insert the option either (1) after the last *FLAGS variable, or
9857 # (2) before a word containing "conftest.", or (3) at the end.
9858 # Note that $ac_compile itself does not contain backslashes and begins
9859 # with a dollar sign (not a hyphen), so the echo should work correctly.
9860 lt_compile=`echo "$ac_compile" | $SED \
9861 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9862 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9863 -e 's:$: $lt_compiler_flag:'`
9864 (eval echo "\"\$as_me:9864: $lt_compile\"" >&5)
9865 (eval "$lt_compile" 2>out/conftest.err)
9867 cat out/conftest.err >&5
9868 echo "$as_me:9868: \$? = $ac_status" >&5
9869 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9871 # The compiler can only warn and ignore the option if not recognized
9872 # So say no if there are warnings
9873 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9874 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9875 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9876 lt_cv_prog_compiler_c_o=yes
9881 # SGI C++ compiler will create directory out/ii_files/ for
9882 # template instantiation
9883 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9884 $RM out/* && rmdir out
9890 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9891 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9896 hard_links="nottested"
9897 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9898 # do not overwrite the value of need_locks provided by the user
9899 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9900 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9903 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9905 ln conftest.a conftest.b 2>&5 || hard_links=no
9906 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9907 { echo "$as_me:$LINENO: result: $hard_links" >&5
9908 echo "${ECHO_T}$hard_links" >&6; }
9909 if test "$hard_links" = no; then
9910 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9911 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9923 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9924 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9927 allow_undefined_flag=
9928 always_export_symbols=no
9930 archive_expsym_cmds=
9931 compiler_needs_object=no
9932 enable_shared_with_static_runtimes=no
9933 export_dynamic_flag_spec=
9934 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9935 hardcode_automatic=no
9937 hardcode_direct_absolute=no
9938 hardcode_libdir_flag_spec=
9939 hardcode_libdir_flag_spec_ld=
9940 hardcode_libdir_separator=
9942 hardcode_shlibpath_var=unsupported
9944 link_all_deplibs=unknown
9947 old_archive_from_new_cmds=
9948 old_archive_from_expsyms_cmds=
9949 thread_safe_flag_spec=
9950 whole_archive_flag_spec=
9951 # include_expsyms should be a list of space-separated symbols to be *always*
9952 # included in the symbol list
9954 # exclude_expsyms can be an extended regexp of symbols to exclude
9955 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9956 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9957 # as well as any symbol that contains `d'.
9958 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9959 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9960 # platforms (ab)use it in PIC code, but their linkers get confused if
9961 # the symbol is explicitly referenced. Since portable code cannot
9962 # rely on this symbol name, it's probably fine to never include it in
9963 # preloaded symbol tables.
9964 # Exclude shared library initialization/finalization symbols.
9965 extract_expsyms_cmds=
9968 cygwin* | mingw* | pw32* | cegcc*)
9969 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9970 # When not using gcc, we currently assume that we are using
9971 # Microsoft Visual C++.
9972 if test "$GCC" != yes; then
9977 # we just hope/assume this is gcc and not c89 (= MSVC++)
9986 if test "$with_gnu_ld" = yes; then
9987 # If archive_cmds runs LD, not CC, wlarc should be empty
9990 # Set some defaults for GNU ld with shared library support. These
9991 # are reset later if shared libraries are not supported. Putting them
9992 # here allows them to be overridden if necessary.
9993 runpath_var=LD_RUN_PATH
9994 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9995 export_dynamic_flag_spec='${wl}--export-dynamic'
9996 # ancient GNU ld didn't support --whole-archive et. al.
9997 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9998 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10000 whole_archive_flag_spec=
10002 supports_anon_versioning=no
10003 case `$LD -v 2>&1` in
10004 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10005 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10006 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10007 *\ 2.11.*) ;; # other 2.11 versions
10008 *) supports_anon_versioning=yes ;;
10011 # See if GNU ld supports shared libraries.
10014 # On AIX/PPC, the GNU linker is very broken
10015 if test "$host_cpu" != ia64; then
10019 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10020 *** to be unable to reliably create shared libraries on AIX.
10021 *** Therefore, libtool is disabling shared libraries support. If you
10022 *** really care for shared libraries, you may want to modify your PATH
10023 *** so that a non-GNU linker is found, and then restart.
10032 # see comment about AmigaOS4 .so support
10033 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10034 archive_expsym_cmds=''
10037 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)'
10038 hardcode_libdir_flag_spec='-L$libdir'
10039 hardcode_minus_L=yes
10045 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10046 allow_undefined_flag=unsupported
10047 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10048 # support --undefined. This deserves some investigation. FIXME
10049 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10055 cygwin* | mingw* | pw32* | cegcc*)
10056 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10057 # as there is no search path for DLLs.
10058 hardcode_libdir_flag_spec='-L$libdir'
10059 allow_undefined_flag=unsupported
10060 always_export_symbols=no
10061 enable_shared_with_static_runtimes=yes
10062 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10064 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10065 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10066 # If the export-symbols file already is a .def file (1st line
10067 # is EXPORTS), use it as is; otherwise, prepend...
10068 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10069 cp $export_symbols $output_objdir/$soname.def;
10071 echo EXPORTS > $output_objdir/$soname.def;
10072 cat $export_symbols >> $output_objdir/$soname.def;
10074 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10082 hardcode_shlibpath_var=no
10083 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10084 export_dynamic_flag_spec='${wl}-E'
10085 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10086 # Instead, shared libraries are loaded at an image base (0x10000000 by
10087 # default) and relocated if they conflict, which is a slow very memory
10088 # consuming and fragmenting process. To avoid this, we pick a random,
10089 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10090 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10091 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10092 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'
10095 gnu* | linux* | tpf* | k*bsd*-gnu)
10097 if test "$host_os" = linux-dietlibc; then
10098 case $cc_basename in
10099 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10102 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10103 && test "$tmp_diet" = no
10106 tmp_sharedflag='-shared'
10107 case $cc_basename,$host_cpu in
10108 pgcc*) # Portland Group C compiler
10109 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'
10110 tmp_addflag=' $pic_flag'
10112 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10113 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'
10114 tmp_addflag=' $pic_flag -Mnomain' ;;
10115 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10116 tmp_addflag=' -i_dynamic' ;;
10117 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10118 tmp_addflag=' -i_dynamic -nofor_main' ;;
10119 ifc* | ifort*) # Intel Fortran compiler
10120 tmp_addflag=' -nofor_main' ;;
10121 lf95*) # Lahey Fortran 8.1
10122 whole_archive_flag_spec=
10123 tmp_sharedflag='--shared' ;;
10124 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10125 tmp_sharedflag='-qmkshrobj'
10128 case `$CC -V 2>&1 | sed 5q` in
10129 *Sun\ C*) # Sun C 5.9
10130 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'
10131 compiler_needs_object=yes
10132 tmp_sharedflag='-G' ;;
10133 *Sun\ F*) # Sun Fortran 8.3
10134 tmp_sharedflag='-G' ;;
10136 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10138 if test "x$supports_anon_versioning" = xyes; then
10139 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10140 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10141 echo "local: *; };" >> $output_objdir/$libname.ver~
10142 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10145 case $cc_basename in
10147 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10148 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10149 hardcode_libdir_flag_spec=
10150 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10151 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10152 if test "x$supports_anon_versioning" = xyes; then
10153 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10154 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10155 echo "local: *; };" >> $output_objdir/$libname.ver~
10156 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10166 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10167 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10170 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10171 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10176 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10180 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10181 *** create shared libraries on Solaris systems. Therefore, libtool
10182 *** is disabling shared libraries support. We urge you to upgrade GNU
10183 *** binutils to release 2.9.1 or newer. Another option is to modify
10184 *** your PATH or compiler configuration so that the native linker is
10185 *** used, and then restart.
10188 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10189 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10190 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10196 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10197 case `$LD -v 2>&1` in
10198 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10202 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10203 *** reliably create shared libraries on SCO systems. Therefore, libtool
10204 *** is disabling shared libraries support. We urge you to upgrade GNU
10205 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10206 *** your PATH or compiler configuration so that the native linker is
10207 *** used, and then restart.
10212 # For security reasons, it is highly recommended that you always
10213 # use absolute paths for naming shared libraries, and exclude the
10214 # DT_RUNPATH tag from executables and libraries. But doing so
10215 # requires that you compile everything twice, which is a pain.
10216 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10217 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10218 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10219 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10228 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10230 hardcode_direct=yes
10231 hardcode_shlibpath_var=no
10235 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10236 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10237 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10244 if test "$ld_shlibs" = no; then
10246 hardcode_libdir_flag_spec=
10247 export_dynamic_flag_spec=
10248 whole_archive_flag_spec=
10251 # PORTME fill in a description of your system's linker (not GNU ld)
10254 allow_undefined_flag=unsupported
10255 always_export_symbols=yes
10256 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'
10257 # Note: this linker hardcodes the directories in LIBPATH if there
10258 # are no directories specified by -L.
10259 hardcode_minus_L=yes
10260 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10261 # Neither direct hardcoding nor static linking is supported with a
10263 hardcode_direct=unsupported
10268 if test "$host_cpu" = ia64; then
10269 # On IA64, the linker does run time linking by default, so we don't
10270 # have to do anything special.
10271 aix_use_runtimelinking=no
10272 exp_sym_flag='-Bexport'
10275 # If we're using GNU nm, then we don't want the "-C" option.
10276 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10277 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10278 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'
10280 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'
10282 aix_use_runtimelinking=no
10284 # Test if we are trying to use run time linking or normal
10285 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10286 # need to do runtime linking.
10287 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10288 for ld_flag in $LDFLAGS; do
10289 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10290 aix_use_runtimelinking=yes
10297 exp_sym_flag='-bexport'
10298 no_entry_flag='-bnoentry'
10301 # When large executables or shared objects are built, AIX ld can
10302 # have problems creating the table of contents. If linking a library
10303 # or program results in "error TOC overflow" add -mminimal-toc to
10304 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10305 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10308 hardcode_direct=yes
10309 hardcode_direct_absolute=yes
10310 hardcode_libdir_separator=':'
10311 link_all_deplibs=yes
10312 file_list_spec='${wl}-f,'
10314 if test "$GCC" = yes; then
10315 case $host_os in aix4.[012]|aix4.[012].*)
10316 # We only want to do this on AIX 4.2 and lower, the check
10317 # below for broken collect2 doesn't work under 4.3+
10318 collect2name=`${CC} -print-prog-name=collect2`
10319 if test -f "$collect2name" &&
10320 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10322 # We have reworked collect2
10325 # We have old collect2
10326 hardcode_direct=unsupported
10327 # It fails to find uninstalled libraries when the uninstalled
10328 # path is not listed in the libpath. Setting hardcode_minus_L
10329 # to unsupported forces relinking
10330 hardcode_minus_L=yes
10331 hardcode_libdir_flag_spec='-L$libdir'
10332 hardcode_libdir_separator=
10336 shared_flag='-shared'
10337 if test "$aix_use_runtimelinking" = yes; then
10338 shared_flag="$shared_flag "'${wl}-G'
10342 if test "$host_cpu" = ia64; then
10343 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10344 # chokes on -Wl,-G. The following line is correct:
10347 if test "$aix_use_runtimelinking" = yes; then
10348 shared_flag='${wl}-G'
10350 shared_flag='${wl}-bM:SRE'
10355 export_dynamic_flag_spec='${wl}-bexpall'
10356 # It seems that -bexpall does not export symbols beginning with
10357 # underscore (_), so it is better to generate a list of symbols to export.
10358 always_export_symbols=yes
10359 if test "$aix_use_runtimelinking" = yes; then
10360 # Warning - without using the other runtime loading flags (-brtl),
10361 # -berok will link without error, but may produce a broken library.
10362 allow_undefined_flag='-berok'
10363 # Determine the default libpath from the value encoded in an
10364 # empty executable.
10365 cat >conftest.$ac_ext <<_ACEOF
10368 cat confdefs.h >>conftest.$ac_ext
10369 cat >>conftest.$ac_ext <<_ACEOF
10370 /* end confdefs.h. */
10380 rm -f conftest.$ac_objext conftest$ac_exeext
10381 if { (ac_try="$ac_link"
10382 case "(($ac_try" in
10383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10384 *) ac_try_echo=$ac_try;;
10386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10387 (eval "$ac_link") 2>conftest.er1
10389 grep -v '^ *+' conftest.er1 >conftest.err
10391 cat conftest.err >&5
10392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393 (exit $ac_status); } && {
10394 test -z "$ac_c_werror_flag" ||
10395 test ! -s conftest.err
10396 } && test -s conftest$ac_exeext &&
10397 $as_test_x conftest$ac_exeext; then
10399 lt_aix_libpath_sed='
10400 /Import File Strings/,/^$/ {
10406 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10407 # Check for a 64-bit object if we didn't find anything.
10408 if test -z "$aix_libpath"; then
10409 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10412 echo "$as_me: failed program was:" >&5
10413 sed 's/^/| /' conftest.$ac_ext >&5
10418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10419 conftest$ac_exeext conftest.$ac_ext
10420 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10422 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10423 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"
10425 if test "$host_cpu" = ia64; then
10426 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10427 allow_undefined_flag="-z nodefs"
10428 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"
10430 # Determine the default libpath from the value encoded in an
10431 # empty executable.
10432 cat >conftest.$ac_ext <<_ACEOF
10435 cat confdefs.h >>conftest.$ac_ext
10436 cat >>conftest.$ac_ext <<_ACEOF
10437 /* end confdefs.h. */
10447 rm -f conftest.$ac_objext conftest$ac_exeext
10448 if { (ac_try="$ac_link"
10449 case "(($ac_try" in
10450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10451 *) ac_try_echo=$ac_try;;
10453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10454 (eval "$ac_link") 2>conftest.er1
10456 grep -v '^ *+' conftest.er1 >conftest.err
10458 cat conftest.err >&5
10459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460 (exit $ac_status); } && {
10461 test -z "$ac_c_werror_flag" ||
10462 test ! -s conftest.err
10463 } && test -s conftest$ac_exeext &&
10464 $as_test_x conftest$ac_exeext; then
10466 lt_aix_libpath_sed='
10467 /Import File Strings/,/^$/ {
10473 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10474 # Check for a 64-bit object if we didn't find anything.
10475 if test -z "$aix_libpath"; then
10476 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10479 echo "$as_me: failed program was:" >&5
10480 sed 's/^/| /' conftest.$ac_ext >&5
10485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10486 conftest$ac_exeext conftest.$ac_ext
10487 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10489 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10490 # Warning - without using the other run time loading flags,
10491 # -berok will link without error, but may produce a broken library.
10492 no_undefined_flag=' ${wl}-bernotok'
10493 allow_undefined_flag=' ${wl}-berok'
10494 # Exported symbols can be pulled into shared objects from archives
10495 whole_archive_flag_spec='$convenience'
10496 archive_cmds_need_lc=yes
10497 # This is similar to how AIX traditionally builds its shared libraries.
10498 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'
10506 # see comment about AmigaOS4 .so support
10507 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10508 archive_expsym_cmds=''
10511 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)'
10512 hardcode_libdir_flag_spec='-L$libdir'
10513 hardcode_minus_L=yes
10519 export_dynamic_flag_spec=-rdynamic
10522 cygwin* | mingw* | pw32* | cegcc*)
10523 # When not using gcc, we currently assume that we are using
10524 # Microsoft Visual C++.
10525 # hardcode_libdir_flag_spec is actually meaningless, as there is
10526 # no search path for DLLs.
10527 hardcode_libdir_flag_spec=' '
10528 allow_undefined_flag=unsupported
10529 # Tell ltmain to make .lib files, not .a files.
10531 # Tell ltmain to make .dll files, not .so files.
10533 # FIXME: Setting linknames here is a bad hack.
10534 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10535 # The linker will automatically build a .lib file if we build a DLL.
10536 old_archive_from_new_cmds='true'
10537 # FIXME: Should let the user specify the lib program.
10538 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10539 fix_srcfile_path='`cygpath -w "$srcfile"`'
10540 enable_shared_with_static_runtimes=yes
10543 darwin* | rhapsody*)
10546 archive_cmds_need_lc=no
10548 hardcode_automatic=yes
10549 hardcode_shlibpath_var=unsupported
10550 whole_archive_flag_spec=''
10551 link_all_deplibs=yes
10552 allow_undefined_flag="$_lt_dar_allow_undefined"
10553 case $cc_basename in
10554 ifort*) _lt_dar_can_shared=yes ;;
10555 *) _lt_dar_can_shared=$GCC ;;
10557 if test "$_lt_dar_can_shared" = "yes"; then
10558 output_verbose_link_cmd=echo
10559 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10560 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10561 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}"
10562 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}"
10571 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10572 hardcode_libdir_flag_spec='-L$libdir'
10573 hardcode_shlibpath_var=no
10580 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10581 # support. Future versions do this automatically, but an explicit c++rt0.o
10582 # does not break anything, and helps significantly (at the cost of a little
10585 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10586 hardcode_libdir_flag_spec='-R$libdir'
10587 hardcode_direct=yes
10588 hardcode_shlibpath_var=no
10591 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10593 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10594 hardcode_direct=yes
10595 hardcode_minus_L=yes
10596 hardcode_shlibpath_var=no
10599 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10600 freebsd* | dragonfly*)
10601 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10602 hardcode_libdir_flag_spec='-R$libdir'
10603 hardcode_direct=yes
10604 hardcode_shlibpath_var=no
10608 if test "$GCC" = yes; then
10609 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'
10611 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'
10613 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10614 hardcode_libdir_separator=:
10615 hardcode_direct=yes
10617 # hardcode_minus_L: Not really in the search PATH,
10618 # but as the default location of the library.
10619 hardcode_minus_L=yes
10620 export_dynamic_flag_spec='${wl}-E'
10624 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10625 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10627 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10629 if test "$with_gnu_ld" = no; then
10630 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10631 hardcode_libdir_flag_spec_ld='+b $libdir'
10632 hardcode_libdir_separator=:
10633 hardcode_direct=yes
10634 hardcode_direct_absolute=yes
10635 export_dynamic_flag_spec='${wl}-E'
10636 # hardcode_minus_L: Not really in the search PATH,
10637 # but as the default location of the library.
10638 hardcode_minus_L=yes
10643 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10646 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10649 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10652 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10658 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10661 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10664 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10668 if test "$with_gnu_ld" = no; then
10669 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10670 hardcode_libdir_separator=:
10675 hardcode_shlibpath_var=no
10678 hardcode_direct=yes
10679 hardcode_direct_absolute=yes
10680 export_dynamic_flag_spec='${wl}-E'
10682 # hardcode_minus_L: Not really in the search PATH,
10683 # but as the default location of the library.
10684 hardcode_minus_L=yes
10690 irix5* | irix6* | nonstopux*)
10691 if test "$GCC" = yes; then
10692 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'
10693 # Try to use the -exported_symbol ld option, if it does not
10694 # work, assume that -exports_file does not work either and
10695 # implicitly export all symbols.
10696 save_LDFLAGS="$LDFLAGS"
10697 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10698 cat >conftest.$ac_ext <<_ACEOF
10701 rm -f conftest.$ac_objext conftest$ac_exeext
10702 if { (ac_try="$ac_link"
10703 case "(($ac_try" in
10704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10705 *) ac_try_echo=$ac_try;;
10707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10708 (eval "$ac_link") 2>conftest.er1
10710 grep -v '^ *+' conftest.er1 >conftest.err
10712 cat conftest.err >&5
10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); } && {
10715 test -z "$ac_c_werror_flag" ||
10716 test ! -s conftest.err
10717 } && test -s conftest$ac_exeext &&
10718 $as_test_x conftest$ac_exeext; then
10719 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'
10722 echo "$as_me: failed program was:" >&5
10723 sed 's/^/| /' conftest.$ac_ext >&5
10728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10729 conftest$ac_exeext conftest.$ac_ext
10730 LDFLAGS="$save_LDFLAGS"
10732 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'
10733 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'
10735 archive_cmds_need_lc='no'
10736 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10737 hardcode_libdir_separator=:
10739 link_all_deplibs=yes
10743 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10744 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10746 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10748 hardcode_libdir_flag_spec='-R$libdir'
10749 hardcode_direct=yes
10750 hardcode_shlibpath_var=no
10754 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10755 hardcode_direct=yes
10756 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10757 hardcode_libdir_separator=:
10758 hardcode_shlibpath_var=no
10765 if test -f /usr/libexec/ld.so; then
10766 hardcode_direct=yes
10767 hardcode_shlibpath_var=no
10768 hardcode_direct_absolute=yes
10769 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10770 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10771 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10772 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10773 export_dynamic_flag_spec='${wl}-E'
10776 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10777 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10778 hardcode_libdir_flag_spec='-R$libdir'
10781 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10782 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10792 hardcode_libdir_flag_spec='-L$libdir'
10793 hardcode_minus_L=yes
10794 allow_undefined_flag=unsupported
10795 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'
10796 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10800 if test "$GCC" = yes; then
10801 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10802 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'
10804 allow_undefined_flag=' -expect_unresolved \*'
10805 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'
10807 archive_cmds_need_lc='no'
10808 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10809 hardcode_libdir_separator=:
10812 osf4* | osf5*) # as osf3* with the addition of -msym flag
10813 if test "$GCC" = yes; then
10814 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10815 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-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'
10816 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10818 allow_undefined_flag=' -expect_unresolved \*'
10819 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'
10820 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~
10821 $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'
10823 # Both c and cxx compiler support -rpath directly
10824 hardcode_libdir_flag_spec='-rpath $libdir'
10826 archive_cmds_need_lc='no'
10827 hardcode_libdir_separator=:
10831 no_undefined_flag=' -z defs'
10832 if test "$GCC" = yes; then
10834 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10835 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10836 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10838 case `$CC -V 2>&1` in
10841 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10842 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10843 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10847 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10848 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10849 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10853 hardcode_libdir_flag_spec='-R$libdir'
10854 hardcode_shlibpath_var=no
10856 solaris2.[0-5] | solaris2.[0-5].*) ;;
10858 # The compiler driver will combine and reorder linker options,
10859 # but understands `-z linker_flag'. GCC discards it without `$wl',
10860 # but is careful enough not to reorder.
10861 # Supported since Solaris 2.6 (maybe 2.5.1?)
10862 if test "$GCC" = yes; then
10863 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10865 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10869 link_all_deplibs=yes
10873 if test "x$host_vendor" = xsequent; then
10874 # Use $CC to link under sequent, because it throws in some extra .o
10875 # files that make .init and .fini sections work.
10876 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10878 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10880 hardcode_libdir_flag_spec='-L$libdir'
10881 hardcode_direct=yes
10882 hardcode_minus_L=yes
10883 hardcode_shlibpath_var=no
10887 case $host_vendor in
10889 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10890 hardcode_direct=yes # is this really true???
10893 ## LD is ld it makes a PLAMLIB
10894 ## CC just makes a GrossModule.
10895 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10896 reload_cmds='$CC -r -o $output$reload_objs'
10900 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10901 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10904 runpath_var='LD_RUN_PATH'
10905 hardcode_shlibpath_var=no
10909 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10910 hardcode_shlibpath_var=no
10911 export_dynamic_flag_spec='-Bexport'
10915 if test -d /usr/nec; then
10916 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10917 hardcode_shlibpath_var=no
10918 runpath_var=LD_RUN_PATH
10919 hardcode_runpath_var=yes
10924 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10925 no_undefined_flag='${wl}-z,text'
10926 archive_cmds_need_lc=no
10927 hardcode_shlibpath_var=no
10928 runpath_var='LD_RUN_PATH'
10930 if test "$GCC" = yes; then
10931 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10932 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10934 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10935 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10939 sysv5* | sco3.2v5* | sco5v6*)
10940 # Note: We can NOT use -z defs as we might desire, because we do not
10941 # link with -lc, and that would cause any symbols used from libc to
10942 # always be unresolved, which means just about no library would
10943 # ever link correctly. If we're not using GNU ld we use -z text
10944 # though, which does catch some bad symbols but isn't as heavy-handed
10946 no_undefined_flag='${wl}-z,text'
10947 allow_undefined_flag='${wl}-z,nodefs'
10948 archive_cmds_need_lc=no
10949 hardcode_shlibpath_var=no
10950 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10951 hardcode_libdir_separator=':'
10952 link_all_deplibs=yes
10953 export_dynamic_flag_spec='${wl}-Bexport'
10954 runpath_var='LD_RUN_PATH'
10956 if test "$GCC" = yes; then
10957 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10958 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10960 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10961 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10966 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10967 hardcode_libdir_flag_spec='-L$libdir'
10968 hardcode_shlibpath_var=no
10976 if test x$host_vendor = xsni; then
10978 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10979 export_dynamic_flag_spec='${wl}-Blargedynsym'
10985 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10986 echo "${ECHO_T}$ld_shlibs" >&6; }
10987 test "$ld_shlibs" = no && can_build_shared=no
10989 with_gnu_ld=$with_gnu_ld
11006 # Do we need to explicitly link libc?
11008 case "x$archive_cmds_need_lc" in
11010 # Assume -lc should be added
11011 archive_cmds_need_lc=yes
11013 if test "$enable_shared" = yes && test "$GCC" = yes; then
11014 case $archive_cmds in
11016 # FIXME: we may have to deal with multi-command sequences.
11019 # Test whether the compiler implicitly links with -lc since on some
11020 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11021 # to ld, don't add -lc before -lgcc.
11022 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11023 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11025 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11028 (eval $ac_compile) 2>&5
11030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031 (exit $ac_status); } 2>conftest.err; then
11034 libobjs=conftest.$ac_objext
11036 wl=$lt_prog_compiler_wl
11037 pic_flag=$lt_prog_compiler_pic
11043 lt_save_allow_undefined_flag=$allow_undefined_flag
11044 allow_undefined_flag=
11045 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11046 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); }
11051 archive_cmds_need_lc=no
11053 archive_cmds_need_lc=yes
11055 allow_undefined_flag=$lt_save_allow_undefined_flag
11057 cat conftest.err 1>&5
11060 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11061 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11224 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11225 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11227 if test "$GCC" = yes; then
11229 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11230 *) lt_awk_arg="/^libraries:/" ;;
11232 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11233 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11234 # if the path contains ";" then we assume it to be the separator
11235 # otherwise default to the standard path separator (i.e. ":") - it is
11236 # assumed that no part of a normal pathname contains ";" but that should
11237 # okay in the real world where ";" in dirpaths is itself problematic.
11238 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11240 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11242 # Ok, now we have the path, separated by spaces, we can step through it
11243 # and add multilib dir if necessary.
11244 lt_tmp_lt_search_path_spec=
11245 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11246 for lt_sys_path in $lt_search_path_spec; do
11247 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11248 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11250 test -d "$lt_sys_path" && \
11251 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11254 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11255 BEGIN {RS=" "; FS="/|\n";} {
11258 for (lt_i = NF; lt_i > 0; lt_i--) {
11259 if ($lt_i != "" && $lt_i != ".") {
11260 if ($lt_i == "..") {
11263 if (lt_count == 0) {
11264 lt_foo="/" $lt_i lt_foo;
11271 if (lt_foo != "") { lt_freq[lt_foo]++; }
11272 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11274 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11276 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11278 library_names_spec=
11279 libname_spec='lib$name'
11283 postuninstall_cmds=
11287 shlibpath_overrides_runpath=unknown
11289 dynamic_linker="$host_os ld.so"
11290 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11291 need_lib_prefix=unknown
11292 hardcode_into_libs=no
11294 # when you set need_version to no, make sure it does not cause -set_version
11295 # flags to be left without arguments
11296 need_version=unknown
11301 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11302 shlibpath_var=LIBPATH
11304 # AIX 3 has no versioning support, so we append a major version to the name.
11305 soname_spec='${libname}${release}${shared_ext}$major'
11312 hardcode_into_libs=yes
11313 if test "$host_cpu" = ia64; then
11314 # AIX 5 supports IA64
11315 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11316 shlibpath_var=LD_LIBRARY_PATH
11318 # With GCC up to 2.95.x, collect2 would create an import file
11319 # for dependence libraries. The import file would start with
11320 # the line `#! .'. This would cause the generated library to
11321 # depend on `.', always an invalid library. This was fixed in
11322 # development snapshots of GCC prior to 3.0.
11324 aix4 | aix4.[01] | aix4.[01].*)
11325 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11327 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11330 can_build_shared=no
11334 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11335 # soname into executable. Probably we can add versioning support to
11336 # collect2, so additional links can be useful in future.
11337 if test "$aix_use_runtimelinking" = yes; then
11338 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11339 # instead of lib<name>.a to let people know that these are not
11340 # typical AIX shared libraries.
11341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11343 # We preserve .a as extension for shared libraries through AIX4.2
11344 # and later when we are not doing run time linking.
11345 library_names_spec='${libname}${release}.a $libname.a'
11346 soname_spec='${libname}${release}${shared_ext}$major'
11348 shlibpath_var=LIBPATH
11355 # Since July 2007 AmigaOS4 officially supports .so libraries.
11356 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11360 library_names_spec='$libname.ixlibrary $libname.a'
11361 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11362 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'
11368 library_names_spec='${libname}${shared_ext}'
11369 dynamic_linker="$host_os ld.so"
11370 shlibpath_var=LIBRARY_PATH
11376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11377 soname_spec='${libname}${release}${shared_ext}$major'
11378 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11379 shlibpath_var=LD_LIBRARY_PATH
11380 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11381 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11382 # the default ld.so.conf also contains /usr/contrib/lib and
11383 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11384 # libtool to hard-code these into programs
11387 cygwin* | mingw* | pw32* | cegcc*)
11388 version_type=windows
11393 case $GCC,$host_os in
11394 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11395 library_names_spec='$libname.dll.a'
11396 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11397 postinstall_cmds='base_file=`basename \${file}`~
11398 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11399 dldir=$destdir/`dirname \$dlpath`~
11400 test -d \$dldir || mkdir -p \$dldir~
11401 $install_prog $dir/$dlname \$dldir/$dlname~
11402 chmod a+x \$dldir/$dlname~
11403 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11404 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11406 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11407 dlpath=$dir/\$dldll~
11409 shlibpath_overrides_runpath=yes
11413 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11414 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11415 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11418 # MinGW DLLs use traditional 'lib' prefix
11419 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11420 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11421 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11422 # It is most probably a Windows format PATH printed by
11423 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11424 # path with ; separators, and with drive letters. We can handle the
11425 # drive letters (cygwin fileutils understands them), so leave them,
11426 # especially as we might pass files found there to a mingw objdump,
11427 # which wouldn't understand a cygwinified path. Ahh.
11428 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11430 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11434 # pw32 DLLs use 'pw' prefix rather than 'lib'
11435 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11441 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11444 dynamic_linker='Win32 ld.exe'
11445 # FIXME: first we should search . and the directory the executable is in
11449 darwin* | rhapsody*)
11450 dynamic_linker="$host_os dyld"
11451 version_type=darwin
11454 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11455 soname_spec='${libname}${release}${major}$shared_ext'
11456 shlibpath_overrides_runpath=yes
11457 shlibpath_var=DYLD_LIBRARY_PATH
11458 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11460 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11461 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11469 soname_spec='${libname}${release}${shared_ext}$major'
11470 shlibpath_var=LD_LIBRARY_PATH
11477 freebsd* | dragonfly*)
11478 # DragonFly does not have aout. When/if they implement a new
11479 # versioning mechanism, adjust this.
11480 if test -x /usr/bin/objformat; then
11481 objformat=`/usr/bin/objformat`
11484 freebsd[123]*) objformat=aout ;;
11485 *) objformat=elf ;;
11488 version_type=freebsd-$objformat
11489 case $version_type in
11491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11496 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11500 shlibpath_var=LD_LIBRARY_PATH
11503 shlibpath_overrides_runpath=yes
11505 freebsd3.[01]* | freebsdelf3.[01]*)
11506 shlibpath_overrides_runpath=yes
11507 hardcode_into_libs=yes
11509 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11510 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11511 shlibpath_overrides_runpath=no
11512 hardcode_into_libs=yes
11514 *) # from 4.6 on, and DragonFly
11515 shlibpath_overrides_runpath=yes
11516 hardcode_into_libs=yes
11525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11526 soname_spec='${libname}${release}${shared_ext}$major'
11527 shlibpath_var=LD_LIBRARY_PATH
11528 hardcode_into_libs=yes
11531 hpux9* | hpux10* | hpux11*)
11532 # Give a soname corresponding to the major version so that dld.sl refuses to
11533 # link against other versions.
11540 hardcode_into_libs=yes
11541 dynamic_linker="$host_os dld.so"
11542 shlibpath_var=LD_LIBRARY_PATH
11543 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11545 soname_spec='${libname}${release}${shared_ext}$major'
11546 if test "X$HPUX_IA64_MODE" = X32; then
11547 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11549 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11551 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11555 hardcode_into_libs=yes
11556 dynamic_linker="$host_os dld.sl"
11557 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11558 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11560 soname_spec='${libname}${release}${shared_ext}$major'
11561 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11562 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11566 dynamic_linker="$host_os dld.sl"
11567 shlibpath_var=SHLIB_PATH
11568 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11570 soname_spec='${libname}${release}${shared_ext}$major'
11573 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11574 postinstall_cmds='chmod 555 $lib'
11581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11582 soname_spec='${libname}${release}${shared_ext}$major'
11583 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11584 shlibpath_var=LD_LIBRARY_PATH
11585 shlibpath_overrides_runpath=no
11586 hardcode_into_libs=yes
11589 irix5* | irix6* | nonstopux*)
11591 nonstopux*) version_type=nonstopux ;;
11593 if test "$lt_cv_prog_gnu_ld" = yes; then
11601 soname_spec='${libname}${release}${shared_ext}$major'
11602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11604 irix5* | nonstopux*)
11605 libsuff= shlibsuff=
11608 case $LD in # libtool.m4 will add one of these switches to LD
11609 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11610 libsuff= shlibsuff= libmagic=32-bit;;
11611 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11612 libsuff=32 shlibsuff=N32 libmagic=N32;;
11613 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11614 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11615 *) libsuff= shlibsuff= libmagic=never-match;;
11619 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11620 shlibpath_overrides_runpath=no
11621 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11622 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11623 hardcode_into_libs=yes
11626 # No shared lib support for Linux oldld, aout, or coff.
11627 linux*oldld* | linux*aout* | linux*coff*)
11631 # This must be Linux ELF.
11632 linux* | k*bsd*-gnu)
11636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11637 soname_spec='${libname}${release}${shared_ext}$major'
11638 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11639 shlibpath_var=LD_LIBRARY_PATH
11640 shlibpath_overrides_runpath=no
11641 # Some binutils ld are patched to set DT_RUNPATH
11642 save_LDFLAGS=$LDFLAGS
11643 save_libdir=$libdir
11644 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11645 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11646 cat >conftest.$ac_ext <<_ACEOF
11649 cat confdefs.h >>conftest.$ac_ext
11650 cat >>conftest.$ac_ext <<_ACEOF
11651 /* end confdefs.h. */
11661 rm -f conftest.$ac_objext conftest$ac_exeext
11662 if { (ac_try="$ac_link"
11663 case "(($ac_try" in
11664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11665 *) ac_try_echo=$ac_try;;
11667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11668 (eval "$ac_link") 2>conftest.er1
11670 grep -v '^ *+' conftest.er1 >conftest.err
11672 cat conftest.err >&5
11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); } && {
11675 test -z "$ac_c_werror_flag" ||
11676 test ! -s conftest.err
11677 } && test -s conftest$ac_exeext &&
11678 $as_test_x conftest$ac_exeext; then
11679 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11680 shlibpath_overrides_runpath=yes
11684 echo "$as_me: failed program was:" >&5
11685 sed 's/^/| /' conftest.$ac_ext >&5
11690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11691 conftest$ac_exeext conftest.$ac_ext
11692 LDFLAGS=$save_LDFLAGS
11693 libdir=$save_libdir
11695 # This implies no fast_install, which is unacceptable.
11696 # Some rework will be needed to allow for fast_install
11697 # before this can be enabled.
11698 hardcode_into_libs=yes
11700 # Append ld.so.conf contents to the search path
11701 if test -f /etc/ld.so.conf; then
11702 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' ' '`
11703 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11706 # We used to test for /lib/ld.so.1 and disable shared libraries on
11707 # powerpc, because MkLinux only supported shared libraries with the
11708 # GNU dynamic linker. Since this was broken with cross compilers,
11709 # most powerpc-linux boxes support dynamic linking these days and
11710 # people can always --disable-shared, the test was removed, and we
11711 # assume the GNU/Linux dynamic linker is in use.
11712 dynamic_linker='GNU/Linux ld.so'
11719 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11721 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11722 dynamic_linker='NetBSD (a.out) ld.so'
11724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11725 soname_spec='${libname}${release}${shared_ext}$major'
11726 dynamic_linker='NetBSD ld.elf_so'
11728 shlibpath_var=LD_LIBRARY_PATH
11729 shlibpath_overrides_runpath=yes
11730 hardcode_into_libs=yes
11735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11736 shlibpath_var=LD_LIBRARY_PATH
11737 shlibpath_overrides_runpath=yes
11744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11745 soname_spec='${libname}${release}${shared_ext}$major'
11746 shlibpath_var=LD_LIBRARY_PATH
11747 shlibpath_overrides_runpath=no
11748 hardcode_into_libs=yes
11749 dynamic_linker='ldqnx.so'
11754 sys_lib_dlsearch_path_spec="/usr/lib"
11756 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11758 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11759 *) need_version=no ;;
11761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11762 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11763 shlibpath_var=LD_LIBRARY_PATH
11764 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11766 openbsd2.[89] | openbsd2.[89].*)
11767 shlibpath_overrides_runpath=no
11770 shlibpath_overrides_runpath=yes
11774 shlibpath_overrides_runpath=yes
11779 libname_spec='$name'
11782 library_names_spec='$libname${shared_ext} $libname.a'
11783 dynamic_linker='OS/2 ld.exe'
11784 shlibpath_var=LIBPATH
11787 osf3* | osf4* | osf5*)
11791 soname_spec='${libname}${release}${shared_ext}$major'
11792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11793 shlibpath_var=LD_LIBRARY_PATH
11794 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11795 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11807 soname_spec='${libname}${release}${shared_ext}$major'
11808 shlibpath_var=LD_LIBRARY_PATH
11809 shlibpath_overrides_runpath=yes
11810 hardcode_into_libs=yes
11811 # ldd complains unless libraries are executable
11812 postinstall_cmds='chmod +x $lib'
11817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11818 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11819 shlibpath_var=LD_LIBRARY_PATH
11820 shlibpath_overrides_runpath=yes
11821 if test "$with_gnu_ld" = yes; then
11829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11830 soname_spec='${libname}${release}${shared_ext}$major'
11831 shlibpath_var=LD_LIBRARY_PATH
11832 case $host_vendor in
11834 shlibpath_overrides_runpath=no
11836 runpath_var=LD_RUN_PATH
11844 shlibpath_overrides_runpath=no
11845 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11851 if test -d /usr/nec ;then
11853 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11854 soname_spec='$libname${shared_ext}.$major'
11855 shlibpath_var=LD_LIBRARY_PATH
11859 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11860 version_type=freebsd-elf
11863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11864 soname_spec='${libname}${release}${shared_ext}$major'
11865 shlibpath_var=LD_LIBRARY_PATH
11866 shlibpath_overrides_runpath=yes
11867 hardcode_into_libs=yes
11868 if test "$with_gnu_ld" = yes; then
11869 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11871 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11874 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11878 sys_lib_dlsearch_path_spec='/usr/lib'
11882 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11887 shlibpath_var=LD_LIBRARY_PATH
11888 shlibpath_overrides_runpath=no
11889 hardcode_into_libs=yes
11894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11895 soname_spec='${libname}${release}${shared_ext}$major'
11896 shlibpath_var=LD_LIBRARY_PATH
11903 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11904 echo "${ECHO_T}$dynamic_linker" >&6; }
11905 test "$dynamic_linker" = no && can_build_shared=no
11907 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11908 if test "$GCC" = yes; then
11909 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11912 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11913 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11915 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11916 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12005 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12006 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12008 if test -n "$hardcode_libdir_flag_spec" ||
12009 test -n "$runpath_var" ||
12010 test "X$hardcode_automatic" = "Xyes" ; then
12012 # We can hardcode non-existent directories.
12013 if test "$hardcode_direct" != no &&
12014 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12015 # have to relink, otherwise we might link with an installed library
12016 # when we should be linking with a yet-to-be-installed one
12017 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12018 test "$hardcode_minus_L" != no; then
12019 # Linking always hardcodes the temporary library directory.
12020 hardcode_action=relink
12022 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12023 hardcode_action=immediate
12026 # We cannot hardcode anything, or else we can only hardcode existing
12028 hardcode_action=unsupported
12030 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12031 echo "${ECHO_T}$hardcode_action" >&6; }
12033 if test "$hardcode_action" = relink ||
12034 test "$inherit_rpath" = yes; then
12035 # Fast installation is not supported
12036 enable_fast_install=no
12037 elif test "$shlibpath_overrides_runpath" = yes ||
12038 test "$enable_shared" = no; then
12039 # Fast installation is not necessary
12040 enable_fast_install=needless
12048 if test "x$enable_dlopen" != xyes; then
12049 enable_dlopen=unknown
12050 enable_dlopen_self=unknown
12051 enable_dlopen_self_static=unknown
12058 lt_cv_dlopen="load_add_on"
12060 lt_cv_dlopen_self=yes
12063 mingw* | pw32* | cegcc*)
12064 lt_cv_dlopen="LoadLibrary"
12069 lt_cv_dlopen="dlopen"
12074 # if libdl is installed we need to link against it
12075 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12076 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12077 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12078 echo $ECHO_N "(cached) $ECHO_C" >&6
12080 ac_check_lib_save_LIBS=$LIBS
12082 cat >conftest.$ac_ext <<_ACEOF
12085 cat confdefs.h >>conftest.$ac_ext
12086 cat >>conftest.$ac_ext <<_ACEOF
12087 /* end confdefs.h. */
12089 /* Override any GCC internal prototype to avoid an error.
12090 Use char because int might match the return type of a GCC
12091 builtin and then its argument prototype would still apply. */
12104 rm -f conftest.$ac_objext conftest$ac_exeext
12105 if { (ac_try="$ac_link"
12106 case "(($ac_try" in
12107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12108 *) ac_try_echo=$ac_try;;
12110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12111 (eval "$ac_link") 2>conftest.er1
12113 grep -v '^ *+' conftest.er1 >conftest.err
12115 cat conftest.err >&5
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); } && {
12118 test -z "$ac_c_werror_flag" ||
12119 test ! -s conftest.err
12120 } && test -s conftest$ac_exeext &&
12121 $as_test_x conftest$ac_exeext; then
12122 ac_cv_lib_dl_dlopen=yes
12124 echo "$as_me: failed program was:" >&5
12125 sed 's/^/| /' conftest.$ac_ext >&5
12127 ac_cv_lib_dl_dlopen=no
12130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12131 conftest$ac_exeext conftest.$ac_ext
12132 LIBS=$ac_check_lib_save_LIBS
12134 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12135 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12136 if test $ac_cv_lib_dl_dlopen = yes; then
12137 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12140 lt_cv_dlopen="dyld"
12142 lt_cv_dlopen_self=yes
12149 { echo "$as_me:$LINENO: checking for shl_load" >&5
12150 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12151 if test "${ac_cv_func_shl_load+set}" = set; then
12152 echo $ECHO_N "(cached) $ECHO_C" >&6
12154 cat >conftest.$ac_ext <<_ACEOF
12157 cat confdefs.h >>conftest.$ac_ext
12158 cat >>conftest.$ac_ext <<_ACEOF
12159 /* end confdefs.h. */
12160 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12161 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12162 #define shl_load innocuous_shl_load
12164 /* System header to define __stub macros and hopefully few prototypes,
12165 which can conflict with char shl_load (); below.
12166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12167 <limits.h> exists even on freestanding compilers. */
12170 # include <limits.h>
12172 # include <assert.h>
12177 /* Override any GCC internal prototype to avoid an error.
12178 Use char because int might match the return type of a GCC
12179 builtin and then its argument prototype would still apply. */
12184 /* The GNU C library defines this for functions which it implements
12185 to always fail with ENOSYS. Some functions are actually named
12186 something starting with __ and the normal name is an alias. */
12187 #if defined __stub_shl_load || defined __stub___shl_load
12194 return shl_load ();
12199 rm -f conftest.$ac_objext conftest$ac_exeext
12200 if { (ac_try="$ac_link"
12201 case "(($ac_try" in
12202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12203 *) ac_try_echo=$ac_try;;
12205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12206 (eval "$ac_link") 2>conftest.er1
12208 grep -v '^ *+' conftest.er1 >conftest.err
12210 cat conftest.err >&5
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); } && {
12213 test -z "$ac_c_werror_flag" ||
12214 test ! -s conftest.err
12215 } && test -s conftest$ac_exeext &&
12216 $as_test_x conftest$ac_exeext; then
12217 ac_cv_func_shl_load=yes
12219 echo "$as_me: failed program was:" >&5
12220 sed 's/^/| /' conftest.$ac_ext >&5
12222 ac_cv_func_shl_load=no
12225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12226 conftest$ac_exeext conftest.$ac_ext
12228 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12229 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12230 if test $ac_cv_func_shl_load = yes; then
12231 lt_cv_dlopen="shl_load"
12233 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12234 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12235 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12236 echo $ECHO_N "(cached) $ECHO_C" >&6
12238 ac_check_lib_save_LIBS=$LIBS
12240 cat >conftest.$ac_ext <<_ACEOF
12243 cat confdefs.h >>conftest.$ac_ext
12244 cat >>conftest.$ac_ext <<_ACEOF
12245 /* end confdefs.h. */
12247 /* Override any GCC internal prototype to avoid an error.
12248 Use char because int might match the return type of a GCC
12249 builtin and then its argument prototype would still apply. */
12257 return shl_load ();
12262 rm -f conftest.$ac_objext conftest$ac_exeext
12263 if { (ac_try="$ac_link"
12264 case "(($ac_try" in
12265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12266 *) ac_try_echo=$ac_try;;
12268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12269 (eval "$ac_link") 2>conftest.er1
12271 grep -v '^ *+' conftest.er1 >conftest.err
12273 cat conftest.err >&5
12274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275 (exit $ac_status); } && {
12276 test -z "$ac_c_werror_flag" ||
12277 test ! -s conftest.err
12278 } && test -s conftest$ac_exeext &&
12279 $as_test_x conftest$ac_exeext; then
12280 ac_cv_lib_dld_shl_load=yes
12282 echo "$as_me: failed program was:" >&5
12283 sed 's/^/| /' conftest.$ac_ext >&5
12285 ac_cv_lib_dld_shl_load=no
12288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12289 conftest$ac_exeext conftest.$ac_ext
12290 LIBS=$ac_check_lib_save_LIBS
12292 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12293 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12294 if test $ac_cv_lib_dld_shl_load = yes; then
12295 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12297 { echo "$as_me:$LINENO: checking for dlopen" >&5
12298 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12299 if test "${ac_cv_func_dlopen+set}" = set; then
12300 echo $ECHO_N "(cached) $ECHO_C" >&6
12302 cat >conftest.$ac_ext <<_ACEOF
12305 cat confdefs.h >>conftest.$ac_ext
12306 cat >>conftest.$ac_ext <<_ACEOF
12307 /* end confdefs.h. */
12308 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12309 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12310 #define dlopen innocuous_dlopen
12312 /* System header to define __stub macros and hopefully few prototypes,
12313 which can conflict with char dlopen (); below.
12314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12315 <limits.h> exists even on freestanding compilers. */
12318 # include <limits.h>
12320 # include <assert.h>
12325 /* Override any GCC internal prototype to avoid an error.
12326 Use char because int might match the return type of a GCC
12327 builtin and then its argument prototype would still apply. */
12332 /* The GNU C library defines this for functions which it implements
12333 to always fail with ENOSYS. Some functions are actually named
12334 something starting with __ and the normal name is an alias. */
12335 #if defined __stub_dlopen || defined __stub___dlopen
12347 rm -f conftest.$ac_objext conftest$ac_exeext
12348 if { (ac_try="$ac_link"
12349 case "(($ac_try" in
12350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12351 *) ac_try_echo=$ac_try;;
12353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12354 (eval "$ac_link") 2>conftest.er1
12356 grep -v '^ *+' conftest.er1 >conftest.err
12358 cat conftest.err >&5
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); } && {
12361 test -z "$ac_c_werror_flag" ||
12362 test ! -s conftest.err
12363 } && test -s conftest$ac_exeext &&
12364 $as_test_x conftest$ac_exeext; then
12365 ac_cv_func_dlopen=yes
12367 echo "$as_me: failed program was:" >&5
12368 sed 's/^/| /' conftest.$ac_ext >&5
12370 ac_cv_func_dlopen=no
12373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12374 conftest$ac_exeext conftest.$ac_ext
12376 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12377 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12378 if test $ac_cv_func_dlopen = yes; then
12379 lt_cv_dlopen="dlopen"
12381 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12382 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12383 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12384 echo $ECHO_N "(cached) $ECHO_C" >&6
12386 ac_check_lib_save_LIBS=$LIBS
12388 cat >conftest.$ac_ext <<_ACEOF
12391 cat confdefs.h >>conftest.$ac_ext
12392 cat >>conftest.$ac_ext <<_ACEOF
12393 /* end confdefs.h. */
12395 /* Override any GCC internal prototype to avoid an error.
12396 Use char because int might match the return type of a GCC
12397 builtin and then its argument prototype would still apply. */
12410 rm -f conftest.$ac_objext conftest$ac_exeext
12411 if { (ac_try="$ac_link"
12412 case "(($ac_try" in
12413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12414 *) ac_try_echo=$ac_try;;
12416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12417 (eval "$ac_link") 2>conftest.er1
12419 grep -v '^ *+' conftest.er1 >conftest.err
12421 cat conftest.err >&5
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); } && {
12424 test -z "$ac_c_werror_flag" ||
12425 test ! -s conftest.err
12426 } && test -s conftest$ac_exeext &&
12427 $as_test_x conftest$ac_exeext; then
12428 ac_cv_lib_dl_dlopen=yes
12430 echo "$as_me: failed program was:" >&5
12431 sed 's/^/| /' conftest.$ac_ext >&5
12433 ac_cv_lib_dl_dlopen=no
12436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12437 conftest$ac_exeext conftest.$ac_ext
12438 LIBS=$ac_check_lib_save_LIBS
12440 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12441 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12442 if test $ac_cv_lib_dl_dlopen = yes; then
12443 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12445 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12446 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12447 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12448 echo $ECHO_N "(cached) $ECHO_C" >&6
12450 ac_check_lib_save_LIBS=$LIBS
12451 LIBS="-lsvld $LIBS"
12452 cat >conftest.$ac_ext <<_ACEOF
12455 cat confdefs.h >>conftest.$ac_ext
12456 cat >>conftest.$ac_ext <<_ACEOF
12457 /* end confdefs.h. */
12459 /* Override any GCC internal prototype to avoid an error.
12460 Use char because int might match the return type of a GCC
12461 builtin and then its argument prototype would still apply. */
12474 rm -f conftest.$ac_objext conftest$ac_exeext
12475 if { (ac_try="$ac_link"
12476 case "(($ac_try" in
12477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12478 *) ac_try_echo=$ac_try;;
12480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12481 (eval "$ac_link") 2>conftest.er1
12483 grep -v '^ *+' conftest.er1 >conftest.err
12485 cat conftest.err >&5
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); } && {
12488 test -z "$ac_c_werror_flag" ||
12489 test ! -s conftest.err
12490 } && test -s conftest$ac_exeext &&
12491 $as_test_x conftest$ac_exeext; then
12492 ac_cv_lib_svld_dlopen=yes
12494 echo "$as_me: failed program was:" >&5
12495 sed 's/^/| /' conftest.$ac_ext >&5
12497 ac_cv_lib_svld_dlopen=no
12500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12501 conftest$ac_exeext conftest.$ac_ext
12502 LIBS=$ac_check_lib_save_LIBS
12504 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12505 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12506 if test $ac_cv_lib_svld_dlopen = yes; then
12507 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12509 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12510 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12511 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12512 echo $ECHO_N "(cached) $ECHO_C" >&6
12514 ac_check_lib_save_LIBS=$LIBS
12516 cat >conftest.$ac_ext <<_ACEOF
12519 cat confdefs.h >>conftest.$ac_ext
12520 cat >>conftest.$ac_ext <<_ACEOF
12521 /* end confdefs.h. */
12523 /* Override any GCC internal prototype to avoid an error.
12524 Use char because int might match the return type of a GCC
12525 builtin and then its argument prototype would still apply. */
12533 return dld_link ();
12538 rm -f conftest.$ac_objext conftest$ac_exeext
12539 if { (ac_try="$ac_link"
12540 case "(($ac_try" in
12541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12542 *) ac_try_echo=$ac_try;;
12544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12545 (eval "$ac_link") 2>conftest.er1
12547 grep -v '^ *+' conftest.er1 >conftest.err
12549 cat conftest.err >&5
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); } && {
12552 test -z "$ac_c_werror_flag" ||
12553 test ! -s conftest.err
12554 } && test -s conftest$ac_exeext &&
12555 $as_test_x conftest$ac_exeext; then
12556 ac_cv_lib_dld_dld_link=yes
12558 echo "$as_me: failed program was:" >&5
12559 sed 's/^/| /' conftest.$ac_ext >&5
12561 ac_cv_lib_dld_dld_link=no
12564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12565 conftest$ac_exeext conftest.$ac_ext
12566 LIBS=$ac_check_lib_save_LIBS
12568 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12569 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12570 if test $ac_cv_lib_dld_dld_link = yes; then
12571 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12592 if test "x$lt_cv_dlopen" != xno; then
12598 case $lt_cv_dlopen in
12600 save_CPPFLAGS="$CPPFLAGS"
12601 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12603 save_LDFLAGS="$LDFLAGS"
12604 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12607 LIBS="$lt_cv_dlopen_libs $LIBS"
12609 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12610 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12611 if test "${lt_cv_dlopen_self+set}" = set; then
12612 echo $ECHO_N "(cached) $ECHO_C" >&6
12614 if test "$cross_compiling" = yes; then :
12615 lt_cv_dlopen_self=cross
12617 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12618 lt_status=$lt_dlunknown
12619 cat > conftest.$ac_ext <<_LT_EOF
12620 #line 12620 "configure"
12621 #include "confdefs.h"
12630 # define LT_DLGLOBAL RTLD_GLOBAL
12633 # define LT_DLGLOBAL DL_GLOBAL
12635 # define LT_DLGLOBAL 0
12639 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12640 find out it does not work in some platform. */
12641 #ifndef LT_DLLAZY_OR_NOW
12643 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12646 # define LT_DLLAZY_OR_NOW DL_LAZY
12649 # define LT_DLLAZY_OR_NOW RTLD_NOW
12652 # define LT_DLLAZY_OR_NOW DL_NOW
12654 # define LT_DLLAZY_OR_NOW 0
12661 void fnord() { int i=42;}
12664 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12665 int status = $lt_dlunknown;
12669 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12670 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12671 /* dlclose (self); */
12679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12680 (eval $ac_link) 2>&5
12682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12684 (./conftest; exit; ) >&5 2>/dev/null
12686 case x$lt_status in
12687 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12688 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12689 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12692 # compilation failed
12693 lt_cv_dlopen_self=no
12700 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12701 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12703 if test "x$lt_cv_dlopen_self" = xyes; then
12704 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12705 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12706 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12707 if test "${lt_cv_dlopen_self_static+set}" = set; then
12708 echo $ECHO_N "(cached) $ECHO_C" >&6
12710 if test "$cross_compiling" = yes; then :
12711 lt_cv_dlopen_self_static=cross
12713 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12714 lt_status=$lt_dlunknown
12715 cat > conftest.$ac_ext <<_LT_EOF
12716 #line 12716 "configure"
12717 #include "confdefs.h"
12726 # define LT_DLGLOBAL RTLD_GLOBAL
12729 # define LT_DLGLOBAL DL_GLOBAL
12731 # define LT_DLGLOBAL 0
12735 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12736 find out it does not work in some platform. */
12737 #ifndef LT_DLLAZY_OR_NOW
12739 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12742 # define LT_DLLAZY_OR_NOW DL_LAZY
12745 # define LT_DLLAZY_OR_NOW RTLD_NOW
12748 # define LT_DLLAZY_OR_NOW DL_NOW
12750 # define LT_DLLAZY_OR_NOW 0
12757 void fnord() { int i=42;}
12760 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12761 int status = $lt_dlunknown;
12765 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12766 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12767 /* dlclose (self); */
12775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12776 (eval $ac_link) 2>&5
12778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12780 (./conftest; exit; ) >&5 2>/dev/null
12782 case x$lt_status in
12783 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12784 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12785 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12788 # compilation failed
12789 lt_cv_dlopen_self_static=no
12796 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12797 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12800 CPPFLAGS="$save_CPPFLAGS"
12801 LDFLAGS="$save_LDFLAGS"
12806 case $lt_cv_dlopen_self in
12807 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12808 *) enable_dlopen_self=unknown ;;
12811 case $lt_cv_dlopen_self_static in
12812 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12813 *) enable_dlopen_self_static=unknown ;;
12835 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12836 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12837 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12838 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12839 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12840 { echo "$as_me:$LINENO: result: yes" >&5
12841 echo "${ECHO_T}yes" >&6; }
12843 # FIXME - insert some real tests, host_os isn't really good enough
12846 if test -n "$STRIP" ; then
12847 striplib="$STRIP -x"
12848 old_striplib="$STRIP -S"
12849 { echo "$as_me:$LINENO: result: yes" >&5
12850 echo "${ECHO_T}yes" >&6; }
12852 { echo "$as_me:$LINENO: result: no" >&5
12853 echo "${ECHO_T}no" >&6; }
12857 { echo "$as_me:$LINENO: result: no" >&5
12858 echo "${ECHO_T}no" >&6; }
12874 # Report which library types will actually be built
12875 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12876 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12877 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12878 echo "${ECHO_T}$can_build_shared" >&6; }
12880 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12881 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12882 test "$can_build_shared" = "no" && enable_shared=no
12884 # On AIX, shared libraries and static libraries use the same namespace, and
12885 # are all built from PIC.
12888 test "$enable_shared" = yes && enable_static=no
12889 if test -n "$RANLIB"; then
12890 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12891 postinstall_cmds='$RANLIB $lib'
12896 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12897 test "$enable_shared" = yes && enable_static=no
12901 { echo "$as_me:$LINENO: result: $enable_shared" >&5
12902 echo "${ECHO_T}$enable_shared" >&6; }
12904 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12905 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12906 # Make sure either enable_shared or enable_static is yes.
12907 test "$enable_shared" = yes || enable_static=yes
12908 { echo "$as_me:$LINENO: result: $enable_static" >&5
12909 echo "${ECHO_T}$enable_static" >&6; }
12916 ac_cpp='$CPP $CPPFLAGS'
12917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12925 ac_cpp='$CXXCPP $CPPFLAGS'
12926 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12927 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12928 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12930 archive_cmds_need_lc_CXX=no
12931 allow_undefined_flag_CXX=
12932 always_export_symbols_CXX=no
12933 archive_expsym_cmds_CXX=
12934 compiler_needs_object_CXX=no
12935 export_dynamic_flag_spec_CXX=
12936 hardcode_direct_CXX=no
12937 hardcode_direct_absolute_CXX=no
12938 hardcode_libdir_flag_spec_CXX=
12939 hardcode_libdir_flag_spec_ld_CXX=
12940 hardcode_libdir_separator_CXX=
12941 hardcode_minus_L_CXX=no
12942 hardcode_shlibpath_var_CXX=unsupported
12943 hardcode_automatic_CXX=no
12944 inherit_rpath_CXX=no
12946 module_expsym_cmds_CXX=
12947 link_all_deplibs_CXX=unknown
12948 old_archive_cmds_CXX=$old_archive_cmds
12949 no_undefined_flag_CXX=
12950 whole_archive_flag_spec_CXX=
12951 enable_shared_with_static_runtimes_CXX=no
12953 # Source file extension for C++ test sources.
12956 # Object file extension for compiled C++ test sources.
12960 # No sense in running all these tests if we already determined that
12961 # the CXX compiler isn't working. Some variables (like enable_shared)
12962 # are currently assumed to apply to all compilers on this platform,
12963 # and will be corrupted by setting them based on a non-working compiler.
12964 if test "$_lt_caught_CXX_error" != yes; then
12965 # Code to be used in simple compile tests
12966 lt_simple_compile_test_code="int some_variable = 0;"
12968 # Code to be used in simple link tests
12969 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12971 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12978 # If no C compiler was specified, use CC.
12981 # If no C compiler flags were specified, use CFLAGS.
12982 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12984 # Allow CC to be a program name with arguments.
12988 # save warnings/boilerplate of simple test code
12989 ac_outfile=conftest.$ac_objext
12990 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12991 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12992 _lt_compiler_boilerplate=`cat conftest.err`
12995 ac_outfile=conftest.$ac_objext
12996 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12997 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12998 _lt_linker_boilerplate=`cat conftest.err`
13002 # Allow CC to be a program name with arguments.
13007 lt_save_with_gnu_ld=$with_gnu_ld
13008 lt_save_path_LD=$lt_cv_path_LD
13009 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13010 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13012 $as_unset lt_cv_prog_gnu_ld
13014 if test -n "${lt_cv_path_LDCXX+set}"; then
13015 lt_cv_path_LD=$lt_cv_path_LDCXX
13017 $as_unset lt_cv_path_LD
13019 test -z "${LDCXX+set}" || LD=$LDCXX
13023 for cc_temp in $compiler""; do
13025 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13026 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13031 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13034 if test -n "$compiler"; then
13035 # We don't want -fno-exception when compiling C++ code, so set the
13036 # no_builtin_flag separately
13037 if test "$GXX" = yes; then
13038 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13040 lt_prog_compiler_no_builtin_flag_CXX=
13043 if test "$GXX" = yes; then
13044 # Set up default GNU C++ configuration
13048 # Check whether --with-gnu-ld was given.
13049 if test "${with_gnu_ld+set}" = set; then
13050 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13056 if test "$GCC" = yes; then
13057 # Check if gcc -print-prog-name=ld gives a path.
13058 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13059 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13062 # gcc leaves a trailing carriage return which upsets mingw
13063 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13065 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13068 # Accept absolute paths.
13070 re_direlt='/[^/][^/]*/\.\./'
13071 # Canonicalize the pathname of ld
13072 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13073 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13074 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13076 test -z "$LD" && LD="$ac_prog"
13079 # If it fails, then pretend we aren't using GCC.
13083 # If it is relative, then search for the first ld in PATH.
13084 with_gnu_ld=unknown
13087 elif test "$with_gnu_ld" = yes; then
13088 { echo "$as_me:$LINENO: checking for GNU ld" >&5
13089 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13091 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13092 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13094 if test "${lt_cv_path_LD+set}" = set; then
13095 echo $ECHO_N "(cached) $ECHO_C" >&6
13097 if test -z "$LD"; then
13098 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13099 for ac_dir in $PATH; do
13101 test -z "$ac_dir" && ac_dir=.
13102 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13103 lt_cv_path_LD="$ac_dir/$ac_prog"
13104 # Check to see if the program is GNU ld. I'd rather use --version,
13105 # but apparently some variants of GNU ld only accept -v.
13106 # Break only if it was the GNU/non-GNU ld that we prefer.
13107 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13108 *GNU* | *'with BFD'*)
13109 test "$with_gnu_ld" != no && break
13112 test "$with_gnu_ld" != yes && break
13119 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13123 LD="$lt_cv_path_LD"
13124 if test -n "$LD"; then
13125 { echo "$as_me:$LINENO: result: $LD" >&5
13126 echo "${ECHO_T}$LD" >&6; }
13128 { echo "$as_me:$LINENO: result: no" >&5
13129 echo "${ECHO_T}no" >&6; }
13131 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13132 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13133 { (exit 1); exit 1; }; }
13134 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13135 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13136 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13137 echo $ECHO_N "(cached) $ECHO_C" >&6
13139 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13140 case `$LD -v 2>&1 </dev/null` in
13141 *GNU* | *'with BFD'*)
13142 lt_cv_prog_gnu_ld=yes
13145 lt_cv_prog_gnu_ld=no
13149 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13150 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13151 with_gnu_ld=$lt_cv_prog_gnu_ld
13159 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13160 # archiving commands below assume that GNU ld is being used.
13161 if test "$with_gnu_ld" = yes; then
13162 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13163 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'
13165 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13166 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13168 # If archive_cmds runs LD, not CC, wlarc should be empty
13169 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13170 # investigate it a little bit more. (MM)
13173 # ancient GNU ld didn't support --whole-archive et. al.
13174 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13175 $GREP 'no-whole-archive' > /dev/null; then
13176 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13178 whole_archive_flag_spec_CXX=
13184 # A generic and very simple default shared library creation
13185 # command for GNU C++ for the case where it uses the native
13186 # linker, instead of GNU ld. If possible, this setting should
13187 # overridden to take advantage of the native linker features on
13188 # the platform it is being used on.
13189 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13192 # Commands to make compiler produce verbose output that lists
13193 # what "hidden" libraries, object files and flags are used when
13194 # linking a shared library.
13195 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13203 # PORTME: fill in a description of your system's C++ link characteristics
13204 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13205 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13209 # FIXME: insert proper C++ library support
13213 if test "$host_cpu" = ia64; then
13214 # On IA64, the linker does run time linking by default, so we don't
13215 # have to do anything special.
13216 aix_use_runtimelinking=no
13217 exp_sym_flag='-Bexport'
13220 aix_use_runtimelinking=no
13222 # Test if we are trying to use run time linking or normal
13223 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13224 # need to do runtime linking.
13225 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13226 for ld_flag in $LDFLAGS; do
13229 aix_use_runtimelinking=yes
13237 exp_sym_flag='-bexport'
13238 no_entry_flag='-bnoentry'
13241 # When large executables or shared objects are built, AIX ld can
13242 # have problems creating the table of contents. If linking a library
13243 # or program results in "error TOC overflow" add -mminimal-toc to
13244 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13245 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13247 archive_cmds_CXX=''
13248 hardcode_direct_CXX=yes
13249 hardcode_direct_absolute_CXX=yes
13250 hardcode_libdir_separator_CXX=':'
13251 link_all_deplibs_CXX=yes
13252 file_list_spec_CXX='${wl}-f,'
13254 if test "$GXX" = yes; then
13255 case $host_os in aix4.[012]|aix4.[012].*)
13256 # We only want to do this on AIX 4.2 and lower, the check
13257 # below for broken collect2 doesn't work under 4.3+
13258 collect2name=`${CC} -print-prog-name=collect2`
13259 if test -f "$collect2name" &&
13260 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13262 # We have reworked collect2
13265 # We have old collect2
13266 hardcode_direct_CXX=unsupported
13267 # It fails to find uninstalled libraries when the uninstalled
13268 # path is not listed in the libpath. Setting hardcode_minus_L
13269 # to unsupported forces relinking
13270 hardcode_minus_L_CXX=yes
13271 hardcode_libdir_flag_spec_CXX='-L$libdir'
13272 hardcode_libdir_separator_CXX=
13275 shared_flag='-shared'
13276 if test "$aix_use_runtimelinking" = yes; then
13277 shared_flag="$shared_flag "'${wl}-G'
13281 if test "$host_cpu" = ia64; then
13282 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13283 # chokes on -Wl,-G. The following line is correct:
13286 if test "$aix_use_runtimelinking" = yes; then
13287 shared_flag='${wl}-G'
13289 shared_flag='${wl}-bM:SRE'
13294 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13295 # It seems that -bexpall does not export symbols beginning with
13296 # underscore (_), so it is better to generate a list of symbols to
13298 always_export_symbols_CXX=yes
13299 if test "$aix_use_runtimelinking" = yes; then
13300 # Warning - without using the other runtime loading flags (-brtl),
13301 # -berok will link without error, but may produce a broken library.
13302 allow_undefined_flag_CXX='-berok'
13303 # Determine the default libpath from the value encoded in an empty
13305 cat >conftest.$ac_ext <<_ACEOF
13308 cat confdefs.h >>conftest.$ac_ext
13309 cat >>conftest.$ac_ext <<_ACEOF
13310 /* end confdefs.h. */
13320 rm -f conftest.$ac_objext conftest$ac_exeext
13321 if { (ac_try="$ac_link"
13322 case "(($ac_try" in
13323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13324 *) ac_try_echo=$ac_try;;
13326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13327 (eval "$ac_link") 2>conftest.er1
13329 grep -v '^ *+' conftest.er1 >conftest.err
13331 cat conftest.err >&5
13332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333 (exit $ac_status); } && {
13334 test -z "$ac_cxx_werror_flag" ||
13335 test ! -s conftest.err
13336 } && test -s conftest$ac_exeext &&
13337 $as_test_x conftest$ac_exeext; then
13339 lt_aix_libpath_sed='
13340 /Import File Strings/,/^$/ {
13346 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13347 # Check for a 64-bit object if we didn't find anything.
13348 if test -z "$aix_libpath"; then
13349 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13352 echo "$as_me: failed program was:" >&5
13353 sed 's/^/| /' conftest.$ac_ext >&5
13358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13359 conftest$ac_exeext conftest.$ac_ext
13360 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13362 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13364 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"
13366 if test "$host_cpu" = ia64; then
13367 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13368 allow_undefined_flag_CXX="-z nodefs"
13369 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"
13371 # Determine the default libpath from the value encoded in an
13372 # empty executable.
13373 cat >conftest.$ac_ext <<_ACEOF
13376 cat confdefs.h >>conftest.$ac_ext
13377 cat >>conftest.$ac_ext <<_ACEOF
13378 /* end confdefs.h. */
13388 rm -f conftest.$ac_objext conftest$ac_exeext
13389 if { (ac_try="$ac_link"
13390 case "(($ac_try" in
13391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13392 *) ac_try_echo=$ac_try;;
13394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13395 (eval "$ac_link") 2>conftest.er1
13397 grep -v '^ *+' conftest.er1 >conftest.err
13399 cat conftest.err >&5
13400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 (exit $ac_status); } && {
13402 test -z "$ac_cxx_werror_flag" ||
13403 test ! -s conftest.err
13404 } && test -s conftest$ac_exeext &&
13405 $as_test_x conftest$ac_exeext; then
13407 lt_aix_libpath_sed='
13408 /Import File Strings/,/^$/ {
13414 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13415 # Check for a 64-bit object if we didn't find anything.
13416 if test -z "$aix_libpath"; then
13417 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13420 echo "$as_me: failed program was:" >&5
13421 sed 's/^/| /' conftest.$ac_ext >&5
13426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13427 conftest$ac_exeext conftest.$ac_ext
13428 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13430 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13431 # Warning - without using the other run time loading flags,
13432 # -berok will link without error, but may produce a broken library.
13433 no_undefined_flag_CXX=' ${wl}-bernotok'
13434 allow_undefined_flag_CXX=' ${wl}-berok'
13435 # Exported symbols can be pulled into shared objects from archives
13436 whole_archive_flag_spec_CXX='$convenience'
13437 archive_cmds_need_lc_CXX=yes
13438 # This is similar to how AIX traditionally builds its shared
13440 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'
13446 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13447 allow_undefined_flag_CXX=unsupported
13448 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13449 # support --undefined. This deserves some investigation. FIXME
13450 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13457 case $cc_basename in
13459 # FIXME: insert proper C++ library support
13465 cygwin* | mingw* | pw32* | cegcc*)
13466 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13467 # as there is no search path for DLLs.
13468 hardcode_libdir_flag_spec_CXX='-L$libdir'
13469 allow_undefined_flag_CXX=unsupported
13470 always_export_symbols_CXX=no
13471 enable_shared_with_static_runtimes_CXX=yes
13473 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13474 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'
13475 # If the export-symbols file already is a .def file (1st line
13476 # is EXPORTS), use it as is; otherwise, prepend...
13477 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13478 cp $export_symbols $output_objdir/$soname.def;
13480 echo EXPORTS > $output_objdir/$soname.def;
13481 cat $export_symbols >> $output_objdir/$soname.def;
13483 $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'
13488 darwin* | rhapsody*)
13491 archive_cmds_need_lc_CXX=no
13492 hardcode_direct_CXX=no
13493 hardcode_automatic_CXX=yes
13494 hardcode_shlibpath_var_CXX=unsupported
13495 whole_archive_flag_spec_CXX=''
13496 link_all_deplibs_CXX=yes
13497 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13498 case $cc_basename in
13499 ifort*) _lt_dar_can_shared=yes ;;
13500 *) _lt_dar_can_shared=$GCC ;;
13502 if test "$_lt_dar_can_shared" = "yes"; then
13503 output_verbose_link_cmd=echo
13504 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}"
13505 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13506 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}"
13507 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}"
13508 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13509 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}"
13510 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}"
13520 case $cc_basename in
13522 # FIXME: insert proper C++ library support
13526 # Green Hills C++ Compiler
13527 # FIXME: insert proper C++ library support
13531 # FIXME: insert proper C++ library support
13538 # C++ shared libraries reported to be fairly broken before
13544 archive_cmds_need_lc_CXX=no
13547 freebsd* | dragonfly*)
13548 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13557 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13558 hardcode_libdir_separator_CXX=:
13559 export_dynamic_flag_spec_CXX='${wl}-E'
13560 hardcode_direct_CXX=yes
13561 hardcode_minus_L_CXX=yes # Not in the search PATH,
13562 # but as the default
13563 # location of the library.
13565 case $cc_basename in
13567 # FIXME: insert proper C++ library support
13571 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'
13572 # Commands to make compiler produce verbose output that lists
13573 # what "hidden" libraries, object files and flags are used when
13574 # linking a shared library.
13576 # There doesn't appear to be a way to prevent this compiler from
13577 # explicitly linking system object files so we need to strip them
13578 # from the output so that they don't get included in the library
13580 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'
13583 if test "$GXX" = yes; then
13584 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'
13586 # FIXME: insert proper C++ library support
13594 if test $with_gnu_ld = no; then
13595 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13596 hardcode_libdir_separator_CXX=:
13602 export_dynamic_flag_spec_CXX='${wl}-E'
13608 hardcode_direct_CXX=no
13609 hardcode_shlibpath_var_CXX=no
13612 hardcode_direct_CXX=yes
13613 hardcode_direct_absolute_CXX=yes
13614 hardcode_minus_L_CXX=yes # Not in the search PATH,
13615 # but as the default
13616 # location of the library.
13620 case $cc_basename in
13622 # FIXME: insert proper C++ library support
13628 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13631 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13634 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13637 # Commands to make compiler produce verbose output that lists
13638 # what "hidden" libraries, object files and flags are used when
13639 # linking a shared library.
13641 # There doesn't appear to be a way to prevent this compiler from
13642 # explicitly linking system object files so we need to strip them
13643 # from the output so that they don't get included in the library
13645 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'
13648 if test "$GXX" = yes; then
13649 if test $with_gnu_ld = no; then
13652 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13655 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13658 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'
13663 # FIXME: insert proper C++ library support
13671 hardcode_direct_CXX=no
13672 hardcode_shlibpath_var_CXX=no
13673 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13674 export_dynamic_flag_spec_CXX='${wl}-E'
13675 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13676 # Instead, shared libraries are loaded at an image base (0x10000000 by
13677 # default) and relocated if they conflict, which is a slow very memory
13678 # consuming and fragmenting process. To avoid this, we pick a random,
13679 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13680 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13681 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'
13682 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'
13685 case $cc_basename in
13688 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'
13690 # Archives containing C++ object files must be created using
13691 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13692 # necessary to make sure instantiated templates are included
13694 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13697 if test "$GXX" = yes; then
13698 if test "$with_gnu_ld" = no; then
13699 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'
13701 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'
13704 link_all_deplibs_CXX=yes
13707 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13708 hardcode_libdir_separator_CXX=:
13709 inherit_rpath_CXX=yes
13712 linux* | k*bsd*-gnu)
13713 case $cc_basename in
13715 # Kuck and Associates, Inc. (KAI) C++ Compiler
13717 # KCC will only create a shared library if the output file
13718 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13719 # to its proper name (with version) after linking.
13720 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'
13721 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'
13722 # Commands to make compiler produce verbose output that lists
13723 # what "hidden" libraries, object files and flags are used when
13724 # linking a shared library.
13726 # There doesn't appear to be a way to prevent this compiler from
13727 # explicitly linking system object files so we need to strip them
13728 # from the output so that they don't get included in the library
13730 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'
13732 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13733 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13735 # Archives containing C++ object files must be created using
13736 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13737 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13742 # version 8.0 and above of icpc choke on multiply defined symbols
13743 # if we add $predep_objects and $postdep_objects, however 7.1 and
13744 # earlier do not add the objects themselves.
13745 case `$CC -V 2>&1` in
13747 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13748 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'
13750 *) # Version 8.0 or newer
13753 ia64*) tmp_idyn=' -i_dynamic';;
13755 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13756 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'
13759 archive_cmds_need_lc_CXX=no
13760 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13761 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13762 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13765 # Portland Group C++ compiler
13767 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13768 prelink_cmds_CXX='tpldir=Template.dir~
13770 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13771 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13772 old_archive_cmds_CXX='tpldir=Template.dir~
13774 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13775 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13777 archive_cmds_CXX='tpldir=Template.dir~
13779 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13780 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13781 archive_expsym_cmds_CXX='tpldir=Template.dir~
13783 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13784 $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'
13786 *) # Version 6 will use weak symbols
13787 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13788 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'
13792 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13793 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13794 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'
13798 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13799 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'
13801 runpath_var=LD_RUN_PATH
13802 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13803 hardcode_libdir_separator_CXX=:
13805 # Commands to make compiler produce verbose output that lists
13806 # what "hidden" libraries, object files and flags are used when
13807 # linking a shared library.
13809 # There doesn't appear to be a way to prevent this compiler from
13810 # explicitly linking system object files so we need to strip them
13811 # from the output so that they don't get included in the library
13813 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'
13816 # IBM XL 8.0 on PPC, with GNU ld
13817 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13818 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13819 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13820 if test "x$supports_anon_versioning" = xyes; then
13821 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13822 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13823 echo "local: *; };" >> $output_objdir/$libname.ver~
13824 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13828 case `$CC -V 2>&1 | sed 5q` in
13831 no_undefined_flag_CXX=' -zdefs'
13832 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13833 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'
13834 hardcode_libdir_flag_spec_CXX='-R$libdir'
13835 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'
13836 compiler_needs_object_CXX=yes
13838 # Not sure whether something based on
13839 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13841 output_verbose_link_cmd='echo'
13843 # Archives containing C++ object files must be created using
13844 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13845 # necessary to make sure instantiated templates are included
13847 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13855 # FIXME: insert proper C++ library support
13860 # FIXME: insert proper C++ library support
13865 case $cc_basename in
13867 # FIXME: insert proper C++ library support
13871 # FIXME: insert proper C++ library support
13878 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13879 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13881 hardcode_libdir_flag_spec_CXX='-R$libdir'
13882 hardcode_direct_CXX=yes
13883 hardcode_shlibpath_var_CXX=no
13885 # Workaround some broken pre-1.5 toolchains
13886 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13894 # C++ shared libraries are fairly broken
13899 if test -f /usr/libexec/ld.so; then
13900 hardcode_direct_CXX=yes
13901 hardcode_shlibpath_var_CXX=no
13902 hardcode_direct_absolute_CXX=yes
13903 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13904 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13905 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13906 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13907 export_dynamic_flag_spec_CXX='${wl}-E'
13908 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13910 output_verbose_link_cmd=echo
13916 osf3* | osf4* | osf5*)
13917 case $cc_basename in
13919 # Kuck and Associates, Inc. (KAI) C++ Compiler
13921 # KCC will only create a shared library if the output file
13922 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13923 # to its proper name (with version) after linking.
13924 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'
13926 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13927 hardcode_libdir_separator_CXX=:
13929 # Archives containing C++ object files must be created using
13930 # the KAI C++ compiler.
13932 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13933 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13937 # Rational C++ 2.4.1
13938 # FIXME: insert proper C++ library support
13944 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13945 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'
13946 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13949 allow_undefined_flag_CXX=' -expect_unresolved \*'
13950 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'
13951 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13952 echo "-hidden">> $lib.exp~
13953 $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~
13955 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13959 hardcode_libdir_separator_CXX=:
13961 # Commands to make compiler produce verbose output that lists
13962 # what "hidden" libraries, object files and flags are used when
13963 # linking a shared library.
13965 # There doesn't appear to be a way to prevent this compiler from
13966 # explicitly linking system object files so we need to strip them
13967 # from the output so that they don't get included in the library
13969 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'
13972 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13973 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13976 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'
13979 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'
13983 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13984 hardcode_libdir_separator_CXX=:
13986 # Commands to make compiler produce verbose output that lists
13987 # what "hidden" libraries, object files and flags are used when
13988 # linking a shared library.
13989 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13992 # FIXME: insert proper C++ library support
14000 # FIXME: insert proper C++ library support
14005 case $cc_basename in
14008 # FIXME: insert proper C++ library support
14013 # FIXME: insert proper C++ library support
14017 # FIXME: insert proper C++ library support
14024 case $cc_basename in
14026 # Sun C++ 4.2, 5.x and Centerline C++
14027 archive_cmds_need_lc_CXX=yes
14028 no_undefined_flag_CXX=' -zdefs'
14029 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14030 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14031 $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'
14033 hardcode_libdir_flag_spec_CXX='-R$libdir'
14034 hardcode_shlibpath_var_CXX=no
14036 solaris2.[0-5] | solaris2.[0-5].*) ;;
14038 # The compiler driver will combine and reorder linker options,
14039 # but understands `-z linker_flag'.
14040 # Supported since Solaris 2.6 (maybe 2.5.1?)
14041 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14044 link_all_deplibs_CXX=yes
14046 output_verbose_link_cmd='echo'
14048 # Archives containing C++ object files must be created using
14049 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14050 # necessary to make sure instantiated templates are included
14052 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14055 # Green Hills C++ Compiler
14056 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14058 # The C++ compiler must be used to create the archive.
14059 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14062 # GNU C++ compiler with Solaris linker
14063 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14064 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14065 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14066 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14067 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14068 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14070 # Commands to make compiler produce verbose output that lists
14071 # what "hidden" libraries, object files and flags are used when
14072 # linking a shared library.
14073 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14075 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14077 archive_cmds_CXX='$CC -G -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 -G -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 -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14087 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14089 solaris2.[0-5] | solaris2.[0-5].*) ;;
14091 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14099 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14100 no_undefined_flag_CXX='${wl}-z,text'
14101 archive_cmds_need_lc_CXX=no
14102 hardcode_shlibpath_var_CXX=no
14103 runpath_var='LD_RUN_PATH'
14105 case $cc_basename in
14107 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14108 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14111 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14112 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14117 sysv5* | sco3.2v5* | sco5v6*)
14118 # Note: We can NOT use -z defs as we might desire, because we do not
14119 # link with -lc, and that would cause any symbols used from libc to
14120 # always be unresolved, which means just about no library would
14121 # ever link correctly. If we're not using GNU ld we use -z text
14122 # though, which does catch some bad symbols but isn't as heavy-handed
14124 no_undefined_flag_CXX='${wl}-z,text'
14125 allow_undefined_flag_CXX='${wl}-z,nodefs'
14126 archive_cmds_need_lc_CXX=no
14127 hardcode_shlibpath_var_CXX=no
14128 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14129 hardcode_libdir_separator_CXX=':'
14130 link_all_deplibs_CXX=yes
14131 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14132 runpath_var='LD_RUN_PATH'
14134 case $cc_basename in
14136 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14137 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14140 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14141 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14147 case $cc_basename in
14149 # NonStop-UX NCC 3.20
14150 # FIXME: insert proper C++ library support
14154 # FIXME: insert proper C++ library support
14161 # FIXME: insert proper C++ library support
14166 # FIXME: insert proper C++ library support
14171 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14172 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14173 test "$ld_shlibs_CXX" = no && can_build_shared=no
14179 ## There is no encapsulation within the following macros, do not change
14180 ## the running order or otherwise move them around unless you know exactly
14181 ## what you are doing...
14182 # Dependencies to place before and after the object being linked:
14183 predep_objects_CXX=
14184 postdep_objects_CXX=
14187 compiler_lib_search_path_CXX=
14189 cat > conftest.$ac_ext <<_LT_EOF
14193 Foo (void) { a = 0; }
14199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14200 (eval $ac_compile) 2>&5
14202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203 (exit $ac_status); }; then
14204 # Parse the compiler output and extract the necessary
14205 # objects, libraries and library flags.
14207 # Sentinel used to keep track of whether or not we are before
14208 # the conftest object file.
14209 pre_test_object_deps_done=no
14211 for p in `eval "$output_verbose_link_cmd"`; do
14215 # Some compilers place space between "-{L,R}" and the path.
14216 # Remove the space.
14217 if test $p = "-L" ||
14218 test $p = "-R"; then
14225 if test "$pre_test_object_deps_done" = no; then
14228 # Internal compiler library paths should come after those
14229 # provided the user. The postdeps already come after the
14230 # user supplied libs so there is no need to process them.
14231 if test -z "$compiler_lib_search_path_CXX"; then
14232 compiler_lib_search_path_CXX="${prev}${p}"
14234 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14237 # The "-l" case would never come before the object being
14238 # linked, so don't bother handling this case.
14241 if test -z "$postdeps_CXX"; then
14242 postdeps_CXX="${prev}${p}"
14244 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14250 # This assumes that the test object file only shows up
14251 # once in the compiler output.
14252 if test "$p" = "conftest.$objext"; then
14253 pre_test_object_deps_done=yes
14257 if test "$pre_test_object_deps_done" = no; then
14258 if test -z "$predep_objects_CXX"; then
14259 predep_objects_CXX="$p"
14261 predep_objects_CXX="$predep_objects_CXX $p"
14264 if test -z "$postdep_objects_CXX"; then
14265 postdep_objects_CXX="$p"
14267 postdep_objects_CXX="$postdep_objects_CXX $p"
14272 *) ;; # Ignore the rest.
14280 echo "libtool.m4: error: problem compiling CXX test program"
14283 $RM -f confest.$objext
14285 # PORTME: override above test on systems where it is broken
14288 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14289 # hack all around it, let's just trust "g++" to DTRT.
14290 predep_objects_CXX=
14291 postdep_objects_CXX=
14296 case `$CC -V 2>&1 | sed 5q` in
14300 # The more standards-conforming stlport4 library is
14301 # incompatible with the Cstd library. Avoid specifying
14302 # it if it's in CXXFLAGS. Ignore libCrun as
14303 # -library=stlport4 depends on it.
14304 case " $CXX $CXXFLAGS " in
14305 *" -library=stlport4 "*)
14306 solaris_use_stlport4=yes
14310 if test "$solaris_use_stlport4" != yes; then
14311 postdeps_CXX='-library=Cstd -library=Crun'
14318 case $cc_basename in
14320 # The more standards-conforming stlport4 library is
14321 # incompatible with the Cstd library. Avoid specifying
14322 # it if it's in CXXFLAGS. Ignore libCrun as
14323 # -library=stlport4 depends on it.
14324 case " $CXX $CXXFLAGS " in
14325 *" -library=stlport4 "*)
14326 solaris_use_stlport4=yes
14330 # Adding this requires a known-good setup of shared libraries for
14331 # Sun compiler versions before 5.6, else PIC objects from an old
14332 # archive will be linked into the output, leading to subtle bugs.
14333 if test "$solaris_use_stlport4" != yes; then
14334 postdeps_CXX='-library=Cstd -library=Crun'
14342 case " $postdeps_CXX " in
14343 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14345 compiler_lib_search_dirs_CXX=
14346 if test -n "${compiler_lib_search_path_CXX}"; then
14347 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14380 lt_prog_compiler_wl_CXX=
14381 lt_prog_compiler_pic_CXX=
14382 lt_prog_compiler_static_CXX=
14384 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14385 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14387 # C++ specific cases for pic, static, wl, etc.
14388 if test "$GXX" = yes; then
14389 lt_prog_compiler_wl_CXX='-Wl,'
14390 lt_prog_compiler_static_CXX='-static'
14394 # All AIX code is PIC.
14395 if test "$host_cpu" = ia64; then
14396 # AIX 5 now supports IA64 processor
14397 lt_prog_compiler_static_CXX='-Bstatic'
14404 # see comment about AmigaOS4 .so support
14405 lt_prog_compiler_pic_CXX='-fPIC'
14408 # FIXME: we need at least 68020 code to build shared libraries, but
14409 # adding the `-m68020' flag to GCC prevents building anything better,
14411 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14416 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14417 # PIC is the default for these OSes.
14419 mingw* | cygwin* | os2* | pw32* | cegcc*)
14420 # This hack is so that the source file can tell whether it is being
14421 # built for inclusion in a dll (and should export symbols for example).
14422 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14423 # (--disable-auto-import) libraries
14424 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14426 darwin* | rhapsody*)
14427 # PIC is the default on this platform
14428 # Common symbols not allowed in MH_DYLIB files
14429 lt_prog_compiler_pic_CXX='-fno-common'
14432 # DJGPP does not support shared libraries at all
14433 lt_prog_compiler_pic_CXX=
14436 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14437 # Instead, we relocate shared libraries at runtime.
14440 if test -d /usr/nec; then
14441 lt_prog_compiler_pic_CXX=-Kconform_pic
14445 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14446 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14447 # sets the default TLS model and affects inlining.
14452 lt_prog_compiler_pic_CXX='-fPIC'
14457 # QNX uses GNU C++, but need to define -shared option too, otherwise
14458 # it will coredump.
14459 lt_prog_compiler_pic_CXX='-fPIC -shared'
14462 lt_prog_compiler_pic_CXX='-fPIC'
14468 # All AIX code is PIC.
14469 if test "$host_cpu" = ia64; then
14470 # AIX 5 now supports IA64 processor
14471 lt_prog_compiler_static_CXX='-Bstatic'
14473 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14477 case $cc_basename in
14479 # Green Hills C++ Compiler
14480 # _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"
14485 case $cc_basename in
14487 lt_prog_compiler_pic_CXX='-KPIC'
14490 # Green Hills C++ Compiler
14491 lt_prog_compiler_pic_CXX='-pic'
14497 freebsd* | dragonfly*)
14498 # FreeBSD uses GNU C++
14500 hpux9* | hpux10* | hpux11*)
14501 case $cc_basename in
14503 lt_prog_compiler_wl_CXX='-Wl,'
14504 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14505 if test "$host_cpu" != ia64; then
14506 lt_prog_compiler_pic_CXX='+Z'
14510 lt_prog_compiler_wl_CXX='-Wl,'
14511 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14517 lt_prog_compiler_pic_CXX='+Z'
14526 # This is c89, which is MS Visual C++ (no shared libs)
14527 # Anyone wants to do a port?
14529 irix5* | irix6* | nonstopux*)
14530 case $cc_basename in
14532 lt_prog_compiler_wl_CXX='-Wl,'
14533 lt_prog_compiler_static_CXX='-non_shared'
14534 # CC pic flag -KPIC is the default.
14540 linux* | k*bsd*-gnu)
14541 case $cc_basename in
14544 lt_prog_compiler_wl_CXX='--backend -Wl,'
14545 lt_prog_compiler_pic_CXX='-fPIC'
14548 # old Intel C++ for x86_64 which still supported -KPIC.
14549 lt_prog_compiler_wl_CXX='-Wl,'
14550 lt_prog_compiler_pic_CXX='-KPIC'
14551 lt_prog_compiler_static_CXX='-static'
14554 # Intel C++, used to be incompatible with GCC.
14555 # ICC 10 doesn't accept -KPIC any more.
14556 lt_prog_compiler_wl_CXX='-Wl,'
14557 lt_prog_compiler_pic_CXX='-fPIC'
14558 lt_prog_compiler_static_CXX='-static'
14561 # Portland Group C++ compiler
14562 lt_prog_compiler_wl_CXX='-Wl,'
14563 lt_prog_compiler_pic_CXX='-fpic'
14564 lt_prog_compiler_static_CXX='-Bstatic'
14568 # Make sure the PIC flag is empty. It appears that all Alpha
14569 # Linux and Compaq Tru64 Unix objects are PIC.
14570 lt_prog_compiler_pic_CXX=
14571 lt_prog_compiler_static_CXX='-non_shared'
14574 # IBM XL 8.0 on PPC
14575 lt_prog_compiler_wl_CXX='-Wl,'
14576 lt_prog_compiler_pic_CXX='-qpic'
14577 lt_prog_compiler_static_CXX='-qstaticlink'
14580 case `$CC -V 2>&1 | sed 5q` in
14583 lt_prog_compiler_pic_CXX='-KPIC'
14584 lt_prog_compiler_static_CXX='-Bstatic'
14585 lt_prog_compiler_wl_CXX='-Qoption ld '
14596 case $cc_basename in
14598 lt_prog_compiler_pic_CXX='-W c,exportall'
14607 # QNX uses GNU C++, but need to define -shared option too, otherwise
14608 # it will coredump.
14609 lt_prog_compiler_pic_CXX='-fPIC -shared'
14611 osf3* | osf4* | osf5*)
14612 case $cc_basename in
14614 lt_prog_compiler_wl_CXX='--backend -Wl,'
14617 # Rational C++ 2.4.1
14618 lt_prog_compiler_pic_CXX='-pic'
14621 # Digital/Compaq C++
14622 lt_prog_compiler_wl_CXX='-Wl,'
14623 # Make sure the PIC flag is empty. It appears that all Alpha
14624 # Linux and Compaq Tru64 Unix objects are PIC.
14625 lt_prog_compiler_pic_CXX=
14626 lt_prog_compiler_static_CXX='-non_shared'
14635 case $cc_basename in
14637 # Sun C++ 4.2, 5.x and Centerline C++
14638 lt_prog_compiler_pic_CXX='-KPIC'
14639 lt_prog_compiler_static_CXX='-Bstatic'
14640 lt_prog_compiler_wl_CXX='-Qoption ld '
14643 # Green Hills C++ Compiler
14644 lt_prog_compiler_pic_CXX='-PIC'
14651 case $cc_basename in
14654 lt_prog_compiler_pic_CXX='-pic'
14655 lt_prog_compiler_static_CXX='-Bstatic'
14659 lt_prog_compiler_pic_CXX='-pic'
14665 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14666 case $cc_basename in
14668 lt_prog_compiler_wl_CXX='-Wl,'
14669 lt_prog_compiler_pic_CXX='-KPIC'
14670 lt_prog_compiler_static_CXX='-Bstatic'
14675 case $cc_basename in
14677 # NonStop-UX NCC 3.20
14678 lt_prog_compiler_pic_CXX='-KPIC'
14687 lt_prog_compiler_can_build_shared_CXX=no
14693 # For platforms which do not support PIC, -DPIC is meaningless:
14695 lt_prog_compiler_pic_CXX=
14698 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14701 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14702 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14707 # Check to make sure the PIC flag actually works.
14709 if test -n "$lt_prog_compiler_pic_CXX"; then
14710 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14711 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14712 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14713 echo $ECHO_N "(cached) $ECHO_C" >&6
14715 lt_cv_prog_compiler_pic_works_CXX=no
14716 ac_outfile=conftest.$ac_objext
14717 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14718 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14719 # Insert the option either (1) after the last *FLAGS variable, or
14720 # (2) before a word containing "conftest.", or (3) at the end.
14721 # Note that $ac_compile itself does not contain backslashes and begins
14722 # with a dollar sign (not a hyphen), so the echo should work correctly.
14723 # The option is referenced via a variable to avoid confusing sed.
14724 lt_compile=`echo "$ac_compile" | $SED \
14725 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14726 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14727 -e 's:$: $lt_compiler_flag:'`
14728 (eval echo "\"\$as_me:14728: $lt_compile\"" >&5)
14729 (eval "$lt_compile" 2>conftest.err)
14731 cat conftest.err >&5
14732 echo "$as_me:14732: \$? = $ac_status" >&5
14733 if (exit $ac_status) && test -s "$ac_outfile"; then
14734 # The compiler can only warn and ignore the option if not recognized
14735 # So say no if there are warnings other than the usual output.
14736 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14737 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14738 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14739 lt_cv_prog_compiler_pic_works_CXX=yes
14745 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14746 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14748 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14749 case $lt_prog_compiler_pic_CXX in
14751 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14754 lt_prog_compiler_pic_CXX=
14755 lt_prog_compiler_can_build_shared_CXX=no
14763 # Check to make sure the static flag actually works.
14765 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14766 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14767 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14768 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14769 echo $ECHO_N "(cached) $ECHO_C" >&6
14771 lt_cv_prog_compiler_static_works_CXX=no
14772 save_LDFLAGS="$LDFLAGS"
14773 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14774 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14775 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14776 # The linker can only warn and ignore the option if not recognized
14777 # So say no if there are warnings
14778 if test -s conftest.err; then
14779 # Append any errors to the config.log.
14780 cat conftest.err 1>&5
14781 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14782 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14783 if diff conftest.exp conftest.er2 >/dev/null; then
14784 lt_cv_prog_compiler_static_works_CXX=yes
14787 lt_cv_prog_compiler_static_works_CXX=yes
14791 LDFLAGS="$save_LDFLAGS"
14794 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14795 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14797 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14800 lt_prog_compiler_static_CXX=
14806 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14807 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14808 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14809 echo $ECHO_N "(cached) $ECHO_C" >&6
14811 lt_cv_prog_compiler_c_o_CXX=no
14812 $RM -r conftest 2>/dev/null
14816 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14818 lt_compiler_flag="-o out/conftest2.$ac_objext"
14819 # Insert the option either (1) after the last *FLAGS variable, or
14820 # (2) before a word containing "conftest.", or (3) at the end.
14821 # Note that $ac_compile itself does not contain backslashes and begins
14822 # with a dollar sign (not a hyphen), so the echo should work correctly.
14823 lt_compile=`echo "$ac_compile" | $SED \
14824 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14825 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14826 -e 's:$: $lt_compiler_flag:'`
14827 (eval echo "\"\$as_me:14827: $lt_compile\"" >&5)
14828 (eval "$lt_compile" 2>out/conftest.err)
14830 cat out/conftest.err >&5
14831 echo "$as_me:14831: \$? = $ac_status" >&5
14832 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14834 # The compiler can only warn and ignore the option if not recognized
14835 # So say no if there are warnings
14836 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14837 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14838 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14839 lt_cv_prog_compiler_c_o_CXX=yes
14844 # SGI C++ compiler will create directory out/ii_files/ for
14845 # template instantiation
14846 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14847 $RM out/* && rmdir out
14853 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14854 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14858 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14859 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14860 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14861 echo $ECHO_N "(cached) $ECHO_C" >&6
14863 lt_cv_prog_compiler_c_o_CXX=no
14864 $RM -r conftest 2>/dev/null
14868 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14870 lt_compiler_flag="-o out/conftest2.$ac_objext"
14871 # Insert the option either (1) after the last *FLAGS variable, or
14872 # (2) before a word containing "conftest.", or (3) at the end.
14873 # Note that $ac_compile itself does not contain backslashes and begins
14874 # with a dollar sign (not a hyphen), so the echo should work correctly.
14875 lt_compile=`echo "$ac_compile" | $SED \
14876 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14877 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14878 -e 's:$: $lt_compiler_flag:'`
14879 (eval echo "\"\$as_me:14879: $lt_compile\"" >&5)
14880 (eval "$lt_compile" 2>out/conftest.err)
14882 cat out/conftest.err >&5
14883 echo "$as_me:14883: \$? = $ac_status" >&5
14884 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14886 # The compiler can only warn and ignore the option if not recognized
14887 # So say no if there are warnings
14888 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14889 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14890 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14891 lt_cv_prog_compiler_c_o_CXX=yes
14896 # SGI C++ compiler will create directory out/ii_files/ for
14897 # template instantiation
14898 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14899 $RM out/* && rmdir out
14905 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14906 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14911 hard_links="nottested"
14912 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14913 # do not overwrite the value of need_locks provided by the user
14914 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14915 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14918 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14920 ln conftest.a conftest.b 2>&5 || hard_links=no
14921 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14922 { echo "$as_me:$LINENO: result: $hard_links" >&5
14923 echo "${ECHO_T}$hard_links" >&6; }
14924 if test "$hard_links" = no; then
14925 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14926 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14935 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14936 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14938 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14941 # If we're using GNU nm, then we don't want the "-C" option.
14942 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14943 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14944 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'
14946 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'
14950 export_symbols_cmds_CXX="$ltdll_cmds"
14952 cygwin* | mingw* | cegcc*)
14953 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'
14956 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14959 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14961 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14962 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14963 test "$ld_shlibs_CXX" = no && can_build_shared=no
14965 with_gnu_ld_CXX=$with_gnu_ld
14973 # Do we need to explicitly link libc?
14975 case "x$archive_cmds_need_lc_CXX" in
14977 # Assume -lc should be added
14978 archive_cmds_need_lc_CXX=yes
14980 if test "$enable_shared" = yes && test "$GCC" = yes; then
14981 case $archive_cmds_CXX in
14983 # FIXME: we may have to deal with multi-command sequences.
14986 # Test whether the compiler implicitly links with -lc since on some
14987 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14988 # to ld, don't add -lc before -lgcc.
14989 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14990 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14992 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14995 (eval $ac_compile) 2>&5
14997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998 (exit $ac_status); } 2>conftest.err; then
15001 libobjs=conftest.$ac_objext
15003 wl=$lt_prog_compiler_wl_CXX
15004 pic_flag=$lt_prog_compiler_pic_CXX
15010 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15011 allow_undefined_flag_CXX=
15012 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15013 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); }
15018 archive_cmds_need_lc_CXX=no
15020 archive_cmds_need_lc_CXX=yes
15022 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15024 cat conftest.err 1>&5
15027 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15028 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15098 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15099 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15101 library_names_spec=
15102 libname_spec='lib$name'
15106 postuninstall_cmds=
15110 shlibpath_overrides_runpath=unknown
15112 dynamic_linker="$host_os ld.so"
15113 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15114 need_lib_prefix=unknown
15115 hardcode_into_libs=no
15117 # when you set need_version to no, make sure it does not cause -set_version
15118 # flags to be left without arguments
15119 need_version=unknown
15124 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15125 shlibpath_var=LIBPATH
15127 # AIX 3 has no versioning support, so we append a major version to the name.
15128 soname_spec='${libname}${release}${shared_ext}$major'
15135 hardcode_into_libs=yes
15136 if test "$host_cpu" = ia64; then
15137 # AIX 5 supports IA64
15138 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15139 shlibpath_var=LD_LIBRARY_PATH
15141 # With GCC up to 2.95.x, collect2 would create an import file
15142 # for dependence libraries. The import file would start with
15143 # the line `#! .'. This would cause the generated library to
15144 # depend on `.', always an invalid library. This was fixed in
15145 # development snapshots of GCC prior to 3.0.
15147 aix4 | aix4.[01] | aix4.[01].*)
15148 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15150 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15153 can_build_shared=no
15157 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15158 # soname into executable. Probably we can add versioning support to
15159 # collect2, so additional links can be useful in future.
15160 if test "$aix_use_runtimelinking" = yes; then
15161 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15162 # instead of lib<name>.a to let people know that these are not
15163 # typical AIX shared libraries.
15164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15166 # We preserve .a as extension for shared libraries through AIX4.2
15167 # and later when we are not doing run time linking.
15168 library_names_spec='${libname}${release}.a $libname.a'
15169 soname_spec='${libname}${release}${shared_ext}$major'
15171 shlibpath_var=LIBPATH
15178 # Since July 2007 AmigaOS4 officially supports .so libraries.
15179 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15183 library_names_spec='$libname.ixlibrary $libname.a'
15184 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15185 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'
15191 library_names_spec='${libname}${shared_ext}'
15192 dynamic_linker="$host_os ld.so"
15193 shlibpath_var=LIBRARY_PATH
15199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15200 soname_spec='${libname}${release}${shared_ext}$major'
15201 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15202 shlibpath_var=LD_LIBRARY_PATH
15203 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15204 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15205 # the default ld.so.conf also contains /usr/contrib/lib and
15206 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15207 # libtool to hard-code these into programs
15210 cygwin* | mingw* | pw32* | cegcc*)
15211 version_type=windows
15216 case $GCC,$host_os in
15217 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15218 library_names_spec='$libname.dll.a'
15219 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15220 postinstall_cmds='base_file=`basename \${file}`~
15221 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15222 dldir=$destdir/`dirname \$dlpath`~
15223 test -d \$dldir || mkdir -p \$dldir~
15224 $install_prog $dir/$dlname \$dldir/$dlname~
15225 chmod a+x \$dldir/$dlname~
15226 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15227 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15229 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15230 dlpath=$dir/\$dldll~
15232 shlibpath_overrides_runpath=yes
15236 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15237 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15238 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15241 # MinGW DLLs use traditional 'lib' prefix
15242 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15243 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15244 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15245 # It is most probably a Windows format PATH printed by
15246 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15247 # path with ; separators, and with drive letters. We can handle the
15248 # drive letters (cygwin fileutils understands them), so leave them,
15249 # especially as we might pass files found there to a mingw objdump,
15250 # which wouldn't understand a cygwinified path. Ahh.
15251 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15253 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15257 # pw32 DLLs use 'pw' prefix rather than 'lib'
15258 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15264 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15267 dynamic_linker='Win32 ld.exe'
15268 # FIXME: first we should search . and the directory the executable is in
15272 darwin* | rhapsody*)
15273 dynamic_linker="$host_os dyld"
15274 version_type=darwin
15277 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15278 soname_spec='${libname}${release}${major}$shared_ext'
15279 shlibpath_overrides_runpath=yes
15280 shlibpath_var=DYLD_LIBRARY_PATH
15281 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15283 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15291 soname_spec='${libname}${release}${shared_ext}$major'
15292 shlibpath_var=LD_LIBRARY_PATH
15299 freebsd* | dragonfly*)
15300 # DragonFly does not have aout. When/if they implement a new
15301 # versioning mechanism, adjust this.
15302 if test -x /usr/bin/objformat; then
15303 objformat=`/usr/bin/objformat`
15306 freebsd[123]*) objformat=aout ;;
15307 *) objformat=elf ;;
15310 version_type=freebsd-$objformat
15311 case $version_type in
15313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15318 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15322 shlibpath_var=LD_LIBRARY_PATH
15325 shlibpath_overrides_runpath=yes
15327 freebsd3.[01]* | freebsdelf3.[01]*)
15328 shlibpath_overrides_runpath=yes
15329 hardcode_into_libs=yes
15331 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15332 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15333 shlibpath_overrides_runpath=no
15334 hardcode_into_libs=yes
15336 *) # from 4.6 on, and DragonFly
15337 shlibpath_overrides_runpath=yes
15338 hardcode_into_libs=yes
15347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15348 soname_spec='${libname}${release}${shared_ext}$major'
15349 shlibpath_var=LD_LIBRARY_PATH
15350 hardcode_into_libs=yes
15353 hpux9* | hpux10* | hpux11*)
15354 # Give a soname corresponding to the major version so that dld.sl refuses to
15355 # link against other versions.
15362 hardcode_into_libs=yes
15363 dynamic_linker="$host_os dld.so"
15364 shlibpath_var=LD_LIBRARY_PATH
15365 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15367 soname_spec='${libname}${release}${shared_ext}$major'
15368 if test "X$HPUX_IA64_MODE" = X32; then
15369 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15371 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15373 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15377 hardcode_into_libs=yes
15378 dynamic_linker="$host_os dld.sl"
15379 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15380 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15382 soname_spec='${libname}${release}${shared_ext}$major'
15383 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15384 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15388 dynamic_linker="$host_os dld.sl"
15389 shlibpath_var=SHLIB_PATH
15390 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15392 soname_spec='${libname}${release}${shared_ext}$major'
15395 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15396 postinstall_cmds='chmod 555 $lib'
15403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15404 soname_spec='${libname}${release}${shared_ext}$major'
15405 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15406 shlibpath_var=LD_LIBRARY_PATH
15407 shlibpath_overrides_runpath=no
15408 hardcode_into_libs=yes
15411 irix5* | irix6* | nonstopux*)
15413 nonstopux*) version_type=nonstopux ;;
15415 if test "$lt_cv_prog_gnu_ld" = yes; then
15423 soname_spec='${libname}${release}${shared_ext}$major'
15424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15426 irix5* | nonstopux*)
15427 libsuff= shlibsuff=
15430 case $LD in # libtool.m4 will add one of these switches to LD
15431 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15432 libsuff= shlibsuff= libmagic=32-bit;;
15433 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15434 libsuff=32 shlibsuff=N32 libmagic=N32;;
15435 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15436 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15437 *) libsuff= shlibsuff= libmagic=never-match;;
15441 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15442 shlibpath_overrides_runpath=no
15443 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15444 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15445 hardcode_into_libs=yes
15448 # No shared lib support for Linux oldld, aout, or coff.
15449 linux*oldld* | linux*aout* | linux*coff*)
15453 # This must be Linux ELF.
15454 linux* | k*bsd*-gnu)
15458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15459 soname_spec='${libname}${release}${shared_ext}$major'
15460 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15461 shlibpath_var=LD_LIBRARY_PATH
15462 shlibpath_overrides_runpath=no
15463 # Some binutils ld are patched to set DT_RUNPATH
15464 save_LDFLAGS=$LDFLAGS
15465 save_libdir=$libdir
15466 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15467 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15468 cat >conftest.$ac_ext <<_ACEOF
15471 cat confdefs.h >>conftest.$ac_ext
15472 cat >>conftest.$ac_ext <<_ACEOF
15473 /* end confdefs.h. */
15483 rm -f conftest.$ac_objext conftest$ac_exeext
15484 if { (ac_try="$ac_link"
15485 case "(($ac_try" in
15486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15487 *) ac_try_echo=$ac_try;;
15489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15490 (eval "$ac_link") 2>conftest.er1
15492 grep -v '^ *+' conftest.er1 >conftest.err
15494 cat conftest.err >&5
15495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15496 (exit $ac_status); } && {
15497 test -z "$ac_cxx_werror_flag" ||
15498 test ! -s conftest.err
15499 } && test -s conftest$ac_exeext &&
15500 $as_test_x conftest$ac_exeext; then
15501 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15502 shlibpath_overrides_runpath=yes
15506 echo "$as_me: failed program was:" >&5
15507 sed 's/^/| /' conftest.$ac_ext >&5
15512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15513 conftest$ac_exeext conftest.$ac_ext
15514 LDFLAGS=$save_LDFLAGS
15515 libdir=$save_libdir
15517 # This implies no fast_install, which is unacceptable.
15518 # Some rework will be needed to allow for fast_install
15519 # before this can be enabled.
15520 hardcode_into_libs=yes
15522 # Append ld.so.conf contents to the search path
15523 if test -f /etc/ld.so.conf; then
15524 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' ' '`
15525 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15528 # We used to test for /lib/ld.so.1 and disable shared libraries on
15529 # powerpc, because MkLinux only supported shared libraries with the
15530 # GNU dynamic linker. Since this was broken with cross compilers,
15531 # most powerpc-linux boxes support dynamic linking these days and
15532 # people can always --disable-shared, the test was removed, and we
15533 # assume the GNU/Linux dynamic linker is in use.
15534 dynamic_linker='GNU/Linux ld.so'
15541 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15543 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15544 dynamic_linker='NetBSD (a.out) ld.so'
15546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15547 soname_spec='${libname}${release}${shared_ext}$major'
15548 dynamic_linker='NetBSD ld.elf_so'
15550 shlibpath_var=LD_LIBRARY_PATH
15551 shlibpath_overrides_runpath=yes
15552 hardcode_into_libs=yes
15557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15558 shlibpath_var=LD_LIBRARY_PATH
15559 shlibpath_overrides_runpath=yes
15566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15567 soname_spec='${libname}${release}${shared_ext}$major'
15568 shlibpath_var=LD_LIBRARY_PATH
15569 shlibpath_overrides_runpath=no
15570 hardcode_into_libs=yes
15571 dynamic_linker='ldqnx.so'
15576 sys_lib_dlsearch_path_spec="/usr/lib"
15578 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15580 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15581 *) need_version=no ;;
15583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15584 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15585 shlibpath_var=LD_LIBRARY_PATH
15586 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15588 openbsd2.[89] | openbsd2.[89].*)
15589 shlibpath_overrides_runpath=no
15592 shlibpath_overrides_runpath=yes
15596 shlibpath_overrides_runpath=yes
15601 libname_spec='$name'
15604 library_names_spec='$libname${shared_ext} $libname.a'
15605 dynamic_linker='OS/2 ld.exe'
15606 shlibpath_var=LIBPATH
15609 osf3* | osf4* | osf5*)
15613 soname_spec='${libname}${release}${shared_ext}$major'
15614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15615 shlibpath_var=LD_LIBRARY_PATH
15616 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15617 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15629 soname_spec='${libname}${release}${shared_ext}$major'
15630 shlibpath_var=LD_LIBRARY_PATH
15631 shlibpath_overrides_runpath=yes
15632 hardcode_into_libs=yes
15633 # ldd complains unless libraries are executable
15634 postinstall_cmds='chmod +x $lib'
15639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15640 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15641 shlibpath_var=LD_LIBRARY_PATH
15642 shlibpath_overrides_runpath=yes
15643 if test "$with_gnu_ld" = yes; then
15651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15652 soname_spec='${libname}${release}${shared_ext}$major'
15653 shlibpath_var=LD_LIBRARY_PATH
15654 case $host_vendor in
15656 shlibpath_overrides_runpath=no
15658 runpath_var=LD_RUN_PATH
15666 shlibpath_overrides_runpath=no
15667 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15673 if test -d /usr/nec ;then
15675 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15676 soname_spec='$libname${shared_ext}.$major'
15677 shlibpath_var=LD_LIBRARY_PATH
15681 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15682 version_type=freebsd-elf
15685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15686 soname_spec='${libname}${release}${shared_ext}$major'
15687 shlibpath_var=LD_LIBRARY_PATH
15688 shlibpath_overrides_runpath=yes
15689 hardcode_into_libs=yes
15690 if test "$with_gnu_ld" = yes; then
15691 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15693 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15696 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15700 sys_lib_dlsearch_path_spec='/usr/lib'
15704 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15709 shlibpath_var=LD_LIBRARY_PATH
15710 shlibpath_overrides_runpath=no
15711 hardcode_into_libs=yes
15716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15717 soname_spec='${libname}${release}${shared_ext}$major'
15718 shlibpath_var=LD_LIBRARY_PATH
15725 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15726 echo "${ECHO_T}$dynamic_linker" >&6; }
15727 test "$dynamic_linker" = no && can_build_shared=no
15729 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15730 if test "$GCC" = yes; then
15731 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15734 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15735 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15737 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15738 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15776 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15777 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15778 hardcode_action_CXX=
15779 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15780 test -n "$runpath_var_CXX" ||
15781 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15783 # We can hardcode non-existent directories.
15784 if test "$hardcode_direct_CXX" != no &&
15785 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15786 # have to relink, otherwise we might link with an installed library
15787 # when we should be linking with a yet-to-be-installed one
15788 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15789 test "$hardcode_minus_L_CXX" != no; then
15790 # Linking always hardcodes the temporary library directory.
15791 hardcode_action_CXX=relink
15793 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15794 hardcode_action_CXX=immediate
15797 # We cannot hardcode anything, or else we can only hardcode existing
15799 hardcode_action_CXX=unsupported
15801 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15802 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15804 if test "$hardcode_action_CXX" = relink ||
15805 test "$inherit_rpath_CXX" = yes; then
15806 # Fast installation is not supported
15807 enable_fast_install=no
15808 elif test "$shlibpath_overrides_runpath" = yes ||
15809 test "$enable_shared" = no; then
15810 # Fast installation is not necessary
15811 enable_fast_install=needless
15820 fi # test -n "$compiler"
15826 with_gnu_ld=$lt_save_with_gnu_ld
15827 lt_cv_path_LDCXX=$lt_cv_path_LD
15828 lt_cv_path_LD=$lt_save_path_LD
15829 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15830 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15831 fi # test "$_lt_caught_CXX_error" != yes
15834 ac_cpp='$CPP $CPPFLAGS'
15835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15851 ac_config_commands="$ac_config_commands libtool"
15856 # Only expand once:
15860 # Check whether --enable-libtool was given.
15861 if test "${enable_libtool+set}" = set; then
15862 enableval=$enable_libtool;
15863 if test x$enableval = xno; then
15871 if test x$use_libtool != xno; then
15872 DEFAULT_OBJECT_TYPE=".lo"
15873 DEFAULT_ARCHIVE_TYPE=".la"
15874 DEFAULT_SHARED_OBJECT_TYPE=".la"
15875 LIBTOOL="\$(LIBTOOL)"
15876 LIBTOOL_INSTALL_TARGET="libtool-install"
15877 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15878 LIBTOOL_CLEAN_TARGET="libtool-clean"
15879 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15881 DEFAULT_OBJECT_TYPE=".o"
15882 DEFAULT_ARCHIVE_TYPE=".a"
15883 DEFAULT_SHARED_OBJECT_TYPE=".so"
15884 LIBTOOL="# \$(LIBTOOL)"
15885 LIBTOOL_INSTALL_TARGET=""
15886 LIBTOOL_UNINSTALL_TARGET=""
15887 LIBTOOL_CLEAN_TARGET=""
15888 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15901 { echo "$as_me:$LINENO: checking host system type" >&5
15902 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
15903 if test "${ac_cv_host+set}" = set; then
15904 echo $ECHO_N "(cached) $ECHO_C" >&6
15906 if test "x$host_alias" = x; then
15907 ac_cv_host=$ac_cv_build
15909 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15910 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
15911 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
15912 { (exit 1); exit 1; }; }
15916 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
15917 echo "${ECHO_T}$ac_cv_host" >&6; }
15918 case $ac_cv_host in
15920 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
15921 echo "$as_me: error: invalid value of canonical host" >&2;}
15922 { (exit 1); exit 1; }; };;
15925 ac_save_IFS=$IFS; IFS='-'
15931 # Remember, the first character of IFS is used to create $*,
15932 # except with old shells:
15935 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
15939 *cygwin* ) CYGWIN=yes;;
15943 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15949 HAVE_SUN_OS_FALSE='#'
15951 HAVE_SUN_OS_TRUE='#'
15954 cat >>confdefs.h <<\_ACEOF
15955 #define HAVE_SUN_OS 1
15963 HAVE_SUN_OS_FALSE='#'
15965 HAVE_SUN_OS_TRUE='#'
15970 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15976 HAVE_OSF1_OS_FALSE='#'
15978 HAVE_OSF1_OS_TRUE='#'
15979 HAVE_OSF1_OS_FALSE=
15981 cat >>confdefs.h <<\_ACEOF
15982 #define HAVE_OSF1_OS 1
15990 HAVE_OSF1_OS_FALSE='#'
15992 HAVE_OSF1_OS_TRUE='#'
15993 HAVE_OSF1_OS_FALSE=
15997 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16003 HAVE_AIX_OS_FALSE='#'
16005 HAVE_AIX_OS_TRUE='#'
16008 cat >>confdefs.h <<\_ACEOF
16009 #define HAVE_AIX_OS 1
16017 HAVE_AIX_OS_FALSE='#'
16019 HAVE_AIX_OS_TRUE='#'
16024 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16030 HAVE_HPUX_OS_FALSE='#'
16032 HAVE_HPUX_OS_TRUE='#'
16033 HAVE_HPUX_OS_FALSE=
16035 cat >>confdefs.h <<\_ACEOF
16036 #define HAVE_HPUX_OS 1
16044 HAVE_HPUX_OS_FALSE='#'
16046 HAVE_HPUX_OS_TRUE='#'
16047 HAVE_HPUX_OS_FALSE=
16051 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16056 HAVE_LINUX_OS_TRUE=
16057 HAVE_LINUX_OS_FALSE='#'
16059 HAVE_LINUX_OS_TRUE='#'
16060 HAVE_LINUX_OS_FALSE=
16062 cat >>confdefs.h <<\_ACEOF
16063 #define HAVE_LINUX_OS 1
16070 HAVE_LINUX_OS_TRUE=
16071 HAVE_LINUX_OS_FALSE='#'
16073 HAVE_LINUX_OS_TRUE='#'
16074 HAVE_LINUX_OS_FALSE=
16078 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16083 HAVE_FREEBSD_OS_TRUE=
16084 HAVE_FREEBSD_OS_FALSE='#'
16086 HAVE_FREEBSD_OS_TRUE='#'
16087 HAVE_FREEBSD_OS_FALSE=
16089 cat >>confdefs.h <<\_ACEOF
16090 #define HAVE_FREEBSD_OS 1
16097 HAVE_FREEBSD_OS_TRUE=
16098 HAVE_FREEBSD_OS_FALSE='#'
16100 HAVE_FREEBSD_OS_TRUE='#'
16101 HAVE_FREEBSD_OS_FALSE=
16105 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16110 HAVE_NETBSD_OS_TRUE=
16111 HAVE_NETBSD_OS_FALSE='#'
16113 HAVE_NETBSD_OS_TRUE='#'
16114 HAVE_NETBSD_OS_FALSE=
16116 cat >>confdefs.h <<\_ACEOF
16117 #define HAVE_NETBSD_OS 1
16124 HAVE_NETBSD_OS_TRUE=
16125 HAVE_NETBSD_OS_FALSE='#'
16127 HAVE_NETBSD_OS_TRUE='#'
16128 HAVE_NETBSD_OS_FALSE=
16132 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16137 HAVE_OPENBSD_OS_TRUE=
16138 HAVE_OPENBSD_OS_FALSE='#'
16140 HAVE_OPENBSD_OS_TRUE='#'
16141 HAVE_OPENBSD_OS_FALSE=
16143 cat >>confdefs.h <<\_ACEOF
16144 #define HAVE_OPENBSD_OS 1
16151 HAVE_OPENBSD_OS_TRUE=
16152 HAVE_OPENBSD_OS_FALSE='#'
16154 HAVE_OPENBSD_OS_TRUE='#'
16155 HAVE_OPENBSD_OS_FALSE=
16159 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16165 HAVE_BSDI_OS_FALSE='#'
16167 HAVE_BSDI_OS_TRUE='#'
16168 HAVE_BSDI_OS_FALSE=
16170 cat >>confdefs.h <<\_ACEOF
16171 #define HAVE_BSDI_OS 1
16179 HAVE_BSDI_OS_FALSE='#'
16181 HAVE_BSDI_OS_TRUE='#'
16182 HAVE_BSDI_OS_FALSE=
16186 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16192 HAVE_SGI_OS_FALSE='#'
16194 HAVE_SGI_OS_TRUE='#'
16197 cat >>confdefs.h <<\_ACEOF
16198 #define HAVE_SGI_OS 1
16206 HAVE_SGI_OS_FALSE='#'
16208 HAVE_SGI_OS_TRUE='#'
16213 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16219 HAVE_IRIX_OS_FALSE='#'
16221 HAVE_IRIX_OS_TRUE='#'
16222 HAVE_IRIX_OS_FALSE=
16224 cat >>confdefs.h <<\_ACEOF
16225 #define HAVE_IRIX_OS 1
16233 HAVE_IRIX_OS_FALSE='#'
16235 HAVE_IRIX_OS_TRUE='#'
16236 HAVE_IRIX_OS_FALSE=
16240 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16245 HAVE_DARWIN_OS_TRUE=
16246 HAVE_DARWIN_OS_FALSE='#'
16248 HAVE_DARWIN_OS_TRUE='#'
16249 HAVE_DARWIN_OS_FALSE=
16251 cat >>confdefs.h <<\_ACEOF
16252 #define HAVE_DARWIN_OS 1
16259 HAVE_DARWIN_OS_TRUE=
16260 HAVE_DARWIN_OS_FALSE='#'
16262 HAVE_DARWIN_OS_TRUE='#'
16263 HAVE_DARWIN_OS_FALSE=
16268 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16269 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
16270 if test "x$DISTNAME" != "x"
16272 echo "distname set to $DISTNAME"
16273 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16276 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16279 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16282 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16285 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16288 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16291 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16294 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16297 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16300 elif test -f /etc/SuSE-release
16303 elif test -d /etc/SuSEconfig
16306 elif test -f /etc/mandrake-release
16309 elif test -f /etc/whitebox-release
16312 elif test -f /etc/redhat-release
16315 elif test -f /etc/gentoo-release
16318 elif test -f /etc/debian_version
16321 elif test -f /etc/slackware-version
16324 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16327 elif test -f /etc/engarde-version
16330 elif test "$CYGWIN" = yes
16333 cat >>confdefs.h <<\_ACEOF
16334 #define HAVE_CYGWIN 1
16340 { echo "$as_me:$LINENO: result: done" >&5
16341 echo "${ECHO_T}done" >&6; }
16344 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16345 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
16346 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16347 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16348 echo $ECHO_N "(cached) $ECHO_C" >&6
16350 cat >conftest.make <<\_ACEOF
16353 @echo '@@@%%%=$(MAKE)=@@@%%%'
16355 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16356 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16357 *@@@%%%=?*=@@@%%%*)
16358 eval ac_cv_prog_make_${ac_make}_set=yes;;
16360 eval ac_cv_prog_make_${ac_make}_set=no;;
16362 rm -f conftest.make
16364 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16365 { echo "$as_me:$LINENO: result: yes" >&5
16366 echo "${ECHO_T}yes" >&6; }
16369 { echo "$as_me:$LINENO: result: no" >&5
16370 echo "${ECHO_T}no" >&6; }
16371 SET_MAKE="MAKE=${MAKE-make}"
16377 if test -n "$ac_aux_dir"; then
16378 case "$ac_aux_dir" in
16379 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16380 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16383 if test -z "$MKINSTALLDIRS"; then
16384 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16389 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16390 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
16391 # Check whether --enable-nls was given.
16392 if test "${enable_nls+set}" = set; then
16393 enableval=$enable_nls; USE_NLS=$enableval
16398 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
16399 echo "${ECHO_T}$USE_NLS" >&6; }
16406 # Prepare PATH_SEPARATOR.
16407 # The user is always right.
16408 if test "${PATH_SEPARATOR+set}" != set; then
16409 echo "#! /bin/sh" >conf$$.sh
16410 echo "exit 0" >>conf$$.sh
16412 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16420 # Find out how to test for executable files. Don't use a zero-byte file,
16421 # as systems may use methods other than mode bits to determine executability.
16422 cat >conf$$.file <<_ASEOF
16426 chmod +x conf$$.file
16427 if test -x conf$$.file >/dev/null 2>&1; then
16428 ac_executable_p="test -x"
16430 ac_executable_p="test -f"
16434 # Extract the first word of "msgfmt", so it can be a program name with args.
16435 set dummy msgfmt; ac_word=$2
16436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16438 if test "${ac_cv_path_MSGFMT+set}" = set; then
16439 echo $ECHO_N "(cached) $ECHO_C" >&6
16443 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16446 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16447 for ac_dir in $PATH; do
16449 test -z "$ac_dir" && ac_dir=.
16450 for ac_exec_ext in '' $ac_executable_extensions; do
16451 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16452 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16453 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16454 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16455 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16462 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16466 MSGFMT="$ac_cv_path_MSGFMT"
16467 if test "$MSGFMT" != ":"; then
16468 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
16469 echo "${ECHO_T}$MSGFMT" >&6; }
16471 { echo "$as_me:$LINENO: result: no" >&5
16472 echo "${ECHO_T}no" >&6; }
16475 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16476 set dummy gmsgfmt; ac_word=$2
16477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16479 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16480 echo $ECHO_N "(cached) $ECHO_C" >&6
16484 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16488 for as_dir in $PATH
16491 test -z "$as_dir" && as_dir=.
16492 for ac_exec_ext in '' $ac_executable_extensions; do
16493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16494 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16502 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16506 GMSGFMT=$ac_cv_path_GMSGFMT
16507 if test -n "$GMSGFMT"; then
16508 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16509 echo "${ECHO_T}$GMSGFMT" >&6; }
16511 { echo "$as_me:$LINENO: result: no" >&5
16512 echo "${ECHO_T}no" >&6; }
16518 # Prepare PATH_SEPARATOR.
16519 # The user is always right.
16520 if test "${PATH_SEPARATOR+set}" != set; then
16521 echo "#! /bin/sh" >conf$$.sh
16522 echo "exit 0" >>conf$$.sh
16524 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16532 # Find out how to test for executable files. Don't use a zero-byte file,
16533 # as systems may use methods other than mode bits to determine executability.
16534 cat >conf$$.file <<_ASEOF
16538 chmod +x conf$$.file
16539 if test -x conf$$.file >/dev/null 2>&1; then
16540 ac_executable_p="test -x"
16542 ac_executable_p="test -f"
16546 # Extract the first word of "xgettext", so it can be a program name with args.
16547 set dummy xgettext; ac_word=$2
16548 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16550 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16551 echo $ECHO_N "(cached) $ECHO_C" >&6
16553 case "$XGETTEXT" in
16555 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16558 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16559 for ac_dir in $PATH; do
16561 test -z "$ac_dir" && ac_dir=.
16562 for ac_exec_ext in '' $ac_executable_extensions; do
16563 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16564 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16565 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16566 (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
16567 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16574 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16578 XGETTEXT="$ac_cv_path_XGETTEXT"
16579 if test "$XGETTEXT" != ":"; then
16580 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16581 echo "${ECHO_T}$XGETTEXT" >&6; }
16583 { echo "$as_me:$LINENO: result: no" >&5
16584 echo "${ECHO_T}no" >&6; }
16590 # Prepare PATH_SEPARATOR.
16591 # The user is always right.
16592 if test "${PATH_SEPARATOR+set}" != set; then
16593 echo "#! /bin/sh" >conf$$.sh
16594 echo "exit 0" >>conf$$.sh
16596 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16604 # Find out how to test for executable files. Don't use a zero-byte file,
16605 # as systems may use methods other than mode bits to determine executability.
16606 cat >conf$$.file <<_ASEOF
16610 chmod +x conf$$.file
16611 if test -x conf$$.file >/dev/null 2>&1; then
16612 ac_executable_p="test -x"
16614 ac_executable_p="test -f"
16618 # Extract the first word of "msgmerge", so it can be a program name with args.
16619 set dummy msgmerge; ac_word=$2
16620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16622 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16623 echo $ECHO_N "(cached) $ECHO_C" >&6
16625 case "$MSGMERGE" in
16627 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16630 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16631 for ac_dir in $PATH; do
16633 test -z "$ac_dir" && ac_dir=.
16634 for ac_exec_ext in '' $ac_executable_extensions; do
16635 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16636 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16637 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16638 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16645 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16649 MSGMERGE="$ac_cv_path_MSGMERGE"
16650 if test "$MSGMERGE" != ":"; then
16651 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16652 echo "${ECHO_T}$MSGMERGE" >&6; }
16654 { echo "$as_me:$LINENO: result: no" >&5
16655 echo "${ECHO_T}no" >&6; }
16659 if test "$GMSGFMT" != ":"; then
16660 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16661 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16664 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16665 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16666 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16671 if test "$XGETTEXT" != ":"; then
16672 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16673 (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
16676 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16677 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
16683 ac_config_commands="$ac_config_commands default-1"
16687 if test "X$prefix" = "XNONE"; then
16688 acl_final_prefix="$ac_default_prefix"
16690 acl_final_prefix="$prefix"
16692 if test "X$exec_prefix" = "XNONE"; then
16693 acl_final_exec_prefix='${prefix}'
16695 acl_final_exec_prefix="$exec_prefix"
16697 acl_save_prefix="$prefix"
16698 prefix="$acl_final_prefix"
16699 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16700 prefix="$acl_save_prefix"
16703 # Check whether --with-gnu-ld was given.
16704 if test "${with_gnu_ld+set}" = set; then
16705 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16710 # Prepare PATH_SEPARATOR.
16711 # The user is always right.
16712 if test "${PATH_SEPARATOR+set}" != set; then
16713 echo "#! /bin/sh" >conf$$.sh
16714 echo "exit 0" >>conf$$.sh
16716 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16724 if test "$GCC" = yes; then
16725 # Check if gcc -print-prog-name=ld gives a path.
16726 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16727 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
16730 # gcc leaves a trailing carriage return which upsets mingw
16731 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16733 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16736 # Accept absolute paths.
16737 [\\/]* | [A-Za-z]:[\\/]*)
16738 re_direlt='/[^/][^/]*/\.\./'
16739 # Canonicalize the path of ld
16740 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16741 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16742 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16744 test -z "$LD" && LD="$ac_prog"
16747 # If it fails, then pretend we aren't using GCC.
16751 # If it is relative, then search for the first ld in PATH.
16752 with_gnu_ld=unknown
16755 elif test "$with_gnu_ld" = yes; then
16756 { echo "$as_me:$LINENO: checking for GNU ld" >&5
16757 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
16759 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16760 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
16762 if test "${acl_cv_path_LD+set}" = set; then
16763 echo $ECHO_N "(cached) $ECHO_C" >&6
16765 if test -z "$LD"; then
16766 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16767 for ac_dir in $PATH; do
16768 test -z "$ac_dir" && ac_dir=.
16769 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16770 acl_cv_path_LD="$ac_dir/$ac_prog"
16771 # Check to see if the program is GNU ld. I'd rather use --version,
16772 # but apparently some GNU ld's only accept -v.
16773 # Break only if it was the GNU/non-GNU ld that we prefer.
16774 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16775 *GNU* | *'with BFD'*)
16776 test "$with_gnu_ld" != no && break ;;
16778 test "$with_gnu_ld" != yes && break ;;
16784 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16788 LD="$acl_cv_path_LD"
16789 if test -n "$LD"; then
16790 { echo "$as_me:$LINENO: result: $LD" >&5
16791 echo "${ECHO_T}$LD" >&6; }
16793 { echo "$as_me:$LINENO: result: no" >&5
16794 echo "${ECHO_T}no" >&6; }
16796 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16797 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16798 { (exit 1); exit 1; }; }
16799 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16800 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
16801 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16802 echo $ECHO_N "(cached) $ECHO_C" >&6
16804 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16805 case `$LD -v 2>&1 </dev/null` in
16806 *GNU* | *'with BFD'*)
16807 acl_cv_prog_gnu_ld=yes ;;
16809 acl_cv_prog_gnu_ld=no ;;
16812 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16813 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
16814 with_gnu_ld=$acl_cv_prog_gnu_ld
16819 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16820 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
16821 if test "${acl_cv_rpath+set}" = set; then
16822 echo $ECHO_N "(cached) $ECHO_C" >&6
16825 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16826 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16828 rm -f ./conftest.sh
16832 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16833 echo "${ECHO_T}$acl_cv_rpath" >&6; }
16835 libext="$acl_cv_libext"
16836 shlibext="$acl_cv_shlibext"
16837 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16838 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16839 hardcode_direct="$acl_cv_hardcode_direct"
16840 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16841 # Check whether --enable-rpath was given.
16842 if test "${enable_rpath+set}" = set; then
16843 enableval=$enable_rpath; :
16857 acl_save_prefix="$prefix"
16858 prefix="$acl_final_prefix"
16859 acl_save_exec_prefix="$exec_prefix"
16860 exec_prefix="$acl_final_exec_prefix"
16862 eval additional_includedir=\"$includedir\"
16863 eval additional_libdir=\"$libdir\"
16865 exec_prefix="$acl_save_exec_prefix"
16866 prefix="$acl_save_prefix"
16869 # Check whether --with-libiconv-prefix was given.
16870 if test "${with_libiconv_prefix+set}" = set; then
16871 withval=$with_libiconv_prefix;
16872 if test "X$withval" = "Xno"; then
16875 if test "X$withval" = "X"; then
16877 acl_save_prefix="$prefix"
16878 prefix="$acl_final_prefix"
16879 acl_save_exec_prefix="$exec_prefix"
16880 exec_prefix="$acl_final_exec_prefix"
16882 eval additional_includedir=\"$includedir\"
16883 eval additional_libdir=\"$libdir\"
16885 exec_prefix="$acl_save_exec_prefix"
16886 prefix="$acl_save_prefix"
16889 additional_includedir="$withval/include"
16890 additional_libdir="$withval/lib"
16901 names_already_handled=
16902 names_next_round='iconv '
16903 while test -n "$names_next_round"; do
16904 names_this_round="$names_next_round"
16906 for name in $names_this_round; do
16908 for n in $names_already_handled; do
16909 if test "$n" = "$name"; then
16910 already_handled=yes
16914 if test -z "$already_handled"; then
16915 names_already_handled="$names_already_handled $name"
16916 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16917 eval value=\"\$HAVE_LIB$uppername\"
16918 if test -n "$value"; then
16919 if test "$value" = yes; then
16920 eval value=\"\$LIB$uppername\"
16921 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16922 eval value=\"\$LTLIB$uppername\"
16923 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16932 if test $use_additional = yes; then
16933 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16934 found_dir="$additional_libdir"
16935 found_so="$additional_libdir/lib$name.$shlibext"
16936 if test -f "$additional_libdir/lib$name.la"; then
16937 found_la="$additional_libdir/lib$name.la"
16940 if test -f "$additional_libdir/lib$name.$libext"; then
16941 found_dir="$additional_libdir"
16942 found_a="$additional_libdir/lib$name.$libext"
16943 if test -f "$additional_libdir/lib$name.la"; then
16944 found_la="$additional_libdir/lib$name.la"
16949 if test "X$found_dir" = "X"; then
16950 for x in $LDFLAGS $LTLIBICONV; do
16952 acl_save_prefix="$prefix"
16953 prefix="$acl_final_prefix"
16954 acl_save_exec_prefix="$exec_prefix"
16955 exec_prefix="$acl_final_exec_prefix"
16957 exec_prefix="$acl_save_exec_prefix"
16958 prefix="$acl_save_prefix"
16962 dir=`echo "X$x" | sed -e 's/^X-L//'`
16963 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16965 found_so="$dir/lib$name.$shlibext"
16966 if test -f "$dir/lib$name.la"; then
16967 found_la="$dir/lib$name.la"
16970 if test -f "$dir/lib$name.$libext"; then
16972 found_a="$dir/lib$name.$libext"
16973 if test -f "$dir/lib$name.la"; then
16974 found_la="$dir/lib$name.la"
16980 if test "X$found_dir" != "X"; then
16985 if test "X$found_dir" != "X"; then
16986 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16987 if test "X$found_so" != "X"; then
16988 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16989 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16992 for x in $ltrpathdirs; do
16993 if test "X$x" = "X$found_dir"; then
16998 if test -z "$haveit"; then
16999 ltrpathdirs="$ltrpathdirs $found_dir"
17001 if test "$hardcode_direct" = yes; then
17002 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17004 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17005 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17007 for x in $rpathdirs; do
17008 if test "X$x" = "X$found_dir"; then
17013 if test -z "$haveit"; then
17014 rpathdirs="$rpathdirs $found_dir"
17018 for x in $LDFLAGS $LIBICONV; do
17020 acl_save_prefix="$prefix"
17021 prefix="$acl_final_prefix"
17022 acl_save_exec_prefix="$exec_prefix"
17023 exec_prefix="$acl_final_exec_prefix"
17025 exec_prefix="$acl_save_exec_prefix"
17026 prefix="$acl_save_prefix"
17028 if test "X$x" = "X-L$found_dir"; then
17033 if test -z "$haveit"; then
17034 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17036 if test "$hardcode_minus_L" != no; then
17037 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17039 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17045 if test "X$found_a" != "X"; then
17046 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17048 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17051 additional_includedir=
17052 case "$found_dir" in
17054 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17055 additional_includedir="$basedir/include"
17058 if test "X$additional_includedir" != "X"; then
17059 if test "X$additional_includedir" != "X/usr/include"; then
17061 if test "X$additional_includedir" = "X/usr/local/include"; then
17062 if test -n "$GCC"; then
17064 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17068 if test -z "$haveit"; then
17069 for x in $CPPFLAGS $INCICONV; do
17071 acl_save_prefix="$prefix"
17072 prefix="$acl_final_prefix"
17073 acl_save_exec_prefix="$exec_prefix"
17074 exec_prefix="$acl_final_exec_prefix"
17076 exec_prefix="$acl_save_exec_prefix"
17077 prefix="$acl_save_prefix"
17079 if test "X$x" = "X-I$additional_includedir"; then
17084 if test -z "$haveit"; then
17085 if test -d "$additional_includedir"; then
17086 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17092 if test -n "$found_la"; then
17093 save_libdir="$libdir"
17094 case "$found_la" in
17095 */* | *\\*) . "$found_la" ;;
17096 *) . "./$found_la" ;;
17098 libdir="$save_libdir"
17099 for dep in $dependency_libs; do
17102 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17103 if test "X$additional_libdir" != "X/usr/lib"; then
17105 if test "X$additional_libdir" = "X/usr/local/lib"; then
17106 if test -n "$GCC"; then
17108 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17112 if test -z "$haveit"; then
17114 for x in $LDFLAGS $LIBICONV; do
17116 acl_save_prefix="$prefix"
17117 prefix="$acl_final_prefix"
17118 acl_save_exec_prefix="$exec_prefix"
17119 exec_prefix="$acl_final_exec_prefix"
17121 exec_prefix="$acl_save_exec_prefix"
17122 prefix="$acl_save_prefix"
17124 if test "X$x" = "X-L$additional_libdir"; then
17129 if test -z "$haveit"; then
17130 if test -d "$additional_libdir"; then
17131 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17135 for x in $LDFLAGS $LTLIBICONV; do
17137 acl_save_prefix="$prefix"
17138 prefix="$acl_final_prefix"
17139 acl_save_exec_prefix="$exec_prefix"
17140 exec_prefix="$acl_final_exec_prefix"
17142 exec_prefix="$acl_save_exec_prefix"
17143 prefix="$acl_save_prefix"
17145 if test "X$x" = "X-L$additional_libdir"; then
17150 if test -z "$haveit"; then
17151 if test -d "$additional_libdir"; then
17152 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17159 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17160 if test "$enable_rpath" != no; then
17162 for x in $rpathdirs; do
17163 if test "X$x" = "X$dir"; then
17168 if test -z "$haveit"; then
17169 rpathdirs="$rpathdirs $dir"
17172 for x in $ltrpathdirs; do
17173 if test "X$x" = "X$dir"; then
17178 if test -z "$haveit"; then
17179 ltrpathdirs="$ltrpathdirs $dir"
17184 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17187 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17190 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17191 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17197 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17198 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17204 if test "X$rpathdirs" != "X"; then
17205 if test -n "$hardcode_libdir_separator"; then
17207 for found_dir in $rpathdirs; do
17208 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17210 acl_save_libdir="$libdir"
17212 eval flag=\"$hardcode_libdir_flag_spec\"
17213 libdir="$acl_save_libdir"
17214 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17216 for found_dir in $rpathdirs; do
17217 acl_save_libdir="$libdir"
17218 libdir="$found_dir"
17219 eval flag=\"$hardcode_libdir_flag_spec\"
17220 libdir="$acl_save_libdir"
17221 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17225 if test "X$ltrpathdirs" != "X"; then
17226 for found_dir in $ltrpathdirs; do
17227 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17248 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17249 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
17250 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17251 echo $ECHO_N "(cached) $ECHO_C" >&6
17253 gt_save_CPPFLAGS="$CPPFLAGS"
17254 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17255 gt_save_LIBS="$LIBS"
17256 LIBS="$LIBS -framework CoreFoundation"
17257 cat >conftest.$ac_ext <<_ACEOF
17260 cat confdefs.h >>conftest.$ac_ext
17261 cat >>conftest.$ac_ext <<_ACEOF
17262 /* end confdefs.h. */
17263 #include <CFPreferences.h>
17267 CFPreferencesCopyAppValue(NULL, NULL)
17272 rm -f conftest.$ac_objext conftest$ac_exeext
17273 if { (ac_try="$ac_link"
17274 case "(($ac_try" in
17275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17276 *) ac_try_echo=$ac_try;;
17278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17279 (eval "$ac_link") 2>conftest.er1
17281 grep -v '^ *+' conftest.er1 >conftest.err
17283 cat conftest.err >&5
17284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285 (exit $ac_status); } && {
17286 test -z "$ac_c_werror_flag" ||
17287 test ! -s conftest.err
17288 } && test -s conftest$ac_exeext &&
17289 $as_test_x conftest$ac_exeext; then
17290 gt_cv_func_CFPreferencesCopyAppValue=yes
17292 echo "$as_me: failed program was:" >&5
17293 sed 's/^/| /' conftest.$ac_ext >&5
17295 gt_cv_func_CFPreferencesCopyAppValue=no
17298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17299 conftest$ac_exeext conftest.$ac_ext
17300 CPPFLAGS="$gt_save_CPPFLAGS"
17301 LIBS="$gt_save_LIBS"
17303 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17304 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17305 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17307 cat >>confdefs.h <<\_ACEOF
17308 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17312 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17313 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
17314 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17315 echo $ECHO_N "(cached) $ECHO_C" >&6
17317 gt_save_CPPFLAGS="$CPPFLAGS"
17318 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17319 gt_save_LIBS="$LIBS"
17320 LIBS="$LIBS -framework CoreFoundation"
17321 cat >conftest.$ac_ext <<_ACEOF
17324 cat confdefs.h >>conftest.$ac_ext
17325 cat >>conftest.$ac_ext <<_ACEOF
17326 /* end confdefs.h. */
17327 #include <CFLocale.h>
17331 CFLocaleCopyCurrent();
17336 rm -f conftest.$ac_objext conftest$ac_exeext
17337 if { (ac_try="$ac_link"
17338 case "(($ac_try" in
17339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17340 *) ac_try_echo=$ac_try;;
17342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17343 (eval "$ac_link") 2>conftest.er1
17345 grep -v '^ *+' conftest.er1 >conftest.err
17347 cat conftest.err >&5
17348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17349 (exit $ac_status); } && {
17350 test -z "$ac_c_werror_flag" ||
17351 test ! -s conftest.err
17352 } && test -s conftest$ac_exeext &&
17353 $as_test_x conftest$ac_exeext; then
17354 gt_cv_func_CFLocaleCopyCurrent=yes
17356 echo "$as_me: failed program was:" >&5
17357 sed 's/^/| /' conftest.$ac_ext >&5
17359 gt_cv_func_CFLocaleCopyCurrent=no
17362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17363 conftest$ac_exeext conftest.$ac_ext
17364 CPPFLAGS="$gt_save_CPPFLAGS"
17365 LIBS="$gt_save_LIBS"
17367 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17368 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17369 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17371 cat >>confdefs.h <<\_ACEOF
17372 #define HAVE_CFLOCALECOPYCURRENT 1
17377 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17378 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17384 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17385 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
17386 # Check whether --enable-nls was given.
17387 if test "${enable_nls+set}" = set; then
17388 enableval=$enable_nls; USE_NLS=$enableval
17393 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
17394 echo "${ECHO_T}$USE_NLS" >&6; }
17403 if test "$USE_NLS" = "yes"; then
17404 gt_use_preinstalled_gnugettext=no
17411 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17412 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
17413 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17414 echo $ECHO_N "(cached) $ECHO_C" >&6
17416 cat >conftest.$ac_ext <<_ACEOF
17419 cat confdefs.h >>conftest.$ac_ext
17420 cat >>conftest.$ac_ext <<_ACEOF
17421 /* end confdefs.h. */
17422 #include <libintl.h>
17423 extern int _nl_msg_cat_cntr;
17424 extern int *_nl_domain_bindings;
17428 bindtextdomain ("", "");
17429 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17434 rm -f conftest.$ac_objext conftest$ac_exeext
17435 if { (ac_try="$ac_link"
17436 case "(($ac_try" in
17437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17438 *) ac_try_echo=$ac_try;;
17440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17441 (eval "$ac_link") 2>conftest.er1
17443 grep -v '^ *+' conftest.er1 >conftest.err
17445 cat conftest.err >&5
17446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447 (exit $ac_status); } && {
17448 test -z "$ac_c_werror_flag" ||
17449 test ! -s conftest.err
17450 } && test -s conftest$ac_exeext &&
17451 $as_test_x conftest$ac_exeext; then
17452 gt_cv_func_gnugettext1_libc=yes
17454 echo "$as_me: failed program was:" >&5
17455 sed 's/^/| /' conftest.$ac_ext >&5
17457 gt_cv_func_gnugettext1_libc=no
17460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17461 conftest$ac_exeext conftest.$ac_ext
17463 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17464 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
17466 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17472 am_save_CPPFLAGS="$CPPFLAGS"
17474 for element in $INCICONV; do
17476 for x in $CPPFLAGS; do
17478 acl_save_prefix="$prefix"
17479 prefix="$acl_final_prefix"
17480 acl_save_exec_prefix="$exec_prefix"
17481 exec_prefix="$acl_final_exec_prefix"
17483 exec_prefix="$acl_save_exec_prefix"
17484 prefix="$acl_save_prefix"
17486 if test "X$x" = "X$element"; then
17491 if test -z "$haveit"; then
17492 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17497 { echo "$as_me:$LINENO: checking for iconv" >&5
17498 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
17499 if test "${am_cv_func_iconv+set}" = set; then
17500 echo $ECHO_N "(cached) $ECHO_C" >&6
17503 am_cv_func_iconv="no, consider installing GNU libiconv"
17505 cat >conftest.$ac_ext <<_ACEOF
17508 cat confdefs.h >>conftest.$ac_ext
17509 cat >>conftest.$ac_ext <<_ACEOF
17510 /* end confdefs.h. */
17511 #include <stdlib.h>
17516 iconv_t cd = iconv_open("","");
17517 iconv(cd,NULL,NULL,NULL,NULL);
17523 rm -f conftest.$ac_objext conftest$ac_exeext
17524 if { (ac_try="$ac_link"
17525 case "(($ac_try" in
17526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17527 *) ac_try_echo=$ac_try;;
17529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17530 (eval "$ac_link") 2>conftest.er1
17532 grep -v '^ *+' conftest.er1 >conftest.err
17534 cat conftest.err >&5
17535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17536 (exit $ac_status); } && {
17537 test -z "$ac_c_werror_flag" ||
17538 test ! -s conftest.err
17539 } && test -s conftest$ac_exeext &&
17540 $as_test_x conftest$ac_exeext; then
17541 am_cv_func_iconv=yes
17543 echo "$as_me: failed program was:" >&5
17544 sed 's/^/| /' conftest.$ac_ext >&5
17549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17550 conftest$ac_exeext conftest.$ac_ext
17551 if test "$am_cv_func_iconv" != yes; then
17552 am_save_LIBS="$LIBS"
17553 LIBS="$LIBS $LIBICONV"
17554 cat >conftest.$ac_ext <<_ACEOF
17557 cat confdefs.h >>conftest.$ac_ext
17558 cat >>conftest.$ac_ext <<_ACEOF
17559 /* end confdefs.h. */
17560 #include <stdlib.h>
17565 iconv_t cd = iconv_open("","");
17566 iconv(cd,NULL,NULL,NULL,NULL);
17572 rm -f conftest.$ac_objext conftest$ac_exeext
17573 if { (ac_try="$ac_link"
17574 case "(($ac_try" in
17575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17576 *) ac_try_echo=$ac_try;;
17578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17579 (eval "$ac_link") 2>conftest.er1
17581 grep -v '^ *+' conftest.er1 >conftest.err
17583 cat conftest.err >&5
17584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585 (exit $ac_status); } && {
17586 test -z "$ac_c_werror_flag" ||
17587 test ! -s conftest.err
17588 } && test -s conftest$ac_exeext &&
17589 $as_test_x conftest$ac_exeext; then
17590 am_cv_lib_iconv=yes
17591 am_cv_func_iconv=yes
17593 echo "$as_me: failed program was:" >&5
17594 sed 's/^/| /' conftest.$ac_ext >&5
17599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17600 conftest$ac_exeext conftest.$ac_ext
17601 LIBS="$am_save_LIBS"
17605 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17606 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
17607 if test "$am_cv_func_iconv" = yes; then
17609 cat >>confdefs.h <<\_ACEOF
17610 #define HAVE_ICONV 1
17614 if test "$am_cv_lib_iconv" = yes; then
17615 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17616 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
17617 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
17618 echo "${ECHO_T}$LIBICONV" >&6; }
17620 CPPFLAGS="$am_save_CPPFLAGS"
17632 acl_save_prefix="$prefix"
17633 prefix="$acl_final_prefix"
17634 acl_save_exec_prefix="$exec_prefix"
17635 exec_prefix="$acl_final_exec_prefix"
17637 eval additional_includedir=\"$includedir\"
17638 eval additional_libdir=\"$libdir\"
17640 exec_prefix="$acl_save_exec_prefix"
17641 prefix="$acl_save_prefix"
17644 # Check whether --with-libintl-prefix was given.
17645 if test "${with_libintl_prefix+set}" = set; then
17646 withval=$with_libintl_prefix;
17647 if test "X$withval" = "Xno"; then
17650 if test "X$withval" = "X"; then
17652 acl_save_prefix="$prefix"
17653 prefix="$acl_final_prefix"
17654 acl_save_exec_prefix="$exec_prefix"
17655 exec_prefix="$acl_final_exec_prefix"
17657 eval additional_includedir=\"$includedir\"
17658 eval additional_libdir=\"$libdir\"
17660 exec_prefix="$acl_save_exec_prefix"
17661 prefix="$acl_save_prefix"
17664 additional_includedir="$withval/include"
17665 additional_libdir="$withval/lib"
17676 names_already_handled=
17677 names_next_round='intl '
17678 while test -n "$names_next_round"; do
17679 names_this_round="$names_next_round"
17681 for name in $names_this_round; do
17683 for n in $names_already_handled; do
17684 if test "$n" = "$name"; then
17685 already_handled=yes
17689 if test -z "$already_handled"; then
17690 names_already_handled="$names_already_handled $name"
17691 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17692 eval value=\"\$HAVE_LIB$uppername\"
17693 if test -n "$value"; then
17694 if test "$value" = yes; then
17695 eval value=\"\$LIB$uppername\"
17696 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17697 eval value=\"\$LTLIB$uppername\"
17698 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17707 if test $use_additional = yes; then
17708 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17709 found_dir="$additional_libdir"
17710 found_so="$additional_libdir/lib$name.$shlibext"
17711 if test -f "$additional_libdir/lib$name.la"; then
17712 found_la="$additional_libdir/lib$name.la"
17715 if test -f "$additional_libdir/lib$name.$libext"; then
17716 found_dir="$additional_libdir"
17717 found_a="$additional_libdir/lib$name.$libext"
17718 if test -f "$additional_libdir/lib$name.la"; then
17719 found_la="$additional_libdir/lib$name.la"
17724 if test "X$found_dir" = "X"; then
17725 for x in $LDFLAGS $LTLIBINTL; do
17727 acl_save_prefix="$prefix"
17728 prefix="$acl_final_prefix"
17729 acl_save_exec_prefix="$exec_prefix"
17730 exec_prefix="$acl_final_exec_prefix"
17732 exec_prefix="$acl_save_exec_prefix"
17733 prefix="$acl_save_prefix"
17737 dir=`echo "X$x" | sed -e 's/^X-L//'`
17738 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17740 found_so="$dir/lib$name.$shlibext"
17741 if test -f "$dir/lib$name.la"; then
17742 found_la="$dir/lib$name.la"
17745 if test -f "$dir/lib$name.$libext"; then
17747 found_a="$dir/lib$name.$libext"
17748 if test -f "$dir/lib$name.la"; then
17749 found_la="$dir/lib$name.la"
17755 if test "X$found_dir" != "X"; then
17760 if test "X$found_dir" != "X"; then
17761 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17762 if test "X$found_so" != "X"; then
17763 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17764 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17767 for x in $ltrpathdirs; do
17768 if test "X$x" = "X$found_dir"; then
17773 if test -z "$haveit"; then
17774 ltrpathdirs="$ltrpathdirs $found_dir"
17776 if test "$hardcode_direct" = yes; then
17777 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17779 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17780 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17782 for x in $rpathdirs; do
17783 if test "X$x" = "X$found_dir"; then
17788 if test -z "$haveit"; then
17789 rpathdirs="$rpathdirs $found_dir"
17793 for x in $LDFLAGS $LIBINTL; do
17795 acl_save_prefix="$prefix"
17796 prefix="$acl_final_prefix"
17797 acl_save_exec_prefix="$exec_prefix"
17798 exec_prefix="$acl_final_exec_prefix"
17800 exec_prefix="$acl_save_exec_prefix"
17801 prefix="$acl_save_prefix"
17803 if test "X$x" = "X-L$found_dir"; then
17808 if test -z "$haveit"; then
17809 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17811 if test "$hardcode_minus_L" != no; then
17812 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17814 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17820 if test "X$found_a" != "X"; then
17821 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17823 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17826 additional_includedir=
17827 case "$found_dir" in
17829 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17830 additional_includedir="$basedir/include"
17833 if test "X$additional_includedir" != "X"; then
17834 if test "X$additional_includedir" != "X/usr/include"; then
17836 if test "X$additional_includedir" = "X/usr/local/include"; then
17837 if test -n "$GCC"; then
17839 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17843 if test -z "$haveit"; then
17844 for x in $CPPFLAGS $INCINTL; do
17846 acl_save_prefix="$prefix"
17847 prefix="$acl_final_prefix"
17848 acl_save_exec_prefix="$exec_prefix"
17849 exec_prefix="$acl_final_exec_prefix"
17851 exec_prefix="$acl_save_exec_prefix"
17852 prefix="$acl_save_prefix"
17854 if test "X$x" = "X-I$additional_includedir"; then
17859 if test -z "$haveit"; then
17860 if test -d "$additional_includedir"; then
17861 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17867 if test -n "$found_la"; then
17868 save_libdir="$libdir"
17869 case "$found_la" in
17870 */* | *\\*) . "$found_la" ;;
17871 *) . "./$found_la" ;;
17873 libdir="$save_libdir"
17874 for dep in $dependency_libs; do
17877 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17878 if test "X$additional_libdir" != "X/usr/lib"; then
17880 if test "X$additional_libdir" = "X/usr/local/lib"; then
17881 if test -n "$GCC"; then
17883 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17887 if test -z "$haveit"; then
17889 for x in $LDFLAGS $LIBINTL; do
17891 acl_save_prefix="$prefix"
17892 prefix="$acl_final_prefix"
17893 acl_save_exec_prefix="$exec_prefix"
17894 exec_prefix="$acl_final_exec_prefix"
17896 exec_prefix="$acl_save_exec_prefix"
17897 prefix="$acl_save_prefix"
17899 if test "X$x" = "X-L$additional_libdir"; then
17904 if test -z "$haveit"; then
17905 if test -d "$additional_libdir"; then
17906 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17910 for x in $LDFLAGS $LTLIBINTL; do
17912 acl_save_prefix="$prefix"
17913 prefix="$acl_final_prefix"
17914 acl_save_exec_prefix="$exec_prefix"
17915 exec_prefix="$acl_final_exec_prefix"
17917 exec_prefix="$acl_save_exec_prefix"
17918 prefix="$acl_save_prefix"
17920 if test "X$x" = "X-L$additional_libdir"; then
17925 if test -z "$haveit"; then
17926 if test -d "$additional_libdir"; then
17927 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17934 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17935 if test "$enable_rpath" != no; then
17937 for x in $rpathdirs; do
17938 if test "X$x" = "X$dir"; then
17943 if test -z "$haveit"; then
17944 rpathdirs="$rpathdirs $dir"
17947 for x in $ltrpathdirs; do
17948 if test "X$x" = "X$dir"; then
17953 if test -z "$haveit"; then
17954 ltrpathdirs="$ltrpathdirs $dir"
17959 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17962 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17965 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17966 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17972 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17973 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17979 if test "X$rpathdirs" != "X"; then
17980 if test -n "$hardcode_libdir_separator"; then
17982 for found_dir in $rpathdirs; do
17983 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17985 acl_save_libdir="$libdir"
17987 eval flag=\"$hardcode_libdir_flag_spec\"
17988 libdir="$acl_save_libdir"
17989 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17991 for found_dir in $rpathdirs; do
17992 acl_save_libdir="$libdir"
17993 libdir="$found_dir"
17994 eval flag=\"$hardcode_libdir_flag_spec\"
17995 libdir="$acl_save_libdir"
17996 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18000 if test "X$ltrpathdirs" != "X"; then
18001 for found_dir in $ltrpathdirs; do
18002 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18006 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18007 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
18008 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18009 echo $ECHO_N "(cached) $ECHO_C" >&6
18011 gt_save_CPPFLAGS="$CPPFLAGS"
18012 CPPFLAGS="$CPPFLAGS $INCINTL"
18013 gt_save_LIBS="$LIBS"
18014 LIBS="$LIBS $LIBINTL"
18015 cat >conftest.$ac_ext <<_ACEOF
18018 cat confdefs.h >>conftest.$ac_ext
18019 cat >>conftest.$ac_ext <<_ACEOF
18020 /* end confdefs.h. */
18021 #include <libintl.h>
18022 extern int _nl_msg_cat_cntr;
18027 const char *_nl_expand_alias (const char *);
18031 bindtextdomain ("", "");
18032 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18037 rm -f conftest.$ac_objext conftest$ac_exeext
18038 if { (ac_try="$ac_link"
18039 case "(($ac_try" in
18040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18041 *) ac_try_echo=$ac_try;;
18043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18044 (eval "$ac_link") 2>conftest.er1
18046 grep -v '^ *+' conftest.er1 >conftest.err
18048 cat conftest.err >&5
18049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18050 (exit $ac_status); } && {
18051 test -z "$ac_c_werror_flag" ||
18052 test ! -s conftest.err
18053 } && test -s conftest$ac_exeext &&
18054 $as_test_x conftest$ac_exeext; then
18055 gt_cv_func_gnugettext1_libintl=yes
18057 echo "$as_me: failed program was:" >&5
18058 sed 's/^/| /' conftest.$ac_ext >&5
18060 gt_cv_func_gnugettext1_libintl=no
18063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18064 conftest$ac_exeext conftest.$ac_ext
18065 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18066 LIBS="$LIBS $LIBICONV"
18067 cat >conftest.$ac_ext <<_ACEOF
18070 cat confdefs.h >>conftest.$ac_ext
18071 cat >>conftest.$ac_ext <<_ACEOF
18072 /* end confdefs.h. */
18073 #include <libintl.h>
18074 extern int _nl_msg_cat_cntr;
18079 const char *_nl_expand_alias (const char *);
18083 bindtextdomain ("", "");
18084 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18089 rm -f conftest.$ac_objext conftest$ac_exeext
18090 if { (ac_try="$ac_link"
18091 case "(($ac_try" in
18092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18093 *) ac_try_echo=$ac_try;;
18095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18096 (eval "$ac_link") 2>conftest.er1
18098 grep -v '^ *+' conftest.er1 >conftest.err
18100 cat conftest.err >&5
18101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18102 (exit $ac_status); } && {
18103 test -z "$ac_c_werror_flag" ||
18104 test ! -s conftest.err
18105 } && test -s conftest$ac_exeext &&
18106 $as_test_x conftest$ac_exeext; then
18107 LIBINTL="$LIBINTL $LIBICONV"
18108 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18109 gt_cv_func_gnugettext1_libintl=yes
18112 echo "$as_me: failed program was:" >&5
18113 sed 's/^/| /' conftest.$ac_ext >&5
18118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18119 conftest$ac_exeext conftest.$ac_ext
18121 CPPFLAGS="$gt_save_CPPFLAGS"
18122 LIBS="$gt_save_LIBS"
18124 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18125 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
18128 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18129 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18130 && test "$PACKAGE" != gettext-runtime \
18131 && test "$PACKAGE" != gettext-tools; }; then
18132 gt_use_preinstalled_gnugettext=yes
18141 if test -n "$INTL_MACOSX_LIBS"; then
18142 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18143 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18144 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18145 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18149 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18150 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18152 cat >>confdefs.h <<\_ACEOF
18153 #define ENABLE_NLS 1
18161 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
18162 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
18163 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
18164 echo "${ECHO_T}$USE_NLS" >&6; }
18165 if test "$USE_NLS" = "yes"; then
18166 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18167 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
18168 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18169 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18170 gt_source="external libintl"
18175 gt_source="included intl directory"
18177 { echo "$as_me:$LINENO: result: $gt_source" >&5
18178 echo "${ECHO_T}$gt_source" >&6; }
18181 if test "$USE_NLS" = "yes"; then
18183 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18184 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18185 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
18186 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
18187 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
18188 echo "${ECHO_T}$LIBINTL" >&6; }
18190 for element in $INCINTL; do
18192 for x in $CPPFLAGS; do
18194 acl_save_prefix="$prefix"
18195 prefix="$acl_final_prefix"
18196 acl_save_exec_prefix="$exec_prefix"
18197 exec_prefix="$acl_final_exec_prefix"
18199 exec_prefix="$acl_save_exec_prefix"
18200 prefix="$acl_save_prefix"
18202 if test "X$x" = "X$element"; then
18207 if test -z "$haveit"; then
18208 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18215 cat >>confdefs.h <<\_ACEOF
18216 #define HAVE_GETTEXT 1
18220 cat >>confdefs.h <<\_ACEOF
18221 #define HAVE_DCGETTEXT 1
18231 INTLLIBS="$LIBINTL"
18238 if test x${prefix} = xNONE ; then
18239 if test `eval echo ${datarootdir}` = NONE/share ; then
18240 datarootdir=/usr/share
18244 if test x${prefix} = xNONE ; then
18245 if test `eval echo ${sysconfdir}` = NONE/etc ; then
18246 sysconfdir=/etc/bacula
18250 sysconfdir=`eval echo ${sysconfdir}`
18251 datarootdir=`eval echo ${datarootdir}`
18252 localedir=`eval echo ${datarootdir}/locale`
18253 cat >>confdefs.h <<_ACEOF
18254 #define SYSCONFDIR "$sysconfdir"
18257 cat >>confdefs.h <<_ACEOF
18258 #define LOCALEDIR "$localedir"
18262 if test x${exec_prefix} = xNONE ; then
18263 exec_prefix=${prefix}
18266 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18267 sbindir=${exec_prefix}/sbin
18269 sbindir=`eval echo ${sbindir}`
18271 if test x$libdir = x'${exec_prefix}/lib' ; then
18272 libdir=${exec_prefix}/lib
18274 libdir=`eval echo ${libdir}`
18276 if test x$includedir = x'${exec_prefix}/include' ; then
18277 includedir=${exec_prefix}/include
18279 includedir=`eval echo ${includedir}`
18281 if test x$mandir = x'${prefix}/man' ; then
18282 mandir=/usr/share/man
18285 for ac_prog in msgfmt
18287 # Extract the first word of "$ac_prog", so it can be a program name with args.
18288 set dummy $ac_prog; ac_word=$2
18289 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18291 if test "${ac_cv_path_MSGFMT+set}" = set; then
18292 echo $ECHO_N "(cached) $ECHO_C" >&6
18296 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18300 for as_dir in $PATH
18303 test -z "$as_dir" && as_dir=.
18304 for ac_exec_ext in '' $ac_executable_extensions; do
18305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18306 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18317 MSGFMT=$ac_cv_path_MSGFMT
18318 if test -n "$MSGFMT"; then
18319 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
18320 echo "${ECHO_T}$MSGFMT" >&6; }
18322 { echo "$as_me:$LINENO: result: no" >&5
18323 echo "${ECHO_T}no" >&6; }
18327 test -n "$MSGFMT" && break
18329 test -n "$MSGFMT" || MSGFMT="no"
18331 if test "$MSGFMT" = "no"
18333 echo 'msgfmt program not found, disabling NLS !'
18335 USE_INCLUDED_LIBINTL=no
18338 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18339 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
18340 if test "${ac_cv_gnu_library_2+set}" = set; then
18341 echo $ECHO_N "(cached) $ECHO_C" >&6
18343 cat >conftest.$ac_ext <<_ACEOF
18346 cat confdefs.h >>conftest.$ac_ext
18347 cat >>conftest.$ac_ext <<_ACEOF
18348 /* end confdefs.h. */
18350 #include <features.h>
18351 #ifdef __GNU_LIBRARY__
18352 #if (__GLIBC__ >= 2)
18358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18359 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18360 ac_cv_gnu_library_2=yes
18362 ac_cv_gnu_library_2=no
18369 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18370 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
18372 GLIBC2="$ac_cv_gnu_library_2"
18375 if test -n "$ac_tool_prefix"; then
18376 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18377 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18380 if test "${ac_cv_prog_RANLIB+set}" = set; then
18381 echo $ECHO_N "(cached) $ECHO_C" >&6
18383 if test -n "$RANLIB"; then
18384 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18387 for as_dir in $PATH
18390 test -z "$as_dir" && as_dir=.
18391 for ac_exec_ext in '' $ac_executable_extensions; do
18392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18393 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18403 RANLIB=$ac_cv_prog_RANLIB
18404 if test -n "$RANLIB"; then
18405 { echo "$as_me:$LINENO: result: $RANLIB" >&5
18406 echo "${ECHO_T}$RANLIB" >&6; }
18408 { echo "$as_me:$LINENO: result: no" >&5
18409 echo "${ECHO_T}no" >&6; }
18414 if test -z "$ac_cv_prog_RANLIB"; then
18415 ac_ct_RANLIB=$RANLIB
18416 # Extract the first word of "ranlib", so it can be a program name with args.
18417 set dummy ranlib; ac_word=$2
18418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18420 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18421 echo $ECHO_N "(cached) $ECHO_C" >&6
18423 if test -n "$ac_ct_RANLIB"; then
18424 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18427 for as_dir in $PATH
18430 test -z "$as_dir" && as_dir=.
18431 for ac_exec_ext in '' $ac_executable_extensions; do
18432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18433 ac_cv_prog_ac_ct_RANLIB="ranlib"
18434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18443 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18444 if test -n "$ac_ct_RANLIB"; then
18445 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18446 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
18448 { echo "$as_me:$LINENO: result: no" >&5
18449 echo "${ECHO_T}no" >&6; }
18452 if test "x$ac_ct_RANLIB" = x; then
18455 case $cross_compiling:$ac_tool_warned in
18457 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18458 whose name does not start with the host triplet. If you think this
18459 configuration is useful to you, please write to autoconf@gnu.org." >&5
18460 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18461 whose name does not start with the host triplet. If you think this
18462 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18463 ac_tool_warned=yes ;;
18465 RANLIB=$ac_ct_RANLIB
18468 RANLIB="$ac_cv_prog_RANLIB"
18472 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18473 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
18474 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18475 echo $ECHO_N "(cached) $ECHO_C" >&6
18477 ac_check_lib_save_LIBS=$LIBS
18478 LIBS="-lcposix $LIBS"
18479 cat >conftest.$ac_ext <<_ACEOF
18482 cat confdefs.h >>conftest.$ac_ext
18483 cat >>conftest.$ac_ext <<_ACEOF
18484 /* end confdefs.h. */
18486 /* Override any GCC internal prototype to avoid an error.
18487 Use char because int might match the return type of a GCC
18488 builtin and then its argument prototype would still apply. */
18496 return strerror ();
18501 rm -f conftest.$ac_objext conftest$ac_exeext
18502 if { (ac_try="$ac_link"
18503 case "(($ac_try" in
18504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18505 *) ac_try_echo=$ac_try;;
18507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18508 (eval "$ac_link") 2>conftest.er1
18510 grep -v '^ *+' conftest.er1 >conftest.err
18512 cat conftest.err >&5
18513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18514 (exit $ac_status); } && {
18515 test -z "$ac_c_werror_flag" ||
18516 test ! -s conftest.err
18517 } && test -s conftest$ac_exeext &&
18518 $as_test_x conftest$ac_exeext; then
18519 ac_cv_lib_cposix_strerror=yes
18521 echo "$as_me: failed program was:" >&5
18522 sed 's/^/| /' conftest.$ac_ext >&5
18524 ac_cv_lib_cposix_strerror=no
18527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18528 conftest$ac_exeext conftest.$ac_ext
18529 LIBS=$ac_check_lib_save_LIBS
18531 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18532 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
18533 if test $ac_cv_lib_cposix_strerror = yes; then
18534 LIBS="$LIBS -lcposix"
18539 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18540 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18541 if test "${ac_cv_c_const+set}" = set; then
18542 echo $ECHO_N "(cached) $ECHO_C" >&6
18544 cat >conftest.$ac_ext <<_ACEOF
18547 cat confdefs.h >>conftest.$ac_ext
18548 cat >>conftest.$ac_ext <<_ACEOF
18549 /* end confdefs.h. */
18554 /* FIXME: Include the comments suggested by Paul. */
18555 #ifndef __cplusplus
18556 /* Ultrix mips cc rejects this. */
18557 typedef int charset[2];
18559 /* SunOS 4.1.1 cc rejects this. */
18560 char const *const *pcpcc;
18562 /* NEC SVR4.0.2 mips cc rejects this. */
18563 struct point {int x, y;};
18564 static struct point const zero = {0,0};
18565 /* AIX XL C 1.02.0.0 rejects this.
18566 It does not let you subtract one const X* pointer from another in
18567 an arm of an if-expression whose if-part is not a constant
18569 const char *g = "string";
18570 pcpcc = &g + (g ? g-g : 0);
18571 /* HPUX 7.0 cc rejects these. */
18573 ppc = (char**) pcpcc;
18574 pcpcc = (char const *const *) ppc;
18575 { /* SCO 3.2v4 cc rejects this. */
18577 char const *s = 0 ? (char *) 0 : (char const *) 0;
18582 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18583 int x[] = {25, 17};
18584 const int *foo = &x[0];
18587 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18588 typedef const int *iptr;
18592 { /* AIX XL C 1.02.0.0 rejects this saying
18593 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18594 struct s { int j; const int *ap[3]; };
18595 struct s *b; b->j = 5;
18597 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18598 const int foo = 10;
18599 if (!foo) return 0;
18601 return !cs[0] && !zero.x;
18608 rm -f conftest.$ac_objext
18609 if { (ac_try="$ac_compile"
18610 case "(($ac_try" in
18611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18612 *) ac_try_echo=$ac_try;;
18614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18615 (eval "$ac_compile") 2>conftest.er1
18617 grep -v '^ *+' conftest.er1 >conftest.err
18619 cat conftest.err >&5
18620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621 (exit $ac_status); } && {
18622 test -z "$ac_c_werror_flag" ||
18623 test ! -s conftest.err
18624 } && test -s conftest.$ac_objext; then
18627 echo "$as_me: failed program was:" >&5
18628 sed 's/^/| /' conftest.$ac_ext >&5
18633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18635 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18636 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18637 if test $ac_cv_c_const = no; then
18639 cat >>confdefs.h <<\_ACEOF
18646 { echo "$as_me:$LINENO: checking for signed" >&5
18647 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
18648 if test "${bh_cv_c_signed+set}" = set; then
18649 echo $ECHO_N "(cached) $ECHO_C" >&6
18651 cat >conftest.$ac_ext <<_ACEOF
18654 cat confdefs.h >>conftest.$ac_ext
18655 cat >>conftest.$ac_ext <<_ACEOF
18656 /* end confdefs.h. */
18666 rm -f conftest.$ac_objext
18667 if { (ac_try="$ac_compile"
18668 case "(($ac_try" in
18669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18670 *) ac_try_echo=$ac_try;;
18672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18673 (eval "$ac_compile") 2>conftest.er1
18675 grep -v '^ *+' conftest.er1 >conftest.err
18677 cat conftest.err >&5
18678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18679 (exit $ac_status); } && {
18680 test -z "$ac_c_werror_flag" ||
18681 test ! -s conftest.err
18682 } && test -s conftest.$ac_objext; then
18685 echo "$as_me: failed program was:" >&5
18686 sed 's/^/| /' conftest.$ac_ext >&5
18691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18693 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
18694 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
18695 if test $bh_cv_c_signed = no; then
18697 cat >>confdefs.h <<\_ACEOF
18703 { echo "$as_me:$LINENO: checking for inline" >&5
18704 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18705 if test "${ac_cv_c_inline+set}" = set; then
18706 echo $ECHO_N "(cached) $ECHO_C" >&6
18709 for ac_kw in inline __inline__ __inline; do
18710 cat >conftest.$ac_ext <<_ACEOF
18713 cat confdefs.h >>conftest.$ac_ext
18714 cat >>conftest.$ac_ext <<_ACEOF
18715 /* end confdefs.h. */
18716 #ifndef __cplusplus
18718 static $ac_kw foo_t static_foo () {return 0; }
18719 $ac_kw foo_t foo () {return 0; }
18723 rm -f conftest.$ac_objext
18724 if { (ac_try="$ac_compile"
18725 case "(($ac_try" in
18726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18727 *) ac_try_echo=$ac_try;;
18729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18730 (eval "$ac_compile") 2>conftest.er1
18732 grep -v '^ *+' conftest.er1 >conftest.err
18734 cat conftest.err >&5
18735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736 (exit $ac_status); } && {
18737 test -z "$ac_c_werror_flag" ||
18738 test ! -s conftest.err
18739 } && test -s conftest.$ac_objext; then
18740 ac_cv_c_inline=$ac_kw
18742 echo "$as_me: failed program was:" >&5
18743 sed 's/^/| /' conftest.$ac_ext >&5
18748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18749 test "$ac_cv_c_inline" != no && break
18753 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18754 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18757 case $ac_cv_c_inline in
18760 case $ac_cv_c_inline in
18762 *) ac_val=$ac_cv_c_inline;;
18764 cat >>confdefs.h <<_ACEOF
18765 #ifndef __cplusplus
18766 #define inline $ac_val
18772 { echo "$as_me:$LINENO: checking for off_t" >&5
18773 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
18774 if test "${ac_cv_type_off_t+set}" = set; then
18775 echo $ECHO_N "(cached) $ECHO_C" >&6
18777 cat >conftest.$ac_ext <<_ACEOF
18780 cat confdefs.h >>conftest.$ac_ext
18781 cat >>conftest.$ac_ext <<_ACEOF
18782 /* end confdefs.h. */
18783 $ac_includes_default
18784 typedef off_t ac__type_new_;
18788 if ((ac__type_new_ *) 0)
18790 if (sizeof (ac__type_new_))
18796 rm -f conftest.$ac_objext
18797 if { (ac_try="$ac_compile"
18798 case "(($ac_try" in
18799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18800 *) ac_try_echo=$ac_try;;
18802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18803 (eval "$ac_compile") 2>conftest.er1
18805 grep -v '^ *+' conftest.er1 >conftest.err
18807 cat conftest.err >&5
18808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809 (exit $ac_status); } && {
18810 test -z "$ac_c_werror_flag" ||
18811 test ! -s conftest.err
18812 } && test -s conftest.$ac_objext; then
18813 ac_cv_type_off_t=yes
18815 echo "$as_me: failed program was:" >&5
18816 sed 's/^/| /' conftest.$ac_ext >&5
18818 ac_cv_type_off_t=no
18821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18823 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18824 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
18825 if test $ac_cv_type_off_t = yes; then
18829 cat >>confdefs.h <<_ACEOF
18830 #define off_t long int
18835 { echo "$as_me:$LINENO: checking for size_t" >&5
18836 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
18837 if test "${ac_cv_type_size_t+set}" = set; then
18838 echo $ECHO_N "(cached) $ECHO_C" >&6
18840 cat >conftest.$ac_ext <<_ACEOF
18843 cat confdefs.h >>conftest.$ac_ext
18844 cat >>conftest.$ac_ext <<_ACEOF
18845 /* end confdefs.h. */
18846 $ac_includes_default
18847 typedef size_t ac__type_new_;
18851 if ((ac__type_new_ *) 0)
18853 if (sizeof (ac__type_new_))
18859 rm -f conftest.$ac_objext
18860 if { (ac_try="$ac_compile"
18861 case "(($ac_try" in
18862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18863 *) ac_try_echo=$ac_try;;
18865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18866 (eval "$ac_compile") 2>conftest.er1
18868 grep -v '^ *+' conftest.er1 >conftest.err
18870 cat conftest.err >&5
18871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18872 (exit $ac_status); } && {
18873 test -z "$ac_c_werror_flag" ||
18874 test ! -s conftest.err
18875 } && test -s conftest.$ac_objext; then
18876 ac_cv_type_size_t=yes
18878 echo "$as_me: failed program was:" >&5
18879 sed 's/^/| /' conftest.$ac_ext >&5
18881 ac_cv_type_size_t=no
18884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18886 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18887 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
18888 if test $ac_cv_type_size_t = yes; then
18892 cat >>confdefs.h <<_ACEOF
18893 #define size_t unsigned int
18899 { echo "$as_me:$LINENO: checking for long long" >&5
18900 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
18901 if test "${ac_cv_type_long_long+set}" = set; then
18902 echo $ECHO_N "(cached) $ECHO_C" >&6
18904 cat >conftest.$ac_ext <<_ACEOF
18907 cat confdefs.h >>conftest.$ac_ext
18908 cat >>conftest.$ac_ext <<_ACEOF
18909 /* end confdefs.h. */
18910 long long ll = 1LL; int i = 63;
18914 long long llmax = (long long) -1;
18915 return ll << i | ll >> i | llmax / ll | llmax % ll;
18920 rm -f conftest.$ac_objext conftest$ac_exeext
18921 if { (ac_try="$ac_link"
18922 case "(($ac_try" in
18923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18924 *) ac_try_echo=$ac_try;;
18926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18927 (eval "$ac_link") 2>conftest.er1
18929 grep -v '^ *+' conftest.er1 >conftest.err
18931 cat conftest.err >&5
18932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933 (exit $ac_status); } && {
18934 test -z "$ac_c_werror_flag" ||
18935 test ! -s conftest.err
18936 } && test -s conftest$ac_exeext &&
18937 $as_test_x conftest$ac_exeext; then
18938 ac_cv_type_long_long=yes
18940 echo "$as_me: failed program was:" >&5
18941 sed 's/^/| /' conftest.$ac_ext >&5
18943 ac_cv_type_long_long=no
18946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18947 conftest$ac_exeext conftest.$ac_ext
18949 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18950 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
18951 if test $ac_cv_type_long_long = yes; then
18953 cat >>confdefs.h <<\_ACEOF
18954 #define HAVE_LONG_LONG 1
18960 { echo "$as_me:$LINENO: checking for long double" >&5
18961 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
18962 if test "${gt_cv_c_long_double+set}" = set; then
18963 echo $ECHO_N "(cached) $ECHO_C" >&6
18965 if test "$GCC" = yes; then
18966 gt_cv_c_long_double=yes
18968 cat >conftest.$ac_ext <<_ACEOF
18971 cat confdefs.h >>conftest.$ac_ext
18972 cat >>conftest.$ac_ext <<_ACEOF
18973 /* end confdefs.h. */
18975 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
18976 long double foo = 0.0;
18977 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
18978 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
18988 rm -f conftest.$ac_objext
18989 if { (ac_try="$ac_compile"
18990 case "(($ac_try" in
18991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18992 *) ac_try_echo=$ac_try;;
18994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18995 (eval "$ac_compile") 2>conftest.er1
18997 grep -v '^ *+' conftest.er1 >conftest.err
18999 cat conftest.err >&5
19000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001 (exit $ac_status); } && {
19002 test -z "$ac_c_werror_flag" ||
19003 test ! -s conftest.err
19004 } && test -s conftest.$ac_objext; then
19005 gt_cv_c_long_double=yes
19007 echo "$as_me: failed program was:" >&5
19008 sed 's/^/| /' conftest.$ac_ext >&5
19010 gt_cv_c_long_double=no
19013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19016 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19017 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
19018 if test $gt_cv_c_long_double = yes; then
19020 cat >>confdefs.h <<\_ACEOF
19021 #define HAVE_LONG_DOUBLE 1
19027 { echo "$as_me:$LINENO: checking for wchar_t" >&5
19028 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19029 if test "${gt_cv_c_wchar_t+set}" = set; then
19030 echo $ECHO_N "(cached) $ECHO_C" >&6
19032 cat >conftest.$ac_ext <<_ACEOF
19035 cat confdefs.h >>conftest.$ac_ext
19036 cat >>conftest.$ac_ext <<_ACEOF
19037 /* end confdefs.h. */
19038 #include <stddef.h>
19039 wchar_t foo = (wchar_t)'\0';
19048 rm -f conftest.$ac_objext
19049 if { (ac_try="$ac_compile"
19050 case "(($ac_try" in
19051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19052 *) ac_try_echo=$ac_try;;
19054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19055 (eval "$ac_compile") 2>conftest.er1
19057 grep -v '^ *+' conftest.er1 >conftest.err
19059 cat conftest.err >&5
19060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061 (exit $ac_status); } && {
19062 test -z "$ac_c_werror_flag" ||
19063 test ! -s conftest.err
19064 } && test -s conftest.$ac_objext; then
19065 gt_cv_c_wchar_t=yes
19067 echo "$as_me: failed program was:" >&5
19068 sed 's/^/| /' conftest.$ac_ext >&5
19073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19075 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19076 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
19077 if test $gt_cv_c_wchar_t = yes; then
19079 cat >>confdefs.h <<\_ACEOF
19080 #define HAVE_WCHAR_T 1
19086 { echo "$as_me:$LINENO: checking for wint_t" >&5
19087 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
19088 if test "${gt_cv_c_wint_t+set}" = set; then
19089 echo $ECHO_N "(cached) $ECHO_C" >&6
19091 cat >conftest.$ac_ext <<_ACEOF
19094 cat confdefs.h >>conftest.$ac_ext
19095 cat >>conftest.$ac_ext <<_ACEOF
19096 /* end confdefs.h. */
19098 wint_t foo = (wchar_t)'\0';
19107 rm -f conftest.$ac_objext
19108 if { (ac_try="$ac_compile"
19109 case "(($ac_try" in
19110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19111 *) ac_try_echo=$ac_try;;
19113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19114 (eval "$ac_compile") 2>conftest.er1
19116 grep -v '^ *+' conftest.er1 >conftest.err
19118 cat conftest.err >&5
19119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19120 (exit $ac_status); } && {
19121 test -z "$ac_c_werror_flag" ||
19122 test ! -s conftest.err
19123 } && test -s conftest.$ac_objext; then
19126 echo "$as_me: failed program was:" >&5
19127 sed 's/^/| /' conftest.$ac_ext >&5
19132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19134 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19135 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
19136 if test $gt_cv_c_wint_t = yes; then
19138 cat >>confdefs.h <<\_ACEOF
19139 #define HAVE_WINT_T 1
19145 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
19146 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
19147 if test "${gl_cv_header_inttypes_h+set}" = set; then
19148 echo $ECHO_N "(cached) $ECHO_C" >&6
19150 cat >conftest.$ac_ext <<_ACEOF
19153 cat confdefs.h >>conftest.$ac_ext
19154 cat >>conftest.$ac_ext <<_ACEOF
19155 /* end confdefs.h. */
19156 #include <sys/types.h>
19157 #include <inttypes.h>
19161 uintmax_t i = (uintmax_t) -1;
19166 rm -f conftest.$ac_objext
19167 if { (ac_try="$ac_compile"
19168 case "(($ac_try" in
19169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19170 *) ac_try_echo=$ac_try;;
19172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19173 (eval "$ac_compile") 2>conftest.er1
19175 grep -v '^ *+' conftest.er1 >conftest.err
19177 cat conftest.err >&5
19178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19179 (exit $ac_status); } && {
19180 test -z "$ac_c_werror_flag" ||
19181 test ! -s conftest.err
19182 } && test -s conftest.$ac_objext; then
19183 gl_cv_header_inttypes_h=yes
19185 echo "$as_me: failed program was:" >&5
19186 sed 's/^/| /' conftest.$ac_ext >&5
19188 gl_cv_header_inttypes_h=no
19191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19193 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19194 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
19195 if test $gl_cv_header_inttypes_h = yes; then
19197 cat >>confdefs.h <<_ACEOF
19198 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19204 { echo "$as_me:$LINENO: checking for stdint.h" >&5
19205 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19206 if test "${gl_cv_header_stdint_h+set}" = set; then
19207 echo $ECHO_N "(cached) $ECHO_C" >&6
19209 cat >conftest.$ac_ext <<_ACEOF
19212 cat confdefs.h >>conftest.$ac_ext
19213 cat >>conftest.$ac_ext <<_ACEOF
19214 /* end confdefs.h. */
19215 #include <sys/types.h>
19216 #include <stdint.h>
19220 uintmax_t i = (uintmax_t) -1;
19225 rm -f conftest.$ac_objext
19226 if { (ac_try="$ac_compile"
19227 case "(($ac_try" in
19228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19229 *) ac_try_echo=$ac_try;;
19231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19232 (eval "$ac_compile") 2>conftest.er1
19234 grep -v '^ *+' conftest.er1 >conftest.err
19236 cat conftest.err >&5
19237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); } && {
19239 test -z "$ac_c_werror_flag" ||
19240 test ! -s conftest.err
19241 } && test -s conftest.$ac_objext; then
19242 gl_cv_header_stdint_h=yes
19244 echo "$as_me: failed program was:" >&5
19245 sed 's/^/| /' conftest.$ac_ext >&5
19247 gl_cv_header_stdint_h=no
19250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19252 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19253 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
19254 if test $gl_cv_header_stdint_h = yes; then
19256 cat >>confdefs.h <<_ACEOF
19257 #define HAVE_STDINT_H_WITH_UINTMAX 1
19265 { echo "$as_me:$LINENO: checking for intmax_t" >&5
19266 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
19267 if test "${gt_cv_c_intmax_t+set}" = set; then
19268 echo $ECHO_N "(cached) $ECHO_C" >&6
19270 cat >conftest.$ac_ext <<_ACEOF
19273 cat confdefs.h >>conftest.$ac_ext
19274 cat >>conftest.$ac_ext <<_ACEOF
19275 /* end confdefs.h. */
19277 #include <stddef.h>
19278 #include <stdlib.h>
19279 #if HAVE_STDINT_H_WITH_UINTMAX
19280 #include <stdint.h>
19282 #if HAVE_INTTYPES_H_WITH_UINTMAX
19283 #include <inttypes.h>
19294 rm -f conftest.$ac_objext
19295 if { (ac_try="$ac_compile"
19296 case "(($ac_try" in
19297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19298 *) ac_try_echo=$ac_try;;
19300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19301 (eval "$ac_compile") 2>conftest.er1
19303 grep -v '^ *+' conftest.er1 >conftest.err
19305 cat conftest.err >&5
19306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307 (exit $ac_status); } && {
19308 test -z "$ac_c_werror_flag" ||
19309 test ! -s conftest.err
19310 } && test -s conftest.$ac_objext; then
19311 gt_cv_c_intmax_t=yes
19313 echo "$as_me: failed program was:" >&5
19314 sed 's/^/| /' conftest.$ac_ext >&5
19316 gt_cv_c_intmax_t=no
19319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19321 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19322 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
19323 if test $gt_cv_c_intmax_t = yes; then
19325 cat >>confdefs.h <<\_ACEOF
19326 #define HAVE_INTMAX_T 1
19333 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19334 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
19335 if test "${gt_cv_func_printf_posix+set}" = set; then
19336 echo $ECHO_N "(cached) $ECHO_C" >&6
19339 if test "$cross_compiling" = yes; then
19341 cat >conftest.$ac_ext <<_ACEOF
19344 cat confdefs.h >>conftest.$ac_ext
19345 cat >>conftest.$ac_ext <<_ACEOF
19346 /* end confdefs.h. */
19348 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19354 $EGREP "notposix" >/dev/null 2>&1; then
19355 gt_cv_func_printf_posix="guessing no"
19357 gt_cv_func_printf_posix="guessing yes"
19363 cat >conftest.$ac_ext <<_ACEOF
19366 cat confdefs.h >>conftest.$ac_ext
19367 cat >>conftest.$ac_ext <<_ACEOF
19368 /* end confdefs.h. */
19371 #include <string.h>
19372 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19373 dollar expansion (possibly an autoconf bug). */
19374 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19375 static char buf[100];
19378 sprintf (buf, format, 33, 55);
19379 return (strcmp (buf, "55 33") != 0);
19382 rm -f conftest$ac_exeext
19383 if { (ac_try="$ac_link"
19384 case "(($ac_try" in
19385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19386 *) ac_try_echo=$ac_try;;
19388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19389 (eval "$ac_link") 2>&5
19391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19393 { (case "(($ac_try" in
19394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19395 *) ac_try_echo=$ac_try;;
19397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19398 (eval "$ac_try") 2>&5
19400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401 (exit $ac_status); }; }; then
19402 gt_cv_func_printf_posix=yes
19404 echo "$as_me: program exited with status $ac_status" >&5
19405 echo "$as_me: failed program was:" >&5
19406 sed 's/^/| /' conftest.$ac_ext >&5
19408 ( exit $ac_status )
19409 gt_cv_func_printf_posix=no
19411 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19417 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19418 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
19419 case $gt_cv_func_printf_posix in
19422 cat >>confdefs.h <<\_ACEOF
19423 #define HAVE_POSIX_PRINTF 1
19429 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19430 # for constant arguments. Useless!
19431 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19432 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19433 if test "${ac_cv_working_alloca_h+set}" = set; then
19434 echo $ECHO_N "(cached) $ECHO_C" >&6
19436 cat >conftest.$ac_ext <<_ACEOF
19439 cat confdefs.h >>conftest.$ac_ext
19440 cat >>conftest.$ac_ext <<_ACEOF
19441 /* end confdefs.h. */
19442 #include <alloca.h>
19446 char *p = (char *) alloca (2 * sizeof (int));
19452 rm -f conftest.$ac_objext conftest$ac_exeext
19453 if { (ac_try="$ac_link"
19454 case "(($ac_try" in
19455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19456 *) ac_try_echo=$ac_try;;
19458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19459 (eval "$ac_link") 2>conftest.er1
19461 grep -v '^ *+' conftest.er1 >conftest.err
19463 cat conftest.err >&5
19464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465 (exit $ac_status); } && {
19466 test -z "$ac_c_werror_flag" ||
19467 test ! -s conftest.err
19468 } && test -s conftest$ac_exeext &&
19469 $as_test_x conftest$ac_exeext; then
19470 ac_cv_working_alloca_h=yes
19472 echo "$as_me: failed program was:" >&5
19473 sed 's/^/| /' conftest.$ac_ext >&5
19475 ac_cv_working_alloca_h=no
19478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19479 conftest$ac_exeext conftest.$ac_ext
19481 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19482 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19483 if test $ac_cv_working_alloca_h = yes; then
19485 cat >>confdefs.h <<\_ACEOF
19486 #define HAVE_ALLOCA_H 1
19491 { echo "$as_me:$LINENO: checking for alloca" >&5
19492 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19493 if test "${ac_cv_func_alloca_works+set}" = set; then
19494 echo $ECHO_N "(cached) $ECHO_C" >&6
19496 cat >conftest.$ac_ext <<_ACEOF
19499 cat confdefs.h >>conftest.$ac_ext
19500 cat >>conftest.$ac_ext <<_ACEOF
19501 /* end confdefs.h. */
19503 # define alloca __builtin_alloca
19506 # include <malloc.h>
19507 # define alloca _alloca
19509 # ifdef HAVE_ALLOCA_H
19510 # include <alloca.h>
19515 # ifndef alloca /* predefined by HP cc +Olibcalls */
19526 char *p = (char *) alloca (1);
19532 rm -f conftest.$ac_objext conftest$ac_exeext
19533 if { (ac_try="$ac_link"
19534 case "(($ac_try" in
19535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19536 *) ac_try_echo=$ac_try;;
19538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19539 (eval "$ac_link") 2>conftest.er1
19541 grep -v '^ *+' conftest.er1 >conftest.err
19543 cat conftest.err >&5
19544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545 (exit $ac_status); } && {
19546 test -z "$ac_c_werror_flag" ||
19547 test ! -s conftest.err
19548 } && test -s conftest$ac_exeext &&
19549 $as_test_x conftest$ac_exeext; then
19550 ac_cv_func_alloca_works=yes
19552 echo "$as_me: failed program was:" >&5
19553 sed 's/^/| /' conftest.$ac_ext >&5
19555 ac_cv_func_alloca_works=no
19558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19559 conftest$ac_exeext conftest.$ac_ext
19561 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19562 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19564 if test $ac_cv_func_alloca_works = yes; then
19566 cat >>confdefs.h <<\_ACEOF
19567 #define HAVE_ALLOCA 1
19571 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19572 # that cause trouble. Some versions do not even contain alloca or
19573 # contain a buggy version. If you still want to use their alloca,
19574 # use ar to extract alloca.o from them instead of compiling alloca.c.
19576 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19578 cat >>confdefs.h <<\_ACEOF
19583 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19584 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19585 if test "${ac_cv_os_cray+set}" = set; then
19586 echo $ECHO_N "(cached) $ECHO_C" >&6
19588 cat >conftest.$ac_ext <<_ACEOF
19591 cat confdefs.h >>conftest.$ac_ext
19592 cat >>conftest.$ac_ext <<_ACEOF
19593 /* end confdefs.h. */
19594 #if defined CRAY && ! defined CRAY2
19601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19602 $EGREP "webecray" >/dev/null 2>&1; then
19610 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19611 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19612 if test $ac_cv_os_cray = yes; then
19613 for ac_func in _getb67 GETB67 getb67; do
19614 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19615 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19616 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19617 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19618 echo $ECHO_N "(cached) $ECHO_C" >&6
19620 cat >conftest.$ac_ext <<_ACEOF
19623 cat confdefs.h >>conftest.$ac_ext
19624 cat >>conftest.$ac_ext <<_ACEOF
19625 /* end confdefs.h. */
19626 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19627 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19628 #define $ac_func innocuous_$ac_func
19630 /* System header to define __stub macros and hopefully few prototypes,
19631 which can conflict with char $ac_func (); below.
19632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19633 <limits.h> exists even on freestanding compilers. */
19636 # include <limits.h>
19638 # include <assert.h>
19643 /* Override any GCC internal prototype to avoid an error.
19644 Use char because int might match the return type of a GCC
19645 builtin and then its argument prototype would still apply. */
19650 /* The GNU C library defines this for functions which it implements
19651 to always fail with ENOSYS. Some functions are actually named
19652 something starting with __ and the normal name is an alias. */
19653 #if defined __stub_$ac_func || defined __stub___$ac_func
19660 return $ac_func ();
19665 rm -f conftest.$ac_objext conftest$ac_exeext
19666 if { (ac_try="$ac_link"
19667 case "(($ac_try" in
19668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19669 *) ac_try_echo=$ac_try;;
19671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19672 (eval "$ac_link") 2>conftest.er1
19674 grep -v '^ *+' conftest.er1 >conftest.err
19676 cat conftest.err >&5
19677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678 (exit $ac_status); } && {
19679 test -z "$ac_c_werror_flag" ||
19680 test ! -s conftest.err
19681 } && test -s conftest$ac_exeext &&
19682 $as_test_x conftest$ac_exeext; then
19683 eval "$as_ac_var=yes"
19685 echo "$as_me: failed program was:" >&5
19686 sed 's/^/| /' conftest.$ac_ext >&5
19688 eval "$as_ac_var=no"
19691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19692 conftest$ac_exeext conftest.$ac_ext
19694 ac_res=`eval echo '${'$as_ac_var'}'`
19695 { echo "$as_me:$LINENO: result: $ac_res" >&5
19696 echo "${ECHO_T}$ac_res" >&6; }
19697 if test `eval echo '${'$as_ac_var'}'` = yes; then
19699 cat >>confdefs.h <<_ACEOF
19700 #define CRAY_STACKSEG_END $ac_func
19709 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19710 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19711 if test "${ac_cv_c_stack_direction+set}" = set; then
19712 echo $ECHO_N "(cached) $ECHO_C" >&6
19714 if test "$cross_compiling" = yes; then
19715 ac_cv_c_stack_direction=0
19717 cat >conftest.$ac_ext <<_ACEOF
19720 cat confdefs.h >>conftest.$ac_ext
19721 cat >>conftest.$ac_ext <<_ACEOF
19722 /* end confdefs.h. */
19723 $ac_includes_default
19725 find_stack_direction ()
19727 static char *addr = 0;
19732 return find_stack_direction ();
19735 return (&dummy > addr) ? 1 : -1;
19741 return find_stack_direction () < 0;
19744 rm -f conftest$ac_exeext
19745 if { (ac_try="$ac_link"
19746 case "(($ac_try" in
19747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19748 *) ac_try_echo=$ac_try;;
19750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19751 (eval "$ac_link") 2>&5
19753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19755 { (case "(($ac_try" in
19756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19757 *) ac_try_echo=$ac_try;;
19759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19760 (eval "$ac_try") 2>&5
19762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19763 (exit $ac_status); }; }; then
19764 ac_cv_c_stack_direction=1
19766 echo "$as_me: program exited with status $ac_status" >&5
19767 echo "$as_me: failed program was:" >&5
19768 sed 's/^/| /' conftest.$ac_ext >&5
19770 ( exit $ac_status )
19771 ac_cv_c_stack_direction=-1
19773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19778 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19779 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19781 cat >>confdefs.h <<_ACEOF
19782 #define STACK_DIRECTION $ac_cv_c_stack_direction
19790 for ac_header in stdlib.h unistd.h
19792 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19794 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19797 echo $ECHO_N "(cached) $ECHO_C" >&6
19799 ac_res=`eval echo '${'$as_ac_Header'}'`
19800 { echo "$as_me:$LINENO: result: $ac_res" >&5
19801 echo "${ECHO_T}$ac_res" >&6; }
19803 # Is the header compilable?
19804 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19805 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19806 cat >conftest.$ac_ext <<_ACEOF
19809 cat confdefs.h >>conftest.$ac_ext
19810 cat >>conftest.$ac_ext <<_ACEOF
19811 /* end confdefs.h. */
19812 $ac_includes_default
19813 #include <$ac_header>
19815 rm -f conftest.$ac_objext
19816 if { (ac_try="$ac_compile"
19817 case "(($ac_try" in
19818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19819 *) ac_try_echo=$ac_try;;
19821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19822 (eval "$ac_compile") 2>conftest.er1
19824 grep -v '^ *+' conftest.er1 >conftest.err
19826 cat conftest.err >&5
19827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19828 (exit $ac_status); } && {
19829 test -z "$ac_c_werror_flag" ||
19830 test ! -s conftest.err
19831 } && test -s conftest.$ac_objext; then
19832 ac_header_compiler=yes
19834 echo "$as_me: failed program was:" >&5
19835 sed 's/^/| /' conftest.$ac_ext >&5
19837 ac_header_compiler=no
19840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19841 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19842 echo "${ECHO_T}$ac_header_compiler" >&6; }
19844 # Is the header present?
19845 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19846 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19847 cat >conftest.$ac_ext <<_ACEOF
19850 cat confdefs.h >>conftest.$ac_ext
19851 cat >>conftest.$ac_ext <<_ACEOF
19852 /* end confdefs.h. */
19853 #include <$ac_header>
19855 if { (ac_try="$ac_cpp conftest.$ac_ext"
19856 case "(($ac_try" in
19857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19858 *) ac_try_echo=$ac_try;;
19860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19861 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19863 grep -v '^ *+' conftest.er1 >conftest.err
19865 cat conftest.err >&5
19866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867 (exit $ac_status); } >/dev/null && {
19868 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19869 test ! -s conftest.err
19871 ac_header_preproc=yes
19873 echo "$as_me: failed program was:" >&5
19874 sed 's/^/| /' conftest.$ac_ext >&5
19876 ac_header_preproc=no
19879 rm -f conftest.err conftest.$ac_ext
19880 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19881 echo "${ECHO_T}$ac_header_preproc" >&6; }
19883 # So? What about this header?
19884 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19886 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19887 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19889 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19890 ac_header_preproc=yes
19893 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19894 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19895 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19896 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19897 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19898 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19899 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19900 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19902 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19903 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19904 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19908 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19911 echo $ECHO_N "(cached) $ECHO_C" >&6
19913 eval "$as_ac_Header=\$ac_header_preproc"
19915 ac_res=`eval echo '${'$as_ac_Header'}'`
19916 { echo "$as_me:$LINENO: result: $ac_res" >&5
19917 echo "${ECHO_T}$ac_res" >&6; }
19920 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19921 cat >>confdefs.h <<_ACEOF
19922 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19930 for ac_func in getpagesize
19932 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19933 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19934 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19935 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19936 echo $ECHO_N "(cached) $ECHO_C" >&6
19938 cat >conftest.$ac_ext <<_ACEOF
19941 cat confdefs.h >>conftest.$ac_ext
19942 cat >>conftest.$ac_ext <<_ACEOF
19943 /* end confdefs.h. */
19944 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19946 #define $ac_func innocuous_$ac_func
19948 /* System header to define __stub macros and hopefully few prototypes,
19949 which can conflict with char $ac_func (); below.
19950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19951 <limits.h> exists even on freestanding compilers. */
19954 # include <limits.h>
19956 # include <assert.h>
19961 /* Override any GCC internal prototype to avoid an error.
19962 Use char because int might match the return type of a GCC
19963 builtin and then its argument prototype would still apply. */
19968 /* The GNU C library defines this for functions which it implements
19969 to always fail with ENOSYS. Some functions are actually named
19970 something starting with __ and the normal name is an alias. */
19971 #if defined __stub_$ac_func || defined __stub___$ac_func
19978 return $ac_func ();
19983 rm -f conftest.$ac_objext conftest$ac_exeext
19984 if { (ac_try="$ac_link"
19985 case "(($ac_try" in
19986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19987 *) ac_try_echo=$ac_try;;
19989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19990 (eval "$ac_link") 2>conftest.er1
19992 grep -v '^ *+' conftest.er1 >conftest.err
19994 cat conftest.err >&5
19995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996 (exit $ac_status); } && {
19997 test -z "$ac_c_werror_flag" ||
19998 test ! -s conftest.err
19999 } && test -s conftest$ac_exeext &&
20000 $as_test_x conftest$ac_exeext; then
20001 eval "$as_ac_var=yes"
20003 echo "$as_me: failed program was:" >&5
20004 sed 's/^/| /' conftest.$ac_ext >&5
20006 eval "$as_ac_var=no"
20009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20010 conftest$ac_exeext conftest.$ac_ext
20012 ac_res=`eval echo '${'$as_ac_var'}'`
20013 { echo "$as_me:$LINENO: result: $ac_res" >&5
20014 echo "${ECHO_T}$ac_res" >&6; }
20015 if test `eval echo '${'$as_ac_var'}'` = yes; then
20016 cat >>confdefs.h <<_ACEOF
20017 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20023 { echo "$as_me:$LINENO: checking for working mmap" >&5
20024 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20025 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20026 echo $ECHO_N "(cached) $ECHO_C" >&6
20028 if test "$cross_compiling" = yes; then
20029 ac_cv_func_mmap_fixed_mapped=no
20031 cat >conftest.$ac_ext <<_ACEOF
20034 cat confdefs.h >>conftest.$ac_ext
20035 cat >>conftest.$ac_ext <<_ACEOF
20036 /* end confdefs.h. */
20037 $ac_includes_default
20038 /* malloc might have been renamed as rpl_malloc. */
20041 /* Thanks to Mike Haertel and Jim Avera for this test.
20042 Here is a matrix of mmap possibilities:
20043 mmap private not fixed
20044 mmap private fixed at somewhere currently unmapped
20045 mmap private fixed at somewhere already mapped
20046 mmap shared not fixed
20047 mmap shared fixed at somewhere currently unmapped
20048 mmap shared fixed at somewhere already mapped
20049 For private mappings, we should verify that changes cannot be read()
20050 back from the file, nor mmap's back from the file at a different
20051 address. (There have been systems where private was not correctly
20052 implemented like the infamous i386 svr4.0, and systems where the
20053 VM page cache was not coherent with the file system buffer cache
20054 like early versions of FreeBSD and possibly contemporary NetBSD.)
20055 For shared mappings, we should conversely verify that changes get
20056 propagated back to all the places they're supposed to be.
20058 Grep wants private fixed already mapped.
20059 The main things grep needs to know about mmap are:
20060 * does it exist and is it safe to write into the mmap'd area
20061 * how to use it (BSD variants) */
20064 #include <sys/mman.h>
20066 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20070 /* This mess was copied from the GNU getpagesize.h. */
20071 #ifndef HAVE_GETPAGESIZE
20072 /* Assume that all systems that can run configure have sys/param.h. */
20073 # ifndef HAVE_SYS_PARAM_H
20074 # define HAVE_SYS_PARAM_H 1
20077 # ifdef _SC_PAGESIZE
20078 # define getpagesize() sysconf(_SC_PAGESIZE)
20079 # else /* no _SC_PAGESIZE */
20080 # ifdef HAVE_SYS_PARAM_H
20081 # include <sys/param.h>
20082 # ifdef EXEC_PAGESIZE
20083 # define getpagesize() EXEC_PAGESIZE
20084 # else /* no EXEC_PAGESIZE */
20086 # define getpagesize() NBPG * CLSIZE
20089 # endif /* no CLSIZE */
20090 # else /* no NBPG */
20092 # define getpagesize() NBPC
20093 # else /* no NBPC */
20095 # define getpagesize() PAGESIZE
20096 # endif /* PAGESIZE */
20097 # endif /* no NBPC */
20098 # endif /* no NBPG */
20099 # endif /* no EXEC_PAGESIZE */
20100 # else /* no HAVE_SYS_PARAM_H */
20101 # define getpagesize() 8192 /* punt totally */
20102 # endif /* no HAVE_SYS_PARAM_H */
20103 # endif /* no _SC_PAGESIZE */
20105 #endif /* no HAVE_GETPAGESIZE */
20110 char *data, *data2, *data3;
20114 pagesize = getpagesize ();
20116 /* First, make a file with some known garbage in it. */
20117 data = (char *) malloc (pagesize);
20120 for (i = 0; i < pagesize; ++i)
20121 *(data + i) = rand ();
20123 fd = creat ("conftest.mmap", 0600);
20126 if (write (fd, data, pagesize) != pagesize)
20130 /* Next, try to mmap the file at a fixed address which already has
20131 something else allocated at it. If we can, also make sure that
20132 we see the same garbage. */
20133 fd = open ("conftest.mmap", O_RDWR);
20136 data2 = (char *) malloc (2 * pagesize);
20139 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20140 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20141 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20143 for (i = 0; i < pagesize; ++i)
20144 if (*(data + i) != *(data2 + i))
20147 /* Finally, make sure that changes to the mapped area do not
20148 percolate back to the file as seen by read(). (This is a bug on
20149 some variants of i386 svr4.0.) */
20150 for (i = 0; i < pagesize; ++i)
20151 *(data2 + i) = *(data2 + i) + 1;
20152 data3 = (char *) malloc (pagesize);
20155 if (read (fd, data3, pagesize) != pagesize)
20157 for (i = 0; i < pagesize; ++i)
20158 if (*(data + i) != *(data3 + i))
20164 rm -f conftest$ac_exeext
20165 if { (ac_try="$ac_link"
20166 case "(($ac_try" in
20167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20168 *) ac_try_echo=$ac_try;;
20170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20171 (eval "$ac_link") 2>&5
20173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20175 { (case "(($ac_try" in
20176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20177 *) ac_try_echo=$ac_try;;
20179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20180 (eval "$ac_try") 2>&5
20182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183 (exit $ac_status); }; }; then
20184 ac_cv_func_mmap_fixed_mapped=yes
20186 echo "$as_me: program exited with status $ac_status" >&5
20187 echo "$as_me: failed program was:" >&5
20188 sed 's/^/| /' conftest.$ac_ext >&5
20190 ( exit $ac_status )
20191 ac_cv_func_mmap_fixed_mapped=no
20193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20198 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20199 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20200 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20202 cat >>confdefs.h <<\_ACEOF
20203 #define HAVE_MMAP 1
20207 rm -f conftest.mmap
20210 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20211 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
20212 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20213 echo $ECHO_N "(cached) $ECHO_C" >&6
20215 cat >conftest.$ac_ext <<_ACEOF
20218 cat confdefs.h >>conftest.$ac_ext
20219 cat >>conftest.$ac_ext <<_ACEOF
20220 /* end confdefs.h. */
20222 #include <features.h>
20223 #ifdef __GNU_LIBRARY__
20224 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20231 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20232 ac_cv_gnu_library_2_1=yes
20234 ac_cv_gnu_library_2_1=no
20241 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20242 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
20244 GLIBC21="$ac_cv_gnu_library_2_1"
20249 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20250 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
20251 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20252 echo $ECHO_N "(cached) $ECHO_C" >&6
20255 if test "$cross_compiling" = yes; then
20257 # Guess based on the CPU.
20258 case "$host_cpu" in
20259 alpha* | i3456786 | m68k | s390*)
20260 gt_cv_int_divbyzero_sigfpe="guessing yes";;
20262 gt_cv_int_divbyzero_sigfpe="guessing no";;
20266 cat >conftest.$ac_ext <<_ACEOF
20269 cat confdefs.h >>conftest.$ac_ext
20270 cat >>conftest.$ac_ext <<_ACEOF
20271 /* end confdefs.h. */
20273 #include <stdlib.h>
20274 #include <signal.h>
20278 sigfpe_handler (int sig)
20280 sigfpe_handler (sig) int sig;
20283 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
20284 exit (sig != SIGFPE);
20294 signal (SIGFPE, sigfpe_handler);
20295 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
20296 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20297 signal (SIGTRAP, sigfpe_handler);
20299 /* Linux/SPARC yields signal SIGILL. */
20300 #if defined (__sparc__) && defined (__linux__)
20301 signal (SIGILL, sigfpe_handler);
20310 rm -f conftest$ac_exeext
20311 if { (ac_try="$ac_link"
20312 case "(($ac_try" in
20313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20314 *) ac_try_echo=$ac_try;;
20316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20317 (eval "$ac_link") 2>&5
20319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20321 { (case "(($ac_try" in
20322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20323 *) ac_try_echo=$ac_try;;
20325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20326 (eval "$ac_try") 2>&5
20328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329 (exit $ac_status); }; }; then
20330 gt_cv_int_divbyzero_sigfpe=yes
20332 echo "$as_me: program exited with status $ac_status" >&5
20333 echo "$as_me: failed program was:" >&5
20334 sed 's/^/| /' conftest.$ac_ext >&5
20336 ( exit $ac_status )
20337 gt_cv_int_divbyzero_sigfpe=no
20339 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20345 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20346 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
20347 case "$gt_cv_int_divbyzero_sigfpe" in
20352 cat >>confdefs.h <<_ACEOF
20353 #define INTDIV0_RAISES_SIGFPE $value
20358 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20359 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20360 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20361 echo $ECHO_N "(cached) $ECHO_C" >&6
20363 cat >conftest.$ac_ext <<_ACEOF
20366 cat confdefs.h >>conftest.$ac_ext
20367 cat >>conftest.$ac_ext <<_ACEOF
20368 /* end confdefs.h. */
20369 unsigned long long ull = 1ULL; int i = 63;
20373 unsigned long long ullmax = (unsigned long long) -1;
20374 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20379 rm -f conftest.$ac_objext conftest$ac_exeext
20380 if { (ac_try="$ac_link"
20381 case "(($ac_try" in
20382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20383 *) ac_try_echo=$ac_try;;
20385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20386 (eval "$ac_link") 2>conftest.er1
20388 grep -v '^ *+' conftest.er1 >conftest.err
20390 cat conftest.err >&5
20391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20392 (exit $ac_status); } && {
20393 test -z "$ac_c_werror_flag" ||
20394 test ! -s conftest.err
20395 } && test -s conftest$ac_exeext &&
20396 $as_test_x conftest$ac_exeext; then
20397 ac_cv_type_unsigned_long_long=yes
20399 echo "$as_me: failed program was:" >&5
20400 sed 's/^/| /' conftest.$ac_ext >&5
20402 ac_cv_type_unsigned_long_long=no
20405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20406 conftest$ac_exeext conftest.$ac_ext
20408 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20409 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20410 if test $ac_cv_type_unsigned_long_long = yes; then
20412 cat >>confdefs.h <<\_ACEOF
20413 #define HAVE_UNSIGNED_LONG_LONG 1
20421 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20423 test $ac_cv_type_unsigned_long_long = yes \
20424 && ac_type='unsigned long long' \
20425 || ac_type='unsigned long'
20427 cat >>confdefs.h <<_ACEOF
20428 #define uintmax_t $ac_type
20433 cat >>confdefs.h <<\_ACEOF
20434 #define HAVE_UINTMAX_T 1
20440 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20441 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20442 if test "${gt_cv_header_inttypes_h+set}" = set; then
20443 echo $ECHO_N "(cached) $ECHO_C" >&6
20446 cat >conftest.$ac_ext <<_ACEOF
20449 cat confdefs.h >>conftest.$ac_ext
20450 cat >>conftest.$ac_ext <<_ACEOF
20451 /* end confdefs.h. */
20452 #include <sys/types.h>
20453 #include <inttypes.h>
20462 rm -f conftest.$ac_objext
20463 if { (ac_try="$ac_compile"
20464 case "(($ac_try" in
20465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20466 *) ac_try_echo=$ac_try;;
20468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20469 (eval "$ac_compile") 2>conftest.er1
20471 grep -v '^ *+' conftest.er1 >conftest.err
20473 cat conftest.err >&5
20474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20475 (exit $ac_status); } && {
20476 test -z "$ac_c_werror_flag" ||
20477 test ! -s conftest.err
20478 } && test -s conftest.$ac_objext; then
20479 gt_cv_header_inttypes_h=yes
20481 echo "$as_me: failed program was:" >&5
20482 sed 's/^/| /' conftest.$ac_ext >&5
20484 gt_cv_header_inttypes_h=no
20487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20490 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20491 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
20492 if test $gt_cv_header_inttypes_h = yes; then
20494 cat >>confdefs.h <<_ACEOF
20495 #define HAVE_INTTYPES_H 1
20502 if test $gt_cv_header_inttypes_h = yes; then
20503 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20504 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
20505 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20506 echo $ECHO_N "(cached) $ECHO_C" >&6
20509 cat >conftest.$ac_ext <<_ACEOF
20512 cat confdefs.h >>conftest.$ac_ext
20513 cat >>conftest.$ac_ext <<_ACEOF
20514 /* end confdefs.h. */
20515 #include <inttypes.h>
20528 rm -f conftest.$ac_objext
20529 if { (ac_try="$ac_compile"
20530 case "(($ac_try" in
20531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20532 *) ac_try_echo=$ac_try;;
20534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20535 (eval "$ac_compile") 2>conftest.er1
20537 grep -v '^ *+' conftest.er1 >conftest.err
20539 cat conftest.err >&5
20540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20541 (exit $ac_status); } && {
20542 test -z "$ac_c_werror_flag" ||
20543 test ! -s conftest.err
20544 } && test -s conftest.$ac_objext; then
20545 gt_cv_inttypes_pri_broken=no
20547 echo "$as_me: failed program was:" >&5
20548 sed 's/^/| /' conftest.$ac_ext >&5
20550 gt_cv_inttypes_pri_broken=yes
20553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20556 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
20557 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
20559 if test "$gt_cv_inttypes_pri_broken" = yes; then
20561 cat >>confdefs.h <<_ACEOF
20562 #define PRI_MACROS_BROKEN 1
20569 for ac_header in stdint.h
20571 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20573 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20576 echo $ECHO_N "(cached) $ECHO_C" >&6
20578 ac_res=`eval echo '${'$as_ac_Header'}'`
20579 { echo "$as_me:$LINENO: result: $ac_res" >&5
20580 echo "${ECHO_T}$ac_res" >&6; }
20582 # Is the header compilable?
20583 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20584 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20585 cat >conftest.$ac_ext <<_ACEOF
20588 cat confdefs.h >>conftest.$ac_ext
20589 cat >>conftest.$ac_ext <<_ACEOF
20590 /* end confdefs.h. */
20591 $ac_includes_default
20592 #include <$ac_header>
20594 rm -f conftest.$ac_objext
20595 if { (ac_try="$ac_compile"
20596 case "(($ac_try" in
20597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20598 *) ac_try_echo=$ac_try;;
20600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20601 (eval "$ac_compile") 2>conftest.er1
20603 grep -v '^ *+' conftest.er1 >conftest.err
20605 cat conftest.err >&5
20606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20607 (exit $ac_status); } && {
20608 test -z "$ac_c_werror_flag" ||
20609 test ! -s conftest.err
20610 } && test -s conftest.$ac_objext; then
20611 ac_header_compiler=yes
20613 echo "$as_me: failed program was:" >&5
20614 sed 's/^/| /' conftest.$ac_ext >&5
20616 ac_header_compiler=no
20619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20620 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20621 echo "${ECHO_T}$ac_header_compiler" >&6; }
20623 # Is the header present?
20624 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20625 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20626 cat >conftest.$ac_ext <<_ACEOF
20629 cat confdefs.h >>conftest.$ac_ext
20630 cat >>conftest.$ac_ext <<_ACEOF
20631 /* end confdefs.h. */
20632 #include <$ac_header>
20634 if { (ac_try="$ac_cpp conftest.$ac_ext"
20635 case "(($ac_try" in
20636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20637 *) ac_try_echo=$ac_try;;
20639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20640 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20642 grep -v '^ *+' conftest.er1 >conftest.err
20644 cat conftest.err >&5
20645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20646 (exit $ac_status); } >/dev/null && {
20647 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20648 test ! -s conftest.err
20650 ac_header_preproc=yes
20652 echo "$as_me: failed program was:" >&5
20653 sed 's/^/| /' conftest.$ac_ext >&5
20655 ac_header_preproc=no
20658 rm -f conftest.err conftest.$ac_ext
20659 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20660 echo "${ECHO_T}$ac_header_preproc" >&6; }
20662 # So? What about this header?
20663 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20665 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20666 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20667 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20668 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20669 ac_header_preproc=yes
20672 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20673 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20674 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20675 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20676 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20677 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20678 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20679 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20681 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20682 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20683 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20687 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20690 echo $ECHO_N "(cached) $ECHO_C" >&6
20692 eval "$as_ac_Header=\$ac_header_preproc"
20694 ac_res=`eval echo '${'$as_ac_Header'}'`
20695 { echo "$as_me:$LINENO: result: $ac_res" >&5
20696 echo "${ECHO_T}$ac_res" >&6; }
20699 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20700 cat >>confdefs.h <<_ACEOF
20701 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20708 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
20709 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
20711 cat >conftest.$ac_ext <<_ACEOF
20714 cat confdefs.h >>conftest.$ac_ext
20715 cat >>conftest.$ac_ext <<_ACEOF
20716 /* end confdefs.h. */
20718 #include <limits.h>
20720 #include <stdint.h>
20727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20728 $EGREP "Found it" >/dev/null 2>&1; then
20733 if test -z "$result"; then
20734 if test "$cross_compiling" = yes; then
20735 # Depending upon the size, compute the lo and hi bounds.
20736 cat >conftest.$ac_ext <<_ACEOF
20739 cat confdefs.h >>conftest.$ac_ext
20740 cat >>conftest.$ac_ext <<_ACEOF
20741 /* end confdefs.h. */
20742 #include <stddef.h>
20746 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
20753 rm -f conftest.$ac_objext
20754 if { (ac_try="$ac_compile"
20755 case "(($ac_try" in
20756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20757 *) ac_try_echo=$ac_try;;
20759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20760 (eval "$ac_compile") 2>conftest.er1
20762 grep -v '^ *+' conftest.er1 >conftest.err
20764 cat conftest.err >&5
20765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20766 (exit $ac_status); } && {
20767 test -z "$ac_c_werror_flag" ||
20768 test ! -s conftest.err
20769 } && test -s conftest.$ac_objext; then
20772 cat >conftest.$ac_ext <<_ACEOF
20775 cat confdefs.h >>conftest.$ac_ext
20776 cat >>conftest.$ac_ext <<_ACEOF
20777 /* end confdefs.h. */
20778 #include <stddef.h>
20782 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20789 rm -f conftest.$ac_objext
20790 if { (ac_try="$ac_compile"
20791 case "(($ac_try" in
20792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20793 *) ac_try_echo=$ac_try;;
20795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20796 (eval "$ac_compile") 2>conftest.er1
20798 grep -v '^ *+' conftest.er1 >conftest.err
20800 cat conftest.err >&5
20801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20802 (exit $ac_status); } && {
20803 test -z "$ac_c_werror_flag" ||
20804 test ! -s conftest.err
20805 } && test -s conftest.$ac_objext; then
20806 ac_hi=$ac_mid; break
20808 echo "$as_me: failed program was:" >&5
20809 sed 's/^/| /' conftest.$ac_ext >&5
20811 ac_lo=`expr $ac_mid + 1`
20812 if test $ac_lo -le $ac_mid; then
20816 ac_mid=`expr 2 '*' $ac_mid + 1`
20819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20822 echo "$as_me: failed program was:" >&5
20823 sed 's/^/| /' conftest.$ac_ext >&5
20825 cat >conftest.$ac_ext <<_ACEOF
20828 cat confdefs.h >>conftest.$ac_ext
20829 cat >>conftest.$ac_ext <<_ACEOF
20830 /* end confdefs.h. */
20831 #include <stddef.h>
20835 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
20842 rm -f conftest.$ac_objext
20843 if { (ac_try="$ac_compile"
20844 case "(($ac_try" in
20845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20846 *) ac_try_echo=$ac_try;;
20848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20849 (eval "$ac_compile") 2>conftest.er1
20851 grep -v '^ *+' conftest.er1 >conftest.err
20853 cat conftest.err >&5
20854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855 (exit $ac_status); } && {
20856 test -z "$ac_c_werror_flag" ||
20857 test ! -s conftest.err
20858 } && test -s conftest.$ac_objext; then
20861 cat >conftest.$ac_ext <<_ACEOF
20864 cat confdefs.h >>conftest.$ac_ext
20865 cat >>conftest.$ac_ext <<_ACEOF
20866 /* end confdefs.h. */
20867 #include <stddef.h>
20871 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
20878 rm -f conftest.$ac_objext
20879 if { (ac_try="$ac_compile"
20880 case "(($ac_try" in
20881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20882 *) ac_try_echo=$ac_try;;
20884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20885 (eval "$ac_compile") 2>conftest.er1
20887 grep -v '^ *+' conftest.er1 >conftest.err
20889 cat conftest.err >&5
20890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20891 (exit $ac_status); } && {
20892 test -z "$ac_c_werror_flag" ||
20893 test ! -s conftest.err
20894 } && test -s conftest.$ac_objext; then
20895 ac_lo=$ac_mid; break
20897 echo "$as_me: failed program was:" >&5
20898 sed 's/^/| /' conftest.$ac_ext >&5
20900 ac_hi=`expr '(' $ac_mid ')' - 1`
20901 if test $ac_mid -le $ac_hi; then
20905 ac_mid=`expr 2 '*' $ac_mid`
20908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20911 echo "$as_me: failed program was:" >&5
20912 sed 's/^/| /' conftest.$ac_ext >&5
20917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20921 # Binary search between lo and hi bounds.
20922 while test "x$ac_lo" != "x$ac_hi"; do
20923 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20924 cat >conftest.$ac_ext <<_ACEOF
20927 cat confdefs.h >>conftest.$ac_ext
20928 cat >>conftest.$ac_ext <<_ACEOF
20929 /* end confdefs.h. */
20930 #include <stddef.h>
20934 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20941 rm -f conftest.$ac_objext
20942 if { (ac_try="$ac_compile"
20943 case "(($ac_try" in
20944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20945 *) ac_try_echo=$ac_try;;
20947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20948 (eval "$ac_compile") 2>conftest.er1
20950 grep -v '^ *+' conftest.er1 >conftest.err
20952 cat conftest.err >&5
20953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20954 (exit $ac_status); } && {
20955 test -z "$ac_c_werror_flag" ||
20956 test ! -s conftest.err
20957 } && test -s conftest.$ac_objext; then
20960 echo "$as_me: failed program was:" >&5
20961 sed 's/^/| /' conftest.$ac_ext >&5
20963 ac_lo=`expr '(' $ac_mid ')' + 1`
20966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20969 ?*) res_hi=$ac_lo;;
20973 cat >conftest.$ac_ext <<_ACEOF
20976 cat confdefs.h >>conftest.$ac_ext
20977 cat >>conftest.$ac_ext <<_ACEOF
20978 /* end confdefs.h. */
20979 #include <stddef.h>
20980 static long int longval () { return ~(size_t)0 / 10; }
20981 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
20983 #include <stdlib.h>
20988 FILE *f = fopen ("conftest.val", "w");
20991 if ((~(size_t)0 / 10) < 0)
20993 long int i = longval ();
20994 if (i != (~(size_t)0 / 10))
20996 fprintf (f, "%ld\n", i);
21000 unsigned long int i = ulongval ();
21001 if (i != (~(size_t)0 / 10))
21003 fprintf (f, "%lu\n", i);
21005 return ferror (f) || fclose (f) != 0;
21011 rm -f conftest$ac_exeext
21012 if { (ac_try="$ac_link"
21013 case "(($ac_try" in
21014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21015 *) ac_try_echo=$ac_try;;
21017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21018 (eval "$ac_link") 2>&5
21020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21022 { (case "(($ac_try" in
21023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21024 *) ac_try_echo=$ac_try;;
21026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21027 (eval "$ac_try") 2>&5
21029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030 (exit $ac_status); }; }; then
21031 res_hi=`cat conftest.val`
21033 echo "$as_me: program exited with status $ac_status" >&5
21034 echo "$as_me: failed program was:" >&5
21035 sed 's/^/| /' conftest.$ac_ext >&5
21037 ( exit $ac_status )
21040 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21044 if test "$cross_compiling" = yes; then
21045 # Depending upon the size, compute the lo and hi bounds.
21046 cat >conftest.$ac_ext <<_ACEOF
21049 cat confdefs.h >>conftest.$ac_ext
21050 cat >>conftest.$ac_ext <<_ACEOF
21051 /* end confdefs.h. */
21052 #include <stddef.h>
21056 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21063 rm -f conftest.$ac_objext
21064 if { (ac_try="$ac_compile"
21065 case "(($ac_try" in
21066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21067 *) ac_try_echo=$ac_try;;
21069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21070 (eval "$ac_compile") 2>conftest.er1
21072 grep -v '^ *+' conftest.er1 >conftest.err
21074 cat conftest.err >&5
21075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21076 (exit $ac_status); } && {
21077 test -z "$ac_c_werror_flag" ||
21078 test ! -s conftest.err
21079 } && test -s conftest.$ac_objext; then
21082 cat >conftest.$ac_ext <<_ACEOF
21085 cat confdefs.h >>conftest.$ac_ext
21086 cat >>conftest.$ac_ext <<_ACEOF
21087 /* end confdefs.h. */
21088 #include <stddef.h>
21092 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21099 rm -f conftest.$ac_objext
21100 if { (ac_try="$ac_compile"
21101 case "(($ac_try" in
21102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21103 *) ac_try_echo=$ac_try;;
21105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21106 (eval "$ac_compile") 2>conftest.er1
21108 grep -v '^ *+' conftest.er1 >conftest.err
21110 cat conftest.err >&5
21111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112 (exit $ac_status); } && {
21113 test -z "$ac_c_werror_flag" ||
21114 test ! -s conftest.err
21115 } && test -s conftest.$ac_objext; then
21116 ac_hi=$ac_mid; break
21118 echo "$as_me: failed program was:" >&5
21119 sed 's/^/| /' conftest.$ac_ext >&5
21121 ac_lo=`expr $ac_mid + 1`
21122 if test $ac_lo -le $ac_mid; then
21126 ac_mid=`expr 2 '*' $ac_mid + 1`
21129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21132 echo "$as_me: failed program was:" >&5
21133 sed 's/^/| /' conftest.$ac_ext >&5
21135 cat >conftest.$ac_ext <<_ACEOF
21138 cat confdefs.h >>conftest.$ac_ext
21139 cat >>conftest.$ac_ext <<_ACEOF
21140 /* end confdefs.h. */
21141 #include <stddef.h>
21145 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21152 rm -f conftest.$ac_objext
21153 if { (ac_try="$ac_compile"
21154 case "(($ac_try" in
21155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21156 *) ac_try_echo=$ac_try;;
21158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21159 (eval "$ac_compile") 2>conftest.er1
21161 grep -v '^ *+' conftest.er1 >conftest.err
21163 cat conftest.err >&5
21164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165 (exit $ac_status); } && {
21166 test -z "$ac_c_werror_flag" ||
21167 test ! -s conftest.err
21168 } && test -s conftest.$ac_objext; then
21171 cat >conftest.$ac_ext <<_ACEOF
21174 cat confdefs.h >>conftest.$ac_ext
21175 cat >>conftest.$ac_ext <<_ACEOF
21176 /* end confdefs.h. */
21177 #include <stddef.h>
21181 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21188 rm -f conftest.$ac_objext
21189 if { (ac_try="$ac_compile"
21190 case "(($ac_try" in
21191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21192 *) ac_try_echo=$ac_try;;
21194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21195 (eval "$ac_compile") 2>conftest.er1
21197 grep -v '^ *+' conftest.er1 >conftest.err
21199 cat conftest.err >&5
21200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201 (exit $ac_status); } && {
21202 test -z "$ac_c_werror_flag" ||
21203 test ! -s conftest.err
21204 } && test -s conftest.$ac_objext; then
21205 ac_lo=$ac_mid; break
21207 echo "$as_me: failed program was:" >&5
21208 sed 's/^/| /' conftest.$ac_ext >&5
21210 ac_hi=`expr '(' $ac_mid ')' - 1`
21211 if test $ac_mid -le $ac_hi; then
21215 ac_mid=`expr 2 '*' $ac_mid`
21218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21221 echo "$as_me: failed program was:" >&5
21222 sed 's/^/| /' conftest.$ac_ext >&5
21227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21231 # Binary search between lo and hi bounds.
21232 while test "x$ac_lo" != "x$ac_hi"; do
21233 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21234 cat >conftest.$ac_ext <<_ACEOF
21237 cat confdefs.h >>conftest.$ac_ext
21238 cat >>conftest.$ac_ext <<_ACEOF
21239 /* end confdefs.h. */
21240 #include <stddef.h>
21244 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21251 rm -f conftest.$ac_objext
21252 if { (ac_try="$ac_compile"
21253 case "(($ac_try" in
21254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21255 *) ac_try_echo=$ac_try;;
21257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21258 (eval "$ac_compile") 2>conftest.er1
21260 grep -v '^ *+' conftest.er1 >conftest.err
21262 cat conftest.err >&5
21263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264 (exit $ac_status); } && {
21265 test -z "$ac_c_werror_flag" ||
21266 test ! -s conftest.err
21267 } && test -s conftest.$ac_objext; then
21270 echo "$as_me: failed program was:" >&5
21271 sed 's/^/| /' conftest.$ac_ext >&5
21273 ac_lo=`expr '(' $ac_mid ')' + 1`
21276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21279 ?*) res_lo=$ac_lo;;
21283 cat >conftest.$ac_ext <<_ACEOF
21286 cat confdefs.h >>conftest.$ac_ext
21287 cat >>conftest.$ac_ext <<_ACEOF
21288 /* end confdefs.h. */
21289 #include <stddef.h>
21290 static long int longval () { return ~(size_t)0 % 10; }
21291 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21293 #include <stdlib.h>
21298 FILE *f = fopen ("conftest.val", "w");
21301 if ((~(size_t)0 % 10) < 0)
21303 long int i = longval ();
21304 if (i != (~(size_t)0 % 10))
21306 fprintf (f, "%ld\n", i);
21310 unsigned long int i = ulongval ();
21311 if (i != (~(size_t)0 % 10))
21313 fprintf (f, "%lu\n", i);
21315 return ferror (f) || fclose (f) != 0;
21321 rm -f conftest$ac_exeext
21322 if { (ac_try="$ac_link"
21323 case "(($ac_try" in
21324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21325 *) ac_try_echo=$ac_try;;
21327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21328 (eval "$ac_link") 2>&5
21330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21331 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21332 { (case "(($ac_try" in
21333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21334 *) ac_try_echo=$ac_try;;
21336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21337 (eval "$ac_try") 2>&5
21339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340 (exit $ac_status); }; }; then
21341 res_lo=`cat conftest.val`
21343 echo "$as_me: program exited with status $ac_status" >&5
21344 echo "$as_me: failed program was:" >&5
21345 sed 's/^/| /' conftest.$ac_ext >&5
21347 ( exit $ac_status )
21350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21354 if test "$cross_compiling" = yes; then
21355 # Depending upon the size, compute the lo and hi bounds.
21356 cat >conftest.$ac_ext <<_ACEOF
21359 cat confdefs.h >>conftest.$ac_ext
21360 cat >>conftest.$ac_ext <<_ACEOF
21361 /* end confdefs.h. */
21362 #include <stddef.h>
21366 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21373 rm -f conftest.$ac_objext
21374 if { (ac_try="$ac_compile"
21375 case "(($ac_try" in
21376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21377 *) ac_try_echo=$ac_try;;
21379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21380 (eval "$ac_compile") 2>conftest.er1
21382 grep -v '^ *+' conftest.er1 >conftest.err
21384 cat conftest.err >&5
21385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21386 (exit $ac_status); } && {
21387 test -z "$ac_c_werror_flag" ||
21388 test ! -s conftest.err
21389 } && test -s conftest.$ac_objext; then
21392 cat >conftest.$ac_ext <<_ACEOF
21395 cat confdefs.h >>conftest.$ac_ext
21396 cat >>conftest.$ac_ext <<_ACEOF
21397 /* end confdefs.h. */
21398 #include <stddef.h>
21402 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21409 rm -f conftest.$ac_objext
21410 if { (ac_try="$ac_compile"
21411 case "(($ac_try" in
21412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21413 *) ac_try_echo=$ac_try;;
21415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21416 (eval "$ac_compile") 2>conftest.er1
21418 grep -v '^ *+' conftest.er1 >conftest.err
21420 cat conftest.err >&5
21421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422 (exit $ac_status); } && {
21423 test -z "$ac_c_werror_flag" ||
21424 test ! -s conftest.err
21425 } && test -s conftest.$ac_objext; then
21426 ac_hi=$ac_mid; break
21428 echo "$as_me: failed program was:" >&5
21429 sed 's/^/| /' conftest.$ac_ext >&5
21431 ac_lo=`expr $ac_mid + 1`
21432 if test $ac_lo -le $ac_mid; then
21436 ac_mid=`expr 2 '*' $ac_mid + 1`
21439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21442 echo "$as_me: failed program was:" >&5
21443 sed 's/^/| /' conftest.$ac_ext >&5
21445 cat >conftest.$ac_ext <<_ACEOF
21448 cat confdefs.h >>conftest.$ac_ext
21449 cat >>conftest.$ac_ext <<_ACEOF
21450 /* end confdefs.h. */
21451 #include <stddef.h>
21455 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21462 rm -f conftest.$ac_objext
21463 if { (ac_try="$ac_compile"
21464 case "(($ac_try" in
21465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21466 *) ac_try_echo=$ac_try;;
21468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21469 (eval "$ac_compile") 2>conftest.er1
21471 grep -v '^ *+' conftest.er1 >conftest.err
21473 cat conftest.err >&5
21474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21475 (exit $ac_status); } && {
21476 test -z "$ac_c_werror_flag" ||
21477 test ! -s conftest.err
21478 } && test -s conftest.$ac_objext; then
21481 cat >conftest.$ac_ext <<_ACEOF
21484 cat confdefs.h >>conftest.$ac_ext
21485 cat >>conftest.$ac_ext <<_ACEOF
21486 /* end confdefs.h. */
21487 #include <stddef.h>
21491 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
21498 rm -f conftest.$ac_objext
21499 if { (ac_try="$ac_compile"
21500 case "(($ac_try" in
21501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21502 *) ac_try_echo=$ac_try;;
21504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21505 (eval "$ac_compile") 2>conftest.er1
21507 grep -v '^ *+' conftest.er1 >conftest.err
21509 cat conftest.err >&5
21510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21511 (exit $ac_status); } && {
21512 test -z "$ac_c_werror_flag" ||
21513 test ! -s conftest.err
21514 } && test -s conftest.$ac_objext; then
21515 ac_lo=$ac_mid; break
21517 echo "$as_me: failed program was:" >&5
21518 sed 's/^/| /' conftest.$ac_ext >&5
21520 ac_hi=`expr '(' $ac_mid ')' - 1`
21521 if test $ac_mid -le $ac_hi; then
21525 ac_mid=`expr 2 '*' $ac_mid`
21528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21531 echo "$as_me: failed program was:" >&5
21532 sed 's/^/| /' conftest.$ac_ext >&5
21537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21541 # Binary search between lo and hi bounds.
21542 while test "x$ac_lo" != "x$ac_hi"; do
21543 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21544 cat >conftest.$ac_ext <<_ACEOF
21547 cat confdefs.h >>conftest.$ac_ext
21548 cat >>conftest.$ac_ext <<_ACEOF
21549 /* end confdefs.h. */
21550 #include <stddef.h>
21554 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21561 rm -f conftest.$ac_objext
21562 if { (ac_try="$ac_compile"
21563 case "(($ac_try" in
21564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21565 *) ac_try_echo=$ac_try;;
21567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21568 (eval "$ac_compile") 2>conftest.er1
21570 grep -v '^ *+' conftest.er1 >conftest.err
21572 cat conftest.err >&5
21573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21574 (exit $ac_status); } && {
21575 test -z "$ac_c_werror_flag" ||
21576 test ! -s conftest.err
21577 } && test -s conftest.$ac_objext; then
21580 echo "$as_me: failed program was:" >&5
21581 sed 's/^/| /' conftest.$ac_ext >&5
21583 ac_lo=`expr '(' $ac_mid ')' + 1`
21586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21589 ?*) fits_in_uint=$ac_lo;;
21593 cat >conftest.$ac_ext <<_ACEOF
21596 cat confdefs.h >>conftest.$ac_ext
21597 cat >>conftest.$ac_ext <<_ACEOF
21598 /* end confdefs.h. */
21599 #include <stddef.h>
21600 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
21601 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
21603 #include <stdlib.h>
21608 FILE *f = fopen ("conftest.val", "w");
21611 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
21613 long int i = longval ();
21614 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21616 fprintf (f, "%ld\n", i);
21620 unsigned long int i = ulongval ();
21621 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21623 fprintf (f, "%lu\n", i);
21625 return ferror (f) || fclose (f) != 0;
21631 rm -f conftest$ac_exeext
21632 if { (ac_try="$ac_link"
21633 case "(($ac_try" in
21634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21635 *) ac_try_echo=$ac_try;;
21637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21638 (eval "$ac_link") 2>&5
21640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21641 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21642 { (case "(($ac_try" in
21643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21644 *) ac_try_echo=$ac_try;;
21646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21647 (eval "$ac_try") 2>&5
21649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21650 (exit $ac_status); }; }; then
21651 fits_in_uint=`cat conftest.val`
21653 echo "$as_me: program exited with status $ac_status" >&5
21654 echo "$as_me: failed program was:" >&5
21655 sed 's/^/| /' conftest.$ac_ext >&5
21657 ( exit $ac_status )
21660 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21664 if test "$fits_in_uint" = 1; then
21665 cat >conftest.$ac_ext <<_ACEOF
21668 cat confdefs.h >>conftest.$ac_ext
21669 cat >>conftest.$ac_ext <<_ACEOF
21670 /* end confdefs.h. */
21671 #include <stddef.h>
21673 extern unsigned long foo;
21683 rm -f conftest.$ac_objext
21684 if { (ac_try="$ac_compile"
21685 case "(($ac_try" in
21686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21687 *) ac_try_echo=$ac_try;;
21689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21690 (eval "$ac_compile") 2>conftest.er1
21692 grep -v '^ *+' conftest.er1 >conftest.err
21694 cat conftest.err >&5
21695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21696 (exit $ac_status); } && {
21697 test -z "$ac_c_werror_flag" ||
21698 test ! -s conftest.err
21699 } && test -s conftest.$ac_objext; then
21702 echo "$as_me: failed program was:" >&5
21703 sed 's/^/| /' conftest.$ac_ext >&5
21708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21710 if test -z "$result"; then
21711 if test "$fits_in_uint" = 1; then
21712 result="$res_hi$res_lo"U
21714 result="$res_hi$res_lo"UL
21717 result='~(size_t)0'
21720 { echo "$as_me:$LINENO: result: $result" >&5
21721 echo "${ECHO_T}$result" >&6; }
21722 if test "$result" != yes; then
21724 cat >>confdefs.h <<_ACEOF
21725 #define SIZE_MAX $result
21734 for ac_header in stdint.h
21736 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21738 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21740 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21741 echo $ECHO_N "(cached) $ECHO_C" >&6
21743 ac_res=`eval echo '${'$as_ac_Header'}'`
21744 { echo "$as_me:$LINENO: result: $ac_res" >&5
21745 echo "${ECHO_T}$ac_res" >&6; }
21747 # Is the header compilable?
21748 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21749 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21750 cat >conftest.$ac_ext <<_ACEOF
21753 cat confdefs.h >>conftest.$ac_ext
21754 cat >>conftest.$ac_ext <<_ACEOF
21755 /* end confdefs.h. */
21756 $ac_includes_default
21757 #include <$ac_header>
21759 rm -f conftest.$ac_objext
21760 if { (ac_try="$ac_compile"
21761 case "(($ac_try" in
21762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21763 *) ac_try_echo=$ac_try;;
21765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21766 (eval "$ac_compile") 2>conftest.er1
21768 grep -v '^ *+' conftest.er1 >conftest.err
21770 cat conftest.err >&5
21771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21772 (exit $ac_status); } && {
21773 test -z "$ac_c_werror_flag" ||
21774 test ! -s conftest.err
21775 } && test -s conftest.$ac_objext; then
21776 ac_header_compiler=yes
21778 echo "$as_me: failed program was:" >&5
21779 sed 's/^/| /' conftest.$ac_ext >&5
21781 ac_header_compiler=no
21784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21785 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21786 echo "${ECHO_T}$ac_header_compiler" >&6; }
21788 # Is the header present?
21789 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21790 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21791 cat >conftest.$ac_ext <<_ACEOF
21794 cat confdefs.h >>conftest.$ac_ext
21795 cat >>conftest.$ac_ext <<_ACEOF
21796 /* end confdefs.h. */
21797 #include <$ac_header>
21799 if { (ac_try="$ac_cpp conftest.$ac_ext"
21800 case "(($ac_try" in
21801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21802 *) ac_try_echo=$ac_try;;
21804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21805 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21807 grep -v '^ *+' conftest.er1 >conftest.err
21809 cat conftest.err >&5
21810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21811 (exit $ac_status); } >/dev/null && {
21812 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21813 test ! -s conftest.err
21815 ac_header_preproc=yes
21817 echo "$as_me: failed program was:" >&5
21818 sed 's/^/| /' conftest.$ac_ext >&5
21820 ac_header_preproc=no
21823 rm -f conftest.err conftest.$ac_ext
21824 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21825 echo "${ECHO_T}$ac_header_preproc" >&6; }
21827 # So? What about this header?
21828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21830 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21831 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21833 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21834 ac_header_preproc=yes
21837 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21838 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21839 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21840 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21841 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21842 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21843 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21844 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21846 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21847 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21848 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21852 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21855 echo $ECHO_N "(cached) $ECHO_C" >&6
21857 eval "$as_ac_Header=\$ac_header_preproc"
21859 ac_res=`eval echo '${'$as_ac_Header'}'`
21860 { echo "$as_me:$LINENO: result: $ac_res" >&5
21861 echo "${ECHO_T}$ac_res" >&6; }
21864 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21865 cat >>confdefs.h <<_ACEOF
21866 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21880 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21881 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
21882 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21883 echo $ECHO_N "(cached) $ECHO_C" >&6
21885 cat >conftest.$ac_ext <<_ACEOF
21888 cat confdefs.h >>conftest.$ac_ext
21889 cat >>conftest.$ac_ext <<_ACEOF
21890 /* end confdefs.h. */
21891 $ac_includes_default
21892 typedef ptrdiff_t ac__type_new_;
21896 if ((ac__type_new_ *) 0)
21898 if (sizeof (ac__type_new_))
21904 rm -f conftest.$ac_objext
21905 if { (ac_try="$ac_compile"
21906 case "(($ac_try" in
21907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21908 *) ac_try_echo=$ac_try;;
21910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21911 (eval "$ac_compile") 2>conftest.er1
21913 grep -v '^ *+' conftest.er1 >conftest.err
21915 cat conftest.err >&5
21916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21917 (exit $ac_status); } && {
21918 test -z "$ac_c_werror_flag" ||
21919 test ! -s conftest.err
21920 } && test -s conftest.$ac_objext; then
21921 ac_cv_type_ptrdiff_t=yes
21923 echo "$as_me: failed program was:" >&5
21924 sed 's/^/| /' conftest.$ac_ext >&5
21926 ac_cv_type_ptrdiff_t=no
21929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21931 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
21932 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
21933 if test $ac_cv_type_ptrdiff_t = yes; then
21937 cat >>confdefs.h <<\_ACEOF
21938 #define ptrdiff_t long
21954 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
21955 stdlib.h string.h unistd.h sys/param.h
21957 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21959 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21962 echo $ECHO_N "(cached) $ECHO_C" >&6
21964 ac_res=`eval echo '${'$as_ac_Header'}'`
21965 { echo "$as_me:$LINENO: result: $ac_res" >&5
21966 echo "${ECHO_T}$ac_res" >&6; }
21968 # Is the header compilable?
21969 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21970 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21971 cat >conftest.$ac_ext <<_ACEOF
21974 cat confdefs.h >>conftest.$ac_ext
21975 cat >>conftest.$ac_ext <<_ACEOF
21976 /* end confdefs.h. */
21977 $ac_includes_default
21978 #include <$ac_header>
21980 rm -f conftest.$ac_objext
21981 if { (ac_try="$ac_compile"
21982 case "(($ac_try" in
21983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21984 *) ac_try_echo=$ac_try;;
21986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21987 (eval "$ac_compile") 2>conftest.er1
21989 grep -v '^ *+' conftest.er1 >conftest.err
21991 cat conftest.err >&5
21992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21993 (exit $ac_status); } && {
21994 test -z "$ac_c_werror_flag" ||
21995 test ! -s conftest.err
21996 } && test -s conftest.$ac_objext; then
21997 ac_header_compiler=yes
21999 echo "$as_me: failed program was:" >&5
22000 sed 's/^/| /' conftest.$ac_ext >&5
22002 ac_header_compiler=no
22005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22006 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22007 echo "${ECHO_T}$ac_header_compiler" >&6; }
22009 # Is the header present?
22010 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22011 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22012 cat >conftest.$ac_ext <<_ACEOF
22015 cat confdefs.h >>conftest.$ac_ext
22016 cat >>conftest.$ac_ext <<_ACEOF
22017 /* end confdefs.h. */
22018 #include <$ac_header>
22020 if { (ac_try="$ac_cpp conftest.$ac_ext"
22021 case "(($ac_try" in
22022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22023 *) ac_try_echo=$ac_try;;
22025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22026 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22028 grep -v '^ *+' conftest.er1 >conftest.err
22030 cat conftest.err >&5
22031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22032 (exit $ac_status); } >/dev/null && {
22033 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22034 test ! -s conftest.err
22036 ac_header_preproc=yes
22038 echo "$as_me: failed program was:" >&5
22039 sed 's/^/| /' conftest.$ac_ext >&5
22041 ac_header_preproc=no
22044 rm -f conftest.err conftest.$ac_ext
22045 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22046 echo "${ECHO_T}$ac_header_preproc" >&6; }
22048 # So? What about this header?
22049 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22051 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22052 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22053 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22054 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22055 ac_header_preproc=yes
22058 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22059 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22060 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22061 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22062 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22063 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22064 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22065 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22067 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22068 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22069 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22073 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22075 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22076 echo $ECHO_N "(cached) $ECHO_C" >&6
22078 eval "$as_ac_Header=\$ac_header_preproc"
22080 ac_res=`eval echo '${'$as_ac_Header'}'`
22081 { echo "$as_me:$LINENO: result: $ac_res" >&5
22082 echo "${ECHO_T}$ac_res" >&6; }
22085 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22086 cat >>confdefs.h <<_ACEOF
22087 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22117 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22118 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22119 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22122 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22123 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22124 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22125 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22126 echo $ECHO_N "(cached) $ECHO_C" >&6
22128 cat >conftest.$ac_ext <<_ACEOF
22131 cat confdefs.h >>conftest.$ac_ext
22132 cat >>conftest.$ac_ext <<_ACEOF
22133 /* end confdefs.h. */
22134 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22135 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22136 #define $ac_func innocuous_$ac_func
22138 /* System header to define __stub macros and hopefully few prototypes,
22139 which can conflict with char $ac_func (); below.
22140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22141 <limits.h> exists even on freestanding compilers. */
22144 # include <limits.h>
22146 # include <assert.h>
22151 /* Override any GCC internal prototype to avoid an error.
22152 Use char because int might match the return type of a GCC
22153 builtin and then its argument prototype would still apply. */
22158 /* The GNU C library defines this for functions which it implements
22159 to always fail with ENOSYS. Some functions are actually named
22160 something starting with __ and the normal name is an alias. */
22161 #if defined __stub_$ac_func || defined __stub___$ac_func
22168 return $ac_func ();
22173 rm -f conftest.$ac_objext conftest$ac_exeext
22174 if { (ac_try="$ac_link"
22175 case "(($ac_try" in
22176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22177 *) ac_try_echo=$ac_try;;
22179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22180 (eval "$ac_link") 2>conftest.er1
22182 grep -v '^ *+' conftest.er1 >conftest.err
22184 cat conftest.err >&5
22185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22186 (exit $ac_status); } && {
22187 test -z "$ac_c_werror_flag" ||
22188 test ! -s conftest.err
22189 } && test -s conftest$ac_exeext &&
22190 $as_test_x conftest$ac_exeext; then
22191 eval "$as_ac_var=yes"
22193 echo "$as_me: failed program was:" >&5
22194 sed 's/^/| /' conftest.$ac_ext >&5
22196 eval "$as_ac_var=no"
22199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22200 conftest$ac_exeext conftest.$ac_ext
22202 ac_res=`eval echo '${'$as_ac_var'}'`
22203 { echo "$as_me:$LINENO: result: $ac_res" >&5
22204 echo "${ECHO_T}$ac_res" >&6; }
22205 if test `eval echo '${'$as_ac_var'}'` = yes; then
22206 cat >>confdefs.h <<_ACEOF
22207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22215 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22216 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
22217 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22218 echo $ECHO_N "(cached) $ECHO_C" >&6
22220 cat >conftest.$ac_ext <<_ACEOF
22223 cat confdefs.h >>conftest.$ac_ext
22224 cat >>conftest.$ac_ext <<_ACEOF
22225 /* end confdefs.h. */
22232 char *p = (char *) _snprintf;
22239 rm -f conftest.$ac_objext
22240 if { (ac_try="$ac_compile"
22241 case "(($ac_try" in
22242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22243 *) ac_try_echo=$ac_try;;
22245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22246 (eval "$ac_compile") 2>conftest.er1
22248 grep -v '^ *+' conftest.er1 >conftest.err
22250 cat conftest.err >&5
22251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22252 (exit $ac_status); } && {
22253 test -z "$ac_c_werror_flag" ||
22254 test ! -s conftest.err
22255 } && test -s conftest.$ac_objext; then
22256 ac_cv_have_decl__snprintf=yes
22258 echo "$as_me: failed program was:" >&5
22259 sed 's/^/| /' conftest.$ac_ext >&5
22261 ac_cv_have_decl__snprintf=no
22264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22266 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22267 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
22268 if test $ac_cv_have_decl__snprintf = yes; then
22274 cat >>confdefs.h <<_ACEOF
22275 #define HAVE_DECL__SNPRINTF $gt_value
22280 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22281 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
22282 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22283 echo $ECHO_N "(cached) $ECHO_C" >&6
22285 cat >conftest.$ac_ext <<_ACEOF
22288 cat confdefs.h >>conftest.$ac_ext
22289 cat >>conftest.$ac_ext <<_ACEOF
22290 /* end confdefs.h. */
22297 char *p = (char *) _snwprintf;
22304 rm -f conftest.$ac_objext
22305 if { (ac_try="$ac_compile"
22306 case "(($ac_try" in
22307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22308 *) ac_try_echo=$ac_try;;
22310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22311 (eval "$ac_compile") 2>conftest.er1
22313 grep -v '^ *+' conftest.er1 >conftest.err
22315 cat conftest.err >&5
22316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22317 (exit $ac_status); } && {
22318 test -z "$ac_c_werror_flag" ||
22319 test ! -s conftest.err
22320 } && test -s conftest.$ac_objext; then
22321 ac_cv_have_decl__snwprintf=yes
22323 echo "$as_me: failed program was:" >&5
22324 sed 's/^/| /' conftest.$ac_ext >&5
22326 ac_cv_have_decl__snwprintf=no
22329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22331 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22332 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
22333 if test $ac_cv_have_decl__snwprintf = yes; then
22339 cat >>confdefs.h <<_ACEOF
22340 #define HAVE_DECL__SNWPRINTF $gt_value
22346 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22347 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
22348 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22349 echo $ECHO_N "(cached) $ECHO_C" >&6
22351 cat >conftest.$ac_ext <<_ACEOF
22354 cat confdefs.h >>conftest.$ac_ext
22355 cat >>conftest.$ac_ext <<_ACEOF
22356 /* end confdefs.h. */
22362 #ifndef feof_unlocked
22363 char *p = (char *) feof_unlocked;
22370 rm -f conftest.$ac_objext
22371 if { (ac_try="$ac_compile"
22372 case "(($ac_try" in
22373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22374 *) ac_try_echo=$ac_try;;
22376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22377 (eval "$ac_compile") 2>conftest.er1
22379 grep -v '^ *+' conftest.er1 >conftest.err
22381 cat conftest.err >&5
22382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22383 (exit $ac_status); } && {
22384 test -z "$ac_c_werror_flag" ||
22385 test ! -s conftest.err
22386 } && test -s conftest.$ac_objext; then
22387 ac_cv_have_decl_feof_unlocked=yes
22389 echo "$as_me: failed program was:" >&5
22390 sed 's/^/| /' conftest.$ac_ext >&5
22392 ac_cv_have_decl_feof_unlocked=no
22395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22397 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22398 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
22399 if test $ac_cv_have_decl_feof_unlocked = yes; then
22405 cat >>confdefs.h <<_ACEOF
22406 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22411 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22412 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
22413 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22414 echo $ECHO_N "(cached) $ECHO_C" >&6
22416 cat >conftest.$ac_ext <<_ACEOF
22419 cat confdefs.h >>conftest.$ac_ext
22420 cat >>conftest.$ac_ext <<_ACEOF
22421 /* end confdefs.h. */
22427 #ifndef fgets_unlocked
22428 char *p = (char *) fgets_unlocked;
22435 rm -f conftest.$ac_objext
22436 if { (ac_try="$ac_compile"
22437 case "(($ac_try" in
22438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22439 *) ac_try_echo=$ac_try;;
22441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22442 (eval "$ac_compile") 2>conftest.er1
22444 grep -v '^ *+' conftest.er1 >conftest.err
22446 cat conftest.err >&5
22447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22448 (exit $ac_status); } && {
22449 test -z "$ac_c_werror_flag" ||
22450 test ! -s conftest.err
22451 } && test -s conftest.$ac_objext; then
22452 ac_cv_have_decl_fgets_unlocked=yes
22454 echo "$as_me: failed program was:" >&5
22455 sed 's/^/| /' conftest.$ac_ext >&5
22457 ac_cv_have_decl_fgets_unlocked=no
22460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22462 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
22463 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
22464 if test $ac_cv_have_decl_fgets_unlocked = yes; then
22470 cat >>confdefs.h <<_ACEOF
22471 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
22476 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22477 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22478 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22479 echo $ECHO_N "(cached) $ECHO_C" >&6
22481 cat >conftest.$ac_ext <<_ACEOF
22484 cat confdefs.h >>conftest.$ac_ext
22485 cat >>conftest.$ac_ext <<_ACEOF
22486 /* end confdefs.h. */
22492 #ifndef getc_unlocked
22493 char *p = (char *) getc_unlocked;
22500 rm -f conftest.$ac_objext
22501 if { (ac_try="$ac_compile"
22502 case "(($ac_try" in
22503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22504 *) ac_try_echo=$ac_try;;
22506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22507 (eval "$ac_compile") 2>conftest.er1
22509 grep -v '^ *+' conftest.er1 >conftest.err
22511 cat conftest.err >&5
22512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22513 (exit $ac_status); } && {
22514 test -z "$ac_c_werror_flag" ||
22515 test ! -s conftest.err
22516 } && test -s conftest.$ac_objext; then
22517 ac_cv_have_decl_getc_unlocked=yes
22519 echo "$as_me: failed program was:" >&5
22520 sed 's/^/| /' conftest.$ac_ext >&5
22522 ac_cv_have_decl_getc_unlocked=no
22525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22527 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22528 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22529 if test $ac_cv_have_decl_getc_unlocked = yes; then
22535 cat >>confdefs.h <<_ACEOF
22536 #define HAVE_DECL_GETC_UNLOCKED $gt_value
22541 case $gt_cv_func_printf_posix in
22542 *yes) HAVE_POSIX_PRINTF=1 ;;
22543 *) HAVE_POSIX_PRINTF=0 ;;
22546 if test "$ac_cv_func_asprintf" = yes; then
22552 if test "$ac_cv_func_snprintf" = yes; then
22558 if test "$ac_cv_func_wprintf" = yes; then
22570 am_save_CPPFLAGS="$CPPFLAGS"
22572 for element in $INCICONV; do
22574 for x in $CPPFLAGS; do
22576 acl_save_prefix="$prefix"
22577 prefix="$acl_final_prefix"
22578 acl_save_exec_prefix="$exec_prefix"
22579 exec_prefix="$acl_final_exec_prefix"
22581 exec_prefix="$acl_save_exec_prefix"
22582 prefix="$acl_save_prefix"
22584 if test "X$x" = "X$element"; then
22589 if test -z "$haveit"; then
22590 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22595 { echo "$as_me:$LINENO: checking for iconv" >&5
22596 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22597 if test "${am_cv_func_iconv+set}" = set; then
22598 echo $ECHO_N "(cached) $ECHO_C" >&6
22601 am_cv_func_iconv="no, consider installing GNU libiconv"
22603 cat >conftest.$ac_ext <<_ACEOF
22606 cat confdefs.h >>conftest.$ac_ext
22607 cat >>conftest.$ac_ext <<_ACEOF
22608 /* end confdefs.h. */
22609 #include <stdlib.h>
22614 iconv_t cd = iconv_open("","");
22615 iconv(cd,NULL,NULL,NULL,NULL);
22621 rm -f conftest.$ac_objext conftest$ac_exeext
22622 if { (ac_try="$ac_link"
22623 case "(($ac_try" in
22624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22625 *) ac_try_echo=$ac_try;;
22627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22628 (eval "$ac_link") 2>conftest.er1
22630 grep -v '^ *+' conftest.er1 >conftest.err
22632 cat conftest.err >&5
22633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22634 (exit $ac_status); } && {
22635 test -z "$ac_c_werror_flag" ||
22636 test ! -s conftest.err
22637 } && test -s conftest$ac_exeext &&
22638 $as_test_x conftest$ac_exeext; then
22639 am_cv_func_iconv=yes
22641 echo "$as_me: failed program was:" >&5
22642 sed 's/^/| /' conftest.$ac_ext >&5
22647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22648 conftest$ac_exeext conftest.$ac_ext
22649 if test "$am_cv_func_iconv" != yes; then
22650 am_save_LIBS="$LIBS"
22651 LIBS="$LIBS $LIBICONV"
22652 cat >conftest.$ac_ext <<_ACEOF
22655 cat confdefs.h >>conftest.$ac_ext
22656 cat >>conftest.$ac_ext <<_ACEOF
22657 /* end confdefs.h. */
22658 #include <stdlib.h>
22663 iconv_t cd = iconv_open("","");
22664 iconv(cd,NULL,NULL,NULL,NULL);
22670 rm -f conftest.$ac_objext conftest$ac_exeext
22671 if { (ac_try="$ac_link"
22672 case "(($ac_try" in
22673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22674 *) ac_try_echo=$ac_try;;
22676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22677 (eval "$ac_link") 2>conftest.er1
22679 grep -v '^ *+' conftest.er1 >conftest.err
22681 cat conftest.err >&5
22682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22683 (exit $ac_status); } && {
22684 test -z "$ac_c_werror_flag" ||
22685 test ! -s conftest.err
22686 } && test -s conftest$ac_exeext &&
22687 $as_test_x conftest$ac_exeext; then
22688 am_cv_lib_iconv=yes
22689 am_cv_func_iconv=yes
22691 echo "$as_me: failed program was:" >&5
22692 sed 's/^/| /' conftest.$ac_ext >&5
22697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22698 conftest$ac_exeext conftest.$ac_ext
22699 LIBS="$am_save_LIBS"
22703 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22704 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22705 if test "$am_cv_func_iconv" = yes; then
22707 cat >>confdefs.h <<\_ACEOF
22708 #define HAVE_ICONV 1
22712 if test "$am_cv_lib_iconv" = yes; then
22713 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22714 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22715 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22716 echo "${ECHO_T}$LIBICONV" >&6; }
22718 CPPFLAGS="$am_save_CPPFLAGS"
22725 if test "$am_cv_func_iconv" = yes; then
22726 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22727 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22728 if test "${am_cv_proto_iconv+set}" = set; then
22729 echo $ECHO_N "(cached) $ECHO_C" >&6
22732 cat >conftest.$ac_ext <<_ACEOF
22735 cat confdefs.h >>conftest.$ac_ext
22736 cat >>conftest.$ac_ext <<_ACEOF
22737 /* end confdefs.h. */
22739 #include <stdlib.h>
22745 #if defined(__STDC__) || defined(__cplusplus)
22746 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22759 rm -f conftest.$ac_objext
22760 if { (ac_try="$ac_compile"
22761 case "(($ac_try" in
22762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22763 *) ac_try_echo=$ac_try;;
22765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22766 (eval "$ac_compile") 2>conftest.er1
22768 grep -v '^ *+' conftest.er1 >conftest.err
22770 cat conftest.err >&5
22771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22772 (exit $ac_status); } && {
22773 test -z "$ac_c_werror_flag" ||
22774 test ! -s conftest.err
22775 } && test -s conftest.$ac_objext; then
22776 am_cv_proto_iconv_arg1=""
22778 echo "$as_me: failed program was:" >&5
22779 sed 's/^/| /' conftest.$ac_ext >&5
22781 am_cv_proto_iconv_arg1="const"
22784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22785 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);"
22788 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22789 { echo "$as_me:$LINENO: result: ${ac_t:-
22790 }$am_cv_proto_iconv" >&5
22791 echo "${ECHO_T}${ac_t:-
22792 }$am_cv_proto_iconv" >&6; }
22794 cat >>confdefs.h <<_ACEOF
22795 #define ICONV_CONST $am_cv_proto_iconv_arg1
22801 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22802 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22803 if test "${am_cv_langinfo_codeset+set}" = set; then
22804 echo $ECHO_N "(cached) $ECHO_C" >&6
22806 cat >conftest.$ac_ext <<_ACEOF
22809 cat confdefs.h >>conftest.$ac_ext
22810 cat >>conftest.$ac_ext <<_ACEOF
22811 /* end confdefs.h. */
22812 #include <langinfo.h>
22816 char* cs = nl_langinfo(CODESET);
22821 rm -f conftest.$ac_objext conftest$ac_exeext
22822 if { (ac_try="$ac_link"
22823 case "(($ac_try" in
22824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22825 *) ac_try_echo=$ac_try;;
22827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22828 (eval "$ac_link") 2>conftest.er1
22830 grep -v '^ *+' conftest.er1 >conftest.err
22832 cat conftest.err >&5
22833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22834 (exit $ac_status); } && {
22835 test -z "$ac_c_werror_flag" ||
22836 test ! -s conftest.err
22837 } && test -s conftest$ac_exeext &&
22838 $as_test_x conftest$ac_exeext; then
22839 am_cv_langinfo_codeset=yes
22841 echo "$as_me: failed program was:" >&5
22842 sed 's/^/| /' conftest.$ac_ext >&5
22844 am_cv_langinfo_codeset=no
22847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22848 conftest$ac_exeext conftest.$ac_ext
22851 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
22852 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
22853 if test $am_cv_langinfo_codeset = yes; then
22855 cat >>confdefs.h <<\_ACEOF
22856 #define HAVE_LANGINFO_CODESET 1
22861 if test $ac_cv_header_locale_h = yes; then
22863 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22864 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22865 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
22866 echo $ECHO_N "(cached) $ECHO_C" >&6
22868 cat >conftest.$ac_ext <<_ACEOF
22871 cat confdefs.h >>conftest.$ac_ext
22872 cat >>conftest.$ac_ext <<_ACEOF
22873 /* end confdefs.h. */
22874 #include <locale.h>
22883 rm -f conftest.$ac_objext conftest$ac_exeext
22884 if { (ac_try="$ac_link"
22885 case "(($ac_try" in
22886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22887 *) ac_try_echo=$ac_try;;
22889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22890 (eval "$ac_link") 2>conftest.er1
22892 grep -v '^ *+' conftest.er1 >conftest.err
22894 cat conftest.err >&5
22895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22896 (exit $ac_status); } && {
22897 test -z "$ac_c_werror_flag" ||
22898 test ! -s conftest.err
22899 } && test -s conftest$ac_exeext &&
22900 $as_test_x conftest$ac_exeext; then
22901 gt_cv_val_LC_MESSAGES=yes
22903 echo "$as_me: failed program was:" >&5
22904 sed 's/^/| /' conftest.$ac_ext >&5
22906 gt_cv_val_LC_MESSAGES=no
22909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22910 conftest$ac_exeext conftest.$ac_ext
22912 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
22913 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
22914 if test $gt_cv_val_LC_MESSAGES = yes; then
22916 cat >>confdefs.h <<\_ACEOF
22917 #define HAVE_LC_MESSAGES 1
22924 if test -n "$INTL_MACOSX_LIBS"; then
22925 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
22928 for ac_prog in bison
22930 # Extract the first word of "$ac_prog", so it can be a program name with args.
22931 set dummy $ac_prog; ac_word=$2
22932 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22934 if test "${ac_cv_prog_INTLBISON+set}" = set; then
22935 echo $ECHO_N "(cached) $ECHO_C" >&6
22937 if test -n "$INTLBISON"; then
22938 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
22940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22941 for as_dir in $PATH
22944 test -z "$as_dir" && as_dir=.
22945 for ac_exec_ext in '' $ac_executable_extensions; do
22946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22947 ac_cv_prog_INTLBISON="$ac_prog"
22948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22957 INTLBISON=$ac_cv_prog_INTLBISON
22958 if test -n "$INTLBISON"; then
22959 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
22960 echo "${ECHO_T}$INTLBISON" >&6; }
22962 { echo "$as_me:$LINENO: result: no" >&5
22963 echo "${ECHO_T}no" >&6; }
22967 test -n "$INTLBISON" && break
22970 if test -z "$INTLBISON"; then
22973 { echo "$as_me:$LINENO: checking version of bison" >&5
22974 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
22975 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
22976 case $ac_prog_version in
22977 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
22978 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
22979 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
22980 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
22982 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
22983 echo "${ECHO_T}$ac_prog_version" >&6; }
22985 if test $ac_verc_fail = yes; then
23004 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23005 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
23006 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23007 echo $ECHO_N "(cached) $ECHO_C" >&6
23009 gt_save_CPPFLAGS="$CPPFLAGS"
23010 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23011 gt_save_LIBS="$LIBS"
23012 LIBS="$LIBS -framework CoreFoundation"
23013 cat >conftest.$ac_ext <<_ACEOF
23016 cat confdefs.h >>conftest.$ac_ext
23017 cat >>conftest.$ac_ext <<_ACEOF
23018 /* end confdefs.h. */
23019 #include <CFPreferences.h>
23023 CFPreferencesCopyAppValue(NULL, NULL)
23028 rm -f conftest.$ac_objext conftest$ac_exeext
23029 if { (ac_try="$ac_link"
23030 case "(($ac_try" in
23031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23032 *) ac_try_echo=$ac_try;;
23034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23035 (eval "$ac_link") 2>conftest.er1
23037 grep -v '^ *+' conftest.er1 >conftest.err
23039 cat conftest.err >&5
23040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23041 (exit $ac_status); } && {
23042 test -z "$ac_c_werror_flag" ||
23043 test ! -s conftest.err
23044 } && test -s conftest$ac_exeext &&
23045 $as_test_x conftest$ac_exeext; then
23046 gt_cv_func_CFPreferencesCopyAppValue=yes
23048 echo "$as_me: failed program was:" >&5
23049 sed 's/^/| /' conftest.$ac_ext >&5
23051 gt_cv_func_CFPreferencesCopyAppValue=no
23054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23055 conftest$ac_exeext conftest.$ac_ext
23056 CPPFLAGS="$gt_save_CPPFLAGS"
23057 LIBS="$gt_save_LIBS"
23059 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23060 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23061 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23063 cat >>confdefs.h <<\_ACEOF
23064 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23068 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23069 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
23070 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23071 echo $ECHO_N "(cached) $ECHO_C" >&6
23073 gt_save_CPPFLAGS="$CPPFLAGS"
23074 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23075 gt_save_LIBS="$LIBS"
23076 LIBS="$LIBS -framework CoreFoundation"
23077 cat >conftest.$ac_ext <<_ACEOF
23080 cat confdefs.h >>conftest.$ac_ext
23081 cat >>conftest.$ac_ext <<_ACEOF
23082 /* end confdefs.h. */
23083 #include <CFLocale.h>
23087 CFLocaleCopyCurrent();
23092 rm -f conftest.$ac_objext conftest$ac_exeext
23093 if { (ac_try="$ac_link"
23094 case "(($ac_try" in
23095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23096 *) ac_try_echo=$ac_try;;
23098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23099 (eval "$ac_link") 2>conftest.er1
23101 grep -v '^ *+' conftest.er1 >conftest.err
23103 cat conftest.err >&5
23104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23105 (exit $ac_status); } && {
23106 test -z "$ac_c_werror_flag" ||
23107 test ! -s conftest.err
23108 } && test -s conftest$ac_exeext &&
23109 $as_test_x conftest$ac_exeext; then
23110 gt_cv_func_CFLocaleCopyCurrent=yes
23112 echo "$as_me: failed program was:" >&5
23113 sed 's/^/| /' conftest.$ac_ext >&5
23115 gt_cv_func_CFLocaleCopyCurrent=no
23118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23119 conftest$ac_exeext conftest.$ac_ext
23120 CPPFLAGS="$gt_save_CPPFLAGS"
23121 LIBS="$gt_save_LIBS"
23123 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23124 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23125 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23127 cat >>confdefs.h <<\_ACEOF
23128 #define HAVE_CFLOCALECOPYCURRENT 1
23133 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23134 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23140 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23141 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
23142 # Check whether --enable-nls was given.
23143 if test "${enable_nls+set}" = set; then
23144 enableval=$enable_nls; USE_NLS=$enableval
23149 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23150 echo "${ECHO_T}$USE_NLS" >&6; }
23155 BUILD_INCLUDED_LIBINTL=no
23156 USE_INCLUDED_LIBINTL=no
23162 if test "$USE_NLS" = "yes"; then
23163 gt_use_preinstalled_gnugettext=no
23165 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23166 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
23168 # Check whether --with-included-gettext was given.
23169 if test "${with_included_gettext+set}" = set; then
23170 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23172 nls_cv_force_use_gnu_gettext=no
23175 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23176 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
23178 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23179 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23186 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23187 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
23188 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23189 echo $ECHO_N "(cached) $ECHO_C" >&6
23191 cat >conftest.$ac_ext <<_ACEOF
23194 cat confdefs.h >>conftest.$ac_ext
23195 cat >>conftest.$ac_ext <<_ACEOF
23196 /* end confdefs.h. */
23197 #include <libintl.h>
23198 extern int _nl_msg_cat_cntr;
23199 extern int *_nl_domain_bindings;
23203 bindtextdomain ("", "");
23204 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23209 rm -f conftest.$ac_objext conftest$ac_exeext
23210 if { (ac_try="$ac_link"
23211 case "(($ac_try" in
23212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23213 *) ac_try_echo=$ac_try;;
23215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23216 (eval "$ac_link") 2>conftest.er1
23218 grep -v '^ *+' conftest.er1 >conftest.err
23220 cat conftest.err >&5
23221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23222 (exit $ac_status); } && {
23223 test -z "$ac_c_werror_flag" ||
23224 test ! -s conftest.err
23225 } && test -s conftest$ac_exeext &&
23226 $as_test_x conftest$ac_exeext; then
23227 gt_cv_func_gnugettext1_libc=yes
23229 echo "$as_me: failed program was:" >&5
23230 sed 's/^/| /' conftest.$ac_ext >&5
23232 gt_cv_func_gnugettext1_libc=no
23235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23236 conftest$ac_exeext conftest.$ac_ext
23238 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23239 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
23241 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23247 acl_save_prefix="$prefix"
23248 prefix="$acl_final_prefix"
23249 acl_save_exec_prefix="$exec_prefix"
23250 exec_prefix="$acl_final_exec_prefix"
23252 eval additional_includedir=\"$includedir\"
23253 eval additional_libdir=\"$libdir\"
23255 exec_prefix="$acl_save_exec_prefix"
23256 prefix="$acl_save_prefix"
23259 # Check whether --with-libintl-prefix was given.
23260 if test "${with_libintl_prefix+set}" = set; then
23261 withval=$with_libintl_prefix;
23262 if test "X$withval" = "Xno"; then
23265 if test "X$withval" = "X"; then
23267 acl_save_prefix="$prefix"
23268 prefix="$acl_final_prefix"
23269 acl_save_exec_prefix="$exec_prefix"
23270 exec_prefix="$acl_final_exec_prefix"
23272 eval additional_includedir=\"$includedir\"
23273 eval additional_libdir=\"$libdir\"
23275 exec_prefix="$acl_save_exec_prefix"
23276 prefix="$acl_save_prefix"
23279 additional_includedir="$withval/include"
23280 additional_libdir="$withval/lib"
23291 names_already_handled=
23292 names_next_round='intl '
23293 while test -n "$names_next_round"; do
23294 names_this_round="$names_next_round"
23296 for name in $names_this_round; do
23298 for n in $names_already_handled; do
23299 if test "$n" = "$name"; then
23300 already_handled=yes
23304 if test -z "$already_handled"; then
23305 names_already_handled="$names_already_handled $name"
23306 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23307 eval value=\"\$HAVE_LIB$uppername\"
23308 if test -n "$value"; then
23309 if test "$value" = yes; then
23310 eval value=\"\$LIB$uppername\"
23311 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23312 eval value=\"\$LTLIB$uppername\"
23313 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23322 if test $use_additional = yes; then
23323 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23324 found_dir="$additional_libdir"
23325 found_so="$additional_libdir/lib$name.$shlibext"
23326 if test -f "$additional_libdir/lib$name.la"; then
23327 found_la="$additional_libdir/lib$name.la"
23330 if test -f "$additional_libdir/lib$name.$libext"; then
23331 found_dir="$additional_libdir"
23332 found_a="$additional_libdir/lib$name.$libext"
23333 if test -f "$additional_libdir/lib$name.la"; then
23334 found_la="$additional_libdir/lib$name.la"
23339 if test "X$found_dir" = "X"; then
23340 for x in $LDFLAGS $LTLIBINTL; do
23342 acl_save_prefix="$prefix"
23343 prefix="$acl_final_prefix"
23344 acl_save_exec_prefix="$exec_prefix"
23345 exec_prefix="$acl_final_exec_prefix"
23347 exec_prefix="$acl_save_exec_prefix"
23348 prefix="$acl_save_prefix"
23352 dir=`echo "X$x" | sed -e 's/^X-L//'`
23353 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23355 found_so="$dir/lib$name.$shlibext"
23356 if test -f "$dir/lib$name.la"; then
23357 found_la="$dir/lib$name.la"
23360 if test -f "$dir/lib$name.$libext"; then
23362 found_a="$dir/lib$name.$libext"
23363 if test -f "$dir/lib$name.la"; then
23364 found_la="$dir/lib$name.la"
23370 if test "X$found_dir" != "X"; then
23375 if test "X$found_dir" != "X"; then
23376 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23377 if test "X$found_so" != "X"; then
23378 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23379 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23382 for x in $ltrpathdirs; do
23383 if test "X$x" = "X$found_dir"; then
23388 if test -z "$haveit"; then
23389 ltrpathdirs="$ltrpathdirs $found_dir"
23391 if test "$hardcode_direct" = yes; then
23392 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23394 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23395 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23397 for x in $rpathdirs; do
23398 if test "X$x" = "X$found_dir"; then
23403 if test -z "$haveit"; then
23404 rpathdirs="$rpathdirs $found_dir"
23408 for x in $LDFLAGS $LIBINTL; do
23410 acl_save_prefix="$prefix"
23411 prefix="$acl_final_prefix"
23412 acl_save_exec_prefix="$exec_prefix"
23413 exec_prefix="$acl_final_exec_prefix"
23415 exec_prefix="$acl_save_exec_prefix"
23416 prefix="$acl_save_prefix"
23418 if test "X$x" = "X-L$found_dir"; then
23423 if test -z "$haveit"; then
23424 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23426 if test "$hardcode_minus_L" != no; then
23427 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23429 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23435 if test "X$found_a" != "X"; then
23436 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23438 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23441 additional_includedir=
23442 case "$found_dir" in
23444 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23445 additional_includedir="$basedir/include"
23448 if test "X$additional_includedir" != "X"; then
23449 if test "X$additional_includedir" != "X/usr/include"; then
23451 if test "X$additional_includedir" = "X/usr/local/include"; then
23452 if test -n "$GCC"; then
23454 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23458 if test -z "$haveit"; then
23459 for x in $CPPFLAGS $INCINTL; do
23461 acl_save_prefix="$prefix"
23462 prefix="$acl_final_prefix"
23463 acl_save_exec_prefix="$exec_prefix"
23464 exec_prefix="$acl_final_exec_prefix"
23466 exec_prefix="$acl_save_exec_prefix"
23467 prefix="$acl_save_prefix"
23469 if test "X$x" = "X-I$additional_includedir"; then
23474 if test -z "$haveit"; then
23475 if test -d "$additional_includedir"; then
23476 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23482 if test -n "$found_la"; then
23483 save_libdir="$libdir"
23484 case "$found_la" in
23485 */* | *\\*) . "$found_la" ;;
23486 *) . "./$found_la" ;;
23488 libdir="$save_libdir"
23489 for dep in $dependency_libs; do
23492 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23493 if test "X$additional_libdir" != "X/usr/lib"; then
23495 if test "X$additional_libdir" = "X/usr/local/lib"; then
23496 if test -n "$GCC"; then
23498 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23502 if test -z "$haveit"; then
23504 for x in $LDFLAGS $LIBINTL; do
23506 acl_save_prefix="$prefix"
23507 prefix="$acl_final_prefix"
23508 acl_save_exec_prefix="$exec_prefix"
23509 exec_prefix="$acl_final_exec_prefix"
23511 exec_prefix="$acl_save_exec_prefix"
23512 prefix="$acl_save_prefix"
23514 if test "X$x" = "X-L$additional_libdir"; then
23519 if test -z "$haveit"; then
23520 if test -d "$additional_libdir"; then
23521 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23525 for x in $LDFLAGS $LTLIBINTL; do
23527 acl_save_prefix="$prefix"
23528 prefix="$acl_final_prefix"
23529 acl_save_exec_prefix="$exec_prefix"
23530 exec_prefix="$acl_final_exec_prefix"
23532 exec_prefix="$acl_save_exec_prefix"
23533 prefix="$acl_save_prefix"
23535 if test "X$x" = "X-L$additional_libdir"; then
23540 if test -z "$haveit"; then
23541 if test -d "$additional_libdir"; then
23542 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23549 dir=`echo "X$dep" | sed -e 's/^X-R//'`
23550 if test "$enable_rpath" != no; then
23552 for x in $rpathdirs; do
23553 if test "X$x" = "X$dir"; then
23558 if test -z "$haveit"; then
23559 rpathdirs="$rpathdirs $dir"
23562 for x in $ltrpathdirs; do
23563 if test "X$x" = "X$dir"; then
23568 if test -z "$haveit"; then
23569 ltrpathdirs="$ltrpathdirs $dir"
23574 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23577 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23580 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23581 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23587 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23588 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23594 if test "X$rpathdirs" != "X"; then
23595 if test -n "$hardcode_libdir_separator"; then
23597 for found_dir in $rpathdirs; do
23598 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23600 acl_save_libdir="$libdir"
23602 eval flag=\"$hardcode_libdir_flag_spec\"
23603 libdir="$acl_save_libdir"
23604 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23606 for found_dir in $rpathdirs; do
23607 acl_save_libdir="$libdir"
23608 libdir="$found_dir"
23609 eval flag=\"$hardcode_libdir_flag_spec\"
23610 libdir="$acl_save_libdir"
23611 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23615 if test "X$ltrpathdirs" != "X"; then
23616 for found_dir in $ltrpathdirs; do
23617 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23621 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23622 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23623 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23624 echo $ECHO_N "(cached) $ECHO_C" >&6
23626 gt_save_CPPFLAGS="$CPPFLAGS"
23627 CPPFLAGS="$CPPFLAGS $INCINTL"
23628 gt_save_LIBS="$LIBS"
23629 LIBS="$LIBS $LIBINTL"
23630 cat >conftest.$ac_ext <<_ACEOF
23633 cat confdefs.h >>conftest.$ac_ext
23634 cat >>conftest.$ac_ext <<_ACEOF
23635 /* end confdefs.h. */
23636 #include <libintl.h>
23637 extern int _nl_msg_cat_cntr;
23642 const char *_nl_expand_alias (const char *);
23646 bindtextdomain ("", "");
23647 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23652 rm -f conftest.$ac_objext conftest$ac_exeext
23653 if { (ac_try="$ac_link"
23654 case "(($ac_try" in
23655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23656 *) ac_try_echo=$ac_try;;
23658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23659 (eval "$ac_link") 2>conftest.er1
23661 grep -v '^ *+' conftest.er1 >conftest.err
23663 cat conftest.err >&5
23664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23665 (exit $ac_status); } && {
23666 test -z "$ac_c_werror_flag" ||
23667 test ! -s conftest.err
23668 } && test -s conftest$ac_exeext &&
23669 $as_test_x conftest$ac_exeext; then
23670 gt_cv_func_gnugettext1_libintl=yes
23672 echo "$as_me: failed program was:" >&5
23673 sed 's/^/| /' conftest.$ac_ext >&5
23675 gt_cv_func_gnugettext1_libintl=no
23678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23679 conftest$ac_exeext conftest.$ac_ext
23680 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23681 LIBS="$LIBS $LIBICONV"
23682 cat >conftest.$ac_ext <<_ACEOF
23685 cat confdefs.h >>conftest.$ac_ext
23686 cat >>conftest.$ac_ext <<_ACEOF
23687 /* end confdefs.h. */
23688 #include <libintl.h>
23689 extern int _nl_msg_cat_cntr;
23694 const char *_nl_expand_alias (const char *);
23698 bindtextdomain ("", "");
23699 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23704 rm -f conftest.$ac_objext conftest$ac_exeext
23705 if { (ac_try="$ac_link"
23706 case "(($ac_try" in
23707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23708 *) ac_try_echo=$ac_try;;
23710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23711 (eval "$ac_link") 2>conftest.er1
23713 grep -v '^ *+' conftest.er1 >conftest.err
23715 cat conftest.err >&5
23716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23717 (exit $ac_status); } && {
23718 test -z "$ac_c_werror_flag" ||
23719 test ! -s conftest.err
23720 } && test -s conftest$ac_exeext &&
23721 $as_test_x conftest$ac_exeext; then
23722 LIBINTL="$LIBINTL $LIBICONV"
23723 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23724 gt_cv_func_gnugettext1_libintl=yes
23727 echo "$as_me: failed program was:" >&5
23728 sed 's/^/| /' conftest.$ac_ext >&5
23733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23734 conftest$ac_exeext conftest.$ac_ext
23736 CPPFLAGS="$gt_save_CPPFLAGS"
23737 LIBS="$gt_save_LIBS"
23739 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23740 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
23743 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23744 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23745 && test "$PACKAGE" != gettext-runtime \
23746 && test "$PACKAGE" != gettext-tools; }; then
23747 gt_use_preinstalled_gnugettext=yes
23755 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23756 nls_cv_use_gnu_gettext=yes
23760 if test "$nls_cv_use_gnu_gettext" = "yes"; then
23761 BUILD_INCLUDED_LIBINTL=yes
23762 USE_INCLUDED_LIBINTL=yes
23763 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
23764 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
23765 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23769 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23770 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23775 if test -n "$INTL_MACOSX_LIBS"; then
23776 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23777 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23778 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23779 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23783 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23784 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23786 cat >>confdefs.h <<\_ACEOF
23787 #define ENABLE_NLS 1
23795 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23796 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23797 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23798 echo "${ECHO_T}$USE_NLS" >&6; }
23799 if test "$USE_NLS" = "yes"; then
23800 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23801 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23802 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23803 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23804 gt_source="external libintl"
23809 gt_source="included intl directory"
23811 { echo "$as_me:$LINENO: result: $gt_source" >&5
23812 echo "${ECHO_T}$gt_source" >&6; }
23815 if test "$USE_NLS" = "yes"; then
23817 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23818 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23819 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23820 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23821 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23822 echo "${ECHO_T}$LIBINTL" >&6; }
23824 for element in $INCINTL; do
23826 for x in $CPPFLAGS; do
23828 acl_save_prefix="$prefix"
23829 prefix="$acl_final_prefix"
23830 acl_save_exec_prefix="$exec_prefix"
23831 exec_prefix="$acl_final_exec_prefix"
23833 exec_prefix="$acl_save_exec_prefix"
23834 prefix="$acl_save_prefix"
23836 if test "X$x" = "X$element"; then
23841 if test -z "$haveit"; then
23842 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23849 cat >>confdefs.h <<\_ACEOF
23850 #define HAVE_GETTEXT 1
23854 cat >>confdefs.h <<\_ACEOF
23855 #define HAVE_DCGETTEXT 1
23864 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23865 BUILD_INCLUDED_LIBINTL=yes
23872 nls_cv_header_intl=
23873 nls_cv_header_libgt=
23885 if test "$USE_INCLUDED_LIBINTL" = yes; then
23886 INTLOBJS="\$(GETTOBJS)"
23890 INTL_LIBTOOL_SUFFIX_PREFIX=
23894 INTLLIBS="$LIBINTL"
23906 support_postgresql=no
23908 support_smartalloc=yes
23909 support_readline=yes
23913 support_wx_console=no
23918 support_static_tools=no
23919 support_static_fd=no
23920 support_static_sd=no
23921 support_static_dir=no
23922 support_static_cons=no
23924 build_client_only=no
23932 # Check whether --enable-gnome was given.
23933 if test "${enable_gnome+set}" = set; then
23934 enableval=$enable_gnome;
23935 if test x$enableval = xyes; then
23944 if test x$support_gnome = xyes; then
23945 abc=`$PKGCONFIG --exists libgnomeui-2.0`
23947 if test $pkg = 0; then
23948 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
23949 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
23950 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
23951 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
23956 GNOME_DIR=src/gnome2-console
23957 gnome_version="Version 2.x"
23959 { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
23960 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
23961 { (exit 1); exit 1; }; }
23966 # Check whether --enable-bat was given.
23967 if test "${enable_bat+set}" = set; then
23968 enableval=$enable_bat;
23969 if test x$enableval = xyes; then
23971 cat >>confdefs.h <<\_ACEOF
23983 if test x$support_bat = xyes; then
23984 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
23986 if test $pkg = 0; then
23987 BAT_DIR=src/qt-console
23989 { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
23990 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
23991 { (exit 1); exit 1; }; }
24001 if test x$support_bat = xyes; then
24002 { echo "$as_me:$LINENO: checking for qwt support" >&5
24003 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
24005 # Check whether --with-qwt was given.
24006 if test "${with_qwt+set}" = set; then
24008 case "$with_qwt" in
24013 if test -f ${with_qwt}/include/qwt.h; then
24014 QWT_INC="${with_qwt}/include"
24015 QWT_LDFLAGS="-L${with_qwt}/lib"
24026 if test $no_qwt = no; then
24027 if test x$QWT_INC = x; then
24028 for root in /usr /usr/local; do
24029 for ver in qwt qwt5 qwt-qt4; do
24030 if test -f ${root}/include/${ver}/qwt.h; then
24031 QWT_INC="${root}/include/${ver}"
24032 if test -d ${root}/lib64/; then
24033 QWT_LDFLAGS="-L${root}/lib64"
24034 elif test -d ${root}/lib/64/; then
24035 QWT_LDFLAGS="-L${root}/64"
24037 QWT_LDFLAGS="-L${root}/lib"
24048 if test x$QWT_INC = x; then
24049 { echo "$as_me:$LINENO: result: no" >&5
24050 echo "${ECHO_T}no" >&6; }
24053 cat >>confdefs.h <<\_ACEOF
24057 { echo "$as_me:$LINENO: result: yes" >&5
24058 echo "${ECHO_T}yes" >&6; }
24068 # Check whether --enable-bwx-console was given.
24069 if test "${enable_bwx_console+set}" = set; then
24070 enableval=$enable_bwx_console;
24071 if test x$enableval = xyes; then
24072 support_wx_console=yes
24080 if test x$support_wx_console = xyes; then
24081 abc=`$WXCONFIG $WXFLAGS --cppflags`
24083 if test $pkg = 0; then
24084 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24085 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24086 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24090 WX_DIR=src/wx-console
24093 echo "wx-config program not found. bwx-console disabled."
24095 support_wx_console=no
24100 # Check whether --enable-tray-monitor was given.
24101 if test "${enable_tray_monitor+set}" = set; then
24102 enableval=$enable_tray_monitor;
24103 if test x$enableval = xyes; then
24104 support_tray_monitor=yes
24112 if test x$support_tray_monitor = xyes; then
24113 abc=`$PKGCONFIG --exists gtk+-2.0`
24115 if test $pkg = 0; then
24116 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24117 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24120 TRAY_MONITOR_DIR=src/tray-monitor
24121 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24123 if test $pkg = 0; then
24125 cat >>confdefs.h <<\_ACEOF
24126 #define HAVE_GTK_2_4 1
24134 # Check whether --enable-smartalloc was given.
24135 if test "${enable_smartalloc+set}" = set; then
24136 enableval=$enable_smartalloc;
24137 if test x$enableval = xno; then
24138 support_smartalloc=no
24145 if test x$support_smartalloc = xyes; then
24147 cat >>confdefs.h <<\_ACEOF
24148 #define SMARTALLOC 1
24153 # Check whether --enable-static-tools was given.
24154 if test "${enable_static_tools+set}" = set; then
24155 enableval=$enable_static_tools;
24156 if test x$enableval = xyes; then
24157 support_static_tools=yes
24165 if test x$support_static_tools = xyes; then
24166 TTOOL_LDFLAGS="-static"
24170 # Check whether --enable-static-fd was given.
24171 if test "${enable_static_fd+set}" = set; then
24172 enableval=$enable_static_fd;
24173 if test x$enableval = xyes; then
24174 support_static_fd=yes
24182 if test x$support_static_fd = xyes; then
24183 STATIC_FD="static-bacula-fd"
24187 # Check whether --enable-static-sd was given.
24188 if test "${enable_static_sd+set}" = set; then
24189 enableval=$enable_static_sd;
24190 if test x$enableval = xyes; then
24191 support_static_sd=yes
24199 if test x$support_static_sd = xyes; then
24200 STATIC_SD="static-bacula-sd"
24204 # Check whether --enable-static-dir was given.
24205 if test "${enable_static_dir+set}" = set; then
24206 enableval=$enable_static_dir;
24207 if test x$enableval = xyes; then
24208 support_static_dir=yes
24216 if test x$support_static_dir = xyes; then
24217 STATIC_DIR="static-bacula-dir"
24221 # Check whether --enable-static-cons was given.
24222 if test "${enable_static_cons+set}" = set; then
24223 enableval=$enable_static_cons;
24224 if test x$enableval = xyes; then
24225 support_static_cons=yes
24235 if test x$support_static_cons = xyes; then
24236 STATIC_CONS="static-bconsole"
24237 STATIC_GNOME_CONS="static-bgnome-console"
24238 STATIC_WX_CONS="static-bwx-console"
24244 # Check whether --enable-client-only was given.
24245 if test "${enable_client_only+set}" = set; then
24246 enableval=$enable_client_only;
24247 if test x$enableval = xyes; then
24248 build_client_only=yes
24256 if test x$build_client_only = xno; then
24263 # Check whether --enable-build-dird was given.
24264 if test "${enable_build_dird+set}" = set; then
24265 enableval=$enable_build_dird;
24266 if test x$enableval = xno; then
24273 if test x$build_dird = xyes; then
24274 DIRD_DIR="src/dird"
24275 DIR_TOOLS="DIRTOOLS"
24278 DIR_TOOLS="NODIRTOOLS"
24283 # Check whether --enable-build-stored was given.
24284 if test "${enable_build_stored+set}" = set; then
24285 enableval=$enable_build_stored;
24286 if test x$enableval = xno; then
24293 if test x$build_stored = xyes; then
24294 STORED_DIR="src/stored"
24300 # Check whether --enable-conio was given.
24301 if test "${enable_conio+set}" = set; then
24302 enableval=$enable_conio;
24303 if test x$enableval = xno; then
24313 # Check whether --enable-ipv6 was given.
24314 if test "${enable_ipv6+set}" = set; then
24315 enableval=$enable_ipv6;
24316 if test x$enableval = xno; then
24324 if test x$support_ipv6 = xyes; then
24325 cat >conftest.$ac_ext <<_ACEOF
24328 cat confdefs.h >>conftest.$ac_ext
24329 cat >>conftest.$ac_ext <<_ACEOF
24330 /* end confdefs.h. */
24331 #include <sys/types.h>
24332 #include <sys/socket.h>
24333 #include <netinet/in.h>
24337 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24342 rm -f conftest.$ac_objext conftest$ac_exeext
24343 if { (ac_try="$ac_link"
24344 case "(($ac_try" in
24345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24346 *) ac_try_echo=$ac_try;;
24348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24349 (eval "$ac_link") 2>conftest.er1
24351 grep -v '^ *+' conftest.er1 >conftest.err
24353 cat conftest.err >&5
24354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24355 (exit $ac_status); } && {
24356 test -z "$ac_c_werror_flag" ||
24357 test ! -s conftest.err
24358 } && test -s conftest$ac_exeext &&
24359 $as_test_x conftest$ac_exeext; then
24362 echo "$as_me: failed program was:" >&5
24363 sed 's/^/| /' conftest.$ac_ext >&5
24368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24369 conftest$ac_exeext conftest.$ac_ext
24372 if test x$support_ipv6 = xyes; then
24374 cat >>confdefs.h <<\_ACEOF
24375 #define HAVE_IPV6 1
24381 if test x$support_conio = xyes; then
24382 if test "${ac_cv_header_termcap_h+set}" = set; then
24383 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24384 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24385 if test "${ac_cv_header_termcap_h+set}" = set; then
24386 echo $ECHO_N "(cached) $ECHO_C" >&6
24388 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24389 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24391 # Is the header compilable?
24392 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
24393 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
24394 cat >conftest.$ac_ext <<_ACEOF
24397 cat confdefs.h >>conftest.$ac_ext
24398 cat >>conftest.$ac_ext <<_ACEOF
24399 /* end confdefs.h. */
24400 $ac_includes_default
24401 #include <termcap.h>
24403 rm -f conftest.$ac_objext
24404 if { (ac_try="$ac_compile"
24405 case "(($ac_try" in
24406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24407 *) ac_try_echo=$ac_try;;
24409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24410 (eval "$ac_compile") 2>conftest.er1
24412 grep -v '^ *+' conftest.er1 >conftest.err
24414 cat conftest.err >&5
24415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24416 (exit $ac_status); } && {
24417 test -z "$ac_c_werror_flag" ||
24418 test ! -s conftest.err
24419 } && test -s conftest.$ac_objext; then
24420 ac_header_compiler=yes
24422 echo "$as_me: failed program was:" >&5
24423 sed 's/^/| /' conftest.$ac_ext >&5
24425 ac_header_compiler=no
24428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24429 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24430 echo "${ECHO_T}$ac_header_compiler" >&6; }
24432 # Is the header present?
24433 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
24434 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
24435 cat >conftest.$ac_ext <<_ACEOF
24438 cat confdefs.h >>conftest.$ac_ext
24439 cat >>conftest.$ac_ext <<_ACEOF
24440 /* end confdefs.h. */
24441 #include <termcap.h>
24443 if { (ac_try="$ac_cpp conftest.$ac_ext"
24444 case "(($ac_try" in
24445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24446 *) ac_try_echo=$ac_try;;
24448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24449 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24451 grep -v '^ *+' conftest.er1 >conftest.err
24453 cat conftest.err >&5
24454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24455 (exit $ac_status); } >/dev/null && {
24456 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24457 test ! -s conftest.err
24459 ac_header_preproc=yes
24461 echo "$as_me: failed program was:" >&5
24462 sed 's/^/| /' conftest.$ac_ext >&5
24464 ac_header_preproc=no
24467 rm -f conftest.err conftest.$ac_ext
24468 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24469 echo "${ECHO_T}$ac_header_preproc" >&6; }
24471 # So? What about this header?
24472 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24474 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
24475 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24476 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
24477 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
24478 ac_header_preproc=yes
24481 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
24482 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
24483 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
24484 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
24485 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
24486 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
24487 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
24488 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
24489 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
24490 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
24491 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
24492 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
24496 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24497 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24498 if test "${ac_cv_header_termcap_h+set}" = set; then
24499 echo $ECHO_N "(cached) $ECHO_C" >&6
24501 ac_cv_header_termcap_h=$ac_header_preproc
24503 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24504 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24507 if test $ac_cv_header_termcap_h = yes; then
24508 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24509 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24510 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24511 echo $ECHO_N "(cached) $ECHO_C" >&6
24513 ac_check_lib_save_LIBS=$LIBS
24514 LIBS="-ltermcap $LIBS"
24515 cat >conftest.$ac_ext <<_ACEOF
24518 cat confdefs.h >>conftest.$ac_ext
24519 cat >>conftest.$ac_ext <<_ACEOF
24520 /* end confdefs.h. */
24522 /* Override any GCC internal prototype to avoid an error.
24523 Use char because int might match the return type of a GCC
24524 builtin and then its argument prototype would still apply. */
24537 rm -f conftest.$ac_objext conftest$ac_exeext
24538 if { (ac_try="$ac_link"
24539 case "(($ac_try" in
24540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24541 *) ac_try_echo=$ac_try;;
24543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24544 (eval "$ac_link") 2>conftest.er1
24546 grep -v '^ *+' conftest.er1 >conftest.err
24548 cat conftest.err >&5
24549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24550 (exit $ac_status); } && {
24551 test -z "$ac_c_werror_flag" ||
24552 test ! -s conftest.err
24553 } && test -s conftest$ac_exeext &&
24554 $as_test_x conftest$ac_exeext; then
24555 ac_cv_lib_termcap_tgetent=yes
24557 echo "$as_me: failed program was:" >&5
24558 sed 's/^/| /' conftest.$ac_ext >&5
24560 ac_cv_lib_termcap_tgetent=no
24563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24564 conftest$ac_exeext conftest.$ac_ext
24565 LIBS=$ac_check_lib_save_LIBS
24567 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24568 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24569 if test $ac_cv_lib_termcap_tgetent = yes; then
24570 CONS_LIBS="-ltermcap"
24574 support_readline=no
24576 cat >>confdefs.h <<\_ACEOF
24577 #define HAVE_CONIO 1
24582 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
24583 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
24584 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
24585 echo $ECHO_N "(cached) $ECHO_C" >&6
24587 ac_check_lib_save_LIBS=$LIBS
24588 LIBS="-lncurses $LIBS"
24589 cat >conftest.$ac_ext <<_ACEOF
24592 cat confdefs.h >>conftest.$ac_ext
24593 cat >>conftest.$ac_ext <<_ACEOF
24594 /* end confdefs.h. */
24596 /* Override any GCC internal prototype to avoid an error.
24597 Use char because int might match the return type of a GCC
24598 builtin and then its argument prototype would still apply. */
24611 rm -f conftest.$ac_objext conftest$ac_exeext
24612 if { (ac_try="$ac_link"
24613 case "(($ac_try" in
24614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24615 *) ac_try_echo=$ac_try;;
24617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24618 (eval "$ac_link") 2>conftest.er1
24620 grep -v '^ *+' conftest.er1 >conftest.err
24622 cat conftest.err >&5
24623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24624 (exit $ac_status); } && {
24625 test -z "$ac_c_werror_flag" ||
24626 test ! -s conftest.err
24627 } && test -s conftest$ac_exeext &&
24628 $as_test_x conftest$ac_exeext; then
24629 ac_cv_lib_ncurses_tgetent=yes
24631 echo "$as_me: failed program was:" >&5
24632 sed 's/^/| /' conftest.$ac_ext >&5
24634 ac_cv_lib_ncurses_tgetent=no
24637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24638 conftest$ac_exeext conftest.$ac_ext
24639 LIBS=$ac_check_lib_save_LIBS
24641 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
24642 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
24643 if test $ac_cv_lib_ncurses_tgetent = yes; then
24644 CONS_LIBS="-lncurses"
24648 support_readline=no
24650 cat >>confdefs.h <<\_ACEOF
24651 #define HAVE_CONIO 1
24664 for ac_header in curses.h
24666 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24668 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24671 echo $ECHO_N "(cached) $ECHO_C" >&6
24673 ac_res=`eval echo '${'$as_ac_Header'}'`
24674 { echo "$as_me:$LINENO: result: $ac_res" >&5
24675 echo "${ECHO_T}$ac_res" >&6; }
24677 # Is the header compilable?
24678 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24679 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24680 cat >conftest.$ac_ext <<_ACEOF
24683 cat confdefs.h >>conftest.$ac_ext
24684 cat >>conftest.$ac_ext <<_ACEOF
24685 /* end confdefs.h. */
24686 $ac_includes_default
24687 #include <$ac_header>
24689 rm -f conftest.$ac_objext
24690 if { (ac_try="$ac_compile"
24691 case "(($ac_try" in
24692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24693 *) ac_try_echo=$ac_try;;
24695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24696 (eval "$ac_compile") 2>conftest.er1
24698 grep -v '^ *+' conftest.er1 >conftest.err
24700 cat conftest.err >&5
24701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24702 (exit $ac_status); } && {
24703 test -z "$ac_c_werror_flag" ||
24704 test ! -s conftest.err
24705 } && test -s conftest.$ac_objext; then
24706 ac_header_compiler=yes
24708 echo "$as_me: failed program was:" >&5
24709 sed 's/^/| /' conftest.$ac_ext >&5
24711 ac_header_compiler=no
24714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24715 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24716 echo "${ECHO_T}$ac_header_compiler" >&6; }
24718 # Is the header present?
24719 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24720 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24721 cat >conftest.$ac_ext <<_ACEOF
24724 cat confdefs.h >>conftest.$ac_ext
24725 cat >>conftest.$ac_ext <<_ACEOF
24726 /* end confdefs.h. */
24727 #include <$ac_header>
24729 if { (ac_try="$ac_cpp conftest.$ac_ext"
24730 case "(($ac_try" in
24731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24732 *) ac_try_echo=$ac_try;;
24734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24735 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24737 grep -v '^ *+' conftest.er1 >conftest.err
24739 cat conftest.err >&5
24740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24741 (exit $ac_status); } >/dev/null && {
24742 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24743 test ! -s conftest.err
24745 ac_header_preproc=yes
24747 echo "$as_me: failed program was:" >&5
24748 sed 's/^/| /' conftest.$ac_ext >&5
24750 ac_header_preproc=no
24753 rm -f conftest.err conftest.$ac_ext
24754 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24755 echo "${ECHO_T}$ac_header_preproc" >&6; }
24757 # So? What about this header?
24758 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24760 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24761 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24763 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24764 ac_header_preproc=yes
24767 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24768 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24769 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24770 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24771 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24772 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24773 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24774 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24776 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24777 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24778 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24782 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24785 echo $ECHO_N "(cached) $ECHO_C" >&6
24787 eval "$as_ac_Header=\$ac_header_preproc"
24789 ac_res=`eval echo '${'$as_ac_Header'}'`
24790 { echo "$as_me:$LINENO: result: $ac_res" >&5
24791 echo "${ECHO_T}$ac_res" >&6; }
24794 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24795 cat >>confdefs.h <<_ACEOF
24796 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24803 { echo "$as_me:$LINENO: checking for term.h" >&5
24804 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24805 if test "${ac_cv_header_term_h+set}" = set; then
24806 echo $ECHO_N "(cached) $ECHO_C" >&6
24808 cat >conftest.$ac_ext <<_ACEOF
24811 cat confdefs.h >>conftest.$ac_ext
24812 cat >>conftest.$ac_ext <<_ACEOF
24813 /* end confdefs.h. */
24815 #include <curses.h>
24821 rm -f conftest.$ac_objext
24822 if { (ac_try="$ac_compile"
24823 case "(($ac_try" in
24824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24825 *) ac_try_echo=$ac_try;;
24827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24828 (eval "$ac_compile") 2>conftest.er1
24830 grep -v '^ *+' conftest.er1 >conftest.err
24832 cat conftest.err >&5
24833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24834 (exit $ac_status); } && {
24835 test -z "$ac_c_werror_flag" ||
24836 test ! -s conftest.err
24837 } && test -s conftest.$ac_objext; then
24838 ac_cv_header_term_h=yes
24840 echo "$as_me: failed program was:" >&5
24841 sed 's/^/| /' conftest.$ac_ext >&5
24843 ac_cv_header_term_h=no
24846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24848 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
24849 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
24850 if test $ac_cv_header_term_h = yes; then
24851 { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
24852 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
24853 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
24854 echo $ECHO_N "(cached) $ECHO_C" >&6
24856 ac_check_lib_save_LIBS=$LIBS
24857 LIBS="-lcurses $LIBS"
24858 cat >conftest.$ac_ext <<_ACEOF
24861 cat confdefs.h >>conftest.$ac_ext
24862 cat >>conftest.$ac_ext <<_ACEOF
24863 /* end confdefs.h. */
24865 /* Override any GCC internal prototype to avoid an error.
24866 Use char because int might match the return type of a GCC
24867 builtin and then its argument prototype would still apply. */
24880 rm -f conftest.$ac_objext conftest$ac_exeext
24881 if { (ac_try="$ac_link"
24882 case "(($ac_try" in
24883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24884 *) ac_try_echo=$ac_try;;
24886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24887 (eval "$ac_link") 2>conftest.er1
24889 grep -v '^ *+' conftest.er1 >conftest.err
24891 cat conftest.err >&5
24892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24893 (exit $ac_status); } && {
24894 test -z "$ac_c_werror_flag" ||
24895 test ! -s conftest.err
24896 } && test -s conftest$ac_exeext &&
24897 $as_test_x conftest$ac_exeext; then
24898 ac_cv_lib_curses_tgetent=yes
24900 echo "$as_me: failed program was:" >&5
24901 sed 's/^/| /' conftest.$ac_ext >&5
24903 ac_cv_lib_curses_tgetent=no
24906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24907 conftest$ac_exeext conftest.$ac_ext
24908 LIBS=$ac_check_lib_save_LIBS
24910 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
24911 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
24912 if test $ac_cv_lib_curses_tgetent = yes; then
24913 CONS_LIBS="-lcurses"
24917 support_readline=no
24919 cat >>confdefs.h <<\_ACEOF
24920 #define HAVE_CONIO 1
24928 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
24939 # Check whether --enable-readline was given.
24940 if test "${enable_readline+set}" = set; then
24941 enableval=$enable_readline;
24942 if test x$enableval = xno; then
24943 support_readline=no
24952 if test x$support_readline = xyes; then
24954 # Check whether --with-readline was given.
24955 if test "${with_readline+set}" = set; then
24956 withval=$with_readline;
24957 case "$with_readline" in
24962 if test -f ${with_readline}/readline.h; then
24963 CONS_INC="-I${with_readline}"
24964 CONS_LDFLAGS="-L$with_readline"
24965 elif test -f ${with_readline}/include/readline/readline.h; then
24966 CONS_INC="-I${with_readline}/include/readline"
24967 CONS_LDFLAGS="-L${with_readline}/lib"
24968 with_readline="${with_readline}/include/readline"
24970 with_readline="/usr/include/readline"
24973 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
24974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24975 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
24976 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
24977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24978 echo $ECHO_N "(cached) $ECHO_C" >&6
24980 ac_res=`eval echo '${'$as_ac_Header'}'`
24981 { echo "$as_me:$LINENO: result: $ac_res" >&5
24982 echo "${ECHO_T}$ac_res" >&6; }
24984 # Is the header compilable?
24985 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
24986 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
24987 cat >conftest.$ac_ext <<_ACEOF
24990 cat confdefs.h >>conftest.$ac_ext
24991 cat >>conftest.$ac_ext <<_ACEOF
24992 /* end confdefs.h. */
24993 $ac_includes_default
24994 #include <${with_readline}/readline.h>
24996 rm -f conftest.$ac_objext
24997 if { (ac_try="$ac_compile"
24998 case "(($ac_try" in
24999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25000 *) ac_try_echo=$ac_try;;
25002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25003 (eval "$ac_compile") 2>conftest.er1
25005 grep -v '^ *+' conftest.er1 >conftest.err
25007 cat conftest.err >&5
25008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25009 (exit $ac_status); } && {
25010 test -z "$ac_c_werror_flag" ||
25011 test ! -s conftest.err
25012 } && test -s conftest.$ac_objext; then
25013 ac_header_compiler=yes
25015 echo "$as_me: failed program was:" >&5
25016 sed 's/^/| /' conftest.$ac_ext >&5
25018 ac_header_compiler=no
25021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25022 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25023 echo "${ECHO_T}$ac_header_compiler" >&6; }
25025 # Is the header present?
25026 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25027 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
25028 cat >conftest.$ac_ext <<_ACEOF
25031 cat confdefs.h >>conftest.$ac_ext
25032 cat >>conftest.$ac_ext <<_ACEOF
25033 /* end confdefs.h. */
25034 #include <${with_readline}/readline.h>
25036 if { (ac_try="$ac_cpp conftest.$ac_ext"
25037 case "(($ac_try" in
25038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25039 *) ac_try_echo=$ac_try;;
25041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25042 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25044 grep -v '^ *+' conftest.er1 >conftest.err
25046 cat conftest.err >&5
25047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25048 (exit $ac_status); } >/dev/null && {
25049 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25050 test ! -s conftest.err
25052 ac_header_preproc=yes
25054 echo "$as_me: failed program was:" >&5
25055 sed 's/^/| /' conftest.$ac_ext >&5
25057 ac_header_preproc=no
25060 rm -f conftest.err conftest.$ac_ext
25061 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25062 echo "${ECHO_T}$ac_header_preproc" >&6; }
25064 # So? What about this header?
25065 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25067 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25068 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25069 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25070 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25071 ac_header_preproc=yes
25074 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25075 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25076 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
25077 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
25078 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25079 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25080 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25081 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25082 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25083 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25084 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25085 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25089 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25090 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25091 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25092 echo $ECHO_N "(cached) $ECHO_C" >&6
25094 eval "$as_ac_Header=\$ac_header_preproc"
25096 ac_res=`eval echo '${'$as_ac_Header'}'`
25097 { echo "$as_me:$LINENO: result: $ac_res" >&5
25098 echo "${ECHO_T}$ac_res" >&6; }
25101 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25104 cat >>confdefs.h <<\_ACEOF
25105 #define HAVE_READLINE 1
25108 CONS_LIBS="-lreadline -lhistory -ltermcap"
25114 echo "readline.h not found. readline turned off ..."
25126 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25127 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25128 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25129 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25130 echo $ECHO_N "(cached) $ECHO_C" >&6
25132 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25133 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25135 # Is the header compilable?
25136 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25137 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
25138 cat >conftest.$ac_ext <<_ACEOF
25141 cat confdefs.h >>conftest.$ac_ext
25142 cat >>conftest.$ac_ext <<_ACEOF
25143 /* end confdefs.h. */
25144 $ac_includes_default
25145 #include </usr/include/readline/readline.h>
25147 rm -f conftest.$ac_objext
25148 if { (ac_try="$ac_compile"
25149 case "(($ac_try" in
25150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25151 *) ac_try_echo=$ac_try;;
25153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25154 (eval "$ac_compile") 2>conftest.er1
25156 grep -v '^ *+' conftest.er1 >conftest.err
25158 cat conftest.err >&5
25159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25160 (exit $ac_status); } && {
25161 test -z "$ac_c_werror_flag" ||
25162 test ! -s conftest.err
25163 } && test -s conftest.$ac_objext; then
25164 ac_header_compiler=yes
25166 echo "$as_me: failed program was:" >&5
25167 sed 's/^/| /' conftest.$ac_ext >&5
25169 ac_header_compiler=no
25172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25173 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25174 echo "${ECHO_T}$ac_header_compiler" >&6; }
25176 # Is the header present?
25177 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25178 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
25179 cat >conftest.$ac_ext <<_ACEOF
25182 cat confdefs.h >>conftest.$ac_ext
25183 cat >>conftest.$ac_ext <<_ACEOF
25184 /* end confdefs.h. */
25185 #include </usr/include/readline/readline.h>
25187 if { (ac_try="$ac_cpp conftest.$ac_ext"
25188 case "(($ac_try" in
25189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25190 *) ac_try_echo=$ac_try;;
25192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25195 grep -v '^ *+' conftest.er1 >conftest.err
25197 cat conftest.err >&5
25198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25199 (exit $ac_status); } >/dev/null && {
25200 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25201 test ! -s conftest.err
25203 ac_header_preproc=yes
25205 echo "$as_me: failed program was:" >&5
25206 sed 's/^/| /' conftest.$ac_ext >&5
25208 ac_header_preproc=no
25211 rm -f conftest.err conftest.$ac_ext
25212 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25213 echo "${ECHO_T}$ac_header_preproc" >&6; }
25215 # So? What about this header?
25216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25218 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25219 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25220 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25221 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25222 ac_header_preproc=yes
25225 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25226 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25227 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
25228 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
25229 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25230 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25231 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25232 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25233 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25234 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25235 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25236 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25240 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25241 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25242 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25243 echo $ECHO_N "(cached) $ECHO_C" >&6
25245 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25247 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25248 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25251 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
25254 cat >>confdefs.h <<\_ACEOF
25255 #define HAVE_READLINE 1
25259 CONS_INC="-I/usr/include/readline"
25260 CONS_LIBS="-lreadline -ltermcap"
25264 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25266 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25267 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25269 echo $ECHO_N "(cached) $ECHO_C" >&6
25271 ac_res=`eval echo '${'$as_ac_Header'}'`
25272 { echo "$as_me:$LINENO: result: $ac_res" >&5
25273 echo "${ECHO_T}$ac_res" >&6; }
25275 # Is the header compilable?
25276 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25277 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
25278 cat >conftest.$ac_ext <<_ACEOF
25281 cat confdefs.h >>conftest.$ac_ext
25282 cat >>conftest.$ac_ext <<_ACEOF
25283 /* end confdefs.h. */
25284 $ac_includes_default
25285 #include <${TOP_DIR}/depkgs/readline/readline.h>
25287 rm -f conftest.$ac_objext
25288 if { (ac_try="$ac_compile"
25289 case "(($ac_try" in
25290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25291 *) ac_try_echo=$ac_try;;
25293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25294 (eval "$ac_compile") 2>conftest.er1
25296 grep -v '^ *+' conftest.er1 >conftest.err
25298 cat conftest.err >&5
25299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25300 (exit $ac_status); } && {
25301 test -z "$ac_c_werror_flag" ||
25302 test ! -s conftest.err
25303 } && test -s conftest.$ac_objext; then
25304 ac_header_compiler=yes
25306 echo "$as_me: failed program was:" >&5
25307 sed 's/^/| /' conftest.$ac_ext >&5
25309 ac_header_compiler=no
25312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25313 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25314 echo "${ECHO_T}$ac_header_compiler" >&6; }
25316 # Is the header present?
25317 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
25318 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
25319 cat >conftest.$ac_ext <<_ACEOF
25322 cat confdefs.h >>conftest.$ac_ext
25323 cat >>conftest.$ac_ext <<_ACEOF
25324 /* end confdefs.h. */
25325 #include <${TOP_DIR}/depkgs/readline/readline.h>
25327 if { (ac_try="$ac_cpp conftest.$ac_ext"
25328 case "(($ac_try" in
25329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25330 *) ac_try_echo=$ac_try;;
25332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25333 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25335 grep -v '^ *+' conftest.er1 >conftest.err
25337 cat conftest.err >&5
25338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25339 (exit $ac_status); } >/dev/null && {
25340 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25341 test ! -s conftest.err
25343 ac_header_preproc=yes
25345 echo "$as_me: failed program was:" >&5
25346 sed 's/^/| /' conftest.$ac_ext >&5
25348 ac_header_preproc=no
25351 rm -f conftest.err conftest.$ac_ext
25352 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25353 echo "${ECHO_T}$ac_header_preproc" >&6; }
25355 # So? What about this header?
25356 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25358 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25359 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25360 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
25361 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
25362 ac_header_preproc=yes
25365 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
25366 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
25367 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
25368 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
25369 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
25370 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
25371 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25372 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25373 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
25374 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25375 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
25376 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25380 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25381 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25383 echo $ECHO_N "(cached) $ECHO_C" >&6
25385 eval "$as_ac_Header=\$ac_header_preproc"
25387 ac_res=`eval echo '${'$as_ac_Header'}'`
25388 { echo "$as_me:$LINENO: result: $ac_res" >&5
25389 echo "${ECHO_T}$ac_res" >&6; }
25392 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25395 cat >>confdefs.h <<\_ACEOF
25396 #define HAVE_READLINE 1
25400 CONS_INC="-I${TOP_DIR}/depkgs/readline"
25401 CONS_LIBS="-lreadline -lhistory -ltermcap"
25402 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
25403 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
25408 echo "readline.h not found. readline turned off ..."
25435 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25436 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25437 if test "${ac_cv_header_stat_broken+set}" = set; then
25438 echo $ECHO_N "(cached) $ECHO_C" >&6
25440 cat >conftest.$ac_ext <<_ACEOF
25443 cat confdefs.h >>conftest.$ac_ext
25444 cat >>conftest.$ac_ext <<_ACEOF
25445 /* end confdefs.h. */
25446 #include <sys/types.h>
25447 #include <sys/stat.h>
25449 #if defined S_ISBLK && defined S_IFDIR
25450 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25453 #if defined S_ISBLK && defined S_IFCHR
25454 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25457 #if defined S_ISLNK && defined S_IFREG
25458 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25461 #if defined S_ISSOCK && defined S_IFREG
25462 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25466 rm -f conftest.$ac_objext
25467 if { (ac_try="$ac_compile"
25468 case "(($ac_try" in
25469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25470 *) ac_try_echo=$ac_try;;
25472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25473 (eval "$ac_compile") 2>conftest.er1
25475 grep -v '^ *+' conftest.er1 >conftest.err
25477 cat conftest.err >&5
25478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25479 (exit $ac_status); } && {
25480 test -z "$ac_c_werror_flag" ||
25481 test ! -s conftest.err
25482 } && test -s conftest.$ac_objext; then
25483 ac_cv_header_stat_broken=no
25485 echo "$as_me: failed program was:" >&5
25486 sed 's/^/| /' conftest.$ac_ext >&5
25488 ac_cv_header_stat_broken=yes
25491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25493 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25494 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25495 if test $ac_cv_header_stat_broken = yes; then
25497 cat >>confdefs.h <<\_ACEOF
25498 #define STAT_MACROS_BROKEN 1
25508 ac_header_dirent=no
25509 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25510 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25511 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25512 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25514 echo $ECHO_N "(cached) $ECHO_C" >&6
25516 cat >conftest.$ac_ext <<_ACEOF
25519 cat confdefs.h >>conftest.$ac_ext
25520 cat >>conftest.$ac_ext <<_ACEOF
25521 /* end confdefs.h. */
25522 #include <sys/types.h>
25534 rm -f conftest.$ac_objext
25535 if { (ac_try="$ac_compile"
25536 case "(($ac_try" in
25537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25538 *) ac_try_echo=$ac_try;;
25540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25541 (eval "$ac_compile") 2>conftest.er1
25543 grep -v '^ *+' conftest.er1 >conftest.err
25545 cat conftest.err >&5
25546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25547 (exit $ac_status); } && {
25548 test -z "$ac_c_werror_flag" ||
25549 test ! -s conftest.err
25550 } && test -s conftest.$ac_objext; then
25551 eval "$as_ac_Header=yes"
25553 echo "$as_me: failed program was:" >&5
25554 sed 's/^/| /' conftest.$ac_ext >&5
25556 eval "$as_ac_Header=no"
25559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25561 ac_res=`eval echo '${'$as_ac_Header'}'`
25562 { echo "$as_me:$LINENO: result: $ac_res" >&5
25563 echo "${ECHO_T}$ac_res" >&6; }
25564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25565 cat >>confdefs.h <<_ACEOF
25566 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25569 ac_header_dirent=$ac_hdr; break
25573 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25574 if test $ac_header_dirent = dirent.h; then
25575 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25576 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25577 if test "${ac_cv_search_opendir+set}" = set; then
25578 echo $ECHO_N "(cached) $ECHO_C" >&6
25580 ac_func_search_save_LIBS=$LIBS
25581 cat >conftest.$ac_ext <<_ACEOF
25584 cat confdefs.h >>conftest.$ac_ext
25585 cat >>conftest.$ac_ext <<_ACEOF
25586 /* end confdefs.h. */
25588 /* Override any GCC internal prototype to avoid an error.
25589 Use char because int might match the return type of a GCC
25590 builtin and then its argument prototype would still apply. */
25603 for ac_lib in '' dir; do
25604 if test -z "$ac_lib"; then
25605 ac_res="none required"
25608 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25610 rm -f conftest.$ac_objext conftest$ac_exeext
25611 if { (ac_try="$ac_link"
25612 case "(($ac_try" in
25613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25614 *) ac_try_echo=$ac_try;;
25616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25617 (eval "$ac_link") 2>conftest.er1
25619 grep -v '^ *+' conftest.er1 >conftest.err
25621 cat conftest.err >&5
25622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25623 (exit $ac_status); } && {
25624 test -z "$ac_c_werror_flag" ||
25625 test ! -s conftest.err
25626 } && test -s conftest$ac_exeext &&
25627 $as_test_x conftest$ac_exeext; then
25628 ac_cv_search_opendir=$ac_res
25630 echo "$as_me: failed program was:" >&5
25631 sed 's/^/| /' conftest.$ac_ext >&5
25636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25638 if test "${ac_cv_search_opendir+set}" = set; then
25642 if test "${ac_cv_search_opendir+set}" = set; then
25645 ac_cv_search_opendir=no
25647 rm conftest.$ac_ext
25648 LIBS=$ac_func_search_save_LIBS
25650 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25651 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25652 ac_res=$ac_cv_search_opendir
25653 if test "$ac_res" != no; then
25654 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25659 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25660 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25661 if test "${ac_cv_search_opendir+set}" = set; then
25662 echo $ECHO_N "(cached) $ECHO_C" >&6
25664 ac_func_search_save_LIBS=$LIBS
25665 cat >conftest.$ac_ext <<_ACEOF
25668 cat confdefs.h >>conftest.$ac_ext
25669 cat >>conftest.$ac_ext <<_ACEOF
25670 /* end confdefs.h. */
25672 /* Override any GCC internal prototype to avoid an error.
25673 Use char because int might match the return type of a GCC
25674 builtin and then its argument prototype would still apply. */
25687 for ac_lib in '' x; do
25688 if test -z "$ac_lib"; then
25689 ac_res="none required"
25692 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25694 rm -f conftest.$ac_objext conftest$ac_exeext
25695 if { (ac_try="$ac_link"
25696 case "(($ac_try" in
25697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25698 *) ac_try_echo=$ac_try;;
25700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25701 (eval "$ac_link") 2>conftest.er1
25703 grep -v '^ *+' conftest.er1 >conftest.err
25705 cat conftest.err >&5
25706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25707 (exit $ac_status); } && {
25708 test -z "$ac_c_werror_flag" ||
25709 test ! -s conftest.err
25710 } && test -s conftest$ac_exeext &&
25711 $as_test_x conftest$ac_exeext; then
25712 ac_cv_search_opendir=$ac_res
25714 echo "$as_me: failed program was:" >&5
25715 sed 's/^/| /' conftest.$ac_ext >&5
25720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25722 if test "${ac_cv_search_opendir+set}" = set; then
25726 if test "${ac_cv_search_opendir+set}" = set; then
25729 ac_cv_search_opendir=no
25731 rm conftest.$ac_ext
25732 LIBS=$ac_func_search_save_LIBS
25734 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25735 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25736 ac_res=$ac_cv_search_opendir
25737 if test "$ac_res" != no; then
25738 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25751 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
25753 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25754 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25755 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25756 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25757 echo $ECHO_N "(cached) $ECHO_C" >&6
25759 cat >conftest.$ac_ext <<_ACEOF
25762 cat confdefs.h >>conftest.$ac_ext
25763 cat >>conftest.$ac_ext <<_ACEOF
25764 /* end confdefs.h. */
25765 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25766 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25767 #define $ac_func innocuous_$ac_func
25769 /* System header to define __stub macros and hopefully few prototypes,
25770 which can conflict with char $ac_func (); below.
25771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25772 <limits.h> exists even on freestanding compilers. */
25775 # include <limits.h>
25777 # include <assert.h>
25782 /* Override any GCC internal prototype to avoid an error.
25783 Use char because int might match the return type of a GCC
25784 builtin and then its argument prototype would still apply. */
25789 /* The GNU C library defines this for functions which it implements
25790 to always fail with ENOSYS. Some functions are actually named
25791 something starting with __ and the normal name is an alias. */
25792 #if defined __stub_$ac_func || defined __stub___$ac_func
25799 return $ac_func ();
25804 rm -f conftest.$ac_objext conftest$ac_exeext
25805 if { (ac_try="$ac_link"
25806 case "(($ac_try" in
25807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25808 *) ac_try_echo=$ac_try;;
25810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25811 (eval "$ac_link") 2>conftest.er1
25813 grep -v '^ *+' conftest.er1 >conftest.err
25815 cat conftest.err >&5
25816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25817 (exit $ac_status); } && {
25818 test -z "$ac_c_werror_flag" ||
25819 test ! -s conftest.err
25820 } && test -s conftest$ac_exeext &&
25821 $as_test_x conftest$ac_exeext; then
25822 eval "$as_ac_var=yes"
25824 echo "$as_me: failed program was:" >&5
25825 sed 's/^/| /' conftest.$ac_ext >&5
25827 eval "$as_ac_var=no"
25830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25831 conftest$ac_exeext conftest.$ac_ext
25833 ac_res=`eval echo '${'$as_ac_var'}'`
25834 { echo "$as_me:$LINENO: result: $ac_res" >&5
25835 echo "${ECHO_T}$ac_res" >&6; }
25836 if test `eval echo '${'$as_ac_var'}'` = yes; then
25837 cat >>confdefs.h <<_ACEOF
25838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25846 for ac_func in nanosleep nl_langinfo
25848 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25849 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25850 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25851 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25852 echo $ECHO_N "(cached) $ECHO_C" >&6
25854 cat >conftest.$ac_ext <<_ACEOF
25857 cat confdefs.h >>conftest.$ac_ext
25858 cat >>conftest.$ac_ext <<_ACEOF
25859 /* end confdefs.h. */
25860 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25862 #define $ac_func innocuous_$ac_func
25864 /* System header to define __stub macros and hopefully few prototypes,
25865 which can conflict with char $ac_func (); below.
25866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25867 <limits.h> exists even on freestanding compilers. */
25870 # include <limits.h>
25872 # include <assert.h>
25877 /* Override any GCC internal prototype to avoid an error.
25878 Use char because int might match the return type of a GCC
25879 builtin and then its argument prototype would still apply. */
25884 /* The GNU C library defines this for functions which it implements
25885 to always fail with ENOSYS. Some functions are actually named
25886 something starting with __ and the normal name is an alias. */
25887 #if defined __stub_$ac_func || defined __stub___$ac_func
25894 return $ac_func ();
25899 rm -f conftest.$ac_objext conftest$ac_exeext
25900 if { (ac_try="$ac_link"
25901 case "(($ac_try" in
25902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25903 *) ac_try_echo=$ac_try;;
25905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25906 (eval "$ac_link") 2>conftest.er1
25908 grep -v '^ *+' conftest.er1 >conftest.err
25910 cat conftest.err >&5
25911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25912 (exit $ac_status); } && {
25913 test -z "$ac_c_werror_flag" ||
25914 test ! -s conftest.err
25915 } && test -s conftest$ac_exeext &&
25916 $as_test_x conftest$ac_exeext; then
25917 eval "$as_ac_var=yes"
25919 echo "$as_me: failed program was:" >&5
25920 sed 's/^/| /' conftest.$ac_ext >&5
25922 eval "$as_ac_var=no"
25925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25926 conftest$ac_exeext conftest.$ac_ext
25928 ac_res=`eval echo '${'$as_ac_var'}'`
25929 { echo "$as_me:$LINENO: result: $ac_res" >&5
25930 echo "${ECHO_T}$ac_res" >&6; }
25931 if test `eval echo '${'$as_ac_var'}'` = yes; then
25932 cat >>confdefs.h <<_ACEOF
25933 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25940 for ac_header in varargs.h
25942 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25944 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25946 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25947 echo $ECHO_N "(cached) $ECHO_C" >&6
25949 ac_res=`eval echo '${'$as_ac_Header'}'`
25950 { echo "$as_me:$LINENO: result: $ac_res" >&5
25951 echo "${ECHO_T}$ac_res" >&6; }
25953 # Is the header compilable?
25954 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25955 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25956 cat >conftest.$ac_ext <<_ACEOF
25959 cat confdefs.h >>conftest.$ac_ext
25960 cat >>conftest.$ac_ext <<_ACEOF
25961 /* end confdefs.h. */
25962 $ac_includes_default
25963 #include <$ac_header>
25965 rm -f conftest.$ac_objext
25966 if { (ac_try="$ac_compile"
25967 case "(($ac_try" in
25968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25969 *) ac_try_echo=$ac_try;;
25971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25972 (eval "$ac_compile") 2>conftest.er1
25974 grep -v '^ *+' conftest.er1 >conftest.err
25976 cat conftest.err >&5
25977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25978 (exit $ac_status); } && {
25979 test -z "$ac_c_werror_flag" ||
25980 test ! -s conftest.err
25981 } && test -s conftest.$ac_objext; then
25982 ac_header_compiler=yes
25984 echo "$as_me: failed program was:" >&5
25985 sed 's/^/| /' conftest.$ac_ext >&5
25987 ac_header_compiler=no
25990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25991 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25992 echo "${ECHO_T}$ac_header_compiler" >&6; }
25994 # Is the header present?
25995 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25996 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25997 cat >conftest.$ac_ext <<_ACEOF
26000 cat confdefs.h >>conftest.$ac_ext
26001 cat >>conftest.$ac_ext <<_ACEOF
26002 /* end confdefs.h. */
26003 #include <$ac_header>
26005 if { (ac_try="$ac_cpp conftest.$ac_ext"
26006 case "(($ac_try" in
26007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26008 *) ac_try_echo=$ac_try;;
26010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26011 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26013 grep -v '^ *+' conftest.er1 >conftest.err
26015 cat conftest.err >&5
26016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26017 (exit $ac_status); } >/dev/null && {
26018 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26019 test ! -s conftest.err
26021 ac_header_preproc=yes
26023 echo "$as_me: failed program was:" >&5
26024 sed 's/^/| /' conftest.$ac_ext >&5
26026 ac_header_preproc=no
26029 rm -f conftest.err conftest.$ac_ext
26030 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26031 echo "${ECHO_T}$ac_header_preproc" >&6; }
26033 # So? What about this header?
26034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26036 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26037 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26039 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26040 ac_header_preproc=yes
26043 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26044 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26045 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26046 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26047 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26048 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26049 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26050 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26052 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26053 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26054 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26058 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26061 echo $ECHO_N "(cached) $ECHO_C" >&6
26063 eval "$as_ac_Header=\$ac_header_preproc"
26065 ac_res=`eval echo '${'$as_ac_Header'}'`
26066 { echo "$as_me:$LINENO: result: $ac_res" >&5
26067 echo "${ECHO_T}$ac_res" >&6; }
26070 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26071 cat >>confdefs.h <<_ACEOF
26072 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26081 { echo "$as_me:$LINENO: checking for Python support" >&5
26082 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
26084 # Check whether --with-python was given.
26085 if test "${with_python+set}" = set; then
26086 withval=$with_python;
26089 if test "$withval" != "no"; then
26090 if test "$withval" = "yes"; then
26091 for python_root in /usr /usr/local /usr/sfw; do
26092 for ver in python2.2 python2.3 python2.4 python2.5; do
26093 if test -f $python_root/include/${ver}/Python.h; then
26094 PYTHON_INCDIR=-I$python_root/include/${ver}
26095 if test -d $python_root/lib64/${ver}/config; then
26096 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26098 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26105 if test x$PYTHON_INCDIR = x; then
26106 if test -f $prefix/include/Python.h; then
26107 PYTHON_INCDIR=-I$prefix/include
26108 if test -d $prefix/lib64/config; then
26109 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26111 PYTHON_LIBS="-L$prefix/lib/config -lpython"
26114 { echo "$as_me:$LINENO: result: no" >&5
26115 echo "${ECHO_T}no" >&6; }
26116 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26117 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26118 { (exit 1); exit 1; }; }
26122 if test -f $withval/Python.h; then
26123 PYTHON_INCDIR=-I$withval
26124 PYTHON_LIBS="-L$withval/config -lpython"
26125 elif test -f $withval/include/Python.h; then
26126 PYTHON_INCDIR=-I$withval/include
26127 if test -d $withval/lib64/config; then
26128 PYTHON_LIBS="-L$withval/lib64/config -lpython"
26130 PYTHON_LIBS="-L$withval/lib/config -lpython"
26132 elif test -f $withval/include/python/Python.h; then
26133 PYTHON_INCDIR=-I$withval/include/python
26134 if test -d $withval/lib64/python/config; then
26135 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26137 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26140 { echo "$as_me:$LINENO: result: no" >&5
26141 echo "${ECHO_T}no" >&6; }
26142 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26143 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26144 { (exit 1); exit 1; }; }
26148 cat >>confdefs.h <<\_ACEOF
26149 #define HAVE_PYTHON 1
26152 { echo "$as_me:$LINENO: result: yes" >&5
26153 echo "${ECHO_T}yes" >&6; }
26155 { echo "$as_me:$LINENO: checking for more Python libs" >&5
26156 echo "$as_me: checking for more Python libs" >&6;}
26157 saved_LIBS="$LIBS"; LIBS=
26158 { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26159 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26160 if test "${ac_cv_search_shm_open+set}" = set; then
26161 echo $ECHO_N "(cached) $ECHO_C" >&6
26163 ac_func_search_save_LIBS=$LIBS
26164 cat >conftest.$ac_ext <<_ACEOF
26167 cat confdefs.h >>conftest.$ac_ext
26168 cat >>conftest.$ac_ext <<_ACEOF
26169 /* end confdefs.h. */
26171 /* Override any GCC internal prototype to avoid an error.
26172 Use char because int might match the return type of a GCC
26173 builtin and then its argument prototype would still apply. */
26181 return shm_open ();
26186 for ac_lib in '' rt; do
26187 if test -z "$ac_lib"; then
26188 ac_res="none required"
26191 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26193 rm -f conftest.$ac_objext conftest$ac_exeext
26194 if { (ac_try="$ac_link"
26195 case "(($ac_try" in
26196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26197 *) ac_try_echo=$ac_try;;
26199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26200 (eval "$ac_link") 2>conftest.er1
26202 grep -v '^ *+' conftest.er1 >conftest.err
26204 cat conftest.err >&5
26205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26206 (exit $ac_status); } && {
26207 test -z "$ac_c_werror_flag" ||
26208 test ! -s conftest.err
26209 } && test -s conftest$ac_exeext &&
26210 $as_test_x conftest$ac_exeext; then
26211 ac_cv_search_shm_open=$ac_res
26213 echo "$as_me: failed program was:" >&5
26214 sed 's/^/| /' conftest.$ac_ext >&5
26219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26221 if test "${ac_cv_search_shm_open+set}" = set; then
26225 if test "${ac_cv_search_shm_open+set}" = set; then
26228 ac_cv_search_shm_open=no
26230 rm conftest.$ac_ext
26231 LIBS=$ac_func_search_save_LIBS
26233 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26234 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26235 ac_res=$ac_cv_search_shm_open
26236 if test "$ac_res" != no; then
26237 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26242 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26243 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
26244 if test "${ac_cv_lib_util_openpty+set}" = set; then
26245 echo $ECHO_N "(cached) $ECHO_C" >&6
26247 ac_check_lib_save_LIBS=$LIBS
26248 LIBS="-lutil $LIBS"
26249 cat >conftest.$ac_ext <<_ACEOF
26252 cat confdefs.h >>conftest.$ac_ext
26253 cat >>conftest.$ac_ext <<_ACEOF
26254 /* end confdefs.h. */
26256 /* Override any GCC internal prototype to avoid an error.
26257 Use char because int might match the return type of a GCC
26258 builtin and then its argument prototype would still apply. */
26271 rm -f conftest.$ac_objext conftest$ac_exeext
26272 if { (ac_try="$ac_link"
26273 case "(($ac_try" in
26274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26275 *) ac_try_echo=$ac_try;;
26277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26278 (eval "$ac_link") 2>conftest.er1
26280 grep -v '^ *+' conftest.er1 >conftest.err
26282 cat conftest.err >&5
26283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26284 (exit $ac_status); } && {
26285 test -z "$ac_c_werror_flag" ||
26286 test ! -s conftest.err
26287 } && test -s conftest$ac_exeext &&
26288 $as_test_x conftest$ac_exeext; then
26289 ac_cv_lib_util_openpty=yes
26291 echo "$as_me: failed program was:" >&5
26292 sed 's/^/| /' conftest.$ac_ext >&5
26294 ac_cv_lib_util_openpty=no
26297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26298 conftest$ac_exeext conftest.$ac_ext
26299 LIBS=$ac_check_lib_save_LIBS
26301 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26302 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
26303 if test $ac_cv_lib_util_openpty = yes; then
26304 cat >>confdefs.h <<_ACEOF
26305 #define HAVE_LIBUTIL 1
26308 LIBS="-lutil $LIBS"
26312 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
26315 { echo "$as_me:$LINENO: result: no" >&5
26316 echo "${ECHO_T}no" >&6; }
26321 { echo "$as_me:$LINENO: result: no" >&5
26322 echo "${ECHO_T}no" >&6; }
26330 { echo "$as_me:$LINENO: checking for socket" >&5
26331 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
26332 if test "${ac_cv_func_socket+set}" = set; then
26333 echo $ECHO_N "(cached) $ECHO_C" >&6
26335 cat >conftest.$ac_ext <<_ACEOF
26338 cat confdefs.h >>conftest.$ac_ext
26339 cat >>conftest.$ac_ext <<_ACEOF
26340 /* end confdefs.h. */
26341 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
26342 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26343 #define socket innocuous_socket
26345 /* System header to define __stub macros and hopefully few prototypes,
26346 which can conflict with char socket (); below.
26347 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26348 <limits.h> exists even on freestanding compilers. */
26351 # include <limits.h>
26353 # include <assert.h>
26358 /* Override any GCC internal prototype to avoid an error.
26359 Use char because int might match the return type of a GCC
26360 builtin and then its argument prototype would still apply. */
26365 /* The GNU C library defines this for functions which it implements
26366 to always fail with ENOSYS. Some functions are actually named
26367 something starting with __ and the normal name is an alias. */
26368 #if defined __stub_socket || defined __stub___socket
26380 rm -f conftest.$ac_objext conftest$ac_exeext
26381 if { (ac_try="$ac_link"
26382 case "(($ac_try" in
26383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26384 *) ac_try_echo=$ac_try;;
26386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26387 (eval "$ac_link") 2>conftest.er1
26389 grep -v '^ *+' conftest.er1 >conftest.err
26391 cat conftest.err >&5
26392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26393 (exit $ac_status); } && {
26394 test -z "$ac_c_werror_flag" ||
26395 test ! -s conftest.err
26396 } && test -s conftest$ac_exeext &&
26397 $as_test_x conftest$ac_exeext; then
26398 ac_cv_func_socket=yes
26400 echo "$as_me: failed program was:" >&5
26401 sed 's/^/| /' conftest.$ac_ext >&5
26403 ac_cv_func_socket=no
26406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26407 conftest$ac_exeext conftest.$ac_ext
26409 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
26410 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
26411 if test $ac_cv_func_socket = yes; then
26412 { echo "$as_me:$LINENO: result: using libc's socket" >&5
26413 echo "${ECHO_T}using libc's socket" >&6; }
26416 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
26417 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
26418 if test "${ac_cv_lib_xnet_socket+set}" = set; then
26419 echo $ECHO_N "(cached) $ECHO_C" >&6
26421 ac_check_lib_save_LIBS=$LIBS
26422 LIBS="-lxnet $LIBS"
26423 cat >conftest.$ac_ext <<_ACEOF
26426 cat confdefs.h >>conftest.$ac_ext
26427 cat >>conftest.$ac_ext <<_ACEOF
26428 /* end confdefs.h. */
26430 /* Override any GCC internal prototype to avoid an error.
26431 Use char because int might match the return type of a GCC
26432 builtin and then its argument prototype would still apply. */
26445 rm -f conftest.$ac_objext conftest$ac_exeext
26446 if { (ac_try="$ac_link"
26447 case "(($ac_try" in
26448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26449 *) ac_try_echo=$ac_try;;
26451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26452 (eval "$ac_link") 2>conftest.er1
26454 grep -v '^ *+' conftest.er1 >conftest.err
26456 cat conftest.err >&5
26457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26458 (exit $ac_status); } && {
26459 test -z "$ac_c_werror_flag" ||
26460 test ! -s conftest.err
26461 } && test -s conftest$ac_exeext &&
26462 $as_test_x conftest$ac_exeext; then
26463 ac_cv_lib_xnet_socket=yes
26465 echo "$as_me: failed program was:" >&5
26466 sed 's/^/| /' conftest.$ac_ext >&5
26468 ac_cv_lib_xnet_socket=no
26471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26472 conftest$ac_exeext conftest.$ac_ext
26473 LIBS=$ac_check_lib_save_LIBS
26475 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
26476 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
26477 if test $ac_cv_lib_xnet_socket = yes; then
26478 cat >>confdefs.h <<_ACEOF
26479 #define HAVE_LIBXNET 1
26482 LIBS="-lxnet $LIBS"
26487 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26488 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26489 if test "${ac_cv_lib_socket_socket+set}" = set; then
26490 echo $ECHO_N "(cached) $ECHO_C" >&6
26492 ac_check_lib_save_LIBS=$LIBS
26493 LIBS="-lsocket $LIBS"
26494 cat >conftest.$ac_ext <<_ACEOF
26497 cat confdefs.h >>conftest.$ac_ext
26498 cat >>conftest.$ac_ext <<_ACEOF
26499 /* end confdefs.h. */
26501 /* Override any GCC internal prototype to avoid an error.
26502 Use char because int might match the return type of a GCC
26503 builtin and then its argument prototype would still apply. */
26516 rm -f conftest.$ac_objext conftest$ac_exeext
26517 if { (ac_try="$ac_link"
26518 case "(($ac_try" in
26519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26520 *) ac_try_echo=$ac_try;;
26522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26523 (eval "$ac_link") 2>conftest.er1
26525 grep -v '^ *+' conftest.er1 >conftest.err
26527 cat conftest.err >&5
26528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26529 (exit $ac_status); } && {
26530 test -z "$ac_c_werror_flag" ||
26531 test ! -s conftest.err
26532 } && test -s conftest$ac_exeext &&
26533 $as_test_x conftest$ac_exeext; then
26534 ac_cv_lib_socket_socket=yes
26536 echo "$as_me: failed program was:" >&5
26537 sed 's/^/| /' conftest.$ac_ext >&5
26539 ac_cv_lib_socket_socket=no
26542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26543 conftest$ac_exeext conftest.$ac_ext
26544 LIBS=$ac_check_lib_save_LIBS
26546 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26547 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26548 if test $ac_cv_lib_socket_socket = yes; then
26549 cat >>confdefs.h <<_ACEOF
26550 #define HAVE_LIBSOCKET 1
26553 LIBS="-lsocket $LIBS"
26558 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
26559 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
26560 if test "${ac_cv_lib_inet_socket+set}" = set; then
26561 echo $ECHO_N "(cached) $ECHO_C" >&6
26563 ac_check_lib_save_LIBS=$LIBS
26564 LIBS="-linet $LIBS"
26565 cat >conftest.$ac_ext <<_ACEOF
26568 cat confdefs.h >>conftest.$ac_ext
26569 cat >>conftest.$ac_ext <<_ACEOF
26570 /* end confdefs.h. */
26572 /* Override any GCC internal prototype to avoid an error.
26573 Use char because int might match the return type of a GCC
26574 builtin and then its argument prototype would still apply. */
26587 rm -f conftest.$ac_objext conftest$ac_exeext
26588 if { (ac_try="$ac_link"
26589 case "(($ac_try" in
26590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26591 *) ac_try_echo=$ac_try;;
26593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26594 (eval "$ac_link") 2>conftest.er1
26596 grep -v '^ *+' conftest.er1 >conftest.err
26598 cat conftest.err >&5
26599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26600 (exit $ac_status); } && {
26601 test -z "$ac_c_werror_flag" ||
26602 test ! -s conftest.err
26603 } && test -s conftest$ac_exeext &&
26604 $as_test_x conftest$ac_exeext; then
26605 ac_cv_lib_inet_socket=yes
26607 echo "$as_me: failed program was:" >&5
26608 sed 's/^/| /' conftest.$ac_ext >&5
26610 ac_cv_lib_inet_socket=no
26613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26614 conftest$ac_exeext conftest.$ac_ext
26615 LIBS=$ac_check_lib_save_LIBS
26617 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
26618 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
26619 if test $ac_cv_lib_inet_socket = yes; then
26620 cat >>confdefs.h <<_ACEOF
26621 #define HAVE_LIBINET 1
26624 LIBS="-linet $LIBS"
26634 # Check whether --with-tcp-wrappers was given.
26635 if test "${with_tcp_wrappers+set}" = set; then
26636 withval=$with_tcp_wrappers;
26637 if test "x$withval" != "xno" ; then
26639 LIBS="$saved_LIBS -lwrap"
26640 { echo "$as_me:$LINENO: checking for libwrap" >&5
26641 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
26642 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
26643 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
26644 if test "${ac_cv_search_nanosleep+set}" = set; then
26645 echo $ECHO_N "(cached) $ECHO_C" >&6
26647 ac_func_search_save_LIBS=$LIBS
26648 cat >conftest.$ac_ext <<_ACEOF
26651 cat confdefs.h >>conftest.$ac_ext
26652 cat >>conftest.$ac_ext <<_ACEOF
26653 /* end confdefs.h. */
26655 /* Override any GCC internal prototype to avoid an error.
26656 Use char because int might match the return type of a GCC
26657 builtin and then its argument prototype would still apply. */
26665 return nanosleep ();
26670 for ac_lib in '' rt; do
26671 if test -z "$ac_lib"; then
26672 ac_res="none required"
26675 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26677 rm -f conftest.$ac_objext conftest$ac_exeext
26678 if { (ac_try="$ac_link"
26679 case "(($ac_try" in
26680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26681 *) ac_try_echo=$ac_try;;
26683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26684 (eval "$ac_link") 2>conftest.er1
26686 grep -v '^ *+' conftest.er1 >conftest.err
26688 cat conftest.err >&5
26689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26690 (exit $ac_status); } && {
26691 test -z "$ac_c_werror_flag" ||
26692 test ! -s conftest.err
26693 } && test -s conftest$ac_exeext &&
26694 $as_test_x conftest$ac_exeext; then
26695 ac_cv_search_nanosleep=$ac_res
26697 echo "$as_me: failed program was:" >&5
26698 sed 's/^/| /' conftest.$ac_ext >&5
26703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26705 if test "${ac_cv_search_nanosleep+set}" = set; then
26709 if test "${ac_cv_search_nanosleep+set}" = set; then
26712 ac_cv_search_nanosleep=no
26714 rm conftest.$ac_ext
26715 LIBS=$ac_func_search_save_LIBS
26717 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
26718 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
26719 ac_res=$ac_cv_search_nanosleep
26720 if test "$ac_res" != no; then
26721 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26725 cat >conftest.$ac_ext <<_ACEOF
26728 cat confdefs.h >>conftest.$ac_ext
26729 cat >>conftest.$ac_ext <<_ACEOF
26730 /* end confdefs.h. */
26732 #include <sys/types.h>
26734 int deny_severity = 0;
26735 int allow_severity = 0;
26736 struct request_info *req;
26748 rm -f conftest.$ac_objext conftest$ac_exeext
26749 if { (ac_try="$ac_link"
26750 case "(($ac_try" in
26751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26752 *) ac_try_echo=$ac_try;;
26754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26755 (eval "$ac_link") 2>conftest.er1
26757 grep -v '^ *+' conftest.er1 >conftest.err
26759 cat conftest.err >&5
26760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26761 (exit $ac_status); } && {
26762 test -z "$ac_c_werror_flag" ||
26763 test ! -s conftest.err
26764 } && test -s conftest$ac_exeext &&
26765 $as_test_x conftest$ac_exeext; then
26767 { echo "$as_me:$LINENO: result: yes" >&5
26768 echo "${ECHO_T}yes" >&6; }
26770 cat >>confdefs.h <<\_ACEOF
26771 #define HAVE_LIBWRAP 1
26779 echo "$as_me: failed program was:" >&5
26780 sed 's/^/| /' conftest.$ac_ext >&5
26783 LIBS="$saved_LIBS -lwrap -lnsl"
26784 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
26785 cat >conftest.$ac_ext <<_ACEOF
26788 cat confdefs.h >>conftest.$ac_ext
26789 cat >>conftest.$ac_ext <<_ACEOF
26790 /* end confdefs.h. */
26792 #include <sys/types.h>
26794 int deny_severity = 0;
26795 int allow_severity = 0;
26796 struct request_info *req;
26808 rm -f conftest.$ac_objext conftest$ac_exeext
26809 if { (ac_try="$ac_link"
26810 case "(($ac_try" in
26811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26812 *) ac_try_echo=$ac_try;;
26814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26815 (eval "$ac_link") 2>conftest.er1
26817 grep -v '^ *+' conftest.er1 >conftest.err
26819 cat conftest.err >&5
26820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26821 (exit $ac_status); } && {
26822 test -z "$ac_c_werror_flag" ||
26823 test ! -s conftest.err
26824 } && test -s conftest$ac_exeext &&
26825 $as_test_x conftest$ac_exeext; then
26827 { echo "$as_me:$LINENO: result: yes" >&5
26828 echo "${ECHO_T}yes" >&6; }
26830 cat >>confdefs.h <<\_ACEOF
26831 #define HAVE_LIBWRAP 1
26839 echo "$as_me: failed program was:" >&5
26840 sed 's/^/| /' conftest.$ac_ext >&5
26843 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
26844 echo "$as_me: error: *** libwrap missing" >&2;}
26845 { (exit 1); exit 1; }; }
26850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26851 conftest$ac_exeext conftest.$ac_ext
26856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26857 conftest$ac_exeext conftest.$ac_ext
26864 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
26865 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
26867 # Check whether --with-openssl was given.
26868 if test "${with_openssl+set}" = set; then
26869 withval=$with_openssl;
26870 with_openssl_directory=${withval}
26876 if test "x$with_openssl_directory" != "xno"; then
26877 OPENSSL_LIBS="-lssl -lcrypto"
26880 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
26882 # Make sure the $with_openssl_directory also makes sense
26884 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
26885 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
26886 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
26890 saved_LIBS="${LIBS}"
26891 saved_CFLAGS="${CFLAGS}"
26892 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
26893 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
26895 cat >conftest.$ac_ext <<_ACEOF
26898 cat confdefs.h >>conftest.$ac_ext
26899 cat >>conftest.$ac_ext <<_ACEOF
26900 /* end confdefs.h. */
26902 #include <openssl/ssl.h>
26908 CRYPTO_set_id_callback(NULL);
26914 rm -f conftest.$ac_objext conftest$ac_exeext
26915 if { (ac_try="$ac_link"
26916 case "(($ac_try" in
26917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26918 *) ac_try_echo=$ac_try;;
26920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26921 (eval "$ac_link") 2>conftest.er1
26923 grep -v '^ *+' conftest.er1 >conftest.err
26925 cat conftest.err >&5
26926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26927 (exit $ac_status); } && {
26928 test -z "$ac_c_werror_flag" ||
26929 test ! -s conftest.err
26930 } && test -s conftest$ac_exeext &&
26931 $as_test_x conftest$ac_exeext; then
26934 support_crypto="yes"
26937 echo "$as_me: failed program was:" >&5
26938 sed 's/^/| /' conftest.$ac_ext >&5
26946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26947 conftest$ac_exeext conftest.$ac_ext
26949 cat >conftest.$ac_ext <<_ACEOF
26952 cat confdefs.h >>conftest.$ac_ext
26953 cat >>conftest.$ac_ext <<_ACEOF
26954 /* end confdefs.h. */
26956 #include <openssl/evp.h>
26968 rm -f conftest.$ac_objext conftest$ac_exeext
26969 if { (ac_try="$ac_link"
26970 case "(($ac_try" in
26971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26972 *) ac_try_echo=$ac_try;;
26974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26975 (eval "$ac_link") 2>conftest.er1
26977 grep -v '^ *+' conftest.er1 >conftest.err
26979 cat conftest.err >&5
26980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26981 (exit $ac_status); } && {
26982 test -z "$ac_c_werror_flag" ||
26983 test ! -s conftest.err
26984 } && test -s conftest$ac_exeext &&
26985 $as_test_x conftest$ac_exeext; then
26987 ac_cv_openssl_sha2="yes"
26990 echo "$as_me: failed program was:" >&5
26991 sed 's/^/| /' conftest.$ac_ext >&5
26994 ac_cv_openssl_sha2="no"
26999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27000 conftest$ac_exeext conftest.$ac_ext
27002 cat >conftest.$ac_ext <<_ACEOF
27005 cat confdefs.h >>conftest.$ac_ext
27006 cat >>conftest.$ac_ext <<_ACEOF
27007 /* end confdefs.h. */
27009 #include <openssl/evp.h>
27021 rm -f conftest.$ac_objext conftest$ac_exeext
27022 if { (ac_try="$ac_link"
27023 case "(($ac_try" in
27024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27025 *) ac_try_echo=$ac_try;;
27027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27028 (eval "$ac_link") 2>conftest.er1
27030 grep -v '^ *+' conftest.er1 >conftest.err
27032 cat conftest.err >&5
27033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27034 (exit $ac_status); } && {
27035 test -z "$ac_c_werror_flag" ||
27036 test ! -s conftest.err
27037 } && test -s conftest$ac_exeext &&
27038 $as_test_x conftest$ac_exeext; then
27040 ac_cv_openssl_export="no"
27043 echo "$as_me: failed program was:" >&5
27044 sed 's/^/| /' conftest.$ac_ext >&5
27047 ac_cv_openssl_export="yes"
27052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27053 conftest$ac_exeext conftest.$ac_ext
27055 LIBS="${saved_LIBS}"
27056 CFLAGS="${saved_CFLAGS}"
27058 if test "$support_tls" = "yes"; then
27060 cat >>confdefs.h <<\_ACEOF
27061 #define HAVE_OPENSSL 1
27065 cat >>confdefs.h <<\_ACEOF
27070 cat >>confdefs.h <<\_ACEOF
27071 #define HAVE_CRYPTO 1
27076 if test "$ac_cv_openssl_sha2" = "yes"; then
27078 cat >>confdefs.h <<\_ACEOF
27079 #define HAVE_SHA2 1
27084 if test "$ac_cv_openssl_export" = "yes"; then
27086 cat >>confdefs.h <<\_ACEOF
27087 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27093 support_crypto="no"
27098 { echo "$as_me:$LINENO: result: $support_tls" >&5
27099 echo "${ECHO_T}$support_tls" >&6; }
27103 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27104 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27105 if test "${ac_cv_search_dlopen+set}" = set; then
27106 echo $ECHO_N "(cached) $ECHO_C" >&6
27108 ac_func_search_save_LIBS=$LIBS
27109 cat >conftest.$ac_ext <<_ACEOF
27112 cat confdefs.h >>conftest.$ac_ext
27113 cat >>conftest.$ac_ext <<_ACEOF
27114 /* end confdefs.h. */
27116 /* Override any GCC internal prototype to avoid an error.
27117 Use char because int might match the return type of a GCC
27118 builtin and then its argument prototype would still apply. */
27131 for ac_lib in '' dl; do
27132 if test -z "$ac_lib"; then
27133 ac_res="none required"
27136 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27138 rm -f conftest.$ac_objext conftest$ac_exeext
27139 if { (ac_try="$ac_link"
27140 case "(($ac_try" in
27141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27142 *) ac_try_echo=$ac_try;;
27144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27145 (eval "$ac_link") 2>conftest.er1
27147 grep -v '^ *+' conftest.er1 >conftest.err
27149 cat conftest.err >&5
27150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27151 (exit $ac_status); } && {
27152 test -z "$ac_c_werror_flag" ||
27153 test ! -s conftest.err
27154 } && test -s conftest$ac_exeext &&
27155 $as_test_x conftest$ac_exeext; then
27156 ac_cv_search_dlopen=$ac_res
27158 echo "$as_me: failed program was:" >&5
27159 sed 's/^/| /' conftest.$ac_ext >&5
27164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27166 if test "${ac_cv_search_dlopen+set}" = set; then
27170 if test "${ac_cv_search_dlopen+set}" = set; then
27173 ac_cv_search_dlopen=no
27175 rm conftest.$ac_ext
27176 LIBS=$ac_func_search_save_LIBS
27178 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27179 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27180 ac_res=$ac_cv_search_dlopen
27181 if test "$ac_res" != no; then
27182 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27187 working_dir=`eval echo ${prefix}/var/bacula/working`
27189 # Check whether --with-working-dir was given.
27190 if test "${with_working_dir+set}" = set; then
27191 withval=$with_working_dir;
27192 if test "x$withval" != "xno" ; then
27193 working_dir=$withval
27204 # Check whether --with-archivedir was given.
27205 if test "${with_archivedir+set}" = set; then
27206 withval=$with_archivedir;
27207 if test "x$withval" != "xno" ; then
27208 archivedir=$withval
27217 scriptdir=`eval echo ${sysconfdir}`
27219 # Check whether --with-scriptdir was given.
27220 if test "${with_scriptdir+set}" = set; then
27221 withval=$with_scriptdir;
27222 if test "x$withval" != "xno" ; then
27232 # ------------------------------------------
27233 # Where to place plugindir (script files)
27234 # ------------------------------------------
27235 plugindir=`eval echo ${sysconfdir}`
27237 # Check whether --with-plugindir was given.
27238 if test "${with_plugindir+set}" = set; then
27239 withval=$with_plugindir;
27240 if test "x$withval" != "xno" ; then
27250 dump_email=root@localhost
27252 # Check whether --with-dump-email was given.
27253 if test "${with_dump_email+set}" = set; then
27254 withval=$with_dump_email;
27255 if test "x$withval" != "xno" ; then
27256 dump_email=$withval
27265 job_email=root@localhost
27267 # Check whether --with-job-email was given.
27268 if test "${with_job_email+set}" = set; then
27269 withval=$with_job_email;
27270 if test "x$withval" != "xno" ; then
27280 smtp_host=localhost
27282 # Check whether --with-smtp_host was given.
27283 if test "${with_smtp_host+set}" = set; then
27284 withval=$with_smtp_host;
27285 if test "x$withval" != "xno" ; then
27297 # Check whether --with-pid-dir was given.
27298 if test "${with_pid_dir+set}" = set; then
27299 withval=$with_pid_dir;
27300 if test "x$withval" != "xno" ; then
27308 cat >>confdefs.h <<_ACEOF
27309 #define _PATH_BACULA_PIDDIR "$piddir"
27314 subsysdir=/var/run/subsys
27315 if test -d /var/run/subsys; then
27316 subsysdir=/var/run/subsys
27317 elif test -d /var/lock/subsys; then
27318 subsysdir=/var/lock/subsys
27320 subsysdir=/var/run/subsys
27323 # Check whether --with-subsys-dir was given.
27324 if test "${with_subsys_dir+set}" = set; then
27325 withval=$with_subsys_dir;
27326 if test "x$withval" != "xno" ; then
27338 # Check whether --with-baseport was given.
27339 if test "${with_baseport+set}" = set; then
27340 withval=$with_baseport;
27341 if test "x$withval" != "xno" ; then
27350 dir_port=`expr $baseport`
27351 fd_port=`expr $baseport + 1`
27352 sd_port=`expr $fd_port + 1`
27360 # Check whether --with-dir-password was given.
27361 if test "${with_dir_password+set}" = set; then
27362 withval=$with_dir_password;
27363 if test "x$withval" != "xno" ; then
27364 dir_password=$withval
27371 if test "x$dir_password" = "x" ; then
27372 if test "x$OPENSSL" = "xnone" ; then
27373 key=`autoconf/randpass 33`
27375 key=`openssl rand -base64 33`
27382 # Check whether --with-fd-password was given.
27383 if test "${with_fd_password+set}" = set; then
27384 withval=$with_fd_password;
27385 if test "x$withval" != "xno" ; then
27386 fd_password=$withval
27393 if test "x$fd_password" = "x" ; then
27394 if test "x$OPENSSL" = "xnone" ; then
27395 key=`autoconf/randpass 37`
27397 key=`openssl rand -base64 33`
27404 # Check whether --with-sd-password was given.
27405 if test "${with_sd_password+set}" = set; then
27406 withval=$with_sd_password;
27407 if test "x$withval" != "xno" ; then
27408 sd_password=$withval
27415 if test "x$sd_password" = "x" ; then
27416 if test "x$OPENSSL" = "xnone" ; then
27417 key=`autoconf/randpass 41`
27419 key=`openssl rand -base64 33`
27426 # Check whether --with-mon-dir-password was given.
27427 if test "${with_mon_dir_password+set}" = set; then
27428 withval=$with_mon_dir_password;
27429 if test "x$withval" != "xno" ; then
27430 mon_dir_password=$withval
27437 if test "x$mon_dir_password" = "x" ; then
27438 if test "x$OPENSSL" = "xnone" ; then
27439 key=`autoconf/randpass 33`
27441 key=`openssl rand -base64 33`
27443 mon_dir_password=$key
27448 # Check whether --with-mon-fd-password was given.
27449 if test "${with_mon_fd_password+set}" = set; then
27450 withval=$with_mon_fd_password;
27451 if test "x$withval" != "xno" ; then
27452 mon_fd_password=$withval
27459 if test "x$mon_fd_password" = "x" ; then
27460 if test "x$OPENSSL" = "xnone" ; then
27461 key=`autoconf/randpass 37`
27463 key=`openssl rand -base64 33`
27465 mon_fd_password=$key
27470 # Check whether --with-mon-sd-password was given.
27471 if test "${with_mon_sd_password+set}" = set; then
27472 withval=$with_mon_sd_password;
27473 if test "x$withval" != "xno" ; then
27474 mon_sd_password=$withval
27481 if test "x$mon_sd_password" = "x" ; then
27482 if test "x$OPENSSL" = "xnone" ; then
27483 key=`autoconf/randpass 41`
27485 key=`openssl rand -base64 33`
27487 mon_sd_password=$key
27499 # Check whether --with-db_name was given.
27500 if test "${with_db_name+set}" = set; then
27501 withval=$with_db_name;
27502 if test "x$withval" != "x" ; then
27513 # Check whether --with-db_user was given.
27514 if test "${with_db_user+set}" = set; then
27515 withval=$with_db_user;
27516 if test "x$withval" != "x" ; then
27527 # Check whether --with-db_password was given.
27528 if test "${with_db_password+set}" = set; then
27529 withval=$with_db_password;
27530 if test "x$withval" != "x" ; then
27531 db_password=$withval
27541 # Check whether --with-db_port was given.
27542 if test "${with_db_port+set}" = set; then
27543 withval=$with_db_port;
27544 if test "x$withval" != "x" ; then
27554 # Handle users and groups for each daemon
27558 # Check whether --with-dir_user was given.
27559 if test "${with_dir_user+set}" = set; then
27560 withval=$with_dir_user;
27561 if test "x$withval" != "x" ; then
27571 # Check whether --with-dir_group was given.
27572 if test "${with_dir_group+set}" = set; then
27573 withval=$with_dir_group;
27574 if test "x$withval" != "x" ; then
27584 # Check whether --with-sd_user was given.
27585 if test "${with_sd_user+set}" = set; then
27586 withval=$with_sd_user;
27587 if test "x$withval" != "x" ; then
27597 # Check whether --with-sd_group was given.
27598 if test "${with_sd_group+set}" = set; then
27599 withval=$with_sd_group;
27600 if test "x$withval" != "x" ; then
27610 # Check whether --with-fd_user was given.
27611 if test "${with_fd_user+set}" = set; then
27612 withval=$with_fd_user;
27613 if test "x$withval" != "x" ; then
27623 # Check whether --with-fd_group was given.
27624 if test "${with_fd_group+set}" = set; then
27625 withval=$with_fd_group;
27626 if test "x$withval" != "x" ; then
27643 # Check whether --with-sbin-perm was given.
27644 if test "${with_sbin_perm+set}" = set; then
27645 withval=$with_sbin_perm;
27646 if test "x$withval" != "x" ; then
27659 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
27660 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
27662 # Check whether --with-postgresql was given.
27663 if test "${with_postgresql+set}" = set; then
27664 withval=$with_postgresql;
27665 if test "$withval" != "no"; then
27666 if test "$db_found" = "yes"; then
27667 { echo "$as_me:$LINENO: result: error" >&5
27668 echo "${ECHO_T}error" >&6; }
27669 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
27670 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
27671 { (exit 1); exit 1; }; };
27673 if test "$withval" = "yes"; then
27674 PG_CONFIG=`which pg_config`
27675 if test -n "$PG_CONFIG";then
27676 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
27677 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
27678 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
27679 elif test -f /usr/local/include/libpq-fe.h; then
27680 POSTGRESQL_INCDIR=/usr/local/include
27681 if test -d /usr/local/lib64; then
27682 POSTGRESQL_LIBDIR=/usr/local/lib64
27684 POSTGRESQL_LIBDIR=/usr/local/lib
27686 POSTGRESQL_BINDIR=/usr/local/bin
27687 elif test -f /usr/include/libpq-fe.h; then
27688 POSTGRESQL_INCDIR=/usr/include
27689 if test -d /usr/lib64; then
27690 POSTGRESQL_LIBDIR=/usr/lib64
27692 POSTGRESQL_LIBDIR=/usr/lib
27694 POSTGRESQL_BINDIR=/usr/bin
27695 elif test -f /usr/include/pgsql/libpq-fe.h; then
27696 POSTGRESQL_INCDIR=/usr/include/pgsql
27697 if test -d /usr/lib64/pgsql; then
27698 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
27700 POSTGRESQL_LIBDIR=/usr/lib/pgsql
27702 POSTGRESQL_BINDIR=/usr/bin
27703 elif test -f /usr/include/postgresql/libpq-fe.h; then
27704 POSTGRESQL_INCDIR=/usr/include/postgresql
27705 if test -d /usr/lib64/postgresql; then
27706 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
27708 POSTGRESQL_LIBDIR=/usr/lib/postgresql
27710 POSTGRESQL_BINDIR=/usr/bin
27712 { echo "$as_me:$LINENO: result: no" >&5
27713 echo "${ECHO_T}no" >&6; }
27714 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
27715 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
27716 { (exit 1); exit 1; }; }
27718 elif test -f $withval/include/libpq-fe.h; then
27719 POSTGRESQL_INCDIR=$withval/include
27720 POSTGRESQL_LIBDIR=$withval/lib
27721 POSTGRESQL_BINDIR=$withval/bin
27722 elif test -f $withval/include/postgresql/libpq-fe.h; then
27723 POSTGRESQL_INCDIR=$withval/include/postgresql
27724 if test -d $withval/lib64; then
27725 POSTGRESQL_LIBDIR=$withval/lib64
27727 POSTGRESQL_LIBDIR=$withval/lib
27729 POSTGRESQL_BINDIR=$withval/bin
27731 { echo "$as_me:$LINENO: result: no" >&5
27732 echo "${ECHO_T}no" >&6; }
27733 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
27734 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
27735 { (exit 1); exit 1; }; }
27737 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
27738 { echo "$as_me:$LINENO: checking for crypt" >&5
27739 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
27740 if test "${ac_cv_func_crypt+set}" = set; then
27741 echo $ECHO_N "(cached) $ECHO_C" >&6
27743 cat >conftest.$ac_ext <<_ACEOF
27746 cat confdefs.h >>conftest.$ac_ext
27747 cat >>conftest.$ac_ext <<_ACEOF
27748 /* end confdefs.h. */
27749 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
27750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27751 #define crypt innocuous_crypt
27753 /* System header to define __stub macros and hopefully few prototypes,
27754 which can conflict with char crypt (); below.
27755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27756 <limits.h> exists even on freestanding compilers. */
27759 # include <limits.h>
27761 # include <assert.h>
27766 /* Override any GCC internal prototype to avoid an error.
27767 Use char because int might match the return type of a GCC
27768 builtin and then its argument prototype would still apply. */
27773 /* The GNU C library defines this for functions which it implements
27774 to always fail with ENOSYS. Some functions are actually named
27775 something starting with __ and the normal name is an alias. */
27776 #if defined __stub_crypt || defined __stub___crypt
27788 rm -f conftest.$ac_objext conftest$ac_exeext
27789 if { (ac_try="$ac_link"
27790 case "(($ac_try" in
27791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27792 *) ac_try_echo=$ac_try;;
27794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27795 (eval "$ac_link") 2>conftest.er1
27797 grep -v '^ *+' conftest.er1 >conftest.err
27799 cat conftest.err >&5
27800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27801 (exit $ac_status); } && {
27802 test -z "$ac_c_werror_flag" ||
27803 test ! -s conftest.err
27804 } && test -s conftest$ac_exeext &&
27805 $as_test_x conftest$ac_exeext; then
27806 ac_cv_func_crypt=yes
27808 echo "$as_me: failed program was:" >&5
27809 sed 's/^/| /' conftest.$ac_ext >&5
27811 ac_cv_func_crypt=no
27814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27815 conftest$ac_exeext conftest.$ac_ext
27817 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
27818 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
27819 if test $ac_cv_func_crypt = yes; then
27822 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
27823 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
27824 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
27825 echo $ECHO_N "(cached) $ECHO_C" >&6
27827 ac_check_lib_save_LIBS=$LIBS
27828 LIBS="-lcrypt $LIBS"
27829 cat >conftest.$ac_ext <<_ACEOF
27832 cat confdefs.h >>conftest.$ac_ext
27833 cat >>conftest.$ac_ext <<_ACEOF
27834 /* end confdefs.h. */
27836 /* Override any GCC internal prototype to avoid an error.
27837 Use char because int might match the return type of a GCC
27838 builtin and then its argument prototype would still apply. */
27851 rm -f conftest.$ac_objext conftest$ac_exeext
27852 if { (ac_try="$ac_link"
27853 case "(($ac_try" in
27854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27855 *) ac_try_echo=$ac_try;;
27857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27858 (eval "$ac_link") 2>conftest.er1
27860 grep -v '^ *+' conftest.er1 >conftest.err
27862 cat conftest.err >&5
27863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27864 (exit $ac_status); } && {
27865 test -z "$ac_c_werror_flag" ||
27866 test ! -s conftest.err
27867 } && test -s conftest$ac_exeext &&
27868 $as_test_x conftest$ac_exeext; then
27869 ac_cv_lib_crypt_crypt=yes
27871 echo "$as_me: failed program was:" >&5
27872 sed 's/^/| /' conftest.$ac_ext >&5
27874 ac_cv_lib_crypt_crypt=no
27877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27878 conftest$ac_exeext conftest.$ac_ext
27879 LIBS=$ac_check_lib_save_LIBS
27881 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
27882 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
27883 if test $ac_cv_lib_crypt_crypt = yes; then
27884 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
27889 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
27890 SQL_LFLAGS=$POSTGRESQL_LFLAGS
27891 SQL_BINDIR=$POSTGRESQL_BINDIR
27892 SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
27894 cat >>confdefs.h <<\_ACEOF
27895 #define HAVE_POSTGRESQL 1
27898 { echo "$as_me:$LINENO: result: yes" >&5
27899 echo "${ECHO_T}yes" >&6; }
27901 support_postgresql=yes
27905 { echo "$as_me:$LINENO: result: no" >&5
27906 echo "${ECHO_T}no" >&6; }
27911 { echo "$as_me:$LINENO: result: no" >&5
27912 echo "${ECHO_T}no" >&6; }
27924 { echo "$as_me:$LINENO: checking for MySQL support" >&5
27925 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
27927 # Check whether --with-mysql was given.
27928 if test "${with_mysql+set}" = set; then
27929 withval=$with_mysql;
27930 if test "$withval" != "no"; then
27931 if test "$withval" = "yes"; then
27932 if test -f /usr/local/mysql/include/mysql/mysql.h; then
27933 MYSQL_INCDIR=/usr/local/mysql/include/mysql
27934 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
27935 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
27936 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
27938 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
27940 MYSQL_BINDIR=/usr/local/mysql/bin
27941 elif test -f /usr/include/mysql/mysql.h; then
27942 MYSQL_INCDIR=/usr/include/mysql
27943 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
27944 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
27945 MYSQL_LIBDIR=/usr/lib64/mysql
27946 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
27947 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
27948 MYSQL_LIBDIR=/usr/lib/mysql
27950 MYSQL_LIBDIR=/usr/lib
27952 MYSQL_BINDIR=/usr/bin
27953 elif test -f /usr/include/mysql.h; then
27954 MYSQL_INCDIR=/usr/include
27955 if test -f /usr/lib64/libmysqlclient_r.a \
27956 -o -f /usr/lib64/libmysqlclient_r.so; then
27957 MYSQL_LIBDIR=/usr/lib64
27959 MYSQL_LIBDIR=/usr/lib
27961 MYSQL_BINDIR=/usr/bin
27962 elif test -f /usr/local/include/mysql/mysql.h; then
27963 MYSQL_INCDIR=/usr/local/include/mysql
27964 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
27965 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
27966 MYSQL_LIBDIR=/usr/local/lib64/mysql
27968 MYSQL_LIBDIR=/usr/local/lib/mysql
27970 MYSQL_BINDIR=/usr/local/bin
27971 elif test -f /usr/local/include/mysql.h; then
27972 MYSQL_INCDIR=/usr/local/include
27973 if test -f /usr/local/lib64/libmysqlclient_r.a \
27974 -o -f /usr/local/lib64/libmysqlclient_r.so; then
27975 MYSQL_LIBDIR=/usr/local/lib64
27977 MYSQL_LIBDIR=/usr/local/lib
27979 MYSQL_BINDIR=/usr/local/bin
27981 { echo "$as_me:$LINENO: result: no" >&5
27982 echo "${ECHO_T}no" >&6; }
27983 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
27984 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
27985 { (exit 1); exit 1; }; }
27988 if test -f $withval/include/mysql/mysql.h; then
27989 MYSQL_INCDIR=$withval/include/mysql
27990 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
27991 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
27992 MYSQL_LIBDIR=$withval/lib64/mysql
27994 MYSQL_LIBDIR=$withval/lib/mysql
27996 if test -f $withval/lib/libmysqlclient_r.so; then
27997 MYSQL_LIBDIR=$withval/lib
28000 MYSQL_BINDIR=$withval/bin
28001 elif test -f $withval/include/mysql.h; then
28002 MYSQL_INCDIR=$withval/include
28003 if test -f $withval/lib64/libmysqlclient_r.a \
28004 -o -f $withval/lib64/libmysqlclient_r.so; then
28005 MYSQL_LIBDIR=$withval/lib64
28007 MYSQL_LIBDIR=$withval/lib
28009 MYSQL_BINDIR=$withval/bin
28011 { echo "$as_me:$LINENO: result: no" >&5
28012 echo "${ECHO_T}no" >&6; }
28013 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28014 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28015 { (exit 1); exit 1; }; }
28018 SQL_INCLUDE=-I$MYSQL_INCDIR
28019 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28020 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28021 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28022 cat >>confdefs.h <<\_ACEOF
28023 #define HAVE_THREAD_SAFE_MYSQL 1
28027 SQL_BINDIR=$MYSQL_BINDIR
28028 SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28030 cat >>confdefs.h <<\_ACEOF
28031 #define HAVE_MYSQL 1
28034 { echo "$as_me:$LINENO: result: yes" >&5
28035 echo "${ECHO_T}yes" >&6; }
28042 { echo "$as_me:$LINENO: result: no" >&5
28043 echo "${ECHO_T}no" >&6; }
28051 # Check whether --with-embedded-mysql was given.
28052 if test "${with_embedded_mysql+set}" = set; then
28053 withval=$with_embedded_mysql;
28054 if test "$withval" != "no"; then
28055 if test "$withval" = "yes"; then
28056 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28057 MYSQL_INCDIR=/usr/local/mysql/include/mysql
28058 if test -d /usr/local/mysql/lib64/mysql; then
28059 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28061 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28063 MYSQL_BINDIR=/usr/local/mysql/bin
28064 elif test -f /usr/include/mysql/mysql.h; then
28065 MYSQL_INCDIR=/usr/include/mysql
28066 if test -d /usr/lib64/mysql; then
28067 MYSQL_LIBDIR=/usr/lib64/mysql
28069 MYSQL_LIBDIR=/usr/lib/mysql
28071 MYSQL_BINDIR=/usr/bin
28072 elif test -f /usr/include/mysql.h; then
28073 MYSQL_INCDIR=/usr/include
28074 if test -d /usr/lib64; then
28075 MYSQL_LIBDIR=/usr/lib64
28077 MYSQL_LIBDIR=/usr/lib
28079 MYSQL_BINDIR=/usr/bin
28080 elif test -f /usr/local/include/mysql/mysql.h; then
28081 MYSQL_INCDIR=/usr/local/include/mysql
28082 if test -d /usr/local/lib64/mysql; then
28083 MYSQL_LIBDIR=/usr/local/lib64/mysql
28085 MYSQL_LIBDIR=/usr/local/lib/mysql
28087 MYSQL_BINDIR=/usr/local/bin
28088 elif test -f /usr/local/include/mysql.h; then
28089 MYSQL_INCDIR=/usr/local/include
28090 if test -d /usr/local/lib64; then
28091 MYSQL_LIBDIR=/usr/local/lib64
28093 MYSQL_LIBDIR=/usr/local/lib
28095 MYSQL_BINDIR=/usr/local/bin
28097 { echo "$as_me:$LINENO: result: no" >&5
28098 echo "${ECHO_T}no" >&6; }
28099 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28100 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28101 { (exit 1); exit 1; }; }
28104 if test -f $withval/include/mysql/mysql.h; then
28105 MYSQL_INCDIR=$withval/include/mysql
28106 if test -d $withval/lib64/mysql; then
28107 MYSQL_LIBDIR=$withval/lib64/mysql
28109 MYSQL_LIBDIR=$withval/lib/mysql
28111 MYSQL_BINDIR=$withval/bin
28112 elif test -f $withval/include/mysql.h; then
28113 MYSQL_INCDIR=$withval/include
28114 if test -d $withval/lib64; then
28115 MYSQL_LIBDIR=$withval/lib64
28117 MYSQL_LIBDIR=$withval/lib
28119 MYSQL_BINDIR=$withval/bin
28121 { echo "$as_me:$LINENO: result: no" >&5
28122 echo "${ECHO_T}no" >&6; }
28123 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28124 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28125 { (exit 1); exit 1; }; }
28128 SQL_INCLUDE=-I$MYSQL_INCDIR
28129 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28130 SQL_BINDIR=$MYSQL_BINDIR
28131 SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28133 cat >>confdefs.h <<\_ACEOF
28134 #define HAVE_MYSQL 1
28137 cat >>confdefs.h <<\_ACEOF
28138 #define HAVE_EMBEDDED_MYSQL 1
28141 { echo "$as_me:$LINENO: result: yes" >&5
28142 echo "${ECHO_T}yes" >&6; }
28149 { echo "$as_me:$LINENO: result: no" >&5
28150 echo "${ECHO_T}no" >&6; }
28166 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28167 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28169 # Check whether --with-sqlite3 was given.
28170 if test "${with_sqlite3+set}" = set; then
28171 withval=$with_sqlite3;
28172 if test "$withval" != "no"; then
28173 if test "$withval" = "yes"; then
28174 if test -f /usr/local/include/sqlite3.h; then
28175 SQLITE_INCDIR=/usr/local/include
28176 if test -d /usr/local/lib64; then
28177 SQLITE_LIBDIR=/usr/local/lib64
28179 SQLITE_LIBDIR=/usr/local/lib
28181 SQLITE_BINDIR=/usr/local/bin
28182 elif test -f /usr/include/sqlite3.h; then
28183 SQLITE_INCDIR=/usr/include
28184 if test -d /usr/lib64; then
28185 SQLITE_LIBDIR=/usr/lib64
28187 SQLITE_LIBDIR=/usr/lib
28189 SQLITE_BINDIR=/usr/bin
28190 elif test -f $prefix/include/sqlite3.h; then
28191 SQLITE_INCDIR=$prefix/include
28192 if test -d $prefix/lib64; then
28193 SQLITE_LIBDIR=$prefix/lib64
28195 SQLITE_LIBDIR=$prefix/lib
28197 SQLITE_BINDIR=$prefix/bin
28199 { echo "$as_me:$LINENO: result: no" >&5
28200 echo "${ECHO_T}no" >&6; }
28201 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28202 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28203 { (exit 1); exit 1; }; }
28206 if test -f $withval/sqlite3.h; then
28207 SQLITE_INCDIR=$withval
28208 SQLITE_LIBDIR=$withval
28209 SQLITE_BINDIR=$withval
28210 elif test -f $withval/include/sqlite3.h; then
28211 SQLITE_INCDIR=$withval/include
28212 if test -d $withval/lib64; then
28213 SQLITE_LIBDIR=$withval/lib64
28215 SQLITE_LIBDIR=$withval/lib
28217 SQLITE_BINDIR=$withval/bin
28219 { echo "$as_me:$LINENO: result: no" >&5
28220 echo "${ECHO_T}no" >&6; }
28221 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28222 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28223 { (exit 1); exit 1; }; }
28226 SQL_INCLUDE=-I$SQLITE_INCDIR
28227 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28228 SQL_BINDIR=$SQLITE_BINDIR
28229 SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28231 cat >>confdefs.h <<\_ACEOF
28232 #define HAVE_SQLITE3 1
28235 { echo "$as_me:$LINENO: result: yes" >&5
28236 echo "${ECHO_T}yes" >&6; }
28238 support_sqlite3=yes
28243 { echo "$as_me:$LINENO: result: no" >&5
28244 echo "${ECHO_T}no" >&6; }
28249 { echo "$as_me:$LINENO: result: no" >&5
28250 echo "${ECHO_T}no" >&6; }
28262 { echo "$as_me:$LINENO: checking for SQLite support" >&5
28263 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
28265 # Check whether --with-sqlite was given.
28266 if test "${with_sqlite+set}" = set; then
28267 withval=$with_sqlite;
28268 if test "$withval" != "no"; then
28269 if test "$withval" = "yes"; then
28270 if test -f /usr/local/include/sqlite.h; then
28271 SQLITE_INCDIR=/usr/local/include
28272 if test -d /usr/local/lib64; then
28273 SQLITE_LIBDIR=/usr/local/lib64
28275 SQLITE_LIBDIR=/usr/local/lib
28277 SQLITE_BINDIR=/usr/local/bin
28278 elif test -f /usr/include/sqlite.h; then
28279 SQLITE_INCDIR=/usr/include
28280 if test -d /usr/lib64; then
28281 SQLITE_LIBDIR=/usr/lib64
28283 SQLITE_LIBDIR=/usr/lib
28285 SQLITE_BINDIR=/usr/bin
28286 elif test -f $prefix/include/sqlite.h; then
28287 SQLITE_INCDIR=$prefix/include
28288 if test -d $prefix/lib64; then
28289 SQLITE_LIBDIR=$prefix/lib64
28291 SQLITE_LIBDIR=$prefix/lib
28293 SQLITE_BINDIR=$prefix/bin
28295 { echo "$as_me:$LINENO: result: no" >&5
28296 echo "${ECHO_T}no" >&6; }
28297 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
28298 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
28299 { (exit 1); exit 1; }; }
28302 if test -f $withval/sqlite.h; then
28303 SQLITE_INCDIR=$withval
28304 SQLITE_LIBDIR=$withval
28305 SQLITE_BINDIR=$withval
28306 elif test -f $withval/include/sqlite.h; then
28307 SQLITE_INCDIR=$withval/include
28308 if test -d $withval/lib64; then
28309 SQLITE_LIBDIR=$withval/lib64
28311 SQLITE_LIBDIR=$withval/lib
28313 SQLITE_BINDIR=$withval/bin
28315 { echo "$as_me:$LINENO: result: no" >&5
28316 echo "${ECHO_T}no" >&6; }
28317 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
28318 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
28319 { (exit 1); exit 1; }; }
28322 SQL_INCLUDE=-I$SQLITE_INCDIR
28323 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
28324 SQL_BINDIR=$SQLITE_BINDIR
28325 SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
28327 cat >>confdefs.h <<\_ACEOF
28328 #define HAVE_SQLITE 1
28331 { echo "$as_me:$LINENO: result: yes" >&5
28332 echo "${ECHO_T}yes" >&6; }
28339 { echo "$as_me:$LINENO: result: no" >&5
28340 echo "${ECHO_T}no" >&6; }
28345 { echo "$as_me:$LINENO: result: no" >&5
28346 echo "${ECHO_T}no" >&6; }
28358 { echo "$as_me:$LINENO: checking for DBI support" >&5
28359 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28361 # Check whether --with-dbi was given.
28362 if test "${with_dbi+set}" = set; then
28364 if test "$withval" != "no"; then
28365 if test "$withval" = "yes"; then
28366 if test -f /usr/local/include/dbi/dbi.h; then
28367 DBI_INCDIR=/usr/local/dbi/include
28368 if test -d /usr/local/lib64; then
28369 DBI_LIBDIR=/usr/local/lib64
28371 DBI_LIBDIR=/usr/local/lib
28373 DBI_BINDIR=/usr/local/bin
28374 elif test -f /usr/include/dbi/dbi.h; then
28375 DBI_INCDIR=/usr/include
28376 if test -d /usr/lib64; then
28377 DBI_LIBDIR=/usr/lib64
28379 DBI_LIBDIR=/usr/lib
28381 DBI_BINDIR=/usr/bin
28382 elif test -f $prefix/include/dbi/dbi.h; then
28383 DBI_INCDIR=$prefix/include
28384 if test -d $prefix/lib64; then
28385 DBI_LIBDIR=$prefix/lib64
28387 DBI_LIBDIR=$prefix/lib
28389 DBI_BINDIR=$prefix/bin
28391 { echo "$as_me:$LINENO: result: no" >&5
28392 echo "${ECHO_T}no" >&6; }
28393 { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28394 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28395 { (exit 1); exit 1; }; }
28397 if test -d /usr/local/lib/dbd; then
28398 DRIVERDIR=/usr/local/lib/dbd
28399 if test -d /usr/local/lib64/dbd; then
28400 DRIVERDIR=/usr/local/lib64/dbd
28402 DRIVERDIR=/usr/local/lib/dbd
28404 elif test -d /usr/lib/dbd; then
28405 DRIVERDIR=/usr/lib/dbd
28406 if test -d /usr/lib64/dbd; then
28407 DRIVERDIR=/usr/lib64/dbd
28409 DRIVERDIR=/usr/lib/dbd
28411 elif test -d $prefix/lib/dbd; then
28412 if test -d $prefix/lib64/dbd; then
28413 DRIVERDIR=$prefix/lib64/dbd
28415 DRIVERDIR=$prefix/lib/dbd
28418 { echo "$as_me:$LINENO: result: no" >&5
28419 echo "${ECHO_T}no" >&6; }
28420 { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28421 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28422 { (exit 1); exit 1; }; }
28425 if test -f $withval/dbi.h; then
28426 DBI_INCDIR=$withval
28427 DBI_LIBDIR=$withval
28428 DBI_BINDIR=$withval
28429 elif test -f $withval/include/dbi/dbi.h; then
28430 DBI_INCDIR=$withval/include
28431 if test -d $withval/lib64; then
28432 DBI_LIBDIR=$withval/lib64
28434 DBI_LIBDIR=$withval/lib
28436 DBI_BINDIR=$withval/bin
28438 { echo "$as_me:$LINENO: result: no" >&5
28439 echo "${ECHO_T}no" >&6; }
28440 { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28441 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28442 { (exit 1); exit 1; }; }
28444 if test -d $withval/dbd; then
28445 DRIVERDIR=$withval/dbd
28446 elif test -d $withval/lib/; then
28447 if test -d $withval/lib64/dbd; then
28448 DRIVERDIR=$withval/lib64/dbd
28450 DRIVERDIR=$withval/lib/dbd
28453 { echo "$as_me:$LINENO: result: no" >&5
28454 echo "${ECHO_T}no" >&6; }
28455 { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28456 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28457 { (exit 1); exit 1; }; }
28460 SQL_INCLUDE=-I$DBI_INCDIR
28461 SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28462 SQL_BINDIR=$DBI_BINDIR
28463 SQL_LIB=$DBI_LIBDIR/libdbi.a
28464 DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28467 cat >>confdefs.h <<\_ACEOF
28471 { echo "$as_me:$LINENO: result: yes" >&5
28472 echo "${ECHO_T}yes" >&6; }
28480 { echo "$as_me:$LINENO: result: no" >&5
28481 echo "${ECHO_T}no" >&6; }
28486 { echo "$as_me:$LINENO: result: no" >&5
28487 echo "${ECHO_T}no" >&6; }
28502 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28503 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28505 # Check whether --with-dbi-driver was given.
28506 if test "${with_dbi_driver+set}" = set; then
28507 withval=$with_dbi_driver;
28508 if test "$withval" != "no"; then
28512 if test -f /usr/local/mysql/bin/mysql; then
28513 SQL_BINDIR=/usr/local/mysql/bin
28514 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28515 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28516 SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28518 SQL_LIBDIR=/usr/local/mysql/lib/mysql
28520 elif test -f /usr/bin/mysql; then
28521 SQL_BINDIR=/usr/bin
28522 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28523 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28524 SQL_LIBDIR=/usr/lib64/mysql
28525 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28526 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28527 SQL_LIBDIR=/usr/lib/mysql
28529 SQL_LIBDIR=/usr/lib
28531 elif test -f /usr/local/bin/mysql; then
28532 SQL_BINDIR=/usr/local/bin
28533 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28534 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28535 SQL_LIBDIR=/usr/local/lib64/mysql
28536 elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28537 -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28538 SQL_LIBDIR=/usr/local/lib/mysql
28540 SQL_LIBDIR=/usr/local/lib
28542 elif test -f $withval/bin/mysql; then
28543 SQL_BINDIR=$withval/bin
28544 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28545 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28546 SQL_LIBDIR=$withval/lib64/mysql
28547 elif test -f $withval/lib64/libmysqlclient_r.a \
28548 -o -f $withval/lib64/libmysqlclient_r.so; then
28549 SQL_LIBDIR=$withval/lib64
28550 elif test -f $withval/lib/libmysqlclient_r.a \
28551 -o -f $withval/lib/libmysqlclient_r.so; then
28552 SQL_LIBDIR=$withval/lib/
28554 SQL_LIBDIR=$withval/lib/mysql
28557 { echo "$as_me:$LINENO: result: no" >&5
28558 echo "${ECHO_T}no" >&6; }
28559 { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28560 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28561 { (exit 1); exit 1; }; }
28563 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28566 db_prog="postgresql"
28567 PG_CONFIG=`which pg_config`
28568 if test -n "$PG_CONFIG"; then
28569 SQL_BINDIR=`"$PG_CONFIG" --bindir`
28570 SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28571 elif test -f /usr/local/bin/psql; then
28572 SQL_BINDIR=/usr/local/bin
28573 if test -d /usr/local/lib64; then
28574 SQL_LIBDIR=/usr/local/lib64
28576 SQL_LIBDIR=/usr/local/lib
28578 elif test -f /usr/bin/psql; then
28579 SQL_BINDIR=/usr/local/bin
28580 if test -d /usr/lib64/postgresql; then
28581 SQL_LIBDIR=/usr/lib64/postgresql
28582 elif test -d /usr/lib/postgresql; then
28583 SQL_LIBDIR=/usr/lib/postgresql
28584 elif test -d /usr/lib64; then
28585 SQL_LIBDIR=/usr/lib64
28587 SQL_LIBDIR=/usr/lib
28589 elif test -f $withval/bin/psql; then
28590 SQL_BINDIR=$withval/bin
28591 if test -d $withval/lib64; then
28592 SQL_LIBDIR=$withval/lib64
28594 SQL_LIBDIR=$withval/lib
28597 { echo "$as_me:$LINENO: result: no" >&5
28598 echo "${ECHO_T}no" >&6; }
28599 { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28600 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28601 { (exit 1); exit 1; }; }
28603 DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28607 if test -f /usr/local/bin/sqlite; then
28608 SQL_BINDIR=/usr/local/bin
28609 if test -d /usr/local/lib64; then
28610 SQL_LIBDIR=/usr/local/lib64
28612 SQL_LIBDIR=/usr/local/lib
28614 elif test -f /usr/bin/sqlite; then
28615 SQL_BINDIR=/usr/bin
28616 if test -d /usr/lib64; then
28617 SQL_LIBDIR=/usr/lib64
28619 SQL_LIBDIR=/usr/lib
28621 elif test -f $withval/bin/sqlite; then
28622 SQL_BINDIR=$withval/bin
28623 if test -d $withval/lib64; then
28624 SQL_LIBDIR=$withval/lib64
28626 SQL_LIBDIR=$withval/lib
28629 { echo "$as_me:$LINENO: result: no" >&5
28630 echo "${ECHO_T}no" >&6; }
28631 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28632 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28633 { (exit 1); exit 1; }; }
28635 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28639 if test -f /usr/local/bin/sqlite3; then
28640 SQL_BINDIR=/usr/local/bin
28641 if test -d /usr/local/lib64; then
28642 SQL_LIBDIR=/usr/local/lib64
28644 SQL_LIBDIR=/usr/local/lib
28646 elif test -f /usr/bin/sqlite3; then
28647 SQL_BINDIR=/usr/bin
28648 if test -d /usr/lib64; then
28649 SQL_LIBDIR=/usr/lib64
28651 SQL_LIBDIR=/usr/lib
28653 elif test -f $withval/bin/sqlite3; then
28654 SQL_BINDIR=$withval/bin
28655 if test -d $withval/lib64; then
28656 SQL_LIBDIR=$withval/lib64
28658 SQL_LIBDIR=$withval/lib
28661 { echo "$as_me:$LINENO: result: no" >&5
28662 echo "${ECHO_T}no" >&6; }
28663 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28664 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28665 { (exit 1); exit 1; }; }
28667 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28670 { echo "$as_me:$LINENO: result: no" >&5
28671 echo "${ECHO_T}no" >&6; }
28672 { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
28673 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
28674 { (exit 1); exit 1; }; }
28678 { echo "$as_me:$LINENO: result: yes" >&5
28679 echo "${ECHO_T}yes" >&6; }
28682 { echo "$as_me:$LINENO: result: no" >&5
28683 echo "${ECHO_T}no" >&6; }
28688 { echo "$as_me:$LINENO: result: no" >&5
28689 echo "${ECHO_T}no" >&6; }
28702 support_batch_insert=no
28703 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
28705 if test $pkg = 0; then
28706 support_batch_insert=yes
28707 # Check whether --enable-batch-insert was given.
28708 if test "${enable_batch_insert+set}" = set; then
28709 enableval=$enable_batch_insert;
28710 if test x$enableval = xno; then
28711 support_batch_insert=no
28713 support_batch_insert=yes
28721 if test x$DB_TYPE = xpostgresql; then
28722 A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28724 if test $pkg != 0; then
28725 support_batch_insert=no
28729 if test x$DB_TYPE = xdbi; then
28733 if test $DB_PROG = postgresql; then
28734 A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28738 if test $DB_PROG = mysql; then
28739 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28743 if test $DB_PROG = sqlite3; then
28744 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28748 if test $pkg = 0; then
28749 # Check whether --enable-batch-insert was given.
28750 if test "${enable_batch_insert+set}" = set; then
28751 enableval=$enable_batch_insert;
28752 if test x$enableval = xno; then
28753 support_batch_insert=no
28755 support_batch_insert=yes
28768 if test $support_batch_insert = yes ; then
28770 cat >>confdefs.h <<\_ACEOF
28771 #define HAVE_BATCH_FILE_INSERT 1
28776 cat >>confdefs.h <<\_ACEOF
28777 #define PROTOTYPES 1
28781 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
28782 if test -z "$CCOPTS"; then
28783 CCOPTS='-g -O2 -Wall'
28790 largefile_support="no"
28792 # Check whether --enable-largefile was given.
28793 if test "${enable_largefile+set}" = set; then
28794 enableval=$enable_largefile;
28797 if test "$enable_largefile" != no; then
28798 if test -n "$ac_tool_prefix"; then
28799 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
28800 set dummy ${ac_tool_prefix}getconf; ac_word=$2
28801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28803 if test "${ac_cv_prog_GETCONF+set}" = set; then
28804 echo $ECHO_N "(cached) $ECHO_C" >&6
28806 if test -n "$GETCONF"; then
28807 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
28809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28810 for as_dir in $PATH
28813 test -z "$as_dir" && as_dir=.
28814 for ac_exec_ext in '' $ac_executable_extensions; do
28815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28816 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
28817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28826 GETCONF=$ac_cv_prog_GETCONF
28827 if test -n "$GETCONF"; then
28828 { echo "$as_me:$LINENO: result: $GETCONF" >&5
28829 echo "${ECHO_T}$GETCONF" >&6; }
28831 { echo "$as_me:$LINENO: result: no" >&5
28832 echo "${ECHO_T}no" >&6; }
28837 if test -z "$ac_cv_prog_GETCONF"; then
28838 ac_ct_GETCONF=$GETCONF
28839 # Extract the first word of "getconf", so it can be a program name with args.
28840 set dummy getconf; ac_word=$2
28841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28843 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
28844 echo $ECHO_N "(cached) $ECHO_C" >&6
28846 if test -n "$ac_ct_GETCONF"; then
28847 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
28849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28850 for as_dir in $PATH
28853 test -z "$as_dir" && as_dir=.
28854 for ac_exec_ext in '' $ac_executable_extensions; do
28855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28856 ac_cv_prog_ac_ct_GETCONF="getconf"
28857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28866 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
28867 if test -n "$ac_ct_GETCONF"; then
28868 { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
28869 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
28871 { echo "$as_me:$LINENO: result: no" >&5
28872 echo "${ECHO_T}no" >&6; }
28875 if test "x$ac_ct_GETCONF" = x; then
28878 case $cross_compiling:$ac_tool_warned in
28880 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
28881 whose name does not start with the host triplet. If you think this
28882 configuration is useful to you, please write to autoconf@gnu.org." >&5
28883 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
28884 whose name does not start with the host triplet. If you think this
28885 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
28886 ac_tool_warned=yes ;;
28888 GETCONF=$ac_ct_GETCONF
28891 GETCONF="$ac_cv_prog_GETCONF"
28894 { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
28895 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
28896 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
28897 echo $ECHO_N "(cached) $ECHO_C" >&6
28899 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
28900 ac_cv_sys_largefile_CFLAGS=no
28902 # IRIX 6.2 and later require cc -n32.
28903 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
28904 if test "$GCC" != yes; then
28905 ac_cv_sys_largefile_CFLAGS=-n32
28908 CC="$CC $ac_cv_sys_largefile_CFLAGS"
28909 cat >conftest.$ac_ext <<_ACEOF
28912 cat confdefs.h >>conftest.$ac_ext
28913 cat >>conftest.$ac_ext <<_ACEOF
28914 /* end confdefs.h. */
28924 rm -f conftest.$ac_objext conftest$ac_exeext
28925 if { (ac_try="$ac_link"
28926 case "(($ac_try" in
28927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28928 *) ac_try_echo=$ac_try;;
28930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28931 (eval "$ac_link") 2>conftest.er1
28933 grep -v '^ *+' conftest.er1 >conftest.err
28935 cat conftest.err >&5
28936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28937 (exit $ac_status); } && {
28938 test -z "$ac_c_werror_flag" ||
28939 test ! -s conftest.err
28940 } && test -s conftest$ac_exeext &&
28941 $as_test_x conftest$ac_exeext; then
28944 echo "$as_me: failed program was:" >&5
28945 sed 's/^/| /' conftest.$ac_ext >&5
28947 ac_cv_sys_largefile_CFLAGS=no
28950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28951 conftest$ac_exeext conftest.$ac_ext
28956 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
28957 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
28958 { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
28959 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
28960 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
28961 echo $ECHO_N "(cached) $ECHO_C" >&6
28963 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
28964 ac_cv_sys_largefile_LDFLAGS=no
28968 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
28969 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
28970 { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
28971 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
28972 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
28973 echo $ECHO_N "(cached) $ECHO_C" >&6
28975 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
28976 ac_cv_sys_largefile_LIBS=no
28980 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
28981 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
28983 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
28986 -D_FILE_OFFSET_BITS=*) ;;
28987 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
28988 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
28993 case "$CPPFLAGS" in
28994 '') CPPFLAGS="$ac_flag" ;;
28995 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
29003 '') CFLAGS="$ac_flag" ;;
29004 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29009 case "$ac_cv_sys_largefile_LDFLAGS" in
29013 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29014 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29017 case "$ac_cv_sys_largefile_LIBS" in
29021 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29022 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29025 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29026 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29027 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29028 echo $ECHO_N "(cached) $ECHO_C" >&6
29030 ac_cv_sys_file_offset_bits=no
29031 ac_cv_sys_file_offset_bits=64
29032 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29034 -D_FILE_OFFSET_BITS)
29035 ac_cv_sys_file_offset_bits=1 ;;
29036 -D_FILE_OFFSET_BITS=*)
29037 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29042 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29043 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29044 if test "$ac_cv_sys_file_offset_bits" != no; then
29046 cat >>confdefs.h <<_ACEOF
29047 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29051 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29052 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29053 if test "${ac_cv_sys_largefile_source+set}" = set; then
29054 echo $ECHO_N "(cached) $ECHO_C" >&6
29056 ac_cv_sys_largefile_source=no
29057 ac_cv_sys_largefile_source=1
29058 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29060 -D_LARGEFILE_SOURCE)
29061 ac_cv_sys_largefile_source=1 ;;
29062 -D_LARGEFILE_SOURCE=*)
29063 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29068 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29069 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29070 if test "$ac_cv_sys_largefile_source" != no; then
29072 cat >>confdefs.h <<_ACEOF
29073 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29077 { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29078 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29079 if test "${ac_cv_sys_large_files+set}" = set; then
29080 echo $ECHO_N "(cached) $ECHO_C" >&6
29082 ac_cv_sys_large_files=no
29083 ac_cv_sys_large_files=1
29084 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29087 ac_cv_sys_large_files=1 ;;
29089 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29094 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29095 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29096 if test "$ac_cv_sys_large_files" != no; then
29098 cat >>confdefs.h <<_ACEOF
29099 #define _LARGE_FILES $ac_cv_sys_large_files
29106 { echo "$as_me:$LINENO: checking for X" >&5
29107 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29110 # Check whether --with-x was given.
29111 if test "${with_x+set}" = set; then
29115 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29116 if test "x$with_x" = xno; then
29117 # The user explicitly disabled X.
29120 case $x_includes,$x_libraries in #(
29121 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29122 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29123 { (exit 1); exit 1; }; };; #(
29124 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29125 echo $ECHO_N "(cached) $ECHO_C" >&6
29127 # One or both of the vars are not set, and there is no cached value.
29128 ac_x_includes=no ac_x_libraries=no
29129 rm -f -r conftest.dir
29130 if mkdir conftest.dir; then
29132 cat >Imakefile <<'_ACEOF'
29134 @echo incroot='${INCROOT}'
29136 @echo usrlibdir='${USRLIBDIR}'
29138 @echo libdir='${LIBDIR}'
29140 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29141 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29142 for ac_var in incroot usrlibdir libdir; do
29143 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29145 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29146 for ac_extension in a so sl; do
29147 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29148 test -f "$ac_im_libdir/libX11.$ac_extension"; then
29149 ac_im_usrlibdir=$ac_im_libdir; break
29152 # Screen out bogus values from the imake configuration. They are
29153 # bogus both because they are the default anyway, and because
29154 # using them would break gcc on systems where it needs fixed includes.
29155 case $ac_im_incroot in
29156 /usr/include) ac_x_includes= ;;
29157 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29159 case $ac_im_usrlibdir in
29160 /usr/lib | /lib) ;;
29161 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29165 rm -f -r conftest.dir
29168 # Standard set of common directories for X headers.
29169 # Check X11 before X11Rn because it is often a symlink to the current release.
29181 /usr/local/X11/include
29182 /usr/local/X11R6/include
29183 /usr/local/X11R5/include
29184 /usr/local/X11R4/include
29186 /usr/local/include/X11
29187 /usr/local/include/X11R6
29188 /usr/local/include/X11R5
29189 /usr/local/include/X11R4
29193 /usr/XFree86/include/X11
29197 /usr/unsupported/include
29198 /usr/athena/include
29199 /usr/local/x11r5/include
29200 /usr/lpp/Xamples/include
29202 /usr/openwin/include
29203 /usr/openwin/share/include'
29205 if test "$ac_x_includes" = no; then
29206 # Guess where to find include files, by looking for Xlib.h.
29207 # First, try using that file with no special directory specified.
29208 cat >conftest.$ac_ext <<_ACEOF
29211 cat confdefs.h >>conftest.$ac_ext
29212 cat >>conftest.$ac_ext <<_ACEOF
29213 /* end confdefs.h. */
29214 #include <X11/Xlib.h>
29216 if { (ac_try="$ac_cpp conftest.$ac_ext"
29217 case "(($ac_try" in
29218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29219 *) ac_try_echo=$ac_try;;
29221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29222 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29224 grep -v '^ *+' conftest.er1 >conftest.err
29226 cat conftest.err >&5
29227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29228 (exit $ac_status); } >/dev/null && {
29229 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29230 test ! -s conftest.err
29232 # We can compile using X headers with no special include directory.
29235 echo "$as_me: failed program was:" >&5
29236 sed 's/^/| /' conftest.$ac_ext >&5
29238 for ac_dir in $ac_x_header_dirs; do
29239 if test -r "$ac_dir/X11/Xlib.h"; then
29240 ac_x_includes=$ac_dir
29246 rm -f conftest.err conftest.$ac_ext
29247 fi # $ac_x_includes = no
29249 if test "$ac_x_libraries" = no; then
29250 # Check for the libraries.
29251 # See if we find them without any special options.
29252 # Don't add to $LIBS permanently.
29255 cat >conftest.$ac_ext <<_ACEOF
29258 cat confdefs.h >>conftest.$ac_ext
29259 cat >>conftest.$ac_ext <<_ACEOF
29260 /* end confdefs.h. */
29261 #include <X11/Xlib.h>
29270 rm -f conftest.$ac_objext conftest$ac_exeext
29271 if { (ac_try="$ac_link"
29272 case "(($ac_try" in
29273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29274 *) ac_try_echo=$ac_try;;
29276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29277 (eval "$ac_link") 2>conftest.er1
29279 grep -v '^ *+' conftest.er1 >conftest.err
29281 cat conftest.err >&5
29282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29283 (exit $ac_status); } && {
29284 test -z "$ac_c_werror_flag" ||
29285 test ! -s conftest.err
29286 } && test -s conftest$ac_exeext &&
29287 $as_test_x conftest$ac_exeext; then
29289 # We can link X programs with no special library path.
29292 echo "$as_me: failed program was:" >&5
29293 sed 's/^/| /' conftest.$ac_ext >&5
29296 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29298 # Don't even attempt the hair of trying to link an X program!
29299 for ac_extension in a so sl; do
29300 if test -r "$ac_dir/libX11.$ac_extension"; then
29301 ac_x_libraries=$ac_dir
29308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29309 conftest$ac_exeext conftest.$ac_ext
29310 fi # $ac_x_libraries = no
29312 case $ac_x_includes,$ac_x_libraries in #(
29313 no,* | *,no | *\'*)
29314 # Didn't find X, or a directory has "'" in its name.
29315 ac_cv_have_x="have_x=no";; #(
29317 # Record where we found X for the cache.
29318 ac_cv_have_x="have_x=yes\
29319 ac_x_includes='$ac_x_includes'\
29320 ac_x_libraries='$ac_x_libraries'"
29326 eval "$ac_cv_have_x"
29329 if test "$have_x" != yes; then
29330 { echo "$as_me:$LINENO: result: $have_x" >&5
29331 echo "${ECHO_T}$have_x" >&6; }
29334 # If each of the values was on the command line, it overrides each guess.
29335 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29336 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29337 # Update the cache value to reflect the command line values.
29338 ac_cv_have_x="have_x=yes\
29339 ac_x_includes='$x_includes'\
29340 ac_x_libraries='$x_libraries'"
29341 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29342 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
29345 if test "$no_x" = yes; then
29346 # Not all programs may use this symbol, but it does not hurt to define it.
29348 cat >>confdefs.h <<\_ACEOF
29349 #define X_DISPLAY_MISSING 1
29352 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29354 if test -n "$x_includes"; then
29355 X_CFLAGS="$X_CFLAGS -I$x_includes"
29358 # It would also be nice to do this for all -L options, not just this one.
29359 if test -n "$x_libraries"; then
29360 X_LIBS="$X_LIBS -L$x_libraries"
29361 # For Solaris; some versions of Sun CC require a space after -R and
29362 # others require no space. Words are not sufficient . . . .
29363 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29364 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
29365 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29366 ac_xsave_c_werror_flag=$ac_c_werror_flag
29367 ac_c_werror_flag=yes
29368 cat >conftest.$ac_ext <<_ACEOF
29371 cat confdefs.h >>conftest.$ac_ext
29372 cat >>conftest.$ac_ext <<_ACEOF
29373 /* end confdefs.h. */
29383 rm -f conftest.$ac_objext conftest$ac_exeext
29384 if { (ac_try="$ac_link"
29385 case "(($ac_try" in
29386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29387 *) ac_try_echo=$ac_try;;
29389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29390 (eval "$ac_link") 2>conftest.er1
29392 grep -v '^ *+' conftest.er1 >conftest.err
29394 cat conftest.err >&5
29395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29396 (exit $ac_status); } && {
29397 test -z "$ac_c_werror_flag" ||
29398 test ! -s conftest.err
29399 } && test -s conftest$ac_exeext &&
29400 $as_test_x conftest$ac_exeext; then
29401 { echo "$as_me:$LINENO: result: no" >&5
29402 echo "${ECHO_T}no" >&6; }
29403 X_LIBS="$X_LIBS -R$x_libraries"
29405 echo "$as_me: failed program was:" >&5
29406 sed 's/^/| /' conftest.$ac_ext >&5
29408 LIBS="$ac_xsave_LIBS -R $x_libraries"
29409 cat >conftest.$ac_ext <<_ACEOF
29412 cat confdefs.h >>conftest.$ac_ext
29413 cat >>conftest.$ac_ext <<_ACEOF
29414 /* end confdefs.h. */
29424 rm -f conftest.$ac_objext conftest$ac_exeext
29425 if { (ac_try="$ac_link"
29426 case "(($ac_try" in
29427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29428 *) ac_try_echo=$ac_try;;
29430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29431 (eval "$ac_link") 2>conftest.er1
29433 grep -v '^ *+' conftest.er1 >conftest.err
29435 cat conftest.err >&5
29436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29437 (exit $ac_status); } && {
29438 test -z "$ac_c_werror_flag" ||
29439 test ! -s conftest.err
29440 } && test -s conftest$ac_exeext &&
29441 $as_test_x conftest$ac_exeext; then
29442 { echo "$as_me:$LINENO: result: yes" >&5
29443 echo "${ECHO_T}yes" >&6; }
29444 X_LIBS="$X_LIBS -R $x_libraries"
29446 echo "$as_me: failed program was:" >&5
29447 sed 's/^/| /' conftest.$ac_ext >&5
29449 { echo "$as_me:$LINENO: result: neither works" >&5
29450 echo "${ECHO_T}neither works" >&6; }
29453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29454 conftest$ac_exeext conftest.$ac_ext
29457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29458 conftest$ac_exeext conftest.$ac_ext
29459 ac_c_werror_flag=$ac_xsave_c_werror_flag
29460 LIBS=$ac_xsave_LIBS
29463 # Check for system-dependent libraries X programs must link with.
29464 # Do this before checking for the system-independent R6 libraries
29465 # (-lICE), since we may need -lsocket or whatever for X linking.
29467 if test "$ISC" = yes; then
29468 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29470 # Martyn Johnson says this is needed for Ultrix, if the X
29471 # libraries were built with DECnet support. And Karl Berry says
29472 # the Alpha needs dnet_stub (dnet does not exist).
29473 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29474 cat >conftest.$ac_ext <<_ACEOF
29477 cat confdefs.h >>conftest.$ac_ext
29478 cat >>conftest.$ac_ext <<_ACEOF
29479 /* end confdefs.h. */
29481 /* Override any GCC internal prototype to avoid an error.
29482 Use char because int might match the return type of a GCC
29483 builtin and then its argument prototype would still apply. */
29487 char XOpenDisplay ();
29491 return XOpenDisplay ();
29496 rm -f conftest.$ac_objext conftest$ac_exeext
29497 if { (ac_try="$ac_link"
29498 case "(($ac_try" in
29499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29500 *) ac_try_echo=$ac_try;;
29502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29503 (eval "$ac_link") 2>conftest.er1
29505 grep -v '^ *+' conftest.er1 >conftest.err
29507 cat conftest.err >&5
29508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29509 (exit $ac_status); } && {
29510 test -z "$ac_c_werror_flag" ||
29511 test ! -s conftest.err
29512 } && test -s conftest$ac_exeext &&
29513 $as_test_x conftest$ac_exeext; then
29516 echo "$as_me: failed program was:" >&5
29517 sed 's/^/| /' conftest.$ac_ext >&5
29519 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29520 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
29521 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29522 echo $ECHO_N "(cached) $ECHO_C" >&6
29524 ac_check_lib_save_LIBS=$LIBS
29525 LIBS="-ldnet $LIBS"
29526 cat >conftest.$ac_ext <<_ACEOF
29529 cat confdefs.h >>conftest.$ac_ext
29530 cat >>conftest.$ac_ext <<_ACEOF
29531 /* end confdefs.h. */
29533 /* Override any GCC internal prototype to avoid an error.
29534 Use char because int might match the return type of a GCC
29535 builtin and then its argument prototype would still apply. */
29543 return dnet_ntoa ();
29548 rm -f conftest.$ac_objext conftest$ac_exeext
29549 if { (ac_try="$ac_link"
29550 case "(($ac_try" in
29551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29552 *) ac_try_echo=$ac_try;;
29554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29555 (eval "$ac_link") 2>conftest.er1
29557 grep -v '^ *+' conftest.er1 >conftest.err
29559 cat conftest.err >&5
29560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29561 (exit $ac_status); } && {
29562 test -z "$ac_c_werror_flag" ||
29563 test ! -s conftest.err
29564 } && test -s conftest$ac_exeext &&
29565 $as_test_x conftest$ac_exeext; then
29566 ac_cv_lib_dnet_dnet_ntoa=yes
29568 echo "$as_me: failed program was:" >&5
29569 sed 's/^/| /' conftest.$ac_ext >&5
29571 ac_cv_lib_dnet_dnet_ntoa=no
29574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29575 conftest$ac_exeext conftest.$ac_ext
29576 LIBS=$ac_check_lib_save_LIBS
29578 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29579 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
29580 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29581 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29584 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29585 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29586 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
29587 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29588 echo $ECHO_N "(cached) $ECHO_C" >&6
29590 ac_check_lib_save_LIBS=$LIBS
29591 LIBS="-ldnet_stub $LIBS"
29592 cat >conftest.$ac_ext <<_ACEOF
29595 cat confdefs.h >>conftest.$ac_ext
29596 cat >>conftest.$ac_ext <<_ACEOF
29597 /* end confdefs.h. */
29599 /* Override any GCC internal prototype to avoid an error.
29600 Use char because int might match the return type of a GCC
29601 builtin and then its argument prototype would still apply. */
29609 return dnet_ntoa ();
29614 rm -f conftest.$ac_objext conftest$ac_exeext
29615 if { (ac_try="$ac_link"
29616 case "(($ac_try" in
29617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29618 *) ac_try_echo=$ac_try;;
29620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29621 (eval "$ac_link") 2>conftest.er1
29623 grep -v '^ *+' conftest.er1 >conftest.err
29625 cat conftest.err >&5
29626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29627 (exit $ac_status); } && {
29628 test -z "$ac_c_werror_flag" ||
29629 test ! -s conftest.err
29630 } && test -s conftest$ac_exeext &&
29631 $as_test_x conftest$ac_exeext; then
29632 ac_cv_lib_dnet_stub_dnet_ntoa=yes
29634 echo "$as_me: failed program was:" >&5
29635 sed 's/^/| /' conftest.$ac_ext >&5
29637 ac_cv_lib_dnet_stub_dnet_ntoa=no
29640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29641 conftest$ac_exeext conftest.$ac_ext
29642 LIBS=$ac_check_lib_save_LIBS
29644 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29645 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
29646 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29647 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29654 conftest$ac_exeext conftest.$ac_ext
29655 LIBS="$ac_xsave_LIBS"
29657 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29658 # to get the SysV transport functions.
29659 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29661 # The nsl library prevents programs from opening the X display
29662 # on Irix 5.2, according to T.E. Dickey.
29663 # The functions gethostbyname, getservbyname, and inet_addr are
29664 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29665 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
29666 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
29667 if test "${ac_cv_func_gethostbyname+set}" = set; then
29668 echo $ECHO_N "(cached) $ECHO_C" >&6
29670 cat >conftest.$ac_ext <<_ACEOF
29673 cat confdefs.h >>conftest.$ac_ext
29674 cat >>conftest.$ac_ext <<_ACEOF
29675 /* end confdefs.h. */
29676 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29677 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29678 #define gethostbyname innocuous_gethostbyname
29680 /* System header to define __stub macros and hopefully few prototypes,
29681 which can conflict with char gethostbyname (); below.
29682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29683 <limits.h> exists even on freestanding compilers. */
29686 # include <limits.h>
29688 # include <assert.h>
29691 #undef gethostbyname
29693 /* Override any GCC internal prototype to avoid an error.
29694 Use char because int might match the return type of a GCC
29695 builtin and then its argument prototype would still apply. */
29699 char gethostbyname ();
29700 /* The GNU C library defines this for functions which it implements
29701 to always fail with ENOSYS. Some functions are actually named
29702 something starting with __ and the normal name is an alias. */
29703 #if defined __stub_gethostbyname || defined __stub___gethostbyname
29710 return gethostbyname ();
29715 rm -f conftest.$ac_objext conftest$ac_exeext
29716 if { (ac_try="$ac_link"
29717 case "(($ac_try" in
29718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29719 *) ac_try_echo=$ac_try;;
29721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29722 (eval "$ac_link") 2>conftest.er1
29724 grep -v '^ *+' conftest.er1 >conftest.err
29726 cat conftest.err >&5
29727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29728 (exit $ac_status); } && {
29729 test -z "$ac_c_werror_flag" ||
29730 test ! -s conftest.err
29731 } && test -s conftest$ac_exeext &&
29732 $as_test_x conftest$ac_exeext; then
29733 ac_cv_func_gethostbyname=yes
29735 echo "$as_me: failed program was:" >&5
29736 sed 's/^/| /' conftest.$ac_ext >&5
29738 ac_cv_func_gethostbyname=no
29741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29742 conftest$ac_exeext conftest.$ac_ext
29744 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29745 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
29747 if test $ac_cv_func_gethostbyname = no; then
29748 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29749 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
29750 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29751 echo $ECHO_N "(cached) $ECHO_C" >&6
29753 ac_check_lib_save_LIBS=$LIBS
29755 cat >conftest.$ac_ext <<_ACEOF
29758 cat confdefs.h >>conftest.$ac_ext
29759 cat >>conftest.$ac_ext <<_ACEOF
29760 /* end confdefs.h. */
29762 /* Override any GCC internal prototype to avoid an error.
29763 Use char because int might match the return type of a GCC
29764 builtin and then its argument prototype would still apply. */
29768 char gethostbyname ();
29772 return gethostbyname ();
29777 rm -f conftest.$ac_objext conftest$ac_exeext
29778 if { (ac_try="$ac_link"
29779 case "(($ac_try" in
29780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29781 *) ac_try_echo=$ac_try;;
29783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29784 (eval "$ac_link") 2>conftest.er1
29786 grep -v '^ *+' conftest.er1 >conftest.err
29788 cat conftest.err >&5
29789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29790 (exit $ac_status); } && {
29791 test -z "$ac_c_werror_flag" ||
29792 test ! -s conftest.err
29793 } && test -s conftest$ac_exeext &&
29794 $as_test_x conftest$ac_exeext; then
29795 ac_cv_lib_nsl_gethostbyname=yes
29797 echo "$as_me: failed program was:" >&5
29798 sed 's/^/| /' conftest.$ac_ext >&5
29800 ac_cv_lib_nsl_gethostbyname=no
29803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29804 conftest$ac_exeext conftest.$ac_ext
29805 LIBS=$ac_check_lib_save_LIBS
29807 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
29808 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
29809 if test $ac_cv_lib_nsl_gethostbyname = yes; then
29810 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
29813 if test $ac_cv_lib_nsl_gethostbyname = no; then
29814 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
29815 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
29816 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
29817 echo $ECHO_N "(cached) $ECHO_C" >&6
29819 ac_check_lib_save_LIBS=$LIBS
29821 cat >conftest.$ac_ext <<_ACEOF
29824 cat confdefs.h >>conftest.$ac_ext
29825 cat >>conftest.$ac_ext <<_ACEOF
29826 /* end confdefs.h. */
29828 /* Override any GCC internal prototype to avoid an error.
29829 Use char because int might match the return type of a GCC
29830 builtin and then its argument prototype would still apply. */
29834 char gethostbyname ();
29838 return gethostbyname ();
29843 rm -f conftest.$ac_objext conftest$ac_exeext
29844 if { (ac_try="$ac_link"
29845 case "(($ac_try" in
29846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29847 *) ac_try_echo=$ac_try;;
29849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29850 (eval "$ac_link") 2>conftest.er1
29852 grep -v '^ *+' conftest.er1 >conftest.err
29854 cat conftest.err >&5
29855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29856 (exit $ac_status); } && {
29857 test -z "$ac_c_werror_flag" ||
29858 test ! -s conftest.err
29859 } && test -s conftest$ac_exeext &&
29860 $as_test_x conftest$ac_exeext; then
29861 ac_cv_lib_bsd_gethostbyname=yes
29863 echo "$as_me: failed program was:" >&5
29864 sed 's/^/| /' conftest.$ac_ext >&5
29866 ac_cv_lib_bsd_gethostbyname=no
29869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29870 conftest$ac_exeext conftest.$ac_ext
29871 LIBS=$ac_check_lib_save_LIBS
29873 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
29874 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
29875 if test $ac_cv_lib_bsd_gethostbyname = yes; then
29876 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
29882 # lieder@skyler.mavd.honeywell.com says without -lsocket,
29883 # socket/setsockopt and other routines are undefined under SCO ODT
29884 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
29885 # on later versions), says Simon Leinen: it contains gethostby*
29886 # variants that don't use the name server (or something). -lsocket
29887 # must be given before -lnsl if both are needed. We assume that
29888 # if connect needs -lnsl, so does gethostbyname.
29889 { echo "$as_me:$LINENO: checking for connect" >&5
29890 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
29891 if test "${ac_cv_func_connect+set}" = set; then
29892 echo $ECHO_N "(cached) $ECHO_C" >&6
29894 cat >conftest.$ac_ext <<_ACEOF
29897 cat confdefs.h >>conftest.$ac_ext
29898 cat >>conftest.$ac_ext <<_ACEOF
29899 /* end confdefs.h. */
29900 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
29901 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29902 #define connect innocuous_connect
29904 /* System header to define __stub macros and hopefully few prototypes,
29905 which can conflict with char connect (); below.
29906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29907 <limits.h> exists even on freestanding compilers. */
29910 # include <limits.h>
29912 # include <assert.h>
29917 /* Override any GCC internal prototype to avoid an error.
29918 Use char because int might match the return type of a GCC
29919 builtin and then its argument prototype would still apply. */
29924 /* The GNU C library defines this for functions which it implements
29925 to always fail with ENOSYS. Some functions are actually named
29926 something starting with __ and the normal name is an alias. */
29927 #if defined __stub_connect || defined __stub___connect
29939 rm -f conftest.$ac_objext conftest$ac_exeext
29940 if { (ac_try="$ac_link"
29941 case "(($ac_try" in
29942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29943 *) ac_try_echo=$ac_try;;
29945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29946 (eval "$ac_link") 2>conftest.er1
29948 grep -v '^ *+' conftest.er1 >conftest.err
29950 cat conftest.err >&5
29951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29952 (exit $ac_status); } && {
29953 test -z "$ac_c_werror_flag" ||
29954 test ! -s conftest.err
29955 } && test -s conftest$ac_exeext &&
29956 $as_test_x conftest$ac_exeext; then
29957 ac_cv_func_connect=yes
29959 echo "$as_me: failed program was:" >&5
29960 sed 's/^/| /' conftest.$ac_ext >&5
29962 ac_cv_func_connect=no
29965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29966 conftest$ac_exeext conftest.$ac_ext
29968 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
29969 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
29971 if test $ac_cv_func_connect = no; then
29972 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
29973 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
29974 if test "${ac_cv_lib_socket_connect+set}" = set; then
29975 echo $ECHO_N "(cached) $ECHO_C" >&6
29977 ac_check_lib_save_LIBS=$LIBS
29978 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
29979 cat >conftest.$ac_ext <<_ACEOF
29982 cat confdefs.h >>conftest.$ac_ext
29983 cat >>conftest.$ac_ext <<_ACEOF
29984 /* end confdefs.h. */
29986 /* Override any GCC internal prototype to avoid an error.
29987 Use char because int might match the return type of a GCC
29988 builtin and then its argument prototype would still apply. */
30001 rm -f conftest.$ac_objext conftest$ac_exeext
30002 if { (ac_try="$ac_link"
30003 case "(($ac_try" in
30004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30005 *) ac_try_echo=$ac_try;;
30007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30008 (eval "$ac_link") 2>conftest.er1
30010 grep -v '^ *+' conftest.er1 >conftest.err
30012 cat conftest.err >&5
30013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30014 (exit $ac_status); } && {
30015 test -z "$ac_c_werror_flag" ||
30016 test ! -s conftest.err
30017 } && test -s conftest$ac_exeext &&
30018 $as_test_x conftest$ac_exeext; then
30019 ac_cv_lib_socket_connect=yes
30021 echo "$as_me: failed program was:" >&5
30022 sed 's/^/| /' conftest.$ac_ext >&5
30024 ac_cv_lib_socket_connect=no
30027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30028 conftest$ac_exeext conftest.$ac_ext
30029 LIBS=$ac_check_lib_save_LIBS
30031 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30032 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30033 if test $ac_cv_lib_socket_connect = yes; then
30034 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30039 # Guillermo Gomez says -lposix is necessary on A/UX.
30040 { echo "$as_me:$LINENO: checking for remove" >&5
30041 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30042 if test "${ac_cv_func_remove+set}" = set; then
30043 echo $ECHO_N "(cached) $ECHO_C" >&6
30045 cat >conftest.$ac_ext <<_ACEOF
30048 cat confdefs.h >>conftest.$ac_ext
30049 cat >>conftest.$ac_ext <<_ACEOF
30050 /* end confdefs.h. */
30051 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30052 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30053 #define remove innocuous_remove
30055 /* System header to define __stub macros and hopefully few prototypes,
30056 which can conflict with char remove (); below.
30057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30058 <limits.h> exists even on freestanding compilers. */
30061 # include <limits.h>
30063 # include <assert.h>
30068 /* Override any GCC internal prototype to avoid an error.
30069 Use char because int might match the return type of a GCC
30070 builtin and then its argument prototype would still apply. */
30075 /* The GNU C library defines this for functions which it implements
30076 to always fail with ENOSYS. Some functions are actually named
30077 something starting with __ and the normal name is an alias. */
30078 #if defined __stub_remove || defined __stub___remove
30090 rm -f conftest.$ac_objext conftest$ac_exeext
30091 if { (ac_try="$ac_link"
30092 case "(($ac_try" in
30093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30094 *) ac_try_echo=$ac_try;;
30096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30097 (eval "$ac_link") 2>conftest.er1
30099 grep -v '^ *+' conftest.er1 >conftest.err
30101 cat conftest.err >&5
30102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30103 (exit $ac_status); } && {
30104 test -z "$ac_c_werror_flag" ||
30105 test ! -s conftest.err
30106 } && test -s conftest$ac_exeext &&
30107 $as_test_x conftest$ac_exeext; then
30108 ac_cv_func_remove=yes
30110 echo "$as_me: failed program was:" >&5
30111 sed 's/^/| /' conftest.$ac_ext >&5
30113 ac_cv_func_remove=no
30116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30117 conftest$ac_exeext conftest.$ac_ext
30119 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30120 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30122 if test $ac_cv_func_remove = no; then
30123 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30124 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30125 if test "${ac_cv_lib_posix_remove+set}" = set; then
30126 echo $ECHO_N "(cached) $ECHO_C" >&6
30128 ac_check_lib_save_LIBS=$LIBS
30129 LIBS="-lposix $LIBS"
30130 cat >conftest.$ac_ext <<_ACEOF
30133 cat confdefs.h >>conftest.$ac_ext
30134 cat >>conftest.$ac_ext <<_ACEOF
30135 /* end confdefs.h. */
30137 /* Override any GCC internal prototype to avoid an error.
30138 Use char because int might match the return type of a GCC
30139 builtin and then its argument prototype would still apply. */
30152 rm -f conftest.$ac_objext conftest$ac_exeext
30153 if { (ac_try="$ac_link"
30154 case "(($ac_try" in
30155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30156 *) ac_try_echo=$ac_try;;
30158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30159 (eval "$ac_link") 2>conftest.er1
30161 grep -v '^ *+' conftest.er1 >conftest.err
30163 cat conftest.err >&5
30164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30165 (exit $ac_status); } && {
30166 test -z "$ac_c_werror_flag" ||
30167 test ! -s conftest.err
30168 } && test -s conftest$ac_exeext &&
30169 $as_test_x conftest$ac_exeext; then
30170 ac_cv_lib_posix_remove=yes
30172 echo "$as_me: failed program was:" >&5
30173 sed 's/^/| /' conftest.$ac_ext >&5
30175 ac_cv_lib_posix_remove=no
30178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30179 conftest$ac_exeext conftest.$ac_ext
30180 LIBS=$ac_check_lib_save_LIBS
30182 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30183 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30184 if test $ac_cv_lib_posix_remove = yes; then
30185 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30190 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30191 { echo "$as_me:$LINENO: checking for shmat" >&5
30192 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30193 if test "${ac_cv_func_shmat+set}" = set; then
30194 echo $ECHO_N "(cached) $ECHO_C" >&6
30196 cat >conftest.$ac_ext <<_ACEOF
30199 cat confdefs.h >>conftest.$ac_ext
30200 cat >>conftest.$ac_ext <<_ACEOF
30201 /* end confdefs.h. */
30202 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30204 #define shmat innocuous_shmat
30206 /* System header to define __stub macros and hopefully few prototypes,
30207 which can conflict with char shmat (); below.
30208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30209 <limits.h> exists even on freestanding compilers. */
30212 # include <limits.h>
30214 # include <assert.h>
30219 /* Override any GCC internal prototype to avoid an error.
30220 Use char because int might match the return type of a GCC
30221 builtin and then its argument prototype would still apply. */
30226 /* The GNU C library defines this for functions which it implements
30227 to always fail with ENOSYS. Some functions are actually named
30228 something starting with __ and the normal name is an alias. */
30229 #if defined __stub_shmat || defined __stub___shmat
30241 rm -f conftest.$ac_objext conftest$ac_exeext
30242 if { (ac_try="$ac_link"
30243 case "(($ac_try" in
30244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30245 *) ac_try_echo=$ac_try;;
30247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30248 (eval "$ac_link") 2>conftest.er1
30250 grep -v '^ *+' conftest.er1 >conftest.err
30252 cat conftest.err >&5
30253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30254 (exit $ac_status); } && {
30255 test -z "$ac_c_werror_flag" ||
30256 test ! -s conftest.err
30257 } && test -s conftest$ac_exeext &&
30258 $as_test_x conftest$ac_exeext; then
30259 ac_cv_func_shmat=yes
30261 echo "$as_me: failed program was:" >&5
30262 sed 's/^/| /' conftest.$ac_ext >&5
30264 ac_cv_func_shmat=no
30267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30268 conftest$ac_exeext conftest.$ac_ext
30270 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30271 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30273 if test $ac_cv_func_shmat = no; then
30274 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30275 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30276 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30277 echo $ECHO_N "(cached) $ECHO_C" >&6
30279 ac_check_lib_save_LIBS=$LIBS
30281 cat >conftest.$ac_ext <<_ACEOF
30284 cat confdefs.h >>conftest.$ac_ext
30285 cat >>conftest.$ac_ext <<_ACEOF
30286 /* end confdefs.h. */
30288 /* Override any GCC internal prototype to avoid an error.
30289 Use char because int might match the return type of a GCC
30290 builtin and then its argument prototype would still apply. */
30303 rm -f conftest.$ac_objext conftest$ac_exeext
30304 if { (ac_try="$ac_link"
30305 case "(($ac_try" in
30306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30307 *) ac_try_echo=$ac_try;;
30309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30310 (eval "$ac_link") 2>conftest.er1
30312 grep -v '^ *+' conftest.er1 >conftest.err
30314 cat conftest.err >&5
30315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30316 (exit $ac_status); } && {
30317 test -z "$ac_c_werror_flag" ||
30318 test ! -s conftest.err
30319 } && test -s conftest$ac_exeext &&
30320 $as_test_x conftest$ac_exeext; then
30321 ac_cv_lib_ipc_shmat=yes
30323 echo "$as_me: failed program was:" >&5
30324 sed 's/^/| /' conftest.$ac_ext >&5
30326 ac_cv_lib_ipc_shmat=no
30329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30330 conftest$ac_exeext conftest.$ac_ext
30331 LIBS=$ac_check_lib_save_LIBS
30333 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30334 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
30335 if test $ac_cv_lib_ipc_shmat = yes; then
30336 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30342 # Check for libraries that X11R6 Xt/Xaw programs need.
30343 ac_save_LDFLAGS=$LDFLAGS
30344 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30345 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30346 # check for ICE first), but we must link in the order -lSM -lICE or
30347 # we get undefined symbols. So assume we have SM if we have ICE.
30348 # These have to be linked with before -lX11, unlike the other
30349 # libraries we check for below, so use a different variable.
30350 # John Interrante, Karl Berry
30351 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30352 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
30353 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30354 echo $ECHO_N "(cached) $ECHO_C" >&6
30356 ac_check_lib_save_LIBS=$LIBS
30357 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30358 cat >conftest.$ac_ext <<_ACEOF
30361 cat confdefs.h >>conftest.$ac_ext
30362 cat >>conftest.$ac_ext <<_ACEOF
30363 /* end confdefs.h. */
30365 /* Override any GCC internal prototype to avoid an error.
30366 Use char because int might match the return type of a GCC
30367 builtin and then its argument prototype would still apply. */
30371 char IceConnectionNumber ();
30375 return IceConnectionNumber ();
30380 rm -f conftest.$ac_objext conftest$ac_exeext
30381 if { (ac_try="$ac_link"
30382 case "(($ac_try" in
30383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30384 *) ac_try_echo=$ac_try;;
30386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30387 (eval "$ac_link") 2>conftest.er1
30389 grep -v '^ *+' conftest.er1 >conftest.err
30391 cat conftest.err >&5
30392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30393 (exit $ac_status); } && {
30394 test -z "$ac_c_werror_flag" ||
30395 test ! -s conftest.err
30396 } && test -s conftest$ac_exeext &&
30397 $as_test_x conftest$ac_exeext; then
30398 ac_cv_lib_ICE_IceConnectionNumber=yes
30400 echo "$as_me: failed program was:" >&5
30401 sed 's/^/| /' conftest.$ac_ext >&5
30403 ac_cv_lib_ICE_IceConnectionNumber=no
30406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30407 conftest$ac_exeext conftest.$ac_ext
30408 LIBS=$ac_check_lib_save_LIBS
30410 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30411 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30412 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30413 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30416 LDFLAGS=$ac_save_LDFLAGS
30484 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30486 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30489 echo $ECHO_N "(cached) $ECHO_C" >&6
30491 ac_res=`eval echo '${'$as_ac_Header'}'`
30492 { echo "$as_me:$LINENO: result: $ac_res" >&5
30493 echo "${ECHO_T}$ac_res" >&6; }
30495 # Is the header compilable?
30496 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30497 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30498 cat >conftest.$ac_ext <<_ACEOF
30501 cat confdefs.h >>conftest.$ac_ext
30502 cat >>conftest.$ac_ext <<_ACEOF
30503 /* end confdefs.h. */
30504 $ac_includes_default
30505 #include <$ac_header>
30507 rm -f conftest.$ac_objext
30508 if { (ac_try="$ac_compile"
30509 case "(($ac_try" in
30510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30511 *) ac_try_echo=$ac_try;;
30513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30514 (eval "$ac_compile") 2>conftest.er1
30516 grep -v '^ *+' conftest.er1 >conftest.err
30518 cat conftest.err >&5
30519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30520 (exit $ac_status); } && {
30521 test -z "$ac_c_werror_flag" ||
30522 test ! -s conftest.err
30523 } && test -s conftest.$ac_objext; then
30524 ac_header_compiler=yes
30526 echo "$as_me: failed program was:" >&5
30527 sed 's/^/| /' conftest.$ac_ext >&5
30529 ac_header_compiler=no
30532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30533 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30534 echo "${ECHO_T}$ac_header_compiler" >&6; }
30536 # Is the header present?
30537 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30538 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30539 cat >conftest.$ac_ext <<_ACEOF
30542 cat confdefs.h >>conftest.$ac_ext
30543 cat >>conftest.$ac_ext <<_ACEOF
30544 /* end confdefs.h. */
30545 #include <$ac_header>
30547 if { (ac_try="$ac_cpp conftest.$ac_ext"
30548 case "(($ac_try" in
30549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30550 *) ac_try_echo=$ac_try;;
30552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30555 grep -v '^ *+' conftest.er1 >conftest.err
30557 cat conftest.err >&5
30558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30559 (exit $ac_status); } >/dev/null && {
30560 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30561 test ! -s conftest.err
30563 ac_header_preproc=yes
30565 echo "$as_me: failed program was:" >&5
30566 sed 's/^/| /' conftest.$ac_ext >&5
30568 ac_header_preproc=no
30571 rm -f conftest.err conftest.$ac_ext
30572 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30573 echo "${ECHO_T}$ac_header_preproc" >&6; }
30575 # So? What about this header?
30576 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30578 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30579 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30581 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30582 ac_header_preproc=yes
30585 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30586 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30587 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30588 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30589 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30590 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30591 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30592 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30593 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30594 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30595 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30596 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30600 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30603 echo $ECHO_N "(cached) $ECHO_C" >&6
30605 eval "$as_ac_Header=\$ac_header_preproc"
30607 ac_res=`eval echo '${'$as_ac_Header'}'`
30608 { echo "$as_me:$LINENO: result: $ac_res" >&5
30609 echo "${ECHO_T}$ac_res" >&6; }
30612 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30613 cat >>confdefs.h <<_ACEOF
30614 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30621 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
30622 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
30623 if test "${ac_cv_header_stdc+set}" = set; then
30624 echo $ECHO_N "(cached) $ECHO_C" >&6
30626 cat >conftest.$ac_ext <<_ACEOF
30629 cat confdefs.h >>conftest.$ac_ext
30630 cat >>conftest.$ac_ext <<_ACEOF
30631 /* end confdefs.h. */
30632 #include <stdlib.h>
30633 #include <stdarg.h>
30634 #include <string.h>
30645 rm -f conftest.$ac_objext
30646 if { (ac_try="$ac_compile"
30647 case "(($ac_try" in
30648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30649 *) ac_try_echo=$ac_try;;
30651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30652 (eval "$ac_compile") 2>conftest.er1
30654 grep -v '^ *+' conftest.er1 >conftest.err
30656 cat conftest.err >&5
30657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30658 (exit $ac_status); } && {
30659 test -z "$ac_c_werror_flag" ||
30660 test ! -s conftest.err
30661 } && test -s conftest.$ac_objext; then
30662 ac_cv_header_stdc=yes
30664 echo "$as_me: failed program was:" >&5
30665 sed 's/^/| /' conftest.$ac_ext >&5
30667 ac_cv_header_stdc=no
30670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30672 if test $ac_cv_header_stdc = yes; then
30673 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
30674 cat >conftest.$ac_ext <<_ACEOF
30677 cat confdefs.h >>conftest.$ac_ext
30678 cat >>conftest.$ac_ext <<_ACEOF
30679 /* end confdefs.h. */
30680 #include <string.h>
30683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30684 $EGREP "memchr" >/dev/null 2>&1; then
30687 ac_cv_header_stdc=no
30693 if test $ac_cv_header_stdc = yes; then
30694 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
30695 cat >conftest.$ac_ext <<_ACEOF
30698 cat confdefs.h >>conftest.$ac_ext
30699 cat >>conftest.$ac_ext <<_ACEOF
30700 /* end confdefs.h. */
30701 #include <stdlib.h>
30704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30705 $EGREP "free" >/dev/null 2>&1; then
30708 ac_cv_header_stdc=no
30714 if test $ac_cv_header_stdc = yes; then
30715 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
30716 if test "$cross_compiling" = yes; then
30719 cat >conftest.$ac_ext <<_ACEOF
30722 cat confdefs.h >>conftest.$ac_ext
30723 cat >>conftest.$ac_ext <<_ACEOF
30724 /* end confdefs.h. */
30726 #include <stdlib.h>
30727 #if ((' ' & 0x0FF) == 0x020)
30728 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
30729 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
30731 # define ISLOWER(c) \
30732 (('a' <= (c) && (c) <= 'i') \
30733 || ('j' <= (c) && (c) <= 'r') \
30734 || ('s' <= (c) && (c) <= 'z'))
30735 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
30738 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
30743 for (i = 0; i < 256; i++)
30744 if (XOR (islower (i), ISLOWER (i))
30745 || toupper (i) != TOUPPER (i))
30750 rm -f conftest$ac_exeext
30751 if { (ac_try="$ac_link"
30752 case "(($ac_try" in
30753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30754 *) ac_try_echo=$ac_try;;
30756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30757 (eval "$ac_link") 2>&5
30759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30760 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30761 { (case "(($ac_try" in
30762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30763 *) ac_try_echo=$ac_try;;
30765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30766 (eval "$ac_try") 2>&5
30768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30769 (exit $ac_status); }; }; then
30772 echo "$as_me: program exited with status $ac_status" >&5
30773 echo "$as_me: failed program was:" >&5
30774 sed 's/^/| /' conftest.$ac_ext >&5
30776 ( exit $ac_status )
30777 ac_cv_header_stdc=no
30779 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30785 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
30786 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
30787 if test $ac_cv_header_stdc = yes; then
30789 cat >>confdefs.h <<\_ACEOF
30790 #define STDC_HEADERS 1
30795 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
30796 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
30797 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
30798 echo $ECHO_N "(cached) $ECHO_C" >&6
30800 cat >conftest.$ac_ext <<_ACEOF
30803 cat confdefs.h >>conftest.$ac_ext
30804 cat >>conftest.$ac_ext <<_ACEOF
30805 /* end confdefs.h. */
30806 #include <sys/types.h>
30810 return makedev(0, 0);
30815 rm -f conftest.$ac_objext conftest$ac_exeext
30816 if { (ac_try="$ac_link"
30817 case "(($ac_try" in
30818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30819 *) ac_try_echo=$ac_try;;
30821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30822 (eval "$ac_link") 2>conftest.er1
30824 grep -v '^ *+' conftest.er1 >conftest.err
30826 cat conftest.err >&5
30827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30828 (exit $ac_status); } && {
30829 test -z "$ac_c_werror_flag" ||
30830 test ! -s conftest.err
30831 } && test -s conftest$ac_exeext &&
30832 $as_test_x conftest$ac_exeext; then
30833 ac_cv_header_sys_types_h_makedev=yes
30835 echo "$as_me: failed program was:" >&5
30836 sed 's/^/| /' conftest.$ac_ext >&5
30838 ac_cv_header_sys_types_h_makedev=no
30841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30842 conftest$ac_exeext conftest.$ac_ext
30845 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
30846 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
30848 if test $ac_cv_header_sys_types_h_makedev = no; then
30849 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30850 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
30851 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
30852 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30853 echo $ECHO_N "(cached) $ECHO_C" >&6
30855 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
30856 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
30858 # Is the header compilable?
30859 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
30860 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
30861 cat >conftest.$ac_ext <<_ACEOF
30864 cat confdefs.h >>conftest.$ac_ext
30865 cat >>conftest.$ac_ext <<_ACEOF
30866 /* end confdefs.h. */
30867 $ac_includes_default
30868 #include <sys/mkdev.h>
30870 rm -f conftest.$ac_objext
30871 if { (ac_try="$ac_compile"
30872 case "(($ac_try" in
30873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30874 *) ac_try_echo=$ac_try;;
30876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30877 (eval "$ac_compile") 2>conftest.er1
30879 grep -v '^ *+' conftest.er1 >conftest.err
30881 cat conftest.err >&5
30882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30883 (exit $ac_status); } && {
30884 test -z "$ac_c_werror_flag" ||
30885 test ! -s conftest.err
30886 } && test -s conftest.$ac_objext; then
30887 ac_header_compiler=yes
30889 echo "$as_me: failed program was:" >&5
30890 sed 's/^/| /' conftest.$ac_ext >&5
30892 ac_header_compiler=no
30895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30896 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30897 echo "${ECHO_T}$ac_header_compiler" >&6; }
30899 # Is the header present?
30900 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
30901 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
30902 cat >conftest.$ac_ext <<_ACEOF
30905 cat confdefs.h >>conftest.$ac_ext
30906 cat >>conftest.$ac_ext <<_ACEOF
30907 /* end confdefs.h. */
30908 #include <sys/mkdev.h>
30910 if { (ac_try="$ac_cpp conftest.$ac_ext"
30911 case "(($ac_try" in
30912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30913 *) ac_try_echo=$ac_try;;
30915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30916 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30918 grep -v '^ *+' conftest.er1 >conftest.err
30920 cat conftest.err >&5
30921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30922 (exit $ac_status); } >/dev/null && {
30923 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30924 test ! -s conftest.err
30926 ac_header_preproc=yes
30928 echo "$as_me: failed program was:" >&5
30929 sed 's/^/| /' conftest.$ac_ext >&5
30931 ac_header_preproc=no
30934 rm -f conftest.err conftest.$ac_ext
30935 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30936 echo "${ECHO_T}$ac_header_preproc" >&6; }
30938 # So? What about this header?
30939 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30941 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
30942 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30943 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
30944 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
30945 ac_header_preproc=yes
30948 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
30949 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
30950 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
30951 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
30952 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
30953 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
30954 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
30955 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
30956 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
30957 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
30958 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
30959 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
30963 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
30964 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
30965 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30966 echo $ECHO_N "(cached) $ECHO_C" >&6
30968 ac_cv_header_sys_mkdev_h=$ac_header_preproc
30970 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
30971 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
30974 if test $ac_cv_header_sys_mkdev_h = yes; then
30976 cat >>confdefs.h <<\_ACEOF
30977 #define MAJOR_IN_MKDEV 1
30984 if test $ac_cv_header_sys_mkdev_h = no; then
30985 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
30986 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
30987 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
30988 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
30989 echo $ECHO_N "(cached) $ECHO_C" >&6
30991 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
30992 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
30994 # Is the header compilable?
30995 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
30996 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
30997 cat >conftest.$ac_ext <<_ACEOF
31000 cat confdefs.h >>conftest.$ac_ext
31001 cat >>conftest.$ac_ext <<_ACEOF
31002 /* end confdefs.h. */
31003 $ac_includes_default
31004 #include <sys/sysmacros.h>
31006 rm -f conftest.$ac_objext
31007 if { (ac_try="$ac_compile"
31008 case "(($ac_try" in
31009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31010 *) ac_try_echo=$ac_try;;
31012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31013 (eval "$ac_compile") 2>conftest.er1
31015 grep -v '^ *+' conftest.er1 >conftest.err
31017 cat conftest.err >&5
31018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31019 (exit $ac_status); } && {
31020 test -z "$ac_c_werror_flag" ||
31021 test ! -s conftest.err
31022 } && test -s conftest.$ac_objext; then
31023 ac_header_compiler=yes
31025 echo "$as_me: failed program was:" >&5
31026 sed 's/^/| /' conftest.$ac_ext >&5
31028 ac_header_compiler=no
31031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31032 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31033 echo "${ECHO_T}$ac_header_compiler" >&6; }
31035 # Is the header present?
31036 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31037 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
31038 cat >conftest.$ac_ext <<_ACEOF
31041 cat confdefs.h >>conftest.$ac_ext
31042 cat >>conftest.$ac_ext <<_ACEOF
31043 /* end confdefs.h. */
31044 #include <sys/sysmacros.h>
31046 if { (ac_try="$ac_cpp conftest.$ac_ext"
31047 case "(($ac_try" in
31048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31049 *) ac_try_echo=$ac_try;;
31051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31052 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31054 grep -v '^ *+' conftest.er1 >conftest.err
31056 cat conftest.err >&5
31057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31058 (exit $ac_status); } >/dev/null && {
31059 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31060 test ! -s conftest.err
31062 ac_header_preproc=yes
31064 echo "$as_me: failed program was:" >&5
31065 sed 's/^/| /' conftest.$ac_ext >&5
31067 ac_header_preproc=no
31070 rm -f conftest.err conftest.$ac_ext
31071 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31072 echo "${ECHO_T}$ac_header_preproc" >&6; }
31074 # So? What about this header?
31075 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31077 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31078 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31079 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31080 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31081 ac_header_preproc=yes
31084 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31085 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31086 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
31087 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
31088 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31089 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31090 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
31091 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
31092 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31093 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31094 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31095 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31099 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31100 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31101 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31102 echo $ECHO_N "(cached) $ECHO_C" >&6
31104 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31106 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31107 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31110 if test $ac_cv_header_sys_sysmacros_h = yes; then
31112 cat >>confdefs.h <<\_ACEOF
31113 #define MAJOR_IN_SYSMACROS 1
31127 ac_header_dirent=no
31128 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31129 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31130 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31131 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31133 echo $ECHO_N "(cached) $ECHO_C" >&6
31135 cat >conftest.$ac_ext <<_ACEOF
31138 cat confdefs.h >>conftest.$ac_ext
31139 cat >>conftest.$ac_ext <<_ACEOF
31140 /* end confdefs.h. */
31141 #include <sys/types.h>
31153 rm -f conftest.$ac_objext
31154 if { (ac_try="$ac_compile"
31155 case "(($ac_try" in
31156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31157 *) ac_try_echo=$ac_try;;
31159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31160 (eval "$ac_compile") 2>conftest.er1
31162 grep -v '^ *+' conftest.er1 >conftest.err
31164 cat conftest.err >&5
31165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31166 (exit $ac_status); } && {
31167 test -z "$ac_c_werror_flag" ||
31168 test ! -s conftest.err
31169 } && test -s conftest.$ac_objext; then
31170 eval "$as_ac_Header=yes"
31172 echo "$as_me: failed program was:" >&5
31173 sed 's/^/| /' conftest.$ac_ext >&5
31175 eval "$as_ac_Header=no"
31178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31180 ac_res=`eval echo '${'$as_ac_Header'}'`
31181 { echo "$as_me:$LINENO: result: $ac_res" >&5
31182 echo "${ECHO_T}$ac_res" >&6; }
31183 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31184 cat >>confdefs.h <<_ACEOF
31185 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31188 ac_header_dirent=$ac_hdr; break
31192 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31193 if test $ac_header_dirent = dirent.h; then
31194 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31195 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31196 if test "${ac_cv_search_opendir+set}" = set; then
31197 echo $ECHO_N "(cached) $ECHO_C" >&6
31199 ac_func_search_save_LIBS=$LIBS
31200 cat >conftest.$ac_ext <<_ACEOF
31203 cat confdefs.h >>conftest.$ac_ext
31204 cat >>conftest.$ac_ext <<_ACEOF
31205 /* end confdefs.h. */
31207 /* Override any GCC internal prototype to avoid an error.
31208 Use char because int might match the return type of a GCC
31209 builtin and then its argument prototype would still apply. */
31222 for ac_lib in '' dir; do
31223 if test -z "$ac_lib"; then
31224 ac_res="none required"
31227 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31229 rm -f conftest.$ac_objext conftest$ac_exeext
31230 if { (ac_try="$ac_link"
31231 case "(($ac_try" in
31232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31233 *) ac_try_echo=$ac_try;;
31235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31236 (eval "$ac_link") 2>conftest.er1
31238 grep -v '^ *+' conftest.er1 >conftest.err
31240 cat conftest.err >&5
31241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31242 (exit $ac_status); } && {
31243 test -z "$ac_c_werror_flag" ||
31244 test ! -s conftest.err
31245 } && test -s conftest$ac_exeext &&
31246 $as_test_x conftest$ac_exeext; then
31247 ac_cv_search_opendir=$ac_res
31249 echo "$as_me: failed program was:" >&5
31250 sed 's/^/| /' conftest.$ac_ext >&5
31255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31257 if test "${ac_cv_search_opendir+set}" = set; then
31261 if test "${ac_cv_search_opendir+set}" = set; then
31264 ac_cv_search_opendir=no
31266 rm conftest.$ac_ext
31267 LIBS=$ac_func_search_save_LIBS
31269 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31270 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31271 ac_res=$ac_cv_search_opendir
31272 if test "$ac_res" != no; then
31273 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31278 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31279 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31280 if test "${ac_cv_search_opendir+set}" = set; then
31281 echo $ECHO_N "(cached) $ECHO_C" >&6
31283 ac_func_search_save_LIBS=$LIBS
31284 cat >conftest.$ac_ext <<_ACEOF
31287 cat confdefs.h >>conftest.$ac_ext
31288 cat >>conftest.$ac_ext <<_ACEOF
31289 /* end confdefs.h. */
31291 /* Override any GCC internal prototype to avoid an error.
31292 Use char because int might match the return type of a GCC
31293 builtin and then its argument prototype would still apply. */
31306 for ac_lib in '' x; do
31307 if test -z "$ac_lib"; then
31308 ac_res="none required"
31311 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31313 rm -f conftest.$ac_objext conftest$ac_exeext
31314 if { (ac_try="$ac_link"
31315 case "(($ac_try" in
31316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31317 *) ac_try_echo=$ac_try;;
31319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31320 (eval "$ac_link") 2>conftest.er1
31322 grep -v '^ *+' conftest.er1 >conftest.err
31324 cat conftest.err >&5
31325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31326 (exit $ac_status); } && {
31327 test -z "$ac_c_werror_flag" ||
31328 test ! -s conftest.err
31329 } && test -s conftest$ac_exeext &&
31330 $as_test_x conftest$ac_exeext; then
31331 ac_cv_search_opendir=$ac_res
31333 echo "$as_me: failed program was:" >&5
31334 sed 's/^/| /' conftest.$ac_ext >&5
31339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31341 if test "${ac_cv_search_opendir+set}" = set; then
31345 if test "${ac_cv_search_opendir+set}" = set; then
31348 ac_cv_search_opendir=no
31350 rm conftest.$ac_ext
31351 LIBS=$ac_func_search_save_LIBS
31353 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31354 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31355 ac_res=$ac_cv_search_opendir
31356 if test "$ac_res" != no; then
31357 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31363 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
31364 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
31365 if test "${ac_cv_header_stat_broken+set}" = set; then
31366 echo $ECHO_N "(cached) $ECHO_C" >&6
31368 cat >conftest.$ac_ext <<_ACEOF
31371 cat confdefs.h >>conftest.$ac_ext
31372 cat >>conftest.$ac_ext <<_ACEOF
31373 /* end confdefs.h. */
31374 #include <sys/types.h>
31375 #include <sys/stat.h>
31377 #if defined S_ISBLK && defined S_IFDIR
31378 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
31381 #if defined S_ISBLK && defined S_IFCHR
31382 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
31385 #if defined S_ISLNK && defined S_IFREG
31386 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
31389 #if defined S_ISSOCK && defined S_IFREG
31390 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
31394 rm -f conftest.$ac_objext
31395 if { (ac_try="$ac_compile"
31396 case "(($ac_try" in
31397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31398 *) ac_try_echo=$ac_try;;
31400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31401 (eval "$ac_compile") 2>conftest.er1
31403 grep -v '^ *+' conftest.er1 >conftest.err
31405 cat conftest.err >&5
31406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31407 (exit $ac_status); } && {
31408 test -z "$ac_c_werror_flag" ||
31409 test ! -s conftest.err
31410 } && test -s conftest.$ac_objext; then
31411 ac_cv_header_stat_broken=no
31413 echo "$as_me: failed program was:" >&5
31414 sed 's/^/| /' conftest.$ac_ext >&5
31416 ac_cv_header_stat_broken=yes
31419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31421 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
31422 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
31423 if test $ac_cv_header_stat_broken = yes; then
31425 cat >>confdefs.h <<\_ACEOF
31426 #define STAT_MACROS_BROKEN 1
31431 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
31432 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
31433 if test "${ac_cv_header_sys_wait_h+set}" = set; then
31434 echo $ECHO_N "(cached) $ECHO_C" >&6
31436 cat >conftest.$ac_ext <<_ACEOF
31439 cat confdefs.h >>conftest.$ac_ext
31440 cat >>conftest.$ac_ext <<_ACEOF
31441 /* end confdefs.h. */
31442 #include <sys/types.h>
31443 #include <sys/wait.h>
31444 #ifndef WEXITSTATUS
31445 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
31448 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
31456 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
31461 rm -f conftest.$ac_objext
31462 if { (ac_try="$ac_compile"
31463 case "(($ac_try" in
31464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31465 *) ac_try_echo=$ac_try;;
31467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31468 (eval "$ac_compile") 2>conftest.er1
31470 grep -v '^ *+' conftest.er1 >conftest.err
31472 cat conftest.err >&5
31473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31474 (exit $ac_status); } && {
31475 test -z "$ac_c_werror_flag" ||
31476 test ! -s conftest.err
31477 } && test -s conftest.$ac_objext; then
31478 ac_cv_header_sys_wait_h=yes
31480 echo "$as_me: failed program was:" >&5
31481 sed 's/^/| /' conftest.$ac_ext >&5
31483 ac_cv_header_sys_wait_h=no
31486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31488 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
31489 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
31490 if test $ac_cv_header_sys_wait_h = yes; then
31492 cat >>confdefs.h <<\_ACEOF
31493 #define HAVE_SYS_WAIT_H 1
31498 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
31499 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
31500 if test "${ac_cv_header_time+set}" = set; then
31501 echo $ECHO_N "(cached) $ECHO_C" >&6
31503 cat >conftest.$ac_ext <<_ACEOF
31506 cat confdefs.h >>conftest.$ac_ext
31507 cat >>conftest.$ac_ext <<_ACEOF
31508 /* end confdefs.h. */
31509 #include <sys/types.h>
31510 #include <sys/time.h>
31516 if ((struct tm *) 0)
31522 rm -f conftest.$ac_objext
31523 if { (ac_try="$ac_compile"
31524 case "(($ac_try" in
31525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31526 *) ac_try_echo=$ac_try;;
31528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31529 (eval "$ac_compile") 2>conftest.er1
31531 grep -v '^ *+' conftest.er1 >conftest.err
31533 cat conftest.err >&5
31534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31535 (exit $ac_status); } && {
31536 test -z "$ac_c_werror_flag" ||
31537 test ! -s conftest.err
31538 } && test -s conftest.$ac_objext; then
31539 ac_cv_header_time=yes
31541 echo "$as_me: failed program was:" >&5
31542 sed 's/^/| /' conftest.$ac_ext >&5
31544 ac_cv_header_time=no
31547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31549 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
31550 echo "${ECHO_T}$ac_cv_header_time" >&6; }
31551 if test $ac_cv_header_time = yes; then
31553 cat >>confdefs.h <<\_ACEOF
31554 #define TIME_WITH_SYS_TIME 1
31559 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
31560 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
31561 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
31562 echo $ECHO_N "(cached) $ECHO_C" >&6
31564 cat >conftest.$ac_ext <<_ACEOF
31567 cat confdefs.h >>conftest.$ac_ext
31568 cat >>conftest.$ac_ext <<_ACEOF
31569 /* end confdefs.h. */
31570 $ac_includes_default
31574 static struct stat ac_aggr;
31575 if (ac_aggr.st_blksize)
31581 rm -f conftest.$ac_objext
31582 if { (ac_try="$ac_compile"
31583 case "(($ac_try" in
31584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31585 *) ac_try_echo=$ac_try;;
31587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31588 (eval "$ac_compile") 2>conftest.er1
31590 grep -v '^ *+' conftest.er1 >conftest.err
31592 cat conftest.err >&5
31593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31594 (exit $ac_status); } && {
31595 test -z "$ac_c_werror_flag" ||
31596 test ! -s conftest.err
31597 } && test -s conftest.$ac_objext; then
31598 ac_cv_member_struct_stat_st_blksize=yes
31600 echo "$as_me: failed program was:" >&5
31601 sed 's/^/| /' conftest.$ac_ext >&5
31603 cat >conftest.$ac_ext <<_ACEOF
31606 cat confdefs.h >>conftest.$ac_ext
31607 cat >>conftest.$ac_ext <<_ACEOF
31608 /* end confdefs.h. */
31609 $ac_includes_default
31613 static struct stat ac_aggr;
31614 if (sizeof ac_aggr.st_blksize)
31620 rm -f conftest.$ac_objext
31621 if { (ac_try="$ac_compile"
31622 case "(($ac_try" in
31623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31624 *) ac_try_echo=$ac_try;;
31626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31627 (eval "$ac_compile") 2>conftest.er1
31629 grep -v '^ *+' conftest.er1 >conftest.err
31631 cat conftest.err >&5
31632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31633 (exit $ac_status); } && {
31634 test -z "$ac_c_werror_flag" ||
31635 test ! -s conftest.err
31636 } && test -s conftest.$ac_objext; then
31637 ac_cv_member_struct_stat_st_blksize=yes
31639 echo "$as_me: failed program was:" >&5
31640 sed 's/^/| /' conftest.$ac_ext >&5
31642 ac_cv_member_struct_stat_st_blksize=no
31645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31650 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
31651 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
31652 if test $ac_cv_member_struct_stat_st_blksize = yes; then
31654 cat >>confdefs.h <<_ACEOF
31655 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
31659 cat >>confdefs.h <<\_ACEOF
31660 #define HAVE_ST_BLKSIZE 1
31666 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
31667 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
31668 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
31669 echo $ECHO_N "(cached) $ECHO_C" >&6
31671 cat >conftest.$ac_ext <<_ACEOF
31674 cat confdefs.h >>conftest.$ac_ext
31675 cat >>conftest.$ac_ext <<_ACEOF
31676 /* end confdefs.h. */
31677 $ac_includes_default
31681 static struct stat ac_aggr;
31682 if (ac_aggr.st_blocks)
31688 rm -f conftest.$ac_objext
31689 if { (ac_try="$ac_compile"
31690 case "(($ac_try" in
31691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31692 *) ac_try_echo=$ac_try;;
31694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31695 (eval "$ac_compile") 2>conftest.er1
31697 grep -v '^ *+' conftest.er1 >conftest.err
31699 cat conftest.err >&5
31700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31701 (exit $ac_status); } && {
31702 test -z "$ac_c_werror_flag" ||
31703 test ! -s conftest.err
31704 } && test -s conftest.$ac_objext; then
31705 ac_cv_member_struct_stat_st_blocks=yes
31707 echo "$as_me: failed program was:" >&5
31708 sed 's/^/| /' conftest.$ac_ext >&5
31710 cat >conftest.$ac_ext <<_ACEOF
31713 cat confdefs.h >>conftest.$ac_ext
31714 cat >>conftest.$ac_ext <<_ACEOF
31715 /* end confdefs.h. */
31716 $ac_includes_default
31720 static struct stat ac_aggr;
31721 if (sizeof ac_aggr.st_blocks)
31727 rm -f conftest.$ac_objext
31728 if { (ac_try="$ac_compile"
31729 case "(($ac_try" in
31730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31731 *) ac_try_echo=$ac_try;;
31733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31734 (eval "$ac_compile") 2>conftest.er1
31736 grep -v '^ *+' conftest.er1 >conftest.err
31738 cat conftest.err >&5
31739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31740 (exit $ac_status); } && {
31741 test -z "$ac_c_werror_flag" ||
31742 test ! -s conftest.err
31743 } && test -s conftest.$ac_objext; then
31744 ac_cv_member_struct_stat_st_blocks=yes
31746 echo "$as_me: failed program was:" >&5
31747 sed 's/^/| /' conftest.$ac_ext >&5
31749 ac_cv_member_struct_stat_st_blocks=no
31752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31757 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
31758 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
31759 if test $ac_cv_member_struct_stat_st_blocks = yes; then
31761 cat >>confdefs.h <<_ACEOF
31762 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
31766 cat >>confdefs.h <<\_ACEOF
31767 #define HAVE_ST_BLOCKS 1
31771 case " $LIBOBJS " in
31772 *" fileblocks.$ac_objext "* ) ;;
31773 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
31780 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31781 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31782 if test "${ac_cv_struct_tm+set}" = set; then
31783 echo $ECHO_N "(cached) $ECHO_C" >&6
31785 cat >conftest.$ac_ext <<_ACEOF
31788 cat confdefs.h >>conftest.$ac_ext
31789 cat >>conftest.$ac_ext <<_ACEOF
31790 /* end confdefs.h. */
31791 #include <sys/types.h>
31798 int *p = &tm.tm_sec;
31804 rm -f conftest.$ac_objext
31805 if { (ac_try="$ac_compile"
31806 case "(($ac_try" in
31807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31808 *) ac_try_echo=$ac_try;;
31810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31811 (eval "$ac_compile") 2>conftest.er1
31813 grep -v '^ *+' conftest.er1 >conftest.err
31815 cat conftest.err >&5
31816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31817 (exit $ac_status); } && {
31818 test -z "$ac_c_werror_flag" ||
31819 test ! -s conftest.err
31820 } && test -s conftest.$ac_objext; then
31821 ac_cv_struct_tm=time.h
31823 echo "$as_me: failed program was:" >&5
31824 sed 's/^/| /' conftest.$ac_ext >&5
31826 ac_cv_struct_tm=sys/time.h
31829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31831 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31832 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31833 if test $ac_cv_struct_tm = sys/time.h; then
31835 cat >>confdefs.h <<\_ACEOF
31836 #define TM_IN_SYS_TIME 1
31841 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
31842 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
31843 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
31844 echo $ECHO_N "(cached) $ECHO_C" >&6
31846 cat >conftest.$ac_ext <<_ACEOF
31849 cat confdefs.h >>conftest.$ac_ext
31850 cat >>conftest.$ac_ext <<_ACEOF
31851 /* end confdefs.h. */
31852 #include <sys/types.h>
31853 #include <$ac_cv_struct_tm>
31859 static struct tm ac_aggr;
31860 if (ac_aggr.tm_zone)
31866 rm -f conftest.$ac_objext
31867 if { (ac_try="$ac_compile"
31868 case "(($ac_try" in
31869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31870 *) ac_try_echo=$ac_try;;
31872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31873 (eval "$ac_compile") 2>conftest.er1
31875 grep -v '^ *+' conftest.er1 >conftest.err
31877 cat conftest.err >&5
31878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31879 (exit $ac_status); } && {
31880 test -z "$ac_c_werror_flag" ||
31881 test ! -s conftest.err
31882 } && test -s conftest.$ac_objext; then
31883 ac_cv_member_struct_tm_tm_zone=yes
31885 echo "$as_me: failed program was:" >&5
31886 sed 's/^/| /' conftest.$ac_ext >&5
31888 cat >conftest.$ac_ext <<_ACEOF
31891 cat confdefs.h >>conftest.$ac_ext
31892 cat >>conftest.$ac_ext <<_ACEOF
31893 /* end confdefs.h. */
31894 #include <sys/types.h>
31895 #include <$ac_cv_struct_tm>
31901 static struct tm ac_aggr;
31902 if (sizeof ac_aggr.tm_zone)
31908 rm -f conftest.$ac_objext
31909 if { (ac_try="$ac_compile"
31910 case "(($ac_try" in
31911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31912 *) ac_try_echo=$ac_try;;
31914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31915 (eval "$ac_compile") 2>conftest.er1
31917 grep -v '^ *+' conftest.er1 >conftest.err
31919 cat conftest.err >&5
31920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31921 (exit $ac_status); } && {
31922 test -z "$ac_c_werror_flag" ||
31923 test ! -s conftest.err
31924 } && test -s conftest.$ac_objext; then
31925 ac_cv_member_struct_tm_tm_zone=yes
31927 echo "$as_me: failed program was:" >&5
31928 sed 's/^/| /' conftest.$ac_ext >&5
31930 ac_cv_member_struct_tm_tm_zone=no
31933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31938 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
31939 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
31940 if test $ac_cv_member_struct_tm_tm_zone = yes; then
31942 cat >>confdefs.h <<_ACEOF
31943 #define HAVE_STRUCT_TM_TM_ZONE 1
31949 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
31951 cat >>confdefs.h <<\_ACEOF
31952 #define HAVE_TM_ZONE 1
31956 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
31957 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
31958 if test "${ac_cv_have_decl_tzname+set}" = set; then
31959 echo $ECHO_N "(cached) $ECHO_C" >&6
31961 cat >conftest.$ac_ext <<_ACEOF
31964 cat confdefs.h >>conftest.$ac_ext
31965 cat >>conftest.$ac_ext <<_ACEOF
31966 /* end confdefs.h. */
31980 rm -f conftest.$ac_objext
31981 if { (ac_try="$ac_compile"
31982 case "(($ac_try" in
31983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31984 *) ac_try_echo=$ac_try;;
31986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31987 (eval "$ac_compile") 2>conftest.er1
31989 grep -v '^ *+' conftest.er1 >conftest.err
31991 cat conftest.err >&5
31992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31993 (exit $ac_status); } && {
31994 test -z "$ac_c_werror_flag" ||
31995 test ! -s conftest.err
31996 } && test -s conftest.$ac_objext; then
31997 ac_cv_have_decl_tzname=yes
31999 echo "$as_me: failed program was:" >&5
32000 sed 's/^/| /' conftest.$ac_ext >&5
32002 ac_cv_have_decl_tzname=no
32005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32007 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32008 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32009 if test $ac_cv_have_decl_tzname = yes; then
32011 cat >>confdefs.h <<_ACEOF
32012 #define HAVE_DECL_TZNAME 1
32017 cat >>confdefs.h <<_ACEOF
32018 #define HAVE_DECL_TZNAME 0
32025 { echo "$as_me:$LINENO: checking for tzname" >&5
32026 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32027 if test "${ac_cv_var_tzname+set}" = set; then
32028 echo $ECHO_N "(cached) $ECHO_C" >&6
32030 cat >conftest.$ac_ext <<_ACEOF
32033 cat confdefs.h >>conftest.$ac_ext
32034 cat >>conftest.$ac_ext <<_ACEOF
32035 /* end confdefs.h. */
32037 #if !HAVE_DECL_TZNAME
32038 extern char *tzname[];
32044 return tzname[0][0];
32049 rm -f conftest.$ac_objext conftest$ac_exeext
32050 if { (ac_try="$ac_link"
32051 case "(($ac_try" in
32052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32053 *) ac_try_echo=$ac_try;;
32055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32056 (eval "$ac_link") 2>conftest.er1
32058 grep -v '^ *+' conftest.er1 >conftest.err
32060 cat conftest.err >&5
32061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32062 (exit $ac_status); } && {
32063 test -z "$ac_c_werror_flag" ||
32064 test ! -s conftest.err
32065 } && test -s conftest$ac_exeext &&
32066 $as_test_x conftest$ac_exeext; then
32067 ac_cv_var_tzname=yes
32069 echo "$as_me: failed program was:" >&5
32070 sed 's/^/| /' conftest.$ac_ext >&5
32072 ac_cv_var_tzname=no
32075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32076 conftest$ac_exeext conftest.$ac_ext
32078 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32079 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32080 if test $ac_cv_var_tzname = yes; then
32082 cat >>confdefs.h <<\_ACEOF
32083 #define HAVE_TZNAME 1
32090 { echo "$as_me:$LINENO: checking for utime.h" >&5
32091 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32092 if test "${ba_cv_header_utime_h+set}" = set; then
32093 echo $ECHO_N "(cached) $ECHO_C" >&6
32096 cat >conftest.$ac_ext <<_ACEOF
32099 cat confdefs.h >>conftest.$ac_ext
32100 cat >>conftest.$ac_ext <<_ACEOF
32101 /* end confdefs.h. */
32103 #include <sys/types.h>
32116 rm -f conftest.$ac_objext
32117 if { (ac_try="$ac_compile"
32118 case "(($ac_try" in
32119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32120 *) ac_try_echo=$ac_try;;
32122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32123 (eval "$ac_compile") 2>conftest.er1
32125 grep -v '^ *+' conftest.er1 >conftest.err
32127 cat conftest.err >&5
32128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32129 (exit $ac_status); } && {
32130 test -z "$ac_c_werror_flag" ||
32131 test ! -s conftest.err
32132 } && test -s conftest.$ac_objext; then
32134 ba_cv_header_utime_h=yes
32137 echo "$as_me: failed program was:" >&5
32138 sed 's/^/| /' conftest.$ac_ext >&5
32141 ba_cv_header_utime_h=no
32146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32150 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
32151 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32152 test $ba_cv_header_utime_h = yes &&
32153 cat >>confdefs.h <<\_ACEOF
32154 #define HAVE_UTIME_H 1
32158 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32159 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32160 if test "${ba_cv_header_socklen_t+set}" = set; then
32161 echo $ECHO_N "(cached) $ECHO_C" >&6
32164 cat >conftest.$ac_ext <<_ACEOF
32167 cat confdefs.h >>conftest.$ac_ext
32168 cat >>conftest.$ac_ext <<_ACEOF
32169 /* end confdefs.h. */
32171 #include <sys/types.h>
32172 #include <sys/socket.h>
32184 rm -f conftest.$ac_objext
32185 if { (ac_try="$ac_compile"
32186 case "(($ac_try" in
32187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32188 *) ac_try_echo=$ac_try;;
32190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32191 (eval "$ac_compile") 2>conftest.er1
32193 grep -v '^ *+' conftest.er1 >conftest.err
32195 cat conftest.err >&5
32196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32197 (exit $ac_status); } && {
32198 test -z "$ac_c_werror_flag" ||
32199 test ! -s conftest.err
32200 } && test -s conftest.$ac_objext; then
32202 ba_cv_header_socklen_t=yes
32205 echo "$as_me: failed program was:" >&5
32206 sed 's/^/| /' conftest.$ac_ext >&5
32209 ba_cv_header_socklen_t=no
32214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32218 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32219 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32220 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
32221 #define HAVE_SOCKLEN_T 1
32225 { echo "$as_me:$LINENO: checking for bigendian" >&5
32226 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
32227 if test "${ba_cv_bigendian+set}" = set; then
32228 echo $ECHO_N "(cached) $ECHO_C" >&6
32231 if test "$cross_compiling" = yes; then
32237 cat >conftest.$ac_ext <<_ACEOF
32240 cat confdefs.h >>conftest.$ac_ext
32241 cat >>conftest.$ac_ext <<_ACEOF
32242 /* end confdefs.h. */
32244 main(){long a=1L; char *p=(char *)&a; exit(*p);}
32247 rm -f conftest$ac_exeext
32248 if { (ac_try="$ac_link"
32249 case "(($ac_try" in
32250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32251 *) ac_try_echo=$ac_try;;
32253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32254 (eval "$ac_link") 2>&5
32256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32257 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32258 { (case "(($ac_try" in
32259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32260 *) ac_try_echo=$ac_try;;
32262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32263 (eval "$ac_try") 2>&5
32265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32266 (exit $ac_status); }; }; then
32268 ba_cv_bigendian=yes
32271 echo "$as_me: program exited with status $ac_status" >&5
32272 echo "$as_me: failed program was:" >&5
32273 sed 's/^/| /' conftest.$ac_ext >&5
32275 ( exit $ac_status )
32280 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32287 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
32288 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
32289 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
32290 #define HAVE_BIGENDIAN 1
32295 ac_cpp='$CXXCPP $CPPFLAGS'
32296 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32297 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32298 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32300 { echo "$as_me:$LINENO: checking for typeof" >&5
32301 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32302 if test "${ba_cv_have_typeof+set}" = set; then
32303 echo $ECHO_N "(cached) $ECHO_C" >&6
32306 if test "$cross_compiling" = yes; then
32308 ba_cv_have_typeof=no
32312 cat >conftest.$ac_ext <<_ACEOF
32315 cat confdefs.h >>conftest.$ac_ext
32316 cat >>conftest.$ac_ext <<_ACEOF
32317 /* end confdefs.h. */
32319 main(){char *a = 0; a = (typeof a)a;}
32322 rm -f conftest$ac_exeext
32323 if { (ac_try="$ac_link"
32324 case "(($ac_try" in
32325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32326 *) ac_try_echo=$ac_try;;
32328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32329 (eval "$ac_link") 2>&5
32331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32332 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32333 { (case "(($ac_try" in
32334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32335 *) ac_try_echo=$ac_try;;
32337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32338 (eval "$ac_try") 2>&5
32340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32341 (exit $ac_status); }; }; then
32343 ba_cv_have_typeof=yes
32346 echo "$as_me: program exited with status $ac_status" >&5
32347 echo "$as_me: failed program was:" >&5
32348 sed 's/^/| /' conftest.$ac_ext >&5
32350 ( exit $ac_status )
32352 ba_cv_have_typeof=no
32355 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32362 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
32363 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
32364 test $ba_cv_have_typeof = yes &&
32365 cat >>confdefs.h <<\_ACEOF
32366 #define HAVE_TYPEOF 1
32370 ac_cpp='$CPP $CPPFLAGS'
32371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32376 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32377 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32378 if test "${ac_cv_c_const+set}" = set; then
32379 echo $ECHO_N "(cached) $ECHO_C" >&6
32381 cat >conftest.$ac_ext <<_ACEOF
32384 cat confdefs.h >>conftest.$ac_ext
32385 cat >>conftest.$ac_ext <<_ACEOF
32386 /* end confdefs.h. */
32391 /* FIXME: Include the comments suggested by Paul. */
32392 #ifndef __cplusplus
32393 /* Ultrix mips cc rejects this. */
32394 typedef int charset[2];
32396 /* SunOS 4.1.1 cc rejects this. */
32397 char const *const *pcpcc;
32399 /* NEC SVR4.0.2 mips cc rejects this. */
32400 struct point {int x, y;};
32401 static struct point const zero = {0,0};
32402 /* AIX XL C 1.02.0.0 rejects this.
32403 It does not let you subtract one const X* pointer from another in
32404 an arm of an if-expression whose if-part is not a constant
32406 const char *g = "string";
32407 pcpcc = &g + (g ? g-g : 0);
32408 /* HPUX 7.0 cc rejects these. */
32410 ppc = (char**) pcpcc;
32411 pcpcc = (char const *const *) ppc;
32412 { /* SCO 3.2v4 cc rejects this. */
32414 char const *s = 0 ? (char *) 0 : (char const *) 0;
32419 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
32420 int x[] = {25, 17};
32421 const int *foo = &x[0];
32424 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32425 typedef const int *iptr;
32429 { /* AIX XL C 1.02.0.0 rejects this saying
32430 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32431 struct s { int j; const int *ap[3]; };
32432 struct s *b; b->j = 5;
32434 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32435 const int foo = 10;
32436 if (!foo) return 0;
32438 return !cs[0] && !zero.x;
32445 rm -f conftest.$ac_objext
32446 if { (ac_try="$ac_compile"
32447 case "(($ac_try" in
32448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32449 *) ac_try_echo=$ac_try;;
32451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32452 (eval "$ac_compile") 2>conftest.er1
32454 grep -v '^ *+' conftest.er1 >conftest.err
32456 cat conftest.err >&5
32457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32458 (exit $ac_status); } && {
32459 test -z "$ac_c_werror_flag" ||
32460 test ! -s conftest.err
32461 } && test -s conftest.$ac_objext; then
32464 echo "$as_me: failed program was:" >&5
32465 sed 's/^/| /' conftest.$ac_ext >&5
32470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32472 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32473 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32474 if test $ac_cv_c_const = no; then
32476 cat >>confdefs.h <<\_ACEOF
32483 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
32484 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
32486 # The order of these tests is important.
32487 cat >conftest.$ac_ext <<_ACEOF
32490 cat confdefs.h >>conftest.$ac_ext
32491 cat >>conftest.$ac_ext <<_ACEOF
32492 /* end confdefs.h. */
32494 #include <sys/statvfs.h>
32495 #include <sys/fstyp.h>
32498 if { (ac_try="$ac_cpp conftest.$ac_ext"
32499 case "(($ac_try" in
32500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32501 *) ac_try_echo=$ac_try;;
32503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32504 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32506 grep -v '^ *+' conftest.er1 >conftest.err
32508 cat conftest.err >&5
32509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32510 (exit $ac_status); } >/dev/null && {
32511 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32512 test ! -s conftest.err
32514 cat >>confdefs.h <<\_ACEOF
32515 #define FSTYPE_STATVFS 1
32520 echo "$as_me: failed program was:" >&5
32521 sed 's/^/| /' conftest.$ac_ext >&5
32526 rm -f conftest.err conftest.$ac_ext
32527 if test $fstype = no; then
32528 cat >conftest.$ac_ext <<_ACEOF
32531 cat confdefs.h >>conftest.$ac_ext
32532 cat >>conftest.$ac_ext <<_ACEOF
32533 /* end confdefs.h. */
32535 #include <sys/statfs.h>
32536 #include <sys/fstyp.h>
32539 if { (ac_try="$ac_cpp conftest.$ac_ext"
32540 case "(($ac_try" in
32541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32542 *) ac_try_echo=$ac_try;;
32544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32545 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32547 grep -v '^ *+' conftest.er1 >conftest.err
32549 cat conftest.err >&5
32550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32551 (exit $ac_status); } >/dev/null && {
32552 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32553 test ! -s conftest.err
32555 cat >>confdefs.h <<\_ACEOF
32556 #define FSTYPE_USG_STATFS 1
32561 echo "$as_me: failed program was:" >&5
32562 sed 's/^/| /' conftest.$ac_ext >&5
32567 rm -f conftest.err conftest.$ac_ext
32569 if test $fstype = no; then
32570 cat >conftest.$ac_ext <<_ACEOF
32573 cat confdefs.h >>conftest.$ac_ext
32574 cat >>conftest.$ac_ext <<_ACEOF
32575 /* end confdefs.h. */
32577 #include <sys/statfs.h>
32578 #include <sys/vmount.h>
32581 if { (ac_try="$ac_cpp conftest.$ac_ext"
32582 case "(($ac_try" in
32583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32584 *) ac_try_echo=$ac_try;;
32586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32587 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32589 grep -v '^ *+' conftest.er1 >conftest.err
32591 cat conftest.err >&5
32592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32593 (exit $ac_status); } >/dev/null && {
32594 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32595 test ! -s conftest.err
32597 cat >>confdefs.h <<\_ACEOF
32598 #define FSTYPE_AIX_STATFS 1
32603 echo "$as_me: failed program was:" >&5
32604 sed 's/^/| /' conftest.$ac_ext >&5
32609 rm -f conftest.err conftest.$ac_ext
32611 if test $fstype = no; then
32612 cat >conftest.$ac_ext <<_ACEOF
32615 cat confdefs.h >>conftest.$ac_ext
32616 cat >>conftest.$ac_ext <<_ACEOF
32617 /* end confdefs.h. */
32619 #include <mntent.h>
32622 if { (ac_try="$ac_cpp conftest.$ac_ext"
32623 case "(($ac_try" in
32624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32625 *) ac_try_echo=$ac_try;;
32627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32630 grep -v '^ *+' conftest.er1 >conftest.err
32632 cat conftest.err >&5
32633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32634 (exit $ac_status); } >/dev/null && {
32635 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32636 test ! -s conftest.err
32638 cat >>confdefs.h <<\_ACEOF
32639 #define FSTYPE_MNTENT 1
32644 echo "$as_me: failed program was:" >&5
32645 sed 's/^/| /' conftest.$ac_ext >&5
32650 rm -f conftest.err conftest.$ac_ext
32652 if test $fstype = no; then
32653 cat >conftest.$ac_ext <<_ACEOF
32656 cat confdefs.h >>conftest.$ac_ext
32657 cat >>conftest.$ac_ext <<_ACEOF
32658 /* end confdefs.h. */
32659 #include <sys/mount.h>
32662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32663 $EGREP "f_type;" >/dev/null 2>&1; then
32664 cat >>confdefs.h <<\_ACEOF
32665 #define FSTYPE_STATFS 1
32672 if test $fstype = no; then
32673 cat >conftest.$ac_ext <<_ACEOF
32676 cat confdefs.h >>conftest.$ac_ext
32677 cat >>conftest.$ac_ext <<_ACEOF
32678 /* end confdefs.h. */
32680 #include <sys/mount.h>
32681 #include <sys/fs_types.h>
32684 if { (ac_try="$ac_cpp conftest.$ac_ext"
32685 case "(($ac_try" in
32686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32687 *) ac_try_echo=$ac_try;;
32689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32690 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32692 grep -v '^ *+' conftest.er1 >conftest.err
32694 cat conftest.err >&5
32695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32696 (exit $ac_status); } >/dev/null && {
32697 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32698 test ! -s conftest.err
32700 cat >>confdefs.h <<\_ACEOF
32701 #define FSTYPE_GETMNT 1
32706 echo "$as_me: failed program was:" >&5
32707 sed 's/^/| /' conftest.$ac_ext >&5
32712 rm -f conftest.err conftest.$ac_ext
32714 { echo "$as_me:$LINENO: result: $fstype" >&5
32715 echo "${ECHO_T}$fstype" >&6; }
32717 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32718 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32719 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32720 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32721 echo $ECHO_N "(cached) $ECHO_C" >&6
32723 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32724 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32726 # Is the header compilable?
32727 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
32728 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
32729 cat >conftest.$ac_ext <<_ACEOF
32732 cat confdefs.h >>conftest.$ac_ext
32733 cat >>conftest.$ac_ext <<_ACEOF
32734 /* end confdefs.h. */
32735 $ac_includes_default
32736 #include <sys/statvfs.h>
32738 rm -f conftest.$ac_objext
32739 if { (ac_try="$ac_compile"
32740 case "(($ac_try" in
32741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32742 *) ac_try_echo=$ac_try;;
32744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32745 (eval "$ac_compile") 2>conftest.er1
32747 grep -v '^ *+' conftest.er1 >conftest.err
32749 cat conftest.err >&5
32750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32751 (exit $ac_status); } && {
32752 test -z "$ac_c_werror_flag" ||
32753 test ! -s conftest.err
32754 } && test -s conftest.$ac_objext; then
32755 ac_header_compiler=yes
32757 echo "$as_me: failed program was:" >&5
32758 sed 's/^/| /' conftest.$ac_ext >&5
32760 ac_header_compiler=no
32763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32764 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32765 echo "${ECHO_T}$ac_header_compiler" >&6; }
32767 # Is the header present?
32768 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
32769 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
32770 cat >conftest.$ac_ext <<_ACEOF
32773 cat confdefs.h >>conftest.$ac_ext
32774 cat >>conftest.$ac_ext <<_ACEOF
32775 /* end confdefs.h. */
32776 #include <sys/statvfs.h>
32778 if { (ac_try="$ac_cpp conftest.$ac_ext"
32779 case "(($ac_try" in
32780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32781 *) ac_try_echo=$ac_try;;
32783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32784 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32786 grep -v '^ *+' conftest.er1 >conftest.err
32788 cat conftest.err >&5
32789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32790 (exit $ac_status); } >/dev/null && {
32791 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32792 test ! -s conftest.err
32794 ac_header_preproc=yes
32796 echo "$as_me: failed program was:" >&5
32797 sed 's/^/| /' conftest.$ac_ext >&5
32799 ac_header_preproc=no
32802 rm -f conftest.err conftest.$ac_ext
32803 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32804 echo "${ECHO_T}$ac_header_preproc" >&6; }
32806 # So? What about this header?
32807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32809 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
32810 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32811 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
32812 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
32813 ac_header_preproc=yes
32816 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
32817 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
32818 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
32819 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
32820 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
32821 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
32822 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
32823 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
32824 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
32825 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
32826 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
32827 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
32831 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32832 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32833 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32834 echo $ECHO_N "(cached) $ECHO_C" >&6
32836 ac_cv_header_sys_statvfs_h=$ac_header_preproc
32838 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32839 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32842 if test $ac_cv_header_sys_statvfs_h = yes; then
32844 cat >>confdefs.h <<\_ACEOF
32845 #define HAVE_SYS_STATVFS_H 1
32852 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32853 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
32854 if test "${ac_cv_type_signal+set}" = set; then
32855 echo $ECHO_N "(cached) $ECHO_C" >&6
32857 cat >conftest.$ac_ext <<_ACEOF
32860 cat confdefs.h >>conftest.$ac_ext
32861 cat >>conftest.$ac_ext <<_ACEOF
32862 /* end confdefs.h. */
32863 #include <sys/types.h>
32864 #include <signal.h>
32869 return *(signal (0, 0)) (0) == 1;
32874 rm -f conftest.$ac_objext
32875 if { (ac_try="$ac_compile"
32876 case "(($ac_try" in
32877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32878 *) ac_try_echo=$ac_try;;
32880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32881 (eval "$ac_compile") 2>conftest.er1
32883 grep -v '^ *+' conftest.er1 >conftest.err
32885 cat conftest.err >&5
32886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32887 (exit $ac_status); } && {
32888 test -z "$ac_c_werror_flag" ||
32889 test ! -s conftest.err
32890 } && test -s conftest.$ac_objext; then
32891 ac_cv_type_signal=int
32893 echo "$as_me: failed program was:" >&5
32894 sed 's/^/| /' conftest.$ac_ext >&5
32896 ac_cv_type_signal=void
32899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32901 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
32902 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
32904 cat >>confdefs.h <<_ACEOF
32905 #define RETSIGTYPE $ac_cv_type_signal
32910 { echo "$as_me:$LINENO: checking for type of signal functions" >&5
32911 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
32912 if test "${bash_cv_signal_vintage+set}" = set; then
32913 echo $ECHO_N "(cached) $ECHO_C" >&6
32916 cat >conftest.$ac_ext <<_ACEOF
32919 cat confdefs.h >>conftest.$ac_ext
32920 cat >>conftest.$ac_ext <<_ACEOF
32921 /* end confdefs.h. */
32922 #include <signal.h>
32928 struct sigaction sa;
32929 sigemptyset(&ss); sigsuspend(&ss);
32930 sigaction(SIGINT, &sa, (struct sigaction *) 0);
32931 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
32937 rm -f conftest.$ac_objext conftest$ac_exeext
32938 if { (ac_try="$ac_link"
32939 case "(($ac_try" in
32940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32941 *) ac_try_echo=$ac_try;;
32943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32944 (eval "$ac_link") 2>conftest.er1
32946 grep -v '^ *+' conftest.er1 >conftest.err
32948 cat conftest.err >&5
32949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32950 (exit $ac_status); } && {
32951 test -z "$ac_c_werror_flag" ||
32952 test ! -s conftest.err
32953 } && test -s conftest$ac_exeext &&
32954 $as_test_x conftest$ac_exeext; then
32955 bash_cv_signal_vintage="posix"
32957 echo "$as_me: failed program was:" >&5
32958 sed 's/^/| /' conftest.$ac_ext >&5
32961 cat >conftest.$ac_ext <<_ACEOF
32964 cat confdefs.h >>conftest.$ac_ext
32965 cat >>conftest.$ac_ext <<_ACEOF
32966 /* end confdefs.h. */
32967 #include <signal.h>
32972 int mask = sigmask(SIGINT);
32973 sigsetmask(mask); sigblock(mask); sigpause(mask);
32979 rm -f conftest.$ac_objext conftest$ac_exeext
32980 if { (ac_try="$ac_link"
32981 case "(($ac_try" in
32982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32983 *) ac_try_echo=$ac_try;;
32985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32986 (eval "$ac_link") 2>conftest.er1
32988 grep -v '^ *+' conftest.er1 >conftest.err
32990 cat conftest.err >&5
32991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32992 (exit $ac_status); } && {
32993 test -z "$ac_c_werror_flag" ||
32994 test ! -s conftest.err
32995 } && test -s conftest$ac_exeext &&
32996 $as_test_x conftest$ac_exeext; then
32997 bash_cv_signal_vintage="4.2bsd"
32999 echo "$as_me: failed program was:" >&5
33000 sed 's/^/| /' conftest.$ac_ext >&5
33003 cat >conftest.$ac_ext <<_ACEOF
33006 cat confdefs.h >>conftest.$ac_ext
33007 cat >>conftest.$ac_ext <<_ACEOF
33008 /* end confdefs.h. */
33010 #include <signal.h>
33011 RETSIGTYPE foo() { }
33016 int mask = sigmask(SIGINT);
33017 sigset(SIGINT, foo); sigrelse(SIGINT);
33018 sighold(SIGINT); sigpause(SIGINT);
33024 rm -f conftest.$ac_objext conftest$ac_exeext
33025 if { (ac_try="$ac_link"
33026 case "(($ac_try" in
33027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33028 *) ac_try_echo=$ac_try;;
33030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33031 (eval "$ac_link") 2>conftest.er1
33033 grep -v '^ *+' conftest.er1 >conftest.err
33035 cat conftest.err >&5
33036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33037 (exit $ac_status); } && {
33038 test -z "$ac_c_werror_flag" ||
33039 test ! -s conftest.err
33040 } && test -s conftest$ac_exeext &&
33041 $as_test_x conftest$ac_exeext; then
33042 bash_cv_signal_vintage="svr3"
33044 echo "$as_me: failed program was:" >&5
33045 sed 's/^/| /' conftest.$ac_ext >&5
33047 bash_cv_signal_vintage="v7"
33051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33052 conftest$ac_exeext conftest.$ac_ext
33056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33057 conftest$ac_exeext conftest.$ac_ext
33061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33062 conftest$ac_exeext conftest.$ac_ext
33066 { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33067 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33068 if test "$bash_cv_signal_vintage" = "posix"; then
33069 cat >>confdefs.h <<\_ACEOF
33070 #define HAVE_POSIX_SIGNALS 1
33073 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33074 cat >>confdefs.h <<\_ACEOF
33075 #define HAVE_BSD_SIGNALS 1
33078 elif test "$bash_cv_signal_vintage" = "svr3"; then
33079 cat >>confdefs.h <<\_ACEOF
33080 #define HAVE_USG_SIGHOLD 1
33085 { echo "$as_me:$LINENO: checking for mode_t" >&5
33086 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33087 if test "${ac_cv_type_mode_t+set}" = set; then
33088 echo $ECHO_N "(cached) $ECHO_C" >&6
33090 cat >conftest.$ac_ext <<_ACEOF
33093 cat confdefs.h >>conftest.$ac_ext
33094 cat >>conftest.$ac_ext <<_ACEOF
33095 /* end confdefs.h. */
33096 $ac_includes_default
33097 typedef mode_t ac__type_new_;
33101 if ((ac__type_new_ *) 0)
33103 if (sizeof (ac__type_new_))
33109 rm -f conftest.$ac_objext
33110 if { (ac_try="$ac_compile"
33111 case "(($ac_try" in
33112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33113 *) ac_try_echo=$ac_try;;
33115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33116 (eval "$ac_compile") 2>conftest.er1
33118 grep -v '^ *+' conftest.er1 >conftest.err
33120 cat conftest.err >&5
33121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33122 (exit $ac_status); } && {
33123 test -z "$ac_c_werror_flag" ||
33124 test ! -s conftest.err
33125 } && test -s conftest.$ac_objext; then
33126 ac_cv_type_mode_t=yes
33128 echo "$as_me: failed program was:" >&5
33129 sed 's/^/| /' conftest.$ac_ext >&5
33131 ac_cv_type_mode_t=no
33134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33136 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33137 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33138 if test $ac_cv_type_mode_t = yes; then
33142 cat >>confdefs.h <<_ACEOF
33148 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33149 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33150 if test "${ac_cv_type_uid_t+set}" = set; then
33151 echo $ECHO_N "(cached) $ECHO_C" >&6
33153 cat >conftest.$ac_ext <<_ACEOF
33156 cat confdefs.h >>conftest.$ac_ext
33157 cat >>conftest.$ac_ext <<_ACEOF
33158 /* end confdefs.h. */
33159 #include <sys/types.h>
33162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33163 $EGREP "uid_t" >/dev/null 2>&1; then
33164 ac_cv_type_uid_t=yes
33166 ac_cv_type_uid_t=no
33171 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33172 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33173 if test $ac_cv_type_uid_t = no; then
33175 cat >>confdefs.h <<\_ACEOF
33180 cat >>confdefs.h <<\_ACEOF
33186 { echo "$as_me:$LINENO: checking for size_t" >&5
33187 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33188 if test "${ac_cv_type_size_t+set}" = set; then
33189 echo $ECHO_N "(cached) $ECHO_C" >&6
33191 cat >conftest.$ac_ext <<_ACEOF
33194 cat confdefs.h >>conftest.$ac_ext
33195 cat >>conftest.$ac_ext <<_ACEOF
33196 /* end confdefs.h. */
33197 $ac_includes_default
33198 typedef size_t ac__type_new_;
33202 if ((ac__type_new_ *) 0)
33204 if (sizeof (ac__type_new_))
33210 rm -f conftest.$ac_objext
33211 if { (ac_try="$ac_compile"
33212 case "(($ac_try" in
33213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33214 *) ac_try_echo=$ac_try;;
33216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33217 (eval "$ac_compile") 2>conftest.er1
33219 grep -v '^ *+' conftest.er1 >conftest.err
33221 cat conftest.err >&5
33222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33223 (exit $ac_status); } && {
33224 test -z "$ac_c_werror_flag" ||
33225 test ! -s conftest.err
33226 } && test -s conftest.$ac_objext; then
33227 ac_cv_type_size_t=yes
33229 echo "$as_me: failed program was:" >&5
33230 sed 's/^/| /' conftest.$ac_ext >&5
33232 ac_cv_type_size_t=no
33235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33237 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33238 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33239 if test $ac_cv_type_size_t = yes; then
33243 cat >>confdefs.h <<_ACEOF
33244 #define size_t unsigned int
33249 { echo "$as_me:$LINENO: checking for pid_t" >&5
33250 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33251 if test "${ac_cv_type_pid_t+set}" = set; then
33252 echo $ECHO_N "(cached) $ECHO_C" >&6
33254 cat >conftest.$ac_ext <<_ACEOF
33257 cat confdefs.h >>conftest.$ac_ext
33258 cat >>conftest.$ac_ext <<_ACEOF
33259 /* end confdefs.h. */
33260 $ac_includes_default
33261 typedef pid_t ac__type_new_;
33265 if ((ac__type_new_ *) 0)
33267 if (sizeof (ac__type_new_))
33273 rm -f conftest.$ac_objext
33274 if { (ac_try="$ac_compile"
33275 case "(($ac_try" in
33276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33277 *) ac_try_echo=$ac_try;;
33279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33280 (eval "$ac_compile") 2>conftest.er1
33282 grep -v '^ *+' conftest.er1 >conftest.err
33284 cat conftest.err >&5
33285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33286 (exit $ac_status); } && {
33287 test -z "$ac_c_werror_flag" ||
33288 test ! -s conftest.err
33289 } && test -s conftest.$ac_objext; then
33290 ac_cv_type_pid_t=yes
33292 echo "$as_me: failed program was:" >&5
33293 sed 's/^/| /' conftest.$ac_ext >&5
33295 ac_cv_type_pid_t=no
33298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33300 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33301 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33302 if test $ac_cv_type_pid_t = yes; then
33306 cat >>confdefs.h <<_ACEOF
33312 { echo "$as_me:$LINENO: checking for off_t" >&5
33313 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33314 if test "${ac_cv_type_off_t+set}" = set; then
33315 echo $ECHO_N "(cached) $ECHO_C" >&6
33317 cat >conftest.$ac_ext <<_ACEOF
33320 cat confdefs.h >>conftest.$ac_ext
33321 cat >>conftest.$ac_ext <<_ACEOF
33322 /* end confdefs.h. */
33323 $ac_includes_default
33324 typedef off_t ac__type_new_;
33328 if ((ac__type_new_ *) 0)
33330 if (sizeof (ac__type_new_))
33336 rm -f conftest.$ac_objext
33337 if { (ac_try="$ac_compile"
33338 case "(($ac_try" in
33339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33340 *) ac_try_echo=$ac_try;;
33342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33343 (eval "$ac_compile") 2>conftest.er1
33345 grep -v '^ *+' conftest.er1 >conftest.err
33347 cat conftest.err >&5
33348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33349 (exit $ac_status); } && {
33350 test -z "$ac_c_werror_flag" ||
33351 test ! -s conftest.err
33352 } && test -s conftest.$ac_objext; then
33353 ac_cv_type_off_t=yes
33355 echo "$as_me: failed program was:" >&5
33356 sed 's/^/| /' conftest.$ac_ext >&5
33358 ac_cv_type_off_t=no
33361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33363 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33364 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
33365 if test $ac_cv_type_off_t = yes; then
33369 cat >>confdefs.h <<_ACEOF
33370 #define off_t long int
33375 { echo "$as_me:$LINENO: checking for ino_t" >&5
33376 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
33377 if test "${ac_cv_type_ino_t+set}" = set; then
33378 echo $ECHO_N "(cached) $ECHO_C" >&6
33380 cat >conftest.$ac_ext <<_ACEOF
33383 cat confdefs.h >>conftest.$ac_ext
33384 cat >>conftest.$ac_ext <<_ACEOF
33385 /* end confdefs.h. */
33386 $ac_includes_default
33387 typedef ino_t ac__type_new_;
33391 if ((ac__type_new_ *) 0)
33393 if (sizeof (ac__type_new_))
33399 rm -f conftest.$ac_objext
33400 if { (ac_try="$ac_compile"
33401 case "(($ac_try" in
33402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33403 *) ac_try_echo=$ac_try;;
33405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33406 (eval "$ac_compile") 2>conftest.er1
33408 grep -v '^ *+' conftest.er1 >conftest.err
33410 cat conftest.err >&5
33411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33412 (exit $ac_status); } && {
33413 test -z "$ac_c_werror_flag" ||
33414 test ! -s conftest.err
33415 } && test -s conftest.$ac_objext; then
33416 ac_cv_type_ino_t=yes
33418 echo "$as_me: failed program was:" >&5
33419 sed 's/^/| /' conftest.$ac_ext >&5
33421 ac_cv_type_ino_t=no
33424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33426 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
33427 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
33428 if test $ac_cv_type_ino_t = yes; then
33432 cat >>confdefs.h <<_ACEOF
33433 #define ino_t unsigned long
33438 { echo "$as_me:$LINENO: checking for dev_t" >&5
33439 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
33440 if test "${ac_cv_type_dev_t+set}" = set; then
33441 echo $ECHO_N "(cached) $ECHO_C" >&6
33443 cat >conftest.$ac_ext <<_ACEOF
33446 cat confdefs.h >>conftest.$ac_ext
33447 cat >>conftest.$ac_ext <<_ACEOF
33448 /* end confdefs.h. */
33449 $ac_includes_default
33450 typedef dev_t ac__type_new_;
33454 if ((ac__type_new_ *) 0)
33456 if (sizeof (ac__type_new_))
33462 rm -f conftest.$ac_objext
33463 if { (ac_try="$ac_compile"
33464 case "(($ac_try" in
33465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33466 *) ac_try_echo=$ac_try;;
33468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33469 (eval "$ac_compile") 2>conftest.er1
33471 grep -v '^ *+' conftest.er1 >conftest.err
33473 cat conftest.err >&5
33474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33475 (exit $ac_status); } && {
33476 test -z "$ac_c_werror_flag" ||
33477 test ! -s conftest.err
33478 } && test -s conftest.$ac_objext; then
33479 ac_cv_type_dev_t=yes
33481 echo "$as_me: failed program was:" >&5
33482 sed 's/^/| /' conftest.$ac_ext >&5
33484 ac_cv_type_dev_t=no
33487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33489 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
33490 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
33491 if test $ac_cv_type_dev_t = yes; then
33495 cat >>confdefs.h <<_ACEOF
33496 #define dev_t unsigned long
33501 { echo "$as_me:$LINENO: checking for daddr_t" >&5
33502 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
33503 if test "${ac_cv_type_daddr_t+set}" = set; then
33504 echo $ECHO_N "(cached) $ECHO_C" >&6
33506 cat >conftest.$ac_ext <<_ACEOF
33509 cat confdefs.h >>conftest.$ac_ext
33510 cat >>conftest.$ac_ext <<_ACEOF
33511 /* end confdefs.h. */
33512 $ac_includes_default
33513 typedef daddr_t ac__type_new_;
33517 if ((ac__type_new_ *) 0)
33519 if (sizeof (ac__type_new_))
33525 rm -f conftest.$ac_objext
33526 if { (ac_try="$ac_compile"
33527 case "(($ac_try" in
33528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33529 *) ac_try_echo=$ac_try;;
33531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33532 (eval "$ac_compile") 2>conftest.er1
33534 grep -v '^ *+' conftest.er1 >conftest.err
33536 cat conftest.err >&5
33537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33538 (exit $ac_status); } && {
33539 test -z "$ac_c_werror_flag" ||
33540 test ! -s conftest.err
33541 } && test -s conftest.$ac_objext; then
33542 ac_cv_type_daddr_t=yes
33544 echo "$as_me: failed program was:" >&5
33545 sed 's/^/| /' conftest.$ac_ext >&5
33547 ac_cv_type_daddr_t=no
33550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33552 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
33553 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
33554 if test $ac_cv_type_daddr_t = yes; then
33558 cat >>confdefs.h <<_ACEOF
33559 #define daddr_t long
33564 { echo "$as_me:$LINENO: checking for major_t" >&5
33565 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
33566 if test "${ac_cv_type_major_t+set}" = set; then
33567 echo $ECHO_N "(cached) $ECHO_C" >&6
33569 cat >conftest.$ac_ext <<_ACEOF
33572 cat confdefs.h >>conftest.$ac_ext
33573 cat >>conftest.$ac_ext <<_ACEOF
33574 /* end confdefs.h. */
33575 $ac_includes_default
33576 typedef major_t ac__type_new_;
33580 if ((ac__type_new_ *) 0)
33582 if (sizeof (ac__type_new_))
33588 rm -f conftest.$ac_objext
33589 if { (ac_try="$ac_compile"
33590 case "(($ac_try" in
33591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33592 *) ac_try_echo=$ac_try;;
33594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33595 (eval "$ac_compile") 2>conftest.er1
33597 grep -v '^ *+' conftest.er1 >conftest.err
33599 cat conftest.err >&5
33600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33601 (exit $ac_status); } && {
33602 test -z "$ac_c_werror_flag" ||
33603 test ! -s conftest.err
33604 } && test -s conftest.$ac_objext; then
33605 ac_cv_type_major_t=yes
33607 echo "$as_me: failed program was:" >&5
33608 sed 's/^/| /' conftest.$ac_ext >&5
33610 ac_cv_type_major_t=no
33613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33615 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
33616 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
33617 if test $ac_cv_type_major_t = yes; then
33621 cat >>confdefs.h <<_ACEOF
33622 #define major_t int
33627 { echo "$as_me:$LINENO: checking for minor_t" >&5
33628 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
33629 if test "${ac_cv_type_minor_t+set}" = set; then
33630 echo $ECHO_N "(cached) $ECHO_C" >&6
33632 cat >conftest.$ac_ext <<_ACEOF
33635 cat confdefs.h >>conftest.$ac_ext
33636 cat >>conftest.$ac_ext <<_ACEOF
33637 /* end confdefs.h. */
33638 $ac_includes_default
33639 typedef minor_t ac__type_new_;
33643 if ((ac__type_new_ *) 0)
33645 if (sizeof (ac__type_new_))
33651 rm -f conftest.$ac_objext
33652 if { (ac_try="$ac_compile"
33653 case "(($ac_try" in
33654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33655 *) ac_try_echo=$ac_try;;
33657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33658 (eval "$ac_compile") 2>conftest.er1
33660 grep -v '^ *+' conftest.er1 >conftest.err
33662 cat conftest.err >&5
33663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33664 (exit $ac_status); } && {
33665 test -z "$ac_c_werror_flag" ||
33666 test ! -s conftest.err
33667 } && test -s conftest.$ac_objext; then
33668 ac_cv_type_minor_t=yes
33670 echo "$as_me: failed program was:" >&5
33671 sed 's/^/| /' conftest.$ac_ext >&5
33673 ac_cv_type_minor_t=no
33676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33678 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
33679 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
33680 if test $ac_cv_type_minor_t = yes; then
33684 cat >>confdefs.h <<_ACEOF
33685 #define minor_t int
33690 { echo "$as_me:$LINENO: checking for ssize_t" >&5
33691 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
33692 if test "${ac_cv_type_ssize_t+set}" = set; then
33693 echo $ECHO_N "(cached) $ECHO_C" >&6
33695 cat >conftest.$ac_ext <<_ACEOF
33698 cat confdefs.h >>conftest.$ac_ext
33699 cat >>conftest.$ac_ext <<_ACEOF
33700 /* end confdefs.h. */
33701 $ac_includes_default
33702 typedef ssize_t ac__type_new_;
33706 if ((ac__type_new_ *) 0)
33708 if (sizeof (ac__type_new_))
33714 rm -f conftest.$ac_objext
33715 if { (ac_try="$ac_compile"
33716 case "(($ac_try" in
33717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33718 *) ac_try_echo=$ac_try;;
33720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33721 (eval "$ac_compile") 2>conftest.er1
33723 grep -v '^ *+' conftest.er1 >conftest.err
33725 cat conftest.err >&5
33726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33727 (exit $ac_status); } && {
33728 test -z "$ac_c_werror_flag" ||
33729 test ! -s conftest.err
33730 } && test -s conftest.$ac_objext; then
33731 ac_cv_type_ssize_t=yes
33733 echo "$as_me: failed program was:" >&5
33734 sed 's/^/| /' conftest.$ac_ext >&5
33736 ac_cv_type_ssize_t=no
33739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33741 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
33742 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
33743 if test $ac_cv_type_ssize_t = yes; then
33747 cat >>confdefs.h <<_ACEOF
33748 #define ssize_t int
33753 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
33754 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
33755 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
33756 echo $ECHO_N "(cached) $ECHO_C" >&6
33758 cat >conftest.$ac_ext <<_ACEOF
33761 cat confdefs.h >>conftest.$ac_ext
33762 cat >>conftest.$ac_ext <<_ACEOF
33763 /* end confdefs.h. */
33764 $ac_includes_default
33768 static struct stat ac_aggr;
33769 if (ac_aggr.st_blocks)
33775 rm -f conftest.$ac_objext
33776 if { (ac_try="$ac_compile"
33777 case "(($ac_try" in
33778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33779 *) ac_try_echo=$ac_try;;
33781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33782 (eval "$ac_compile") 2>conftest.er1
33784 grep -v '^ *+' conftest.er1 >conftest.err
33786 cat conftest.err >&5
33787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33788 (exit $ac_status); } && {
33789 test -z "$ac_c_werror_flag" ||
33790 test ! -s conftest.err
33791 } && test -s conftest.$ac_objext; then
33792 ac_cv_member_struct_stat_st_blocks=yes
33794 echo "$as_me: failed program was:" >&5
33795 sed 's/^/| /' conftest.$ac_ext >&5
33797 cat >conftest.$ac_ext <<_ACEOF
33800 cat confdefs.h >>conftest.$ac_ext
33801 cat >>conftest.$ac_ext <<_ACEOF
33802 /* end confdefs.h. */
33803 $ac_includes_default
33807 static struct stat ac_aggr;
33808 if (sizeof ac_aggr.st_blocks)
33814 rm -f conftest.$ac_objext
33815 if { (ac_try="$ac_compile"
33816 case "(($ac_try" in
33817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33818 *) ac_try_echo=$ac_try;;
33820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33821 (eval "$ac_compile") 2>conftest.er1
33823 grep -v '^ *+' conftest.er1 >conftest.err
33825 cat conftest.err >&5
33826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33827 (exit $ac_status); } && {
33828 test -z "$ac_c_werror_flag" ||
33829 test ! -s conftest.err
33830 } && test -s conftest.$ac_objext; then
33831 ac_cv_member_struct_stat_st_blocks=yes
33833 echo "$as_me: failed program was:" >&5
33834 sed 's/^/| /' conftest.$ac_ext >&5
33836 ac_cv_member_struct_stat_st_blocks=no
33839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33844 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
33845 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
33846 if test $ac_cv_member_struct_stat_st_blocks = yes; then
33848 cat >>confdefs.h <<_ACEOF
33849 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
33853 cat >>confdefs.h <<\_ACEOF
33854 #define HAVE_ST_BLOCKS 1
33858 case " $LIBOBJS " in
33859 *" fileblocks.$ac_objext "* ) ;;
33860 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
33867 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
33868 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
33869 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
33870 echo $ECHO_N "(cached) $ECHO_C" >&6
33872 cat >conftest.$ac_ext <<_ACEOF
33875 cat confdefs.h >>conftest.$ac_ext
33876 cat >>conftest.$ac_ext <<_ACEOF
33877 /* end confdefs.h. */
33878 $ac_includes_default
33882 static struct stat ac_aggr;
33883 if (ac_aggr.st_rdev)
33889 rm -f conftest.$ac_objext
33890 if { (ac_try="$ac_compile"
33891 case "(($ac_try" in
33892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33893 *) ac_try_echo=$ac_try;;
33895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33896 (eval "$ac_compile") 2>conftest.er1
33898 grep -v '^ *+' conftest.er1 >conftest.err
33900 cat conftest.err >&5
33901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33902 (exit $ac_status); } && {
33903 test -z "$ac_c_werror_flag" ||
33904 test ! -s conftest.err
33905 } && test -s conftest.$ac_objext; then
33906 ac_cv_member_struct_stat_st_rdev=yes
33908 echo "$as_me: failed program was:" >&5
33909 sed 's/^/| /' conftest.$ac_ext >&5
33911 cat >conftest.$ac_ext <<_ACEOF
33914 cat confdefs.h >>conftest.$ac_ext
33915 cat >>conftest.$ac_ext <<_ACEOF
33916 /* end confdefs.h. */
33917 $ac_includes_default
33921 static struct stat ac_aggr;
33922 if (sizeof ac_aggr.st_rdev)
33928 rm -f conftest.$ac_objext
33929 if { (ac_try="$ac_compile"
33930 case "(($ac_try" in
33931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33932 *) ac_try_echo=$ac_try;;
33934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33935 (eval "$ac_compile") 2>conftest.er1
33937 grep -v '^ *+' conftest.er1 >conftest.err
33939 cat conftest.err >&5
33940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33941 (exit $ac_status); } && {
33942 test -z "$ac_c_werror_flag" ||
33943 test ! -s conftest.err
33944 } && test -s conftest.$ac_objext; then
33945 ac_cv_member_struct_stat_st_rdev=yes
33947 echo "$as_me: failed program was:" >&5
33948 sed 's/^/| /' conftest.$ac_ext >&5
33950 ac_cv_member_struct_stat_st_rdev=no
33953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33958 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
33959 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
33960 if test $ac_cv_member_struct_stat_st_rdev = yes; then
33962 cat >>confdefs.h <<_ACEOF
33963 #define HAVE_STRUCT_STAT_ST_RDEV 1
33967 cat >>confdefs.h <<\_ACEOF
33968 #define HAVE_ST_RDEV 1
33974 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
33975 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
33976 if test "${ac_cv_struct_tm+set}" = set; then
33977 echo $ECHO_N "(cached) $ECHO_C" >&6
33979 cat >conftest.$ac_ext <<_ACEOF
33982 cat confdefs.h >>conftest.$ac_ext
33983 cat >>conftest.$ac_ext <<_ACEOF
33984 /* end confdefs.h. */
33985 #include <sys/types.h>
33992 int *p = &tm.tm_sec;
33998 rm -f conftest.$ac_objext
33999 if { (ac_try="$ac_compile"
34000 case "(($ac_try" in
34001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34002 *) ac_try_echo=$ac_try;;
34004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34005 (eval "$ac_compile") 2>conftest.er1
34007 grep -v '^ *+' conftest.er1 >conftest.err
34009 cat conftest.err >&5
34010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34011 (exit $ac_status); } && {
34012 test -z "$ac_c_werror_flag" ||
34013 test ! -s conftest.err
34014 } && test -s conftest.$ac_objext; then
34015 ac_cv_struct_tm=time.h
34017 echo "$as_me: failed program was:" >&5
34018 sed 's/^/| /' conftest.$ac_ext >&5
34020 ac_cv_struct_tm=sys/time.h
34023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34025 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34026 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34027 if test $ac_cv_struct_tm = sys/time.h; then
34029 cat >>confdefs.h <<\_ACEOF
34030 #define TM_IN_SYS_TIME 1
34035 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34036 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34037 if test "${ac_cv_c_const+set}" = set; then
34038 echo $ECHO_N "(cached) $ECHO_C" >&6
34040 cat >conftest.$ac_ext <<_ACEOF
34043 cat confdefs.h >>conftest.$ac_ext
34044 cat >>conftest.$ac_ext <<_ACEOF
34045 /* end confdefs.h. */
34050 /* FIXME: Include the comments suggested by Paul. */
34051 #ifndef __cplusplus
34052 /* Ultrix mips cc rejects this. */
34053 typedef int charset[2];
34055 /* SunOS 4.1.1 cc rejects this. */
34056 char const *const *pcpcc;
34058 /* NEC SVR4.0.2 mips cc rejects this. */
34059 struct point {int x, y;};
34060 static struct point const zero = {0,0};
34061 /* AIX XL C 1.02.0.0 rejects this.
34062 It does not let you subtract one const X* pointer from another in
34063 an arm of an if-expression whose if-part is not a constant
34065 const char *g = "string";
34066 pcpcc = &g + (g ? g-g : 0);
34067 /* HPUX 7.0 cc rejects these. */
34069 ppc = (char**) pcpcc;
34070 pcpcc = (char const *const *) ppc;
34071 { /* SCO 3.2v4 cc rejects this. */
34073 char const *s = 0 ? (char *) 0 : (char const *) 0;
34078 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
34079 int x[] = {25, 17};
34080 const int *foo = &x[0];
34083 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34084 typedef const int *iptr;
34088 { /* AIX XL C 1.02.0.0 rejects this saying
34089 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34090 struct s { int j; const int *ap[3]; };
34091 struct s *b; b->j = 5;
34093 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34094 const int foo = 10;
34095 if (!foo) return 0;
34097 return !cs[0] && !zero.x;
34104 rm -f conftest.$ac_objext
34105 if { (ac_try="$ac_compile"
34106 case "(($ac_try" in
34107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34108 *) ac_try_echo=$ac_try;;
34110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34111 (eval "$ac_compile") 2>conftest.er1
34113 grep -v '^ *+' conftest.er1 >conftest.err
34115 cat conftest.err >&5
34116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34117 (exit $ac_status); } && {
34118 test -z "$ac_c_werror_flag" ||
34119 test ! -s conftest.err
34120 } && test -s conftest.$ac_objext; then
34123 echo "$as_me: failed program was:" >&5
34124 sed 's/^/| /' conftest.$ac_ext >&5
34129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34131 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34132 echo "${ECHO_T}$ac_cv_c_const" >&6; }
34133 if test $ac_cv_c_const = no; then
34135 cat >>confdefs.h <<\_ACEOF
34142 { echo "$as_me:$LINENO: checking for char" >&5
34143 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
34144 if test "${ac_cv_type_char+set}" = set; then
34145 echo $ECHO_N "(cached) $ECHO_C" >&6
34147 cat >conftest.$ac_ext <<_ACEOF
34150 cat confdefs.h >>conftest.$ac_ext
34151 cat >>conftest.$ac_ext <<_ACEOF
34152 /* end confdefs.h. */
34153 $ac_includes_default
34154 typedef char ac__type_new_;
34158 if ((ac__type_new_ *) 0)
34160 if (sizeof (ac__type_new_))
34166 rm -f conftest.$ac_objext
34167 if { (ac_try="$ac_compile"
34168 case "(($ac_try" in
34169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34170 *) ac_try_echo=$ac_try;;
34172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34173 (eval "$ac_compile") 2>conftest.er1
34175 grep -v '^ *+' conftest.er1 >conftest.err
34177 cat conftest.err >&5
34178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34179 (exit $ac_status); } && {
34180 test -z "$ac_c_werror_flag" ||
34181 test ! -s conftest.err
34182 } && test -s conftest.$ac_objext; then
34183 ac_cv_type_char=yes
34185 echo "$as_me: failed program was:" >&5
34186 sed 's/^/| /' conftest.$ac_ext >&5
34191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34193 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
34194 echo "${ECHO_T}$ac_cv_type_char" >&6; }
34196 # The cast to long int works around a bug in the HP C Compiler
34197 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34198 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34199 # This bug is HP SR number 8606223364.
34200 { echo "$as_me:$LINENO: checking size of char" >&5
34201 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
34202 if test "${ac_cv_sizeof_char+set}" = set; then
34203 echo $ECHO_N "(cached) $ECHO_C" >&6
34205 if test "$cross_compiling" = yes; then
34206 # Depending upon the size, compute the lo and hi bounds.
34207 cat >conftest.$ac_ext <<_ACEOF
34210 cat confdefs.h >>conftest.$ac_ext
34211 cat >>conftest.$ac_ext <<_ACEOF
34212 /* end confdefs.h. */
34213 $ac_includes_default
34214 typedef char ac__type_sizeof_;
34218 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34225 rm -f conftest.$ac_objext
34226 if { (ac_try="$ac_compile"
34227 case "(($ac_try" in
34228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34229 *) ac_try_echo=$ac_try;;
34231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34232 (eval "$ac_compile") 2>conftest.er1
34234 grep -v '^ *+' conftest.er1 >conftest.err
34236 cat conftest.err >&5
34237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34238 (exit $ac_status); } && {
34239 test -z "$ac_c_werror_flag" ||
34240 test ! -s conftest.err
34241 } && test -s conftest.$ac_objext; then
34244 cat >conftest.$ac_ext <<_ACEOF
34247 cat confdefs.h >>conftest.$ac_ext
34248 cat >>conftest.$ac_ext <<_ACEOF
34249 /* end confdefs.h. */
34250 $ac_includes_default
34251 typedef char ac__type_sizeof_;
34255 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34262 rm -f conftest.$ac_objext
34263 if { (ac_try="$ac_compile"
34264 case "(($ac_try" in
34265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34266 *) ac_try_echo=$ac_try;;
34268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34269 (eval "$ac_compile") 2>conftest.er1
34271 grep -v '^ *+' conftest.er1 >conftest.err
34273 cat conftest.err >&5
34274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34275 (exit $ac_status); } && {
34276 test -z "$ac_c_werror_flag" ||
34277 test ! -s conftest.err
34278 } && test -s conftest.$ac_objext; then
34279 ac_hi=$ac_mid; break
34281 echo "$as_me: failed program was:" >&5
34282 sed 's/^/| /' conftest.$ac_ext >&5
34284 ac_lo=`expr $ac_mid + 1`
34285 if test $ac_lo -le $ac_mid; then
34289 ac_mid=`expr 2 '*' $ac_mid + 1`
34292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34295 echo "$as_me: failed program was:" >&5
34296 sed 's/^/| /' conftest.$ac_ext >&5
34298 cat >conftest.$ac_ext <<_ACEOF
34301 cat confdefs.h >>conftest.$ac_ext
34302 cat >>conftest.$ac_ext <<_ACEOF
34303 /* end confdefs.h. */
34304 $ac_includes_default
34305 typedef char ac__type_sizeof_;
34309 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34316 rm -f conftest.$ac_objext
34317 if { (ac_try="$ac_compile"
34318 case "(($ac_try" in
34319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34320 *) ac_try_echo=$ac_try;;
34322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34323 (eval "$ac_compile") 2>conftest.er1
34325 grep -v '^ *+' conftest.er1 >conftest.err
34327 cat conftest.err >&5
34328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34329 (exit $ac_status); } && {
34330 test -z "$ac_c_werror_flag" ||
34331 test ! -s conftest.err
34332 } && test -s conftest.$ac_objext; then
34335 cat >conftest.$ac_ext <<_ACEOF
34338 cat confdefs.h >>conftest.$ac_ext
34339 cat >>conftest.$ac_ext <<_ACEOF
34340 /* end confdefs.h. */
34341 $ac_includes_default
34342 typedef char ac__type_sizeof_;
34346 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34353 rm -f conftest.$ac_objext
34354 if { (ac_try="$ac_compile"
34355 case "(($ac_try" in
34356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34357 *) ac_try_echo=$ac_try;;
34359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34360 (eval "$ac_compile") 2>conftest.er1
34362 grep -v '^ *+' conftest.er1 >conftest.err
34364 cat conftest.err >&5
34365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34366 (exit $ac_status); } && {
34367 test -z "$ac_c_werror_flag" ||
34368 test ! -s conftest.err
34369 } && test -s conftest.$ac_objext; then
34370 ac_lo=$ac_mid; break
34372 echo "$as_me: failed program was:" >&5
34373 sed 's/^/| /' conftest.$ac_ext >&5
34375 ac_hi=`expr '(' $ac_mid ')' - 1`
34376 if test $ac_mid -le $ac_hi; then
34380 ac_mid=`expr 2 '*' $ac_mid`
34383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34386 echo "$as_me: failed program was:" >&5
34387 sed 's/^/| /' conftest.$ac_ext >&5
34392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34396 # Binary search between lo and hi bounds.
34397 while test "x$ac_lo" != "x$ac_hi"; do
34398 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34399 cat >conftest.$ac_ext <<_ACEOF
34402 cat confdefs.h >>conftest.$ac_ext
34403 cat >>conftest.$ac_ext <<_ACEOF
34404 /* end confdefs.h. */
34405 $ac_includes_default
34406 typedef char ac__type_sizeof_;
34410 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34417 rm -f conftest.$ac_objext
34418 if { (ac_try="$ac_compile"
34419 case "(($ac_try" in
34420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34421 *) ac_try_echo=$ac_try;;
34423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34424 (eval "$ac_compile") 2>conftest.er1
34426 grep -v '^ *+' conftest.er1 >conftest.err
34428 cat conftest.err >&5
34429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34430 (exit $ac_status); } && {
34431 test -z "$ac_c_werror_flag" ||
34432 test ! -s conftest.err
34433 } && test -s conftest.$ac_objext; then
34436 echo "$as_me: failed program was:" >&5
34437 sed 's/^/| /' conftest.$ac_ext >&5
34439 ac_lo=`expr '(' $ac_mid ')' + 1`
34442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34445 ?*) ac_cv_sizeof_char=$ac_lo;;
34446 '') if test "$ac_cv_type_char" = yes; then
34447 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34448 See \`config.log' for more details." >&5
34449 echo "$as_me: error: cannot compute sizeof (char)
34450 See \`config.log' for more details." >&2;}
34451 { (exit 77); exit 77; }; }
34453 ac_cv_sizeof_char=0
34457 cat >conftest.$ac_ext <<_ACEOF
34460 cat confdefs.h >>conftest.$ac_ext
34461 cat >>conftest.$ac_ext <<_ACEOF
34462 /* end confdefs.h. */
34463 $ac_includes_default
34464 typedef char ac__type_sizeof_;
34465 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34466 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34468 #include <stdlib.h>
34473 FILE *f = fopen ("conftest.val", "w");
34476 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34478 long int i = longval ();
34479 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34481 fprintf (f, "%ld\n", i);
34485 unsigned long int i = ulongval ();
34486 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34488 fprintf (f, "%lu\n", i);
34490 return ferror (f) || fclose (f) != 0;
34496 rm -f conftest$ac_exeext
34497 if { (ac_try="$ac_link"
34498 case "(($ac_try" in
34499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34500 *) ac_try_echo=$ac_try;;
34502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34503 (eval "$ac_link") 2>&5
34505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34506 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34507 { (case "(($ac_try" in
34508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34509 *) ac_try_echo=$ac_try;;
34511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34512 (eval "$ac_try") 2>&5
34514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34515 (exit $ac_status); }; }; then
34516 ac_cv_sizeof_char=`cat conftest.val`
34518 echo "$as_me: program exited with status $ac_status" >&5
34519 echo "$as_me: failed program was:" >&5
34520 sed 's/^/| /' conftest.$ac_ext >&5
34522 ( exit $ac_status )
34523 if test "$ac_cv_type_char" = yes; then
34524 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34525 See \`config.log' for more details." >&5
34526 echo "$as_me: error: cannot compute sizeof (char)
34527 See \`config.log' for more details." >&2;}
34528 { (exit 77); exit 77; }; }
34530 ac_cv_sizeof_char=0
34533 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34537 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
34538 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
34542 cat >>confdefs.h <<_ACEOF
34543 #define SIZEOF_CHAR $ac_cv_sizeof_char
34547 { echo "$as_me:$LINENO: checking for short int" >&5
34548 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
34549 if test "${ac_cv_type_short_int+set}" = set; then
34550 echo $ECHO_N "(cached) $ECHO_C" >&6
34552 cat >conftest.$ac_ext <<_ACEOF
34555 cat confdefs.h >>conftest.$ac_ext
34556 cat >>conftest.$ac_ext <<_ACEOF
34557 /* end confdefs.h. */
34558 $ac_includes_default
34559 typedef short int ac__type_new_;
34563 if ((ac__type_new_ *) 0)
34565 if (sizeof (ac__type_new_))
34571 rm -f conftest.$ac_objext
34572 if { (ac_try="$ac_compile"
34573 case "(($ac_try" in
34574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34575 *) ac_try_echo=$ac_try;;
34577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34578 (eval "$ac_compile") 2>conftest.er1
34580 grep -v '^ *+' conftest.er1 >conftest.err
34582 cat conftest.err >&5
34583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34584 (exit $ac_status); } && {
34585 test -z "$ac_c_werror_flag" ||
34586 test ! -s conftest.err
34587 } && test -s conftest.$ac_objext; then
34588 ac_cv_type_short_int=yes
34590 echo "$as_me: failed program was:" >&5
34591 sed 's/^/| /' conftest.$ac_ext >&5
34593 ac_cv_type_short_int=no
34596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34598 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
34599 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
34601 # The cast to long int works around a bug in the HP C Compiler
34602 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34603 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34604 # This bug is HP SR number 8606223364.
34605 { echo "$as_me:$LINENO: checking size of short int" >&5
34606 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
34607 if test "${ac_cv_sizeof_short_int+set}" = set; then
34608 echo $ECHO_N "(cached) $ECHO_C" >&6
34610 if test "$cross_compiling" = yes; then
34611 # Depending upon the size, compute the lo and hi bounds.
34612 cat >conftest.$ac_ext <<_ACEOF
34615 cat confdefs.h >>conftest.$ac_ext
34616 cat >>conftest.$ac_ext <<_ACEOF
34617 /* end confdefs.h. */
34618 $ac_includes_default
34619 typedef short int ac__type_sizeof_;
34623 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34630 rm -f conftest.$ac_objext
34631 if { (ac_try="$ac_compile"
34632 case "(($ac_try" in
34633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34634 *) ac_try_echo=$ac_try;;
34636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34637 (eval "$ac_compile") 2>conftest.er1
34639 grep -v '^ *+' conftest.er1 >conftest.err
34641 cat conftest.err >&5
34642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34643 (exit $ac_status); } && {
34644 test -z "$ac_c_werror_flag" ||
34645 test ! -s conftest.err
34646 } && test -s conftest.$ac_objext; then
34649 cat >conftest.$ac_ext <<_ACEOF
34652 cat confdefs.h >>conftest.$ac_ext
34653 cat >>conftest.$ac_ext <<_ACEOF
34654 /* end confdefs.h. */
34655 $ac_includes_default
34656 typedef short int ac__type_sizeof_;
34660 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34667 rm -f conftest.$ac_objext
34668 if { (ac_try="$ac_compile"
34669 case "(($ac_try" in
34670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34671 *) ac_try_echo=$ac_try;;
34673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34674 (eval "$ac_compile") 2>conftest.er1
34676 grep -v '^ *+' conftest.er1 >conftest.err
34678 cat conftest.err >&5
34679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34680 (exit $ac_status); } && {
34681 test -z "$ac_c_werror_flag" ||
34682 test ! -s conftest.err
34683 } && test -s conftest.$ac_objext; then
34684 ac_hi=$ac_mid; break
34686 echo "$as_me: failed program was:" >&5
34687 sed 's/^/| /' conftest.$ac_ext >&5
34689 ac_lo=`expr $ac_mid + 1`
34690 if test $ac_lo -le $ac_mid; then
34694 ac_mid=`expr 2 '*' $ac_mid + 1`
34697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34700 echo "$as_me: failed program was:" >&5
34701 sed 's/^/| /' conftest.$ac_ext >&5
34703 cat >conftest.$ac_ext <<_ACEOF
34706 cat confdefs.h >>conftest.$ac_ext
34707 cat >>conftest.$ac_ext <<_ACEOF
34708 /* end confdefs.h. */
34709 $ac_includes_default
34710 typedef short int ac__type_sizeof_;
34714 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34721 rm -f conftest.$ac_objext
34722 if { (ac_try="$ac_compile"
34723 case "(($ac_try" in
34724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34725 *) ac_try_echo=$ac_try;;
34727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34728 (eval "$ac_compile") 2>conftest.er1
34730 grep -v '^ *+' conftest.er1 >conftest.err
34732 cat conftest.err >&5
34733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34734 (exit $ac_status); } && {
34735 test -z "$ac_c_werror_flag" ||
34736 test ! -s conftest.err
34737 } && test -s conftest.$ac_objext; then
34740 cat >conftest.$ac_ext <<_ACEOF
34743 cat confdefs.h >>conftest.$ac_ext
34744 cat >>conftest.$ac_ext <<_ACEOF
34745 /* end confdefs.h. */
34746 $ac_includes_default
34747 typedef short int ac__type_sizeof_;
34751 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34758 rm -f conftest.$ac_objext
34759 if { (ac_try="$ac_compile"
34760 case "(($ac_try" in
34761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34762 *) ac_try_echo=$ac_try;;
34764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34765 (eval "$ac_compile") 2>conftest.er1
34767 grep -v '^ *+' conftest.er1 >conftest.err
34769 cat conftest.err >&5
34770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34771 (exit $ac_status); } && {
34772 test -z "$ac_c_werror_flag" ||
34773 test ! -s conftest.err
34774 } && test -s conftest.$ac_objext; then
34775 ac_lo=$ac_mid; break
34777 echo "$as_me: failed program was:" >&5
34778 sed 's/^/| /' conftest.$ac_ext >&5
34780 ac_hi=`expr '(' $ac_mid ')' - 1`
34781 if test $ac_mid -le $ac_hi; then
34785 ac_mid=`expr 2 '*' $ac_mid`
34788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34791 echo "$as_me: failed program was:" >&5
34792 sed 's/^/| /' conftest.$ac_ext >&5
34797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34801 # Binary search between lo and hi bounds.
34802 while test "x$ac_lo" != "x$ac_hi"; do
34803 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34804 cat >conftest.$ac_ext <<_ACEOF
34807 cat confdefs.h >>conftest.$ac_ext
34808 cat >>conftest.$ac_ext <<_ACEOF
34809 /* end confdefs.h. */
34810 $ac_includes_default
34811 typedef short int ac__type_sizeof_;
34815 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34822 rm -f conftest.$ac_objext
34823 if { (ac_try="$ac_compile"
34824 case "(($ac_try" in
34825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34826 *) ac_try_echo=$ac_try;;
34828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34829 (eval "$ac_compile") 2>conftest.er1
34831 grep -v '^ *+' conftest.er1 >conftest.err
34833 cat conftest.err >&5
34834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34835 (exit $ac_status); } && {
34836 test -z "$ac_c_werror_flag" ||
34837 test ! -s conftest.err
34838 } && test -s conftest.$ac_objext; then
34841 echo "$as_me: failed program was:" >&5
34842 sed 's/^/| /' conftest.$ac_ext >&5
34844 ac_lo=`expr '(' $ac_mid ')' + 1`
34847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34850 ?*) ac_cv_sizeof_short_int=$ac_lo;;
34851 '') if test "$ac_cv_type_short_int" = yes; then
34852 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
34853 See \`config.log' for more details." >&5
34854 echo "$as_me: error: cannot compute sizeof (short int)
34855 See \`config.log' for more details." >&2;}
34856 { (exit 77); exit 77; }; }
34858 ac_cv_sizeof_short_int=0
34862 cat >conftest.$ac_ext <<_ACEOF
34865 cat confdefs.h >>conftest.$ac_ext
34866 cat >>conftest.$ac_ext <<_ACEOF
34867 /* end confdefs.h. */
34868 $ac_includes_default
34869 typedef short int ac__type_sizeof_;
34870 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34871 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34873 #include <stdlib.h>
34878 FILE *f = fopen ("conftest.val", "w");
34881 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34883 long int i = longval ();
34884 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34886 fprintf (f, "%ld\n", i);
34890 unsigned long int i = ulongval ();
34891 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34893 fprintf (f, "%lu\n", i);
34895 return ferror (f) || fclose (f) != 0;
34901 rm -f conftest$ac_exeext
34902 if { (ac_try="$ac_link"
34903 case "(($ac_try" in
34904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34905 *) ac_try_echo=$ac_try;;
34907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34908 (eval "$ac_link") 2>&5
34910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34911 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34912 { (case "(($ac_try" in
34913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34914 *) ac_try_echo=$ac_try;;
34916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34917 (eval "$ac_try") 2>&5
34919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34920 (exit $ac_status); }; }; then
34921 ac_cv_sizeof_short_int=`cat conftest.val`
34923 echo "$as_me: program exited with status $ac_status" >&5
34924 echo "$as_me: failed program was:" >&5
34925 sed 's/^/| /' conftest.$ac_ext >&5
34927 ( exit $ac_status )
34928 if test "$ac_cv_type_short_int" = yes; then
34929 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
34930 See \`config.log' for more details." >&5
34931 echo "$as_me: error: cannot compute sizeof (short int)
34932 See \`config.log' for more details." >&2;}
34933 { (exit 77); exit 77; }; }
34935 ac_cv_sizeof_short_int=0
34938 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34942 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
34943 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
34947 cat >>confdefs.h <<_ACEOF
34948 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
34952 { echo "$as_me:$LINENO: checking for int" >&5
34953 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
34954 if test "${ac_cv_type_int+set}" = set; then
34955 echo $ECHO_N "(cached) $ECHO_C" >&6
34957 cat >conftest.$ac_ext <<_ACEOF
34960 cat confdefs.h >>conftest.$ac_ext
34961 cat >>conftest.$ac_ext <<_ACEOF
34962 /* end confdefs.h. */
34963 $ac_includes_default
34964 typedef int ac__type_new_;
34968 if ((ac__type_new_ *) 0)
34970 if (sizeof (ac__type_new_))
34976 rm -f conftest.$ac_objext
34977 if { (ac_try="$ac_compile"
34978 case "(($ac_try" in
34979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34980 *) ac_try_echo=$ac_try;;
34982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34983 (eval "$ac_compile") 2>conftest.er1
34985 grep -v '^ *+' conftest.er1 >conftest.err
34987 cat conftest.err >&5
34988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34989 (exit $ac_status); } && {
34990 test -z "$ac_c_werror_flag" ||
34991 test ! -s conftest.err
34992 } && test -s conftest.$ac_objext; then
34995 echo "$as_me: failed program was:" >&5
34996 sed 's/^/| /' conftest.$ac_ext >&5
35001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35003 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35004 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35006 # The cast to long int works around a bug in the HP C Compiler
35007 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35008 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35009 # This bug is HP SR number 8606223364.
35010 { echo "$as_me:$LINENO: checking size of int" >&5
35011 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35012 if test "${ac_cv_sizeof_int+set}" = set; then
35013 echo $ECHO_N "(cached) $ECHO_C" >&6
35015 if test "$cross_compiling" = yes; then
35016 # Depending upon the size, compute the lo and hi bounds.
35017 cat >conftest.$ac_ext <<_ACEOF
35020 cat confdefs.h >>conftest.$ac_ext
35021 cat >>conftest.$ac_ext <<_ACEOF
35022 /* end confdefs.h. */
35023 $ac_includes_default
35024 typedef int ac__type_sizeof_;
35028 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35035 rm -f conftest.$ac_objext
35036 if { (ac_try="$ac_compile"
35037 case "(($ac_try" in
35038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35039 *) ac_try_echo=$ac_try;;
35041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35042 (eval "$ac_compile") 2>conftest.er1
35044 grep -v '^ *+' conftest.er1 >conftest.err
35046 cat conftest.err >&5
35047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35048 (exit $ac_status); } && {
35049 test -z "$ac_c_werror_flag" ||
35050 test ! -s conftest.err
35051 } && test -s conftest.$ac_objext; then
35054 cat >conftest.$ac_ext <<_ACEOF
35057 cat confdefs.h >>conftest.$ac_ext
35058 cat >>conftest.$ac_ext <<_ACEOF
35059 /* end confdefs.h. */
35060 $ac_includes_default
35061 typedef int ac__type_sizeof_;
35065 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35072 rm -f conftest.$ac_objext
35073 if { (ac_try="$ac_compile"
35074 case "(($ac_try" in
35075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35076 *) ac_try_echo=$ac_try;;
35078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35079 (eval "$ac_compile") 2>conftest.er1
35081 grep -v '^ *+' conftest.er1 >conftest.err
35083 cat conftest.err >&5
35084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35085 (exit $ac_status); } && {
35086 test -z "$ac_c_werror_flag" ||
35087 test ! -s conftest.err
35088 } && test -s conftest.$ac_objext; then
35089 ac_hi=$ac_mid; break
35091 echo "$as_me: failed program was:" >&5
35092 sed 's/^/| /' conftest.$ac_ext >&5
35094 ac_lo=`expr $ac_mid + 1`
35095 if test $ac_lo -le $ac_mid; then
35099 ac_mid=`expr 2 '*' $ac_mid + 1`
35102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35105 echo "$as_me: failed program was:" >&5
35106 sed 's/^/| /' conftest.$ac_ext >&5
35108 cat >conftest.$ac_ext <<_ACEOF
35111 cat confdefs.h >>conftest.$ac_ext
35112 cat >>conftest.$ac_ext <<_ACEOF
35113 /* end confdefs.h. */
35114 $ac_includes_default
35115 typedef int ac__type_sizeof_;
35119 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35126 rm -f conftest.$ac_objext
35127 if { (ac_try="$ac_compile"
35128 case "(($ac_try" in
35129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35130 *) ac_try_echo=$ac_try;;
35132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35133 (eval "$ac_compile") 2>conftest.er1
35135 grep -v '^ *+' conftest.er1 >conftest.err
35137 cat conftest.err >&5
35138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35139 (exit $ac_status); } && {
35140 test -z "$ac_c_werror_flag" ||
35141 test ! -s conftest.err
35142 } && test -s conftest.$ac_objext; then
35145 cat >conftest.$ac_ext <<_ACEOF
35148 cat confdefs.h >>conftest.$ac_ext
35149 cat >>conftest.$ac_ext <<_ACEOF
35150 /* end confdefs.h. */
35151 $ac_includes_default
35152 typedef int ac__type_sizeof_;
35156 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35163 rm -f conftest.$ac_objext
35164 if { (ac_try="$ac_compile"
35165 case "(($ac_try" in
35166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35167 *) ac_try_echo=$ac_try;;
35169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35170 (eval "$ac_compile") 2>conftest.er1
35172 grep -v '^ *+' conftest.er1 >conftest.err
35174 cat conftest.err >&5
35175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35176 (exit $ac_status); } && {
35177 test -z "$ac_c_werror_flag" ||
35178 test ! -s conftest.err
35179 } && test -s conftest.$ac_objext; then
35180 ac_lo=$ac_mid; break
35182 echo "$as_me: failed program was:" >&5
35183 sed 's/^/| /' conftest.$ac_ext >&5
35185 ac_hi=`expr '(' $ac_mid ')' - 1`
35186 if test $ac_mid -le $ac_hi; then
35190 ac_mid=`expr 2 '*' $ac_mid`
35193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35196 echo "$as_me: failed program was:" >&5
35197 sed 's/^/| /' conftest.$ac_ext >&5
35202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35206 # Binary search between lo and hi bounds.
35207 while test "x$ac_lo" != "x$ac_hi"; do
35208 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35209 cat >conftest.$ac_ext <<_ACEOF
35212 cat confdefs.h >>conftest.$ac_ext
35213 cat >>conftest.$ac_ext <<_ACEOF
35214 /* end confdefs.h. */
35215 $ac_includes_default
35216 typedef int ac__type_sizeof_;
35220 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35227 rm -f conftest.$ac_objext
35228 if { (ac_try="$ac_compile"
35229 case "(($ac_try" in
35230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35231 *) ac_try_echo=$ac_try;;
35233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35234 (eval "$ac_compile") 2>conftest.er1
35236 grep -v '^ *+' conftest.er1 >conftest.err
35238 cat conftest.err >&5
35239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35240 (exit $ac_status); } && {
35241 test -z "$ac_c_werror_flag" ||
35242 test ! -s conftest.err
35243 } && test -s conftest.$ac_objext; then
35246 echo "$as_me: failed program was:" >&5
35247 sed 's/^/| /' conftest.$ac_ext >&5
35249 ac_lo=`expr '(' $ac_mid ')' + 1`
35252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35255 ?*) ac_cv_sizeof_int=$ac_lo;;
35256 '') if test "$ac_cv_type_int" = yes; then
35257 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35258 See \`config.log' for more details." >&5
35259 echo "$as_me: error: cannot compute sizeof (int)
35260 See \`config.log' for more details." >&2;}
35261 { (exit 77); exit 77; }; }
35267 cat >conftest.$ac_ext <<_ACEOF
35270 cat confdefs.h >>conftest.$ac_ext
35271 cat >>conftest.$ac_ext <<_ACEOF
35272 /* end confdefs.h. */
35273 $ac_includes_default
35274 typedef int ac__type_sizeof_;
35275 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35276 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35278 #include <stdlib.h>
35283 FILE *f = fopen ("conftest.val", "w");
35286 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35288 long int i = longval ();
35289 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35291 fprintf (f, "%ld\n", i);
35295 unsigned long int i = ulongval ();
35296 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35298 fprintf (f, "%lu\n", i);
35300 return ferror (f) || fclose (f) != 0;
35306 rm -f conftest$ac_exeext
35307 if { (ac_try="$ac_link"
35308 case "(($ac_try" in
35309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35310 *) ac_try_echo=$ac_try;;
35312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35313 (eval "$ac_link") 2>&5
35315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35316 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35317 { (case "(($ac_try" in
35318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35319 *) ac_try_echo=$ac_try;;
35321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35322 (eval "$ac_try") 2>&5
35324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35325 (exit $ac_status); }; }; then
35326 ac_cv_sizeof_int=`cat conftest.val`
35328 echo "$as_me: program exited with status $ac_status" >&5
35329 echo "$as_me: failed program was:" >&5
35330 sed 's/^/| /' conftest.$ac_ext >&5
35332 ( exit $ac_status )
35333 if test "$ac_cv_type_int" = yes; then
35334 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35335 See \`config.log' for more details." >&5
35336 echo "$as_me: error: cannot compute sizeof (int)
35337 See \`config.log' for more details." >&2;}
35338 { (exit 77); exit 77; }; }
35343 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35347 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
35348 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
35352 cat >>confdefs.h <<_ACEOF
35353 #define SIZEOF_INT $ac_cv_sizeof_int
35357 { echo "$as_me:$LINENO: checking for long int" >&5
35358 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
35359 if test "${ac_cv_type_long_int+set}" = set; then
35360 echo $ECHO_N "(cached) $ECHO_C" >&6
35362 cat >conftest.$ac_ext <<_ACEOF
35365 cat confdefs.h >>conftest.$ac_ext
35366 cat >>conftest.$ac_ext <<_ACEOF
35367 /* end confdefs.h. */
35368 $ac_includes_default
35369 typedef long int ac__type_new_;
35373 if ((ac__type_new_ *) 0)
35375 if (sizeof (ac__type_new_))
35381 rm -f conftest.$ac_objext
35382 if { (ac_try="$ac_compile"
35383 case "(($ac_try" in
35384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35385 *) ac_try_echo=$ac_try;;
35387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35388 (eval "$ac_compile") 2>conftest.er1
35390 grep -v '^ *+' conftest.er1 >conftest.err
35392 cat conftest.err >&5
35393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35394 (exit $ac_status); } && {
35395 test -z "$ac_c_werror_flag" ||
35396 test ! -s conftest.err
35397 } && test -s conftest.$ac_objext; then
35398 ac_cv_type_long_int=yes
35400 echo "$as_me: failed program was:" >&5
35401 sed 's/^/| /' conftest.$ac_ext >&5
35403 ac_cv_type_long_int=no
35406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35408 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
35409 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
35411 # The cast to long int works around a bug in the HP C Compiler
35412 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35413 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35414 # This bug is HP SR number 8606223364.
35415 { echo "$as_me:$LINENO: checking size of long int" >&5
35416 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
35417 if test "${ac_cv_sizeof_long_int+set}" = set; then
35418 echo $ECHO_N "(cached) $ECHO_C" >&6
35420 if test "$cross_compiling" = yes; then
35421 # Depending upon the size, compute the lo and hi bounds.
35422 cat >conftest.$ac_ext <<_ACEOF
35425 cat confdefs.h >>conftest.$ac_ext
35426 cat >>conftest.$ac_ext <<_ACEOF
35427 /* end confdefs.h. */
35428 $ac_includes_default
35429 typedef long int ac__type_sizeof_;
35433 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35440 rm -f conftest.$ac_objext
35441 if { (ac_try="$ac_compile"
35442 case "(($ac_try" in
35443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35444 *) ac_try_echo=$ac_try;;
35446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35447 (eval "$ac_compile") 2>conftest.er1
35449 grep -v '^ *+' conftest.er1 >conftest.err
35451 cat conftest.err >&5
35452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35453 (exit $ac_status); } && {
35454 test -z "$ac_c_werror_flag" ||
35455 test ! -s conftest.err
35456 } && test -s conftest.$ac_objext; then
35459 cat >conftest.$ac_ext <<_ACEOF
35462 cat confdefs.h >>conftest.$ac_ext
35463 cat >>conftest.$ac_ext <<_ACEOF
35464 /* end confdefs.h. */
35465 $ac_includes_default
35466 typedef long int ac__type_sizeof_;
35470 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35477 rm -f conftest.$ac_objext
35478 if { (ac_try="$ac_compile"
35479 case "(($ac_try" in
35480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35481 *) ac_try_echo=$ac_try;;
35483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35484 (eval "$ac_compile") 2>conftest.er1
35486 grep -v '^ *+' conftest.er1 >conftest.err
35488 cat conftest.err >&5
35489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35490 (exit $ac_status); } && {
35491 test -z "$ac_c_werror_flag" ||
35492 test ! -s conftest.err
35493 } && test -s conftest.$ac_objext; then
35494 ac_hi=$ac_mid; break
35496 echo "$as_me: failed program was:" >&5
35497 sed 's/^/| /' conftest.$ac_ext >&5
35499 ac_lo=`expr $ac_mid + 1`
35500 if test $ac_lo -le $ac_mid; then
35504 ac_mid=`expr 2 '*' $ac_mid + 1`
35507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35510 echo "$as_me: failed program was:" >&5
35511 sed 's/^/| /' conftest.$ac_ext >&5
35513 cat >conftest.$ac_ext <<_ACEOF
35516 cat confdefs.h >>conftest.$ac_ext
35517 cat >>conftest.$ac_ext <<_ACEOF
35518 /* end confdefs.h. */
35519 $ac_includes_default
35520 typedef long int ac__type_sizeof_;
35524 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35531 rm -f conftest.$ac_objext
35532 if { (ac_try="$ac_compile"
35533 case "(($ac_try" in
35534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35535 *) ac_try_echo=$ac_try;;
35537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35538 (eval "$ac_compile") 2>conftest.er1
35540 grep -v '^ *+' conftest.er1 >conftest.err
35542 cat conftest.err >&5
35543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35544 (exit $ac_status); } && {
35545 test -z "$ac_c_werror_flag" ||
35546 test ! -s conftest.err
35547 } && test -s conftest.$ac_objext; then
35550 cat >conftest.$ac_ext <<_ACEOF
35553 cat confdefs.h >>conftest.$ac_ext
35554 cat >>conftest.$ac_ext <<_ACEOF
35555 /* end confdefs.h. */
35556 $ac_includes_default
35557 typedef long int ac__type_sizeof_;
35561 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35568 rm -f conftest.$ac_objext
35569 if { (ac_try="$ac_compile"
35570 case "(($ac_try" in
35571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35572 *) ac_try_echo=$ac_try;;
35574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35575 (eval "$ac_compile") 2>conftest.er1
35577 grep -v '^ *+' conftest.er1 >conftest.err
35579 cat conftest.err >&5
35580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35581 (exit $ac_status); } && {
35582 test -z "$ac_c_werror_flag" ||
35583 test ! -s conftest.err
35584 } && test -s conftest.$ac_objext; then
35585 ac_lo=$ac_mid; break
35587 echo "$as_me: failed program was:" >&5
35588 sed 's/^/| /' conftest.$ac_ext >&5
35590 ac_hi=`expr '(' $ac_mid ')' - 1`
35591 if test $ac_mid -le $ac_hi; then
35595 ac_mid=`expr 2 '*' $ac_mid`
35598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35601 echo "$as_me: failed program was:" >&5
35602 sed 's/^/| /' conftest.$ac_ext >&5
35607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35611 # Binary search between lo and hi bounds.
35612 while test "x$ac_lo" != "x$ac_hi"; do
35613 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35614 cat >conftest.$ac_ext <<_ACEOF
35617 cat confdefs.h >>conftest.$ac_ext
35618 cat >>conftest.$ac_ext <<_ACEOF
35619 /* end confdefs.h. */
35620 $ac_includes_default
35621 typedef long int ac__type_sizeof_;
35625 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35632 rm -f conftest.$ac_objext
35633 if { (ac_try="$ac_compile"
35634 case "(($ac_try" in
35635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35636 *) ac_try_echo=$ac_try;;
35638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35639 (eval "$ac_compile") 2>conftest.er1
35641 grep -v '^ *+' conftest.er1 >conftest.err
35643 cat conftest.err >&5
35644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35645 (exit $ac_status); } && {
35646 test -z "$ac_c_werror_flag" ||
35647 test ! -s conftest.err
35648 } && test -s conftest.$ac_objext; then
35651 echo "$as_me: failed program was:" >&5
35652 sed 's/^/| /' conftest.$ac_ext >&5
35654 ac_lo=`expr '(' $ac_mid ')' + 1`
35657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35660 ?*) ac_cv_sizeof_long_int=$ac_lo;;
35661 '') if test "$ac_cv_type_long_int" = yes; then
35662 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
35663 See \`config.log' for more details." >&5
35664 echo "$as_me: error: cannot compute sizeof (long int)
35665 See \`config.log' for more details." >&2;}
35666 { (exit 77); exit 77; }; }
35668 ac_cv_sizeof_long_int=0
35672 cat >conftest.$ac_ext <<_ACEOF
35675 cat confdefs.h >>conftest.$ac_ext
35676 cat >>conftest.$ac_ext <<_ACEOF
35677 /* end confdefs.h. */
35678 $ac_includes_default
35679 typedef long int ac__type_sizeof_;
35680 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35681 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35683 #include <stdlib.h>
35688 FILE *f = fopen ("conftest.val", "w");
35691 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35693 long int i = longval ();
35694 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35696 fprintf (f, "%ld\n", i);
35700 unsigned long int i = ulongval ();
35701 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35703 fprintf (f, "%lu\n", i);
35705 return ferror (f) || fclose (f) != 0;
35711 rm -f conftest$ac_exeext
35712 if { (ac_try="$ac_link"
35713 case "(($ac_try" in
35714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35715 *) ac_try_echo=$ac_try;;
35717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35718 (eval "$ac_link") 2>&5
35720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35721 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35722 { (case "(($ac_try" in
35723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35724 *) ac_try_echo=$ac_try;;
35726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35727 (eval "$ac_try") 2>&5
35729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35730 (exit $ac_status); }; }; then
35731 ac_cv_sizeof_long_int=`cat conftest.val`
35733 echo "$as_me: program exited with status $ac_status" >&5
35734 echo "$as_me: failed program was:" >&5
35735 sed 's/^/| /' conftest.$ac_ext >&5
35737 ( exit $ac_status )
35738 if test "$ac_cv_type_long_int" = yes; then
35739 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
35740 See \`config.log' for more details." >&5
35741 echo "$as_me: error: cannot compute sizeof (long int)
35742 See \`config.log' for more details." >&2;}
35743 { (exit 77); exit 77; }; }
35745 ac_cv_sizeof_long_int=0
35748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35752 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
35753 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
35757 cat >>confdefs.h <<_ACEOF
35758 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
35762 { echo "$as_me:$LINENO: checking for long long int" >&5
35763 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
35764 if test "${ac_cv_type_long_long_int+set}" = set; then
35765 echo $ECHO_N "(cached) $ECHO_C" >&6
35767 cat >conftest.$ac_ext <<_ACEOF
35770 cat confdefs.h >>conftest.$ac_ext
35771 cat >>conftest.$ac_ext <<_ACEOF
35772 /* end confdefs.h. */
35773 $ac_includes_default
35774 typedef long long int ac__type_new_;
35778 if ((ac__type_new_ *) 0)
35780 if (sizeof (ac__type_new_))
35786 rm -f conftest.$ac_objext
35787 if { (ac_try="$ac_compile"
35788 case "(($ac_try" in
35789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35790 *) ac_try_echo=$ac_try;;
35792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35793 (eval "$ac_compile") 2>conftest.er1
35795 grep -v '^ *+' conftest.er1 >conftest.err
35797 cat conftest.err >&5
35798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35799 (exit $ac_status); } && {
35800 test -z "$ac_c_werror_flag" ||
35801 test ! -s conftest.err
35802 } && test -s conftest.$ac_objext; then
35803 ac_cv_type_long_long_int=yes
35805 echo "$as_me: failed program was:" >&5
35806 sed 's/^/| /' conftest.$ac_ext >&5
35808 ac_cv_type_long_long_int=no
35811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35813 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
35814 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
35816 # The cast to long int works around a bug in the HP C Compiler
35817 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35818 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35819 # This bug is HP SR number 8606223364.
35820 { echo "$as_me:$LINENO: checking size of long long int" >&5
35821 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
35822 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
35823 echo $ECHO_N "(cached) $ECHO_C" >&6
35825 if test "$cross_compiling" = yes; then
35826 # Depending upon the size, compute the lo and hi bounds.
35827 cat >conftest.$ac_ext <<_ACEOF
35830 cat confdefs.h >>conftest.$ac_ext
35831 cat >>conftest.$ac_ext <<_ACEOF
35832 /* end confdefs.h. */
35833 $ac_includes_default
35834 typedef long long int ac__type_sizeof_;
35838 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35845 rm -f conftest.$ac_objext
35846 if { (ac_try="$ac_compile"
35847 case "(($ac_try" in
35848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35849 *) ac_try_echo=$ac_try;;
35851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35852 (eval "$ac_compile") 2>conftest.er1
35854 grep -v '^ *+' conftest.er1 >conftest.err
35856 cat conftest.err >&5
35857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35858 (exit $ac_status); } && {
35859 test -z "$ac_c_werror_flag" ||
35860 test ! -s conftest.err
35861 } && test -s conftest.$ac_objext; then
35864 cat >conftest.$ac_ext <<_ACEOF
35867 cat confdefs.h >>conftest.$ac_ext
35868 cat >>conftest.$ac_ext <<_ACEOF
35869 /* end confdefs.h. */
35870 $ac_includes_default
35871 typedef long long int ac__type_sizeof_;
35875 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35882 rm -f conftest.$ac_objext
35883 if { (ac_try="$ac_compile"
35884 case "(($ac_try" in
35885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35886 *) ac_try_echo=$ac_try;;
35888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35889 (eval "$ac_compile") 2>conftest.er1
35891 grep -v '^ *+' conftest.er1 >conftest.err
35893 cat conftest.err >&5
35894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35895 (exit $ac_status); } && {
35896 test -z "$ac_c_werror_flag" ||
35897 test ! -s conftest.err
35898 } && test -s conftest.$ac_objext; then
35899 ac_hi=$ac_mid; break
35901 echo "$as_me: failed program was:" >&5
35902 sed 's/^/| /' conftest.$ac_ext >&5
35904 ac_lo=`expr $ac_mid + 1`
35905 if test $ac_lo -le $ac_mid; then
35909 ac_mid=`expr 2 '*' $ac_mid + 1`
35912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35915 echo "$as_me: failed program was:" >&5
35916 sed 's/^/| /' conftest.$ac_ext >&5
35918 cat >conftest.$ac_ext <<_ACEOF
35921 cat confdefs.h >>conftest.$ac_ext
35922 cat >>conftest.$ac_ext <<_ACEOF
35923 /* end confdefs.h. */
35924 $ac_includes_default
35925 typedef long long int ac__type_sizeof_;
35929 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35936 rm -f conftest.$ac_objext
35937 if { (ac_try="$ac_compile"
35938 case "(($ac_try" in
35939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35940 *) ac_try_echo=$ac_try;;
35942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35943 (eval "$ac_compile") 2>conftest.er1
35945 grep -v '^ *+' conftest.er1 >conftest.err
35947 cat conftest.err >&5
35948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35949 (exit $ac_status); } && {
35950 test -z "$ac_c_werror_flag" ||
35951 test ! -s conftest.err
35952 } && test -s conftest.$ac_objext; then
35955 cat >conftest.$ac_ext <<_ACEOF
35958 cat confdefs.h >>conftest.$ac_ext
35959 cat >>conftest.$ac_ext <<_ACEOF
35960 /* end confdefs.h. */
35961 $ac_includes_default
35962 typedef long long int ac__type_sizeof_;
35966 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35973 rm -f conftest.$ac_objext
35974 if { (ac_try="$ac_compile"
35975 case "(($ac_try" in
35976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35977 *) ac_try_echo=$ac_try;;
35979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35980 (eval "$ac_compile") 2>conftest.er1
35982 grep -v '^ *+' conftest.er1 >conftest.err
35984 cat conftest.err >&5
35985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35986 (exit $ac_status); } && {
35987 test -z "$ac_c_werror_flag" ||
35988 test ! -s conftest.err
35989 } && test -s conftest.$ac_objext; then
35990 ac_lo=$ac_mid; break
35992 echo "$as_me: failed program was:" >&5
35993 sed 's/^/| /' conftest.$ac_ext >&5
35995 ac_hi=`expr '(' $ac_mid ')' - 1`
35996 if test $ac_mid -le $ac_hi; then
36000 ac_mid=`expr 2 '*' $ac_mid`
36003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36006 echo "$as_me: failed program was:" >&5
36007 sed 's/^/| /' conftest.$ac_ext >&5
36012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36016 # Binary search between lo and hi bounds.
36017 while test "x$ac_lo" != "x$ac_hi"; do
36018 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36019 cat >conftest.$ac_ext <<_ACEOF
36022 cat confdefs.h >>conftest.$ac_ext
36023 cat >>conftest.$ac_ext <<_ACEOF
36024 /* end confdefs.h. */
36025 $ac_includes_default
36026 typedef long long int ac__type_sizeof_;
36030 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36037 rm -f conftest.$ac_objext
36038 if { (ac_try="$ac_compile"
36039 case "(($ac_try" in
36040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36041 *) ac_try_echo=$ac_try;;
36043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36044 (eval "$ac_compile") 2>conftest.er1
36046 grep -v '^ *+' conftest.er1 >conftest.err
36048 cat conftest.err >&5
36049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36050 (exit $ac_status); } && {
36051 test -z "$ac_c_werror_flag" ||
36052 test ! -s conftest.err
36053 } && test -s conftest.$ac_objext; then
36056 echo "$as_me: failed program was:" >&5
36057 sed 's/^/| /' conftest.$ac_ext >&5
36059 ac_lo=`expr '(' $ac_mid ')' + 1`
36062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36065 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
36066 '') if test "$ac_cv_type_long_long_int" = yes; then
36067 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36068 See \`config.log' for more details." >&5
36069 echo "$as_me: error: cannot compute sizeof (long long int)
36070 See \`config.log' for more details." >&2;}
36071 { (exit 77); exit 77; }; }
36073 ac_cv_sizeof_long_long_int=0
36077 cat >conftest.$ac_ext <<_ACEOF
36080 cat confdefs.h >>conftest.$ac_ext
36081 cat >>conftest.$ac_ext <<_ACEOF
36082 /* end confdefs.h. */
36083 $ac_includes_default
36084 typedef long long int ac__type_sizeof_;
36085 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36086 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36088 #include <stdlib.h>
36093 FILE *f = fopen ("conftest.val", "w");
36096 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36098 long int i = longval ();
36099 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36101 fprintf (f, "%ld\n", i);
36105 unsigned long int i = ulongval ();
36106 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36108 fprintf (f, "%lu\n", i);
36110 return ferror (f) || fclose (f) != 0;
36116 rm -f conftest$ac_exeext
36117 if { (ac_try="$ac_link"
36118 case "(($ac_try" in
36119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36120 *) ac_try_echo=$ac_try;;
36122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36123 (eval "$ac_link") 2>&5
36125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36126 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36127 { (case "(($ac_try" in
36128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36129 *) ac_try_echo=$ac_try;;
36131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36132 (eval "$ac_try") 2>&5
36134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36135 (exit $ac_status); }; }; then
36136 ac_cv_sizeof_long_long_int=`cat conftest.val`
36138 echo "$as_me: program exited with status $ac_status" >&5
36139 echo "$as_me: failed program was:" >&5
36140 sed 's/^/| /' conftest.$ac_ext >&5
36142 ( exit $ac_status )
36143 if test "$ac_cv_type_long_long_int" = yes; then
36144 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36145 See \`config.log' for more details." >&5
36146 echo "$as_me: error: cannot compute sizeof (long long int)
36147 See \`config.log' for more details." >&2;}
36148 { (exit 77); exit 77; }; }
36150 ac_cv_sizeof_long_long_int=0
36153 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36157 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
36158 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
36162 cat >>confdefs.h <<_ACEOF
36163 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
36167 { echo "$as_me:$LINENO: checking for int *" >&5
36168 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
36169 if test "${ac_cv_type_int_p+set}" = set; then
36170 echo $ECHO_N "(cached) $ECHO_C" >&6
36172 cat >conftest.$ac_ext <<_ACEOF
36175 cat confdefs.h >>conftest.$ac_ext
36176 cat >>conftest.$ac_ext <<_ACEOF
36177 /* end confdefs.h. */
36178 $ac_includes_default
36179 typedef int * ac__type_new_;
36183 if ((ac__type_new_ *) 0)
36185 if (sizeof (ac__type_new_))
36191 rm -f conftest.$ac_objext
36192 if { (ac_try="$ac_compile"
36193 case "(($ac_try" in
36194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36195 *) ac_try_echo=$ac_try;;
36197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36198 (eval "$ac_compile") 2>conftest.er1
36200 grep -v '^ *+' conftest.er1 >conftest.err
36202 cat conftest.err >&5
36203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36204 (exit $ac_status); } && {
36205 test -z "$ac_c_werror_flag" ||
36206 test ! -s conftest.err
36207 } && test -s conftest.$ac_objext; then
36208 ac_cv_type_int_p=yes
36210 echo "$as_me: failed program was:" >&5
36211 sed 's/^/| /' conftest.$ac_ext >&5
36213 ac_cv_type_int_p=no
36216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36218 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
36219 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
36221 # The cast to long int works around a bug in the HP C Compiler
36222 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36223 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36224 # This bug is HP SR number 8606223364.
36225 { echo "$as_me:$LINENO: checking size of int *" >&5
36226 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
36227 if test "${ac_cv_sizeof_int_p+set}" = set; then
36228 echo $ECHO_N "(cached) $ECHO_C" >&6
36230 if test "$cross_compiling" = yes; then
36231 # Depending upon the size, compute the lo and hi bounds.
36232 cat >conftest.$ac_ext <<_ACEOF
36235 cat confdefs.h >>conftest.$ac_ext
36236 cat >>conftest.$ac_ext <<_ACEOF
36237 /* end confdefs.h. */
36238 $ac_includes_default
36239 typedef int * ac__type_sizeof_;
36243 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36250 rm -f conftest.$ac_objext
36251 if { (ac_try="$ac_compile"
36252 case "(($ac_try" in
36253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36254 *) ac_try_echo=$ac_try;;
36256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36257 (eval "$ac_compile") 2>conftest.er1
36259 grep -v '^ *+' conftest.er1 >conftest.err
36261 cat conftest.err >&5
36262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36263 (exit $ac_status); } && {
36264 test -z "$ac_c_werror_flag" ||
36265 test ! -s conftest.err
36266 } && test -s conftest.$ac_objext; then
36269 cat >conftest.$ac_ext <<_ACEOF
36272 cat confdefs.h >>conftest.$ac_ext
36273 cat >>conftest.$ac_ext <<_ACEOF
36274 /* end confdefs.h. */
36275 $ac_includes_default
36276 typedef int * ac__type_sizeof_;
36280 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36287 rm -f conftest.$ac_objext
36288 if { (ac_try="$ac_compile"
36289 case "(($ac_try" in
36290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36291 *) ac_try_echo=$ac_try;;
36293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36294 (eval "$ac_compile") 2>conftest.er1
36296 grep -v '^ *+' conftest.er1 >conftest.err
36298 cat conftest.err >&5
36299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36300 (exit $ac_status); } && {
36301 test -z "$ac_c_werror_flag" ||
36302 test ! -s conftest.err
36303 } && test -s conftest.$ac_objext; then
36304 ac_hi=$ac_mid; break
36306 echo "$as_me: failed program was:" >&5
36307 sed 's/^/| /' conftest.$ac_ext >&5
36309 ac_lo=`expr $ac_mid + 1`
36310 if test $ac_lo -le $ac_mid; then
36314 ac_mid=`expr 2 '*' $ac_mid + 1`
36317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36320 echo "$as_me: failed program was:" >&5
36321 sed 's/^/| /' conftest.$ac_ext >&5
36323 cat >conftest.$ac_ext <<_ACEOF
36326 cat confdefs.h >>conftest.$ac_ext
36327 cat >>conftest.$ac_ext <<_ACEOF
36328 /* end confdefs.h. */
36329 $ac_includes_default
36330 typedef int * ac__type_sizeof_;
36334 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36341 rm -f conftest.$ac_objext
36342 if { (ac_try="$ac_compile"
36343 case "(($ac_try" in
36344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36345 *) ac_try_echo=$ac_try;;
36347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36348 (eval "$ac_compile") 2>conftest.er1
36350 grep -v '^ *+' conftest.er1 >conftest.err
36352 cat conftest.err >&5
36353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36354 (exit $ac_status); } && {
36355 test -z "$ac_c_werror_flag" ||
36356 test ! -s conftest.err
36357 } && test -s conftest.$ac_objext; then
36360 cat >conftest.$ac_ext <<_ACEOF
36363 cat confdefs.h >>conftest.$ac_ext
36364 cat >>conftest.$ac_ext <<_ACEOF
36365 /* end confdefs.h. */
36366 $ac_includes_default
36367 typedef int * ac__type_sizeof_;
36371 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36378 rm -f conftest.$ac_objext
36379 if { (ac_try="$ac_compile"
36380 case "(($ac_try" in
36381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36382 *) ac_try_echo=$ac_try;;
36384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36385 (eval "$ac_compile") 2>conftest.er1
36387 grep -v '^ *+' conftest.er1 >conftest.err
36389 cat conftest.err >&5
36390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36391 (exit $ac_status); } && {
36392 test -z "$ac_c_werror_flag" ||
36393 test ! -s conftest.err
36394 } && test -s conftest.$ac_objext; then
36395 ac_lo=$ac_mid; break
36397 echo "$as_me: failed program was:" >&5
36398 sed 's/^/| /' conftest.$ac_ext >&5
36400 ac_hi=`expr '(' $ac_mid ')' - 1`
36401 if test $ac_mid -le $ac_hi; then
36405 ac_mid=`expr 2 '*' $ac_mid`
36408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36411 echo "$as_me: failed program was:" >&5
36412 sed 's/^/| /' conftest.$ac_ext >&5
36417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36421 # Binary search between lo and hi bounds.
36422 while test "x$ac_lo" != "x$ac_hi"; do
36423 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36424 cat >conftest.$ac_ext <<_ACEOF
36427 cat confdefs.h >>conftest.$ac_ext
36428 cat >>conftest.$ac_ext <<_ACEOF
36429 /* end confdefs.h. */
36430 $ac_includes_default
36431 typedef int * ac__type_sizeof_;
36435 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36442 rm -f conftest.$ac_objext
36443 if { (ac_try="$ac_compile"
36444 case "(($ac_try" in
36445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36446 *) ac_try_echo=$ac_try;;
36448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36449 (eval "$ac_compile") 2>conftest.er1
36451 grep -v '^ *+' conftest.er1 >conftest.err
36453 cat conftest.err >&5
36454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36455 (exit $ac_status); } && {
36456 test -z "$ac_c_werror_flag" ||
36457 test ! -s conftest.err
36458 } && test -s conftest.$ac_objext; then
36461 echo "$as_me: failed program was:" >&5
36462 sed 's/^/| /' conftest.$ac_ext >&5
36464 ac_lo=`expr '(' $ac_mid ')' + 1`
36467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36470 ?*) ac_cv_sizeof_int_p=$ac_lo;;
36471 '') if test "$ac_cv_type_int_p" = yes; then
36472 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36473 See \`config.log' for more details." >&5
36474 echo "$as_me: error: cannot compute sizeof (int *)
36475 See \`config.log' for more details." >&2;}
36476 { (exit 77); exit 77; }; }
36478 ac_cv_sizeof_int_p=0
36482 cat >conftest.$ac_ext <<_ACEOF
36485 cat confdefs.h >>conftest.$ac_ext
36486 cat >>conftest.$ac_ext <<_ACEOF
36487 /* end confdefs.h. */
36488 $ac_includes_default
36489 typedef int * ac__type_sizeof_;
36490 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36491 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36493 #include <stdlib.h>
36498 FILE *f = fopen ("conftest.val", "w");
36501 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36503 long int i = longval ();
36504 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36506 fprintf (f, "%ld\n", i);
36510 unsigned long int i = ulongval ();
36511 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36513 fprintf (f, "%lu\n", i);
36515 return ferror (f) || fclose (f) != 0;
36521 rm -f conftest$ac_exeext
36522 if { (ac_try="$ac_link"
36523 case "(($ac_try" in
36524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36525 *) ac_try_echo=$ac_try;;
36527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36528 (eval "$ac_link") 2>&5
36530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36531 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36532 { (case "(($ac_try" in
36533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36534 *) ac_try_echo=$ac_try;;
36536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36537 (eval "$ac_try") 2>&5
36539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36540 (exit $ac_status); }; }; then
36541 ac_cv_sizeof_int_p=`cat conftest.val`
36543 echo "$as_me: program exited with status $ac_status" >&5
36544 echo "$as_me: failed program was:" >&5
36545 sed 's/^/| /' conftest.$ac_ext >&5
36547 ( exit $ac_status )
36548 if test "$ac_cv_type_int_p" = yes; then
36549 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36550 See \`config.log' for more details." >&5
36551 echo "$as_me: error: cannot compute sizeof (int *)
36552 See \`config.log' for more details." >&2;}
36553 { (exit 77); exit 77; }; }
36555 ac_cv_sizeof_int_p=0
36558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36562 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
36563 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
36567 cat >>confdefs.h <<_ACEOF
36568 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
36573 { echo "$as_me:$LINENO: checking for u_int type" >&5
36574 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
36575 if test "${ac_cv_have_u_int+set}" = set; then
36576 echo $ECHO_N "(cached) $ECHO_C" >&6
36579 cat >conftest.$ac_ext <<_ACEOF
36582 cat confdefs.h >>conftest.$ac_ext
36583 cat >>conftest.$ac_ext <<_ACEOF
36584 /* end confdefs.h. */
36586 #include <sys/types.h>
36598 rm -f conftest.$ac_objext
36599 if { (ac_try="$ac_compile"
36600 case "(($ac_try" in
36601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36602 *) ac_try_echo=$ac_try;;
36604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36605 (eval "$ac_compile") 2>conftest.er1
36607 grep -v '^ *+' conftest.er1 >conftest.err
36609 cat conftest.err >&5
36610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36611 (exit $ac_status); } && {
36612 test -z "$ac_c_werror_flag" ||
36613 test ! -s conftest.err
36614 } && test -s conftest.$ac_objext; then
36616 ac_cv_have_u_int="yes"
36619 echo "$as_me: failed program was:" >&5
36620 sed 's/^/| /' conftest.$ac_ext >&5
36623 ac_cv_have_u_int="no"
36628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36632 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
36633 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
36634 if test "x$ac_cv_have_u_int" = "xyes" ; then
36635 cat >>confdefs.h <<\_ACEOF
36636 #define HAVE_U_INT 1
36642 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
36643 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
36644 if test "${ac_cv_have_intmax_t+set}" = set; then
36645 echo $ECHO_N "(cached) $ECHO_C" >&6
36648 cat >conftest.$ac_ext <<_ACEOF
36651 cat confdefs.h >>conftest.$ac_ext
36652 cat >>conftest.$ac_ext <<_ACEOF
36653 /* end confdefs.h. */
36655 #include <sys/types.h>
36667 rm -f conftest.$ac_objext
36668 if { (ac_try="$ac_compile"
36669 case "(($ac_try" in
36670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36671 *) ac_try_echo=$ac_try;;
36673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36674 (eval "$ac_compile") 2>conftest.er1
36676 grep -v '^ *+' conftest.er1 >conftest.err
36678 cat conftest.err >&5
36679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36680 (exit $ac_status); } && {
36681 test -z "$ac_c_werror_flag" ||
36682 test ! -s conftest.err
36683 } && test -s conftest.$ac_objext; then
36685 ac_cv_have_intmax_t="yes"
36688 echo "$as_me: failed program was:" >&5
36689 sed 's/^/| /' conftest.$ac_ext >&5
36692 cat >conftest.$ac_ext <<_ACEOF
36695 cat confdefs.h >>conftest.$ac_ext
36696 cat >>conftest.$ac_ext <<_ACEOF
36697 /* end confdefs.h. */
36699 #include <stdint.h>
36711 rm -f conftest.$ac_objext
36712 if { (ac_try="$ac_compile"
36713 case "(($ac_try" in
36714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36715 *) ac_try_echo=$ac_try;;
36717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36718 (eval "$ac_compile") 2>conftest.er1
36720 grep -v '^ *+' conftest.er1 >conftest.err
36722 cat conftest.err >&5
36723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36724 (exit $ac_status); } && {
36725 test -z "$ac_c_werror_flag" ||
36726 test ! -s conftest.err
36727 } && test -s conftest.$ac_objext; then
36729 ac_cv_have_intmax_t="yes"
36732 echo "$as_me: failed program was:" >&5
36733 sed 's/^/| /' conftest.$ac_ext >&5
36736 ac_cv_have_intmax_t="no"
36741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36750 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
36751 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
36752 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
36753 cat >>confdefs.h <<\_ACEOF
36754 #define HAVE_INTMAX_T 1
36760 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
36761 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
36762 if test "${ac_cv_have_u_intmax_t+set}" = set; then
36763 echo $ECHO_N "(cached) $ECHO_C" >&6
36766 cat >conftest.$ac_ext <<_ACEOF
36769 cat confdefs.h >>conftest.$ac_ext
36770 cat >>conftest.$ac_ext <<_ACEOF
36771 /* end confdefs.h. */
36773 #include <sys/types.h>
36779 u_intmax_t a; a = 1;
36785 rm -f conftest.$ac_objext
36786 if { (ac_try="$ac_compile"
36787 case "(($ac_try" in
36788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36789 *) ac_try_echo=$ac_try;;
36791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36792 (eval "$ac_compile") 2>conftest.er1
36794 grep -v '^ *+' conftest.er1 >conftest.err
36796 cat conftest.err >&5
36797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36798 (exit $ac_status); } && {
36799 test -z "$ac_c_werror_flag" ||
36800 test ! -s conftest.err
36801 } && test -s conftest.$ac_objext; then
36803 ac_cv_have_u_intmax_t="yes"
36806 echo "$as_me: failed program was:" >&5
36807 sed 's/^/| /' conftest.$ac_ext >&5
36810 cat >conftest.$ac_ext <<_ACEOF
36813 cat confdefs.h >>conftest.$ac_ext
36814 cat >>conftest.$ac_ext <<_ACEOF
36815 /* end confdefs.h. */
36817 #include <stdint.h>
36823 u_intmax_t a; a = 1;
36829 rm -f conftest.$ac_objext
36830 if { (ac_try="$ac_compile"
36831 case "(($ac_try" in
36832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36833 *) ac_try_echo=$ac_try;;
36835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36836 (eval "$ac_compile") 2>conftest.er1
36838 grep -v '^ *+' conftest.er1 >conftest.err
36840 cat conftest.err >&5
36841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36842 (exit $ac_status); } && {
36843 test -z "$ac_c_werror_flag" ||
36844 test ! -s conftest.err
36845 } && test -s conftest.$ac_objext; then
36847 ac_cv_have_u_intmax_t="yes"
36850 echo "$as_me: failed program was:" >&5
36851 sed 's/^/| /' conftest.$ac_ext >&5
36854 ac_cv_have_u_intmax_t="no"
36859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36868 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
36869 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
36870 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
36871 cat >>confdefs.h <<\_ACEOF
36872 #define HAVE_U_INTMAX_T 1
36878 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
36879 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
36880 if test "${ac_cv_have_intxx_t+set}" = set; then
36881 echo $ECHO_N "(cached) $ECHO_C" >&6
36884 cat >conftest.$ac_ext <<_ACEOF
36887 cat confdefs.h >>conftest.$ac_ext
36888 cat >>conftest.$ac_ext <<_ACEOF
36889 /* end confdefs.h. */
36891 #include <sys/types.h>
36897 int8_t a; int16_t b; int32_t c; a = b = c = 1;
36903 rm -f conftest.$ac_objext
36904 if { (ac_try="$ac_compile"
36905 case "(($ac_try" in
36906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36907 *) ac_try_echo=$ac_try;;
36909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36910 (eval "$ac_compile") 2>conftest.er1
36912 grep -v '^ *+' conftest.er1 >conftest.err
36914 cat conftest.err >&5
36915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36916 (exit $ac_status); } && {
36917 test -z "$ac_c_werror_flag" ||
36918 test ! -s conftest.err
36919 } && test -s conftest.$ac_objext; then
36921 ac_cv_have_intxx_t="yes"
36924 echo "$as_me: failed program was:" >&5
36925 sed 's/^/| /' conftest.$ac_ext >&5
36928 ac_cv_have_intxx_t="no"
36933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36937 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
36938 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
36939 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
36940 cat >>confdefs.h <<\_ACEOF
36941 #define HAVE_INTXX_T 1
36947 { echo "$as_me:$LINENO: checking for int64_t type" >&5
36948 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
36949 if test "${ac_cv_have_int64_t+set}" = set; then
36950 echo $ECHO_N "(cached) $ECHO_C" >&6
36953 cat >conftest.$ac_ext <<_ACEOF
36956 cat confdefs.h >>conftest.$ac_ext
36957 cat >>conftest.$ac_ext <<_ACEOF
36958 /* end confdefs.h. */
36960 #include <sys/types.h>
36972 rm -f conftest.$ac_objext
36973 if { (ac_try="$ac_compile"
36974 case "(($ac_try" in
36975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36976 *) ac_try_echo=$ac_try;;
36978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36979 (eval "$ac_compile") 2>conftest.er1
36981 grep -v '^ *+' conftest.er1 >conftest.err
36983 cat conftest.err >&5
36984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36985 (exit $ac_status); } && {
36986 test -z "$ac_c_werror_flag" ||
36987 test ! -s conftest.err
36988 } && test -s conftest.$ac_objext; then
36990 ac_cv_have_int64_t="yes"
36993 echo "$as_me: failed program was:" >&5
36994 sed 's/^/| /' conftest.$ac_ext >&5
36997 ac_cv_have_int64_t="no"
37002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37006 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37007 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37008 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37009 cat >>confdefs.h <<\_ACEOF
37010 #define HAVE_INT64_T 1
37016 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37017 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37018 if test "${ac_cv_have_u_intxx_t+set}" = set; then
37019 echo $ECHO_N "(cached) $ECHO_C" >&6
37022 cat >conftest.$ac_ext <<_ACEOF
37025 cat confdefs.h >>conftest.$ac_ext
37026 cat >>conftest.$ac_ext <<_ACEOF
37027 /* end confdefs.h. */
37029 #include <sys/types.h>
37035 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
37041 rm -f conftest.$ac_objext
37042 if { (ac_try="$ac_compile"
37043 case "(($ac_try" in
37044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37045 *) ac_try_echo=$ac_try;;
37047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37048 (eval "$ac_compile") 2>conftest.er1
37050 grep -v '^ *+' conftest.er1 >conftest.err
37052 cat conftest.err >&5
37053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37054 (exit $ac_status); } && {
37055 test -z "$ac_c_werror_flag" ||
37056 test ! -s conftest.err
37057 } && test -s conftest.$ac_objext; then
37059 ac_cv_have_u_intxx_t="yes"
37062 echo "$as_me: failed program was:" >&5
37063 sed 's/^/| /' conftest.$ac_ext >&5
37066 ac_cv_have_u_intxx_t="no"
37071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37075 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37076 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37077 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37078 cat >>confdefs.h <<\_ACEOF
37079 #define HAVE_U_INTXX_T 1
37085 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
37086 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
37087 if test "${ac_cv_have_u_int64_t+set}" = set; then
37088 echo $ECHO_N "(cached) $ECHO_C" >&6
37091 cat >conftest.$ac_ext <<_ACEOF
37094 cat confdefs.h >>conftest.$ac_ext
37095 cat >>conftest.$ac_ext <<_ACEOF
37096 /* end confdefs.h. */
37098 #include <sys/types.h>
37104 u_int64_t a; a = 1;
37110 rm -f conftest.$ac_objext
37111 if { (ac_try="$ac_compile"
37112 case "(($ac_try" in
37113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37114 *) ac_try_echo=$ac_try;;
37116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37117 (eval "$ac_compile") 2>conftest.er1
37119 grep -v '^ *+' conftest.er1 >conftest.err
37121 cat conftest.err >&5
37122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37123 (exit $ac_status); } && {
37124 test -z "$ac_c_werror_flag" ||
37125 test ! -s conftest.err
37126 } && test -s conftest.$ac_objext; then
37128 ac_cv_have_u_int64_t="yes"
37131 echo "$as_me: failed program was:" >&5
37132 sed 's/^/| /' conftest.$ac_ext >&5
37135 ac_cv_have_u_int64_t="no"
37140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37144 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
37145 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
37146 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
37147 cat >>confdefs.h <<\_ACEOF
37148 #define HAVE_U_INT64_T 1
37154 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
37155 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37157 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
37158 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37159 cat >conftest.$ac_ext <<_ACEOF
37162 cat confdefs.h >>conftest.$ac_ext
37163 cat >>conftest.$ac_ext <<_ACEOF
37164 /* end confdefs.h. */
37166 #include <sys/bitypes.h>
37172 int8_t a; int16_t b; int32_t c;
37173 u_int8_t e; u_int16_t f; u_int32_t g;
37174 a = b = c = e = f = g = 1;
37180 rm -f conftest.$ac_objext
37181 if { (ac_try="$ac_compile"
37182 case "(($ac_try" in
37183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37184 *) ac_try_echo=$ac_try;;
37186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37187 (eval "$ac_compile") 2>conftest.er1
37189 grep -v '^ *+' conftest.er1 >conftest.err
37191 cat conftest.err >&5
37192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37193 (exit $ac_status); } && {
37194 test -z "$ac_c_werror_flag" ||
37195 test ! -s conftest.err
37196 } && test -s conftest.$ac_objext; then
37198 cat >>confdefs.h <<\_ACEOF
37199 #define HAVE_U_INTXX_T 1
37202 cat >>confdefs.h <<\_ACEOF
37203 #define HAVE_INTXX_T 1
37206 cat >>confdefs.h <<\_ACEOF
37207 #define HAVE_SYS_BITYPES_H 1
37210 { echo "$as_me:$LINENO: result: yes" >&5
37211 echo "${ECHO_T}yes" >&6; }
37214 echo "$as_me: failed program was:" >&5
37215 sed 's/^/| /' conftest.$ac_ext >&5
37218 { echo "$as_me:$LINENO: result: no" >&5
37219 echo "${ECHO_T}no" >&6; }
37224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37227 if test -z "$have_u_intxx_t" ; then
37228 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
37229 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
37230 if test "${ac_cv_have_uintxx_t+set}" = set; then
37231 echo $ECHO_N "(cached) $ECHO_C" >&6
37234 cat >conftest.$ac_ext <<_ACEOF
37237 cat confdefs.h >>conftest.$ac_ext
37238 cat >>conftest.$ac_ext <<_ACEOF
37239 /* end confdefs.h. */
37241 #include <sys/types.h>
37247 uint8_t a; uint16_t b;
37248 uint32_t c; a = b = c = 1;
37254 rm -f conftest.$ac_objext
37255 if { (ac_try="$ac_compile"
37256 case "(($ac_try" in
37257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37258 *) ac_try_echo=$ac_try;;
37260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37261 (eval "$ac_compile") 2>conftest.er1
37263 grep -v '^ *+' conftest.er1 >conftest.err
37265 cat conftest.err >&5
37266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37267 (exit $ac_status); } && {
37268 test -z "$ac_c_werror_flag" ||
37269 test ! -s conftest.err
37270 } && test -s conftest.$ac_objext; then
37272 ac_cv_have_uintxx_t="yes"
37275 echo "$as_me: failed program was:" >&5
37276 sed 's/^/| /' conftest.$ac_ext >&5
37279 ac_cv_have_uintxx_t="no"
37284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37288 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
37289 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
37290 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
37291 cat >>confdefs.h <<\_ACEOF
37292 #define HAVE_UINTXX_T 1
37298 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
37299 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37301 { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
37302 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
37303 cat >conftest.$ac_ext <<_ACEOF
37306 cat confdefs.h >>conftest.$ac_ext
37307 cat >>conftest.$ac_ext <<_ACEOF
37308 /* end confdefs.h. */
37310 #include <sys/bitypes.h>
37316 int64_t a; u_int64_t b;
37323 rm -f conftest.$ac_objext
37324 if { (ac_try="$ac_compile"
37325 case "(($ac_try" in
37326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37327 *) ac_try_echo=$ac_try;;
37329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37330 (eval "$ac_compile") 2>conftest.er1
37332 grep -v '^ *+' conftest.er1 >conftest.err
37334 cat conftest.err >&5
37335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37336 (exit $ac_status); } && {
37337 test -z "$ac_c_werror_flag" ||
37338 test ! -s conftest.err
37339 } && test -s conftest.$ac_objext; then
37341 cat >>confdefs.h <<\_ACEOF
37342 #define HAVE_U_INT64_T 1
37345 cat >>confdefs.h <<\_ACEOF
37346 #define HAVE_INT64_T 1
37349 { echo "$as_me:$LINENO: result: yes" >&5
37350 echo "${ECHO_T}yes" >&6; }
37353 echo "$as_me: failed program was:" >&5
37354 sed 's/^/| /' conftest.$ac_ext >&5
37357 { echo "$as_me:$LINENO: result: no" >&5
37358 echo "${ECHO_T}no" >&6; }
37363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37366 if (test -z "$have_uintxx_t" && \
37367 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37369 { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
37370 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37371 cat >conftest.$ac_ext <<_ACEOF
37374 cat confdefs.h >>conftest.$ac_ext
37375 cat >>conftest.$ac_ext <<_ACEOF
37376 /* end confdefs.h. */
37378 #include <sys/bitypes.h>
37384 uint8_t a; uint16_t b;
37385 uint32_t c; a = b = c = 1;
37391 rm -f conftest.$ac_objext
37392 if { (ac_try="$ac_compile"
37393 case "(($ac_try" in
37394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37395 *) ac_try_echo=$ac_try;;
37397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37398 (eval "$ac_compile") 2>conftest.er1
37400 grep -v '^ *+' conftest.er1 >conftest.err
37402 cat conftest.err >&5
37403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37404 (exit $ac_status); } && {
37405 test -z "$ac_c_werror_flag" ||
37406 test ! -s conftest.err
37407 } && test -s conftest.$ac_objext; then
37409 cat >>confdefs.h <<\_ACEOF
37410 #define HAVE_UINTXX_T 1
37413 { echo "$as_me:$LINENO: result: yes" >&5
37414 echo "${ECHO_T}yes" >&6; }
37417 echo "$as_me: failed program was:" >&5
37418 sed 's/^/| /' conftest.$ac_ext >&5
37421 { echo "$as_me:$LINENO: result: no" >&5
37422 echo "${ECHO_T}no" >&6; }
37427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37459 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37460 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37461 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37462 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37463 echo $ECHO_N "(cached) $ECHO_C" >&6
37465 cat >conftest.$ac_ext <<_ACEOF
37468 cat confdefs.h >>conftest.$ac_ext
37469 cat >>conftest.$ac_ext <<_ACEOF
37470 /* end confdefs.h. */
37471 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37472 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37473 #define $ac_func innocuous_$ac_func
37475 /* System header to define __stub macros and hopefully few prototypes,
37476 which can conflict with char $ac_func (); below.
37477 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37478 <limits.h> exists even on freestanding compilers. */
37481 # include <limits.h>
37483 # include <assert.h>
37488 /* Override any GCC internal prototype to avoid an error.
37489 Use char because int might match the return type of a GCC
37490 builtin and then its argument prototype would still apply. */
37495 /* The GNU C library defines this for functions which it implements
37496 to always fail with ENOSYS. Some functions are actually named
37497 something starting with __ and the normal name is an alias. */
37498 #if defined __stub_$ac_func || defined __stub___$ac_func
37505 return $ac_func ();
37510 rm -f conftest.$ac_objext conftest$ac_exeext
37511 if { (ac_try="$ac_link"
37512 case "(($ac_try" in
37513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37514 *) ac_try_echo=$ac_try;;
37516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37517 (eval "$ac_link") 2>conftest.er1
37519 grep -v '^ *+' conftest.er1 >conftest.err
37521 cat conftest.err >&5
37522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37523 (exit $ac_status); } && {
37524 test -z "$ac_c_werror_flag" ||
37525 test ! -s conftest.err
37526 } && test -s conftest$ac_exeext &&
37527 $as_test_x conftest$ac_exeext; then
37528 eval "$as_ac_var=yes"
37530 echo "$as_me: failed program was:" >&5
37531 sed 's/^/| /' conftest.$ac_ext >&5
37533 eval "$as_ac_var=no"
37536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37537 conftest$ac_exeext conftest.$ac_ext
37539 ac_res=`eval echo '${'$as_ac_var'}'`
37540 { echo "$as_me:$LINENO: result: $ac_res" >&5
37541 echo "${ECHO_T}$ac_res" >&6; }
37542 if test `eval echo '${'$as_ac_var'}'` = yes; then
37543 cat >>confdefs.h <<_ACEOF
37544 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37548 echo 'configure: cannot find needed function.'; exit 1
37555 for ac_func in fchdir
37557 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37558 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37559 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37560 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37561 echo $ECHO_N "(cached) $ECHO_C" >&6
37563 cat >conftest.$ac_ext <<_ACEOF
37566 cat confdefs.h >>conftest.$ac_ext
37567 cat >>conftest.$ac_ext <<_ACEOF
37568 /* end confdefs.h. */
37569 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37571 #define $ac_func innocuous_$ac_func
37573 /* System header to define __stub macros and hopefully few prototypes,
37574 which can conflict with char $ac_func (); below.
37575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37576 <limits.h> exists even on freestanding compilers. */
37579 # include <limits.h>
37581 # include <assert.h>
37586 /* Override any GCC internal prototype to avoid an error.
37587 Use char because int might match the return type of a GCC
37588 builtin and then its argument prototype would still apply. */
37593 /* The GNU C library defines this for functions which it implements
37594 to always fail with ENOSYS. Some functions are actually named
37595 something starting with __ and the normal name is an alias. */
37596 #if defined __stub_$ac_func || defined __stub___$ac_func
37603 return $ac_func ();
37608 rm -f conftest.$ac_objext conftest$ac_exeext
37609 if { (ac_try="$ac_link"
37610 case "(($ac_try" in
37611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37612 *) ac_try_echo=$ac_try;;
37614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37615 (eval "$ac_link") 2>conftest.er1
37617 grep -v '^ *+' conftest.er1 >conftest.err
37619 cat conftest.err >&5
37620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37621 (exit $ac_status); } && {
37622 test -z "$ac_c_werror_flag" ||
37623 test ! -s conftest.err
37624 } && test -s conftest$ac_exeext &&
37625 $as_test_x conftest$ac_exeext; then
37626 eval "$as_ac_var=yes"
37628 echo "$as_me: failed program was:" >&5
37629 sed 's/^/| /' conftest.$ac_ext >&5
37631 eval "$as_ac_var=no"
37634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37635 conftest$ac_exeext conftest.$ac_ext
37637 ac_res=`eval echo '${'$as_ac_var'}'`
37638 { echo "$as_me:$LINENO: result: $ac_res" >&5
37639 echo "${ECHO_T}$ac_res" >&6; }
37640 if test `eval echo '${'$as_ac_var'}'` = yes; then
37641 cat >>confdefs.h <<_ACEOF
37642 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37644 cat >>confdefs.h <<\_ACEOF
37645 #define HAVE_FCHDIR 1
37652 for ac_func in strtoll
37654 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37655 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37656 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37657 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37658 echo $ECHO_N "(cached) $ECHO_C" >&6
37660 cat >conftest.$ac_ext <<_ACEOF
37663 cat confdefs.h >>conftest.$ac_ext
37664 cat >>conftest.$ac_ext <<_ACEOF
37665 /* end confdefs.h. */
37666 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37668 #define $ac_func innocuous_$ac_func
37670 /* System header to define __stub macros and hopefully few prototypes,
37671 which can conflict with char $ac_func (); below.
37672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37673 <limits.h> exists even on freestanding compilers. */
37676 # include <limits.h>
37678 # include <assert.h>
37683 /* Override any GCC internal prototype to avoid an error.
37684 Use char because int might match the return type of a GCC
37685 builtin and then its argument prototype would still apply. */
37690 /* The GNU C library defines this for functions which it implements
37691 to always fail with ENOSYS. Some functions are actually named
37692 something starting with __ and the normal name is an alias. */
37693 #if defined __stub_$ac_func || defined __stub___$ac_func
37700 return $ac_func ();
37705 rm -f conftest.$ac_objext conftest$ac_exeext
37706 if { (ac_try="$ac_link"
37707 case "(($ac_try" in
37708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37709 *) ac_try_echo=$ac_try;;
37711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37712 (eval "$ac_link") 2>conftest.er1
37714 grep -v '^ *+' conftest.er1 >conftest.err
37716 cat conftest.err >&5
37717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37718 (exit $ac_status); } && {
37719 test -z "$ac_c_werror_flag" ||
37720 test ! -s conftest.err
37721 } && test -s conftest$ac_exeext &&
37722 $as_test_x conftest$ac_exeext; then
37723 eval "$as_ac_var=yes"
37725 echo "$as_me: failed program was:" >&5
37726 sed 's/^/| /' conftest.$ac_ext >&5
37728 eval "$as_ac_var=no"
37731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37732 conftest$ac_exeext conftest.$ac_ext
37734 ac_res=`eval echo '${'$as_ac_var'}'`
37735 { echo "$as_me:$LINENO: result: $ac_res" >&5
37736 echo "${ECHO_T}$ac_res" >&6; }
37737 if test `eval echo '${'$as_ac_var'}'` = yes; then
37738 cat >>confdefs.h <<_ACEOF
37739 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37741 cat >>confdefs.h <<\_ACEOF
37742 #define HAVE_STRTOLL 1
37749 for ac_func in posix_fadvise
37751 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37752 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37753 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37754 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37755 echo $ECHO_N "(cached) $ECHO_C" >&6
37757 cat >conftest.$ac_ext <<_ACEOF
37760 cat confdefs.h >>conftest.$ac_ext
37761 cat >>conftest.$ac_ext <<_ACEOF
37762 /* end confdefs.h. */
37763 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37765 #define $ac_func innocuous_$ac_func
37767 /* System header to define __stub macros and hopefully few prototypes,
37768 which can conflict with char $ac_func (); below.
37769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37770 <limits.h> exists even on freestanding compilers. */
37773 # include <limits.h>
37775 # include <assert.h>
37780 /* Override any GCC internal prototype to avoid an error.
37781 Use char because int might match the return type of a GCC
37782 builtin and then its argument prototype would still apply. */
37787 /* The GNU C library defines this for functions which it implements
37788 to always fail with ENOSYS. Some functions are actually named
37789 something starting with __ and the normal name is an alias. */
37790 #if defined __stub_$ac_func || defined __stub___$ac_func
37797 return $ac_func ();
37802 rm -f conftest.$ac_objext conftest$ac_exeext
37803 if { (ac_try="$ac_link"
37804 case "(($ac_try" in
37805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37806 *) ac_try_echo=$ac_try;;
37808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37809 (eval "$ac_link") 2>conftest.er1
37811 grep -v '^ *+' conftest.er1 >conftest.err
37813 cat conftest.err >&5
37814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37815 (exit $ac_status); } && {
37816 test -z "$ac_c_werror_flag" ||
37817 test ! -s conftest.err
37818 } && test -s conftest$ac_exeext &&
37819 $as_test_x conftest$ac_exeext; then
37820 eval "$as_ac_var=yes"
37822 echo "$as_me: failed program was:" >&5
37823 sed 's/^/| /' conftest.$ac_ext >&5
37825 eval "$as_ac_var=no"
37828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37829 conftest$ac_exeext conftest.$ac_ext
37831 ac_res=`eval echo '${'$as_ac_var'}'`
37832 { echo "$as_me:$LINENO: result: $ac_res" >&5
37833 echo "${ECHO_T}$ac_res" >&6; }
37834 if test `eval echo '${'$as_ac_var'}'` = yes; then
37835 cat >>confdefs.h <<_ACEOF
37836 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37843 for ac_func in fdatasync
37845 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37846 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37847 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37848 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37849 echo $ECHO_N "(cached) $ECHO_C" >&6
37851 cat >conftest.$ac_ext <<_ACEOF
37854 cat confdefs.h >>conftest.$ac_ext
37855 cat >>conftest.$ac_ext <<_ACEOF
37856 /* end confdefs.h. */
37857 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37859 #define $ac_func innocuous_$ac_func
37861 /* System header to define __stub macros and hopefully few prototypes,
37862 which can conflict with char $ac_func (); below.
37863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37864 <limits.h> exists even on freestanding compilers. */
37867 # include <limits.h>
37869 # include <assert.h>
37874 /* Override any GCC internal prototype to avoid an error.
37875 Use char because int might match the return type of a GCC
37876 builtin and then its argument prototype would still apply. */
37881 /* The GNU C library defines this for functions which it implements
37882 to always fail with ENOSYS. Some functions are actually named
37883 something starting with __ and the normal name is an alias. */
37884 #if defined __stub_$ac_func || defined __stub___$ac_func
37891 return $ac_func ();
37896 rm -f conftest.$ac_objext conftest$ac_exeext
37897 if { (ac_try="$ac_link"
37898 case "(($ac_try" in
37899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37900 *) ac_try_echo=$ac_try;;
37902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37903 (eval "$ac_link") 2>conftest.er1
37905 grep -v '^ *+' conftest.er1 >conftest.err
37907 cat conftest.err >&5
37908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37909 (exit $ac_status); } && {
37910 test -z "$ac_c_werror_flag" ||
37911 test ! -s conftest.err
37912 } && test -s conftest$ac_exeext &&
37913 $as_test_x conftest$ac_exeext; then
37914 eval "$as_ac_var=yes"
37916 echo "$as_me: failed program was:" >&5
37917 sed 's/^/| /' conftest.$ac_ext >&5
37919 eval "$as_ac_var=no"
37922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37923 conftest$ac_exeext conftest.$ac_ext
37925 ac_res=`eval echo '${'$as_ac_var'}'`
37926 { echo "$as_me:$LINENO: result: $ac_res" >&5
37927 echo "${ECHO_T}$ac_res" >&6; }
37928 if test `eval echo '${'$as_ac_var'}'` = yes; then
37929 cat >>confdefs.h <<_ACEOF
37930 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37938 for ac_func in chflags
37940 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37941 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37943 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37944 echo $ECHO_N "(cached) $ECHO_C" >&6
37946 cat >conftest.$ac_ext <<_ACEOF
37949 cat confdefs.h >>conftest.$ac_ext
37950 cat >>conftest.$ac_ext <<_ACEOF
37951 /* end confdefs.h. */
37952 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37954 #define $ac_func innocuous_$ac_func
37956 /* System header to define __stub macros and hopefully few prototypes,
37957 which can conflict with char $ac_func (); below.
37958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37959 <limits.h> exists even on freestanding compilers. */
37962 # include <limits.h>
37964 # include <assert.h>
37969 /* Override any GCC internal prototype to avoid an error.
37970 Use char because int might match the return type of a GCC
37971 builtin and then its argument prototype would still apply. */
37976 /* The GNU C library defines this for functions which it implements
37977 to always fail with ENOSYS. Some functions are actually named
37978 something starting with __ and the normal name is an alias. */
37979 #if defined __stub_$ac_func || defined __stub___$ac_func
37986 return $ac_func ();
37991 rm -f conftest.$ac_objext conftest$ac_exeext
37992 if { (ac_try="$ac_link"
37993 case "(($ac_try" in
37994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37995 *) ac_try_echo=$ac_try;;
37997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37998 (eval "$ac_link") 2>conftest.er1
38000 grep -v '^ *+' conftest.er1 >conftest.err
38002 cat conftest.err >&5
38003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38004 (exit $ac_status); } && {
38005 test -z "$ac_c_werror_flag" ||
38006 test ! -s conftest.err
38007 } && test -s conftest$ac_exeext &&
38008 $as_test_x conftest$ac_exeext; then
38009 eval "$as_ac_var=yes"
38011 echo "$as_me: failed program was:" >&5
38012 sed 's/^/| /' conftest.$ac_ext >&5
38014 eval "$as_ac_var=no"
38017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38018 conftest$ac_exeext conftest.$ac_ext
38020 ac_res=`eval echo '${'$as_ac_var'}'`
38021 { echo "$as_me:$LINENO: result: $ac_res" >&5
38022 echo "${ECHO_T}$ac_res" >&6; }
38023 if test `eval echo '${'$as_ac_var'}'` = yes; then
38024 cat >>confdefs.h <<_ACEOF
38025 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38036 for ac_func in snprintf vsnprintf gethostid fseeko
38038 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38039 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38040 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38041 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38042 echo $ECHO_N "(cached) $ECHO_C" >&6
38044 cat >conftest.$ac_ext <<_ACEOF
38047 cat confdefs.h >>conftest.$ac_ext
38048 cat >>conftest.$ac_ext <<_ACEOF
38049 /* end confdefs.h. */
38050 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38052 #define $ac_func innocuous_$ac_func
38054 /* System header to define __stub macros and hopefully few prototypes,
38055 which can conflict with char $ac_func (); below.
38056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38057 <limits.h> exists even on freestanding compilers. */
38060 # include <limits.h>
38062 # include <assert.h>
38067 /* Override any GCC internal prototype to avoid an error.
38068 Use char because int might match the return type of a GCC
38069 builtin and then its argument prototype would still apply. */
38074 /* The GNU C library defines this for functions which it implements
38075 to always fail with ENOSYS. Some functions are actually named
38076 something starting with __ and the normal name is an alias. */
38077 #if defined __stub_$ac_func || defined __stub___$ac_func
38084 return $ac_func ();
38089 rm -f conftest.$ac_objext conftest$ac_exeext
38090 if { (ac_try="$ac_link"
38091 case "(($ac_try" in
38092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38093 *) ac_try_echo=$ac_try;;
38095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38096 (eval "$ac_link") 2>conftest.er1
38098 grep -v '^ *+' conftest.er1 >conftest.err
38100 cat conftest.err >&5
38101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38102 (exit $ac_status); } && {
38103 test -z "$ac_c_werror_flag" ||
38104 test ! -s conftest.err
38105 } && test -s conftest$ac_exeext &&
38106 $as_test_x conftest$ac_exeext; then
38107 eval "$as_ac_var=yes"
38109 echo "$as_me: failed program was:" >&5
38110 sed 's/^/| /' conftest.$ac_ext >&5
38112 eval "$as_ac_var=no"
38115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38116 conftest$ac_exeext conftest.$ac_ext
38118 ac_res=`eval echo '${'$as_ac_var'}'`
38119 { echo "$as_me:$LINENO: result: $ac_res" >&5
38120 echo "${ECHO_T}$ac_res" >&6; }
38121 if test `eval echo '${'$as_ac_var'}'` = yes; then
38122 cat >>confdefs.h <<_ACEOF
38123 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38130 { echo "$as_me:$LINENO: checking for va_copy" >&5
38131 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
38132 if test "${ba_cv_va_copy+set}" = set; then
38133 echo $ECHO_N "(cached) $ECHO_C" >&6
38136 cat >conftest.$ac_ext <<_ACEOF
38139 cat confdefs.h >>conftest.$ac_ext
38140 cat >>conftest.$ac_ext <<_ACEOF
38141 /* end confdefs.h. */
38143 #include <stdarg.h>
38144 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
38145 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
38151 call_use_va_copy(1,2,3)
38157 rm -f conftest.$ac_objext conftest$ac_exeext
38158 if { (ac_try="$ac_link"
38159 case "(($ac_try" in
38160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38161 *) ac_try_echo=$ac_try;;
38163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38164 (eval "$ac_link") 2>conftest.er1
38166 grep -v '^ *+' conftest.er1 >conftest.err
38168 cat conftest.err >&5
38169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38170 (exit $ac_status); } && {
38171 test -z "$ac_c_werror_flag" ||
38172 test ! -s conftest.err
38173 } && test -s conftest$ac_exeext &&
38174 $as_test_x conftest$ac_exeext; then
38179 echo "$as_me: failed program was:" >&5
38180 sed 's/^/| /' conftest.$ac_ext >&5
38188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38189 conftest$ac_exeext conftest.$ac_ext
38193 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
38194 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
38195 test $ba_cv_va_copy = yes &&
38196 cat >>confdefs.h <<\_ACEOF
38197 #define HAVE_VA_COPY 1
38205 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
38207 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38208 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38209 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38210 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38211 echo $ECHO_N "(cached) $ECHO_C" >&6
38213 cat >conftest.$ac_ext <<_ACEOF
38216 cat confdefs.h >>conftest.$ac_ext
38217 cat >>conftest.$ac_ext <<_ACEOF
38218 /* end confdefs.h. */
38219 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38221 #define $ac_func innocuous_$ac_func
38223 /* System header to define __stub macros and hopefully few prototypes,
38224 which can conflict with char $ac_func (); below.
38225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38226 <limits.h> exists even on freestanding compilers. */
38229 # include <limits.h>
38231 # include <assert.h>
38236 /* Override any GCC internal prototype to avoid an error.
38237 Use char because int might match the return type of a GCC
38238 builtin and then its argument prototype would still apply. */
38243 /* The GNU C library defines this for functions which it implements
38244 to always fail with ENOSYS. Some functions are actually named
38245 something starting with __ and the normal name is an alias. */
38246 #if defined __stub_$ac_func || defined __stub___$ac_func
38253 return $ac_func ();
38258 rm -f conftest.$ac_objext conftest$ac_exeext
38259 if { (ac_try="$ac_link"
38260 case "(($ac_try" in
38261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38262 *) ac_try_echo=$ac_try;;
38264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38265 (eval "$ac_link") 2>conftest.er1
38267 grep -v '^ *+' conftest.er1 >conftest.err
38269 cat conftest.err >&5
38270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38271 (exit $ac_status); } && {
38272 test -z "$ac_c_werror_flag" ||
38273 test ! -s conftest.err
38274 } && test -s conftest$ac_exeext &&
38275 $as_test_x conftest$ac_exeext; then
38276 eval "$as_ac_var=yes"
38278 echo "$as_me: failed program was:" >&5
38279 sed 's/^/| /' conftest.$ac_ext >&5
38281 eval "$as_ac_var=no"
38284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38285 conftest$ac_exeext conftest.$ac_ext
38287 ac_res=`eval echo '${'$as_ac_var'}'`
38288 { echo "$as_me:$LINENO: result: $ac_res" >&5
38289 echo "${ECHO_T}$ac_res" >&6; }
38290 if test `eval echo '${'$as_ac_var'}'` = yes; then
38291 cat >>confdefs.h <<_ACEOF
38292 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38299 # If resolver functions are not in libc check for -lnsl or -lresolv.
38300 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
38301 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
38302 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
38303 echo $ECHO_N "(cached) $ECHO_C" >&6
38305 cat >conftest.$ac_ext <<_ACEOF
38308 cat confdefs.h >>conftest.$ac_ext
38309 cat >>conftest.$ac_ext <<_ACEOF
38310 /* end confdefs.h. */
38311 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
38312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38313 #define gethostbyname_r innocuous_gethostbyname_r
38315 /* System header to define __stub macros and hopefully few prototypes,
38316 which can conflict with char gethostbyname_r (); below.
38317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38318 <limits.h> exists even on freestanding compilers. */
38321 # include <limits.h>
38323 # include <assert.h>
38326 #undef gethostbyname_r
38328 /* Override any GCC internal prototype to avoid an error.
38329 Use char because int might match the return type of a GCC
38330 builtin and then its argument prototype would still apply. */
38334 char gethostbyname_r ();
38335 /* The GNU C library defines this for functions which it implements
38336 to always fail with ENOSYS. Some functions are actually named
38337 something starting with __ and the normal name is an alias. */
38338 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
38345 return gethostbyname_r ();
38350 rm -f conftest.$ac_objext conftest$ac_exeext
38351 if { (ac_try="$ac_link"
38352 case "(($ac_try" in
38353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38354 *) ac_try_echo=$ac_try;;
38356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38357 (eval "$ac_link") 2>conftest.er1
38359 grep -v '^ *+' conftest.er1 >conftest.err
38361 cat conftest.err >&5
38362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38363 (exit $ac_status); } && {
38364 test -z "$ac_c_werror_flag" ||
38365 test ! -s conftest.err
38366 } && test -s conftest$ac_exeext &&
38367 $as_test_x conftest$ac_exeext; then
38368 ac_cv_func_gethostbyname_r=yes
38370 echo "$as_me: failed program was:" >&5
38371 sed 's/^/| /' conftest.$ac_ext >&5
38373 ac_cv_func_gethostbyname_r=no
38376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38377 conftest$ac_exeext conftest.$ac_ext
38379 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
38380 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
38381 if test $ac_cv_func_gethostbyname_r = yes; then
38382 { echo "$as_me:$LINENO: result: using libc's resolver" >&5
38383 echo "${ECHO_T}using libc's resolver" >&6; }
38386 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
38387 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
38388 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
38389 echo $ECHO_N "(cached) $ECHO_C" >&6
38391 ac_check_lib_save_LIBS=$LIBS
38393 cat >conftest.$ac_ext <<_ACEOF
38396 cat confdefs.h >>conftest.$ac_ext
38397 cat >>conftest.$ac_ext <<_ACEOF
38398 /* end confdefs.h. */
38400 /* Override any GCC internal prototype to avoid an error.
38401 Use char because int might match the return type of a GCC
38402 builtin and then its argument prototype would still apply. */
38406 char gethostbyname_r ();
38410 return gethostbyname_r ();
38415 rm -f conftest.$ac_objext conftest$ac_exeext
38416 if { (ac_try="$ac_link"
38417 case "(($ac_try" in
38418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38419 *) ac_try_echo=$ac_try;;
38421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38422 (eval "$ac_link") 2>conftest.er1
38424 grep -v '^ *+' conftest.er1 >conftest.err
38426 cat conftest.err >&5
38427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38428 (exit $ac_status); } && {
38429 test -z "$ac_c_werror_flag" ||
38430 test ! -s conftest.err
38431 } && test -s conftest$ac_exeext &&
38432 $as_test_x conftest$ac_exeext; then
38433 ac_cv_lib_nsl_gethostbyname_r=yes
38435 echo "$as_me: failed program was:" >&5
38436 sed 's/^/| /' conftest.$ac_ext >&5
38438 ac_cv_lib_nsl_gethostbyname_r=no
38441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38442 conftest$ac_exeext conftest.$ac_ext
38443 LIBS=$ac_check_lib_save_LIBS
38445 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
38446 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
38447 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
38448 cat >>confdefs.h <<_ACEOF
38449 #define HAVE_LIBNSL 1
38457 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
38458 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
38459 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
38460 echo $ECHO_N "(cached) $ECHO_C" >&6
38462 ac_check_lib_save_LIBS=$LIBS
38463 LIBS="-lresolv $LIBS"
38464 cat >conftest.$ac_ext <<_ACEOF
38467 cat confdefs.h >>conftest.$ac_ext
38468 cat >>conftest.$ac_ext <<_ACEOF
38469 /* end confdefs.h. */
38471 /* Override any GCC internal prototype to avoid an error.
38472 Use char because int might match the return type of a GCC
38473 builtin and then its argument prototype would still apply. */
38477 char gethostbyname_r ();
38481 return gethostbyname_r ();
38486 rm -f conftest.$ac_objext conftest$ac_exeext
38487 if { (ac_try="$ac_link"
38488 case "(($ac_try" in
38489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38490 *) ac_try_echo=$ac_try;;
38492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38493 (eval "$ac_link") 2>conftest.er1
38495 grep -v '^ *+' conftest.er1 >conftest.err
38497 cat conftest.err >&5
38498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38499 (exit $ac_status); } && {
38500 test -z "$ac_c_werror_flag" ||
38501 test ! -s conftest.err
38502 } && test -s conftest$ac_exeext &&
38503 $as_test_x conftest$ac_exeext; then
38504 ac_cv_lib_resolv_gethostbyname_r=yes
38506 echo "$as_me: failed program was:" >&5
38507 sed 's/^/| /' conftest.$ac_ext >&5
38509 ac_cv_lib_resolv_gethostbyname_r=no
38512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38513 conftest$ac_exeext conftest.$ac_ext
38514 LIBS=$ac_check_lib_save_LIBS
38516 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
38517 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
38518 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
38519 cat >>confdefs.h <<_ACEOF
38520 #define HAVE_LIBRESOLV 1
38523 LIBS="-lresolv $LIBS"
38531 for ac_func in inet_pton
38533 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38534 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38535 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38536 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38537 echo $ECHO_N "(cached) $ECHO_C" >&6
38539 cat >conftest.$ac_ext <<_ACEOF
38542 cat confdefs.h >>conftest.$ac_ext
38543 cat >>conftest.$ac_ext <<_ACEOF
38544 /* end confdefs.h. */
38545 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38547 #define $ac_func innocuous_$ac_func
38549 /* System header to define __stub macros and hopefully few prototypes,
38550 which can conflict with char $ac_func (); below.
38551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38552 <limits.h> exists even on freestanding compilers. */
38555 # include <limits.h>
38557 # include <assert.h>
38562 /* Override any GCC internal prototype to avoid an error.
38563 Use char because int might match the return type of a GCC
38564 builtin and then its argument prototype would still apply. */
38569 /* The GNU C library defines this for functions which it implements
38570 to always fail with ENOSYS. Some functions are actually named
38571 something starting with __ and the normal name is an alias. */
38572 #if defined __stub_$ac_func || defined __stub___$ac_func
38579 return $ac_func ();
38584 rm -f conftest.$ac_objext conftest$ac_exeext
38585 if { (ac_try="$ac_link"
38586 case "(($ac_try" in
38587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38588 *) ac_try_echo=$ac_try;;
38590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38591 (eval "$ac_link") 2>conftest.er1
38593 grep -v '^ *+' conftest.er1 >conftest.err
38595 cat conftest.err >&5
38596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38597 (exit $ac_status); } && {
38598 test -z "$ac_c_werror_flag" ||
38599 test ! -s conftest.err
38600 } && test -s conftest$ac_exeext &&
38601 $as_test_x conftest$ac_exeext; then
38602 eval "$as_ac_var=yes"
38604 echo "$as_me: failed program was:" >&5
38605 sed 's/^/| /' conftest.$ac_ext >&5
38607 eval "$as_ac_var=no"
38610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38611 conftest$ac_exeext conftest.$ac_ext
38613 ac_res=`eval echo '${'$as_ac_var'}'`
38614 { echo "$as_me:$LINENO: result: $ac_res" >&5
38615 echo "${ECHO_T}$ac_res" >&6; }
38616 if test `eval echo '${'$as_ac_var'}'` = yes; then
38617 cat >>confdefs.h <<_ACEOF
38618 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38620 cat >>confdefs.h <<\_ACEOF
38621 #define HAVE_INET_PTON 1
38628 for ac_func in inet_ntop
38630 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38631 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38632 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38633 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38634 echo $ECHO_N "(cached) $ECHO_C" >&6
38636 cat >conftest.$ac_ext <<_ACEOF
38639 cat confdefs.h >>conftest.$ac_ext
38640 cat >>conftest.$ac_ext <<_ACEOF
38641 /* end confdefs.h. */
38642 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38643 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38644 #define $ac_func innocuous_$ac_func
38646 /* System header to define __stub macros and hopefully few prototypes,
38647 which can conflict with char $ac_func (); below.
38648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38649 <limits.h> exists even on freestanding compilers. */
38652 # include <limits.h>
38654 # include <assert.h>
38659 /* Override any GCC internal prototype to avoid an error.
38660 Use char because int might match the return type of a GCC
38661 builtin and then its argument prototype would still apply. */
38666 /* The GNU C library defines this for functions which it implements
38667 to always fail with ENOSYS. Some functions are actually named
38668 something starting with __ and the normal name is an alias. */
38669 #if defined __stub_$ac_func || defined __stub___$ac_func
38676 return $ac_func ();
38681 rm -f conftest.$ac_objext conftest$ac_exeext
38682 if { (ac_try="$ac_link"
38683 case "(($ac_try" in
38684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38685 *) ac_try_echo=$ac_try;;
38687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38688 (eval "$ac_link") 2>conftest.er1
38690 grep -v '^ *+' conftest.er1 >conftest.err
38692 cat conftest.err >&5
38693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38694 (exit $ac_status); } && {
38695 test -z "$ac_c_werror_flag" ||
38696 test ! -s conftest.err
38697 } && test -s conftest$ac_exeext &&
38698 $as_test_x conftest$ac_exeext; then
38699 eval "$as_ac_var=yes"
38701 echo "$as_me: failed program was:" >&5
38702 sed 's/^/| /' conftest.$ac_ext >&5
38704 eval "$as_ac_var=no"
38707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38708 conftest$ac_exeext conftest.$ac_ext
38710 ac_res=`eval echo '${'$as_ac_var'}'`
38711 { echo "$as_me:$LINENO: result: $ac_res" >&5
38712 echo "${ECHO_T}$ac_res" >&6; }
38713 if test `eval echo '${'$as_ac_var'}'` = yes; then
38714 cat >>confdefs.h <<_ACEOF
38715 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38717 cat >>confdefs.h <<\_ACEOF
38718 #define HAVE_INET_NTOP 1
38725 for ac_func in gethostbyname2
38727 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38728 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38729 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38730 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38731 echo $ECHO_N "(cached) $ECHO_C" >&6
38733 cat >conftest.$ac_ext <<_ACEOF
38736 cat confdefs.h >>conftest.$ac_ext
38737 cat >>conftest.$ac_ext <<_ACEOF
38738 /* end confdefs.h. */
38739 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38741 #define $ac_func innocuous_$ac_func
38743 /* System header to define __stub macros and hopefully few prototypes,
38744 which can conflict with char $ac_func (); below.
38745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38746 <limits.h> exists even on freestanding compilers. */
38749 # include <limits.h>
38751 # include <assert.h>
38756 /* Override any GCC internal prototype to avoid an error.
38757 Use char because int might match the return type of a GCC
38758 builtin and then its argument prototype would still apply. */
38763 /* The GNU C library defines this for functions which it implements
38764 to always fail with ENOSYS. Some functions are actually named
38765 something starting with __ and the normal name is an alias. */
38766 #if defined __stub_$ac_func || defined __stub___$ac_func
38773 return $ac_func ();
38778 rm -f conftest.$ac_objext conftest$ac_exeext
38779 if { (ac_try="$ac_link"
38780 case "(($ac_try" in
38781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38782 *) ac_try_echo=$ac_try;;
38784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38785 (eval "$ac_link") 2>conftest.er1
38787 grep -v '^ *+' conftest.er1 >conftest.err
38789 cat conftest.err >&5
38790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38791 (exit $ac_status); } && {
38792 test -z "$ac_c_werror_flag" ||
38793 test ! -s conftest.err
38794 } && test -s conftest$ac_exeext &&
38795 $as_test_x conftest$ac_exeext; then
38796 eval "$as_ac_var=yes"
38798 echo "$as_me: failed program was:" >&5
38799 sed 's/^/| /' conftest.$ac_ext >&5
38801 eval "$as_ac_var=no"
38804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38805 conftest$ac_exeext conftest.$ac_ext
38807 ac_res=`eval echo '${'$as_ac_var'}'`
38808 { echo "$as_me:$LINENO: result: $ac_res" >&5
38809 echo "${ECHO_T}$ac_res" >&6; }
38810 if test `eval echo '${'$as_ac_var'}'` = yes; then
38811 cat >>confdefs.h <<_ACEOF
38812 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38814 cat >>confdefs.h <<\_ACEOF
38815 #define HAVE_GETHOSTBYNAME2 1
38822 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
38823 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
38824 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
38825 echo $ECHO_N "(cached) $ECHO_C" >&6
38828 cat >conftest.$ac_ext <<_ACEOF
38831 cat confdefs.h >>conftest.$ac_ext
38832 cat >>conftest.$ac_ext <<_ACEOF
38833 /* end confdefs.h. */
38835 #include <sys/socket.h>
38841 struct sockaddr s; s.sa_len;
38847 rm -f conftest.$ac_objext
38848 if { (ac_try="$ac_compile"
38849 case "(($ac_try" in
38850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38851 *) ac_try_echo=$ac_try;;
38853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38854 (eval "$ac_compile") 2>conftest.er1
38856 grep -v '^ *+' conftest.er1 >conftest.err
38858 cat conftest.err >&5
38859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38860 (exit $ac_status); } && {
38861 test -z "$ac_c_werror_flag" ||
38862 test ! -s conftest.err
38863 } && test -s conftest.$ac_objext; then
38865 ac_cv_struct_sockaddr_sa_len=yes
38868 echo "$as_me: failed program was:" >&5
38869 sed 's/^/| /' conftest.$ac_ext >&5
38871 ac_cv_struct_sockaddr_sa_len=no
38876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38880 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
38881 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
38883 if test $ac_cv_struct_sockaddr_sa_len = yes; then
38885 cat >>confdefs.h <<\_ACEOF
38886 #define HAVE_SA_LEN 1
38892 for ac_func in strftime
38894 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38895 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38896 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38897 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38898 echo $ECHO_N "(cached) $ECHO_C" >&6
38900 cat >conftest.$ac_ext <<_ACEOF
38903 cat confdefs.h >>conftest.$ac_ext
38904 cat >>conftest.$ac_ext <<_ACEOF
38905 /* end confdefs.h. */
38906 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38908 #define $ac_func innocuous_$ac_func
38910 /* System header to define __stub macros and hopefully few prototypes,
38911 which can conflict with char $ac_func (); below.
38912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38913 <limits.h> exists even on freestanding compilers. */
38916 # include <limits.h>
38918 # include <assert.h>
38923 /* Override any GCC internal prototype to avoid an error.
38924 Use char because int might match the return type of a GCC
38925 builtin and then its argument prototype would still apply. */
38930 /* The GNU C library defines this for functions which it implements
38931 to always fail with ENOSYS. Some functions are actually named
38932 something starting with __ and the normal name is an alias. */
38933 #if defined __stub_$ac_func || defined __stub___$ac_func
38940 return $ac_func ();
38945 rm -f conftest.$ac_objext conftest$ac_exeext
38946 if { (ac_try="$ac_link"
38947 case "(($ac_try" in
38948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38949 *) ac_try_echo=$ac_try;;
38951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38952 (eval "$ac_link") 2>conftest.er1
38954 grep -v '^ *+' conftest.er1 >conftest.err
38956 cat conftest.err >&5
38957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38958 (exit $ac_status); } && {
38959 test -z "$ac_c_werror_flag" ||
38960 test ! -s conftest.err
38961 } && test -s conftest$ac_exeext &&
38962 $as_test_x conftest$ac_exeext; then
38963 eval "$as_ac_var=yes"
38965 echo "$as_me: failed program was:" >&5
38966 sed 's/^/| /' conftest.$ac_ext >&5
38968 eval "$as_ac_var=no"
38971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38972 conftest$ac_exeext conftest.$ac_ext
38974 ac_res=`eval echo '${'$as_ac_var'}'`
38975 { echo "$as_me:$LINENO: result: $ac_res" >&5
38976 echo "${ECHO_T}$ac_res" >&6; }
38977 if test `eval echo '${'$as_ac_var'}'` = yes; then
38978 cat >>confdefs.h <<_ACEOF
38979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38983 # strftime is in -lintl on SCO UNIX.
38984 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
38985 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
38986 if test "${ac_cv_lib_intl_strftime+set}" = set; then
38987 echo $ECHO_N "(cached) $ECHO_C" >&6
38989 ac_check_lib_save_LIBS=$LIBS
38990 LIBS="-lintl $LIBS"
38991 cat >conftest.$ac_ext <<_ACEOF
38994 cat confdefs.h >>conftest.$ac_ext
38995 cat >>conftest.$ac_ext <<_ACEOF
38996 /* end confdefs.h. */
38998 /* Override any GCC internal prototype to avoid an error.
38999 Use char because int might match the return type of a GCC
39000 builtin and then its argument prototype would still apply. */
39008 return strftime ();
39013 rm -f conftest.$ac_objext conftest$ac_exeext
39014 if { (ac_try="$ac_link"
39015 case "(($ac_try" in
39016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39017 *) ac_try_echo=$ac_try;;
39019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39020 (eval "$ac_link") 2>conftest.er1
39022 grep -v '^ *+' conftest.er1 >conftest.err
39024 cat conftest.err >&5
39025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39026 (exit $ac_status); } && {
39027 test -z "$ac_c_werror_flag" ||
39028 test ! -s conftest.err
39029 } && test -s conftest$ac_exeext &&
39030 $as_test_x conftest$ac_exeext; then
39031 ac_cv_lib_intl_strftime=yes
39033 echo "$as_me: failed program was:" >&5
39034 sed 's/^/| /' conftest.$ac_ext >&5
39036 ac_cv_lib_intl_strftime=no
39039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39040 conftest$ac_exeext conftest.$ac_ext
39041 LIBS=$ac_check_lib_save_LIBS
39043 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39044 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39045 if test $ac_cv_lib_intl_strftime = yes; then
39046 cat >>confdefs.h <<\_ACEOF
39047 #define HAVE_STRFTIME 1
39050 LIBS="-lintl $LIBS"
39057 for ac_func in vprintf
39059 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39060 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39061 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39062 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39063 echo $ECHO_N "(cached) $ECHO_C" >&6
39065 cat >conftest.$ac_ext <<_ACEOF
39068 cat confdefs.h >>conftest.$ac_ext
39069 cat >>conftest.$ac_ext <<_ACEOF
39070 /* end confdefs.h. */
39071 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39072 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39073 #define $ac_func innocuous_$ac_func
39075 /* System header to define __stub macros and hopefully few prototypes,
39076 which can conflict with char $ac_func (); below.
39077 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39078 <limits.h> exists even on freestanding compilers. */
39081 # include <limits.h>
39083 # include <assert.h>
39088 /* Override any GCC internal prototype to avoid an error.
39089 Use char because int might match the return type of a GCC
39090 builtin and then its argument prototype would still apply. */
39095 /* The GNU C library defines this for functions which it implements
39096 to always fail with ENOSYS. Some functions are actually named
39097 something starting with __ and the normal name is an alias. */
39098 #if defined __stub_$ac_func || defined __stub___$ac_func
39105 return $ac_func ();
39110 rm -f conftest.$ac_objext conftest$ac_exeext
39111 if { (ac_try="$ac_link"
39112 case "(($ac_try" in
39113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39114 *) ac_try_echo=$ac_try;;
39116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39117 (eval "$ac_link") 2>conftest.er1
39119 grep -v '^ *+' conftest.er1 >conftest.err
39121 cat conftest.err >&5
39122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39123 (exit $ac_status); } && {
39124 test -z "$ac_c_werror_flag" ||
39125 test ! -s conftest.err
39126 } && test -s conftest$ac_exeext &&
39127 $as_test_x conftest$ac_exeext; then
39128 eval "$as_ac_var=yes"
39130 echo "$as_me: failed program was:" >&5
39131 sed 's/^/| /' conftest.$ac_ext >&5
39133 eval "$as_ac_var=no"
39136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39137 conftest$ac_exeext conftest.$ac_ext
39139 ac_res=`eval echo '${'$as_ac_var'}'`
39140 { echo "$as_me:$LINENO: result: $ac_res" >&5
39141 echo "${ECHO_T}$ac_res" >&6; }
39142 if test `eval echo '${'$as_ac_var'}'` = yes; then
39143 cat >>confdefs.h <<_ACEOF
39144 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39147 { echo "$as_me:$LINENO: checking for _doprnt" >&5
39148 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
39149 if test "${ac_cv_func__doprnt+set}" = set; then
39150 echo $ECHO_N "(cached) $ECHO_C" >&6
39152 cat >conftest.$ac_ext <<_ACEOF
39155 cat confdefs.h >>conftest.$ac_ext
39156 cat >>conftest.$ac_ext <<_ACEOF
39157 /* end confdefs.h. */
39158 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
39159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39160 #define _doprnt innocuous__doprnt
39162 /* System header to define __stub macros and hopefully few prototypes,
39163 which can conflict with char _doprnt (); below.
39164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39165 <limits.h> exists even on freestanding compilers. */
39168 # include <limits.h>
39170 # include <assert.h>
39175 /* Override any GCC internal prototype to avoid an error.
39176 Use char because int might match the return type of a GCC
39177 builtin and then its argument prototype would still apply. */
39182 /* The GNU C library defines this for functions which it implements
39183 to always fail with ENOSYS. Some functions are actually named
39184 something starting with __ and the normal name is an alias. */
39185 #if defined __stub__doprnt || defined __stub____doprnt
39197 rm -f conftest.$ac_objext conftest$ac_exeext
39198 if { (ac_try="$ac_link"
39199 case "(($ac_try" in
39200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39201 *) ac_try_echo=$ac_try;;
39203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39204 (eval "$ac_link") 2>conftest.er1
39206 grep -v '^ *+' conftest.er1 >conftest.err
39208 cat conftest.err >&5
39209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39210 (exit $ac_status); } && {
39211 test -z "$ac_c_werror_flag" ||
39212 test ! -s conftest.err
39213 } && test -s conftest$ac_exeext &&
39214 $as_test_x conftest$ac_exeext; then
39215 ac_cv_func__doprnt=yes
39217 echo "$as_me: failed program was:" >&5
39218 sed 's/^/| /' conftest.$ac_ext >&5
39220 ac_cv_func__doprnt=no
39223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39224 conftest$ac_exeext conftest.$ac_ext
39226 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39227 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
39228 if test $ac_cv_func__doprnt = yes; then
39230 cat >>confdefs.h <<\_ACEOF
39231 #define HAVE_DOPRNT 1
39240 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
39241 # for constant arguments. Useless!
39242 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
39243 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
39244 if test "${ac_cv_working_alloca_h+set}" = set; then
39245 echo $ECHO_N "(cached) $ECHO_C" >&6
39247 cat >conftest.$ac_ext <<_ACEOF
39250 cat confdefs.h >>conftest.$ac_ext
39251 cat >>conftest.$ac_ext <<_ACEOF
39252 /* end confdefs.h. */
39253 #include <alloca.h>
39257 char *p = (char *) alloca (2 * sizeof (int));
39263 rm -f conftest.$ac_objext conftest$ac_exeext
39264 if { (ac_try="$ac_link"
39265 case "(($ac_try" in
39266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39267 *) ac_try_echo=$ac_try;;
39269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39270 (eval "$ac_link") 2>conftest.er1
39272 grep -v '^ *+' conftest.er1 >conftest.err
39274 cat conftest.err >&5
39275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39276 (exit $ac_status); } && {
39277 test -z "$ac_c_werror_flag" ||
39278 test ! -s conftest.err
39279 } && test -s conftest$ac_exeext &&
39280 $as_test_x conftest$ac_exeext; then
39281 ac_cv_working_alloca_h=yes
39283 echo "$as_me: failed program was:" >&5
39284 sed 's/^/| /' conftest.$ac_ext >&5
39286 ac_cv_working_alloca_h=no
39289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39290 conftest$ac_exeext conftest.$ac_ext
39292 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
39293 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
39294 if test $ac_cv_working_alloca_h = yes; then
39296 cat >>confdefs.h <<\_ACEOF
39297 #define HAVE_ALLOCA_H 1
39302 { echo "$as_me:$LINENO: checking for alloca" >&5
39303 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
39304 if test "${ac_cv_func_alloca_works+set}" = set; then
39305 echo $ECHO_N "(cached) $ECHO_C" >&6
39307 cat >conftest.$ac_ext <<_ACEOF
39310 cat confdefs.h >>conftest.$ac_ext
39311 cat >>conftest.$ac_ext <<_ACEOF
39312 /* end confdefs.h. */
39314 # define alloca __builtin_alloca
39317 # include <malloc.h>
39318 # define alloca _alloca
39320 # ifdef HAVE_ALLOCA_H
39321 # include <alloca.h>
39326 # ifndef alloca /* predefined by HP cc +Olibcalls */
39337 char *p = (char *) alloca (1);
39343 rm -f conftest.$ac_objext conftest$ac_exeext
39344 if { (ac_try="$ac_link"
39345 case "(($ac_try" in
39346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39347 *) ac_try_echo=$ac_try;;
39349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39350 (eval "$ac_link") 2>conftest.er1
39352 grep -v '^ *+' conftest.er1 >conftest.err
39354 cat conftest.err >&5
39355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39356 (exit $ac_status); } && {
39357 test -z "$ac_c_werror_flag" ||
39358 test ! -s conftest.err
39359 } && test -s conftest$ac_exeext &&
39360 $as_test_x conftest$ac_exeext; then
39361 ac_cv_func_alloca_works=yes
39363 echo "$as_me: failed program was:" >&5
39364 sed 's/^/| /' conftest.$ac_ext >&5
39366 ac_cv_func_alloca_works=no
39369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39370 conftest$ac_exeext conftest.$ac_ext
39372 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
39373 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
39375 if test $ac_cv_func_alloca_works = yes; then
39377 cat >>confdefs.h <<\_ACEOF
39378 #define HAVE_ALLOCA 1
39382 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
39383 # that cause trouble. Some versions do not even contain alloca or
39384 # contain a buggy version. If you still want to use their alloca,
39385 # use ar to extract alloca.o from them instead of compiling alloca.c.
39387 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
39389 cat >>confdefs.h <<\_ACEOF
39394 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
39395 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
39396 if test "${ac_cv_os_cray+set}" = set; then
39397 echo $ECHO_N "(cached) $ECHO_C" >&6
39399 cat >conftest.$ac_ext <<_ACEOF
39402 cat confdefs.h >>conftest.$ac_ext
39403 cat >>conftest.$ac_ext <<_ACEOF
39404 /* end confdefs.h. */
39405 #if defined CRAY && ! defined CRAY2
39412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39413 $EGREP "webecray" >/dev/null 2>&1; then
39421 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
39422 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
39423 if test $ac_cv_os_cray = yes; then
39424 for ac_func in _getb67 GETB67 getb67; do
39425 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39426 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39427 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39428 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39429 echo $ECHO_N "(cached) $ECHO_C" >&6
39431 cat >conftest.$ac_ext <<_ACEOF
39434 cat confdefs.h >>conftest.$ac_ext
39435 cat >>conftest.$ac_ext <<_ACEOF
39436 /* end confdefs.h. */
39437 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39438 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39439 #define $ac_func innocuous_$ac_func
39441 /* System header to define __stub macros and hopefully few prototypes,
39442 which can conflict with char $ac_func (); below.
39443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39444 <limits.h> exists even on freestanding compilers. */
39447 # include <limits.h>
39449 # include <assert.h>
39454 /* Override any GCC internal prototype to avoid an error.
39455 Use char because int might match the return type of a GCC
39456 builtin and then its argument prototype would still apply. */
39461 /* The GNU C library defines this for functions which it implements
39462 to always fail with ENOSYS. Some functions are actually named
39463 something starting with __ and the normal name is an alias. */
39464 #if defined __stub_$ac_func || defined __stub___$ac_func
39471 return $ac_func ();
39476 rm -f conftest.$ac_objext conftest$ac_exeext
39477 if { (ac_try="$ac_link"
39478 case "(($ac_try" in
39479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39480 *) ac_try_echo=$ac_try;;
39482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39483 (eval "$ac_link") 2>conftest.er1
39485 grep -v '^ *+' conftest.er1 >conftest.err
39487 cat conftest.err >&5
39488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39489 (exit $ac_status); } && {
39490 test -z "$ac_c_werror_flag" ||
39491 test ! -s conftest.err
39492 } && test -s conftest$ac_exeext &&
39493 $as_test_x conftest$ac_exeext; then
39494 eval "$as_ac_var=yes"
39496 echo "$as_me: failed program was:" >&5
39497 sed 's/^/| /' conftest.$ac_ext >&5
39499 eval "$as_ac_var=no"
39502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39503 conftest$ac_exeext conftest.$ac_ext
39505 ac_res=`eval echo '${'$as_ac_var'}'`
39506 { echo "$as_me:$LINENO: result: $ac_res" >&5
39507 echo "${ECHO_T}$ac_res" >&6; }
39508 if test `eval echo '${'$as_ac_var'}'` = yes; then
39510 cat >>confdefs.h <<_ACEOF
39511 #define CRAY_STACKSEG_END $ac_func
39520 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
39521 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
39522 if test "${ac_cv_c_stack_direction+set}" = set; then
39523 echo $ECHO_N "(cached) $ECHO_C" >&6
39525 if test "$cross_compiling" = yes; then
39526 ac_cv_c_stack_direction=0
39528 cat >conftest.$ac_ext <<_ACEOF
39531 cat confdefs.h >>conftest.$ac_ext
39532 cat >>conftest.$ac_ext <<_ACEOF
39533 /* end confdefs.h. */
39534 $ac_includes_default
39536 find_stack_direction ()
39538 static char *addr = 0;
39543 return find_stack_direction ();
39546 return (&dummy > addr) ? 1 : -1;
39552 return find_stack_direction () < 0;
39555 rm -f conftest$ac_exeext
39556 if { (ac_try="$ac_link"
39557 case "(($ac_try" in
39558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39559 *) ac_try_echo=$ac_try;;
39561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39562 (eval "$ac_link") 2>&5
39564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39565 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39566 { (case "(($ac_try" in
39567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39568 *) ac_try_echo=$ac_try;;
39570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39571 (eval "$ac_try") 2>&5
39573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39574 (exit $ac_status); }; }; then
39575 ac_cv_c_stack_direction=1
39577 echo "$as_me: program exited with status $ac_status" >&5
39578 echo "$as_me: failed program was:" >&5
39579 sed 's/^/| /' conftest.$ac_ext >&5
39581 ( exit $ac_status )
39582 ac_cv_c_stack_direction=-1
39584 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39589 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
39590 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
39592 cat >>confdefs.h <<_ACEOF
39593 #define STACK_DIRECTION $ac_cv_c_stack_direction
39599 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
39600 # -lseq on Dynix/PTX, -lgen on Unixware.
39601 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
39602 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
39603 if test "${ac_cv_search_getmntent+set}" = set; then
39604 echo $ECHO_N "(cached) $ECHO_C" >&6
39606 ac_func_search_save_LIBS=$LIBS
39607 cat >conftest.$ac_ext <<_ACEOF
39610 cat confdefs.h >>conftest.$ac_ext
39611 cat >>conftest.$ac_ext <<_ACEOF
39612 /* end confdefs.h. */
39614 /* Override any GCC internal prototype to avoid an error.
39615 Use char because int might match the return type of a GCC
39616 builtin and then its argument prototype would still apply. */
39624 return getmntent ();
39629 for ac_lib in '' sun seq gen; do
39630 if test -z "$ac_lib"; then
39631 ac_res="none required"
39634 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
39636 rm -f conftest.$ac_objext conftest$ac_exeext
39637 if { (ac_try="$ac_link"
39638 case "(($ac_try" in
39639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39640 *) ac_try_echo=$ac_try;;
39642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39643 (eval "$ac_link") 2>conftest.er1
39645 grep -v '^ *+' conftest.er1 >conftest.err
39647 cat conftest.err >&5
39648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39649 (exit $ac_status); } && {
39650 test -z "$ac_c_werror_flag" ||
39651 test ! -s conftest.err
39652 } && test -s conftest$ac_exeext &&
39653 $as_test_x conftest$ac_exeext; then
39654 ac_cv_search_getmntent=$ac_res
39656 echo "$as_me: failed program was:" >&5
39657 sed 's/^/| /' conftest.$ac_ext >&5
39662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39664 if test "${ac_cv_search_getmntent+set}" = set; then
39668 if test "${ac_cv_search_getmntent+set}" = set; then
39671 ac_cv_search_getmntent=no
39673 rm conftest.$ac_ext
39674 LIBS=$ac_func_search_save_LIBS
39676 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
39677 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
39678 ac_res=$ac_cv_search_getmntent
39679 if test "$ac_res" != no; then
39680 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
39681 ac_cv_func_getmntent=yes
39683 cat >>confdefs.h <<\_ACEOF
39684 #define HAVE_GETMNTENT 1
39688 ac_cv_func_getmntent=no
39692 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
39693 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
39694 if test "${ac_cv_func_closedir_void+set}" = set; then
39695 echo $ECHO_N "(cached) $ECHO_C" >&6
39697 if test "$cross_compiling" = yes; then
39698 ac_cv_func_closedir_void=yes
39700 cat >conftest.$ac_ext <<_ACEOF
39703 cat confdefs.h >>conftest.$ac_ext
39704 cat >>conftest.$ac_ext <<_ACEOF
39705 /* end confdefs.h. */
39706 $ac_includes_default
39707 #include <$ac_header_dirent>
39708 #ifndef __cplusplus
39715 return closedir (opendir (".")) != 0;
39720 rm -f conftest$ac_exeext
39721 if { (ac_try="$ac_link"
39722 case "(($ac_try" in
39723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39724 *) ac_try_echo=$ac_try;;
39726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39727 (eval "$ac_link") 2>&5
39729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39730 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39731 { (case "(($ac_try" in
39732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39733 *) ac_try_echo=$ac_try;;
39735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39736 (eval "$ac_try") 2>&5
39738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39739 (exit $ac_status); }; }; then
39740 ac_cv_func_closedir_void=no
39742 echo "$as_me: program exited with status $ac_status" >&5
39743 echo "$as_me: failed program was:" >&5
39744 sed 's/^/| /' conftest.$ac_ext >&5
39746 ( exit $ac_status )
39747 ac_cv_func_closedir_void=yes
39749 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39754 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
39755 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
39756 if test $ac_cv_func_closedir_void = yes; then
39758 cat >>confdefs.h <<\_ACEOF
39759 #define CLOSEDIR_VOID 1
39764 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
39765 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
39766 if test "${ac_cv_func_setpgrp_void+set}" = set; then
39767 echo $ECHO_N "(cached) $ECHO_C" >&6
39769 if test "$cross_compiling" = yes; then
39770 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
39771 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
39772 { (exit 1); exit 1; }; }
39774 cat >conftest.$ac_ext <<_ACEOF
39777 cat confdefs.h >>conftest.$ac_ext
39778 cat >>conftest.$ac_ext <<_ACEOF
39779 /* end confdefs.h. */
39780 $ac_includes_default
39784 /* If this system has a BSD-style setpgrp which takes arguments,
39785 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
39786 exit successfully. */
39787 return setpgrp (1,1) != -1;
39792 rm -f conftest$ac_exeext
39793 if { (ac_try="$ac_link"
39794 case "(($ac_try" in
39795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39796 *) ac_try_echo=$ac_try;;
39798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39799 (eval "$ac_link") 2>&5
39801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39802 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39803 { (case "(($ac_try" in
39804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39805 *) ac_try_echo=$ac_try;;
39807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39808 (eval "$ac_try") 2>&5
39810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39811 (exit $ac_status); }; }; then
39812 ac_cv_func_setpgrp_void=no
39814 echo "$as_me: program exited with status $ac_status" >&5
39815 echo "$as_me: failed program was:" >&5
39816 sed 's/^/| /' conftest.$ac_ext >&5
39818 ( exit $ac_status )
39819 ac_cv_func_setpgrp_void=yes
39821 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39826 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
39827 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
39828 if test $ac_cv_func_setpgrp_void = yes; then
39830 cat >>confdefs.h <<\_ACEOF
39831 #define SETPGRP_VOID 1
39835 # AC_FUNC_FNMATCH dnl use local version
39837 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
39838 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
39839 if test "${ac_cv_lib_intl_gettext+set}" = set; then
39840 echo $ECHO_N "(cached) $ECHO_C" >&6
39842 ac_check_lib_save_LIBS=$LIBS
39843 LIBS="-lintl $LIBS"
39844 cat >conftest.$ac_ext <<_ACEOF
39847 cat confdefs.h >>conftest.$ac_ext
39848 cat >>conftest.$ac_ext <<_ACEOF
39849 /* end confdefs.h. */
39851 /* Override any GCC internal prototype to avoid an error.
39852 Use char because int might match the return type of a GCC
39853 builtin and then its argument prototype would still apply. */
39866 rm -f conftest.$ac_objext conftest$ac_exeext
39867 if { (ac_try="$ac_link"
39868 case "(($ac_try" in
39869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39870 *) ac_try_echo=$ac_try;;
39872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39873 (eval "$ac_link") 2>conftest.er1
39875 grep -v '^ *+' conftest.er1 >conftest.err
39877 cat conftest.err >&5
39878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39879 (exit $ac_status); } && {
39880 test -z "$ac_c_werror_flag" ||
39881 test ! -s conftest.err
39882 } && test -s conftest$ac_exeext &&
39883 $as_test_x conftest$ac_exeext; then
39884 ac_cv_lib_intl_gettext=yes
39886 echo "$as_me: failed program was:" >&5
39887 sed 's/^/| /' conftest.$ac_ext >&5
39889 ac_cv_lib_intl_gettext=no
39892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39893 conftest$ac_exeext conftest.$ac_ext
39894 LIBS=$ac_check_lib_save_LIBS
39896 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
39897 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
39898 if test $ac_cv_lib_intl_gettext = yes; then
39899 LIBS="$LIBS -lintl"
39904 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
39905 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
39906 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
39907 echo $ECHO_N "(cached) $ECHO_C" >&6
39909 ac_check_lib_save_LIBS=$LIBS
39911 cat >conftest.$ac_ext <<_ACEOF
39914 cat confdefs.h >>conftest.$ac_ext
39915 cat >>conftest.$ac_ext <<_ACEOF
39916 /* end confdefs.h. */
39918 /* Override any GCC internal prototype to avoid an error.
39919 Use char because int might match the return type of a GCC
39920 builtin and then its argument prototype would still apply. */
39928 return getpwnam ();
39933 rm -f conftest.$ac_objext conftest$ac_exeext
39934 if { (ac_try="$ac_link"
39935 case "(($ac_try" in
39936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39937 *) ac_try_echo=$ac_try;;
39939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39940 (eval "$ac_link") 2>conftest.er1
39942 grep -v '^ *+' conftest.er1 >conftest.err
39944 cat conftest.err >&5
39945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39946 (exit $ac_status); } && {
39947 test -z "$ac_c_werror_flag" ||
39948 test ! -s conftest.err
39949 } && test -s conftest$ac_exeext &&
39950 $as_test_x conftest$ac_exeext; then
39951 ac_cv_lib_sun_getpwnam=yes
39953 echo "$as_me: failed program was:" >&5
39954 sed 's/^/| /' conftest.$ac_ext >&5
39956 ac_cv_lib_sun_getpwnam=no
39959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39960 conftest$ac_exeext conftest.$ac_ext
39961 LIBS=$ac_check_lib_save_LIBS
39963 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
39964 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
39965 if test $ac_cv_lib_sun_getpwnam = yes; then
39966 cat >>confdefs.h <<_ACEOF
39967 #define HAVE_LIBSUN 1
39976 for ac_header in zlib.h
39978 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39980 { echo "$as_me:$LINENO: checking for $ac_header" >&5
39981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
39982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39983 echo $ECHO_N "(cached) $ECHO_C" >&6
39985 ac_res=`eval echo '${'$as_ac_Header'}'`
39986 { echo "$as_me:$LINENO: result: $ac_res" >&5
39987 echo "${ECHO_T}$ac_res" >&6; }
39989 # Is the header compilable?
39990 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
39991 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
39992 cat >conftest.$ac_ext <<_ACEOF
39995 cat confdefs.h >>conftest.$ac_ext
39996 cat >>conftest.$ac_ext <<_ACEOF
39997 /* end confdefs.h. */
39998 $ac_includes_default
39999 #include <$ac_header>
40001 rm -f conftest.$ac_objext
40002 if { (ac_try="$ac_compile"
40003 case "(($ac_try" in
40004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40005 *) ac_try_echo=$ac_try;;
40007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40008 (eval "$ac_compile") 2>conftest.er1
40010 grep -v '^ *+' conftest.er1 >conftest.err
40012 cat conftest.err >&5
40013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40014 (exit $ac_status); } && {
40015 test -z "$ac_c_werror_flag" ||
40016 test ! -s conftest.err
40017 } && test -s conftest.$ac_objext; then
40018 ac_header_compiler=yes
40020 echo "$as_me: failed program was:" >&5
40021 sed 's/^/| /' conftest.$ac_ext >&5
40023 ac_header_compiler=no
40026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40027 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40028 echo "${ECHO_T}$ac_header_compiler" >&6; }
40030 # Is the header present?
40031 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40032 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40033 cat >conftest.$ac_ext <<_ACEOF
40036 cat confdefs.h >>conftest.$ac_ext
40037 cat >>conftest.$ac_ext <<_ACEOF
40038 /* end confdefs.h. */
40039 #include <$ac_header>
40041 if { (ac_try="$ac_cpp conftest.$ac_ext"
40042 case "(($ac_try" in
40043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40044 *) ac_try_echo=$ac_try;;
40046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40047 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40049 grep -v '^ *+' conftest.er1 >conftest.err
40051 cat conftest.err >&5
40052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40053 (exit $ac_status); } >/dev/null && {
40054 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40055 test ! -s conftest.err
40057 ac_header_preproc=yes
40059 echo "$as_me: failed program was:" >&5
40060 sed 's/^/| /' conftest.$ac_ext >&5
40062 ac_header_preproc=no
40065 rm -f conftest.err conftest.$ac_ext
40066 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40067 echo "${ECHO_T}$ac_header_preproc" >&6; }
40069 # So? What about this header?
40070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40072 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40073 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40075 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40076 ac_header_preproc=yes
40079 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40080 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40081 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40082 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40083 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40084 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40085 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40086 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
40087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40088 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40089 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40090 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40094 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40097 echo $ECHO_N "(cached) $ECHO_C" >&6
40099 eval "$as_ac_Header=\$ac_header_preproc"
40101 ac_res=`eval echo '${'$as_ac_Header'}'`
40102 { echo "$as_me:$LINENO: result: $ac_res" >&5
40103 echo "${ECHO_T}$ac_res" >&6; }
40106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40107 cat >>confdefs.h <<_ACEOF
40108 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40115 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
40116 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
40117 if test "${ac_cv_lib_z_deflate+set}" = set; then
40118 echo $ECHO_N "(cached) $ECHO_C" >&6
40120 ac_check_lib_save_LIBS=$LIBS
40122 cat >conftest.$ac_ext <<_ACEOF
40125 cat confdefs.h >>conftest.$ac_ext
40126 cat >>conftest.$ac_ext <<_ACEOF
40127 /* end confdefs.h. */
40129 /* Override any GCC internal prototype to avoid an error.
40130 Use char because int might match the return type of a GCC
40131 builtin and then its argument prototype would still apply. */
40144 rm -f conftest.$ac_objext conftest$ac_exeext
40145 if { (ac_try="$ac_link"
40146 case "(($ac_try" in
40147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40148 *) ac_try_echo=$ac_try;;
40150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40151 (eval "$ac_link") 2>conftest.er1
40153 grep -v '^ *+' conftest.er1 >conftest.err
40155 cat conftest.err >&5
40156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40157 (exit $ac_status); } && {
40158 test -z "$ac_c_werror_flag" ||
40159 test ! -s conftest.err
40160 } && test -s conftest$ac_exeext &&
40161 $as_test_x conftest$ac_exeext; then
40162 ac_cv_lib_z_deflate=yes
40164 echo "$as_me: failed program was:" >&5
40165 sed 's/^/| /' conftest.$ac_ext >&5
40167 ac_cv_lib_z_deflate=no
40170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40171 conftest$ac_exeext conftest.$ac_ext
40172 LIBS=$ac_check_lib_save_LIBS
40174 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
40175 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
40176 if test $ac_cv_lib_z_deflate = yes; then
40181 if test x$FDLIBS = x-lz; then
40182 cat >>confdefs.h <<\_ACEOF
40183 #define HAVE_LIBZ 1
40190 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40191 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40192 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40193 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40194 echo $ECHO_N "(cached) $ECHO_C" >&6
40196 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40197 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40199 # Is the header compilable?
40200 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
40201 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
40202 cat >conftest.$ac_ext <<_ACEOF
40205 cat confdefs.h >>conftest.$ac_ext
40206 cat >>conftest.$ac_ext <<_ACEOF
40207 /* end confdefs.h. */
40208 $ac_includes_default
40209 #include <sys/acl.h>
40211 rm -f conftest.$ac_objext
40212 if { (ac_try="$ac_compile"
40213 case "(($ac_try" in
40214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40215 *) ac_try_echo=$ac_try;;
40217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40218 (eval "$ac_compile") 2>conftest.er1
40220 grep -v '^ *+' conftest.er1 >conftest.err
40222 cat conftest.err >&5
40223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40224 (exit $ac_status); } && {
40225 test -z "$ac_c_werror_flag" ||
40226 test ! -s conftest.err
40227 } && test -s conftest.$ac_objext; then
40228 ac_header_compiler=yes
40230 echo "$as_me: failed program was:" >&5
40231 sed 's/^/| /' conftest.$ac_ext >&5
40233 ac_header_compiler=no
40236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40237 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40238 echo "${ECHO_T}$ac_header_compiler" >&6; }
40240 # Is the header present?
40241 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
40242 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
40243 cat >conftest.$ac_ext <<_ACEOF
40246 cat confdefs.h >>conftest.$ac_ext
40247 cat >>conftest.$ac_ext <<_ACEOF
40248 /* end confdefs.h. */
40249 #include <sys/acl.h>
40251 if { (ac_try="$ac_cpp conftest.$ac_ext"
40252 case "(($ac_try" in
40253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40254 *) ac_try_echo=$ac_try;;
40256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40257 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40259 grep -v '^ *+' conftest.er1 >conftest.err
40261 cat conftest.err >&5
40262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40263 (exit $ac_status); } >/dev/null && {
40264 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40265 test ! -s conftest.err
40267 ac_header_preproc=yes
40269 echo "$as_me: failed program was:" >&5
40270 sed 's/^/| /' conftest.$ac_ext >&5
40272 ac_header_preproc=no
40275 rm -f conftest.err conftest.$ac_ext
40276 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40277 echo "${ECHO_T}$ac_header_preproc" >&6; }
40279 # So? What about this header?
40280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40282 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
40283 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40284 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
40285 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
40286 ac_header_preproc=yes
40289 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
40290 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
40291 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
40292 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
40293 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
40294 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
40295 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
40296 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
40297 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
40298 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
40299 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
40300 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
40304 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40305 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40306 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40307 echo $ECHO_N "(cached) $ECHO_C" >&6
40309 ac_cv_header_sys_acl_h=$ac_header_preproc
40311 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40312 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40317 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
40318 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
40319 if test "${ac_cv_func_acl_get_file+set}" = set; then
40320 echo $ECHO_N "(cached) $ECHO_C" >&6
40322 cat >conftest.$ac_ext <<_ACEOF
40325 cat confdefs.h >>conftest.$ac_ext
40326 cat >>conftest.$ac_ext <<_ACEOF
40327 /* end confdefs.h. */
40328 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
40329 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40330 #define acl_get_file innocuous_acl_get_file
40332 /* System header to define __stub macros and hopefully few prototypes,
40333 which can conflict with char acl_get_file (); below.
40334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40335 <limits.h> exists even on freestanding compilers. */
40338 # include <limits.h>
40340 # include <assert.h>
40343 #undef acl_get_file
40345 /* Override any GCC internal prototype to avoid an error.
40346 Use char because int might match the return type of a GCC
40347 builtin and then its argument prototype would still apply. */
40351 char acl_get_file ();
40352 /* The GNU C library defines this for functions which it implements
40353 to always fail with ENOSYS. Some functions are actually named
40354 something starting with __ and the normal name is an alias. */
40355 #if defined __stub_acl_get_file || defined __stub___acl_get_file
40362 return acl_get_file ();
40367 rm -f conftest.$ac_objext conftest$ac_exeext
40368 if { (ac_try="$ac_link"
40369 case "(($ac_try" in
40370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40371 *) ac_try_echo=$ac_try;;
40373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40374 (eval "$ac_link") 2>conftest.er1
40376 grep -v '^ *+' conftest.er1 >conftest.err
40378 cat conftest.err >&5
40379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40380 (exit $ac_status); } && {
40381 test -z "$ac_c_werror_flag" ||
40382 test ! -s conftest.err
40383 } && test -s conftest$ac_exeext &&
40384 $as_test_x conftest$ac_exeext; then
40385 ac_cv_func_acl_get_file=yes
40387 echo "$as_me: failed program was:" >&5
40388 sed 's/^/| /' conftest.$ac_ext >&5
40390 ac_cv_func_acl_get_file=no
40393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40394 conftest$ac_exeext conftest.$ac_ext
40396 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
40397 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
40398 if test $ac_cv_func_acl_get_file = yes; then
40402 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
40403 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
40404 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
40405 echo $ECHO_N "(cached) $ECHO_C" >&6
40407 ac_check_lib_save_LIBS=$LIBS
40409 cat >conftest.$ac_ext <<_ACEOF
40412 cat confdefs.h >>conftest.$ac_ext
40413 cat >>conftest.$ac_ext <<_ACEOF
40414 /* end confdefs.h. */
40416 /* Override any GCC internal prototype to avoid an error.
40417 Use char because int might match the return type of a GCC
40418 builtin and then its argument prototype would still apply. */
40422 char acl_get_file ();
40426 return acl_get_file ();
40431 rm -f conftest.$ac_objext conftest$ac_exeext
40432 if { (ac_try="$ac_link"
40433 case "(($ac_try" in
40434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40435 *) ac_try_echo=$ac_try;;
40437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40438 (eval "$ac_link") 2>conftest.er1
40440 grep -v '^ *+' conftest.er1 >conftest.err
40442 cat conftest.err >&5
40443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40444 (exit $ac_status); } && {
40445 test -z "$ac_c_werror_flag" ||
40446 test ! -s conftest.err
40447 } && test -s conftest$ac_exeext &&
40448 $as_test_x conftest$ac_exeext; then
40449 ac_cv_lib_acl_acl_get_file=yes
40451 echo "$as_me: failed program was:" >&5
40452 sed 's/^/| /' conftest.$ac_ext >&5
40454 ac_cv_lib_acl_acl_get_file=no
40457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40458 conftest$ac_exeext conftest.$ac_ext
40459 LIBS=$ac_check_lib_save_LIBS
40461 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
40462 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
40463 if test $ac_cv_lib_acl_acl_get_file = yes; then
40466 FDLIBS="-lacl $FDLIBS"
40470 { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
40471 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
40472 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
40473 echo $ECHO_N "(cached) $ECHO_C" >&6
40475 ac_check_lib_save_LIBS=$LIBS
40477 cat >conftest.$ac_ext <<_ACEOF
40480 cat confdefs.h >>conftest.$ac_ext
40481 cat >>conftest.$ac_ext <<_ACEOF
40482 /* end confdefs.h. */
40484 /* Override any GCC internal prototype to avoid an error.
40485 Use char because int might match the return type of a GCC
40486 builtin and then its argument prototype would still apply. */
40494 return acltotext ();
40499 rm -f conftest.$ac_objext conftest$ac_exeext
40500 if { (ac_try="$ac_link"
40501 case "(($ac_try" in
40502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40503 *) ac_try_echo=$ac_try;;
40505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40506 (eval "$ac_link") 2>conftest.er1
40508 grep -v '^ *+' conftest.er1 >conftest.err
40510 cat conftest.err >&5
40511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40512 (exit $ac_status); } && {
40513 test -z "$ac_c_werror_flag" ||
40514 test ! -s conftest.err
40515 } && test -s conftest$ac_exeext &&
40516 $as_test_x conftest$ac_exeext; then
40517 ac_cv_lib_sec_acltotext=yes
40519 echo "$as_me: failed program was:" >&5
40520 sed 's/^/| /' conftest.$ac_ext >&5
40522 ac_cv_lib_sec_acltotext=no
40525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40526 conftest$ac_exeext conftest.$ac_ext
40527 LIBS=$ac_check_lib_save_LIBS
40529 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
40530 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
40531 if test $ac_cv_lib_sec_acltotext = yes; then
40534 FDLIBS="-lsec $FDLIBS"
40547 if test $have_acl = yes; then
40548 cat >>confdefs.h <<\_ACEOF
40555 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
40556 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
40557 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
40558 echo $ECHO_N "(cached) $ECHO_C" >&6
40560 ac_check_lib_save_LIBS=$LIBS
40561 LIBS="-lpthread $LIBS"
40562 cat >conftest.$ac_ext <<_ACEOF
40565 cat confdefs.h >>conftest.$ac_ext
40566 cat >>conftest.$ac_ext <<_ACEOF
40567 /* end confdefs.h. */
40569 /* Override any GCC internal prototype to avoid an error.
40570 Use char because int might match the return type of a GCC
40571 builtin and then its argument prototype would still apply. */
40575 char pthread_create ();
40579 return pthread_create ();
40584 rm -f conftest.$ac_objext conftest$ac_exeext
40585 if { (ac_try="$ac_link"
40586 case "(($ac_try" in
40587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40588 *) ac_try_echo=$ac_try;;
40590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40591 (eval "$ac_link") 2>conftest.er1
40593 grep -v '^ *+' conftest.er1 >conftest.err
40595 cat conftest.err >&5
40596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40597 (exit $ac_status); } && {
40598 test -z "$ac_c_werror_flag" ||
40599 test ! -s conftest.err
40600 } && test -s conftest$ac_exeext &&
40601 $as_test_x conftest$ac_exeext; then
40602 ac_cv_lib_pthread_pthread_create=yes
40604 echo "$as_me: failed program was:" >&5
40605 sed 's/^/| /' conftest.$ac_ext >&5
40607 ac_cv_lib_pthread_pthread_create=no
40610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40611 conftest$ac_exeext conftest.$ac_ext
40612 LIBS=$ac_check_lib_save_LIBS
40614 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
40615 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
40616 if test $ac_cv_lib_pthread_pthread_create = yes; then
40617 PTHREAD_LIB="-lpthread"
40620 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
40621 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
40622 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
40623 echo $ECHO_N "(cached) $ECHO_C" >&6
40625 ac_check_lib_save_LIBS=$LIBS
40626 LIBS="-lpthreads $LIBS"
40627 cat >conftest.$ac_ext <<_ACEOF
40630 cat confdefs.h >>conftest.$ac_ext
40631 cat >>conftest.$ac_ext <<_ACEOF
40632 /* end confdefs.h. */
40634 /* Override any GCC internal prototype to avoid an error.
40635 Use char because int might match the return type of a GCC
40636 builtin and then its argument prototype would still apply. */
40640 char pthread_create ();
40644 return pthread_create ();
40649 rm -f conftest.$ac_objext conftest$ac_exeext
40650 if { (ac_try="$ac_link"
40651 case "(($ac_try" in
40652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40653 *) ac_try_echo=$ac_try;;
40655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40656 (eval "$ac_link") 2>conftest.er1
40658 grep -v '^ *+' conftest.er1 >conftest.err
40660 cat conftest.err >&5
40661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40662 (exit $ac_status); } && {
40663 test -z "$ac_c_werror_flag" ||
40664 test ! -s conftest.err
40665 } && test -s conftest$ac_exeext &&
40666 $as_test_x conftest$ac_exeext; then
40667 ac_cv_lib_pthreads_pthread_create=yes
40669 echo "$as_me: failed program was:" >&5
40670 sed 's/^/| /' conftest.$ac_ext >&5
40672 ac_cv_lib_pthreads_pthread_create=no
40675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40676 conftest$ac_exeext conftest.$ac_ext
40677 LIBS=$ac_check_lib_save_LIBS
40679 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
40680 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
40681 if test $ac_cv_lib_pthreads_pthread_create = yes; then
40682 PTHREAD_LIB="-lpthreads"
40685 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
40686 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
40687 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
40688 echo $ECHO_N "(cached) $ECHO_C" >&6
40690 ac_check_lib_save_LIBS=$LIBS
40692 cat >conftest.$ac_ext <<_ACEOF
40695 cat confdefs.h >>conftest.$ac_ext
40696 cat >>conftest.$ac_ext <<_ACEOF
40697 /* end confdefs.h. */
40699 /* Override any GCC internal prototype to avoid an error.
40700 Use char because int might match the return type of a GCC
40701 builtin and then its argument prototype would still apply. */
40705 char pthread_create ();
40709 return pthread_create ();
40714 rm -f conftest.$ac_objext conftest$ac_exeext
40715 if { (ac_try="$ac_link"
40716 case "(($ac_try" in
40717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40718 *) ac_try_echo=$ac_try;;
40720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40721 (eval "$ac_link") 2>conftest.er1
40723 grep -v '^ *+' conftest.er1 >conftest.err
40725 cat conftest.err >&5
40726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40727 (exit $ac_status); } && {
40728 test -z "$ac_c_werror_flag" ||
40729 test ! -s conftest.err
40730 } && test -s conftest$ac_exeext &&
40731 $as_test_x conftest$ac_exeext; then
40732 ac_cv_lib_c_r_pthread_create=yes
40734 echo "$as_me: failed program was:" >&5
40735 sed 's/^/| /' conftest.$ac_ext >&5
40737 ac_cv_lib_c_r_pthread_create=no
40740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40741 conftest$ac_exeext conftest.$ac_ext
40742 LIBS=$ac_check_lib_save_LIBS
40744 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
40745 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
40746 if test $ac_cv_lib_c_r_pthread_create = yes; then
40747 PTHREAD_LIB="-lc_r"
40750 { echo "$as_me:$LINENO: checking for pthread_create" >&5
40751 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
40752 if test "${ac_cv_func_pthread_create+set}" = set; then
40753 echo $ECHO_N "(cached) $ECHO_C" >&6
40755 cat >conftest.$ac_ext <<_ACEOF
40758 cat confdefs.h >>conftest.$ac_ext
40759 cat >>conftest.$ac_ext <<_ACEOF
40760 /* end confdefs.h. */
40761 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
40762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40763 #define pthread_create innocuous_pthread_create
40765 /* System header to define __stub macros and hopefully few prototypes,
40766 which can conflict with char pthread_create (); below.
40767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40768 <limits.h> exists even on freestanding compilers. */
40771 # include <limits.h>
40773 # include <assert.h>
40776 #undef pthread_create
40778 /* Override any GCC internal prototype to avoid an error.
40779 Use char because int might match the return type of a GCC
40780 builtin and then its argument prototype would still apply. */
40784 char pthread_create ();
40785 /* The GNU C library defines this for functions which it implements
40786 to always fail with ENOSYS. Some functions are actually named
40787 something starting with __ and the normal name is an alias. */
40788 #if defined __stub_pthread_create || defined __stub___pthread_create
40795 return pthread_create ();
40800 rm -f conftest.$ac_objext conftest$ac_exeext
40801 if { (ac_try="$ac_link"
40802 case "(($ac_try" in
40803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40804 *) ac_try_echo=$ac_try;;
40806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40807 (eval "$ac_link") 2>conftest.er1
40809 grep -v '^ *+' conftest.er1 >conftest.err
40811 cat conftest.err >&5
40812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40813 (exit $ac_status); } && {
40814 test -z "$ac_c_werror_flag" ||
40815 test ! -s conftest.err
40816 } && test -s conftest$ac_exeext &&
40817 $as_test_x conftest$ac_exeext; then
40818 ac_cv_func_pthread_create=yes
40820 echo "$as_me: failed program was:" >&5
40821 sed 's/^/| /' conftest.$ac_ext >&5
40823 ac_cv_func_pthread_create=no
40826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40827 conftest$ac_exeext conftest.$ac_ext
40829 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
40830 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
40846 cat >>confdefs.h <<\_ACEOF
40851 CFLAGS=${CFLAGS--O}
40853 if test x$have_gcc = xyes ; then
40854 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
40855 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
40857 LDFLAGS=${LDFLAGS--O}
40858 DB_LIBS="${SQL_LFLAGS}"
40859 CPPFLAGS="$CPPFLAGS"
40886 PFILES="platforms/Makefile"
40890 hostname=`uname -n | cut -d '.' -f 1`
40891 if test x${hostname} = x ; then
40892 hostname="localhost"
40894 case "$DISTNAME" in
40897 PSCMD="ps -e -o pid,comm"
40898 PFILES="${PFILES} \
40899 platforms/aix/Makefile"
40900 TAPEDRIVE="/dev/rmt0.1"
40904 PTHREAD_LIB="-lpthread -lexc"
40905 if test "${CC}" = "gcc" ; then
40912 TAPEDRIVE="/dev/nrmt0"
40915 DISTVER=`uname -a |awk '{print $3}'`
40916 TAPEDRIVE="/dev/nrmt0"
40917 PTHREAD_LIB="-pthread"
40918 CFLAGS="${CFLAGS} -pthread"
40919 PSCMD="ps -ax -o pid,command"
40922 PFILES="${PFILES} \
40923 platforms/bsdi/Makefile \
40924 platforms/bsdi/bacula-fd \
40925 platforms/bsdi/bacula-sd \
40926 platforms/bsdi/bacula-dir"
40927 largefile_support="yes"
40930 DISTVER=`uname -a |awk '{print $3}'`
40931 TAPEDRIVE="/dev/nrst0"
40933 WCFLAGS="-mwindows"
40934 WLDFLAGS="-mwindows"
40938 TAPEDRIVE="/dev/nst0"
40939 PSCMD="ps -e -o pid,command"
40941 PFILES="${PFILES} \
40942 platforms/darwin/Makefile"
40945 ping -c 1 $hostname 2>&1 1>/dev/null
40946 if test ! $? = 0; then
40947 hostname="localhost"
40949 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
40952 DISTVER=`cat /etc/debian_version`
40953 if test -f /etc/lsb-release ; then
40955 if test "x$DISTRIB_ID" != "x" ; then
40956 DISTNAME=$DISTRIB_ID
40958 if test "x$DISTRIB_RELEASE" != "x" ; then
40959 DISTVER=$DISTRIB_RELEASE
40962 if test "$DISTNAME" = "Ubuntu" ; then
40965 TAPEDRIVE="/dev/nst0"
40966 PSCMD="ps -e -o pid,command"
40967 if test "$DISTNAME" = "ubuntu" ; then
40968 PFILES="${PFILES} \
40969 platforms/ubuntu/Makefile \
40970 platforms/ubuntu/bacula-fd \
40971 platforms/ubuntu/bacula-sd \
40972 platforms/ubuntu/bacula-dir"
40974 PFILES="${PFILES} \
40975 platforms/debian/Makefile \
40976 platforms/debian/bacula-fd \
40977 platforms/debian/bacula-sd \
40978 platforms/debian/bacula-dir"
40982 ping -c 1 $hostname 2>&1 1>/dev/null
40983 if test ! $? = 0; then
40984 hostname="localhost"
40986 DISTVER=`uname -a |awk '{print $3}'`
40987 VER=`echo $DISTVER | cut -c 1`
40988 if test x$VER = x4 ; then
40989 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
40990 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
40994 TAPEDRIVE="/dev/nrsa0"
40995 PSCMD="ps -ax -o pid,command"
40996 PFILES="${PFILES} \
40997 platforms/freebsd/Makefile \
40998 platforms/freebsd/bacula-fd \
40999 platforms/freebsd/bacula-sd \
41000 platforms/freebsd/bacula-dir"
41001 largefile_support="yes"
41004 PSCMD="UNIX95=1; ps -e -o pid,comm"
41005 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
41007 TAPEDRIVE="/dev/rmt/0hnb"
41008 PTHREAD_LIB="-lpthread"
41009 cat >>confdefs.h <<\_ACEOF
41010 #define _INCLUDE_LONGLONG 1
41016 TAPEDRIVE="/dev/rmt/0cbn"
41017 PSCMD="ps -e -o pid,comm"
41018 PFILES="${PFILES} \
41019 platforms/irix/Makefile \
41020 platforms/irix/bacula-fd \
41021 platforms/irix/bacula-sd \
41022 platforms/irix/bacula-dir"
41025 DISTVER=`uname -a |awk '{print $3}'`
41028 TAPEDRIVE="/dev/nrst0"
41029 PSCMD="ps -ax -o pid,command"
41030 PTHREAD_LIB="-pthread"
41031 CFLAGS="${CFLAGS} -pthread"
41034 DISTVER=`uname -a |awk '{print $3}'`
41037 TAPEDRIVE="/dev/nrst0"
41038 PSCMD="ps -ax -o pid,command"
41039 PTHREAD_LIB="-pthread"
41040 CFLAGS="${CFLAGS} -pthread"
41041 PFILES="${PFILES} \
41042 platforms/openbsd/Makefile \
41043 platforms/openbsd/bacula-fd \
41044 platforms/openbsd/bacula-sd \
41045 platforms/openbsd/bacula-dir"
41048 ping -c 1 $hostname 2>&1 1>/dev/null
41049 if test ! $? = 0; then
41050 hostname="localhost"
41052 if test -f /etc/whitebox-release ; then
41053 f=/etc/whitebox-release
41055 f=/etc/redhat-release
41057 if test `cat $f | grep release |\
41058 cut -f 3 -d ' '`x = "Enterprise"x ; then
41059 DISTVER="Enterprise "`cat $f | grep release |\
41062 DISTVER=`cat /etc/redhat-release | grep release |\
41065 TAPEDRIVE="/dev/nst0"
41066 PSCMD="ps -e -o pid,command"
41067 PFILES="${PFILES} \
41068 platforms/redhat/Makefile \
41069 platforms/redhat/bacula-fd \
41070 platforms/redhat/bacula-sd \
41071 platforms/redhat/bacula-dir \
41072 platforms/redhat/bacula.spec \
41076 ping -c 1 $hostname 2>&1 1>/dev/null
41077 if test ! $? = 0; then
41078 hostname="localhost"
41080 DISTVER=`cat /etc/mandrake-release | grep release |\
41082 TAPEDRIVE="/dev/nst0"
41083 PSCMD="ps -e -o pid,command"
41084 PFILES="${PFILES} \
41085 platforms/mandrake/Makefile \
41086 platforms/mandrake/bacula-fd \
41087 platforms/mandrake/bacula-sd \
41088 platforms/mandrake/bacula-dir \
41089 platforms/mandrake/bacula.spec \
41093 ping -c 1 $hostname 2>&1 1>/dev/null
41094 if test ! $? = 0; then
41095 hostname="localhost"
41097 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
41098 TAPEDRIVE="/dev/nst0"
41099 PSCMD="ps -e -o pid,command"
41100 PFILES="${PFILES} \
41101 platforms/gentoo/Makefile \
41102 platforms/gentoo/bacula-init \
41103 platforms/gentoo/bacula-fd \
41104 platforms/gentoo/bacula-sd \
41105 platforms/gentoo/bacula-dir"
41108 ping -c 1 $hostname 2>&1 1>/dev/null
41109 if test ! $? = 0; then
41110 hostname="localhost"
41112 DISTVER=`cat /etc/slackware-version`
41113 TAPEDRIVE="/dev/nst0"
41114 PSCMD="ps -e -o pid,command"
41115 PFILES="${PFILES} \
41116 platforms/slackware/Makefile \
41117 platforms/slackware/rc.bacula-fd \
41118 platforms/slackware/rc.bacula-sd \
41119 platforms/slackware/rc.bacula-dir\
41120 platforms/slackware/functions.bacula"
41124 TAPEDRIVE="/dev/rmt/0cbn"
41125 PSCMD="ps -e -o pid,comm"
41126 PFILES="${PFILES} \
41127 platforms/solaris/Makefile \
41128 platforms/solaris/bacula-fd \
41129 platforms/solaris/bacula-sd \
41130 platforms/solaris/bacula-dir"
41131 if test x$DISTVER = x5.6 ; then
41132 cat >>confdefs.h <<\_ACEOF
41133 #define HAVE_OLD_SOCKOPT 1
41137 LIBS="$LIBS -lresolv"
41140 ping -c 1 $hostname 2>&1 1>/dev/null
41141 if test ! $? = 0; then
41142 hostname="localhost"
41144 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
41146 TAPEDRIVE="/dev/nst0"
41147 PSCMD="ps -e -o pid,command"
41148 PFILES="${PFILES} \
41149 platforms/suse/Makefile \
41150 platforms/suse/bacula-fd \
41151 platforms/suse/bacula-sd \
41152 platforms/suse/bacula-dir \
41153 platforms/suse/bacula \
41154 platforms/suse/bacula.spec"
41157 ping -c 1 $hostname 2>&1 1>/dev/null
41158 if test ! $? = 0; then
41159 hostname="localhost"
41163 TAPEDRIVE="/dev/nst0"
41164 PSCMD="ps -e -o pid,command"
41165 PFILES="${PFILES} \
41166 platforms/suse/Makefile \
41167 platforms/suse/bacula-fd \
41168 platforms/suse/bacula-sd \
41169 platforms/suse/bacula-dir"
41173 TAPEDRIVE="/dev/nst0"
41176 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
41182 LIBS="$PTHREAD_LIB $LIBS"
41184 cat >>confdefs.h <<_ACEOF
41188 cat >>confdefs.h <<_ACEOF
41199 MCOMMON=./autoconf/Make.common
41202 if test "x${subsysdir}" = "x${sbindir}" ; then
41205 echo "You have set both --sbindir and --with-subsys-dir"
41206 echo " equal to: ${subsysdir} "
41207 echo "This is not permitted. Please reconfigure."
41209 echo "Aborting configuration ..."
41215 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"
41217 ac_config_commands="$ac_config_commands default"
41219 cat >confcache <<\_ACEOF
41220 # This file is a shell script that caches the results of configure
41221 # tests run on this system so they can be shared between configure
41222 # scripts and configure runs, see configure's option --config-cache.
41223 # It is not useful on other systems. If it contains results you don't
41224 # want to keep, you may remove or edit it.
41226 # config.status only pays attention to the cache file if you give it
41227 # the --recheck option to rerun configure.
41229 # `ac_cv_env_foo' variables (set or unset) will be overridden when
41230 # loading this file, other *unset* `ac_cv_foo' will be assigned the
41231 # following values.
41235 # The following way of writing the cache mishandles newlines in values,
41236 # but we know of no workaround that is simple, portable, and efficient.
41237 # So, we kill variables containing newlines.
41238 # Ultrix sh set writes to stderr and can't be redirected directly,
41239 # and sets the high bit in the cache file unless we assign to the vars.
41241 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
41242 eval ac_val=\$$ac_var
41246 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
41247 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
41250 _ | IFS | as_nl) ;; #(
41251 *) $as_unset $ac_var ;;
41257 case $as_nl`(ac_space=' '; set) 2>&1` in #(
41258 *${as_nl}ac_space=\ *)
41259 # `set' does not quote correctly, so add quotes (double-quote
41260 # substitution turns \\\\ into \\, and sed turns \\ into \).
41263 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41266 # `set' quotes correctly as required by POSIX, so do not add quotes.
41267 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
41276 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41278 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41280 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
41281 if test -w "$cache_file"; then
41282 test "x$cache_file" != "x/dev/null" &&
41283 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
41284 echo "$as_me: updating cache $cache_file" >&6;}
41285 cat confcache >$cache_file
41287 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
41288 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41293 test "x$prefix" = xNONE && prefix=$ac_default_prefix
41294 # Let make expand exec_prefix.
41295 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41297 DEFS=-DHAVE_CONFIG_H
41301 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41302 # 1. Remove the extension, and $U if already installed.
41303 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
41304 ac_i=`echo "$ac_i" | sed "$ac_script"`
41305 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
41306 # will be set to the directory where LIBOBJS objects are built.
41307 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
41308 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
41310 LIBOBJS=$ac_libobjs
41312 LTLIBOBJS=$ac_ltlibobjs
41316 : ${CONFIG_STATUS=./config.status}
41317 ac_clean_files_save=$ac_clean_files
41318 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41319 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
41320 echo "$as_me: creating $CONFIG_STATUS" >&6;}
41321 cat >$CONFIG_STATUS <<_ACEOF
41323 # Generated by $as_me.
41324 # Run this file to recreate the current configuration.
41325 # Compiler output produced by configure, useful for debugging
41326 # configure, is in config.log if it exists.
41329 ac_cs_recheck=false
41331 SHELL=\${CONFIG_SHELL-$SHELL}
41334 cat >>$CONFIG_STATUS <<\_ACEOF
41335 ## --------------------- ##
41336 ## M4sh Initialization. ##
41337 ## --------------------- ##
41339 # Be more Bourne compatible
41340 DUALCASE=1; export DUALCASE # for MKS sh
41341 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
41344 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
41345 # is contrary to our usage. Disable this feature.
41346 alias -g '${1+"$@"}'='"$@"'
41347 setopt NO_GLOB_SUBST
41349 case `(set -o) 2>/dev/null` in
41350 *posix*) set -o posix ;;
41359 # Avoid depending upon Character Ranges.
41360 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41361 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41362 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41363 as_cr_digits='0123456789'
41364 as_cr_alnum=$as_cr_Letters$as_cr_digits
41366 # The user is always right.
41367 if test "${PATH_SEPARATOR+set}" != set; then
41368 echo "#! /bin/sh" >conf$$.sh
41369 echo "exit 0" >>conf$$.sh
41371 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41379 # Support unset when possible.
41380 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
41388 # We need space, tab and new line, in precisely that order. Quoting is
41389 # there to prevent editors from complaining about space-tab.
41390 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
41391 # splitting by setting IFS to empty value.)
41396 # Find who we are. Look in the path if we contain no directory separator.
41398 *[\\/]* ) as_myself=$0 ;;
41399 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41400 for as_dir in $PATH
41403 test -z "$as_dir" && as_dir=.
41404 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41410 # We did not find ourselves, most probably we were run as `sh COMMAND'
41411 # in which case we are not to be found in the path.
41412 if test "x$as_myself" = x; then
41415 if test ! -f "$as_myself"; then
41416 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
41417 { (exit 1); exit 1; }
41420 # Work around bugs in pre-3.0 UWIN ksh.
41421 for as_var in ENV MAIL MAILPATH
41422 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
41430 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41431 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41432 LC_TELEPHONE LC_TIME
41434 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
41435 eval $as_var=C; export $as_var
41437 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
41441 # Required to use basename.
41442 if expr a : '\(a\)' >/dev/null 2>&1 &&
41443 test "X`expr 00001 : '.*\(...\)'`" = X001; then
41449 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
41450 as_basename=basename
41456 # Name of the executable.
41457 as_me=`$as_basename -- "$0" ||
41458 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41459 X"$0" : 'X\(//\)$' \| \
41460 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
41462 sed '/^.*\/\([^/][^/]*\)\/*$/{
41481 as_lineno_1=$LINENO
41482 as_lineno_2=$LINENO
41483 test "x$as_lineno_1" != "x$as_lineno_2" &&
41484 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
41486 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41487 # uniformly replaced by the line number. The first 'sed' inserts a
41488 # line-number line after each line using $LINENO; the second 'sed'
41489 # does the real work. The second script uses 'N' to pair each
41490 # line-number line with the line containing $LINENO, and appends
41491 # trailing '-' during substitution so that $LINENO is not a special
41492 # case at line end.
41493 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41494 # scripts with optimization help from Paolo Bonzini. Blame Lee
41495 # E. McMahon (1931-1989) for sed's syntax. :-)
41507 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
41510 ' >$as_me.lineno &&
41511 chmod +x "$as_me.lineno" ||
41512 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
41513 { (exit 1); exit 1; }; }
41515 # Don't try to exec as it changes $[0], causing all sort of problems
41516 # (the dirname of $[0] is not the place where we might find the
41517 # original and so on. Autoconf is especially sensitive to this).
41518 . "./$as_me.lineno"
41519 # Exit status is that of the last command.
41524 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
41530 ECHO_C= ECHO_N= ECHO_T=
41531 case `echo -n x` in
41533 case `echo 'x\c'` in
41534 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
41541 if expr a : '\(a\)' >/dev/null 2>&1 &&
41542 test "X`expr 00001 : '.*\(...\)'`" = X001; then
41548 rm -f conf$$ conf$$.exe conf$$.file
41549 if test -d conf$$.dir; then
41550 rm -f conf$$.dir/conf$$.file
41556 if ln -s conf$$.file conf$$ 2>/dev/null; then
41558 # ... but there are two gotchas:
41559 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
41560 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
41561 # In both cases, we have to default to `cp -p'.
41562 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
41564 elif ln conf$$.file conf$$ 2>/dev/null; then
41569 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
41570 rmdir conf$$.dir 2>/dev/null
41572 if mkdir -p . 2>/dev/null; then
41575 test -d ./-p && rmdir ./-p
41579 if test -x / >/dev/null 2>&1; then
41580 as_test_x='test -x'
41582 if ls -dL / >/dev/null 2>&1; then
41589 if test -d "$1"; then
41595 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
41596 ???[sx]*):;;*)false;;esac;fi
41600 as_executable_p=$as_test_x
41602 # Sed expression to map a string onto a valid CPP name.
41603 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
41605 # Sed expression to map a string onto a valid variable name.
41606 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
41611 # Save the log message, to keep $[0] and so on meaningful, and to
41612 # report actual input values of CONFIG_FILES etc. instead of their
41613 # values after options handling.
41615 This file was extended by $as_me, which was
41616 generated by GNU Autoconf 2.61. Invocation command line was
41618 CONFIG_FILES = $CONFIG_FILES
41619 CONFIG_HEADERS = $CONFIG_HEADERS
41620 CONFIG_LINKS = $CONFIG_LINKS
41621 CONFIG_COMMANDS = $CONFIG_COMMANDS
41624 on `(hostname || uname -n) 2>/dev/null | sed 1q`
41629 cat >>$CONFIG_STATUS <<_ACEOF
41630 # Files that config.status was made for.
41631 config_files="$ac_config_files"
41632 config_headers="$ac_config_headers"
41633 config_commands="$ac_config_commands"
41637 cat >>$CONFIG_STATUS <<\_ACEOF
41639 \`$as_me' instantiates files from templates according to the
41640 current configuration.
41642 Usage: $0 [OPTIONS] [FILE]...
41644 -h, --help print this help, then exit
41645 -V, --version print version number and configuration settings, then exit
41646 -q, --quiet do not print progress messages
41647 -d, --debug don't remove temporary files
41648 --recheck update $as_me by reconfiguring in the same conditions
41649 --file=FILE[:TEMPLATE]
41650 instantiate the configuration file FILE
41651 --header=FILE[:TEMPLATE]
41652 instantiate the configuration header FILE
41654 Configuration files:
41657 Configuration headers:
41660 Configuration commands:
41663 Report bugs to <bug-autoconf@gnu.org>."
41666 cat >>$CONFIG_STATUS <<_ACEOF
41669 configured by $0, generated by GNU Autoconf 2.61,
41670 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
41672 Copyright (C) 2006 Free Software Foundation, Inc.
41673 This config.status script is free software; the Free Software Foundation
41674 gives unlimited permission to copy, distribute and modify it."
41681 cat >>$CONFIG_STATUS <<\_ACEOF
41682 # If no file are specified by the user, then we need to provide default
41683 # value. By we need to know if files were specified by the user.
41689 ac_option=`expr "X$1" : 'X\([^=]*\)='`
41690 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
41701 # Handling of the options.
41702 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41704 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
41705 echo "$ac_cs_version"; exit ;;
41706 --debug | --debu | --deb | --de | --d | -d )
41708 --file | --fil | --fi | --f )
41710 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
41711 ac_need_defaults=false;;
41712 --header | --heade | --head | --hea )
41714 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
41715 ac_need_defaults=false;;
41717 # Conflict between --help and --header
41718 { echo "$as_me: error: ambiguous option: $1
41719 Try \`$0 --help' for more information." >&2
41720 { (exit 1); exit 1; }; };;
41721 --help | --hel | -h )
41722 echo "$ac_cs_usage"; exit ;;
41723 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41724 | -silent | --silent | --silen | --sile | --sil | --si | --s)
41727 # This is an error.
41728 -*) { echo "$as_me: error: unrecognized option: $1
41729 Try \`$0 --help' for more information." >&2
41730 { (exit 1); exit 1; }; } ;;
41732 *) ac_config_targets="$ac_config_targets $1"
41733 ac_need_defaults=false ;;
41739 ac_configure_extra_args=
41741 if $ac_cs_silent; then
41743 ac_configure_extra_args="$ac_configure_extra_args --silent"
41747 cat >>$CONFIG_STATUS <<_ACEOF
41748 if \$ac_cs_recheck; then
41749 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
41750 CONFIG_SHELL=$SHELL
41751 export CONFIG_SHELL
41752 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41756 cat >>$CONFIG_STATUS <<\_ACEOF
41760 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41761 ## Running $as_me. ##
41767 cat >>$CONFIG_STATUS <<_ACEOF
41773 # The HP-UX ksh and POSIX shell print the target directory to stdout
41774 # if CDPATH is set.
41775 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
41777 sed_quote_subst='$sed_quote_subst'
41778 double_quote_subst='$double_quote_subst'
41779 delay_variable_subst='$delay_variable_subst'
41780 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
41781 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
41782 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
41783 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
41784 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
41785 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
41786 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
41787 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
41788 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
41789 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
41790 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
41791 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
41792 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
41793 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
41794 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
41795 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
41796 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
41797 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
41798 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
41799 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
41800 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
41801 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
41802 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
41803 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
41804 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
41805 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
41806 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
41807 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41808 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
41809 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
41810 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
41811 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
41812 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
41813 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
41814 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
41815 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41816 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41817 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41818 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
41819 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
41820 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
41821 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
41822 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
41823 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
41824 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"`'
41825 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"`'
41826 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
41827 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
41828 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
41829 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
41830 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
41831 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
41832 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
41833 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
41834 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
41835 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
41836 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
41837 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
41838 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
41839 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
41840 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
41841 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
41842 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41843 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41844 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
41845 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
41846 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
41847 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
41848 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
41849 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41850 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41851 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41852 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41853 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41854 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41855 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
41856 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
41857 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
41858 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
41859 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
41860 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
41861 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
41862 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
41863 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
41864 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
41865 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
41866 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
41867 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
41868 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
41869 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
41870 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41871 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
41872 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
41873 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41874 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
41875 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
41876 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
41877 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
41878 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
41879 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
41880 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
41881 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
41882 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
41883 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
41884 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
41885 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41886 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41887 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41888 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
41889 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
41890 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
41891 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
41892 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
41893 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
41894 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
41895 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
41896 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
41897 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
41898 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
41899 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
41900 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
41901 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
41902 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
41903 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
41904 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41905 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41906 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41907 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41908 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41909 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41910 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41911 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41912 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41913 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41914 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41915 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41916 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41917 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41918 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41919 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41920 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41921 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41922 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41923 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41924 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41925 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41926 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41927 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41928 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41929 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41930 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41931 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41932 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41933 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41934 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41935 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41936 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41937 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41938 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41939 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41940 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41941 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41942 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41943 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41944 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41945 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41946 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41947 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41948 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41949 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41950 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41953 LTCFLAGS='$LTCFLAGS'
41954 compiler='$compiler_DEFAULT'
41956 # Quote evaled strings.
41968 deplibs_check_method \
41977 lt_cv_sys_global_symbol_pipe \
41978 lt_cv_sys_global_symbol_to_cdecl \
41979 lt_cv_sys_global_symbol_to_c_name_address \
41980 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
41983 lt_prog_compiler_no_builtin_flag \
41984 lt_prog_compiler_wl \
41985 lt_prog_compiler_pic \
41986 lt_prog_compiler_static \
41987 lt_cv_prog_compiler_c_o \
41995 export_dynamic_flag_spec \
41996 whole_archive_flag_spec \
41997 compiler_needs_object \
41999 allow_undefined_flag \
42000 no_undefined_flag \
42001 hardcode_libdir_flag_spec \
42002 hardcode_libdir_flag_spec_ld \
42003 hardcode_libdir_separator \
42008 variables_saved_for_relink \
42010 library_names_spec \
42015 compiler_lib_search_dirs \
42020 compiler_lib_search_path \
42023 lt_prog_compiler_no_builtin_flag_CXX \
42024 lt_prog_compiler_wl_CXX \
42025 lt_prog_compiler_pic_CXX \
42026 lt_prog_compiler_static_CXX \
42027 lt_cv_prog_compiler_c_o_CXX \
42028 export_dynamic_flag_spec_CXX \
42029 whole_archive_flag_spec_CXX \
42030 compiler_needs_object_CXX \
42032 allow_undefined_flag_CXX \
42033 no_undefined_flag_CXX \
42034 hardcode_libdir_flag_spec_CXX \
42035 hardcode_libdir_flag_spec_ld_CXX \
42036 hardcode_libdir_separator_CXX \
42037 fix_srcfile_path_CXX \
42038 exclude_expsyms_CXX \
42039 include_expsyms_CXX \
42040 file_list_spec_CXX \
42041 compiler_lib_search_dirs_CXX \
42042 predep_objects_CXX \
42043 postdep_objects_CXX \
42046 compiler_lib_search_path_CXX; do
42047 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
42048 *[\\\\\\\`\\"\\\$]*)
42049 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
42052 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42057 # Double-quote double-evaled strings.
42058 for var in reload_cmds \
42059 old_postinstall_cmds \
42060 old_postuninstall_cmds \
42062 extract_expsyms_cmds \
42063 old_archive_from_new_cmds \
42064 old_archive_from_expsyms_cmds \
42066 archive_expsym_cmds \
42068 module_expsym_cmds \
42069 export_symbols_cmds \
42072 postuninstall_cmds \
42074 sys_lib_search_path_spec \
42075 sys_lib_dlsearch_path_spec \
42076 old_archive_cmds_CXX \
42077 old_archive_from_new_cmds_CXX \
42078 old_archive_from_expsyms_cmds_CXX \
42080 archive_expsym_cmds_CXX \
42082 module_expsym_cmds_CXX \
42083 export_symbols_cmds_CXX \
42084 prelink_cmds_CXX; do
42085 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
42086 *[\\\\\\\`\\"\\\$]*)
42087 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
42090 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42095 # Fix-up fallback echo if it was mangled by the above quoting rules.
42097 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
42101 ac_aux_dir='$ac_aux_dir'
42102 xsi_shell='$xsi_shell'
42103 lt_shell_append='$lt_shell_append'
42105 # See if we are running on zsh, and set the options which allow our
42106 # commands through without removal of \ escapes INIT.
42107 if test -n "\${ZSH_VERSION+set}" ; then
42108 setopt NO_GLOB_SUBST
42114 TIMESTAMP='$TIMESTAMP'
42122 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
42123 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
42125 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
42126 # Capture the value of LINGUAS because we need it to compute CATALOGS.
42127 LINGUAS="${LINGUAS-%UNSET%}"
42132 cat >>$CONFIG_STATUS <<\_ACEOF
42134 # Handling of arguments.
42135 for ac_config_target in $ac_config_targets
42137 case $ac_config_target in
42138 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
42139 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
42140 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
42141 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
42142 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42143 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
42144 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
42145 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
42146 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
42147 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
42148 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
42149 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
42150 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
42151 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
42152 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
42153 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
42154 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
42155 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
42156 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
42157 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
42158 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
42159 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
42160 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
42161 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
42162 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
42163 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
42164 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
42165 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
42166 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
42167 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
42168 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
42169 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
42170 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
42171 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
42172 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
42173 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
42174 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
42175 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
42176 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
42177 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
42178 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
42179 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
42180 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
42181 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
42182 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
42183 "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
42184 "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
42185 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
42186 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
42187 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
42188 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
42189 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
42190 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
42191 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
42192 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
42193 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
42194 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
42195 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
42196 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
42197 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
42198 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
42199 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
42200 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
42201 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
42202 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
42203 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
42204 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
42205 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
42206 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
42207 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
42208 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
42209 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
42210 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
42211 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
42212 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
42213 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
42214 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
42215 "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
42216 "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
42217 "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
42218 "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
42219 "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
42220 "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
42221 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
42222 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
42223 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
42224 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
42225 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
42226 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
42227 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
42228 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
42229 "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
42230 "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
42231 "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
42232 "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
42233 "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
42234 "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
42235 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
42236 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
42237 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
42238 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
42239 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
42240 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
42241 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
42242 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
42243 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
42244 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
42245 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
42246 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
42247 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
42248 "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
42249 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
42250 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
42252 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
42253 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
42254 { (exit 1); exit 1; }; };;
42259 # If the user did not use the arguments to specify the items to instantiate,
42260 # then the envvar interface is used. Set only those that are not.
42261 # We use the long form for the default assignment because of an extremely
42262 # bizarre bug on SunOS 4.1.3.
42263 if $ac_need_defaults; then
42264 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42265 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42266 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42269 # Have a temporary directory for convenience. Make it in the build tree
42270 # simply because there is no reason against having it here, and in addition,
42271 # creating and moving files from /tmp can sometimes cause problems.
42272 # Hook for its removal unless debugging.
42273 # Note that there is a small window in which the directory will not be cleaned:
42274 # after its creation but before its name has been assigned to `$tmp'.
42278 trap 'exit_status=$?
42279 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
42281 trap '{ (exit 1); exit 1; }' 1 2 13 15
42283 # Create a (secure) tmp directory for tmp files.
42286 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42287 test -n "$tmp" && test -d "$tmp"
42290 tmp=./conf$$-$RANDOM
42291 (umask 077 && mkdir "$tmp")
42294 echo "$me: cannot create a temporary directory in ." >&2
42295 { (exit 1); exit 1; }
42299 # Set up the sed scripts for CONFIG_FILES section.
42302 # No need to generate the scripts if there are no CONFIG_FILES.
42303 # This happens for instance when ./config.status config.h
42304 if test -n "$CONFIG_FILES"; then
42308 # Create sed commands to just substitute file output variables.
42310 # Remaining file output variables are in a fragment that also has non-file
42316 for ac_last_try in false false false false false :; do
42317 cat >conf$$subs.sed <<_ACEOF
42318 SHELL!$SHELL$ac_delim
42319 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
42320 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
42321 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
42322 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
42323 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
42324 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
42325 exec_prefix!$exec_prefix$ac_delim
42326 prefix!$prefix$ac_delim
42327 program_transform_name!$program_transform_name$ac_delim
42328 bindir!$bindir$ac_delim
42329 sbindir!$sbindir$ac_delim
42330 libexecdir!$libexecdir$ac_delim
42331 datarootdir!$datarootdir$ac_delim
42332 datadir!$datadir$ac_delim
42333 sysconfdir!$sysconfdir$ac_delim
42334 sharedstatedir!$sharedstatedir$ac_delim
42335 localstatedir!$localstatedir$ac_delim
42336 includedir!$includedir$ac_delim
42337 oldincludedir!$oldincludedir$ac_delim
42338 docdir!$docdir$ac_delim
42339 infodir!$infodir$ac_delim
42340 htmldir!$htmldir$ac_delim
42341 dvidir!$dvidir$ac_delim
42342 pdfdir!$pdfdir$ac_delim
42343 psdir!$psdir$ac_delim
42344 libdir!$libdir$ac_delim
42345 localedir!$localedir$ac_delim
42346 mandir!$mandir$ac_delim
42347 DEFS!$DEFS$ac_delim
42348 ECHO_C!$ECHO_C$ac_delim
42349 ECHO_N!$ECHO_N$ac_delim
42350 ECHO_T!$ECHO_T$ac_delim
42351 LIBS!$LIBS$ac_delim
42352 build_alias!$build_alias$ac_delim
42353 host_alias!$host_alias$ac_delim
42354 target_alias!$target_alias$ac_delim
42355 BUILD_DIR!$BUILD_DIR$ac_delim
42356 TOP_DIR!$TOP_DIR$ac_delim
42357 TRUEPRG!$TRUEPRG$ac_delim
42358 FALSEPRG!$FALSEPRG$ac_delim
42359 VERSION!$VERSION$ac_delim
42360 DATE!$DATE$ac_delim
42361 LSMDATE!$LSMDATE$ac_delim
42362 BACULA!$BACULA$ac_delim
42363 post_host!$post_host$ac_delim
42365 CFLAGS!$CFLAGS$ac_delim
42366 LDFLAGS!$LDFLAGS$ac_delim
42367 CPPFLAGS!$CPPFLAGS$ac_delim
42368 ac_ct_CC!$ac_ct_CC$ac_delim
42369 EXEEXT!$EXEEXT$ac_delim
42370 OBJEXT!$OBJEXT$ac_delim
42372 CXXFLAGS!$CXXFLAGS$ac_delim
42373 ac_ct_CXX!$ac_ct_CXX$ac_delim
42375 GREP!$GREP$ac_delim
42376 EGREP!$EGREP$ac_delim
42377 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
42378 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
42379 INSTALL_DATA!$INSTALL_DATA$ac_delim
42381 REMOVE!$REMOVE$ac_delim
42384 ECHO!$ECHO$ac_delim
42388 OPENSSL!$OPENSSL$ac_delim
42391 MKISOFS!$MKISOFS$ac_delim
42392 PYTHON!$PYTHON$ac_delim
42393 GROWISOFS!$GROWISOFS$ac_delim
42394 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
42395 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
42396 PKGCONFIG!$PKGCONFIG$ac_delim
42397 QMAKE!$QMAKE$ac_delim
42398 QMAKEQT4!$QMAKEQT4$ac_delim
42399 WXCONFIG!$WXCONFIG$ac_delim
42400 WXFLAGS!$WXFLAGS$ac_delim
42401 CDRECORD!$CDRECORD$ac_delim
42402 PIDOF!$PIDOF$ac_delim
42404 ARFLAGS!$ARFLAGS$ac_delim
42405 MAKE_SHELL!$MAKE_SHELL$ac_delim
42406 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
42407 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
42408 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
42409 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
42410 LIBTOOL!$LIBTOOL$ac_delim
42411 build!$build$ac_delim
42414 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
42416 elif $ac_last_try; then
42417 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
42418 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
42419 { (exit 1); exit 1; }; }
42421 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42425 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
42426 if test -n "$ac_eof"; then
42427 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
42428 ac_eof=`expr $ac_eof + 1`
42431 cat >>$CONFIG_STATUS <<_ACEOF
42432 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
42433 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42434 /^[ ]*@MCOMMON@[ ]*$/{
42440 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
42441 s/^/s,@/; s/!/@,|#_!!_#|/
42444 s/'"$ac_delim"'$/,g/; t
42446 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
42447 ' >>$CONFIG_STATUS <conf$$subs.sed
42448 rm -f conf$$subs.sed
42449 cat >>$CONFIG_STATUS <<_ACEOF
42455 for ac_last_try in false false false false false :; do
42456 cat >conf$$subs.sed <<_ACEOF
42457 build_cpu!$build_cpu$ac_delim
42458 build_vendor!$build_vendor$ac_delim
42459 build_os!$build_os$ac_delim
42460 host!$host$ac_delim
42461 host_cpu!$host_cpu$ac_delim
42462 host_vendor!$host_vendor$ac_delim
42463 host_os!$host_os$ac_delim
42464 FGREP!$FGREP$ac_delim
42466 DUMPBIN!$DUMPBIN$ac_delim
42467 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
42469 LN_S!$LN_S$ac_delim
42470 OBJDUMP!$OBJDUMP$ac_delim
42471 STRIP!$STRIP$ac_delim
42472 RANLIB!$RANLIB$ac_delim
42473 lt_ECHO!$lt_ECHO$ac_delim
42474 DSYMUTIL!$DSYMUTIL$ac_delim
42475 NMEDIT!$NMEDIT$ac_delim
42476 LIPO!$LIPO$ac_delim
42477 OTOOL!$OTOOL$ac_delim
42478 OTOOL64!$OTOOL64$ac_delim
42479 CXXCPP!$CXXCPP$ac_delim
42480 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
42481 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
42482 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
42483 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
42484 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
42485 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
42486 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
42487 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
42488 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
42489 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
42490 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
42491 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
42492 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
42493 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
42494 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
42495 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
42496 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
42497 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
42498 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
42499 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
42500 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
42501 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
42502 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
42503 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
42504 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
42505 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
42506 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
42507 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
42508 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
42509 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
42510 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
42511 SET_MAKE!$SET_MAKE$ac_delim
42512 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
42513 USE_NLS!$USE_NLS$ac_delim
42514 MSGFMT!$MSGFMT$ac_delim
42515 GMSGFMT!$GMSGFMT$ac_delim
42516 XGETTEXT!$XGETTEXT$ac_delim
42517 MSGMERGE!$MSGMERGE$ac_delim
42518 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
42519 LIBICONV!$LIBICONV$ac_delim
42520 LTLIBICONV!$LTLIBICONV$ac_delim
42521 INTLLIBS!$INTLLIBS$ac_delim
42522 LIBINTL!$LIBINTL$ac_delim
42523 LTLIBINTL!$LTLIBINTL$ac_delim
42524 POSUB!$POSUB$ac_delim
42525 GLIBC2!$GLIBC2$ac_delim
42526 ALLOCA!$ALLOCA$ac_delim
42527 GLIBC21!$GLIBC21$ac_delim
42528 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
42529 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
42530 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
42531 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
42532 INTLBISON!$INTLBISON$ac_delim
42533 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
42534 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
42535 CATOBJEXT!$CATOBJEXT$ac_delim
42536 DATADIRNAME!$DATADIRNAME$ac_delim
42537 INSTOBJEXT!$INSTOBJEXT$ac_delim
42538 GENCAT!$GENCAT$ac_delim
42539 INTLOBJS!$INTLOBJS$ac_delim
42540 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
42541 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
42542 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
42543 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
42544 GNOME_LIBS!$GNOME_LIBS$ac_delim
42545 GNOME_DIR!$GNOME_DIR$ac_delim
42546 BAT_DIR!$BAT_DIR$ac_delim
42547 QWT_INC!$QWT_INC$ac_delim
42548 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
42549 QWT_LIB!$QWT_LIB$ac_delim
42551 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
42552 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
42553 WX_DIR!$WX_DIR$ac_delim
42556 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
42558 elif $ac_last_try; then
42559 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
42560 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
42561 { (exit 1); exit 1; }; }
42563 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42567 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
42568 if test -n "$ac_eof"; then
42569 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
42570 ac_eof=`expr $ac_eof + 1`
42573 cat >>$CONFIG_STATUS <<_ACEOF
42574 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
42575 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42578 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
42579 s/^/s,@/; s/!/@,|#_!!_#|/
42582 s/'"$ac_delim"'$/,g/; t
42584 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
42585 ' >>$CONFIG_STATUS <conf$$subs.sed
42586 rm -f conf$$subs.sed
42587 cat >>$CONFIG_STATUS <<_ACEOF
42593 for ac_last_try in false false false false false :; do
42594 cat >conf$$subs.sed <<_ACEOF
42595 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
42596 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
42597 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
42598 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
42599 STATIC_FD!$STATIC_FD$ac_delim
42600 STATIC_SD!$STATIC_SD$ac_delim
42601 STATIC_DIR!$STATIC_DIR$ac_delim
42602 STATIC_CONS!$STATIC_CONS$ac_delim
42603 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
42604 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
42605 ALL_DIRS!$ALL_DIRS$ac_delim
42606 DIRD_DIR!$DIRD_DIR$ac_delim
42607 DIR_TOOLS!$DIR_TOOLS$ac_delim
42608 STORED_DIR!$STORED_DIR$ac_delim
42609 CONS_INC!$CONS_INC$ac_delim
42610 CONS_OBJ!$CONS_OBJ$ac_delim
42611 CONS_SRC!$CONS_SRC$ac_delim
42612 CONS_LIBS!$CONS_LIBS$ac_delim
42613 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
42614 READLINE_SRC!$READLINE_SRC$ac_delim
42615 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
42616 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
42617 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
42618 OPENSSL_INC!$OPENSSL_INC$ac_delim
42619 working_dir!$working_dir$ac_delim
42620 archivedir!$archivedir$ac_delim
42621 scriptdir!$scriptdir$ac_delim
42622 plugindir!$plugindir$ac_delim
42623 dump_email!$dump_email$ac_delim
42624 job_email!$job_email$ac_delim
42625 smtp_host!$smtp_host$ac_delim
42626 piddir!$piddir$ac_delim
42627 subsysdir!$subsysdir$ac_delim
42628 baseport!$baseport$ac_delim
42629 dir_port!$dir_port$ac_delim
42630 fd_port!$fd_port$ac_delim
42631 sd_port!$sd_port$ac_delim
42632 dir_password!$dir_password$ac_delim
42633 fd_password!$fd_password$ac_delim
42634 sd_password!$sd_password$ac_delim
42635 mon_dir_password!$mon_dir_password$ac_delim
42636 mon_fd_password!$mon_fd_password$ac_delim
42637 mon_sd_password!$mon_sd_password$ac_delim
42638 db_name!$db_name$ac_delim
42639 db_user!$db_user$ac_delim
42640 db_password!$db_password$ac_delim
42641 db_port!$db_port$ac_delim
42642 dir_user!$dir_user$ac_delim
42643 dir_group!$dir_group$ac_delim
42644 sd_user!$sd_user$ac_delim
42645 sd_group!$sd_group$ac_delim
42646 fd_user!$fd_user$ac_delim
42647 fd_group!$fd_group$ac_delim
42648 SBINPERM!$SBINPERM$ac_delim
42649 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
42650 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
42651 SQL_BINDIR!$SQL_BINDIR$ac_delim
42652 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
42653 uncomment_dbi!$uncomment_dbi$ac_delim
42654 DB_PROG!$DB_PROG$ac_delim
42655 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
42656 cats!$cats$ac_delim
42657 DB_TYPE!$DB_TYPE$ac_delim
42658 GETCONF!$GETCONF$ac_delim
42659 XMKMF!$XMKMF$ac_delim
42660 X_CFLAGS!$X_CFLAGS$ac_delim
42661 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
42662 X_LIBS!$X_LIBS$ac_delim
42663 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
42664 LIBOBJS!$LIBOBJS$ac_delim
42665 FDLIBS!$FDLIBS$ac_delim
42666 DEBUG!$DEBUG$ac_delim
42667 DINCLUDE!$DINCLUDE$ac_delim
42668 DLIB!$DLIB$ac_delim
42669 DB_LIBS!$DB_LIBS$ac_delim
42670 WCFLAGS!$WCFLAGS$ac_delim
42671 WLDFLAGS!$WLDFLAGS$ac_delim
42672 WRAPLIBS!$WRAPLIBS$ac_delim
42673 OBJLIST!$OBJLIST$ac_delim
42674 hostname!$hostname$ac_delim
42675 TAPEDRIVE!$TAPEDRIVE$ac_delim
42676 PSCMD!$PSCMD$ac_delim
42677 WIN32!$WIN32$ac_delim
42678 MACOSX!$MACOSX$ac_delim
42679 DISTNAME!$DISTNAME$ac_delim
42680 DISTVER!$DISTVER$ac_delim
42681 LTLIBOBJS!$LTLIBOBJS$ac_delim
42684 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 87; then
42686 elif $ac_last_try; then
42687 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
42688 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
42689 { (exit 1); exit 1; }; }
42691 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42695 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
42696 if test -n "$ac_eof"; then
42697 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
42698 ac_eof=`expr $ac_eof + 1`
42701 cat >>$CONFIG_STATUS <<_ACEOF
42702 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
42703 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
42706 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
42707 s/^/s,@/; s/!/@,|#_!!_#|/
42710 s/'"$ac_delim"'$/,g/; t
42712 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
42713 ' >>$CONFIG_STATUS <conf$$subs.sed
42714 rm -f conf$$subs.sed
42715 cat >>$CONFIG_STATUS <<_ACEOF
42722 # VPATH may cause trouble with some makes, so we remove $(srcdir),
42723 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
42724 # trailing colons and then remove the whole line if VPATH becomes empty
42725 # (actually we leave an empty line to preserve line numbers).
42726 if test "x$srcdir" = x.; then
42727 ac_vpsub='/^[ ]*VPATH[ ]*=/{
42728 s/:*\$(srcdir):*/:/
42729 s/:*\${srcdir}:*/:/
42731 s/^\([^=]*=[ ]*\):*/\1/
42737 cat >>$CONFIG_STATUS <<\_ACEOF
42738 fi # test -n "$CONFIG_FILES"
42741 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
42744 :[FHLC]) ac_mode=$ac_tag; continue;;
42746 case $ac_mode$ac_tag in
42748 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
42749 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
42750 { (exit 1); exit 1; }; };;
42751 :[FH]-) ac_tag=-:-;;
42752 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
42769 -) ac_f="$tmp/stdin";;
42770 *) # Look for the file first in the build tree, then in the source tree
42771 # (if the path is not absolute). The absolute path cannot be DOS-style,
42772 # because $ac_f cannot contain `:'.
42776 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
42778 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
42779 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
42780 { (exit 1); exit 1; }; };;
42782 ac_file_inputs="$ac_file_inputs $ac_f"
42785 # Let's still pretend it is `configure' which instantiates (i.e., don't
42786 # use $as_me), people would be surprised to read:
42787 # /* config.h. Generated by config.status. */
42788 configure_input="Generated from "`IFS=:
42789 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
42790 if test x"$ac_file" != x-; then
42791 configure_input="$ac_file. $configure_input"
42792 { echo "$as_me:$LINENO: creating $ac_file" >&5
42793 echo "$as_me: creating $ac_file" >&6;}
42797 *:-:* | *:-) cat >"$tmp/stdin";;
42802 ac_dir=`$as_dirname -- "$ac_file" ||
42803 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42804 X"$ac_file" : 'X\(//\)[^/]' \| \
42805 X"$ac_file" : 'X\(//\)$' \| \
42806 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
42808 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42812 /^X\(\/\/\)[^/].*/{
42827 -*) as_dir=./$as_dir;;
42829 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
42833 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
42834 *) as_qdir=$as_dir;;
42836 as_dirs="'$as_qdir' $as_dirs"
42837 as_dir=`$as_dirname -- "$as_dir" ||
42838 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42839 X"$as_dir" : 'X\(//\)[^/]' \| \
42840 X"$as_dir" : 'X\(//\)$' \| \
42841 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
42843 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42847 /^X\(\/\/\)[^/].*/{
42860 test -d "$as_dir" && break
42862 test -z "$as_dirs" || eval "mkdir $as_dirs"
42863 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
42864 echo "$as_me: error: cannot create directory $as_dir" >&2;}
42865 { (exit 1); exit 1; }; }; }
42869 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
42871 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42872 # A ".." for each directory in $ac_dir_suffix.
42873 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
42874 case $ac_top_builddir_sub in
42875 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
42876 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
42879 ac_abs_top_builddir=$ac_pwd
42880 ac_abs_builddir=$ac_pwd$ac_dir_suffix
42881 # for backward compatibility:
42882 ac_top_builddir=$ac_top_build_prefix
42885 .) # We are building in place.
42887 ac_top_srcdir=$ac_top_builddir_sub
42888 ac_abs_top_srcdir=$ac_pwd ;;
42889 [\\/]* | ?:[\\/]* ) # Absolute name.
42890 ac_srcdir=$srcdir$ac_dir_suffix;
42891 ac_top_srcdir=$srcdir
42892 ac_abs_top_srcdir=$srcdir ;;
42893 *) # Relative name.
42894 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
42895 ac_top_srcdir=$ac_top_build_prefix$srcdir
42896 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42898 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
42908 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42909 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
42913 cat >>$CONFIG_STATUS <<\_ACEOF
42914 # If the template does not know about datarootdir, expand it.
42915 # FIXME: This hack should be removed a few years after 2.60.
42916 ac_datarootdir_hack=; ac_datarootdir_seen=
42918 case `sed -n '/datarootdir/ {
42927 ' $ac_file_inputs` in
42928 *datarootdir*) ac_datarootdir_seen=yes;;
42929 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
42930 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
42931 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
42933 cat >>$CONFIG_STATUS <<_ACEOF
42934 ac_datarootdir_hack='
42935 s&@datadir@&$datadir&g
42936 s&@docdir@&$docdir&g
42937 s&@infodir@&$infodir&g
42938 s&@localedir@&$localedir&g
42939 s&@mandir@&$mandir&g
42940 s&\\\${datarootdir}&$datarootdir&g' ;;
42944 # Neutralize VPATH when `$srcdir' = `.'.
42945 # Shell code in configure.ac might set extrasub.
42946 # FIXME: do we really want to maintain this feature?
42947 cat >>$CONFIG_STATUS <<_ACEOF
42951 cat >>$CONFIG_STATUS <<\_ACEOF
42953 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42954 s&@configure_input@&$configure_input&;t t
42955 s&@top_builddir@&$ac_top_builddir_sub&;t t
42956 s&@srcdir@&$ac_srcdir&;t t
42957 s&@abs_srcdir@&$ac_abs_srcdir&;t t
42958 s&@top_srcdir@&$ac_top_srcdir&;t t
42959 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
42960 s&@builddir@&$ac_builddir&;t t
42961 s&@abs_builddir@&$ac_abs_builddir&;t t
42962 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
42963 s&@INSTALL@&$ac_INSTALL&;t t
42964 $ac_datarootdir_hack
42965 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
42967 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
42968 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
42969 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
42970 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
42971 which seems to be undefined. Please make sure it is defined." >&5
42972 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
42973 which seems to be undefined. Please make sure it is defined." >&2;}
42977 -) cat "$tmp/out"; rm -f "$tmp/out";;
42978 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
42987 # Transform confdefs.h into a sed script `conftest.defines', that
42988 # substitutes the proper values into config.h.in to produce config.h.
42989 rm -f conftest.defines conftest.tail
42990 # First, append a space to every undef/define line, to ease matching.
42991 echo 's/$/ /' >conftest.defines
42992 # Then, protect against being on the right side of a sed subst, or in
42993 # an unquoted here document, in config.status. If some macros were
42994 # called several times there might be several #defines for the same
42995 # symbol, which is useless. But do not sort them, since the last
42996 # AC_DEFINE must be honored.
42997 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
42998 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
42999 # NAME is the cpp macro being defined, VALUE is the value it is being given.
43000 # PARAMS is the parameter list in the macro definition--in most cases, it's
43001 # just an empty string.
43002 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
43003 ac_dB='\\)[ (].*,\\1define\\2'
43011 s/^[ ]*#[ ]*define[ ][ ]*//
43016 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
43017 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
43018 ' >>conftest.defines
43020 # Remove the space that was appended to ease matching.
43021 # Then replace #undef with comments. This is necessary, for
43022 # example, in the case of _POSIX_SOURCE, which is predefined and required
43023 # on some systems where configure will not decide to define it.
43024 # (The regexp can be short, since the line contains either #define or #undef.)
43026 s,^[ #]*u.*,/* & */,' >>conftest.defines
43028 # Break up conftest.defines:
43029 ac_max_sed_lines=50
43031 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
43032 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
43033 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
43035 ac_in='$ac_file_inputs'
43036 ac_out='"$tmp/out1"'
43037 ac_nxt='"$tmp/out2"'
43041 # Write a here document:
43042 cat >>$CONFIG_STATUS <<_ACEOF
43043 # First, check the format of the line:
43044 cat >"\$tmp/defines.sed" <<\\CEOF
43045 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
43046 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
43050 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
43052 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
43053 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
43054 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
43055 grep . conftest.tail >/dev/null || break
43056 rm -f conftest.defines
43057 mv conftest.tail conftest.defines
43059 rm -f conftest.defines conftest.tail
43061 echo "ac_result=$ac_in" >>$CONFIG_STATUS
43062 cat >>$CONFIG_STATUS <<\_ACEOF
43063 if test x"$ac_file" != x-; then
43064 echo "/* $configure_input */" >"$tmp/config.h"
43065 cat "$ac_result" >>"$tmp/config.h"
43066 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
43067 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
43068 echo "$as_me: $ac_file is unchanged" >&6;}
43071 mv "$tmp/config.h" $ac_file
43074 echo "/* $configure_input */"
43080 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
43081 echo "$as_me: executing $ac_file commands" >&6;}
43086 case $ac_file$ac_mode in
43089 # See if we are running on zsh, and set the options which allow our
43090 # commands through without removal of \ escapes.
43091 if test -n "${ZSH_VERSION+set}" ; then
43092 setopt NO_GLOB_SUBST
43095 cfgfile="${ofile}T"
43096 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
43099 cat <<_LT_EOF >> "$cfgfile"
43102 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
43103 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
43104 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
43105 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
43107 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
43108 # 2006, 2007, 2008 Free Software Foundation, Inc.
43109 # Written by Gordon Matzigkeit, 1996
43111 # This file is part of GNU Libtool.
43113 # GNU Libtool is free software; you can redistribute it and/or
43114 # modify it under the terms of the GNU General Public License as
43115 # published by the Free Software Foundation; either version 2 of
43116 # the License, or (at your option) any later version.
43118 # As a special exception to the GNU General Public License,
43119 # if you distribute this file as part of a program or library that
43120 # is built using GNU Libtool, you may include this file under the
43121 # same distribution terms that you use for the rest of that program.
43123 # GNU Libtool is distributed in the hope that it will be useful,
43124 # but WITHOUT ANY WARRANTY; without even the implied warranty of
43125 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
43126 # GNU General Public License for more details.
43128 # You should have received a copy of the GNU General Public License
43129 # along with GNU Libtool; see the file COPYING. If not, a copy
43130 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
43131 # obtained by writing to the Free Software Foundation, Inc.,
43132 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
43135 # The names of the tagged configurations supported by this script.
43136 available_tags="CXX "
43138 # ### BEGIN LIBTOOL CONFIG
43140 # Which release of libtool.m4 was used?
43141 macro_version=$macro_version
43142 macro_revision=$macro_revision
43144 # Whether or not to build shared libraries.
43145 build_libtool_libs=$enable_shared
43147 # Whether or not to build static libraries.
43148 build_old_libs=$enable_static
43150 # What type of objects to build.
43153 # Whether or not to optimize for fast installation.
43154 fast_install=$enable_fast_install
43157 host_alias=$host_alias
43161 # The build system.
43162 build_alias=$build_alias
43166 # A sed program that does not truncate output.
43169 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
43170 Xsed="\$SED -e 1s/^X//"
43172 # A grep program that handles long lines.
43178 # A literal string matcher.
43181 # A BSD- or MS-compatible name lister.
43184 # Whether we need soft or hard links.
43187 # What is the maximum length of a command?
43188 max_cmd_len=$max_cmd_len
43190 # Object file suffix (normally "o").
43193 # Executable file suffix (normally "").
43196 # whether the shell understands "unset".
43199 # turn spaces into newlines.
43202 # turn newlines into spaces.
43205 # How to create reloadable object files.
43206 reload_flag=$lt_reload_flag
43207 reload_cmds=$lt_reload_cmds
43209 # An object symbol dumper.
43210 OBJDUMP=$lt_OBJDUMP
43212 # Method to check whether dependent libraries are shared objects.
43213 deplibs_check_method=$lt_deplibs_check_method
43215 # Command to use when deplibs_check_method == "file_magic".
43216 file_magic_cmd=$lt_file_magic_cmd
43220 AR_FLAGS=$lt_AR_FLAGS
43222 # A symbol stripping program.
43225 # Commands used to install an old-style archive.
43227 old_postinstall_cmds=$lt_old_postinstall_cmds
43228 old_postuninstall_cmds=$lt_old_postuninstall_cmds
43233 # LTCC compiler flags.
43234 LTCFLAGS=$lt_CFLAGS
43236 # Take the output of nm and produce a listing of raw symbols and C names.
43237 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
43239 # Transform the output of nm in a proper C declaration.
43240 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
43242 # Transform the output of nm in a C name address pair.
43243 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
43245 # Transform the output of nm in a C name address pair when lib prefix is needed.
43246 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
43248 # The name of the directory that contains temporary libtool files.
43251 # Shell to use when invoking shell scripts.
43254 # An echo program that does not interpret backslashes.
43257 # Used to examine libraries when file_magic_cmd begins with "file".
43258 MAGIC_CMD=$MAGIC_CMD
43260 # Must we lock files when doing compilation?
43261 need_locks=$lt_need_locks
43263 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
43264 DSYMUTIL=$lt_DSYMUTIL
43266 # Tool to change global to local symbols on Mac OS X.
43269 # Tool to manipulate fat objects and archives on Mac OS X.
43272 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
43275 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
43276 OTOOL64=$lt_OTOOL64
43278 # Old archive suffix (normally "a").
43281 # Shared library suffix (normally ".so").
43282 shrext_cmds=$lt_shrext_cmds
43284 # The commands to extract the exported symbol list from a shared archive.
43285 extract_expsyms_cmds=$lt_extract_expsyms_cmds
43287 # Variables whose values should be saved in libtool wrapper scripts and
43288 # restored at link time.
43289 variables_saved_for_relink=$lt_variables_saved_for_relink
43291 # Do we need the "lib" prefix for modules?
43292 need_lib_prefix=$need_lib_prefix
43294 # Do we need a version for libraries?
43295 need_version=$need_version
43297 # Library versioning type.
43298 version_type=$version_type
43300 # Shared library runtime path variable.
43301 runpath_var=$runpath_var
43303 # Shared library path variable.
43304 shlibpath_var=$shlibpath_var
43306 # Is shlibpath searched before the hard-coded library search path?
43307 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
43309 # Format of library name prefix.
43310 libname_spec=$lt_libname_spec
43312 # List of archive names. First name is the real one, the rest are links.
43313 # The last name is the one that the linker finds with -lNAME
43314 library_names_spec=$lt_library_names_spec
43316 # The coded name of the library, if different from the real name.
43317 soname_spec=$lt_soname_spec
43319 # Command to use after installation of a shared archive.
43320 postinstall_cmds=$lt_postinstall_cmds
43322 # Command to use after uninstallation of a shared archive.
43323 postuninstall_cmds=$lt_postuninstall_cmds
43325 # Commands used to finish a libtool library installation in a directory.
43326 finish_cmds=$lt_finish_cmds
43328 # As "finish_cmds", except a single script fragment to be evaled but
43330 finish_eval=$lt_finish_eval
43332 # Whether we should hardcode library paths into libraries.
43333 hardcode_into_libs=$hardcode_into_libs
43335 # Compile-time system search path for libraries.
43336 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
43338 # Run-time system search path for libraries.
43339 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
43341 # Whether dlopen is supported.
43342 dlopen_support=$enable_dlopen
43344 # Whether dlopen of programs is supported.
43345 dlopen_self=$enable_dlopen_self
43347 # Whether dlopen of statically linked programs is supported.
43348 dlopen_self_static=$enable_dlopen_self_static
43350 # Commands to strip libraries.
43351 old_striplib=$lt_old_striplib
43352 striplib=$lt_striplib
43355 # The linker used to build libraries.
43358 # Commands used to build an old-style archive.
43359 old_archive_cmds=$lt_old_archive_cmds
43361 # A language specific compiler.
43364 # Is the compiler the GNU compiler?
43367 # Compiler flag to turn off builtin functions.
43368 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
43370 # How to pass a linker flag through the compiler.
43371 wl=$lt_lt_prog_compiler_wl
43373 # Additional compiler flags for building library objects.
43374 pic_flag=$lt_lt_prog_compiler_pic
43376 # Compiler flag to prevent dynamic linking.
43377 link_static_flag=$lt_lt_prog_compiler_static
43379 # Does compiler simultaneously support -c and -o options?
43380 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
43382 # Whether or not to add -lc for building shared libraries.
43383 build_libtool_need_lc=$archive_cmds_need_lc
43385 # Whether or not to disallow shared libs when runtime libs are static.
43386 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
43388 # Compiler flag to allow reflexive dlopens.
43389 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
43391 # Compiler flag to generate shared objects directly from archives.
43392 whole_archive_flag_spec=$lt_whole_archive_flag_spec
43394 # Whether the compiler copes with passing no objects directly.
43395 compiler_needs_object=$lt_compiler_needs_object
43397 # Create an old-style archive from a shared archive.
43398 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
43400 # Create a temporary old-style archive to link instead of a shared archive.
43401 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
43403 # Commands used to build a shared archive.
43404 archive_cmds=$lt_archive_cmds
43405 archive_expsym_cmds=$lt_archive_expsym_cmds
43407 # Commands used to build a loadable module if different from building
43408 # a shared archive.
43409 module_cmds=$lt_module_cmds
43410 module_expsym_cmds=$lt_module_expsym_cmds
43412 # Whether we are building with GNU ld or not.
43413 with_gnu_ld=$lt_with_gnu_ld
43415 # Flag that allows shared libraries with undefined symbols to be built.
43416 allow_undefined_flag=$lt_allow_undefined_flag
43418 # Flag that enforces no undefined symbols.
43419 no_undefined_flag=$lt_no_undefined_flag
43421 # Flag to hardcode \$libdir into a binary during linking.
43422 # This must work even if \$libdir does not exist
43423 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
43425 # If ld is used when linking, flag to hardcode \$libdir into a binary
43426 # during linking. This must work even if \$libdir does not exist.
43427 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
43429 # Whether we need a single "-rpath" flag with a separated argument.
43430 hardcode_libdir_separator=$lt_hardcode_libdir_separator
43432 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43433 # DIR into the resulting binary.
43434 hardcode_direct=$hardcode_direct
43436 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43437 # DIR into the resulting binary and the resulting library dependency is
43438 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
43439 # library is relocated.
43440 hardcode_direct_absolute=$hardcode_direct_absolute
43442 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43443 # into the resulting binary.
43444 hardcode_minus_L=$hardcode_minus_L
43446 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43447 # into the resulting binary.
43448 hardcode_shlibpath_var=$hardcode_shlibpath_var
43450 # Set to "yes" if building a shared library automatically hardcodes DIR
43451 # into the library and all subsequent libraries and executables linked
43453 hardcode_automatic=$hardcode_automatic
43455 # Set to yes if linker adds runtime paths of dependent libraries
43456 # to runtime path list.
43457 inherit_rpath=$inherit_rpath
43459 # Whether libtool must link a program against all its dependency libraries.
43460 link_all_deplibs=$link_all_deplibs
43462 # Fix the shell variable \$srcfile for the compiler.
43463 fix_srcfile_path=$lt_fix_srcfile_path
43465 # Set to "yes" if exported symbols are required.
43466 always_export_symbols=$always_export_symbols
43468 # The commands to list exported symbols.
43469 export_symbols_cmds=$lt_export_symbols_cmds
43471 # Symbols that should not be listed in the preloaded symbols.
43472 exclude_expsyms=$lt_exclude_expsyms
43474 # Symbols that must always be exported.
43475 include_expsyms=$lt_include_expsyms
43477 # Commands necessary for linking programs (against libraries) with templates.
43478 prelink_cmds=$lt_prelink_cmds
43480 # Specify filename containing input files.
43481 file_list_spec=$lt_file_list_spec
43483 # How to hardcode a shared library path into an executable.
43484 hardcode_action=$hardcode_action
43486 # The directories searched by this compiler when creating a shared library.
43487 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
43489 # Dependencies to place before and after the objects being linked to
43490 # create a shared library.
43491 predep_objects=$lt_predep_objects
43492 postdep_objects=$lt_postdep_objects
43493 predeps=$lt_predeps
43494 postdeps=$lt_postdeps
43496 # The library search path used internally by the compiler when linking
43497 # a shared library.
43498 compiler_lib_search_path=$lt_compiler_lib_search_path
43500 # ### END LIBTOOL CONFIG
43506 cat <<\_LT_EOF >> "$cfgfile"
43507 # AIX sometimes has problems with the GCC collect2 program. For some
43508 # reason, if we set the COLLECT_NAMES environment variable, the problems
43509 # vanish in a puff of smoke.
43510 if test "X${COLLECT_NAMES+set}" != Xset; then
43512 export COLLECT_NAMES
43519 ltmain="$ac_aux_dir/ltmain.sh"
43522 # We use sed instead of cat because bash on DJGPP gets confused if
43523 # if finds mixed CR/LF and LF-only lines. Since sed operates in
43524 # text mode, it properly converts lines to CR/LF. This bash problem
43525 # is reportedly fixed, but why not run on old versions too?
43526 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
43527 || (rm -f "$cfgfile"; exit 1)
43531 cat << \_LT_EOF >> "$cfgfile"
43533 # func_dirname file append nondir_replacement
43534 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
43535 # otherwise set result to NONDIR_REPLACEMENT.
43539 */*) func_dirname_result="${1%/*}${2}" ;;
43540 * ) func_dirname_result="${3}" ;;
43544 # func_basename file
43547 func_basename_result="${1##*/}"
43550 # func_dirname_and_basename file append nondir_replacement
43551 # perform func_basename and func_dirname in a single function
43553 # dirname: Compute the dirname of FILE. If nonempty,
43554 # add APPEND to the result, otherwise set result
43555 # to NONDIR_REPLACEMENT.
43556 # value returned in "$func_dirname_result"
43557 # basename: Compute filename of FILE.
43558 # value retuned in "$func_basename_result"
43559 # Implementation must be kept synchronized with func_dirname
43560 # and func_basename. For efficiency, we do not delegate to
43561 # those functions but instead duplicate the functionality here.
43562 func_dirname_and_basename ()
43565 */*) func_dirname_result="${1%/*}${2}" ;;
43566 * ) func_dirname_result="${3}" ;;
43568 func_basename_result="${1##*/}"
43571 # func_stripname prefix suffix name
43572 # strip PREFIX and SUFFIX off of NAME.
43573 # PREFIX and SUFFIX must not contain globbing or regex special
43574 # characters, hashes, percent signs, but SUFFIX may contain a leading
43575 # dot (in which case that matches only a dot).
43578 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
43579 # positional parameters, so assign one to ordinary parameter first.
43580 func_stripname_result=${3}
43581 func_stripname_result=${func_stripname_result#"${1}"}
43582 func_stripname_result=${func_stripname_result%"${2}"}
43588 func_opt_split_opt=${1%%=*}
43589 func_opt_split_arg=${1#*=}
43596 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
43597 *) func_lo2o_result=${1} ;;
43601 # func_xform libobj-or-source
43604 func_xform_result=${1%.*}.lo
43607 # func_arith arithmetic-term...
43610 func_arith_result=$(( $* ))
43614 # STRING may not start with a hyphen.
43617 func_len_result=${#1}
43622 *) # Bourne compatible functions.
43623 cat << \_LT_EOF >> "$cfgfile"
43625 # func_dirname file append nondir_replacement
43626 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
43627 # otherwise set result to NONDIR_REPLACEMENT.
43630 # Extract subdirectory from the argument.
43631 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
43632 if test "X$func_dirname_result" = "X${1}"; then
43633 func_dirname_result="${3}"
43635 func_dirname_result="$func_dirname_result${2}"
43639 # func_basename file
43642 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
43646 # func_stripname prefix suffix name
43647 # strip PREFIX and SUFFIX off of NAME.
43648 # PREFIX and SUFFIX must not contain globbing or regex special
43649 # characters, hashes, percent signs, but SUFFIX may contain a leading
43650 # dot (in which case that matches only a dot).
43651 # func_strip_suffix prefix name
43655 .*) func_stripname_result=`$ECHO "X${3}" \
43656 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
43657 *) func_stripname_result=`$ECHO "X${3}" \
43658 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
43663 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
43664 my_sed_long_arg='1s/^-[^=]*=//'
43669 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
43670 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
43676 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
43679 # func_xform libobj-or-source
43682 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
43685 # func_arith arithmetic-term...
43688 func_arith_result=`expr "$@"`
43692 # STRING may not start with a hyphen.
43695 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
43701 case $lt_shell_append in
43703 cat << \_LT_EOF >> "$cfgfile"
43705 # func_append var value
43706 # Append VALUE to the end of shell variable VAR.
43714 cat << \_LT_EOF >> "$cfgfile"
43716 # func_append var value
43717 # Append VALUE to the end of shell variable VAR.
43728 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
43729 || (rm -f "$cfgfile"; exit 1)
43731 mv -f "$cfgfile" "$ofile" ||
43732 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
43736 cat <<_LT_EOF >> "$ofile"
43738 # ### BEGIN LIBTOOL TAG CONFIG: CXX
43740 # The linker used to build libraries.
43743 # Commands used to build an old-style archive.
43744 old_archive_cmds=$lt_old_archive_cmds_CXX
43746 # A language specific compiler.
43747 CC=$lt_compiler_CXX
43749 # Is the compiler the GNU compiler?
43752 # Compiler flag to turn off builtin functions.
43753 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
43755 # How to pass a linker flag through the compiler.
43756 wl=$lt_lt_prog_compiler_wl_CXX
43758 # Additional compiler flags for building library objects.
43759 pic_flag=$lt_lt_prog_compiler_pic_CXX
43761 # Compiler flag to prevent dynamic linking.
43762 link_static_flag=$lt_lt_prog_compiler_static_CXX
43764 # Does compiler simultaneously support -c and -o options?
43765 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
43767 # Whether or not to add -lc for building shared libraries.
43768 build_libtool_need_lc=$archive_cmds_need_lc_CXX
43770 # Whether or not to disallow shared libs when runtime libs are static.
43771 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
43773 # Compiler flag to allow reflexive dlopens.
43774 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
43776 # Compiler flag to generate shared objects directly from archives.
43777 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
43779 # Whether the compiler copes with passing no objects directly.
43780 compiler_needs_object=$lt_compiler_needs_object_CXX
43782 # Create an old-style archive from a shared archive.
43783 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
43785 # Create a temporary old-style archive to link instead of a shared archive.
43786 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
43788 # Commands used to build a shared archive.
43789 archive_cmds=$lt_archive_cmds_CXX
43790 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
43792 # Commands used to build a loadable module if different from building
43793 # a shared archive.
43794 module_cmds=$lt_module_cmds_CXX
43795 module_expsym_cmds=$lt_module_expsym_cmds_CXX
43797 # Whether we are building with GNU ld or not.
43798 with_gnu_ld=$lt_with_gnu_ld_CXX
43800 # Flag that allows shared libraries with undefined symbols to be built.
43801 allow_undefined_flag=$lt_allow_undefined_flag_CXX
43803 # Flag that enforces no undefined symbols.
43804 no_undefined_flag=$lt_no_undefined_flag_CXX
43806 # Flag to hardcode \$libdir into a binary during linking.
43807 # This must work even if \$libdir does not exist
43808 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
43810 # If ld is used when linking, flag to hardcode \$libdir into a binary
43811 # during linking. This must work even if \$libdir does not exist.
43812 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
43814 # Whether we need a single "-rpath" flag with a separated argument.
43815 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
43817 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43818 # DIR into the resulting binary.
43819 hardcode_direct=$hardcode_direct_CXX
43821 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43822 # DIR into the resulting binary and the resulting library dependency is
43823 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
43824 # library is relocated.
43825 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
43827 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43828 # into the resulting binary.
43829 hardcode_minus_L=$hardcode_minus_L_CXX
43831 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43832 # into the resulting binary.
43833 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
43835 # Set to "yes" if building a shared library automatically hardcodes DIR
43836 # into the library and all subsequent libraries and executables linked
43838 hardcode_automatic=$hardcode_automatic_CXX
43840 # Set to yes if linker adds runtime paths of dependent libraries
43841 # to runtime path list.
43842 inherit_rpath=$inherit_rpath_CXX
43844 # Whether libtool must link a program against all its dependency libraries.
43845 link_all_deplibs=$link_all_deplibs_CXX
43847 # Fix the shell variable \$srcfile for the compiler.
43848 fix_srcfile_path=$lt_fix_srcfile_path_CXX
43850 # Set to "yes" if exported symbols are required.
43851 always_export_symbols=$always_export_symbols_CXX
43853 # The commands to list exported symbols.
43854 export_symbols_cmds=$lt_export_symbols_cmds_CXX
43856 # Symbols that should not be listed in the preloaded symbols.
43857 exclude_expsyms=$lt_exclude_expsyms_CXX
43859 # Symbols that must always be exported.
43860 include_expsyms=$lt_include_expsyms_CXX
43862 # Commands necessary for linking programs (against libraries) with templates.
43863 prelink_cmds=$lt_prelink_cmds_CXX
43865 # Specify filename containing input files.
43866 file_list_spec=$lt_file_list_spec_CXX
43868 # How to hardcode a shared library path into an executable.
43869 hardcode_action=$hardcode_action_CXX
43871 # The directories searched by this compiler when creating a shared library.
43872 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
43874 # Dependencies to place before and after the objects being linked to
43875 # create a shared library.
43876 predep_objects=$lt_predep_objects_CXX
43877 postdep_objects=$lt_postdep_objects_CXX
43878 predeps=$lt_predeps_CXX
43879 postdeps=$lt_postdeps_CXX
43881 # The library search path used internally by the compiler when linking
43882 # a shared library.
43883 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
43885 # ### END LIBTOOL TAG CONFIG: CXX
43890 for ac_file in $CONFIG_FILES; do
43891 # Support "outfile[:infile[:infile...]]"
43893 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
43895 # PO directories have a Makefile.in generated from Makefile.in.in.
43896 case "$ac_file" in */Makefile.in)
43897 # Adjust a relative srcdir.
43898 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
43899 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
43900 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
43901 # In autoconf-2.13 it is called $ac_given_srcdir.
43902 # In autoconf-2.50 it is called $srcdir.
43903 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
43904 case "$ac_given_srcdir" in
43905 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
43906 /*) top_srcdir="$ac_given_srcdir" ;;
43907 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
43909 # Treat a directory as a PO directory if and only if it has a
43910 # POTFILES.in file. This allows packages to have multiple PO
43911 # directories under different names or in different locations.
43912 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
43913 rm -f "$ac_dir/POTFILES"
43914 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
43915 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
43916 POMAKEFILEDEPS="POTFILES.in"
43917 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
43918 # on $ac_dir but don't depend on user-specified configuration
43920 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
43921 # The LINGUAS file contains the set of available languages.
43922 if test -n "$OBSOLETE_ALL_LINGUAS"; then
43923 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
43925 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
43926 # Hide the ALL_LINGUAS assigment from automake.
43927 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
43928 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
43930 # The set of available languages was given in configure.in.
43931 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
43934 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
43935 # Compute UPDATEPOFILES
43936 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
43937 # Compute DUMMYPOFILES
43938 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
43940 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
43941 case "$ac_given_srcdir" in
43943 *) srcdirpre='$(srcdir)/' ;;
43949 for lang in $ALL_LINGUAS; do
43950 POFILES="$POFILES $srcdirpre$lang.po"
43951 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
43952 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
43953 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
43955 # CATALOGS depends on both $ac_dir and the user's LINGUAS
43956 # environment variable.
43958 if test -n "$ALL_LINGUAS"; then
43959 for presentlang in $ALL_LINGUAS; do
43961 if test "%UNSET%" != "$LINGUAS"; then
43962 desiredlanguages="$LINGUAS"
43964 desiredlanguages="$ALL_LINGUAS"
43966 for desiredlang in $desiredlanguages; do
43967 # Use the presentlang catalog if desiredlang is
43968 # a. equal to presentlang, or
43969 # b. a variant of presentlang (because in this case,
43970 # presentlang can be used as a fallback for messages
43971 # which are not translated in the desiredlang catalog).
43972 case "$desiredlang" in
43973 "$presentlang"*) useit=yes;;
43976 if test $useit = yes; then
43977 INST_LINGUAS="$INST_LINGUAS $presentlang"
43982 if test -n "$INST_LINGUAS"; then
43983 for lang in $INST_LINGUAS; do
43984 CATALOGS="$CATALOGS $lang.gmo"
43987 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
43988 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"
43989 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
43990 if test -f "$f"; then
43992 *.orig | *.bak | *~) ;;
43993 *) cat "$f" >> "$ac_dir/Makefile" ;;
44008 { (exit 0); exit 0; }
44010 chmod +x $CONFIG_STATUS
44011 ac_clean_files=$ac_clean_files_save
44014 # configure is writing to config.log, and then calls config.status.
44015 # config.status does its own redirection, appending to config.log.
44016 # Unfortunately, on DOS this fails, as config.log is still kept open
44017 # by configure, so config.status won't be able to write to it; its
44018 # output is simply discarded. So we exec the FD to /dev/null,
44019 # effectively closing config.log, so it can be properly (re)opened and
44020 # appended to by config.status. When coming back to configure, we
44021 # need to make the FD available again.
44022 if test "$no_create" != yes; then
44024 ac_config_status_args=
44025 test "$silent" = yes &&
44026 ac_config_status_args="$ac_config_status_args --quiet"
44028 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
44030 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
44031 # would make configure fail if this is the last instruction.
44032 $ac_cs_success || { (exit 1); exit 1; }
44036 if test "${support_bat}" = "yes" ; then
44037 if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
44038 echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
44044 if test "x$QMAKEQT4" != "xnone"; then
44049 chmod 755 install_conf_file build-depkgs-qt-console
44050 echo "Creating bat Makefile"
44056 if test X"$GCC" = "Xyes" ; then
44057 echo "Doing make of dependencies"
44058 ${MAKE:-make} depend
44062 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
44063 chmod 755 dvd-handler dvd-simulator
44064 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
44068 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
44069 chmod 755 $c/update_postgresql_tables_10_to_11 $c/update_sqlite_tables_10_to_11
44073 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
44074 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
44076 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
44077 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
44079 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
44080 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
44082 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
44083 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
44085 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
44086 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
44088 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
44089 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
44091 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
44092 chmod 755 $c/sqlite
44095 chmod 755 src/win32/build-depkgs-mingw32
44097 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
44098 largefile_support="yes"
44101 if test X"$GCC" = "Xyes" ; then
44102 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
44103 if test "x${CCVERSION}" = "x" ; then
44104 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
44106 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
44107 if test x"${CXXVERSION}" = x ; then
44108 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
44112 if test "x${db_type}" = "xInternal" ; then
44115 echo "You have not specified either --enable-client-only or one of the"
44116 echo " supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
44117 echo " This is not permitted. Please reconfigure."
44119 echo "Aborting the configuration ..."
44126 Configuration on `date`:
44128 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
44129 Bacula version: ${BACULA} ${VERSION} (${DATE})
44130 Source code location: ${srcdir}
44131 Install binaries: ${sbindir}
44132 Install libraries: ${libdir}
44133 Install config files: ${sysconfdir}
44134 Scripts directory: ${scriptdir}
44135 Archive directory: ${archivedir}
44136 Working directory: ${working_dir}
44137 PID directory: ${piddir}
44138 Subsys directory: ${subsysdir}
44139 Man directory: ${mandir}
44140 Data directory: ${datarootdir}
44141 C Compiler: ${CC} ${CCVERSION}
44142 C++ Compiler: ${CXX} ${CXXVERSION}
44143 Compiler flags: ${WCFLAGS} ${CFLAGS}
44144 Linker flags: ${WLDFLAGS} ${LDFLAGS}
44146 Statically Linked Tools: ${support_static_tools}
44147 Statically Linked FD: ${support_static_fd}
44148 Statically Linked SD: ${support_static_sd}
44149 Statically Linked DIR: ${support_static_dir}
44150 Statically Linked CONS: ${support_static_cons}
44151 Database type: ${db_type}
44152 Database port: ${db_port}
44153 Database lib: ${DB_LIBS}
44154 Database name: ${db_name}
44155 Database user: ${db_user}
44157 Job Output Email: ${job_email}
44158 Traceback Email: ${dump_email}
44159 SMTP Host Address: ${smtp_host}
44161 Director Port: ${dir_port}
44162 File daemon Port: ${fd_port}
44163 Storage daemon Port: ${sd_port}
44165 Director User: ${dir_user}
44166 Director Group: ${dir_group}
44167 Storage Daemon User: ${sd_user}
44168 Storage DaemonGroup: ${sd_group}
44169 File Daemon User: ${fd_user}
44170 File Daemon Group: ${fd_group}
44172 SQL binaries Directory ${SQL_BINDIR}
44174 Large file support: $largefile_support
44175 Bacula conio support: ${got_conio} ${CONS_LIBS}
44176 readline support: ${got_readline} ${PRTREADLINE_SRC}
44177 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
44178 TLS support: ${support_tls}
44179 Encryption support: ${support_crypto}
44180 ZLIB support: ${have_zlib}
44181 enable-smartalloc: ${support_smartalloc}
44182 bat support: ${support_bat} ${QWT_LDFLAGS}
44183 enable-gnome: ${support_gnome} ${gnome_version}
44184 enable-bwx-console: ${support_wx_console} ${wx_version}
44185 enable-tray-monitor: ${support_tray_monitor}
44186 client-only: ${build_client_only}
44187 build-dird: ${build_dird}
44188 build-stored: ${build_stored}
44189 ACL support: ${have_acl}
44190 Python support: ${support_python} ${PYTHON_LIBS}
44191 Batch insert enabled: ${support_batch_insert}