2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (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 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 *v*x* | *x*v* ) as_opts=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir=.
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
246 if test "x$CONFIG_SHELL" != x; then :
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
256 *v*x* | *x*v* ) as_opts=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 # Portably unset VAR.
298 { eval $1=; unset $1;}
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir=./$as_dir;;
329 test -d "$as_dir" || eval $as_mkdir_p || {
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
406 as_val=`expr "$@" || test $? -eq 1`
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
418 as_status=$1; test $as_status -eq 0 && as_status=1
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
537 elif ln conf$$.file conf$$ 2>/dev/null; then
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
551 test -d ./-p && rmdir ./-p
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix=/usr/local
580 ac_config_libobj_dir=.
587 # Identity of this package.
595 ac_unique_file="build/apr_common.m4"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
609 # ifdef HAVE_STDLIB_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
632 ac_subst_vars='LTLIBOBJS
655 apr_procattr_user_set_requires_password
656 apr_has_xthread_files
760 tcp_nodelay_inherited
889 program_transform_name
902 enable_option_checking
904 enable_experimental_libtool
915 enable_maintainer_mode
920 enable_nonportable_atomics
925 enable_allocator_uses_mmap
932 ac_precious_vars='build_alias
943 # Initialize some variables set by options.
945 ac_init_version=false
946 ac_unrecognized_opts=
948 # The variables have the same names as the options, with
949 # dashes changed to underlines.
957 program_transform_name=s,x,x,
965 # Installation directory options.
966 # These are left unexpanded so users can "make install exec_prefix=/foo"
967 # and all the variables that are supposed to be based on exec_prefix
968 # by default will actually change.
969 # Use braces instead of parens because sh, perl, etc. also accept them.
970 # (The list follows the same order as the GNU Coding Standards.)
971 bindir='${exec_prefix}/bin'
972 sbindir='${exec_prefix}/sbin'
973 libexecdir='${exec_prefix}/libexec'
974 datarootdir='${prefix}/share'
975 datadir='${datarootdir}'
976 sysconfdir='${prefix}/etc'
977 sharedstatedir='${prefix}/com'
978 localstatedir='${prefix}/var'
979 includedir='${prefix}/include'
980 oldincludedir='/usr/include'
981 docdir='${datarootdir}/doc/${PACKAGE}'
982 infodir='${datarootdir}/info'
987 libdir='${exec_prefix}/lib'
988 localedir='${datarootdir}/locale'
989 mandir='${datarootdir}/man'
995 # If the previous option needs an argument, assign it.
996 if test -n "$ac_prev"; then
997 eval $ac_prev=\$ac_option
1003 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1008 # Accept the important Cygnus configure options, so we can diagnose typos.
1010 case $ac_dashdash$ac_option in
1014 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1016 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1017 bindir=$ac_optarg ;;
1019 -build | --build | --buil | --bui | --bu)
1020 ac_prev=build_alias ;;
1021 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1022 build_alias=$ac_optarg ;;
1024 -cache-file | --cache-file | --cache-fil | --cache-fi \
1025 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1026 ac_prev=cache_file ;;
1027 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1028 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1029 cache_file=$ac_optarg ;;
1031 --config-cache | -C)
1032 cache_file=config.cache ;;
1034 -datadir | --datadir | --datadi | --datad)
1036 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1037 datadir=$ac_optarg ;;
1039 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1040 | --dataroo | --dataro | --datar)
1041 ac_prev=datarootdir ;;
1042 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1043 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1044 datarootdir=$ac_optarg ;;
1046 -disable-* | --disable-*)
1047 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1048 # Reject names that are not valid shell variable names.
1049 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1050 as_fn_error $? "invalid feature name: $ac_useropt"
1051 ac_useropt_orig=$ac_useropt
1052 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1053 case $ac_user_opts in
1055 "enable_$ac_useropt"
1057 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1058 ac_unrecognized_sep=', ';;
1060 eval enable_$ac_useropt=no ;;
1062 -docdir | --docdir | --docdi | --doc | --do)
1064 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1065 docdir=$ac_optarg ;;
1067 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1069 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1070 dvidir=$ac_optarg ;;
1072 -enable-* | --enable-*)
1073 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1074 # Reject names that are not valid shell variable names.
1075 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1076 as_fn_error $? "invalid feature name: $ac_useropt"
1077 ac_useropt_orig=$ac_useropt
1078 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1079 case $ac_user_opts in
1081 "enable_$ac_useropt"
1083 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1084 ac_unrecognized_sep=', ';;
1086 eval enable_$ac_useropt=\$ac_optarg ;;
1088 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1089 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1090 | --exec | --exe | --ex)
1091 ac_prev=exec_prefix ;;
1092 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1093 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1094 | --exec=* | --exe=* | --ex=*)
1095 exec_prefix=$ac_optarg ;;
1097 -gas | --gas | --ga | --g)
1098 # Obsolete; use --with-gas.
1101 -help | --help | --hel | --he | -h)
1102 ac_init_help=long ;;
1103 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1104 ac_init_help=recursive ;;
1105 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1106 ac_init_help=short ;;
1108 -host | --host | --hos | --ho)
1109 ac_prev=host_alias ;;
1110 -host=* | --host=* | --hos=* | --ho=*)
1111 host_alias=$ac_optarg ;;
1113 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1115 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1117 htmldir=$ac_optarg ;;
1119 -includedir | --includedir | --includedi | --included | --include \
1120 | --includ | --inclu | --incl | --inc)
1121 ac_prev=includedir ;;
1122 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1123 | --includ=* | --inclu=* | --incl=* | --inc=*)
1124 includedir=$ac_optarg ;;
1126 -infodir | --infodir | --infodi | --infod | --info | --inf)
1128 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1129 infodir=$ac_optarg ;;
1131 -libdir | --libdir | --libdi | --libd)
1133 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1134 libdir=$ac_optarg ;;
1136 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1137 | --libexe | --libex | --libe)
1138 ac_prev=libexecdir ;;
1139 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1140 | --libexe=* | --libex=* | --libe=*)
1141 libexecdir=$ac_optarg ;;
1143 -localedir | --localedir | --localedi | --localed | --locale)
1144 ac_prev=localedir ;;
1145 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1146 localedir=$ac_optarg ;;
1148 -localstatedir | --localstatedir | --localstatedi | --localstated \
1149 | --localstate | --localstat | --localsta | --localst | --locals)
1150 ac_prev=localstatedir ;;
1151 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1152 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1153 localstatedir=$ac_optarg ;;
1155 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1157 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1158 mandir=$ac_optarg ;;
1160 -nfp | --nfp | --nf)
1161 # Obsolete; use --without-fp.
1164 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1165 | --no-cr | --no-c | -n)
1168 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1169 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1172 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1173 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1174 | --oldin | --oldi | --old | --ol | --o)
1175 ac_prev=oldincludedir ;;
1176 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1177 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1178 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1179 oldincludedir=$ac_optarg ;;
1181 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1183 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1184 prefix=$ac_optarg ;;
1186 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1187 | --program-pre | --program-pr | --program-p)
1188 ac_prev=program_prefix ;;
1189 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1190 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1191 program_prefix=$ac_optarg ;;
1193 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1194 | --program-suf | --program-su | --program-s)
1195 ac_prev=program_suffix ;;
1196 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1197 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1198 program_suffix=$ac_optarg ;;
1200 -program-transform-name | --program-transform-name \
1201 | --program-transform-nam | --program-transform-na \
1202 | --program-transform-n | --program-transform- \
1203 | --program-transform | --program-transfor \
1204 | --program-transfo | --program-transf \
1205 | --program-trans | --program-tran \
1206 | --progr-tra | --program-tr | --program-t)
1207 ac_prev=program_transform_name ;;
1208 -program-transform-name=* | --program-transform-name=* \
1209 | --program-transform-nam=* | --program-transform-na=* \
1210 | --program-transform-n=* | --program-transform-=* \
1211 | --program-transform=* | --program-transfor=* \
1212 | --program-transfo=* | --program-transf=* \
1213 | --program-trans=* | --program-tran=* \
1214 | --progr-tra=* | --program-tr=* | --program-t=*)
1215 program_transform_name=$ac_optarg ;;
1217 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1219 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1220 pdfdir=$ac_optarg ;;
1222 -psdir | --psdir | --psdi | --psd | --ps)
1224 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1227 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1228 | -silent | --silent | --silen | --sile | --sil)
1231 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1233 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1235 sbindir=$ac_optarg ;;
1237 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1238 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1239 | --sharedst | --shareds | --shared | --share | --shar \
1241 ac_prev=sharedstatedir ;;
1242 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1243 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1244 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1246 sharedstatedir=$ac_optarg ;;
1248 -site | --site | --sit)
1250 -site=* | --site=* | --sit=*)
1253 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1255 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1256 srcdir=$ac_optarg ;;
1258 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1259 | --syscon | --sysco | --sysc | --sys | --sy)
1260 ac_prev=sysconfdir ;;
1261 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1262 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1263 sysconfdir=$ac_optarg ;;
1265 -target | --target | --targe | --targ | --tar | --ta | --t)
1266 ac_prev=target_alias ;;
1267 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1268 target_alias=$ac_optarg ;;
1270 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1273 -version | --version | --versio | --versi | --vers | -V)
1274 ac_init_version=: ;;
1277 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1278 # Reject names that are not valid shell variable names.
1279 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1280 as_fn_error $? "invalid package name: $ac_useropt"
1281 ac_useropt_orig=$ac_useropt
1282 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1283 case $ac_user_opts in
1287 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1288 ac_unrecognized_sep=', ';;
1290 eval with_$ac_useropt=\$ac_optarg ;;
1292 -without-* | --without-*)
1293 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1294 # Reject names that are not valid shell variable names.
1295 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1296 as_fn_error $? "invalid package name: $ac_useropt"
1297 ac_useropt_orig=$ac_useropt
1298 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1299 case $ac_user_opts in
1303 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1304 ac_unrecognized_sep=', ';;
1306 eval with_$ac_useropt=no ;;
1309 # Obsolete; use --with-x.
1312 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1313 | --x-incl | --x-inc | --x-in | --x-i)
1314 ac_prev=x_includes ;;
1315 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1316 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1317 x_includes=$ac_optarg ;;
1319 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1320 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1321 ac_prev=x_libraries ;;
1322 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1323 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1324 x_libraries=$ac_optarg ;;
1326 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1327 Try \`$0 --help' for more information"
1331 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1332 # Reject names that are not valid shell variable names.
1333 case $ac_envvar in #(
1334 '' | [0-9]* | *[!_$as_cr_alnum]* )
1335 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1337 eval $ac_envvar=\$ac_optarg
1338 export $ac_envvar ;;
1341 # FIXME: should be removed in autoconf 3.0.
1342 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1343 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1344 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1345 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1351 if test -n "$ac_prev"; then
1352 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1353 as_fn_error $? "missing argument to $ac_option"
1356 if test -n "$ac_unrecognized_opts"; then
1357 case $enable_option_checking in
1359 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1360 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1364 # Check all directory arguments for consistency.
1365 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1366 datadir sysconfdir sharedstatedir localstatedir includedir \
1367 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1368 libdir localedir mandir
1370 eval ac_val=\$$ac_var
1371 # Remove trailing slashes.
1374 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1375 eval $ac_var=\$ac_val;;
1377 # Be sure to have absolute directory names.
1379 [\\/$]* | ?:[\\/]* ) continue;;
1380 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1382 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1385 # There might be people who depend on the old broken behavior: `$host'
1386 # used to hold the argument of --host etc.
1387 # FIXME: To remove some day.
1390 target=$target_alias
1392 # FIXME: To remove some day.
1393 if test "x$host_alias" != x; then
1394 if test "x$build_alias" = x; then
1395 cross_compiling=maybe
1396 elif test "x$build_alias" != "x$host_alias"; then
1402 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1404 test "$silent" = yes && exec 6>/dev/null
1407 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1408 ac_ls_di=`ls -di .` &&
1409 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1410 as_fn_error $? "working directory cannot be determined"
1411 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1412 as_fn_error $? "pwd does not report name of working directory"
1415 # Find the source files, if location was not specified.
1416 if test -z "$srcdir"; then
1417 ac_srcdir_defaulted=yes
1418 # Try the directory containing this script, then the parent directory.
1419 ac_confdir=`$as_dirname -- "$as_myself" ||
1420 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1421 X"$as_myself" : 'X\(//\)[^/]' \| \
1422 X"$as_myself" : 'X\(//\)$' \| \
1423 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1424 $as_echo X"$as_myself" |
1425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1443 if test ! -r "$srcdir/$ac_unique_file"; then
1447 ac_srcdir_defaulted=no
1449 if test ! -r "$srcdir/$ac_unique_file"; then
1450 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1451 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1453 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1455 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1457 # When building in place, set srcdir=.
1458 if test "$ac_abs_confdir" = "$ac_pwd"; then
1461 # Remove unnecessary trailing slashes from srcdir.
1462 # Double slashes in file names in object file debugging info
1463 # mess up M-x gdb in Emacs.
1465 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1467 for ac_var in $ac_precious_vars; do
1468 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1469 eval ac_env_${ac_var}_value=\$${ac_var}
1470 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1471 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1475 # Report the --help message.
1477 if test "$ac_init_help" = "long"; then
1478 # Omit some internal or obsolete options to make the list less imposing.
1479 # This message is too long to be a string in the A/UX 3.1 sh.
1481 \`configure' configures this package to adapt to many kinds of systems.
1483 Usage: $0 [OPTION]... [VAR=VALUE]...
1485 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1486 VAR=VALUE. See below for descriptions of some of the useful variables.
1488 Defaults for the options are specified in brackets.
1491 -h, --help display this help and exit
1492 --help=short display options specific to this package
1493 --help=recursive display the short help of all the included packages
1494 -V, --version display version information and exit
1495 -q, --quiet, --silent do not print \`checking ...' messages
1496 --cache-file=FILE cache test results in FILE [disabled]
1497 -C, --config-cache alias for \`--cache-file=config.cache'
1498 -n, --no-create do not create output files
1499 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1501 Installation directories:
1502 --prefix=PREFIX install architecture-independent files in PREFIX
1503 [$ac_default_prefix]
1504 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1507 By default, \`make install' will install all the files in
1508 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1509 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1510 for instance \`--prefix=\$HOME'.
1512 For better control, use the options below.
1514 Fine tuning of the installation directories:
1515 --bindir=DIR user executables [EPREFIX/bin]
1516 --sbindir=DIR system admin executables [EPREFIX/sbin]
1517 --libexecdir=DIR program executables [EPREFIX/libexec]
1518 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1519 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1520 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1521 --libdir=DIR object code libraries [EPREFIX/lib]
1522 --includedir=DIR C header files [PREFIX/include]
1523 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1524 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1525 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1526 --infodir=DIR info documentation [DATAROOTDIR/info]
1527 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1528 --mandir=DIR man documentation [DATAROOTDIR/man]
1529 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1530 --htmldir=DIR html documentation [DOCDIR]
1531 --dvidir=DIR dvi documentation [DOCDIR]
1532 --pdfdir=DIR pdf documentation [DOCDIR]
1533 --psdir=DIR ps documentation [DOCDIR]
1539 --build=BUILD configure for building on BUILD [guessed]
1540 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1541 --target=TARGET configure for building compilers for TARGET [HOST]
1545 if test -n "$ac_init_help"; then
1550 --disable-option-checking ignore unrecognized --enable/--with options
1551 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1552 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1553 --enable-layout=LAYOUT
1554 --enable-experimental-libtool Use experimental custom libtool
1555 --enable-shared[=PKGS] build shared libraries [default=yes]
1556 --enable-static[=PKGS] build static libraries [default=yes]
1557 --enable-fast-install[=PKGS]
1558 optimize for fast installation [default=yes]
1559 --disable-libtool-lock avoid locking (might break parallel builds)
1560 --enable-debug Turn on debugging and compile time warnings
1561 --enable-maintainer-mode Turn on debugging and compile time warnings
1562 --enable-profile Turn on profiling for the build (GCC)
1563 --enable-pool-debug[=yes|no|verbose|verbose-alloc|lifetime|owner|all] Turn on pools debugging
1564 --enable-malloc-debug Switch on malloc_debug for BeOS
1565 --disable-lfs Disable large file support on 32-bit platforms
1566 --enable-nonportable-atomics Use optimized atomic code which may produce nonportable binaries
1567 --enable-threads Enable threading support in APR.
1568 --enable-posix-shm Use POSIX shared memory (shm_open) if available
1569 --enable-allocator-uses-mmap Use mmap in apr_allocator instead of malloc
1570 --disable-dso Disable DSO support
1571 --enable-other-child Enable reliable child processes
1572 --disable-ipv6 Disable IPv6 support in APR.
1575 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1576 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1577 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1579 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1580 --with-sysroot=DIR Search for dependent libraries within DIR
1581 (or the compiler's sysroot if not specified).
1582 --with-installbuilddir=DIR location to store APR build files (defaults to '${datadir}/build')
1583 --without-libtool avoid using libtool to link the library
1584 --with-efence[=DIR] path to Electric Fence installation
1585 --with-sendfile Override decision to use sendfile
1586 --with-egd[=DIR] use EGD-compatible socket
1587 --with-devrandom[=DEV] use /dev/random or compatible [searches by default]
1589 Some influential environment variables:
1590 CC C compiler command
1591 CFLAGS C compiler flags
1592 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1593 nonstandard directory <lib dir>
1594 LIBS libraries to pass to the linker, e.g. -l<library>
1595 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1596 you have headers in a nonstandard directory <include dir>
1599 Use these variables to override the choices made by `configure' or to help
1600 it to find libraries and programs with nonstandard names/locations.
1602 Report bugs to the package provider.
1607 if test "$ac_init_help" = "recursive"; then
1608 # If there are subdirs, report their specific --help.
1609 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1610 test -d "$ac_dir" ||
1611 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1616 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1618 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1619 # A ".." for each directory in $ac_dir_suffix.
1620 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1621 case $ac_top_builddir_sub in
1622 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1623 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1626 ac_abs_top_builddir=$ac_pwd
1627 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1628 # for backward compatibility:
1629 ac_top_builddir=$ac_top_build_prefix
1632 .) # We are building in place.
1634 ac_top_srcdir=$ac_top_builddir_sub
1635 ac_abs_top_srcdir=$ac_pwd ;;
1636 [\\/]* | ?:[\\/]* ) # Absolute name.
1637 ac_srcdir=$srcdir$ac_dir_suffix;
1638 ac_top_srcdir=$srcdir
1639 ac_abs_top_srcdir=$srcdir ;;
1641 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1642 ac_top_srcdir=$ac_top_build_prefix$srcdir
1643 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1645 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1647 cd "$ac_dir" || { ac_status=$?; continue; }
1648 # Check for guested configure.
1649 if test -f "$ac_srcdir/configure.gnu"; then
1651 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1652 elif test -f "$ac_srcdir/configure"; then
1654 $SHELL "$ac_srcdir/configure" --help=recursive
1656 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1658 cd "$ac_pwd" || { ac_status=$?; break; }
1662 test -n "$ac_init_help" && exit $ac_status
1663 if $ac_init_version; then
1666 generated by GNU Autoconf 2.69
1668 Copyright (C) 2012 Free Software Foundation, Inc.
1669 This configure script is free software; the Free Software Foundation
1670 gives unlimited permission to copy, distribute and modify it.
1675 ## ------------------------ ##
1676 ## Autoconf initialization. ##
1677 ## ------------------------ ##
1679 # ac_fn_c_try_compile LINENO
1680 # --------------------------
1681 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1682 ac_fn_c_try_compile ()
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 rm -f conftest.$ac_objext
1686 if { { ac_try="$ac_compile"
1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689 *) ac_try_echo=$ac_try;;
1691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692 $as_echo "$ac_try_echo"; } >&5
1693 (eval "$ac_compile") 2>conftest.err
1695 if test -s conftest.err; then
1696 grep -v '^ *+' conftest.err >conftest.er1
1697 cat conftest.er1 >&5
1698 mv -f conftest.er1 conftest.err
1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701 test $ac_status = 0; } && {
1702 test -z "$ac_c_werror_flag" ||
1703 test ! -s conftest.err
1704 } && test -s conftest.$ac_objext; then :
1707 $as_echo "$as_me: failed program was:" >&5
1708 sed 's/^/| /' conftest.$ac_ext >&5
1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713 as_fn_set_status $ac_retval
1715 } # ac_fn_c_try_compile
1717 # ac_fn_c_try_cpp LINENO
1718 # ----------------------
1719 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 if { { ac_try="$ac_cpp conftest.$ac_ext"
1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726 *) ac_try_echo=$ac_try;;
1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 $as_echo "$ac_try_echo"; } >&5
1730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1732 if test -s conftest.err; then
1733 grep -v '^ *+' conftest.err >conftest.er1
1734 cat conftest.er1 >&5
1735 mv -f conftest.er1 conftest.err
1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738 test $ac_status = 0; } > conftest.i && {
1739 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1740 test ! -s conftest.err
1744 $as_echo "$as_me: failed program was:" >&5
1745 sed 's/^/| /' conftest.$ac_ext >&5
1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750 as_fn_set_status $ac_retval
1754 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1755 # -------------------------------------------------------
1756 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1757 # the include files in INCLUDES and setting the cache variable VAR
1759 ac_fn_c_check_header_mongrel ()
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 if eval \${$3+:} false; then :
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1764 $as_echo_n "checking for $2... " >&6; }
1765 if eval \${$3+:} false; then :
1766 $as_echo_n "(cached) " >&6
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1770 $as_echo "$ac_res" >&6; }
1772 # Is the header compilable?
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1774 $as_echo_n "checking $2 usability... " >&6; }
1775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1776 /* end confdefs.h. */
1780 if ac_fn_c_try_compile "$LINENO"; then :
1781 ac_header_compiler=yes
1783 ac_header_compiler=no
1785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1787 $as_echo "$ac_header_compiler" >&6; }
1789 # Is the header present?
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1791 $as_echo_n "checking $2 presence... " >&6; }
1792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1793 /* end confdefs.h. */
1796 if ac_fn_c_try_cpp "$LINENO"; then :
1797 ac_header_preproc=yes
1799 ac_header_preproc=no
1801 rm -f conftest.err conftest.i conftest.$ac_ext
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1803 $as_echo "$ac_header_preproc" >&6; }
1805 # So? What about this header?
1806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1809 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1811 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1815 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1817 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1819 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1821 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1823 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1827 $as_echo_n "checking for $2... " >&6; }
1828 if eval \${$3+:} false; then :
1829 $as_echo_n "(cached) " >&6
1831 eval "$3=\$ac_header_compiler"
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1835 $as_echo "$ac_res" >&6; }
1837 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1839 } # ac_fn_c_check_header_mongrel
1841 # ac_fn_c_try_run LINENO
1842 # ----------------------
1843 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1844 # that executables *can* be run.
1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848 if { { ac_try="$ac_link"
1850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851 *) ac_try_echo=$ac_try;;
1853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854 $as_echo "$ac_try_echo"; } >&5
1855 (eval "$ac_link") 2>&5
1857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1859 { { case "(($ac_try" in
1860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1861 *) ac_try_echo=$ac_try;;
1863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1864 $as_echo "$ac_try_echo"; } >&5
1865 (eval "$ac_try") 2>&5
1867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868 test $ac_status = 0; }; }; then :
1871 $as_echo "$as_me: program exited with status $ac_status" >&5
1872 $as_echo "$as_me: failed program was:" >&5
1873 sed 's/^/| /' conftest.$ac_ext >&5
1875 ac_retval=$ac_status
1877 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1878 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879 as_fn_set_status $ac_retval
1883 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1884 # -------------------------------------------------------
1885 # Tests whether HEADER exists and can be compiled using the include files in
1886 # INCLUDES, setting the cache variable VAR accordingly.
1887 ac_fn_c_check_header_compile ()
1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1891 $as_echo_n "checking for $2... " >&6; }
1892 if eval \${$3+:} false; then :
1893 $as_echo_n "(cached) " >&6
1895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1896 /* end confdefs.h. */
1900 if ac_fn_c_try_compile "$LINENO"; then :
1905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1909 $as_echo "$ac_res" >&6; }
1910 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1912 } # ac_fn_c_check_header_compile
1914 # ac_fn_c_try_link LINENO
1915 # -----------------------
1916 # Try to link conftest.$ac_ext, and return whether this succeeded.
1919 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920 rm -f conftest.$ac_objext conftest$ac_exeext
1921 if { { ac_try="$ac_link"
1923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1924 *) ac_try_echo=$ac_try;;
1926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1927 $as_echo "$ac_try_echo"; } >&5
1928 (eval "$ac_link") 2>conftest.err
1930 if test -s conftest.err; then
1931 grep -v '^ *+' conftest.err >conftest.er1
1932 cat conftest.er1 >&5
1933 mv -f conftest.er1 conftest.err
1935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1936 test $ac_status = 0; } && {
1937 test -z "$ac_c_werror_flag" ||
1938 test ! -s conftest.err
1939 } && test -s conftest$ac_exeext && {
1940 test "$cross_compiling" = yes ||
1941 test -x conftest$ac_exeext
1945 $as_echo "$as_me: failed program was:" >&5
1946 sed 's/^/| /' conftest.$ac_ext >&5
1950 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1951 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1952 # interfere with the next link command; also delete a directory that is
1953 # left behind by Apple's compiler. We do this before executing the actions.
1954 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1955 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1956 as_fn_set_status $ac_retval
1958 } # ac_fn_c_try_link
1960 # ac_fn_c_check_func LINENO FUNC VAR
1961 # ----------------------------------
1962 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1963 ac_fn_c_check_func ()
1965 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1967 $as_echo_n "checking for $2... " >&6; }
1968 if eval \${$3+:} false; then :
1969 $as_echo_n "(cached) " >&6
1971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1972 /* end confdefs.h. */
1973 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1975 #define $2 innocuous_$2
1977 /* System header to define __stub macros and hopefully few prototypes,
1978 which can conflict with char $2 (); below.
1979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1980 <limits.h> exists even on freestanding compilers. */
1983 # include <limits.h>
1985 # include <assert.h>
1990 /* Override any GCC internal prototype to avoid an error.
1991 Use char because int might match the return type of a GCC
1992 builtin and then its argument prototype would still apply. */
1997 /* The GNU C library defines this for functions which it implements
1998 to always fail with ENOSYS. Some functions are actually named
1999 something starting with __ and the normal name is an alias. */
2000 #if defined __stub_$2 || defined __stub___$2
2012 if ac_fn_c_try_link "$LINENO"; then :
2017 rm -f core conftest.err conftest.$ac_objext \
2018 conftest$ac_exeext conftest.$ac_ext
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2022 $as_echo "$ac_res" >&6; }
2023 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2025 } # ac_fn_c_check_func
2027 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2028 # -------------------------------------------
2029 # Tests whether TYPE exists after having included INCLUDES, setting cache
2030 # variable VAR accordingly.
2031 ac_fn_c_check_type ()
2033 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2035 $as_echo_n "checking for $2... " >&6; }
2036 if eval \${$3+:} false; then :
2037 $as_echo_n "(cached) " >&6
2040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041 /* end confdefs.h. */
2052 if ac_fn_c_try_compile "$LINENO"; then :
2053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h. */
2065 if ac_fn_c_try_compile "$LINENO"; then :
2070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2076 $as_echo "$ac_res" >&6; }
2077 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2079 } # ac_fn_c_check_type
2081 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2082 # --------------------------------------------
2083 # Tries to find the compile-time value of EXPR in a program that includes
2084 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2086 ac_fn_c_compute_int ()
2088 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2089 if test "$cross_compiling" = yes; then
2090 # Depending upon the size, compute the lo and hi bounds.
2091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092 /* end confdefs.h. */
2097 static int test_array [1 - 2 * !(($2) >= 0)];
2099 return test_array [0];
2105 if ac_fn_c_try_compile "$LINENO"; then :
2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h. */
2114 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2116 return test_array [0];
2122 if ac_fn_c_try_compile "$LINENO"; then :
2123 ac_hi=$ac_mid; break
2125 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2126 if test $ac_lo -le $ac_mid; then
2130 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136 /* end confdefs.h. */
2141 static int test_array [1 - 2 * !(($2) < 0)];
2143 return test_array [0];
2149 if ac_fn_c_try_compile "$LINENO"; then :
2152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2153 /* end confdefs.h. */
2158 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2160 return test_array [0];
2166 if ac_fn_c_try_compile "$LINENO"; then :
2167 ac_lo=$ac_mid; break
2169 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2170 if test $ac_mid -le $ac_hi; then
2174 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2184 # Binary search between lo and hi bounds.
2185 while test "x$ac_lo" != "x$ac_hi"; do
2186 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2188 /* end confdefs.h. */
2193 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2195 return test_array [0];
2201 if ac_fn_c_try_compile "$LINENO"; then :
2204 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2209 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2214 /* end confdefs.h. */
2216 static long int longval () { return $2; }
2217 static unsigned long int ulongval () { return $2; }
2224 FILE *f = fopen ("conftest.val", "w");
2229 long int i = longval ();
2232 fprintf (f, "%ld", i);
2236 unsigned long int i = ulongval ();
2239 fprintf (f, "%lu", i);
2241 /* Do not output a trailing newline, as this causes \r\n confusion
2242 on some platforms. */
2243 return ferror (f) || fclose (f) != 0;
2249 if ac_fn_c_try_run "$LINENO"; then :
2250 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2254 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2255 conftest.$ac_objext conftest.beam conftest.$ac_ext
2259 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2260 as_fn_set_status $ac_retval
2262 } # ac_fn_c_compute_int
2264 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2265 # ---------------------------------------------
2266 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2268 ac_fn_c_check_decl ()
2270 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2271 as_decl_name=`echo $2|sed 's/ *(.*//'`
2272 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2274 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2275 if eval \${$3+:} false; then :
2276 $as_echo_n "(cached) " >&6
2278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2279 /* end confdefs.h. */
2284 #ifndef $as_decl_name
2286 (void) $as_decl_use;
2288 (void) $as_decl_name;
2296 if ac_fn_c_try_compile "$LINENO"; then :
2301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2305 $as_echo "$ac_res" >&6; }
2306 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2308 } # ac_fn_c_check_decl
2310 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2311 # ----------------------------------------------------
2312 # Tries to find if the field MEMBER exists in type AGGR, after including
2313 # INCLUDES, setting cache variable VAR accordingly.
2314 ac_fn_c_check_member ()
2316 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2318 $as_echo_n "checking for $2.$3... " >&6; }
2319 if eval \${$4+:} false; then :
2320 $as_echo_n "(cached) " >&6
2322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2323 /* end confdefs.h. */
2335 if ac_fn_c_try_compile "$LINENO"; then :
2338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2339 /* end confdefs.h. */
2345 if (sizeof ac_aggr.$3)
2351 if ac_fn_c_try_compile "$LINENO"; then :
2356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2362 $as_echo "$ac_res" >&6; }
2363 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2365 } # ac_fn_c_check_member
2366 cat >config.log <<_ACEOF
2367 This file contains any messages produced by compilers while
2368 running configure, to aid debugging if configure makes a mistake.
2370 It was created by $as_me, which was
2371 generated by GNU Autoconf 2.69. Invocation command line was
2383 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2384 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2385 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2386 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2387 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2389 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2390 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2392 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2393 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2394 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2395 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2396 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2397 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2398 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2406 test -z "$as_dir" && as_dir=.
2407 $as_echo "PATH: $as_dir"
2423 # Keep a trace of the command line.
2424 # Strip out --no-create and --no-recursion so they do not pile up.
2425 # Strip out --silent because we don't want to record it for future runs.
2426 # Also quote any args containing shell meta-characters.
2427 # Make two passes to allow for proper duplicate-argument suppression.
2431 ac_must_keep_next=false
2437 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2438 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2439 | -silent | --silent | --silen | --sile | --sil)
2442 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2445 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2447 as_fn_append ac_configure_args1 " '$ac_arg'"
2448 if test $ac_must_keep_next = true; then
2449 ac_must_keep_next=false # Got value, back to normal.
2452 *=* | --config-cache | -C | -disable-* | --disable-* \
2453 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2454 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2455 | -with-* | --with-* | -without-* | --without-* | --x)
2456 case "$ac_configure_args0 " in
2457 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2460 -* ) ac_must_keep_next=true ;;
2463 as_fn_append ac_configure_args " '$ac_arg'"
2468 { ac_configure_args0=; unset ac_configure_args0;}
2469 { ac_configure_args1=; unset ac_configure_args1;}
2471 # When interrupted or exit'd, cleanup temporary files, and complete
2472 # config.log. We remove comments because anyway the quotes in there
2473 # would cause problems or look ugly.
2474 # WARNING: Use '\'' to represent an apostrophe within the trap.
2475 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2476 trap 'exit_status=$?
2477 # Save into config.log some information that might help in debugging.
2481 $as_echo "## ---------------- ##
2482 ## Cache variables. ##
2483 ## ---------------- ##"
2485 # The following way of writing the cache mishandles newlines in values,
2487 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2488 eval ac_val=\$$ac_var
2492 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2493 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2496 _ | IFS | as_nl) ;; #(
2497 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2498 *) { eval $ac_var=; unset $ac_var;} ;;
2503 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2504 *${as_nl}ac_space=\ *)
2506 "s/'\''/'\''\\\\'\'''\''/g;
2507 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2510 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2517 $as_echo "## ----------------- ##
2518 ## Output variables. ##
2519 ## ----------------- ##"
2521 for ac_var in $ac_subst_vars
2523 eval ac_val=\$$ac_var
2525 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2527 $as_echo "$ac_var='\''$ac_val'\''"
2531 if test -n "$ac_subst_files"; then
2532 $as_echo "## ------------------- ##
2533 ## File substitutions. ##
2534 ## ------------------- ##"
2536 for ac_var in $ac_subst_files
2538 eval ac_val=\$$ac_var
2540 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2542 $as_echo "$ac_var='\''$ac_val'\''"
2547 if test -s confdefs.h; then
2548 $as_echo "## ----------- ##
2555 test "$ac_signal" != 0 &&
2556 $as_echo "$as_me: caught signal $ac_signal"
2557 $as_echo "$as_me: exit $exit_status"
2559 rm -f core *.core core.conftest.* &&
2560 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2563 for ac_signal in 1 2 13 15; do
2564 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2568 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2569 rm -f -r conftest* confdefs.h
2571 $as_echo "/* confdefs.h */" > confdefs.h
2573 # Predefined preprocessor variables.
2575 cat >>confdefs.h <<_ACEOF
2576 #define PACKAGE_NAME "$PACKAGE_NAME"
2579 cat >>confdefs.h <<_ACEOF
2580 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2583 cat >>confdefs.h <<_ACEOF
2584 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2587 cat >>confdefs.h <<_ACEOF
2588 #define PACKAGE_STRING "$PACKAGE_STRING"
2591 cat >>confdefs.h <<_ACEOF
2592 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2595 cat >>confdefs.h <<_ACEOF
2596 #define PACKAGE_URL "$PACKAGE_URL"
2600 # Let the site file select an alternate cache file if it wants to.
2601 # Prefer an explicitly selected file to automatically selected ones.
2604 if test -n "$CONFIG_SITE"; then
2605 # We do not want a PATH search for config.site.
2606 case $CONFIG_SITE in #((
2607 -*) ac_site_file1=./$CONFIG_SITE;;
2608 */*) ac_site_file1=$CONFIG_SITE;;
2609 *) ac_site_file1=./$CONFIG_SITE;;
2611 elif test "x$prefix" != xNONE; then
2612 ac_site_file1=$prefix/share/config.site
2613 ac_site_file2=$prefix/etc/config.site
2615 ac_site_file1=$ac_default_prefix/share/config.site
2616 ac_site_file2=$ac_default_prefix/etc/config.site
2618 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2620 test "x$ac_site_file" = xNONE && continue
2621 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2623 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2624 sed 's/^/| /' "$ac_site_file" >&5
2626 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2627 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2628 as_fn_error $? "failed to load site script $ac_site_file
2629 See \`config.log' for more details" "$LINENO" 5; }
2633 if test -r "$cache_file"; then
2634 # Some versions of bash will fail to source /dev/null (special files
2635 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2636 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2638 $as_echo "$as_me: loading cache $cache_file" >&6;}
2640 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2641 *) . "./$cache_file";;
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2646 $as_echo "$as_me: creating cache $cache_file" >&6;}
2650 # Check that the precious variables saved in the cache have kept the same
2652 ac_cache_corrupted=false
2653 for ac_var in $ac_precious_vars; do
2654 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2655 eval ac_new_set=\$ac_env_${ac_var}_set
2656 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2657 eval ac_new_val=\$ac_env_${ac_var}_value
2658 case $ac_old_set,$ac_new_set in
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2661 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2662 ac_cache_corrupted=: ;;
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2665 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2666 ac_cache_corrupted=: ;;
2669 if test "x$ac_old_val" != "x$ac_new_val"; then
2670 # differences in whitespace do not lead to failure.
2671 ac_old_val_w=`echo x $ac_old_val`
2672 ac_new_val_w=`echo x $ac_new_val`
2673 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2675 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2676 ac_cache_corrupted=:
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2679 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2680 eval $ac_var=\$ac_old_val
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2683 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2685 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2688 # Pass precious variables to config.status.
2689 if test "$ac_new_set" = set; then
2691 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2692 *) ac_arg=$ac_var=$ac_new_val ;;
2694 case " $ac_configure_args " in
2695 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2696 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2700 if $ac_cache_corrupted; then
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2702 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2704 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2705 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2707 ## -------------------- ##
2708 ## Main body of script. ##
2709 ## -------------------- ##
2712 ac_cpp='$CPP $CPPFLAGS'
2713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2718 ac_config_headers="$ac_config_headers include/arch/unix/apr_private.h"
2721 for ac_dir in build "$srcdir"/build; do
2722 if test -f "$ac_dir/install-sh"; then
2724 ac_install_sh="$ac_aux_dir/install-sh -c"
2726 elif test -f "$ac_dir/install.sh"; then
2728 ac_install_sh="$ac_aux_dir/install.sh -c"
2730 elif test -f "$ac_dir/shtool"; then
2732 ac_install_sh="$ac_aux_dir/shtool install -c"
2736 if test -z "$ac_aux_dir"; then
2737 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
2740 # These three variables are undocumented and unsupported,
2741 # and are intended to be withdrawn in a future Autoconf release.
2742 # They can cause serious problems if a builder's source tree is in a directory
2743 # whose full name contains unusual characters.
2744 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2745 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2746 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2904 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
2906 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
2907 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
2909 # Written by Gordon Matzigkeit, 1996
2911 # This file is free software; the Free Software Foundation gives
2912 # unlimited permission to copy and/or distribute it, with or without
2913 # modifications, as long as this notice is preserved.
2920 # LT_PREREQ(VERSION)
2921 # ------------------
2922 # Complain and exit if this libtool version is less that VERSION.
2926 # _LT_CHECK_BUILDDIR
2927 # ------------------
2928 # Complain if the absolute build directory name contains unusual characters
2932 # LT_INIT([OPTIONS])
2933 # ------------------
2937 # This is what autoupdate's m4 run will expand. It fires
2938 # the warning (with _au_warn_XXX), outputs it into the
2939 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2940 # the replacement expansion.
2943 # This is an auxiliary macro that is also run when
2944 # autoupdate runs m4. It simply calls m4_warning, but
2945 # we need a wrapper so that each warning is emitted only
2946 # once. We break the quoting in m4_warning's argument in
2947 # order to expand this macro's arguments, not AU_DEFUN's.
2950 # Finally, this is the expansion that is picked up by
2951 # autoconf. It tells the user to run autoupdate, and
2952 # then outputs the replacement expansion. We do not care
2953 # about autoupdate's warning because that contains
2954 # information on what to do *after* running autoupdate.
2956 # This is what autoupdate's m4 run will expand. It fires
2957 # the warning (with _au_warn_XXX), outputs it into the
2958 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2959 # the replacement expansion.
2962 # This is an auxiliary macro that is also run when
2963 # autoupdate runs m4. It simply calls m4_warning, but
2964 # we need a wrapper so that each warning is emitted only
2965 # once. We break the quoting in m4_warning's argument in
2966 # order to expand this macro's arguments, not AU_DEFUN's.
2969 # Finally, this is the expansion that is picked up by
2970 # autoconf. It tells the user to run autoupdate, and
2971 # then outputs the replacement expansion. We do not care
2972 # about autoupdate's warning because that contains
2973 # information on what to do *after* running autoupdate.
2977 # _LT_CC_BASENAME(CC)
2978 # -------------------
2979 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
2983 # _LT_FILEUTILS_DEFAULTS
2984 # ----------------------
2985 # It is okay to use these file commands and assume they have been set
2986 # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
2987 # _LT_FILEUTILS_DEFAULTS
2995 # _LT_PREPARE_SED_QUOTE_VARS
2996 # --------------------------
2997 # Define a few sed substitution that help us do robust quoting.
3002 # Note that this code is called both from `configure', and `config.status'
3003 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
3004 # `config.status' has no value for ac_aux_dir unless we are using Automake,
3005 # so we pass a copy along to make sure it has a sensible value anyway.
3009 ## ------------------------------------- ##
3010 ## Accumulate code for creating libtool. ##
3011 ## ------------------------------------- ##
3013 # So that we can recreate a full libtool script including additional
3014 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
3015 # in macros and then make a single call at the end using the `libtool'
3019 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
3020 # ----------------------------------------
3021 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
3028 # _LT_CONFIG_LIBTOOL([COMMANDS])
3029 # ------------------------------
3030 # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
3037 # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
3038 # -----------------------------------------------------
3042 # _LT_FORMAT_COMMENT([COMMENT])
3043 # -----------------------------
3044 # Add leading comment marks to the start of each line, and a trailing
3045 # full-stop to the whole comment if one is not present already.
3050 ## ------------------------ ##
3051 ## FIXME: Eliminate VARNAME ##
3052 ## ------------------------ ##
3055 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
3056 # -------------------------------------------------------------------
3057 # CONFIGNAME is the name given to the value in the libtool script.
3058 # VARNAME is the (base) name used in the configure script.
3059 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
3060 # VARNAME. Any other value will be used directly.
3064 # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
3065 # --------------------------------------------------------
3069 # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
3070 # ------------------------------------------------
3074 # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
3075 # ---------------------------------------------------------
3079 # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
3080 # --------------------------------------------------
3084 # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
3085 # ---------------------------------------------------
3089 # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
3090 # ---------------------------------------------------
3095 # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
3096 # ------------------------------------------------
3101 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
3102 # ------------------------------------
3103 # Quote a variable value, and forward it to `config.status' so that its
3104 # declaration there will have the same value as in `configure'. VARNAME
3105 # must have a single quote delimited value for this to work.
3109 # _LT_CONFIG_STATUS_DECLARATIONS
3110 # ------------------------------
3111 # We delimit libtool config variables with single quotes, so when
3112 # we write them to config.status, we have to be sure to quote all
3113 # embedded single quotes properly. In configure, this macro expands
3114 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
3116 # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
3122 # Output comment and list of tags supported by the script
3126 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
3127 # -----------------------------------
3128 # Extract the dictionary values for VARNAME (optionally with TAG) and
3129 # expand to a commented shell variable setting:
3131 # # Some comment about what VAR is for.
3132 # visible_name=$lt_internal_name
3136 # _LT_LIBTOOL_CONFIG_VARS
3137 # -----------------------
3138 # Produce commented declarations of non-tagged libtool config variables
3139 # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
3140 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
3141 # section) are produced by _LT_LIBTOOL_TAG_VARS.
3145 # _LT_LIBTOOL_TAG_VARS(TAG)
3146 # -------------------------
3150 # _LT_TAGVAR(VARNAME, [TAGNAME])
3151 # ------------------------------
3155 # _LT_CONFIG_COMMANDS
3156 # -------------------
3157 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
3158 # variables for single and double quote escaping we saved from calls
3159 # to _LT_DECL, we can put quote escaped variables declarations
3160 # into `config.status', and then the shell code to quote escape them in
3161 # for loops in `config.status'. Finally, any additional code accumulated
3162 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
3163 #_LT_CONFIG_COMMANDS
3169 # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
3170 # ------------------------------------
3171 # Generate a child script FILE with all initialization necessary to
3172 # reuse the environment learned by the parent script, and make the
3173 # file executable. If COMMENT is supplied, it is inserted after the
3174 # `#!' sequence but before initialization text begins. After this
3175 # macro, additional text can be appended to FILE to form the body of
3176 # the child script. The macro ends with non-zero status if the
3177 # file could not be fully written (such as if the disk is full).
3178 # _LT_GENERATED_FILE_INIT
3182 # This macro allows early generation of the libtool script (before
3183 # AC_OUTPUT is called), incase it is used in configure for compilation
3190 # If TAG is the built-in tag, create an initial libtool script with a
3191 # default configuration from the untagged config vars. Otherwise add code
3192 # to config.status for appending the configuration named by TAG from the
3193 # matching tagged config vars.
3197 # LT_SUPPORTED_TAG(TAG)
3198 # ---------------------
3199 # Trace this macro to discover what tags are supported by the libtool
3200 # --tag option, using:
3201 # autoconf --trace 'LT_SUPPORTED_TAG:$1'
3205 # C support is built-in for now
3212 # Enable libtool support for the given language if not already enabled.
3216 # _LT_LANG(LANGNAME)
3217 # ------------------
3224 # _LT_LANG_DEFAULT_CONFIG
3225 # -----------------------
3226 # _LT_LANG_DEFAULT_CONFIG
3229 # This is what autoupdate's m4 run will expand. It fires
3230 # the warning (with _au_warn_XXX), outputs it into the
3231 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3232 # the replacement expansion.
3235 # This is an auxiliary macro that is also run when
3236 # autoupdate runs m4. It simply calls m4_warning, but
3237 # we need a wrapper so that each warning is emitted only
3238 # once. We break the quoting in m4_warning's argument in
3239 # order to expand this macro's arguments, not AU_DEFUN's.
3242 # Finally, this is the expansion that is picked up by
3243 # autoconf. It tells the user to run autoupdate, and
3244 # then outputs the replacement expansion. We do not care
3245 # about autoupdate's warning because that contains
3246 # information on what to do *after* running autoupdate.
3248 # This is what autoupdate's m4 run will expand. It fires
3249 # the warning (with _au_warn_XXX), outputs it into the
3250 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3251 # the replacement expansion.
3254 # This is an auxiliary macro that is also run when
3255 # autoupdate runs m4. It simply calls m4_warning, but
3256 # we need a wrapper so that each warning is emitted only
3257 # once. We break the quoting in m4_warning's argument in
3258 # order to expand this macro's arguments, not AU_DEFUN's.
3261 # Finally, this is the expansion that is picked up by
3262 # autoconf. It tells the user to run autoupdate, and
3263 # then outputs the replacement expansion. We do not care
3264 # about autoupdate's warning because that contains
3265 # information on what to do *after* running autoupdate.
3267 # This is what autoupdate's m4 run will expand. It fires
3268 # the warning (with _au_warn_XXX), outputs it into the
3269 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3270 # the replacement expansion.
3273 # This is an auxiliary macro that is also run when
3274 # autoupdate runs m4. It simply calls m4_warning, but
3275 # we need a wrapper so that each warning is emitted only
3276 # once. We break the quoting in m4_warning's argument in
3277 # order to expand this macro's arguments, not AU_DEFUN's.
3280 # Finally, this is the expansion that is picked up by
3281 # autoconf. It tells the user to run autoupdate, and
3282 # then outputs the replacement expansion. We do not care
3283 # about autoupdate's warning because that contains
3284 # information on what to do *after* running autoupdate.
3286 # This is what autoupdate's m4 run will expand. It fires
3287 # the warning (with _au_warn_XXX), outputs it into the
3288 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3289 # the replacement expansion.
3292 # This is an auxiliary macro that is also run when
3293 # autoupdate runs m4. It simply calls m4_warning, but
3294 # we need a wrapper so that each warning is emitted only
3295 # once. We break the quoting in m4_warning's argument in
3296 # order to expand this macro's arguments, not AU_DEFUN's.
3299 # Finally, this is the expansion that is picked up by
3300 # autoconf. It tells the user to run autoupdate, and
3301 # then outputs the replacement expansion. We do not care
3302 # about autoupdate's warning because that contains
3303 # information on what to do *after* running autoupdate.
3305 # This is what autoupdate's m4 run will expand. It fires
3306 # the warning (with _au_warn_XXX), outputs it into the
3307 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3308 # the replacement expansion.
3311 # This is an auxiliary macro that is also run when
3312 # autoupdate runs m4. It simply calls m4_warning, but
3313 # we need a wrapper so that each warning is emitted only
3314 # once. We break the quoting in m4_warning's argument in
3315 # order to expand this macro's arguments, not AU_DEFUN's.
3318 # Finally, this is the expansion that is picked up by
3319 # autoconf. It tells the user to run autoupdate, and
3320 # then outputs the replacement expansion. We do not care
3321 # about autoupdate's warning because that contains
3322 # information on what to do *after* running autoupdate.
3331 # _LT_COMPILER_BOILERPLATE
3332 # ------------------------
3333 # Check for compiler boilerplate output or warnings with
3334 # the simple compiler test code.
3335 # _LT_COMPILER_BOILERPLATE
3338 # _LT_LINKER_BOILERPLATE
3339 # ----------------------
3340 # Check for linker boilerplate output or warnings with
3341 # the simple link test code.
3342 # _LT_LINKER_BOILERPLATE
3344 # _LT_REQUIRED_DARWIN_CHECKS
3345 # -------------------------
3349 # _LT_DARWIN_LINKER_FEATURES([TAG])
3350 # ---------------------------------
3351 # Checks for linker and compiler features on darwin
3354 # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
3355 # ----------------------------------
3356 # Links a minimal program and checks the executable
3357 # for the system default hardcoded library path. In most cases,
3358 # this is /usr/lib:/lib, but when the MPI compilers are used
3359 # the location of the communication and MPI libs are included too.
3360 # If we don't find anything, use the default library path according
3361 # to the aix ld manual.
3362 # Store the results from the different compilers for each TAGNAME.
3363 # Allow to override them for all tags through lt_cv_aix_libpath.
3364 # _LT_SYS_MODULE_PATH_AIX
3367 # _LT_SHELL_INIT(ARG)
3368 # -------------------
3373 # _LT_PROG_ECHO_BACKSLASH
3374 # -----------------------
3375 # Find how we can fake an echo command that does not interpret backslash.
3376 # In particular, with Autoconf 2.60 or later we add some code to the start
3377 # of the generated configure script which will find a shell with a builtin
3378 # printf (which we can use as an echo command).
3379 # _LT_PROG_ECHO_BACKSLASH
3396 # _LT_CMD_OLD_ARCHIVE
3397 # -------------------
3398 # _LT_CMD_OLD_ARCHIVE
3401 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
3402 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
3403 # ----------------------------------------------------------------
3404 # Check whether the given compiler option works
3405 # _LT_COMPILER_OPTION
3408 # This is what autoupdate's m4 run will expand. It fires
3409 # the warning (with _au_warn_XXX), outputs it into the
3410 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3411 # the replacement expansion.
3414 # This is an auxiliary macro that is also run when
3415 # autoupdate runs m4. It simply calls m4_warning, but
3416 # we need a wrapper so that each warning is emitted only
3417 # once. We break the quoting in m4_warning's argument in
3418 # order to expand this macro's arguments, not AU_DEFUN's.
3421 # Finally, this is the expansion that is picked up by
3422 # autoconf. It tells the user to run autoupdate, and
3423 # then outputs the replacement expansion. We do not care
3424 # about autoupdate's warning because that contains
3425 # information on what to do *after* running autoupdate.
3429 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
3430 # [ACTION-SUCCESS], [ACTION-FAILURE])
3431 # ----------------------------------------------------
3432 # Check whether the given linker option works
3436 # This is what autoupdate's m4 run will expand. It fires
3437 # the warning (with _au_warn_XXX), outputs it into the
3438 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3439 # the replacement expansion.
3442 # This is an auxiliary macro that is also run when
3443 # autoupdate runs m4. It simply calls m4_warning, but
3444 # we need a wrapper so that each warning is emitted only
3445 # once. We break the quoting in m4_warning's argument in
3446 # order to expand this macro's arguments, not AU_DEFUN's.
3449 # Finally, this is the expansion that is picked up by
3450 # autoconf. It tells the user to run autoupdate, and
3451 # then outputs the replacement expansion. We do not care
3452 # about autoupdate's warning because that contains
3453 # information on what to do *after* running autoupdate.
3462 # This is what autoupdate's m4 run will expand. It fires
3463 # the warning (with _au_warn_XXX), outputs it into the
3464 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3465 # the replacement expansion.
3468 # This is an auxiliary macro that is also run when
3469 # autoupdate runs m4. It simply calls m4_warning, but
3470 # we need a wrapper so that each warning is emitted only
3471 # once. We break the quoting in m4_warning's argument in
3472 # order to expand this macro's arguments, not AU_DEFUN's.
3475 # Finally, this is the expansion that is picked up by
3476 # autoconf. It tells the user to run autoupdate, and
3477 # then outputs the replacement expansion. We do not care
3478 # about autoupdate's warning because that contains
3479 # information on what to do *after* running autoupdate.
3488 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
3489 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
3490 # ----------------------------------------------------------------
3491 # _LT_TRY_DLOPEN_SELF
3494 # LT_SYS_DLOPEN_SELF
3495 # ------------------
3496 # LT_SYS_DLOPEN_SELF
3499 # This is what autoupdate's m4 run will expand. It fires
3500 # the warning (with _au_warn_XXX), outputs it into the
3501 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3502 # the replacement expansion.
3505 # This is an auxiliary macro that is also run when
3506 # autoupdate runs m4. It simply calls m4_warning, but
3507 # we need a wrapper so that each warning is emitted only
3508 # once. We break the quoting in m4_warning's argument in
3509 # order to expand this macro's arguments, not AU_DEFUN's.
3512 # Finally, this is the expansion that is picked up by
3513 # autoconf. It tells the user to run autoupdate, and
3514 # then outputs the replacement expansion. We do not care
3515 # about autoupdate's warning because that contains
3516 # information on what to do *after* running autoupdate.
3520 # _LT_COMPILER_C_O([TAGNAME])
3521 # ---------------------------
3522 # Check to see if options -c and -o are simultaneously supported by compiler.
3523 # This macro does not hard code the compiler like AC_PROG_CC_C_O.
3527 # _LT_COMPILER_FILE_LOCKS([TAGNAME])
3528 # ----------------------------------
3529 # Check to see if we can do hard links to lock some files if needed
3530 # _LT_COMPILER_FILE_LOCKS
3538 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
3539 # --------------------------------------
3540 # Check hardcoding attributes.
3541 # _LT_LINKER_HARDCODE_LIBPATH
3549 # _LT_SYS_DYNAMIC_LINKER([TAG])
3550 # -----------------------------
3551 # PORTME Fill in your ld.so characteristics
3552 # _LT_SYS_DYNAMIC_LINKER
3555 # _LT_PATH_TOOL_PREFIX(TOOL)
3556 # --------------------------
3557 # find a file program which can recognize shared library
3558 # _LT_PATH_TOOL_PREFIX
3561 # This is what autoupdate's m4 run will expand. It fires
3562 # the warning (with _au_warn_XXX), outputs it into the
3563 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3564 # the replacement expansion.
3567 # This is an auxiliary macro that is also run when
3568 # autoupdate runs m4. It simply calls m4_warning, but
3569 # we need a wrapper so that each warning is emitted only
3570 # once. We break the quoting in m4_warning's argument in
3571 # order to expand this macro's arguments, not AU_DEFUN's.
3574 # Finally, this is the expansion that is picked up by
3575 # autoconf. It tells the user to run autoupdate, and
3576 # then outputs the replacement expansion. We do not care
3577 # about autoupdate's warning because that contains
3578 # information on what to do *after* running autoupdate.
3584 # find a file program which can recognize a shared library
3590 # find the pathname to the GNU or non-GNU linker
3594 # This is what autoupdate's m4 run will expand. It fires
3595 # the warning (with _au_warn_XXX), outputs it into the
3596 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3597 # the replacement expansion.
3600 # This is an auxiliary macro that is also run when
3601 # autoupdate runs m4. It simply calls m4_warning, but
3602 # we need a wrapper so that each warning is emitted only
3603 # once. We break the quoting in m4_warning's argument in
3604 # order to expand this macro's arguments, not AU_DEFUN's.
3607 # Finally, this is the expansion that is picked up by
3608 # autoconf. It tells the user to run autoupdate, and
3609 # then outputs the replacement expansion. We do not care
3610 # about autoupdate's warning because that contains
3611 # information on what to do *after* running autoupdate.
3613 # This is what autoupdate's m4 run will expand. It fires
3614 # the warning (with _au_warn_XXX), outputs it into the
3615 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3616 # the replacement expansion.
3619 # This is an auxiliary macro that is also run when
3620 # autoupdate runs m4. It simply calls m4_warning, but
3621 # we need a wrapper so that each warning is emitted only
3622 # once. We break the quoting in m4_warning's argument in
3623 # order to expand this macro's arguments, not AU_DEFUN's.
3626 # Finally, this is the expansion that is picked up by
3627 # autoconf. It tells the user to run autoupdate, and
3628 # then outputs the replacement expansion. We do not care
3629 # about autoupdate's warning because that contains
3630 # information on what to do *after* running autoupdate.
3641 # find reload flag for linker
3642 # -- PORTME Some linkers may need a different reload flag.
3646 # _LT_CHECK_MAGIC_METHOD
3647 # ----------------------
3648 # how to check for library dependencies
3649 # -- PORTME fill in with the dynamic library characteristics
3650 # _LT_CHECK_MAGIC_METHOD
3655 # find the pathname to a BSD- or MS-compatible name lister
3659 # This is what autoupdate's m4 run will expand. It fires
3660 # the warning (with _au_warn_XXX), outputs it into the
3661 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3662 # the replacement expansion.
3665 # This is an auxiliary macro that is also run when
3666 # autoupdate runs m4. It simply calls m4_warning, but
3667 # we need a wrapper so that each warning is emitted only
3668 # once. We break the quoting in m4_warning's argument in
3669 # order to expand this macro's arguments, not AU_DEFUN's.
3672 # Finally, this is the expansion that is picked up by
3673 # autoconf. It tells the user to run autoupdate, and
3674 # then outputs the replacement expansion. We do not care
3675 # about autoupdate's warning because that contains
3676 # information on what to do *after* running autoupdate.
3678 # This is what autoupdate's m4 run will expand. It fires
3679 # the warning (with _au_warn_XXX), outputs it into the
3680 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3681 # the replacement expansion.
3684 # This is an auxiliary macro that is also run when
3685 # autoupdate runs m4. It simply calls m4_warning, but
3686 # we need a wrapper so that each warning is emitted only
3687 # once. We break the quoting in m4_warning's argument in
3688 # order to expand this macro's arguments, not AU_DEFUN's.
3691 # Finally, this is the expansion that is picked up by
3692 # autoconf. It tells the user to run autoupdate, and
3693 # then outputs the replacement expansion. We do not care
3694 # about autoupdate's warning because that contains
3695 # information on what to do *after* running autoupdate.
3698 # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3699 # --------------------------------
3700 # how to determine the name of the shared library
3701 # associated with a specific link library.
3702 # -- PORTME fill in with the dynamic library characteristics
3703 # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3706 # _LT_PATH_MANIFEST_TOOL
3707 # ----------------------
3708 # locate the manifest tool
3709 # _LT_PATH_MANIFEST_TOOL
3714 # check for math library
3718 # This is what autoupdate's m4 run will expand. It fires
3719 # the warning (with _au_warn_XXX), outputs it into the
3720 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3721 # the replacement expansion.
3724 # This is an auxiliary macro that is also run when
3725 # autoupdate runs m4. It simply calls m4_warning, but
3726 # we need a wrapper so that each warning is emitted only
3727 # once. We break the quoting in m4_warning's argument in
3728 # order to expand this macro's arguments, not AU_DEFUN's.
3731 # Finally, this is the expansion that is picked up by
3732 # autoconf. It tells the user to run autoupdate, and
3733 # then outputs the replacement expansion. We do not care
3734 # about autoupdate's warning because that contains
3735 # information on what to do *after* running autoupdate.
3739 # _LT_COMPILER_NO_RTTI([TAGNAME])
3740 # -------------------------------
3741 # _LT_COMPILER_NO_RTTI
3744 # _LT_CMD_GLOBAL_SYMBOLS
3745 # ----------------------
3746 # _LT_CMD_GLOBAL_SYMBOLS
3749 # _LT_COMPILER_PIC([TAGNAME])
3750 # ---------------------------
3754 # _LT_LINKER_SHLIBS([TAGNAME])
3755 # ----------------------------
3756 # See if the linker supports building shared libraries.
3760 # _LT_LANG_C_CONFIG([TAG])
3761 # ------------------------
3762 # Ensure that the configuration variables for a C compiler are suitably
3763 # defined. These variables are subsequently used by _LT_CONFIG to write
3764 # the compiler configuration to `libtool'.
3768 # _LT_LANG_CXX_CONFIG([TAG])
3769 # --------------------------
3770 # Ensure that the configuration variables for a C++ compiler are suitably
3771 # defined. These variables are subsequently used by _LT_CONFIG to write
3772 # the compiler configuration to `libtool'.
3773 # _LT_LANG_CXX_CONFIG
3776 # _LT_FUNC_STRIPNAME_CNF
3777 # ----------------------
3778 # func_stripname_cnf prefix suffix name
3779 # strip PREFIX and SUFFIX off of NAME.
3780 # PREFIX and SUFFIX must not contain globbing or regex special
3781 # characters, hashes, percent signs, but SUFFIX may contain a leading
3782 # dot (in which case that matches only a dot).
3784 # This function is identical to the (non-XSI) version of func_stripname,
3785 # except this one can be used by m4 code that may be executed by configure,
3786 # rather than the libtool script.
3787 # _LT_FUNC_STRIPNAME_CNF
3789 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
3790 # ---------------------------------
3791 # Figure out "hidden" library dependencies from verbose
3792 # compiler output when linking a shared library.
3793 # Parse the compiler output and extract the necessary
3794 # objects, libraries and library flags.
3795 # _LT_SYS_HIDDEN_LIBDEPS
3798 # _LT_LANG_F77_CONFIG([TAG])
3799 # --------------------------
3800 # Ensure that the configuration variables for a Fortran 77 compiler are
3801 # suitably defined. These variables are subsequently used by _LT_CONFIG
3802 # to write the compiler configuration to `libtool'.
3803 # _LT_LANG_F77_CONFIG
3806 # _LT_LANG_FC_CONFIG([TAG])
3807 # -------------------------
3808 # Ensure that the configuration variables for a Fortran compiler are
3809 # suitably defined. These variables are subsequently used by _LT_CONFIG
3810 # to write the compiler configuration to `libtool'.
3811 # _LT_LANG_FC_CONFIG
3814 # _LT_LANG_GCJ_CONFIG([TAG])
3815 # --------------------------
3816 # Ensure that the configuration variables for the GNU Java Compiler compiler
3817 # are suitably defined. These variables are subsequently used by _LT_CONFIG
3818 # to write the compiler configuration to `libtool'.
3819 # _LT_LANG_GCJ_CONFIG
3822 # _LT_LANG_GO_CONFIG([TAG])
3823 # --------------------------
3824 # Ensure that the configuration variables for the GNU Go compiler
3825 # are suitably defined. These variables are subsequently used by _LT_CONFIG
3826 # to write the compiler configuration to `libtool'.
3827 # _LT_LANG_GO_CONFIG
3830 # _LT_LANG_RC_CONFIG([TAG])
3831 # -------------------------
3832 # Ensure that the configuration variables for the Windows resource compiler
3833 # are suitably defined. These variables are subsequently used by _LT_CONFIG
3834 # to write the compiler configuration to `libtool'.
3835 # _LT_LANG_RC_CONFIG
3843 # This is what autoupdate's m4 run will expand. It fires
3844 # the warning (with _au_warn_XXX), outputs it into the
3845 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3846 # the replacement expansion.
3849 # This is an auxiliary macro that is also run when
3850 # autoupdate runs m4. It simply calls m4_warning, but
3851 # we need a wrapper so that each warning is emitted only
3852 # once. We break the quoting in m4_warning's argument in
3853 # order to expand this macro's arguments, not AU_DEFUN's.
3856 # Finally, this is the expansion that is picked up by
3857 # autoconf. It tells the user to run autoupdate, and
3858 # then outputs the replacement expansion. We do not care
3859 # about autoupdate's warning because that contains
3860 # information on what to do *after* running autoupdate.
3874 # This is what autoupdate's m4 run will expand. It fires
3875 # the warning (with _au_warn_XXX), outputs it into the
3876 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3877 # the replacement expansion.
3880 # This is an auxiliary macro that is also run when
3881 # autoupdate runs m4. It simply calls m4_warning, but
3882 # we need a wrapper so that each warning is emitted only
3883 # once. We break the quoting in m4_warning's argument in
3884 # order to expand this macro's arguments, not AU_DEFUN's.
3887 # Finally, this is the expansion that is picked up by
3888 # autoconf. It tells the user to run autoupdate, and
3889 # then outputs the replacement expansion. We do not care
3890 # about autoupdate's warning because that contains
3891 # information on what to do *after* running autoupdate.
3897 # If we don't have a new enough Autoconf to choose the best grep
3898 # available, choose the one first in the user's PATH.
3904 # If we don't have a new enough Autoconf to choose the best objdump
3905 # available, choose the one first in the user's PATH.
3910 # Ensure DLLTOOL variable is set.
3915 # Check for a fully-functional sed program, that truncates
3916 # as few characters as possible. Prefer GNU sed if found.
3922 # This is what autoupdate's m4 run will expand. It fires
3923 # the warning (with _au_warn_XXX), outputs it into the
3924 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3925 # the replacement expansion.
3928 # This is an auxiliary macro that is also run when
3929 # autoupdate runs m4. It simply calls m4_warning, but
3930 # we need a wrapper so that each warning is emitted only
3931 # once. We break the quoting in m4_warning's argument in
3932 # order to expand this macro's arguments, not AU_DEFUN's.
3935 # Finally, this is the expansion that is picked up by
3936 # autoconf. It tells the user to run autoupdate, and
3937 # then outputs the replacement expansion. We do not care
3938 # about autoupdate's warning because that contains
3939 # information on what to do *after* running autoupdate.
3943 # _LT_CHECK_SHELL_FEATURES
3944 # ------------------------
3945 # Find out whether the shell is Bourne or XSI compatible,
3946 # or has some other useful features.
3947 # _LT_CHECK_SHELL_FEATURES
3950 # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
3951 # ------------------------------------------------------
3952 # In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
3953 # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
3957 # _LT_PROG_REPLACE_SHELLFNS
3958 # -------------------------
3959 # Replace existing portable implementations of several shell functions with
3960 # equivalent extended shell implementations where those features are available..
3963 # _LT_PATH_CONVERSION_FUNCTIONS
3964 # -----------------------------
3965 # Determine which file name conversion functions should be used by
3966 # func_to_host_file (and, implicitly, by func_to_host_path). These are needed
3967 # for certain cross-compile configurations and native mingw.
3968 # _LT_PATH_CONVERSION_FUNCTIONS
3970 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
3972 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
3973 # Written by Gary V. Vaughan, 2004
3975 # This file is free software; the Free Software Foundation gives
3976 # unlimited permission to copy and/or distribute it, with or without
3977 # modifications, as long as this notice is preserved.
3979 # serial 6 ltsugar.m4
3981 # This is to help aclocal find these macros, as it can't see m4_define.
3985 # lt_join(SEP, ARG1, [ARG2...])
3986 # -----------------------------
3987 # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
3988 # associated separator.
3989 # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
3990 # versions in m4sugar had bugs.
3998 # Manipulate m4 lists.
3999 # These macros are necessary as long as will still need to support
4000 # Autoconf-2.59 which quotes differently.
4006 # lt_append(MACRO-NAME, STRING, [SEPARATOR])
4007 # ------------------------------------------
4008 # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
4009 # Note that neither SEPARATOR nor STRING are expanded; they are appended
4010 # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
4011 # No SEPARATOR is output if MACRO-NAME was previously undefined (different
4012 # than defined and empty).
4014 # This macro is needed until we can rely on Autoconf 2.62, since earlier
4015 # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
4020 # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
4021 # ----------------------------------------------------------
4022 # Produce a SEP delimited list of all paired combinations of elements of
4023 # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
4024 # has the form PREFIXmINFIXSUFFIXn.
4025 # Needed until we can rely on m4_combine added in Autoconf 2.62.
4029 # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
4030 # -----------------------------------------------------------------------
4031 # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
4032 # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
4036 # lt_dict_add(DICT, KEY, VALUE)
4037 # -----------------------------
4041 # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
4042 # --------------------------------------------
4046 # lt_dict_fetch(DICT, KEY, [SUBKEY])
4047 # ----------------------------------
4051 # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
4052 # -----------------------------------------------------------------
4056 # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
4057 # --------------------------------------------------------------
4061 # Helper functions for option handling. -*- Autoconf -*-
4063 # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
4065 # Written by Gary V. Vaughan, 2004
4067 # This file is free software; the Free Software Foundation gives
4068 # unlimited permission to copy and/or distribute it, with or without
4069 # modifications, as long as this notice is preserved.
4071 # serial 7 ltoptions.m4
4073 # This is to help aclocal find these macros, as it can't see m4_define.
4077 # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
4078 # ------------------------------------------
4082 # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
4083 # ---------------------------------------
4084 # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
4085 # matching handler defined, dispatch to it. Other OPTION-NAMEs are
4090 # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
4091 # ------------------------------------------------------------
4092 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
4096 # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
4097 # -------------------------------------------------------
4098 # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
4103 # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
4104 # ----------------------------------------
4105 # OPTION-LIST is a space-separated list of Libtool options associated
4106 # with MACRO-NAME. If any OPTION has a matching handler declared with
4107 # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
4108 # the unknown option and exit.
4112 ## --------------------------------- ##
4113 ## Macros to handle LT_INIT options. ##
4114 ## --------------------------------- ##
4116 # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
4117 # -----------------------------------------
4121 # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
4122 # -----------------------------------------------
4130 # This is what autoupdate's m4 run will expand. It fires
4131 # the warning (with _au_warn_XXX), outputs it into the
4132 # updated configure.ac (with AC_DIAGNOSE), and then outputs
4133 # the replacement expansion.
4136 # This is an auxiliary macro that is also run when
4137 # autoupdate runs m4. It simply calls m4_warning, but
4138 # we need a wrapper so that each warning is emitted only
4139 # once. We break the quoting in m4_warning's argument in
4140 # order to expand this macro's arguments, not AU_DEFUN's.
4143 # Finally, this is the expansion that is picked up by
4144 # autoconf. It tells the user to run autoupdate, and
4145 # then outputs the replacement expansion. We do not care
4146 # about autoupdate's warning because that contains
4147 # information on what to do *after* running autoupdate.
4154 # Declare package support for building win32 dll's.
4157 # This is what autoupdate's m4 run will expand. It fires
4158 # the warning (with _au_warn_XXX), outputs it into the
4159 # updated configure.ac (with AC_DIAGNOSE), and then outputs
4160 # the replacement expansion.
4163 # This is an auxiliary macro that is also run when
4164 # autoupdate runs m4. It simply calls m4_warning, but
4165 # we need a wrapper so that each warning is emitted only
4166 # once. We break the quoting in m4_warning's argument in
4167 # order to expand this macro's arguments, not AU_DEFUN's.
4170 # Finally, this is the expansion that is picked up by
4171 # autoconf. It tells the user to run autoupdate, and
4172 # then outputs the replacement expansion. We do not care
4173 # about autoupdate's warning because that contains
4174 # information on what to do *after* running autoupdate.
4179 # _LT_ENABLE_SHARED([DEFAULT])
4180 # ----------------------------
4181 # implement the --enable-shared flag, and supports the `shared' and
4182 # `disable-shared' LT_INIT options.
4183 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
4194 # This is what autoupdate's m4 run will expand. It fires
4195 # the warning (with _au_warn_XXX), outputs it into the
4196 # updated configure.ac (with AC_DIAGNOSE), and then outputs
4197 # the replacement expansion.
4200 # This is an auxiliary macro that is also run when
4201 # autoupdate runs m4. It simply calls m4_warning, but
4202 # we need a wrapper so that each warning is emitted only
4203 # once. We break the quoting in m4_warning's argument in
4204 # order to expand this macro's arguments, not AU_DEFUN's.
4207 # Finally, this is the expansion that is picked up by
4208 # autoconf. It tells the user to run autoupdate, and
4209 # then outputs the replacement expansion. We do not care
4210 # about autoupdate's warning because that contains
4211 # information on what to do *after* running autoupdate.
4213 # This is what autoupdate's m4 run will expand. It fires
4214 # the warning (with _au_warn_XXX), outputs it into the
4215 # updated configure.ac (with AC_DIAGNOSE), and then outputs
4216 # the replacement expansion.
4219 # This is an auxiliary macro that is also run when
4220 # autoupdate runs m4. It simply calls m4_warning, but
4221 # we need a wrapper so that each warning is emitted only
4222 # once. We break the quoting in m4_warning's argument in
4223 # order to expand this macro's arguments, not AU_DEFUN's.
4226 # Finally, this is the expansion that is picked up by
4227 # autoconf. It tells the user to run autoupdate, and
4228 # then outputs the replacement expansion. We do not care
4229 # about autoupdate's warning because that contains
4230 # information on what to do *after* running autoupdate.
4236 # _LT_ENABLE_STATIC([DEFAULT])
4237 # ----------------------------
4238 # implement the --enable-static flag, and support the `static' and
4239 # `disable-static' LT_INIT options.
4240 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
4251 # This is what autoupdate's m4 run will expand. It fires
4252 # the warning (with _au_warn_XXX), outputs it into the
4253 # updated configure.ac (with AC_DIAGNOSE), and then outputs
4254 # the replacement expansion.
4257 # This is an auxiliary macro that is also run when
4258 # autoupdate runs m4. It simply calls m4_warning, but
4259 # we need a wrapper so that each warning is emitted only
4260 # once. We break the quoting in m4_warning's argument in
4261 # order to expand this macro's arguments, not AU_DEFUN's.
4264 # Finally, this is the expansion that is picked up by
4265 # autoconf. It tells the user to run autoupdate, and
4266 # then outputs the replacement expansion. We do not care
4267 # about autoupdate's warning because that contains
4268 # information on what to do *after* running autoupdate.
4270 # This is what autoupdate's m4 run will expand. It fires
4271 # the warning (with _au_warn_XXX), outputs it into the
4272 # updated configure.ac (with AC_DIAGNOSE), and then outputs
4273 # the replacement expansion.
4276 # This is an auxiliary macro that is also run when
4277 # autoupdate runs m4. It simply calls m4_warning, but
4278 # we need a wrapper so that each warning is emitted only
4279 # once. We break the quoting in m4_warning's argument in
4280 # order to expand this macro's arguments, not AU_DEFUN's.
4283 # Finally, this is the expansion that is picked up by
4284 # autoconf. It tells the user to run autoupdate, and
4285 # then outputs the replacement expansion. We do not care
4286 # about autoupdate's warning because that contains
4287 # information on what to do *after* running autoupdate.
4293 # _LT_ENABLE_FAST_INSTALL([DEFAULT])
4294 # ----------------------------------
4295 # implement the --enable-fast-install flag, and support the `fast-install'
4296 # and `disable-fast-install' LT_INIT options.
4297 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
4298 # _LT_ENABLE_FAST_INSTALL
4304 # This is what autoupdate's m4 run will expand. It fires
4305 # the warning (with _au_warn_XXX), outputs it into the
4306 # updated configure.ac (with AC_DIAGNOSE), and then outputs
4307 # the replacement expansion.
4310 # This is an auxiliary macro that is also run when
4311 # autoupdate runs m4. It simply calls m4_warning, but
4312 # we need a wrapper so that each warning is emitted only
4313 # once. We break the quoting in m4_warning's argument in
4314 # order to expand this macro's arguments, not AU_DEFUN's.
4317 # Finally, this is the expansion that is picked up by
4318 # autoconf. It tells the user to run autoupdate, and
4319 # then outputs the replacement expansion. We do not care
4320 # about autoupdate's warning because that contains
4321 # information on what to do *after* running autoupdate.
4324 # This is what autoupdate's m4 run will expand. It fires
4325 # the warning (with _au_warn_XXX), outputs it into the
4326 # updated configure.ac (with AC_DIAGNOSE), and then outputs
4327 # the replacement expansion.
4330 # This is an auxiliary macro that is also run when
4331 # autoupdate runs m4. It simply calls m4_warning, but
4332 # we need a wrapper so that each warning is emitted only
4333 # once. We break the quoting in m4_warning's argument in
4334 # order to expand this macro's arguments, not AU_DEFUN's.
4337 # Finally, this is the expansion that is picked up by
4338 # autoconf. It tells the user to run autoupdate, and
4339 # then outputs the replacement expansion. We do not care
4340 # about autoupdate's warning because that contains
4341 # information on what to do *after* running autoupdate.
4346 # _LT_WITH_PIC([MODE])
4347 # --------------------
4348 # implement the --with-pic flag, and support the `pic-only' and `no-pic'
4350 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
4357 # This is what autoupdate's m4 run will expand. It fires
4358 # the warning (with _au_warn_XXX), outputs it into the
4359 # updated configure.ac (with AC_DIAGNOSE), and then outputs
4360 # the replacement expansion.
4363 # This is an auxiliary macro that is also run when
4364 # autoupdate runs m4. It simply calls m4_warning, but
4365 # we need a wrapper so that each warning is emitted only
4366 # once. We break the quoting in m4_warning's argument in
4367 # order to expand this macro's arguments, not AU_DEFUN's.
4370 # Finally, this is the expansion that is picked up by
4371 # autoconf. It tells the user to run autoupdate, and
4372 # then outputs the replacement expansion. We do not care
4373 # about autoupdate's warning because that contains
4374 # information on what to do *after* running autoupdate.
4378 ## ----------------- ##
4379 ## LTDL_INIT Options ##
4380 ## ----------------- ##
4391 # ltversion.m4 -- version numbers -*- Autoconf -*-
4393 # Copyright (C) 2004 Free Software Foundation, Inc.
4394 # Written by Scott James Remnant, 2004
4396 # This file is free software; the Free Software Foundation gives
4397 # unlimited permission to copy and/or distribute it, with or without
4398 # modifications, as long as this notice is preserved.
4402 # serial 3337 ltversion.m4
4403 # This file is part of GNU Libtool
4410 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
4412 # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
4413 # Written by Scott James Remnant, 2004.
4415 # This file is free software; the Free Software Foundation gives
4416 # unlimited permission to copy and/or distribute it, with or without
4417 # modifications, as long as this notice is preserved.
4419 # serial 5 lt~obsolete.m4
4421 # These exist entirely to fool aclocal when bootstrapping libtool.
4423 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
4424 # which have later been changed to m4_define as they aren't part of the
4425 # exported API, or moved to Autoconf or Automake where they belong.
4427 # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
4428 # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
4429 # using a macro with the same name in our local m4/libtool.m4 it'll
4430 # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
4431 # and doesn't know about Autoconf macros at all.)
4433 # So we provide this file, which has a silly filename so it's always
4434 # included after everything else. This provides aclocal with the
4435 # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
4436 # because those macros already exist, or will be overwritten later.
4437 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
4439 # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
4440 # Yes, that means every name once taken will need to remain here until
4441 # we give up compatibility with versions before 1.7, at which point
4442 # we need to keep only those names which we still refer to.
4444 # This is to help aclocal find these macros, as it can't see m4_define.
4515 apr_ste_save_CPPFLAGS="$CPPFLAGS"
4518 apr_ste_save_CFLAGS="$CFLAGS"
4521 apr_ste_save_LDFLAGS="$LDFLAGS"
4524 apr_ste_save_LIBS="$LIBS"
4527 apr_ste_save_INCLUDES="$INCLUDES"
4532 cat >config.nice<<EOF
4535 # Created by configure
4538 if test -n "$CC"; then
4539 echo "CC=\"$CC\"; export CC" >> config.nice
4541 if test -n "$CFLAGS"; then
4542 echo "CFLAGS=\"$CFLAGS\"; export CFLAGS" >> config.nice
4544 if test -n "$CPPFLAGS"; then
4545 echo "CPPFLAGS=\"$CPPFLAGS\"; export CPPFLAGS" >> config.nice
4547 if test -n "$LDFLAGS"; then
4548 echo "LDFLAGS=\"$LDFLAGS\"; export LDFLAGS" >> config.nice
4550 if test -n "$LTFLAGS"; then
4551 echo "LTFLAGS=\"$LTFLAGS\"; export LTFLAGS" >> config.nice
4553 if test -n "$LIBS"; then
4554 echo "LIBS=\"$LIBS\"; export LIBS" >> config.nice
4556 if test -n "$INCLUDES"; then
4557 echo "INCLUDES=\"$INCLUDES\"; export INCLUDES" >> config.nice
4559 if test -n "$NOTEST_CFLAGS"; then
4560 echo "NOTEST_CFLAGS=\"$NOTEST_CFLAGS\"; export NOTEST_CFLAGS" >> config.nice
4562 if test -n "$NOTEST_CPPFLAGS"; then
4563 echo "NOTEST_CPPFLAGS=\"$NOTEST_CPPFLAGS\"; export NOTEST_CPPFLAGS" >> config.nice
4565 if test -n "$NOTEST_LDFLAGS"; then
4566 echo "NOTEST_LDFLAGS=\"$NOTEST_LDFLAGS\"; export NOTEST_LDFLAGS" >> config.nice
4568 if test -n "$NOTEST_LIBS"; then
4569 echo "NOTEST_LIBS=\"$NOTEST_LIBS\"; export NOTEST_LIBS" >> config.nice
4572 # Retrieve command-line arguments.
4573 eval "set x $0 $ac_configure_args"
4581 while test "x${ap_cur}" != "x${ap_last}";
4584 ap_cur=`eval "echo ${ap_cur}"`
4588 echo "\"$arg\" \\" >> config.nice
4590 echo '"$@"' >> config.nice
4591 chmod +x config.nice
4594 # Make sure we can run config.sub.
4595 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4596 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4599 $as_echo_n "checking build system type... " >&6; }
4600 if ${ac_cv_build+:} false; then :
4601 $as_echo_n "(cached) " >&6
4603 ac_build_alias=$build_alias
4604 test "x$ac_build_alias" = x &&
4605 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4606 test "x$ac_build_alias" = x &&
4607 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4608 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4609 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4613 $as_echo "$ac_cv_build" >&6; }
4614 case $ac_cv_build in
4616 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4619 ac_save_IFS=$IFS; IFS='-'
4625 # Remember, the first character of IFS is used to create $*,
4626 # except with old shells:
4629 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4633 $as_echo_n "checking host system type... " >&6; }
4634 if ${ac_cv_host+:} false; then :
4635 $as_echo_n "(cached) " >&6
4637 if test "x$host_alias" = x; then
4638 ac_cv_host=$ac_cv_build
4640 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4641 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4646 $as_echo "$ac_cv_host" >&6; }
4649 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4652 ac_save_IFS=$IFS; IFS='-'
4658 # Remember, the first character of IFS is used to create $*,
4659 # except with old shells:
4662 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4666 $as_echo_n "checking target system type... " >&6; }
4667 if ${ac_cv_target+:} false; then :
4668 $as_echo_n "(cached) " >&6
4670 if test "x$target_alias" = x; then
4671 ac_cv_target=$ac_cv_host
4673 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4674 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4679 $as_echo "$ac_cv_target" >&6; }
4680 case $ac_cv_target in
4682 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
4684 target=$ac_cv_target
4685 ac_save_IFS=$IFS; IFS='-'
4691 # Remember, the first character of IFS is used to create $*,
4692 # except with old shells:
4695 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4698 # The aliases save the names the user supplied, while $host etc.
4699 # will get canonicalized.
4700 test -n "$target_alias" &&
4701 test "$program_prefix$program_suffix$program_transform_name" = \
4703 program_prefix=${target_alias}-
4705 echo "Configuring APR library"
4706 echo "Platform: $host"
4710 # Absolute source/build directory
4711 apr_srcdir=`(cd $srcdir && pwd)`
4716 if test "$apr_builddir" != "$apr_srcdir"; then
4718 APR_CONFIG_LOCATION=build
4720 APR_CONFIG_LOCATION=source
4725 # Libtool might need this symbol -- it must point to the location of
4726 # the generated libtool script (not necessarily the "top" build dir).
4728 top_builddir="$apr_builddir"
4731 # Directory containing apr build macros, helpers, and make rules
4732 # NOTE: make rules (apr_rules.mk) will be in the builddir for vpath
4734 apr_buildout=$apr_builddir/build
4735 apr_builders=$apr_srcdir/build
4738 MKDIR=$apr_builders/mkdir.sh
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mkdir -p" >&5
4742 $as_echo_n "checking for working mkdir -p... " >&6; }
4743 if ${ac_cv_mkdir_p+:} false; then :
4744 $as_echo_n "(cached) " >&6
4747 test -d conftestdir && rm -rf conftestdir
4748 mkdir -p conftestdir/somedir >/dev/null 2>&1
4749 if test -d conftestdir/somedir; then
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mkdir_p" >&5
4758 $as_echo "$ac_cv_mkdir_p" >&6; }
4759 if test "$ac_cv_mkdir_p" = "yes"; then
4762 mkdir_p="$apr_builders/mkdir.sh"
4766 # get our version information
4767 get_version="$apr_builders/get-version.sh"
4768 version_hdr="$apr_srcdir/include/apr_version.h"
4769 APR_MAJOR_VERSION="`$get_version major $version_hdr APR`"
4770 APR_DOTTED_VERSION="`$get_version all $version_hdr APR`"
4775 echo "APR Version: ${APR_DOTTED_VERSION}"
4778 # Check whether --enable-layout was given.
4779 if test "${enable_layout+set}" = set; then :
4780 enableval=$enable_layout;
4786 if test -z "$LAYOUT"; then
4790 if test ! -f $srcdir/config.layout; then
4791 echo "** Error: Layout file $srcdir/config.layout not found"
4792 echo "** Error: Cannot use undefined layout '$LAYOUT'"
4795 # Catch layout names including a slash which will otherwise
4796 # confuse the heck out of the sed script.
4799 echo "** Error: $LAYOUT is not a valid layout name"
4802 pldconf=./config.pld
4804 sed -e "1s/[ ]*<[lL]ayout[ ]*$LAYOUT[ ]*>[ ]*//;1t" \
4805 -e "1,/[ ]*<[lL]ayout[ ]*$LAYOUT[ ]*>[ ]*/d" \
4806 -e '/[ ]*<\/Layout>[ ]*/,$d' \
4808 -e "s/:[ ]*/=\'/g" \
4810 $srcdir/config.layout > $pldconf
4812 if test ! -s $pldconf; then
4813 echo "** Error: unable to find layout $layout_name"
4818 for var in prefix exec_prefix bindir sbindir libexecdir mandir \
4819 sysconfdir datadir includedir localstatedir runtimedir \
4820 logfiledir libdir installbuilddir libsuffix ; do
4821 eval "val=\"\$$var\""
4824 val=`echo $val | sed -e 's;\+$;;'`
4825 eval "$var=\"\$val\""
4832 val=`echo $val | sed -e 's:\(.\)/*$:\1:'`
4833 val=`echo $val | sed -e 's:[\$]\([a-z_]*\):$\1:g'`
4834 if test "$autosuffix" = "yes"; then
4835 if echo $val | grep apache >/dev/null; then
4840 if test "$addtarget" = "yes"; then
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chosen layout" >&5
4850 $as_echo_n "checking for chosen layout... " >&6; }
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $layout_name" >&5
4852 $as_echo "$layout_name" >&6; }
4856 # Retrieve the command-line arguments. The eval is needed because
4857 # the arguments are quoted to preserve accuracy.
4858 eval "set x $ac_configure_args"
4862 # If the previous option needs an argument, assign it.
4863 if test -n "$ac_prev"; then
4864 eval "$ac_prev=\$ac_option"
4869 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
4873 -bindir | --bindir | --bindi | --bind | --bin | --bi)
4875 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
4876 bindir="$ac_optarg" ;;
4878 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
4880 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
4882 datadir="$ac_optarg" ;;
4884 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
4885 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
4886 | --exec | --exe | --ex)
4887 ac_prev=exec_prefix ;;
4888 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
4889 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
4890 | --exec=* | --exe=* | --ex=*)
4891 exec_prefix="$ac_optarg" ;;
4893 -includedir | --includedir | --includedi | --included | --include \
4894 | --includ | --inclu | --incl | --inc)
4895 ac_prev=includedir ;;
4896 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
4897 | --includ=* | --inclu=* | --incl=* | --inc=*)
4898 includedir="$ac_optarg" ;;
4900 -infodir | --infodir | --infodi | --infod | --info | --inf)
4902 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
4903 infodir="$ac_optarg" ;;
4905 -libdir | --libdir | --libdi | --libd)
4907 -libdir=* | --libdir=* | --libdi=* | --libd=*)
4908 libdir="$ac_optarg" ;;
4910 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
4911 | --libexe | --libex | --libe)
4912 ac_prev=libexecdir ;;
4913 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
4914 | --libexe=* | --libex=* | --libe=*)
4915 libexecdir="$ac_optarg" ;;
4917 -localstatedir | --localstatedir | --localstatedi | --localstated \
4918 | --localstate | --localstat | --localsta | --localst \
4919 | --locals | --local | --loca | --loc | --lo)
4920 ac_prev=localstatedir ;;
4921 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
4922 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
4923 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
4924 localstatedir="$ac_optarg" ;;
4926 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
4928 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
4929 mandir="$ac_optarg" ;;
4931 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
4933 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
4934 prefix="$ac_optarg" ;;
4936 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
4938 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
4940 sbindir="$ac_optarg" ;;
4942 -sharedstatedir | --sharedstatedir | --sharedstatedi \
4943 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
4944 | --sharedst | --shareds | --shared | --share | --shar \
4946 ac_prev=sharedstatedir ;;
4947 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
4948 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
4949 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
4951 sharedstatedir="$ac_optarg" ;;
4953 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
4954 | --syscon | --sysco | --sysc | --sys | --sy)
4955 ac_prev=sysconfdir ;;
4956 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
4957 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
4958 sysconfdir="$ac_optarg" ;;
4963 # Be sure to have absolute paths.
4964 for ac_var in exec_prefix prefix
4966 eval ac_val=$`echo $ac_var`
4968 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
4969 *) as_fn_error $? "expected an absolute path for --$ac_var: $ac_val" "$LINENO" 5;;
4979 if test -z "$CC"; then
4980 test "x$silent" != "xyes" && echo " setting CC to \"gcc\""
4985 bs2000*-siemens-sysv*)
4987 if test -z "$CC"; then
4988 test "x$silent" != "xyes" && echo " setting CC to \"c89 -XLLML -XLLMK -XL -Kno_integer_overflow\""
4989 CC="c89 -XLLML -XLLMK -XL -Kno_integer_overflow"
4995 if test -z "$CC"; then
4996 test "x$silent" != "xyes" && echo " setting CC to \"cc\""
5003 if test -z "$CC"; then
5004 test "x$silent" != "xyes" && echo " setting CC to \"cc\""
5011 if test -z "$CC"; then
5012 test "x$silent" != "xyes" && echo " setting CC to \"icc\""
5019 if test -z "$CC"; then
5020 test "x$silent" != "xyes" && echo " setting CC to \"gcc\""
5027 if test -z "$CC"; then
5028 test "x$silent" != "xyes" && echo " setting CC to \"cc\""
5035 if test -z "$CC"; then
5036 test "x$silent" != "xyes" && echo " setting CC to \"cc\""
5043 if test -z "$CC"; then
5044 test "x$silent" != "xyes" && echo " setting CC to \"cc -F\""
5051 if test -z "$CC"; then
5052 test "x$silent" != "xyes" && echo " setting CC to \"c89\""
5059 if test -z "$CC"; then
5060 test "x$silent" != "xyes" && echo " setting CC to \"c89\""
5069 ac_cpp='$CPP $CPPFLAGS'
5070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5073 if test -n "$ac_tool_prefix"; then
5074 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5075 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5077 $as_echo_n "checking for $ac_word... " >&6; }
5078 if ${ac_cv_prog_CC+:} false; then :
5079 $as_echo_n "(cached) " >&6
5081 if test -n "$CC"; then
5082 ac_cv_prog_CC="$CC" # Let the user override the test.
5084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5088 test -z "$as_dir" && as_dir=.
5089 for ac_exec_ext in '' $ac_executable_extensions; do
5090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5091 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5102 if test -n "$CC"; then
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5104 $as_echo "$CC" >&6; }
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5107 $as_echo "no" >&6; }
5112 if test -z "$ac_cv_prog_CC"; then
5114 # Extract the first word of "gcc", so it can be a program name with args.
5115 set dummy gcc; ac_word=$2
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5117 $as_echo_n "checking for $ac_word... " >&6; }
5118 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5119 $as_echo_n "(cached) " >&6
5121 if test -n "$ac_ct_CC"; then
5122 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5128 test -z "$as_dir" && as_dir=.
5129 for ac_exec_ext in '' $ac_executable_extensions; do
5130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5131 ac_cv_prog_ac_ct_CC="gcc"
5132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5141 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5142 if test -n "$ac_ct_CC"; then
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5144 $as_echo "$ac_ct_CC" >&6; }
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5147 $as_echo "no" >&6; }
5150 if test "x$ac_ct_CC" = x; then
5153 case $cross_compiling:$ac_tool_warned in
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5157 ac_tool_warned=yes ;;
5165 if test -z "$CC"; then
5166 if test -n "$ac_tool_prefix"; then
5167 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5168 set dummy ${ac_tool_prefix}cc; ac_word=$2
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5170 $as_echo_n "checking for $ac_word... " >&6; }
5171 if ${ac_cv_prog_CC+:} false; then :
5172 $as_echo_n "(cached) " >&6
5174 if test -n "$CC"; then
5175 ac_cv_prog_CC="$CC" # Let the user override the test.
5177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181 test -z "$as_dir" && as_dir=.
5182 for ac_exec_ext in '' $ac_executable_extensions; do
5183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5184 ac_cv_prog_CC="${ac_tool_prefix}cc"
5185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5195 if test -n "$CC"; then
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5197 $as_echo "$CC" >&6; }
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5200 $as_echo "no" >&6; }
5206 if test -z "$CC"; then
5207 # Extract the first word of "cc", so it can be a program name with args.
5208 set dummy cc; ac_word=$2
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5210 $as_echo_n "checking for $ac_word... " >&6; }
5211 if ${ac_cv_prog_CC+:} false; then :
5212 $as_echo_n "(cached) " >&6
5214 if test -n "$CC"; then
5215 ac_cv_prog_CC="$CC" # Let the user override the test.
5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222 test -z "$as_dir" && as_dir=.
5223 for ac_exec_ext in '' $ac_executable_extensions; do
5224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5225 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5226 ac_prog_rejected=yes
5230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5237 if test $ac_prog_rejected = yes; then
5238 # We found a bogon in the path, so make sure we never use it.
5239 set dummy $ac_cv_prog_CC
5241 if test $# != 0; then
5242 # We chose a different compiler from the bogus one.
5243 # However, it has the same basename, so the bogon will be chosen
5244 # first if we set CC to just the basename; use the full file name.
5246 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5252 if test -n "$CC"; then
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5254 $as_echo "$CC" >&6; }
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5257 $as_echo "no" >&6; }
5262 if test -z "$CC"; then
5263 if test -n "$ac_tool_prefix"; then
5264 for ac_prog in cl.exe
5266 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5267 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5269 $as_echo_n "checking for $ac_word... " >&6; }
5270 if ${ac_cv_prog_CC+:} false; then :
5271 $as_echo_n "(cached) " >&6
5273 if test -n "$CC"; then
5274 ac_cv_prog_CC="$CC" # Let the user override the test.
5276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5280 test -z "$as_dir" && as_dir=.
5281 for ac_exec_ext in '' $ac_executable_extensions; do
5282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5283 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5294 if test -n "$CC"; then
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5296 $as_echo "$CC" >&6; }
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5299 $as_echo "no" >&6; }
5303 test -n "$CC" && break
5306 if test -z "$CC"; then
5308 for ac_prog in cl.exe
5310 # Extract the first word of "$ac_prog", so it can be a program name with args.
5311 set dummy $ac_prog; ac_word=$2
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5313 $as_echo_n "checking for $ac_word... " >&6; }
5314 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5315 $as_echo_n "(cached) " >&6
5317 if test -n "$ac_ct_CC"; then
5318 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5324 test -z "$as_dir" && as_dir=.
5325 for ac_exec_ext in '' $ac_executable_extensions; do
5326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5327 ac_cv_prog_ac_ct_CC="$ac_prog"
5328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5337 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5338 if test -n "$ac_ct_CC"; then
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5340 $as_echo "$ac_ct_CC" >&6; }
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5343 $as_echo "no" >&6; }
5347 test -n "$ac_ct_CC" && break
5350 if test "x$ac_ct_CC" = x; then
5353 case $cross_compiling:$ac_tool_warned in
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5357 ac_tool_warned=yes ;;
5366 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5367 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5368 as_fn_error $? "no acceptable C compiler found in \$PATH
5369 See \`config.log' for more details" "$LINENO" 5; }
5371 # Provide some information about the compiler.
5372 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5375 for ac_option in --version -v -V -qversion; do
5376 { { ac_try="$ac_compiler $ac_option >&5"
5378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5379 *) ac_try_echo=$ac_try;;
5381 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5382 $as_echo "$ac_try_echo"; } >&5
5383 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5385 if test -s conftest.err; then
5387 ... rest of stderr output deleted ...
5388 10q' conftest.err >conftest.er1
5389 cat conftest.er1 >&5
5391 rm -f conftest.er1 conftest.err
5392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5393 test $ac_status = 0; }
5396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5397 /* end confdefs.h. */
5407 ac_clean_files_save=$ac_clean_files
5408 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5409 # Try to create an executable without -o first, disregard a.out.
5410 # It will help us diagnose broken compilers, and finding out an intuition
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5413 $as_echo_n "checking whether the C compiler works... " >&6; }
5414 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5416 # The possible output files:
5417 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5420 for ac_file in $ac_files
5423 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5424 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5429 if { { ac_try="$ac_link_default"
5431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5432 *) ac_try_echo=$ac_try;;
5434 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5435 $as_echo "$ac_try_echo"; } >&5
5436 (eval "$ac_link_default") 2>&5
5438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5439 test $ac_status = 0; }; then :
5440 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5441 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5442 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5443 # so that the user can short-circuit this test for compilers unknown to
5445 for ac_file in $ac_files ''
5447 test -f "$ac_file" || continue
5449 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5452 # We found the default executable, but exeext='' is most
5456 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5458 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5460 # We set ac_cv_exeext here because the later test for it is not
5461 # safe: cross compilers may not add the suffix if given an `-o'
5462 # argument, so we may need to know it at that point already.
5463 # Even if this section looks crufty: it has the advantage of
5470 test "$ac_cv_exeext" = no && ac_cv_exeext=
5475 if test -z "$ac_file"; then :
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5477 $as_echo "no" >&6; }
5478 $as_echo "$as_me: failed program was:" >&5
5479 sed 's/^/| /' conftest.$ac_ext >&5
5481 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5483 as_fn_error 77 "C compiler cannot create executables
5484 See \`config.log' for more details" "$LINENO" 5; }
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5487 $as_echo "yes" >&6; }
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5490 $as_echo_n "checking for C compiler default output file name... " >&6; }
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5492 $as_echo "$ac_file" >&6; }
5493 ac_exeext=$ac_cv_exeext
5495 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5496 ac_clean_files=$ac_clean_files_save
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5498 $as_echo_n "checking for suffix of executables... " >&6; }
5499 if { { ac_try="$ac_link"
5501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5502 *) ac_try_echo=$ac_try;;
5504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5505 $as_echo "$ac_try_echo"; } >&5
5506 (eval "$ac_link") 2>&5
5508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5509 test $ac_status = 0; }; then :
5510 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5511 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5512 # work properly (i.e., refer to `conftest.exe'), while it won't with
5514 for ac_file in conftest.exe conftest conftest.*; do
5515 test -f "$ac_file" || continue
5517 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5518 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5524 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5526 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5527 See \`config.log' for more details" "$LINENO" 5; }
5529 rm -f conftest conftest$ac_cv_exeext
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5531 $as_echo "$ac_cv_exeext" >&6; }
5533 rm -f conftest.$ac_ext
5534 EXEEXT=$ac_cv_exeext
5536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5537 /* end confdefs.h. */
5542 FILE *f = fopen ("conftest.out", "w");
5543 return ferror (f) || fclose (f) != 0;
5549 ac_clean_files="$ac_clean_files conftest.out"
5550 # Check that the compiler produces executables we can run. If not, either
5551 # the compiler is broken, or we cross compile.
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5553 $as_echo_n "checking whether we are cross compiling... " >&6; }
5554 if test "$cross_compiling" != yes; then
5555 { { ac_try="$ac_link"
5557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5558 *) ac_try_echo=$ac_try;;
5560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5561 $as_echo "$ac_try_echo"; } >&5
5562 (eval "$ac_link") 2>&5
5564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5565 test $ac_status = 0; }
5566 if { ac_try='./conftest$ac_cv_exeext'
5567 { { case "(($ac_try" in
5568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5569 *) ac_try_echo=$ac_try;;
5571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5572 $as_echo "$ac_try_echo"; } >&5
5573 (eval "$ac_try") 2>&5
5575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5576 test $ac_status = 0; }; }; then
5579 if test "$cross_compiling" = maybe; then
5582 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5584 as_fn_error $? "cannot run C compiled programs.
5585 If you meant to cross compile, use \`--host'.
5586 See \`config.log' for more details" "$LINENO" 5; }
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5591 $as_echo "$cross_compiling" >&6; }
5593 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5594 ac_clean_files=$ac_clean_files_save
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5596 $as_echo_n "checking for suffix of object files... " >&6; }
5597 if ${ac_cv_objext+:} false; then :
5598 $as_echo_n "(cached) " >&6
5600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5601 /* end confdefs.h. */
5611 rm -f conftest.o conftest.obj
5612 if { { ac_try="$ac_compile"
5614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5615 *) ac_try_echo=$ac_try;;
5617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5618 $as_echo "$ac_try_echo"; } >&5
5619 (eval "$ac_compile") 2>&5
5621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5622 test $ac_status = 0; }; then :
5623 for ac_file in conftest.o conftest.obj conftest.*; do
5624 test -f "$ac_file" || continue;
5626 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5627 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5632 $as_echo "$as_me: failed program was:" >&5
5633 sed 's/^/| /' conftest.$ac_ext >&5
5635 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5637 as_fn_error $? "cannot compute suffix of object files: cannot compile
5638 See \`config.log' for more details" "$LINENO" 5; }
5640 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5643 $as_echo "$ac_cv_objext" >&6; }
5644 OBJEXT=$ac_cv_objext
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5647 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5648 if ${ac_cv_c_compiler_gnu+:} false; then :
5649 $as_echo_n "(cached) " >&6
5651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5652 /* end confdefs.h. */
5665 if ac_fn_c_try_compile "$LINENO"; then :
5670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5671 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5675 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5676 if test $ac_compiler_gnu = yes; then
5681 ac_test_CFLAGS=${CFLAGS+set}
5682 ac_save_CFLAGS=$CFLAGS
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5684 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5685 if ${ac_cv_prog_cc_g+:} false; then :
5686 $as_echo_n "(cached) " >&6
5688 ac_save_c_werror_flag=$ac_c_werror_flag
5689 ac_c_werror_flag=yes
5692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5693 /* end confdefs.h. */
5703 if ac_fn_c_try_compile "$LINENO"; then :
5707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5708 /* end confdefs.h. */
5718 if ac_fn_c_try_compile "$LINENO"; then :
5721 ac_c_werror_flag=$ac_save_c_werror_flag
5723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5724 /* end confdefs.h. */
5734 if ac_fn_c_try_compile "$LINENO"; then :
5737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5742 ac_c_werror_flag=$ac_save_c_werror_flag
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5745 $as_echo "$ac_cv_prog_cc_g" >&6; }
5746 if test "$ac_test_CFLAGS" = set; then
5747 CFLAGS=$ac_save_CFLAGS
5748 elif test $ac_cv_prog_cc_g = yes; then
5749 if test "$GCC" = yes; then
5755 if test "$GCC" = yes; then
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5762 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5763 if ${ac_cv_prog_cc_c89+:} false; then :
5764 $as_echo_n "(cached) " >&6
5766 ac_cv_prog_cc_c89=no
5768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5769 /* end confdefs.h. */
5773 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5774 struct buf { int x; };
5775 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5776 static char *e (p, i)
5782 static char *f (char * (*g) (char **, int), char **p, ...)
5787 s = g (p, va_arg (v,int));
5792 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5793 function prototypes and stuff, but not '\xHH' hex character constants.
5794 These don't provoke an error unfortunately, instead are silently treated
5795 as 'x'. The following induces an error, until -std is added to get
5796 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5797 array size at least. It's necessary to write '\x00'==0 to get something
5798 that's true only with -std. */
5799 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5801 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5802 inside strings and character constants. */
5804 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5806 int test (int i, double x);
5807 struct s1 {int (*f) (int a);};
5808 struct s2 {int (*f) (double a);};
5809 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5815 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5820 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5821 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5823 CC="$ac_save_CC $ac_arg"
5824 if ac_fn_c_try_compile "$LINENO"; then :
5825 ac_cv_prog_cc_c89=$ac_arg
5827 rm -f core conftest.err conftest.$ac_objext
5828 test "x$ac_cv_prog_cc_c89" != "xno" && break
5830 rm -f conftest.$ac_ext
5835 case "x$ac_cv_prog_cc_c89" in
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5838 $as_echo "none needed" >&6; } ;;
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5841 $as_echo "unsupported" >&6; } ;;
5843 CC="$CC $ac_cv_prog_cc_c89"
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5845 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5847 if test "x$ac_cv_prog_cc_c89" != xno; then :
5852 ac_cpp='$CPP $CPPFLAGS'
5853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5859 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5860 if ${ac_cv_path_SED+:} false; then :
5861 $as_echo_n "(cached) " >&6
5863 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5864 for ac_i in 1 2 3 4 5 6 7; do
5865 ac_script="$ac_script$as_nl$ac_script"
5867 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5868 { ac_script=; unset ac_script;}
5869 if test -z "$SED"; then
5870 ac_path_SED_found=false
5871 # Loop through the user's path and test for each of PROGNAME-LIST
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5876 test -z "$as_dir" && as_dir=.
5877 for ac_prog in sed gsed; do
5878 for ac_exec_ext in '' $ac_executable_extensions; do
5879 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5880 as_fn_executable_p "$ac_path_SED" || continue
5881 # Check for GNU ac_path_SED and select it if it is found.
5882 # Check for GNU $ac_path_SED
5883 case `"$ac_path_SED" --version 2>&1` in
5885 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5888 $as_echo_n 0123456789 >"conftest.in"
5891 cat "conftest.in" "conftest.in" >"conftest.tmp"
5892 mv "conftest.tmp" "conftest.in"
5893 cp "conftest.in" "conftest.nl"
5894 $as_echo '' >> "conftest.nl"
5895 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5896 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5897 as_fn_arith $ac_count + 1 && ac_count=$as_val
5898 if test $ac_count -gt ${ac_path_SED_max-0}; then
5899 # Best one so far, save it but keep looking for a better one
5900 ac_cv_path_SED="$ac_path_SED"
5901 ac_path_SED_max=$ac_count
5903 # 10*(2^10) chars as input seems more than enough
5904 test $ac_count -gt 10 && break
5906 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5909 $ac_path_SED_found && break 3
5914 if test -z "$ac_cv_path_SED"; then
5915 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5923 $as_echo "$ac_cv_path_SED" >&6; }
5924 SED="$ac_cv_path_SED"
5929 if test "x$apr_preload_done" != "xyes" ; then
5931 apr_preload_done="yes"
5933 echo "Applying APR hints file rules for $host"
5938 if test "x$CPPFLAGS" = "x"; then
5939 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DMINT -D_GNU_SOURCE\""
5940 CPPFLAGS="-DMINT -D_GNU_SOURCE"
5942 apr_addto_bugger="-DMINT -D_GNU_SOURCE"
5943 for i in $apr_addto_bugger; do
5944 apr_addto_duplicate="0"
5945 for j in $CPPFLAGS; do
5946 if test "x$i" = "x$j"; then
5947 apr_addto_duplicate="1"
5951 if test $apr_addto_duplicate = "0"; then
5952 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
5953 CPPFLAGS="$CPPFLAGS $i"
5961 if test "x$CPPFLAGS" = "x"; then
5962 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE\""
5963 CPPFLAGS="-DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE"
5965 apr_addto_bugger="-DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE"
5966 for i in $apr_addto_bugger; do
5967 apr_addto_duplicate="0"
5968 for j in $CPPFLAGS; do
5969 if test "x$i" = "x$j"; then
5970 apr_addto_duplicate="1"
5974 if test $apr_addto_duplicate = "0"; then
5975 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
5976 CPPFLAGS="$CPPFLAGS $i"
5982 if test "x$LIBS" = "x"; then
5983 test "x$silent" != "xyes" && echo " setting LIBS to \"-lsvipc -lcurses\""
5984 LIBS="-lsvipc -lcurses"
5986 apr_addto_bugger="-lsvipc -lcurses"
5987 for i in $apr_addto_bugger; do
5988 apr_addto_duplicate="0"
5990 if test "x$i" = "x$j"; then
5991 apr_addto_duplicate="1"
5995 if test $apr_addto_duplicate = "0"; then
5996 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
6003 if test "x$LDFLAGS" = "x"; then
6004 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-Xlinker \"-WL,cap=ia,ba,ph;nmstack=1024000\"\""
6005 LDFLAGS="-Xlinker \"-WL,cap=ia,ba,ph;nmstack=1024000\""
6007 apr_addto_bugger="-Xlinker \"-WL,cap=ia,ba,ph;nmstack=1024000\""
6008 for i in $apr_addto_bugger; do
6009 apr_addto_duplicate="0"
6010 for j in $LDFLAGS; do
6011 if test "x$i" = "x$j"; then
6012 apr_addto_duplicate="1"
6016 if test $apr_addto_duplicate = "0"; then
6017 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
6018 LDFLAGS="$LDFLAGS $i"
6026 if test "x$CPPFLAGS" = "x"; then
6027 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DAUX3 -D_POSIX_SOURCE\""
6028 CPPFLAGS="-DAUX3 -D_POSIX_SOURCE"
6030 apr_addto_bugger="-DAUX3 -D_POSIX_SOURCE"
6031 for i in $apr_addto_bugger; do
6032 apr_addto_duplicate="0"
6033 for j in $CPPFLAGS; do
6034 if test "x$i" = "x$j"; then
6035 apr_addto_duplicate="1"
6039 if test $apr_addto_duplicate = "0"; then
6040 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6041 CPPFLAGS="$CPPFLAGS $i"
6047 if test "x$LIBS" = "x"; then
6048 test "x$silent" != "xyes" && echo " setting LIBS to \"-lposix -lbsd\""
6049 LIBS="-lposix -lbsd"
6051 apr_addto_bugger="-lposix -lbsd"
6052 for i in $apr_addto_bugger; do
6053 apr_addto_duplicate="0"
6055 if test "x$i" = "x$j"; then
6056 apr_addto_duplicate="1"
6060 if test $apr_addto_duplicate = "0"; then
6061 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
6068 if test "x$LDFLAGS" = "x"; then
6069 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-s\""
6072 apr_addto_bugger="-s"
6073 for i in $apr_addto_bugger; do
6074 apr_addto_duplicate="0"
6075 for j in $LDFLAGS; do
6076 if test "x$i" = "x$j"; then
6077 apr_addto_duplicate="1"
6081 if test $apr_addto_duplicate = "0"; then
6082 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
6083 LDFLAGS="$LDFLAGS $i"
6089 test "x$silent" != "xyes" && echo " forcing SHELL to \"/bin/ksh\""
6095 if test "x$CPPFLAGS" = "x"; then
6096 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-U__STR__ -D_THREAD_SAFE\""
6097 CPPFLAGS="-U__STR__ -D_THREAD_SAFE"
6099 apr_addto_bugger="-U__STR__ -D_THREAD_SAFE"
6100 for i in $apr_addto_bugger; do
6101 apr_addto_duplicate="0"
6102 for j in $CPPFLAGS; do
6103 if test "x$i" = "x$j"; then
6104 apr_addto_duplicate="1"
6108 if test $apr_addto_duplicate = "0"; then
6109 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6110 CPPFLAGS="$CPPFLAGS $i"
6118 if test "x$CPPFLAGS" = "x"; then
6119 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_USE_IRS\""
6120 CPPFLAGS="-D_USE_IRS"
6122 apr_addto_bugger="-D_USE_IRS"
6123 for i in $apr_addto_bugger; do
6124 apr_addto_duplicate="0"
6125 for j in $CPPFLAGS; do
6126 if test "x$i" = "x$j"; then
6127 apr_addto_duplicate="1"
6131 if test $apr_addto_duplicate = "0"; then
6132 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6133 CPPFLAGS="$CPPFLAGS $i"
6141 if test "x$CPPFLAGS" = "x"; then
6142 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_USE_IRS\""
6143 CPPFLAGS="-D_USE_IRS"
6145 apr_addto_bugger="-D_USE_IRS"
6146 for i in $apr_addto_bugger; do
6147 apr_addto_duplicate="0"
6148 for j in $CPPFLAGS; do
6149 if test "x$i" = "x$j"; then
6150 apr_addto_duplicate="1"
6154 if test $apr_addto_duplicate = "0"; then
6155 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6156 CPPFLAGS="$CPPFLAGS $i"
6164 if test "x$CPPFLAGS" = "x"; then
6165 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_USE_IRS\""
6166 CPPFLAGS="-D_USE_IRS"
6168 apr_addto_bugger="-D_USE_IRS"
6169 for i in $apr_addto_bugger; do
6170 apr_addto_duplicate="0"
6171 for j in $CPPFLAGS; do
6172 if test "x$i" = "x$j"; then
6173 apr_addto_duplicate="1"
6177 if test $apr_addto_duplicate = "0"; then
6178 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6179 CPPFLAGS="$CPPFLAGS $i"
6186 if $CC 2>&1 | grep 'xlc' > /dev/null; then
6188 if test -z "$AIX_XLC"; then
6189 test "x$silent" != "xyes" && echo " setting AIX_XLC to \"yes\""
6194 if test "x$CFLAGS" = "x"; then
6195 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-qHALT=E\""
6198 apr_addto_bugger="-qHALT=E"
6199 for i in $apr_addto_bugger; do
6200 apr_addto_duplicate="0"
6201 for j in $CFLAGS; do
6202 if test "x$i" = "x$j"; then
6203 apr_addto_duplicate="1"
6207 if test $apr_addto_duplicate = "0"; then
6208 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
6216 if test -z "$apr_sysvsem_is_global"; then
6217 test "x$silent" != "xyes" && echo " setting apr_sysvsem_is_global to \"yes\""
6218 apr_sysvsem_is_global="yes"
6222 if test -z "$apr_lock_method"; then
6223 test "x$silent" != "xyes" && echo " setting apr_lock_method to \"USE_SYSVSEM_SERIALIZE\""
6224 apr_lock_method="USE_SYSVSEM_SERIALIZE"
6228 *-ibm-aix3* | *-ibm-aix4.1.*)
6232 if test "x$LDFLAGS" = "x"; then
6233 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-Wl,-brtl\""
6236 apr_addto_bugger="-Wl,-brtl"
6237 for i in $apr_addto_bugger; do
6238 apr_addto_duplicate="0"
6239 for j in $LDFLAGS; do
6240 if test "x$i" = "x$j"; then
6241 apr_addto_duplicate="1"
6245 if test $apr_addto_duplicate = "0"; then
6246 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
6247 LDFLAGS="$LDFLAGS $i"
6257 if test "x$CPPFLAGS" = "x"; then
6258 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DAPOLLO\""
6261 apr_addto_bugger="-DAPOLLO"
6262 for i in $apr_addto_bugger; do
6263 apr_addto_duplicate="0"
6264 for j in $CPPFLAGS; do
6265 if test "x$i" = "x$j"; then
6266 apr_addto_duplicate="1"
6270 if test $apr_addto_duplicate = "0"; then
6271 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6272 CPPFLAGS="$CPPFLAGS $i"
6280 if test "x$CPPFLAGS" = "x"; then
6281 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DDGUX\""
6284 apr_addto_bugger="-DDGUX"
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 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6295 CPPFLAGS="$CPPFLAGS $i"
6303 test "x$silent" != "xyes" && echo " forcing SHELL to \"sh\""
6307 if test -z "$apr_gethostbyname_is_thread_safe"; then
6308 test "x$silent" != "xyes" && echo " setting apr_gethostbyname_is_thread_safe to \"yes\""
6309 apr_gethostbyname_is_thread_safe="yes"
6313 if test -z "$apr_gethostbyaddr_is_thread_safe"; then
6314 test "x$silent" != "xyes" && echo " setting apr_gethostbyaddr_is_thread_safe to \"yes\""
6315 apr_gethostbyaddr_is_thread_safe="yes"
6319 if test -z "$apr_getservbyname_is_thread_safe"; then
6320 test "x$silent" != "xyes" && echo " setting apr_getservbyname_is_thread_safe to \"yes\""
6321 apr_getservbyname_is_thread_safe="yes"
6327 if test "x$CPPFLAGS" = "x"; then
6328 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DHIUX\""
6331 apr_addto_bugger="-DHIUX"
6332 for i in $apr_addto_bugger; do
6333 apr_addto_duplicate="0"
6334 for j in $CPPFLAGS; do
6335 if test "x$i" = "x$j"; then
6336 apr_addto_duplicate="1"
6340 if test $apr_addto_duplicate = "0"; then
6341 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6342 CPPFLAGS="$CPPFLAGS $i"
6350 if test "x$CPPFLAGS" = "x"; then
6351 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DHPUX11 -D_REENTRANT -D_HPUX_SOURCE\""
6352 CPPFLAGS="-DHPUX11 -D_REENTRANT -D_HPUX_SOURCE"
6354 apr_addto_bugger="-DHPUX11 -D_REENTRANT -D_HPUX_SOURCE"
6355 for i in $apr_addto_bugger; do
6356 apr_addto_duplicate="0"
6357 for j in $CPPFLAGS; do
6358 if test "x$i" = "x$j"; then
6359 apr_addto_duplicate="1"
6363 if test $apr_addto_duplicate = "0"; then
6364 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6365 CPPFLAGS="$CPPFLAGS $i"
6375 if test "x$CPPFLAGS" = "x"; then
6376 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSELECT_NEEDS_CAST\""
6377 CPPFLAGS="-DSELECT_NEEDS_CAST"
6379 apr_addto_bugger="-DSELECT_NEEDS_CAST"
6380 for i in $apr_addto_bugger; do
6381 apr_addto_duplicate="0"
6382 for j in $CPPFLAGS; do
6383 if test "x$i" = "x$j"; then
6384 apr_addto_duplicate="1"
6388 if test $apr_addto_duplicate = "0"; then
6389 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6390 CPPFLAGS="$CPPFLAGS $i"
6398 if test "x$CPPFLAGS" = "x"; then
6399 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_REENTRANT\""
6400 CPPFLAGS="-D_REENTRANT"
6402 apr_addto_bugger="-D_REENTRANT"
6403 for i in $apr_addto_bugger; do
6404 apr_addto_duplicate="0"
6405 for j in $CPPFLAGS; do
6406 if test "x$i" = "x$j"; then
6407 apr_addto_duplicate="1"
6411 if test $apr_addto_duplicate = "0"; then
6412 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6413 CPPFLAGS="$CPPFLAGS $i"
6421 if test "x$CPPFLAGS" = "x"; then
6422 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DHPUX -D_REENTRANT\""
6423 CPPFLAGS="-DHPUX -D_REENTRANT"
6425 apr_addto_bugger="-DHPUX -D_REENTRANT"
6426 for i in $apr_addto_bugger; do
6427 apr_addto_duplicate="0"
6428 for j in $CPPFLAGS; do
6429 if test "x$i" = "x$j"; then
6430 apr_addto_duplicate="1"
6434 if test $apr_addto_duplicate = "0"; then
6435 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6436 CPPFLAGS="$CPPFLAGS $i"
6444 if test "x$CPPFLAGS" = "x"; then
6445 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DLINUX -D_REENTRANT -D_GNU_SOURCE\""
6446 CPPFLAGS="-DLINUX -D_REENTRANT -D_GNU_SOURCE"
6448 apr_addto_bugger="-DLINUX -D_REENTRANT -D_GNU_SOURCE"
6449 for i in $apr_addto_bugger; do
6450 apr_addto_duplicate="0"
6451 for j in $CPPFLAGS; do
6452 if test "x$i" = "x$j"; then
6453 apr_addto_duplicate="1"
6457 if test $apr_addto_duplicate = "0"; then
6458 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6459 CPPFLAGS="$CPPFLAGS $i"
6467 if test "x$CPPFLAGS" = "x"; then
6468 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D__NO_INCLUDE_WARN__ -DLYNXOS\""
6469 CPPFLAGS="-D__NO_INCLUDE_WARN__ -DLYNXOS"
6471 apr_addto_bugger="-D__NO_INCLUDE_WARN__ -DLYNXOS"
6472 for i in $apr_addto_bugger; do
6473 apr_addto_duplicate="0"
6474 for j in $CPPFLAGS; do
6475 if test "x$i" = "x$j"; then
6476 apr_addto_duplicate="1"
6480 if test $apr_addto_duplicate = "0"; then
6481 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6482 CPPFLAGS="$CPPFLAGS $i"
6488 if test "x$LIBS" = "x"; then
6489 test "x$silent" != "xyes" && echo " setting LIBS to \"-lbsd\""
6492 apr_addto_bugger="-lbsd"
6493 for i in $apr_addto_bugger; do
6494 apr_addto_duplicate="0"
6496 if test "x$i" = "x$j"; then
6497 apr_addto_duplicate="1"
6501 if test $apr_addto_duplicate = "0"; then
6502 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
6511 if test "x$CFLAGS" = "x"; then
6512 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-m486\""
6515 apr_addto_bugger="-m486"
6516 for i in $apr_addto_bugger; do
6517 apr_addto_duplicate="0"
6518 for j in $CFLAGS; do
6519 if test "x$i" = "x$j"; then
6520 apr_addto_duplicate="1"
6524 if test $apr_addto_duplicate = "0"; then
6525 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
6536 if test "x$CFLAGS" = "x"; then
6537 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-D_REENTRANT\""
6538 CFLAGS="-D_REENTRANT"
6540 apr_addto_bugger="-D_REENTRANT"
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 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
6561 if test "x$CPPFLAGS" = "x"; then
6562 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_POSIX_THREADS\""
6563 CPPFLAGS="-D_POSIX_THREADS"
6565 apr_addto_bugger="-D_POSIX_THREADS"
6566 for i in $apr_addto_bugger; do
6567 apr_addto_duplicate="0"
6568 for j in $CPPFLAGS; do
6569 if test "x$i" = "x$j"; then
6570 apr_addto_duplicate="1"
6574 if test $apr_addto_duplicate = "0"; then
6575 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6576 CPPFLAGS="$CPPFLAGS $i"
6581 # binding to an ephemeral port fails on OpenBSD so override
6582 # the test for O_NONBLOCK inheritance across accept().
6584 if test -z "$ac_cv_o_nonblock_inherited"; then
6585 test "x$silent" != "xyes" && echo " setting ac_cv_o_nonblock_inherited to \"yes\""
6586 ac_cv_o_nonblock_inherited="yes"
6592 if test "x$CPPFLAGS" = "x"; then
6593 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DNETBSD\""
6596 apr_addto_bugger="-DNETBSD"
6597 for i in $apr_addto_bugger; do
6598 apr_addto_duplicate="0"
6599 for j in $CPPFLAGS; do
6600 if test "x$i" = "x$j"; then
6601 apr_addto_duplicate="1"
6605 if test $apr_addto_duplicate = "0"; then
6606 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6607 CPPFLAGS="$CPPFLAGS $i"
6612 # fcntl() lies about O_NONBLOCK on an accept()ed socket (PR kern/26950)
6614 if test -z "$ac_cv_o_nonblock_inherited"; then
6615 test "x$silent" != "xyes" && echo " setting ac_cv_o_nonblock_inherited to \"yes\""
6616 ac_cv_o_nonblock_inherited="yes"
6622 if test -z "$apr_lock_method"; then
6623 test "x$silent" != "xyes" && echo " setting apr_lock_method to \"USE_FLOCK_SERIALIZE\""
6624 apr_lock_method="USE_FLOCK_SERIALIZE"
6627 if test -x /sbin/sysctl; then
6628 os_version=`/sbin/sysctl -n kern.osreldate`
6632 # 502102 is when libc_r switched to libpthread (aka libkse).
6633 if test $os_version -ge "502102"; then
6634 apr_cv_pthreads_cflags="none"
6635 apr_cv_pthreads_lib="-lpthread"
6638 if test "x$CPPFLAGS" = "x"; then
6639 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_THREAD_SAFE -D_REENTRANT\""
6640 CPPFLAGS="-D_THREAD_SAFE -D_REENTRANT"
6642 apr_addto_bugger="-D_THREAD_SAFE -D_REENTRANT"
6643 for i in $apr_addto_bugger; do
6644 apr_addto_duplicate="0"
6645 for j in $CPPFLAGS; do
6646 if test "x$i" = "x$j"; then
6647 apr_addto_duplicate="1"
6651 if test $apr_addto_duplicate = "0"; then
6652 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6653 CPPFLAGS="$CPPFLAGS $i"
6659 if test -z "$enable_threads"; then
6660 test "x$silent" != "xyes" && echo " setting enable_threads to \"no\""
6665 # prevent use of KQueue before FreeBSD 4.8
6666 if test $os_version -lt "480000"; then
6668 if test -z "$ac_cv_func_kqueue"; then
6669 test "x$silent" != "xyes" && echo " setting ac_cv_func_kqueue to \"no\""
6670 ac_cv_func_kqueue="no"
6677 if test "x$CPPFLAGS" = "x"; then
6678 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_REENTRANT -D_GNU_SOURCE\""
6679 CPPFLAGS="-D_REENTRANT -D_GNU_SOURCE"
6681 apr_addto_bugger="-D_REENTRANT -D_GNU_SOURCE"
6682 for i in $apr_addto_bugger; do
6683 apr_addto_duplicate="0"
6684 for j in $CPPFLAGS; do
6685 if test "x$i" = "x$j"; then
6686 apr_addto_duplicate="1"
6690 if test $apr_addto_duplicate = "0"; then
6691 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6692 CPPFLAGS="$CPPFLAGS $i"
6700 if test "x$CPPFLAGS" = "x"; then
6701 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_REENTRANT -D_GNU_SOURCE -DHURD\""
6702 CPPFLAGS="-D_REENTRANT -D_GNU_SOURCE -DHURD"
6704 apr_addto_bugger="-D_REENTRANT -D_GNU_SOURCE -DHURD"
6705 for i in $apr_addto_bugger; do
6706 apr_addto_duplicate="0"
6707 for j in $CPPFLAGS; do
6708 if test "x$i" = "x$j"; then
6709 apr_addto_duplicate="1"
6713 if test $apr_addto_duplicate = "0"; then
6714 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6715 CPPFLAGS="$CPPFLAGS $i"
6723 if test -z "$CFLAGS"; then
6724 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-O\""
6729 if test "x$CPPFLAGS" = "x"; then
6730 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DNEXT\""
6733 apr_addto_bugger="-DNEXT"
6734 for i in $apr_addto_bugger; do
6735 apr_addto_duplicate="0"
6736 for j in $CPPFLAGS; do
6737 if test "x$i" = "x$j"; then
6738 apr_addto_duplicate="1"
6742 if test $apr_addto_duplicate = "0"; then
6743 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6744 CPPFLAGS="$CPPFLAGS $i"
6752 if test -z "$CFLAGS"; then
6753 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-O\""
6758 if test "x$CPPFLAGS" = "x"; then
6759 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DNEXT\""
6762 apr_addto_bugger="-DNEXT"
6763 for i in $apr_addto_bugger; do
6764 apr_addto_duplicate="0"
6765 for j in $CPPFLAGS; do
6766 if test "x$i" = "x$j"; then
6767 apr_addto_duplicate="1"
6771 if test $apr_addto_duplicate = "0"; then
6772 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6773 CPPFLAGS="$CPPFLAGS $i"
6781 if test "x$CPPFLAGS" = "x"; then
6782 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DRHAPSODY\""
6783 CPPFLAGS="-DRHAPSODY"
6785 apr_addto_bugger="-DRHAPSODY"
6786 for i in $apr_addto_bugger; do
6787 apr_addto_duplicate="0"
6788 for j in $CPPFLAGS; do
6789 if test "x$i" = "x$j"; then
6790 apr_addto_duplicate="1"
6794 if test $apr_addto_duplicate = "0"; then
6795 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6796 CPPFLAGS="$CPPFLAGS $i"
6804 if test "x$CPPFLAGS" = "x"; then
6805 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp\""
6806 CPPFLAGS="-DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp"
6808 apr_addto_bugger="-DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp"
6809 for i in $apr_addto_bugger; do
6810 apr_addto_duplicate="0"
6811 for j in $CPPFLAGS; do
6812 if test "x$i" = "x$j"; then
6813 apr_addto_duplicate="1"
6817 if test $apr_addto_duplicate = "0"; then
6818 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6819 CPPFLAGS="$CPPFLAGS $i"
6825 if test -z "$apr_posixsem_is_global"; then
6826 test "x$silent" != "xyes" && echo " setting apr_posixsem_is_global to \"yes\""
6827 apr_posixsem_is_global="yes"
6831 *-apple-darwin[1-9].*)
6832 # APR's use of kqueue has triggered kernel panics for some
6833 # 10.5.x (Darwin 9.x) users when running the entire test suite.
6834 # In 10.4.x, use of kqueue would cause the socket tests to hang.
6835 # 10.6+ (Darwin 10.x is supposed to fix the KQueue issues
6837 if test -z "$ac_cv_func_kqueue"; then
6838 test "x$silent" != "xyes" && echo " setting ac_cv_func_kqueue to \"no\""
6839 ac_cv_func_kqueue="no"
6843 if test -z "$ac_cv_func_poll"; then
6844 test "x$silent" != "xyes" && echo " setting ac_cv_func_poll to \"no\""
6845 ac_cv_func_poll="no"
6851 if test "x$CPPFLAGS" = "x"; then
6852 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DDARWIN_10\""
6853 CPPFLAGS="-DDARWIN_10"
6855 apr_addto_bugger="-DDARWIN_10"
6856 for i in $apr_addto_bugger; do
6857 apr_addto_duplicate="0"
6858 for j in $CPPFLAGS; do
6859 if test "x$i" = "x$j"; then
6860 apr_addto_duplicate="1"
6864 if test $apr_addto_duplicate = "0"; then
6865 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6866 CPPFLAGS="$CPPFLAGS $i"
6876 if test "x$CPPFLAGS" = "x"; then
6877 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DOSF1\""
6880 apr_addto_bugger="-DOSF1"
6881 for i in $apr_addto_bugger; do
6882 apr_addto_duplicate="0"
6883 for j in $CPPFLAGS; do
6884 if test "x$i" = "x$j"; then
6885 apr_addto_duplicate="1"
6889 if test $apr_addto_duplicate = "0"; then
6890 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6891 CPPFLAGS="$CPPFLAGS $i"
6896 # process-shared mutexes don't seem to work in Tru64 5.0
6898 if test -z "$apr_cv_process_shared_works"; then
6899 test "x$silent" != "xyes" && echo " setting apr_cv_process_shared_works to \"no\""
6900 apr_cv_process_shared_works="no"
6908 if test "x$CPPFLAGS" = "x"; then
6909 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DQNX\""
6912 apr_addto_bugger="-DQNX"
6913 for i in $apr_addto_bugger; do
6914 apr_addto_duplicate="0"
6915 for j in $CPPFLAGS; do
6916 if test "x$i" = "x$j"; then
6917 apr_addto_duplicate="1"
6921 if test $apr_addto_duplicate = "0"; then
6922 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6923 CPPFLAGS="$CPPFLAGS $i"
6929 if test "x$LIBS" = "x"; then
6930 test "x$silent" != "xyes" && echo " setting LIBS to \"-N128k -lunix\""
6931 LIBS="-N128k -lunix"
6933 apr_addto_bugger="-N128k -lunix"
6934 for i in $apr_addto_bugger; do
6935 apr_addto_duplicate="0"
6937 if test "x$i" = "x$j"; then
6938 apr_addto_duplicate="1"
6942 if test $apr_addto_duplicate = "0"; then
6943 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
6952 if test "x$CPPFLAGS" = "x"; then
6953 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DQNX\""
6956 apr_addto_bugger="-DQNX"
6957 for i in $apr_addto_bugger; do
6958 apr_addto_duplicate="0"
6959 for j in $CPPFLAGS; do
6960 if test "x$i" = "x$j"; then
6961 apr_addto_duplicate="1"
6965 if test $apr_addto_duplicate = "0"; then
6966 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6967 CPPFLAGS="$CPPFLAGS $i"
6973 if test "x$CFLAGS" = "x"; then
6974 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-mf -3\""
6977 apr_addto_bugger="-mf -3"
6978 for i in $apr_addto_bugger; do
6979 apr_addto_duplicate="0"
6980 for j in $CFLAGS; do
6981 if test "x$i" = "x$j"; then
6982 apr_addto_duplicate="1"
6986 if test $apr_addto_duplicate = "0"; then
6987 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
6994 if test "x$LIBS" = "x"; then
6995 test "x$silent" != "xyes" && echo " setting LIBS to \"-N128k -lunix\""
6996 LIBS="-N128k -lunix"
6998 apr_addto_bugger="-N128k -lunix"
6999 for i in $apr_addto_bugger; do
7000 apr_addto_duplicate="0"
7002 if test "x$i" = "x$j"; then
7003 apr_addto_duplicate="1"
7007 if test $apr_addto_duplicate = "0"; then
7008 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7017 if test "x$CPPFLAGS" = "x"; then
7018 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-posix -DISC\""
7019 CPPFLAGS="-posix -DISC"
7021 apr_addto_bugger="-posix -DISC"
7022 for i in $apr_addto_bugger; do
7023 apr_addto_duplicate="0"
7024 for j in $CPPFLAGS; do
7025 if test "x$i" = "x$j"; then
7026 apr_addto_duplicate="1"
7030 if test $apr_addto_duplicate = "0"; then
7031 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7032 CPPFLAGS="$CPPFLAGS $i"
7038 if test "x$LDFLAGS" = "x"; then
7039 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-posix\""
7042 apr_addto_bugger="-posix"
7043 for i in $apr_addto_bugger; do
7044 apr_addto_duplicate="0"
7045 for j in $LDFLAGS; do
7046 if test "x$i" = "x$j"; then
7047 apr_addto_duplicate="1"
7051 if test $apr_addto_duplicate = "0"; then
7052 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
7053 LDFLAGS="$LDFLAGS $i"
7059 if test "x$LIBS" = "x"; then
7060 test "x$silent" != "xyes" && echo " setting LIBS to \"-linet\""
7063 apr_addto_bugger="-linet"
7064 for i in $apr_addto_bugger; do
7065 apr_addto_duplicate="0"
7067 if test "x$i" = "x$j"; then
7068 apr_addto_duplicate="1"
7072 if test $apr_addto_duplicate = "0"; then
7073 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7082 if test "x$CPPFLAGS" = "x"; then
7083 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSCO -D_REENTRANT\""
7084 CPPFLAGS="-DSCO -D_REENTRANT"
7086 apr_addto_bugger="-DSCO -D_REENTRANT"
7087 for i in $apr_addto_bugger; do
7088 apr_addto_duplicate="0"
7089 for j in $CPPFLAGS; do
7090 if test "x$i" = "x$j"; then
7091 apr_addto_duplicate="1"
7095 if test $apr_addto_duplicate = "0"; then
7096 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7097 CPPFLAGS="$CPPFLAGS $i"
7102 if test "$GCC" = "no"; then
7104 if test "x$CFLAGS" = "x"; then
7105 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Oacgiltz\""
7108 apr_addto_bugger="-Oacgiltz"
7109 for i in $apr_addto_bugger; do
7110 apr_addto_duplicate="0"
7111 for j in $CFLAGS; do
7112 if test "x$i" = "x$j"; then
7113 apr_addto_duplicate="1"
7117 if test $apr_addto_duplicate = "0"; then
7118 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
7126 if test "x$LIBS" = "x"; then
7127 test "x$silent" != "xyes" && echo " setting LIBS to \"-lPW -lmalloc\""
7128 LIBS="-lPW -lmalloc"
7130 apr_addto_bugger="-lPW -lmalloc"
7131 for i in $apr_addto_bugger; do
7132 apr_addto_duplicate="0"
7134 if test "x$i" = "x$j"; then
7135 apr_addto_duplicate="1"
7139 if test $apr_addto_duplicate = "0"; then
7140 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7149 if test "x$CPPFLAGS" = "x"; then
7150 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSCO5 -D_REENTRANT\""
7151 CPPFLAGS="-DSCO5 -D_REENTRANT"
7153 apr_addto_bugger="-DSCO5 -D_REENTRANT"
7154 for i in $apr_addto_bugger; do
7155 apr_addto_duplicate="0"
7156 for j in $CPPFLAGS; do
7157 if test "x$i" = "x$j"; then
7158 apr_addto_duplicate="1"
7162 if test $apr_addto_duplicate = "0"; then
7163 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7164 CPPFLAGS="$CPPFLAGS $i"
7170 *-sco_sv*|*-SCO_SV*)
7172 if test "x$CPPFLAGS" = "x"; then
7173 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSCO -D_REENTRANT\""
7174 CPPFLAGS="-DSCO -D_REENTRANT"
7176 apr_addto_bugger="-DSCO -D_REENTRANT"
7177 for i in $apr_addto_bugger; do
7178 apr_addto_duplicate="0"
7179 for j in $CPPFLAGS; do
7180 if test "x$i" = "x$j"; then
7181 apr_addto_duplicate="1"
7185 if test $apr_addto_duplicate = "0"; then
7186 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7187 CPPFLAGS="$CPPFLAGS $i"
7193 if test "x$LIBS" = "x"; then
7194 test "x$silent" != "xyes" && echo " setting LIBS to \"-lPW -lmalloc\""
7195 LIBS="-lPW -lmalloc"
7197 apr_addto_bugger="-lPW -lmalloc"
7198 for i in $apr_addto_bugger; do
7199 apr_addto_duplicate="0"
7201 if test "x$i" = "x$j"; then
7202 apr_addto_duplicate="1"
7206 if test $apr_addto_duplicate = "0"; then
7207 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7215 PLATOSVERS=`echo $host | sed 's/^.*solaris2.//'`
7217 if test "x$CPPFLAGS" = "x"; then
7218 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSOLARIS2=$PLATOSVERS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT\""
7219 CPPFLAGS="-DSOLARIS2=$PLATOSVERS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT"
7221 apr_addto_bugger="-DSOLARIS2=$PLATOSVERS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT"
7222 for i in $apr_addto_bugger; do
7223 apr_addto_duplicate="0"
7224 for j in $CPPFLAGS; do
7225 if test "x$i" = "x$j"; then
7226 apr_addto_duplicate="1"
7230 if test $apr_addto_duplicate = "0"; then
7231 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7232 CPPFLAGS="$CPPFLAGS $i"
7237 if test $PLATOSVERS -ge 10; then
7239 if test -z "$apr_lock_method"; then
7240 test "x$silent" != "xyes" && echo " setting apr_lock_method to \"USE_PROC_PTHREAD_SERIALIZE\""
7241 apr_lock_method="USE_PROC_PTHREAD_SERIALIZE"
7246 if test -z "$apr_lock_method"; then
7247 test "x$silent" != "xyes" && echo " setting apr_lock_method to \"USE_FCNTL_SERIALIZE\""
7248 apr_lock_method="USE_FCNTL_SERIALIZE"
7252 # readdir64_r error handling seems broken on Solaris (at least
7253 # up till 2.8) -- it will return -1 at end-of-directory.
7255 if test -z "$ac_cv_func_readdir64_r"; then
7256 test "x$silent" != "xyes" && echo " setting ac_cv_func_readdir64_r to \"no\""
7257 ac_cv_func_readdir64_r="no"
7263 if test "x$CPPFLAGS" = "x"; then
7264 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSUNOS4\""
7267 apr_addto_bugger="-DSUNOS4"
7268 for i in $apr_addto_bugger; do
7269 apr_addto_duplicate="0"
7270 for j in $CPPFLAGS; do
7271 if test "x$i" = "x$j"; then
7272 apr_addto_duplicate="1"
7276 if test $apr_addto_duplicate = "0"; then
7277 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7278 CPPFLAGS="$CPPFLAGS $i"
7286 if test "x$CPPFLAGS" = "x"; then
7287 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DUW=100\""
7290 apr_addto_bugger="-DUW=100"
7291 for i in $apr_addto_bugger; do
7292 apr_addto_duplicate="0"
7293 for j in $CPPFLAGS; do
7294 if test "x$i" = "x$j"; then
7295 apr_addto_duplicate="1"
7299 if test $apr_addto_duplicate = "0"; then
7300 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7301 CPPFLAGS="$CPPFLAGS $i"
7309 if test "x$CPPFLAGS" = "x"; then
7310 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DUW=200\""
7313 apr_addto_bugger="-DUW=200"
7314 for i in $apr_addto_bugger; do
7315 apr_addto_duplicate="0"
7316 for j in $CPPFLAGS; do
7317 if test "x$i" = "x$j"; then
7318 apr_addto_duplicate="1"
7322 if test $apr_addto_duplicate = "0"; then
7323 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7324 CPPFLAGS="$CPPFLAGS $i"
7330 if test "x$LIBS" = "x"; then
7331 test "x$silent" != "xyes" && echo " setting LIBS to \"-lgen\""
7334 apr_addto_bugger="-lgen"
7335 for i in $apr_addto_bugger; do
7336 apr_addto_duplicate="0"
7338 if test "x$i" = "x$j"; then
7339 apr_addto_duplicate="1"
7343 if test $apr_addto_duplicate = "0"; then
7344 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7353 if test "x$CPPFLAGS" = "x"; then
7354 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DUW=211\""
7357 apr_addto_bugger="-DUW=211"
7358 for i in $apr_addto_bugger; do
7359 apr_addto_duplicate="0"
7360 for j in $CPPFLAGS; do
7361 if test "x$i" = "x$j"; then
7362 apr_addto_duplicate="1"
7366 if test $apr_addto_duplicate = "0"; then
7367 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7368 CPPFLAGS="$CPPFLAGS $i"
7374 if test "x$LIBS" = "x"; then
7375 test "x$silent" != "xyes" && echo " setting LIBS to \"-lgen\""
7378 apr_addto_bugger="-lgen"
7379 for i in $apr_addto_bugger; do
7380 apr_addto_duplicate="0"
7382 if test "x$i" = "x$j"; then
7383 apr_addto_duplicate="1"
7387 if test $apr_addto_duplicate = "0"; then
7388 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7397 if test "x$CPPFLAGS" = "x"; then
7398 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DUW=212\""
7401 apr_addto_bugger="-DUW=212"
7402 for i in $apr_addto_bugger; do
7403 apr_addto_duplicate="0"
7404 for j in $CPPFLAGS; do
7405 if test "x$i" = "x$j"; then
7406 apr_addto_duplicate="1"
7410 if test $apr_addto_duplicate = "0"; then
7411 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7412 CPPFLAGS="$CPPFLAGS $i"
7418 if test "x$LIBS" = "x"; then
7419 test "x$silent" != "xyes" && echo " setting LIBS to \"-lgen\""
7422 apr_addto_bugger="-lgen"
7423 for i in $apr_addto_bugger; do
7424 apr_addto_duplicate="0"
7426 if test "x$i" = "x$j"; then
7427 apr_addto_duplicate="1"
7431 if test $apr_addto_duplicate = "0"; then
7432 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7441 if test "x$CPPFLAGS" = "x"; then
7442 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DUW=700\""
7445 apr_addto_bugger="-DUW=700"
7446 for i in $apr_addto_bugger; do
7447 apr_addto_duplicate="0"
7448 for j in $CPPFLAGS; do
7449 if test "x$i" = "x$j"; then
7450 apr_addto_duplicate="1"
7454 if test $apr_addto_duplicate = "0"; then
7455 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7456 CPPFLAGS="$CPPFLAGS $i"
7462 if test "x$LIBS" = "x"; then
7463 test "x$silent" != "xyes" && echo " setting LIBS to \"-lgen\""
7466 apr_addto_bugger="-lgen"
7467 for i in $apr_addto_bugger; do
7468 apr_addto_duplicate="0"
7470 if test "x$i" = "x$j"; then
7471 apr_addto_duplicate="1"
7475 if test $apr_addto_duplicate = "0"; then
7476 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7485 if test "x$CPPFLAGS" = "x"; then
7486 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4\""
7489 apr_addto_bugger="-DSVR4"
7490 for i in $apr_addto_bugger; do
7491 apr_addto_duplicate="0"
7492 for j in $CPPFLAGS; do
7493 if test "x$i" = "x$j"; then
7494 apr_addto_duplicate="1"
7498 if test $apr_addto_duplicate = "0"; then
7499 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7500 CPPFLAGS="$CPPFLAGS $i"
7506 if test "x$LIBS" = "x"; then
7507 test "x$silent" != "xyes" && echo " setting LIBS to \"-lc -lgen\""
7510 apr_addto_bugger="-lc -lgen"
7511 for i in $apr_addto_bugger; do
7512 apr_addto_duplicate="0"
7514 if test "x$i" = "x$j"; then
7515 apr_addto_duplicate="1"
7519 if test $apr_addto_duplicate = "0"; then
7520 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7529 if test "x$CPPFLAGS" = "x"; then
7530 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4\""
7533 apr_addto_bugger="-DSVR4"
7534 for i in $apr_addto_bugger; do
7535 apr_addto_duplicate="0"
7536 for j in $CPPFLAGS; do
7537 if test "x$i" = "x$j"; then
7538 apr_addto_duplicate="1"
7542 if test $apr_addto_duplicate = "0"; then
7543 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7544 CPPFLAGS="$CPPFLAGS $i"
7550 if test "x$LIBS" = "x"; then
7551 test "x$silent" != "xyes" && echo " setting LIBS to \"-lgen\""
7554 apr_addto_bugger="-lgen"
7555 for i in $apr_addto_bugger; do
7556 apr_addto_duplicate="0"
7558 if test "x$i" = "x$j"; then
7559 apr_addto_duplicate="1"
7563 if test $apr_addto_duplicate = "0"; then
7564 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7573 if test "x$CPPFLAGS" = "x"; then
7574 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DTPF -D_POSIX_SOURCE\""
7575 CPPFLAGS="-DTPF -D_POSIX_SOURCE"
7577 apr_addto_bugger="-DTPF -D_POSIX_SOURCE"
7578 for i in $apr_addto_bugger; do
7579 apr_addto_duplicate="0"
7580 for j in $CPPFLAGS; do
7581 if test "x$i" = "x$j"; then
7582 apr_addto_duplicate="1"
7586 if test $apr_addto_duplicate = "0"; then
7587 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7588 CPPFLAGS="$CPPFLAGS $i"
7594 bs2000*-siemens-sysv*)
7596 if test -z "$CFLAGS"; then
7597 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-O\""
7602 if test "x$CPPFLAGS" = "x"; then
7603 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4 -D_XPG_IV -D_KMEMUSER\""
7604 CPPFLAGS="-DSVR4 -D_XPG_IV -D_KMEMUSER"
7606 apr_addto_bugger="-DSVR4 -D_XPG_IV -D_KMEMUSER"
7607 for i in $apr_addto_bugger; do
7608 apr_addto_duplicate="0"
7609 for j in $CPPFLAGS; do
7610 if test "x$i" = "x$j"; then
7611 apr_addto_duplicate="1"
7615 if test $apr_addto_duplicate = "0"; then
7616 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7617 CPPFLAGS="$CPPFLAGS $i"
7623 if test "x$LIBS" = "x"; then
7624 test "x$silent" != "xyes" && echo " setting LIBS to \"-lsocket\""
7627 apr_addto_bugger="-lsocket"
7628 for i in $apr_addto_bugger; do
7629 apr_addto_duplicate="0"
7631 if test "x$i" = "x$j"; then
7632 apr_addto_duplicate="1"
7636 if test $apr_addto_duplicate = "0"; then
7637 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7644 if test -z "$enable_threads"; then
7645 test "x$silent" != "xyes" && echo " setting enable_threads to \"no\""
7652 if test "x$CPPFLAGS" = "x"; then
7653 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4 -D_XPG_IV -DHAS_DLFCN -DUSE_MMAP_FILES -DUSE_SYSVSEM_SERIALIZED_ACCEPT\""
7654 CPPFLAGS="-DSVR4 -D_XPG_IV -DHAS_DLFCN -DUSE_MMAP_FILES -DUSE_SYSVSEM_SERIALIZED_ACCEPT"
7656 apr_addto_bugger="-DSVR4 -D_XPG_IV -DHAS_DLFCN -DUSE_MMAP_FILES -DUSE_SYSVSEM_SERIALIZED_ACCEPT"
7657 for i in $apr_addto_bugger; do
7658 apr_addto_duplicate="0"
7659 for j in $CPPFLAGS; do
7660 if test "x$i" = "x$j"; then
7661 apr_addto_duplicate="1"
7665 if test $apr_addto_duplicate = "0"; then
7666 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7667 CPPFLAGS="$CPPFLAGS $i"
7673 if test "x$LIBS" = "x"; then
7674 test "x$silent" != "xyes" && echo " setting LIBS to \"-lc\""
7677 apr_addto_bugger="-lc"
7678 for i in $apr_addto_bugger; do
7679 apr_addto_duplicate="0"
7681 if test "x$i" = "x$j"; then
7682 apr_addto_duplicate="1"
7686 if test $apr_addto_duplicate = "0"; then
7687 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7694 pyramid-pyramid-svr4)
7696 if test "x$CPPFLAGS" = "x"; then
7697 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4 -DNO_LONG_DOUBLE\""
7698 CPPFLAGS="-DSVR4 -DNO_LONG_DOUBLE"
7700 apr_addto_bugger="-DSVR4 -DNO_LONG_DOUBLE"
7701 for i in $apr_addto_bugger; do
7702 apr_addto_duplicate="0"
7703 for j in $CPPFLAGS; do
7704 if test "x$i" = "x$j"; then
7705 apr_addto_duplicate="1"
7709 if test $apr_addto_duplicate = "0"; then
7710 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7711 CPPFLAGS="$CPPFLAGS $i"
7717 if test "x$LIBS" = "x"; then
7718 test "x$silent" != "xyes" && echo " setting LIBS to \"-lc\""
7721 apr_addto_bugger="-lc"
7722 for i in $apr_addto_bugger; do
7723 apr_addto_duplicate="0"
7725 if test "x$i" = "x$j"; then
7726 apr_addto_duplicate="1"
7730 if test $apr_addto_duplicate = "0"; then
7731 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7738 DS/90\ 7000-*-sysv4*)
7740 if test "x$CPPFLAGS" = "x"; then
7741 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DUXPDS\""
7744 apr_addto_bugger="-DUXPDS"
7745 for i in $apr_addto_bugger; do
7746 apr_addto_duplicate="0"
7747 for j in $CPPFLAGS; do
7748 if test "x$i" = "x$j"; then
7749 apr_addto_duplicate="1"
7753 if test $apr_addto_duplicate = "0"; then
7754 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7755 CPPFLAGS="$CPPFLAGS $i"
7763 if test "x$CPPFLAGS" = "x"; then
7764 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4\""
7767 apr_addto_bugger="-DSVR4"
7768 for i in $apr_addto_bugger; do
7769 apr_addto_duplicate="0"
7770 for j in $CPPFLAGS; do
7771 if test "x$i" = "x$j"; then
7772 apr_addto_duplicate="1"
7776 if test $apr_addto_duplicate = "0"; then
7777 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7778 CPPFLAGS="$CPPFLAGS $i"
7786 if test "x$CPPFLAGS" = "x"; then
7787 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4 -DMPRAS\""
7788 CPPFLAGS="-DSVR4 -DMPRAS"
7790 apr_addto_bugger="-DSVR4 -DMPRAS"
7791 for i in $apr_addto_bugger; do
7792 apr_addto_duplicate="0"
7793 for j in $CPPFLAGS; do
7794 if test "x$i" = "x$j"; then
7795 apr_addto_duplicate="1"
7799 if test $apr_addto_duplicate = "0"; then
7800 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7801 CPPFLAGS="$CPPFLAGS $i"
7807 if test "x$LIBS" = "x"; then
7808 test "x$silent" != "xyes" && echo " setting LIBS to \"-lc -L/usr/ucblib -lucb\""
7809 LIBS="-lc -L/usr/ucblib -lucb"
7811 apr_addto_bugger="-lc -L/usr/ucblib -lucb"
7812 for i in $apr_addto_bugger; do
7813 apr_addto_duplicate="0"
7815 if test "x$i" = "x$j"; then
7816 apr_addto_duplicate="1"
7820 if test $apr_addto_duplicate = "0"; then
7821 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7830 if test "x$CPPFLAGS" = "x"; then
7831 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4\""
7834 apr_addto_bugger="-DSVR4"
7835 for i in $apr_addto_bugger; do
7836 apr_addto_duplicate="0"
7837 for j in $CPPFLAGS; do
7838 if test "x$i" = "x$j"; then
7839 apr_addto_duplicate="1"
7843 if test $apr_addto_duplicate = "0"; then
7844 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7845 CPPFLAGS="$CPPFLAGS $i"
7851 if test "x$LIBS" = "x"; then
7852 test "x$silent" != "xyes" && echo " setting LIBS to \"-lc\""
7855 apr_addto_bugger="-lc"
7856 for i in $apr_addto_bugger; do
7857 apr_addto_duplicate="0"
7859 if test "x$i" = "x$j"; then
7860 apr_addto_duplicate="1"
7864 if test $apr_addto_duplicate = "0"; then
7865 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7874 if test "x$CPPFLAGS" = "x"; then
7875 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4 -DENCORE\""
7876 CPPFLAGS="-DSVR4 -DENCORE"
7878 apr_addto_bugger="-DSVR4 -DENCORE"
7879 for i in $apr_addto_bugger; do
7880 apr_addto_duplicate="0"
7881 for j in $CPPFLAGS; do
7882 if test "x$i" = "x$j"; then
7883 apr_addto_duplicate="1"
7887 if test $apr_addto_duplicate = "0"; then
7888 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7889 CPPFLAGS="$CPPFLAGS $i"
7895 if test "x$LIBS" = "x"; then
7896 test "x$silent" != "xyes" && echo " setting LIBS to \"-lPW\""
7899 apr_addto_bugger="-lPW"
7900 for i in $apr_addto_bugger; do
7901 apr_addto_duplicate="0"
7903 if test "x$i" = "x$j"; then
7904 apr_addto_duplicate="1"
7908 if test $apr_addto_duplicate = "0"; then
7909 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7917 PLATOSVERS=`echo $host | sed 's/^.*,//'`
7920 if test "x$CPPFLAGS" = "x"; then
7921 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DUTS21\""
7924 apr_addto_bugger="-DUTS21"
7925 for i in $apr_addto_bugger; do
7926 apr_addto_duplicate="0"
7927 for j in $CPPFLAGS; do
7928 if test "x$i" = "x$j"; then
7929 apr_addto_duplicate="1"
7933 if test $apr_addto_duplicate = "0"; then
7934 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7935 CPPFLAGS="$CPPFLAGS $i"
7941 if test "x$CFLAGS" = "x"; then
7942 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Xa -eft\""
7945 apr_addto_bugger="-Xa -eft"
7946 for i in $apr_addto_bugger; do
7947 apr_addto_duplicate="0"
7948 for j in $CFLAGS; do
7949 if test "x$i" = "x$j"; then
7950 apr_addto_duplicate="1"
7954 if test $apr_addto_duplicate = "0"; then
7955 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
7962 if test "x$LIBS" = "x"; then
7963 test "x$silent" != "xyes" && echo " setting LIBS to \"-lbsd -la\""
7966 apr_addto_bugger="-lbsd -la"
7967 for i in $apr_addto_bugger; do
7968 apr_addto_duplicate="0"
7970 if test "x$i" = "x$j"; then
7971 apr_addto_duplicate="1"
7975 if test $apr_addto_duplicate = "0"; then
7976 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7984 if test "x$CPPFLAGS" = "x"; then
7985 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4\""
7988 apr_addto_bugger="-DSVR4"
7989 for i in $apr_addto_bugger; do
7990 apr_addto_duplicate="0"
7991 for j in $CPPFLAGS; do
7992 if test "x$i" = "x$j"; then
7993 apr_addto_duplicate="1"
7997 if test $apr_addto_duplicate = "0"; then
7998 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7999 CPPFLAGS="$CPPFLAGS $i"
8005 if test "x$CFLAGS" = "x"; then
8006 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Xa\""
8009 apr_addto_bugger="-Xa"
8010 for i in $apr_addto_bugger; do
8011 apr_addto_duplicate="0"
8012 for j in $CFLAGS; do
8013 if test "x$i" = "x$j"; then
8014 apr_addto_duplicate="1"
8018 if test $apr_addto_duplicate = "0"; then
8019 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
8030 if test "x$CPPFLAGS" = "x"; then
8031 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DULTRIX\""
8034 apr_addto_bugger="-DULTRIX"
8035 for i in $apr_addto_bugger; do
8036 apr_addto_duplicate="0"
8037 for j in $CPPFLAGS; do
8038 if test "x$i" = "x$j"; then
8039 apr_addto_duplicate="1"
8043 if test $apr_addto_duplicate = "0"; then
8044 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8045 CPPFLAGS="$CPPFLAGS $i"
8051 test "x$silent" != "xyes" && echo " forcing SHELL to \"/bin/sh5\""
8055 *powerpc-tenon-machten*)
8057 if test "x$LDFLAGS" = "x"; then
8058 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-Xlstack=0x14000 -Xldelcsect\""
8059 LDFLAGS="-Xlstack=0x14000 -Xldelcsect"
8061 apr_addto_bugger="-Xlstack=0x14000 -Xldelcsect"
8062 for i in $apr_addto_bugger; do
8063 apr_addto_duplicate="0"
8064 for j in $LDFLAGS; do
8065 if test "x$i" = "x$j"; then
8066 apr_addto_duplicate="1"
8070 if test $apr_addto_duplicate = "0"; then
8071 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
8072 LDFLAGS="$LDFLAGS $i"
8080 if test "x$LDFLAGS" = "x"; then
8081 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-stack 0x14000\""
8082 LDFLAGS="-stack 0x14000"
8084 apr_addto_bugger="-stack 0x14000"
8085 for i in $apr_addto_bugger; do
8086 apr_addto_duplicate="0"
8087 for j in $LDFLAGS; do
8088 if test "x$i" = "x$j"; then
8089 apr_addto_duplicate="1"
8093 if test $apr_addto_duplicate = "0"; then
8094 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
8095 LDFLAGS="$LDFLAGS $i"
8103 if test "x$CPPFLAGS" = "x"; then
8104 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DCONVEXOS11\""
8105 CPPFLAGS="-DCONVEXOS11"
8107 apr_addto_bugger="-DCONVEXOS11"
8108 for i in $apr_addto_bugger; do
8109 apr_addto_duplicate="0"
8110 for j in $CPPFLAGS; do
8111 if test "x$i" = "x$j"; then
8112 apr_addto_duplicate="1"
8116 if test $apr_addto_duplicate = "0"; then
8117 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8118 CPPFLAGS="$CPPFLAGS $i"
8124 if test -z "$CFLAGS"; then
8125 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-O1\""
8130 if test "x$CFLAGS" = "x"; then
8131 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-ext\""
8134 apr_addto_bugger="-ext"
8135 for i in $apr_addto_bugger; do
8136 apr_addto_duplicate="0"
8137 for j in $CFLAGS; do
8138 if test "x$i" = "x$j"; then
8139 apr_addto_duplicate="1"
8143 if test $apr_addto_duplicate = "0"; then
8144 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
8153 if test "x$CPPFLAGS" = "x"; then
8154 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DPARAGON\""
8155 CPPFLAGS="-DPARAGON"
8157 apr_addto_bugger="-DPARAGON"
8158 for i in $apr_addto_bugger; do
8159 apr_addto_duplicate="0"
8160 for j in $CPPFLAGS; do
8161 if test "x$i" = "x$j"; then
8162 apr_addto_duplicate="1"
8166 if test $apr_addto_duplicate = "0"; then
8167 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8168 CPPFLAGS="$CPPFLAGS $i"
8176 if test "x$CPPFLAGS" = "x"; then
8177 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSEQUENT=20\""
8178 CPPFLAGS="-DSEQUENT=20"
8180 apr_addto_bugger="-DSEQUENT=20"
8181 for i in $apr_addto_bugger; do
8182 apr_addto_duplicate="0"
8183 for j in $CPPFLAGS; do
8184 if test "x$i" = "x$j"; then
8185 apr_addto_duplicate="1"
8189 if test $apr_addto_duplicate = "0"; then
8190 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8191 CPPFLAGS="$CPPFLAGS $i"
8197 if test "x$CFLAGS" = "x"; then
8198 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Wc,-pw\""
8201 apr_addto_bugger="-Wc,-pw"
8202 for i in $apr_addto_bugger; do
8203 apr_addto_duplicate="0"
8204 for j in $CFLAGS; do
8205 if test "x$i" = "x$j"; then
8206 apr_addto_duplicate="1"
8210 if test $apr_addto_duplicate = "0"; then
8211 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
8218 if test "x$LIBS" = "x"; then
8219 test "x$silent" != "xyes" && echo " setting LIBS to \"-linet -lc -lseq\""
8220 LIBS="-linet -lc -lseq"
8222 apr_addto_bugger="-linet -lc -lseq"
8223 for i in $apr_addto_bugger; do
8224 apr_addto_duplicate="0"
8226 if test "x$i" = "x$j"; then
8227 apr_addto_duplicate="1"
8231 if test $apr_addto_duplicate = "0"; then
8232 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
8241 if test "x$CPPFLAGS" = "x"; then
8242 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSEQUENT=40\""
8243 CPPFLAGS="-DSEQUENT=40"
8245 apr_addto_bugger="-DSEQUENT=40"
8246 for i in $apr_addto_bugger; do
8247 apr_addto_duplicate="0"
8248 for j in $CPPFLAGS; do
8249 if test "x$i" = "x$j"; then
8250 apr_addto_duplicate="1"
8254 if test $apr_addto_duplicate = "0"; then
8255 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8256 CPPFLAGS="$CPPFLAGS $i"
8262 if test "x$CFLAGS" = "x"; then
8263 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Wc,-pw\""
8266 apr_addto_bugger="-Wc,-pw"
8267 for i in $apr_addto_bugger; do
8268 apr_addto_duplicate="0"
8269 for j in $CFLAGS; do
8270 if test "x$i" = "x$j"; then
8271 apr_addto_duplicate="1"
8275 if test $apr_addto_duplicate = "0"; then
8276 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
8283 if test "x$LIBS" = "x"; then
8284 test "x$silent" != "xyes" && echo " setting LIBS to \"-linet -lc\""
8287 apr_addto_bugger="-linet -lc"
8288 for i in $apr_addto_bugger; do
8289 apr_addto_duplicate="0"
8291 if test "x$i" = "x$j"; then
8292 apr_addto_duplicate="1"
8296 if test $apr_addto_duplicate = "0"; then
8297 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
8304 *-sequent-ptx4.[123].*)
8306 if test "x$CPPFLAGS" = "x"; then
8307 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSEQUENT=41\""
8308 CPPFLAGS="-DSEQUENT=41"
8310 apr_addto_bugger="-DSEQUENT=41"
8311 for i in $apr_addto_bugger; do
8312 apr_addto_duplicate="0"
8313 for j in $CPPFLAGS; do
8314 if test "x$i" = "x$j"; then
8315 apr_addto_duplicate="1"
8319 if test $apr_addto_duplicate = "0"; then
8320 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8321 CPPFLAGS="$CPPFLAGS $i"
8327 if test "x$CFLAGS" = "x"; then
8328 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Wc,-pw\""
8331 apr_addto_bugger="-Wc,-pw"
8332 for i in $apr_addto_bugger; do
8333 apr_addto_duplicate="0"
8334 for j in $CFLAGS; do
8335 if test "x$i" = "x$j"; then
8336 apr_addto_duplicate="1"
8340 if test $apr_addto_duplicate = "0"; then
8341 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
8348 if test "x$LIBS" = "x"; then
8349 test "x$silent" != "xyes" && echo " setting LIBS to \"-lc\""
8352 apr_addto_bugger="-lc"
8353 for i in $apr_addto_bugger; do
8354 apr_addto_duplicate="0"
8356 if test "x$i" = "x$j"; then
8357 apr_addto_duplicate="1"
8361 if test $apr_addto_duplicate = "0"; then
8362 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
8371 if test "x$CPPFLAGS" = "x"; then
8372 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSEQUENT=44\""
8373 CPPFLAGS="-DSEQUENT=44"
8375 apr_addto_bugger="-DSEQUENT=44"
8376 for i in $apr_addto_bugger; do
8377 apr_addto_duplicate="0"
8378 for j in $CPPFLAGS; do
8379 if test "x$i" = "x$j"; then
8380 apr_addto_duplicate="1"
8384 if test $apr_addto_duplicate = "0"; then
8385 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8386 CPPFLAGS="$CPPFLAGS $i"
8392 if test "x$CFLAGS" = "x"; then
8393 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Wc,-pw\""
8396 apr_addto_bugger="-Wc,-pw"
8397 for i in $apr_addto_bugger; do
8398 apr_addto_duplicate="0"
8399 for j in $CFLAGS; do
8400 if test "x$i" = "x$j"; then
8401 apr_addto_duplicate="1"
8405 if test $apr_addto_duplicate = "0"; then
8406 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
8413 if test "x$LIBS" = "x"; then
8414 test "x$silent" != "xyes" && echo " setting LIBS to \"-lc\""
8417 apr_addto_bugger="-lc"
8418 for i in $apr_addto_bugger; do
8419 apr_addto_duplicate="0"
8421 if test "x$i" = "x$j"; then
8422 apr_addto_duplicate="1"
8426 if test $apr_addto_duplicate = "0"; then
8427 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
8436 if test "x$CPPFLAGS" = "x"; then
8437 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSEQUENT=45\""
8438 CPPFLAGS="-DSEQUENT=45"
8440 apr_addto_bugger="-DSEQUENT=45"
8441 for i in $apr_addto_bugger; do
8442 apr_addto_duplicate="0"
8443 for j in $CPPFLAGS; do
8444 if test "x$i" = "x$j"; then
8445 apr_addto_duplicate="1"
8449 if test $apr_addto_duplicate = "0"; then
8450 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8451 CPPFLAGS="$CPPFLAGS $i"
8457 if test "x$CFLAGS" = "x"; then
8458 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Wc,-pw\""
8461 apr_addto_bugger="-Wc,-pw"
8462 for i in $apr_addto_bugger; do
8463 apr_addto_duplicate="0"
8464 for j in $CFLAGS; do
8465 if test "x$i" = "x$j"; then
8466 apr_addto_duplicate="1"
8470 if test $apr_addto_duplicate = "0"; then
8471 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
8478 if test "x$LIBS" = "x"; then
8479 test "x$silent" != "xyes" && echo " setting LIBS to \"-lc\""
8482 apr_addto_bugger="-lc"
8483 for i in $apr_addto_bugger; do
8484 apr_addto_duplicate="0"
8486 if test "x$i" = "x$j"; then
8487 apr_addto_duplicate="1"
8491 if test $apr_addto_duplicate = "0"; then
8492 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
8501 if test "x$CPPFLAGS" = "x"; then
8502 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSEQUENT=50\""
8503 CPPFLAGS="-DSEQUENT=50"
8505 apr_addto_bugger="-DSEQUENT=50"
8506 for i in $apr_addto_bugger; do
8507 apr_addto_duplicate="0"
8508 for j in $CPPFLAGS; do
8509 if test "x$i" = "x$j"; then
8510 apr_addto_duplicate="1"
8514 if test $apr_addto_duplicate = "0"; then
8515 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8516 CPPFLAGS="$CPPFLAGS $i"
8522 if test "x$CFLAGS" = "x"; then
8523 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Wc,-pw\""
8526 apr_addto_bugger="-Wc,-pw"
8527 for i in $apr_addto_bugger; do
8528 apr_addto_duplicate="0"
8529 for j in $CFLAGS; do
8530 if test "x$i" = "x$j"; then
8531 apr_addto_duplicate="1"
8535 if test $apr_addto_duplicate = "0"; then
8536 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
8543 if test "x$LIBS" = "x"; then
8544 test "x$silent" != "xyes" && echo " setting LIBS to \"-lc\""
8547 apr_addto_bugger="-lc"
8548 for i in $apr_addto_bugger; do
8549 apr_addto_duplicate="0"
8551 if test "x$i" = "x$j"; then
8552 apr_addto_duplicate="1"
8556 if test $apr_addto_duplicate = "0"; then
8557 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
8566 if test "x$CPPFLAGS" = "x"; then
8567 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DNEWSOS\""
8570 apr_addto_bugger="-DNEWSOS"
8571 for i in $apr_addto_bugger; do
8572 apr_addto_duplicate="0"
8573 for j in $CPPFLAGS; do
8574 if test "x$i" = "x$j"; then
8575 apr_addto_duplicate="1"
8579 if test $apr_addto_duplicate = "0"; then
8580 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8581 CPPFLAGS="$CPPFLAGS $i"
8589 if test "x$CPPFLAGS" = "x"; then
8590 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DRISCIX\""
8593 apr_addto_bugger="-DRISCIX"
8594 for i in $apr_addto_bugger; do
8595 apr_addto_duplicate="0"
8596 for j in $CPPFLAGS; do
8597 if test "x$i" = "x$j"; then
8598 apr_addto_duplicate="1"
8602 if test $apr_addto_duplicate = "0"; then
8603 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8604 CPPFLAGS="$CPPFLAGS $i"
8610 if test -z "$CFLAGS"; then
8611 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-O\""
8618 if test "x$CPPFLAGS" = "x"; then
8619 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_POSIX_THREAD_SAFE_FUNCTIONS\""
8620 CPPFLAGS="-D_POSIX_THREAD_SAFE_FUNCTIONS"
8622 apr_addto_bugger="-D_POSIX_THREAD_SAFE_FUNCTIONS"
8623 for i in $apr_addto_bugger; do
8624 apr_addto_duplicate="0"
8625 for j in $CPPFLAGS; do
8626 if test "x$i" = "x$j"; then
8627 apr_addto_duplicate="1"
8631 if test $apr_addto_duplicate = "0"; then
8632 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8633 CPPFLAGS="$CPPFLAGS $i"
8641 if test "x$CPPFLAGS" = "x"; then
8642 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DBEOS\""
8645 apr_addto_bugger="-DBEOS"
8646 for i in $apr_addto_bugger; do
8647 apr_addto_duplicate="0"
8648 for j in $CPPFLAGS; do
8649 if test "x$i" = "x$j"; then
8650 apr_addto_duplicate="1"
8654 if test $apr_addto_duplicate = "0"; then
8655 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8656 CPPFLAGS="$CPPFLAGS $i"
8661 PLATOSVERS=`uname -r`
8663 if test -z "$apr_process_lock_is_global"; then
8664 test "x$silent" != "xyes" && echo " setting apr_process_lock_is_global to \"yes\""
8665 apr_process_lock_is_global="yes"
8671 if test "x$LDFLAGS" = "x"; then
8672 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-L/boot/beos/system/lib\""
8673 LDFLAGS="-L/boot/beos/system/lib"
8675 apr_addto_bugger="-L/boot/beos/system/lib"
8676 for i in $apr_addto_bugger; do
8677 apr_addto_duplicate="0"
8678 for j in $LDFLAGS; do
8679 if test "x$i" = "x$j"; then
8680 apr_addto_duplicate="1"
8684 if test $apr_addto_duplicate = "0"; then
8685 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
8686 LDFLAGS="$LDFLAGS $i"
8692 if test "x$LIBS" = "x"; then
8693 test "x$silent" != "xyes" && echo " setting LIBS to \"-lbind -lsocket\""
8694 LIBS="-lbind -lsocket"
8696 apr_addto_bugger="-lbind -lsocket"
8697 for i in $apr_addto_bugger; do
8698 apr_addto_duplicate="0"
8700 if test "x$i" = "x$j"; then
8701 apr_addto_duplicate="1"
8705 if test $apr_addto_duplicate = "0"; then
8706 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
8713 if test "x$CPPFLAGS" = "x"; then
8714 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DBONE7\""
8717 apr_addto_bugger="-DBONE7"
8718 for i in $apr_addto_bugger; do
8719 apr_addto_duplicate="0"
8720 for j in $CPPFLAGS; do
8721 if test "x$i" = "x$j"; then
8722 apr_addto_duplicate="1"
8726 if test $apr_addto_duplicate = "0"; then
8727 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8728 CPPFLAGS="$CPPFLAGS $i"
8736 if test "x$LDFLAGS" = "x"; then
8737 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-L/boot/beos/system/lib\""
8738 LDFLAGS="-L/boot/beos/system/lib"
8740 apr_addto_bugger="-L/boot/beos/system/lib"
8741 for i in $apr_addto_bugger; do
8742 apr_addto_duplicate="0"
8743 for j in $LDFLAGS; do
8744 if test "x$i" = "x$j"; then
8745 apr_addto_duplicate="1"
8749 if test $apr_addto_duplicate = "0"; then
8750 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
8751 LDFLAGS="$LDFLAGS $i"
8757 if test "x$LIBS" = "x"; then
8758 test "x$silent" != "xyes" && echo " setting LIBS to \"-lbind -lsocket\""
8759 LIBS="-lbind -lsocket"
8761 apr_addto_bugger="-lbind -lsocket"
8762 for i in $apr_addto_bugger; do
8763 apr_addto_duplicate="0"
8765 if test "x$i" = "x$j"; then
8766 apr_addto_duplicate="1"
8770 if test $apr_addto_duplicate = "0"; then
8771 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
8780 if test "x$CPPFLAGS" = "x"; then
8781 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSIGPROCMASK_SETS_THREAD_MASK\""
8782 CPPFLAGS="-DSIGPROCMASK_SETS_THREAD_MASK"
8784 apr_addto_bugger="-DSIGPROCMASK_SETS_THREAD_MASK"
8785 for i in $apr_addto_bugger; do
8786 apr_addto_duplicate="0"
8787 for j in $CPPFLAGS; do
8788 if test "x$i" = "x$j"; then
8789 apr_addto_duplicate="1"
8793 if test $apr_addto_duplicate = "0"; then
8794 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8795 CPPFLAGS="$CPPFLAGS $i"
8803 if test "x$CPPFLAGS" = "x"; then
8804 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4 -DMPRAS\""
8805 CPPFLAGS="-DSVR4 -DMPRAS"
8807 apr_addto_bugger="-DSVR4 -DMPRAS"
8808 for i in $apr_addto_bugger; do
8809 apr_addto_duplicate="0"
8810 for j in $CPPFLAGS; do
8811 if test "x$i" = "x$j"; then
8812 apr_addto_duplicate="1"
8816 if test $apr_addto_duplicate = "0"; then
8817 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8818 CPPFLAGS="$CPPFLAGS $i"
8824 if test "x$LIBS" = "x"; then
8825 test "x$silent" != "xyes" && echo " setting LIBS to \"-lc -L/usr/ucblib -lucb\""
8826 LIBS="-lc -L/usr/ucblib -lucb"
8828 apr_addto_bugger="-lc -L/usr/ucblib -lucb"
8829 for i in $apr_addto_bugger; do
8830 apr_addto_duplicate="0"
8832 if test "x$i" = "x$j"; then
8833 apr_addto_duplicate="1"
8837 if test $apr_addto_duplicate = "0"; then
8838 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
8847 if test "x$CPPFLAGS" = "x"; then
8848 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4\""
8851 apr_addto_bugger="-DSVR4"
8852 for i in $apr_addto_bugger; do
8853 apr_addto_duplicate="0"
8854 for j in $CPPFLAGS; do
8855 if test "x$i" = "x$j"; then
8856 apr_addto_duplicate="1"
8860 if test $apr_addto_duplicate = "0"; then
8861 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8862 CPPFLAGS="$CPPFLAGS $i"
8868 if test "x$LIBS" = "x"; then
8869 test "x$silent" != "xyes" && echo " setting LIBS to \"-lc -L/usr/ucblib -lucb\""
8870 LIBS="-lc -L/usr/ucblib -lucb"
8872 apr_addto_bugger="-lc -L/usr/ucblib -lucb"
8873 for i in $apr_addto_bugger; do
8874 apr_addto_duplicate="0"
8876 if test "x$i" = "x$j"; then
8877 apr_addto_duplicate="1"
8881 if test $apr_addto_duplicate = "0"; then
8882 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
8891 if test "x$CPPFLAGS" = "x"; then
8892 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_CX_SX\""
8895 apr_addto_bugger="-D_CX_SX"
8896 for i in $apr_addto_bugger; do
8897 apr_addto_duplicate="0"
8898 for j in $CPPFLAGS; do
8899 if test "x$i" = "x$j"; then
8900 apr_addto_duplicate="1"
8904 if test $apr_addto_duplicate = "0"; then
8905 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8906 CPPFLAGS="$CPPFLAGS $i"
8912 if test "x$CFLAGS" = "x"; then
8913 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Xa\""
8916 apr_addto_bugger="-Xa"
8917 for i in $apr_addto_bugger; do
8918 apr_addto_duplicate="0"
8919 for j in $CFLAGS; do
8920 if test "x$i" = "x$j"; then
8921 apr_addto_duplicate="1"
8925 if test $apr_addto_duplicate = "0"; then
8926 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
8935 if test "x$CPPFLAGS" = "x"; then
8936 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_TANDEM_SOURCE -D_XOPEN_SOURCE_EXTENDED=1\""
8937 CPPFLAGS="-D_TANDEM_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
8939 apr_addto_bugger="-D_TANDEM_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
8940 for i in $apr_addto_bugger; do
8941 apr_addto_duplicate="0"
8942 for j in $CPPFLAGS; do
8943 if test "x$i" = "x$j"; then
8944 apr_addto_duplicate="1"
8948 if test $apr_addto_duplicate = "0"; then
8949 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8950 CPPFLAGS="$CPPFLAGS $i"
8958 if test -z "$apr_lock_method"; then
8959 test "x$silent" != "xyes" && echo " setting apr_lock_method to \"USE_SYSVSEM_SERIALIZE\""
8960 apr_lock_method="USE_SYSVSEM_SERIALIZE"
8964 if test -z "$apr_sysvsem_is_global"; then
8965 test "x$silent" != "xyes" && echo " setting apr_sysvsem_is_global to \"yes\""
8966 apr_sysvsem_is_global="yes"
8970 if test -z "$apr_gethostbyname_is_thread_safe"; then
8971 test "x$silent" != "xyes" && echo " setting apr_gethostbyname_is_thread_safe to \"yes\""
8972 apr_gethostbyname_is_thread_safe="yes"
8976 if test -z "$apr_gethostbyaddr_is_thread_safe"; then
8977 test "x$silent" != "xyes" && echo " setting apr_gethostbyaddr_is_thread_safe to \"yes\""
8978 apr_gethostbyaddr_is_thread_safe="yes"
8982 if test -z "$apr_getservbyname_is_thread_safe"; then
8983 test "x$silent" != "xyes" && echo " setting apr_getservbyname_is_thread_safe to \"yes\""
8984 apr_getservbyname_is_thread_safe="yes"
8988 $as_echo "#define HAVE_ZOS_PTHREADS 1" >>confdefs.h
8991 if test "x$CPPFLAGS" = "x"; then
8992 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-U_NO_PROTO -DSIGPROCMASK_SETS_THREAD_MASK -DTCP_NODELAY=1\""
8993 CPPFLAGS="-U_NO_PROTO -DSIGPROCMASK_SETS_THREAD_MASK -DTCP_NODELAY=1"
8995 apr_addto_bugger="-U_NO_PROTO -DSIGPROCMASK_SETS_THREAD_MASK -DTCP_NODELAY=1"
8996 for i in $apr_addto_bugger; do
8997 apr_addto_duplicate="0"
8998 for j in $CPPFLAGS; do
8999 if test "x$i" = "x$j"; then
9000 apr_addto_duplicate="1"
9004 if test $apr_addto_duplicate = "0"; then
9005 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
9006 CPPFLAGS="$CPPFLAGS $i"
9014 if test -z "$apr_lock_method"; then
9015 test "x$silent" != "xyes" && echo " setting apr_lock_method to \"USE_SYSVSEM_SERIALIZE\""
9016 apr_lock_method="USE_SYSVSEM_SERIALIZE"
9020 if test -z "$apr_process_lock_is_global"; then
9021 test "x$silent" != "xyes" && echo " setting apr_process_lock_is_global to \"yes\""
9022 apr_process_lock_is_global="yes"
9026 if test -z "$apr_gethostbyname_is_thread_safe"; then
9027 test "x$silent" != "xyes" && echo " setting apr_gethostbyname_is_thread_safe to \"yes\""
9028 apr_gethostbyname_is_thread_safe="yes"
9032 if test -z "$apr_gethostbyaddr_is_thread_safe"; then
9033 test "x$silent" != "xyes" && echo " setting apr_gethostbyaddr_is_thread_safe to \"yes\""
9034 apr_gethostbyaddr_is_thread_safe="yes"
9038 if test -z "$apr_getservbyname_is_thread_safe"; then
9039 test "x$silent" != "xyes" && echo " setting apr_getservbyname_is_thread_safe to \"yes\""
9040 apr_getservbyname_is_thread_safe="yes"
9046 if test "x$INTERNAL_CPPFLAGS" = "x"; then
9047 test "x$silent" != "xyes" && echo " setting INTERNAL_CPPFLAGS to \"-DBINPATH=$apr_builddir/test/.libs\""
9048 INTERNAL_CPPFLAGS="-DBINPATH=$apr_builddir/test/.libs"
9050 apr_addto_bugger="-DBINPATH=$apr_builddir/test/.libs"
9051 for i in $apr_addto_bugger; do
9052 apr_addto_duplicate="0"
9053 for j in $INTERNAL_CPPFLAGS; do
9054 if test "x$i" = "x$j"; then
9055 apr_addto_duplicate="1"
9059 if test $apr_addto_duplicate = "0"; then
9060 test "x$silent" != "xyes" && echo " adding \"$i\" to INTERNAL_CPPFLAGS"
9061 INTERNAL_CPPFLAGS="$INTERNAL_CPPFLAGS $i"
9067 if test "x$CPPFLAGS" = "x"; then
9068 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DWIN32 -D__MSVCRT__\""
9069 CPPFLAGS="-DWIN32 -D__MSVCRT__"
9071 apr_addto_bugger="-DWIN32 -D__MSVCRT__"
9072 for i in $apr_addto_bugger; do
9073 apr_addto_duplicate="0"
9074 for j in $CPPFLAGS; do
9075 if test "x$i" = "x$j"; then
9076 apr_addto_duplicate="1"
9080 if test $apr_addto_duplicate = "0"; then
9081 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
9082 CPPFLAGS="$CPPFLAGS $i"
9088 if test "x$LDFLAGS" = "x"; then
9089 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-Wl,--enable-auto-import,--subsystem,console\""
9090 LDFLAGS="-Wl,--enable-auto-import,--subsystem,console"
9092 apr_addto_bugger="-Wl,--enable-auto-import,--subsystem,console"
9093 for i in $apr_addto_bugger; do
9094 apr_addto_duplicate="0"
9095 for j in $LDFLAGS; do
9096 if test "x$i" = "x$j"; then
9097 apr_addto_duplicate="1"
9101 if test $apr_addto_duplicate = "0"; then
9102 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
9103 LDFLAGS="$LDFLAGS $i"
9109 if test -z "$have_unicode_fs"; then
9110 test "x$silent" != "xyes" && echo " setting have_unicode_fs to \"1\""
9115 if test -z "$have_proc_invoked"; then
9116 test "x$silent" != "xyes" && echo " setting have_proc_invoked to \"1\""
9117 have_proc_invoked="1"
9121 if test -z "$apr_lock_method"; then
9122 test "x$silent" != "xyes" && echo " setting apr_lock_method to \"win32\""
9123 apr_lock_method="win32"
9127 if test -z "$apr_process_lock_is_global"; then
9128 test "x$silent" != "xyes" && echo " setting apr_process_lock_is_global to \"yes\""
9129 apr_process_lock_is_global="yes"
9133 if test -z "$apr_cv_use_lfs64"; then
9134 test "x$silent" != "xyes" && echo " setting apr_cv_use_lfs64 to \"yes\""
9135 apr_cv_use_lfs64="yes"
9139 if test -z "$apr_cv_osuuid"; then
9140 test "x$silent" != "xyes" && echo " setting apr_cv_osuuid to \"yes\""
9145 if test -z "$apr_cv_tcp_nodelay_with_cork"; then
9146 test "x$silent" != "xyes" && echo " setting apr_cv_tcp_nodelay_with_cork to \"no\""
9147 apr_cv_tcp_nodelay_with_cork="no"
9151 if test -z "$apr_thread_func"; then
9152 test "x$silent" != "xyes" && echo " setting apr_thread_func to \"__stdcall\""
9153 apr_thread_func="__stdcall"
9157 if test -z "$ac_cv_o_nonblock_inherited"; then
9158 test "x$silent" != "xyes" && echo " setting ac_cv_o_nonblock_inherited to \"yes\""
9159 ac_cv_o_nonblock_inherited="yes"
9163 if test -z "$ac_cv_tcp_nodelay_inherited"; then
9164 test "x$silent" != "xyes" && echo " setting ac_cv_tcp_nodelay_inherited to \"yes\""
9165 ac_cv_tcp_nodelay_inherited="yes"
9169 if test -z "$ac_cv_file__dev_zero"; then
9170 test "x$silent" != "xyes" && echo " setting ac_cv_file__dev_zero to \"no\""
9171 ac_cv_file__dev_zero="no"
9175 if test -z "$ac_cv_func_setpgrp_void"; then
9176 test "x$silent" != "xyes" && echo " setting ac_cv_func_setpgrp_void to \"no\""
9177 ac_cv_func_setpgrp_void="no"
9181 if test -z "$ac_cv_func_mmap"; then
9182 test "x$silent" != "xyes" && echo " setting ac_cv_func_mmap to \"yes\""
9183 ac_cv_func_mmap="yes"
9187 if test -z "$ac_cv_define_sockaddr_in6"; then
9188 test "x$silent" != "xyes" && echo " setting ac_cv_define_sockaddr_in6 to \"yes\""
9189 ac_cv_define_sockaddr_in6="yes"
9193 if test -z "$ac_cv_working_getaddrinfo"; then
9194 test "x$silent" != "xyes" && echo " setting ac_cv_working_getaddrinfo to \"yes\""
9195 ac_cv_working_getaddrinfo="yes"
9199 if test -z "$ac_cv_working_getnameinfo"; then
9200 test "x$silent" != "xyes" && echo " setting ac_cv_working_getnameinfo to \"yes\""
9201 ac_cv_working_getnameinfo="yes"
9205 if test -z "$ac_cv_func_gai_strerror"; then
9206 test "x$silent" != "xyes" && echo " setting ac_cv_func_gai_strerror to \"yes\""
9207 ac_cv_func_gai_strerror="yes"
9213 if test -z "$apr_has_xthread_files"; then
9214 test "x$silent" != "xyes" && echo " setting apr_has_xthread_files to \"1\""
9215 apr_has_xthread_files="1"
9219 if test -z "$apr_has_user"; then
9220 test "x$silent" != "xyes" && echo " setting apr_has_user to \"1\""
9225 if test -z "$apr_procattr_user_set_requires_password"; then
9226 test "x$silent" != "xyes" && echo " setting apr_procattr_user_set_requires_password to \"1\""
9227 apr_procattr_user_set_requires_password="1"
9231 if test -z "$ac_cv_func_sendfile"; then
9232 test "x$silent" != "xyes" && echo " setting ac_cv_func_sendfile to \"yes\""
9233 ac_cv_func_sendfile="yes"
9239 if test -z "$apr_has_xthread_files"; then
9240 test "x$silent" != "xyes" && echo " setting apr_has_xthread_files to \"0\""
9241 apr_has_xthread_files="0"
9245 if test -z "$apr_has_user"; then
9246 test "x$silent" != "xyes" && echo " setting apr_has_user to \"0\""
9251 if test -z "$apr_procattr_user_set_requires_password"; then
9252 test "x$silent" != "xyes" && echo " setting apr_procattr_user_set_requires_password to \"0\""
9253 apr_procattr_user_set_requires_password="0"
9257 if test -z "$ac_cv_func_sendfile"; then
9258 test "x$silent" != "xyes" && echo " setting ac_cv_func_sendfile to \"no\""
9259 ac_cv_func_sendfile="no"
9270 DEFAULT_OSDIR="unix"
9271 echo "(Default will be ${DEFAULT_OSDIR})"
9273 apr_modules="file_io network_io threadproc misc locks time mmap shmem user memory atomic poll support random"
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9276 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9278 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9279 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
9280 $as_echo_n "(cached) " >&6
9282 cat >conftest.make <<\_ACEOF
9285 @echo '@@@%%%=$(MAKE)=@@@%%%'
9287 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
9288 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9290 eval ac_cv_prog_make_${ac_make}_set=yes;;
9292 eval ac_cv_prog_make_${ac_make}_set=no;;
9296 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9298 $as_echo "yes" >&6; }
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9302 $as_echo "no" >&6; }
9303 SET_MAKE="MAKE=${MAKE-make}"
9307 ac_cpp='$CPP $CPPFLAGS'
9308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9312 $as_echo_n "checking how to run the C preprocessor... " >&6; }
9313 # On Suns, sometimes $CPP names a directory.
9314 if test -n "$CPP" && test -d "$CPP"; then
9317 if test -z "$CPP"; then
9318 if ${ac_cv_prog_CPP+:} false; then :
9319 $as_echo_n "(cached) " >&6
9321 # Double quotes because CPP needs to be expanded
9322 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9325 for ac_c_preproc_warn_flag in '' yes
9327 # Use a header file that comes with gcc, so configuring glibc
9328 # with a fresh cross-compiler works.
9329 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9330 # <limits.h> exists even on freestanding compilers.
9331 # On the NeXT, cc -E runs the code through the compiler's parser,
9332 # not just through cpp. "Syntax error" is here to catch this case.
9333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9334 /* end confdefs.h. */
9336 # include <limits.h>
9338 # include <assert.h>
9342 if ac_fn_c_try_cpp "$LINENO"; then :
9345 # Broken: fails on valid input.
9348 rm -f conftest.err conftest.i conftest.$ac_ext
9350 # OK, works on sane cases. Now check whether nonexistent headers
9351 # can be detected and how.
9352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9353 /* end confdefs.h. */
9354 #include <ac_nonexistent.h>
9356 if ac_fn_c_try_cpp "$LINENO"; then :
9357 # Broken: success on invalid input.
9360 # Passes both tests.
9364 rm -f conftest.err conftest.i conftest.$ac_ext
9367 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9368 rm -f conftest.i conftest.err conftest.$ac_ext
9369 if $ac_preproc_ok; then :
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9382 $as_echo "$CPP" >&6; }
9384 for ac_c_preproc_warn_flag in '' yes
9386 # Use a header file that comes with gcc, so configuring glibc
9387 # with a fresh cross-compiler works.
9388 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9389 # <limits.h> exists even on freestanding compilers.
9390 # On the NeXT, cc -E runs the code through the compiler's parser,
9391 # not just through cpp. "Syntax error" is here to catch this case.
9392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9393 /* end confdefs.h. */
9395 # include <limits.h>
9397 # include <assert.h>
9401 if ac_fn_c_try_cpp "$LINENO"; then :
9404 # Broken: fails on valid input.
9407 rm -f conftest.err conftest.i conftest.$ac_ext
9409 # OK, works on sane cases. Now check whether nonexistent headers
9410 # can be detected and how.
9411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9412 /* end confdefs.h. */
9413 #include <ac_nonexistent.h>
9415 if ac_fn_c_try_cpp "$LINENO"; then :
9416 # Broken: success on invalid input.
9419 # Passes both tests.
9423 rm -f conftest.err conftest.i conftest.$ac_ext
9426 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9427 rm -f conftest.i conftest.err conftest.$ac_ext
9428 if $ac_preproc_ok; then :
9431 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9433 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
9434 See \`config.log' for more details" "$LINENO" 5; }
9438 ac_cpp='$CPP $CPPFLAGS'
9439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9443 for ac_prog in gawk mawk nawk awk
9445 # Extract the first word of "$ac_prog", so it can be a program name with args.
9446 set dummy $ac_prog; ac_word=$2
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9448 $as_echo_n "checking for $ac_word... " >&6; }
9449 if ${ac_cv_prog_AWK+:} false; then :
9450 $as_echo_n "(cached) " >&6
9452 if test -n "$AWK"; then
9453 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9459 test -z "$as_dir" && as_dir=.
9460 for ac_exec_ext in '' $ac_executable_extensions; do
9461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9462 ac_cv_prog_AWK="$ac_prog"
9463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9473 if test -n "$AWK"; then
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9475 $as_echo "$AWK" >&6; }
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9478 $as_echo "no" >&6; }
9482 test -n "$AWK" && break
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9486 $as_echo_n "checking whether ln -s works... " >&6; }
9488 if test "$LN_S" = "ln -s"; then
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9490 $as_echo "yes" >&6; }
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9493 $as_echo "no, using $LN_S" >&6; }
9496 if test -n "$ac_tool_prefix"; then
9497 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9498 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9500 $as_echo_n "checking for $ac_word... " >&6; }
9501 if ${ac_cv_prog_RANLIB+:} false; then :
9502 $as_echo_n "(cached) " >&6
9504 if test -n "$RANLIB"; then
9505 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9511 test -z "$as_dir" && as_dir=.
9512 for ac_exec_ext in '' $ac_executable_extensions; do
9513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9514 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9524 RANLIB=$ac_cv_prog_RANLIB
9525 if test -n "$RANLIB"; then
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9527 $as_echo "$RANLIB" >&6; }
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9530 $as_echo "no" >&6; }
9535 if test -z "$ac_cv_prog_RANLIB"; then
9536 ac_ct_RANLIB=$RANLIB
9537 # Extract the first word of "ranlib", so it can be a program name with args.
9538 set dummy ranlib; ac_word=$2
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9540 $as_echo_n "checking for $ac_word... " >&6; }
9541 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9542 $as_echo_n "(cached) " >&6
9544 if test -n "$ac_ct_RANLIB"; then
9545 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9551 test -z "$as_dir" && as_dir=.
9552 for ac_exec_ext in '' $ac_executable_extensions; do
9553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9554 ac_cv_prog_ac_ct_RANLIB="ranlib"
9555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9564 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9565 if test -n "$ac_ct_RANLIB"; then
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9567 $as_echo "$ac_ct_RANLIB" >&6; }
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9570 $as_echo "no" >&6; }
9573 if test "x$ac_ct_RANLIB" = x; then
9576 case $cross_compiling:$ac_tool_warned in
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9580 ac_tool_warned=yes ;;
9582 RANLIB=$ac_ct_RANLIB
9585 RANLIB="$ac_cv_prog_RANLIB"
9588 # Find a good install program. We prefer a C program (faster),
9589 # so one script is as good as another. But avoid the broken or
9590 # incompatible versions:
9591 # SysV /etc/install, /usr/sbin/install
9592 # SunOS /usr/etc/install
9593 # IRIX /sbin/install
9595 # AmigaOS /C/install, which installs bootblocks on floppy discs
9596 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9597 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9598 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9599 # OS/2's system install, which has a completely different semantic
9600 # ./install, which can be erroneously created by make from ./install.sh.
9601 # Reject install programs that cannot install multiple files.
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
9603 $as_echo_n "checking for a BSD-compatible install... " >&6; }
9604 if test -z "$INSTALL"; then
9605 if ${ac_cv_path_install+:} false; then :
9606 $as_echo_n "(cached) " >&6
9608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9612 test -z "$as_dir" && as_dir=.
9613 # Account for people who put trailing slashes in PATH elements.
9614 case $as_dir/ in #((
9615 ./ | .// | /[cC]/* | \
9616 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9617 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
9620 # OSF1 and SCO ODT 3.0 have their own names for install.
9621 # Don't use installbsd from OSF since it installs stuff as root
9623 for ac_prog in ginstall scoinst install; do
9624 for ac_exec_ext in '' $ac_executable_extensions; do
9625 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9626 if test $ac_prog = install &&
9627 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9628 # AIX install. It has an incompatible calling convention.
9630 elif test $ac_prog = install &&
9631 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9632 # program-specific install script used by HP pwplus--don't use.
9635 rm -rf conftest.one conftest.two conftest.dir
9636 echo one > conftest.one
9637 echo two > conftest.two
9639 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
9640 test -s conftest.one && test -s conftest.two &&
9641 test -s conftest.dir/conftest.one &&
9642 test -s conftest.dir/conftest.two
9644 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9657 rm -rf conftest.one conftest.two conftest.dir
9660 if test "${ac_cv_path_install+set}" = set; then
9661 INSTALL=$ac_cv_path_install
9663 # As a last resort, use the slow shell script. Don't cache a
9664 # value for INSTALL within a source directory, because that will
9665 # break other packages using the cache if that directory is
9666 # removed, or if the value is a relative name.
9667 INSTALL=$ac_install_sh
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
9671 $as_echo "$INSTALL" >&6; }
9673 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9674 # It thinks the first close brace ends the variable substitution.
9675 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9677 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9679 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9681 # Extract the first word of "rm", so it can be a program name with args.
9682 set dummy rm; ac_word=$2
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9684 $as_echo_n "checking for $ac_word... " >&6; }
9685 if ${ac_cv_prog_RM+:} false; then :
9686 $as_echo_n "(cached) " >&6
9688 if test -n "$RM"; then
9689 ac_cv_prog_RM="$RM" # Let the user override the test.
9691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9695 test -z "$as_dir" && as_dir=.
9696 for ac_exec_ext in '' $ac_executable_extensions; do
9697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9709 if test -n "$RM"; then
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9711 $as_echo "$RM" >&6; }
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9714 $as_echo "no" >&6; }
9718 # Extract the first word of "as", so it can be a program name with args.
9719 set dummy as; ac_word=$2
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9721 $as_echo_n "checking for $ac_word... " >&6; }
9722 if ${ac_cv_prog_AS+:} false; then :
9723 $as_echo_n "(cached) " >&6
9725 if test -n "$AS"; then
9726 ac_cv_prog_AS="$AS" # Let the user override the test.
9728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9732 test -z "$as_dir" && as_dir=.
9733 for ac_exec_ext in '' $ac_executable_extensions; do
9734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9746 if test -n "$AS"; then
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9748 $as_echo "$AS" >&6; }
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9751 $as_echo "no" >&6; }
9755 # Extract the first word of "cpp", so it can be a program name with args.
9756 set dummy cpp; ac_word=$2
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9758 $as_echo_n "checking for $ac_word... " >&6; }
9759 if ${ac_cv_prog_ASCPP+:} false; then :
9760 $as_echo_n "(cached) " >&6
9762 if test -n "$ASCPP"; then
9763 ac_cv_prog_ASCPP="$ASCPP" # Let the user override the test.
9765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9769 test -z "$as_dir" && as_dir=.
9770 for ac_exec_ext in '' $ac_executable_extensions; do
9771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9772 ac_cv_prog_ASCPP="cpp"
9773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9782 ASCPP=$ac_cv_prog_ASCPP
9783 if test -n "$ASCPP"; then
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCPP" >&5
9785 $as_echo "$ASCPP" >&6; }
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9788 $as_echo "no" >&6; }
9792 if test -n "$ac_tool_prefix"; then
9793 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9794 set dummy ${ac_tool_prefix}ar; ac_word=$2
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9796 $as_echo_n "checking for $ac_word... " >&6; }
9797 if ${ac_cv_prog_AR+:} false; then :
9798 $as_echo_n "(cached) " >&6
9800 if test -n "$AR"; then
9801 ac_cv_prog_AR="$AR" # Let the user override the test.
9803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9807 test -z "$as_dir" && as_dir=.
9808 for ac_exec_ext in '' $ac_executable_extensions; do
9809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9810 ac_cv_prog_AR="${ac_tool_prefix}ar"
9811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9821 if test -n "$AR"; then
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9823 $as_echo "$AR" >&6; }
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9826 $as_echo "no" >&6; }
9831 if test -z "$ac_cv_prog_AR"; then
9833 # Extract the first word of "ar", so it can be a program name with args.
9834 set dummy ar; ac_word=$2
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9836 $as_echo_n "checking for $ac_word... " >&6; }
9837 if ${ac_cv_prog_ac_ct_AR+:} false; then :
9838 $as_echo_n "(cached) " >&6
9840 if test -n "$ac_ct_AR"; then
9841 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9847 test -z "$as_dir" && as_dir=.
9848 for ac_exec_ext in '' $ac_executable_extensions; do
9849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9850 ac_cv_prog_ac_ct_AR="ar"
9851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9860 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9861 if test -n "$ac_ct_AR"; then
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9863 $as_echo "$ac_ct_AR" >&6; }
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9866 $as_echo "no" >&6; }
9869 if test "x$ac_ct_AR" = x; then
9872 case $cross_compiling:$ac_tool_warned in
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9875 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9876 ac_tool_warned=yes ;;
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
9889 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
9890 if ${ac_cv_path_GREP+:} false; then :
9891 $as_echo_n "(cached) " >&6
9893 if test -z "$GREP"; then
9894 ac_path_GREP_found=false
9895 # Loop through the user's path and test for each of PROGNAME-LIST
9896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9897 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9900 test -z "$as_dir" && as_dir=.
9901 for ac_prog in grep ggrep; do
9902 for ac_exec_ext in '' $ac_executable_extensions; do
9903 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
9904 as_fn_executable_p "$ac_path_GREP" || continue
9905 # Check for GNU ac_path_GREP and select it if it is found.
9906 # Check for GNU $ac_path_GREP
9907 case `"$ac_path_GREP" --version 2>&1` in
9909 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
9912 $as_echo_n 0123456789 >"conftest.in"
9915 cat "conftest.in" "conftest.in" >"conftest.tmp"
9916 mv "conftest.tmp" "conftest.in"
9917 cp "conftest.in" "conftest.nl"
9918 $as_echo 'GREP' >> "conftest.nl"
9919 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9920 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9921 as_fn_arith $ac_count + 1 && ac_count=$as_val
9922 if test $ac_count -gt ${ac_path_GREP_max-0}; then
9923 # Best one so far, save it but keep looking for a better one
9924 ac_cv_path_GREP="$ac_path_GREP"
9925 ac_path_GREP_max=$ac_count
9927 # 10*(2^10) chars as input seems more than enough
9928 test $ac_count -gt 10 && break
9930 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9933 $ac_path_GREP_found && break 3
9938 if test -z "$ac_cv_path_GREP"; then
9939 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9942 ac_cv_path_GREP=$GREP
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
9947 $as_echo "$ac_cv_path_GREP" >&6; }
9948 GREP="$ac_cv_path_GREP"
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9952 $as_echo_n "checking for egrep... " >&6; }
9953 if ${ac_cv_path_EGREP+:} false; then :
9954 $as_echo_n "(cached) " >&6
9956 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9957 then ac_cv_path_EGREP="$GREP -E"
9959 if test -z "$EGREP"; then
9960 ac_path_EGREP_found=false
9961 # Loop through the user's path and test for each of PROGNAME-LIST
9962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9963 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9966 test -z "$as_dir" && as_dir=.
9967 for ac_prog in egrep; do
9968 for ac_exec_ext in '' $ac_executable_extensions; do
9969 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9970 as_fn_executable_p "$ac_path_EGREP" || continue
9971 # Check for GNU ac_path_EGREP and select it if it is found.
9972 # Check for GNU $ac_path_EGREP
9973 case `"$ac_path_EGREP" --version 2>&1` in
9975 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9978 $as_echo_n 0123456789 >"conftest.in"
9981 cat "conftest.in" "conftest.in" >"conftest.tmp"
9982 mv "conftest.tmp" "conftest.in"
9983 cp "conftest.in" "conftest.nl"
9984 $as_echo 'EGREP' >> "conftest.nl"
9985 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9986 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9987 as_fn_arith $ac_count + 1 && ac_count=$as_val
9988 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9989 # Best one so far, save it but keep looking for a better one
9990 ac_cv_path_EGREP="$ac_path_EGREP"
9991 ac_path_EGREP_max=$ac_count
9993 # 10*(2^10) chars as input seems more than enough
9994 test $ac_count -gt 10 && break
9996 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9999 $ac_path_EGREP_found && break 3
10004 if test -z "$ac_cv_path_EGREP"; then
10005 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10008 ac_cv_path_EGREP=$EGREP
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
10014 $as_echo "$ac_cv_path_EGREP" >&6; }
10015 EGREP="$ac_cv_path_EGREP"
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10019 $as_echo_n "checking for ANSI C header files... " >&6; }
10020 if ${ac_cv_header_stdc+:} false; then :
10021 $as_echo_n "(cached) " >&6
10023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10024 /* end confdefs.h. */
10025 #include <stdlib.h>
10026 #include <stdarg.h>
10027 #include <string.h>
10038 if ac_fn_c_try_compile "$LINENO"; then :
10039 ac_cv_header_stdc=yes
10041 ac_cv_header_stdc=no
10043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10045 if test $ac_cv_header_stdc = yes; then
10046 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10048 /* end confdefs.h. */
10049 #include <string.h>
10052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10053 $EGREP "memchr" >/dev/null 2>&1; then :
10056 ac_cv_header_stdc=no
10062 if test $ac_cv_header_stdc = yes; then
10063 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10065 /* end confdefs.h. */
10066 #include <stdlib.h>
10069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10070 $EGREP "free" >/dev/null 2>&1; then :
10073 ac_cv_header_stdc=no
10079 if test $ac_cv_header_stdc = yes; then
10080 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10081 if test "$cross_compiling" = yes; then :
10084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10085 /* end confdefs.h. */
10087 #include <stdlib.h>
10088 #if ((' ' & 0x0FF) == 0x020)
10089 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10090 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10092 # define ISLOWER(c) \
10093 (('a' <= (c) && (c) <= 'i') \
10094 || ('j' <= (c) && (c) <= 'r') \
10095 || ('s' <= (c) && (c) <= 'z'))
10096 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10099 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10104 for (i = 0; i < 256; i++)
10105 if (XOR (islower (i), ISLOWER (i))
10106 || toupper (i) != TOUPPER (i))
10111 if ac_fn_c_try_run "$LINENO"; then :
10114 ac_cv_header_stdc=no
10116 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10117 conftest.$ac_objext conftest.beam conftest.$ac_ext
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10123 $as_echo "$ac_cv_header_stdc" >&6; }
10124 if test $ac_cv_header_stdc = yes; then
10126 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10130 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10131 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10132 inttypes.h stdint.h unistd.h
10134 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10135 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10137 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10138 cat >>confdefs.h <<_ACEOF
10139 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10148 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
10149 if test "x$ac_cv_header_minix_config_h" = xyes; then :
10156 if test "$MINIX" = yes; then
10158 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
10161 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
10164 $as_echo "#define _MINIX 1" >>confdefs.h
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
10170 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
10171 if ${ac_cv_safe_to_define___extensions__+:} false; then :
10172 $as_echo_n "(cached) " >&6
10174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10175 /* end confdefs.h. */
10177 # define __EXTENSIONS__ 1
10178 $ac_includes_default
10187 if ac_fn_c_try_compile "$LINENO"; then :
10188 ac_cv_safe_to_define___extensions__=yes
10190 ac_cv_safe_to_define___extensions__=no
10192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
10195 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
10196 test $ac_cv_safe_to_define___extensions__ = yes &&
10197 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
10199 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
10201 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
10203 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
10205 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
10211 $as_echo_n "checking for library containing strerror... " >&6; }
10212 if ${ac_cv_search_strerror+:} false; then :
10213 $as_echo_n "(cached) " >&6
10215 ac_func_search_save_LIBS=$LIBS
10216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10217 /* end confdefs.h. */
10219 /* Override any GCC internal prototype to avoid an error.
10220 Use char because int might match the return type of a GCC
10221 builtin and then its argument prototype would still apply. */
10229 return strerror ();
10234 for ac_lib in '' cposix; do
10235 if test -z "$ac_lib"; then
10236 ac_res="none required"
10239 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10241 if ac_fn_c_try_link "$LINENO"; then :
10242 ac_cv_search_strerror=$ac_res
10244 rm -f core conftest.err conftest.$ac_objext \
10246 if ${ac_cv_search_strerror+:} false; then :
10250 if ${ac_cv_search_strerror+:} false; then :
10253 ac_cv_search_strerror=no
10255 rm conftest.$ac_ext
10256 LIBS=$ac_func_search_save_LIBS
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
10259 $as_echo "$ac_cv_search_strerror" >&6; }
10260 ac_res=$ac_cv_search_strerror
10261 if test "$ac_res" != no; then :
10262 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system uses EBCDIC" >&5
10268 $as_echo_n "checking whether system uses EBCDIC... " >&6; }
10269 if ${ac_cv_ebcdic+:} false; then :
10270 $as_echo_n "(cached) " >&6
10273 if test "$cross_compiling" = yes; then :
10278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10279 /* end confdefs.h. */
10282 return (unsigned char)'A' != (unsigned char)0xC1;
10286 if ac_fn_c_try_run "$LINENO"; then :
10295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10296 conftest.$ac_objext conftest.beam conftest.$ac_ext
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ebcdic" >&5
10301 $as_echo "$ac_cv_ebcdic" >&6; }
10302 if test "$ac_cv_ebcdic" = "yes"; then
10303 apr_charset_ebcdic=1
10305 apr_charset_ebcdic=0
10310 APR_LIBNAME="apr${libsuffix}"
10313 echo "performing libtool configuration..."
10315 # Check whether --enable-experimental-libtool was given.
10316 if test "${enable_experimental_libtool+set}" = set; then :
10317 enableval=$enable_experimental_libtool; experimental_libtool=$enableval
10319 experimental_libtool=no
10323 if test "x$Xsed" = "x"; then
10324 Xsed="$SED -e 1s/^X//"
10329 # Use a custom-made libtool replacement
10330 echo "using aplibtool"
10331 LIBTOOL="$srcdir/build/aplibtool"
10332 gcc $CFLAGS $CPPFLAGS -o $LIBTOOL.exe $LIBTOOL.c
10335 if test "x$LTFLAGS" = "x"; then
10338 if test "$experimental_libtool" = "yes"; then
10339 # Use a custom-made libtool replacement
10340 echo "using jlibtool"
10341 LIBTOOL="$apr_builddir/libtool"
10342 LIBTOOL_SRC="$apr_srcdir/build/jlibtool.c"
10343 $CC $CFLAGS $CPPFLAGS -o $LIBTOOL $LIBTOOL_SRC
10344 eval `$apr_builddir/libtool --config | grep "^shlibpath_var=[A-Z_]*$"`
10345 if test "x$shlibpath_var" = "x"; then
10346 shlibpath_var=REPLACE_WITH_YOUR_SHLIBPATH_VAR
10349 enable_win32_dll=yes
10352 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
10353 if test -n "$ac_tool_prefix"; then
10354 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10355 set dummy ${ac_tool_prefix}as; ac_word=$2
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10357 $as_echo_n "checking for $ac_word... " >&6; }
10358 if ${ac_cv_prog_AS+:} false; then :
10359 $as_echo_n "(cached) " >&6
10361 if test -n "$AS"; then
10362 ac_cv_prog_AS="$AS" # Let the user override the test.
10364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10365 for as_dir in $PATH
10368 test -z "$as_dir" && as_dir=.
10369 for ac_exec_ext in '' $ac_executable_extensions; do
10370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10371 ac_cv_prog_AS="${ac_tool_prefix}as"
10372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10382 if test -n "$AS"; then
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10384 $as_echo "$AS" >&6; }
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10387 $as_echo "no" >&6; }
10392 if test -z "$ac_cv_prog_AS"; then
10394 # Extract the first word of "as", so it can be a program name with args.
10395 set dummy as; ac_word=$2
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10397 $as_echo_n "checking for $ac_word... " >&6; }
10398 if ${ac_cv_prog_ac_ct_AS+:} false; then :
10399 $as_echo_n "(cached) " >&6
10401 if test -n "$ac_ct_AS"; then
10402 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10405 for as_dir in $PATH
10408 test -z "$as_dir" && as_dir=.
10409 for ac_exec_ext in '' $ac_executable_extensions; do
10410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10411 ac_cv_prog_ac_ct_AS="as"
10412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10421 ac_ct_AS=$ac_cv_prog_ac_ct_AS
10422 if test -n "$ac_ct_AS"; then
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
10424 $as_echo "$ac_ct_AS" >&6; }
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10427 $as_echo "no" >&6; }
10430 if test "x$ac_ct_AS" = x; then
10433 case $cross_compiling:$ac_tool_warned in
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10436 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10437 ac_tool_warned=yes ;;
10442 AS="$ac_cv_prog_AS"
10445 if test -n "$ac_tool_prefix"; then
10446 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10447 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10449 $as_echo_n "checking for $ac_word... " >&6; }
10450 if ${ac_cv_prog_DLLTOOL+:} false; then :
10451 $as_echo_n "(cached) " >&6
10453 if test -n "$DLLTOOL"; then
10454 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10457 for as_dir in $PATH
10460 test -z "$as_dir" && as_dir=.
10461 for ac_exec_ext in '' $ac_executable_extensions; do
10462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10463 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10473 DLLTOOL=$ac_cv_prog_DLLTOOL
10474 if test -n "$DLLTOOL"; then
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10476 $as_echo "$DLLTOOL" >&6; }
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10479 $as_echo "no" >&6; }
10484 if test -z "$ac_cv_prog_DLLTOOL"; then
10485 ac_ct_DLLTOOL=$DLLTOOL
10486 # Extract the first word of "dlltool", so it can be a program name with args.
10487 set dummy dlltool; ac_word=$2
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10489 $as_echo_n "checking for $ac_word... " >&6; }
10490 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10491 $as_echo_n "(cached) " >&6
10493 if test -n "$ac_ct_DLLTOOL"; then
10494 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10497 for as_dir in $PATH
10500 test -z "$as_dir" && as_dir=.
10501 for ac_exec_ext in '' $ac_executable_extensions; do
10502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10503 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10513 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10514 if test -n "$ac_ct_DLLTOOL"; then
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10516 $as_echo "$ac_ct_DLLTOOL" >&6; }
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10519 $as_echo "no" >&6; }
10522 if test "x$ac_ct_DLLTOOL" = x; then
10525 case $cross_compiling:$ac_tool_warned in
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10528 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10529 ac_tool_warned=yes ;;
10531 DLLTOOL=$ac_ct_DLLTOOL
10534 DLLTOOL="$ac_cv_prog_DLLTOOL"
10537 if test -n "$ac_tool_prefix"; then
10538 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10539 set dummy ${ac_tool_prefix}objdump; ac_word=$2
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10541 $as_echo_n "checking for $ac_word... " >&6; }
10542 if ${ac_cv_prog_OBJDUMP+:} false; then :
10543 $as_echo_n "(cached) " >&6
10545 if test -n "$OBJDUMP"; then
10546 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10549 for as_dir in $PATH
10552 test -z "$as_dir" && as_dir=.
10553 for ac_exec_ext in '' $ac_executable_extensions; do
10554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10555 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10565 OBJDUMP=$ac_cv_prog_OBJDUMP
10566 if test -n "$OBJDUMP"; then
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10568 $as_echo "$OBJDUMP" >&6; }
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10571 $as_echo "no" >&6; }
10576 if test -z "$ac_cv_prog_OBJDUMP"; then
10577 ac_ct_OBJDUMP=$OBJDUMP
10578 # Extract the first word of "objdump", so it can be a program name with args.
10579 set dummy objdump; ac_word=$2
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10581 $as_echo_n "checking for $ac_word... " >&6; }
10582 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
10583 $as_echo_n "(cached) " >&6
10585 if test -n "$ac_ct_OBJDUMP"; then
10586 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10589 for as_dir in $PATH
10592 test -z "$as_dir" && as_dir=.
10593 for ac_exec_ext in '' $ac_executable_extensions; do
10594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10595 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10605 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10606 if test -n "$ac_ct_OBJDUMP"; then
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10608 $as_echo "$ac_ct_OBJDUMP" >&6; }
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10611 $as_echo "no" >&6; }
10614 if test "x$ac_ct_OBJDUMP" = x; then
10617 case $cross_compiling:$ac_tool_warned in
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10621 ac_tool_warned=yes ;;
10623 OBJDUMP=$ac_ct_OBJDUMP
10626 OBJDUMP="$ac_cv_prog_OBJDUMP"
10632 test -z "$AS" && AS=as
10638 test -z "$DLLTOOL" && DLLTOOL=dlltool
10644 test -z "$OBJDUMP" && OBJDUMP=objdump
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10655 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10660 macro_version='2.4.2'
10661 macro_revision='1.3337'
10675 ltmain="$ac_aux_dir/ltmain.sh"
10677 # Backslashify metacharacters that are still active within
10678 # double-quoted strings.
10679 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10681 # Same as above, but do not quote variable references.
10682 double_quote_subst='s/\(["`\\]\)/\\\1/g'
10684 # Sed substitution to delay expansion of an escaped shell variable in a
10685 # double_quote_subst'ed string.
10686 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10688 # Sed substitution to delay expansion of an escaped single quote.
10689 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10691 # Sed substitution to avoid accidental globbing in evaled expressions
10692 no_glob_subst='s/\*/\\\*/g'
10694 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10695 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10696 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10699 $as_echo_n "checking how to print strings... " >&6; }
10700 # Test print first, because it will be a builtin if present.
10701 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10702 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10704 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10707 # Use this function as a fallback that always works.
10708 func_fallback_echo ()
10710 eval 'cat <<_LTECHO_EOF
10714 ECHO='func_fallback_echo'
10717 # func_echo_all arg...
10718 # Invoke $ECHO with all args, space-separated.
10725 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10726 $as_echo "printf" >&6; } ;;
10727 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10728 $as_echo "print -r" >&6; } ;;
10729 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10730 $as_echo "cat" >&6; } ;;
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10747 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
10748 if ${ac_cv_path_SED+:} false; then :
10749 $as_echo_n "(cached) " >&6
10751 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10752 for ac_i in 1 2 3 4 5 6 7; do
10753 ac_script="$ac_script$as_nl$ac_script"
10755 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10756 { ac_script=; unset ac_script;}
10757 if test -z "$SED"; then
10758 ac_path_SED_found=false
10759 # Loop through the user's path and test for each of PROGNAME-LIST
10760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10761 for as_dir in $PATH
10764 test -z "$as_dir" && as_dir=.
10765 for ac_prog in sed gsed; do
10766 for ac_exec_ext in '' $ac_executable_extensions; do
10767 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10768 as_fn_executable_p "$ac_path_SED" || continue
10769 # Check for GNU ac_path_SED and select it if it is found.
10770 # Check for GNU $ac_path_SED
10771 case `"$ac_path_SED" --version 2>&1` in
10773 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10776 $as_echo_n 0123456789 >"conftest.in"
10779 cat "conftest.in" "conftest.in" >"conftest.tmp"
10780 mv "conftest.tmp" "conftest.in"
10781 cp "conftest.in" "conftest.nl"
10782 $as_echo '' >> "conftest.nl"
10783 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10784 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10785 as_fn_arith $ac_count + 1 && ac_count=$as_val
10786 if test $ac_count -gt ${ac_path_SED_max-0}; then
10787 # Best one so far, save it but keep looking for a better one
10788 ac_cv_path_SED="$ac_path_SED"
10789 ac_path_SED_max=$ac_count
10791 # 10*(2^10) chars as input seems more than enough
10792 test $ac_count -gt 10 && break
10794 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10797 $ac_path_SED_found && break 3
10802 if test -z "$ac_cv_path_SED"; then
10803 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10806 ac_cv_path_SED=$SED
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10811 $as_echo "$ac_cv_path_SED" >&6; }
10812 SED="$ac_cv_path_SED"
10815 test -z "$SED" && SED=sed
10816 Xsed="$SED -e 1s/^X//"
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
10829 $as_echo_n "checking for fgrep... " >&6; }
10830 if ${ac_cv_path_FGREP+:} false; then :
10831 $as_echo_n "(cached) " >&6
10833 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
10834 then ac_cv_path_FGREP="$GREP -F"
10836 if test -z "$FGREP"; then
10837 ac_path_FGREP_found=false
10838 # Loop through the user's path and test for each of PROGNAME-LIST
10839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10840 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10843 test -z "$as_dir" && as_dir=.
10844 for ac_prog in fgrep; do
10845 for ac_exec_ext in '' $ac_executable_extensions; do
10846 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
10847 as_fn_executable_p "$ac_path_FGREP" || continue
10848 # Check for GNU ac_path_FGREP and select it if it is found.
10849 # Check for GNU $ac_path_FGREP
10850 case `"$ac_path_FGREP" --version 2>&1` in
10852 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
10855 $as_echo_n 0123456789 >"conftest.in"
10858 cat "conftest.in" "conftest.in" >"conftest.tmp"
10859 mv "conftest.tmp" "conftest.in"
10860 cp "conftest.in" "conftest.nl"
10861 $as_echo 'FGREP' >> "conftest.nl"
10862 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
10863 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10864 as_fn_arith $ac_count + 1 && ac_count=$as_val
10865 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
10866 # Best one so far, save it but keep looking for a better one
10867 ac_cv_path_FGREP="$ac_path_FGREP"
10868 ac_path_FGREP_max=$ac_count
10870 # 10*(2^10) chars as input seems more than enough
10871 test $ac_count -gt 10 && break
10873 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10876 $ac_path_FGREP_found && break 3
10881 if test -z "$ac_cv_path_FGREP"; then
10882 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10885 ac_cv_path_FGREP=$FGREP
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
10891 $as_echo "$ac_cv_path_FGREP" >&6; }
10892 FGREP="$ac_cv_path_FGREP"
10895 test -z "$GREP" && GREP=grep
10915 # Check whether --with-gnu-ld was given.
10916 if test "${with_gnu_ld+set}" = set; then :
10917 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10923 if test "$GCC" = yes; then
10924 # Check if gcc -print-prog-name=ld gives a path.
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10926 $as_echo_n "checking for ld used by $CC... " >&6; }
10929 # gcc leaves a trailing carriage return which upsets mingw
10930 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10932 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10935 # Accept absolute paths.
10937 re_direlt='/[^/][^/]*/\.\./'
10938 # Canonicalize the pathname of ld
10939 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
10940 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
10941 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
10943 test -z "$LD" && LD="$ac_prog"
10946 # If it fails, then pretend we aren't using GCC.
10950 # If it is relative, then search for the first ld in PATH.
10951 with_gnu_ld=unknown
10954 elif test "$with_gnu_ld" = yes; then
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10956 $as_echo_n "checking for GNU ld... " >&6; }
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10959 $as_echo_n "checking for non-GNU ld... " >&6; }
10961 if ${lt_cv_path_LD+:} false; then :
10962 $as_echo_n "(cached) " >&6
10964 if test -z "$LD"; then
10965 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10966 for ac_dir in $PATH; do
10968 test -z "$ac_dir" && ac_dir=.
10969 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10970 lt_cv_path_LD="$ac_dir/$ac_prog"
10971 # Check to see if the program is GNU ld. I'd rather use --version,
10972 # but apparently some variants of GNU ld only accept -v.
10973 # Break only if it was the GNU/non-GNU ld that we prefer.
10974 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10975 *GNU* | *'with BFD'*)
10976 test "$with_gnu_ld" != no && break
10979 test "$with_gnu_ld" != yes && break
10986 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10990 LD="$lt_cv_path_LD"
10991 if test -n "$LD"; then
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10993 $as_echo "$LD" >&6; }
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10996 $as_echo "no" >&6; }
10998 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11000 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11001 if ${lt_cv_prog_gnu_ld+:} false; then :
11002 $as_echo_n "(cached) " >&6
11004 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11005 case `$LD -v 2>&1 </dev/null` in
11006 *GNU* | *'with BFD'*)
11007 lt_cv_prog_gnu_ld=yes
11010 lt_cv_prog_gnu_ld=no
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11015 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11016 with_gnu_ld=$lt_cv_prog_gnu_ld
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11027 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11028 if ${lt_cv_path_NM+:} false; then :
11029 $as_echo_n "(cached) " >&6
11031 if test -n "$NM"; then
11032 # Let the user override the test.
11033 lt_cv_path_NM="$NM"
11035 lt_nm_to_check="${ac_tool_prefix}nm"
11036 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11037 lt_nm_to_check="$lt_nm_to_check nm"
11039 for lt_tmp_nm in $lt_nm_to_check; do
11040 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11041 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11043 test -z "$ac_dir" && ac_dir=.
11044 tmp_nm="$ac_dir/$lt_tmp_nm"
11045 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11046 # Check to see if the nm accepts a BSD-compat flag.
11047 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11048 # nm: unknown option "B" ignored
11049 # Tru64's nm complains that /dev/null is an invalid object file
11050 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11051 */dev/null* | *'Invalid file or object type'*)
11052 lt_cv_path_NM="$tmp_nm -B"
11056 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11058 lt_cv_path_NM="$tmp_nm -p"
11062 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11063 continue # so that we can try to find one that supports BSD flags
11072 : ${lt_cv_path_NM=no}
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11076 $as_echo "$lt_cv_path_NM" >&6; }
11077 if test "$lt_cv_path_NM" != "no"; then
11078 NM="$lt_cv_path_NM"
11080 # Didn't find any BSD compatible name lister, look for dumpbin.
11081 if test -n "$DUMPBIN"; then :
11082 # Let the user override the test.
11084 if test -n "$ac_tool_prefix"; then
11085 for ac_prog in dumpbin "link -dump"
11087 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11088 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11090 $as_echo_n "checking for $ac_word... " >&6; }
11091 if ${ac_cv_prog_DUMPBIN+:} false; then :
11092 $as_echo_n "(cached) " >&6
11094 if test -n "$DUMPBIN"; then
11095 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11098 for as_dir in $PATH
11101 test -z "$as_dir" && as_dir=.
11102 for ac_exec_ext in '' $ac_executable_extensions; do
11103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11104 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11114 DUMPBIN=$ac_cv_prog_DUMPBIN
11115 if test -n "$DUMPBIN"; then
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11117 $as_echo "$DUMPBIN" >&6; }
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11120 $as_echo "no" >&6; }
11124 test -n "$DUMPBIN" && break
11127 if test -z "$DUMPBIN"; then
11128 ac_ct_DUMPBIN=$DUMPBIN
11129 for ac_prog in dumpbin "link -dump"
11131 # Extract the first word of "$ac_prog", so it can be a program name with args.
11132 set dummy $ac_prog; ac_word=$2
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11134 $as_echo_n "checking for $ac_word... " >&6; }
11135 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11136 $as_echo_n "(cached) " >&6
11138 if test -n "$ac_ct_DUMPBIN"; then
11139 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11142 for as_dir in $PATH
11145 test -z "$as_dir" && as_dir=.
11146 for ac_exec_ext in '' $ac_executable_extensions; do
11147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11148 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11158 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11159 if test -n "$ac_ct_DUMPBIN"; then
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11161 $as_echo "$ac_ct_DUMPBIN" >&6; }
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11164 $as_echo "no" >&6; }
11168 test -n "$ac_ct_DUMPBIN" && break
11171 if test "x$ac_ct_DUMPBIN" = x; then
11174 case $cross_compiling:$ac_tool_warned in
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11178 ac_tool_warned=yes ;;
11180 DUMPBIN=$ac_ct_DUMPBIN
11184 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11186 DUMPBIN="$DUMPBIN -symbols"
11194 if test "$DUMPBIN" != ":"; then
11198 test -z "$NM" && NM=nm
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11206 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11207 if ${lt_cv_nm_interface+:} false; then :
11208 $as_echo_n "(cached) " >&6
11210 lt_cv_nm_interface="BSD nm"
11211 echo "int some_variable = 0;" > conftest.$ac_ext
11212 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11213 (eval "$ac_compile" 2>conftest.err)
11214 cat conftest.err >&5
11215 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11216 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11217 cat conftest.err >&5
11218 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11219 cat conftest.out >&5
11220 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11221 lt_cv_nm_interface="MS dumpbin"
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11226 $as_echo "$lt_cv_nm_interface" >&6; }
11228 # find the maximum length of command line arguments
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11230 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11231 if ${lt_cv_sys_max_cmd_len+:} false; then :
11232 $as_echo_n "(cached) " >&6
11239 # On DJGPP, this test can blow up pretty badly due to problems in libc
11240 # (any single argument exceeding 2000 bytes causes a buffer overrun
11241 # during glob expansion). Even if it were fixed, the result of this
11242 # check would be larger than it should be.
11243 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11247 # Under GNU Hurd, this test is not required because there is
11248 # no limit to the length of command line arguments.
11249 # Libtool will interpret -1 as no limit whatsoever
11250 lt_cv_sys_max_cmd_len=-1;
11253 cygwin* | mingw* | cegcc*)
11254 # On Win9x/ME, this test blows up -- it succeeds, but takes
11255 # about 5 minutes as the teststring grows exponentially.
11256 # Worse, since 9x/ME are not pre-emptively multitasking,
11257 # you end up with a "frozen" computer, even though with patience
11258 # the test eventually succeeds (with a max line length of 256k).
11259 # Instead, let's just punt: use the minimum linelength reported by
11260 # all of the supported platforms: 8192 (on NT/2K/XP).
11261 lt_cv_sys_max_cmd_len=8192;
11265 # On MiNT this can take a long time and run out of memory.
11266 lt_cv_sys_max_cmd_len=8192;
11270 # On AmigaOS with pdksh, this test takes hours, literally.
11271 # So we just punt and use a minimum line length of 8192.
11272 lt_cv_sys_max_cmd_len=8192;
11275 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11276 # This has been around since 386BSD, at least. Likely further.
11277 if test -x /sbin/sysctl; then
11278 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11279 elif test -x /usr/sbin/sysctl; then
11280 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11282 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11284 # And add a safety zone
11285 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11286 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11290 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11291 lt_cv_sys_max_cmd_len=196608
11295 # The test takes a long time on OS/2.
11296 lt_cv_sys_max_cmd_len=8192
11300 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11301 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11302 # nice to cause kernel panics so lets avoid the loop below.
11303 # First set a reasonable default.
11304 lt_cv_sys_max_cmd_len=16384
11306 if test -x /sbin/sysconfig; then
11307 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11308 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11313 lt_cv_sys_max_cmd_len=102400
11315 sysv5* | sco5v6* | sysv4.2uw2*)
11316 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11317 if test -n "$kargmax"; then
11318 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11320 lt_cv_sys_max_cmd_len=32768
11324 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11325 if test -n "$lt_cv_sys_max_cmd_len"; then
11326 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11327 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11329 # Make teststring a little bigger before we do anything with it.
11330 # a 1K string should be a reasonable start.
11331 for i in 1 2 3 4 5 6 7 8 ; do
11332 teststring=$teststring$teststring
11334 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11335 # If test is not a shell built-in, we'll probably end up computing a
11336 # maximum length that is only half of the actual maximum length, but
11338 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
11339 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11340 test $i != 17 # 1/2 MB should be enough
11343 teststring=$teststring$teststring
11345 # Only check the string length outside the loop.
11346 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11348 # Add a significant safety factor because C++ compilers can tack on
11349 # massive amounts of additional arguments before passing them to the
11350 # linker. It appears as though 1/2 is a usable value.
11351 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11358 if test -n $lt_cv_sys_max_cmd_len ; then
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11360 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11363 $as_echo "none" >&6; }
11365 max_cmd_len=$lt_cv_sys_max_cmd_len
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11377 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11378 # Try some XSI features
11380 ( _lt_dummy="a/b/c"
11381 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11383 && eval 'test $(( 1 + 1 )) -eq 2 \
11384 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11387 $as_echo "$xsi_shell" >&6; }
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11391 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11393 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11395 && lt_shell_append=yes
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11397 $as_echo "$lt_shell_append" >&6; }
11400 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11410 # test EBCDIC or ASCII
11411 case `echo X|tr X '\101'` in
11412 A) # ASCII based system
11413 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11414 lt_SP2NL='tr \040 \012'
11415 lt_NL2SP='tr \015\012 \040\040'
11417 *) # EBCDIC based system
11418 lt_SP2NL='tr \100 \n'
11419 lt_NL2SP='tr \r\n \100\100'
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11432 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11433 if ${lt_cv_to_host_file_cmd+:} false; then :
11434 $as_echo_n "(cached) " >&6
11439 *-*-mingw* ) # actually msys
11440 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11443 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11445 * ) # otherwise, assume *nix
11446 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11452 *-*-mingw* ) # actually msys
11453 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11456 lt_cv_to_host_file_cmd=func_convert_file_noop
11458 * ) # otherwise, assume *nix
11459 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11463 * ) # unhandled hosts (and "normal" native builds)
11464 lt_cv_to_host_file_cmd=func_convert_file_noop
11470 to_host_file_cmd=$lt_cv_to_host_file_cmd
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11472 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11479 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11480 if ${lt_cv_to_tool_file_cmd+:} false; then :
11481 $as_echo_n "(cached) " >&6
11483 #assume ordinary cross tools, or native build.
11484 lt_cv_to_tool_file_cmd=func_convert_file_noop
11488 *-*-mingw* ) # actually msys
11489 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11497 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11499 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11506 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11507 if ${lt_cv_ld_reload_flag+:} false; then :
11508 $as_echo_n "(cached) " >&6
11510 lt_cv_ld_reload_flag='-r'
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11513 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11514 reload_flag=$lt_cv_ld_reload_flag
11515 case $reload_flag in
11517 *) reload_flag=" $reload_flag" ;;
11519 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11521 cygwin* | mingw* | pw32* | cegcc*)
11522 if test "$GCC" != yes; then
11527 if test "$GCC" = yes; then
11528 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11530 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11543 if test -n "$ac_tool_prefix"; then
11544 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11545 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11547 $as_echo_n "checking for $ac_word... " >&6; }
11548 if ${ac_cv_prog_OBJDUMP+:} false; then :
11549 $as_echo_n "(cached) " >&6
11551 if test -n "$OBJDUMP"; then
11552 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11555 for as_dir in $PATH
11558 test -z "$as_dir" && as_dir=.
11559 for ac_exec_ext in '' $ac_executable_extensions; do
11560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11561 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11571 OBJDUMP=$ac_cv_prog_OBJDUMP
11572 if test -n "$OBJDUMP"; then
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11574 $as_echo "$OBJDUMP" >&6; }
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11577 $as_echo "no" >&6; }
11582 if test -z "$ac_cv_prog_OBJDUMP"; then
11583 ac_ct_OBJDUMP=$OBJDUMP
11584 # Extract the first word of "objdump", so it can be a program name with args.
11585 set dummy objdump; ac_word=$2
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11587 $as_echo_n "checking for $ac_word... " >&6; }
11588 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11589 $as_echo_n "(cached) " >&6
11591 if test -n "$ac_ct_OBJDUMP"; then
11592 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11595 for as_dir in $PATH
11598 test -z "$as_dir" && as_dir=.
11599 for ac_exec_ext in '' $ac_executable_extensions; do
11600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11601 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11611 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11612 if test -n "$ac_ct_OBJDUMP"; then
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11614 $as_echo "$ac_ct_OBJDUMP" >&6; }
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11617 $as_echo "no" >&6; }
11620 if test "x$ac_ct_OBJDUMP" = x; then
11623 case $cross_compiling:$ac_tool_warned in
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11627 ac_tool_warned=yes ;;
11629 OBJDUMP=$ac_ct_OBJDUMP
11632 OBJDUMP="$ac_cv_prog_OBJDUMP"
11635 test -z "$OBJDUMP" && OBJDUMP=objdump
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11643 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11644 if ${lt_cv_deplibs_check_method+:} false; then :
11645 $as_echo_n "(cached) " >&6
11647 lt_cv_file_magic_cmd='$MAGIC_CMD'
11648 lt_cv_file_magic_test_file=
11649 lt_cv_deplibs_check_method='unknown'
11650 # Need to set the preceding variable on all platforms that support
11651 # interlibrary dependencies.
11652 # 'none' -- dependencies not supported.
11653 # `unknown' -- same as none, but documents that we really don't know.
11654 # 'pass_all' -- all dependencies passed with no checks.
11655 # 'test_compile' -- check by making test program.
11656 # 'file_magic [[regex]]' -- check by looking for files in library path
11657 # which responds to the $file_magic_cmd with a given extended regex.
11658 # If you have `file' or equivalent on your system and you're not sure
11659 # whether `pass_all' will *always* work, you probably want this one.
11663 lt_cv_deplibs_check_method=pass_all
11667 lt_cv_deplibs_check_method=pass_all
11671 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11672 lt_cv_file_magic_cmd='/usr/bin/file -L'
11673 lt_cv_file_magic_test_file=/shlib/libc.so
11677 # func_win32_libid is a shell function defined in ltmain.sh
11678 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11679 lt_cv_file_magic_cmd='func_win32_libid'
11683 # Base MSYS/MinGW do not provide the 'file' command needed by
11684 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11685 # unless we find 'file', for example because we are cross-compiling.
11686 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11687 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
11688 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11689 lt_cv_file_magic_cmd='func_win32_libid'
11691 # Keep this pattern in sync with the one in func_win32_libid.
11692 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11693 lt_cv_file_magic_cmd='$OBJDUMP -f'
11698 # use the weaker test based on 'objdump'. See mingw*.
11699 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11700 lt_cv_file_magic_cmd='$OBJDUMP -f'
11703 darwin* | rhapsody*)
11704 lt_cv_deplibs_check_method=pass_all
11707 freebsd* | dragonfly*)
11708 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11711 # Not sure whether the presence of OpenBSD here was a mistake.
11712 # Let's accept both of them until this is cleared up.
11713 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11714 lt_cv_file_magic_cmd=/usr/bin/file
11715 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11719 lt_cv_deplibs_check_method=pass_all
11724 lt_cv_deplibs_check_method=pass_all
11728 lt_cv_deplibs_check_method=pass_all
11731 hpux10.20* | hpux11*)
11732 lt_cv_file_magic_cmd=/usr/bin/file
11735 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11736 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11739 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
11740 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11743 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11744 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11750 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11751 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11754 irix5* | irix6* | nonstopux*)
11756 *-32|*"-32 ") libmagic=32-bit;;
11757 *-n32|*"-n32 ") libmagic=N32;;
11758 *-64|*"-64 ") libmagic=64-bit;;
11759 *) libmagic=never-match;;
11761 lt_cv_deplibs_check_method=pass_all
11764 # This must be glibc/ELF.
11765 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11766 lt_cv_deplibs_check_method=pass_all
11770 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11771 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11773 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11778 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11779 lt_cv_file_magic_cmd=/usr/bin/file
11780 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11784 lt_cv_deplibs_check_method=pass_all
11788 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11789 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11791 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11795 osf3* | osf4* | osf5*)
11796 lt_cv_deplibs_check_method=pass_all
11800 lt_cv_deplibs_check_method=pass_all
11804 lt_cv_deplibs_check_method=pass_all
11807 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11808 lt_cv_deplibs_check_method=pass_all
11812 case $host_vendor in
11814 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]'
11815 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11818 lt_cv_deplibs_check_method=pass_all
11821 lt_cv_file_magic_cmd='/bin/file'
11822 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11825 lt_cv_file_magic_cmd='/bin/file'
11826 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11827 lt_cv_file_magic_test_file=/lib/libc.so
11830 lt_cv_deplibs_check_method=pass_all
11833 lt_cv_deplibs_check_method=pass_all
11839 lt_cv_deplibs_check_method=pass_all
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11845 $as_echo "$lt_cv_deplibs_check_method" >&6; }
11849 if test "$build" = "$host"; then
11852 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11853 want_nocaseglob=yes
11855 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11861 file_magic_cmd=$lt_cv_file_magic_cmd
11862 deplibs_check_method=$lt_cv_deplibs_check_method
11863 test -z "$deplibs_check_method" && deplibs_check_method=unknown
11886 if test -n "$ac_tool_prefix"; then
11887 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11888 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11890 $as_echo_n "checking for $ac_word... " >&6; }
11891 if ${ac_cv_prog_DLLTOOL+:} false; then :
11892 $as_echo_n "(cached) " >&6
11894 if test -n "$DLLTOOL"; then
11895 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11898 for as_dir in $PATH
11901 test -z "$as_dir" && as_dir=.
11902 for ac_exec_ext in '' $ac_executable_extensions; do
11903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11904 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11914 DLLTOOL=$ac_cv_prog_DLLTOOL
11915 if test -n "$DLLTOOL"; then
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11917 $as_echo "$DLLTOOL" >&6; }
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11920 $as_echo "no" >&6; }
11925 if test -z "$ac_cv_prog_DLLTOOL"; then
11926 ac_ct_DLLTOOL=$DLLTOOL
11927 # Extract the first word of "dlltool", so it can be a program name with args.
11928 set dummy dlltool; ac_word=$2
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11930 $as_echo_n "checking for $ac_word... " >&6; }
11931 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11932 $as_echo_n "(cached) " >&6
11934 if test -n "$ac_ct_DLLTOOL"; then
11935 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11938 for as_dir in $PATH
11941 test -z "$as_dir" && as_dir=.
11942 for ac_exec_ext in '' $ac_executable_extensions; do
11943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11944 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11954 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11955 if test -n "$ac_ct_DLLTOOL"; then
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11957 $as_echo "$ac_ct_DLLTOOL" >&6; }
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11960 $as_echo "no" >&6; }
11963 if test "x$ac_ct_DLLTOOL" = x; then
11966 case $cross_compiling:$ac_tool_warned in
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11969 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11970 ac_tool_warned=yes ;;
11972 DLLTOOL=$ac_ct_DLLTOOL
11975 DLLTOOL="$ac_cv_prog_DLLTOOL"
11978 test -z "$DLLTOOL" && DLLTOOL=dlltool
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11987 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11988 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11989 $as_echo_n "(cached) " >&6
11991 lt_cv_sharedlib_from_linklib_cmd='unknown'
11994 cygwin* | mingw* | pw32* | cegcc*)
11995 # two different shell functions defined in ltmain.sh
11996 # decide which to use based on capabilities of $DLLTOOL
11997 case `$DLLTOOL --help 2>&1` in
11998 *--identify-strict*)
11999 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12002 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12007 # fallback: assume linklib IS sharedlib
12008 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12014 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12015 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12016 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12024 if test -n "$ac_tool_prefix"; then
12027 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12028 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12030 $as_echo_n "checking for $ac_word... " >&6; }
12031 if ${ac_cv_prog_AR+:} false; then :
12032 $as_echo_n "(cached) " >&6
12034 if test -n "$AR"; then
12035 ac_cv_prog_AR="$AR" # Let the user override the test.
12037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12038 for as_dir in $PATH
12041 test -z "$as_dir" && as_dir=.
12042 for ac_exec_ext in '' $ac_executable_extensions; do
12043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12044 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12055 if test -n "$AR"; then
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12057 $as_echo "$AR" >&6; }
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12060 $as_echo "no" >&6; }
12064 test -n "$AR" && break
12067 if test -z "$AR"; then
12071 # Extract the first word of "$ac_prog", so it can be a program name with args.
12072 set dummy $ac_prog; ac_word=$2
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12074 $as_echo_n "checking for $ac_word... " >&6; }
12075 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12076 $as_echo_n "(cached) " >&6
12078 if test -n "$ac_ct_AR"; then
12079 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12082 for as_dir in $PATH
12085 test -z "$as_dir" && as_dir=.
12086 for ac_exec_ext in '' $ac_executable_extensions; do
12087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12088 ac_cv_prog_ac_ct_AR="$ac_prog"
12089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12098 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12099 if test -n "$ac_ct_AR"; then
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12101 $as_echo "$ac_ct_AR" >&6; }
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12104 $as_echo "no" >&6; }
12108 test -n "$ac_ct_AR" && break
12111 if test "x$ac_ct_AR" = x; then
12114 case $cross_compiling:$ac_tool_warned in
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12118 ac_tool_warned=yes ;;
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12138 $as_echo_n "checking for archiver @FILE support... " >&6; }
12139 if ${lt_cv_ar_at_file+:} false; then :
12140 $as_echo_n "(cached) " >&6
12142 lt_cv_ar_at_file=no
12143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12144 /* end confdefs.h. */
12154 if ac_fn_c_try_compile "$LINENO"; then :
12155 echo conftest.$ac_objext > conftest.lst
12156 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12157 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12158 (eval $lt_ar_try) 2>&5
12160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12161 test $ac_status = 0; }
12162 if test "$ac_status" -eq 0; then
12163 # Ensure the archiver fails upon bogus file names.
12164 rm -f conftest.$ac_objext libconftest.a
12165 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12166 (eval $lt_ar_try) 2>&5
12168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12169 test $ac_status = 0; }
12170 if test "$ac_status" -ne 0; then
12174 rm -f conftest.* libconftest.a
12177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12181 $as_echo "$lt_cv_ar_at_file" >&6; }
12183 if test "x$lt_cv_ar_at_file" = xno; then
12184 archiver_list_spec=
12186 archiver_list_spec=$lt_cv_ar_at_file
12195 if test -n "$ac_tool_prefix"; then
12196 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12197 set dummy ${ac_tool_prefix}strip; ac_word=$2
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12199 $as_echo_n "checking for $ac_word... " >&6; }
12200 if ${ac_cv_prog_STRIP+:} false; then :
12201 $as_echo_n "(cached) " >&6
12203 if test -n "$STRIP"; then
12204 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12207 for as_dir in $PATH
12210 test -z "$as_dir" && as_dir=.
12211 for ac_exec_ext in '' $ac_executable_extensions; do
12212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12213 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12223 STRIP=$ac_cv_prog_STRIP
12224 if test -n "$STRIP"; then
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12226 $as_echo "$STRIP" >&6; }
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12229 $as_echo "no" >&6; }
12234 if test -z "$ac_cv_prog_STRIP"; then
12236 # Extract the first word of "strip", so it can be a program name with args.
12237 set dummy strip; ac_word=$2
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12239 $as_echo_n "checking for $ac_word... " >&6; }
12240 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12241 $as_echo_n "(cached) " >&6
12243 if test -n "$ac_ct_STRIP"; then
12244 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12247 for as_dir in $PATH
12250 test -z "$as_dir" && as_dir=.
12251 for ac_exec_ext in '' $ac_executable_extensions; do
12252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12253 ac_cv_prog_ac_ct_STRIP="strip"
12254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12263 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12264 if test -n "$ac_ct_STRIP"; then
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12266 $as_echo "$ac_ct_STRIP" >&6; }
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12269 $as_echo "no" >&6; }
12272 if test "x$ac_ct_STRIP" = x; then
12275 case $cross_compiling:$ac_tool_warned in
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12278 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12279 ac_tool_warned=yes ;;
12284 STRIP="$ac_cv_prog_STRIP"
12287 test -z "$STRIP" && STRIP=:
12294 if test -n "$ac_tool_prefix"; then
12295 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12296 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12298 $as_echo_n "checking for $ac_word... " >&6; }
12299 if ${ac_cv_prog_RANLIB+:} false; then :
12300 $as_echo_n "(cached) " >&6
12302 if test -n "$RANLIB"; then
12303 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12306 for as_dir in $PATH
12309 test -z "$as_dir" && as_dir=.
12310 for ac_exec_ext in '' $ac_executable_extensions; do
12311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12312 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12322 RANLIB=$ac_cv_prog_RANLIB
12323 if test -n "$RANLIB"; then
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12325 $as_echo "$RANLIB" >&6; }
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12328 $as_echo "no" >&6; }
12333 if test -z "$ac_cv_prog_RANLIB"; then
12334 ac_ct_RANLIB=$RANLIB
12335 # Extract the first word of "ranlib", so it can be a program name with args.
12336 set dummy ranlib; ac_word=$2
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12338 $as_echo_n "checking for $ac_word... " >&6; }
12339 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12340 $as_echo_n "(cached) " >&6
12342 if test -n "$ac_ct_RANLIB"; then
12343 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12346 for as_dir in $PATH
12349 test -z "$as_dir" && as_dir=.
12350 for ac_exec_ext in '' $ac_executable_extensions; do
12351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12352 ac_cv_prog_ac_ct_RANLIB="ranlib"
12353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12362 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12363 if test -n "$ac_ct_RANLIB"; then
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12365 $as_echo "$ac_ct_RANLIB" >&6; }
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12368 $as_echo "no" >&6; }
12371 if test "x$ac_ct_RANLIB" = x; then
12374 case $cross_compiling:$ac_tool_warned in
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12377 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12378 ac_tool_warned=yes ;;
12380 RANLIB=$ac_ct_RANLIB
12383 RANLIB="$ac_cv_prog_RANLIB"
12386 test -z "$RANLIB" && RANLIB=:
12393 # Determine commands to create old-style static archives.
12394 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12395 old_postinstall_cmds='chmod 644 $oldlib'
12396 old_postuninstall_cmds=
12398 if test -n "$RANLIB"; then
12401 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12404 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12407 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12412 lock_old_archive_extraction=yes ;;
12414 lock_old_archive_extraction=no ;;
12455 # If no C compiler was specified, use CC.
12458 # If no C compiler flags were specified, use CFLAGS.
12459 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12461 # Allow CC to be a program name with arguments.
12465 # Check for command to grab the raw symbol name followed by C symbol from nm.
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12467 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12468 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12469 $as_echo_n "(cached) " >&6
12472 # These are sane defaults that work on at least a few old systems.
12473 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12475 # Character class describing NM global symbol codes.
12476 symcode='[BCDEGRST]'
12478 # Regexp to match symbols that can be accessed directly from C.
12479 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12481 # Define system-specific variables.
12486 cygwin* | mingw* | pw32* | cegcc*)
12487 symcode='[ABCDGISTW]'
12490 if test "$host_cpu" = ia64; then
12491 symcode='[ABCDEGRST]'
12494 irix* | nonstopux*)
12495 symcode='[BCDEGRST]'
12498 symcode='[BCDEGQRST]'
12509 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12517 # If we're using GNU nm, then use its standard symbol codes.
12518 case `$NM -V 2>&1` in
12519 *GNU* | *'with BFD'*)
12520 symcode='[ABCDGIRSTW]' ;;
12523 # Transform an extracted symbol line into a proper C declaration.
12524 # Some systems (esp. on ia64) link data and code symbols differently,
12525 # so use this general approach.
12526 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12528 # Transform an extracted symbol line into symbol name and symbol address
12529 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12530 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
12532 # Handle CRLF in mingw tool chain
12536 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12540 # Try without a prefix underscore, then with it.
12541 for ac_symprfx in "" "_"; do
12543 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12544 symxfrm="\\1 $ac_symprfx\\2 \\2"
12546 # Write the raw and C identifiers.
12547 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12548 # Fake it for dumpbin and say T for any non-static function
12549 # and D for any global variable.
12550 # Also find C++ and __fastcall symbols from MSVC++,
12551 # which start with @ or ?.
12552 lt_cv_sys_global_symbol_pipe="$AWK '"\
12553 " {last_section=section; section=\$ 3};"\
12554 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12555 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12556 " \$ 0!~/External *\|/{next};"\
12557 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12558 " {if(hide[section]) next};"\
12559 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12560 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12561 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
12562 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12563 " ' prfx=^$ac_symprfx"
12565 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12567 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12569 # Check to see that the pipe works correctly.
12573 cat > conftest.$ac_ext <<_LT_EOF
12578 void nm_test_func(void);
12579 void nm_test_func(void){}
12583 int main(){nm_test_var='a';nm_test_func();return(0);}
12586 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12587 (eval $ac_compile) 2>&5
12589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12590 test $ac_status = 0; }; then
12591 # Now try to grab the symbols.
12593 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12594 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12597 test $ac_status = 0; } && test -s "$nlist"; then
12598 # Try sorting and uniquifying the output.
12599 if sort "$nlist" | uniq > "$nlist"T; then
12600 mv -f "$nlist"T "$nlist"
12605 # Make sure that we snagged all the symbols we need.
12606 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12607 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12608 cat <<_LT_EOF > conftest.$ac_ext
12609 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12610 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12611 /* DATA imports from DLLs on WIN32 con't be const, because runtime
12612 relocations are performed -- see ld's documentation on pseudo-relocs. */
12613 # define LT_DLSYM_CONST
12614 #elif defined(__osf__)
12615 /* This system does not cope well with relocations in const data. */
12616 # define LT_DLSYM_CONST
12618 # define LT_DLSYM_CONST const
12626 # Now generate the symbol file.
12627 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12629 cat <<_LT_EOF >> conftest.$ac_ext
12631 /* The mapping between symbol names and symbols. */
12632 LT_DLSYM_CONST struct {
12636 lt__PROGRAM__LTX_preloaded_symbols[] =
12638 { "@PROGRAM@", (void *) 0 },
12640 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12641 cat <<\_LT_EOF >> conftest.$ac_ext
12645 /* This works around a problem in FreeBSD linker */
12646 #ifdef FREEBSD_WORKAROUND
12647 static const void *lt_preloaded_setup() {
12648 return lt__PROGRAM__LTX_preloaded_symbols;
12656 # Now try linking the two files.
12657 mv conftest.$ac_objext conftstm.$ac_objext
12658 lt_globsym_save_LIBS=$LIBS
12659 lt_globsym_save_CFLAGS=$CFLAGS
12660 LIBS="conftstm.$ac_objext"
12661 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12662 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12663 (eval $ac_link) 2>&5
12665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12666 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12669 LIBS=$lt_globsym_save_LIBS
12670 CFLAGS=$lt_globsym_save_CFLAGS
12672 echo "cannot find nm_test_func in $nlist" >&5
12675 echo "cannot find nm_test_var in $nlist" >&5
12678 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12681 echo "$progname: failed program was:" >&5
12682 cat conftest.$ac_ext >&5
12684 rm -rf conftest* conftst*
12686 # Do not use the global_symbol_pipe unless it works.
12687 if test "$pipe_works" = yes; then
12690 lt_cv_sys_global_symbol_pipe=
12696 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12697 lt_cv_sys_global_symbol_to_cdecl=
12699 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12701 $as_echo "failed" >&6; }
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12704 $as_echo "ok" >&6; }
12707 # Response file support.
12708 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12709 nm_file_list_spec='@'
12710 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12711 nm_file_list_spec='@'
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12741 $as_echo_n "checking for sysroot... " >&6; }
12743 # Check whether --with-sysroot was given.
12744 if test "${with_sysroot+set}" = set; then :
12745 withval=$with_sysroot;
12752 case ${with_sysroot} in #(
12754 if test "$GCC" = yes; then
12755 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12759 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12765 $as_echo "${with_sysroot}" >&6; }
12766 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12771 $as_echo "${lt_sysroot:-no}" >&6; }
12777 # Check whether --enable-libtool-lock was given.
12778 if test "${enable_libtool_lock+set}" = set; then :
12779 enableval=$enable_libtool_lock;
12782 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12784 # Some flags need to be propagated to the compiler or linker for good
12788 # Find out which ABI we are using.
12789 echo 'int i;' > conftest.$ac_ext
12790 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12791 (eval $ac_compile) 2>&5
12793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12794 test $ac_status = 0; }; then
12795 case `/usr/bin/file conftest.$ac_objext` in
12797 HPUX_IA64_MODE="32"
12800 HPUX_IA64_MODE="64"
12807 # Find out which ABI we are using.
12808 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12809 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12810 (eval $ac_compile) 2>&5
12812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12813 test $ac_status = 0; }; then
12814 if test "$lt_cv_prog_gnu_ld" = yes; then
12815 case `/usr/bin/file conftest.$ac_objext` in
12817 LD="${LD-ld} -melf32bsmip"
12820 LD="${LD-ld} -melf32bmipn32"
12823 LD="${LD-ld} -melf64bmip"
12827 case `/usr/bin/file conftest.$ac_objext` in
12843 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12844 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12845 # Find out which ABI we are using.
12846 echo 'int i;' > conftest.$ac_ext
12847 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12848 (eval $ac_compile) 2>&5
12850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12851 test $ac_status = 0; }; then
12852 case `/usr/bin/file conftest.o` in
12855 x86_64-*kfreebsd*-gnu)
12856 LD="${LD-ld} -m elf_i386_fbsd"
12859 LD="${LD-ld} -m elf_i386"
12861 ppc64-*linux*|powerpc64-*linux*)
12862 LD="${LD-ld} -m elf32ppclinux"
12865 LD="${LD-ld} -m elf_s390"
12868 LD="${LD-ld} -m elf32_sparc"
12874 x86_64-*kfreebsd*-gnu)
12875 LD="${LD-ld} -m elf_x86_64_fbsd"
12878 LD="${LD-ld} -m elf_x86_64"
12880 ppc*-*linux*|powerpc*-*linux*)
12881 LD="${LD-ld} -m elf64ppc"
12883 s390*-*linux*|s390*-*tpf*)
12884 LD="${LD-ld} -m elf64_s390"
12887 LD="${LD-ld} -m elf64_sparc"
12897 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12898 SAVE_CFLAGS="$CFLAGS"
12899 CFLAGS="$CFLAGS -belf"
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12901 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12902 if ${lt_cv_cc_needs_belf+:} false; then :
12903 $as_echo_n "(cached) " >&6
12906 ac_cpp='$CPP $CPPFLAGS'
12907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12912 /* end confdefs.h. */
12922 if ac_fn_c_try_link "$LINENO"; then :
12923 lt_cv_cc_needs_belf=yes
12925 lt_cv_cc_needs_belf=no
12927 rm -f core conftest.err conftest.$ac_objext \
12928 conftest$ac_exeext conftest.$ac_ext
12930 ac_cpp='$CPP $CPPFLAGS'
12931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12937 $as_echo "$lt_cv_cc_needs_belf" >&6; }
12938 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12939 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12940 CFLAGS="$SAVE_CFLAGS"
12944 # Find out which ABI we are using.
12945 echo 'int i;' > conftest.$ac_ext
12946 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12947 (eval $ac_compile) 2>&5
12949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12950 test $ac_status = 0; }; then
12951 case `/usr/bin/file conftest.o` in
12953 case $lt_cv_prog_gnu_ld in
12957 LD="${LD-ld} -m elf_x86_64"
12960 LD="${LD-ld} -m elf64_sparc"
12963 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12964 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12969 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12981 need_locks="$enable_libtool_lock"
12983 if test -n "$ac_tool_prefix"; then
12984 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12985 set dummy ${ac_tool_prefix}mt; ac_word=$2
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12987 $as_echo_n "checking for $ac_word... " >&6; }
12988 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12989 $as_echo_n "(cached) " >&6
12991 if test -n "$MANIFEST_TOOL"; then
12992 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12995 for as_dir in $PATH
12998 test -z "$as_dir" && as_dir=.
12999 for ac_exec_ext in '' $ac_executable_extensions; do
13000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13001 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13011 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13012 if test -n "$MANIFEST_TOOL"; then
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13014 $as_echo "$MANIFEST_TOOL" >&6; }
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13017 $as_echo "no" >&6; }
13022 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13023 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13024 # Extract the first word of "mt", so it can be a program name with args.
13025 set dummy mt; ac_word=$2
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13027 $as_echo_n "checking for $ac_word... " >&6; }
13028 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13029 $as_echo_n "(cached) " >&6
13031 if test -n "$ac_ct_MANIFEST_TOOL"; then
13032 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13035 for as_dir in $PATH
13038 test -z "$as_dir" && as_dir=.
13039 for ac_exec_ext in '' $ac_executable_extensions; do
13040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13041 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13051 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13052 if test -n "$ac_ct_MANIFEST_TOOL"; then
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13054 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13057 $as_echo "no" >&6; }
13060 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13063 case $cross_compiling:$ac_tool_warned in
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13066 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13067 ac_tool_warned=yes ;;
13069 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13072 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13075 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13077 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13078 if ${lt_cv_path_mainfest_tool+:} false; then :
13079 $as_echo_n "(cached) " >&6
13081 lt_cv_path_mainfest_tool=no
13082 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13083 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13084 cat conftest.err >&5
13085 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13086 lt_cv_path_mainfest_tool=yes
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13091 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
13092 if test "x$lt_cv_path_mainfest_tool" != xyes; then
13102 rhapsody* | darwin*)
13103 if test -n "$ac_tool_prefix"; then
13104 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13105 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13107 $as_echo_n "checking for $ac_word... " >&6; }
13108 if ${ac_cv_prog_DSYMUTIL+:} false; then :
13109 $as_echo_n "(cached) " >&6
13111 if test -n "$DSYMUTIL"; then
13112 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13115 for as_dir in $PATH
13118 test -z "$as_dir" && as_dir=.
13119 for ac_exec_ext in '' $ac_executable_extensions; do
13120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13121 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13131 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13132 if test -n "$DSYMUTIL"; then
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13134 $as_echo "$DSYMUTIL" >&6; }
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13137 $as_echo "no" >&6; }
13142 if test -z "$ac_cv_prog_DSYMUTIL"; then
13143 ac_ct_DSYMUTIL=$DSYMUTIL
13144 # Extract the first word of "dsymutil", so it can be a program name with args.
13145 set dummy dsymutil; ac_word=$2
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13147 $as_echo_n "checking for $ac_word... " >&6; }
13148 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13149 $as_echo_n "(cached) " >&6
13151 if test -n "$ac_ct_DSYMUTIL"; then
13152 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13155 for as_dir in $PATH
13158 test -z "$as_dir" && as_dir=.
13159 for ac_exec_ext in '' $ac_executable_extensions; do
13160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13161 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13171 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13172 if test -n "$ac_ct_DSYMUTIL"; then
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13174 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13177 $as_echo "no" >&6; }
13180 if test "x$ac_ct_DSYMUTIL" = x; then
13183 case $cross_compiling:$ac_tool_warned in
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13186 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13187 ac_tool_warned=yes ;;
13189 DSYMUTIL=$ac_ct_DSYMUTIL
13192 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13195 if test -n "$ac_tool_prefix"; then
13196 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13197 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13199 $as_echo_n "checking for $ac_word... " >&6; }
13200 if ${ac_cv_prog_NMEDIT+:} false; then :
13201 $as_echo_n "(cached) " >&6
13203 if test -n "$NMEDIT"; then
13204 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13207 for as_dir in $PATH
13210 test -z "$as_dir" && as_dir=.
13211 for ac_exec_ext in '' $ac_executable_extensions; do
13212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13213 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13223 NMEDIT=$ac_cv_prog_NMEDIT
13224 if test -n "$NMEDIT"; then
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13226 $as_echo "$NMEDIT" >&6; }
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13229 $as_echo "no" >&6; }
13234 if test -z "$ac_cv_prog_NMEDIT"; then
13235 ac_ct_NMEDIT=$NMEDIT
13236 # Extract the first word of "nmedit", so it can be a program name with args.
13237 set dummy nmedit; ac_word=$2
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13239 $as_echo_n "checking for $ac_word... " >&6; }
13240 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13241 $as_echo_n "(cached) " >&6
13243 if test -n "$ac_ct_NMEDIT"; then
13244 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13247 for as_dir in $PATH
13250 test -z "$as_dir" && as_dir=.
13251 for ac_exec_ext in '' $ac_executable_extensions; do
13252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13253 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13263 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13264 if test -n "$ac_ct_NMEDIT"; then
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13266 $as_echo "$ac_ct_NMEDIT" >&6; }
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13269 $as_echo "no" >&6; }
13272 if test "x$ac_ct_NMEDIT" = x; then
13275 case $cross_compiling:$ac_tool_warned in
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13278 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13279 ac_tool_warned=yes ;;
13281 NMEDIT=$ac_ct_NMEDIT
13284 NMEDIT="$ac_cv_prog_NMEDIT"
13287 if test -n "$ac_tool_prefix"; then
13288 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13289 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13291 $as_echo_n "checking for $ac_word... " >&6; }
13292 if ${ac_cv_prog_LIPO+:} false; then :
13293 $as_echo_n "(cached) " >&6
13295 if test -n "$LIPO"; then
13296 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13299 for as_dir in $PATH
13302 test -z "$as_dir" && as_dir=.
13303 for ac_exec_ext in '' $ac_executable_extensions; do
13304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13305 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13315 LIPO=$ac_cv_prog_LIPO
13316 if test -n "$LIPO"; then
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13318 $as_echo "$LIPO" >&6; }
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13321 $as_echo "no" >&6; }
13326 if test -z "$ac_cv_prog_LIPO"; then
13328 # Extract the first word of "lipo", so it can be a program name with args.
13329 set dummy lipo; ac_word=$2
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13331 $as_echo_n "checking for $ac_word... " >&6; }
13332 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13333 $as_echo_n "(cached) " >&6
13335 if test -n "$ac_ct_LIPO"; then
13336 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13339 for as_dir in $PATH
13342 test -z "$as_dir" && as_dir=.
13343 for ac_exec_ext in '' $ac_executable_extensions; do
13344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13345 ac_cv_prog_ac_ct_LIPO="lipo"
13346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13355 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13356 if test -n "$ac_ct_LIPO"; then
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13358 $as_echo "$ac_ct_LIPO" >&6; }
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13361 $as_echo "no" >&6; }
13364 if test "x$ac_ct_LIPO" = x; then
13367 case $cross_compiling:$ac_tool_warned in
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13370 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13371 ac_tool_warned=yes ;;
13376 LIPO="$ac_cv_prog_LIPO"
13379 if test -n "$ac_tool_prefix"; then
13380 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13381 set dummy ${ac_tool_prefix}otool; ac_word=$2
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13383 $as_echo_n "checking for $ac_word... " >&6; }
13384 if ${ac_cv_prog_OTOOL+:} false; then :
13385 $as_echo_n "(cached) " >&6
13387 if test -n "$OTOOL"; then
13388 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13391 for as_dir in $PATH
13394 test -z "$as_dir" && as_dir=.
13395 for ac_exec_ext in '' $ac_executable_extensions; do
13396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13397 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13407 OTOOL=$ac_cv_prog_OTOOL
13408 if test -n "$OTOOL"; then
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13410 $as_echo "$OTOOL" >&6; }
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13413 $as_echo "no" >&6; }
13418 if test -z "$ac_cv_prog_OTOOL"; then
13420 # Extract the first word of "otool", so it can be a program name with args.
13421 set dummy otool; ac_word=$2
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13423 $as_echo_n "checking for $ac_word... " >&6; }
13424 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13425 $as_echo_n "(cached) " >&6
13427 if test -n "$ac_ct_OTOOL"; then
13428 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13431 for as_dir in $PATH
13434 test -z "$as_dir" && as_dir=.
13435 for ac_exec_ext in '' $ac_executable_extensions; do
13436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13437 ac_cv_prog_ac_ct_OTOOL="otool"
13438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13447 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13448 if test -n "$ac_ct_OTOOL"; then
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13450 $as_echo "$ac_ct_OTOOL" >&6; }
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13453 $as_echo "no" >&6; }
13456 if test "x$ac_ct_OTOOL" = x; then
13459 case $cross_compiling:$ac_tool_warned in
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13462 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13463 ac_tool_warned=yes ;;
13468 OTOOL="$ac_cv_prog_OTOOL"
13471 if test -n "$ac_tool_prefix"; then
13472 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13473 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13475 $as_echo_n "checking for $ac_word... " >&6; }
13476 if ${ac_cv_prog_OTOOL64+:} false; then :
13477 $as_echo_n "(cached) " >&6
13479 if test -n "$OTOOL64"; then
13480 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13483 for as_dir in $PATH
13486 test -z "$as_dir" && as_dir=.
13487 for ac_exec_ext in '' $ac_executable_extensions; do
13488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13489 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13499 OTOOL64=$ac_cv_prog_OTOOL64
13500 if test -n "$OTOOL64"; then
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13502 $as_echo "$OTOOL64" >&6; }
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13505 $as_echo "no" >&6; }
13510 if test -z "$ac_cv_prog_OTOOL64"; then
13511 ac_ct_OTOOL64=$OTOOL64
13512 # Extract the first word of "otool64", so it can be a program name with args.
13513 set dummy otool64; ac_word=$2
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13515 $as_echo_n "checking for $ac_word... " >&6; }
13516 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13517 $as_echo_n "(cached) " >&6
13519 if test -n "$ac_ct_OTOOL64"; then
13520 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13523 for as_dir in $PATH
13526 test -z "$as_dir" && as_dir=.
13527 for ac_exec_ext in '' $ac_executable_extensions; do
13528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13529 ac_cv_prog_ac_ct_OTOOL64="otool64"
13530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13539 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13540 if test -n "$ac_ct_OTOOL64"; then
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13542 $as_echo "$ac_ct_OTOOL64" >&6; }
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13545 $as_echo "no" >&6; }
13548 if test "x$ac_ct_OTOOL64" = x; then
13551 case $cross_compiling:$ac_tool_warned in
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13554 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13555 ac_tool_warned=yes ;;
13557 OTOOL64=$ac_ct_OTOOL64
13560 OTOOL64="$ac_cv_prog_OTOOL64"
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13590 $as_echo_n "checking for -single_module linker flag... " >&6; }
13591 if ${lt_cv_apple_cc_single_mod+:} false; then :
13592 $as_echo_n "(cached) " >&6
13594 lt_cv_apple_cc_single_mod=no
13595 if test -z "${LT_MULTI_MODULE}"; then
13596 # By default we will add the -single_module flag. You can override
13597 # by either setting the environment variable LT_MULTI_MODULE
13598 # non-empty at configure time, or by adding -multi_module to the
13600 rm -rf libconftest.dylib*
13601 echo "int foo(void){return 1;}" > conftest.c
13602 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13603 -dynamiclib -Wl,-single_module conftest.c" >&5
13604 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13605 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13607 # If there is a non-empty error log, and "single_module"
13608 # appears in it, assume the flag caused a linker warning
13609 if test -s conftest.err && $GREP single_module conftest.err; then
13610 cat conftest.err >&5
13611 # Otherwise, if the output was created with a 0 exit code from
13612 # the compiler, it worked.
13613 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
13614 lt_cv_apple_cc_single_mod=yes
13616 cat conftest.err >&5
13618 rm -rf libconftest.dylib*
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13623 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13626 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13627 if ${lt_cv_ld_exported_symbols_list+:} false; then :
13628 $as_echo_n "(cached) " >&6
13630 lt_cv_ld_exported_symbols_list=no
13631 save_LDFLAGS=$LDFLAGS
13632 echo "_main" > conftest.sym
13633 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13635 /* end confdefs.h. */
13645 if ac_fn_c_try_link "$LINENO"; then :
13646 lt_cv_ld_exported_symbols_list=yes
13648 lt_cv_ld_exported_symbols_list=no
13650 rm -f core conftest.err conftest.$ac_objext \
13651 conftest$ac_exeext conftest.$ac_ext
13652 LDFLAGS="$save_LDFLAGS"
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13656 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13659 $as_echo_n "checking for -force_load linker flag... " >&6; }
13660 if ${lt_cv_ld_force_load+:} false; then :
13661 $as_echo_n "(cached) " >&6
13663 lt_cv_ld_force_load=no
13664 cat > conftest.c << _LT_EOF
13665 int forced_loaded() { return 2;}
13667 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13668 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13669 echo "$AR cru libconftest.a conftest.o" >&5
13670 $AR cru libconftest.a conftest.o 2>&5
13671 echo "$RANLIB libconftest.a" >&5
13672 $RANLIB libconftest.a 2>&5
13673 cat > conftest.c << _LT_EOF
13674 int main() { return 0;}
13676 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13677 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13679 if test -s conftest.err && $GREP force_load conftest.err; then
13680 cat conftest.err >&5
13681 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
13682 lt_cv_ld_force_load=yes
13684 cat conftest.err >&5
13686 rm -f conftest.err libconftest.a conftest conftest.c
13687 rm -rf conftest.dSYM
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13691 $as_echo "$lt_cv_ld_force_load" >&6; }
13693 rhapsody* | darwin1.[012])
13694 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13696 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13697 darwin*) # darwin 5.x on
13698 # if running on 10.5 or later, the deployment target defaults
13699 # to the OS version, if on x86, and 10.4, the deployment
13700 # target defaults to 10.4. Don't you love it?
13701 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13702 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13703 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13705 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13707 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13711 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13712 _lt_dar_single_mod='$single_module'
13714 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13715 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13717 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13719 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13720 _lt_dsymutil='~$DSYMUTIL $lib || :'
13727 for ac_header in dlfcn.h
13729 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13731 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13732 cat >>confdefs.h <<_ACEOF
13733 #define HAVE_DLFCN_H 1
13752 # Check whether --enable-shared was given.
13753 if test "${enable_shared+set}" = set; then :
13754 enableval=$enable_shared; p=${PACKAGE-default}
13756 yes) enable_shared=yes ;;
13757 no) enable_shared=no ;;
13760 # Look at the argument we got. We use all the common list separators.
13761 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13762 for pkg in $enableval; do
13764 if test "X$pkg" = "X$p"; then
13783 # Check whether --enable-static was given.
13784 if test "${enable_static+set}" = set; then :
13785 enableval=$enable_static; p=${PACKAGE-default}
13787 yes) enable_static=yes ;;
13788 no) enable_static=no ;;
13791 # Look at the argument we got. We use all the common list separators.
13792 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13793 for pkg in $enableval; do
13795 if test "X$pkg" = "X$p"; then
13815 # Check whether --with-pic was given.
13816 if test "${with_pic+set}" = set; then :
13817 withval=$with_pic; lt_p=${PACKAGE-default}
13819 yes|no) pic_mode=$withval ;;
13822 # Look at the argument we got. We use all the common list separators.
13823 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13824 for lt_pkg in $withval; do
13826 if test "X$lt_pkg" = "X$lt_p"; then
13838 test -z "$pic_mode" && pic_mode=default
13846 # Check whether --enable-fast-install was given.
13847 if test "${enable_fast_install+set}" = set; then :
13848 enableval=$enable_fast_install; p=${PACKAGE-default}
13850 yes) enable_fast_install=yes ;;
13851 no) enable_fast_install=no ;;
13853 enable_fast_install=no
13854 # Look at the argument we got. We use all the common list separators.
13855 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13856 for pkg in $enableval; do
13858 if test "X$pkg" = "X$p"; then
13859 enable_fast_install=yes
13866 enable_fast_install=yes
13879 # This can be used to rebuild libtool when needed
13880 LIBTOOL_DEPS="$ltmain"
13882 # Always use our own libtool.
13883 LIBTOOL='$(SHELL) $(apr_builddir)/libtool'
13914 test -z "$LN_S" && LN_S="ln -s"
13929 if test -n "${ZSH_VERSION+set}" ; then
13930 setopt NO_GLOB_SUBST
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13934 $as_echo_n "checking for objdir... " >&6; }
13935 if ${lt_cv_objdir+:} false; then :
13936 $as_echo_n "(cached) " >&6
13938 rm -f .libs 2>/dev/null
13939 mkdir .libs 2>/dev/null
13940 if test -d .libs; then
13943 # MS-DOS does not allow filenames that begin with a dot.
13946 rmdir .libs 2>/dev/null
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13949 $as_echo "$lt_cv_objdir" >&6; }
13950 objdir=$lt_cv_objdir
13956 cat >>confdefs.h <<_ACEOF
13957 #define LT_OBJDIR "$lt_cv_objdir/"
13965 # AIX sometimes has problems with the GCC collect2 program. For some
13966 # reason, if we set the COLLECT_NAMES environment variable, the problems
13967 # vanish in a puff of smoke.
13968 if test "X${COLLECT_NAMES+set}" != Xset; then
13970 export COLLECT_NAMES
13975 # Global variables:
13977 can_build_shared=yes
13979 # All known linkers require a `.a' archive for static linking (except MSVC,
13980 # which needs '.lib').
13983 with_gnu_ld="$lt_cv_prog_gnu_ld"
13986 old_CFLAGS="$CFLAGS"
13988 # Set sane defaults for various variables
13989 test -z "$CC" && CC=cc
13990 test -z "$LTCC" && LTCC=$CC
13991 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13992 test -z "$LD" && LD=ld
13993 test -z "$ac_objext" && ac_objext=o
13995 for cc_temp in $compiler""; do
13997 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13998 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14003 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14006 # Only perform the check for file, if the check method requires it
14007 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14008 case $deplibs_check_method in
14010 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14012 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14013 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14014 $as_echo_n "(cached) " >&6
14018 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14021 lt_save_MAGIC_CMD="$MAGIC_CMD"
14022 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14023 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14024 for ac_dir in $ac_dummy; do
14026 test -z "$ac_dir" && ac_dir=.
14027 if test -f $ac_dir/${ac_tool_prefix}file; then
14028 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14029 if test -n "$file_magic_test_file"; then
14030 case $deplibs_check_method in
14032 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14033 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14034 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14035 $EGREP "$file_magic_regex" > /dev/null; then
14040 *** Warning: the command libtool uses to detect shared libraries,
14041 *** $file_magic_cmd, produces output that libtool cannot recognize.
14042 *** The result is that libtool may fail to recognize shared libraries
14043 *** as such. This will affect the creation of libtool libraries that
14044 *** depend on shared libraries, but programs linked with such libtool
14045 *** libraries will work regardless of this problem. Nevertheless, you
14046 *** may want to report the problem to your system manager and/or to
14047 *** bug-libtool@gnu.org
14057 MAGIC_CMD="$lt_save_MAGIC_CMD"
14062 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14063 if test -n "$MAGIC_CMD"; then
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14065 $as_echo "$MAGIC_CMD" >&6; }
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14068 $as_echo "no" >&6; }
14075 if test -z "$lt_cv_path_MAGIC_CMD"; then
14076 if test -n "$ac_tool_prefix"; then
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14078 $as_echo_n "checking for file... " >&6; }
14079 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14080 $as_echo_n "(cached) " >&6
14084 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14087 lt_save_MAGIC_CMD="$MAGIC_CMD"
14088 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14089 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14090 for ac_dir in $ac_dummy; do
14092 test -z "$ac_dir" && ac_dir=.
14093 if test -f $ac_dir/file; then
14094 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14095 if test -n "$file_magic_test_file"; then
14096 case $deplibs_check_method in
14098 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14099 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14100 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14101 $EGREP "$file_magic_regex" > /dev/null; then
14106 *** Warning: the command libtool uses to detect shared libraries,
14107 *** $file_magic_cmd, produces output that libtool cannot recognize.
14108 *** The result is that libtool may fail to recognize shared libraries
14109 *** as such. This will affect the creation of libtool libraries that
14110 *** depend on shared libraries, but programs linked with such libtool
14111 *** libraries will work regardless of this problem. Nevertheless, you
14112 *** may want to report the problem to your system manager and/or to
14113 *** bug-libtool@gnu.org
14123 MAGIC_CMD="$lt_save_MAGIC_CMD"
14128 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14129 if test -n "$MAGIC_CMD"; then
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14131 $as_echo "$MAGIC_CMD" >&6; }
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14134 $as_echo "no" >&6; }
14147 # Use C for the default configuration in the libtool script
14151 ac_cpp='$CPP $CPPFLAGS'
14152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14157 # Source file extension for C test sources.
14160 # Object file extension for compiled C test sources.
14164 # Code to be used in simple compile tests
14165 lt_simple_compile_test_code="int some_variable = 0;"
14167 # Code to be used in simple link tests
14168 lt_simple_link_test_code='int main(){return(0);}'
14176 # If no C compiler was specified, use CC.
14179 # If no C compiler flags were specified, use CFLAGS.
14180 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14182 # Allow CC to be a program name with arguments.
14185 # Save the default compiler, since it gets overwritten when the other
14186 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14187 compiler_DEFAULT=$CC
14189 # save warnings/boilerplate of simple test code
14190 ac_outfile=conftest.$ac_objext
14191 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14192 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14193 _lt_compiler_boilerplate=`cat conftest.err`
14196 ac_outfile=conftest.$ac_objext
14197 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14198 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14199 _lt_linker_boilerplate=`cat conftest.err`
14204 ## There is no encapsulation within the following macros, do not change
14205 ## the running order or otherwise move them around unless you know exactly
14206 ## what you are doing...
14207 if test -n "$compiler"; then
14209 lt_prog_compiler_no_builtin_flag=
14211 if test "$GCC" = yes; then
14212 case $cc_basename in
14214 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14216 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14220 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14221 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14222 $as_echo_n "(cached) " >&6
14224 lt_cv_prog_compiler_rtti_exceptions=no
14225 ac_outfile=conftest.$ac_objext
14226 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14227 lt_compiler_flag="-fno-rtti -fno-exceptions"
14228 # Insert the option either (1) after the last *FLAGS variable, or
14229 # (2) before a word containing "conftest.", or (3) at the end.
14230 # Note that $ac_compile itself does not contain backslashes and begins
14231 # with a dollar sign (not a hyphen), so the echo should work correctly.
14232 # The option is referenced via a variable to avoid confusing sed.
14233 lt_compile=`echo "$ac_compile" | $SED \
14234 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14235 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14236 -e 's:$: $lt_compiler_flag:'`
14237 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14238 (eval "$lt_compile" 2>conftest.err)
14240 cat conftest.err >&5
14241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242 if (exit $ac_status) && test -s "$ac_outfile"; then
14243 # The compiler can only warn and ignore the option if not recognized
14244 # So say no if there are warnings other than the usual output.
14245 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14246 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14247 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14248 lt_cv_prog_compiler_rtti_exceptions=yes
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14255 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14257 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14258 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14270 lt_prog_compiler_wl=
14271 lt_prog_compiler_pic=
14272 lt_prog_compiler_static=
14275 if test "$GCC" = yes; then
14276 lt_prog_compiler_wl='-Wl,'
14277 lt_prog_compiler_static='-static'
14281 # All AIX code is PIC.
14282 if test "$host_cpu" = ia64; then
14283 # AIX 5 now supports IA64 processor
14284 lt_prog_compiler_static='-Bstatic'
14291 # see comment about AmigaOS4 .so support
14292 lt_prog_compiler_pic='-fPIC'
14295 # FIXME: we need at least 68020 code to build shared libraries, but
14296 # adding the `-m68020' flag to GCC prevents building anything better,
14298 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14303 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14304 # PIC is the default for these OSes.
14307 mingw* | cygwin* | pw32* | os2* | cegcc*)
14308 # This hack is so that the source file can tell whether it is being
14309 # built for inclusion in a dll (and should export symbols for example).
14310 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14311 # (--disable-auto-import) libraries
14312 lt_prog_compiler_pic='-DDLL_EXPORT'
14315 darwin* | rhapsody*)
14316 # PIC is the default on this platform
14317 # Common symbols not allowed in MH_DYLIB files
14318 lt_prog_compiler_pic='-fno-common'
14322 # PIC is the default for Haiku.
14323 # The "-static" flag exists, but is broken.
14324 lt_prog_compiler_static=
14328 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14329 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14330 # sets the default TLS model and affects inlining.
14336 lt_prog_compiler_pic='-fPIC'
14342 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14343 # Instead, we relocate shared libraries at runtime.
14347 # Just because we use GCC doesn't mean we suddenly get shared libraries
14348 # on systems that don't support them.
14349 lt_prog_compiler_can_build_shared=no
14354 # QNX uses GNU C++, but need to define -shared option too, otherwise
14355 # it will coredump.
14356 lt_prog_compiler_pic='-fPIC -shared'
14360 if test -d /usr/nec; then
14361 lt_prog_compiler_pic=-Kconform_pic
14366 lt_prog_compiler_pic='-fPIC'
14370 case $cc_basename in
14371 nvcc*) # Cuda Compiler Driver 2.2
14372 lt_prog_compiler_wl='-Xlinker '
14373 if test -n "$lt_prog_compiler_pic"; then
14374 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14379 # PORTME Check for flag to pass linker flags through the system compiler.
14382 lt_prog_compiler_wl='-Wl,'
14383 if test "$host_cpu" = ia64; then
14384 # AIX 5 now supports IA64 processor
14385 lt_prog_compiler_static='-Bstatic'
14387 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14391 mingw* | cygwin* | pw32* | os2* | cegcc*)
14392 # This hack is so that the source file can tell whether it is being
14393 # built for inclusion in a dll (and should export symbols for example).
14394 lt_prog_compiler_pic='-DDLL_EXPORT'
14397 hpux9* | hpux10* | hpux11*)
14398 lt_prog_compiler_wl='-Wl,'
14399 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14400 # not for PA HP-UX.
14406 lt_prog_compiler_pic='+Z'
14409 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14410 lt_prog_compiler_static='${wl}-a ${wl}archive'
14413 irix5* | irix6* | nonstopux*)
14414 lt_prog_compiler_wl='-Wl,'
14415 # PIC (with -KPIC) is the default.
14416 lt_prog_compiler_static='-non_shared'
14419 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14420 case $cc_basename in
14421 # old Intel for x86_64 which still supported -KPIC.
14423 lt_prog_compiler_wl='-Wl,'
14424 lt_prog_compiler_pic='-KPIC'
14425 lt_prog_compiler_static='-static'
14427 # icc used to be incompatible with GCC.
14428 # ICC 10 doesn't accept -KPIC any more.
14430 lt_prog_compiler_wl='-Wl,'
14431 lt_prog_compiler_pic='-fPIC'
14432 lt_prog_compiler_static='-static'
14434 # Lahey Fortran 8.1.
14436 lt_prog_compiler_wl='-Wl,'
14437 lt_prog_compiler_pic='--shared'
14438 lt_prog_compiler_static='--static'
14441 # NAG Fortran compiler
14442 lt_prog_compiler_wl='-Wl,-Wl,,'
14443 lt_prog_compiler_pic='-PIC'
14444 lt_prog_compiler_static='-Bstatic'
14446 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14447 # Portland Group compilers (*not* the Pentium gcc compiler,
14448 # which looks to be a dead project)
14449 lt_prog_compiler_wl='-Wl,'
14450 lt_prog_compiler_pic='-fpic'
14451 lt_prog_compiler_static='-Bstatic'
14454 lt_prog_compiler_wl='-Wl,'
14455 # All Alpha code is PIC.
14456 lt_prog_compiler_static='-non_shared'
14458 xl* | bgxl* | bgf* | mpixl*)
14459 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14460 lt_prog_compiler_wl='-Wl,'
14461 lt_prog_compiler_pic='-qpic'
14462 lt_prog_compiler_static='-qstaticlink'
14465 case `$CC -V 2>&1 | sed 5q` in
14466 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14467 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14468 lt_prog_compiler_pic='-KPIC'
14469 lt_prog_compiler_static='-Bstatic'
14470 lt_prog_compiler_wl=''
14472 *Sun\ F* | *Sun*Fortran*)
14473 lt_prog_compiler_pic='-KPIC'
14474 lt_prog_compiler_static='-Bstatic'
14475 lt_prog_compiler_wl='-Qoption ld '
14479 lt_prog_compiler_pic='-KPIC'
14480 lt_prog_compiler_static='-Bstatic'
14481 lt_prog_compiler_wl='-Wl,'
14483 *Intel*\ [CF]*Compiler*)
14484 lt_prog_compiler_wl='-Wl,'
14485 lt_prog_compiler_pic='-fPIC'
14486 lt_prog_compiler_static='-static'
14489 lt_prog_compiler_wl='-Wl,'
14490 lt_prog_compiler_pic='-fpic'
14491 lt_prog_compiler_static='-Bstatic'
14499 lt_prog_compiler_pic='-KPIC'
14500 lt_prog_compiler_static='-Bstatic'
14504 # QNX uses GNU C++, but need to define -shared option too, otherwise
14505 # it will coredump.
14506 lt_prog_compiler_pic='-fPIC -shared'
14509 osf3* | osf4* | osf5*)
14510 lt_prog_compiler_wl='-Wl,'
14511 # All OSF/1 code is PIC.
14512 lt_prog_compiler_static='-non_shared'
14516 lt_prog_compiler_static='-non_shared'
14520 lt_prog_compiler_pic='-KPIC'
14521 lt_prog_compiler_static='-Bstatic'
14522 case $cc_basename in
14523 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14524 lt_prog_compiler_wl='-Qoption ld ';;
14526 lt_prog_compiler_wl='-Wl,';;
14531 lt_prog_compiler_wl='-Qoption ld '
14532 lt_prog_compiler_pic='-PIC'
14533 lt_prog_compiler_static='-Bstatic'
14536 sysv4 | sysv4.2uw2* | sysv4.3*)
14537 lt_prog_compiler_wl='-Wl,'
14538 lt_prog_compiler_pic='-KPIC'
14539 lt_prog_compiler_static='-Bstatic'
14543 if test -d /usr/nec ;then
14544 lt_prog_compiler_pic='-Kconform_pic'
14545 lt_prog_compiler_static='-Bstatic'
14549 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14550 lt_prog_compiler_wl='-Wl,'
14551 lt_prog_compiler_pic='-KPIC'
14552 lt_prog_compiler_static='-Bstatic'
14556 lt_prog_compiler_wl='-Wl,'
14557 lt_prog_compiler_can_build_shared=no
14561 lt_prog_compiler_pic='-pic'
14562 lt_prog_compiler_static='-Bstatic'
14566 lt_prog_compiler_can_build_shared=no
14572 # For platforms which do not support PIC, -DPIC is meaningless:
14574 lt_prog_compiler_pic=
14577 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14582 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14583 if ${lt_cv_prog_compiler_pic+:} false; then :
14584 $as_echo_n "(cached) " >&6
14586 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14589 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
14590 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14593 # Check to make sure the PIC flag actually works.
14595 if test -n "$lt_prog_compiler_pic"; then
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14597 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14598 if ${lt_cv_prog_compiler_pic_works+:} false; then :
14599 $as_echo_n "(cached) " >&6
14601 lt_cv_prog_compiler_pic_works=no
14602 ac_outfile=conftest.$ac_objext
14603 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14604 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14605 # Insert the option either (1) after the last *FLAGS variable, or
14606 # (2) before a word containing "conftest.", or (3) at the end.
14607 # Note that $ac_compile itself does not contain backslashes and begins
14608 # with a dollar sign (not a hyphen), so the echo should work correctly.
14609 # The option is referenced via a variable to avoid confusing sed.
14610 lt_compile=`echo "$ac_compile" | $SED \
14611 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14612 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14613 -e 's:$: $lt_compiler_flag:'`
14614 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14615 (eval "$lt_compile" 2>conftest.err)
14617 cat conftest.err >&5
14618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619 if (exit $ac_status) && test -s "$ac_outfile"; then
14620 # The compiler can only warn and ignore the option if not recognized
14621 # So say no if there are warnings other than the usual output.
14622 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14623 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14624 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14625 lt_cv_prog_compiler_pic_works=yes
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14632 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14634 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14635 case $lt_prog_compiler_pic in
14637 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14640 lt_prog_compiler_pic=
14641 lt_prog_compiler_can_build_shared=no
14657 # Check to make sure the static flag actually works.
14659 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14661 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14662 if ${lt_cv_prog_compiler_static_works+:} false; then :
14663 $as_echo_n "(cached) " >&6
14665 lt_cv_prog_compiler_static_works=no
14666 save_LDFLAGS="$LDFLAGS"
14667 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14668 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14669 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14670 # The linker can only warn and ignore the option if not recognized
14671 # So say no if there are warnings
14672 if test -s conftest.err; then
14673 # Append any errors to the config.log.
14674 cat conftest.err 1>&5
14675 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14676 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14677 if diff conftest.exp conftest.er2 >/dev/null; then
14678 lt_cv_prog_compiler_static_works=yes
14681 lt_cv_prog_compiler_static_works=yes
14685 LDFLAGS="$save_LDFLAGS"
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14689 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14691 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14694 lt_prog_compiler_static=
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14704 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14705 if ${lt_cv_prog_compiler_c_o+:} false; then :
14706 $as_echo_n "(cached) " >&6
14708 lt_cv_prog_compiler_c_o=no
14709 $RM -r conftest 2>/dev/null
14713 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14715 lt_compiler_flag="-o out/conftest2.$ac_objext"
14716 # Insert the option either (1) after the last *FLAGS variable, or
14717 # (2) before a word containing "conftest.", or (3) at the end.
14718 # Note that $ac_compile itself does not contain backslashes and begins
14719 # with a dollar sign (not a hyphen), so the echo should work correctly.
14720 lt_compile=`echo "$ac_compile" | $SED \
14721 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14722 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14723 -e 's:$: $lt_compiler_flag:'`
14724 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14725 (eval "$lt_compile" 2>out/conftest.err)
14727 cat out/conftest.err >&5
14728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14731 # The compiler can only warn and ignore the option if not recognized
14732 # So say no if there are warnings
14733 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14734 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14735 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14736 lt_cv_prog_compiler_c_o=yes
14741 # SGI C++ compiler will create directory out/ii_files/ for
14742 # template instantiation
14743 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14744 $RM out/* && rmdir out
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14751 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14759 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14760 if ${lt_cv_prog_compiler_c_o+:} false; then :
14761 $as_echo_n "(cached) " >&6
14763 lt_cv_prog_compiler_c_o=no
14764 $RM -r conftest 2>/dev/null
14768 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14770 lt_compiler_flag="-o out/conftest2.$ac_objext"
14771 # Insert the option either (1) after the last *FLAGS variable, or
14772 # (2) before a word containing "conftest.", or (3) at the end.
14773 # Note that $ac_compile itself does not contain backslashes and begins
14774 # with a dollar sign (not a hyphen), so the echo should work correctly.
14775 lt_compile=`echo "$ac_compile" | $SED \
14776 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14777 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14778 -e 's:$: $lt_compiler_flag:'`
14779 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14780 (eval "$lt_compile" 2>out/conftest.err)
14782 cat out/conftest.err >&5
14783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14786 # The compiler can only warn and ignore the option if not recognized
14787 # So say no if there are warnings
14788 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14789 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14790 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14791 lt_cv_prog_compiler_c_o=yes
14796 # SGI C++ compiler will create directory out/ii_files/ for
14797 # template instantiation
14798 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14799 $RM out/* && rmdir out
14805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14806 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14811 hard_links="nottested"
14812 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14813 # do not overwrite the value of need_locks provided by the user
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14815 $as_echo_n "checking if we can lock with hard links... " >&6; }
14818 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14820 ln conftest.a conftest.b 2>&5 || hard_links=no
14821 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14823 $as_echo "$hard_links" >&6; }
14824 if test "$hard_links" = no; then
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14826 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14839 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14842 allow_undefined_flag=
14843 always_export_symbols=no
14845 archive_expsym_cmds=
14846 compiler_needs_object=no
14847 enable_shared_with_static_runtimes=no
14848 export_dynamic_flag_spec=
14849 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14850 hardcode_automatic=no
14852 hardcode_direct_absolute=no
14853 hardcode_libdir_flag_spec=
14854 hardcode_libdir_separator=
14855 hardcode_minus_L=no
14856 hardcode_shlibpath_var=unsupported
14858 link_all_deplibs=unknown
14860 module_expsym_cmds=
14861 old_archive_from_new_cmds=
14862 old_archive_from_expsyms_cmds=
14863 thread_safe_flag_spec=
14864 whole_archive_flag_spec=
14865 # include_expsyms should be a list of space-separated symbols to be *always*
14866 # included in the symbol list
14868 # exclude_expsyms can be an extended regexp of symbols to exclude
14869 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14870 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14871 # as well as any symbol that contains `d'.
14872 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14873 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14874 # platforms (ab)use it in PIC code, but their linkers get confused if
14875 # the symbol is explicitly referenced. Since portable code cannot
14876 # rely on this symbol name, it's probably fine to never include it in
14877 # preloaded symbol tables.
14878 # Exclude shared library initialization/finalization symbols.
14879 extract_expsyms_cmds=
14882 cygwin* | mingw* | pw32* | cegcc*)
14883 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14884 # When not using gcc, we currently assume that we are using
14885 # Microsoft Visual C++.
14886 if test "$GCC" != yes; then
14891 # we just hope/assume this is gcc and not c89 (= MSVC++)
14901 # On some targets, GNU ld is compatible enough with the native linker
14902 # that we're better off using the native interface for both.
14903 lt_use_gnu_ld_interface=no
14904 if test "$with_gnu_ld" = yes; then
14907 # The AIX port of GNU ld has always aspired to compatibility
14908 # with the native linker. However, as the warning in the GNU ld
14909 # block says, versions before 2.19.5* couldn't really create working
14910 # shared libraries, regardless of the interface used.
14911 case `$LD -v 2>&1` in
14912 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14913 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14914 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14916 lt_use_gnu_ld_interface=yes
14921 lt_use_gnu_ld_interface=yes
14926 if test "$lt_use_gnu_ld_interface" = yes; then
14927 # If archive_cmds runs LD, not CC, wlarc should be empty
14930 # Set some defaults for GNU ld with shared library support. These
14931 # are reset later if shared libraries are not supported. Putting them
14932 # here allows them to be overridden if necessary.
14933 runpath_var=LD_RUN_PATH
14934 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14935 export_dynamic_flag_spec='${wl}--export-dynamic'
14936 # ancient GNU ld didn't support --whole-archive et. al.
14937 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14938 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14940 whole_archive_flag_spec=
14942 supports_anon_versioning=no
14943 case `$LD -v 2>&1` in
14944 *GNU\ gold*) supports_anon_versioning=yes ;;
14945 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14946 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14947 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14948 *\ 2.11.*) ;; # other 2.11 versions
14949 *) supports_anon_versioning=yes ;;
14952 # See if GNU ld supports shared libraries.
14955 # On AIX/PPC, the GNU linker is very broken
14956 if test "$host_cpu" != ia64; then
14960 *** Warning: the GNU linker, at least up to release 2.19, is reported
14961 *** to be unable to reliably create shared libraries on AIX.
14962 *** Therefore, libtool is disabling shared libraries support. If you
14963 *** really care for shared libraries, you may want to install binutils
14964 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14965 *** You will then need to restart the configuration process.
14974 # see comment about AmigaOS4 .so support
14975 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14976 archive_expsym_cmds=''
14979 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)'
14980 hardcode_libdir_flag_spec='-L$libdir'
14981 hardcode_minus_L=yes
14987 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14988 allow_undefined_flag=unsupported
14989 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14990 # support --undefined. This deserves some investigation. FIXME
14991 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14997 cygwin* | mingw* | pw32* | cegcc*)
14998 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14999 # as there is no search path for DLLs.
15000 hardcode_libdir_flag_spec='-L$libdir'
15001 export_dynamic_flag_spec='${wl}--export-all-symbols'
15002 allow_undefined_flag=unsupported
15003 always_export_symbols=no
15004 enable_shared_with_static_runtimes=yes
15005 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15006 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15008 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15009 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15010 # If the export-symbols file already is a .def file (1st line
15011 # is EXPORTS), use it as is; otherwise, prepend...
15012 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15013 cp $export_symbols $output_objdir/$soname.def;
15015 echo EXPORTS > $output_objdir/$soname.def;
15016 cat $export_symbols >> $output_objdir/$soname.def;
15018 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15025 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15026 link_all_deplibs=yes
15031 hardcode_shlibpath_var=no
15032 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15033 export_dynamic_flag_spec='${wl}-E'
15034 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15035 # Instead, shared libraries are loaded at an image base (0x10000000 by
15036 # default) and relocated if they conflict, which is a slow very memory
15037 # consuming and fragmenting process. To avoid this, we pick a random,
15038 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15039 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15040 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15041 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'
15044 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15046 if test "$host_os" = linux-dietlibc; then
15047 case $cc_basename in
15048 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15051 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15052 && test "$tmp_diet" = no
15054 tmp_addflag=' $pic_flag'
15055 tmp_sharedflag='-shared'
15056 case $cc_basename,$host_cpu in
15057 pgcc*) # Portland Group C compiler
15058 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15059 tmp_addflag=' $pic_flag'
15061 pgf77* | pgf90* | pgf95* | pgfortran*)
15062 # Portland Group f77 and f90 compilers
15063 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15064 tmp_addflag=' $pic_flag -Mnomain' ;;
15065 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15066 tmp_addflag=' -i_dynamic' ;;
15067 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15068 tmp_addflag=' -i_dynamic -nofor_main' ;;
15069 ifc* | ifort*) # Intel Fortran compiler
15070 tmp_addflag=' -nofor_main' ;;
15071 lf95*) # Lahey Fortran 8.1
15072 whole_archive_flag_spec=
15073 tmp_sharedflag='--shared' ;;
15074 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15075 tmp_sharedflag='-qmkshrobj'
15077 nvcc*) # Cuda Compiler Driver 2.2
15078 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15079 compiler_needs_object=yes
15082 case `$CC -V 2>&1 | sed 5q` in
15083 *Sun\ C*) # Sun C 5.9
15084 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15085 compiler_needs_object=yes
15086 tmp_sharedflag='-G' ;;
15087 *Sun\ F*) # Sun Fortran 8.3
15088 tmp_sharedflag='-G' ;;
15090 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15092 if test "x$supports_anon_versioning" = xyes; then
15093 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15094 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15095 echo "local: *; };" >> $output_objdir/$libname.ver~
15096 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15099 case $cc_basename in
15100 xlf* | bgf* | bgxlf* | mpixlf*)
15101 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15102 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15103 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15104 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15105 if test "x$supports_anon_versioning" = xyes; then
15106 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15107 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15108 echo "local: *; };" >> $output_objdir/$libname.ver~
15109 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15119 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15120 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15123 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15124 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15129 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15133 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15134 *** create shared libraries on Solaris systems. Therefore, libtool
15135 *** is disabling shared libraries support. We urge you to upgrade GNU
15136 *** binutils to release 2.9.1 or newer. Another option is to modify
15137 *** your PATH or compiler configuration so that the native linker is
15138 *** used, and then restart.
15141 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15142 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15143 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15149 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15150 case `$LD -v 2>&1` in
15151 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15155 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15156 *** reliably create shared libraries on SCO systems. Therefore, libtool
15157 *** is disabling shared libraries support. We urge you to upgrade GNU
15158 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15159 *** your PATH or compiler configuration so that the native linker is
15160 *** used, and then restart.
15165 # For security reasons, it is highly recommended that you always
15166 # use absolute paths for naming shared libraries, and exclude the
15167 # DT_RUNPATH tag from executables and libraries. But doing so
15168 # requires that you compile everything twice, which is a pain.
15169 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15170 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15171 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15172 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15181 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15183 hardcode_direct=yes
15184 hardcode_shlibpath_var=no
15188 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15189 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15190 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15197 if test "$ld_shlibs" = no; then
15199 hardcode_libdir_flag_spec=
15200 export_dynamic_flag_spec=
15201 whole_archive_flag_spec=
15204 # PORTME fill in a description of your system's linker (not GNU ld)
15207 allow_undefined_flag=unsupported
15208 always_export_symbols=yes
15209 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'
15210 # Note: this linker hardcodes the directories in LIBPATH if there
15211 # are no directories specified by -L.
15212 hardcode_minus_L=yes
15213 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15214 # Neither direct hardcoding nor static linking is supported with a
15216 hardcode_direct=unsupported
15221 if test "$host_cpu" = ia64; then
15222 # On IA64, the linker does run time linking by default, so we don't
15223 # have to do anything special.
15224 aix_use_runtimelinking=no
15225 exp_sym_flag='-Bexport'
15228 # If we're using GNU nm, then we don't want the "-C" option.
15229 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15230 # Also, AIX nm treats weak defined symbols like other global
15231 # defined symbols, whereas GNU nm marks them as "W".
15232 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15233 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15235 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'
15237 aix_use_runtimelinking=no
15239 # Test if we are trying to use run time linking or normal
15240 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15241 # need to do runtime linking.
15242 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15243 for ld_flag in $LDFLAGS; do
15244 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15245 aix_use_runtimelinking=yes
15252 exp_sym_flag='-bexport'
15253 no_entry_flag='-bnoentry'
15256 # When large executables or shared objects are built, AIX ld can
15257 # have problems creating the table of contents. If linking a library
15258 # or program results in "error TOC overflow" add -mminimal-toc to
15259 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15260 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15263 hardcode_direct=yes
15264 hardcode_direct_absolute=yes
15265 hardcode_libdir_separator=':'
15266 link_all_deplibs=yes
15267 file_list_spec='${wl}-f,'
15269 if test "$GCC" = yes; then
15270 case $host_os in aix4.[012]|aix4.[012].*)
15271 # We only want to do this on AIX 4.2 and lower, the check
15272 # below for broken collect2 doesn't work under 4.3+
15273 collect2name=`${CC} -print-prog-name=collect2`
15274 if test -f "$collect2name" &&
15275 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15277 # We have reworked collect2
15280 # We have old collect2
15281 hardcode_direct=unsupported
15282 # It fails to find uninstalled libraries when the uninstalled
15283 # path is not listed in the libpath. Setting hardcode_minus_L
15284 # to unsupported forces relinking
15285 hardcode_minus_L=yes
15286 hardcode_libdir_flag_spec='-L$libdir'
15287 hardcode_libdir_separator=
15291 shared_flag='-shared'
15292 if test "$aix_use_runtimelinking" = yes; then
15293 shared_flag="$shared_flag "'${wl}-G'
15297 if test "$host_cpu" = ia64; then
15298 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15299 # chokes on -Wl,-G. The following line is correct:
15302 if test "$aix_use_runtimelinking" = yes; then
15303 shared_flag='${wl}-G'
15305 shared_flag='${wl}-bM:SRE'
15310 export_dynamic_flag_spec='${wl}-bexpall'
15311 # It seems that -bexpall does not export symbols beginning with
15312 # underscore (_), so it is better to generate a list of symbols to export.
15313 always_export_symbols=yes
15314 if test "$aix_use_runtimelinking" = yes; then
15315 # Warning - without using the other runtime loading flags (-brtl),
15316 # -berok will link without error, but may produce a broken library.
15317 allow_undefined_flag='-berok'
15318 # Determine the default libpath from the value encoded in an
15319 # empty executable.
15320 if test "${lt_cv_aix_libpath+set}" = set; then
15321 aix_libpath=$lt_cv_aix_libpath
15323 if ${lt_cv_aix_libpath_+:} false; then :
15324 $as_echo_n "(cached) " >&6
15326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15327 /* end confdefs.h. */
15337 if ac_fn_c_try_link "$LINENO"; then :
15339 lt_aix_libpath_sed='
15340 /Import File Strings/,/^$/ {
15342 s/^0 *\([^ ]*\) *$/\1/
15346 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15347 # Check for a 64-bit object if we didn't find anything.
15348 if test -z "$lt_cv_aix_libpath_"; then
15349 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15352 rm -f core conftest.err conftest.$ac_objext \
15353 conftest$ac_exeext conftest.$ac_ext
15354 if test -z "$lt_cv_aix_libpath_"; then
15355 lt_cv_aix_libpath_="/usr/lib:/lib"
15360 aix_libpath=$lt_cv_aix_libpath_
15363 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15364 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15366 if test "$host_cpu" = ia64; then
15367 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15368 allow_undefined_flag="-z nodefs"
15369 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"
15371 # Determine the default libpath from the value encoded in an
15372 # empty executable.
15373 if test "${lt_cv_aix_libpath+set}" = set; then
15374 aix_libpath=$lt_cv_aix_libpath
15376 if ${lt_cv_aix_libpath_+:} false; then :
15377 $as_echo_n "(cached) " >&6
15379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15380 /* end confdefs.h. */
15390 if ac_fn_c_try_link "$LINENO"; then :
15392 lt_aix_libpath_sed='
15393 /Import File Strings/,/^$/ {
15395 s/^0 *\([^ ]*\) *$/\1/
15399 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15400 # Check for a 64-bit object if we didn't find anything.
15401 if test -z "$lt_cv_aix_libpath_"; then
15402 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15405 rm -f core conftest.err conftest.$ac_objext \
15406 conftest$ac_exeext conftest.$ac_ext
15407 if test -z "$lt_cv_aix_libpath_"; then
15408 lt_cv_aix_libpath_="/usr/lib:/lib"
15413 aix_libpath=$lt_cv_aix_libpath_
15416 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15417 # Warning - without using the other run time loading flags,
15418 # -berok will link without error, but may produce a broken library.
15419 no_undefined_flag=' ${wl}-bernotok'
15420 allow_undefined_flag=' ${wl}-berok'
15421 if test "$with_gnu_ld" = yes; then
15422 # We only use this code for GNU lds that support --whole-archive.
15423 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15425 # Exported symbols can be pulled into shared objects from archives
15426 whole_archive_flag_spec='$convenience'
15428 archive_cmds_need_lc=yes
15429 # This is similar to how AIX traditionally builds its shared libraries.
15430 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'
15438 # see comment about AmigaOS4 .so support
15439 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15440 archive_expsym_cmds=''
15443 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)'
15444 hardcode_libdir_flag_spec='-L$libdir'
15445 hardcode_minus_L=yes
15451 export_dynamic_flag_spec=-rdynamic
15454 cygwin* | mingw* | pw32* | cegcc*)
15455 # When not using gcc, we currently assume that we are using
15456 # Microsoft Visual C++.
15457 # hardcode_libdir_flag_spec is actually meaningless, as there is
15458 # no search path for DLLs.
15459 case $cc_basename in
15462 hardcode_libdir_flag_spec=' '
15463 allow_undefined_flag=unsupported
15464 always_export_symbols=yes
15466 # Tell ltmain to make .lib files, not .a files.
15468 # Tell ltmain to make .dll files, not .so files.
15470 # FIXME: Setting linknames here is a bad hack.
15471 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15472 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15473 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15475 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15477 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15479 # The linker will not automatically build a static lib if we build a DLL.
15480 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15481 enable_shared_with_static_runtimes=yes
15482 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15483 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15485 old_postinstall_cmds='chmod 644 $oldlib'
15486 postlink_cmds='lt_outputfile="@OUTPUT@"~
15487 lt_tool_outputfile="@TOOL_OUTPUT@"~
15488 case $lt_outputfile in
15491 lt_outputfile="$lt_outputfile.exe"
15492 lt_tool_outputfile="$lt_tool_outputfile.exe"
15495 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15496 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15497 $RM "$lt_outputfile.manifest";
15501 # Assume MSVC wrapper
15502 hardcode_libdir_flag_spec=' '
15503 allow_undefined_flag=unsupported
15504 # Tell ltmain to make .lib files, not .a files.
15506 # Tell ltmain to make .dll files, not .so files.
15508 # FIXME: Setting linknames here is a bad hack.
15509 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15510 # The linker will automatically build a .lib file if we build a DLL.
15511 old_archive_from_new_cmds='true'
15512 # FIXME: Should let the user specify the lib program.
15513 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15514 enable_shared_with_static_runtimes=yes
15519 darwin* | rhapsody*)
15522 archive_cmds_need_lc=no
15524 hardcode_automatic=yes
15525 hardcode_shlibpath_var=unsupported
15526 if test "$lt_cv_ld_force_load" = "yes"; then
15527 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
15530 whole_archive_flag_spec=''
15532 link_all_deplibs=yes
15533 allow_undefined_flag="$_lt_dar_allow_undefined"
15534 case $cc_basename in
15535 ifort*) _lt_dar_can_shared=yes ;;
15536 *) _lt_dar_can_shared=$GCC ;;
15538 if test "$_lt_dar_can_shared" = "yes"; then
15539 output_verbose_link_cmd=func_echo_all
15540 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15541 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15542 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}"
15543 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}"
15552 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15553 hardcode_libdir_flag_spec='-L$libdir'
15554 hardcode_shlibpath_var=no
15557 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15558 # support. Future versions do this automatically, but an explicit c++rt0.o
15559 # does not break anything, and helps significantly (at the cost of a little
15562 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15563 hardcode_libdir_flag_spec='-R$libdir'
15564 hardcode_direct=yes
15565 hardcode_shlibpath_var=no
15568 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15570 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15571 hardcode_direct=yes
15572 hardcode_minus_L=yes
15573 hardcode_shlibpath_var=no
15576 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15577 freebsd* | dragonfly*)
15578 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15579 hardcode_libdir_flag_spec='-R$libdir'
15580 hardcode_direct=yes
15581 hardcode_shlibpath_var=no
15585 if test "$GCC" = yes; then
15586 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15588 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'
15590 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15591 hardcode_libdir_separator=:
15592 hardcode_direct=yes
15594 # hardcode_minus_L: Not really in the search PATH,
15595 # but as the default location of the library.
15596 hardcode_minus_L=yes
15597 export_dynamic_flag_spec='${wl}-E'
15601 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15602 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15604 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15606 if test "$with_gnu_ld" = no; then
15607 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15608 hardcode_libdir_separator=:
15609 hardcode_direct=yes
15610 hardcode_direct_absolute=yes
15611 export_dynamic_flag_spec='${wl}-E'
15612 # hardcode_minus_L: Not really in the search PATH,
15613 # but as the default location of the library.
15614 hardcode_minus_L=yes
15619 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15622 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15625 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15628 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15634 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15637 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15641 # Older versions of the 11.00 compiler do not understand -b yet
15642 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15644 $as_echo_n "checking if $CC understands -b... " >&6; }
15645 if ${lt_cv_prog_compiler__b+:} false; then :
15646 $as_echo_n "(cached) " >&6
15648 lt_cv_prog_compiler__b=no
15649 save_LDFLAGS="$LDFLAGS"
15650 LDFLAGS="$LDFLAGS -b"
15651 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15652 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15653 # The linker can only warn and ignore the option if not recognized
15654 # So say no if there are warnings
15655 if test -s conftest.err; then
15656 # Append any errors to the config.log.
15657 cat conftest.err 1>&5
15658 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15659 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15660 if diff conftest.exp conftest.er2 >/dev/null; then
15661 lt_cv_prog_compiler__b=yes
15664 lt_cv_prog_compiler__b=yes
15668 LDFLAGS="$save_LDFLAGS"
15671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15672 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15674 if test x"$lt_cv_prog_compiler__b" = xyes; then
15675 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15677 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15683 if test "$with_gnu_ld" = no; then
15684 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15685 hardcode_libdir_separator=:
15690 hardcode_shlibpath_var=no
15693 hardcode_direct=yes
15694 hardcode_direct_absolute=yes
15695 export_dynamic_flag_spec='${wl}-E'
15697 # hardcode_minus_L: Not really in the search PATH,
15698 # but as the default location of the library.
15699 hardcode_minus_L=yes
15705 irix5* | irix6* | nonstopux*)
15706 if test "$GCC" = yes; then
15707 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15708 # Try to use the -exported_symbol ld option, if it does not
15709 # work, assume that -exports_file does not work either and
15710 # implicitly export all symbols.
15711 # This should be the same for all languages, so no per-tag cache variable.
15712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15713 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15714 if ${lt_cv_irix_exported_symbol+:} false; then :
15715 $as_echo_n "(cached) " >&6
15717 save_LDFLAGS="$LDFLAGS"
15718 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15720 /* end confdefs.h. */
15721 int foo (void) { return 0; }
15723 if ac_fn_c_try_link "$LINENO"; then :
15724 lt_cv_irix_exported_symbol=yes
15726 lt_cv_irix_exported_symbol=no
15728 rm -f core conftest.err conftest.$ac_objext \
15729 conftest$ac_exeext conftest.$ac_ext
15730 LDFLAGS="$save_LDFLAGS"
15732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15733 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
15734 if test "$lt_cv_irix_exported_symbol" = yes; then
15735 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
15738 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
15739 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
15741 archive_cmds_need_lc='no'
15742 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15743 hardcode_libdir_separator=:
15745 link_all_deplibs=yes
15749 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15750 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15752 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15754 hardcode_libdir_flag_spec='-R$libdir'
15755 hardcode_direct=yes
15756 hardcode_shlibpath_var=no
15760 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15761 hardcode_direct=yes
15762 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15763 hardcode_libdir_separator=:
15764 hardcode_shlibpath_var=no
15771 if test -f /usr/libexec/ld.so; then
15772 hardcode_direct=yes
15773 hardcode_shlibpath_var=no
15774 hardcode_direct_absolute=yes
15775 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15776 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15777 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15778 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15779 export_dynamic_flag_spec='${wl}-E'
15782 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15783 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15784 hardcode_libdir_flag_spec='-R$libdir'
15787 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15788 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15798 hardcode_libdir_flag_spec='-L$libdir'
15799 hardcode_minus_L=yes
15800 allow_undefined_flag=unsupported
15801 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'
15802 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15806 if test "$GCC" = yes; then
15807 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15808 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15810 allow_undefined_flag=' -expect_unresolved \*'
15811 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
15813 archive_cmds_need_lc='no'
15814 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15815 hardcode_libdir_separator=:
15818 osf4* | osf5*) # as osf3* with the addition of -msym flag
15819 if test "$GCC" = yes; then
15820 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15821 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15822 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15824 allow_undefined_flag=' -expect_unresolved \*'
15825 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
15826 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
15827 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
15829 # Both c and cxx compiler support -rpath directly
15830 hardcode_libdir_flag_spec='-rpath $libdir'
15832 archive_cmds_need_lc='no'
15833 hardcode_libdir_separator=:
15837 no_undefined_flag=' -z defs'
15838 if test "$GCC" = yes; then
15840 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15841 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15842 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15844 case `$CC -V 2>&1` in
15847 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15848 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15849 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15853 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15854 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15855 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15859 hardcode_libdir_flag_spec='-R$libdir'
15860 hardcode_shlibpath_var=no
15862 solaris2.[0-5] | solaris2.[0-5].*) ;;
15864 # The compiler driver will combine and reorder linker options,
15865 # but understands `-z linker_flag'. GCC discards it without `$wl',
15866 # but is careful enough not to reorder.
15867 # Supported since Solaris 2.6 (maybe 2.5.1?)
15868 if test "$GCC" = yes; then
15869 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15871 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15875 link_all_deplibs=yes
15879 if test "x$host_vendor" = xsequent; then
15880 # Use $CC to link under sequent, because it throws in some extra .o
15881 # files that make .init and .fini sections work.
15882 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15884 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15886 hardcode_libdir_flag_spec='-L$libdir'
15887 hardcode_direct=yes
15888 hardcode_minus_L=yes
15889 hardcode_shlibpath_var=no
15893 case $host_vendor in
15895 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15896 hardcode_direct=yes # is this really true???
15899 ## LD is ld it makes a PLAMLIB
15900 ## CC just makes a GrossModule.
15901 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15902 reload_cmds='$CC -r -o $output$reload_objs'
15906 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15907 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15910 runpath_var='LD_RUN_PATH'
15911 hardcode_shlibpath_var=no
15915 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15916 hardcode_shlibpath_var=no
15917 export_dynamic_flag_spec='-Bexport'
15921 if test -d /usr/nec; then
15922 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15923 hardcode_shlibpath_var=no
15924 runpath_var=LD_RUN_PATH
15925 hardcode_runpath_var=yes
15930 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15931 no_undefined_flag='${wl}-z,text'
15932 archive_cmds_need_lc=no
15933 hardcode_shlibpath_var=no
15934 runpath_var='LD_RUN_PATH'
15936 if test "$GCC" = yes; then
15937 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15938 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15940 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15941 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15945 sysv5* | sco3.2v5* | sco5v6*)
15946 # Note: We can NOT use -z defs as we might desire, because we do not
15947 # link with -lc, and that would cause any symbols used from libc to
15948 # always be unresolved, which means just about no library would
15949 # ever link correctly. If we're not using GNU ld we use -z text
15950 # though, which does catch some bad symbols but isn't as heavy-handed
15952 no_undefined_flag='${wl}-z,text'
15953 allow_undefined_flag='${wl}-z,nodefs'
15954 archive_cmds_need_lc=no
15955 hardcode_shlibpath_var=no
15956 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15957 hardcode_libdir_separator=':'
15958 link_all_deplibs=yes
15959 export_dynamic_flag_spec='${wl}-Bexport'
15960 runpath_var='LD_RUN_PATH'
15962 if test "$GCC" = yes; then
15963 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15964 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15966 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15967 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15972 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15973 hardcode_libdir_flag_spec='-L$libdir'
15974 hardcode_shlibpath_var=no
15982 if test x$host_vendor = xsni; then
15984 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15985 export_dynamic_flag_spec='${wl}-Blargedynsym'
15991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15992 $as_echo "$ld_shlibs" >&6; }
15993 test "$ld_shlibs" = no && can_build_shared=no
15995 with_gnu_ld=$with_gnu_ld
16012 # Do we need to explicitly link libc?
16014 case "x$archive_cmds_need_lc" in
16016 # Assume -lc should be added
16017 archive_cmds_need_lc=yes
16019 if test "$enable_shared" = yes && test "$GCC" = yes; then
16020 case $archive_cmds in
16022 # FIXME: we may have to deal with multi-command sequences.
16025 # Test whether the compiler implicitly links with -lc since on some
16026 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16027 # to ld, don't add -lc before -lgcc.
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16029 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16030 if ${lt_cv_archive_cmds_need_lc+:} false; then :
16031 $as_echo_n "(cached) " >&6
16034 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16036 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16037 (eval $ac_compile) 2>&5
16039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16040 test $ac_status = 0; } 2>conftest.err; then
16043 libobjs=conftest.$ac_objext
16045 wl=$lt_prog_compiler_wl
16046 pic_flag=$lt_prog_compiler_pic
16052 lt_save_allow_undefined_flag=$allow_undefined_flag
16053 allow_undefined_flag=
16054 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16055 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16058 test $ac_status = 0; }
16060 lt_cv_archive_cmds_need_lc=no
16062 lt_cv_archive_cmds_need_lc=yes
16064 allow_undefined_flag=$lt_save_allow_undefined_flag
16066 cat conftest.err 1>&5
16071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16072 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16073 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16232 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16234 if test "$GCC" = yes; then
16236 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16237 *) lt_awk_arg="/^libraries:/" ;;
16240 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16241 *) lt_sed_strip_eq="s,=/,/,g" ;;
16243 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16244 case $lt_search_path_spec in
16246 # if the path contains ";" then we assume it to be the separator
16247 # otherwise default to the standard path separator (i.e. ":") - it is
16248 # assumed that no part of a normal pathname contains ";" but that should
16249 # okay in the real world where ";" in dirpaths is itself problematic.
16250 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16253 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16256 # Ok, now we have the path, separated by spaces, we can step through it
16257 # and add multilib dir if necessary.
16258 lt_tmp_lt_search_path_spec=
16259 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16260 for lt_sys_path in $lt_search_path_spec; do
16261 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16262 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16264 test -d "$lt_sys_path" && \
16265 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16268 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16269 BEGIN {RS=" "; FS="/|\n";} {
16272 for (lt_i = NF; lt_i > 0; lt_i--) {
16273 if ($lt_i != "" && $lt_i != ".") {
16274 if ($lt_i == "..") {
16277 if (lt_count == 0) {
16278 lt_foo="/" $lt_i lt_foo;
16285 if (lt_foo != "") { lt_freq[lt_foo]++; }
16286 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16288 # AWK program above erroneously prepends '/' to C:/dos/paths
16291 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16292 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16294 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16296 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16298 library_names_spec=
16299 libname_spec='lib$name'
16303 postuninstall_cmds=
16307 shlibpath_overrides_runpath=unknown
16309 dynamic_linker="$host_os ld.so"
16310 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16311 need_lib_prefix=unknown
16312 hardcode_into_libs=no
16314 # when you set need_version to no, make sure it does not cause -set_version
16315 # flags to be left without arguments
16316 need_version=unknown
16320 version_type=linux # correct to gnu/linux during the next big refactor
16321 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16322 shlibpath_var=LIBPATH
16324 # AIX 3 has no versioning support, so we append a major version to the name.
16325 soname_spec='${libname}${release}${shared_ext}$major'
16329 version_type=linux # correct to gnu/linux during the next big refactor
16332 hardcode_into_libs=yes
16333 if test "$host_cpu" = ia64; then
16334 # AIX 5 supports IA64
16335 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16336 shlibpath_var=LD_LIBRARY_PATH
16338 # With GCC up to 2.95.x, collect2 would create an import file
16339 # for dependence libraries. The import file would start with
16340 # the line `#! .'. This would cause the generated library to
16341 # depend on `.', always an invalid library. This was fixed in
16342 # development snapshots of GCC prior to 3.0.
16344 aix4 | aix4.[01] | aix4.[01].*)
16345 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16347 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16350 can_build_shared=no
16354 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16355 # soname into executable. Probably we can add versioning support to
16356 # collect2, so additional links can be useful in future.
16357 if test "$aix_use_runtimelinking" = yes; then
16358 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16359 # instead of lib<name>.a to let people know that these are not
16360 # typical AIX shared libraries.
16361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16363 # We preserve .a as extension for shared libraries through AIX4.2
16364 # and later when we are not doing run time linking.
16365 library_names_spec='${libname}${release}.a $libname.a'
16366 soname_spec='${libname}${release}${shared_ext}$major'
16368 shlibpath_var=LIBPATH
16375 # Since July 2007 AmigaOS4 officially supports .so libraries.
16376 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16380 library_names_spec='$libname.ixlibrary $libname.a'
16381 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16382 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
16388 library_names_spec='${libname}${shared_ext}'
16389 dynamic_linker="$host_os ld.so"
16390 shlibpath_var=LIBRARY_PATH
16394 version_type=linux # correct to gnu/linux during the next big refactor
16396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16397 soname_spec='${libname}${release}${shared_ext}$major'
16398 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16399 shlibpath_var=LD_LIBRARY_PATH
16400 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16401 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16402 # the default ld.so.conf also contains /usr/contrib/lib and
16403 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16404 # libtool to hard-code these into programs
16407 cygwin* | mingw* | pw32* | cegcc*)
16408 version_type=windows
16413 case $GCC,$cc_basename in
16416 library_names_spec='$libname.dll.a'
16417 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16418 postinstall_cmds='base_file=`basename \${file}`~
16419 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16420 dldir=$destdir/`dirname \$dlpath`~
16421 test -d \$dldir || mkdir -p \$dldir~
16422 $install_prog $dir/$dlname \$dldir/$dlname~
16423 chmod a+x \$dldir/$dlname~
16424 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16425 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16427 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16428 dlpath=$dir/\$dldll~
16430 shlibpath_overrides_runpath=yes
16434 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16435 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16437 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16440 # MinGW DLLs use traditional 'lib' prefix
16441 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16444 # pw32 DLLs use 'pw' prefix rather than 'lib'
16445 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16448 dynamic_linker='Win32 ld.exe'
16453 libname_spec='$name'
16454 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16455 library_names_spec='${libname}.dll.lib'
16459 sys_lib_search_path_spec=
16462 for lt_path in $LIB
16465 # Let DOS variable expansion print the short 8.3 style file name.
16466 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16467 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16470 # Convert to MSYS style.
16471 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16474 # Convert to unix form, then to dos form, then back to unix form
16475 # but this time dos style (no spaces!) so that the unix form looks
16476 # like /cygdrive/c/PROGRA~1:/cygdr...
16477 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16478 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16479 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16482 sys_lib_search_path_spec="$LIB"
16483 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16484 # It is most probably a Windows format PATH.
16485 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16487 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16489 # FIXME: find the short name or the path components, as spaces are
16490 # common. (e.g. "Program Files" -> "PROGRA~1")
16494 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16495 postinstall_cmds='base_file=`basename \${file}`~
16496 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16497 dldir=$destdir/`dirname \$dlpath`~
16498 test -d \$dldir || mkdir -p \$dldir~
16499 $install_prog $dir/$dlname \$dldir/$dlname'
16500 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16501 dlpath=$dir/\$dldll~
16503 shlibpath_overrides_runpath=yes
16504 dynamic_linker='Win32 link.exe'
16508 # Assume MSVC wrapper
16509 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16510 dynamic_linker='Win32 ld.exe'
16513 # FIXME: first we should search . and the directory the executable is in
16517 darwin* | rhapsody*)
16518 dynamic_linker="$host_os dyld"
16519 version_type=darwin
16522 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16523 soname_spec='${libname}${release}${major}$shared_ext'
16524 shlibpath_overrides_runpath=yes
16525 shlibpath_var=DYLD_LIBRARY_PATH
16526 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16528 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16529 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16533 version_type=linux # correct to gnu/linux during the next big refactor
16536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16537 soname_spec='${libname}${release}${shared_ext}$major'
16538 shlibpath_var=LD_LIBRARY_PATH
16541 freebsd* | dragonfly*)
16542 # DragonFly does not have aout. When/if they implement a new
16543 # versioning mechanism, adjust this.
16544 if test -x /usr/bin/objformat; then
16545 objformat=`/usr/bin/objformat`
16548 freebsd[23].*) objformat=aout ;;
16549 *) objformat=elf ;;
16552 version_type=freebsd-$objformat
16553 case $version_type in
16555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16560 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16564 shlibpath_var=LD_LIBRARY_PATH
16567 shlibpath_overrides_runpath=yes
16569 freebsd3.[01]* | freebsdelf3.[01]*)
16570 shlibpath_overrides_runpath=yes
16571 hardcode_into_libs=yes
16573 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16574 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16575 shlibpath_overrides_runpath=no
16576 hardcode_into_libs=yes
16578 *) # from 4.6 on, and DragonFly
16579 shlibpath_overrides_runpath=yes
16580 hardcode_into_libs=yes
16586 version_type=linux # correct to gnu/linux during the next big refactor
16589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16590 soname_spec='${libname}${release}${shared_ext}$major'
16591 shlibpath_var=LD_LIBRARY_PATH
16592 shlibpath_overrides_runpath=no
16593 hardcode_into_libs=yes
16597 version_type=linux # correct to gnu/linux during the next big refactor
16600 dynamic_linker="$host_os runtime_loader"
16601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16602 soname_spec='${libname}${release}${shared_ext}$major'
16603 shlibpath_var=LIBRARY_PATH
16604 shlibpath_overrides_runpath=yes
16605 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16606 hardcode_into_libs=yes
16609 hpux9* | hpux10* | hpux11*)
16610 # Give a soname corresponding to the major version so that dld.sl refuses to
16611 # link against other versions.
16618 hardcode_into_libs=yes
16619 dynamic_linker="$host_os dld.so"
16620 shlibpath_var=LD_LIBRARY_PATH
16621 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16623 soname_spec='${libname}${release}${shared_ext}$major'
16624 if test "X$HPUX_IA64_MODE" = X32; then
16625 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16627 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16629 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16633 hardcode_into_libs=yes
16634 dynamic_linker="$host_os dld.sl"
16635 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16636 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16638 soname_spec='${libname}${release}${shared_ext}$major'
16639 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16640 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16644 dynamic_linker="$host_os dld.sl"
16645 shlibpath_var=SHLIB_PATH
16646 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16648 soname_spec='${libname}${release}${shared_ext}$major'
16651 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16652 postinstall_cmds='chmod 555 $lib'
16653 # or fails outright, so override atomically:
16654 install_override_mode=555
16658 version_type=linux # correct to gnu/linux during the next big refactor
16661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16662 soname_spec='${libname}${release}${shared_ext}$major'
16663 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16664 shlibpath_var=LD_LIBRARY_PATH
16665 shlibpath_overrides_runpath=no
16666 hardcode_into_libs=yes
16669 irix5* | irix6* | nonstopux*)
16671 nonstopux*) version_type=nonstopux ;;
16673 if test "$lt_cv_prog_gnu_ld" = yes; then
16674 version_type=linux # correct to gnu/linux during the next big refactor
16681 soname_spec='${libname}${release}${shared_ext}$major'
16682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16684 irix5* | nonstopux*)
16685 libsuff= shlibsuff=
16688 case $LD in # libtool.m4 will add one of these switches to LD
16689 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16690 libsuff= shlibsuff= libmagic=32-bit;;
16691 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16692 libsuff=32 shlibsuff=N32 libmagic=N32;;
16693 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16694 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16695 *) libsuff= shlibsuff= libmagic=never-match;;
16699 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16700 shlibpath_overrides_runpath=no
16701 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16702 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16703 hardcode_into_libs=yes
16706 # No shared lib support for Linux oldld, aout, or coff.
16707 linux*oldld* | linux*aout* | linux*coff*)
16711 # This must be glibc/ELF.
16712 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16713 version_type=linux # correct to gnu/linux during the next big refactor
16716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16717 soname_spec='${libname}${release}${shared_ext}$major'
16718 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16719 shlibpath_var=LD_LIBRARY_PATH
16720 shlibpath_overrides_runpath=no
16722 # Some binutils ld are patched to set DT_RUNPATH
16723 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16724 $as_echo_n "(cached) " >&6
16726 lt_cv_shlibpath_overrides_runpath=no
16727 save_LDFLAGS=$LDFLAGS
16728 save_libdir=$libdir
16729 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16730 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16732 /* end confdefs.h. */
16742 if ac_fn_c_try_link "$LINENO"; then :
16743 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16744 lt_cv_shlibpath_overrides_runpath=yes
16747 rm -f core conftest.err conftest.$ac_objext \
16748 conftest$ac_exeext conftest.$ac_ext
16749 LDFLAGS=$save_LDFLAGS
16750 libdir=$save_libdir
16754 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16756 # This implies no fast_install, which is unacceptable.
16757 # Some rework will be needed to allow for fast_install
16758 # before this can be enabled.
16759 hardcode_into_libs=yes
16761 # Append ld.so.conf contents to the search path
16762 if test -f /etc/ld.so.conf; then
16763 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;s/"//g;/^$/d' | tr '\n' ' '`
16764 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16767 # We used to test for /lib/ld.so.1 and disable shared libraries on
16768 # powerpc, because MkLinux only supported shared libraries with the
16769 # GNU dynamic linker. Since this was broken with cross compilers,
16770 # most powerpc-linux boxes support dynamic linking these days and
16771 # people can always --disable-shared, the test was removed, and we
16772 # assume the GNU/Linux dynamic linker is in use.
16773 dynamic_linker='GNU/Linux ld.so'
16780 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16782 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16783 dynamic_linker='NetBSD (a.out) ld.so'
16785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16786 soname_spec='${libname}${release}${shared_ext}$major'
16787 dynamic_linker='NetBSD ld.elf_so'
16789 shlibpath_var=LD_LIBRARY_PATH
16790 shlibpath_overrides_runpath=yes
16791 hardcode_into_libs=yes
16795 version_type=linux # correct to gnu/linux during the next big refactor
16796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16797 shlibpath_var=LD_LIBRARY_PATH
16798 shlibpath_overrides_runpath=yes
16805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16806 soname_spec='${libname}${release}${shared_ext}$major'
16807 shlibpath_var=LD_LIBRARY_PATH
16808 shlibpath_overrides_runpath=no
16809 hardcode_into_libs=yes
16810 dynamic_linker='ldqnx.so'
16815 sys_lib_dlsearch_path_spec="/usr/lib"
16817 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16819 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16820 *) need_version=no ;;
16822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16823 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16824 shlibpath_var=LD_LIBRARY_PATH
16825 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16827 openbsd2.[89] | openbsd2.[89].*)
16828 shlibpath_overrides_runpath=no
16831 shlibpath_overrides_runpath=yes
16835 shlibpath_overrides_runpath=yes
16840 libname_spec='$name'
16843 library_names_spec='$libname${shared_ext} $libname.a'
16844 dynamic_linker='OS/2 ld.exe'
16845 shlibpath_var=LIBPATH
16848 osf3* | osf4* | osf5*)
16852 soname_spec='${libname}${release}${shared_ext}$major'
16853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16854 shlibpath_var=LD_LIBRARY_PATH
16855 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16856 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16864 version_type=linux # correct to gnu/linux during the next big refactor
16867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16868 soname_spec='${libname}${release}${shared_ext}$major'
16869 shlibpath_var=LD_LIBRARY_PATH
16870 shlibpath_overrides_runpath=yes
16871 hardcode_into_libs=yes
16872 # ldd complains unless libraries are executable
16873 postinstall_cmds='chmod +x $lib'
16878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16879 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16880 shlibpath_var=LD_LIBRARY_PATH
16881 shlibpath_overrides_runpath=yes
16882 if test "$with_gnu_ld" = yes; then
16889 version_type=linux # correct to gnu/linux during the next big refactor
16890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16891 soname_spec='${libname}${release}${shared_ext}$major'
16892 shlibpath_var=LD_LIBRARY_PATH
16893 case $host_vendor in
16895 shlibpath_overrides_runpath=no
16897 runpath_var=LD_RUN_PATH
16905 shlibpath_overrides_runpath=no
16906 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16912 if test -d /usr/nec ;then
16913 version_type=linux # correct to gnu/linux during the next big refactor
16914 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16915 soname_spec='$libname${shared_ext}.$major'
16916 shlibpath_var=LD_LIBRARY_PATH
16920 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16921 version_type=freebsd-elf
16924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16925 soname_spec='${libname}${release}${shared_ext}$major'
16926 shlibpath_var=LD_LIBRARY_PATH
16927 shlibpath_overrides_runpath=yes
16928 hardcode_into_libs=yes
16929 if test "$with_gnu_ld" = yes; then
16930 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16932 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16935 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16939 sys_lib_dlsearch_path_spec='/usr/lib'
16943 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16944 version_type=linux # correct to gnu/linux during the next big refactor
16947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16948 shlibpath_var=LD_LIBRARY_PATH
16949 shlibpath_overrides_runpath=no
16950 hardcode_into_libs=yes
16954 version_type=linux # correct to gnu/linux during the next big refactor
16955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16956 soname_spec='${libname}${release}${shared_ext}$major'
16957 shlibpath_var=LD_LIBRARY_PATH
16964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16965 $as_echo "$dynamic_linker" >&6; }
16966 test "$dynamic_linker" = no && can_build_shared=no
16968 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16969 if test "$GCC" = yes; then
16970 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16973 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16974 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16976 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16977 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17072 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17074 if test -n "$hardcode_libdir_flag_spec" ||
17075 test -n "$runpath_var" ||
17076 test "X$hardcode_automatic" = "Xyes" ; then
17078 # We can hardcode non-existent directories.
17079 if test "$hardcode_direct" != no &&
17080 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17081 # have to relink, otherwise we might link with an installed library
17082 # when we should be linking with a yet-to-be-installed one
17083 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17084 test "$hardcode_minus_L" != no; then
17085 # Linking always hardcodes the temporary library directory.
17086 hardcode_action=relink
17088 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17089 hardcode_action=immediate
17092 # We cannot hardcode anything, or else we can only hardcode existing
17094 hardcode_action=unsupported
17096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17097 $as_echo "$hardcode_action" >&6; }
17099 if test "$hardcode_action" = relink ||
17100 test "$inherit_rpath" = yes; then
17101 # Fast installation is not supported
17102 enable_fast_install=no
17103 elif test "$shlibpath_overrides_runpath" = yes ||
17104 test "$enable_shared" = no; then
17105 # Fast installation is not necessary
17106 enable_fast_install=needless
17114 if test "x$enable_dlopen" != xyes; then
17115 enable_dlopen=unknown
17116 enable_dlopen_self=unknown
17117 enable_dlopen_self_static=unknown
17124 lt_cv_dlopen="load_add_on"
17126 lt_cv_dlopen_self=yes
17129 mingw* | pw32* | cegcc*)
17130 lt_cv_dlopen="LoadLibrary"
17135 lt_cv_dlopen="dlopen"
17140 # if libdl is installed we need to link against it
17141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17142 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17143 if ${ac_cv_lib_dl_dlopen+:} false; then :
17144 $as_echo_n "(cached) " >&6
17146 ac_check_lib_save_LIBS=$LIBS
17148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17149 /* end confdefs.h. */
17151 /* Override any GCC internal prototype to avoid an error.
17152 Use char because int might match the return type of a GCC
17153 builtin and then its argument prototype would still apply. */
17166 if ac_fn_c_try_link "$LINENO"; then :
17167 ac_cv_lib_dl_dlopen=yes
17169 ac_cv_lib_dl_dlopen=no
17171 rm -f core conftest.err conftest.$ac_objext \
17172 conftest$ac_exeext conftest.$ac_ext
17173 LIBS=$ac_check_lib_save_LIBS
17175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17176 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17177 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17178 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17181 lt_cv_dlopen="dyld"
17183 lt_cv_dlopen_self=yes
17190 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17191 if test "x$ac_cv_func_shl_load" = xyes; then :
17192 lt_cv_dlopen="shl_load"
17194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17195 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17196 if ${ac_cv_lib_dld_shl_load+:} false; then :
17197 $as_echo_n "(cached) " >&6
17199 ac_check_lib_save_LIBS=$LIBS
17201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17202 /* end confdefs.h. */
17204 /* Override any GCC internal prototype to avoid an error.
17205 Use char because int might match the return type of a GCC
17206 builtin and then its argument prototype would still apply. */
17214 return shl_load ();
17219 if ac_fn_c_try_link "$LINENO"; then :
17220 ac_cv_lib_dld_shl_load=yes
17222 ac_cv_lib_dld_shl_load=no
17224 rm -f core conftest.err conftest.$ac_objext \
17225 conftest$ac_exeext conftest.$ac_ext
17226 LIBS=$ac_check_lib_save_LIBS
17228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17229 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17230 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17231 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17233 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17234 if test "x$ac_cv_func_dlopen" = xyes; then :
17235 lt_cv_dlopen="dlopen"
17237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17238 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17239 if ${ac_cv_lib_dl_dlopen+:} false; then :
17240 $as_echo_n "(cached) " >&6
17242 ac_check_lib_save_LIBS=$LIBS
17244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17245 /* end confdefs.h. */
17247 /* Override any GCC internal prototype to avoid an error.
17248 Use char because int might match the return type of a GCC
17249 builtin and then its argument prototype would still apply. */
17262 if ac_fn_c_try_link "$LINENO"; then :
17263 ac_cv_lib_dl_dlopen=yes
17265 ac_cv_lib_dl_dlopen=no
17267 rm -f core conftest.err conftest.$ac_objext \
17268 conftest$ac_exeext conftest.$ac_ext
17269 LIBS=$ac_check_lib_save_LIBS
17271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17272 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17273 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17274 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17277 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17278 if ${ac_cv_lib_svld_dlopen+:} false; then :
17279 $as_echo_n "(cached) " >&6
17281 ac_check_lib_save_LIBS=$LIBS
17282 LIBS="-lsvld $LIBS"
17283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17284 /* end confdefs.h. */
17286 /* Override any GCC internal prototype to avoid an error.
17287 Use char because int might match the return type of a GCC
17288 builtin and then its argument prototype would still apply. */
17301 if ac_fn_c_try_link "$LINENO"; then :
17302 ac_cv_lib_svld_dlopen=yes
17304 ac_cv_lib_svld_dlopen=no
17306 rm -f core conftest.err conftest.$ac_objext \
17307 conftest$ac_exeext conftest.$ac_ext
17308 LIBS=$ac_check_lib_save_LIBS
17310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17311 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17312 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17313 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17316 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17317 if ${ac_cv_lib_dld_dld_link+:} false; then :
17318 $as_echo_n "(cached) " >&6
17320 ac_check_lib_save_LIBS=$LIBS
17322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17323 /* end confdefs.h. */
17325 /* Override any GCC internal prototype to avoid an error.
17326 Use char because int might match the return type of a GCC
17327 builtin and then its argument prototype would still apply. */
17335 return dld_link ();
17340 if ac_fn_c_try_link "$LINENO"; then :
17341 ac_cv_lib_dld_dld_link=yes
17343 ac_cv_lib_dld_dld_link=no
17345 rm -f core conftest.err conftest.$ac_objext \
17346 conftest$ac_exeext conftest.$ac_ext
17347 LIBS=$ac_check_lib_save_LIBS
17349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17350 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17351 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17352 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17373 if test "x$lt_cv_dlopen" != xno; then
17379 case $lt_cv_dlopen in
17381 save_CPPFLAGS="$CPPFLAGS"
17382 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17384 save_LDFLAGS="$LDFLAGS"
17385 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17388 LIBS="$lt_cv_dlopen_libs $LIBS"
17390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17391 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17392 if ${lt_cv_dlopen_self+:} false; then :
17393 $as_echo_n "(cached) " >&6
17395 if test "$cross_compiling" = yes; then :
17396 lt_cv_dlopen_self=cross
17398 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17399 lt_status=$lt_dlunknown
17400 cat > conftest.$ac_ext <<_LT_EOF
17401 #line $LINENO "configure"
17402 #include "confdefs.h"
17411 # define LT_DLGLOBAL RTLD_GLOBAL
17414 # define LT_DLGLOBAL DL_GLOBAL
17416 # define LT_DLGLOBAL 0
17420 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17421 find out it does not work in some platform. */
17422 #ifndef LT_DLLAZY_OR_NOW
17424 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17427 # define LT_DLLAZY_OR_NOW DL_LAZY
17430 # define LT_DLLAZY_OR_NOW RTLD_NOW
17433 # define LT_DLLAZY_OR_NOW DL_NOW
17435 # define LT_DLLAZY_OR_NOW 0
17442 /* When -fvisbility=hidden is used, assume the code has been annotated
17443 correspondingly for the symbols needed. */
17444 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17445 int fnord () __attribute__((visibility("default")));
17448 int fnord () { return 42; }
17451 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17452 int status = $lt_dlunknown;
17456 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17459 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17460 else puts (dlerror ());
17462 /* dlclose (self); */
17470 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17471 (eval $ac_link) 2>&5
17473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17474 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17475 (./conftest; exit; ) >&5 2>/dev/null
17477 case x$lt_status in
17478 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17479 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17480 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17483 # compilation failed
17484 lt_cv_dlopen_self=no
17491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17492 $as_echo "$lt_cv_dlopen_self" >&6; }
17494 if test "x$lt_cv_dlopen_self" = xyes; then
17495 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17497 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17498 if ${lt_cv_dlopen_self_static+:} false; then :
17499 $as_echo_n "(cached) " >&6
17501 if test "$cross_compiling" = yes; then :
17502 lt_cv_dlopen_self_static=cross
17504 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17505 lt_status=$lt_dlunknown
17506 cat > conftest.$ac_ext <<_LT_EOF
17507 #line $LINENO "configure"
17508 #include "confdefs.h"
17517 # define LT_DLGLOBAL RTLD_GLOBAL
17520 # define LT_DLGLOBAL DL_GLOBAL
17522 # define LT_DLGLOBAL 0
17526 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17527 find out it does not work in some platform. */
17528 #ifndef LT_DLLAZY_OR_NOW
17530 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17533 # define LT_DLLAZY_OR_NOW DL_LAZY
17536 # define LT_DLLAZY_OR_NOW RTLD_NOW
17539 # define LT_DLLAZY_OR_NOW DL_NOW
17541 # define LT_DLLAZY_OR_NOW 0
17548 /* When -fvisbility=hidden is used, assume the code has been annotated
17549 correspondingly for the symbols needed. */
17550 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17551 int fnord () __attribute__((visibility("default")));
17554 int fnord () { return 42; }
17557 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17558 int status = $lt_dlunknown;
17562 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17565 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17566 else puts (dlerror ());
17568 /* dlclose (self); */
17576 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17577 (eval $ac_link) 2>&5
17579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17580 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17581 (./conftest; exit; ) >&5 2>/dev/null
17583 case x$lt_status in
17584 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17585 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17586 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17589 # compilation failed
17590 lt_cv_dlopen_self_static=no
17597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17598 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17601 CPPFLAGS="$save_CPPFLAGS"
17602 LDFLAGS="$save_LDFLAGS"
17607 case $lt_cv_dlopen_self in
17608 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17609 *) enable_dlopen_self=unknown ;;
17612 case $lt_cv_dlopen_self_static in
17613 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17614 *) enable_dlopen_self_static=unknown ;;
17636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17637 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17638 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17639 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17640 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17642 $as_echo "yes" >&6; }
17644 # FIXME - insert some real tests, host_os isn't really good enough
17647 if test -n "$STRIP" ; then
17648 striplib="$STRIP -x"
17649 old_striplib="$STRIP -S"
17650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17651 $as_echo "yes" >&6; }
17653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17654 $as_echo "no" >&6; }
17658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17659 $as_echo "no" >&6; }
17675 # Report which library types will actually be built
17676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17677 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17679 $as_echo "$can_build_shared" >&6; }
17681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17682 $as_echo_n "checking whether to build shared libraries... " >&6; }
17683 test "$can_build_shared" = "no" && enable_shared=no
17685 # On AIX, shared libraries and static libraries use the same namespace, and
17686 # are all built from PIC.
17689 test "$enable_shared" = yes && enable_static=no
17690 if test -n "$RANLIB"; then
17691 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17692 postinstall_cmds='$RANLIB $lib'
17697 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17698 test "$enable_shared" = yes && enable_static=no
17702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17703 $as_echo "$enable_shared" >&6; }
17705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17706 $as_echo_n "checking whether to build static libraries... " >&6; }
17707 # Make sure either enable_shared or enable_static is yes.
17708 test "$enable_shared" = yes || enable_static=yes
17709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17710 $as_echo "$enable_static" >&6; }
17717 ac_cpp='$CPP $CPPFLAGS'
17718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17738 ac_config_commands="$ac_config_commands libtool"
17743 # Only expand once:
17746 # get libtool's setting of shlibpath_var
17747 eval `grep "^shlibpath_var=[A-Z_]*$" $apr_builddir/libtool`
17748 if test "x$shlibpath_var" = "x"; then
17749 shlibpath_var=REPLACE_WITH_YOUR_SHLIBPATH_VAR
17756 # Check whether --with-installbuilddir was given.
17757 if test "${with_installbuilddir+set}" = set; then :
17758 withval=$with_installbuilddir; installbuilddir=$withval
17760 installbuilddir="${datadir}/build-${APR_MAJOR_VERSION}"
17766 # Check whether --with-libtool was given.
17767 if test "${with_libtool+set}" = set; then :
17768 withval=$with_libtool; use_libtool=$withval
17774 if test "x$use_libtool" = "xyes"; then
17775 lt_compile='$(LIBTOOL) $(LTFLAGS) --mode=compile $(COMPILE) -o $@ -c $< && touch $@'
17776 LT_VERSION="-version-info `$get_version libtool $version_hdr APR`"
17777 link="\$(LIBTOOL) \$(LTFLAGS) --mode=link \$(COMPILE) \$(LT_LDFLAGS) \$(LT_VERSION) \$(ALL_LDFLAGS) -o \$@"
17779 lib_target='-rpath $(libdir) $(OBJECTS)'
17780 export_lib_target='-rpath \$(libdir) \$(OBJECTS)'
17782 lt_compile='$(COMPILE) -o $@ -c $<'
17783 link='$(AR) cr $(TARGET_LIB) $(OBJECTS); $(RANLIB) $(TARGET_LIB)'
17786 export_lib_target=''
17791 apr_platform_runtime_link_flag="-R"
17793 *-mingw* | *-cygwin*)
17794 LT_LDFLAGS="$LT_LDFLAGS -no-undefined"
17812 echo "${nl}Check for compiler flags..."
17817 if test "$ac_test_CFLAGS" != set; then
17819 if test "x$CFLAGS" = "x-g"; then
17820 test "x$silent" != "xyes" && echo " nulling CFLAGS"
17825 for i in $CFLAGS; do
17826 if test "x$i" != "x-g"; then
17827 apr_new_bugger="$apr_new_bugger $i"
17832 if test $apr_removed = "1"; then
17833 test "x$silent" != "xyes" && echo " removed \"-g\" from CFLAGS"
17834 CFLAGS=$apr_new_bugger
17842 # Check whether --enable-debug was given.
17843 if test "${enable_debug+set}" = set; then :
17844 enableval=$enable_debug;
17845 if test "x$CFLAGS" = "x"; then
17846 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-g\""
17849 apr_addto_bugger="-g"
17850 for i in $apr_addto_bugger; do
17851 apr_addto_duplicate="0"
17852 for j in $CFLAGS; do
17853 if test "x$i" = "x$j"; then
17854 apr_addto_duplicate="1"
17858 if test $apr_addto_duplicate = "0"; then
17859 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
17860 CFLAGS="$CFLAGS $i"
17865 if test "$GCC" = "yes"; then
17867 if test "x$CFLAGS" = "x"; then
17868 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Wall\""
17871 apr_addto_bugger="-Wall"
17872 for i in $apr_addto_bugger; do
17873 apr_addto_duplicate="0"
17874 for j in $CFLAGS; do
17875 if test "x$i" = "x$j"; then
17876 apr_addto_duplicate="1"
17880 if test $apr_addto_duplicate = "0"; then
17881 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
17882 CFLAGS="$CFLAGS $i"
17887 elif test "$AIX_XLC" = "yes"; then
17889 if test "x$CFLAGS" = "x"; then
17890 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-qfullpath\""
17891 CFLAGS="-qfullpath"
17893 apr_addto_bugger="-qfullpath"
17894 for i in $apr_addto_bugger; do
17895 apr_addto_duplicate="0"
17896 for j in $CFLAGS; do
17897 if test "x$i" = "x$j"; then
17898 apr_addto_duplicate="1"
17902 if test $apr_addto_duplicate = "0"; then
17903 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
17904 CFLAGS="$CFLAGS $i"
17913 # Check whether --enable-maintainer-mode was given.
17914 if test "${enable_maintainer_mode+set}" = set; then :
17915 enableval=$enable_maintainer_mode;
17916 if test "x$CFLAGS" = "x"; then
17917 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-g\""
17920 apr_addto_bugger="-g"
17921 for i in $apr_addto_bugger; do
17922 apr_addto_duplicate="0"
17923 for j in $CFLAGS; do
17924 if test "x$i" = "x$j"; then
17925 apr_addto_duplicate="1"
17929 if test $apr_addto_duplicate = "0"; then
17930 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
17931 CFLAGS="$CFLAGS $i"
17936 if test "$GCC" = "yes"; then
17938 if test "x$CFLAGS" = "x"; then
17939 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations\""
17940 CFLAGS="-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations"
17942 apr_addto_bugger="-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations"
17943 for i in $apr_addto_bugger; do
17944 apr_addto_duplicate="0"
17945 for j in $CFLAGS; do
17946 if test "x$i" = "x$j"; then
17947 apr_addto_duplicate="1"
17951 if test $apr_addto_duplicate = "0"; then
17952 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
17953 CFLAGS="$CFLAGS $i"
17958 elif test "$AIX_XLC" = "yes"; then
17960 if test "x$CFLAGS" = "x"; then
17961 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro\""
17962 CFLAGS="-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro"
17964 apr_addto_bugger="-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro"
17965 for i in $apr_addto_bugger; do
17966 apr_addto_duplicate="0"
17967 for j in $CFLAGS; do
17968 if test "x$i" = "x$j"; then
17969 apr_addto_duplicate="1"
17973 if test $apr_addto_duplicate = "0"; then
17974 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
17975 CFLAGS="$CFLAGS $i"
17984 # Check whether --enable-profile was given.
17985 if test "${enable_profile+set}" = set; then :
17986 enableval=$enable_profile; if test "$GCC" = "yes"; then
17988 if test "x$CFLAGS" = "x"; then
17989 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-pg\""
17992 apr_addto_bugger="-pg"
17993 for i in $apr_addto_bugger; do
17994 apr_addto_duplicate="0"
17995 for j in $CFLAGS; do
17996 if test "x$i" = "x$j"; then
17997 apr_addto_duplicate="1"
18001 if test $apr_addto_duplicate = "0"; then
18002 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
18003 CFLAGS="$CFLAGS $i"
18009 if test "x$CFLAGS" = "x-g"; then
18010 test "x$silent" != "xyes" && echo " nulling CFLAGS"
18015 for i in $CFLAGS; do
18016 if test "x$i" != "x-g"; then
18017 apr_new_bugger="$apr_new_bugger $i"
18022 if test $apr_removed = "1"; then
18023 test "x$silent" != "xyes" && echo " removed \"-g\" from CFLAGS"
18024 CFLAGS=$apr_new_bugger
18028 if test "$host" = "i586-pc-beos"; then
18030 if test "x$CFLAGS" = "x-O2"; then
18031 test "x$silent" != "xyes" && echo " nulling CFLAGS"
18036 for i in $CFLAGS; do
18037 if test "x$i" != "x-O2"; then
18038 apr_new_bugger="$apr_new_bugger $i"
18043 if test $apr_removed = "1"; then
18044 test "x$silent" != "xyes" && echo " removed \"-O2\" from CFLAGS"
18045 CFLAGS=$apr_new_bugger
18050 if test "x$CFLAGS" = "x"; then
18051 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-O1\""
18054 apr_addto_bugger="-O1"
18055 for i in $apr_addto_bugger; do
18056 apr_addto_duplicate="0"
18057 for j in $CFLAGS; do
18058 if test "x$i" = "x$j"; then
18059 apr_addto_duplicate="1"
18063 if test $apr_addto_duplicate = "0"; then
18064 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
18065 CFLAGS="$CFLAGS $i"
18071 if test "x$LDFLAGS" = "x"; then
18072 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-p\""
18075 apr_addto_bugger="-p"
18076 for i in $apr_addto_bugger; do
18077 apr_addto_duplicate="0"
18078 for j in $LDFLAGS; do
18079 if test "x$i" = "x$j"; then
18080 apr_addto_duplicate="1"
18084 if test $apr_addto_duplicate = "0"; then
18085 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
18086 LDFLAGS="$LDFLAGS $i"
18096 # Check whether --enable-pool-debug was given.
18097 if test "${enable_pool_debug+set}" = set; then :
18098 enableval=$enable_pool_debug; if test -z "$enableval"; then
18100 if test "x$CPPFLAGS" = "x"; then
18101 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DAPR_POOL_DEBUG=1\""
18102 CPPFLAGS="-DAPR_POOL_DEBUG=1"
18104 apr_addto_bugger="-DAPR_POOL_DEBUG=1"
18105 for i in $apr_addto_bugger; do
18106 apr_addto_duplicate="0"
18107 for j in $CPPFLAGS; do
18108 if test "x$i" = "x$j"; then
18109 apr_addto_duplicate="1"
18113 if test $apr_addto_duplicate = "0"; then
18114 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
18115 CPPFLAGS="$CPPFLAGS $i"
18120 elif test ! "$enableval" = "no"; then
18123 for i in $enableval
18150 if test $flag -gt 0; then
18151 apr_pool_debug=`expr '(' $apr_pool_debug - $apr_pool_debug % \
18152 '(' $flag '*' 2 ')' ')' + $flag + $apr_pool_debug % $flag`
18157 if test "x$CPPFLAGS" = "x"; then
18158 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DAPR_POOL_DEBUG=$apr_pool_debug\""
18159 CPPFLAGS="-DAPR_POOL_DEBUG=$apr_pool_debug"
18161 apr_addto_bugger="-DAPR_POOL_DEBUG=$apr_pool_debug"
18162 for i in $apr_addto_bugger; do
18163 apr_addto_duplicate="0"
18164 for j in $CPPFLAGS; do
18165 if test "x$i" = "x$j"; then
18166 apr_addto_duplicate="1"
18170 if test $apr_addto_duplicate = "0"; then
18171 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
18172 CPPFLAGS="$CPPFLAGS $i"
18182 if test "$host" = "i586-pc-beos"; then
18183 # Check whether --enable-malloc-debug was given.
18184 if test "${enable_malloc_debug+set}" = set; then :
18185 enableval=$enable_malloc_debug;
18186 if test "x$CFLAGS" = "x-O2"; then
18187 test "x$silent" != "xyes" && echo " nulling CFLAGS"
18192 for i in $CFLAGS; do
18193 if test "x$i" != "x-O2"; then
18194 apr_new_bugger="$apr_new_bugger $i"
18199 if test $apr_removed = "1"; then
18200 test "x$silent" != "xyes" && echo " removed \"-O2\" from CFLAGS"
18201 CFLAGS=$apr_new_bugger
18206 if test "x$CPPFLAGS" = "x"; then
18207 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-fcheck-memory-usage -D_KERNEL_MODE\""
18208 CPPFLAGS="-fcheck-memory-usage -D_KERNEL_MODE"
18210 apr_addto_bugger="-fcheck-memory-usage -D_KERNEL_MODE"
18211 for i in $apr_addto_bugger; do
18212 apr_addto_duplicate="0"
18213 for j in $CPPFLAGS; do
18214 if test "x$i" = "x$j"; then
18215 apr_addto_duplicate="1"
18219 if test $apr_addto_duplicate = "0"; then
18220 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
18221 CPPFLAGS="$CPPFLAGS $i"
18230 # this is the place to put specific options for platform/compiler
18232 case "$host:$CC" in
18235 if test "x$CFLAGS" = "x"; then
18236 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Ae +Z\""
18239 apr_addto_bugger="-Ae +Z"
18240 for i in $apr_addto_bugger; do
18241 apr_addto_duplicate="0"
18242 for j in $CFLAGS; do
18243 if test "x$i" = "x$j"; then
18244 apr_addto_duplicate="1"
18248 if test $apr_addto_duplicate = "0"; then
18249 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
18250 CFLAGS="$CFLAGS $i"
18259 if echo "$CFLAGS " | grep '+DA' >/dev/null; then :
18262 if test "x$CFLAGS" = "x"; then
18263 test "x$silent" != "xyes" && echo " setting CFLAGS to \"+DAportable\""
18264 CFLAGS="+DAportable"
18266 apr_addto_bugger="+DAportable"
18267 for i in $apr_addto_bugger; do
18268 apr_addto_duplicate="0"
18269 for j in $CFLAGS; do
18270 if test "x$i" = "x$j"; then
18271 apr_addto_duplicate="1"
18275 if test $apr_addto_duplicate = "0"; then
18276 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
18277 CFLAGS="$CFLAGS $i"
18286 powerpc-*-beos:mwcc* )
18288 test "x$silent" != "xyes" && echo " forcing CPP to \"mwcc -E\""
18292 test "x$silent" != "xyes" && echo " forcing CC to \"mwcc\""
18296 test "x$silent" != "xyes" && echo " forcing AR to \"ar\""
18300 *-mingw* | *-cygwin*)
18301 if test "$enable_shared" = "yes"; then
18303 if test "x$INTERNAL_CPPFLAGS" = "x"; then
18304 test "x$silent" != "xyes" && echo " setting INTERNAL_CPPFLAGS to \"-DAPR_DECLARE_EXPORT\""
18305 INTERNAL_CPPFLAGS="-DAPR_DECLARE_EXPORT"
18307 apr_addto_bugger="-DAPR_DECLARE_EXPORT"
18308 for i in $apr_addto_bugger; do
18309 apr_addto_duplicate="0"
18310 for j in $INTERNAL_CPPFLAGS; do
18311 if test "x$i" = "x$j"; then
18312 apr_addto_duplicate="1"
18316 if test $apr_addto_duplicate = "0"; then
18317 test "x$silent" != "xyes" && echo " adding \"$i\" to INTERNAL_CPPFLAGS"
18318 INTERNAL_CPPFLAGS="$INTERNAL_CPPFLAGS $i"
18325 if test "x$CPPFLAGS" = "x"; then
18326 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DAPR_DECLARE_STATIC\""
18327 CPPFLAGS="-DAPR_DECLARE_STATIC"
18329 apr_addto_bugger="-DAPR_DECLARE_STATIC"
18330 for i in $apr_addto_bugger; do
18331 apr_addto_duplicate="0"
18332 for j in $CPPFLAGS; do
18333 if test "x$i" = "x$j"; then
18334 apr_addto_duplicate="1"
18338 if test $apr_addto_duplicate = "0"; then
18339 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
18340 CPPFLAGS="$CPPFLAGS $i"
18349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler provides atomic builtins" >&5
18350 $as_echo_n "checking whether the compiler provides atomic builtins... " >&6; }
18351 if ${ap_cv_atomic_builtins+:} false; then :
18352 $as_echo_n "(cached) " >&6
18354 if test "$cross_compiling" = yes; then :
18355 ap_cv_atomic_builtins=no
18357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18358 /* end confdefs.h. */
18362 unsigned long val = 1010, tmp, *mem = &val;
18364 if (__sync_fetch_and_add(&val, 1010) != 1010 || val != 2020)
18369 if (__sync_fetch_and_sub(mem, 1010) != tmp || val != 1010)
18372 if (__sync_sub_and_fetch(&val, 1010) != 0 || val != 0)
18377 if (__sync_val_compare_and_swap(mem, 0, tmp) != 0 || val != tmp)
18380 if (__sync_lock_test_and_set(&val, 4040) != 3030)
18385 if (__sync_val_compare_and_swap(&mem, &tmp, &val) != &tmp)
18388 __sync_synchronize();
18396 if ac_fn_c_try_run "$LINENO"; then :
18397 ap_cv_atomic_builtins=yes
18399 ap_cv_atomic_builtins=no
18401 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18402 conftest.$ac_objext conftest.beam conftest.$ac_ext
18406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ap_cv_atomic_builtins" >&5
18407 $as_echo "$ap_cv_atomic_builtins" >&6; }
18409 if test "$ap_cv_atomic_builtins" = "yes"; then
18411 $as_echo "#define HAVE_ATOMIC_BUILTINS 1" >>confdefs.h
18417 # The IBM ppc405cr processor has a bugged stwcx instruction.
18419 $as_echo "#define PPC405_ERRATA 1" >>confdefs.h
18427 if test "$GCC" = "yes"; then
18431 cat > conftest.c <<EOF
18432 #include <sys/types.h>
18433 int main() { return 0; }
18436 for i in "$CC -MM" "$CC -M" "$CPP -MM" "$CPP -M" "cpp -M"; do
18437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $i can create proper make dependencies" >&5
18438 $as_echo_n "checking if $i can create proper make dependencies... " >&6; }
18439 if $i conftest.c 2>/dev/null | grep 'conftest.o: conftest.c' >/dev/null; then
18441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18442 $as_echo "yes" >&6; }
18445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18446 $as_echo "no" >&6; }
18454 proc_mutex_is_global=0
18456 config_subdirs="none"
18457 INSTALL_SUBDIRS="none"
18458 OBJECTS_PLATFORM='$(OBJECTS_unix)'
18461 i386-ibm-aix* | *-ibm-aix[1-2].* | *-ibm-aix3.* | *-ibm-aix4.1 | *-ibm-aix4.1.* | *-ibm-aix4.2 | *-ibm-aix4.2.*)
18464 if test "x$LDFLAGS" = "x"; then
18465 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-lld\""
18468 apr_addto_bugger="-lld"
18469 for i in $apr_addto_bugger; do
18470 apr_addto_duplicate="0"
18471 for j in $LDFLAGS; do
18472 if test "x$i" = "x$j"; then
18473 apr_addto_duplicate="1"
18477 if test $apr_addto_duplicate = "0"; then
18478 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
18479 LDFLAGS="$LDFLAGS $i"
18485 OBJECTS_PLATFORM='$(OBJECTS_aix)'
18489 if test "x$CPPFLAGS" = "x"; then
18490 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DOS2\""
18493 apr_addto_bugger="-DOS2"
18494 for i in $apr_addto_bugger; do
18495 apr_addto_duplicate="0"
18496 for j in $CPPFLAGS; do
18497 if test "x$i" = "x$j"; then
18498 apr_addto_duplicate="1"
18502 if test $apr_addto_duplicate = "0"; then
18503 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
18504 CPPFLAGS="$CPPFLAGS $i"
18510 if test "x$CFLAGS" = "x"; then
18511 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Zmt\""
18514 apr_addto_bugger="-Zmt"
18515 for i in $apr_addto_bugger; do
18516 apr_addto_duplicate="0"
18517 for j in $CFLAGS; do
18518 if test "x$i" = "x$j"; then
18519 apr_addto_duplicate="1"
18523 if test $apr_addto_duplicate = "0"; then
18524 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
18525 CFLAGS="$CFLAGS $i"
18530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random in -lbsd" >&5
18531 $as_echo_n "checking for random in -lbsd... " >&6; }
18532 if ${ac_cv_lib_bsd_random+:} false; then :
18533 $as_echo_n "(cached) " >&6
18535 ac_check_lib_save_LIBS=$LIBS
18537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18538 /* end confdefs.h. */
18540 /* Override any GCC internal prototype to avoid an error.
18541 Use char because int might match the return type of a GCC
18542 builtin and then its argument prototype would still apply. */
18555 if ac_fn_c_try_link "$LINENO"; then :
18556 ac_cv_lib_bsd_random=yes
18558 ac_cv_lib_bsd_random=no
18560 rm -f core conftest.err conftest.$ac_objext \
18561 conftest$ac_exeext conftest.$ac_ext
18562 LIBS=$ac_check_lib_save_LIBS
18564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_random" >&5
18565 $as_echo "$ac_cv_lib_bsd_random" >&6; }
18566 if test "x$ac_cv_lib_bsd_random" = xyes; then :
18567 cat >>confdefs.h <<_ACEOF
18568 #define HAVE_LIBBSD 1
18576 enable_threads="system_threads"
18579 proc_mutex_is_global=1
18580 OBJECTS_PLATFORM='$(OBJECTS_os2)'
18585 if test "x$CPPFLAGS" = "x"; then
18586 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DBEOS\""
18589 apr_addto_bugger="-DBEOS"
18590 for i in $apr_addto_bugger; do
18591 apr_addto_duplicate="0"
18592 for j in $CPPFLAGS; do
18593 if test "x$i" = "x$j"; then
18594 apr_addto_duplicate="1"
18598 if test $apr_addto_duplicate = "0"; then
18599 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
18600 CPPFLAGS="$CPPFLAGS $i"
18605 enable_threads="system_threads"
18606 native_mmap_emul="1"
18608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BONE_VERSION in sys/socket.h" >&5
18609 $as_echo_n "checking for BONE_VERSION in sys/socket.h... " >&6; }
18610 if ${ac_cv_define_BONE_VERSION+:} false; then :
18611 $as_echo_n "(cached) " >&6
18614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18615 /* end confdefs.h. */
18617 #include <sys/socket.h>
18618 #ifdef BONE_VERSION
18623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18624 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
18625 ac_cv_define_BONE_VERSION=yes
18627 ac_cv_define_BONE_VERSION=no
18633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_BONE_VERSION" >&5
18634 $as_echo "$ac_cv_define_BONE_VERSION" >&6; }
18635 if test "$ac_cv_define_BONE_VERSION" = "yes"; then
18637 $as_echo "#define HAVE_BONE_VERSION 1" >>confdefs.h
18643 proc_mutex_is_global=1
18644 OBJECTS_PLATFORM='$(OBJECTS_beos)'
18656 OBJECTS_PLATFORM='$(OBJECTS_os390)'
18665 enable_threads="system_threads"
18668 proc_mutex_is_global=1
18669 OBJECTS_PLATFORM='$(OBJECTS_win32)'
18673 enable_threads="no"
18677 enable_threads="no"
18689 # Check whether LFS has explicitly been disabled
18690 # Check whether --enable-lfs was given.
18691 if test "${enable_lfs+set}" = set; then :
18692 enableval=$enable_lfs; apr_lfs_choice=$enableval
18698 if test "$apr_lfs_choice" = "yes"; then
18699 # Check whether the transitional LFS API is sufficient
18700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable -D_LARGEFILE64_SOURCE" >&5
18701 $as_echo_n "checking whether to enable -D_LARGEFILE64_SOURCE... " >&6; }
18702 if ${apr_cv_use_lfs64+:} false; then :
18703 $as_echo_n "(cached) " >&6
18706 apr_save_CPPFLAGS=$CPPFLAGS
18707 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
18708 if test "$cross_compiling" = yes; then :
18709 apr_cv_use_lfs64=no
18711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18712 /* end confdefs.h. */
18714 #include <sys/types.h>
18715 #include <sys/stat.h>
18717 #include <stdlib.h>
18719 #include <unistd.h>
18725 off64_t off = 4242;
18727 if (sizeof(off64_t) != 8 || sizeof(off_t) != 4)
18729 if ((fd = open("conftest.lfs", O_LARGEFILE|O_CREAT|O_WRONLY, 0644)) < 0)
18731 if (ftruncate64(fd, off) != 0)
18733 else if (fstat64(fd, &st) != 0 || st.st_size != off)
18735 else if (lseek64(fd, off, SEEK_SET) != off)
18737 else if (close(fd) != 0)
18739 else if (lstat64("conftest.lfs", &st) != 0 || st.st_size != off)
18741 else if (stat64("conftest.lfs", &st) != 0 || st.st_size != off)
18743 unlink("conftest.lfs");
18748 if ac_fn_c_try_run "$LINENO"; then :
18749 apr_cv_use_lfs64=yes
18751 apr_cv_use_lfs64=no
18753 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18754 conftest.$ac_objext conftest.beam conftest.$ac_ext
18757 CPPFLAGS=$apr_save_CPPFLAGS
18759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_use_lfs64" >&5
18760 $as_echo "$apr_cv_use_lfs64" >&6; }
18761 if test "$apr_cv_use_lfs64" = "yes"; then
18763 if test "x$CPPFLAGS" = "x"; then
18764 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_LARGEFILE64_SOURCE\""
18765 CPPFLAGS="-D_LARGEFILE64_SOURCE"
18767 apr_addto_bugger="-D_LARGEFILE64_SOURCE"
18768 for i in $apr_addto_bugger; do
18769 apr_addto_duplicate="0"
18770 for j in $CPPFLAGS; do
18771 if test "x$i" = "x$j"; then
18772 apr_addto_duplicate="1"
18776 if test $apr_addto_duplicate = "0"; then
18777 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
18778 CPPFLAGS="$CPPFLAGS $i"
18786 # Check whether --enable-nonportable-atomics was given.
18787 if test "${enable_nonportable_atomics+set}" = set; then :
18788 enableval=$enable_nonportable_atomics; if test $enableval = yes; then
18789 force_generic_atomics=no
18791 force_generic_atomics=yes
18796 i[456]86) force_generic_atomics=yes ;;
18797 *) force_generic_atomics=no ;;
18803 if test $force_generic_atomics = yes; then
18805 $as_echo "#define USE_ATOMICS_GENERIC 1" >>confdefs.h
18813 # For some platforms we need a version string which allows easy numeric
18817 if test -x /sbin/sysctl; then
18818 os_version=`/sbin/sysctl -n kern.osreldate`
18824 os_major=`uname -r | sed -e 's/\([1-9][0-9]*\)\..*/\1/'`
18825 os_minor=`uname -r | sed -e 's/[1-9][0-9]*\.\([0-9]\+\)\..*/\1/'`
18826 if test $os_major -lt 2 -o \( $os_major -eq 2 -a $os_minor -lt 4 \); then
18827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Configured for pre-2.4 Linux $os_major.$os_minor" >&5
18828 $as_echo "$as_me: WARNING: Configured for pre-2.4 Linux $os_major.$os_minor" >&2;}
18832 { $as_echo "$as_me:${as_lineno-$LINENO}: Configured for Linux $os_major.$os_minor" >&5
18833 $as_echo "$as_me: Configured for Linux $os_major.$os_minor" >&6;}
18837 os_version=`uname -r | sed -e 's/\.//g'`
18840 os_version=OS_VERSION_IS_NOT_SET
18844 echo "${nl}Checking for libraries..."
18849 if test "x$LIBS" = "x"; then
18850 test "x$silent" != "xyes" && echo " setting LIBS to \"-lshell32 -ladvapi32 -lws2_32 -lrpcrt4 -lmswsock\""
18851 LIBS="-lshell32 -ladvapi32 -lws2_32 -lrpcrt4 -lmswsock"
18853 apr_addto_bugger="-lshell32 -ladvapi32 -lws2_32 -lrpcrt4 -lmswsock"
18854 for i in $apr_addto_bugger; do
18855 apr_addto_duplicate="0"
18857 if test "x$i" = "x$j"; then
18858 apr_addto_duplicate="1"
18862 if test $apr_addto_duplicate = "0"; then
18863 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
18869 ac_cv_func_CreateFileMapping=yes
18872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
18873 $as_echo_n "checking for library containing gethostbyname... " >&6; }
18874 if ${ac_cv_search_gethostbyname+:} false; then :
18875 $as_echo_n "(cached) " >&6
18877 ac_func_search_save_LIBS=$LIBS
18878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18879 /* end confdefs.h. */
18881 /* Override any GCC internal prototype to avoid an error.
18882 Use char because int might match the return type of a GCC
18883 builtin and then its argument prototype would still apply. */
18887 char gethostbyname ();
18891 return gethostbyname ();
18896 for ac_lib in '' nsl; do
18897 if test -z "$ac_lib"; then
18898 ac_res="none required"
18901 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18903 if ac_fn_c_try_link "$LINENO"; then :
18904 ac_cv_search_gethostbyname=$ac_res
18906 rm -f core conftest.err conftest.$ac_objext \
18908 if ${ac_cv_search_gethostbyname+:} false; then :
18912 if ${ac_cv_search_gethostbyname+:} false; then :
18915 ac_cv_search_gethostbyname=no
18917 rm conftest.$ac_ext
18918 LIBS=$ac_func_search_save_LIBS
18920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
18921 $as_echo "$ac_cv_search_gethostbyname" >&6; }
18922 ac_res=$ac_cv_search_gethostbyname
18923 if test "$ac_res" != no; then :
18924 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostname" >&5
18929 $as_echo_n "checking for library containing gethostname... " >&6; }
18930 if ${ac_cv_search_gethostname+:} false; then :
18931 $as_echo_n "(cached) " >&6
18933 ac_func_search_save_LIBS=$LIBS
18934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18935 /* end confdefs.h. */
18937 /* Override any GCC internal prototype to avoid an error.
18938 Use char because int might match the return type of a GCC
18939 builtin and then its argument prototype would still apply. */
18943 char gethostname ();
18947 return gethostname ();
18952 for ac_lib in '' nsl; do
18953 if test -z "$ac_lib"; then
18954 ac_res="none required"
18957 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18959 if ac_fn_c_try_link "$LINENO"; then :
18960 ac_cv_search_gethostname=$ac_res
18962 rm -f core conftest.err conftest.$ac_objext \
18964 if ${ac_cv_search_gethostname+:} false; then :
18968 if ${ac_cv_search_gethostname+:} false; then :
18971 ac_cv_search_gethostname=no
18973 rm conftest.$ac_ext
18974 LIBS=$ac_func_search_save_LIBS
18976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostname" >&5
18977 $as_echo "$ac_cv_search_gethostname" >&6; }
18978 ac_res=$ac_cv_search_gethostname
18979 if test "$ac_res" != no; then :
18980 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
18985 $as_echo_n "checking for library containing socket... " >&6; }
18986 if ${ac_cv_search_socket+:} false; then :
18987 $as_echo_n "(cached) " >&6
18989 ac_func_search_save_LIBS=$LIBS
18990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18991 /* end confdefs.h. */
18993 /* Override any GCC internal prototype to avoid an error.
18994 Use char because int might match the return type of a GCC
18995 builtin and then its argument prototype would still apply. */
19008 for ac_lib in '' socket; do
19009 if test -z "$ac_lib"; then
19010 ac_res="none required"
19013 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19015 if ac_fn_c_try_link "$LINENO"; then :
19016 ac_cv_search_socket=$ac_res
19018 rm -f core conftest.err conftest.$ac_objext \
19020 if ${ac_cv_search_socket+:} false; then :
19024 if ${ac_cv_search_socket+:} false; then :
19027 ac_cv_search_socket=no
19029 rm conftest.$ac_ext
19030 LIBS=$ac_func_search_save_LIBS
19032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
19033 $as_echo "$ac_cv_search_socket" >&6; }
19034 ac_res=$ac_cv_search_socket
19035 if test "$ac_res" != no; then :
19036 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
19041 $as_echo_n "checking for library containing crypt... " >&6; }
19042 if ${ac_cv_search_crypt+:} false; then :
19043 $as_echo_n "(cached) " >&6
19045 ac_func_search_save_LIBS=$LIBS
19046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19047 /* end confdefs.h. */
19049 /* Override any GCC internal prototype to avoid an error.
19050 Use char because int might match the return type of a GCC
19051 builtin and then its argument prototype would still apply. */
19064 for ac_lib in '' crypt ufc; do
19065 if test -z "$ac_lib"; then
19066 ac_res="none required"
19069 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19071 if ac_fn_c_try_link "$LINENO"; then :
19072 ac_cv_search_crypt=$ac_res
19074 rm -f core conftest.err conftest.$ac_objext \
19076 if ${ac_cv_search_crypt+:} false; then :
19080 if ${ac_cv_search_crypt+:} false; then :
19083 ac_cv_search_crypt=no
19085 rm conftest.$ac_ext
19086 LIBS=$ac_func_search_save_LIBS
19088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
19089 $as_echo "$ac_cv_search_crypt" >&6; }
19090 ac_res=$ac_cv_search_crypt
19091 if test "$ac_res" != no; then :
19092 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ltruerand" >&5
19097 $as_echo_n "checking for main in -ltruerand... " >&6; }
19098 if ${ac_cv_lib_truerand_main+:} false; then :
19099 $as_echo_n "(cached) " >&6
19101 ac_check_lib_save_LIBS=$LIBS
19102 LIBS="-ltruerand $LIBS"
19103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19104 /* end confdefs.h. */
19115 if ac_fn_c_try_link "$LINENO"; then :
19116 ac_cv_lib_truerand_main=yes
19118 ac_cv_lib_truerand_main=no
19120 rm -f core conftest.err conftest.$ac_objext \
19121 conftest$ac_exeext conftest.$ac_ext
19122 LIBS=$ac_check_lib_save_LIBS
19124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_truerand_main" >&5
19125 $as_echo "$ac_cv_lib_truerand_main" >&6; }
19126 if test "x$ac_cv_lib_truerand_main" = xyes; then :
19127 cat >>confdefs.h <<_ACEOF
19128 #define HAVE_LIBTRUERAND 1
19131 LIBS="-ltruerand $LIBS"
19135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing modf" >&5
19136 $as_echo_n "checking for library containing modf... " >&6; }
19137 if ${ac_cv_search_modf+:} false; then :
19138 $as_echo_n "(cached) " >&6
19140 ac_func_search_save_LIBS=$LIBS
19141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19142 /* end confdefs.h. */
19144 /* Override any GCC internal prototype to avoid an error.
19145 Use char because int might match the return type of a GCC
19146 builtin and then its argument prototype would still apply. */
19159 for ac_lib in '' m; do
19160 if test -z "$ac_lib"; then
19161 ac_res="none required"
19164 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19166 if ac_fn_c_try_link "$LINENO"; then :
19167 ac_cv_search_modf=$ac_res
19169 rm -f core conftest.err conftest.$ac_objext \
19171 if ${ac_cv_search_modf+:} false; then :
19175 if ${ac_cv_search_modf+:} false; then :
19178 ac_cv_search_modf=no
19180 rm conftest.$ac_ext
19181 LIBS=$ac_func_search_save_LIBS
19183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_modf" >&5
19184 $as_echo "$ac_cv_search_modf" >&6; }
19185 ac_res=$ac_cv_search_modf
19186 if test "$ac_res" != no; then :
19187 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19194 echo "${nl}Checking for Threads..."
19196 if test -z "$enable_threads"; then
19197 # Check whether --enable-threads was given.
19198 if test "${enable_threads+set}" = set; then :
19199 enableval=$enable_threads; enable_threads=$enableval
19202 if test "$GCC" = "yes"; then
19203 SAVE_FL="$CPPFLAGS"
19204 CPPFLAGS="$CPPFLAGS -w"
19205 for ac_header in pthread.h
19207 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19208 if test "x$ac_cv_header_pthread_h" = xyes; then :
19209 cat >>confdefs.h <<_ACEOF
19210 #define HAVE_PTHREAD_H 1
19212 enable_threads="pthread"
19214 enable_threads="no"
19219 CPPFLAGS="$SAVE_FL"
19221 for ac_header in pthread.h
19223 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19224 if test "x$ac_cv_header_pthread_h" = xyes; then :
19225 cat >>confdefs.h <<_ACEOF
19226 #define HAVE_PTHREAD_H 1
19228 enable_threads="pthread"
19230 enable_threads="no"
19241 if test "$enable_threads" = "no"; then
19246 if test "$enable_threads" = "pthread"; then
19247 # We have specified pthreads for our threading library, just make sure
19248 # that we have everything we need
19250 apr_pthsv_CFLAGS="$CFLAGS"
19251 apr_pthsv_LIBS="$LIBS"
19255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS needed for pthreads" >&5
19256 $as_echo_n "checking for CFLAGS needed for pthreads... " >&6; }
19257 if ${apr_cv_pthreads_cflags+:} false; then :
19258 $as_echo_n "(cached) " >&6
19260 apr_ptc_cflags=$CFLAGS
19261 for flag in none -kthread -pthread -pthreads -mt -mthreads -Kthread -threads; do
19262 CFLAGS=$apr_ptc_cflags
19263 test "x$flag" != "xnone" && CFLAGS="$CFLAGS $flag"
19265 if test "$cross_compiling" = yes; then :
19268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19269 /* end confdefs.h. */
19271 #include <pthread.h>
19272 #include <stddef.h>
19274 void *thread_routine(void *data) {
19280 pthread_mutexattr_t mattr;
19281 pthread_once_t once_init = PTHREAD_ONCE_INIT;
19283 pthread_mutexattr_init(&mattr);
19284 return pthread_create(&thd, NULL, thread_routine, &data);
19287 if ac_fn_c_try_run "$LINENO"; then :
19292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19293 conftest.$ac_objext conftest.beam conftest.$ac_ext
19297 if test $apr_p_t_r = yes; then
19299 apr_cv_pthreads_cflags="$flag"
19306 CFLAGS=$apr_ptc_cflags
19309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_pthreads_cflags" >&5
19310 $as_echo "$apr_cv_pthreads_cflags" >&6; }
19312 if test -n "$apr_cv_pthreads_cflags"; then
19313 pthreads_working=yes
19314 if test "x$apr_cv_pthreads_cflags" != "xnone"; then
19316 if test "x$CFLAGS" = "x"; then
19317 test "x$silent" != "xyes" && echo " setting CFLAGS to \"$apr_cv_pthreads_cflags\""
19318 CFLAGS="$apr_cv_pthreads_cflags"
19320 apr_addto_bugger="$apr_cv_pthreads_cflags"
19321 for i in $apr_addto_bugger; do
19322 apr_addto_duplicate="0"
19323 for j in $CFLAGS; do
19324 if test "x$i" = "x$j"; then
19325 apr_addto_duplicate="1"
19329 if test $apr_addto_duplicate = "0"; then
19330 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
19331 CFLAGS="$CFLAGS $i"
19339 # The CFLAGS may or may not be sufficient to ensure that libapr
19340 # depends on the pthreads library: some versions of libtool
19341 # drop -pthread when passed on the link line; some versions of
19342 # gcc ignore -pthread when linking a shared object. So always
19343 # try and add the relevant library to LIBS too.
19345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS needed for pthreads" >&5
19346 $as_echo_n "checking for LIBS needed for pthreads... " >&6; }
19347 if ${apr_cv_pthreads_lib+:} false; then :
19348 $as_echo_n "(cached) " >&6
19352 for lib in -lpthread -lpthreads -lc_r; do
19353 LIBS="$apr_ptc_libs $lib"
19355 if test "$cross_compiling" = yes; then :
19358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19359 /* end confdefs.h. */
19361 #include <pthread.h>
19362 #include <stddef.h>
19364 void *thread_routine(void *data) {
19370 pthread_mutexattr_t mattr;
19371 pthread_once_t once_init = PTHREAD_ONCE_INIT;
19373 pthread_mutexattr_init(&mattr);
19374 return pthread_create(&thd, NULL, thread_routine, &data);
19377 if ac_fn_c_try_run "$LINENO"; then :
19382 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19383 conftest.$ac_objext conftest.beam conftest.$ac_ext
19387 if test $apr_p_t_r = yes; then
19389 apr_cv_pthreads_lib=$lib
19399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_pthreads_lib" >&5
19400 $as_echo "$apr_cv_pthreads_lib" >&6; }
19402 if test -n "$apr_cv_pthreads_lib"; then
19403 pthreads_working=yes
19405 if test "x$LIBS" = "x"; then
19406 test "x$silent" != "xyes" && echo " setting LIBS to \"$apr_cv_pthreads_lib\""
19407 LIBS="$apr_cv_pthreads_lib"
19409 apr_addto_bugger="$apr_cv_pthreads_lib"
19410 for i in $apr_addto_bugger; do
19411 apr_addto_duplicate="0"
19413 if test "x$i" = "x$j"; then
19414 apr_addto_duplicate="1"
19418 if test $apr_addto_duplicate = "0"; then
19419 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
19427 if test "$pthreads_working" = "yes"; then
19428 threads_result="POSIX Threads found"
19430 threads_result="POSIX Threads not found"
19434 if test "$GCC" = "yes"; then
19435 SAVE_FL="$CPPFLAGS"
19436 CPPFLAGS="$CPPFLAGS -w"
19437 for ac_header in pthread.h
19439 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19440 if test "x$ac_cv_header_pthread_h" = xyes; then :
19441 cat >>confdefs.h <<_ACEOF
19442 #define HAVE_PTHREAD_H 1
19454 CFLAGS="$apr_pthsv_CFLAGS"
19455 LIBS="$apr_pthsv_LIBS"
19461 CPPFLAGS="$SAVE_FL"
19463 for ac_header in pthread.h
19465 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19466 if test "x$ac_cv_header_pthread_h" = xyes; then :
19467 cat >>confdefs.h <<_ACEOF
19468 #define HAVE_PTHREAD_H 1
19480 CFLAGS="$apr_pthsv_CFLAGS"
19481 LIBS="$apr_pthsv_LIBS"
19489 elif test "$enable_threads" = "system_threads"; then
19494 # We basically specified that we wanted threads, but not how to implement
19495 # them. In this case, just look for pthreads. In the future, we can check
19496 # for other threading libraries as well.
19498 apr_pthsv_CFLAGS="$CFLAGS"
19499 apr_pthsv_LIBS="$LIBS"
19503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS needed for pthreads" >&5
19504 $as_echo_n "checking for CFLAGS needed for pthreads... " >&6; }
19505 if ${apr_cv_pthreads_cflags+:} false; then :
19506 $as_echo_n "(cached) " >&6
19508 apr_ptc_cflags=$CFLAGS
19509 for flag in none -kthread -pthread -pthreads -mt -mthreads -Kthread -threads; do
19510 CFLAGS=$apr_ptc_cflags
19511 test "x$flag" != "xnone" && CFLAGS="$CFLAGS $flag"
19513 if test "$cross_compiling" = yes; then :
19516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19517 /* end confdefs.h. */
19519 #include <pthread.h>
19520 #include <stddef.h>
19522 void *thread_routine(void *data) {
19528 pthread_mutexattr_t mattr;
19529 pthread_once_t once_init = PTHREAD_ONCE_INIT;
19531 pthread_mutexattr_init(&mattr);
19532 return pthread_create(&thd, NULL, thread_routine, &data);
19535 if ac_fn_c_try_run "$LINENO"; then :
19540 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19541 conftest.$ac_objext conftest.beam conftest.$ac_ext
19545 if test $apr_p_t_r = yes; then
19547 apr_cv_pthreads_cflags="$flag"
19554 CFLAGS=$apr_ptc_cflags
19557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_pthreads_cflags" >&5
19558 $as_echo "$apr_cv_pthreads_cflags" >&6; }
19560 if test -n "$apr_cv_pthreads_cflags"; then
19561 pthreads_working=yes
19562 if test "x$apr_cv_pthreads_cflags" != "xnone"; then
19564 if test "x$CFLAGS" = "x"; then
19565 test "x$silent" != "xyes" && echo " setting CFLAGS to \"$apr_cv_pthreads_cflags\""
19566 CFLAGS="$apr_cv_pthreads_cflags"
19568 apr_addto_bugger="$apr_cv_pthreads_cflags"
19569 for i in $apr_addto_bugger; do
19570 apr_addto_duplicate="0"
19571 for j in $CFLAGS; do
19572 if test "x$i" = "x$j"; then
19573 apr_addto_duplicate="1"
19577 if test $apr_addto_duplicate = "0"; then
19578 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
19579 CFLAGS="$CFLAGS $i"
19587 # The CFLAGS may or may not be sufficient to ensure that libapr
19588 # depends on the pthreads library: some versions of libtool
19589 # drop -pthread when passed on the link line; some versions of
19590 # gcc ignore -pthread when linking a shared object. So always
19591 # try and add the relevant library to LIBS too.
19593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS needed for pthreads" >&5
19594 $as_echo_n "checking for LIBS needed for pthreads... " >&6; }
19595 if ${apr_cv_pthreads_lib+:} false; then :
19596 $as_echo_n "(cached) " >&6
19600 for lib in -lpthread -lpthreads -lc_r; do
19601 LIBS="$apr_ptc_libs $lib"
19603 if test "$cross_compiling" = yes; then :
19606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19607 /* end confdefs.h. */
19609 #include <pthread.h>
19610 #include <stddef.h>
19612 void *thread_routine(void *data) {
19618 pthread_mutexattr_t mattr;
19619 pthread_once_t once_init = PTHREAD_ONCE_INIT;
19621 pthread_mutexattr_init(&mattr);
19622 return pthread_create(&thd, NULL, thread_routine, &data);
19625 if ac_fn_c_try_run "$LINENO"; then :
19630 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19631 conftest.$ac_objext conftest.beam conftest.$ac_ext
19635 if test $apr_p_t_r = yes; then
19637 apr_cv_pthreads_lib=$lib
19647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_pthreads_lib" >&5
19648 $as_echo "$apr_cv_pthreads_lib" >&6; }
19650 if test -n "$apr_cv_pthreads_lib"; then
19651 pthreads_working=yes
19653 if test "x$LIBS" = "x"; then
19654 test "x$silent" != "xyes" && echo " setting LIBS to \"$apr_cv_pthreads_lib\""
19655 LIBS="$apr_cv_pthreads_lib"
19657 apr_addto_bugger="$apr_cv_pthreads_lib"
19658 for i in $apr_addto_bugger; do
19659 apr_addto_duplicate="0"
19661 if test "x$i" = "x$j"; then
19662 apr_addto_duplicate="1"
19666 if test $apr_addto_duplicate = "0"; then
19667 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
19675 if test "$pthreads_working" = "yes"; then
19676 threads_result="POSIX Threads found"
19678 threads_result="POSIX Threads not found"
19682 if test "$GCC" = "yes"; then
19683 SAVE_FL="$CPPFLAGS"
19684 CPPFLAGS="$CPPFLAGS -w"
19685 for ac_header in pthread.h
19687 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19688 if test "x$ac_cv_header_pthread_h" = xyes; then :
19689 cat >>confdefs.h <<_ACEOF
19690 #define HAVE_PTHREAD_H 1
19702 CFLAGS="$apr_pthsv_CFLAGS"
19703 LIBS="$apr_pthsv_LIBS"
19709 CPPFLAGS="$SAVE_FL"
19711 for ac_header in pthread.h
19713 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19714 if test "x$ac_cv_header_pthread_h" = xyes; then :
19715 cat >>confdefs.h <<_ACEOF
19716 #define HAVE_PTHREAD_H 1
19728 CFLAGS="$apr_pthsv_CFLAGS"
19729 LIBS="$apr_pthsv_LIBS"
19738 if test "$pthreadh" = "1"; then
19740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_getspecific takes two arguments" >&5
19741 $as_echo_n "checking whether pthread_getspecific takes two arguments... " >&6; }
19742 if ${ac_cv_pthread_getspecific_two_args+:} false; then :
19743 $as_echo_n "(cached) " >&6
19746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19747 /* end confdefs.h. */
19749 #include <pthread.h>
19757 pthread_getspecific(key,&tmp);
19763 if ac_fn_c_try_compile "$LINENO"; then :
19765 ac_cv_pthread_getspecific_two_args=yes
19769 ac_cv_pthread_getspecific_two_args=no
19772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_getspecific_two_args" >&5
19776 $as_echo "$ac_cv_pthread_getspecific_two_args" >&6; }
19778 if test "$ac_cv_pthread_getspecific_two_args" = "yes"; then
19780 $as_echo "#define PTHREAD_GETSPECIFIC_TAKES_TWO_ARGS 1" >>confdefs.h
19785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_attr_getdetachstate takes one argument" >&5
19786 $as_echo_n "checking whether pthread_attr_getdetachstate takes one argument... " >&6; }
19787 if ${ac_cv_pthread_attr_getdetachstate_one_arg+:} false; then :
19788 $as_echo_n "(cached) " >&6
19791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19792 /* end confdefs.h. */
19794 #include <pthread.h>
19800 pthread_attr_t *attr;
19801 pthread_attr_getdetachstate(attr);
19807 if ac_fn_c_try_compile "$LINENO"; then :
19809 ac_cv_pthread_attr_getdetachstate_one_arg=yes
19813 ac_cv_pthread_attr_getdetachstate_one_arg=no
19816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_attr_getdetachstate_one_arg" >&5
19820 $as_echo "$ac_cv_pthread_attr_getdetachstate_one_arg" >&6; }
19822 if test "$ac_cv_pthread_attr_getdetachstate_one_arg" = "yes"; then
19824 $as_echo "#define PTHREAD_ATTR_GETDETACHSTATE_TAKES_ONE_ARG 1" >>confdefs.h
19829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutex support" >&5
19830 $as_echo_n "checking for recursive mutex support... " >&6; }
19831 if ${apr_cv_mutex_recursive+:} false; then :
19832 $as_echo_n "(cached) " >&6
19834 if test "$cross_compiling" = yes; then :
19835 apr_cv_mutex_recursive=no
19837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19838 /* end confdefs.h. */
19839 #include <sys/types.h>
19840 #include <pthread.h>
19841 #include <stdlib.h>
19844 pthread_mutexattr_t attr;
19847 exit (pthread_mutexattr_init(&attr)
19848 || pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE)
19849 || pthread_mutex_init(&m, &attr));
19852 if ac_fn_c_try_run "$LINENO"; then :
19853 apr_cv_mutex_recursive=yes
19855 apr_cv_mutex_recursive=no
19857 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19858 conftest.$ac_objext conftest.beam conftest.$ac_ext
19862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_mutex_recursive" >&5
19863 $as_echo "$apr_cv_mutex_recursive" >&6; }
19865 if test "$apr_cv_mutex_recursive" = "yes"; then
19867 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
19871 for ac_func in pthread_key_delete pthread_rwlock_init \
19872 pthread_attr_setguardsize pthread_yield
19874 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19875 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19876 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19877 cat >>confdefs.h <<_ACEOF
19878 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19885 if test "$ac_cv_func_pthread_rwlock_init" = "yes"; then
19886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_t" >&5
19887 $as_echo_n "checking for pthread_rwlock_t... " >&6; }
19888 if ${apr_cv_type_rwlock_t+:} false; then :
19889 $as_echo_n "(cached) " >&6
19891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19892 /* end confdefs.h. */
19893 #include <sys/types.h>
19894 #include <pthread.h>
19898 pthread_rwlock_t *rwlock;
19903 if ac_fn_c_try_compile "$LINENO"; then :
19904 apr_cv_type_rwlock_t=yes
19906 apr_cv_type_rwlock_t=no
19908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_type_rwlock_t" >&5
19911 $as_echo "$apr_cv_type_rwlock_t" >&6; }
19912 if test "$apr_cv_type_rwlock_t" = "yes"; then
19914 $as_echo "#define HAVE_PTHREAD_RWLOCKS 1" >>confdefs.h
19919 if test "$ac_cv_func_pthread_yield" = "no"; then
19920 for ac_header in sched.h
19922 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
19923 if test "x$ac_cv_header_sched_h" = xyes; then :
19924 cat >>confdefs.h <<_ACEOF
19925 #define HAVE_SCHED_H 1
19932 for ac_func in sched_yield
19934 ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
19935 if test "x$ac_cv_func_sched_yield" = xyes; then :
19936 cat >>confdefs.h <<_ACEOF
19937 #define HAVE_SCHED_YIELD 1
19947 ac_cv_define_READDIR_IS_THREAD_SAFE=no
19948 ac_cv_define_GETHOSTBYNAME_IS_THREAD_SAFE=no
19949 ac_cv_define_GETHOSTBYADDR_IS_THREAD_SAFE=no
19950 ac_cv_define_GETSERVBYNAME_IS_THREAD_SAFE=no
19951 if test "$threads" = "1"; then
19952 echo "APR will use threads"
19953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readdir in -lc_r" >&5
19954 $as_echo_n "checking for readdir in -lc_r... " >&6; }
19955 if ${ac_cv_lib_c_r_readdir+:} false; then :
19956 $as_echo_n "(cached) " >&6
19958 ac_check_lib_save_LIBS=$LIBS
19960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19961 /* end confdefs.h. */
19963 /* Override any GCC internal prototype to avoid an error.
19964 Use char because int might match the return type of a GCC
19965 builtin and then its argument prototype would still apply. */
19978 if ac_fn_c_try_link "$LINENO"; then :
19979 ac_cv_lib_c_r_readdir=yes
19981 ac_cv_lib_c_r_readdir=no
19983 rm -f core conftest.err conftest.$ac_objext \
19984 conftest$ac_exeext conftest.$ac_ext
19985 LIBS=$ac_check_lib_save_LIBS
19987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_readdir" >&5
19988 $as_echo "$ac_cv_lib_c_r_readdir" >&6; }
19989 if test "x$ac_cv_lib_c_r_readdir" = xyes; then :
19991 $as_echo "#define READDIR_IS_THREAD_SAFE 1" >>confdefs.h
19995 if test "x$apr_gethostbyname_is_thread_safe" = "x"; then
19996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lc_r" >&5
19997 $as_echo_n "checking for gethostbyname in -lc_r... " >&6; }
19998 if ${ac_cv_lib_c_r_gethostbyname+:} false; then :
19999 $as_echo_n "(cached) " >&6
20001 ac_check_lib_save_LIBS=$LIBS
20003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20004 /* end confdefs.h. */
20006 /* Override any GCC internal prototype to avoid an error.
20007 Use char because int might match the return type of a GCC
20008 builtin and then its argument prototype would still apply. */
20012 char gethostbyname ();
20016 return gethostbyname ();
20021 if ac_fn_c_try_link "$LINENO"; then :
20022 ac_cv_lib_c_r_gethostbyname=yes
20024 ac_cv_lib_c_r_gethostbyname=no
20026 rm -f core conftest.err conftest.$ac_objext \
20027 conftest$ac_exeext conftest.$ac_ext
20028 LIBS=$ac_check_lib_save_LIBS
20030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_gethostbyname" >&5
20031 $as_echo "$ac_cv_lib_c_r_gethostbyname" >&6; }
20032 if test "x$ac_cv_lib_c_r_gethostbyname" = xyes; then :
20033 apr_gethostbyname_is_thread_safe=yes
20037 if test "$apr_gethostbyname_is_thread_safe" = "yes"; then
20039 $as_echo "#define GETHOSTBYNAME_IS_THREAD_SAFE 1" >>confdefs.h
20042 if test "x$apr_gethostbyaddr_is_thread_safe" = "x"; then
20043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr in -lc_r" >&5
20044 $as_echo_n "checking for gethostbyaddr in -lc_r... " >&6; }
20045 if ${ac_cv_lib_c_r_gethostbyaddr+:} false; then :
20046 $as_echo_n "(cached) " >&6
20048 ac_check_lib_save_LIBS=$LIBS
20050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20051 /* end confdefs.h. */
20053 /* Override any GCC internal prototype to avoid an error.
20054 Use char because int might match the return type of a GCC
20055 builtin and then its argument prototype would still apply. */
20059 char gethostbyaddr ();
20063 return gethostbyaddr ();
20068 if ac_fn_c_try_link "$LINENO"; then :
20069 ac_cv_lib_c_r_gethostbyaddr=yes
20071 ac_cv_lib_c_r_gethostbyaddr=no
20073 rm -f core conftest.err conftest.$ac_objext \
20074 conftest$ac_exeext conftest.$ac_ext
20075 LIBS=$ac_check_lib_save_LIBS
20077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_gethostbyaddr" >&5
20078 $as_echo "$ac_cv_lib_c_r_gethostbyaddr" >&6; }
20079 if test "x$ac_cv_lib_c_r_gethostbyaddr" = xyes; then :
20080 apr_gethostbyaddr_is_thread_safe=yes
20084 if test "$apr_gethostbyaddr_is_thread_safe" = "yes"; then
20086 $as_echo "#define GETHOSTBYADDR_IS_THREAD_SAFE 1" >>confdefs.h
20089 if test "x$apr_getservbyname_is_thread_safe" = "x"; then
20090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getservbyname in -lc_r" >&5
20091 $as_echo_n "checking for getservbyname in -lc_r... " >&6; }
20092 if ${ac_cv_lib_c_r_getservbyname+:} false; then :
20093 $as_echo_n "(cached) " >&6
20095 ac_check_lib_save_LIBS=$LIBS
20097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20098 /* end confdefs.h. */
20100 /* Override any GCC internal prototype to avoid an error.
20101 Use char because int might match the return type of a GCC
20102 builtin and then its argument prototype would still apply. */
20106 char getservbyname ();
20110 return getservbyname ();
20115 if ac_fn_c_try_link "$LINENO"; then :
20116 ac_cv_lib_c_r_getservbyname=yes
20118 ac_cv_lib_c_r_getservbyname=no
20120 rm -f core conftest.err conftest.$ac_objext \
20121 conftest$ac_exeext conftest.$ac_ext
20122 LIBS=$ac_check_lib_save_LIBS
20124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_getservbyname" >&5
20125 $as_echo "$ac_cv_lib_c_r_getservbyname" >&6; }
20126 if test "x$ac_cv_lib_c_r_getservbyname" = xyes; then :
20127 apr_getservbyname_is_thread_safe=yes
20131 if test "$apr_getservbyname_is_thread_safe" = "yes"; then
20133 $as_echo "#define GETSERVBYNAME_IS_THREAD_SAFE 1" >>confdefs.h
20136 for ac_func in gethostbyname_r gethostbyaddr_r getservbyname_r
20138 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20139 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20140 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20141 cat >>confdefs.h <<_ACEOF
20142 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20149 echo "APR will be non-threaded"
20153 # Check whether --with-efence was given.
20154 if test "${with_efence+set}" = set; then :
20155 withval=$with_efence; apr_efence_dir="$withval"
20156 if test "$apr_efence_dir" != "yes"; then
20158 if test "x$LDFLAGS" = "x"; then
20159 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-L$apr_efence_dir/lib\""
20160 LDFLAGS="-L$apr_efence_dir/lib"
20162 apr_addto_bugger="-L$apr_efence_dir/lib"
20163 for i in $apr_addto_bugger; do
20164 apr_addto_duplicate="0"
20165 for j in $LDFLAGS; do
20166 if test "x$i" = "x$j"; then
20167 apr_addto_duplicate="1"
20171 if test $apr_addto_duplicate = "0"; then
20172 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
20173 LDFLAGS="$LDFLAGS $i"
20178 if test "x$apr_platform_runtime_link_flag" != "x"; then
20180 if test "x$LDFLAGS" = "x"; then
20181 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$apr_platform_runtime_link_flag$apr_efence_dir/lib\""
20182 LDFLAGS="$apr_platform_runtime_link_flag$apr_efence_dir/lib"
20184 apr_addto_bugger="$apr_platform_runtime_link_flag$apr_efence_dir/lib"
20185 for i in $apr_addto_bugger; do
20186 apr_addto_duplicate="0"
20187 for j in $LDFLAGS; do
20188 if test "x$i" = "x$j"; then
20189 apr_addto_duplicate="1"
20193 if test $apr_addto_duplicate = "0"; then
20194 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
20195 LDFLAGS="$LDFLAGS $i"
20202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc in -lefence" >&5
20203 $as_echo_n "checking for malloc in -lefence... " >&6; }
20204 if ${ac_cv_lib_efence_malloc+:} false; then :
20205 $as_echo_n "(cached) " >&6
20207 ac_check_lib_save_LIBS=$LIBS
20208 LIBS="-lefence $LIBS"
20209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20210 /* end confdefs.h. */
20212 /* Override any GCC internal prototype to avoid an error.
20213 Use char because int might match the return type of a GCC
20214 builtin and then its argument prototype would still apply. */
20227 if ac_fn_c_try_link "$LINENO"; then :
20228 ac_cv_lib_efence_malloc=yes
20230 ac_cv_lib_efence_malloc=no
20232 rm -f core conftest.err conftest.$ac_objext \
20233 conftest$ac_exeext conftest.$ac_ext
20234 LIBS=$ac_check_lib_save_LIBS
20236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efence_malloc" >&5
20237 $as_echo "$ac_cv_lib_efence_malloc" >&6; }
20238 if test "x$ac_cv_lib_efence_malloc" = xyes; then :
20240 if test "x$LIBS" = "x"; then
20241 test "x$silent" != "xyes" && echo " setting LIBS to \"-lefence\""
20244 apr_addto_bugger="-lefence"
20245 for i in $apr_addto_bugger; do
20246 apr_addto_duplicate="0"
20248 if test "x$i" = "x$j"; then
20249 apr_addto_duplicate="1"
20253 if test $apr_addto_duplicate = "0"; then
20254 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
20261 as_fn_error $? "Electric Fence requested but not detected" "$LINENO" 5
20268 for ac_func in sigsuspend
20270 ac_fn_c_check_func "$LINENO" "sigsuspend" "ac_cv_func_sigsuspend"
20271 if test "x$ac_cv_func_sigsuspend" = xyes; then :
20272 cat >>confdefs.h <<_ACEOF
20273 #define HAVE_SIGSUSPEND 1
20275 have_sigsuspend="1"
20277 have_sigsuspend="0"
20281 for ac_func in sigwait
20283 ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait"
20284 if test "x$ac_cv_func_sigwait" = xyes; then :
20285 cat >>confdefs.h <<_ACEOF
20286 #define HAVE_SIGWAIT 1
20304 for ac_func in poll kqueue port_create
20306 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20307 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20308 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20309 cat >>confdefs.h <<_ACEOF
20310 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20317 # Check for the Linux epoll interface; epoll* may be available in libc
20318 # but return ENOSYS on a pre-2.6 kernel, so do a run-time check.
20319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll support" >&5
20320 $as_echo_n "checking for epoll support... " >&6; }
20321 if ${apr_cv_epoll+:} false; then :
20322 $as_echo_n "(cached) " >&6
20324 if test "$cross_compiling" = yes; then :
20327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20328 /* end confdefs.h. */
20330 #include <sys/epoll.h>
20331 #include <unistd.h>
20335 return epoll_create(5) == -1;
20338 if ac_fn_c_try_run "$LINENO"; then :
20343 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20344 conftest.$ac_objext conftest.beam conftest.$ac_ext
20348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_epoll" >&5
20349 $as_echo "$apr_cv_epoll" >&6; }
20351 if test "$apr_cv_epoll" = "yes"; then
20353 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
20357 # test for epoll_create1
20358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll_create1 support" >&5
20359 $as_echo_n "checking for epoll_create1 support... " >&6; }
20360 if ${apr_cv_epoll_create1+:} false; then :
20361 $as_echo_n "(cached) " >&6
20363 if test "$cross_compiling" = yes; then :
20364 apr_cv_epoll_create1=no
20366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20367 /* end confdefs.h. */
20369 #include <sys/epoll.h>
20370 #include <unistd.h>
20374 return epoll_create1(0) == -1;
20377 if ac_fn_c_try_run "$LINENO"; then :
20378 apr_cv_epoll_create1=yes
20380 apr_cv_epoll_create1=no
20382 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20383 conftest.$ac_objext conftest.beam conftest.$ac_ext
20387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_epoll_create1" >&5
20388 $as_echo "$apr_cv_epoll_create1" >&6; }
20390 if test "$apr_cv_epoll_create1" = "yes"; then
20392 $as_echo "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h
20397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dup3 support" >&5
20398 $as_echo_n "checking for dup3 support... " >&6; }
20399 if ${apr_cv_dup3+:} false; then :
20400 $as_echo_n "(cached) " >&6
20402 if test "$cross_compiling" = yes; then :
20405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20406 /* end confdefs.h. */
20408 #include <unistd.h>
20412 return dup3(STDOUT_FILENO, STDERR_FILENO, 0) == -1;
20415 if ac_fn_c_try_run "$LINENO"; then :
20420 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20421 conftest.$ac_objext conftest.beam conftest.$ac_ext
20425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_dup3" >&5
20426 $as_echo "$apr_cv_dup3" >&6; }
20428 if test "$apr_cv_dup3" = "yes"; then
20430 $as_echo "#define HAVE_DUP3 1" >>confdefs.h
20434 # Test for accept4(). Create a non-blocking socket, bind it to
20435 # an unspecified port & address (kernel picks), and attempt to
20436 # call accept4() on it. If the syscall is wired up (i.e. the
20437 # kernel is new enough), it should return EAGAIN.
20438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for accept4 support" >&5
20439 $as_echo_n "checking for accept4 support... " >&6; }
20440 if ${apr_cv_accept4+:} false; then :
20441 $as_echo_n "(cached) " >&6
20443 if test "$cross_compiling" = yes; then :
20446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20447 /* end confdefs.h. */
20449 #include <sys/types.h>
20450 #include <sys/socket.h>
20451 #include <sys/wait.h>
20452 #include <netinet/in.h>
20453 #include <netinet/tcp.h>
20455 #include <string.h>
20456 #include <unistd.h>
20459 int main(int argc, char **argv)
20462 struct sockaddr_in sin;
20464 if ((fd = socket(AF_INET, SOCK_STREAM, 0)) == -1)
20466 flags = fcntl(fd, F_GETFL);
20467 if (flags == -1 || fcntl(fd, F_SETFL, flags|O_NONBLOCK) == -1)
20470 memset(&sin, 0, sizeof sin);
20471 sin.sin_family = AF_INET;
20473 if (bind(fd, (struct sockaddr *) &sin, sizeof sin) == -1)
20476 if (listen(fd, 5) == -1)
20479 if (accept4(fd, NULL, 0, SOCK_NONBLOCK) == 0
20480 || errno == EAGAIN || errno == EWOULDBLOCK)
20486 if ac_fn_c_try_run "$LINENO"; then :
20491 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20492 conftest.$ac_objext conftest.beam conftest.$ac_ext
20496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_accept4" >&5
20497 $as_echo "$apr_cv_accept4" >&6; }
20499 if test "$apr_cv_accept4" = "yes"; then
20501 $as_echo "#define HAVE_ACCEPT4 1" >>confdefs.h
20505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOCK_CLOEXEC support" >&5
20506 $as_echo_n "checking for SOCK_CLOEXEC support... " >&6; }
20507 if ${apr_cv_sock_cloexec+:} false; then :
20508 $as_echo_n "(cached) " >&6
20510 if test "$cross_compiling" = yes; then :
20511 apr_cv_sock_cloexec=no
20513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20514 /* end confdefs.h. */
20516 #include <sys/types.h>
20517 #include <sys/socket.h>
20521 return socket(AF_INET, SOCK_STREAM|SOCK_CLOEXEC, 0) == -1;
20524 if ac_fn_c_try_run "$LINENO"; then :
20525 apr_cv_sock_cloexec=yes
20527 apr_cv_sock_cloexec=no
20529 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20530 conftest.$ac_objext conftest.beam conftest.$ac_ext
20534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_sock_cloexec" >&5
20535 $as_echo "$apr_cv_sock_cloexec" >&6; }
20537 if test "$apr_cv_sock_cloexec" = "yes"; then
20539 $as_echo "#define HAVE_SOCK_CLOEXEC 1" >>confdefs.h
20543 for ac_func in fdatasync
20545 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
20546 if test "x$ac_cv_func_fdatasync" = xyes; then :
20547 cat >>confdefs.h <<_ACEOF
20548 #define HAVE_FDATASYNC 1
20555 # test for epoll_create1
20556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll_create1 support" >&5
20557 $as_echo_n "checking for epoll_create1 support... " >&6; }
20558 if ${apr_cv_epoll_create1+:} false; then :
20559 $as_echo_n "(cached) " >&6
20561 if test "$cross_compiling" = yes; then :
20562 apr_cv_epoll_create1=no
20564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20565 /* end confdefs.h. */
20567 #include <sys/epoll.h>
20568 #include <unistd.h>
20572 return epoll_create1(0) == -1;
20575 if ac_fn_c_try_run "$LINENO"; then :
20576 apr_cv_epoll_create1=yes
20578 apr_cv_epoll_create1=no
20580 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20581 conftest.$ac_objext conftest.beam conftest.$ac_ext
20585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_epoll_create1" >&5
20586 $as_echo "$apr_cv_epoll_create1" >&6; }
20588 if test "$apr_cv_epoll_create1" = "yes"; then
20590 $as_echo "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h
20594 # Check for z/OS async i/o support.
20595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asio -> message queue support" >&5
20596 $as_echo_n "checking for asio -> message queue support... " >&6; }
20597 if ${apr_cv_aio_msgq+:} false; then :
20598 $as_echo_n "(cached) " >&6
20600 if test "$cross_compiling" = yes; then :
20603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20604 /* end confdefs.h. */
20613 a.aio_notifytype = AIO_MSGQ; /* use IPC message queue for notification */
20615 return aio_cancel(2, NULL) == -1;
20618 if ac_fn_c_try_run "$LINENO"; then :
20619 apr_cv_aio_msgq=yes
20623 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20624 conftest.$ac_objext conftest.beam conftest.$ac_ext
20628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_aio_msgq" >&5
20629 $as_echo "$apr_cv_aio_msgq" >&6; }
20631 if test "$apr_cv_aio_msgq" = "yes"; then
20633 $as_echo "#define HAVE_AIO_MSGQ 1" >>confdefs.h
20638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dup3 support" >&5
20639 $as_echo_n "checking for dup3 support... " >&6; }
20640 if ${apr_cv_dup3+:} false; then :
20641 $as_echo_n "(cached) " >&6
20643 if test "$cross_compiling" = yes; then :
20646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20647 /* end confdefs.h. */
20649 #include <unistd.h>
20653 return dup3(STDOUT_FILENO, STDERR_FILENO, 0) == -1;
20656 if ac_fn_c_try_run "$LINENO"; then :
20661 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20662 conftest.$ac_objext conftest.beam conftest.$ac_ext
20666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_dup3" >&5
20667 $as_echo "$apr_cv_dup3" >&6; }
20669 if test "$apr_cv_dup3" = "yes"; then
20671 $as_echo "#define HAVE_DUP3 1" >>confdefs.h
20676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for accept4 support" >&5
20677 $as_echo_n "checking for accept4 support... " >&6; }
20678 if ${apr_cv_accept4+:} false; then :
20679 $as_echo_n "(cached) " >&6
20681 if test "$cross_compiling" = yes; then :
20684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20685 /* end confdefs.h. */
20687 #include <unistd.h>
20688 #include <sys/types.h>
20689 #include <sys/socket.h>
20690 #include <sys/un.h>
20691 #include <sys/wait.h>
20692 #include <signal.h>
20695 #define A4_SOCK "./apr_accept4_test_socket"
20701 struct sockaddr_un loc, rem;
20704 if ((pid = fork())) {
20709 if ((fd = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
20710 goto cleanup_failure2;
20712 loc.sun_family = AF_UNIX;
20713 strncpy(loc.sun_path, A4_SOCK, sizeof(loc.sun_path) - 1);
20715 if (bind(fd, (struct sockaddr *) &loc,
20716 sizeof(struct sockaddr_un)) == -1)
20717 goto cleanup_failure;
20719 if (listen(fd, 5) == -1)
20720 goto cleanup_failure;
20722 rem_sz = sizeof(struct sockaddr_un);
20723 if (accept4(fd, (struct sockaddr *) &rem, &rem_sz, 0) == -1) {
20724 goto cleanup_failure;
20728 waitpid(pid, &status, 0);
20736 kill(pid, SIGKILL);
20737 waitpid(pid, &status, 0);
20742 if ((fd = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
20743 return 1; /* this will be bad: we'll hang */
20745 loc.sun_family = AF_UNIX;
20746 strncpy(loc.sun_path, A4_SOCK, sizeof(loc.sun_path) - 1);
20748 while(connect(fd, (struct sockaddr *) &loc,
20749 sizeof(struct sockaddr_un)) == -1 &&
20750 (errno==ENOENT || errno==ECONNREFUSED))
20758 if ac_fn_c_try_run "$LINENO"; then :
20763 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20764 conftest.$ac_objext conftest.beam conftest.$ac_ext
20768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_accept4" >&5
20769 $as_echo "$apr_cv_accept4" >&6; }
20771 if test "$apr_cv_accept4" = "yes"; then
20773 $as_echo "#define HAVE_ACCEPT4 1" >>confdefs.h
20777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOCK_CLOEXEC support" >&5
20778 $as_echo_n "checking for SOCK_CLOEXEC support... " >&6; }
20779 if ${apr_cv_sock_cloexec+:} false; then :
20780 $as_echo_n "(cached) " >&6
20782 if test "$cross_compiling" = yes; then :
20783 apr_cv_sock_cloexec=no
20785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20786 /* end confdefs.h. */
20788 #include <sys/types.h>
20789 #include <sys/socket.h>
20793 return socket(AF_INET, SOCK_STREAM|SOCK_CLOEXEC, 0) == -1;
20796 if ac_fn_c_try_run "$LINENO"; then :
20797 apr_cv_sock_cloexec=yes
20799 apr_cv_sock_cloexec=no
20801 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20802 conftest.$ac_objext conftest.beam conftest.$ac_ext
20806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_sock_cloexec" >&5
20807 $as_echo "$apr_cv_sock_cloexec" >&6; }
20809 if test "$apr_cv_sock_cloexec" = "yes"; then
20811 $as_echo "#define HAVE_SOCK_CLOEXEC 1" >>confdefs.h
20815 for ac_func in getpwnam_r getpwuid_r getgrnam_r getgrgid_r
20817 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20818 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20819 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20820 cat >>confdefs.h <<_ACEOF
20821 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20828 echo "${nl}Checking for Shared Memory Support..."
20830 # The real-time POSIX extensions (e.g. shm_*, sem_*) may only
20831 # be available if linking against librt.
20832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
20833 $as_echo_n "checking for library containing shm_open... " >&6; }
20834 if ${ac_cv_search_shm_open+:} false; then :
20835 $as_echo_n "(cached) " >&6
20837 ac_func_search_save_LIBS=$LIBS
20838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20839 /* end confdefs.h. */
20841 /* Override any GCC internal prototype to avoid an error.
20842 Use char because int might match the return type of a GCC
20843 builtin and then its argument prototype would still apply. */
20851 return shm_open ();
20856 for ac_lib in '' rt; do
20857 if test -z "$ac_lib"; then
20858 ac_res="none required"
20861 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20863 if ac_fn_c_try_link "$LINENO"; then :
20864 ac_cv_search_shm_open=$ac_res
20866 rm -f core conftest.err conftest.$ac_objext \
20868 if ${ac_cv_search_shm_open+:} false; then :
20872 if ${ac_cv_search_shm_open+:} false; then :
20875 ac_cv_search_shm_open=no
20877 rm conftest.$ac_ext
20878 LIBS=$ac_func_search_save_LIBS
20880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
20881 $as_echo "$ac_cv_search_shm_open" >&6; }
20882 ac_res=$ac_cv_search_shm_open
20883 if test "$ac_res" != no; then :
20884 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20891 ac_includes_default="$ac_includes_default
20892 #if HAVE_SYS_MUTEX_H /* needed to define lock_t for sys/shm.h */
20893 # include <sys/mutex.h>
20897 for ac_header in sys/types.h sys/mman.h sys/ipc.h sys/mutex.h sys/shm.h sys/file.h kernel/OS.h os2.h windows.h
20899 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20900 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20901 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20902 cat >>confdefs.h <<_ACEOF
20903 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20910 for ac_func in mmap munmap shm_open shm_unlink shmget shmat shmdt shmctl \
20913 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20914 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20915 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20916 cat >>confdefs.h <<_ACEOF
20917 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON in sys/mman.h" >&5
20926 $as_echo_n "checking for MAP_ANON in sys/mman.h... " >&6; }
20927 if ${ac_cv_define_MAP_ANON+:} false; then :
20928 $as_echo_n "(cached) " >&6
20931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20932 /* end confdefs.h. */
20934 #include <sys/mman.h>
20940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20941 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
20942 ac_cv_define_MAP_ANON=yes
20944 ac_cv_define_MAP_ANON=no
20950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_MAP_ANON" >&5
20951 $as_echo "$ac_cv_define_MAP_ANON" >&6; }
20952 if test "$ac_cv_define_MAP_ANON" = "yes"; then
20954 $as_echo "#define HAVE_MAP_ANON 1" >>confdefs.h
20958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/zero" >&5
20959 $as_echo_n "checking for /dev/zero... " >&6; }
20960 if ${ac_cv_file__dev_zero+:} false; then :
20961 $as_echo_n "(cached) " >&6
20963 test "$cross_compiling" = yes &&
20964 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
20965 if test -r "/dev/zero"; then
20966 ac_cv_file__dev_zero=yes
20968 ac_cv_file__dev_zero=no
20971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_zero" >&5
20972 $as_echo "$ac_cv_file__dev_zero" >&6; }
20973 if test "x$ac_cv_file__dev_zero" = xyes; then :
20978 # Not all systems can mmap /dev/zero (such as HP-UX). Check for that.
20979 if test "$ac_cv_func_mmap" = "yes" &&
20980 test "$ac_cv_file__dev_zero" = "yes"; then
20981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mmap that can map /dev/zero" >&5
20982 $as_echo_n "checking for mmap that can map /dev/zero... " >&6; }
20983 if test "$cross_compiling" = yes; then :
20984 ac_cv_file__dev_zero=no
20986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20987 /* end confdefs.h. */
20989 #include <sys/types.h>
20990 #include <sys/stat.h>
20992 #ifdef HAVE_SYS_MMAN_H
20993 #include <sys/mman.h>
20999 fd = open("/dev/zero", O_RDWR);
21003 m = mmap(0, sizeof(void*), PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0);
21004 if (m == (void *)-1) { /* aka MAP_FAILED */
21007 if (munmap(m, sizeof(void*)) < 0) {
21013 if ac_fn_c_try_run "$LINENO"; then :
21016 ac_cv_file__dev_zero=no
21018 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21019 conftest.$ac_objext conftest.beam conftest.$ac_ext
21023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_zero" >&5
21024 $as_echo "$ac_cv_file__dev_zero" >&6; }
21027 # Now we determine which one is our anonymous shmem preference.
21031 ac_decision_item='anonymous shared memory allocation method'
21032 ac_decision_msg='FAILED'
21036 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
21037 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21038 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21041 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21042 ac_var="ac_cv_header_$ac_item"
21045 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21046 ac_var="ac_cv_file_$ac_item"
21048 func ) ac_var="ac_cv_func_$ac_item" ;;
21049 struct ) ac_var="ac_cv_struct_$ac_item" ;;
21050 define ) ac_var="ac_cv_define_$ac_item" ;;
21051 custom ) ac_var="$ac_item" ;;
21053 eval "ac_val=\$$ac_var"
21054 if test ".$ac_val" != .yes; then
21059 if test ".$ac_rc" = .yes; then
21063 ac_decision='USE_SHMEM_SHMGET_ANON'
21064 ac_decision_msg='SysV IPC shmget()'
21065 ac_decision_USE_SHMEM_SHMGET_ANON=yes
21066 ac_decision_USE_SHMEM_SHMGET_ANON_msg='SysV IPC shmget()'
21074 for ac_spec in header:sys/mman.h func:mmap func:munmap file:/dev/zero; do
21075 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21076 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21079 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21080 ac_var="ac_cv_header_$ac_item"
21083 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21084 ac_var="ac_cv_file_$ac_item"
21086 func ) ac_var="ac_cv_func_$ac_item" ;;
21087 struct ) ac_var="ac_cv_struct_$ac_item" ;;
21088 define ) ac_var="ac_cv_define_$ac_item" ;;
21089 custom ) ac_var="$ac_item" ;;
21091 eval "ac_val=\$$ac_var"
21092 if test ".$ac_val" != .yes; then
21097 if test ".$ac_rc" = .yes; then
21101 ac_decision='USE_SHMEM_MMAP_ZERO'
21102 ac_decision_msg='SVR4-style mmap() on /dev/zero'
21103 ac_decision_USE_SHMEM_MMAP_ZERO=yes
21104 ac_decision_USE_SHMEM_MMAP_ZERO_msg='SVR4-style mmap() on /dev/zero'
21112 for ac_spec in header:sys/mman.h func:mmap func:munmap define:MAP_ANON; do
21113 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21114 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21117 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21118 ac_var="ac_cv_header_$ac_item"
21121 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21122 ac_var="ac_cv_file_$ac_item"
21124 func ) ac_var="ac_cv_func_$ac_item" ;;
21125 struct ) ac_var="ac_cv_struct_$ac_item" ;;
21126 define ) ac_var="ac_cv_define_$ac_item" ;;
21127 custom ) ac_var="$ac_item" ;;
21129 eval "ac_val=\$$ac_var"
21130 if test ".$ac_val" != .yes; then
21135 if test ".$ac_rc" = .yes; then
21139 ac_decision='USE_SHMEM_MMAP_ANON'
21140 ac_decision_msg='4.4BSD-style mmap() via MAP_ANON'
21141 ac_decision_USE_SHMEM_MMAP_ANON=yes
21142 ac_decision_USE_SHMEM_MMAP_ANON_msg='4.4BSD-style mmap() via MAP_ANON'
21150 for ac_spec in header:os2.h; do
21151 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21152 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21155 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21156 ac_var="ac_cv_header_$ac_item"
21159 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21160 ac_var="ac_cv_file_$ac_item"
21162 func ) ac_var="ac_cv_func_$ac_item" ;;
21163 struct ) ac_var="ac_cv_struct_$ac_item" ;;
21164 define ) ac_var="ac_cv_define_$ac_item" ;;
21165 custom ) ac_var="$ac_item" ;;
21167 eval "ac_val=\$$ac_var"
21168 if test ".$ac_val" != .yes; then
21173 if test ".$ac_rc" = .yes; then
21177 ac_decision='USE_SHMEM_OS2_ANON'
21178 ac_decision_msg='OS/2 DosAllocSharedMem()'
21179 ac_decision_USE_SHMEM_OS2_ANON=yes
21180 ac_decision_USE_SHMEM_OS2_ANON_msg='OS/2 DosAllocSharedMem()'
21188 for ac_spec in header:kernel/OS.h func:create_area; do
21189 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21190 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21193 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21194 ac_var="ac_cv_header_$ac_item"
21197 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21198 ac_var="ac_cv_file_$ac_item"
21200 func ) ac_var="ac_cv_func_$ac_item" ;;
21201 struct ) ac_var="ac_cv_struct_$ac_item" ;;
21202 define ) ac_var="ac_cv_define_$ac_item" ;;
21203 custom ) ac_var="$ac_item" ;;
21205 eval "ac_val=\$$ac_var"
21206 if test ".$ac_val" != .yes; then
21211 if test ".$ac_rc" = .yes; then
21215 ac_decision='USE_SHMEM_BEOS_ANON'
21216 ac_decision_msg='BeOS areas'
21217 ac_decision_USE_SHMEM_BEOS_ANON=yes
21218 ac_decision_USE_SHMEM_BEOS_ANON_msg='BeOS areas'
21226 for ac_spec in header:windows.h func:CreateFileMapping; do
21227 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21228 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21231 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21232 ac_var="ac_cv_header_$ac_item"
21235 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21236 ac_var="ac_cv_file_$ac_item"
21238 func ) ac_var="ac_cv_func_$ac_item" ;;
21239 struct ) ac_var="ac_cv_struct_$ac_item" ;;
21240 define ) ac_var="ac_cv_define_$ac_item" ;;
21241 custom ) ac_var="$ac_item" ;;
21243 eval "ac_val=\$$ac_var"
21244 if test ".$ac_val" != .yes; then
21249 if test ".$ac_rc" = .yes; then
21253 ac_decision='USE_SHMEM_WIN32_ANON'
21254 ac_decision_msg='Windows CreateFileMapping()'
21255 ac_decision_USE_SHMEM_WIN32_ANON=yes
21256 ac_decision_USE_SHMEM_WIN32_ANON_msg='Windows CreateFileMapping()'
21265 # Linux has problems with MM_SHMT_MMANON even though it reports
21267 # FIXME - find exact 2.3 version that MMANON was fixed in. It is
21268 # confirmed fixed in 2.4 series.
21269 if test $os_pre24linux -eq 1; then
21270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling anon mmap() support for Linux pre-2.4" >&5
21271 $as_echo "$as_me: WARNING: Disabling anon mmap() support for Linux pre-2.4" >&2;}
21273 for ac_item in USE_SHMEM_MMAP_ZERO USE_SHMEM_SHMGET_ANON; do
21274 eval "ac_decision_this=\$ac_decision_${ac_item}"
21275 if test ".$ac_decision_this" = .yes; then
21276 ac_decision=$ac_item
21277 eval "ac_decision_msg=\$ac_decision_${ac_item}_msg"
21285 for ac_item in USE_SHMEM_SHMGET_ANON; do
21286 eval "ac_decision_this=\$ac_decision_${ac_item}"
21287 if test ".$ac_decision_this" = .yes; then
21288 ac_decision=$ac_item
21289 eval "ac_decision_msg=\$ac_decision_${ac_item}_msg"
21295 if test ".$ac_decision" = .; then
21296 echo "$0:Error: decision on $ac_decision_item failed" 1>&2
21299 if test ".$ac_decision_msg" = .; then
21300 ac_decision_msg="$ac_decision"
21302 cat >>confdefs.h <<_ACEOF
21303 #define ${ac_decision_item} 1
21306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: decision on $ac_decision_item... $ac_decision_msg" >&5
21307 $as_echo "decision on $ac_decision_item... $ac_decision_msg" >&6; }
21310 cat >>confdefs.h <<_ACEOF
21311 #define $ac_decision 1
21319 case $ac_decision in
21320 USE_SHMEM_SHMGET_ANON )
21323 USE_SHMEM_MMAP_ZERO )
21326 USE_SHMEM_MMAP_ANON )
21338 # Now we determine which one is our name-based shmem preference.
21345 ac_decision_item='namebased memory allocation method'
21346 ac_decision_msg='FAILED'
21350 for ac_spec in header:sys/mman.h func:mmap func:munmap; do
21351 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21352 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21355 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21356 ac_var="ac_cv_header_$ac_item"
21359 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21360 ac_var="ac_cv_file_$ac_item"
21362 func ) ac_var="ac_cv_func_$ac_item" ;;
21363 struct ) ac_var="ac_cv_struct_$ac_item" ;;
21364 define ) ac_var="ac_cv_define_$ac_item" ;;
21365 custom ) ac_var="$ac_item" ;;
21367 eval "ac_val=\$$ac_var"
21368 if test ".$ac_val" != .yes; then
21373 if test ".$ac_rc" = .yes; then
21377 ac_decision='USE_SHMEM_MMAP_TMP'
21378 ac_decision_msg='Classical mmap() on temporary file'
21379 ac_decision_USE_SHMEM_MMAP_TMP=yes
21380 ac_decision_USE_SHMEM_MMAP_TMP_msg='Classical mmap() on temporary file'
21388 for ac_spec in header:sys/mman.h func:mmap func:munmap func:shm_open func:shm_unlink; do
21389 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21390 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21393 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21394 ac_var="ac_cv_header_$ac_item"
21397 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21398 ac_var="ac_cv_file_$ac_item"
21400 func ) ac_var="ac_cv_func_$ac_item" ;;
21401 struct ) ac_var="ac_cv_struct_$ac_item" ;;
21402 define ) ac_var="ac_cv_define_$ac_item" ;;
21403 custom ) ac_var="$ac_item" ;;
21405 eval "ac_val=\$$ac_var"
21406 if test ".$ac_val" != .yes; then
21411 if test ".$ac_rc" = .yes; then
21415 ac_decision='USE_SHMEM_MMAP_SHM'
21416 ac_decision_msg='mmap() via POSIX.1 shm_open() on temporary file'
21417 ac_decision_USE_SHMEM_MMAP_SHM=yes
21418 ac_decision_USE_SHMEM_MMAP_SHM_msg='mmap() via POSIX.1 shm_open() on temporary file'
21426 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
21427 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21428 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21431 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21432 ac_var="ac_cv_header_$ac_item"
21435 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21436 ac_var="ac_cv_file_$ac_item"
21438 func ) ac_var="ac_cv_func_$ac_item" ;;
21439 struct ) ac_var="ac_cv_struct_$ac_item" ;;
21440 define ) ac_var="ac_cv_define_$ac_item" ;;
21441 custom ) ac_var="$ac_item" ;;
21443 eval "ac_val=\$$ac_var"
21444 if test ".$ac_val" != .yes; then
21449 if test ".$ac_rc" = .yes; then
21453 ac_decision='USE_SHMEM_SHMGET'
21454 ac_decision_msg='SysV IPC shmget()'
21455 ac_decision_USE_SHMEM_SHMGET=yes
21456 ac_decision_USE_SHMEM_SHMGET_msg='SysV IPC shmget()'
21464 for ac_spec in header:kernel/OS.h func:create_area; do
21465 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21466 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21469 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21470 ac_var="ac_cv_header_$ac_item"
21473 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21474 ac_var="ac_cv_file_$ac_item"
21476 func ) ac_var="ac_cv_func_$ac_item" ;;
21477 struct ) ac_var="ac_cv_struct_$ac_item" ;;
21478 define ) ac_var="ac_cv_define_$ac_item" ;;
21479 custom ) ac_var="$ac_item" ;;
21481 eval "ac_val=\$$ac_var"
21482 if test ".$ac_val" != .yes; then
21487 if test ".$ac_rc" = .yes; then
21491 ac_decision='USE_SHMEM_BEOS'
21492 ac_decision_msg='BeOS areas'
21493 ac_decision_USE_SHMEM_BEOS=yes
21494 ac_decision_USE_SHMEM_BEOS_msg='BeOS areas'
21502 for ac_spec in header:os2.h; do
21503 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21504 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21507 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21508 ac_var="ac_cv_header_$ac_item"
21511 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21512 ac_var="ac_cv_file_$ac_item"
21514 func ) ac_var="ac_cv_func_$ac_item" ;;
21515 struct ) ac_var="ac_cv_struct_$ac_item" ;;
21516 define ) ac_var="ac_cv_define_$ac_item" ;;
21517 custom ) ac_var="$ac_item" ;;
21519 eval "ac_val=\$$ac_var"
21520 if test ".$ac_val" != .yes; then
21525 if test ".$ac_rc" = .yes; then
21529 ac_decision='USE_SHMEM_OS2'
21530 ac_decision_msg='OS/2 DosAllocSharedMem()'
21531 ac_decision_USE_SHMEM_OS2=yes
21532 ac_decision_USE_SHMEM_OS2_msg='OS/2 DosAllocSharedMem()'
21540 for ac_spec in header:windows.h; do
21541 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21542 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21545 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21546 ac_var="ac_cv_header_$ac_item"
21549 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21550 ac_var="ac_cv_file_$ac_item"
21552 func ) ac_var="ac_cv_func_$ac_item" ;;
21553 struct ) ac_var="ac_cv_struct_$ac_item" ;;
21554 define ) ac_var="ac_cv_define_$ac_item" ;;
21555 custom ) ac_var="$ac_item" ;;
21557 eval "ac_val=\$$ac_var"
21558 if test ".$ac_val" != .yes; then
21563 if test ".$ac_rc" = .yes; then
21567 ac_decision='USE_SHMEM_WIN32'
21568 ac_decision_msg='Windows shared memory'
21569 ac_decision_USE_SHMEM_WIN32=yes
21570 ac_decision_USE_SHMEM_WIN32_msg='Windows shared memory'
21577 # Check whether --enable-posix-shm was given.
21578 if test "${enable_posix_shm+set}" = set; then :
21579 enableval=$enable_posix_shm;
21580 if test "$havemmapshm" = "1"; then
21582 for ac_item in USE_SHMEM_MMAP_SHM; do
21583 eval "ac_decision_this=\$ac_decision_${ac_item}"
21584 if test ".$ac_decision_this" = .yes; then
21585 ac_decision=$ac_item
21586 eval "ac_decision_msg=\$ac_decision_${ac_item}_msg"
21596 # Linux pre-2.4 had problems with MM_SHMT_MMANON even though
21597 # it reports that it has it.
21598 if test $os_pre24linux -eq 1; then
21600 for ac_item in USE_SHMEM_MMAP_TMP USE_SHMEM_MMAP_SHM USE_SHMEM_SHMGET; do
21601 eval "ac_decision_this=\$ac_decision_${ac_item}"
21602 if test ".$ac_decision_this" = .yes; then
21603 ac_decision=$ac_item
21604 eval "ac_decision_msg=\$ac_decision_${ac_item}_msg"
21611 if test ".$ac_decision" = .; then
21612 echo "$0:Error: decision on $ac_decision_item failed" 1>&2
21615 if test ".$ac_decision_msg" = .; then
21616 ac_decision_msg="$ac_decision"
21618 cat >>confdefs.h <<_ACEOF
21619 #define ${ac_decision_item} 1
21622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: decision on $ac_decision_item... $ac_decision_msg" >&5
21623 $as_echo "decision on $ac_decision_item... $ac_decision_msg" >&6; }
21626 cat >>confdefs.h <<_ACEOF
21627 #define $ac_decision 1
21638 case $ac_decision in
21639 USE_SHMEM_MMAP_TMP )
21642 USE_SHMEM_MMAP_SHM )
21659 # Do we have any shared memory support?
21660 if test "$usemmaptmp$usemmapshm$usemmapzero$useshmget$usemmapanon$usebeosarea$useos2shm$usewin32shm" = "00000000"; then
21681 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21682 if test "x$ac_cv_type_size_t" = xyes; then :
21686 cat >>confdefs.h <<_ACEOF
21687 #define size_t unsigned int
21692 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21693 # for constant arguments. Useless!
21694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
21695 $as_echo_n "checking for working alloca.h... " >&6; }
21696 if ${ac_cv_working_alloca_h+:} false; then :
21697 $as_echo_n "(cached) " >&6
21699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21700 /* end confdefs.h. */
21701 #include <alloca.h>
21705 char *p = (char *) alloca (2 * sizeof (int));
21711 if ac_fn_c_try_link "$LINENO"; then :
21712 ac_cv_working_alloca_h=yes
21714 ac_cv_working_alloca_h=no
21716 rm -f core conftest.err conftest.$ac_objext \
21717 conftest$ac_exeext conftest.$ac_ext
21719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
21720 $as_echo "$ac_cv_working_alloca_h" >&6; }
21721 if test $ac_cv_working_alloca_h = yes; then
21723 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
21727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
21728 $as_echo_n "checking for alloca... " >&6; }
21729 if ${ac_cv_func_alloca_works+:} false; then :
21730 $as_echo_n "(cached) " >&6
21732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21733 /* end confdefs.h. */
21735 # define alloca __builtin_alloca
21738 # include <malloc.h>
21739 # define alloca _alloca
21741 # ifdef HAVE_ALLOCA_H
21742 # include <alloca.h>
21747 # ifndef alloca /* predefined by HP cc +Olibcalls */
21748 void *alloca (size_t);
21758 char *p = (char *) alloca (1);
21764 if ac_fn_c_try_link "$LINENO"; then :
21765 ac_cv_func_alloca_works=yes
21767 ac_cv_func_alloca_works=no
21769 rm -f core conftest.err conftest.$ac_objext \
21770 conftest$ac_exeext conftest.$ac_ext
21772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
21773 $as_echo "$ac_cv_func_alloca_works" >&6; }
21775 if test $ac_cv_func_alloca_works = yes; then
21777 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
21780 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21781 # that cause trouble. Some versions do not even contain alloca or
21782 # contain a buggy version. If you still want to use their alloca,
21783 # use ar to extract alloca.o from them instead of compiling alloca.c.
21785 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
21787 $as_echo "#define C_ALLOCA 1" >>confdefs.h
21790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
21791 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
21792 if ${ac_cv_os_cray+:} false; then :
21793 $as_echo_n "(cached) " >&6
21795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21796 /* end confdefs.h. */
21797 #if defined CRAY && ! defined CRAY2
21804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21805 $EGREP "webecray" >/dev/null 2>&1; then :
21813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
21814 $as_echo "$ac_cv_os_cray" >&6; }
21815 if test $ac_cv_os_cray = yes; then
21816 for ac_func in _getb67 GETB67 getb67; do
21817 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21818 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21819 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21821 cat >>confdefs.h <<_ACEOF
21822 #define CRAY_STACKSEG_END $ac_func
21831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
21832 $as_echo_n "checking stack direction for C alloca... " >&6; }
21833 if ${ac_cv_c_stack_direction+:} false; then :
21834 $as_echo_n "(cached) " >&6
21836 if test "$cross_compiling" = yes; then :
21837 ac_cv_c_stack_direction=0
21839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21840 /* end confdefs.h. */
21841 $ac_includes_default
21843 find_stack_direction (int *addr, int depth)
21845 int dir, dummy = 0;
21848 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
21849 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
21850 return dir + dummy;
21854 main (int argc, char **argv)
21856 return find_stack_direction (0, argc + !argv + 20) < 0;
21859 if ac_fn_c_try_run "$LINENO"; then :
21860 ac_cv_c_stack_direction=1
21862 ac_cv_c_stack_direction=-1
21864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21865 conftest.$ac_objext conftest.beam conftest.$ac_ext
21869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
21870 $as_echo "$ac_cv_c_stack_direction" >&6; }
21871 cat >>confdefs.h <<_ACEOF
21872 #define STACK_DIRECTION $ac_cv_c_stack_direction
21879 for ac_func in calloc setsid isinf isnan \
21880 getenv putenv setenv unsetenv \
21881 writev getifaddrs utime utimes
21883 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21884 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21885 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21886 cat >>confdefs.h <<_ACEOF
21887 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21893 for ac_func in setrlimit
21895 ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit"
21896 if test "x$ac_cv_func_setrlimit" = xyes; then :
21897 cat >>confdefs.h <<_ACEOF
21898 #define HAVE_SETRLIMIT 1
21906 for ac_func in getrlimit
21908 ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit"
21909 if test "x$ac_cv_func_getrlimit" = xyes; then :
21910 cat >>confdefs.h <<_ACEOF
21911 #define HAVE_GETRLIMIT 1
21920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfilev in -lsendfile" >&5
21921 $as_echo_n "checking for sendfilev in -lsendfile... " >&6; }
21922 if ${ac_cv_lib_sendfile_sendfilev+:} false; then :
21923 $as_echo_n "(cached) " >&6
21925 ac_check_lib_save_LIBS=$LIBS
21926 LIBS="-lsendfile $LIBS"
21927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21928 /* end confdefs.h. */
21930 /* Override any GCC internal prototype to avoid an error.
21931 Use char because int might match the return type of a GCC
21932 builtin and then its argument prototype would still apply. */
21940 return sendfilev ();
21945 if ac_fn_c_try_link "$LINENO"; then :
21946 ac_cv_lib_sendfile_sendfilev=yes
21948 ac_cv_lib_sendfile_sendfilev=no
21950 rm -f core conftest.err conftest.$ac_objext \
21951 conftest$ac_exeext conftest.$ac_ext
21952 LIBS=$ac_check_lib_save_LIBS
21954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfilev" >&5
21955 $as_echo "$ac_cv_lib_sendfile_sendfilev" >&6; }
21956 if test "x$ac_cv_lib_sendfile_sendfilev" = xyes; then :
21957 cat >>confdefs.h <<_ACEOF
21958 #define HAVE_LIBSENDFILE 1
21961 LIBS="-lsendfile $LIBS"
21965 for ac_func in sendfile send_file sendfilev
21967 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21968 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21969 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21970 cat >>confdefs.h <<_ACEOF
21971 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21980 # Check whether --with-sendfile was given.
21981 if test "${with_sendfile+set}" = set; then :
21982 withval=$with_sendfile; if test "$withval" = "yes"; then
21989 orig_sendfile=$sendfile
21992 # FreeBSD < 4.2 has issues with threads+sendfile
21993 if test $os_version -le "401999"; then
21994 if test "$threads" = "1"; then
22003 # disable sendfile support for 2.2 on S/390
22004 if test $os_pre24linux -eq 1; then
22005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabled sendfile support for Linux 2.2 on S/390" >&5
22006 $as_echo "$as_me: WARNING: Disabled sendfile support for Linux 2.2 on S/390" >&2;}
22011 # compiler-independent check for 64-bit build
22012 # The cast to long int works around a bug in the HP C Compiler
22013 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22014 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22015 # This bug is HP SR number 8606223364.
22016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
22017 $as_echo_n "checking size of void*... " >&6; }
22018 if ${ac_cv_sizeof_voidp+:} false; then :
22019 $as_echo_n "(cached) " >&6
22021 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
22024 if test "$ac_cv_type_voidp" = yes; then
22025 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22026 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22027 as_fn_error 77 "cannot compute sizeof (void*)
22028 See \`config.log' for more details" "$LINENO" 5; }
22030 ac_cv_sizeof_voidp=0
22035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
22036 $as_echo "$ac_cv_sizeof_voidp" >&6; }
22040 cat >>confdefs.h <<_ACEOF
22041 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
22045 if test "x$ac_cv_sizeof_voidp" = "x8"; then
22046 # sendfile not working for 64-bit build
22051 if test "$orig_sendfile" != "$sendfile"; then
22052 echo "sendfile support disabled to avoid system problem"
22058 for ac_func in sigaction
22060 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
22061 if test "x$ac_cv_func_sigaction" = xyes; then :
22062 cat >>confdefs.h <<_ACEOF
22063 #define HAVE_SIGACTION 1
22071 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
22072 /* NetBSD declares sys_siglist in unistd.h. */
22073 #ifdef HAVE_UNISTD_H
22074 # include <unistd.h>
22078 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
22084 cat >>confdefs.h <<_ACEOF
22085 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
22090 for ac_func in fork
22092 ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
22093 if test "x$ac_cv_func_fork" = xyes; then :
22094 cat >>confdefs.h <<_ACEOF
22095 #define HAVE_FORK 1
22104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr" >&5
22105 $as_echo_n "checking for inet_addr... " >&6; }
22106 if ${ac_cv_func_inet_addr+:} false; then :
22107 $as_echo_n "(cached) " >&6
22110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22111 /* end confdefs.h. */
22113 #ifdef HAVE_SYS_TYPES_H
22114 #include <sys/types.h>
22116 #ifdef HAVE_ARPA_INET_H
22117 #include <arpa/inet.h>
22124 inet_addr("127.0.0.1");
22130 if ac_fn_c_try_compile "$LINENO"; then :
22132 ac_cv_func_inet_addr=yes
22136 ac_cv_func_inet_addr=no
22139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_inet_addr" >&5
22143 $as_echo "$ac_cv_func_inet_addr" >&6; }
22145 if test "$ac_cv_func_inet_addr" = "yes"; then
22152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_network" >&5
22153 $as_echo_n "checking for inet_network... " >&6; }
22154 if ${ac_cv_func_inet_network+:} false; then :
22155 $as_echo_n "(cached) " >&6
22158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22159 /* end confdefs.h. */
22161 #ifdef HAVE_SYS_TYPES_H
22162 #include <sys/types.h>
22164 #ifdef HAVE_ARPA_INET_H
22165 #include <arpa/inet.h>
22172 inet_network("127.0.0.1");
22178 if ac_fn_c_try_compile "$LINENO"; then :
22180 ac_cv_func_inet_network=yes
22184 ac_cv_func_inet_network=no
22187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_inet_network" >&5
22191 $as_echo "$ac_cv_func_inet_network" >&6; }
22193 if test "$ac_cv_func_inet_network" = "yes"; then
22194 have_inet_network=1
22196 have_inet_network=0
22200 ac_fn_c_check_func "$LINENO" "_getch" "ac_cv_func__getch"
22201 if test "x$ac_cv_func__getch" = xyes; then :
22205 for ac_func in strerror_r
22207 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
22208 if test "x$ac_cv_func_strerror_r" = xyes; then :
22209 cat >>confdefs.h <<_ACEOF
22210 #define HAVE_STRERROR_R 1
22218 if test "$strerror_r" = "1"; then
22220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of return code from strerror_r" >&5
22221 $as_echo_n "checking for type of return code from strerror_r... " >&6; }
22222 if test "$cross_compiling" = yes; then :
22224 ac_cv_strerror_r_rc_int=no
22226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22227 /* end confdefs.h. */
22230 #include <string.h>
22235 if (strerror_r(ERANGE, buf, sizeof buf) < 1) {
22243 if ac_fn_c_try_run "$LINENO"; then :
22245 ac_cv_strerror_r_rc_int=yes
22248 ac_cv_strerror_r_rc_int=no
22250 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22251 conftest.$ac_objext conftest.beam conftest.$ac_ext
22254 if test "x$ac_cv_strerror_r_rc_int" = xyes; then
22256 $as_echo "#define STRERROR_R_RC_INT 1" >>confdefs.h
22262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
22263 $as_echo "$msg" >&6; }
22266 for ac_func in mmap
22268 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
22269 if test "x$ac_cv_func_mmap" = xyes; then :
22270 cat >>confdefs.h <<_ACEOF
22271 #define HAVE_MMAP 1
22279 if test "$native_mmap_emul" = "1"; then
22282 for ac_func in memmove
22284 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
22285 if test "x$ac_cv_func_memmove" = xyes; then :
22286 cat >>confdefs.h <<_ACEOF
22287 #define HAVE_MEMMOVE 1
22295 for ac_func in getpass getpassphrase gmtime_r localtime_r mkstemp
22297 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22298 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22299 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22300 cat >>confdefs.h <<_ACEOF
22301 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sigwait takes one argument" >&5
22321 $as_echo_n "checking whether sigwait takes one argument... " >&6; }
22322 if ${ac_cv_sigwait_one_arg+:} false; then :
22323 $as_echo_n "(cached) " >&6
22326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22327 /* end confdefs.h. */
22329 #if defined(__NETBSD__) || defined(DARWIN)
22330 /* When using the unproven-pthreads package, we need to pull in this
22331 * header to get a prototype for sigwait(). Else things will fail later
22332 * on. XXX Should probably be fixed in the unproven-pthreads package.
22333 * Darwin is declaring sigwait() in the wrong place as well.
22335 #include <pthread.h>
22337 #include <signal.h>
22351 if ac_fn_c_try_compile "$LINENO"; then :
22353 ac_cv_sigwait_one_arg=yes
22357 ac_cv_sigwait_one_arg=no
22360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sigwait_one_arg" >&5
22363 $as_echo "$ac_cv_sigwait_one_arg" >&6; }
22364 if test "$ac_cv_sigwait_one_arg" = "yes"; then
22366 $as_echo "#define SIGWAIT_TAKES_ONE_ARG 1" >>confdefs.h
22371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
22372 $as_echo_n "checking for ANSI C header files... " >&6; }
22373 if ${ac_cv_header_stdc+:} false; then :
22374 $as_echo_n "(cached) " >&6
22376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22377 /* end confdefs.h. */
22378 #include <stdlib.h>
22379 #include <stdarg.h>
22380 #include <string.h>
22391 if ac_fn_c_try_compile "$LINENO"; then :
22392 ac_cv_header_stdc=yes
22394 ac_cv_header_stdc=no
22396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22398 if test $ac_cv_header_stdc = yes; then
22399 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22401 /* end confdefs.h. */
22402 #include <string.h>
22405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22406 $EGREP "memchr" >/dev/null 2>&1; then :
22409 ac_cv_header_stdc=no
22415 if test $ac_cv_header_stdc = yes; then
22416 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22418 /* end confdefs.h. */
22419 #include <stdlib.h>
22422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22423 $EGREP "free" >/dev/null 2>&1; then :
22426 ac_cv_header_stdc=no
22432 if test $ac_cv_header_stdc = yes; then
22433 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22434 if test "$cross_compiling" = yes; then :
22437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22438 /* end confdefs.h. */
22440 #include <stdlib.h>
22441 #if ((' ' & 0x0FF) == 0x020)
22442 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22443 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22445 # define ISLOWER(c) \
22446 (('a' <= (c) && (c) <= 'i') \
22447 || ('j' <= (c) && (c) <= 'r') \
22448 || ('s' <= (c) && (c) <= 'z'))
22449 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22452 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22457 for (i = 0; i < 256; i++)
22458 if (XOR (islower (i), ISLOWER (i))
22459 || toupper (i) != TOUPPER (i))
22464 if ac_fn_c_try_run "$LINENO"; then :
22467 ac_cv_header_stdc=no
22469 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22470 conftest.$ac_objext conftest.beam conftest.$ac_ext
22475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
22476 $as_echo "$ac_cv_header_stdc" >&6; }
22477 if test $ac_cv_header_stdc = yes; then
22479 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
22485 for ac_header in ByteOrder.h \
22529 netinet/sctp_uio.h \
22551 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22552 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22553 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22554 cat >>confdefs.h <<_ACEOF
22555 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22562 for aprt_i in ByteOrder.h \
22606 netinet/sctp_uio.h \
22628 ac_safe=`echo "$aprt_i" | sed 'y%./+-%__p_%'`
22629 aprt_2=`echo "$aprt_i" | sed -e 's%/%_%g' -e 's/\.//g' -e 's/-//g'`
22630 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22638 # IRIX 6.5 has a problem in <netinet/tcp.h> which prevents it from
22639 # being included by itself. Check for <netinet/tcp.h> manually,
22640 # including another header file first.
22641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netinet/tcp.h" >&5
22642 $as_echo_n "checking for netinet/tcp.h... " >&6; }
22643 if ${apr_cv_hdr_netinet_tcp_h+:} false; then :
22644 $as_echo_n "(cached) " >&6
22646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22647 /* end confdefs.h. */
22648 #ifdef HAVE_NETINET_IN_H
22649 #include <netinet/in.h>
22651 #include <netinet/tcp.h>
22654 if ac_fn_c_try_cpp "$LINENO"; then :
22655 apr_cv_hdr_netinet_tcp_h=yes
22657 apr_cv_hdr_netinet_tcp_h=no
22659 rm -f conftest.err conftest.i conftest.$ac_ext
22661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_hdr_netinet_tcp_h" >&5
22662 $as_echo "$apr_cv_hdr_netinet_tcp_h" >&6; }
22663 if test "$apr_cv_hdr_netinet_tcp_h" = "yes"; then
22666 $as_echo "#define HAVE_NETINET_TCP_H 1" >>confdefs.h
22711 # Checking for h_errno in <netdb.h>
22712 if test "$netdbh" = "1"; then
22714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for h_errno in netdb.h" >&5
22715 $as_echo_n "checking for h_errno in netdb.h... " >&6; }
22716 if ${ac_cv_h_errno_cppflags+:} false; then :
22717 $as_echo_n "(cached) " >&6
22721 if test x != x; then
22722 CPPFLAGS="-D $CPPFLAGS"
22724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22725 /* end confdefs.h. */
22727 #ifdef HAVE_SYS_TYPES_H
22728 #include <sys/types.h>
22730 #ifdef HAVE_NETDB_H
22744 if ac_fn_c_try_compile "$LINENO"; then :
22746 if test x != x; then
22747 ac_cv_h_errno_cppflags=""
22749 ac_cv_h_errno_cppflags=yes
22754 ac_cv_h_errno_cppflags=no
22757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22758 if test "$ac_cv_h_errno_cppflags" = "no"; then
22759 ac_save="$CPPFLAGS"
22760 for flag in _XOPEN_SOURCE_EXTENDED; do
22762 if test x$flag != x; then
22763 CPPFLAGS="-D$flag $CPPFLAGS"
22765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22766 /* end confdefs.h. */
22768 #ifdef HAVE_SYS_TYPES_H
22769 #include <sys/types.h>
22771 #ifdef HAVE_NETDB_H
22785 if ac_fn_c_try_compile "$LINENO"; then :
22787 if test x$flag != x; then
22788 ac_cv_h_errno_cppflags="$flag"
22790 ac_cv_h_errno_cppflags=yes
22795 ac_cv_h_errno_cppflags=no
22798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22799 if test "$ac_cv_h_errno_cppflags" != "no"; then
22803 CPPFLAGS="$ac_save"
22808 if test "$ac_cv_h_errno_cppflags" != "no"; then
22809 if test "$ac_cv_h_errno_cppflags" != "yes"; then
22810 CPPFLAGS="-D$ac_cv_h_errno_cppflags $CPPFLAGS"
22811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -D$ac_cv_h_errno_cppflags" >&5
22812 $as_echo "yes, with -D$ac_cv_h_errno_cppflags" >&6; }
22814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_h_errno_cppflags" >&5
22815 $as_echo "$ac_cv_h_errno_cppflags" >&6; }
22818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_h_errno_cppflags" >&5
22819 $as_echo "$ac_cv_h_errno_cppflags" >&6; }
22822 if test "$ac_cv_h_errno_cflags" = "no"; then
22823 as_fn_error $? "can not find h_errno in netdb.h" "$LINENO" 5
22827 # Check whether --enable-allocator-uses-mmap was given.
22828 if test "${enable_allocator_uses_mmap+set}" = set; then :
22829 enableval=$enable_allocator_uses_mmap; if test "$enableval" = "yes"; then
22831 for ac_spec in header:sys/mman.h func:mmap func:munmap define:MAP_ANON; do
22832 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
22833 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
22836 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
22837 ac_var="ac_cv_header_$ac_item"
22840 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
22841 ac_var="ac_cv_file_$ac_item"
22843 func ) ac_var="ac_cv_func_$ac_item" ;;
22844 struct ) ac_var="ac_cv_struct_$ac_item" ;;
22845 define ) ac_var="ac_cv_define_$ac_item" ;;
22846 custom ) ac_var="$ac_item" ;;
22848 eval "ac_val=\$$ac_var"
22849 if test ".$ac_val" != .yes; then
22854 if test ".$ac_rc" = .yes; then
22857 $as_echo "#define APR_ALLOCATOR_USES_MMAP 1" >>confdefs.h
22861 as_fn_error $? "mmap()/MAP_ANON not supported" "$LINENO" 5
22870 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22871 if test "x$ac_cv_type_off_t" = xyes; then :
22875 cat >>confdefs.h <<_ACEOF
22876 #define off_t long int
22881 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22882 if test "x$ac_cv_type_pid_t" = xyes; then :
22886 cat >>confdefs.h <<_ACEOF
22892 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22893 if test "x$ac_cv_type_size_t" = xyes; then :
22897 cat >>confdefs.h <<_ACEOF
22898 #define size_t unsigned int
22903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22904 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22905 if ${ac_cv_type_uid_t+:} false; then :
22906 $as_echo_n "(cached) " >&6
22908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22909 /* end confdefs.h. */
22910 #include <sys/types.h>
22913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22914 $EGREP "uid_t" >/dev/null 2>&1; then :
22915 ac_cv_type_uid_t=yes
22917 ac_cv_type_uid_t=no
22922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
22923 $as_echo "$ac_cv_type_uid_t" >&6; }
22924 if test $ac_cv_type_uid_t = no; then
22926 $as_echo "#define uid_t int" >>confdefs.h
22929 $as_echo "#define gid_t int" >>confdefs.h
22933 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22934 if test "x$ac_cv_type_ssize_t" = xyes; then :
22938 cat >>confdefs.h <<_ACEOF
22939 #define ssize_t int
22944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
22945 $as_echo_n "checking for inline... " >&6; }
22946 if ${ac_cv_c_inline+:} false; then :
22947 $as_echo_n "(cached) " >&6
22950 for ac_kw in inline __inline__ __inline; do
22951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22952 /* end confdefs.h. */
22953 #ifndef __cplusplus
22955 static $ac_kw foo_t static_foo () {return 0; }
22956 $ac_kw foo_t foo () {return 0; }
22960 if ac_fn_c_try_compile "$LINENO"; then :
22961 ac_cv_c_inline=$ac_kw
22963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22964 test "$ac_cv_c_inline" != no && break
22968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
22969 $as_echo "$ac_cv_c_inline" >&6; }
22971 case $ac_cv_c_inline in
22974 case $ac_cv_c_inline in
22976 *) ac_val=$ac_cv_c_inline;;
22978 cat >>confdefs.h <<_ACEOF
22979 #ifndef __cplusplus
22980 #define inline $ac_val
22986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22987 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22988 if ${ac_cv_c_const+:} false; then :
22989 $as_echo_n "(cached) " >&6
22991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22992 /* end confdefs.h. */
22998 #ifndef __cplusplus
22999 /* Ultrix mips cc rejects this sort of thing. */
23000 typedef int charset[2];
23001 const charset cs = { 0, 0 };
23002 /* SunOS 4.1.1 cc rejects this. */
23003 char const *const *pcpcc;
23005 /* NEC SVR4.0.2 mips cc rejects this. */
23006 struct point {int x, y;};
23007 static struct point const zero = {0,0};
23008 /* AIX XL C 1.02.0.0 rejects this.
23009 It does not let you subtract one const X* pointer from another in
23010 an arm of an if-expression whose if-part is not a constant
23012 const char *g = "string";
23013 pcpcc = &g + (g ? g-g : 0);
23014 /* HPUX 7.0 cc rejects these. */
23016 ppc = (char**) pcpcc;
23017 pcpcc = (char const *const *) ppc;
23018 { /* SCO 3.2v4 cc rejects this sort of thing. */
23021 char const *s = 0 ? (char *) 0 : (char const *) 0;
23026 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23027 int x[] = {25, 17};
23028 const int *foo = &x[0];
23031 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23032 typedef const int *iptr;
23036 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
23037 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23038 struct s { int j; const int *ap[3]; } bx;
23039 struct s *b = &bx; b->j = 5;
23041 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23042 const int foo = 10;
23043 if (!foo) return 0;
23045 return !cs[0] && !zero.x;
23052 if ac_fn_c_try_compile "$LINENO"; then :
23057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
23060 $as_echo "$ac_cv_c_const" >&6; }
23061 if test $ac_cv_c_const = no; then
23063 $as_echo "#define const /**/" >>confdefs.h
23067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
23068 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
23069 if ${ac_cv_func_setpgrp_void+:} false; then :
23070 $as_echo_n "(cached) " >&6
23072 if test "$cross_compiling" = yes; then :
23073 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
23075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23076 /* end confdefs.h. */
23077 $ac_includes_default
23081 /* If this system has a BSD-style setpgrp which takes arguments,
23082 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
23083 exit successfully. */
23084 return setpgrp (1,1) != -1;
23089 if ac_fn_c_try_run "$LINENO"; then :
23090 ac_cv_func_setpgrp_void=no
23092 ac_cv_func_setpgrp_void=yes
23094 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23095 conftest.$ac_objext conftest.beam conftest.$ac_ext
23099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
23100 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
23101 if test $ac_cv_func_setpgrp_void = yes; then
23103 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
23109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
23110 $as_echo_n "checking for socklen_t... " >&6; }
23111 if ${ac_cv_socklen_t+:} false; then :
23112 $as_echo_n "(cached) " >&6
23115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23116 /* end confdefs.h. */
23118 #ifdef HAVE_SYS_TYPES_H
23119 #include <sys/types.h>
23121 #ifdef HAVE_SYS_SOCKET_H
23122 #include <sys/socket.h>
23129 socklen_t foo = (socklen_t) 0;
23135 if ac_fn_c_try_compile "$LINENO"; then :
23137 ac_cv_socklen_t=yes
23144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_socklen_t" >&5
23148 $as_echo "$ac_cv_socklen_t" >&6; }
23150 if test "$ac_cv_socklen_t" = "yes"; then
23152 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
23157 # The cast to long int works around a bug in the HP C Compiler
23158 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23159 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23160 # This bug is HP SR number 8606223364.
23161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
23162 $as_echo_n "checking size of void*... " >&6; }
23163 if ${ac_cv_sizeof_voidp+:} false; then :
23164 $as_echo_n "(cached) " >&6
23166 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
23169 if test "$ac_cv_type_voidp" = yes; then
23170 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23171 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23172 as_fn_error 77 "cannot compute sizeof (void*)
23173 See \`config.log' for more details" "$LINENO" 5; }
23175 ac_cv_sizeof_voidp=0
23180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
23181 $as_echo "$ac_cv_sizeof_voidp" >&6; }
23185 cat >>confdefs.h <<_ACEOF
23186 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
23191 if test "x$ac_cv_sizeof_voidp" != "x"; then
23192 voidp_size=$ac_cv_sizeof_voidp
23194 as_fn_error $? "Cannot determine size of void*" "$LINENO" 5
23197 # The cast to long int works around a bug in the HP C Compiler
23198 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23199 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23200 # This bug is HP SR number 8606223364.
23201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
23202 $as_echo_n "checking size of char... " >&6; }
23203 if ${ac_cv_sizeof_char+:} false; then :
23204 $as_echo_n "(cached) " >&6
23206 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
23209 if test "$ac_cv_type_char" = yes; then
23210 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23211 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23212 as_fn_error 77 "cannot compute sizeof (char)
23213 See \`config.log' for more details" "$LINENO" 5; }
23215 ac_cv_sizeof_char=0
23220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
23221 $as_echo "$ac_cv_sizeof_char" >&6; }
23225 cat >>confdefs.h <<_ACEOF
23226 #define SIZEOF_CHAR $ac_cv_sizeof_char
23230 # The cast to long int works around a bug in the HP C Compiler
23231 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23232 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23233 # This bug is HP SR number 8606223364.
23234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
23235 $as_echo_n "checking size of int... " >&6; }
23236 if ${ac_cv_sizeof_int+:} false; then :
23237 $as_echo_n "(cached) " >&6
23239 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
23242 if test "$ac_cv_type_int" = yes; then
23243 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23244 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23245 as_fn_error 77 "cannot compute sizeof (int)
23246 See \`config.log' for more details" "$LINENO" 5; }
23253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
23254 $as_echo "$ac_cv_sizeof_int" >&6; }
23258 cat >>confdefs.h <<_ACEOF
23259 #define SIZEOF_INT $ac_cv_sizeof_int
23263 # The cast to long int works around a bug in the HP C Compiler
23264 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23265 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23266 # This bug is HP SR number 8606223364.
23267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
23268 $as_echo_n "checking size of long... " >&6; }
23269 if ${ac_cv_sizeof_long+:} false; then :
23270 $as_echo_n "(cached) " >&6
23272 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
23275 if test "$ac_cv_type_long" = yes; then
23276 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23277 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23278 as_fn_error 77 "cannot compute sizeof (long)
23279 See \`config.log' for more details" "$LINENO" 5; }
23281 ac_cv_sizeof_long=0
23286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
23287 $as_echo "$ac_cv_sizeof_long" >&6; }
23291 cat >>confdefs.h <<_ACEOF
23292 #define SIZEOF_LONG $ac_cv_sizeof_long
23296 # The cast to long int works around a bug in the HP C Compiler
23297 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23298 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23299 # This bug is HP SR number 8606223364.
23300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
23301 $as_echo_n "checking size of short... " >&6; }
23302 if ${ac_cv_sizeof_short+:} false; then :
23303 $as_echo_n "(cached) " >&6
23305 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
23308 if test "$ac_cv_type_short" = yes; then
23309 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23310 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23311 as_fn_error 77 "cannot compute sizeof (short)
23312 See \`config.log' for more details" "$LINENO" 5; }
23314 ac_cv_sizeof_short=0
23319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
23320 $as_echo "$ac_cv_sizeof_short" >&6; }
23324 cat >>confdefs.h <<_ACEOF
23325 #define SIZEOF_SHORT $ac_cv_sizeof_short
23329 # The cast to long int works around a bug in the HP C Compiler
23330 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23331 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23332 # This bug is HP SR number 8606223364.
23333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
23334 $as_echo_n "checking size of long long... " >&6; }
23335 if ${ac_cv_sizeof_long_long+:} false; then :
23336 $as_echo_n "(cached) " >&6
23338 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
23341 if test "$ac_cv_type_long_long" = yes; then
23342 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23343 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23344 as_fn_error 77 "cannot compute sizeof (long long)
23345 See \`config.log' for more details" "$LINENO" 5; }
23347 ac_cv_sizeof_long_long=0
23352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
23353 $as_echo "$ac_cv_sizeof_long_long" >&6; }
23357 cat >>confdefs.h <<_ACEOF
23358 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23363 if test "$ac_cv_sizeof_short" = "2"; then
23366 if test "$ac_cv_sizeof_int" = "4"; then
23369 # Now we need to find what apr_int64_t (sizeof == 8) will be.
23370 # The first match is our preference.
23371 if test "$ac_cv_sizeof_int" = "8"; then
23372 int64_literal='#define APR_INT64_C(val) (val)'
23373 uint64_literal='#define APR_UINT64_C(val) (val##U)'
23374 int64_t_fmt='#define APR_INT64_T_FMT "d"'
23375 uint64_t_fmt='#define APR_UINT64_T_FMT "u"'
23376 uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "x"'
23379 int64_strfn="strtoi"
23380 elif test "$ac_cv_sizeof_long" = "8"; then
23381 int64_literal='#define APR_INT64_C(val) (val##L)'
23382 uint64_literal='#define APR_UINT64_C(val) (val##UL)'
23383 int64_t_fmt='#define APR_INT64_T_FMT "ld"'
23384 uint64_t_fmt='#define APR_UINT64_T_FMT "lu"'
23385 uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "lx"'
23388 int64_strfn="strtol"
23389 elif test "$ac_cv_sizeof_long_long" = "8"; then
23390 int64_literal='#define APR_INT64_C(val) (val##LL)'
23391 uint64_literal='#define APR_UINT64_C(val) (val##ULL)'
23392 # Linux, Solaris, FreeBSD all support ll with printf.
23393 # BSD 4.4 originated 'q'. Solaris is more popular and
23394 # doesn't support 'q'. Solaris wins. Exceptions can
23395 # go to the OS-dependent section.
23396 int64_t_fmt='#define APR_INT64_T_FMT "lld"'
23397 uint64_t_fmt='#define APR_UINT64_T_FMT "llu"'
23398 uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "llx"'
23399 int64_value="long long"
23400 long_value="long long"
23401 int64_strfn="strtoll"
23402 elif test "$ac_cv_sizeof_longlong" = "8"; then
23403 int64_literal='#define APR_INT64_C(val) (val##LL)'
23404 uint64_literal='#define APR_UINT64_C(val) (val##ULL)'
23405 int64_t_fmt='#define APR_INT64_T_FMT "qd"'
23406 uint64_t_fmt='#define APR_UINT64_T_FMT "qu"'
23407 uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "qx"'
23408 int64_value="__int64"
23409 long_value="__int64"
23410 int64_strfn="strtoll"
23412 # int64_literal may be overriden if your compiler thinks you have
23413 # a 64-bit value but APR does not agree.
23414 as_fn_error $? "could not detect a 64-bit integer type" "$LINENO" 5
23417 # If present, allow the C99 macro INT64_C to override our conversion.
23419 # HP-UX's ANSI C compiler provides this without any includes, so we
23420 # will first look for INT64_C without adding stdint.h
23421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for INT64_C" >&5
23422 $as_echo_n "checking for INT64_C... " >&6; }
23423 if ${apr_cv_define_INT64_C+:} false; then :
23424 $as_echo_n "(cached) " >&6
23427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23428 /* end confdefs.h. */
23433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23434 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
23435 apr_cv_define_INT64_C=yes
23438 # Now check for INT64_C in stdint.h
23439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23440 /* end confdefs.h. */
23441 #include <stdint.h>
23446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23447 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
23448 apr_cv_define_INT64_C=yes
23450 apr_cv_define_INT64_C=no
23458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_define_INT64_C" >&5
23459 $as_echo "$apr_cv_define_INT64_C" >&6; }
23461 if test "$apr_cv_define_INT64_C" = "yes"; then
23462 int64_literal='#define APR_INT64_C(val) INT64_C(val)'
23463 uint64_literal='#define APR_UINT64_C(val) UINT64_C(val)'
23469 if test "$ac_cv_type_size_t" = "yes"; then
23470 size_t_value="size_t"
23472 size_t_value="apr_int32_t"
23474 if test "$ac_cv_type_ssize_t" = "yes"; then
23475 ssize_t_value="ssize_t"
23477 ssize_t_value="apr_int32_t"
23479 if test "$ac_cv_socklen_t" = "yes"; then
23480 socklen_t_value="socklen_t"
23483 if test "$ac_cv_sizeof_long" = "8"; then
23484 # 64-bit HP-UX requires 32-bit socklens in
23485 # kernel, but user-space declarations say
23486 # 64-bit (socklen_t == size_t == long).
23487 # This will result in many compile warnings,
23488 # but we're functionally busted otherwise.
23489 socklen_t_value="int"
23494 socklen_t_value="int"
23497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5
23498 $as_echo_n "checking size of pid_t... " >&6; }
23499 if ${ac_cv_sizeof_pid_t+:} false; then :
23500 $as_echo_n "(cached) " >&6
23502 if test "$cross_compiling" = yes; then :
23503 ac_cv_sizeof_pid_t=8
23505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23506 /* end confdefs.h. */
23508 #include <sys/types.h>
23510 #define binmode "b"
23516 FILE *f=fopen("conftestval", "w" binmode);
23518 fprintf(f, "%d\n", sizeof(pid_t));
23522 if ac_fn_c_try_run "$LINENO"; then :
23523 ac_cv_sizeof_pid_t=`cat conftestval`
23525 ac_cv_sizeof_pid_t=0
23527 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23528 conftest.$ac_objext conftest.beam conftest.$ac_ext
23532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5
23533 $as_echo "$ac_cv_sizeof_pid_t" >&6; }
23535 cat >>confdefs.h <<_ACEOF
23536 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
23541 if test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_short"; then
23542 pid_t_fmt='#define APR_PID_T_FMT "hd"'
23543 elif test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_int"; then
23544 pid_t_fmt='#define APR_PID_T_FMT "d"'
23545 elif test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_long"; then
23546 pid_t_fmt='#define APR_PID_T_FMT "ld"'
23547 elif test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_long_long"; then
23548 pid_t_fmt='#define APR_PID_T_FMT APR_INT64_T_FMT'
23550 pid_t_fmt='#error Can not determine the proper size for pid_t'
23553 # Basically, we have tried to figure out the correct format strings
23554 # for APR types which vary between platforms, but we don't always get
23558 # uniquely, the 31-bit Linux/s390 uses "unsigned long int"
23559 # for size_t rather than "unsigned int":
23567 if test "$ac_cv_sizeof_long" = "8"; then
23568 pid_t_fmt='#define APR_PID_T_FMT "d"'
23570 pid_t_fmt='#define APR_PID_T_FMT "ld"'
23594 int64_t_fmt='#define APR_INT64_T_FMT "I64d"'
23595 uint64_t_fmt='#define APR_UINT64_T_FMT "I64u"'
23596 uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "I64x"'
23597 int64_value="__int64"
23598 long_value="__int64"
23599 int64_strfn="_strtoi64"
23605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ssize_t and int are the same" >&5
23606 $as_echo_n "checking whether ssize_t and int are the same... " >&6; }
23607 if ${apr_cv_typematch_ssize_t_int+:} false; then :
23608 $as_echo_n "(cached) " >&6
23611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23612 /* end confdefs.h. */
23613 $ac_includes_default
23618 int foo[0 - !__builtin_types_compatible_p(ssize_t, int)];
23624 if ac_fn_c_try_compile "$LINENO"; then :
23625 apr_cv_typematch_ssize_t_int=yes
23628 apr_cv_typematch_ssize_t_int=no
23630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_ssize_t_int" >&5
23633 $as_echo "$apr_cv_typematch_ssize_t_int" >&6; }
23637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ssize_t and long are the same" >&5
23638 $as_echo_n "checking whether ssize_t and long are the same... " >&6; }
23639 if ${apr_cv_typematch_ssize_t_long+:} false; then :
23640 $as_echo_n "(cached) " >&6
23643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23644 /* end confdefs.h. */
23645 $ac_includes_default
23650 int foo[0 - !__builtin_types_compatible_p(ssize_t, long)];
23656 if ac_fn_c_try_compile "$LINENO"; then :
23657 apr_cv_typematch_ssize_t_long=yes
23660 apr_cv_typematch_ssize_t_long=no
23662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_ssize_t_long" >&5
23665 $as_echo "$apr_cv_typematch_ssize_t_long" >&6; }
23669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether size_t and unsigned int are the same" >&5
23670 $as_echo_n "checking whether size_t and unsigned int are the same... " >&6; }
23671 if ${apr_cv_typematch_size_t_unsigned_int+:} false; then :
23672 $as_echo_n "(cached) " >&6
23675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23676 /* end confdefs.h. */
23677 $ac_includes_default
23682 int foo[0 - !__builtin_types_compatible_p(size_t, unsigned int)];
23688 if ac_fn_c_try_compile "$LINENO"; then :
23689 apr_cv_typematch_size_t_unsigned_int=yes
23692 apr_cv_typematch_size_t_unsigned_int=no
23694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_size_t_unsigned_int" >&5
23697 $as_echo "$apr_cv_typematch_size_t_unsigned_int" >&6; }
23701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether size_t and unsigned long are the same" >&5
23702 $as_echo_n "checking whether size_t and unsigned long are the same... " >&6; }
23703 if ${apr_cv_typematch_size_t_unsigned_long+:} false; then :
23704 $as_echo_n "(cached) " >&6
23707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23708 /* end confdefs.h. */
23709 $ac_includes_default
23714 int foo[0 - !__builtin_types_compatible_p(size_t, unsigned long)];
23720 if ac_fn_c_try_compile "$LINENO"; then :
23721 apr_cv_typematch_size_t_unsigned_long=yes
23724 apr_cv_typematch_size_t_unsigned_long=no
23726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_size_t_unsigned_long" >&5
23729 $as_echo "$apr_cv_typematch_size_t_unsigned_long" >&6; }
23732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23733 $as_echo_n "checking size of ssize_t... " >&6; }
23734 if ${ac_cv_sizeof_ssize_t+:} false; then :
23735 $as_echo_n "(cached) " >&6
23737 if test "$cross_compiling" = yes; then :
23738 ac_cv_sizeof_ssize_t=8
23740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23741 /* end confdefs.h. */
23743 #include <sys/types.h>
23745 #define binmode "b"
23751 FILE *f=fopen("conftestval", "w" binmode);
23753 fprintf(f, "%d\n", sizeof(ssize_t));
23757 if ac_fn_c_try_run "$LINENO"; then :
23758 ac_cv_sizeof_ssize_t=`cat conftestval`
23760 ac_cv_sizeof_ssize_t=0
23762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23763 conftest.$ac_objext conftest.beam conftest.$ac_ext
23767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23768 $as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23770 cat >>confdefs.h <<_ACEOF
23771 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which format to use for apr_ssize_t" >&5
23777 $as_echo_n "checking which format to use for apr_ssize_t... " >&6; }
23778 if test -n "$ssize_t_fmt"; then
23779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: %$ssize_t_fmt" >&5
23780 $as_echo "%$ssize_t_fmt" >&6; }
23781 elif test "$ac_cv_sizeof_ssize_t" = "$ac_cv_sizeof_int"; then
23783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: %d" >&5
23784 $as_echo "%d" >&6; }
23785 elif test "$ac_cv_sizeof_ssize_t" = "$ac_cv_sizeof_long"; then
23787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: %ld" >&5
23788 $as_echo "%ld" >&6; }
23790 as_fn_error $? "could not determine the proper format for apr_ssize_t" "$LINENO" 5
23793 ssize_t_fmt="#define APR_SSIZE_T_FMT \"$ssize_t_fmt\""
23795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
23796 $as_echo_n "checking size of size_t... " >&6; }
23797 if ${ac_cv_sizeof_size_t+:} false; then :
23798 $as_echo_n "(cached) " >&6
23800 if test "$cross_compiling" = yes; then :
23801 ac_cv_sizeof_size_t=8
23803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23804 /* end confdefs.h. */
23806 #include <stddef.h>
23808 #define binmode "b"
23814 FILE *f=fopen("conftestval", "w" binmode);
23816 fprintf(f, "%d\n", sizeof(size_t));
23820 if ac_fn_c_try_run "$LINENO"; then :
23821 ac_cv_sizeof_size_t=`cat conftestval`
23823 ac_cv_sizeof_size_t=0
23825 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23826 conftest.$ac_objext conftest.beam conftest.$ac_ext
23830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
23831 $as_echo "$ac_cv_sizeof_size_t" >&6; }
23833 cat >>confdefs.h <<_ACEOF
23834 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which format to use for apr_size_t" >&5
23840 $as_echo_n "checking which format to use for apr_size_t... " >&6; }
23841 if test -n "$size_t_fmt"; then
23842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: %$size_t_fmt" >&5
23843 $as_echo "%$size_t_fmt" >&6; }
23844 elif test "$ac_cv_sizeof_size_t" = "$ac_cv_sizeof_int"; then
23846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: %d" >&5
23847 $as_echo "%d" >&6; }
23848 elif test "$ac_cv_sizeof_size_t" = "$ac_cv_sizeof_long"; then
23850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: %ld" >&5
23851 $as_echo "%ld" >&6; }
23853 as_fn_error $? "could not determine the proper format for apr_size_t" "$LINENO" 5
23856 size_t_fmt="#define APR_SIZE_T_FMT \"$size_t_fmt\""
23858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
23859 $as_echo_n "checking size of off_t... " >&6; }
23860 if ${ac_cv_sizeof_off_t+:} false; then :
23861 $as_echo_n "(cached) " >&6
23863 if test "$cross_compiling" = yes; then :
23864 ac_cv_sizeof_off_t=8
23866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23867 /* end confdefs.h. */
23869 #include <sys/types.h>
23871 #define binmode "b"
23877 FILE *f=fopen("conftestval", "w" binmode);
23879 fprintf(f, "%d\n", sizeof(off_t));
23883 if ac_fn_c_try_run "$LINENO"; then :
23884 ac_cv_sizeof_off_t=`cat conftestval`
23886 ac_cv_sizeof_off_t=0
23888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23889 conftest.$ac_objext conftest.beam conftest.$ac_ext
23893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
23894 $as_echo "$ac_cv_sizeof_off_t" >&6; }
23896 cat >>confdefs.h <<_ACEOF
23897 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23902 if test "${ac_cv_sizeof_off_t}${apr_cv_use_lfs64}" = "4yes"; then
23905 for ac_func in mmap64 sendfile64 sendfilev64 mkstemp64 readdir64_r
23907 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23908 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23909 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23910 cat >>confdefs.h <<_ACEOF
23911 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23917 elif test "${ac_cv_sizeof_off_t}" != "${ac_cv_sizeof_size_t}"; then
23918 # unsure of using -gt above is as portable, can can't forsee where
23919 # off_t can legitimately be smaller than size_t
23925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which type to use for apr_off_t" >&5
23926 $as_echo_n "checking which type to use for apr_off_t... " >&6; }
23927 if test "${ac_cv_sizeof_off_t}${apr_cv_use_lfs64}" = "4yes"; then
23929 off_t_fmt='#define APR_OFF_T_FMT APR_INT64_T_FMT'
23930 off_t_value='off64_t'
23931 off_t_strfn='apr_strtoi64'
23932 elif test "${ac_cv_sizeof_off_t}x${ac_cv_sizeof_long}" = "4x4"; then
23933 # Special case: off_t may change size with _FILE_OFFSET_BITS
23934 # on 32-bit systems with LFS support. To avoid compatibility
23935 # issues when other packages do define _FILE_OFFSET_BITS,
23936 # hard-code apr_off_t to long.
23938 off_t_fmt='#define APR_OFF_T_FMT "ld"'
23939 off_t_strfn='strtol'
23940 elif test "$ac_cv_type_off_t" = "yes"; then
23942 # off_t is more commonly a long than an int; prefer that case
23943 # where int and long are the same size.
23944 if test "$ac_cv_sizeof_off_t" = "$ac_cv_sizeof_long"; then
23945 off_t_fmt='#define APR_OFF_T_FMT "ld"'
23946 off_t_strfn='strtol'
23947 elif test "$ac_cv_sizeof_off_t" = "$ac_cv_sizeof_int"; then
23948 off_t_fmt='#define APR_OFF_T_FMT "d"'
23949 off_t_strfn='strtoi'
23950 elif test "$ac_cv_sizeof_off_t" = "$ac_cv_sizeof_long_long"; then
23951 off_t_fmt='#define APR_OFF_T_FMT APR_INT64_T_FMT'
23952 off_t_strfn='apr_strtoi64'
23954 as_fn_error $? "could not determine the size of off_t" "$LINENO" 5
23959 off_t_value=apr_int64_t
23960 off_t_fmt='#define APR_OFF_T_FMT "I64d"'
23961 off_t_strfn='_strtoi64'
23966 off_t_value=apr_int32_t
23968 off_t_strfn='strtoi'
23970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $off_t_value" >&5
23971 $as_echo "$off_t_value" >&6; }
23973 # Regardless of whether _LARGEFILE64_SOURCE is used, on some
23974 # platforms _FILE_OFFSET_BITS will affect the size of ino_t and hence
23975 # the build-time ABI may be different from the apparent ABI when using
23976 # APR with another package which *does* define _FILE_OFFSET_BITS.
23977 # (Exactly as per the case above with off_t where LFS is *not* used)
23979 # To be safe, hard-code apr_ino_t as 'unsigned long' or 'unsigned int'
23980 # iff that is exactly the size of ino_t here; otherwise use ino_t as existing
23981 # releases did. To be correct, apr_ino_t should have been made an
23982 # ino64_t as apr_off_t is off64_t, but this can't be done now without
23988 ino_t_value=apr_int64_t
23992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ino_t" >&5
23993 $as_echo_n "checking size of ino_t... " >&6; }
23994 if ${ac_cv_sizeof_ino_t+:} false; then :
23995 $as_echo_n "(cached) " >&6
23997 if test "$cross_compiling" = yes; then :
23998 ac_cv_sizeof_ino_t=$ac_cv_sizeof_long
24000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24001 /* end confdefs.h. */
24003 $ac_includes_default
24005 #define binmode "b"
24011 FILE *f=fopen("conftestval", "w" binmode);
24013 fprintf(f, "%d\n", sizeof(ino_t));
24017 if ac_fn_c_try_run "$LINENO"; then :
24018 ac_cv_sizeof_ino_t=`cat conftestval`
24020 ac_cv_sizeof_ino_t=0
24022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24023 conftest.$ac_objext conftest.beam conftest.$ac_ext
24027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ino_t" >&5
24028 $as_echo "$ac_cv_sizeof_ino_t" >&6; }
24030 cat >>confdefs.h <<_ACEOF
24031 #define SIZEOF_INO_T $ac_cv_sizeof_ino_t
24035 if test $ac_cv_sizeof_ino_t = 4; then
24036 if test $ac_cv_sizeof_long = 4; then
24037 ino_t_value="unsigned long"
24039 ino_t_value="unsigned int"
24044 { $as_echo "$as_me:${as_lineno-$LINENO}: using $ino_t_value for ino_t" >&5
24045 $as_echo "$as_me: using $ino_t_value for ino_t" >&6;}
24047 # Checks for endianness
24048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
24049 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
24050 if ${ac_cv_c_bigendian+:} false; then :
24051 $as_echo_n "(cached) " >&6
24053 ac_cv_c_bigendian=unknown
24054 # See if we're dealing with a universal compiler.
24055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24056 /* end confdefs.h. */
24057 #ifndef __APPLE_CC__
24058 not a universal capable compiler
24063 if ac_fn_c_try_compile "$LINENO"; then :
24065 # Check for potential -arch flags. It is not universal unless
24066 # there are at least two -arch flags with different values.
24069 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
24070 if test -n "$ac_prev"; then
24072 i?86 | x86_64 | ppc | ppc64)
24073 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
24076 ac_cv_c_bigendian=universal
24082 elif test "x$ac_word" = "x-arch"; then
24087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24088 if test $ac_cv_c_bigendian = unknown; then
24089 # See if sys/param.h defines the BYTE_ORDER macro.
24090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24091 /* end confdefs.h. */
24092 #include <sys/types.h>
24093 #include <sys/param.h>
24098 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
24099 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
24101 bogus endian macros
24108 if ac_fn_c_try_compile "$LINENO"; then :
24109 # It does; now see whether it defined to BIG_ENDIAN or not.
24110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24111 /* end confdefs.h. */
24112 #include <sys/types.h>
24113 #include <sys/param.h>
24118 #if BYTE_ORDER != BIG_ENDIAN
24126 if ac_fn_c_try_compile "$LINENO"; then :
24127 ac_cv_c_bigendian=yes
24129 ac_cv_c_bigendian=no
24131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24135 if test $ac_cv_c_bigendian = unknown; then
24136 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
24137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24138 /* end confdefs.h. */
24139 #include <limits.h>
24144 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
24145 bogus endian macros
24152 if ac_fn_c_try_compile "$LINENO"; then :
24153 # It does; now see whether it defined to _BIG_ENDIAN or not.
24154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24155 /* end confdefs.h. */
24156 #include <limits.h>
24161 #ifndef _BIG_ENDIAN
24169 if ac_fn_c_try_compile "$LINENO"; then :
24170 ac_cv_c_bigendian=yes
24172 ac_cv_c_bigendian=no
24174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24178 if test $ac_cv_c_bigendian = unknown; then
24179 # Compile a test program.
24180 if test "$cross_compiling" = yes; then :
24181 # Try to guess by grepping values from an object file.
24182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24183 /* end confdefs.h. */
24184 short int ascii_mm[] =
24185 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
24186 short int ascii_ii[] =
24187 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
24188 int use_ascii (int i) {
24189 return ascii_mm[i] + ascii_ii[i];
24191 short int ebcdic_ii[] =
24192 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
24193 short int ebcdic_mm[] =
24194 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
24195 int use_ebcdic (int i) {
24196 return ebcdic_mm[i] + ebcdic_ii[i];
24203 return use_ascii (foo) == use_ebcdic (foo);
24208 if ac_fn_c_try_compile "$LINENO"; then :
24209 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
24210 ac_cv_c_bigendian=yes
24212 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
24213 if test "$ac_cv_c_bigendian" = unknown; then
24214 ac_cv_c_bigendian=no
24216 # finding both strings is unlikely to happen, but who knows?
24217 ac_cv_c_bigendian=unknown
24221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24224 /* end confdefs.h. */
24225 $ac_includes_default
24230 /* Are we little or big endian? From Harbison&Steele. */
24234 char c[sizeof (long int)];
24237 return u.c[sizeof (long int) - 1] == 1;
24243 if ac_fn_c_try_run "$LINENO"; then :
24244 ac_cv_c_bigendian=no
24246 ac_cv_c_bigendian=yes
24248 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24249 conftest.$ac_objext conftest.beam conftest.$ac_ext
24254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
24255 $as_echo "$ac_cv_c_bigendian" >&6; }
24256 case $ac_cv_c_bigendian in #(
24258 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
24264 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
24268 as_fn_error $? "unknown endianness
24269 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
24272 if test $ac_cv_c_bigendian = yes; then
24278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of struct iovec" >&5
24279 $as_echo_n "checking size of struct iovec... " >&6; }
24280 if ${ac_cv_sizeof_struct_iovec+:} false; then :
24281 $as_echo_n "(cached) " >&6
24283 if test "$cross_compiling" = yes; then :
24284 ac_cv_sizeof_struct_iovec=0
24286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24287 /* end confdefs.h. */
24289 #include <sys/types.h>
24290 #include <sys/uio.h>
24292 #define binmode "b"
24298 FILE *f=fopen("conftestval", "w" binmode);
24300 fprintf(f, "%d\n", sizeof(struct iovec));
24304 if ac_fn_c_try_run "$LINENO"; then :
24305 ac_cv_sizeof_struct_iovec=`cat conftestval`
24307 ac_cv_sizeof_struct_iovec=0
24309 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24310 conftest.$ac_objext conftest.beam conftest.$ac_ext
24314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_iovec" >&5
24315 $as_echo "$ac_cv_sizeof_struct_iovec" >&6; }
24317 cat >>confdefs.h <<_ACEOF
24318 #define SIZEOF_STRUCT_IOVEC $ac_cv_sizeof_struct_iovec
24322 if test "$ac_cv_sizeof_struct_iovec" = "0"; then
24352 for ac_func in strnicmp
24354 ac_fn_c_check_func "$LINENO" "strnicmp" "ac_cv_func_strnicmp"
24355 if test "x$ac_cv_func_strnicmp" = xyes; then :
24356 cat >>confdefs.h <<_ACEOF
24357 #define HAVE_STRNICMP 1
24365 for ac_func in strncasecmp
24367 ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
24368 if test "x$ac_cv_func_strncasecmp" = xyes; then :
24369 cat >>confdefs.h <<_ACEOF
24370 #define HAVE_STRNCASECMP 1
24372 have_strncasecmp="1"
24374 have_strncasecmp="0"
24378 for ac_func in stricmp
24380 ac_fn_c_check_func "$LINENO" "stricmp" "ac_cv_func_stricmp"
24381 if test "x$ac_cv_func_stricmp" = xyes; then :
24382 cat >>confdefs.h <<_ACEOF
24383 #define HAVE_STRICMP 1
24391 for ac_func in strcasecmp
24393 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
24394 if test "x$ac_cv_func_strcasecmp" = xyes; then :
24395 cat >>confdefs.h <<_ACEOF
24396 #define HAVE_STRCASECMP 1
24398 have_strcasecmp="1"
24400 have_strcasecmp="0"
24404 for ac_func in strdup
24406 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
24407 if test "x$ac_cv_func_strdup" = xyes; then :
24408 cat >>confdefs.h <<_ACEOF
24409 #define HAVE_STRDUP 1
24417 for ac_func in strstr
24419 ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
24420 if test "x$ac_cv_func_strstr" = xyes; then :
24421 cat >>confdefs.h <<_ACEOF
24422 #define HAVE_STRSTR 1
24430 for ac_func in memchr
24432 ac_fn_c_check_func "$LINENO" "memchr" "ac_cv_func_memchr"
24433 if test "x$ac_cv_func_memchr" = xyes; then :
24434 cat >>confdefs.h <<_ACEOF
24435 #define HAVE_MEMCHR 1
24443 as_ac_var=`$as_echo "ac_cv_func_$int64_strfn" | $as_tr_sh`
24444 ac_fn_c_check_func "$LINENO" "$int64_strfn" "$as_ac_var"
24445 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24446 have_int64_strfn="1"
24448 have_int64_strfn="0"
24452 if test "$have_int64_strfn" = "0" && test "$int64_strfn" = "strtoll"; then
24453 int64_strfn="strtoq"
24454 ac_fn_c_check_func "$LINENO" "strtoq" "ac_cv_func_strtoq"
24455 if test "x$ac_cv_func_strtoq" = xyes; then :
24463 if test "$have_int64_strfn" = "1"; then
24465 cat >>confdefs.h <<_ACEOF
24466 #define APR_INT64_STRFN $int64_strfn
24479 if test "$off_t_strfn" = "apr_strtoi64" && test "$have_int64_strfn" = "1"; then
24480 off_t_strfn=$int64_strfn
24483 cat >>confdefs.h <<_ACEOF
24484 #define APR_OFF_T_STRFN $off_t_strfn
24488 echo "${nl}Checking for DSO..."
24489 # Check whether --enable-dso was given.
24490 if test "${enable_dso+set}" = set; then :
24491 enableval=$enable_dso; if test "x$enableval" = "xyes"; then
24502 if test "$dsotype" = "any"; then
24503 if test "$dsotype" = "any"; then
24506 # Original Darwin, not for 9.0!:
24507 ac_fn_c_check_func "$LINENO" "NSLinkModule" "ac_cv_func_NSLinkModule"
24508 if test "x$ac_cv_func_NSLinkModule" = xyes; then :
24512 hppa*-hpux[1-9]\.*|hppa*-hpux1[01]*)
24513 # shl is specific to parisc hpux SOM binaries, not used for 64 bit
24514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
24515 $as_echo_n "checking for shl_load in -ldld... " >&6; }
24516 if ${ac_cv_lib_dld_shl_load+:} false; then :
24517 $as_echo_n "(cached) " >&6
24519 ac_check_lib_save_LIBS=$LIBS
24521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24522 /* end confdefs.h. */
24524 /* Override any GCC internal prototype to avoid an error.
24525 Use char because int might match the return type of a GCC
24526 builtin and then its argument prototype would still apply. */
24534 return shl_load ();
24539 if ac_fn_c_try_link "$LINENO"; then :
24540 ac_cv_lib_dld_shl_load=yes
24542 ac_cv_lib_dld_shl_load=no
24544 rm -f core conftest.err conftest.$ac_objext \
24545 conftest$ac_exeext conftest.$ac_ext
24546 LIBS=$ac_check_lib_save_LIBS
24548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
24549 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
24550 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
24554 if test "$ac_cv_sizeof_voidp$have_shl" = "41"; then
24556 if test "x$LIBS" = "x"; then
24557 test "x$silent" != "xyes" && echo " setting LIBS to \"-ldld\""
24560 apr_addto_bugger="-ldld"
24561 for i in $apr_addto_bugger; do
24562 apr_addto_duplicate="0"
24564 if test "x$i" = "x$j"; then
24565 apr_addto_duplicate="1"
24569 if test $apr_addto_duplicate = "0"; then
24570 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
24578 # several 'other's below probably belong up here. If they always
24579 # use a platform implementation and shouldn't test the dlopen/dlfcn
24580 # features, then bring them up here.
24581 # But if they -should- optionally use dlfcn, and/or need the config
24582 # detection of dlopen/dlsym, do not move them up.
24587 if test "$dsotype" = "any"; then
24588 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
24589 if test "x$ac_cv_func_dlopen" = xyes; then :
24594 if test "$dsotype" = "any"; then
24595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
24596 $as_echo_n "checking for dlopen in -ldl... " >&6; }
24597 if ${ac_cv_lib_dl_dlopen+:} false; then :
24598 $as_echo_n "(cached) " >&6
24600 ac_check_lib_save_LIBS=$LIBS
24602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24603 /* end confdefs.h. */
24605 /* Override any GCC internal prototype to avoid an error.
24606 Use char because int might match the return type of a GCC
24607 builtin and then its argument prototype would still apply. */
24620 if ac_fn_c_try_link "$LINENO"; then :
24621 ac_cv_lib_dl_dlopen=yes
24623 ac_cv_lib_dl_dlopen=no
24625 rm -f core conftest.err conftest.$ac_objext \
24626 conftest$ac_exeext conftest.$ac_ext
24627 LIBS=$ac_check_lib_save_LIBS
24629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
24630 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
24631 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
24633 if test "x$LIBS" = "x"; then
24634 test "x$silent" != "xyes" && echo " setting LIBS to \"-ldl\""
24637 apr_addto_bugger="-ldl"
24638 for i in $apr_addto_bugger; do
24639 apr_addto_duplicate="0"
24641 if test "x$i" = "x$j"; then
24642 apr_addto_duplicate="1"
24646 if test $apr_addto_duplicate = "0"; then
24647 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
24656 if test "$dsotype" = "dlfcn"; then
24657 # ReliantUnix has dlopen() in libc but dlsym() in libdl :(
24658 ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym"
24659 if test "x$ac_cv_func_dlsym" = xyes; then :
24662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
24663 $as_echo_n "checking for dlsym in -ldl... " >&6; }
24664 if ${ac_cv_lib_dl_dlsym+:} false; then :
24665 $as_echo_n "(cached) " >&6
24667 ac_check_lib_save_LIBS=$LIBS
24669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24670 /* end confdefs.h. */
24672 /* Override any GCC internal prototype to avoid an error.
24673 Use char because int might match the return type of a GCC
24674 builtin and then its argument prototype would still apply. */
24687 if ac_fn_c_try_link "$LINENO"; then :
24688 ac_cv_lib_dl_dlsym=yes
24690 ac_cv_lib_dl_dlsym=no
24692 rm -f core conftest.err conftest.$ac_objext \
24693 conftest$ac_exeext conftest.$ac_ext
24694 LIBS=$ac_check_lib_save_LIBS
24696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
24697 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
24698 if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
24700 if test "x$LIBS" = "x"; then
24701 test "x$silent" != "xyes" && echo " setting LIBS to \"-ldl\""
24704 apr_addto_bugger="-ldl"
24705 for i in $apr_addto_bugger; do
24706 apr_addto_duplicate="0"
24708 if test "x$i" = "x$j"; then
24709 apr_addto_duplicate="1"
24713 if test $apr_addto_duplicate = "0"; then
24714 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
24722 echo "Weird: dlopen() was found but dlsym() was not found!"
24728 if test "$dsotype" = "any"; then
24730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for load_image in -lroot" >&5
24731 $as_echo_n "checking for load_image in -lroot... " >&6; }
24732 if ${ac_cv_lib_root_load_image+:} false; then :
24733 $as_echo_n "(cached) " >&6
24735 ac_check_lib_save_LIBS=$LIBS
24736 LIBS="-lroot $LIBS"
24737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24738 /* end confdefs.h. */
24740 /* Override any GCC internal prototype to avoid an error.
24741 Use char because int might match the return type of a GCC
24742 builtin and then its argument prototype would still apply. */
24746 char load_image ();
24750 return load_image ();
24755 if ac_fn_c_try_link "$LINENO"; then :
24756 ac_cv_lib_root_load_image=yes
24758 ac_cv_lib_root_load_image=no
24760 rm -f core conftest.err conftest.$ac_objext \
24761 conftest$ac_exeext conftest.$ac_ext
24762 LIBS=$ac_check_lib_save_LIBS
24764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_root_load_image" >&5
24765 $as_echo "$ac_cv_lib_root_load_image" >&6; }
24766 if test "x$ac_cv_lib_root_load_image" = xyes; then :
24772 if test "$dsotype" = "any"; then
24774 *os390|*os400|*-aix*)
24775 # Some -aix5 will use dl, no hassles. Keep that pattern here.
24778 if test "$have_shl" = "1"; then
24780 if test "x$LIBS" = "x"; then
24781 test "x$silent" != "xyes" && echo " setting LIBS to \"-ldld\""
24784 apr_addto_bugger="-ldld"
24785 for i in $apr_addto_bugger; do
24786 apr_addto_duplicate="0"
24788 if test "x$i" = "x$j"; then
24789 apr_addto_duplicate="1"
24793 if test $apr_addto_duplicate = "0"; then
24794 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
24805 if test "$dsotype" = "any"; then
24806 as_fn_error $? "Could not detect suitable DSO implementation" "$LINENO" 5
24807 elif test "$dsotype" = "no"; then
24812 $as_echo "#define DSO_USE_DLFCN 1" >>confdefs.h
24815 $as_echo "#define DSO_USE_SHL 1" >>confdefs.h
24818 $as_echo "#define DSO_USE_DYLD 1" >>confdefs.h
24820 other) ;; # Use whatever is in dso/OSDIR
24821 *) as_fn_error $? "Unknown DSO implementation \"$dsotype\"" "$LINENO" 5;;
24824 apr_modules="$apr_modules dso"
24829 echo "${nl}Checking for Processes..."
24831 for ac_func in waitpid
24833 ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid"
24834 if test "x$ac_cv_func_waitpid" = xyes; then :
24835 cat >>confdefs.h <<_ACEOF
24836 #define HAVE_WAITPID 1
24843 # Check whether --enable-other-child was given.
24844 if test "${enable_other_child+set}" = set; then :
24845 enableval=$enable_other_child; if test "$enableval" = "yes"; then
24857 if test -z "$have_proc_invoked"; then
24858 have_proc_invoked="0"
24863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Variable Length Arrays" >&5
24864 $as_echo_n "checking for Variable Length Arrays... " >&6; }
24865 apr_save_CFLAGS=$CFLAGS
24866 CFLAGS="$CFLAGS $CFLAGS_WARN"
24867 if test "$ac_cv_c_compiler_gnu" = "yes"; then
24868 CFLAGS="$CFLAGS -Werror"
24870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24871 /* end confdefs.h. */
24872 #include "confdefs.h"
24875 int main(int argc, const char *const *argv) {
24883 if ac_fn_c_try_compile "$LINENO"; then :
24888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24889 CFLAGS=$apr_save_CFLAGS
24891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vla_msg" >&5
24892 $as_echo "$vla_msg" >&6; }
24893 if test "$vla_msg" = "yes"; then
24895 $as_echo "#define HAVE_VLA 1" >>confdefs.h
24899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct rlimit" >&5
24900 $as_echo_n "checking struct rlimit... " >&6; }
24901 if ${ac_cv_struct_rlimit+:} false; then :
24902 $as_echo_n "(cached) " >&6
24905 if test "$cross_compiling" = yes; then :
24907 ac_cv_struct_rlimit=no
24909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24910 /* end confdefs.h. */
24912 #include <sys/types.h>
24913 #include <sys/time.h>
24914 #include <sys/resource.h>
24917 struct rlimit limit;
24918 limit.rlim_cur = 0;
24919 limit.rlim_max = 0;
24923 if ac_fn_c_try_run "$LINENO"; then :
24925 ac_cv_struct_rlimit=yes
24928 ac_cv_struct_rlimit=no
24930 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24931 conftest.$ac_objext conftest.beam conftest.$ac_ext
24935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_rlimit" >&5
24936 $as_echo "$ac_cv_struct_rlimit" >&6; }
24938 test "x$ac_cv_struct_rlimit" = xyes && struct_rlimit=1
24941 echo "${nl}Checking for Locking..."
24943 for ac_func in semget semctl flock
24945 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24946 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24947 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24948 cat >>confdefs.h <<_ACEOF
24949 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24955 for ac_header in semaphore.h OS.h
24957 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24958 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24959 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24960 cat >>confdefs.h <<_ACEOF
24961 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_open" >&5
24969 $as_echo_n "checking for library containing sem_open... " >&6; }
24970 if ${ac_cv_search_sem_open+:} false; then :
24971 $as_echo_n "(cached) " >&6
24973 ac_func_search_save_LIBS=$LIBS
24974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24975 /* end confdefs.h. */
24977 /* Override any GCC internal prototype to avoid an error.
24978 Use char because int might match the return type of a GCC
24979 builtin and then its argument prototype would still apply. */
24987 return sem_open ();
24992 for ac_lib in '' rt; do
24993 if test -z "$ac_lib"; then
24994 ac_res="none required"
24997 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24999 if ac_fn_c_try_link "$LINENO"; then :
25000 ac_cv_search_sem_open=$ac_res
25002 rm -f core conftest.err conftest.$ac_objext \
25004 if ${ac_cv_search_sem_open+:} false; then :
25008 if ${ac_cv_search_sem_open+:} false; then :
25011 ac_cv_search_sem_open=no
25013 rm conftest.$ac_ext
25014 LIBS=$ac_func_search_save_LIBS
25016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_open" >&5
25017 $as_echo "$ac_cv_search_sem_open" >&6; }
25018 ac_res=$ac_cv_search_sem_open
25019 if test "$ac_res" != no; then :
25020 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25024 for ac_func in sem_close sem_unlink sem_post sem_wait create_sem
25026 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25027 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25028 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25029 cat >>confdefs.h <<_ACEOF
25030 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25037 # Some systems return ENOSYS from sem_open.
25038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working sem_open" >&5
25039 $as_echo_n "checking for working sem_open... " >&6; }
25040 if ${ac_cv_func_sem_open+:} false; then :
25041 $as_echo_n "(cached) " >&6
25044 if test "$cross_compiling" = yes; then :
25045 ac_cv_func_sem_open=no
25047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25048 /* end confdefs.h. */
25051 #include <stdlib.h>
25053 #include <semaphore.h>
25055 #define SEM_FAILED (-1)
25060 const char *sem_name = "/apr_autoconf";
25062 psem = sem_open(sem_name, O_CREAT, 0644, 1);
25063 if (psem == (sem_t *)SEM_FAILED) {
25067 psem = sem_open(sem_name, O_CREAT | O_EXCL, 0644, 1);
25068 if (psem != (sem_t *)SEM_FAILED) {
25072 sem_unlink(sem_name);
25076 if ac_fn_c_try_run "$LINENO"; then :
25077 ac_cv_func_sem_open=yes
25079 ac_cv_func_sem_open=no
25081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25082 conftest.$ac_objext conftest.beam conftest.$ac_ext
25086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_sem_open" >&5
25087 $as_echo "$ac_cv_func_sem_open" >&6; }
25089 # It's stupid, but not all platforms have union semun, even those that need it.
25090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for union semun in sys/sem.h" >&5
25091 $as_echo_n "checking for union semun in sys/sem.h... " >&6; }
25092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25093 /* end confdefs.h. */
25095 #include <sys/types.h>
25096 #include <sys/ipc.h>
25097 #include <sys/sem.h>
25104 semctl(0, 0, 0, arg);
25110 if ac_fn_c_try_compile "$LINENO"; then :
25111 have_union_semun="1" union_semun=yes
25115 have_union_semun="0"
25118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
25120 $as_echo "$msg" >&6; }
25124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOCK_EX in sys/file.h" >&5
25125 $as_echo_n "checking for LOCK_EX in sys/file.h... " >&6; }
25126 if ${ac_cv_define_LOCK_EX+:} false; then :
25127 $as_echo_n "(cached) " >&6
25130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25131 /* end confdefs.h. */
25133 #include <sys/file.h>
25139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25140 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
25141 ac_cv_define_LOCK_EX=yes
25143 ac_cv_define_LOCK_EX=no
25149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_LOCK_EX" >&5
25150 $as_echo "$ac_cv_define_LOCK_EX" >&6; }
25151 if test "$ac_cv_define_LOCK_EX" = "yes"; then
25153 $as_echo "#define HAVE_LOCK_EX 1" >>confdefs.h
25158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLK in fcntl.h" >&5
25159 $as_echo_n "checking for F_SETLK in fcntl.h... " >&6; }
25160 if ${ac_cv_define_F_SETLK+:} false; then :
25161 $as_echo_n "(cached) " >&6
25164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25165 /* end confdefs.h. */
25173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25174 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
25175 ac_cv_define_F_SETLK=yes
25177 ac_cv_define_F_SETLK=no
25183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_F_SETLK" >&5
25184 $as_echo "$ac_cv_define_F_SETLK" >&6; }
25185 if test "$ac_cv_define_F_SETLK" = "yes"; then
25187 $as_echo "#define HAVE_F_SETLK 1" >>confdefs.h
25192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SEM_UNDO in sys/sem.h" >&5
25193 $as_echo_n "checking for SEM_UNDO in sys/sem.h... " >&6; }
25194 if ${ac_cv_define_SEM_UNDO+:} false; then :
25195 $as_echo_n "(cached) " >&6
25198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25199 /* end confdefs.h. */
25201 #include <sys/sem.h>
25207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25208 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
25209 ac_cv_define_SEM_UNDO=yes
25211 ac_cv_define_SEM_UNDO=no
25217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_SEM_UNDO" >&5
25218 $as_echo "$ac_cv_define_SEM_UNDO" >&6; }
25219 if test "$ac_cv_define_SEM_UNDO" = "yes"; then
25221 $as_echo "#define HAVE_SEM_UNDO 1" >>confdefs.h
25226 # We are assuming that if the platform doesn't have POLLIN, it doesn't have
25227 # any POLL definitions.
25229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POLLIN in poll.h sys/poll.h" >&5
25230 $as_echo_n "checking for POLLIN in poll.h sys/poll.h... " >&6; }
25231 if ${ac_cv_define_POLLIN+:} false; then :
25232 $as_echo_n "(cached) " >&6
25235 ac_cv_define_POLLIN=no
25236 for curhdr in poll.h sys/poll.h
25238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25239 /* end confdefs.h. */
25247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25248 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
25249 ac_cv_define_POLLIN=yes
25256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_POLLIN" >&5
25257 $as_echo "$ac_cv_define_POLLIN" >&6; }
25258 if test "$ac_cv_define_POLLIN" = "yes"; then
25260 $as_echo "#define HAVE_POLLIN 1" >>confdefs.h
25265 if test "$threads" = "1"; then
25267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PROCESS_SHARED in pthread.h" >&5
25268 $as_echo_n "checking for PTHREAD_PROCESS_SHARED in pthread.h... " >&6; }
25269 if ${ac_cv_define_PTHREAD_PROCESS_SHARED+:} false; then :
25270 $as_echo_n "(cached) " >&6
25273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25274 /* end confdefs.h. */
25276 #include <pthread.h>
25277 #ifdef PTHREAD_PROCESS_SHARED
25282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25283 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
25284 ac_cv_define_PTHREAD_PROCESS_SHARED=yes
25286 ac_cv_define_PTHREAD_PROCESS_SHARED=no
25292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_PTHREAD_PROCESS_SHARED" >&5
25293 $as_echo "$ac_cv_define_PTHREAD_PROCESS_SHARED" >&6; }
25294 if test "$ac_cv_define_PTHREAD_PROCESS_SHARED" = "yes"; then
25296 $as_echo "#define HAVE_PTHREAD_PROCESS_SHARED 1" >>confdefs.h
25300 for ac_func in pthread_mutexattr_setpshared
25302 ac_fn_c_check_func "$LINENO" "pthread_mutexattr_setpshared" "ac_cv_func_pthread_mutexattr_setpshared"
25303 if test "x$ac_cv_func_pthread_mutexattr_setpshared" = xyes; then :
25304 cat >>confdefs.h <<_ACEOF
25305 #define HAVE_PTHREAD_MUTEXATTR_SETPSHARED 1
25311 # Some systems have setpshared and define PROCESS_SHARED, but don't
25312 # really support PROCESS_SHARED locks. So, we must validate that we
25313 # can go through the steps without receiving some sort of system error.
25314 # Linux and older versions of AIX have this problem.
25316 for ac_spec in header:pthread.h define:PTHREAD_PROCESS_SHARED func:pthread_mutexattr_setpshared; do
25317 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25318 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25321 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25322 ac_var="ac_cv_header_$ac_item"
25325 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25326 ac_var="ac_cv_file_$ac_item"
25328 func ) ac_var="ac_cv_func_$ac_item" ;;
25329 struct ) ac_var="ac_cv_struct_$ac_item" ;;
25330 define ) ac_var="ac_cv_define_$ac_item" ;;
25331 custom ) ac_var="$ac_item" ;;
25333 eval "ac_val=\$$ac_var"
25334 if test ".$ac_val" != .yes; then
25339 if test ".$ac_rc" = .yes; then
25342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working PROCESS_SHARED locks" >&5
25343 $as_echo_n "checking for working PROCESS_SHARED locks... " >&6; }
25344 if ${apr_cv_process_shared_works+:} false; then :
25345 $as_echo_n "(cached) " >&6
25348 if test "$cross_compiling" = yes; then :
25349 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25350 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25351 as_fn_error $? "cannot run test program while cross compiling
25352 See \`config.log' for more details" "$LINENO" 5; }
25354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25355 /* end confdefs.h. */
25357 #include <sys/types.h>
25358 #include <pthread.h>
25361 pthread_mutex_t mutex;
25362 pthread_mutexattr_t attr;
25363 if (pthread_mutexattr_init(&attr))
25365 if (pthread_mutexattr_setpshared(&attr, PTHREAD_PROCESS_SHARED))
25367 if (pthread_mutex_init(&mutex, &attr))
25369 if (pthread_mutexattr_destroy(&attr))
25371 if (pthread_mutex_destroy(&mutex))
25376 if ac_fn_c_try_run "$LINENO"; then :
25377 apr_cv_process_shared_works=yes
25379 apr_cv_process_shared_works=no
25381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25382 conftest.$ac_objext conftest.beam conftest.$ac_ext
25386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_process_shared_works" >&5
25387 $as_echo "$apr_cv_process_shared_works" >&6; }
25388 # Override detection of pthread_mutexattr_setpshared
25389 ac_cv_func_pthread_mutexattr_setpshared=$apr_cv_process_shared_works
25396 if test "$ac_cv_func_pthread_mutexattr_setpshared" = "yes"; then
25398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for robust cross-process mutex support" >&5
25399 $as_echo_n "checking for robust cross-process mutex support... " >&6; }
25400 if ${apr_cv_mutex_robust_shared+:} false; then :
25401 $as_echo_n "(cached) " >&6
25403 if test "$cross_compiling" = yes; then :
25404 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25405 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25406 as_fn_error $? "cannot run test program while cross compiling
25407 See \`config.log' for more details" "$LINENO" 5; }
25409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25410 /* end confdefs.h. */
25412 #include <sys/types.h>
25413 #include <pthread.h>
25414 #include <stdlib.h>
25416 int main(int argc, char **argv)
25418 pthread_mutex_t mutex;
25419 pthread_mutexattr_t attr;
25421 if (pthread_mutexattr_init(&attr))
25423 if (pthread_mutexattr_setpshared(&attr, PTHREAD_PROCESS_SHARED))
25425 if (pthread_mutexattr_setrobust_np(&attr, PTHREAD_MUTEX_ROBUST_NP))
25427 if (pthread_mutexattr_setprotocol(&attr, PTHREAD_PRIO_INHERIT))
25429 if (pthread_mutex_init(&mutex, &attr))
25431 if (pthread_mutexattr_destroy(&attr))
25433 if (pthread_mutex_destroy(&mutex))
25439 if ac_fn_c_try_run "$LINENO"; then :
25440 apr_cv_mutex_robust_shared=yes
25442 apr_cv_mutex_robust_shared=no
25444 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25445 conftest.$ac_objext conftest.beam conftest.$ac_ext
25449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_mutex_robust_shared" >&5
25450 $as_echo "$apr_cv_mutex_robust_shared" >&6; }
25452 if test "$apr_cv_mutex_robust_shared" = "yes"; then
25454 $as_echo "#define HAVE_PTHREAD_MUTEX_ROBUST 1" >>confdefs.h
25461 # See which lock mechanisms we can support on this system.
25463 for ac_spec in header:semaphore.h func:sem_open func:sem_close func:sem_unlink func:sem_post func:sem_wait; do
25464 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25465 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25468 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25469 ac_var="ac_cv_header_$ac_item"
25472 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25473 ac_var="ac_cv_file_$ac_item"
25475 func ) ac_var="ac_cv_func_$ac_item" ;;
25476 struct ) ac_var="ac_cv_struct_$ac_item" ;;
25477 define ) ac_var="ac_cv_define_$ac_item" ;;
25478 custom ) ac_var="$ac_item" ;;
25480 eval "ac_val=\$$ac_var"
25481 if test ".$ac_val" != .yes; then
25486 if test ".$ac_rc" = .yes; then
25495 for ac_spec in func:semget func:semctl define:SEM_UNDO; do
25496 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25497 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25500 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25501 ac_var="ac_cv_header_$ac_item"
25504 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25505 ac_var="ac_cv_file_$ac_item"
25507 func ) ac_var="ac_cv_func_$ac_item" ;;
25508 struct ) ac_var="ac_cv_struct_$ac_item" ;;
25509 define ) ac_var="ac_cv_define_$ac_item" ;;
25510 custom ) ac_var="$ac_item" ;;
25512 eval "ac_val=\$$ac_var"
25513 if test ".$ac_val" != .yes; then
25518 if test ".$ac_rc" = .yes; then
25527 for ac_spec in func:flock define:LOCK_EX; do
25528 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25529 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25532 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25533 ac_var="ac_cv_header_$ac_item"
25536 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25537 ac_var="ac_cv_file_$ac_item"
25539 func ) ac_var="ac_cv_func_$ac_item" ;;
25540 struct ) ac_var="ac_cv_struct_$ac_item" ;;
25541 define ) ac_var="ac_cv_define_$ac_item" ;;
25542 custom ) ac_var="$ac_item" ;;
25544 eval "ac_val=\$$ac_var"
25545 if test ".$ac_val" != .yes; then
25550 if test ".$ac_rc" = .yes; then
25559 for ac_spec in header:fcntl.h define:F_SETLK; do
25560 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25561 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25564 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25565 ac_var="ac_cv_header_$ac_item"
25568 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25569 ac_var="ac_cv_file_$ac_item"
25571 func ) ac_var="ac_cv_func_$ac_item" ;;
25572 struct ) ac_var="ac_cv_struct_$ac_item" ;;
25573 define ) ac_var="ac_cv_define_$ac_item" ;;
25574 custom ) ac_var="$ac_item" ;;
25576 eval "ac_val=\$$ac_var"
25577 if test ".$ac_val" != .yes; then
25582 if test ".$ac_rc" = .yes; then
25590 # note: the current APR use of shared mutex requires /dev/zero
25592 for ac_spec in header:pthread.h define:PTHREAD_PROCESS_SHARED func:pthread_mutexattr_setpshared file:/dev/zero; do
25593 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25594 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25597 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25598 ac_var="ac_cv_header_$ac_item"
25601 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25602 ac_var="ac_cv_file_$ac_item"
25604 func ) ac_var="ac_cv_func_$ac_item" ;;
25605 struct ) ac_var="ac_cv_struct_$ac_item" ;;
25606 define ) ac_var="ac_cv_define_$ac_item" ;;
25607 custom ) ac_var="$ac_item" ;;
25609 eval "ac_val=\$$ac_var"
25610 if test ".$ac_val" != .yes; then
25615 if test ".$ac_rc" = .yes; then
25617 hasprocpthreadser="1"
25620 hasprocpthreadser="0"
25624 for ac_spec in header:OS.h func:create_sem; do
25625 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25626 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25629 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25630 ac_var="ac_cv_header_$ac_item"
25633 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25634 ac_var="ac_cv_file_$ac_item"
25636 func ) ac_var="ac_cv_func_$ac_item" ;;
25637 struct ) ac_var="ac_cv_struct_$ac_item" ;;
25638 define ) ac_var="ac_cv_define_$ac_item" ;;
25639 custom ) ac_var="$ac_item" ;;
25641 eval "ac_val=\$$ac_var"
25642 if test ".$ac_val" != .yes; then
25647 if test ".$ac_rc" = .yes; then
25656 # See which lock mechanism we'll select by default on this system.
25657 # The last APR_DECIDE to execute sets the default.
25658 # At this stage, we match the ordering in Apache 1.3
25659 # which is (highest to lowest): sysvsem -> fcntl -> flock.
25660 # POSIX semaphores and cross-process pthread mutexes are not
25661 # used by default since they have less desirable behaviour when
25662 # e.g. a process holding the mutex segfaults.
25663 # The BEOSSEM decision doesn't require any substitutions but is
25664 # included here to prevent the fcntl() branch being selected
25665 # from the decision making.
25666 ac_decision_item='apr_lock implementation method'
25667 ac_decision_msg='FAILED'
25671 for ac_spec in func:flock define:LOCK_EX; do
25672 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25673 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25676 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25677 ac_var="ac_cv_header_$ac_item"
25680 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25681 ac_var="ac_cv_file_$ac_item"
25683 func ) ac_var="ac_cv_func_$ac_item" ;;
25684 struct ) ac_var="ac_cv_struct_$ac_item" ;;
25685 define ) ac_var="ac_cv_define_$ac_item" ;;
25686 custom ) ac_var="$ac_item" ;;
25688 eval "ac_val=\$$ac_var"
25689 if test ".$ac_val" != .yes; then
25694 if test ".$ac_rc" = .yes; then
25697 ac_decision='USE_FLOCK_SERIALIZE'
25698 ac_decision_msg='4.2BSD-style flock()'
25699 ac_decision_USE_FLOCK_SERIALIZE=yes
25700 ac_decision_USE_FLOCK_SERIALIZE_msg='4.2BSD-style flock()'
25708 for ac_spec in header:fcntl.h define:F_SETLK; do
25709 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25710 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25713 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25714 ac_var="ac_cv_header_$ac_item"
25717 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25718 ac_var="ac_cv_file_$ac_item"
25720 func ) ac_var="ac_cv_func_$ac_item" ;;
25721 struct ) ac_var="ac_cv_struct_$ac_item" ;;
25722 define ) ac_var="ac_cv_define_$ac_item" ;;
25723 custom ) ac_var="$ac_item" ;;
25725 eval "ac_val=\$$ac_var"
25726 if test ".$ac_val" != .yes; then
25731 if test ".$ac_rc" = .yes; then
25734 ac_decision='USE_FCNTL_SERIALIZE'
25735 ac_decision_msg='SVR4-style fcntl()'
25736 ac_decision_USE_FCNTL_SERIALIZE=yes
25737 ac_decision_USE_FCNTL_SERIALIZE_msg='SVR4-style fcntl()'
25745 for ac_spec in func:semget func:semctl define:SEM_UNDO; do
25746 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25747 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25750 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25751 ac_var="ac_cv_header_$ac_item"
25754 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25755 ac_var="ac_cv_file_$ac_item"
25757 func ) ac_var="ac_cv_func_$ac_item" ;;
25758 struct ) ac_var="ac_cv_struct_$ac_item" ;;
25759 define ) ac_var="ac_cv_define_$ac_item" ;;
25760 custom ) ac_var="$ac_item" ;;
25762 eval "ac_val=\$$ac_var"
25763 if test ".$ac_val" != .yes; then
25768 if test ".$ac_rc" = .yes; then
25771 ac_decision='USE_SYSVSEM_SERIALIZE'
25772 ac_decision_msg='SysV IPC semget()'
25773 ac_decision_USE_SYSVSEM_SERIALIZE=yes
25774 ac_decision_USE_SYSVSEM_SERIALIZE_msg='SysV IPC semget()'
25782 for ac_spec in header:OS.h func:create_sem; do
25783 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25784 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25787 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25788 ac_var="ac_cv_header_$ac_item"
25791 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25792 ac_var="ac_cv_file_$ac_item"
25794 func ) ac_var="ac_cv_func_$ac_item" ;;
25795 struct ) ac_var="ac_cv_struct_$ac_item" ;;
25796 define ) ac_var="ac_cv_define_$ac_item" ;;
25797 custom ) ac_var="$ac_item" ;;
25799 eval "ac_val=\$$ac_var"
25800 if test ".$ac_val" != .yes; then
25805 if test ".$ac_rc" = .yes; then
25808 ac_decision='USE_BEOSSEM'
25809 ac_decision_msg='BeOS Semaphores'
25810 ac_decision_USE_BEOSSEM=yes
25811 ac_decision_USE_BEOSSEM_msg='BeOS Semaphores'
25818 if test "x$apr_lock_method" != "x"; then
25819 ac_decision="$apr_lock_method"
25820 eval "ac_decision_msg=\"\$ac_decision_${ac_decision}_msg\""
25823 if test ".$ac_decision" = .; then
25824 echo "$0:Error: decision on $ac_decision_item failed" 1>&2
25827 if test ".$ac_decision_msg" = .; then
25828 ac_decision_msg="$ac_decision"
25830 cat >>confdefs.h <<_ACEOF
25831 #define ${ac_decision_item} 1
25834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: decision on $ac_decision_item... $ac_decision_msg" >&5
25835 $as_echo "decision on $ac_decision_item... $ac_decision_msg" >&6; }
25838 cat >>confdefs.h <<_ACEOF
25839 #define $ac_decision 1
25848 case $ac_decision in
25849 USE_FLOCK_SERIALIZE )
25852 USE_FCNTL_SERIALIZE )
25855 USE_SYSVSEM_SERIALIZE )
25858 USE_POSIXSEM_SERIALIZE )
25861 USE_PROC_PTHREAD_SERIALIZE )
25869 if test $hasfcntlser = "1"; then
25870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl returns EACCES when F_SETLK is already held" >&5
25871 $as_echo_n "checking if fcntl returns EACCES when F_SETLK is already held... " >&6; }
25872 if test "$cross_compiling" = yes; then :
25873 apr_fcntl_tryacquire_eacces=0
25875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25876 /* end confdefs.h. */
25878 #ifdef HAVE_STDLIB_H
25879 #include <stdlib.h>
25881 #ifdef HAVE_SYS_TYPES_H
25882 #include <sys/types.h>
25884 #ifdef HAVE_SYS_STAT_H
25885 #include <sys/stat.h>
25887 #ifdef HAVE_SYS_WAIT_H
25888 #include <sys/wait.h>
25890 #if defined(HAVE_UNISTD_H)
25891 #include <unistd.h>
25897 struct flock proc_mutex_lock_it = {0};
25898 const char *fname = "conftest.fcntl";
25903 proc_mutex_lock_it.l_whence = SEEK_SET; /* from current point */
25904 proc_mutex_lock_it.l_type = F_WRLCK; /* set exclusive/write lock */
25906 fd = creat(fname, S_IRWXU);
25909 if (rc = lockit()) {
25921 exit(WEXITSTATUS(status) != EACCES);
25927 rc = fcntl(fd, F_SETLK, &proc_mutex_lock_it);
25928 } while ( rc < 0 && errno == EINTR);
25930 return (rc < 0) ? errno : 0;
25933 if ac_fn_c_try_run "$LINENO"; then :
25934 apr_fcntl_tryacquire_eacces=1
25936 apr_fcntl_tryacquire_eacces=0
25938 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25939 conftest.$ac_objext conftest.beam conftest.$ac_ext
25944 if test "$apr_fcntl_tryacquire_eacces" = "1"; then
25946 $as_echo "#define FCNTL_TRYACQUIRE_EACCES 1" >>confdefs.h
25948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25949 $as_echo "yes" >&6; }
25951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25952 $as_echo "no" >&6; }
25968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if all interprocess locks affect threads" >&5
25969 $as_echo_n "checking if all interprocess locks affect threads... " >&6; }
25970 if test "x$apr_process_lock_is_global" = "xyes"; then
25972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25973 $as_echo "yes" >&6; }
25976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25977 $as_echo "no" >&6; }
25982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if POSIX sems affect threads in the same process" >&5
25983 $as_echo_n "checking if POSIX sems affect threads in the same process... " >&6; }
25984 if test "x$apr_posixsem_is_global" = "xyes"; then
25986 $as_echo "#define POSIXSEM_IS_GLOBAL 1" >>confdefs.h
25988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25989 $as_echo "yes" >&6; }
25991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25992 $as_echo "no" >&6; }
25995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SysV sems affect threads in the same process" >&5
25996 $as_echo_n "checking if SysV sems affect threads in the same process... " >&6; }
25997 if test "x$apr_sysvsem_is_global" = "xyes"; then
25999 $as_echo "#define SYSVSEM_IS_GLOBAL 1" >>confdefs.h
26001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26002 $as_echo "yes" >&6; }
26004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26005 $as_echo "no" >&6; }
26008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl locks affect threads in the same process" >&5
26009 $as_echo_n "checking if fcntl locks affect threads in the same process... " >&6; }
26010 if test "x$apr_fcntl_is_global" = "xyes"; then
26012 $as_echo "#define FCNTL_IS_GLOBAL 1" >>confdefs.h
26014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26015 $as_echo "yes" >&6; }
26017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26018 $as_echo "no" >&6; }
26021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if flock locks affect threads in the same process" >&5
26022 $as_echo_n "checking if flock locks affect threads in the same process... " >&6; }
26023 if test "x$apr_flock_is_global" = "xyes"; then
26025 $as_echo "#define FLOCK_IS_GLOBAL 1" >>confdefs.h
26027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26028 $as_echo "yes" >&6; }
26030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26031 $as_echo "no" >&6; }
26034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for entropy source" >&5
26035 $as_echo_n "checking for entropy source... " >&6; }
26040 # Check whether --with-egd was given.
26041 if test "${with_egd+set}" = set; then :
26043 $as_echo "#define HAVE_EGD 1" >>confdefs.h
26045 if test "$withval" = "yes"; then
26047 cat >>confdefs.h <<_ACEOF
26048 #define EGD_DEFAULT_SOCKET "/var/run/egd-pool","/dev/egd-pool","/etc/egd-pool","/etc/entropy"
26052 cat >>confdefs.h <<_ACEOF
26053 #define EGD_DEFAULT_SOCKET "$withval"
26057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: EGD-compatible daemon" >&5
26058 $as_echo "EGD-compatible daemon" >&6; }
26064 if test "$rand" != "1"; then
26066 # Check whether --with-devrandom was given.
26067 if test "${with_devrandom+set}" = set; then :
26068 withval=$with_devrandom; apr_devrandom="$withval"
26070 apr_devrandom="yes"
26074 if test "$apr_devrandom" = "yes"; then
26075 # /dev/random on OpenBSD doesn't provide random data, so
26076 # prefer /dev/arandom, which does; see random(4).
26077 for f in /dev/arandom /dev/urandom /dev/random; do
26078 if test -r $f; then
26084 elif test "$apr_devrandom" != "no"; then
26085 if test -r "$apr_devrandom"; then
26088 as_fn_error $? "$apr_devrandom not found or unreadable." "$LINENO" 5
26092 if test "$rand" = "1"; then
26095 if test $os_version -lt 1700; then
26097 why_no_rand=" ($apr_devrandom unusable on z/OS before V1R7)"
26103 if test "$rand" = "1"; then
26105 cat >>confdefs.h <<_ACEOF
26106 #define DEV_RANDOM "$apr_devrandom"
26109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_devrandom" >&5
26110 $as_echo "$apr_devrandom" >&6; }
26114 if test "$rand" != "1"; then
26116 # we have built in support for OS/2
26118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using OS/2 builtin random" >&5
26119 $as_echo "Using OS/2 builtin random" >&6; }
26123 if test "$rand" != "1"; then
26124 if test "$ac_cv_lib_truerand_main" = "yes"; then
26126 $as_echo "#define HAVE_TRUERAND 1" >>confdefs.h
26128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: truerand" >&5
26129 $as_echo "truerand" >&6; }
26132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found$why_no_rand" >&5
26133 $as_echo "not found$why_no_rand" >&6; }
26143 echo "${nl}Checking for File Info Support..."
26144 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "
26145 #ifdef HAVE_SYS_TYPES_H
26146 #include <sys/types.h>
26148 #ifdef HAVE_SYS_STAT_H
26149 #include <sys/stat.h>
26151 #ifdef HAVE_UNISTD_H
26152 #include <unistd.h>
26155 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
26157 cat >>confdefs.h <<_ACEOF
26158 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26163 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "
26164 #ifdef HAVE_SYS_TYPES_H
26165 #include <sys/types.h>
26167 #ifdef HAVE_SYS_STAT_H
26168 #include <sys/stat.h>
26170 #ifdef HAVE_UNISTD_H
26171 #include <unistd.h>
26174 if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then :
26176 cat >>confdefs.h <<_ACEOF
26177 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
26182 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctimensec" "ac_cv_member_struct_stat_st_ctimensec" "
26183 #ifdef HAVE_SYS_TYPES_H
26184 #include <sys/types.h>
26186 #ifdef HAVE_SYS_STAT_H
26187 #include <sys/stat.h>
26189 #ifdef HAVE_UNISTD_H
26190 #include <unistd.h>
26193 if test "x$ac_cv_member_struct_stat_st_ctimensec" = xyes; then :
26195 cat >>confdefs.h <<_ACEOF
26196 #define HAVE_STRUCT_STAT_ST_CTIMENSEC 1
26201 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" "
26202 #ifdef HAVE_SYS_TYPES_H
26203 #include <sys/types.h>
26205 #ifdef HAVE_SYS_STAT_H
26206 #include <sys/stat.h>
26208 #ifdef HAVE_UNISTD_H
26209 #include <unistd.h>
26212 if test "x$ac_cv_member_struct_stat_st_mtimensec" = xyes; then :
26214 cat >>confdefs.h <<_ACEOF
26215 #define HAVE_STRUCT_STAT_ST_MTIMENSEC 1
26220 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "
26221 #ifdef HAVE_SYS_TYPES_H
26222 #include <sys/types.h>
26224 #ifdef HAVE_SYS_STAT_H
26225 #include <sys/stat.h>
26227 #ifdef HAVE_UNISTD_H
26228 #include <unistd.h>
26231 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes; then :
26233 cat >>confdefs.h <<_ACEOF
26234 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
26239 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim.tv_nsec" "ac_cv_member_struct_stat_st_ctim_tv_nsec" "
26240 #ifdef HAVE_SYS_TYPES_H
26241 #include <sys/types.h>
26243 #ifdef HAVE_SYS_STAT_H
26244 #include <sys/stat.h>
26246 #ifdef HAVE_UNISTD_H
26247 #include <unistd.h>
26250 if test "x$ac_cv_member_struct_stat_st_ctim_tv_nsec" = xyes; then :
26252 cat >>confdefs.h <<_ACEOF
26253 #define HAVE_STRUCT_STAT_ST_CTIM_TV_NSEC 1
26258 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.tv_nsec" "ac_cv_member_struct_stat_st_mtim_tv_nsec" "
26259 #ifdef HAVE_SYS_TYPES_H
26260 #include <sys/types.h>
26262 #ifdef HAVE_SYS_STAT_H
26263 #include <sys/stat.h>
26265 #ifdef HAVE_UNISTD_H
26266 #include <unistd.h>
26269 if test "x$ac_cv_member_struct_stat_st_mtim_tv_nsec" = xyes; then :
26271 cat >>confdefs.h <<_ACEOF
26272 #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
26277 ac_fn_c_check_member "$LINENO" "struct stat" "st_atime_n" "ac_cv_member_struct_stat_st_atime_n" "
26278 #ifdef HAVE_SYS_TYPES_H
26279 #include <sys/types.h>
26281 #ifdef HAVE_SYS_STAT_H
26282 #include <sys/stat.h>
26284 #ifdef HAVE_UNISTD_H
26285 #include <unistd.h>
26288 if test "x$ac_cv_member_struct_stat_st_atime_n" = xyes; then :
26290 cat >>confdefs.h <<_ACEOF
26291 #define HAVE_STRUCT_STAT_ST_ATIME_N 1
26296 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime_n" "ac_cv_member_struct_stat_st_ctime_n" "
26297 #ifdef HAVE_SYS_TYPES_H
26298 #include <sys/types.h>
26300 #ifdef HAVE_SYS_STAT_H
26301 #include <sys/stat.h>
26303 #ifdef HAVE_UNISTD_H
26304 #include <unistd.h>
26307 if test "x$ac_cv_member_struct_stat_st_ctime_n" = xyes; then :
26309 cat >>confdefs.h <<_ACEOF
26310 #define HAVE_STRUCT_STAT_ST_CTIME_N 1
26315 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime_n" "ac_cv_member_struct_stat_st_mtime_n" "
26316 #ifdef HAVE_SYS_TYPES_H
26317 #include <sys/types.h>
26319 #ifdef HAVE_SYS_STAT_H
26320 #include <sys/stat.h>
26322 #ifdef HAVE_UNISTD_H
26323 #include <unistd.h>
26326 if test "x$ac_cv_member_struct_stat_st_mtime_n" = xyes; then :
26328 cat >>confdefs.h <<_ACEOF
26329 #define HAVE_STRUCT_STAT_ST_MTIME_N 1
26337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inode member of struct dirent" >&5
26338 $as_echo_n "checking for inode member of struct dirent... " >&6; }
26339 if ${apr_cv_dirent_inode+:} false; then :
26340 $as_echo_n "(cached) " >&6
26343 apr_cv_dirent_inode=no
26344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26345 /* end confdefs.h. */
26347 #include <sys/types.h>
26348 #include <dirent.h>
26357 struct dirent de; de.d_fileno;
26363 if ac_fn_c_try_compile "$LINENO"; then :
26364 apr_cv_dirent_inode=d_fileno
26366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26367 if test "$apr_cv_dirent_inode" = "no"; then
26368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26369 /* end confdefs.h. */
26371 #include <sys/types.h>
26372 #include <dirent.h>
26381 struct dirent de; de.d_ino;
26387 if ac_fn_c_try_compile "$LINENO"; then :
26388 apr_cv_dirent_inode=d_ino
26390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_dirent_inode" >&5
26395 $as_echo "$apr_cv_dirent_inode" >&6; }
26396 if test "$apr_cv_dirent_inode" != "no"; then
26398 cat >>confdefs.h <<_ACEOF
26399 #define DIRENT_INODE $apr_cv_dirent_inode
26405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file type member of struct dirent" >&5
26406 $as_echo_n "checking for file type member of struct dirent... " >&6; }
26407 if ${apr_cv_dirent_type+:} false; then :
26408 $as_echo_n "(cached) " >&6
26411 apr_cv_dirent_type=no
26412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26413 /* end confdefs.h. */
26415 #include <sys/types.h>
26416 #include <dirent.h>
26422 struct dirent de; de.d_type = DT_REG;
26428 if ac_fn_c_try_compile "$LINENO"; then :
26429 apr_cv_dirent_type=d_type
26431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_dirent_type" >&5
26435 $as_echo "$apr_cv_dirent_type" >&6; }
26436 if test "$apr_cv_dirent_type" != "no"; then
26438 cat >>confdefs.h <<_ACEOF
26439 #define DIRENT_TYPE $apr_cv_dirent_type
26445 echo "${nl}Checking for OS UUID Support..."
26447 for ac_header in uuid.h uuid/uuid.h sys/uuid.h
26449 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26450 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26451 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26452 cat >>confdefs.h <<_ACEOF
26453 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26461 apr_revert_save_LIBS=$LIBS
26463 # Prefer the flavor(s) that live in libc;
26464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_create" >&5
26465 $as_echo_n "checking for library containing uuid_create... " >&6; }
26466 if ${ac_cv_search_uuid_create+:} false; then :
26467 $as_echo_n "(cached) " >&6
26469 ac_func_search_save_LIBS=$LIBS
26470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26471 /* end confdefs.h. */
26473 /* Override any GCC internal prototype to avoid an error.
26474 Use char because int might match the return type of a GCC
26475 builtin and then its argument prototype would still apply. */
26479 char uuid_create ();
26483 return uuid_create ();
26488 for ac_lib in '' uuid; do
26489 if test -z "$ac_lib"; then
26490 ac_res="none required"
26493 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26495 if ac_fn_c_try_link "$LINENO"; then :
26496 ac_cv_search_uuid_create=$ac_res
26498 rm -f core conftest.err conftest.$ac_objext \
26500 if ${ac_cv_search_uuid_create+:} false; then :
26504 if ${ac_cv_search_uuid_create+:} false; then :
26507 ac_cv_search_uuid_create=no
26509 rm conftest.$ac_ext
26510 LIBS=$ac_func_search_save_LIBS
26512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_create" >&5
26513 $as_echo "$ac_cv_search_uuid_create" >&6; }
26514 ac_res=$ac_cv_search_uuid_create
26515 if test "$ac_res" != no; then :
26516 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_generate" >&5
26521 $as_echo_n "checking for library containing uuid_generate... " >&6; }
26522 if ${ac_cv_search_uuid_generate+:} false; then :
26523 $as_echo_n "(cached) " >&6
26525 ac_func_search_save_LIBS=$LIBS
26526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26527 /* end confdefs.h. */
26529 /* Override any GCC internal prototype to avoid an error.
26530 Use char because int might match the return type of a GCC
26531 builtin and then its argument prototype would still apply. */
26535 char uuid_generate ();
26539 return uuid_generate ();
26544 for ac_lib in '' uuid; do
26545 if test -z "$ac_lib"; then
26546 ac_res="none required"
26549 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26551 if ac_fn_c_try_link "$LINENO"; then :
26552 ac_cv_search_uuid_generate=$ac_res
26554 rm -f core conftest.err conftest.$ac_objext \
26556 if ${ac_cv_search_uuid_generate+:} false; then :
26560 if ${ac_cv_search_uuid_generate+:} false; then :
26563 ac_cv_search_uuid_generate=no
26565 rm conftest.$ac_ext
26566 LIBS=$ac_func_search_save_LIBS
26568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_generate" >&5
26569 $as_echo "$ac_cv_search_uuid_generate" >&6; }
26570 ac_res=$ac_cv_search_uuid_generate
26571 if test "$ac_res" != no; then :
26572 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26576 if test "$ac_cv_search_uuid_create" = "none required" -o \
26577 "$ac_cv_search_uuid_generate" = "none required"; then
26578 LIBS=$apr_revert_save_LIBS
26581 for ac_func in uuid_create uuid_generate
26583 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26584 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26585 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26586 cat >>confdefs.h <<_ACEOF
26587 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for os uuid usability" >&5
26595 $as_echo_n "checking for os uuid usability... " >&6; }
26596 if ${apr_cv_osuuid+:} false; then :
26597 $as_echo_n "(cached) " >&6
26600 # Ensure this test closely mirrors misc/unix/rand.c!
26602 #if defined(HAVE_SYS_TYPES_H)
26603 #include <sys/types.h>
26605 #if defined(HAVE_UNISTD_H)
26606 #include <unistd.h>
26608 #if defined(HAVE_UUID_H)
26610 #elif defined(HAVE_UUID_UUID_H)
26611 #include <uuid/uuid.h>
26612 #elif defined(HAVE_SYS_UUID_H)
26613 #include <sys/uuid.h>
26617 if test $ac_cv_func_uuid_create = yes; then
26618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26619 /* end confdefs.h. */
26627 uuid_create(&g, &s);
26628 if (s == uuid_s_ok) s = 0;
26634 if ac_fn_c_try_link "$LINENO"; then :
26637 apr_cv_func_uuid_create=no
26639 rm -f core conftest.err conftest.$ac_objext \
26640 conftest$ac_exeext conftest.$ac_ext
26642 if test $ac_cv_func_uuid_generate = yes; then
26643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26644 /* end confdefs.h. */
26657 if ac_fn_c_try_link "$LINENO"; then :
26660 apr_cv_func_uuid_generate=no
26662 rm -f core conftest.err conftest.$ac_objext \
26663 conftest$ac_exeext conftest.$ac_ext
26667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_osuuid" >&5
26668 $as_echo "$apr_cv_osuuid" >&6; }
26670 if test $apr_cv_osuuid = yes; then
26674 LIBS=$apr_revert_save_LIBS
26679 echo "${nl}Checking for Time Support..."
26681 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "
26682 #include <sys/types.h>
26685 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
26687 cat >>confdefs.h <<_ACEOF
26688 #define HAVE_STRUCT_TM_TM_GMTOFF 1
26693 ac_fn_c_check_member "$LINENO" "struct tm" "__tm_gmtoff" "ac_cv_member_struct_tm___tm_gmtoff" "
26694 #include <sys/types.h>
26697 if test "x$ac_cv_member_struct_tm___tm_gmtoff" = xyes; then :
26699 cat >>confdefs.h <<_ACEOF
26700 #define HAVE_STRUCT_TM___TM_GMTOFF 1
26707 echo "${nl}Checking for Networking support..."
26709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type in_addr" >&5
26710 $as_echo_n "checking for type in_addr... " >&6; }
26711 if ${ac_cv_type_in_addr+:} false; then :
26712 $as_echo_n "(cached) " >&6
26715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26716 /* end confdefs.h. */
26718 #ifdef HAVE_SYS_TYPES_H
26719 #include <sys/types.h>
26721 #ifdef HAVE_NETINET_IN_H
26722 #include <netinet/in.h>
26724 #ifdef HAVE_WINSOCK2_H
26725 #include <winsock2.h>
26732 struct in_addr arg;
26733 arg.s_addr = htonl(INADDR_ANY);
26739 if ac_fn_c_try_compile "$LINENO"; then :
26740 ac_cv_type_in_addr="yes"
26743 ac_cv_type_in_addr="no"
26745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_in_addr" >&5
26749 $as_echo "$ac_cv_type_in_addr" >&6; }
26751 if test "$ac_cv_type_in_addr" = "yes"; then
26757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fd == socket on this platform" >&5
26758 $as_echo_n "checking if fd == socket on this platform... " >&6; }
26759 if test "x$file_as_socket" != "x0" ; then
26760 file_as_socket="1";
26769 if test "$ac_cv_func_poll $file_as_socket" = "yes 1"; then
26771 $as_echo "#define WAITIO_USES_POLL 1" >>confdefs.h
26775 # Check the types only if we have gethostbyname_r
26776 if test "$ac_cv_func_gethostbyname_r" = "yes"; then
26779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking style of gethostbyname_r routine" >&5
26780 $as_echo_n "checking style of gethostbyname_r routine... " >&6; }
26781 if ${ac_cv_gethostbyname_r_style+:} false; then :
26782 $as_echo_n "(cached) " >&6
26784 apr_save_CFLAGS=$CFLAGS
26785 CFLAGS="$CFLAGS $CFLAGS_WARN"
26786 if test "$ac_cv_c_compiler_gnu" = "yes"; then
26787 CFLAGS="$CFLAGS -Werror"
26789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26790 /* end confdefs.h. */
26791 #include "confdefs.h"
26794 #ifdef HAVE_SYS_TYPES_H
26795 #include <sys/types.h>
26797 #ifdef HAVE_NETINET_IN_H
26798 #include <netinet/in.h>
26800 #ifdef HAVE_ARPA_INET_H
26801 #include <arpa/inet.h>
26803 #ifdef HAVE_NETDB_H
26806 #ifdef HAVE_STDLIB_H
26807 #include <stdlib.h>
26810 int main(int argc, const char *const *argv) {
26812 int tmp = gethostbyname_r((const char *) 0, (struct hostent *) 0,
26813 (char *) 0, 0, (struct hostent **) 0, &tmp);
26814 /* use tmp to suppress the warning */
26820 if ac_fn_c_try_compile "$LINENO"; then :
26821 ac_cv_gethostbyname_r_style=glibc2
26823 ac_cv_gethostbyname_r_style=none
26825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26826 CFLAGS=$apr_save_CFLAGS
26829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gethostbyname_r_style" >&5
26830 $as_echo "$ac_cv_gethostbyname_r_style" >&6; }
26832 if test "$ac_cv_gethostbyname_r_style" = "glibc2"; then
26834 $as_echo "#define GETHOSTBYNAME_R_GLIBC2 1" >>confdefs.h
26838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking 3rd argument to the gethostbyname_r routines" >&5
26839 $as_echo_n "checking 3rd argument to the gethostbyname_r routines... " >&6; }
26840 if ${ac_cv_gethostbyname_r_arg+:} false; then :
26841 $as_echo_n "(cached) " >&6
26843 apr_save_CFLAGS=$CFLAGS
26844 CFLAGS="$CFLAGS $CFLAGS_WARN"
26845 if test "$ac_cv_c_compiler_gnu" = "yes"; then
26846 CFLAGS="$CFLAGS -Werror"
26848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26849 /* end confdefs.h. */
26850 #include "confdefs.h"
26853 #ifdef HAVE_SYS_TYPES_H
26854 #include <sys/types.h>
26856 #ifdef HAVE_NETINET_IN_H
26857 #include <netinet/in.h>
26859 #ifdef HAVE_ARPA_INET_H
26860 #include <arpa/inet.h>
26862 #ifdef HAVE_NETDB_H
26865 #ifdef HAVE_STDLIB_H
26866 #include <stdlib.h>
26869 int main(int argc, const char *const *argv) {
26871 int tmp = gethostbyname_r((const char *) 0, (struct hostent *) 0,
26872 (struct hostent_data *) 0);
26873 /* use tmp to suppress the warning */
26879 if ac_fn_c_try_compile "$LINENO"; then :
26880 ac_cv_gethostbyname_r_arg=hostent_data
26882 ac_cv_gethostbyname_r_arg=char
26884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26885 CFLAGS=$apr_save_CFLAGS
26888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gethostbyname_r_arg" >&5
26889 $as_echo "$ac_cv_gethostbyname_r_arg" >&6; }
26891 if test "$ac_cv_gethostbyname_r_arg" = "hostent_data"; then
26893 $as_echo "#define GETHOSTBYNAME_R_HOSTENT_DATA 1" >>confdefs.h
26899 # Check the types only if we have getservbyname_r
26900 if test "$ac_cv_func_getservbyname_r" = "yes"; then
26903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking style of getservbyname_r routine" >&5
26904 $as_echo_n "checking style of getservbyname_r routine... " >&6; }
26905 if ${ac_cv_getservbyname_r_style+:} false; then :
26906 $as_echo_n "(cached) " >&6
26909 apr_save_CFLAGS=$CFLAGS
26910 CFLAGS="$CFLAGS $CFLAGS_WARN"
26911 if test "$ac_cv_c_compiler_gnu" = "yes"; then
26912 CFLAGS="$CFLAGS -Werror"
26914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26915 /* end confdefs.h. */
26916 #include "confdefs.h"
26919 #ifdef HAVE_SYS_TYPES_H
26920 #include <sys/types.h>
26922 #ifdef HAVE_NETINET_IN_H
26923 #include <netinet/in.h>
26925 #ifdef HAVE_ARPA_INET_H
26926 #include <arpa/inet.h>
26928 #ifdef HAVE_NETDB_H
26931 #ifdef HAVE_STDLIB_H
26932 #include <stdlib.h>
26935 int main(int argc, const char *const *argv) {
26937 int tmp = getservbyname_r((const char *) 0, (const char *) 0,
26938 (struct servent *) 0, (char *) 0, 0,
26939 (struct servent **) 0);
26940 /* use tmp to suppress the warning */
26946 if ac_fn_c_try_compile "$LINENO"; then :
26947 ac_cv_getservbyname_r_style=glibc2
26949 ac_cv_getservbyname_r_style=none
26951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26952 CFLAGS=$apr_save_CFLAGS
26955 if test "$ac_cv_getservbyname_r_style" = "none"; then
26956 apr_save_CFLAGS=$CFLAGS
26957 CFLAGS="$CFLAGS $CFLAGS_WARN"
26958 if test "$ac_cv_c_compiler_gnu" = "yes"; then
26959 CFLAGS="$CFLAGS -Werror"
26961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26962 /* end confdefs.h. */
26963 #include "confdefs.h"
26966 #ifdef HAVE_SYS_TYPES_H
26967 #include <sys/types.h>
26969 #ifdef HAVE_NETINET_IN_H
26970 #include <netinet/in.h>
26972 #ifdef HAVE_ARPA_INET_H
26973 #include <arpa/inet.h>
26975 #ifdef HAVE_NETDB_H
26978 #ifdef HAVE_STDLIB_H
26979 #include <stdlib.h>
26982 int main(int argc, const char *const *argv) {
26984 struct servent *tmp = getservbyname_r((const char *) 0, (const char *) 0,
26985 (struct servent *) 0, (char *) 0, 0);
26986 /* use tmp to suppress the warning */
26992 if ac_fn_c_try_compile "$LINENO"; then :
26993 ac_cv_getservbyname_r_style=solaris
26995 ac_cv_getservbyname_r_style=none
26997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26998 CFLAGS=$apr_save_CFLAGS
27002 if test "$ac_cv_getservbyname_r_style" = "none"; then
27003 apr_save_CFLAGS=$CFLAGS
27004 CFLAGS="$CFLAGS $CFLAGS_WARN"
27005 if test "$ac_cv_c_compiler_gnu" = "yes"; then
27006 CFLAGS="$CFLAGS -Werror"
27008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27009 /* end confdefs.h. */
27010 #include "confdefs.h"
27013 #ifdef HAVE_SYS_TYPES_H
27014 #include <sys/types.h>
27016 #ifdef HAVE_NETINET_IN_H
27017 #include <netinet/in.h>
27019 #ifdef HAVE_ARPA_INET_H
27020 #include <arpa/inet.h>
27022 #ifdef HAVE_NETDB_H
27025 #ifdef HAVE_STDLIB_H
27026 #include <stdlib.h>
27029 int main(int argc, const char *const *argv) {
27031 int tmp = getservbyname_r((const char *) 0, (const char *) 0,
27032 (struct servent *) 0, (struct servent_data *) 0);
27033 /* use tmp to suppress the warning */
27039 if ac_fn_c_try_compile "$LINENO"; then :
27040 ac_cv_getservbyname_r_style=osf1
27042 ac_cv_getservbyname_r_style=none
27044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27045 CFLAGS=$apr_save_CFLAGS
27050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_getservbyname_r_style" >&5
27051 $as_echo "$ac_cv_getservbyname_r_style" >&6; }
27053 if test "$ac_cv_getservbyname_r_style" = "glibc2"; then
27055 $as_echo "#define GETSERVBYNAME_R_GLIBC2 1" >>confdefs.h
27057 elif test "$ac_cv_getservbyname_r_style" = "solaris"; then
27059 $as_echo "#define GETSERVBYNAME_R_SOLARIS 1" >>confdefs.h
27061 elif test "$ac_cv_getservbyname_r_style" = "osf1"; then
27063 $as_echo "#define GETSERVBYNAME_R_OSF1 1" >>confdefs.h
27070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TCP_NODELAY setting is inherited from listening sockets" >&5
27071 $as_echo_n "checking if TCP_NODELAY setting is inherited from listening sockets... " >&6; }
27072 if ${ac_cv_tcp_nodelay_inherited+:} false; then :
27073 $as_echo_n "(cached) " >&6
27076 if test "$cross_compiling" = yes; then :
27078 ac_cv_tcp_nodelay_inherited="yes"
27081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27082 /* end confdefs.h. */
27085 #ifdef HAVE_SYS_TYPES_H
27086 #include <sys/types.h>
27088 #ifdef HAVE_SYS_SOCKET_H
27089 #include <sys/socket.h>
27091 #ifdef HAVE_NETINET_IN_H
27092 #include <netinet/in.h>
27094 #ifdef HAVE_NETINET_TCP_H
27095 #include <netinet/tcp.h>
27097 #ifndef HAVE_SOCKLEN_T
27098 typedef int socklen_t;
27101 int listen_s, connected_s, client_s;
27102 int listen_port, rc;
27103 struct sockaddr_in sa;
27105 socklen_t option_len;
27108 listen_s = socket(AF_INET, SOCK_STREAM, 0);
27109 if (listen_s < 0) {
27114 rc = setsockopt(listen_s, IPPROTO_TCP, TCP_NODELAY, &option, sizeof option);
27116 perror("setsockopt TCP_NODELAY");
27119 memset(&sa, 0, sizeof sa);
27120 sa.sin_family = AF_INET;
27122 sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
27124 /* leave port 0 to get ephemeral */
27125 rc = bind(listen_s, (struct sockaddr *)&sa, sizeof sa);
27127 perror("bind for ephemeral port");
27130 /* find ephemeral port */
27131 sa_len = sizeof(sa);
27132 rc = getsockname(listen_s, (struct sockaddr *)&sa, &sa_len);
27134 perror("getsockname");
27137 listen_port = sa.sin_port;
27138 rc = listen(listen_s, 5);
27143 client_s = socket(AF_INET, SOCK_STREAM, 0);
27144 if (client_s < 0) {
27148 memset(&sa, 0, sizeof sa);
27149 sa.sin_family = AF_INET;
27150 sa.sin_port = listen_port;
27152 sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
27154 /* leave sin_addr all zeros to use loopback */
27155 rc = connect(client_s, (struct sockaddr *)&sa, sizeof sa);
27160 sa_len = sizeof sa;
27161 connected_s = accept(listen_s, (struct sockaddr *)&sa, &sa_len);
27162 if (connected_s < 0) {
27166 option_len = sizeof option;
27167 rc = getsockopt(connected_s, IPPROTO_TCP, TCP_NODELAY, &option, &option_len);
27169 perror("getsockopt");
27173 fprintf(stderr, "TCP_NODELAY is not set in the child.\n");
27180 if ac_fn_c_try_run "$LINENO"; then :
27182 ac_cv_tcp_nodelay_inherited="yes"
27186 ac_cv_tcp_nodelay_inherited="no"
27189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27190 conftest.$ac_objext conftest.beam conftest.$ac_ext
27194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tcp_nodelay_inherited" >&5
27195 $as_echo "$ac_cv_tcp_nodelay_inherited" >&6; }
27196 if test "$ac_cv_tcp_nodelay_inherited" = "yes"; then
27197 tcp_nodelay_inherited=1
27199 tcp_nodelay_inherited=0
27203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if O_NONBLOCK setting is inherited from listening sockets" >&5
27204 $as_echo_n "checking if O_NONBLOCK setting is inherited from listening sockets... " >&6; }
27205 if ${ac_cv_o_nonblock_inherited+:} false; then :
27206 $as_echo_n "(cached) " >&6
27209 if test "$cross_compiling" = yes; then :
27211 ac_cv_o_nonblock_inherited="yes"
27214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27215 /* end confdefs.h. */
27217 #ifdef HAVE_STDLIB_H
27218 #include <stdlib.h>
27220 #ifdef HAVE_STRING_H
27221 #include <string.h>
27223 #ifdef HAVE_STDIO_H
27226 #ifdef HAVE_SYS_TYPES_H
27227 #include <sys/types.h>
27229 #ifdef HAVE_SYS_SOCKET_H
27230 #include <sys/socket.h>
27232 #ifdef HAVE_SYS_TIME_H
27233 #include <sys/time.h>
27235 #ifdef HAVE_SYS_SELECT_H
27236 #include <sys/select.h>
27238 #ifdef HAVE_NETINET_IN_H
27239 #include <netinet/in.h>
27241 #ifdef HAVE_NETINET_TCP_H
27242 #include <netinet/tcp.h>
27244 #ifndef HAVE_SOCKLEN_T
27245 typedef int socklen_t;
27247 #ifdef HAVE_FCNTL_H
27251 int listen_s, connected_s, client_s;
27252 int listen_port, rc;
27253 struct sockaddr_in sa;
27258 listen_s = socket(AF_INET, SOCK_STREAM, 0);
27259 if (listen_s < 0) {
27263 memset(&sa, 0, sizeof sa);
27264 sa.sin_family = AF_INET;
27266 sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
27268 /* leave port 0 to get ephemeral */
27269 rc = bind(listen_s, (struct sockaddr *)&sa, sizeof sa);
27271 perror("bind for ephemeral port");
27274 /* find ephemeral port */
27275 sa_len = sizeof(sa);
27276 rc = getsockname(listen_s, (struct sockaddr *)&sa, &sa_len);
27278 perror("getsockname");
27281 listen_port = sa.sin_port;
27282 rc = listen(listen_s, 5);
27287 rc = fcntl(listen_s, F_SETFL, O_NONBLOCK);
27289 perror("fcntl(F_SETFL)");
27292 client_s = socket(AF_INET, SOCK_STREAM, 0);
27293 if (client_s < 0) {
27297 memset(&sa, 0, sizeof sa);
27298 sa.sin_family = AF_INET;
27299 sa.sin_port = listen_port;
27301 sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
27303 /* leave sin_addr all zeros to use loopback */
27304 rc = connect(client_s, (struct sockaddr *)&sa, sizeof sa);
27309 sa_len = sizeof sa;
27310 /* 1 second select timeout */
27313 /* Set up fd set */
27315 FD_SET(listen_s, &fds);
27316 /* Wait for socket to become readable */
27317 rc = select(listen_s + 1, &fds, NULL, NULL, &tv);
27323 fprintf(stderr, "Socket failed to become readable (timeout)\n");
27326 if (!FD_ISSET(listen_s, &fds)) {
27327 fprintf(stderr, "Socket failed to become readable (selected another fd)\n");
27330 connected_s = accept(listen_s, (struct sockaddr *)&sa, &sa_len);
27331 if (connected_s < 0) {
27335 rc = fcntl(connected_s, F_GETFL, 0);
27337 perror("fcntl(F_GETFL)");
27340 if (!(rc & O_NONBLOCK)) {
27341 fprintf(stderr, "O_NONBLOCK is not set in the child.\n");
27348 if ac_fn_c_try_run "$LINENO"; then :
27350 ac_cv_o_nonblock_inherited="yes"
27354 ac_cv_o_nonblock_inherited="no"
27357 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27358 conftest.$ac_objext conftest.beam conftest.$ac_ext
27362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_nonblock_inherited" >&5
27363 $as_echo "$ac_cv_o_nonblock_inherited" >&6; }
27364 if test "$ac_cv_o_nonblock_inherited" = "yes"; then
27365 o_nonblock_inherited=1
27367 o_nonblock_inherited=0
27371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TCP_NODELAY and TCP_CORK can both be enabled" >&5
27372 $as_echo_n "checking whether TCP_NODELAY and TCP_CORK can both be enabled... " >&6; }
27373 if ${apr_cv_tcp_nodelay_with_cork+:} false; then :
27374 $as_echo_n "(cached) " >&6
27376 if test "$cross_compiling" = yes; then :
27377 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27379 as_fn_error $? "cannot run test program while cross compiling
27380 See \`config.log' for more details" "$LINENO" 5; }
27382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27383 /* end confdefs.h. */
27385 #ifdef HAVE_SYS_TYPES_H
27386 #include <sys/types.h>
27388 #ifdef HAVE_SYS_SOCKET_H
27389 #include <sys/socket.h>
27391 #ifdef HAVE_NETINET_IN_H
27392 #include <netinet/in.h>
27394 #ifdef HAVE_NETINET_TCP_H
27395 #include <netinet/tcp.h>
27398 #include <stdlib.h>
27406 fd = socket(AF_INET, SOCK_STREAM, 0);
27412 rc = setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &flag, sizeof flag);
27414 perror("setsockopt TCP_NODELAY");
27419 rc = setsockopt(fd, IPPROTO_TCP, TCP_CORK, &flag, sizeof flag);
27421 perror("setsockopt TCP_CORK");
27431 if ac_fn_c_try_run "$LINENO"; then :
27432 apr_cv_tcp_nodelay_with_cork=yes
27434 apr_cv_tcp_nodelay_with_cork=no
27436 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27437 conftest.$ac_objext conftest.beam conftest.$ac_ext
27441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_tcp_nodelay_with_cork" >&5
27442 $as_echo "$apr_cv_tcp_nodelay_with_cork" >&6; }
27444 if test "$apr_cv_tcp_nodelay_with_cork" = "yes"; then
27446 $as_echo "#define HAVE_TCP_NODELAY_WITH_CORK 1" >>confdefs.h
27451 # Look for a way of corking TCP...
27453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCP_CORK in netinet/tcp.h" >&5
27454 $as_echo_n "checking for TCP_CORK in netinet/tcp.h... " >&6; }
27455 if ${ac_cv_define_TCP_CORK+:} false; then :
27456 $as_echo_n "(cached) " >&6
27459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27460 /* end confdefs.h. */
27462 #include <netinet/tcp.h>
27468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27469 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
27470 ac_cv_define_TCP_CORK=yes
27472 ac_cv_define_TCP_CORK=no
27478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_TCP_CORK" >&5
27479 $as_echo "$ac_cv_define_TCP_CORK" >&6; }
27480 if test "$ac_cv_define_TCP_CORK" = "yes"; then
27482 $as_echo "#define HAVE_TCP_CORK 1" >>confdefs.h
27487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCP_NOPUSH in netinet/tcp.h" >&5
27488 $as_echo_n "checking for TCP_NOPUSH in netinet/tcp.h... " >&6; }
27489 if ${ac_cv_define_TCP_NOPUSH+:} false; then :
27490 $as_echo_n "(cached) " >&6
27493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27494 /* end confdefs.h. */
27496 #include <netinet/tcp.h>
27502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27503 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
27504 ac_cv_define_TCP_NOPUSH=yes
27506 ac_cv_define_TCP_NOPUSH=no
27512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_TCP_NOPUSH" >&5
27513 $as_echo "$ac_cv_define_TCP_NOPUSH" >&6; }
27514 if test "$ac_cv_define_TCP_NOPUSH" = "yes"; then
27516 $as_echo "#define HAVE_TCP_NOPUSH 1" >>confdefs.h
27520 apr_tcp_nopush_flag="0"
27521 have_corkable_tcp="0"
27522 if test "x$ac_cv_define_TCP_CORK" = "xyes"; then
27523 apr_tcp_nopush_flag="TCP_CORK"
27524 have_corkable_tcp="1"
27528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27529 /* end confdefs.h. */
27531 #include <linux/socket.h>
27537 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27538 $EGREP "yes" >/dev/null 2>&1; then :
27540 apr_tcp_nopush_flag="3"
27541 have_corkable_tcp="1"
27551 if test "x$ac_cv_define_TCP_NOPUSH" = "xyes"; then
27552 apr_tcp_nopush_flag="TCP_NOPUSH"
27553 have_corkable_tcp="1"
27557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SO_ACCEPTFILTER in sys/socket.h" >&5
27558 $as_echo_n "checking for SO_ACCEPTFILTER in sys/socket.h... " >&6; }
27559 if ${ac_cv_define_SO_ACCEPTFILTER+:} false; then :
27560 $as_echo_n "(cached) " >&6
27563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27564 /* end confdefs.h. */
27566 #include <sys/socket.h>
27567 #ifdef SO_ACCEPTFILTER
27572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27573 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
27574 ac_cv_define_SO_ACCEPTFILTER=yes
27576 ac_cv_define_SO_ACCEPTFILTER=no
27582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_SO_ACCEPTFILTER" >&5
27583 $as_echo "$ac_cv_define_SO_ACCEPTFILTER" >&6; }
27584 if test "$ac_cv_define_SO_ACCEPTFILTER" = "yes"; then
27586 $as_echo "#define HAVE_SO_ACCEPTFILTER 1" >>confdefs.h
27590 if test "x$ac_cv_define_SO_ACCEPTFILTER" = "xyes"; then
27597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SCTP is supported" >&5
27598 $as_echo_n "checking whether SCTP is supported... " >&6; }
27599 if ${apr_cv_sctp+:} false; then :
27600 $as_echo_n "(cached) " >&6
27603 if test "$cross_compiling" = yes; then :
27606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27607 /* end confdefs.h. */
27609 #ifdef HAVE_SYS_TYPES_H
27610 #include <sys/types.h>
27612 #ifdef HAVE_SYS_SOCKET_H
27613 #include <sys/socket.h>
27615 #ifdef HAVE_NETINET_IN_H
27616 #include <netinet/in.h>
27618 #ifdef HAVE_NETINET_SCTP_H
27619 #include <netinet/sctp.h>
27621 #ifdef HAVE_NETINET_SCTP_UIO_H
27622 #include <netinet/sctp_uio.h>
27624 #include <stdlib.h>
27627 if ((s = socket(AF_INET, SOCK_STREAM, IPPROTO_SCTP)) < 0)
27629 if (setsockopt(s, IPPROTO_SCTP, SCTP_NODELAY, &opt, sizeof(int)) < 0)
27634 if ac_fn_c_try_run "$LINENO"; then :
27639 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27640 conftest.$ac_objext conftest.beam conftest.$ac_ext
27644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_sctp" >&5
27645 $as_echo "$apr_cv_sctp" >&6; }
27647 if test "$apr_cv_sctp" = "yes"; then
27654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ip_mreq" >&5
27655 $as_echo_n "checking for struct ip_mreq... " >&6; }
27656 if ${apr_cv_struct_ipmreq+:} false; then :
27657 $as_echo_n "(cached) " >&6
27660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27661 /* end confdefs.h. */
27663 #include <sys/types.h>
27664 #include <netinet/in.h>
27670 struct ip_mreq mip;
27671 mip.imr_interface.s_addr = INADDR_ANY;
27677 if ac_fn_c_try_compile "$LINENO"; then :
27678 apr_cv_struct_ipmreq=yes
27680 apr_cv_struct_ipmreq=no
27682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_struct_ipmreq" >&5
27685 $as_echo "$apr_cv_struct_ipmreq" >&6; }
27687 if test $apr_cv_struct_ipmreq = yes; then
27689 $as_echo "#define HAVE_STRUCT_IPMREQ 1" >>confdefs.h
27699 for ac_func in set_h_errno
27701 ac_fn_c_check_func "$LINENO" "set_h_errno" "ac_cv_func_set_h_errno"
27702 if test "x$ac_cv_func_set_h_errno" = xyes; then :
27703 cat >>confdefs.h <<_ACEOF
27704 #define HAVE_SET_H_ERRNO 1
27711 echo "${nl}Checking for IPv6 Networking support..."
27713 # Check whether --enable-ipv6 was given.
27714 if test "${enable_ipv6+set}" = set; then :
27715 enableval=$enable_ipv6; if test "$enableval" = "no"; then
27716 user_disabled_ipv6=1
27719 user_disabled_ipv6=0
27728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
27729 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
27730 if ${ac_cv_search_getaddrinfo+:} false; then :
27731 $as_echo_n "(cached) " >&6
27733 ac_func_search_save_LIBS=$LIBS
27734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27735 /* end confdefs.h. */
27737 /* Override any GCC internal prototype to avoid an error.
27738 Use char because int might match the return type of a GCC
27739 builtin and then its argument prototype would still apply. */
27743 char getaddrinfo ();
27747 return getaddrinfo ();
27752 for ac_lib in '' socket inet6; do
27753 if test -z "$ac_lib"; then
27754 ac_res="none required"
27757 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27759 if ac_fn_c_try_link "$LINENO"; then :
27760 ac_cv_search_getaddrinfo=$ac_res
27762 rm -f core conftest.err conftest.$ac_objext \
27764 if ${ac_cv_search_getaddrinfo+:} false; then :
27768 if ${ac_cv_search_getaddrinfo+:} false; then :
27771 ac_cv_search_getaddrinfo=no
27773 rm conftest.$ac_ext
27774 LIBS=$ac_func_search_save_LIBS
27776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
27777 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
27778 ac_res=$ac_cv_search_getaddrinfo
27779 if test "$ac_res" != no; then :
27780 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gai_strerror" >&5
27785 $as_echo_n "checking for library containing gai_strerror... " >&6; }
27786 if ${ac_cv_search_gai_strerror+:} false; then :
27787 $as_echo_n "(cached) " >&6
27789 ac_func_search_save_LIBS=$LIBS
27790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27791 /* end confdefs.h. */
27793 /* Override any GCC internal prototype to avoid an error.
27794 Use char because int might match the return type of a GCC
27795 builtin and then its argument prototype would still apply. */
27799 char gai_strerror ();
27803 return gai_strerror ();
27808 for ac_lib in '' socket inet6; do
27809 if test -z "$ac_lib"; then
27810 ac_res="none required"
27813 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27815 if ac_fn_c_try_link "$LINENO"; then :
27816 ac_cv_search_gai_strerror=$ac_res
27818 rm -f core conftest.err conftest.$ac_objext \
27820 if ${ac_cv_search_gai_strerror+:} false; then :
27824 if ${ac_cv_search_gai_strerror+:} false; then :
27827 ac_cv_search_gai_strerror=no
27829 rm conftest.$ac_ext
27830 LIBS=$ac_func_search_save_LIBS
27832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gai_strerror" >&5
27833 $as_echo "$ac_cv_search_gai_strerror" >&6; }
27834 ac_res=$ac_cv_search_gai_strerror
27835 if test "$ac_res" != no; then :
27836 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
27841 $as_echo_n "checking for library containing getnameinfo... " >&6; }
27842 if ${ac_cv_search_getnameinfo+:} false; then :
27843 $as_echo_n "(cached) " >&6
27845 ac_func_search_save_LIBS=$LIBS
27846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27847 /* end confdefs.h. */
27849 /* Override any GCC internal prototype to avoid an error.
27850 Use char because int might match the return type of a GCC
27851 builtin and then its argument prototype would still apply. */
27855 char getnameinfo ();
27859 return getnameinfo ();
27864 for ac_lib in '' socket inet6; do
27865 if test -z "$ac_lib"; then
27866 ac_res="none required"
27869 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27871 if ac_fn_c_try_link "$LINENO"; then :
27872 ac_cv_search_getnameinfo=$ac_res
27874 rm -f core conftest.err conftest.$ac_objext \
27876 if ${ac_cv_search_getnameinfo+:} false; then :
27880 if ${ac_cv_search_getnameinfo+:} false; then :
27883 ac_cv_search_getnameinfo=no
27885 rm conftest.$ac_ext
27886 LIBS=$ac_func_search_save_LIBS
27888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
27889 $as_echo "$ac_cv_search_getnameinfo" >&6; }
27890 ac_res=$ac_cv_search_getnameinfo
27891 if test "$ac_res" != no; then :
27892 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27896 for ac_func in gai_strerror
27898 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
27899 if test "x$ac_cv_func_gai_strerror" = xyes; then :
27900 cat >>confdefs.h <<_ACEOF
27901 #define HAVE_GAI_STRERROR 1
27908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getaddrinfo" >&5
27909 $as_echo_n "checking for working getaddrinfo... " >&6; }
27910 if ${ac_cv_working_getaddrinfo+:} false; then :
27911 $as_echo_n "(cached) " >&6
27914 if test "$cross_compiling" = yes; then :
27916 ac_cv_working_getaddrinfo="yes"
27919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27920 /* end confdefs.h. */
27922 #ifdef HAVE_NETDB_H
27925 #ifdef HAVE_STRING_H
27926 #include <string.h>
27928 #ifdef HAVE_SYS_TYPES_H
27929 #include <sys/types.h>
27931 #ifdef HAVE_SYS_SOCKET_H
27932 #include <sys/socket.h>
27936 struct addrinfo hints, *ai;
27939 memset(&hints, 0, sizeof(hints));
27940 hints.ai_family = AF_UNSPEC;
27941 hints.ai_socktype = SOCK_STREAM;
27942 error = getaddrinfo("127.0.0.1", NULL, &hints, &ai);
27946 if (ai->ai_addr->sa_family != AF_INET) {
27953 if ac_fn_c_try_run "$LINENO"; then :
27955 ac_cv_working_getaddrinfo="yes"
27959 ac_cv_working_getaddrinfo="no"
27962 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27963 conftest.$ac_objext conftest.beam conftest.$ac_ext
27967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getaddrinfo" >&5
27968 $as_echo "$ac_cv_working_getaddrinfo" >&6; }
27969 if test "$ac_cv_working_getaddrinfo" = "yes"; then
27970 if test "$ac_cv_func_gai_strerror" != "yes"; then
27971 ac_cv_working_getaddrinfo="no"
27974 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
27980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for negative error codes for getaddrinfo" >&5
27981 $as_echo_n "checking for negative error codes for getaddrinfo... " >&6; }
27982 if ${ac_cv_negative_eai+:} false; then :
27983 $as_echo_n "(cached) " >&6
27986 if test "$cross_compiling" = yes; then :
27988 ac_cv_negative_eai="no"
27991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27992 /* end confdefs.h. */
27994 #ifdef HAVE_NETDB_H
27999 if (EAI_ADDRFAMILY < 0) {
28006 if ac_fn_c_try_run "$LINENO"; then :
28008 ac_cv_negative_eai="yes"
28012 ac_cv_negative_eai="no"
28015 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28016 conftest.$ac_objext conftest.beam conftest.$ac_ext
28020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_negative_eai" >&5
28021 $as_echo "$ac_cv_negative_eai" >&6; }
28022 if test "$ac_cv_negative_eai" = "yes"; then
28024 $as_echo "#define NEGATIVE_EAI 1" >>confdefs.h
28029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getnameinfo" >&5
28030 $as_echo_n "checking for working getnameinfo... " >&6; }
28031 if ${ac_cv_working_getnameinfo+:} false; then :
28032 $as_echo_n "(cached) " >&6
28035 if test "$cross_compiling" = yes; then :
28037 ac_cv_working_getnameinfo="yes"
28040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28041 /* end confdefs.h. */
28043 #ifdef HAVE_NETDB_H
28046 #ifdef HAVE_STRING_H
28047 #include <string.h>
28049 #ifdef HAVE_SYS_TYPES_H
28050 #include <sys/types.h>
28052 #ifdef HAVE_SYS_SOCKET_H
28053 #include <sys/socket.h>
28055 #ifdef HAVE_NETINET_IN_H
28056 #include <netinet/in.h>
28060 struct sockaddr_in sa;
28064 sa.sin_family = AF_INET;
28066 sa.sin_addr.s_addr = inet_addr("127.0.0.1");
28068 sa.sin_len = sizeof(sa);
28071 error = getnameinfo((const struct sockaddr *)&sa, sizeof(sa),
28072 hbuf, 256, NULL, 0,
28082 if ac_fn_c_try_run "$LINENO"; then :
28084 ac_cv_working_getnameinfo="yes"
28088 ac_cv_working_getnameinfo="no"
28091 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28092 conftest.$ac_objext conftest.beam conftest.$ac_ext
28096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getnameinfo" >&5
28097 $as_echo "$ac_cv_working_getnameinfo" >&6; }
28098 if test "$ac_cv_working_getnameinfo" = "yes"; then
28100 $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
28105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6" >&5
28106 $as_echo_n "checking for sockaddr_in6... " >&6; }
28107 if ${ac_cv_define_sockaddr_in6+:} false; then :
28108 $as_echo_n "(cached) " >&6
28111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28112 /* end confdefs.h. */
28114 #ifdef HAVE_SYS_TYPES_H
28115 #include <sys/types.h>
28117 #ifdef HAVE_NETINET_IN_H
28118 #include <netinet/in.h>
28125 struct sockaddr_in6 sa;
28131 if ac_fn_c_try_compile "$LINENO"; then :
28133 ac_cv_define_sockaddr_in6=yes
28137 ac_cv_define_sockaddr_in6=no
28140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_sockaddr_in6" >&5
28144 $as_echo "$ac_cv_define_sockaddr_in6" >&6; }
28146 if test "$ac_cv_define_sockaddr_in6" = "yes"; then
28147 have_sockaddr_in6=1
28149 have_sockaddr_in6=0
28153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5
28154 $as_echo_n "checking for sockaddr_storage... " >&6; }
28155 if ${apr_cv_define_sockaddr_storage+:} false; then :
28156 $as_echo_n "(cached) " >&6
28159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28160 /* end confdefs.h. */
28162 #ifdef HAVE_SYS_TYPES_H
28163 #include <sys/types.h>
28165 #ifdef HAVE_NETINET_IN_H
28166 #include <netinet/in.h>
28172 struct sockaddr_storage sa;
28177 if ac_fn_c_try_compile "$LINENO"; then :
28178 apr_cv_define_sockaddr_storage=yes
28180 apr_cv_define_sockaddr_storage=no
28182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_define_sockaddr_storage" >&5
28185 $as_echo "$apr_cv_define_sockaddr_storage" >&6; }
28187 if test "$apr_cv_define_sockaddr_storage" = "yes"; then
28196 if test "$user_disabled_ipv6" = 1; then
28197 ipv6_result="no -- disabled by user"
28199 if test "x$broken_ipv6" = "x0"; then
28200 if test "x$have_sockaddr_in6" = "x1"; then
28201 if test "x$ac_cv_working_getaddrinfo" = "xyes"; then
28202 if test "x$ac_cv_working_getnameinfo" = "xyes"; then
28204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working AI_ADDRCONFIG" >&5
28205 $as_echo_n "checking for working AI_ADDRCONFIG... " >&6; }
28206 if ${apr_cv_gai_addrconfig+:} false; then :
28207 $as_echo_n "(cached) " >&6
28210 if test "$cross_compiling" = yes; then :
28211 apr_cv_gai_addrconfig=no
28213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28214 /* end confdefs.h. */
28216 #ifdef HAVE_NETDB_H
28219 #ifdef HAVE_STRING_H
28220 #include <string.h>
28222 #ifdef HAVE_SYS_TYPES_H
28223 #include <sys/types.h>
28225 #ifdef HAVE_SYS_SOCKET_H
28226 #include <sys/socket.h>
28229 int main(int argc, char **argv) {
28230 struct addrinfo hints, *ai;
28232 memset(&hints, 0, sizeof(hints));
28233 hints.ai_family = AF_UNSPEC;
28234 hints.ai_socktype = SOCK_STREAM;
28235 hints.ai_flags = AI_ADDRCONFIG;
28236 return getaddrinfo("localhost", NULL, &hints, &ai) != 0;
28239 if ac_fn_c_try_run "$LINENO"; then :
28240 apr_cv_gai_addrconfig=yes
28242 apr_cv_gai_addrconfig=no
28244 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28245 conftest.$ac_objext conftest.beam conftest.$ac_ext
28249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_gai_addrconfig" >&5
28250 $as_echo "$apr_cv_gai_addrconfig" >&6; }
28252 if test $apr_cv_gai_addrconfig = yes; then
28254 $as_echo "#define HAVE_GAI_ADDRCONFIG 1" >>confdefs.h
28261 ipv6_result="no -- no getnameinfo"
28264 ipv6_result="no -- no working getaddrinfo"
28267 ipv6_result="no -- no sockaddr_in6"
28270 ipv6_result="no -- the platform has known problems supporting IPv6"
28274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if APR supports IPv6" >&5
28275 $as_echo_n "checking if APR supports IPv6... " >&6; }
28276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_result" >&5
28277 $as_echo "$ipv6_result" >&6; }
28281 # hstrerror is only needed if IPv6 is not enabled,
28282 # so getaddrinfo/gai_strerror are not used.
28283 if test $have_ipv6 = 0; then
28284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
28285 $as_echo_n "checking for library containing hstrerror... " >&6; }
28286 if ${ac_cv_search_hstrerror+:} false; then :
28287 $as_echo_n "(cached) " >&6
28289 ac_func_search_save_LIBS=$LIBS
28290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28291 /* end confdefs.h. */
28293 /* Override any GCC internal prototype to avoid an error.
28294 Use char because int might match the return type of a GCC
28295 builtin and then its argument prototype would still apply. */
28303 return hstrerror ();
28308 for ac_lib in '' resolv; do
28309 if test -z "$ac_lib"; then
28310 ac_res="none required"
28313 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28315 if ac_fn_c_try_link "$LINENO"; then :
28316 ac_cv_search_hstrerror=$ac_res
28318 rm -f core conftest.err conftest.$ac_objext \
28320 if ${ac_cv_search_hstrerror+:} false; then :
28324 if ${ac_cv_search_hstrerror+:} false; then :
28327 ac_cv_search_hstrerror=no
28329 rm conftest.$ac_ext
28330 LIBS=$ac_func_search_save_LIBS
28332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
28333 $as_echo "$ac_cv_search_hstrerror" >&6; }
28334 ac_res=$ac_cv_search_hstrerror
28335 if test "$ac_res" != no; then :
28336 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28338 $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h
28345 for ac_header in langinfo.h
28347 ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
28348 if test "x$ac_cv_header_langinfo_h" = xyes; then :
28349 cat >>confdefs.h <<_ACEOF
28350 #define HAVE_LANGINFO_H 1
28357 for ac_func in nl_langinfo
28359 ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
28360 if test "x$ac_cv_func_nl_langinfo" = xyes; then :
28361 cat >>confdefs.h <<_ACEOF
28362 #define HAVE_NL_LANGINFO 1
28371 if test -z "$have_unicode_fs"; then
28372 test "x$silent" != "xyes" && echo " setting have_unicode_fs to \"0\""
28373 have_unicode_fs="0"
28379 if test -z "$apr_has_xthread_files"; then
28380 test "x$silent" != "xyes" && echo " setting apr_has_xthread_files to \"0\""
28381 apr_has_xthread_files="0"
28387 if test -z "$apr_procattr_user_set_requires_password"; then
28388 test "x$silent" != "xyes" && echo " setting apr_procattr_user_set_requires_password to \"0\""
28389 apr_procattr_user_set_requires_password="0"
28395 if test -z "$apr_thread_func"; then
28396 test "x$silent" != "xyes" && echo " setting apr_thread_func to \"\""
28403 if test -z "$apr_has_user"; then
28404 test "x$silent" != "xyes" && echo " setting apr_has_user to \"1\""
28411 echo "${nl}Restore user-defined environment settings..."
28414 set X $apr_ste_save_CPPFLAGS
28415 if test ${#} -eq 1; then
28416 EXTRA_CPPFLAGS="$CPPFLAGS"
28419 if test "x$apr_ste_save_CPPFLAGS" = "x$CPPFLAGS"; then
28422 EXTRA_CPPFLAGS=`echo "$CPPFLAGS" | sed -e "s%${apr_ste_save_CPPFLAGS}%%"`
28423 CPPFLAGS="$apr_ste_save_CPPFLAGS"
28426 if test "x$silent" != "xyes"; then
28427 echo " restoring CPPFLAGS to \"$CPPFLAGS\""
28428 echo " setting EXTRA_CPPFLAGS to \"$EXTRA_CPPFLAGS\""
28433 set X $apr_ste_save_CFLAGS
28434 if test ${#} -eq 1; then
28435 EXTRA_CFLAGS="$CFLAGS"
28438 if test "x$apr_ste_save_CFLAGS" = "x$CFLAGS"; then
28441 EXTRA_CFLAGS=`echo "$CFLAGS" | sed -e "s%${apr_ste_save_CFLAGS}%%"`
28442 CFLAGS="$apr_ste_save_CFLAGS"
28445 if test "x$silent" != "xyes"; then
28446 echo " restoring CFLAGS to \"$CFLAGS\""
28447 echo " setting EXTRA_CFLAGS to \"$EXTRA_CFLAGS\""
28452 set X $apr_ste_save_LDFLAGS
28453 if test ${#} -eq 1; then
28454 EXTRA_LDFLAGS="$LDFLAGS"
28457 if test "x$apr_ste_save_LDFLAGS" = "x$LDFLAGS"; then
28460 EXTRA_LDFLAGS=`echo "$LDFLAGS" | sed -e "s%${apr_ste_save_LDFLAGS}%%"`
28461 LDFLAGS="$apr_ste_save_LDFLAGS"
28464 if test "x$silent" != "xyes"; then
28465 echo " restoring LDFLAGS to \"$LDFLAGS\""
28466 echo " setting EXTRA_LDFLAGS to \"$EXTRA_LDFLAGS\""
28471 set X $apr_ste_save_LIBS
28472 if test ${#} -eq 1; then
28476 if test "x$apr_ste_save_LIBS" = "x$LIBS"; then
28479 EXTRA_LIBS=`echo "$LIBS" | sed -e "s%${apr_ste_save_LIBS}%%"`
28480 LIBS="$apr_ste_save_LIBS"
28483 if test "x$silent" != "xyes"; then
28484 echo " restoring LIBS to \"$LIBS\""
28485 echo " setting EXTRA_LIBS to \"$EXTRA_LIBS\""
28490 set X $apr_ste_save_INCLUDES
28491 if test ${#} -eq 1; then
28492 EXTRA_INCLUDES="$INCLUDES"
28495 if test "x$apr_ste_save_INCLUDES" = "x$INCLUDES"; then
28498 EXTRA_INCLUDES=`echo "$INCLUDES" | sed -e "s%${apr_ste_save_INCLUDES}%%"`
28499 INCLUDES="$apr_ste_save_INCLUDES"
28502 if test "x$silent" != "xyes"; then
28503 echo " restoring INCLUDES to \"$INCLUDES\""
28504 echo " setting EXTRA_INCLUDES to \"$EXTRA_INCLUDES\""
28525 # Use -no-install or -no-fast-install to link the test
28526 # programs on all platforms but Darwin, where it would cause
28527 # the programs to be linked against installed versions of
28528 # libapr instead of those just built.
28534 LT_NO_INSTALL="-no-fast-install"
28537 LT_NO_INSTALL="-no-install"
28543 # BSD/OS (BSDi) needs to use a different include syntax in the Makefiles
28547 # Check whether they've installed GNU make
28548 if make --version > /dev/null 2>&1; then
28549 INCLUDE_RULES="include $apr_buildout/apr_rules.mk"
28550 INCLUDE_OUTPUTS="include $apr_srcdir/build-outputs.mk"
28553 INCLUDE_RULES=".include \"$apr_buildout/apr_rules.mk\""
28554 INCLUDE_OUTPUTS=".include \"$apr_srcdir/build-outputs.mk\""
28558 INCLUDE_RULES="include $apr_buildout/apr_rules.mk"
28559 INCLUDE_OUTPUTS="include $apr_srcdir/build-outputs.mk"
28565 ac_config_files="$ac_config_files Makefile include/apr.h build/apr_rules.mk build/pkg/pkginfo apr-$APR_MAJOR_VERSION-config:apr-config.in apr.pc"
28568 if test -d $srcdir/test; then
28569 ac_config_files="$ac_config_files test/Makefile test/internal/Makefile"
28573 dir=include/arch/unix
28574 test -d $dir || $MKDIR $dir
28576 ac_config_commands="$ac_config_commands default"
28579 cat >confcache <<\_ACEOF
28580 # This file is a shell script that caches the results of configure
28581 # tests run on this system so they can be shared between configure
28582 # scripts and configure runs, see configure's option --config-cache.
28583 # It is not useful on other systems. If it contains results you don't
28584 # want to keep, you may remove or edit it.
28586 # config.status only pays attention to the cache file if you give it
28587 # the --recheck option to rerun configure.
28589 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28590 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28591 # following values.
28595 # The following way of writing the cache mishandles newlines in values,
28596 # but we know of no workaround that is simple, portable, and efficient.
28597 # So, we kill variables containing newlines.
28598 # Ultrix sh set writes to stderr and can't be redirected directly,
28599 # and sets the high bit in the cache file unless we assign to the vars.
28601 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28602 eval ac_val=\$$ac_var
28606 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28607 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28610 _ | IFS | as_nl) ;; #(
28611 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28612 *) { eval $ac_var=; unset $ac_var;} ;;
28618 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28619 *${as_nl}ac_space=\ *)
28620 # `set' does not quote correctly, so add quotes: double-quote
28621 # substitution turns \\\\ into \\, and sed turns \\ into \.
28624 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28627 # `set' quotes correctly as required by POSIX, so do not add quotes.
28628 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28637 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28639 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28641 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28642 if test -w "$cache_file"; then
28643 if test "x$cache_file" != "x/dev/null"; then
28644 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28645 $as_echo "$as_me: updating cache $cache_file" >&6;}
28646 if test ! -f "$cache_file" || test -h "$cache_file"; then
28647 cat confcache >"$cache_file"
28649 case $cache_file in #(
28651 mv -f confcache "$cache_file"$$ &&
28652 mv -f "$cache_file"$$ "$cache_file" ;; #(
28654 mv -f confcache "$cache_file" ;;
28659 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28660 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28665 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28666 # Let make expand exec_prefix.
28667 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28669 DEFS=-DHAVE_CONFIG_H
28674 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28675 # 1. Remove the extension, and $U if already installed.
28676 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28677 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28678 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28679 # will be set to the directory where LIBOBJS objects are built.
28680 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28681 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
28683 LIBOBJS=$ac_libobjs
28685 LTLIBOBJS=$ac_ltlibobjs
28690 : "${CONFIG_STATUS=./config.status}"
28692 ac_clean_files_save=$ac_clean_files
28693 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28694 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28695 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28697 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28699 # Generated by $as_me.
28700 # Run this file to recreate the current configuration.
28701 # Compiler output produced by configure, useful for debugging
28702 # configure, is in config.log if it exists.
28705 ac_cs_recheck=false
28708 SHELL=\${CONFIG_SHELL-$SHELL}
28711 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
28712 ## -------------------- ##
28713 ## M4sh Initialization. ##
28714 ## -------------------- ##
28716 # Be more Bourne compatible
28717 DUALCASE=1; export DUALCASE # for MKS sh
28718 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
28721 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28722 # is contrary to our usage. Disable this feature.
28723 alias -g '${1+"$@"}'='"$@"'
28724 setopt NO_GLOB_SUBST
28726 case `(set -o) 2>/dev/null` in #(
28738 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28739 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28740 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28741 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28742 # Prefer a ksh shell builtin over an external printf program on Solaris,
28743 # but without wasting forks for bash or zsh.
28744 if test -z "$BASH_VERSION$ZSH_VERSION" \
28745 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28746 as_echo='print -r --'
28747 as_echo_n='print -rn --'
28748 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28749 as_echo='printf %s\n'
28750 as_echo_n='printf %s'
28752 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28753 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28754 as_echo_n='/usr/ucb/echo -n'
28756 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28757 as_echo_n_body='eval
28761 expr "X$arg" : "X\\(.*\\)$as_nl";
28762 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28764 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28766 export as_echo_n_body
28767 as_echo_n='sh -c $as_echo_n_body as_echo'
28769 export as_echo_body
28770 as_echo='sh -c $as_echo_body as_echo'
28773 # The user is always right.
28774 if test "${PATH_SEPARATOR+set}" != set; then
28776 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28777 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28784 # We need space, tab and new line, in precisely that order. Quoting is
28785 # there to prevent editors from complaining about space-tab.
28786 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28787 # splitting by setting IFS to empty value.)
28790 # Find who we are. Look in the path if we contain no directory separator.
28793 *[\\/]* ) as_myself=$0 ;;
28794 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28795 for as_dir in $PATH
28798 test -z "$as_dir" && as_dir=.
28799 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28805 # We did not find ourselves, most probably we were run as `sh COMMAND'
28806 # in which case we are not to be found in the path.
28807 if test "x$as_myself" = x; then
28810 if test ! -f "$as_myself"; then
28811 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28815 # Unset variables that we do not need and which cause bugs (e.g. in
28816 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
28817 # suppresses any "Segmentation fault" message there. '((' could
28818 # trigger a bug in pdksh 5.2.14.
28819 for as_var in BASH_ENV ENV MAIL MAILPATH
28820 do eval test x\${$as_var+set} = xset \
28821 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28834 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28837 # as_fn_error STATUS ERROR [LINENO LOG_FD]
28838 # ----------------------------------------
28839 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28840 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28841 # script with STATUS, using 1 if that was 0.
28844 as_status=$1; test $as_status -eq 0 && as_status=1
28846 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28847 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
28849 $as_echo "$as_me: error: $2" >&2
28850 as_fn_exit $as_status
28854 # as_fn_set_status STATUS
28855 # -----------------------
28856 # Set $? to STATUS, without forking.
28857 as_fn_set_status ()
28860 } # as_fn_set_status
28862 # as_fn_exit STATUS
28863 # -----------------
28864 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28868 as_fn_set_status $1
28874 # Portably unset VAR.
28877 { eval $1=; unset $1;}
28879 as_unset=as_fn_unset
28880 # as_fn_append VAR VALUE
28881 # ----------------------
28882 # Append the text in VALUE to the end of the definition contained in VAR. Take
28883 # advantage of any shell optimizations that allow amortized linear growth over
28884 # repeated appends, instead of the typical quadratic growth present in naive
28886 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
28887 eval 'as_fn_append ()
28898 # as_fn_arith ARG...
28899 # ------------------
28900 # Perform arithmetic evaluation on the ARGs, and store the result in the
28901 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28902 # must be portable across $(()) and expr.
28903 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
28904 eval 'as_fn_arith ()
28911 as_val=`expr "$@" || test $? -eq 1`
28916 if expr a : '\(a\)' >/dev/null 2>&1 &&
28917 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28923 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28924 as_basename=basename
28929 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28935 as_me=`$as_basename -- "$0" ||
28936 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28937 X"$0" : 'X\(//\)$' \| \
28938 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28940 sed '/^.*\/\([^/][^/]*\)\/*$/{
28954 # Avoid depending upon Character Ranges.
28955 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28956 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28957 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28958 as_cr_digits='0123456789'
28959 as_cr_alnum=$as_cr_Letters$as_cr_digits
28961 ECHO_C= ECHO_N= ECHO_T=
28962 case `echo -n x` in #(((((
28964 case `echo 'xy\c'` in
28965 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28967 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
28974 rm -f conf$$ conf$$.exe conf$$.file
28975 if test -d conf$$.dir; then
28976 rm -f conf$$.dir/conf$$.file
28979 mkdir conf$$.dir 2>/dev/null
28981 if (echo >conf$$.file) 2>/dev/null; then
28982 if ln -s conf$$.file conf$$ 2>/dev/null; then
28984 # ... but there are two gotchas:
28985 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28986 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28987 # In both cases, we have to default to `cp -pR'.
28988 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28990 elif ln conf$$.file conf$$ 2>/dev/null; then
28998 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28999 rmdir conf$$.dir 2>/dev/null
29004 # Create "$as_dir" as a directory, including parents if necessary.
29009 -*) as_dir=./$as_dir;;
29011 test -d "$as_dir" || eval $as_mkdir_p || {
29015 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29016 *) as_qdir=$as_dir;;
29018 as_dirs="'$as_qdir' $as_dirs"
29019 as_dir=`$as_dirname -- "$as_dir" ||
29020 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29021 X"$as_dir" : 'X\(//\)[^/]' \| \
29022 X"$as_dir" : 'X\(//\)$' \| \
29023 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29024 $as_echo X"$as_dir" |
29025 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29029 /^X\(\/\/\)[^/].*/{
29042 test -d "$as_dir" && break
29044 test -z "$as_dirs" || eval "mkdir $as_dirs"
29045 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
29049 if mkdir -p . 2>/dev/null; then
29050 as_mkdir_p='mkdir -p "$as_dir"'
29052 test -d ./-p && rmdir ./-p
29057 # as_fn_executable_p FILE
29058 # -----------------------
29059 # Test if FILE is an executable regular file.
29060 as_fn_executable_p ()
29062 test -f "$1" && test -x "$1"
29063 } # as_fn_executable_p
29064 as_test_x='test -x'
29065 as_executable_p=as_fn_executable_p
29067 # Sed expression to map a string onto a valid CPP name.
29068 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29070 # Sed expression to map a string onto a valid variable name.
29071 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29075 ## ----------------------------------- ##
29076 ## Main body of $CONFIG_STATUS script. ##
29077 ## ----------------------------------- ##
29079 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
29081 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29082 # Save the log message, to keep $0 and so on meaningful, and to
29083 # report actual input values of CONFIG_FILES etc. instead of their
29084 # values after options handling.
29086 This file was extended by $as_me, which was
29087 generated by GNU Autoconf 2.69. Invocation command line was
29089 CONFIG_FILES = $CONFIG_FILES
29090 CONFIG_HEADERS = $CONFIG_HEADERS
29091 CONFIG_LINKS = $CONFIG_LINKS
29092 CONFIG_COMMANDS = $CONFIG_COMMANDS
29095 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29100 case $ac_config_files in *"
29101 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29104 case $ac_config_headers in *"
29105 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29109 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29110 # Files that config.status was made for.
29111 config_files="$ac_config_files"
29112 config_headers="$ac_config_headers"
29113 config_commands="$ac_config_commands"
29117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29119 \`$as_me' instantiates files and other configuration actions
29120 from templates according to the current configuration. Unless the files
29121 and actions are specified as TAGs, all are instantiated by default.
29123 Usage: $0 [OPTION]... [TAG]...
29125 -h, --help print this help, then exit
29126 -V, --version print version number and configuration settings, then exit
29127 --config print configuration, then exit
29128 -q, --quiet, --silent
29129 do not print progress messages
29130 -d, --debug don't remove temporary files
29131 --recheck update $as_me by reconfiguring in the same conditions
29132 --file=FILE[:TEMPLATE]
29133 instantiate the configuration file FILE
29134 --header=FILE[:TEMPLATE]
29135 instantiate the configuration header FILE
29137 Configuration files:
29140 Configuration headers:
29143 Configuration commands:
29146 Report bugs to the package provider."
29149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29150 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
29153 configured by $0, generated by GNU Autoconf 2.69,
29154 with options \\"\$ac_cs_config\\"
29156 Copyright (C) 2012 Free Software Foundation, Inc.
29157 This config.status script is free software; the Free Software Foundation
29158 gives unlimited permission to copy, distribute and modify it."
29164 test -n "\$AWK" || AWK=awk
29167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29168 # The default lists apply if the user does not specify any file.
29174 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29175 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29179 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29191 # Handling of the options.
29192 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29194 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29195 $as_echo "$ac_cs_version"; exit ;;
29196 --config | --confi | --conf | --con | --co | --c )
29197 $as_echo "$ac_cs_config"; exit ;;
29198 --debug | --debu | --deb | --de | --d | -d )
29200 --file | --fil | --fi | --f )
29203 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29204 '') as_fn_error $? "missing file argument" ;;
29206 as_fn_append CONFIG_FILES " '$ac_optarg'"
29207 ac_need_defaults=false;;
29208 --header | --heade | --head | --hea )
29211 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29213 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
29214 ac_need_defaults=false;;
29216 # Conflict between --help and --header
29217 as_fn_error $? "ambiguous option: \`$1'
29218 Try \`$0 --help' for more information.";;
29219 --help | --hel | -h )
29220 $as_echo "$ac_cs_usage"; exit ;;
29221 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29222 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29225 # This is an error.
29226 -*) as_fn_error $? "unrecognized option: \`$1'
29227 Try \`$0 --help' for more information." ;;
29229 *) as_fn_append ac_config_targets " $1"
29230 ac_need_defaults=false ;;
29236 ac_configure_extra_args=
29238 if $ac_cs_silent; then
29240 ac_configure_extra_args="$ac_configure_extra_args --silent"
29244 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29245 if \$ac_cs_recheck; then
29246 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29248 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29249 CONFIG_SHELL='$SHELL'
29250 export CONFIG_SHELL
29255 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29259 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29260 ## Running $as_me. ##
29266 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29272 # The HP-UX ksh and POSIX shell print the target directory to stdout
29273 # if CDPATH is set.
29274 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29276 sed_quote_subst='$sed_quote_subst'
29277 double_quote_subst='$double_quote_subst'
29278 delay_variable_subst='$delay_variable_subst'
29279 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
29280 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
29281 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
29282 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
29283 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
29284 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
29285 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
29286 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
29287 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
29288 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
29289 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
29290 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
29291 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
29292 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
29293 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
29294 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
29295 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
29296 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
29297 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
29298 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
29299 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
29300 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
29301 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
29302 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
29303 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
29304 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
29305 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
29306 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
29307 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
29308 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
29309 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
29310 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
29311 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
29312 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
29313 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
29314 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
29315 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
29316 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
29317 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
29318 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
29319 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
29320 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
29321 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
29322 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
29323 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
29324 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
29325 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
29326 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
29327 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
29328 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
29329 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
29330 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
29331 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
29332 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
29333 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
29334 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
29335 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
29336 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
29337 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
29338 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
29339 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
29340 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
29341 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
29342 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
29343 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
29344 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
29345 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
29346 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
29347 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
29348 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
29349 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
29350 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
29351 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
29352 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
29353 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
29354 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
29355 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
29356 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
29357 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
29358 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
29359 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
29360 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
29361 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
29362 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
29363 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
29364 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
29365 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
29366 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
29367 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
29368 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
29369 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
29370 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
29371 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
29372 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
29373 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
29374 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
29375 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
29376 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
29377 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
29378 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
29379 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
29380 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
29381 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
29382 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
29383 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
29384 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
29385 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
29386 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
29387 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
29388 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
29389 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
29390 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
29391 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
29392 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
29393 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
29394 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
29395 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
29396 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
29397 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
29398 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
29399 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
29400 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
29401 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
29402 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
29403 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
29404 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
29405 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
29406 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
29407 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
29408 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
29409 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
29412 LTCFLAGS='$LTCFLAGS'
29413 compiler='$compiler_DEFAULT'
29415 # A function that is used when there is no print builtin or printf.
29416 func_fallback_echo ()
29418 eval 'cat <<_LTECHO_EOF
29423 # Quote evaled strings.
29440 deplibs_check_method \
29444 sharedlib_from_linklib_cmd \
29447 archiver_list_spec \
29453 lt_cv_sys_global_symbol_pipe \
29454 lt_cv_sys_global_symbol_to_cdecl \
29455 lt_cv_sys_global_symbol_to_c_name_address \
29456 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
29457 nm_file_list_spec \
29458 lt_prog_compiler_no_builtin_flag \
29459 lt_prog_compiler_pic \
29460 lt_prog_compiler_wl \
29461 lt_prog_compiler_static \
29462 lt_cv_prog_compiler_c_o \
29471 export_dynamic_flag_spec \
29472 whole_archive_flag_spec \
29473 compiler_needs_object \
29475 allow_undefined_flag \
29476 no_undefined_flag \
29477 hardcode_libdir_flag_spec \
29478 hardcode_libdir_separator \
29482 variables_saved_for_relink \
29484 library_names_spec \
29486 install_override_mode \
29490 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
29491 *[\\\\\\\`\\"\\\$]*)
29492 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
29495 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29500 # Double-quote double-evaled strings.
29501 for var in reload_cmds \
29502 old_postinstall_cmds \
29503 old_postuninstall_cmds \
29505 extract_expsyms_cmds \
29506 old_archive_from_new_cmds \
29507 old_archive_from_expsyms_cmds \
29509 archive_expsym_cmds \
29511 module_expsym_cmds \
29512 export_symbols_cmds \
29516 postuninstall_cmds \
29518 sys_lib_search_path_spec \
29519 sys_lib_dlsearch_path_spec; do
29520 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
29521 *[\\\\\\\`\\"\\\$]*)
29522 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
29525 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29530 ac_aux_dir='$ac_aux_dir'
29531 xsi_shell='$xsi_shell'
29532 lt_shell_append='$lt_shell_append'
29534 # See if we are running on zsh, and set the options which allow our
29535 # commands through without removal of \ escapes INIT.
29536 if test -n "\${ZSH_VERSION+set}" ; then
29537 setopt NO_GLOB_SUBST
29543 TIMESTAMP='$TIMESTAMP'
29551 # Commands run at the beginning of config.status:
29552 APR_SAVE_HEADERS="include/apr.h include/arch/unix/apr_private.h"
29553 APR_MAJOR_VERSION=$APR_MAJOR_VERSION
29556 for apri in \${APR_SAVE_HEADERS}; do
29557 test -r \${apri} && mv \${apri} \${apri}.save
29563 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29565 # Handling of arguments.
29566 for ac_config_target in $ac_config_targets
29568 case $ac_config_target in
29569 "include/arch/unix/apr_private.h") CONFIG_HEADERS="$CONFIG_HEADERS include/arch/unix/apr_private.h" ;;
29570 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
29571 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29572 "include/apr.h") CONFIG_FILES="$CONFIG_FILES include/apr.h" ;;
29573 "build/apr_rules.mk") CONFIG_FILES="$CONFIG_FILES build/apr_rules.mk" ;;
29574 "build/pkg/pkginfo") CONFIG_FILES="$CONFIG_FILES build/pkg/pkginfo" ;;
29575 "apr-$APR_MAJOR_VERSION-config") CONFIG_FILES="$CONFIG_FILES apr-$APR_MAJOR_VERSION-config:apr-config.in" ;;
29576 "apr.pc") CONFIG_FILES="$CONFIG_FILES apr.pc" ;;
29577 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
29578 "test/internal/Makefile") CONFIG_FILES="$CONFIG_FILES test/internal/Makefile" ;;
29579 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
29581 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29586 # If the user did not use the arguments to specify the items to instantiate,
29587 # then the envvar interface is used. Set only those that are not.
29588 # We use the long form for the default assignment because of an extremely
29589 # bizarre bug on SunOS 4.1.3.
29590 if $ac_need_defaults; then
29591 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29592 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29593 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29596 # Have a temporary directory for convenience. Make it in the build tree
29597 # simply because there is no reason against having it here, and in addition,
29598 # creating and moving files from /tmp can sometimes cause problems.
29599 # Hook for its removal unless debugging.
29600 # Note that there is a small window in which the directory will not be cleaned:
29601 # after its creation but before its name has been assigned to `$tmp'.
29605 trap 'exit_status=$?
29606 : "${ac_tmp:=$tmp}"
29607 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
29609 trap 'as_fn_exit 1' 1 2 13 15
29611 # Create a (secure) tmp directory for tmp files.
29614 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29618 tmp=./conf$$-$RANDOM
29619 (umask 077 && mkdir "$tmp")
29620 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
29623 # Set up the scripts for CONFIG_FILES section.
29624 # No need to generate them if there are no CONFIG_FILES.
29625 # This happens for instance with `./config.status config.h'.
29626 if test -n "$CONFIG_FILES"; then
29629 ac_cr=`echo X | tr X '\015'`
29630 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29631 # But we know of no other shell where ac_cr would be empty at this
29632 # point, so we can use a bashism as a fallback.
29633 if test "x$ac_cr" = x; then
29634 eval ac_cr=\$\'\\r\'
29636 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29637 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29640 ac_cs_awk_cr=$ac_cr
29643 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
29648 echo "cat >conf$$subs.awk <<_ACEOF" &&
29649 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29651 } >conf$$subs.sh ||
29652 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29653 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
29655 for ac_last_try in false false false false false :; do
29656 . ./conf$$subs.sh ||
29657 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29659 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29660 if test $ac_delim_n = $ac_delim_num; then
29662 elif $ac_last_try; then
29663 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29665 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29668 rm -f conf$$subs.sh
29670 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29671 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
29675 s/^/S["/; s/!.*/"]=/
29685 s/\(.\{148\}\)..*/\1/
29687 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29692 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29699 s/\(.\{148\}\)..*/\1/
29701 s/["\\]/\\&/g; s/^/"/; s/$/"/
29705 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29710 ' <conf$$subs.awk | sed '
29715 ' >>$CONFIG_STATUS || ac_write_fail=1
29716 rm -f conf$$subs.awk
29717 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29719 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
29720 for (key in S) S_is_set[key] = 1
29726 nfields = split(line, field, "@")
29728 len = length(field[1])
29729 for (i = 2; i < nfields; i++) {
29731 keylen = length(key)
29732 if (S_is_set[key]) {
29734 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29735 len += length(value) + length(field[++i])
29746 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29747 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29748 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29751 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
29752 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
29755 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
29756 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
29757 # trailing colons and then remove the whole line if VPATH becomes empty
29758 # (actually we leave an empty line to preserve line numbers).
29759 if test "x$srcdir" = x.; then
29760 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
29778 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29779 fi # test -n "$CONFIG_FILES"
29781 # Set up the scripts for CONFIG_HEADERS section.
29782 # No need to generate them if there are no CONFIG_HEADERS.
29783 # This happens for instance with `./config.status Makefile'.
29784 if test -n "$CONFIG_HEADERS"; then
29785 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
29789 # Transform confdefs.h into an awk script `defines.awk', embedded as
29790 # here-document in config.status, that substitutes the proper values into
29791 # config.h.in to produce config.h.
29793 # Create a delimiter string that does not exist in confdefs.h, to ease
29794 # handling of long lines.
29796 for ac_last_try in false false :; do
29797 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
29798 if test -z "$ac_tt"; then
29800 elif $ac_last_try; then
29801 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
29803 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29807 # For the awk script, D is an array of macro values keyed by name,
29808 # likewise P contains macro parameters if any. Preserve backslash
29809 # newline sequences.
29811 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29813 s/.\{148\}/&'"$ac_delim"'/g
29816 s/^[ ]*#[ ]*define[ ][ ]*/ /
29823 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29825 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
29829 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29830 D["\1"]=" \3\\\\\\n"\\/p
29832 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29837 s/.\{148\}/&'"$ac_delim"'/g
29842 s/["\\]/\\&/g; s/^/"/; s/$/"/p
29845 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29847 ' <confdefs.h | sed '
29848 s/'"$ac_delim"'/"\\\
29849 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29851 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29852 for (key in D) D_is_set[key] = 1
29855 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29857 split(line, arg, " ")
29858 if (arg[1] == "#") {
29862 defundef = substr(arg[1], 2)
29865 split(mac1, mac2, "(") #)
29867 prefix = substr(line, 1, index(line, defundef) - 1)
29868 if (D_is_set[macro]) {
29869 # Preserve the white space surrounding the "#".
29870 print prefix "define", macro P[macro] D[macro]
29873 # Replace #undef with comments. This is necessary, for example,
29874 # in the case of _POSIX_SOURCE, which is predefined and required
29875 # on some systems where configure will not decide to define it.
29876 if (defundef == "undef") {
29877 print "/*", prefix defundef, macro, "*/"
29885 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29886 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
29887 fi # test -n "$CONFIG_HEADERS"
29890 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
29895 :[FHLC]) ac_mode=$ac_tag; continue;;
29897 case $ac_mode$ac_tag in
29899 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
29900 :[FH]-) ac_tag=-:-;;
29901 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29918 -) ac_f="$ac_tmp/stdin";;
29919 *) # Look for the file first in the build tree, then in the source tree
29920 # (if the path is not absolute). The absolute path cannot be DOS-style,
29921 # because $ac_f cannot contain `:'.
29925 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29927 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29929 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29930 as_fn_append ac_file_inputs " '$ac_f'"
29933 # Let's still pretend it is `configure' which instantiates (i.e., don't
29934 # use $as_me), people would be surprised to read:
29935 # /* config.h. Generated by config.status. */
29936 configure_input='Generated from '`
29937 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29939 if test x"$ac_file" != x-; then
29940 configure_input="$ac_file. $configure_input"
29941 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29942 $as_echo "$as_me: creating $ac_file" >&6;}
29944 # Neutralize special characters interpreted by sed in replacement strings.
29945 case $configure_input in #(
29946 *\&* | *\|* | *\\* )
29947 ac_sed_conf_input=`$as_echo "$configure_input" |
29948 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29949 *) ac_sed_conf_input=$configure_input;;
29953 *:-:* | *:-) cat >"$ac_tmp/stdin" \
29954 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
29959 ac_dir=`$as_dirname -- "$ac_file" ||
29960 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29961 X"$ac_file" : 'X\(//\)[^/]' \| \
29962 X"$ac_file" : 'X\(//\)$' \| \
29963 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29964 $as_echo X"$ac_file" |
29965 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29969 /^X\(\/\/\)[^/].*/{
29982 as_dir="$ac_dir"; as_fn_mkdir_p
29986 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29988 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29989 # A ".." for each directory in $ac_dir_suffix.
29990 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29991 case $ac_top_builddir_sub in
29992 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29993 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29996 ac_abs_top_builddir=$ac_pwd
29997 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29998 # for backward compatibility:
29999 ac_top_builddir=$ac_top_build_prefix
30002 .) # We are building in place.
30004 ac_top_srcdir=$ac_top_builddir_sub
30005 ac_abs_top_srcdir=$ac_pwd ;;
30006 [\\/]* | ?:[\\/]* ) # Absolute name.
30007 ac_srcdir=$srcdir$ac_dir_suffix;
30008 ac_top_srcdir=$srcdir
30009 ac_abs_top_srcdir=$srcdir ;;
30010 *) # Relative name.
30011 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30012 ac_top_srcdir=$ac_top_build_prefix$srcdir
30013 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30015 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30025 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30026 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30030 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30031 # If the template does not know about datarootdir, expand it.
30032 # FIXME: This hack should be removed a few years after 2.60.
30033 ac_datarootdir_hack=; ac_datarootdir_seen=
30044 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30045 *datarootdir*) ac_datarootdir_seen=yes;;
30046 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30048 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30051 ac_datarootdir_hack='
30052 s&@datadir@&$datadir&g
30053 s&@docdir@&$docdir&g
30054 s&@infodir@&$infodir&g
30055 s&@localedir@&$localedir&g
30056 s&@mandir@&$mandir&g
30057 s&\\\${datarootdir}&$datarootdir&g' ;;
30061 # Neutralize VPATH when `$srcdir' = `.'.
30062 # Shell code in configure.ac might set extrasub.
30063 # FIXME: do we really want to maintain this feature?
30064 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30065 ac_sed_extra="$ac_vpsub
30068 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30070 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30071 s|@configure_input@|$ac_sed_conf_input|;t t
30072 s&@top_builddir@&$ac_top_builddir_sub&;t t
30073 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30074 s&@srcdir@&$ac_srcdir&;t t
30075 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30076 s&@top_srcdir@&$ac_top_srcdir&;t t
30077 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30078 s&@builddir@&$ac_builddir&;t t
30079 s&@abs_builddir@&$ac_abs_builddir&;t t
30080 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30081 s&@INSTALL@&$ac_INSTALL&;t t
30082 $ac_datarootdir_hack
30084 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
30085 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30087 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30088 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
30089 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
30090 "$ac_tmp/out"`; test -z "$ac_out"; } &&
30091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30092 which seems to be undefined. Please make sure it is defined" >&5
30093 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30094 which seems to be undefined. Please make sure it is defined" >&2;}
30096 rm -f "$ac_tmp/stdin"
30098 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
30099 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
30101 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30107 if test x"$ac_file" != x-; then
30109 $as_echo "/* $configure_input */" \
30110 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
30111 } >"$ac_tmp/config.h" \
30112 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30113 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
30114 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30115 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30118 mv "$ac_tmp/config.h" "$ac_file" \
30119 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30122 $as_echo "/* $configure_input */" \
30123 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
30124 || as_fn_error $? "could not create -" "$LINENO" 5
30128 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30129 $as_echo "$as_me: executing $ac_file commands" >&6;}
30134 case $ac_file$ac_mode in
30137 # See if we are running on zsh, and set the options which allow our
30138 # commands through without removal of \ escapes.
30139 if test -n "${ZSH_VERSION+set}" ; then
30140 setopt NO_GLOB_SUBST
30143 cfgfile="${ofile}T"
30144 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
30147 cat <<_LT_EOF >> "$cfgfile"
30150 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
30151 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
30152 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
30153 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
30155 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
30156 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
30158 # Written by Gordon Matzigkeit, 1996
30160 # This file is part of GNU Libtool.
30162 # GNU Libtool is free software; you can redistribute it and/or
30163 # modify it under the terms of the GNU General Public License as
30164 # published by the Free Software Foundation; either version 2 of
30165 # the License, or (at your option) any later version.
30167 # As a special exception to the GNU General Public License,
30168 # if you distribute this file as part of a program or library that
30169 # is built using GNU Libtool, you may include this file under the
30170 # same distribution terms that you use for the rest of that program.
30172 # GNU Libtool is distributed in the hope that it will be useful,
30173 # but WITHOUT ANY WARRANTY; without even the implied warranty of
30174 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30175 # GNU General Public License for more details.
30177 # You should have received a copy of the GNU General Public License
30178 # along with GNU Libtool; see the file COPYING. If not, a copy
30179 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
30180 # obtained by writing to the Free Software Foundation, Inc.,
30181 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
30184 # The names of the tagged configurations supported by this script.
30187 # ### BEGIN LIBTOOL CONFIG
30189 # Assembler program.
30192 # DLL creation program.
30193 DLLTOOL=$lt_DLLTOOL
30195 # Object dumper program.
30196 OBJDUMP=$lt_OBJDUMP
30198 # Which release of libtool.m4 was used?
30199 macro_version=$macro_version
30200 macro_revision=$macro_revision
30202 # Whether or not to build shared libraries.
30203 build_libtool_libs=$enable_shared
30205 # Whether or not to build static libraries.
30206 build_old_libs=$enable_static
30208 # What type of objects to build.
30211 # Whether or not to optimize for fast installation.
30212 fast_install=$enable_fast_install
30214 # Shell to use when invoking shell scripts.
30217 # An echo program that protects backslashes.
30220 # The PATH separator for the build system.
30221 PATH_SEPARATOR=$lt_PATH_SEPARATOR
30224 host_alias=$host_alias
30228 # The build system.
30229 build_alias=$build_alias
30233 # A sed program that does not truncate output.
30236 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
30237 Xsed="\$SED -e 1s/^X//"
30239 # A grep program that handles long lines.
30245 # A literal string matcher.
30248 # A BSD- or MS-compatible name lister.
30251 # Whether we need soft or hard links.
30254 # What is the maximum length of a command?
30255 max_cmd_len=$max_cmd_len
30257 # Object file suffix (normally "o").
30260 # Executable file suffix (normally "").
30263 # whether the shell understands "unset".
30266 # turn spaces into newlines.
30269 # turn newlines into spaces.
30272 # convert \$build file names to \$host format.
30273 to_host_file_cmd=$lt_cv_to_host_file_cmd
30275 # convert \$build files to toolchain format.
30276 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
30278 # Method to check whether dependent libraries are shared objects.
30279 deplibs_check_method=$lt_deplibs_check_method
30281 # Command to use when deplibs_check_method = "file_magic".
30282 file_magic_cmd=$lt_file_magic_cmd
30284 # How to find potential files when deplibs_check_method = "file_magic".
30285 file_magic_glob=$lt_file_magic_glob
30287 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
30288 want_nocaseglob=$lt_want_nocaseglob
30290 # Command to associate shared and link libraries.
30291 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
30296 # Flags to create an archive.
30297 AR_FLAGS=$lt_AR_FLAGS
30299 # How to feed a file listing to the archiver.
30300 archiver_list_spec=$lt_archiver_list_spec
30302 # A symbol stripping program.
30305 # Commands used to install an old-style archive.
30307 old_postinstall_cmds=$lt_old_postinstall_cmds
30308 old_postuninstall_cmds=$lt_old_postuninstall_cmds
30310 # Whether to use a lock for old archive extraction.
30311 lock_old_archive_extraction=$lock_old_archive_extraction
30316 # LTCC compiler flags.
30317 LTCFLAGS=$lt_CFLAGS
30319 # Take the output of nm and produce a listing of raw symbols and C names.
30320 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
30322 # Transform the output of nm in a proper C declaration.
30323 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
30325 # Transform the output of nm in a C name address pair.
30326 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
30328 # Transform the output of nm in a C name address pair when lib prefix is needed.
30329 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
30331 # Specify filename containing input files for \$NM.
30332 nm_file_list_spec=$lt_nm_file_list_spec
30334 # The root where to search for dependent libraries,and in which our libraries should be installed.
30335 lt_sysroot=$lt_sysroot
30337 # The name of the directory that contains temporary libtool files.
30340 # Used to examine libraries when file_magic_cmd begins with "file".
30341 MAGIC_CMD=$MAGIC_CMD
30343 # Must we lock files when doing compilation?
30344 need_locks=$lt_need_locks
30347 MANIFEST_TOOL=$lt_MANIFEST_TOOL
30349 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
30350 DSYMUTIL=$lt_DSYMUTIL
30352 # Tool to change global to local symbols on Mac OS X.
30355 # Tool to manipulate fat objects and archives on Mac OS X.
30358 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
30361 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
30362 OTOOL64=$lt_OTOOL64
30364 # Old archive suffix (normally "a").
30367 # Shared library suffix (normally ".so").
30368 shrext_cmds=$lt_shrext_cmds
30370 # The commands to extract the exported symbol list from a shared archive.
30371 extract_expsyms_cmds=$lt_extract_expsyms_cmds
30373 # Variables whose values should be saved in libtool wrapper scripts and
30374 # restored at link time.
30375 variables_saved_for_relink=$lt_variables_saved_for_relink
30377 # Do we need the "lib" prefix for modules?
30378 need_lib_prefix=$need_lib_prefix
30380 # Do we need a version for libraries?
30381 need_version=$need_version
30383 # Library versioning type.
30384 version_type=$version_type
30386 # Shared library runtime path variable.
30387 runpath_var=$runpath_var
30389 # Shared library path variable.
30390 shlibpath_var=$shlibpath_var
30392 # Is shlibpath searched before the hard-coded library search path?
30393 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
30395 # Format of library name prefix.
30396 libname_spec=$lt_libname_spec
30398 # List of archive names. First name is the real one, the rest are links.
30399 # The last name is the one that the linker finds with -lNAME
30400 library_names_spec=$lt_library_names_spec
30402 # The coded name of the library, if different from the real name.
30403 soname_spec=$lt_soname_spec
30405 # Permission mode override for installation of shared libraries.
30406 install_override_mode=$lt_install_override_mode
30408 # Command to use after installation of a shared archive.
30409 postinstall_cmds=$lt_postinstall_cmds
30411 # Command to use after uninstallation of a shared archive.
30412 postuninstall_cmds=$lt_postuninstall_cmds
30414 # Commands used to finish a libtool library installation in a directory.
30415 finish_cmds=$lt_finish_cmds
30417 # As "finish_cmds", except a single script fragment to be evaled but
30419 finish_eval=$lt_finish_eval
30421 # Whether we should hardcode library paths into libraries.
30422 hardcode_into_libs=$hardcode_into_libs
30424 # Compile-time system search path for libraries.
30425 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
30427 # Run-time system search path for libraries.
30428 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
30430 # Whether dlopen is supported.
30431 dlopen_support=$enable_dlopen
30433 # Whether dlopen of programs is supported.
30434 dlopen_self=$enable_dlopen_self
30436 # Whether dlopen of statically linked programs is supported.
30437 dlopen_self_static=$enable_dlopen_self_static
30439 # Commands to strip libraries.
30440 old_striplib=$lt_old_striplib
30441 striplib=$lt_striplib
30444 # The linker used to build libraries.
30447 # How to create reloadable object files.
30448 reload_flag=$lt_reload_flag
30449 reload_cmds=$lt_reload_cmds
30451 # Commands used to build an old-style archive.
30452 old_archive_cmds=$lt_old_archive_cmds
30454 # A language specific compiler.
30457 # Is the compiler the GNU compiler?
30460 # Compiler flag to turn off builtin functions.
30461 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
30463 # Additional compiler flags for building library objects.
30464 pic_flag=$lt_lt_prog_compiler_pic
30466 # How to pass a linker flag through the compiler.
30467 wl=$lt_lt_prog_compiler_wl
30469 # Compiler flag to prevent dynamic linking.
30470 link_static_flag=$lt_lt_prog_compiler_static
30472 # Does compiler simultaneously support -c and -o options?
30473 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
30475 # Whether or not to add -lc for building shared libraries.
30476 build_libtool_need_lc=$archive_cmds_need_lc
30478 # Whether or not to disallow shared libs when runtime libs are static.
30479 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
30481 # Compiler flag to allow reflexive dlopens.
30482 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
30484 # Compiler flag to generate shared objects directly from archives.
30485 whole_archive_flag_spec=$lt_whole_archive_flag_spec
30487 # Whether the compiler copes with passing no objects directly.
30488 compiler_needs_object=$lt_compiler_needs_object
30490 # Create an old-style archive from a shared archive.
30491 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
30493 # Create a temporary old-style archive to link instead of a shared archive.
30494 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
30496 # Commands used to build a shared archive.
30497 archive_cmds=$lt_archive_cmds
30498 archive_expsym_cmds=$lt_archive_expsym_cmds
30500 # Commands used to build a loadable module if different from building
30501 # a shared archive.
30502 module_cmds=$lt_module_cmds
30503 module_expsym_cmds=$lt_module_expsym_cmds
30505 # Whether we are building with GNU ld or not.
30506 with_gnu_ld=$lt_with_gnu_ld
30508 # Flag that allows shared libraries with undefined symbols to be built.
30509 allow_undefined_flag=$lt_allow_undefined_flag
30511 # Flag that enforces no undefined symbols.
30512 no_undefined_flag=$lt_no_undefined_flag
30514 # Flag to hardcode \$libdir into a binary during linking.
30515 # This must work even if \$libdir does not exist
30516 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
30518 # Whether we need a single "-rpath" flag with a separated argument.
30519 hardcode_libdir_separator=$lt_hardcode_libdir_separator
30521 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30522 # DIR into the resulting binary.
30523 hardcode_direct=$hardcode_direct
30525 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30526 # DIR into the resulting binary and the resulting library dependency is
30527 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
30528 # library is relocated.
30529 hardcode_direct_absolute=$hardcode_direct_absolute
30531 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30532 # into the resulting binary.
30533 hardcode_minus_L=$hardcode_minus_L
30535 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30536 # into the resulting binary.
30537 hardcode_shlibpath_var=$hardcode_shlibpath_var
30539 # Set to "yes" if building a shared library automatically hardcodes DIR
30540 # into the library and all subsequent libraries and executables linked
30542 hardcode_automatic=$hardcode_automatic
30544 # Set to yes if linker adds runtime paths of dependent libraries
30545 # to runtime path list.
30546 inherit_rpath=$inherit_rpath
30548 # Whether libtool must link a program against all its dependency libraries.
30549 link_all_deplibs=$link_all_deplibs
30551 # Set to "yes" if exported symbols are required.
30552 always_export_symbols=$always_export_symbols
30554 # The commands to list exported symbols.
30555 export_symbols_cmds=$lt_export_symbols_cmds
30557 # Symbols that should not be listed in the preloaded symbols.
30558 exclude_expsyms=$lt_exclude_expsyms
30560 # Symbols that must always be exported.
30561 include_expsyms=$lt_include_expsyms
30563 # Commands necessary for linking programs (against libraries) with templates.
30564 prelink_cmds=$lt_prelink_cmds
30566 # Commands necessary for finishing linking programs.
30567 postlink_cmds=$lt_postlink_cmds
30569 # Specify filename containing input files.
30570 file_list_spec=$lt_file_list_spec
30572 # How to hardcode a shared library path into an executable.
30573 hardcode_action=$hardcode_action
30575 # ### END LIBTOOL CONFIG
30581 cat <<\_LT_EOF >> "$cfgfile"
30582 # AIX sometimes has problems with the GCC collect2 program. For some
30583 # reason, if we set the COLLECT_NAMES environment variable, the problems
30584 # vanish in a puff of smoke.
30585 if test "X${COLLECT_NAMES+set}" != Xset; then
30587 export COLLECT_NAMES
30594 ltmain="$ac_aux_dir/ltmain.sh"
30597 # We use sed instead of cat because bash on DJGPP gets confused if
30598 # if finds mixed CR/LF and LF-only lines. Since sed operates in
30599 # text mode, it properly converts lines to CR/LF. This bash problem
30600 # is reportedly fixed, but why not run on old versions too?
30601 sed '$q' "$ltmain" >> "$cfgfile" \
30602 || (rm -f "$cfgfile"; exit 1)
30604 if test x"$xsi_shell" = xyes; then
30605 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
30609 \ */*) func_dirname_result="${1%/*}${2}" ;;\
30610 \ * ) func_dirname_result="${3}" ;;\
30612 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
30613 && mv -f "$cfgfile.tmp" "$cfgfile" \
30614 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30615 test 0 -eq $? || _lt_function_replace_fail=:
30618 sed -e '/^func_basename ()$/,/^} # func_basename /c\
30621 \ func_basename_result="${1##*/}"\
30622 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
30623 && mv -f "$cfgfile.tmp" "$cfgfile" \
30624 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30625 test 0 -eq $? || _lt_function_replace_fail=:
30628 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
30629 func_dirname_and_basename ()\
30632 \ */*) func_dirname_result="${1%/*}${2}" ;;\
30633 \ * ) func_dirname_result="${3}" ;;\
30635 \ func_basename_result="${1##*/}"\
30636 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
30637 && mv -f "$cfgfile.tmp" "$cfgfile" \
30638 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30639 test 0 -eq $? || _lt_function_replace_fail=:
30642 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
30645 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
30646 \ # positional parameters, so assign one to ordinary parameter first.\
30647 \ func_stripname_result=${3}\
30648 \ func_stripname_result=${func_stripname_result#"${1}"}\
30649 \ func_stripname_result=${func_stripname_result%"${2}"}\
30650 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
30651 && mv -f "$cfgfile.tmp" "$cfgfile" \
30652 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30653 test 0 -eq $? || _lt_function_replace_fail=:
30656 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
30657 func_split_long_opt ()\
30659 \ func_split_long_opt_name=${1%%=*}\
30660 \ func_split_long_opt_arg=${1#*=}\
30661 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
30662 && mv -f "$cfgfile.tmp" "$cfgfile" \
30663 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30664 test 0 -eq $? || _lt_function_replace_fail=:
30667 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
30668 func_split_short_opt ()\
30670 \ func_split_short_opt_arg=${1#??}\
30671 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
30672 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
30673 && mv -f "$cfgfile.tmp" "$cfgfile" \
30674 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30675 test 0 -eq $? || _lt_function_replace_fail=:
30678 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
30682 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
30683 \ *) func_lo2o_result=${1} ;;\
30685 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
30686 && mv -f "$cfgfile.tmp" "$cfgfile" \
30687 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30688 test 0 -eq $? || _lt_function_replace_fail=:
30691 sed -e '/^func_xform ()$/,/^} # func_xform /c\
30694 func_xform_result=${1%.*}.lo\
30695 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
30696 && mv -f "$cfgfile.tmp" "$cfgfile" \
30697 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30698 test 0 -eq $? || _lt_function_replace_fail=:
30701 sed -e '/^func_arith ()$/,/^} # func_arith /c\
30704 func_arith_result=$(( $* ))\
30705 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
30706 && mv -f "$cfgfile.tmp" "$cfgfile" \
30707 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30708 test 0 -eq $? || _lt_function_replace_fail=:
30711 sed -e '/^func_len ()$/,/^} # func_len /c\
30714 func_len_result=${#1}\
30715 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
30716 && mv -f "$cfgfile.tmp" "$cfgfile" \
30717 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30718 test 0 -eq $? || _lt_function_replace_fail=:
30722 if test x"$lt_shell_append" = xyes; then
30723 sed -e '/^func_append ()$/,/^} # func_append /c\
30726 eval "${1}+=\\${2}"\
30727 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
30728 && mv -f "$cfgfile.tmp" "$cfgfile" \
30729 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30730 test 0 -eq $? || _lt_function_replace_fail=:
30733 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
30734 func_append_quoted ()\
30736 \ func_quote_for_eval "${2}"\
30737 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
30738 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
30739 && mv -f "$cfgfile.tmp" "$cfgfile" \
30740 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30741 test 0 -eq $? || _lt_function_replace_fail=:
30744 # Save a `func_append' function call where possible by direct use of '+='
30745 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
30746 && mv -f "$cfgfile.tmp" "$cfgfile" \
30747 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30748 test 0 -eq $? || _lt_function_replace_fail=:
30750 # Save a `func_append' function call even when '+=' is not available
30751 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
30752 && mv -f "$cfgfile.tmp" "$cfgfile" \
30753 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30754 test 0 -eq $? || _lt_function_replace_fail=:
30757 if test x"$_lt_function_replace_fail" = x":"; then
30758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
30759 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
30763 mv -f "$cfgfile" "$ofile" ||
30764 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
30769 # Commands run at the end of config.status:
30770 for i in $APR_SAVE_HEADERS; do
30771 if cmp -s $i $i.save 2>/dev/null; then
30773 { $as_echo "$as_me:${as_lineno-$LINENO}: $i is unchanged" >&5
30774 $as_echo "$as_me: $i is unchanged" >&6;}
30778 chmod +x apr-$APR_MAJOR_VERSION-config
30787 ac_clean_files=$ac_clean_files_save
30789 test $ac_write_fail = 0 ||
30790 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
30793 # configure is writing to config.log, and then calls config.status.
30794 # config.status does its own redirection, appending to config.log.
30795 # Unfortunately, on DOS this fails, as config.log is still kept open
30796 # by configure, so config.status won't be able to write to it; its
30797 # output is simply discarded. So we exec the FD to /dev/null,
30798 # effectively closing config.log, so it can be properly (re)opened and
30799 # appended to by config.status. When coming back to configure, we
30800 # need to make the FD available again.
30801 if test "$no_create" != yes; then
30803 ac_config_status_args=
30804 test "$silent" = yes &&
30805 ac_config_status_args="$ac_config_status_args --quiet"
30807 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30809 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30810 # would make configure fail if this is the last instruction.
30811 $ac_cs_success || as_fn_exit 1
30813 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30815 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}