2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 # Pre-4.2 versions of Zsh do 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
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir=.
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
277 CONFIG_SHELL=$as_shell
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
305 as_func_ret_success () {
308 as_func_ret_failure () {
313 if as_func_success; then
317 echo as_func_success failed.
320 if as_func_failure; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
492 ECHO_C= ECHO_N= ECHO_T=
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
525 elif ln conf$$.file conf$$ 2>/dev/null; then
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
539 test -d ./-p && rmdir ./-p
543 if test -x / >/dev/null 2>&1; then
546 if ls -dL / >/dev/null 2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
575 # Check that we are running under the correct shell.
576 SHELL=${CONFIG_SHELL-/bin/sh}
580 # Remove one level of quotation (which was required for Make).
581 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
586 if test "X$1" = X--no-reexec; then
587 # Discard the --no-reexec flag, and continue.
589 elif test "X$1" = X--fallback-echo; then
590 # Avoid inline document here, it may be left over
592 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
593 # Yippee, $echo works!
596 # Restart under the correct shell.
597 exec $SHELL "$0" --no-reexec ${1+"$@"}
600 if test "X$1" = X--fallback-echo; then
601 # used as fallback echo
609 # The HP-UX ksh and POSIX shell print the target directory to stdout
611 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
613 if test -z "$ECHO"; then
614 if test "X${echo_test_string+set}" != Xset; then
615 # find a string as large as possible, as long as the shell can cope with it
616 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
619 echo_test_string=`eval $cmd` &&
620 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
627 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
628 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
629 test "X$echo_testing_string" = "X$echo_test_string"; then
632 # The Solaris, AIX, and Digital Unix default echo programs unquote
633 # backslashes. This makes it impossible to quote backslashes using
634 # echo "$something" | sed 's/\\/\\\\/g'
636 # So, first we look for a working echo in the user's PATH.
638 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
639 for dir in $PATH /usr/ucb; do
641 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
642 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
643 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
651 if test "X$echo" = Xecho; then
652 # We didn't find a better echo, so look for alternatives.
653 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
654 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
655 test "X$echo_testing_string" = "X$echo_test_string"; then
656 # This shell has a builtin print -r that does the trick.
658 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
659 test "X$CONFIG_SHELL" != X/bin/ksh; then
660 # If we have ksh, try running configure again with it.
661 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
662 export ORIGINAL_CONFIG_SHELL
663 CONFIG_SHELL=/bin/ksh
665 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
669 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
670 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
671 test "X$echo_testing_string" = "X$echo_test_string"; then
674 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
675 test "X$echo_testing_string" = 'X\t' &&
676 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
677 test "X$echo_testing_string" = "X$echo_test_string"; then
678 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680 SHELL="$CONFIG_SHELL"
682 echo="$CONFIG_SHELL $0 --fallback-echo"
683 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
684 test "X$echo_testing_string" = 'X\t' &&
685 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
686 test "X$echo_testing_string" = "X$echo_test_string"; then
687 echo="$CONFIG_SHELL $0 --fallback-echo"
689 # maybe with a smaller string...
692 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
693 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
700 if test "$prev" != 'sed 50q "$0"'; then
701 echo_test_string=`eval $prev`
702 export echo_test_string
703 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705 # Oops. We lost completely, so just stick with echo.
714 # Copy echo and quote the copy suitably for passing to libtool from
715 # the Makefile, instead of quoting the original, which is used later.
717 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
718 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
724 tagnames=${tagnames+${tagnames},}CXX
726 tagnames=${tagnames+${tagnames},}F77
728 exec 7<&0 </dev/null 6>&1
731 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
732 # so uname gets run too.
733 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
738 ac_default_prefix=/usr/local
740 ac_config_libobj_dir=.
746 SHELL=${CONFIG_SHELL-/bin/sh}
748 # Identity of this package.
755 ac_unique_file="build/apr_common.m4"
756 # Factoring default headers for most tests.
757 ac_includes_default="\
759 #ifdef HAVE_SYS_TYPES_H
760 # include <sys/types.h>
762 #ifdef HAVE_SYS_STAT_H
763 # include <sys/stat.h>
769 # ifdef HAVE_STDLIB_H
774 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
779 #ifdef HAVE_STRINGS_H
780 # include <strings.h>
782 #ifdef HAVE_INTTYPES_H
783 # include <inttypes.h>
792 ac_subst_vars='LTLIBOBJS
907 tcp_nodelay_inherited
935 apr_force_atomic_generic
1028 program_transform_name
1040 enable_option_checking
1042 enable_experimental_libtool
1050 with_installbuilddir
1053 enable_maintainer_mode
1058 enable_nonportable_atomics
1067 ac_precious_vars='build_alias
1084 # Initialize some variables set by options.
1086 ac_init_version=false
1087 ac_unrecognized_opts=
1088 ac_unrecognized_sep=
1089 # The variables have the same names as the options, with
1090 # dashes changed to underlines.
1091 cache_file=/dev/null
1098 program_transform_name=s,x,x,
1106 # Installation directory options.
1107 # These are left unexpanded so users can "make install exec_prefix=/foo"
1108 # and all the variables that are supposed to be based on exec_prefix
1109 # by default will actually change.
1110 # Use braces instead of parens because sh, perl, etc. also accept them.
1111 # (The list follows the same order as the GNU Coding Standards.)
1112 bindir='${exec_prefix}/bin'
1113 sbindir='${exec_prefix}/sbin'
1114 libexecdir='${exec_prefix}/libexec'
1115 datarootdir='${prefix}/share'
1116 datadir='${datarootdir}'
1117 sysconfdir='${prefix}/etc'
1118 sharedstatedir='${prefix}/com'
1119 localstatedir='${prefix}/var'
1120 includedir='${prefix}/include'
1121 oldincludedir='/usr/include'
1122 docdir='${datarootdir}/doc/${PACKAGE}'
1123 infodir='${datarootdir}/info'
1128 libdir='${exec_prefix}/lib'
1129 localedir='${datarootdir}/locale'
1130 mandir='${datarootdir}/man'
1136 # If the previous option needs an argument, assign it.
1137 if test -n "$ac_prev"; then
1138 eval $ac_prev=\$ac_option
1144 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1148 # Accept the important Cygnus configure options, so we can diagnose typos.
1150 case $ac_dashdash$ac_option in
1154 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1156 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1157 bindir=$ac_optarg ;;
1159 -build | --build | --buil | --bui | --bu)
1160 ac_prev=build_alias ;;
1161 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1162 build_alias=$ac_optarg ;;
1164 -cache-file | --cache-file | --cache-fil | --cache-fi \
1165 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1166 ac_prev=cache_file ;;
1167 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1168 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1169 cache_file=$ac_optarg ;;
1171 --config-cache | -C)
1172 cache_file=config.cache ;;
1174 -datadir | --datadir | --datadi | --datad)
1176 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1177 datadir=$ac_optarg ;;
1179 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1180 | --dataroo | --dataro | --datar)
1181 ac_prev=datarootdir ;;
1182 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1183 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1184 datarootdir=$ac_optarg ;;
1186 -disable-* | --disable-*)
1187 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1188 # Reject names that are not valid shell variable names.
1189 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1190 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1191 { (exit 1); exit 1; }; }
1192 ac_useropt_orig=$ac_useropt
1193 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1194 case $ac_user_opts in
1196 "enable_$ac_useropt"
1198 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1199 ac_unrecognized_sep=', ';;
1201 eval enable_$ac_useropt=no ;;
1203 -docdir | --docdir | --docdi | --doc | --do)
1205 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1206 docdir=$ac_optarg ;;
1208 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1210 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1211 dvidir=$ac_optarg ;;
1213 -enable-* | --enable-*)
1214 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1215 # Reject names that are not valid shell variable names.
1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1217 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1218 { (exit 1); exit 1; }; }
1219 ac_useropt_orig=$ac_useropt
1220 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1221 case $ac_user_opts in
1223 "enable_$ac_useropt"
1225 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1226 ac_unrecognized_sep=', ';;
1228 eval enable_$ac_useropt=\$ac_optarg ;;
1230 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1231 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1232 | --exec | --exe | --ex)
1233 ac_prev=exec_prefix ;;
1234 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1235 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1236 | --exec=* | --exe=* | --ex=*)
1237 exec_prefix=$ac_optarg ;;
1239 -gas | --gas | --ga | --g)
1240 # Obsolete; use --with-gas.
1243 -help | --help | --hel | --he | -h)
1244 ac_init_help=long ;;
1245 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1246 ac_init_help=recursive ;;
1247 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1248 ac_init_help=short ;;
1250 -host | --host | --hos | --ho)
1251 ac_prev=host_alias ;;
1252 -host=* | --host=* | --hos=* | --ho=*)
1253 host_alias=$ac_optarg ;;
1255 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1257 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1259 htmldir=$ac_optarg ;;
1261 -includedir | --includedir | --includedi | --included | --include \
1262 | --includ | --inclu | --incl | --inc)
1263 ac_prev=includedir ;;
1264 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1265 | --includ=* | --inclu=* | --incl=* | --inc=*)
1266 includedir=$ac_optarg ;;
1268 -infodir | --infodir | --infodi | --infod | --info | --inf)
1270 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1271 infodir=$ac_optarg ;;
1273 -libdir | --libdir | --libdi | --libd)
1275 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1276 libdir=$ac_optarg ;;
1278 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1279 | --libexe | --libex | --libe)
1280 ac_prev=libexecdir ;;
1281 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1282 | --libexe=* | --libex=* | --libe=*)
1283 libexecdir=$ac_optarg ;;
1285 -localedir | --localedir | --localedi | --localed | --locale)
1286 ac_prev=localedir ;;
1287 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1288 localedir=$ac_optarg ;;
1290 -localstatedir | --localstatedir | --localstatedi | --localstated \
1291 | --localstate | --localstat | --localsta | --localst | --locals)
1292 ac_prev=localstatedir ;;
1293 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1294 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1295 localstatedir=$ac_optarg ;;
1297 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1299 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1300 mandir=$ac_optarg ;;
1302 -nfp | --nfp | --nf)
1303 # Obsolete; use --without-fp.
1306 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1307 | --no-cr | --no-c | -n)
1310 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1311 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1314 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1315 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1316 | --oldin | --oldi | --old | --ol | --o)
1317 ac_prev=oldincludedir ;;
1318 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1319 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1320 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1321 oldincludedir=$ac_optarg ;;
1323 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1325 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1326 prefix=$ac_optarg ;;
1328 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1329 | --program-pre | --program-pr | --program-p)
1330 ac_prev=program_prefix ;;
1331 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1332 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1333 program_prefix=$ac_optarg ;;
1335 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1336 | --program-suf | --program-su | --program-s)
1337 ac_prev=program_suffix ;;
1338 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1339 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1340 program_suffix=$ac_optarg ;;
1342 -program-transform-name | --program-transform-name \
1343 | --program-transform-nam | --program-transform-na \
1344 | --program-transform-n | --program-transform- \
1345 | --program-transform | --program-transfor \
1346 | --program-transfo | --program-transf \
1347 | --program-trans | --program-tran \
1348 | --progr-tra | --program-tr | --program-t)
1349 ac_prev=program_transform_name ;;
1350 -program-transform-name=* | --program-transform-name=* \
1351 | --program-transform-nam=* | --program-transform-na=* \
1352 | --program-transform-n=* | --program-transform-=* \
1353 | --program-transform=* | --program-transfor=* \
1354 | --program-transfo=* | --program-transf=* \
1355 | --program-trans=* | --program-tran=* \
1356 | --progr-tra=* | --program-tr=* | --program-t=*)
1357 program_transform_name=$ac_optarg ;;
1359 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1361 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1362 pdfdir=$ac_optarg ;;
1364 -psdir | --psdir | --psdi | --psd | --ps)
1366 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1369 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1370 | -silent | --silent | --silen | --sile | --sil)
1373 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1375 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1377 sbindir=$ac_optarg ;;
1379 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1380 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1381 | --sharedst | --shareds | --shared | --share | --shar \
1383 ac_prev=sharedstatedir ;;
1384 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1385 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1386 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1388 sharedstatedir=$ac_optarg ;;
1390 -site | --site | --sit)
1392 -site=* | --site=* | --sit=*)
1395 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1397 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1398 srcdir=$ac_optarg ;;
1400 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1401 | --syscon | --sysco | --sysc | --sys | --sy)
1402 ac_prev=sysconfdir ;;
1403 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1404 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1405 sysconfdir=$ac_optarg ;;
1407 -target | --target | --targe | --targ | --tar | --ta | --t)
1408 ac_prev=target_alias ;;
1409 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1410 target_alias=$ac_optarg ;;
1412 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1415 -version | --version | --versio | --versi | --vers | -V)
1416 ac_init_version=: ;;
1419 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1420 # Reject names that are not valid shell variable names.
1421 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1422 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1423 { (exit 1); exit 1; }; }
1424 ac_useropt_orig=$ac_useropt
1425 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1426 case $ac_user_opts in
1430 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1431 ac_unrecognized_sep=', ';;
1433 eval with_$ac_useropt=\$ac_optarg ;;
1435 -without-* | --without-*)
1436 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1437 # Reject names that are not valid shell variable names.
1438 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1439 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1440 { (exit 1); exit 1; }; }
1441 ac_useropt_orig=$ac_useropt
1442 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1443 case $ac_user_opts in
1447 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1448 ac_unrecognized_sep=', ';;
1450 eval with_$ac_useropt=no ;;
1453 # Obsolete; use --with-x.
1456 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1457 | --x-incl | --x-inc | --x-in | --x-i)
1458 ac_prev=x_includes ;;
1459 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1460 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1461 x_includes=$ac_optarg ;;
1463 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1464 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1465 ac_prev=x_libraries ;;
1466 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1467 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1468 x_libraries=$ac_optarg ;;
1470 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1471 Try \`$0 --help' for more information." >&2
1472 { (exit 1); exit 1; }; }
1476 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1477 # Reject names that are not valid shell variable names.
1478 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1479 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1480 { (exit 1); exit 1; }; }
1481 eval $ac_envvar=\$ac_optarg
1482 export $ac_envvar ;;
1485 # FIXME: should be removed in autoconf 3.0.
1486 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1487 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1488 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1489 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1495 if test -n "$ac_prev"; then
1496 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1497 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1498 { (exit 1); exit 1; }; }
1501 if test -n "$ac_unrecognized_opts"; then
1502 case $enable_option_checking in
1504 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1505 { (exit 1); exit 1; }; } ;;
1506 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1510 # Check all directory arguments for consistency.
1511 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1512 datadir sysconfdir sharedstatedir localstatedir includedir \
1513 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1514 libdir localedir mandir
1516 eval ac_val=\$$ac_var
1517 # Remove trailing slashes.
1520 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1521 eval $ac_var=\$ac_val;;
1523 # Be sure to have absolute directory names.
1525 [\\/$]* | ?:[\\/]* ) continue;;
1526 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1528 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1529 { (exit 1); exit 1; }; }
1532 # There might be people who depend on the old broken behavior: `$host'
1533 # used to hold the argument of --host etc.
1534 # FIXME: To remove some day.
1537 target=$target_alias
1539 # FIXME: To remove some day.
1540 if test "x$host_alias" != x; then
1541 if test "x$build_alias" = x; then
1542 cross_compiling=maybe
1543 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1544 If a cross compiler is detected then cross compile mode will be used." >&2
1545 elif test "x$build_alias" != "x$host_alias"; then
1551 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1553 test "$silent" = yes && exec 6>/dev/null
1556 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1557 ac_ls_di=`ls -di .` &&
1558 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1559 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1560 { (exit 1); exit 1; }; }
1561 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1562 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1563 { (exit 1); exit 1; }; }
1566 # Find the source files, if location was not specified.
1567 if test -z "$srcdir"; then
1568 ac_srcdir_defaulted=yes
1569 # Try the directory containing this script, then the parent directory.
1570 ac_confdir=`$as_dirname -- "$as_myself" ||
1571 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1572 X"$as_myself" : 'X\(//\)[^/]' \| \
1573 X"$as_myself" : 'X\(//\)$' \| \
1574 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1575 $as_echo X"$as_myself" |
1576 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1594 if test ! -r "$srcdir/$ac_unique_file"; then
1598 ac_srcdir_defaulted=no
1600 if test ! -r "$srcdir/$ac_unique_file"; then
1601 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1602 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1603 { (exit 1); exit 1; }; }
1605 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1607 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1608 { (exit 1); exit 1; }; }
1610 # When building in place, set srcdir=.
1611 if test "$ac_abs_confdir" = "$ac_pwd"; then
1614 # Remove unnecessary trailing slashes from srcdir.
1615 # Double slashes in file names in object file debugging info
1616 # mess up M-x gdb in Emacs.
1618 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1620 for ac_var in $ac_precious_vars; do
1621 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1622 eval ac_env_${ac_var}_value=\$${ac_var}
1623 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1624 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1628 # Report the --help message.
1630 if test "$ac_init_help" = "long"; then
1631 # Omit some internal or obsolete options to make the list less imposing.
1632 # This message is too long to be a string in the A/UX 3.1 sh.
1634 \`configure' configures this package to adapt to many kinds of systems.
1636 Usage: $0 [OPTION]... [VAR=VALUE]...
1638 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1639 VAR=VALUE. See below for descriptions of some of the useful variables.
1641 Defaults for the options are specified in brackets.
1644 -h, --help display this help and exit
1645 --help=short display options specific to this package
1646 --help=recursive display the short help of all the included packages
1647 -V, --version display version information and exit
1648 -q, --quiet, --silent do not print \`checking...' messages
1649 --cache-file=FILE cache test results in FILE [disabled]
1650 -C, --config-cache alias for \`--cache-file=config.cache'
1651 -n, --no-create do not create output files
1652 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1654 Installation directories:
1655 --prefix=PREFIX install architecture-independent files in PREFIX
1656 [$ac_default_prefix]
1657 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1660 By default, \`make install' will install all the files in
1661 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1662 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1663 for instance \`--prefix=\$HOME'.
1665 For better control, use the options below.
1667 Fine tuning of the installation directories:
1668 --bindir=DIR user executables [EPREFIX/bin]
1669 --sbindir=DIR system admin executables [EPREFIX/sbin]
1670 --libexecdir=DIR program executables [EPREFIX/libexec]
1671 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1672 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1673 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1674 --libdir=DIR object code libraries [EPREFIX/lib]
1675 --includedir=DIR C header files [PREFIX/include]
1676 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1677 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1678 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1679 --infodir=DIR info documentation [DATAROOTDIR/info]
1680 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1681 --mandir=DIR man documentation [DATAROOTDIR/man]
1682 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1683 --htmldir=DIR html documentation [DOCDIR]
1684 --dvidir=DIR dvi documentation [DOCDIR]
1685 --pdfdir=DIR pdf documentation [DOCDIR]
1686 --psdir=DIR ps documentation [DOCDIR]
1692 --build=BUILD configure for building on BUILD [guessed]
1693 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1694 --target=TARGET configure for building compilers for TARGET [HOST]
1698 if test -n "$ac_init_help"; then
1703 --disable-option-checking ignore unrecognized --enable/--with options
1704 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1705 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1706 --enable-layout=LAYOUT
1707 --experimental-libtool Use experimental custom libtool (not included in source distribution)
1708 --enable-shared[=PKGS] build shared libraries [default=yes]
1709 --enable-static[=PKGS] build static libraries [default=yes]
1710 --enable-fast-install[=PKGS]
1711 optimize for fast installation [default=yes]
1712 --disable-libtool-lock avoid locking (might break parallel builds)
1713 --enable-debug Turn on debugging and compile time warnings
1714 --enable-maintainer-mode Turn on debugging and compile time warnings
1715 --enable-profile Turn on profiling for the build (GCC)
1716 --enable-pool-debug[=yes|no|verbose|verbose-alloc|lifetime|owner|all] Turn on pools debugging
1717 --enable-malloc-debug Switch on malloc_debug for BeOS
1718 --enable-nonportable-atomics Turn on optimized atomic code which may produce nonportable binaries
1719 --enable-threads Enable threading support in APR.
1720 --disable-dso Disable DSO support
1721 --enable-other-child Enable reliable child processes
1722 --disable-ipv6 Disable IPv6 support in APR.
1725 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1726 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1727 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1728 --with-pic try to use only PIC/non-PIC objects [default=use
1730 --with-tags[=TAGS] include additional configurations [automatic]
1731 --with-installbuilddir=DIR location to store APR build files (defaults to '${datadir}/build')
1732 --without-libtool avoid using libtool to link the library
1733 --with-efence[=DIR] path to Electric Fence installation
1734 --with-sendfile Override decision to use sendfile
1735 --with-egd[=DIR] use EGD-compatible socket
1736 --with-devrandom[=DEV] use /dev/random or compatible [searches by default]
1738 Some influential environment variables:
1739 CC C compiler command
1740 CFLAGS C compiler flags
1741 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1742 nonstandard directory <lib dir>
1743 LIBS libraries to pass to the linker, e.g. -l<library>
1744 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1745 you have headers in a nonstandard directory <include dir>
1747 CXX C++ compiler command
1748 CXXFLAGS C++ compiler flags
1749 CXXCPP C++ preprocessor
1750 F77 Fortran 77 compiler command
1751 FFLAGS Fortran 77 compiler flags
1753 Use these variables to override the choices made by `configure' or to help
1754 it to find libraries and programs with nonstandard names/locations.
1760 if test "$ac_init_help" = "recursive"; then
1761 # If there are subdirs, report their specific --help.
1762 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1763 test -d "$ac_dir" ||
1764 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1769 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1771 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1772 # A ".." for each directory in $ac_dir_suffix.
1773 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1774 case $ac_top_builddir_sub in
1775 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1776 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1779 ac_abs_top_builddir=$ac_pwd
1780 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1781 # for backward compatibility:
1782 ac_top_builddir=$ac_top_build_prefix
1785 .) # We are building in place.
1787 ac_top_srcdir=$ac_top_builddir_sub
1788 ac_abs_top_srcdir=$ac_pwd ;;
1789 [\\/]* | ?:[\\/]* ) # Absolute name.
1790 ac_srcdir=$srcdir$ac_dir_suffix;
1791 ac_top_srcdir=$srcdir
1792 ac_abs_top_srcdir=$srcdir ;;
1794 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1795 ac_top_srcdir=$ac_top_build_prefix$srcdir
1796 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1798 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1800 cd "$ac_dir" || { ac_status=$?; continue; }
1801 # Check for guested configure.
1802 if test -f "$ac_srcdir/configure.gnu"; then
1804 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1805 elif test -f "$ac_srcdir/configure"; then
1807 $SHELL "$ac_srcdir/configure" --help=recursive
1809 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1811 cd "$ac_pwd" || { ac_status=$?; break; }
1815 test -n "$ac_init_help" && exit $ac_status
1816 if $ac_init_version; then
1819 generated by GNU Autoconf 2.63
1821 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1822 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1823 This configure script is free software; the Free Software Foundation
1824 gives unlimited permission to copy, distribute and modify it.
1828 cat >config.log <<_ACEOF
1829 This file contains any messages produced by compilers while
1830 running configure, to aid debugging if configure makes a mistake.
1832 It was created by $as_me, which was
1833 generated by GNU Autoconf 2.63. Invocation command line was
1845 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1846 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1847 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1848 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1849 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1851 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1852 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1854 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1855 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1856 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1857 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1858 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1859 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1860 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1868 test -z "$as_dir" && as_dir=.
1869 $as_echo "PATH: $as_dir"
1885 # Keep a trace of the command line.
1886 # Strip out --no-create and --no-recursion so they do not pile up.
1887 # Strip out --silent because we don't want to record it for future runs.
1888 # Also quote any args containing shell meta-characters.
1889 # Make two passes to allow for proper duplicate-argument suppression.
1893 ac_must_keep_next=false
1899 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1900 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1901 | -silent | --silent | --silen | --sile | --sil)
1904 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1907 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1909 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1910 if test $ac_must_keep_next = true; then
1911 ac_must_keep_next=false # Got value, back to normal.
1914 *=* | --config-cache | -C | -disable-* | --disable-* \
1915 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1916 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1917 | -with-* | --with-* | -without-* | --without-* | --x)
1918 case "$ac_configure_args0 " in
1919 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1922 -* ) ac_must_keep_next=true ;;
1925 ac_configure_args="$ac_configure_args '$ac_arg'"
1930 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1931 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1933 # When interrupted or exit'd, cleanup temporary files, and complete
1934 # config.log. We remove comments because anyway the quotes in there
1935 # would cause problems or look ugly.
1936 # WARNING: Use '\'' to represent an apostrophe within the trap.
1937 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1938 trap 'exit_status=$?
1939 # Save into config.log some information that might help in debugging.
1944 ## ---------------- ##
1945 ## Cache variables. ##
1946 ## ---------------- ##
1949 # The following way of writing the cache mishandles newlines in values,
1951 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1952 eval ac_val=\$$ac_var
1956 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1957 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1960 _ | IFS | as_nl) ;; #(
1961 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1962 *) $as_unset $ac_var ;;
1967 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1968 *${as_nl}ac_space=\ *)
1970 "s/'\''/'\''\\\\'\'''\''/g;
1971 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1974 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1982 ## ----------------- ##
1983 ## Output variables. ##
1984 ## ----------------- ##
1987 for ac_var in $ac_subst_vars
1989 eval ac_val=\$$ac_var
1991 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1993 $as_echo "$ac_var='\''$ac_val'\''"
1997 if test -n "$ac_subst_files"; then
1999 ## ------------------- ##
2000 ## File substitutions. ##
2001 ## ------------------- ##
2004 for ac_var in $ac_subst_files
2006 eval ac_val=\$$ac_var
2008 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2010 $as_echo "$ac_var='\''$ac_val'\''"
2015 if test -s confdefs.h; then
2025 test "$ac_signal" != 0 &&
2026 $as_echo "$as_me: caught signal $ac_signal"
2027 $as_echo "$as_me: exit $exit_status"
2029 rm -f core *.core core.conftest.* &&
2030 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2033 for ac_signal in 1 2 13 15; do
2034 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2038 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2039 rm -f -r conftest* confdefs.h
2041 # Predefined preprocessor variables.
2043 cat >>confdefs.h <<_ACEOF
2044 #define PACKAGE_NAME "$PACKAGE_NAME"
2048 cat >>confdefs.h <<_ACEOF
2049 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2053 cat >>confdefs.h <<_ACEOF
2054 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2058 cat >>confdefs.h <<_ACEOF
2059 #define PACKAGE_STRING "$PACKAGE_STRING"
2063 cat >>confdefs.h <<_ACEOF
2064 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2068 # Let the site file select an alternate cache file if it wants to.
2069 # Prefer an explicitly selected file to automatically selected ones.
2072 if test -n "$CONFIG_SITE"; then
2073 ac_site_file1=$CONFIG_SITE
2074 elif test "x$prefix" != xNONE; then
2075 ac_site_file1=$prefix/share/config.site
2076 ac_site_file2=$prefix/etc/config.site
2078 ac_site_file1=$ac_default_prefix/share/config.site
2079 ac_site_file2=$ac_default_prefix/etc/config.site
2081 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2083 test "x$ac_site_file" = xNONE && continue
2084 if test -r "$ac_site_file"; then
2085 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2086 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2087 sed 's/^/| /' "$ac_site_file" >&5
2092 if test -r "$cache_file"; then
2093 # Some versions of bash will fail to source /dev/null (special
2094 # files actually), so we avoid doing that.
2095 if test -f "$cache_file"; then
2096 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2097 $as_echo "$as_me: loading cache $cache_file" >&6;}
2099 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2100 *) . "./$cache_file";;
2104 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2105 $as_echo "$as_me: creating cache $cache_file" >&6;}
2109 # Check that the precious variables saved in the cache have kept the same
2111 ac_cache_corrupted=false
2112 for ac_var in $ac_precious_vars; do
2113 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2114 eval ac_new_set=\$ac_env_${ac_var}_set
2115 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2116 eval ac_new_val=\$ac_env_${ac_var}_value
2117 case $ac_old_set,$ac_new_set in
2119 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2120 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2121 ac_cache_corrupted=: ;;
2123 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2124 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2125 ac_cache_corrupted=: ;;
2128 if test "x$ac_old_val" != "x$ac_new_val"; then
2129 # differences in whitespace do not lead to failure.
2130 ac_old_val_w=`echo x $ac_old_val`
2131 ac_new_val_w=`echo x $ac_new_val`
2132 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2133 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2134 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2135 ac_cache_corrupted=:
2137 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2138 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2139 eval $ac_var=\$ac_old_val
2141 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2142 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2143 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2144 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2147 # Pass precious variables to config.status.
2148 if test "$ac_new_set" = set; then
2150 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2151 *) ac_arg=$ac_var=$ac_new_val ;;
2153 case " $ac_configure_args " in
2154 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2155 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2159 if $ac_cache_corrupted; then
2160 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2161 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2162 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2163 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2164 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2165 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2166 { (exit 1); exit 1; }; }
2186 ac_cpp='$CPP $CPPFLAGS'
2187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2192 ac_config_headers="$ac_config_headers include/arch/unix/apr_private.h"
2195 for ac_dir in build "$srcdir"/build; do
2196 if test -f "$ac_dir/install-sh"; then
2198 ac_install_sh="$ac_aux_dir/install-sh -c"
2200 elif test -f "$ac_dir/install.sh"; then
2202 ac_install_sh="$ac_aux_dir/install.sh -c"
2204 elif test -f "$ac_dir/shtool"; then
2206 ac_install_sh="$ac_aux_dir/shtool install -c"
2210 if test -z "$ac_aux_dir"; then
2211 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&5
2212 $as_echo "$as_me: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&2;}
2213 { (exit 1); exit 1; }; }
2216 # These three variables are undocumented and unsupported,
2217 # and are intended to be withdrawn in a future Autoconf release.
2218 # They can cause serious problems if a builder's source tree is in a directory
2219 # whose full name contains unusual characters.
2220 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2221 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2222 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2364 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
2365 ## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007,
2366 ## 2008 Free Software Foundation, Inc.
2367 ## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
2369 ## This file is free software; the Free Software Foundation gives
2370 ## unlimited permission to copy and/or distribute it, with or without
2371 ## modifications, as long as this notice is preserved.
2373 # serial 52 AC_PROG_LIBTOOL
2376 # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
2377 # -----------------------------------------------------------
2378 # If this macro is not defined by Autoconf, define it here.
2397 # _LT_AC_SYS_COMPILER
2398 # -------------------
2399 # _LT_AC_SYS_COMPILER
2402 # _LT_CC_BASENAME(CC)
2403 # -------------------
2404 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
2408 # _LT_COMPILER_BOILERPLATE
2409 # ------------------------
2410 # Check for compiler boilerplate output or warnings with
2411 # the simple compiler test code.
2412 # _LT_COMPILER_BOILERPLATE
2415 # _LT_LINKER_BOILERPLATE
2416 # ----------------------
2417 # Check for linker boilerplate output or warnings with
2418 # the simple link test code.
2419 # _LT_LINKER_BOILERPLATE
2421 # _LT_REQUIRED_DARWIN_CHECKS
2422 # --------------------------
2423 # Check for some things on darwin
2426 # _LT_AC_SYS_LIBPATH_AIX
2427 # ----------------------
2428 # Links a minimal program and checks the executable
2429 # for the system default hardcoded library path. In most cases,
2430 # this is /usr/lib:/lib, but when the MPI compilers are used
2431 # the location of the communication and MPI libs are included too.
2432 # If we don't find anything, use the default library path according
2433 # to the aix ld manual.
2434 # _LT_AC_SYS_LIBPATH_AIX
2437 # _LT_AC_SHELL_INIT(ARG)
2438 # ----------------------
2442 # _LT_AC_PROG_ECHO_BACKSLASH
2443 # --------------------------
2444 # Add some code to the start of the generated configure script which
2445 # will find an echo command which doesn't interpret backslashes.
2446 # _LT_AC_PROG_ECHO_BACKSLASH
2454 # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2455 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
2456 # ----------------------------------------------------------------
2457 # Check whether the given compiler option works
2458 # AC_LIBTOOL_COMPILER_OPTION
2461 # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2462 # [ACTION-SUCCESS], [ACTION-FAILURE])
2463 # ------------------------------------------------------------
2464 # Check whether the given compiler option works
2465 # AC_LIBTOOL_LINKER_OPTION
2468 # AC_LIBTOOL_SYS_MAX_CMD_LEN
2469 # --------------------------
2470 # AC_LIBTOOL_SYS_MAX_CMD_LEN
2473 # _LT_AC_CHECK_DLFCN
2474 # ------------------
2475 # _LT_AC_CHECK_DLFCN
2478 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
2479 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
2480 # ---------------------------------------------------------------------
2481 # _LT_AC_TRY_DLOPEN_SELF
2484 # AC_LIBTOOL_DLOPEN_SELF
2485 # ----------------------
2486 # AC_LIBTOOL_DLOPEN_SELF
2489 # AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
2490 # ---------------------------------
2491 # Check to see if options -c and -o are simultaneously supported by compiler
2492 # AC_LIBTOOL_PROG_CC_C_O
2495 # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
2496 # -----------------------------------------
2497 # Check to see if we can do hard links to lock some files if needed
2498 # AC_LIBTOOL_SYS_HARD_LINK_LOCKS
2506 # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
2507 # ----------------------------------------------
2508 # Check hardcoding attributes.
2509 # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
2512 # AC_LIBTOOL_SYS_LIB_STRIP
2513 # ------------------------
2514 # AC_LIBTOOL_SYS_LIB_STRIP
2517 # AC_LIBTOOL_SYS_DYNAMIC_LINKER
2518 # -----------------------------
2519 # PORTME Fill in your ld.so characteristics
2520 # AC_LIBTOOL_SYS_DYNAMIC_LINKER
2530 # enable checks for dlopen support
2534 # AC_LIBTOOL_WIN32_DLL
2535 # --------------------
2536 # declare package support for building win32 DLLs
2537 # AC_LIBTOOL_WIN32_DLL
2540 # AC_ENABLE_SHARED([DEFAULT])
2541 # ---------------------------
2542 # implement the --enable-shared flag
2543 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2549 # set the default shared flag to --disable-shared
2553 # AC_ENABLE_STATIC([DEFAULT])
2554 # ---------------------------
2555 # implement the --enable-static flag
2556 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2562 # set the default static flag to --disable-static
2566 # AC_ENABLE_FAST_INSTALL([DEFAULT])
2567 # ---------------------------------
2568 # implement the --enable-fast-install flag
2569 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2570 # AC_ENABLE_FAST_INSTALL
2573 # AC_DISABLE_FAST_INSTALL
2574 # -----------------------
2575 # set the default to --disable-fast-install
2576 # AC_DISABLE_FAST_INSTALL
2579 # AC_LIBTOOL_PICMODE([MODE])
2580 # --------------------------
2581 # implement the --with-pic flag
2582 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
2583 # AC_LIBTOOL_PICMODE
2588 # This is predefined starting with Autoconf 2.54, so this conditional
2589 # definition can be removed once we require Autoconf 2.54 or later.
2593 # AC_PATH_TOOL_PREFIX
2594 # -------------------
2595 # find a file program which can recognize shared library
2596 # AC_PATH_TOOL_PREFIX
2601 # find a file program which can recognize a shared library
2607 # find the pathname to the GNU or non-GNU linker
2616 # AC_PROG_LD_RELOAD_FLAG
2617 # ----------------------
2618 # find reload flag for linker
2619 # -- PORTME Some linkers may need a different reload flag.
2620 # AC_PROG_LD_RELOAD_FLAG
2623 # AC_DEPLIBS_CHECK_METHOD
2624 # -----------------------
2625 # how to check for library dependencies
2626 # -- PORTME fill in with the dynamic library characteristics
2627 # AC_DEPLIBS_CHECK_METHOD
2632 # find the pathname to a BSD-compatible name lister
2638 # check for math library
2642 # AC_LIBLTDL_CONVENIENCE([DIRECTORY])
2643 # -----------------------------------
2644 # sets LIBLTDL to the link flags for the libltdl convenience library and
2645 # LTDLINCL to the include flags for the libltdl header and adds
2646 # --enable-ltdl-convenience to the configure arguments. Note that
2647 # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2648 # it is assumed to be `libltdl'. LIBLTDL will be prefixed with
2649 # '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
2650 # (note the single quotes!). If your package is not flat and you're not
2651 # using automake, define top_builddir and top_srcdir appropriately in
2653 # AC_LIBLTDL_CONVENIENCE
2656 # AC_LIBLTDL_INSTALLABLE([DIRECTORY])
2657 # -----------------------------------
2658 # sets LIBLTDL to the link flags for the libltdl installable library and
2659 # LTDLINCL to the include flags for the libltdl header and adds
2660 # --enable-ltdl-install to the configure arguments. Note that
2661 # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2662 # and an installed libltdl is not found, it is assumed to be `libltdl'.
2663 # LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
2664 # '${top_srcdir}/' (note the single quotes!). If your package is not
2665 # flat and you're not using automake, define top_builddir and top_srcdir
2666 # appropriately in the Makefiles.
2667 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
2668 # AC_LIBLTDL_INSTALLABLE
2673 # enable support for C++ libraries
2681 # _LT_AC_PROG_CXXCPP
2682 # ------------------
2683 # _LT_AC_PROG_CXXCPP
2687 # enable support for Fortran 77 libraries
2698 # enable support for GCJ libraries
2709 # enable support for Windows resource files
2713 # AC_LIBTOOL_LANG_C_CONFIG
2714 # ------------------------
2715 # Ensure that the configuration vars for the C compiler are
2716 # suitably defined. Those variables are subsequently used by
2717 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2719 # AC_LIBTOOL_LANG_C_CONFIG
2722 # AC_LIBTOOL_LANG_CXX_CONFIG
2723 # --------------------------
2724 # Ensure that the configuration vars for the C compiler are
2725 # suitably defined. Those variables are subsequently used by
2726 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2728 # AC_LIBTOOL_LANG_CXX_CONFIG
2730 # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
2731 # ------------------------------------
2732 # Figure out "hidden" library dependencies from verbose
2733 # compiler output when linking a shared library.
2734 # Parse the compiler output and extract the necessary
2735 # objects, libraries and library flags.
2736 # AC_LIBTOOL_POSTDEP_PREDEP
2738 # AC_LIBTOOL_LANG_F77_CONFIG
2739 # --------------------------
2740 # Ensure that the configuration vars for the C compiler are
2741 # suitably defined. Those variables are subsequently used by
2742 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2744 # AC_LIBTOOL_LANG_F77_CONFIG
2747 # AC_LIBTOOL_LANG_GCJ_CONFIG
2748 # --------------------------
2749 # Ensure that the configuration vars for the C compiler are
2750 # suitably defined. Those variables are subsequently used by
2751 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2753 # AC_LIBTOOL_LANG_GCJ_CONFIG
2756 # AC_LIBTOOL_LANG_RC_CONFIG
2757 # -------------------------
2758 # Ensure that the configuration vars for the Windows resource compiler are
2759 # suitably defined. Those variables are subsequently used by
2760 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2762 # AC_LIBTOOL_LANG_RC_CONFIG
2765 # AC_LIBTOOL_CONFIG([TAGNAME])
2766 # ----------------------------
2767 # If TAGNAME is not passed, then create an initial libtool script
2768 # with a default configuration from the untagged config vars. Otherwise
2769 # add code to config.status for appending the configuration named by
2770 # TAGNAME from the matching tagged config vars.
2774 # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
2775 # -------------------------------------------
2776 # AC_LIBTOOL_PROG_COMPILER_NO_RTTI
2779 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
2780 # ---------------------------------
2781 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
2784 # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
2785 # ---------------------------------------
2789 # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
2790 # ------------------------------------
2791 # See if the linker supports building shared libraries.
2792 # AC_LIBTOOL_PROG_LD_SHLIBS
2795 # _LT_AC_FILE_LTDLL_C
2796 # -------------------
2797 # Be careful that the start marker always follows a newline.
2798 # _LT_AC_FILE_LTDLL_C
2801 # _LT_AC_TAGVAR(VARNAME, [TAGNAME])
2802 # ---------------------------------
2815 # This is just to silence aclocal about the macro not being used
2823 # Cheap backport of AS_EXECUTABLE_P and required macros
2824 # from Autoconf 2.59; we should not use $as_executable_p directly.
2832 # Check whether a file is executable.
2835 ############################################################
2836 # NOTE: This macro has been submitted for inclusion into #
2837 # GNU Autoconf as AC_PROG_SED. When it is available in #
2838 # a released version of Autoconf we should remove this #
2839 # macro and use it instead. #
2840 ############################################################
2843 # Check for a fully-functional sed program, that truncates
2844 # as few characters as possible. Prefer GNU sed if found.
2849 apr_ste_save_CPPFLAGS="$CPPFLAGS"
2852 apr_ste_save_CFLAGS="$CFLAGS"
2855 apr_ste_save_LDFLAGS="$LDFLAGS"
2858 apr_ste_save_LIBS="$LIBS"
2861 apr_ste_save_INCLUDES="$INCLUDES"
2866 cat >config.nice<<EOF
2869 # Created by configure
2872 if test -n "$CC"; then
2873 echo "CC=\"$CC\"; export CC" >> config.nice
2875 if test -n "$CFLAGS"; then
2876 echo "CFLAGS=\"$CFLAGS\"; export CFLAGS" >> config.nice
2878 if test -n "$CPPFLAGS"; then
2879 echo "CPPFLAGS=\"$CPPFLAGS\"; export CPPFLAGS" >> config.nice
2881 if test -n "$LDFLAGS"; then
2882 echo "LDFLAGS=\"$LDFLAGS\"; export LDFLAGS" >> config.nice
2884 if test -n "$LIBS"; then
2885 echo "LIBS=\"$LIBS\"; export LIBS" >> config.nice
2887 if test -n "$INCLUDES"; then
2888 echo "INCLUDES=\"$INCLUDES\"; export INCLUDES" >> config.nice
2890 if test -n "$NOTEST_CFLAGS"; then
2891 echo "NOTEST_CFLAGS=\"$NOTEST_CFLAGS\"; export NOTEST_CFLAGS" >> config.nice
2893 if test -n "$NOTEST_CPPFLAGS"; then
2894 echo "NOTEST_CPPFLAGS=\"$NOTEST_CPPFLAGS\"; export NOTEST_CPPFLAGS" >> config.nice
2896 if test -n "$NOTEST_LDFLAGS"; then
2897 echo "NOTEST_LDFLAGS=\"$NOTEST_LDFLAGS\"; export NOTEST_LDFLAGS" >> config.nice
2899 if test -n "$NOTEST_LIBS"; then
2900 echo "NOTEST_LIBS=\"$NOTEST_LIBS\"; export NOTEST_LIBS" >> config.nice
2903 # Retrieve command-line arguments.
2904 eval "set x $0 $ac_configure_args"
2912 while test "x${ap_cur}" != "x${ap_last}";
2915 ap_cur=`eval "echo ${ap_cur}"`
2919 echo "\"$arg\" \\" >> config.nice
2921 echo '"$@"' >> config.nice
2922 chmod +x config.nice
2925 # Make sure we can run config.sub.
2926 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2927 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2928 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2929 { (exit 1); exit 1; }; }
2931 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2932 $as_echo_n "checking build system type... " >&6; }
2933 if test "${ac_cv_build+set}" = set; then
2934 $as_echo_n "(cached) " >&6
2936 ac_build_alias=$build_alias
2937 test "x$ac_build_alias" = x &&
2938 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2939 test "x$ac_build_alias" = x &&
2940 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2941 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2942 { (exit 1); exit 1; }; }
2943 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2944 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2945 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2946 { (exit 1); exit 1; }; }
2949 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2950 $as_echo "$ac_cv_build" >&6; }
2951 case $ac_cv_build in
2953 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2954 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2955 { (exit 1); exit 1; }; };;
2958 ac_save_IFS=$IFS; IFS='-'
2964 # Remember, the first character of IFS is used to create $*,
2965 # except with old shells:
2968 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2971 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2972 $as_echo_n "checking host system type... " >&6; }
2973 if test "${ac_cv_host+set}" = set; then
2974 $as_echo_n "(cached) " >&6
2976 if test "x$host_alias" = x; then
2977 ac_cv_host=$ac_cv_build
2979 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2980 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2981 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2982 { (exit 1); exit 1; }; }
2986 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2987 $as_echo "$ac_cv_host" >&6; }
2990 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2991 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2992 { (exit 1); exit 1; }; };;
2995 ac_save_IFS=$IFS; IFS='-'
3001 # Remember, the first character of IFS is used to create $*,
3002 # except with old shells:
3005 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3008 { $as_echo "$as_me:$LINENO: checking target system type" >&5
3009 $as_echo_n "checking target system type... " >&6; }
3010 if test "${ac_cv_target+set}" = set; then
3011 $as_echo_n "(cached) " >&6
3013 if test "x$target_alias" = x; then
3014 ac_cv_target=$ac_cv_host
3016 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3017 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3018 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3019 { (exit 1); exit 1; }; }
3023 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3024 $as_echo "$ac_cv_target" >&6; }
3025 case $ac_cv_target in
3027 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3028 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
3029 { (exit 1); exit 1; }; };;
3031 target=$ac_cv_target
3032 ac_save_IFS=$IFS; IFS='-'
3038 # Remember, the first character of IFS is used to create $*,
3039 # except with old shells:
3042 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3045 # The aliases save the names the user supplied, while $host etc.
3046 # will get canonicalized.
3047 test -n "$target_alias" &&
3048 test "$program_prefix$program_suffix$program_transform_name" = \
3050 program_prefix=${target_alias}-
3051 echo "Configuring APR library"
3052 echo "Platform: $host"
3056 # Absolute source/build directory
3057 apr_srcdir=`(cd $srcdir && pwd)`
3062 if test "$apr_builddir" != "$apr_srcdir"; then
3064 APR_CONFIG_LOCATION=build
3066 APR_CONFIG_LOCATION=source
3071 # Libtool might need this symbol -- it must point to the location of
3072 # the generated libtool script (not necessarily the "top" build dir).
3074 top_builddir="$apr_builddir"
3077 # Directory containing apr build macros, helpers, and make rules
3078 # NOTE: make rules (apr_rules.mk) will be in the builddir for vpath
3080 apr_buildout=$apr_builddir/build
3081 apr_builders=$apr_srcdir/build
3084 MKDIR=$apr_builders/mkdir.sh
3087 { $as_echo "$as_me:$LINENO: checking for working mkdir -p" >&5
3088 $as_echo_n "checking for working mkdir -p... " >&6; }
3089 if test "${ac_cv_mkdir_p+set}" = set; then
3090 $as_echo_n "(cached) " >&6
3093 test -d conftestdir && rm -rf conftestdir
3094 mkdir -p conftestdir/somedir >/dev/null 2>&1
3095 if test -d conftestdir/somedir; then
3103 { $as_echo "$as_me:$LINENO: result: $ac_cv_mkdir_p" >&5
3104 $as_echo "$ac_cv_mkdir_p" >&6; }
3105 if test "$ac_cv_mkdir_p" = "yes"; then
3108 mkdir_p="$apr_builders/mkdir.sh"
3112 # get our version information
3113 get_version="$apr_builders/get-version.sh"
3114 version_hdr="$apr_srcdir/include/apr_version.h"
3115 APR_MAJOR_VERSION="`$get_version major $version_hdr APR`"
3116 APR_DOTTED_VERSION="`$get_version all $version_hdr APR`"
3121 echo "APR Version: ${APR_DOTTED_VERSION}"
3124 # Check whether --enable-layout was given.
3125 if test "${enable_layout+set}" = set; then
3126 enableval=$enable_layout;
3132 if test -z "$LAYOUT"; then
3136 if test ! -f $srcdir/config.layout; then
3137 echo "** Error: Layout file $srcdir/config.layout not found"
3138 echo "** Error: Cannot use undefined layout '$LAYOUT'"
3141 pldconf=./config.pld
3143 sed -e "1s/[ ]*<[lL]ayout[ ]*$LAYOUT[ ]*>[ ]*//;1t" \
3144 -e "1,/[ ]*<[lL]ayout[ ]*$LAYOUT[ ]*>[ ]*/d" \
3145 -e '/[ ]*<\/Layout>[ ]*/,$d' \
3147 -e "s/:[ ]*/=\'/g" \
3149 $srcdir/config.layout > $pldconf
3151 if test ! -s $pldconf; then
3152 echo "** Error: unable to find layout $layout_name"
3157 for var in prefix exec_prefix bindir sbindir libexecdir mandir \
3158 sysconfdir datadir includedir localstatedir runtimedir \
3159 logfiledir libdir installbuilddir libsuffix ; do
3160 eval "val=\"\$$var\""
3163 val=`echo $val | sed -e 's;\+$;;'`
3164 eval "$var=\"\$val\""
3171 val=`echo $val | sed -e 's:\(.\)/*$:\1:'`
3172 val=`echo $val | sed -e 's:[\$]\([a-z_]*\):$\1:g'`
3173 if test "$autosuffix" = "yes"; then
3174 if echo $val | grep apache >/dev/null; then
3179 if test "$addtarget" = "yes"; then
3188 { $as_echo "$as_me:$LINENO: checking for chosen layout" >&5
3189 $as_echo_n "checking for chosen layout... " >&6; }
3190 { $as_echo "$as_me:$LINENO: result: $layout_name" >&5
3191 $as_echo "$layout_name" >&6; }
3195 # Retrieve the command-line arguments. The eval is needed because
3196 # the arguments are quoted to preserve accuracy.
3197 eval "set x $ac_configure_args"
3201 # If the previous option needs an argument, assign it.
3202 if test -n "$ac_prev"; then
3203 eval "$ac_prev=\$ac_option"
3208 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
3212 -bindir | --bindir | --bindi | --bind | --bin | --bi)
3214 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
3215 bindir="$ac_optarg" ;;
3217 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
3219 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
3221 datadir="$ac_optarg" ;;
3223 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
3224 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
3225 | --exec | --exe | --ex)
3226 ac_prev=exec_prefix ;;
3227 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
3228 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
3229 | --exec=* | --exe=* | --ex=*)
3230 exec_prefix="$ac_optarg" ;;
3232 -includedir | --includedir | --includedi | --included | --include \
3233 | --includ | --inclu | --incl | --inc)
3234 ac_prev=includedir ;;
3235 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
3236 | --includ=* | --inclu=* | --incl=* | --inc=*)
3237 includedir="$ac_optarg" ;;
3239 -infodir | --infodir | --infodi | --infod | --info | --inf)
3241 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
3242 infodir="$ac_optarg" ;;
3244 -libdir | --libdir | --libdi | --libd)
3246 -libdir=* | --libdir=* | --libdi=* | --libd=*)
3247 libdir="$ac_optarg" ;;
3249 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
3250 | --libexe | --libex | --libe)
3251 ac_prev=libexecdir ;;
3252 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
3253 | --libexe=* | --libex=* | --libe=*)
3254 libexecdir="$ac_optarg" ;;
3256 -localstatedir | --localstatedir | --localstatedi | --localstated \
3257 | --localstate | --localstat | --localsta | --localst \
3258 | --locals | --local | --loca | --loc | --lo)
3259 ac_prev=localstatedir ;;
3260 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
3261 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
3262 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
3263 localstatedir="$ac_optarg" ;;
3265 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
3267 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
3268 mandir="$ac_optarg" ;;
3270 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
3272 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
3273 prefix="$ac_optarg" ;;
3275 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
3277 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
3279 sbindir="$ac_optarg" ;;
3281 -sharedstatedir | --sharedstatedir | --sharedstatedi \
3282 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
3283 | --sharedst | --shareds | --shared | --share | --shar \
3285 ac_prev=sharedstatedir ;;
3286 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
3287 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
3288 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
3290 sharedstatedir="$ac_optarg" ;;
3292 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
3293 | --syscon | --sysco | --sysc | --sys | --sy)
3294 ac_prev=sysconfdir ;;
3295 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
3296 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
3297 sysconfdir="$ac_optarg" ;;
3302 # Be sure to have absolute paths.
3303 for ac_var in exec_prefix prefix
3305 eval ac_val=$`echo $ac_var`
3307 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
3308 *) { { $as_echo "$as_me:$LINENO: error: expected an absolute path for --$ac_var: $ac_val" >&5
3309 $as_echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2;}
3310 { (exit 1); exit 1; }; };;
3320 if test -z "$CC"; then
3321 echo " setting CC to \"gcc\""
3326 bs2000*-siemens-sysv*)
3328 if test -z "$CC"; then
3329 echo " setting CC to \"c89 -XLLML -XLLMK -XL -Kno_integer_overflow\""
3330 CC="c89 -XLLML -XLLMK -XL -Kno_integer_overflow"
3336 if test -z "$CC"; then
3337 echo " setting CC to \"cc\""
3344 if test -z "$CC"; then
3345 echo " setting CC to \"cc\""
3352 if test -z "$CC"; then
3353 echo " setting CC to \"icc\""
3360 if test -z "$CC"; then
3361 echo " setting CC to \"gcc\""
3368 if test -z "$CC"; then
3369 echo " setting CC to \"cc\""
3376 if test -z "$CC"; then
3377 echo " setting CC to \"cc\""
3384 if test -z "$CC"; then
3385 echo " setting CC to \"cc -F\""
3392 if test -z "$CC"; then
3393 echo " setting CC to \"c89\""
3400 if test -z "$CC"; then
3401 echo " setting CC to \"c89\""
3410 ac_cpp='$CPP $CPPFLAGS'
3411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3414 if test -n "$ac_tool_prefix"; then
3415 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3416 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3417 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3418 $as_echo_n "checking for $ac_word... " >&6; }
3419 if test "${ac_cv_prog_CC+set}" = set; then
3420 $as_echo_n "(cached) " >&6
3422 if test -n "$CC"; then
3423 ac_cv_prog_CC="$CC" # Let the user override the test.
3425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3429 test -z "$as_dir" && as_dir=.
3430 for ac_exec_ext in '' $ac_executable_extensions; do
3431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3432 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3433 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3443 if test -n "$CC"; then
3444 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3445 $as_echo "$CC" >&6; }
3447 { $as_echo "$as_me:$LINENO: result: no" >&5
3448 $as_echo "no" >&6; }
3453 if test -z "$ac_cv_prog_CC"; then
3455 # Extract the first word of "gcc", so it can be a program name with args.
3456 set dummy gcc; ac_word=$2
3457 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3458 $as_echo_n "checking for $ac_word... " >&6; }
3459 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3460 $as_echo_n "(cached) " >&6
3462 if test -n "$ac_ct_CC"; then
3463 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3469 test -z "$as_dir" && as_dir=.
3470 for ac_exec_ext in '' $ac_executable_extensions; do
3471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3472 ac_cv_prog_ac_ct_CC="gcc"
3473 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3482 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3483 if test -n "$ac_ct_CC"; then
3484 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3485 $as_echo "$ac_ct_CC" >&6; }
3487 { $as_echo "$as_me:$LINENO: result: no" >&5
3488 $as_echo "no" >&6; }
3491 if test "x$ac_ct_CC" = x; then
3494 case $cross_compiling:$ac_tool_warned in
3496 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3497 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3498 ac_tool_warned=yes ;;
3506 if test -z "$CC"; then
3507 if test -n "$ac_tool_prefix"; then
3508 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3509 set dummy ${ac_tool_prefix}cc; ac_word=$2
3510 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3511 $as_echo_n "checking for $ac_word... " >&6; }
3512 if test "${ac_cv_prog_CC+set}" = set; then
3513 $as_echo_n "(cached) " >&6
3515 if test -n "$CC"; then
3516 ac_cv_prog_CC="$CC" # Let the user override the test.
3518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3522 test -z "$as_dir" && as_dir=.
3523 for ac_exec_ext in '' $ac_executable_extensions; do
3524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3525 ac_cv_prog_CC="${ac_tool_prefix}cc"
3526 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3536 if test -n "$CC"; then
3537 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3538 $as_echo "$CC" >&6; }
3540 { $as_echo "$as_me:$LINENO: result: no" >&5
3541 $as_echo "no" >&6; }
3547 if test -z "$CC"; then
3548 # Extract the first word of "cc", so it can be a program name with args.
3549 set dummy cc; ac_word=$2
3550 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3551 $as_echo_n "checking for $ac_word... " >&6; }
3552 if test "${ac_cv_prog_CC+set}" = set; then
3553 $as_echo_n "(cached) " >&6
3555 if test -n "$CC"; then
3556 ac_cv_prog_CC="$CC" # Let the user override the test.
3559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3563 test -z "$as_dir" && as_dir=.
3564 for ac_exec_ext in '' $ac_executable_extensions; do
3565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3566 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3567 ac_prog_rejected=yes
3571 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3578 if test $ac_prog_rejected = yes; then
3579 # We found a bogon in the path, so make sure we never use it.
3580 set dummy $ac_cv_prog_CC
3582 if test $# != 0; then
3583 # We chose a different compiler from the bogus one.
3584 # However, it has the same basename, so the bogon will be chosen
3585 # first if we set CC to just the basename; use the full file name.
3587 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3593 if test -n "$CC"; then
3594 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3595 $as_echo "$CC" >&6; }
3597 { $as_echo "$as_me:$LINENO: result: no" >&5
3598 $as_echo "no" >&6; }
3603 if test -z "$CC"; then
3604 if test -n "$ac_tool_prefix"; then
3605 for ac_prog in cl.exe
3607 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3608 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3609 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3610 $as_echo_n "checking for $ac_word... " >&6; }
3611 if test "${ac_cv_prog_CC+set}" = set; then
3612 $as_echo_n "(cached) " >&6
3614 if test -n "$CC"; then
3615 ac_cv_prog_CC="$CC" # Let the user override the test.
3617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3621 test -z "$as_dir" && as_dir=.
3622 for ac_exec_ext in '' $ac_executable_extensions; do
3623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3624 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3625 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3635 if test -n "$CC"; then
3636 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3637 $as_echo "$CC" >&6; }
3639 { $as_echo "$as_me:$LINENO: result: no" >&5
3640 $as_echo "no" >&6; }
3644 test -n "$CC" && break
3647 if test -z "$CC"; then
3649 for ac_prog in cl.exe
3651 # Extract the first word of "$ac_prog", so it can be a program name with args.
3652 set dummy $ac_prog; ac_word=$2
3653 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3654 $as_echo_n "checking for $ac_word... " >&6; }
3655 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3656 $as_echo_n "(cached) " >&6
3658 if test -n "$ac_ct_CC"; then
3659 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3665 test -z "$as_dir" && as_dir=.
3666 for ac_exec_ext in '' $ac_executable_extensions; do
3667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3668 ac_cv_prog_ac_ct_CC="$ac_prog"
3669 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3678 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3679 if test -n "$ac_ct_CC"; then
3680 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3681 $as_echo "$ac_ct_CC" >&6; }
3683 { $as_echo "$as_me:$LINENO: result: no" >&5
3684 $as_echo "no" >&6; }
3688 test -n "$ac_ct_CC" && break
3691 if test "x$ac_ct_CC" = x; then
3694 case $cross_compiling:$ac_tool_warned in
3696 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3697 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3698 ac_tool_warned=yes ;;
3707 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3708 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3709 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3710 See \`config.log' for more details." >&5
3711 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3712 See \`config.log' for more details." >&2;}
3713 { (exit 1); exit 1; }; }; }
3715 # Provide some information about the compiler.
3716 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3719 { (ac_try="$ac_compiler --version >&5"
3721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3722 *) ac_try_echo=$ac_try;;
3724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3725 $as_echo "$ac_try_echo") >&5
3726 (eval "$ac_compiler --version >&5") 2>&5
3728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); }
3730 { (ac_try="$ac_compiler -v >&5"
3732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3733 *) ac_try_echo=$ac_try;;
3735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3736 $as_echo "$ac_try_echo") >&5
3737 (eval "$ac_compiler -v >&5") 2>&5
3739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740 (exit $ac_status); }
3741 { (ac_try="$ac_compiler -V >&5"
3743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3744 *) ac_try_echo=$ac_try;;
3746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3747 $as_echo "$ac_try_echo") >&5
3748 (eval "$ac_compiler -V >&5") 2>&5
3750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751 (exit $ac_status); }
3753 cat >conftest.$ac_ext <<_ACEOF
3756 cat confdefs.h >>conftest.$ac_ext
3757 cat >>conftest.$ac_ext <<_ACEOF
3758 /* end confdefs.h. */
3768 ac_clean_files_save=$ac_clean_files
3769 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3770 # Try to create an executable without -o first, disregard a.out.
3771 # It will help us diagnose broken compilers, and finding out an intuition
3773 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3774 $as_echo_n "checking for C compiler default output file name... " >&6; }
3775 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3777 # The possible output files:
3778 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3781 for ac_file in $ac_files
3784 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3785 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3790 if { (ac_try="$ac_link_default"
3792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3793 *) ac_try_echo=$ac_try;;
3795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3796 $as_echo "$ac_try_echo") >&5
3797 (eval "$ac_link_default") 2>&5
3799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); }; then
3801 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3802 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3803 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3804 # so that the user can short-circuit this test for compilers unknown to
3806 for ac_file in $ac_files ''
3808 test -f "$ac_file" || continue
3810 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3813 # We found the default executable, but exeext='' is most
3817 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3819 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3821 # We set ac_cv_exeext here because the later test for it is not
3822 # safe: cross compilers may not add the suffix if given an `-o'
3823 # argument, so we may need to know it at that point already.
3824 # Even if this section looks crufty: it has the advantage of
3831 test "$ac_cv_exeext" = no && ac_cv_exeext=
3837 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3838 $as_echo "$ac_file" >&6; }
3839 if test -z "$ac_file"; then
3840 $as_echo "$as_me: failed program was:" >&5
3841 sed 's/^/| /' conftest.$ac_ext >&5
3843 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3844 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3845 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3846 See \`config.log' for more details." >&5
3847 $as_echo "$as_me: error: C compiler cannot create executables
3848 See \`config.log' for more details." >&2;}
3849 { (exit 77); exit 77; }; }; }
3852 ac_exeext=$ac_cv_exeext
3854 # Check that the compiler produces executables we can run. If not, either
3855 # the compiler is broken, or we cross compile.
3856 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3857 $as_echo_n "checking whether the C compiler works... " >&6; }
3858 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3859 # If not cross compiling, check that we can run a simple program.
3860 if test "$cross_compiling" != yes; then
3861 if { ac_try='./$ac_file'
3862 { (case "(($ac_try" in
3863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3864 *) ac_try_echo=$ac_try;;
3866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3867 $as_echo "$ac_try_echo") >&5
3868 (eval "$ac_try") 2>&5
3870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871 (exit $ac_status); }; }; then
3874 if test "$cross_compiling" = maybe; then
3877 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3878 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3879 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3880 If you meant to cross compile, use \`--host'.
3881 See \`config.log' for more details." >&5
3882 $as_echo "$as_me: error: cannot run C compiled programs.
3883 If you meant to cross compile, use \`--host'.
3884 See \`config.log' for more details." >&2;}
3885 { (exit 1); exit 1; }; }; }
3889 { $as_echo "$as_me:$LINENO: result: yes" >&5
3890 $as_echo "yes" >&6; }
3892 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3893 ac_clean_files=$ac_clean_files_save
3894 # Check that the compiler produces executables we can run. If not, either
3895 # the compiler is broken, or we cross compile.
3896 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3897 $as_echo_n "checking whether we are cross compiling... " >&6; }
3898 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3899 $as_echo "$cross_compiling" >&6; }
3901 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3902 $as_echo_n "checking for suffix of executables... " >&6; }
3903 if { (ac_try="$ac_link"
3905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3906 *) ac_try_echo=$ac_try;;
3908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3909 $as_echo "$ac_try_echo") >&5
3910 (eval "$ac_link") 2>&5
3912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); }; then
3914 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3915 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3916 # work properly (i.e., refer to `conftest.exe'), while it won't with
3918 for ac_file in conftest.exe conftest conftest.*; do
3919 test -f "$ac_file" || continue
3921 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3922 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3928 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3929 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3930 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3931 See \`config.log' for more details." >&5
3932 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3933 See \`config.log' for more details." >&2;}
3934 { (exit 1); exit 1; }; }; }
3937 rm -f conftest$ac_cv_exeext
3938 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3939 $as_echo "$ac_cv_exeext" >&6; }
3941 rm -f conftest.$ac_ext
3942 EXEEXT=$ac_cv_exeext
3944 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3945 $as_echo_n "checking for suffix of object files... " >&6; }
3946 if test "${ac_cv_objext+set}" = set; then
3947 $as_echo_n "(cached) " >&6
3949 cat >conftest.$ac_ext <<_ACEOF
3952 cat confdefs.h >>conftest.$ac_ext
3953 cat >>conftest.$ac_ext <<_ACEOF
3954 /* end confdefs.h. */
3964 rm -f conftest.o conftest.obj
3965 if { (ac_try="$ac_compile"
3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3971 $as_echo "$ac_try_echo") >&5
3972 (eval "$ac_compile") 2>&5
3974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); }; then
3976 for ac_file in conftest.o conftest.obj conftest.*; do
3977 test -f "$ac_file" || continue;
3979 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3980 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3985 $as_echo "$as_me: failed program was:" >&5
3986 sed 's/^/| /' conftest.$ac_ext >&5
3988 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3990 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3991 See \`config.log' for more details." >&5
3992 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3993 See \`config.log' for more details." >&2;}
3994 { (exit 1); exit 1; }; }; }
3997 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3999 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4000 $as_echo "$ac_cv_objext" >&6; }
4001 OBJEXT=$ac_cv_objext
4003 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4004 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4005 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4006 $as_echo_n "(cached) " >&6
4008 cat >conftest.$ac_ext <<_ACEOF
4011 cat confdefs.h >>conftest.$ac_ext
4012 cat >>conftest.$ac_ext <<_ACEOF
4013 /* end confdefs.h. */
4026 rm -f conftest.$ac_objext
4027 if { (ac_try="$ac_compile"
4029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4030 *) ac_try_echo=$ac_try;;
4032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4033 $as_echo "$ac_try_echo") >&5
4034 (eval "$ac_compile") 2>conftest.er1
4036 grep -v '^ *+' conftest.er1 >conftest.err
4038 cat conftest.err >&5
4039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); } && {
4041 test -z "$ac_c_werror_flag" ||
4042 test ! -s conftest.err
4043 } && test -s conftest.$ac_objext; then
4046 $as_echo "$as_me: failed program was:" >&5
4047 sed 's/^/| /' conftest.$ac_ext >&5
4052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4053 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4056 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4057 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4058 if test $ac_compiler_gnu = yes; then
4063 ac_test_CFLAGS=${CFLAGS+set}
4064 ac_save_CFLAGS=$CFLAGS
4065 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4066 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4067 if test "${ac_cv_prog_cc_g+set}" = set; then
4068 $as_echo_n "(cached) " >&6
4070 ac_save_c_werror_flag=$ac_c_werror_flag
4071 ac_c_werror_flag=yes
4074 cat >conftest.$ac_ext <<_ACEOF
4077 cat confdefs.h >>conftest.$ac_ext
4078 cat >>conftest.$ac_ext <<_ACEOF
4079 /* end confdefs.h. */
4089 rm -f conftest.$ac_objext
4090 if { (ac_try="$ac_compile"
4092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4093 *) ac_try_echo=$ac_try;;
4095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4096 $as_echo "$ac_try_echo") >&5
4097 (eval "$ac_compile") 2>conftest.er1
4099 grep -v '^ *+' conftest.er1 >conftest.err
4101 cat conftest.err >&5
4102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); } && {
4104 test -z "$ac_c_werror_flag" ||
4105 test ! -s conftest.err
4106 } && test -s conftest.$ac_objext; then
4109 $as_echo "$as_me: failed program was:" >&5
4110 sed 's/^/| /' conftest.$ac_ext >&5
4113 cat >conftest.$ac_ext <<_ACEOF
4116 cat confdefs.h >>conftest.$ac_ext
4117 cat >>conftest.$ac_ext <<_ACEOF
4118 /* end confdefs.h. */
4128 rm -f conftest.$ac_objext
4129 if { (ac_try="$ac_compile"
4131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4132 *) ac_try_echo=$ac_try;;
4134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4135 $as_echo "$ac_try_echo") >&5
4136 (eval "$ac_compile") 2>conftest.er1
4138 grep -v '^ *+' conftest.er1 >conftest.err
4140 cat conftest.err >&5
4141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); } && {
4143 test -z "$ac_c_werror_flag" ||
4144 test ! -s conftest.err
4145 } && test -s conftest.$ac_objext; then
4148 $as_echo "$as_me: failed program was:" >&5
4149 sed 's/^/| /' conftest.$ac_ext >&5
4151 ac_c_werror_flag=$ac_save_c_werror_flag
4153 cat >conftest.$ac_ext <<_ACEOF
4156 cat confdefs.h >>conftest.$ac_ext
4157 cat >>conftest.$ac_ext <<_ACEOF
4158 /* end confdefs.h. */
4168 rm -f conftest.$ac_objext
4169 if { (ac_try="$ac_compile"
4171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172 *) ac_try_echo=$ac_try;;
4174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4175 $as_echo "$ac_try_echo") >&5
4176 (eval "$ac_compile") 2>conftest.er1
4178 grep -v '^ *+' conftest.er1 >conftest.err
4180 cat conftest.err >&5
4181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); } && {
4183 test -z "$ac_c_werror_flag" ||
4184 test ! -s conftest.err
4185 } && test -s conftest.$ac_objext; then
4188 $as_echo "$as_me: failed program was:" >&5
4189 sed 's/^/| /' conftest.$ac_ext >&5
4194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4201 ac_c_werror_flag=$ac_save_c_werror_flag
4203 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4204 $as_echo "$ac_cv_prog_cc_g" >&6; }
4205 if test "$ac_test_CFLAGS" = set; then
4206 CFLAGS=$ac_save_CFLAGS
4207 elif test $ac_cv_prog_cc_g = yes; then
4208 if test "$GCC" = yes; then
4214 if test "$GCC" = yes; then
4220 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4221 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4222 if test "${ac_cv_prog_cc_c89+set}" = set; then
4223 $as_echo_n "(cached) " >&6
4225 ac_cv_prog_cc_c89=no
4227 cat >conftest.$ac_ext <<_ACEOF
4230 cat confdefs.h >>conftest.$ac_ext
4231 cat >>conftest.$ac_ext <<_ACEOF
4232 /* end confdefs.h. */
4235 #include <sys/types.h>
4236 #include <sys/stat.h>
4237 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4238 struct buf { int x; };
4239 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4240 static char *e (p, i)
4246 static char *f (char * (*g) (char **, int), char **p, ...)
4251 s = g (p, va_arg (v,int));
4256 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4257 function prototypes and stuff, but not '\xHH' hex character constants.
4258 These don't provoke an error unfortunately, instead are silently treated
4259 as 'x'. The following induces an error, until -std is added to get
4260 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4261 array size at least. It's necessary to write '\x00'==0 to get something
4262 that's true only with -std. */
4263 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4265 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4266 inside strings and character constants. */
4268 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4270 int test (int i, double x);
4271 struct s1 {int (*f) (int a);};
4272 struct s2 {int (*f) (double a);};
4273 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4279 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4284 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4285 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4287 CC="$ac_save_CC $ac_arg"
4288 rm -f conftest.$ac_objext
4289 if { (ac_try="$ac_compile"
4291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4292 *) ac_try_echo=$ac_try;;
4294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4295 $as_echo "$ac_try_echo") >&5
4296 (eval "$ac_compile") 2>conftest.er1
4298 grep -v '^ *+' conftest.er1 >conftest.err
4300 cat conftest.err >&5
4301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); } && {
4303 test -z "$ac_c_werror_flag" ||
4304 test ! -s conftest.err
4305 } && test -s conftest.$ac_objext; then
4306 ac_cv_prog_cc_c89=$ac_arg
4308 $as_echo "$as_me: failed program was:" >&5
4309 sed 's/^/| /' conftest.$ac_ext >&5
4314 rm -f core conftest.err conftest.$ac_objext
4315 test "x$ac_cv_prog_cc_c89" != "xno" && break
4317 rm -f conftest.$ac_ext
4322 case "x$ac_cv_prog_cc_c89" in
4324 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4325 $as_echo "none needed" >&6; } ;;
4327 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4328 $as_echo "unsupported" >&6; } ;;
4330 CC="$CC $ac_cv_prog_cc_c89"
4331 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4332 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4337 ac_cpp='$CPP $CPPFLAGS'
4338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4344 if test "x$apr_preload_done" != "xyes" ; then
4346 apr_preload_done="yes"
4348 echo "Applying APR hints file rules for $host"
4353 if test "x$CPPFLAGS" = "x"; then
4354 echo " setting CPPFLAGS to \"-DMINT\""
4357 apr_addto_bugger="-DMINT"
4358 for i in $apr_addto_bugger; do
4359 apr_addto_duplicate="0"
4360 for j in $CPPFLAGS; do
4361 if test "x$i" = "x$j"; then
4362 apr_addto_duplicate="1"
4366 if test $apr_addto_duplicate = "0"; then
4367 echo " adding \"$i\" to CPPFLAGS"
4368 CPPFLAGS="$CPPFLAGS $i"
4374 if test "x$LIBS" = "x"; then
4375 echo " setting LIBS to \"-lportlib\""
4378 apr_addto_bugger="-lportlib"
4379 for i in $apr_addto_bugger; do
4380 apr_addto_duplicate="0"
4382 if test "x$i" = "x$j"; then
4383 apr_addto_duplicate="1"
4387 if test $apr_addto_duplicate = "0"; then
4388 echo " adding \"$i\" to LIBS"
4397 if test "x$CPPFLAGS" = "x"; then
4398 echo " setting CPPFLAGS to \"-DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE\""
4399 CPPFLAGS="-DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE"
4401 apr_addto_bugger="-DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE"
4402 for i in $apr_addto_bugger; do
4403 apr_addto_duplicate="0"
4404 for j in $CPPFLAGS; do
4405 if test "x$i" = "x$j"; then
4406 apr_addto_duplicate="1"
4410 if test $apr_addto_duplicate = "0"; then
4411 echo " adding \"$i\" to CPPFLAGS"
4412 CPPFLAGS="$CPPFLAGS $i"
4418 if test "x$LIBS" = "x"; then
4419 echo " setting LIBS to \"-lsvipc -lcurses\""
4420 LIBS="-lsvipc -lcurses"
4422 apr_addto_bugger="-lsvipc -lcurses"
4423 for i in $apr_addto_bugger; do
4424 apr_addto_duplicate="0"
4426 if test "x$i" = "x$j"; then
4427 apr_addto_duplicate="1"
4431 if test $apr_addto_duplicate = "0"; then
4432 echo " adding \"$i\" to LIBS"
4439 if test "x$LDFLAGS" = "x"; then
4440 echo " setting LDFLAGS to \"-Xlinker \"-WL,cap=ia,ba,ph;nmstack=1024000\"\""
4441 LDFLAGS="-Xlinker \"-WL,cap=ia,ba,ph;nmstack=1024000\""
4443 apr_addto_bugger="-Xlinker \"-WL,cap=ia,ba,ph;nmstack=1024000\""
4444 for i in $apr_addto_bugger; do
4445 apr_addto_duplicate="0"
4446 for j in $LDFLAGS; do
4447 if test "x$i" = "x$j"; then
4448 apr_addto_duplicate="1"
4452 if test $apr_addto_duplicate = "0"; then
4453 echo " adding \"$i\" to LDFLAGS"
4454 LDFLAGS="$LDFLAGS $i"
4462 if test "x$CPPFLAGS" = "x"; then
4463 echo " setting CPPFLAGS to \"-DAUX3 -D_POSIX_SOURCE\""
4464 CPPFLAGS="-DAUX3 -D_POSIX_SOURCE"
4466 apr_addto_bugger="-DAUX3 -D_POSIX_SOURCE"
4467 for i in $apr_addto_bugger; do
4468 apr_addto_duplicate="0"
4469 for j in $CPPFLAGS; do
4470 if test "x$i" = "x$j"; then
4471 apr_addto_duplicate="1"
4475 if test $apr_addto_duplicate = "0"; then
4476 echo " adding \"$i\" to CPPFLAGS"
4477 CPPFLAGS="$CPPFLAGS $i"
4483 if test "x$LIBS" = "x"; then
4484 echo " setting LIBS to \"-lposix -lbsd\""
4485 LIBS="-lposix -lbsd"
4487 apr_addto_bugger="-lposix -lbsd"
4488 for i in $apr_addto_bugger; do
4489 apr_addto_duplicate="0"
4491 if test "x$i" = "x$j"; then
4492 apr_addto_duplicate="1"
4496 if test $apr_addto_duplicate = "0"; then
4497 echo " adding \"$i\" to LIBS"
4504 if test "x$LDFLAGS" = "x"; then
4505 echo " setting LDFLAGS to \"-s\""
4508 apr_addto_bugger="-s"
4509 for i in $apr_addto_bugger; do
4510 apr_addto_duplicate="0"
4511 for j in $LDFLAGS; do
4512 if test "x$i" = "x$j"; then
4513 apr_addto_duplicate="1"
4517 if test $apr_addto_duplicate = "0"; then
4518 echo " adding \"$i\" to LDFLAGS"
4519 LDFLAGS="$LDFLAGS $i"
4525 echo " forcing SHELL to \"/bin/ksh\""
4531 if test "x$CPPFLAGS" = "x"; then
4532 echo " setting CPPFLAGS to \"-U__STR__ -D_THREAD_SAFE\""
4533 CPPFLAGS="-U__STR__ -D_THREAD_SAFE"
4535 apr_addto_bugger="-U__STR__ -D_THREAD_SAFE"
4536 for i in $apr_addto_bugger; do
4537 apr_addto_duplicate="0"
4538 for j in $CPPFLAGS; do
4539 if test "x$i" = "x$j"; then
4540 apr_addto_duplicate="1"
4544 if test $apr_addto_duplicate = "0"; then
4545 echo " adding \"$i\" to CPPFLAGS"
4546 CPPFLAGS="$CPPFLAGS $i"
4554 if test "x$CPPFLAGS" = "x"; then
4555 echo " setting CPPFLAGS to \"-D_USE_IRS\""
4556 CPPFLAGS="-D_USE_IRS"
4558 apr_addto_bugger="-D_USE_IRS"
4559 for i in $apr_addto_bugger; do
4560 apr_addto_duplicate="0"
4561 for j in $CPPFLAGS; do
4562 if test "x$i" = "x$j"; then
4563 apr_addto_duplicate="1"
4567 if test $apr_addto_duplicate = "0"; then
4568 echo " adding \"$i\" to CPPFLAGS"
4569 CPPFLAGS="$CPPFLAGS $i"
4577 if test "x$CPPFLAGS" = "x"; then
4578 echo " setting CPPFLAGS to \"-D_USE_IRS\""
4579 CPPFLAGS="-D_USE_IRS"
4581 apr_addto_bugger="-D_USE_IRS"
4582 for i in $apr_addto_bugger; do
4583 apr_addto_duplicate="0"
4584 for j in $CPPFLAGS; do
4585 if test "x$i" = "x$j"; then
4586 apr_addto_duplicate="1"
4590 if test $apr_addto_duplicate = "0"; then
4591 echo " adding \"$i\" to CPPFLAGS"
4592 CPPFLAGS="$CPPFLAGS $i"
4600 if test "x$CPPFLAGS" = "x"; then
4601 echo " setting CPPFLAGS to \"-D_USE_IRS\""
4602 CPPFLAGS="-D_USE_IRS"
4604 apr_addto_bugger="-D_USE_IRS"
4605 for i in $apr_addto_bugger; do
4606 apr_addto_duplicate="0"
4607 for j in $CPPFLAGS; do
4608 if test "x$i" = "x$j"; then
4609 apr_addto_duplicate="1"
4613 if test $apr_addto_duplicate = "0"; then
4614 echo " adding \"$i\" to CPPFLAGS"
4615 CPPFLAGS="$CPPFLAGS $i"
4622 if $CC 2>&1 | grep 'xlc' > /dev/null; then
4624 if test -z "$AIX_XLC"; then
4625 echo " setting AIX_XLC to \"yes\""
4630 if test "x$CFLAGS" = "x"; then
4631 echo " setting CFLAGS to \"-qHALT=E\""
4634 apr_addto_bugger="-qHALT=E"
4635 for i in $apr_addto_bugger; do
4636 apr_addto_duplicate="0"
4637 for j in $CFLAGS; do
4638 if test "x$i" = "x$j"; then
4639 apr_addto_duplicate="1"
4643 if test $apr_addto_duplicate = "0"; then
4644 echo " adding \"$i\" to CFLAGS"
4652 if test -z "$apr_sysvsem_is_global"; then
4653 echo " setting apr_sysvsem_is_global to \"yes\""
4654 apr_sysvsem_is_global="yes"
4658 if test -z "$apr_lock_method"; then
4659 echo " setting apr_lock_method to \"USE_SYSVSEM_SERIALIZE\""
4660 apr_lock_method="USE_SYSVSEM_SERIALIZE"
4664 *-ibm-aix3* | *-ibm-aix4.1.*)
4668 if test "x$LDFLAGS" = "x"; then
4669 echo " setting LDFLAGS to \"-Wl,-brtl\""
4672 apr_addto_bugger="-Wl,-brtl"
4673 for i in $apr_addto_bugger; do
4674 apr_addto_duplicate="0"
4675 for j in $LDFLAGS; do
4676 if test "x$i" = "x$j"; then
4677 apr_addto_duplicate="1"
4681 if test $apr_addto_duplicate = "0"; then
4682 echo " adding \"$i\" to LDFLAGS"
4683 LDFLAGS="$LDFLAGS $i"
4693 if test "x$CPPFLAGS" = "x"; then
4694 echo " setting CPPFLAGS to \"-DAPOLLO\""
4697 apr_addto_bugger="-DAPOLLO"
4698 for i in $apr_addto_bugger; do
4699 apr_addto_duplicate="0"
4700 for j in $CPPFLAGS; do
4701 if test "x$i" = "x$j"; then
4702 apr_addto_duplicate="1"
4706 if test $apr_addto_duplicate = "0"; then
4707 echo " adding \"$i\" to CPPFLAGS"
4708 CPPFLAGS="$CPPFLAGS $i"
4716 if test "x$CPPFLAGS" = "x"; then
4717 echo " setting CPPFLAGS to \"-DDGUX\""
4720 apr_addto_bugger="-DDGUX"
4721 for i in $apr_addto_bugger; do
4722 apr_addto_duplicate="0"
4723 for j in $CPPFLAGS; do
4724 if test "x$i" = "x$j"; then
4725 apr_addto_duplicate="1"
4729 if test $apr_addto_duplicate = "0"; then
4730 echo " adding \"$i\" to CPPFLAGS"
4731 CPPFLAGS="$CPPFLAGS $i"
4739 echo " forcing SHELL to \"sh\""
4743 if test -z "$apr_gethostbyname_is_thread_safe"; then
4744 echo " setting apr_gethostbyname_is_thread_safe to \"yes\""
4745 apr_gethostbyname_is_thread_safe="yes"
4749 if test -z "$apr_gethostbyaddr_is_thread_safe"; then
4750 echo " setting apr_gethostbyaddr_is_thread_safe to \"yes\""
4751 apr_gethostbyaddr_is_thread_safe="yes"
4757 if test "x$CPPFLAGS" = "x"; then
4758 echo " setting CPPFLAGS to \"-DHIUX\""
4761 apr_addto_bugger="-DHIUX"
4762 for i in $apr_addto_bugger; do
4763 apr_addto_duplicate="0"
4764 for j in $CPPFLAGS; do
4765 if test "x$i" = "x$j"; then
4766 apr_addto_duplicate="1"
4770 if test $apr_addto_duplicate = "0"; then
4771 echo " adding \"$i\" to CPPFLAGS"
4772 CPPFLAGS="$CPPFLAGS $i"
4780 if test "x$CPPFLAGS" = "x"; then
4781 echo " setting CPPFLAGS to \"-DHPUX11 -D_REENTRANT -D_XOPEN_SOURCE_EXTENDED\""
4782 CPPFLAGS="-DHPUX11 -D_REENTRANT -D_XOPEN_SOURCE_EXTENDED"
4784 apr_addto_bugger="-DHPUX11 -D_REENTRANT -D_XOPEN_SOURCE_EXTENDED"
4785 for i in $apr_addto_bugger; do
4786 apr_addto_duplicate="0"
4787 for j in $CPPFLAGS; do
4788 if test "x$i" = "x$j"; then
4789 apr_addto_duplicate="1"
4793 if test $apr_addto_duplicate = "0"; then
4794 echo " adding \"$i\" to CPPFLAGS"
4795 CPPFLAGS="$CPPFLAGS $i"
4805 if test "x$CPPFLAGS" = "x"; then
4806 echo " setting CPPFLAGS to \"-DSELECT_NEEDS_CAST\""
4807 CPPFLAGS="-DSELECT_NEEDS_CAST"
4809 apr_addto_bugger="-DSELECT_NEEDS_CAST"
4810 for i in $apr_addto_bugger; do
4811 apr_addto_duplicate="0"
4812 for j in $CPPFLAGS; do
4813 if test "x$i" = "x$j"; then
4814 apr_addto_duplicate="1"
4818 if test $apr_addto_duplicate = "0"; then
4819 echo " adding \"$i\" to CPPFLAGS"
4820 CPPFLAGS="$CPPFLAGS $i"
4828 if test "x$CPPFLAGS" = "x"; then
4829 echo " setting CPPFLAGS to \"-D_REENTRANT\""
4830 CPPFLAGS="-D_REENTRANT"
4832 apr_addto_bugger="-D_REENTRANT"
4833 for i in $apr_addto_bugger; do
4834 apr_addto_duplicate="0"
4835 for j in $CPPFLAGS; do
4836 if test "x$i" = "x$j"; then
4837 apr_addto_duplicate="1"
4841 if test $apr_addto_duplicate = "0"; then
4842 echo " adding \"$i\" to CPPFLAGS"
4843 CPPFLAGS="$CPPFLAGS $i"
4851 if test "x$CPPFLAGS" = "x"; then
4852 echo " setting CPPFLAGS to \"-DHPUX -D_REENTRANT\""
4853 CPPFLAGS="-DHPUX -D_REENTRANT"
4855 apr_addto_bugger="-DHPUX -D_REENTRANT"
4856 for i in $apr_addto_bugger; do
4857 apr_addto_duplicate="0"
4858 for j in $CPPFLAGS; do
4859 if test "x$i" = "x$j"; then
4860 apr_addto_duplicate="1"
4864 if test $apr_addto_duplicate = "0"; then
4865 echo " adding \"$i\" to CPPFLAGS"
4866 CPPFLAGS="$CPPFLAGS $i"
4875 if test "x$CPPFLAGS" = "x"; then
4876 echo " setting CPPFLAGS to \"-DLINUX=2\""
4877 CPPFLAGS="-DLINUX=2"
4879 apr_addto_bugger="-DLINUX=2"
4880 for i in $apr_addto_bugger; do
4881 apr_addto_duplicate="0"
4882 for j in $CPPFLAGS; do
4883 if test "x$i" = "x$j"; then
4884 apr_addto_duplicate="1"
4888 if test $apr_addto_duplicate = "0"; then
4889 echo " adding \"$i\" to CPPFLAGS"
4890 CPPFLAGS="$CPPFLAGS $i"
4897 if test "x$CPPFLAGS" = "x"; then
4898 echo " setting CPPFLAGS to \"-DLINUX=1\""
4899 CPPFLAGS="-DLINUX=1"
4901 apr_addto_bugger="-DLINUX=1"
4902 for i in $apr_addto_bugger; do
4903 apr_addto_duplicate="0"
4904 for j in $CPPFLAGS; do
4905 if test "x$i" = "x$j"; then
4906 apr_addto_duplicate="1"
4910 if test $apr_addto_duplicate = "0"; then
4911 echo " adding \"$i\" to CPPFLAGS"
4912 CPPFLAGS="$CPPFLAGS $i"
4922 if test "x$CPPFLAGS" = "x"; then
4923 echo " setting CPPFLAGS to \"-D_REENTRANT -D_GNU_SOURCE\""
4924 CPPFLAGS="-D_REENTRANT -D_GNU_SOURCE"
4926 apr_addto_bugger="-D_REENTRANT -D_GNU_SOURCE"
4927 for i in $apr_addto_bugger; do
4928 apr_addto_duplicate="0"
4929 for j in $CPPFLAGS; do
4930 if test "x$i" = "x$j"; then
4931 apr_addto_duplicate="1"
4935 if test $apr_addto_duplicate = "0"; then
4936 echo " adding \"$i\" to CPPFLAGS"
4937 CPPFLAGS="$CPPFLAGS $i"
4945 if test "x$CPPFLAGS" = "x"; then
4946 echo " setting CPPFLAGS to \"-DHURD -D_GNU_SOURCE\""
4947 CPPFLAGS="-DHURD -D_GNU_SOURCE"
4949 apr_addto_bugger="-DHURD -D_GNU_SOURCE"
4950 for i in $apr_addto_bugger; do
4951 apr_addto_duplicate="0"
4952 for j in $CPPFLAGS; do
4953 if test "x$i" = "x$j"; then
4954 apr_addto_duplicate="1"
4958 if test $apr_addto_duplicate = "0"; then
4959 echo " adding \"$i\" to CPPFLAGS"
4960 CPPFLAGS="$CPPFLAGS $i"
4968 if test "x$CPPFLAGS" = "x"; then
4969 echo " setting CPPFLAGS to \"-D__NO_INCLUDE_WARN__ -DLYNXOS\""
4970 CPPFLAGS="-D__NO_INCLUDE_WARN__ -DLYNXOS"
4972 apr_addto_bugger="-D__NO_INCLUDE_WARN__ -DLYNXOS"
4973 for i in $apr_addto_bugger; do
4974 apr_addto_duplicate="0"
4975 for j in $CPPFLAGS; do
4976 if test "x$i" = "x$j"; then
4977 apr_addto_duplicate="1"
4981 if test $apr_addto_duplicate = "0"; then
4982 echo " adding \"$i\" to CPPFLAGS"
4983 CPPFLAGS="$CPPFLAGS $i"
4989 if test "x$LIBS" = "x"; then
4990 echo " setting LIBS to \"-lbsd\""
4993 apr_addto_bugger="-lbsd"
4994 for i in $apr_addto_bugger; do
4995 apr_addto_duplicate="0"
4997 if test "x$i" = "x$j"; then
4998 apr_addto_duplicate="1"
5002 if test $apr_addto_duplicate = "0"; then
5003 echo " adding \"$i\" to LIBS"
5012 if test "x$CFLAGS" = "x"; then
5013 echo " setting CFLAGS to \"-m486\""
5016 apr_addto_bugger="-m486"
5017 for i in $apr_addto_bugger; do
5018 apr_addto_duplicate="0"
5019 for j in $CFLAGS; do
5020 if test "x$i" = "x$j"; then
5021 apr_addto_duplicate="1"
5025 if test $apr_addto_duplicate = "0"; then
5026 echo " adding \"$i\" to CFLAGS"
5037 if test "x$CFLAGS" = "x"; then
5038 echo " setting CFLAGS to \"-D_REENTRANT\""
5039 CFLAGS="-D_REENTRANT"
5041 apr_addto_bugger="-D_REENTRANT"
5042 for i in $apr_addto_bugger; do
5043 apr_addto_duplicate="0"
5044 for j in $CFLAGS; do
5045 if test "x$i" = "x$j"; then
5046 apr_addto_duplicate="1"
5050 if test $apr_addto_duplicate = "0"; then
5051 echo " adding \"$i\" to CFLAGS"
5062 if test "x$CPPFLAGS" = "x"; then
5063 echo " setting CPPFLAGS to \"-D_POSIX_THREADS\""
5064 CPPFLAGS="-D_POSIX_THREADS"
5066 apr_addto_bugger="-D_POSIX_THREADS"
5067 for i in $apr_addto_bugger; do
5068 apr_addto_duplicate="0"
5069 for j in $CPPFLAGS; do
5070 if test "x$i" = "x$j"; then
5071 apr_addto_duplicate="1"
5075 if test $apr_addto_duplicate = "0"; then
5076 echo " adding \"$i\" to CPPFLAGS"
5077 CPPFLAGS="$CPPFLAGS $i"
5082 # getsockname() reports the wrong address on a socket
5083 # bound to an ephmeral port so the test fails.
5085 if test -z "$ac_cv_o_nonblock_inherited"; then
5086 echo " setting ac_cv_o_nonblock_inherited to \"yes\""
5087 ac_cv_o_nonblock_inherited="yes"
5093 if test "x$CPPFLAGS" = "x"; then
5094 echo " setting CPPFLAGS to \"-DNETBSD\""
5097 apr_addto_bugger="-DNETBSD"
5098 for i in $apr_addto_bugger; do
5099 apr_addto_duplicate="0"
5100 for j in $CPPFLAGS; do
5101 if test "x$i" = "x$j"; then
5102 apr_addto_duplicate="1"
5106 if test $apr_addto_duplicate = "0"; then
5107 echo " adding \"$i\" to CPPFLAGS"
5108 CPPFLAGS="$CPPFLAGS $i"
5113 # fcntl() lies about O_NONBLOCK on an accept()ed socket (PR kern/26950)
5115 if test -z "$ac_cv_o_nonblock_inherited"; then
5116 echo " setting ac_cv_o_nonblock_inherited to \"yes\""
5117 ac_cv_o_nonblock_inherited="yes"
5125 if test "x$CFLAGS" = "x"; then
5126 echo " setting CFLAGS to \"-funsigned-char\""
5127 CFLAGS="-funsigned-char"
5129 apr_addto_bugger="-funsigned-char"
5130 for i in $apr_addto_bugger; do
5131 apr_addto_duplicate="0"
5132 for j in $CFLAGS; do
5133 if test "x$i" = "x$j"; then
5134 apr_addto_duplicate="1"
5138 if test $apr_addto_duplicate = "0"; then
5139 echo " adding \"$i\" to CFLAGS"
5148 if test -z "$enable_threads"; then
5149 echo " setting enable_threads to \"no\""
5154 if test -z "$apr_lock_method"; then
5155 echo " setting apr_lock_method to \"USE_FLOCK_SERIALIZE\""
5156 apr_lock_method="USE_FLOCK_SERIALIZE"
5160 if test "x$CPPFLAGS" = "x"; then
5161 echo " setting CPPFLAGS to \"-D_REENTRANT -D_THREAD_SAFE\""
5162 CPPFLAGS="-D_REENTRANT -D_THREAD_SAFE"
5164 apr_addto_bugger="-D_REENTRANT -D_THREAD_SAFE"
5165 for i in $apr_addto_bugger; do
5166 apr_addto_duplicate="0"
5167 for j in $CPPFLAGS; do
5168 if test "x$i" = "x$j"; then
5169 apr_addto_duplicate="1"
5173 if test $apr_addto_duplicate = "0"; then
5174 echo " adding \"$i\" to CPPFLAGS"
5175 CPPFLAGS="$CPPFLAGS $i"
5183 if test -z "$CFLAGS"; then
5184 echo " setting CFLAGS to \"-O\""
5189 if test "x$CPPFLAGS" = "x"; then
5190 echo " setting CPPFLAGS to \"-DNEXT\""
5193 apr_addto_bugger="-DNEXT"
5194 for i in $apr_addto_bugger; do
5195 apr_addto_duplicate="0"
5196 for j in $CPPFLAGS; do
5197 if test "x$i" = "x$j"; then
5198 apr_addto_duplicate="1"
5202 if test $apr_addto_duplicate = "0"; then
5203 echo " adding \"$i\" to CPPFLAGS"
5204 CPPFLAGS="$CPPFLAGS $i"
5212 if test -z "$CFLAGS"; then
5213 echo " setting CFLAGS to \"-O\""
5218 if test "x$CPPFLAGS" = "x"; then
5219 echo " setting CPPFLAGS to \"-DNEXT\""
5222 apr_addto_bugger="-DNEXT"
5223 for i in $apr_addto_bugger; do
5224 apr_addto_duplicate="0"
5225 for j in $CPPFLAGS; do
5226 if test "x$i" = "x$j"; then
5227 apr_addto_duplicate="1"
5231 if test $apr_addto_duplicate = "0"; then
5232 echo " adding \"$i\" to CPPFLAGS"
5233 CPPFLAGS="$CPPFLAGS $i"
5241 if test "x$CPPFLAGS" = "x"; then
5242 echo " setting CPPFLAGS to \"-DRHAPSODY\""
5243 CPPFLAGS="-DRHAPSODY"
5245 apr_addto_bugger="-DRHAPSODY"
5246 for i in $apr_addto_bugger; do
5247 apr_addto_duplicate="0"
5248 for j in $CPPFLAGS; do
5249 if test "x$i" = "x$j"; then
5250 apr_addto_duplicate="1"
5254 if test $apr_addto_duplicate = "0"; then
5255 echo " adding \"$i\" to CPPFLAGS"
5256 CPPFLAGS="$CPPFLAGS $i"
5264 if test "x$CPPFLAGS" = "x"; then
5265 echo " setting CPPFLAGS to \"-DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp\""
5266 CPPFLAGS="-DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp"
5268 apr_addto_bugger="-DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp"
5269 for i in $apr_addto_bugger; do
5270 apr_addto_duplicate="0"
5271 for j in $CPPFLAGS; do
5272 if test "x$i" = "x$j"; then
5273 apr_addto_duplicate="1"
5277 if test $apr_addto_duplicate = "0"; then
5278 echo " adding \"$i\" to CPPFLAGS"
5279 CPPFLAGS="$CPPFLAGS $i"
5285 if test -z "$apr_posixsem_is_global"; then
5286 echo " setting apr_posixsem_is_global to \"yes\""
5287 apr_posixsem_is_global="yes"
5291 if test -z "$ac_cv_func_poll"; then
5292 echo " setting ac_cv_func_poll to \"no\""
5293 ac_cv_func_poll="no"
5299 if test "x$CPPFLAGS" = "x"; then
5300 echo " setting CPPFLAGS to \"-DOSF1\""
5303 apr_addto_bugger="-DOSF1"
5304 for i in $apr_addto_bugger; do
5305 apr_addto_duplicate="0"
5306 for j in $CPPFLAGS; do
5307 if test "x$i" = "x$j"; then
5308 apr_addto_duplicate="1"
5312 if test $apr_addto_duplicate = "0"; then
5313 echo " adding \"$i\" to CPPFLAGS"
5314 CPPFLAGS="$CPPFLAGS $i"
5319 # process-shared mutexes don't seem to work in Tru64 5.0
5321 if test -z "$apr_cv_process_shared_works"; then
5322 echo " setting apr_cv_process_shared_works to \"no\""
5323 apr_cv_process_shared_works="no"
5331 if test "x$CPPFLAGS" = "x"; then
5332 echo " setting CPPFLAGS to \"-DQNX\""
5335 apr_addto_bugger="-DQNX"
5336 for i in $apr_addto_bugger; do
5337 apr_addto_duplicate="0"
5338 for j in $CPPFLAGS; do
5339 if test "x$i" = "x$j"; then
5340 apr_addto_duplicate="1"
5344 if test $apr_addto_duplicate = "0"; then
5345 echo " adding \"$i\" to CPPFLAGS"
5346 CPPFLAGS="$CPPFLAGS $i"
5352 if test "x$LIBS" = "x"; then
5353 echo " setting LIBS to \"-N128k -lunix\""
5354 LIBS="-N128k -lunix"
5356 apr_addto_bugger="-N128k -lunix"
5357 for i in $apr_addto_bugger; do
5358 apr_addto_duplicate="0"
5360 if test "x$i" = "x$j"; then
5361 apr_addto_duplicate="1"
5365 if test $apr_addto_duplicate = "0"; then
5366 echo " adding \"$i\" to LIBS"
5375 if test "x$CPPFLAGS" = "x"; then
5376 echo " setting CPPFLAGS to \"-DQNX\""
5379 apr_addto_bugger="-DQNX"
5380 for i in $apr_addto_bugger; do
5381 apr_addto_duplicate="0"
5382 for j in $CPPFLAGS; do
5383 if test "x$i" = "x$j"; then
5384 apr_addto_duplicate="1"
5388 if test $apr_addto_duplicate = "0"; then
5389 echo " adding \"$i\" to CPPFLAGS"
5390 CPPFLAGS="$CPPFLAGS $i"
5396 if test "x$CFLAGS" = "x"; then
5397 echo " setting CFLAGS to \"-mf -3\""
5400 apr_addto_bugger="-mf -3"
5401 for i in $apr_addto_bugger; do
5402 apr_addto_duplicate="0"
5403 for j in $CFLAGS; do
5404 if test "x$i" = "x$j"; then
5405 apr_addto_duplicate="1"
5409 if test $apr_addto_duplicate = "0"; then
5410 echo " adding \"$i\" to CFLAGS"
5417 if test "x$LIBS" = "x"; then
5418 echo " setting LIBS to \"-N128k -lunix\""
5419 LIBS="-N128k -lunix"
5421 apr_addto_bugger="-N128k -lunix"
5422 for i in $apr_addto_bugger; do
5423 apr_addto_duplicate="0"
5425 if test "x$i" = "x$j"; then
5426 apr_addto_duplicate="1"
5430 if test $apr_addto_duplicate = "0"; then
5431 echo " adding \"$i\" to LIBS"
5440 if test "x$CPPFLAGS" = "x"; then
5441 echo " setting CPPFLAGS to \"-posix -DISC\""
5442 CPPFLAGS="-posix -DISC"
5444 apr_addto_bugger="-posix -DISC"
5445 for i in $apr_addto_bugger; do
5446 apr_addto_duplicate="0"
5447 for j in $CPPFLAGS; do
5448 if test "x$i" = "x$j"; then
5449 apr_addto_duplicate="1"
5453 if test $apr_addto_duplicate = "0"; then
5454 echo " adding \"$i\" to CPPFLAGS"
5455 CPPFLAGS="$CPPFLAGS $i"
5461 if test "x$LDFLAGS" = "x"; then
5462 echo " setting LDFLAGS to \"-posix\""
5465 apr_addto_bugger="-posix"
5466 for i in $apr_addto_bugger; do
5467 apr_addto_duplicate="0"
5468 for j in $LDFLAGS; do
5469 if test "x$i" = "x$j"; then
5470 apr_addto_duplicate="1"
5474 if test $apr_addto_duplicate = "0"; then
5475 echo " adding \"$i\" to LDFLAGS"
5476 LDFLAGS="$LDFLAGS $i"
5482 if test "x$LIBS" = "x"; then
5483 echo " setting LIBS to \"-linet\""
5486 apr_addto_bugger="-linet"
5487 for i in $apr_addto_bugger; do
5488 apr_addto_duplicate="0"
5490 if test "x$i" = "x$j"; then
5491 apr_addto_duplicate="1"
5495 if test $apr_addto_duplicate = "0"; then
5496 echo " adding \"$i\" to LIBS"
5505 if test "x$CPPFLAGS" = "x"; then
5506 echo " setting CPPFLAGS to \"-DSCO -D_REENTRANT\""
5507 CPPFLAGS="-DSCO -D_REENTRANT"
5509 apr_addto_bugger="-DSCO -D_REENTRANT"
5510 for i in $apr_addto_bugger; do
5511 apr_addto_duplicate="0"
5512 for j in $CPPFLAGS; do
5513 if test "x$i" = "x$j"; then
5514 apr_addto_duplicate="1"
5518 if test $apr_addto_duplicate = "0"; then
5519 echo " adding \"$i\" to CPPFLAGS"
5520 CPPFLAGS="$CPPFLAGS $i"
5525 if test "$GCC" = "no"; then
5527 if test "x$CFLAGS" = "x"; then
5528 echo " setting CFLAGS to \"-Oacgiltz\""
5531 apr_addto_bugger="-Oacgiltz"
5532 for i in $apr_addto_bugger; do
5533 apr_addto_duplicate="0"
5534 for j in $CFLAGS; do
5535 if test "x$i" = "x$j"; then
5536 apr_addto_duplicate="1"
5540 if test $apr_addto_duplicate = "0"; then
5541 echo " adding \"$i\" to CFLAGS"
5549 if test "x$LIBS" = "x"; then
5550 echo " setting LIBS to \"-lPW -lmalloc\""
5551 LIBS="-lPW -lmalloc"
5553 apr_addto_bugger="-lPW -lmalloc"
5554 for i in $apr_addto_bugger; do
5555 apr_addto_duplicate="0"
5557 if test "x$i" = "x$j"; then
5558 apr_addto_duplicate="1"
5562 if test $apr_addto_duplicate = "0"; then
5563 echo " adding \"$i\" to LIBS"
5572 if test "x$CPPFLAGS" = "x"; then
5573 echo " setting CPPFLAGS to \"-DSCO5 -D_REENTRANT\""
5574 CPPFLAGS="-DSCO5 -D_REENTRANT"
5576 apr_addto_bugger="-DSCO5 -D_REENTRANT"
5577 for i in $apr_addto_bugger; do
5578 apr_addto_duplicate="0"
5579 for j in $CPPFLAGS; do
5580 if test "x$i" = "x$j"; then
5581 apr_addto_duplicate="1"
5585 if test $apr_addto_duplicate = "0"; then
5586 echo " adding \"$i\" to CPPFLAGS"
5587 CPPFLAGS="$CPPFLAGS $i"
5593 *-sco_sv*|*-SCO_SV*)
5595 if test "x$CPPFLAGS" = "x"; then
5596 echo " setting CPPFLAGS to \"-DSCO -D_REENTRANT\""
5597 CPPFLAGS="-DSCO -D_REENTRANT"
5599 apr_addto_bugger="-DSCO -D_REENTRANT"
5600 for i in $apr_addto_bugger; do
5601 apr_addto_duplicate="0"
5602 for j in $CPPFLAGS; do
5603 if test "x$i" = "x$j"; then
5604 apr_addto_duplicate="1"
5608 if test $apr_addto_duplicate = "0"; then
5609 echo " adding \"$i\" to CPPFLAGS"
5610 CPPFLAGS="$CPPFLAGS $i"
5616 if test "x$LIBS" = "x"; then
5617 echo " setting LIBS to \"-lPW -lmalloc\""
5618 LIBS="-lPW -lmalloc"
5620 apr_addto_bugger="-lPW -lmalloc"
5621 for i in $apr_addto_bugger; do
5622 apr_addto_duplicate="0"
5624 if test "x$i" = "x$j"; then
5625 apr_addto_duplicate="1"
5629 if test $apr_addto_duplicate = "0"; then
5630 echo " adding \"$i\" to LIBS"
5638 PLATOSVERS=`echo $host | sed 's/^.*solaris2.//'`
5640 if test "x$CPPFLAGS" = "x"; then
5641 echo " setting CPPFLAGS to \"-DSOLARIS2=$PLATOSVERS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT\""
5642 CPPFLAGS="-DSOLARIS2=$PLATOSVERS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT"
5644 apr_addto_bugger="-DSOLARIS2=$PLATOSVERS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT"
5645 for i in $apr_addto_bugger; do
5646 apr_addto_duplicate="0"
5647 for j in $CPPFLAGS; do
5648 if test "x$i" = "x$j"; then
5649 apr_addto_duplicate="1"
5653 if test $apr_addto_duplicate = "0"; then
5654 echo " adding \"$i\" to CPPFLAGS"
5655 CPPFLAGS="$CPPFLAGS $i"
5661 if test -z "$apr_lock_method"; then
5662 echo " setting apr_lock_method to \"USE_FCNTL_SERIALIZE\""
5663 apr_lock_method="USE_FCNTL_SERIALIZE"
5669 if test "x$CPPFLAGS" = "x"; then
5670 echo " setting CPPFLAGS to \"-DSUNOS4\""
5673 apr_addto_bugger="-DSUNOS4"
5674 for i in $apr_addto_bugger; do
5675 apr_addto_duplicate="0"
5676 for j in $CPPFLAGS; do
5677 if test "x$i" = "x$j"; then
5678 apr_addto_duplicate="1"
5682 if test $apr_addto_duplicate = "0"; then
5683 echo " adding \"$i\" to CPPFLAGS"
5684 CPPFLAGS="$CPPFLAGS $i"
5692 if test "x$CPPFLAGS" = "x"; then
5693 echo " setting CPPFLAGS to \"-DUW=100\""
5696 apr_addto_bugger="-DUW=100"
5697 for i in $apr_addto_bugger; do
5698 apr_addto_duplicate="0"
5699 for j in $CPPFLAGS; do
5700 if test "x$i" = "x$j"; then
5701 apr_addto_duplicate="1"
5705 if test $apr_addto_duplicate = "0"; then
5706 echo " adding \"$i\" to CPPFLAGS"
5707 CPPFLAGS="$CPPFLAGS $i"
5715 if test "x$CPPFLAGS" = "x"; then
5716 echo " setting CPPFLAGS to \"-DUW=200\""
5719 apr_addto_bugger="-DUW=200"
5720 for i in $apr_addto_bugger; do
5721 apr_addto_duplicate="0"
5722 for j in $CPPFLAGS; do
5723 if test "x$i" = "x$j"; then
5724 apr_addto_duplicate="1"
5728 if test $apr_addto_duplicate = "0"; then
5729 echo " adding \"$i\" to CPPFLAGS"
5730 CPPFLAGS="$CPPFLAGS $i"
5736 if test "x$LIBS" = "x"; then
5737 echo " setting LIBS to \"-lgen\""
5740 apr_addto_bugger="-lgen"
5741 for i in $apr_addto_bugger; do
5742 apr_addto_duplicate="0"
5744 if test "x$i" = "x$j"; then
5745 apr_addto_duplicate="1"
5749 if test $apr_addto_duplicate = "0"; then
5750 echo " adding \"$i\" to LIBS"
5759 if test "x$CPPFLAGS" = "x"; then
5760 echo " setting CPPFLAGS to \"-DUW=211\""
5763 apr_addto_bugger="-DUW=211"
5764 for i in $apr_addto_bugger; do
5765 apr_addto_duplicate="0"
5766 for j in $CPPFLAGS; do
5767 if test "x$i" = "x$j"; then
5768 apr_addto_duplicate="1"
5772 if test $apr_addto_duplicate = "0"; then
5773 echo " adding \"$i\" to CPPFLAGS"
5774 CPPFLAGS="$CPPFLAGS $i"
5780 if test "x$LIBS" = "x"; then
5781 echo " setting LIBS to \"-lgen\""
5784 apr_addto_bugger="-lgen"
5785 for i in $apr_addto_bugger; do
5786 apr_addto_duplicate="0"
5788 if test "x$i" = "x$j"; then
5789 apr_addto_duplicate="1"
5793 if test $apr_addto_duplicate = "0"; then
5794 echo " adding \"$i\" to LIBS"
5803 if test "x$CPPFLAGS" = "x"; then
5804 echo " setting CPPFLAGS to \"-DUW=212\""
5807 apr_addto_bugger="-DUW=212"
5808 for i in $apr_addto_bugger; do
5809 apr_addto_duplicate="0"
5810 for j in $CPPFLAGS; do
5811 if test "x$i" = "x$j"; then
5812 apr_addto_duplicate="1"
5816 if test $apr_addto_duplicate = "0"; then
5817 echo " adding \"$i\" to CPPFLAGS"
5818 CPPFLAGS="$CPPFLAGS $i"
5824 if test "x$LIBS" = "x"; then
5825 echo " setting LIBS to \"-lgen\""
5828 apr_addto_bugger="-lgen"
5829 for i in $apr_addto_bugger; do
5830 apr_addto_duplicate="0"
5832 if test "x$i" = "x$j"; then
5833 apr_addto_duplicate="1"
5837 if test $apr_addto_duplicate = "0"; then
5838 echo " adding \"$i\" to LIBS"
5847 if test "x$CPPFLAGS" = "x"; then
5848 echo " setting CPPFLAGS to \"-DUW=700\""
5851 apr_addto_bugger="-DUW=700"
5852 for i in $apr_addto_bugger; do
5853 apr_addto_duplicate="0"
5854 for j in $CPPFLAGS; do
5855 if test "x$i" = "x$j"; then
5856 apr_addto_duplicate="1"
5860 if test $apr_addto_duplicate = "0"; then
5861 echo " adding \"$i\" to CPPFLAGS"
5862 CPPFLAGS="$CPPFLAGS $i"
5868 if test "x$LIBS" = "x"; then
5869 echo " setting LIBS to \"-lgen\""
5872 apr_addto_bugger="-lgen"
5873 for i in $apr_addto_bugger; do
5874 apr_addto_duplicate="0"
5876 if test "x$i" = "x$j"; then
5877 apr_addto_duplicate="1"
5881 if test $apr_addto_duplicate = "0"; then
5882 echo " adding \"$i\" to LIBS"
5891 if test "x$CPPFLAGS" = "x"; then
5892 echo " setting CPPFLAGS to \"-DSVR4\""
5895 apr_addto_bugger="-DSVR4"
5896 for i in $apr_addto_bugger; do
5897 apr_addto_duplicate="0"
5898 for j in $CPPFLAGS; do
5899 if test "x$i" = "x$j"; then
5900 apr_addto_duplicate="1"
5904 if test $apr_addto_duplicate = "0"; then
5905 echo " adding \"$i\" to CPPFLAGS"
5906 CPPFLAGS="$CPPFLAGS $i"
5912 if test "x$LIBS" = "x"; then
5913 echo " setting LIBS to \"-lc -lgen\""
5916 apr_addto_bugger="-lc -lgen"
5917 for i in $apr_addto_bugger; do
5918 apr_addto_duplicate="0"
5920 if test "x$i" = "x$j"; then
5921 apr_addto_duplicate="1"
5925 if test $apr_addto_duplicate = "0"; then
5926 echo " adding \"$i\" to LIBS"
5935 if test "x$CPPFLAGS" = "x"; then
5936 echo " setting CPPFLAGS to \"-DSVR4\""
5939 apr_addto_bugger="-DSVR4"
5940 for i in $apr_addto_bugger; do
5941 apr_addto_duplicate="0"
5942 for j in $CPPFLAGS; do
5943 if test "x$i" = "x$j"; then
5944 apr_addto_duplicate="1"
5948 if test $apr_addto_duplicate = "0"; then
5949 echo " adding \"$i\" to CPPFLAGS"
5950 CPPFLAGS="$CPPFLAGS $i"
5956 if test "x$LIBS" = "x"; then
5957 echo " setting LIBS to \"-lgen\""
5960 apr_addto_bugger="-lgen"
5961 for i in $apr_addto_bugger; do
5962 apr_addto_duplicate="0"
5964 if test "x$i" = "x$j"; then
5965 apr_addto_duplicate="1"
5969 if test $apr_addto_duplicate = "0"; then
5970 echo " adding \"$i\" to LIBS"
5979 if test "x$CPPFLAGS" = "x"; then
5980 echo " setting CPPFLAGS to \"-DTPF -D_POSIX_SOURCE\""
5981 CPPFLAGS="-DTPF -D_POSIX_SOURCE"
5983 apr_addto_bugger="-DTPF -D_POSIX_SOURCE"
5984 for i in $apr_addto_bugger; do
5985 apr_addto_duplicate="0"
5986 for j in $CPPFLAGS; do
5987 if test "x$i" = "x$j"; then
5988 apr_addto_duplicate="1"
5992 if test $apr_addto_duplicate = "0"; then
5993 echo " adding \"$i\" to CPPFLAGS"
5994 CPPFLAGS="$CPPFLAGS $i"
6000 bs2000*-siemens-sysv*)
6002 if test -z "$CFLAGS"; then
6003 echo " setting CFLAGS to \"-O\""
6008 if test "x$CPPFLAGS" = "x"; then
6009 echo " setting CPPFLAGS to \"-DSVR4 -D_XPG_IV -D_KMEMUSER\""
6010 CPPFLAGS="-DSVR4 -D_XPG_IV -D_KMEMUSER"
6012 apr_addto_bugger="-DSVR4 -D_XPG_IV -D_KMEMUSER"
6013 for i in $apr_addto_bugger; do
6014 apr_addto_duplicate="0"
6015 for j in $CPPFLAGS; do
6016 if test "x$i" = "x$j"; then
6017 apr_addto_duplicate="1"
6021 if test $apr_addto_duplicate = "0"; then
6022 echo " adding \"$i\" to CPPFLAGS"
6023 CPPFLAGS="$CPPFLAGS $i"
6029 if test "x$LIBS" = "x"; then
6030 echo " setting LIBS to \"-lsocket\""
6033 apr_addto_bugger="-lsocket"
6034 for i in $apr_addto_bugger; do
6035 apr_addto_duplicate="0"
6037 if test "x$i" = "x$j"; then
6038 apr_addto_duplicate="1"
6042 if test $apr_addto_duplicate = "0"; then
6043 echo " adding \"$i\" to LIBS"
6050 if test -z "$enable_threads"; then
6051 echo " setting enable_threads to \"no\""
6058 if test "x$CPPFLAGS" = "x"; then
6059 echo " setting CPPFLAGS to \"-DSVR4 -D_XPG_IV -DHAS_DLFCN -DUSE_MMAP_FILES -DUSE_SYSVSEM_SERIALIZED_ACCEPT\""
6060 CPPFLAGS="-DSVR4 -D_XPG_IV -DHAS_DLFCN -DUSE_MMAP_FILES -DUSE_SYSVSEM_SERIALIZED_ACCEPT"
6062 apr_addto_bugger="-DSVR4 -D_XPG_IV -DHAS_DLFCN -DUSE_MMAP_FILES -DUSE_SYSVSEM_SERIALIZED_ACCEPT"
6063 for i in $apr_addto_bugger; do
6064 apr_addto_duplicate="0"
6065 for j in $CPPFLAGS; do
6066 if test "x$i" = "x$j"; then
6067 apr_addto_duplicate="1"
6071 if test $apr_addto_duplicate = "0"; then
6072 echo " adding \"$i\" to CPPFLAGS"
6073 CPPFLAGS="$CPPFLAGS $i"
6079 if test "x$LIBS" = "x"; then
6080 echo " setting LIBS to \"-lc\""
6083 apr_addto_bugger="-lc"
6084 for i in $apr_addto_bugger; do
6085 apr_addto_duplicate="0"
6087 if test "x$i" = "x$j"; then
6088 apr_addto_duplicate="1"
6092 if test $apr_addto_duplicate = "0"; then
6093 echo " adding \"$i\" to LIBS"
6100 pyramid-pyramid-svr4)
6102 if test "x$CPPFLAGS" = "x"; then
6103 echo " setting CPPFLAGS to \"-DSVR4 -DNO_LONG_DOUBLE\""
6104 CPPFLAGS="-DSVR4 -DNO_LONG_DOUBLE"
6106 apr_addto_bugger="-DSVR4 -DNO_LONG_DOUBLE"
6107 for i in $apr_addto_bugger; do
6108 apr_addto_duplicate="0"
6109 for j in $CPPFLAGS; do
6110 if test "x$i" = "x$j"; then
6111 apr_addto_duplicate="1"
6115 if test $apr_addto_duplicate = "0"; then
6116 echo " adding \"$i\" to CPPFLAGS"
6117 CPPFLAGS="$CPPFLAGS $i"
6123 if test "x$LIBS" = "x"; then
6124 echo " setting LIBS to \"-lc\""
6127 apr_addto_bugger="-lc"
6128 for i in $apr_addto_bugger; do
6129 apr_addto_duplicate="0"
6131 if test "x$i" = "x$j"; then
6132 apr_addto_duplicate="1"
6136 if test $apr_addto_duplicate = "0"; then
6137 echo " adding \"$i\" to LIBS"
6144 DS/90\ 7000-*-sysv4*)
6146 if test "x$CPPFLAGS" = "x"; then
6147 echo " setting CPPFLAGS to \"-DUXPDS\""
6150 apr_addto_bugger="-DUXPDS"
6151 for i in $apr_addto_bugger; do
6152 apr_addto_duplicate="0"
6153 for j in $CPPFLAGS; do
6154 if test "x$i" = "x$j"; then
6155 apr_addto_duplicate="1"
6159 if test $apr_addto_duplicate = "0"; then
6160 echo " adding \"$i\" to CPPFLAGS"
6161 CPPFLAGS="$CPPFLAGS $i"
6169 if test "x$CPPFLAGS" = "x"; then
6170 echo " setting CPPFLAGS to \"-DSVR4\""
6173 apr_addto_bugger="-DSVR4"
6174 for i in $apr_addto_bugger; do
6175 apr_addto_duplicate="0"
6176 for j in $CPPFLAGS; do
6177 if test "x$i" = "x$j"; then
6178 apr_addto_duplicate="1"
6182 if test $apr_addto_duplicate = "0"; then
6183 echo " adding \"$i\" to CPPFLAGS"
6184 CPPFLAGS="$CPPFLAGS $i"
6192 if test "x$CPPFLAGS" = "x"; then
6193 echo " setting CPPFLAGS to \"-DSVR4 -DMPRAS\""
6194 CPPFLAGS="-DSVR4 -DMPRAS"
6196 apr_addto_bugger="-DSVR4 -DMPRAS"
6197 for i in $apr_addto_bugger; do
6198 apr_addto_duplicate="0"
6199 for j in $CPPFLAGS; do
6200 if test "x$i" = "x$j"; then
6201 apr_addto_duplicate="1"
6205 if test $apr_addto_duplicate = "0"; then
6206 echo " adding \"$i\" to CPPFLAGS"
6207 CPPFLAGS="$CPPFLAGS $i"
6213 if test "x$LIBS" = "x"; then
6214 echo " setting LIBS to \"-lc -L/usr/ucblib -lucb\""
6215 LIBS="-lc -L/usr/ucblib -lucb"
6217 apr_addto_bugger="-lc -L/usr/ucblib -lucb"
6218 for i in $apr_addto_bugger; do
6219 apr_addto_duplicate="0"
6221 if test "x$i" = "x$j"; then
6222 apr_addto_duplicate="1"
6226 if test $apr_addto_duplicate = "0"; then
6227 echo " adding \"$i\" to LIBS"
6236 if test "x$CPPFLAGS" = "x"; then
6237 echo " setting CPPFLAGS to \"-DSVR4\""
6240 apr_addto_bugger="-DSVR4"
6241 for i in $apr_addto_bugger; do
6242 apr_addto_duplicate="0"
6243 for j in $CPPFLAGS; do
6244 if test "x$i" = "x$j"; then
6245 apr_addto_duplicate="1"
6249 if test $apr_addto_duplicate = "0"; then
6250 echo " adding \"$i\" to CPPFLAGS"
6251 CPPFLAGS="$CPPFLAGS $i"
6257 if test "x$LIBS" = "x"; then
6258 echo " setting LIBS to \"-lc\""
6261 apr_addto_bugger="-lc"
6262 for i in $apr_addto_bugger; do
6263 apr_addto_duplicate="0"
6265 if test "x$i" = "x$j"; then
6266 apr_addto_duplicate="1"
6270 if test $apr_addto_duplicate = "0"; then
6271 echo " adding \"$i\" to LIBS"
6280 if test "x$CPPFLAGS" = "x"; then
6281 echo " setting CPPFLAGS to \"-DSVR4 -DENCORE\""
6282 CPPFLAGS="-DSVR4 -DENCORE"
6284 apr_addto_bugger="-DSVR4 -DENCORE"
6285 for i in $apr_addto_bugger; do
6286 apr_addto_duplicate="0"
6287 for j in $CPPFLAGS; do
6288 if test "x$i" = "x$j"; then
6289 apr_addto_duplicate="1"
6293 if test $apr_addto_duplicate = "0"; then
6294 echo " adding \"$i\" to CPPFLAGS"
6295 CPPFLAGS="$CPPFLAGS $i"
6301 if test "x$LIBS" = "x"; then
6302 echo " setting LIBS to \"-lPW\""
6305 apr_addto_bugger="-lPW"
6306 for i in $apr_addto_bugger; do
6307 apr_addto_duplicate="0"
6309 if test "x$i" = "x$j"; then
6310 apr_addto_duplicate="1"
6314 if test $apr_addto_duplicate = "0"; then
6315 echo " adding \"$i\" to LIBS"
6323 PLATOSVERS=`echo $host | sed 's/^.*,//'`
6326 if test "x$CPPFLAGS" = "x"; then
6327 echo " setting CPPFLAGS to \"-DUTS21\""
6330 apr_addto_bugger="-DUTS21"
6331 for i in $apr_addto_bugger; do
6332 apr_addto_duplicate="0"
6333 for j in $CPPFLAGS; do
6334 if test "x$i" = "x$j"; then
6335 apr_addto_duplicate="1"
6339 if test $apr_addto_duplicate = "0"; then
6340 echo " adding \"$i\" to CPPFLAGS"
6341 CPPFLAGS="$CPPFLAGS $i"
6347 if test "x$CFLAGS" = "x"; then
6348 echo " setting CFLAGS to \"-Xa -eft\""
6351 apr_addto_bugger="-Xa -eft"
6352 for i in $apr_addto_bugger; do
6353 apr_addto_duplicate="0"
6354 for j in $CFLAGS; do
6355 if test "x$i" = "x$j"; then
6356 apr_addto_duplicate="1"
6360 if test $apr_addto_duplicate = "0"; then
6361 echo " adding \"$i\" to CFLAGS"
6368 if test "x$LIBS" = "x"; then
6369 echo " setting LIBS to \"-lbsd -la\""
6372 apr_addto_bugger="-lbsd -la"
6373 for i in $apr_addto_bugger; do
6374 apr_addto_duplicate="0"
6376 if test "x$i" = "x$j"; then
6377 apr_addto_duplicate="1"
6381 if test $apr_addto_duplicate = "0"; then
6382 echo " adding \"$i\" to LIBS"
6390 if test "x$CPPFLAGS" = "x"; then
6391 echo " setting CPPFLAGS to \"-DSVR4\""
6394 apr_addto_bugger="-DSVR4"
6395 for i in $apr_addto_bugger; do
6396 apr_addto_duplicate="0"
6397 for j in $CPPFLAGS; do
6398 if test "x$i" = "x$j"; then
6399 apr_addto_duplicate="1"
6403 if test $apr_addto_duplicate = "0"; then
6404 echo " adding \"$i\" to CPPFLAGS"
6405 CPPFLAGS="$CPPFLAGS $i"
6411 if test "x$CFLAGS" = "x"; then
6412 echo " setting CFLAGS to \"-Xa\""
6415 apr_addto_bugger="-Xa"
6416 for i in $apr_addto_bugger; do
6417 apr_addto_duplicate="0"
6418 for j in $CFLAGS; do
6419 if test "x$i" = "x$j"; then
6420 apr_addto_duplicate="1"
6424 if test $apr_addto_duplicate = "0"; then
6425 echo " adding \"$i\" to CFLAGS"
6436 if test "x$CPPFLAGS" = "x"; then
6437 echo " setting CPPFLAGS to \"-DULTRIX\""
6440 apr_addto_bugger="-DULTRIX"
6441 for i in $apr_addto_bugger; do
6442 apr_addto_duplicate="0"
6443 for j in $CPPFLAGS; do
6444 if test "x$i" = "x$j"; then
6445 apr_addto_duplicate="1"
6449 if test $apr_addto_duplicate = "0"; then
6450 echo " adding \"$i\" to CPPFLAGS"
6451 CPPFLAGS="$CPPFLAGS $i"
6457 echo " forcing SHELL to \"/bin/sh5\""
6461 *powerpc-tenon-machten*)
6463 if test "x$LDFLAGS" = "x"; then
6464 echo " setting LDFLAGS to \"-Xlstack=0x14000 -Xldelcsect\""
6465 LDFLAGS="-Xlstack=0x14000 -Xldelcsect"
6467 apr_addto_bugger="-Xlstack=0x14000 -Xldelcsect"
6468 for i in $apr_addto_bugger; do
6469 apr_addto_duplicate="0"
6470 for j in $LDFLAGS; do
6471 if test "x$i" = "x$j"; then
6472 apr_addto_duplicate="1"
6476 if test $apr_addto_duplicate = "0"; then
6477 echo " adding \"$i\" to LDFLAGS"
6478 LDFLAGS="$LDFLAGS $i"
6486 if test "x$LDFLAGS" = "x"; then
6487 echo " setting LDFLAGS to \"-stack 0x14000\""
6488 LDFLAGS="-stack 0x14000"
6490 apr_addto_bugger="-stack 0x14000"
6491 for i in $apr_addto_bugger; do
6492 apr_addto_duplicate="0"
6493 for j in $LDFLAGS; do
6494 if test "x$i" = "x$j"; then
6495 apr_addto_duplicate="1"
6499 if test $apr_addto_duplicate = "0"; then
6500 echo " adding \"$i\" to LDFLAGS"
6501 LDFLAGS="$LDFLAGS $i"
6509 if test "x$CPPFLAGS" = "x"; then
6510 echo " setting CPPFLAGS to \"-DCONVEXOS11\""
6511 CPPFLAGS="-DCONVEXOS11"
6513 apr_addto_bugger="-DCONVEXOS11"
6514 for i in $apr_addto_bugger; do
6515 apr_addto_duplicate="0"
6516 for j in $CPPFLAGS; do
6517 if test "x$i" = "x$j"; then
6518 apr_addto_duplicate="1"
6522 if test $apr_addto_duplicate = "0"; then
6523 echo " adding \"$i\" to CPPFLAGS"
6524 CPPFLAGS="$CPPFLAGS $i"
6530 if test -z "$CFLAGS"; then
6531 echo " setting CFLAGS to \"-O1\""
6536 if test "x$CFLAGS" = "x"; then
6537 echo " setting CFLAGS to \"-ext\""
6540 apr_addto_bugger="-ext"
6541 for i in $apr_addto_bugger; do
6542 apr_addto_duplicate="0"
6543 for j in $CFLAGS; do
6544 if test "x$i" = "x$j"; then
6545 apr_addto_duplicate="1"
6549 if test $apr_addto_duplicate = "0"; then
6550 echo " adding \"$i\" to CFLAGS"
6559 if test "x$CPPFLAGS" = "x"; then
6560 echo " setting CPPFLAGS to \"-DPARAGON\""
6561 CPPFLAGS="-DPARAGON"
6563 apr_addto_bugger="-DPARAGON"
6564 for i in $apr_addto_bugger; do
6565 apr_addto_duplicate="0"
6566 for j in $CPPFLAGS; do
6567 if test "x$i" = "x$j"; then
6568 apr_addto_duplicate="1"
6572 if test $apr_addto_duplicate = "0"; then
6573 echo " adding \"$i\" to CPPFLAGS"
6574 CPPFLAGS="$CPPFLAGS $i"
6582 if test "x$CPPFLAGS" = "x"; then
6583 echo " setting CPPFLAGS to \"-DSEQUENT=20\""
6584 CPPFLAGS="-DSEQUENT=20"
6586 apr_addto_bugger="-DSEQUENT=20"
6587 for i in $apr_addto_bugger; do
6588 apr_addto_duplicate="0"
6589 for j in $CPPFLAGS; do
6590 if test "x$i" = "x$j"; then
6591 apr_addto_duplicate="1"
6595 if test $apr_addto_duplicate = "0"; then
6596 echo " adding \"$i\" to CPPFLAGS"
6597 CPPFLAGS="$CPPFLAGS $i"
6603 if test "x$CFLAGS" = "x"; then
6604 echo " setting CFLAGS to \"-Wc,-pw\""
6607 apr_addto_bugger="-Wc,-pw"
6608 for i in $apr_addto_bugger; do
6609 apr_addto_duplicate="0"
6610 for j in $CFLAGS; do
6611 if test "x$i" = "x$j"; then
6612 apr_addto_duplicate="1"
6616 if test $apr_addto_duplicate = "0"; then
6617 echo " adding \"$i\" to CFLAGS"
6624 if test "x$LIBS" = "x"; then
6625 echo " setting LIBS to \"-linet -lc -lseq\""
6626 LIBS="-linet -lc -lseq"
6628 apr_addto_bugger="-linet -lc -lseq"
6629 for i in $apr_addto_bugger; do
6630 apr_addto_duplicate="0"
6632 if test "x$i" = "x$j"; then
6633 apr_addto_duplicate="1"
6637 if test $apr_addto_duplicate = "0"; then
6638 echo " adding \"$i\" to LIBS"
6647 if test "x$CPPFLAGS" = "x"; then
6648 echo " setting CPPFLAGS to \"-DSEQUENT=40\""
6649 CPPFLAGS="-DSEQUENT=40"
6651 apr_addto_bugger="-DSEQUENT=40"
6652 for i in $apr_addto_bugger; do
6653 apr_addto_duplicate="0"
6654 for j in $CPPFLAGS; do
6655 if test "x$i" = "x$j"; then
6656 apr_addto_duplicate="1"
6660 if test $apr_addto_duplicate = "0"; then
6661 echo " adding \"$i\" to CPPFLAGS"
6662 CPPFLAGS="$CPPFLAGS $i"
6668 if test "x$CFLAGS" = "x"; then
6669 echo " setting CFLAGS to \"-Wc,-pw\""
6672 apr_addto_bugger="-Wc,-pw"
6673 for i in $apr_addto_bugger; do
6674 apr_addto_duplicate="0"
6675 for j in $CFLAGS; do
6676 if test "x$i" = "x$j"; then
6677 apr_addto_duplicate="1"
6681 if test $apr_addto_duplicate = "0"; then
6682 echo " adding \"$i\" to CFLAGS"
6689 if test "x$LIBS" = "x"; then
6690 echo " setting LIBS to \"-linet -lc\""
6693 apr_addto_bugger="-linet -lc"
6694 for i in $apr_addto_bugger; do
6695 apr_addto_duplicate="0"
6697 if test "x$i" = "x$j"; then
6698 apr_addto_duplicate="1"
6702 if test $apr_addto_duplicate = "0"; then
6703 echo " adding \"$i\" to LIBS"
6710 *-sequent-ptx4.[123].*)
6712 if test "x$CPPFLAGS" = "x"; then
6713 echo " setting CPPFLAGS to \"-DSEQUENT=41\""
6714 CPPFLAGS="-DSEQUENT=41"
6716 apr_addto_bugger="-DSEQUENT=41"
6717 for i in $apr_addto_bugger; do
6718 apr_addto_duplicate="0"
6719 for j in $CPPFLAGS; do
6720 if test "x$i" = "x$j"; then
6721 apr_addto_duplicate="1"
6725 if test $apr_addto_duplicate = "0"; then
6726 echo " adding \"$i\" to CPPFLAGS"
6727 CPPFLAGS="$CPPFLAGS $i"
6733 if test "x$CFLAGS" = "x"; then
6734 echo " setting CFLAGS to \"-Wc,-pw\""
6737 apr_addto_bugger="-Wc,-pw"
6738 for i in $apr_addto_bugger; do
6739 apr_addto_duplicate="0"
6740 for j in $CFLAGS; do
6741 if test "x$i" = "x$j"; then
6742 apr_addto_duplicate="1"
6746 if test $apr_addto_duplicate = "0"; then
6747 echo " adding \"$i\" to CFLAGS"
6754 if test "x$LIBS" = "x"; then
6755 echo " setting LIBS to \"-lc\""
6758 apr_addto_bugger="-lc"
6759 for i in $apr_addto_bugger; do
6760 apr_addto_duplicate="0"
6762 if test "x$i" = "x$j"; then
6763 apr_addto_duplicate="1"
6767 if test $apr_addto_duplicate = "0"; then
6768 echo " adding \"$i\" to LIBS"
6777 if test "x$CPPFLAGS" = "x"; then
6778 echo " setting CPPFLAGS to \"-DSEQUENT=44\""
6779 CPPFLAGS="-DSEQUENT=44"
6781 apr_addto_bugger="-DSEQUENT=44"
6782 for i in $apr_addto_bugger; do
6783 apr_addto_duplicate="0"
6784 for j in $CPPFLAGS; do
6785 if test "x$i" = "x$j"; then
6786 apr_addto_duplicate="1"
6790 if test $apr_addto_duplicate = "0"; then
6791 echo " adding \"$i\" to CPPFLAGS"
6792 CPPFLAGS="$CPPFLAGS $i"
6798 if test "x$CFLAGS" = "x"; then
6799 echo " setting CFLAGS to \"-Wc,-pw\""
6802 apr_addto_bugger="-Wc,-pw"
6803 for i in $apr_addto_bugger; do
6804 apr_addto_duplicate="0"
6805 for j in $CFLAGS; do
6806 if test "x$i" = "x$j"; then
6807 apr_addto_duplicate="1"
6811 if test $apr_addto_duplicate = "0"; then
6812 echo " adding \"$i\" to CFLAGS"
6819 if test "x$LIBS" = "x"; then
6820 echo " setting LIBS to \"-lc\""
6823 apr_addto_bugger="-lc"
6824 for i in $apr_addto_bugger; do
6825 apr_addto_duplicate="0"
6827 if test "x$i" = "x$j"; then
6828 apr_addto_duplicate="1"
6832 if test $apr_addto_duplicate = "0"; then
6833 echo " adding \"$i\" to LIBS"
6842 if test "x$CPPFLAGS" = "x"; then
6843 echo " setting CPPFLAGS to \"-DSEQUENT=45\""
6844 CPPFLAGS="-DSEQUENT=45"
6846 apr_addto_bugger="-DSEQUENT=45"
6847 for i in $apr_addto_bugger; do
6848 apr_addto_duplicate="0"
6849 for j in $CPPFLAGS; do
6850 if test "x$i" = "x$j"; then
6851 apr_addto_duplicate="1"
6855 if test $apr_addto_duplicate = "0"; then
6856 echo " adding \"$i\" to CPPFLAGS"
6857 CPPFLAGS="$CPPFLAGS $i"
6863 if test "x$CFLAGS" = "x"; then
6864 echo " setting CFLAGS to \"-Wc,-pw\""
6867 apr_addto_bugger="-Wc,-pw"
6868 for i in $apr_addto_bugger; do
6869 apr_addto_duplicate="0"
6870 for j in $CFLAGS; do
6871 if test "x$i" = "x$j"; then
6872 apr_addto_duplicate="1"
6876 if test $apr_addto_duplicate = "0"; then
6877 echo " adding \"$i\" to CFLAGS"
6884 if test "x$LIBS" = "x"; then
6885 echo " setting LIBS to \"-lc\""
6888 apr_addto_bugger="-lc"
6889 for i in $apr_addto_bugger; do
6890 apr_addto_duplicate="0"
6892 if test "x$i" = "x$j"; then
6893 apr_addto_duplicate="1"
6897 if test $apr_addto_duplicate = "0"; then
6898 echo " adding \"$i\" to LIBS"
6907 if test "x$CPPFLAGS" = "x"; then
6908 echo " setting CPPFLAGS to \"-DSEQUENT=50\""
6909 CPPFLAGS="-DSEQUENT=50"
6911 apr_addto_bugger="-DSEQUENT=50"
6912 for i in $apr_addto_bugger; do
6913 apr_addto_duplicate="0"
6914 for j in $CPPFLAGS; do
6915 if test "x$i" = "x$j"; then
6916 apr_addto_duplicate="1"
6920 if test $apr_addto_duplicate = "0"; then
6921 echo " adding \"$i\" to CPPFLAGS"
6922 CPPFLAGS="$CPPFLAGS $i"
6928 if test "x$CFLAGS" = "x"; then
6929 echo " setting CFLAGS to \"-Wc,-pw\""
6932 apr_addto_bugger="-Wc,-pw"
6933 for i in $apr_addto_bugger; do
6934 apr_addto_duplicate="0"
6935 for j in $CFLAGS; do
6936 if test "x$i" = "x$j"; then
6937 apr_addto_duplicate="1"
6941 if test $apr_addto_duplicate = "0"; then
6942 echo " adding \"$i\" to CFLAGS"
6949 if test "x$LIBS" = "x"; then
6950 echo " setting LIBS to \"-lc\""
6953 apr_addto_bugger="-lc"
6954 for i in $apr_addto_bugger; do
6955 apr_addto_duplicate="0"
6957 if test "x$i" = "x$j"; then
6958 apr_addto_duplicate="1"
6962 if test $apr_addto_duplicate = "0"; then
6963 echo " adding \"$i\" to LIBS"
6972 if test "x$CPPFLAGS" = "x"; then
6973 echo " setting CPPFLAGS to \"-DNEWSOS\""
6976 apr_addto_bugger="-DNEWSOS"
6977 for i in $apr_addto_bugger; do
6978 apr_addto_duplicate="0"
6979 for j in $CPPFLAGS; do
6980 if test "x$i" = "x$j"; then
6981 apr_addto_duplicate="1"
6985 if test $apr_addto_duplicate = "0"; then
6986 echo " adding \"$i\" to CPPFLAGS"
6987 CPPFLAGS="$CPPFLAGS $i"
6995 if test "x$CPPFLAGS" = "x"; then
6996 echo " setting CPPFLAGS to \"-DRISCIX\""
6999 apr_addto_bugger="-DRISCIX"
7000 for i in $apr_addto_bugger; do
7001 apr_addto_duplicate="0"
7002 for j in $CPPFLAGS; do
7003 if test "x$i" = "x$j"; then
7004 apr_addto_duplicate="1"
7008 if test $apr_addto_duplicate = "0"; then
7009 echo " adding \"$i\" to CPPFLAGS"
7010 CPPFLAGS="$CPPFLAGS $i"
7016 if test -z "$CFLAGS"; then
7017 echo " setting CFLAGS to \"-O\""
7024 if test "x$CPPFLAGS" = "x"; then
7025 echo " setting CPPFLAGS to \"-D_POSIX_THREAD_SAFE_FUNCTIONS\""
7026 CPPFLAGS="-D_POSIX_THREAD_SAFE_FUNCTIONS"
7028 apr_addto_bugger="-D_POSIX_THREAD_SAFE_FUNCTIONS"
7029 for i in $apr_addto_bugger; do
7030 apr_addto_duplicate="0"
7031 for j in $CPPFLAGS; do
7032 if test "x$i" = "x$j"; then
7033 apr_addto_duplicate="1"
7037 if test $apr_addto_duplicate = "0"; then
7038 echo " adding \"$i\" to CPPFLAGS"
7039 CPPFLAGS="$CPPFLAGS $i"
7047 if test "x$CPPFLAGS" = "x"; then
7048 echo " setting CPPFLAGS to \"-DBEOS\""
7051 apr_addto_bugger="-DBEOS"
7052 for i in $apr_addto_bugger; do
7053 apr_addto_duplicate="0"
7054 for j in $CPPFLAGS; do
7055 if test "x$i" = "x$j"; then
7056 apr_addto_duplicate="1"
7060 if test $apr_addto_duplicate = "0"; then
7061 echo " adding \"$i\" to CPPFLAGS"
7062 CPPFLAGS="$CPPFLAGS $i"
7067 PLATOSVERS=`uname -r`
7069 if test -z "$apr_process_lock_is_global"; then
7070 echo " setting apr_process_lock_is_global to \"yes\""
7071 apr_process_lock_is_global="yes"
7077 if test "x$LDFLAGS" = "x"; then
7078 echo " setting LDFLAGS to \"-L/boot/beos/system/lib\""
7079 LDFLAGS="-L/boot/beos/system/lib"
7081 apr_addto_bugger="-L/boot/beos/system/lib"
7082 for i in $apr_addto_bugger; do
7083 apr_addto_duplicate="0"
7084 for j in $LDFLAGS; do
7085 if test "x$i" = "x$j"; then
7086 apr_addto_duplicate="1"
7090 if test $apr_addto_duplicate = "0"; then
7091 echo " adding \"$i\" to LDFLAGS"
7092 LDFLAGS="$LDFLAGS $i"
7098 if test "x$LIBS" = "x"; then
7099 echo " setting LIBS to \"-lbind -lsocket\""
7100 LIBS="-lbind -lsocket"
7102 apr_addto_bugger="-lbind -lsocket"
7103 for i in $apr_addto_bugger; do
7104 apr_addto_duplicate="0"
7106 if test "x$i" = "x$j"; then
7107 apr_addto_duplicate="1"
7111 if test $apr_addto_duplicate = "0"; then
7112 echo " adding \"$i\" to LIBS"
7119 if test "x$CPPFLAGS" = "x"; then
7120 echo " setting CPPFLAGS to \"-DBONE7\""
7123 apr_addto_bugger="-DBONE7"
7124 for i in $apr_addto_bugger; do
7125 apr_addto_duplicate="0"
7126 for j in $CPPFLAGS; do
7127 if test "x$i" = "x$j"; then
7128 apr_addto_duplicate="1"
7132 if test $apr_addto_duplicate = "0"; then
7133 echo " adding \"$i\" to CPPFLAGS"
7134 CPPFLAGS="$CPPFLAGS $i"
7142 if test "x$LDFLAGS" = "x"; then
7143 echo " setting LDFLAGS to \"-L/boot/beos/system/lib\""
7144 LDFLAGS="-L/boot/beos/system/lib"
7146 apr_addto_bugger="-L/boot/beos/system/lib"
7147 for i in $apr_addto_bugger; do
7148 apr_addto_duplicate="0"
7149 for j in $LDFLAGS; do
7150 if test "x$i" = "x$j"; then
7151 apr_addto_duplicate="1"
7155 if test $apr_addto_duplicate = "0"; then
7156 echo " adding \"$i\" to LDFLAGS"
7157 LDFLAGS="$LDFLAGS $i"
7163 if test "x$LIBS" = "x"; then
7164 echo " setting LIBS to \"-lbind -lsocket\""
7165 LIBS="-lbind -lsocket"
7167 apr_addto_bugger="-lbind -lsocket"
7168 for i in $apr_addto_bugger; do
7169 apr_addto_duplicate="0"
7171 if test "x$i" = "x$j"; then
7172 apr_addto_duplicate="1"
7176 if test $apr_addto_duplicate = "0"; then
7177 echo " adding \"$i\" to LIBS"
7186 if test "x$CPPFLAGS" = "x"; then
7187 echo " setting CPPFLAGS to \"-DSIGPROCMASK_SETS_THREAD_MASK -DAP_AUTH_DBM_USE_APR\""
7188 CPPFLAGS="-DSIGPROCMASK_SETS_THREAD_MASK -DAP_AUTH_DBM_USE_APR"
7190 apr_addto_bugger="-DSIGPROCMASK_SETS_THREAD_MASK -DAP_AUTH_DBM_USE_APR"
7191 for i in $apr_addto_bugger; do
7192 apr_addto_duplicate="0"
7193 for j in $CPPFLAGS; do
7194 if test "x$i" = "x$j"; then
7195 apr_addto_duplicate="1"
7199 if test $apr_addto_duplicate = "0"; then
7200 echo " adding \"$i\" to CPPFLAGS"
7201 CPPFLAGS="$CPPFLAGS $i"
7209 if test "x$CPPFLAGS" = "x"; then
7210 echo " setting CPPFLAGS to \"-DSVR4 -DMPRAS\""
7211 CPPFLAGS="-DSVR4 -DMPRAS"
7213 apr_addto_bugger="-DSVR4 -DMPRAS"
7214 for i in $apr_addto_bugger; do
7215 apr_addto_duplicate="0"
7216 for j in $CPPFLAGS; do
7217 if test "x$i" = "x$j"; then
7218 apr_addto_duplicate="1"
7222 if test $apr_addto_duplicate = "0"; then
7223 echo " adding \"$i\" to CPPFLAGS"
7224 CPPFLAGS="$CPPFLAGS $i"
7230 if test "x$LIBS" = "x"; then
7231 echo " setting LIBS to \"-lc -L/usr/ucblib -lucb\""
7232 LIBS="-lc -L/usr/ucblib -lucb"
7234 apr_addto_bugger="-lc -L/usr/ucblib -lucb"
7235 for i in $apr_addto_bugger; do
7236 apr_addto_duplicate="0"
7238 if test "x$i" = "x$j"; then
7239 apr_addto_duplicate="1"
7243 if test $apr_addto_duplicate = "0"; then
7244 echo " adding \"$i\" to LIBS"
7253 if test "x$CPPFLAGS" = "x"; then
7254 echo " setting CPPFLAGS to \"-DSVR4\""
7257 apr_addto_bugger="-DSVR4"
7258 for i in $apr_addto_bugger; do
7259 apr_addto_duplicate="0"
7260 for j in $CPPFLAGS; do
7261 if test "x$i" = "x$j"; then
7262 apr_addto_duplicate="1"
7266 if test $apr_addto_duplicate = "0"; then
7267 echo " adding \"$i\" to CPPFLAGS"
7268 CPPFLAGS="$CPPFLAGS $i"
7274 if test "x$LIBS" = "x"; then
7275 echo " setting LIBS to \"-lc -L/usr/ucblib -lucb\""
7276 LIBS="-lc -L/usr/ucblib -lucb"
7278 apr_addto_bugger="-lc -L/usr/ucblib -lucb"
7279 for i in $apr_addto_bugger; do
7280 apr_addto_duplicate="0"
7282 if test "x$i" = "x$j"; then
7283 apr_addto_duplicate="1"
7287 if test $apr_addto_duplicate = "0"; then
7288 echo " adding \"$i\" to LIBS"
7297 if test "x$CPPFLAGS" = "x"; then
7298 echo " setting CPPFLAGS to \"-D_CX_SX\""
7301 apr_addto_bugger="-D_CX_SX"
7302 for i in $apr_addto_bugger; do
7303 apr_addto_duplicate="0"
7304 for j in $CPPFLAGS; do
7305 if test "x$i" = "x$j"; then
7306 apr_addto_duplicate="1"
7310 if test $apr_addto_duplicate = "0"; then
7311 echo " adding \"$i\" to CPPFLAGS"
7312 CPPFLAGS="$CPPFLAGS $i"
7318 if test "x$CFLAGS" = "x"; then
7319 echo " setting CFLAGS to \"-Xa\""
7322 apr_addto_bugger="-Xa"
7323 for i in $apr_addto_bugger; do
7324 apr_addto_duplicate="0"
7325 for j in $CFLAGS; do
7326 if test "x$i" = "x$j"; then
7327 apr_addto_duplicate="1"
7331 if test $apr_addto_duplicate = "0"; then
7332 echo " adding \"$i\" to CFLAGS"
7341 if test "x$CPPFLAGS" = "x"; then
7342 echo " setting CPPFLAGS to \"-D_TANDEM_SOURCE -D_XOPEN_SOURCE_EXTENDED=1\""
7343 CPPFLAGS="-D_TANDEM_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
7345 apr_addto_bugger="-D_TANDEM_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
7346 for i in $apr_addto_bugger; do
7347 apr_addto_duplicate="0"
7348 for j in $CPPFLAGS; do
7349 if test "x$i" = "x$j"; then
7350 apr_addto_duplicate="1"
7354 if test $apr_addto_duplicate = "0"; then
7355 echo " adding \"$i\" to CPPFLAGS"
7356 CPPFLAGS="$CPPFLAGS $i"
7364 if test -z "$apr_lock_method"; then
7365 echo " setting apr_lock_method to \"USE_SYSVSEM_SERIALIZE\""
7366 apr_lock_method="USE_SYSVSEM_SERIALIZE"
7370 if test -z "$apr_sysvsem_is_global"; then
7371 echo " setting apr_sysvsem_is_global to \"yes\""
7372 apr_sysvsem_is_global="yes"
7376 if test -z "$apr_gethostbyname_is_thread_safe"; then
7377 echo " setting apr_gethostbyname_is_thread_safe to \"yes\""
7378 apr_gethostbyname_is_thread_safe="yes"
7382 if test -z "$apr_gethostbyaddr_is_thread_safe"; then
7383 echo " setting apr_gethostbyaddr_is_thread_safe to \"yes\""
7384 apr_gethostbyaddr_is_thread_safe="yes"
7388 if test "x$CPPFLAGS" = "x"; then
7389 echo " setting CPPFLAGS to \"-U_NO_PROTO -DPTHREAD_ATTR_SETDETACHSTATE_ARG2_ADDR -DPTHREAD_SETS_ERRNO -DPTHREAD_DETACH_ARG1_ADDR -DSIGPROCMASK_SETS_THREAD_MASK -DTCP_NODELAY=1\""
7390 CPPFLAGS="-U_NO_PROTO -DPTHREAD_ATTR_SETDETACHSTATE_ARG2_ADDR -DPTHREAD_SETS_ERRNO -DPTHREAD_DETACH_ARG1_ADDR -DSIGPROCMASK_SETS_THREAD_MASK -DTCP_NODELAY=1"
7392 apr_addto_bugger="-U_NO_PROTO -DPTHREAD_ATTR_SETDETACHSTATE_ARG2_ADDR -DPTHREAD_SETS_ERRNO -DPTHREAD_DETACH_ARG1_ADDR -DSIGPROCMASK_SETS_THREAD_MASK -DTCP_NODELAY=1"
7393 for i in $apr_addto_bugger; do
7394 apr_addto_duplicate="0"
7395 for j in $CPPFLAGS; do
7396 if test "x$i" = "x$j"; then
7397 apr_addto_duplicate="1"
7401 if test $apr_addto_duplicate = "0"; then
7402 echo " adding \"$i\" to CPPFLAGS"
7403 CPPFLAGS="$CPPFLAGS $i"
7411 if test -z "$apr_lock_method"; then
7412 echo " setting apr_lock_method to \"USE_SYSVSEM_SERIALIZE\""
7413 apr_lock_method="USE_SYSVSEM_SERIALIZE"
7417 if test -z "$apr_process_lock_is_global"; then
7418 echo " setting apr_process_lock_is_global to \"yes\""
7419 apr_process_lock_is_global="yes"
7423 if test -z "$apr_gethostbyname_is_thread_safe"; then
7424 echo " setting apr_gethostbyname_is_thread_safe to \"yes\""
7425 apr_gethostbyname_is_thread_safe="yes"
7429 if test -z "$apr_gethostbyaddr_is_thread_safe"; then
7430 echo " setting apr_gethostbyaddr_is_thread_safe to \"yes\""
7431 apr_gethostbyaddr_is_thread_safe="yes"
7437 if test "x$CPPFLAGS" = "x"; then
7438 echo " setting CPPFLAGS to \"-DCYGWIN\""
7441 apr_addto_bugger="-DCYGWIN"
7442 for i in $apr_addto_bugger; do
7443 apr_addto_duplicate="0"
7444 for j in $CPPFLAGS; do
7445 if test "x$i" = "x$j"; then
7446 apr_addto_duplicate="1"
7450 if test $apr_addto_duplicate = "0"; then
7451 echo " adding \"$i\" to CPPFLAGS"
7452 CPPFLAGS="$CPPFLAGS $i"
7458 if test "x$LIBS" = "x"; then
7459 echo " setting LIBS to \"-lcrypt\""
7462 apr_addto_bugger="-lcrypt"
7463 for i in $apr_addto_bugger; do
7464 apr_addto_duplicate="0"
7466 if test "x$i" = "x$j"; then
7467 apr_addto_duplicate="1"
7471 if test $apr_addto_duplicate = "0"; then
7472 echo " adding \"$i\" to LIBS"
7484 DEFAULT_OSDIR="unix"
7485 echo "(Default will be ${DEFAULT_OSDIR})"
7487 apr_modules="file_io network_io threadproc misc locks time mmap shmem user memory atomic poll support"
7489 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7490 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7492 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7493 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
7494 $as_echo_n "(cached) " >&6
7496 cat >conftest.make <<\_ACEOF
7499 @echo '@@@%%%=$(MAKE)=@@@%%%'
7501 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7502 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7504 eval ac_cv_prog_make_${ac_make}_set=yes;;
7506 eval ac_cv_prog_make_${ac_make}_set=no;;
7510 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7511 { $as_echo "$as_me:$LINENO: result: yes" >&5
7512 $as_echo "yes" >&6; }
7515 { $as_echo "$as_me:$LINENO: result: no" >&5
7516 $as_echo "no" >&6; }
7517 SET_MAKE="MAKE=${MAKE-make}"
7521 ac_cpp='$CPP $CPPFLAGS'
7522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7525 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7526 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7527 # On Suns, sometimes $CPP names a directory.
7528 if test -n "$CPP" && test -d "$CPP"; then
7531 if test -z "$CPP"; then
7532 if test "${ac_cv_prog_CPP+set}" = set; then
7533 $as_echo_n "(cached) " >&6
7535 # Double quotes because CPP needs to be expanded
7536 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7539 for ac_c_preproc_warn_flag in '' yes
7541 # Use a header file that comes with gcc, so configuring glibc
7542 # with a fresh cross-compiler works.
7543 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7544 # <limits.h> exists even on freestanding compilers.
7545 # On the NeXT, cc -E runs the code through the compiler's parser,
7546 # not just through cpp. "Syntax error" is here to catch this case.
7547 cat >conftest.$ac_ext <<_ACEOF
7550 cat confdefs.h >>conftest.$ac_ext
7551 cat >>conftest.$ac_ext <<_ACEOF
7552 /* end confdefs.h. */
7554 # include <limits.h>
7556 # include <assert.h>
7560 if { (ac_try="$ac_cpp conftest.$ac_ext"
7562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7563 *) ac_try_echo=$ac_try;;
7565 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7566 $as_echo "$ac_try_echo") >&5
7567 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7569 grep -v '^ *+' conftest.er1 >conftest.err
7571 cat conftest.err >&5
7572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573 (exit $ac_status); } >/dev/null && {
7574 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7575 test ! -s conftest.err
7579 $as_echo "$as_me: failed program was:" >&5
7580 sed 's/^/| /' conftest.$ac_ext >&5
7582 # Broken: fails on valid input.
7586 rm -f conftest.err conftest.$ac_ext
7588 # OK, works on sane cases. Now check whether nonexistent headers
7589 # can be detected and how.
7590 cat >conftest.$ac_ext <<_ACEOF
7593 cat confdefs.h >>conftest.$ac_ext
7594 cat >>conftest.$ac_ext <<_ACEOF
7595 /* end confdefs.h. */
7596 #include <ac_nonexistent.h>
7598 if { (ac_try="$ac_cpp conftest.$ac_ext"
7600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7601 *) ac_try_echo=$ac_try;;
7603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7604 $as_echo "$ac_try_echo") >&5
7605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7607 grep -v '^ *+' conftest.er1 >conftest.err
7609 cat conftest.err >&5
7610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611 (exit $ac_status); } >/dev/null && {
7612 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7613 test ! -s conftest.err
7615 # Broken: success on invalid input.
7618 $as_echo "$as_me: failed program was:" >&5
7619 sed 's/^/| /' conftest.$ac_ext >&5
7621 # Passes both tests.
7626 rm -f conftest.err conftest.$ac_ext
7629 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7630 rm -f conftest.err conftest.$ac_ext
7631 if $ac_preproc_ok; then
7643 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
7644 $as_echo "$CPP" >&6; }
7646 for ac_c_preproc_warn_flag in '' yes
7648 # Use a header file that comes with gcc, so configuring glibc
7649 # with a fresh cross-compiler works.
7650 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7651 # <limits.h> exists even on freestanding compilers.
7652 # On the NeXT, cc -E runs the code through the compiler's parser,
7653 # not just through cpp. "Syntax error" is here to catch this case.
7654 cat >conftest.$ac_ext <<_ACEOF
7657 cat confdefs.h >>conftest.$ac_ext
7658 cat >>conftest.$ac_ext <<_ACEOF
7659 /* end confdefs.h. */
7661 # include <limits.h>
7663 # include <assert.h>
7667 if { (ac_try="$ac_cpp conftest.$ac_ext"
7669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7670 *) ac_try_echo=$ac_try;;
7672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7673 $as_echo "$ac_try_echo") >&5
7674 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7676 grep -v '^ *+' conftest.er1 >conftest.err
7678 cat conftest.err >&5
7679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680 (exit $ac_status); } >/dev/null && {
7681 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7682 test ! -s conftest.err
7686 $as_echo "$as_me: failed program was:" >&5
7687 sed 's/^/| /' conftest.$ac_ext >&5
7689 # Broken: fails on valid input.
7693 rm -f conftest.err conftest.$ac_ext
7695 # OK, works on sane cases. Now check whether nonexistent headers
7696 # can be detected and how.
7697 cat >conftest.$ac_ext <<_ACEOF
7700 cat confdefs.h >>conftest.$ac_ext
7701 cat >>conftest.$ac_ext <<_ACEOF
7702 /* end confdefs.h. */
7703 #include <ac_nonexistent.h>
7705 if { (ac_try="$ac_cpp conftest.$ac_ext"
7707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7708 *) ac_try_echo=$ac_try;;
7710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7711 $as_echo "$ac_try_echo") >&5
7712 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7714 grep -v '^ *+' conftest.er1 >conftest.err
7716 cat conftest.err >&5
7717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718 (exit $ac_status); } >/dev/null && {
7719 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7720 test ! -s conftest.err
7722 # Broken: success on invalid input.
7725 $as_echo "$as_me: failed program was:" >&5
7726 sed 's/^/| /' conftest.$ac_ext >&5
7728 # Passes both tests.
7733 rm -f conftest.err conftest.$ac_ext
7736 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7737 rm -f conftest.err conftest.$ac_ext
7738 if $ac_preproc_ok; then
7741 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7742 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7743 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7744 See \`config.log' for more details." >&5
7745 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7746 See \`config.log' for more details." >&2;}
7747 { (exit 1); exit 1; }; }; }
7751 ac_cpp='$CPP $CPPFLAGS'
7752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7756 for ac_prog in gawk mawk nawk awk
7758 # Extract the first word of "$ac_prog", so it can be a program name with args.
7759 set dummy $ac_prog; ac_word=$2
7760 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7761 $as_echo_n "checking for $ac_word... " >&6; }
7762 if test "${ac_cv_prog_AWK+set}" = set; then
7763 $as_echo_n "(cached) " >&6
7765 if test -n "$AWK"; then
7766 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7772 test -z "$as_dir" && as_dir=.
7773 for ac_exec_ext in '' $ac_executable_extensions; do
7774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7775 ac_cv_prog_AWK="$ac_prog"
7776 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7786 if test -n "$AWK"; then
7787 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
7788 $as_echo "$AWK" >&6; }
7790 { $as_echo "$as_me:$LINENO: result: no" >&5
7791 $as_echo "no" >&6; }
7795 test -n "$AWK" && break
7798 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
7799 $as_echo_n "checking whether ln -s works... " >&6; }
7801 if test "$LN_S" = "ln -s"; then
7802 { $as_echo "$as_me:$LINENO: result: yes" >&5
7803 $as_echo "yes" >&6; }
7805 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7806 $as_echo "no, using $LN_S" >&6; }
7809 if test -n "$ac_tool_prefix"; then
7810 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7811 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7812 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7813 $as_echo_n "checking for $ac_word... " >&6; }
7814 if test "${ac_cv_prog_RANLIB+set}" = set; then
7815 $as_echo_n "(cached) " >&6
7817 if test -n "$RANLIB"; then
7818 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7824 test -z "$as_dir" && as_dir=.
7825 for ac_exec_ext in '' $ac_executable_extensions; do
7826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7827 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7828 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7837 RANLIB=$ac_cv_prog_RANLIB
7838 if test -n "$RANLIB"; then
7839 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
7840 $as_echo "$RANLIB" >&6; }
7842 { $as_echo "$as_me:$LINENO: result: no" >&5
7843 $as_echo "no" >&6; }
7848 if test -z "$ac_cv_prog_RANLIB"; then
7849 ac_ct_RANLIB=$RANLIB
7850 # Extract the first word of "ranlib", so it can be a program name with args.
7851 set dummy ranlib; ac_word=$2
7852 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7853 $as_echo_n "checking for $ac_word... " >&6; }
7854 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7855 $as_echo_n "(cached) " >&6
7857 if test -n "$ac_ct_RANLIB"; then
7858 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7864 test -z "$as_dir" && as_dir=.
7865 for ac_exec_ext in '' $ac_executable_extensions; do
7866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7867 ac_cv_prog_ac_ct_RANLIB="ranlib"
7868 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7877 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7878 if test -n "$ac_ct_RANLIB"; then
7879 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7880 $as_echo "$ac_ct_RANLIB" >&6; }
7882 { $as_echo "$as_me:$LINENO: result: no" >&5
7883 $as_echo "no" >&6; }
7886 if test "x$ac_ct_RANLIB" = x; then
7889 case $cross_compiling:$ac_tool_warned in
7891 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7892 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7893 ac_tool_warned=yes ;;
7895 RANLIB=$ac_ct_RANLIB
7898 RANLIB="$ac_cv_prog_RANLIB"
7901 # Find a good install program. We prefer a C program (faster),
7902 # so one script is as good as another. But avoid the broken or
7903 # incompatible versions:
7904 # SysV /etc/install, /usr/sbin/install
7905 # SunOS /usr/etc/install
7906 # IRIX /sbin/install
7908 # AmigaOS /C/install, which installs bootblocks on floppy discs
7909 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7910 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7911 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7912 # OS/2's system install, which has a completely different semantic
7913 # ./install, which can be erroneously created by make from ./install.sh.
7914 # Reject install programs that cannot install multiple files.
7915 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7916 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7917 if test -z "$INSTALL"; then
7918 if test "${ac_cv_path_install+set}" = set; then
7919 $as_echo_n "(cached) " >&6
7921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7925 test -z "$as_dir" && as_dir=.
7926 # Account for people who put trailing slashes in PATH elements.
7928 ./ | .// | /cC/* | \
7929 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7930 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7933 # OSF1 and SCO ODT 3.0 have their own names for install.
7934 # Don't use installbsd from OSF since it installs stuff as root
7936 for ac_prog in ginstall scoinst install; do
7937 for ac_exec_ext in '' $ac_executable_extensions; do
7938 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7939 if test $ac_prog = install &&
7940 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7941 # AIX install. It has an incompatible calling convention.
7943 elif test $ac_prog = install &&
7944 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7945 # program-specific install script used by HP pwplus--don't use.
7948 rm -rf conftest.one conftest.two conftest.dir
7949 echo one > conftest.one
7950 echo two > conftest.two
7952 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
7953 test -s conftest.one && test -s conftest.two &&
7954 test -s conftest.dir/conftest.one &&
7955 test -s conftest.dir/conftest.two
7957 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7970 rm -rf conftest.one conftest.two conftest.dir
7973 if test "${ac_cv_path_install+set}" = set; then
7974 INSTALL=$ac_cv_path_install
7976 # As a last resort, use the slow shell script. Don't cache a
7977 # value for INSTALL within a source directory, because that will
7978 # break other packages using the cache if that directory is
7979 # removed, or if the value is a relative name.
7980 INSTALL=$ac_install_sh
7983 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
7984 $as_echo "$INSTALL" >&6; }
7986 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7987 # It thinks the first close brace ends the variable substitution.
7988 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7990 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7992 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7994 # Extract the first word of "rm", so it can be a program name with args.
7995 set dummy rm; ac_word=$2
7996 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7997 $as_echo_n "checking for $ac_word... " >&6; }
7998 if test "${ac_cv_prog_RM+set}" = set; then
7999 $as_echo_n "(cached) " >&6
8001 if test -n "$RM"; then
8002 ac_cv_prog_RM="$RM" # Let the user override the test.
8004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8008 test -z "$as_dir" && as_dir=.
8009 for ac_exec_ext in '' $ac_executable_extensions; do
8010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8012 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8022 if test -n "$RM"; then
8023 { $as_echo "$as_me:$LINENO: result: $RM" >&5
8024 $as_echo "$RM" >&6; }
8026 { $as_echo "$as_me:$LINENO: result: no" >&5
8027 $as_echo "no" >&6; }
8031 # Extract the first word of "as", so it can be a program name with args.
8032 set dummy as; ac_word=$2
8033 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8034 $as_echo_n "checking for $ac_word... " >&6; }
8035 if test "${ac_cv_prog_AS+set}" = set; then
8036 $as_echo_n "(cached) " >&6
8038 if test -n "$AS"; then
8039 ac_cv_prog_AS="$AS" # Let the user override the test.
8041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8045 test -z "$as_dir" && as_dir=.
8046 for ac_exec_ext in '' $ac_executable_extensions; do
8047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8049 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8059 if test -n "$AS"; then
8060 { $as_echo "$as_me:$LINENO: result: $AS" >&5
8061 $as_echo "$AS" >&6; }
8063 { $as_echo "$as_me:$LINENO: result: no" >&5
8064 $as_echo "no" >&6; }
8068 # Extract the first word of "cpp", so it can be a program name with args.
8069 set dummy cpp; ac_word=$2
8070 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8071 $as_echo_n "checking for $ac_word... " >&6; }
8072 if test "${ac_cv_prog_ASCPP+set}" = set; then
8073 $as_echo_n "(cached) " >&6
8075 if test -n "$ASCPP"; then
8076 ac_cv_prog_ASCPP="$ASCPP" # Let the user override the test.
8078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8082 test -z "$as_dir" && as_dir=.
8083 for ac_exec_ext in '' $ac_executable_extensions; do
8084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8085 ac_cv_prog_ASCPP="cpp"
8086 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8095 ASCPP=$ac_cv_prog_ASCPP
8096 if test -n "$ASCPP"; then
8097 { $as_echo "$as_me:$LINENO: result: $ASCPP" >&5
8098 $as_echo "$ASCPP" >&6; }
8100 { $as_echo "$as_me:$LINENO: result: no" >&5
8101 $as_echo "no" >&6; }
8105 if test -n "$ac_tool_prefix"; then
8106 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8107 set dummy ${ac_tool_prefix}ar; ac_word=$2
8108 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8109 $as_echo_n "checking for $ac_word... " >&6; }
8110 if test "${ac_cv_prog_AR+set}" = set; then
8111 $as_echo_n "(cached) " >&6
8113 if test -n "$AR"; then
8114 ac_cv_prog_AR="$AR" # Let the user override the test.
8116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8120 test -z "$as_dir" && as_dir=.
8121 for ac_exec_ext in '' $ac_executable_extensions; do
8122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8123 ac_cv_prog_AR="${ac_tool_prefix}ar"
8124 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8134 if test -n "$AR"; then
8135 { $as_echo "$as_me:$LINENO: result: $AR" >&5
8136 $as_echo "$AR" >&6; }
8138 { $as_echo "$as_me:$LINENO: result: no" >&5
8139 $as_echo "no" >&6; }
8144 if test -z "$ac_cv_prog_AR"; then
8146 # Extract the first word of "ar", so it can be a program name with args.
8147 set dummy ar; ac_word=$2
8148 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8149 $as_echo_n "checking for $ac_word... " >&6; }
8150 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8151 $as_echo_n "(cached) " >&6
8153 if test -n "$ac_ct_AR"; then
8154 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8160 test -z "$as_dir" && as_dir=.
8161 for ac_exec_ext in '' $ac_executable_extensions; do
8162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8163 ac_cv_prog_ac_ct_AR="ar"
8164 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8173 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8174 if test -n "$ac_ct_AR"; then
8175 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8176 $as_echo "$ac_ct_AR" >&6; }
8178 { $as_echo "$as_me:$LINENO: result: no" >&5
8179 $as_echo "no" >&6; }
8182 if test "x$ac_ct_AR" = x; then
8185 case $cross_compiling:$ac_tool_warned in
8187 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8188 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8189 ac_tool_warned=yes ;;
8201 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
8202 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
8203 if test "${ac_cv_path_GREP+set}" = set; then
8204 $as_echo_n "(cached) " >&6
8206 if test -z "$GREP"; then
8207 ac_path_GREP_found=false
8208 # Loop through the user's path and test for each of PROGNAME-LIST
8209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8210 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8213 test -z "$as_dir" && as_dir=.
8214 for ac_prog in grep ggrep; do
8215 for ac_exec_ext in '' $ac_executable_extensions; do
8216 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
8217 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
8218 # Check for GNU ac_path_GREP and select it if it is found.
8219 # Check for GNU $ac_path_GREP
8220 case `"$ac_path_GREP" --version 2>&1` in
8222 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
8225 $as_echo_n 0123456789 >"conftest.in"
8228 cat "conftest.in" "conftest.in" >"conftest.tmp"
8229 mv "conftest.tmp" "conftest.in"
8230 cp "conftest.in" "conftest.nl"
8231 $as_echo 'GREP' >> "conftest.nl"
8232 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8233 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8234 ac_count=`expr $ac_count + 1`
8235 if test $ac_count -gt ${ac_path_GREP_max-0}; then
8236 # Best one so far, save it but keep looking for a better one
8237 ac_cv_path_GREP="$ac_path_GREP"
8238 ac_path_GREP_max=$ac_count
8240 # 10*(2^10) chars as input seems more than enough
8241 test $ac_count -gt 10 && break
8243 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8246 $ac_path_GREP_found && break 3
8251 if test -z "$ac_cv_path_GREP"; then
8252 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8253 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8254 { (exit 1); exit 1; }; }
8257 ac_cv_path_GREP=$GREP
8261 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
8262 $as_echo "$ac_cv_path_GREP" >&6; }
8263 GREP="$ac_cv_path_GREP"
8266 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
8267 $as_echo_n "checking for egrep... " >&6; }
8268 if test "${ac_cv_path_EGREP+set}" = set; then
8269 $as_echo_n "(cached) " >&6
8271 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
8272 then ac_cv_path_EGREP="$GREP -E"
8274 if test -z "$EGREP"; then
8275 ac_path_EGREP_found=false
8276 # Loop through the user's path and test for each of PROGNAME-LIST
8277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8278 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8281 test -z "$as_dir" && as_dir=.
8282 for ac_prog in egrep; do
8283 for ac_exec_ext in '' $ac_executable_extensions; do
8284 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
8285 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
8286 # Check for GNU ac_path_EGREP and select it if it is found.
8287 # Check for GNU $ac_path_EGREP
8288 case `"$ac_path_EGREP" --version 2>&1` in
8290 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
8293 $as_echo_n 0123456789 >"conftest.in"
8296 cat "conftest.in" "conftest.in" >"conftest.tmp"
8297 mv "conftest.tmp" "conftest.in"
8298 cp "conftest.in" "conftest.nl"
8299 $as_echo 'EGREP' >> "conftest.nl"
8300 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8301 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8302 ac_count=`expr $ac_count + 1`
8303 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8304 # Best one so far, save it but keep looking for a better one
8305 ac_cv_path_EGREP="$ac_path_EGREP"
8306 ac_path_EGREP_max=$ac_count
8308 # 10*(2^10) chars as input seems more than enough
8309 test $ac_count -gt 10 && break
8311 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8314 $ac_path_EGREP_found && break 3
8319 if test -z "$ac_cv_path_EGREP"; then
8320 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8321 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8322 { (exit 1); exit 1; }; }
8325 ac_cv_path_EGREP=$EGREP
8330 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
8331 $as_echo "$ac_cv_path_EGREP" >&6; }
8332 EGREP="$ac_cv_path_EGREP"
8335 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8336 $as_echo_n "checking for ANSI C header files... " >&6; }
8337 if test "${ac_cv_header_stdc+set}" = set; then
8338 $as_echo_n "(cached) " >&6
8340 cat >conftest.$ac_ext <<_ACEOF
8343 cat confdefs.h >>conftest.$ac_ext
8344 cat >>conftest.$ac_ext <<_ACEOF
8345 /* end confdefs.h. */
8359 rm -f conftest.$ac_objext
8360 if { (ac_try="$ac_compile"
8362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8363 *) ac_try_echo=$ac_try;;
8365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8366 $as_echo "$ac_try_echo") >&5
8367 (eval "$ac_compile") 2>conftest.er1
8369 grep -v '^ *+' conftest.er1 >conftest.err
8371 cat conftest.err >&5
8372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); } && {
8374 test -z "$ac_c_werror_flag" ||
8375 test ! -s conftest.err
8376 } && test -s conftest.$ac_objext; then
8377 ac_cv_header_stdc=yes
8379 $as_echo "$as_me: failed program was:" >&5
8380 sed 's/^/| /' conftest.$ac_ext >&5
8382 ac_cv_header_stdc=no
8385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8387 if test $ac_cv_header_stdc = yes; then
8388 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8389 cat >conftest.$ac_ext <<_ACEOF
8392 cat confdefs.h >>conftest.$ac_ext
8393 cat >>conftest.$ac_ext <<_ACEOF
8394 /* end confdefs.h. */
8398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8399 $EGREP "memchr" >/dev/null 2>&1; then
8402 ac_cv_header_stdc=no
8408 if test $ac_cv_header_stdc = yes; then
8409 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8410 cat >conftest.$ac_ext <<_ACEOF
8413 cat confdefs.h >>conftest.$ac_ext
8414 cat >>conftest.$ac_ext <<_ACEOF
8415 /* end confdefs.h. */
8419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8420 $EGREP "free" >/dev/null 2>&1; then
8423 ac_cv_header_stdc=no
8429 if test $ac_cv_header_stdc = yes; then
8430 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8431 if test "$cross_compiling" = yes; then
8434 cat >conftest.$ac_ext <<_ACEOF
8437 cat confdefs.h >>conftest.$ac_ext
8438 cat >>conftest.$ac_ext <<_ACEOF
8439 /* end confdefs.h. */
8442 #if ((' ' & 0x0FF) == 0x020)
8443 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8444 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8446 # define ISLOWER(c) \
8447 (('a' <= (c) && (c) <= 'i') \
8448 || ('j' <= (c) && (c) <= 'r') \
8449 || ('s' <= (c) && (c) <= 'z'))
8450 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8453 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8458 for (i = 0; i < 256; i++)
8459 if (XOR (islower (i), ISLOWER (i))
8460 || toupper (i) != TOUPPER (i))
8465 rm -f conftest$ac_exeext
8466 if { (ac_try="$ac_link"
8468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8469 *) ac_try_echo=$ac_try;;
8471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8472 $as_echo "$ac_try_echo") >&5
8473 (eval "$ac_link") 2>&5
8475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8477 { (case "(($ac_try" in
8478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8479 *) ac_try_echo=$ac_try;;
8481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8482 $as_echo "$ac_try_echo") >&5
8483 (eval "$ac_try") 2>&5
8485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 (exit $ac_status); }; }; then
8489 $as_echo "$as_me: program exited with status $ac_status" >&5
8490 $as_echo "$as_me: failed program was:" >&5
8491 sed 's/^/| /' conftest.$ac_ext >&5
8494 ac_cv_header_stdc=no
8496 rm -rf conftest.dSYM
8497 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8503 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8504 $as_echo "$ac_cv_header_stdc" >&6; }
8505 if test $ac_cv_header_stdc = yes; then
8507 cat >>confdefs.h <<\_ACEOF
8508 #define STDC_HEADERS 1
8513 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8523 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8524 inttypes.h stdint.h unistd.h
8526 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8527 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8528 $as_echo_n "checking for $ac_header... " >&6; }
8529 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8530 $as_echo_n "(cached) " >&6
8532 cat >conftest.$ac_ext <<_ACEOF
8535 cat confdefs.h >>conftest.$ac_ext
8536 cat >>conftest.$ac_ext <<_ACEOF
8537 /* end confdefs.h. */
8538 $ac_includes_default
8540 #include <$ac_header>
8542 rm -f conftest.$ac_objext
8543 if { (ac_try="$ac_compile"
8545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8546 *) ac_try_echo=$ac_try;;
8548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8549 $as_echo "$ac_try_echo") >&5
8550 (eval "$ac_compile") 2>conftest.er1
8552 grep -v '^ *+' conftest.er1 >conftest.err
8554 cat conftest.err >&5
8555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); } && {
8557 test -z "$ac_c_werror_flag" ||
8558 test ! -s conftest.err
8559 } && test -s conftest.$ac_objext; then
8560 eval "$as_ac_Header=yes"
8562 $as_echo "$as_me: failed program was:" >&5
8563 sed 's/^/| /' conftest.$ac_ext >&5
8565 eval "$as_ac_Header=no"
8568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8570 ac_res=`eval 'as_val=${'$as_ac_Header'}
8571 $as_echo "$as_val"'`
8572 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8573 $as_echo "$ac_res" >&6; }
8574 as_val=`eval 'as_val=${'$as_ac_Header'}
8575 $as_echo "$as_val"'`
8576 if test "x$as_val" = x""yes; then
8577 cat >>confdefs.h <<_ACEOF
8578 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8587 if test "${ac_cv_header_minix_config_h+set}" = set; then
8588 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
8589 $as_echo_n "checking for minix/config.h... " >&6; }
8590 if test "${ac_cv_header_minix_config_h+set}" = set; then
8591 $as_echo_n "(cached) " >&6
8593 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
8594 $as_echo "$ac_cv_header_minix_config_h" >&6; }
8596 # Is the header compilable?
8597 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
8598 $as_echo_n "checking minix/config.h usability... " >&6; }
8599 cat >conftest.$ac_ext <<_ACEOF
8602 cat confdefs.h >>conftest.$ac_ext
8603 cat >>conftest.$ac_ext <<_ACEOF
8604 /* end confdefs.h. */
8605 $ac_includes_default
8606 #include <minix/config.h>
8608 rm -f conftest.$ac_objext
8609 if { (ac_try="$ac_compile"
8611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8612 *) ac_try_echo=$ac_try;;
8614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8615 $as_echo "$ac_try_echo") >&5
8616 (eval "$ac_compile") 2>conftest.er1
8618 grep -v '^ *+' conftest.er1 >conftest.err
8620 cat conftest.err >&5
8621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622 (exit $ac_status); } && {
8623 test -z "$ac_c_werror_flag" ||
8624 test ! -s conftest.err
8625 } && test -s conftest.$ac_objext; then
8626 ac_header_compiler=yes
8628 $as_echo "$as_me: failed program was:" >&5
8629 sed 's/^/| /' conftest.$ac_ext >&5
8631 ac_header_compiler=no
8634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8635 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8636 $as_echo "$ac_header_compiler" >&6; }
8638 # Is the header present?
8639 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
8640 $as_echo_n "checking minix/config.h presence... " >&6; }
8641 cat >conftest.$ac_ext <<_ACEOF
8644 cat confdefs.h >>conftest.$ac_ext
8645 cat >>conftest.$ac_ext <<_ACEOF
8646 /* end confdefs.h. */
8647 #include <minix/config.h>
8649 if { (ac_try="$ac_cpp conftest.$ac_ext"
8651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8652 *) ac_try_echo=$ac_try;;
8654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8655 $as_echo "$ac_try_echo") >&5
8656 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8658 grep -v '^ *+' conftest.er1 >conftest.err
8660 cat conftest.err >&5
8661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662 (exit $ac_status); } >/dev/null && {
8663 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8664 test ! -s conftest.err
8666 ac_header_preproc=yes
8668 $as_echo "$as_me: failed program was:" >&5
8669 sed 's/^/| /' conftest.$ac_ext >&5
8671 ac_header_preproc=no
8674 rm -f conftest.err conftest.$ac_ext
8675 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8676 $as_echo "$ac_header_preproc" >&6; }
8678 # So? What about this header?
8679 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8681 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
8682 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8683 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
8684 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
8685 ac_header_preproc=yes
8688 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
8689 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
8690 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
8691 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
8692 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
8693 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
8694 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
8695 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
8696 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
8697 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
8698 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
8699 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
8703 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
8704 $as_echo_n "checking for minix/config.h... " >&6; }
8705 if test "${ac_cv_header_minix_config_h+set}" = set; then
8706 $as_echo_n "(cached) " >&6
8708 ac_cv_header_minix_config_h=$ac_header_preproc
8710 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
8711 $as_echo "$ac_cv_header_minix_config_h" >&6; }
8714 if test "x$ac_cv_header_minix_config_h" = x""yes; then
8721 if test "$MINIX" = yes; then
8723 cat >>confdefs.h <<\_ACEOF
8724 #define _POSIX_SOURCE 1
8728 cat >>confdefs.h <<\_ACEOF
8729 #define _POSIX_1_SOURCE 2
8733 cat >>confdefs.h <<\_ACEOF
8741 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
8742 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
8743 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
8744 $as_echo_n "(cached) " >&6
8746 cat >conftest.$ac_ext <<_ACEOF
8749 cat confdefs.h >>conftest.$ac_ext
8750 cat >>conftest.$ac_ext <<_ACEOF
8751 /* end confdefs.h. */
8753 # define __EXTENSIONS__ 1
8754 $ac_includes_default
8763 rm -f conftest.$ac_objext
8764 if { (ac_try="$ac_compile"
8766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8767 *) ac_try_echo=$ac_try;;
8769 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8770 $as_echo "$ac_try_echo") >&5
8771 (eval "$ac_compile") 2>conftest.er1
8773 grep -v '^ *+' conftest.er1 >conftest.err
8775 cat conftest.err >&5
8776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777 (exit $ac_status); } && {
8778 test -z "$ac_c_werror_flag" ||
8779 test ! -s conftest.err
8780 } && test -s conftest.$ac_objext; then
8781 ac_cv_safe_to_define___extensions__=yes
8783 $as_echo "$as_me: failed program was:" >&5
8784 sed 's/^/| /' conftest.$ac_ext >&5
8786 ac_cv_safe_to_define___extensions__=no
8789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8791 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
8792 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
8793 test $ac_cv_safe_to_define___extensions__ = yes &&
8794 cat >>confdefs.h <<\_ACEOF
8795 #define __EXTENSIONS__ 1
8798 cat >>confdefs.h <<\_ACEOF
8799 #define _ALL_SOURCE 1
8802 cat >>confdefs.h <<\_ACEOF
8803 #define _GNU_SOURCE 1
8806 cat >>confdefs.h <<\_ACEOF
8807 #define _POSIX_PTHREAD_SEMANTICS 1
8810 cat >>confdefs.h <<\_ACEOF
8811 #define _TANDEM_SOURCE 1
8817 { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
8818 $as_echo_n "checking for library containing strerror... " >&6; }
8819 if test "${ac_cv_search_strerror+set}" = set; then
8820 $as_echo_n "(cached) " >&6
8822 ac_func_search_save_LIBS=$LIBS
8823 cat >conftest.$ac_ext <<_ACEOF
8826 cat confdefs.h >>conftest.$ac_ext
8827 cat >>conftest.$ac_ext <<_ACEOF
8828 /* end confdefs.h. */
8830 /* Override any GCC internal prototype to avoid an error.
8831 Use char because int might match the return type of a GCC
8832 builtin and then its argument prototype would still apply. */
8845 for ac_lib in '' cposix; do
8846 if test -z "$ac_lib"; then
8847 ac_res="none required"
8850 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8852 rm -f conftest.$ac_objext conftest$ac_exeext
8853 if { (ac_try="$ac_link"
8855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8856 *) ac_try_echo=$ac_try;;
8858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8859 $as_echo "$ac_try_echo") >&5
8860 (eval "$ac_link") 2>conftest.er1
8862 grep -v '^ *+' conftest.er1 >conftest.err
8864 cat conftest.err >&5
8865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866 (exit $ac_status); } && {
8867 test -z "$ac_c_werror_flag" ||
8868 test ! -s conftest.err
8869 } && test -s conftest$ac_exeext && {
8870 test "$cross_compiling" = yes ||
8871 $as_test_x conftest$ac_exeext
8873 ac_cv_search_strerror=$ac_res
8875 $as_echo "$as_me: failed program was:" >&5
8876 sed 's/^/| /' conftest.$ac_ext >&5
8881 rm -rf conftest.dSYM
8882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8884 if test "${ac_cv_search_strerror+set}" = set; then
8888 if test "${ac_cv_search_strerror+set}" = set; then
8891 ac_cv_search_strerror=no
8894 LIBS=$ac_func_search_save_LIBS
8896 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
8897 $as_echo "$ac_cv_search_strerror" >&6; }
8898 ac_res=$ac_cv_search_strerror
8899 if test "$ac_res" != no; then
8900 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8905 { $as_echo "$as_me:$LINENO: checking whether system uses EBCDIC" >&5
8906 $as_echo_n "checking whether system uses EBCDIC... " >&6; }
8907 if test "${ac_cv_ebcdic+set}" = set; then
8908 $as_echo_n "(cached) " >&6
8911 if test "$cross_compiling" = yes; then
8916 cat >conftest.$ac_ext <<_ACEOF
8919 cat confdefs.h >>conftest.$ac_ext
8920 cat >>conftest.$ac_ext <<_ACEOF
8921 /* end confdefs.h. */
8924 return (unsigned char)'A' != (unsigned char)0xC1;
8928 rm -f conftest$ac_exeext
8929 if { (ac_try="$ac_link"
8931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8932 *) ac_try_echo=$ac_try;;
8934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8935 $as_echo "$ac_try_echo") >&5
8936 (eval "$ac_link") 2>&5
8938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8940 { (case "(($ac_try" in
8941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8942 *) ac_try_echo=$ac_try;;
8944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8945 $as_echo "$ac_try_echo") >&5
8946 (eval "$ac_try") 2>&5
8948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); }; }; then
8954 $as_echo "$as_me: program exited with status $ac_status" >&5
8955 $as_echo "$as_me: failed program was:" >&5
8956 sed 's/^/| /' conftest.$ac_ext >&5
8963 rm -rf conftest.dSYM
8964 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8969 { $as_echo "$as_me:$LINENO: result: $ac_cv_ebcdic" >&5
8970 $as_echo "$ac_cv_ebcdic" >&6; }
8971 if test "$ac_cv_ebcdic" = "yes"; then
8972 apr_charset_ebcdic=1
8974 apr_charset_ebcdic=0
8979 APR_LIBNAME="apr${libsuffix}"
8982 echo "performing libtool configuration..."
8984 # Check whether --enable-experimental-libtool was given.
8985 if test "${enable_experimental_libtool+set}" = set; then
8986 enableval=$enable_experimental_libtool; experimental_libtool=$enableval
8988 experimental_libtool=no
8994 # Use a custom-made libtool replacement
8995 echo "using aplibtool"
8996 LIBTOOL="$srcdir/build/aplibtool"
8997 gcc $CFLAGS $CPPFLAGS -o $LIBTOOL.exe $LIBTOOL.c
9000 if test "x$LTFLAGS" = "x"; then
9003 if test "$experimental_libtool" = "yes"; then
9004 # Use a custom-made libtool replacement
9005 echo "using jlibtool"
9006 LIBTOOL="$apr_builddir/libtool"
9007 LIBTOOL_SRC="$apr_srcdir/build/jlibtool.c"
9008 if test ! -f $LIBTOOL_SRC; then
9009 { { $as_echo "$as_me:$LINENO: error: Experimental libtool source not found. It is not included with APR by default." >&5
9010 $as_echo "$as_me: error: Experimental libtool source not found. It is not included with APR by default." >&2;}
9011 { (exit 1); exit 1; }; }
9013 $CC $CFLAGS $CPPFLAGS -o $LIBTOOL $LIBTOOL_SRC
9015 # Check whether --enable-shared was given.
9016 if test "${enable_shared+set}" = set; then
9017 enableval=$enable_shared; p=${PACKAGE-default}
9019 yes) enable_shared=yes ;;
9020 no) enable_shared=no ;;
9023 # Look at the argument we got. We use all the common list separators.
9024 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9025 for pkg in $enableval; do
9027 if test "X$pkg" = "X$p"; then
9039 # Check whether --enable-static was given.
9040 if test "${enable_static+set}" = set; then
9041 enableval=$enable_static; p=${PACKAGE-default}
9043 yes) enable_static=yes ;;
9044 no) enable_static=no ;;
9047 # Look at the argument we got. We use all the common list separators.
9048 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9049 for pkg in $enableval; do
9051 if test "X$pkg" = "X$p"; then
9063 # Check whether --enable-fast-install was given.
9064 if test "${enable_fast_install+set}" = set; then
9065 enableval=$enable_fast_install; p=${PACKAGE-default}
9067 yes) enable_fast_install=yes ;;
9068 no) enable_fast_install=no ;;
9070 enable_fast_install=no
9071 # Look at the argument we got. We use all the common list separators.
9072 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9073 for pkg in $enableval; do
9075 if test "X$pkg" = "X$p"; then
9076 enable_fast_install=yes
9083 enable_fast_install=yes
9087 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9088 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
9089 if test "${lt_cv_path_SED+set}" = set; then
9090 $as_echo_n "(cached) " >&6
9092 # Loop through the user's path and test for sed and gsed.
9093 # Then use that list of sed's as ones to test for truncation.
9094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9098 test -z "$as_dir" && as_dir=.
9099 for lt_ac_prog in sed gsed; do
9100 for ac_exec_ext in '' $ac_executable_extensions; do
9101 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
9102 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9110 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
9111 # along with /bin/sed that truncates output.
9112 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9113 test ! -f $lt_ac_sed && continue
9114 cat /dev/null > conftest.in
9116 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9117 # Check for GNU sed and select it if it is found.
9118 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9119 lt_cv_path_SED=$lt_ac_sed
9123 cat conftest.in conftest.in >conftest.tmp
9124 mv conftest.tmp conftest.in
9125 cp conftest.in conftest.nl
9127 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9128 cmp -s conftest.out conftest.nl || break
9129 # 10000 chars as input seems more than enough
9130 test $lt_ac_count -gt 10 && break
9131 lt_ac_count=`expr $lt_ac_count + 1`
9132 if test $lt_ac_count -gt $lt_ac_max; then
9133 lt_ac_max=$lt_ac_count
9134 lt_cv_path_SED=$lt_ac_sed
9143 { $as_echo "$as_me:$LINENO: result: $SED" >&5
9144 $as_echo "$SED" >&6; }
9147 # Check whether --with-gnu-ld was given.
9148 if test "${with_gnu_ld+set}" = set; then
9149 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9155 if test "$GCC" = yes; then
9156 # Check if gcc -print-prog-name=ld gives a path.
9157 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9158 $as_echo_n "checking for ld used by $CC... " >&6; }
9161 # gcc leaves a trailing carriage return which upsets mingw
9162 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9164 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9167 # Accept absolute paths.
9169 re_direlt='/[^/][^/]*/\.\./'
9170 # Canonicalize the pathname of ld
9171 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9172 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9173 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9175 test -z "$LD" && LD="$ac_prog"
9178 # If it fails, then pretend we aren't using GCC.
9182 # If it is relative, then search for the first ld in PATH.
9186 elif test "$with_gnu_ld" = yes; then
9187 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
9188 $as_echo_n "checking for GNU ld... " >&6; }
9190 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9191 $as_echo_n "checking for non-GNU ld... " >&6; }
9193 if test "${lt_cv_path_LD+set}" = set; then
9194 $as_echo_n "(cached) " >&6
9196 if test -z "$LD"; then
9197 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9198 for ac_dir in $PATH; do
9200 test -z "$ac_dir" && ac_dir=.
9201 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9202 lt_cv_path_LD="$ac_dir/$ac_prog"
9203 # Check to see if the program is GNU ld. I'd rather use --version,
9204 # but apparently some variants of GNU ld only accept -v.
9205 # Break only if it was the GNU/non-GNU ld that we prefer.
9206 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9207 *GNU* | *'with BFD'*)
9208 test "$with_gnu_ld" != no && break
9211 test "$with_gnu_ld" != yes && break
9218 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9223 if test -n "$LD"; then
9224 { $as_echo "$as_me:$LINENO: result: $LD" >&5
9225 $as_echo "$LD" >&6; }
9227 { $as_echo "$as_me:$LINENO: result: no" >&5
9228 $as_echo "no" >&6; }
9230 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9231 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9232 { (exit 1); exit 1; }; }
9233 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9234 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9235 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9236 $as_echo_n "(cached) " >&6
9238 # I'd rather use --version here, but apparently some GNU lds only accept -v.
9239 case `$LD -v 2>&1 </dev/null` in
9240 *GNU* | *'with BFD'*)
9241 lt_cv_prog_gnu_ld=yes
9244 lt_cv_prog_gnu_ld=no
9248 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9249 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
9250 with_gnu_ld=$lt_cv_prog_gnu_ld
9253 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9254 $as_echo_n "checking for $LD option to reload object files... " >&6; }
9255 if test "${lt_cv_ld_reload_flag+set}" = set; then
9256 $as_echo_n "(cached) " >&6
9258 lt_cv_ld_reload_flag='-r'
9260 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9261 $as_echo "$lt_cv_ld_reload_flag" >&6; }
9262 reload_flag=$lt_cv_ld_reload_flag
9263 case $reload_flag in
9265 *) reload_flag=" $reload_flag" ;;
9267 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9270 if test "$GCC" = yes; then
9271 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9273 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9278 { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
9279 $as_echo_n "checking for BSD-compatible nm... " >&6; }
9280 if test "${lt_cv_path_NM+set}" = set; then
9281 $as_echo_n "(cached) " >&6
9283 if test -n "$NM"; then
9284 # Let the user override the test.
9287 lt_nm_to_check="${ac_tool_prefix}nm"
9288 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9289 lt_nm_to_check="$lt_nm_to_check nm"
9291 for lt_tmp_nm in $lt_nm_to_check; do
9292 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9293 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9295 test -z "$ac_dir" && ac_dir=.
9296 tmp_nm="$ac_dir/$lt_tmp_nm"
9297 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9298 # Check to see if the nm accepts a BSD-compat flag.
9299 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9300 # nm: unknown option "B" ignored
9301 # Tru64's nm complains that /dev/null is an invalid object file
9302 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9303 */dev/null* | *'Invalid file or object type'*)
9304 lt_cv_path_NM="$tmp_nm -B"
9308 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9310 lt_cv_path_NM="$tmp_nm -p"
9314 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9315 continue # so that we can try to find one that supports BSD flags
9324 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
9327 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
9328 $as_echo "$lt_cv_path_NM" >&6; }
9331 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
9332 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
9333 if test "${lt_cv_deplibs_check_method+set}" = set; then
9334 $as_echo_n "(cached) " >&6
9336 lt_cv_file_magic_cmd='$MAGIC_CMD'
9337 lt_cv_file_magic_test_file=
9338 lt_cv_deplibs_check_method='unknown'
9339 # Need to set the preceding variable on all platforms that support
9340 # interlibrary dependencies.
9341 # 'none' -- dependencies not supported.
9342 # `unknown' -- same as none, but documents that we really don't know.
9343 # 'pass_all' -- all dependencies passed with no checks.
9344 # 'test_compile' -- check by making test program.
9345 # 'file_magic [[regex]]' -- check by looking for files in library path
9346 # which responds to the $file_magic_cmd with a given extended regex.
9347 # If you have `file' or equivalent on your system and you're not sure
9348 # whether `pass_all' will *always* work, you probably want this one.
9352 lt_cv_deplibs_check_method=pass_all
9356 lt_cv_deplibs_check_method=pass_all
9360 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9361 lt_cv_file_magic_cmd='/usr/bin/file -L'
9362 lt_cv_file_magic_test_file=/shlib/libc.so
9366 # func_win32_libid is a shell function defined in ltmain.sh
9367 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9368 lt_cv_file_magic_cmd='func_win32_libid'
9372 # Base MSYS/MinGW do not provide the 'file' command needed by
9373 # func_win32_libid shell function, so use a weaker test based on 'objdump',
9374 # unless we find 'file', for example because we are cross-compiling.
9375 if ( file / ) >/dev/null 2>&1; then
9376 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9377 lt_cv_file_magic_cmd='func_win32_libid'
9379 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
9380 lt_cv_file_magic_cmd='$OBJDUMP -f'
9384 darwin* | rhapsody*)
9385 lt_cv_deplibs_check_method=pass_all
9388 freebsd* | dragonfly*)
9389 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
9392 # Not sure whether the presence of OpenBSD here was a mistake.
9393 # Let's accept both of them until this is cleared up.
9394 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9395 lt_cv_file_magic_cmd=/usr/bin/file
9396 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9400 lt_cv_deplibs_check_method=pass_all
9405 lt_cv_deplibs_check_method=pass_all
9408 hpux10.20* | hpux11*)
9409 lt_cv_file_magic_cmd=/usr/bin/file
9412 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9413 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9416 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]'
9417 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9420 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
9421 lt_cv_file_magic_test_file=/usr/lib/libc.sl
9427 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9428 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9431 irix5* | irix6* | nonstopux*)
9433 *-32|*"-32 ") libmagic=32-bit;;
9434 *-n32|*"-n32 ") libmagic=N32;;
9435 *-64|*"-64 ") libmagic=64-bit;;
9436 *) libmagic=never-match;;
9438 lt_cv_deplibs_check_method=pass_all
9441 # This must be Linux ELF.
9442 linux* | k*bsd*-gnu)
9443 lt_cv_deplibs_check_method=pass_all
9447 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
9448 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9450 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9455 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9456 lt_cv_file_magic_cmd=/usr/bin/file
9457 lt_cv_file_magic_test_file=/usr/lib/libnls.so
9461 lt_cv_deplibs_check_method=unknown
9465 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9466 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9468 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9472 osf3* | osf4* | osf5*)
9473 lt_cv_deplibs_check_method=pass_all
9477 lt_cv_deplibs_check_method=pass_all
9481 lt_cv_deplibs_check_method=pass_all
9485 case $host_vendor in
9487 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]'
9488 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9491 lt_cv_deplibs_check_method=pass_all
9494 lt_cv_file_magic_cmd='/bin/file'
9495 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9498 lt_cv_file_magic_cmd='/bin/file'
9499 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9500 lt_cv_file_magic_test_file=/lib/libc.so
9503 lt_cv_deplibs_check_method=pass_all
9506 lt_cv_deplibs_check_method=pass_all
9511 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9512 lt_cv_deplibs_check_method=pass_all
9517 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
9518 $as_echo "$lt_cv_deplibs_check_method" >&6; }
9519 file_magic_cmd=$lt_cv_file_magic_cmd
9520 deplibs_check_method=$lt_cv_deplibs_check_method
9521 test -z "$deplibs_check_method" && deplibs_check_method=unknown
9526 # If no C compiler was specified, use CC.
9529 # If no C compiler flags were specified, use CFLAGS.
9530 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9532 # Allow CC to be a program name with arguments.
9535 # Check whether --enable-libtool-lock was given.
9536 if test "${enable_libtool_lock+set}" = set; then
9537 enableval=$enable_libtool_lock;
9540 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9542 # Some flags need to be propagated to the compiler or linker for good
9546 # Find out which ABI we are using.
9547 echo 'int i;' > conftest.$ac_ext
9548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9549 (eval $ac_compile) 2>&5
9551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552 (exit $ac_status); }; then
9553 case `/usr/bin/file conftest.$ac_objext` in
9565 # Find out which ABI we are using.
9566 echo '#line 9566 "configure"' > conftest.$ac_ext
9567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9568 (eval $ac_compile) 2>&5
9570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571 (exit $ac_status); }; then
9572 if test "$lt_cv_prog_gnu_ld" = yes; then
9573 case `/usr/bin/file conftest.$ac_objext` in
9575 LD="${LD-ld} -melf32bsmip"
9578 LD="${LD-ld} -melf32bmipn32"
9581 LD="${LD-ld} -melf64bmip"
9585 case `/usr/bin/file conftest.$ac_objext` in
9601 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
9602 s390*-*linux*|sparc*-*linux*)
9603 # Find out which ABI we are using.
9604 echo 'int i;' > conftest.$ac_ext
9605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9606 (eval $ac_compile) 2>&5
9608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609 (exit $ac_status); }; then
9610 case `/usr/bin/file conftest.o` in
9613 x86_64-*kfreebsd*-gnu)
9614 LD="${LD-ld} -m elf_i386_fbsd"
9617 LD="${LD-ld} -m elf_i386"
9619 ppc64-*linux*|powerpc64-*linux*)
9620 LD="${LD-ld} -m elf32ppclinux"
9623 LD="${LD-ld} -m elf_s390"
9626 LD="${LD-ld} -m elf32_sparc"
9633 x86_64-*kfreebsd*-gnu)
9634 LD="${LD-ld} -m elf_x86_64_fbsd"
9637 LD="${LD-ld} -m elf_x86_64"
9639 ppc*-*linux*|powerpc*-*linux*)
9640 LD="${LD-ld} -m elf64ppc"
9643 LD="${LD-ld} -m elf64_s390"
9646 LD="${LD-ld} -m elf64_sparc"
9656 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9657 SAVE_CFLAGS="$CFLAGS"
9658 CFLAGS="$CFLAGS -belf"
9659 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
9660 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9661 if test "${lt_cv_cc_needs_belf+set}" = set; then
9662 $as_echo_n "(cached) " >&6
9665 ac_cpp='$CPP $CPPFLAGS'
9666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9670 cat >conftest.$ac_ext <<_ACEOF
9673 cat confdefs.h >>conftest.$ac_ext
9674 cat >>conftest.$ac_ext <<_ACEOF
9675 /* end confdefs.h. */
9685 rm -f conftest.$ac_objext conftest$ac_exeext
9686 if { (ac_try="$ac_link"
9688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9689 *) ac_try_echo=$ac_try;;
9691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9692 $as_echo "$ac_try_echo") >&5
9693 (eval "$ac_link") 2>conftest.er1
9695 grep -v '^ *+' conftest.er1 >conftest.err
9697 cat conftest.err >&5
9698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699 (exit $ac_status); } && {
9700 test -z "$ac_c_werror_flag" ||
9701 test ! -s conftest.err
9702 } && test -s conftest$ac_exeext && {
9703 test "$cross_compiling" = yes ||
9704 $as_test_x conftest$ac_exeext
9706 lt_cv_cc_needs_belf=yes
9708 $as_echo "$as_me: failed program was:" >&5
9709 sed 's/^/| /' conftest.$ac_ext >&5
9711 lt_cv_cc_needs_belf=no
9714 rm -rf conftest.dSYM
9715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9716 conftest$ac_exeext conftest.$ac_ext
9718 ac_cpp='$CPP $CPPFLAGS'
9719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9724 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
9725 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9726 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9727 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9728 CFLAGS="$SAVE_CFLAGS"
9732 # Find out which ABI we are using.
9733 echo 'int i;' > conftest.$ac_ext
9734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9735 (eval $ac_compile) 2>&5
9737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738 (exit $ac_status); }; then
9739 case `/usr/bin/file conftest.o` in
9741 case $lt_cv_prog_gnu_ld in
9742 yes*) LD="${LD-ld} -m elf64_sparc" ;;
9744 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9758 need_locks="$enable_libtool_lock"
9762 for ac_header in dlfcn.h
9764 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9766 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9767 $as_echo_n "checking for $ac_header... " >&6; }
9768 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9769 $as_echo_n "(cached) " >&6
9771 ac_res=`eval 'as_val=${'$as_ac_Header'}
9772 $as_echo "$as_val"'`
9773 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9774 $as_echo "$ac_res" >&6; }
9776 # Is the header compilable?
9777 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9778 $as_echo_n "checking $ac_header usability... " >&6; }
9779 cat >conftest.$ac_ext <<_ACEOF
9782 cat confdefs.h >>conftest.$ac_ext
9783 cat >>conftest.$ac_ext <<_ACEOF
9784 /* end confdefs.h. */
9785 $ac_includes_default
9786 #include <$ac_header>
9788 rm -f conftest.$ac_objext
9789 if { (ac_try="$ac_compile"
9791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9792 *) ac_try_echo=$ac_try;;
9794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9795 $as_echo "$ac_try_echo") >&5
9796 (eval "$ac_compile") 2>conftest.er1
9798 grep -v '^ *+' conftest.er1 >conftest.err
9800 cat conftest.err >&5
9801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); } && {
9803 test -z "$ac_c_werror_flag" ||
9804 test ! -s conftest.err
9805 } && test -s conftest.$ac_objext; then
9806 ac_header_compiler=yes
9808 $as_echo "$as_me: failed program was:" >&5
9809 sed 's/^/| /' conftest.$ac_ext >&5
9811 ac_header_compiler=no
9814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9815 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9816 $as_echo "$ac_header_compiler" >&6; }
9818 # Is the header present?
9819 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9820 $as_echo_n "checking $ac_header presence... " >&6; }
9821 cat >conftest.$ac_ext <<_ACEOF
9824 cat confdefs.h >>conftest.$ac_ext
9825 cat >>conftest.$ac_ext <<_ACEOF
9826 /* end confdefs.h. */
9827 #include <$ac_header>
9829 if { (ac_try="$ac_cpp conftest.$ac_ext"
9831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9832 *) ac_try_echo=$ac_try;;
9834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9835 $as_echo "$ac_try_echo") >&5
9836 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9838 grep -v '^ *+' conftest.er1 >conftest.err
9840 cat conftest.err >&5
9841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842 (exit $ac_status); } >/dev/null && {
9843 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9844 test ! -s conftest.err
9846 ac_header_preproc=yes
9848 $as_echo "$as_me: failed program was:" >&5
9849 sed 's/^/| /' conftest.$ac_ext >&5
9851 ac_header_preproc=no
9854 rm -f conftest.err conftest.$ac_ext
9855 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9856 $as_echo "$ac_header_preproc" >&6; }
9858 # So? What about this header?
9859 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9861 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9862 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9863 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9864 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9865 ac_header_preproc=yes
9868 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9869 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9870 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9871 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9872 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9873 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9874 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9875 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9876 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9877 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9878 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9879 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9883 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9884 $as_echo_n "checking for $ac_header... " >&6; }
9885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9886 $as_echo_n "(cached) " >&6
9888 eval "$as_ac_Header=\$ac_header_preproc"
9890 ac_res=`eval 'as_val=${'$as_ac_Header'}
9891 $as_echo "$as_val"'`
9892 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9893 $as_echo "$ac_res" >&6; }
9896 as_val=`eval 'as_val=${'$as_ac_Header'}
9897 $as_echo "$as_val"'`
9898 if test "x$as_val" = x""yes; then
9899 cat >>confdefs.h <<_ACEOF
9900 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9908 ac_cpp='$CXXCPP $CPPFLAGS'
9909 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9910 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9911 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9912 if test -z "$CXX"; then
9913 if test -n "$CCC"; then
9916 if test -n "$ac_tool_prefix"; then
9917 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9919 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9920 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9921 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9922 $as_echo_n "checking for $ac_word... " >&6; }
9923 if test "${ac_cv_prog_CXX+set}" = set; then
9924 $as_echo_n "(cached) " >&6
9926 if test -n "$CXX"; then
9927 ac_cv_prog_CXX="$CXX" # Let the user override the test.
9929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9933 test -z "$as_dir" && as_dir=.
9934 for ac_exec_ext in '' $ac_executable_extensions; do
9935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9936 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
9937 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9947 if test -n "$CXX"; then
9948 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
9949 $as_echo "$CXX" >&6; }
9951 { $as_echo "$as_me:$LINENO: result: no" >&5
9952 $as_echo "no" >&6; }
9956 test -n "$CXX" && break
9959 if test -z "$CXX"; then
9961 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9963 # Extract the first word of "$ac_prog", so it can be a program name with args.
9964 set dummy $ac_prog; ac_word=$2
9965 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9966 $as_echo_n "checking for $ac_word... " >&6; }
9967 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
9968 $as_echo_n "(cached) " >&6
9970 if test -n "$ac_ct_CXX"; then
9971 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
9973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9977 test -z "$as_dir" && as_dir=.
9978 for ac_exec_ext in '' $ac_executable_extensions; do
9979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9980 ac_cv_prog_ac_ct_CXX="$ac_prog"
9981 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9990 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
9991 if test -n "$ac_ct_CXX"; then
9992 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
9993 $as_echo "$ac_ct_CXX" >&6; }
9995 { $as_echo "$as_me:$LINENO: result: no" >&5
9996 $as_echo "no" >&6; }
10000 test -n "$ac_ct_CXX" && break
10003 if test "x$ac_ct_CXX" = x; then
10006 case $cross_compiling:$ac_tool_warned in
10008 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10009 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10010 ac_tool_warned=yes ;;
10018 # Provide some information about the compiler.
10019 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
10022 { (ac_try="$ac_compiler --version >&5"
10023 case "(($ac_try" in
10024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10025 *) ac_try_echo=$ac_try;;
10027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10028 $as_echo "$ac_try_echo") >&5
10029 (eval "$ac_compiler --version >&5") 2>&5
10031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); }
10033 { (ac_try="$ac_compiler -v >&5"
10034 case "(($ac_try" in
10035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10036 *) ac_try_echo=$ac_try;;
10038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10039 $as_echo "$ac_try_echo") >&5
10040 (eval "$ac_compiler -v >&5") 2>&5
10042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043 (exit $ac_status); }
10044 { (ac_try="$ac_compiler -V >&5"
10045 case "(($ac_try" in
10046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10047 *) ac_try_echo=$ac_try;;
10049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10050 $as_echo "$ac_try_echo") >&5
10051 (eval "$ac_compiler -V >&5") 2>&5
10053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054 (exit $ac_status); }
10056 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
10057 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
10058 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
10059 $as_echo_n "(cached) " >&6
10061 cat >conftest.$ac_ext <<_ACEOF
10064 cat confdefs.h >>conftest.$ac_ext
10065 cat >>conftest.$ac_ext <<_ACEOF
10066 /* end confdefs.h. */
10079 rm -f conftest.$ac_objext
10080 if { (ac_try="$ac_compile"
10081 case "(($ac_try" in
10082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10083 *) ac_try_echo=$ac_try;;
10085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10086 $as_echo "$ac_try_echo") >&5
10087 (eval "$ac_compile") 2>conftest.er1
10089 grep -v '^ *+' conftest.er1 >conftest.err
10091 cat conftest.err >&5
10092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093 (exit $ac_status); } && {
10094 test -z "$ac_cxx_werror_flag" ||
10095 test ! -s conftest.err
10096 } && test -s conftest.$ac_objext; then
10097 ac_compiler_gnu=yes
10099 $as_echo "$as_me: failed program was:" >&5
10100 sed 's/^/| /' conftest.$ac_ext >&5
10105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10106 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10109 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
10110 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
10111 if test $ac_compiler_gnu = yes; then
10116 ac_test_CXXFLAGS=${CXXFLAGS+set}
10117 ac_save_CXXFLAGS=$CXXFLAGS
10118 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
10119 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
10120 if test "${ac_cv_prog_cxx_g+set}" = set; then
10121 $as_echo_n "(cached) " >&6
10123 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
10124 ac_cxx_werror_flag=yes
10125 ac_cv_prog_cxx_g=no
10127 cat >conftest.$ac_ext <<_ACEOF
10130 cat confdefs.h >>conftest.$ac_ext
10131 cat >>conftest.$ac_ext <<_ACEOF
10132 /* end confdefs.h. */
10142 rm -f conftest.$ac_objext
10143 if { (ac_try="$ac_compile"
10144 case "(($ac_try" in
10145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10146 *) ac_try_echo=$ac_try;;
10148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10149 $as_echo "$ac_try_echo") >&5
10150 (eval "$ac_compile") 2>conftest.er1
10152 grep -v '^ *+' conftest.er1 >conftest.err
10154 cat conftest.err >&5
10155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); } && {
10157 test -z "$ac_cxx_werror_flag" ||
10158 test ! -s conftest.err
10159 } && test -s conftest.$ac_objext; then
10160 ac_cv_prog_cxx_g=yes
10162 $as_echo "$as_me: failed program was:" >&5
10163 sed 's/^/| /' conftest.$ac_ext >&5
10166 cat >conftest.$ac_ext <<_ACEOF
10169 cat confdefs.h >>conftest.$ac_ext
10170 cat >>conftest.$ac_ext <<_ACEOF
10171 /* end confdefs.h. */
10181 rm -f conftest.$ac_objext
10182 if { (ac_try="$ac_compile"
10183 case "(($ac_try" in
10184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10185 *) ac_try_echo=$ac_try;;
10187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10188 $as_echo "$ac_try_echo") >&5
10189 (eval "$ac_compile") 2>conftest.er1
10191 grep -v '^ *+' conftest.er1 >conftest.err
10193 cat conftest.err >&5
10194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195 (exit $ac_status); } && {
10196 test -z "$ac_cxx_werror_flag" ||
10197 test ! -s conftest.err
10198 } && test -s conftest.$ac_objext; then
10201 $as_echo "$as_me: failed program was:" >&5
10202 sed 's/^/| /' conftest.$ac_ext >&5
10204 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10206 cat >conftest.$ac_ext <<_ACEOF
10209 cat confdefs.h >>conftest.$ac_ext
10210 cat >>conftest.$ac_ext <<_ACEOF
10211 /* end confdefs.h. */
10221 rm -f conftest.$ac_objext
10222 if { (ac_try="$ac_compile"
10223 case "(($ac_try" in
10224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10225 *) ac_try_echo=$ac_try;;
10227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10228 $as_echo "$ac_try_echo") >&5
10229 (eval "$ac_compile") 2>conftest.er1
10231 grep -v '^ *+' conftest.er1 >conftest.err
10233 cat conftest.err >&5
10234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235 (exit $ac_status); } && {
10236 test -z "$ac_cxx_werror_flag" ||
10237 test ! -s conftest.err
10238 } && test -s conftest.$ac_objext; then
10239 ac_cv_prog_cxx_g=yes
10241 $as_echo "$as_me: failed program was:" >&5
10242 sed 's/^/| /' conftest.$ac_ext >&5
10247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10254 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10256 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
10257 $as_echo "$ac_cv_prog_cxx_g" >&6; }
10258 if test "$ac_test_CXXFLAGS" = set; then
10259 CXXFLAGS=$ac_save_CXXFLAGS
10260 elif test $ac_cv_prog_cxx_g = yes; then
10261 if test "$GXX" = yes; then
10267 if test "$GXX" = yes; then
10274 ac_cpp='$CXXCPP $CPPFLAGS'
10275 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10276 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10277 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10281 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10282 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10283 (test "X$CXX" != "Xg++"))) ; then
10285 ac_cpp='$CXXCPP $CPPFLAGS'
10286 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10287 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10288 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10289 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10290 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
10291 if test -z "$CXXCPP"; then
10292 if test "${ac_cv_prog_CXXCPP+set}" = set; then
10293 $as_echo_n "(cached) " >&6
10295 # Double quotes because CXXCPP needs to be expanded
10296 for CXXCPP in "$CXX -E" "/lib/cpp"
10298 ac_preproc_ok=false
10299 for ac_cxx_preproc_warn_flag in '' yes
10301 # Use a header file that comes with gcc, so configuring glibc
10302 # with a fresh cross-compiler works.
10303 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10304 # <limits.h> exists even on freestanding compilers.
10305 # On the NeXT, cc -E runs the code through the compiler's parser,
10306 # not just through cpp. "Syntax error" is here to catch this case.
10307 cat >conftest.$ac_ext <<_ACEOF
10310 cat confdefs.h >>conftest.$ac_ext
10311 cat >>conftest.$ac_ext <<_ACEOF
10312 /* end confdefs.h. */
10314 # include <limits.h>
10316 # include <assert.h>
10320 if { (ac_try="$ac_cpp conftest.$ac_ext"
10321 case "(($ac_try" in
10322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10323 *) ac_try_echo=$ac_try;;
10325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10326 $as_echo "$ac_try_echo") >&5
10327 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10329 grep -v '^ *+' conftest.er1 >conftest.err
10331 cat conftest.err >&5
10332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); } >/dev/null && {
10334 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10335 test ! -s conftest.err
10339 $as_echo "$as_me: failed program was:" >&5
10340 sed 's/^/| /' conftest.$ac_ext >&5
10342 # Broken: fails on valid input.
10346 rm -f conftest.err conftest.$ac_ext
10348 # OK, works on sane cases. Now check whether nonexistent headers
10349 # can be detected and how.
10350 cat >conftest.$ac_ext <<_ACEOF
10353 cat confdefs.h >>conftest.$ac_ext
10354 cat >>conftest.$ac_ext <<_ACEOF
10355 /* end confdefs.h. */
10356 #include <ac_nonexistent.h>
10358 if { (ac_try="$ac_cpp conftest.$ac_ext"
10359 case "(($ac_try" in
10360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10361 *) ac_try_echo=$ac_try;;
10363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10364 $as_echo "$ac_try_echo") >&5
10365 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10367 grep -v '^ *+' conftest.er1 >conftest.err
10369 cat conftest.err >&5
10370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371 (exit $ac_status); } >/dev/null && {
10372 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10373 test ! -s conftest.err
10375 # Broken: success on invalid input.
10378 $as_echo "$as_me: failed program was:" >&5
10379 sed 's/^/| /' conftest.$ac_ext >&5
10381 # Passes both tests.
10386 rm -f conftest.err conftest.$ac_ext
10389 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10390 rm -f conftest.err conftest.$ac_ext
10391 if $ac_preproc_ok; then
10396 ac_cv_prog_CXXCPP=$CXXCPP
10399 CXXCPP=$ac_cv_prog_CXXCPP
10401 ac_cv_prog_CXXCPP=$CXXCPP
10403 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
10404 $as_echo "$CXXCPP" >&6; }
10405 ac_preproc_ok=false
10406 for ac_cxx_preproc_warn_flag in '' yes
10408 # Use a header file that comes with gcc, so configuring glibc
10409 # with a fresh cross-compiler works.
10410 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10411 # <limits.h> exists even on freestanding compilers.
10412 # On the NeXT, cc -E runs the code through the compiler's parser,
10413 # not just through cpp. "Syntax error" is here to catch this case.
10414 cat >conftest.$ac_ext <<_ACEOF
10417 cat confdefs.h >>conftest.$ac_ext
10418 cat >>conftest.$ac_ext <<_ACEOF
10419 /* end confdefs.h. */
10421 # include <limits.h>
10423 # include <assert.h>
10427 if { (ac_try="$ac_cpp conftest.$ac_ext"
10428 case "(($ac_try" in
10429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10430 *) ac_try_echo=$ac_try;;
10432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10433 $as_echo "$ac_try_echo") >&5
10434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10436 grep -v '^ *+' conftest.er1 >conftest.err
10438 cat conftest.err >&5
10439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440 (exit $ac_status); } >/dev/null && {
10441 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10442 test ! -s conftest.err
10446 $as_echo "$as_me: failed program was:" >&5
10447 sed 's/^/| /' conftest.$ac_ext >&5
10449 # Broken: fails on valid input.
10453 rm -f conftest.err conftest.$ac_ext
10455 # OK, works on sane cases. Now check whether nonexistent headers
10456 # can be detected and how.
10457 cat >conftest.$ac_ext <<_ACEOF
10460 cat confdefs.h >>conftest.$ac_ext
10461 cat >>conftest.$ac_ext <<_ACEOF
10462 /* end confdefs.h. */
10463 #include <ac_nonexistent.h>
10465 if { (ac_try="$ac_cpp conftest.$ac_ext"
10466 case "(($ac_try" in
10467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10468 *) ac_try_echo=$ac_try;;
10470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10471 $as_echo "$ac_try_echo") >&5
10472 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10474 grep -v '^ *+' conftest.er1 >conftest.err
10476 cat conftest.err >&5
10477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478 (exit $ac_status); } >/dev/null && {
10479 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10480 test ! -s conftest.err
10482 # Broken: success on invalid input.
10485 $as_echo "$as_me: failed program was:" >&5
10486 sed 's/^/| /' conftest.$ac_ext >&5
10488 # Passes both tests.
10493 rm -f conftest.err conftest.$ac_ext
10496 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10497 rm -f conftest.err conftest.$ac_ext
10498 if $ac_preproc_ok; then
10501 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10502 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10503 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10504 See \`config.log' for more details." >&5
10505 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10506 See \`config.log' for more details." >&2;}
10507 { (exit 1); exit 1; }; }; }
10511 ac_cpp='$CXXCPP $CPPFLAGS'
10512 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10513 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10514 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10520 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10521 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10522 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10523 if test -n "$ac_tool_prefix"; then
10524 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
10526 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10527 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10528 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10529 $as_echo_n "checking for $ac_word... " >&6; }
10530 if test "${ac_cv_prog_F77+set}" = set; then
10531 $as_echo_n "(cached) " >&6
10533 if test -n "$F77"; then
10534 ac_cv_prog_F77="$F77" # Let the user override the test.
10536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10537 for as_dir in $PATH
10540 test -z "$as_dir" && as_dir=.
10541 for ac_exec_ext in '' $ac_executable_extensions; do
10542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10543 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10544 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10553 F77=$ac_cv_prog_F77
10554 if test -n "$F77"; then
10555 { $as_echo "$as_me:$LINENO: result: $F77" >&5
10556 $as_echo "$F77" >&6; }
10558 { $as_echo "$as_me:$LINENO: result: no" >&5
10559 $as_echo "no" >&6; }
10563 test -n "$F77" && break
10566 if test -z "$F77"; then
10568 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
10570 # Extract the first word of "$ac_prog", so it can be a program name with args.
10571 set dummy $ac_prog; ac_word=$2
10572 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10573 $as_echo_n "checking for $ac_word... " >&6; }
10574 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10575 $as_echo_n "(cached) " >&6
10577 if test -n "$ac_ct_F77"; then
10578 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10581 for as_dir in $PATH
10584 test -z "$as_dir" && as_dir=.
10585 for ac_exec_ext in '' $ac_executable_extensions; do
10586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10587 ac_cv_prog_ac_ct_F77="$ac_prog"
10588 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10597 ac_ct_F77=$ac_cv_prog_ac_ct_F77
10598 if test -n "$ac_ct_F77"; then
10599 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10600 $as_echo "$ac_ct_F77" >&6; }
10602 { $as_echo "$as_me:$LINENO: result: no" >&5
10603 $as_echo "no" >&6; }
10607 test -n "$ac_ct_F77" && break
10610 if test "x$ac_ct_F77" = x; then
10613 case $cross_compiling:$ac_tool_warned in
10615 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10617 ac_tool_warned=yes ;;
10624 # Provide some information about the compiler.
10625 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
10628 { (ac_try="$ac_compiler --version >&5"
10629 case "(($ac_try" in
10630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10631 *) ac_try_echo=$ac_try;;
10633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10634 $as_echo "$ac_try_echo") >&5
10635 (eval "$ac_compiler --version >&5") 2>&5
10637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638 (exit $ac_status); }
10639 { (ac_try="$ac_compiler -v >&5"
10640 case "(($ac_try" in
10641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10642 *) ac_try_echo=$ac_try;;
10644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10645 $as_echo "$ac_try_echo") >&5
10646 (eval "$ac_compiler -v >&5") 2>&5
10648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649 (exit $ac_status); }
10650 { (ac_try="$ac_compiler -V >&5"
10651 case "(($ac_try" in
10652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10653 *) ac_try_echo=$ac_try;;
10655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10656 $as_echo "$ac_try_echo") >&5
10657 (eval "$ac_compiler -V >&5") 2>&5
10659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660 (exit $ac_status); }
10663 # If we don't use `.F' as extension, the preprocessor is not run on the
10664 # input file. (Note that this only needs to work for GNU compilers.)
10665 ac_save_ext=$ac_ext
10667 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10668 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
10669 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10670 $as_echo_n "(cached) " >&6
10672 cat >conftest.$ac_ext <<_ACEOF
10680 rm -f conftest.$ac_objext
10681 if { (ac_try="$ac_compile"
10682 case "(($ac_try" in
10683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10684 *) ac_try_echo=$ac_try;;
10686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10687 $as_echo "$ac_try_echo") >&5
10688 (eval "$ac_compile") 2>conftest.er1
10690 grep -v '^ *+' conftest.er1 >conftest.err
10692 cat conftest.err >&5
10693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694 (exit $ac_status); } && {
10695 test -z "$ac_f77_werror_flag" ||
10696 test ! -s conftest.err
10697 } && test -s conftest.$ac_objext; then
10698 ac_compiler_gnu=yes
10700 $as_echo "$as_me: failed program was:" >&5
10701 sed 's/^/| /' conftest.$ac_ext >&5
10706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10707 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10710 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10711 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
10712 ac_ext=$ac_save_ext
10713 ac_test_FFLAGS=${FFLAGS+set}
10714 ac_save_FFLAGS=$FFLAGS
10716 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10717 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
10718 if test "${ac_cv_prog_f77_g+set}" = set; then
10719 $as_echo_n "(cached) " >&6
10722 cat >conftest.$ac_ext <<_ACEOF
10727 rm -f conftest.$ac_objext
10728 if { (ac_try="$ac_compile"
10729 case "(($ac_try" in
10730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10731 *) ac_try_echo=$ac_try;;
10733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10734 $as_echo "$ac_try_echo") >&5
10735 (eval "$ac_compile") 2>conftest.er1
10737 grep -v '^ *+' conftest.er1 >conftest.err
10739 cat conftest.err >&5
10740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); } && {
10742 test -z "$ac_f77_werror_flag" ||
10743 test ! -s conftest.err
10744 } && test -s conftest.$ac_objext; then
10745 ac_cv_prog_f77_g=yes
10747 $as_echo "$as_me: failed program was:" >&5
10748 sed 's/^/| /' conftest.$ac_ext >&5
10750 ac_cv_prog_f77_g=no
10753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10756 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10757 $as_echo "$ac_cv_prog_f77_g" >&6; }
10758 if test "$ac_test_FFLAGS" = set; then
10759 FFLAGS=$ac_save_FFLAGS
10760 elif test $ac_cv_prog_f77_g = yes; then
10761 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10767 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10774 if test $ac_compiler_gnu = yes; then
10780 ac_cpp='$CPP $CPPFLAGS'
10781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10787 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10788 # find the maximum length of command line arguments
10789 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10790 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
10791 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10792 $as_echo_n "(cached) " >&6
10799 # On DJGPP, this test can blow up pretty badly due to problems in libc
10800 # (any single argument exceeding 2000 bytes causes a buffer overrun
10801 # during glob expansion). Even if it were fixed, the result of this
10802 # check would be larger than it should be.
10803 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10807 # Under GNU Hurd, this test is not required because there is
10808 # no limit to the length of command line arguments.
10809 # Libtool will interpret -1 as no limit whatsoever
10810 lt_cv_sys_max_cmd_len=-1;
10814 # On Win9x/ME, this test blows up -- it succeeds, but takes
10815 # about 5 minutes as the teststring grows exponentially.
10816 # Worse, since 9x/ME are not pre-emptively multitasking,
10817 # you end up with a "frozen" computer, even though with patience
10818 # the test eventually succeeds (with a max line length of 256k).
10819 # Instead, let's just punt: use the minimum linelength reported by
10820 # all of the supported platforms: 8192 (on NT/2K/XP).
10821 lt_cv_sys_max_cmd_len=8192;
10825 # On AmigaOS with pdksh, this test takes hours, literally.
10826 # So we just punt and use a minimum line length of 8192.
10827 lt_cv_sys_max_cmd_len=8192;
10830 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10831 # This has been around since 386BSD, at least. Likely further.
10832 if test -x /sbin/sysctl; then
10833 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10834 elif test -x /usr/sbin/sysctl; then
10835 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10837 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10839 # And add a safety zone
10840 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10841 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10845 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10846 lt_cv_sys_max_cmd_len=196608
10850 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10851 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10852 # nice to cause kernel panics so lets avoid the loop below.
10853 # First set a reasonable default.
10854 lt_cv_sys_max_cmd_len=16384
10856 if test -x /sbin/sysconfig; then
10857 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10858 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10863 lt_cv_sys_max_cmd_len=102400
10865 sysv5* | sco5v6* | sysv4.2uw2*)
10866 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10867 if test -n "$kargmax"; then
10868 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
10870 lt_cv_sys_max_cmd_len=32768
10874 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10875 if test -n "$lt_cv_sys_max_cmd_len"; then
10876 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10877 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10879 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10880 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10881 = "XX$teststring") >/dev/null 2>&1 &&
10882 new_result=`expr "X$teststring" : ".*" 2>&1` &&
10883 lt_cv_sys_max_cmd_len=$new_result &&
10884 test $i != 17 # 1/2 MB should be enough
10887 teststring=$teststring$teststring
10890 # Add a significant safety factor because C++ compilers can tack on massive
10891 # amounts of additional arguments before passing them to the linker.
10892 # It appears as though 1/2 is a usable value.
10893 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10900 if test -n $lt_cv_sys_max_cmd_len ; then
10901 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10902 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10904 { $as_echo "$as_me:$LINENO: result: none" >&5
10905 $as_echo "none" >&6; }
10912 # Check for command to grab the raw symbol name followed by C symbol from nm.
10913 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10914 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
10915 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10916 $as_echo_n "(cached) " >&6
10919 # These are sane defaults that work on at least a few old systems.
10920 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10922 # Character class describing NM global symbol codes.
10923 symcode='[BCDEGRST]'
10925 # Regexp to match symbols that can be accessed directly from C.
10926 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10928 # Transform an extracted symbol line into a proper C declaration
10929 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10931 # Transform an extracted symbol line into symbol name and symbol address
10932 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
10934 # Define system-specific variables.
10939 cygwin* | mingw* | pw32*)
10940 symcode='[ABCDGISTW]'
10942 hpux*) # Its linker distinguishes data from code symbols
10943 if test "$host_cpu" = ia64; then
10944 symcode='[ABCDEGRST]'
10946 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10947 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
10949 linux* | k*bsd*-gnu)
10950 if test "$host_cpu" = ia64; then
10951 symcode='[ABCDGIRSTW]'
10952 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10953 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
10956 irix* | nonstopux*)
10957 symcode='[BCDEGRST]'
10960 symcode='[BCDEGQRST]'
10971 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10979 # Handle CRLF in mingw tool chain
10983 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10987 # If we're using GNU nm, then use its standard symbol codes.
10988 case `$NM -V 2>&1` in
10989 *GNU* | *'with BFD'*)
10990 symcode='[ABCDGIRSTW]' ;;
10993 # Try without a prefix undercore, then with it.
10994 for ac_symprfx in "" "_"; do
10996 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10997 symxfrm="\\1 $ac_symprfx\\2 \\2"
10999 # Write the raw and C identifiers.
11000 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11002 # Check to see that the pipe works correctly.
11006 cat > conftest.$ac_ext <<EOF
11011 void nm_test_func(){}
11015 int main(){nm_test_var='a';nm_test_func();return(0);}
11018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11019 (eval $ac_compile) 2>&5
11021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); }; then
11023 # Now try to grab the symbols.
11025 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11026 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029 (exit $ac_status); } && test -s "$nlist"; then
11030 # Try sorting and uniquifying the output.
11031 if sort "$nlist" | uniq > "$nlist"T; then
11032 mv -f "$nlist"T "$nlist"
11037 # Make sure that we snagged all the symbols we need.
11038 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11039 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11040 cat <<EOF > conftest.$ac_ext
11046 # Now generate the symbol file.
11047 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11049 cat <<EOF >> conftest.$ac_ext
11050 #if defined (__STDC__) && __STDC__
11051 # define lt_ptr_t void *
11053 # define lt_ptr_t char *
11057 /* The mapping between symbol names and symbols. */
11062 lt_preloaded_symbols[] =
11065 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11066 cat <<\EOF >> conftest.$ac_ext
11074 # Now try linking the two files.
11075 mv conftest.$ac_objext conftstm.$ac_objext
11076 lt_save_LIBS="$LIBS"
11077 lt_save_CFLAGS="$CFLAGS"
11078 LIBS="conftstm.$ac_objext"
11079 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11081 (eval $ac_link) 2>&5
11083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11087 LIBS="$lt_save_LIBS"
11088 CFLAGS="$lt_save_CFLAGS"
11090 echo "cannot find nm_test_func in $nlist" >&5
11093 echo "cannot find nm_test_var in $nlist" >&5
11096 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11099 echo "$progname: failed program was:" >&5
11100 cat conftest.$ac_ext >&5
11102 rm -rf conftest* conftst*
11104 # Do not use the global_symbol_pipe unless it works.
11105 if test "$pipe_works" = yes; then
11108 lt_cv_sys_global_symbol_pipe=
11114 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11115 lt_cv_sys_global_symbol_to_cdecl=
11117 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11118 { $as_echo "$as_me:$LINENO: result: failed" >&5
11119 $as_echo "failed" >&6; }
11121 { $as_echo "$as_me:$LINENO: result: ok" >&5
11122 $as_echo "ok" >&6; }
11125 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
11126 $as_echo_n "checking for objdir... " >&6; }
11127 if test "${lt_cv_objdir+set}" = set; then
11128 $as_echo_n "(cached) " >&6
11130 rm -f .libs 2>/dev/null
11131 mkdir .libs 2>/dev/null
11132 if test -d .libs; then
11135 # MS-DOS does not allow filenames that begin with a dot.
11138 rmdir .libs 2>/dev/null
11140 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11141 $as_echo "$lt_cv_objdir" >&6; }
11142 objdir=$lt_cv_objdir
11150 # AIX sometimes has problems with the GCC collect2 program. For some
11151 # reason, if we set the COLLECT_NAMES environment variable, the problems
11152 # vanish in a puff of smoke.
11153 if test "X${COLLECT_NAMES+set}" != Xset; then
11155 export COLLECT_NAMES
11160 # Sed substitution that helps us do robust quoting. It backslashifies
11161 # metacharacters that are still active within double-quoted strings.
11162 Xsed='sed -e 1s/^X//'
11163 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11165 # Same as above, but do not quote variable references.
11166 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11168 # Sed substitution to delay expansion of an escaped shell variable in a
11169 # double_quote_subst'ed string.
11170 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11172 # Sed substitution to avoid accidental globbing in evaled expressions
11173 no_glob_subst='s/\*/\\\*/g'
11178 # Global variables:
11179 default_ofile=libtool
11180 can_build_shared=yes
11182 # All known linkers require a `.a' archive for static linking (except MSVC,
11183 # which needs '.lib').
11185 ltmain="$ac_aux_dir/ltmain.sh"
11186 ofile="$default_ofile"
11187 with_gnu_ld="$lt_cv_prog_gnu_ld"
11189 if test -n "$ac_tool_prefix"; then
11190 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11191 set dummy ${ac_tool_prefix}ar; ac_word=$2
11192 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11193 $as_echo_n "checking for $ac_word... " >&6; }
11194 if test "${ac_cv_prog_AR+set}" = set; then
11195 $as_echo_n "(cached) " >&6
11197 if test -n "$AR"; then
11198 ac_cv_prog_AR="$AR" # Let the user override the test.
11200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11201 for as_dir in $PATH
11204 test -z "$as_dir" && as_dir=.
11205 for ac_exec_ext in '' $ac_executable_extensions; do
11206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11207 ac_cv_prog_AR="${ac_tool_prefix}ar"
11208 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11218 if test -n "$AR"; then
11219 { $as_echo "$as_me:$LINENO: result: $AR" >&5
11220 $as_echo "$AR" >&6; }
11222 { $as_echo "$as_me:$LINENO: result: no" >&5
11223 $as_echo "no" >&6; }
11228 if test -z "$ac_cv_prog_AR"; then
11230 # Extract the first word of "ar", so it can be a program name with args.
11231 set dummy ar; ac_word=$2
11232 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11233 $as_echo_n "checking for $ac_word... " >&6; }
11234 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11235 $as_echo_n "(cached) " >&6
11237 if test -n "$ac_ct_AR"; then
11238 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11241 for as_dir in $PATH
11244 test -z "$as_dir" && as_dir=.
11245 for ac_exec_ext in '' $ac_executable_extensions; do
11246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11247 ac_cv_prog_ac_ct_AR="ar"
11248 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11257 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11258 if test -n "$ac_ct_AR"; then
11259 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11260 $as_echo "$ac_ct_AR" >&6; }
11262 { $as_echo "$as_me:$LINENO: result: no" >&5
11263 $as_echo "no" >&6; }
11266 if test "x$ac_ct_AR" = x; then
11269 case $cross_compiling:$ac_tool_warned in
11271 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11272 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11273 ac_tool_warned=yes ;;
11278 AR="$ac_cv_prog_AR"
11281 if test -n "$ac_tool_prefix"; then
11282 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11283 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11284 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11285 $as_echo_n "checking for $ac_word... " >&6; }
11286 if test "${ac_cv_prog_RANLIB+set}" = set; then
11287 $as_echo_n "(cached) " >&6
11289 if test -n "$RANLIB"; then
11290 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11293 for as_dir in $PATH
11296 test -z "$as_dir" && as_dir=.
11297 for ac_exec_ext in '' $ac_executable_extensions; do
11298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11299 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11300 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11309 RANLIB=$ac_cv_prog_RANLIB
11310 if test -n "$RANLIB"; then
11311 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
11312 $as_echo "$RANLIB" >&6; }
11314 { $as_echo "$as_me:$LINENO: result: no" >&5
11315 $as_echo "no" >&6; }
11320 if test -z "$ac_cv_prog_RANLIB"; then
11321 ac_ct_RANLIB=$RANLIB
11322 # Extract the first word of "ranlib", so it can be a program name with args.
11323 set dummy ranlib; ac_word=$2
11324 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11325 $as_echo_n "checking for $ac_word... " >&6; }
11326 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11327 $as_echo_n "(cached) " >&6
11329 if test -n "$ac_ct_RANLIB"; then
11330 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11333 for as_dir in $PATH
11336 test -z "$as_dir" && as_dir=.
11337 for ac_exec_ext in '' $ac_executable_extensions; do
11338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11339 ac_cv_prog_ac_ct_RANLIB="ranlib"
11340 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11349 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11350 if test -n "$ac_ct_RANLIB"; then
11351 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11352 $as_echo "$ac_ct_RANLIB" >&6; }
11354 { $as_echo "$as_me:$LINENO: result: no" >&5
11355 $as_echo "no" >&6; }
11358 if test "x$ac_ct_RANLIB" = x; then
11361 case $cross_compiling:$ac_tool_warned in
11363 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11364 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11365 ac_tool_warned=yes ;;
11367 RANLIB=$ac_ct_RANLIB
11370 RANLIB="$ac_cv_prog_RANLIB"
11373 if test -n "$ac_tool_prefix"; then
11374 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11375 set dummy ${ac_tool_prefix}strip; ac_word=$2
11376 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11377 $as_echo_n "checking for $ac_word... " >&6; }
11378 if test "${ac_cv_prog_STRIP+set}" = set; then
11379 $as_echo_n "(cached) " >&6
11381 if test -n "$STRIP"; then
11382 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11385 for as_dir in $PATH
11388 test -z "$as_dir" && as_dir=.
11389 for ac_exec_ext in '' $ac_executable_extensions; do
11390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11391 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11392 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11401 STRIP=$ac_cv_prog_STRIP
11402 if test -n "$STRIP"; then
11403 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
11404 $as_echo "$STRIP" >&6; }
11406 { $as_echo "$as_me:$LINENO: result: no" >&5
11407 $as_echo "no" >&6; }
11412 if test -z "$ac_cv_prog_STRIP"; then
11414 # Extract the first word of "strip", so it can be a program name with args.
11415 set dummy strip; ac_word=$2
11416 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11417 $as_echo_n "checking for $ac_word... " >&6; }
11418 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11419 $as_echo_n "(cached) " >&6
11421 if test -n "$ac_ct_STRIP"; then
11422 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11425 for as_dir in $PATH
11428 test -z "$as_dir" && as_dir=.
11429 for ac_exec_ext in '' $ac_executable_extensions; do
11430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11431 ac_cv_prog_ac_ct_STRIP="strip"
11432 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11441 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11442 if test -n "$ac_ct_STRIP"; then
11443 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11444 $as_echo "$ac_ct_STRIP" >&6; }
11446 { $as_echo "$as_me:$LINENO: result: no" >&5
11447 $as_echo "no" >&6; }
11450 if test "x$ac_ct_STRIP" = x; then
11453 case $cross_compiling:$ac_tool_warned in
11455 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11456 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11457 ac_tool_warned=yes ;;
11462 STRIP="$ac_cv_prog_STRIP"
11467 old_CFLAGS="$CFLAGS"
11469 # Set sane defaults for various variables
11470 test -z "$AR" && AR=ar
11471 test -z "$AR_FLAGS" && AR_FLAGS=cru
11472 test -z "$AS" && AS=as
11473 test -z "$CC" && CC=cc
11474 test -z "$LTCC" && LTCC=$CC
11475 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11476 test -z "$DLLTOOL" && DLLTOOL=dlltool
11477 test -z "$LD" && LD=ld
11478 test -z "$LN_S" && LN_S="ln -s"
11479 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11480 test -z "$NM" && NM=nm
11481 test -z "$SED" && SED=sed
11482 test -z "$OBJDUMP" && OBJDUMP=objdump
11483 test -z "$RANLIB" && RANLIB=:
11484 test -z "$STRIP" && STRIP=:
11485 test -z "$ac_objext" && ac_objext=o
11487 # Determine commands to create old-style static archives.
11488 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11489 old_postinstall_cmds='chmod 644 $oldlib'
11490 old_postuninstall_cmds=
11492 if test -n "$RANLIB"; then
11495 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
11498 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
11501 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11504 for cc_temp in $compiler""; do
11506 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11507 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11512 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11515 # Only perform the check for file, if the check method requires it
11516 case $deplibs_check_method in
11518 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11519 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11520 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11521 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11522 $as_echo_n "(cached) " >&6
11526 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11529 lt_save_MAGIC_CMD="$MAGIC_CMD"
11530 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11531 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11532 for ac_dir in $ac_dummy; do
11534 test -z "$ac_dir" && ac_dir=.
11535 if test -f $ac_dir/${ac_tool_prefix}file; then
11536 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11537 if test -n "$file_magic_test_file"; then
11538 case $deplibs_check_method in
11540 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11541 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11542 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11543 $EGREP "$file_magic_regex" > /dev/null; then
11548 *** Warning: the command libtool uses to detect shared libraries,
11549 *** $file_magic_cmd, produces output that libtool cannot recognize.
11550 *** The result is that libtool may fail to recognize shared libraries
11551 *** as such. This will affect the creation of libtool libraries that
11552 *** depend on shared libraries, but programs linked with such libtool
11553 *** libraries will work regardless of this problem. Nevertheless, you
11554 *** may want to report the problem to your system manager and/or to
11555 *** bug-libtool@gnu.org
11565 MAGIC_CMD="$lt_save_MAGIC_CMD"
11570 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11571 if test -n "$MAGIC_CMD"; then
11572 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11573 $as_echo "$MAGIC_CMD" >&6; }
11575 { $as_echo "$as_me:$LINENO: result: no" >&5
11576 $as_echo "no" >&6; }
11579 if test -z "$lt_cv_path_MAGIC_CMD"; then
11580 if test -n "$ac_tool_prefix"; then
11581 { $as_echo "$as_me:$LINENO: checking for file" >&5
11582 $as_echo_n "checking for file... " >&6; }
11583 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11584 $as_echo_n "(cached) " >&6
11588 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11591 lt_save_MAGIC_CMD="$MAGIC_CMD"
11592 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11593 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11594 for ac_dir in $ac_dummy; do
11596 test -z "$ac_dir" && ac_dir=.
11597 if test -f $ac_dir/file; then
11598 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11599 if test -n "$file_magic_test_file"; then
11600 case $deplibs_check_method in
11602 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11603 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11604 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11605 $EGREP "$file_magic_regex" > /dev/null; then
11610 *** Warning: the command libtool uses to detect shared libraries,
11611 *** $file_magic_cmd, produces output that libtool cannot recognize.
11612 *** The result is that libtool may fail to recognize shared libraries
11613 *** as such. This will affect the creation of libtool libraries that
11614 *** depend on shared libraries, but programs linked with such libtool
11615 *** libraries will work regardless of this problem. Nevertheless, you
11616 *** may want to report the problem to your system manager and/or to
11617 *** bug-libtool@gnu.org
11627 MAGIC_CMD="$lt_save_MAGIC_CMD"
11632 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11633 if test -n "$MAGIC_CMD"; then
11634 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11635 $as_echo "$MAGIC_CMD" >&6; }
11637 { $as_echo "$as_me:$LINENO: result: no" >&5
11638 $as_echo "no" >&6; }
11652 rhapsody* | darwin*)
11653 if test -n "$ac_tool_prefix"; then
11654 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11655 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11656 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11657 $as_echo_n "checking for $ac_word... " >&6; }
11658 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
11659 $as_echo_n "(cached) " >&6
11661 if test -n "$DSYMUTIL"; then
11662 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11665 for as_dir in $PATH
11668 test -z "$as_dir" && as_dir=.
11669 for ac_exec_ext in '' $ac_executable_extensions; do
11670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11671 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11672 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11681 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11682 if test -n "$DSYMUTIL"; then
11683 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
11684 $as_echo "$DSYMUTIL" >&6; }
11686 { $as_echo "$as_me:$LINENO: result: no" >&5
11687 $as_echo "no" >&6; }
11692 if test -z "$ac_cv_prog_DSYMUTIL"; then
11693 ac_ct_DSYMUTIL=$DSYMUTIL
11694 # Extract the first word of "dsymutil", so it can be a program name with args.
11695 set dummy dsymutil; ac_word=$2
11696 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11697 $as_echo_n "checking for $ac_word... " >&6; }
11698 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
11699 $as_echo_n "(cached) " >&6
11701 if test -n "$ac_ct_DSYMUTIL"; then
11702 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11705 for as_dir in $PATH
11708 test -z "$as_dir" && as_dir=.
11709 for ac_exec_ext in '' $ac_executable_extensions; do
11710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11711 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11712 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11721 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11722 if test -n "$ac_ct_DSYMUTIL"; then
11723 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
11724 $as_echo "$ac_ct_DSYMUTIL" >&6; }
11726 { $as_echo "$as_me:$LINENO: result: no" >&5
11727 $as_echo "no" >&6; }
11730 if test "x$ac_ct_DSYMUTIL" = x; then
11733 case $cross_compiling:$ac_tool_warned in
11735 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11736 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11737 ac_tool_warned=yes ;;
11739 DSYMUTIL=$ac_ct_DSYMUTIL
11742 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11745 if test -n "$ac_tool_prefix"; then
11746 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11747 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11748 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11749 $as_echo_n "checking for $ac_word... " >&6; }
11750 if test "${ac_cv_prog_NMEDIT+set}" = set; then
11751 $as_echo_n "(cached) " >&6
11753 if test -n "$NMEDIT"; then
11754 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11757 for as_dir in $PATH
11760 test -z "$as_dir" && as_dir=.
11761 for ac_exec_ext in '' $ac_executable_extensions; do
11762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11763 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11764 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11773 NMEDIT=$ac_cv_prog_NMEDIT
11774 if test -n "$NMEDIT"; then
11775 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
11776 $as_echo "$NMEDIT" >&6; }
11778 { $as_echo "$as_me:$LINENO: result: no" >&5
11779 $as_echo "no" >&6; }
11784 if test -z "$ac_cv_prog_NMEDIT"; then
11785 ac_ct_NMEDIT=$NMEDIT
11786 # Extract the first word of "nmedit", so it can be a program name with args.
11787 set dummy nmedit; ac_word=$2
11788 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11789 $as_echo_n "checking for $ac_word... " >&6; }
11790 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
11791 $as_echo_n "(cached) " >&6
11793 if test -n "$ac_ct_NMEDIT"; then
11794 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11797 for as_dir in $PATH
11800 test -z "$as_dir" && as_dir=.
11801 for ac_exec_ext in '' $ac_executable_extensions; do
11802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11803 ac_cv_prog_ac_ct_NMEDIT="nmedit"
11804 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11813 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11814 if test -n "$ac_ct_NMEDIT"; then
11815 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
11816 $as_echo "$ac_ct_NMEDIT" >&6; }
11818 { $as_echo "$as_me:$LINENO: result: no" >&5
11819 $as_echo "no" >&6; }
11822 if test "x$ac_ct_NMEDIT" = x; then
11825 case $cross_compiling:$ac_tool_warned in
11827 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11828 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11829 ac_tool_warned=yes ;;
11831 NMEDIT=$ac_ct_NMEDIT
11834 NMEDIT="$ac_cv_prog_NMEDIT"
11838 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
11839 $as_echo_n "checking for -single_module linker flag... " >&6; }
11840 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
11841 $as_echo_n "(cached) " >&6
11843 lt_cv_apple_cc_single_mod=no
11844 if test -z "${LT_MULTI_MODULE}"; then
11845 # By default we will add the -single_module flag. You can override
11846 # by either setting the environment variable LT_MULTI_MODULE
11847 # non-empty at configure time, or by adding -multi_module to the
11849 echo "int foo(void){return 1;}" > conftest.c
11850 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11851 -dynamiclib ${wl}-single_module conftest.c
11852 if test -f libconftest.dylib; then
11853 lt_cv_apple_cc_single_mod=yes
11854 rm -rf libconftest.dylib*
11859 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
11860 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
11861 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
11862 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
11863 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
11864 $as_echo_n "(cached) " >&6
11866 lt_cv_ld_exported_symbols_list=no
11867 save_LDFLAGS=$LDFLAGS
11868 echo "_main" > conftest.sym
11869 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11870 cat >conftest.$ac_ext <<_ACEOF
11873 cat confdefs.h >>conftest.$ac_ext
11874 cat >>conftest.$ac_ext <<_ACEOF
11875 /* end confdefs.h. */
11885 rm -f conftest.$ac_objext conftest$ac_exeext
11886 if { (ac_try="$ac_link"
11887 case "(($ac_try" in
11888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11889 *) ac_try_echo=$ac_try;;
11891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11892 $as_echo "$ac_try_echo") >&5
11893 (eval "$ac_link") 2>conftest.er1
11895 grep -v '^ *+' conftest.er1 >conftest.err
11897 cat conftest.err >&5
11898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899 (exit $ac_status); } && {
11900 test -z "$ac_c_werror_flag" ||
11901 test ! -s conftest.err
11902 } && test -s conftest$ac_exeext && {
11903 test "$cross_compiling" = yes ||
11904 $as_test_x conftest$ac_exeext
11906 lt_cv_ld_exported_symbols_list=yes
11908 $as_echo "$as_me: failed program was:" >&5
11909 sed 's/^/| /' conftest.$ac_ext >&5
11911 lt_cv_ld_exported_symbols_list=no
11914 rm -rf conftest.dSYM
11915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11916 conftest$ac_exeext conftest.$ac_ext
11917 LDFLAGS="$save_LDFLAGS"
11920 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
11921 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11923 rhapsody* | darwin1.[0123])
11924 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11926 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11928 # if running on 10.5 or later, the deployment target defaults
11929 # to the OS version, if on x86, and 10.4, the deployment
11930 # target defaults to 10.4. Don't you love it?
11931 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11932 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11933 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11935 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11937 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11941 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11942 _lt_dar_single_mod='$single_module'
11944 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11945 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11947 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
11949 if test "$DSYMUTIL" != ":"; then
11950 _lt_dsymutil="~$DSYMUTIL \$lib || :"
11959 enable_win32_dll=no
11961 # Check whether --enable-libtool-lock was given.
11962 if test "${enable_libtool_lock+set}" = set; then
11963 enableval=$enable_libtool_lock;
11966 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11969 # Check whether --with-pic was given.
11970 if test "${with_pic+set}" = set; then
11971 withval=$with_pic; pic_mode="$withval"
11976 test -z "$pic_mode" && pic_mode=default
11978 # Use C for the default configuration in the libtool script
11982 ac_cpp='$CPP $CPPFLAGS'
11983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11988 # Source file extension for C test sources.
11991 # Object file extension for compiled C test sources.
11995 # Code to be used in simple compile tests
11996 lt_simple_compile_test_code="int some_variable = 0;"
11998 # Code to be used in simple link tests
11999 lt_simple_link_test_code='int main(){return(0);}'
12002 # If no C compiler was specified, use CC.
12005 # If no C compiler flags were specified, use CFLAGS.
12006 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12008 # Allow CC to be a program name with arguments.
12012 # save warnings/boilerplate of simple test code
12013 ac_outfile=conftest.$ac_objext
12014 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12015 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12016 _lt_compiler_boilerplate=`cat conftest.err`
12019 ac_outfile=conftest.$ac_objext
12020 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12021 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12022 _lt_linker_boilerplate=`cat conftest.err`
12027 ## There is no encapsulation within the following macros, do not change
12028 ## the running order or otherwise move them around unless you know exactly
12029 ## what you are doing...
12031 lt_prog_compiler_no_builtin_flag=
12033 if test "$GCC" = yes; then
12034 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
12037 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12038 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12039 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
12040 $as_echo_n "(cached) " >&6
12042 lt_cv_prog_compiler_rtti_exceptions=no
12043 ac_outfile=conftest.$ac_objext
12044 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12045 lt_compiler_flag="-fno-rtti -fno-exceptions"
12046 # Insert the option either (1) after the last *FLAGS variable, or
12047 # (2) before a word containing "conftest.", or (3) at the end.
12048 # Note that $ac_compile itself does not contain backslashes and begins
12049 # with a dollar sign (not a hyphen), so the echo should work correctly.
12050 # The option is referenced via a variable to avoid confusing sed.
12051 lt_compile=`echo "$ac_compile" | $SED \
12052 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12053 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12054 -e 's:$: $lt_compiler_flag:'`
12055 (eval echo "\"\$as_me:12055: $lt_compile\"" >&5)
12056 (eval "$lt_compile" 2>conftest.err)
12058 cat conftest.err >&5
12059 echo "$as_me:12059: \$? = $ac_status" >&5
12060 if (exit $ac_status) && test -s "$ac_outfile"; then
12061 # The compiler can only warn and ignore the option if not recognized
12062 # So say no if there are warnings other than the usual output.
12063 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12064 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12065 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12066 lt_cv_prog_compiler_rtti_exceptions=yes
12072 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12073 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12075 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12076 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12083 lt_prog_compiler_wl=
12084 lt_prog_compiler_pic=
12085 lt_prog_compiler_static=
12087 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12088 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12090 if test "$GCC" = yes; then
12091 lt_prog_compiler_wl='-Wl,'
12092 lt_prog_compiler_static='-static'
12096 # All AIX code is PIC.
12097 if test "$host_cpu" = ia64; then
12098 # AIX 5 now supports IA64 processor
12099 lt_prog_compiler_static='-Bstatic'
12104 # FIXME: we need at least 68020 code to build shared libraries, but
12105 # adding the `-m68020' flag to GCC prevents building anything better,
12107 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12110 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12111 # PIC is the default for these OSes.
12114 mingw* | cygwin* | pw32* | os2*)
12115 # This hack is so that the source file can tell whether it is being
12116 # built for inclusion in a dll (and should export symbols for example).
12117 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12118 # (--disable-auto-import) libraries
12119 lt_prog_compiler_pic='-DDLL_EXPORT'
12122 darwin* | rhapsody*)
12123 # PIC is the default on this platform
12124 # Common symbols not allowed in MH_DYLIB files
12125 lt_prog_compiler_pic='-fno-common'
12129 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12130 # Instead, we relocate shared libraries at runtime.
12134 # Just because we use GCC doesn't mean we suddenly get shared libraries
12135 # on systems that don't support them.
12136 lt_prog_compiler_can_build_shared=no
12141 if test -d /usr/nec; then
12142 lt_prog_compiler_pic=-Kconform_pic
12147 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12148 # not for PA HP-UX.
12154 lt_prog_compiler_pic='-fPIC'
12160 lt_prog_compiler_pic='-fPIC'
12164 # PORTME Check for flag to pass linker flags through the system compiler.
12167 lt_prog_compiler_wl='-Wl,'
12168 if test "$host_cpu" = ia64; then
12169 # AIX 5 now supports IA64 processor
12170 lt_prog_compiler_static='-Bstatic'
12172 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12176 # PIC is the default on this platform
12177 # Common symbols not allowed in MH_DYLIB files
12178 case $cc_basename in
12180 lt_prog_compiler_pic='-qnocommon'
12181 lt_prog_compiler_wl='-Wl,'
12186 mingw* | cygwin* | pw32* | os2*)
12187 # This hack is so that the source file can tell whether it is being
12188 # built for inclusion in a dll (and should export symbols for example).
12189 lt_prog_compiler_pic='-DDLL_EXPORT'
12192 hpux9* | hpux10* | hpux11*)
12193 lt_prog_compiler_wl='-Wl,'
12194 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12195 # not for PA HP-UX.
12201 lt_prog_compiler_pic='+Z'
12204 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12205 lt_prog_compiler_static='${wl}-a ${wl}archive'
12208 irix5* | irix6* | nonstopux*)
12209 lt_prog_compiler_wl='-Wl,'
12210 # PIC (with -KPIC) is the default.
12211 lt_prog_compiler_static='-non_shared'
12215 lt_prog_compiler_pic='-KPIC'
12216 lt_prog_compiler_static='-Bstatic'
12219 linux* | k*bsd*-gnu)
12220 case $cc_basename in
12222 lt_prog_compiler_wl='-Wl,'
12223 lt_prog_compiler_pic='-KPIC'
12224 lt_prog_compiler_static='-static'
12226 pgcc* | pgf77* | pgf90* | pgf95*)
12227 # Portland Group compilers (*not* the Pentium gcc compiler,
12228 # which looks to be a dead project)
12229 lt_prog_compiler_wl='-Wl,'
12230 lt_prog_compiler_pic='-fpic'
12231 lt_prog_compiler_static='-Bstatic'
12234 lt_prog_compiler_wl='-Wl,'
12235 # All Alpha code is PIC.
12236 lt_prog_compiler_static='-non_shared'
12239 case `$CC -V 2>&1 | sed 5q` in
12242 lt_prog_compiler_pic='-KPIC'
12243 lt_prog_compiler_static='-Bstatic'
12244 lt_prog_compiler_wl='-Wl,'
12247 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12248 lt_prog_compiler_pic='-KPIC'
12249 lt_prog_compiler_static='-Bstatic'
12250 lt_prog_compiler_wl=''
12257 osf3* | osf4* | osf5*)
12258 lt_prog_compiler_wl='-Wl,'
12259 # All OSF/1 code is PIC.
12260 lt_prog_compiler_static='-non_shared'
12264 lt_prog_compiler_static='-non_shared'
12268 lt_prog_compiler_pic='-KPIC'
12269 lt_prog_compiler_static='-Bstatic'
12270 case $cc_basename in
12271 f77* | f90* | f95*)
12272 lt_prog_compiler_wl='-Qoption ld ';;
12274 lt_prog_compiler_wl='-Wl,';;
12279 lt_prog_compiler_wl='-Qoption ld '
12280 lt_prog_compiler_pic='-PIC'
12281 lt_prog_compiler_static='-Bstatic'
12284 sysv4 | sysv4.2uw2* | sysv4.3*)
12285 lt_prog_compiler_wl='-Wl,'
12286 lt_prog_compiler_pic='-KPIC'
12287 lt_prog_compiler_static='-Bstatic'
12291 if test -d /usr/nec ;then
12292 lt_prog_compiler_pic='-Kconform_pic'
12293 lt_prog_compiler_static='-Bstatic'
12297 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12298 lt_prog_compiler_wl='-Wl,'
12299 lt_prog_compiler_pic='-KPIC'
12300 lt_prog_compiler_static='-Bstatic'
12304 lt_prog_compiler_wl='-Wl,'
12305 lt_prog_compiler_can_build_shared=no
12309 lt_prog_compiler_pic='-pic'
12310 lt_prog_compiler_static='-Bstatic'
12314 lt_prog_compiler_can_build_shared=no
12319 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12320 $as_echo "$lt_prog_compiler_pic" >&6; }
12323 # Check to make sure the PIC flag actually works.
12325 if test -n "$lt_prog_compiler_pic"; then
12327 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12328 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12329 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
12330 $as_echo_n "(cached) " >&6
12332 lt_cv_prog_compiler_pic_works=no
12333 ac_outfile=conftest.$ac_objext
12334 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12335 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12336 # Insert the option either (1) after the last *FLAGS variable, or
12337 # (2) before a word containing "conftest.", or (3) at the end.
12338 # Note that $ac_compile itself does not contain backslashes and begins
12339 # with a dollar sign (not a hyphen), so the echo should work correctly.
12340 # The option is referenced via a variable to avoid confusing sed.
12341 lt_compile=`echo "$ac_compile" | $SED \
12342 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12343 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12344 -e 's:$: $lt_compiler_flag:'`
12345 (eval echo "\"\$as_me:12345: $lt_compile\"" >&5)
12346 (eval "$lt_compile" 2>conftest.err)
12348 cat conftest.err >&5
12349 echo "$as_me:12349: \$? = $ac_status" >&5
12350 if (exit $ac_status) && test -s "$ac_outfile"; then
12351 # The compiler can only warn and ignore the option if not recognized
12352 # So say no if there are warnings other than the usual output.
12353 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12354 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12355 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12356 lt_cv_prog_compiler_pic_works=yes
12362 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
12363 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12365 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
12366 case $lt_prog_compiler_pic in
12368 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12371 lt_prog_compiler_pic=
12372 lt_prog_compiler_can_build_shared=no
12377 # For platforms which do not support PIC, -DPIC is meaningless:
12379 lt_prog_compiler_pic=
12382 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12387 # Check to make sure the static flag actually works.
12389 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12390 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12391 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12392 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
12393 $as_echo_n "(cached) " >&6
12395 lt_cv_prog_compiler_static_works=no
12396 save_LDFLAGS="$LDFLAGS"
12397 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12398 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12399 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12400 # The linker can only warn and ignore the option if not recognized
12401 # So say no if there are warnings
12402 if test -s conftest.err; then
12403 # Append any errors to the config.log.
12404 cat conftest.err 1>&5
12405 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12406 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12407 if diff conftest.exp conftest.er2 >/dev/null; then
12408 lt_cv_prog_compiler_static_works=yes
12411 lt_cv_prog_compiler_static_works=yes
12415 LDFLAGS="$save_LDFLAGS"
12418 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
12419 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12421 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
12424 lt_prog_compiler_static=
12428 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12429 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12430 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12431 $as_echo_n "(cached) " >&6
12433 lt_cv_prog_compiler_c_o=no
12434 $rm -r conftest 2>/dev/null
12438 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12440 lt_compiler_flag="-o out/conftest2.$ac_objext"
12441 # Insert the option either (1) after the last *FLAGS variable, or
12442 # (2) before a word containing "conftest.", or (3) at the end.
12443 # Note that $ac_compile itself does not contain backslashes and begins
12444 # with a dollar sign (not a hyphen), so the echo should work correctly.
12445 lt_compile=`echo "$ac_compile" | $SED \
12446 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12447 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12448 -e 's:$: $lt_compiler_flag:'`
12449 (eval echo "\"\$as_me:12449: $lt_compile\"" >&5)
12450 (eval "$lt_compile" 2>out/conftest.err)
12452 cat out/conftest.err >&5
12453 echo "$as_me:12453: \$? = $ac_status" >&5
12454 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12456 # The compiler can only warn and ignore the option if not recognized
12457 # So say no if there are warnings
12458 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12459 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12460 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12461 lt_cv_prog_compiler_c_o=yes
12466 # SGI C++ compiler will create directory out/ii_files/ for
12467 # template instantiation
12468 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12469 $rm out/* && rmdir out
12475 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12476 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12479 hard_links="nottested"
12480 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12481 # do not overwrite the value of need_locks provided by the user
12482 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12483 $as_echo_n "checking if we can lock with hard links... " >&6; }
12486 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12488 ln conftest.a conftest.b 2>&5 || hard_links=no
12489 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12490 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
12491 $as_echo "$hard_links" >&6; }
12492 if test "$hard_links" = no; then
12493 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12494 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12501 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12502 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12505 allow_undefined_flag=
12506 enable_shared_with_static_runtimes=no
12508 archive_expsym_cmds=
12509 old_archive_From_new_cmds=
12510 old_archive_from_expsyms_cmds=
12511 export_dynamic_flag_spec=
12512 whole_archive_flag_spec=
12513 thread_safe_flag_spec=
12514 hardcode_libdir_flag_spec=
12515 hardcode_libdir_flag_spec_ld=
12516 hardcode_libdir_separator=
12518 hardcode_minus_L=no
12519 hardcode_shlibpath_var=unsupported
12520 link_all_deplibs=unknown
12521 hardcode_automatic=no
12523 module_expsym_cmds=
12524 always_export_symbols=no
12525 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12526 # include_expsyms should be a list of space-separated symbols to be *always*
12527 # included in the symbol list
12529 # exclude_expsyms can be an extended regexp of symbols to exclude
12530 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12531 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12532 # as well as any symbol that contains `d'.
12533 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12534 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12535 # platforms (ab)use it in PIC code, but their linkers get confused if
12536 # the symbol is explicitly referenced. Since portable code cannot
12537 # rely on this symbol name, it's probably fine to never include it in
12538 # preloaded symbol tables.
12539 # Exclude shared library initialization/finalization symbols.
12540 extract_expsyms_cmds=
12541 # Just being paranoid about ensuring that cc_basename is set.
12542 for cc_temp in $compiler""; do
12544 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12545 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12550 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12553 cygwin* | mingw* | pw32*)
12554 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12555 # When not using gcc, we currently assume that we are using
12556 # Microsoft Visual C++.
12557 if test "$GCC" != yes; then
12562 # we just hope/assume this is gcc and not c89 (= MSVC++)
12571 if test "$with_gnu_ld" = yes; then
12572 # If archive_cmds runs LD, not CC, wlarc should be empty
12575 # Set some defaults for GNU ld with shared library support. These
12576 # are reset later if shared libraries are not supported. Putting them
12577 # here allows them to be overridden if necessary.
12578 runpath_var=LD_RUN_PATH
12579 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12580 export_dynamic_flag_spec='${wl}--export-dynamic'
12581 # ancient GNU ld didn't support --whole-archive et. al.
12582 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12583 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12585 whole_archive_flag_spec=
12587 supports_anon_versioning=no
12588 case `$LD -v 2>/dev/null` in
12589 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12590 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12591 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12592 *\ 2.11.*) ;; # other 2.11 versions
12593 *) supports_anon_versioning=yes ;;
12596 # See if GNU ld supports shared libraries.
12599 # On AIX/PPC, the GNU linker is very broken
12600 if test "$host_cpu" != ia64; then
12604 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12605 *** to be unable to reliably create shared libraries on AIX.
12606 *** Therefore, libtool is disabling shared libraries support. If you
12607 *** really care for shared libraries, you may want to modify your PATH
12608 *** so that a non-GNU linker is found, and then restart.
12615 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)'
12616 hardcode_libdir_flag_spec='-L$libdir'
12617 hardcode_minus_L=yes
12619 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12620 # that the semantics of dynamic libraries on AmigaOS, at least up
12621 # to version 4, is to share data among multiple programs linked
12622 # with the same dynamic library. Since this doesn't match the
12623 # behavior of shared libraries on other platforms, we can't use
12629 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12630 allow_undefined_flag=unsupported
12631 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12632 # support --undefined. This deserves some investigation. FIXME
12633 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12639 cygwin* | mingw* | pw32*)
12640 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12641 # as there is no search path for DLLs.
12642 hardcode_libdir_flag_spec='-L$libdir'
12643 allow_undefined_flag=unsupported
12644 always_export_symbols=no
12645 enable_shared_with_static_runtimes=yes
12646 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12648 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12649 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12650 # If the export-symbols file already is a .def file (1st line
12651 # is EXPORTS), use it as is; otherwise, prepend...
12652 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12653 cp $export_symbols $output_objdir/$soname.def;
12655 echo EXPORTS > $output_objdir/$soname.def;
12656 cat $export_symbols >> $output_objdir/$soname.def;
12658 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12666 hardcode_shlibpath_var=no
12667 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12668 export_dynamic_flag_spec='${wl}-E'
12669 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12670 # Instead, shared libraries are loaded at an image base (0x10000000 by
12671 # default) and relocated if they conflict, which is a slow very memory
12672 # consuming and fragmenting process. To avoid this, we pick a random,
12673 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12674 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12675 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12676 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'
12679 gnu* | linux* | k*bsd*-gnu)
12680 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12682 case $cc_basename,$host_cpu in
12683 pgcc*) # Portland Group C compiler
12684 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'
12685 tmp_addflag=' $pic_flag'
12687 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
12688 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'
12689 tmp_addflag=' $pic_flag -Mnomain' ;;
12690 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12691 tmp_addflag=' -i_dynamic' ;;
12692 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12693 tmp_addflag=' -i_dynamic -nofor_main' ;;
12694 ifc* | ifort*) # Intel Fortran compiler
12695 tmp_addflag=' -nofor_main' ;;
12697 case `$CC -V 2>&1 | sed 5q` in
12698 *Sun\ C*) # Sun C 5.9
12699 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'
12700 tmp_sharedflag='-G' ;;
12701 *Sun\ F*) # Sun Fortran 8.3
12702 tmp_sharedflag='-G' ;;
12704 tmp_sharedflag='-shared' ;;
12706 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12708 if test $supports_anon_versioning = yes; then
12709 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12710 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12711 $echo "local: *; };" >> $output_objdir/$libname.ver~
12712 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12720 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12721 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12724 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12725 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12730 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12734 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12735 *** create shared libraries on Solaris systems. Therefore, libtool
12736 *** is disabling shared libraries support. We urge you to upgrade GNU
12737 *** binutils to release 2.9.1 or newer. Another option is to modify
12738 *** your PATH or compiler configuration so that the native linker is
12739 *** used, and then restart.
12742 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12743 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12744 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12750 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12751 case `$LD -v 2>&1` in
12752 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12756 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12757 *** reliably create shared libraries on SCO systems. Therefore, libtool
12758 *** is disabling shared libraries support. We urge you to upgrade GNU
12759 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12760 *** your PATH or compiler configuration so that the native linker is
12761 *** used, and then restart.
12766 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12767 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
12768 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
12769 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
12778 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12780 hardcode_direct=yes
12781 hardcode_shlibpath_var=no
12785 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12786 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12787 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12794 if test "$ld_shlibs" = no; then
12796 hardcode_libdir_flag_spec=
12797 export_dynamic_flag_spec=
12798 whole_archive_flag_spec=
12801 # PORTME fill in a description of your system's linker (not GNU ld)
12804 allow_undefined_flag=unsupported
12805 always_export_symbols=yes
12806 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'
12807 # Note: this linker hardcodes the directories in LIBPATH if there
12808 # are no directories specified by -L.
12809 hardcode_minus_L=yes
12810 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12811 # Neither direct hardcoding nor static linking is supported with a
12813 hardcode_direct=unsupported
12818 if test "$host_cpu" = ia64; then
12819 # On IA64, the linker does run time linking by default, so we don't
12820 # have to do anything special.
12821 aix_use_runtimelinking=no
12822 exp_sym_flag='-Bexport'
12825 # If we're using GNU nm, then we don't want the "-C" option.
12826 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12827 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12828 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'
12830 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'
12832 aix_use_runtimelinking=no
12834 # Test if we are trying to use run time linking or normal
12835 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12836 # need to do runtime linking.
12837 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12838 for ld_flag in $LDFLAGS; do
12839 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12840 aix_use_runtimelinking=yes
12847 exp_sym_flag='-bexport'
12848 no_entry_flag='-bnoentry'
12851 # When large executables or shared objects are built, AIX ld can
12852 # have problems creating the table of contents. If linking a library
12853 # or program results in "error TOC overflow" add -mminimal-toc to
12854 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12855 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12858 hardcode_direct=yes
12859 hardcode_libdir_separator=':'
12860 link_all_deplibs=yes
12862 if test "$GCC" = yes; then
12863 case $host_os in aix4.[012]|aix4.[012].*)
12864 # We only want to do this on AIX 4.2 and lower, the check
12865 # below for broken collect2 doesn't work under 4.3+
12866 collect2name=`${CC} -print-prog-name=collect2`
12867 if test -f "$collect2name" && \
12868 strings "$collect2name" | grep resolve_lib_name >/dev/null
12870 # We have reworked collect2
12873 # We have old collect2
12874 hardcode_direct=unsupported
12875 # It fails to find uninstalled libraries when the uninstalled
12876 # path is not listed in the libpath. Setting hardcode_minus_L
12877 # to unsupported forces relinking
12878 hardcode_minus_L=yes
12879 hardcode_libdir_flag_spec='-L$libdir'
12880 hardcode_libdir_separator=
12884 shared_flag='-shared'
12885 if test "$aix_use_runtimelinking" = yes; then
12886 shared_flag="$shared_flag "'${wl}-G'
12890 if test "$host_cpu" = ia64; then
12891 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12892 # chokes on -Wl,-G. The following line is correct:
12895 if test "$aix_use_runtimelinking" = yes; then
12896 shared_flag='${wl}-G'
12898 shared_flag='${wl}-bM:SRE'
12903 # It seems that -bexpall does not export symbols beginning with
12904 # underscore (_), so it is better to generate a list of symbols to export.
12905 always_export_symbols=yes
12906 if test "$aix_use_runtimelinking" = yes; then
12907 # Warning - without using the other runtime loading flags (-brtl),
12908 # -berok will link without error, but may produce a broken library.
12909 allow_undefined_flag='-berok'
12910 # Determine the default libpath from the value encoded in an empty executable.
12911 cat >conftest.$ac_ext <<_ACEOF
12914 cat confdefs.h >>conftest.$ac_ext
12915 cat >>conftest.$ac_ext <<_ACEOF
12916 /* end confdefs.h. */
12926 rm -f conftest.$ac_objext conftest$ac_exeext
12927 if { (ac_try="$ac_link"
12928 case "(($ac_try" in
12929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12930 *) ac_try_echo=$ac_try;;
12932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12933 $as_echo "$ac_try_echo") >&5
12934 (eval "$ac_link") 2>conftest.er1
12936 grep -v '^ *+' conftest.er1 >conftest.err
12938 cat conftest.err >&5
12939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); } && {
12941 test -z "$ac_c_werror_flag" ||
12942 test ! -s conftest.err
12943 } && test -s conftest$ac_exeext && {
12944 test "$cross_compiling" = yes ||
12945 $as_test_x conftest$ac_exeext
12948 lt_aix_libpath_sed='
12949 /Import File Strings/,/^$/ {
12955 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12956 # Check for a 64-bit object if we didn't find anything.
12957 if test -z "$aix_libpath"; then
12958 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12961 $as_echo "$as_me: failed program was:" >&5
12962 sed 's/^/| /' conftest.$ac_ext >&5
12967 rm -rf conftest.dSYM
12968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12969 conftest$ac_exeext conftest.$ac_ext
12970 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12972 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12973 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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12975 if test "$host_cpu" = ia64; then
12976 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12977 allow_undefined_flag="-z nodefs"
12978 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"
12980 # Determine the default libpath from the value encoded in an empty executable.
12981 cat >conftest.$ac_ext <<_ACEOF
12984 cat confdefs.h >>conftest.$ac_ext
12985 cat >>conftest.$ac_ext <<_ACEOF
12986 /* end confdefs.h. */
12996 rm -f conftest.$ac_objext conftest$ac_exeext
12997 if { (ac_try="$ac_link"
12998 case "(($ac_try" in
12999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13000 *) ac_try_echo=$ac_try;;
13002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13003 $as_echo "$ac_try_echo") >&5
13004 (eval "$ac_link") 2>conftest.er1
13006 grep -v '^ *+' conftest.er1 >conftest.err
13008 cat conftest.err >&5
13009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010 (exit $ac_status); } && {
13011 test -z "$ac_c_werror_flag" ||
13012 test ! -s conftest.err
13013 } && test -s conftest$ac_exeext && {
13014 test "$cross_compiling" = yes ||
13015 $as_test_x conftest$ac_exeext
13018 lt_aix_libpath_sed='
13019 /Import File Strings/,/^$/ {
13025 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13026 # Check for a 64-bit object if we didn't find anything.
13027 if test -z "$aix_libpath"; then
13028 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13031 $as_echo "$as_me: failed program was:" >&5
13032 sed 's/^/| /' conftest.$ac_ext >&5
13037 rm -rf conftest.dSYM
13038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13039 conftest$ac_exeext conftest.$ac_ext
13040 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13042 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13043 # Warning - without using the other run time loading flags,
13044 # -berok will link without error, but may produce a broken library.
13045 no_undefined_flag=' ${wl}-bernotok'
13046 allow_undefined_flag=' ${wl}-berok'
13047 # Exported symbols can be pulled into shared objects from archives
13048 whole_archive_flag_spec='$convenience'
13049 archive_cmds_need_lc=yes
13050 # This is similar to how AIX traditionally builds its shared libraries.
13051 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'
13057 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)'
13058 hardcode_libdir_flag_spec='-L$libdir'
13059 hardcode_minus_L=yes
13060 # see comment about different semantics on the GNU ld section
13065 export_dynamic_flag_spec=-rdynamic
13068 cygwin* | mingw* | pw32*)
13069 # When not using gcc, we currently assume that we are using
13070 # Microsoft Visual C++.
13071 # hardcode_libdir_flag_spec is actually meaningless, as there is
13072 # no search path for DLLs.
13073 hardcode_libdir_flag_spec=' '
13074 allow_undefined_flag=unsupported
13075 # Tell ltmain to make .lib files, not .a files.
13077 # Tell ltmain to make .dll files, not .so files.
13079 # FIXME: Setting linknames here is a bad hack.
13080 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13081 # The linker will automatically build a .lib file if we build a DLL.
13082 old_archive_From_new_cmds='true'
13083 # FIXME: Should let the user specify the lib program.
13084 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13085 fix_srcfile_path='`cygpath -w "$srcfile"`'
13086 enable_shared_with_static_runtimes=yes
13089 darwin* | rhapsody*)
13091 rhapsody* | darwin1.[012])
13092 allow_undefined_flag='${wl}-undefined ${wl}suppress'
13095 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13096 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13098 case ${MACOSX_DEPLOYMENT_TARGET} in
13100 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13103 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
13109 archive_cmds_need_lc=no
13111 hardcode_automatic=yes
13112 hardcode_shlibpath_var=unsupported
13113 whole_archive_flag_spec=''
13114 link_all_deplibs=yes
13115 if test "$GCC" = yes ; then
13116 output_verbose_link_cmd='echo'
13117 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13118 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13119 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}"
13120 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}"
13122 case $cc_basename in
13124 output_verbose_link_cmd='echo'
13125 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
13126 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13127 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13128 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13129 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13139 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13140 hardcode_libdir_flag_spec='-L$libdir'
13141 hardcode_shlibpath_var=no
13148 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13149 # support. Future versions do this automatically, but an explicit c++rt0.o
13150 # does not break anything, and helps significantly (at the cost of a little
13153 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13154 hardcode_libdir_flag_spec='-R$libdir'
13155 hardcode_direct=yes
13156 hardcode_shlibpath_var=no
13159 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13161 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13162 hardcode_direct=yes
13163 hardcode_minus_L=yes
13164 hardcode_shlibpath_var=no
13167 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13168 freebsd* | dragonfly*)
13169 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13170 hardcode_libdir_flag_spec='-R$libdir'
13171 hardcode_direct=yes
13172 hardcode_shlibpath_var=no
13176 if test "$GCC" = yes; then
13177 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'
13179 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'
13181 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13182 hardcode_libdir_separator=:
13183 hardcode_direct=yes
13185 # hardcode_minus_L: Not really in the search PATH,
13186 # but as the default location of the library.
13187 hardcode_minus_L=yes
13188 export_dynamic_flag_spec='${wl}-E'
13192 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13193 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13195 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13197 if test "$with_gnu_ld" = no; then
13198 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13199 hardcode_libdir_separator=:
13201 hardcode_direct=yes
13202 export_dynamic_flag_spec='${wl}-E'
13204 # hardcode_minus_L: Not really in the search PATH,
13205 # but as the default location of the library.
13206 hardcode_minus_L=yes
13211 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13214 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13217 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13220 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13226 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13229 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13232 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13236 if test "$with_gnu_ld" = no; then
13237 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13238 hardcode_libdir_separator=:
13242 hardcode_libdir_flag_spec_ld='+b $libdir'
13244 hardcode_shlibpath_var=no
13247 hardcode_direct=yes
13248 export_dynamic_flag_spec='${wl}-E'
13250 # hardcode_minus_L: Not really in the search PATH,
13251 # but as the default location of the library.
13252 hardcode_minus_L=yes
13258 irix5* | irix6* | nonstopux*)
13259 if test "$GCC" = yes; then
13260 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13262 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13263 hardcode_libdir_flag_spec_ld='-rpath $libdir'
13265 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13266 hardcode_libdir_separator=:
13267 link_all_deplibs=yes
13271 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13272 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13274 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13276 hardcode_libdir_flag_spec='-R$libdir'
13277 hardcode_direct=yes
13278 hardcode_shlibpath_var=no
13282 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13283 hardcode_direct=yes
13284 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13285 hardcode_libdir_separator=:
13286 hardcode_shlibpath_var=no
13290 if test -f /usr/libexec/ld.so; then
13291 hardcode_direct=yes
13292 hardcode_shlibpath_var=no
13293 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13294 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13295 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13296 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13297 export_dynamic_flag_spec='${wl}-E'
13300 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13301 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13302 hardcode_libdir_flag_spec='-R$libdir'
13305 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13306 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13316 hardcode_libdir_flag_spec='-L$libdir'
13317 hardcode_minus_L=yes
13318 allow_undefined_flag=unsupported
13319 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'
13320 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13324 if test "$GCC" = yes; then
13325 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13326 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13328 allow_undefined_flag=' -expect_unresolved \*'
13329 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13331 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13332 hardcode_libdir_separator=:
13335 osf4* | osf5*) # as osf3* with the addition of -msym flag
13336 if test "$GCC" = yes; then
13337 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13338 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13339 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13341 allow_undefined_flag=' -expect_unresolved \*'
13342 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13343 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13344 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
13346 # Both c and cxx compiler support -rpath directly
13347 hardcode_libdir_flag_spec='-rpath $libdir'
13349 hardcode_libdir_separator=:
13353 no_undefined_flag=' -z text'
13354 if test "$GCC" = yes; then
13356 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13357 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13358 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13361 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13362 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13363 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13365 hardcode_libdir_flag_spec='-R$libdir'
13366 hardcode_shlibpath_var=no
13368 solaris2.[0-5] | solaris2.[0-5].*) ;;
13370 # The compiler driver will combine and reorder linker options,
13371 # but understands `-z linker_flag'. GCC discards it without `$wl',
13372 # but is careful enough not to reorder.
13373 # Supported since Solaris 2.6 (maybe 2.5.1?)
13374 if test "$GCC" = yes; then
13375 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13377 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13381 link_all_deplibs=yes
13385 if test "x$host_vendor" = xsequent; then
13386 # Use $CC to link under sequent, because it throws in some extra .o
13387 # files that make .init and .fini sections work.
13388 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13390 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13392 hardcode_libdir_flag_spec='-L$libdir'
13393 hardcode_direct=yes
13394 hardcode_minus_L=yes
13395 hardcode_shlibpath_var=no
13399 case $host_vendor in
13401 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13402 hardcode_direct=yes # is this really true???
13405 ## LD is ld it makes a PLAMLIB
13406 ## CC just makes a GrossModule.
13407 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13408 reload_cmds='$CC -r -o $output$reload_objs'
13412 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13413 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13416 runpath_var='LD_RUN_PATH'
13417 hardcode_shlibpath_var=no
13421 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13422 hardcode_shlibpath_var=no
13423 export_dynamic_flag_spec='-Bexport'
13427 if test -d /usr/nec; then
13428 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13429 hardcode_shlibpath_var=no
13430 runpath_var=LD_RUN_PATH
13431 hardcode_runpath_var=yes
13436 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13437 no_undefined_flag='${wl}-z,text'
13438 archive_cmds_need_lc=no
13439 hardcode_shlibpath_var=no
13440 runpath_var='LD_RUN_PATH'
13442 if test "$GCC" = yes; then
13443 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13444 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13446 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13447 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13451 sysv5* | sco3.2v5* | sco5v6*)
13452 # Note: We can NOT use -z defs as we might desire, because we do not
13453 # link with -lc, and that would cause any symbols used from libc to
13454 # always be unresolved, which means just about no library would
13455 # ever link correctly. If we're not using GNU ld we use -z text
13456 # though, which does catch some bad symbols but isn't as heavy-handed
13458 no_undefined_flag='${wl}-z,text'
13459 allow_undefined_flag='${wl}-z,nodefs'
13460 archive_cmds_need_lc=no
13461 hardcode_shlibpath_var=no
13462 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13463 hardcode_libdir_separator=':'
13464 link_all_deplibs=yes
13465 export_dynamic_flag_spec='${wl}-Bexport'
13466 runpath_var='LD_RUN_PATH'
13468 if test "$GCC" = yes; then
13469 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13470 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13472 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13473 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13478 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13479 hardcode_libdir_flag_spec='-L$libdir'
13480 hardcode_shlibpath_var=no
13489 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13490 $as_echo "$ld_shlibs" >&6; }
13491 test "$ld_shlibs" = no && can_build_shared=no
13494 # Do we need to explicitly link libc?
13496 case "x$archive_cmds_need_lc" in
13498 # Assume -lc should be added
13499 archive_cmds_need_lc=yes
13501 if test "$enable_shared" = yes && test "$GCC" = yes; then
13502 case $archive_cmds in
13504 # FIXME: we may have to deal with multi-command sequences.
13507 # Test whether the compiler implicitly links with -lc since on some
13508 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13509 # to ld, don't add -lc before -lgcc.
13510 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13511 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13513 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13516 (eval $ac_compile) 2>&5
13518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); } 2>conftest.err; then
13522 libobjs=conftest.$ac_objext
13524 wl=$lt_prog_compiler_wl
13525 pic_flag=$lt_prog_compiler_pic
13531 lt_save_allow_undefined_flag=$allow_undefined_flag
13532 allow_undefined_flag=
13533 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13534 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537 (exit $ac_status); }
13539 archive_cmds_need_lc=no
13541 archive_cmds_need_lc=yes
13543 allow_undefined_flag=$lt_save_allow_undefined_flag
13545 cat conftest.err 1>&5
13548 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13549 $as_echo "$archive_cmds_need_lc" >&6; }
13556 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13557 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13558 library_names_spec=
13559 libname_spec='lib$name'
13563 postuninstall_cmds=
13567 shlibpath_overrides_runpath=unknown
13569 dynamic_linker="$host_os ld.so"
13570 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13572 if test "$GCC" = yes; then
13574 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
13575 *) lt_awk_arg="/^libraries:/" ;;
13577 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13578 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
13579 # if the path contains ";" then we assume it to be the separator
13580 # otherwise default to the standard path separator (i.e. ":") - it is
13581 # assumed that no part of a normal pathname contains ";" but that should
13582 # okay in the real world where ";" in dirpaths is itself problematic.
13583 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
13585 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13587 # Ok, now we have the path, separated by spaces, we can step through it
13588 # and add multilib dir if necessary.
13589 lt_tmp_lt_search_path_spec=
13590 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13591 for lt_sys_path in $lt_search_path_spec; do
13592 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
13593 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
13595 test -d "$lt_sys_path" && \
13596 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13599 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
13600 BEGIN {RS=" "; FS="/|\n";} {
13603 for (lt_i = NF; lt_i > 0; lt_i--) {
13604 if ($lt_i != "" && $lt_i != ".") {
13605 if ($lt_i == "..") {
13608 if (lt_count == 0) {
13609 lt_foo="/" $lt_i lt_foo;
13616 if (lt_foo != "") { lt_freq[lt_foo]++; }
13617 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13619 sys_lib_search_path_spec=`echo $lt_search_path_spec`
13621 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13623 need_lib_prefix=unknown
13624 hardcode_into_libs=no
13626 # when you set need_version to no, make sure it does not cause -set_version
13627 # flags to be left without arguments
13628 need_version=unknown
13633 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13634 shlibpath_var=LIBPATH
13636 # AIX 3 has no versioning support, so we append a major version to the name.
13637 soname_spec='${libname}${release}${shared_ext}$major'
13644 hardcode_into_libs=yes
13645 if test "$host_cpu" = ia64; then
13646 # AIX 5 supports IA64
13647 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13648 shlibpath_var=LD_LIBRARY_PATH
13650 # With GCC up to 2.95.x, collect2 would create an import file
13651 # for dependence libraries. The import file would start with
13652 # the line `#! .'. This would cause the generated library to
13653 # depend on `.', always an invalid library. This was fixed in
13654 # development snapshots of GCC prior to 3.0.
13656 aix4 | aix4.[01] | aix4.[01].*)
13657 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13659 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13662 can_build_shared=no
13666 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13667 # soname into executable. Probably we can add versioning support to
13668 # collect2, so additional links can be useful in future.
13669 if test "$aix_use_runtimelinking" = yes; then
13670 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13671 # instead of lib<name>.a to let people know that these are not
13672 # typical AIX shared libraries.
13673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13675 # We preserve .a as extension for shared libraries through AIX4.2
13676 # and later when we are not doing run time linking.
13677 library_names_spec='${libname}${release}.a $libname.a'
13678 soname_spec='${libname}${release}${shared_ext}$major'
13680 shlibpath_var=LIBPATH
13685 library_names_spec='$libname.ixlibrary $libname.a'
13686 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13687 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'
13691 library_names_spec='${libname}${shared_ext}'
13692 dynamic_linker="$host_os ld.so"
13693 shlibpath_var=LIBRARY_PATH
13699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13700 soname_spec='${libname}${release}${shared_ext}$major'
13701 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13702 shlibpath_var=LD_LIBRARY_PATH
13703 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13704 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13705 # the default ld.so.conf also contains /usr/contrib/lib and
13706 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13707 # libtool to hard-code these into programs
13710 cygwin* | mingw* | pw32*)
13711 version_type=windows
13716 case $GCC,$host_os in
13717 yes,cygwin* | yes,mingw* | yes,pw32*)
13718 library_names_spec='$libname.dll.a'
13719 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13720 postinstall_cmds='base_file=`basename \${file}`~
13721 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13722 dldir=$destdir/`dirname \$dlpath`~
13723 test -d \$dldir || mkdir -p \$dldir~
13724 $install_prog $dir/$dlname \$dldir/$dlname~
13725 chmod a+x \$dldir/$dlname'
13726 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13727 dlpath=$dir/\$dldll~
13729 shlibpath_overrides_runpath=yes
13733 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13734 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13735 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13738 # MinGW DLLs use traditional 'lib' prefix
13739 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13740 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13741 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13742 # It is most probably a Windows format PATH printed by
13743 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13744 # path with ; separators, and with drive letters. We can handle the
13745 # drive letters (cygwin fileutils understands them), so leave them,
13746 # especially as we might pass files found there to a mingw objdump,
13747 # which wouldn't understand a cygwinified path. Ahh.
13748 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13750 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13754 # pw32 DLLs use 'pw' prefix rather than 'lib'
13755 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13761 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13764 dynamic_linker='Win32 ld.exe'
13765 # FIXME: first we should search . and the directory the executable is in
13769 darwin* | rhapsody*)
13770 dynamic_linker="$host_os dyld"
13771 version_type=darwin
13774 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13775 soname_spec='${libname}${release}${major}$shared_ext'
13776 shlibpath_overrides_runpath=yes
13777 shlibpath_var=DYLD_LIBRARY_PATH
13778 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13780 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13781 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13789 soname_spec='${libname}${release}${shared_ext}$major'
13790 shlibpath_var=LD_LIBRARY_PATH
13797 freebsd* | dragonfly*)
13798 # DragonFly does not have aout. When/if they implement a new
13799 # versioning mechanism, adjust this.
13800 if test -x /usr/bin/objformat; then
13801 objformat=`/usr/bin/objformat`
13804 freebsd[123]*) objformat=aout ;;
13805 *) objformat=elf ;;
13808 version_type=freebsd-$objformat
13809 case $version_type in
13811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13816 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13820 shlibpath_var=LD_LIBRARY_PATH
13823 shlibpath_overrides_runpath=yes
13825 freebsd3.[01]* | freebsdelf3.[01]*)
13826 shlibpath_overrides_runpath=yes
13827 hardcode_into_libs=yes
13829 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13830 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13831 shlibpath_overrides_runpath=no
13832 hardcode_into_libs=yes
13834 *) # from 4.6 on, and DragonFly
13835 shlibpath_overrides_runpath=yes
13836 hardcode_into_libs=yes
13845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13846 soname_spec='${libname}${release}${shared_ext}$major'
13847 shlibpath_var=LD_LIBRARY_PATH
13848 hardcode_into_libs=yes
13851 hpux9* | hpux10* | hpux11*)
13852 # Give a soname corresponding to the major version so that dld.sl refuses to
13853 # link against other versions.
13860 hardcode_into_libs=yes
13861 dynamic_linker="$host_os dld.so"
13862 shlibpath_var=LD_LIBRARY_PATH
13863 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13865 soname_spec='${libname}${release}${shared_ext}$major'
13866 if test "X$HPUX_IA64_MODE" = X32; then
13867 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13869 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13871 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13875 hardcode_into_libs=yes
13876 dynamic_linker="$host_os dld.sl"
13877 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13878 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13880 soname_spec='${libname}${release}${shared_ext}$major'
13881 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13882 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13886 dynamic_linker="$host_os dld.sl"
13887 shlibpath_var=SHLIB_PATH
13888 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13890 soname_spec='${libname}${release}${shared_ext}$major'
13893 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13894 postinstall_cmds='chmod 555 $lib'
13901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13902 soname_spec='${libname}${release}${shared_ext}$major'
13903 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13904 shlibpath_var=LD_LIBRARY_PATH
13905 shlibpath_overrides_runpath=no
13906 hardcode_into_libs=yes
13909 irix5* | irix6* | nonstopux*)
13911 nonstopux*) version_type=nonstopux ;;
13913 if test "$lt_cv_prog_gnu_ld" = yes; then
13921 soname_spec='${libname}${release}${shared_ext}$major'
13922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13924 irix5* | nonstopux*)
13925 libsuff= shlibsuff=
13928 case $LD in # libtool.m4 will add one of these switches to LD
13929 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13930 libsuff= shlibsuff= libmagic=32-bit;;
13931 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13932 libsuff=32 shlibsuff=N32 libmagic=N32;;
13933 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13934 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13935 *) libsuff= shlibsuff= libmagic=never-match;;
13939 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13940 shlibpath_overrides_runpath=no
13941 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13942 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13943 hardcode_into_libs=yes
13946 # No shared lib support for Linux oldld, aout, or coff.
13947 linux*oldld* | linux*aout* | linux*coff*)
13951 # This must be Linux ELF.
13952 linux* | k*bsd*-gnu)
13956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13957 soname_spec='${libname}${release}${shared_ext}$major'
13958 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13959 shlibpath_var=LD_LIBRARY_PATH
13960 shlibpath_overrides_runpath=no
13961 # This implies no fast_install, which is unacceptable.
13962 # Some rework will be needed to allow for fast_install
13963 # before this can be enabled.
13964 hardcode_into_libs=yes
13965 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13966 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13968 # Append ld.so.conf contents to the search path
13969 if test -f /etc/ld.so.conf; then
13970 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' ' '`
13971 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13974 # We used to test for /lib/ld.so.1 and disable shared libraries on
13975 # powerpc, because MkLinux only supported shared libraries with the
13976 # GNU dynamic linker. Since this was broken with cross compilers,
13977 # most powerpc-linux boxes support dynamic linking these days and
13978 # people can always --disable-shared, the test was removed, and we
13979 # assume the GNU/Linux dynamic linker is in use.
13980 dynamic_linker='GNU/Linux ld.so'
13987 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13989 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13990 dynamic_linker='NetBSD (a.out) ld.so'
13992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13993 soname_spec='${libname}${release}${shared_ext}$major'
13994 dynamic_linker='NetBSD ld.elf_so'
13996 shlibpath_var=LD_LIBRARY_PATH
13997 shlibpath_overrides_runpath=yes
13998 hardcode_into_libs=yes
14003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14004 shlibpath_var=LD_LIBRARY_PATH
14005 shlibpath_overrides_runpath=yes
14012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14013 soname_spec='${libname}${release}${shared_ext}$major'
14014 shlibpath_var=LD_LIBRARY_PATH
14015 shlibpath_overrides_runpath=yes
14020 sys_lib_dlsearch_path_spec="/usr/lib"
14022 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14024 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14025 *) need_version=no ;;
14027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14028 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14029 shlibpath_var=LD_LIBRARY_PATH
14030 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14032 openbsd2.[89] | openbsd2.[89].*)
14033 shlibpath_overrides_runpath=no
14036 shlibpath_overrides_runpath=yes
14040 shlibpath_overrides_runpath=yes
14045 libname_spec='$name'
14048 library_names_spec='$libname${shared_ext} $libname.a'
14049 dynamic_linker='OS/2 ld.exe'
14050 shlibpath_var=LIBPATH
14053 osf3* | osf4* | osf5*)
14057 soname_spec='${libname}${release}${shared_ext}$major'
14058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14059 shlibpath_var=LD_LIBRARY_PATH
14060 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14061 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14073 soname_spec='${libname}${release}${shared_ext}$major'
14074 shlibpath_var=LD_LIBRARY_PATH
14075 shlibpath_overrides_runpath=yes
14076 hardcode_into_libs=yes
14077 # ldd complains unless libraries are executable
14078 postinstall_cmds='chmod +x $lib'
14083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14084 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14085 shlibpath_var=LD_LIBRARY_PATH
14086 shlibpath_overrides_runpath=yes
14087 if test "$with_gnu_ld" = yes; then
14095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14096 soname_spec='${libname}${release}${shared_ext}$major'
14097 shlibpath_var=LD_LIBRARY_PATH
14098 case $host_vendor in
14100 shlibpath_overrides_runpath=no
14102 export_dynamic_flag_spec='${wl}-Blargedynsym'
14103 runpath_var=LD_RUN_PATH
14111 shlibpath_overrides_runpath=no
14112 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14118 if test -d /usr/nec ;then
14120 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14121 soname_spec='$libname${shared_ext}.$major'
14122 shlibpath_var=LD_LIBRARY_PATH
14126 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14127 version_type=freebsd-elf
14130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14131 soname_spec='${libname}${release}${shared_ext}$major'
14132 shlibpath_var=LD_LIBRARY_PATH
14133 hardcode_into_libs=yes
14134 if test "$with_gnu_ld" = yes; then
14135 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14136 shlibpath_overrides_runpath=no
14138 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14139 shlibpath_overrides_runpath=yes
14142 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14146 sys_lib_dlsearch_path_spec='/usr/lib'
14151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14152 soname_spec='${libname}${release}${shared_ext}$major'
14153 shlibpath_var=LD_LIBRARY_PATH
14160 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14161 $as_echo "$dynamic_linker" >&6; }
14162 test "$dynamic_linker" = no && can_build_shared=no
14164 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14165 $as_echo_n "(cached) " >&6
14167 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
14170 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14171 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14172 $as_echo_n "(cached) " >&6
14174 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
14177 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14179 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14180 if test "$GCC" = yes; then
14181 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14184 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14185 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14187 if test -n "$hardcode_libdir_flag_spec" || \
14188 test -n "$runpath_var" || \
14189 test "X$hardcode_automatic" = "Xyes" ; then
14191 # We can hardcode non-existant directories.
14192 if test "$hardcode_direct" != no &&
14193 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14194 # have to relink, otherwise we might link with an installed library
14195 # when we should be linking with a yet-to-be-installed one
14196 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
14197 test "$hardcode_minus_L" != no; then
14198 # Linking always hardcodes the temporary library directory.
14199 hardcode_action=relink
14201 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14202 hardcode_action=immediate
14205 # We cannot hardcode anything, or else we can only hardcode existing
14207 hardcode_action=unsupported
14209 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
14210 $as_echo "$hardcode_action" >&6; }
14212 if test "$hardcode_action" = relink; then
14213 # Fast installation is not supported
14214 enable_fast_install=no
14215 elif test "$shlibpath_overrides_runpath" = yes ||
14216 test "$enable_shared" = no; then
14217 # Fast installation is not necessary
14218 enable_fast_install=needless
14223 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14224 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14225 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14226 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14227 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14228 { $as_echo "$as_me:$LINENO: result: yes" >&5
14229 $as_echo "yes" >&6; }
14231 # FIXME - insert some real tests, host_os isn't really good enough
14234 if test -n "$STRIP" ; then
14235 striplib="$STRIP -x"
14236 old_striplib="$STRIP -S"
14237 { $as_echo "$as_me:$LINENO: result: yes" >&5
14238 $as_echo "yes" >&6; }
14240 { $as_echo "$as_me:$LINENO: result: no" >&5
14241 $as_echo "no" >&6; }
14245 { $as_echo "$as_me:$LINENO: result: no" >&5
14246 $as_echo "no" >&6; }
14251 if test "x$enable_dlopen" != xyes; then
14252 enable_dlopen=unknown
14253 enable_dlopen_self=unknown
14254 enable_dlopen_self_static=unknown
14261 lt_cv_dlopen="load_add_on"
14263 lt_cv_dlopen_self=yes
14267 lt_cv_dlopen="LoadLibrary"
14272 lt_cv_dlopen="dlopen"
14277 # if libdl is installed we need to link against it
14278 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14279 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14280 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14281 $as_echo_n "(cached) " >&6
14283 ac_check_lib_save_LIBS=$LIBS
14285 cat >conftest.$ac_ext <<_ACEOF
14288 cat confdefs.h >>conftest.$ac_ext
14289 cat >>conftest.$ac_ext <<_ACEOF
14290 /* end confdefs.h. */
14292 /* Override any GCC internal prototype to avoid an error.
14293 Use char because int might match the return type of a GCC
14294 builtin and then its argument prototype would still apply. */
14307 rm -f conftest.$ac_objext conftest$ac_exeext
14308 if { (ac_try="$ac_link"
14309 case "(($ac_try" in
14310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14311 *) ac_try_echo=$ac_try;;
14313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14314 $as_echo "$ac_try_echo") >&5
14315 (eval "$ac_link") 2>conftest.er1
14317 grep -v '^ *+' conftest.er1 >conftest.err
14319 cat conftest.err >&5
14320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14321 (exit $ac_status); } && {
14322 test -z "$ac_c_werror_flag" ||
14323 test ! -s conftest.err
14324 } && test -s conftest$ac_exeext && {
14325 test "$cross_compiling" = yes ||
14326 $as_test_x conftest$ac_exeext
14328 ac_cv_lib_dl_dlopen=yes
14330 $as_echo "$as_me: failed program was:" >&5
14331 sed 's/^/| /' conftest.$ac_ext >&5
14333 ac_cv_lib_dl_dlopen=no
14336 rm -rf conftest.dSYM
14337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14338 conftest$ac_exeext conftest.$ac_ext
14339 LIBS=$ac_check_lib_save_LIBS
14341 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14342 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14343 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
14344 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14347 lt_cv_dlopen="dyld"
14349 lt_cv_dlopen_self=yes
14356 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
14357 $as_echo_n "checking for shl_load... " >&6; }
14358 if test "${ac_cv_func_shl_load+set}" = set; then
14359 $as_echo_n "(cached) " >&6
14361 cat >conftest.$ac_ext <<_ACEOF
14364 cat confdefs.h >>conftest.$ac_ext
14365 cat >>conftest.$ac_ext <<_ACEOF
14366 /* end confdefs.h. */
14367 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14369 #define shl_load innocuous_shl_load
14371 /* System header to define __stub macros and hopefully few prototypes,
14372 which can conflict with char shl_load (); below.
14373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14374 <limits.h> exists even on freestanding compilers. */
14377 # include <limits.h>
14379 # include <assert.h>
14384 /* Override any GCC internal prototype to avoid an error.
14385 Use char because int might match the return type of a GCC
14386 builtin and then its argument prototype would still apply. */
14391 /* The GNU C library defines this for functions which it implements
14392 to always fail with ENOSYS. Some functions are actually named
14393 something starting with __ and the normal name is an alias. */
14394 #if defined __stub_shl_load || defined __stub___shl_load
14401 return shl_load ();
14406 rm -f conftest.$ac_objext conftest$ac_exeext
14407 if { (ac_try="$ac_link"
14408 case "(($ac_try" in
14409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14410 *) ac_try_echo=$ac_try;;
14412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14413 $as_echo "$ac_try_echo") >&5
14414 (eval "$ac_link") 2>conftest.er1
14416 grep -v '^ *+' conftest.er1 >conftest.err
14418 cat conftest.err >&5
14419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420 (exit $ac_status); } && {
14421 test -z "$ac_c_werror_flag" ||
14422 test ! -s conftest.err
14423 } && test -s conftest$ac_exeext && {
14424 test "$cross_compiling" = yes ||
14425 $as_test_x conftest$ac_exeext
14427 ac_cv_func_shl_load=yes
14429 $as_echo "$as_me: failed program was:" >&5
14430 sed 's/^/| /' conftest.$ac_ext >&5
14432 ac_cv_func_shl_load=no
14435 rm -rf conftest.dSYM
14436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14437 conftest$ac_exeext conftest.$ac_ext
14439 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14440 $as_echo "$ac_cv_func_shl_load" >&6; }
14441 if test "x$ac_cv_func_shl_load" = x""yes; then
14442 lt_cv_dlopen="shl_load"
14444 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14445 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14446 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14447 $as_echo_n "(cached) " >&6
14449 ac_check_lib_save_LIBS=$LIBS
14451 cat >conftest.$ac_ext <<_ACEOF
14454 cat confdefs.h >>conftest.$ac_ext
14455 cat >>conftest.$ac_ext <<_ACEOF
14456 /* end confdefs.h. */
14458 /* Override any GCC internal prototype to avoid an error.
14459 Use char because int might match the return type of a GCC
14460 builtin and then its argument prototype would still apply. */
14468 return shl_load ();
14473 rm -f conftest.$ac_objext conftest$ac_exeext
14474 if { (ac_try="$ac_link"
14475 case "(($ac_try" in
14476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14477 *) ac_try_echo=$ac_try;;
14479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14480 $as_echo "$ac_try_echo") >&5
14481 (eval "$ac_link") 2>conftest.er1
14483 grep -v '^ *+' conftest.er1 >conftest.err
14485 cat conftest.err >&5
14486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487 (exit $ac_status); } && {
14488 test -z "$ac_c_werror_flag" ||
14489 test ! -s conftest.err
14490 } && test -s conftest$ac_exeext && {
14491 test "$cross_compiling" = yes ||
14492 $as_test_x conftest$ac_exeext
14494 ac_cv_lib_dld_shl_load=yes
14496 $as_echo "$as_me: failed program was:" >&5
14497 sed 's/^/| /' conftest.$ac_ext >&5
14499 ac_cv_lib_dld_shl_load=no
14502 rm -rf conftest.dSYM
14503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14504 conftest$ac_exeext conftest.$ac_ext
14505 LIBS=$ac_check_lib_save_LIBS
14507 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14508 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14509 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
14510 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
14512 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
14513 $as_echo_n "checking for dlopen... " >&6; }
14514 if test "${ac_cv_func_dlopen+set}" = set; then
14515 $as_echo_n "(cached) " >&6
14517 cat >conftest.$ac_ext <<_ACEOF
14520 cat confdefs.h >>conftest.$ac_ext
14521 cat >>conftest.$ac_ext <<_ACEOF
14522 /* end confdefs.h. */
14523 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14524 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14525 #define dlopen innocuous_dlopen
14527 /* System header to define __stub macros and hopefully few prototypes,
14528 which can conflict with char dlopen (); below.
14529 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14530 <limits.h> exists even on freestanding compilers. */
14533 # include <limits.h>
14535 # include <assert.h>
14540 /* Override any GCC internal prototype to avoid an error.
14541 Use char because int might match the return type of a GCC
14542 builtin and then its argument prototype would still apply. */
14547 /* The GNU C library defines this for functions which it implements
14548 to always fail with ENOSYS. Some functions are actually named
14549 something starting with __ and the normal name is an alias. */
14550 #if defined __stub_dlopen || defined __stub___dlopen
14562 rm -f conftest.$ac_objext conftest$ac_exeext
14563 if { (ac_try="$ac_link"
14564 case "(($ac_try" in
14565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14566 *) ac_try_echo=$ac_try;;
14568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14569 $as_echo "$ac_try_echo") >&5
14570 (eval "$ac_link") 2>conftest.er1
14572 grep -v '^ *+' conftest.er1 >conftest.err
14574 cat conftest.err >&5
14575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576 (exit $ac_status); } && {
14577 test -z "$ac_c_werror_flag" ||
14578 test ! -s conftest.err
14579 } && test -s conftest$ac_exeext && {
14580 test "$cross_compiling" = yes ||
14581 $as_test_x conftest$ac_exeext
14583 ac_cv_func_dlopen=yes
14585 $as_echo "$as_me: failed program was:" >&5
14586 sed 's/^/| /' conftest.$ac_ext >&5
14588 ac_cv_func_dlopen=no
14591 rm -rf conftest.dSYM
14592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14593 conftest$ac_exeext conftest.$ac_ext
14595 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14596 $as_echo "$ac_cv_func_dlopen" >&6; }
14597 if test "x$ac_cv_func_dlopen" = x""yes; then
14598 lt_cv_dlopen="dlopen"
14600 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14601 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14602 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14603 $as_echo_n "(cached) " >&6
14605 ac_check_lib_save_LIBS=$LIBS
14607 cat >conftest.$ac_ext <<_ACEOF
14610 cat confdefs.h >>conftest.$ac_ext
14611 cat >>conftest.$ac_ext <<_ACEOF
14612 /* end confdefs.h. */
14614 /* Override any GCC internal prototype to avoid an error.
14615 Use char because int might match the return type of a GCC
14616 builtin and then its argument prototype would still apply. */
14629 rm -f conftest.$ac_objext conftest$ac_exeext
14630 if { (ac_try="$ac_link"
14631 case "(($ac_try" in
14632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14633 *) ac_try_echo=$ac_try;;
14635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14636 $as_echo "$ac_try_echo") >&5
14637 (eval "$ac_link") 2>conftest.er1
14639 grep -v '^ *+' conftest.er1 >conftest.err
14641 cat conftest.err >&5
14642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); } && {
14644 test -z "$ac_c_werror_flag" ||
14645 test ! -s conftest.err
14646 } && test -s conftest$ac_exeext && {
14647 test "$cross_compiling" = yes ||
14648 $as_test_x conftest$ac_exeext
14650 ac_cv_lib_dl_dlopen=yes
14652 $as_echo "$as_me: failed program was:" >&5
14653 sed 's/^/| /' conftest.$ac_ext >&5
14655 ac_cv_lib_dl_dlopen=no
14658 rm -rf conftest.dSYM
14659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14660 conftest$ac_exeext conftest.$ac_ext
14661 LIBS=$ac_check_lib_save_LIBS
14663 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14664 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14665 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
14666 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14668 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14669 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14670 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14671 $as_echo_n "(cached) " >&6
14673 ac_check_lib_save_LIBS=$LIBS
14674 LIBS="-lsvld $LIBS"
14675 cat >conftest.$ac_ext <<_ACEOF
14678 cat confdefs.h >>conftest.$ac_ext
14679 cat >>conftest.$ac_ext <<_ACEOF
14680 /* end confdefs.h. */
14682 /* Override any GCC internal prototype to avoid an error.
14683 Use char because int might match the return type of a GCC
14684 builtin and then its argument prototype would still apply. */
14697 rm -f conftest.$ac_objext conftest$ac_exeext
14698 if { (ac_try="$ac_link"
14699 case "(($ac_try" in
14700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14701 *) ac_try_echo=$ac_try;;
14703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14704 $as_echo "$ac_try_echo") >&5
14705 (eval "$ac_link") 2>conftest.er1
14707 grep -v '^ *+' conftest.er1 >conftest.err
14709 cat conftest.err >&5
14710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); } && {
14712 test -z "$ac_c_werror_flag" ||
14713 test ! -s conftest.err
14714 } && test -s conftest$ac_exeext && {
14715 test "$cross_compiling" = yes ||
14716 $as_test_x conftest$ac_exeext
14718 ac_cv_lib_svld_dlopen=yes
14720 $as_echo "$as_me: failed program was:" >&5
14721 sed 's/^/| /' conftest.$ac_ext >&5
14723 ac_cv_lib_svld_dlopen=no
14726 rm -rf conftest.dSYM
14727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14728 conftest$ac_exeext conftest.$ac_ext
14729 LIBS=$ac_check_lib_save_LIBS
14731 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14732 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14733 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
14734 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14736 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14737 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14738 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14739 $as_echo_n "(cached) " >&6
14741 ac_check_lib_save_LIBS=$LIBS
14743 cat >conftest.$ac_ext <<_ACEOF
14746 cat confdefs.h >>conftest.$ac_ext
14747 cat >>conftest.$ac_ext <<_ACEOF
14748 /* end confdefs.h. */
14750 /* Override any GCC internal prototype to avoid an error.
14751 Use char because int might match the return type of a GCC
14752 builtin and then its argument prototype would still apply. */
14760 return dld_link ();
14765 rm -f conftest.$ac_objext conftest$ac_exeext
14766 if { (ac_try="$ac_link"
14767 case "(($ac_try" in
14768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14769 *) ac_try_echo=$ac_try;;
14771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14772 $as_echo "$ac_try_echo") >&5
14773 (eval "$ac_link") 2>conftest.er1
14775 grep -v '^ *+' conftest.er1 >conftest.err
14777 cat conftest.err >&5
14778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779 (exit $ac_status); } && {
14780 test -z "$ac_c_werror_flag" ||
14781 test ! -s conftest.err
14782 } && test -s conftest$ac_exeext && {
14783 test "$cross_compiling" = yes ||
14784 $as_test_x conftest$ac_exeext
14786 ac_cv_lib_dld_dld_link=yes
14788 $as_echo "$as_me: failed program was:" >&5
14789 sed 's/^/| /' conftest.$ac_ext >&5
14791 ac_cv_lib_dld_dld_link=no
14794 rm -rf conftest.dSYM
14795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14796 conftest$ac_exeext conftest.$ac_ext
14797 LIBS=$ac_check_lib_save_LIBS
14799 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14800 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14801 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
14802 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14823 if test "x$lt_cv_dlopen" != xno; then
14829 case $lt_cv_dlopen in
14831 save_CPPFLAGS="$CPPFLAGS"
14832 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14834 save_LDFLAGS="$LDFLAGS"
14835 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14838 LIBS="$lt_cv_dlopen_libs $LIBS"
14840 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14841 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14842 if test "${lt_cv_dlopen_self+set}" = set; then
14843 $as_echo_n "(cached) " >&6
14845 if test "$cross_compiling" = yes; then :
14846 lt_cv_dlopen_self=cross
14848 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14849 lt_status=$lt_dlunknown
14850 cat > conftest.$ac_ext <<EOF
14851 #line 14851 "configure"
14852 #include "confdefs.h"
14861 # define LT_DLGLOBAL RTLD_GLOBAL
14864 # define LT_DLGLOBAL DL_GLOBAL
14866 # define LT_DLGLOBAL 0
14870 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14871 find out it does not work in some platform. */
14872 #ifndef LT_DLLAZY_OR_NOW
14874 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14877 # define LT_DLLAZY_OR_NOW DL_LAZY
14880 # define LT_DLLAZY_OR_NOW RTLD_NOW
14883 # define LT_DLLAZY_OR_NOW DL_NOW
14885 # define LT_DLLAZY_OR_NOW 0
14893 extern "C" void exit (int);
14896 void fnord() { int i=42;}
14899 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14900 int status = $lt_dlunknown;
14904 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14905 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14906 /* dlclose (self); */
14914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14915 (eval $ac_link) 2>&5
14917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14919 (./conftest; exit; ) >&5 2>/dev/null
14921 case x$lt_status in
14922 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14923 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14924 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14927 # compilation failed
14928 lt_cv_dlopen_self=no
14935 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14936 $as_echo "$lt_cv_dlopen_self" >&6; }
14938 if test "x$lt_cv_dlopen_self" = xyes; then
14939 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14940 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14941 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14942 if test "${lt_cv_dlopen_self_static+set}" = set; then
14943 $as_echo_n "(cached) " >&6
14945 if test "$cross_compiling" = yes; then :
14946 lt_cv_dlopen_self_static=cross
14948 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14949 lt_status=$lt_dlunknown
14950 cat > conftest.$ac_ext <<EOF
14951 #line 14951 "configure"
14952 #include "confdefs.h"
14961 # define LT_DLGLOBAL RTLD_GLOBAL
14964 # define LT_DLGLOBAL DL_GLOBAL
14966 # define LT_DLGLOBAL 0
14970 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14971 find out it does not work in some platform. */
14972 #ifndef LT_DLLAZY_OR_NOW
14974 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14977 # define LT_DLLAZY_OR_NOW DL_LAZY
14980 # define LT_DLLAZY_OR_NOW RTLD_NOW
14983 # define LT_DLLAZY_OR_NOW DL_NOW
14985 # define LT_DLLAZY_OR_NOW 0
14993 extern "C" void exit (int);
14996 void fnord() { int i=42;}
14999 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15000 int status = $lt_dlunknown;
15004 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15005 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15006 /* dlclose (self); */
15014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15015 (eval $ac_link) 2>&5
15017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15019 (./conftest; exit; ) >&5 2>/dev/null
15021 case x$lt_status in
15022 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15023 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15024 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15027 # compilation failed
15028 lt_cv_dlopen_self_static=no
15035 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
15036 $as_echo "$lt_cv_dlopen_self_static" >&6; }
15039 CPPFLAGS="$save_CPPFLAGS"
15040 LDFLAGS="$save_LDFLAGS"
15045 case $lt_cv_dlopen_self in
15046 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15047 *) enable_dlopen_self=unknown ;;
15050 case $lt_cv_dlopen_self_static in
15051 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15052 *) enable_dlopen_self_static=unknown ;;
15057 # Report which library types will actually be built
15058 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15059 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15060 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
15061 $as_echo "$can_build_shared" >&6; }
15063 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15064 $as_echo_n "checking whether to build shared libraries... " >&6; }
15065 test "$can_build_shared" = "no" && enable_shared=no
15067 # On AIX, shared libraries and static libraries use the same namespace, and
15068 # are all built from PIC.
15071 test "$enable_shared" = yes && enable_static=no
15072 if test -n "$RANLIB"; then
15073 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15074 postinstall_cmds='$RANLIB $lib'
15079 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15080 test "$enable_shared" = yes && enable_static=no
15084 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
15085 $as_echo "$enable_shared" >&6; }
15087 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15088 $as_echo_n "checking whether to build static libraries... " >&6; }
15089 # Make sure either enable_shared or enable_static is yes.
15090 test "$enable_shared" = yes || enable_static=yes
15091 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
15092 $as_echo "$enable_static" >&6; }
15094 # The else clause should only fire when bootstrapping the
15095 # libtool distribution, otherwise you forgot to ship ltmain.sh
15096 # with your package, and you will get complaints that there are
15097 # no rules to generate ltmain.sh.
15098 if test -f "$ltmain"; then
15099 # See if we are running on zsh, and set the options which allow our commands through
15100 # without removal of \ escapes.
15101 if test -n "${ZSH_VERSION+set}" ; then
15102 setopt NO_GLOB_SUBST
15104 # Now quote all the things that may contain metacharacters while being
15105 # careful not to overquote the AC_SUBSTed values. We take copies of the
15106 # variables and quote the copies for generation of the libtool script.
15107 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15109 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15110 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15111 deplibs_check_method reload_flag reload_cmds need_locks \
15112 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15113 lt_cv_sys_global_symbol_to_c_name_address \
15114 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15115 old_postinstall_cmds old_postuninstall_cmds \
15119 lt_prog_compiler_wl \
15120 lt_prog_compiler_pic \
15121 lt_prog_compiler_static \
15122 lt_prog_compiler_no_builtin_flag \
15123 export_dynamic_flag_spec \
15124 thread_safe_flag_spec \
15125 whole_archive_flag_spec \
15126 enable_shared_with_static_runtimes \
15128 old_archive_from_new_cmds \
15133 compiler_lib_search_path \
15134 compiler_lib_search_dirs \
15136 archive_expsym_cmds \
15138 postuninstall_cmds \
15139 old_archive_from_expsyms_cmds \
15140 allow_undefined_flag \
15141 no_undefined_flag \
15142 export_symbols_cmds \
15143 hardcode_libdir_flag_spec \
15144 hardcode_libdir_flag_spec_ld \
15145 hardcode_libdir_separator \
15146 hardcode_automatic \
15148 module_expsym_cmds \
15149 lt_cv_prog_compiler_c_o \
15152 include_expsyms; do
15155 old_archive_cmds | \
15156 old_archive_from_new_cmds | \
15158 archive_expsym_cmds | \
15160 module_expsym_cmds | \
15161 old_archive_from_expsyms_cmds | \
15162 export_symbols_cmds | \
15163 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15164 postinstall_cmds | postuninstall_cmds | \
15165 old_postinstall_cmds | old_postuninstall_cmds | \
15166 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15167 # Double-quote double-evaled strings.
15168 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15171 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15177 *'\$0 --fallback-echo"')
15178 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15182 cfgfile="${ofile}T"
15183 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
15185 { $as_echo "$as_me:$LINENO: creating $ofile" >&5
15186 $as_echo "$as_me: creating $ofile" >&6;}
15188 cat <<__EOF__ >> "$cfgfile"
15191 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15192 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
15193 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15195 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
15196 # Free Software Foundation, Inc.
15198 # This file is part of GNU Libtool:
15199 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
15201 # This program is free software; you can redistribute it and/or modify
15202 # it under the terms of the GNU General Public License as published by
15203 # the Free Software Foundation; either version 2 of the License, or
15204 # (at your option) any later version.
15206 # This program is distributed in the hope that it will be useful, but
15207 # WITHOUT ANY WARRANTY; without even the implied warranty of
15208 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15209 # General Public License for more details.
15211 # You should have received a copy of the GNU General Public License
15212 # along with this program; if not, write to the Free Software
15213 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15215 # As a special exception to the GNU General Public License, if you
15216 # distribute this file as part of a program that contains a
15217 # configuration script generated by Autoconf, you may include it under
15218 # the same distribution terms that you use for the rest of that program.
15220 # A sed program that does not truncate output.
15223 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15224 Xsed="$SED -e 1s/^X//"
15226 # The HP-UX ksh and POSIX shell print the target directory to stdout
15227 # if CDPATH is set.
15228 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15230 # The names of the tagged configurations supported by this script.
15233 # ### BEGIN LIBTOOL CONFIG
15235 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15237 # Shell to use when invoking shell scripts.
15240 # Whether or not to build shared libraries.
15241 build_libtool_libs=$enable_shared
15243 # Whether or not to build static libraries.
15244 build_old_libs=$enable_static
15246 # Whether or not to add -lc for building shared libraries.
15247 build_libtool_need_lc=$archive_cmds_need_lc
15249 # Whether or not to disallow shared libs when runtime libs are static
15250 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15252 # Whether or not to optimize for fast installation.
15253 fast_install=$enable_fast_install
15256 host_alias=$host_alias
15260 # The build system.
15261 build_alias=$build_alias
15265 # An echo program that does not interpret backslashes.
15270 AR_FLAGS=$lt_AR_FLAGS
15275 # LTCC compiler flags.
15276 LTCFLAGS=$lt_LTCFLAGS
15278 # A language-specific compiler.
15281 # Is the compiler the GNU C compiler?
15287 # The linker used to build libraries.
15290 # Whether we need hard or soft links.
15293 # A BSD-compatible nm program.
15296 # A symbol stripping program
15299 # Used to examine libraries when file_magic_cmd begins "file"
15300 MAGIC_CMD=$MAGIC_CMD
15302 # Used on cygwin: DLL creation program.
15305 # Used on cygwin: object dumper.
15308 # Used on cygwin: assembler.
15311 # The name of the directory that contains temporary libtool files.
15314 # How to create reloadable object files.
15315 reload_flag=$lt_reload_flag
15316 reload_cmds=$lt_reload_cmds
15318 # How to pass a linker flag through the compiler.
15319 wl=$lt_lt_prog_compiler_wl
15321 # Object file suffix (normally "o").
15322 objext="$ac_objext"
15324 # Old archive suffix (normally "a").
15327 # Shared library suffix (normally ".so").
15328 shrext_cmds='$shrext_cmds'
15330 # Executable file suffix (normally "").
15333 # Additional compiler flags for building library objects.
15334 pic_flag=$lt_lt_prog_compiler_pic
15337 # What is the maximum length of a command?
15338 max_cmd_len=$lt_cv_sys_max_cmd_len
15340 # Does compiler simultaneously support -c and -o options?
15341 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15343 # Must we lock files when doing compilation?
15344 need_locks=$lt_need_locks
15346 # Do we need the lib prefix for modules?
15347 need_lib_prefix=$need_lib_prefix
15349 # Do we need a version for libraries?
15350 need_version=$need_version
15352 # Whether dlopen is supported.
15353 dlopen_support=$enable_dlopen
15355 # Whether dlopen of programs is supported.
15356 dlopen_self=$enable_dlopen_self
15358 # Whether dlopen of statically linked programs is supported.
15359 dlopen_self_static=$enable_dlopen_self_static
15361 # Compiler flag to prevent dynamic linking.
15362 link_static_flag=$lt_lt_prog_compiler_static
15364 # Compiler flag to turn off builtin functions.
15365 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15367 # Compiler flag to allow reflexive dlopens.
15368 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15370 # Compiler flag to generate shared objects directly from archives.
15371 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15373 # Compiler flag to generate thread-safe objects.
15374 thread_safe_flag_spec=$lt_thread_safe_flag_spec
15376 # Library versioning type.
15377 version_type=$version_type
15379 # Format of library name prefix.
15380 libname_spec=$lt_libname_spec
15382 # List of archive names. First name is the real one, the rest are links.
15383 # The last name is the one that the linker finds with -lNAME.
15384 library_names_spec=$lt_library_names_spec
15386 # The coded name of the library, if different from the real name.
15387 soname_spec=$lt_soname_spec
15389 # Commands used to build and install an old-style archive.
15391 old_archive_cmds=$lt_old_archive_cmds
15392 old_postinstall_cmds=$lt_old_postinstall_cmds
15393 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15395 # Create an old-style archive from a shared archive.
15396 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15398 # Create a temporary old-style archive to link instead of a shared archive.
15399 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15401 # Commands used to build and install a shared archive.
15402 archive_cmds=$lt_archive_cmds
15403 archive_expsym_cmds=$lt_archive_expsym_cmds
15404 postinstall_cmds=$lt_postinstall_cmds
15405 postuninstall_cmds=$lt_postuninstall_cmds
15407 # Commands used to build a loadable module (assumed same as above if empty)
15408 module_cmds=$lt_module_cmds
15409 module_expsym_cmds=$lt_module_expsym_cmds
15411 # Commands to strip libraries.
15412 old_striplib=$lt_old_striplib
15413 striplib=$lt_striplib
15415 # Dependencies to place before the objects being linked to create a
15417 predep_objects=$lt_predep_objects
15419 # Dependencies to place after the objects being linked to create a
15421 postdep_objects=$lt_postdep_objects
15423 # Dependencies to place before the objects being linked to create a
15425 predeps=$lt_predeps
15427 # Dependencies to place after the objects being linked to create a
15429 postdeps=$lt_postdeps
15431 # The directories searched by this compiler when creating a shared
15433 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
15435 # The library search path used internally by the compiler when linking
15436 # a shared library.
15437 compiler_lib_search_path=$lt_compiler_lib_search_path
15439 # Method to check whether dependent libraries are shared objects.
15440 deplibs_check_method=$lt_deplibs_check_method
15442 # Command to use when deplibs_check_method == file_magic.
15443 file_magic_cmd=$lt_file_magic_cmd
15445 # Flag that allows shared libraries with undefined symbols to be built.
15446 allow_undefined_flag=$lt_allow_undefined_flag
15448 # Flag that forces no undefined symbols.
15449 no_undefined_flag=$lt_no_undefined_flag
15451 # Commands used to finish a libtool library installation in a directory.
15452 finish_cmds=$lt_finish_cmds
15454 # Same as above, but a single script fragment to be evaled but not shown.
15455 finish_eval=$lt_finish_eval
15457 # Take the output of nm and produce a listing of raw symbols and C names.
15458 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15460 # Transform the output of nm in a proper C declaration
15461 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15463 # Transform the output of nm in a C name address pair
15464 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15466 # This is the shared library runtime path variable.
15467 runpath_var=$runpath_var
15469 # This is the shared library path variable.
15470 shlibpath_var=$shlibpath_var
15472 # Is shlibpath searched before the hard-coded library search path?
15473 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15475 # How to hardcode a shared library path into an executable.
15476 hardcode_action=$hardcode_action
15478 # Whether we should hardcode library paths into libraries.
15479 hardcode_into_libs=$hardcode_into_libs
15481 # Flag to hardcode \$libdir into a binary during linking.
15482 # This must work even if \$libdir does not exist.
15483 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15485 # If ld is used when linking, flag to hardcode \$libdir into
15486 # a binary during linking. This must work even if \$libdir does
15488 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15490 # Whether we need a single -rpath flag with a separated argument.
15491 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15493 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15494 # resulting binary.
15495 hardcode_direct=$hardcode_direct
15497 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15498 # resulting binary.
15499 hardcode_minus_L=$hardcode_minus_L
15501 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15502 # the resulting binary.
15503 hardcode_shlibpath_var=$hardcode_shlibpath_var
15505 # Set to yes if building a shared library automatically hardcodes DIR into the library
15506 # and all subsequent libraries and executables linked against it.
15507 hardcode_automatic=$hardcode_automatic
15509 # Variables whose values should be saved in libtool wrapper scripts and
15510 # restored at relink time.
15511 variables_saved_for_relink="$variables_saved_for_relink"
15513 # Whether libtool must link a program against all its dependency libraries.
15514 link_all_deplibs=$link_all_deplibs
15516 # Compile-time system search path for libraries
15517 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15519 # Run-time system search path for libraries
15520 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15522 # Fix the shell variable \$srcfile for the compiler.
15523 fix_srcfile_path=$lt_fix_srcfile_path
15525 # Set to yes if exported symbols are required.
15526 always_export_symbols=$always_export_symbols
15528 # The commands to list exported symbols.
15529 export_symbols_cmds=$lt_export_symbols_cmds
15531 # The commands to extract the exported symbol list from a shared archive.
15532 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15534 # Symbols that should not be listed in the preloaded symbols.
15535 exclude_expsyms=$lt_exclude_expsyms
15537 # Symbols that must always be exported.
15538 include_expsyms=$lt_include_expsyms
15540 # ### END LIBTOOL CONFIG
15547 cat <<\EOF >> "$cfgfile"
15549 # AIX sometimes has problems with the GCC collect2 program. For some
15550 # reason, if we set the COLLECT_NAMES environment variable, the problems
15551 # vanish in a puff of smoke.
15552 if test "X${COLLECT_NAMES+set}" != Xset; then
15554 export COLLECT_NAMES
15560 # We use sed instead of cat because bash on DJGPP gets confused if
15561 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15562 # text mode, it properly converts lines to CR/LF. This bash problem
15563 # is reportedly fixed, but why not run on old versions too?
15564 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
15566 mv -f "$cfgfile" "$ofile" || \
15567 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15571 # If there is no Makefile yet, we rely on a make rule to execute
15572 # `config.status --recheck' to rerun these tests and create the
15573 # libtool script then.
15574 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15575 if test -f "$ltmain_in"; then
15576 test -f Makefile && make "$ltmain"
15582 ac_cpp='$CPP $CPPFLAGS'
15583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15590 # Check whether --with-tags was given.
15591 if test "${with_tags+set}" = set; then
15592 withval=$with_tags; tagnames="$withval"
15596 if test -f "$ltmain" && test -n "$tagnames"; then
15597 if test ! -f "${ofile}"; then
15598 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15599 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15602 if test -z "$LTCC"; then
15603 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15604 if test -z "$LTCC"; then
15605 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15606 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15608 { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15609 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15612 if test -z "$LTCFLAGS"; then
15613 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
15616 # Extract list of available tagged configurations in $ofile.
15617 # Note that this assumes the entire list is on one line.
15618 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15620 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15621 for tagname in $tagnames; do
15623 # Check whether tagname contains only valid characters
15624 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15626 *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15627 $as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
15628 { (exit 1); exit 1; }; }
15632 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15634 { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15635 $as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15636 { (exit 1); exit 1; }; }
15639 # Update the list of available tags.
15640 if test -n "$tagname"; then
15641 echo appending configuration tag \"$tagname\" to $ofile
15645 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15646 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15647 (test "X$CXX" != "Xg++"))) ; then
15649 ac_cpp='$CXXCPP $CPPFLAGS'
15650 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15651 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15652 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15657 archive_cmds_need_lc_CXX=no
15658 allow_undefined_flag_CXX=
15659 always_export_symbols_CXX=no
15660 archive_expsym_cmds_CXX=
15661 export_dynamic_flag_spec_CXX=
15662 hardcode_direct_CXX=no
15663 hardcode_libdir_flag_spec_CXX=
15664 hardcode_libdir_flag_spec_ld_CXX=
15665 hardcode_libdir_separator_CXX=
15666 hardcode_minus_L_CXX=no
15667 hardcode_shlibpath_var_CXX=unsupported
15668 hardcode_automatic_CXX=no
15670 module_expsym_cmds_CXX=
15671 link_all_deplibs_CXX=unknown
15672 old_archive_cmds_CXX=$old_archive_cmds
15673 no_undefined_flag_CXX=
15674 whole_archive_flag_spec_CXX=
15675 enable_shared_with_static_runtimes_CXX=no
15677 # Dependencies to place before and after the object being linked:
15678 predep_objects_CXX=
15679 postdep_objects_CXX=
15682 compiler_lib_search_path_CXX=
15683 compiler_lib_search_dirs_CXX=
15685 # Source file extension for C++ test sources.
15688 # Object file extension for compiled C++ test sources.
15692 # Code to be used in simple compile tests
15693 lt_simple_compile_test_code="int some_variable = 0;"
15695 # Code to be used in simple link tests
15696 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15698 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15700 # If no C compiler was specified, use CC.
15703 # If no C compiler flags were specified, use CFLAGS.
15704 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15706 # Allow CC to be a program name with arguments.
15710 # save warnings/boilerplate of simple test code
15711 ac_outfile=conftest.$ac_objext
15712 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15713 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15714 _lt_compiler_boilerplate=`cat conftest.err`
15717 ac_outfile=conftest.$ac_objext
15718 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15719 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15720 _lt_linker_boilerplate=`cat conftest.err`
15724 # Allow CC to be a program name with arguments.
15729 lt_save_with_gnu_ld=$with_gnu_ld
15730 lt_save_path_LD=$lt_cv_path_LD
15731 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15732 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15734 $as_unset lt_cv_prog_gnu_ld
15736 if test -n "${lt_cv_path_LDCXX+set}"; then
15737 lt_cv_path_LD=$lt_cv_path_LDCXX
15739 $as_unset lt_cv_path_LD
15741 test -z "${LDCXX+set}" || LD=$LDCXX
15745 for cc_temp in $compiler""; do
15747 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15748 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15753 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15756 # We don't want -fno-exception wen compiling C++ code, so set the
15757 # no_builtin_flag separately
15758 if test "$GXX" = yes; then
15759 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15761 lt_prog_compiler_no_builtin_flag_CXX=
15764 if test "$GXX" = yes; then
15765 # Set up default GNU C++ configuration
15768 # Check whether --with-gnu-ld was given.
15769 if test "${with_gnu_ld+set}" = set; then
15770 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15776 if test "$GCC" = yes; then
15777 # Check if gcc -print-prog-name=ld gives a path.
15778 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15779 $as_echo_n "checking for ld used by $CC... " >&6; }
15782 # gcc leaves a trailing carriage return which upsets mingw
15783 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15785 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15788 # Accept absolute paths.
15790 re_direlt='/[^/][^/]*/\.\./'
15791 # Canonicalize the pathname of ld
15792 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15793 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15794 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15796 test -z "$LD" && LD="$ac_prog"
15799 # If it fails, then pretend we aren't using GCC.
15803 # If it is relative, then search for the first ld in PATH.
15804 with_gnu_ld=unknown
15807 elif test "$with_gnu_ld" = yes; then
15808 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
15809 $as_echo_n "checking for GNU ld... " >&6; }
15811 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15812 $as_echo_n "checking for non-GNU ld... " >&6; }
15814 if test "${lt_cv_path_LD+set}" = set; then
15815 $as_echo_n "(cached) " >&6
15817 if test -z "$LD"; then
15818 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15819 for ac_dir in $PATH; do
15821 test -z "$ac_dir" && ac_dir=.
15822 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15823 lt_cv_path_LD="$ac_dir/$ac_prog"
15824 # Check to see if the program is GNU ld. I'd rather use --version,
15825 # but apparently some variants of GNU ld only accept -v.
15826 # Break only if it was the GNU/non-GNU ld that we prefer.
15827 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15828 *GNU* | *'with BFD'*)
15829 test "$with_gnu_ld" != no && break
15832 test "$with_gnu_ld" != yes && break
15839 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15843 LD="$lt_cv_path_LD"
15844 if test -n "$LD"; then
15845 { $as_echo "$as_me:$LINENO: result: $LD" >&5
15846 $as_echo "$LD" >&6; }
15848 { $as_echo "$as_me:$LINENO: result: no" >&5
15849 $as_echo "no" >&6; }
15851 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15852 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15853 { (exit 1); exit 1; }; }
15854 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15855 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15856 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15857 $as_echo_n "(cached) " >&6
15859 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15860 case `$LD -v 2>&1 </dev/null` in
15861 *GNU* | *'with BFD'*)
15862 lt_cv_prog_gnu_ld=yes
15865 lt_cv_prog_gnu_ld=no
15869 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15870 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15871 with_gnu_ld=$lt_cv_prog_gnu_ld
15875 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15876 # archiving commands below assume that GNU ld is being used.
15877 if test "$with_gnu_ld" = yes; then
15878 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15879 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'
15881 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15882 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15884 # If archive_cmds runs LD, not CC, wlarc should be empty
15885 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15886 # investigate it a little bit more. (MM)
15889 # ancient GNU ld didn't support --whole-archive et. al.
15890 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15891 grep 'no-whole-archive' > /dev/null; then
15892 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15894 whole_archive_flag_spec_CXX=
15900 # A generic and very simple default shared library creation
15901 # command for GNU C++ for the case where it uses the native
15902 # linker, instead of GNU ld. If possible, this setting should
15903 # overridden to take advantage of the native linker features on
15904 # the platform it is being used on.
15905 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15908 # Commands to make compiler produce verbose output that lists
15909 # what "hidden" libraries, object files and flags are used when
15910 # linking a shared library.
15911 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15919 # PORTME: fill in a description of your system's C++ link characteristics
15920 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15921 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15925 # FIXME: insert proper C++ library support
15929 if test "$host_cpu" = ia64; then
15930 # On IA64, the linker does run time linking by default, so we don't
15931 # have to do anything special.
15932 aix_use_runtimelinking=no
15933 exp_sym_flag='-Bexport'
15936 aix_use_runtimelinking=no
15938 # Test if we are trying to use run time linking or normal
15939 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15940 # need to do runtime linking.
15941 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15942 for ld_flag in $LDFLAGS; do
15945 aix_use_runtimelinking=yes
15953 exp_sym_flag='-bexport'
15954 no_entry_flag='-bnoentry'
15957 # When large executables or shared objects are built, AIX ld can
15958 # have problems creating the table of contents. If linking a library
15959 # or program results in "error TOC overflow" add -mminimal-toc to
15960 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15961 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15963 archive_cmds_CXX=''
15964 hardcode_direct_CXX=yes
15965 hardcode_libdir_separator_CXX=':'
15966 link_all_deplibs_CXX=yes
15968 if test "$GXX" = yes; then
15969 case $host_os in aix4.[012]|aix4.[012].*)
15970 # We only want to do this on AIX 4.2 and lower, the check
15971 # below for broken collect2 doesn't work under 4.3+
15972 collect2name=`${CC} -print-prog-name=collect2`
15973 if test -f "$collect2name" && \
15974 strings "$collect2name" | grep resolve_lib_name >/dev/null
15976 # We have reworked collect2
15979 # We have old collect2
15980 hardcode_direct_CXX=unsupported
15981 # It fails to find uninstalled libraries when the uninstalled
15982 # path is not listed in the libpath. Setting hardcode_minus_L
15983 # to unsupported forces relinking
15984 hardcode_minus_L_CXX=yes
15985 hardcode_libdir_flag_spec_CXX='-L$libdir'
15986 hardcode_libdir_separator_CXX=
15990 shared_flag='-shared'
15991 if test "$aix_use_runtimelinking" = yes; then
15992 shared_flag="$shared_flag "'${wl}-G'
15996 if test "$host_cpu" = ia64; then
15997 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15998 # chokes on -Wl,-G. The following line is correct:
16001 if test "$aix_use_runtimelinking" = yes; then
16002 shared_flag='${wl}-G'
16004 shared_flag='${wl}-bM:SRE'
16009 # It seems that -bexpall does not export symbols beginning with
16010 # underscore (_), so it is better to generate a list of symbols to export.
16011 always_export_symbols_CXX=yes
16012 if test "$aix_use_runtimelinking" = yes; then
16013 # Warning - without using the other runtime loading flags (-brtl),
16014 # -berok will link without error, but may produce a broken library.
16015 allow_undefined_flag_CXX='-berok'
16016 # Determine the default libpath from the value encoded in an empty executable.
16017 cat >conftest.$ac_ext <<_ACEOF
16020 cat confdefs.h >>conftest.$ac_ext
16021 cat >>conftest.$ac_ext <<_ACEOF
16022 /* end confdefs.h. */
16032 rm -f conftest.$ac_objext conftest$ac_exeext
16033 if { (ac_try="$ac_link"
16034 case "(($ac_try" in
16035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16036 *) ac_try_echo=$ac_try;;
16038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16039 $as_echo "$ac_try_echo") >&5
16040 (eval "$ac_link") 2>conftest.er1
16042 grep -v '^ *+' conftest.er1 >conftest.err
16044 cat conftest.err >&5
16045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046 (exit $ac_status); } && {
16047 test -z "$ac_cxx_werror_flag" ||
16048 test ! -s conftest.err
16049 } && test -s conftest$ac_exeext && {
16050 test "$cross_compiling" = yes ||
16051 $as_test_x conftest$ac_exeext
16054 lt_aix_libpath_sed='
16055 /Import File Strings/,/^$/ {
16061 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16062 # Check for a 64-bit object if we didn't find anything.
16063 if test -z "$aix_libpath"; then
16064 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16067 $as_echo "$as_me: failed program was:" >&5
16068 sed 's/^/| /' conftest.$ac_ext >&5
16073 rm -rf conftest.dSYM
16074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16075 conftest$ac_exeext conftest.$ac_ext
16076 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16078 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16080 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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16082 if test "$host_cpu" = ia64; then
16083 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16084 allow_undefined_flag_CXX="-z nodefs"
16085 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"
16087 # Determine the default libpath from the value encoded in an empty executable.
16088 cat >conftest.$ac_ext <<_ACEOF
16091 cat confdefs.h >>conftest.$ac_ext
16092 cat >>conftest.$ac_ext <<_ACEOF
16093 /* end confdefs.h. */
16103 rm -f conftest.$ac_objext conftest$ac_exeext
16104 if { (ac_try="$ac_link"
16105 case "(($ac_try" in
16106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16107 *) ac_try_echo=$ac_try;;
16109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16110 $as_echo "$ac_try_echo") >&5
16111 (eval "$ac_link") 2>conftest.er1
16113 grep -v '^ *+' conftest.er1 >conftest.err
16115 cat conftest.err >&5
16116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117 (exit $ac_status); } && {
16118 test -z "$ac_cxx_werror_flag" ||
16119 test ! -s conftest.err
16120 } && test -s conftest$ac_exeext && {
16121 test "$cross_compiling" = yes ||
16122 $as_test_x conftest$ac_exeext
16125 lt_aix_libpath_sed='
16126 /Import File Strings/,/^$/ {
16132 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16133 # Check for a 64-bit object if we didn't find anything.
16134 if test -z "$aix_libpath"; then
16135 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16138 $as_echo "$as_me: failed program was:" >&5
16139 sed 's/^/| /' conftest.$ac_ext >&5
16144 rm -rf conftest.dSYM
16145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16146 conftest$ac_exeext conftest.$ac_ext
16147 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16149 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16150 # Warning - without using the other run time loading flags,
16151 # -berok will link without error, but may produce a broken library.
16152 no_undefined_flag_CXX=' ${wl}-bernotok'
16153 allow_undefined_flag_CXX=' ${wl}-berok'
16154 # Exported symbols can be pulled into shared objects from archives
16155 whole_archive_flag_spec_CXX='$convenience'
16156 archive_cmds_need_lc_CXX=yes
16157 # This is similar to how AIX traditionally builds its shared libraries.
16158 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'
16164 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16165 allow_undefined_flag_CXX=unsupported
16166 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16167 # support --undefined. This deserves some investigation. FIXME
16168 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16175 case $cc_basename in
16177 # FIXME: insert proper C++ library support
16183 cygwin* | mingw* | pw32*)
16184 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16185 # as there is no search path for DLLs.
16186 hardcode_libdir_flag_spec_CXX='-L$libdir'
16187 allow_undefined_flag_CXX=unsupported
16188 always_export_symbols_CXX=no
16189 enable_shared_with_static_runtimes_CXX=yes
16191 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16192 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'
16193 # If the export-symbols file already is a .def file (1st line
16194 # is EXPORTS), use it as is; otherwise, prepend...
16195 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16196 cp $export_symbols $output_objdir/$soname.def;
16198 echo EXPORTS > $output_objdir/$soname.def;
16199 cat $export_symbols >> $output_objdir/$soname.def;
16201 $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'
16206 darwin* | rhapsody*)
16207 archive_cmds_need_lc_CXX=no
16208 hardcode_direct_CXX=no
16209 hardcode_automatic_CXX=yes
16210 hardcode_shlibpath_var_CXX=unsupported
16211 whole_archive_flag_spec_CXX=''
16212 link_all_deplibs_CXX=yes
16213 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
16214 if test "$GXX" = yes ; then
16215 output_verbose_link_cmd='echo'
16216 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}"
16217 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16218 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}"
16219 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}"
16220 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
16221 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}"
16222 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}"
16225 case $cc_basename in
16227 output_verbose_link_cmd='echo'
16228 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16229 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16230 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16231 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16232 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16242 case $cc_basename in
16244 # FIXME: insert proper C++ library support
16248 # Green Hills C++ Compiler
16249 # FIXME: insert proper C++ library support
16253 # FIXME: insert proper C++ library support
16259 # C++ shared libraries reported to be fairly broken before switch to ELF
16263 archive_cmds_need_lc_CXX=no
16265 freebsd* | dragonfly*)
16266 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16273 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16274 hardcode_libdir_separator_CXX=:
16275 export_dynamic_flag_spec_CXX='${wl}-E'
16276 hardcode_direct_CXX=yes
16277 hardcode_minus_L_CXX=yes # Not in the search PATH,
16278 # but as the default
16279 # location of the library.
16281 case $cc_basename in
16283 # FIXME: insert proper C++ library support
16287 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'
16288 # Commands to make compiler produce verbose output that lists
16289 # what "hidden" libraries, object files and flags are used when
16290 # linking a shared library.
16292 # There doesn't appear to be a way to prevent this compiler from
16293 # explicitly linking system object files so we need to strip them
16294 # from the output so that they don't get included in the library
16296 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 $list'
16299 if test "$GXX" = yes; then
16300 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'
16302 # FIXME: insert proper C++ library support
16309 if test $with_gnu_ld = no; then
16310 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16311 hardcode_libdir_separator_CXX=:
16316 export_dynamic_flag_spec_CXX='${wl}-E'
16322 hardcode_direct_CXX=no
16323 hardcode_shlibpath_var_CXX=no
16326 hardcode_direct_CXX=yes
16327 hardcode_minus_L_CXX=yes # Not in the search PATH,
16328 # but as the default
16329 # location of the library.
16333 case $cc_basename in
16335 # FIXME: insert proper C++ library support
16341 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16344 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16347 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16350 # Commands to make compiler produce verbose output that lists
16351 # what "hidden" libraries, object files and flags are used when
16352 # linking a shared library.
16354 # There doesn't appear to be a way to prevent this compiler from
16355 # explicitly linking system object files so we need to strip them
16356 # from the output so that they don't get included in the library
16358 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 $list'
16361 if test "$GXX" = yes; then
16362 if test $with_gnu_ld = no; then
16365 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16368 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16371 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'
16376 # FIXME: insert proper C++ library support
16383 hardcode_direct_CXX=no
16384 hardcode_shlibpath_var_CXX=no
16385 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16386 export_dynamic_flag_spec_CXX='${wl}-E'
16387 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16388 # Instead, shared libraries are loaded at an image base (0x10000000 by
16389 # default) and relocated if they conflict, which is a slow very memory
16390 # consuming and fragmenting process. To avoid this, we pick a random,
16391 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16392 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16393 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'
16394 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'
16397 case $cc_basename in
16400 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16402 # Archives containing C++ object files must be created using
16403 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16404 # necessary to make sure instantiated templates are included
16406 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16409 if test "$GXX" = yes; then
16410 if test "$with_gnu_ld" = no; then
16411 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16413 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
16416 link_all_deplibs_CXX=yes
16419 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16420 hardcode_libdir_separator_CXX=:
16422 linux* | k*bsd*-gnu)
16423 case $cc_basename in
16425 # Kuck and Associates, Inc. (KAI) C++ Compiler
16427 # KCC will only create a shared library if the output file
16428 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16429 # to its proper name (with version) after linking.
16430 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'
16431 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'
16432 # Commands to make compiler produce verbose output that lists
16433 # what "hidden" libraries, object files and flags are used when
16434 # linking a shared library.
16436 # There doesn't appear to be a way to prevent this compiler from
16437 # explicitly linking system object files so we need to strip them
16438 # from the output so that they don't get included in the library
16440 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 $list'
16442 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
16443 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16445 # Archives containing C++ object files must be created using
16446 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16447 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16452 # version 8.0 and above of icpc choke on multiply defined symbols
16453 # if we add $predep_objects and $postdep_objects, however 7.1 and
16454 # earlier do not add the objects themselves.
16455 case `$CC -V 2>&1` in
16457 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16458 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'
16460 *) # Version 8.0 or newer
16463 ia64*) tmp_idyn=' -i_dynamic';;
16465 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16466 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'
16469 archive_cmds_need_lc_CXX=no
16470 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16471 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16472 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16475 # Portland Group C++ compiler
16476 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16477 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'
16479 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16480 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16481 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'
16485 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16486 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'
16488 runpath_var=LD_RUN_PATH
16489 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16490 hardcode_libdir_separator_CXX=:
16492 # Commands to make compiler produce verbose output that lists
16493 # what "hidden" libraries, object files and flags are used when
16494 # linking a shared library.
16496 # There doesn't appear to be a way to prevent this compiler from
16497 # explicitly linking system object files so we need to strip them
16498 # from the output so that they don't get included in the library
16500 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "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 $list'
16503 case `$CC -V 2>&1 | sed 5q` in
16506 no_undefined_flag_CXX=' -zdefs'
16507 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16508 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'
16509 hardcode_libdir_flag_spec_CXX='-R$libdir'
16510 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'
16512 # Not sure whether something based on
16513 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16515 output_verbose_link_cmd='echo'
16517 # Archives containing C++ object files must be created using
16518 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16519 # necessary to make sure instantiated templates are included
16521 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16528 # FIXME: insert proper C++ library support
16532 # FIXME: insert proper C++ library support
16536 case $cc_basename in
16538 # FIXME: insert proper C++ library support
16542 # FIXME: insert proper C++ library support
16548 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16549 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16551 hardcode_libdir_flag_spec_CXX='-R$libdir'
16552 hardcode_direct_CXX=yes
16553 hardcode_shlibpath_var_CXX=no
16555 # Workaround some broken pre-1.5 toolchains
16556 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16559 # C++ shared libraries are fairly broken
16563 if test -f /usr/libexec/ld.so; then
16564 hardcode_direct_CXX=yes
16565 hardcode_shlibpath_var_CXX=no
16566 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16567 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16568 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16569 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16570 export_dynamic_flag_spec_CXX='${wl}-E'
16571 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16573 output_verbose_link_cmd='echo'
16579 case $cc_basename in
16581 # Kuck and Associates, Inc. (KAI) C++ Compiler
16583 # KCC will only create a shared library if the output file
16584 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16585 # to its proper name (with version) after linking.
16586 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'
16588 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16589 hardcode_libdir_separator_CXX=:
16591 # Archives containing C++ object files must be created using
16592 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16593 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16597 # Rational C++ 2.4.1
16598 # FIXME: insert proper C++ library support
16602 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16603 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16605 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16606 hardcode_libdir_separator_CXX=:
16608 # Commands to make compiler produce verbose output that lists
16609 # what "hidden" libraries, object files and flags are used when
16610 # linking a shared library.
16612 # There doesn't appear to be a way to prevent this compiler from
16613 # explicitly linking system object files so we need to strip them
16614 # from the output so that they don't get included in the library
16616 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "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 $list'
16619 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16620 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16621 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 ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16623 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16624 hardcode_libdir_separator_CXX=:
16626 # Commands to make compiler produce verbose output that lists
16627 # what "hidden" libraries, object files and flags are used when
16628 # linking a shared library.
16629 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16632 # FIXME: insert proper C++ library support
16639 case $cc_basename in
16641 # Kuck and Associates, Inc. (KAI) C++ Compiler
16643 # KCC will only create a shared library if the output file
16644 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16645 # to its proper name (with version) after linking.
16646 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'
16648 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16649 hardcode_libdir_separator_CXX=:
16651 # Archives containing C++ object files must be created using
16652 # the KAI C++ compiler.
16653 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16656 # Rational C++ 2.4.1
16657 # FIXME: insert proper C++ library support
16661 allow_undefined_flag_CXX=' -expect_unresolved \*'
16662 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16663 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16664 echo "-hidden">> $lib.exp~
16665 $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 -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
16668 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16669 hardcode_libdir_separator_CXX=:
16671 # Commands to make compiler produce verbose output that lists
16672 # what "hidden" libraries, object files and flags are used when
16673 # linking a shared library.
16675 # There doesn't appear to be a way to prevent this compiler from
16676 # explicitly linking system object files so we need to strip them
16677 # from the output so that they don't get included in the library
16679 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "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 $list'
16682 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16683 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16684 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` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16686 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16687 hardcode_libdir_separator_CXX=:
16689 # Commands to make compiler produce verbose output that lists
16690 # what "hidden" libraries, object files and flags are used when
16691 # linking a shared library.
16692 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16695 # FIXME: insert proper C++ library support
16702 # FIXME: insert proper C++ library support
16706 case $cc_basename in
16709 # FIXME: insert proper C++ library support
16714 # FIXME: insert proper C++ library support
16718 # FIXME: insert proper C++ library support
16724 case $cc_basename in
16726 # Sun C++ 4.2, 5.x and Centerline C++
16727 archive_cmds_need_lc_CXX=yes
16728 no_undefined_flag_CXX=' -zdefs'
16729 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16730 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16731 $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'
16733 hardcode_libdir_flag_spec_CXX='-R$libdir'
16734 hardcode_shlibpath_var_CXX=no
16736 solaris2.[0-5] | solaris2.[0-5].*) ;;
16738 # The compiler driver will combine and reorder linker options,
16739 # but understands `-z linker_flag'.
16740 # Supported since Solaris 2.6 (maybe 2.5.1?)
16741 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16744 link_all_deplibs_CXX=yes
16746 output_verbose_link_cmd='echo'
16748 # Archives containing C++ object files must be created using
16749 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16750 # necessary to make sure instantiated templates are included
16752 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16755 # Green Hills C++ Compiler
16756 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16758 # The C++ compiler must be used to create the archive.
16759 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16762 # GNU C++ compiler with Solaris linker
16763 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16764 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16765 if $CC --version | grep -v '^2\.7' > /dev/null; then
16766 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16767 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16768 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16770 # Commands to make compiler produce verbose output that lists
16771 # what "hidden" libraries, object files and flags are used when
16772 # linking a shared library.
16773 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16775 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16777 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16778 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16779 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16781 # Commands to make compiler produce verbose output that lists
16782 # what "hidden" libraries, object files and flags are used when
16783 # linking a shared library.
16784 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16787 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16789 solaris2.[0-5] | solaris2.[0-5].*) ;;
16791 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16798 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16799 no_undefined_flag_CXX='${wl}-z,text'
16800 archive_cmds_need_lc_CXX=no
16801 hardcode_shlibpath_var_CXX=no
16802 runpath_var='LD_RUN_PATH'
16804 case $cc_basename in
16806 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16807 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16810 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16811 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16815 sysv5* | sco3.2v5* | sco5v6*)
16816 # Note: We can NOT use -z defs as we might desire, because we do not
16817 # link with -lc, and that would cause any symbols used from libc to
16818 # always be unresolved, which means just about no library would
16819 # ever link correctly. If we're not using GNU ld we use -z text
16820 # though, which does catch some bad symbols but isn't as heavy-handed
16822 # For security reasons, it is highly recommended that you always
16823 # use absolute paths for naming shared libraries, and exclude the
16824 # DT_RUNPATH tag from executables and libraries. But doing so
16825 # requires that you compile everything twice, which is a pain.
16826 # So that behaviour is only enabled if SCOABSPATH is set to a
16827 # non-empty value in the environment. Most likely only useful for
16828 # creating official distributions of packages.
16829 # This is a hack until libtool officially supports absolute path
16830 # names for shared libraries.
16831 no_undefined_flag_CXX='${wl}-z,text'
16832 allow_undefined_flag_CXX='${wl}-z,nodefs'
16833 archive_cmds_need_lc_CXX=no
16834 hardcode_shlibpath_var_CXX=no
16835 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16836 hardcode_libdir_separator_CXX=':'
16837 link_all_deplibs_CXX=yes
16838 export_dynamic_flag_spec_CXX='${wl}-Bexport'
16839 runpath_var='LD_RUN_PATH'
16841 case $cc_basename in
16843 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16844 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16847 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16848 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16853 case $cc_basename in
16855 # NonStop-UX NCC 3.20
16856 # FIXME: insert proper C++ library support
16860 # FIXME: insert proper C++ library support
16866 # FIXME: insert proper C++ library support
16870 # FIXME: insert proper C++ library support
16874 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16875 $as_echo "$ld_shlibs_CXX" >&6; }
16876 test "$ld_shlibs_CXX" = no && can_build_shared=no
16882 ## There is no encapsulation within the following macros, do not change
16883 ## the running order or otherwise move them around unless you know exactly
16884 ## what you are doing...
16885 cat > conftest.$ac_ext <<EOF
16889 Foo (void) { a = 0; }
16895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16896 (eval $ac_compile) 2>&5
16898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899 (exit $ac_status); }; then
16900 # Parse the compiler output and extract the necessary
16901 # objects, libraries and library flags.
16903 # Sentinel used to keep track of whether or not we are before
16904 # the conftest object file.
16905 pre_test_object_deps_done=no
16907 # The `*' in the case matches for architectures that use `case' in
16908 # $output_verbose_cmd can trigger glob expansion during the loop
16909 # eval without this substitution.
16910 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
16912 for p in `eval $output_verbose_link_cmd`; do
16916 # Some compilers place space between "-{L,R}" and the path.
16917 # Remove the space.
16918 if test $p = "-L" \
16919 || test $p = "-R"; then
16926 if test "$pre_test_object_deps_done" = no; then
16929 # Internal compiler library paths should come after those
16930 # provided the user. The postdeps already come after the
16931 # user supplied libs so there is no need to process them.
16932 if test -z "$compiler_lib_search_path_CXX"; then
16933 compiler_lib_search_path_CXX="${prev}${p}"
16935 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16938 # The "-l" case would never come before the object being
16939 # linked, so don't bother handling this case.
16942 if test -z "$postdeps_CXX"; then
16943 postdeps_CXX="${prev}${p}"
16945 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16951 # This assumes that the test object file only shows up
16952 # once in the compiler output.
16953 if test "$p" = "conftest.$objext"; then
16954 pre_test_object_deps_done=yes
16958 if test "$pre_test_object_deps_done" = no; then
16959 if test -z "$predep_objects_CXX"; then
16960 predep_objects_CXX="$p"
16962 predep_objects_CXX="$predep_objects_CXX $p"
16965 if test -z "$postdep_objects_CXX"; then
16966 postdep_objects_CXX="$p"
16968 postdep_objects_CXX="$postdep_objects_CXX $p"
16973 *) ;; # Ignore the rest.
16981 echo "libtool.m4: error: problem compiling CXX test program"
16984 $rm -f confest.$objext
16986 compiler_lib_search_dirs_CXX=
16987 if test -n "$compiler_lib_search_path_CXX"; then
16988 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
16991 # PORTME: override above test on systems where it is broken
16994 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16995 # hack all around it, let's just trust "g++" to DTRT.
16996 predep_objects_CXX=
16997 postdep_objects_CXX=
17002 case `$CC -V 2>&1 | sed 5q` in
17006 # The more standards-conforming stlport4 library is
17007 # incompatible with the Cstd library. Avoid specifying
17008 # it if it's in CXXFLAGS. Ignore libCrun as
17009 # -library=stlport4 depends on it.
17010 case " $CXX $CXXFLAGS " in
17011 *" -library=stlport4 "*)
17012 solaris_use_stlport4=yes
17015 if test "$solaris_use_stlport4" != yes; then
17016 postdeps_CXX='-library=Cstd -library=Crun'
17023 case $cc_basename in
17025 # The more standards-conforming stlport4 library is
17026 # incompatible with the Cstd library. Avoid specifying
17027 # it if it's in CXXFLAGS. Ignore libCrun as
17028 # -library=stlport4 depends on it.
17029 case " $CXX $CXXFLAGS " in
17030 *" -library=stlport4 "*)
17031 solaris_use_stlport4=yes
17035 # Adding this requires a known-good setup of shared libraries for
17036 # Sun compiler versions before 5.6, else PIC objects from an old
17037 # archive will be linked into the output, leading to subtle bugs.
17038 if test "$solaris_use_stlport4" != yes; then
17039 postdeps_CXX='-library=Cstd -library=Crun'
17046 case " $postdeps_CXX " in
17047 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
17050 lt_prog_compiler_wl_CXX=
17051 lt_prog_compiler_pic_CXX=
17052 lt_prog_compiler_static_CXX=
17054 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17055 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17057 # C++ specific cases for pic, static, wl, etc.
17058 if test "$GXX" = yes; then
17059 lt_prog_compiler_wl_CXX='-Wl,'
17060 lt_prog_compiler_static_CXX='-static'
17064 # All AIX code is PIC.
17065 if test "$host_cpu" = ia64; then
17066 # AIX 5 now supports IA64 processor
17067 lt_prog_compiler_static_CXX='-Bstatic'
17071 # FIXME: we need at least 68020 code to build shared libraries, but
17072 # adding the `-m68020' flag to GCC prevents building anything better,
17074 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17076 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17077 # PIC is the default for these OSes.
17079 mingw* | cygwin* | os2* | pw32*)
17080 # This hack is so that the source file can tell whether it is being
17081 # built for inclusion in a dll (and should export symbols for example).
17082 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17083 # (--disable-auto-import) libraries
17084 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17086 darwin* | rhapsody*)
17087 # PIC is the default on this platform
17088 # Common symbols not allowed in MH_DYLIB files
17089 lt_prog_compiler_pic_CXX='-fno-common'
17092 # DJGPP does not support shared libraries at all
17093 lt_prog_compiler_pic_CXX=
17096 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17097 # Instead, we relocate shared libraries at runtime.
17100 if test -d /usr/nec; then
17101 lt_prog_compiler_pic_CXX=-Kconform_pic
17105 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17106 # not for PA HP-UX.
17111 lt_prog_compiler_pic_CXX='-fPIC'
17116 lt_prog_compiler_pic_CXX='-fPIC'
17122 # All AIX code is PIC.
17123 if test "$host_cpu" = ia64; then
17124 # AIX 5 now supports IA64 processor
17125 lt_prog_compiler_static_CXX='-Bstatic'
17127 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17131 case $cc_basename in
17133 # Green Hills C++ Compiler
17134 # _LT_AC_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"
17139 # PIC is the default on this platform
17140 # Common symbols not allowed in MH_DYLIB files
17141 case $cc_basename in
17143 lt_prog_compiler_pic_CXX='-qnocommon'
17144 lt_prog_compiler_wl_CXX='-Wl,'
17149 case $cc_basename in
17151 lt_prog_compiler_pic_CXX='-KPIC'
17154 # Green Hills C++ Compiler
17155 lt_prog_compiler_pic_CXX='-pic'
17161 freebsd* | dragonfly*)
17162 # FreeBSD uses GNU C++
17164 hpux9* | hpux10* | hpux11*)
17165 case $cc_basename in
17167 lt_prog_compiler_wl_CXX='-Wl,'
17168 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17169 if test "$host_cpu" != ia64; then
17170 lt_prog_compiler_pic_CXX='+Z'
17174 lt_prog_compiler_wl_CXX='-Wl,'
17175 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17181 lt_prog_compiler_pic_CXX='+Z'
17190 # This is c89, which is MS Visual C++ (no shared libs)
17191 # Anyone wants to do a port?
17193 irix5* | irix6* | nonstopux*)
17194 case $cc_basename in
17196 lt_prog_compiler_wl_CXX='-Wl,'
17197 lt_prog_compiler_static_CXX='-non_shared'
17198 # CC pic flag -KPIC is the default.
17204 linux* | k*bsd*-gnu)
17205 case $cc_basename in
17208 lt_prog_compiler_wl_CXX='--backend -Wl,'
17209 lt_prog_compiler_pic_CXX='-fPIC'
17213 lt_prog_compiler_wl_CXX='-Wl,'
17214 lt_prog_compiler_pic_CXX='-KPIC'
17215 lt_prog_compiler_static_CXX='-static'
17218 # Portland Group C++ compiler.
17219 lt_prog_compiler_wl_CXX='-Wl,'
17220 lt_prog_compiler_pic_CXX='-fpic'
17221 lt_prog_compiler_static_CXX='-Bstatic'
17225 # Make sure the PIC flag is empty. It appears that all Alpha
17226 # Linux and Compaq Tru64 Unix objects are PIC.
17227 lt_prog_compiler_pic_CXX=
17228 lt_prog_compiler_static_CXX='-non_shared'
17231 case `$CC -V 2>&1 | sed 5q` in
17234 lt_prog_compiler_pic_CXX='-KPIC'
17235 lt_prog_compiler_static_CXX='-Bstatic'
17236 lt_prog_compiler_wl_CXX='-Qoption ld '
17247 case $cc_basename in
17249 lt_prog_compiler_pic_CXX='-W c,exportall'
17257 osf3* | osf4* | osf5*)
17258 case $cc_basename in
17260 lt_prog_compiler_wl_CXX='--backend -Wl,'
17263 # Rational C++ 2.4.1
17264 lt_prog_compiler_pic_CXX='-pic'
17267 # Digital/Compaq C++
17268 lt_prog_compiler_wl_CXX='-Wl,'
17269 # Make sure the PIC flag is empty. It appears that all Alpha
17270 # Linux and Compaq Tru64 Unix objects are PIC.
17271 lt_prog_compiler_pic_CXX=
17272 lt_prog_compiler_static_CXX='-non_shared'
17281 case $cc_basename in
17283 # Sun C++ 4.2, 5.x and Centerline C++
17284 lt_prog_compiler_pic_CXX='-KPIC'
17285 lt_prog_compiler_static_CXX='-Bstatic'
17286 lt_prog_compiler_wl_CXX='-Qoption ld '
17289 # Green Hills C++ Compiler
17290 lt_prog_compiler_pic_CXX='-PIC'
17297 case $cc_basename in
17300 lt_prog_compiler_pic_CXX='-pic'
17301 lt_prog_compiler_static_CXX='-Bstatic'
17305 lt_prog_compiler_pic_CXX='-pic'
17312 case $cc_basename in
17314 # NonStop-UX NCC 3.20
17315 lt_prog_compiler_pic_CXX='-KPIC'
17321 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17322 case $cc_basename in
17324 lt_prog_compiler_wl_CXX='-Wl,'
17325 lt_prog_compiler_pic_CXX='-KPIC'
17326 lt_prog_compiler_static_CXX='-Bstatic'
17333 lt_prog_compiler_can_build_shared_CXX=no
17338 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
17339 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
17342 # Check to make sure the PIC flag actually works.
17344 if test -n "$lt_prog_compiler_pic_CXX"; then
17346 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17347 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17348 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
17349 $as_echo_n "(cached) " >&6
17351 lt_cv_prog_compiler_pic_works_CXX=no
17352 ac_outfile=conftest.$ac_objext
17353 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17354 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17355 # Insert the option either (1) after the last *FLAGS variable, or
17356 # (2) before a word containing "conftest.", or (3) at the end.
17357 # Note that $ac_compile itself does not contain backslashes and begins
17358 # with a dollar sign (not a hyphen), so the echo should work correctly.
17359 # The option is referenced via a variable to avoid confusing sed.
17360 lt_compile=`echo "$ac_compile" | $SED \
17361 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17362 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17363 -e 's:$: $lt_compiler_flag:'`
17364 (eval echo "\"\$as_me:17364: $lt_compile\"" >&5)
17365 (eval "$lt_compile" 2>conftest.err)
17367 cat conftest.err >&5
17368 echo "$as_me:17368: \$? = $ac_status" >&5
17369 if (exit $ac_status) && test -s "$ac_outfile"; then
17370 # The compiler can only warn and ignore the option if not recognized
17371 # So say no if there are warnings other than the usual output.
17372 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17373 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17374 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17375 lt_cv_prog_compiler_pic_works_CXX=yes
17381 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17382 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17384 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17385 case $lt_prog_compiler_pic_CXX in
17387 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17390 lt_prog_compiler_pic_CXX=
17391 lt_prog_compiler_can_build_shared_CXX=no
17396 # For platforms which do not support PIC, -DPIC is meaningless:
17398 lt_prog_compiler_pic_CXX=
17401 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17406 # Check to make sure the static flag actually works.
17408 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17409 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17410 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17411 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
17412 $as_echo_n "(cached) " >&6
17414 lt_cv_prog_compiler_static_works_CXX=no
17415 save_LDFLAGS="$LDFLAGS"
17416 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17417 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17418 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17419 # The linker can only warn and ignore the option if not recognized
17420 # So say no if there are warnings
17421 if test -s conftest.err; then
17422 # Append any errors to the config.log.
17423 cat conftest.err 1>&5
17424 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17425 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17426 if diff conftest.exp conftest.er2 >/dev/null; then
17427 lt_cv_prog_compiler_static_works_CXX=yes
17430 lt_cv_prog_compiler_static_works_CXX=yes
17434 LDFLAGS="$save_LDFLAGS"
17437 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17438 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17440 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17443 lt_prog_compiler_static_CXX=
17447 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17448 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17449 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
17450 $as_echo_n "(cached) " >&6
17452 lt_cv_prog_compiler_c_o_CXX=no
17453 $rm -r conftest 2>/dev/null
17457 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17459 lt_compiler_flag="-o out/conftest2.$ac_objext"
17460 # Insert the option either (1) after the last *FLAGS variable, or
17461 # (2) before a word containing "conftest.", or (3) at the end.
17462 # Note that $ac_compile itself does not contain backslashes and begins
17463 # with a dollar sign (not a hyphen), so the echo should work correctly.
17464 lt_compile=`echo "$ac_compile" | $SED \
17465 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17466 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17467 -e 's:$: $lt_compiler_flag:'`
17468 (eval echo "\"\$as_me:17468: $lt_compile\"" >&5)
17469 (eval "$lt_compile" 2>out/conftest.err)
17471 cat out/conftest.err >&5
17472 echo "$as_me:17472: \$? = $ac_status" >&5
17473 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17475 # The compiler can only warn and ignore the option if not recognized
17476 # So say no if there are warnings
17477 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17478 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17479 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17480 lt_cv_prog_compiler_c_o_CXX=yes
17485 # SGI C++ compiler will create directory out/ii_files/ for
17486 # template instantiation
17487 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17488 $rm out/* && rmdir out
17494 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17495 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17498 hard_links="nottested"
17499 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17500 # do not overwrite the value of need_locks provided by the user
17501 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17502 $as_echo_n "checking if we can lock with hard links... " >&6; }
17505 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17507 ln conftest.a conftest.b 2>&5 || hard_links=no
17508 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17509 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17510 $as_echo "$hard_links" >&6; }
17511 if test "$hard_links" = no; then
17512 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17513 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17520 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17521 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17523 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17526 # If we're using GNU nm, then we don't want the "-C" option.
17527 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17528 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17529 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'
17531 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'
17535 export_symbols_cmds_CXX="$ltdll_cmds"
17538 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'
17541 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17544 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17546 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
17547 $as_echo "$ld_shlibs_CXX" >&6; }
17548 test "$ld_shlibs_CXX" = no && can_build_shared=no
17551 # Do we need to explicitly link libc?
17553 case "x$archive_cmds_need_lc_CXX" in
17555 # Assume -lc should be added
17556 archive_cmds_need_lc_CXX=yes
17558 if test "$enable_shared" = yes && test "$GCC" = yes; then
17559 case $archive_cmds_CXX in
17561 # FIXME: we may have to deal with multi-command sequences.
17564 # Test whether the compiler implicitly links with -lc since on some
17565 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17566 # to ld, don't add -lc before -lgcc.
17567 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17568 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17570 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17573 (eval $ac_compile) 2>&5
17575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576 (exit $ac_status); } 2>conftest.err; then
17579 libobjs=conftest.$ac_objext
17581 wl=$lt_prog_compiler_wl_CXX
17582 pic_flag=$lt_prog_compiler_pic_CXX
17588 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17589 allow_undefined_flag_CXX=
17590 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17591 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); }
17596 archive_cmds_need_lc_CXX=no
17598 archive_cmds_need_lc_CXX=yes
17600 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17602 cat conftest.err 1>&5
17605 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
17606 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
17613 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17614 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17615 library_names_spec=
17616 libname_spec='lib$name'
17620 postuninstall_cmds=
17624 shlibpath_overrides_runpath=unknown
17626 dynamic_linker="$host_os ld.so"
17627 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17629 need_lib_prefix=unknown
17630 hardcode_into_libs=no
17632 # when you set need_version to no, make sure it does not cause -set_version
17633 # flags to be left without arguments
17634 need_version=unknown
17639 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17640 shlibpath_var=LIBPATH
17642 # AIX 3 has no versioning support, so we append a major version to the name.
17643 soname_spec='${libname}${release}${shared_ext}$major'
17650 hardcode_into_libs=yes
17651 if test "$host_cpu" = ia64; then
17652 # AIX 5 supports IA64
17653 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17654 shlibpath_var=LD_LIBRARY_PATH
17656 # With GCC up to 2.95.x, collect2 would create an import file
17657 # for dependence libraries. The import file would start with
17658 # the line `#! .'. This would cause the generated library to
17659 # depend on `.', always an invalid library. This was fixed in
17660 # development snapshots of GCC prior to 3.0.
17662 aix4 | aix4.[01] | aix4.[01].*)
17663 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17665 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17668 can_build_shared=no
17672 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17673 # soname into executable. Probably we can add versioning support to
17674 # collect2, so additional links can be useful in future.
17675 if test "$aix_use_runtimelinking" = yes; then
17676 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17677 # instead of lib<name>.a to let people know that these are not
17678 # typical AIX shared libraries.
17679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17681 # We preserve .a as extension for shared libraries through AIX4.2
17682 # and later when we are not doing run time linking.
17683 library_names_spec='${libname}${release}.a $libname.a'
17684 soname_spec='${libname}${release}${shared_ext}$major'
17686 shlibpath_var=LIBPATH
17691 library_names_spec='$libname.ixlibrary $libname.a'
17692 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17693 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'
17697 library_names_spec='${libname}${shared_ext}'
17698 dynamic_linker="$host_os ld.so"
17699 shlibpath_var=LIBRARY_PATH
17705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17706 soname_spec='${libname}${release}${shared_ext}$major'
17707 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17708 shlibpath_var=LD_LIBRARY_PATH
17709 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17710 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17711 # the default ld.so.conf also contains /usr/contrib/lib and
17712 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17713 # libtool to hard-code these into programs
17716 cygwin* | mingw* | pw32*)
17717 version_type=windows
17722 case $GCC,$host_os in
17723 yes,cygwin* | yes,mingw* | yes,pw32*)
17724 library_names_spec='$libname.dll.a'
17725 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17726 postinstall_cmds='base_file=`basename \${file}`~
17727 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17728 dldir=$destdir/`dirname \$dlpath`~
17729 test -d \$dldir || mkdir -p \$dldir~
17730 $install_prog $dir/$dlname \$dldir/$dlname~
17731 chmod a+x \$dldir/$dlname'
17732 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17733 dlpath=$dir/\$dldll~
17735 shlibpath_overrides_runpath=yes
17739 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17740 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17741 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17744 # MinGW DLLs use traditional 'lib' prefix
17745 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17746 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17747 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17748 # It is most probably a Windows format PATH printed by
17749 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17750 # path with ; separators, and with drive letters. We can handle the
17751 # drive letters (cygwin fileutils understands them), so leave them,
17752 # especially as we might pass files found there to a mingw objdump,
17753 # which wouldn't understand a cygwinified path. Ahh.
17754 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17756 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17760 # pw32 DLLs use 'pw' prefix rather than 'lib'
17761 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17767 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17770 dynamic_linker='Win32 ld.exe'
17771 # FIXME: first we should search . and the directory the executable is in
17775 darwin* | rhapsody*)
17776 dynamic_linker="$host_os dyld"
17777 version_type=darwin
17780 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17781 soname_spec='${libname}${release}${major}$shared_ext'
17782 shlibpath_overrides_runpath=yes
17783 shlibpath_var=DYLD_LIBRARY_PATH
17784 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17786 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17794 soname_spec='${libname}${release}${shared_ext}$major'
17795 shlibpath_var=LD_LIBRARY_PATH
17802 freebsd* | dragonfly*)
17803 # DragonFly does not have aout. When/if they implement a new
17804 # versioning mechanism, adjust this.
17805 if test -x /usr/bin/objformat; then
17806 objformat=`/usr/bin/objformat`
17809 freebsd[123]*) objformat=aout ;;
17810 *) objformat=elf ;;
17813 version_type=freebsd-$objformat
17814 case $version_type in
17816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17821 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17825 shlibpath_var=LD_LIBRARY_PATH
17828 shlibpath_overrides_runpath=yes
17830 freebsd3.[01]* | freebsdelf3.[01]*)
17831 shlibpath_overrides_runpath=yes
17832 hardcode_into_libs=yes
17834 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17835 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17836 shlibpath_overrides_runpath=no
17837 hardcode_into_libs=yes
17839 *) # from 4.6 on, and DragonFly
17840 shlibpath_overrides_runpath=yes
17841 hardcode_into_libs=yes
17850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17851 soname_spec='${libname}${release}${shared_ext}$major'
17852 shlibpath_var=LD_LIBRARY_PATH
17853 hardcode_into_libs=yes
17856 hpux9* | hpux10* | hpux11*)
17857 # Give a soname corresponding to the major version so that dld.sl refuses to
17858 # link against other versions.
17865 hardcode_into_libs=yes
17866 dynamic_linker="$host_os dld.so"
17867 shlibpath_var=LD_LIBRARY_PATH
17868 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17870 soname_spec='${libname}${release}${shared_ext}$major'
17871 if test "X$HPUX_IA64_MODE" = X32; then
17872 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17874 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17876 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17880 hardcode_into_libs=yes
17881 dynamic_linker="$host_os dld.sl"
17882 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17883 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17885 soname_spec='${libname}${release}${shared_ext}$major'
17886 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17887 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17891 dynamic_linker="$host_os dld.sl"
17892 shlibpath_var=SHLIB_PATH
17893 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17895 soname_spec='${libname}${release}${shared_ext}$major'
17898 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17899 postinstall_cmds='chmod 555 $lib'
17906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17907 soname_spec='${libname}${release}${shared_ext}$major'
17908 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17909 shlibpath_var=LD_LIBRARY_PATH
17910 shlibpath_overrides_runpath=no
17911 hardcode_into_libs=yes
17914 irix5* | irix6* | nonstopux*)
17916 nonstopux*) version_type=nonstopux ;;
17918 if test "$lt_cv_prog_gnu_ld" = yes; then
17926 soname_spec='${libname}${release}${shared_ext}$major'
17927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17929 irix5* | nonstopux*)
17930 libsuff= shlibsuff=
17933 case $LD in # libtool.m4 will add one of these switches to LD
17934 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17935 libsuff= shlibsuff= libmagic=32-bit;;
17936 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17937 libsuff=32 shlibsuff=N32 libmagic=N32;;
17938 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17939 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17940 *) libsuff= shlibsuff= libmagic=never-match;;
17944 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17945 shlibpath_overrides_runpath=no
17946 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17947 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17948 hardcode_into_libs=yes
17951 # No shared lib support for Linux oldld, aout, or coff.
17952 linux*oldld* | linux*aout* | linux*coff*)
17956 # This must be Linux ELF.
17957 linux* | k*bsd*-gnu)
17961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17962 soname_spec='${libname}${release}${shared_ext}$major'
17963 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17964 shlibpath_var=LD_LIBRARY_PATH
17965 shlibpath_overrides_runpath=no
17966 # This implies no fast_install, which is unacceptable.
17967 # Some rework will be needed to allow for fast_install
17968 # before this can be enabled.
17969 hardcode_into_libs=yes
17970 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17971 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17973 # Append ld.so.conf contents to the search path
17974 if test -f /etc/ld.so.conf; then
17975 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' ' '`
17976 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
17979 # We used to test for /lib/ld.so.1 and disable shared libraries on
17980 # powerpc, because MkLinux only supported shared libraries with the
17981 # GNU dynamic linker. Since this was broken with cross compilers,
17982 # most powerpc-linux boxes support dynamic linking these days and
17983 # people can always --disable-shared, the test was removed, and we
17984 # assume the GNU/Linux dynamic linker is in use.
17985 dynamic_linker='GNU/Linux ld.so'
17992 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17994 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17995 dynamic_linker='NetBSD (a.out) ld.so'
17997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17998 soname_spec='${libname}${release}${shared_ext}$major'
17999 dynamic_linker='NetBSD ld.elf_so'
18001 shlibpath_var=LD_LIBRARY_PATH
18002 shlibpath_overrides_runpath=yes
18003 hardcode_into_libs=yes
18008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18009 shlibpath_var=LD_LIBRARY_PATH
18010 shlibpath_overrides_runpath=yes
18017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18018 soname_spec='${libname}${release}${shared_ext}$major'
18019 shlibpath_var=LD_LIBRARY_PATH
18020 shlibpath_overrides_runpath=yes
18025 sys_lib_dlsearch_path_spec="/usr/lib"
18027 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18029 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18030 *) need_version=no ;;
18032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18033 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18034 shlibpath_var=LD_LIBRARY_PATH
18035 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18037 openbsd2.[89] | openbsd2.[89].*)
18038 shlibpath_overrides_runpath=no
18041 shlibpath_overrides_runpath=yes
18045 shlibpath_overrides_runpath=yes
18050 libname_spec='$name'
18053 library_names_spec='$libname${shared_ext} $libname.a'
18054 dynamic_linker='OS/2 ld.exe'
18055 shlibpath_var=LIBPATH
18058 osf3* | osf4* | osf5*)
18062 soname_spec='${libname}${release}${shared_ext}$major'
18063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18064 shlibpath_var=LD_LIBRARY_PATH
18065 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18066 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18078 soname_spec='${libname}${release}${shared_ext}$major'
18079 shlibpath_var=LD_LIBRARY_PATH
18080 shlibpath_overrides_runpath=yes
18081 hardcode_into_libs=yes
18082 # ldd complains unless libraries are executable
18083 postinstall_cmds='chmod +x $lib'
18088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18089 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18090 shlibpath_var=LD_LIBRARY_PATH
18091 shlibpath_overrides_runpath=yes
18092 if test "$with_gnu_ld" = yes; then
18100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18101 soname_spec='${libname}${release}${shared_ext}$major'
18102 shlibpath_var=LD_LIBRARY_PATH
18103 case $host_vendor in
18105 shlibpath_overrides_runpath=no
18107 export_dynamic_flag_spec='${wl}-Blargedynsym'
18108 runpath_var=LD_RUN_PATH
18116 shlibpath_overrides_runpath=no
18117 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18123 if test -d /usr/nec ;then
18125 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18126 soname_spec='$libname${shared_ext}.$major'
18127 shlibpath_var=LD_LIBRARY_PATH
18131 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18132 version_type=freebsd-elf
18135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18136 soname_spec='${libname}${release}${shared_ext}$major'
18137 shlibpath_var=LD_LIBRARY_PATH
18138 hardcode_into_libs=yes
18139 if test "$with_gnu_ld" = yes; then
18140 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18141 shlibpath_overrides_runpath=no
18143 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18144 shlibpath_overrides_runpath=yes
18147 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18151 sys_lib_dlsearch_path_spec='/usr/lib'
18156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18157 soname_spec='${libname}${release}${shared_ext}$major'
18158 shlibpath_var=LD_LIBRARY_PATH
18165 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18166 $as_echo "$dynamic_linker" >&6; }
18167 test "$dynamic_linker" = no && can_build_shared=no
18169 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18170 $as_echo_n "(cached) " >&6
18172 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18175 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18176 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18177 $as_echo_n "(cached) " >&6
18179 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18182 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18184 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18185 if test "$GCC" = yes; then
18186 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18189 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18190 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18191 hardcode_action_CXX=
18192 if test -n "$hardcode_libdir_flag_spec_CXX" || \
18193 test -n "$runpath_var_CXX" || \
18194 test "X$hardcode_automatic_CXX" = "Xyes" ; then
18196 # We can hardcode non-existant directories.
18197 if test "$hardcode_direct_CXX" != no &&
18198 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18199 # have to relink, otherwise we might link with an installed library
18200 # when we should be linking with a yet-to-be-installed one
18201 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18202 test "$hardcode_minus_L_CXX" != no; then
18203 # Linking always hardcodes the temporary library directory.
18204 hardcode_action_CXX=relink
18206 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18207 hardcode_action_CXX=immediate
18210 # We cannot hardcode anything, or else we can only hardcode existing
18212 hardcode_action_CXX=unsupported
18214 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
18215 $as_echo "$hardcode_action_CXX" >&6; }
18217 if test "$hardcode_action_CXX" = relink; then
18218 # Fast installation is not supported
18219 enable_fast_install=no
18220 elif test "$shlibpath_overrides_runpath" = yes ||
18221 test "$enable_shared" = no; then
18222 # Fast installation is not necessary
18223 enable_fast_install=needless
18227 # The else clause should only fire when bootstrapping the
18228 # libtool distribution, otherwise you forgot to ship ltmain.sh
18229 # with your package, and you will get complaints that there are
18230 # no rules to generate ltmain.sh.
18231 if test -f "$ltmain"; then
18232 # See if we are running on zsh, and set the options which allow our commands through
18233 # without removal of \ escapes.
18234 if test -n "${ZSH_VERSION+set}" ; then
18235 setopt NO_GLOB_SUBST
18237 # Now quote all the things that may contain metacharacters while being
18238 # careful not to overquote the AC_SUBSTed values. We take copies of the
18239 # variables and quote the copies for generation of the libtool script.
18240 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18242 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18243 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18244 deplibs_check_method reload_flag reload_cmds need_locks \
18245 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18246 lt_cv_sys_global_symbol_to_c_name_address \
18247 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18248 old_postinstall_cmds old_postuninstall_cmds \
18252 lt_prog_compiler_wl_CXX \
18253 lt_prog_compiler_pic_CXX \
18254 lt_prog_compiler_static_CXX \
18255 lt_prog_compiler_no_builtin_flag_CXX \
18256 export_dynamic_flag_spec_CXX \
18257 thread_safe_flag_spec_CXX \
18258 whole_archive_flag_spec_CXX \
18259 enable_shared_with_static_runtimes_CXX \
18260 old_archive_cmds_CXX \
18261 old_archive_from_new_cmds_CXX \
18262 predep_objects_CXX \
18263 postdep_objects_CXX \
18266 compiler_lib_search_path_CXX \
18267 compiler_lib_search_dirs_CXX \
18269 archive_expsym_cmds_CXX \
18270 postinstall_cmds_CXX \
18271 postuninstall_cmds_CXX \
18272 old_archive_from_expsyms_cmds_CXX \
18273 allow_undefined_flag_CXX \
18274 no_undefined_flag_CXX \
18275 export_symbols_cmds_CXX \
18276 hardcode_libdir_flag_spec_CXX \
18277 hardcode_libdir_flag_spec_ld_CXX \
18278 hardcode_libdir_separator_CXX \
18279 hardcode_automatic_CXX \
18281 module_expsym_cmds_CXX \
18282 lt_cv_prog_compiler_c_o_CXX \
18283 fix_srcfile_path_CXX \
18284 exclude_expsyms_CXX \
18285 include_expsyms_CXX; do
18288 old_archive_cmds_CXX | \
18289 old_archive_from_new_cmds_CXX | \
18290 archive_cmds_CXX | \
18291 archive_expsym_cmds_CXX | \
18292 module_cmds_CXX | \
18293 module_expsym_cmds_CXX | \
18294 old_archive_from_expsyms_cmds_CXX | \
18295 export_symbols_cmds_CXX | \
18296 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18297 postinstall_cmds | postuninstall_cmds | \
18298 old_postinstall_cmds | old_postuninstall_cmds | \
18299 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18300 # Double-quote double-evaled strings.
18301 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18304 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18310 *'\$0 --fallback-echo"')
18311 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18317 cat <<__EOF__ >> "$cfgfile"
18318 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18320 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18322 # Shell to use when invoking shell scripts.
18325 # Whether or not to build shared libraries.
18326 build_libtool_libs=$enable_shared
18328 # Whether or not to build static libraries.
18329 build_old_libs=$enable_static
18331 # Whether or not to add -lc for building shared libraries.
18332 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18334 # Whether or not to disallow shared libs when runtime libs are static
18335 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18337 # Whether or not to optimize for fast installation.
18338 fast_install=$enable_fast_install
18341 host_alias=$host_alias
18345 # The build system.
18346 build_alias=$build_alias
18350 # An echo program that does not interpret backslashes.
18355 AR_FLAGS=$lt_AR_FLAGS
18360 # LTCC compiler flags.
18361 LTCFLAGS=$lt_LTCFLAGS
18363 # A language-specific compiler.
18364 CC=$lt_compiler_CXX
18366 # Is the compiler the GNU C compiler?
18372 # The linker used to build libraries.
18375 # Whether we need hard or soft links.
18378 # A BSD-compatible nm program.
18381 # A symbol stripping program
18384 # Used to examine libraries when file_magic_cmd begins "file"
18385 MAGIC_CMD=$MAGIC_CMD
18387 # Used on cygwin: DLL creation program.
18390 # Used on cygwin: object dumper.
18393 # Used on cygwin: assembler.
18396 # The name of the directory that contains temporary libtool files.
18399 # How to create reloadable object files.
18400 reload_flag=$lt_reload_flag
18401 reload_cmds=$lt_reload_cmds
18403 # How to pass a linker flag through the compiler.
18404 wl=$lt_lt_prog_compiler_wl_CXX
18406 # Object file suffix (normally "o").
18407 objext="$ac_objext"
18409 # Old archive suffix (normally "a").
18412 # Shared library suffix (normally ".so").
18413 shrext_cmds='$shrext_cmds'
18415 # Executable file suffix (normally "").
18418 # Additional compiler flags for building library objects.
18419 pic_flag=$lt_lt_prog_compiler_pic_CXX
18422 # What is the maximum length of a command?
18423 max_cmd_len=$lt_cv_sys_max_cmd_len
18425 # Does compiler simultaneously support -c and -o options?
18426 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18428 # Must we lock files when doing compilation?
18429 need_locks=$lt_need_locks
18431 # Do we need the lib prefix for modules?
18432 need_lib_prefix=$need_lib_prefix
18434 # Do we need a version for libraries?
18435 need_version=$need_version
18437 # Whether dlopen is supported.
18438 dlopen_support=$enable_dlopen
18440 # Whether dlopen of programs is supported.
18441 dlopen_self=$enable_dlopen_self
18443 # Whether dlopen of statically linked programs is supported.
18444 dlopen_self_static=$enable_dlopen_self_static
18446 # Compiler flag to prevent dynamic linking.
18447 link_static_flag=$lt_lt_prog_compiler_static_CXX
18449 # Compiler flag to turn off builtin functions.
18450 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18452 # Compiler flag to allow reflexive dlopens.
18453 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18455 # Compiler flag to generate shared objects directly from archives.
18456 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18458 # Compiler flag to generate thread-safe objects.
18459 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18461 # Library versioning type.
18462 version_type=$version_type
18464 # Format of library name prefix.
18465 libname_spec=$lt_libname_spec
18467 # List of archive names. First name is the real one, the rest are links.
18468 # The last name is the one that the linker finds with -lNAME.
18469 library_names_spec=$lt_library_names_spec
18471 # The coded name of the library, if different from the real name.
18472 soname_spec=$lt_soname_spec
18474 # Commands used to build and install an old-style archive.
18476 old_archive_cmds=$lt_old_archive_cmds_CXX
18477 old_postinstall_cmds=$lt_old_postinstall_cmds
18478 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18480 # Create an old-style archive from a shared archive.
18481 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18483 # Create a temporary old-style archive to link instead of a shared archive.
18484 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18486 # Commands used to build and install a shared archive.
18487 archive_cmds=$lt_archive_cmds_CXX
18488 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18489 postinstall_cmds=$lt_postinstall_cmds
18490 postuninstall_cmds=$lt_postuninstall_cmds
18492 # Commands used to build a loadable module (assumed same as above if empty)
18493 module_cmds=$lt_module_cmds_CXX
18494 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18496 # Commands to strip libraries.
18497 old_striplib=$lt_old_striplib
18498 striplib=$lt_striplib
18500 # Dependencies to place before the objects being linked to create a
18502 predep_objects=$lt_predep_objects_CXX
18504 # Dependencies to place after the objects being linked to create a
18506 postdep_objects=$lt_postdep_objects_CXX
18508 # Dependencies to place before the objects being linked to create a
18510 predeps=$lt_predeps_CXX
18512 # Dependencies to place after the objects being linked to create a
18514 postdeps=$lt_postdeps_CXX
18516 # The directories searched by this compiler when creating a shared
18518 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18520 # The library search path used internally by the compiler when linking
18521 # a shared library.
18522 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18524 # Method to check whether dependent libraries are shared objects.
18525 deplibs_check_method=$lt_deplibs_check_method
18527 # Command to use when deplibs_check_method == file_magic.
18528 file_magic_cmd=$lt_file_magic_cmd
18530 # Flag that allows shared libraries with undefined symbols to be built.
18531 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18533 # Flag that forces no undefined symbols.
18534 no_undefined_flag=$lt_no_undefined_flag_CXX
18536 # Commands used to finish a libtool library installation in a directory.
18537 finish_cmds=$lt_finish_cmds
18539 # Same as above, but a single script fragment to be evaled but not shown.
18540 finish_eval=$lt_finish_eval
18542 # Take the output of nm and produce a listing of raw symbols and C names.
18543 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18545 # Transform the output of nm in a proper C declaration
18546 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18548 # Transform the output of nm in a C name address pair
18549 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18551 # This is the shared library runtime path variable.
18552 runpath_var=$runpath_var
18554 # This is the shared library path variable.
18555 shlibpath_var=$shlibpath_var
18557 # Is shlibpath searched before the hard-coded library search path?
18558 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18560 # How to hardcode a shared library path into an executable.
18561 hardcode_action=$hardcode_action_CXX
18563 # Whether we should hardcode library paths into libraries.
18564 hardcode_into_libs=$hardcode_into_libs
18566 # Flag to hardcode \$libdir into a binary during linking.
18567 # This must work even if \$libdir does not exist.
18568 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18570 # If ld is used when linking, flag to hardcode \$libdir into
18571 # a binary during linking. This must work even if \$libdir does
18573 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18575 # Whether we need a single -rpath flag with a separated argument.
18576 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18578 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18579 # resulting binary.
18580 hardcode_direct=$hardcode_direct_CXX
18582 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18583 # resulting binary.
18584 hardcode_minus_L=$hardcode_minus_L_CXX
18586 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18587 # the resulting binary.
18588 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18590 # Set to yes if building a shared library automatically hardcodes DIR into the library
18591 # and all subsequent libraries and executables linked against it.
18592 hardcode_automatic=$hardcode_automatic_CXX
18594 # Variables whose values should be saved in libtool wrapper scripts and
18595 # restored at relink time.
18596 variables_saved_for_relink="$variables_saved_for_relink"
18598 # Whether libtool must link a program against all its dependency libraries.
18599 link_all_deplibs=$link_all_deplibs_CXX
18601 # Compile-time system search path for libraries
18602 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18604 # Run-time system search path for libraries
18605 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18607 # Fix the shell variable \$srcfile for the compiler.
18608 fix_srcfile_path=$lt_fix_srcfile_path
18610 # Set to yes if exported symbols are required.
18611 always_export_symbols=$always_export_symbols_CXX
18613 # The commands to list exported symbols.
18614 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18616 # The commands to extract the exported symbol list from a shared archive.
18617 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18619 # Symbols that should not be listed in the preloaded symbols.
18620 exclude_expsyms=$lt_exclude_expsyms_CXX
18622 # Symbols that must always be exported.
18623 include_expsyms=$lt_include_expsyms_CXX
18625 # ### END LIBTOOL TAG CONFIG: $tagname
18631 # If there is no Makefile yet, we rely on a make rule to execute
18632 # `config.status --recheck' to rerun these tests and create the
18633 # libtool script then.
18634 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18635 if test -f "$ltmain_in"; then
18636 test -f Makefile && make "$ltmain"
18642 ac_cpp='$CPP $CPPFLAGS'
18643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18651 with_gnu_ldcxx=$with_gnu_ld
18652 with_gnu_ld=$lt_save_with_gnu_ld
18653 lt_cv_path_LDCXX=$lt_cv_path_LD
18654 lt_cv_path_LD=$lt_save_path_LD
18655 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18656 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18664 if test -n "$F77" && test "X$F77" != "Xno"; then
18667 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18668 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18669 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18672 archive_cmds_need_lc_F77=no
18673 allow_undefined_flag_F77=
18674 always_export_symbols_F77=no
18675 archive_expsym_cmds_F77=
18676 export_dynamic_flag_spec_F77=
18677 hardcode_direct_F77=no
18678 hardcode_libdir_flag_spec_F77=
18679 hardcode_libdir_flag_spec_ld_F77=
18680 hardcode_libdir_separator_F77=
18681 hardcode_minus_L_F77=no
18682 hardcode_automatic_F77=no
18684 module_expsym_cmds_F77=
18685 link_all_deplibs_F77=unknown
18686 old_archive_cmds_F77=$old_archive_cmds
18687 no_undefined_flag_F77=
18688 whole_archive_flag_spec_F77=
18689 enable_shared_with_static_runtimes_F77=no
18691 # Source file extension for f77 test sources.
18694 # Object file extension for compiled f77 test sources.
18698 # Code to be used in simple compile tests
18699 lt_simple_compile_test_code="\
18705 # Code to be used in simple link tests
18706 lt_simple_link_test_code="\
18711 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18713 # If no C compiler was specified, use CC.
18716 # If no C compiler flags were specified, use CFLAGS.
18717 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18719 # Allow CC to be a program name with arguments.
18723 # save warnings/boilerplate of simple test code
18724 ac_outfile=conftest.$ac_objext
18725 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18726 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18727 _lt_compiler_boilerplate=`cat conftest.err`
18730 ac_outfile=conftest.$ac_objext
18731 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18732 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18733 _lt_linker_boilerplate=`cat conftest.err`
18737 # Allow CC to be a program name with arguments.
18742 for cc_temp in $compiler""; do
18744 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18745 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18750 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18753 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18754 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18755 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
18756 $as_echo "$can_build_shared" >&6; }
18758 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18759 $as_echo_n "checking whether to build shared libraries... " >&6; }
18760 test "$can_build_shared" = "no" && enable_shared=no
18762 # On AIX, shared libraries and static libraries use the same namespace, and
18763 # are all built from PIC.
18766 test "$enable_shared" = yes && enable_static=no
18767 if test -n "$RANLIB"; then
18768 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18769 postinstall_cmds='$RANLIB $lib'
18773 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18774 test "$enable_shared" = yes && enable_static=no
18778 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
18779 $as_echo "$enable_shared" >&6; }
18781 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18782 $as_echo_n "checking whether to build static libraries... " >&6; }
18783 # Make sure either enable_shared or enable_static is yes.
18784 test "$enable_shared" = yes || enable_static=yes
18785 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
18786 $as_echo "$enable_static" >&6; }
18791 lt_prog_compiler_wl_F77=
18792 lt_prog_compiler_pic_F77=
18793 lt_prog_compiler_static_F77=
18795 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18796 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18798 if test "$GCC" = yes; then
18799 lt_prog_compiler_wl_F77='-Wl,'
18800 lt_prog_compiler_static_F77='-static'
18804 # All AIX code is PIC.
18805 if test "$host_cpu" = ia64; then
18806 # AIX 5 now supports IA64 processor
18807 lt_prog_compiler_static_F77='-Bstatic'
18812 # FIXME: we need at least 68020 code to build shared libraries, but
18813 # adding the `-m68020' flag to GCC prevents building anything better,
18815 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18818 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18819 # PIC is the default for these OSes.
18822 mingw* | cygwin* | pw32* | os2*)
18823 # This hack is so that the source file can tell whether it is being
18824 # built for inclusion in a dll (and should export symbols for example).
18825 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18826 # (--disable-auto-import) libraries
18827 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18830 darwin* | rhapsody*)
18831 # PIC is the default on this platform
18832 # Common symbols not allowed in MH_DYLIB files
18833 lt_prog_compiler_pic_F77='-fno-common'
18837 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18838 # Instead, we relocate shared libraries at runtime.
18842 # Just because we use GCC doesn't mean we suddenly get shared libraries
18843 # on systems that don't support them.
18844 lt_prog_compiler_can_build_shared_F77=no
18849 if test -d /usr/nec; then
18850 lt_prog_compiler_pic_F77=-Kconform_pic
18855 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18856 # not for PA HP-UX.
18862 lt_prog_compiler_pic_F77='-fPIC'
18868 lt_prog_compiler_pic_F77='-fPIC'
18872 # PORTME Check for flag to pass linker flags through the system compiler.
18875 lt_prog_compiler_wl_F77='-Wl,'
18876 if test "$host_cpu" = ia64; then
18877 # AIX 5 now supports IA64 processor
18878 lt_prog_compiler_static_F77='-Bstatic'
18880 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18884 # PIC is the default on this platform
18885 # Common symbols not allowed in MH_DYLIB files
18886 case $cc_basename in
18888 lt_prog_compiler_pic_F77='-qnocommon'
18889 lt_prog_compiler_wl_F77='-Wl,'
18894 mingw* | cygwin* | pw32* | os2*)
18895 # This hack is so that the source file can tell whether it is being
18896 # built for inclusion in a dll (and should export symbols for example).
18897 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18900 hpux9* | hpux10* | hpux11*)
18901 lt_prog_compiler_wl_F77='-Wl,'
18902 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18903 # not for PA HP-UX.
18909 lt_prog_compiler_pic_F77='+Z'
18912 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18913 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18916 irix5* | irix6* | nonstopux*)
18917 lt_prog_compiler_wl_F77='-Wl,'
18918 # PIC (with -KPIC) is the default.
18919 lt_prog_compiler_static_F77='-non_shared'
18923 lt_prog_compiler_pic_F77='-KPIC'
18924 lt_prog_compiler_static_F77='-Bstatic'
18927 linux* | k*bsd*-gnu)
18928 case $cc_basename in
18930 lt_prog_compiler_wl_F77='-Wl,'
18931 lt_prog_compiler_pic_F77='-KPIC'
18932 lt_prog_compiler_static_F77='-static'
18934 pgcc* | pgf77* | pgf90* | pgf95*)
18935 # Portland Group compilers (*not* the Pentium gcc compiler,
18936 # which looks to be a dead project)
18937 lt_prog_compiler_wl_F77='-Wl,'
18938 lt_prog_compiler_pic_F77='-fpic'
18939 lt_prog_compiler_static_F77='-Bstatic'
18942 lt_prog_compiler_wl_F77='-Wl,'
18943 # All Alpha code is PIC.
18944 lt_prog_compiler_static_F77='-non_shared'
18947 case `$CC -V 2>&1 | sed 5q` in
18950 lt_prog_compiler_pic_F77='-KPIC'
18951 lt_prog_compiler_static_F77='-Bstatic'
18952 lt_prog_compiler_wl_F77='-Wl,'
18955 # Sun Fortran 8.3 passes all unrecognized flags to the linker
18956 lt_prog_compiler_pic_F77='-KPIC'
18957 lt_prog_compiler_static_F77='-Bstatic'
18958 lt_prog_compiler_wl_F77=''
18965 osf3* | osf4* | osf5*)
18966 lt_prog_compiler_wl_F77='-Wl,'
18967 # All OSF/1 code is PIC.
18968 lt_prog_compiler_static_F77='-non_shared'
18972 lt_prog_compiler_static_F77='-non_shared'
18976 lt_prog_compiler_pic_F77='-KPIC'
18977 lt_prog_compiler_static_F77='-Bstatic'
18978 case $cc_basename in
18979 f77* | f90* | f95*)
18980 lt_prog_compiler_wl_F77='-Qoption ld ';;
18982 lt_prog_compiler_wl_F77='-Wl,';;
18987 lt_prog_compiler_wl_F77='-Qoption ld '
18988 lt_prog_compiler_pic_F77='-PIC'
18989 lt_prog_compiler_static_F77='-Bstatic'
18992 sysv4 | sysv4.2uw2* | sysv4.3*)
18993 lt_prog_compiler_wl_F77='-Wl,'
18994 lt_prog_compiler_pic_F77='-KPIC'
18995 lt_prog_compiler_static_F77='-Bstatic'
18999 if test -d /usr/nec ;then
19000 lt_prog_compiler_pic_F77='-Kconform_pic'
19001 lt_prog_compiler_static_F77='-Bstatic'
19005 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19006 lt_prog_compiler_wl_F77='-Wl,'
19007 lt_prog_compiler_pic_F77='-KPIC'
19008 lt_prog_compiler_static_F77='-Bstatic'
19012 lt_prog_compiler_wl_F77='-Wl,'
19013 lt_prog_compiler_can_build_shared_F77=no
19017 lt_prog_compiler_pic_F77='-pic'
19018 lt_prog_compiler_static_F77='-Bstatic'
19022 lt_prog_compiler_can_build_shared_F77=no
19027 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
19028 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
19031 # Check to make sure the PIC flag actually works.
19033 if test -n "$lt_prog_compiler_pic_F77"; then
19035 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
19036 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
19037 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
19038 $as_echo_n "(cached) " >&6
19040 lt_cv_prog_compiler_pic_works_F77=no
19041 ac_outfile=conftest.$ac_objext
19042 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19043 lt_compiler_flag="$lt_prog_compiler_pic_F77"
19044 # Insert the option either (1) after the last *FLAGS variable, or
19045 # (2) before a word containing "conftest.", or (3) at the end.
19046 # Note that $ac_compile itself does not contain backslashes and begins
19047 # with a dollar sign (not a hyphen), so the echo should work correctly.
19048 # The option is referenced via a variable to avoid confusing sed.
19049 lt_compile=`echo "$ac_compile" | $SED \
19050 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19051 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19052 -e 's:$: $lt_compiler_flag:'`
19053 (eval echo "\"\$as_me:19053: $lt_compile\"" >&5)
19054 (eval "$lt_compile" 2>conftest.err)
19056 cat conftest.err >&5
19057 echo "$as_me:19057: \$? = $ac_status" >&5
19058 if (exit $ac_status) && test -s "$ac_outfile"; then
19059 # The compiler can only warn and ignore the option if not recognized
19060 # So say no if there are warnings other than the usual output.
19061 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19062 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19063 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19064 lt_cv_prog_compiler_pic_works_F77=yes
19070 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
19071 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
19073 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
19074 case $lt_prog_compiler_pic_F77 in
19076 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
19079 lt_prog_compiler_pic_F77=
19080 lt_prog_compiler_can_build_shared_F77=no
19085 # For platforms which do not support PIC, -DPIC is meaningless:
19087 lt_prog_compiler_pic_F77=
19090 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
19095 # Check to make sure the static flag actually works.
19097 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
19098 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19099 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19100 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
19101 $as_echo_n "(cached) " >&6
19103 lt_cv_prog_compiler_static_works_F77=no
19104 save_LDFLAGS="$LDFLAGS"
19105 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19106 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19107 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19108 # The linker can only warn and ignore the option if not recognized
19109 # So say no if there are warnings
19110 if test -s conftest.err; then
19111 # Append any errors to the config.log.
19112 cat conftest.err 1>&5
19113 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19114 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19115 if diff conftest.exp conftest.er2 >/dev/null; then
19116 lt_cv_prog_compiler_static_works_F77=yes
19119 lt_cv_prog_compiler_static_works_F77=yes
19123 LDFLAGS="$save_LDFLAGS"
19126 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
19127 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
19129 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
19132 lt_prog_compiler_static_F77=
19136 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19137 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19138 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
19139 $as_echo_n "(cached) " >&6
19141 lt_cv_prog_compiler_c_o_F77=no
19142 $rm -r conftest 2>/dev/null
19146 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19148 lt_compiler_flag="-o out/conftest2.$ac_objext"
19149 # Insert the option either (1) after the last *FLAGS variable, or
19150 # (2) before a word containing "conftest.", or (3) at the end.
19151 # Note that $ac_compile itself does not contain backslashes and begins
19152 # with a dollar sign (not a hyphen), so the echo should work correctly.
19153 lt_compile=`echo "$ac_compile" | $SED \
19154 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19155 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19156 -e 's:$: $lt_compiler_flag:'`
19157 (eval echo "\"\$as_me:19157: $lt_compile\"" >&5)
19158 (eval "$lt_compile" 2>out/conftest.err)
19160 cat out/conftest.err >&5
19161 echo "$as_me:19161: \$? = $ac_status" >&5
19162 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19164 # The compiler can only warn and ignore the option if not recognized
19165 # So say no if there are warnings
19166 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19167 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19168 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19169 lt_cv_prog_compiler_c_o_F77=yes
19174 # SGI C++ compiler will create directory out/ii_files/ for
19175 # template instantiation
19176 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19177 $rm out/* && rmdir out
19183 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19184 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
19187 hard_links="nottested"
19188 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19189 # do not overwrite the value of need_locks provided by the user
19190 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19191 $as_echo_n "checking if we can lock with hard links... " >&6; }
19194 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19196 ln conftest.a conftest.b 2>&5 || hard_links=no
19197 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19198 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
19199 $as_echo "$hard_links" >&6; }
19200 if test "$hard_links" = no; then
19201 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19202 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19209 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19210 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19213 allow_undefined_flag_F77=
19214 enable_shared_with_static_runtimes_F77=no
19216 archive_expsym_cmds_F77=
19217 old_archive_From_new_cmds_F77=
19218 old_archive_from_expsyms_cmds_F77=
19219 export_dynamic_flag_spec_F77=
19220 whole_archive_flag_spec_F77=
19221 thread_safe_flag_spec_F77=
19222 hardcode_libdir_flag_spec_F77=
19223 hardcode_libdir_flag_spec_ld_F77=
19224 hardcode_libdir_separator_F77=
19225 hardcode_direct_F77=no
19226 hardcode_minus_L_F77=no
19227 hardcode_shlibpath_var_F77=unsupported
19228 link_all_deplibs_F77=unknown
19229 hardcode_automatic_F77=no
19231 module_expsym_cmds_F77=
19232 always_export_symbols_F77=no
19233 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19234 # include_expsyms should be a list of space-separated symbols to be *always*
19235 # included in the symbol list
19236 include_expsyms_F77=
19237 # exclude_expsyms can be an extended regexp of symbols to exclude
19238 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19239 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19240 # as well as any symbol that contains `d'.
19241 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19242 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19243 # platforms (ab)use it in PIC code, but their linkers get confused if
19244 # the symbol is explicitly referenced. Since portable code cannot
19245 # rely on this symbol name, it's probably fine to never include it in
19246 # preloaded symbol tables.
19247 # Exclude shared library initialization/finalization symbols.
19248 extract_expsyms_cmds=
19249 # Just being paranoid about ensuring that cc_basename is set.
19250 for cc_temp in $compiler""; do
19252 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19253 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19258 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19261 cygwin* | mingw* | pw32*)
19262 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19263 # When not using gcc, we currently assume that we are using
19264 # Microsoft Visual C++.
19265 if test "$GCC" != yes; then
19270 # we just hope/assume this is gcc and not c89 (= MSVC++)
19279 if test "$with_gnu_ld" = yes; then
19280 # If archive_cmds runs LD, not CC, wlarc should be empty
19283 # Set some defaults for GNU ld with shared library support. These
19284 # are reset later if shared libraries are not supported. Putting them
19285 # here allows them to be overridden if necessary.
19286 runpath_var=LD_RUN_PATH
19287 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19288 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19289 # ancient GNU ld didn't support --whole-archive et. al.
19290 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19291 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19293 whole_archive_flag_spec_F77=
19295 supports_anon_versioning=no
19296 case `$LD -v 2>/dev/null` in
19297 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19298 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19299 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19300 *\ 2.11.*) ;; # other 2.11 versions
19301 *) supports_anon_versioning=yes ;;
19304 # See if GNU ld supports shared libraries.
19307 # On AIX/PPC, the GNU linker is very broken
19308 if test "$host_cpu" != ia64; then
19312 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19313 *** to be unable to reliably create shared libraries on AIX.
19314 *** Therefore, libtool is disabling shared libraries support. If you
19315 *** really care for shared libraries, you may want to modify your PATH
19316 *** so that a non-GNU linker is found, and then restart.
19323 archive_cmds_F77='$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)'
19324 hardcode_libdir_flag_spec_F77='-L$libdir'
19325 hardcode_minus_L_F77=yes
19327 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19328 # that the semantics of dynamic libraries on AmigaOS, at least up
19329 # to version 4, is to share data among multiple programs linked
19330 # with the same dynamic library. Since this doesn't match the
19331 # behavior of shared libraries on other platforms, we can't use
19337 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19338 allow_undefined_flag_F77=unsupported
19339 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19340 # support --undefined. This deserves some investigation. FIXME
19341 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19347 cygwin* | mingw* | pw32*)
19348 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19349 # as there is no search path for DLLs.
19350 hardcode_libdir_flag_spec_F77='-L$libdir'
19351 allow_undefined_flag_F77=unsupported
19352 always_export_symbols_F77=no
19353 enable_shared_with_static_runtimes_F77=yes
19354 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
19356 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19357 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19358 # If the export-symbols file already is a .def file (1st line
19359 # is EXPORTS), use it as is; otherwise, prepend...
19360 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19361 cp $export_symbols $output_objdir/$soname.def;
19363 echo EXPORTS > $output_objdir/$soname.def;
19364 cat $export_symbols >> $output_objdir/$soname.def;
19366 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19373 hardcode_direct_F77=no
19374 hardcode_shlibpath_var_F77=no
19375 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19376 export_dynamic_flag_spec_F77='${wl}-E'
19377 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19378 # Instead, shared libraries are loaded at an image base (0x10000000 by
19379 # default) and relocated if they conflict, which is a slow very memory
19380 # consuming and fragmenting process. To avoid this, we pick a random,
19381 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19382 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19383 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19384 archive_expsym_cmds_F77='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'
19387 gnu* | linux* | k*bsd*-gnu)
19388 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19390 case $cc_basename,$host_cpu in
19391 pgcc*) # Portland Group C compiler
19392 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
19393 tmp_addflag=' $pic_flag'
19395 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
19396 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
19397 tmp_addflag=' $pic_flag -Mnomain' ;;
19398 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
19399 tmp_addflag=' -i_dynamic' ;;
19400 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
19401 tmp_addflag=' -i_dynamic -nofor_main' ;;
19402 ifc* | ifort*) # Intel Fortran compiler
19403 tmp_addflag=' -nofor_main' ;;
19405 case `$CC -V 2>&1 | sed 5q` in
19406 *Sun\ C*) # Sun C 5.9
19407 whole_archive_flag_spec_F77='${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'
19408 tmp_sharedflag='-G' ;;
19409 *Sun\ F*) # Sun Fortran 8.3
19410 tmp_sharedflag='-G' ;;
19412 tmp_sharedflag='-shared' ;;
19414 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19416 if test $supports_anon_versioning = yes; then
19417 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19418 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19419 $echo "local: *; };" >> $output_objdir/$libname.ver~
19420 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19428 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19429 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19432 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19433 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19438 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19442 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19443 *** create shared libraries on Solaris systems. Therefore, libtool
19444 *** is disabling shared libraries support. We urge you to upgrade GNU
19445 *** binutils to release 2.9.1 or newer. Another option is to modify
19446 *** your PATH or compiler configuration so that the native linker is
19447 *** used, and then restart.
19450 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19451 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19452 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19458 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
19459 case `$LD -v 2>&1` in
19460 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
19464 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
19465 *** reliably create shared libraries on SCO systems. Therefore, libtool
19466 *** is disabling shared libraries support. We urge you to upgrade GNU
19467 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
19468 *** your PATH or compiler configuration so that the native linker is
19469 *** used, and then restart.
19474 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19475 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
19476 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
19477 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
19486 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19488 hardcode_direct_F77=yes
19489 hardcode_shlibpath_var_F77=no
19493 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19494 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19495 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19502 if test "$ld_shlibs_F77" = no; then
19504 hardcode_libdir_flag_spec_F77=
19505 export_dynamic_flag_spec_F77=
19506 whole_archive_flag_spec_F77=
19509 # PORTME fill in a description of your system's linker (not GNU ld)
19512 allow_undefined_flag_F77=unsupported
19513 always_export_symbols_F77=yes
19514 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
19515 # Note: this linker hardcodes the directories in LIBPATH if there
19516 # are no directories specified by -L.
19517 hardcode_minus_L_F77=yes
19518 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
19519 # Neither direct hardcoding nor static linking is supported with a
19521 hardcode_direct_F77=unsupported
19526 if test "$host_cpu" = ia64; then
19527 # On IA64, the linker does run time linking by default, so we don't
19528 # have to do anything special.
19529 aix_use_runtimelinking=no
19530 exp_sym_flag='-Bexport'
19533 # If we're using GNU nm, then we don't want the "-C" option.
19534 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19535 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19536 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
19538 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
19540 aix_use_runtimelinking=no
19542 # Test if we are trying to use run time linking or normal
19543 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19544 # need to do runtime linking.
19545 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19546 for ld_flag in $LDFLAGS; do
19547 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19548 aix_use_runtimelinking=yes
19555 exp_sym_flag='-bexport'
19556 no_entry_flag='-bnoentry'
19559 # When large executables or shared objects are built, AIX ld can
19560 # have problems creating the table of contents. If linking a library
19561 # or program results in "error TOC overflow" add -mminimal-toc to
19562 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19563 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19565 archive_cmds_F77=''
19566 hardcode_direct_F77=yes
19567 hardcode_libdir_separator_F77=':'
19568 link_all_deplibs_F77=yes
19570 if test "$GCC" = yes; then
19571 case $host_os in aix4.[012]|aix4.[012].*)
19572 # We only want to do this on AIX 4.2 and lower, the check
19573 # below for broken collect2 doesn't work under 4.3+
19574 collect2name=`${CC} -print-prog-name=collect2`
19575 if test -f "$collect2name" && \
19576 strings "$collect2name" | grep resolve_lib_name >/dev/null
19578 # We have reworked collect2
19581 # We have old collect2
19582 hardcode_direct_F77=unsupported
19583 # It fails to find uninstalled libraries when the uninstalled
19584 # path is not listed in the libpath. Setting hardcode_minus_L
19585 # to unsupported forces relinking
19586 hardcode_minus_L_F77=yes
19587 hardcode_libdir_flag_spec_F77='-L$libdir'
19588 hardcode_libdir_separator_F77=
19592 shared_flag='-shared'
19593 if test "$aix_use_runtimelinking" = yes; then
19594 shared_flag="$shared_flag "'${wl}-G'
19598 if test "$host_cpu" = ia64; then
19599 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19600 # chokes on -Wl,-G. The following line is correct:
19603 if test "$aix_use_runtimelinking" = yes; then
19604 shared_flag='${wl}-G'
19606 shared_flag='${wl}-bM:SRE'
19611 # It seems that -bexpall does not export symbols beginning with
19612 # underscore (_), so it is better to generate a list of symbols to export.
19613 always_export_symbols_F77=yes
19614 if test "$aix_use_runtimelinking" = yes; then
19615 # Warning - without using the other runtime loading flags (-brtl),
19616 # -berok will link without error, but may produce a broken library.
19617 allow_undefined_flag_F77='-berok'
19618 # Determine the default libpath from the value encoded in an empty executable.
19619 cat >conftest.$ac_ext <<_ACEOF
19624 rm -f conftest.$ac_objext conftest$ac_exeext
19625 if { (ac_try="$ac_link"
19626 case "(($ac_try" in
19627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19628 *) ac_try_echo=$ac_try;;
19630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19631 $as_echo "$ac_try_echo") >&5
19632 (eval "$ac_link") 2>conftest.er1
19634 grep -v '^ *+' conftest.er1 >conftest.err
19636 cat conftest.err >&5
19637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); } && {
19639 test -z "$ac_f77_werror_flag" ||
19640 test ! -s conftest.err
19641 } && test -s conftest$ac_exeext && {
19642 test "$cross_compiling" = yes ||
19643 $as_test_x conftest$ac_exeext
19646 lt_aix_libpath_sed='
19647 /Import File Strings/,/^$/ {
19653 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19654 # Check for a 64-bit object if we didn't find anything.
19655 if test -z "$aix_libpath"; then
19656 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19659 $as_echo "$as_me: failed program was:" >&5
19660 sed 's/^/| /' conftest.$ac_ext >&5
19665 rm -rf conftest.dSYM
19666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19667 conftest$ac_exeext conftest.$ac_ext
19668 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19670 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19671 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
19673 if test "$host_cpu" = ia64; then
19674 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19675 allow_undefined_flag_F77="-z nodefs"
19676 archive_expsym_cmds_F77="\$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"
19678 # Determine the default libpath from the value encoded in an empty executable.
19679 cat >conftest.$ac_ext <<_ACEOF
19684 rm -f conftest.$ac_objext conftest$ac_exeext
19685 if { (ac_try="$ac_link"
19686 case "(($ac_try" in
19687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19688 *) ac_try_echo=$ac_try;;
19690 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19691 $as_echo "$ac_try_echo") >&5
19692 (eval "$ac_link") 2>conftest.er1
19694 grep -v '^ *+' conftest.er1 >conftest.err
19696 cat conftest.err >&5
19697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19698 (exit $ac_status); } && {
19699 test -z "$ac_f77_werror_flag" ||
19700 test ! -s conftest.err
19701 } && test -s conftest$ac_exeext && {
19702 test "$cross_compiling" = yes ||
19703 $as_test_x conftest$ac_exeext
19706 lt_aix_libpath_sed='
19707 /Import File Strings/,/^$/ {
19713 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19714 # Check for a 64-bit object if we didn't find anything.
19715 if test -z "$aix_libpath"; then
19716 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19719 $as_echo "$as_me: failed program was:" >&5
19720 sed 's/^/| /' conftest.$ac_ext >&5
19725 rm -rf conftest.dSYM
19726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19727 conftest$ac_exeext conftest.$ac_ext
19728 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19730 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19731 # Warning - without using the other run time loading flags,
19732 # -berok will link without error, but may produce a broken library.
19733 no_undefined_flag_F77=' ${wl}-bernotok'
19734 allow_undefined_flag_F77=' ${wl}-berok'
19735 # Exported symbols can be pulled into shared objects from archives
19736 whole_archive_flag_spec_F77='$convenience'
19737 archive_cmds_need_lc_F77=yes
19738 # This is similar to how AIX traditionally builds its shared libraries.
19739 archive_expsym_cmds_F77="\$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'
19745 archive_cmds_F77='$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)'
19746 hardcode_libdir_flag_spec_F77='-L$libdir'
19747 hardcode_minus_L_F77=yes
19748 # see comment about different semantics on the GNU ld section
19753 export_dynamic_flag_spec_F77=-rdynamic
19756 cygwin* | mingw* | pw32*)
19757 # When not using gcc, we currently assume that we are using
19758 # Microsoft Visual C++.
19759 # hardcode_libdir_flag_spec is actually meaningless, as there is
19760 # no search path for DLLs.
19761 hardcode_libdir_flag_spec_F77=' '
19762 allow_undefined_flag_F77=unsupported
19763 # Tell ltmain to make .lib files, not .a files.
19765 # Tell ltmain to make .dll files, not .so files.
19767 # FIXME: Setting linknames here is a bad hack.
19768 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19769 # The linker will automatically build a .lib file if we build a DLL.
19770 old_archive_From_new_cmds_F77='true'
19771 # FIXME: Should let the user specify the lib program.
19772 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
19773 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
19774 enable_shared_with_static_runtimes_F77=yes
19777 darwin* | rhapsody*)
19779 rhapsody* | darwin1.[012])
19780 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19783 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19784 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19786 case ${MACOSX_DEPLOYMENT_TARGET} in
19788 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19791 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19797 archive_cmds_need_lc_F77=no
19798 hardcode_direct_F77=no
19799 hardcode_automatic_F77=yes
19800 hardcode_shlibpath_var_F77=unsupported
19801 whole_archive_flag_spec_F77=''
19802 link_all_deplibs_F77=yes
19803 if test "$GCC" = yes ; then
19804 output_verbose_link_cmd='echo'
19805 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
19806 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19807 archive_expsym_cmds_F77="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}"
19808 module_expsym_cmds_F77="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}"
19810 case $cc_basename in
19812 output_verbose_link_cmd='echo'
19813 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
19814 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19815 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19816 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19817 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19827 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19828 hardcode_libdir_flag_spec_F77='-L$libdir'
19829 hardcode_shlibpath_var_F77=no
19836 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19837 # support. Future versions do this automatically, but an explicit c++rt0.o
19838 # does not break anything, and helps significantly (at the cost of a little
19841 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19842 hardcode_libdir_flag_spec_F77='-R$libdir'
19843 hardcode_direct_F77=yes
19844 hardcode_shlibpath_var_F77=no
19847 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19849 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19850 hardcode_direct_F77=yes
19851 hardcode_minus_L_F77=yes
19852 hardcode_shlibpath_var_F77=no
19855 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19856 freebsd* | dragonfly*)
19857 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19858 hardcode_libdir_flag_spec_F77='-R$libdir'
19859 hardcode_direct_F77=yes
19860 hardcode_shlibpath_var_F77=no
19864 if test "$GCC" = yes; then
19865 archive_cmds_F77='$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'
19867 archive_cmds_F77='$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'
19869 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19870 hardcode_libdir_separator_F77=:
19871 hardcode_direct_F77=yes
19873 # hardcode_minus_L: Not really in the search PATH,
19874 # but as the default location of the library.
19875 hardcode_minus_L_F77=yes
19876 export_dynamic_flag_spec_F77='${wl}-E'
19880 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19881 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19883 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19885 if test "$with_gnu_ld" = no; then
19886 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19887 hardcode_libdir_separator_F77=:
19889 hardcode_direct_F77=yes
19890 export_dynamic_flag_spec_F77='${wl}-E'
19892 # hardcode_minus_L: Not really in the search PATH,
19893 # but as the default location of the library.
19894 hardcode_minus_L_F77=yes
19899 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19902 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19905 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19908 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19914 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19917 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19920 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19924 if test "$with_gnu_ld" = no; then
19925 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19926 hardcode_libdir_separator_F77=:
19930 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19931 hardcode_direct_F77=no
19932 hardcode_shlibpath_var_F77=no
19935 hardcode_direct_F77=yes
19936 export_dynamic_flag_spec_F77='${wl}-E'
19938 # hardcode_minus_L: Not really in the search PATH,
19939 # but as the default location of the library.
19940 hardcode_minus_L_F77=yes
19946 irix5* | irix6* | nonstopux*)
19947 if test "$GCC" = yes; then
19948 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19950 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19951 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19953 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19954 hardcode_libdir_separator_F77=:
19955 link_all_deplibs_F77=yes
19959 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19960 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19962 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19964 hardcode_libdir_flag_spec_F77='-R$libdir'
19965 hardcode_direct_F77=yes
19966 hardcode_shlibpath_var_F77=no
19970 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19971 hardcode_direct_F77=yes
19972 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19973 hardcode_libdir_separator_F77=:
19974 hardcode_shlibpath_var_F77=no
19978 if test -f /usr/libexec/ld.so; then
19979 hardcode_direct_F77=yes
19980 hardcode_shlibpath_var_F77=no
19981 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19982 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19983 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19984 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19985 export_dynamic_flag_spec_F77='${wl}-E'
19988 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19989 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19990 hardcode_libdir_flag_spec_F77='-R$libdir'
19993 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19994 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20004 hardcode_libdir_flag_spec_F77='-L$libdir'
20005 hardcode_minus_L_F77=yes
20006 allow_undefined_flag_F77=unsupported
20007 archive_cmds_F77='$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'
20008 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
20012 if test "$GCC" = yes; then
20013 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
20014 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
20016 allow_undefined_flag_F77=' -expect_unresolved \*'
20017 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
20019 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20020 hardcode_libdir_separator_F77=:
20023 osf4* | osf5*) # as osf3* with the addition of -msym flag
20024 if test "$GCC" = yes; then
20025 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
20026 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
20027 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20029 allow_undefined_flag_F77=' -expect_unresolved \*'
20030 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
20031 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
20032 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
20034 # Both c and cxx compiler support -rpath directly
20035 hardcode_libdir_flag_spec_F77='-rpath $libdir'
20037 hardcode_libdir_separator_F77=:
20041 no_undefined_flag_F77=' -z text'
20042 if test "$GCC" = yes; then
20044 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20045 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20046 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
20049 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20050 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20051 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20053 hardcode_libdir_flag_spec_F77='-R$libdir'
20054 hardcode_shlibpath_var_F77=no
20056 solaris2.[0-5] | solaris2.[0-5].*) ;;
20058 # The compiler driver will combine and reorder linker options,
20059 # but understands `-z linker_flag'. GCC discards it without `$wl',
20060 # but is careful enough not to reorder.
20061 # Supported since Solaris 2.6 (maybe 2.5.1?)
20062 if test "$GCC" = yes; then
20063 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20065 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
20069 link_all_deplibs_F77=yes
20073 if test "x$host_vendor" = xsequent; then
20074 # Use $CC to link under sequent, because it throws in some extra .o
20075 # files that make .init and .fini sections work.
20076 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20078 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20080 hardcode_libdir_flag_spec_F77='-L$libdir'
20081 hardcode_direct_F77=yes
20082 hardcode_minus_L_F77=yes
20083 hardcode_shlibpath_var_F77=no
20087 case $host_vendor in
20089 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20090 hardcode_direct_F77=yes # is this really true???
20093 ## LD is ld it makes a PLAMLIB
20094 ## CC just makes a GrossModule.
20095 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20096 reload_cmds_F77='$CC -r -o $output$reload_objs'
20097 hardcode_direct_F77=no
20100 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20101 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
20104 runpath_var='LD_RUN_PATH'
20105 hardcode_shlibpath_var_F77=no
20109 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20110 hardcode_shlibpath_var_F77=no
20111 export_dynamic_flag_spec_F77='-Bexport'
20115 if test -d /usr/nec; then
20116 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20117 hardcode_shlibpath_var_F77=no
20118 runpath_var=LD_RUN_PATH
20119 hardcode_runpath_var=yes
20124 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20125 no_undefined_flag_F77='${wl}-z,text'
20126 archive_cmds_need_lc_F77=no
20127 hardcode_shlibpath_var_F77=no
20128 runpath_var='LD_RUN_PATH'
20130 if test "$GCC" = yes; then
20131 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20132 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20134 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20135 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20139 sysv5* | sco3.2v5* | sco5v6*)
20140 # Note: We can NOT use -z defs as we might desire, because we do not
20141 # link with -lc, and that would cause any symbols used from libc to
20142 # always be unresolved, which means just about no library would
20143 # ever link correctly. If we're not using GNU ld we use -z text
20144 # though, which does catch some bad symbols but isn't as heavy-handed
20146 no_undefined_flag_F77='${wl}-z,text'
20147 allow_undefined_flag_F77='${wl}-z,nodefs'
20148 archive_cmds_need_lc_F77=no
20149 hardcode_shlibpath_var_F77=no
20150 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
20151 hardcode_libdir_separator_F77=':'
20152 link_all_deplibs_F77=yes
20153 export_dynamic_flag_spec_F77='${wl}-Bexport'
20154 runpath_var='LD_RUN_PATH'
20156 if test "$GCC" = yes; then
20157 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20158 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20160 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20161 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20166 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20167 hardcode_libdir_flag_spec_F77='-L$libdir'
20168 hardcode_shlibpath_var_F77=no
20177 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
20178 $as_echo "$ld_shlibs_F77" >&6; }
20179 test "$ld_shlibs_F77" = no && can_build_shared=no
20182 # Do we need to explicitly link libc?
20184 case "x$archive_cmds_need_lc_F77" in
20186 # Assume -lc should be added
20187 archive_cmds_need_lc_F77=yes
20189 if test "$enable_shared" = yes && test "$GCC" = yes; then
20190 case $archive_cmds_F77 in
20192 # FIXME: we may have to deal with multi-command sequences.
20195 # Test whether the compiler implicitly links with -lc since on some
20196 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20197 # to ld, don't add -lc before -lgcc.
20198 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20199 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20201 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20204 (eval $ac_compile) 2>&5
20206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207 (exit $ac_status); } 2>conftest.err; then
20210 libobjs=conftest.$ac_objext
20212 wl=$lt_prog_compiler_wl_F77
20213 pic_flag=$lt_prog_compiler_pic_F77
20219 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
20220 allow_undefined_flag_F77=
20221 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20222 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20225 (exit $ac_status); }
20227 archive_cmds_need_lc_F77=no
20229 archive_cmds_need_lc_F77=yes
20231 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
20233 cat conftest.err 1>&5
20236 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
20237 $as_echo "$archive_cmds_need_lc_F77" >&6; }
20244 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20245 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20246 library_names_spec=
20247 libname_spec='lib$name'
20251 postuninstall_cmds=
20255 shlibpath_overrides_runpath=unknown
20257 dynamic_linker="$host_os ld.so"
20258 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20260 need_lib_prefix=unknown
20261 hardcode_into_libs=no
20263 # when you set need_version to no, make sure it does not cause -set_version
20264 # flags to be left without arguments
20265 need_version=unknown
20270 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20271 shlibpath_var=LIBPATH
20273 # AIX 3 has no versioning support, so we append a major version to the name.
20274 soname_spec='${libname}${release}${shared_ext}$major'
20281 hardcode_into_libs=yes
20282 if test "$host_cpu" = ia64; then
20283 # AIX 5 supports IA64
20284 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20285 shlibpath_var=LD_LIBRARY_PATH
20287 # With GCC up to 2.95.x, collect2 would create an import file
20288 # for dependence libraries. The import file would start with
20289 # the line `#! .'. This would cause the generated library to
20290 # depend on `.', always an invalid library. This was fixed in
20291 # development snapshots of GCC prior to 3.0.
20293 aix4 | aix4.[01] | aix4.[01].*)
20294 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20296 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20299 can_build_shared=no
20303 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20304 # soname into executable. Probably we can add versioning support to
20305 # collect2, so additional links can be useful in future.
20306 if test "$aix_use_runtimelinking" = yes; then
20307 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20308 # instead of lib<name>.a to let people know that these are not
20309 # typical AIX shared libraries.
20310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20312 # We preserve .a as extension for shared libraries through AIX4.2
20313 # and later when we are not doing run time linking.
20314 library_names_spec='${libname}${release}.a $libname.a'
20315 soname_spec='${libname}${release}${shared_ext}$major'
20317 shlibpath_var=LIBPATH
20322 library_names_spec='$libname.ixlibrary $libname.a'
20323 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20324 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'
20328 library_names_spec='${libname}${shared_ext}'
20329 dynamic_linker="$host_os ld.so"
20330 shlibpath_var=LIBRARY_PATH
20336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20337 soname_spec='${libname}${release}${shared_ext}$major'
20338 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20339 shlibpath_var=LD_LIBRARY_PATH
20340 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20341 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20342 # the default ld.so.conf also contains /usr/contrib/lib and
20343 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20344 # libtool to hard-code these into programs
20347 cygwin* | mingw* | pw32*)
20348 version_type=windows
20353 case $GCC,$host_os in
20354 yes,cygwin* | yes,mingw* | yes,pw32*)
20355 library_names_spec='$libname.dll.a'
20356 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20357 postinstall_cmds='base_file=`basename \${file}`~
20358 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20359 dldir=$destdir/`dirname \$dlpath`~
20360 test -d \$dldir || mkdir -p \$dldir~
20361 $install_prog $dir/$dlname \$dldir/$dlname~
20362 chmod a+x \$dldir/$dlname'
20363 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20364 dlpath=$dir/\$dldll~
20366 shlibpath_overrides_runpath=yes
20370 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20371 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20372 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20375 # MinGW DLLs use traditional 'lib' prefix
20376 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20377 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20378 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20379 # It is most probably a Windows format PATH printed by
20380 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20381 # path with ; separators, and with drive letters. We can handle the
20382 # drive letters (cygwin fileutils understands them), so leave them,
20383 # especially as we might pass files found there to a mingw objdump,
20384 # which wouldn't understand a cygwinified path. Ahh.
20385 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20387 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20391 # pw32 DLLs use 'pw' prefix rather than 'lib'
20392 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20398 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20401 dynamic_linker='Win32 ld.exe'
20402 # FIXME: first we should search . and the directory the executable is in
20406 darwin* | rhapsody*)
20407 dynamic_linker="$host_os dyld"
20408 version_type=darwin
20411 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20412 soname_spec='${libname}${release}${major}$shared_ext'
20413 shlibpath_overrides_runpath=yes
20414 shlibpath_var=DYLD_LIBRARY_PATH
20415 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20417 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20425 soname_spec='${libname}${release}${shared_ext}$major'
20426 shlibpath_var=LD_LIBRARY_PATH
20433 freebsd* | dragonfly*)
20434 # DragonFly does not have aout. When/if they implement a new
20435 # versioning mechanism, adjust this.
20436 if test -x /usr/bin/objformat; then
20437 objformat=`/usr/bin/objformat`
20440 freebsd[123]*) objformat=aout ;;
20441 *) objformat=elf ;;
20444 version_type=freebsd-$objformat
20445 case $version_type in
20447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20452 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20456 shlibpath_var=LD_LIBRARY_PATH
20459 shlibpath_overrides_runpath=yes
20461 freebsd3.[01]* | freebsdelf3.[01]*)
20462 shlibpath_overrides_runpath=yes
20463 hardcode_into_libs=yes
20465 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20466 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20467 shlibpath_overrides_runpath=no
20468 hardcode_into_libs=yes
20470 *) # from 4.6 on, and DragonFly
20471 shlibpath_overrides_runpath=yes
20472 hardcode_into_libs=yes
20481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20482 soname_spec='${libname}${release}${shared_ext}$major'
20483 shlibpath_var=LD_LIBRARY_PATH
20484 hardcode_into_libs=yes
20487 hpux9* | hpux10* | hpux11*)
20488 # Give a soname corresponding to the major version so that dld.sl refuses to
20489 # link against other versions.
20496 hardcode_into_libs=yes
20497 dynamic_linker="$host_os dld.so"
20498 shlibpath_var=LD_LIBRARY_PATH
20499 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20501 soname_spec='${libname}${release}${shared_ext}$major'
20502 if test "X$HPUX_IA64_MODE" = X32; then
20503 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20505 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20507 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20511 hardcode_into_libs=yes
20512 dynamic_linker="$host_os dld.sl"
20513 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20514 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20516 soname_spec='${libname}${release}${shared_ext}$major'
20517 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20518 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20522 dynamic_linker="$host_os dld.sl"
20523 shlibpath_var=SHLIB_PATH
20524 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20526 soname_spec='${libname}${release}${shared_ext}$major'
20529 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20530 postinstall_cmds='chmod 555 $lib'
20537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20538 soname_spec='${libname}${release}${shared_ext}$major'
20539 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20540 shlibpath_var=LD_LIBRARY_PATH
20541 shlibpath_overrides_runpath=no
20542 hardcode_into_libs=yes
20545 irix5* | irix6* | nonstopux*)
20547 nonstopux*) version_type=nonstopux ;;
20549 if test "$lt_cv_prog_gnu_ld" = yes; then
20557 soname_spec='${libname}${release}${shared_ext}$major'
20558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20560 irix5* | nonstopux*)
20561 libsuff= shlibsuff=
20564 case $LD in # libtool.m4 will add one of these switches to LD
20565 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20566 libsuff= shlibsuff= libmagic=32-bit;;
20567 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20568 libsuff=32 shlibsuff=N32 libmagic=N32;;
20569 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20570 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20571 *) libsuff= shlibsuff= libmagic=never-match;;
20575 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20576 shlibpath_overrides_runpath=no
20577 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20578 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20579 hardcode_into_libs=yes
20582 # No shared lib support for Linux oldld, aout, or coff.
20583 linux*oldld* | linux*aout* | linux*coff*)
20587 # This must be Linux ELF.
20588 linux* | k*bsd*-gnu)
20592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20593 soname_spec='${libname}${release}${shared_ext}$major'
20594 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20595 shlibpath_var=LD_LIBRARY_PATH
20596 shlibpath_overrides_runpath=no
20597 # This implies no fast_install, which is unacceptable.
20598 # Some rework will be needed to allow for fast_install
20599 # before this can be enabled.
20600 hardcode_into_libs=yes
20601 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20602 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20604 # Append ld.so.conf contents to the search path
20605 if test -f /etc/ld.so.conf; then
20606 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' ' '`
20607 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
20610 # We used to test for /lib/ld.so.1 and disable shared libraries on
20611 # powerpc, because MkLinux only supported shared libraries with the
20612 # GNU dynamic linker. Since this was broken with cross compilers,
20613 # most powerpc-linux boxes support dynamic linking these days and
20614 # people can always --disable-shared, the test was removed, and we
20615 # assume the GNU/Linux dynamic linker is in use.
20616 dynamic_linker='GNU/Linux ld.so'
20623 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20625 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20626 dynamic_linker='NetBSD (a.out) ld.so'
20628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20629 soname_spec='${libname}${release}${shared_ext}$major'
20630 dynamic_linker='NetBSD ld.elf_so'
20632 shlibpath_var=LD_LIBRARY_PATH
20633 shlibpath_overrides_runpath=yes
20634 hardcode_into_libs=yes
20639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20640 shlibpath_var=LD_LIBRARY_PATH
20641 shlibpath_overrides_runpath=yes
20648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20649 soname_spec='${libname}${release}${shared_ext}$major'
20650 shlibpath_var=LD_LIBRARY_PATH
20651 shlibpath_overrides_runpath=yes
20656 sys_lib_dlsearch_path_spec="/usr/lib"
20658 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20660 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20661 *) need_version=no ;;
20663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20664 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20665 shlibpath_var=LD_LIBRARY_PATH
20666 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20668 openbsd2.[89] | openbsd2.[89].*)
20669 shlibpath_overrides_runpath=no
20672 shlibpath_overrides_runpath=yes
20676 shlibpath_overrides_runpath=yes
20681 libname_spec='$name'
20684 library_names_spec='$libname${shared_ext} $libname.a'
20685 dynamic_linker='OS/2 ld.exe'
20686 shlibpath_var=LIBPATH
20689 osf3* | osf4* | osf5*)
20693 soname_spec='${libname}${release}${shared_ext}$major'
20694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20695 shlibpath_var=LD_LIBRARY_PATH
20696 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20697 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20709 soname_spec='${libname}${release}${shared_ext}$major'
20710 shlibpath_var=LD_LIBRARY_PATH
20711 shlibpath_overrides_runpath=yes
20712 hardcode_into_libs=yes
20713 # ldd complains unless libraries are executable
20714 postinstall_cmds='chmod +x $lib'
20719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20720 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20721 shlibpath_var=LD_LIBRARY_PATH
20722 shlibpath_overrides_runpath=yes
20723 if test "$with_gnu_ld" = yes; then
20731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20732 soname_spec='${libname}${release}${shared_ext}$major'
20733 shlibpath_var=LD_LIBRARY_PATH
20734 case $host_vendor in
20736 shlibpath_overrides_runpath=no
20738 export_dynamic_flag_spec='${wl}-Blargedynsym'
20739 runpath_var=LD_RUN_PATH
20747 shlibpath_overrides_runpath=no
20748 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20754 if test -d /usr/nec ;then
20756 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20757 soname_spec='$libname${shared_ext}.$major'
20758 shlibpath_var=LD_LIBRARY_PATH
20762 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20763 version_type=freebsd-elf
20766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20767 soname_spec='${libname}${release}${shared_ext}$major'
20768 shlibpath_var=LD_LIBRARY_PATH
20769 hardcode_into_libs=yes
20770 if test "$with_gnu_ld" = yes; then
20771 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20772 shlibpath_overrides_runpath=no
20774 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20775 shlibpath_overrides_runpath=yes
20778 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20782 sys_lib_dlsearch_path_spec='/usr/lib'
20787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20788 soname_spec='${libname}${release}${shared_ext}$major'
20789 shlibpath_var=LD_LIBRARY_PATH
20796 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20797 $as_echo "$dynamic_linker" >&6; }
20798 test "$dynamic_linker" = no && can_build_shared=no
20800 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20801 $as_echo_n "(cached) " >&6
20803 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
20806 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20807 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20808 $as_echo_n "(cached) " >&6
20810 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
20813 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20815 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20816 if test "$GCC" = yes; then
20817 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20820 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20821 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20822 hardcode_action_F77=
20823 if test -n "$hardcode_libdir_flag_spec_F77" || \
20824 test -n "$runpath_var_F77" || \
20825 test "X$hardcode_automatic_F77" = "Xyes" ; then
20827 # We can hardcode non-existant directories.
20828 if test "$hardcode_direct_F77" != no &&
20829 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20830 # have to relink, otherwise we might link with an installed library
20831 # when we should be linking with a yet-to-be-installed one
20832 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20833 test "$hardcode_minus_L_F77" != no; then
20834 # Linking always hardcodes the temporary library directory.
20835 hardcode_action_F77=relink
20837 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20838 hardcode_action_F77=immediate
20841 # We cannot hardcode anything, or else we can only hardcode existing
20843 hardcode_action_F77=unsupported
20845 { $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20846 $as_echo "$hardcode_action_F77" >&6; }
20848 if test "$hardcode_action_F77" = relink; then
20849 # Fast installation is not supported
20850 enable_fast_install=no
20851 elif test "$shlibpath_overrides_runpath" = yes ||
20852 test "$enable_shared" = no; then
20853 # Fast installation is not necessary
20854 enable_fast_install=needless
20858 # The else clause should only fire when bootstrapping the
20859 # libtool distribution, otherwise you forgot to ship ltmain.sh
20860 # with your package, and you will get complaints that there are
20861 # no rules to generate ltmain.sh.
20862 if test -f "$ltmain"; then
20863 # See if we are running on zsh, and set the options which allow our commands through
20864 # without removal of \ escapes.
20865 if test -n "${ZSH_VERSION+set}" ; then
20866 setopt NO_GLOB_SUBST
20868 # Now quote all the things that may contain metacharacters while being
20869 # careful not to overquote the AC_SUBSTed values. We take copies of the
20870 # variables and quote the copies for generation of the libtool script.
20871 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20873 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20874 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20875 deplibs_check_method reload_flag reload_cmds need_locks \
20876 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20877 lt_cv_sys_global_symbol_to_c_name_address \
20878 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20879 old_postinstall_cmds old_postuninstall_cmds \
20883 lt_prog_compiler_wl_F77 \
20884 lt_prog_compiler_pic_F77 \
20885 lt_prog_compiler_static_F77 \
20886 lt_prog_compiler_no_builtin_flag_F77 \
20887 export_dynamic_flag_spec_F77 \
20888 thread_safe_flag_spec_F77 \
20889 whole_archive_flag_spec_F77 \
20890 enable_shared_with_static_runtimes_F77 \
20891 old_archive_cmds_F77 \
20892 old_archive_from_new_cmds_F77 \
20893 predep_objects_F77 \
20894 postdep_objects_F77 \
20897 compiler_lib_search_path_F77 \
20898 compiler_lib_search_dirs_F77 \
20900 archive_expsym_cmds_F77 \
20901 postinstall_cmds_F77 \
20902 postuninstall_cmds_F77 \
20903 old_archive_from_expsyms_cmds_F77 \
20904 allow_undefined_flag_F77 \
20905 no_undefined_flag_F77 \
20906 export_symbols_cmds_F77 \
20907 hardcode_libdir_flag_spec_F77 \
20908 hardcode_libdir_flag_spec_ld_F77 \
20909 hardcode_libdir_separator_F77 \
20910 hardcode_automatic_F77 \
20912 module_expsym_cmds_F77 \
20913 lt_cv_prog_compiler_c_o_F77 \
20914 fix_srcfile_path_F77 \
20915 exclude_expsyms_F77 \
20916 include_expsyms_F77; do
20919 old_archive_cmds_F77 | \
20920 old_archive_from_new_cmds_F77 | \
20921 archive_cmds_F77 | \
20922 archive_expsym_cmds_F77 | \
20923 module_cmds_F77 | \
20924 module_expsym_cmds_F77 | \
20925 old_archive_from_expsyms_cmds_F77 | \
20926 export_symbols_cmds_F77 | \
20927 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20928 postinstall_cmds | postuninstall_cmds | \
20929 old_postinstall_cmds | old_postuninstall_cmds | \
20930 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20931 # Double-quote double-evaled strings.
20932 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20935 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20941 *'\$0 --fallback-echo"')
20942 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20948 cat <<__EOF__ >> "$cfgfile"
20949 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20951 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20953 # Shell to use when invoking shell scripts.
20956 # Whether or not to build shared libraries.
20957 build_libtool_libs=$enable_shared
20959 # Whether or not to build static libraries.
20960 build_old_libs=$enable_static
20962 # Whether or not to add -lc for building shared libraries.
20963 build_libtool_need_lc=$archive_cmds_need_lc_F77
20965 # Whether or not to disallow shared libs when runtime libs are static
20966 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20968 # Whether or not to optimize for fast installation.
20969 fast_install=$enable_fast_install
20972 host_alias=$host_alias
20976 # The build system.
20977 build_alias=$build_alias
20981 # An echo program that does not interpret backslashes.
20986 AR_FLAGS=$lt_AR_FLAGS
20991 # LTCC compiler flags.
20992 LTCFLAGS=$lt_LTCFLAGS
20994 # A language-specific compiler.
20995 CC=$lt_compiler_F77
20997 # Is the compiler the GNU C compiler?
21003 # The linker used to build libraries.
21006 # Whether we need hard or soft links.
21009 # A BSD-compatible nm program.
21012 # A symbol stripping program
21015 # Used to examine libraries when file_magic_cmd begins "file"
21016 MAGIC_CMD=$MAGIC_CMD
21018 # Used on cygwin: DLL creation program.
21021 # Used on cygwin: object dumper.
21024 # Used on cygwin: assembler.
21027 # The name of the directory that contains temporary libtool files.
21030 # How to create reloadable object files.
21031 reload_flag=$lt_reload_flag
21032 reload_cmds=$lt_reload_cmds
21034 # How to pass a linker flag through the compiler.
21035 wl=$lt_lt_prog_compiler_wl_F77
21037 # Object file suffix (normally "o").
21038 objext="$ac_objext"
21040 # Old archive suffix (normally "a").
21043 # Shared library suffix (normally ".so").
21044 shrext_cmds='$shrext_cmds'
21046 # Executable file suffix (normally "").
21049 # Additional compiler flags for building library objects.
21050 pic_flag=$lt_lt_prog_compiler_pic_F77
21053 # What is the maximum length of a command?
21054 max_cmd_len=$lt_cv_sys_max_cmd_len
21056 # Does compiler simultaneously support -c and -o options?
21057 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
21059 # Must we lock files when doing compilation?
21060 need_locks=$lt_need_locks
21062 # Do we need the lib prefix for modules?
21063 need_lib_prefix=$need_lib_prefix
21065 # Do we need a version for libraries?
21066 need_version=$need_version
21068 # Whether dlopen is supported.
21069 dlopen_support=$enable_dlopen
21071 # Whether dlopen of programs is supported.
21072 dlopen_self=$enable_dlopen_self
21074 # Whether dlopen of statically linked programs is supported.
21075 dlopen_self_static=$enable_dlopen_self_static
21077 # Compiler flag to prevent dynamic linking.
21078 link_static_flag=$lt_lt_prog_compiler_static_F77
21080 # Compiler flag to turn off builtin functions.
21081 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
21083 # Compiler flag to allow reflexive dlopens.
21084 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
21086 # Compiler flag to generate shared objects directly from archives.
21087 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
21089 # Compiler flag to generate thread-safe objects.
21090 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
21092 # Library versioning type.
21093 version_type=$version_type
21095 # Format of library name prefix.
21096 libname_spec=$lt_libname_spec
21098 # List of archive names. First name is the real one, the rest are links.
21099 # The last name is the one that the linker finds with -lNAME.
21100 library_names_spec=$lt_library_names_spec
21102 # The coded name of the library, if different from the real name.
21103 soname_spec=$lt_soname_spec
21105 # Commands used to build and install an old-style archive.
21107 old_archive_cmds=$lt_old_archive_cmds_F77
21108 old_postinstall_cmds=$lt_old_postinstall_cmds
21109 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21111 # Create an old-style archive from a shared archive.
21112 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
21114 # Create a temporary old-style archive to link instead of a shared archive.
21115 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
21117 # Commands used to build and install a shared archive.
21118 archive_cmds=$lt_archive_cmds_F77
21119 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
21120 postinstall_cmds=$lt_postinstall_cmds
21121 postuninstall_cmds=$lt_postuninstall_cmds
21123 # Commands used to build a loadable module (assumed same as above if empty)
21124 module_cmds=$lt_module_cmds_F77
21125 module_expsym_cmds=$lt_module_expsym_cmds_F77
21127 # Commands to strip libraries.
21128 old_striplib=$lt_old_striplib
21129 striplib=$lt_striplib
21131 # Dependencies to place before the objects being linked to create a
21133 predep_objects=$lt_predep_objects_F77
21135 # Dependencies to place after the objects being linked to create a
21137 postdep_objects=$lt_postdep_objects_F77
21139 # Dependencies to place before the objects being linked to create a
21141 predeps=$lt_predeps_F77
21143 # Dependencies to place after the objects being linked to create a
21145 postdeps=$lt_postdeps_F77
21147 # The directories searched by this compiler when creating a shared
21149 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
21151 # The library search path used internally by the compiler when linking
21152 # a shared library.
21153 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
21155 # Method to check whether dependent libraries are shared objects.
21156 deplibs_check_method=$lt_deplibs_check_method
21158 # Command to use when deplibs_check_method == file_magic.
21159 file_magic_cmd=$lt_file_magic_cmd
21161 # Flag that allows shared libraries with undefined symbols to be built.
21162 allow_undefined_flag=$lt_allow_undefined_flag_F77
21164 # Flag that forces no undefined symbols.
21165 no_undefined_flag=$lt_no_undefined_flag_F77
21167 # Commands used to finish a libtool library installation in a directory.
21168 finish_cmds=$lt_finish_cmds
21170 # Same as above, but a single script fragment to be evaled but not shown.
21171 finish_eval=$lt_finish_eval
21173 # Take the output of nm and produce a listing of raw symbols and C names.
21174 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21176 # Transform the output of nm in a proper C declaration
21177 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21179 # Transform the output of nm in a C name address pair
21180 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21182 # This is the shared library runtime path variable.
21183 runpath_var=$runpath_var
21185 # This is the shared library path variable.
21186 shlibpath_var=$shlibpath_var
21188 # Is shlibpath searched before the hard-coded library search path?
21189 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21191 # How to hardcode a shared library path into an executable.
21192 hardcode_action=$hardcode_action_F77
21194 # Whether we should hardcode library paths into libraries.
21195 hardcode_into_libs=$hardcode_into_libs
21197 # Flag to hardcode \$libdir into a binary during linking.
21198 # This must work even if \$libdir does not exist.
21199 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
21201 # If ld is used when linking, flag to hardcode \$libdir into
21202 # a binary during linking. This must work even if \$libdir does
21204 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
21206 # Whether we need a single -rpath flag with a separated argument.
21207 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
21209 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21210 # resulting binary.
21211 hardcode_direct=$hardcode_direct_F77
21213 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21214 # resulting binary.
21215 hardcode_minus_L=$hardcode_minus_L_F77
21217 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21218 # the resulting binary.
21219 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
21221 # Set to yes if building a shared library automatically hardcodes DIR into the library
21222 # and all subsequent libraries and executables linked against it.
21223 hardcode_automatic=$hardcode_automatic_F77
21225 # Variables whose values should be saved in libtool wrapper scripts and
21226 # restored at relink time.
21227 variables_saved_for_relink="$variables_saved_for_relink"
21229 # Whether libtool must link a program against all its dependency libraries.
21230 link_all_deplibs=$link_all_deplibs_F77
21232 # Compile-time system search path for libraries
21233 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21235 # Run-time system search path for libraries
21236 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21238 # Fix the shell variable \$srcfile for the compiler.
21239 fix_srcfile_path=$lt_fix_srcfile_path
21241 # Set to yes if exported symbols are required.
21242 always_export_symbols=$always_export_symbols_F77
21244 # The commands to list exported symbols.
21245 export_symbols_cmds=$lt_export_symbols_cmds_F77
21247 # The commands to extract the exported symbol list from a shared archive.
21248 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21250 # Symbols that should not be listed in the preloaded symbols.
21251 exclude_expsyms=$lt_exclude_expsyms_F77
21253 # Symbols that must always be exported.
21254 include_expsyms=$lt_include_expsyms_F77
21256 # ### END LIBTOOL TAG CONFIG: $tagname
21262 # If there is no Makefile yet, we rely on a make rule to execute
21263 # `config.status --recheck' to rerun these tests and create the
21264 # libtool script then.
21265 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21266 if test -f "$ltmain_in"; then
21267 test -f Makefile && make "$ltmain"
21273 ac_cpp='$CPP $CPPFLAGS'
21274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21286 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
21289 # Source file extension for Java test sources.
21292 # Object file extension for compiled Java test sources.
21296 # Code to be used in simple compile tests
21297 lt_simple_compile_test_code="class foo {}"
21299 # Code to be used in simple link tests
21300 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
21302 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21304 # If no C compiler was specified, use CC.
21307 # If no C compiler flags were specified, use CFLAGS.
21308 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21310 # Allow CC to be a program name with arguments.
21314 # save warnings/boilerplate of simple test code
21315 ac_outfile=conftest.$ac_objext
21316 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
21317 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21318 _lt_compiler_boilerplate=`cat conftest.err`
21321 ac_outfile=conftest.$ac_objext
21322 echo "$lt_simple_link_test_code" >conftest.$ac_ext
21323 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21324 _lt_linker_boilerplate=`cat conftest.err`
21328 # Allow CC to be a program name with arguments.
21333 for cc_temp in $compiler""; do
21335 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21336 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21341 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21344 # GCJ did not exist at the time GCC didn't implicitly link libc in.
21345 archive_cmds_need_lc_GCJ=no
21347 old_archive_cmds_GCJ=$old_archive_cmds
21350 ## There is no encapsulation within the following macros, do not change
21351 ## the running order or otherwise move them around unless you know exactly
21352 ## what you are doing...
21354 lt_prog_compiler_no_builtin_flag_GCJ=
21356 if test "$GCC" = yes; then
21357 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21360 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
21361 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
21362 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21363 $as_echo_n "(cached) " >&6
21365 lt_cv_prog_compiler_rtti_exceptions=no
21366 ac_outfile=conftest.$ac_objext
21367 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21368 lt_compiler_flag="-fno-rtti -fno-exceptions"
21369 # Insert the option either (1) after the last *FLAGS variable, or
21370 # (2) before a word containing "conftest.", or (3) at the end.
21371 # Note that $ac_compile itself does not contain backslashes and begins
21372 # with a dollar sign (not a hyphen), so the echo should work correctly.
21373 # The option is referenced via a variable to avoid confusing sed.
21374 lt_compile=`echo "$ac_compile" | $SED \
21375 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21376 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21377 -e 's:$: $lt_compiler_flag:'`
21378 (eval echo "\"\$as_me:21378: $lt_compile\"" >&5)
21379 (eval "$lt_compile" 2>conftest.err)
21381 cat conftest.err >&5
21382 echo "$as_me:21382: \$? = $ac_status" >&5
21383 if (exit $ac_status) && test -s "$ac_outfile"; then
21384 # The compiler can only warn and ignore the option if not recognized
21385 # So say no if there are warnings other than the usual output.
21386 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21387 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21388 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21389 lt_cv_prog_compiler_rtti_exceptions=yes
21395 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21396 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
21398 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21399 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21406 lt_prog_compiler_wl_GCJ=
21407 lt_prog_compiler_pic_GCJ=
21408 lt_prog_compiler_static_GCJ=
21410 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21411 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
21413 if test "$GCC" = yes; then
21414 lt_prog_compiler_wl_GCJ='-Wl,'
21415 lt_prog_compiler_static_GCJ='-static'
21419 # All AIX code is PIC.
21420 if test "$host_cpu" = ia64; then
21421 # AIX 5 now supports IA64 processor
21422 lt_prog_compiler_static_GCJ='-Bstatic'
21427 # FIXME: we need at least 68020 code to build shared libraries, but
21428 # adding the `-m68020' flag to GCC prevents building anything better,
21430 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21433 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21434 # PIC is the default for these OSes.
21437 mingw* | cygwin* | pw32* | os2*)
21438 # This hack is so that the source file can tell whether it is being
21439 # built for inclusion in a dll (and should export symbols for example).
21440 # Although the cygwin gcc ignores -fPIC, still need this for old-style
21441 # (--disable-auto-import) libraries
21445 darwin* | rhapsody*)
21446 # PIC is the default on this platform
21447 # Common symbols not allowed in MH_DYLIB files
21448 lt_prog_compiler_pic_GCJ='-fno-common'
21452 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21453 # Instead, we relocate shared libraries at runtime.
21457 # Just because we use GCC doesn't mean we suddenly get shared libraries
21458 # on systems that don't support them.
21459 lt_prog_compiler_can_build_shared_GCJ=no
21464 if test -d /usr/nec; then
21465 lt_prog_compiler_pic_GCJ=-Kconform_pic
21470 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21471 # not for PA HP-UX.
21477 lt_prog_compiler_pic_GCJ='-fPIC'
21483 lt_prog_compiler_pic_GCJ='-fPIC'
21487 # PORTME Check for flag to pass linker flags through the system compiler.
21490 lt_prog_compiler_wl_GCJ='-Wl,'
21491 if test "$host_cpu" = ia64; then
21492 # AIX 5 now supports IA64 processor
21493 lt_prog_compiler_static_GCJ='-Bstatic'
21495 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21499 # PIC is the default on this platform
21500 # Common symbols not allowed in MH_DYLIB files
21501 case $cc_basename in
21503 lt_prog_compiler_pic_GCJ='-qnocommon'
21504 lt_prog_compiler_wl_GCJ='-Wl,'
21509 mingw* | cygwin* | pw32* | os2*)
21510 # This hack is so that the source file can tell whether it is being
21511 # built for inclusion in a dll (and should export symbols for example).
21515 hpux9* | hpux10* | hpux11*)
21516 lt_prog_compiler_wl_GCJ='-Wl,'
21517 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21518 # not for PA HP-UX.
21524 lt_prog_compiler_pic_GCJ='+Z'
21527 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21528 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21531 irix5* | irix6* | nonstopux*)
21532 lt_prog_compiler_wl_GCJ='-Wl,'
21533 # PIC (with -KPIC) is the default.
21534 lt_prog_compiler_static_GCJ='-non_shared'
21538 lt_prog_compiler_pic_GCJ='-KPIC'
21539 lt_prog_compiler_static_GCJ='-Bstatic'
21542 linux* | k*bsd*-gnu)
21543 case $cc_basename in
21545 lt_prog_compiler_wl_GCJ='-Wl,'
21546 lt_prog_compiler_pic_GCJ='-KPIC'
21547 lt_prog_compiler_static_GCJ='-static'
21549 pgcc* | pgf77* | pgf90* | pgf95*)
21550 # Portland Group compilers (*not* the Pentium gcc compiler,
21551 # which looks to be a dead project)
21552 lt_prog_compiler_wl_GCJ='-Wl,'
21553 lt_prog_compiler_pic_GCJ='-fpic'
21554 lt_prog_compiler_static_GCJ='-Bstatic'
21557 lt_prog_compiler_wl_GCJ='-Wl,'
21558 # All Alpha code is PIC.
21559 lt_prog_compiler_static_GCJ='-non_shared'
21562 case `$CC -V 2>&1 | sed 5q` in
21565 lt_prog_compiler_pic_GCJ='-KPIC'
21566 lt_prog_compiler_static_GCJ='-Bstatic'
21567 lt_prog_compiler_wl_GCJ='-Wl,'
21570 # Sun Fortran 8.3 passes all unrecognized flags to the linker
21571 lt_prog_compiler_pic_GCJ='-KPIC'
21572 lt_prog_compiler_static_GCJ='-Bstatic'
21573 lt_prog_compiler_wl_GCJ=''
21580 osf3* | osf4* | osf5*)
21581 lt_prog_compiler_wl_GCJ='-Wl,'
21582 # All OSF/1 code is PIC.
21583 lt_prog_compiler_static_GCJ='-non_shared'
21587 lt_prog_compiler_static_GCJ='-non_shared'
21591 lt_prog_compiler_pic_GCJ='-KPIC'
21592 lt_prog_compiler_static_GCJ='-Bstatic'
21593 case $cc_basename in
21594 f77* | f90* | f95*)
21595 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
21597 lt_prog_compiler_wl_GCJ='-Wl,';;
21602 lt_prog_compiler_wl_GCJ='-Qoption ld '
21603 lt_prog_compiler_pic_GCJ='-PIC'
21604 lt_prog_compiler_static_GCJ='-Bstatic'
21607 sysv4 | sysv4.2uw2* | sysv4.3*)
21608 lt_prog_compiler_wl_GCJ='-Wl,'
21609 lt_prog_compiler_pic_GCJ='-KPIC'
21610 lt_prog_compiler_static_GCJ='-Bstatic'
21614 if test -d /usr/nec ;then
21615 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21616 lt_prog_compiler_static_GCJ='-Bstatic'
21620 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21621 lt_prog_compiler_wl_GCJ='-Wl,'
21622 lt_prog_compiler_pic_GCJ='-KPIC'
21623 lt_prog_compiler_static_GCJ='-Bstatic'
21627 lt_prog_compiler_wl_GCJ='-Wl,'
21628 lt_prog_compiler_can_build_shared_GCJ=no
21632 lt_prog_compiler_pic_GCJ='-pic'
21633 lt_prog_compiler_static_GCJ='-Bstatic'
21637 lt_prog_compiler_can_build_shared_GCJ=no
21642 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21643 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
21646 # Check to make sure the PIC flag actually works.
21648 if test -n "$lt_prog_compiler_pic_GCJ"; then
21650 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21651 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
21652 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
21653 $as_echo_n "(cached) " >&6
21655 lt_cv_prog_compiler_pic_works_GCJ=no
21656 ac_outfile=conftest.$ac_objext
21657 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21658 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21659 # Insert the option either (1) after the last *FLAGS variable, or
21660 # (2) before a word containing "conftest.", or (3) at the end.
21661 # Note that $ac_compile itself does not contain backslashes and begins
21662 # with a dollar sign (not a hyphen), so the echo should work correctly.
21663 # The option is referenced via a variable to avoid confusing sed.
21664 lt_compile=`echo "$ac_compile" | $SED \
21665 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21666 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21667 -e 's:$: $lt_compiler_flag:'`
21668 (eval echo "\"\$as_me:21668: $lt_compile\"" >&5)
21669 (eval "$lt_compile" 2>conftest.err)
21671 cat conftest.err >&5
21672 echo "$as_me:21672: \$? = $ac_status" >&5
21673 if (exit $ac_status) && test -s "$ac_outfile"; then
21674 # The compiler can only warn and ignore the option if not recognized
21675 # So say no if there are warnings other than the usual output.
21676 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21677 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21678 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21679 lt_cv_prog_compiler_pic_works_GCJ=yes
21685 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
21686 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
21688 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
21689 case $lt_prog_compiler_pic_GCJ in
21691 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21694 lt_prog_compiler_pic_GCJ=
21695 lt_prog_compiler_can_build_shared_GCJ=no
21700 # For platforms which do not support PIC, -DPIC is meaningless:
21702 lt_prog_compiler_pic_GCJ=
21705 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21710 # Check to make sure the static flag actually works.
21712 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
21713 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21714 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21715 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
21716 $as_echo_n "(cached) " >&6
21718 lt_cv_prog_compiler_static_works_GCJ=no
21719 save_LDFLAGS="$LDFLAGS"
21720 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21721 echo "$lt_simple_link_test_code" > conftest.$ac_ext
21722 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21723 # The linker can only warn and ignore the option if not recognized
21724 # So say no if there are warnings
21725 if test -s conftest.err; then
21726 # Append any errors to the config.log.
21727 cat conftest.err 1>&5
21728 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21729 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21730 if diff conftest.exp conftest.er2 >/dev/null; then
21731 lt_cv_prog_compiler_static_works_GCJ=yes
21734 lt_cv_prog_compiler_static_works_GCJ=yes
21738 LDFLAGS="$save_LDFLAGS"
21741 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
21742 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
21744 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
21747 lt_prog_compiler_static_GCJ=
21751 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21752 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21753 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21754 $as_echo_n "(cached) " >&6
21756 lt_cv_prog_compiler_c_o_GCJ=no
21757 $rm -r conftest 2>/dev/null
21761 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21763 lt_compiler_flag="-o out/conftest2.$ac_objext"
21764 # Insert the option either (1) after the last *FLAGS variable, or
21765 # (2) before a word containing "conftest.", or (3) at the end.
21766 # Note that $ac_compile itself does not contain backslashes and begins
21767 # with a dollar sign (not a hyphen), so the echo should work correctly.
21768 lt_compile=`echo "$ac_compile" | $SED \
21769 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21770 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21771 -e 's:$: $lt_compiler_flag:'`
21772 (eval echo "\"\$as_me:21772: $lt_compile\"" >&5)
21773 (eval "$lt_compile" 2>out/conftest.err)
21775 cat out/conftest.err >&5
21776 echo "$as_me:21776: \$? = $ac_status" >&5
21777 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21779 # The compiler can only warn and ignore the option if not recognized
21780 # So say no if there are warnings
21781 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21782 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21783 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21784 lt_cv_prog_compiler_c_o_GCJ=yes
21789 # SGI C++ compiler will create directory out/ii_files/ for
21790 # template instantiation
21791 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21792 $rm out/* && rmdir out
21798 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21799 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
21802 hard_links="nottested"
21803 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21804 # do not overwrite the value of need_locks provided by the user
21805 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21806 $as_echo_n "checking if we can lock with hard links... " >&6; }
21809 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21811 ln conftest.a conftest.b 2>&5 || hard_links=no
21812 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21813 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
21814 $as_echo "$hard_links" >&6; }
21815 if test "$hard_links" = no; then
21816 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21817 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21824 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21825 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21828 allow_undefined_flag_GCJ=
21829 enable_shared_with_static_runtimes_GCJ=no
21831 archive_expsym_cmds_GCJ=
21832 old_archive_From_new_cmds_GCJ=
21833 old_archive_from_expsyms_cmds_GCJ=
21834 export_dynamic_flag_spec_GCJ=
21835 whole_archive_flag_spec_GCJ=
21836 thread_safe_flag_spec_GCJ=
21837 hardcode_libdir_flag_spec_GCJ=
21838 hardcode_libdir_flag_spec_ld_GCJ=
21839 hardcode_libdir_separator_GCJ=
21840 hardcode_direct_GCJ=no
21841 hardcode_minus_L_GCJ=no
21842 hardcode_shlibpath_var_GCJ=unsupported
21843 link_all_deplibs_GCJ=unknown
21844 hardcode_automatic_GCJ=no
21846 module_expsym_cmds_GCJ=
21847 always_export_symbols_GCJ=no
21848 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21849 # include_expsyms should be a list of space-separated symbols to be *always*
21850 # included in the symbol list
21851 include_expsyms_GCJ=
21852 # exclude_expsyms can be an extended regexp of symbols to exclude
21853 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21854 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21855 # as well as any symbol that contains `d'.
21856 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21857 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21858 # platforms (ab)use it in PIC code, but their linkers get confused if
21859 # the symbol is explicitly referenced. Since portable code cannot
21860 # rely on this symbol name, it's probably fine to never include it in
21861 # preloaded symbol tables.
21862 # Exclude shared library initialization/finalization symbols.
21863 extract_expsyms_cmds=
21864 # Just being paranoid about ensuring that cc_basename is set.
21865 for cc_temp in $compiler""; do
21867 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21868 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21873 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21876 cygwin* | mingw* | pw32*)
21877 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21878 # When not using gcc, we currently assume that we are using
21879 # Microsoft Visual C++.
21880 if test "$GCC" != yes; then
21885 # we just hope/assume this is gcc and not c89 (= MSVC++)
21894 if test "$with_gnu_ld" = yes; then
21895 # If archive_cmds runs LD, not CC, wlarc should be empty
21898 # Set some defaults for GNU ld with shared library support. These
21899 # are reset later if shared libraries are not supported. Putting them
21900 # here allows them to be overridden if necessary.
21901 runpath_var=LD_RUN_PATH
21902 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21903 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21904 # ancient GNU ld didn't support --whole-archive et. al.
21905 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21906 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21908 whole_archive_flag_spec_GCJ=
21910 supports_anon_versioning=no
21911 case `$LD -v 2>/dev/null` in
21912 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21913 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21914 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21915 *\ 2.11.*) ;; # other 2.11 versions
21916 *) supports_anon_versioning=yes ;;
21919 # See if GNU ld supports shared libraries.
21922 # On AIX/PPC, the GNU linker is very broken
21923 if test "$host_cpu" != ia64; then
21927 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21928 *** to be unable to reliably create shared libraries on AIX.
21929 *** Therefore, libtool is disabling shared libraries support. If you
21930 *** really care for shared libraries, you may want to modify your PATH
21931 *** so that a non-GNU linker is found, and then restart.
21938 archive_cmds_GCJ='$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)'
21939 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21940 hardcode_minus_L_GCJ=yes
21942 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21943 # that the semantics of dynamic libraries on AmigaOS, at least up
21944 # to version 4, is to share data among multiple programs linked
21945 # with the same dynamic library. Since this doesn't match the
21946 # behavior of shared libraries on other platforms, we can't use
21952 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21953 allow_undefined_flag_GCJ=unsupported
21954 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21955 # support --undefined. This deserves some investigation. FIXME
21956 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21962 cygwin* | mingw* | pw32*)
21963 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21964 # as there is no search path for DLLs.
21965 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21966 allow_undefined_flag_GCJ=unsupported
21967 always_export_symbols_GCJ=no
21968 enable_shared_with_static_runtimes_GCJ=yes
21969 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
21971 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21972 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21973 # If the export-symbols file already is a .def file (1st line
21974 # is EXPORTS), use it as is; otherwise, prepend...
21975 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21976 cp $export_symbols $output_objdir/$soname.def;
21978 echo EXPORTS > $output_objdir/$soname.def;
21979 cat $export_symbols >> $output_objdir/$soname.def;
21981 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21988 hardcode_direct_GCJ=no
21989 hardcode_shlibpath_var_GCJ=no
21990 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21991 export_dynamic_flag_spec_GCJ='${wl}-E'
21992 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21993 # Instead, shared libraries are loaded at an image base (0x10000000 by
21994 # default) and relocated if they conflict, which is a slow very memory
21995 # consuming and fragmenting process. To avoid this, we pick a random,
21996 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21997 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21998 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
21999 archive_expsym_cmds_GCJ='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'
22002 gnu* | linux* | k*bsd*-gnu)
22003 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22005 case $cc_basename,$host_cpu in
22006 pgcc*) # Portland Group C compiler
22007 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
22008 tmp_addflag=' $pic_flag'
22010 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
22011 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
22012 tmp_addflag=' $pic_flag -Mnomain' ;;
22013 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
22014 tmp_addflag=' -i_dynamic' ;;
22015 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
22016 tmp_addflag=' -i_dynamic -nofor_main' ;;
22017 ifc* | ifort*) # Intel Fortran compiler
22018 tmp_addflag=' -nofor_main' ;;
22020 case `$CC -V 2>&1 | sed 5q` in
22021 *Sun\ C*) # Sun C 5.9
22022 whole_archive_flag_spec_GCJ='${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'
22023 tmp_sharedflag='-G' ;;
22024 *Sun\ F*) # Sun Fortran 8.3
22025 tmp_sharedflag='-G' ;;
22027 tmp_sharedflag='-shared' ;;
22029 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22031 if test $supports_anon_versioning = yes; then
22032 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
22033 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22034 $echo "local: *; };" >> $output_objdir/$libname.ver~
22035 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22043 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22044 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22047 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22048 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22053 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22057 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22058 *** create shared libraries on Solaris systems. Therefore, libtool
22059 *** is disabling shared libraries support. We urge you to upgrade GNU
22060 *** binutils to release 2.9.1 or newer. Another option is to modify
22061 *** your PATH or compiler configuration so that the native linker is
22062 *** used, and then restart.
22065 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22066 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22067 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22073 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22074 case `$LD -v 2>&1` in
22075 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22079 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22080 *** reliably create shared libraries on SCO systems. Therefore, libtool
22081 *** is disabling shared libraries support. We urge you to upgrade GNU
22082 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22083 *** your PATH or compiler configuration so that the native linker is
22084 *** used, and then restart.
22089 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22090 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22091 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22092 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22101 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22103 hardcode_direct_GCJ=yes
22104 hardcode_shlibpath_var_GCJ=no
22108 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22109 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22110 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22117 if test "$ld_shlibs_GCJ" = no; then
22119 hardcode_libdir_flag_spec_GCJ=
22120 export_dynamic_flag_spec_GCJ=
22121 whole_archive_flag_spec_GCJ=
22124 # PORTME fill in a description of your system's linker (not GNU ld)
22127 allow_undefined_flag_GCJ=unsupported
22128 always_export_symbols_GCJ=yes
22129 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
22130 # Note: this linker hardcodes the directories in LIBPATH if there
22131 # are no directories specified by -L.
22132 hardcode_minus_L_GCJ=yes
22133 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22134 # Neither direct hardcoding nor static linking is supported with a
22136 hardcode_direct_GCJ=unsupported
22141 if test "$host_cpu" = ia64; then
22142 # On IA64, the linker does run time linking by default, so we don't
22143 # have to do anything special.
22144 aix_use_runtimelinking=no
22145 exp_sym_flag='-Bexport'
22148 # If we're using GNU nm, then we don't want the "-C" option.
22149 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22150 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22151 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
22153 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
22155 aix_use_runtimelinking=no
22157 # Test if we are trying to use run time linking or normal
22158 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22159 # need to do runtime linking.
22160 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
22161 for ld_flag in $LDFLAGS; do
22162 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22163 aix_use_runtimelinking=yes
22170 exp_sym_flag='-bexport'
22171 no_entry_flag='-bnoentry'
22174 # When large executables or shared objects are built, AIX ld can
22175 # have problems creating the table of contents. If linking a library
22176 # or program results in "error TOC overflow" add -mminimal-toc to
22177 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22178 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22180 archive_cmds_GCJ=''
22181 hardcode_direct_GCJ=yes
22182 hardcode_libdir_separator_GCJ=':'
22183 link_all_deplibs_GCJ=yes
22185 if test "$GCC" = yes; then
22186 case $host_os in aix4.[012]|aix4.[012].*)
22187 # We only want to do this on AIX 4.2 and lower, the check
22188 # below for broken collect2 doesn't work under 4.3+
22189 collect2name=`${CC} -print-prog-name=collect2`
22190 if test -f "$collect2name" && \
22191 strings "$collect2name" | grep resolve_lib_name >/dev/null
22193 # We have reworked collect2
22196 # We have old collect2
22197 hardcode_direct_GCJ=unsupported
22198 # It fails to find uninstalled libraries when the uninstalled
22199 # path is not listed in the libpath. Setting hardcode_minus_L
22200 # to unsupported forces relinking
22201 hardcode_minus_L_GCJ=yes
22202 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22203 hardcode_libdir_separator_GCJ=
22207 shared_flag='-shared'
22208 if test "$aix_use_runtimelinking" = yes; then
22209 shared_flag="$shared_flag "'${wl}-G'
22213 if test "$host_cpu" = ia64; then
22214 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22215 # chokes on -Wl,-G. The following line is correct:
22218 if test "$aix_use_runtimelinking" = yes; then
22219 shared_flag='${wl}-G'
22221 shared_flag='${wl}-bM:SRE'
22226 # It seems that -bexpall does not export symbols beginning with
22227 # underscore (_), so it is better to generate a list of symbols to export.
22228 always_export_symbols_GCJ=yes
22229 if test "$aix_use_runtimelinking" = yes; then
22230 # Warning - without using the other runtime loading flags (-brtl),
22231 # -berok will link without error, but may produce a broken library.
22232 allow_undefined_flag_GCJ='-berok'
22233 # Determine the default libpath from the value encoded in an empty executable.
22234 cat >conftest.$ac_ext <<_ACEOF
22237 cat confdefs.h >>conftest.$ac_ext
22238 cat >>conftest.$ac_ext <<_ACEOF
22239 /* end confdefs.h. */
22249 rm -f conftest.$ac_objext conftest$ac_exeext
22250 if { (ac_try="$ac_link"
22251 case "(($ac_try" in
22252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22253 *) ac_try_echo=$ac_try;;
22255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22256 $as_echo "$ac_try_echo") >&5
22257 (eval "$ac_link") 2>conftest.er1
22259 grep -v '^ *+' conftest.er1 >conftest.err
22261 cat conftest.err >&5
22262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22263 (exit $ac_status); } && {
22264 test -z "$ac_c_werror_flag" ||
22265 test ! -s conftest.err
22266 } && test -s conftest$ac_exeext && {
22267 test "$cross_compiling" = yes ||
22268 $as_test_x conftest$ac_exeext
22271 lt_aix_libpath_sed='
22272 /Import File Strings/,/^$/ {
22278 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22279 # Check for a 64-bit object if we didn't find anything.
22280 if test -z "$aix_libpath"; then
22281 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22284 $as_echo "$as_me: failed program was:" >&5
22285 sed 's/^/| /' conftest.$ac_ext >&5
22290 rm -rf conftest.dSYM
22291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22292 conftest$ac_exeext conftest.$ac_ext
22293 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22295 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22296 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
22298 if test "$host_cpu" = ia64; then
22299 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
22300 allow_undefined_flag_GCJ="-z nodefs"
22301 archive_expsym_cmds_GCJ="\$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"
22303 # Determine the default libpath from the value encoded in an empty executable.
22304 cat >conftest.$ac_ext <<_ACEOF
22307 cat confdefs.h >>conftest.$ac_ext
22308 cat >>conftest.$ac_ext <<_ACEOF
22309 /* end confdefs.h. */
22319 rm -f conftest.$ac_objext conftest$ac_exeext
22320 if { (ac_try="$ac_link"
22321 case "(($ac_try" in
22322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22323 *) ac_try_echo=$ac_try;;
22325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22326 $as_echo "$ac_try_echo") >&5
22327 (eval "$ac_link") 2>conftest.er1
22329 grep -v '^ *+' conftest.er1 >conftest.err
22331 cat conftest.err >&5
22332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22333 (exit $ac_status); } && {
22334 test -z "$ac_c_werror_flag" ||
22335 test ! -s conftest.err
22336 } && test -s conftest$ac_exeext && {
22337 test "$cross_compiling" = yes ||
22338 $as_test_x conftest$ac_exeext
22341 lt_aix_libpath_sed='
22342 /Import File Strings/,/^$/ {
22348 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22349 # Check for a 64-bit object if we didn't find anything.
22350 if test -z "$aix_libpath"; then
22351 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22354 $as_echo "$as_me: failed program was:" >&5
22355 sed 's/^/| /' conftest.$ac_ext >&5
22360 rm -rf conftest.dSYM
22361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22362 conftest$ac_exeext conftest.$ac_ext
22363 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22365 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22366 # Warning - without using the other run time loading flags,
22367 # -berok will link without error, but may produce a broken library.
22368 no_undefined_flag_GCJ=' ${wl}-bernotok'
22369 allow_undefined_flag_GCJ=' ${wl}-berok'
22370 # Exported symbols can be pulled into shared objects from archives
22371 whole_archive_flag_spec_GCJ='$convenience'
22372 archive_cmds_need_lc_GCJ=yes
22373 # This is similar to how AIX traditionally builds its shared libraries.
22374 archive_expsym_cmds_GCJ="\$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'
22380 archive_cmds_GCJ='$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)'
22381 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22382 hardcode_minus_L_GCJ=yes
22383 # see comment about different semantics on the GNU ld section
22388 export_dynamic_flag_spec_GCJ=-rdynamic
22391 cygwin* | mingw* | pw32*)
22392 # When not using gcc, we currently assume that we are using
22393 # Microsoft Visual C++.
22394 # hardcode_libdir_flag_spec is actually meaningless, as there is
22395 # no search path for DLLs.
22396 hardcode_libdir_flag_spec_GCJ=' '
22397 allow_undefined_flag_GCJ=unsupported
22398 # Tell ltmain to make .lib files, not .a files.
22400 # Tell ltmain to make .dll files, not .so files.
22402 # FIXME: Setting linknames here is a bad hack.
22403 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22404 # The linker will automatically build a .lib file if we build a DLL.
22405 old_archive_From_new_cmds_GCJ='true'
22406 # FIXME: Should let the user specify the lib program.
22407 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
22408 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
22409 enable_shared_with_static_runtimes_GCJ=yes
22412 darwin* | rhapsody*)
22414 rhapsody* | darwin1.[012])
22415 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
22418 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22419 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22421 case ${MACOSX_DEPLOYMENT_TARGET} in
22423 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22426 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
22432 archive_cmds_need_lc_GCJ=no
22433 hardcode_direct_GCJ=no
22434 hardcode_automatic_GCJ=yes
22435 hardcode_shlibpath_var_GCJ=unsupported
22436 whole_archive_flag_spec_GCJ=''
22437 link_all_deplibs_GCJ=yes
22438 if test "$GCC" = yes ; then
22439 output_verbose_link_cmd='echo'
22440 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
22441 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
22442 archive_expsym_cmds_GCJ="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}"
22443 module_expsym_cmds_GCJ="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}"
22445 case $cc_basename in
22447 output_verbose_link_cmd='echo'
22448 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
22449 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22450 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22451 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
22452 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
22462 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22463 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22464 hardcode_shlibpath_var_GCJ=no
22471 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22472 # support. Future versions do this automatically, but an explicit c++rt0.o
22473 # does not break anything, and helps significantly (at the cost of a little
22476 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22477 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22478 hardcode_direct_GCJ=yes
22479 hardcode_shlibpath_var_GCJ=no
22482 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22484 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22485 hardcode_direct_GCJ=yes
22486 hardcode_minus_L_GCJ=yes
22487 hardcode_shlibpath_var_GCJ=no
22490 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22491 freebsd* | dragonfly*)
22492 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22493 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22494 hardcode_direct_GCJ=yes
22495 hardcode_shlibpath_var_GCJ=no
22499 if test "$GCC" = yes; then
22500 archive_cmds_GCJ='$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'
22502 archive_cmds_GCJ='$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'
22504 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22505 hardcode_libdir_separator_GCJ=:
22506 hardcode_direct_GCJ=yes
22508 # hardcode_minus_L: Not really in the search PATH,
22509 # but as the default location of the library.
22510 hardcode_minus_L_GCJ=yes
22511 export_dynamic_flag_spec_GCJ='${wl}-E'
22515 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22516 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22518 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22520 if test "$with_gnu_ld" = no; then
22521 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22522 hardcode_libdir_separator_GCJ=:
22524 hardcode_direct_GCJ=yes
22525 export_dynamic_flag_spec_GCJ='${wl}-E'
22527 # hardcode_minus_L: Not really in the search PATH,
22528 # but as the default location of the library.
22529 hardcode_minus_L_GCJ=yes
22534 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22537 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22540 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22543 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22549 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22552 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22555 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22559 if test "$with_gnu_ld" = no; then
22560 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22561 hardcode_libdir_separator_GCJ=:
22565 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22566 hardcode_direct_GCJ=no
22567 hardcode_shlibpath_var_GCJ=no
22570 hardcode_direct_GCJ=yes
22571 export_dynamic_flag_spec_GCJ='${wl}-E'
22573 # hardcode_minus_L: Not really in the search PATH,
22574 # but as the default location of the library.
22575 hardcode_minus_L_GCJ=yes
22581 irix5* | irix6* | nonstopux*)
22582 if test "$GCC" = yes; then
22583 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
22585 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
22586 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22588 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22589 hardcode_libdir_separator_GCJ=:
22590 link_all_deplibs_GCJ=yes
22594 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22595 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22597 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22599 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22600 hardcode_direct_GCJ=yes
22601 hardcode_shlibpath_var_GCJ=no
22605 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22606 hardcode_direct_GCJ=yes
22607 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22608 hardcode_libdir_separator_GCJ=:
22609 hardcode_shlibpath_var_GCJ=no
22613 if test -f /usr/libexec/ld.so; then
22614 hardcode_direct_GCJ=yes
22615 hardcode_shlibpath_var_GCJ=no
22616 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22617 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22618 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22619 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22620 export_dynamic_flag_spec_GCJ='${wl}-E'
22623 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22624 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22625 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22628 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22629 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22639 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22640 hardcode_minus_L_GCJ=yes
22641 allow_undefined_flag_GCJ=unsupported
22642 archive_cmds_GCJ='$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'
22643 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22647 if test "$GCC" = yes; then
22648 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22649 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
22651 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22652 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
22654 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22655 hardcode_libdir_separator_GCJ=:
22658 osf4* | osf5*) # as osf3* with the addition of -msym flag
22659 if test "$GCC" = yes; then
22660 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22661 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
22662 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22664 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22665 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
22666 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
22667 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
22669 # Both c and cxx compiler support -rpath directly
22670 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22672 hardcode_libdir_separator_GCJ=:
22676 no_undefined_flag_GCJ=' -z text'
22677 if test "$GCC" = yes; then
22679 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22680 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22681 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22684 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22685 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22686 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22688 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22689 hardcode_shlibpath_var_GCJ=no
22691 solaris2.[0-5] | solaris2.[0-5].*) ;;
22693 # The compiler driver will combine and reorder linker options,
22694 # but understands `-z linker_flag'. GCC discards it without `$wl',
22695 # but is careful enough not to reorder.
22696 # Supported since Solaris 2.6 (maybe 2.5.1?)
22697 if test "$GCC" = yes; then
22698 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
22700 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
22704 link_all_deplibs_GCJ=yes
22708 if test "x$host_vendor" = xsequent; then
22709 # Use $CC to link under sequent, because it throws in some extra .o
22710 # files that make .init and .fini sections work.
22711 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22713 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22715 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22716 hardcode_direct_GCJ=yes
22717 hardcode_minus_L_GCJ=yes
22718 hardcode_shlibpath_var_GCJ=no
22722 case $host_vendor in
22724 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22725 hardcode_direct_GCJ=yes # is this really true???
22728 ## LD is ld it makes a PLAMLIB
22729 ## CC just makes a GrossModule.
22730 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22731 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22732 hardcode_direct_GCJ=no
22735 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22736 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22739 runpath_var='LD_RUN_PATH'
22740 hardcode_shlibpath_var_GCJ=no
22744 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22745 hardcode_shlibpath_var_GCJ=no
22746 export_dynamic_flag_spec_GCJ='-Bexport'
22750 if test -d /usr/nec; then
22751 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22752 hardcode_shlibpath_var_GCJ=no
22753 runpath_var=LD_RUN_PATH
22754 hardcode_runpath_var=yes
22759 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
22760 no_undefined_flag_GCJ='${wl}-z,text'
22761 archive_cmds_need_lc_GCJ=no
22762 hardcode_shlibpath_var_GCJ=no
22763 runpath_var='LD_RUN_PATH'
22765 if test "$GCC" = yes; then
22766 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22767 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22769 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22770 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22774 sysv5* | sco3.2v5* | sco5v6*)
22775 # Note: We can NOT use -z defs as we might desire, because we do not
22776 # link with -lc, and that would cause any symbols used from libc to
22777 # always be unresolved, which means just about no library would
22778 # ever link correctly. If we're not using GNU ld we use -z text
22779 # though, which does catch some bad symbols but isn't as heavy-handed
22781 no_undefined_flag_GCJ='${wl}-z,text'
22782 allow_undefined_flag_GCJ='${wl}-z,nodefs'
22783 archive_cmds_need_lc_GCJ=no
22784 hardcode_shlibpath_var_GCJ=no
22785 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22786 hardcode_libdir_separator_GCJ=':'
22787 link_all_deplibs_GCJ=yes
22788 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22789 runpath_var='LD_RUN_PATH'
22791 if test "$GCC" = yes; then
22792 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22793 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22795 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22796 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22801 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22802 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22803 hardcode_shlibpath_var_GCJ=no
22812 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22813 $as_echo "$ld_shlibs_GCJ" >&6; }
22814 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22817 # Do we need to explicitly link libc?
22819 case "x$archive_cmds_need_lc_GCJ" in
22821 # Assume -lc should be added
22822 archive_cmds_need_lc_GCJ=yes
22824 if test "$enable_shared" = yes && test "$GCC" = yes; then
22825 case $archive_cmds_GCJ in
22827 # FIXME: we may have to deal with multi-command sequences.
22830 # Test whether the compiler implicitly links with -lc since on some
22831 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22832 # to ld, don't add -lc before -lgcc.
22833 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22834 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22836 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22839 (eval $ac_compile) 2>&5
22841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22842 (exit $ac_status); } 2>conftest.err; then
22845 libobjs=conftest.$ac_objext
22847 wl=$lt_prog_compiler_wl_GCJ
22848 pic_flag=$lt_prog_compiler_pic_GCJ
22854 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22855 allow_undefined_flag_GCJ=
22856 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22857 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22860 (exit $ac_status); }
22862 archive_cmds_need_lc_GCJ=no
22864 archive_cmds_need_lc_GCJ=yes
22866 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22868 cat conftest.err 1>&5
22871 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22872 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
22879 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22880 $as_echo_n "checking dynamic linker characteristics... " >&6; }
22881 library_names_spec=
22882 libname_spec='lib$name'
22886 postuninstall_cmds=
22890 shlibpath_overrides_runpath=unknown
22892 dynamic_linker="$host_os ld.so"
22893 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22895 need_lib_prefix=unknown
22896 hardcode_into_libs=no
22898 # when you set need_version to no, make sure it does not cause -set_version
22899 # flags to be left without arguments
22900 need_version=unknown
22905 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22906 shlibpath_var=LIBPATH
22908 # AIX 3 has no versioning support, so we append a major version to the name.
22909 soname_spec='${libname}${release}${shared_ext}$major'
22916 hardcode_into_libs=yes
22917 if test "$host_cpu" = ia64; then
22918 # AIX 5 supports IA64
22919 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22920 shlibpath_var=LD_LIBRARY_PATH
22922 # With GCC up to 2.95.x, collect2 would create an import file
22923 # for dependence libraries. The import file would start with
22924 # the line `#! .'. This would cause the generated library to
22925 # depend on `.', always an invalid library. This was fixed in
22926 # development snapshots of GCC prior to 3.0.
22928 aix4 | aix4.[01] | aix4.[01].*)
22929 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22931 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22934 can_build_shared=no
22938 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22939 # soname into executable. Probably we can add versioning support to
22940 # collect2, so additional links can be useful in future.
22941 if test "$aix_use_runtimelinking" = yes; then
22942 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22943 # instead of lib<name>.a to let people know that these are not
22944 # typical AIX shared libraries.
22945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22947 # We preserve .a as extension for shared libraries through AIX4.2
22948 # and later when we are not doing run time linking.
22949 library_names_spec='${libname}${release}.a $libname.a'
22950 soname_spec='${libname}${release}${shared_ext}$major'
22952 shlibpath_var=LIBPATH
22957 library_names_spec='$libname.ixlibrary $libname.a'
22958 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22959 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'
22963 library_names_spec='${libname}${shared_ext}'
22964 dynamic_linker="$host_os ld.so"
22965 shlibpath_var=LIBRARY_PATH
22971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22972 soname_spec='${libname}${release}${shared_ext}$major'
22973 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22974 shlibpath_var=LD_LIBRARY_PATH
22975 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22976 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22977 # the default ld.so.conf also contains /usr/contrib/lib and
22978 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22979 # libtool to hard-code these into programs
22982 cygwin* | mingw* | pw32*)
22983 version_type=windows
22988 case $GCC,$host_os in
22989 yes,cygwin* | yes,mingw* | yes,pw32*)
22990 library_names_spec='$libname.dll.a'
22991 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22992 postinstall_cmds='base_file=`basename \${file}`~
22993 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22994 dldir=$destdir/`dirname \$dlpath`~
22995 test -d \$dldir || mkdir -p \$dldir~
22996 $install_prog $dir/$dlname \$dldir/$dlname~
22997 chmod a+x \$dldir/$dlname'
22998 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22999 dlpath=$dir/\$dldll~
23001 shlibpath_overrides_runpath=yes
23005 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23006 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23007 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23010 # MinGW DLLs use traditional 'lib' prefix
23011 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23012 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23013 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23014 # It is most probably a Windows format PATH printed by
23015 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23016 # path with ; separators, and with drive letters. We can handle the
23017 # drive letters (cygwin fileutils understands them), so leave them,
23018 # especially as we might pass files found there to a mingw objdump,
23019 # which wouldn't understand a cygwinified path. Ahh.
23020 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23022 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23026 # pw32 DLLs use 'pw' prefix rather than 'lib'
23027 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23033 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23036 dynamic_linker='Win32 ld.exe'
23037 # FIXME: first we should search . and the directory the executable is in
23041 darwin* | rhapsody*)
23042 dynamic_linker="$host_os dyld"
23043 version_type=darwin
23046 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23047 soname_spec='${libname}${release}${major}$shared_ext'
23048 shlibpath_overrides_runpath=yes
23049 shlibpath_var=DYLD_LIBRARY_PATH
23050 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
23052 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23060 soname_spec='${libname}${release}${shared_ext}$major'
23061 shlibpath_var=LD_LIBRARY_PATH
23068 freebsd* | dragonfly*)
23069 # DragonFly does not have aout. When/if they implement a new
23070 # versioning mechanism, adjust this.
23071 if test -x /usr/bin/objformat; then
23072 objformat=`/usr/bin/objformat`
23075 freebsd[123]*) objformat=aout ;;
23076 *) objformat=elf ;;
23079 version_type=freebsd-$objformat
23080 case $version_type in
23082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23087 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23091 shlibpath_var=LD_LIBRARY_PATH
23094 shlibpath_overrides_runpath=yes
23096 freebsd3.[01]* | freebsdelf3.[01]*)
23097 shlibpath_overrides_runpath=yes
23098 hardcode_into_libs=yes
23100 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23101 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23102 shlibpath_overrides_runpath=no
23103 hardcode_into_libs=yes
23105 *) # from 4.6 on, and DragonFly
23106 shlibpath_overrides_runpath=yes
23107 hardcode_into_libs=yes
23116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23117 soname_spec='${libname}${release}${shared_ext}$major'
23118 shlibpath_var=LD_LIBRARY_PATH
23119 hardcode_into_libs=yes
23122 hpux9* | hpux10* | hpux11*)
23123 # Give a soname corresponding to the major version so that dld.sl refuses to
23124 # link against other versions.
23131 hardcode_into_libs=yes
23132 dynamic_linker="$host_os dld.so"
23133 shlibpath_var=LD_LIBRARY_PATH
23134 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23136 soname_spec='${libname}${release}${shared_ext}$major'
23137 if test "X$HPUX_IA64_MODE" = X32; then
23138 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23140 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23142 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23146 hardcode_into_libs=yes
23147 dynamic_linker="$host_os dld.sl"
23148 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23149 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23151 soname_spec='${libname}${release}${shared_ext}$major'
23152 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23153 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23157 dynamic_linker="$host_os dld.sl"
23158 shlibpath_var=SHLIB_PATH
23159 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23161 soname_spec='${libname}${release}${shared_ext}$major'
23164 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23165 postinstall_cmds='chmod 555 $lib'
23172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23173 soname_spec='${libname}${release}${shared_ext}$major'
23174 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23175 shlibpath_var=LD_LIBRARY_PATH
23176 shlibpath_overrides_runpath=no
23177 hardcode_into_libs=yes
23180 irix5* | irix6* | nonstopux*)
23182 nonstopux*) version_type=nonstopux ;;
23184 if test "$lt_cv_prog_gnu_ld" = yes; then
23192 soname_spec='${libname}${release}${shared_ext}$major'
23193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23195 irix5* | nonstopux*)
23196 libsuff= shlibsuff=
23199 case $LD in # libtool.m4 will add one of these switches to LD
23200 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23201 libsuff= shlibsuff= libmagic=32-bit;;
23202 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23203 libsuff=32 shlibsuff=N32 libmagic=N32;;
23204 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23205 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23206 *) libsuff= shlibsuff= libmagic=never-match;;
23210 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23211 shlibpath_overrides_runpath=no
23212 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23213 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23214 hardcode_into_libs=yes
23217 # No shared lib support for Linux oldld, aout, or coff.
23218 linux*oldld* | linux*aout* | linux*coff*)
23222 # This must be Linux ELF.
23223 linux* | k*bsd*-gnu)
23227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23228 soname_spec='${libname}${release}${shared_ext}$major'
23229 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23230 shlibpath_var=LD_LIBRARY_PATH
23231 shlibpath_overrides_runpath=no
23232 # This implies no fast_install, which is unacceptable.
23233 # Some rework will be needed to allow for fast_install
23234 # before this can be enabled.
23235 hardcode_into_libs=yes
23236 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23237 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23239 # Append ld.so.conf contents to the search path
23240 if test -f /etc/ld.so.conf; then
23241 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' ' '`
23242 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
23245 # We used to test for /lib/ld.so.1 and disable shared libraries on
23246 # powerpc, because MkLinux only supported shared libraries with the
23247 # GNU dynamic linker. Since this was broken with cross compilers,
23248 # most powerpc-linux boxes support dynamic linking these days and
23249 # people can always --disable-shared, the test was removed, and we
23250 # assume the GNU/Linux dynamic linker is in use.
23251 dynamic_linker='GNU/Linux ld.so'
23258 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23260 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23261 dynamic_linker='NetBSD (a.out) ld.so'
23263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23264 soname_spec='${libname}${release}${shared_ext}$major'
23265 dynamic_linker='NetBSD ld.elf_so'
23267 shlibpath_var=LD_LIBRARY_PATH
23268 shlibpath_overrides_runpath=yes
23269 hardcode_into_libs=yes
23274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23275 shlibpath_var=LD_LIBRARY_PATH
23276 shlibpath_overrides_runpath=yes
23283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23284 soname_spec='${libname}${release}${shared_ext}$major'
23285 shlibpath_var=LD_LIBRARY_PATH
23286 shlibpath_overrides_runpath=yes
23291 sys_lib_dlsearch_path_spec="/usr/lib"
23293 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23295 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23296 *) need_version=no ;;
23298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23299 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23300 shlibpath_var=LD_LIBRARY_PATH
23301 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23303 openbsd2.[89] | openbsd2.[89].*)
23304 shlibpath_overrides_runpath=no
23307 shlibpath_overrides_runpath=yes
23311 shlibpath_overrides_runpath=yes
23316 libname_spec='$name'
23319 library_names_spec='$libname${shared_ext} $libname.a'
23320 dynamic_linker='OS/2 ld.exe'
23321 shlibpath_var=LIBPATH
23324 osf3* | osf4* | osf5*)
23328 soname_spec='${libname}${release}${shared_ext}$major'
23329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23330 shlibpath_var=LD_LIBRARY_PATH
23331 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23332 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23344 soname_spec='${libname}${release}${shared_ext}$major'
23345 shlibpath_var=LD_LIBRARY_PATH
23346 shlibpath_overrides_runpath=yes
23347 hardcode_into_libs=yes
23348 # ldd complains unless libraries are executable
23349 postinstall_cmds='chmod +x $lib'
23354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23355 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23356 shlibpath_var=LD_LIBRARY_PATH
23357 shlibpath_overrides_runpath=yes
23358 if test "$with_gnu_ld" = yes; then
23366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23367 soname_spec='${libname}${release}${shared_ext}$major'
23368 shlibpath_var=LD_LIBRARY_PATH
23369 case $host_vendor in
23371 shlibpath_overrides_runpath=no
23373 export_dynamic_flag_spec='${wl}-Blargedynsym'
23374 runpath_var=LD_RUN_PATH
23382 shlibpath_overrides_runpath=no
23383 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23389 if test -d /usr/nec ;then
23391 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23392 soname_spec='$libname${shared_ext}.$major'
23393 shlibpath_var=LD_LIBRARY_PATH
23397 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23398 version_type=freebsd-elf
23401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23402 soname_spec='${libname}${release}${shared_ext}$major'
23403 shlibpath_var=LD_LIBRARY_PATH
23404 hardcode_into_libs=yes
23405 if test "$with_gnu_ld" = yes; then
23406 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23407 shlibpath_overrides_runpath=no
23409 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23410 shlibpath_overrides_runpath=yes
23413 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23417 sys_lib_dlsearch_path_spec='/usr/lib'
23422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23423 soname_spec='${libname}${release}${shared_ext}$major'
23424 shlibpath_var=LD_LIBRARY_PATH
23431 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23432 $as_echo "$dynamic_linker" >&6; }
23433 test "$dynamic_linker" = no && can_build_shared=no
23435 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
23436 $as_echo_n "(cached) " >&6
23438 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
23441 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
23442 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
23443 $as_echo_n "(cached) " >&6
23445 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
23448 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
23450 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23451 if test "$GCC" = yes; then
23452 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23455 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23456 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
23457 hardcode_action_GCJ=
23458 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
23459 test -n "$runpath_var_GCJ" || \
23460 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
23462 # We can hardcode non-existant directories.
23463 if test "$hardcode_direct_GCJ" != no &&
23464 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23465 # have to relink, otherwise we might link with an installed library
23466 # when we should be linking with a yet-to-be-installed one
23467 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
23468 test "$hardcode_minus_L_GCJ" != no; then
23469 # Linking always hardcodes the temporary library directory.
23470 hardcode_action_GCJ=relink
23472 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23473 hardcode_action_GCJ=immediate
23476 # We cannot hardcode anything, or else we can only hardcode existing
23478 hardcode_action_GCJ=unsupported
23480 { $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
23481 $as_echo "$hardcode_action_GCJ" >&6; }
23483 if test "$hardcode_action_GCJ" = relink; then
23484 # Fast installation is not supported
23485 enable_fast_install=no
23486 elif test "$shlibpath_overrides_runpath" = yes ||
23487 test "$enable_shared" = no; then
23488 # Fast installation is not necessary
23489 enable_fast_install=needless
23493 # The else clause should only fire when bootstrapping the
23494 # libtool distribution, otherwise you forgot to ship ltmain.sh
23495 # with your package, and you will get complaints that there are
23496 # no rules to generate ltmain.sh.
23497 if test -f "$ltmain"; then
23498 # See if we are running on zsh, and set the options which allow our commands through
23499 # without removal of \ escapes.
23500 if test -n "${ZSH_VERSION+set}" ; then
23501 setopt NO_GLOB_SUBST
23503 # Now quote all the things that may contain metacharacters while being
23504 # careful not to overquote the AC_SUBSTed values. We take copies of the
23505 # variables and quote the copies for generation of the libtool script.
23506 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23508 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23509 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23510 deplibs_check_method reload_flag reload_cmds need_locks \
23511 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23512 lt_cv_sys_global_symbol_to_c_name_address \
23513 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23514 old_postinstall_cmds old_postuninstall_cmds \
23518 lt_prog_compiler_wl_GCJ \
23519 lt_prog_compiler_pic_GCJ \
23520 lt_prog_compiler_static_GCJ \
23521 lt_prog_compiler_no_builtin_flag_GCJ \
23522 export_dynamic_flag_spec_GCJ \
23523 thread_safe_flag_spec_GCJ \
23524 whole_archive_flag_spec_GCJ \
23525 enable_shared_with_static_runtimes_GCJ \
23526 old_archive_cmds_GCJ \
23527 old_archive_from_new_cmds_GCJ \
23528 predep_objects_GCJ \
23529 postdep_objects_GCJ \
23532 compiler_lib_search_path_GCJ \
23533 compiler_lib_search_dirs_GCJ \
23535 archive_expsym_cmds_GCJ \
23536 postinstall_cmds_GCJ \
23537 postuninstall_cmds_GCJ \
23538 old_archive_from_expsyms_cmds_GCJ \
23539 allow_undefined_flag_GCJ \
23540 no_undefined_flag_GCJ \
23541 export_symbols_cmds_GCJ \
23542 hardcode_libdir_flag_spec_GCJ \
23543 hardcode_libdir_flag_spec_ld_GCJ \
23544 hardcode_libdir_separator_GCJ \
23545 hardcode_automatic_GCJ \
23547 module_expsym_cmds_GCJ \
23548 lt_cv_prog_compiler_c_o_GCJ \
23549 fix_srcfile_path_GCJ \
23550 exclude_expsyms_GCJ \
23551 include_expsyms_GCJ; do
23554 old_archive_cmds_GCJ | \
23555 old_archive_from_new_cmds_GCJ | \
23556 archive_cmds_GCJ | \
23557 archive_expsym_cmds_GCJ | \
23558 module_cmds_GCJ | \
23559 module_expsym_cmds_GCJ | \
23560 old_archive_from_expsyms_cmds_GCJ | \
23561 export_symbols_cmds_GCJ | \
23562 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23563 postinstall_cmds | postuninstall_cmds | \
23564 old_postinstall_cmds | old_postuninstall_cmds | \
23565 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23566 # Double-quote double-evaled strings.
23567 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23570 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23576 *'\$0 --fallback-echo"')
23577 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23583 cat <<__EOF__ >> "$cfgfile"
23584 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23586 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23588 # Shell to use when invoking shell scripts.
23591 # Whether or not to build shared libraries.
23592 build_libtool_libs=$enable_shared
23594 # Whether or not to build static libraries.
23595 build_old_libs=$enable_static
23597 # Whether or not to add -lc for building shared libraries.
23598 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23600 # Whether or not to disallow shared libs when runtime libs are static
23601 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23603 # Whether or not to optimize for fast installation.
23604 fast_install=$enable_fast_install
23607 host_alias=$host_alias
23611 # The build system.
23612 build_alias=$build_alias
23616 # An echo program that does not interpret backslashes.
23621 AR_FLAGS=$lt_AR_FLAGS
23626 # LTCC compiler flags.
23627 LTCFLAGS=$lt_LTCFLAGS
23629 # A language-specific compiler.
23630 CC=$lt_compiler_GCJ
23632 # Is the compiler the GNU C compiler?
23638 # The linker used to build libraries.
23641 # Whether we need hard or soft links.
23644 # A BSD-compatible nm program.
23647 # A symbol stripping program
23650 # Used to examine libraries when file_magic_cmd begins "file"
23651 MAGIC_CMD=$MAGIC_CMD
23653 # Used on cygwin: DLL creation program.
23656 # Used on cygwin: object dumper.
23659 # Used on cygwin: assembler.
23662 # The name of the directory that contains temporary libtool files.
23665 # How to create reloadable object files.
23666 reload_flag=$lt_reload_flag
23667 reload_cmds=$lt_reload_cmds
23669 # How to pass a linker flag through the compiler.
23670 wl=$lt_lt_prog_compiler_wl_GCJ
23672 # Object file suffix (normally "o").
23673 objext="$ac_objext"
23675 # Old archive suffix (normally "a").
23678 # Shared library suffix (normally ".so").
23679 shrext_cmds='$shrext_cmds'
23681 # Executable file suffix (normally "").
23684 # Additional compiler flags for building library objects.
23685 pic_flag=$lt_lt_prog_compiler_pic_GCJ
23688 # What is the maximum length of a command?
23689 max_cmd_len=$lt_cv_sys_max_cmd_len
23691 # Does compiler simultaneously support -c and -o options?
23692 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23694 # Must we lock files when doing compilation?
23695 need_locks=$lt_need_locks
23697 # Do we need the lib prefix for modules?
23698 need_lib_prefix=$need_lib_prefix
23700 # Do we need a version for libraries?
23701 need_version=$need_version
23703 # Whether dlopen is supported.
23704 dlopen_support=$enable_dlopen
23706 # Whether dlopen of programs is supported.
23707 dlopen_self=$enable_dlopen_self
23709 # Whether dlopen of statically linked programs is supported.
23710 dlopen_self_static=$enable_dlopen_self_static
23712 # Compiler flag to prevent dynamic linking.
23713 link_static_flag=$lt_lt_prog_compiler_static_GCJ
23715 # Compiler flag to turn off builtin functions.
23716 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23718 # Compiler flag to allow reflexive dlopens.
23719 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23721 # Compiler flag to generate shared objects directly from archives.
23722 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23724 # Compiler flag to generate thread-safe objects.
23725 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23727 # Library versioning type.
23728 version_type=$version_type
23730 # Format of library name prefix.
23731 libname_spec=$lt_libname_spec
23733 # List of archive names. First name is the real one, the rest are links.
23734 # The last name is the one that the linker finds with -lNAME.
23735 library_names_spec=$lt_library_names_spec
23737 # The coded name of the library, if different from the real name.
23738 soname_spec=$lt_soname_spec
23740 # Commands used to build and install an old-style archive.
23742 old_archive_cmds=$lt_old_archive_cmds_GCJ
23743 old_postinstall_cmds=$lt_old_postinstall_cmds
23744 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23746 # Create an old-style archive from a shared archive.
23747 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23749 # Create a temporary old-style archive to link instead of a shared archive.
23750 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23752 # Commands used to build and install a shared archive.
23753 archive_cmds=$lt_archive_cmds_GCJ
23754 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23755 postinstall_cmds=$lt_postinstall_cmds
23756 postuninstall_cmds=$lt_postuninstall_cmds
23758 # Commands used to build a loadable module (assumed same as above if empty)
23759 module_cmds=$lt_module_cmds_GCJ
23760 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23762 # Commands to strip libraries.
23763 old_striplib=$lt_old_striplib
23764 striplib=$lt_striplib
23766 # Dependencies to place before the objects being linked to create a
23768 predep_objects=$lt_predep_objects_GCJ
23770 # Dependencies to place after the objects being linked to create a
23772 postdep_objects=$lt_postdep_objects_GCJ
23774 # Dependencies to place before the objects being linked to create a
23776 predeps=$lt_predeps_GCJ
23778 # Dependencies to place after the objects being linked to create a
23780 postdeps=$lt_postdeps_GCJ
23782 # The directories searched by this compiler when creating a shared
23784 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
23786 # The library search path used internally by the compiler when linking
23787 # a shared library.
23788 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
23790 # Method to check whether dependent libraries are shared objects.
23791 deplibs_check_method=$lt_deplibs_check_method
23793 # Command to use when deplibs_check_method == file_magic.
23794 file_magic_cmd=$lt_file_magic_cmd
23796 # Flag that allows shared libraries with undefined symbols to be built.
23797 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
23799 # Flag that forces no undefined symbols.
23800 no_undefined_flag=$lt_no_undefined_flag_GCJ
23802 # Commands used to finish a libtool library installation in a directory.
23803 finish_cmds=$lt_finish_cmds
23805 # Same as above, but a single script fragment to be evaled but not shown.
23806 finish_eval=$lt_finish_eval
23808 # Take the output of nm and produce a listing of raw symbols and C names.
23809 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23811 # Transform the output of nm in a proper C declaration
23812 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23814 # Transform the output of nm in a C name address pair
23815 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23817 # This is the shared library runtime path variable.
23818 runpath_var=$runpath_var
23820 # This is the shared library path variable.
23821 shlibpath_var=$shlibpath_var
23823 # Is shlibpath searched before the hard-coded library search path?
23824 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23826 # How to hardcode a shared library path into an executable.
23827 hardcode_action=$hardcode_action_GCJ
23829 # Whether we should hardcode library paths into libraries.
23830 hardcode_into_libs=$hardcode_into_libs
23832 # Flag to hardcode \$libdir into a binary during linking.
23833 # This must work even if \$libdir does not exist.
23834 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
23836 # If ld is used when linking, flag to hardcode \$libdir into
23837 # a binary during linking. This must work even if \$libdir does
23839 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
23841 # Whether we need a single -rpath flag with a separated argument.
23842 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
23844 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23845 # resulting binary.
23846 hardcode_direct=$hardcode_direct_GCJ
23848 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23849 # resulting binary.
23850 hardcode_minus_L=$hardcode_minus_L_GCJ
23852 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23853 # the resulting binary.
23854 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
23856 # Set to yes if building a shared library automatically hardcodes DIR into the library
23857 # and all subsequent libraries and executables linked against it.
23858 hardcode_automatic=$hardcode_automatic_GCJ
23860 # Variables whose values should be saved in libtool wrapper scripts and
23861 # restored at relink time.
23862 variables_saved_for_relink="$variables_saved_for_relink"
23864 # Whether libtool must link a program against all its dependency libraries.
23865 link_all_deplibs=$link_all_deplibs_GCJ
23867 # Compile-time system search path for libraries
23868 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23870 # Run-time system search path for libraries
23871 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23873 # Fix the shell variable \$srcfile for the compiler.
23874 fix_srcfile_path=$lt_fix_srcfile_path
23876 # Set to yes if exported symbols are required.
23877 always_export_symbols=$always_export_symbols_GCJ
23879 # The commands to list exported symbols.
23880 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
23882 # The commands to extract the exported symbol list from a shared archive.
23883 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23885 # Symbols that should not be listed in the preloaded symbols.
23886 exclude_expsyms=$lt_exclude_expsyms_GCJ
23888 # Symbols that must always be exported.
23889 include_expsyms=$lt_include_expsyms_GCJ
23891 # ### END LIBTOOL TAG CONFIG: $tagname
23897 # If there is no Makefile yet, we rely on a make rule to execute
23898 # `config.status --recheck' to rerun these tests and create the
23899 # libtool script then.
23900 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23901 if test -f "$ltmain_in"; then
23902 test -f Makefile && make "$ltmain"
23908 ac_cpp='$CPP $CPPFLAGS'
23909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23923 # Source file extension for RC test sources.
23926 # Object file extension for compiled RC test sources.
23930 # Code to be used in simple compile tests
23931 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
23933 # Code to be used in simple link tests
23934 lt_simple_link_test_code="$lt_simple_compile_test_code"
23936 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23938 # If no C compiler was specified, use CC.
23941 # If no C compiler flags were specified, use CFLAGS.
23942 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23944 # Allow CC to be a program name with arguments.
23948 # save warnings/boilerplate of simple test code
23949 ac_outfile=conftest.$ac_objext
23950 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
23951 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23952 _lt_compiler_boilerplate=`cat conftest.err`
23955 ac_outfile=conftest.$ac_objext
23956 echo "$lt_simple_link_test_code" >conftest.$ac_ext
23957 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23958 _lt_linker_boilerplate=`cat conftest.err`
23962 # Allow CC to be a program name with arguments.
23967 for cc_temp in $compiler""; do
23969 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23970 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23975 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23977 lt_cv_prog_compiler_c_o_RC=yes
23979 # The else clause should only fire when bootstrapping the
23980 # libtool distribution, otherwise you forgot to ship ltmain.sh
23981 # with your package, and you will get complaints that there are
23982 # no rules to generate ltmain.sh.
23983 if test -f "$ltmain"; then
23984 # See if we are running on zsh, and set the options which allow our commands through
23985 # without removal of \ escapes.
23986 if test -n "${ZSH_VERSION+set}" ; then
23987 setopt NO_GLOB_SUBST
23989 # Now quote all the things that may contain metacharacters while being
23990 # careful not to overquote the AC_SUBSTed values. We take copies of the
23991 # variables and quote the copies for generation of the libtool script.
23992 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23994 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23995 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23996 deplibs_check_method reload_flag reload_cmds need_locks \
23997 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23998 lt_cv_sys_global_symbol_to_c_name_address \
23999 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24000 old_postinstall_cmds old_postuninstall_cmds \
24004 lt_prog_compiler_wl_RC \
24005 lt_prog_compiler_pic_RC \
24006 lt_prog_compiler_static_RC \
24007 lt_prog_compiler_no_builtin_flag_RC \
24008 export_dynamic_flag_spec_RC \
24009 thread_safe_flag_spec_RC \
24010 whole_archive_flag_spec_RC \
24011 enable_shared_with_static_runtimes_RC \
24012 old_archive_cmds_RC \
24013 old_archive_from_new_cmds_RC \
24014 predep_objects_RC \
24015 postdep_objects_RC \
24018 compiler_lib_search_path_RC \
24019 compiler_lib_search_dirs_RC \
24021 archive_expsym_cmds_RC \
24022 postinstall_cmds_RC \
24023 postuninstall_cmds_RC \
24024 old_archive_from_expsyms_cmds_RC \
24025 allow_undefined_flag_RC \
24026 no_undefined_flag_RC \
24027 export_symbols_cmds_RC \
24028 hardcode_libdir_flag_spec_RC \
24029 hardcode_libdir_flag_spec_ld_RC \
24030 hardcode_libdir_separator_RC \
24031 hardcode_automatic_RC \
24033 module_expsym_cmds_RC \
24034 lt_cv_prog_compiler_c_o_RC \
24035 fix_srcfile_path_RC \
24036 exclude_expsyms_RC \
24037 include_expsyms_RC; do
24040 old_archive_cmds_RC | \
24041 old_archive_from_new_cmds_RC | \
24042 archive_cmds_RC | \
24043 archive_expsym_cmds_RC | \
24045 module_expsym_cmds_RC | \
24046 old_archive_from_expsyms_cmds_RC | \
24047 export_symbols_cmds_RC | \
24048 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24049 postinstall_cmds | postuninstall_cmds | \
24050 old_postinstall_cmds | old_postuninstall_cmds | \
24051 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24052 # Double-quote double-evaled strings.
24053 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24056 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24062 *'\$0 --fallback-echo"')
24063 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24069 cat <<__EOF__ >> "$cfgfile"
24070 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24072 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24074 # Shell to use when invoking shell scripts.
24077 # Whether or not to build shared libraries.
24078 build_libtool_libs=$enable_shared
24080 # Whether or not to build static libraries.
24081 build_old_libs=$enable_static
24083 # Whether or not to add -lc for building shared libraries.
24084 build_libtool_need_lc=$archive_cmds_need_lc_RC
24086 # Whether or not to disallow shared libs when runtime libs are static
24087 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24089 # Whether or not to optimize for fast installation.
24090 fast_install=$enable_fast_install
24093 host_alias=$host_alias
24097 # The build system.
24098 build_alias=$build_alias
24102 # An echo program that does not interpret backslashes.
24107 AR_FLAGS=$lt_AR_FLAGS
24112 # LTCC compiler flags.
24113 LTCFLAGS=$lt_LTCFLAGS
24115 # A language-specific compiler.
24118 # Is the compiler the GNU C compiler?
24124 # The linker used to build libraries.
24127 # Whether we need hard or soft links.
24130 # A BSD-compatible nm program.
24133 # A symbol stripping program
24136 # Used to examine libraries when file_magic_cmd begins "file"
24137 MAGIC_CMD=$MAGIC_CMD
24139 # Used on cygwin: DLL creation program.
24142 # Used on cygwin: object dumper.
24145 # Used on cygwin: assembler.
24148 # The name of the directory that contains temporary libtool files.
24151 # How to create reloadable object files.
24152 reload_flag=$lt_reload_flag
24153 reload_cmds=$lt_reload_cmds
24155 # How to pass a linker flag through the compiler.
24156 wl=$lt_lt_prog_compiler_wl_RC
24158 # Object file suffix (normally "o").
24159 objext="$ac_objext"
24161 # Old archive suffix (normally "a").
24164 # Shared library suffix (normally ".so").
24165 shrext_cmds='$shrext_cmds'
24167 # Executable file suffix (normally "").
24170 # Additional compiler flags for building library objects.
24171 pic_flag=$lt_lt_prog_compiler_pic_RC
24174 # What is the maximum length of a command?
24175 max_cmd_len=$lt_cv_sys_max_cmd_len
24177 # Does compiler simultaneously support -c and -o options?
24178 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24180 # Must we lock files when doing compilation?
24181 need_locks=$lt_need_locks
24183 # Do we need the lib prefix for modules?
24184 need_lib_prefix=$need_lib_prefix
24186 # Do we need a version for libraries?
24187 need_version=$need_version
24189 # Whether dlopen is supported.
24190 dlopen_support=$enable_dlopen
24192 # Whether dlopen of programs is supported.
24193 dlopen_self=$enable_dlopen_self
24195 # Whether dlopen of statically linked programs is supported.
24196 dlopen_self_static=$enable_dlopen_self_static
24198 # Compiler flag to prevent dynamic linking.
24199 link_static_flag=$lt_lt_prog_compiler_static_RC
24201 # Compiler flag to turn off builtin functions.
24202 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24204 # Compiler flag to allow reflexive dlopens.
24205 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24207 # Compiler flag to generate shared objects directly from archives.
24208 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24210 # Compiler flag to generate thread-safe objects.
24211 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24213 # Library versioning type.
24214 version_type=$version_type
24216 # Format of library name prefix.
24217 libname_spec=$lt_libname_spec
24219 # List of archive names. First name is the real one, the rest are links.
24220 # The last name is the one that the linker finds with -lNAME.
24221 library_names_spec=$lt_library_names_spec
24223 # The coded name of the library, if different from the real name.
24224 soname_spec=$lt_soname_spec
24226 # Commands used to build and install an old-style archive.
24228 old_archive_cmds=$lt_old_archive_cmds_RC
24229 old_postinstall_cmds=$lt_old_postinstall_cmds
24230 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24232 # Create an old-style archive from a shared archive.
24233 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24235 # Create a temporary old-style archive to link instead of a shared archive.
24236 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24238 # Commands used to build and install a shared archive.
24239 archive_cmds=$lt_archive_cmds_RC
24240 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24241 postinstall_cmds=$lt_postinstall_cmds
24242 postuninstall_cmds=$lt_postuninstall_cmds
24244 # Commands used to build a loadable module (assumed same as above if empty)
24245 module_cmds=$lt_module_cmds_RC
24246 module_expsym_cmds=$lt_module_expsym_cmds_RC
24248 # Commands to strip libraries.
24249 old_striplib=$lt_old_striplib
24250 striplib=$lt_striplib
24252 # Dependencies to place before the objects being linked to create a
24254 predep_objects=$lt_predep_objects_RC
24256 # Dependencies to place after the objects being linked to create a
24258 postdep_objects=$lt_postdep_objects_RC
24260 # Dependencies to place before the objects being linked to create a
24262 predeps=$lt_predeps_RC
24264 # Dependencies to place after the objects being linked to create a
24266 postdeps=$lt_postdeps_RC
24268 # The directories searched by this compiler when creating a shared
24270 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
24272 # The library search path used internally by the compiler when linking
24273 # a shared library.
24274 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24276 # Method to check whether dependent libraries are shared objects.
24277 deplibs_check_method=$lt_deplibs_check_method
24279 # Command to use when deplibs_check_method == file_magic.
24280 file_magic_cmd=$lt_file_magic_cmd
24282 # Flag that allows shared libraries with undefined symbols to be built.
24283 allow_undefined_flag=$lt_allow_undefined_flag_RC
24285 # Flag that forces no undefined symbols.
24286 no_undefined_flag=$lt_no_undefined_flag_RC
24288 # Commands used to finish a libtool library installation in a directory.
24289 finish_cmds=$lt_finish_cmds
24291 # Same as above, but a single script fragment to be evaled but not shown.
24292 finish_eval=$lt_finish_eval
24294 # Take the output of nm and produce a listing of raw symbols and C names.
24295 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24297 # Transform the output of nm in a proper C declaration
24298 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24300 # Transform the output of nm in a C name address pair
24301 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24303 # This is the shared library runtime path variable.
24304 runpath_var=$runpath_var
24306 # This is the shared library path variable.
24307 shlibpath_var=$shlibpath_var
24309 # Is shlibpath searched before the hard-coded library search path?
24310 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24312 # How to hardcode a shared library path into an executable.
24313 hardcode_action=$hardcode_action_RC
24315 # Whether we should hardcode library paths into libraries.
24316 hardcode_into_libs=$hardcode_into_libs
24318 # Flag to hardcode \$libdir into a binary during linking.
24319 # This must work even if \$libdir does not exist.
24320 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24322 # If ld is used when linking, flag to hardcode \$libdir into
24323 # a binary during linking. This must work even if \$libdir does
24325 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24327 # Whether we need a single -rpath flag with a separated argument.
24328 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24330 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24331 # resulting binary.
24332 hardcode_direct=$hardcode_direct_RC
24334 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24335 # resulting binary.
24336 hardcode_minus_L=$hardcode_minus_L_RC
24338 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24339 # the resulting binary.
24340 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24342 # Set to yes if building a shared library automatically hardcodes DIR into the library
24343 # and all subsequent libraries and executables linked against it.
24344 hardcode_automatic=$hardcode_automatic_RC
24346 # Variables whose values should be saved in libtool wrapper scripts and
24347 # restored at relink time.
24348 variables_saved_for_relink="$variables_saved_for_relink"
24350 # Whether libtool must link a program against all its dependency libraries.
24351 link_all_deplibs=$link_all_deplibs_RC
24353 # Compile-time system search path for libraries
24354 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24356 # Run-time system search path for libraries
24357 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24359 # Fix the shell variable \$srcfile for the compiler.
24360 fix_srcfile_path=$lt_fix_srcfile_path
24362 # Set to yes if exported symbols are required.
24363 always_export_symbols=$always_export_symbols_RC
24365 # The commands to list exported symbols.
24366 export_symbols_cmds=$lt_export_symbols_cmds_RC
24368 # The commands to extract the exported symbol list from a shared archive.
24369 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24371 # Symbols that should not be listed in the preloaded symbols.
24372 exclude_expsyms=$lt_exclude_expsyms_RC
24374 # Symbols that must always be exported.
24375 include_expsyms=$lt_include_expsyms_RC
24377 # ### END LIBTOOL TAG CONFIG: $tagname
24383 # If there is no Makefile yet, we rely on a make rule to execute
24384 # `config.status --recheck' to rerun these tests and create the
24385 # libtool script then.
24386 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24387 if test -f "$ltmain_in"; then
24388 test -f Makefile && make "$ltmain"
24394 ac_cpp='$CPP $CPPFLAGS'
24395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24404 { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24405 $as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24406 { (exit 1); exit 1; }; }
24410 # Append the new tag name to the list of available tags.
24411 if test -n "$tagname" ; then
24412 available_tags="$available_tags $tagname"
24418 # Now substitute the updated list of available tags.
24419 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24420 mv "${ofile}T" "$ofile"
24424 { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24425 $as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24426 { (exit 1); exit 1; }; }
24432 # This can be used to rebuild libtool when needed
24433 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24435 # Always use our own libtool.
24436 LIBTOOL='$(SHELL) $(apr_builddir)/libtool'
24438 # Prevent multiple expansion
24459 # get libtool's setting of shlibpath_var
24460 eval `grep "^shlibpath_var=[A-Z_]*$" $apr_builddir/libtool`
24461 if test "x$shlibpath_var" = "x"; then
24462 shlibpath_var=REPLACE_WITH_YOUR_SHLIBPATH_VAR
24469 # Check whether --with-installbuilddir was given.
24470 if test "${with_installbuilddir+set}" = set; then
24471 withval=$with_installbuilddir; installbuilddir=$withval
24473 installbuilddir="${datadir}/build"
24479 # Check whether --with-libtool was given.
24480 if test "${with_libtool+set}" = set; then
24481 withval=$with_libtool; use_libtool=$withval
24487 if test "x$use_libtool" = "xyes"; then
24488 lt_compile='$(LIBTOOL) $(LTFLAGS) --mode=compile $(COMPILE) -c $< && touch $@'
24489 LT_VERSION="-version-info `$get_version libtool $version_hdr APR`"
24490 link="\$(LIBTOOL) \$(LTFLAGS) --mode=link \$(LT_LDFLAGS) \$(COMPILE) ${LT_VERSION} \$(ALL_LDFLAGS) -o \$@"
24492 lib_target='-rpath $(libdir) $$objects'
24493 export_lib_target='-rpath \$(libdir) \$\$objects'
24495 lt_compile='$(COMPILE) -c $<'
24496 link='$(AR) cr $(TARGET_LIB) $$objects; $(RANLIB) $(TARGET_LIB)'
24499 export_lib_target=''
24504 apr_platform_runtime_link_flag="-R"
24521 echo "${nl}Check for compiler flags..."
24526 if test "$ac_test_CFLAGS" != set; then
24528 if test "x$CFLAGS" = "x-g"; then
24529 echo " nulling CFLAGS"
24534 for i in $CFLAGS; do
24535 if test "x$i" != "x-g"; then
24536 apr_new_bugger="$apr_new_bugger $i"
24541 if test $apr_removed = "1"; then
24542 echo " removed \"-g\" from CFLAGS"
24543 CFLAGS=$apr_new_bugger
24551 # Check whether --enable-debug was given.
24552 if test "${enable_debug+set}" = set; then
24553 enableval=$enable_debug;
24554 if test "x$CFLAGS" = "x"; then
24555 echo " setting CFLAGS to \"-g\""
24558 apr_addto_bugger="-g"
24559 for i in $apr_addto_bugger; do
24560 apr_addto_duplicate="0"
24561 for j in $CFLAGS; do
24562 if test "x$i" = "x$j"; then
24563 apr_addto_duplicate="1"
24567 if test $apr_addto_duplicate = "0"; then
24568 echo " adding \"$i\" to CFLAGS"
24569 CFLAGS="$CFLAGS $i"
24574 if test "$GCC" = "yes"; then
24576 if test "x$CFLAGS" = "x"; then
24577 echo " setting CFLAGS to \"-Wall\""
24580 apr_addto_bugger="-Wall"
24581 for i in $apr_addto_bugger; do
24582 apr_addto_duplicate="0"
24583 for j in $CFLAGS; do
24584 if test "x$i" = "x$j"; then
24585 apr_addto_duplicate="1"
24589 if test $apr_addto_duplicate = "0"; then
24590 echo " adding \"$i\" to CFLAGS"
24591 CFLAGS="$CFLAGS $i"
24596 elif test "$AIX_XLC" = "yes"; then
24598 if test "x$CFLAGS" = "x"; then
24599 echo " setting CFLAGS to \"-qfullpath\""
24600 CFLAGS="-qfullpath"
24602 apr_addto_bugger="-qfullpath"
24603 for i in $apr_addto_bugger; do
24604 apr_addto_duplicate="0"
24605 for j in $CFLAGS; do
24606 if test "x$i" = "x$j"; then
24607 apr_addto_duplicate="1"
24611 if test $apr_addto_duplicate = "0"; then
24612 echo " adding \"$i\" to CFLAGS"
24613 CFLAGS="$CFLAGS $i"
24622 # Check whether --enable-maintainer-mode was given.
24623 if test "${enable_maintainer_mode+set}" = set; then
24624 enableval=$enable_maintainer_mode;
24625 if test "x$CFLAGS" = "x"; then
24626 echo " setting CFLAGS to \"-g\""
24629 apr_addto_bugger="-g"
24630 for i in $apr_addto_bugger; do
24631 apr_addto_duplicate="0"
24632 for j in $CFLAGS; do
24633 if test "x$i" = "x$j"; then
24634 apr_addto_duplicate="1"
24638 if test $apr_addto_duplicate = "0"; then
24639 echo " adding \"$i\" to CFLAGS"
24640 CFLAGS="$CFLAGS $i"
24645 if test "$GCC" = "yes"; then
24647 if test "x$CFLAGS" = "x"; then
24648 echo " setting CFLAGS to \"-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations\""
24649 CFLAGS="-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations"
24651 apr_addto_bugger="-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations"
24652 for i in $apr_addto_bugger; do
24653 apr_addto_duplicate="0"
24654 for j in $CFLAGS; do
24655 if test "x$i" = "x$j"; then
24656 apr_addto_duplicate="1"
24660 if test $apr_addto_duplicate = "0"; then
24661 echo " adding \"$i\" to CFLAGS"
24662 CFLAGS="$CFLAGS $i"
24667 elif test "$AIX_XLC" = "yes"; then
24669 if test "x$CFLAGS" = "x"; then
24670 echo " setting CFLAGS to \"-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro\""
24671 CFLAGS="-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro"
24673 apr_addto_bugger="-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro"
24674 for i in $apr_addto_bugger; do
24675 apr_addto_duplicate="0"
24676 for j in $CFLAGS; do
24677 if test "x$i" = "x$j"; then
24678 apr_addto_duplicate="1"
24682 if test $apr_addto_duplicate = "0"; then
24683 echo " adding \"$i\" to CFLAGS"
24684 CFLAGS="$CFLAGS $i"
24693 # Check whether --enable-profile was given.
24694 if test "${enable_profile+set}" = set; then
24695 enableval=$enable_profile; if test "$GCC" = "yes"; then
24697 if test "x$CFLAGS" = "x"; then
24698 echo " setting CFLAGS to \"-pg\""
24701 apr_addto_bugger="-pg"
24702 for i in $apr_addto_bugger; do
24703 apr_addto_duplicate="0"
24704 for j in $CFLAGS; do
24705 if test "x$i" = "x$j"; then
24706 apr_addto_duplicate="1"
24710 if test $apr_addto_duplicate = "0"; then
24711 echo " adding \"$i\" to CFLAGS"
24712 CFLAGS="$CFLAGS $i"
24718 if test "x$CFLAGS" = "x-g"; then
24719 echo " nulling CFLAGS"
24724 for i in $CFLAGS; do
24725 if test "x$i" != "x-g"; then
24726 apr_new_bugger="$apr_new_bugger $i"
24731 if test $apr_removed = "1"; then
24732 echo " removed \"-g\" from CFLAGS"
24733 CFLAGS=$apr_new_bugger
24737 if test "$host" = "i586-pc-beos"; then
24739 if test "x$CFLAGS" = "x-O2"; then
24740 echo " nulling CFLAGS"
24745 for i in $CFLAGS; do
24746 if test "x$i" != "x-O2"; then
24747 apr_new_bugger="$apr_new_bugger $i"
24752 if test $apr_removed = "1"; then
24753 echo " removed \"-O2\" from CFLAGS"
24754 CFLAGS=$apr_new_bugger
24759 if test "x$CFLAGS" = "x"; then
24760 echo " setting CFLAGS to \"-O1\""
24763 apr_addto_bugger="-O1"
24764 for i in $apr_addto_bugger; do
24765 apr_addto_duplicate="0"
24766 for j in $CFLAGS; do
24767 if test "x$i" = "x$j"; then
24768 apr_addto_duplicate="1"
24772 if test $apr_addto_duplicate = "0"; then
24773 echo " adding \"$i\" to CFLAGS"
24774 CFLAGS="$CFLAGS $i"
24780 if test "x$LDFLAGS" = "x"; then
24781 echo " setting LDFLAGS to \"-p\""
24784 apr_addto_bugger="-p"
24785 for i in $apr_addto_bugger; do
24786 apr_addto_duplicate="0"
24787 for j in $LDFLAGS; do
24788 if test "x$i" = "x$j"; then
24789 apr_addto_duplicate="1"
24793 if test $apr_addto_duplicate = "0"; then
24794 echo " adding \"$i\" to LDFLAGS"
24795 LDFLAGS="$LDFLAGS $i"
24805 # Check whether --enable-pool-debug was given.
24806 if test "${enable_pool_debug+set}" = set; then
24807 enableval=$enable_pool_debug; if test -z "$enableval"; then
24809 if test "x$CPPFLAGS" = "x"; then
24810 echo " setting CPPFLAGS to \"-DAPR_POOL_DEBUG=1\""
24811 CPPFLAGS="-DAPR_POOL_DEBUG=1"
24813 apr_addto_bugger="-DAPR_POOL_DEBUG=1"
24814 for i in $apr_addto_bugger; do
24815 apr_addto_duplicate="0"
24816 for j in $CPPFLAGS; do
24817 if test "x$i" = "x$j"; then
24818 apr_addto_duplicate="1"
24822 if test $apr_addto_duplicate = "0"; then
24823 echo " adding \"$i\" to CPPFLAGS"
24824 CPPFLAGS="$CPPFLAGS $i"
24829 elif test ! "$enableval" = "no"; then
24832 for i in $enableval
24859 if test $flag -gt 0; then
24860 apr_pool_debug=`expr '(' $apr_pool_debug - $apr_pool_debug % \
24861 '(' $flag '*' 2 ')' ')' + $flag + $apr_pool_debug % $flag`
24866 if test "x$CPPFLAGS" = "x"; then
24867 echo " setting CPPFLAGS to \"-DAPR_POOL_DEBUG=$apr_pool_debug\""
24868 CPPFLAGS="-DAPR_POOL_DEBUG=$apr_pool_debug"
24870 apr_addto_bugger="-DAPR_POOL_DEBUG=$apr_pool_debug"
24871 for i in $apr_addto_bugger; do
24872 apr_addto_duplicate="0"
24873 for j in $CPPFLAGS; do
24874 if test "x$i" = "x$j"; then
24875 apr_addto_duplicate="1"
24879 if test $apr_addto_duplicate = "0"; then
24880 echo " adding \"$i\" to CPPFLAGS"
24881 CPPFLAGS="$CPPFLAGS $i"
24892 # Check whether --with-efence was given.
24893 if test "${with_efence+set}" = set; then
24894 withval=$with_efence; apr_efence_dir="$withval"
24895 if test "$apr_efence_dir" != "yes"; then
24897 if test "x$LDFLAGS" = "x"; then
24898 echo " setting LDFLAGS to \"-L$apr_efence_dir/lib\""
24899 LDFLAGS="-L$apr_efence_dir/lib"
24901 apr_addto_bugger="-L$apr_efence_dir/lib"
24902 for i in $apr_addto_bugger; do
24903 apr_addto_duplicate="0"
24904 for j in $LDFLAGS; do
24905 if test "x$i" = "x$j"; then
24906 apr_addto_duplicate="1"
24910 if test $apr_addto_duplicate = "0"; then
24911 echo " adding \"$i\" to LDFLAGS"
24912 LDFLAGS="$LDFLAGS $i"
24917 if test "x$apr_platform_runtime_link_flag" != "x"; then
24919 if test "x$LDFLAGS" = "x"; then
24920 echo " setting LDFLAGS to \"$apr_platform_runtime_link_flag$apr_efence_dir/lib\""
24921 LDFLAGS="$apr_platform_runtime_link_flag$apr_efence_dir/lib"
24923 apr_addto_bugger="$apr_platform_runtime_link_flag$apr_efence_dir/lib"
24924 for i in $apr_addto_bugger; do
24925 apr_addto_duplicate="0"
24926 for j in $LDFLAGS; do
24927 if test "x$i" = "x$j"; then
24928 apr_addto_duplicate="1"
24932 if test $apr_addto_duplicate = "0"; then
24933 echo " adding \"$i\" to LDFLAGS"
24934 LDFLAGS="$LDFLAGS $i"
24941 { $as_echo "$as_me:$LINENO: checking for malloc in -lefence" >&5
24942 $as_echo_n "checking for malloc in -lefence... " >&6; }
24943 if test "${ac_cv_lib_efence_malloc+set}" = set; then
24944 $as_echo_n "(cached) " >&6
24946 ac_check_lib_save_LIBS=$LIBS
24947 LIBS="-lefence $LIBS"
24948 cat >conftest.$ac_ext <<_ACEOF
24951 cat confdefs.h >>conftest.$ac_ext
24952 cat >>conftest.$ac_ext <<_ACEOF
24953 /* end confdefs.h. */
24955 /* Override any GCC internal prototype to avoid an error.
24956 Use char because int might match the return type of a GCC
24957 builtin and then its argument prototype would still apply. */
24970 rm -f conftest.$ac_objext conftest$ac_exeext
24971 if { (ac_try="$ac_link"
24972 case "(($ac_try" in
24973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24974 *) ac_try_echo=$ac_try;;
24976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24977 $as_echo "$ac_try_echo") >&5
24978 (eval "$ac_link") 2>conftest.er1
24980 grep -v '^ *+' conftest.er1 >conftest.err
24982 cat conftest.err >&5
24983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24984 (exit $ac_status); } && {
24985 test -z "$ac_c_werror_flag" ||
24986 test ! -s conftest.err
24987 } && test -s conftest$ac_exeext && {
24988 test "$cross_compiling" = yes ||
24989 $as_test_x conftest$ac_exeext
24991 ac_cv_lib_efence_malloc=yes
24993 $as_echo "$as_me: failed program was:" >&5
24994 sed 's/^/| /' conftest.$ac_ext >&5
24996 ac_cv_lib_efence_malloc=no
24999 rm -rf conftest.dSYM
25000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25001 conftest$ac_exeext conftest.$ac_ext
25002 LIBS=$ac_check_lib_save_LIBS
25004 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_efence_malloc" >&5
25005 $as_echo "$ac_cv_lib_efence_malloc" >&6; }
25006 if test "x$ac_cv_lib_efence_malloc" = x""yes; then
25008 if test "x$LIBS" = "x"; then
25009 echo " setting LIBS to \"-lefence\""
25012 apr_addto_bugger="-lefence"
25013 for i in $apr_addto_bugger; do
25014 apr_addto_duplicate="0"
25016 if test "x$i" = "x$j"; then
25017 apr_addto_duplicate="1"
25021 if test $apr_addto_duplicate = "0"; then
25022 echo " adding \"$i\" to LIBS"
25029 { { $as_echo "$as_me:$LINENO: error: Electric Fence requested but not detected" >&5
25030 $as_echo "$as_me: error: Electric Fence requested but not detected" >&2;}
25031 { (exit 1); exit 1; }; }
25038 if test "$host" = "i586-pc-beos"; then
25039 # Check whether --enable-malloc-debug was given.
25040 if test "${enable_malloc_debug+set}" = set; then
25041 enableval=$enable_malloc_debug;
25042 if test "x$CFLAGS" = "x-O2"; then
25043 echo " nulling CFLAGS"
25048 for i in $CFLAGS; do
25049 if test "x$i" != "x-O2"; then
25050 apr_new_bugger="$apr_new_bugger $i"
25055 if test $apr_removed = "1"; then
25056 echo " removed \"-O2\" from CFLAGS"
25057 CFLAGS=$apr_new_bugger
25062 if test "x$CPPFLAGS" = "x"; then
25063 echo " setting CPPFLAGS to \"-fcheck-memory-usage -D_KERNEL_MODE\""
25064 CPPFLAGS="-fcheck-memory-usage -D_KERNEL_MODE"
25066 apr_addto_bugger="-fcheck-memory-usage -D_KERNEL_MODE"
25067 for i in $apr_addto_bugger; do
25068 apr_addto_duplicate="0"
25069 for j in $CPPFLAGS; do
25070 if test "x$i" = "x$j"; then
25071 apr_addto_duplicate="1"
25075 if test $apr_addto_duplicate = "0"; then
25076 echo " adding \"$i\" to CPPFLAGS"
25077 CPPFLAGS="$CPPFLAGS $i"
25086 # this is the place to put specific options for platform/compiler
25088 case "$host:$CC" in
25091 if test "x$CFLAGS" = "x"; then
25092 echo " setting CFLAGS to \"-Ae +Z\""
25095 apr_addto_bugger="-Ae +Z"
25096 for i in $apr_addto_bugger; do
25097 apr_addto_duplicate="0"
25098 for j in $CFLAGS; do
25099 if test "x$i" = "x$j"; then
25100 apr_addto_duplicate="1"
25104 if test $apr_addto_duplicate = "0"; then
25105 echo " adding \"$i\" to CFLAGS"
25106 CFLAGS="$CFLAGS $i"
25115 if echo "$CFLAGS " | grep '+DA' >/dev/null; then :
25118 if test "x$CFLAGS" = "x"; then
25119 echo " setting CFLAGS to \"+DAportable\""
25120 CFLAGS="+DAportable"
25122 apr_addto_bugger="+DAportable"
25123 for i in $apr_addto_bugger; do
25124 apr_addto_duplicate="0"
25125 for j in $CFLAGS; do
25126 if test "x$i" = "x$j"; then
25127 apr_addto_duplicate="1"
25131 if test $apr_addto_duplicate = "0"; then
25132 echo " adding \"$i\" to CFLAGS"
25133 CFLAGS="$CFLAGS $i"
25142 powerpc-*-beos:mwcc* )
25144 echo " forcing CPP to \"mwcc -E\""
25148 echo " forcing CC to \"mwcc\""
25152 echo " forcing AR to \"ar\""
25159 if test "$GCC" = "yes"; then
25163 cat > conftest.c <<EOF
25164 #include <sys/types.h>
25165 int main() { return 0; }
25168 for i in "$CC -MM" "$CC -M" "$CPP -MM" "$CPP -M" "cpp -M"; do
25169 { $as_echo "$as_me:$LINENO: checking if $i can create proper make dependencies" >&5
25170 $as_echo_n "checking if $i can create proper make dependencies... " >&6; }
25171 if $i conftest.c 2>/dev/null | grep 'conftest.o: conftest.c' >/dev/null; then
25173 { $as_echo "$as_me:$LINENO: result: yes" >&5
25174 $as_echo "yes" >&6; }
25177 { $as_echo "$as_me:$LINENO: result: no" >&5
25178 $as_echo "no" >&6; }
25186 # force_atomic_generic flag
25187 # this will be set we find a cpu/OS combo
25188 # which is historical and doesn't work with the method
25189 # we are using for the more up to date cpu/OS
25190 # (ie.. old sparcs)
25191 apr_force_atomic_generic=0
25192 proc_mutex_is_global=0
25193 nonportable_atomics_enabled=0
25195 # Check whether --enable-nonportable-atomics was given.
25196 if test "${enable_nonportable_atomics+set}" = set; then
25197 enableval=$enable_nonportable_atomics;
25198 if test "$enableval" = "yes"; then
25199 nonportable_atomics_enabled=1
25205 config_subdirs="none"
25206 INSTALL_SUBDIRS="none"
25208 i386-ibm-aix* | *-ibm-aix[1-2].* | *-ibm-aix3.* | *-ibm-aix4.1 | *-ibm-aix4.1.* | *-ibm-aix4.2 | *-ibm-aix4.2.*)
25211 if test "x$LDFLAGS" = "x"; then
25212 echo " setting LDFLAGS to \"-lld\""
25215 apr_addto_bugger="-lld"
25216 for i in $apr_addto_bugger; do
25217 apr_addto_duplicate="0"
25218 for j in $LDFLAGS; do
25219 if test "x$i" = "x$j"; then
25220 apr_addto_duplicate="1"
25224 if test $apr_addto_duplicate = "0"; then
25225 echo " adding \"$i\" to LDFLAGS"
25226 LDFLAGS="$LDFLAGS $i"
25235 if test "x$CPPFLAGS" = "x"; then
25236 echo " setting CPPFLAGS to \"-DOS2\""
25239 apr_addto_bugger="-DOS2"
25240 for i in $apr_addto_bugger; do
25241 apr_addto_duplicate="0"
25242 for j in $CPPFLAGS; do
25243 if test "x$i" = "x$j"; then
25244 apr_addto_duplicate="1"
25248 if test $apr_addto_duplicate = "0"; then
25249 echo " adding \"$i\" to CPPFLAGS"
25250 CPPFLAGS="$CPPFLAGS $i"
25256 if test "x$CFLAGS" = "x"; then
25257 echo " setting CFLAGS to \"-Zmt\""
25260 apr_addto_bugger="-Zmt"
25261 for i in $apr_addto_bugger; do
25262 apr_addto_duplicate="0"
25263 for j in $CFLAGS; do
25264 if test "x$i" = "x$j"; then
25265 apr_addto_duplicate="1"
25269 if test $apr_addto_duplicate = "0"; then
25270 echo " adding \"$i\" to CFLAGS"
25271 CFLAGS="$CFLAGS $i"
25277 { $as_echo "$as_me:$LINENO: checking for random in -lbsd" >&5
25278 $as_echo_n "checking for random in -lbsd... " >&6; }
25279 if test "${ac_cv_lib_bsd_random+set}" = set; then
25280 $as_echo_n "(cached) " >&6
25282 ac_check_lib_save_LIBS=$LIBS
25284 cat >conftest.$ac_ext <<_ACEOF
25287 cat confdefs.h >>conftest.$ac_ext
25288 cat >>conftest.$ac_ext <<_ACEOF
25289 /* end confdefs.h. */
25291 /* Override any GCC internal prototype to avoid an error.
25292 Use char because int might match the return type of a GCC
25293 builtin and then its argument prototype would still apply. */
25306 rm -f conftest.$ac_objext conftest$ac_exeext
25307 if { (ac_try="$ac_link"
25308 case "(($ac_try" in
25309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25310 *) ac_try_echo=$ac_try;;
25312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25313 $as_echo "$ac_try_echo") >&5
25314 (eval "$ac_link") 2>conftest.er1
25316 grep -v '^ *+' conftest.er1 >conftest.err
25318 cat conftest.err >&5
25319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25320 (exit $ac_status); } && {
25321 test -z "$ac_c_werror_flag" ||
25322 test ! -s conftest.err
25323 } && test -s conftest$ac_exeext && {
25324 test "$cross_compiling" = yes ||
25325 $as_test_x conftest$ac_exeext
25327 ac_cv_lib_bsd_random=yes
25329 $as_echo "$as_me: failed program was:" >&5
25330 sed 's/^/| /' conftest.$ac_ext >&5
25332 ac_cv_lib_bsd_random=no
25335 rm -rf conftest.dSYM
25336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25337 conftest$ac_exeext conftest.$ac_ext
25338 LIBS=$ac_check_lib_save_LIBS
25340 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_random" >&5
25341 $as_echo "$ac_cv_lib_bsd_random" >&6; }
25342 if test "x$ac_cv_lib_bsd_random" = x""yes; then
25343 cat >>confdefs.h <<_ACEOF
25344 #define HAVE_LIBBSD 1
25352 enable_threads="system_threads"
25355 proc_mutex_is_global=1
25360 if test "x$CPPFLAGS" = "x"; then
25361 echo " setting CPPFLAGS to \"-DBEOS\""
25364 apr_addto_bugger="-DBEOS"
25365 for i in $apr_addto_bugger; do
25366 apr_addto_duplicate="0"
25367 for j in $CPPFLAGS; do
25368 if test "x$i" = "x$j"; then
25369 apr_addto_duplicate="1"
25373 if test $apr_addto_duplicate = "0"; then
25374 echo " adding \"$i\" to CPPFLAGS"
25375 CPPFLAGS="$CPPFLAGS $i"
25380 enable_threads="system_threads"
25381 native_mmap_emul="1"
25383 { $as_echo "$as_me:$LINENO: checking for BONE_VERSION in sys/socket.h" >&5
25384 $as_echo_n "checking for BONE_VERSION in sys/socket.h... " >&6; }
25385 if test "${ac_cv_define_BONE_VERSION+set}" = set; then
25386 $as_echo_n "(cached) " >&6
25389 cat >conftest.$ac_ext <<_ACEOF
25392 cat confdefs.h >>conftest.$ac_ext
25393 cat >>conftest.$ac_ext <<_ACEOF
25394 /* end confdefs.h. */
25396 #include <sys/socket.h>
25397 #ifdef BONE_VERSION
25402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25403 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then
25404 ac_cv_define_BONE_VERSION=yes
25406 ac_cv_define_BONE_VERSION=no
25412 { $as_echo "$as_me:$LINENO: result: $ac_cv_define_BONE_VERSION" >&5
25413 $as_echo "$ac_cv_define_BONE_VERSION" >&6; }
25414 if test "$ac_cv_define_BONE_VERSION" = "yes"; then
25416 cat >>confdefs.h <<\_ACEOF
25417 #define HAVE_BONE_VERSION 1
25424 proc_mutex_is_global=1
25445 if test "x$CPPFLAGS" = "x"; then
25446 echo " setting CPPFLAGS to \"-DCYGWIN\""
25447 CPPFLAGS="-DCYGWIN"
25449 apr_addto_bugger="-DCYGWIN"
25450 for i in $apr_addto_bugger; do
25451 apr_addto_duplicate="0"
25452 for j in $CPPFLAGS; do
25453 if test "x$i" = "x$j"; then
25454 apr_addto_duplicate="1"
25458 if test $apr_addto_duplicate = "0"; then
25459 echo " adding \"$i\" to CPPFLAGS"
25460 CPPFLAGS="$CPPFLAGS $i"
25465 enable_threads="no"
25469 apr_force_atomic_generic=1
25472 if test "$nonportable_atomics_enabled" = 1; then
25473 apr_force_atomic_generic=0
25481 enable_threads="no"
25496 # For some platforms we need a version string which allows easy numeric
25500 if test -x /sbin/sysctl; then
25501 os_version=`/sbin/sysctl -n kern.osreldate`
25507 os_version=`uname -r | sed -e 's/\(.\)\.\(.\)\.\(.\).*/\1\2\3/'`
25510 os_version=`uname -r | sed -e 's/\(.\)\.\(.\).*/\1\2/'`
25513 os_version=OS_VERSION_IS_NOT_SET
25518 { $as_echo "$as_me:$LINENO: checking for res_init in -lresolv" >&5
25519 $as_echo_n "checking for res_init in -lresolv... " >&6; }
25520 if test "${ac_cv_lib_resolv_res_init+set}" = set; then
25521 $as_echo_n "(cached) " >&6
25523 ac_check_lib_save_LIBS=$LIBS
25524 LIBS="-lresolv $LIBS"
25525 cat >conftest.$ac_ext <<_ACEOF
25528 cat confdefs.h >>conftest.$ac_ext
25529 cat >>conftest.$ac_ext <<_ACEOF
25530 /* end confdefs.h. */
25532 /* Override any GCC internal prototype to avoid an error.
25533 Use char because int might match the return type of a GCC
25534 builtin and then its argument prototype would still apply. */
25542 return res_init ();
25547 rm -f conftest.$ac_objext conftest$ac_exeext
25548 if { (ac_try="$ac_link"
25549 case "(($ac_try" in
25550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25551 *) ac_try_echo=$ac_try;;
25553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25554 $as_echo "$ac_try_echo") >&5
25555 (eval "$ac_link") 2>conftest.er1
25557 grep -v '^ *+' conftest.er1 >conftest.err
25559 cat conftest.err >&5
25560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25561 (exit $ac_status); } && {
25562 test -z "$ac_c_werror_flag" ||
25563 test ! -s conftest.err
25564 } && test -s conftest$ac_exeext && {
25565 test "$cross_compiling" = yes ||
25566 $as_test_x conftest$ac_exeext
25568 ac_cv_lib_resolv_res_init=yes
25570 $as_echo "$as_me: failed program was:" >&5
25571 sed 's/^/| /' conftest.$ac_ext >&5
25573 ac_cv_lib_resolv_res_init=no
25576 rm -rf conftest.dSYM
25577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25578 conftest$ac_exeext conftest.$ac_ext
25579 LIBS=$ac_check_lib_save_LIBS
25581 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_init" >&5
25582 $as_echo "$ac_cv_lib_resolv_res_init" >&6; }
25583 if test "x$ac_cv_lib_resolv_res_init" = x""yes; then
25584 cat >>confdefs.h <<_ACEOF
25585 #define HAVE_LIBRESOLV 1
25588 LIBS="-lresolv $LIBS"
25593 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
25594 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
25595 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
25596 $as_echo_n "(cached) " >&6
25598 ac_check_lib_save_LIBS=$LIBS
25600 cat >conftest.$ac_ext <<_ACEOF
25603 cat confdefs.h >>conftest.$ac_ext
25604 cat >>conftest.$ac_ext <<_ACEOF
25605 /* end confdefs.h. */
25607 /* Override any GCC internal prototype to avoid an error.
25608 Use char because int might match the return type of a GCC
25609 builtin and then its argument prototype would still apply. */
25613 char gethostbyname ();
25617 return gethostbyname ();
25622 rm -f conftest.$ac_objext conftest$ac_exeext
25623 if { (ac_try="$ac_link"
25624 case "(($ac_try" in
25625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25626 *) ac_try_echo=$ac_try;;
25628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25629 $as_echo "$ac_try_echo") >&5
25630 (eval "$ac_link") 2>conftest.er1
25632 grep -v '^ *+' conftest.er1 >conftest.err
25634 cat conftest.err >&5
25635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25636 (exit $ac_status); } && {
25637 test -z "$ac_c_werror_flag" ||
25638 test ! -s conftest.err
25639 } && test -s conftest$ac_exeext && {
25640 test "$cross_compiling" = yes ||
25641 $as_test_x conftest$ac_exeext
25643 ac_cv_lib_nsl_gethostbyname=yes
25645 $as_echo "$as_me: failed program was:" >&5
25646 sed 's/^/| /' conftest.$ac_ext >&5
25648 ac_cv_lib_nsl_gethostbyname=no
25651 rm -rf conftest.dSYM
25652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25653 conftest$ac_exeext conftest.$ac_ext
25654 LIBS=$ac_check_lib_save_LIBS
25656 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
25657 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
25658 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
25659 cat >>confdefs.h <<_ACEOF
25660 #define HAVE_LIBNSL 1
25667 { $as_echo "$as_me:$LINENO: checking for library containing gethostname" >&5
25668 $as_echo_n "checking for library containing gethostname... " >&6; }
25669 if test "${ac_cv_search_gethostname+set}" = set; then
25670 $as_echo_n "(cached) " >&6
25672 ac_func_search_save_LIBS=$LIBS
25673 cat >conftest.$ac_ext <<_ACEOF
25676 cat confdefs.h >>conftest.$ac_ext
25677 cat >>conftest.$ac_ext <<_ACEOF
25678 /* end confdefs.h. */
25680 /* Override any GCC internal prototype to avoid an error.
25681 Use char because int might match the return type of a GCC
25682 builtin and then its argument prototype would still apply. */
25686 char gethostname ();
25690 return gethostname ();
25695 for ac_lib in '' nsl; do
25696 if test -z "$ac_lib"; then
25697 ac_res="none required"
25700 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25702 rm -f conftest.$ac_objext conftest$ac_exeext
25703 if { (ac_try="$ac_link"
25704 case "(($ac_try" in
25705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25706 *) ac_try_echo=$ac_try;;
25708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25709 $as_echo "$ac_try_echo") >&5
25710 (eval "$ac_link") 2>conftest.er1
25712 grep -v '^ *+' conftest.er1 >conftest.err
25714 cat conftest.err >&5
25715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25716 (exit $ac_status); } && {
25717 test -z "$ac_c_werror_flag" ||
25718 test ! -s conftest.err
25719 } && test -s conftest$ac_exeext && {
25720 test "$cross_compiling" = yes ||
25721 $as_test_x conftest$ac_exeext
25723 ac_cv_search_gethostname=$ac_res
25725 $as_echo "$as_me: failed program was:" >&5
25726 sed 's/^/| /' conftest.$ac_ext >&5
25731 rm -rf conftest.dSYM
25732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25734 if test "${ac_cv_search_gethostname+set}" = set; then
25738 if test "${ac_cv_search_gethostname+set}" = set; then
25741 ac_cv_search_gethostname=no
25743 rm conftest.$ac_ext
25744 LIBS=$ac_func_search_save_LIBS
25746 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostname" >&5
25747 $as_echo "$ac_cv_search_gethostname" >&6; }
25748 ac_res=$ac_cv_search_gethostname
25749 if test "$ac_res" != no; then
25750 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25755 { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
25756 $as_echo_n "checking for socket in -lsocket... " >&6; }
25757 if test "${ac_cv_lib_socket_socket+set}" = set; then
25758 $as_echo_n "(cached) " >&6
25760 ac_check_lib_save_LIBS=$LIBS
25761 LIBS="-lsocket $LIBS"
25762 cat >conftest.$ac_ext <<_ACEOF
25765 cat confdefs.h >>conftest.$ac_ext
25766 cat >>conftest.$ac_ext <<_ACEOF
25767 /* end confdefs.h. */
25769 /* Override any GCC internal prototype to avoid an error.
25770 Use char because int might match the return type of a GCC
25771 builtin and then its argument prototype would still apply. */
25784 rm -f conftest.$ac_objext conftest$ac_exeext
25785 if { (ac_try="$ac_link"
25786 case "(($ac_try" in
25787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25788 *) ac_try_echo=$ac_try;;
25790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25791 $as_echo "$ac_try_echo") >&5
25792 (eval "$ac_link") 2>conftest.er1
25794 grep -v '^ *+' conftest.er1 >conftest.err
25796 cat conftest.err >&5
25797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25798 (exit $ac_status); } && {
25799 test -z "$ac_c_werror_flag" ||
25800 test ! -s conftest.err
25801 } && test -s conftest$ac_exeext && {
25802 test "$cross_compiling" = yes ||
25803 $as_test_x conftest$ac_exeext
25805 ac_cv_lib_socket_socket=yes
25807 $as_echo "$as_me: failed program was:" >&5
25808 sed 's/^/| /' conftest.$ac_ext >&5
25810 ac_cv_lib_socket_socket=no
25813 rm -rf conftest.dSYM
25814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25815 conftest$ac_exeext conftest.$ac_ext
25816 LIBS=$ac_check_lib_save_LIBS
25818 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
25819 $as_echo "$ac_cv_lib_socket_socket" >&6; }
25820 if test "x$ac_cv_lib_socket_socket" = x""yes; then
25821 cat >>confdefs.h <<_ACEOF
25822 #define HAVE_LIBSOCKET 1
25825 LIBS="-lsocket $LIBS"
25829 { $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
25830 $as_echo_n "checking for library containing crypt... " >&6; }
25831 if test "${ac_cv_search_crypt+set}" = set; then
25832 $as_echo_n "(cached) " >&6
25834 ac_func_search_save_LIBS=$LIBS
25835 cat >conftest.$ac_ext <<_ACEOF
25838 cat confdefs.h >>conftest.$ac_ext
25839 cat >>conftest.$ac_ext <<_ACEOF
25840 /* end confdefs.h. */
25842 /* Override any GCC internal prototype to avoid an error.
25843 Use char because int might match the return type of a GCC
25844 builtin and then its argument prototype would still apply. */
25857 for ac_lib in '' crypt ufc; do
25858 if test -z "$ac_lib"; then
25859 ac_res="none required"
25862 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25864 rm -f conftest.$ac_objext conftest$ac_exeext
25865 if { (ac_try="$ac_link"
25866 case "(($ac_try" in
25867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25868 *) ac_try_echo=$ac_try;;
25870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25871 $as_echo "$ac_try_echo") >&5
25872 (eval "$ac_link") 2>conftest.er1
25874 grep -v '^ *+' conftest.er1 >conftest.err
25876 cat conftest.err >&5
25877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25878 (exit $ac_status); } && {
25879 test -z "$ac_c_werror_flag" ||
25880 test ! -s conftest.err
25881 } && test -s conftest$ac_exeext && {
25882 test "$cross_compiling" = yes ||
25883 $as_test_x conftest$ac_exeext
25885 ac_cv_search_crypt=$ac_res
25887 $as_echo "$as_me: failed program was:" >&5
25888 sed 's/^/| /' conftest.$ac_ext >&5
25893 rm -rf conftest.dSYM
25894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25896 if test "${ac_cv_search_crypt+set}" = set; then
25900 if test "${ac_cv_search_crypt+set}" = set; then
25903 ac_cv_search_crypt=no
25905 rm conftest.$ac_ext
25906 LIBS=$ac_func_search_save_LIBS
25908 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
25909 $as_echo "$ac_cv_search_crypt" >&6; }
25910 ac_res=$ac_cv_search_crypt
25911 if test "$ac_res" != no; then
25912 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25917 { $as_echo "$as_me:$LINENO: checking for main in -ltruerand" >&5
25918 $as_echo_n "checking for main in -ltruerand... " >&6; }
25919 if test "${ac_cv_lib_truerand_main+set}" = set; then
25920 $as_echo_n "(cached) " >&6
25922 ac_check_lib_save_LIBS=$LIBS
25923 LIBS="-ltruerand $LIBS"
25924 cat >conftest.$ac_ext <<_ACEOF
25927 cat confdefs.h >>conftest.$ac_ext
25928 cat >>conftest.$ac_ext <<_ACEOF
25929 /* end confdefs.h. */
25940 rm -f conftest.$ac_objext conftest$ac_exeext
25941 if { (ac_try="$ac_link"
25942 case "(($ac_try" in
25943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25944 *) ac_try_echo=$ac_try;;
25946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25947 $as_echo "$ac_try_echo") >&5
25948 (eval "$ac_link") 2>conftest.er1
25950 grep -v '^ *+' conftest.er1 >conftest.err
25952 cat conftest.err >&5
25953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25954 (exit $ac_status); } && {
25955 test -z "$ac_c_werror_flag" ||
25956 test ! -s conftest.err
25957 } && test -s conftest$ac_exeext && {
25958 test "$cross_compiling" = yes ||
25959 $as_test_x conftest$ac_exeext
25961 ac_cv_lib_truerand_main=yes
25963 $as_echo "$as_me: failed program was:" >&5
25964 sed 's/^/| /' conftest.$ac_ext >&5
25966 ac_cv_lib_truerand_main=no
25969 rm -rf conftest.dSYM
25970 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25971 conftest$ac_exeext conftest.$ac_ext
25972 LIBS=$ac_check_lib_save_LIBS
25974 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_truerand_main" >&5
25975 $as_echo "$ac_cv_lib_truerand_main" >&6; }
25976 if test "x$ac_cv_lib_truerand_main" = x""yes; then
25977 cat >>confdefs.h <<_ACEOF
25978 #define HAVE_LIBTRUERAND 1
25981 LIBS="-ltruerand $LIBS"
25985 { $as_echo "$as_me:$LINENO: checking for library containing modf" >&5
25986 $as_echo_n "checking for library containing modf... " >&6; }
25987 if test "${ac_cv_search_modf+set}" = set; then
25988 $as_echo_n "(cached) " >&6
25990 ac_func_search_save_LIBS=$LIBS
25991 cat >conftest.$ac_ext <<_ACEOF
25994 cat confdefs.h >>conftest.$ac_ext
25995 cat >>conftest.$ac_ext <<_ACEOF
25996 /* end confdefs.h. */
25998 /* Override any GCC internal prototype to avoid an error.
25999 Use char because int might match the return type of a GCC
26000 builtin and then its argument prototype would still apply. */
26013 for ac_lib in '' m; do
26014 if test -z "$ac_lib"; then
26015 ac_res="none required"
26018 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26020 rm -f conftest.$ac_objext conftest$ac_exeext
26021 if { (ac_try="$ac_link"
26022 case "(($ac_try" in
26023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26024 *) ac_try_echo=$ac_try;;
26026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26027 $as_echo "$ac_try_echo") >&5
26028 (eval "$ac_link") 2>conftest.er1
26030 grep -v '^ *+' conftest.er1 >conftest.err
26032 cat conftest.err >&5
26033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26034 (exit $ac_status); } && {
26035 test -z "$ac_c_werror_flag" ||
26036 test ! -s conftest.err
26037 } && test -s conftest$ac_exeext && {
26038 test "$cross_compiling" = yes ||
26039 $as_test_x conftest$ac_exeext
26041 ac_cv_search_modf=$ac_res
26043 $as_echo "$as_me: failed program was:" >&5
26044 sed 's/^/| /' conftest.$ac_ext >&5
26049 rm -rf conftest.dSYM
26050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26052 if test "${ac_cv_search_modf+set}" = set; then
26056 if test "${ac_cv_search_modf+set}" = set; then
26059 ac_cv_search_modf=no
26061 rm conftest.$ac_ext
26062 LIBS=$ac_func_search_save_LIBS
26064 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_modf" >&5
26065 $as_echo "$ac_cv_search_modf" >&6; }
26066 ac_res=$ac_cv_search_modf
26067 if test "$ac_res" != no; then
26068 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26072 { $as_echo "$as_me:$LINENO: checking for library containing sqrt" >&5
26073 $as_echo_n "checking for library containing sqrt... " >&6; }
26074 if test "${ac_cv_search_sqrt+set}" = set; then
26075 $as_echo_n "(cached) " >&6
26077 ac_func_search_save_LIBS=$LIBS
26078 cat >conftest.$ac_ext <<_ACEOF
26081 cat confdefs.h >>conftest.$ac_ext
26082 cat >>conftest.$ac_ext <<_ACEOF
26083 /* end confdefs.h. */
26085 /* Override any GCC internal prototype to avoid an error.
26086 Use char because int might match the return type of a GCC
26087 builtin and then its argument prototype would still apply. */
26100 for ac_lib in '' m; do
26101 if test -z "$ac_lib"; then
26102 ac_res="none required"
26105 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26107 rm -f conftest.$ac_objext conftest$ac_exeext
26108 if { (ac_try="$ac_link"
26109 case "(($ac_try" in
26110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26111 *) ac_try_echo=$ac_try;;
26113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26114 $as_echo "$ac_try_echo") >&5
26115 (eval "$ac_link") 2>conftest.er1
26117 grep -v '^ *+' conftest.er1 >conftest.err
26119 cat conftest.err >&5
26120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26121 (exit $ac_status); } && {
26122 test -z "$ac_c_werror_flag" ||
26123 test ! -s conftest.err
26124 } && test -s conftest$ac_exeext && {
26125 test "$cross_compiling" = yes ||
26126 $as_test_x conftest$ac_exeext
26128 ac_cv_search_sqrt=$ac_res
26130 $as_echo "$as_me: failed program was:" >&5
26131 sed 's/^/| /' conftest.$ac_ext >&5
26136 rm -rf conftest.dSYM
26137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26139 if test "${ac_cv_search_sqrt+set}" = set; then
26143 if test "${ac_cv_search_sqrt+set}" = set; then
26146 ac_cv_search_sqrt=no
26148 rm conftest.$ac_ext
26149 LIBS=$ac_func_search_save_LIBS
26151 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_sqrt" >&5
26152 $as_echo "$ac_cv_search_sqrt" >&6; }
26153 ac_res=$ac_cv_search_sqrt
26154 if test "$ac_res" != no; then
26155 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26160 echo "${nl}Checking for Threads..."
26162 if test -z "$enable_threads"; then
26163 # Check whether --enable-threads was given.
26164 if test "${enable_threads+set}" = set; then
26165 enableval=$enable_threads; enable_threads=$enableval
26168 if test "$GCC" = "yes"; then
26169 SAVE_FL="$CPPFLAGS"
26170 CPPFLAGS="$CPPFLAGS -w"
26172 for ac_header in pthread.h
26174 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26176 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26177 $as_echo_n "checking for $ac_header... " >&6; }
26178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26179 $as_echo_n "(cached) " >&6
26181 ac_res=`eval 'as_val=${'$as_ac_Header'}
26182 $as_echo "$as_val"'`
26183 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26184 $as_echo "$ac_res" >&6; }
26186 # Is the header compilable?
26187 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
26188 $as_echo_n "checking $ac_header usability... " >&6; }
26189 cat >conftest.$ac_ext <<_ACEOF
26192 cat confdefs.h >>conftest.$ac_ext
26193 cat >>conftest.$ac_ext <<_ACEOF
26194 /* end confdefs.h. */
26195 $ac_includes_default
26196 #include <$ac_header>
26198 rm -f conftest.$ac_objext
26199 if { (ac_try="$ac_compile"
26200 case "(($ac_try" in
26201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26202 *) ac_try_echo=$ac_try;;
26204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26205 $as_echo "$ac_try_echo") >&5
26206 (eval "$ac_compile") 2>conftest.er1
26208 grep -v '^ *+' conftest.er1 >conftest.err
26210 cat conftest.err >&5
26211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26212 (exit $ac_status); } && {
26213 test -z "$ac_c_werror_flag" ||
26214 test ! -s conftest.err
26215 } && test -s conftest.$ac_objext; then
26216 ac_header_compiler=yes
26218 $as_echo "$as_me: failed program was:" >&5
26219 sed 's/^/| /' conftest.$ac_ext >&5
26221 ac_header_compiler=no
26224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26225 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26226 $as_echo "$ac_header_compiler" >&6; }
26228 # Is the header present?
26229 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
26230 $as_echo_n "checking $ac_header presence... " >&6; }
26231 cat >conftest.$ac_ext <<_ACEOF
26234 cat confdefs.h >>conftest.$ac_ext
26235 cat >>conftest.$ac_ext <<_ACEOF
26236 /* end confdefs.h. */
26237 #include <$ac_header>
26239 if { (ac_try="$ac_cpp conftest.$ac_ext"
26240 case "(($ac_try" in
26241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26242 *) ac_try_echo=$ac_try;;
26244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26245 $as_echo "$ac_try_echo") >&5
26246 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26248 grep -v '^ *+' conftest.er1 >conftest.err
26250 cat conftest.err >&5
26251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26252 (exit $ac_status); } >/dev/null && {
26253 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26254 test ! -s conftest.err
26256 ac_header_preproc=yes
26258 $as_echo "$as_me: failed program was:" >&5
26259 sed 's/^/| /' conftest.$ac_ext >&5
26261 ac_header_preproc=no
26264 rm -f conftest.err conftest.$ac_ext
26265 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26266 $as_echo "$ac_header_preproc" >&6; }
26268 # So? What about this header?
26269 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26271 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26272 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26273 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26274 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26275 ac_header_preproc=yes
26278 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26279 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26280 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26281 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26282 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26283 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26284 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26285 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26286 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26287 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26288 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26289 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26293 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26294 $as_echo_n "checking for $ac_header... " >&6; }
26295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26296 $as_echo_n "(cached) " >&6
26298 eval "$as_ac_Header=\$ac_header_preproc"
26300 ac_res=`eval 'as_val=${'$as_ac_Header'}
26301 $as_echo "$as_val"'`
26302 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26303 $as_echo "$ac_res" >&6; }
26306 as_val=`eval 'as_val=${'$as_ac_Header'}
26307 $as_echo "$as_val"'`
26308 if test "x$as_val" = x""yes; then
26309 cat >>confdefs.h <<_ACEOF
26310 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26312 enable_threads="pthread"
26314 enable_threads="no"
26319 CPPFLAGS="$SAVE_FL"
26322 for ac_header in pthread.h
26324 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26326 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26327 $as_echo_n "checking for $ac_header... " >&6; }
26328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26329 $as_echo_n "(cached) " >&6
26331 ac_res=`eval 'as_val=${'$as_ac_Header'}
26332 $as_echo "$as_val"'`
26333 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26334 $as_echo "$ac_res" >&6; }
26336 # Is the header compilable?
26337 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
26338 $as_echo_n "checking $ac_header usability... " >&6; }
26339 cat >conftest.$ac_ext <<_ACEOF
26342 cat confdefs.h >>conftest.$ac_ext
26343 cat >>conftest.$ac_ext <<_ACEOF
26344 /* end confdefs.h. */
26345 $ac_includes_default
26346 #include <$ac_header>
26348 rm -f conftest.$ac_objext
26349 if { (ac_try="$ac_compile"
26350 case "(($ac_try" in
26351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26352 *) ac_try_echo=$ac_try;;
26354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26355 $as_echo "$ac_try_echo") >&5
26356 (eval "$ac_compile") 2>conftest.er1
26358 grep -v '^ *+' conftest.er1 >conftest.err
26360 cat conftest.err >&5
26361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26362 (exit $ac_status); } && {
26363 test -z "$ac_c_werror_flag" ||
26364 test ! -s conftest.err
26365 } && test -s conftest.$ac_objext; then
26366 ac_header_compiler=yes
26368 $as_echo "$as_me: failed program was:" >&5
26369 sed 's/^/| /' conftest.$ac_ext >&5
26371 ac_header_compiler=no
26374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26375 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26376 $as_echo "$ac_header_compiler" >&6; }
26378 # Is the header present?
26379 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
26380 $as_echo_n "checking $ac_header presence... " >&6; }
26381 cat >conftest.$ac_ext <<_ACEOF
26384 cat confdefs.h >>conftest.$ac_ext
26385 cat >>conftest.$ac_ext <<_ACEOF
26386 /* end confdefs.h. */
26387 #include <$ac_header>
26389 if { (ac_try="$ac_cpp conftest.$ac_ext"
26390 case "(($ac_try" in
26391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26392 *) ac_try_echo=$ac_try;;
26394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26395 $as_echo "$ac_try_echo") >&5
26396 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26398 grep -v '^ *+' conftest.er1 >conftest.err
26400 cat conftest.err >&5
26401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26402 (exit $ac_status); } >/dev/null && {
26403 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26404 test ! -s conftest.err
26406 ac_header_preproc=yes
26408 $as_echo "$as_me: failed program was:" >&5
26409 sed 's/^/| /' conftest.$ac_ext >&5
26411 ac_header_preproc=no
26414 rm -f conftest.err conftest.$ac_ext
26415 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26416 $as_echo "$ac_header_preproc" >&6; }
26418 # So? What about this header?
26419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26421 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26422 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26423 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26424 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26425 ac_header_preproc=yes
26428 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26429 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26430 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26431 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26432 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26433 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26434 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26435 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26436 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26437 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26438 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26439 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26443 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26444 $as_echo_n "checking for $ac_header... " >&6; }
26445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26446 $as_echo_n "(cached) " >&6
26448 eval "$as_ac_Header=\$ac_header_preproc"
26450 ac_res=`eval 'as_val=${'$as_ac_Header'}
26451 $as_echo "$as_val"'`
26452 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26453 $as_echo "$ac_res" >&6; }
26456 as_val=`eval 'as_val=${'$as_ac_Header'}
26457 $as_echo "$as_val"'`
26458 if test "x$as_val" = x""yes; then
26459 cat >>confdefs.h <<_ACEOF
26460 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26462 enable_threads="pthread"
26464 enable_threads="no"
26475 if test "$enable_threads" = "no"; then
26480 if test "$enable_threads" = "pthread"; then
26481 # We have specified pthreads for our threading library, just make sure
26482 # that we have everything we need
26484 apr_pthsv_CFLAGS="$CFLAGS"
26485 apr_pthsv_LIBS="$LIBS"
26489 { $as_echo "$as_me:$LINENO: checking for CFLAGS needed for pthreads" >&5
26490 $as_echo_n "checking for CFLAGS needed for pthreads... " >&6; }
26491 if test "${apr_cv_pthreads_cflags+set}" = set; then
26492 $as_echo_n "(cached) " >&6
26494 apr_ptc_cflags=$CFLAGS
26495 for flag in none -kthread -pthread -pthreads -mt -mthreads -Kthread -threads; do
26496 CFLAGS=$apr_ptc_cflags
26497 test "x$flag" != "xnone" && CFLAGS="$CFLAGS $flag"
26499 if test "$cross_compiling" = yes; then
26502 cat >conftest.$ac_ext <<_ACEOF
26505 cat confdefs.h >>conftest.$ac_ext
26506 cat >>conftest.$ac_ext <<_ACEOF
26507 /* end confdefs.h. */
26509 #include <pthread.h>
26510 #include <stddef.h>
26512 void *thread_routine(void *data) {
26518 pthread_mutexattr_t mattr;
26519 pthread_once_t once_init = PTHREAD_ONCE_INIT;
26521 pthread_mutexattr_init(&mattr);
26522 return pthread_create(&thd, NULL, thread_routine, &data);
26525 rm -f conftest$ac_exeext
26526 if { (ac_try="$ac_link"
26527 case "(($ac_try" in
26528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26529 *) ac_try_echo=$ac_try;;
26531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26532 $as_echo "$ac_try_echo") >&5
26533 (eval "$ac_link") 2>&5
26535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26536 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26537 { (case "(($ac_try" in
26538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26539 *) ac_try_echo=$ac_try;;
26541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26542 $as_echo "$ac_try_echo") >&5
26543 (eval "$ac_try") 2>&5
26545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26546 (exit $ac_status); }; }; then
26549 $as_echo "$as_me: program exited with status $ac_status" >&5
26550 $as_echo "$as_me: failed program was:" >&5
26551 sed 's/^/| /' conftest.$ac_ext >&5
26553 ( exit $ac_status )
26556 rm -rf conftest.dSYM
26557 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26562 if test $apr_p_t_r = yes; then
26564 apr_cv_pthreads_cflags="$flag"
26571 CFLAGS=$apr_ptc_cflags
26574 { $as_echo "$as_me:$LINENO: result: $apr_cv_pthreads_cflags" >&5
26575 $as_echo "$apr_cv_pthreads_cflags" >&6; }
26577 if test -n "$apr_cv_pthreads_cflags"; then
26578 pthreads_working=yes
26579 if test "x$apr_cv_pthreads_cflags" != "xnone"; then
26581 if test "x$CFLAGS" = "x"; then
26582 echo " setting CFLAGS to \"$apr_cv_pthreads_cflags\""
26583 CFLAGS="$apr_cv_pthreads_cflags"
26585 apr_addto_bugger="$apr_cv_pthreads_cflags"
26586 for i in $apr_addto_bugger; do
26587 apr_addto_duplicate="0"
26588 for j in $CFLAGS; do
26589 if test "x$i" = "x$j"; then
26590 apr_addto_duplicate="1"
26594 if test $apr_addto_duplicate = "0"; then
26595 echo " adding \"$i\" to CFLAGS"
26596 CFLAGS="$CFLAGS $i"
26604 # The CFLAGS may or may not be sufficient to ensure that libapr
26605 # depends on the pthreads library: some versions of libtool
26606 # drop -pthread when passed on the link line; some versions of
26607 # gcc ignore -pthread when linking a shared object. So always
26608 # try and add the relevant library to LIBS too.
26610 { $as_echo "$as_me:$LINENO: checking for LIBS needed for pthreads" >&5
26611 $as_echo_n "checking for LIBS needed for pthreads... " >&6; }
26612 if test "${apr_cv_pthreads_lib+set}" = set; then
26613 $as_echo_n "(cached) " >&6
26617 for lib in -lpthread -lpthreads -lc_r; do
26618 LIBS="$apr_ptc_libs $lib"
26620 if test "$cross_compiling" = yes; then
26623 cat >conftest.$ac_ext <<_ACEOF
26626 cat confdefs.h >>conftest.$ac_ext
26627 cat >>conftest.$ac_ext <<_ACEOF
26628 /* end confdefs.h. */
26630 #include <pthread.h>
26631 #include <stddef.h>
26633 void *thread_routine(void *data) {
26639 pthread_mutexattr_t mattr;
26640 pthread_once_t once_init = PTHREAD_ONCE_INIT;
26642 pthread_mutexattr_init(&mattr);
26643 return pthread_create(&thd, NULL, thread_routine, &data);
26646 rm -f conftest$ac_exeext
26647 if { (ac_try="$ac_link"
26648 case "(($ac_try" in
26649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26650 *) ac_try_echo=$ac_try;;
26652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26653 $as_echo "$ac_try_echo") >&5
26654 (eval "$ac_link") 2>&5
26656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26657 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26658 { (case "(($ac_try" in
26659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26660 *) ac_try_echo=$ac_try;;
26662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26663 $as_echo "$ac_try_echo") >&5
26664 (eval "$ac_try") 2>&5
26666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26667 (exit $ac_status); }; }; then
26670 $as_echo "$as_me: program exited with status $ac_status" >&5
26671 $as_echo "$as_me: failed program was:" >&5
26672 sed 's/^/| /' conftest.$ac_ext >&5
26674 ( exit $ac_status )
26677 rm -rf conftest.dSYM
26678 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26683 if test $apr_p_t_r = yes; then
26685 apr_cv_pthreads_lib=$lib
26695 { $as_echo "$as_me:$LINENO: result: $apr_cv_pthreads_lib" >&5
26696 $as_echo "$apr_cv_pthreads_lib" >&6; }
26698 if test -n "$apr_cv_pthreads_lib"; then
26699 pthreads_working=yes
26701 if test "x$LIBS" = "x"; then
26702 echo " setting LIBS to \"$apr_cv_pthreads_lib\""
26703 LIBS="$apr_cv_pthreads_lib"
26705 apr_addto_bugger="$apr_cv_pthreads_lib"
26706 for i in $apr_addto_bugger; do
26707 apr_addto_duplicate="0"
26709 if test "x$i" = "x$j"; then
26710 apr_addto_duplicate="1"
26714 if test $apr_addto_duplicate = "0"; then
26715 echo " adding \"$i\" to LIBS"
26723 if test "$pthreads_working" = "yes"; then
26724 threads_result="POSIX Threads found"
26726 threads_result="POSIX Threads not found"
26730 if test "$GCC" = "yes"; then
26731 SAVE_FL="$CPPFLAGS"
26732 CPPFLAGS="$CPPFLAGS -w"
26734 for ac_header in pthread.h
26736 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26738 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26739 $as_echo_n "checking for $ac_header... " >&6; }
26740 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26741 $as_echo_n "(cached) " >&6
26743 ac_res=`eval 'as_val=${'$as_ac_Header'}
26744 $as_echo "$as_val"'`
26745 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26746 $as_echo "$ac_res" >&6; }
26748 # Is the header compilable?
26749 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
26750 $as_echo_n "checking $ac_header usability... " >&6; }
26751 cat >conftest.$ac_ext <<_ACEOF
26754 cat confdefs.h >>conftest.$ac_ext
26755 cat >>conftest.$ac_ext <<_ACEOF
26756 /* end confdefs.h. */
26757 $ac_includes_default
26758 #include <$ac_header>
26760 rm -f conftest.$ac_objext
26761 if { (ac_try="$ac_compile"
26762 case "(($ac_try" in
26763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26764 *) ac_try_echo=$ac_try;;
26766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26767 $as_echo "$ac_try_echo") >&5
26768 (eval "$ac_compile") 2>conftest.er1
26770 grep -v '^ *+' conftest.er1 >conftest.err
26772 cat conftest.err >&5
26773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26774 (exit $ac_status); } && {
26775 test -z "$ac_c_werror_flag" ||
26776 test ! -s conftest.err
26777 } && test -s conftest.$ac_objext; then
26778 ac_header_compiler=yes
26780 $as_echo "$as_me: failed program was:" >&5
26781 sed 's/^/| /' conftest.$ac_ext >&5
26783 ac_header_compiler=no
26786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26787 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26788 $as_echo "$ac_header_compiler" >&6; }
26790 # Is the header present?
26791 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
26792 $as_echo_n "checking $ac_header presence... " >&6; }
26793 cat >conftest.$ac_ext <<_ACEOF
26796 cat confdefs.h >>conftest.$ac_ext
26797 cat >>conftest.$ac_ext <<_ACEOF
26798 /* end confdefs.h. */
26799 #include <$ac_header>
26801 if { (ac_try="$ac_cpp conftest.$ac_ext"
26802 case "(($ac_try" in
26803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26804 *) ac_try_echo=$ac_try;;
26806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26807 $as_echo "$ac_try_echo") >&5
26808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26810 grep -v '^ *+' conftest.er1 >conftest.err
26812 cat conftest.err >&5
26813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26814 (exit $ac_status); } >/dev/null && {
26815 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26816 test ! -s conftest.err
26818 ac_header_preproc=yes
26820 $as_echo "$as_me: failed program was:" >&5
26821 sed 's/^/| /' conftest.$ac_ext >&5
26823 ac_header_preproc=no
26826 rm -f conftest.err conftest.$ac_ext
26827 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26828 $as_echo "$ac_header_preproc" >&6; }
26830 # So? What about this header?
26831 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26833 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26834 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26835 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26836 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26837 ac_header_preproc=yes
26840 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26841 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26842 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26843 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26844 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26845 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26846 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26847 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26848 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26849 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26850 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26851 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26855 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26856 $as_echo_n "checking for $ac_header... " >&6; }
26857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26858 $as_echo_n "(cached) " >&6
26860 eval "$as_ac_Header=\$ac_header_preproc"
26862 ac_res=`eval 'as_val=${'$as_ac_Header'}
26863 $as_echo "$as_val"'`
26864 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26865 $as_echo "$ac_res" >&6; }
26868 as_val=`eval 'as_val=${'$as_ac_Header'}
26869 $as_echo "$as_val"'`
26870 if test "x$as_val" = x""yes; then
26871 cat >>confdefs.h <<_ACEOF
26872 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26879 cat >>confdefs.h <<\_ACEOF
26880 #define USE_THREADS 1
26889 CFLAGS="$apr_pthsv_CFLAGS"
26890 LIBS="$apr_pthsv_LIBS"
26896 CPPFLAGS="$SAVE_FL"
26899 for ac_header in pthread.h
26901 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26903 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26904 $as_echo_n "checking for $ac_header... " >&6; }
26905 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26906 $as_echo_n "(cached) " >&6
26908 ac_res=`eval 'as_val=${'$as_ac_Header'}
26909 $as_echo "$as_val"'`
26910 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26911 $as_echo "$ac_res" >&6; }
26913 # Is the header compilable?
26914 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
26915 $as_echo_n "checking $ac_header usability... " >&6; }
26916 cat >conftest.$ac_ext <<_ACEOF
26919 cat confdefs.h >>conftest.$ac_ext
26920 cat >>conftest.$ac_ext <<_ACEOF
26921 /* end confdefs.h. */
26922 $ac_includes_default
26923 #include <$ac_header>
26925 rm -f conftest.$ac_objext
26926 if { (ac_try="$ac_compile"
26927 case "(($ac_try" in
26928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26929 *) ac_try_echo=$ac_try;;
26931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26932 $as_echo "$ac_try_echo") >&5
26933 (eval "$ac_compile") 2>conftest.er1
26935 grep -v '^ *+' conftest.er1 >conftest.err
26937 cat conftest.err >&5
26938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26939 (exit $ac_status); } && {
26940 test -z "$ac_c_werror_flag" ||
26941 test ! -s conftest.err
26942 } && test -s conftest.$ac_objext; then
26943 ac_header_compiler=yes
26945 $as_echo "$as_me: failed program was:" >&5
26946 sed 's/^/| /' conftest.$ac_ext >&5
26948 ac_header_compiler=no
26951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26952 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26953 $as_echo "$ac_header_compiler" >&6; }
26955 # Is the header present?
26956 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
26957 $as_echo_n "checking $ac_header presence... " >&6; }
26958 cat >conftest.$ac_ext <<_ACEOF
26961 cat confdefs.h >>conftest.$ac_ext
26962 cat >>conftest.$ac_ext <<_ACEOF
26963 /* end confdefs.h. */
26964 #include <$ac_header>
26966 if { (ac_try="$ac_cpp conftest.$ac_ext"
26967 case "(($ac_try" in
26968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26969 *) ac_try_echo=$ac_try;;
26971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26972 $as_echo "$ac_try_echo") >&5
26973 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26975 grep -v '^ *+' conftest.er1 >conftest.err
26977 cat conftest.err >&5
26978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26979 (exit $ac_status); } >/dev/null && {
26980 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26981 test ! -s conftest.err
26983 ac_header_preproc=yes
26985 $as_echo "$as_me: failed program was:" >&5
26986 sed 's/^/| /' conftest.$ac_ext >&5
26988 ac_header_preproc=no
26991 rm -f conftest.err conftest.$ac_ext
26992 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26993 $as_echo "$ac_header_preproc" >&6; }
26995 # So? What about this header?
26996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26998 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26999 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27000 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27001 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27002 ac_header_preproc=yes
27005 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27006 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27007 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27008 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27009 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27010 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27011 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27012 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27013 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27014 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27015 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27016 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27020 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
27021 $as_echo_n "checking for $ac_header... " >&6; }
27022 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27023 $as_echo_n "(cached) " >&6
27025 eval "$as_ac_Header=\$ac_header_preproc"
27027 ac_res=`eval 'as_val=${'$as_ac_Header'}
27028 $as_echo "$as_val"'`
27029 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27030 $as_echo "$ac_res" >&6; }
27033 as_val=`eval 'as_val=${'$as_ac_Header'}
27034 $as_echo "$as_val"'`
27035 if test "x$as_val" = x""yes; then
27036 cat >>confdefs.h <<_ACEOF
27037 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27044 cat >>confdefs.h <<\_ACEOF
27045 #define USE_THREADS 1
27054 CFLAGS="$apr_pthsv_CFLAGS"
27055 LIBS="$apr_pthsv_LIBS"
27063 elif test "$enable_threads" = "system_threads"; then
27068 # We basically specified that we wanted threads, but not how to implement
27069 # them. In this case, just look for pthreads. In the future, we can check
27070 # for other threading libraries as well.
27072 apr_pthsv_CFLAGS="$CFLAGS"
27073 apr_pthsv_LIBS="$LIBS"
27077 { $as_echo "$as_me:$LINENO: checking for CFLAGS needed for pthreads" >&5
27078 $as_echo_n "checking for CFLAGS needed for pthreads... " >&6; }
27079 if test "${apr_cv_pthreads_cflags+set}" = set; then
27080 $as_echo_n "(cached) " >&6
27082 apr_ptc_cflags=$CFLAGS
27083 for flag in none -kthread -pthread -pthreads -mt -mthreads -Kthread -threads; do
27084 CFLAGS=$apr_ptc_cflags
27085 test "x$flag" != "xnone" && CFLAGS="$CFLAGS $flag"
27087 if test "$cross_compiling" = yes; then
27090 cat >conftest.$ac_ext <<_ACEOF
27093 cat confdefs.h >>conftest.$ac_ext
27094 cat >>conftest.$ac_ext <<_ACEOF
27095 /* end confdefs.h. */
27097 #include <pthread.h>
27098 #include <stddef.h>
27100 void *thread_routine(void *data) {
27106 pthread_mutexattr_t mattr;
27107 pthread_once_t once_init = PTHREAD_ONCE_INIT;
27109 pthread_mutexattr_init(&mattr);
27110 return pthread_create(&thd, NULL, thread_routine, &data);
27113 rm -f conftest$ac_exeext
27114 if { (ac_try="$ac_link"
27115 case "(($ac_try" in
27116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27117 *) ac_try_echo=$ac_try;;
27119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27120 $as_echo "$ac_try_echo") >&5
27121 (eval "$ac_link") 2>&5
27123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27124 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27125 { (case "(($ac_try" in
27126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27127 *) ac_try_echo=$ac_try;;
27129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27130 $as_echo "$ac_try_echo") >&5
27131 (eval "$ac_try") 2>&5
27133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27134 (exit $ac_status); }; }; then
27137 $as_echo "$as_me: program exited with status $ac_status" >&5
27138 $as_echo "$as_me: failed program was:" >&5
27139 sed 's/^/| /' conftest.$ac_ext >&5
27141 ( exit $ac_status )
27144 rm -rf conftest.dSYM
27145 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27150 if test $apr_p_t_r = yes; then
27152 apr_cv_pthreads_cflags="$flag"
27159 CFLAGS=$apr_ptc_cflags
27162 { $as_echo "$as_me:$LINENO: result: $apr_cv_pthreads_cflags" >&5
27163 $as_echo "$apr_cv_pthreads_cflags" >&6; }
27165 if test -n "$apr_cv_pthreads_cflags"; then
27166 pthreads_working=yes
27167 if test "x$apr_cv_pthreads_cflags" != "xnone"; then
27169 if test "x$CFLAGS" = "x"; then
27170 echo " setting CFLAGS to \"$apr_cv_pthreads_cflags\""
27171 CFLAGS="$apr_cv_pthreads_cflags"
27173 apr_addto_bugger="$apr_cv_pthreads_cflags"
27174 for i in $apr_addto_bugger; do
27175 apr_addto_duplicate="0"
27176 for j in $CFLAGS; do
27177 if test "x$i" = "x$j"; then
27178 apr_addto_duplicate="1"
27182 if test $apr_addto_duplicate = "0"; then
27183 echo " adding \"$i\" to CFLAGS"
27184 CFLAGS="$CFLAGS $i"
27192 # The CFLAGS may or may not be sufficient to ensure that libapr
27193 # depends on the pthreads library: some versions of libtool
27194 # drop -pthread when passed on the link line; some versions of
27195 # gcc ignore -pthread when linking a shared object. So always
27196 # try and add the relevant library to LIBS too.
27198 { $as_echo "$as_me:$LINENO: checking for LIBS needed for pthreads" >&5
27199 $as_echo_n "checking for LIBS needed for pthreads... " >&6; }
27200 if test "${apr_cv_pthreads_lib+set}" = set; then
27201 $as_echo_n "(cached) " >&6
27205 for lib in -lpthread -lpthreads -lc_r; do
27206 LIBS="$apr_ptc_libs $lib"
27208 if test "$cross_compiling" = yes; then
27211 cat >conftest.$ac_ext <<_ACEOF
27214 cat confdefs.h >>conftest.$ac_ext
27215 cat >>conftest.$ac_ext <<_ACEOF
27216 /* end confdefs.h. */
27218 #include <pthread.h>
27219 #include <stddef.h>
27221 void *thread_routine(void *data) {
27227 pthread_mutexattr_t mattr;
27228 pthread_once_t once_init = PTHREAD_ONCE_INIT;
27230 pthread_mutexattr_init(&mattr);
27231 return pthread_create(&thd, NULL, thread_routine, &data);
27234 rm -f conftest$ac_exeext
27235 if { (ac_try="$ac_link"
27236 case "(($ac_try" in
27237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27238 *) ac_try_echo=$ac_try;;
27240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27241 $as_echo "$ac_try_echo") >&5
27242 (eval "$ac_link") 2>&5
27244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27245 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27246 { (case "(($ac_try" in
27247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27248 *) ac_try_echo=$ac_try;;
27250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27251 $as_echo "$ac_try_echo") >&5
27252 (eval "$ac_try") 2>&5
27254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27255 (exit $ac_status); }; }; then
27258 $as_echo "$as_me: program exited with status $ac_status" >&5
27259 $as_echo "$as_me: failed program was:" >&5
27260 sed 's/^/| /' conftest.$ac_ext >&5
27262 ( exit $ac_status )
27265 rm -rf conftest.dSYM
27266 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27271 if test $apr_p_t_r = yes; then
27273 apr_cv_pthreads_lib=$lib
27283 { $as_echo "$as_me:$LINENO: result: $apr_cv_pthreads_lib" >&5
27284 $as_echo "$apr_cv_pthreads_lib" >&6; }
27286 if test -n "$apr_cv_pthreads_lib"; then
27287 pthreads_working=yes
27289 if test "x$LIBS" = "x"; then
27290 echo " setting LIBS to \"$apr_cv_pthreads_lib\""
27291 LIBS="$apr_cv_pthreads_lib"
27293 apr_addto_bugger="$apr_cv_pthreads_lib"
27294 for i in $apr_addto_bugger; do
27295 apr_addto_duplicate="0"
27297 if test "x$i" = "x$j"; then
27298 apr_addto_duplicate="1"
27302 if test $apr_addto_duplicate = "0"; then
27303 echo " adding \"$i\" to LIBS"
27311 if test "$pthreads_working" = "yes"; then
27312 threads_result="POSIX Threads found"
27314 threads_result="POSIX Threads not found"
27318 if test "$GCC" = "yes"; then
27319 SAVE_FL="$CPPFLAGS"
27320 CPPFLAGS="$CPPFLAGS -w"
27322 for ac_header in pthread.h
27324 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27326 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
27327 $as_echo_n "checking for $ac_header... " >&6; }
27328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27329 $as_echo_n "(cached) " >&6
27331 ac_res=`eval 'as_val=${'$as_ac_Header'}
27332 $as_echo "$as_val"'`
27333 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27334 $as_echo "$ac_res" >&6; }
27336 # Is the header compilable?
27337 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
27338 $as_echo_n "checking $ac_header usability... " >&6; }
27339 cat >conftest.$ac_ext <<_ACEOF
27342 cat confdefs.h >>conftest.$ac_ext
27343 cat >>conftest.$ac_ext <<_ACEOF
27344 /* end confdefs.h. */
27345 $ac_includes_default
27346 #include <$ac_header>
27348 rm -f conftest.$ac_objext
27349 if { (ac_try="$ac_compile"
27350 case "(($ac_try" in
27351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27352 *) ac_try_echo=$ac_try;;
27354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27355 $as_echo "$ac_try_echo") >&5
27356 (eval "$ac_compile") 2>conftest.er1
27358 grep -v '^ *+' conftest.er1 >conftest.err
27360 cat conftest.err >&5
27361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27362 (exit $ac_status); } && {
27363 test -z "$ac_c_werror_flag" ||
27364 test ! -s conftest.err
27365 } && test -s conftest.$ac_objext; then
27366 ac_header_compiler=yes
27368 $as_echo "$as_me: failed program was:" >&5
27369 sed 's/^/| /' conftest.$ac_ext >&5
27371 ac_header_compiler=no
27374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27375 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27376 $as_echo "$ac_header_compiler" >&6; }
27378 # Is the header present?
27379 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
27380 $as_echo_n "checking $ac_header presence... " >&6; }
27381 cat >conftest.$ac_ext <<_ACEOF
27384 cat confdefs.h >>conftest.$ac_ext
27385 cat >>conftest.$ac_ext <<_ACEOF
27386 /* end confdefs.h. */
27387 #include <$ac_header>
27389 if { (ac_try="$ac_cpp conftest.$ac_ext"
27390 case "(($ac_try" in
27391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27392 *) ac_try_echo=$ac_try;;
27394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27395 $as_echo "$ac_try_echo") >&5
27396 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27398 grep -v '^ *+' conftest.er1 >conftest.err
27400 cat conftest.err >&5
27401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27402 (exit $ac_status); } >/dev/null && {
27403 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27404 test ! -s conftest.err
27406 ac_header_preproc=yes
27408 $as_echo "$as_me: failed program was:" >&5
27409 sed 's/^/| /' conftest.$ac_ext >&5
27411 ac_header_preproc=no
27414 rm -f conftest.err conftest.$ac_ext
27415 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27416 $as_echo "$ac_header_preproc" >&6; }
27418 # So? What about this header?
27419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27421 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27422 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27423 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27424 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27425 ac_header_preproc=yes
27428 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27429 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27430 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27431 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27432 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27433 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27434 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27435 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27436 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27437 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27438 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27439 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27443 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
27444 $as_echo_n "checking for $ac_header... " >&6; }
27445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27446 $as_echo_n "(cached) " >&6
27448 eval "$as_ac_Header=\$ac_header_preproc"
27450 ac_res=`eval 'as_val=${'$as_ac_Header'}
27451 $as_echo "$as_val"'`
27452 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27453 $as_echo "$ac_res" >&6; }
27456 as_val=`eval 'as_val=${'$as_ac_Header'}
27457 $as_echo "$as_val"'`
27458 if test "x$as_val" = x""yes; then
27459 cat >>confdefs.h <<_ACEOF
27460 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27466 cat >>confdefs.h <<\_ACEOF
27467 #define USE_THREADS 1
27476 CFLAGS="$apr_pthsv_CFLAGS"
27477 LIBS="$apr_pthsv_LIBS"
27483 CPPFLAGS="$SAVE_FL"
27486 for ac_header in pthread.h
27488 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27490 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
27491 $as_echo_n "checking for $ac_header... " >&6; }
27492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27493 $as_echo_n "(cached) " >&6
27495 ac_res=`eval 'as_val=${'$as_ac_Header'}
27496 $as_echo "$as_val"'`
27497 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27498 $as_echo "$ac_res" >&6; }
27500 # Is the header compilable?
27501 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
27502 $as_echo_n "checking $ac_header usability... " >&6; }
27503 cat >conftest.$ac_ext <<_ACEOF
27506 cat confdefs.h >>conftest.$ac_ext
27507 cat >>conftest.$ac_ext <<_ACEOF
27508 /* end confdefs.h. */
27509 $ac_includes_default
27510 #include <$ac_header>
27512 rm -f conftest.$ac_objext
27513 if { (ac_try="$ac_compile"
27514 case "(($ac_try" in
27515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27516 *) ac_try_echo=$ac_try;;
27518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27519 $as_echo "$ac_try_echo") >&5
27520 (eval "$ac_compile") 2>conftest.er1
27522 grep -v '^ *+' conftest.er1 >conftest.err
27524 cat conftest.err >&5
27525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27526 (exit $ac_status); } && {
27527 test -z "$ac_c_werror_flag" ||
27528 test ! -s conftest.err
27529 } && test -s conftest.$ac_objext; then
27530 ac_header_compiler=yes
27532 $as_echo "$as_me: failed program was:" >&5
27533 sed 's/^/| /' conftest.$ac_ext >&5
27535 ac_header_compiler=no
27538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27539 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27540 $as_echo "$ac_header_compiler" >&6; }
27542 # Is the header present?
27543 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
27544 $as_echo_n "checking $ac_header presence... " >&6; }
27545 cat >conftest.$ac_ext <<_ACEOF
27548 cat confdefs.h >>conftest.$ac_ext
27549 cat >>conftest.$ac_ext <<_ACEOF
27550 /* end confdefs.h. */
27551 #include <$ac_header>
27553 if { (ac_try="$ac_cpp conftest.$ac_ext"
27554 case "(($ac_try" in
27555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27556 *) ac_try_echo=$ac_try;;
27558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27559 $as_echo "$ac_try_echo") >&5
27560 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27562 grep -v '^ *+' conftest.er1 >conftest.err
27564 cat conftest.err >&5
27565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27566 (exit $ac_status); } >/dev/null && {
27567 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27568 test ! -s conftest.err
27570 ac_header_preproc=yes
27572 $as_echo "$as_me: failed program was:" >&5
27573 sed 's/^/| /' conftest.$ac_ext >&5
27575 ac_header_preproc=no
27578 rm -f conftest.err conftest.$ac_ext
27579 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27580 $as_echo "$ac_header_preproc" >&6; }
27582 # So? What about this header?
27583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27585 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27586 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27587 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27588 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27589 ac_header_preproc=yes
27592 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27593 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27594 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27595 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27596 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27597 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27598 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27599 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27600 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27601 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27602 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27603 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27607 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
27608 $as_echo_n "checking for $ac_header... " >&6; }
27609 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27610 $as_echo_n "(cached) " >&6
27612 eval "$as_ac_Header=\$ac_header_preproc"
27614 ac_res=`eval 'as_val=${'$as_ac_Header'}
27615 $as_echo "$as_val"'`
27616 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27617 $as_echo "$ac_res" >&6; }
27620 as_val=`eval 'as_val=${'$as_ac_Header'}
27621 $as_echo "$as_val"'`
27622 if test "x$as_val" = x""yes; then
27623 cat >>confdefs.h <<_ACEOF
27624 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27630 cat >>confdefs.h <<\_ACEOF
27631 #define USE_THREADS 1
27640 CFLAGS="$apr_pthsv_CFLAGS"
27641 LIBS="$apr_pthsv_LIBS"
27650 if test "$pthreadh" = "1"; then
27652 { $as_echo "$as_me:$LINENO: checking whether pthread_getspecific takes two arguments" >&5
27653 $as_echo_n "checking whether pthread_getspecific takes two arguments... " >&6; }
27654 if test "${ac_cv_pthread_getspecific_two_args+set}" = set; then
27655 $as_echo_n "(cached) " >&6
27658 cat >conftest.$ac_ext <<_ACEOF
27661 cat confdefs.h >>conftest.$ac_ext
27662 cat >>conftest.$ac_ext <<_ACEOF
27663 /* end confdefs.h. */
27665 #include <pthread.h>
27673 pthread_getspecific(key,&tmp);
27679 rm -f conftest.$ac_objext
27680 if { (ac_try="$ac_compile"
27681 case "(($ac_try" in
27682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27683 *) ac_try_echo=$ac_try;;
27685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27686 $as_echo "$ac_try_echo") >&5
27687 (eval "$ac_compile") 2>conftest.er1
27689 grep -v '^ *+' conftest.er1 >conftest.err
27691 cat conftest.err >&5
27692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27693 (exit $ac_status); } && {
27694 test -z "$ac_c_werror_flag" ||
27695 test ! -s conftest.err
27696 } && test -s conftest.$ac_objext; then
27698 ac_cv_pthread_getspecific_two_args=yes
27701 $as_echo "$as_me: failed program was:" >&5
27702 sed 's/^/| /' conftest.$ac_ext >&5
27705 ac_cv_pthread_getspecific_two_args=no
27709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27712 { $as_echo "$as_me:$LINENO: result: $ac_cv_pthread_getspecific_two_args" >&5
27713 $as_echo "$ac_cv_pthread_getspecific_two_args" >&6; }
27715 if test "$ac_cv_pthread_getspecific_two_args" = "yes"; then
27717 cat >>confdefs.h <<\_ACEOF
27718 #define PTHREAD_GETSPECIFIC_TAKES_TWO_ARGS 1
27724 { $as_echo "$as_me:$LINENO: checking whether pthread_attr_getdetachstate takes one argument" >&5
27725 $as_echo_n "checking whether pthread_attr_getdetachstate takes one argument... " >&6; }
27726 if test "${ac_cv_pthread_attr_getdetachstate_one_arg+set}" = set; then
27727 $as_echo_n "(cached) " >&6
27730 cat >conftest.$ac_ext <<_ACEOF
27733 cat confdefs.h >>conftest.$ac_ext
27734 cat >>conftest.$ac_ext <<_ACEOF
27735 /* end confdefs.h. */
27737 #include <pthread.h>
27743 pthread_attr_t *attr;
27744 pthread_attr_getdetachstate(attr);
27750 rm -f conftest.$ac_objext
27751 if { (ac_try="$ac_compile"
27752 case "(($ac_try" in
27753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27754 *) ac_try_echo=$ac_try;;
27756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27757 $as_echo "$ac_try_echo") >&5
27758 (eval "$ac_compile") 2>conftest.er1
27760 grep -v '^ *+' conftest.er1 >conftest.err
27762 cat conftest.err >&5
27763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27764 (exit $ac_status); } && {
27765 test -z "$ac_c_werror_flag" ||
27766 test ! -s conftest.err
27767 } && test -s conftest.$ac_objext; then
27769 ac_cv_pthread_attr_getdetachstate_one_arg=yes
27772 $as_echo "$as_me: failed program was:" >&5
27773 sed 's/^/| /' conftest.$ac_ext >&5
27776 ac_cv_pthread_attr_getdetachstate_one_arg=no
27780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27783 { $as_echo "$as_me:$LINENO: result: $ac_cv_pthread_attr_getdetachstate_one_arg" >&5
27784 $as_echo "$ac_cv_pthread_attr_getdetachstate_one_arg" >&6; }
27786 if test "$ac_cv_pthread_attr_getdetachstate_one_arg" = "yes"; then
27788 cat >>confdefs.h <<\_ACEOF
27789 #define PTHREAD_ATTR_GETDETACHSTATE_TAKES_ONE_ARG 1
27796 for ac_func in pthread_key_delete pthread_rwlock_init
27798 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27799 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
27800 $as_echo_n "checking for $ac_func... " >&6; }
27801 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27802 $as_echo_n "(cached) " >&6
27804 cat >conftest.$ac_ext <<_ACEOF
27807 cat confdefs.h >>conftest.$ac_ext
27808 cat >>conftest.$ac_ext <<_ACEOF
27809 /* end confdefs.h. */
27810 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27812 #define $ac_func innocuous_$ac_func
27814 /* System header to define __stub macros and hopefully few prototypes,
27815 which can conflict with char $ac_func (); below.
27816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27817 <limits.h> exists even on freestanding compilers. */
27820 # include <limits.h>
27822 # include <assert.h>
27827 /* Override any GCC internal prototype to avoid an error.
27828 Use char because int might match the return type of a GCC
27829 builtin and then its argument prototype would still apply. */
27834 /* The GNU C library defines this for functions which it implements
27835 to always fail with ENOSYS. Some functions are actually named
27836 something starting with __ and the normal name is an alias. */
27837 #if defined __stub_$ac_func || defined __stub___$ac_func
27844 return $ac_func ();
27849 rm -f conftest.$ac_objext conftest$ac_exeext
27850 if { (ac_try="$ac_link"
27851 case "(($ac_try" in
27852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27853 *) ac_try_echo=$ac_try;;
27855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27856 $as_echo "$ac_try_echo") >&5
27857 (eval "$ac_link") 2>conftest.er1
27859 grep -v '^ *+' conftest.er1 >conftest.err
27861 cat conftest.err >&5
27862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27863 (exit $ac_status); } && {
27864 test -z "$ac_c_werror_flag" ||
27865 test ! -s conftest.err
27866 } && test -s conftest$ac_exeext && {
27867 test "$cross_compiling" = yes ||
27868 $as_test_x conftest$ac_exeext
27870 eval "$as_ac_var=yes"
27872 $as_echo "$as_me: failed program was:" >&5
27873 sed 's/^/| /' conftest.$ac_ext >&5
27875 eval "$as_ac_var=no"
27878 rm -rf conftest.dSYM
27879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27880 conftest$ac_exeext conftest.$ac_ext
27882 ac_res=`eval 'as_val=${'$as_ac_var'}
27883 $as_echo "$as_val"'`
27884 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27885 $as_echo "$ac_res" >&6; }
27886 as_val=`eval 'as_val=${'$as_ac_var'}
27887 $as_echo "$as_val"'`
27888 if test "x$as_val" = x""yes; then
27889 cat >>confdefs.h <<_ACEOF
27890 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27897 if test "$ac_cv_func_pthread_rwlock_init" = "yes"; then
27898 { $as_echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
27899 $as_echo_n "checking for pthread_rwlock_t... " >&6; }
27900 if test "${apr_cv_type_rwlock_t+set}" = set; then
27901 $as_echo_n "(cached) " >&6
27903 cat >conftest.$ac_ext <<_ACEOF
27906 cat confdefs.h >>conftest.$ac_ext
27907 cat >>conftest.$ac_ext <<_ACEOF
27908 /* end confdefs.h. */
27909 #include <sys/types.h>
27910 #include <pthread.h>
27914 pthread_rwlock_t *rwlock;
27919 rm -f conftest.$ac_objext
27920 if { (ac_try="$ac_compile"
27921 case "(($ac_try" in
27922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27923 *) ac_try_echo=$ac_try;;
27925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27926 $as_echo "$ac_try_echo") >&5
27927 (eval "$ac_compile") 2>conftest.er1
27929 grep -v '^ *+' conftest.er1 >conftest.err
27931 cat conftest.err >&5
27932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27933 (exit $ac_status); } && {
27934 test -z "$ac_c_werror_flag" ||
27935 test ! -s conftest.err
27936 } && test -s conftest.$ac_objext; then
27937 apr_cv_type_rwlock_t=yes
27939 $as_echo "$as_me: failed program was:" >&5
27940 sed 's/^/| /' conftest.$ac_ext >&5
27942 apr_cv_type_rwlock_t=no
27945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27947 { $as_echo "$as_me:$LINENO: result: $apr_cv_type_rwlock_t" >&5
27948 $as_echo "$apr_cv_type_rwlock_t" >&6; }
27949 if test "$apr_cv_type_rwlock_t" = "yes"; then
27951 cat >>confdefs.h <<\_ACEOF
27952 #define HAVE_PTHREAD_RWLOCKS 1
27957 # this might also require -DXOPEN_SOURCE=500, so leave after the
27960 { $as_echo "$as_me:$LINENO: checking for recursive mutex support" >&5
27961 $as_echo_n "checking for recursive mutex support... " >&6; }
27962 if test "${apr_cv_mutex_recursive+set}" = set; then
27963 $as_echo_n "(cached) " >&6
27965 if test "$cross_compiling" = yes; then
27966 apr_cv_mutex_recursive=no
27968 cat >conftest.$ac_ext <<_ACEOF
27971 cat confdefs.h >>conftest.$ac_ext
27972 cat >>conftest.$ac_ext <<_ACEOF
27973 /* end confdefs.h. */
27974 #include <sys/types.h>
27975 #include <pthread.h>
27976 #include <stdlib.h>
27979 pthread_mutexattr_t attr;
27982 exit (pthread_mutexattr_init(&attr)
27983 || pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE)
27984 || pthread_mutex_init(&m, &attr));
27987 rm -f conftest$ac_exeext
27988 if { (ac_try="$ac_link"
27989 case "(($ac_try" in
27990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27991 *) ac_try_echo=$ac_try;;
27993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27994 $as_echo "$ac_try_echo") >&5
27995 (eval "$ac_link") 2>&5
27997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27998 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27999 { (case "(($ac_try" in
28000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28001 *) ac_try_echo=$ac_try;;
28003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28004 $as_echo "$ac_try_echo") >&5
28005 (eval "$ac_try") 2>&5
28007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28008 (exit $ac_status); }; }; then
28009 apr_cv_mutex_recursive=yes
28011 $as_echo "$as_me: program exited with status $ac_status" >&5
28012 $as_echo "$as_me: failed program was:" >&5
28013 sed 's/^/| /' conftest.$ac_ext >&5
28015 ( exit $ac_status )
28016 apr_cv_mutex_recursive=no
28018 rm -rf conftest.dSYM
28019 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28024 { $as_echo "$as_me:$LINENO: result: $apr_cv_mutex_recursive" >&5
28025 $as_echo "$apr_cv_mutex_recursive" >&6; }
28027 if test "$apr_cv_mutex_recursive" = "yes"; then
28029 cat >>confdefs.h <<\_ACEOF
28030 #define HAVE_PTHREAD_MUTEX_RECURSIVE 1
28038 ac_cv_define_READDIR_IS_THREAD_SAFE=no
28039 ac_cv_define_GETHOSTBYNAME_IS_THREAD_SAFE=no
28040 ac_cv_define_GETHOSTBYADDR_IS_THREAD_SAFE=no
28041 if test "$threads" = "1"; then
28042 echo "APR will use threads"
28043 { $as_echo "$as_me:$LINENO: checking for readdir in -lc_r" >&5
28044 $as_echo_n "checking for readdir in -lc_r... " >&6; }
28045 if test "${ac_cv_lib_c_r_readdir+set}" = set; then
28046 $as_echo_n "(cached) " >&6
28048 ac_check_lib_save_LIBS=$LIBS
28050 cat >conftest.$ac_ext <<_ACEOF
28053 cat confdefs.h >>conftest.$ac_ext
28054 cat >>conftest.$ac_ext <<_ACEOF
28055 /* end confdefs.h. */
28057 /* Override any GCC internal prototype to avoid an error.
28058 Use char because int might match the return type of a GCC
28059 builtin and then its argument prototype would still apply. */
28072 rm -f conftest.$ac_objext conftest$ac_exeext
28073 if { (ac_try="$ac_link"
28074 case "(($ac_try" in
28075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28076 *) ac_try_echo=$ac_try;;
28078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28079 $as_echo "$ac_try_echo") >&5
28080 (eval "$ac_link") 2>conftest.er1
28082 grep -v '^ *+' conftest.er1 >conftest.err
28084 cat conftest.err >&5
28085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28086 (exit $ac_status); } && {
28087 test -z "$ac_c_werror_flag" ||
28088 test ! -s conftest.err
28089 } && test -s conftest$ac_exeext && {
28090 test "$cross_compiling" = yes ||
28091 $as_test_x conftest$ac_exeext
28093 ac_cv_lib_c_r_readdir=yes
28095 $as_echo "$as_me: failed program was:" >&5
28096 sed 's/^/| /' conftest.$ac_ext >&5
28098 ac_cv_lib_c_r_readdir=no
28101 rm -rf conftest.dSYM
28102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28103 conftest$ac_exeext conftest.$ac_ext
28104 LIBS=$ac_check_lib_save_LIBS
28106 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_readdir" >&5
28107 $as_echo "$ac_cv_lib_c_r_readdir" >&6; }
28108 if test "x$ac_cv_lib_c_r_readdir" = x""yes; then
28110 cat >>confdefs.h <<\_ACEOF
28111 #define READDIR_IS_THREAD_SAFE 1
28116 if test "x$apr_gethostbyname_is_thread_safe" = "x"; then
28117 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lc_r" >&5
28118 $as_echo_n "checking for gethostbyname in -lc_r... " >&6; }
28119 if test "${ac_cv_lib_c_r_gethostbyname+set}" = set; then
28120 $as_echo_n "(cached) " >&6
28122 ac_check_lib_save_LIBS=$LIBS
28124 cat >conftest.$ac_ext <<_ACEOF
28127 cat confdefs.h >>conftest.$ac_ext
28128 cat >>conftest.$ac_ext <<_ACEOF
28129 /* end confdefs.h. */
28131 /* Override any GCC internal prototype to avoid an error.
28132 Use char because int might match the return type of a GCC
28133 builtin and then its argument prototype would still apply. */
28137 char gethostbyname ();
28141 return gethostbyname ();
28146 rm -f conftest.$ac_objext conftest$ac_exeext
28147 if { (ac_try="$ac_link"
28148 case "(($ac_try" in
28149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28150 *) ac_try_echo=$ac_try;;
28152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28153 $as_echo "$ac_try_echo") >&5
28154 (eval "$ac_link") 2>conftest.er1
28156 grep -v '^ *+' conftest.er1 >conftest.err
28158 cat conftest.err >&5
28159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28160 (exit $ac_status); } && {
28161 test -z "$ac_c_werror_flag" ||
28162 test ! -s conftest.err
28163 } && test -s conftest$ac_exeext && {
28164 test "$cross_compiling" = yes ||
28165 $as_test_x conftest$ac_exeext
28167 ac_cv_lib_c_r_gethostbyname=yes
28169 $as_echo "$as_me: failed program was:" >&5
28170 sed 's/^/| /' conftest.$ac_ext >&5
28172 ac_cv_lib_c_r_gethostbyname=no
28175 rm -rf conftest.dSYM
28176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28177 conftest$ac_exeext conftest.$ac_ext
28178 LIBS=$ac_check_lib_save_LIBS
28180 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_gethostbyname" >&5
28181 $as_echo "$ac_cv_lib_c_r_gethostbyname" >&6; }
28182 if test "x$ac_cv_lib_c_r_gethostbyname" = x""yes; then
28183 apr_gethostbyname_is_thread_safe=yes
28187 if test "$apr_gethostbyname_is_thread_safe" = "yes"; then
28189 cat >>confdefs.h <<\_ACEOF
28190 #define GETHOSTBYNAME_IS_THREAD_SAFE 1
28194 if test "x$apr_gethostbyaddr_is_thread_safe" = "x"; then
28195 { $as_echo "$as_me:$LINENO: checking for gethostbyaddr in -lc_r" >&5
28196 $as_echo_n "checking for gethostbyaddr in -lc_r... " >&6; }
28197 if test "${ac_cv_lib_c_r_gethostbyaddr+set}" = set; then
28198 $as_echo_n "(cached) " >&6
28200 ac_check_lib_save_LIBS=$LIBS
28202 cat >conftest.$ac_ext <<_ACEOF
28205 cat confdefs.h >>conftest.$ac_ext
28206 cat >>conftest.$ac_ext <<_ACEOF
28207 /* end confdefs.h. */
28209 /* Override any GCC internal prototype to avoid an error.
28210 Use char because int might match the return type of a GCC
28211 builtin and then its argument prototype would still apply. */
28215 char gethostbyaddr ();
28219 return gethostbyaddr ();
28224 rm -f conftest.$ac_objext conftest$ac_exeext
28225 if { (ac_try="$ac_link"
28226 case "(($ac_try" in
28227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28228 *) ac_try_echo=$ac_try;;
28230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28231 $as_echo "$ac_try_echo") >&5
28232 (eval "$ac_link") 2>conftest.er1
28234 grep -v '^ *+' conftest.er1 >conftest.err
28236 cat conftest.err >&5
28237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28238 (exit $ac_status); } && {
28239 test -z "$ac_c_werror_flag" ||
28240 test ! -s conftest.err
28241 } && test -s conftest$ac_exeext && {
28242 test "$cross_compiling" = yes ||
28243 $as_test_x conftest$ac_exeext
28245 ac_cv_lib_c_r_gethostbyaddr=yes
28247 $as_echo "$as_me: failed program was:" >&5
28248 sed 's/^/| /' conftest.$ac_ext >&5
28250 ac_cv_lib_c_r_gethostbyaddr=no
28253 rm -rf conftest.dSYM
28254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28255 conftest$ac_exeext conftest.$ac_ext
28256 LIBS=$ac_check_lib_save_LIBS
28258 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_gethostbyaddr" >&5
28259 $as_echo "$ac_cv_lib_c_r_gethostbyaddr" >&6; }
28260 if test "x$ac_cv_lib_c_r_gethostbyaddr" = x""yes; then
28261 apr_gethostbyaddr_is_thread_safe=yes
28265 if test "$apr_gethostbyaddr_is_thread_safe" = "yes"; then
28267 cat >>confdefs.h <<\_ACEOF
28268 #define GETHOSTBYADDR_IS_THREAD_SAFE 1
28274 for ac_func in gethostbyname_r gethostbyaddr_r
28276 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28277 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
28278 $as_echo_n "checking for $ac_func... " >&6; }
28279 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28280 $as_echo_n "(cached) " >&6
28282 cat >conftest.$ac_ext <<_ACEOF
28285 cat confdefs.h >>conftest.$ac_ext
28286 cat >>conftest.$ac_ext <<_ACEOF
28287 /* end confdefs.h. */
28288 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28289 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28290 #define $ac_func innocuous_$ac_func
28292 /* System header to define __stub macros and hopefully few prototypes,
28293 which can conflict with char $ac_func (); below.
28294 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28295 <limits.h> exists even on freestanding compilers. */
28298 # include <limits.h>
28300 # include <assert.h>
28305 /* Override any GCC internal prototype to avoid an error.
28306 Use char because int might match the return type of a GCC
28307 builtin and then its argument prototype would still apply. */
28312 /* The GNU C library defines this for functions which it implements
28313 to always fail with ENOSYS. Some functions are actually named
28314 something starting with __ and the normal name is an alias. */
28315 #if defined __stub_$ac_func || defined __stub___$ac_func
28322 return $ac_func ();
28327 rm -f conftest.$ac_objext conftest$ac_exeext
28328 if { (ac_try="$ac_link"
28329 case "(($ac_try" in
28330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28331 *) ac_try_echo=$ac_try;;
28333 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28334 $as_echo "$ac_try_echo") >&5
28335 (eval "$ac_link") 2>conftest.er1
28337 grep -v '^ *+' conftest.er1 >conftest.err
28339 cat conftest.err >&5
28340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28341 (exit $ac_status); } && {
28342 test -z "$ac_c_werror_flag" ||
28343 test ! -s conftest.err
28344 } && test -s conftest$ac_exeext && {
28345 test "$cross_compiling" = yes ||
28346 $as_test_x conftest$ac_exeext
28348 eval "$as_ac_var=yes"
28350 $as_echo "$as_me: failed program was:" >&5
28351 sed 's/^/| /' conftest.$ac_ext >&5
28353 eval "$as_ac_var=no"
28356 rm -rf conftest.dSYM
28357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28358 conftest$ac_exeext conftest.$ac_ext
28360 ac_res=`eval 'as_val=${'$as_ac_var'}
28361 $as_echo "$as_val"'`
28362 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28363 $as_echo "$ac_res" >&6; }
28364 as_val=`eval 'as_val=${'$as_ac_var'}
28365 $as_echo "$as_val"'`
28366 if test "x$as_val" = x""yes; then
28367 cat >>confdefs.h <<_ACEOF
28368 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28375 echo "APR will be non-threaded"
28379 for ac_func in sigsuspend
28381 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28382 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
28383 $as_echo_n "checking for $ac_func... " >&6; }
28384 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28385 $as_echo_n "(cached) " >&6
28387 cat >conftest.$ac_ext <<_ACEOF
28390 cat confdefs.h >>conftest.$ac_ext
28391 cat >>conftest.$ac_ext <<_ACEOF
28392 /* end confdefs.h. */
28393 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28394 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28395 #define $ac_func innocuous_$ac_func
28397 /* System header to define __stub macros and hopefully few prototypes,
28398 which can conflict with char $ac_func (); below.
28399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28400 <limits.h> exists even on freestanding compilers. */
28403 # include <limits.h>
28405 # include <assert.h>
28410 /* Override any GCC internal prototype to avoid an error.
28411 Use char because int might match the return type of a GCC
28412 builtin and then its argument prototype would still apply. */
28417 /* The GNU C library defines this for functions which it implements
28418 to always fail with ENOSYS. Some functions are actually named
28419 something starting with __ and the normal name is an alias. */
28420 #if defined __stub_$ac_func || defined __stub___$ac_func
28427 return $ac_func ();
28432 rm -f conftest.$ac_objext conftest$ac_exeext
28433 if { (ac_try="$ac_link"
28434 case "(($ac_try" in
28435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28436 *) ac_try_echo=$ac_try;;
28438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28439 $as_echo "$ac_try_echo") >&5
28440 (eval "$ac_link") 2>conftest.er1
28442 grep -v '^ *+' conftest.er1 >conftest.err
28444 cat conftest.err >&5
28445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28446 (exit $ac_status); } && {
28447 test -z "$ac_c_werror_flag" ||
28448 test ! -s conftest.err
28449 } && test -s conftest$ac_exeext && {
28450 test "$cross_compiling" = yes ||
28451 $as_test_x conftest$ac_exeext
28453 eval "$as_ac_var=yes"
28455 $as_echo "$as_me: failed program was:" >&5
28456 sed 's/^/| /' conftest.$ac_ext >&5
28458 eval "$as_ac_var=no"
28461 rm -rf conftest.dSYM
28462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28463 conftest$ac_exeext conftest.$ac_ext
28465 ac_res=`eval 'as_val=${'$as_ac_var'}
28466 $as_echo "$as_val"'`
28467 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28468 $as_echo "$ac_res" >&6; }
28469 as_val=`eval 'as_val=${'$as_ac_var'}
28470 $as_echo "$as_val"'`
28471 if test "x$as_val" = x""yes; then
28472 cat >>confdefs.h <<_ACEOF
28473 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28475 have_sigsuspend="1"
28477 have_sigsuspend="0"
28482 for ac_func in sigwait
28484 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28485 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
28486 $as_echo_n "checking for $ac_func... " >&6; }
28487 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28488 $as_echo_n "(cached) " >&6
28490 cat >conftest.$ac_ext <<_ACEOF
28493 cat confdefs.h >>conftest.$ac_ext
28494 cat >>conftest.$ac_ext <<_ACEOF
28495 /* end confdefs.h. */
28496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28498 #define $ac_func innocuous_$ac_func
28500 /* System header to define __stub macros and hopefully few prototypes,
28501 which can conflict with char $ac_func (); below.
28502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28503 <limits.h> exists even on freestanding compilers. */
28506 # include <limits.h>
28508 # include <assert.h>
28513 /* Override any GCC internal prototype to avoid an error.
28514 Use char because int might match the return type of a GCC
28515 builtin and then its argument prototype would still apply. */
28520 /* The GNU C library defines this for functions which it implements
28521 to always fail with ENOSYS. Some functions are actually named
28522 something starting with __ and the normal name is an alias. */
28523 #if defined __stub_$ac_func || defined __stub___$ac_func
28530 return $ac_func ();
28535 rm -f conftest.$ac_objext conftest$ac_exeext
28536 if { (ac_try="$ac_link"
28537 case "(($ac_try" in
28538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28539 *) ac_try_echo=$ac_try;;
28541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28542 $as_echo "$ac_try_echo") >&5
28543 (eval "$ac_link") 2>conftest.er1
28545 grep -v '^ *+' conftest.er1 >conftest.err
28547 cat conftest.err >&5
28548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28549 (exit $ac_status); } && {
28550 test -z "$ac_c_werror_flag" ||
28551 test ! -s conftest.err
28552 } && test -s conftest$ac_exeext && {
28553 test "$cross_compiling" = yes ||
28554 $as_test_x conftest$ac_exeext
28556 eval "$as_ac_var=yes"
28558 $as_echo "$as_me: failed program was:" >&5
28559 sed 's/^/| /' conftest.$ac_ext >&5
28561 eval "$as_ac_var=no"
28564 rm -rf conftest.dSYM
28565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28566 conftest$ac_exeext conftest.$ac_ext
28568 ac_res=`eval 'as_val=${'$as_ac_var'}
28569 $as_echo "$as_val"'`
28570 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28571 $as_echo "$ac_res" >&6; }
28572 as_val=`eval 'as_val=${'$as_ac_var'}
28573 $as_echo "$as_val"'`
28574 if test "x$as_val" = x""yes; then
28575 cat >>confdefs.h <<_ACEOF
28576 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28595 for ac_func in poll
28597 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28598 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
28599 $as_echo_n "checking for $ac_func... " >&6; }
28600 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28601 $as_echo_n "(cached) " >&6
28603 cat >conftest.$ac_ext <<_ACEOF
28606 cat confdefs.h >>conftest.$ac_ext
28607 cat >>conftest.$ac_ext <<_ACEOF
28608 /* end confdefs.h. */
28609 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28610 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28611 #define $ac_func innocuous_$ac_func
28613 /* System header to define __stub macros and hopefully few prototypes,
28614 which can conflict with char $ac_func (); below.
28615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28616 <limits.h> exists even on freestanding compilers. */
28619 # include <limits.h>
28621 # include <assert.h>
28626 /* Override any GCC internal prototype to avoid an error.
28627 Use char because int might match the return type of a GCC
28628 builtin and then its argument prototype would still apply. */
28633 /* The GNU C library defines this for functions which it implements
28634 to always fail with ENOSYS. Some functions are actually named
28635 something starting with __ and the normal name is an alias. */
28636 #if defined __stub_$ac_func || defined __stub___$ac_func
28643 return $ac_func ();
28648 rm -f conftest.$ac_objext conftest$ac_exeext
28649 if { (ac_try="$ac_link"
28650 case "(($ac_try" in
28651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28652 *) ac_try_echo=$ac_try;;
28654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28655 $as_echo "$ac_try_echo") >&5
28656 (eval "$ac_link") 2>conftest.er1
28658 grep -v '^ *+' conftest.er1 >conftest.err
28660 cat conftest.err >&5
28661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28662 (exit $ac_status); } && {
28663 test -z "$ac_c_werror_flag" ||
28664 test ! -s conftest.err
28665 } && test -s conftest$ac_exeext && {
28666 test "$cross_compiling" = yes ||
28667 $as_test_x conftest$ac_exeext
28669 eval "$as_ac_var=yes"
28671 $as_echo "$as_me: failed program was:" >&5
28672 sed 's/^/| /' conftest.$ac_ext >&5
28674 eval "$as_ac_var=no"
28677 rm -rf conftest.dSYM
28678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28679 conftest$ac_exeext conftest.$ac_ext
28681 ac_res=`eval 'as_val=${'$as_ac_var'}
28682 $as_echo "$as_val"'`
28683 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28684 $as_echo "$ac_res" >&6; }
28685 as_val=`eval 'as_val=${'$as_ac_var'}
28686 $as_echo "$as_val"'`
28687 if test "x$as_val" = x""yes; then
28688 cat >>confdefs.h <<_ACEOF
28689 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28700 for ac_func in getpwnam_r getpwuid_r getgrnam_r getgrgid_r
28702 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28703 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
28704 $as_echo_n "checking for $ac_func... " >&6; }
28705 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28706 $as_echo_n "(cached) " >&6
28708 cat >conftest.$ac_ext <<_ACEOF
28711 cat confdefs.h >>conftest.$ac_ext
28712 cat >>conftest.$ac_ext <<_ACEOF
28713 /* end confdefs.h. */
28714 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28716 #define $ac_func innocuous_$ac_func
28718 /* System header to define __stub macros and hopefully few prototypes,
28719 which can conflict with char $ac_func (); below.
28720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28721 <limits.h> exists even on freestanding compilers. */
28724 # include <limits.h>
28726 # include <assert.h>
28731 /* Override any GCC internal prototype to avoid an error.
28732 Use char because int might match the return type of a GCC
28733 builtin and then its argument prototype would still apply. */
28738 /* The GNU C library defines this for functions which it implements
28739 to always fail with ENOSYS. Some functions are actually named
28740 something starting with __ and the normal name is an alias. */
28741 #if defined __stub_$ac_func || defined __stub___$ac_func
28748 return $ac_func ();
28753 rm -f conftest.$ac_objext conftest$ac_exeext
28754 if { (ac_try="$ac_link"
28755 case "(($ac_try" in
28756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28757 *) ac_try_echo=$ac_try;;
28759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28760 $as_echo "$ac_try_echo") >&5
28761 (eval "$ac_link") 2>conftest.er1
28763 grep -v '^ *+' conftest.er1 >conftest.err
28765 cat conftest.err >&5
28766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28767 (exit $ac_status); } && {
28768 test -z "$ac_c_werror_flag" ||
28769 test ! -s conftest.err
28770 } && test -s conftest$ac_exeext && {
28771 test "$cross_compiling" = yes ||
28772 $as_test_x conftest$ac_exeext
28774 eval "$as_ac_var=yes"
28776 $as_echo "$as_me: failed program was:" >&5
28777 sed 's/^/| /' conftest.$ac_ext >&5
28779 eval "$as_ac_var=no"
28782 rm -rf conftest.dSYM
28783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28784 conftest$ac_exeext conftest.$ac_ext
28786 ac_res=`eval 'as_val=${'$as_ac_var'}
28787 $as_echo "$as_val"'`
28788 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28789 $as_echo "$ac_res" >&6; }
28790 as_val=`eval 'as_val=${'$as_ac_var'}
28791 $as_echo "$as_val"'`
28792 if test "x$as_val" = x""yes; then
28793 cat >>confdefs.h <<_ACEOF
28794 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28801 echo "${nl}Checking for Shared Memory Support..."
28803 # The real-time POSIX extensions (e.g. shm_*, sem_*) may only
28804 # be available if linking against librt.
28805 { $as_echo "$as_me:$LINENO: checking for library containing shm_open" >&5
28806 $as_echo_n "checking for library containing shm_open... " >&6; }
28807 if test "${ac_cv_search_shm_open+set}" = set; then
28808 $as_echo_n "(cached) " >&6
28810 ac_func_search_save_LIBS=$LIBS
28811 cat >conftest.$ac_ext <<_ACEOF
28814 cat confdefs.h >>conftest.$ac_ext
28815 cat >>conftest.$ac_ext <<_ACEOF
28816 /* end confdefs.h. */
28818 /* Override any GCC internal prototype to avoid an error.
28819 Use char because int might match the return type of a GCC
28820 builtin and then its argument prototype would still apply. */
28828 return shm_open ();
28833 for ac_lib in '' rt; do
28834 if test -z "$ac_lib"; then
28835 ac_res="none required"
28838 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28840 rm -f conftest.$ac_objext conftest$ac_exeext
28841 if { (ac_try="$ac_link"
28842 case "(($ac_try" in
28843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28844 *) ac_try_echo=$ac_try;;
28846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28847 $as_echo "$ac_try_echo") >&5
28848 (eval "$ac_link") 2>conftest.er1
28850 grep -v '^ *+' conftest.er1 >conftest.err
28852 cat conftest.err >&5
28853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28854 (exit $ac_status); } && {
28855 test -z "$ac_c_werror_flag" ||
28856 test ! -s conftest.err
28857 } && test -s conftest$ac_exeext && {
28858 test "$cross_compiling" = yes ||
28859 $as_test_x conftest$ac_exeext
28861 ac_cv_search_shm_open=$ac_res
28863 $as_echo "$as_me: failed program was:" >&5
28864 sed 's/^/| /' conftest.$ac_ext >&5
28869 rm -rf conftest.dSYM
28870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28872 if test "${ac_cv_search_shm_open+set}" = set; then
28876 if test "${ac_cv_search_shm_open+set}" = set; then
28879 ac_cv_search_shm_open=no
28881 rm conftest.$ac_ext
28882 LIBS=$ac_func_search_save_LIBS
28884 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
28885 $as_echo "$ac_cv_search_shm_open" >&6; }
28886 ac_res=$ac_cv_search_shm_open
28887 if test "$ac_res" != no; then
28888 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28895 ac_includes_default="$ac_includes_default
28896 #if HAVE_SYS_MUTEX_H /* needed to define lock_t for sys/shm.h */
28897 # include <sys/mutex.h>
28908 for ac_header in sys/mman.h sys/ipc.h sys/mutex.h sys/shm.h sys/file.h kernel/OS.h os2.h
28910 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28912 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28913 $as_echo_n "checking for $ac_header... " >&6; }
28914 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28915 $as_echo_n "(cached) " >&6
28917 ac_res=`eval 'as_val=${'$as_ac_Header'}
28918 $as_echo "$as_val"'`
28919 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28920 $as_echo "$ac_res" >&6; }
28922 # Is the header compilable?
28923 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
28924 $as_echo_n "checking $ac_header usability... " >&6; }
28925 cat >conftest.$ac_ext <<_ACEOF
28928 cat confdefs.h >>conftest.$ac_ext
28929 cat >>conftest.$ac_ext <<_ACEOF
28930 /* end confdefs.h. */
28931 $ac_includes_default
28932 #include <$ac_header>
28934 rm -f conftest.$ac_objext
28935 if { (ac_try="$ac_compile"
28936 case "(($ac_try" in
28937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28938 *) ac_try_echo=$ac_try;;
28940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28941 $as_echo "$ac_try_echo") >&5
28942 (eval "$ac_compile") 2>conftest.er1
28944 grep -v '^ *+' conftest.er1 >conftest.err
28946 cat conftest.err >&5
28947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28948 (exit $ac_status); } && {
28949 test -z "$ac_c_werror_flag" ||
28950 test ! -s conftest.err
28951 } && test -s conftest.$ac_objext; then
28952 ac_header_compiler=yes
28954 $as_echo "$as_me: failed program was:" >&5
28955 sed 's/^/| /' conftest.$ac_ext >&5
28957 ac_header_compiler=no
28960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28961 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28962 $as_echo "$ac_header_compiler" >&6; }
28964 # Is the header present?
28965 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
28966 $as_echo_n "checking $ac_header presence... " >&6; }
28967 cat >conftest.$ac_ext <<_ACEOF
28970 cat confdefs.h >>conftest.$ac_ext
28971 cat >>conftest.$ac_ext <<_ACEOF
28972 /* end confdefs.h. */
28973 #include <$ac_header>
28975 if { (ac_try="$ac_cpp conftest.$ac_ext"
28976 case "(($ac_try" in
28977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28978 *) ac_try_echo=$ac_try;;
28980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28981 $as_echo "$ac_try_echo") >&5
28982 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28984 grep -v '^ *+' conftest.er1 >conftest.err
28986 cat conftest.err >&5
28987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28988 (exit $ac_status); } >/dev/null && {
28989 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28990 test ! -s conftest.err
28992 ac_header_preproc=yes
28994 $as_echo "$as_me: failed program was:" >&5
28995 sed 's/^/| /' conftest.$ac_ext >&5
28997 ac_header_preproc=no
29000 rm -f conftest.err conftest.$ac_ext
29001 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29002 $as_echo "$ac_header_preproc" >&6; }
29004 # So? What about this header?
29005 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29007 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29008 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29009 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29010 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29011 ac_header_preproc=yes
29014 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29015 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29016 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29017 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29018 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29019 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29020 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29021 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29022 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29023 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29024 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29025 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29029 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29030 $as_echo_n "checking for $ac_header... " >&6; }
29031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29032 $as_echo_n "(cached) " >&6
29034 eval "$as_ac_Header=\$ac_header_preproc"
29036 ac_res=`eval 'as_val=${'$as_ac_Header'}
29037 $as_echo "$as_val"'`
29038 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29039 $as_echo "$ac_res" >&6; }
29042 as_val=`eval 'as_val=${'$as_ac_Header'}
29043 $as_echo "$as_val"'`
29044 if test "x$as_val" = x""yes; then
29045 cat >>confdefs.h <<_ACEOF
29046 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29062 for ac_func in mmap munmap shm_open shm_unlink shmget shmat shmdt shmctl \
29065 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29066 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
29067 $as_echo_n "checking for $ac_func... " >&6; }
29068 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29069 $as_echo_n "(cached) " >&6
29071 cat >conftest.$ac_ext <<_ACEOF
29074 cat confdefs.h >>conftest.$ac_ext
29075 cat >>conftest.$ac_ext <<_ACEOF
29076 /* end confdefs.h. */
29077 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29078 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29079 #define $ac_func innocuous_$ac_func
29081 /* System header to define __stub macros and hopefully few prototypes,
29082 which can conflict with char $ac_func (); below.
29083 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29084 <limits.h> exists even on freestanding compilers. */
29087 # include <limits.h>
29089 # include <assert.h>
29094 /* Override any GCC internal prototype to avoid an error.
29095 Use char because int might match the return type of a GCC
29096 builtin and then its argument prototype would still apply. */
29101 /* The GNU C library defines this for functions which it implements
29102 to always fail with ENOSYS. Some functions are actually named
29103 something starting with __ and the normal name is an alias. */
29104 #if defined __stub_$ac_func || defined __stub___$ac_func
29111 return $ac_func ();
29116 rm -f conftest.$ac_objext conftest$ac_exeext
29117 if { (ac_try="$ac_link"
29118 case "(($ac_try" in
29119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29120 *) ac_try_echo=$ac_try;;
29122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29123 $as_echo "$ac_try_echo") >&5
29124 (eval "$ac_link") 2>conftest.er1
29126 grep -v '^ *+' conftest.er1 >conftest.err
29128 cat conftest.err >&5
29129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29130 (exit $ac_status); } && {
29131 test -z "$ac_c_werror_flag" ||
29132 test ! -s conftest.err
29133 } && test -s conftest$ac_exeext && {
29134 test "$cross_compiling" = yes ||
29135 $as_test_x conftest$ac_exeext
29137 eval "$as_ac_var=yes"
29139 $as_echo "$as_me: failed program was:" >&5
29140 sed 's/^/| /' conftest.$ac_ext >&5
29142 eval "$as_ac_var=no"
29145 rm -rf conftest.dSYM
29146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29147 conftest$ac_exeext conftest.$ac_ext
29149 ac_res=`eval 'as_val=${'$as_ac_var'}
29150 $as_echo "$as_val"'`
29151 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29152 $as_echo "$ac_res" >&6; }
29153 as_val=`eval 'as_val=${'$as_ac_var'}
29154 $as_echo "$as_val"'`
29155 if test "x$as_val" = x""yes; then
29156 cat >>confdefs.h <<_ACEOF
29157 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29164 { $as_echo "$as_me:$LINENO: checking for MAP_ANON in sys/mman.h" >&5
29165 $as_echo_n "checking for MAP_ANON in sys/mman.h... " >&6; }
29166 if test "${ac_cv_define_MAP_ANON+set}" = set; then
29167 $as_echo_n "(cached) " >&6
29170 cat >conftest.$ac_ext <<_ACEOF
29173 cat confdefs.h >>conftest.$ac_ext
29174 cat >>conftest.$ac_ext <<_ACEOF
29175 /* end confdefs.h. */
29177 #include <sys/mman.h>
29183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29184 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then
29185 ac_cv_define_MAP_ANON=yes
29187 ac_cv_define_MAP_ANON=no
29193 { $as_echo "$as_me:$LINENO: result: $ac_cv_define_MAP_ANON" >&5
29194 $as_echo "$ac_cv_define_MAP_ANON" >&6; }
29195 if test "$ac_cv_define_MAP_ANON" = "yes"; then
29197 cat >>confdefs.h <<\_ACEOF
29198 #define HAVE_MAP_ANON 1
29203 { $as_echo "$as_me:$LINENO: checking for /dev/zero" >&5
29204 $as_echo_n "checking for /dev/zero... " >&6; }
29205 if test "${ac_cv_file__dev_zero+set}" = set; then
29206 $as_echo_n "(cached) " >&6
29208 test "$cross_compiling" = yes &&
29209 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
29210 $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
29211 { (exit 1); exit 1; }; }
29212 if test -r "/dev/zero"; then
29213 ac_cv_file__dev_zero=yes
29215 ac_cv_file__dev_zero=no
29218 { $as_echo "$as_me:$LINENO: result: $ac_cv_file__dev_zero" >&5
29219 $as_echo "$ac_cv_file__dev_zero" >&6; }
29222 # Not all systems can mmap /dev/zero (such as HP-UX). Check for that.
29223 if test "$ac_cv_func_mmap" = "yes" &&
29224 test "$ac_cv_file__dev_zero" = "yes"; then
29225 { $as_echo "$as_me:$LINENO: checking for mmap that can map /dev/zero" >&5
29226 $as_echo_n "checking for mmap that can map /dev/zero... " >&6; }
29227 if test "$cross_compiling" = yes; then
29228 ac_cv_file__dev_zero=no
29230 cat >conftest.$ac_ext <<_ACEOF
29233 cat confdefs.h >>conftest.$ac_ext
29234 cat >>conftest.$ac_ext <<_ACEOF
29235 /* end confdefs.h. */
29237 #include <sys/types.h>
29238 #include <sys/stat.h>
29240 #ifdef HAVE_SYS_MMAN_H
29241 #include <sys/mman.h>
29247 fd = open("/dev/zero", O_RDWR);
29251 m = mmap(0, sizeof(void*), PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0);
29252 if (m == (void *)-1) { /* aka MAP_FAILED */
29255 if (munmap(m, sizeof(void*)) < 0) {
29261 rm -f conftest$ac_exeext
29262 if { (ac_try="$ac_link"
29263 case "(($ac_try" in
29264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29265 *) ac_try_echo=$ac_try;;
29267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29268 $as_echo "$ac_try_echo") >&5
29269 (eval "$ac_link") 2>&5
29271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29272 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29273 { (case "(($ac_try" in
29274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29275 *) ac_try_echo=$ac_try;;
29277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29278 $as_echo "$ac_try_echo") >&5
29279 (eval "$ac_try") 2>&5
29281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29282 (exit $ac_status); }; }; then
29285 $as_echo "$as_me: program exited with status $ac_status" >&5
29286 $as_echo "$as_me: failed program was:" >&5
29287 sed 's/^/| /' conftest.$ac_ext >&5
29289 ( exit $ac_status )
29290 ac_cv_file__dev_zero=no
29292 rm -rf conftest.dSYM
29293 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29298 { $as_echo "$as_me:$LINENO: result: $ac_cv_file__dev_zero" >&5
29299 $as_echo "$ac_cv_file__dev_zero" >&6; }
29302 # Now we determine which one is our anonymous shmem preference.
29306 ac_decision_item='anonymous shared memory allocation method'
29307 ac_decision_msg='FAILED'
29311 for ac_spec in header:sys/ipc.h header:sys/shm.h header:sys/file.h func:shmget func:shmat func:shmdt func:shmctl; do
29312 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
29313 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
29316 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
29317 ac_var="ac_cv_header_$ac_item"
29320 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
29321 ac_var="ac_cv_file_$ac_item"
29323 func ) ac_var="ac_cv_func_$ac_item" ;;
29324 struct ) ac_var="ac_cv_struct_$ac_item" ;;
29325 define ) ac_var="ac_cv_define_$ac_item" ;;
29326 custom ) ac_var="$ac_item" ;;
29328 eval "ac_val=\$$ac_var"
29329 if test ".$ac_val" != .yes; then
29334 if test ".$ac_rc" = .yes; then
29337 ac_decision='USE_SHMEM_SHMGET_ANON'
29338 ac_decision_msg='SysV IPC shmget()'
29339 ac_decision_USE_SHMEM_SHMGET_ANON=yes
29340 ac_decision_USE_SHMEM_SHMGET_ANON_msg='SysV IPC shmget()'
29348 for ac_spec in header:sys/mman.h func:mmap func:munmap file:/dev/zero; do
29349 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
29350 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
29353 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
29354 ac_var="ac_cv_header_$ac_item"
29357 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
29358 ac_var="ac_cv_file_$ac_item"
29360 func ) ac_var="ac_cv_func_$ac_item" ;;
29361 struct ) ac_var="ac_cv_struct_$ac_item" ;;
29362 define ) ac_var="ac_cv_define_$ac_item" ;;
29363 custom ) ac_var="$ac_item" ;;
29365 eval "ac_val=\$$ac_var"
29366 if test ".$ac_val" != .yes; then
29371 if test ".$ac_rc" = .yes; then
29374 ac_decision='USE_SHMEM_MMAP_ZERO'
29375 ac_decision_msg='SVR4-style mmap() on /dev/zero'
29376 ac_decision_USE_SHMEM_MMAP_ZERO=yes
29377 ac_decision_USE_SHMEM_MMAP_ZERO_msg='SVR4-style mmap() on /dev/zero'
29385 for ac_spec in header:sys/mman.h func:mmap func:munmap define:MAP_ANON; do
29386 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
29387 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
29390 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
29391 ac_var="ac_cv_header_$ac_item"
29394 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
29395 ac_var="ac_cv_file_$ac_item"
29397 func ) ac_var="ac_cv_func_$ac_item" ;;
29398 struct ) ac_var="ac_cv_struct_$ac_item" ;;
29399 define ) ac_var="ac_cv_define_$ac_item" ;;
29400 custom ) ac_var="$ac_item" ;;
29402 eval "ac_val=\$$ac_var"
29403 if test ".$ac_val" != .yes; then
29408 if test ".$ac_rc" = .yes; then
29411 ac_decision='USE_SHMEM_MMAP_ANON'
29412 ac_decision_msg='4.4BSD-style mmap() via MAP_ANON'
29413 ac_decision_USE_SHMEM_MMAP_ANON=yes
29414 ac_decision_USE_SHMEM_MMAP_ANON_msg='4.4BSD-style mmap() via MAP_ANON'
29422 for ac_spec in header:os2.h; do
29423 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
29424 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
29427 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
29428 ac_var="ac_cv_header_$ac_item"
29431 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
29432 ac_var="ac_cv_file_$ac_item"
29434 func ) ac_var="ac_cv_func_$ac_item" ;;
29435 struct ) ac_var="ac_cv_struct_$ac_item" ;;
29436 define ) ac_var="ac_cv_define_$ac_item" ;;
29437 custom ) ac_var="$ac_item" ;;
29439 eval "ac_val=\$$ac_var"
29440 if test ".$ac_val" != .yes; then
29445 if test ".$ac_rc" = .yes; then
29448 ac_decision='USE_SHMEM_OS2_ANON'
29449 ac_decision_msg='OS/2 DosAllocSharedMem()'
29450 ac_decision_USE_SHMEM_OS2_ANON=yes
29451 ac_decision_USE_SHMEM_OS2_ANON_msg='OS/2 DosAllocSharedMem()'
29459 for ac_spec in header:kernel/OS.h func:create_area; do
29460 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
29461 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
29464 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
29465 ac_var="ac_cv_header_$ac_item"
29468 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
29469 ac_var="ac_cv_file_$ac_item"
29471 func ) ac_var="ac_cv_func_$ac_item" ;;
29472 struct ) ac_var="ac_cv_struct_$ac_item" ;;
29473 define ) ac_var="ac_cv_define_$ac_item" ;;
29474 custom ) ac_var="$ac_item" ;;
29476 eval "ac_val=\$$ac_var"
29477 if test ".$ac_val" != .yes; then
29482 if test ".$ac_rc" = .yes; then
29485 ac_decision='USE_SHMEM_BEOS_ANON'
29486 ac_decision_msg='BeOS areas'
29487 ac_decision_USE_SHMEM_BEOS_ANON=yes
29488 ac_decision_USE_SHMEM_BEOS_ANON_msg='BeOS areas'
29497 # Linux has problems with MM_SHMT_MMANON even though it reports
29499 # FIXME - find exact 2.3 version that MMANON was fixed in. It is
29500 # confirmed fixed in 2.4 series.
29501 if test $os_version -le "240"; then
29503 for ac_item in USE_SHMEM_MMAP_ZERO USE_SHMEM_SHMGET_ANON; do
29504 eval "ac_decision_this=\$ac_decision_${ac_item}"
29505 if test ".$ac_decision_this" = .yes; then
29506 ac_decision=$ac_item
29507 eval "ac_decision_msg=\$ac_decision_${ac_item}_msg"
29515 for ac_item in USE_SHMEM_SHMGET_ANON; do
29516 eval "ac_decision_this=\$ac_decision_${ac_item}"
29517 if test ".$ac_decision_this" = .yes; then
29518 ac_decision=$ac_item
29519 eval "ac_decision_msg=\$ac_decision_${ac_item}_msg"
29525 if test ".$ac_decision" = .; then
29526 echo "$0:Error: decision on $ac_decision_item failed" 1>&2
29529 if test ".$ac_decision_msg" = .; then
29530 ac_decision_msg="$ac_decision"
29532 cat >>confdefs.h <<_ACEOF
29533 #define ${ac_decision_item} 1
29536 { $as_echo "$as_me:$LINENO: result: decision on $ac_decision_item... $ac_decision_msg" >&5
29537 $as_echo "decision on $ac_decision_item... $ac_decision_msg" >&6; }
29540 cat >>confdefs.h <<_ACEOF
29541 #define $ac_decision 1
29549 case $ac_decision in
29550 USE_SHMEM_SHMGET_ANON )
29553 USE_SHMEM_MMAP_ZERO )
29556 USE_SHMEM_MMAP_ANON )
29568 # Now we determine which one is our name-based shmem preference.
29574 ac_decision_item='namebased memory allocation method'
29575 ac_decision_msg='FAILED'
29579 for ac_spec in header:sys/mman.h func:mmap func:munmap; do
29580 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
29581 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
29584 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
29585 ac_var="ac_cv_header_$ac_item"
29588 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
29589 ac_var="ac_cv_file_$ac_item"
29591 func ) ac_var="ac_cv_func_$ac_item" ;;
29592 struct ) ac_var="ac_cv_struct_$ac_item" ;;
29593 define ) ac_var="ac_cv_define_$ac_item" ;;
29594 custom ) ac_var="$ac_item" ;;
29596 eval "ac_val=\$$ac_var"
29597 if test ".$ac_val" != .yes; then
29602 if test ".$ac_rc" = .yes; then
29605 ac_decision='USE_SHMEM_MMAP_TMP'
29606 ac_decision_msg='Classical mmap() on temporary file'
29607 ac_decision_USE_SHMEM_MMAP_TMP=yes
29608 ac_decision_USE_SHMEM_MMAP_TMP_msg='Classical mmap() on temporary file'
29616 for ac_spec in header:sys/mman.h func:mmap func:munmap func:shm_open func:shm_unlink; do
29617 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
29618 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
29621 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
29622 ac_var="ac_cv_header_$ac_item"
29625 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
29626 ac_var="ac_cv_file_$ac_item"
29628 func ) ac_var="ac_cv_func_$ac_item" ;;
29629 struct ) ac_var="ac_cv_struct_$ac_item" ;;
29630 define ) ac_var="ac_cv_define_$ac_item" ;;
29631 custom ) ac_var="$ac_item" ;;
29633 eval "ac_val=\$$ac_var"
29634 if test ".$ac_val" != .yes; then
29639 if test ".$ac_rc" = .yes; then
29642 ac_decision='USE_SHMEM_MMAP_SHM'
29643 ac_decision_msg='mmap() via POSIX.1 shm_open() on temporary file'
29644 ac_decision_USE_SHMEM_MMAP_SHM=yes
29645 ac_decision_USE_SHMEM_MMAP_SHM_msg='mmap() via POSIX.1 shm_open() on temporary file'
29653 for ac_spec in header:sys/ipc.h header:sys/shm.h header:sys/file.h func:shmget func:shmat func:shmdt func:shmctl; do
29654 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
29655 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
29658 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
29659 ac_var="ac_cv_header_$ac_item"
29662 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
29663 ac_var="ac_cv_file_$ac_item"
29665 func ) ac_var="ac_cv_func_$ac_item" ;;
29666 struct ) ac_var="ac_cv_struct_$ac_item" ;;
29667 define ) ac_var="ac_cv_define_$ac_item" ;;
29668 custom ) ac_var="$ac_item" ;;
29670 eval "ac_val=\$$ac_var"
29671 if test ".$ac_val" != .yes; then
29676 if test ".$ac_rc" = .yes; then
29679 ac_decision='USE_SHMEM_SHMGET'
29680 ac_decision_msg='SysV IPC shmget()'
29681 ac_decision_USE_SHMEM_SHMGET=yes
29682 ac_decision_USE_SHMEM_SHMGET_msg='SysV IPC shmget()'
29690 for ac_spec in header:kernel/OS.h func:create_area; do
29691 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
29692 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
29695 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
29696 ac_var="ac_cv_header_$ac_item"
29699 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
29700 ac_var="ac_cv_file_$ac_item"
29702 func ) ac_var="ac_cv_func_$ac_item" ;;
29703 struct ) ac_var="ac_cv_struct_$ac_item" ;;
29704 define ) ac_var="ac_cv_define_$ac_item" ;;
29705 custom ) ac_var="$ac_item" ;;
29707 eval "ac_val=\$$ac_var"
29708 if test ".$ac_val" != .yes; then
29713 if test ".$ac_rc" = .yes; then
29716 ac_decision='USE_SHMEM_BEOS'
29717 ac_decision_msg='BeOS areas'
29718 ac_decision_USE_SHMEM_BEOS=yes
29719 ac_decision_USE_SHMEM_BEOS_msg='BeOS areas'
29727 for ac_spec in header:os2.h; do
29728 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
29729 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
29732 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
29733 ac_var="ac_cv_header_$ac_item"
29736 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
29737 ac_var="ac_cv_file_$ac_item"
29739 func ) ac_var="ac_cv_func_$ac_item" ;;
29740 struct ) ac_var="ac_cv_struct_$ac_item" ;;
29741 define ) ac_var="ac_cv_define_$ac_item" ;;
29742 custom ) ac_var="$ac_item" ;;
29744 eval "ac_val=\$$ac_var"
29745 if test ".$ac_val" != .yes; then
29750 if test ".$ac_rc" = .yes; then
29753 ac_decision='USE_SHMEM_OS2'
29754 ac_decision_msg='OS/2 DosAllocSharedMem()'
29755 ac_decision_USE_SHMEM_OS2=yes
29756 ac_decision_USE_SHMEM_OS2_msg='OS/2 DosAllocSharedMem()'
29765 # Linux has problems with MM_SHMT_MMANON even though it reports
29767 # FIXME - find exact 2.3 version that MMANON was fixed in. It is
29768 # confirmed fixed in 2.4 series.
29769 if test $os_version -le "240"; then
29771 for ac_item in USE_SHMEM_MMAP_TMP USE_SHMEM_MMAP_SHM USE_SHMEM_SHMGET; do
29772 eval "ac_decision_this=\$ac_decision_${ac_item}"
29773 if test ".$ac_decision_this" = .yes; then
29774 ac_decision=$ac_item
29775 eval "ac_decision_msg=\$ac_decision_${ac_item}_msg"
29782 if test ".$ac_decision" = .; then
29783 echo "$0:Error: decision on $ac_decision_item failed" 1>&2
29786 if test ".$ac_decision_msg" = .; then
29787 ac_decision_msg="$ac_decision"
29789 cat >>confdefs.h <<_ACEOF
29790 #define ${ac_decision_item} 1
29793 { $as_echo "$as_me:$LINENO: result: decision on $ac_decision_item... $ac_decision_msg" >&5
29794 $as_echo "decision on $ac_decision_item... $ac_decision_msg" >&6; }
29797 cat >>confdefs.h <<_ACEOF
29798 #define $ac_decision 1
29808 case $ac_decision in
29809 USE_SHMEM_MMAP_TMP )
29812 USE_SHMEM_MMAP_SHM )
29826 # Do we have any shared memory support?
29827 if test "$usemmaptmp$usemmapshm$usemmapzero$useshmget$usemmapanon$usebeosarea$useos2shm" = "0000000"; then
29852 for ac_func in alloca calloc strcasecmp stricmp setsid isinf isnan
29854 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29855 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
29856 $as_echo_n "checking for $ac_func... " >&6; }
29857 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29858 $as_echo_n "(cached) " >&6
29860 cat >conftest.$ac_ext <<_ACEOF
29863 cat confdefs.h >>conftest.$ac_ext
29864 cat >>conftest.$ac_ext <<_ACEOF
29865 /* end confdefs.h. */
29866 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29868 #define $ac_func innocuous_$ac_func
29870 /* System header to define __stub macros and hopefully few prototypes,
29871 which can conflict with char $ac_func (); below.
29872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29873 <limits.h> exists even on freestanding compilers. */
29876 # include <limits.h>
29878 # include <assert.h>
29883 /* Override any GCC internal prototype to avoid an error.
29884 Use char because int might match the return type of a GCC
29885 builtin and then its argument prototype would still apply. */
29890 /* The GNU C library defines this for functions which it implements
29891 to always fail with ENOSYS. Some functions are actually named
29892 something starting with __ and the normal name is an alias. */
29893 #if defined __stub_$ac_func || defined __stub___$ac_func
29900 return $ac_func ();
29905 rm -f conftest.$ac_objext conftest$ac_exeext
29906 if { (ac_try="$ac_link"
29907 case "(($ac_try" in
29908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29909 *) ac_try_echo=$ac_try;;
29911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29912 $as_echo "$ac_try_echo") >&5
29913 (eval "$ac_link") 2>conftest.er1
29915 grep -v '^ *+' conftest.er1 >conftest.err
29917 cat conftest.err >&5
29918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29919 (exit $ac_status); } && {
29920 test -z "$ac_c_werror_flag" ||
29921 test ! -s conftest.err
29922 } && test -s conftest$ac_exeext && {
29923 test "$cross_compiling" = yes ||
29924 $as_test_x conftest$ac_exeext
29926 eval "$as_ac_var=yes"
29928 $as_echo "$as_me: failed program was:" >&5
29929 sed 's/^/| /' conftest.$ac_ext >&5
29931 eval "$as_ac_var=no"
29934 rm -rf conftest.dSYM
29935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29936 conftest$ac_exeext conftest.$ac_ext
29938 ac_res=`eval 'as_val=${'$as_ac_var'}
29939 $as_echo "$as_val"'`
29940 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29941 $as_echo "$ac_res" >&6; }
29942 as_val=`eval 'as_val=${'$as_ac_var'}
29943 $as_echo "$as_val"'`
29944 if test "x$as_val" = x""yes; then
29945 cat >>confdefs.h <<_ACEOF
29946 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29956 for ac_func in getenv putenv setenv unsetenv
29958 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29959 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
29960 $as_echo_n "checking for $ac_func... " >&6; }
29961 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29962 $as_echo_n "(cached) " >&6
29964 cat >conftest.$ac_ext <<_ACEOF
29967 cat confdefs.h >>conftest.$ac_ext
29968 cat >>conftest.$ac_ext <<_ACEOF
29969 /* end confdefs.h. */
29970 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29971 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29972 #define $ac_func innocuous_$ac_func
29974 /* System header to define __stub macros and hopefully few prototypes,
29975 which can conflict with char $ac_func (); below.
29976 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29977 <limits.h> exists even on freestanding compilers. */
29980 # include <limits.h>
29982 # include <assert.h>
29987 /* Override any GCC internal prototype to avoid an error.
29988 Use char because int might match the return type of a GCC
29989 builtin and then its argument prototype would still apply. */
29994 /* The GNU C library defines this for functions which it implements
29995 to always fail with ENOSYS. Some functions are actually named
29996 something starting with __ and the normal name is an alias. */
29997 #if defined __stub_$ac_func || defined __stub___$ac_func
30004 return $ac_func ();
30009 rm -f conftest.$ac_objext conftest$ac_exeext
30010 if { (ac_try="$ac_link"
30011 case "(($ac_try" in
30012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30013 *) ac_try_echo=$ac_try;;
30015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30016 $as_echo "$ac_try_echo") >&5
30017 (eval "$ac_link") 2>conftest.er1
30019 grep -v '^ *+' conftest.er1 >conftest.err
30021 cat conftest.err >&5
30022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30023 (exit $ac_status); } && {
30024 test -z "$ac_c_werror_flag" ||
30025 test ! -s conftest.err
30026 } && test -s conftest$ac_exeext && {
30027 test "$cross_compiling" = yes ||
30028 $as_test_x conftest$ac_exeext
30030 eval "$as_ac_var=yes"
30032 $as_echo "$as_me: failed program was:" >&5
30033 sed 's/^/| /' conftest.$ac_ext >&5
30035 eval "$as_ac_var=no"
30038 rm -rf conftest.dSYM
30039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30040 conftest$ac_exeext conftest.$ac_ext
30042 ac_res=`eval 'as_val=${'$as_ac_var'}
30043 $as_echo "$as_val"'`
30044 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30045 $as_echo "$ac_res" >&6; }
30046 as_val=`eval 'as_val=${'$as_ac_var'}
30047 $as_echo "$as_val"'`
30048 if test "x$as_val" = x""yes; then
30049 cat >>confdefs.h <<_ACEOF
30050 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30057 for ac_func in setrlimit
30059 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30060 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
30061 $as_echo_n "checking for $ac_func... " >&6; }
30062 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30063 $as_echo_n "(cached) " >&6
30065 cat >conftest.$ac_ext <<_ACEOF
30068 cat confdefs.h >>conftest.$ac_ext
30069 cat >>conftest.$ac_ext <<_ACEOF
30070 /* end confdefs.h. */
30071 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30072 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30073 #define $ac_func innocuous_$ac_func
30075 /* System header to define __stub macros and hopefully few prototypes,
30076 which can conflict with char $ac_func (); below.
30077 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30078 <limits.h> exists even on freestanding compilers. */
30081 # include <limits.h>
30083 # include <assert.h>
30088 /* Override any GCC internal prototype to avoid an error.
30089 Use char because int might match the return type of a GCC
30090 builtin and then its argument prototype would still apply. */
30095 /* The GNU C library defines this for functions which it implements
30096 to always fail with ENOSYS. Some functions are actually named
30097 something starting with __ and the normal name is an alias. */
30098 #if defined __stub_$ac_func || defined __stub___$ac_func
30105 return $ac_func ();
30110 rm -f conftest.$ac_objext conftest$ac_exeext
30111 if { (ac_try="$ac_link"
30112 case "(($ac_try" in
30113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30114 *) ac_try_echo=$ac_try;;
30116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30117 $as_echo "$ac_try_echo") >&5
30118 (eval "$ac_link") 2>conftest.er1
30120 grep -v '^ *+' conftest.er1 >conftest.err
30122 cat conftest.err >&5
30123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30124 (exit $ac_status); } && {
30125 test -z "$ac_c_werror_flag" ||
30126 test ! -s conftest.err
30127 } && test -s conftest$ac_exeext && {
30128 test "$cross_compiling" = yes ||
30129 $as_test_x conftest$ac_exeext
30131 eval "$as_ac_var=yes"
30133 $as_echo "$as_me: failed program was:" >&5
30134 sed 's/^/| /' conftest.$ac_ext >&5
30136 eval "$as_ac_var=no"
30139 rm -rf conftest.dSYM
30140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30141 conftest$ac_exeext conftest.$ac_ext
30143 ac_res=`eval 'as_val=${'$as_ac_var'}
30144 $as_echo "$as_val"'`
30145 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30146 $as_echo "$ac_res" >&6; }
30147 as_val=`eval 'as_val=${'$as_ac_var'}
30148 $as_echo "$as_val"'`
30149 if test "x$as_val" = x""yes; then
30150 cat >>confdefs.h <<_ACEOF
30151 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30160 for ac_func in getrlimit
30162 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30163 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
30164 $as_echo_n "checking for $ac_func... " >&6; }
30165 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30166 $as_echo_n "(cached) " >&6
30168 cat >conftest.$ac_ext <<_ACEOF
30171 cat confdefs.h >>conftest.$ac_ext
30172 cat >>conftest.$ac_ext <<_ACEOF
30173 /* end confdefs.h. */
30174 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30176 #define $ac_func innocuous_$ac_func
30178 /* System header to define __stub macros and hopefully few prototypes,
30179 which can conflict with char $ac_func (); below.
30180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30181 <limits.h> exists even on freestanding compilers. */
30184 # include <limits.h>
30186 # include <assert.h>
30191 /* Override any GCC internal prototype to avoid an error.
30192 Use char because int might match the return type of a GCC
30193 builtin and then its argument prototype would still apply. */
30198 /* The GNU C library defines this for functions which it implements
30199 to always fail with ENOSYS. Some functions are actually named
30200 something starting with __ and the normal name is an alias. */
30201 #if defined __stub_$ac_func || defined __stub___$ac_func
30208 return $ac_func ();
30213 rm -f conftest.$ac_objext conftest$ac_exeext
30214 if { (ac_try="$ac_link"
30215 case "(($ac_try" in
30216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30217 *) ac_try_echo=$ac_try;;
30219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30220 $as_echo "$ac_try_echo") >&5
30221 (eval "$ac_link") 2>conftest.er1
30223 grep -v '^ *+' conftest.er1 >conftest.err
30225 cat conftest.err >&5
30226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30227 (exit $ac_status); } && {
30228 test -z "$ac_c_werror_flag" ||
30229 test ! -s conftest.err
30230 } && test -s conftest$ac_exeext && {
30231 test "$cross_compiling" = yes ||
30232 $as_test_x conftest$ac_exeext
30234 eval "$as_ac_var=yes"
30236 $as_echo "$as_me: failed program was:" >&5
30237 sed 's/^/| /' conftest.$ac_ext >&5
30239 eval "$as_ac_var=no"
30242 rm -rf conftest.dSYM
30243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30244 conftest$ac_exeext conftest.$ac_ext
30246 ac_res=`eval 'as_val=${'$as_ac_var'}
30247 $as_echo "$as_val"'`
30248 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30249 $as_echo "$ac_res" >&6; }
30250 as_val=`eval 'as_val=${'$as_ac_var'}
30251 $as_echo "$as_val"'`
30252 if test "x$as_val" = x""yes; then
30253 cat >>confdefs.h <<_ACEOF
30254 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30263 for ac_func in writev
30265 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30266 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
30267 $as_echo_n "checking for $ac_func... " >&6; }
30268 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30269 $as_echo_n "(cached) " >&6
30271 cat >conftest.$ac_ext <<_ACEOF
30274 cat confdefs.h >>conftest.$ac_ext
30275 cat >>conftest.$ac_ext <<_ACEOF
30276 /* end confdefs.h. */
30277 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30278 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30279 #define $ac_func innocuous_$ac_func
30281 /* System header to define __stub macros and hopefully few prototypes,
30282 which can conflict with char $ac_func (); below.
30283 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30284 <limits.h> exists even on freestanding compilers. */
30287 # include <limits.h>
30289 # include <assert.h>
30294 /* Override any GCC internal prototype to avoid an error.
30295 Use char because int might match the return type of a GCC
30296 builtin and then its argument prototype would still apply. */
30301 /* The GNU C library defines this for functions which it implements
30302 to always fail with ENOSYS. Some functions are actually named
30303 something starting with __ and the normal name is an alias. */
30304 #if defined __stub_$ac_func || defined __stub___$ac_func
30311 return $ac_func ();
30316 rm -f conftest.$ac_objext conftest$ac_exeext
30317 if { (ac_try="$ac_link"
30318 case "(($ac_try" in
30319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30320 *) ac_try_echo=$ac_try;;
30322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30323 $as_echo "$ac_try_echo") >&5
30324 (eval "$ac_link") 2>conftest.er1
30326 grep -v '^ *+' conftest.er1 >conftest.err
30328 cat conftest.err >&5
30329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30330 (exit $ac_status); } && {
30331 test -z "$ac_c_werror_flag" ||
30332 test ! -s conftest.err
30333 } && test -s conftest$ac_exeext && {
30334 test "$cross_compiling" = yes ||
30335 $as_test_x conftest$ac_exeext
30337 eval "$as_ac_var=yes"
30339 $as_echo "$as_me: failed program was:" >&5
30340 sed 's/^/| /' conftest.$ac_ext >&5
30342 eval "$as_ac_var=no"
30345 rm -rf conftest.dSYM
30346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30347 conftest$ac_exeext conftest.$ac_ext
30349 ac_res=`eval 'as_val=${'$as_ac_var'}
30350 $as_echo "$as_val"'`
30351 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30352 $as_echo "$ac_res" >&6; }
30353 as_val=`eval 'as_val=${'$as_ac_var'}
30354 $as_echo "$as_val"'`
30355 if test "x$as_val" = x""yes; then
30356 cat >>confdefs.h <<_ACEOF
30357 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30365 { $as_echo "$as_me:$LINENO: checking for sendfilev in -lsendfile" >&5
30366 $as_echo_n "checking for sendfilev in -lsendfile... " >&6; }
30367 if test "${ac_cv_lib_sendfile_sendfilev+set}" = set; then
30368 $as_echo_n "(cached) " >&6
30370 ac_check_lib_save_LIBS=$LIBS
30371 LIBS="-lsendfile $LIBS"
30372 cat >conftest.$ac_ext <<_ACEOF
30375 cat confdefs.h >>conftest.$ac_ext
30376 cat >>conftest.$ac_ext <<_ACEOF
30377 /* end confdefs.h. */
30379 /* Override any GCC internal prototype to avoid an error.
30380 Use char because int might match the return type of a GCC
30381 builtin and then its argument prototype would still apply. */
30389 return sendfilev ();
30394 rm -f conftest.$ac_objext conftest$ac_exeext
30395 if { (ac_try="$ac_link"
30396 case "(($ac_try" in
30397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30398 *) ac_try_echo=$ac_try;;
30400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30401 $as_echo "$ac_try_echo") >&5
30402 (eval "$ac_link") 2>conftest.er1
30404 grep -v '^ *+' conftest.er1 >conftest.err
30406 cat conftest.err >&5
30407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30408 (exit $ac_status); } && {
30409 test -z "$ac_c_werror_flag" ||
30410 test ! -s conftest.err
30411 } && test -s conftest$ac_exeext && {
30412 test "$cross_compiling" = yes ||
30413 $as_test_x conftest$ac_exeext
30415 ac_cv_lib_sendfile_sendfilev=yes
30417 $as_echo "$as_me: failed program was:" >&5
30418 sed 's/^/| /' conftest.$ac_ext >&5
30420 ac_cv_lib_sendfile_sendfilev=no
30423 rm -rf conftest.dSYM
30424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30425 conftest$ac_exeext conftest.$ac_ext
30426 LIBS=$ac_check_lib_save_LIBS
30428 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sendfile_sendfilev" >&5
30429 $as_echo "$ac_cv_lib_sendfile_sendfilev" >&6; }
30430 if test "x$ac_cv_lib_sendfile_sendfilev" = x""yes; then
30431 cat >>confdefs.h <<_ACEOF
30432 #define HAVE_LIBSENDFILE 1
30435 LIBS="-lsendfile $LIBS"
30442 for ac_func in sendfile send_file sendfilev
30444 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30445 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
30446 $as_echo_n "checking for $ac_func... " >&6; }
30447 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30448 $as_echo_n "(cached) " >&6
30450 cat >conftest.$ac_ext <<_ACEOF
30453 cat confdefs.h >>conftest.$ac_ext
30454 cat >>conftest.$ac_ext <<_ACEOF
30455 /* end confdefs.h. */
30456 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30458 #define $ac_func innocuous_$ac_func
30460 /* System header to define __stub macros and hopefully few prototypes,
30461 which can conflict with char $ac_func (); below.
30462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30463 <limits.h> exists even on freestanding compilers. */
30466 # include <limits.h>
30468 # include <assert.h>
30473 /* Override any GCC internal prototype to avoid an error.
30474 Use char because int might match the return type of a GCC
30475 builtin and then its argument prototype would still apply. */
30480 /* The GNU C library defines this for functions which it implements
30481 to always fail with ENOSYS. Some functions are actually named
30482 something starting with __ and the normal name is an alias. */
30483 #if defined __stub_$ac_func || defined __stub___$ac_func
30490 return $ac_func ();
30495 rm -f conftest.$ac_objext conftest$ac_exeext
30496 if { (ac_try="$ac_link"
30497 case "(($ac_try" in
30498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30499 *) ac_try_echo=$ac_try;;
30501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30502 $as_echo "$ac_try_echo") >&5
30503 (eval "$ac_link") 2>conftest.er1
30505 grep -v '^ *+' conftest.er1 >conftest.err
30507 cat conftest.err >&5
30508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30509 (exit $ac_status); } && {
30510 test -z "$ac_c_werror_flag" ||
30511 test ! -s conftest.err
30512 } && test -s conftest$ac_exeext && {
30513 test "$cross_compiling" = yes ||
30514 $as_test_x conftest$ac_exeext
30516 eval "$as_ac_var=yes"
30518 $as_echo "$as_me: failed program was:" >&5
30519 sed 's/^/| /' conftest.$ac_ext >&5
30521 eval "$as_ac_var=no"
30524 rm -rf conftest.dSYM
30525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30526 conftest$ac_exeext conftest.$ac_ext
30528 ac_res=`eval 'as_val=${'$as_ac_var'}
30529 $as_echo "$as_val"'`
30530 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30531 $as_echo "$ac_res" >&6; }
30532 as_val=`eval 'as_val=${'$as_ac_var'}
30533 $as_echo "$as_val"'`
30534 if test "x$as_val" = x""yes; then
30535 cat >>confdefs.h <<_ACEOF
30536 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30544 for ac_func in utime utimes
30546 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30547 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
30548 $as_echo_n "checking for $ac_func... " >&6; }
30549 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30550 $as_echo_n "(cached) " >&6
30552 cat >conftest.$ac_ext <<_ACEOF
30555 cat confdefs.h >>conftest.$ac_ext
30556 cat >>conftest.$ac_ext <<_ACEOF
30557 /* end confdefs.h. */
30558 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30560 #define $ac_func innocuous_$ac_func
30562 /* System header to define __stub macros and hopefully few prototypes,
30563 which can conflict with char $ac_func (); below.
30564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30565 <limits.h> exists even on freestanding compilers. */
30568 # include <limits.h>
30570 # include <assert.h>
30575 /* Override any GCC internal prototype to avoid an error.
30576 Use char because int might match the return type of a GCC
30577 builtin and then its argument prototype would still apply. */
30582 /* The GNU C library defines this for functions which it implements
30583 to always fail with ENOSYS. Some functions are actually named
30584 something starting with __ and the normal name is an alias. */
30585 #if defined __stub_$ac_func || defined __stub___$ac_func
30592 return $ac_func ();
30597 rm -f conftest.$ac_objext conftest$ac_exeext
30598 if { (ac_try="$ac_link"
30599 case "(($ac_try" in
30600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30601 *) ac_try_echo=$ac_try;;
30603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30604 $as_echo "$ac_try_echo") >&5
30605 (eval "$ac_link") 2>conftest.er1
30607 grep -v '^ *+' conftest.er1 >conftest.err
30609 cat conftest.err >&5
30610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30611 (exit $ac_status); } && {
30612 test -z "$ac_c_werror_flag" ||
30613 test ! -s conftest.err
30614 } && test -s conftest$ac_exeext && {
30615 test "$cross_compiling" = yes ||
30616 $as_test_x conftest$ac_exeext
30618 eval "$as_ac_var=yes"
30620 $as_echo "$as_me: failed program was:" >&5
30621 sed 's/^/| /' conftest.$ac_ext >&5
30623 eval "$as_ac_var=no"
30626 rm -rf conftest.dSYM
30627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30628 conftest$ac_exeext conftest.$ac_ext
30630 ac_res=`eval 'as_val=${'$as_ac_var'}
30631 $as_echo "$as_val"'`
30632 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30633 $as_echo "$ac_res" >&6; }
30634 as_val=`eval 'as_val=${'$as_ac_var'}
30635 $as_echo "$as_val"'`
30636 if test "x$as_val" = x""yes; then
30637 cat >>confdefs.h <<_ACEOF
30638 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30647 # Check whether --with-sendfile was given.
30648 if test "${with_sendfile+set}" = set; then
30649 withval=$with_sendfile; if test "$withval" = "yes"; then
30656 orig_sendfile=$sendfile
30659 # FreeBSD < 4.2 has issues with threads+sendfile
30660 if test $os_version -le "401999"; then
30661 if test "$threads" = "1"; then
30670 # disable sendfile support for 2.2 on S/390
30671 if test $os_version -lt 240; then
30676 # compiler-independent check for 64-bit build
30677 # The cast to long int works around a bug in the HP C Compiler
30678 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
30679 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
30680 # This bug is HP SR number 8606223364.
30681 { $as_echo "$as_me:$LINENO: checking size of void*" >&5
30682 $as_echo_n "checking size of void*... " >&6; }
30683 if test "${ac_cv_sizeof_voidp+set}" = set; then
30684 $as_echo_n "(cached) " >&6
30686 if test "$cross_compiling" = yes; then
30687 # Depending upon the size, compute the lo and hi bounds.
30688 cat >conftest.$ac_ext <<_ACEOF
30691 cat confdefs.h >>conftest.$ac_ext
30692 cat >>conftest.$ac_ext <<_ACEOF
30693 /* end confdefs.h. */
30694 $ac_includes_default
30698 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) >= 0)];
30705 rm -f conftest.$ac_objext
30706 if { (ac_try="$ac_compile"
30707 case "(($ac_try" in
30708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30709 *) ac_try_echo=$ac_try;;
30711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30712 $as_echo "$ac_try_echo") >&5
30713 (eval "$ac_compile") 2>conftest.er1
30715 grep -v '^ *+' conftest.er1 >conftest.err
30717 cat conftest.err >&5
30718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30719 (exit $ac_status); } && {
30720 test -z "$ac_c_werror_flag" ||
30721 test ! -s conftest.err
30722 } && test -s conftest.$ac_objext; then
30725 cat >conftest.$ac_ext <<_ACEOF
30728 cat confdefs.h >>conftest.$ac_ext
30729 cat >>conftest.$ac_ext <<_ACEOF
30730 /* end confdefs.h. */
30731 $ac_includes_default
30735 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) <= $ac_mid)];
30742 rm -f conftest.$ac_objext
30743 if { (ac_try="$ac_compile"
30744 case "(($ac_try" in
30745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30746 *) ac_try_echo=$ac_try;;
30748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30749 $as_echo "$ac_try_echo") >&5
30750 (eval "$ac_compile") 2>conftest.er1
30752 grep -v '^ *+' conftest.er1 >conftest.err
30754 cat conftest.err >&5
30755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30756 (exit $ac_status); } && {
30757 test -z "$ac_c_werror_flag" ||
30758 test ! -s conftest.err
30759 } && test -s conftest.$ac_objext; then
30760 ac_hi=$ac_mid; break
30762 $as_echo "$as_me: failed program was:" >&5
30763 sed 's/^/| /' conftest.$ac_ext >&5
30765 ac_lo=`expr $ac_mid + 1`
30766 if test $ac_lo -le $ac_mid; then
30770 ac_mid=`expr 2 '*' $ac_mid + 1`
30773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30776 $as_echo "$as_me: failed program was:" >&5
30777 sed 's/^/| /' conftest.$ac_ext >&5
30779 cat >conftest.$ac_ext <<_ACEOF
30782 cat confdefs.h >>conftest.$ac_ext
30783 cat >>conftest.$ac_ext <<_ACEOF
30784 /* end confdefs.h. */
30785 $ac_includes_default
30789 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) < 0)];
30796 rm -f conftest.$ac_objext
30797 if { (ac_try="$ac_compile"
30798 case "(($ac_try" in
30799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30800 *) ac_try_echo=$ac_try;;
30802 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30803 $as_echo "$ac_try_echo") >&5
30804 (eval "$ac_compile") 2>conftest.er1
30806 grep -v '^ *+' conftest.er1 >conftest.err
30808 cat conftest.err >&5
30809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30810 (exit $ac_status); } && {
30811 test -z "$ac_c_werror_flag" ||
30812 test ! -s conftest.err
30813 } && test -s conftest.$ac_objext; then
30816 cat >conftest.$ac_ext <<_ACEOF
30819 cat confdefs.h >>conftest.$ac_ext
30820 cat >>conftest.$ac_ext <<_ACEOF
30821 /* end confdefs.h. */
30822 $ac_includes_default
30826 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) >= $ac_mid)];
30833 rm -f conftest.$ac_objext
30834 if { (ac_try="$ac_compile"
30835 case "(($ac_try" in
30836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30837 *) ac_try_echo=$ac_try;;
30839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30840 $as_echo "$ac_try_echo") >&5
30841 (eval "$ac_compile") 2>conftest.er1
30843 grep -v '^ *+' conftest.er1 >conftest.err
30845 cat conftest.err >&5
30846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30847 (exit $ac_status); } && {
30848 test -z "$ac_c_werror_flag" ||
30849 test ! -s conftest.err
30850 } && test -s conftest.$ac_objext; then
30851 ac_lo=$ac_mid; break
30853 $as_echo "$as_me: failed program was:" >&5
30854 sed 's/^/| /' conftest.$ac_ext >&5
30856 ac_hi=`expr '(' $ac_mid ')' - 1`
30857 if test $ac_mid -le $ac_hi; then
30861 ac_mid=`expr 2 '*' $ac_mid`
30864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30867 $as_echo "$as_me: failed program was:" >&5
30868 sed 's/^/| /' conftest.$ac_ext >&5
30873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30877 # Binary search between lo and hi bounds.
30878 while test "x$ac_lo" != "x$ac_hi"; do
30879 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
30880 cat >conftest.$ac_ext <<_ACEOF
30883 cat confdefs.h >>conftest.$ac_ext
30884 cat >>conftest.$ac_ext <<_ACEOF
30885 /* end confdefs.h. */
30886 $ac_includes_default
30890 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) <= $ac_mid)];
30897 rm -f conftest.$ac_objext
30898 if { (ac_try="$ac_compile"
30899 case "(($ac_try" in
30900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30901 *) ac_try_echo=$ac_try;;
30903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30904 $as_echo "$ac_try_echo") >&5
30905 (eval "$ac_compile") 2>conftest.er1
30907 grep -v '^ *+' conftest.er1 >conftest.err
30909 cat conftest.err >&5
30910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30911 (exit $ac_status); } && {
30912 test -z "$ac_c_werror_flag" ||
30913 test ! -s conftest.err
30914 } && test -s conftest.$ac_objext; then
30917 $as_echo "$as_me: failed program was:" >&5
30918 sed 's/^/| /' conftest.$ac_ext >&5
30920 ac_lo=`expr '(' $ac_mid ')' + 1`
30923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30926 ?*) ac_cv_sizeof_voidp=$ac_lo;;
30927 '') if test "$ac_cv_type_voidp" = yes; then
30928 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
30929 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30930 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
30931 See \`config.log' for more details." >&5
30932 $as_echo "$as_me: error: cannot compute sizeof (void*)
30933 See \`config.log' for more details." >&2;}
30934 { (exit 77); exit 77; }; }; }
30936 ac_cv_sizeof_voidp=0
30940 cat >conftest.$ac_ext <<_ACEOF
30943 cat confdefs.h >>conftest.$ac_ext
30944 cat >>conftest.$ac_ext <<_ACEOF
30945 /* end confdefs.h. */
30946 $ac_includes_default
30947 static long int longval () { return (long int) (sizeof (void*)); }
30948 static unsigned long int ulongval () { return (long int) (sizeof (void*)); }
30950 #include <stdlib.h>
30955 FILE *f = fopen ("conftest.val", "w");
30958 if (((long int) (sizeof (void*))) < 0)
30960 long int i = longval ();
30961 if (i != ((long int) (sizeof (void*))))
30963 fprintf (f, "%ld", i);
30967 unsigned long int i = ulongval ();
30968 if (i != ((long int) (sizeof (void*))))
30970 fprintf (f, "%lu", i);
30972 /* Do not output a trailing newline, as this causes \r\n confusion
30973 on some platforms. */
30974 return ferror (f) || fclose (f) != 0;
30980 rm -f conftest$ac_exeext
30981 if { (ac_try="$ac_link"
30982 case "(($ac_try" in
30983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30984 *) ac_try_echo=$ac_try;;
30986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30987 $as_echo "$ac_try_echo") >&5
30988 (eval "$ac_link") 2>&5
30990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30991 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30992 { (case "(($ac_try" in
30993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30994 *) ac_try_echo=$ac_try;;
30996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30997 $as_echo "$ac_try_echo") >&5
30998 (eval "$ac_try") 2>&5
31000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31001 (exit $ac_status); }; }; then
31002 ac_cv_sizeof_voidp=`cat conftest.val`
31004 $as_echo "$as_me: program exited with status $ac_status" >&5
31005 $as_echo "$as_me: failed program was:" >&5
31006 sed 's/^/| /' conftest.$ac_ext >&5
31008 ( exit $ac_status )
31009 if test "$ac_cv_type_voidp" = yes; then
31010 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
31011 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31012 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
31013 See \`config.log' for more details." >&5
31014 $as_echo "$as_me: error: cannot compute sizeof (void*)
31015 See \`config.log' for more details." >&2;}
31016 { (exit 77); exit 77; }; }; }
31018 ac_cv_sizeof_voidp=0
31021 rm -rf conftest.dSYM
31022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31026 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
31027 $as_echo "$ac_cv_sizeof_voidp" >&6; }
31031 cat >>confdefs.h <<_ACEOF
31032 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
31036 if test "x$ac_cv_sizeof_voidp" = "x8"; then
31037 # sendfile not working for 64-bit build
31042 # darwin semantics in 9.0.0 appear to be fubar
31046 if test "$orig_sendfile" != "$sendfile"; then
31047 echo "sendfile support disabled to avoid system problem"
31054 for ac_func in sigaction
31056 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31057 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
31058 $as_echo_n "checking for $ac_func... " >&6; }
31059 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31060 $as_echo_n "(cached) " >&6
31062 cat >conftest.$ac_ext <<_ACEOF
31065 cat confdefs.h >>conftest.$ac_ext
31066 cat >>conftest.$ac_ext <<_ACEOF
31067 /* end confdefs.h. */
31068 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31070 #define $ac_func innocuous_$ac_func
31072 /* System header to define __stub macros and hopefully few prototypes,
31073 which can conflict with char $ac_func (); below.
31074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31075 <limits.h> exists even on freestanding compilers. */
31078 # include <limits.h>
31080 # include <assert.h>
31085 /* Override any GCC internal prototype to avoid an error.
31086 Use char because int might match the return type of a GCC
31087 builtin and then its argument prototype would still apply. */
31092 /* The GNU C library defines this for functions which it implements
31093 to always fail with ENOSYS. Some functions are actually named
31094 something starting with __ and the normal name is an alias. */
31095 #if defined __stub_$ac_func || defined __stub___$ac_func
31102 return $ac_func ();
31107 rm -f conftest.$ac_objext conftest$ac_exeext
31108 if { (ac_try="$ac_link"
31109 case "(($ac_try" in
31110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31111 *) ac_try_echo=$ac_try;;
31113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31114 $as_echo "$ac_try_echo") >&5
31115 (eval "$ac_link") 2>conftest.er1
31117 grep -v '^ *+' conftest.er1 >conftest.err
31119 cat conftest.err >&5
31120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31121 (exit $ac_status); } && {
31122 test -z "$ac_c_werror_flag" ||
31123 test ! -s conftest.err
31124 } && test -s conftest$ac_exeext && {
31125 test "$cross_compiling" = yes ||
31126 $as_test_x conftest$ac_exeext
31128 eval "$as_ac_var=yes"
31130 $as_echo "$as_me: failed program was:" >&5
31131 sed 's/^/| /' conftest.$ac_ext >&5
31133 eval "$as_ac_var=no"
31136 rm -rf conftest.dSYM
31137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31138 conftest$ac_exeext conftest.$ac_ext
31140 ac_res=`eval 'as_val=${'$as_ac_var'}
31141 $as_echo "$as_val"'`
31142 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31143 $as_echo "$ac_res" >&6; }
31144 as_val=`eval 'as_val=${'$as_ac_var'}
31145 $as_echo "$as_val"'`
31146 if test "x$as_val" = x""yes; then
31147 cat >>confdefs.h <<_ACEOF
31148 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31156 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
31157 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
31158 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
31159 $as_echo_n "(cached) " >&6
31161 cat >conftest.$ac_ext <<_ACEOF
31164 cat confdefs.h >>conftest.$ac_ext
31165 cat >>conftest.$ac_ext <<_ACEOF
31166 /* end confdefs.h. */
31167 #include <signal.h>
31168 /* NetBSD declares sys_siglist in unistd.h. */
31169 #ifdef HAVE_UNISTD_H
31170 # include <unistd.h>
31177 #ifndef sys_siglist
31178 (void) sys_siglist;
31185 rm -f conftest.$ac_objext
31186 if { (ac_try="$ac_compile"
31187 case "(($ac_try" in
31188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31189 *) ac_try_echo=$ac_try;;
31191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31192 $as_echo "$ac_try_echo") >&5
31193 (eval "$ac_compile") 2>conftest.er1
31195 grep -v '^ *+' conftest.er1 >conftest.err
31197 cat conftest.err >&5
31198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31199 (exit $ac_status); } && {
31200 test -z "$ac_c_werror_flag" ||
31201 test ! -s conftest.err
31202 } && test -s conftest.$ac_objext; then
31203 ac_cv_have_decl_sys_siglist=yes
31205 $as_echo "$as_me: failed program was:" >&5
31206 sed 's/^/| /' conftest.$ac_ext >&5
31208 ac_cv_have_decl_sys_siglist=no
31211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31213 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
31214 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
31215 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
31217 cat >>confdefs.h <<_ACEOF
31218 #define HAVE_DECL_SYS_SIGLIST 1
31223 cat >>confdefs.h <<_ACEOF
31224 #define HAVE_DECL_SYS_SIGLIST 0
31234 for ac_func in fork
31236 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31237 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
31238 $as_echo_n "checking for $ac_func... " >&6; }
31239 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31240 $as_echo_n "(cached) " >&6
31242 cat >conftest.$ac_ext <<_ACEOF
31245 cat confdefs.h >>conftest.$ac_ext
31246 cat >>conftest.$ac_ext <<_ACEOF
31247 /* end confdefs.h. */
31248 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31250 #define $ac_func innocuous_$ac_func
31252 /* System header to define __stub macros and hopefully few prototypes,
31253 which can conflict with char $ac_func (); below.
31254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31255 <limits.h> exists even on freestanding compilers. */
31258 # include <limits.h>
31260 # include <assert.h>
31265 /* Override any GCC internal prototype to avoid an error.
31266 Use char because int might match the return type of a GCC
31267 builtin and then its argument prototype would still apply. */
31272 /* The GNU C library defines this for functions which it implements
31273 to always fail with ENOSYS. Some functions are actually named
31274 something starting with __ and the normal name is an alias. */
31275 #if defined __stub_$ac_func || defined __stub___$ac_func
31282 return $ac_func ();
31287 rm -f conftest.$ac_objext conftest$ac_exeext
31288 if { (ac_try="$ac_link"
31289 case "(($ac_try" in
31290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31291 *) ac_try_echo=$ac_try;;
31293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31294 $as_echo "$ac_try_echo") >&5
31295 (eval "$ac_link") 2>conftest.er1
31297 grep -v '^ *+' conftest.er1 >conftest.err
31299 cat conftest.err >&5
31300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31301 (exit $ac_status); } && {
31302 test -z "$ac_c_werror_flag" ||
31303 test ! -s conftest.err
31304 } && test -s conftest$ac_exeext && {
31305 test "$cross_compiling" = yes ||
31306 $as_test_x conftest$ac_exeext
31308 eval "$as_ac_var=yes"
31310 $as_echo "$as_me: failed program was:" >&5
31311 sed 's/^/| /' conftest.$ac_ext >&5
31313 eval "$as_ac_var=no"
31316 rm -rf conftest.dSYM
31317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31318 conftest$ac_exeext conftest.$ac_ext
31320 ac_res=`eval 'as_val=${'$as_ac_var'}
31321 $as_echo "$as_val"'`
31322 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31323 $as_echo "$ac_res" >&6; }
31324 as_val=`eval 'as_val=${'$as_ac_var'}
31325 $as_echo "$as_val"'`
31326 if test "x$as_val" = x""yes; then
31327 cat >>confdefs.h <<_ACEOF
31328 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31337 { $as_echo "$as_me:$LINENO: checking for inet_addr" >&5
31338 $as_echo_n "checking for inet_addr... " >&6; }
31339 if test "${ac_cv_func_inet_addr+set}" = set; then
31340 $as_echo_n "(cached) " >&6
31343 cat >conftest.$ac_ext <<_ACEOF
31346 cat confdefs.h >>conftest.$ac_ext
31347 cat >>conftest.$ac_ext <<_ACEOF
31348 /* end confdefs.h. */
31350 #ifdef HAVE_SYS_TYPES_H
31351 #include <sys/types.h>
31353 #ifdef HAVE_ARPA_INET_H
31354 #include <arpa/inet.h>
31361 inet_addr("127.0.0.1");
31367 rm -f conftest.$ac_objext
31368 if { (ac_try="$ac_compile"
31369 case "(($ac_try" in
31370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31371 *) ac_try_echo=$ac_try;;
31373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31374 $as_echo "$ac_try_echo") >&5
31375 (eval "$ac_compile") 2>conftest.er1
31377 grep -v '^ *+' conftest.er1 >conftest.err
31379 cat conftest.err >&5
31380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31381 (exit $ac_status); } && {
31382 test -z "$ac_c_werror_flag" ||
31383 test ! -s conftest.err
31384 } && test -s conftest.$ac_objext; then
31386 ac_cv_func_inet_addr=yes
31389 $as_echo "$as_me: failed program was:" >&5
31390 sed 's/^/| /' conftest.$ac_ext >&5
31393 ac_cv_func_inet_addr=no
31397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31400 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_inet_addr" >&5
31401 $as_echo "$ac_cv_func_inet_addr" >&6; }
31403 if test "$ac_cv_func_inet_addr" = "yes"; then
31410 { $as_echo "$as_me:$LINENO: checking for inet_network" >&5
31411 $as_echo_n "checking for inet_network... " >&6; }
31412 if test "${ac_cv_func_inet_network+set}" = set; then
31413 $as_echo_n "(cached) " >&6
31416 cat >conftest.$ac_ext <<_ACEOF
31419 cat confdefs.h >>conftest.$ac_ext
31420 cat >>conftest.$ac_ext <<_ACEOF
31421 /* end confdefs.h. */
31423 #ifdef HAVE_SYS_TYPES_H
31424 #include <sys/types.h>
31426 #ifdef HAVE_ARPA_INET_H
31427 #include <arpa/inet.h>
31434 inet_network("127.0.0.1");
31440 rm -f conftest.$ac_objext
31441 if { (ac_try="$ac_compile"
31442 case "(($ac_try" in
31443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31444 *) ac_try_echo=$ac_try;;
31446 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31447 $as_echo "$ac_try_echo") >&5
31448 (eval "$ac_compile") 2>conftest.er1
31450 grep -v '^ *+' conftest.er1 >conftest.err
31452 cat conftest.err >&5
31453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31454 (exit $ac_status); } && {
31455 test -z "$ac_c_werror_flag" ||
31456 test ! -s conftest.err
31457 } && test -s conftest.$ac_objext; then
31459 ac_cv_func_inet_network=yes
31462 $as_echo "$as_me: failed program was:" >&5
31463 sed 's/^/| /' conftest.$ac_ext >&5
31466 ac_cv_func_inet_network=no
31470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31473 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_inet_network" >&5
31474 $as_echo "$ac_cv_func_inet_network" >&6; }
31476 if test "$ac_cv_func_inet_network" = "yes"; then
31477 have_inet_network=1
31479 have_inet_network=0
31483 { $as_echo "$as_me:$LINENO: checking for _getch" >&5
31484 $as_echo_n "checking for _getch... " >&6; }
31485 if test "${ac_cv_func__getch+set}" = set; then
31486 $as_echo_n "(cached) " >&6
31488 cat >conftest.$ac_ext <<_ACEOF
31491 cat confdefs.h >>conftest.$ac_ext
31492 cat >>conftest.$ac_ext <<_ACEOF
31493 /* end confdefs.h. */
31494 /* Define _getch to an innocuous variant, in case <limits.h> declares _getch.
31495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31496 #define _getch innocuous__getch
31498 /* System header to define __stub macros and hopefully few prototypes,
31499 which can conflict with char _getch (); below.
31500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31501 <limits.h> exists even on freestanding compilers. */
31504 # include <limits.h>
31506 # include <assert.h>
31511 /* Override any GCC internal prototype to avoid an error.
31512 Use char because int might match the return type of a GCC
31513 builtin and then its argument prototype would still apply. */
31518 /* The GNU C library defines this for functions which it implements
31519 to always fail with ENOSYS. Some functions are actually named
31520 something starting with __ and the normal name is an alias. */
31521 #if defined __stub__getch || defined __stub____getch
31533 rm -f conftest.$ac_objext conftest$ac_exeext
31534 if { (ac_try="$ac_link"
31535 case "(($ac_try" in
31536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31537 *) ac_try_echo=$ac_try;;
31539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31540 $as_echo "$ac_try_echo") >&5
31541 (eval "$ac_link") 2>conftest.er1
31543 grep -v '^ *+' conftest.er1 >conftest.err
31545 cat conftest.err >&5
31546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31547 (exit $ac_status); } && {
31548 test -z "$ac_c_werror_flag" ||
31549 test ! -s conftest.err
31550 } && test -s conftest$ac_exeext && {
31551 test "$cross_compiling" = yes ||
31552 $as_test_x conftest$ac_exeext
31554 ac_cv_func__getch=yes
31556 $as_echo "$as_me: failed program was:" >&5
31557 sed 's/^/| /' conftest.$ac_ext >&5
31559 ac_cv_func__getch=no
31562 rm -rf conftest.dSYM
31563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31564 conftest$ac_exeext conftest.$ac_ext
31566 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__getch" >&5
31567 $as_echo "$ac_cv_func__getch" >&6; }
31570 for ac_func in strerror_r
31572 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31573 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
31574 $as_echo_n "checking for $ac_func... " >&6; }
31575 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31576 $as_echo_n "(cached) " >&6
31578 cat >conftest.$ac_ext <<_ACEOF
31581 cat confdefs.h >>conftest.$ac_ext
31582 cat >>conftest.$ac_ext <<_ACEOF
31583 /* end confdefs.h. */
31584 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31586 #define $ac_func innocuous_$ac_func
31588 /* System header to define __stub macros and hopefully few prototypes,
31589 which can conflict with char $ac_func (); below.
31590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31591 <limits.h> exists even on freestanding compilers. */
31594 # include <limits.h>
31596 # include <assert.h>
31601 /* Override any GCC internal prototype to avoid an error.
31602 Use char because int might match the return type of a GCC
31603 builtin and then its argument prototype would still apply. */
31608 /* The GNU C library defines this for functions which it implements
31609 to always fail with ENOSYS. Some functions are actually named
31610 something starting with __ and the normal name is an alias. */
31611 #if defined __stub_$ac_func || defined __stub___$ac_func
31618 return $ac_func ();
31623 rm -f conftest.$ac_objext conftest$ac_exeext
31624 if { (ac_try="$ac_link"
31625 case "(($ac_try" in
31626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31627 *) ac_try_echo=$ac_try;;
31629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31630 $as_echo "$ac_try_echo") >&5
31631 (eval "$ac_link") 2>conftest.er1
31633 grep -v '^ *+' conftest.er1 >conftest.err
31635 cat conftest.err >&5
31636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31637 (exit $ac_status); } && {
31638 test -z "$ac_c_werror_flag" ||
31639 test ! -s conftest.err
31640 } && test -s conftest$ac_exeext && {
31641 test "$cross_compiling" = yes ||
31642 $as_test_x conftest$ac_exeext
31644 eval "$as_ac_var=yes"
31646 $as_echo "$as_me: failed program was:" >&5
31647 sed 's/^/| /' conftest.$ac_ext >&5
31649 eval "$as_ac_var=no"
31652 rm -rf conftest.dSYM
31653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31654 conftest$ac_exeext conftest.$ac_ext
31656 ac_res=`eval 'as_val=${'$as_ac_var'}
31657 $as_echo "$as_val"'`
31658 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31659 $as_echo "$ac_res" >&6; }
31660 as_val=`eval 'as_val=${'$as_ac_var'}
31661 $as_echo "$as_val"'`
31662 if test "x$as_val" = x""yes; then
31663 cat >>confdefs.h <<_ACEOF
31664 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31672 if test "$strerror_r" = "1"; then
31674 { $as_echo "$as_me:$LINENO: checking for type of return code from strerror_r" >&5
31675 $as_echo_n "checking for type of return code from strerror_r... " >&6; }
31676 if test "$cross_compiling" = yes; then
31678 ac_cv_strerror_r_rc_int=no
31680 cat >conftest.$ac_ext <<_ACEOF
31683 cat confdefs.h >>conftest.$ac_ext
31684 cat >>conftest.$ac_ext <<_ACEOF
31685 /* end confdefs.h. */
31688 #include <string.h>
31693 if (strerror_r(ERANGE, buf, sizeof buf) < 1) {
31701 rm -f conftest$ac_exeext
31702 if { (ac_try="$ac_link"
31703 case "(($ac_try" in
31704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31705 *) ac_try_echo=$ac_try;;
31707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31708 $as_echo "$ac_try_echo") >&5
31709 (eval "$ac_link") 2>&5
31711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31712 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31713 { (case "(($ac_try" in
31714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31715 *) ac_try_echo=$ac_try;;
31717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31718 $as_echo "$ac_try_echo") >&5
31719 (eval "$ac_try") 2>&5
31721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31722 (exit $ac_status); }; }; then
31724 ac_cv_strerror_r_rc_int=yes
31726 $as_echo "$as_me: program exited with status $ac_status" >&5
31727 $as_echo "$as_me: failed program was:" >&5
31728 sed 's/^/| /' conftest.$ac_ext >&5
31730 ( exit $ac_status )
31732 ac_cv_strerror_r_rc_int=no
31734 rm -rf conftest.dSYM
31735 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31739 if test "x$ac_cv_strerror_r_rc_int" = xyes; then
31741 cat >>confdefs.h <<\_ACEOF
31742 #define STRERROR_R_RC_INT 1
31749 { $as_echo "$as_me:$LINENO: result: $msg" >&5
31750 $as_echo "$msg" >&6; }
31754 for ac_func in crypt_r
31756 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31757 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
31758 $as_echo_n "checking for $ac_func... " >&6; }
31759 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31760 $as_echo_n "(cached) " >&6
31762 cat >conftest.$ac_ext <<_ACEOF
31765 cat confdefs.h >>conftest.$ac_ext
31766 cat >>conftest.$ac_ext <<_ACEOF
31767 /* end confdefs.h. */
31768 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31770 #define $ac_func innocuous_$ac_func
31772 /* System header to define __stub macros and hopefully few prototypes,
31773 which can conflict with char $ac_func (); below.
31774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31775 <limits.h> exists even on freestanding compilers. */
31778 # include <limits.h>
31780 # include <assert.h>
31785 /* Override any GCC internal prototype to avoid an error.
31786 Use char because int might match the return type of a GCC
31787 builtin and then its argument prototype would still apply. */
31792 /* The GNU C library defines this for functions which it implements
31793 to always fail with ENOSYS. Some functions are actually named
31794 something starting with __ and the normal name is an alias. */
31795 #if defined __stub_$ac_func || defined __stub___$ac_func
31802 return $ac_func ();
31807 rm -f conftest.$ac_objext conftest$ac_exeext
31808 if { (ac_try="$ac_link"
31809 case "(($ac_try" in
31810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31811 *) ac_try_echo=$ac_try;;
31813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31814 $as_echo "$ac_try_echo") >&5
31815 (eval "$ac_link") 2>conftest.er1
31817 grep -v '^ *+' conftest.er1 >conftest.err
31819 cat conftest.err >&5
31820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31821 (exit $ac_status); } && {
31822 test -z "$ac_c_werror_flag" ||
31823 test ! -s conftest.err
31824 } && test -s conftest$ac_exeext && {
31825 test "$cross_compiling" = yes ||
31826 $as_test_x conftest$ac_exeext
31828 eval "$as_ac_var=yes"
31830 $as_echo "$as_me: failed program was:" >&5
31831 sed 's/^/| /' conftest.$ac_ext >&5
31833 eval "$as_ac_var=no"
31836 rm -rf conftest.dSYM
31837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31838 conftest$ac_exeext conftest.$ac_ext
31840 ac_res=`eval 'as_val=${'$as_ac_var'}
31841 $as_echo "$as_val"'`
31842 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31843 $as_echo "$ac_res" >&6; }
31844 as_val=`eval 'as_val=${'$as_ac_var'}
31845 $as_echo "$as_val"'`
31846 if test "x$as_val" = x""yes; then
31847 cat >>confdefs.h <<_ACEOF
31848 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31856 if test "$crypt_r" = "1"; then
31858 { $as_echo "$as_me:$LINENO: checking style of crypt_r" >&5
31859 $as_echo_n "checking style of crypt_r... " >&6; }
31860 if test "${ac_cv_crypt_r_style+set}" = set; then
31861 $as_echo_n "(cached) " >&6
31864 ac_cv_crypt_r_style=none
31865 cat >conftest.$ac_ext <<_ACEOF
31868 cat confdefs.h >>conftest.$ac_ext
31869 cat >>conftest.$ac_ext <<_ACEOF
31870 /* end confdefs.h. */
31879 crypt_r("passwd", "hash", &buffer);
31885 rm -f conftest.$ac_objext
31886 if { (ac_try="$ac_compile"
31887 case "(($ac_try" in
31888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31889 *) ac_try_echo=$ac_try;;
31891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31892 $as_echo "$ac_try_echo") >&5
31893 (eval "$ac_compile") 2>conftest.er1
31895 grep -v '^ *+' conftest.er1 >conftest.err
31897 cat conftest.err >&5
31898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31899 (exit $ac_status); } && {
31900 test -z "$ac_c_werror_flag" ||
31901 test ! -s conftest.err
31902 } && test -s conftest.$ac_objext; then
31903 ac_cv_crypt_r_style=cryptd
31905 $as_echo "$as_me: failed program was:" >&5
31906 sed 's/^/| /' conftest.$ac_ext >&5
31911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31912 if test "$ac_cv_crypt_r_style" = "none"; then
31913 cat >conftest.$ac_ext <<_ACEOF
31916 cat confdefs.h >>conftest.$ac_ext
31917 cat >>conftest.$ac_ext <<_ACEOF
31918 /* end confdefs.h. */
31926 struct crypt_data buffer;
31927 crypt_r("passwd", "hash", &buffer);
31933 rm -f conftest.$ac_objext
31934 if { (ac_try="$ac_compile"
31935 case "(($ac_try" in
31936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31937 *) ac_try_echo=$ac_try;;
31939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31940 $as_echo "$ac_try_echo") >&5
31941 (eval "$ac_compile") 2>conftest.er1
31943 grep -v '^ *+' conftest.er1 >conftest.err
31945 cat conftest.err >&5
31946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31947 (exit $ac_status); } && {
31948 test -z "$ac_c_werror_flag" ||
31949 test ! -s conftest.err
31950 } && test -s conftest.$ac_objext; then
31951 ac_cv_crypt_r_style=struct_crypt_data
31953 $as_echo "$as_me: failed program was:" >&5
31954 sed 's/^/| /' conftest.$ac_ext >&5
31959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31963 { $as_echo "$as_me:$LINENO: result: $ac_cv_crypt_r_style" >&5
31964 $as_echo "$ac_cv_crypt_r_style" >&6; }
31965 if test "$ac_cv_crypt_r_style" = "cryptd"; then
31967 cat >>confdefs.h <<\_ACEOF
31968 #define CRYPT_R_CRYPTD 1
31972 # if we don't combine these conditions, CRYPT_R_STRUCT_CRYPT_DATA
31973 # will end up defined twice
31974 if test "$ac_cv_crypt_r_style" = "struct_crypt_data"; then
31976 cat >>confdefs.h <<\_ACEOF
31977 #define CRYPT_R_STRUCT_CRYPT_DATA 1
31984 for ac_func in mmap
31986 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31987 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
31988 $as_echo_n "checking for $ac_func... " >&6; }
31989 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31990 $as_echo_n "(cached) " >&6
31992 cat >conftest.$ac_ext <<_ACEOF
31995 cat confdefs.h >>conftest.$ac_ext
31996 cat >>conftest.$ac_ext <<_ACEOF
31997 /* end confdefs.h. */
31998 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32000 #define $ac_func innocuous_$ac_func
32002 /* System header to define __stub macros and hopefully few prototypes,
32003 which can conflict with char $ac_func (); below.
32004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32005 <limits.h> exists even on freestanding compilers. */
32008 # include <limits.h>
32010 # include <assert.h>
32015 /* Override any GCC internal prototype to avoid an error.
32016 Use char because int might match the return type of a GCC
32017 builtin and then its argument prototype would still apply. */
32022 /* The GNU C library defines this for functions which it implements
32023 to always fail with ENOSYS. Some functions are actually named
32024 something starting with __ and the normal name is an alias. */
32025 #if defined __stub_$ac_func || defined __stub___$ac_func
32032 return $ac_func ();
32037 rm -f conftest.$ac_objext conftest$ac_exeext
32038 if { (ac_try="$ac_link"
32039 case "(($ac_try" in
32040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32041 *) ac_try_echo=$ac_try;;
32043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32044 $as_echo "$ac_try_echo") >&5
32045 (eval "$ac_link") 2>conftest.er1
32047 grep -v '^ *+' conftest.er1 >conftest.err
32049 cat conftest.err >&5
32050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32051 (exit $ac_status); } && {
32052 test -z "$ac_c_werror_flag" ||
32053 test ! -s conftest.err
32054 } && test -s conftest$ac_exeext && {
32055 test "$cross_compiling" = yes ||
32056 $as_test_x conftest$ac_exeext
32058 eval "$as_ac_var=yes"
32060 $as_echo "$as_me: failed program was:" >&5
32061 sed 's/^/| /' conftest.$ac_ext >&5
32063 eval "$as_ac_var=no"
32066 rm -rf conftest.dSYM
32067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32068 conftest$ac_exeext conftest.$ac_ext
32070 ac_res=`eval 'as_val=${'$as_ac_var'}
32071 $as_echo "$as_val"'`
32072 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32073 $as_echo "$ac_res" >&6; }
32074 as_val=`eval 'as_val=${'$as_ac_var'}
32075 $as_echo "$as_val"'`
32076 if test "x$as_val" = x""yes; then
32077 cat >>confdefs.h <<_ACEOF
32078 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32086 if test "$native_mmap_emul" = "1"; then
32090 for ac_func in memmove
32092 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32093 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
32094 $as_echo_n "checking for $ac_func... " >&6; }
32095 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32096 $as_echo_n "(cached) " >&6
32098 cat >conftest.$ac_ext <<_ACEOF
32101 cat confdefs.h >>conftest.$ac_ext
32102 cat >>conftest.$ac_ext <<_ACEOF
32103 /* end confdefs.h. */
32104 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32105 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32106 #define $ac_func innocuous_$ac_func
32108 /* System header to define __stub macros and hopefully few prototypes,
32109 which can conflict with char $ac_func (); below.
32110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32111 <limits.h> exists even on freestanding compilers. */
32114 # include <limits.h>
32116 # include <assert.h>
32121 /* Override any GCC internal prototype to avoid an error.
32122 Use char because int might match the return type of a GCC
32123 builtin and then its argument prototype would still apply. */
32128 /* The GNU C library defines this for functions which it implements
32129 to always fail with ENOSYS. Some functions are actually named
32130 something starting with __ and the normal name is an alias. */
32131 #if defined __stub_$ac_func || defined __stub___$ac_func
32138 return $ac_func ();
32143 rm -f conftest.$ac_objext conftest$ac_exeext
32144 if { (ac_try="$ac_link"
32145 case "(($ac_try" in
32146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32147 *) ac_try_echo=$ac_try;;
32149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32150 $as_echo "$ac_try_echo") >&5
32151 (eval "$ac_link") 2>conftest.er1
32153 grep -v '^ *+' conftest.er1 >conftest.err
32155 cat conftest.err >&5
32156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32157 (exit $ac_status); } && {
32158 test -z "$ac_c_werror_flag" ||
32159 test ! -s conftest.err
32160 } && test -s conftest$ac_exeext && {
32161 test "$cross_compiling" = yes ||
32162 $as_test_x conftest$ac_exeext
32164 eval "$as_ac_var=yes"
32166 $as_echo "$as_me: failed program was:" >&5
32167 sed 's/^/| /' conftest.$ac_ext >&5
32169 eval "$as_ac_var=no"
32172 rm -rf conftest.dSYM
32173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32174 conftest$ac_exeext conftest.$ac_ext
32176 ac_res=`eval 'as_val=${'$as_ac_var'}
32177 $as_echo "$as_val"'`
32178 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32179 $as_echo "$ac_res" >&6; }
32180 as_val=`eval 'as_val=${'$as_ac_var'}
32181 $as_echo "$as_val"'`
32182 if test "x$as_val" = x""yes; then
32183 cat >>confdefs.h <<_ACEOF
32184 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32198 for ac_func in getpass getpassphrase gmtime_r localtime_r hstrerror mkstemp
32200 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32201 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
32202 $as_echo_n "checking for $ac_func... " >&6; }
32203 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32204 $as_echo_n "(cached) " >&6
32206 cat >conftest.$ac_ext <<_ACEOF
32209 cat confdefs.h >>conftest.$ac_ext
32210 cat >>conftest.$ac_ext <<_ACEOF
32211 /* end confdefs.h. */
32212 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32213 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32214 #define $ac_func innocuous_$ac_func
32216 /* System header to define __stub macros and hopefully few prototypes,
32217 which can conflict with char $ac_func (); below.
32218 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32219 <limits.h> exists even on freestanding compilers. */
32222 # include <limits.h>
32224 # include <assert.h>
32229 /* Override any GCC internal prototype to avoid an error.
32230 Use char because int might match the return type of a GCC
32231 builtin and then its argument prototype would still apply. */
32236 /* The GNU C library defines this for functions which it implements
32237 to always fail with ENOSYS. Some functions are actually named
32238 something starting with __ and the normal name is an alias. */
32239 #if defined __stub_$ac_func || defined __stub___$ac_func
32246 return $ac_func ();
32251 rm -f conftest.$ac_objext conftest$ac_exeext
32252 if { (ac_try="$ac_link"
32253 case "(($ac_try" in
32254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32255 *) ac_try_echo=$ac_try;;
32257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32258 $as_echo "$ac_try_echo") >&5
32259 (eval "$ac_link") 2>conftest.er1
32261 grep -v '^ *+' conftest.er1 >conftest.err
32263 cat conftest.err >&5
32264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32265 (exit $ac_status); } && {
32266 test -z "$ac_c_werror_flag" ||
32267 test ! -s conftest.err
32268 } && test -s conftest$ac_exeext && {
32269 test "$cross_compiling" = yes ||
32270 $as_test_x conftest$ac_exeext
32272 eval "$as_ac_var=yes"
32274 $as_echo "$as_me: failed program was:" >&5
32275 sed 's/^/| /' conftest.$ac_ext >&5
32277 eval "$as_ac_var=no"
32280 rm -rf conftest.dSYM
32281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32282 conftest$ac_exeext conftest.$ac_ext
32284 ac_res=`eval 'as_val=${'$as_ac_var'}
32285 $as_echo "$as_val"'`
32286 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32287 $as_echo "$ac_res" >&6; }
32288 as_val=`eval 'as_val=${'$as_ac_var'}
32289 $as_echo "$as_val"'`
32290 if test "x$as_val" = x""yes; then
32291 cat >>confdefs.h <<_ACEOF
32292 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32311 { $as_echo "$as_me:$LINENO: checking whether sigwait takes one argument" >&5
32312 $as_echo_n "checking whether sigwait takes one argument... " >&6; }
32313 if test "${ac_cv_sigwait_one_arg+set}" = set; then
32314 $as_echo_n "(cached) " >&6
32317 cat >conftest.$ac_ext <<_ACEOF
32320 cat confdefs.h >>conftest.$ac_ext
32321 cat >>conftest.$ac_ext <<_ACEOF
32322 /* end confdefs.h. */
32324 #if defined(__NETBSD__) || defined(DARWIN)
32325 /* When using the unproven-pthreads package, we need to pull in this
32326 * header to get a prototype for sigwait(). Else things will fail later
32327 * on. XXX Should probably be fixed in the unproven-pthreads package.
32328 * Darwin is declaring sigwait() in the wrong place as well.
32330 #include <pthread.h>
32332 #include <signal.h>
32346 rm -f conftest.$ac_objext
32347 if { (ac_try="$ac_compile"
32348 case "(($ac_try" in
32349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32350 *) ac_try_echo=$ac_try;;
32352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32353 $as_echo "$ac_try_echo") >&5
32354 (eval "$ac_compile") 2>conftest.er1
32356 grep -v '^ *+' conftest.er1 >conftest.err
32358 cat conftest.err >&5
32359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32360 (exit $ac_status); } && {
32361 test -z "$ac_c_werror_flag" ||
32362 test ! -s conftest.err
32363 } && test -s conftest.$ac_objext; then
32365 ac_cv_sigwait_one_arg=yes
32368 $as_echo "$as_me: failed program was:" >&5
32369 sed 's/^/| /' conftest.$ac_ext >&5
32372 ac_cv_sigwait_one_arg=no
32376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32378 { $as_echo "$as_me:$LINENO: result: $ac_cv_sigwait_one_arg" >&5
32379 $as_echo "$ac_cv_sigwait_one_arg" >&6; }
32380 if test "$ac_cv_sigwait_one_arg" = "yes"; then
32382 cat >>confdefs.h <<\_ACEOF
32383 #define SIGWAIT_TAKES_ONE_ARG 1
32389 { $as_echo "$as_me:$LINENO: checking for inode member of struct dirent" >&5
32390 $as_echo_n "checking for inode member of struct dirent... " >&6; }
32391 if test "${apr_cv_dirent_inode+set}" = set; then
32392 $as_echo_n "(cached) " >&6
32395 apr_cv_dirent_inode=no
32396 cat >conftest.$ac_ext <<_ACEOF
32399 cat confdefs.h >>conftest.$ac_ext
32400 cat >>conftest.$ac_ext <<_ACEOF
32401 /* end confdefs.h. */
32403 #include <sys/types.h>
32404 #include <dirent.h>
32413 struct dirent de; de.d_fileno;
32419 rm -f conftest.$ac_objext
32420 if { (ac_try="$ac_compile"
32421 case "(($ac_try" in
32422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32423 *) ac_try_echo=$ac_try;;
32425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32426 $as_echo "$ac_try_echo") >&5
32427 (eval "$ac_compile") 2>conftest.er1
32429 grep -v '^ *+' conftest.er1 >conftest.err
32431 cat conftest.err >&5
32432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32433 (exit $ac_status); } && {
32434 test -z "$ac_c_werror_flag" ||
32435 test ! -s conftest.err
32436 } && test -s conftest.$ac_objext; then
32437 apr_cv_dirent_inode=d_fileno
32439 $as_echo "$as_me: failed program was:" >&5
32440 sed 's/^/| /' conftest.$ac_ext >&5
32445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32446 if test "$apr_cv_dirent_inode" = "no"; then
32447 cat >conftest.$ac_ext <<_ACEOF
32450 cat confdefs.h >>conftest.$ac_ext
32451 cat >>conftest.$ac_ext <<_ACEOF
32452 /* end confdefs.h. */
32454 #include <sys/types.h>
32455 #include <dirent.h>
32464 struct dirent de; de.d_ino;
32470 rm -f conftest.$ac_objext
32471 if { (ac_try="$ac_compile"
32472 case "(($ac_try" in
32473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32474 *) ac_try_echo=$ac_try;;
32476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32477 $as_echo "$ac_try_echo") >&5
32478 (eval "$ac_compile") 2>conftest.er1
32480 grep -v '^ *+' conftest.er1 >conftest.err
32482 cat conftest.err >&5
32483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32484 (exit $ac_status); } && {
32485 test -z "$ac_c_werror_flag" ||
32486 test ! -s conftest.err
32487 } && test -s conftest.$ac_objext; then
32488 apr_cv_dirent_inode=d_ino
32490 $as_echo "$as_me: failed program was:" >&5
32491 sed 's/^/| /' conftest.$ac_ext >&5
32496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32500 { $as_echo "$as_me:$LINENO: result: $apr_cv_dirent_inode" >&5
32501 $as_echo "$apr_cv_dirent_inode" >&6; }
32502 if test "$apr_cv_dirent_inode" != "no"; then
32503 cat >>confdefs.h <<_ACEOF
32504 #define DIRENT_INODE $apr_cv_dirent_inode
32510 { $as_echo "$as_me:$LINENO: checking for file type member of struct dirent" >&5
32511 $as_echo_n "checking for file type member of struct dirent... " >&6; }
32512 if test "${apr_cv_dirent_type+set}" = set; then
32513 $as_echo_n "(cached) " >&6
32516 apr_cv_dirent_type=no
32517 cat >conftest.$ac_ext <<_ACEOF
32520 cat confdefs.h >>conftest.$ac_ext
32521 cat >>conftest.$ac_ext <<_ACEOF
32522 /* end confdefs.h. */
32524 #include <sys/types.h>
32525 #include <dirent.h>
32531 struct dirent de; de.d_type = DT_REG;
32537 rm -f conftest.$ac_objext
32538 if { (ac_try="$ac_compile"
32539 case "(($ac_try" in
32540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32541 *) ac_try_echo=$ac_try;;
32543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32544 $as_echo "$ac_try_echo") >&5
32545 (eval "$ac_compile") 2>conftest.er1
32547 grep -v '^ *+' conftest.er1 >conftest.err
32549 cat conftest.err >&5
32550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32551 (exit $ac_status); } && {
32552 test -z "$ac_c_werror_flag" ||
32553 test ! -s conftest.err
32554 } && test -s conftest.$ac_objext; then
32555 apr_cv_dirent_type=d_type
32557 $as_echo "$as_me: failed program was:" >&5
32558 sed 's/^/| /' conftest.$ac_ext >&5
32563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32566 { $as_echo "$as_me:$LINENO: result: $apr_cv_dirent_type" >&5
32567 $as_echo "$apr_cv_dirent_type" >&6; }
32568 if test "$apr_cv_dirent_type" != "no"; then
32569 cat >>confdefs.h <<_ACEOF
32570 #define DIRENT_TYPE $apr_cv_dirent_type
32576 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
32577 $as_echo_n "checking for ANSI C header files... " >&6; }
32578 if test "${ac_cv_header_stdc+set}" = set; then
32579 $as_echo_n "(cached) " >&6
32581 cat >conftest.$ac_ext <<_ACEOF
32584 cat confdefs.h >>conftest.$ac_ext
32585 cat >>conftest.$ac_ext <<_ACEOF
32586 /* end confdefs.h. */
32587 #include <stdlib.h>
32588 #include <stdarg.h>
32589 #include <string.h>
32600 rm -f conftest.$ac_objext
32601 if { (ac_try="$ac_compile"
32602 case "(($ac_try" in
32603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32604 *) ac_try_echo=$ac_try;;
32606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32607 $as_echo "$ac_try_echo") >&5
32608 (eval "$ac_compile") 2>conftest.er1
32610 grep -v '^ *+' conftest.er1 >conftest.err
32612 cat conftest.err >&5
32613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32614 (exit $ac_status); } && {
32615 test -z "$ac_c_werror_flag" ||
32616 test ! -s conftest.err
32617 } && test -s conftest.$ac_objext; then
32618 ac_cv_header_stdc=yes
32620 $as_echo "$as_me: failed program was:" >&5
32621 sed 's/^/| /' conftest.$ac_ext >&5
32623 ac_cv_header_stdc=no
32626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32628 if test $ac_cv_header_stdc = yes; then
32629 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
32630 cat >conftest.$ac_ext <<_ACEOF
32633 cat confdefs.h >>conftest.$ac_ext
32634 cat >>conftest.$ac_ext <<_ACEOF
32635 /* end confdefs.h. */
32636 #include <string.h>
32639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32640 $EGREP "memchr" >/dev/null 2>&1; then
32643 ac_cv_header_stdc=no
32649 if test $ac_cv_header_stdc = yes; then
32650 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
32651 cat >conftest.$ac_ext <<_ACEOF
32654 cat confdefs.h >>conftest.$ac_ext
32655 cat >>conftest.$ac_ext <<_ACEOF
32656 /* end confdefs.h. */
32657 #include <stdlib.h>
32660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32661 $EGREP "free" >/dev/null 2>&1; then
32664 ac_cv_header_stdc=no
32670 if test $ac_cv_header_stdc = yes; then
32671 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
32672 if test "$cross_compiling" = yes; then
32675 cat >conftest.$ac_ext <<_ACEOF
32678 cat confdefs.h >>conftest.$ac_ext
32679 cat >>conftest.$ac_ext <<_ACEOF
32680 /* end confdefs.h. */
32682 #include <stdlib.h>
32683 #if ((' ' & 0x0FF) == 0x020)
32684 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
32685 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
32687 # define ISLOWER(c) \
32688 (('a' <= (c) && (c) <= 'i') \
32689 || ('j' <= (c) && (c) <= 'r') \
32690 || ('s' <= (c) && (c) <= 'z'))
32691 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
32694 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
32699 for (i = 0; i < 256; i++)
32700 if (XOR (islower (i), ISLOWER (i))
32701 || toupper (i) != TOUPPER (i))
32706 rm -f conftest$ac_exeext
32707 if { (ac_try="$ac_link"
32708 case "(($ac_try" in
32709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32710 *) ac_try_echo=$ac_try;;
32712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32713 $as_echo "$ac_try_echo") >&5
32714 (eval "$ac_link") 2>&5
32716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32717 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32718 { (case "(($ac_try" in
32719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32720 *) ac_try_echo=$ac_try;;
32722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32723 $as_echo "$ac_try_echo") >&5
32724 (eval "$ac_try") 2>&5
32726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32727 (exit $ac_status); }; }; then
32730 $as_echo "$as_me: program exited with status $ac_status" >&5
32731 $as_echo "$as_me: failed program was:" >&5
32732 sed 's/^/| /' conftest.$ac_ext >&5
32734 ( exit $ac_status )
32735 ac_cv_header_stdc=no
32737 rm -rf conftest.dSYM
32738 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32744 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
32745 $as_echo "$ac_cv_header_stdc" >&6; }
32746 if test $ac_cv_header_stdc = yes; then
32748 cat >>confdefs.h <<\_ACEOF
32749 #define STDC_HEADERS 1
32819 for ac_header in alloca.h \
32862 netinet/sctp_uio.h \
32883 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32885 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
32886 $as_echo_n "checking for $ac_header... " >&6; }
32887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32888 $as_echo_n "(cached) " >&6
32890 ac_res=`eval 'as_val=${'$as_ac_Header'}
32891 $as_echo "$as_val"'`
32892 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32893 $as_echo "$ac_res" >&6; }
32895 # Is the header compilable?
32896 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
32897 $as_echo_n "checking $ac_header usability... " >&6; }
32898 cat >conftest.$ac_ext <<_ACEOF
32901 cat confdefs.h >>conftest.$ac_ext
32902 cat >>conftest.$ac_ext <<_ACEOF
32903 /* end confdefs.h. */
32904 $ac_includes_default
32905 #include <$ac_header>
32907 rm -f conftest.$ac_objext
32908 if { (ac_try="$ac_compile"
32909 case "(($ac_try" in
32910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32911 *) ac_try_echo=$ac_try;;
32913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32914 $as_echo "$ac_try_echo") >&5
32915 (eval "$ac_compile") 2>conftest.er1
32917 grep -v '^ *+' conftest.er1 >conftest.err
32919 cat conftest.err >&5
32920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32921 (exit $ac_status); } && {
32922 test -z "$ac_c_werror_flag" ||
32923 test ! -s conftest.err
32924 } && test -s conftest.$ac_objext; then
32925 ac_header_compiler=yes
32927 $as_echo "$as_me: failed program was:" >&5
32928 sed 's/^/| /' conftest.$ac_ext >&5
32930 ac_header_compiler=no
32933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32934 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32935 $as_echo "$ac_header_compiler" >&6; }
32937 # Is the header present?
32938 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
32939 $as_echo_n "checking $ac_header presence... " >&6; }
32940 cat >conftest.$ac_ext <<_ACEOF
32943 cat confdefs.h >>conftest.$ac_ext
32944 cat >>conftest.$ac_ext <<_ACEOF
32945 /* end confdefs.h. */
32946 #include <$ac_header>
32948 if { (ac_try="$ac_cpp conftest.$ac_ext"
32949 case "(($ac_try" in
32950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32951 *) ac_try_echo=$ac_try;;
32953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32954 $as_echo "$ac_try_echo") >&5
32955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32957 grep -v '^ *+' conftest.er1 >conftest.err
32959 cat conftest.err >&5
32960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32961 (exit $ac_status); } >/dev/null && {
32962 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32963 test ! -s conftest.err
32965 ac_header_preproc=yes
32967 $as_echo "$as_me: failed program was:" >&5
32968 sed 's/^/| /' conftest.$ac_ext >&5
32970 ac_header_preproc=no
32973 rm -f conftest.err conftest.$ac_ext
32974 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32975 $as_echo "$ac_header_preproc" >&6; }
32977 # So? What about this header?
32978 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32980 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32981 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32982 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32983 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32984 ac_header_preproc=yes
32987 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32988 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32989 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32990 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32991 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32992 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32993 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32994 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32995 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32996 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32997 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32998 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33002 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
33003 $as_echo_n "checking for $ac_header... " >&6; }
33004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33005 $as_echo_n "(cached) " >&6
33007 eval "$as_ac_Header=\$ac_header_preproc"
33009 ac_res=`eval 'as_val=${'$as_ac_Header'}
33010 $as_echo "$as_val"'`
33011 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33012 $as_echo "$ac_res" >&6; }
33015 as_val=`eval 'as_val=${'$as_ac_Header'}
33016 $as_echo "$as_val"'`
33017 if test "x$as_val" = x""yes; then
33018 cat >>confdefs.h <<_ACEOF
33019 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33026 for aprt_i in alloca.h \
33069 netinet/sctp_uio.h \
33090 ac_safe=`echo "$aprt_i" | sed 'y%./+-%__p_%'`
33091 aprt_2=`echo "$aprt_i" | sed -e 's%/%_%g' -e 's/\.//g' -e 's/-//g'`
33092 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
33100 # IRIX 6.5 has a problem in <netinet/tcp.h> which prevents it from
33101 # being included by itself. Check for <netinet/tcp.h> manually,
33102 # including another header file first.
33103 { $as_echo "$as_me:$LINENO: checking for netinet/tcp.h" >&5
33104 $as_echo_n "checking for netinet/tcp.h... " >&6; }
33105 if test "${apr_cv_hdr_netinet_tcp_h+set}" = set; then
33106 $as_echo_n "(cached) " >&6
33108 cat >conftest.$ac_ext <<_ACEOF
33111 cat confdefs.h >>conftest.$ac_ext
33112 cat >>conftest.$ac_ext <<_ACEOF
33113 /* end confdefs.h. */
33114 #ifdef HAVE_NETINET_IN_H
33115 #include <netinet/in.h>
33117 #include <netinet/tcp.h>
33120 if { (ac_try="$ac_cpp conftest.$ac_ext"
33121 case "(($ac_try" in
33122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33123 *) ac_try_echo=$ac_try;;
33125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33126 $as_echo "$ac_try_echo") >&5
33127 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33129 grep -v '^ *+' conftest.er1 >conftest.err
33131 cat conftest.err >&5
33132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33133 (exit $ac_status); } >/dev/null && {
33134 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33135 test ! -s conftest.err
33137 apr_cv_hdr_netinet_tcp_h=yes
33139 $as_echo "$as_me: failed program was:" >&5
33140 sed 's/^/| /' conftest.$ac_ext >&5
33142 apr_cv_hdr_netinet_tcp_h=no
33145 rm -f conftest.err conftest.$ac_ext
33147 { $as_echo "$as_me:$LINENO: result: $apr_cv_hdr_netinet_tcp_h" >&5
33148 $as_echo "$apr_cv_hdr_netinet_tcp_h" >&6; }
33149 if test "$apr_cv_hdr_netinet_tcp_h" = "yes"; then
33152 cat >>confdefs.h <<\_ACEOF
33153 #define HAVE_NETINET_TCP_H 1
33196 # Checking for h_errno in <netdb.h>
33197 if test "$netdbh" = "1"; then
33199 { $as_echo "$as_me:$LINENO: checking for h_errno in netdb.h" >&5
33200 $as_echo_n "checking for h_errno in netdb.h... " >&6; }
33201 if test "${ac_cv_h_errno_cppflags+set}" = set; then
33202 $as_echo_n "(cached) " >&6
33206 if test x != x; then
33207 CPPFLAGS="-D $CPPFLAGS"
33209 cat >conftest.$ac_ext <<_ACEOF
33212 cat confdefs.h >>conftest.$ac_ext
33213 cat >>conftest.$ac_ext <<_ACEOF
33214 /* end confdefs.h. */
33216 #ifdef HAVE_SYS_TYPES_H
33217 #include <sys/types.h>
33219 #ifdef HAVE_NETDB_H
33233 rm -f conftest.$ac_objext
33234 if { (ac_try="$ac_compile"
33235 case "(($ac_try" in
33236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33237 *) ac_try_echo=$ac_try;;
33239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33240 $as_echo "$ac_try_echo") >&5
33241 (eval "$ac_compile") 2>conftest.er1
33243 grep -v '^ *+' conftest.er1 >conftest.err
33245 cat conftest.err >&5
33246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33247 (exit $ac_status); } && {
33248 test -z "$ac_c_werror_flag" ||
33249 test ! -s conftest.err
33250 } && test -s conftest.$ac_objext; then
33252 if test x != x; then
33253 ac_cv_h_errno_cppflags=""
33255 ac_cv_h_errno_cppflags=yes
33259 $as_echo "$as_me: failed program was:" >&5
33260 sed 's/^/| /' conftest.$ac_ext >&5
33263 ac_cv_h_errno_cppflags=no
33267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33268 if test "$ac_cv_h_errno_cppflags" = "no"; then
33269 ac_save="$CPPFLAGS"
33270 for flag in _XOPEN_SOURCE_EXTENDED; do
33272 if test x$flag != x; then
33273 CPPFLAGS="-D$flag $CPPFLAGS"
33275 cat >conftest.$ac_ext <<_ACEOF
33278 cat confdefs.h >>conftest.$ac_ext
33279 cat >>conftest.$ac_ext <<_ACEOF
33280 /* end confdefs.h. */
33282 #ifdef HAVE_SYS_TYPES_H
33283 #include <sys/types.h>
33285 #ifdef HAVE_NETDB_H
33299 rm -f conftest.$ac_objext
33300 if { (ac_try="$ac_compile"
33301 case "(($ac_try" in
33302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33303 *) ac_try_echo=$ac_try;;
33305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33306 $as_echo "$ac_try_echo") >&5
33307 (eval "$ac_compile") 2>conftest.er1
33309 grep -v '^ *+' conftest.er1 >conftest.err
33311 cat conftest.err >&5
33312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33313 (exit $ac_status); } && {
33314 test -z "$ac_c_werror_flag" ||
33315 test ! -s conftest.err
33316 } && test -s conftest.$ac_objext; then
33318 if test x$flag != x; then
33319 ac_cv_h_errno_cppflags="$flag"
33321 ac_cv_h_errno_cppflags=yes
33325 $as_echo "$as_me: failed program was:" >&5
33326 sed 's/^/| /' conftest.$ac_ext >&5
33329 ac_cv_h_errno_cppflags=no
33333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33334 if test "$ac_cv_h_errno_cppflags" != "no"; then
33338 CPPFLAGS="$ac_save"
33343 if test "$ac_cv_h_errno_cppflags" != "no"; then
33344 if test "$ac_cv_h_errno_cppflags" != "yes"; then
33345 CPPFLAGS="-D$ac_cv_h_errno_cppflags $CPPFLAGS"
33346 { $as_echo "$as_me:$LINENO: result: yes, with -D$ac_cv_h_errno_cppflags" >&5
33347 $as_echo "yes, with -D$ac_cv_h_errno_cppflags" >&6; }
33349 { $as_echo "$as_me:$LINENO: result: $ac_cv_h_errno_cppflags" >&5
33350 $as_echo "$ac_cv_h_errno_cppflags" >&6; }
33353 { $as_echo "$as_me:$LINENO: result: $ac_cv_h_errno_cppflags" >&5
33354 $as_echo "$ac_cv_h_errno_cppflags" >&6; }
33357 if test "$ac_cv_h_errno_cflags" = "no"; then
33358 { { $as_echo "$as_me:$LINENO: error: can not find h_errno in netdb.h" >&5
33359 $as_echo "$as_me: error: can not find h_errno in netdb.h" >&2;}
33360 { (exit 1); exit 1; }; }
33364 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
33365 $as_echo_n "checking for off_t... " >&6; }
33366 if test "${ac_cv_type_off_t+set}" = set; then
33367 $as_echo_n "(cached) " >&6
33369 ac_cv_type_off_t=no
33370 cat >conftest.$ac_ext <<_ACEOF
33373 cat confdefs.h >>conftest.$ac_ext
33374 cat >>conftest.$ac_ext <<_ACEOF
33375 /* end confdefs.h. */
33376 $ac_includes_default
33380 if (sizeof (off_t))
33386 rm -f conftest.$ac_objext
33387 if { (ac_try="$ac_compile"
33388 case "(($ac_try" in
33389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33390 *) ac_try_echo=$ac_try;;
33392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33393 $as_echo "$ac_try_echo") >&5
33394 (eval "$ac_compile") 2>conftest.er1
33396 grep -v '^ *+' conftest.er1 >conftest.err
33398 cat conftest.err >&5
33399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33400 (exit $ac_status); } && {
33401 test -z "$ac_c_werror_flag" ||
33402 test ! -s conftest.err
33403 } && test -s conftest.$ac_objext; then
33404 cat >conftest.$ac_ext <<_ACEOF
33407 cat confdefs.h >>conftest.$ac_ext
33408 cat >>conftest.$ac_ext <<_ACEOF
33409 /* end confdefs.h. */
33410 $ac_includes_default
33414 if (sizeof ((off_t)))
33420 rm -f conftest.$ac_objext
33421 if { (ac_try="$ac_compile"
33422 case "(($ac_try" in
33423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33424 *) ac_try_echo=$ac_try;;
33426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33427 $as_echo "$ac_try_echo") >&5
33428 (eval "$ac_compile") 2>conftest.er1
33430 grep -v '^ *+' conftest.er1 >conftest.err
33432 cat conftest.err >&5
33433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33434 (exit $ac_status); } && {
33435 test -z "$ac_c_werror_flag" ||
33436 test ! -s conftest.err
33437 } && test -s conftest.$ac_objext; then
33440 $as_echo "$as_me: failed program was:" >&5
33441 sed 's/^/| /' conftest.$ac_ext >&5
33443 ac_cv_type_off_t=yes
33446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33448 $as_echo "$as_me: failed program was:" >&5
33449 sed 's/^/| /' conftest.$ac_ext >&5
33454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33456 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33457 $as_echo "$ac_cv_type_off_t" >&6; }
33458 if test "x$ac_cv_type_off_t" = x""yes; then
33462 cat >>confdefs.h <<_ACEOF
33463 #define off_t long int
33468 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
33469 $as_echo_n "checking for pid_t... " >&6; }
33470 if test "${ac_cv_type_pid_t+set}" = set; then
33471 $as_echo_n "(cached) " >&6
33473 ac_cv_type_pid_t=no
33474 cat >conftest.$ac_ext <<_ACEOF
33477 cat confdefs.h >>conftest.$ac_ext
33478 cat >>conftest.$ac_ext <<_ACEOF
33479 /* end confdefs.h. */
33480 $ac_includes_default
33484 if (sizeof (pid_t))
33490 rm -f conftest.$ac_objext
33491 if { (ac_try="$ac_compile"
33492 case "(($ac_try" in
33493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33494 *) ac_try_echo=$ac_try;;
33496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33497 $as_echo "$ac_try_echo") >&5
33498 (eval "$ac_compile") 2>conftest.er1
33500 grep -v '^ *+' conftest.er1 >conftest.err
33502 cat conftest.err >&5
33503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33504 (exit $ac_status); } && {
33505 test -z "$ac_c_werror_flag" ||
33506 test ! -s conftest.err
33507 } && test -s conftest.$ac_objext; then
33508 cat >conftest.$ac_ext <<_ACEOF
33511 cat confdefs.h >>conftest.$ac_ext
33512 cat >>conftest.$ac_ext <<_ACEOF
33513 /* end confdefs.h. */
33514 $ac_includes_default
33518 if (sizeof ((pid_t)))
33524 rm -f conftest.$ac_objext
33525 if { (ac_try="$ac_compile"
33526 case "(($ac_try" in
33527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33528 *) ac_try_echo=$ac_try;;
33530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33531 $as_echo "$ac_try_echo") >&5
33532 (eval "$ac_compile") 2>conftest.er1
33534 grep -v '^ *+' conftest.er1 >conftest.err
33536 cat conftest.err >&5
33537 $as_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
33544 $as_echo "$as_me: failed program was:" >&5
33545 sed 's/^/| /' conftest.$ac_ext >&5
33547 ac_cv_type_pid_t=yes
33550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33552 $as_echo "$as_me: failed program was:" >&5
33553 sed 's/^/| /' conftest.$ac_ext >&5
33558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33560 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33561 $as_echo "$ac_cv_type_pid_t" >&6; }
33562 if test "x$ac_cv_type_pid_t" = x""yes; then
33566 cat >>confdefs.h <<_ACEOF
33572 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
33573 $as_echo_n "checking for size_t... " >&6; }
33574 if test "${ac_cv_type_size_t+set}" = set; then
33575 $as_echo_n "(cached) " >&6
33577 ac_cv_type_size_t=no
33578 cat >conftest.$ac_ext <<_ACEOF
33581 cat confdefs.h >>conftest.$ac_ext
33582 cat >>conftest.$ac_ext <<_ACEOF
33583 /* end confdefs.h. */
33584 $ac_includes_default
33588 if (sizeof (size_t))
33594 rm -f conftest.$ac_objext
33595 if { (ac_try="$ac_compile"
33596 case "(($ac_try" in
33597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33598 *) ac_try_echo=$ac_try;;
33600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33601 $as_echo "$ac_try_echo") >&5
33602 (eval "$ac_compile") 2>conftest.er1
33604 grep -v '^ *+' conftest.er1 >conftest.err
33606 cat conftest.err >&5
33607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33608 (exit $ac_status); } && {
33609 test -z "$ac_c_werror_flag" ||
33610 test ! -s conftest.err
33611 } && test -s conftest.$ac_objext; then
33612 cat >conftest.$ac_ext <<_ACEOF
33615 cat confdefs.h >>conftest.$ac_ext
33616 cat >>conftest.$ac_ext <<_ACEOF
33617 /* end confdefs.h. */
33618 $ac_includes_default
33622 if (sizeof ((size_t)))
33628 rm -f conftest.$ac_objext
33629 if { (ac_try="$ac_compile"
33630 case "(($ac_try" in
33631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33632 *) ac_try_echo=$ac_try;;
33634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33635 $as_echo "$ac_try_echo") >&5
33636 (eval "$ac_compile") 2>conftest.er1
33638 grep -v '^ *+' conftest.er1 >conftest.err
33640 cat conftest.err >&5
33641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33642 (exit $ac_status); } && {
33643 test -z "$ac_c_werror_flag" ||
33644 test ! -s conftest.err
33645 } && test -s conftest.$ac_objext; then
33648 $as_echo "$as_me: failed program was:" >&5
33649 sed 's/^/| /' conftest.$ac_ext >&5
33651 ac_cv_type_size_t=yes
33654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33656 $as_echo "$as_me: failed program was:" >&5
33657 sed 's/^/| /' conftest.$ac_ext >&5
33662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33664 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33665 $as_echo "$ac_cv_type_size_t" >&6; }
33666 if test "x$ac_cv_type_size_t" = x""yes; then
33670 cat >>confdefs.h <<_ACEOF
33671 #define size_t unsigned int
33676 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33677 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
33678 if test "${ac_cv_type_uid_t+set}" = set; then
33679 $as_echo_n "(cached) " >&6
33681 cat >conftest.$ac_ext <<_ACEOF
33684 cat confdefs.h >>conftest.$ac_ext
33685 cat >>conftest.$ac_ext <<_ACEOF
33686 /* end confdefs.h. */
33687 #include <sys/types.h>
33690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33691 $EGREP "uid_t" >/dev/null 2>&1; then
33692 ac_cv_type_uid_t=yes
33694 ac_cv_type_uid_t=no
33699 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33700 $as_echo "$ac_cv_type_uid_t" >&6; }
33701 if test $ac_cv_type_uid_t = no; then
33703 cat >>confdefs.h <<\_ACEOF
33708 cat >>confdefs.h <<\_ACEOF
33714 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
33715 $as_echo_n "checking for ssize_t... " >&6; }
33716 if test "${ac_cv_type_ssize_t+set}" = set; then
33717 $as_echo_n "(cached) " >&6
33719 ac_cv_type_ssize_t=no
33720 cat >conftest.$ac_ext <<_ACEOF
33723 cat confdefs.h >>conftest.$ac_ext
33724 cat >>conftest.$ac_ext <<_ACEOF
33725 /* end confdefs.h. */
33726 $ac_includes_default
33730 if (sizeof (ssize_t))
33736 rm -f conftest.$ac_objext
33737 if { (ac_try="$ac_compile"
33738 case "(($ac_try" in
33739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33740 *) ac_try_echo=$ac_try;;
33742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33743 $as_echo "$ac_try_echo") >&5
33744 (eval "$ac_compile") 2>conftest.er1
33746 grep -v '^ *+' conftest.er1 >conftest.err
33748 cat conftest.err >&5
33749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33750 (exit $ac_status); } && {
33751 test -z "$ac_c_werror_flag" ||
33752 test ! -s conftest.err
33753 } && test -s conftest.$ac_objext; then
33754 cat >conftest.$ac_ext <<_ACEOF
33757 cat confdefs.h >>conftest.$ac_ext
33758 cat >>conftest.$ac_ext <<_ACEOF
33759 /* end confdefs.h. */
33760 $ac_includes_default
33764 if (sizeof ((ssize_t)))
33770 rm -f conftest.$ac_objext
33771 if { (ac_try="$ac_compile"
33772 case "(($ac_try" in
33773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33774 *) ac_try_echo=$ac_try;;
33776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33777 $as_echo "$ac_try_echo") >&5
33778 (eval "$ac_compile") 2>conftest.er1
33780 grep -v '^ *+' conftest.er1 >conftest.err
33782 cat conftest.err >&5
33783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33784 (exit $ac_status); } && {
33785 test -z "$ac_c_werror_flag" ||
33786 test ! -s conftest.err
33787 } && test -s conftest.$ac_objext; then
33790 $as_echo "$as_me: failed program was:" >&5
33791 sed 's/^/| /' conftest.$ac_ext >&5
33793 ac_cv_type_ssize_t=yes
33796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33798 $as_echo "$as_me: failed program was:" >&5
33799 sed 's/^/| /' conftest.$ac_ext >&5
33804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33806 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
33807 $as_echo "$ac_cv_type_ssize_t" >&6; }
33808 if test "x$ac_cv_type_ssize_t" = x""yes; then
33812 cat >>confdefs.h <<_ACEOF
33813 #define ssize_t int
33818 { $as_echo "$as_me:$LINENO: checking for inline" >&5
33819 $as_echo_n "checking for inline... " >&6; }
33820 if test "${ac_cv_c_inline+set}" = set; then
33821 $as_echo_n "(cached) " >&6
33824 for ac_kw in inline __inline__ __inline; do
33825 cat >conftest.$ac_ext <<_ACEOF
33828 cat confdefs.h >>conftest.$ac_ext
33829 cat >>conftest.$ac_ext <<_ACEOF
33830 /* end confdefs.h. */
33831 #ifndef __cplusplus
33833 static $ac_kw foo_t static_foo () {return 0; }
33834 $ac_kw foo_t foo () {return 0; }
33838 rm -f conftest.$ac_objext
33839 if { (ac_try="$ac_compile"
33840 case "(($ac_try" in
33841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33842 *) ac_try_echo=$ac_try;;
33844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33845 $as_echo "$ac_try_echo") >&5
33846 (eval "$ac_compile") 2>conftest.er1
33848 grep -v '^ *+' conftest.er1 >conftest.err
33850 cat conftest.err >&5
33851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33852 (exit $ac_status); } && {
33853 test -z "$ac_c_werror_flag" ||
33854 test ! -s conftest.err
33855 } && test -s conftest.$ac_objext; then
33856 ac_cv_c_inline=$ac_kw
33858 $as_echo "$as_me: failed program was:" >&5
33859 sed 's/^/| /' conftest.$ac_ext >&5
33864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33865 test "$ac_cv_c_inline" != no && break
33869 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
33870 $as_echo "$ac_cv_c_inline" >&6; }
33873 case $ac_cv_c_inline in
33876 case $ac_cv_c_inline in
33878 *) ac_val=$ac_cv_c_inline;;
33880 cat >>confdefs.h <<_ACEOF
33881 #ifndef __cplusplus
33882 #define inline $ac_val
33888 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
33889 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
33890 if test "${ac_cv_c_const+set}" = set; then
33891 $as_echo_n "(cached) " >&6
33893 cat >conftest.$ac_ext <<_ACEOF
33896 cat confdefs.h >>conftest.$ac_ext
33897 cat >>conftest.$ac_ext <<_ACEOF
33898 /* end confdefs.h. */
33903 /* FIXME: Include the comments suggested by Paul. */
33904 #ifndef __cplusplus
33905 /* Ultrix mips cc rejects this. */
33906 typedef int charset[2];
33908 /* SunOS 4.1.1 cc rejects this. */
33909 char const *const *pcpcc;
33911 /* NEC SVR4.0.2 mips cc rejects this. */
33912 struct point {int x, y;};
33913 static struct point const zero = {0,0};
33914 /* AIX XL C 1.02.0.0 rejects this.
33915 It does not let you subtract one const X* pointer from another in
33916 an arm of an if-expression whose if-part is not a constant
33918 const char *g = "string";
33919 pcpcc = &g + (g ? g-g : 0);
33920 /* HPUX 7.0 cc rejects these. */
33922 ppc = (char**) pcpcc;
33923 pcpcc = (char const *const *) ppc;
33924 { /* SCO 3.2v4 cc rejects this. */
33926 char const *s = 0 ? (char *) 0 : (char const *) 0;
33931 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
33932 int x[] = {25, 17};
33933 const int *foo = &x[0];
33936 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
33937 typedef const int *iptr;
33941 { /* AIX XL C 1.02.0.0 rejects this saying
33942 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
33943 struct s { int j; const int *ap[3]; };
33944 struct s *b; b->j = 5;
33946 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
33947 const int foo = 10;
33948 if (!foo) return 0;
33950 return !cs[0] && !zero.x;
33957 rm -f conftest.$ac_objext
33958 if { (ac_try="$ac_compile"
33959 case "(($ac_try" in
33960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33961 *) ac_try_echo=$ac_try;;
33963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33964 $as_echo "$ac_try_echo") >&5
33965 (eval "$ac_compile") 2>conftest.er1
33967 grep -v '^ *+' conftest.er1 >conftest.err
33969 cat conftest.err >&5
33970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33971 (exit $ac_status); } && {
33972 test -z "$ac_c_werror_flag" ||
33973 test ! -s conftest.err
33974 } && test -s conftest.$ac_objext; then
33977 $as_echo "$as_me: failed program was:" >&5
33978 sed 's/^/| /' conftest.$ac_ext >&5
33983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33985 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
33986 $as_echo "$ac_cv_c_const" >&6; }
33987 if test $ac_cv_c_const = no; then
33989 cat >>confdefs.h <<\_ACEOF
33995 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
33996 $as_echo_n "checking for size_t... " >&6; }
33997 if test "${ac_cv_type_size_t+set}" = set; then
33998 $as_echo_n "(cached) " >&6
34000 ac_cv_type_size_t=no
34001 cat >conftest.$ac_ext <<_ACEOF
34004 cat confdefs.h >>conftest.$ac_ext
34005 cat >>conftest.$ac_ext <<_ACEOF
34006 /* end confdefs.h. */
34007 $ac_includes_default
34011 if (sizeof (size_t))
34017 rm -f conftest.$ac_objext
34018 if { (ac_try="$ac_compile"
34019 case "(($ac_try" in
34020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34021 *) ac_try_echo=$ac_try;;
34023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34024 $as_echo "$ac_try_echo") >&5
34025 (eval "$ac_compile") 2>conftest.er1
34027 grep -v '^ *+' conftest.er1 >conftest.err
34029 cat conftest.err >&5
34030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34031 (exit $ac_status); } && {
34032 test -z "$ac_c_werror_flag" ||
34033 test ! -s conftest.err
34034 } && test -s conftest.$ac_objext; then
34035 cat >conftest.$ac_ext <<_ACEOF
34038 cat confdefs.h >>conftest.$ac_ext
34039 cat >>conftest.$ac_ext <<_ACEOF
34040 /* end confdefs.h. */
34041 $ac_includes_default
34045 if (sizeof ((size_t)))
34051 rm -f conftest.$ac_objext
34052 if { (ac_try="$ac_compile"
34053 case "(($ac_try" in
34054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34055 *) ac_try_echo=$ac_try;;
34057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34058 $as_echo "$ac_try_echo") >&5
34059 (eval "$ac_compile") 2>conftest.er1
34061 grep -v '^ *+' conftest.er1 >conftest.err
34063 cat conftest.err >&5
34064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34065 (exit $ac_status); } && {
34066 test -z "$ac_c_werror_flag" ||
34067 test ! -s conftest.err
34068 } && test -s conftest.$ac_objext; then
34071 $as_echo "$as_me: failed program was:" >&5
34072 sed 's/^/| /' conftest.$ac_ext >&5
34074 ac_cv_type_size_t=yes
34077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34079 $as_echo "$as_me: failed program was:" >&5
34080 sed 's/^/| /' conftest.$ac_ext >&5
34085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34087 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
34088 $as_echo "$ac_cv_type_size_t" >&6; }
34089 if test "x$ac_cv_type_size_t" = x""yes; then
34093 cat >>confdefs.h <<_ACEOF
34094 #define size_t unsigned int
34099 { $as_echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
34100 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
34101 if test "${ac_cv_func_setpgrp_void+set}" = set; then
34102 $as_echo_n "(cached) " >&6
34104 if test "$cross_compiling" = yes; then
34105 { { $as_echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
34106 $as_echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
34107 { (exit 1); exit 1; }; }
34109 cat >conftest.$ac_ext <<_ACEOF
34112 cat confdefs.h >>conftest.$ac_ext
34113 cat >>conftest.$ac_ext <<_ACEOF
34114 /* end confdefs.h. */
34115 $ac_includes_default
34119 /* If this system has a BSD-style setpgrp which takes arguments,
34120 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
34121 exit successfully. */
34122 return setpgrp (1,1) != -1;
34127 rm -f conftest$ac_exeext
34128 if { (ac_try="$ac_link"
34129 case "(($ac_try" in
34130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34131 *) ac_try_echo=$ac_try;;
34133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34134 $as_echo "$ac_try_echo") >&5
34135 (eval "$ac_link") 2>&5
34137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34138 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34139 { (case "(($ac_try" in
34140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34141 *) ac_try_echo=$ac_try;;
34143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34144 $as_echo "$ac_try_echo") >&5
34145 (eval "$ac_try") 2>&5
34147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34148 (exit $ac_status); }; }; then
34149 ac_cv_func_setpgrp_void=no
34151 $as_echo "$as_me: program exited with status $ac_status" >&5
34152 $as_echo "$as_me: failed program was:" >&5
34153 sed 's/^/| /' conftest.$ac_ext >&5
34155 ( exit $ac_status )
34156 ac_cv_func_setpgrp_void=yes
34158 rm -rf conftest.dSYM
34159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34164 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
34165 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
34166 if test $ac_cv_func_setpgrp_void = yes; then
34168 cat >>confdefs.h <<\_ACEOF
34169 #define SETPGRP_VOID 1
34176 { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
34177 $as_echo_n "checking for socklen_t... " >&6; }
34178 if test "${ac_cv_socklen_t+set}" = set; then
34179 $as_echo_n "(cached) " >&6
34182 cat >conftest.$ac_ext <<_ACEOF
34185 cat confdefs.h >>conftest.$ac_ext
34186 cat >>conftest.$ac_ext <<_ACEOF
34187 /* end confdefs.h. */
34189 #ifdef HAVE_SYS_TYPES_H
34190 #include <sys/types.h>
34192 #ifdef HAVE_SYS_SOCKET_H
34193 #include <sys/socket.h>
34200 socklen_t foo = (socklen_t) 0;
34206 rm -f conftest.$ac_objext
34207 if { (ac_try="$ac_compile"
34208 case "(($ac_try" in
34209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34210 *) ac_try_echo=$ac_try;;
34212 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34213 $as_echo "$ac_try_echo") >&5
34214 (eval "$ac_compile") 2>conftest.er1
34216 grep -v '^ *+' conftest.er1 >conftest.err
34218 cat conftest.err >&5
34219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34220 (exit $ac_status); } && {
34221 test -z "$ac_c_werror_flag" ||
34222 test ! -s conftest.err
34223 } && test -s conftest.$ac_objext; then
34225 ac_cv_socklen_t=yes
34228 $as_echo "$as_me: failed program was:" >&5
34229 sed 's/^/| /' conftest.$ac_ext >&5
34236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34239 { $as_echo "$as_me:$LINENO: result: $ac_cv_socklen_t" >&5
34240 $as_echo "$ac_cv_socklen_t" >&6; }
34242 if test "$ac_cv_socklen_t" = "yes"; then
34244 cat >>confdefs.h <<\_ACEOF
34245 #define HAVE_SOCKLEN_T 1
34252 { $as_echo "$as_me:$LINENO: checking whether system defines INADDR_NONE" >&5
34253 $as_echo_n "checking whether system defines INADDR_NONE... " >&6; }
34254 if test "${ac_cv_inaddr_none+set}" = set; then
34255 $as_echo_n "(cached) " >&6
34258 cat >conftest.$ac_ext <<_ACEOF
34261 cat confdefs.h >>conftest.$ac_ext
34262 cat >>conftest.$ac_ext <<_ACEOF
34263 /* end confdefs.h. */
34265 #ifdef HAVE_SYS_TYPES_H
34266 #include <sys/types.h>
34268 #ifdef HAVE_SYS_SOCKET_H
34269 #include <sys/socket.h>
34271 #ifdef HAVE_NETINET_IN_H
34272 #include <netinet/in.h>
34274 #ifdef HAVE_ARPA_INET_H
34275 #include <arpa/inet.h>
34282 unsigned long foo = INADDR_NONE;
34288 rm -f conftest.$ac_objext
34289 if { (ac_try="$ac_compile"
34290 case "(($ac_try" in
34291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34292 *) ac_try_echo=$ac_try;;
34294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34295 $as_echo "$ac_try_echo") >&5
34296 (eval "$ac_compile") 2>conftest.er1
34298 grep -v '^ *+' conftest.er1 >conftest.err
34300 cat conftest.err >&5
34301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34302 (exit $ac_status); } && {
34303 test -z "$ac_c_werror_flag" ||
34304 test ! -s conftest.err
34305 } && test -s conftest.$ac_objext; then
34307 ac_cv_inaddr_none=yes
34310 $as_echo "$as_me: failed program was:" >&5
34311 sed 's/^/| /' conftest.$ac_ext >&5
34314 ac_cv_inaddr_none=no
34318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34320 { $as_echo "$as_me:$LINENO: result: $ac_cv_inaddr_none" >&5
34321 $as_echo "$ac_cv_inaddr_none" >&6; }
34322 if test "$ac_cv_inaddr_none" = "no"; then
34323 apr_inaddr_none="((unsigned int) 0xffffffff)"
34325 apr_inaddr_none="INADDR_NONE"
34329 # The cast to long int works around a bug in the HP C Compiler
34330 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34331 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34332 # This bug is HP SR number 8606223364.
34333 { $as_echo "$as_me:$LINENO: checking size of void*" >&5
34334 $as_echo_n "checking size of void*... " >&6; }
34335 if test "${ac_cv_sizeof_voidp+set}" = set; then
34336 $as_echo_n "(cached) " >&6
34338 if test "$cross_compiling" = yes; then
34339 # Depending upon the size, compute the lo and hi bounds.
34340 cat >conftest.$ac_ext <<_ACEOF
34343 cat confdefs.h >>conftest.$ac_ext
34344 cat >>conftest.$ac_ext <<_ACEOF
34345 /* end confdefs.h. */
34346 $ac_includes_default
34350 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) >= 0)];
34357 rm -f conftest.$ac_objext
34358 if { (ac_try="$ac_compile"
34359 case "(($ac_try" in
34360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34361 *) ac_try_echo=$ac_try;;
34363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34364 $as_echo "$ac_try_echo") >&5
34365 (eval "$ac_compile") 2>conftest.er1
34367 grep -v '^ *+' conftest.er1 >conftest.err
34369 cat conftest.err >&5
34370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34371 (exit $ac_status); } && {
34372 test -z "$ac_c_werror_flag" ||
34373 test ! -s conftest.err
34374 } && test -s conftest.$ac_objext; then
34377 cat >conftest.$ac_ext <<_ACEOF
34380 cat confdefs.h >>conftest.$ac_ext
34381 cat >>conftest.$ac_ext <<_ACEOF
34382 /* end confdefs.h. */
34383 $ac_includes_default
34387 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) <= $ac_mid)];
34394 rm -f conftest.$ac_objext
34395 if { (ac_try="$ac_compile"
34396 case "(($ac_try" in
34397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34398 *) ac_try_echo=$ac_try;;
34400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34401 $as_echo "$ac_try_echo") >&5
34402 (eval "$ac_compile") 2>conftest.er1
34404 grep -v '^ *+' conftest.er1 >conftest.err
34406 cat conftest.err >&5
34407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34408 (exit $ac_status); } && {
34409 test -z "$ac_c_werror_flag" ||
34410 test ! -s conftest.err
34411 } && test -s conftest.$ac_objext; then
34412 ac_hi=$ac_mid; break
34414 $as_echo "$as_me: failed program was:" >&5
34415 sed 's/^/| /' conftest.$ac_ext >&5
34417 ac_lo=`expr $ac_mid + 1`
34418 if test $ac_lo -le $ac_mid; then
34422 ac_mid=`expr 2 '*' $ac_mid + 1`
34425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34428 $as_echo "$as_me: failed program was:" >&5
34429 sed 's/^/| /' conftest.$ac_ext >&5
34431 cat >conftest.$ac_ext <<_ACEOF
34434 cat confdefs.h >>conftest.$ac_ext
34435 cat >>conftest.$ac_ext <<_ACEOF
34436 /* end confdefs.h. */
34437 $ac_includes_default
34441 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) < 0)];
34448 rm -f conftest.$ac_objext
34449 if { (ac_try="$ac_compile"
34450 case "(($ac_try" in
34451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34452 *) ac_try_echo=$ac_try;;
34454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34455 $as_echo "$ac_try_echo") >&5
34456 (eval "$ac_compile") 2>conftest.er1
34458 grep -v '^ *+' conftest.er1 >conftest.err
34460 cat conftest.err >&5
34461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34462 (exit $ac_status); } && {
34463 test -z "$ac_c_werror_flag" ||
34464 test ! -s conftest.err
34465 } && test -s conftest.$ac_objext; then
34468 cat >conftest.$ac_ext <<_ACEOF
34471 cat confdefs.h >>conftest.$ac_ext
34472 cat >>conftest.$ac_ext <<_ACEOF
34473 /* end confdefs.h. */
34474 $ac_includes_default
34478 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) >= $ac_mid)];
34485 rm -f conftest.$ac_objext
34486 if { (ac_try="$ac_compile"
34487 case "(($ac_try" in
34488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34489 *) ac_try_echo=$ac_try;;
34491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34492 $as_echo "$ac_try_echo") >&5
34493 (eval "$ac_compile") 2>conftest.er1
34495 grep -v '^ *+' conftest.er1 >conftest.err
34497 cat conftest.err >&5
34498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34499 (exit $ac_status); } && {
34500 test -z "$ac_c_werror_flag" ||
34501 test ! -s conftest.err
34502 } && test -s conftest.$ac_objext; then
34503 ac_lo=$ac_mid; break
34505 $as_echo "$as_me: failed program was:" >&5
34506 sed 's/^/| /' conftest.$ac_ext >&5
34508 ac_hi=`expr '(' $ac_mid ')' - 1`
34509 if test $ac_mid -le $ac_hi; then
34513 ac_mid=`expr 2 '*' $ac_mid`
34516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34519 $as_echo "$as_me: failed program was:" >&5
34520 sed 's/^/| /' conftest.$ac_ext >&5
34525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34529 # Binary search between lo and hi bounds.
34530 while test "x$ac_lo" != "x$ac_hi"; do
34531 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34532 cat >conftest.$ac_ext <<_ACEOF
34535 cat confdefs.h >>conftest.$ac_ext
34536 cat >>conftest.$ac_ext <<_ACEOF
34537 /* end confdefs.h. */
34538 $ac_includes_default
34542 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) <= $ac_mid)];
34549 rm -f conftest.$ac_objext
34550 if { (ac_try="$ac_compile"
34551 case "(($ac_try" in
34552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34553 *) ac_try_echo=$ac_try;;
34555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34556 $as_echo "$ac_try_echo") >&5
34557 (eval "$ac_compile") 2>conftest.er1
34559 grep -v '^ *+' conftest.er1 >conftest.err
34561 cat conftest.err >&5
34562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34563 (exit $ac_status); } && {
34564 test -z "$ac_c_werror_flag" ||
34565 test ! -s conftest.err
34566 } && test -s conftest.$ac_objext; then
34569 $as_echo "$as_me: failed program was:" >&5
34570 sed 's/^/| /' conftest.$ac_ext >&5
34572 ac_lo=`expr '(' $ac_mid ')' + 1`
34575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34578 ?*) ac_cv_sizeof_voidp=$ac_lo;;
34579 '') if test "$ac_cv_type_voidp" = yes; then
34580 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
34581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34582 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
34583 See \`config.log' for more details." >&5
34584 $as_echo "$as_me: error: cannot compute sizeof (void*)
34585 See \`config.log' for more details." >&2;}
34586 { (exit 77); exit 77; }; }; }
34588 ac_cv_sizeof_voidp=0
34592 cat >conftest.$ac_ext <<_ACEOF
34595 cat confdefs.h >>conftest.$ac_ext
34596 cat >>conftest.$ac_ext <<_ACEOF
34597 /* end confdefs.h. */
34598 $ac_includes_default
34599 static long int longval () { return (long int) (sizeof (void*)); }
34600 static unsigned long int ulongval () { return (long int) (sizeof (void*)); }
34602 #include <stdlib.h>
34607 FILE *f = fopen ("conftest.val", "w");
34610 if (((long int) (sizeof (void*))) < 0)
34612 long int i = longval ();
34613 if (i != ((long int) (sizeof (void*))))
34615 fprintf (f, "%ld", i);
34619 unsigned long int i = ulongval ();
34620 if (i != ((long int) (sizeof (void*))))
34622 fprintf (f, "%lu", i);
34624 /* Do not output a trailing newline, as this causes \r\n confusion
34625 on some platforms. */
34626 return ferror (f) || fclose (f) != 0;
34632 rm -f conftest$ac_exeext
34633 if { (ac_try="$ac_link"
34634 case "(($ac_try" in
34635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34636 *) ac_try_echo=$ac_try;;
34638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34639 $as_echo "$ac_try_echo") >&5
34640 (eval "$ac_link") 2>&5
34642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34643 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34644 { (case "(($ac_try" in
34645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34646 *) ac_try_echo=$ac_try;;
34648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34649 $as_echo "$ac_try_echo") >&5
34650 (eval "$ac_try") 2>&5
34652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34653 (exit $ac_status); }; }; then
34654 ac_cv_sizeof_voidp=`cat conftest.val`
34656 $as_echo "$as_me: program exited with status $ac_status" >&5
34657 $as_echo "$as_me: failed program was:" >&5
34658 sed 's/^/| /' conftest.$ac_ext >&5
34660 ( exit $ac_status )
34661 if test "$ac_cv_type_voidp" = yes; then
34662 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
34663 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34664 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
34665 See \`config.log' for more details." >&5
34666 $as_echo "$as_me: error: cannot compute sizeof (void*)
34667 See \`config.log' for more details." >&2;}
34668 { (exit 77); exit 77; }; }; }
34670 ac_cv_sizeof_voidp=0
34673 rm -rf conftest.dSYM
34674 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34678 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
34679 $as_echo "$ac_cv_sizeof_voidp" >&6; }
34683 cat >>confdefs.h <<_ACEOF
34684 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
34689 if test "x$ac_cv_sizeof_voidp" != "x"; then
34690 voidp_size=$ac_cv_sizeof_voidp
34692 { { $as_echo "$as_me:$LINENO: error: Cannot determine size of void*" >&5
34693 $as_echo "$as_me: error: Cannot determine size of void*" >&2;}
34694 { (exit 1); exit 1; }; }
34697 # The cast to long int works around a bug in the HP C Compiler
34698 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34699 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34700 # This bug is HP SR number 8606223364.
34701 { $as_echo "$as_me:$LINENO: checking size of char" >&5
34702 $as_echo_n "checking size of char... " >&6; }
34703 if test "${ac_cv_sizeof_char+set}" = set; then
34704 $as_echo_n "(cached) " >&6
34706 if test "$cross_compiling" = yes; then
34707 # Depending upon the size, compute the lo and hi bounds.
34708 cat >conftest.$ac_ext <<_ACEOF
34711 cat confdefs.h >>conftest.$ac_ext
34712 cat >>conftest.$ac_ext <<_ACEOF
34713 /* end confdefs.h. */
34714 $ac_includes_default
34718 static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= 0)];
34725 rm -f conftest.$ac_objext
34726 if { (ac_try="$ac_compile"
34727 case "(($ac_try" in
34728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34729 *) ac_try_echo=$ac_try;;
34731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34732 $as_echo "$ac_try_echo") >&5
34733 (eval "$ac_compile") 2>conftest.er1
34735 grep -v '^ *+' conftest.er1 >conftest.err
34737 cat conftest.err >&5
34738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34739 (exit $ac_status); } && {
34740 test -z "$ac_c_werror_flag" ||
34741 test ! -s conftest.err
34742 } && test -s conftest.$ac_objext; then
34745 cat >conftest.$ac_ext <<_ACEOF
34748 cat confdefs.h >>conftest.$ac_ext
34749 cat >>conftest.$ac_ext <<_ACEOF
34750 /* end confdefs.h. */
34751 $ac_includes_default
34755 static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
34762 rm -f conftest.$ac_objext
34763 if { (ac_try="$ac_compile"
34764 case "(($ac_try" in
34765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34766 *) ac_try_echo=$ac_try;;
34768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34769 $as_echo "$ac_try_echo") >&5
34770 (eval "$ac_compile") 2>conftest.er1
34772 grep -v '^ *+' conftest.er1 >conftest.err
34774 cat conftest.err >&5
34775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34776 (exit $ac_status); } && {
34777 test -z "$ac_c_werror_flag" ||
34778 test ! -s conftest.err
34779 } && test -s conftest.$ac_objext; then
34780 ac_hi=$ac_mid; break
34782 $as_echo "$as_me: failed program was:" >&5
34783 sed 's/^/| /' conftest.$ac_ext >&5
34785 ac_lo=`expr $ac_mid + 1`
34786 if test $ac_lo -le $ac_mid; then
34790 ac_mid=`expr 2 '*' $ac_mid + 1`
34793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34796 $as_echo "$as_me: failed program was:" >&5
34797 sed 's/^/| /' conftest.$ac_ext >&5
34799 cat >conftest.$ac_ext <<_ACEOF
34802 cat confdefs.h >>conftest.$ac_ext
34803 cat >>conftest.$ac_ext <<_ACEOF
34804 /* end confdefs.h. */
34805 $ac_includes_default
34809 static int test_array [1 - 2 * !(((long int) (sizeof (char))) < 0)];
34816 rm -f conftest.$ac_objext
34817 if { (ac_try="$ac_compile"
34818 case "(($ac_try" in
34819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34820 *) ac_try_echo=$ac_try;;
34822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34823 $as_echo "$ac_try_echo") >&5
34824 (eval "$ac_compile") 2>conftest.er1
34826 grep -v '^ *+' conftest.er1 >conftest.err
34828 cat conftest.err >&5
34829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34830 (exit $ac_status); } && {
34831 test -z "$ac_c_werror_flag" ||
34832 test ! -s conftest.err
34833 } && test -s conftest.$ac_objext; then
34836 cat >conftest.$ac_ext <<_ACEOF
34839 cat confdefs.h >>conftest.$ac_ext
34840 cat >>conftest.$ac_ext <<_ACEOF
34841 /* end confdefs.h. */
34842 $ac_includes_default
34846 static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= $ac_mid)];
34853 rm -f conftest.$ac_objext
34854 if { (ac_try="$ac_compile"
34855 case "(($ac_try" in
34856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34857 *) ac_try_echo=$ac_try;;
34859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34860 $as_echo "$ac_try_echo") >&5
34861 (eval "$ac_compile") 2>conftest.er1
34863 grep -v '^ *+' conftest.er1 >conftest.err
34865 cat conftest.err >&5
34866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34867 (exit $ac_status); } && {
34868 test -z "$ac_c_werror_flag" ||
34869 test ! -s conftest.err
34870 } && test -s conftest.$ac_objext; then
34871 ac_lo=$ac_mid; break
34873 $as_echo "$as_me: failed program was:" >&5
34874 sed 's/^/| /' conftest.$ac_ext >&5
34876 ac_hi=`expr '(' $ac_mid ')' - 1`
34877 if test $ac_mid -le $ac_hi; then
34881 ac_mid=`expr 2 '*' $ac_mid`
34884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34887 $as_echo "$as_me: failed program was:" >&5
34888 sed 's/^/| /' conftest.$ac_ext >&5
34893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34897 # Binary search between lo and hi bounds.
34898 while test "x$ac_lo" != "x$ac_hi"; do
34899 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34900 cat >conftest.$ac_ext <<_ACEOF
34903 cat confdefs.h >>conftest.$ac_ext
34904 cat >>conftest.$ac_ext <<_ACEOF
34905 /* end confdefs.h. */
34906 $ac_includes_default
34910 static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
34917 rm -f conftest.$ac_objext
34918 if { (ac_try="$ac_compile"
34919 case "(($ac_try" in
34920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34921 *) ac_try_echo=$ac_try;;
34923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34924 $as_echo "$ac_try_echo") >&5
34925 (eval "$ac_compile") 2>conftest.er1
34927 grep -v '^ *+' conftest.er1 >conftest.err
34929 cat conftest.err >&5
34930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34931 (exit $ac_status); } && {
34932 test -z "$ac_c_werror_flag" ||
34933 test ! -s conftest.err
34934 } && test -s conftest.$ac_objext; then
34937 $as_echo "$as_me: failed program was:" >&5
34938 sed 's/^/| /' conftest.$ac_ext >&5
34940 ac_lo=`expr '(' $ac_mid ')' + 1`
34943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34946 ?*) ac_cv_sizeof_char=$ac_lo;;
34947 '') if test "$ac_cv_type_char" = yes; then
34948 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
34949 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34950 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34951 See \`config.log' for more details." >&5
34952 $as_echo "$as_me: error: cannot compute sizeof (char)
34953 See \`config.log' for more details." >&2;}
34954 { (exit 77); exit 77; }; }; }
34956 ac_cv_sizeof_char=0
34960 cat >conftest.$ac_ext <<_ACEOF
34963 cat confdefs.h >>conftest.$ac_ext
34964 cat >>conftest.$ac_ext <<_ACEOF
34965 /* end confdefs.h. */
34966 $ac_includes_default
34967 static long int longval () { return (long int) (sizeof (char)); }
34968 static unsigned long int ulongval () { return (long int) (sizeof (char)); }
34970 #include <stdlib.h>
34975 FILE *f = fopen ("conftest.val", "w");
34978 if (((long int) (sizeof (char))) < 0)
34980 long int i = longval ();
34981 if (i != ((long int) (sizeof (char))))
34983 fprintf (f, "%ld", i);
34987 unsigned long int i = ulongval ();
34988 if (i != ((long int) (sizeof (char))))
34990 fprintf (f, "%lu", i);
34992 /* Do not output a trailing newline, as this causes \r\n confusion
34993 on some platforms. */
34994 return ferror (f) || fclose (f) != 0;
35000 rm -f conftest$ac_exeext
35001 if { (ac_try="$ac_link"
35002 case "(($ac_try" in
35003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35004 *) ac_try_echo=$ac_try;;
35006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35007 $as_echo "$ac_try_echo") >&5
35008 (eval "$ac_link") 2>&5
35010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35011 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35012 { (case "(($ac_try" in
35013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35014 *) ac_try_echo=$ac_try;;
35016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35017 $as_echo "$ac_try_echo") >&5
35018 (eval "$ac_try") 2>&5
35020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35021 (exit $ac_status); }; }; then
35022 ac_cv_sizeof_char=`cat conftest.val`
35024 $as_echo "$as_me: program exited with status $ac_status" >&5
35025 $as_echo "$as_me: failed program was:" >&5
35026 sed 's/^/| /' conftest.$ac_ext >&5
35028 ( exit $ac_status )
35029 if test "$ac_cv_type_char" = yes; then
35030 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
35031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35032 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
35033 See \`config.log' for more details." >&5
35034 $as_echo "$as_me: error: cannot compute sizeof (char)
35035 See \`config.log' for more details." >&2;}
35036 { (exit 77); exit 77; }; }; }
35038 ac_cv_sizeof_char=0
35041 rm -rf conftest.dSYM
35042 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35046 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
35047 $as_echo "$ac_cv_sizeof_char" >&6; }
35051 cat >>confdefs.h <<_ACEOF
35052 #define SIZEOF_CHAR $ac_cv_sizeof_char
35056 # The cast to long int works around a bug in the HP C Compiler
35057 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35058 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35059 # This bug is HP SR number 8606223364.
35060 { $as_echo "$as_me:$LINENO: checking size of int" >&5
35061 $as_echo_n "checking size of int... " >&6; }
35062 if test "${ac_cv_sizeof_int+set}" = set; then
35063 $as_echo_n "(cached) " >&6
35065 if test "$cross_compiling" = yes; then
35066 # Depending upon the size, compute the lo and hi bounds.
35067 cat >conftest.$ac_ext <<_ACEOF
35070 cat confdefs.h >>conftest.$ac_ext
35071 cat >>conftest.$ac_ext <<_ACEOF
35072 /* end confdefs.h. */
35073 $ac_includes_default
35077 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
35084 rm -f conftest.$ac_objext
35085 if { (ac_try="$ac_compile"
35086 case "(($ac_try" in
35087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35088 *) ac_try_echo=$ac_try;;
35090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35091 $as_echo "$ac_try_echo") >&5
35092 (eval "$ac_compile") 2>conftest.er1
35094 grep -v '^ *+' conftest.er1 >conftest.err
35096 cat conftest.err >&5
35097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35098 (exit $ac_status); } && {
35099 test -z "$ac_c_werror_flag" ||
35100 test ! -s conftest.err
35101 } && test -s conftest.$ac_objext; then
35104 cat >conftest.$ac_ext <<_ACEOF
35107 cat confdefs.h >>conftest.$ac_ext
35108 cat >>conftest.$ac_ext <<_ACEOF
35109 /* end confdefs.h. */
35110 $ac_includes_default
35114 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
35121 rm -f conftest.$ac_objext
35122 if { (ac_try="$ac_compile"
35123 case "(($ac_try" in
35124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35125 *) ac_try_echo=$ac_try;;
35127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35128 $as_echo "$ac_try_echo") >&5
35129 (eval "$ac_compile") 2>conftest.er1
35131 grep -v '^ *+' conftest.er1 >conftest.err
35133 cat conftest.err >&5
35134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35135 (exit $ac_status); } && {
35136 test -z "$ac_c_werror_flag" ||
35137 test ! -s conftest.err
35138 } && test -s conftest.$ac_objext; then
35139 ac_hi=$ac_mid; break
35141 $as_echo "$as_me: failed program was:" >&5
35142 sed 's/^/| /' conftest.$ac_ext >&5
35144 ac_lo=`expr $ac_mid + 1`
35145 if test $ac_lo -le $ac_mid; then
35149 ac_mid=`expr 2 '*' $ac_mid + 1`
35152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35155 $as_echo "$as_me: failed program was:" >&5
35156 sed 's/^/| /' conftest.$ac_ext >&5
35158 cat >conftest.$ac_ext <<_ACEOF
35161 cat confdefs.h >>conftest.$ac_ext
35162 cat >>conftest.$ac_ext <<_ACEOF
35163 /* end confdefs.h. */
35164 $ac_includes_default
35168 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
35175 rm -f conftest.$ac_objext
35176 if { (ac_try="$ac_compile"
35177 case "(($ac_try" in
35178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35179 *) ac_try_echo=$ac_try;;
35181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35182 $as_echo "$ac_try_echo") >&5
35183 (eval "$ac_compile") 2>conftest.er1
35185 grep -v '^ *+' conftest.er1 >conftest.err
35187 cat conftest.err >&5
35188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35189 (exit $ac_status); } && {
35190 test -z "$ac_c_werror_flag" ||
35191 test ! -s conftest.err
35192 } && test -s conftest.$ac_objext; then
35195 cat >conftest.$ac_ext <<_ACEOF
35198 cat confdefs.h >>conftest.$ac_ext
35199 cat >>conftest.$ac_ext <<_ACEOF
35200 /* end confdefs.h. */
35201 $ac_includes_default
35205 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
35212 rm -f conftest.$ac_objext
35213 if { (ac_try="$ac_compile"
35214 case "(($ac_try" in
35215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35216 *) ac_try_echo=$ac_try;;
35218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35219 $as_echo "$ac_try_echo") >&5
35220 (eval "$ac_compile") 2>conftest.er1
35222 grep -v '^ *+' conftest.er1 >conftest.err
35224 cat conftest.err >&5
35225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35226 (exit $ac_status); } && {
35227 test -z "$ac_c_werror_flag" ||
35228 test ! -s conftest.err
35229 } && test -s conftest.$ac_objext; then
35230 ac_lo=$ac_mid; break
35232 $as_echo "$as_me: failed program was:" >&5
35233 sed 's/^/| /' conftest.$ac_ext >&5
35235 ac_hi=`expr '(' $ac_mid ')' - 1`
35236 if test $ac_mid -le $ac_hi; then
35240 ac_mid=`expr 2 '*' $ac_mid`
35243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35246 $as_echo "$as_me: failed program was:" >&5
35247 sed 's/^/| /' conftest.$ac_ext >&5
35252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35256 # Binary search between lo and hi bounds.
35257 while test "x$ac_lo" != "x$ac_hi"; do
35258 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35259 cat >conftest.$ac_ext <<_ACEOF
35262 cat confdefs.h >>conftest.$ac_ext
35263 cat >>conftest.$ac_ext <<_ACEOF
35264 /* end confdefs.h. */
35265 $ac_includes_default
35269 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
35276 rm -f conftest.$ac_objext
35277 if { (ac_try="$ac_compile"
35278 case "(($ac_try" in
35279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35280 *) ac_try_echo=$ac_try;;
35282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35283 $as_echo "$ac_try_echo") >&5
35284 (eval "$ac_compile") 2>conftest.er1
35286 grep -v '^ *+' conftest.er1 >conftest.err
35288 cat conftest.err >&5
35289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35290 (exit $ac_status); } && {
35291 test -z "$ac_c_werror_flag" ||
35292 test ! -s conftest.err
35293 } && test -s conftest.$ac_objext; then
35296 $as_echo "$as_me: failed program was:" >&5
35297 sed 's/^/| /' conftest.$ac_ext >&5
35299 ac_lo=`expr '(' $ac_mid ')' + 1`
35302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35305 ?*) ac_cv_sizeof_int=$ac_lo;;
35306 '') if test "$ac_cv_type_int" = yes; then
35307 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
35308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35309 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35310 See \`config.log' for more details." >&5
35311 $as_echo "$as_me: error: cannot compute sizeof (int)
35312 See \`config.log' for more details." >&2;}
35313 { (exit 77); exit 77; }; }; }
35319 cat >conftest.$ac_ext <<_ACEOF
35322 cat confdefs.h >>conftest.$ac_ext
35323 cat >>conftest.$ac_ext <<_ACEOF
35324 /* end confdefs.h. */
35325 $ac_includes_default
35326 static long int longval () { return (long int) (sizeof (int)); }
35327 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
35329 #include <stdlib.h>
35334 FILE *f = fopen ("conftest.val", "w");
35337 if (((long int) (sizeof (int))) < 0)
35339 long int i = longval ();
35340 if (i != ((long int) (sizeof (int))))
35342 fprintf (f, "%ld", i);
35346 unsigned long int i = ulongval ();
35347 if (i != ((long int) (sizeof (int))))
35349 fprintf (f, "%lu", i);
35351 /* Do not output a trailing newline, as this causes \r\n confusion
35352 on some platforms. */
35353 return ferror (f) || fclose (f) != 0;
35359 rm -f conftest$ac_exeext
35360 if { (ac_try="$ac_link"
35361 case "(($ac_try" in
35362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35363 *) ac_try_echo=$ac_try;;
35365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35366 $as_echo "$ac_try_echo") >&5
35367 (eval "$ac_link") 2>&5
35369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35370 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35371 { (case "(($ac_try" in
35372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35373 *) ac_try_echo=$ac_try;;
35375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35376 $as_echo "$ac_try_echo") >&5
35377 (eval "$ac_try") 2>&5
35379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35380 (exit $ac_status); }; }; then
35381 ac_cv_sizeof_int=`cat conftest.val`
35383 $as_echo "$as_me: program exited with status $ac_status" >&5
35384 $as_echo "$as_me: failed program was:" >&5
35385 sed 's/^/| /' conftest.$ac_ext >&5
35387 ( exit $ac_status )
35388 if test "$ac_cv_type_int" = yes; then
35389 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
35390 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35391 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35392 See \`config.log' for more details." >&5
35393 $as_echo "$as_me: error: cannot compute sizeof (int)
35394 See \`config.log' for more details." >&2;}
35395 { (exit 77); exit 77; }; }; }
35400 rm -rf conftest.dSYM
35401 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35405 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
35406 $as_echo "$ac_cv_sizeof_int" >&6; }
35410 cat >>confdefs.h <<_ACEOF
35411 #define SIZEOF_INT $ac_cv_sizeof_int
35415 # The cast to long int works around a bug in the HP C Compiler
35416 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35417 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35418 # This bug is HP SR number 8606223364.
35419 { $as_echo "$as_me:$LINENO: checking size of long" >&5
35420 $as_echo_n "checking size of long... " >&6; }
35421 if test "${ac_cv_sizeof_long+set}" = set; then
35422 $as_echo_n "(cached) " >&6
35424 if test "$cross_compiling" = yes; then
35425 # Depending upon the size, compute the lo and hi bounds.
35426 cat >conftest.$ac_ext <<_ACEOF
35429 cat confdefs.h >>conftest.$ac_ext
35430 cat >>conftest.$ac_ext <<_ACEOF
35431 /* end confdefs.h. */
35432 $ac_includes_default
35436 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
35443 rm -f conftest.$ac_objext
35444 if { (ac_try="$ac_compile"
35445 case "(($ac_try" in
35446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35447 *) ac_try_echo=$ac_try;;
35449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35450 $as_echo "$ac_try_echo") >&5
35451 (eval "$ac_compile") 2>conftest.er1
35453 grep -v '^ *+' conftest.er1 >conftest.err
35455 cat conftest.err >&5
35456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35457 (exit $ac_status); } && {
35458 test -z "$ac_c_werror_flag" ||
35459 test ! -s conftest.err
35460 } && test -s conftest.$ac_objext; then
35463 cat >conftest.$ac_ext <<_ACEOF
35466 cat confdefs.h >>conftest.$ac_ext
35467 cat >>conftest.$ac_ext <<_ACEOF
35468 /* end confdefs.h. */
35469 $ac_includes_default
35473 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
35480 rm -f conftest.$ac_objext
35481 if { (ac_try="$ac_compile"
35482 case "(($ac_try" in
35483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35484 *) ac_try_echo=$ac_try;;
35486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35487 $as_echo "$ac_try_echo") >&5
35488 (eval "$ac_compile") 2>conftest.er1
35490 grep -v '^ *+' conftest.er1 >conftest.err
35492 cat conftest.err >&5
35493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35494 (exit $ac_status); } && {
35495 test -z "$ac_c_werror_flag" ||
35496 test ! -s conftest.err
35497 } && test -s conftest.$ac_objext; then
35498 ac_hi=$ac_mid; break
35500 $as_echo "$as_me: failed program was:" >&5
35501 sed 's/^/| /' conftest.$ac_ext >&5
35503 ac_lo=`expr $ac_mid + 1`
35504 if test $ac_lo -le $ac_mid; then
35508 ac_mid=`expr 2 '*' $ac_mid + 1`
35511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35514 $as_echo "$as_me: failed program was:" >&5
35515 sed 's/^/| /' conftest.$ac_ext >&5
35517 cat >conftest.$ac_ext <<_ACEOF
35520 cat confdefs.h >>conftest.$ac_ext
35521 cat >>conftest.$ac_ext <<_ACEOF
35522 /* end confdefs.h. */
35523 $ac_includes_default
35527 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
35534 rm -f conftest.$ac_objext
35535 if { (ac_try="$ac_compile"
35536 case "(($ac_try" in
35537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35538 *) ac_try_echo=$ac_try;;
35540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35541 $as_echo "$ac_try_echo") >&5
35542 (eval "$ac_compile") 2>conftest.er1
35544 grep -v '^ *+' conftest.er1 >conftest.err
35546 cat conftest.err >&5
35547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35548 (exit $ac_status); } && {
35549 test -z "$ac_c_werror_flag" ||
35550 test ! -s conftest.err
35551 } && test -s conftest.$ac_objext; then
35554 cat >conftest.$ac_ext <<_ACEOF
35557 cat confdefs.h >>conftest.$ac_ext
35558 cat >>conftest.$ac_ext <<_ACEOF
35559 /* end confdefs.h. */
35560 $ac_includes_default
35564 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
35571 rm -f conftest.$ac_objext
35572 if { (ac_try="$ac_compile"
35573 case "(($ac_try" in
35574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35575 *) ac_try_echo=$ac_try;;
35577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35578 $as_echo "$ac_try_echo") >&5
35579 (eval "$ac_compile") 2>conftest.er1
35581 grep -v '^ *+' conftest.er1 >conftest.err
35583 cat conftest.err >&5
35584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35585 (exit $ac_status); } && {
35586 test -z "$ac_c_werror_flag" ||
35587 test ! -s conftest.err
35588 } && test -s conftest.$ac_objext; then
35589 ac_lo=$ac_mid; break
35591 $as_echo "$as_me: failed program was:" >&5
35592 sed 's/^/| /' conftest.$ac_ext >&5
35594 ac_hi=`expr '(' $ac_mid ')' - 1`
35595 if test $ac_mid -le $ac_hi; then
35599 ac_mid=`expr 2 '*' $ac_mid`
35602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35605 $as_echo "$as_me: failed program was:" >&5
35606 sed 's/^/| /' conftest.$ac_ext >&5
35611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35615 # Binary search between lo and hi bounds.
35616 while test "x$ac_lo" != "x$ac_hi"; do
35617 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35618 cat >conftest.$ac_ext <<_ACEOF
35621 cat confdefs.h >>conftest.$ac_ext
35622 cat >>conftest.$ac_ext <<_ACEOF
35623 /* end confdefs.h. */
35624 $ac_includes_default
35628 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
35635 rm -f conftest.$ac_objext
35636 if { (ac_try="$ac_compile"
35637 case "(($ac_try" in
35638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35639 *) ac_try_echo=$ac_try;;
35641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35642 $as_echo "$ac_try_echo") >&5
35643 (eval "$ac_compile") 2>conftest.er1
35645 grep -v '^ *+' conftest.er1 >conftest.err
35647 cat conftest.err >&5
35648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35649 (exit $ac_status); } && {
35650 test -z "$ac_c_werror_flag" ||
35651 test ! -s conftest.err
35652 } && test -s conftest.$ac_objext; then
35655 $as_echo "$as_me: failed program was:" >&5
35656 sed 's/^/| /' conftest.$ac_ext >&5
35658 ac_lo=`expr '(' $ac_mid ')' + 1`
35661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35664 ?*) ac_cv_sizeof_long=$ac_lo;;
35665 '') if test "$ac_cv_type_long" = yes; then
35666 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
35667 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35668 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
35669 See \`config.log' for more details." >&5
35670 $as_echo "$as_me: error: cannot compute sizeof (long)
35671 See \`config.log' for more details." >&2;}
35672 { (exit 77); exit 77; }; }; }
35674 ac_cv_sizeof_long=0
35678 cat >conftest.$ac_ext <<_ACEOF
35681 cat confdefs.h >>conftest.$ac_ext
35682 cat >>conftest.$ac_ext <<_ACEOF
35683 /* end confdefs.h. */
35684 $ac_includes_default
35685 static long int longval () { return (long int) (sizeof (long)); }
35686 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
35688 #include <stdlib.h>
35693 FILE *f = fopen ("conftest.val", "w");
35696 if (((long int) (sizeof (long))) < 0)
35698 long int i = longval ();
35699 if (i != ((long int) (sizeof (long))))
35701 fprintf (f, "%ld", i);
35705 unsigned long int i = ulongval ();
35706 if (i != ((long int) (sizeof (long))))
35708 fprintf (f, "%lu", i);
35710 /* Do not output a trailing newline, as this causes \r\n confusion
35711 on some platforms. */
35712 return ferror (f) || fclose (f) != 0;
35718 rm -f conftest$ac_exeext
35719 if { (ac_try="$ac_link"
35720 case "(($ac_try" in
35721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35722 *) ac_try_echo=$ac_try;;
35724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35725 $as_echo "$ac_try_echo") >&5
35726 (eval "$ac_link") 2>&5
35728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35729 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35730 { (case "(($ac_try" in
35731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35732 *) ac_try_echo=$ac_try;;
35734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35735 $as_echo "$ac_try_echo") >&5
35736 (eval "$ac_try") 2>&5
35738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35739 (exit $ac_status); }; }; then
35740 ac_cv_sizeof_long=`cat conftest.val`
35742 $as_echo "$as_me: program exited with status $ac_status" >&5
35743 $as_echo "$as_me: failed program was:" >&5
35744 sed 's/^/| /' conftest.$ac_ext >&5
35746 ( exit $ac_status )
35747 if test "$ac_cv_type_long" = yes; then
35748 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
35749 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35750 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
35751 See \`config.log' for more details." >&5
35752 $as_echo "$as_me: error: cannot compute sizeof (long)
35753 See \`config.log' for more details." >&2;}
35754 { (exit 77); exit 77; }; }; }
35756 ac_cv_sizeof_long=0
35759 rm -rf conftest.dSYM
35760 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35764 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
35765 $as_echo "$ac_cv_sizeof_long" >&6; }
35769 cat >>confdefs.h <<_ACEOF
35770 #define SIZEOF_LONG $ac_cv_sizeof_long
35774 # The cast to long int works around a bug in the HP C Compiler
35775 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35776 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35777 # This bug is HP SR number 8606223364.
35778 { $as_echo "$as_me:$LINENO: checking size of short" >&5
35779 $as_echo_n "checking size of short... " >&6; }
35780 if test "${ac_cv_sizeof_short+set}" = set; then
35781 $as_echo_n "(cached) " >&6
35783 if test "$cross_compiling" = yes; then
35784 # Depending upon the size, compute the lo and hi bounds.
35785 cat >conftest.$ac_ext <<_ACEOF
35788 cat confdefs.h >>conftest.$ac_ext
35789 cat >>conftest.$ac_ext <<_ACEOF
35790 /* end confdefs.h. */
35791 $ac_includes_default
35795 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
35802 rm -f conftest.$ac_objext
35803 if { (ac_try="$ac_compile"
35804 case "(($ac_try" in
35805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35806 *) ac_try_echo=$ac_try;;
35808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35809 $as_echo "$ac_try_echo") >&5
35810 (eval "$ac_compile") 2>conftest.er1
35812 grep -v '^ *+' conftest.er1 >conftest.err
35814 cat conftest.err >&5
35815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35816 (exit $ac_status); } && {
35817 test -z "$ac_c_werror_flag" ||
35818 test ! -s conftest.err
35819 } && test -s conftest.$ac_objext; then
35822 cat >conftest.$ac_ext <<_ACEOF
35825 cat confdefs.h >>conftest.$ac_ext
35826 cat >>conftest.$ac_ext <<_ACEOF
35827 /* end confdefs.h. */
35828 $ac_includes_default
35832 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
35839 rm -f conftest.$ac_objext
35840 if { (ac_try="$ac_compile"
35841 case "(($ac_try" in
35842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35843 *) ac_try_echo=$ac_try;;
35845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35846 $as_echo "$ac_try_echo") >&5
35847 (eval "$ac_compile") 2>conftest.er1
35849 grep -v '^ *+' conftest.er1 >conftest.err
35851 cat conftest.err >&5
35852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35853 (exit $ac_status); } && {
35854 test -z "$ac_c_werror_flag" ||
35855 test ! -s conftest.err
35856 } && test -s conftest.$ac_objext; then
35857 ac_hi=$ac_mid; break
35859 $as_echo "$as_me: failed program was:" >&5
35860 sed 's/^/| /' conftest.$ac_ext >&5
35862 ac_lo=`expr $ac_mid + 1`
35863 if test $ac_lo -le $ac_mid; then
35867 ac_mid=`expr 2 '*' $ac_mid + 1`
35870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35873 $as_echo "$as_me: failed program was:" >&5
35874 sed 's/^/| /' conftest.$ac_ext >&5
35876 cat >conftest.$ac_ext <<_ACEOF
35879 cat confdefs.h >>conftest.$ac_ext
35880 cat >>conftest.$ac_ext <<_ACEOF
35881 /* end confdefs.h. */
35882 $ac_includes_default
35886 static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
35893 rm -f conftest.$ac_objext
35894 if { (ac_try="$ac_compile"
35895 case "(($ac_try" in
35896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35897 *) ac_try_echo=$ac_try;;
35899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35900 $as_echo "$ac_try_echo") >&5
35901 (eval "$ac_compile") 2>conftest.er1
35903 grep -v '^ *+' conftest.er1 >conftest.err
35905 cat conftest.err >&5
35906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35907 (exit $ac_status); } && {
35908 test -z "$ac_c_werror_flag" ||
35909 test ! -s conftest.err
35910 } && test -s conftest.$ac_objext; then
35913 cat >conftest.$ac_ext <<_ACEOF
35916 cat confdefs.h >>conftest.$ac_ext
35917 cat >>conftest.$ac_ext <<_ACEOF
35918 /* end confdefs.h. */
35919 $ac_includes_default
35923 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
35930 rm -f conftest.$ac_objext
35931 if { (ac_try="$ac_compile"
35932 case "(($ac_try" in
35933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35934 *) ac_try_echo=$ac_try;;
35936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35937 $as_echo "$ac_try_echo") >&5
35938 (eval "$ac_compile") 2>conftest.er1
35940 grep -v '^ *+' conftest.er1 >conftest.err
35942 cat conftest.err >&5
35943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35944 (exit $ac_status); } && {
35945 test -z "$ac_c_werror_flag" ||
35946 test ! -s conftest.err
35947 } && test -s conftest.$ac_objext; then
35948 ac_lo=$ac_mid; break
35950 $as_echo "$as_me: failed program was:" >&5
35951 sed 's/^/| /' conftest.$ac_ext >&5
35953 ac_hi=`expr '(' $ac_mid ')' - 1`
35954 if test $ac_mid -le $ac_hi; then
35958 ac_mid=`expr 2 '*' $ac_mid`
35961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35964 $as_echo "$as_me: failed program was:" >&5
35965 sed 's/^/| /' conftest.$ac_ext >&5
35970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35974 # Binary search between lo and hi bounds.
35975 while test "x$ac_lo" != "x$ac_hi"; do
35976 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35977 cat >conftest.$ac_ext <<_ACEOF
35980 cat confdefs.h >>conftest.$ac_ext
35981 cat >>conftest.$ac_ext <<_ACEOF
35982 /* end confdefs.h. */
35983 $ac_includes_default
35987 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
35994 rm -f conftest.$ac_objext
35995 if { (ac_try="$ac_compile"
35996 case "(($ac_try" in
35997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35998 *) ac_try_echo=$ac_try;;
36000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36001 $as_echo "$ac_try_echo") >&5
36002 (eval "$ac_compile") 2>conftest.er1
36004 grep -v '^ *+' conftest.er1 >conftest.err
36006 cat conftest.err >&5
36007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36008 (exit $ac_status); } && {
36009 test -z "$ac_c_werror_flag" ||
36010 test ! -s conftest.err
36011 } && test -s conftest.$ac_objext; then
36014 $as_echo "$as_me: failed program was:" >&5
36015 sed 's/^/| /' conftest.$ac_ext >&5
36017 ac_lo=`expr '(' $ac_mid ')' + 1`
36020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36023 ?*) ac_cv_sizeof_short=$ac_lo;;
36024 '') if test "$ac_cv_type_short" = yes; then
36025 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
36026 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36027 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
36028 See \`config.log' for more details." >&5
36029 $as_echo "$as_me: error: cannot compute sizeof (short)
36030 See \`config.log' for more details." >&2;}
36031 { (exit 77); exit 77; }; }; }
36033 ac_cv_sizeof_short=0
36037 cat >conftest.$ac_ext <<_ACEOF
36040 cat confdefs.h >>conftest.$ac_ext
36041 cat >>conftest.$ac_ext <<_ACEOF
36042 /* end confdefs.h. */
36043 $ac_includes_default
36044 static long int longval () { return (long int) (sizeof (short)); }
36045 static unsigned long int ulongval () { return (long int) (sizeof (short)); }
36047 #include <stdlib.h>
36052 FILE *f = fopen ("conftest.val", "w");
36055 if (((long int) (sizeof (short))) < 0)
36057 long int i = longval ();
36058 if (i != ((long int) (sizeof (short))))
36060 fprintf (f, "%ld", i);
36064 unsigned long int i = ulongval ();
36065 if (i != ((long int) (sizeof (short))))
36067 fprintf (f, "%lu", i);
36069 /* Do not output a trailing newline, as this causes \r\n confusion
36070 on some platforms. */
36071 return ferror (f) || fclose (f) != 0;
36077 rm -f conftest$ac_exeext
36078 if { (ac_try="$ac_link"
36079 case "(($ac_try" in
36080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36081 *) ac_try_echo=$ac_try;;
36083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36084 $as_echo "$ac_try_echo") >&5
36085 (eval "$ac_link") 2>&5
36087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36088 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36089 { (case "(($ac_try" in
36090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36091 *) ac_try_echo=$ac_try;;
36093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36094 $as_echo "$ac_try_echo") >&5
36095 (eval "$ac_try") 2>&5
36097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36098 (exit $ac_status); }; }; then
36099 ac_cv_sizeof_short=`cat conftest.val`
36101 $as_echo "$as_me: program exited with status $ac_status" >&5
36102 $as_echo "$as_me: failed program was:" >&5
36103 sed 's/^/| /' conftest.$ac_ext >&5
36105 ( exit $ac_status )
36106 if test "$ac_cv_type_short" = yes; then
36107 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
36108 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36109 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
36110 See \`config.log' for more details." >&5
36111 $as_echo "$as_me: error: cannot compute sizeof (short)
36112 See \`config.log' for more details." >&2;}
36113 { (exit 77); exit 77; }; }; }
36115 ac_cv_sizeof_short=0
36118 rm -rf conftest.dSYM
36119 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36123 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
36124 $as_echo "$ac_cv_sizeof_short" >&6; }
36128 cat >>confdefs.h <<_ACEOF
36129 #define SIZEOF_SHORT $ac_cv_sizeof_short
36133 # The cast to long int works around a bug in the HP C Compiler
36134 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36135 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36136 # This bug is HP SR number 8606223364.
36137 { $as_echo "$as_me:$LINENO: checking size of long double" >&5
36138 $as_echo_n "checking size of long double... " >&6; }
36139 if test "${ac_cv_sizeof_long_double+set}" = set; then
36140 $as_echo_n "(cached) " >&6
36142 if test "$cross_compiling" = yes; then
36143 # Depending upon the size, compute the lo and hi bounds.
36144 cat >conftest.$ac_ext <<_ACEOF
36147 cat confdefs.h >>conftest.$ac_ext
36148 cat >>conftest.$ac_ext <<_ACEOF
36149 /* end confdefs.h. */
36150 $ac_includes_default
36154 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= 0)];
36161 rm -f conftest.$ac_objext
36162 if { (ac_try="$ac_compile"
36163 case "(($ac_try" in
36164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36165 *) ac_try_echo=$ac_try;;
36167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36168 $as_echo "$ac_try_echo") >&5
36169 (eval "$ac_compile") 2>conftest.er1
36171 grep -v '^ *+' conftest.er1 >conftest.err
36173 cat conftest.err >&5
36174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36175 (exit $ac_status); } && {
36176 test -z "$ac_c_werror_flag" ||
36177 test ! -s conftest.err
36178 } && test -s conftest.$ac_objext; then
36181 cat >conftest.$ac_ext <<_ACEOF
36184 cat confdefs.h >>conftest.$ac_ext
36185 cat >>conftest.$ac_ext <<_ACEOF
36186 /* end confdefs.h. */
36187 $ac_includes_default
36191 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)];
36198 rm -f conftest.$ac_objext
36199 if { (ac_try="$ac_compile"
36200 case "(($ac_try" in
36201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36202 *) ac_try_echo=$ac_try;;
36204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36205 $as_echo "$ac_try_echo") >&5
36206 (eval "$ac_compile") 2>conftest.er1
36208 grep -v '^ *+' conftest.er1 >conftest.err
36210 cat conftest.err >&5
36211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36212 (exit $ac_status); } && {
36213 test -z "$ac_c_werror_flag" ||
36214 test ! -s conftest.err
36215 } && test -s conftest.$ac_objext; then
36216 ac_hi=$ac_mid; break
36218 $as_echo "$as_me: failed program was:" >&5
36219 sed 's/^/| /' conftest.$ac_ext >&5
36221 ac_lo=`expr $ac_mid + 1`
36222 if test $ac_lo -le $ac_mid; then
36226 ac_mid=`expr 2 '*' $ac_mid + 1`
36229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36232 $as_echo "$as_me: failed program was:" >&5
36233 sed 's/^/| /' conftest.$ac_ext >&5
36235 cat >conftest.$ac_ext <<_ACEOF
36238 cat confdefs.h >>conftest.$ac_ext
36239 cat >>conftest.$ac_ext <<_ACEOF
36240 /* end confdefs.h. */
36241 $ac_includes_default
36245 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) < 0)];
36252 rm -f conftest.$ac_objext
36253 if { (ac_try="$ac_compile"
36254 case "(($ac_try" in
36255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36256 *) ac_try_echo=$ac_try;;
36258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36259 $as_echo "$ac_try_echo") >&5
36260 (eval "$ac_compile") 2>conftest.er1
36262 grep -v '^ *+' conftest.er1 >conftest.err
36264 cat conftest.err >&5
36265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36266 (exit $ac_status); } && {
36267 test -z "$ac_c_werror_flag" ||
36268 test ! -s conftest.err
36269 } && test -s conftest.$ac_objext; then
36272 cat >conftest.$ac_ext <<_ACEOF
36275 cat confdefs.h >>conftest.$ac_ext
36276 cat >>conftest.$ac_ext <<_ACEOF
36277 /* end confdefs.h. */
36278 $ac_includes_default
36282 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= $ac_mid)];
36289 rm -f conftest.$ac_objext
36290 if { (ac_try="$ac_compile"
36291 case "(($ac_try" in
36292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36293 *) ac_try_echo=$ac_try;;
36295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36296 $as_echo "$ac_try_echo") >&5
36297 (eval "$ac_compile") 2>conftest.er1
36299 grep -v '^ *+' conftest.er1 >conftest.err
36301 cat conftest.err >&5
36302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36303 (exit $ac_status); } && {
36304 test -z "$ac_c_werror_flag" ||
36305 test ! -s conftest.err
36306 } && test -s conftest.$ac_objext; then
36307 ac_lo=$ac_mid; break
36309 $as_echo "$as_me: failed program was:" >&5
36310 sed 's/^/| /' conftest.$ac_ext >&5
36312 ac_hi=`expr '(' $ac_mid ')' - 1`
36313 if test $ac_mid -le $ac_hi; then
36317 ac_mid=`expr 2 '*' $ac_mid`
36320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36323 $as_echo "$as_me: failed program was:" >&5
36324 sed 's/^/| /' conftest.$ac_ext >&5
36329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36333 # Binary search between lo and hi bounds.
36334 while test "x$ac_lo" != "x$ac_hi"; do
36335 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36336 cat >conftest.$ac_ext <<_ACEOF
36339 cat confdefs.h >>conftest.$ac_ext
36340 cat >>conftest.$ac_ext <<_ACEOF
36341 /* end confdefs.h. */
36342 $ac_includes_default
36346 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)];
36353 rm -f conftest.$ac_objext
36354 if { (ac_try="$ac_compile"
36355 case "(($ac_try" in
36356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36357 *) ac_try_echo=$ac_try;;
36359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36360 $as_echo "$ac_try_echo") >&5
36361 (eval "$ac_compile") 2>conftest.er1
36363 grep -v '^ *+' conftest.er1 >conftest.err
36365 cat conftest.err >&5
36366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36367 (exit $ac_status); } && {
36368 test -z "$ac_c_werror_flag" ||
36369 test ! -s conftest.err
36370 } && test -s conftest.$ac_objext; then
36373 $as_echo "$as_me: failed program was:" >&5
36374 sed 's/^/| /' conftest.$ac_ext >&5
36376 ac_lo=`expr '(' $ac_mid ')' + 1`
36379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36382 ?*) ac_cv_sizeof_long_double=$ac_lo;;
36383 '') if test "$ac_cv_type_long_double" = yes; then
36384 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
36385 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36386 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
36387 See \`config.log' for more details." >&5
36388 $as_echo "$as_me: error: cannot compute sizeof (long double)
36389 See \`config.log' for more details." >&2;}
36390 { (exit 77); exit 77; }; }; }
36392 ac_cv_sizeof_long_double=0
36396 cat >conftest.$ac_ext <<_ACEOF
36399 cat confdefs.h >>conftest.$ac_ext
36400 cat >>conftest.$ac_ext <<_ACEOF
36401 /* end confdefs.h. */
36402 $ac_includes_default
36403 static long int longval () { return (long int) (sizeof (long double)); }
36404 static unsigned long int ulongval () { return (long int) (sizeof (long double)); }
36406 #include <stdlib.h>
36411 FILE *f = fopen ("conftest.val", "w");
36414 if (((long int) (sizeof (long double))) < 0)
36416 long int i = longval ();
36417 if (i != ((long int) (sizeof (long double))))
36419 fprintf (f, "%ld", i);
36423 unsigned long int i = ulongval ();
36424 if (i != ((long int) (sizeof (long double))))
36426 fprintf (f, "%lu", i);
36428 /* Do not output a trailing newline, as this causes \r\n confusion
36429 on some platforms. */
36430 return ferror (f) || fclose (f) != 0;
36436 rm -f conftest$ac_exeext
36437 if { (ac_try="$ac_link"
36438 case "(($ac_try" in
36439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36440 *) ac_try_echo=$ac_try;;
36442 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36443 $as_echo "$ac_try_echo") >&5
36444 (eval "$ac_link") 2>&5
36446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36447 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36448 { (case "(($ac_try" in
36449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36450 *) ac_try_echo=$ac_try;;
36452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36453 $as_echo "$ac_try_echo") >&5
36454 (eval "$ac_try") 2>&5
36456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36457 (exit $ac_status); }; }; then
36458 ac_cv_sizeof_long_double=`cat conftest.val`
36460 $as_echo "$as_me: program exited with status $ac_status" >&5
36461 $as_echo "$as_me: failed program was:" >&5
36462 sed 's/^/| /' conftest.$ac_ext >&5
36464 ( exit $ac_status )
36465 if test "$ac_cv_type_long_double" = yes; then
36466 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
36467 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36468 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
36469 See \`config.log' for more details." >&5
36470 $as_echo "$as_me: error: cannot compute sizeof (long double)
36471 See \`config.log' for more details." >&2;}
36472 { (exit 77); exit 77; }; }; }
36474 ac_cv_sizeof_long_double=0
36477 rm -rf conftest.dSYM
36478 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36482 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
36483 $as_echo "$ac_cv_sizeof_long_double" >&6; }
36487 cat >>confdefs.h <<_ACEOF
36488 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
36492 # The cast to long int works around a bug in the HP C Compiler
36493 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36494 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36495 # This bug is HP SR number 8606223364.
36496 { $as_echo "$as_me:$LINENO: checking size of long long" >&5
36497 $as_echo_n "checking size of long long... " >&6; }
36498 if test "${ac_cv_sizeof_long_long+set}" = set; then
36499 $as_echo_n "(cached) " >&6
36501 if test "$cross_compiling" = yes; then
36502 # Depending upon the size, compute the lo and hi bounds.
36503 cat >conftest.$ac_ext <<_ACEOF
36506 cat confdefs.h >>conftest.$ac_ext
36507 cat >>conftest.$ac_ext <<_ACEOF
36508 /* end confdefs.h. */
36509 $ac_includes_default
36513 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
36520 rm -f conftest.$ac_objext
36521 if { (ac_try="$ac_compile"
36522 case "(($ac_try" in
36523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36524 *) ac_try_echo=$ac_try;;
36526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36527 $as_echo "$ac_try_echo") >&5
36528 (eval "$ac_compile") 2>conftest.er1
36530 grep -v '^ *+' conftest.er1 >conftest.err
36532 cat conftest.err >&5
36533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36534 (exit $ac_status); } && {
36535 test -z "$ac_c_werror_flag" ||
36536 test ! -s conftest.err
36537 } && test -s conftest.$ac_objext; then
36540 cat >conftest.$ac_ext <<_ACEOF
36543 cat confdefs.h >>conftest.$ac_ext
36544 cat >>conftest.$ac_ext <<_ACEOF
36545 /* end confdefs.h. */
36546 $ac_includes_default
36550 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
36557 rm -f conftest.$ac_objext
36558 if { (ac_try="$ac_compile"
36559 case "(($ac_try" in
36560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36561 *) ac_try_echo=$ac_try;;
36563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36564 $as_echo "$ac_try_echo") >&5
36565 (eval "$ac_compile") 2>conftest.er1
36567 grep -v '^ *+' conftest.er1 >conftest.err
36569 cat conftest.err >&5
36570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36571 (exit $ac_status); } && {
36572 test -z "$ac_c_werror_flag" ||
36573 test ! -s conftest.err
36574 } && test -s conftest.$ac_objext; then
36575 ac_hi=$ac_mid; break
36577 $as_echo "$as_me: failed program was:" >&5
36578 sed 's/^/| /' conftest.$ac_ext >&5
36580 ac_lo=`expr $ac_mid + 1`
36581 if test $ac_lo -le $ac_mid; then
36585 ac_mid=`expr 2 '*' $ac_mid + 1`
36588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36591 $as_echo "$as_me: failed program was:" >&5
36592 sed 's/^/| /' conftest.$ac_ext >&5
36594 cat >conftest.$ac_ext <<_ACEOF
36597 cat confdefs.h >>conftest.$ac_ext
36598 cat >>conftest.$ac_ext <<_ACEOF
36599 /* end confdefs.h. */
36600 $ac_includes_default
36604 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
36611 rm -f conftest.$ac_objext
36612 if { (ac_try="$ac_compile"
36613 case "(($ac_try" in
36614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36615 *) ac_try_echo=$ac_try;;
36617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36618 $as_echo "$ac_try_echo") >&5
36619 (eval "$ac_compile") 2>conftest.er1
36621 grep -v '^ *+' conftest.er1 >conftest.err
36623 cat conftest.err >&5
36624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36625 (exit $ac_status); } && {
36626 test -z "$ac_c_werror_flag" ||
36627 test ! -s conftest.err
36628 } && test -s conftest.$ac_objext; then
36631 cat >conftest.$ac_ext <<_ACEOF
36634 cat confdefs.h >>conftest.$ac_ext
36635 cat >>conftest.$ac_ext <<_ACEOF
36636 /* end confdefs.h. */
36637 $ac_includes_default
36641 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
36648 rm -f conftest.$ac_objext
36649 if { (ac_try="$ac_compile"
36650 case "(($ac_try" in
36651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36652 *) ac_try_echo=$ac_try;;
36654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36655 $as_echo "$ac_try_echo") >&5
36656 (eval "$ac_compile") 2>conftest.er1
36658 grep -v '^ *+' conftest.er1 >conftest.err
36660 cat conftest.err >&5
36661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36662 (exit $ac_status); } && {
36663 test -z "$ac_c_werror_flag" ||
36664 test ! -s conftest.err
36665 } && test -s conftest.$ac_objext; then
36666 ac_lo=$ac_mid; break
36668 $as_echo "$as_me: failed program was:" >&5
36669 sed 's/^/| /' conftest.$ac_ext >&5
36671 ac_hi=`expr '(' $ac_mid ')' - 1`
36672 if test $ac_mid -le $ac_hi; then
36676 ac_mid=`expr 2 '*' $ac_mid`
36679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36682 $as_echo "$as_me: failed program was:" >&5
36683 sed 's/^/| /' conftest.$ac_ext >&5
36688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36692 # Binary search between lo and hi bounds.
36693 while test "x$ac_lo" != "x$ac_hi"; do
36694 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36695 cat >conftest.$ac_ext <<_ACEOF
36698 cat confdefs.h >>conftest.$ac_ext
36699 cat >>conftest.$ac_ext <<_ACEOF
36700 /* end confdefs.h. */
36701 $ac_includes_default
36705 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
36712 rm -f conftest.$ac_objext
36713 if { (ac_try="$ac_compile"
36714 case "(($ac_try" in
36715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36716 *) ac_try_echo=$ac_try;;
36718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36719 $as_echo "$ac_try_echo") >&5
36720 (eval "$ac_compile") 2>conftest.er1
36722 grep -v '^ *+' conftest.er1 >conftest.err
36724 cat conftest.err >&5
36725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36726 (exit $ac_status); } && {
36727 test -z "$ac_c_werror_flag" ||
36728 test ! -s conftest.err
36729 } && test -s conftest.$ac_objext; then
36732 $as_echo "$as_me: failed program was:" >&5
36733 sed 's/^/| /' conftest.$ac_ext >&5
36735 ac_lo=`expr '(' $ac_mid ')' + 1`
36738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36741 ?*) ac_cv_sizeof_long_long=$ac_lo;;
36742 '') if test "$ac_cv_type_long_long" = yes; then
36743 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
36744 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36745 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
36746 See \`config.log' for more details." >&5
36747 $as_echo "$as_me: error: cannot compute sizeof (long long)
36748 See \`config.log' for more details." >&2;}
36749 { (exit 77); exit 77; }; }; }
36751 ac_cv_sizeof_long_long=0
36755 cat >conftest.$ac_ext <<_ACEOF
36758 cat confdefs.h >>conftest.$ac_ext
36759 cat >>conftest.$ac_ext <<_ACEOF
36760 /* end confdefs.h. */
36761 $ac_includes_default
36762 static long int longval () { return (long int) (sizeof (long long)); }
36763 static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
36765 #include <stdlib.h>
36770 FILE *f = fopen ("conftest.val", "w");
36773 if (((long int) (sizeof (long long))) < 0)
36775 long int i = longval ();
36776 if (i != ((long int) (sizeof (long long))))
36778 fprintf (f, "%ld", i);
36782 unsigned long int i = ulongval ();
36783 if (i != ((long int) (sizeof (long long))))
36785 fprintf (f, "%lu", i);
36787 /* Do not output a trailing newline, as this causes \r\n confusion
36788 on some platforms. */
36789 return ferror (f) || fclose (f) != 0;
36795 rm -f conftest$ac_exeext
36796 if { (ac_try="$ac_link"
36797 case "(($ac_try" in
36798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36799 *) ac_try_echo=$ac_try;;
36801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36802 $as_echo "$ac_try_echo") >&5
36803 (eval "$ac_link") 2>&5
36805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36806 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36807 { (case "(($ac_try" in
36808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36809 *) ac_try_echo=$ac_try;;
36811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36812 $as_echo "$ac_try_echo") >&5
36813 (eval "$ac_try") 2>&5
36815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36816 (exit $ac_status); }; }; then
36817 ac_cv_sizeof_long_long=`cat conftest.val`
36819 $as_echo "$as_me: program exited with status $ac_status" >&5
36820 $as_echo "$as_me: failed program was:" >&5
36821 sed 's/^/| /' conftest.$ac_ext >&5
36823 ( exit $ac_status )
36824 if test "$ac_cv_type_long_long" = yes; then
36825 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
36826 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36827 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
36828 See \`config.log' for more details." >&5
36829 $as_echo "$as_me: error: cannot compute sizeof (long long)
36830 See \`config.log' for more details." >&2;}
36831 { (exit 77); exit 77; }; }; }
36833 ac_cv_sizeof_long_long=0
36836 rm -rf conftest.dSYM
36837 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36841 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
36842 $as_echo "$ac_cv_sizeof_long_long" >&6; }
36846 cat >>confdefs.h <<_ACEOF
36847 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
36852 if test "$ac_cv_sizeof_short" = "2"; then
36855 if test "$ac_cv_sizeof_int" = "4"; then
36858 # Now we need to find what apr_int64_t (sizeof == 8) will be.
36859 # The first match is our preference.
36860 if test "$ac_cv_sizeof_int" = "8"; then
36861 int64_literal='#define APR_INT64_C(val) (val)'
36862 int64_t_fmt='#define APR_INT64_T_FMT "d"'
36863 int64_t_fmt_len='#define APR_INT64_T_FMT_LEN 1'
36864 uint64_t_fmt='#define APR_UINT64_T_FMT "u"'
36865 uint64_t_fmt_len='#define APR_UINT64_T_FMT_LEN 1'
36866 uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "x"'
36869 int64_strfn="strtoi"
36870 elif test "$ac_cv_sizeof_long" = "8"; then
36871 int64_literal='#define APR_INT64_C(val) (val##L)'
36872 int64_t_fmt='#define APR_INT64_T_FMT "ld"'
36873 int64_t_fmt_len='#define APR_INT64_T_FMT_LEN 2'
36874 uint64_t_fmt='#define APR_UINT64_T_FMT "lu"'
36875 uint64_t_fmt_len='#define APR_UINT64_T_FMT_LEN 2'
36876 uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "lx"'
36879 int64_strfn="strtol"
36880 elif test "$ac_cv_sizeof_long_long" = "8"; then
36881 int64_literal='#define APR_INT64_C(val) (val##LL)'
36882 # Linux, Solaris, FreeBSD all support ll with printf.
36883 # BSD 4.4 originated 'q'. Solaris is more popular and
36884 # doesn't support 'q'. Solaris wins. Exceptions can
36885 # go to the OS-dependent section.
36886 int64_t_fmt='#define APR_INT64_T_FMT "lld"'
36887 int64_t_fmt_len='#define APR_INT64_T_FMT_LEN 3'
36888 uint64_t_fmt='#define APR_UINT64_T_FMT "llu"'
36889 uint64_t_fmt_len='#define APR_UINT64_T_FMT_LEN 3'
36890 uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "llx"'
36891 int64_value="long long"
36892 long_value="long long"
36893 int64_strfn="strtoll"
36894 elif test "$ac_cv_sizeof_long_double" = "8"; then
36895 int64_literal='#define APR_INT64_C(val) (val##LD)'
36896 int64_t_fmt='#define APR_INT64_T_FMT "Ld"'
36897 int64_t_fmt_len='#define APR_INT64_T_FMT_LEN 2'
36898 uint64_t_fmt='#define APR_UINT64_T_FMT "Lu"'
36899 uint64_t_fmt_len='#define APR_UINT64_T_FMT_LEN 2'
36900 uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "Lx"'
36901 int64_value="long double"
36902 long_value="long double"
36903 int64_strfn="strtoll"
36904 elif test "$ac_cv_sizeof_longlong" = "8"; then
36905 int64_literal='#define APR_INT64_C(val) (val##LL)'
36906 int64_t_fmt='#define APR_INT64_T_FMT "qd"'
36907 int64_t_fmt_len='#define APR_INT64_T_FMT_LEN 2'
36908 uint64_t_fmt='#define APR_UINT64_T_FMT "qu"'
36909 uint64_t_fmt_len='#define APR_UINT64_T_FMT_LEN 2'
36910 uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "qx"'
36911 int64_value="__int64"
36912 long_value="__int64"
36913 int64_strfn="strtoll"
36915 # int64_literal may be overriden if your compiler thinks you have
36916 # a 64-bit value but APR does not agree.
36917 int64_literal='#error Can not determine the proper size for apr_int64_t'
36918 int64_t_fmt='#error Can not determine the proper size for apr_int64_t'
36919 int64_t_fmt_len='#error Can not determine the proper size for apr_int64_t'
36920 uint64_t_fmt='#error Can not determine the proper size for apr_int64_t'
36921 uint64_t_fmt_len='#error Can not determine the proper size for apr_int64_t'
36922 uint64_t_hex_fmt='#error Can not determine the proper size for apr_uint64_t'
36925 # If present, allow the C99 macro INT64_C to override our conversion.
36927 # HP-UX's ANSI C compiler provides this without any includes, so we
36928 # will first look for INT64_C without adding stdint.h
36929 { $as_echo "$as_me:$LINENO: checking for INT64_C" >&5
36930 $as_echo_n "checking for INT64_C... " >&6; }
36931 if test "${apr_cv_define_INT64_C+set}" = set; then
36932 $as_echo_n "(cached) " >&6
36935 cat >conftest.$ac_ext <<_ACEOF
36938 cat confdefs.h >>conftest.$ac_ext
36939 cat >>conftest.$ac_ext <<_ACEOF
36940 /* end confdefs.h. */
36945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36946 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then
36947 apr_cv_define_INT64_C=yes
36950 # Now check for INT64_C in stdint.h
36951 cat >conftest.$ac_ext <<_ACEOF
36954 cat confdefs.h >>conftest.$ac_ext
36955 cat >>conftest.$ac_ext <<_ACEOF
36956 /* end confdefs.h. */
36957 #include <stdint.h>
36962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36963 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then
36964 apr_cv_define_INT64_C=yes
36966 apr_cv_define_INT64_C=no
36974 { $as_echo "$as_me:$LINENO: result: $apr_cv_define_INT64_C" >&5
36975 $as_echo "$apr_cv_define_INT64_C" >&6; }
36977 if test "$apr_cv_define_INT64_C" = "yes"; then
36978 int64_literal='#define APR_INT64_C(val) INT64_C(val)'
36984 if test "$ac_cv_type_size_t" = "yes"; then
36985 size_t_value="size_t"
36987 size_t_value="apr_int32_t"
36989 if test "$ac_cv_type_ssize_t" = "yes"; then
36990 ssize_t_value="ssize_t"
36992 ssize_t_value="apr_int32_t"
36994 if test "$ac_cv_socklen_t" = "yes"; then
36995 socklen_t_value="socklen_t"
36998 if test "$ac_cv_sizeof_long" = "8"; then
36999 # 64-bit HP-UX requires 32-bit socklens in
37000 # kernel, but user-space declarations say
37001 # 64-bit (socklen_t == size_t == long).
37002 # This will result in many compile warnings,
37003 # but we're functionally busted otherwise.
37004 socklen_t_value="int"
37009 socklen_t_value="int"
37012 { $as_echo "$as_me:$LINENO: checking size of ssize_t" >&5
37013 $as_echo_n "checking size of ssize_t... " >&6; }
37014 if test "${ac_cv_sizeof_ssize_t+set}" = set; then
37015 $as_echo_n "(cached) " >&6
37017 if test "$cross_compiling" = yes; then
37018 ac_cv_sizeof_ssize_t=8
37020 cat >conftest.$ac_ext <<_ACEOF
37023 cat confdefs.h >>conftest.$ac_ext
37024 cat >>conftest.$ac_ext <<_ACEOF
37025 /* end confdefs.h. */
37027 #include <sys/types.h>
37030 FILE *f=fopen("conftestval","w");
37032 fprintf(f, "%d\n", sizeof(ssize_t));
37036 rm -f conftest$ac_exeext
37037 if { (ac_try="$ac_link"
37038 case "(($ac_try" in
37039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37040 *) ac_try_echo=$ac_try;;
37042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37043 $as_echo "$ac_try_echo") >&5
37044 (eval "$ac_link") 2>&5
37046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37047 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37048 { (case "(($ac_try" in
37049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37050 *) ac_try_echo=$ac_try;;
37052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37053 $as_echo "$ac_try_echo") >&5
37054 (eval "$ac_try") 2>&5
37056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37057 (exit $ac_status); }; }; then
37058 ac_cv_sizeof_ssize_t=`cat conftestval`
37060 $as_echo "$as_me: program exited with status $ac_status" >&5
37061 $as_echo "$as_me: failed program was:" >&5
37062 sed 's/^/| /' conftest.$ac_ext >&5
37064 ( exit $ac_status )
37065 ac_cv_sizeof_ssize_t=0
37067 rm -rf conftest.dSYM
37068 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37073 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_ssize_t" >&5
37074 $as_echo "$ac_cv_sizeof_ssize_t" >&6; }
37076 cat >>confdefs.h <<_ACEOF
37077 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
37082 if test "$ac_cv_sizeof_ssize_t" = "$ac_cv_sizeof_int"; then
37083 ssize_t_fmt='#define APR_SSIZE_T_FMT "d"'
37084 elif test "$ac_cv_sizeof_ssize_t" = "$ac_cv_sizeof_long"; then
37085 ssize_t_fmt='#define APR_SSIZE_T_FMT "ld"'
37087 ssize_t_fmt='#error Can not determine the proper size for ssize_t'
37090 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
37091 $as_echo_n "checking size of size_t... " >&6; }
37092 if test "${ac_cv_sizeof_size_t+set}" = set; then
37093 $as_echo_n "(cached) " >&6
37095 if test "$cross_compiling" = yes; then
37096 ac_cv_sizeof_size_t=8
37098 cat >conftest.$ac_ext <<_ACEOF
37101 cat confdefs.h >>conftest.$ac_ext
37102 cat >>conftest.$ac_ext <<_ACEOF
37103 /* end confdefs.h. */
37105 #include <stddef.h>
37108 FILE *f=fopen("conftestval","w");
37110 fprintf(f, "%d\n", sizeof(size_t));
37114 rm -f conftest$ac_exeext
37115 if { (ac_try="$ac_link"
37116 case "(($ac_try" in
37117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37118 *) ac_try_echo=$ac_try;;
37120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37121 $as_echo "$ac_try_echo") >&5
37122 (eval "$ac_link") 2>&5
37124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37125 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37126 { (case "(($ac_try" in
37127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37128 *) ac_try_echo=$ac_try;;
37130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37131 $as_echo "$ac_try_echo") >&5
37132 (eval "$ac_try") 2>&5
37134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37135 (exit $ac_status); }; }; then
37136 ac_cv_sizeof_size_t=`cat conftestval`
37138 $as_echo "$as_me: program exited with status $ac_status" >&5
37139 $as_echo "$as_me: failed program was:" >&5
37140 sed 's/^/| /' conftest.$ac_ext >&5
37142 ( exit $ac_status )
37143 ac_cv_sizeof_size_t=0
37145 rm -rf conftest.dSYM
37146 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37151 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
37152 $as_echo "$ac_cv_sizeof_size_t" >&6; }
37154 cat >>confdefs.h <<_ACEOF
37155 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
37160 if test "$ac_cv_sizeof_size_t" = "$ac_cv_sizeof_int"; then
37161 size_t_fmt='#define APR_SIZE_T_FMT "d"'
37162 elif test "$ac_cv_sizeof_size_t" = "$ac_cv_sizeof_long"; then
37163 size_t_fmt='#define APR_SIZE_T_FMT "ld"'
37165 size_t_fmt='#error Can not determine the proper size for size_t'
37168 if test "$ac_cv_type_off_t" = "yes"; then
37169 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
37170 $as_echo_n "checking size of off_t... " >&6; }
37171 if test "${ac_cv_sizeof_off_t+set}" = set; then
37172 $as_echo_n "(cached) " >&6
37174 if test "$cross_compiling" = yes; then
37175 ac_cv_sizeof_off_t=8
37177 cat >conftest.$ac_ext <<_ACEOF
37180 cat confdefs.h >>conftest.$ac_ext
37181 cat >>conftest.$ac_ext <<_ACEOF
37182 /* end confdefs.h. */
37184 #include <sys/types.h>
37187 FILE *f=fopen("conftestval","w");
37189 fprintf(f, "%d\n", sizeof(off_t));
37193 rm -f conftest$ac_exeext
37194 if { (ac_try="$ac_link"
37195 case "(($ac_try" in
37196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37197 *) ac_try_echo=$ac_try;;
37199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37200 $as_echo "$ac_try_echo") >&5
37201 (eval "$ac_link") 2>&5
37203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37204 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37205 { (case "(($ac_try" in
37206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37207 *) ac_try_echo=$ac_try;;
37209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37210 $as_echo "$ac_try_echo") >&5
37211 (eval "$ac_try") 2>&5
37213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37214 (exit $ac_status); }; }; then
37215 ac_cv_sizeof_off_t=`cat conftestval`
37217 $as_echo "$as_me: program exited with status $ac_status" >&5
37218 $as_echo "$as_me: failed program was:" >&5
37219 sed 's/^/| /' conftest.$ac_ext >&5
37221 ( exit $ac_status )
37222 ac_cv_sizeof_off_t=0
37224 rm -rf conftest.dSYM
37225 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37230 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
37231 $as_echo "$ac_cv_sizeof_off_t" >&6; }
37233 cat >>confdefs.h <<_ACEOF
37234 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
37238 { $as_echo "$as_me:$LINENO: checking which type to use for apr_off_t" >&5
37239 $as_echo_n "checking which type to use for apr_off_t... " >&6; }
37240 if test "${ac_cv_sizeof_off_t}${ac_cv_sizeof_long}" = "44"; then
37241 # Special case: off_t may change size with _FILE_OFFSET_BITS
37242 # on 32-bit systems with LFS support. To avoid compatibility
37243 # issues when other packages do define _FILE_OFFSET_BITS,
37244 # hard-code apr_off_t to long.
37246 off_t_fmt='#define APR_OFF_T_FMT "ld"'
37249 # off_t is more commonly a long than an int; prefer that case
37250 # where int and long are the same size.
37251 if test "$ac_cv_sizeof_off_t" = "$ac_cv_sizeof_long"; then
37252 off_t_fmt='#define APR_OFF_T_FMT "ld"'
37253 elif test "$ac_cv_sizeof_off_t" = "$ac_cv_sizeof_int"; then
37254 off_t_fmt='#define APR_OFF_T_FMT "d"'
37255 elif test "$ac_cv_sizeof_off_t" = "$ac_cv_sizeof_long_long"; then
37256 off_t_fmt='#define APR_OFF_T_FMT APR_INT64_T_FMT'
37258 { { $as_echo "$as_me:$LINENO: error: could not determine the size of off_t" >&5
37259 $as_echo "$as_me: error: could not determine the size of off_t" >&2;}
37260 { (exit 1); exit 1; }; }
37263 { $as_echo "$as_me:$LINENO: result: $off_t_value" >&5
37264 $as_echo "$off_t_value" >&6; }
37269 { $as_echo "$as_me:$LINENO: checking whether ino_t and unsigned long long are the same" >&5
37270 $as_echo_n "checking whether ino_t and unsigned long long are the same... " >&6; }
37271 if test "${apr_cv_typematch_ino_t_unsigned_long_long+set}" = set; then
37272 $as_echo_n "(cached) " >&6
37275 cat >conftest.$ac_ext <<_ACEOF
37278 cat confdefs.h >>conftest.$ac_ext
37279 cat >>conftest.$ac_ext <<_ACEOF
37280 /* end confdefs.h. */
37281 $ac_includes_default
37286 int foo[0 - !__builtin_types_compatible_p(ino_t, unsigned long long)];
37292 rm -f conftest.$ac_objext
37293 if { (ac_try="$ac_compile"
37294 case "(($ac_try" in
37295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37296 *) ac_try_echo=$ac_try;;
37298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37299 $as_echo "$ac_try_echo") >&5
37300 (eval "$ac_compile") 2>conftest.er1
37302 grep -v '^ *+' conftest.er1 >conftest.err
37304 cat conftest.err >&5
37305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37306 (exit $ac_status); } && {
37307 test -z "$ac_c_werror_flag" ||
37308 test ! -s conftest.err
37309 } && test -s conftest.$ac_objext; then
37310 apr_cv_typematch_ino_t_unsigned_long_long=yes ino_t_value="unsigned long long"
37312 $as_echo "$as_me: failed program was:" >&5
37313 sed 's/^/| /' conftest.$ac_ext >&5
37315 apr_cv_typematch_ino_t_unsigned_long_long=no
37318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37320 { $as_echo "$as_me:$LINENO: result: $apr_cv_typematch_ino_t_unsigned_long_long" >&5
37321 $as_echo "$apr_cv_typematch_ino_t_unsigned_long_long" >&6; }
37325 { $as_echo "$as_me:$LINENO: checking whether ino_t and unsigned long are the same" >&5
37326 $as_echo_n "checking whether ino_t and unsigned long are the same... " >&6; }
37327 if test "${apr_cv_typematch_ino_t_unsigned_long+set}" = set; then
37328 $as_echo_n "(cached) " >&6
37331 cat >conftest.$ac_ext <<_ACEOF
37334 cat confdefs.h >>conftest.$ac_ext
37335 cat >>conftest.$ac_ext <<_ACEOF
37336 /* end confdefs.h. */
37337 $ac_includes_default
37342 int foo[0 - !__builtin_types_compatible_p(ino_t, unsigned long)];
37348 rm -f conftest.$ac_objext
37349 if { (ac_try="$ac_compile"
37350 case "(($ac_try" in
37351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37352 *) ac_try_echo=$ac_try;;
37354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37355 $as_echo "$ac_try_echo") >&5
37356 (eval "$ac_compile") 2>conftest.er1
37358 grep -v '^ *+' conftest.er1 >conftest.err
37360 cat conftest.err >&5
37361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37362 (exit $ac_status); } && {
37363 test -z "$ac_c_werror_flag" ||
37364 test ! -s conftest.err
37365 } && test -s conftest.$ac_objext; then
37366 apr_cv_typematch_ino_t_unsigned_long=yes ino_t_value="unsigned long"
37368 $as_echo "$as_me: failed program was:" >&5
37369 sed 's/^/| /' conftest.$ac_ext >&5
37371 apr_cv_typematch_ino_t_unsigned_long=no
37374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37376 { $as_echo "$as_me:$LINENO: result: $apr_cv_typematch_ino_t_unsigned_long" >&5
37377 $as_echo "$apr_cv_typematch_ino_t_unsigned_long" >&6; }
37381 { $as_echo "$as_me:$LINENO: checking whether ino_t and unsigned int are the same" >&5
37382 $as_echo_n "checking whether ino_t and unsigned int are the same... " >&6; }
37383 if test "${apr_cv_typematch_ino_t_unsigned_int+set}" = set; then
37384 $as_echo_n "(cached) " >&6
37387 cat >conftest.$ac_ext <<_ACEOF
37390 cat confdefs.h >>conftest.$ac_ext
37391 cat >>conftest.$ac_ext <<_ACEOF
37392 /* end confdefs.h. */
37393 $ac_includes_default
37398 int foo[0 - !__builtin_types_compatible_p(ino_t, unsigned int)];
37404 rm -f conftest.$ac_objext
37405 if { (ac_try="$ac_compile"
37406 case "(($ac_try" in
37407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37408 *) ac_try_echo=$ac_try;;
37410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37411 $as_echo "$ac_try_echo") >&5
37412 (eval "$ac_compile") 2>conftest.er1
37414 grep -v '^ *+' conftest.er1 >conftest.err
37416 cat conftest.err >&5
37417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37418 (exit $ac_status); } && {
37419 test -z "$ac_c_werror_flag" ||
37420 test ! -s conftest.err
37421 } && test -s conftest.$ac_objext; then
37422 apr_cv_typematch_ino_t_unsigned_int=yes ino_t_value="unsigned int"
37424 $as_echo "$as_me: failed program was:" >&5
37425 sed 's/^/| /' conftest.$ac_ext >&5
37427 apr_cv_typematch_ino_t_unsigned_int=no
37430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37432 { $as_echo "$as_me:$LINENO: result: $apr_cv_typematch_ino_t_unsigned_int" >&5
37433 $as_echo "$apr_cv_typematch_ino_t_unsigned_int" >&6; }
37437 off_t_value='apr_int32_t'
37438 off_t_fmt='#define APR_OFF_T_FMT "d"'
37441 { $as_echo "$as_me:$LINENO: checking size of pid_t" >&5
37442 $as_echo_n "checking size of pid_t... " >&6; }
37443 if test "${ac_cv_sizeof_pid_t+set}" = set; then
37444 $as_echo_n "(cached) " >&6
37446 if test "$cross_compiling" = yes; then
37447 ac_cv_sizeof_pid_t=8
37449 cat >conftest.$ac_ext <<_ACEOF
37452 cat confdefs.h >>conftest.$ac_ext
37453 cat >>conftest.$ac_ext <<_ACEOF
37454 /* end confdefs.h. */
37456 #include <sys/types.h>
37459 FILE *f=fopen("conftestval","w");
37461 fprintf(f, "%d\n", sizeof(pid_t));
37465 rm -f conftest$ac_exeext
37466 if { (ac_try="$ac_link"
37467 case "(($ac_try" in
37468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37469 *) ac_try_echo=$ac_try;;
37471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37472 $as_echo "$ac_try_echo") >&5
37473 (eval "$ac_link") 2>&5
37475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37476 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37477 { (case "(($ac_try" in
37478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37479 *) ac_try_echo=$ac_try;;
37481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37482 $as_echo "$ac_try_echo") >&5
37483 (eval "$ac_try") 2>&5
37485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37486 (exit $ac_status); }; }; then
37487 ac_cv_sizeof_pid_t=`cat conftestval`
37489 $as_echo "$as_me: program exited with status $ac_status" >&5
37490 $as_echo "$as_me: failed program was:" >&5
37491 sed 's/^/| /' conftest.$ac_ext >&5
37493 ( exit $ac_status )
37494 ac_cv_sizeof_pid_t=0
37496 rm -rf conftest.dSYM
37497 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37502 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
37503 $as_echo "$ac_cv_sizeof_pid_t" >&6; }
37505 cat >>confdefs.h <<_ACEOF
37506 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
37511 if test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_short"; then
37512 pid_t_fmt='#define APR_PID_T_FMT "hd"'
37513 elif test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_int"; then
37514 pid_t_fmt='#define APR_PID_T_FMT "d"'
37515 elif test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_long"; then
37516 pid_t_fmt='#define APR_PID_T_FMT "ld"'
37517 elif test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_long_long"; then
37518 pid_t_fmt='#define APR_PID_T_FMT APR_INT64_T_FMT'
37520 pid_t_fmt='#error Can not determine the proper size for pid_t'
37523 # Basically, we have tried to figure out the correct format strings
37524 # for APR types which vary between platforms, but we don't always get
37525 # it right. If you find that we don't get it right for your platform,
37526 # you can override our decision below.
37531 size_t_fmt='#define APR_SIZE_T_FMT "ld"'
37536 size_t_fmt='#define APR_SIZE_T_FMT "lu"'
37539 pid_t_fmt='#define APR_PID_T_FMT "ld"'
37542 ssize_t_fmt='#define APR_SSIZE_T_FMT "ld"'
37543 size_t_fmt='#define APR_SIZE_T_FMT "lu"'
37546 ssize_t_fmt='#define APR_SSIZE_T_FMT "ld"'
37547 size_t_fmt='#define APR_SIZE_T_FMT "ld"'
37553 ssize_t_fmt='#define APR_SSIZE_T_FMT "d"'
37556 ssize_t_fmt='#define APR_SSIZE_T_FMT "ld"'
37559 size_t_fmt='#define APR_SIZE_T_FMT "lu"'
37586 for ac_func in strnicmp
37588 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
37589 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
37590 $as_echo_n "checking for $ac_func... " >&6; }
37591 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37592 $as_echo_n "(cached) " >&6
37594 cat >conftest.$ac_ext <<_ACEOF
37597 cat confdefs.h >>conftest.$ac_ext
37598 cat >>conftest.$ac_ext <<_ACEOF
37599 /* end confdefs.h. */
37600 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37602 #define $ac_func innocuous_$ac_func
37604 /* System header to define __stub macros and hopefully few prototypes,
37605 which can conflict with char $ac_func (); below.
37606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37607 <limits.h> exists even on freestanding compilers. */
37610 # include <limits.h>
37612 # include <assert.h>
37617 /* Override any GCC internal prototype to avoid an error.
37618 Use char because int might match the return type of a GCC
37619 builtin and then its argument prototype would still apply. */
37624 /* The GNU C library defines this for functions which it implements
37625 to always fail with ENOSYS. Some functions are actually named
37626 something starting with __ and the normal name is an alias. */
37627 #if defined __stub_$ac_func || defined __stub___$ac_func
37634 return $ac_func ();
37639 rm -f conftest.$ac_objext conftest$ac_exeext
37640 if { (ac_try="$ac_link"
37641 case "(($ac_try" in
37642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37643 *) ac_try_echo=$ac_try;;
37645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37646 $as_echo "$ac_try_echo") >&5
37647 (eval "$ac_link") 2>conftest.er1
37649 grep -v '^ *+' conftest.er1 >conftest.err
37651 cat conftest.err >&5
37652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37653 (exit $ac_status); } && {
37654 test -z "$ac_c_werror_flag" ||
37655 test ! -s conftest.err
37656 } && test -s conftest$ac_exeext && {
37657 test "$cross_compiling" = yes ||
37658 $as_test_x conftest$ac_exeext
37660 eval "$as_ac_var=yes"
37662 $as_echo "$as_me: failed program was:" >&5
37663 sed 's/^/| /' conftest.$ac_ext >&5
37665 eval "$as_ac_var=no"
37668 rm -rf conftest.dSYM
37669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37670 conftest$ac_exeext conftest.$ac_ext
37672 ac_res=`eval 'as_val=${'$as_ac_var'}
37673 $as_echo "$as_val"'`
37674 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
37675 $as_echo "$ac_res" >&6; }
37676 as_val=`eval 'as_val=${'$as_ac_var'}
37677 $as_echo "$as_val"'`
37678 if test "x$as_val" = x""yes; then
37679 cat >>confdefs.h <<_ACEOF
37680 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
37689 for ac_func in strncasecmp
37691 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
37692 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
37693 $as_echo_n "checking for $ac_func... " >&6; }
37694 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37695 $as_echo_n "(cached) " >&6
37697 cat >conftest.$ac_ext <<_ACEOF
37700 cat confdefs.h >>conftest.$ac_ext
37701 cat >>conftest.$ac_ext <<_ACEOF
37702 /* end confdefs.h. */
37703 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37705 #define $ac_func innocuous_$ac_func
37707 /* System header to define __stub macros and hopefully few prototypes,
37708 which can conflict with char $ac_func (); below.
37709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37710 <limits.h> exists even on freestanding compilers. */
37713 # include <limits.h>
37715 # include <assert.h>
37720 /* Override any GCC internal prototype to avoid an error.
37721 Use char because int might match the return type of a GCC
37722 builtin and then its argument prototype would still apply. */
37727 /* The GNU C library defines this for functions which it implements
37728 to always fail with ENOSYS. Some functions are actually named
37729 something starting with __ and the normal name is an alias. */
37730 #if defined __stub_$ac_func || defined __stub___$ac_func
37737 return $ac_func ();
37742 rm -f conftest.$ac_objext conftest$ac_exeext
37743 if { (ac_try="$ac_link"
37744 case "(($ac_try" in
37745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37746 *) ac_try_echo=$ac_try;;
37748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37749 $as_echo "$ac_try_echo") >&5
37750 (eval "$ac_link") 2>conftest.er1
37752 grep -v '^ *+' conftest.er1 >conftest.err
37754 cat conftest.err >&5
37755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37756 (exit $ac_status); } && {
37757 test -z "$ac_c_werror_flag" ||
37758 test ! -s conftest.err
37759 } && test -s conftest$ac_exeext && {
37760 test "$cross_compiling" = yes ||
37761 $as_test_x conftest$ac_exeext
37763 eval "$as_ac_var=yes"
37765 $as_echo "$as_me: failed program was:" >&5
37766 sed 's/^/| /' conftest.$ac_ext >&5
37768 eval "$as_ac_var=no"
37771 rm -rf conftest.dSYM
37772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37773 conftest$ac_exeext conftest.$ac_ext
37775 ac_res=`eval 'as_val=${'$as_ac_var'}
37776 $as_echo "$as_val"'`
37777 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
37778 $as_echo "$ac_res" >&6; }
37779 as_val=`eval 'as_val=${'$as_ac_var'}
37780 $as_echo "$as_val"'`
37781 if test "x$as_val" = x""yes; then
37782 cat >>confdefs.h <<_ACEOF
37783 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
37785 have_strncasecmp="1"
37787 have_strncasecmp="0"
37792 for ac_func in stricmp
37794 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
37795 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
37796 $as_echo_n "checking for $ac_func... " >&6; }
37797 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37798 $as_echo_n "(cached) " >&6
37800 cat >conftest.$ac_ext <<_ACEOF
37803 cat confdefs.h >>conftest.$ac_ext
37804 cat >>conftest.$ac_ext <<_ACEOF
37805 /* end confdefs.h. */
37806 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37808 #define $ac_func innocuous_$ac_func
37810 /* System header to define __stub macros and hopefully few prototypes,
37811 which can conflict with char $ac_func (); below.
37812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37813 <limits.h> exists even on freestanding compilers. */
37816 # include <limits.h>
37818 # include <assert.h>
37823 /* Override any GCC internal prototype to avoid an error.
37824 Use char because int might match the return type of a GCC
37825 builtin and then its argument prototype would still apply. */
37830 /* The GNU C library defines this for functions which it implements
37831 to always fail with ENOSYS. Some functions are actually named
37832 something starting with __ and the normal name is an alias. */
37833 #if defined __stub_$ac_func || defined __stub___$ac_func
37840 return $ac_func ();
37845 rm -f conftest.$ac_objext conftest$ac_exeext
37846 if { (ac_try="$ac_link"
37847 case "(($ac_try" in
37848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37849 *) ac_try_echo=$ac_try;;
37851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37852 $as_echo "$ac_try_echo") >&5
37853 (eval "$ac_link") 2>conftest.er1
37855 grep -v '^ *+' conftest.er1 >conftest.err
37857 cat conftest.err >&5
37858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37859 (exit $ac_status); } && {
37860 test -z "$ac_c_werror_flag" ||
37861 test ! -s conftest.err
37862 } && test -s conftest$ac_exeext && {
37863 test "$cross_compiling" = yes ||
37864 $as_test_x conftest$ac_exeext
37866 eval "$as_ac_var=yes"
37868 $as_echo "$as_me: failed program was:" >&5
37869 sed 's/^/| /' conftest.$ac_ext >&5
37871 eval "$as_ac_var=no"
37874 rm -rf conftest.dSYM
37875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37876 conftest$ac_exeext conftest.$ac_ext
37878 ac_res=`eval 'as_val=${'$as_ac_var'}
37879 $as_echo "$as_val"'`
37880 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
37881 $as_echo "$ac_res" >&6; }
37882 as_val=`eval 'as_val=${'$as_ac_var'}
37883 $as_echo "$as_val"'`
37884 if test "x$as_val" = x""yes; then
37885 cat >>confdefs.h <<_ACEOF
37886 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
37895 for ac_func in strcasecmp
37897 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
37898 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
37899 $as_echo_n "checking for $ac_func... " >&6; }
37900 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37901 $as_echo_n "(cached) " >&6
37903 cat >conftest.$ac_ext <<_ACEOF
37906 cat confdefs.h >>conftest.$ac_ext
37907 cat >>conftest.$ac_ext <<_ACEOF
37908 /* end confdefs.h. */
37909 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37911 #define $ac_func innocuous_$ac_func
37913 /* System header to define __stub macros and hopefully few prototypes,
37914 which can conflict with char $ac_func (); below.
37915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37916 <limits.h> exists even on freestanding compilers. */
37919 # include <limits.h>
37921 # include <assert.h>
37926 /* Override any GCC internal prototype to avoid an error.
37927 Use char because int might match the return type of a GCC
37928 builtin and then its argument prototype would still apply. */
37933 /* The GNU C library defines this for functions which it implements
37934 to always fail with ENOSYS. Some functions are actually named
37935 something starting with __ and the normal name is an alias. */
37936 #if defined __stub_$ac_func || defined __stub___$ac_func
37943 return $ac_func ();
37948 rm -f conftest.$ac_objext conftest$ac_exeext
37949 if { (ac_try="$ac_link"
37950 case "(($ac_try" in
37951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37952 *) ac_try_echo=$ac_try;;
37954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37955 $as_echo "$ac_try_echo") >&5
37956 (eval "$ac_link") 2>conftest.er1
37958 grep -v '^ *+' conftest.er1 >conftest.err
37960 cat conftest.err >&5
37961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37962 (exit $ac_status); } && {
37963 test -z "$ac_c_werror_flag" ||
37964 test ! -s conftest.err
37965 } && test -s conftest$ac_exeext && {
37966 test "$cross_compiling" = yes ||
37967 $as_test_x conftest$ac_exeext
37969 eval "$as_ac_var=yes"
37971 $as_echo "$as_me: failed program was:" >&5
37972 sed 's/^/| /' conftest.$ac_ext >&5
37974 eval "$as_ac_var=no"
37977 rm -rf conftest.dSYM
37978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37979 conftest$ac_exeext conftest.$ac_ext
37981 ac_res=`eval 'as_val=${'$as_ac_var'}
37982 $as_echo "$as_val"'`
37983 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
37984 $as_echo "$ac_res" >&6; }
37985 as_val=`eval 'as_val=${'$as_ac_var'}
37986 $as_echo "$as_val"'`
37987 if test "x$as_val" = x""yes; then
37988 cat >>confdefs.h <<_ACEOF
37989 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
37991 have_strcasecmp="1"
37993 have_strcasecmp="0"
37998 for ac_func in strdup
38000 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
38001 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
38002 $as_echo_n "checking for $ac_func... " >&6; }
38003 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38004 $as_echo_n "(cached) " >&6
38006 cat >conftest.$ac_ext <<_ACEOF
38009 cat confdefs.h >>conftest.$ac_ext
38010 cat >>conftest.$ac_ext <<_ACEOF
38011 /* end confdefs.h. */
38012 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38013 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38014 #define $ac_func innocuous_$ac_func
38016 /* System header to define __stub macros and hopefully few prototypes,
38017 which can conflict with char $ac_func (); below.
38018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38019 <limits.h> exists even on freestanding compilers. */
38022 # include <limits.h>
38024 # include <assert.h>
38029 /* Override any GCC internal prototype to avoid an error.
38030 Use char because int might match the return type of a GCC
38031 builtin and then its argument prototype would still apply. */
38036 /* The GNU C library defines this for functions which it implements
38037 to always fail with ENOSYS. Some functions are actually named
38038 something starting with __ and the normal name is an alias. */
38039 #if defined __stub_$ac_func || defined __stub___$ac_func
38046 return $ac_func ();
38051 rm -f conftest.$ac_objext conftest$ac_exeext
38052 if { (ac_try="$ac_link"
38053 case "(($ac_try" in
38054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38055 *) ac_try_echo=$ac_try;;
38057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38058 $as_echo "$ac_try_echo") >&5
38059 (eval "$ac_link") 2>conftest.er1
38061 grep -v '^ *+' conftest.er1 >conftest.err
38063 cat conftest.err >&5
38064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38065 (exit $ac_status); } && {
38066 test -z "$ac_c_werror_flag" ||
38067 test ! -s conftest.err
38068 } && test -s conftest$ac_exeext && {
38069 test "$cross_compiling" = yes ||
38070 $as_test_x conftest$ac_exeext
38072 eval "$as_ac_var=yes"
38074 $as_echo "$as_me: failed program was:" >&5
38075 sed 's/^/| /' conftest.$ac_ext >&5
38077 eval "$as_ac_var=no"
38080 rm -rf conftest.dSYM
38081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38082 conftest$ac_exeext conftest.$ac_ext
38084 ac_res=`eval 'as_val=${'$as_ac_var'}
38085 $as_echo "$as_val"'`
38086 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
38087 $as_echo "$ac_res" >&6; }
38088 as_val=`eval 'as_val=${'$as_ac_var'}
38089 $as_echo "$as_val"'`
38090 if test "x$as_val" = x""yes; then
38091 cat >>confdefs.h <<_ACEOF
38092 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
38101 for ac_func in strstr
38103 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
38104 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
38105 $as_echo_n "checking for $ac_func... " >&6; }
38106 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38107 $as_echo_n "(cached) " >&6
38109 cat >conftest.$ac_ext <<_ACEOF
38112 cat confdefs.h >>conftest.$ac_ext
38113 cat >>conftest.$ac_ext <<_ACEOF
38114 /* end confdefs.h. */
38115 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38117 #define $ac_func innocuous_$ac_func
38119 /* System header to define __stub macros and hopefully few prototypes,
38120 which can conflict with char $ac_func (); below.
38121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38122 <limits.h> exists even on freestanding compilers. */
38125 # include <limits.h>
38127 # include <assert.h>
38132 /* Override any GCC internal prototype to avoid an error.
38133 Use char because int might match the return type of a GCC
38134 builtin and then its argument prototype would still apply. */
38139 /* The GNU C library defines this for functions which it implements
38140 to always fail with ENOSYS. Some functions are actually named
38141 something starting with __ and the normal name is an alias. */
38142 #if defined __stub_$ac_func || defined __stub___$ac_func
38149 return $ac_func ();
38154 rm -f conftest.$ac_objext conftest$ac_exeext
38155 if { (ac_try="$ac_link"
38156 case "(($ac_try" in
38157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38158 *) ac_try_echo=$ac_try;;
38160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38161 $as_echo "$ac_try_echo") >&5
38162 (eval "$ac_link") 2>conftest.er1
38164 grep -v '^ *+' conftest.er1 >conftest.err
38166 cat conftest.err >&5
38167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38168 (exit $ac_status); } && {
38169 test -z "$ac_c_werror_flag" ||
38170 test ! -s conftest.err
38171 } && test -s conftest$ac_exeext && {
38172 test "$cross_compiling" = yes ||
38173 $as_test_x conftest$ac_exeext
38175 eval "$as_ac_var=yes"
38177 $as_echo "$as_me: failed program was:" >&5
38178 sed 's/^/| /' conftest.$ac_ext >&5
38180 eval "$as_ac_var=no"
38183 rm -rf conftest.dSYM
38184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38185 conftest$ac_exeext conftest.$ac_ext
38187 ac_res=`eval 'as_val=${'$as_ac_var'}
38188 $as_echo "$as_val"'`
38189 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
38190 $as_echo "$ac_res" >&6; }
38191 as_val=`eval 'as_val=${'$as_ac_var'}
38192 $as_echo "$as_val"'`
38193 if test "x$as_val" = x""yes; then
38194 cat >>confdefs.h <<_ACEOF
38195 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
38204 for ac_func in memchr
38206 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
38207 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
38208 $as_echo_n "checking for $ac_func... " >&6; }
38209 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38210 $as_echo_n "(cached) " >&6
38212 cat >conftest.$ac_ext <<_ACEOF
38215 cat confdefs.h >>conftest.$ac_ext
38216 cat >>conftest.$ac_ext <<_ACEOF
38217 /* end confdefs.h. */
38218 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38219 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38220 #define $ac_func innocuous_$ac_func
38222 /* System header to define __stub macros and hopefully few prototypes,
38223 which can conflict with char $ac_func (); below.
38224 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38225 <limits.h> exists even on freestanding compilers. */
38228 # include <limits.h>
38230 # include <assert.h>
38235 /* Override any GCC internal prototype to avoid an error.
38236 Use char because int might match the return type of a GCC
38237 builtin and then its argument prototype would still apply. */
38242 /* The GNU C library defines this for functions which it implements
38243 to always fail with ENOSYS. Some functions are actually named
38244 something starting with __ and the normal name is an alias. */
38245 #if defined __stub_$ac_func || defined __stub___$ac_func
38252 return $ac_func ();
38257 rm -f conftest.$ac_objext conftest$ac_exeext
38258 if { (ac_try="$ac_link"
38259 case "(($ac_try" in
38260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38261 *) ac_try_echo=$ac_try;;
38263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38264 $as_echo "$ac_try_echo") >&5
38265 (eval "$ac_link") 2>conftest.er1
38267 grep -v '^ *+' conftest.er1 >conftest.err
38269 cat conftest.err >&5
38270 $as_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 test "$cross_compiling" = yes ||
38276 $as_test_x conftest$ac_exeext
38278 eval "$as_ac_var=yes"
38280 $as_echo "$as_me: failed program was:" >&5
38281 sed 's/^/| /' conftest.$ac_ext >&5
38283 eval "$as_ac_var=no"
38286 rm -rf conftest.dSYM
38287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38288 conftest$ac_exeext conftest.$ac_ext
38290 ac_res=`eval 'as_val=${'$as_ac_var'}
38291 $as_echo "$as_val"'`
38292 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
38293 $as_echo "$ac_res" >&6; }
38294 as_val=`eval 'as_val=${'$as_ac_var'}
38295 $as_echo "$as_val"'`
38296 if test "x$as_val" = x""yes; then
38297 cat >>confdefs.h <<_ACEOF
38298 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
38307 for ac_func in $int64_strfn
38309 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
38310 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
38311 $as_echo_n "checking for $ac_func... " >&6; }
38312 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38313 $as_echo_n "(cached) " >&6
38315 cat >conftest.$ac_ext <<_ACEOF
38318 cat confdefs.h >>conftest.$ac_ext
38319 cat >>conftest.$ac_ext <<_ACEOF
38320 /* end confdefs.h. */
38321 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38323 #define $ac_func innocuous_$ac_func
38325 /* System header to define __stub macros and hopefully few prototypes,
38326 which can conflict with char $ac_func (); below.
38327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38328 <limits.h> exists even on freestanding compilers. */
38331 # include <limits.h>
38333 # include <assert.h>
38338 /* Override any GCC internal prototype to avoid an error.
38339 Use char because int might match the return type of a GCC
38340 builtin and then its argument prototype would still apply. */
38345 /* The GNU C library defines this for functions which it implements
38346 to always fail with ENOSYS. Some functions are actually named
38347 something starting with __ and the normal name is an alias. */
38348 #if defined __stub_$ac_func || defined __stub___$ac_func
38355 return $ac_func ();
38360 rm -f conftest.$ac_objext conftest$ac_exeext
38361 if { (ac_try="$ac_link"
38362 case "(($ac_try" in
38363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38364 *) ac_try_echo=$ac_try;;
38366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38367 $as_echo "$ac_try_echo") >&5
38368 (eval "$ac_link") 2>conftest.er1
38370 grep -v '^ *+' conftest.er1 >conftest.err
38372 cat conftest.err >&5
38373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38374 (exit $ac_status); } && {
38375 test -z "$ac_c_werror_flag" ||
38376 test ! -s conftest.err
38377 } && test -s conftest$ac_exeext && {
38378 test "$cross_compiling" = yes ||
38379 $as_test_x conftest$ac_exeext
38381 eval "$as_ac_var=yes"
38383 $as_echo "$as_me: failed program was:" >&5
38384 sed 's/^/| /' conftest.$ac_ext >&5
38386 eval "$as_ac_var=no"
38389 rm -rf conftest.dSYM
38390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38391 conftest$ac_exeext conftest.$ac_ext
38393 ac_res=`eval 'as_val=${'$as_ac_var'}
38394 $as_echo "$as_val"'`
38395 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
38396 $as_echo "$ac_res" >&6; }
38397 as_val=`eval 'as_val=${'$as_ac_var'}
38398 $as_echo "$as_val"'`
38399 if test "x$as_val" = x""yes; then
38400 cat >>confdefs.h <<_ACEOF
38401 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
38403 have_int64_strfn="1"
38405 have_int64_strfn="0"
38410 if test "$have_int64_strfn" = "0" && test "$int64_strfn" = "strtoll"; then
38411 int64_strfn="strtoq"
38413 for ac_func in $int64_strfn
38415 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
38416 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
38417 $as_echo_n "checking for $ac_func... " >&6; }
38418 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38419 $as_echo_n "(cached) " >&6
38421 cat >conftest.$ac_ext <<_ACEOF
38424 cat confdefs.h >>conftest.$ac_ext
38425 cat >>conftest.$ac_ext <<_ACEOF
38426 /* end confdefs.h. */
38427 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38428 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38429 #define $ac_func innocuous_$ac_func
38431 /* System header to define __stub macros and hopefully few prototypes,
38432 which can conflict with char $ac_func (); below.
38433 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38434 <limits.h> exists even on freestanding compilers. */
38437 # include <limits.h>
38439 # include <assert.h>
38444 /* Override any GCC internal prototype to avoid an error.
38445 Use char because int might match the return type of a GCC
38446 builtin and then its argument prototype would still apply. */
38451 /* The GNU C library defines this for functions which it implements
38452 to always fail with ENOSYS. Some functions are actually named
38453 something starting with __ and the normal name is an alias. */
38454 #if defined __stub_$ac_func || defined __stub___$ac_func
38461 return $ac_func ();
38466 rm -f conftest.$ac_objext conftest$ac_exeext
38467 if { (ac_try="$ac_link"
38468 case "(($ac_try" in
38469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38470 *) ac_try_echo=$ac_try;;
38472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38473 $as_echo "$ac_try_echo") >&5
38474 (eval "$ac_link") 2>conftest.er1
38476 grep -v '^ *+' conftest.er1 >conftest.err
38478 cat conftest.err >&5
38479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38480 (exit $ac_status); } && {
38481 test -z "$ac_c_werror_flag" ||
38482 test ! -s conftest.err
38483 } && test -s conftest$ac_exeext && {
38484 test "$cross_compiling" = yes ||
38485 $as_test_x conftest$ac_exeext
38487 eval "$as_ac_var=yes"
38489 $as_echo "$as_me: failed program was:" >&5
38490 sed 's/^/| /' conftest.$ac_ext >&5
38492 eval "$as_ac_var=no"
38495 rm -rf conftest.dSYM
38496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38497 conftest$ac_exeext conftest.$ac_ext
38499 ac_res=`eval 'as_val=${'$as_ac_var'}
38500 $as_echo "$as_val"'`
38501 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
38502 $as_echo "$ac_res" >&6; }
38503 as_val=`eval 'as_val=${'$as_ac_var'}
38504 $as_echo "$as_val"'`
38505 if test "x$as_val" = x""yes; then
38506 cat >>confdefs.h <<_ACEOF
38507 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
38509 have_int64_strfn="1"
38511 have_int64_strfn="0"
38527 echo "${nl}Checking for DSO..."
38528 # Check whether --enable-dso was given.
38529 if test "${enable_dso+set}" = set; then
38530 enableval=$enable_dso; tempdso=$enableval
38534 for ac_func in NSLinkModule
38536 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
38537 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
38538 $as_echo_n "checking for $ac_func... " >&6; }
38539 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38540 $as_echo_n "(cached) " >&6
38542 cat >conftest.$ac_ext <<_ACEOF
38545 cat confdefs.h >>conftest.$ac_ext
38546 cat >>conftest.$ac_ext <<_ACEOF
38547 /* end confdefs.h. */
38548 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38549 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38550 #define $ac_func innocuous_$ac_func
38552 /* System header to define __stub macros and hopefully few prototypes,
38553 which can conflict with char $ac_func (); below.
38554 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38555 <limits.h> exists even on freestanding compilers. */
38558 # include <limits.h>
38560 # include <assert.h>
38565 /* Override any GCC internal prototype to avoid an error.
38566 Use char because int might match the return type of a GCC
38567 builtin and then its argument prototype would still apply. */
38572 /* The GNU C library defines this for functions which it implements
38573 to always fail with ENOSYS. Some functions are actually named
38574 something starting with __ and the normal name is an alias. */
38575 #if defined __stub_$ac_func || defined __stub___$ac_func
38582 return $ac_func ();
38587 rm -f conftest.$ac_objext conftest$ac_exeext
38588 if { (ac_try="$ac_link"
38589 case "(($ac_try" in
38590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38591 *) ac_try_echo=$ac_try;;
38593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38594 $as_echo "$ac_try_echo") >&5
38595 (eval "$ac_link") 2>conftest.er1
38597 grep -v '^ *+' conftest.er1 >conftest.err
38599 cat conftest.err >&5
38600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38601 (exit $ac_status); } && {
38602 test -z "$ac_c_werror_flag" ||
38603 test ! -s conftest.err
38604 } && test -s conftest$ac_exeext && {
38605 test "$cross_compiling" = yes ||
38606 $as_test_x conftest$ac_exeext
38608 eval "$as_ac_var=yes"
38610 $as_echo "$as_me: failed program was:" >&5
38611 sed 's/^/| /' conftest.$ac_ext >&5
38613 eval "$as_ac_var=no"
38616 rm -rf conftest.dSYM
38617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38618 conftest$ac_exeext conftest.$ac_ext
38620 ac_res=`eval 'as_val=${'$as_ac_var'}
38621 $as_echo "$as_val"'`
38622 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
38623 $as_echo "$ac_res" >&6; }
38624 as_val=`eval 'as_val=${'$as_ac_var'}
38625 $as_echo "$as_val"'`
38626 if test "x$as_val" = x""yes; then
38627 cat >>confdefs.h <<_ACEOF
38628 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
38636 if test "$tempdso" = "no"; then
38637 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
38638 $as_echo_n "checking for shl_load in -ldld... " >&6; }
38639 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
38640 $as_echo_n "(cached) " >&6
38642 ac_check_lib_save_LIBS=$LIBS
38644 cat >conftest.$ac_ext <<_ACEOF
38647 cat confdefs.h >>conftest.$ac_ext
38648 cat >>conftest.$ac_ext <<_ACEOF
38649 /* end confdefs.h. */
38651 /* Override any GCC internal prototype to avoid an error.
38652 Use char because int might match the return type of a GCC
38653 builtin and then its argument prototype would still apply. */
38661 return shl_load ();
38666 rm -f conftest.$ac_objext conftest$ac_exeext
38667 if { (ac_try="$ac_link"
38668 case "(($ac_try" in
38669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38670 *) ac_try_echo=$ac_try;;
38672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38673 $as_echo "$ac_try_echo") >&5
38674 (eval "$ac_link") 2>conftest.er1
38676 grep -v '^ *+' conftest.er1 >conftest.err
38678 cat conftest.err >&5
38679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38680 (exit $ac_status); } && {
38681 test -z "$ac_c_werror_flag" ||
38682 test ! -s conftest.err
38683 } && test -s conftest$ac_exeext && {
38684 test "$cross_compiling" = yes ||
38685 $as_test_x conftest$ac_exeext
38687 ac_cv_lib_dld_shl_load=yes
38689 $as_echo "$as_me: failed program was:" >&5
38690 sed 's/^/| /' conftest.$ac_ext >&5
38692 ac_cv_lib_dld_shl_load=no
38695 rm -rf conftest.dSYM
38696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38697 conftest$ac_exeext conftest.$ac_ext
38698 LIBS=$ac_check_lib_save_LIBS
38700 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
38701 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
38702 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
38704 if test "x$LIBS" = "x"; then
38705 echo " setting LIBS to \"-ldld\""
38708 apr_addto_bugger="-ldld"
38709 for i in $apr_addto_bugger; do
38710 apr_addto_duplicate="0"
38712 if test "x$i" = "x$j"; then
38713 apr_addto_duplicate="1"
38717 if test $apr_addto_duplicate = "0"; then
38718 echo " adding \"$i\" to LIBS"
38729 if test "$tempdso" = "no"; then
38731 for ac_func in dlopen
38733 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
38734 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
38735 $as_echo_n "checking for $ac_func... " >&6; }
38736 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38737 $as_echo_n "(cached) " >&6
38739 cat >conftest.$ac_ext <<_ACEOF
38742 cat confdefs.h >>conftest.$ac_ext
38743 cat >>conftest.$ac_ext <<_ACEOF
38744 /* end confdefs.h. */
38745 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38746 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38747 #define $ac_func innocuous_$ac_func
38749 /* System header to define __stub macros and hopefully few prototypes,
38750 which can conflict with char $ac_func (); below.
38751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38752 <limits.h> exists even on freestanding compilers. */
38755 # include <limits.h>
38757 # include <assert.h>
38762 /* Override any GCC internal prototype to avoid an error.
38763 Use char because int might match the return type of a GCC
38764 builtin and then its argument prototype would still apply. */
38769 /* The GNU C library defines this for functions which it implements
38770 to always fail with ENOSYS. Some functions are actually named
38771 something starting with __ and the normal name is an alias. */
38772 #if defined __stub_$ac_func || defined __stub___$ac_func
38779 return $ac_func ();
38784 rm -f conftest.$ac_objext conftest$ac_exeext
38785 if { (ac_try="$ac_link"
38786 case "(($ac_try" in
38787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38788 *) ac_try_echo=$ac_try;;
38790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38791 $as_echo "$ac_try_echo") >&5
38792 (eval "$ac_link") 2>conftest.er1
38794 grep -v '^ *+' conftest.er1 >conftest.err
38796 cat conftest.err >&5
38797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38798 (exit $ac_status); } && {
38799 test -z "$ac_c_werror_flag" ||
38800 test ! -s conftest.err
38801 } && test -s conftest$ac_exeext && {
38802 test "$cross_compiling" = yes ||
38803 $as_test_x conftest$ac_exeext
38805 eval "$as_ac_var=yes"
38807 $as_echo "$as_me: failed program was:" >&5
38808 sed 's/^/| /' conftest.$ac_ext >&5
38810 eval "$as_ac_var=no"
38813 rm -rf conftest.dSYM
38814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38815 conftest$ac_exeext conftest.$ac_ext
38817 ac_res=`eval 'as_val=${'$as_ac_var'}
38818 $as_echo "$as_val"'`
38819 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
38820 $as_echo "$ac_res" >&6; }
38821 as_val=`eval 'as_val=${'$as_ac_var'}
38822 $as_echo "$as_val"'`
38823 if test "x$as_val" = x""yes; then
38824 cat >>confdefs.h <<_ACEOF
38825 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
38834 if test "$tempdso" = "no"; then
38835 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
38836 $as_echo_n "checking for dlopen in -ldl... " >&6; }
38837 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
38838 $as_echo_n "(cached) " >&6
38840 ac_check_lib_save_LIBS=$LIBS
38842 cat >conftest.$ac_ext <<_ACEOF
38845 cat confdefs.h >>conftest.$ac_ext
38846 cat >>conftest.$ac_ext <<_ACEOF
38847 /* end confdefs.h. */
38849 /* Override any GCC internal prototype to avoid an error.
38850 Use char because int might match the return type of a GCC
38851 builtin and then its argument prototype would still apply. */
38864 rm -f conftest.$ac_objext conftest$ac_exeext
38865 if { (ac_try="$ac_link"
38866 case "(($ac_try" in
38867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38868 *) ac_try_echo=$ac_try;;
38870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38871 $as_echo "$ac_try_echo") >&5
38872 (eval "$ac_link") 2>conftest.er1
38874 grep -v '^ *+' conftest.er1 >conftest.err
38876 cat conftest.err >&5
38877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38878 (exit $ac_status); } && {
38879 test -z "$ac_c_werror_flag" ||
38880 test ! -s conftest.err
38881 } && test -s conftest$ac_exeext && {
38882 test "$cross_compiling" = yes ||
38883 $as_test_x conftest$ac_exeext
38885 ac_cv_lib_dl_dlopen=yes
38887 $as_echo "$as_me: failed program was:" >&5
38888 sed 's/^/| /' conftest.$ac_ext >&5
38890 ac_cv_lib_dl_dlopen=no
38893 rm -rf conftest.dSYM
38894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38895 conftest$ac_exeext conftest.$ac_ext
38896 LIBS=$ac_check_lib_save_LIBS
38898 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
38899 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
38900 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
38902 if test "x$LIBS" = "x"; then
38903 echo " setting LIBS to \"-ldl\""
38906 apr_addto_bugger="-ldl"
38907 for i in $apr_addto_bugger; do
38908 apr_addto_duplicate="0"
38910 if test "x$i" = "x$j"; then
38911 apr_addto_duplicate="1"
38915 if test $apr_addto_duplicate = "0"; then
38916 echo " adding \"$i\" to LIBS"
38927 if test "$tempdso" = "dlfcn"; then
38928 # ReliantUnix has dlopen() in libc but dlsym() in libdl :(
38930 for ac_func in dlsym
38932 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
38933 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
38934 $as_echo_n "checking for $ac_func... " >&6; }
38935 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38936 $as_echo_n "(cached) " >&6
38938 cat >conftest.$ac_ext <<_ACEOF
38941 cat confdefs.h >>conftest.$ac_ext
38942 cat >>conftest.$ac_ext <<_ACEOF
38943 /* end confdefs.h. */
38944 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38946 #define $ac_func innocuous_$ac_func
38948 /* System header to define __stub macros and hopefully few prototypes,
38949 which can conflict with char $ac_func (); below.
38950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38951 <limits.h> exists even on freestanding compilers. */
38954 # include <limits.h>
38956 # include <assert.h>
38961 /* Override any GCC internal prototype to avoid an error.
38962 Use char because int might match the return type of a GCC
38963 builtin and then its argument prototype would still apply. */
38968 /* The GNU C library defines this for functions which it implements
38969 to always fail with ENOSYS. Some functions are actually named
38970 something starting with __ and the normal name is an alias. */
38971 #if defined __stub_$ac_func || defined __stub___$ac_func
38978 return $ac_func ();
38983 rm -f conftest.$ac_objext conftest$ac_exeext
38984 if { (ac_try="$ac_link"
38985 case "(($ac_try" in
38986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38987 *) ac_try_echo=$ac_try;;
38989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38990 $as_echo "$ac_try_echo") >&5
38991 (eval "$ac_link") 2>conftest.er1
38993 grep -v '^ *+' conftest.er1 >conftest.err
38995 cat conftest.err >&5
38996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38997 (exit $ac_status); } && {
38998 test -z "$ac_c_werror_flag" ||
38999 test ! -s conftest.err
39000 } && test -s conftest$ac_exeext && {
39001 test "$cross_compiling" = yes ||
39002 $as_test_x conftest$ac_exeext
39004 eval "$as_ac_var=yes"
39006 $as_echo "$as_me: failed program was:" >&5
39007 sed 's/^/| /' conftest.$ac_ext >&5
39009 eval "$as_ac_var=no"
39012 rm -rf conftest.dSYM
39013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39014 conftest$ac_exeext conftest.$ac_ext
39016 ac_res=`eval 'as_val=${'$as_ac_var'}
39017 $as_echo "$as_val"'`
39018 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39019 $as_echo "$ac_res" >&6; }
39020 as_val=`eval 'as_val=${'$as_ac_var'}
39021 $as_echo "$as_val"'`
39022 if test "x$as_val" = x""yes; then
39023 cat >>confdefs.h <<_ACEOF
39024 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
39032 if test "$tempdso" = "no"; then
39033 { $as_echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
39034 $as_echo_n "checking for dlsym in -ldl... " >&6; }
39035 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
39036 $as_echo_n "(cached) " >&6
39038 ac_check_lib_save_LIBS=$LIBS
39040 cat >conftest.$ac_ext <<_ACEOF
39043 cat confdefs.h >>conftest.$ac_ext
39044 cat >>conftest.$ac_ext <<_ACEOF
39045 /* end confdefs.h. */
39047 /* Override any GCC internal prototype to avoid an error.
39048 Use char because int might match the return type of a GCC
39049 builtin and then its argument prototype would still apply. */
39062 rm -f conftest.$ac_objext conftest$ac_exeext
39063 if { (ac_try="$ac_link"
39064 case "(($ac_try" in
39065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39066 *) ac_try_echo=$ac_try;;
39068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39069 $as_echo "$ac_try_echo") >&5
39070 (eval "$ac_link") 2>conftest.er1
39072 grep -v '^ *+' conftest.er1 >conftest.err
39074 cat conftest.err >&5
39075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39076 (exit $ac_status); } && {
39077 test -z "$ac_c_werror_flag" ||
39078 test ! -s conftest.err
39079 } && test -s conftest$ac_exeext && {
39080 test "$cross_compiling" = yes ||
39081 $as_test_x conftest$ac_exeext
39083 ac_cv_lib_dl_dlsym=yes
39085 $as_echo "$as_me: failed program was:" >&5
39086 sed 's/^/| /' conftest.$ac_ext >&5
39088 ac_cv_lib_dl_dlsym=no
39091 rm -rf conftest.dSYM
39092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39093 conftest$ac_exeext conftest.$ac_ext
39094 LIBS=$ac_check_lib_save_LIBS
39096 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
39097 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
39098 if test "x$ac_cv_lib_dl_dlsym" = x""yes; then
39100 if test "x$LIBS" = "x"; then
39101 echo " setting LIBS to \"-ldl\""
39104 apr_addto_bugger="-ldl"
39105 for i in $apr_addto_bugger; do
39106 apr_addto_duplicate="0"
39108 if test "x$i" = "x$j"; then
39109 apr_addto_duplicate="1"
39113 if test $apr_addto_duplicate = "0"; then
39114 echo " adding \"$i\" to LIBS"
39125 if test "$tempdso" = "no"; then
39126 echo "Weird: dlopen() was found but dlsym() was not found!"
39129 if test "$tempdso" = "no"; then
39130 { $as_echo "$as_me:$LINENO: checking for load_image in -lroot" >&5
39131 $as_echo_n "checking for load_image in -lroot... " >&6; }
39132 if test "${ac_cv_lib_root_load_image+set}" = set; then
39133 $as_echo_n "(cached) " >&6
39135 ac_check_lib_save_LIBS=$LIBS
39136 LIBS="-lroot $LIBS"
39137 cat >conftest.$ac_ext <<_ACEOF
39140 cat confdefs.h >>conftest.$ac_ext
39141 cat >>conftest.$ac_ext <<_ACEOF
39142 /* end confdefs.h. */
39144 /* Override any GCC internal prototype to avoid an error.
39145 Use char because int might match the return type of a GCC
39146 builtin and then its argument prototype would still apply. */
39150 char load_image ();
39154 return load_image ();
39159 rm -f conftest.$ac_objext conftest$ac_exeext
39160 if { (ac_try="$ac_link"
39161 case "(($ac_try" in
39162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39163 *) ac_try_echo=$ac_try;;
39165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39166 $as_echo "$ac_try_echo") >&5
39167 (eval "$ac_link") 2>conftest.er1
39169 grep -v '^ *+' conftest.er1 >conftest.err
39171 cat conftest.err >&5
39172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39173 (exit $ac_status); } && {
39174 test -z "$ac_c_werror_flag" ||
39175 test ! -s conftest.err
39176 } && test -s conftest$ac_exeext && {
39177 test "$cross_compiling" = yes ||
39178 $as_test_x conftest$ac_exeext
39180 ac_cv_lib_root_load_image=yes
39182 $as_echo "$as_me: failed program was:" >&5
39183 sed 's/^/| /' conftest.$ac_ext >&5
39185 ac_cv_lib_root_load_image=no
39188 rm -rf conftest.dSYM
39189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39190 conftest$ac_exeext conftest.$ac_ext
39191 LIBS=$ac_check_lib_save_LIBS
39193 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_root_load_image" >&5
39194 $as_echo "$ac_cv_lib_root_load_image" >&6; }
39195 if test "x$ac_cv_lib_root_load_image" = x""yes; then
39202 if test "$tempdso" = "no"; then
39204 *os390|*-os2*|*os400)
39213 if test "$tempdso" = "no"; then
39218 cat >>confdefs.h <<\_ACEOF
39219 #define DSO_USE_DLFCN 1
39223 cat >>confdefs.h <<\_ACEOF
39224 #define DSO_USE_SHL 1
39228 cat >>confdefs.h <<\_ACEOF
39229 #define DSO_USE_DYLD 1
39234 apr_modules="$apr_modules dso"
39239 echo "${nl}Checking for Processes..."
39242 for ac_func in waitpid
39244 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39245 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
39246 $as_echo_n "checking for $ac_func... " >&6; }
39247 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39248 $as_echo_n "(cached) " >&6
39250 cat >conftest.$ac_ext <<_ACEOF
39253 cat confdefs.h >>conftest.$ac_ext
39254 cat >>conftest.$ac_ext <<_ACEOF
39255 /* end confdefs.h. */
39256 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39258 #define $ac_func innocuous_$ac_func
39260 /* System header to define __stub macros and hopefully few prototypes,
39261 which can conflict with char $ac_func (); below.
39262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39263 <limits.h> exists even on freestanding compilers. */
39266 # include <limits.h>
39268 # include <assert.h>
39273 /* Override any GCC internal prototype to avoid an error.
39274 Use char because int might match the return type of a GCC
39275 builtin and then its argument prototype would still apply. */
39280 /* The GNU C library defines this for functions which it implements
39281 to always fail with ENOSYS. Some functions are actually named
39282 something starting with __ and the normal name is an alias. */
39283 #if defined __stub_$ac_func || defined __stub___$ac_func
39290 return $ac_func ();
39295 rm -f conftest.$ac_objext conftest$ac_exeext
39296 if { (ac_try="$ac_link"
39297 case "(($ac_try" in
39298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39299 *) ac_try_echo=$ac_try;;
39301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39302 $as_echo "$ac_try_echo") >&5
39303 (eval "$ac_link") 2>conftest.er1
39305 grep -v '^ *+' conftest.er1 >conftest.err
39307 cat conftest.err >&5
39308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39309 (exit $ac_status); } && {
39310 test -z "$ac_c_werror_flag" ||
39311 test ! -s conftest.err
39312 } && test -s conftest$ac_exeext && {
39313 test "$cross_compiling" = yes ||
39314 $as_test_x conftest$ac_exeext
39316 eval "$as_ac_var=yes"
39318 $as_echo "$as_me: failed program was:" >&5
39319 sed 's/^/| /' conftest.$ac_ext >&5
39321 eval "$as_ac_var=no"
39324 rm -rf conftest.dSYM
39325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39326 conftest$ac_exeext conftest.$ac_ext
39328 ac_res=`eval 'as_val=${'$as_ac_var'}
39329 $as_echo "$as_val"'`
39330 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39331 $as_echo "$ac_res" >&6; }
39332 as_val=`eval 'as_val=${'$as_ac_var'}
39333 $as_echo "$as_val"'`
39334 if test "x$as_val" = x""yes; then
39335 cat >>confdefs.h <<_ACEOF
39336 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
39343 # Check whether --enable-other-child was given.
39344 if test "${enable_other_child+set}" = set; then
39345 enableval=$enable_other_child; if test "$enableval" = "yes"; then
39357 { $as_echo "$as_me:$LINENO: checking for Variable Length Arrays" >&5
39358 $as_echo_n "checking for Variable Length Arrays... " >&6; }
39359 if test "x$CFLAGS_WARN" = "x"; then
39362 apr_tcnw_flags=$CFLAGS_WARN
39364 if test "$ac_cv_c_compiler_gnu" = "yes"; then
39365 apr_tcnw_flags="$apr_tcnw_flags -Werror"
39368 cat > conftest.$ac_ext <<EOTEST
39369 #include "confdefs.h"
39371 int main(int argc, const char * const *argv) {
39379 if ${CC-cc} -c $CFLAGS $CPPFLAGS $apr_tcnw_flags conftest.$ac_ext 2>&5 ; then
39383 echo "configure: failed or warning program:" >&5
39384 cat conftest.$ac_ext >&5
39390 { $as_echo "$as_me:$LINENO: result: $vla_msg" >&5
39391 $as_echo "$vla_msg" >&6; }
39392 if test "$vla_msg" = "yes"; then
39394 cat >>confdefs.h <<\_ACEOF
39400 { $as_echo "$as_me:$LINENO: checking struct rlimit" >&5
39401 $as_echo_n "checking struct rlimit... " >&6; }
39402 if test "${ac_cv_struct_rlimit+set}" = set; then
39403 $as_echo_n "(cached) " >&6
39406 if test "$cross_compiling" = yes; then
39408 ac_cv_struct_rlimit=no
39410 cat >conftest.$ac_ext <<_ACEOF
39413 cat confdefs.h >>conftest.$ac_ext
39414 cat >>conftest.$ac_ext <<_ACEOF
39415 /* end confdefs.h. */
39417 #include <sys/types.h>
39418 #include <sys/time.h>
39419 #include <sys/resource.h>
39422 struct rlimit limit;
39423 limit.rlim_cur = 0;
39424 limit.rlim_max = 0;
39428 rm -f conftest$ac_exeext
39429 if { (ac_try="$ac_link"
39430 case "(($ac_try" in
39431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39432 *) ac_try_echo=$ac_try;;
39434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39435 $as_echo "$ac_try_echo") >&5
39436 (eval "$ac_link") 2>&5
39438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39439 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39440 { (case "(($ac_try" in
39441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39442 *) ac_try_echo=$ac_try;;
39444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39445 $as_echo "$ac_try_echo") >&5
39446 (eval "$ac_try") 2>&5
39448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39449 (exit $ac_status); }; }; then
39451 ac_cv_struct_rlimit=yes
39453 $as_echo "$as_me: program exited with status $ac_status" >&5
39454 $as_echo "$as_me: failed program was:" >&5
39455 sed 's/^/| /' conftest.$ac_ext >&5
39457 ( exit $ac_status )
39459 ac_cv_struct_rlimit=no
39461 rm -rf conftest.dSYM
39462 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39467 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_rlimit" >&5
39468 $as_echo "$ac_cv_struct_rlimit" >&6; }
39470 test "x$ac_cv_struct_rlimit" = xyes && struct_rlimit=1
39473 echo "${nl}Checking for Locking..."
39478 for ac_func in semget semctl flock
39480 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39481 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
39482 $as_echo_n "checking for $ac_func... " >&6; }
39483 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39484 $as_echo_n "(cached) " >&6
39486 cat >conftest.$ac_ext <<_ACEOF
39489 cat confdefs.h >>conftest.$ac_ext
39490 cat >>conftest.$ac_ext <<_ACEOF
39491 /* end confdefs.h. */
39492 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39493 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39494 #define $ac_func innocuous_$ac_func
39496 /* System header to define __stub macros and hopefully few prototypes,
39497 which can conflict with char $ac_func (); below.
39498 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39499 <limits.h> exists even on freestanding compilers. */
39502 # include <limits.h>
39504 # include <assert.h>
39509 /* Override any GCC internal prototype to avoid an error.
39510 Use char because int might match the return type of a GCC
39511 builtin and then its argument prototype would still apply. */
39516 /* The GNU C library defines this for functions which it implements
39517 to always fail with ENOSYS. Some functions are actually named
39518 something starting with __ and the normal name is an alias. */
39519 #if defined __stub_$ac_func || defined __stub___$ac_func
39526 return $ac_func ();
39531 rm -f conftest.$ac_objext conftest$ac_exeext
39532 if { (ac_try="$ac_link"
39533 case "(($ac_try" in
39534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39535 *) ac_try_echo=$ac_try;;
39537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39538 $as_echo "$ac_try_echo") >&5
39539 (eval "$ac_link") 2>conftest.er1
39541 grep -v '^ *+' conftest.er1 >conftest.err
39543 cat conftest.err >&5
39544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39545 (exit $ac_status); } && {
39546 test -z "$ac_c_werror_flag" ||
39547 test ! -s conftest.err
39548 } && test -s conftest$ac_exeext && {
39549 test "$cross_compiling" = yes ||
39550 $as_test_x conftest$ac_exeext
39552 eval "$as_ac_var=yes"
39554 $as_echo "$as_me: failed program was:" >&5
39555 sed 's/^/| /' conftest.$ac_ext >&5
39557 eval "$as_ac_var=no"
39560 rm -rf conftest.dSYM
39561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39562 conftest$ac_exeext conftest.$ac_ext
39564 ac_res=`eval 'as_val=${'$as_ac_var'}
39565 $as_echo "$as_val"'`
39566 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39567 $as_echo "$ac_res" >&6; }
39568 as_val=`eval 'as_val=${'$as_ac_var'}
39569 $as_echo "$as_val"'`
39570 if test "x$as_val" = x""yes; then
39571 cat >>confdefs.h <<_ACEOF
39572 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
39579 for ac_header in semaphore.h
39581 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
39582 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39583 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
39584 $as_echo_n "checking for $ac_header... " >&6; }
39585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39586 $as_echo_n "(cached) " >&6
39588 ac_res=`eval 'as_val=${'$as_ac_Header'}
39589 $as_echo "$as_val"'`
39590 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39591 $as_echo "$ac_res" >&6; }
39593 # Is the header compilable?
39594 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
39595 $as_echo_n "checking $ac_header usability... " >&6; }
39596 cat >conftest.$ac_ext <<_ACEOF
39599 cat confdefs.h >>conftest.$ac_ext
39600 cat >>conftest.$ac_ext <<_ACEOF
39601 /* end confdefs.h. */
39602 $ac_includes_default
39603 #include <$ac_header>
39605 rm -f conftest.$ac_objext
39606 if { (ac_try="$ac_compile"
39607 case "(($ac_try" in
39608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39609 *) ac_try_echo=$ac_try;;
39611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39612 $as_echo "$ac_try_echo") >&5
39613 (eval "$ac_compile") 2>conftest.er1
39615 grep -v '^ *+' conftest.er1 >conftest.err
39617 cat conftest.err >&5
39618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39619 (exit $ac_status); } && {
39620 test -z "$ac_c_werror_flag" ||
39621 test ! -s conftest.err
39622 } && test -s conftest.$ac_objext; then
39623 ac_header_compiler=yes
39625 $as_echo "$as_me: failed program was:" >&5
39626 sed 's/^/| /' conftest.$ac_ext >&5
39628 ac_header_compiler=no
39631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39632 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39633 $as_echo "$ac_header_compiler" >&6; }
39635 # Is the header present?
39636 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
39637 $as_echo_n "checking $ac_header presence... " >&6; }
39638 cat >conftest.$ac_ext <<_ACEOF
39641 cat confdefs.h >>conftest.$ac_ext
39642 cat >>conftest.$ac_ext <<_ACEOF
39643 /* end confdefs.h. */
39644 #include <$ac_header>
39646 if { (ac_try="$ac_cpp conftest.$ac_ext"
39647 case "(($ac_try" in
39648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39649 *) ac_try_echo=$ac_try;;
39651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39652 $as_echo "$ac_try_echo") >&5
39653 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39655 grep -v '^ *+' conftest.er1 >conftest.err
39657 cat conftest.err >&5
39658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39659 (exit $ac_status); } >/dev/null && {
39660 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39661 test ! -s conftest.err
39663 ac_header_preproc=yes
39665 $as_echo "$as_me: failed program was:" >&5
39666 sed 's/^/| /' conftest.$ac_ext >&5
39668 ac_header_preproc=no
39671 rm -f conftest.err conftest.$ac_ext
39672 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39673 $as_echo "$ac_header_preproc" >&6; }
39675 # So? What about this header?
39676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39678 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39679 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
39680 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39681 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39682 ac_header_preproc=yes
39685 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39686 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
39687 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39688 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39689 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39690 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39691 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39692 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
39693 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39694 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39695 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39696 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
39700 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
39701 $as_echo_n "checking for $ac_header... " >&6; }
39702 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39703 $as_echo_n "(cached) " >&6
39705 eval "$as_ac_Header=\$ac_header_preproc"
39707 ac_res=`eval 'as_val=${'$as_ac_Header'}
39708 $as_echo "$as_val"'`
39709 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39710 $as_echo "$ac_res" >&6; }
39713 as_val=`eval 'as_val=${'$as_ac_Header'}
39714 $as_echo "$as_val"'`
39715 if test "x$as_val" = x""yes; then
39716 cat >>confdefs.h <<_ACEOF
39717 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
39728 for ac_func in sem_close sem_unlink sem_post sem_wait
39730 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39731 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
39732 $as_echo_n "checking for $ac_func... " >&6; }
39733 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39734 $as_echo_n "(cached) " >&6
39736 cat >conftest.$ac_ext <<_ACEOF
39739 cat confdefs.h >>conftest.$ac_ext
39740 cat >>conftest.$ac_ext <<_ACEOF
39741 /* end confdefs.h. */
39742 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39744 #define $ac_func innocuous_$ac_func
39746 /* System header to define __stub macros and hopefully few prototypes,
39747 which can conflict with char $ac_func (); below.
39748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39749 <limits.h> exists even on freestanding compilers. */
39752 # include <limits.h>
39754 # include <assert.h>
39759 /* Override any GCC internal prototype to avoid an error.
39760 Use char because int might match the return type of a GCC
39761 builtin and then its argument prototype would still apply. */
39766 /* The GNU C library defines this for functions which it implements
39767 to always fail with ENOSYS. Some functions are actually named
39768 something starting with __ and the normal name is an alias. */
39769 #if defined __stub_$ac_func || defined __stub___$ac_func
39776 return $ac_func ();
39781 rm -f conftest.$ac_objext conftest$ac_exeext
39782 if { (ac_try="$ac_link"
39783 case "(($ac_try" in
39784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39785 *) ac_try_echo=$ac_try;;
39787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39788 $as_echo "$ac_try_echo") >&5
39789 (eval "$ac_link") 2>conftest.er1
39791 grep -v '^ *+' conftest.er1 >conftest.err
39793 cat conftest.err >&5
39794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39795 (exit $ac_status); } && {
39796 test -z "$ac_c_werror_flag" ||
39797 test ! -s conftest.err
39798 } && test -s conftest$ac_exeext && {
39799 test "$cross_compiling" = yes ||
39800 $as_test_x conftest$ac_exeext
39802 eval "$as_ac_var=yes"
39804 $as_echo "$as_me: failed program was:" >&5
39805 sed 's/^/| /' conftest.$ac_ext >&5
39807 eval "$as_ac_var=no"
39810 rm -rf conftest.dSYM
39811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39812 conftest$ac_exeext conftest.$ac_ext
39814 ac_res=`eval 'as_val=${'$as_ac_var'}
39815 $as_echo "$as_val"'`
39816 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39817 $as_echo "$ac_res" >&6; }
39818 as_val=`eval 'as_val=${'$as_ac_var'}
39819 $as_echo "$as_val"'`
39820 if test "x$as_val" = x""yes; then
39821 cat >>confdefs.h <<_ACEOF
39822 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
39829 # Some systems return ENOSYS from sem_open.
39830 { $as_echo "$as_me:$LINENO: checking for working sem_open" >&5
39831 $as_echo_n "checking for working sem_open... " >&6; }
39832 if test "${ac_cv_func_sem_open+set}" = set; then
39833 $as_echo_n "(cached) " >&6
39836 if test "$cross_compiling" = yes; then
39837 ac_cv_func_sem_open=no
39839 cat >conftest.$ac_ext <<_ACEOF
39842 cat confdefs.h >>conftest.$ac_ext
39843 cat >>conftest.$ac_ext <<_ACEOF
39844 /* end confdefs.h. */
39847 #include <stdlib.h>
39849 #include <semaphore.h>
39853 const char *sem_name = "/apr_autoconf";
39855 if (sizeof(int) < sizeof(sem_t *))
39857 psem = sem_open(sem_name, O_CREAT, 0644, 1);
39858 if (psem == (sem_t *)SEM_FAILED) {
39862 sem_unlink(sem_name);
39866 rm -f 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39873 $as_echo "$ac_try_echo") >&5
39874 (eval "$ac_link") 2>&5
39876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39877 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39878 { (case "(($ac_try" in
39879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39880 *) ac_try_echo=$ac_try;;
39882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39883 $as_echo "$ac_try_echo") >&5
39884 (eval "$ac_try") 2>&5
39886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39887 (exit $ac_status); }; }; then
39888 ac_cv_func_sem_open=yes
39890 $as_echo "$as_me: program exited with status $ac_status" >&5
39891 $as_echo "$as_me: failed program was:" >&5
39892 sed 's/^/| /' conftest.$ac_ext >&5
39894 ( exit $ac_status )
39895 ac_cv_func_sem_open=no
39897 rm -rf conftest.dSYM
39898 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39903 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_sem_open" >&5
39904 $as_echo "$ac_cv_func_sem_open" >&6; }
39906 # It's stupid, but not all platforms have union semun, even those that need it.
39907 { $as_echo "$as_me:$LINENO: checking for union semun in sys/sem.h" >&5
39908 $as_echo_n "checking for union semun in sys/sem.h... " >&6; }
39909 cat >conftest.$ac_ext <<_ACEOF
39912 cat confdefs.h >>conftest.$ac_ext
39913 cat >>conftest.$ac_ext <<_ACEOF
39914 /* end confdefs.h. */
39916 #include <sys/types.h>
39917 #include <sys/ipc.h>
39918 #include <sys/sem.h>
39925 semctl(0, 0, 0, arg);
39931 rm -f conftest.$ac_objext
39932 if { (ac_try="$ac_compile"
39933 case "(($ac_try" in
39934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39935 *) ac_try_echo=$ac_try;;
39937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39938 $as_echo "$ac_try_echo") >&5
39939 (eval "$ac_compile") 2>conftest.er1
39941 grep -v '^ *+' conftest.er1 >conftest.err
39943 cat conftest.err >&5
39944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39945 (exit $ac_status); } && {
39946 test -z "$ac_c_werror_flag" ||
39947 test ! -s conftest.err
39948 } && test -s conftest.$ac_objext; then
39949 have_union_semun="1" union_semun=yes
39952 $as_echo "$as_me: failed program was:" >&5
39953 sed 's/^/| /' conftest.$ac_ext >&5
39956 have_union_semun="0"
39960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39961 { $as_echo "$as_me:$LINENO: result: $msg" >&5
39962 $as_echo "$msg" >&6; }
39966 { $as_echo "$as_me:$LINENO: checking for LOCK_EX in sys/file.h" >&5
39967 $as_echo_n "checking for LOCK_EX in sys/file.h... " >&6; }
39968 if test "${ac_cv_define_LOCK_EX+set}" = set; then
39969 $as_echo_n "(cached) " >&6
39972 cat >conftest.$ac_ext <<_ACEOF
39975 cat confdefs.h >>conftest.$ac_ext
39976 cat >>conftest.$ac_ext <<_ACEOF
39977 /* end confdefs.h. */
39979 #include <sys/file.h>
39985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39986 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then
39987 ac_cv_define_LOCK_EX=yes
39989 ac_cv_define_LOCK_EX=no
39995 { $as_echo "$as_me:$LINENO: result: $ac_cv_define_LOCK_EX" >&5
39996 $as_echo "$ac_cv_define_LOCK_EX" >&6; }
39997 if test "$ac_cv_define_LOCK_EX" = "yes"; then
39999 cat >>confdefs.h <<\_ACEOF
40000 #define HAVE_LOCK_EX 1
40006 { $as_echo "$as_me:$LINENO: checking for F_SETLK in fcntl.h" >&5
40007 $as_echo_n "checking for F_SETLK in fcntl.h... " >&6; }
40008 if test "${ac_cv_define_F_SETLK+set}" = set; then
40009 $as_echo_n "(cached) " >&6
40012 cat >conftest.$ac_ext <<_ACEOF
40015 cat confdefs.h >>conftest.$ac_ext
40016 cat >>conftest.$ac_ext <<_ACEOF
40017 /* end confdefs.h. */
40025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40026 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then
40027 ac_cv_define_F_SETLK=yes
40029 ac_cv_define_F_SETLK=no
40035 { $as_echo "$as_me:$LINENO: result: $ac_cv_define_F_SETLK" >&5
40036 $as_echo "$ac_cv_define_F_SETLK" >&6; }
40037 if test "$ac_cv_define_F_SETLK" = "yes"; then
40039 cat >>confdefs.h <<\_ACEOF
40040 #define HAVE_F_SETLK 1
40046 { $as_echo "$as_me:$LINENO: checking for SEM_UNDO in sys/sem.h" >&5
40047 $as_echo_n "checking for SEM_UNDO in sys/sem.h... " >&6; }
40048 if test "${ac_cv_define_SEM_UNDO+set}" = set; then
40049 $as_echo_n "(cached) " >&6
40052 cat >conftest.$ac_ext <<_ACEOF
40055 cat confdefs.h >>conftest.$ac_ext
40056 cat >>conftest.$ac_ext <<_ACEOF
40057 /* end confdefs.h. */
40059 #include <sys/sem.h>
40065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40066 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then
40067 ac_cv_define_SEM_UNDO=yes
40069 ac_cv_define_SEM_UNDO=no
40075 { $as_echo "$as_me:$LINENO: result: $ac_cv_define_SEM_UNDO" >&5
40076 $as_echo "$ac_cv_define_SEM_UNDO" >&6; }
40077 if test "$ac_cv_define_SEM_UNDO" = "yes"; then
40079 cat >>confdefs.h <<\_ACEOF
40080 #define HAVE_SEM_UNDO 1
40086 # We are assuming that if the platform doesn't have POLLIN, it doesn't have
40087 # any POLL definitions.
40089 { $as_echo "$as_me:$LINENO: checking for POLLIN in poll.h sys/poll.h" >&5
40090 $as_echo_n "checking for POLLIN in poll.h sys/poll.h... " >&6; }
40091 if test "${ac_cv_define_POLLIN+set}" = set; then
40092 $as_echo_n "(cached) " >&6
40095 ac_cv_define_POLLIN=no
40096 for curhdr in poll.h sys/poll.h
40098 cat >conftest.$ac_ext <<_ACEOF
40101 cat confdefs.h >>conftest.$ac_ext
40102 cat >>conftest.$ac_ext <<_ACEOF
40103 /* end confdefs.h. */
40111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40112 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then
40113 ac_cv_define_POLLIN=yes
40120 { $as_echo "$as_me:$LINENO: result: $ac_cv_define_POLLIN" >&5
40121 $as_echo "$ac_cv_define_POLLIN" >&6; }
40122 if test "$ac_cv_define_POLLIN" = "yes"; then
40124 cat >>confdefs.h <<\_ACEOF
40125 #define HAVE_POLLIN 1
40131 if test "$threads" = "1"; then
40133 { $as_echo "$as_me:$LINENO: checking for PTHREAD_PROCESS_SHARED in pthread.h" >&5
40134 $as_echo_n "checking for PTHREAD_PROCESS_SHARED in pthread.h... " >&6; }
40135 if test "${ac_cv_define_PTHREAD_PROCESS_SHARED+set}" = set; then
40136 $as_echo_n "(cached) " >&6
40139 cat >conftest.$ac_ext <<_ACEOF
40142 cat confdefs.h >>conftest.$ac_ext
40143 cat >>conftest.$ac_ext <<_ACEOF
40144 /* end confdefs.h. */
40146 #include <pthread.h>
40147 #ifdef PTHREAD_PROCESS_SHARED
40152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40153 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then
40154 ac_cv_define_PTHREAD_PROCESS_SHARED=yes
40156 ac_cv_define_PTHREAD_PROCESS_SHARED=no
40162 { $as_echo "$as_me:$LINENO: result: $ac_cv_define_PTHREAD_PROCESS_SHARED" >&5
40163 $as_echo "$ac_cv_define_PTHREAD_PROCESS_SHARED" >&6; }
40164 if test "$ac_cv_define_PTHREAD_PROCESS_SHARED" = "yes"; then
40166 cat >>confdefs.h <<\_ACEOF
40167 #define HAVE_PTHREAD_PROCESS_SHARED 1
40173 for ac_func in pthread_mutexattr_setpshared
40175 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40176 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40177 $as_echo_n "checking for $ac_func... " >&6; }
40178 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40179 $as_echo_n "(cached) " >&6
40181 cat >conftest.$ac_ext <<_ACEOF
40184 cat confdefs.h >>conftest.$ac_ext
40185 cat >>conftest.$ac_ext <<_ACEOF
40186 /* end confdefs.h. */
40187 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40188 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40189 #define $ac_func innocuous_$ac_func
40191 /* System header to define __stub macros and hopefully few prototypes,
40192 which can conflict with char $ac_func (); below.
40193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40194 <limits.h> exists even on freestanding compilers. */
40197 # include <limits.h>
40199 # include <assert.h>
40204 /* Override any GCC internal prototype to avoid an error.
40205 Use char because int might match the return type of a GCC
40206 builtin and then its argument prototype would still apply. */
40211 /* The GNU C library defines this for functions which it implements
40212 to always fail with ENOSYS. Some functions are actually named
40213 something starting with __ and the normal name is an alias. */
40214 #if defined __stub_$ac_func || defined __stub___$ac_func
40221 return $ac_func ();
40226 rm -f conftest.$ac_objext conftest$ac_exeext
40227 if { (ac_try="$ac_link"
40228 case "(($ac_try" in
40229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40230 *) ac_try_echo=$ac_try;;
40232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40233 $as_echo "$ac_try_echo") >&5
40234 (eval "$ac_link") 2>conftest.er1
40236 grep -v '^ *+' conftest.er1 >conftest.err
40238 cat conftest.err >&5
40239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40240 (exit $ac_status); } && {
40241 test -z "$ac_c_werror_flag" ||
40242 test ! -s conftest.err
40243 } && test -s conftest$ac_exeext && {
40244 test "$cross_compiling" = yes ||
40245 $as_test_x conftest$ac_exeext
40247 eval "$as_ac_var=yes"
40249 $as_echo "$as_me: failed program was:" >&5
40250 sed 's/^/| /' conftest.$ac_ext >&5
40252 eval "$as_ac_var=no"
40255 rm -rf conftest.dSYM
40256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40257 conftest$ac_exeext conftest.$ac_ext
40259 ac_res=`eval 'as_val=${'$as_ac_var'}
40260 $as_echo "$as_val"'`
40261 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40262 $as_echo "$ac_res" >&6; }
40263 as_val=`eval 'as_val=${'$as_ac_var'}
40264 $as_echo "$as_val"'`
40265 if test "x$as_val" = x""yes; then
40266 cat >>confdefs.h <<_ACEOF
40267 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40273 # Some systems have setpshared and define PROCESS_SHARED, but don't
40274 # really support PROCESS_SHARED locks. So, we must validate that we
40275 # can go through the steps without receiving some sort of system error.
40276 # Linux and older versions of AIX have this problem.
40278 for ac_spec in header:pthread.h define:PTHREAD_PROCESS_SHARED func:pthread_mutexattr_setpshared; do
40279 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
40280 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
40283 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
40284 ac_var="ac_cv_header_$ac_item"
40287 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
40288 ac_var="ac_cv_file_$ac_item"
40290 func ) ac_var="ac_cv_func_$ac_item" ;;
40291 struct ) ac_var="ac_cv_struct_$ac_item" ;;
40292 define ) ac_var="ac_cv_define_$ac_item" ;;
40293 custom ) ac_var="$ac_item" ;;
40295 eval "ac_val=\$$ac_var"
40296 if test ".$ac_val" != .yes; then
40301 if test ".$ac_rc" = .yes; then
40304 { $as_echo "$as_me:$LINENO: checking for working PROCESS_SHARED locks" >&5
40305 $as_echo_n "checking for working PROCESS_SHARED locks... " >&6; }
40306 if test "${apr_cv_process_shared_works+set}" = set; then
40307 $as_echo_n "(cached) " >&6
40310 if test "$cross_compiling" = yes; then
40311 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
40312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
40313 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
40314 See \`config.log' for more details." >&5
40315 $as_echo "$as_me: error: cannot run test program while cross compiling
40316 See \`config.log' for more details." >&2;}
40317 { (exit 1); exit 1; }; }; }
40319 cat >conftest.$ac_ext <<_ACEOF
40322 cat confdefs.h >>conftest.$ac_ext
40323 cat >>conftest.$ac_ext <<_ACEOF
40324 /* end confdefs.h. */
40326 #include <sys/types.h>
40327 #include <pthread.h>
40330 pthread_mutex_t mutex;
40331 pthread_mutexattr_t attr;
40332 if (pthread_mutexattr_init(&attr))
40334 if (pthread_mutexattr_setpshared(&attr, PTHREAD_PROCESS_SHARED))
40336 if (pthread_mutex_init(&mutex, &attr))
40338 if (pthread_mutexattr_destroy(&attr))
40340 if (pthread_mutex_destroy(&mutex))
40345 rm -f conftest$ac_exeext
40346 if { (ac_try="$ac_link"
40347 case "(($ac_try" in
40348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40349 *) ac_try_echo=$ac_try;;
40351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40352 $as_echo "$ac_try_echo") >&5
40353 (eval "$ac_link") 2>&5
40355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40356 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40357 { (case "(($ac_try" in
40358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40359 *) ac_try_echo=$ac_try;;
40361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40362 $as_echo "$ac_try_echo") >&5
40363 (eval "$ac_try") 2>&5
40365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40366 (exit $ac_status); }; }; then
40367 apr_cv_process_shared_works=yes
40369 $as_echo "$as_me: program exited with status $ac_status" >&5
40370 $as_echo "$as_me: failed program was:" >&5
40371 sed 's/^/| /' conftest.$ac_ext >&5
40373 ( exit $ac_status )
40374 apr_cv_process_shared_works=no
40376 rm -rf conftest.dSYM
40377 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40382 { $as_echo "$as_me:$LINENO: result: $apr_cv_process_shared_works" >&5
40383 $as_echo "$apr_cv_process_shared_works" >&6; }
40384 # Override detection of pthread_mutexattr_setpshared
40385 ac_cv_func_pthread_mutexattr_setpshared=$apr_cv_process_shared_works
40392 if test "$ac_cv_func_pthread_mutexattr_setpshared" = "yes"; then
40394 { $as_echo "$as_me:$LINENO: checking for robust cross-process mutex support" >&5
40395 $as_echo_n "checking for robust cross-process mutex support... " >&6; }
40396 if test "${apr_cv_mutex_robust_shared+set}" = set; then
40397 $as_echo_n "(cached) " >&6
40399 if test "$cross_compiling" = yes; then
40400 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
40401 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
40402 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
40403 See \`config.log' for more details." >&5
40404 $as_echo "$as_me: error: cannot run test program while cross compiling
40405 See \`config.log' for more details." >&2;}
40406 { (exit 1); exit 1; }; }; }
40408 cat >conftest.$ac_ext <<_ACEOF
40411 cat confdefs.h >>conftest.$ac_ext
40412 cat >>conftest.$ac_ext <<_ACEOF
40413 /* end confdefs.h. */
40415 #include <sys/types.h>
40416 #include <pthread.h>
40417 #include <stdlib.h>
40419 int main(int argc, char **argv)
40421 pthread_mutex_t mutex;
40422 pthread_mutexattr_t attr;
40424 if (pthread_mutexattr_init(&attr))
40426 if (pthread_mutexattr_setpshared(&attr, PTHREAD_PROCESS_SHARED))
40428 if (pthread_mutexattr_setrobust_np(&attr, PTHREAD_MUTEX_ROBUST_NP))
40430 if (pthread_mutexattr_setprotocol(&attr, PTHREAD_PRIO_INHERIT))
40432 if (pthread_mutex_init(&mutex, &attr))
40434 if (pthread_mutexattr_destroy(&attr))
40436 if (pthread_mutex_destroy(&mutex))
40442 rm -f conftest$ac_exeext
40443 if { (ac_try="$ac_link"
40444 case "(($ac_try" in
40445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40446 *) ac_try_echo=$ac_try;;
40448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40449 $as_echo "$ac_try_echo") >&5
40450 (eval "$ac_link") 2>&5
40452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40453 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40454 { (case "(($ac_try" in
40455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40456 *) ac_try_echo=$ac_try;;
40458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40459 $as_echo "$ac_try_echo") >&5
40460 (eval "$ac_try") 2>&5
40462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40463 (exit $ac_status); }; }; then
40464 apr_cv_mutex_robust_shared=yes
40466 $as_echo "$as_me: program exited with status $ac_status" >&5
40467 $as_echo "$as_me: failed program was:" >&5
40468 sed 's/^/| /' conftest.$ac_ext >&5
40470 ( exit $ac_status )
40471 apr_cv_mutex_robust_shared=no
40473 rm -rf conftest.dSYM
40474 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40479 { $as_echo "$as_me:$LINENO: result: $apr_cv_mutex_robust_shared" >&5
40480 $as_echo "$apr_cv_mutex_robust_shared" >&6; }
40482 if test "$apr_cv_mutex_robust_shared" = "yes"; then
40484 cat >>confdefs.h <<\_ACEOF
40485 #define HAVE_PTHREAD_MUTEX_ROBUST 1
40493 # See which lock mechanisms we can support on this system.
40495 for ac_spec in header:semaphore.h func:sem_open func:sem_close func:sem_unlink func:sem_post func:sem_wait; do
40496 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
40497 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
40500 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
40501 ac_var="ac_cv_header_$ac_item"
40504 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
40505 ac_var="ac_cv_file_$ac_item"
40507 func ) ac_var="ac_cv_func_$ac_item" ;;
40508 struct ) ac_var="ac_cv_struct_$ac_item" ;;
40509 define ) ac_var="ac_cv_define_$ac_item" ;;
40510 custom ) ac_var="$ac_item" ;;
40512 eval "ac_val=\$$ac_var"
40513 if test ".$ac_val" != .yes; then
40518 if test ".$ac_rc" = .yes; then
40527 for ac_spec in func:semget func:semctl define:SEM_UNDO; do
40528 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
40529 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
40532 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
40533 ac_var="ac_cv_header_$ac_item"
40536 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
40537 ac_var="ac_cv_file_$ac_item"
40539 func ) ac_var="ac_cv_func_$ac_item" ;;
40540 struct ) ac_var="ac_cv_struct_$ac_item" ;;
40541 define ) ac_var="ac_cv_define_$ac_item" ;;
40542 custom ) ac_var="$ac_item" ;;
40544 eval "ac_val=\$$ac_var"
40545 if test ".$ac_val" != .yes; then
40550 if test ".$ac_rc" = .yes; then
40559 for ac_spec in func:flock define:LOCK_EX; do
40560 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
40561 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
40564 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
40565 ac_var="ac_cv_header_$ac_item"
40568 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
40569 ac_var="ac_cv_file_$ac_item"
40571 func ) ac_var="ac_cv_func_$ac_item" ;;
40572 struct ) ac_var="ac_cv_struct_$ac_item" ;;
40573 define ) ac_var="ac_cv_define_$ac_item" ;;
40574 custom ) ac_var="$ac_item" ;;
40576 eval "ac_val=\$$ac_var"
40577 if test ".$ac_val" != .yes; then
40582 if test ".$ac_rc" = .yes; then
40591 for ac_spec in header:fcntl.h define:F_SETLK; do
40592 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
40593 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
40596 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
40597 ac_var="ac_cv_header_$ac_item"
40600 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
40601 ac_var="ac_cv_file_$ac_item"
40603 func ) ac_var="ac_cv_func_$ac_item" ;;
40604 struct ) ac_var="ac_cv_struct_$ac_item" ;;
40605 define ) ac_var="ac_cv_define_$ac_item" ;;
40606 custom ) ac_var="$ac_item" ;;
40608 eval "ac_val=\$$ac_var"
40609 if test ".$ac_val" != .yes; then
40614 if test ".$ac_rc" = .yes; then
40622 # note: the current APR use of shared mutex requires /dev/zero
40624 for ac_spec in header:pthread.h define:PTHREAD_PROCESS_SHARED func:pthread_mutexattr_setpshared file:/dev/zero; do
40625 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
40626 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
40629 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
40630 ac_var="ac_cv_header_$ac_item"
40633 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
40634 ac_var="ac_cv_file_$ac_item"
40636 func ) ac_var="ac_cv_func_$ac_item" ;;
40637 struct ) ac_var="ac_cv_struct_$ac_item" ;;
40638 define ) ac_var="ac_cv_define_$ac_item" ;;
40639 custom ) ac_var="$ac_item" ;;
40641 eval "ac_val=\$$ac_var"
40642 if test ".$ac_val" != .yes; then
40647 if test ".$ac_rc" = .yes; then
40649 hasprocpthreadser="1"
40652 hasprocpthreadser="0"
40656 for ac_spec in struct:pthread_rw; do
40657 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
40658 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
40661 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
40662 ac_var="ac_cv_header_$ac_item"
40665 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
40666 ac_var="ac_cv_file_$ac_item"
40668 func ) ac_var="ac_cv_func_$ac_item" ;;
40669 struct ) ac_var="ac_cv_struct_$ac_item" ;;
40670 define ) ac_var="ac_cv_define_$ac_item" ;;
40671 custom ) ac_var="$ac_item" ;;
40673 eval "ac_val=\$$ac_var"
40674 if test ".$ac_val" != .yes; then
40679 if test ".$ac_rc" = .yes; then
40688 # See which lock mechanism we'll select by default on this system.
40689 # The last APR_DECIDE to execute sets the default.
40690 # At this stage, we match the ordering in Apache 1.3
40691 # which is (highest to lowest): sysvsem -> fcntl -> flock.
40692 # POSIX semaphores and cross-process pthread mutexes are not
40693 # used by default since they have less desirable behaviour when
40694 # e.g. a process holding the mutex segfaults.
40695 ac_decision_item='apr_lock implementation method'
40696 ac_decision_msg='FAILED'
40700 for ac_spec in func:flock define:LOCK_EX; do
40701 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
40702 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
40705 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
40706 ac_var="ac_cv_header_$ac_item"
40709 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
40710 ac_var="ac_cv_file_$ac_item"
40712 func ) ac_var="ac_cv_func_$ac_item" ;;
40713 struct ) ac_var="ac_cv_struct_$ac_item" ;;
40714 define ) ac_var="ac_cv_define_$ac_item" ;;
40715 custom ) ac_var="$ac_item" ;;
40717 eval "ac_val=\$$ac_var"
40718 if test ".$ac_val" != .yes; then
40723 if test ".$ac_rc" = .yes; then
40725 ac_decision='USE_FLOCK_SERIALIZE'
40726 ac_decision_msg='4.2BSD-style flock()'
40727 ac_decision_USE_FLOCK_SERIALIZE=yes
40728 ac_decision_USE_FLOCK_SERIALIZE_msg='4.2BSD-style flock()'
40736 for ac_spec in header:fcntl.h define:F_SETLK; do
40737 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
40738 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
40741 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
40742 ac_var="ac_cv_header_$ac_item"
40745 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
40746 ac_var="ac_cv_file_$ac_item"
40748 func ) ac_var="ac_cv_func_$ac_item" ;;
40749 struct ) ac_var="ac_cv_struct_$ac_item" ;;
40750 define ) ac_var="ac_cv_define_$ac_item" ;;
40751 custom ) ac_var="$ac_item" ;;
40753 eval "ac_val=\$$ac_var"
40754 if test ".$ac_val" != .yes; then
40759 if test ".$ac_rc" = .yes; then
40761 ac_decision='USE_FCNTL_SERIALIZE'
40762 ac_decision_msg='SVR4-style fcntl()'
40763 ac_decision_USE_FCNTL_SERIALIZE=yes
40764 ac_decision_USE_FCNTL_SERIALIZE_msg='SVR4-style fcntl()'
40772 for ac_spec in func:semget func:semctl define:SEM_UNDO; do
40773 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
40774 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
40777 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
40778 ac_var="ac_cv_header_$ac_item"
40781 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
40782 ac_var="ac_cv_file_$ac_item"
40784 func ) ac_var="ac_cv_func_$ac_item" ;;
40785 struct ) ac_var="ac_cv_struct_$ac_item" ;;
40786 define ) ac_var="ac_cv_define_$ac_item" ;;
40787 custom ) ac_var="$ac_item" ;;
40789 eval "ac_val=\$$ac_var"
40790 if test ".$ac_val" != .yes; then
40795 if test ".$ac_rc" = .yes; then
40797 ac_decision='USE_SYSVSEM_SERIALIZE'
40798 ac_decision_msg='SysV IPC semget()'
40799 ac_decision_USE_SYSVSEM_SERIALIZE=yes
40800 ac_decision_USE_SYSVSEM_SERIALIZE_msg='SysV IPC semget()'
40807 if test "x$apr_lock_method" != "x"; then
40808 ac_decision="$apr_lock_method"
40809 eval "ac_decision_msg=\"\$ac_decision_${ac_decision}_msg\""
40812 if test ".$ac_decision" = .; then
40813 echo "$0:Error: decision on $ac_decision_item failed" 1>&2
40816 if test ".$ac_decision_msg" = .; then
40817 ac_decision_msg="$ac_decision"
40819 cat >>confdefs.h <<_ACEOF
40820 #define ${ac_decision_item} 1
40823 { $as_echo "$as_me:$LINENO: result: decision on $ac_decision_item... $ac_decision_msg" >&5
40824 $as_echo "decision on $ac_decision_item... $ac_decision_msg" >&6; }
40827 cat >>confdefs.h <<_ACEOF
40828 #define $ac_decision 1
40837 case $ac_decision in
40838 USE_FLOCK_SERIALIZE )
40841 USE_FCNTL_SERIALIZE )
40844 USE_SYSVSEM_SERIALIZE )
40847 USE_POSIXSEM_SERIALIZE )
40850 USE_PROC_PTHREAD_SERIALIZE )
40868 { $as_echo "$as_me:$LINENO: checking if all interprocess locks affect threads" >&5
40869 $as_echo_n "checking if all interprocess locks affect threads... " >&6; }
40870 if test "x$apr_process_lock_is_global" = "xyes"; then
40872 { $as_echo "$as_me:$LINENO: result: yes" >&5
40873 $as_echo "yes" >&6; }
40876 { $as_echo "$as_me:$LINENO: result: no" >&5
40877 $as_echo "no" >&6; }
40882 { $as_echo "$as_me:$LINENO: checking if POSIX sems affect threads in the same process" >&5
40883 $as_echo_n "checking if POSIX sems affect threads in the same process... " >&6; }
40884 if test "x$apr_posixsem_is_global" = "xyes"; then
40886 cat >>confdefs.h <<\_ACEOF
40887 #define POSIXSEM_IS_GLOBAL 1
40890 { $as_echo "$as_me:$LINENO: result: yes" >&5
40891 $as_echo "yes" >&6; }
40893 { $as_echo "$as_me:$LINENO: result: no" >&5
40894 $as_echo "no" >&6; }
40897 { $as_echo "$as_me:$LINENO: checking if SysV sems affect threads in the same process" >&5
40898 $as_echo_n "checking if SysV sems affect threads in the same process... " >&6; }
40899 if test "x$apr_sysvsem_is_global" = "xyes"; then
40901 cat >>confdefs.h <<\_ACEOF
40902 #define SYSVSEM_IS_GLOBAL 1
40905 { $as_echo "$as_me:$LINENO: result: yes" >&5
40906 $as_echo "yes" >&6; }
40908 { $as_echo "$as_me:$LINENO: result: no" >&5
40909 $as_echo "no" >&6; }
40912 { $as_echo "$as_me:$LINENO: checking if fcntl locks affect threads in the same process" >&5
40913 $as_echo_n "checking if fcntl locks affect threads in the same process... " >&6; }
40914 if test "x$apr_fcntl_is_global" = "xyes"; then
40916 cat >>confdefs.h <<\_ACEOF
40917 #define FCNTL_IS_GLOBAL 1
40920 { $as_echo "$as_me:$LINENO: result: yes" >&5
40921 $as_echo "yes" >&6; }
40923 { $as_echo "$as_me:$LINENO: result: no" >&5
40924 $as_echo "no" >&6; }
40927 { $as_echo "$as_me:$LINENO: checking if flock locks affect threads in the same process" >&5
40928 $as_echo_n "checking if flock locks affect threads in the same process... " >&6; }
40929 if test "x$apr_flock_is_global" = "xyes"; then
40931 cat >>confdefs.h <<\_ACEOF
40932 #define FLOCK_IS_GLOBAL 1
40935 { $as_echo "$as_me:$LINENO: result: yes" >&5
40936 $as_echo "yes" >&6; }
40938 { $as_echo "$as_me:$LINENO: result: no" >&5
40939 $as_echo "no" >&6; }
40942 { $as_echo "$as_me:$LINENO: checking for entropy source" >&5
40943 $as_echo_n "checking for entropy source... " >&6; }
40946 # Check whether --with-egd was given.
40947 if test "${with_egd+set}" = set; then
40949 cat >>confdefs.h <<\_ACEOF
40953 if test "$withval" = "yes"; then
40955 cat >>confdefs.h <<_ACEOF
40956 #define EGD_DEFAULT_SOCKET "/var/run/egd-pool","/dev/egd-pool","/etc/egd-pool","/etc/entropy"
40960 cat >>confdefs.h <<_ACEOF
40961 #define EGD_DEFAULT_SOCKET "$withval"
40965 { $as_echo "$as_me:$LINENO: result: EGD-compatible daemon" >&5
40966 $as_echo "EGD-compatible daemon" >&6; }
40972 if test "$rand" != "1"; then
40974 # Check whether --with-devrandom was given.
40975 if test "${with_devrandom+set}" = set; then
40976 withval=$with_devrandom; apr_devrandom="$withval"
40978 apr_devrandom="yes"
40982 if test "$apr_devrandom" = "yes"; then
40983 # /dev/random on OpenBSD doesn't provide random data, so
40984 # prefer /dev/arandom, which does; see random(4).
40985 for f in /dev/arandom /dev/random /dev/urandom; do
40986 if test -r $f; then
40992 elif test "$apr_devrandom" != "no"; then
40993 if test -r "$apr_devrandom"; then
40996 { { $as_echo "$as_me:$LINENO: error: $apr_devrandom not found or unreadable." >&5
40997 $as_echo "$as_me: error: $apr_devrandom not found or unreadable." >&2;}
40998 { (exit 1); exit 1; }; }
41002 if test "$rand" = "1"; then
41004 cat >>confdefs.h <<_ACEOF
41005 #define DEV_RANDOM "$apr_devrandom"
41008 { $as_echo "$as_me:$LINENO: result: $apr_devrandom" >&5
41009 $as_echo "$apr_devrandom" >&6; }
41013 if test "$rand" != "1"; then
41015 # we have built in support for OS/2
41017 { $as_echo "$as_me:$LINENO: result: Using OS/2 builtin random" >&5
41018 $as_echo "Using OS/2 builtin random" >&6; }
41022 if test "$rand" != "1"; then
41023 if test "$ac_cv_lib_truerand_main" = "yes"; then
41025 cat >>confdefs.h <<\_ACEOF
41026 #define HAVE_TRUERAND 1
41029 { $as_echo "$as_me:$LINENO: result: truerand" >&5
41030 $as_echo "truerand" >&6; }
41033 { $as_echo "$as_me:$LINENO: result: not found" >&5
41034 $as_echo "not found" >&6; }
41043 echo "${nl}Checking for Time Support..."
41044 { $as_echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
41045 $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
41046 if test "${ac_cv_struct_tm_gmtoff+set}" = set; then
41047 $as_echo_n "(cached) " >&6
41049 cat >conftest.$ac_ext <<_ACEOF
41052 cat confdefs.h >>conftest.$ac_ext
41053 cat >>conftest.$ac_ext <<_ACEOF
41054 /* end confdefs.h. */
41055 #include <sys/types.h>
41060 struct tm tm; tm.tm_gmtoff;
41065 rm -f conftest.$ac_objext
41066 if { (ac_try="$ac_compile"
41067 case "(($ac_try" in
41068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41069 *) ac_try_echo=$ac_try;;
41071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41072 $as_echo "$ac_try_echo") >&5
41073 (eval "$ac_compile") 2>conftest.er1
41075 grep -v '^ *+' conftest.er1 >conftest.err
41077 cat conftest.err >&5
41078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41079 (exit $ac_status); } && {
41080 test -z "$ac_c_werror_flag" ||
41081 test ! -s conftest.err
41082 } && test -s conftest.$ac_objext; then
41083 ac_cv_struct_tm_gmtoff=yes
41085 $as_echo "$as_me: failed program was:" >&5
41086 sed 's/^/| /' conftest.$ac_ext >&5
41088 ac_cv_struct_tm_gmtoff=no
41091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41093 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm_gmtoff" >&5
41094 $as_echo "$ac_cv_struct_tm_gmtoff" >&6; }
41096 if test "$ac_cv_struct_tm_gmtoff" = "yes"; then
41098 cat >>confdefs.h <<\_ACEOF
41099 #define HAVE_GMTOFF 1
41104 echo "${nl}Checking for Networking support..."
41105 { $as_echo "$as_me:$LINENO: checking for in_addr in netinet/in.h" >&5
41106 $as_echo_n "checking for in_addr in netinet/in.h... " >&6; }
41107 cat >conftest.$ac_ext <<_ACEOF
41110 cat confdefs.h >>conftest.$ac_ext
41111 cat >>conftest.$ac_ext <<_ACEOF
41112 /* end confdefs.h. */
41114 #include <sys/types.h>
41115 #include <netinet/in.h>
41121 struct in_addr arg;
41122 arg.s_addr = htonl(INADDR_ANY);
41128 rm -f conftest.$ac_objext
41129 if { (ac_try="$ac_compile"
41130 case "(($ac_try" in
41131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41132 *) ac_try_echo=$ac_try;;
41134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41135 $as_echo "$ac_try_echo") >&5
41136 (eval "$ac_compile") 2>conftest.er1
41138 grep -v '^ *+' conftest.er1 >conftest.err
41140 cat conftest.err >&5
41141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41142 (exit $ac_status); } && {
41143 test -z "$ac_c_werror_flag" ||
41144 test ! -s conftest.err
41145 } && test -s conftest.$ac_objext; then
41149 $as_echo "$as_me: failed program was:" >&5
41150 sed 's/^/| /' conftest.$ac_ext >&5
41156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41157 { $as_echo "$as_me:$LINENO: result: $msg" >&5
41158 $as_echo "$msg" >&6; }
41160 { $as_echo "$as_me:$LINENO: checking if fd == socket on this platform" >&5
41161 $as_echo_n "checking if fd == socket on this platform... " >&6; }
41162 if test "x$file_as_socket" != "x0" ; then
41163 file_as_socket="1";
41172 # Check the types only if we have gethostbyname_r
41173 if test "$ac_cv_func_gethostbyname_r" = "yes"; then
41176 { $as_echo "$as_me:$LINENO: checking style of gethostbyname_r routine" >&5
41177 $as_echo_n "checking style of gethostbyname_r routine... " >&6; }
41178 if test "${ac_cv_gethostbyname_r_style+set}" = set; then
41179 $as_echo_n "(cached) " >&6
41181 if test "x$CFLAGS_WARN" = "x"; then
41184 apr_tcnw_flags=$CFLAGS_WARN
41186 if test "$ac_cv_c_compiler_gnu" = "yes"; then
41187 apr_tcnw_flags="$apr_tcnw_flags -Werror"
41190 cat > conftest.$ac_ext <<EOTEST
41191 #include "confdefs.h"
41193 #ifdef HAVE_SYS_TYPES_H
41194 #include <sys/types.h>
41196 #ifdef HAVE_NETINET_IN_H
41197 #include <netinet/in.h>
41199 #ifdef HAVE_ARPA_INET_H
41200 #include <arpa/inet.h>
41202 #ifdef HAVE_NETDB_H
41205 #ifdef HAVE_STDLIB_H
41206 #include <stdlib.h>
41209 int main(int argc, const char * const *argv) {
41211 int tmp = gethostbyname_r((const char *) 0, (struct hostent *) 0,
41212 (char *) 0, 0, (struct hostent **) 0, &tmp);
41217 if ${CC-cc} -c $CFLAGS $CPPFLAGS $apr_tcnw_flags conftest.$ac_ext 2>&5 ; then
41219 ac_cv_gethostbyname_r_style=glibc2
41221 echo "configure: failed or warning program:" >&5
41222 cat conftest.$ac_ext >&5
41224 ac_cv_gethostbyname_r_style=none
41229 { $as_echo "$as_me:$LINENO: result: $ac_cv_gethostbyname_r_style" >&5
41230 $as_echo "$ac_cv_gethostbyname_r_style" >&6; }
41232 if test "$ac_cv_gethostbyname_r_style" = "glibc2"; then
41234 cat >>confdefs.h <<\_ACEOF
41235 #define GETHOSTBYNAME_R_GLIBC2 1
41240 { $as_echo "$as_me:$LINENO: checking 3rd argument to the gethostbyname_r routines" >&5
41241 $as_echo_n "checking 3rd argument to the gethostbyname_r routines... " >&6; }
41242 if test "${ac_cv_gethostbyname_r_arg+set}" = set; then
41243 $as_echo_n "(cached) " >&6
41245 if test "x$CFLAGS_WARN" = "x"; then
41248 apr_tcnw_flags=$CFLAGS_WARN
41250 if test "$ac_cv_c_compiler_gnu" = "yes"; then
41251 apr_tcnw_flags="$apr_tcnw_flags -Werror"
41254 cat > conftest.$ac_ext <<EOTEST
41255 #include "confdefs.h"
41257 #ifdef HAVE_SYS_TYPES_H
41258 #include <sys/types.h>
41260 #ifdef HAVE_NETINET_IN_H
41261 #include <netinet/in.h>
41263 #ifdef HAVE_ARPA_INET_H
41264 #include <arpa/inet.h>
41266 #ifdef HAVE_NETDB_H
41269 #ifdef HAVE_STDLIB_H
41270 #include <stdlib.h>
41273 int main(int argc, const char * const *argv) {
41275 int tmp = gethostbyname_r((const char *) 0, (struct hostent *) 0,
41276 (struct hostent_data *) 0);
41280 if ${CC-cc} -c $CFLAGS $CPPFLAGS $apr_tcnw_flags conftest.$ac_ext 2>&5 ; then
41282 ac_cv_gethostbyname_r_arg=hostent_data
41284 echo "configure: failed or warning program:" >&5
41285 cat conftest.$ac_ext >&5
41287 ac_cv_gethostbyname_r_arg=char
41292 { $as_echo "$as_me:$LINENO: result: $ac_cv_gethostbyname_r_arg" >&5
41293 $as_echo "$ac_cv_gethostbyname_r_arg" >&6; }
41295 if test "$ac_cv_gethostbyname_r_arg" = "hostent_data"; then
41297 cat >>confdefs.h <<\_ACEOF
41298 #define GETHOSTBYNAME_R_HOSTENT_DATA 1
41306 { $as_echo "$as_me:$LINENO: checking if TCP_NODELAY setting is inherited from listening sockets" >&5
41307 $as_echo_n "checking if TCP_NODELAY setting is inherited from listening sockets... " >&6; }
41308 if test "${ac_cv_tcp_nodelay_inherited+set}" = set; then
41309 $as_echo_n "(cached) " >&6
41312 if test "$cross_compiling" = yes; then
41314 ac_cv_tcp_nodelay_inherited="yes"
41317 cat >conftest.$ac_ext <<_ACEOF
41320 cat confdefs.h >>conftest.$ac_ext
41321 cat >>conftest.$ac_ext <<_ACEOF
41322 /* end confdefs.h. */
41325 #ifdef HAVE_SYS_TYPES_H
41326 #include <sys/types.h>
41328 #ifdef HAVE_SYS_SOCKET_H
41329 #include <sys/socket.h>
41331 #ifdef HAVE_NETINET_IN_H
41332 #include <netinet/in.h>
41334 #ifdef HAVE_NETINET_TCP_H
41335 #include <netinet/tcp.h>
41337 #ifndef HAVE_SOCKLEN_T
41338 typedef int socklen_t;
41341 int listen_s, connected_s, client_s;
41342 int listen_port, rc;
41343 struct sockaddr_in sa;
41345 socklen_t option_len;
41348 listen_s = socket(AF_INET, SOCK_STREAM, 0);
41349 if (listen_s < 0) {
41354 rc = setsockopt(listen_s, IPPROTO_TCP, TCP_NODELAY, &option, sizeof option);
41356 perror("setsockopt TCP_NODELAY");
41359 memset(&sa, 0, sizeof sa);
41360 sa.sin_family = AF_INET;
41362 sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
41364 /* leave port 0 to get ephemeral */
41365 rc = bind(listen_s, (struct sockaddr *)&sa, sizeof sa);
41367 perror("bind for ephemeral port");
41370 /* find ephemeral port */
41371 sa_len = sizeof(sa);
41372 rc = getsockname(listen_s, (struct sockaddr *)&sa, &sa_len);
41374 perror("getsockname");
41377 listen_port = sa.sin_port;
41378 rc = listen(listen_s, 5);
41383 client_s = socket(AF_INET, SOCK_STREAM, 0);
41384 if (client_s < 0) {
41388 memset(&sa, 0, sizeof sa);
41389 sa.sin_family = AF_INET;
41390 sa.sin_port = listen_port;
41392 sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
41394 /* leave sin_addr all zeros to use loopback */
41395 rc = connect(client_s, (struct sockaddr *)&sa, sizeof sa);
41400 sa_len = sizeof sa;
41401 connected_s = accept(listen_s, (struct sockaddr *)&sa, &sa_len);
41402 if (connected_s < 0) {
41406 option_len = sizeof option;
41407 rc = getsockopt(connected_s, IPPROTO_TCP, TCP_NODELAY, &option, &option_len);
41409 perror("getsockopt");
41413 fprintf(stderr, "TCP_NODELAY is not set in the child.\n");
41420 rm -f conftest$ac_exeext
41421 if { (ac_try="$ac_link"
41422 case "(($ac_try" in
41423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41424 *) ac_try_echo=$ac_try;;
41426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41427 $as_echo "$ac_try_echo") >&5
41428 (eval "$ac_link") 2>&5
41430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41431 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41432 { (case "(($ac_try" in
41433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41434 *) ac_try_echo=$ac_try;;
41436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41437 $as_echo "$ac_try_echo") >&5
41438 (eval "$ac_try") 2>&5
41440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41441 (exit $ac_status); }; }; then
41443 ac_cv_tcp_nodelay_inherited="yes"
41446 $as_echo "$as_me: program exited with status $ac_status" >&5
41447 $as_echo "$as_me: failed program was:" >&5
41448 sed 's/^/| /' conftest.$ac_ext >&5
41450 ( exit $ac_status )
41452 ac_cv_tcp_nodelay_inherited="no"
41455 rm -rf conftest.dSYM
41456 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41461 { $as_echo "$as_me:$LINENO: result: $ac_cv_tcp_nodelay_inherited" >&5
41462 $as_echo "$ac_cv_tcp_nodelay_inherited" >&6; }
41463 if test "$ac_cv_tcp_nodelay_inherited" = "yes"; then
41464 tcp_nodelay_inherited=1
41466 tcp_nodelay_inherited=0
41470 { $as_echo "$as_me:$LINENO: checking if O_NONBLOCK setting is inherited from listening sockets" >&5
41471 $as_echo_n "checking if O_NONBLOCK setting is inherited from listening sockets... " >&6; }
41472 if test "${ac_cv_o_nonblock_inherited+set}" = set; then
41473 $as_echo_n "(cached) " >&6
41476 if test "$cross_compiling" = yes; then
41478 ac_cv_o_nonblock_inherited="yes"
41481 cat >conftest.$ac_ext <<_ACEOF
41484 cat confdefs.h >>conftest.$ac_ext
41485 cat >>conftest.$ac_ext <<_ACEOF
41486 /* end confdefs.h. */
41489 #ifdef HAVE_SYS_TYPES_H
41490 #include <sys/types.h>
41492 #ifdef HAVE_SYS_SOCKET_H
41493 #include <sys/socket.h>
41495 #ifdef HAVE_NETINET_IN_H
41496 #include <netinet/in.h>
41498 #ifdef HAVE_NETINET_TCP_H
41499 #include <netinet/tcp.h>
41501 #ifndef HAVE_SOCKLEN_T
41502 typedef int socklen_t;
41504 #ifdef HAVE_FCNTL_H
41508 int listen_s, connected_s, client_s;
41509 int listen_port, rc;
41510 struct sockaddr_in sa;
41513 listen_s = socket(AF_INET, SOCK_STREAM, 0);
41514 if (listen_s < 0) {
41518 memset(&sa, 0, sizeof sa);
41519 sa.sin_family = AF_INET;
41521 sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
41523 /* leave port 0 to get ephemeral */
41524 rc = bind(listen_s, (struct sockaddr *)&sa, sizeof sa);
41526 perror("bind for ephemeral port");
41529 /* find ephemeral port */
41530 sa_len = sizeof(sa);
41531 rc = getsockname(listen_s, (struct sockaddr *)&sa, &sa_len);
41533 perror("getsockname");
41536 listen_port = sa.sin_port;
41537 rc = listen(listen_s, 5);
41542 rc = fcntl(listen_s, F_SETFL, O_NONBLOCK);
41544 perror("fcntl(F_SETFL)");
41547 client_s = socket(AF_INET, SOCK_STREAM, 0);
41548 if (client_s < 0) {
41552 memset(&sa, 0, sizeof sa);
41553 sa.sin_family = AF_INET;
41554 sa.sin_port = listen_port;
41556 sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
41558 /* leave sin_addr all zeros to use loopback */
41559 rc = connect(client_s, (struct sockaddr *)&sa, sizeof sa);
41564 sa_len = sizeof sa;
41565 connected_s = accept(listen_s, (struct sockaddr *)&sa, &sa_len);
41566 if (connected_s < 0) {
41570 rc = fcntl(connected_s, F_GETFL, 0);
41572 perror("fcntl(F_GETFL)");
41575 if (!(rc & O_NONBLOCK)) {
41576 fprintf(stderr, "O_NONBLOCK is not set in the child.\n");
41583 rm -f conftest$ac_exeext
41584 if { (ac_try="$ac_link"
41585 case "(($ac_try" in
41586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41587 *) ac_try_echo=$ac_try;;
41589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41590 $as_echo "$ac_try_echo") >&5
41591 (eval "$ac_link") 2>&5
41593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41594 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41595 { (case "(($ac_try" in
41596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41597 *) ac_try_echo=$ac_try;;
41599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41600 $as_echo "$ac_try_echo") >&5
41601 (eval "$ac_try") 2>&5
41603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41604 (exit $ac_status); }; }; then
41606 ac_cv_o_nonblock_inherited="yes"
41609 $as_echo "$as_me: program exited with status $ac_status" >&5
41610 $as_echo "$as_me: failed program was:" >&5
41611 sed 's/^/| /' conftest.$ac_ext >&5
41613 ( exit $ac_status )
41615 ac_cv_o_nonblock_inherited="no"
41618 rm -rf conftest.dSYM
41619 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41624 { $as_echo "$as_me:$LINENO: result: $ac_cv_o_nonblock_inherited" >&5
41625 $as_echo "$ac_cv_o_nonblock_inherited" >&6; }
41626 if test "$ac_cv_o_nonblock_inherited" = "yes"; then
41627 o_nonblock_inherited=1
41629 o_nonblock_inherited=0
41633 # Look for a way of corking TCP...
41635 { $as_echo "$as_me:$LINENO: checking for TCP_CORK in netinet/tcp.h" >&5
41636 $as_echo_n "checking for TCP_CORK in netinet/tcp.h... " >&6; }
41637 if test "${ac_cv_define_TCP_CORK+set}" = set; then
41638 $as_echo_n "(cached) " >&6
41641 cat >conftest.$ac_ext <<_ACEOF
41644 cat confdefs.h >>conftest.$ac_ext
41645 cat >>conftest.$ac_ext <<_ACEOF
41646 /* end confdefs.h. */
41648 #include <netinet/tcp.h>
41654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41655 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then
41656 ac_cv_define_TCP_CORK=yes
41658 ac_cv_define_TCP_CORK=no
41664 { $as_echo "$as_me:$LINENO: result: $ac_cv_define_TCP_CORK" >&5
41665 $as_echo "$ac_cv_define_TCP_CORK" >&6; }
41666 if test "$ac_cv_define_TCP_CORK" = "yes"; then
41668 cat >>confdefs.h <<\_ACEOF
41669 #define HAVE_TCP_CORK 1
41675 { $as_echo "$as_me:$LINENO: checking for TCP_NOPUSH in netinet/tcp.h" >&5
41676 $as_echo_n "checking for TCP_NOPUSH in netinet/tcp.h... " >&6; }
41677 if test "${ac_cv_define_TCP_NOPUSH+set}" = set; then
41678 $as_echo_n "(cached) " >&6
41681 cat >conftest.$ac_ext <<_ACEOF
41684 cat confdefs.h >>conftest.$ac_ext
41685 cat >>conftest.$ac_ext <<_ACEOF
41686 /* end confdefs.h. */
41688 #include <netinet/tcp.h>
41694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41695 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then
41696 ac_cv_define_TCP_NOPUSH=yes
41698 ac_cv_define_TCP_NOPUSH=no
41704 { $as_echo "$as_me:$LINENO: result: $ac_cv_define_TCP_NOPUSH" >&5
41705 $as_echo "$ac_cv_define_TCP_NOPUSH" >&6; }
41706 if test "$ac_cv_define_TCP_NOPUSH" = "yes"; then
41708 cat >>confdefs.h <<\_ACEOF
41709 #define HAVE_TCP_NOPUSH 1
41714 apr_tcp_nopush_flag="0"
41715 have_corkable_tcp="0"
41716 if test "x$ac_cv_define_TCP_CORK" = "xyes"; then
41717 apr_tcp_nopush_flag="TCP_CORK"
41718 have_corkable_tcp="1"
41722 cat >conftest.$ac_ext <<_ACEOF
41725 cat confdefs.h >>conftest.$ac_ext
41726 cat >>conftest.$ac_ext <<_ACEOF
41727 /* end confdefs.h. */
41729 #include <linux/socket.h>
41735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41736 $EGREP "yes" >/dev/null 2>&1; then
41738 apr_tcp_nopush_flag="3"
41739 have_corkable_tcp="1"
41749 if test "x$ac_cv_define_TCP_NOPUSH" = "xyes"; then
41750 apr_tcp_nopush_flag="TCP_NOPUSH"
41751 have_corkable_tcp="1"
41755 { $as_echo "$as_me:$LINENO: checking for SO_ACCEPTFILTER in sys/socket.h" >&5
41756 $as_echo_n "checking for SO_ACCEPTFILTER in sys/socket.h... " >&6; }
41757 if test "${ac_cv_define_SO_ACCEPTFILTER+set}" = set; then
41758 $as_echo_n "(cached) " >&6
41761 cat >conftest.$ac_ext <<_ACEOF
41764 cat confdefs.h >>conftest.$ac_ext
41765 cat >>conftest.$ac_ext <<_ACEOF
41766 /* end confdefs.h. */
41768 #include <sys/socket.h>
41769 #ifdef SO_ACCEPTFILTER
41774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41775 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then
41776 ac_cv_define_SO_ACCEPTFILTER=yes
41778 ac_cv_define_SO_ACCEPTFILTER=no
41784 { $as_echo "$as_me:$LINENO: result: $ac_cv_define_SO_ACCEPTFILTER" >&5
41785 $as_echo "$ac_cv_define_SO_ACCEPTFILTER" >&6; }
41786 if test "$ac_cv_define_SO_ACCEPTFILTER" = "yes"; then
41788 cat >>confdefs.h <<\_ACEOF
41789 #define HAVE_SO_ACCEPTFILTER 1
41794 if test "x$ac_cv_define_SO_ACCEPTFILTER" = "xyes"; then
41801 { $as_echo "$as_me:$LINENO: checking whether SCTP is supported" >&5
41802 $as_echo_n "checking whether SCTP is supported... " >&6; }
41803 if test "${apr_cv_sctp+set}" = set; then
41804 $as_echo_n "(cached) " >&6
41807 if test "$cross_compiling" = yes; then
41810 cat >conftest.$ac_ext <<_ACEOF
41813 cat confdefs.h >>conftest.$ac_ext
41814 cat >>conftest.$ac_ext <<_ACEOF
41815 /* end confdefs.h. */
41817 #ifdef HAVE_SYS_TYPES_H
41818 #include <sys/types.h>
41820 #ifdef HAVE_SYS_SOCKET_H
41821 #include <sys/socket.h>
41823 #ifdef HAVE_NETINET_IN_H
41824 #include <netinet/in.h>
41826 #ifdef HAVE_NETINET_SCTP_H
41827 #include <netinet/sctp.h>
41829 #ifdef HAVE_NETINET_SCTP_UIO_H
41830 #include <netinet/sctp_uio.h>
41832 #include <stdlib.h>
41835 if ((s = socket(AF_INET, SOCK_STREAM, IPPROTO_SCTP)) < 0)
41837 if (setsockopt(s, IPPROTO_SCTP, SCTP_NODELAY, &opt, sizeof(int)) < 0)
41842 rm -f conftest$ac_exeext
41843 if { (ac_try="$ac_link"
41844 case "(($ac_try" in
41845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41846 *) ac_try_echo=$ac_try;;
41848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41849 $as_echo "$ac_try_echo") >&5
41850 (eval "$ac_link") 2>&5
41852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41853 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41854 { (case "(($ac_try" in
41855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41856 *) ac_try_echo=$ac_try;;
41858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41859 $as_echo "$ac_try_echo") >&5
41860 (eval "$ac_try") 2>&5
41862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41863 (exit $ac_status); }; }; then
41866 $as_echo "$as_me: program exited with status $ac_status" >&5
41867 $as_echo "$as_me: failed program was:" >&5
41868 sed 's/^/| /' conftest.$ac_ext >&5
41870 ( exit $ac_status )
41873 rm -rf conftest.dSYM
41874 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41879 { $as_echo "$as_me:$LINENO: result: $apr_cv_sctp" >&5
41880 $as_echo "$apr_cv_sctp" >&6; }
41882 if test "$apr_cv_sctp" = "yes"; then
41895 for ac_func in set_h_errno
41897 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41898 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
41899 $as_echo_n "checking for $ac_func... " >&6; }
41900 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41901 $as_echo_n "(cached) " >&6
41903 cat >conftest.$ac_ext <<_ACEOF
41906 cat confdefs.h >>conftest.$ac_ext
41907 cat >>conftest.$ac_ext <<_ACEOF
41908 /* end confdefs.h. */
41909 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41911 #define $ac_func innocuous_$ac_func
41913 /* System header to define __stub macros and hopefully few prototypes,
41914 which can conflict with char $ac_func (); below.
41915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41916 <limits.h> exists even on freestanding compilers. */
41919 # include <limits.h>
41921 # include <assert.h>
41926 /* Override any GCC internal prototype to avoid an error.
41927 Use char because int might match the return type of a GCC
41928 builtin and then its argument prototype would still apply. */
41933 /* The GNU C library defines this for functions which it implements
41934 to always fail with ENOSYS. Some functions are actually named
41935 something starting with __ and the normal name is an alias. */
41936 #if defined __stub_$ac_func || defined __stub___$ac_func
41943 return $ac_func ();
41948 rm -f conftest.$ac_objext conftest$ac_exeext
41949 if { (ac_try="$ac_link"
41950 case "(($ac_try" in
41951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41952 *) ac_try_echo=$ac_try;;
41954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41955 $as_echo "$ac_try_echo") >&5
41956 (eval "$ac_link") 2>conftest.er1
41958 grep -v '^ *+' conftest.er1 >conftest.err
41960 cat conftest.err >&5
41961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41962 (exit $ac_status); } && {
41963 test -z "$ac_c_werror_flag" ||
41964 test ! -s conftest.err
41965 } && test -s conftest$ac_exeext && {
41966 test "$cross_compiling" = yes ||
41967 $as_test_x conftest$ac_exeext
41969 eval "$as_ac_var=yes"
41971 $as_echo "$as_me: failed program was:" >&5
41972 sed 's/^/| /' conftest.$ac_ext >&5
41974 eval "$as_ac_var=no"
41977 rm -rf conftest.dSYM
41978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41979 conftest$ac_exeext conftest.$ac_ext
41981 ac_res=`eval 'as_val=${'$as_ac_var'}
41982 $as_echo "$as_val"'`
41983 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41984 $as_echo "$ac_res" >&6; }
41985 as_val=`eval 'as_val=${'$as_ac_var'}
41986 $as_echo "$as_val"'`
41987 if test "x$as_val" = x""yes; then
41988 cat >>confdefs.h <<_ACEOF
41989 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41996 { $as_echo "$as_me:$LINENO: checking for presence of retrans/retry fields in res_state/resolv.h " >&5
41997 $as_echo_n "checking for presence of retrans/retry fields in res_state/resolv.h ... " >&6; }
41998 if test "${ac_cv_retransretry+set}" = set; then
41999 $as_echo_n "(cached) " >&6
42002 if test "$cross_compiling" = yes; then
42004 ac_cv_retransretry="no"
42007 cat >conftest.$ac_ext <<_ACEOF
42010 cat confdefs.h >>conftest.$ac_ext
42011 cat >>conftest.$ac_ext <<_ACEOF
42012 /* end confdefs.h. */
42014 #include <sys/types.h>
42015 #if defined(__sun__)
42016 #include <inet/ip.h>
42018 #include <resolv.h>
42019 /* _res is a global defined in resolv.h */
42028 rm -f conftest$ac_exeext
42029 if { (ac_try="$ac_link"
42030 case "(($ac_try" in
42031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42032 *) ac_try_echo=$ac_try;;
42034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42035 $as_echo "$ac_try_echo") >&5
42036 (eval "$ac_link") 2>&5
42038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42039 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42040 { (case "(($ac_try" in
42041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42042 *) ac_try_echo=$ac_try;;
42044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42045 $as_echo "$ac_try_echo") >&5
42046 (eval "$ac_try") 2>&5
42048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42049 (exit $ac_status); }; }; then
42051 ac_cv_retransretry="yes"
42054 $as_echo "$as_me: program exited with status $ac_status" >&5
42055 $as_echo "$as_me: failed program was:" >&5
42056 sed 's/^/| /' conftest.$ac_ext >&5
42058 ( exit $ac_status )
42060 ac_cv_retransretry="no"
42063 rm -rf conftest.dSYM
42064 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42069 { $as_echo "$as_me:$LINENO: result: $ac_cv_retransretry" >&5
42070 $as_echo "$ac_cv_retransretry" >&6; }
42071 if test "$ac_cv_retransretry" = "yes"; then
42073 cat >>confdefs.h <<\_ACEOF
42074 #define RESOLV_RETRANSRETRY 1
42080 echo "${nl}Checking for IPv6 Networking support..."
42082 # Check whether --enable-ipv6 was given.
42083 if test "${enable_ipv6+set}" = set; then
42084 enableval=$enable_ipv6; if test "$enableval" = "no"; then
42085 user_disabled_ipv6=1
42088 user_disabled_ipv6=0
42097 { $as_echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
42098 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
42099 if test "${ac_cv_search_getaddrinfo+set}" = set; then
42100 $as_echo_n "(cached) " >&6
42102 ac_func_search_save_LIBS=$LIBS
42103 cat >conftest.$ac_ext <<_ACEOF
42106 cat confdefs.h >>conftest.$ac_ext
42107 cat >>conftest.$ac_ext <<_ACEOF
42108 /* end confdefs.h. */
42110 /* Override any GCC internal prototype to avoid an error.
42111 Use char because int might match the return type of a GCC
42112 builtin and then its argument prototype would still apply. */
42116 char getaddrinfo ();
42120 return getaddrinfo ();
42125 for ac_lib in '' socket inet6; do
42126 if test -z "$ac_lib"; then
42127 ac_res="none required"
42130 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
42132 rm -f conftest.$ac_objext conftest$ac_exeext
42133 if { (ac_try="$ac_link"
42134 case "(($ac_try" in
42135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42136 *) ac_try_echo=$ac_try;;
42138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42139 $as_echo "$ac_try_echo") >&5
42140 (eval "$ac_link") 2>conftest.er1
42142 grep -v '^ *+' conftest.er1 >conftest.err
42144 cat conftest.err >&5
42145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42146 (exit $ac_status); } && {
42147 test -z "$ac_c_werror_flag" ||
42148 test ! -s conftest.err
42149 } && test -s conftest$ac_exeext && {
42150 test "$cross_compiling" = yes ||
42151 $as_test_x conftest$ac_exeext
42153 ac_cv_search_getaddrinfo=$ac_res
42155 $as_echo "$as_me: failed program was:" >&5
42156 sed 's/^/| /' conftest.$ac_ext >&5
42161 rm -rf conftest.dSYM
42162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42164 if test "${ac_cv_search_getaddrinfo+set}" = set; then
42168 if test "${ac_cv_search_getaddrinfo+set}" = set; then
42171 ac_cv_search_getaddrinfo=no
42173 rm conftest.$ac_ext
42174 LIBS=$ac_func_search_save_LIBS
42176 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
42177 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
42178 ac_res=$ac_cv_search_getaddrinfo
42179 if test "$ac_res" != no; then
42180 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42184 { $as_echo "$as_me:$LINENO: checking for library containing gai_strerror" >&5
42185 $as_echo_n "checking for library containing gai_strerror... " >&6; }
42186 if test "${ac_cv_search_gai_strerror+set}" = set; then
42187 $as_echo_n "(cached) " >&6
42189 ac_func_search_save_LIBS=$LIBS
42190 cat >conftest.$ac_ext <<_ACEOF
42193 cat confdefs.h >>conftest.$ac_ext
42194 cat >>conftest.$ac_ext <<_ACEOF
42195 /* end confdefs.h. */
42197 /* Override any GCC internal prototype to avoid an error.
42198 Use char because int might match the return type of a GCC
42199 builtin and then its argument prototype would still apply. */
42203 char gai_strerror ();
42207 return gai_strerror ();
42212 for ac_lib in '' socket inet6; do
42213 if test -z "$ac_lib"; then
42214 ac_res="none required"
42217 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
42219 rm -f conftest.$ac_objext conftest$ac_exeext
42220 if { (ac_try="$ac_link"
42221 case "(($ac_try" in
42222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42223 *) ac_try_echo=$ac_try;;
42225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42226 $as_echo "$ac_try_echo") >&5
42227 (eval "$ac_link") 2>conftest.er1
42229 grep -v '^ *+' conftest.er1 >conftest.err
42231 cat conftest.err >&5
42232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42233 (exit $ac_status); } && {
42234 test -z "$ac_c_werror_flag" ||
42235 test ! -s conftest.err
42236 } && test -s conftest$ac_exeext && {
42237 test "$cross_compiling" = yes ||
42238 $as_test_x conftest$ac_exeext
42240 ac_cv_search_gai_strerror=$ac_res
42242 $as_echo "$as_me: failed program was:" >&5
42243 sed 's/^/| /' conftest.$ac_ext >&5
42248 rm -rf conftest.dSYM
42249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42251 if test "${ac_cv_search_gai_strerror+set}" = set; then
42255 if test "${ac_cv_search_gai_strerror+set}" = set; then
42258 ac_cv_search_gai_strerror=no
42260 rm conftest.$ac_ext
42261 LIBS=$ac_func_search_save_LIBS
42263 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gai_strerror" >&5
42264 $as_echo "$ac_cv_search_gai_strerror" >&6; }
42265 ac_res=$ac_cv_search_gai_strerror
42266 if test "$ac_res" != no; then
42267 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42271 { $as_echo "$as_me:$LINENO: checking for library containing getnameinfo" >&5
42272 $as_echo_n "checking for library containing getnameinfo... " >&6; }
42273 if test "${ac_cv_search_getnameinfo+set}" = set; then
42274 $as_echo_n "(cached) " >&6
42276 ac_func_search_save_LIBS=$LIBS
42277 cat >conftest.$ac_ext <<_ACEOF
42280 cat confdefs.h >>conftest.$ac_ext
42281 cat >>conftest.$ac_ext <<_ACEOF
42282 /* end confdefs.h. */
42284 /* Override any GCC internal prototype to avoid an error.
42285 Use char because int might match the return type of a GCC
42286 builtin and then its argument prototype would still apply. */
42290 char getnameinfo ();
42294 return getnameinfo ();
42299 for ac_lib in '' socket inet6; do
42300 if test -z "$ac_lib"; then
42301 ac_res="none required"
42304 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
42306 rm -f conftest.$ac_objext conftest$ac_exeext
42307 if { (ac_try="$ac_link"
42308 case "(($ac_try" in
42309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42310 *) ac_try_echo=$ac_try;;
42312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42313 $as_echo "$ac_try_echo") >&5
42314 (eval "$ac_link") 2>conftest.er1
42316 grep -v '^ *+' conftest.er1 >conftest.err
42318 cat conftest.err >&5
42319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42320 (exit $ac_status); } && {
42321 test -z "$ac_c_werror_flag" ||
42322 test ! -s conftest.err
42323 } && test -s conftest$ac_exeext && {
42324 test "$cross_compiling" = yes ||
42325 $as_test_x conftest$ac_exeext
42327 ac_cv_search_getnameinfo=$ac_res
42329 $as_echo "$as_me: failed program was:" >&5
42330 sed 's/^/| /' conftest.$ac_ext >&5
42335 rm -rf conftest.dSYM
42336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42338 if test "${ac_cv_search_getnameinfo+set}" = set; then
42342 if test "${ac_cv_search_getnameinfo+set}" = set; then
42345 ac_cv_search_getnameinfo=no
42347 rm conftest.$ac_ext
42348 LIBS=$ac_func_search_save_LIBS
42350 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getnameinfo" >&5
42351 $as_echo "$ac_cv_search_getnameinfo" >&6; }
42352 ac_res=$ac_cv_search_getnameinfo
42353 if test "$ac_res" != no; then
42354 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42359 for ac_func in gai_strerror
42361 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
42362 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
42363 $as_echo_n "checking for $ac_func... " >&6; }
42364 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42365 $as_echo_n "(cached) " >&6
42367 cat >conftest.$ac_ext <<_ACEOF
42370 cat confdefs.h >>conftest.$ac_ext
42371 cat >>conftest.$ac_ext <<_ACEOF
42372 /* end confdefs.h. */
42373 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42374 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42375 #define $ac_func innocuous_$ac_func
42377 /* System header to define __stub macros and hopefully few prototypes,
42378 which can conflict with char $ac_func (); below.
42379 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42380 <limits.h> exists even on freestanding compilers. */
42383 # include <limits.h>
42385 # include <assert.h>
42390 /* Override any GCC internal prototype to avoid an error.
42391 Use char because int might match the return type of a GCC
42392 builtin and then its argument prototype would still apply. */
42397 /* The GNU C library defines this for functions which it implements
42398 to always fail with ENOSYS. Some functions are actually named
42399 something starting with __ and the normal name is an alias. */
42400 #if defined __stub_$ac_func || defined __stub___$ac_func
42407 return $ac_func ();
42412 rm -f conftest.$ac_objext conftest$ac_exeext
42413 if { (ac_try="$ac_link"
42414 case "(($ac_try" in
42415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42416 *) ac_try_echo=$ac_try;;
42418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42419 $as_echo "$ac_try_echo") >&5
42420 (eval "$ac_link") 2>conftest.er1
42422 grep -v '^ *+' conftest.er1 >conftest.err
42424 cat conftest.err >&5
42425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42426 (exit $ac_status); } && {
42427 test -z "$ac_c_werror_flag" ||
42428 test ! -s conftest.err
42429 } && test -s conftest$ac_exeext && {
42430 test "$cross_compiling" = yes ||
42431 $as_test_x conftest$ac_exeext
42433 eval "$as_ac_var=yes"
42435 $as_echo "$as_me: failed program was:" >&5
42436 sed 's/^/| /' conftest.$ac_ext >&5
42438 eval "$as_ac_var=no"
42441 rm -rf conftest.dSYM
42442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42443 conftest$ac_exeext conftest.$ac_ext
42445 ac_res=`eval 'as_val=${'$as_ac_var'}
42446 $as_echo "$as_val"'`
42447 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42448 $as_echo "$ac_res" >&6; }
42449 as_val=`eval 'as_val=${'$as_ac_var'}
42450 $as_echo "$as_val"'`
42451 if test "x$as_val" = x""yes; then
42452 cat >>confdefs.h <<_ACEOF
42453 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42460 { $as_echo "$as_me:$LINENO: checking for working getaddrinfo" >&5
42461 $as_echo_n "checking for working getaddrinfo... " >&6; }
42462 if test "${ac_cv_working_getaddrinfo+set}" = set; then
42463 $as_echo_n "(cached) " >&6
42466 if test "$cross_compiling" = yes; then
42468 ac_cv_working_getaddrinfo="yes"
42471 cat >conftest.$ac_ext <<_ACEOF
42474 cat confdefs.h >>conftest.$ac_ext
42475 cat >>conftest.$ac_ext <<_ACEOF
42476 /* end confdefs.h. */
42478 #ifdef HAVE_NETDB_H
42481 #ifdef HAVE_STRING_H
42482 #include <string.h>
42484 #ifdef HAVE_SYS_TYPES_H
42485 #include <sys/types.h>
42487 #ifdef HAVE_SYS_SOCKET_H
42488 #include <sys/socket.h>
42492 struct addrinfo hints, *ai;
42495 memset(&hints, 0, sizeof(hints));
42496 hints.ai_family = AF_UNSPEC;
42497 hints.ai_socktype = SOCK_STREAM;
42498 error = getaddrinfo("127.0.0.1", NULL, &hints, &ai);
42502 if (ai->ai_addr->sa_family != AF_INET) {
42509 rm -f conftest$ac_exeext
42510 if { (ac_try="$ac_link"
42511 case "(($ac_try" in
42512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42513 *) ac_try_echo=$ac_try;;
42515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42516 $as_echo "$ac_try_echo") >&5
42517 (eval "$ac_link") 2>&5
42519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42520 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42521 { (case "(($ac_try" in
42522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42523 *) ac_try_echo=$ac_try;;
42525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42526 $as_echo "$ac_try_echo") >&5
42527 (eval "$ac_try") 2>&5
42529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42530 (exit $ac_status); }; }; then
42532 ac_cv_working_getaddrinfo="yes"
42535 $as_echo "$as_me: program exited with status $ac_status" >&5
42536 $as_echo "$as_me: failed program was:" >&5
42537 sed 's/^/| /' conftest.$ac_ext >&5
42539 ( exit $ac_status )
42541 ac_cv_working_getaddrinfo="no"
42544 rm -rf conftest.dSYM
42545 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42550 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_getaddrinfo" >&5
42551 $as_echo "$ac_cv_working_getaddrinfo" >&6; }
42552 if test "$ac_cv_working_getaddrinfo" = "yes"; then
42553 if test "$ac_cv_func_gai_strerror" != "yes"; then
42554 ac_cv_working_getaddrinfo="no"
42557 cat >>confdefs.h <<\_ACEOF
42558 #define HAVE_GETADDRINFO 1
42565 { $as_echo "$as_me:$LINENO: checking for negative error codes for getaddrinfo" >&5
42566 $as_echo_n "checking for negative error codes for getaddrinfo... " >&6; }
42567 if test "${ac_cv_negative_eai+set}" = set; then
42568 $as_echo_n "(cached) " >&6
42571 if test "$cross_compiling" = yes; then
42573 ac_cv_negative_eai="no"
42576 cat >conftest.$ac_ext <<_ACEOF
42579 cat confdefs.h >>conftest.$ac_ext
42580 cat >>conftest.$ac_ext <<_ACEOF
42581 /* end confdefs.h. */
42583 #ifdef HAVE_NETDB_H
42588 if (EAI_ADDRFAMILY < 0) {
42595 rm -f conftest$ac_exeext
42596 if { (ac_try="$ac_link"
42597 case "(($ac_try" in
42598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42599 *) ac_try_echo=$ac_try;;
42601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42602 $as_echo "$ac_try_echo") >&5
42603 (eval "$ac_link") 2>&5
42605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42606 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42607 { (case "(($ac_try" in
42608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42609 *) ac_try_echo=$ac_try;;
42611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42612 $as_echo "$ac_try_echo") >&5
42613 (eval "$ac_try") 2>&5
42615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42616 (exit $ac_status); }; }; then
42618 ac_cv_negative_eai="yes"
42621 $as_echo "$as_me: program exited with status $ac_status" >&5
42622 $as_echo "$as_me: failed program was:" >&5
42623 sed 's/^/| /' conftest.$ac_ext >&5
42625 ( exit $ac_status )
42627 ac_cv_negative_eai="no"
42630 rm -rf conftest.dSYM
42631 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42636 { $as_echo "$as_me:$LINENO: result: $ac_cv_negative_eai" >&5
42637 $as_echo "$ac_cv_negative_eai" >&6; }
42638 if test "$ac_cv_negative_eai" = "yes"; then
42640 cat >>confdefs.h <<\_ACEOF
42641 #define NEGATIVE_EAI 1
42647 { $as_echo "$as_me:$LINENO: checking for working getnameinfo" >&5
42648 $as_echo_n "checking for working getnameinfo... " >&6; }
42649 if test "${ac_cv_working_getnameinfo+set}" = set; then
42650 $as_echo_n "(cached) " >&6
42653 if test "$cross_compiling" = yes; then
42655 ac_cv_working_getnameinfo="yes"
42658 cat >conftest.$ac_ext <<_ACEOF
42661 cat confdefs.h >>conftest.$ac_ext
42662 cat >>conftest.$ac_ext <<_ACEOF
42663 /* end confdefs.h. */
42665 #ifdef HAVE_NETDB_H
42668 #ifdef HAVE_STRING_H
42669 #include <string.h>
42671 #ifdef HAVE_SYS_TYPES_H
42672 #include <sys/types.h>
42674 #ifdef HAVE_SYS_SOCKET_H
42675 #include <sys/socket.h>
42677 #ifdef HAVE_NETINET_IN_H
42678 #include <netinet/in.h>
42682 struct sockaddr_in sa;
42686 sa.sin_family = AF_INET;
42688 sa.sin_addr.s_addr = inet_addr("127.0.0.1");
42690 sa.sin_len = sizeof(sa);
42693 error = getnameinfo((const struct sockaddr *)&sa, sizeof(sa),
42694 hbuf, 256, NULL, 0,
42704 rm -f conftest$ac_exeext
42705 if { (ac_try="$ac_link"
42706 case "(($ac_try" in
42707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42708 *) ac_try_echo=$ac_try;;
42710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42711 $as_echo "$ac_try_echo") >&5
42712 (eval "$ac_link") 2>&5
42714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42715 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42716 { (case "(($ac_try" in
42717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42718 *) ac_try_echo=$ac_try;;
42720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42721 $as_echo "$ac_try_echo") >&5
42722 (eval "$ac_try") 2>&5
42724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42725 (exit $ac_status); }; }; then
42727 ac_cv_working_getnameinfo="yes"
42730 $as_echo "$as_me: program exited with status $ac_status" >&5
42731 $as_echo "$as_me: failed program was:" >&5
42732 sed 's/^/| /' conftest.$ac_ext >&5
42734 ( exit $ac_status )
42736 ac_cv_working_getnameinfo="no"
42739 rm -rf conftest.dSYM
42740 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42745 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_getnameinfo" >&5
42746 $as_echo "$ac_cv_working_getnameinfo" >&6; }
42747 if test "$ac_cv_working_getnameinfo" = "yes"; then
42749 cat >>confdefs.h <<\_ACEOF
42750 #define HAVE_GETNAMEINFO 1
42756 { $as_echo "$as_me:$LINENO: checking for sockaddr_in6" >&5
42757 $as_echo_n "checking for sockaddr_in6... " >&6; }
42758 if test "${ac_cv_define_sockaddr_in6+set}" = set; then
42759 $as_echo_n "(cached) " >&6
42762 cat >conftest.$ac_ext <<_ACEOF
42765 cat confdefs.h >>conftest.$ac_ext
42766 cat >>conftest.$ac_ext <<_ACEOF
42767 /* end confdefs.h. */
42769 #ifdef HAVE_SYS_TYPES_H
42770 #include <sys/types.h>
42772 #ifdef HAVE_NETINET_IN_H
42773 #include <netinet/in.h>
42780 struct sockaddr_in6 sa;
42786 rm -f conftest.$ac_objext
42787 if { (ac_try="$ac_compile"
42788 case "(($ac_try" in
42789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42790 *) ac_try_echo=$ac_try;;
42792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42793 $as_echo "$ac_try_echo") >&5
42794 (eval "$ac_compile") 2>conftest.er1
42796 grep -v '^ *+' conftest.er1 >conftest.err
42798 cat conftest.err >&5
42799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42800 (exit $ac_status); } && {
42801 test -z "$ac_c_werror_flag" ||
42802 test ! -s conftest.err
42803 } && test -s conftest.$ac_objext; then
42805 ac_cv_define_sockaddr_in6=yes
42808 $as_echo "$as_me: failed program was:" >&5
42809 sed 's/^/| /' conftest.$ac_ext >&5
42812 ac_cv_define_sockaddr_in6=no
42816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42819 { $as_echo "$as_me:$LINENO: result: $ac_cv_define_sockaddr_in6" >&5
42820 $as_echo "$ac_cv_define_sockaddr_in6" >&6; }
42822 if test "$ac_cv_define_sockaddr_in6" = "yes"; then
42823 have_sockaddr_in6=1
42825 have_sockaddr_in6=0
42830 if test "$user_disabled_ipv6" = 1; then
42831 ipv6_result="no -- disabled by user"
42833 if test "x$broken_ipv6" = "x0"; then
42834 if test "x$have_sockaddr_in6" = "x1"; then
42835 if test "x$ac_cv_working_getaddrinfo" = "xyes"; then
42836 if test "x$ac_cv_working_getnameinfo" = "xyes"; then
42840 ipv6_result="no -- no getnameinfo"
42843 ipv6_result="no -- no working getaddrinfo"
42846 ipv6_result="no -- no sockaddr_in6"
42849 ipv6_result="no -- the platform has known problems supporting IPv6"
42853 { $as_echo "$as_me:$LINENO: checking if APR supports IPv6" >&5
42854 $as_echo_n "checking if APR supports IPv6... " >&6; }
42855 { $as_echo "$as_me:$LINENO: result: $ipv6_result" >&5
42856 $as_echo "$ipv6_result" >&6; }
42862 for ac_header in langinfo.h
42864 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
42865 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42866 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
42867 $as_echo_n "checking for $ac_header... " >&6; }
42868 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42869 $as_echo_n "(cached) " >&6
42871 ac_res=`eval 'as_val=${'$as_ac_Header'}
42872 $as_echo "$as_val"'`
42873 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42874 $as_echo "$ac_res" >&6; }
42876 # Is the header compilable?
42877 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
42878 $as_echo_n "checking $ac_header usability... " >&6; }
42879 cat >conftest.$ac_ext <<_ACEOF
42882 cat confdefs.h >>conftest.$ac_ext
42883 cat >>conftest.$ac_ext <<_ACEOF
42884 /* end confdefs.h. */
42885 $ac_includes_default
42886 #include <$ac_header>
42888 rm -f conftest.$ac_objext
42889 if { (ac_try="$ac_compile"
42890 case "(($ac_try" in
42891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42892 *) ac_try_echo=$ac_try;;
42894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42895 $as_echo "$ac_try_echo") >&5
42896 (eval "$ac_compile") 2>conftest.er1
42898 grep -v '^ *+' conftest.er1 >conftest.err
42900 cat conftest.err >&5
42901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42902 (exit $ac_status); } && {
42903 test -z "$ac_c_werror_flag" ||
42904 test ! -s conftest.err
42905 } && test -s conftest.$ac_objext; then
42906 ac_header_compiler=yes
42908 $as_echo "$as_me: failed program was:" >&5
42909 sed 's/^/| /' conftest.$ac_ext >&5
42911 ac_header_compiler=no
42914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42915 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42916 $as_echo "$ac_header_compiler" >&6; }
42918 # Is the header present?
42919 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
42920 $as_echo_n "checking $ac_header presence... " >&6; }
42921 cat >conftest.$ac_ext <<_ACEOF
42924 cat confdefs.h >>conftest.$ac_ext
42925 cat >>conftest.$ac_ext <<_ACEOF
42926 /* end confdefs.h. */
42927 #include <$ac_header>
42929 if { (ac_try="$ac_cpp conftest.$ac_ext"
42930 case "(($ac_try" in
42931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42932 *) ac_try_echo=$ac_try;;
42934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42935 $as_echo "$ac_try_echo") >&5
42936 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42938 grep -v '^ *+' conftest.er1 >conftest.err
42940 cat conftest.err >&5
42941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42942 (exit $ac_status); } >/dev/null && {
42943 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42944 test ! -s conftest.err
42946 ac_header_preproc=yes
42948 $as_echo "$as_me: failed program was:" >&5
42949 sed 's/^/| /' conftest.$ac_ext >&5
42951 ac_header_preproc=no
42954 rm -f conftest.err conftest.$ac_ext
42955 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42956 $as_echo "$ac_header_preproc" >&6; }
42958 # So? What about this header?
42959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42961 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
42962 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
42963 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
42964 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
42965 ac_header_preproc=yes
42968 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
42969 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
42970 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
42971 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
42972 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
42973 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
42974 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
42975 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
42976 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
42977 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
42978 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
42979 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
42983 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
42984 $as_echo_n "checking for $ac_header... " >&6; }
42985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42986 $as_echo_n "(cached) " >&6
42988 eval "$as_ac_Header=\$ac_header_preproc"
42990 ac_res=`eval 'as_val=${'$as_ac_Header'}
42991 $as_echo "$as_val"'`
42992 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42993 $as_echo "$ac_res" >&6; }
42996 as_val=`eval 'as_val=${'$as_ac_Header'}
42997 $as_echo "$as_val"'`
42998 if test "x$as_val" = x""yes; then
42999 cat >>confdefs.h <<_ACEOF
43000 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
43008 for ac_func in nl_langinfo
43010 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
43011 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
43012 $as_echo_n "checking for $ac_func... " >&6; }
43013 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43014 $as_echo_n "(cached) " >&6
43016 cat >conftest.$ac_ext <<_ACEOF
43019 cat confdefs.h >>conftest.$ac_ext
43020 cat >>conftest.$ac_ext <<_ACEOF
43021 /* end confdefs.h. */
43022 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43023 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43024 #define $ac_func innocuous_$ac_func
43026 /* System header to define __stub macros and hopefully few prototypes,
43027 which can conflict with char $ac_func (); below.
43028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43029 <limits.h> exists even on freestanding compilers. */
43032 # include <limits.h>
43034 # include <assert.h>
43039 /* Override any GCC internal prototype to avoid an error.
43040 Use char because int might match the return type of a GCC
43041 builtin and then its argument prototype would still apply. */
43046 /* The GNU C library defines this for functions which it implements
43047 to always fail with ENOSYS. Some functions are actually named
43048 something starting with __ and the normal name is an alias. */
43049 #if defined __stub_$ac_func || defined __stub___$ac_func
43056 return $ac_func ();
43061 rm -f conftest.$ac_objext conftest$ac_exeext
43062 if { (ac_try="$ac_link"
43063 case "(($ac_try" in
43064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43065 *) ac_try_echo=$ac_try;;
43067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43068 $as_echo "$ac_try_echo") >&5
43069 (eval "$ac_link") 2>conftest.er1
43071 grep -v '^ *+' conftest.er1 >conftest.err
43073 cat conftest.err >&5
43074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43075 (exit $ac_status); } && {
43076 test -z "$ac_c_werror_flag" ||
43077 test ! -s conftest.err
43078 } && test -s conftest$ac_exeext && {
43079 test "$cross_compiling" = yes ||
43080 $as_test_x conftest$ac_exeext
43082 eval "$as_ac_var=yes"
43084 $as_echo "$as_me: failed program was:" >&5
43085 sed 's/^/| /' conftest.$ac_ext >&5
43087 eval "$as_ac_var=no"
43090 rm -rf conftest.dSYM
43091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43092 conftest$ac_exeext conftest.$ac_ext
43094 ac_res=`eval 'as_val=${'$as_ac_var'}
43095 $as_echo "$as_val"'`
43096 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43097 $as_echo "$ac_res" >&6; }
43098 as_val=`eval 'as_val=${'$as_ac_var'}
43099 $as_echo "$as_val"'`
43100 if test "x$as_val" = x""yes; then
43101 cat >>confdefs.h <<_ACEOF
43102 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
43110 # AC_CHECK_FUNCS is not sufficient since the function may be usable when
43111 # struct stat64 is not exposed (e.g. HP-UX). Note that fstat64 only
43112 # happens to be usable on Linux because -D_GNU_SOURCE is picked up
43113 # by the earlier crypt_r check.
43114 { $as_echo "$as_me:$LINENO: checking for usable fstat64" >&5
43115 $as_echo_n "checking for usable fstat64... " >&6; }
43116 if test "${apr_cv_func_fstat64+set}" = set; then
43117 $as_echo_n "(cached) " >&6
43119 cat >conftest.$ac_ext <<_ACEOF
43122 cat confdefs.h >>conftest.$ac_ext
43123 cat >>conftest.$ac_ext <<_ACEOF
43124 /* end confdefs.h. */
43125 #include <sys/types.h>
43126 #include <sys/stat.h>
43127 #include <unistd.h>
43131 struct stat64 st; fstat64(0, &st);
43136 rm -f conftest.$ac_objext
43137 if { (ac_try="$ac_compile"
43138 case "(($ac_try" in
43139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43140 *) ac_try_echo=$ac_try;;
43142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43143 $as_echo "$ac_try_echo") >&5
43144 (eval "$ac_compile") 2>conftest.er1
43146 grep -v '^ *+' conftest.er1 >conftest.err
43148 cat conftest.err >&5
43149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43150 (exit $ac_status); } && {
43151 test -z "$ac_c_werror_flag" ||
43152 test ! -s conftest.err
43153 } && test -s conftest.$ac_objext; then
43154 apr_cv_func_fstat64=yes
43156 $as_echo "$as_me: failed program was:" >&5
43157 sed 's/^/| /' conftest.$ac_ext >&5
43159 apr_cv_func_fstat64=no
43162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43164 { $as_echo "$as_me:$LINENO: result: $apr_cv_func_fstat64" >&5
43165 $as_echo "$apr_cv_func_fstat64" >&6; }
43166 if test $apr_cv_func_fstat64 = yes; then
43168 cat >>confdefs.h <<\_ACEOF
43169 #define HAVE_FSTAT64 1
43176 echo "${nl}Restore user-defined environment settings..."
43179 if test "x$apr_ste_save_CPPFLAGS" = "x"; then
43180 EXTRA_CPPFLAGS="$CPPFLAGS"
43183 if test "x$apr_ste_save_CPPFLAGS" = "x$CPPFLAGS"; then
43186 EXTRA_CPPFLAGS=`echo $CPPFLAGS | sed -e "s%${apr_ste_save_CPPFLAGS}%%"`
43187 CPPFLAGS="$apr_ste_save_CPPFLAGS"
43190 echo " restoring CPPFLAGS to \"$CPPFLAGS\""
43191 echo " setting EXTRA_CPPFLAGS to \"$EXTRA_CPPFLAGS\""
43195 if test "x$apr_ste_save_CFLAGS" = "x"; then
43196 EXTRA_CFLAGS="$CFLAGS"
43199 if test "x$apr_ste_save_CFLAGS" = "x$CFLAGS"; then
43202 EXTRA_CFLAGS=`echo $CFLAGS | sed -e "s%${apr_ste_save_CFLAGS}%%"`
43203 CFLAGS="$apr_ste_save_CFLAGS"
43206 echo " restoring CFLAGS to \"$CFLAGS\""
43207 echo " setting EXTRA_CFLAGS to \"$EXTRA_CFLAGS\""
43211 if test "x$apr_ste_save_LDFLAGS" = "x"; then
43212 EXTRA_LDFLAGS="$LDFLAGS"
43215 if test "x$apr_ste_save_LDFLAGS" = "x$LDFLAGS"; then
43218 EXTRA_LDFLAGS=`echo $LDFLAGS | sed -e "s%${apr_ste_save_LDFLAGS}%%"`
43219 LDFLAGS="$apr_ste_save_LDFLAGS"
43222 echo " restoring LDFLAGS to \"$LDFLAGS\""
43223 echo " setting EXTRA_LDFLAGS to \"$EXTRA_LDFLAGS\""
43227 if test "x$apr_ste_save_LIBS" = "x"; then
43231 if test "x$apr_ste_save_LIBS" = "x$LIBS"; then
43234 EXTRA_LIBS=`echo $LIBS | sed -e "s%${apr_ste_save_LIBS}%%"`
43235 LIBS="$apr_ste_save_LIBS"
43238 echo " restoring LIBS to \"$LIBS\""
43239 echo " setting EXTRA_LIBS to \"$EXTRA_LIBS\""
43243 if test "x$apr_ste_save_INCLUDES" = "x"; then
43244 EXTRA_INCLUDES="$INCLUDES"
43247 if test "x$apr_ste_save_INCLUDES" = "x$INCLUDES"; then
43250 EXTRA_INCLUDES=`echo $INCLUDES | sed -e "s%${apr_ste_save_INCLUDES}%%"`
43251 INCLUDES="$apr_ste_save_INCLUDES"
43254 echo " restoring INCLUDES to \"$INCLUDES\""
43255 echo " setting EXTRA_INCLUDES to \"$EXTRA_INCLUDES\""
43273 echo "${nl}Construct Makefiles and header files."
43274 MAKEFILE1="Makefile strings/Makefile passwd/Makefile tables/Makefile build/Makefile"
43275 SUBDIRS="strings passwd tables "
43276 for dir in $apr_modules
43278 test -d $dir || $MKDIR $dir
43279 if test -f $srcdir/$dir/$OSDIR/Makefile.in; then
43280 MAKEFILE2="$MAKEFILE2 $dir/$OSDIR/Makefile "
43281 SUBDIRS="$SUBDIRS $dir/$OSDIR "
43283 MAKEFILE2="$MAKEFILE2 $dir/$DEFAULT_OSDIR/Makefile "
43284 SUBDIRS="$SUBDIRS $dir/$DEFAULT_OSDIR "
43288 if test -d $srcdir/test; then
43289 MAKEFILE3="test/Makefile test/internal/Makefile"
43294 # BSD/OS (BSDi) needs to use a different include syntax in the Makefiles
43298 # Check whether they've installed GNU make
43299 if make --version > /dev/null 2>&1; then
43300 INCLUDE_RULES="include $apr_buildout/apr_rules.mk"
43303 INCLUDE_RULES=".include \"$apr_buildout/apr_rules.mk\""
43307 INCLUDE_RULES="include $apr_buildout/apr_rules.mk"
43312 SAVE_FILES="include/apr.h include/arch/unix/apr_private.h"
43314 for i in $SAVE_FILES; do
43315 test -r $i && mv $i $i.save
43318 dir=include/arch/unix
43319 test -d $dir || $MKDIR $dir
43321 ac_config_files="$ac_config_files $MAKEFILE1 $MAKEFILE2 $MAKEFILE3 include/apr.h build/apr_rules.mk build/pkg/pkginfo apr-config"
43323 ac_config_commands="$ac_config_commands default"
43325 cat >confcache <<\_ACEOF
43326 # This file is a shell script that caches the results of configure
43327 # tests run on this system so they can be shared between configure
43328 # scripts and configure runs, see configure's option --config-cache.
43329 # It is not useful on other systems. If it contains results you don't
43330 # want to keep, you may remove or edit it.
43332 # config.status only pays attention to the cache file if you give it
43333 # the --recheck option to rerun configure.
43335 # `ac_cv_env_foo' variables (set or unset) will be overridden when
43336 # loading this file, other *unset* `ac_cv_foo' will be assigned the
43337 # following values.
43341 # The following way of writing the cache mishandles newlines in values,
43342 # but we know of no workaround that is simple, portable, and efficient.
43343 # So, we kill variables containing newlines.
43344 # Ultrix sh set writes to stderr and can't be redirected directly,
43345 # and sets the high bit in the cache file unless we assign to the vars.
43347 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
43348 eval ac_val=\$$ac_var
43352 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
43353 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
43356 _ | IFS | as_nl) ;; #(
43357 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
43358 *) $as_unset $ac_var ;;
43364 case $as_nl`(ac_space=' '; set) 2>&1` in #(
43365 *${as_nl}ac_space=\ *)
43366 # `set' does not quote correctly, so add quotes (double-quote
43367 # substitution turns \\\\ into \\, and sed turns \\ into \).
43370 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
43373 # `set' quotes correctly as required by POSIX, so do not add quotes.
43374 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
43383 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
43385 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
43387 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
43388 if test -w "$cache_file"; then
43389 test "x$cache_file" != "x/dev/null" &&
43390 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
43391 $as_echo "$as_me: updating cache $cache_file" >&6;}
43392 cat confcache >$cache_file
43394 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
43395 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
43400 test "x$prefix" = xNONE && prefix=$ac_default_prefix
43401 # Let make expand exec_prefix.
43402 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
43404 DEFS=-DHAVE_CONFIG_H
43408 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
43409 # 1. Remove the extension, and $U if already installed.
43410 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
43411 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
43412 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
43413 # will be set to the directory where LIBOBJS objects are built.
43414 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
43415 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
43417 LIBOBJS=$ac_libobjs
43419 LTLIBOBJS=$ac_ltlibobjs
43423 : ${CONFIG_STATUS=./config.status}
43425 ac_clean_files_save=$ac_clean_files
43426 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
43427 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
43428 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
43429 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
43431 # Generated by $as_me.
43432 # Run this file to recreate the current configuration.
43433 # Compiler output produced by configure, useful for debugging
43434 # configure, is in config.log if it exists.
43437 ac_cs_recheck=false
43439 SHELL=\${CONFIG_SHELL-$SHELL}
43442 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
43443 ## --------------------- ##
43444 ## M4sh Initialization. ##
43445 ## --------------------- ##
43447 # Be more Bourne compatible
43448 DUALCASE=1; export DUALCASE # for MKS sh
43449 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
43452 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
43453 # is contrary to our usage. Disable this feature.
43454 alias -g '${1+"$@"}'='"$@"'
43455 setopt NO_GLOB_SUBST
43457 case `(set -o) 2>/dev/null` in
43458 *posix*) set -o posix ;;
43467 # Avoid depending upon Character Ranges.
43468 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
43469 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
43470 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
43471 as_cr_digits='0123456789'
43472 as_cr_alnum=$as_cr_Letters$as_cr_digits
43477 # Printing a long string crashes Solaris 7 /usr/bin/printf.
43478 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43479 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43480 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43481 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
43482 as_echo='printf %s\n'
43483 as_echo_n='printf %s'
43485 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
43486 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
43487 as_echo_n='/usr/ucb/echo -n'
43489 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
43490 as_echo_n_body='eval
43494 expr "X$arg" : "X\\(.*\\)$as_nl";
43495 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
43497 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
43499 export as_echo_n_body
43500 as_echo_n='sh -c $as_echo_n_body as_echo'
43502 export as_echo_body
43503 as_echo='sh -c $as_echo_body as_echo'
43506 # The user is always right.
43507 if test "${PATH_SEPARATOR+set}" != set; then
43509 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
43510 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
43515 # Support unset when possible.
43516 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
43524 # We need space, tab and new line, in precisely that order. Quoting is
43525 # there to prevent editors from complaining about space-tab.
43526 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
43527 # splitting by setting IFS to empty value.)
43530 # Find who we are. Look in the path if we contain no directory separator.
43532 *[\\/]* ) as_myself=$0 ;;
43533 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43534 for as_dir in $PATH
43537 test -z "$as_dir" && as_dir=.
43538 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
43544 # We did not find ourselves, most probably we were run as `sh COMMAND'
43545 # in which case we are not to be found in the path.
43546 if test "x$as_myself" = x; then
43549 if test ! -f "$as_myself"; then
43550 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
43551 { (exit 1); exit 1; }
43554 # Work around bugs in pre-3.0 UWIN ksh.
43555 for as_var in ENV MAIL MAILPATH
43556 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
43568 # Required to use basename.
43569 if expr a : '\(a\)' >/dev/null 2>&1 &&
43570 test "X`expr 00001 : '.*\(...\)'`" = X001; then
43576 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
43577 as_basename=basename
43583 # Name of the executable.
43584 as_me=`$as_basename -- "$0" ||
43585 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
43586 X"$0" : 'X\(//\)$' \| \
43587 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
43589 sed '/^.*\/\([^/][^/]*\)\/*$/{
43608 as_lineno_1=$LINENO
43609 as_lineno_2=$LINENO
43610 test "x$as_lineno_1" != "x$as_lineno_2" &&
43611 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
43613 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
43614 # uniformly replaced by the line number. The first 'sed' inserts a
43615 # line-number line after each line using $LINENO; the second 'sed'
43616 # does the real work. The second script uses 'N' to pair each
43617 # line-number line with the line containing $LINENO, and appends
43618 # trailing '-' during substitution so that $LINENO is not a special
43619 # case at line end.
43620 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
43621 # scripts with optimization help from Paolo Bonzini. Blame Lee
43622 # E. McMahon (1931-1989) for sed's syntax. :-)
43634 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
43637 ' >$as_me.lineno &&
43638 chmod +x "$as_me.lineno" ||
43639 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
43640 { (exit 1); exit 1; }; }
43642 # Don't try to exec as it changes $[0], causing all sort of problems
43643 # (the dirname of $[0] is not the place where we might find the
43644 # original and so on. Autoconf is especially sensitive to this).
43645 . "./$as_me.lineno"
43646 # Exit status is that of the last command.
43651 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
43657 ECHO_C= ECHO_N= ECHO_T=
43658 case `echo -n x` in
43660 case `echo 'x\c'` in
43661 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
43667 if expr a : '\(a\)' >/dev/null 2>&1 &&
43668 test "X`expr 00001 : '.*\(...\)'`" = X001; then
43674 rm -f conf$$ conf$$.exe conf$$.file
43675 if test -d conf$$.dir; then
43676 rm -f conf$$.dir/conf$$.file
43679 mkdir conf$$.dir 2>/dev/null
43681 if (echo >conf$$.file) 2>/dev/null; then
43682 if ln -s conf$$.file conf$$ 2>/dev/null; then
43684 # ... but there are two gotchas:
43685 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
43686 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
43687 # In both cases, we have to default to `cp -p'.
43688 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
43690 elif ln conf$$.file conf$$ 2>/dev/null; then
43698 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
43699 rmdir conf$$.dir 2>/dev/null
43701 if mkdir -p . 2>/dev/null; then
43704 test -d ./-p && rmdir ./-p
43708 if test -x / >/dev/null 2>&1; then
43709 as_test_x='test -x'
43711 if ls -dL / >/dev/null 2>&1; then
43718 if test -d "$1"; then
43724 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
43725 ???[sx]*):;;*)false;;esac;fi
43729 as_executable_p=$as_test_x
43731 # Sed expression to map a string onto a valid CPP name.
43732 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
43734 # Sed expression to map a string onto a valid variable name.
43735 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
43740 # Save the log message, to keep $[0] and so on meaningful, and to
43741 # report actual input values of CONFIG_FILES etc. instead of their
43742 # values after options handling.
43744 This file was extended by $as_me, which was
43745 generated by GNU Autoconf 2.63. Invocation command line was
43747 CONFIG_FILES = $CONFIG_FILES
43748 CONFIG_HEADERS = $CONFIG_HEADERS
43749 CONFIG_LINKS = $CONFIG_LINKS
43750 CONFIG_COMMANDS = $CONFIG_COMMANDS
43753 on `(hostname || uname -n) 2>/dev/null | sed 1q`
43758 case $ac_config_files in *"
43759 "*) set x $ac_config_files; shift; ac_config_files=$*;;
43762 case $ac_config_headers in *"
43763 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
43767 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
43768 # Files that config.status was made for.
43769 config_files="$ac_config_files"
43770 config_headers="$ac_config_headers"
43771 config_commands="$ac_config_commands"
43775 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
43777 \`$as_me' instantiates files from templates according to the
43778 current configuration.
43780 Usage: $0 [OPTION]... [FILE]...
43782 -h, --help print this help, then exit
43783 -V, --version print version number and configuration settings, then exit
43784 -q, --quiet, --silent
43785 do not print progress messages
43786 -d, --debug don't remove temporary files
43787 --recheck update $as_me by reconfiguring in the same conditions
43788 --file=FILE[:TEMPLATE]
43789 instantiate the configuration file FILE
43790 --header=FILE[:TEMPLATE]
43791 instantiate the configuration header FILE
43793 Configuration files:
43796 Configuration headers:
43799 Configuration commands:
43802 Report bugs to <bug-autoconf@gnu.org>."
43805 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
43808 configured by $0, generated by GNU Autoconf 2.63,
43809 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
43811 Copyright (C) 2008 Free Software Foundation, Inc.
43812 This config.status script is free software; the Free Software Foundation
43813 gives unlimited permission to copy, distribute and modify it."
43819 test -n "\$AWK" || AWK=awk
43822 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
43823 # The default lists apply if the user does not specify any file.
43829 ac_option=`expr "X$1" : 'X\([^=]*\)='`
43830 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
43841 # Handling of the options.
43842 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
43844 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
43845 $as_echo "$ac_cs_version"; exit ;;
43846 --debug | --debu | --deb | --de | --d | -d )
43848 --file | --fil | --fi | --f )
43851 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
43853 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
43854 ac_need_defaults=false;;
43855 --header | --heade | --head | --hea )
43858 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
43860 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
43861 ac_need_defaults=false;;
43863 # Conflict between --help and --header
43864 { $as_echo "$as_me: error: ambiguous option: $1
43865 Try \`$0 --help' for more information." >&2
43866 { (exit 1); exit 1; }; };;
43867 --help | --hel | -h )
43868 $as_echo "$ac_cs_usage"; exit ;;
43869 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
43870 | -silent | --silent | --silen | --sile | --sil | --si | --s)
43873 # This is an error.
43874 -*) { $as_echo "$as_me: error: unrecognized option: $1
43875 Try \`$0 --help' for more information." >&2
43876 { (exit 1); exit 1; }; } ;;
43878 *) ac_config_targets="$ac_config_targets $1"
43879 ac_need_defaults=false ;;
43885 ac_configure_extra_args=
43887 if $ac_cs_silent; then
43889 ac_configure_extra_args="$ac_configure_extra_args --silent"
43893 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
43894 if \$ac_cs_recheck; then
43895 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
43897 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
43898 CONFIG_SHELL='$SHELL'
43899 export CONFIG_SHELL
43904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
43908 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
43909 ## Running $as_me. ##
43915 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
43918 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
43920 # Handling of arguments.
43921 for ac_config_target in $ac_config_targets
43923 case $ac_config_target in
43924 "include/arch/unix/apr_private.h") CONFIG_HEADERS="$CONFIG_HEADERS include/arch/unix/apr_private.h" ;;
43925 "$MAKEFILE1") CONFIG_FILES="$CONFIG_FILES $MAKEFILE1" ;;
43926 "$MAKEFILE2") CONFIG_FILES="$CONFIG_FILES $MAKEFILE2" ;;
43927 "$MAKEFILE3") CONFIG_FILES="$CONFIG_FILES $MAKEFILE3" ;;
43928 "include/apr.h") CONFIG_FILES="$CONFIG_FILES include/apr.h" ;;
43929 "build/apr_rules.mk") CONFIG_FILES="$CONFIG_FILES build/apr_rules.mk" ;;
43930 "build/pkg/pkginfo") CONFIG_FILES="$CONFIG_FILES build/pkg/pkginfo" ;;
43931 "apr-config") CONFIG_FILES="$CONFIG_FILES apr-config" ;;
43932 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
43934 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
43935 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
43936 { (exit 1); exit 1; }; };;
43941 # If the user did not use the arguments to specify the items to instantiate,
43942 # then the envvar interface is used. Set only those that are not.
43943 # We use the long form for the default assignment because of an extremely
43944 # bizarre bug on SunOS 4.1.3.
43945 if $ac_need_defaults; then
43946 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
43947 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
43948 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
43951 # Have a temporary directory for convenience. Make it in the build tree
43952 # simply because there is no reason against having it here, and in addition,
43953 # creating and moving files from /tmp can sometimes cause problems.
43954 # Hook for its removal unless debugging.
43955 # Note that there is a small window in which the directory will not be cleaned:
43956 # after its creation but before its name has been assigned to `$tmp'.
43960 trap 'exit_status=$?
43961 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
43963 trap '{ (exit 1); exit 1; }' 1 2 13 15
43965 # Create a (secure) tmp directory for tmp files.
43968 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
43969 test -n "$tmp" && test -d "$tmp"
43972 tmp=./conf$$-$RANDOM
43973 (umask 077 && mkdir "$tmp")
43976 $as_echo "$as_me: cannot create a temporary directory in ." >&2
43977 { (exit 1); exit 1; }
43980 # Set up the scripts for CONFIG_FILES section.
43981 # No need to generate them if there are no CONFIG_FILES.
43982 # This happens for instance with `./config.status config.h'.
43983 if test -n "$CONFIG_FILES"; then
43987 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
43988 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
43991 ac_cs_awk_cr=$ac_cr
43994 echo 'BEGIN {' >"$tmp/subs1.awk" &&
43999 echo "cat >conf$$subs.awk <<_ACEOF" &&
44000 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
44002 } >conf$$subs.sh ||
44003 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
44004 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
44005 { (exit 1); exit 1; }; }
44006 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
44008 for ac_last_try in false false false false false :; do
44009 . ./conf$$subs.sh ||
44010 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
44011 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
44012 { (exit 1); exit 1; }; }
44014 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
44015 if test $ac_delim_n = $ac_delim_num; then
44017 elif $ac_last_try; then
44018 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
44019 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
44020 { (exit 1); exit 1; }; }
44022 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
44025 rm -f conf$$subs.sh
44027 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
44028 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
44032 s/^/S["/; s/!.*/"]=/
44042 s/\(.\{148\}\).*/\1/
44044 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
44049 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
44056 s/\(.\{148\}\).*/\1/
44058 s/["\\]/\\&/g; s/^/"/; s/$/"/
44062 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
44067 ' <conf$$subs.awk | sed '
44072 ' >>$CONFIG_STATUS || ac_write_fail=1
44073 rm -f conf$$subs.awk
44074 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
44076 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
44077 for (key in S) S_is_set[key] = 1
44083 nfields = split(line, field, "@")
44085 len = length(field[1])
44086 for (i = 2; i < nfields; i++) {
44088 keylen = length(key)
44089 if (S_is_set[key]) {
44091 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
44092 len += length(value) + length(field[++i])
44103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
44104 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
44105 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
44108 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
44109 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
44110 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
44111 { (exit 1); exit 1; }; }
44114 # VPATH may cause trouble with some makes, so we remove $(srcdir),
44115 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
44116 # trailing colons and then remove the whole line if VPATH becomes empty
44117 # (actually we leave an empty line to preserve line numbers).
44118 if test "x$srcdir" = x.; then
44119 ac_vpsub='/^[ ]*VPATH[ ]*=/{
44120 s/:*\$(srcdir):*/:/
44121 s/:*\${srcdir}:*/:/
44123 s/^\([^=]*=[ ]*\):*/\1/
44129 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
44130 fi # test -n "$CONFIG_FILES"
44132 # Set up the scripts for CONFIG_HEADERS section.
44133 # No need to generate them if there are no CONFIG_HEADERS.
44134 # This happens for instance with `./config.status Makefile'.
44135 if test -n "$CONFIG_HEADERS"; then
44136 cat >"$tmp/defines.awk" <<\_ACAWK ||
44140 # Transform confdefs.h into an awk script `defines.awk', embedded as
44141 # here-document in config.status, that substitutes the proper values into
44142 # config.h.in to produce config.h.
44144 # Create a delimiter string that does not exist in confdefs.h, to ease
44145 # handling of long lines.
44147 for ac_last_try in false false :; do
44148 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
44149 if test -z "$ac_t"; then
44151 elif $ac_last_try; then
44152 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
44153 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
44154 { (exit 1); exit 1; }; }
44156 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
44160 # For the awk script, D is an array of macro values keyed by name,
44161 # likewise P contains macro parameters if any. Preserve backslash
44162 # newline sequences.
44164 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
44166 s/.\{148\}/&'"$ac_delim"'/g
44169 s/^[ ]*#[ ]*define[ ][ ]*/ /
44176 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
44178 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
44182 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
44183 D["\1"]=" \3\\\\\\n"\\/p
44185 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
44190 s/.\{148\}/&'"$ac_delim"'/g
44195 s/["\\]/\\&/g; s/^/"/; s/$/"/p
44198 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
44200 ' <confdefs.h | sed '
44201 s/'"$ac_delim"'/"\\\
44202 "/g' >>$CONFIG_STATUS || ac_write_fail=1
44204 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
44205 for (key in D) D_is_set[key] = 1
44208 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
44210 split(line, arg, " ")
44211 if (arg[1] == "#") {
44215 defundef = substr(arg[1], 2)
44218 split(mac1, mac2, "(") #)
44220 prefix = substr(line, 1, index(line, defundef) - 1)
44221 if (D_is_set[macro]) {
44222 # Preserve the white space surrounding the "#".
44223 print prefix "define", macro P[macro] D[macro]
44226 # Replace #undef with comments. This is necessary, for example,
44227 # in the case of _POSIX_SOURCE, which is predefined and required
44228 # on some systems where configure will not decide to define it.
44229 if (defundef == "undef") {
44230 print "/*", prefix defundef, macro, "*/"
44238 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
44239 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
44240 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
44241 { (exit 1); exit 1; }; }
44242 fi # test -n "$CONFIG_HEADERS"
44245 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
44250 :[FHLC]) ac_mode=$ac_tag; continue;;
44252 case $ac_mode$ac_tag in
44254 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
44255 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
44256 { (exit 1); exit 1; }; };;
44257 :[FH]-) ac_tag=-:-;;
44258 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
44275 -) ac_f="$tmp/stdin";;
44276 *) # Look for the file first in the build tree, then in the source tree
44277 # (if the path is not absolute). The absolute path cannot be DOS-style,
44278 # because $ac_f cannot contain `:'.
44282 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
44284 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
44285 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
44286 { (exit 1); exit 1; }; };;
44288 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
44289 ac_file_inputs="$ac_file_inputs '$ac_f'"
44292 # Let's still pretend it is `configure' which instantiates (i.e., don't
44293 # use $as_me), people would be surprised to read:
44294 # /* config.h. Generated by config.status. */
44295 configure_input='Generated from '`
44296 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
44298 if test x"$ac_file" != x-; then
44299 configure_input="$ac_file. $configure_input"
44300 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
44301 $as_echo "$as_me: creating $ac_file" >&6;}
44303 # Neutralize special characters interpreted by sed in replacement strings.
44304 case $configure_input in #(
44305 *\&* | *\|* | *\\* )
44306 ac_sed_conf_input=`$as_echo "$configure_input" |
44307 sed 's/[\\\\&|]/\\\\&/g'`;; #(
44308 *) ac_sed_conf_input=$configure_input;;
44312 *:-:* | *:-) cat >"$tmp/stdin" \
44313 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
44314 $as_echo "$as_me: error: could not create $ac_file" >&2;}
44315 { (exit 1); exit 1; }; } ;;
44320 ac_dir=`$as_dirname -- "$ac_file" ||
44321 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44322 X"$ac_file" : 'X\(//\)[^/]' \| \
44323 X"$ac_file" : 'X\(//\)$' \| \
44324 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
44325 $as_echo X"$ac_file" |
44326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
44330 /^X\(\/\/\)[^/].*/{
44345 -*) as_dir=./$as_dir;;
44347 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
44351 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
44352 *) as_qdir=$as_dir;;
44354 as_dirs="'$as_qdir' $as_dirs"
44355 as_dir=`$as_dirname -- "$as_dir" ||
44356 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44357 X"$as_dir" : 'X\(//\)[^/]' \| \
44358 X"$as_dir" : 'X\(//\)$' \| \
44359 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
44360 $as_echo X"$as_dir" |
44361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
44365 /^X\(\/\/\)[^/].*/{
44378 test -d "$as_dir" && break
44380 test -z "$as_dirs" || eval "mkdir $as_dirs"
44381 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
44382 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
44383 { (exit 1); exit 1; }; }; }
44387 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
44389 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
44390 # A ".." for each directory in $ac_dir_suffix.
44391 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
44392 case $ac_top_builddir_sub in
44393 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
44394 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
44397 ac_abs_top_builddir=$ac_pwd
44398 ac_abs_builddir=$ac_pwd$ac_dir_suffix
44399 # for backward compatibility:
44400 ac_top_builddir=$ac_top_build_prefix
44403 .) # We are building in place.
44405 ac_top_srcdir=$ac_top_builddir_sub
44406 ac_abs_top_srcdir=$ac_pwd ;;
44407 [\\/]* | ?:[\\/]* ) # Absolute name.
44408 ac_srcdir=$srcdir$ac_dir_suffix;
44409 ac_top_srcdir=$srcdir
44410 ac_abs_top_srcdir=$srcdir ;;
44411 *) # Relative name.
44412 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
44413 ac_top_srcdir=$ac_top_build_prefix$srcdir
44414 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
44416 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
44426 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
44427 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
44431 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
44432 # If the template does not know about datarootdir, expand it.
44433 # FIXME: This hack should be removed a few years after 2.60.
44434 ac_datarootdir_hack=; ac_datarootdir_seen=
44447 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
44448 *datarootdir*) ac_datarootdir_seen=yes;;
44449 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
44450 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
44451 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
44453 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
44454 ac_datarootdir_hack='
44455 s&@datadir@&$datadir&g
44456 s&@docdir@&$docdir&g
44457 s&@infodir@&$infodir&g
44458 s&@localedir@&$localedir&g
44459 s&@mandir@&$mandir&g
44460 s&\\\${datarootdir}&$datarootdir&g' ;;
44464 # Neutralize VPATH when `$srcdir' = `.'.
44465 # Shell code in configure.ac might set extrasub.
44466 # FIXME: do we really want to maintain this feature?
44467 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
44468 ac_sed_extra="$ac_vpsub
44471 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
44473 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44474 s|@configure_input@|$ac_sed_conf_input|;t t
44475 s&@top_builddir@&$ac_top_builddir_sub&;t t
44476 s&@top_build_prefix@&$ac_top_build_prefix&;t t
44477 s&@srcdir@&$ac_srcdir&;t t
44478 s&@abs_srcdir@&$ac_abs_srcdir&;t t
44479 s&@top_srcdir@&$ac_top_srcdir&;t t
44480 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
44481 s&@builddir@&$ac_builddir&;t t
44482 s&@abs_builddir@&$ac_abs_builddir&;t t
44483 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
44484 s&@INSTALL@&$ac_INSTALL&;t t
44485 $ac_datarootdir_hack
44487 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
44488 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
44489 $as_echo "$as_me: error: could not create $ac_file" >&2;}
44490 { (exit 1); exit 1; }; }
44492 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
44493 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
44494 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
44495 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
44496 which seems to be undefined. Please make sure it is defined." >&5
44497 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
44498 which seems to be undefined. Please make sure it is defined." >&2;}
44502 -) cat "$tmp/out" && rm -f "$tmp/out";;
44503 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
44505 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
44506 $as_echo "$as_me: error: could not create $ac_file" >&2;}
44507 { (exit 1); exit 1; }; }
44513 if test x"$ac_file" != x-; then
44515 $as_echo "/* $configure_input */" \
44516 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
44517 } >"$tmp/config.h" \
44518 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
44519 $as_echo "$as_me: error: could not create $ac_file" >&2;}
44520 { (exit 1); exit 1; }; }
44521 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
44522 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
44523 $as_echo "$as_me: $ac_file is unchanged" >&6;}
44526 mv "$tmp/config.h" "$ac_file" \
44527 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
44528 $as_echo "$as_me: error: could not create $ac_file" >&2;}
44529 { (exit 1); exit 1; }; }
44532 $as_echo "/* $configure_input */" \
44533 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
44534 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
44535 $as_echo "$as_me: error: could not create -" >&2;}
44536 { (exit 1); exit 1; }; }
44540 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
44541 $as_echo "$as_me: executing $ac_file commands" >&6;}
44546 case $ac_file$ac_mode in
44548 for i in $SAVE_FILES; do
44549 if cmp -s $i $i.save 2>/dev/null; then
44551 echo "$i is unchanged"
44555 chmod +x apr-config
44562 { (exit 0); exit 0; }
44564 chmod +x $CONFIG_STATUS
44565 ac_clean_files=$ac_clean_files_save
44567 test $ac_write_fail = 0 ||
44568 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
44569 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
44570 { (exit 1); exit 1; }; }
44573 # configure is writing to config.log, and then calls config.status.
44574 # config.status does its own redirection, appending to config.log.
44575 # Unfortunately, on DOS this fails, as config.log is still kept open
44576 # by configure, so config.status won't be able to write to it; its
44577 # output is simply discarded. So we exec the FD to /dev/null,
44578 # effectively closing config.log, so it can be properly (re)opened and
44579 # appended to by config.status. When coming back to configure, we
44580 # need to make the FD available again.
44581 if test "$no_create" != yes; then
44583 ac_config_status_args=
44584 test "$silent" = yes &&
44585 ac_config_status_args="$ac_config_status_args --quiet"
44587 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
44589 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
44590 # would make configure fail if this is the last instruction.
44591 $ac_cs_success || { (exit 1); exit 1; }
44593 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
44594 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
44595 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
44602 if test -n "$USE_VPATH"; then
44603 for makefile in $MAKEFILE1 $MAKEFILE2 $MAKEFILE3; do
44606 -e 's#-I\($(INCDIR[0-9]*)\)#-I\1 -I$(srcdir)/\1#g' \
44607 -e 's#-I\($(OSDIR[0-9]*)\)#-I\1 -I$(srcdir)/\1#g' \
44608 -e 's#-I\($(DEFOSDIR[0-9]*)\)#-I\1 -I$(srcdir)/\1#g' \