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
654 apr_procattr_user_set_requires_password
655 apr_has_xthread_files
759 tcp_nodelay_inherited
888 program_transform_name
901 enable_option_checking
903 enable_experimental_libtool
914 enable_maintainer_mode
919 enable_nonportable_atomics
923 enable_allocator_uses_mmap
930 ac_precious_vars='build_alias
941 # Initialize some variables set by options.
943 ac_init_version=false
944 ac_unrecognized_opts=
946 # The variables have the same names as the options, with
947 # dashes changed to underlines.
955 program_transform_name=s,x,x,
963 # Installation directory options.
964 # These are left unexpanded so users can "make install exec_prefix=/foo"
965 # and all the variables that are supposed to be based on exec_prefix
966 # by default will actually change.
967 # Use braces instead of parens because sh, perl, etc. also accept them.
968 # (The list follows the same order as the GNU Coding Standards.)
969 bindir='${exec_prefix}/bin'
970 sbindir='${exec_prefix}/sbin'
971 libexecdir='${exec_prefix}/libexec'
972 datarootdir='${prefix}/share'
973 datadir='${datarootdir}'
974 sysconfdir='${prefix}/etc'
975 sharedstatedir='${prefix}/com'
976 localstatedir='${prefix}/var'
977 includedir='${prefix}/include'
978 oldincludedir='/usr/include'
979 docdir='${datarootdir}/doc/${PACKAGE}'
980 infodir='${datarootdir}/info'
985 libdir='${exec_prefix}/lib'
986 localedir='${datarootdir}/locale'
987 mandir='${datarootdir}/man'
993 # If the previous option needs an argument, assign it.
994 if test -n "$ac_prev"; then
995 eval $ac_prev=\$ac_option
1001 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1006 # Accept the important Cygnus configure options, so we can diagnose typos.
1008 case $ac_dashdash$ac_option in
1012 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1014 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1015 bindir=$ac_optarg ;;
1017 -build | --build | --buil | --bui | --bu)
1018 ac_prev=build_alias ;;
1019 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1020 build_alias=$ac_optarg ;;
1022 -cache-file | --cache-file | --cache-fil | --cache-fi \
1023 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1024 ac_prev=cache_file ;;
1025 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1026 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1027 cache_file=$ac_optarg ;;
1029 --config-cache | -C)
1030 cache_file=config.cache ;;
1032 -datadir | --datadir | --datadi | --datad)
1034 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1035 datadir=$ac_optarg ;;
1037 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1038 | --dataroo | --dataro | --datar)
1039 ac_prev=datarootdir ;;
1040 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1041 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1042 datarootdir=$ac_optarg ;;
1044 -disable-* | --disable-*)
1045 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1046 # Reject names that are not valid shell variable names.
1047 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1048 as_fn_error $? "invalid feature name: $ac_useropt"
1049 ac_useropt_orig=$ac_useropt
1050 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1051 case $ac_user_opts in
1053 "enable_$ac_useropt"
1055 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1056 ac_unrecognized_sep=', ';;
1058 eval enable_$ac_useropt=no ;;
1060 -docdir | --docdir | --docdi | --doc | --do)
1062 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1063 docdir=$ac_optarg ;;
1065 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1067 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1068 dvidir=$ac_optarg ;;
1070 -enable-* | --enable-*)
1071 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1074 as_fn_error $? "invalid feature name: $ac_useropt"
1075 ac_useropt_orig=$ac_useropt
1076 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1077 case $ac_user_opts in
1079 "enable_$ac_useropt"
1081 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1082 ac_unrecognized_sep=', ';;
1084 eval enable_$ac_useropt=\$ac_optarg ;;
1086 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1087 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1088 | --exec | --exe | --ex)
1089 ac_prev=exec_prefix ;;
1090 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1091 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1092 | --exec=* | --exe=* | --ex=*)
1093 exec_prefix=$ac_optarg ;;
1095 -gas | --gas | --ga | --g)
1096 # Obsolete; use --with-gas.
1099 -help | --help | --hel | --he | -h)
1100 ac_init_help=long ;;
1101 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1102 ac_init_help=recursive ;;
1103 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1104 ac_init_help=short ;;
1106 -host | --host | --hos | --ho)
1107 ac_prev=host_alias ;;
1108 -host=* | --host=* | --hos=* | --ho=*)
1109 host_alias=$ac_optarg ;;
1111 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1113 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1115 htmldir=$ac_optarg ;;
1117 -includedir | --includedir | --includedi | --included | --include \
1118 | --includ | --inclu | --incl | --inc)
1119 ac_prev=includedir ;;
1120 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1121 | --includ=* | --inclu=* | --incl=* | --inc=*)
1122 includedir=$ac_optarg ;;
1124 -infodir | --infodir | --infodi | --infod | --info | --inf)
1126 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1127 infodir=$ac_optarg ;;
1129 -libdir | --libdir | --libdi | --libd)
1131 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1132 libdir=$ac_optarg ;;
1134 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1135 | --libexe | --libex | --libe)
1136 ac_prev=libexecdir ;;
1137 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1138 | --libexe=* | --libex=* | --libe=*)
1139 libexecdir=$ac_optarg ;;
1141 -localedir | --localedir | --localedi | --localed | --locale)
1142 ac_prev=localedir ;;
1143 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1144 localedir=$ac_optarg ;;
1146 -localstatedir | --localstatedir | --localstatedi | --localstated \
1147 | --localstate | --localstat | --localsta | --localst | --locals)
1148 ac_prev=localstatedir ;;
1149 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1150 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1151 localstatedir=$ac_optarg ;;
1153 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1155 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1156 mandir=$ac_optarg ;;
1158 -nfp | --nfp | --nf)
1159 # Obsolete; use --without-fp.
1162 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1163 | --no-cr | --no-c | -n)
1166 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1167 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1170 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1171 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1172 | --oldin | --oldi | --old | --ol | --o)
1173 ac_prev=oldincludedir ;;
1174 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1175 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1176 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1177 oldincludedir=$ac_optarg ;;
1179 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1181 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1182 prefix=$ac_optarg ;;
1184 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1185 | --program-pre | --program-pr | --program-p)
1186 ac_prev=program_prefix ;;
1187 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1188 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1189 program_prefix=$ac_optarg ;;
1191 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1192 | --program-suf | --program-su | --program-s)
1193 ac_prev=program_suffix ;;
1194 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1195 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1196 program_suffix=$ac_optarg ;;
1198 -program-transform-name | --program-transform-name \
1199 | --program-transform-nam | --program-transform-na \
1200 | --program-transform-n | --program-transform- \
1201 | --program-transform | --program-transfor \
1202 | --program-transfo | --program-transf \
1203 | --program-trans | --program-tran \
1204 | --progr-tra | --program-tr | --program-t)
1205 ac_prev=program_transform_name ;;
1206 -program-transform-name=* | --program-transform-name=* \
1207 | --program-transform-nam=* | --program-transform-na=* \
1208 | --program-transform-n=* | --program-transform-=* \
1209 | --program-transform=* | --program-transfor=* \
1210 | --program-transfo=* | --program-transf=* \
1211 | --program-trans=* | --program-tran=* \
1212 | --progr-tra=* | --program-tr=* | --program-t=*)
1213 program_transform_name=$ac_optarg ;;
1215 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1217 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1218 pdfdir=$ac_optarg ;;
1220 -psdir | --psdir | --psdi | --psd | --ps)
1222 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1225 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1226 | -silent | --silent | --silen | --sile | --sil)
1229 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1231 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1233 sbindir=$ac_optarg ;;
1235 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1236 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1237 | --sharedst | --shareds | --shared | --share | --shar \
1239 ac_prev=sharedstatedir ;;
1240 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1241 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1242 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1244 sharedstatedir=$ac_optarg ;;
1246 -site | --site | --sit)
1248 -site=* | --site=* | --sit=*)
1251 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1253 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1254 srcdir=$ac_optarg ;;
1256 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1257 | --syscon | --sysco | --sysc | --sys | --sy)
1258 ac_prev=sysconfdir ;;
1259 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1260 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1261 sysconfdir=$ac_optarg ;;
1263 -target | --target | --targe | --targ | --tar | --ta | --t)
1264 ac_prev=target_alias ;;
1265 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1266 target_alias=$ac_optarg ;;
1268 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1271 -version | --version | --versio | --versi | --vers | -V)
1272 ac_init_version=: ;;
1275 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1276 # Reject names that are not valid shell variable names.
1277 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1278 as_fn_error $? "invalid package name: $ac_useropt"
1279 ac_useropt_orig=$ac_useropt
1280 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1281 case $ac_user_opts in
1285 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1286 ac_unrecognized_sep=', ';;
1288 eval with_$ac_useropt=\$ac_optarg ;;
1290 -without-* | --without-*)
1291 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1292 # Reject names that are not valid shell variable names.
1293 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1294 as_fn_error $? "invalid package name: $ac_useropt"
1295 ac_useropt_orig=$ac_useropt
1296 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1297 case $ac_user_opts in
1301 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1302 ac_unrecognized_sep=', ';;
1304 eval with_$ac_useropt=no ;;
1307 # Obsolete; use --with-x.
1310 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1311 | --x-incl | --x-inc | --x-in | --x-i)
1312 ac_prev=x_includes ;;
1313 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1314 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1315 x_includes=$ac_optarg ;;
1317 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1318 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1319 ac_prev=x_libraries ;;
1320 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1321 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1322 x_libraries=$ac_optarg ;;
1324 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1325 Try \`$0 --help' for more information"
1329 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1330 # Reject names that are not valid shell variable names.
1331 case $ac_envvar in #(
1332 '' | [0-9]* | *[!_$as_cr_alnum]* )
1333 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1335 eval $ac_envvar=\$ac_optarg
1336 export $ac_envvar ;;
1339 # FIXME: should be removed in autoconf 3.0.
1340 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1341 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1342 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1343 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1349 if test -n "$ac_prev"; then
1350 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1351 as_fn_error $? "missing argument to $ac_option"
1354 if test -n "$ac_unrecognized_opts"; then
1355 case $enable_option_checking in
1357 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1358 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1362 # Check all directory arguments for consistency.
1363 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1364 datadir sysconfdir sharedstatedir localstatedir includedir \
1365 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1366 libdir localedir mandir
1368 eval ac_val=\$$ac_var
1369 # Remove trailing slashes.
1372 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1373 eval $ac_var=\$ac_val;;
1375 # Be sure to have absolute directory names.
1377 [\\/$]* | ?:[\\/]* ) continue;;
1378 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1380 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1383 # There might be people who depend on the old broken behavior: `$host'
1384 # used to hold the argument of --host etc.
1385 # FIXME: To remove some day.
1388 target=$target_alias
1390 # FIXME: To remove some day.
1391 if test "x$host_alias" != x; then
1392 if test "x$build_alias" = x; then
1393 cross_compiling=maybe
1394 elif test "x$build_alias" != "x$host_alias"; then
1400 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1402 test "$silent" = yes && exec 6>/dev/null
1405 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1406 ac_ls_di=`ls -di .` &&
1407 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1408 as_fn_error $? "working directory cannot be determined"
1409 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1410 as_fn_error $? "pwd does not report name of working directory"
1413 # Find the source files, if location was not specified.
1414 if test -z "$srcdir"; then
1415 ac_srcdir_defaulted=yes
1416 # Try the directory containing this script, then the parent directory.
1417 ac_confdir=`$as_dirname -- "$as_myself" ||
1418 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1419 X"$as_myself" : 'X\(//\)[^/]' \| \
1420 X"$as_myself" : 'X\(//\)$' \| \
1421 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1422 $as_echo X"$as_myself" |
1423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1441 if test ! -r "$srcdir/$ac_unique_file"; then
1445 ac_srcdir_defaulted=no
1447 if test ! -r "$srcdir/$ac_unique_file"; then
1448 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1449 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1451 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1453 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1455 # When building in place, set srcdir=.
1456 if test "$ac_abs_confdir" = "$ac_pwd"; then
1459 # Remove unnecessary trailing slashes from srcdir.
1460 # Double slashes in file names in object file debugging info
1461 # mess up M-x gdb in Emacs.
1463 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1465 for ac_var in $ac_precious_vars; do
1466 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1467 eval ac_env_${ac_var}_value=\$${ac_var}
1468 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1469 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1473 # Report the --help message.
1475 if test "$ac_init_help" = "long"; then
1476 # Omit some internal or obsolete options to make the list less imposing.
1477 # This message is too long to be a string in the A/UX 3.1 sh.
1479 \`configure' configures this package to adapt to many kinds of systems.
1481 Usage: $0 [OPTION]... [VAR=VALUE]...
1483 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1484 VAR=VALUE. See below for descriptions of some of the useful variables.
1486 Defaults for the options are specified in brackets.
1489 -h, --help display this help and exit
1490 --help=short display options specific to this package
1491 --help=recursive display the short help of all the included packages
1492 -V, --version display version information and exit
1493 -q, --quiet, --silent do not print \`checking ...' messages
1494 --cache-file=FILE cache test results in FILE [disabled]
1495 -C, --config-cache alias for \`--cache-file=config.cache'
1496 -n, --no-create do not create output files
1497 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1499 Installation directories:
1500 --prefix=PREFIX install architecture-independent files in PREFIX
1501 [$ac_default_prefix]
1502 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1505 By default, \`make install' will install all the files in
1506 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1507 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1508 for instance \`--prefix=\$HOME'.
1510 For better control, use the options below.
1512 Fine tuning of the installation directories:
1513 --bindir=DIR user executables [EPREFIX/bin]
1514 --sbindir=DIR system admin executables [EPREFIX/sbin]
1515 --libexecdir=DIR program executables [EPREFIX/libexec]
1516 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1517 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1518 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1519 --libdir=DIR object code libraries [EPREFIX/lib]
1520 --includedir=DIR C header files [PREFIX/include]
1521 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1522 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1523 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1524 --infodir=DIR info documentation [DATAROOTDIR/info]
1525 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1526 --mandir=DIR man documentation [DATAROOTDIR/man]
1527 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1528 --htmldir=DIR html documentation [DOCDIR]
1529 --dvidir=DIR dvi documentation [DOCDIR]
1530 --pdfdir=DIR pdf documentation [DOCDIR]
1531 --psdir=DIR ps documentation [DOCDIR]
1537 --build=BUILD configure for building on BUILD [guessed]
1538 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1539 --target=TARGET configure for building compilers for TARGET [HOST]
1543 if test -n "$ac_init_help"; then
1548 --disable-option-checking ignore unrecognized --enable/--with options
1549 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1550 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1551 --enable-layout=LAYOUT
1552 --enable-experimental-libtool Use experimental custom libtool
1553 --enable-shared[=PKGS] build shared libraries [default=yes]
1554 --enable-static[=PKGS] build static libraries [default=yes]
1555 --enable-fast-install[=PKGS]
1556 optimize for fast installation [default=yes]
1557 --disable-libtool-lock avoid locking (might break parallel builds)
1558 --enable-debug Turn on debugging and compile time warnings
1559 --enable-maintainer-mode Turn on debugging and compile time warnings
1560 --enable-profile Turn on profiling for the build (GCC)
1561 --enable-pool-debug[=yes|no|verbose|verbose-alloc|lifetime|owner|all] Turn on pools debugging
1562 --enable-malloc-debug Switch on malloc_debug for BeOS
1563 --disable-lfs Disable large file support on 32-bit platforms
1564 --enable-nonportable-atomics Use optimized atomic code which may produce nonportable binaries
1565 --enable-threads Enable threading support in APR.
1566 --enable-allocator-uses-mmap Use mmap in apr_allocator instead of malloc (experimental)
1567 --disable-dso Disable DSO support
1568 --enable-other-child Enable reliable child processes
1569 --disable-ipv6 Disable IPv6 support in APR.
1572 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1573 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1574 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1576 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1577 --with-sysroot=DIR Search for dependent libraries within DIR
1578 (or the compiler's sysroot if not specified).
1579 --with-installbuilddir=DIR location to store APR build files (defaults to '${datadir}/build')
1580 --without-libtool avoid using libtool to link the library
1581 --with-efence[=DIR] path to Electric Fence installation
1582 --with-sendfile Override decision to use sendfile
1583 --with-egd[=DIR] use EGD-compatible socket
1584 --with-devrandom[=DEV] use /dev/random or compatible [searches by default]
1586 Some influential environment variables:
1587 CC C compiler command
1588 CFLAGS C compiler flags
1589 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1590 nonstandard directory <lib dir>
1591 LIBS libraries to pass to the linker, e.g. -l<library>
1592 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1593 you have headers in a nonstandard directory <include dir>
1596 Use these variables to override the choices made by `configure' or to help
1597 it to find libraries and programs with nonstandard names/locations.
1599 Report bugs to the package provider.
1604 if test "$ac_init_help" = "recursive"; then
1605 # If there are subdirs, report their specific --help.
1606 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1607 test -d "$ac_dir" ||
1608 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1613 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1615 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1616 # A ".." for each directory in $ac_dir_suffix.
1617 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1618 case $ac_top_builddir_sub in
1619 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1620 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1623 ac_abs_top_builddir=$ac_pwd
1624 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1625 # for backward compatibility:
1626 ac_top_builddir=$ac_top_build_prefix
1629 .) # We are building in place.
1631 ac_top_srcdir=$ac_top_builddir_sub
1632 ac_abs_top_srcdir=$ac_pwd ;;
1633 [\\/]* | ?:[\\/]* ) # Absolute name.
1634 ac_srcdir=$srcdir$ac_dir_suffix;
1635 ac_top_srcdir=$srcdir
1636 ac_abs_top_srcdir=$srcdir ;;
1638 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1639 ac_top_srcdir=$ac_top_build_prefix$srcdir
1640 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1642 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1644 cd "$ac_dir" || { ac_status=$?; continue; }
1645 # Check for guested configure.
1646 if test -f "$ac_srcdir/configure.gnu"; then
1648 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1649 elif test -f "$ac_srcdir/configure"; then
1651 $SHELL "$ac_srcdir/configure" --help=recursive
1653 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1655 cd "$ac_pwd" || { ac_status=$?; break; }
1659 test -n "$ac_init_help" && exit $ac_status
1660 if $ac_init_version; then
1663 generated by GNU Autoconf 2.69
1665 Copyright (C) 2012 Free Software Foundation, Inc.
1666 This configure script is free software; the Free Software Foundation
1667 gives unlimited permission to copy, distribute and modify it.
1672 ## ------------------------ ##
1673 ## Autoconf initialization. ##
1674 ## ------------------------ ##
1676 # ac_fn_c_try_compile LINENO
1677 # --------------------------
1678 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1679 ac_fn_c_try_compile ()
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 rm -f conftest.$ac_objext
1683 if { { ac_try="$ac_compile"
1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686 *) ac_try_echo=$ac_try;;
1688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689 $as_echo "$ac_try_echo"; } >&5
1690 (eval "$ac_compile") 2>conftest.err
1692 if test -s conftest.err; then
1693 grep -v '^ *+' conftest.err >conftest.er1
1694 cat conftest.er1 >&5
1695 mv -f conftest.er1 conftest.err
1697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1698 test $ac_status = 0; } && {
1699 test -z "$ac_c_werror_flag" ||
1700 test ! -s conftest.err
1701 } && test -s conftest.$ac_objext; then :
1704 $as_echo "$as_me: failed program was:" >&5
1705 sed 's/^/| /' conftest.$ac_ext >&5
1709 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1710 as_fn_set_status $ac_retval
1712 } # ac_fn_c_try_compile
1714 # ac_fn_c_try_cpp LINENO
1715 # ----------------------
1716 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720 if { { ac_try="$ac_cpp conftest.$ac_ext"
1722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723 *) ac_try_echo=$ac_try;;
1725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726 $as_echo "$ac_try_echo"; } >&5
1727 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1729 if test -s conftest.err; then
1730 grep -v '^ *+' conftest.err >conftest.er1
1731 cat conftest.er1 >&5
1732 mv -f conftest.er1 conftest.err
1734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735 test $ac_status = 0; } > conftest.i && {
1736 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1737 test ! -s conftest.err
1741 $as_echo "$as_me: failed program was:" >&5
1742 sed 's/^/| /' conftest.$ac_ext >&5
1746 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1747 as_fn_set_status $ac_retval
1751 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1752 # -------------------------------------------------------
1753 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1754 # the include files in INCLUDES and setting the cache variable VAR
1756 ac_fn_c_check_header_mongrel ()
1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759 if eval \${$3+:} false; then :
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1761 $as_echo_n "checking for $2... " >&6; }
1762 if eval \${$3+:} false; then :
1763 $as_echo_n "(cached) " >&6
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1767 $as_echo "$ac_res" >&6; }
1769 # Is the header compilable?
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1771 $as_echo_n "checking $2 usability... " >&6; }
1772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1773 /* end confdefs.h. */
1777 if ac_fn_c_try_compile "$LINENO"; then :
1778 ac_header_compiler=yes
1780 ac_header_compiler=no
1782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1784 $as_echo "$ac_header_compiler" >&6; }
1786 # Is the header present?
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1788 $as_echo_n "checking $2 presence... " >&6; }
1789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790 /* end confdefs.h. */
1793 if ac_fn_c_try_cpp "$LINENO"; then :
1794 ac_header_preproc=yes
1796 ac_header_preproc=no
1798 rm -f conftest.err conftest.i conftest.$ac_ext
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1800 $as_echo "$ac_header_preproc" >&6; }
1802 # So? What about this header?
1803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1806 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1808 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1812 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1814 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1816 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1818 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1820 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1824 $as_echo_n "checking for $2... " >&6; }
1825 if eval \${$3+:} false; then :
1826 $as_echo_n "(cached) " >&6
1828 eval "$3=\$ac_header_compiler"
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1832 $as_echo "$ac_res" >&6; }
1834 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1836 } # ac_fn_c_check_header_mongrel
1838 # ac_fn_c_try_run LINENO
1839 # ----------------------
1840 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1841 # that executables *can* be run.
1844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845 if { { ac_try="$ac_link"
1847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1848 *) ac_try_echo=$ac_try;;
1850 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1851 $as_echo "$ac_try_echo"; } >&5
1852 (eval "$ac_link") 2>&5
1854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1855 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1856 { { case "(($ac_try" in
1857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1858 *) ac_try_echo=$ac_try;;
1860 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1861 $as_echo "$ac_try_echo"; } >&5
1862 (eval "$ac_try") 2>&5
1864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1865 test $ac_status = 0; }; }; then :
1868 $as_echo "$as_me: program exited with status $ac_status" >&5
1869 $as_echo "$as_me: failed program was:" >&5
1870 sed 's/^/| /' conftest.$ac_ext >&5
1872 ac_retval=$ac_status
1874 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876 as_fn_set_status $ac_retval
1880 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1881 # -------------------------------------------------------
1882 # Tests whether HEADER exists and can be compiled using the include files in
1883 # INCLUDES, setting the cache variable VAR accordingly.
1884 ac_fn_c_check_header_compile ()
1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1888 $as_echo_n "checking for $2... " >&6; }
1889 if eval \${$3+:} false; then :
1890 $as_echo_n "(cached) " >&6
1892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1893 /* end confdefs.h. */
1897 if ac_fn_c_try_compile "$LINENO"; then :
1902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1906 $as_echo "$ac_res" >&6; }
1907 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1909 } # ac_fn_c_check_header_compile
1911 # ac_fn_c_try_link LINENO
1912 # -----------------------
1913 # Try to link conftest.$ac_ext, and return whether this succeeded.
1916 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917 rm -f conftest.$ac_objext conftest$ac_exeext
1918 if { { ac_try="$ac_link"
1920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1921 *) ac_try_echo=$ac_try;;
1923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1924 $as_echo "$ac_try_echo"; } >&5
1925 (eval "$ac_link") 2>conftest.err
1927 if test -s conftest.err; then
1928 grep -v '^ *+' conftest.err >conftest.er1
1929 cat conftest.er1 >&5
1930 mv -f conftest.er1 conftest.err
1932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1933 test $ac_status = 0; } && {
1934 test -z "$ac_c_werror_flag" ||
1935 test ! -s conftest.err
1936 } && test -s conftest$ac_exeext && {
1937 test "$cross_compiling" = yes ||
1938 test -x conftest$ac_exeext
1942 $as_echo "$as_me: failed program was:" >&5
1943 sed 's/^/| /' conftest.$ac_ext >&5
1947 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1948 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1949 # interfere with the next link command; also delete a directory that is
1950 # left behind by Apple's compiler. We do this before executing the actions.
1951 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1952 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1953 as_fn_set_status $ac_retval
1955 } # ac_fn_c_try_link
1957 # ac_fn_c_check_func LINENO FUNC VAR
1958 # ----------------------------------
1959 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1960 ac_fn_c_check_func ()
1962 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1964 $as_echo_n "checking for $2... " >&6; }
1965 if eval \${$3+:} false; then :
1966 $as_echo_n "(cached) " >&6
1968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1969 /* end confdefs.h. */
1970 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1971 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1972 #define $2 innocuous_$2
1974 /* System header to define __stub macros and hopefully few prototypes,
1975 which can conflict with char $2 (); below.
1976 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1977 <limits.h> exists even on freestanding compilers. */
1980 # include <limits.h>
1982 # include <assert.h>
1987 /* Override any GCC internal prototype to avoid an error.
1988 Use char because int might match the return type of a GCC
1989 builtin and then its argument prototype would still apply. */
1994 /* The GNU C library defines this for functions which it implements
1995 to always fail with ENOSYS. Some functions are actually named
1996 something starting with __ and the normal name is an alias. */
1997 #if defined __stub_$2 || defined __stub___$2
2009 if ac_fn_c_try_link "$LINENO"; then :
2014 rm -f core conftest.err conftest.$ac_objext \
2015 conftest$ac_exeext conftest.$ac_ext
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2019 $as_echo "$ac_res" >&6; }
2020 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2022 } # ac_fn_c_check_func
2024 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2025 # -------------------------------------------
2026 # Tests whether TYPE exists after having included INCLUDES, setting cache
2027 # variable VAR accordingly.
2028 ac_fn_c_check_type ()
2030 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2032 $as_echo_n "checking for $2... " >&6; }
2033 if eval \${$3+:} false; then :
2034 $as_echo_n "(cached) " >&6
2037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038 /* end confdefs.h. */
2049 if ac_fn_c_try_compile "$LINENO"; then :
2050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051 /* end confdefs.h. */
2062 if ac_fn_c_try_compile "$LINENO"; then :
2067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2073 $as_echo "$ac_res" >&6; }
2074 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2076 } # ac_fn_c_check_type
2078 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2079 # --------------------------------------------
2080 # Tries to find the compile-time value of EXPR in a program that includes
2081 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2083 ac_fn_c_compute_int ()
2085 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2086 if test "$cross_compiling" = yes; then
2087 # Depending upon the size, compute the lo and hi bounds.
2088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089 /* end confdefs.h. */
2094 static int test_array [1 - 2 * !(($2) >= 0)];
2096 return test_array [0];
2102 if ac_fn_c_try_compile "$LINENO"; then :
2105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2106 /* end confdefs.h. */
2111 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2113 return test_array [0];
2119 if ac_fn_c_try_compile "$LINENO"; then :
2120 ac_hi=$ac_mid; break
2122 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2123 if test $ac_lo -le $ac_mid; then
2127 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133 /* end confdefs.h. */
2138 static int test_array [1 - 2 * !(($2) < 0)];
2140 return test_array [0];
2146 if ac_fn_c_try_compile "$LINENO"; then :
2149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2150 /* end confdefs.h. */
2155 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2157 return test_array [0];
2163 if ac_fn_c_try_compile "$LINENO"; then :
2164 ac_lo=$ac_mid; break
2166 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2167 if test $ac_mid -le $ac_hi; then
2171 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2181 # Binary search between lo and hi bounds.
2182 while test "x$ac_lo" != "x$ac_hi"; do
2183 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2185 /* end confdefs.h. */
2190 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2192 return test_array [0];
2198 if ac_fn_c_try_compile "$LINENO"; then :
2201 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2206 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2211 /* end confdefs.h. */
2213 static long int longval () { return $2; }
2214 static unsigned long int ulongval () { return $2; }
2221 FILE *f = fopen ("conftest.val", "w");
2226 long int i = longval ();
2229 fprintf (f, "%ld", i);
2233 unsigned long int i = ulongval ();
2236 fprintf (f, "%lu", i);
2238 /* Do not output a trailing newline, as this causes \r\n confusion
2239 on some platforms. */
2240 return ferror (f) || fclose (f) != 0;
2246 if ac_fn_c_try_run "$LINENO"; then :
2247 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2252 conftest.$ac_objext conftest.beam conftest.$ac_ext
2256 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2257 as_fn_set_status $ac_retval
2259 } # ac_fn_c_compute_int
2261 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2262 # ---------------------------------------------
2263 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2265 ac_fn_c_check_decl ()
2267 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2268 as_decl_name=`echo $2|sed 's/ *(.*//'`
2269 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2271 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2272 if eval \${$3+:} false; then :
2273 $as_echo_n "(cached) " >&6
2275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276 /* end confdefs.h. */
2281 #ifndef $as_decl_name
2283 (void) $as_decl_use;
2285 (void) $as_decl_name;
2293 if ac_fn_c_try_compile "$LINENO"; then :
2298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2302 $as_echo "$ac_res" >&6; }
2303 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2305 } # ac_fn_c_check_decl
2307 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2308 # ----------------------------------------------------
2309 # Tries to find if the field MEMBER exists in type AGGR, after including
2310 # INCLUDES, setting cache variable VAR accordingly.
2311 ac_fn_c_check_member ()
2313 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2315 $as_echo_n "checking for $2.$3... " >&6; }
2316 if eval \${$4+:} false; then :
2317 $as_echo_n "(cached) " >&6
2319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2320 /* end confdefs.h. */
2332 if ac_fn_c_try_compile "$LINENO"; then :
2335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2336 /* end confdefs.h. */
2342 if (sizeof ac_aggr.$3)
2348 if ac_fn_c_try_compile "$LINENO"; then :
2353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2359 $as_echo "$ac_res" >&6; }
2360 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2362 } # ac_fn_c_check_member
2363 cat >config.log <<_ACEOF
2364 This file contains any messages produced by compilers while
2365 running configure, to aid debugging if configure makes a mistake.
2367 It was created by $as_me, which was
2368 generated by GNU Autoconf 2.69. Invocation command line was
2380 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2381 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2382 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2383 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2384 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2386 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2387 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2389 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2390 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2391 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2392 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2393 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2394 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2395 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403 test -z "$as_dir" && as_dir=.
2404 $as_echo "PATH: $as_dir"
2420 # Keep a trace of the command line.
2421 # Strip out --no-create and --no-recursion so they do not pile up.
2422 # Strip out --silent because we don't want to record it for future runs.
2423 # Also quote any args containing shell meta-characters.
2424 # Make two passes to allow for proper duplicate-argument suppression.
2428 ac_must_keep_next=false
2434 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2435 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2436 | -silent | --silent | --silen | --sile | --sil)
2439 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2442 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2444 as_fn_append ac_configure_args1 " '$ac_arg'"
2445 if test $ac_must_keep_next = true; then
2446 ac_must_keep_next=false # Got value, back to normal.
2449 *=* | --config-cache | -C | -disable-* | --disable-* \
2450 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2451 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2452 | -with-* | --with-* | -without-* | --without-* | --x)
2453 case "$ac_configure_args0 " in
2454 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2457 -* ) ac_must_keep_next=true ;;
2460 as_fn_append ac_configure_args " '$ac_arg'"
2465 { ac_configure_args0=; unset ac_configure_args0;}
2466 { ac_configure_args1=; unset ac_configure_args1;}
2468 # When interrupted or exit'd, cleanup temporary files, and complete
2469 # config.log. We remove comments because anyway the quotes in there
2470 # would cause problems or look ugly.
2471 # WARNING: Use '\'' to represent an apostrophe within the trap.
2472 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2473 trap 'exit_status=$?
2474 # Save into config.log some information that might help in debugging.
2478 $as_echo "## ---------------- ##
2479 ## Cache variables. ##
2480 ## ---------------- ##"
2482 # The following way of writing the cache mishandles newlines in values,
2484 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2485 eval ac_val=\$$ac_var
2489 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2490 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2493 _ | IFS | as_nl) ;; #(
2494 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2495 *) { eval $ac_var=; unset $ac_var;} ;;
2500 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2501 *${as_nl}ac_space=\ *)
2503 "s/'\''/'\''\\\\'\'''\''/g;
2504 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2507 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2514 $as_echo "## ----------------- ##
2515 ## Output variables. ##
2516 ## ----------------- ##"
2518 for ac_var in $ac_subst_vars
2520 eval ac_val=\$$ac_var
2522 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2524 $as_echo "$ac_var='\''$ac_val'\''"
2528 if test -n "$ac_subst_files"; then
2529 $as_echo "## ------------------- ##
2530 ## File substitutions. ##
2531 ## ------------------- ##"
2533 for ac_var in $ac_subst_files
2535 eval ac_val=\$$ac_var
2537 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2539 $as_echo "$ac_var='\''$ac_val'\''"
2544 if test -s confdefs.h; then
2545 $as_echo "## ----------- ##
2552 test "$ac_signal" != 0 &&
2553 $as_echo "$as_me: caught signal $ac_signal"
2554 $as_echo "$as_me: exit $exit_status"
2556 rm -f core *.core core.conftest.* &&
2557 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2560 for ac_signal in 1 2 13 15; do
2561 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2565 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2566 rm -f -r conftest* confdefs.h
2568 $as_echo "/* confdefs.h */" > confdefs.h
2570 # Predefined preprocessor variables.
2572 cat >>confdefs.h <<_ACEOF
2573 #define PACKAGE_NAME "$PACKAGE_NAME"
2576 cat >>confdefs.h <<_ACEOF
2577 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2580 cat >>confdefs.h <<_ACEOF
2581 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2584 cat >>confdefs.h <<_ACEOF
2585 #define PACKAGE_STRING "$PACKAGE_STRING"
2588 cat >>confdefs.h <<_ACEOF
2589 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2592 cat >>confdefs.h <<_ACEOF
2593 #define PACKAGE_URL "$PACKAGE_URL"
2597 # Let the site file select an alternate cache file if it wants to.
2598 # Prefer an explicitly selected file to automatically selected ones.
2601 if test -n "$CONFIG_SITE"; then
2602 # We do not want a PATH search for config.site.
2603 case $CONFIG_SITE in #((
2604 -*) ac_site_file1=./$CONFIG_SITE;;
2605 */*) ac_site_file1=$CONFIG_SITE;;
2606 *) ac_site_file1=./$CONFIG_SITE;;
2608 elif test "x$prefix" != xNONE; then
2609 ac_site_file1=$prefix/share/config.site
2610 ac_site_file2=$prefix/etc/config.site
2612 ac_site_file1=$ac_default_prefix/share/config.site
2613 ac_site_file2=$ac_default_prefix/etc/config.site
2615 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2617 test "x$ac_site_file" = xNONE && continue
2618 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2620 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2621 sed 's/^/| /' "$ac_site_file" >&5
2623 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2624 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2625 as_fn_error $? "failed to load site script $ac_site_file
2626 See \`config.log' for more details" "$LINENO" 5; }
2630 if test -r "$cache_file"; then
2631 # Some versions of bash will fail to source /dev/null (special files
2632 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2633 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2635 $as_echo "$as_me: loading cache $cache_file" >&6;}
2637 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2638 *) . "./$cache_file";;
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2643 $as_echo "$as_me: creating cache $cache_file" >&6;}
2647 # Check that the precious variables saved in the cache have kept the same
2649 ac_cache_corrupted=false
2650 for ac_var in $ac_precious_vars; do
2651 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2652 eval ac_new_set=\$ac_env_${ac_var}_set
2653 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2654 eval ac_new_val=\$ac_env_${ac_var}_value
2655 case $ac_old_set,$ac_new_set in
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2658 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2659 ac_cache_corrupted=: ;;
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2662 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2663 ac_cache_corrupted=: ;;
2666 if test "x$ac_old_val" != "x$ac_new_val"; then
2667 # differences in whitespace do not lead to failure.
2668 ac_old_val_w=`echo x $ac_old_val`
2669 ac_new_val_w=`echo x $ac_new_val`
2670 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2672 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2673 ac_cache_corrupted=:
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2676 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2677 eval $ac_var=\$ac_old_val
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2680 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2682 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2685 # Pass precious variables to config.status.
2686 if test "$ac_new_set" = set; then
2688 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2689 *) ac_arg=$ac_var=$ac_new_val ;;
2691 case " $ac_configure_args " in
2692 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2693 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2697 if $ac_cache_corrupted; then
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2699 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2701 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2702 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2704 ## -------------------- ##
2705 ## Main body of script. ##
2706 ## -------------------- ##
2709 ac_cpp='$CPP $CPPFLAGS'
2710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2715 ac_config_headers="$ac_config_headers include/arch/unix/apr_private.h"
2718 for ac_dir in build "$srcdir"/build; do
2719 if test -f "$ac_dir/install-sh"; then
2721 ac_install_sh="$ac_aux_dir/install-sh -c"
2723 elif test -f "$ac_dir/install.sh"; then
2725 ac_install_sh="$ac_aux_dir/install.sh -c"
2727 elif test -f "$ac_dir/shtool"; then
2729 ac_install_sh="$ac_aux_dir/shtool install -c"
2733 if test -z "$ac_aux_dir"; then
2734 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
2737 # These three variables are undocumented and unsupported,
2738 # and are intended to be withdrawn in a future Autoconf release.
2739 # They can cause serious problems if a builder's source tree is in a directory
2740 # whose full name contains unusual characters.
2741 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2742 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2743 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2901 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
2903 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
2904 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
2906 # Written by Gordon Matzigkeit, 1996
2908 # This file is free software; the Free Software Foundation gives
2909 # unlimited permission to copy and/or distribute it, with or without
2910 # modifications, as long as this notice is preserved.
2917 # LT_PREREQ(VERSION)
2918 # ------------------
2919 # Complain and exit if this libtool version is less that VERSION.
2923 # _LT_CHECK_BUILDDIR
2924 # ------------------
2925 # Complain if the absolute build directory name contains unusual characters
2929 # LT_INIT([OPTIONS])
2930 # ------------------
2934 # This is what autoupdate's m4 run will expand. It fires
2935 # the warning (with _au_warn_XXX), outputs it into the
2936 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2937 # the replacement expansion.
2940 # This is an auxiliary macro that is also run when
2941 # autoupdate runs m4. It simply calls m4_warning, but
2942 # we need a wrapper so that each warning is emitted only
2943 # once. We break the quoting in m4_warning's argument in
2944 # order to expand this macro's arguments, not AU_DEFUN's.
2947 # Finally, this is the expansion that is picked up by
2948 # autoconf. It tells the user to run autoupdate, and
2949 # then outputs the replacement expansion. We do not care
2950 # about autoupdate's warning because that contains
2951 # information on what to do *after* running autoupdate.
2953 # This is what autoupdate's m4 run will expand. It fires
2954 # the warning (with _au_warn_XXX), outputs it into the
2955 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2956 # the replacement expansion.
2959 # This is an auxiliary macro that is also run when
2960 # autoupdate runs m4. It simply calls m4_warning, but
2961 # we need a wrapper so that each warning is emitted only
2962 # once. We break the quoting in m4_warning's argument in
2963 # order to expand this macro's arguments, not AU_DEFUN's.
2966 # Finally, this is the expansion that is picked up by
2967 # autoconf. It tells the user to run autoupdate, and
2968 # then outputs the replacement expansion. We do not care
2969 # about autoupdate's warning because that contains
2970 # information on what to do *after* running autoupdate.
2974 # _LT_CC_BASENAME(CC)
2975 # -------------------
2976 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
2980 # _LT_FILEUTILS_DEFAULTS
2981 # ----------------------
2982 # It is okay to use these file commands and assume they have been set
2983 # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
2984 # _LT_FILEUTILS_DEFAULTS
2992 # _LT_PREPARE_SED_QUOTE_VARS
2993 # --------------------------
2994 # Define a few sed substitution that help us do robust quoting.
2999 # Note that this code is called both from `configure', and `config.status'
3000 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
3001 # `config.status' has no value for ac_aux_dir unless we are using Automake,
3002 # so we pass a copy along to make sure it has a sensible value anyway.
3006 ## ------------------------------------- ##
3007 ## Accumulate code for creating libtool. ##
3008 ## ------------------------------------- ##
3010 # So that we can recreate a full libtool script including additional
3011 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
3012 # in macros and then make a single call at the end using the `libtool'
3016 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
3017 # ----------------------------------------
3018 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
3025 # _LT_CONFIG_LIBTOOL([COMMANDS])
3026 # ------------------------------
3027 # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
3034 # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
3035 # -----------------------------------------------------
3039 # _LT_FORMAT_COMMENT([COMMENT])
3040 # -----------------------------
3041 # Add leading comment marks to the start of each line, and a trailing
3042 # full-stop to the whole comment if one is not present already.
3047 ## ------------------------ ##
3048 ## FIXME: Eliminate VARNAME ##
3049 ## ------------------------ ##
3052 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
3053 # -------------------------------------------------------------------
3054 # CONFIGNAME is the name given to the value in the libtool script.
3055 # VARNAME is the (base) name used in the configure script.
3056 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
3057 # VARNAME. Any other value will be used directly.
3061 # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
3062 # --------------------------------------------------------
3066 # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
3067 # ------------------------------------------------
3071 # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
3072 # ---------------------------------------------------------
3076 # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
3077 # --------------------------------------------------
3081 # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
3082 # ---------------------------------------------------
3086 # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
3087 # ---------------------------------------------------
3092 # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
3093 # ------------------------------------------------
3098 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
3099 # ------------------------------------
3100 # Quote a variable value, and forward it to `config.status' so that its
3101 # declaration there will have the same value as in `configure'. VARNAME
3102 # must have a single quote delimited value for this to work.
3106 # _LT_CONFIG_STATUS_DECLARATIONS
3107 # ------------------------------
3108 # We delimit libtool config variables with single quotes, so when
3109 # we write them to config.status, we have to be sure to quote all
3110 # embedded single quotes properly. In configure, this macro expands
3111 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
3113 # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
3119 # Output comment and list of tags supported by the script
3123 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
3124 # -----------------------------------
3125 # Extract the dictionary values for VARNAME (optionally with TAG) and
3126 # expand to a commented shell variable setting:
3128 # # Some comment about what VAR is for.
3129 # visible_name=$lt_internal_name
3133 # _LT_LIBTOOL_CONFIG_VARS
3134 # -----------------------
3135 # Produce commented declarations of non-tagged libtool config variables
3136 # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
3137 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
3138 # section) are produced by _LT_LIBTOOL_TAG_VARS.
3142 # _LT_LIBTOOL_TAG_VARS(TAG)
3143 # -------------------------
3147 # _LT_TAGVAR(VARNAME, [TAGNAME])
3148 # ------------------------------
3152 # _LT_CONFIG_COMMANDS
3153 # -------------------
3154 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
3155 # variables for single and double quote escaping we saved from calls
3156 # to _LT_DECL, we can put quote escaped variables declarations
3157 # into `config.status', and then the shell code to quote escape them in
3158 # for loops in `config.status'. Finally, any additional code accumulated
3159 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
3160 #_LT_CONFIG_COMMANDS
3166 # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
3167 # ------------------------------------
3168 # Generate a child script FILE with all initialization necessary to
3169 # reuse the environment learned by the parent script, and make the
3170 # file executable. If COMMENT is supplied, it is inserted after the
3171 # `#!' sequence but before initialization text begins. After this
3172 # macro, additional text can be appended to FILE to form the body of
3173 # the child script. The macro ends with non-zero status if the
3174 # file could not be fully written (such as if the disk is full).
3175 # _LT_GENERATED_FILE_INIT
3179 # This macro allows early generation of the libtool script (before
3180 # AC_OUTPUT is called), incase it is used in configure for compilation
3187 # If TAG is the built-in tag, create an initial libtool script with a
3188 # default configuration from the untagged config vars. Otherwise add code
3189 # to config.status for appending the configuration named by TAG from the
3190 # matching tagged config vars.
3194 # LT_SUPPORTED_TAG(TAG)
3195 # ---------------------
3196 # Trace this macro to discover what tags are supported by the libtool
3197 # --tag option, using:
3198 # autoconf --trace 'LT_SUPPORTED_TAG:$1'
3202 # C support is built-in for now
3209 # Enable libtool support for the given language if not already enabled.
3213 # _LT_LANG(LANGNAME)
3214 # ------------------
3221 # _LT_LANG_DEFAULT_CONFIG
3222 # -----------------------
3223 # _LT_LANG_DEFAULT_CONFIG
3226 # This is what autoupdate's m4 run will expand. It fires
3227 # the warning (with _au_warn_XXX), outputs it into the
3228 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3229 # the replacement expansion.
3232 # This is an auxiliary macro that is also run when
3233 # autoupdate runs m4. It simply calls m4_warning, but
3234 # we need a wrapper so that each warning is emitted only
3235 # once. We break the quoting in m4_warning's argument in
3236 # order to expand this macro's arguments, not AU_DEFUN's.
3239 # Finally, this is the expansion that is picked up by
3240 # autoconf. It tells the user to run autoupdate, and
3241 # then outputs the replacement expansion. We do not care
3242 # about autoupdate's warning because that contains
3243 # information on what to do *after* running autoupdate.
3245 # This is what autoupdate's m4 run will expand. It fires
3246 # the warning (with _au_warn_XXX), outputs it into the
3247 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3248 # the replacement expansion.
3251 # This is an auxiliary macro that is also run when
3252 # autoupdate runs m4. It simply calls m4_warning, but
3253 # we need a wrapper so that each warning is emitted only
3254 # once. We break the quoting in m4_warning's argument in
3255 # order to expand this macro's arguments, not AU_DEFUN's.
3258 # Finally, this is the expansion that is picked up by
3259 # autoconf. It tells the user to run autoupdate, and
3260 # then outputs the replacement expansion. We do not care
3261 # about autoupdate's warning because that contains
3262 # information on what to do *after* running autoupdate.
3264 # This is what autoupdate's m4 run will expand. It fires
3265 # the warning (with _au_warn_XXX), outputs it into the
3266 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3267 # the replacement expansion.
3270 # This is an auxiliary macro that is also run when
3271 # autoupdate runs m4. It simply calls m4_warning, but
3272 # we need a wrapper so that each warning is emitted only
3273 # once. We break the quoting in m4_warning's argument in
3274 # order to expand this macro's arguments, not AU_DEFUN's.
3277 # Finally, this is the expansion that is picked up by
3278 # autoconf. It tells the user to run autoupdate, and
3279 # then outputs the replacement expansion. We do not care
3280 # about autoupdate's warning because that contains
3281 # information on what to do *after* running autoupdate.
3283 # This is what autoupdate's m4 run will expand. It fires
3284 # the warning (with _au_warn_XXX), outputs it into the
3285 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3286 # the replacement expansion.
3289 # This is an auxiliary macro that is also run when
3290 # autoupdate runs m4. It simply calls m4_warning, but
3291 # we need a wrapper so that each warning is emitted only
3292 # once. We break the quoting in m4_warning's argument in
3293 # order to expand this macro's arguments, not AU_DEFUN's.
3296 # Finally, this is the expansion that is picked up by
3297 # autoconf. It tells the user to run autoupdate, and
3298 # then outputs the replacement expansion. We do not care
3299 # about autoupdate's warning because that contains
3300 # information on what to do *after* running autoupdate.
3302 # This is what autoupdate's m4 run will expand. It fires
3303 # the warning (with _au_warn_XXX), outputs it into the
3304 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3305 # the replacement expansion.
3308 # This is an auxiliary macro that is also run when
3309 # autoupdate runs m4. It simply calls m4_warning, but
3310 # we need a wrapper so that each warning is emitted only
3311 # once. We break the quoting in m4_warning's argument in
3312 # order to expand this macro's arguments, not AU_DEFUN's.
3315 # Finally, this is the expansion that is picked up by
3316 # autoconf. It tells the user to run autoupdate, and
3317 # then outputs the replacement expansion. We do not care
3318 # about autoupdate's warning because that contains
3319 # information on what to do *after* running autoupdate.
3328 # _LT_COMPILER_BOILERPLATE
3329 # ------------------------
3330 # Check for compiler boilerplate output or warnings with
3331 # the simple compiler test code.
3332 # _LT_COMPILER_BOILERPLATE
3335 # _LT_LINKER_BOILERPLATE
3336 # ----------------------
3337 # Check for linker boilerplate output or warnings with
3338 # the simple link test code.
3339 # _LT_LINKER_BOILERPLATE
3341 # _LT_REQUIRED_DARWIN_CHECKS
3342 # -------------------------
3346 # _LT_DARWIN_LINKER_FEATURES([TAG])
3347 # ---------------------------------
3348 # Checks for linker and compiler features on darwin
3351 # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
3352 # ----------------------------------
3353 # Links a minimal program and checks the executable
3354 # for the system default hardcoded library path. In most cases,
3355 # this is /usr/lib:/lib, but when the MPI compilers are used
3356 # the location of the communication and MPI libs are included too.
3357 # If we don't find anything, use the default library path according
3358 # to the aix ld manual.
3359 # Store the results from the different compilers for each TAGNAME.
3360 # Allow to override them for all tags through lt_cv_aix_libpath.
3361 # _LT_SYS_MODULE_PATH_AIX
3364 # _LT_SHELL_INIT(ARG)
3365 # -------------------
3370 # _LT_PROG_ECHO_BACKSLASH
3371 # -----------------------
3372 # Find how we can fake an echo command that does not interpret backslash.
3373 # In particular, with Autoconf 2.60 or later we add some code to the start
3374 # of the generated configure script which will find a shell with a builtin
3375 # printf (which we can use as an echo command).
3376 # _LT_PROG_ECHO_BACKSLASH
3393 # _LT_CMD_OLD_ARCHIVE
3394 # -------------------
3395 # _LT_CMD_OLD_ARCHIVE
3398 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
3399 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
3400 # ----------------------------------------------------------------
3401 # Check whether the given compiler option works
3402 # _LT_COMPILER_OPTION
3405 # This is what autoupdate's m4 run will expand. It fires
3406 # the warning (with _au_warn_XXX), outputs it into the
3407 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3408 # the replacement expansion.
3411 # This is an auxiliary macro that is also run when
3412 # autoupdate runs m4. It simply calls m4_warning, but
3413 # we need a wrapper so that each warning is emitted only
3414 # once. We break the quoting in m4_warning's argument in
3415 # order to expand this macro's arguments, not AU_DEFUN's.
3418 # Finally, this is the expansion that is picked up by
3419 # autoconf. It tells the user to run autoupdate, and
3420 # then outputs the replacement expansion. We do not care
3421 # about autoupdate's warning because that contains
3422 # information on what to do *after* running autoupdate.
3426 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
3427 # [ACTION-SUCCESS], [ACTION-FAILURE])
3428 # ----------------------------------------------------
3429 # Check whether the given linker option works
3433 # This is what autoupdate's m4 run will expand. It fires
3434 # the warning (with _au_warn_XXX), outputs it into the
3435 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3436 # the replacement expansion.
3439 # This is an auxiliary macro that is also run when
3440 # autoupdate runs m4. It simply calls m4_warning, but
3441 # we need a wrapper so that each warning is emitted only
3442 # once. We break the quoting in m4_warning's argument in
3443 # order to expand this macro's arguments, not AU_DEFUN's.
3446 # Finally, this is the expansion that is picked up by
3447 # autoconf. It tells the user to run autoupdate, and
3448 # then outputs the replacement expansion. We do not care
3449 # about autoupdate's warning because that contains
3450 # information on what to do *after* running autoupdate.
3459 # This is what autoupdate's m4 run will expand. It fires
3460 # the warning (with _au_warn_XXX), outputs it into the
3461 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3462 # the replacement expansion.
3465 # This is an auxiliary macro that is also run when
3466 # autoupdate runs m4. It simply calls m4_warning, but
3467 # we need a wrapper so that each warning is emitted only
3468 # once. We break the quoting in m4_warning's argument in
3469 # order to expand this macro's arguments, not AU_DEFUN's.
3472 # Finally, this is the expansion that is picked up by
3473 # autoconf. It tells the user to run autoupdate, and
3474 # then outputs the replacement expansion. We do not care
3475 # about autoupdate's warning because that contains
3476 # information on what to do *after* running autoupdate.
3485 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
3486 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
3487 # ----------------------------------------------------------------
3488 # _LT_TRY_DLOPEN_SELF
3491 # LT_SYS_DLOPEN_SELF
3492 # ------------------
3493 # LT_SYS_DLOPEN_SELF
3496 # This is what autoupdate's m4 run will expand. It fires
3497 # the warning (with _au_warn_XXX), outputs it into the
3498 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3499 # the replacement expansion.
3502 # This is an auxiliary macro that is also run when
3503 # autoupdate runs m4. It simply calls m4_warning, but
3504 # we need a wrapper so that each warning is emitted only
3505 # once. We break the quoting in m4_warning's argument in
3506 # order to expand this macro's arguments, not AU_DEFUN's.
3509 # Finally, this is the expansion that is picked up by
3510 # autoconf. It tells the user to run autoupdate, and
3511 # then outputs the replacement expansion. We do not care
3512 # about autoupdate's warning because that contains
3513 # information on what to do *after* running autoupdate.
3517 # _LT_COMPILER_C_O([TAGNAME])
3518 # ---------------------------
3519 # Check to see if options -c and -o are simultaneously supported by compiler.
3520 # This macro does not hard code the compiler like AC_PROG_CC_C_O.
3524 # _LT_COMPILER_FILE_LOCKS([TAGNAME])
3525 # ----------------------------------
3526 # Check to see if we can do hard links to lock some files if needed
3527 # _LT_COMPILER_FILE_LOCKS
3535 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
3536 # --------------------------------------
3537 # Check hardcoding attributes.
3538 # _LT_LINKER_HARDCODE_LIBPATH
3546 # _LT_SYS_DYNAMIC_LINKER([TAG])
3547 # -----------------------------
3548 # PORTME Fill in your ld.so characteristics
3549 # _LT_SYS_DYNAMIC_LINKER
3552 # _LT_PATH_TOOL_PREFIX(TOOL)
3553 # --------------------------
3554 # find a file program which can recognize shared library
3555 # _LT_PATH_TOOL_PREFIX
3558 # This is what autoupdate's m4 run will expand. It fires
3559 # the warning (with _au_warn_XXX), outputs it into the
3560 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3561 # the replacement expansion.
3564 # This is an auxiliary macro that is also run when
3565 # autoupdate runs m4. It simply calls m4_warning, but
3566 # we need a wrapper so that each warning is emitted only
3567 # once. We break the quoting in m4_warning's argument in
3568 # order to expand this macro's arguments, not AU_DEFUN's.
3571 # Finally, this is the expansion that is picked up by
3572 # autoconf. It tells the user to run autoupdate, and
3573 # then outputs the replacement expansion. We do not care
3574 # about autoupdate's warning because that contains
3575 # information on what to do *after* running autoupdate.
3581 # find a file program which can recognize a shared library
3587 # find the pathname to the GNU or non-GNU linker
3591 # This is what autoupdate's m4 run will expand. It fires
3592 # the warning (with _au_warn_XXX), outputs it into the
3593 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3594 # the replacement expansion.
3597 # This is an auxiliary macro that is also run when
3598 # autoupdate runs m4. It simply calls m4_warning, but
3599 # we need a wrapper so that each warning is emitted only
3600 # once. We break the quoting in m4_warning's argument in
3601 # order to expand this macro's arguments, not AU_DEFUN's.
3604 # Finally, this is the expansion that is picked up by
3605 # autoconf. It tells the user to run autoupdate, and
3606 # then outputs the replacement expansion. We do not care
3607 # about autoupdate's warning because that contains
3608 # information on what to do *after* running autoupdate.
3610 # This is what autoupdate's m4 run will expand. It fires
3611 # the warning (with _au_warn_XXX), outputs it into the
3612 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3613 # the replacement expansion.
3616 # This is an auxiliary macro that is also run when
3617 # autoupdate runs m4. It simply calls m4_warning, but
3618 # we need a wrapper so that each warning is emitted only
3619 # once. We break the quoting in m4_warning's argument in
3620 # order to expand this macro's arguments, not AU_DEFUN's.
3623 # Finally, this is the expansion that is picked up by
3624 # autoconf. It tells the user to run autoupdate, and
3625 # then outputs the replacement expansion. We do not care
3626 # about autoupdate's warning because that contains
3627 # information on what to do *after* running autoupdate.
3638 # find reload flag for linker
3639 # -- PORTME Some linkers may need a different reload flag.
3643 # _LT_CHECK_MAGIC_METHOD
3644 # ----------------------
3645 # how to check for library dependencies
3646 # -- PORTME fill in with the dynamic library characteristics
3647 # _LT_CHECK_MAGIC_METHOD
3652 # find the pathname to a BSD- or MS-compatible name lister
3656 # This is what autoupdate's m4 run will expand. It fires
3657 # the warning (with _au_warn_XXX), outputs it into the
3658 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3659 # the replacement expansion.
3662 # This is an auxiliary macro that is also run when
3663 # autoupdate runs m4. It simply calls m4_warning, but
3664 # we need a wrapper so that each warning is emitted only
3665 # once. We break the quoting in m4_warning's argument in
3666 # order to expand this macro's arguments, not AU_DEFUN's.
3669 # Finally, this is the expansion that is picked up by
3670 # autoconf. It tells the user to run autoupdate, and
3671 # then outputs the replacement expansion. We do not care
3672 # about autoupdate's warning because that contains
3673 # information on what to do *after* running autoupdate.
3675 # This is what autoupdate's m4 run will expand. It fires
3676 # the warning (with _au_warn_XXX), outputs it into the
3677 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3678 # the replacement expansion.
3681 # This is an auxiliary macro that is also run when
3682 # autoupdate runs m4. It simply calls m4_warning, but
3683 # we need a wrapper so that each warning is emitted only
3684 # once. We break the quoting in m4_warning's argument in
3685 # order to expand this macro's arguments, not AU_DEFUN's.
3688 # Finally, this is the expansion that is picked up by
3689 # autoconf. It tells the user to run autoupdate, and
3690 # then outputs the replacement expansion. We do not care
3691 # about autoupdate's warning because that contains
3692 # information on what to do *after* running autoupdate.
3695 # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3696 # --------------------------------
3697 # how to determine the name of the shared library
3698 # associated with a specific link library.
3699 # -- PORTME fill in with the dynamic library characteristics
3700 # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3703 # _LT_PATH_MANIFEST_TOOL
3704 # ----------------------
3705 # locate the manifest tool
3706 # _LT_PATH_MANIFEST_TOOL
3711 # check for math library
3715 # This is what autoupdate's m4 run will expand. It fires
3716 # the warning (with _au_warn_XXX), outputs it into the
3717 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3718 # the replacement expansion.
3721 # This is an auxiliary macro that is also run when
3722 # autoupdate runs m4. It simply calls m4_warning, but
3723 # we need a wrapper so that each warning is emitted only
3724 # once. We break the quoting in m4_warning's argument in
3725 # order to expand this macro's arguments, not AU_DEFUN's.
3728 # Finally, this is the expansion that is picked up by
3729 # autoconf. It tells the user to run autoupdate, and
3730 # then outputs the replacement expansion. We do not care
3731 # about autoupdate's warning because that contains
3732 # information on what to do *after* running autoupdate.
3736 # _LT_COMPILER_NO_RTTI([TAGNAME])
3737 # -------------------------------
3738 # _LT_COMPILER_NO_RTTI
3741 # _LT_CMD_GLOBAL_SYMBOLS
3742 # ----------------------
3743 # _LT_CMD_GLOBAL_SYMBOLS
3746 # _LT_COMPILER_PIC([TAGNAME])
3747 # ---------------------------
3751 # _LT_LINKER_SHLIBS([TAGNAME])
3752 # ----------------------------
3753 # See if the linker supports building shared libraries.
3757 # _LT_LANG_C_CONFIG([TAG])
3758 # ------------------------
3759 # Ensure that the configuration variables for a C compiler are suitably
3760 # defined. These variables are subsequently used by _LT_CONFIG to write
3761 # the compiler configuration to `libtool'.
3765 # _LT_LANG_CXX_CONFIG([TAG])
3766 # --------------------------
3767 # Ensure that the configuration variables for a C++ compiler are suitably
3768 # defined. These variables are subsequently used by _LT_CONFIG to write
3769 # the compiler configuration to `libtool'.
3770 # _LT_LANG_CXX_CONFIG
3773 # _LT_FUNC_STRIPNAME_CNF
3774 # ----------------------
3775 # func_stripname_cnf prefix suffix name
3776 # strip PREFIX and SUFFIX off of NAME.
3777 # PREFIX and SUFFIX must not contain globbing or regex special
3778 # characters, hashes, percent signs, but SUFFIX may contain a leading
3779 # dot (in which case that matches only a dot).
3781 # This function is identical to the (non-XSI) version of func_stripname,
3782 # except this one can be used by m4 code that may be executed by configure,
3783 # rather than the libtool script.
3784 # _LT_FUNC_STRIPNAME_CNF
3786 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
3787 # ---------------------------------
3788 # Figure out "hidden" library dependencies from verbose
3789 # compiler output when linking a shared library.
3790 # Parse the compiler output and extract the necessary
3791 # objects, libraries and library flags.
3792 # _LT_SYS_HIDDEN_LIBDEPS
3795 # _LT_LANG_F77_CONFIG([TAG])
3796 # --------------------------
3797 # Ensure that the configuration variables for a Fortran 77 compiler are
3798 # suitably defined. These variables are subsequently used by _LT_CONFIG
3799 # to write the compiler configuration to `libtool'.
3800 # _LT_LANG_F77_CONFIG
3803 # _LT_LANG_FC_CONFIG([TAG])
3804 # -------------------------
3805 # Ensure that the configuration variables for a Fortran compiler are
3806 # suitably defined. These variables are subsequently used by _LT_CONFIG
3807 # to write the compiler configuration to `libtool'.
3808 # _LT_LANG_FC_CONFIG
3811 # _LT_LANG_GCJ_CONFIG([TAG])
3812 # --------------------------
3813 # Ensure that the configuration variables for the GNU Java Compiler compiler
3814 # are suitably defined. These variables are subsequently used by _LT_CONFIG
3815 # to write the compiler configuration to `libtool'.
3816 # _LT_LANG_GCJ_CONFIG
3819 # _LT_LANG_GO_CONFIG([TAG])
3820 # --------------------------
3821 # Ensure that the configuration variables for the GNU Go compiler
3822 # are suitably defined. These variables are subsequently used by _LT_CONFIG
3823 # to write the compiler configuration to `libtool'.
3824 # _LT_LANG_GO_CONFIG
3827 # _LT_LANG_RC_CONFIG([TAG])
3828 # -------------------------
3829 # Ensure that the configuration variables for the Windows resource compiler
3830 # are suitably defined. These variables are subsequently used by _LT_CONFIG
3831 # to write the compiler configuration to `libtool'.
3832 # _LT_LANG_RC_CONFIG
3840 # This is what autoupdate's m4 run will expand. It fires
3841 # the warning (with _au_warn_XXX), outputs it into the
3842 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3843 # the replacement expansion.
3846 # This is an auxiliary macro that is also run when
3847 # autoupdate runs m4. It simply calls m4_warning, but
3848 # we need a wrapper so that each warning is emitted only
3849 # once. We break the quoting in m4_warning's argument in
3850 # order to expand this macro's arguments, not AU_DEFUN's.
3853 # Finally, this is the expansion that is picked up by
3854 # autoconf. It tells the user to run autoupdate, and
3855 # then outputs the replacement expansion. We do not care
3856 # about autoupdate's warning because that contains
3857 # information on what to do *after* running autoupdate.
3871 # This is what autoupdate's m4 run will expand. It fires
3872 # the warning (with _au_warn_XXX), outputs it into the
3873 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3874 # the replacement expansion.
3877 # This is an auxiliary macro that is also run when
3878 # autoupdate runs m4. It simply calls m4_warning, but
3879 # we need a wrapper so that each warning is emitted only
3880 # once. We break the quoting in m4_warning's argument in
3881 # order to expand this macro's arguments, not AU_DEFUN's.
3884 # Finally, this is the expansion that is picked up by
3885 # autoconf. It tells the user to run autoupdate, and
3886 # then outputs the replacement expansion. We do not care
3887 # about autoupdate's warning because that contains
3888 # information on what to do *after* running autoupdate.
3894 # If we don't have a new enough Autoconf to choose the best grep
3895 # available, choose the one first in the user's PATH.
3901 # If we don't have a new enough Autoconf to choose the best objdump
3902 # available, choose the one first in the user's PATH.
3907 # Ensure DLLTOOL variable is set.
3912 # Check for a fully-functional sed program, that truncates
3913 # as few characters as possible. Prefer GNU sed if found.
3919 # This is what autoupdate's m4 run will expand. It fires
3920 # the warning (with _au_warn_XXX), outputs it into the
3921 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3922 # the replacement expansion.
3925 # This is an auxiliary macro that is also run when
3926 # autoupdate runs m4. It simply calls m4_warning, but
3927 # we need a wrapper so that each warning is emitted only
3928 # once. We break the quoting in m4_warning's argument in
3929 # order to expand this macro's arguments, not AU_DEFUN's.
3932 # Finally, this is the expansion that is picked up by
3933 # autoconf. It tells the user to run autoupdate, and
3934 # then outputs the replacement expansion. We do not care
3935 # about autoupdate's warning because that contains
3936 # information on what to do *after* running autoupdate.
3940 # _LT_CHECK_SHELL_FEATURES
3941 # ------------------------
3942 # Find out whether the shell is Bourne or XSI compatible,
3943 # or has some other useful features.
3944 # _LT_CHECK_SHELL_FEATURES
3947 # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
3948 # ------------------------------------------------------
3949 # In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
3950 # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
3954 # _LT_PROG_REPLACE_SHELLFNS
3955 # -------------------------
3956 # Replace existing portable implementations of several shell functions with
3957 # equivalent extended shell implementations where those features are available..
3960 # _LT_PATH_CONVERSION_FUNCTIONS
3961 # -----------------------------
3962 # Determine which file name conversion functions should be used by
3963 # func_to_host_file (and, implicitly, by func_to_host_path). These are needed
3964 # for certain cross-compile configurations and native mingw.
3965 # _LT_PATH_CONVERSION_FUNCTIONS
3967 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
3969 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
3970 # Written by Gary V. Vaughan, 2004
3972 # This file is free software; the Free Software Foundation gives
3973 # unlimited permission to copy and/or distribute it, with or without
3974 # modifications, as long as this notice is preserved.
3976 # serial 6 ltsugar.m4
3978 # This is to help aclocal find these macros, as it can't see m4_define.
3982 # lt_join(SEP, ARG1, [ARG2...])
3983 # -----------------------------
3984 # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
3985 # associated separator.
3986 # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
3987 # versions in m4sugar had bugs.
3995 # Manipulate m4 lists.
3996 # These macros are necessary as long as will still need to support
3997 # Autoconf-2.59 which quotes differently.
4003 # lt_append(MACRO-NAME, STRING, [SEPARATOR])
4004 # ------------------------------------------
4005 # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
4006 # Note that neither SEPARATOR nor STRING are expanded; they are appended
4007 # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
4008 # No SEPARATOR is output if MACRO-NAME was previously undefined (different
4009 # than defined and empty).
4011 # This macro is needed until we can rely on Autoconf 2.62, since earlier
4012 # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
4017 # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
4018 # ----------------------------------------------------------
4019 # Produce a SEP delimited list of all paired combinations of elements of
4020 # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
4021 # has the form PREFIXmINFIXSUFFIXn.
4022 # Needed until we can rely on m4_combine added in Autoconf 2.62.
4026 # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
4027 # -----------------------------------------------------------------------
4028 # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
4029 # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
4033 # lt_dict_add(DICT, KEY, VALUE)
4034 # -----------------------------
4038 # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
4039 # --------------------------------------------
4043 # lt_dict_fetch(DICT, KEY, [SUBKEY])
4044 # ----------------------------------
4048 # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
4049 # -----------------------------------------------------------------
4053 # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
4054 # --------------------------------------------------------------
4058 # Helper functions for option handling. -*- Autoconf -*-
4060 # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
4062 # Written by Gary V. Vaughan, 2004
4064 # This file is free software; the Free Software Foundation gives
4065 # unlimited permission to copy and/or distribute it, with or without
4066 # modifications, as long as this notice is preserved.
4068 # serial 7 ltoptions.m4
4070 # This is to help aclocal find these macros, as it can't see m4_define.
4074 # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
4075 # ------------------------------------------
4079 # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
4080 # ---------------------------------------
4081 # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
4082 # matching handler defined, dispatch to it. Other OPTION-NAMEs are
4087 # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
4088 # ------------------------------------------------------------
4089 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
4093 # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
4094 # -------------------------------------------------------
4095 # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
4100 # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
4101 # ----------------------------------------
4102 # OPTION-LIST is a space-separated list of Libtool options associated
4103 # with MACRO-NAME. If any OPTION has a matching handler declared with
4104 # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
4105 # the unknown option and exit.
4109 ## --------------------------------- ##
4110 ## Macros to handle LT_INIT options. ##
4111 ## --------------------------------- ##
4113 # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
4114 # -----------------------------------------
4118 # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
4119 # -----------------------------------------------
4127 # This is what autoupdate's m4 run will expand. It fires
4128 # the warning (with _au_warn_XXX), outputs it into the
4129 # updated configure.ac (with AC_DIAGNOSE), and then outputs
4130 # the replacement expansion.
4133 # This is an auxiliary macro that is also run when
4134 # autoupdate runs m4. It simply calls m4_warning, but
4135 # we need a wrapper so that each warning is emitted only
4136 # once. We break the quoting in m4_warning's argument in
4137 # order to expand this macro's arguments, not AU_DEFUN's.
4140 # Finally, this is the expansion that is picked up by
4141 # autoconf. It tells the user to run autoupdate, and
4142 # then outputs the replacement expansion. We do not care
4143 # about autoupdate's warning because that contains
4144 # information on what to do *after* running autoupdate.
4151 # Declare package support for building win32 dll's.
4154 # This is what autoupdate's m4 run will expand. It fires
4155 # the warning (with _au_warn_XXX), outputs it into the
4156 # updated configure.ac (with AC_DIAGNOSE), and then outputs
4157 # the replacement expansion.
4160 # This is an auxiliary macro that is also run when
4161 # autoupdate runs m4. It simply calls m4_warning, but
4162 # we need a wrapper so that each warning is emitted only
4163 # once. We break the quoting in m4_warning's argument in
4164 # order to expand this macro's arguments, not AU_DEFUN's.
4167 # Finally, this is the expansion that is picked up by
4168 # autoconf. It tells the user to run autoupdate, and
4169 # then outputs the replacement expansion. We do not care
4170 # about autoupdate's warning because that contains
4171 # information on what to do *after* running autoupdate.
4176 # _LT_ENABLE_SHARED([DEFAULT])
4177 # ----------------------------
4178 # implement the --enable-shared flag, and supports the `shared' and
4179 # `disable-shared' LT_INIT options.
4180 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
4191 # This is what autoupdate's m4 run will expand. It fires
4192 # the warning (with _au_warn_XXX), outputs it into the
4193 # updated configure.ac (with AC_DIAGNOSE), and then outputs
4194 # the replacement expansion.
4197 # This is an auxiliary macro that is also run when
4198 # autoupdate runs m4. It simply calls m4_warning, but
4199 # we need a wrapper so that each warning is emitted only
4200 # once. We break the quoting in m4_warning's argument in
4201 # order to expand this macro's arguments, not AU_DEFUN's.
4204 # Finally, this is the expansion that is picked up by
4205 # autoconf. It tells the user to run autoupdate, and
4206 # then outputs the replacement expansion. We do not care
4207 # about autoupdate's warning because that contains
4208 # information on what to do *after* running autoupdate.
4210 # This is what autoupdate's m4 run will expand. It fires
4211 # the warning (with _au_warn_XXX), outputs it into the
4212 # updated configure.ac (with AC_DIAGNOSE), and then outputs
4213 # the replacement expansion.
4216 # This is an auxiliary macro that is also run when
4217 # autoupdate runs m4. It simply calls m4_warning, but
4218 # we need a wrapper so that each warning is emitted only
4219 # once. We break the quoting in m4_warning's argument in
4220 # order to expand this macro's arguments, not AU_DEFUN's.
4223 # Finally, this is the expansion that is picked up by
4224 # autoconf. It tells the user to run autoupdate, and
4225 # then outputs the replacement expansion. We do not care
4226 # about autoupdate's warning because that contains
4227 # information on what to do *after* running autoupdate.
4233 # _LT_ENABLE_STATIC([DEFAULT])
4234 # ----------------------------
4235 # implement the --enable-static flag, and support the `static' and
4236 # `disable-static' LT_INIT options.
4237 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
4248 # This is what autoupdate's m4 run will expand. It fires
4249 # the warning (with _au_warn_XXX), outputs it into the
4250 # updated configure.ac (with AC_DIAGNOSE), and then outputs
4251 # the replacement expansion.
4254 # This is an auxiliary macro that is also run when
4255 # autoupdate runs m4. It simply calls m4_warning, but
4256 # we need a wrapper so that each warning is emitted only
4257 # once. We break the quoting in m4_warning's argument in
4258 # order to expand this macro's arguments, not AU_DEFUN's.
4261 # Finally, this is the expansion that is picked up by
4262 # autoconf. It tells the user to run autoupdate, and
4263 # then outputs the replacement expansion. We do not care
4264 # about autoupdate's warning because that contains
4265 # information on what to do *after* running autoupdate.
4267 # This is what autoupdate's m4 run will expand. It fires
4268 # the warning (with _au_warn_XXX), outputs it into the
4269 # updated configure.ac (with AC_DIAGNOSE), and then outputs
4270 # the replacement expansion.
4273 # This is an auxiliary macro that is also run when
4274 # autoupdate runs m4. It simply calls m4_warning, but
4275 # we need a wrapper so that each warning is emitted only
4276 # once. We break the quoting in m4_warning's argument in
4277 # order to expand this macro's arguments, not AU_DEFUN's.
4280 # Finally, this is the expansion that is picked up by
4281 # autoconf. It tells the user to run autoupdate, and
4282 # then outputs the replacement expansion. We do not care
4283 # about autoupdate's warning because that contains
4284 # information on what to do *after* running autoupdate.
4290 # _LT_ENABLE_FAST_INSTALL([DEFAULT])
4291 # ----------------------------------
4292 # implement the --enable-fast-install flag, and support the `fast-install'
4293 # and `disable-fast-install' LT_INIT options.
4294 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
4295 # _LT_ENABLE_FAST_INSTALL
4301 # This is what autoupdate's m4 run will expand. It fires
4302 # the warning (with _au_warn_XXX), outputs it into the
4303 # updated configure.ac (with AC_DIAGNOSE), and then outputs
4304 # the replacement expansion.
4307 # This is an auxiliary macro that is also run when
4308 # autoupdate runs m4. It simply calls m4_warning, but
4309 # we need a wrapper so that each warning is emitted only
4310 # once. We break the quoting in m4_warning's argument in
4311 # order to expand this macro's arguments, not AU_DEFUN's.
4314 # Finally, this is the expansion that is picked up by
4315 # autoconf. It tells the user to run autoupdate, and
4316 # then outputs the replacement expansion. We do not care
4317 # about autoupdate's warning because that contains
4318 # information on what to do *after* running autoupdate.
4321 # This is what autoupdate's m4 run will expand. It fires
4322 # the warning (with _au_warn_XXX), outputs it into the
4323 # updated configure.ac (with AC_DIAGNOSE), and then outputs
4324 # the replacement expansion.
4327 # This is an auxiliary macro that is also run when
4328 # autoupdate runs m4. It simply calls m4_warning, but
4329 # we need a wrapper so that each warning is emitted only
4330 # once. We break the quoting in m4_warning's argument in
4331 # order to expand this macro's arguments, not AU_DEFUN's.
4334 # Finally, this is the expansion that is picked up by
4335 # autoconf. It tells the user to run autoupdate, and
4336 # then outputs the replacement expansion. We do not care
4337 # about autoupdate's warning because that contains
4338 # information on what to do *after* running autoupdate.
4343 # _LT_WITH_PIC([MODE])
4344 # --------------------
4345 # implement the --with-pic flag, and support the `pic-only' and `no-pic'
4347 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
4354 # This is what autoupdate's m4 run will expand. It fires
4355 # the warning (with _au_warn_XXX), outputs it into the
4356 # updated configure.ac (with AC_DIAGNOSE), and then outputs
4357 # the replacement expansion.
4360 # This is an auxiliary macro that is also run when
4361 # autoupdate runs m4. It simply calls m4_warning, but
4362 # we need a wrapper so that each warning is emitted only
4363 # once. We break the quoting in m4_warning's argument in
4364 # order to expand this macro's arguments, not AU_DEFUN's.
4367 # Finally, this is the expansion that is picked up by
4368 # autoconf. It tells the user to run autoupdate, and
4369 # then outputs the replacement expansion. We do not care
4370 # about autoupdate's warning because that contains
4371 # information on what to do *after* running autoupdate.
4375 ## ----------------- ##
4376 ## LTDL_INIT Options ##
4377 ## ----------------- ##
4388 # ltversion.m4 -- version numbers -*- Autoconf -*-
4390 # Copyright (C) 2004 Free Software Foundation, Inc.
4391 # Written by Scott James Remnant, 2004
4393 # This file is free software; the Free Software Foundation gives
4394 # unlimited permission to copy and/or distribute it, with or without
4395 # modifications, as long as this notice is preserved.
4399 # serial 3337 ltversion.m4
4400 # This file is part of GNU Libtool
4407 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
4409 # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
4410 # Written by Scott James Remnant, 2004.
4412 # This file is free software; the Free Software Foundation gives
4413 # unlimited permission to copy and/or distribute it, with or without
4414 # modifications, as long as this notice is preserved.
4416 # serial 5 lt~obsolete.m4
4418 # These exist entirely to fool aclocal when bootstrapping libtool.
4420 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
4421 # which have later been changed to m4_define as they aren't part of the
4422 # exported API, or moved to Autoconf or Automake where they belong.
4424 # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
4425 # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
4426 # using a macro with the same name in our local m4/libtool.m4 it'll
4427 # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
4428 # and doesn't know about Autoconf macros at all.)
4430 # So we provide this file, which has a silly filename so it's always
4431 # included after everything else. This provides aclocal with the
4432 # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
4433 # because those macros already exist, or will be overwritten later.
4434 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
4436 # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
4437 # Yes, that means every name once taken will need to remain here until
4438 # we give up compatibility with versions before 1.7, at which point
4439 # we need to keep only those names which we still refer to.
4441 # This is to help aclocal find these macros, as it can't see m4_define.
4512 apr_ste_save_CPPFLAGS="$CPPFLAGS"
4515 apr_ste_save_CFLAGS="$CFLAGS"
4518 apr_ste_save_LDFLAGS="$LDFLAGS"
4521 apr_ste_save_LIBS="$LIBS"
4524 apr_ste_save_INCLUDES="$INCLUDES"
4529 cat >config.nice<<EOF
4532 # Created by configure
4535 if test -n "$CC"; then
4536 echo "CC=\"$CC\"; export CC" >> config.nice
4538 if test -n "$CFLAGS"; then
4539 echo "CFLAGS=\"$CFLAGS\"; export CFLAGS" >> config.nice
4541 if test -n "$CPPFLAGS"; then
4542 echo "CPPFLAGS=\"$CPPFLAGS\"; export CPPFLAGS" >> config.nice
4544 if test -n "$LDFLAGS"; then
4545 echo "LDFLAGS=\"$LDFLAGS\"; export LDFLAGS" >> config.nice
4547 if test -n "$LTFLAGS"; then
4548 echo "LTFLAGS=\"$LTFLAGS\"; export LTFLAGS" >> config.nice
4550 if test -n "$LIBS"; then
4551 echo "LIBS=\"$LIBS\"; export LIBS" >> config.nice
4553 if test -n "$INCLUDES"; then
4554 echo "INCLUDES=\"$INCLUDES\"; export INCLUDES" >> config.nice
4556 if test -n "$NOTEST_CFLAGS"; then
4557 echo "NOTEST_CFLAGS=\"$NOTEST_CFLAGS\"; export NOTEST_CFLAGS" >> config.nice
4559 if test -n "$NOTEST_CPPFLAGS"; then
4560 echo "NOTEST_CPPFLAGS=\"$NOTEST_CPPFLAGS\"; export NOTEST_CPPFLAGS" >> config.nice
4562 if test -n "$NOTEST_LDFLAGS"; then
4563 echo "NOTEST_LDFLAGS=\"$NOTEST_LDFLAGS\"; export NOTEST_LDFLAGS" >> config.nice
4565 if test -n "$NOTEST_LIBS"; then
4566 echo "NOTEST_LIBS=\"$NOTEST_LIBS\"; export NOTEST_LIBS" >> config.nice
4569 # Retrieve command-line arguments.
4570 eval "set x $0 $ac_configure_args"
4578 while test "x${ap_cur}" != "x${ap_last}";
4581 ap_cur=`eval "echo ${ap_cur}"`
4585 echo "\"$arg\" \\" >> config.nice
4587 echo '"$@"' >> config.nice
4588 chmod +x config.nice
4591 # Make sure we can run config.sub.
4592 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4593 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4596 $as_echo_n "checking build system type... " >&6; }
4597 if ${ac_cv_build+:} false; then :
4598 $as_echo_n "(cached) " >&6
4600 ac_build_alias=$build_alias
4601 test "x$ac_build_alias" = x &&
4602 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4603 test "x$ac_build_alias" = x &&
4604 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4605 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4606 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4610 $as_echo "$ac_cv_build" >&6; }
4611 case $ac_cv_build in
4613 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4616 ac_save_IFS=$IFS; IFS='-'
4622 # Remember, the first character of IFS is used to create $*,
4623 # except with old shells:
4626 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4630 $as_echo_n "checking host system type... " >&6; }
4631 if ${ac_cv_host+:} false; then :
4632 $as_echo_n "(cached) " >&6
4634 if test "x$host_alias" = x; then
4635 ac_cv_host=$ac_cv_build
4637 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4638 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4643 $as_echo "$ac_cv_host" >&6; }
4646 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4649 ac_save_IFS=$IFS; IFS='-'
4655 # Remember, the first character of IFS is used to create $*,
4656 # except with old shells:
4659 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4663 $as_echo_n "checking target system type... " >&6; }
4664 if ${ac_cv_target+:} false; then :
4665 $as_echo_n "(cached) " >&6
4667 if test "x$target_alias" = x; then
4668 ac_cv_target=$ac_cv_host
4670 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4671 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4676 $as_echo "$ac_cv_target" >&6; }
4677 case $ac_cv_target in
4679 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
4681 target=$ac_cv_target
4682 ac_save_IFS=$IFS; IFS='-'
4688 # Remember, the first character of IFS is used to create $*,
4689 # except with old shells:
4692 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4695 # The aliases save the names the user supplied, while $host etc.
4696 # will get canonicalized.
4697 test -n "$target_alias" &&
4698 test "$program_prefix$program_suffix$program_transform_name" = \
4700 program_prefix=${target_alias}-
4702 echo "Configuring APR library"
4703 echo "Platform: $host"
4707 # Absolute source/build directory
4708 apr_srcdir=`(cd $srcdir && pwd)`
4713 if test "$apr_builddir" != "$apr_srcdir"; then
4715 APR_CONFIG_LOCATION=build
4717 APR_CONFIG_LOCATION=source
4722 # Libtool might need this symbol -- it must point to the location of
4723 # the generated libtool script (not necessarily the "top" build dir).
4725 top_builddir="$apr_builddir"
4728 # Directory containing apr build macros, helpers, and make rules
4729 # NOTE: make rules (apr_rules.mk) will be in the builddir for vpath
4731 apr_buildout=$apr_builddir/build
4732 apr_builders=$apr_srcdir/build
4735 MKDIR=$apr_builders/mkdir.sh
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mkdir -p" >&5
4739 $as_echo_n "checking for working mkdir -p... " >&6; }
4740 if ${ac_cv_mkdir_p+:} false; then :
4741 $as_echo_n "(cached) " >&6
4744 test -d conftestdir && rm -rf conftestdir
4745 mkdir -p conftestdir/somedir >/dev/null 2>&1
4746 if test -d conftestdir/somedir; then
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mkdir_p" >&5
4755 $as_echo "$ac_cv_mkdir_p" >&6; }
4756 if test "$ac_cv_mkdir_p" = "yes"; then
4759 mkdir_p="$apr_builders/mkdir.sh"
4763 # get our version information
4764 get_version="$apr_builders/get-version.sh"
4765 version_hdr="$apr_srcdir/include/apr_version.h"
4766 APR_MAJOR_VERSION="`$get_version major $version_hdr APR`"
4767 APR_DOTTED_VERSION="`$get_version all $version_hdr APR`"
4772 echo "APR Version: ${APR_DOTTED_VERSION}"
4775 # Check whether --enable-layout was given.
4776 if test "${enable_layout+set}" = set; then :
4777 enableval=$enable_layout;
4783 if test -z "$LAYOUT"; then
4787 if test ! -f $srcdir/config.layout; then
4788 echo "** Error: Layout file $srcdir/config.layout not found"
4789 echo "** Error: Cannot use undefined layout '$LAYOUT'"
4792 # Catch layout names including a slash which will otherwise
4793 # confuse the heck out of the sed script.
4796 echo "** Error: $LAYOUT is not a valid layout name"
4799 pldconf=./config.pld
4801 sed -e "1s/[ ]*<[lL]ayout[ ]*$LAYOUT[ ]*>[ ]*//;1t" \
4802 -e "1,/[ ]*<[lL]ayout[ ]*$LAYOUT[ ]*>[ ]*/d" \
4803 -e '/[ ]*<\/Layout>[ ]*/,$d' \
4805 -e "s/:[ ]*/=\'/g" \
4807 $srcdir/config.layout > $pldconf
4809 if test ! -s $pldconf; then
4810 echo "** Error: unable to find layout $layout_name"
4815 for var in prefix exec_prefix bindir sbindir libexecdir mandir \
4816 sysconfdir datadir includedir localstatedir runtimedir \
4817 logfiledir libdir installbuilddir libsuffix ; do
4818 eval "val=\"\$$var\""
4821 val=`echo $val | sed -e 's;\+$;;'`
4822 eval "$var=\"\$val\""
4829 val=`echo $val | sed -e 's:\(.\)/*$:\1:'`
4830 val=`echo $val | sed -e 's:[\$]\([a-z_]*\):$\1:g'`
4831 if test "$autosuffix" = "yes"; then
4832 if echo $val | grep apache >/dev/null; then
4837 if test "$addtarget" = "yes"; then
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chosen layout" >&5
4847 $as_echo_n "checking for chosen layout... " >&6; }
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $layout_name" >&5
4849 $as_echo "$layout_name" >&6; }
4853 # Retrieve the command-line arguments. The eval is needed because
4854 # the arguments are quoted to preserve accuracy.
4855 eval "set x $ac_configure_args"
4859 # If the previous option needs an argument, assign it.
4860 if test -n "$ac_prev"; then
4861 eval "$ac_prev=\$ac_option"
4866 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
4870 -bindir | --bindir | --bindi | --bind | --bin | --bi)
4872 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
4873 bindir="$ac_optarg" ;;
4875 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
4877 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
4879 datadir="$ac_optarg" ;;
4881 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
4882 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
4883 | --exec | --exe | --ex)
4884 ac_prev=exec_prefix ;;
4885 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
4886 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
4887 | --exec=* | --exe=* | --ex=*)
4888 exec_prefix="$ac_optarg" ;;
4890 -includedir | --includedir | --includedi | --included | --include \
4891 | --includ | --inclu | --incl | --inc)
4892 ac_prev=includedir ;;
4893 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
4894 | --includ=* | --inclu=* | --incl=* | --inc=*)
4895 includedir="$ac_optarg" ;;
4897 -infodir | --infodir | --infodi | --infod | --info | --inf)
4899 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
4900 infodir="$ac_optarg" ;;
4902 -libdir | --libdir | --libdi | --libd)
4904 -libdir=* | --libdir=* | --libdi=* | --libd=*)
4905 libdir="$ac_optarg" ;;
4907 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
4908 | --libexe | --libex | --libe)
4909 ac_prev=libexecdir ;;
4910 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
4911 | --libexe=* | --libex=* | --libe=*)
4912 libexecdir="$ac_optarg" ;;
4914 -localstatedir | --localstatedir | --localstatedi | --localstated \
4915 | --localstate | --localstat | --localsta | --localst \
4916 | --locals | --local | --loca | --loc | --lo)
4917 ac_prev=localstatedir ;;
4918 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
4919 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
4920 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
4921 localstatedir="$ac_optarg" ;;
4923 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
4925 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
4926 mandir="$ac_optarg" ;;
4928 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
4930 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
4931 prefix="$ac_optarg" ;;
4933 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
4935 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
4937 sbindir="$ac_optarg" ;;
4939 -sharedstatedir | --sharedstatedir | --sharedstatedi \
4940 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
4941 | --sharedst | --shareds | --shared | --share | --shar \
4943 ac_prev=sharedstatedir ;;
4944 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
4945 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
4946 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
4948 sharedstatedir="$ac_optarg" ;;
4950 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
4951 | --syscon | --sysco | --sysc | --sys | --sy)
4952 ac_prev=sysconfdir ;;
4953 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
4954 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
4955 sysconfdir="$ac_optarg" ;;
4960 # Be sure to have absolute paths.
4961 for ac_var in exec_prefix prefix
4963 eval ac_val=$`echo $ac_var`
4965 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
4966 *) as_fn_error $? "expected an absolute path for --$ac_var: $ac_val" "$LINENO" 5;;
4976 if test -z "$CC"; then
4977 test "x$silent" != "xyes" && echo " setting CC to \"gcc\""
4982 bs2000*-siemens-sysv*)
4984 if test -z "$CC"; then
4985 test "x$silent" != "xyes" && echo " setting CC to \"c89 -XLLML -XLLMK -XL -Kno_integer_overflow\""
4986 CC="c89 -XLLML -XLLMK -XL -Kno_integer_overflow"
4992 if test -z "$CC"; then
4993 test "x$silent" != "xyes" && echo " setting CC to \"cc\""
5000 if test -z "$CC"; then
5001 test "x$silent" != "xyes" && echo " setting CC to \"cc\""
5008 if test -z "$CC"; then
5009 test "x$silent" != "xyes" && echo " setting CC to \"icc\""
5016 if test -z "$CC"; then
5017 test "x$silent" != "xyes" && echo " setting CC to \"gcc\""
5024 if test -z "$CC"; then
5025 test "x$silent" != "xyes" && echo " setting CC to \"cc\""
5032 if test -z "$CC"; then
5033 test "x$silent" != "xyes" && echo " setting CC to \"cc\""
5040 if test -z "$CC"; then
5041 test "x$silent" != "xyes" && echo " setting CC to \"cc -F\""
5048 if test -z "$CC"; then
5049 test "x$silent" != "xyes" && echo " setting CC to \"c89\""
5056 if test -z "$CC"; then
5057 test "x$silent" != "xyes" && echo " setting CC to \"c89\""
5066 ac_cpp='$CPP $CPPFLAGS'
5067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5070 if test -n "$ac_tool_prefix"; then
5071 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5072 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5074 $as_echo_n "checking for $ac_word... " >&6; }
5075 if ${ac_cv_prog_CC+:} false; then :
5076 $as_echo_n "(cached) " >&6
5078 if test -n "$CC"; then
5079 ac_cv_prog_CC="$CC" # Let the user override the test.
5081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5085 test -z "$as_dir" && as_dir=.
5086 for ac_exec_ext in '' $ac_executable_extensions; do
5087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5088 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5099 if test -n "$CC"; then
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5101 $as_echo "$CC" >&6; }
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5104 $as_echo "no" >&6; }
5109 if test -z "$ac_cv_prog_CC"; then
5111 # Extract the first word of "gcc", so it can be a program name with args.
5112 set dummy gcc; ac_word=$2
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5114 $as_echo_n "checking for $ac_word... " >&6; }
5115 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5116 $as_echo_n "(cached) " >&6
5118 if test -n "$ac_ct_CC"; then
5119 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5125 test -z "$as_dir" && as_dir=.
5126 for ac_exec_ext in '' $ac_executable_extensions; do
5127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5128 ac_cv_prog_ac_ct_CC="gcc"
5129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5138 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5139 if test -n "$ac_ct_CC"; then
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5141 $as_echo "$ac_ct_CC" >&6; }
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5144 $as_echo "no" >&6; }
5147 if test "x$ac_ct_CC" = x; then
5150 case $cross_compiling:$ac_tool_warned in
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5154 ac_tool_warned=yes ;;
5162 if test -z "$CC"; then
5163 if test -n "$ac_tool_prefix"; then
5164 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5165 set dummy ${ac_tool_prefix}cc; ac_word=$2
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5167 $as_echo_n "checking for $ac_word... " >&6; }
5168 if ${ac_cv_prog_CC+:} false; then :
5169 $as_echo_n "(cached) " >&6
5171 if test -n "$CC"; then
5172 ac_cv_prog_CC="$CC" # Let the user override the test.
5174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178 test -z "$as_dir" && as_dir=.
5179 for ac_exec_ext in '' $ac_executable_extensions; do
5180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5181 ac_cv_prog_CC="${ac_tool_prefix}cc"
5182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5192 if test -n "$CC"; then
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5194 $as_echo "$CC" >&6; }
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5197 $as_echo "no" >&6; }
5203 if test -z "$CC"; then
5204 # Extract the first word of "cc", so it can be a program name with args.
5205 set dummy cc; ac_word=$2
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5207 $as_echo_n "checking for $ac_word... " >&6; }
5208 if ${ac_cv_prog_CC+:} false; then :
5209 $as_echo_n "(cached) " >&6
5211 if test -n "$CC"; then
5212 ac_cv_prog_CC="$CC" # Let the user override the test.
5215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219 test -z "$as_dir" && as_dir=.
5220 for ac_exec_ext in '' $ac_executable_extensions; do
5221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5222 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5223 ac_prog_rejected=yes
5227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5234 if test $ac_prog_rejected = yes; then
5235 # We found a bogon in the path, so make sure we never use it.
5236 set dummy $ac_cv_prog_CC
5238 if test $# != 0; then
5239 # We chose a different compiler from the bogus one.
5240 # However, it has the same basename, so the bogon will be chosen
5241 # first if we set CC to just the basename; use the full file name.
5243 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5249 if test -n "$CC"; then
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5251 $as_echo "$CC" >&6; }
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5254 $as_echo "no" >&6; }
5259 if test -z "$CC"; then
5260 if test -n "$ac_tool_prefix"; then
5261 for ac_prog in cl.exe
5263 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5264 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5266 $as_echo_n "checking for $ac_word... " >&6; }
5267 if ${ac_cv_prog_CC+:} false; then :
5268 $as_echo_n "(cached) " >&6
5270 if test -n "$CC"; then
5271 ac_cv_prog_CC="$CC" # Let the user override the test.
5273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5277 test -z "$as_dir" && as_dir=.
5278 for ac_exec_ext in '' $ac_executable_extensions; do
5279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5280 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5291 if test -n "$CC"; then
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5293 $as_echo "$CC" >&6; }
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5296 $as_echo "no" >&6; }
5300 test -n "$CC" && break
5303 if test -z "$CC"; then
5305 for ac_prog in cl.exe
5307 # Extract the first word of "$ac_prog", so it can be a program name with args.
5308 set dummy $ac_prog; ac_word=$2
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5310 $as_echo_n "checking for $ac_word... " >&6; }
5311 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5312 $as_echo_n "(cached) " >&6
5314 if test -n "$ac_ct_CC"; then
5315 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5321 test -z "$as_dir" && as_dir=.
5322 for ac_exec_ext in '' $ac_executable_extensions; do
5323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5324 ac_cv_prog_ac_ct_CC="$ac_prog"
5325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5334 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5335 if test -n "$ac_ct_CC"; then
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5337 $as_echo "$ac_ct_CC" >&6; }
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5340 $as_echo "no" >&6; }
5344 test -n "$ac_ct_CC" && break
5347 if test "x$ac_ct_CC" = x; then
5350 case $cross_compiling:$ac_tool_warned in
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5354 ac_tool_warned=yes ;;
5363 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5365 as_fn_error $? "no acceptable C compiler found in \$PATH
5366 See \`config.log' for more details" "$LINENO" 5; }
5368 # Provide some information about the compiler.
5369 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5372 for ac_option in --version -v -V -qversion; do
5373 { { ac_try="$ac_compiler $ac_option >&5"
5375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5376 *) ac_try_echo=$ac_try;;
5378 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5379 $as_echo "$ac_try_echo"; } >&5
5380 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5382 if test -s conftest.err; then
5384 ... rest of stderr output deleted ...
5385 10q' conftest.err >conftest.er1
5386 cat conftest.er1 >&5
5388 rm -f conftest.er1 conftest.err
5389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5390 test $ac_status = 0; }
5393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5394 /* end confdefs.h. */
5404 ac_clean_files_save=$ac_clean_files
5405 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5406 # Try to create an executable without -o first, disregard a.out.
5407 # It will help us diagnose broken compilers, and finding out an intuition
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5410 $as_echo_n "checking whether the C compiler works... " >&6; }
5411 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5413 # The possible output files:
5414 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5417 for ac_file in $ac_files
5420 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5421 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5426 if { { ac_try="$ac_link_default"
5428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5429 *) ac_try_echo=$ac_try;;
5431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5432 $as_echo "$ac_try_echo"; } >&5
5433 (eval "$ac_link_default") 2>&5
5435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5436 test $ac_status = 0; }; then :
5437 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5438 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5439 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5440 # so that the user can short-circuit this test for compilers unknown to
5442 for ac_file in $ac_files ''
5444 test -f "$ac_file" || continue
5446 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5449 # We found the default executable, but exeext='' is most
5453 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5455 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5457 # We set ac_cv_exeext here because the later test for it is not
5458 # safe: cross compilers may not add the suffix if given an `-o'
5459 # argument, so we may need to know it at that point already.
5460 # Even if this section looks crufty: it has the advantage of
5467 test "$ac_cv_exeext" = no && ac_cv_exeext=
5472 if test -z "$ac_file"; then :
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5474 $as_echo "no" >&6; }
5475 $as_echo "$as_me: failed program was:" >&5
5476 sed 's/^/| /' conftest.$ac_ext >&5
5478 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5479 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5480 as_fn_error 77 "C compiler cannot create executables
5481 See \`config.log' for more details" "$LINENO" 5; }
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5484 $as_echo "yes" >&6; }
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5487 $as_echo_n "checking for C compiler default output file name... " >&6; }
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5489 $as_echo "$ac_file" >&6; }
5490 ac_exeext=$ac_cv_exeext
5492 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5493 ac_clean_files=$ac_clean_files_save
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5495 $as_echo_n "checking for suffix of executables... " >&6; }
5496 if { { ac_try="$ac_link"
5498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5499 *) ac_try_echo=$ac_try;;
5501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5502 $as_echo "$ac_try_echo"; } >&5
5503 (eval "$ac_link") 2>&5
5505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5506 test $ac_status = 0; }; then :
5507 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5508 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5509 # work properly (i.e., refer to `conftest.exe'), while it won't with
5511 for ac_file in conftest.exe conftest conftest.*; do
5512 test -f "$ac_file" || continue
5514 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5515 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5521 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5522 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5523 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5524 See \`config.log' for more details" "$LINENO" 5; }
5526 rm -f conftest conftest$ac_cv_exeext
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5528 $as_echo "$ac_cv_exeext" >&6; }
5530 rm -f conftest.$ac_ext
5531 EXEEXT=$ac_cv_exeext
5533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5534 /* end confdefs.h. */
5539 FILE *f = fopen ("conftest.out", "w");
5540 return ferror (f) || fclose (f) != 0;
5546 ac_clean_files="$ac_clean_files conftest.out"
5547 # Check that the compiler produces executables we can run. If not, either
5548 # the compiler is broken, or we cross compile.
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5550 $as_echo_n "checking whether we are cross compiling... " >&6; }
5551 if test "$cross_compiling" != yes; then
5552 { { ac_try="$ac_link"
5554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5555 *) ac_try_echo=$ac_try;;
5557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5558 $as_echo "$ac_try_echo"; } >&5
5559 (eval "$ac_link") 2>&5
5561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5562 test $ac_status = 0; }
5563 if { ac_try='./conftest$ac_cv_exeext'
5564 { { case "(($ac_try" in
5565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5566 *) ac_try_echo=$ac_try;;
5568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5569 $as_echo "$ac_try_echo"; } >&5
5570 (eval "$ac_try") 2>&5
5572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5573 test $ac_status = 0; }; }; then
5576 if test "$cross_compiling" = maybe; then
5579 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5580 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5581 as_fn_error $? "cannot run C compiled programs.
5582 If you meant to cross compile, use \`--host'.
5583 See \`config.log' for more details" "$LINENO" 5; }
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5588 $as_echo "$cross_compiling" >&6; }
5590 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5591 ac_clean_files=$ac_clean_files_save
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5593 $as_echo_n "checking for suffix of object files... " >&6; }
5594 if ${ac_cv_objext+:} false; then :
5595 $as_echo_n "(cached) " >&6
5597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5598 /* end confdefs.h. */
5608 rm -f conftest.o conftest.obj
5609 if { { ac_try="$ac_compile"
5611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5612 *) ac_try_echo=$ac_try;;
5614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5615 $as_echo "$ac_try_echo"; } >&5
5616 (eval "$ac_compile") 2>&5
5618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5619 test $ac_status = 0; }; then :
5620 for ac_file in conftest.o conftest.obj conftest.*; do
5621 test -f "$ac_file" || continue;
5623 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5624 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5629 $as_echo "$as_me: failed program was:" >&5
5630 sed 's/^/| /' conftest.$ac_ext >&5
5632 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5633 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5634 as_fn_error $? "cannot compute suffix of object files: cannot compile
5635 See \`config.log' for more details" "$LINENO" 5; }
5637 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5640 $as_echo "$ac_cv_objext" >&6; }
5641 OBJEXT=$ac_cv_objext
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5644 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5645 if ${ac_cv_c_compiler_gnu+:} false; then :
5646 $as_echo_n "(cached) " >&6
5648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5649 /* end confdefs.h. */
5662 if ac_fn_c_try_compile "$LINENO"; then :
5667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5668 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5672 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5673 if test $ac_compiler_gnu = yes; then
5678 ac_test_CFLAGS=${CFLAGS+set}
5679 ac_save_CFLAGS=$CFLAGS
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5681 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5682 if ${ac_cv_prog_cc_g+:} false; then :
5683 $as_echo_n "(cached) " >&6
5685 ac_save_c_werror_flag=$ac_c_werror_flag
5686 ac_c_werror_flag=yes
5689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5690 /* end confdefs.h. */
5700 if ac_fn_c_try_compile "$LINENO"; then :
5704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5705 /* end confdefs.h. */
5715 if ac_fn_c_try_compile "$LINENO"; then :
5718 ac_c_werror_flag=$ac_save_c_werror_flag
5720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5721 /* end confdefs.h. */
5731 if ac_fn_c_try_compile "$LINENO"; then :
5734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5739 ac_c_werror_flag=$ac_save_c_werror_flag
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5742 $as_echo "$ac_cv_prog_cc_g" >&6; }
5743 if test "$ac_test_CFLAGS" = set; then
5744 CFLAGS=$ac_save_CFLAGS
5745 elif test $ac_cv_prog_cc_g = yes; then
5746 if test "$GCC" = yes; then
5752 if test "$GCC" = yes; then
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5759 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5760 if ${ac_cv_prog_cc_c89+:} false; then :
5761 $as_echo_n "(cached) " >&6
5763 ac_cv_prog_cc_c89=no
5765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5766 /* end confdefs.h. */
5770 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5771 struct buf { int x; };
5772 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5773 static char *e (p, i)
5779 static char *f (char * (*g) (char **, int), char **p, ...)
5784 s = g (p, va_arg (v,int));
5789 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5790 function prototypes and stuff, but not '\xHH' hex character constants.
5791 These don't provoke an error unfortunately, instead are silently treated
5792 as 'x'. The following induces an error, until -std is added to get
5793 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5794 array size at least. It's necessary to write '\x00'==0 to get something
5795 that's true only with -std. */
5796 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5798 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5799 inside strings and character constants. */
5801 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5803 int test (int i, double x);
5804 struct s1 {int (*f) (int a);};
5805 struct s2 {int (*f) (double a);};
5806 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5812 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5817 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5818 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5820 CC="$ac_save_CC $ac_arg"
5821 if ac_fn_c_try_compile "$LINENO"; then :
5822 ac_cv_prog_cc_c89=$ac_arg
5824 rm -f core conftest.err conftest.$ac_objext
5825 test "x$ac_cv_prog_cc_c89" != "xno" && break
5827 rm -f conftest.$ac_ext
5832 case "x$ac_cv_prog_cc_c89" in
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5835 $as_echo "none needed" >&6; } ;;
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5838 $as_echo "unsupported" >&6; } ;;
5840 CC="$CC $ac_cv_prog_cc_c89"
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5842 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5844 if test "x$ac_cv_prog_cc_c89" != xno; then :
5849 ac_cpp='$CPP $CPPFLAGS'
5850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5856 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5857 if ${ac_cv_path_SED+:} false; then :
5858 $as_echo_n "(cached) " >&6
5860 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5861 for ac_i in 1 2 3 4 5 6 7; do
5862 ac_script="$ac_script$as_nl$ac_script"
5864 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5865 { ac_script=; unset ac_script;}
5866 if test -z "$SED"; then
5867 ac_path_SED_found=false
5868 # Loop through the user's path and test for each of PROGNAME-LIST
5869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873 test -z "$as_dir" && as_dir=.
5874 for ac_prog in sed gsed; do
5875 for ac_exec_ext in '' $ac_executable_extensions; do
5876 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5877 as_fn_executable_p "$ac_path_SED" || continue
5878 # Check for GNU ac_path_SED and select it if it is found.
5879 # Check for GNU $ac_path_SED
5880 case `"$ac_path_SED" --version 2>&1` in
5882 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5885 $as_echo_n 0123456789 >"conftest.in"
5888 cat "conftest.in" "conftest.in" >"conftest.tmp"
5889 mv "conftest.tmp" "conftest.in"
5890 cp "conftest.in" "conftest.nl"
5891 $as_echo '' >> "conftest.nl"
5892 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5893 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5894 as_fn_arith $ac_count + 1 && ac_count=$as_val
5895 if test $ac_count -gt ${ac_path_SED_max-0}; then
5896 # Best one so far, save it but keep looking for a better one
5897 ac_cv_path_SED="$ac_path_SED"
5898 ac_path_SED_max=$ac_count
5900 # 10*(2^10) chars as input seems more than enough
5901 test $ac_count -gt 10 && break
5903 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5906 $ac_path_SED_found && break 3
5911 if test -z "$ac_cv_path_SED"; then
5912 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5920 $as_echo "$ac_cv_path_SED" >&6; }
5921 SED="$ac_cv_path_SED"
5926 if test "x$apr_preload_done" != "xyes" ; then
5928 apr_preload_done="yes"
5930 echo "Applying APR hints file rules for $host"
5935 if test "x$CPPFLAGS" = "x"; then
5936 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DMINT\""
5939 apr_addto_bugger="-DMINT"
5940 for i in $apr_addto_bugger; do
5941 apr_addto_duplicate="0"
5942 for j in $CPPFLAGS; do
5943 if test "x$i" = "x$j"; then
5944 apr_addto_duplicate="1"
5948 if test $apr_addto_duplicate = "0"; then
5949 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
5950 CPPFLAGS="$CPPFLAGS $i"
5956 if test "x$LIBS" = "x"; then
5957 test "x$silent" != "xyes" && echo " setting LIBS to \"-lportlib\""
5960 apr_addto_bugger="-lportlib"
5961 for i in $apr_addto_bugger; do
5962 apr_addto_duplicate="0"
5964 if test "x$i" = "x$j"; then
5965 apr_addto_duplicate="1"
5969 if test $apr_addto_duplicate = "0"; then
5970 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
5979 if test "x$CPPFLAGS" = "x"; then
5980 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE\""
5981 CPPFLAGS="-DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE"
5983 apr_addto_bugger="-DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE"
5984 for i in $apr_addto_bugger; do
5985 apr_addto_duplicate="0"
5986 for j in $CPPFLAGS; do
5987 if test "x$i" = "x$j"; then
5988 apr_addto_duplicate="1"
5992 if test $apr_addto_duplicate = "0"; then
5993 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
5994 CPPFLAGS="$CPPFLAGS $i"
6000 if test "x$LIBS" = "x"; then
6001 test "x$silent" != "xyes" && echo " setting LIBS to \"-lsvipc -lcurses\""
6002 LIBS="-lsvipc -lcurses"
6004 apr_addto_bugger="-lsvipc -lcurses"
6005 for i in $apr_addto_bugger; do
6006 apr_addto_duplicate="0"
6008 if test "x$i" = "x$j"; then
6009 apr_addto_duplicate="1"
6013 if test $apr_addto_duplicate = "0"; then
6014 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
6021 if test "x$LDFLAGS" = "x"; then
6022 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-Xlinker \"-WL,cap=ia,ba,ph;nmstack=1024000\"\""
6023 LDFLAGS="-Xlinker \"-WL,cap=ia,ba,ph;nmstack=1024000\""
6025 apr_addto_bugger="-Xlinker \"-WL,cap=ia,ba,ph;nmstack=1024000\""
6026 for i in $apr_addto_bugger; do
6027 apr_addto_duplicate="0"
6028 for j in $LDFLAGS; do
6029 if test "x$i" = "x$j"; then
6030 apr_addto_duplicate="1"
6034 if test $apr_addto_duplicate = "0"; then
6035 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
6036 LDFLAGS="$LDFLAGS $i"
6044 if test "x$CPPFLAGS" = "x"; then
6045 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DAUX3 -D_POSIX_SOURCE\""
6046 CPPFLAGS="-DAUX3 -D_POSIX_SOURCE"
6048 apr_addto_bugger="-DAUX3 -D_POSIX_SOURCE"
6049 for i in $apr_addto_bugger; do
6050 apr_addto_duplicate="0"
6051 for j in $CPPFLAGS; do
6052 if test "x$i" = "x$j"; then
6053 apr_addto_duplicate="1"
6057 if test $apr_addto_duplicate = "0"; then
6058 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6059 CPPFLAGS="$CPPFLAGS $i"
6065 if test "x$LIBS" = "x"; then
6066 test "x$silent" != "xyes" && echo " setting LIBS to \"-lposix -lbsd\""
6067 LIBS="-lposix -lbsd"
6069 apr_addto_bugger="-lposix -lbsd"
6070 for i in $apr_addto_bugger; do
6071 apr_addto_duplicate="0"
6073 if test "x$i" = "x$j"; then
6074 apr_addto_duplicate="1"
6078 if test $apr_addto_duplicate = "0"; then
6079 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
6086 if test "x$LDFLAGS" = "x"; then
6087 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-s\""
6090 apr_addto_bugger="-s"
6091 for i in $apr_addto_bugger; do
6092 apr_addto_duplicate="0"
6093 for j in $LDFLAGS; do
6094 if test "x$i" = "x$j"; then
6095 apr_addto_duplicate="1"
6099 if test $apr_addto_duplicate = "0"; then
6100 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
6101 LDFLAGS="$LDFLAGS $i"
6107 test "x$silent" != "xyes" && echo " forcing SHELL to \"/bin/ksh\""
6113 if test "x$CPPFLAGS" = "x"; then
6114 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-U__STR__ -D_THREAD_SAFE\""
6115 CPPFLAGS="-U__STR__ -D_THREAD_SAFE"
6117 apr_addto_bugger="-U__STR__ -D_THREAD_SAFE"
6118 for i in $apr_addto_bugger; do
6119 apr_addto_duplicate="0"
6120 for j in $CPPFLAGS; do
6121 if test "x$i" = "x$j"; then
6122 apr_addto_duplicate="1"
6126 if test $apr_addto_duplicate = "0"; then
6127 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6128 CPPFLAGS="$CPPFLAGS $i"
6136 if test "x$CPPFLAGS" = "x"; then
6137 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_USE_IRS\""
6138 CPPFLAGS="-D_USE_IRS"
6140 apr_addto_bugger="-D_USE_IRS"
6141 for i in $apr_addto_bugger; do
6142 apr_addto_duplicate="0"
6143 for j in $CPPFLAGS; do
6144 if test "x$i" = "x$j"; then
6145 apr_addto_duplicate="1"
6149 if test $apr_addto_duplicate = "0"; then
6150 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6151 CPPFLAGS="$CPPFLAGS $i"
6159 if test "x$CPPFLAGS" = "x"; then
6160 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_USE_IRS\""
6161 CPPFLAGS="-D_USE_IRS"
6163 apr_addto_bugger="-D_USE_IRS"
6164 for i in $apr_addto_bugger; do
6165 apr_addto_duplicate="0"
6166 for j in $CPPFLAGS; do
6167 if test "x$i" = "x$j"; then
6168 apr_addto_duplicate="1"
6172 if test $apr_addto_duplicate = "0"; then
6173 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6174 CPPFLAGS="$CPPFLAGS $i"
6182 if test "x$CPPFLAGS" = "x"; then
6183 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_USE_IRS\""
6184 CPPFLAGS="-D_USE_IRS"
6186 apr_addto_bugger="-D_USE_IRS"
6187 for i in $apr_addto_bugger; do
6188 apr_addto_duplicate="0"
6189 for j in $CPPFLAGS; do
6190 if test "x$i" = "x$j"; then
6191 apr_addto_duplicate="1"
6195 if test $apr_addto_duplicate = "0"; then
6196 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6197 CPPFLAGS="$CPPFLAGS $i"
6204 if $CC 2>&1 | grep 'xlc' > /dev/null; then
6206 if test -z "$AIX_XLC"; then
6207 test "x$silent" != "xyes" && echo " setting AIX_XLC to \"yes\""
6212 if test "x$CFLAGS" = "x"; then
6213 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-qHALT=E\""
6216 apr_addto_bugger="-qHALT=E"
6217 for i in $apr_addto_bugger; do
6218 apr_addto_duplicate="0"
6219 for j in $CFLAGS; do
6220 if test "x$i" = "x$j"; then
6221 apr_addto_duplicate="1"
6225 if test $apr_addto_duplicate = "0"; then
6226 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
6234 if test -z "$apr_sysvsem_is_global"; then
6235 test "x$silent" != "xyes" && echo " setting apr_sysvsem_is_global to \"yes\""
6236 apr_sysvsem_is_global="yes"
6240 if test -z "$apr_lock_method"; then
6241 test "x$silent" != "xyes" && echo " setting apr_lock_method to \"USE_SYSVSEM_SERIALIZE\""
6242 apr_lock_method="USE_SYSVSEM_SERIALIZE"
6246 *-ibm-aix3* | *-ibm-aix4.1.*)
6250 if test "x$LDFLAGS" = "x"; then
6251 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-Wl,-brtl\""
6254 apr_addto_bugger="-Wl,-brtl"
6255 for i in $apr_addto_bugger; do
6256 apr_addto_duplicate="0"
6257 for j in $LDFLAGS; do
6258 if test "x$i" = "x$j"; then
6259 apr_addto_duplicate="1"
6263 if test $apr_addto_duplicate = "0"; then
6264 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
6265 LDFLAGS="$LDFLAGS $i"
6275 if test "x$CPPFLAGS" = "x"; then
6276 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DAPOLLO\""
6279 apr_addto_bugger="-DAPOLLO"
6280 for i in $apr_addto_bugger; do
6281 apr_addto_duplicate="0"
6282 for j in $CPPFLAGS; do
6283 if test "x$i" = "x$j"; then
6284 apr_addto_duplicate="1"
6288 if test $apr_addto_duplicate = "0"; then
6289 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6290 CPPFLAGS="$CPPFLAGS $i"
6298 if test "x$CPPFLAGS" = "x"; then
6299 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DDGUX\""
6302 apr_addto_bugger="-DDGUX"
6303 for i in $apr_addto_bugger; do
6304 apr_addto_duplicate="0"
6305 for j in $CPPFLAGS; do
6306 if test "x$i" = "x$j"; then
6307 apr_addto_duplicate="1"
6311 if test $apr_addto_duplicate = "0"; then
6312 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6313 CPPFLAGS="$CPPFLAGS $i"
6321 test "x$silent" != "xyes" && echo " forcing SHELL to \"sh\""
6325 if test -z "$apr_gethostbyname_is_thread_safe"; then
6326 test "x$silent" != "xyes" && echo " setting apr_gethostbyname_is_thread_safe to \"yes\""
6327 apr_gethostbyname_is_thread_safe="yes"
6331 if test -z "$apr_gethostbyaddr_is_thread_safe"; then
6332 test "x$silent" != "xyes" && echo " setting apr_gethostbyaddr_is_thread_safe to \"yes\""
6333 apr_gethostbyaddr_is_thread_safe="yes"
6337 if test -z "$apr_getservbyname_is_thread_safe"; then
6338 test "x$silent" != "xyes" && echo " setting apr_getservbyname_is_thread_safe to \"yes\""
6339 apr_getservbyname_is_thread_safe="yes"
6345 if test "x$CPPFLAGS" = "x"; then
6346 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DHIUX\""
6349 apr_addto_bugger="-DHIUX"
6350 for i in $apr_addto_bugger; do
6351 apr_addto_duplicate="0"
6352 for j in $CPPFLAGS; do
6353 if test "x$i" = "x$j"; then
6354 apr_addto_duplicate="1"
6358 if test $apr_addto_duplicate = "0"; then
6359 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6360 CPPFLAGS="$CPPFLAGS $i"
6368 if test "x$CPPFLAGS" = "x"; then
6369 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DHPUX11 -D_REENTRANT -D_HPUX_SOURCE\""
6370 CPPFLAGS="-DHPUX11 -D_REENTRANT -D_HPUX_SOURCE"
6372 apr_addto_bugger="-DHPUX11 -D_REENTRANT -D_HPUX_SOURCE"
6373 for i in $apr_addto_bugger; do
6374 apr_addto_duplicate="0"
6375 for j in $CPPFLAGS; do
6376 if test "x$i" = "x$j"; then
6377 apr_addto_duplicate="1"
6381 if test $apr_addto_duplicate = "0"; then
6382 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6383 CPPFLAGS="$CPPFLAGS $i"
6393 if test "x$CPPFLAGS" = "x"; then
6394 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSELECT_NEEDS_CAST\""
6395 CPPFLAGS="-DSELECT_NEEDS_CAST"
6397 apr_addto_bugger="-DSELECT_NEEDS_CAST"
6398 for i in $apr_addto_bugger; do
6399 apr_addto_duplicate="0"
6400 for j in $CPPFLAGS; do
6401 if test "x$i" = "x$j"; then
6402 apr_addto_duplicate="1"
6406 if test $apr_addto_duplicate = "0"; then
6407 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6408 CPPFLAGS="$CPPFLAGS $i"
6416 if test "x$CPPFLAGS" = "x"; then
6417 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_REENTRANT\""
6418 CPPFLAGS="-D_REENTRANT"
6420 apr_addto_bugger="-D_REENTRANT"
6421 for i in $apr_addto_bugger; do
6422 apr_addto_duplicate="0"
6423 for j in $CPPFLAGS; do
6424 if test "x$i" = "x$j"; then
6425 apr_addto_duplicate="1"
6429 if test $apr_addto_duplicate = "0"; then
6430 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6431 CPPFLAGS="$CPPFLAGS $i"
6439 if test "x$CPPFLAGS" = "x"; then
6440 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DHPUX -D_REENTRANT\""
6441 CPPFLAGS="-DHPUX -D_REENTRANT"
6443 apr_addto_bugger="-DHPUX -D_REENTRANT"
6444 for i in $apr_addto_bugger; do
6445 apr_addto_duplicate="0"
6446 for j in $CPPFLAGS; do
6447 if test "x$i" = "x$j"; then
6448 apr_addto_duplicate="1"
6452 if test $apr_addto_duplicate = "0"; then
6453 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6454 CPPFLAGS="$CPPFLAGS $i"
6462 if test "x$CPPFLAGS" = "x"; then
6463 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DLINUX -D_REENTRANT -D_GNU_SOURCE\""
6464 CPPFLAGS="-DLINUX -D_REENTRANT -D_GNU_SOURCE"
6466 apr_addto_bugger="-DLINUX -D_REENTRANT -D_GNU_SOURCE"
6467 for i in $apr_addto_bugger; do
6468 apr_addto_duplicate="0"
6469 for j in $CPPFLAGS; do
6470 if test "x$i" = "x$j"; then
6471 apr_addto_duplicate="1"
6475 if test $apr_addto_duplicate = "0"; then
6476 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6477 CPPFLAGS="$CPPFLAGS $i"
6485 if test "x$CPPFLAGS" = "x"; then
6486 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D__NO_INCLUDE_WARN__ -DLYNXOS\""
6487 CPPFLAGS="-D__NO_INCLUDE_WARN__ -DLYNXOS"
6489 apr_addto_bugger="-D__NO_INCLUDE_WARN__ -DLYNXOS"
6490 for i in $apr_addto_bugger; do
6491 apr_addto_duplicate="0"
6492 for j in $CPPFLAGS; do
6493 if test "x$i" = "x$j"; then
6494 apr_addto_duplicate="1"
6498 if test $apr_addto_duplicate = "0"; then
6499 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6500 CPPFLAGS="$CPPFLAGS $i"
6506 if test "x$LIBS" = "x"; then
6507 test "x$silent" != "xyes" && echo " setting LIBS to \"-lbsd\""
6510 apr_addto_bugger="-lbsd"
6511 for i in $apr_addto_bugger; do
6512 apr_addto_duplicate="0"
6514 if test "x$i" = "x$j"; then
6515 apr_addto_duplicate="1"
6519 if test $apr_addto_duplicate = "0"; then
6520 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
6529 if test "x$CFLAGS" = "x"; then
6530 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-m486\""
6533 apr_addto_bugger="-m486"
6534 for i in $apr_addto_bugger; do
6535 apr_addto_duplicate="0"
6536 for j in $CFLAGS; do
6537 if test "x$i" = "x$j"; then
6538 apr_addto_duplicate="1"
6542 if test $apr_addto_duplicate = "0"; then
6543 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
6554 if test "x$CFLAGS" = "x"; then
6555 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-D_REENTRANT\""
6556 CFLAGS="-D_REENTRANT"
6558 apr_addto_bugger="-D_REENTRANT"
6559 for i in $apr_addto_bugger; do
6560 apr_addto_duplicate="0"
6561 for j in $CFLAGS; do
6562 if test "x$i" = "x$j"; then
6563 apr_addto_duplicate="1"
6567 if test $apr_addto_duplicate = "0"; then
6568 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
6579 if test "x$CPPFLAGS" = "x"; then
6580 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_POSIX_THREADS\""
6581 CPPFLAGS="-D_POSIX_THREADS"
6583 apr_addto_bugger="-D_POSIX_THREADS"
6584 for i in $apr_addto_bugger; do
6585 apr_addto_duplicate="0"
6586 for j in $CPPFLAGS; do
6587 if test "x$i" = "x$j"; then
6588 apr_addto_duplicate="1"
6592 if test $apr_addto_duplicate = "0"; then
6593 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6594 CPPFLAGS="$CPPFLAGS $i"
6599 # binding to an ephemeral port fails on OpenBSD so override
6600 # the test for O_NONBLOCK inheritance across accept().
6602 if test -z "$ac_cv_o_nonblock_inherited"; then
6603 test "x$silent" != "xyes" && echo " setting ac_cv_o_nonblock_inherited to \"yes\""
6604 ac_cv_o_nonblock_inherited="yes"
6610 if test "x$CPPFLAGS" = "x"; then
6611 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DNETBSD\""
6614 apr_addto_bugger="-DNETBSD"
6615 for i in $apr_addto_bugger; do
6616 apr_addto_duplicate="0"
6617 for j in $CPPFLAGS; do
6618 if test "x$i" = "x$j"; then
6619 apr_addto_duplicate="1"
6623 if test $apr_addto_duplicate = "0"; then
6624 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6625 CPPFLAGS="$CPPFLAGS $i"
6630 # fcntl() lies about O_NONBLOCK on an accept()ed socket (PR kern/26950)
6632 if test -z "$ac_cv_o_nonblock_inherited"; then
6633 test "x$silent" != "xyes" && echo " setting ac_cv_o_nonblock_inherited to \"yes\""
6634 ac_cv_o_nonblock_inherited="yes"
6640 if test -z "$apr_lock_method"; then
6641 test "x$silent" != "xyes" && echo " setting apr_lock_method to \"USE_FLOCK_SERIALIZE\""
6642 apr_lock_method="USE_FLOCK_SERIALIZE"
6645 if test -x /sbin/sysctl; then
6646 os_version=`/sbin/sysctl -n kern.osreldate`
6650 # 502102 is when libc_r switched to libpthread (aka libkse).
6651 if test $os_version -ge "502102"; then
6652 apr_cv_pthreads_cflags="none"
6653 apr_cv_pthreads_lib="-lpthread"
6656 if test "x$CPPFLAGS" = "x"; then
6657 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_THREAD_SAFE -D_REENTRANT\""
6658 CPPFLAGS="-D_THREAD_SAFE -D_REENTRANT"
6660 apr_addto_bugger="-D_THREAD_SAFE -D_REENTRANT"
6661 for i in $apr_addto_bugger; do
6662 apr_addto_duplicate="0"
6663 for j in $CPPFLAGS; do
6664 if test "x$i" = "x$j"; then
6665 apr_addto_duplicate="1"
6669 if test $apr_addto_duplicate = "0"; then
6670 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6671 CPPFLAGS="$CPPFLAGS $i"
6677 if test -z "$enable_threads"; then
6678 test "x$silent" != "xyes" && echo " setting enable_threads to \"no\""
6683 # prevent use of KQueue before FreeBSD 4.8
6684 if test $os_version -lt "480000"; then
6686 if test -z "$ac_cv_func_kqueue"; then
6687 test "x$silent" != "xyes" && echo " setting ac_cv_func_kqueue to \"no\""
6688 ac_cv_func_kqueue="no"
6695 if test "x$CPPFLAGS" = "x"; then
6696 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_REENTRANT -D_GNU_SOURCE\""
6697 CPPFLAGS="-D_REENTRANT -D_GNU_SOURCE"
6699 apr_addto_bugger="-D_REENTRANT -D_GNU_SOURCE"
6700 for i in $apr_addto_bugger; do
6701 apr_addto_duplicate="0"
6702 for j in $CPPFLAGS; do
6703 if test "x$i" = "x$j"; then
6704 apr_addto_duplicate="1"
6708 if test $apr_addto_duplicate = "0"; then
6709 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6710 CPPFLAGS="$CPPFLAGS $i"
6718 if test "x$CPPFLAGS" = "x"; then
6719 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_REENTRANT -D_GNU_SOURCE -DHURD\""
6720 CPPFLAGS="-D_REENTRANT -D_GNU_SOURCE -DHURD"
6722 apr_addto_bugger="-D_REENTRANT -D_GNU_SOURCE -DHURD"
6723 for i in $apr_addto_bugger; do
6724 apr_addto_duplicate="0"
6725 for j in $CPPFLAGS; do
6726 if test "x$i" = "x$j"; then
6727 apr_addto_duplicate="1"
6731 if test $apr_addto_duplicate = "0"; then
6732 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6733 CPPFLAGS="$CPPFLAGS $i"
6741 if test -z "$CFLAGS"; then
6742 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-O\""
6747 if test "x$CPPFLAGS" = "x"; then
6748 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DNEXT\""
6751 apr_addto_bugger="-DNEXT"
6752 for i in $apr_addto_bugger; do
6753 apr_addto_duplicate="0"
6754 for j in $CPPFLAGS; do
6755 if test "x$i" = "x$j"; then
6756 apr_addto_duplicate="1"
6760 if test $apr_addto_duplicate = "0"; then
6761 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6762 CPPFLAGS="$CPPFLAGS $i"
6770 if test -z "$CFLAGS"; then
6771 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-O\""
6776 if test "x$CPPFLAGS" = "x"; then
6777 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DNEXT\""
6780 apr_addto_bugger="-DNEXT"
6781 for i in $apr_addto_bugger; do
6782 apr_addto_duplicate="0"
6783 for j in $CPPFLAGS; do
6784 if test "x$i" = "x$j"; then
6785 apr_addto_duplicate="1"
6789 if test $apr_addto_duplicate = "0"; then
6790 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6791 CPPFLAGS="$CPPFLAGS $i"
6799 if test "x$CPPFLAGS" = "x"; then
6800 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DRHAPSODY\""
6801 CPPFLAGS="-DRHAPSODY"
6803 apr_addto_bugger="-DRHAPSODY"
6804 for i in $apr_addto_bugger; do
6805 apr_addto_duplicate="0"
6806 for j in $CPPFLAGS; do
6807 if test "x$i" = "x$j"; then
6808 apr_addto_duplicate="1"
6812 if test $apr_addto_duplicate = "0"; then
6813 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6814 CPPFLAGS="$CPPFLAGS $i"
6822 if test "x$CPPFLAGS" = "x"; then
6823 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp\""
6824 CPPFLAGS="-DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp"
6826 apr_addto_bugger="-DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp"
6827 for i in $apr_addto_bugger; do
6828 apr_addto_duplicate="0"
6829 for j in $CPPFLAGS; do
6830 if test "x$i" = "x$j"; then
6831 apr_addto_duplicate="1"
6835 if test $apr_addto_duplicate = "0"; then
6836 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6837 CPPFLAGS="$CPPFLAGS $i"
6843 if test -z "$apr_posixsem_is_global"; then
6844 test "x$silent" != "xyes" && echo " setting apr_posixsem_is_global to \"yes\""
6845 apr_posixsem_is_global="yes"
6849 *-apple-darwin[1-9].*)
6850 # APR's use of kqueue has triggered kernel panics for some
6851 # 10.5.x (Darwin 9.x) users when running the entire test suite.
6852 # In 10.4.x, use of kqueue would cause the socket tests to hang.
6853 # 10.6+ (Darwin 10.x is supposed to fix the KQueue issues
6855 if test -z "$ac_cv_func_kqueue"; then
6856 test "x$silent" != "xyes" && echo " setting ac_cv_func_kqueue to \"no\""
6857 ac_cv_func_kqueue="no"
6861 if test -z "$ac_cv_func_poll"; then
6862 test "x$silent" != "xyes" && echo " setting ac_cv_func_poll to \"no\""
6863 ac_cv_func_poll="no"
6869 if test "x$CPPFLAGS" = "x"; then
6870 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DDARWIN_10\""
6871 CPPFLAGS="-DDARWIN_10"
6873 apr_addto_bugger="-DDARWIN_10"
6874 for i in $apr_addto_bugger; do
6875 apr_addto_duplicate="0"
6876 for j in $CPPFLAGS; do
6877 if test "x$i" = "x$j"; then
6878 apr_addto_duplicate="1"
6882 if test $apr_addto_duplicate = "0"; then
6883 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6884 CPPFLAGS="$CPPFLAGS $i"
6894 if test "x$CPPFLAGS" = "x"; then
6895 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DOSF1\""
6898 apr_addto_bugger="-DOSF1"
6899 for i in $apr_addto_bugger; do
6900 apr_addto_duplicate="0"
6901 for j in $CPPFLAGS; do
6902 if test "x$i" = "x$j"; then
6903 apr_addto_duplicate="1"
6907 if test $apr_addto_duplicate = "0"; then
6908 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6909 CPPFLAGS="$CPPFLAGS $i"
6914 # process-shared mutexes don't seem to work in Tru64 5.0
6916 if test -z "$apr_cv_process_shared_works"; then
6917 test "x$silent" != "xyes" && echo " setting apr_cv_process_shared_works to \"no\""
6918 apr_cv_process_shared_works="no"
6926 if test "x$CPPFLAGS" = "x"; then
6927 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DQNX\""
6930 apr_addto_bugger="-DQNX"
6931 for i in $apr_addto_bugger; do
6932 apr_addto_duplicate="0"
6933 for j in $CPPFLAGS; do
6934 if test "x$i" = "x$j"; then
6935 apr_addto_duplicate="1"
6939 if test $apr_addto_duplicate = "0"; then
6940 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6941 CPPFLAGS="$CPPFLAGS $i"
6947 if test "x$LIBS" = "x"; then
6948 test "x$silent" != "xyes" && echo " setting LIBS to \"-N128k -lunix\""
6949 LIBS="-N128k -lunix"
6951 apr_addto_bugger="-N128k -lunix"
6952 for i in $apr_addto_bugger; do
6953 apr_addto_duplicate="0"
6955 if test "x$i" = "x$j"; then
6956 apr_addto_duplicate="1"
6960 if test $apr_addto_duplicate = "0"; then
6961 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
6970 if test "x$CPPFLAGS" = "x"; then
6971 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DQNX\""
6974 apr_addto_bugger="-DQNX"
6975 for i in $apr_addto_bugger; do
6976 apr_addto_duplicate="0"
6977 for j in $CPPFLAGS; do
6978 if test "x$i" = "x$j"; then
6979 apr_addto_duplicate="1"
6983 if test $apr_addto_duplicate = "0"; then
6984 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6985 CPPFLAGS="$CPPFLAGS $i"
6991 if test "x$CFLAGS" = "x"; then
6992 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-mf -3\""
6995 apr_addto_bugger="-mf -3"
6996 for i in $apr_addto_bugger; do
6997 apr_addto_duplicate="0"
6998 for j in $CFLAGS; do
6999 if test "x$i" = "x$j"; then
7000 apr_addto_duplicate="1"
7004 if test $apr_addto_duplicate = "0"; then
7005 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
7012 if test "x$LIBS" = "x"; then
7013 test "x$silent" != "xyes" && echo " setting LIBS to \"-N128k -lunix\""
7014 LIBS="-N128k -lunix"
7016 apr_addto_bugger="-N128k -lunix"
7017 for i in $apr_addto_bugger; do
7018 apr_addto_duplicate="0"
7020 if test "x$i" = "x$j"; then
7021 apr_addto_duplicate="1"
7025 if test $apr_addto_duplicate = "0"; then
7026 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7035 if test "x$CPPFLAGS" = "x"; then
7036 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-posix -DISC\""
7037 CPPFLAGS="-posix -DISC"
7039 apr_addto_bugger="-posix -DISC"
7040 for i in $apr_addto_bugger; do
7041 apr_addto_duplicate="0"
7042 for j in $CPPFLAGS; do
7043 if test "x$i" = "x$j"; then
7044 apr_addto_duplicate="1"
7048 if test $apr_addto_duplicate = "0"; then
7049 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7050 CPPFLAGS="$CPPFLAGS $i"
7056 if test "x$LDFLAGS" = "x"; then
7057 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-posix\""
7060 apr_addto_bugger="-posix"
7061 for i in $apr_addto_bugger; do
7062 apr_addto_duplicate="0"
7063 for j in $LDFLAGS; do
7064 if test "x$i" = "x$j"; then
7065 apr_addto_duplicate="1"
7069 if test $apr_addto_duplicate = "0"; then
7070 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
7071 LDFLAGS="$LDFLAGS $i"
7077 if test "x$LIBS" = "x"; then
7078 test "x$silent" != "xyes" && echo " setting LIBS to \"-linet\""
7081 apr_addto_bugger="-linet"
7082 for i in $apr_addto_bugger; do
7083 apr_addto_duplicate="0"
7085 if test "x$i" = "x$j"; then
7086 apr_addto_duplicate="1"
7090 if test $apr_addto_duplicate = "0"; then
7091 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7100 if test "x$CPPFLAGS" = "x"; then
7101 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSCO -D_REENTRANT\""
7102 CPPFLAGS="-DSCO -D_REENTRANT"
7104 apr_addto_bugger="-DSCO -D_REENTRANT"
7105 for i in $apr_addto_bugger; do
7106 apr_addto_duplicate="0"
7107 for j in $CPPFLAGS; do
7108 if test "x$i" = "x$j"; then
7109 apr_addto_duplicate="1"
7113 if test $apr_addto_duplicate = "0"; then
7114 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7115 CPPFLAGS="$CPPFLAGS $i"
7120 if test "$GCC" = "no"; then
7122 if test "x$CFLAGS" = "x"; then
7123 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Oacgiltz\""
7126 apr_addto_bugger="-Oacgiltz"
7127 for i in $apr_addto_bugger; do
7128 apr_addto_duplicate="0"
7129 for j in $CFLAGS; do
7130 if test "x$i" = "x$j"; then
7131 apr_addto_duplicate="1"
7135 if test $apr_addto_duplicate = "0"; then
7136 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
7144 if test "x$LIBS" = "x"; then
7145 test "x$silent" != "xyes" && echo " setting LIBS to \"-lPW -lmalloc\""
7146 LIBS="-lPW -lmalloc"
7148 apr_addto_bugger="-lPW -lmalloc"
7149 for i in $apr_addto_bugger; do
7150 apr_addto_duplicate="0"
7152 if test "x$i" = "x$j"; then
7153 apr_addto_duplicate="1"
7157 if test $apr_addto_duplicate = "0"; then
7158 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7167 if test "x$CPPFLAGS" = "x"; then
7168 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSCO5 -D_REENTRANT\""
7169 CPPFLAGS="-DSCO5 -D_REENTRANT"
7171 apr_addto_bugger="-DSCO5 -D_REENTRANT"
7172 for i in $apr_addto_bugger; do
7173 apr_addto_duplicate="0"
7174 for j in $CPPFLAGS; do
7175 if test "x$i" = "x$j"; then
7176 apr_addto_duplicate="1"
7180 if test $apr_addto_duplicate = "0"; then
7181 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7182 CPPFLAGS="$CPPFLAGS $i"
7188 *-sco_sv*|*-SCO_SV*)
7190 if test "x$CPPFLAGS" = "x"; then
7191 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSCO -D_REENTRANT\""
7192 CPPFLAGS="-DSCO -D_REENTRANT"
7194 apr_addto_bugger="-DSCO -D_REENTRANT"
7195 for i in $apr_addto_bugger; do
7196 apr_addto_duplicate="0"
7197 for j in $CPPFLAGS; do
7198 if test "x$i" = "x$j"; then
7199 apr_addto_duplicate="1"
7203 if test $apr_addto_duplicate = "0"; then
7204 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7205 CPPFLAGS="$CPPFLAGS $i"
7211 if test "x$LIBS" = "x"; then
7212 test "x$silent" != "xyes" && echo " setting LIBS to \"-lPW -lmalloc\""
7213 LIBS="-lPW -lmalloc"
7215 apr_addto_bugger="-lPW -lmalloc"
7216 for i in $apr_addto_bugger; do
7217 apr_addto_duplicate="0"
7219 if test "x$i" = "x$j"; then
7220 apr_addto_duplicate="1"
7224 if test $apr_addto_duplicate = "0"; then
7225 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7233 PLATOSVERS=`echo $host | sed 's/^.*solaris2.//'`
7235 if test "x$CPPFLAGS" = "x"; then
7236 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSOLARIS2=$PLATOSVERS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT\""
7237 CPPFLAGS="-DSOLARIS2=$PLATOSVERS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT"
7239 apr_addto_bugger="-DSOLARIS2=$PLATOSVERS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT"
7240 for i in $apr_addto_bugger; do
7241 apr_addto_duplicate="0"
7242 for j in $CPPFLAGS; do
7243 if test "x$i" = "x$j"; then
7244 apr_addto_duplicate="1"
7248 if test $apr_addto_duplicate = "0"; then
7249 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7250 CPPFLAGS="$CPPFLAGS $i"
7255 if test $PLATOSVERS -ge 10; then
7257 if test -z "$apr_lock_method"; then
7258 test "x$silent" != "xyes" && echo " setting apr_lock_method to \"USE_PROC_PTHREAD_SERIALIZE\""
7259 apr_lock_method="USE_PROC_PTHREAD_SERIALIZE"
7264 if test -z "$apr_lock_method"; then
7265 test "x$silent" != "xyes" && echo " setting apr_lock_method to \"USE_FCNTL_SERIALIZE\""
7266 apr_lock_method="USE_FCNTL_SERIALIZE"
7270 # readdir64_r error handling seems broken on Solaris (at least
7271 # up till 2.8) -- it will return -1 at end-of-directory.
7273 if test -z "$ac_cv_func_readdir64_r"; then
7274 test "x$silent" != "xyes" && echo " setting ac_cv_func_readdir64_r to \"no\""
7275 ac_cv_func_readdir64_r="no"
7281 if test "x$CPPFLAGS" = "x"; then
7282 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSUNOS4\""
7285 apr_addto_bugger="-DSUNOS4"
7286 for i in $apr_addto_bugger; do
7287 apr_addto_duplicate="0"
7288 for j in $CPPFLAGS; do
7289 if test "x$i" = "x$j"; then
7290 apr_addto_duplicate="1"
7294 if test $apr_addto_duplicate = "0"; then
7295 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7296 CPPFLAGS="$CPPFLAGS $i"
7304 if test "x$CPPFLAGS" = "x"; then
7305 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DUW=100\""
7308 apr_addto_bugger="-DUW=100"
7309 for i in $apr_addto_bugger; do
7310 apr_addto_duplicate="0"
7311 for j in $CPPFLAGS; do
7312 if test "x$i" = "x$j"; then
7313 apr_addto_duplicate="1"
7317 if test $apr_addto_duplicate = "0"; then
7318 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7319 CPPFLAGS="$CPPFLAGS $i"
7327 if test "x$CPPFLAGS" = "x"; then
7328 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DUW=200\""
7331 apr_addto_bugger="-DUW=200"
7332 for i in $apr_addto_bugger; do
7333 apr_addto_duplicate="0"
7334 for j in $CPPFLAGS; do
7335 if test "x$i" = "x$j"; then
7336 apr_addto_duplicate="1"
7340 if test $apr_addto_duplicate = "0"; then
7341 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7342 CPPFLAGS="$CPPFLAGS $i"
7348 if test "x$LIBS" = "x"; then
7349 test "x$silent" != "xyes" && echo " setting LIBS to \"-lgen\""
7352 apr_addto_bugger="-lgen"
7353 for i in $apr_addto_bugger; do
7354 apr_addto_duplicate="0"
7356 if test "x$i" = "x$j"; then
7357 apr_addto_duplicate="1"
7361 if test $apr_addto_duplicate = "0"; then
7362 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7371 if test "x$CPPFLAGS" = "x"; then
7372 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DUW=211\""
7375 apr_addto_bugger="-DUW=211"
7376 for i in $apr_addto_bugger; do
7377 apr_addto_duplicate="0"
7378 for j in $CPPFLAGS; do
7379 if test "x$i" = "x$j"; then
7380 apr_addto_duplicate="1"
7384 if test $apr_addto_duplicate = "0"; then
7385 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7386 CPPFLAGS="$CPPFLAGS $i"
7392 if test "x$LIBS" = "x"; then
7393 test "x$silent" != "xyes" && echo " setting LIBS to \"-lgen\""
7396 apr_addto_bugger="-lgen"
7397 for i in $apr_addto_bugger; do
7398 apr_addto_duplicate="0"
7400 if test "x$i" = "x$j"; then
7401 apr_addto_duplicate="1"
7405 if test $apr_addto_duplicate = "0"; then
7406 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7415 if test "x$CPPFLAGS" = "x"; then
7416 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DUW=212\""
7419 apr_addto_bugger="-DUW=212"
7420 for i in $apr_addto_bugger; do
7421 apr_addto_duplicate="0"
7422 for j in $CPPFLAGS; do
7423 if test "x$i" = "x$j"; then
7424 apr_addto_duplicate="1"
7428 if test $apr_addto_duplicate = "0"; then
7429 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7430 CPPFLAGS="$CPPFLAGS $i"
7436 if test "x$LIBS" = "x"; then
7437 test "x$silent" != "xyes" && echo " setting LIBS to \"-lgen\""
7440 apr_addto_bugger="-lgen"
7441 for i in $apr_addto_bugger; do
7442 apr_addto_duplicate="0"
7444 if test "x$i" = "x$j"; then
7445 apr_addto_duplicate="1"
7449 if test $apr_addto_duplicate = "0"; then
7450 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7459 if test "x$CPPFLAGS" = "x"; then
7460 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DUW=700\""
7463 apr_addto_bugger="-DUW=700"
7464 for i in $apr_addto_bugger; do
7465 apr_addto_duplicate="0"
7466 for j in $CPPFLAGS; do
7467 if test "x$i" = "x$j"; then
7468 apr_addto_duplicate="1"
7472 if test $apr_addto_duplicate = "0"; then
7473 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7474 CPPFLAGS="$CPPFLAGS $i"
7480 if test "x$LIBS" = "x"; then
7481 test "x$silent" != "xyes" && echo " setting LIBS to \"-lgen\""
7484 apr_addto_bugger="-lgen"
7485 for i in $apr_addto_bugger; do
7486 apr_addto_duplicate="0"
7488 if test "x$i" = "x$j"; then
7489 apr_addto_duplicate="1"
7493 if test $apr_addto_duplicate = "0"; then
7494 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7503 if test "x$CPPFLAGS" = "x"; then
7504 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4\""
7507 apr_addto_bugger="-DSVR4"
7508 for i in $apr_addto_bugger; do
7509 apr_addto_duplicate="0"
7510 for j in $CPPFLAGS; do
7511 if test "x$i" = "x$j"; then
7512 apr_addto_duplicate="1"
7516 if test $apr_addto_duplicate = "0"; then
7517 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7518 CPPFLAGS="$CPPFLAGS $i"
7524 if test "x$LIBS" = "x"; then
7525 test "x$silent" != "xyes" && echo " setting LIBS to \"-lc -lgen\""
7528 apr_addto_bugger="-lc -lgen"
7529 for i in $apr_addto_bugger; do
7530 apr_addto_duplicate="0"
7532 if test "x$i" = "x$j"; then
7533 apr_addto_duplicate="1"
7537 if test $apr_addto_duplicate = "0"; then
7538 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7547 if test "x$CPPFLAGS" = "x"; then
7548 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4\""
7551 apr_addto_bugger="-DSVR4"
7552 for i in $apr_addto_bugger; do
7553 apr_addto_duplicate="0"
7554 for j in $CPPFLAGS; do
7555 if test "x$i" = "x$j"; then
7556 apr_addto_duplicate="1"
7560 if test $apr_addto_duplicate = "0"; then
7561 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7562 CPPFLAGS="$CPPFLAGS $i"
7568 if test "x$LIBS" = "x"; then
7569 test "x$silent" != "xyes" && echo " setting LIBS to \"-lgen\""
7572 apr_addto_bugger="-lgen"
7573 for i in $apr_addto_bugger; do
7574 apr_addto_duplicate="0"
7576 if test "x$i" = "x$j"; then
7577 apr_addto_duplicate="1"
7581 if test $apr_addto_duplicate = "0"; then
7582 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7591 if test "x$CPPFLAGS" = "x"; then
7592 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DTPF -D_POSIX_SOURCE\""
7593 CPPFLAGS="-DTPF -D_POSIX_SOURCE"
7595 apr_addto_bugger="-DTPF -D_POSIX_SOURCE"
7596 for i in $apr_addto_bugger; do
7597 apr_addto_duplicate="0"
7598 for j in $CPPFLAGS; do
7599 if test "x$i" = "x$j"; then
7600 apr_addto_duplicate="1"
7604 if test $apr_addto_duplicate = "0"; then
7605 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7606 CPPFLAGS="$CPPFLAGS $i"
7612 bs2000*-siemens-sysv*)
7614 if test -z "$CFLAGS"; then
7615 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-O\""
7620 if test "x$CPPFLAGS" = "x"; then
7621 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4 -D_XPG_IV -D_KMEMUSER\""
7622 CPPFLAGS="-DSVR4 -D_XPG_IV -D_KMEMUSER"
7624 apr_addto_bugger="-DSVR4 -D_XPG_IV -D_KMEMUSER"
7625 for i in $apr_addto_bugger; do
7626 apr_addto_duplicate="0"
7627 for j in $CPPFLAGS; do
7628 if test "x$i" = "x$j"; then
7629 apr_addto_duplicate="1"
7633 if test $apr_addto_duplicate = "0"; then
7634 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7635 CPPFLAGS="$CPPFLAGS $i"
7641 if test "x$LIBS" = "x"; then
7642 test "x$silent" != "xyes" && echo " setting LIBS to \"-lsocket\""
7645 apr_addto_bugger="-lsocket"
7646 for i in $apr_addto_bugger; do
7647 apr_addto_duplicate="0"
7649 if test "x$i" = "x$j"; then
7650 apr_addto_duplicate="1"
7654 if test $apr_addto_duplicate = "0"; then
7655 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7662 if test -z "$enable_threads"; then
7663 test "x$silent" != "xyes" && echo " setting enable_threads to \"no\""
7670 if test "x$CPPFLAGS" = "x"; then
7671 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4 -D_XPG_IV -DHAS_DLFCN -DUSE_MMAP_FILES -DUSE_SYSVSEM_SERIALIZED_ACCEPT\""
7672 CPPFLAGS="-DSVR4 -D_XPG_IV -DHAS_DLFCN -DUSE_MMAP_FILES -DUSE_SYSVSEM_SERIALIZED_ACCEPT"
7674 apr_addto_bugger="-DSVR4 -D_XPG_IV -DHAS_DLFCN -DUSE_MMAP_FILES -DUSE_SYSVSEM_SERIALIZED_ACCEPT"
7675 for i in $apr_addto_bugger; do
7676 apr_addto_duplicate="0"
7677 for j in $CPPFLAGS; do
7678 if test "x$i" = "x$j"; then
7679 apr_addto_duplicate="1"
7683 if test $apr_addto_duplicate = "0"; then
7684 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7685 CPPFLAGS="$CPPFLAGS $i"
7691 if test "x$LIBS" = "x"; then
7692 test "x$silent" != "xyes" && echo " setting LIBS to \"-lc\""
7695 apr_addto_bugger="-lc"
7696 for i in $apr_addto_bugger; do
7697 apr_addto_duplicate="0"
7699 if test "x$i" = "x$j"; then
7700 apr_addto_duplicate="1"
7704 if test $apr_addto_duplicate = "0"; then
7705 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7712 pyramid-pyramid-svr4)
7714 if test "x$CPPFLAGS" = "x"; then
7715 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4 -DNO_LONG_DOUBLE\""
7716 CPPFLAGS="-DSVR4 -DNO_LONG_DOUBLE"
7718 apr_addto_bugger="-DSVR4 -DNO_LONG_DOUBLE"
7719 for i in $apr_addto_bugger; do
7720 apr_addto_duplicate="0"
7721 for j in $CPPFLAGS; do
7722 if test "x$i" = "x$j"; then
7723 apr_addto_duplicate="1"
7727 if test $apr_addto_duplicate = "0"; then
7728 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7729 CPPFLAGS="$CPPFLAGS $i"
7735 if test "x$LIBS" = "x"; then
7736 test "x$silent" != "xyes" && echo " setting LIBS to \"-lc\""
7739 apr_addto_bugger="-lc"
7740 for i in $apr_addto_bugger; do
7741 apr_addto_duplicate="0"
7743 if test "x$i" = "x$j"; then
7744 apr_addto_duplicate="1"
7748 if test $apr_addto_duplicate = "0"; then
7749 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7756 DS/90\ 7000-*-sysv4*)
7758 if test "x$CPPFLAGS" = "x"; then
7759 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DUXPDS\""
7762 apr_addto_bugger="-DUXPDS"
7763 for i in $apr_addto_bugger; do
7764 apr_addto_duplicate="0"
7765 for j in $CPPFLAGS; do
7766 if test "x$i" = "x$j"; then
7767 apr_addto_duplicate="1"
7771 if test $apr_addto_duplicate = "0"; then
7772 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7773 CPPFLAGS="$CPPFLAGS $i"
7781 if test "x$CPPFLAGS" = "x"; then
7782 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4\""
7785 apr_addto_bugger="-DSVR4"
7786 for i in $apr_addto_bugger; do
7787 apr_addto_duplicate="0"
7788 for j in $CPPFLAGS; do
7789 if test "x$i" = "x$j"; then
7790 apr_addto_duplicate="1"
7794 if test $apr_addto_duplicate = "0"; then
7795 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7796 CPPFLAGS="$CPPFLAGS $i"
7804 if test "x$CPPFLAGS" = "x"; then
7805 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4 -DMPRAS\""
7806 CPPFLAGS="-DSVR4 -DMPRAS"
7808 apr_addto_bugger="-DSVR4 -DMPRAS"
7809 for i in $apr_addto_bugger; do
7810 apr_addto_duplicate="0"
7811 for j in $CPPFLAGS; do
7812 if test "x$i" = "x$j"; then
7813 apr_addto_duplicate="1"
7817 if test $apr_addto_duplicate = "0"; then
7818 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7819 CPPFLAGS="$CPPFLAGS $i"
7825 if test "x$LIBS" = "x"; then
7826 test "x$silent" != "xyes" && echo " setting LIBS to \"-lc -L/usr/ucblib -lucb\""
7827 LIBS="-lc -L/usr/ucblib -lucb"
7829 apr_addto_bugger="-lc -L/usr/ucblib -lucb"
7830 for i in $apr_addto_bugger; do
7831 apr_addto_duplicate="0"
7833 if test "x$i" = "x$j"; then
7834 apr_addto_duplicate="1"
7838 if test $apr_addto_duplicate = "0"; then
7839 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7848 if test "x$CPPFLAGS" = "x"; then
7849 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4\""
7852 apr_addto_bugger="-DSVR4"
7853 for i in $apr_addto_bugger; do
7854 apr_addto_duplicate="0"
7855 for j in $CPPFLAGS; do
7856 if test "x$i" = "x$j"; then
7857 apr_addto_duplicate="1"
7861 if test $apr_addto_duplicate = "0"; then
7862 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7863 CPPFLAGS="$CPPFLAGS $i"
7869 if test "x$LIBS" = "x"; then
7870 test "x$silent" != "xyes" && echo " setting LIBS to \"-lc\""
7873 apr_addto_bugger="-lc"
7874 for i in $apr_addto_bugger; do
7875 apr_addto_duplicate="0"
7877 if test "x$i" = "x$j"; then
7878 apr_addto_duplicate="1"
7882 if test $apr_addto_duplicate = "0"; then
7883 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7892 if test "x$CPPFLAGS" = "x"; then
7893 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4 -DENCORE\""
7894 CPPFLAGS="-DSVR4 -DENCORE"
7896 apr_addto_bugger="-DSVR4 -DENCORE"
7897 for i in $apr_addto_bugger; do
7898 apr_addto_duplicate="0"
7899 for j in $CPPFLAGS; do
7900 if test "x$i" = "x$j"; then
7901 apr_addto_duplicate="1"
7905 if test $apr_addto_duplicate = "0"; then
7906 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7907 CPPFLAGS="$CPPFLAGS $i"
7913 if test "x$LIBS" = "x"; then
7914 test "x$silent" != "xyes" && echo " setting LIBS to \"-lPW\""
7917 apr_addto_bugger="-lPW"
7918 for i in $apr_addto_bugger; do
7919 apr_addto_duplicate="0"
7921 if test "x$i" = "x$j"; then
7922 apr_addto_duplicate="1"
7926 if test $apr_addto_duplicate = "0"; then
7927 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7935 PLATOSVERS=`echo $host | sed 's/^.*,//'`
7938 if test "x$CPPFLAGS" = "x"; then
7939 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DUTS21\""
7942 apr_addto_bugger="-DUTS21"
7943 for i in $apr_addto_bugger; do
7944 apr_addto_duplicate="0"
7945 for j in $CPPFLAGS; do
7946 if test "x$i" = "x$j"; then
7947 apr_addto_duplicate="1"
7951 if test $apr_addto_duplicate = "0"; then
7952 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7953 CPPFLAGS="$CPPFLAGS $i"
7959 if test "x$CFLAGS" = "x"; then
7960 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Xa -eft\""
7963 apr_addto_bugger="-Xa -eft"
7964 for i in $apr_addto_bugger; do
7965 apr_addto_duplicate="0"
7966 for j in $CFLAGS; do
7967 if test "x$i" = "x$j"; then
7968 apr_addto_duplicate="1"
7972 if test $apr_addto_duplicate = "0"; then
7973 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
7980 if test "x$LIBS" = "x"; then
7981 test "x$silent" != "xyes" && echo " setting LIBS to \"-lbsd -la\""
7984 apr_addto_bugger="-lbsd -la"
7985 for i in $apr_addto_bugger; do
7986 apr_addto_duplicate="0"
7988 if test "x$i" = "x$j"; then
7989 apr_addto_duplicate="1"
7993 if test $apr_addto_duplicate = "0"; then
7994 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
8002 if test "x$CPPFLAGS" = "x"; then
8003 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4\""
8006 apr_addto_bugger="-DSVR4"
8007 for i in $apr_addto_bugger; do
8008 apr_addto_duplicate="0"
8009 for j in $CPPFLAGS; do
8010 if test "x$i" = "x$j"; then
8011 apr_addto_duplicate="1"
8015 if test $apr_addto_duplicate = "0"; then
8016 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8017 CPPFLAGS="$CPPFLAGS $i"
8023 if test "x$CFLAGS" = "x"; then
8024 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Xa\""
8027 apr_addto_bugger="-Xa"
8028 for i in $apr_addto_bugger; do
8029 apr_addto_duplicate="0"
8030 for j in $CFLAGS; do
8031 if test "x$i" = "x$j"; then
8032 apr_addto_duplicate="1"
8036 if test $apr_addto_duplicate = "0"; then
8037 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
8048 if test "x$CPPFLAGS" = "x"; then
8049 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DULTRIX\""
8052 apr_addto_bugger="-DULTRIX"
8053 for i in $apr_addto_bugger; do
8054 apr_addto_duplicate="0"
8055 for j in $CPPFLAGS; do
8056 if test "x$i" = "x$j"; then
8057 apr_addto_duplicate="1"
8061 if test $apr_addto_duplicate = "0"; then
8062 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8063 CPPFLAGS="$CPPFLAGS $i"
8069 test "x$silent" != "xyes" && echo " forcing SHELL to \"/bin/sh5\""
8073 *powerpc-tenon-machten*)
8075 if test "x$LDFLAGS" = "x"; then
8076 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-Xlstack=0x14000 -Xldelcsect\""
8077 LDFLAGS="-Xlstack=0x14000 -Xldelcsect"
8079 apr_addto_bugger="-Xlstack=0x14000 -Xldelcsect"
8080 for i in $apr_addto_bugger; do
8081 apr_addto_duplicate="0"
8082 for j in $LDFLAGS; do
8083 if test "x$i" = "x$j"; then
8084 apr_addto_duplicate="1"
8088 if test $apr_addto_duplicate = "0"; then
8089 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
8090 LDFLAGS="$LDFLAGS $i"
8098 if test "x$LDFLAGS" = "x"; then
8099 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-stack 0x14000\""
8100 LDFLAGS="-stack 0x14000"
8102 apr_addto_bugger="-stack 0x14000"
8103 for i in $apr_addto_bugger; do
8104 apr_addto_duplicate="0"
8105 for j in $LDFLAGS; do
8106 if test "x$i" = "x$j"; then
8107 apr_addto_duplicate="1"
8111 if test $apr_addto_duplicate = "0"; then
8112 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
8113 LDFLAGS="$LDFLAGS $i"
8121 if test "x$CPPFLAGS" = "x"; then
8122 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DCONVEXOS11\""
8123 CPPFLAGS="-DCONVEXOS11"
8125 apr_addto_bugger="-DCONVEXOS11"
8126 for i in $apr_addto_bugger; do
8127 apr_addto_duplicate="0"
8128 for j in $CPPFLAGS; do
8129 if test "x$i" = "x$j"; then
8130 apr_addto_duplicate="1"
8134 if test $apr_addto_duplicate = "0"; then
8135 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8136 CPPFLAGS="$CPPFLAGS $i"
8142 if test -z "$CFLAGS"; then
8143 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-O1\""
8148 if test "x$CFLAGS" = "x"; then
8149 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-ext\""
8152 apr_addto_bugger="-ext"
8153 for i in $apr_addto_bugger; do
8154 apr_addto_duplicate="0"
8155 for j in $CFLAGS; do
8156 if test "x$i" = "x$j"; then
8157 apr_addto_duplicate="1"
8161 if test $apr_addto_duplicate = "0"; then
8162 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
8171 if test "x$CPPFLAGS" = "x"; then
8172 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DPARAGON\""
8173 CPPFLAGS="-DPARAGON"
8175 apr_addto_bugger="-DPARAGON"
8176 for i in $apr_addto_bugger; do
8177 apr_addto_duplicate="0"
8178 for j in $CPPFLAGS; do
8179 if test "x$i" = "x$j"; then
8180 apr_addto_duplicate="1"
8184 if test $apr_addto_duplicate = "0"; then
8185 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8186 CPPFLAGS="$CPPFLAGS $i"
8194 if test "x$CPPFLAGS" = "x"; then
8195 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSEQUENT=20\""
8196 CPPFLAGS="-DSEQUENT=20"
8198 apr_addto_bugger="-DSEQUENT=20"
8199 for i in $apr_addto_bugger; do
8200 apr_addto_duplicate="0"
8201 for j in $CPPFLAGS; do
8202 if test "x$i" = "x$j"; then
8203 apr_addto_duplicate="1"
8207 if test $apr_addto_duplicate = "0"; then
8208 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8209 CPPFLAGS="$CPPFLAGS $i"
8215 if test "x$CFLAGS" = "x"; then
8216 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Wc,-pw\""
8219 apr_addto_bugger="-Wc,-pw"
8220 for i in $apr_addto_bugger; do
8221 apr_addto_duplicate="0"
8222 for j in $CFLAGS; do
8223 if test "x$i" = "x$j"; then
8224 apr_addto_duplicate="1"
8228 if test $apr_addto_duplicate = "0"; then
8229 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
8236 if test "x$LIBS" = "x"; then
8237 test "x$silent" != "xyes" && echo " setting LIBS to \"-linet -lc -lseq\""
8238 LIBS="-linet -lc -lseq"
8240 apr_addto_bugger="-linet -lc -lseq"
8241 for i in $apr_addto_bugger; do
8242 apr_addto_duplicate="0"
8244 if test "x$i" = "x$j"; then
8245 apr_addto_duplicate="1"
8249 if test $apr_addto_duplicate = "0"; then
8250 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
8259 if test "x$CPPFLAGS" = "x"; then
8260 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSEQUENT=40\""
8261 CPPFLAGS="-DSEQUENT=40"
8263 apr_addto_bugger="-DSEQUENT=40"
8264 for i in $apr_addto_bugger; do
8265 apr_addto_duplicate="0"
8266 for j in $CPPFLAGS; do
8267 if test "x$i" = "x$j"; then
8268 apr_addto_duplicate="1"
8272 if test $apr_addto_duplicate = "0"; then
8273 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8274 CPPFLAGS="$CPPFLAGS $i"
8280 if test "x$CFLAGS" = "x"; then
8281 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Wc,-pw\""
8284 apr_addto_bugger="-Wc,-pw"
8285 for i in $apr_addto_bugger; do
8286 apr_addto_duplicate="0"
8287 for j in $CFLAGS; do
8288 if test "x$i" = "x$j"; then
8289 apr_addto_duplicate="1"
8293 if test $apr_addto_duplicate = "0"; then
8294 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
8301 if test "x$LIBS" = "x"; then
8302 test "x$silent" != "xyes" && echo " setting LIBS to \"-linet -lc\""
8305 apr_addto_bugger="-linet -lc"
8306 for i in $apr_addto_bugger; do
8307 apr_addto_duplicate="0"
8309 if test "x$i" = "x$j"; then
8310 apr_addto_duplicate="1"
8314 if test $apr_addto_duplicate = "0"; then
8315 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
8322 *-sequent-ptx4.[123].*)
8324 if test "x$CPPFLAGS" = "x"; then
8325 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSEQUENT=41\""
8326 CPPFLAGS="-DSEQUENT=41"
8328 apr_addto_bugger="-DSEQUENT=41"
8329 for i in $apr_addto_bugger; do
8330 apr_addto_duplicate="0"
8331 for j in $CPPFLAGS; do
8332 if test "x$i" = "x$j"; then
8333 apr_addto_duplicate="1"
8337 if test $apr_addto_duplicate = "0"; then
8338 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8339 CPPFLAGS="$CPPFLAGS $i"
8345 if test "x$CFLAGS" = "x"; then
8346 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Wc,-pw\""
8349 apr_addto_bugger="-Wc,-pw"
8350 for i in $apr_addto_bugger; do
8351 apr_addto_duplicate="0"
8352 for j in $CFLAGS; do
8353 if test "x$i" = "x$j"; then
8354 apr_addto_duplicate="1"
8358 if test $apr_addto_duplicate = "0"; then
8359 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
8366 if test "x$LIBS" = "x"; then
8367 test "x$silent" != "xyes" && echo " setting LIBS to \"-lc\""
8370 apr_addto_bugger="-lc"
8371 for i in $apr_addto_bugger; do
8372 apr_addto_duplicate="0"
8374 if test "x$i" = "x$j"; then
8375 apr_addto_duplicate="1"
8379 if test $apr_addto_duplicate = "0"; then
8380 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
8389 if test "x$CPPFLAGS" = "x"; then
8390 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSEQUENT=44\""
8391 CPPFLAGS="-DSEQUENT=44"
8393 apr_addto_bugger="-DSEQUENT=44"
8394 for i in $apr_addto_bugger; do
8395 apr_addto_duplicate="0"
8396 for j in $CPPFLAGS; do
8397 if test "x$i" = "x$j"; then
8398 apr_addto_duplicate="1"
8402 if test $apr_addto_duplicate = "0"; then
8403 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8404 CPPFLAGS="$CPPFLAGS $i"
8410 if test "x$CFLAGS" = "x"; then
8411 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Wc,-pw\""
8414 apr_addto_bugger="-Wc,-pw"
8415 for i in $apr_addto_bugger; do
8416 apr_addto_duplicate="0"
8417 for j in $CFLAGS; do
8418 if test "x$i" = "x$j"; then
8419 apr_addto_duplicate="1"
8423 if test $apr_addto_duplicate = "0"; then
8424 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
8431 if test "x$LIBS" = "x"; then
8432 test "x$silent" != "xyes" && echo " setting LIBS to \"-lc\""
8435 apr_addto_bugger="-lc"
8436 for i in $apr_addto_bugger; do
8437 apr_addto_duplicate="0"
8439 if test "x$i" = "x$j"; then
8440 apr_addto_duplicate="1"
8444 if test $apr_addto_duplicate = "0"; then
8445 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
8454 if test "x$CPPFLAGS" = "x"; then
8455 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSEQUENT=45\""
8456 CPPFLAGS="-DSEQUENT=45"
8458 apr_addto_bugger="-DSEQUENT=45"
8459 for i in $apr_addto_bugger; do
8460 apr_addto_duplicate="0"
8461 for j in $CPPFLAGS; do
8462 if test "x$i" = "x$j"; then
8463 apr_addto_duplicate="1"
8467 if test $apr_addto_duplicate = "0"; then
8468 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8469 CPPFLAGS="$CPPFLAGS $i"
8475 if test "x$CFLAGS" = "x"; then
8476 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Wc,-pw\""
8479 apr_addto_bugger="-Wc,-pw"
8480 for i in $apr_addto_bugger; do
8481 apr_addto_duplicate="0"
8482 for j in $CFLAGS; do
8483 if test "x$i" = "x$j"; then
8484 apr_addto_duplicate="1"
8488 if test $apr_addto_duplicate = "0"; then
8489 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
8496 if test "x$LIBS" = "x"; then
8497 test "x$silent" != "xyes" && echo " setting LIBS to \"-lc\""
8500 apr_addto_bugger="-lc"
8501 for i in $apr_addto_bugger; do
8502 apr_addto_duplicate="0"
8504 if test "x$i" = "x$j"; then
8505 apr_addto_duplicate="1"
8509 if test $apr_addto_duplicate = "0"; then
8510 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
8519 if test "x$CPPFLAGS" = "x"; then
8520 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSEQUENT=50\""
8521 CPPFLAGS="-DSEQUENT=50"
8523 apr_addto_bugger="-DSEQUENT=50"
8524 for i in $apr_addto_bugger; do
8525 apr_addto_duplicate="0"
8526 for j in $CPPFLAGS; do
8527 if test "x$i" = "x$j"; then
8528 apr_addto_duplicate="1"
8532 if test $apr_addto_duplicate = "0"; then
8533 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8534 CPPFLAGS="$CPPFLAGS $i"
8540 if test "x$CFLAGS" = "x"; then
8541 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Wc,-pw\""
8544 apr_addto_bugger="-Wc,-pw"
8545 for i in $apr_addto_bugger; do
8546 apr_addto_duplicate="0"
8547 for j in $CFLAGS; do
8548 if test "x$i" = "x$j"; then
8549 apr_addto_duplicate="1"
8553 if test $apr_addto_duplicate = "0"; then
8554 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
8561 if test "x$LIBS" = "x"; then
8562 test "x$silent" != "xyes" && echo " setting LIBS to \"-lc\""
8565 apr_addto_bugger="-lc"
8566 for i in $apr_addto_bugger; do
8567 apr_addto_duplicate="0"
8569 if test "x$i" = "x$j"; then
8570 apr_addto_duplicate="1"
8574 if test $apr_addto_duplicate = "0"; then
8575 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
8584 if test "x$CPPFLAGS" = "x"; then
8585 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DNEWSOS\""
8588 apr_addto_bugger="-DNEWSOS"
8589 for i in $apr_addto_bugger; do
8590 apr_addto_duplicate="0"
8591 for j in $CPPFLAGS; do
8592 if test "x$i" = "x$j"; then
8593 apr_addto_duplicate="1"
8597 if test $apr_addto_duplicate = "0"; then
8598 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8599 CPPFLAGS="$CPPFLAGS $i"
8607 if test "x$CPPFLAGS" = "x"; then
8608 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DRISCIX\""
8611 apr_addto_bugger="-DRISCIX"
8612 for i in $apr_addto_bugger; do
8613 apr_addto_duplicate="0"
8614 for j in $CPPFLAGS; do
8615 if test "x$i" = "x$j"; then
8616 apr_addto_duplicate="1"
8620 if test $apr_addto_duplicate = "0"; then
8621 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8622 CPPFLAGS="$CPPFLAGS $i"
8628 if test -z "$CFLAGS"; then
8629 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-O\""
8636 if test "x$CPPFLAGS" = "x"; then
8637 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_POSIX_THREAD_SAFE_FUNCTIONS\""
8638 CPPFLAGS="-D_POSIX_THREAD_SAFE_FUNCTIONS"
8640 apr_addto_bugger="-D_POSIX_THREAD_SAFE_FUNCTIONS"
8641 for i in $apr_addto_bugger; do
8642 apr_addto_duplicate="0"
8643 for j in $CPPFLAGS; do
8644 if test "x$i" = "x$j"; then
8645 apr_addto_duplicate="1"
8649 if test $apr_addto_duplicate = "0"; then
8650 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8651 CPPFLAGS="$CPPFLAGS $i"
8659 if test "x$CPPFLAGS" = "x"; then
8660 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DBEOS\""
8663 apr_addto_bugger="-DBEOS"
8664 for i in $apr_addto_bugger; do
8665 apr_addto_duplicate="0"
8666 for j in $CPPFLAGS; do
8667 if test "x$i" = "x$j"; then
8668 apr_addto_duplicate="1"
8672 if test $apr_addto_duplicate = "0"; then
8673 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8674 CPPFLAGS="$CPPFLAGS $i"
8679 PLATOSVERS=`uname -r`
8681 if test -z "$apr_process_lock_is_global"; then
8682 test "x$silent" != "xyes" && echo " setting apr_process_lock_is_global to \"yes\""
8683 apr_process_lock_is_global="yes"
8689 if test "x$LDFLAGS" = "x"; then
8690 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-L/boot/beos/system/lib\""
8691 LDFLAGS="-L/boot/beos/system/lib"
8693 apr_addto_bugger="-L/boot/beos/system/lib"
8694 for i in $apr_addto_bugger; do
8695 apr_addto_duplicate="0"
8696 for j in $LDFLAGS; do
8697 if test "x$i" = "x$j"; then
8698 apr_addto_duplicate="1"
8702 if test $apr_addto_duplicate = "0"; then
8703 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
8704 LDFLAGS="$LDFLAGS $i"
8710 if test "x$LIBS" = "x"; then
8711 test "x$silent" != "xyes" && echo " setting LIBS to \"-lbind -lsocket\""
8712 LIBS="-lbind -lsocket"
8714 apr_addto_bugger="-lbind -lsocket"
8715 for i in $apr_addto_bugger; do
8716 apr_addto_duplicate="0"
8718 if test "x$i" = "x$j"; then
8719 apr_addto_duplicate="1"
8723 if test $apr_addto_duplicate = "0"; then
8724 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
8731 if test "x$CPPFLAGS" = "x"; then
8732 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DBONE7\""
8735 apr_addto_bugger="-DBONE7"
8736 for i in $apr_addto_bugger; do
8737 apr_addto_duplicate="0"
8738 for j in $CPPFLAGS; do
8739 if test "x$i" = "x$j"; then
8740 apr_addto_duplicate="1"
8744 if test $apr_addto_duplicate = "0"; then
8745 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8746 CPPFLAGS="$CPPFLAGS $i"
8754 if test "x$LDFLAGS" = "x"; then
8755 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-L/boot/beos/system/lib\""
8756 LDFLAGS="-L/boot/beos/system/lib"
8758 apr_addto_bugger="-L/boot/beos/system/lib"
8759 for i in $apr_addto_bugger; do
8760 apr_addto_duplicate="0"
8761 for j in $LDFLAGS; do
8762 if test "x$i" = "x$j"; then
8763 apr_addto_duplicate="1"
8767 if test $apr_addto_duplicate = "0"; then
8768 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
8769 LDFLAGS="$LDFLAGS $i"
8775 if test "x$LIBS" = "x"; then
8776 test "x$silent" != "xyes" && echo " setting LIBS to \"-lbind -lsocket\""
8777 LIBS="-lbind -lsocket"
8779 apr_addto_bugger="-lbind -lsocket"
8780 for i in $apr_addto_bugger; do
8781 apr_addto_duplicate="0"
8783 if test "x$i" = "x$j"; then
8784 apr_addto_duplicate="1"
8788 if test $apr_addto_duplicate = "0"; then
8789 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
8798 if test "x$CPPFLAGS" = "x"; then
8799 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSIGPROCMASK_SETS_THREAD_MASK\""
8800 CPPFLAGS="-DSIGPROCMASK_SETS_THREAD_MASK"
8802 apr_addto_bugger="-DSIGPROCMASK_SETS_THREAD_MASK"
8803 for i in $apr_addto_bugger; do
8804 apr_addto_duplicate="0"
8805 for j in $CPPFLAGS; do
8806 if test "x$i" = "x$j"; then
8807 apr_addto_duplicate="1"
8811 if test $apr_addto_duplicate = "0"; then
8812 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8813 CPPFLAGS="$CPPFLAGS $i"
8821 if test "x$CPPFLAGS" = "x"; then
8822 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4 -DMPRAS\""
8823 CPPFLAGS="-DSVR4 -DMPRAS"
8825 apr_addto_bugger="-DSVR4 -DMPRAS"
8826 for i in $apr_addto_bugger; do
8827 apr_addto_duplicate="0"
8828 for j in $CPPFLAGS; do
8829 if test "x$i" = "x$j"; then
8830 apr_addto_duplicate="1"
8834 if test $apr_addto_duplicate = "0"; then
8835 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8836 CPPFLAGS="$CPPFLAGS $i"
8842 if test "x$LIBS" = "x"; then
8843 test "x$silent" != "xyes" && echo " setting LIBS to \"-lc -L/usr/ucblib -lucb\""
8844 LIBS="-lc -L/usr/ucblib -lucb"
8846 apr_addto_bugger="-lc -L/usr/ucblib -lucb"
8847 for i in $apr_addto_bugger; do
8848 apr_addto_duplicate="0"
8850 if test "x$i" = "x$j"; then
8851 apr_addto_duplicate="1"
8855 if test $apr_addto_duplicate = "0"; then
8856 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
8865 if test "x$CPPFLAGS" = "x"; then
8866 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4\""
8869 apr_addto_bugger="-DSVR4"
8870 for i in $apr_addto_bugger; do
8871 apr_addto_duplicate="0"
8872 for j in $CPPFLAGS; do
8873 if test "x$i" = "x$j"; then
8874 apr_addto_duplicate="1"
8878 if test $apr_addto_duplicate = "0"; then
8879 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8880 CPPFLAGS="$CPPFLAGS $i"
8886 if test "x$LIBS" = "x"; then
8887 test "x$silent" != "xyes" && echo " setting LIBS to \"-lc -L/usr/ucblib -lucb\""
8888 LIBS="-lc -L/usr/ucblib -lucb"
8890 apr_addto_bugger="-lc -L/usr/ucblib -lucb"
8891 for i in $apr_addto_bugger; do
8892 apr_addto_duplicate="0"
8894 if test "x$i" = "x$j"; then
8895 apr_addto_duplicate="1"
8899 if test $apr_addto_duplicate = "0"; then
8900 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
8909 if test "x$CPPFLAGS" = "x"; then
8910 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_CX_SX\""
8913 apr_addto_bugger="-D_CX_SX"
8914 for i in $apr_addto_bugger; do
8915 apr_addto_duplicate="0"
8916 for j in $CPPFLAGS; do
8917 if test "x$i" = "x$j"; then
8918 apr_addto_duplicate="1"
8922 if test $apr_addto_duplicate = "0"; then
8923 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8924 CPPFLAGS="$CPPFLAGS $i"
8930 if test "x$CFLAGS" = "x"; then
8931 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Xa\""
8934 apr_addto_bugger="-Xa"
8935 for i in $apr_addto_bugger; do
8936 apr_addto_duplicate="0"
8937 for j in $CFLAGS; do
8938 if test "x$i" = "x$j"; then
8939 apr_addto_duplicate="1"
8943 if test $apr_addto_duplicate = "0"; then
8944 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
8953 if test "x$CPPFLAGS" = "x"; then
8954 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_TANDEM_SOURCE -D_XOPEN_SOURCE_EXTENDED=1\""
8955 CPPFLAGS="-D_TANDEM_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
8957 apr_addto_bugger="-D_TANDEM_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
8958 for i in $apr_addto_bugger; do
8959 apr_addto_duplicate="0"
8960 for j in $CPPFLAGS; do
8961 if test "x$i" = "x$j"; then
8962 apr_addto_duplicate="1"
8966 if test $apr_addto_duplicate = "0"; then
8967 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8968 CPPFLAGS="$CPPFLAGS $i"
8976 if test -z "$apr_lock_method"; then
8977 test "x$silent" != "xyes" && echo " setting apr_lock_method to \"USE_SYSVSEM_SERIALIZE\""
8978 apr_lock_method="USE_SYSVSEM_SERIALIZE"
8982 if test -z "$apr_sysvsem_is_global"; then
8983 test "x$silent" != "xyes" && echo " setting apr_sysvsem_is_global to \"yes\""
8984 apr_sysvsem_is_global="yes"
8988 if test -z "$apr_gethostbyname_is_thread_safe"; then
8989 test "x$silent" != "xyes" && echo " setting apr_gethostbyname_is_thread_safe to \"yes\""
8990 apr_gethostbyname_is_thread_safe="yes"
8994 if test -z "$apr_gethostbyaddr_is_thread_safe"; then
8995 test "x$silent" != "xyes" && echo " setting apr_gethostbyaddr_is_thread_safe to \"yes\""
8996 apr_gethostbyaddr_is_thread_safe="yes"
9000 if test -z "$apr_getservbyname_is_thread_safe"; then
9001 test "x$silent" != "xyes" && echo " setting apr_getservbyname_is_thread_safe to \"yes\""
9002 apr_getservbyname_is_thread_safe="yes"
9006 $as_echo "#define HAVE_ZOS_PTHREADS 1" >>confdefs.h
9009 if test "x$CPPFLAGS" = "x"; then
9010 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-U_NO_PROTO -DSIGPROCMASK_SETS_THREAD_MASK -DTCP_NODELAY=1\""
9011 CPPFLAGS="-U_NO_PROTO -DSIGPROCMASK_SETS_THREAD_MASK -DTCP_NODELAY=1"
9013 apr_addto_bugger="-U_NO_PROTO -DSIGPROCMASK_SETS_THREAD_MASK -DTCP_NODELAY=1"
9014 for i in $apr_addto_bugger; do
9015 apr_addto_duplicate="0"
9016 for j in $CPPFLAGS; do
9017 if test "x$i" = "x$j"; then
9018 apr_addto_duplicate="1"
9022 if test $apr_addto_duplicate = "0"; then
9023 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
9024 CPPFLAGS="$CPPFLAGS $i"
9032 if test -z "$apr_lock_method"; then
9033 test "x$silent" != "xyes" && echo " setting apr_lock_method to \"USE_SYSVSEM_SERIALIZE\""
9034 apr_lock_method="USE_SYSVSEM_SERIALIZE"
9038 if test -z "$apr_process_lock_is_global"; then
9039 test "x$silent" != "xyes" && echo " setting apr_process_lock_is_global to \"yes\""
9040 apr_process_lock_is_global="yes"
9044 if test -z "$apr_gethostbyname_is_thread_safe"; then
9045 test "x$silent" != "xyes" && echo " setting apr_gethostbyname_is_thread_safe to \"yes\""
9046 apr_gethostbyname_is_thread_safe="yes"
9050 if test -z "$apr_gethostbyaddr_is_thread_safe"; then
9051 test "x$silent" != "xyes" && echo " setting apr_gethostbyaddr_is_thread_safe to \"yes\""
9052 apr_gethostbyaddr_is_thread_safe="yes"
9056 if test -z "$apr_getservbyname_is_thread_safe"; then
9057 test "x$silent" != "xyes" && echo " setting apr_getservbyname_is_thread_safe to \"yes\""
9058 apr_getservbyname_is_thread_safe="yes"
9064 if test "x$CPPFLAGS" = "x"; then
9065 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DCYGWIN\""
9068 apr_addto_bugger="-DCYGWIN"
9069 for i in $apr_addto_bugger; do
9070 apr_addto_duplicate="0"
9071 for j in $CPPFLAGS; do
9072 if test "x$i" = "x$j"; then
9073 apr_addto_duplicate="1"
9077 if test $apr_addto_duplicate = "0"; then
9078 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
9079 CPPFLAGS="$CPPFLAGS $i"
9087 if test "x$CPPFLAGS" = "x"; then
9088 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DWIN32 -D__MSVCRT__\""
9089 CPPFLAGS="-DWIN32 -D__MSVCRT__"
9091 apr_addto_bugger="-DWIN32 -D__MSVCRT__"
9092 for i in $apr_addto_bugger; do
9093 apr_addto_duplicate="0"
9094 for j in $CPPFLAGS; do
9095 if test "x$i" = "x$j"; then
9096 apr_addto_duplicate="1"
9100 if test $apr_addto_duplicate = "0"; then
9101 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
9102 CPPFLAGS="$CPPFLAGS $i"
9108 if test "x$LDFLAGS" = "x"; then
9109 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-Wl,--enable-auto-import,--subsystem,console\""
9110 LDFLAGS="-Wl,--enable-auto-import,--subsystem,console"
9112 apr_addto_bugger="-Wl,--enable-auto-import,--subsystem,console"
9113 for i in $apr_addto_bugger; do
9114 apr_addto_duplicate="0"
9115 for j in $LDFLAGS; do
9116 if test "x$i" = "x$j"; then
9117 apr_addto_duplicate="1"
9121 if test $apr_addto_duplicate = "0"; then
9122 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
9123 LDFLAGS="$LDFLAGS $i"
9129 if test -z "$have_unicode_fs"; then
9130 test "x$silent" != "xyes" && echo " setting have_unicode_fs to \"1\""
9135 if test -z "$have_proc_invoked"; then
9136 test "x$silent" != "xyes" && echo " setting have_proc_invoked to \"1\""
9137 have_proc_invoked="1"
9141 if test -z "$apr_lock_method"; then
9142 test "x$silent" != "xyes" && echo " setting apr_lock_method to \"win32\""
9143 apr_lock_method="win32"
9147 if test -z "$apr_process_lock_is_global"; then
9148 test "x$silent" != "xyes" && echo " setting apr_process_lock_is_global to \"yes\""
9149 apr_process_lock_is_global="yes"
9153 if test -z "$apr_cv_use_lfs64"; then
9154 test "x$silent" != "xyes" && echo " setting apr_cv_use_lfs64 to \"yes\""
9155 apr_cv_use_lfs64="yes"
9159 if test -z "$apr_cv_osuuid"; then
9160 test "x$silent" != "xyes" && echo " setting apr_cv_osuuid to \"yes\""
9165 if test -z "$apr_cv_tcp_nodelay_with_cork"; then
9166 test "x$silent" != "xyes" && echo " setting apr_cv_tcp_nodelay_with_cork to \"no\""
9167 apr_cv_tcp_nodelay_with_cork="no"
9171 if test -z "$apr_thread_func"; then
9172 test "x$silent" != "xyes" && echo " setting apr_thread_func to \"__stdcall\""
9173 apr_thread_func="__stdcall"
9177 if test -z "$ac_cv_o_nonblock_inherited"; then
9178 test "x$silent" != "xyes" && echo " setting ac_cv_o_nonblock_inherited to \"yes\""
9179 ac_cv_o_nonblock_inherited="yes"
9183 if test -z "$ac_cv_tcp_nodelay_inherited"; then
9184 test "x$silent" != "xyes" && echo " setting ac_cv_tcp_nodelay_inherited to \"yes\""
9185 ac_cv_tcp_nodelay_inherited="yes"
9189 if test -z "$ac_cv_file__dev_zero"; then
9190 test "x$silent" != "xyes" && echo " setting ac_cv_file__dev_zero to \"no\""
9191 ac_cv_file__dev_zero="no"
9195 if test -z "$ac_cv_func_setpgrp_void"; then
9196 test "x$silent" != "xyes" && echo " setting ac_cv_func_setpgrp_void to \"no\""
9197 ac_cv_func_setpgrp_void="no"
9201 if test -z "$ac_cv_func_mmap"; then
9202 test "x$silent" != "xyes" && echo " setting ac_cv_func_mmap to \"yes\""
9203 ac_cv_func_mmap="yes"
9207 if test -z "$ac_cv_define_sockaddr_in6"; then
9208 test "x$silent" != "xyes" && echo " setting ac_cv_define_sockaddr_in6 to \"yes\""
9209 ac_cv_define_sockaddr_in6="yes"
9213 if test -z "$ac_cv_working_getaddrinfo"; then
9214 test "x$silent" != "xyes" && echo " setting ac_cv_working_getaddrinfo to \"yes\""
9215 ac_cv_working_getaddrinfo="yes"
9219 if test -z "$ac_cv_working_getnameinfo"; then
9220 test "x$silent" != "xyes" && echo " setting ac_cv_working_getnameinfo to \"yes\""
9221 ac_cv_working_getnameinfo="yes"
9225 if test -z "$ac_cv_func_gai_strerror"; then
9226 test "x$silent" != "xyes" && echo " setting ac_cv_func_gai_strerror to \"yes\""
9227 ac_cv_func_gai_strerror="yes"
9233 if test -z "$apr_has_xthread_files"; then
9234 test "x$silent" != "xyes" && echo " setting apr_has_xthread_files to \"1\""
9235 apr_has_xthread_files="1"
9239 if test -z "$apr_has_user"; then
9240 test "x$silent" != "xyes" && echo " setting apr_has_user to \"1\""
9245 if test -z "$apr_procattr_user_set_requires_password"; then
9246 test "x$silent" != "xyes" && echo " setting apr_procattr_user_set_requires_password to \"1\""
9247 apr_procattr_user_set_requires_password="1"
9251 if test -z "$ac_cv_func_sendfile"; then
9252 test "x$silent" != "xyes" && echo " setting ac_cv_func_sendfile to \"yes\""
9253 ac_cv_func_sendfile="yes"
9259 if test -z "$apr_has_xthread_files"; then
9260 test "x$silent" != "xyes" && echo " setting apr_has_xthread_files to \"0\""
9261 apr_has_xthread_files="0"
9265 if test -z "$apr_has_user"; then
9266 test "x$silent" != "xyes" && echo " setting apr_has_user to \"0\""
9271 if test -z "$apr_procattr_user_set_requires_password"; then
9272 test "x$silent" != "xyes" && echo " setting apr_procattr_user_set_requires_password to \"0\""
9273 apr_procattr_user_set_requires_password="0"
9277 if test -z "$ac_cv_func_sendfile"; then
9278 test "x$silent" != "xyes" && echo " setting ac_cv_func_sendfile to \"no\""
9279 ac_cv_func_sendfile="no"
9290 DEFAULT_OSDIR="unix"
9291 echo "(Default will be ${DEFAULT_OSDIR})"
9293 apr_modules="file_io network_io threadproc misc locks time mmap shmem user memory atomic poll support random"
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9296 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9298 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9299 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
9300 $as_echo_n "(cached) " >&6
9302 cat >conftest.make <<\_ACEOF
9305 @echo '@@@%%%=$(MAKE)=@@@%%%'
9307 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
9308 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9310 eval ac_cv_prog_make_${ac_make}_set=yes;;
9312 eval ac_cv_prog_make_${ac_make}_set=no;;
9316 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9318 $as_echo "yes" >&6; }
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9322 $as_echo "no" >&6; }
9323 SET_MAKE="MAKE=${MAKE-make}"
9327 ac_cpp='$CPP $CPPFLAGS'
9328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9332 $as_echo_n "checking how to run the C preprocessor... " >&6; }
9333 # On Suns, sometimes $CPP names a directory.
9334 if test -n "$CPP" && test -d "$CPP"; then
9337 if test -z "$CPP"; then
9338 if ${ac_cv_prog_CPP+:} false; then :
9339 $as_echo_n "(cached) " >&6
9341 # Double quotes because CPP needs to be expanded
9342 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9345 for ac_c_preproc_warn_flag in '' yes
9347 # Use a header file that comes with gcc, so configuring glibc
9348 # with a fresh cross-compiler works.
9349 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9350 # <limits.h> exists even on freestanding compilers.
9351 # On the NeXT, cc -E runs the code through the compiler's parser,
9352 # not just through cpp. "Syntax error" is here to catch this case.
9353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9354 /* end confdefs.h. */
9356 # include <limits.h>
9358 # include <assert.h>
9362 if ac_fn_c_try_cpp "$LINENO"; then :
9365 # Broken: fails on valid input.
9368 rm -f conftest.err conftest.i conftest.$ac_ext
9370 # OK, works on sane cases. Now check whether nonexistent headers
9371 # can be detected and how.
9372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9373 /* end confdefs.h. */
9374 #include <ac_nonexistent.h>
9376 if ac_fn_c_try_cpp "$LINENO"; then :
9377 # Broken: success on invalid input.
9380 # Passes both tests.
9384 rm -f conftest.err conftest.i conftest.$ac_ext
9387 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9388 rm -f conftest.i conftest.err conftest.$ac_ext
9389 if $ac_preproc_ok; then :
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9402 $as_echo "$CPP" >&6; }
9404 for ac_c_preproc_warn_flag in '' yes
9406 # Use a header file that comes with gcc, so configuring glibc
9407 # with a fresh cross-compiler works.
9408 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9409 # <limits.h> exists even on freestanding compilers.
9410 # On the NeXT, cc -E runs the code through the compiler's parser,
9411 # not just through cpp. "Syntax error" is here to catch this case.
9412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9413 /* end confdefs.h. */
9415 # include <limits.h>
9417 # include <assert.h>
9421 if ac_fn_c_try_cpp "$LINENO"; then :
9424 # Broken: fails on valid input.
9427 rm -f conftest.err conftest.i conftest.$ac_ext
9429 # OK, works on sane cases. Now check whether nonexistent headers
9430 # can be detected and how.
9431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9432 /* end confdefs.h. */
9433 #include <ac_nonexistent.h>
9435 if ac_fn_c_try_cpp "$LINENO"; then :
9436 # Broken: success on invalid input.
9439 # Passes both tests.
9443 rm -f conftest.err conftest.i conftest.$ac_ext
9446 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9447 rm -f conftest.i conftest.err conftest.$ac_ext
9448 if $ac_preproc_ok; then :
9451 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9453 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
9454 See \`config.log' for more details" "$LINENO" 5; }
9458 ac_cpp='$CPP $CPPFLAGS'
9459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9463 for ac_prog in gawk mawk nawk awk
9465 # Extract the first word of "$ac_prog", so it can be a program name with args.
9466 set dummy $ac_prog; ac_word=$2
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9468 $as_echo_n "checking for $ac_word... " >&6; }
9469 if ${ac_cv_prog_AWK+:} false; then :
9470 $as_echo_n "(cached) " >&6
9472 if test -n "$AWK"; then
9473 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9479 test -z "$as_dir" && as_dir=.
9480 for ac_exec_ext in '' $ac_executable_extensions; do
9481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9482 ac_cv_prog_AWK="$ac_prog"
9483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9493 if test -n "$AWK"; then
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9495 $as_echo "$AWK" >&6; }
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9498 $as_echo "no" >&6; }
9502 test -n "$AWK" && break
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9506 $as_echo_n "checking whether ln -s works... " >&6; }
9508 if test "$LN_S" = "ln -s"; then
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9510 $as_echo "yes" >&6; }
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9513 $as_echo "no, using $LN_S" >&6; }
9516 if test -n "$ac_tool_prefix"; then
9517 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9518 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9520 $as_echo_n "checking for $ac_word... " >&6; }
9521 if ${ac_cv_prog_RANLIB+:} false; then :
9522 $as_echo_n "(cached) " >&6
9524 if test -n "$RANLIB"; then
9525 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9531 test -z "$as_dir" && as_dir=.
9532 for ac_exec_ext in '' $ac_executable_extensions; do
9533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9534 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9544 RANLIB=$ac_cv_prog_RANLIB
9545 if test -n "$RANLIB"; then
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9547 $as_echo "$RANLIB" >&6; }
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9550 $as_echo "no" >&6; }
9555 if test -z "$ac_cv_prog_RANLIB"; then
9556 ac_ct_RANLIB=$RANLIB
9557 # Extract the first word of "ranlib", so it can be a program name with args.
9558 set dummy ranlib; ac_word=$2
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9560 $as_echo_n "checking for $ac_word... " >&6; }
9561 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9562 $as_echo_n "(cached) " >&6
9564 if test -n "$ac_ct_RANLIB"; then
9565 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9571 test -z "$as_dir" && as_dir=.
9572 for ac_exec_ext in '' $ac_executable_extensions; do
9573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9574 ac_cv_prog_ac_ct_RANLIB="ranlib"
9575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9584 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9585 if test -n "$ac_ct_RANLIB"; then
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9587 $as_echo "$ac_ct_RANLIB" >&6; }
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9590 $as_echo "no" >&6; }
9593 if test "x$ac_ct_RANLIB" = x; then
9596 case $cross_compiling:$ac_tool_warned in
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9599 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9600 ac_tool_warned=yes ;;
9602 RANLIB=$ac_ct_RANLIB
9605 RANLIB="$ac_cv_prog_RANLIB"
9608 # Find a good install program. We prefer a C program (faster),
9609 # so one script is as good as another. But avoid the broken or
9610 # incompatible versions:
9611 # SysV /etc/install, /usr/sbin/install
9612 # SunOS /usr/etc/install
9613 # IRIX /sbin/install
9615 # AmigaOS /C/install, which installs bootblocks on floppy discs
9616 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9617 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9618 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9619 # OS/2's system install, which has a completely different semantic
9620 # ./install, which can be erroneously created by make from ./install.sh.
9621 # Reject install programs that cannot install multiple files.
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
9623 $as_echo_n "checking for a BSD-compatible install... " >&6; }
9624 if test -z "$INSTALL"; then
9625 if ${ac_cv_path_install+:} false; then :
9626 $as_echo_n "(cached) " >&6
9628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9632 test -z "$as_dir" && as_dir=.
9633 # Account for people who put trailing slashes in PATH elements.
9634 case $as_dir/ in #((
9635 ./ | .// | /[cC]/* | \
9636 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9637 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
9640 # OSF1 and SCO ODT 3.0 have their own names for install.
9641 # Don't use installbsd from OSF since it installs stuff as root
9643 for ac_prog in ginstall scoinst install; do
9644 for ac_exec_ext in '' $ac_executable_extensions; do
9645 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9646 if test $ac_prog = install &&
9647 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9648 # AIX install. It has an incompatible calling convention.
9650 elif test $ac_prog = install &&
9651 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9652 # program-specific install script used by HP pwplus--don't use.
9655 rm -rf conftest.one conftest.two conftest.dir
9656 echo one > conftest.one
9657 echo two > conftest.two
9659 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
9660 test -s conftest.one && test -s conftest.two &&
9661 test -s conftest.dir/conftest.one &&
9662 test -s conftest.dir/conftest.two
9664 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9677 rm -rf conftest.one conftest.two conftest.dir
9680 if test "${ac_cv_path_install+set}" = set; then
9681 INSTALL=$ac_cv_path_install
9683 # As a last resort, use the slow shell script. Don't cache a
9684 # value for INSTALL within a source directory, because that will
9685 # break other packages using the cache if that directory is
9686 # removed, or if the value is a relative name.
9687 INSTALL=$ac_install_sh
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
9691 $as_echo "$INSTALL" >&6; }
9693 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9694 # It thinks the first close brace ends the variable substitution.
9695 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9697 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9699 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9701 # Extract the first word of "rm", so it can be a program name with args.
9702 set dummy rm; ac_word=$2
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9704 $as_echo_n "checking for $ac_word... " >&6; }
9705 if ${ac_cv_prog_RM+:} false; then :
9706 $as_echo_n "(cached) " >&6
9708 if test -n "$RM"; then
9709 ac_cv_prog_RM="$RM" # Let the user override the test.
9711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9715 test -z "$as_dir" && as_dir=.
9716 for ac_exec_ext in '' $ac_executable_extensions; do
9717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9729 if test -n "$RM"; then
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9731 $as_echo "$RM" >&6; }
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9734 $as_echo "no" >&6; }
9738 # Extract the first word of "as", so it can be a program name with args.
9739 set dummy as; ac_word=$2
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9741 $as_echo_n "checking for $ac_word... " >&6; }
9742 if ${ac_cv_prog_AS+:} false; then :
9743 $as_echo_n "(cached) " >&6
9745 if test -n "$AS"; then
9746 ac_cv_prog_AS="$AS" # Let the user override the test.
9748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9752 test -z "$as_dir" && as_dir=.
9753 for ac_exec_ext in '' $ac_executable_extensions; do
9754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9766 if test -n "$AS"; then
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9768 $as_echo "$AS" >&6; }
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9771 $as_echo "no" >&6; }
9775 # Extract the first word of "cpp", so it can be a program name with args.
9776 set dummy cpp; ac_word=$2
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9778 $as_echo_n "checking for $ac_word... " >&6; }
9779 if ${ac_cv_prog_ASCPP+:} false; then :
9780 $as_echo_n "(cached) " >&6
9782 if test -n "$ASCPP"; then
9783 ac_cv_prog_ASCPP="$ASCPP" # Let the user override the test.
9785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9789 test -z "$as_dir" && as_dir=.
9790 for ac_exec_ext in '' $ac_executable_extensions; do
9791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9792 ac_cv_prog_ASCPP="cpp"
9793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9802 ASCPP=$ac_cv_prog_ASCPP
9803 if test -n "$ASCPP"; then
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCPP" >&5
9805 $as_echo "$ASCPP" >&6; }
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9808 $as_echo "no" >&6; }
9812 if test -n "$ac_tool_prefix"; then
9813 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9814 set dummy ${ac_tool_prefix}ar; ac_word=$2
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9816 $as_echo_n "checking for $ac_word... " >&6; }
9817 if ${ac_cv_prog_AR+:} false; then :
9818 $as_echo_n "(cached) " >&6
9820 if test -n "$AR"; then
9821 ac_cv_prog_AR="$AR" # Let the user override the test.
9823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9827 test -z "$as_dir" && as_dir=.
9828 for ac_exec_ext in '' $ac_executable_extensions; do
9829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9830 ac_cv_prog_AR="${ac_tool_prefix}ar"
9831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9841 if test -n "$AR"; then
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9843 $as_echo "$AR" >&6; }
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9846 $as_echo "no" >&6; }
9851 if test -z "$ac_cv_prog_AR"; then
9853 # Extract the first word of "ar", so it can be a program name with args.
9854 set dummy ar; ac_word=$2
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9856 $as_echo_n "checking for $ac_word... " >&6; }
9857 if ${ac_cv_prog_ac_ct_AR+:} false; then :
9858 $as_echo_n "(cached) " >&6
9860 if test -n "$ac_ct_AR"; then
9861 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9867 test -z "$as_dir" && as_dir=.
9868 for ac_exec_ext in '' $ac_executable_extensions; do
9869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9870 ac_cv_prog_ac_ct_AR="ar"
9871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9880 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9881 if test -n "$ac_ct_AR"; then
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9883 $as_echo "$ac_ct_AR" >&6; }
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9886 $as_echo "no" >&6; }
9889 if test "x$ac_ct_AR" = x; then
9892 case $cross_compiling:$ac_tool_warned in
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9895 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9896 ac_tool_warned=yes ;;
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
9909 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
9910 if ${ac_cv_path_GREP+:} false; then :
9911 $as_echo_n "(cached) " >&6
9913 if test -z "$GREP"; then
9914 ac_path_GREP_found=false
9915 # Loop through the user's path and test for each of PROGNAME-LIST
9916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9917 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9920 test -z "$as_dir" && as_dir=.
9921 for ac_prog in grep ggrep; do
9922 for ac_exec_ext in '' $ac_executable_extensions; do
9923 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
9924 as_fn_executable_p "$ac_path_GREP" || continue
9925 # Check for GNU ac_path_GREP and select it if it is found.
9926 # Check for GNU $ac_path_GREP
9927 case `"$ac_path_GREP" --version 2>&1` in
9929 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
9932 $as_echo_n 0123456789 >"conftest.in"
9935 cat "conftest.in" "conftest.in" >"conftest.tmp"
9936 mv "conftest.tmp" "conftest.in"
9937 cp "conftest.in" "conftest.nl"
9938 $as_echo 'GREP' >> "conftest.nl"
9939 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9940 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9941 as_fn_arith $ac_count + 1 && ac_count=$as_val
9942 if test $ac_count -gt ${ac_path_GREP_max-0}; then
9943 # Best one so far, save it but keep looking for a better one
9944 ac_cv_path_GREP="$ac_path_GREP"
9945 ac_path_GREP_max=$ac_count
9947 # 10*(2^10) chars as input seems more than enough
9948 test $ac_count -gt 10 && break
9950 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9953 $ac_path_GREP_found && break 3
9958 if test -z "$ac_cv_path_GREP"; then
9959 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9962 ac_cv_path_GREP=$GREP
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
9967 $as_echo "$ac_cv_path_GREP" >&6; }
9968 GREP="$ac_cv_path_GREP"
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9972 $as_echo_n "checking for egrep... " >&6; }
9973 if ${ac_cv_path_EGREP+:} false; then :
9974 $as_echo_n "(cached) " >&6
9976 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9977 then ac_cv_path_EGREP="$GREP -E"
9979 if test -z "$EGREP"; then
9980 ac_path_EGREP_found=false
9981 # Loop through the user's path and test for each of PROGNAME-LIST
9982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9983 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9986 test -z "$as_dir" && as_dir=.
9987 for ac_prog in egrep; do
9988 for ac_exec_ext in '' $ac_executable_extensions; do
9989 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9990 as_fn_executable_p "$ac_path_EGREP" || continue
9991 # Check for GNU ac_path_EGREP and select it if it is found.
9992 # Check for GNU $ac_path_EGREP
9993 case `"$ac_path_EGREP" --version 2>&1` in
9995 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9998 $as_echo_n 0123456789 >"conftest.in"
10001 cat "conftest.in" "conftest.in" >"conftest.tmp"
10002 mv "conftest.tmp" "conftest.in"
10003 cp "conftest.in" "conftest.nl"
10004 $as_echo 'EGREP' >> "conftest.nl"
10005 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
10006 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10007 as_fn_arith $ac_count + 1 && ac_count=$as_val
10008 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
10009 # Best one so far, save it but keep looking for a better one
10010 ac_cv_path_EGREP="$ac_path_EGREP"
10011 ac_path_EGREP_max=$ac_count
10013 # 10*(2^10) chars as input seems more than enough
10014 test $ac_count -gt 10 && break
10016 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10019 $ac_path_EGREP_found && break 3
10024 if test -z "$ac_cv_path_EGREP"; then
10025 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10028 ac_cv_path_EGREP=$EGREP
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
10034 $as_echo "$ac_cv_path_EGREP" >&6; }
10035 EGREP="$ac_cv_path_EGREP"
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10039 $as_echo_n "checking for ANSI C header files... " >&6; }
10040 if ${ac_cv_header_stdc+:} false; then :
10041 $as_echo_n "(cached) " >&6
10043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10044 /* end confdefs.h. */
10045 #include <stdlib.h>
10046 #include <stdarg.h>
10047 #include <string.h>
10058 if ac_fn_c_try_compile "$LINENO"; then :
10059 ac_cv_header_stdc=yes
10061 ac_cv_header_stdc=no
10063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10065 if test $ac_cv_header_stdc = yes; then
10066 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10068 /* end confdefs.h. */
10069 #include <string.h>
10072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10073 $EGREP "memchr" >/dev/null 2>&1; then :
10076 ac_cv_header_stdc=no
10082 if test $ac_cv_header_stdc = yes; then
10083 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10085 /* end confdefs.h. */
10086 #include <stdlib.h>
10089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10090 $EGREP "free" >/dev/null 2>&1; then :
10093 ac_cv_header_stdc=no
10099 if test $ac_cv_header_stdc = yes; then
10100 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10101 if test "$cross_compiling" = yes; then :
10104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10105 /* end confdefs.h. */
10107 #include <stdlib.h>
10108 #if ((' ' & 0x0FF) == 0x020)
10109 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10110 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10112 # define ISLOWER(c) \
10113 (('a' <= (c) && (c) <= 'i') \
10114 || ('j' <= (c) && (c) <= 'r') \
10115 || ('s' <= (c) && (c) <= 'z'))
10116 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10119 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10124 for (i = 0; i < 256; i++)
10125 if (XOR (islower (i), ISLOWER (i))
10126 || toupper (i) != TOUPPER (i))
10131 if ac_fn_c_try_run "$LINENO"; then :
10134 ac_cv_header_stdc=no
10136 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10137 conftest.$ac_objext conftest.beam conftest.$ac_ext
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10143 $as_echo "$ac_cv_header_stdc" >&6; }
10144 if test $ac_cv_header_stdc = yes; then
10146 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10150 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10151 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10152 inttypes.h stdint.h unistd.h
10154 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10155 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10157 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10158 cat >>confdefs.h <<_ACEOF
10159 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10168 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
10169 if test "x$ac_cv_header_minix_config_h" = xyes; then :
10176 if test "$MINIX" = yes; then
10178 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
10181 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
10184 $as_echo "#define _MINIX 1" >>confdefs.h
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
10190 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
10191 if ${ac_cv_safe_to_define___extensions__+:} false; then :
10192 $as_echo_n "(cached) " >&6
10194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10195 /* end confdefs.h. */
10197 # define __EXTENSIONS__ 1
10198 $ac_includes_default
10207 if ac_fn_c_try_compile "$LINENO"; then :
10208 ac_cv_safe_to_define___extensions__=yes
10210 ac_cv_safe_to_define___extensions__=no
10212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
10215 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
10216 test $ac_cv_safe_to_define___extensions__ = yes &&
10217 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
10219 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
10221 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
10223 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
10225 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
10231 $as_echo_n "checking for library containing strerror... " >&6; }
10232 if ${ac_cv_search_strerror+:} false; then :
10233 $as_echo_n "(cached) " >&6
10235 ac_func_search_save_LIBS=$LIBS
10236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10237 /* end confdefs.h. */
10239 /* Override any GCC internal prototype to avoid an error.
10240 Use char because int might match the return type of a GCC
10241 builtin and then its argument prototype would still apply. */
10249 return strerror ();
10254 for ac_lib in '' cposix; do
10255 if test -z "$ac_lib"; then
10256 ac_res="none required"
10259 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10261 if ac_fn_c_try_link "$LINENO"; then :
10262 ac_cv_search_strerror=$ac_res
10264 rm -f core conftest.err conftest.$ac_objext \
10266 if ${ac_cv_search_strerror+:} false; then :
10270 if ${ac_cv_search_strerror+:} false; then :
10273 ac_cv_search_strerror=no
10275 rm conftest.$ac_ext
10276 LIBS=$ac_func_search_save_LIBS
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
10279 $as_echo "$ac_cv_search_strerror" >&6; }
10280 ac_res=$ac_cv_search_strerror
10281 if test "$ac_res" != no; then :
10282 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system uses EBCDIC" >&5
10288 $as_echo_n "checking whether system uses EBCDIC... " >&6; }
10289 if ${ac_cv_ebcdic+:} false; then :
10290 $as_echo_n "(cached) " >&6
10293 if test "$cross_compiling" = yes; then :
10298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10299 /* end confdefs.h. */
10302 return (unsigned char)'A' != (unsigned char)0xC1;
10306 if ac_fn_c_try_run "$LINENO"; then :
10315 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10316 conftest.$ac_objext conftest.beam conftest.$ac_ext
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ebcdic" >&5
10321 $as_echo "$ac_cv_ebcdic" >&6; }
10322 if test "$ac_cv_ebcdic" = "yes"; then
10323 apr_charset_ebcdic=1
10325 apr_charset_ebcdic=0
10330 APR_LIBNAME="apr${libsuffix}"
10333 echo "performing libtool configuration..."
10335 # Check whether --enable-experimental-libtool was given.
10336 if test "${enable_experimental_libtool+set}" = set; then :
10337 enableval=$enable_experimental_libtool; experimental_libtool=$enableval
10339 experimental_libtool=no
10343 if test "x$Xsed" = "x"; then
10344 Xsed="$SED -e 1s/^X//"
10349 # Use a custom-made libtool replacement
10350 echo "using aplibtool"
10351 LIBTOOL="$srcdir/build/aplibtool"
10352 gcc $CFLAGS $CPPFLAGS -o $LIBTOOL.exe $LIBTOOL.c
10355 if test "x$LTFLAGS" = "x"; then
10358 if test "$experimental_libtool" = "yes"; then
10359 # Use a custom-made libtool replacement
10360 echo "using jlibtool"
10361 LIBTOOL="$apr_builddir/libtool"
10362 LIBTOOL_SRC="$apr_srcdir/build/jlibtool.c"
10363 $CC $CFLAGS $CPPFLAGS -o $LIBTOOL $LIBTOOL_SRC
10364 eval `$apr_builddir/libtool --config | grep "^shlibpath_var=[A-Z_]*$"`
10365 if test "x$shlibpath_var" = "x"; then
10366 shlibpath_var=REPLACE_WITH_YOUR_SHLIBPATH_VAR
10369 enable_win32_dll=yes
10372 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
10373 if test -n "$ac_tool_prefix"; then
10374 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10375 set dummy ${ac_tool_prefix}as; ac_word=$2
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10377 $as_echo_n "checking for $ac_word... " >&6; }
10378 if ${ac_cv_prog_AS+:} false; then :
10379 $as_echo_n "(cached) " >&6
10381 if test -n "$AS"; then
10382 ac_cv_prog_AS="$AS" # Let the user override the test.
10384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10385 for as_dir in $PATH
10388 test -z "$as_dir" && as_dir=.
10389 for ac_exec_ext in '' $ac_executable_extensions; do
10390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10391 ac_cv_prog_AS="${ac_tool_prefix}as"
10392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10402 if test -n "$AS"; then
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10404 $as_echo "$AS" >&6; }
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10407 $as_echo "no" >&6; }
10412 if test -z "$ac_cv_prog_AS"; then
10414 # Extract the first word of "as", so it can be a program name with args.
10415 set dummy as; ac_word=$2
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10417 $as_echo_n "checking for $ac_word... " >&6; }
10418 if ${ac_cv_prog_ac_ct_AS+:} false; then :
10419 $as_echo_n "(cached) " >&6
10421 if test -n "$ac_ct_AS"; then
10422 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10425 for as_dir in $PATH
10428 test -z "$as_dir" && as_dir=.
10429 for ac_exec_ext in '' $ac_executable_extensions; do
10430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10431 ac_cv_prog_ac_ct_AS="as"
10432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10441 ac_ct_AS=$ac_cv_prog_ac_ct_AS
10442 if test -n "$ac_ct_AS"; then
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
10444 $as_echo "$ac_ct_AS" >&6; }
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10447 $as_echo "no" >&6; }
10450 if test "x$ac_ct_AS" = x; then
10453 case $cross_compiling:$ac_tool_warned in
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10456 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10457 ac_tool_warned=yes ;;
10462 AS="$ac_cv_prog_AS"
10465 if test -n "$ac_tool_prefix"; then
10466 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10467 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10469 $as_echo_n "checking for $ac_word... " >&6; }
10470 if ${ac_cv_prog_DLLTOOL+:} false; then :
10471 $as_echo_n "(cached) " >&6
10473 if test -n "$DLLTOOL"; then
10474 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10477 for as_dir in $PATH
10480 test -z "$as_dir" && as_dir=.
10481 for ac_exec_ext in '' $ac_executable_extensions; do
10482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10483 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10493 DLLTOOL=$ac_cv_prog_DLLTOOL
10494 if test -n "$DLLTOOL"; then
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10496 $as_echo "$DLLTOOL" >&6; }
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10499 $as_echo "no" >&6; }
10504 if test -z "$ac_cv_prog_DLLTOOL"; then
10505 ac_ct_DLLTOOL=$DLLTOOL
10506 # Extract the first word of "dlltool", so it can be a program name with args.
10507 set dummy dlltool; ac_word=$2
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10509 $as_echo_n "checking for $ac_word... " >&6; }
10510 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10511 $as_echo_n "(cached) " >&6
10513 if test -n "$ac_ct_DLLTOOL"; then
10514 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10517 for as_dir in $PATH
10520 test -z "$as_dir" && as_dir=.
10521 for ac_exec_ext in '' $ac_executable_extensions; do
10522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10523 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10533 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10534 if test -n "$ac_ct_DLLTOOL"; then
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10536 $as_echo "$ac_ct_DLLTOOL" >&6; }
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10539 $as_echo "no" >&6; }
10542 if test "x$ac_ct_DLLTOOL" = x; then
10545 case $cross_compiling:$ac_tool_warned in
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10548 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10549 ac_tool_warned=yes ;;
10551 DLLTOOL=$ac_ct_DLLTOOL
10554 DLLTOOL="$ac_cv_prog_DLLTOOL"
10557 if test -n "$ac_tool_prefix"; then
10558 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10559 set dummy ${ac_tool_prefix}objdump; ac_word=$2
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10561 $as_echo_n "checking for $ac_word... " >&6; }
10562 if ${ac_cv_prog_OBJDUMP+:} false; then :
10563 $as_echo_n "(cached) " >&6
10565 if test -n "$OBJDUMP"; then
10566 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10569 for as_dir in $PATH
10572 test -z "$as_dir" && as_dir=.
10573 for ac_exec_ext in '' $ac_executable_extensions; do
10574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10575 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10585 OBJDUMP=$ac_cv_prog_OBJDUMP
10586 if test -n "$OBJDUMP"; then
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10588 $as_echo "$OBJDUMP" >&6; }
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10591 $as_echo "no" >&6; }
10596 if test -z "$ac_cv_prog_OBJDUMP"; then
10597 ac_ct_OBJDUMP=$OBJDUMP
10598 # Extract the first word of "objdump", so it can be a program name with args.
10599 set dummy objdump; ac_word=$2
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10601 $as_echo_n "checking for $ac_word... " >&6; }
10602 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
10603 $as_echo_n "(cached) " >&6
10605 if test -n "$ac_ct_OBJDUMP"; then
10606 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10609 for as_dir in $PATH
10612 test -z "$as_dir" && as_dir=.
10613 for ac_exec_ext in '' $ac_executable_extensions; do
10614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10615 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10625 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10626 if test -n "$ac_ct_OBJDUMP"; then
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10628 $as_echo "$ac_ct_OBJDUMP" >&6; }
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10631 $as_echo "no" >&6; }
10634 if test "x$ac_ct_OBJDUMP" = x; then
10637 case $cross_compiling:$ac_tool_warned in
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10641 ac_tool_warned=yes ;;
10643 OBJDUMP=$ac_ct_OBJDUMP
10646 OBJDUMP="$ac_cv_prog_OBJDUMP"
10652 test -z "$AS" && AS=as
10658 test -z "$DLLTOOL" && DLLTOOL=dlltool
10664 test -z "$OBJDUMP" && OBJDUMP=objdump
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10675 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10680 macro_version='2.4.2'
10681 macro_revision='1.3337'
10695 ltmain="$ac_aux_dir/ltmain.sh"
10697 # Backslashify metacharacters that are still active within
10698 # double-quoted strings.
10699 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10701 # Same as above, but do not quote variable references.
10702 double_quote_subst='s/\(["`\\]\)/\\\1/g'
10704 # Sed substitution to delay expansion of an escaped shell variable in a
10705 # double_quote_subst'ed string.
10706 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10708 # Sed substitution to delay expansion of an escaped single quote.
10709 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10711 # Sed substitution to avoid accidental globbing in evaled expressions
10712 no_glob_subst='s/\*/\\\*/g'
10714 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10715 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10716 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10719 $as_echo_n "checking how to print strings... " >&6; }
10720 # Test print first, because it will be a builtin if present.
10721 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10722 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10724 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10727 # Use this function as a fallback that always works.
10728 func_fallback_echo ()
10730 eval 'cat <<_LTECHO_EOF
10734 ECHO='func_fallback_echo'
10737 # func_echo_all arg...
10738 # Invoke $ECHO with all args, space-separated.
10745 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10746 $as_echo "printf" >&6; } ;;
10747 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10748 $as_echo "print -r" >&6; } ;;
10749 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10750 $as_echo "cat" >&6; } ;;
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10767 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
10768 if ${ac_cv_path_SED+:} false; then :
10769 $as_echo_n "(cached) " >&6
10771 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10772 for ac_i in 1 2 3 4 5 6 7; do
10773 ac_script="$ac_script$as_nl$ac_script"
10775 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10776 { ac_script=; unset ac_script;}
10777 if test -z "$SED"; then
10778 ac_path_SED_found=false
10779 # Loop through the user's path and test for each of PROGNAME-LIST
10780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10781 for as_dir in $PATH
10784 test -z "$as_dir" && as_dir=.
10785 for ac_prog in sed gsed; do
10786 for ac_exec_ext in '' $ac_executable_extensions; do
10787 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10788 as_fn_executable_p "$ac_path_SED" || continue
10789 # Check for GNU ac_path_SED and select it if it is found.
10790 # Check for GNU $ac_path_SED
10791 case `"$ac_path_SED" --version 2>&1` in
10793 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10796 $as_echo_n 0123456789 >"conftest.in"
10799 cat "conftest.in" "conftest.in" >"conftest.tmp"
10800 mv "conftest.tmp" "conftest.in"
10801 cp "conftest.in" "conftest.nl"
10802 $as_echo '' >> "conftest.nl"
10803 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10804 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10805 as_fn_arith $ac_count + 1 && ac_count=$as_val
10806 if test $ac_count -gt ${ac_path_SED_max-0}; then
10807 # Best one so far, save it but keep looking for a better one
10808 ac_cv_path_SED="$ac_path_SED"
10809 ac_path_SED_max=$ac_count
10811 # 10*(2^10) chars as input seems more than enough
10812 test $ac_count -gt 10 && break
10814 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10817 $ac_path_SED_found && break 3
10822 if test -z "$ac_cv_path_SED"; then
10823 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10826 ac_cv_path_SED=$SED
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10831 $as_echo "$ac_cv_path_SED" >&6; }
10832 SED="$ac_cv_path_SED"
10835 test -z "$SED" && SED=sed
10836 Xsed="$SED -e 1s/^X//"
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
10849 $as_echo_n "checking for fgrep... " >&6; }
10850 if ${ac_cv_path_FGREP+:} false; then :
10851 $as_echo_n "(cached) " >&6
10853 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
10854 then ac_cv_path_FGREP="$GREP -F"
10856 if test -z "$FGREP"; then
10857 ac_path_FGREP_found=false
10858 # Loop through the user's path and test for each of PROGNAME-LIST
10859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10860 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10863 test -z "$as_dir" && as_dir=.
10864 for ac_prog in fgrep; do
10865 for ac_exec_ext in '' $ac_executable_extensions; do
10866 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
10867 as_fn_executable_p "$ac_path_FGREP" || continue
10868 # Check for GNU ac_path_FGREP and select it if it is found.
10869 # Check for GNU $ac_path_FGREP
10870 case `"$ac_path_FGREP" --version 2>&1` in
10872 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
10875 $as_echo_n 0123456789 >"conftest.in"
10878 cat "conftest.in" "conftest.in" >"conftest.tmp"
10879 mv "conftest.tmp" "conftest.in"
10880 cp "conftest.in" "conftest.nl"
10881 $as_echo 'FGREP' >> "conftest.nl"
10882 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
10883 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10884 as_fn_arith $ac_count + 1 && ac_count=$as_val
10885 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
10886 # Best one so far, save it but keep looking for a better one
10887 ac_cv_path_FGREP="$ac_path_FGREP"
10888 ac_path_FGREP_max=$ac_count
10890 # 10*(2^10) chars as input seems more than enough
10891 test $ac_count -gt 10 && break
10893 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10896 $ac_path_FGREP_found && break 3
10901 if test -z "$ac_cv_path_FGREP"; then
10902 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10905 ac_cv_path_FGREP=$FGREP
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
10911 $as_echo "$ac_cv_path_FGREP" >&6; }
10912 FGREP="$ac_cv_path_FGREP"
10915 test -z "$GREP" && GREP=grep
10935 # Check whether --with-gnu-ld was given.
10936 if test "${with_gnu_ld+set}" = set; then :
10937 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10943 if test "$GCC" = yes; then
10944 # Check if gcc -print-prog-name=ld gives a path.
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10946 $as_echo_n "checking for ld used by $CC... " >&6; }
10949 # gcc leaves a trailing carriage return which upsets mingw
10950 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10952 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10955 # Accept absolute paths.
10957 re_direlt='/[^/][^/]*/\.\./'
10958 # Canonicalize the pathname of ld
10959 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
10960 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
10961 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
10963 test -z "$LD" && LD="$ac_prog"
10966 # If it fails, then pretend we aren't using GCC.
10970 # If it is relative, then search for the first ld in PATH.
10971 with_gnu_ld=unknown
10974 elif test "$with_gnu_ld" = yes; then
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10976 $as_echo_n "checking for GNU ld... " >&6; }
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10979 $as_echo_n "checking for non-GNU ld... " >&6; }
10981 if ${lt_cv_path_LD+:} false; then :
10982 $as_echo_n "(cached) " >&6
10984 if test -z "$LD"; then
10985 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10986 for ac_dir in $PATH; do
10988 test -z "$ac_dir" && ac_dir=.
10989 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10990 lt_cv_path_LD="$ac_dir/$ac_prog"
10991 # Check to see if the program is GNU ld. I'd rather use --version,
10992 # but apparently some variants of GNU ld only accept -v.
10993 # Break only if it was the GNU/non-GNU ld that we prefer.
10994 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10995 *GNU* | *'with BFD'*)
10996 test "$with_gnu_ld" != no && break
10999 test "$with_gnu_ld" != yes && break
11006 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11010 LD="$lt_cv_path_LD"
11011 if test -n "$LD"; then
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11013 $as_echo "$LD" >&6; }
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11016 $as_echo "no" >&6; }
11018 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11020 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11021 if ${lt_cv_prog_gnu_ld+:} false; then :
11022 $as_echo_n "(cached) " >&6
11024 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11025 case `$LD -v 2>&1 </dev/null` in
11026 *GNU* | *'with BFD'*)
11027 lt_cv_prog_gnu_ld=yes
11030 lt_cv_prog_gnu_ld=no
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11035 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11036 with_gnu_ld=$lt_cv_prog_gnu_ld
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11047 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11048 if ${lt_cv_path_NM+:} false; then :
11049 $as_echo_n "(cached) " >&6
11051 if test -n "$NM"; then
11052 # Let the user override the test.
11053 lt_cv_path_NM="$NM"
11055 lt_nm_to_check="${ac_tool_prefix}nm"
11056 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11057 lt_nm_to_check="$lt_nm_to_check nm"
11059 for lt_tmp_nm in $lt_nm_to_check; do
11060 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11061 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11063 test -z "$ac_dir" && ac_dir=.
11064 tmp_nm="$ac_dir/$lt_tmp_nm"
11065 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11066 # Check to see if the nm accepts a BSD-compat flag.
11067 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11068 # nm: unknown option "B" ignored
11069 # Tru64's nm complains that /dev/null is an invalid object file
11070 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11071 */dev/null* | *'Invalid file or object type'*)
11072 lt_cv_path_NM="$tmp_nm -B"
11076 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11078 lt_cv_path_NM="$tmp_nm -p"
11082 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11083 continue # so that we can try to find one that supports BSD flags
11092 : ${lt_cv_path_NM=no}
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11096 $as_echo "$lt_cv_path_NM" >&6; }
11097 if test "$lt_cv_path_NM" != "no"; then
11098 NM="$lt_cv_path_NM"
11100 # Didn't find any BSD compatible name lister, look for dumpbin.
11101 if test -n "$DUMPBIN"; then :
11102 # Let the user override the test.
11104 if test -n "$ac_tool_prefix"; then
11105 for ac_prog in dumpbin "link -dump"
11107 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11108 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11110 $as_echo_n "checking for $ac_word... " >&6; }
11111 if ${ac_cv_prog_DUMPBIN+:} false; then :
11112 $as_echo_n "(cached) " >&6
11114 if test -n "$DUMPBIN"; then
11115 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11118 for as_dir in $PATH
11121 test -z "$as_dir" && as_dir=.
11122 for ac_exec_ext in '' $ac_executable_extensions; do
11123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11124 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11134 DUMPBIN=$ac_cv_prog_DUMPBIN
11135 if test -n "$DUMPBIN"; then
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11137 $as_echo "$DUMPBIN" >&6; }
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11140 $as_echo "no" >&6; }
11144 test -n "$DUMPBIN" && break
11147 if test -z "$DUMPBIN"; then
11148 ac_ct_DUMPBIN=$DUMPBIN
11149 for ac_prog in dumpbin "link -dump"
11151 # Extract the first word of "$ac_prog", so it can be a program name with args.
11152 set dummy $ac_prog; ac_word=$2
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11154 $as_echo_n "checking for $ac_word... " >&6; }
11155 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11156 $as_echo_n "(cached) " >&6
11158 if test -n "$ac_ct_DUMPBIN"; then
11159 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11162 for as_dir in $PATH
11165 test -z "$as_dir" && as_dir=.
11166 for ac_exec_ext in '' $ac_executable_extensions; do
11167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11168 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11178 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11179 if test -n "$ac_ct_DUMPBIN"; then
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11181 $as_echo "$ac_ct_DUMPBIN" >&6; }
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11184 $as_echo "no" >&6; }
11188 test -n "$ac_ct_DUMPBIN" && break
11191 if test "x$ac_ct_DUMPBIN" = x; then
11194 case $cross_compiling:$ac_tool_warned in
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11197 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11198 ac_tool_warned=yes ;;
11200 DUMPBIN=$ac_ct_DUMPBIN
11204 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11206 DUMPBIN="$DUMPBIN -symbols"
11214 if test "$DUMPBIN" != ":"; then
11218 test -z "$NM" && NM=nm
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11226 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11227 if ${lt_cv_nm_interface+:} false; then :
11228 $as_echo_n "(cached) " >&6
11230 lt_cv_nm_interface="BSD nm"
11231 echo "int some_variable = 0;" > conftest.$ac_ext
11232 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11233 (eval "$ac_compile" 2>conftest.err)
11234 cat conftest.err >&5
11235 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11236 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11237 cat conftest.err >&5
11238 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11239 cat conftest.out >&5
11240 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11241 lt_cv_nm_interface="MS dumpbin"
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11246 $as_echo "$lt_cv_nm_interface" >&6; }
11248 # find the maximum length of command line arguments
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11250 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11251 if ${lt_cv_sys_max_cmd_len+:} false; then :
11252 $as_echo_n "(cached) " >&6
11259 # On DJGPP, this test can blow up pretty badly due to problems in libc
11260 # (any single argument exceeding 2000 bytes causes a buffer overrun
11261 # during glob expansion). Even if it were fixed, the result of this
11262 # check would be larger than it should be.
11263 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11267 # Under GNU Hurd, this test is not required because there is
11268 # no limit to the length of command line arguments.
11269 # Libtool will interpret -1 as no limit whatsoever
11270 lt_cv_sys_max_cmd_len=-1;
11273 cygwin* | mingw* | cegcc*)
11274 # On Win9x/ME, this test blows up -- it succeeds, but takes
11275 # about 5 minutes as the teststring grows exponentially.
11276 # Worse, since 9x/ME are not pre-emptively multitasking,
11277 # you end up with a "frozen" computer, even though with patience
11278 # the test eventually succeeds (with a max line length of 256k).
11279 # Instead, let's just punt: use the minimum linelength reported by
11280 # all of the supported platforms: 8192 (on NT/2K/XP).
11281 lt_cv_sys_max_cmd_len=8192;
11285 # On MiNT this can take a long time and run out of memory.
11286 lt_cv_sys_max_cmd_len=8192;
11290 # On AmigaOS with pdksh, this test takes hours, literally.
11291 # So we just punt and use a minimum line length of 8192.
11292 lt_cv_sys_max_cmd_len=8192;
11295 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11296 # This has been around since 386BSD, at least. Likely further.
11297 if test -x /sbin/sysctl; then
11298 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11299 elif test -x /usr/sbin/sysctl; then
11300 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11302 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11304 # And add a safety zone
11305 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11306 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11310 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11311 lt_cv_sys_max_cmd_len=196608
11315 # The test takes a long time on OS/2.
11316 lt_cv_sys_max_cmd_len=8192
11320 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11321 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11322 # nice to cause kernel panics so lets avoid the loop below.
11323 # First set a reasonable default.
11324 lt_cv_sys_max_cmd_len=16384
11326 if test -x /sbin/sysconfig; then
11327 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11328 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11333 lt_cv_sys_max_cmd_len=102400
11335 sysv5* | sco5v6* | sysv4.2uw2*)
11336 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11337 if test -n "$kargmax"; then
11338 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11340 lt_cv_sys_max_cmd_len=32768
11344 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11345 if test -n "$lt_cv_sys_max_cmd_len"; then
11346 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11347 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11349 # Make teststring a little bigger before we do anything with it.
11350 # a 1K string should be a reasonable start.
11351 for i in 1 2 3 4 5 6 7 8 ; do
11352 teststring=$teststring$teststring
11354 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11355 # If test is not a shell built-in, we'll probably end up computing a
11356 # maximum length that is only half of the actual maximum length, but
11358 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
11359 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11360 test $i != 17 # 1/2 MB should be enough
11363 teststring=$teststring$teststring
11365 # Only check the string length outside the loop.
11366 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11368 # Add a significant safety factor because C++ compilers can tack on
11369 # massive amounts of additional arguments before passing them to the
11370 # linker. It appears as though 1/2 is a usable value.
11371 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11378 if test -n $lt_cv_sys_max_cmd_len ; then
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11380 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11383 $as_echo "none" >&6; }
11385 max_cmd_len=$lt_cv_sys_max_cmd_len
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11397 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11398 # Try some XSI features
11400 ( _lt_dummy="a/b/c"
11401 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11403 && eval 'test $(( 1 + 1 )) -eq 2 \
11404 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11407 $as_echo "$xsi_shell" >&6; }
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11411 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11413 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11415 && lt_shell_append=yes
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11417 $as_echo "$lt_shell_append" >&6; }
11420 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11430 # test EBCDIC or ASCII
11431 case `echo X|tr X '\101'` in
11432 A) # ASCII based system
11433 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11434 lt_SP2NL='tr \040 \012'
11435 lt_NL2SP='tr \015\012 \040\040'
11437 *) # EBCDIC based system
11438 lt_SP2NL='tr \100 \n'
11439 lt_NL2SP='tr \r\n \100\100'
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11452 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11453 if ${lt_cv_to_host_file_cmd+:} false; then :
11454 $as_echo_n "(cached) " >&6
11459 *-*-mingw* ) # actually msys
11460 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11463 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11465 * ) # otherwise, assume *nix
11466 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11472 *-*-mingw* ) # actually msys
11473 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11476 lt_cv_to_host_file_cmd=func_convert_file_noop
11478 * ) # otherwise, assume *nix
11479 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11483 * ) # unhandled hosts (and "normal" native builds)
11484 lt_cv_to_host_file_cmd=func_convert_file_noop
11490 to_host_file_cmd=$lt_cv_to_host_file_cmd
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11492 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11499 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11500 if ${lt_cv_to_tool_file_cmd+:} false; then :
11501 $as_echo_n "(cached) " >&6
11503 #assume ordinary cross tools, or native build.
11504 lt_cv_to_tool_file_cmd=func_convert_file_noop
11508 *-*-mingw* ) # actually msys
11509 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11517 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11519 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11526 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11527 if ${lt_cv_ld_reload_flag+:} false; then :
11528 $as_echo_n "(cached) " >&6
11530 lt_cv_ld_reload_flag='-r'
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11533 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11534 reload_flag=$lt_cv_ld_reload_flag
11535 case $reload_flag in
11537 *) reload_flag=" $reload_flag" ;;
11539 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11541 cygwin* | mingw* | pw32* | cegcc*)
11542 if test "$GCC" != yes; then
11547 if test "$GCC" = yes; then
11548 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11550 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11563 if test -n "$ac_tool_prefix"; then
11564 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11565 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11567 $as_echo_n "checking for $ac_word... " >&6; }
11568 if ${ac_cv_prog_OBJDUMP+:} false; then :
11569 $as_echo_n "(cached) " >&6
11571 if test -n "$OBJDUMP"; then
11572 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11575 for as_dir in $PATH
11578 test -z "$as_dir" && as_dir=.
11579 for ac_exec_ext in '' $ac_executable_extensions; do
11580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11581 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11591 OBJDUMP=$ac_cv_prog_OBJDUMP
11592 if test -n "$OBJDUMP"; then
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11594 $as_echo "$OBJDUMP" >&6; }
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11597 $as_echo "no" >&6; }
11602 if test -z "$ac_cv_prog_OBJDUMP"; then
11603 ac_ct_OBJDUMP=$OBJDUMP
11604 # Extract the first word of "objdump", so it can be a program name with args.
11605 set dummy objdump; ac_word=$2
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11607 $as_echo_n "checking for $ac_word... " >&6; }
11608 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11609 $as_echo_n "(cached) " >&6
11611 if test -n "$ac_ct_OBJDUMP"; then
11612 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11615 for as_dir in $PATH
11618 test -z "$as_dir" && as_dir=.
11619 for ac_exec_ext in '' $ac_executable_extensions; do
11620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11621 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11631 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11632 if test -n "$ac_ct_OBJDUMP"; then
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11634 $as_echo "$ac_ct_OBJDUMP" >&6; }
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11637 $as_echo "no" >&6; }
11640 if test "x$ac_ct_OBJDUMP" = x; then
11643 case $cross_compiling:$ac_tool_warned in
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11646 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11647 ac_tool_warned=yes ;;
11649 OBJDUMP=$ac_ct_OBJDUMP
11652 OBJDUMP="$ac_cv_prog_OBJDUMP"
11655 test -z "$OBJDUMP" && OBJDUMP=objdump
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11663 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11664 if ${lt_cv_deplibs_check_method+:} false; then :
11665 $as_echo_n "(cached) " >&6
11667 lt_cv_file_magic_cmd='$MAGIC_CMD'
11668 lt_cv_file_magic_test_file=
11669 lt_cv_deplibs_check_method='unknown'
11670 # Need to set the preceding variable on all platforms that support
11671 # interlibrary dependencies.
11672 # 'none' -- dependencies not supported.
11673 # `unknown' -- same as none, but documents that we really don't know.
11674 # 'pass_all' -- all dependencies passed with no checks.
11675 # 'test_compile' -- check by making test program.
11676 # 'file_magic [[regex]]' -- check by looking for files in library path
11677 # which responds to the $file_magic_cmd with a given extended regex.
11678 # If you have `file' or equivalent on your system and you're not sure
11679 # whether `pass_all' will *always* work, you probably want this one.
11683 lt_cv_deplibs_check_method=pass_all
11687 lt_cv_deplibs_check_method=pass_all
11691 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11692 lt_cv_file_magic_cmd='/usr/bin/file -L'
11693 lt_cv_file_magic_test_file=/shlib/libc.so
11697 # func_win32_libid is a shell function defined in ltmain.sh
11698 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11699 lt_cv_file_magic_cmd='func_win32_libid'
11703 # Base MSYS/MinGW do not provide the 'file' command needed by
11704 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11705 # unless we find 'file', for example because we are cross-compiling.
11706 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11707 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
11708 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11709 lt_cv_file_magic_cmd='func_win32_libid'
11711 # Keep this pattern in sync with the one in func_win32_libid.
11712 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11713 lt_cv_file_magic_cmd='$OBJDUMP -f'
11718 # use the weaker test based on 'objdump'. See mingw*.
11719 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11720 lt_cv_file_magic_cmd='$OBJDUMP -f'
11723 darwin* | rhapsody*)
11724 lt_cv_deplibs_check_method=pass_all
11727 freebsd* | dragonfly*)
11728 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11731 # Not sure whether the presence of OpenBSD here was a mistake.
11732 # Let's accept both of them until this is cleared up.
11733 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11734 lt_cv_file_magic_cmd=/usr/bin/file
11735 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11739 lt_cv_deplibs_check_method=pass_all
11744 lt_cv_deplibs_check_method=pass_all
11748 lt_cv_deplibs_check_method=pass_all
11751 hpux10.20* | hpux11*)
11752 lt_cv_file_magic_cmd=/usr/bin/file
11755 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11756 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11759 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]'
11760 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11763 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11764 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11770 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11771 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11774 irix5* | irix6* | nonstopux*)
11776 *-32|*"-32 ") libmagic=32-bit;;
11777 *-n32|*"-n32 ") libmagic=N32;;
11778 *-64|*"-64 ") libmagic=64-bit;;
11779 *) libmagic=never-match;;
11781 lt_cv_deplibs_check_method=pass_all
11784 # This must be glibc/ELF.
11785 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11786 lt_cv_deplibs_check_method=pass_all
11790 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11791 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11793 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11798 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11799 lt_cv_file_magic_cmd=/usr/bin/file
11800 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11804 lt_cv_deplibs_check_method=pass_all
11808 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11809 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11811 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11815 osf3* | osf4* | osf5*)
11816 lt_cv_deplibs_check_method=pass_all
11820 lt_cv_deplibs_check_method=pass_all
11824 lt_cv_deplibs_check_method=pass_all
11827 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11828 lt_cv_deplibs_check_method=pass_all
11832 case $host_vendor in
11834 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]'
11835 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11838 lt_cv_deplibs_check_method=pass_all
11841 lt_cv_file_magic_cmd='/bin/file'
11842 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11845 lt_cv_file_magic_cmd='/bin/file'
11846 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11847 lt_cv_file_magic_test_file=/lib/libc.so
11850 lt_cv_deplibs_check_method=pass_all
11853 lt_cv_deplibs_check_method=pass_all
11859 lt_cv_deplibs_check_method=pass_all
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11865 $as_echo "$lt_cv_deplibs_check_method" >&6; }
11869 if test "$build" = "$host"; then
11872 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11873 want_nocaseglob=yes
11875 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11881 file_magic_cmd=$lt_cv_file_magic_cmd
11882 deplibs_check_method=$lt_cv_deplibs_check_method
11883 test -z "$deplibs_check_method" && deplibs_check_method=unknown
11906 if test -n "$ac_tool_prefix"; then
11907 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11908 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11910 $as_echo_n "checking for $ac_word... " >&6; }
11911 if ${ac_cv_prog_DLLTOOL+:} false; then :
11912 $as_echo_n "(cached) " >&6
11914 if test -n "$DLLTOOL"; then
11915 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11918 for as_dir in $PATH
11921 test -z "$as_dir" && as_dir=.
11922 for ac_exec_ext in '' $ac_executable_extensions; do
11923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11924 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11934 DLLTOOL=$ac_cv_prog_DLLTOOL
11935 if test -n "$DLLTOOL"; then
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11937 $as_echo "$DLLTOOL" >&6; }
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11940 $as_echo "no" >&6; }
11945 if test -z "$ac_cv_prog_DLLTOOL"; then
11946 ac_ct_DLLTOOL=$DLLTOOL
11947 # Extract the first word of "dlltool", so it can be a program name with args.
11948 set dummy dlltool; ac_word=$2
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11950 $as_echo_n "checking for $ac_word... " >&6; }
11951 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11952 $as_echo_n "(cached) " >&6
11954 if test -n "$ac_ct_DLLTOOL"; then
11955 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11958 for as_dir in $PATH
11961 test -z "$as_dir" && as_dir=.
11962 for ac_exec_ext in '' $ac_executable_extensions; do
11963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11964 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11974 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11975 if test -n "$ac_ct_DLLTOOL"; then
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11977 $as_echo "$ac_ct_DLLTOOL" >&6; }
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11980 $as_echo "no" >&6; }
11983 if test "x$ac_ct_DLLTOOL" = x; then
11986 case $cross_compiling:$ac_tool_warned in
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11989 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11990 ac_tool_warned=yes ;;
11992 DLLTOOL=$ac_ct_DLLTOOL
11995 DLLTOOL="$ac_cv_prog_DLLTOOL"
11998 test -z "$DLLTOOL" && DLLTOOL=dlltool
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12007 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12008 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12009 $as_echo_n "(cached) " >&6
12011 lt_cv_sharedlib_from_linklib_cmd='unknown'
12014 cygwin* | mingw* | pw32* | cegcc*)
12015 # two different shell functions defined in ltmain.sh
12016 # decide which to use based on capabilities of $DLLTOOL
12017 case `$DLLTOOL --help 2>&1` in
12018 *--identify-strict*)
12019 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12022 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12027 # fallback: assume linklib IS sharedlib
12028 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12034 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12035 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12036 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12044 if test -n "$ac_tool_prefix"; then
12047 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12048 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12050 $as_echo_n "checking for $ac_word... " >&6; }
12051 if ${ac_cv_prog_AR+:} false; then :
12052 $as_echo_n "(cached) " >&6
12054 if test -n "$AR"; then
12055 ac_cv_prog_AR="$AR" # Let the user override the test.
12057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12058 for as_dir in $PATH
12061 test -z "$as_dir" && as_dir=.
12062 for ac_exec_ext in '' $ac_executable_extensions; do
12063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12064 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12075 if test -n "$AR"; then
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12077 $as_echo "$AR" >&6; }
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12080 $as_echo "no" >&6; }
12084 test -n "$AR" && break
12087 if test -z "$AR"; then
12091 # Extract the first word of "$ac_prog", so it can be a program name with args.
12092 set dummy $ac_prog; ac_word=$2
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12094 $as_echo_n "checking for $ac_word... " >&6; }
12095 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12096 $as_echo_n "(cached) " >&6
12098 if test -n "$ac_ct_AR"; then
12099 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12102 for as_dir in $PATH
12105 test -z "$as_dir" && as_dir=.
12106 for ac_exec_ext in '' $ac_executable_extensions; do
12107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12108 ac_cv_prog_ac_ct_AR="$ac_prog"
12109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12118 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12119 if test -n "$ac_ct_AR"; then
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12121 $as_echo "$ac_ct_AR" >&6; }
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12124 $as_echo "no" >&6; }
12128 test -n "$ac_ct_AR" && break
12131 if test "x$ac_ct_AR" = x; then
12134 case $cross_compiling:$ac_tool_warned in
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12138 ac_tool_warned=yes ;;
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12158 $as_echo_n "checking for archiver @FILE support... " >&6; }
12159 if ${lt_cv_ar_at_file+:} false; then :
12160 $as_echo_n "(cached) " >&6
12162 lt_cv_ar_at_file=no
12163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12164 /* end confdefs.h. */
12174 if ac_fn_c_try_compile "$LINENO"; then :
12175 echo conftest.$ac_objext > conftest.lst
12176 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12177 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12178 (eval $lt_ar_try) 2>&5
12180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12181 test $ac_status = 0; }
12182 if test "$ac_status" -eq 0; then
12183 # Ensure the archiver fails upon bogus file names.
12184 rm -f conftest.$ac_objext libconftest.a
12185 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12186 (eval $lt_ar_try) 2>&5
12188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12189 test $ac_status = 0; }
12190 if test "$ac_status" -ne 0; then
12194 rm -f conftest.* libconftest.a
12197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12201 $as_echo "$lt_cv_ar_at_file" >&6; }
12203 if test "x$lt_cv_ar_at_file" = xno; then
12204 archiver_list_spec=
12206 archiver_list_spec=$lt_cv_ar_at_file
12215 if test -n "$ac_tool_prefix"; then
12216 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12217 set dummy ${ac_tool_prefix}strip; ac_word=$2
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12219 $as_echo_n "checking for $ac_word... " >&6; }
12220 if ${ac_cv_prog_STRIP+:} false; then :
12221 $as_echo_n "(cached) " >&6
12223 if test -n "$STRIP"; then
12224 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12227 for as_dir in $PATH
12230 test -z "$as_dir" && as_dir=.
12231 for ac_exec_ext in '' $ac_executable_extensions; do
12232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12233 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12243 STRIP=$ac_cv_prog_STRIP
12244 if test -n "$STRIP"; then
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12246 $as_echo "$STRIP" >&6; }
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12249 $as_echo "no" >&6; }
12254 if test -z "$ac_cv_prog_STRIP"; then
12256 # Extract the first word of "strip", so it can be a program name with args.
12257 set dummy strip; ac_word=$2
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12259 $as_echo_n "checking for $ac_word... " >&6; }
12260 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12261 $as_echo_n "(cached) " >&6
12263 if test -n "$ac_ct_STRIP"; then
12264 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12267 for as_dir in $PATH
12270 test -z "$as_dir" && as_dir=.
12271 for ac_exec_ext in '' $ac_executable_extensions; do
12272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12273 ac_cv_prog_ac_ct_STRIP="strip"
12274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12283 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12284 if test -n "$ac_ct_STRIP"; then
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12286 $as_echo "$ac_ct_STRIP" >&6; }
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12289 $as_echo "no" >&6; }
12292 if test "x$ac_ct_STRIP" = x; then
12295 case $cross_compiling:$ac_tool_warned in
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12298 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12299 ac_tool_warned=yes ;;
12304 STRIP="$ac_cv_prog_STRIP"
12307 test -z "$STRIP" && STRIP=:
12314 if test -n "$ac_tool_prefix"; then
12315 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12316 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12318 $as_echo_n "checking for $ac_word... " >&6; }
12319 if ${ac_cv_prog_RANLIB+:} false; then :
12320 $as_echo_n "(cached) " >&6
12322 if test -n "$RANLIB"; then
12323 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12326 for as_dir in $PATH
12329 test -z "$as_dir" && as_dir=.
12330 for ac_exec_ext in '' $ac_executable_extensions; do
12331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12332 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12342 RANLIB=$ac_cv_prog_RANLIB
12343 if test -n "$RANLIB"; then
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12345 $as_echo "$RANLIB" >&6; }
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12348 $as_echo "no" >&6; }
12353 if test -z "$ac_cv_prog_RANLIB"; then
12354 ac_ct_RANLIB=$RANLIB
12355 # Extract the first word of "ranlib", so it can be a program name with args.
12356 set dummy ranlib; ac_word=$2
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12358 $as_echo_n "checking for $ac_word... " >&6; }
12359 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12360 $as_echo_n "(cached) " >&6
12362 if test -n "$ac_ct_RANLIB"; then
12363 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12366 for as_dir in $PATH
12369 test -z "$as_dir" && as_dir=.
12370 for ac_exec_ext in '' $ac_executable_extensions; do
12371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12372 ac_cv_prog_ac_ct_RANLIB="ranlib"
12373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12382 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12383 if test -n "$ac_ct_RANLIB"; then
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12385 $as_echo "$ac_ct_RANLIB" >&6; }
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12388 $as_echo "no" >&6; }
12391 if test "x$ac_ct_RANLIB" = x; then
12394 case $cross_compiling:$ac_tool_warned in
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12398 ac_tool_warned=yes ;;
12400 RANLIB=$ac_ct_RANLIB
12403 RANLIB="$ac_cv_prog_RANLIB"
12406 test -z "$RANLIB" && RANLIB=:
12413 # Determine commands to create old-style static archives.
12414 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12415 old_postinstall_cmds='chmod 644 $oldlib'
12416 old_postuninstall_cmds=
12418 if test -n "$RANLIB"; then
12421 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12424 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12427 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12432 lock_old_archive_extraction=yes ;;
12434 lock_old_archive_extraction=no ;;
12475 # If no C compiler was specified, use CC.
12478 # If no C compiler flags were specified, use CFLAGS.
12479 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12481 # Allow CC to be a program name with arguments.
12485 # Check for command to grab the raw symbol name followed by C symbol from nm.
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12487 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12488 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12489 $as_echo_n "(cached) " >&6
12492 # These are sane defaults that work on at least a few old systems.
12493 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12495 # Character class describing NM global symbol codes.
12496 symcode='[BCDEGRST]'
12498 # Regexp to match symbols that can be accessed directly from C.
12499 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12501 # Define system-specific variables.
12506 cygwin* | mingw* | pw32* | cegcc*)
12507 symcode='[ABCDGISTW]'
12510 if test "$host_cpu" = ia64; then
12511 symcode='[ABCDEGRST]'
12514 irix* | nonstopux*)
12515 symcode='[BCDEGRST]'
12518 symcode='[BCDEGQRST]'
12529 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12537 # If we're using GNU nm, then use its standard symbol codes.
12538 case `$NM -V 2>&1` in
12539 *GNU* | *'with BFD'*)
12540 symcode='[ABCDGIRSTW]' ;;
12543 # Transform an extracted symbol line into a proper C declaration.
12544 # Some systems (esp. on ia64) link data and code symbols differently,
12545 # so use this general approach.
12546 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12548 # Transform an extracted symbol line into symbol name and symbol address
12549 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12550 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'"
12552 # Handle CRLF in mingw tool chain
12556 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12560 # Try without a prefix underscore, then with it.
12561 for ac_symprfx in "" "_"; do
12563 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12564 symxfrm="\\1 $ac_symprfx\\2 \\2"
12566 # Write the raw and C identifiers.
12567 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12568 # Fake it for dumpbin and say T for any non-static function
12569 # and D for any global variable.
12570 # Also find C++ and __fastcall symbols from MSVC++,
12571 # which start with @ or ?.
12572 lt_cv_sys_global_symbol_pipe="$AWK '"\
12573 " {last_section=section; section=\$ 3};"\
12574 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12575 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12576 " \$ 0!~/External *\|/{next};"\
12577 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12578 " {if(hide[section]) next};"\
12579 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12580 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12581 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
12582 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12583 " ' prfx=^$ac_symprfx"
12585 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12587 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12589 # Check to see that the pipe works correctly.
12593 cat > conftest.$ac_ext <<_LT_EOF
12598 void nm_test_func(void);
12599 void nm_test_func(void){}
12603 int main(){nm_test_var='a';nm_test_func();return(0);}
12606 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12607 (eval $ac_compile) 2>&5
12609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12610 test $ac_status = 0; }; then
12611 # Now try to grab the symbols.
12613 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12614 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12617 test $ac_status = 0; } && test -s "$nlist"; then
12618 # Try sorting and uniquifying the output.
12619 if sort "$nlist" | uniq > "$nlist"T; then
12620 mv -f "$nlist"T "$nlist"
12625 # Make sure that we snagged all the symbols we need.
12626 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12627 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12628 cat <<_LT_EOF > conftest.$ac_ext
12629 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12630 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12631 /* DATA imports from DLLs on WIN32 con't be const, because runtime
12632 relocations are performed -- see ld's documentation on pseudo-relocs. */
12633 # define LT_DLSYM_CONST
12634 #elif defined(__osf__)
12635 /* This system does not cope well with relocations in const data. */
12636 # define LT_DLSYM_CONST
12638 # define LT_DLSYM_CONST const
12646 # Now generate the symbol file.
12647 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12649 cat <<_LT_EOF >> conftest.$ac_ext
12651 /* The mapping between symbol names and symbols. */
12652 LT_DLSYM_CONST struct {
12656 lt__PROGRAM__LTX_preloaded_symbols[] =
12658 { "@PROGRAM@", (void *) 0 },
12660 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12661 cat <<\_LT_EOF >> conftest.$ac_ext
12665 /* This works around a problem in FreeBSD linker */
12666 #ifdef FREEBSD_WORKAROUND
12667 static const void *lt_preloaded_setup() {
12668 return lt__PROGRAM__LTX_preloaded_symbols;
12676 # Now try linking the two files.
12677 mv conftest.$ac_objext conftstm.$ac_objext
12678 lt_globsym_save_LIBS=$LIBS
12679 lt_globsym_save_CFLAGS=$CFLAGS
12680 LIBS="conftstm.$ac_objext"
12681 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12682 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12683 (eval $ac_link) 2>&5
12685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12686 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12689 LIBS=$lt_globsym_save_LIBS
12690 CFLAGS=$lt_globsym_save_CFLAGS
12692 echo "cannot find nm_test_func in $nlist" >&5
12695 echo "cannot find nm_test_var in $nlist" >&5
12698 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12701 echo "$progname: failed program was:" >&5
12702 cat conftest.$ac_ext >&5
12704 rm -rf conftest* conftst*
12706 # Do not use the global_symbol_pipe unless it works.
12707 if test "$pipe_works" = yes; then
12710 lt_cv_sys_global_symbol_pipe=
12716 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12717 lt_cv_sys_global_symbol_to_cdecl=
12719 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12721 $as_echo "failed" >&6; }
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12724 $as_echo "ok" >&6; }
12727 # Response file support.
12728 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12729 nm_file_list_spec='@'
12730 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12731 nm_file_list_spec='@'
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12761 $as_echo_n "checking for sysroot... " >&6; }
12763 # Check whether --with-sysroot was given.
12764 if test "${with_sysroot+set}" = set; then :
12765 withval=$with_sysroot;
12772 case ${with_sysroot} in #(
12774 if test "$GCC" = yes; then
12775 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12779 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12785 $as_echo "${with_sysroot}" >&6; }
12786 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12791 $as_echo "${lt_sysroot:-no}" >&6; }
12797 # Check whether --enable-libtool-lock was given.
12798 if test "${enable_libtool_lock+set}" = set; then :
12799 enableval=$enable_libtool_lock;
12802 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12804 # Some flags need to be propagated to the compiler or linker for good
12808 # Find out which ABI we are using.
12809 echo 'int i;' > conftest.$ac_ext
12810 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12811 (eval $ac_compile) 2>&5
12813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12814 test $ac_status = 0; }; then
12815 case `/usr/bin/file conftest.$ac_objext` in
12817 HPUX_IA64_MODE="32"
12820 HPUX_IA64_MODE="64"
12827 # Find out which ABI we are using.
12828 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12829 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12830 (eval $ac_compile) 2>&5
12832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12833 test $ac_status = 0; }; then
12834 if test "$lt_cv_prog_gnu_ld" = yes; then
12835 case `/usr/bin/file conftest.$ac_objext` in
12837 LD="${LD-ld} -melf32bsmip"
12840 LD="${LD-ld} -melf32bmipn32"
12843 LD="${LD-ld} -melf64bmip"
12847 case `/usr/bin/file conftest.$ac_objext` in
12863 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12864 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12865 # Find out which ABI we are using.
12866 echo 'int i;' > conftest.$ac_ext
12867 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12868 (eval $ac_compile) 2>&5
12870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12871 test $ac_status = 0; }; then
12872 case `/usr/bin/file conftest.o` in
12875 x86_64-*kfreebsd*-gnu)
12876 LD="${LD-ld} -m elf_i386_fbsd"
12879 LD="${LD-ld} -m elf_i386"
12881 ppc64-*linux*|powerpc64-*linux*)
12882 LD="${LD-ld} -m elf32ppclinux"
12885 LD="${LD-ld} -m elf_s390"
12888 LD="${LD-ld} -m elf32_sparc"
12894 x86_64-*kfreebsd*-gnu)
12895 LD="${LD-ld} -m elf_x86_64_fbsd"
12898 LD="${LD-ld} -m elf_x86_64"
12900 ppc*-*linux*|powerpc*-*linux*)
12901 LD="${LD-ld} -m elf64ppc"
12903 s390*-*linux*|s390*-*tpf*)
12904 LD="${LD-ld} -m elf64_s390"
12907 LD="${LD-ld} -m elf64_sparc"
12917 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12918 SAVE_CFLAGS="$CFLAGS"
12919 CFLAGS="$CFLAGS -belf"
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12921 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12922 if ${lt_cv_cc_needs_belf+:} false; then :
12923 $as_echo_n "(cached) " >&6
12926 ac_cpp='$CPP $CPPFLAGS'
12927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12932 /* end confdefs.h. */
12942 if ac_fn_c_try_link "$LINENO"; then :
12943 lt_cv_cc_needs_belf=yes
12945 lt_cv_cc_needs_belf=no
12947 rm -f core conftest.err conftest.$ac_objext \
12948 conftest$ac_exeext conftest.$ac_ext
12950 ac_cpp='$CPP $CPPFLAGS'
12951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12957 $as_echo "$lt_cv_cc_needs_belf" >&6; }
12958 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12959 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12960 CFLAGS="$SAVE_CFLAGS"
12964 # Find out which ABI we are using.
12965 echo 'int i;' > conftest.$ac_ext
12966 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12967 (eval $ac_compile) 2>&5
12969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12970 test $ac_status = 0; }; then
12971 case `/usr/bin/file conftest.o` in
12973 case $lt_cv_prog_gnu_ld in
12977 LD="${LD-ld} -m elf_x86_64"
12980 LD="${LD-ld} -m elf64_sparc"
12983 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12984 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12989 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13001 need_locks="$enable_libtool_lock"
13003 if test -n "$ac_tool_prefix"; then
13004 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13005 set dummy ${ac_tool_prefix}mt; ac_word=$2
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13007 $as_echo_n "checking for $ac_word... " >&6; }
13008 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13009 $as_echo_n "(cached) " >&6
13011 if test -n "$MANIFEST_TOOL"; then
13012 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13015 for as_dir in $PATH
13018 test -z "$as_dir" && as_dir=.
13019 for ac_exec_ext in '' $ac_executable_extensions; do
13020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13021 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13031 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13032 if test -n "$MANIFEST_TOOL"; then
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13034 $as_echo "$MANIFEST_TOOL" >&6; }
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13037 $as_echo "no" >&6; }
13042 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13043 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13044 # Extract the first word of "mt", so it can be a program name with args.
13045 set dummy mt; ac_word=$2
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13047 $as_echo_n "checking for $ac_word... " >&6; }
13048 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13049 $as_echo_n "(cached) " >&6
13051 if test -n "$ac_ct_MANIFEST_TOOL"; then
13052 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13055 for as_dir in $PATH
13058 test -z "$as_dir" && as_dir=.
13059 for ac_exec_ext in '' $ac_executable_extensions; do
13060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13061 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13071 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13072 if test -n "$ac_ct_MANIFEST_TOOL"; then
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13074 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13077 $as_echo "no" >&6; }
13080 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13083 case $cross_compiling:$ac_tool_warned in
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13086 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13087 ac_tool_warned=yes ;;
13089 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13092 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13095 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13097 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13098 if ${lt_cv_path_mainfest_tool+:} false; then :
13099 $as_echo_n "(cached) " >&6
13101 lt_cv_path_mainfest_tool=no
13102 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13103 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13104 cat conftest.err >&5
13105 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13106 lt_cv_path_mainfest_tool=yes
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13111 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
13112 if test "x$lt_cv_path_mainfest_tool" != xyes; then
13122 rhapsody* | darwin*)
13123 if test -n "$ac_tool_prefix"; then
13124 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13125 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13127 $as_echo_n "checking for $ac_word... " >&6; }
13128 if ${ac_cv_prog_DSYMUTIL+:} false; then :
13129 $as_echo_n "(cached) " >&6
13131 if test -n "$DSYMUTIL"; then
13132 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13135 for as_dir in $PATH
13138 test -z "$as_dir" && as_dir=.
13139 for ac_exec_ext in '' $ac_executable_extensions; do
13140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13141 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13151 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13152 if test -n "$DSYMUTIL"; then
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13154 $as_echo "$DSYMUTIL" >&6; }
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13157 $as_echo "no" >&6; }
13162 if test -z "$ac_cv_prog_DSYMUTIL"; then
13163 ac_ct_DSYMUTIL=$DSYMUTIL
13164 # Extract the first word of "dsymutil", so it can be a program name with args.
13165 set dummy dsymutil; ac_word=$2
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13167 $as_echo_n "checking for $ac_word... " >&6; }
13168 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13169 $as_echo_n "(cached) " >&6
13171 if test -n "$ac_ct_DSYMUTIL"; then
13172 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13175 for as_dir in $PATH
13178 test -z "$as_dir" && as_dir=.
13179 for ac_exec_ext in '' $ac_executable_extensions; do
13180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13181 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13191 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13192 if test -n "$ac_ct_DSYMUTIL"; then
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13194 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13197 $as_echo "no" >&6; }
13200 if test "x$ac_ct_DSYMUTIL" = x; then
13203 case $cross_compiling:$ac_tool_warned in
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13206 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13207 ac_tool_warned=yes ;;
13209 DSYMUTIL=$ac_ct_DSYMUTIL
13212 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13215 if test -n "$ac_tool_prefix"; then
13216 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13217 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13219 $as_echo_n "checking for $ac_word... " >&6; }
13220 if ${ac_cv_prog_NMEDIT+:} false; then :
13221 $as_echo_n "(cached) " >&6
13223 if test -n "$NMEDIT"; then
13224 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13227 for as_dir in $PATH
13230 test -z "$as_dir" && as_dir=.
13231 for ac_exec_ext in '' $ac_executable_extensions; do
13232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13233 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13243 NMEDIT=$ac_cv_prog_NMEDIT
13244 if test -n "$NMEDIT"; then
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13246 $as_echo "$NMEDIT" >&6; }
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13249 $as_echo "no" >&6; }
13254 if test -z "$ac_cv_prog_NMEDIT"; then
13255 ac_ct_NMEDIT=$NMEDIT
13256 # Extract the first word of "nmedit", so it can be a program name with args.
13257 set dummy nmedit; ac_word=$2
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13259 $as_echo_n "checking for $ac_word... " >&6; }
13260 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13261 $as_echo_n "(cached) " >&6
13263 if test -n "$ac_ct_NMEDIT"; then
13264 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13267 for as_dir in $PATH
13270 test -z "$as_dir" && as_dir=.
13271 for ac_exec_ext in '' $ac_executable_extensions; do
13272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13273 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13283 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13284 if test -n "$ac_ct_NMEDIT"; then
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13286 $as_echo "$ac_ct_NMEDIT" >&6; }
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13289 $as_echo "no" >&6; }
13292 if test "x$ac_ct_NMEDIT" = x; then
13295 case $cross_compiling:$ac_tool_warned in
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13298 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13299 ac_tool_warned=yes ;;
13301 NMEDIT=$ac_ct_NMEDIT
13304 NMEDIT="$ac_cv_prog_NMEDIT"
13307 if test -n "$ac_tool_prefix"; then
13308 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13309 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13311 $as_echo_n "checking for $ac_word... " >&6; }
13312 if ${ac_cv_prog_LIPO+:} false; then :
13313 $as_echo_n "(cached) " >&6
13315 if test -n "$LIPO"; then
13316 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13319 for as_dir in $PATH
13322 test -z "$as_dir" && as_dir=.
13323 for ac_exec_ext in '' $ac_executable_extensions; do
13324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13325 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13335 LIPO=$ac_cv_prog_LIPO
13336 if test -n "$LIPO"; then
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13338 $as_echo "$LIPO" >&6; }
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13341 $as_echo "no" >&6; }
13346 if test -z "$ac_cv_prog_LIPO"; then
13348 # Extract the first word of "lipo", so it can be a program name with args.
13349 set dummy lipo; ac_word=$2
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13351 $as_echo_n "checking for $ac_word... " >&6; }
13352 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13353 $as_echo_n "(cached) " >&6
13355 if test -n "$ac_ct_LIPO"; then
13356 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13359 for as_dir in $PATH
13362 test -z "$as_dir" && as_dir=.
13363 for ac_exec_ext in '' $ac_executable_extensions; do
13364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13365 ac_cv_prog_ac_ct_LIPO="lipo"
13366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13375 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13376 if test -n "$ac_ct_LIPO"; then
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13378 $as_echo "$ac_ct_LIPO" >&6; }
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13381 $as_echo "no" >&6; }
13384 if test "x$ac_ct_LIPO" = x; then
13387 case $cross_compiling:$ac_tool_warned in
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13390 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13391 ac_tool_warned=yes ;;
13396 LIPO="$ac_cv_prog_LIPO"
13399 if test -n "$ac_tool_prefix"; then
13400 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13401 set dummy ${ac_tool_prefix}otool; ac_word=$2
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13403 $as_echo_n "checking for $ac_word... " >&6; }
13404 if ${ac_cv_prog_OTOOL+:} false; then :
13405 $as_echo_n "(cached) " >&6
13407 if test -n "$OTOOL"; then
13408 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13411 for as_dir in $PATH
13414 test -z "$as_dir" && as_dir=.
13415 for ac_exec_ext in '' $ac_executable_extensions; do
13416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13417 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13427 OTOOL=$ac_cv_prog_OTOOL
13428 if test -n "$OTOOL"; then
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13430 $as_echo "$OTOOL" >&6; }
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13433 $as_echo "no" >&6; }
13438 if test -z "$ac_cv_prog_OTOOL"; then
13440 # Extract the first word of "otool", so it can be a program name with args.
13441 set dummy otool; ac_word=$2
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13443 $as_echo_n "checking for $ac_word... " >&6; }
13444 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13445 $as_echo_n "(cached) " >&6
13447 if test -n "$ac_ct_OTOOL"; then
13448 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13451 for as_dir in $PATH
13454 test -z "$as_dir" && as_dir=.
13455 for ac_exec_ext in '' $ac_executable_extensions; do
13456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13457 ac_cv_prog_ac_ct_OTOOL="otool"
13458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13467 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13468 if test -n "$ac_ct_OTOOL"; then
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13470 $as_echo "$ac_ct_OTOOL" >&6; }
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13473 $as_echo "no" >&6; }
13476 if test "x$ac_ct_OTOOL" = x; then
13479 case $cross_compiling:$ac_tool_warned in
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13482 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13483 ac_tool_warned=yes ;;
13488 OTOOL="$ac_cv_prog_OTOOL"
13491 if test -n "$ac_tool_prefix"; then
13492 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13493 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13495 $as_echo_n "checking for $ac_word... " >&6; }
13496 if ${ac_cv_prog_OTOOL64+:} false; then :
13497 $as_echo_n "(cached) " >&6
13499 if test -n "$OTOOL64"; then
13500 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13503 for as_dir in $PATH
13506 test -z "$as_dir" && as_dir=.
13507 for ac_exec_ext in '' $ac_executable_extensions; do
13508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13509 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13519 OTOOL64=$ac_cv_prog_OTOOL64
13520 if test -n "$OTOOL64"; then
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13522 $as_echo "$OTOOL64" >&6; }
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13525 $as_echo "no" >&6; }
13530 if test -z "$ac_cv_prog_OTOOL64"; then
13531 ac_ct_OTOOL64=$OTOOL64
13532 # Extract the first word of "otool64", so it can be a program name with args.
13533 set dummy otool64; ac_word=$2
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13535 $as_echo_n "checking for $ac_word... " >&6; }
13536 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13537 $as_echo_n "(cached) " >&6
13539 if test -n "$ac_ct_OTOOL64"; then
13540 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13543 for as_dir in $PATH
13546 test -z "$as_dir" && as_dir=.
13547 for ac_exec_ext in '' $ac_executable_extensions; do
13548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13549 ac_cv_prog_ac_ct_OTOOL64="otool64"
13550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13559 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13560 if test -n "$ac_ct_OTOOL64"; then
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13562 $as_echo "$ac_ct_OTOOL64" >&6; }
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13565 $as_echo "no" >&6; }
13568 if test "x$ac_ct_OTOOL64" = x; then
13571 case $cross_compiling:$ac_tool_warned in
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13575 ac_tool_warned=yes ;;
13577 OTOOL64=$ac_ct_OTOOL64
13580 OTOOL64="$ac_cv_prog_OTOOL64"
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13610 $as_echo_n "checking for -single_module linker flag... " >&6; }
13611 if ${lt_cv_apple_cc_single_mod+:} false; then :
13612 $as_echo_n "(cached) " >&6
13614 lt_cv_apple_cc_single_mod=no
13615 if test -z "${LT_MULTI_MODULE}"; then
13616 # By default we will add the -single_module flag. You can override
13617 # by either setting the environment variable LT_MULTI_MODULE
13618 # non-empty at configure time, or by adding -multi_module to the
13620 rm -rf libconftest.dylib*
13621 echo "int foo(void){return 1;}" > conftest.c
13622 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13623 -dynamiclib -Wl,-single_module conftest.c" >&5
13624 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13625 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13627 # If there is a non-empty error log, and "single_module"
13628 # appears in it, assume the flag caused a linker warning
13629 if test -s conftest.err && $GREP single_module conftest.err; then
13630 cat conftest.err >&5
13631 # Otherwise, if the output was created with a 0 exit code from
13632 # the compiler, it worked.
13633 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
13634 lt_cv_apple_cc_single_mod=yes
13636 cat conftest.err >&5
13638 rm -rf libconftest.dylib*
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13643 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13646 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13647 if ${lt_cv_ld_exported_symbols_list+:} false; then :
13648 $as_echo_n "(cached) " >&6
13650 lt_cv_ld_exported_symbols_list=no
13651 save_LDFLAGS=$LDFLAGS
13652 echo "_main" > conftest.sym
13653 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13655 /* end confdefs.h. */
13665 if ac_fn_c_try_link "$LINENO"; then :
13666 lt_cv_ld_exported_symbols_list=yes
13668 lt_cv_ld_exported_symbols_list=no
13670 rm -f core conftest.err conftest.$ac_objext \
13671 conftest$ac_exeext conftest.$ac_ext
13672 LDFLAGS="$save_LDFLAGS"
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13676 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13679 $as_echo_n "checking for -force_load linker flag... " >&6; }
13680 if ${lt_cv_ld_force_load+:} false; then :
13681 $as_echo_n "(cached) " >&6
13683 lt_cv_ld_force_load=no
13684 cat > conftest.c << _LT_EOF
13685 int forced_loaded() { return 2;}
13687 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13688 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13689 echo "$AR cru libconftest.a conftest.o" >&5
13690 $AR cru libconftest.a conftest.o 2>&5
13691 echo "$RANLIB libconftest.a" >&5
13692 $RANLIB libconftest.a 2>&5
13693 cat > conftest.c << _LT_EOF
13694 int main() { return 0;}
13696 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13697 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13699 if test -s conftest.err && $GREP force_load conftest.err; then
13700 cat conftest.err >&5
13701 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
13702 lt_cv_ld_force_load=yes
13704 cat conftest.err >&5
13706 rm -f conftest.err libconftest.a conftest conftest.c
13707 rm -rf conftest.dSYM
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13711 $as_echo "$lt_cv_ld_force_load" >&6; }
13713 rhapsody* | darwin1.[012])
13714 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13716 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13717 darwin*) # darwin 5.x on
13718 # if running on 10.5 or later, the deployment target defaults
13719 # to the OS version, if on x86, and 10.4, the deployment
13720 # target defaults to 10.4. Don't you love it?
13721 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13722 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13723 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13725 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13727 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13731 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13732 _lt_dar_single_mod='$single_module'
13734 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13735 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13737 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13739 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13740 _lt_dsymutil='~$DSYMUTIL $lib || :'
13747 for ac_header in dlfcn.h
13749 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13751 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13752 cat >>confdefs.h <<_ACEOF
13753 #define HAVE_DLFCN_H 1
13772 # Check whether --enable-shared was given.
13773 if test "${enable_shared+set}" = set; then :
13774 enableval=$enable_shared; p=${PACKAGE-default}
13776 yes) enable_shared=yes ;;
13777 no) enable_shared=no ;;
13780 # Look at the argument we got. We use all the common list separators.
13781 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13782 for pkg in $enableval; do
13784 if test "X$pkg" = "X$p"; then
13803 # Check whether --enable-static was given.
13804 if test "${enable_static+set}" = set; then :
13805 enableval=$enable_static; p=${PACKAGE-default}
13807 yes) enable_static=yes ;;
13808 no) enable_static=no ;;
13811 # Look at the argument we got. We use all the common list separators.
13812 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13813 for pkg in $enableval; do
13815 if test "X$pkg" = "X$p"; then
13835 # Check whether --with-pic was given.
13836 if test "${with_pic+set}" = set; then :
13837 withval=$with_pic; lt_p=${PACKAGE-default}
13839 yes|no) pic_mode=$withval ;;
13842 # Look at the argument we got. We use all the common list separators.
13843 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13844 for lt_pkg in $withval; do
13846 if test "X$lt_pkg" = "X$lt_p"; then
13858 test -z "$pic_mode" && pic_mode=default
13866 # Check whether --enable-fast-install was given.
13867 if test "${enable_fast_install+set}" = set; then :
13868 enableval=$enable_fast_install; p=${PACKAGE-default}
13870 yes) enable_fast_install=yes ;;
13871 no) enable_fast_install=no ;;
13873 enable_fast_install=no
13874 # Look at the argument we got. We use all the common list separators.
13875 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13876 for pkg in $enableval; do
13878 if test "X$pkg" = "X$p"; then
13879 enable_fast_install=yes
13886 enable_fast_install=yes
13899 # This can be used to rebuild libtool when needed
13900 LIBTOOL_DEPS="$ltmain"
13902 # Always use our own libtool.
13903 LIBTOOL='$(SHELL) $(apr_builddir)/libtool'
13934 test -z "$LN_S" && LN_S="ln -s"
13949 if test -n "${ZSH_VERSION+set}" ; then
13950 setopt NO_GLOB_SUBST
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13954 $as_echo_n "checking for objdir... " >&6; }
13955 if ${lt_cv_objdir+:} false; then :
13956 $as_echo_n "(cached) " >&6
13958 rm -f .libs 2>/dev/null
13959 mkdir .libs 2>/dev/null
13960 if test -d .libs; then
13963 # MS-DOS does not allow filenames that begin with a dot.
13966 rmdir .libs 2>/dev/null
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13969 $as_echo "$lt_cv_objdir" >&6; }
13970 objdir=$lt_cv_objdir
13976 cat >>confdefs.h <<_ACEOF
13977 #define LT_OBJDIR "$lt_cv_objdir/"
13985 # AIX sometimes has problems with the GCC collect2 program. For some
13986 # reason, if we set the COLLECT_NAMES environment variable, the problems
13987 # vanish in a puff of smoke.
13988 if test "X${COLLECT_NAMES+set}" != Xset; then
13990 export COLLECT_NAMES
13995 # Global variables:
13997 can_build_shared=yes
13999 # All known linkers require a `.a' archive for static linking (except MSVC,
14000 # which needs '.lib').
14003 with_gnu_ld="$lt_cv_prog_gnu_ld"
14006 old_CFLAGS="$CFLAGS"
14008 # Set sane defaults for various variables
14009 test -z "$CC" && CC=cc
14010 test -z "$LTCC" && LTCC=$CC
14011 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14012 test -z "$LD" && LD=ld
14013 test -z "$ac_objext" && ac_objext=o
14015 for cc_temp in $compiler""; do
14017 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14018 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14023 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14026 # Only perform the check for file, if the check method requires it
14027 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14028 case $deplibs_check_method in
14030 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14032 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14033 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14034 $as_echo_n "(cached) " >&6
14038 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14041 lt_save_MAGIC_CMD="$MAGIC_CMD"
14042 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14043 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14044 for ac_dir in $ac_dummy; do
14046 test -z "$ac_dir" && ac_dir=.
14047 if test -f $ac_dir/${ac_tool_prefix}file; then
14048 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14049 if test -n "$file_magic_test_file"; then
14050 case $deplibs_check_method in
14052 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14053 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14054 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14055 $EGREP "$file_magic_regex" > /dev/null; then
14060 *** Warning: the command libtool uses to detect shared libraries,
14061 *** $file_magic_cmd, produces output that libtool cannot recognize.
14062 *** The result is that libtool may fail to recognize shared libraries
14063 *** as such. This will affect the creation of libtool libraries that
14064 *** depend on shared libraries, but programs linked with such libtool
14065 *** libraries will work regardless of this problem. Nevertheless, you
14066 *** may want to report the problem to your system manager and/or to
14067 *** bug-libtool@gnu.org
14077 MAGIC_CMD="$lt_save_MAGIC_CMD"
14082 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14083 if test -n "$MAGIC_CMD"; then
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14085 $as_echo "$MAGIC_CMD" >&6; }
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14088 $as_echo "no" >&6; }
14095 if test -z "$lt_cv_path_MAGIC_CMD"; then
14096 if test -n "$ac_tool_prefix"; then
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14098 $as_echo_n "checking for file... " >&6; }
14099 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14100 $as_echo_n "(cached) " >&6
14104 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14107 lt_save_MAGIC_CMD="$MAGIC_CMD"
14108 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14109 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14110 for ac_dir in $ac_dummy; do
14112 test -z "$ac_dir" && ac_dir=.
14113 if test -f $ac_dir/file; then
14114 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14115 if test -n "$file_magic_test_file"; then
14116 case $deplibs_check_method in
14118 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14119 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14120 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14121 $EGREP "$file_magic_regex" > /dev/null; then
14126 *** Warning: the command libtool uses to detect shared libraries,
14127 *** $file_magic_cmd, produces output that libtool cannot recognize.
14128 *** The result is that libtool may fail to recognize shared libraries
14129 *** as such. This will affect the creation of libtool libraries that
14130 *** depend on shared libraries, but programs linked with such libtool
14131 *** libraries will work regardless of this problem. Nevertheless, you
14132 *** may want to report the problem to your system manager and/or to
14133 *** bug-libtool@gnu.org
14143 MAGIC_CMD="$lt_save_MAGIC_CMD"
14148 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14149 if test -n "$MAGIC_CMD"; then
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14151 $as_echo "$MAGIC_CMD" >&6; }
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14154 $as_echo "no" >&6; }
14167 # Use C for the default configuration in the libtool script
14171 ac_cpp='$CPP $CPPFLAGS'
14172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14177 # Source file extension for C test sources.
14180 # Object file extension for compiled C test sources.
14184 # Code to be used in simple compile tests
14185 lt_simple_compile_test_code="int some_variable = 0;"
14187 # Code to be used in simple link tests
14188 lt_simple_link_test_code='int main(){return(0);}'
14196 # If no C compiler was specified, use CC.
14199 # If no C compiler flags were specified, use CFLAGS.
14200 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14202 # Allow CC to be a program name with arguments.
14205 # Save the default compiler, since it gets overwritten when the other
14206 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14207 compiler_DEFAULT=$CC
14209 # save warnings/boilerplate of simple test code
14210 ac_outfile=conftest.$ac_objext
14211 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14212 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14213 _lt_compiler_boilerplate=`cat conftest.err`
14216 ac_outfile=conftest.$ac_objext
14217 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14218 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14219 _lt_linker_boilerplate=`cat conftest.err`
14224 ## There is no encapsulation within the following macros, do not change
14225 ## the running order or otherwise move them around unless you know exactly
14226 ## what you are doing...
14227 if test -n "$compiler"; then
14229 lt_prog_compiler_no_builtin_flag=
14231 if test "$GCC" = yes; then
14232 case $cc_basename in
14234 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14236 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14240 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14241 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14242 $as_echo_n "(cached) " >&6
14244 lt_cv_prog_compiler_rtti_exceptions=no
14245 ac_outfile=conftest.$ac_objext
14246 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14247 lt_compiler_flag="-fno-rtti -fno-exceptions"
14248 # Insert the option either (1) after the last *FLAGS variable, or
14249 # (2) before a word containing "conftest.", or (3) at the end.
14250 # Note that $ac_compile itself does not contain backslashes and begins
14251 # with a dollar sign (not a hyphen), so the echo should work correctly.
14252 # The option is referenced via a variable to avoid confusing sed.
14253 lt_compile=`echo "$ac_compile" | $SED \
14254 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14255 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14256 -e 's:$: $lt_compiler_flag:'`
14257 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14258 (eval "$lt_compile" 2>conftest.err)
14260 cat conftest.err >&5
14261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14262 if (exit $ac_status) && test -s "$ac_outfile"; then
14263 # The compiler can only warn and ignore the option if not recognized
14264 # So say no if there are warnings other than the usual output.
14265 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14266 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14267 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14268 lt_cv_prog_compiler_rtti_exceptions=yes
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14275 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14277 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14278 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14290 lt_prog_compiler_wl=
14291 lt_prog_compiler_pic=
14292 lt_prog_compiler_static=
14295 if test "$GCC" = yes; then
14296 lt_prog_compiler_wl='-Wl,'
14297 lt_prog_compiler_static='-static'
14301 # All AIX code is PIC.
14302 if test "$host_cpu" = ia64; then
14303 # AIX 5 now supports IA64 processor
14304 lt_prog_compiler_static='-Bstatic'
14311 # see comment about AmigaOS4 .so support
14312 lt_prog_compiler_pic='-fPIC'
14315 # FIXME: we need at least 68020 code to build shared libraries, but
14316 # adding the `-m68020' flag to GCC prevents building anything better,
14318 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14323 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14324 # PIC is the default for these OSes.
14327 mingw* | cygwin* | pw32* | os2* | cegcc*)
14328 # This hack is so that the source file can tell whether it is being
14329 # built for inclusion in a dll (and should export symbols for example).
14330 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14331 # (--disable-auto-import) libraries
14332 lt_prog_compiler_pic='-DDLL_EXPORT'
14335 darwin* | rhapsody*)
14336 # PIC is the default on this platform
14337 # Common symbols not allowed in MH_DYLIB files
14338 lt_prog_compiler_pic='-fno-common'
14342 # PIC is the default for Haiku.
14343 # The "-static" flag exists, but is broken.
14344 lt_prog_compiler_static=
14348 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14349 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14350 # sets the default TLS model and affects inlining.
14356 lt_prog_compiler_pic='-fPIC'
14362 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14363 # Instead, we relocate shared libraries at runtime.
14367 # Just because we use GCC doesn't mean we suddenly get shared libraries
14368 # on systems that don't support them.
14369 lt_prog_compiler_can_build_shared=no
14374 # QNX uses GNU C++, but need to define -shared option too, otherwise
14375 # it will coredump.
14376 lt_prog_compiler_pic='-fPIC -shared'
14380 if test -d /usr/nec; then
14381 lt_prog_compiler_pic=-Kconform_pic
14386 lt_prog_compiler_pic='-fPIC'
14390 case $cc_basename in
14391 nvcc*) # Cuda Compiler Driver 2.2
14392 lt_prog_compiler_wl='-Xlinker '
14393 if test -n "$lt_prog_compiler_pic"; then
14394 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14399 # PORTME Check for flag to pass linker flags through the system compiler.
14402 lt_prog_compiler_wl='-Wl,'
14403 if test "$host_cpu" = ia64; then
14404 # AIX 5 now supports IA64 processor
14405 lt_prog_compiler_static='-Bstatic'
14407 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14411 mingw* | cygwin* | pw32* | os2* | cegcc*)
14412 # This hack is so that the source file can tell whether it is being
14413 # built for inclusion in a dll (and should export symbols for example).
14414 lt_prog_compiler_pic='-DDLL_EXPORT'
14417 hpux9* | hpux10* | hpux11*)
14418 lt_prog_compiler_wl='-Wl,'
14419 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14420 # not for PA HP-UX.
14426 lt_prog_compiler_pic='+Z'
14429 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14430 lt_prog_compiler_static='${wl}-a ${wl}archive'
14433 irix5* | irix6* | nonstopux*)
14434 lt_prog_compiler_wl='-Wl,'
14435 # PIC (with -KPIC) is the default.
14436 lt_prog_compiler_static='-non_shared'
14439 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14440 case $cc_basename in
14441 # old Intel for x86_64 which still supported -KPIC.
14443 lt_prog_compiler_wl='-Wl,'
14444 lt_prog_compiler_pic='-KPIC'
14445 lt_prog_compiler_static='-static'
14447 # icc used to be incompatible with GCC.
14448 # ICC 10 doesn't accept -KPIC any more.
14450 lt_prog_compiler_wl='-Wl,'
14451 lt_prog_compiler_pic='-fPIC'
14452 lt_prog_compiler_static='-static'
14454 # Lahey Fortran 8.1.
14456 lt_prog_compiler_wl='-Wl,'
14457 lt_prog_compiler_pic='--shared'
14458 lt_prog_compiler_static='--static'
14461 # NAG Fortran compiler
14462 lt_prog_compiler_wl='-Wl,-Wl,,'
14463 lt_prog_compiler_pic='-PIC'
14464 lt_prog_compiler_static='-Bstatic'
14466 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14467 # Portland Group compilers (*not* the Pentium gcc compiler,
14468 # which looks to be a dead project)
14469 lt_prog_compiler_wl='-Wl,'
14470 lt_prog_compiler_pic='-fpic'
14471 lt_prog_compiler_static='-Bstatic'
14474 lt_prog_compiler_wl='-Wl,'
14475 # All Alpha code is PIC.
14476 lt_prog_compiler_static='-non_shared'
14478 xl* | bgxl* | bgf* | mpixl*)
14479 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14480 lt_prog_compiler_wl='-Wl,'
14481 lt_prog_compiler_pic='-qpic'
14482 lt_prog_compiler_static='-qstaticlink'
14485 case `$CC -V 2>&1 | sed 5q` in
14486 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14487 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14488 lt_prog_compiler_pic='-KPIC'
14489 lt_prog_compiler_static='-Bstatic'
14490 lt_prog_compiler_wl=''
14492 *Sun\ F* | *Sun*Fortran*)
14493 lt_prog_compiler_pic='-KPIC'
14494 lt_prog_compiler_static='-Bstatic'
14495 lt_prog_compiler_wl='-Qoption ld '
14499 lt_prog_compiler_pic='-KPIC'
14500 lt_prog_compiler_static='-Bstatic'
14501 lt_prog_compiler_wl='-Wl,'
14503 *Intel*\ [CF]*Compiler*)
14504 lt_prog_compiler_wl='-Wl,'
14505 lt_prog_compiler_pic='-fPIC'
14506 lt_prog_compiler_static='-static'
14509 lt_prog_compiler_wl='-Wl,'
14510 lt_prog_compiler_pic='-fpic'
14511 lt_prog_compiler_static='-Bstatic'
14519 lt_prog_compiler_pic='-KPIC'
14520 lt_prog_compiler_static='-Bstatic'
14524 # QNX uses GNU C++, but need to define -shared option too, otherwise
14525 # it will coredump.
14526 lt_prog_compiler_pic='-fPIC -shared'
14529 osf3* | osf4* | osf5*)
14530 lt_prog_compiler_wl='-Wl,'
14531 # All OSF/1 code is PIC.
14532 lt_prog_compiler_static='-non_shared'
14536 lt_prog_compiler_static='-non_shared'
14540 lt_prog_compiler_pic='-KPIC'
14541 lt_prog_compiler_static='-Bstatic'
14542 case $cc_basename in
14543 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14544 lt_prog_compiler_wl='-Qoption ld ';;
14546 lt_prog_compiler_wl='-Wl,';;
14551 lt_prog_compiler_wl='-Qoption ld '
14552 lt_prog_compiler_pic='-PIC'
14553 lt_prog_compiler_static='-Bstatic'
14556 sysv4 | sysv4.2uw2* | sysv4.3*)
14557 lt_prog_compiler_wl='-Wl,'
14558 lt_prog_compiler_pic='-KPIC'
14559 lt_prog_compiler_static='-Bstatic'
14563 if test -d /usr/nec ;then
14564 lt_prog_compiler_pic='-Kconform_pic'
14565 lt_prog_compiler_static='-Bstatic'
14569 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14570 lt_prog_compiler_wl='-Wl,'
14571 lt_prog_compiler_pic='-KPIC'
14572 lt_prog_compiler_static='-Bstatic'
14576 lt_prog_compiler_wl='-Wl,'
14577 lt_prog_compiler_can_build_shared=no
14581 lt_prog_compiler_pic='-pic'
14582 lt_prog_compiler_static='-Bstatic'
14586 lt_prog_compiler_can_build_shared=no
14592 # For platforms which do not support PIC, -DPIC is meaningless:
14594 lt_prog_compiler_pic=
14597 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14602 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14603 if ${lt_cv_prog_compiler_pic+:} false; then :
14604 $as_echo_n "(cached) " >&6
14606 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14609 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
14610 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14613 # Check to make sure the PIC flag actually works.
14615 if test -n "$lt_prog_compiler_pic"; then
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14617 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14618 if ${lt_cv_prog_compiler_pic_works+:} false; then :
14619 $as_echo_n "(cached) " >&6
14621 lt_cv_prog_compiler_pic_works=no
14622 ac_outfile=conftest.$ac_objext
14623 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14624 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14625 # Insert the option either (1) after the last *FLAGS variable, or
14626 # (2) before a word containing "conftest.", or (3) at the end.
14627 # Note that $ac_compile itself does not contain backslashes and begins
14628 # with a dollar sign (not a hyphen), so the echo should work correctly.
14629 # The option is referenced via a variable to avoid confusing sed.
14630 lt_compile=`echo "$ac_compile" | $SED \
14631 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14632 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14633 -e 's:$: $lt_compiler_flag:'`
14634 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14635 (eval "$lt_compile" 2>conftest.err)
14637 cat conftest.err >&5
14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639 if (exit $ac_status) && test -s "$ac_outfile"; then
14640 # The compiler can only warn and ignore the option if not recognized
14641 # So say no if there are warnings other than the usual output.
14642 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14643 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14644 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14645 lt_cv_prog_compiler_pic_works=yes
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14652 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14654 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14655 case $lt_prog_compiler_pic in
14657 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14660 lt_prog_compiler_pic=
14661 lt_prog_compiler_can_build_shared=no
14677 # Check to make sure the static flag actually works.
14679 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14681 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14682 if ${lt_cv_prog_compiler_static_works+:} false; then :
14683 $as_echo_n "(cached) " >&6
14685 lt_cv_prog_compiler_static_works=no
14686 save_LDFLAGS="$LDFLAGS"
14687 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14688 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14689 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14690 # The linker can only warn and ignore the option if not recognized
14691 # So say no if there are warnings
14692 if test -s conftest.err; then
14693 # Append any errors to the config.log.
14694 cat conftest.err 1>&5
14695 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14696 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14697 if diff conftest.exp conftest.er2 >/dev/null; then
14698 lt_cv_prog_compiler_static_works=yes
14701 lt_cv_prog_compiler_static_works=yes
14705 LDFLAGS="$save_LDFLAGS"
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14709 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14711 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14714 lt_prog_compiler_static=
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14724 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14725 if ${lt_cv_prog_compiler_c_o+:} false; then :
14726 $as_echo_n "(cached) " >&6
14728 lt_cv_prog_compiler_c_o=no
14729 $RM -r conftest 2>/dev/null
14733 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14735 lt_compiler_flag="-o out/conftest2.$ac_objext"
14736 # Insert the option either (1) after the last *FLAGS variable, or
14737 # (2) before a word containing "conftest.", or (3) at the end.
14738 # Note that $ac_compile itself does not contain backslashes and begins
14739 # with a dollar sign (not a hyphen), so the echo should work correctly.
14740 lt_compile=`echo "$ac_compile" | $SED \
14741 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14742 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14743 -e 's:$: $lt_compiler_flag:'`
14744 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14745 (eval "$lt_compile" 2>out/conftest.err)
14747 cat out/conftest.err >&5
14748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14751 # The compiler can only warn and ignore the option if not recognized
14752 # So say no if there are warnings
14753 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14754 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14755 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14756 lt_cv_prog_compiler_c_o=yes
14761 # SGI C++ compiler will create directory out/ii_files/ for
14762 # template instantiation
14763 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14764 $RM out/* && rmdir out
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14771 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14779 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14780 if ${lt_cv_prog_compiler_c_o+:} false; then :
14781 $as_echo_n "(cached) " >&6
14783 lt_cv_prog_compiler_c_o=no
14784 $RM -r conftest 2>/dev/null
14788 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14790 lt_compiler_flag="-o out/conftest2.$ac_objext"
14791 # Insert the option either (1) after the last *FLAGS variable, or
14792 # (2) before a word containing "conftest.", or (3) at the end.
14793 # Note that $ac_compile itself does not contain backslashes and begins
14794 # with a dollar sign (not a hyphen), so the echo should work correctly.
14795 lt_compile=`echo "$ac_compile" | $SED \
14796 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14797 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14798 -e 's:$: $lt_compiler_flag:'`
14799 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14800 (eval "$lt_compile" 2>out/conftest.err)
14802 cat out/conftest.err >&5
14803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14806 # The compiler can only warn and ignore the option if not recognized
14807 # So say no if there are warnings
14808 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14809 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14810 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14811 lt_cv_prog_compiler_c_o=yes
14816 # SGI C++ compiler will create directory out/ii_files/ for
14817 # template instantiation
14818 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14819 $RM out/* && rmdir out
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14826 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14831 hard_links="nottested"
14832 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14833 # do not overwrite the value of need_locks provided by the user
14834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14835 $as_echo_n "checking if we can lock with hard links... " >&6; }
14838 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14840 ln conftest.a conftest.b 2>&5 || hard_links=no
14841 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14843 $as_echo "$hard_links" >&6; }
14844 if test "$hard_links" = no; then
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14846 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14859 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14862 allow_undefined_flag=
14863 always_export_symbols=no
14865 archive_expsym_cmds=
14866 compiler_needs_object=no
14867 enable_shared_with_static_runtimes=no
14868 export_dynamic_flag_spec=
14869 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14870 hardcode_automatic=no
14872 hardcode_direct_absolute=no
14873 hardcode_libdir_flag_spec=
14874 hardcode_libdir_separator=
14875 hardcode_minus_L=no
14876 hardcode_shlibpath_var=unsupported
14878 link_all_deplibs=unknown
14880 module_expsym_cmds=
14881 old_archive_from_new_cmds=
14882 old_archive_from_expsyms_cmds=
14883 thread_safe_flag_spec=
14884 whole_archive_flag_spec=
14885 # include_expsyms should be a list of space-separated symbols to be *always*
14886 # included in the symbol list
14888 # exclude_expsyms can be an extended regexp of symbols to exclude
14889 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14890 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14891 # as well as any symbol that contains `d'.
14892 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14893 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14894 # platforms (ab)use it in PIC code, but their linkers get confused if
14895 # the symbol is explicitly referenced. Since portable code cannot
14896 # rely on this symbol name, it's probably fine to never include it in
14897 # preloaded symbol tables.
14898 # Exclude shared library initialization/finalization symbols.
14899 extract_expsyms_cmds=
14902 cygwin* | mingw* | pw32* | cegcc*)
14903 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14904 # When not using gcc, we currently assume that we are using
14905 # Microsoft Visual C++.
14906 if test "$GCC" != yes; then
14911 # we just hope/assume this is gcc and not c89 (= MSVC++)
14921 # On some targets, GNU ld is compatible enough with the native linker
14922 # that we're better off using the native interface for both.
14923 lt_use_gnu_ld_interface=no
14924 if test "$with_gnu_ld" = yes; then
14927 # The AIX port of GNU ld has always aspired to compatibility
14928 # with the native linker. However, as the warning in the GNU ld
14929 # block says, versions before 2.19.5* couldn't really create working
14930 # shared libraries, regardless of the interface used.
14931 case `$LD -v 2>&1` in
14932 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14933 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14934 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14936 lt_use_gnu_ld_interface=yes
14941 lt_use_gnu_ld_interface=yes
14946 if test "$lt_use_gnu_ld_interface" = yes; then
14947 # If archive_cmds runs LD, not CC, wlarc should be empty
14950 # Set some defaults for GNU ld with shared library support. These
14951 # are reset later if shared libraries are not supported. Putting them
14952 # here allows them to be overridden if necessary.
14953 runpath_var=LD_RUN_PATH
14954 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14955 export_dynamic_flag_spec='${wl}--export-dynamic'
14956 # ancient GNU ld didn't support --whole-archive et. al.
14957 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14958 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14960 whole_archive_flag_spec=
14962 supports_anon_versioning=no
14963 case `$LD -v 2>&1` in
14964 *GNU\ gold*) supports_anon_versioning=yes ;;
14965 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14966 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14967 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14968 *\ 2.11.*) ;; # other 2.11 versions
14969 *) supports_anon_versioning=yes ;;
14972 # See if GNU ld supports shared libraries.
14975 # On AIX/PPC, the GNU linker is very broken
14976 if test "$host_cpu" != ia64; then
14980 *** Warning: the GNU linker, at least up to release 2.19, is reported
14981 *** to be unable to reliably create shared libraries on AIX.
14982 *** Therefore, libtool is disabling shared libraries support. If you
14983 *** really care for shared libraries, you may want to install binutils
14984 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14985 *** You will then need to restart the configuration process.
14994 # see comment about AmigaOS4 .so support
14995 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14996 archive_expsym_cmds=''
14999 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)'
15000 hardcode_libdir_flag_spec='-L$libdir'
15001 hardcode_minus_L=yes
15007 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15008 allow_undefined_flag=unsupported
15009 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15010 # support --undefined. This deserves some investigation. FIXME
15011 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15017 cygwin* | mingw* | pw32* | cegcc*)
15018 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15019 # as there is no search path for DLLs.
15020 hardcode_libdir_flag_spec='-L$libdir'
15021 export_dynamic_flag_spec='${wl}--export-all-symbols'
15022 allow_undefined_flag=unsupported
15023 always_export_symbols=no
15024 enable_shared_with_static_runtimes=yes
15025 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'
15026 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15028 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15029 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15030 # If the export-symbols file already is a .def file (1st line
15031 # is EXPORTS), use it as is; otherwise, prepend...
15032 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15033 cp $export_symbols $output_objdir/$soname.def;
15035 echo EXPORTS > $output_objdir/$soname.def;
15036 cat $export_symbols >> $output_objdir/$soname.def;
15038 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15045 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15046 link_all_deplibs=yes
15051 hardcode_shlibpath_var=no
15052 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15053 export_dynamic_flag_spec='${wl}-E'
15054 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15055 # Instead, shared libraries are loaded at an image base (0x10000000 by
15056 # default) and relocated if they conflict, which is a slow very memory
15057 # consuming and fragmenting process. To avoid this, we pick a random,
15058 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15059 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15060 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15061 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'
15064 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15066 if test "$host_os" = linux-dietlibc; then
15067 case $cc_basename in
15068 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15071 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15072 && test "$tmp_diet" = no
15074 tmp_addflag=' $pic_flag'
15075 tmp_sharedflag='-shared'
15076 case $cc_basename,$host_cpu in
15077 pgcc*) # Portland Group C compiler
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 tmp_addflag=' $pic_flag'
15081 pgf77* | pgf90* | pgf95* | pgfortran*)
15082 # Portland Group f77 and f90 compilers
15083 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'
15084 tmp_addflag=' $pic_flag -Mnomain' ;;
15085 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15086 tmp_addflag=' -i_dynamic' ;;
15087 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15088 tmp_addflag=' -i_dynamic -nofor_main' ;;
15089 ifc* | ifort*) # Intel Fortran compiler
15090 tmp_addflag=' -nofor_main' ;;
15091 lf95*) # Lahey Fortran 8.1
15092 whole_archive_flag_spec=
15093 tmp_sharedflag='--shared' ;;
15094 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15095 tmp_sharedflag='-qmkshrobj'
15097 nvcc*) # Cuda Compiler Driver 2.2
15098 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'
15099 compiler_needs_object=yes
15102 case `$CC -V 2>&1 | sed 5q` in
15103 *Sun\ C*) # Sun C 5.9
15104 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'
15105 compiler_needs_object=yes
15106 tmp_sharedflag='-G' ;;
15107 *Sun\ F*) # Sun Fortran 8.3
15108 tmp_sharedflag='-G' ;;
15110 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15112 if test "x$supports_anon_versioning" = xyes; then
15113 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15114 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15115 echo "local: *; };" >> $output_objdir/$libname.ver~
15116 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15119 case $cc_basename in
15120 xlf* | bgf* | bgxlf* | mpixlf*)
15121 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15122 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15123 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15124 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15125 if test "x$supports_anon_versioning" = xyes; then
15126 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15127 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15128 echo "local: *; };" >> $output_objdir/$libname.ver~
15129 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15139 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15140 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15143 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15144 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 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15153 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15154 *** create shared libraries on Solaris systems. Therefore, libtool
15155 *** is disabling shared libraries support. We urge you to upgrade GNU
15156 *** binutils to release 2.9.1 or newer. Another option is to modify
15157 *** your PATH or compiler configuration so that the native linker is
15158 *** used, and then restart.
15161 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15162 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15163 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15169 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15170 case `$LD -v 2>&1` in
15171 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15175 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15176 *** reliably create shared libraries on SCO systems. Therefore, libtool
15177 *** is disabling shared libraries support. We urge you to upgrade GNU
15178 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15179 *** your PATH or compiler configuration so that the native linker is
15180 *** used, and then restart.
15185 # For security reasons, it is highly recommended that you always
15186 # use absolute paths for naming shared libraries, and exclude the
15187 # DT_RUNPATH tag from executables and libraries. But doing so
15188 # requires that you compile everything twice, which is a pain.
15189 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15190 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15191 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15192 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15201 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15203 hardcode_direct=yes
15204 hardcode_shlibpath_var=no
15208 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15209 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15210 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15217 if test "$ld_shlibs" = no; then
15219 hardcode_libdir_flag_spec=
15220 export_dynamic_flag_spec=
15221 whole_archive_flag_spec=
15224 # PORTME fill in a description of your system's linker (not GNU ld)
15227 allow_undefined_flag=unsupported
15228 always_export_symbols=yes
15229 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'
15230 # Note: this linker hardcodes the directories in LIBPATH if there
15231 # are no directories specified by -L.
15232 hardcode_minus_L=yes
15233 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15234 # Neither direct hardcoding nor static linking is supported with a
15236 hardcode_direct=unsupported
15241 if test "$host_cpu" = ia64; then
15242 # On IA64, the linker does run time linking by default, so we don't
15243 # have to do anything special.
15244 aix_use_runtimelinking=no
15245 exp_sym_flag='-Bexport'
15248 # If we're using GNU nm, then we don't want the "-C" option.
15249 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15250 # Also, AIX nm treats weak defined symbols like other global
15251 # defined symbols, whereas GNU nm marks them as "W".
15252 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15253 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'
15255 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'
15257 aix_use_runtimelinking=no
15259 # Test if we are trying to use run time linking or normal
15260 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15261 # need to do runtime linking.
15262 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15263 for ld_flag in $LDFLAGS; do
15264 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15265 aix_use_runtimelinking=yes
15272 exp_sym_flag='-bexport'
15273 no_entry_flag='-bnoentry'
15276 # When large executables or shared objects are built, AIX ld can
15277 # have problems creating the table of contents. If linking a library
15278 # or program results in "error TOC overflow" add -mminimal-toc to
15279 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15280 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15283 hardcode_direct=yes
15284 hardcode_direct_absolute=yes
15285 hardcode_libdir_separator=':'
15286 link_all_deplibs=yes
15287 file_list_spec='${wl}-f,'
15289 if test "$GCC" = yes; then
15290 case $host_os in aix4.[012]|aix4.[012].*)
15291 # We only want to do this on AIX 4.2 and lower, the check
15292 # below for broken collect2 doesn't work under 4.3+
15293 collect2name=`${CC} -print-prog-name=collect2`
15294 if test -f "$collect2name" &&
15295 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15297 # We have reworked collect2
15300 # We have old collect2
15301 hardcode_direct=unsupported
15302 # It fails to find uninstalled libraries when the uninstalled
15303 # path is not listed in the libpath. Setting hardcode_minus_L
15304 # to unsupported forces relinking
15305 hardcode_minus_L=yes
15306 hardcode_libdir_flag_spec='-L$libdir'
15307 hardcode_libdir_separator=
15311 shared_flag='-shared'
15312 if test "$aix_use_runtimelinking" = yes; then
15313 shared_flag="$shared_flag "'${wl}-G'
15317 if test "$host_cpu" = ia64; then
15318 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15319 # chokes on -Wl,-G. The following line is correct:
15322 if test "$aix_use_runtimelinking" = yes; then
15323 shared_flag='${wl}-G'
15325 shared_flag='${wl}-bM:SRE'
15330 export_dynamic_flag_spec='${wl}-bexpall'
15331 # It seems that -bexpall does not export symbols beginning with
15332 # underscore (_), so it is better to generate a list of symbols to export.
15333 always_export_symbols=yes
15334 if test "$aix_use_runtimelinking" = yes; then
15335 # Warning - without using the other runtime loading flags (-brtl),
15336 # -berok will link without error, but may produce a broken library.
15337 allow_undefined_flag='-berok'
15338 # Determine the default libpath from the value encoded in an
15339 # empty executable.
15340 if test "${lt_cv_aix_libpath+set}" = set; then
15341 aix_libpath=$lt_cv_aix_libpath
15343 if ${lt_cv_aix_libpath_+:} false; then :
15344 $as_echo_n "(cached) " >&6
15346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15347 /* end confdefs.h. */
15357 if ac_fn_c_try_link "$LINENO"; then :
15359 lt_aix_libpath_sed='
15360 /Import File Strings/,/^$/ {
15362 s/^0 *\([^ ]*\) *$/\1/
15366 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15367 # Check for a 64-bit object if we didn't find anything.
15368 if test -z "$lt_cv_aix_libpath_"; then
15369 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15372 rm -f core conftest.err conftest.$ac_objext \
15373 conftest$ac_exeext conftest.$ac_ext
15374 if test -z "$lt_cv_aix_libpath_"; then
15375 lt_cv_aix_libpath_="/usr/lib:/lib"
15380 aix_libpath=$lt_cv_aix_libpath_
15383 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15384 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"
15386 if test "$host_cpu" = ia64; then
15387 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15388 allow_undefined_flag="-z nodefs"
15389 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"
15391 # Determine the default libpath from the value encoded in an
15392 # empty executable.
15393 if test "${lt_cv_aix_libpath+set}" = set; then
15394 aix_libpath=$lt_cv_aix_libpath
15396 if ${lt_cv_aix_libpath_+:} false; then :
15397 $as_echo_n "(cached) " >&6
15399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15400 /* end confdefs.h. */
15410 if ac_fn_c_try_link "$LINENO"; then :
15412 lt_aix_libpath_sed='
15413 /Import File Strings/,/^$/ {
15415 s/^0 *\([^ ]*\) *$/\1/
15419 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15420 # Check for a 64-bit object if we didn't find anything.
15421 if test -z "$lt_cv_aix_libpath_"; then
15422 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15425 rm -f core conftest.err conftest.$ac_objext \
15426 conftest$ac_exeext conftest.$ac_ext
15427 if test -z "$lt_cv_aix_libpath_"; then
15428 lt_cv_aix_libpath_="/usr/lib:/lib"
15433 aix_libpath=$lt_cv_aix_libpath_
15436 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15437 # Warning - without using the other run time loading flags,
15438 # -berok will link without error, but may produce a broken library.
15439 no_undefined_flag=' ${wl}-bernotok'
15440 allow_undefined_flag=' ${wl}-berok'
15441 if test "$with_gnu_ld" = yes; then
15442 # We only use this code for GNU lds that support --whole-archive.
15443 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15445 # Exported symbols can be pulled into shared objects from archives
15446 whole_archive_flag_spec='$convenience'
15448 archive_cmds_need_lc=yes
15449 # This is similar to how AIX traditionally builds its shared libraries.
15450 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'
15458 # see comment about AmigaOS4 .so support
15459 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15460 archive_expsym_cmds=''
15463 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)'
15464 hardcode_libdir_flag_spec='-L$libdir'
15465 hardcode_minus_L=yes
15471 export_dynamic_flag_spec=-rdynamic
15474 cygwin* | mingw* | pw32* | cegcc*)
15475 # When not using gcc, we currently assume that we are using
15476 # Microsoft Visual C++.
15477 # hardcode_libdir_flag_spec is actually meaningless, as there is
15478 # no search path for DLLs.
15479 case $cc_basename in
15482 hardcode_libdir_flag_spec=' '
15483 allow_undefined_flag=unsupported
15484 always_export_symbols=yes
15486 # Tell ltmain to make .lib files, not .a files.
15488 # Tell ltmain to make .dll files, not .so files.
15490 # FIXME: Setting linknames here is a bad hack.
15491 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15492 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15493 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15495 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15497 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15499 # The linker will not automatically build a static lib if we build a DLL.
15500 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15501 enable_shared_with_static_runtimes=yes
15502 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15503 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15505 old_postinstall_cmds='chmod 644 $oldlib'
15506 postlink_cmds='lt_outputfile="@OUTPUT@"~
15507 lt_tool_outputfile="@TOOL_OUTPUT@"~
15508 case $lt_outputfile in
15511 lt_outputfile="$lt_outputfile.exe"
15512 lt_tool_outputfile="$lt_tool_outputfile.exe"
15515 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15516 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15517 $RM "$lt_outputfile.manifest";
15521 # Assume MSVC wrapper
15522 hardcode_libdir_flag_spec=' '
15523 allow_undefined_flag=unsupported
15524 # Tell ltmain to make .lib files, not .a files.
15526 # Tell ltmain to make .dll files, not .so files.
15528 # FIXME: Setting linknames here is a bad hack.
15529 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15530 # The linker will automatically build a .lib file if we build a DLL.
15531 old_archive_from_new_cmds='true'
15532 # FIXME: Should let the user specify the lib program.
15533 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15534 enable_shared_with_static_runtimes=yes
15539 darwin* | rhapsody*)
15542 archive_cmds_need_lc=no
15544 hardcode_automatic=yes
15545 hardcode_shlibpath_var=unsupported
15546 if test "$lt_cv_ld_force_load" = "yes"; then
15547 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\"`'
15550 whole_archive_flag_spec=''
15552 link_all_deplibs=yes
15553 allow_undefined_flag="$_lt_dar_allow_undefined"
15554 case $cc_basename in
15555 ifort*) _lt_dar_can_shared=yes ;;
15556 *) _lt_dar_can_shared=$GCC ;;
15558 if test "$_lt_dar_can_shared" = "yes"; then
15559 output_verbose_link_cmd=func_echo_all
15560 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15561 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15562 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}"
15563 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}"
15572 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15573 hardcode_libdir_flag_spec='-L$libdir'
15574 hardcode_shlibpath_var=no
15577 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15578 # support. Future versions do this automatically, but an explicit c++rt0.o
15579 # does not break anything, and helps significantly (at the cost of a little
15582 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15583 hardcode_libdir_flag_spec='-R$libdir'
15584 hardcode_direct=yes
15585 hardcode_shlibpath_var=no
15588 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15590 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15591 hardcode_direct=yes
15592 hardcode_minus_L=yes
15593 hardcode_shlibpath_var=no
15596 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15597 freebsd* | dragonfly*)
15598 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15599 hardcode_libdir_flag_spec='-R$libdir'
15600 hardcode_direct=yes
15601 hardcode_shlibpath_var=no
15605 if test "$GCC" = yes; then
15606 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'
15608 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'
15610 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15611 hardcode_libdir_separator=:
15612 hardcode_direct=yes
15614 # hardcode_minus_L: Not really in the search PATH,
15615 # but as the default location of the library.
15616 hardcode_minus_L=yes
15617 export_dynamic_flag_spec='${wl}-E'
15621 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15622 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15624 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15626 if test "$with_gnu_ld" = no; then
15627 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15628 hardcode_libdir_separator=:
15629 hardcode_direct=yes
15630 hardcode_direct_absolute=yes
15631 export_dynamic_flag_spec='${wl}-E'
15632 # hardcode_minus_L: Not really in the search PATH,
15633 # but as the default location of the library.
15634 hardcode_minus_L=yes
15639 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15642 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15645 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15648 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15654 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15657 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15661 # Older versions of the 11.00 compiler do not understand -b yet
15662 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15664 $as_echo_n "checking if $CC understands -b... " >&6; }
15665 if ${lt_cv_prog_compiler__b+:} false; then :
15666 $as_echo_n "(cached) " >&6
15668 lt_cv_prog_compiler__b=no
15669 save_LDFLAGS="$LDFLAGS"
15670 LDFLAGS="$LDFLAGS -b"
15671 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15672 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15673 # The linker can only warn and ignore the option if not recognized
15674 # So say no if there are warnings
15675 if test -s conftest.err; then
15676 # Append any errors to the config.log.
15677 cat conftest.err 1>&5
15678 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15679 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15680 if diff conftest.exp conftest.er2 >/dev/null; then
15681 lt_cv_prog_compiler__b=yes
15684 lt_cv_prog_compiler__b=yes
15688 LDFLAGS="$save_LDFLAGS"
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15692 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15694 if test x"$lt_cv_prog_compiler__b" = xyes; then
15695 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15697 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15703 if test "$with_gnu_ld" = no; then
15704 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15705 hardcode_libdir_separator=:
15710 hardcode_shlibpath_var=no
15713 hardcode_direct=yes
15714 hardcode_direct_absolute=yes
15715 export_dynamic_flag_spec='${wl}-E'
15717 # hardcode_minus_L: Not really in the search PATH,
15718 # but as the default location of the library.
15719 hardcode_minus_L=yes
15725 irix5* | irix6* | nonstopux*)
15726 if test "$GCC" = yes; then
15727 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'
15728 # Try to use the -exported_symbol ld option, if it does not
15729 # work, assume that -exports_file does not work either and
15730 # implicitly export all symbols.
15731 # This should be the same for all languages, so no per-tag cache variable.
15732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15733 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15734 if ${lt_cv_irix_exported_symbol+:} false; then :
15735 $as_echo_n "(cached) " >&6
15737 save_LDFLAGS="$LDFLAGS"
15738 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15740 /* end confdefs.h. */
15741 int foo (void) { return 0; }
15743 if ac_fn_c_try_link "$LINENO"; then :
15744 lt_cv_irix_exported_symbol=yes
15746 lt_cv_irix_exported_symbol=no
15748 rm -f core conftest.err conftest.$ac_objext \
15749 conftest$ac_exeext conftest.$ac_ext
15750 LDFLAGS="$save_LDFLAGS"
15752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15753 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
15754 if test "$lt_cv_irix_exported_symbol" = yes; then
15755 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'
15758 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'
15759 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'
15761 archive_cmds_need_lc='no'
15762 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15763 hardcode_libdir_separator=:
15765 link_all_deplibs=yes
15769 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15770 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15772 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15774 hardcode_libdir_flag_spec='-R$libdir'
15775 hardcode_direct=yes
15776 hardcode_shlibpath_var=no
15780 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15781 hardcode_direct=yes
15782 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15783 hardcode_libdir_separator=:
15784 hardcode_shlibpath_var=no
15791 if test -f /usr/libexec/ld.so; then
15792 hardcode_direct=yes
15793 hardcode_shlibpath_var=no
15794 hardcode_direct_absolute=yes
15795 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15796 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15797 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15798 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15799 export_dynamic_flag_spec='${wl}-E'
15802 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15803 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15804 hardcode_libdir_flag_spec='-R$libdir'
15807 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15808 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15818 hardcode_libdir_flag_spec='-L$libdir'
15819 hardcode_minus_L=yes
15820 allow_undefined_flag=unsupported
15821 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'
15822 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15826 if test "$GCC" = yes; then
15827 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15828 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'
15830 allow_undefined_flag=' -expect_unresolved \*'
15831 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'
15833 archive_cmds_need_lc='no'
15834 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15835 hardcode_libdir_separator=:
15838 osf4* | osf5*) # as osf3* with the addition of -msym flag
15839 if test "$GCC" = yes; then
15840 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15841 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'
15842 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15844 allow_undefined_flag=' -expect_unresolved \*'
15845 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'
15846 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~
15847 $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'
15849 # Both c and cxx compiler support -rpath directly
15850 hardcode_libdir_flag_spec='-rpath $libdir'
15852 archive_cmds_need_lc='no'
15853 hardcode_libdir_separator=:
15857 no_undefined_flag=' -z defs'
15858 if test "$GCC" = yes; then
15860 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15861 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15862 $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'
15864 case `$CC -V 2>&1` in
15867 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15868 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15869 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15873 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15874 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15875 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15879 hardcode_libdir_flag_spec='-R$libdir'
15880 hardcode_shlibpath_var=no
15882 solaris2.[0-5] | solaris2.[0-5].*) ;;
15884 # The compiler driver will combine and reorder linker options,
15885 # but understands `-z linker_flag'. GCC discards it without `$wl',
15886 # but is careful enough not to reorder.
15887 # Supported since Solaris 2.6 (maybe 2.5.1?)
15888 if test "$GCC" = yes; then
15889 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15891 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15895 link_all_deplibs=yes
15899 if test "x$host_vendor" = xsequent; then
15900 # Use $CC to link under sequent, because it throws in some extra .o
15901 # files that make .init and .fini sections work.
15902 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15904 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15906 hardcode_libdir_flag_spec='-L$libdir'
15907 hardcode_direct=yes
15908 hardcode_minus_L=yes
15909 hardcode_shlibpath_var=no
15913 case $host_vendor in
15915 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15916 hardcode_direct=yes # is this really true???
15919 ## LD is ld it makes a PLAMLIB
15920 ## CC just makes a GrossModule.
15921 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15922 reload_cmds='$CC -r -o $output$reload_objs'
15926 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15927 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15930 runpath_var='LD_RUN_PATH'
15931 hardcode_shlibpath_var=no
15935 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15936 hardcode_shlibpath_var=no
15937 export_dynamic_flag_spec='-Bexport'
15941 if test -d /usr/nec; then
15942 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15943 hardcode_shlibpath_var=no
15944 runpath_var=LD_RUN_PATH
15945 hardcode_runpath_var=yes
15950 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15951 no_undefined_flag='${wl}-z,text'
15952 archive_cmds_need_lc=no
15953 hardcode_shlibpath_var=no
15954 runpath_var='LD_RUN_PATH'
15956 if test "$GCC" = yes; then
15957 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15958 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15960 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15961 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15965 sysv5* | sco3.2v5* | sco5v6*)
15966 # Note: We can NOT use -z defs as we might desire, because we do not
15967 # link with -lc, and that would cause any symbols used from libc to
15968 # always be unresolved, which means just about no library would
15969 # ever link correctly. If we're not using GNU ld we use -z text
15970 # though, which does catch some bad symbols but isn't as heavy-handed
15972 no_undefined_flag='${wl}-z,text'
15973 allow_undefined_flag='${wl}-z,nodefs'
15974 archive_cmds_need_lc=no
15975 hardcode_shlibpath_var=no
15976 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15977 hardcode_libdir_separator=':'
15978 link_all_deplibs=yes
15979 export_dynamic_flag_spec='${wl}-Bexport'
15980 runpath_var='LD_RUN_PATH'
15982 if test "$GCC" = yes; then
15983 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15984 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15986 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15987 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15992 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15993 hardcode_libdir_flag_spec='-L$libdir'
15994 hardcode_shlibpath_var=no
16002 if test x$host_vendor = xsni; then
16004 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16005 export_dynamic_flag_spec='${wl}-Blargedynsym'
16011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16012 $as_echo "$ld_shlibs" >&6; }
16013 test "$ld_shlibs" = no && can_build_shared=no
16015 with_gnu_ld=$with_gnu_ld
16032 # Do we need to explicitly link libc?
16034 case "x$archive_cmds_need_lc" in
16036 # Assume -lc should be added
16037 archive_cmds_need_lc=yes
16039 if test "$enable_shared" = yes && test "$GCC" = yes; then
16040 case $archive_cmds in
16042 # FIXME: we may have to deal with multi-command sequences.
16045 # Test whether the compiler implicitly links with -lc since on some
16046 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16047 # to ld, don't add -lc before -lgcc.
16048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16049 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16050 if ${lt_cv_archive_cmds_need_lc+:} false; then :
16051 $as_echo_n "(cached) " >&6
16054 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16056 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16057 (eval $ac_compile) 2>&5
16059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16060 test $ac_status = 0; } 2>conftest.err; then
16063 libobjs=conftest.$ac_objext
16065 wl=$lt_prog_compiler_wl
16066 pic_flag=$lt_prog_compiler_pic
16072 lt_save_allow_undefined_flag=$allow_undefined_flag
16073 allow_undefined_flag=
16074 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16075 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16078 test $ac_status = 0; }
16080 lt_cv_archive_cmds_need_lc=no
16082 lt_cv_archive_cmds_need_lc=yes
16084 allow_undefined_flag=$lt_save_allow_undefined_flag
16086 cat conftest.err 1>&5
16091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16092 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16093 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16252 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16254 if test "$GCC" = yes; then
16256 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16257 *) lt_awk_arg="/^libraries:/" ;;
16260 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16261 *) lt_sed_strip_eq="s,=/,/,g" ;;
16263 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16264 case $lt_search_path_spec in
16266 # if the path contains ";" then we assume it to be the separator
16267 # otherwise default to the standard path separator (i.e. ":") - it is
16268 # assumed that no part of a normal pathname contains ";" but that should
16269 # okay in the real world where ";" in dirpaths is itself problematic.
16270 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16273 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16276 # Ok, now we have the path, separated by spaces, we can step through it
16277 # and add multilib dir if necessary.
16278 lt_tmp_lt_search_path_spec=
16279 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16280 for lt_sys_path in $lt_search_path_spec; do
16281 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16282 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16284 test -d "$lt_sys_path" && \
16285 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16288 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16289 BEGIN {RS=" "; FS="/|\n";} {
16292 for (lt_i = NF; lt_i > 0; lt_i--) {
16293 if ($lt_i != "" && $lt_i != ".") {
16294 if ($lt_i == "..") {
16297 if (lt_count == 0) {
16298 lt_foo="/" $lt_i lt_foo;
16305 if (lt_foo != "") { lt_freq[lt_foo]++; }
16306 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16308 # AWK program above erroneously prepends '/' to C:/dos/paths
16311 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16312 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16314 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16316 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16318 library_names_spec=
16319 libname_spec='lib$name'
16323 postuninstall_cmds=
16327 shlibpath_overrides_runpath=unknown
16329 dynamic_linker="$host_os ld.so"
16330 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16331 need_lib_prefix=unknown
16332 hardcode_into_libs=no
16334 # when you set need_version to no, make sure it does not cause -set_version
16335 # flags to be left without arguments
16336 need_version=unknown
16340 version_type=linux # correct to gnu/linux during the next big refactor
16341 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16342 shlibpath_var=LIBPATH
16344 # AIX 3 has no versioning support, so we append a major version to the name.
16345 soname_spec='${libname}${release}${shared_ext}$major'
16349 version_type=linux # correct to gnu/linux during the next big refactor
16352 hardcode_into_libs=yes
16353 if test "$host_cpu" = ia64; then
16354 # AIX 5 supports IA64
16355 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16356 shlibpath_var=LD_LIBRARY_PATH
16358 # With GCC up to 2.95.x, collect2 would create an import file
16359 # for dependence libraries. The import file would start with
16360 # the line `#! .'. This would cause the generated library to
16361 # depend on `.', always an invalid library. This was fixed in
16362 # development snapshots of GCC prior to 3.0.
16364 aix4 | aix4.[01] | aix4.[01].*)
16365 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16367 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16370 can_build_shared=no
16374 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16375 # soname into executable. Probably we can add versioning support to
16376 # collect2, so additional links can be useful in future.
16377 if test "$aix_use_runtimelinking" = yes; then
16378 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16379 # instead of lib<name>.a to let people know that these are not
16380 # typical AIX shared libraries.
16381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16383 # We preserve .a as extension for shared libraries through AIX4.2
16384 # and later when we are not doing run time linking.
16385 library_names_spec='${libname}${release}.a $libname.a'
16386 soname_spec='${libname}${release}${shared_ext}$major'
16388 shlibpath_var=LIBPATH
16395 # Since July 2007 AmigaOS4 officially supports .so libraries.
16396 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16400 library_names_spec='$libname.ixlibrary $libname.a'
16401 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16402 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'
16408 library_names_spec='${libname}${shared_ext}'
16409 dynamic_linker="$host_os ld.so"
16410 shlibpath_var=LIBRARY_PATH
16414 version_type=linux # correct to gnu/linux during the next big refactor
16416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16417 soname_spec='${libname}${release}${shared_ext}$major'
16418 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16419 shlibpath_var=LD_LIBRARY_PATH
16420 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16421 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16422 # the default ld.so.conf also contains /usr/contrib/lib and
16423 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16424 # libtool to hard-code these into programs
16427 cygwin* | mingw* | pw32* | cegcc*)
16428 version_type=windows
16433 case $GCC,$cc_basename in
16436 library_names_spec='$libname.dll.a'
16437 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16438 postinstall_cmds='base_file=`basename \${file}`~
16439 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16440 dldir=$destdir/`dirname \$dlpath`~
16441 test -d \$dldir || mkdir -p \$dldir~
16442 $install_prog $dir/$dlname \$dldir/$dlname~
16443 chmod a+x \$dldir/$dlname~
16444 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16445 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16447 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16448 dlpath=$dir/\$dldll~
16450 shlibpath_overrides_runpath=yes
16454 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16455 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16457 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16460 # MinGW DLLs use traditional 'lib' prefix
16461 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16464 # pw32 DLLs use 'pw' prefix rather than 'lib'
16465 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16468 dynamic_linker='Win32 ld.exe'
16473 libname_spec='$name'
16474 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16475 library_names_spec='${libname}.dll.lib'
16479 sys_lib_search_path_spec=
16482 for lt_path in $LIB
16485 # Let DOS variable expansion print the short 8.3 style file name.
16486 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16487 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16490 # Convert to MSYS style.
16491 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16494 # Convert to unix form, then to dos form, then back to unix form
16495 # but this time dos style (no spaces!) so that the unix form looks
16496 # like /cygdrive/c/PROGRA~1:/cygdr...
16497 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16498 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16499 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16502 sys_lib_search_path_spec="$LIB"
16503 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16504 # It is most probably a Windows format PATH.
16505 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16507 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16509 # FIXME: find the short name or the path components, as spaces are
16510 # common. (e.g. "Program Files" -> "PROGRA~1")
16514 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16515 postinstall_cmds='base_file=`basename \${file}`~
16516 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16517 dldir=$destdir/`dirname \$dlpath`~
16518 test -d \$dldir || mkdir -p \$dldir~
16519 $install_prog $dir/$dlname \$dldir/$dlname'
16520 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16521 dlpath=$dir/\$dldll~
16523 shlibpath_overrides_runpath=yes
16524 dynamic_linker='Win32 link.exe'
16528 # Assume MSVC wrapper
16529 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16530 dynamic_linker='Win32 ld.exe'
16533 # FIXME: first we should search . and the directory the executable is in
16537 darwin* | rhapsody*)
16538 dynamic_linker="$host_os dyld"
16539 version_type=darwin
16542 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16543 soname_spec='${libname}${release}${major}$shared_ext'
16544 shlibpath_overrides_runpath=yes
16545 shlibpath_var=DYLD_LIBRARY_PATH
16546 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16548 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16549 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16553 version_type=linux # correct to gnu/linux during the next big refactor
16556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16557 soname_spec='${libname}${release}${shared_ext}$major'
16558 shlibpath_var=LD_LIBRARY_PATH
16561 freebsd* | dragonfly*)
16562 # DragonFly does not have aout. When/if they implement a new
16563 # versioning mechanism, adjust this.
16564 if test -x /usr/bin/objformat; then
16565 objformat=`/usr/bin/objformat`
16568 freebsd[23].*) objformat=aout ;;
16569 *) objformat=elf ;;
16572 version_type=freebsd-$objformat
16573 case $version_type in
16575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16580 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16584 shlibpath_var=LD_LIBRARY_PATH
16587 shlibpath_overrides_runpath=yes
16589 freebsd3.[01]* | freebsdelf3.[01]*)
16590 shlibpath_overrides_runpath=yes
16591 hardcode_into_libs=yes
16593 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16594 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16595 shlibpath_overrides_runpath=no
16596 hardcode_into_libs=yes
16598 *) # from 4.6 on, and DragonFly
16599 shlibpath_overrides_runpath=yes
16600 hardcode_into_libs=yes
16606 version_type=linux # correct to gnu/linux during the next big refactor
16609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16610 soname_spec='${libname}${release}${shared_ext}$major'
16611 shlibpath_var=LD_LIBRARY_PATH
16612 shlibpath_overrides_runpath=no
16613 hardcode_into_libs=yes
16617 version_type=linux # correct to gnu/linux during the next big refactor
16620 dynamic_linker="$host_os runtime_loader"
16621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16622 soname_spec='${libname}${release}${shared_ext}$major'
16623 shlibpath_var=LIBRARY_PATH
16624 shlibpath_overrides_runpath=yes
16625 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16626 hardcode_into_libs=yes
16629 hpux9* | hpux10* | hpux11*)
16630 # Give a soname corresponding to the major version so that dld.sl refuses to
16631 # link against other versions.
16638 hardcode_into_libs=yes
16639 dynamic_linker="$host_os dld.so"
16640 shlibpath_var=LD_LIBRARY_PATH
16641 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16643 soname_spec='${libname}${release}${shared_ext}$major'
16644 if test "X$HPUX_IA64_MODE" = X32; then
16645 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16647 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16649 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16653 hardcode_into_libs=yes
16654 dynamic_linker="$host_os dld.sl"
16655 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16656 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16658 soname_spec='${libname}${release}${shared_ext}$major'
16659 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16660 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16664 dynamic_linker="$host_os dld.sl"
16665 shlibpath_var=SHLIB_PATH
16666 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16668 soname_spec='${libname}${release}${shared_ext}$major'
16671 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16672 postinstall_cmds='chmod 555 $lib'
16673 # or fails outright, so override atomically:
16674 install_override_mode=555
16678 version_type=linux # correct to gnu/linux during the next big refactor
16681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16682 soname_spec='${libname}${release}${shared_ext}$major'
16683 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16684 shlibpath_var=LD_LIBRARY_PATH
16685 shlibpath_overrides_runpath=no
16686 hardcode_into_libs=yes
16689 irix5* | irix6* | nonstopux*)
16691 nonstopux*) version_type=nonstopux ;;
16693 if test "$lt_cv_prog_gnu_ld" = yes; then
16694 version_type=linux # correct to gnu/linux during the next big refactor
16701 soname_spec='${libname}${release}${shared_ext}$major'
16702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16704 irix5* | nonstopux*)
16705 libsuff= shlibsuff=
16708 case $LD in # libtool.m4 will add one of these switches to LD
16709 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16710 libsuff= shlibsuff= libmagic=32-bit;;
16711 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16712 libsuff=32 shlibsuff=N32 libmagic=N32;;
16713 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16714 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16715 *) libsuff= shlibsuff= libmagic=never-match;;
16719 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16720 shlibpath_overrides_runpath=no
16721 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16722 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16723 hardcode_into_libs=yes
16726 # No shared lib support for Linux oldld, aout, or coff.
16727 linux*oldld* | linux*aout* | linux*coff*)
16731 # This must be glibc/ELF.
16732 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16733 version_type=linux # correct to gnu/linux during the next big refactor
16736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16737 soname_spec='${libname}${release}${shared_ext}$major'
16738 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16739 shlibpath_var=LD_LIBRARY_PATH
16740 shlibpath_overrides_runpath=no
16742 # Some binutils ld are patched to set DT_RUNPATH
16743 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16744 $as_echo_n "(cached) " >&6
16746 lt_cv_shlibpath_overrides_runpath=no
16747 save_LDFLAGS=$LDFLAGS
16748 save_libdir=$libdir
16749 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16750 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16752 /* end confdefs.h. */
16762 if ac_fn_c_try_link "$LINENO"; then :
16763 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16764 lt_cv_shlibpath_overrides_runpath=yes
16767 rm -f core conftest.err conftest.$ac_objext \
16768 conftest$ac_exeext conftest.$ac_ext
16769 LDFLAGS=$save_LDFLAGS
16770 libdir=$save_libdir
16774 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16776 # This implies no fast_install, which is unacceptable.
16777 # Some rework will be needed to allow for fast_install
16778 # before this can be enabled.
16779 hardcode_into_libs=yes
16781 # Append ld.so.conf contents to the search path
16782 if test -f /etc/ld.so.conf; then
16783 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' ' '`
16784 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16787 # We used to test for /lib/ld.so.1 and disable shared libraries on
16788 # powerpc, because MkLinux only supported shared libraries with the
16789 # GNU dynamic linker. Since this was broken with cross compilers,
16790 # most powerpc-linux boxes support dynamic linking these days and
16791 # people can always --disable-shared, the test was removed, and we
16792 # assume the GNU/Linux dynamic linker is in use.
16793 dynamic_linker='GNU/Linux ld.so'
16800 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16802 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16803 dynamic_linker='NetBSD (a.out) ld.so'
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 dynamic_linker='NetBSD ld.elf_so'
16809 shlibpath_var=LD_LIBRARY_PATH
16810 shlibpath_overrides_runpath=yes
16811 hardcode_into_libs=yes
16815 version_type=linux # correct to gnu/linux during the next big refactor
16816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16817 shlibpath_var=LD_LIBRARY_PATH
16818 shlibpath_overrides_runpath=yes
16825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16826 soname_spec='${libname}${release}${shared_ext}$major'
16827 shlibpath_var=LD_LIBRARY_PATH
16828 shlibpath_overrides_runpath=no
16829 hardcode_into_libs=yes
16830 dynamic_linker='ldqnx.so'
16835 sys_lib_dlsearch_path_spec="/usr/lib"
16837 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16839 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16840 *) need_version=no ;;
16842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16843 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16844 shlibpath_var=LD_LIBRARY_PATH
16845 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16847 openbsd2.[89] | openbsd2.[89].*)
16848 shlibpath_overrides_runpath=no
16851 shlibpath_overrides_runpath=yes
16855 shlibpath_overrides_runpath=yes
16860 libname_spec='$name'
16863 library_names_spec='$libname${shared_ext} $libname.a'
16864 dynamic_linker='OS/2 ld.exe'
16865 shlibpath_var=LIBPATH
16868 osf3* | osf4* | osf5*)
16872 soname_spec='${libname}${release}${shared_ext}$major'
16873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16874 shlibpath_var=LD_LIBRARY_PATH
16875 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16876 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16884 version_type=linux # correct to gnu/linux during the next big refactor
16887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16888 soname_spec='${libname}${release}${shared_ext}$major'
16889 shlibpath_var=LD_LIBRARY_PATH
16890 shlibpath_overrides_runpath=yes
16891 hardcode_into_libs=yes
16892 # ldd complains unless libraries are executable
16893 postinstall_cmds='chmod +x $lib'
16898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16899 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16900 shlibpath_var=LD_LIBRARY_PATH
16901 shlibpath_overrides_runpath=yes
16902 if test "$with_gnu_ld" = yes; then
16909 version_type=linux # correct to gnu/linux during the next big refactor
16910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16911 soname_spec='${libname}${release}${shared_ext}$major'
16912 shlibpath_var=LD_LIBRARY_PATH
16913 case $host_vendor in
16915 shlibpath_overrides_runpath=no
16917 runpath_var=LD_RUN_PATH
16925 shlibpath_overrides_runpath=no
16926 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16932 if test -d /usr/nec ;then
16933 version_type=linux # correct to gnu/linux during the next big refactor
16934 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16935 soname_spec='$libname${shared_ext}.$major'
16936 shlibpath_var=LD_LIBRARY_PATH
16940 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16941 version_type=freebsd-elf
16944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16945 soname_spec='${libname}${release}${shared_ext}$major'
16946 shlibpath_var=LD_LIBRARY_PATH
16947 shlibpath_overrides_runpath=yes
16948 hardcode_into_libs=yes
16949 if test "$with_gnu_ld" = yes; then
16950 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16952 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16955 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16959 sys_lib_dlsearch_path_spec='/usr/lib'
16963 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16964 version_type=linux # correct to gnu/linux during the next big refactor
16967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16968 shlibpath_var=LD_LIBRARY_PATH
16969 shlibpath_overrides_runpath=no
16970 hardcode_into_libs=yes
16974 version_type=linux # correct to gnu/linux during the next big refactor
16975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16976 soname_spec='${libname}${release}${shared_ext}$major'
16977 shlibpath_var=LD_LIBRARY_PATH
16984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16985 $as_echo "$dynamic_linker" >&6; }
16986 test "$dynamic_linker" = no && can_build_shared=no
16988 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16989 if test "$GCC" = yes; then
16990 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16993 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16994 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16996 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16997 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17092 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17094 if test -n "$hardcode_libdir_flag_spec" ||
17095 test -n "$runpath_var" ||
17096 test "X$hardcode_automatic" = "Xyes" ; then
17098 # We can hardcode non-existent directories.
17099 if test "$hardcode_direct" != no &&
17100 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17101 # have to relink, otherwise we might link with an installed library
17102 # when we should be linking with a yet-to-be-installed one
17103 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17104 test "$hardcode_minus_L" != no; then
17105 # Linking always hardcodes the temporary library directory.
17106 hardcode_action=relink
17108 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17109 hardcode_action=immediate
17112 # We cannot hardcode anything, or else we can only hardcode existing
17114 hardcode_action=unsupported
17116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17117 $as_echo "$hardcode_action" >&6; }
17119 if test "$hardcode_action" = relink ||
17120 test "$inherit_rpath" = yes; then
17121 # Fast installation is not supported
17122 enable_fast_install=no
17123 elif test "$shlibpath_overrides_runpath" = yes ||
17124 test "$enable_shared" = no; then
17125 # Fast installation is not necessary
17126 enable_fast_install=needless
17134 if test "x$enable_dlopen" != xyes; then
17135 enable_dlopen=unknown
17136 enable_dlopen_self=unknown
17137 enable_dlopen_self_static=unknown
17144 lt_cv_dlopen="load_add_on"
17146 lt_cv_dlopen_self=yes
17149 mingw* | pw32* | cegcc*)
17150 lt_cv_dlopen="LoadLibrary"
17155 lt_cv_dlopen="dlopen"
17160 # if libdl is installed we need to link against it
17161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17162 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17163 if ${ac_cv_lib_dl_dlopen+:} false; then :
17164 $as_echo_n "(cached) " >&6
17166 ac_check_lib_save_LIBS=$LIBS
17168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17169 /* end confdefs.h. */
17171 /* Override any GCC internal prototype to avoid an error.
17172 Use char because int might match the return type of a GCC
17173 builtin and then its argument prototype would still apply. */
17186 if ac_fn_c_try_link "$LINENO"; then :
17187 ac_cv_lib_dl_dlopen=yes
17189 ac_cv_lib_dl_dlopen=no
17191 rm -f core conftest.err conftest.$ac_objext \
17192 conftest$ac_exeext conftest.$ac_ext
17193 LIBS=$ac_check_lib_save_LIBS
17195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17196 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17197 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17198 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17201 lt_cv_dlopen="dyld"
17203 lt_cv_dlopen_self=yes
17210 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17211 if test "x$ac_cv_func_shl_load" = xyes; then :
17212 lt_cv_dlopen="shl_load"
17214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17215 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17216 if ${ac_cv_lib_dld_shl_load+:} false; then :
17217 $as_echo_n "(cached) " >&6
17219 ac_check_lib_save_LIBS=$LIBS
17221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17222 /* end confdefs.h. */
17224 /* Override any GCC internal prototype to avoid an error.
17225 Use char because int might match the return type of a GCC
17226 builtin and then its argument prototype would still apply. */
17234 return shl_load ();
17239 if ac_fn_c_try_link "$LINENO"; then :
17240 ac_cv_lib_dld_shl_load=yes
17242 ac_cv_lib_dld_shl_load=no
17244 rm -f core conftest.err conftest.$ac_objext \
17245 conftest$ac_exeext conftest.$ac_ext
17246 LIBS=$ac_check_lib_save_LIBS
17248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17249 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17250 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17251 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17253 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17254 if test "x$ac_cv_func_dlopen" = xyes; then :
17255 lt_cv_dlopen="dlopen"
17257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17258 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17259 if ${ac_cv_lib_dl_dlopen+:} false; then :
17260 $as_echo_n "(cached) " >&6
17262 ac_check_lib_save_LIBS=$LIBS
17264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17265 /* end confdefs.h. */
17267 /* Override any GCC internal prototype to avoid an error.
17268 Use char because int might match the return type of a GCC
17269 builtin and then its argument prototype would still apply. */
17282 if ac_fn_c_try_link "$LINENO"; then :
17283 ac_cv_lib_dl_dlopen=yes
17285 ac_cv_lib_dl_dlopen=no
17287 rm -f core conftest.err conftest.$ac_objext \
17288 conftest$ac_exeext conftest.$ac_ext
17289 LIBS=$ac_check_lib_save_LIBS
17291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17292 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17293 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17294 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17297 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17298 if ${ac_cv_lib_svld_dlopen+:} false; then :
17299 $as_echo_n "(cached) " >&6
17301 ac_check_lib_save_LIBS=$LIBS
17302 LIBS="-lsvld $LIBS"
17303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17304 /* end confdefs.h. */
17306 /* Override any GCC internal prototype to avoid an error.
17307 Use char because int might match the return type of a GCC
17308 builtin and then its argument prototype would still apply. */
17321 if ac_fn_c_try_link "$LINENO"; then :
17322 ac_cv_lib_svld_dlopen=yes
17324 ac_cv_lib_svld_dlopen=no
17326 rm -f core conftest.err conftest.$ac_objext \
17327 conftest$ac_exeext conftest.$ac_ext
17328 LIBS=$ac_check_lib_save_LIBS
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17331 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17332 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17333 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17336 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17337 if ${ac_cv_lib_dld_dld_link+:} false; then :
17338 $as_echo_n "(cached) " >&6
17340 ac_check_lib_save_LIBS=$LIBS
17342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17343 /* end confdefs.h. */
17345 /* Override any GCC internal prototype to avoid an error.
17346 Use char because int might match the return type of a GCC
17347 builtin and then its argument prototype would still apply. */
17355 return dld_link ();
17360 if ac_fn_c_try_link "$LINENO"; then :
17361 ac_cv_lib_dld_dld_link=yes
17363 ac_cv_lib_dld_dld_link=no
17365 rm -f core conftest.err conftest.$ac_objext \
17366 conftest$ac_exeext conftest.$ac_ext
17367 LIBS=$ac_check_lib_save_LIBS
17369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17370 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17371 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17372 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17393 if test "x$lt_cv_dlopen" != xno; then
17399 case $lt_cv_dlopen in
17401 save_CPPFLAGS="$CPPFLAGS"
17402 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17404 save_LDFLAGS="$LDFLAGS"
17405 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17408 LIBS="$lt_cv_dlopen_libs $LIBS"
17410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17411 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17412 if ${lt_cv_dlopen_self+:} false; then :
17413 $as_echo_n "(cached) " >&6
17415 if test "$cross_compiling" = yes; then :
17416 lt_cv_dlopen_self=cross
17418 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17419 lt_status=$lt_dlunknown
17420 cat > conftest.$ac_ext <<_LT_EOF
17421 #line $LINENO "configure"
17422 #include "confdefs.h"
17431 # define LT_DLGLOBAL RTLD_GLOBAL
17434 # define LT_DLGLOBAL DL_GLOBAL
17436 # define LT_DLGLOBAL 0
17440 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17441 find out it does not work in some platform. */
17442 #ifndef LT_DLLAZY_OR_NOW
17444 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17447 # define LT_DLLAZY_OR_NOW DL_LAZY
17450 # define LT_DLLAZY_OR_NOW RTLD_NOW
17453 # define LT_DLLAZY_OR_NOW DL_NOW
17455 # define LT_DLLAZY_OR_NOW 0
17462 /* When -fvisbility=hidden is used, assume the code has been annotated
17463 correspondingly for the symbols needed. */
17464 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17465 int fnord () __attribute__((visibility("default")));
17468 int fnord () { return 42; }
17471 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17472 int status = $lt_dlunknown;
17476 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17479 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17480 else puts (dlerror ());
17482 /* dlclose (self); */
17490 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17491 (eval $ac_link) 2>&5
17493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17494 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17495 (./conftest; exit; ) >&5 2>/dev/null
17497 case x$lt_status in
17498 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17499 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17500 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17503 # compilation failed
17504 lt_cv_dlopen_self=no
17511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17512 $as_echo "$lt_cv_dlopen_self" >&6; }
17514 if test "x$lt_cv_dlopen_self" = xyes; then
17515 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17517 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17518 if ${lt_cv_dlopen_self_static+:} false; then :
17519 $as_echo_n "(cached) " >&6
17521 if test "$cross_compiling" = yes; then :
17522 lt_cv_dlopen_self_static=cross
17524 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17525 lt_status=$lt_dlunknown
17526 cat > conftest.$ac_ext <<_LT_EOF
17527 #line $LINENO "configure"
17528 #include "confdefs.h"
17537 # define LT_DLGLOBAL RTLD_GLOBAL
17540 # define LT_DLGLOBAL DL_GLOBAL
17542 # define LT_DLGLOBAL 0
17546 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17547 find out it does not work in some platform. */
17548 #ifndef LT_DLLAZY_OR_NOW
17550 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17553 # define LT_DLLAZY_OR_NOW DL_LAZY
17556 # define LT_DLLAZY_OR_NOW RTLD_NOW
17559 # define LT_DLLAZY_OR_NOW DL_NOW
17561 # define LT_DLLAZY_OR_NOW 0
17568 /* When -fvisbility=hidden is used, assume the code has been annotated
17569 correspondingly for the symbols needed. */
17570 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17571 int fnord () __attribute__((visibility("default")));
17574 int fnord () { return 42; }
17577 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17578 int status = $lt_dlunknown;
17582 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17585 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17586 else puts (dlerror ());
17588 /* dlclose (self); */
17596 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17597 (eval $ac_link) 2>&5
17599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17600 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17601 (./conftest; exit; ) >&5 2>/dev/null
17603 case x$lt_status in
17604 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17605 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17606 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17609 # compilation failed
17610 lt_cv_dlopen_self_static=no
17617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17618 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17621 CPPFLAGS="$save_CPPFLAGS"
17622 LDFLAGS="$save_LDFLAGS"
17627 case $lt_cv_dlopen_self in
17628 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17629 *) enable_dlopen_self=unknown ;;
17632 case $lt_cv_dlopen_self_static in
17633 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17634 *) enable_dlopen_self_static=unknown ;;
17656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17657 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17658 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17659 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17660 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17662 $as_echo "yes" >&6; }
17664 # FIXME - insert some real tests, host_os isn't really good enough
17667 if test -n "$STRIP" ; then
17668 striplib="$STRIP -x"
17669 old_striplib="$STRIP -S"
17670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17671 $as_echo "yes" >&6; }
17673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17674 $as_echo "no" >&6; }
17678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17679 $as_echo "no" >&6; }
17695 # Report which library types will actually be built
17696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17697 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17699 $as_echo "$can_build_shared" >&6; }
17701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17702 $as_echo_n "checking whether to build shared libraries... " >&6; }
17703 test "$can_build_shared" = "no" && enable_shared=no
17705 # On AIX, shared libraries and static libraries use the same namespace, and
17706 # are all built from PIC.
17709 test "$enable_shared" = yes && enable_static=no
17710 if test -n "$RANLIB"; then
17711 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17712 postinstall_cmds='$RANLIB $lib'
17717 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17718 test "$enable_shared" = yes && enable_static=no
17722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17723 $as_echo "$enable_shared" >&6; }
17725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17726 $as_echo_n "checking whether to build static libraries... " >&6; }
17727 # Make sure either enable_shared or enable_static is yes.
17728 test "$enable_shared" = yes || enable_static=yes
17729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17730 $as_echo "$enable_static" >&6; }
17737 ac_cpp='$CPP $CPPFLAGS'
17738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17758 ac_config_commands="$ac_config_commands libtool"
17763 # Only expand once:
17766 # get libtool's setting of shlibpath_var
17767 eval `grep "^shlibpath_var=[A-Z_]*$" $apr_builddir/libtool`
17768 if test "x$shlibpath_var" = "x"; then
17769 shlibpath_var=REPLACE_WITH_YOUR_SHLIBPATH_VAR
17776 # Check whether --with-installbuilddir was given.
17777 if test "${with_installbuilddir+set}" = set; then :
17778 withval=$with_installbuilddir; installbuilddir=$withval
17780 installbuilddir="${datadir}/build-${APR_MAJOR_VERSION}"
17786 # Check whether --with-libtool was given.
17787 if test "${with_libtool+set}" = set; then :
17788 withval=$with_libtool; use_libtool=$withval
17794 if test "x$use_libtool" = "xyes"; then
17795 lt_compile='$(LIBTOOL) $(LTFLAGS) --mode=compile $(COMPILE) -o $@ -c $< && touch $@'
17796 LT_VERSION="-version-info `$get_version libtool $version_hdr APR`"
17797 link="\$(LIBTOOL) \$(LTFLAGS) --mode=link \$(LT_LDFLAGS) \$(COMPILE) \$(LT_VERSION) \$(ALL_LDFLAGS) -o \$@"
17799 lib_target='-rpath $(libdir) $(OBJECTS)'
17800 export_lib_target='-rpath \$(libdir) \$(OBJECTS)'
17802 lt_compile='$(COMPILE) -o $@ -c $<'
17803 link='$(AR) cr $(TARGET_LIB) $(OBJECTS); $(RANLIB) $(TARGET_LIB)'
17806 export_lib_target=''
17811 apr_platform_runtime_link_flag="-R"
17829 echo "${nl}Check for compiler flags..."
17834 if test "$ac_test_CFLAGS" != set; then
17836 if test "x$CFLAGS" = "x-g"; then
17837 test "x$silent" != "xyes" && echo " nulling CFLAGS"
17842 for i in $CFLAGS; do
17843 if test "x$i" != "x-g"; then
17844 apr_new_bugger="$apr_new_bugger $i"
17849 if test $apr_removed = "1"; then
17850 test "x$silent" != "xyes" && echo " removed \"-g\" from CFLAGS"
17851 CFLAGS=$apr_new_bugger
17859 # Check whether --enable-debug was given.
17860 if test "${enable_debug+set}" = set; then :
17861 enableval=$enable_debug;
17862 if test "x$CFLAGS" = "x"; then
17863 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-g\""
17866 apr_addto_bugger="-g"
17867 for i in $apr_addto_bugger; do
17868 apr_addto_duplicate="0"
17869 for j in $CFLAGS; do
17870 if test "x$i" = "x$j"; then
17871 apr_addto_duplicate="1"
17875 if test $apr_addto_duplicate = "0"; then
17876 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
17877 CFLAGS="$CFLAGS $i"
17882 if test "$GCC" = "yes"; then
17884 if test "x$CFLAGS" = "x"; then
17885 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Wall\""
17888 apr_addto_bugger="-Wall"
17889 for i in $apr_addto_bugger; do
17890 apr_addto_duplicate="0"
17891 for j in $CFLAGS; do
17892 if test "x$i" = "x$j"; then
17893 apr_addto_duplicate="1"
17897 if test $apr_addto_duplicate = "0"; then
17898 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
17899 CFLAGS="$CFLAGS $i"
17904 elif test "$AIX_XLC" = "yes"; then
17906 if test "x$CFLAGS" = "x"; then
17907 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-qfullpath\""
17908 CFLAGS="-qfullpath"
17910 apr_addto_bugger="-qfullpath"
17911 for i in $apr_addto_bugger; do
17912 apr_addto_duplicate="0"
17913 for j in $CFLAGS; do
17914 if test "x$i" = "x$j"; then
17915 apr_addto_duplicate="1"
17919 if test $apr_addto_duplicate = "0"; then
17920 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
17921 CFLAGS="$CFLAGS $i"
17930 # Check whether --enable-maintainer-mode was given.
17931 if test "${enable_maintainer_mode+set}" = set; then :
17932 enableval=$enable_maintainer_mode;
17933 if test "x$CFLAGS" = "x"; then
17934 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-g\""
17937 apr_addto_bugger="-g"
17938 for i in $apr_addto_bugger; do
17939 apr_addto_duplicate="0"
17940 for j in $CFLAGS; do
17941 if test "x$i" = "x$j"; then
17942 apr_addto_duplicate="1"
17946 if test $apr_addto_duplicate = "0"; then
17947 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
17948 CFLAGS="$CFLAGS $i"
17953 if test "$GCC" = "yes"; then
17955 if test "x$CFLAGS" = "x"; then
17956 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations\""
17957 CFLAGS="-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations"
17959 apr_addto_bugger="-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations"
17960 for i in $apr_addto_bugger; do
17961 apr_addto_duplicate="0"
17962 for j in $CFLAGS; do
17963 if test "x$i" = "x$j"; then
17964 apr_addto_duplicate="1"
17968 if test $apr_addto_duplicate = "0"; then
17969 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
17970 CFLAGS="$CFLAGS $i"
17975 elif test "$AIX_XLC" = "yes"; then
17977 if test "x$CFLAGS" = "x"; then
17978 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro\""
17979 CFLAGS="-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro"
17981 apr_addto_bugger="-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro"
17982 for i in $apr_addto_bugger; do
17983 apr_addto_duplicate="0"
17984 for j in $CFLAGS; do
17985 if test "x$i" = "x$j"; then
17986 apr_addto_duplicate="1"
17990 if test $apr_addto_duplicate = "0"; then
17991 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
17992 CFLAGS="$CFLAGS $i"
18001 # Check whether --enable-profile was given.
18002 if test "${enable_profile+set}" = set; then :
18003 enableval=$enable_profile; if test "$GCC" = "yes"; then
18005 if test "x$CFLAGS" = "x"; then
18006 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-pg\""
18009 apr_addto_bugger="-pg"
18010 for i in $apr_addto_bugger; do
18011 apr_addto_duplicate="0"
18012 for j in $CFLAGS; do
18013 if test "x$i" = "x$j"; then
18014 apr_addto_duplicate="1"
18018 if test $apr_addto_duplicate = "0"; then
18019 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
18020 CFLAGS="$CFLAGS $i"
18026 if test "x$CFLAGS" = "x-g"; then
18027 test "x$silent" != "xyes" && echo " nulling CFLAGS"
18032 for i in $CFLAGS; do
18033 if test "x$i" != "x-g"; then
18034 apr_new_bugger="$apr_new_bugger $i"
18039 if test $apr_removed = "1"; then
18040 test "x$silent" != "xyes" && echo " removed \"-g\" from CFLAGS"
18041 CFLAGS=$apr_new_bugger
18045 if test "$host" = "i586-pc-beos"; then
18047 if test "x$CFLAGS" = "x-O2"; then
18048 test "x$silent" != "xyes" && echo " nulling CFLAGS"
18053 for i in $CFLAGS; do
18054 if test "x$i" != "x-O2"; then
18055 apr_new_bugger="$apr_new_bugger $i"
18060 if test $apr_removed = "1"; then
18061 test "x$silent" != "xyes" && echo " removed \"-O2\" from CFLAGS"
18062 CFLAGS=$apr_new_bugger
18067 if test "x$CFLAGS" = "x"; then
18068 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-O1\""
18071 apr_addto_bugger="-O1"
18072 for i in $apr_addto_bugger; do
18073 apr_addto_duplicate="0"
18074 for j in $CFLAGS; do
18075 if test "x$i" = "x$j"; then
18076 apr_addto_duplicate="1"
18080 if test $apr_addto_duplicate = "0"; then
18081 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
18082 CFLAGS="$CFLAGS $i"
18088 if test "x$LDFLAGS" = "x"; then
18089 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-p\""
18092 apr_addto_bugger="-p"
18093 for i in $apr_addto_bugger; do
18094 apr_addto_duplicate="0"
18095 for j in $LDFLAGS; do
18096 if test "x$i" = "x$j"; then
18097 apr_addto_duplicate="1"
18101 if test $apr_addto_duplicate = "0"; then
18102 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
18103 LDFLAGS="$LDFLAGS $i"
18113 # Check whether --enable-pool-debug was given.
18114 if test "${enable_pool_debug+set}" = set; then :
18115 enableval=$enable_pool_debug; if test -z "$enableval"; then
18117 if test "x$CPPFLAGS" = "x"; then
18118 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DAPR_POOL_DEBUG=1\""
18119 CPPFLAGS="-DAPR_POOL_DEBUG=1"
18121 apr_addto_bugger="-DAPR_POOL_DEBUG=1"
18122 for i in $apr_addto_bugger; do
18123 apr_addto_duplicate="0"
18124 for j in $CPPFLAGS; do
18125 if test "x$i" = "x$j"; then
18126 apr_addto_duplicate="1"
18130 if test $apr_addto_duplicate = "0"; then
18131 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
18132 CPPFLAGS="$CPPFLAGS $i"
18137 elif test ! "$enableval" = "no"; then
18140 for i in $enableval
18167 if test $flag -gt 0; then
18168 apr_pool_debug=`expr '(' $apr_pool_debug - $apr_pool_debug % \
18169 '(' $flag '*' 2 ')' ')' + $flag + $apr_pool_debug % $flag`
18174 if test "x$CPPFLAGS" = "x"; then
18175 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DAPR_POOL_DEBUG=$apr_pool_debug\""
18176 CPPFLAGS="-DAPR_POOL_DEBUG=$apr_pool_debug"
18178 apr_addto_bugger="-DAPR_POOL_DEBUG=$apr_pool_debug"
18179 for i in $apr_addto_bugger; do
18180 apr_addto_duplicate="0"
18181 for j in $CPPFLAGS; do
18182 if test "x$i" = "x$j"; then
18183 apr_addto_duplicate="1"
18187 if test $apr_addto_duplicate = "0"; then
18188 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
18189 CPPFLAGS="$CPPFLAGS $i"
18199 if test "$host" = "i586-pc-beos"; then
18200 # Check whether --enable-malloc-debug was given.
18201 if test "${enable_malloc_debug+set}" = set; then :
18202 enableval=$enable_malloc_debug;
18203 if test "x$CFLAGS" = "x-O2"; then
18204 test "x$silent" != "xyes" && echo " nulling CFLAGS"
18209 for i in $CFLAGS; do
18210 if test "x$i" != "x-O2"; then
18211 apr_new_bugger="$apr_new_bugger $i"
18216 if test $apr_removed = "1"; then
18217 test "x$silent" != "xyes" && echo " removed \"-O2\" from CFLAGS"
18218 CFLAGS=$apr_new_bugger
18223 if test "x$CPPFLAGS" = "x"; then
18224 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-fcheck-memory-usage -D_KERNEL_MODE\""
18225 CPPFLAGS="-fcheck-memory-usage -D_KERNEL_MODE"
18227 apr_addto_bugger="-fcheck-memory-usage -D_KERNEL_MODE"
18228 for i in $apr_addto_bugger; do
18229 apr_addto_duplicate="0"
18230 for j in $CPPFLAGS; do
18231 if test "x$i" = "x$j"; then
18232 apr_addto_duplicate="1"
18236 if test $apr_addto_duplicate = "0"; then
18237 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
18238 CPPFLAGS="$CPPFLAGS $i"
18247 # this is the place to put specific options for platform/compiler
18249 case "$host:$CC" in
18252 if test "x$CFLAGS" = "x"; then
18253 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Ae +Z\""
18256 apr_addto_bugger="-Ae +Z"
18257 for i in $apr_addto_bugger; do
18258 apr_addto_duplicate="0"
18259 for j in $CFLAGS; do
18260 if test "x$i" = "x$j"; then
18261 apr_addto_duplicate="1"
18265 if test $apr_addto_duplicate = "0"; then
18266 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
18267 CFLAGS="$CFLAGS $i"
18276 if echo "$CFLAGS " | grep '+DA' >/dev/null; then :
18279 if test "x$CFLAGS" = "x"; then
18280 test "x$silent" != "xyes" && echo " setting CFLAGS to \"+DAportable\""
18281 CFLAGS="+DAportable"
18283 apr_addto_bugger="+DAportable"
18284 for i in $apr_addto_bugger; do
18285 apr_addto_duplicate="0"
18286 for j in $CFLAGS; do
18287 if test "x$i" = "x$j"; then
18288 apr_addto_duplicate="1"
18292 if test $apr_addto_duplicate = "0"; then
18293 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
18294 CFLAGS="$CFLAGS $i"
18303 powerpc-*-beos:mwcc* )
18305 test "x$silent" != "xyes" && echo " forcing CPP to \"mwcc -E\""
18309 test "x$silent" != "xyes" && echo " forcing CC to \"mwcc\""
18313 test "x$silent" != "xyes" && echo " forcing AR to \"ar\""
18319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler provides atomic builtins" >&5
18320 $as_echo_n "checking whether the compiler provides atomic builtins... " >&6; }
18321 if ${ap_cv_atomic_builtins+:} false; then :
18322 $as_echo_n "(cached) " >&6
18324 if test "$cross_compiling" = yes; then :
18325 ap_cv_atomic_builtins=no
18327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18328 /* end confdefs.h. */
18332 unsigned long val = 1010, tmp, *mem = &val;
18334 if (__sync_fetch_and_add(&val, 1010) != 1010 || val != 2020)
18339 if (__sync_fetch_and_sub(mem, 1010) != tmp || val != 1010)
18342 if (__sync_sub_and_fetch(&val, 1010) != 0 || val != 0)
18347 if (__sync_val_compare_and_swap(mem, 0, tmp) != 0 || val != tmp)
18350 if (__sync_lock_test_and_set(&val, 4040) != 3030)
18355 if (__sync_val_compare_and_swap(&mem, &tmp, &val) != &tmp)
18358 __sync_synchronize();
18366 if ac_fn_c_try_run "$LINENO"; then :
18367 ap_cv_atomic_builtins=yes
18369 ap_cv_atomic_builtins=no
18371 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18372 conftest.$ac_objext conftest.beam conftest.$ac_ext
18376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ap_cv_atomic_builtins" >&5
18377 $as_echo "$ap_cv_atomic_builtins" >&6; }
18379 if test "$ap_cv_atomic_builtins" = "yes"; then
18381 $as_echo "#define HAVE_ATOMIC_BUILTINS 1" >>confdefs.h
18387 # The IBM ppc405cr processor has a bugged stwcx instruction.
18389 $as_echo "#define PPC405_ERRATA 1" >>confdefs.h
18397 if test "$GCC" = "yes"; then
18401 cat > conftest.c <<EOF
18402 #include <sys/types.h>
18403 int main() { return 0; }
18406 for i in "$CC -MM" "$CC -M" "$CPP -MM" "$CPP -M" "cpp -M"; do
18407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $i can create proper make dependencies" >&5
18408 $as_echo_n "checking if $i can create proper make dependencies... " >&6; }
18409 if $i conftest.c 2>/dev/null | grep 'conftest.o: conftest.c' >/dev/null; then
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18412 $as_echo "yes" >&6; }
18415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18416 $as_echo "no" >&6; }
18424 proc_mutex_is_global=0
18426 config_subdirs="none"
18427 INSTALL_SUBDIRS="none"
18428 OBJECTS_PLATFORM='$(OBJECTS_unix)'
18431 i386-ibm-aix* | *-ibm-aix[1-2].* | *-ibm-aix3.* | *-ibm-aix4.1 | *-ibm-aix4.1.* | *-ibm-aix4.2 | *-ibm-aix4.2.*)
18434 if test "x$LDFLAGS" = "x"; then
18435 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-lld\""
18438 apr_addto_bugger="-lld"
18439 for i in $apr_addto_bugger; do
18440 apr_addto_duplicate="0"
18441 for j in $LDFLAGS; do
18442 if test "x$i" = "x$j"; then
18443 apr_addto_duplicate="1"
18447 if test $apr_addto_duplicate = "0"; then
18448 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
18449 LDFLAGS="$LDFLAGS $i"
18455 OBJECTS_PLATFORM='$(OBJECTS_aix)'
18459 if test "x$CPPFLAGS" = "x"; then
18460 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DOS2\""
18463 apr_addto_bugger="-DOS2"
18464 for i in $apr_addto_bugger; do
18465 apr_addto_duplicate="0"
18466 for j in $CPPFLAGS; do
18467 if test "x$i" = "x$j"; then
18468 apr_addto_duplicate="1"
18472 if test $apr_addto_duplicate = "0"; then
18473 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
18474 CPPFLAGS="$CPPFLAGS $i"
18480 if test "x$CFLAGS" = "x"; then
18481 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Zmt\""
18484 apr_addto_bugger="-Zmt"
18485 for i in $apr_addto_bugger; do
18486 apr_addto_duplicate="0"
18487 for j in $CFLAGS; do
18488 if test "x$i" = "x$j"; then
18489 apr_addto_duplicate="1"
18493 if test $apr_addto_duplicate = "0"; then
18494 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
18495 CFLAGS="$CFLAGS $i"
18500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random in -lbsd" >&5
18501 $as_echo_n "checking for random in -lbsd... " >&6; }
18502 if ${ac_cv_lib_bsd_random+:} false; then :
18503 $as_echo_n "(cached) " >&6
18505 ac_check_lib_save_LIBS=$LIBS
18507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18508 /* end confdefs.h. */
18510 /* Override any GCC internal prototype to avoid an error.
18511 Use char because int might match the return type of a GCC
18512 builtin and then its argument prototype would still apply. */
18525 if ac_fn_c_try_link "$LINENO"; then :
18526 ac_cv_lib_bsd_random=yes
18528 ac_cv_lib_bsd_random=no
18530 rm -f core conftest.err conftest.$ac_objext \
18531 conftest$ac_exeext conftest.$ac_ext
18532 LIBS=$ac_check_lib_save_LIBS
18534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_random" >&5
18535 $as_echo "$ac_cv_lib_bsd_random" >&6; }
18536 if test "x$ac_cv_lib_bsd_random" = xyes; then :
18537 cat >>confdefs.h <<_ACEOF
18538 #define HAVE_LIBBSD 1
18546 enable_threads="system_threads"
18549 proc_mutex_is_global=1
18550 OBJECTS_PLATFORM='$(OBJECTS_os2)'
18555 if test "x$CPPFLAGS" = "x"; then
18556 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DBEOS\""
18559 apr_addto_bugger="-DBEOS"
18560 for i in $apr_addto_bugger; do
18561 apr_addto_duplicate="0"
18562 for j in $CPPFLAGS; do
18563 if test "x$i" = "x$j"; then
18564 apr_addto_duplicate="1"
18568 if test $apr_addto_duplicate = "0"; then
18569 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
18570 CPPFLAGS="$CPPFLAGS $i"
18575 enable_threads="system_threads"
18576 native_mmap_emul="1"
18578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BONE_VERSION in sys/socket.h" >&5
18579 $as_echo_n "checking for BONE_VERSION in sys/socket.h... " >&6; }
18580 if ${ac_cv_define_BONE_VERSION+:} false; then :
18581 $as_echo_n "(cached) " >&6
18584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18585 /* end confdefs.h. */
18587 #include <sys/socket.h>
18588 #ifdef BONE_VERSION
18593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18594 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
18595 ac_cv_define_BONE_VERSION=yes
18597 ac_cv_define_BONE_VERSION=no
18603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_BONE_VERSION" >&5
18604 $as_echo "$ac_cv_define_BONE_VERSION" >&6; }
18605 if test "$ac_cv_define_BONE_VERSION" = "yes"; then
18607 $as_echo "#define HAVE_BONE_VERSION 1" >>confdefs.h
18613 proc_mutex_is_global=1
18614 OBJECTS_PLATFORM='$(OBJECTS_beos)'
18626 OBJECTS_PLATFORM='$(OBJECTS_os390)'
18635 enable_threads="system_threads"
18638 proc_mutex_is_global=1
18639 OBJECTS_PLATFORM='$(OBJECTS_win32)'
18643 enable_threads="no"
18647 enable_threads="no"
18659 # Check whether LFS has explicitly been disabled
18660 # Check whether --enable-lfs was given.
18661 if test "${enable_lfs+set}" = set; then :
18662 enableval=$enable_lfs; apr_lfs_choice=$enableval
18668 if test "$apr_lfs_choice" = "yes"; then
18669 # Check whether the transitional LFS API is sufficient
18670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable -D_LARGEFILE64_SOURCE" >&5
18671 $as_echo_n "checking whether to enable -D_LARGEFILE64_SOURCE... " >&6; }
18672 if ${apr_cv_use_lfs64+:} false; then :
18673 $as_echo_n "(cached) " >&6
18676 apr_save_CPPFLAGS=$CPPFLAGS
18677 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
18678 if test "$cross_compiling" = yes; then :
18679 apr_cv_use_lfs64=no
18681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18682 /* end confdefs.h. */
18684 #include <sys/types.h>
18685 #include <sys/stat.h>
18687 #include <stdlib.h>
18689 #include <unistd.h>
18695 off64_t off = 4242;
18697 if (sizeof(off64_t) != 8 || sizeof(off_t) != 4)
18699 if ((fd = open("conftest.lfs", O_LARGEFILE|O_CREAT|O_WRONLY, 0644)) < 0)
18701 if (ftruncate64(fd, off) != 0)
18703 else if (fstat64(fd, &st) != 0 || st.st_size != off)
18705 else if (lseek64(fd, off, SEEK_SET) != off)
18707 else if (close(fd) != 0)
18709 else if (lstat64("conftest.lfs", &st) != 0 || st.st_size != off)
18711 else if (stat64("conftest.lfs", &st) != 0 || st.st_size != off)
18713 unlink("conftest.lfs");
18718 if ac_fn_c_try_run "$LINENO"; then :
18719 apr_cv_use_lfs64=yes
18721 apr_cv_use_lfs64=no
18723 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18724 conftest.$ac_objext conftest.beam conftest.$ac_ext
18727 CPPFLAGS=$apr_save_CPPFLAGS
18729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_use_lfs64" >&5
18730 $as_echo "$apr_cv_use_lfs64" >&6; }
18731 if test "$apr_cv_use_lfs64" = "yes"; then
18733 if test "x$CPPFLAGS" = "x"; then
18734 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_LARGEFILE64_SOURCE\""
18735 CPPFLAGS="-D_LARGEFILE64_SOURCE"
18737 apr_addto_bugger="-D_LARGEFILE64_SOURCE"
18738 for i in $apr_addto_bugger; do
18739 apr_addto_duplicate="0"
18740 for j in $CPPFLAGS; do
18741 if test "x$i" = "x$j"; then
18742 apr_addto_duplicate="1"
18746 if test $apr_addto_duplicate = "0"; then
18747 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
18748 CPPFLAGS="$CPPFLAGS $i"
18756 # Check whether --enable-nonportable-atomics was given.
18757 if test "${enable_nonportable_atomics+set}" = set; then :
18758 enableval=$enable_nonportable_atomics; if test $enableval = yes; then
18759 force_generic_atomics=no
18761 force_generic_atomics=yes
18766 i[456]86) force_generic_atomics=yes ;;
18767 *) force_generic_atomics=no ;;
18773 if test $force_generic_atomics = yes; then
18775 $as_echo "#define USE_ATOMICS_GENERIC 1" >>confdefs.h
18783 # For some platforms we need a version string which allows easy numeric
18787 if test -x /sbin/sysctl; then
18788 os_version=`/sbin/sysctl -n kern.osreldate`
18794 os_version=`uname -r | sed -e 's/\(.\)\.\(.\)\.\(.\).*/\1\2\3/'`
18797 os_version=`uname -r | sed -e 's/\.//g'`
18800 os_version=OS_VERSION_IS_NOT_SET
18804 echo "${nl}Checking for libraries..."
18809 if test "x$LIBS" = "x"; then
18810 test "x$silent" != "xyes" && echo " setting LIBS to \"-lshell32 -ladvapi32 -lws2_32 -lrpcrt4 -lmswsock\""
18811 LIBS="-lshell32 -ladvapi32 -lws2_32 -lrpcrt4 -lmswsock"
18813 apr_addto_bugger="-lshell32 -ladvapi32 -lws2_32 -lrpcrt4 -lmswsock"
18814 for i in $apr_addto_bugger; do
18815 apr_addto_duplicate="0"
18817 if test "x$i" = "x$j"; then
18818 apr_addto_duplicate="1"
18822 if test $apr_addto_duplicate = "0"; then
18823 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
18829 ac_cv_func_CreateFileMapping=yes
18832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
18833 $as_echo_n "checking for library containing gethostbyname... " >&6; }
18834 if ${ac_cv_search_gethostbyname+:} false; then :
18835 $as_echo_n "(cached) " >&6
18837 ac_func_search_save_LIBS=$LIBS
18838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18839 /* end confdefs.h. */
18841 /* Override any GCC internal prototype to avoid an error.
18842 Use char because int might match the return type of a GCC
18843 builtin and then its argument prototype would still apply. */
18847 char gethostbyname ();
18851 return gethostbyname ();
18856 for ac_lib in '' nsl; do
18857 if test -z "$ac_lib"; then
18858 ac_res="none required"
18861 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18863 if ac_fn_c_try_link "$LINENO"; then :
18864 ac_cv_search_gethostbyname=$ac_res
18866 rm -f core conftest.err conftest.$ac_objext \
18868 if ${ac_cv_search_gethostbyname+:} false; then :
18872 if ${ac_cv_search_gethostbyname+:} false; then :
18875 ac_cv_search_gethostbyname=no
18877 rm conftest.$ac_ext
18878 LIBS=$ac_func_search_save_LIBS
18880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
18881 $as_echo "$ac_cv_search_gethostbyname" >&6; }
18882 ac_res=$ac_cv_search_gethostbyname
18883 if test "$ac_res" != no; then :
18884 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostname" >&5
18889 $as_echo_n "checking for library containing gethostname... " >&6; }
18890 if ${ac_cv_search_gethostname+:} false; then :
18891 $as_echo_n "(cached) " >&6
18893 ac_func_search_save_LIBS=$LIBS
18894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18895 /* end confdefs.h. */
18897 /* Override any GCC internal prototype to avoid an error.
18898 Use char because int might match the return type of a GCC
18899 builtin and then its argument prototype would still apply. */
18903 char gethostname ();
18907 return gethostname ();
18912 for ac_lib in '' nsl; do
18913 if test -z "$ac_lib"; then
18914 ac_res="none required"
18917 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18919 if ac_fn_c_try_link "$LINENO"; then :
18920 ac_cv_search_gethostname=$ac_res
18922 rm -f core conftest.err conftest.$ac_objext \
18924 if ${ac_cv_search_gethostname+:} false; then :
18928 if ${ac_cv_search_gethostname+:} false; then :
18931 ac_cv_search_gethostname=no
18933 rm conftest.$ac_ext
18934 LIBS=$ac_func_search_save_LIBS
18936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostname" >&5
18937 $as_echo "$ac_cv_search_gethostname" >&6; }
18938 ac_res=$ac_cv_search_gethostname
18939 if test "$ac_res" != no; then :
18940 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
18945 $as_echo_n "checking for library containing socket... " >&6; }
18946 if ${ac_cv_search_socket+:} false; then :
18947 $as_echo_n "(cached) " >&6
18949 ac_func_search_save_LIBS=$LIBS
18950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18951 /* end confdefs.h. */
18953 /* Override any GCC internal prototype to avoid an error.
18954 Use char because int might match the return type of a GCC
18955 builtin and then its argument prototype would still apply. */
18968 for ac_lib in '' socket; do
18969 if test -z "$ac_lib"; then
18970 ac_res="none required"
18973 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18975 if ac_fn_c_try_link "$LINENO"; then :
18976 ac_cv_search_socket=$ac_res
18978 rm -f core conftest.err conftest.$ac_objext \
18980 if ${ac_cv_search_socket+:} false; then :
18984 if ${ac_cv_search_socket+:} false; then :
18987 ac_cv_search_socket=no
18989 rm conftest.$ac_ext
18990 LIBS=$ac_func_search_save_LIBS
18992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
18993 $as_echo "$ac_cv_search_socket" >&6; }
18994 ac_res=$ac_cv_search_socket
18995 if test "$ac_res" != no; then :
18996 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
19001 $as_echo_n "checking for library containing crypt... " >&6; }
19002 if ${ac_cv_search_crypt+:} false; then :
19003 $as_echo_n "(cached) " >&6
19005 ac_func_search_save_LIBS=$LIBS
19006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19007 /* end confdefs.h. */
19009 /* Override any GCC internal prototype to avoid an error.
19010 Use char because int might match the return type of a GCC
19011 builtin and then its argument prototype would still apply. */
19024 for ac_lib in '' crypt ufc; do
19025 if test -z "$ac_lib"; then
19026 ac_res="none required"
19029 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19031 if ac_fn_c_try_link "$LINENO"; then :
19032 ac_cv_search_crypt=$ac_res
19034 rm -f core conftest.err conftest.$ac_objext \
19036 if ${ac_cv_search_crypt+:} false; then :
19040 if ${ac_cv_search_crypt+:} false; then :
19043 ac_cv_search_crypt=no
19045 rm conftest.$ac_ext
19046 LIBS=$ac_func_search_save_LIBS
19048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
19049 $as_echo "$ac_cv_search_crypt" >&6; }
19050 ac_res=$ac_cv_search_crypt
19051 if test "$ac_res" != no; then :
19052 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ltruerand" >&5
19057 $as_echo_n "checking for main in -ltruerand... " >&6; }
19058 if ${ac_cv_lib_truerand_main+:} false; then :
19059 $as_echo_n "(cached) " >&6
19061 ac_check_lib_save_LIBS=$LIBS
19062 LIBS="-ltruerand $LIBS"
19063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19064 /* end confdefs.h. */
19075 if ac_fn_c_try_link "$LINENO"; then :
19076 ac_cv_lib_truerand_main=yes
19078 ac_cv_lib_truerand_main=no
19080 rm -f core conftest.err conftest.$ac_objext \
19081 conftest$ac_exeext conftest.$ac_ext
19082 LIBS=$ac_check_lib_save_LIBS
19084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_truerand_main" >&5
19085 $as_echo "$ac_cv_lib_truerand_main" >&6; }
19086 if test "x$ac_cv_lib_truerand_main" = xyes; then :
19087 cat >>confdefs.h <<_ACEOF
19088 #define HAVE_LIBTRUERAND 1
19091 LIBS="-ltruerand $LIBS"
19095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing modf" >&5
19096 $as_echo_n "checking for library containing modf... " >&6; }
19097 if ${ac_cv_search_modf+:} false; then :
19098 $as_echo_n "(cached) " >&6
19100 ac_func_search_save_LIBS=$LIBS
19101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19102 /* end confdefs.h. */
19104 /* Override any GCC internal prototype to avoid an error.
19105 Use char because int might match the return type of a GCC
19106 builtin and then its argument prototype would still apply. */
19119 for ac_lib in '' m; do
19120 if test -z "$ac_lib"; then
19121 ac_res="none required"
19124 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19126 if ac_fn_c_try_link "$LINENO"; then :
19127 ac_cv_search_modf=$ac_res
19129 rm -f core conftest.err conftest.$ac_objext \
19131 if ${ac_cv_search_modf+:} false; then :
19135 if ${ac_cv_search_modf+:} false; then :
19138 ac_cv_search_modf=no
19140 rm conftest.$ac_ext
19141 LIBS=$ac_func_search_save_LIBS
19143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_modf" >&5
19144 $as_echo "$ac_cv_search_modf" >&6; }
19145 ac_res=$ac_cv_search_modf
19146 if test "$ac_res" != no; then :
19147 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19154 echo "${nl}Checking for Threads..."
19156 if test -z "$enable_threads"; then
19157 # Check whether --enable-threads was given.
19158 if test "${enable_threads+set}" = set; then :
19159 enableval=$enable_threads; enable_threads=$enableval
19162 if test "$GCC" = "yes"; then
19163 SAVE_FL="$CPPFLAGS"
19164 CPPFLAGS="$CPPFLAGS -w"
19165 for ac_header in pthread.h
19167 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19168 if test "x$ac_cv_header_pthread_h" = xyes; then :
19169 cat >>confdefs.h <<_ACEOF
19170 #define HAVE_PTHREAD_H 1
19172 enable_threads="pthread"
19174 enable_threads="no"
19179 CPPFLAGS="$SAVE_FL"
19181 for ac_header in pthread.h
19183 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19184 if test "x$ac_cv_header_pthread_h" = xyes; then :
19185 cat >>confdefs.h <<_ACEOF
19186 #define HAVE_PTHREAD_H 1
19188 enable_threads="pthread"
19190 enable_threads="no"
19201 if test "$enable_threads" = "no"; then
19206 if test "$enable_threads" = "pthread"; then
19207 # We have specified pthreads for our threading library, just make sure
19208 # that we have everything we need
19210 apr_pthsv_CFLAGS="$CFLAGS"
19211 apr_pthsv_LIBS="$LIBS"
19215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS needed for pthreads" >&5
19216 $as_echo_n "checking for CFLAGS needed for pthreads... " >&6; }
19217 if ${apr_cv_pthreads_cflags+:} false; then :
19218 $as_echo_n "(cached) " >&6
19220 apr_ptc_cflags=$CFLAGS
19221 for flag in none -kthread -pthread -pthreads -mt -mthreads -Kthread -threads; do
19222 CFLAGS=$apr_ptc_cflags
19223 test "x$flag" != "xnone" && CFLAGS="$CFLAGS $flag"
19225 if test "$cross_compiling" = yes; then :
19228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19229 /* end confdefs.h. */
19231 #include <pthread.h>
19232 #include <stddef.h>
19234 void *thread_routine(void *data) {
19240 pthread_mutexattr_t mattr;
19241 pthread_once_t once_init = PTHREAD_ONCE_INIT;
19243 pthread_mutexattr_init(&mattr);
19244 return pthread_create(&thd, NULL, thread_routine, &data);
19247 if ac_fn_c_try_run "$LINENO"; then :
19252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19253 conftest.$ac_objext conftest.beam conftest.$ac_ext
19257 if test $apr_p_t_r = yes; then
19259 apr_cv_pthreads_cflags="$flag"
19266 CFLAGS=$apr_ptc_cflags
19269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_pthreads_cflags" >&5
19270 $as_echo "$apr_cv_pthreads_cflags" >&6; }
19272 if test -n "$apr_cv_pthreads_cflags"; then
19273 pthreads_working=yes
19274 if test "x$apr_cv_pthreads_cflags" != "xnone"; then
19276 if test "x$CFLAGS" = "x"; then
19277 test "x$silent" != "xyes" && echo " setting CFLAGS to \"$apr_cv_pthreads_cflags\""
19278 CFLAGS="$apr_cv_pthreads_cflags"
19280 apr_addto_bugger="$apr_cv_pthreads_cflags"
19281 for i in $apr_addto_bugger; do
19282 apr_addto_duplicate="0"
19283 for j in $CFLAGS; do
19284 if test "x$i" = "x$j"; then
19285 apr_addto_duplicate="1"
19289 if test $apr_addto_duplicate = "0"; then
19290 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
19291 CFLAGS="$CFLAGS $i"
19299 # The CFLAGS may or may not be sufficient to ensure that libapr
19300 # depends on the pthreads library: some versions of libtool
19301 # drop -pthread when passed on the link line; some versions of
19302 # gcc ignore -pthread when linking a shared object. So always
19303 # try and add the relevant library to LIBS too.
19305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS needed for pthreads" >&5
19306 $as_echo_n "checking for LIBS needed for pthreads... " >&6; }
19307 if ${apr_cv_pthreads_lib+:} false; then :
19308 $as_echo_n "(cached) " >&6
19312 for lib in -lpthread -lpthreads -lc_r; do
19313 LIBS="$apr_ptc_libs $lib"
19315 if test "$cross_compiling" = yes; then :
19318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19319 /* end confdefs.h. */
19321 #include <pthread.h>
19322 #include <stddef.h>
19324 void *thread_routine(void *data) {
19330 pthread_mutexattr_t mattr;
19331 pthread_once_t once_init = PTHREAD_ONCE_INIT;
19333 pthread_mutexattr_init(&mattr);
19334 return pthread_create(&thd, NULL, thread_routine, &data);
19337 if ac_fn_c_try_run "$LINENO"; then :
19342 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19343 conftest.$ac_objext conftest.beam conftest.$ac_ext
19347 if test $apr_p_t_r = yes; then
19349 apr_cv_pthreads_lib=$lib
19359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_pthreads_lib" >&5
19360 $as_echo "$apr_cv_pthreads_lib" >&6; }
19362 if test -n "$apr_cv_pthreads_lib"; then
19363 pthreads_working=yes
19365 if test "x$LIBS" = "x"; then
19366 test "x$silent" != "xyes" && echo " setting LIBS to \"$apr_cv_pthreads_lib\""
19367 LIBS="$apr_cv_pthreads_lib"
19369 apr_addto_bugger="$apr_cv_pthreads_lib"
19370 for i in $apr_addto_bugger; do
19371 apr_addto_duplicate="0"
19373 if test "x$i" = "x$j"; then
19374 apr_addto_duplicate="1"
19378 if test $apr_addto_duplicate = "0"; then
19379 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
19387 if test "$pthreads_working" = "yes"; then
19388 threads_result="POSIX Threads found"
19390 threads_result="POSIX Threads not found"
19394 if test "$GCC" = "yes"; then
19395 SAVE_FL="$CPPFLAGS"
19396 CPPFLAGS="$CPPFLAGS -w"
19397 for ac_header in pthread.h
19399 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19400 if test "x$ac_cv_header_pthread_h" = xyes; then :
19401 cat >>confdefs.h <<_ACEOF
19402 #define HAVE_PTHREAD_H 1
19414 CFLAGS="$apr_pthsv_CFLAGS"
19415 LIBS="$apr_pthsv_LIBS"
19421 CPPFLAGS="$SAVE_FL"
19423 for ac_header in pthread.h
19425 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19426 if test "x$ac_cv_header_pthread_h" = xyes; then :
19427 cat >>confdefs.h <<_ACEOF
19428 #define HAVE_PTHREAD_H 1
19440 CFLAGS="$apr_pthsv_CFLAGS"
19441 LIBS="$apr_pthsv_LIBS"
19449 elif test "$enable_threads" = "system_threads"; then
19454 # We basically specified that we wanted threads, but not how to implement
19455 # them. In this case, just look for pthreads. In the future, we can check
19456 # for other threading libraries as well.
19458 apr_pthsv_CFLAGS="$CFLAGS"
19459 apr_pthsv_LIBS="$LIBS"
19463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS needed for pthreads" >&5
19464 $as_echo_n "checking for CFLAGS needed for pthreads... " >&6; }
19465 if ${apr_cv_pthreads_cflags+:} false; then :
19466 $as_echo_n "(cached) " >&6
19468 apr_ptc_cflags=$CFLAGS
19469 for flag in none -kthread -pthread -pthreads -mt -mthreads -Kthread -threads; do
19470 CFLAGS=$apr_ptc_cflags
19471 test "x$flag" != "xnone" && CFLAGS="$CFLAGS $flag"
19473 if test "$cross_compiling" = yes; then :
19476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19477 /* end confdefs.h. */
19479 #include <pthread.h>
19480 #include <stddef.h>
19482 void *thread_routine(void *data) {
19488 pthread_mutexattr_t mattr;
19489 pthread_once_t once_init = PTHREAD_ONCE_INIT;
19491 pthread_mutexattr_init(&mattr);
19492 return pthread_create(&thd, NULL, thread_routine, &data);
19495 if ac_fn_c_try_run "$LINENO"; then :
19500 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19501 conftest.$ac_objext conftest.beam conftest.$ac_ext
19505 if test $apr_p_t_r = yes; then
19507 apr_cv_pthreads_cflags="$flag"
19514 CFLAGS=$apr_ptc_cflags
19517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_pthreads_cflags" >&5
19518 $as_echo "$apr_cv_pthreads_cflags" >&6; }
19520 if test -n "$apr_cv_pthreads_cflags"; then
19521 pthreads_working=yes
19522 if test "x$apr_cv_pthreads_cflags" != "xnone"; then
19524 if test "x$CFLAGS" = "x"; then
19525 test "x$silent" != "xyes" && echo " setting CFLAGS to \"$apr_cv_pthreads_cflags\""
19526 CFLAGS="$apr_cv_pthreads_cflags"
19528 apr_addto_bugger="$apr_cv_pthreads_cflags"
19529 for i in $apr_addto_bugger; do
19530 apr_addto_duplicate="0"
19531 for j in $CFLAGS; do
19532 if test "x$i" = "x$j"; then
19533 apr_addto_duplicate="1"
19537 if test $apr_addto_duplicate = "0"; then
19538 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
19539 CFLAGS="$CFLAGS $i"
19547 # The CFLAGS may or may not be sufficient to ensure that libapr
19548 # depends on the pthreads library: some versions of libtool
19549 # drop -pthread when passed on the link line; some versions of
19550 # gcc ignore -pthread when linking a shared object. So always
19551 # try and add the relevant library to LIBS too.
19553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS needed for pthreads" >&5
19554 $as_echo_n "checking for LIBS needed for pthreads... " >&6; }
19555 if ${apr_cv_pthreads_lib+:} false; then :
19556 $as_echo_n "(cached) " >&6
19560 for lib in -lpthread -lpthreads -lc_r; do
19561 LIBS="$apr_ptc_libs $lib"
19563 if test "$cross_compiling" = yes; then :
19566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19567 /* end confdefs.h. */
19569 #include <pthread.h>
19570 #include <stddef.h>
19572 void *thread_routine(void *data) {
19578 pthread_mutexattr_t mattr;
19579 pthread_once_t once_init = PTHREAD_ONCE_INIT;
19581 pthread_mutexattr_init(&mattr);
19582 return pthread_create(&thd, NULL, thread_routine, &data);
19585 if ac_fn_c_try_run "$LINENO"; then :
19590 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19591 conftest.$ac_objext conftest.beam conftest.$ac_ext
19595 if test $apr_p_t_r = yes; then
19597 apr_cv_pthreads_lib=$lib
19607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_pthreads_lib" >&5
19608 $as_echo "$apr_cv_pthreads_lib" >&6; }
19610 if test -n "$apr_cv_pthreads_lib"; then
19611 pthreads_working=yes
19613 if test "x$LIBS" = "x"; then
19614 test "x$silent" != "xyes" && echo " setting LIBS to \"$apr_cv_pthreads_lib\""
19615 LIBS="$apr_cv_pthreads_lib"
19617 apr_addto_bugger="$apr_cv_pthreads_lib"
19618 for i in $apr_addto_bugger; do
19619 apr_addto_duplicate="0"
19621 if test "x$i" = "x$j"; then
19622 apr_addto_duplicate="1"
19626 if test $apr_addto_duplicate = "0"; then
19627 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
19635 if test "$pthreads_working" = "yes"; then
19636 threads_result="POSIX Threads found"
19638 threads_result="POSIX Threads not found"
19642 if test "$GCC" = "yes"; then
19643 SAVE_FL="$CPPFLAGS"
19644 CPPFLAGS="$CPPFLAGS -w"
19645 for ac_header in pthread.h
19647 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19648 if test "x$ac_cv_header_pthread_h" = xyes; then :
19649 cat >>confdefs.h <<_ACEOF
19650 #define HAVE_PTHREAD_H 1
19662 CFLAGS="$apr_pthsv_CFLAGS"
19663 LIBS="$apr_pthsv_LIBS"
19669 CPPFLAGS="$SAVE_FL"
19671 for ac_header in pthread.h
19673 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19674 if test "x$ac_cv_header_pthread_h" = xyes; then :
19675 cat >>confdefs.h <<_ACEOF
19676 #define HAVE_PTHREAD_H 1
19688 CFLAGS="$apr_pthsv_CFLAGS"
19689 LIBS="$apr_pthsv_LIBS"
19698 if test "$pthreadh" = "1"; then
19700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_getspecific takes two arguments" >&5
19701 $as_echo_n "checking whether pthread_getspecific takes two arguments... " >&6; }
19702 if ${ac_cv_pthread_getspecific_two_args+:} false; then :
19703 $as_echo_n "(cached) " >&6
19706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19707 /* end confdefs.h. */
19709 #include <pthread.h>
19717 pthread_getspecific(key,&tmp);
19723 if ac_fn_c_try_compile "$LINENO"; then :
19725 ac_cv_pthread_getspecific_two_args=yes
19729 ac_cv_pthread_getspecific_two_args=no
19732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_getspecific_two_args" >&5
19736 $as_echo "$ac_cv_pthread_getspecific_two_args" >&6; }
19738 if test "$ac_cv_pthread_getspecific_two_args" = "yes"; then
19740 $as_echo "#define PTHREAD_GETSPECIFIC_TAKES_TWO_ARGS 1" >>confdefs.h
19745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_attr_getdetachstate takes one argument" >&5
19746 $as_echo_n "checking whether pthread_attr_getdetachstate takes one argument... " >&6; }
19747 if ${ac_cv_pthread_attr_getdetachstate_one_arg+:} false; then :
19748 $as_echo_n "(cached) " >&6
19751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19752 /* end confdefs.h. */
19754 #include <pthread.h>
19760 pthread_attr_t *attr;
19761 pthread_attr_getdetachstate(attr);
19767 if ac_fn_c_try_compile "$LINENO"; then :
19769 ac_cv_pthread_attr_getdetachstate_one_arg=yes
19773 ac_cv_pthread_attr_getdetachstate_one_arg=no
19776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_attr_getdetachstate_one_arg" >&5
19780 $as_echo "$ac_cv_pthread_attr_getdetachstate_one_arg" >&6; }
19782 if test "$ac_cv_pthread_attr_getdetachstate_one_arg" = "yes"; then
19784 $as_echo "#define PTHREAD_ATTR_GETDETACHSTATE_TAKES_ONE_ARG 1" >>confdefs.h
19789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutex support" >&5
19790 $as_echo_n "checking for recursive mutex support... " >&6; }
19791 if ${apr_cv_mutex_recursive+:} false; then :
19792 $as_echo_n "(cached) " >&6
19794 if test "$cross_compiling" = yes; then :
19795 apr_cv_mutex_recursive=no
19797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19798 /* end confdefs.h. */
19799 #include <sys/types.h>
19800 #include <pthread.h>
19801 #include <stdlib.h>
19804 pthread_mutexattr_t attr;
19807 exit (pthread_mutexattr_init(&attr)
19808 || pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE)
19809 || pthread_mutex_init(&m, &attr));
19812 if ac_fn_c_try_run "$LINENO"; then :
19813 apr_cv_mutex_recursive=yes
19815 apr_cv_mutex_recursive=no
19817 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19818 conftest.$ac_objext conftest.beam conftest.$ac_ext
19822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_mutex_recursive" >&5
19823 $as_echo "$apr_cv_mutex_recursive" >&6; }
19825 if test "$apr_cv_mutex_recursive" = "yes"; then
19827 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
19831 for ac_func in pthread_key_delete pthread_rwlock_init \
19832 pthread_attr_setguardsize pthread_yield
19834 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19835 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19836 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19837 cat >>confdefs.h <<_ACEOF
19838 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19845 if test "$ac_cv_func_pthread_rwlock_init" = "yes"; then
19846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_t" >&5
19847 $as_echo_n "checking for pthread_rwlock_t... " >&6; }
19848 if ${apr_cv_type_rwlock_t+:} false; then :
19849 $as_echo_n "(cached) " >&6
19851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19852 /* end confdefs.h. */
19853 #include <sys/types.h>
19854 #include <pthread.h>
19858 pthread_rwlock_t *rwlock;
19863 if ac_fn_c_try_compile "$LINENO"; then :
19864 apr_cv_type_rwlock_t=yes
19866 apr_cv_type_rwlock_t=no
19868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_type_rwlock_t" >&5
19871 $as_echo "$apr_cv_type_rwlock_t" >&6; }
19872 if test "$apr_cv_type_rwlock_t" = "yes"; then
19874 $as_echo "#define HAVE_PTHREAD_RWLOCKS 1" >>confdefs.h
19879 if test "$ac_cv_func_pthread_yield" = "no"; then
19880 for ac_header in sched.h
19882 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
19883 if test "x$ac_cv_header_sched_h" = xyes; then :
19884 cat >>confdefs.h <<_ACEOF
19885 #define HAVE_SCHED_H 1
19892 for ac_func in sched_yield
19894 ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
19895 if test "x$ac_cv_func_sched_yield" = xyes; then :
19896 cat >>confdefs.h <<_ACEOF
19897 #define HAVE_SCHED_YIELD 1
19907 ac_cv_define_READDIR_IS_THREAD_SAFE=no
19908 ac_cv_define_GETHOSTBYNAME_IS_THREAD_SAFE=no
19909 ac_cv_define_GETHOSTBYADDR_IS_THREAD_SAFE=no
19910 ac_cv_define_GETSERVBYNAME_IS_THREAD_SAFE=no
19911 if test "$threads" = "1"; then
19912 echo "APR will use threads"
19913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readdir in -lc_r" >&5
19914 $as_echo_n "checking for readdir in -lc_r... " >&6; }
19915 if ${ac_cv_lib_c_r_readdir+:} false; then :
19916 $as_echo_n "(cached) " >&6
19918 ac_check_lib_save_LIBS=$LIBS
19920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19921 /* end confdefs.h. */
19923 /* Override any GCC internal prototype to avoid an error.
19924 Use char because int might match the return type of a GCC
19925 builtin and then its argument prototype would still apply. */
19938 if ac_fn_c_try_link "$LINENO"; then :
19939 ac_cv_lib_c_r_readdir=yes
19941 ac_cv_lib_c_r_readdir=no
19943 rm -f core conftest.err conftest.$ac_objext \
19944 conftest$ac_exeext conftest.$ac_ext
19945 LIBS=$ac_check_lib_save_LIBS
19947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_readdir" >&5
19948 $as_echo "$ac_cv_lib_c_r_readdir" >&6; }
19949 if test "x$ac_cv_lib_c_r_readdir" = xyes; then :
19951 $as_echo "#define READDIR_IS_THREAD_SAFE 1" >>confdefs.h
19955 if test "x$apr_gethostbyname_is_thread_safe" = "x"; then
19956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lc_r" >&5
19957 $as_echo_n "checking for gethostbyname in -lc_r... " >&6; }
19958 if ${ac_cv_lib_c_r_gethostbyname+:} false; then :
19959 $as_echo_n "(cached) " >&6
19961 ac_check_lib_save_LIBS=$LIBS
19963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19964 /* end confdefs.h. */
19966 /* Override any GCC internal prototype to avoid an error.
19967 Use char because int might match the return type of a GCC
19968 builtin and then its argument prototype would still apply. */
19972 char gethostbyname ();
19976 return gethostbyname ();
19981 if ac_fn_c_try_link "$LINENO"; then :
19982 ac_cv_lib_c_r_gethostbyname=yes
19984 ac_cv_lib_c_r_gethostbyname=no
19986 rm -f core conftest.err conftest.$ac_objext \
19987 conftest$ac_exeext conftest.$ac_ext
19988 LIBS=$ac_check_lib_save_LIBS
19990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_gethostbyname" >&5
19991 $as_echo "$ac_cv_lib_c_r_gethostbyname" >&6; }
19992 if test "x$ac_cv_lib_c_r_gethostbyname" = xyes; then :
19993 apr_gethostbyname_is_thread_safe=yes
19997 if test "$apr_gethostbyname_is_thread_safe" = "yes"; then
19999 $as_echo "#define GETHOSTBYNAME_IS_THREAD_SAFE 1" >>confdefs.h
20002 if test "x$apr_gethostbyaddr_is_thread_safe" = "x"; then
20003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr in -lc_r" >&5
20004 $as_echo_n "checking for gethostbyaddr in -lc_r... " >&6; }
20005 if ${ac_cv_lib_c_r_gethostbyaddr+:} false; then :
20006 $as_echo_n "(cached) " >&6
20008 ac_check_lib_save_LIBS=$LIBS
20010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20011 /* end confdefs.h. */
20013 /* Override any GCC internal prototype to avoid an error.
20014 Use char because int might match the return type of a GCC
20015 builtin and then its argument prototype would still apply. */
20019 char gethostbyaddr ();
20023 return gethostbyaddr ();
20028 if ac_fn_c_try_link "$LINENO"; then :
20029 ac_cv_lib_c_r_gethostbyaddr=yes
20031 ac_cv_lib_c_r_gethostbyaddr=no
20033 rm -f core conftest.err conftest.$ac_objext \
20034 conftest$ac_exeext conftest.$ac_ext
20035 LIBS=$ac_check_lib_save_LIBS
20037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_gethostbyaddr" >&5
20038 $as_echo "$ac_cv_lib_c_r_gethostbyaddr" >&6; }
20039 if test "x$ac_cv_lib_c_r_gethostbyaddr" = xyes; then :
20040 apr_gethostbyaddr_is_thread_safe=yes
20044 if test "$apr_gethostbyaddr_is_thread_safe" = "yes"; then
20046 $as_echo "#define GETHOSTBYADDR_IS_THREAD_SAFE 1" >>confdefs.h
20049 if test "x$apr_getservbyname_is_thread_safe" = "x"; then
20050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getservbyname in -lc_r" >&5
20051 $as_echo_n "checking for getservbyname in -lc_r... " >&6; }
20052 if ${ac_cv_lib_c_r_getservbyname+:} false; then :
20053 $as_echo_n "(cached) " >&6
20055 ac_check_lib_save_LIBS=$LIBS
20057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20058 /* end confdefs.h. */
20060 /* Override any GCC internal prototype to avoid an error.
20061 Use char because int might match the return type of a GCC
20062 builtin and then its argument prototype would still apply. */
20066 char getservbyname ();
20070 return getservbyname ();
20075 if ac_fn_c_try_link "$LINENO"; then :
20076 ac_cv_lib_c_r_getservbyname=yes
20078 ac_cv_lib_c_r_getservbyname=no
20080 rm -f core conftest.err conftest.$ac_objext \
20081 conftest$ac_exeext conftest.$ac_ext
20082 LIBS=$ac_check_lib_save_LIBS
20084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_getservbyname" >&5
20085 $as_echo "$ac_cv_lib_c_r_getservbyname" >&6; }
20086 if test "x$ac_cv_lib_c_r_getservbyname" = xyes; then :
20087 apr_getservbyname_is_thread_safe=yes
20091 if test "$apr_getservbyname_is_thread_safe" = "yes"; then
20093 $as_echo "#define GETSERVBYNAME_IS_THREAD_SAFE 1" >>confdefs.h
20096 for ac_func in gethostbyname_r gethostbyaddr_r getservbyname_r
20098 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20099 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20100 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20101 cat >>confdefs.h <<_ACEOF
20102 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20109 echo "APR will be non-threaded"
20113 # Check whether --with-efence was given.
20114 if test "${with_efence+set}" = set; then :
20115 withval=$with_efence; apr_efence_dir="$withval"
20116 if test "$apr_efence_dir" != "yes"; then
20118 if test "x$LDFLAGS" = "x"; then
20119 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-L$apr_efence_dir/lib\""
20120 LDFLAGS="-L$apr_efence_dir/lib"
20122 apr_addto_bugger="-L$apr_efence_dir/lib"
20123 for i in $apr_addto_bugger; do
20124 apr_addto_duplicate="0"
20125 for j in $LDFLAGS; do
20126 if test "x$i" = "x$j"; then
20127 apr_addto_duplicate="1"
20131 if test $apr_addto_duplicate = "0"; then
20132 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
20133 LDFLAGS="$LDFLAGS $i"
20138 if test "x$apr_platform_runtime_link_flag" != "x"; then
20140 if test "x$LDFLAGS" = "x"; then
20141 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$apr_platform_runtime_link_flag$apr_efence_dir/lib\""
20142 LDFLAGS="$apr_platform_runtime_link_flag$apr_efence_dir/lib"
20144 apr_addto_bugger="$apr_platform_runtime_link_flag$apr_efence_dir/lib"
20145 for i in $apr_addto_bugger; do
20146 apr_addto_duplicate="0"
20147 for j in $LDFLAGS; do
20148 if test "x$i" = "x$j"; then
20149 apr_addto_duplicate="1"
20153 if test $apr_addto_duplicate = "0"; then
20154 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
20155 LDFLAGS="$LDFLAGS $i"
20162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc in -lefence" >&5
20163 $as_echo_n "checking for malloc in -lefence... " >&6; }
20164 if ${ac_cv_lib_efence_malloc+:} false; then :
20165 $as_echo_n "(cached) " >&6
20167 ac_check_lib_save_LIBS=$LIBS
20168 LIBS="-lefence $LIBS"
20169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20170 /* end confdefs.h. */
20172 /* Override any GCC internal prototype to avoid an error.
20173 Use char because int might match the return type of a GCC
20174 builtin and then its argument prototype would still apply. */
20187 if ac_fn_c_try_link "$LINENO"; then :
20188 ac_cv_lib_efence_malloc=yes
20190 ac_cv_lib_efence_malloc=no
20192 rm -f core conftest.err conftest.$ac_objext \
20193 conftest$ac_exeext conftest.$ac_ext
20194 LIBS=$ac_check_lib_save_LIBS
20196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efence_malloc" >&5
20197 $as_echo "$ac_cv_lib_efence_malloc" >&6; }
20198 if test "x$ac_cv_lib_efence_malloc" = xyes; then :
20200 if test "x$LIBS" = "x"; then
20201 test "x$silent" != "xyes" && echo " setting LIBS to \"-lefence\""
20204 apr_addto_bugger="-lefence"
20205 for i in $apr_addto_bugger; do
20206 apr_addto_duplicate="0"
20208 if test "x$i" = "x$j"; then
20209 apr_addto_duplicate="1"
20213 if test $apr_addto_duplicate = "0"; then
20214 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
20221 as_fn_error $? "Electric Fence requested but not detected" "$LINENO" 5
20228 for ac_func in sigsuspend
20230 ac_fn_c_check_func "$LINENO" "sigsuspend" "ac_cv_func_sigsuspend"
20231 if test "x$ac_cv_func_sigsuspend" = xyes; then :
20232 cat >>confdefs.h <<_ACEOF
20233 #define HAVE_SIGSUSPEND 1
20235 have_sigsuspend="1"
20237 have_sigsuspend="0"
20241 for ac_func in sigwait
20243 ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait"
20244 if test "x$ac_cv_func_sigwait" = xyes; then :
20245 cat >>confdefs.h <<_ACEOF
20246 #define HAVE_SIGWAIT 1
20264 for ac_func in poll kqueue port_create
20266 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20267 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20268 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20269 cat >>confdefs.h <<_ACEOF
20270 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20277 # Check for the Linux epoll interface; epoll* may be available in libc
20278 # but return ENOSYS on a pre-2.6 kernel, so do a run-time check.
20279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll support" >&5
20280 $as_echo_n "checking for epoll support... " >&6; }
20281 if ${apr_cv_epoll+:} false; then :
20282 $as_echo_n "(cached) " >&6
20284 if test "$cross_compiling" = yes; then :
20287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20288 /* end confdefs.h. */
20290 #include <sys/epoll.h>
20291 #include <unistd.h>
20295 return epoll_create(5) == -1;
20298 if ac_fn_c_try_run "$LINENO"; then :
20303 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20304 conftest.$ac_objext conftest.beam conftest.$ac_ext
20308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_epoll" >&5
20309 $as_echo "$apr_cv_epoll" >&6; }
20311 if test "$apr_cv_epoll" = "yes"; then
20313 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
20317 # test for epoll_create1
20318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll_create1 support" >&5
20319 $as_echo_n "checking for epoll_create1 support... " >&6; }
20320 if ${apr_cv_epoll_create1+:} false; then :
20321 $as_echo_n "(cached) " >&6
20323 if test "$cross_compiling" = yes; then :
20324 apr_cv_epoll_create1=no
20326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20327 /* end confdefs.h. */
20329 #include <sys/epoll.h>
20330 #include <unistd.h>
20334 return epoll_create1(0) == -1;
20337 if ac_fn_c_try_run "$LINENO"; then :
20338 apr_cv_epoll_create1=yes
20340 apr_cv_epoll_create1=no
20342 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20343 conftest.$ac_objext conftest.beam conftest.$ac_ext
20347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_epoll_create1" >&5
20348 $as_echo "$apr_cv_epoll_create1" >&6; }
20350 if test "$apr_cv_epoll_create1" = "yes"; then
20352 $as_echo "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h
20357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dup3 support" >&5
20358 $as_echo_n "checking for dup3 support... " >&6; }
20359 if ${apr_cv_dup3+:} false; then :
20360 $as_echo_n "(cached) " >&6
20362 if test "$cross_compiling" = yes; then :
20365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20366 /* end confdefs.h. */
20368 #include <unistd.h>
20372 return dup3(STDOUT_FILENO, STDERR_FILENO, 0) == -1;
20375 if ac_fn_c_try_run "$LINENO"; then :
20380 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20381 conftest.$ac_objext conftest.beam conftest.$ac_ext
20385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_dup3" >&5
20386 $as_echo "$apr_cv_dup3" >&6; }
20388 if test "$apr_cv_dup3" = "yes"; then
20390 $as_echo "#define HAVE_DUP3 1" >>confdefs.h
20395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for accept4 support" >&5
20396 $as_echo_n "checking for accept4 support... " >&6; }
20397 if ${apr_cv_accept4+:} false; then :
20398 $as_echo_n "(cached) " >&6
20400 if test "$cross_compiling" = yes; then :
20403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20404 /* end confdefs.h. */
20406 #include <unistd.h>
20407 #include <sys/types.h>
20408 #include <sys/socket.h>
20409 #include <sys/un.h>
20410 #include <sys/wait.h>
20411 #include <signal.h>
20414 #define A4_SOCK "./apr_accept4_test_socket"
20420 struct sockaddr_un loc, rem;
20423 if ((pid = fork())) {
20428 if ((fd = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
20429 goto cleanup_failure2;
20431 loc.sun_family = AF_UNIX;
20432 strncpy(loc.sun_path, A4_SOCK, sizeof(loc.sun_path) - 1);
20434 if (bind(fd, (struct sockaddr *) &loc,
20435 sizeof(struct sockaddr_un)) == -1)
20436 goto cleanup_failure;
20438 if (listen(fd, 5) == -1)
20439 goto cleanup_failure;
20441 rem_sz = sizeof(struct sockaddr_un);
20442 if (accept4(fd, (struct sockaddr *) &rem, &rem_sz, 0) == -1) {
20443 goto cleanup_failure;
20447 waitpid(pid, &status, 0);
20455 kill(pid, SIGKILL);
20456 waitpid(pid, &status, 0);
20461 if ((fd = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
20462 return 1; /* this will be bad: we'll hang */
20464 loc.sun_family = AF_UNIX;
20465 strncpy(loc.sun_path, A4_SOCK, sizeof(loc.sun_path) - 1);
20467 while(connect(fd, (struct sockaddr *) &loc,
20468 sizeof(struct sockaddr_un)) == -1 &&
20469 (errno==ENOENT || errno==ECONNREFUSED))
20477 if ac_fn_c_try_run "$LINENO"; then :
20482 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20483 conftest.$ac_objext conftest.beam conftest.$ac_ext
20487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_accept4" >&5
20488 $as_echo "$apr_cv_accept4" >&6; }
20490 if test "$apr_cv_accept4" = "yes"; then
20492 $as_echo "#define HAVE_ACCEPT4 1" >>confdefs.h
20496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOCK_CLOEXEC support" >&5
20497 $as_echo_n "checking for SOCK_CLOEXEC support... " >&6; }
20498 if ${apr_cv_sock_cloexec+:} false; then :
20499 $as_echo_n "(cached) " >&6
20501 if test "$cross_compiling" = yes; then :
20502 apr_cv_sock_cloexec=no
20504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20505 /* end confdefs.h. */
20507 #include <sys/types.h>
20508 #include <sys/socket.h>
20512 return socket(AF_INET, SOCK_STREAM|SOCK_CLOEXEC, 0) == -1;
20515 if ac_fn_c_try_run "$LINENO"; then :
20516 apr_cv_sock_cloexec=yes
20518 apr_cv_sock_cloexec=no
20520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20521 conftest.$ac_objext conftest.beam conftest.$ac_ext
20525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_sock_cloexec" >&5
20526 $as_echo "$apr_cv_sock_cloexec" >&6; }
20528 if test "$apr_cv_sock_cloexec" = "yes"; then
20530 $as_echo "#define HAVE_SOCK_CLOEXEC 1" >>confdefs.h
20534 for ac_func in fdatasync
20536 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
20537 if test "x$ac_cv_func_fdatasync" = xyes; then :
20538 cat >>confdefs.h <<_ACEOF
20539 #define HAVE_FDATASYNC 1
20546 # test for epoll_create1
20547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll_create1 support" >&5
20548 $as_echo_n "checking for epoll_create1 support... " >&6; }
20549 if ${apr_cv_epoll_create1+:} false; then :
20550 $as_echo_n "(cached) " >&6
20552 if test "$cross_compiling" = yes; then :
20553 apr_cv_epoll_create1=no
20555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20556 /* end confdefs.h. */
20558 #include <sys/epoll.h>
20559 #include <unistd.h>
20563 return epoll_create1(0) == -1;
20566 if ac_fn_c_try_run "$LINENO"; then :
20567 apr_cv_epoll_create1=yes
20569 apr_cv_epoll_create1=no
20571 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20572 conftest.$ac_objext conftest.beam conftest.$ac_ext
20576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_epoll_create1" >&5
20577 $as_echo "$apr_cv_epoll_create1" >&6; }
20579 if test "$apr_cv_epoll_create1" = "yes"; then
20581 $as_echo "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h
20586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dup3 support" >&5
20587 $as_echo_n "checking for dup3 support... " >&6; }
20588 if ${apr_cv_dup3+:} false; then :
20589 $as_echo_n "(cached) " >&6
20591 if test "$cross_compiling" = yes; then :
20594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20595 /* end confdefs.h. */
20597 #include <unistd.h>
20601 return dup3(STDOUT_FILENO, STDERR_FILENO, 0) == -1;
20604 if ac_fn_c_try_run "$LINENO"; then :
20609 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20610 conftest.$ac_objext conftest.beam conftest.$ac_ext
20614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_dup3" >&5
20615 $as_echo "$apr_cv_dup3" >&6; }
20617 if test "$apr_cv_dup3" = "yes"; then
20619 $as_echo "#define HAVE_DUP3 1" >>confdefs.h
20624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for accept4 support" >&5
20625 $as_echo_n "checking for accept4 support... " >&6; }
20626 if ${apr_cv_accept4+:} false; then :
20627 $as_echo_n "(cached) " >&6
20629 if test "$cross_compiling" = yes; then :
20632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20633 /* end confdefs.h. */
20635 #include <unistd.h>
20636 #include <sys/types.h>
20637 #include <sys/socket.h>
20638 #include <sys/un.h>
20639 #include <sys/wait.h>
20640 #include <signal.h>
20643 #define A4_SOCK "./apr_accept4_test_socket"
20649 struct sockaddr_un loc, rem;
20652 if ((pid = fork())) {
20657 if ((fd = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
20658 goto cleanup_failure2;
20660 loc.sun_family = AF_UNIX;
20661 strncpy(loc.sun_path, A4_SOCK, sizeof(loc.sun_path) - 1);
20663 if (bind(fd, (struct sockaddr *) &loc,
20664 sizeof(struct sockaddr_un)) == -1)
20665 goto cleanup_failure;
20667 if (listen(fd, 5) == -1)
20668 goto cleanup_failure;
20670 rem_sz = sizeof(struct sockaddr_un);
20671 if (accept4(fd, (struct sockaddr *) &rem, &rem_sz, 0) == -1) {
20672 goto cleanup_failure;
20676 waitpid(pid, &status, 0);
20684 kill(pid, SIGKILL);
20685 waitpid(pid, &status, 0);
20690 if ((fd = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
20691 return 1; /* this will be bad: we'll hang */
20693 loc.sun_family = AF_UNIX;
20694 strncpy(loc.sun_path, A4_SOCK, sizeof(loc.sun_path) - 1);
20696 while(connect(fd, (struct sockaddr *) &loc,
20697 sizeof(struct sockaddr_un)) == -1 &&
20698 (errno==ENOENT || errno==ECONNREFUSED))
20706 if ac_fn_c_try_run "$LINENO"; then :
20711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20712 conftest.$ac_objext conftest.beam conftest.$ac_ext
20716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_accept4" >&5
20717 $as_echo "$apr_cv_accept4" >&6; }
20719 if test "$apr_cv_accept4" = "yes"; then
20721 $as_echo "#define HAVE_ACCEPT4 1" >>confdefs.h
20725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOCK_CLOEXEC support" >&5
20726 $as_echo_n "checking for SOCK_CLOEXEC support... " >&6; }
20727 if ${apr_cv_sock_cloexec+:} false; then :
20728 $as_echo_n "(cached) " >&6
20730 if test "$cross_compiling" = yes; then :
20731 apr_cv_sock_cloexec=no
20733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20734 /* end confdefs.h. */
20736 #include <sys/types.h>
20737 #include <sys/socket.h>
20741 return socket(AF_INET, SOCK_STREAM|SOCK_CLOEXEC, 0) == -1;
20744 if ac_fn_c_try_run "$LINENO"; then :
20745 apr_cv_sock_cloexec=yes
20747 apr_cv_sock_cloexec=no
20749 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20750 conftest.$ac_objext conftest.beam conftest.$ac_ext
20754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_sock_cloexec" >&5
20755 $as_echo "$apr_cv_sock_cloexec" >&6; }
20757 if test "$apr_cv_sock_cloexec" = "yes"; then
20759 $as_echo "#define HAVE_SOCK_CLOEXEC 1" >>confdefs.h
20763 for ac_func in getpwnam_r getpwuid_r getgrnam_r getgrgid_r
20765 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20766 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20767 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20768 cat >>confdefs.h <<_ACEOF
20769 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20776 echo "${nl}Checking for Shared Memory Support..."
20778 # The real-time POSIX extensions (e.g. shm_*, sem_*) may only
20779 # be available if linking against librt.
20780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
20781 $as_echo_n "checking for library containing shm_open... " >&6; }
20782 if ${ac_cv_search_shm_open+:} false; then :
20783 $as_echo_n "(cached) " >&6
20785 ac_func_search_save_LIBS=$LIBS
20786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20787 /* end confdefs.h. */
20789 /* Override any GCC internal prototype to avoid an error.
20790 Use char because int might match the return type of a GCC
20791 builtin and then its argument prototype would still apply. */
20799 return shm_open ();
20804 for ac_lib in '' rt; do
20805 if test -z "$ac_lib"; then
20806 ac_res="none required"
20809 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20811 if ac_fn_c_try_link "$LINENO"; then :
20812 ac_cv_search_shm_open=$ac_res
20814 rm -f core conftest.err conftest.$ac_objext \
20816 if ${ac_cv_search_shm_open+:} false; then :
20820 if ${ac_cv_search_shm_open+:} false; then :
20823 ac_cv_search_shm_open=no
20825 rm conftest.$ac_ext
20826 LIBS=$ac_func_search_save_LIBS
20828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
20829 $as_echo "$ac_cv_search_shm_open" >&6; }
20830 ac_res=$ac_cv_search_shm_open
20831 if test "$ac_res" != no; then :
20832 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20839 ac_includes_default="$ac_includes_default
20840 #if HAVE_SYS_MUTEX_H /* needed to define lock_t for sys/shm.h */
20841 # include <sys/mutex.h>
20845 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
20847 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20848 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20849 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20850 cat >>confdefs.h <<_ACEOF
20851 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20858 for ac_func in mmap munmap shm_open shm_unlink shmget shmat shmdt shmctl \
20861 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20862 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20863 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20864 cat >>confdefs.h <<_ACEOF
20865 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON in sys/mman.h" >&5
20874 $as_echo_n "checking for MAP_ANON in sys/mman.h... " >&6; }
20875 if ${ac_cv_define_MAP_ANON+:} false; then :
20876 $as_echo_n "(cached) " >&6
20879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20880 /* end confdefs.h. */
20882 #include <sys/mman.h>
20888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20889 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
20890 ac_cv_define_MAP_ANON=yes
20892 ac_cv_define_MAP_ANON=no
20898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_MAP_ANON" >&5
20899 $as_echo "$ac_cv_define_MAP_ANON" >&6; }
20900 if test "$ac_cv_define_MAP_ANON" = "yes"; then
20902 $as_echo "#define HAVE_MAP_ANON 1" >>confdefs.h
20906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/zero" >&5
20907 $as_echo_n "checking for /dev/zero... " >&6; }
20908 if ${ac_cv_file__dev_zero+:} false; then :
20909 $as_echo_n "(cached) " >&6
20911 test "$cross_compiling" = yes &&
20912 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
20913 if test -r "/dev/zero"; then
20914 ac_cv_file__dev_zero=yes
20916 ac_cv_file__dev_zero=no
20919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_zero" >&5
20920 $as_echo "$ac_cv_file__dev_zero" >&6; }
20921 if test "x$ac_cv_file__dev_zero" = xyes; then :
20926 # Not all systems can mmap /dev/zero (such as HP-UX). Check for that.
20927 if test "$ac_cv_func_mmap" = "yes" &&
20928 test "$ac_cv_file__dev_zero" = "yes"; then
20929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mmap that can map /dev/zero" >&5
20930 $as_echo_n "checking for mmap that can map /dev/zero... " >&6; }
20931 if test "$cross_compiling" = yes; then :
20932 ac_cv_file__dev_zero=no
20934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20935 /* end confdefs.h. */
20937 #include <sys/types.h>
20938 #include <sys/stat.h>
20940 #ifdef HAVE_SYS_MMAN_H
20941 #include <sys/mman.h>
20947 fd = open("/dev/zero", O_RDWR);
20951 m = mmap(0, sizeof(void*), PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0);
20952 if (m == (void *)-1) { /* aka MAP_FAILED */
20955 if (munmap(m, sizeof(void*)) < 0) {
20961 if ac_fn_c_try_run "$LINENO"; then :
20964 ac_cv_file__dev_zero=no
20966 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20967 conftest.$ac_objext conftest.beam conftest.$ac_ext
20971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_zero" >&5
20972 $as_echo "$ac_cv_file__dev_zero" >&6; }
20975 # Now we determine which one is our anonymous shmem preference.
20979 ac_decision_item='anonymous shared memory allocation method'
20980 ac_decision_msg='FAILED'
20984 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
20985 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
20986 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
20989 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
20990 ac_var="ac_cv_header_$ac_item"
20993 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
20994 ac_var="ac_cv_file_$ac_item"
20996 func ) ac_var="ac_cv_func_$ac_item" ;;
20997 struct ) ac_var="ac_cv_struct_$ac_item" ;;
20998 define ) ac_var="ac_cv_define_$ac_item" ;;
20999 custom ) ac_var="$ac_item" ;;
21001 eval "ac_val=\$$ac_var"
21002 if test ".$ac_val" != .yes; then
21007 if test ".$ac_rc" = .yes; then
21011 ac_decision='USE_SHMEM_SHMGET_ANON'
21012 ac_decision_msg='SysV IPC shmget()'
21013 ac_decision_USE_SHMEM_SHMGET_ANON=yes
21014 ac_decision_USE_SHMEM_SHMGET_ANON_msg='SysV IPC shmget()'
21022 for ac_spec in header:sys/mman.h func:mmap func:munmap file:/dev/zero; do
21023 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21024 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21027 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21028 ac_var="ac_cv_header_$ac_item"
21031 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21032 ac_var="ac_cv_file_$ac_item"
21034 func ) ac_var="ac_cv_func_$ac_item" ;;
21035 struct ) ac_var="ac_cv_struct_$ac_item" ;;
21036 define ) ac_var="ac_cv_define_$ac_item" ;;
21037 custom ) ac_var="$ac_item" ;;
21039 eval "ac_val=\$$ac_var"
21040 if test ".$ac_val" != .yes; then
21045 if test ".$ac_rc" = .yes; then
21049 ac_decision='USE_SHMEM_MMAP_ZERO'
21050 ac_decision_msg='SVR4-style mmap() on /dev/zero'
21051 ac_decision_USE_SHMEM_MMAP_ZERO=yes
21052 ac_decision_USE_SHMEM_MMAP_ZERO_msg='SVR4-style mmap() on /dev/zero'
21060 for ac_spec in header:sys/mman.h func:mmap func:munmap define:MAP_ANON; do
21061 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21062 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21065 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21066 ac_var="ac_cv_header_$ac_item"
21069 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21070 ac_var="ac_cv_file_$ac_item"
21072 func ) ac_var="ac_cv_func_$ac_item" ;;
21073 struct ) ac_var="ac_cv_struct_$ac_item" ;;
21074 define ) ac_var="ac_cv_define_$ac_item" ;;
21075 custom ) ac_var="$ac_item" ;;
21077 eval "ac_val=\$$ac_var"
21078 if test ".$ac_val" != .yes; then
21083 if test ".$ac_rc" = .yes; then
21087 ac_decision='USE_SHMEM_MMAP_ANON'
21088 ac_decision_msg='4.4BSD-style mmap() via MAP_ANON'
21089 ac_decision_USE_SHMEM_MMAP_ANON=yes
21090 ac_decision_USE_SHMEM_MMAP_ANON_msg='4.4BSD-style mmap() via MAP_ANON'
21098 for ac_spec in header:os2.h; do
21099 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21100 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21103 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21104 ac_var="ac_cv_header_$ac_item"
21107 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21108 ac_var="ac_cv_file_$ac_item"
21110 func ) ac_var="ac_cv_func_$ac_item" ;;
21111 struct ) ac_var="ac_cv_struct_$ac_item" ;;
21112 define ) ac_var="ac_cv_define_$ac_item" ;;
21113 custom ) ac_var="$ac_item" ;;
21115 eval "ac_val=\$$ac_var"
21116 if test ".$ac_val" != .yes; then
21121 if test ".$ac_rc" = .yes; then
21125 ac_decision='USE_SHMEM_OS2_ANON'
21126 ac_decision_msg='OS/2 DosAllocSharedMem()'
21127 ac_decision_USE_SHMEM_OS2_ANON=yes
21128 ac_decision_USE_SHMEM_OS2_ANON_msg='OS/2 DosAllocSharedMem()'
21136 for ac_spec in header:kernel/OS.h func:create_area; do
21137 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21138 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21141 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21142 ac_var="ac_cv_header_$ac_item"
21145 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21146 ac_var="ac_cv_file_$ac_item"
21148 func ) ac_var="ac_cv_func_$ac_item" ;;
21149 struct ) ac_var="ac_cv_struct_$ac_item" ;;
21150 define ) ac_var="ac_cv_define_$ac_item" ;;
21151 custom ) ac_var="$ac_item" ;;
21153 eval "ac_val=\$$ac_var"
21154 if test ".$ac_val" != .yes; then
21159 if test ".$ac_rc" = .yes; then
21163 ac_decision='USE_SHMEM_BEOS_ANON'
21164 ac_decision_msg='BeOS areas'
21165 ac_decision_USE_SHMEM_BEOS_ANON=yes
21166 ac_decision_USE_SHMEM_BEOS_ANON_msg='BeOS areas'
21174 for ac_spec in header:windows.h func:CreateFileMapping; do
21175 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21176 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21179 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21180 ac_var="ac_cv_header_$ac_item"
21183 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21184 ac_var="ac_cv_file_$ac_item"
21186 func ) ac_var="ac_cv_func_$ac_item" ;;
21187 struct ) ac_var="ac_cv_struct_$ac_item" ;;
21188 define ) ac_var="ac_cv_define_$ac_item" ;;
21189 custom ) ac_var="$ac_item" ;;
21191 eval "ac_val=\$$ac_var"
21192 if test ".$ac_val" != .yes; then
21197 if test ".$ac_rc" = .yes; then
21201 ac_decision='USE_SHMEM_WIN32_ANON'
21202 ac_decision_msg='Windows CreateFileMapping()'
21203 ac_decision_USE_SHMEM_WIN32_ANON=yes
21204 ac_decision_USE_SHMEM_WIN32_ANON_msg='Windows CreateFileMapping()'
21213 # Linux has problems with MM_SHMT_MMANON even though it reports
21215 # FIXME - find exact 2.3 version that MMANON was fixed in. It is
21216 # confirmed fixed in 2.4 series.
21217 if test $os_version -le "240"; then
21219 for ac_item in USE_SHMEM_MMAP_ZERO USE_SHMEM_SHMGET_ANON; do
21220 eval "ac_decision_this=\$ac_decision_${ac_item}"
21221 if test ".$ac_decision_this" = .yes; then
21222 ac_decision=$ac_item
21223 eval "ac_decision_msg=\$ac_decision_${ac_item}_msg"
21231 for ac_item in USE_SHMEM_SHMGET_ANON; do
21232 eval "ac_decision_this=\$ac_decision_${ac_item}"
21233 if test ".$ac_decision_this" = .yes; then
21234 ac_decision=$ac_item
21235 eval "ac_decision_msg=\$ac_decision_${ac_item}_msg"
21241 if test ".$ac_decision" = .; then
21242 echo "$0:Error: decision on $ac_decision_item failed" 1>&2
21245 if test ".$ac_decision_msg" = .; then
21246 ac_decision_msg="$ac_decision"
21248 cat >>confdefs.h <<_ACEOF
21249 #define ${ac_decision_item} 1
21252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: decision on $ac_decision_item... $ac_decision_msg" >&5
21253 $as_echo "decision on $ac_decision_item... $ac_decision_msg" >&6; }
21256 cat >>confdefs.h <<_ACEOF
21257 #define $ac_decision 1
21265 case $ac_decision in
21266 USE_SHMEM_SHMGET_ANON )
21269 USE_SHMEM_MMAP_ZERO )
21272 USE_SHMEM_MMAP_ANON )
21284 # Now we determine which one is our name-based shmem preference.
21291 ac_decision_item='namebased memory allocation method'
21292 ac_decision_msg='FAILED'
21296 for ac_spec in header:sys/mman.h func:mmap func:munmap; do
21297 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21298 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21301 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21302 ac_var="ac_cv_header_$ac_item"
21305 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21306 ac_var="ac_cv_file_$ac_item"
21308 func ) ac_var="ac_cv_func_$ac_item" ;;
21309 struct ) ac_var="ac_cv_struct_$ac_item" ;;
21310 define ) ac_var="ac_cv_define_$ac_item" ;;
21311 custom ) ac_var="$ac_item" ;;
21313 eval "ac_val=\$$ac_var"
21314 if test ".$ac_val" != .yes; then
21319 if test ".$ac_rc" = .yes; then
21323 ac_decision='USE_SHMEM_MMAP_TMP'
21324 ac_decision_msg='Classical mmap() on temporary file'
21325 ac_decision_USE_SHMEM_MMAP_TMP=yes
21326 ac_decision_USE_SHMEM_MMAP_TMP_msg='Classical mmap() on temporary file'
21334 for ac_spec in header:sys/mman.h func:mmap func:munmap func:shm_open func:shm_unlink; do
21335 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21336 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21339 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21340 ac_var="ac_cv_header_$ac_item"
21343 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21344 ac_var="ac_cv_file_$ac_item"
21346 func ) ac_var="ac_cv_func_$ac_item" ;;
21347 struct ) ac_var="ac_cv_struct_$ac_item" ;;
21348 define ) ac_var="ac_cv_define_$ac_item" ;;
21349 custom ) ac_var="$ac_item" ;;
21351 eval "ac_val=\$$ac_var"
21352 if test ".$ac_val" != .yes; then
21357 if test ".$ac_rc" = .yes; then
21361 ac_decision='USE_SHMEM_MMAP_SHM'
21362 ac_decision_msg='mmap() via POSIX.1 shm_open() on temporary file'
21363 ac_decision_USE_SHMEM_MMAP_SHM=yes
21364 ac_decision_USE_SHMEM_MMAP_SHM_msg='mmap() via POSIX.1 shm_open() on temporary file'
21372 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
21373 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21374 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21377 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21378 ac_var="ac_cv_header_$ac_item"
21381 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21382 ac_var="ac_cv_file_$ac_item"
21384 func ) ac_var="ac_cv_func_$ac_item" ;;
21385 struct ) ac_var="ac_cv_struct_$ac_item" ;;
21386 define ) ac_var="ac_cv_define_$ac_item" ;;
21387 custom ) ac_var="$ac_item" ;;
21389 eval "ac_val=\$$ac_var"
21390 if test ".$ac_val" != .yes; then
21395 if test ".$ac_rc" = .yes; then
21399 ac_decision='USE_SHMEM_SHMGET'
21400 ac_decision_msg='SysV IPC shmget()'
21401 ac_decision_USE_SHMEM_SHMGET=yes
21402 ac_decision_USE_SHMEM_SHMGET_msg='SysV IPC shmget()'
21410 for ac_spec in header:kernel/OS.h func:create_area; do
21411 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21412 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21415 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21416 ac_var="ac_cv_header_$ac_item"
21419 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21420 ac_var="ac_cv_file_$ac_item"
21422 func ) ac_var="ac_cv_func_$ac_item" ;;
21423 struct ) ac_var="ac_cv_struct_$ac_item" ;;
21424 define ) ac_var="ac_cv_define_$ac_item" ;;
21425 custom ) ac_var="$ac_item" ;;
21427 eval "ac_val=\$$ac_var"
21428 if test ".$ac_val" != .yes; then
21433 if test ".$ac_rc" = .yes; then
21437 ac_decision='USE_SHMEM_BEOS'
21438 ac_decision_msg='BeOS areas'
21439 ac_decision_USE_SHMEM_BEOS=yes
21440 ac_decision_USE_SHMEM_BEOS_msg='BeOS areas'
21448 for ac_spec in header:os2.h; do
21449 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21450 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21453 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21454 ac_var="ac_cv_header_$ac_item"
21457 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21458 ac_var="ac_cv_file_$ac_item"
21460 func ) ac_var="ac_cv_func_$ac_item" ;;
21461 struct ) ac_var="ac_cv_struct_$ac_item" ;;
21462 define ) ac_var="ac_cv_define_$ac_item" ;;
21463 custom ) ac_var="$ac_item" ;;
21465 eval "ac_val=\$$ac_var"
21466 if test ".$ac_val" != .yes; then
21471 if test ".$ac_rc" = .yes; then
21475 ac_decision='USE_SHMEM_OS2'
21476 ac_decision_msg='OS/2 DosAllocSharedMem()'
21477 ac_decision_USE_SHMEM_OS2=yes
21478 ac_decision_USE_SHMEM_OS2_msg='OS/2 DosAllocSharedMem()'
21486 for ac_spec in header:windows.h; do
21487 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21488 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21491 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21492 ac_var="ac_cv_header_$ac_item"
21495 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21496 ac_var="ac_cv_file_$ac_item"
21498 func ) ac_var="ac_cv_func_$ac_item" ;;
21499 struct ) ac_var="ac_cv_struct_$ac_item" ;;
21500 define ) ac_var="ac_cv_define_$ac_item" ;;
21501 custom ) ac_var="$ac_item" ;;
21503 eval "ac_val=\$$ac_var"
21504 if test ".$ac_val" != .yes; then
21509 if test ".$ac_rc" = .yes; then
21513 ac_decision='USE_SHMEM_WIN32'
21514 ac_decision_msg='Windows shared memory'
21515 ac_decision_USE_SHMEM_WIN32=yes
21516 ac_decision_USE_SHMEM_WIN32_msg='Windows shared memory'
21525 # Linux has problems with MM_SHMT_MMANON even though it reports
21527 # FIXME - find exact 2.3 version that MMANON was fixed in. It is
21528 # confirmed fixed in 2.4 series.
21529 if test $os_version -le "240"; then
21531 for ac_item in USE_SHMEM_MMAP_TMP USE_SHMEM_MMAP_SHM USE_SHMEM_SHMGET; do
21532 eval "ac_decision_this=\$ac_decision_${ac_item}"
21533 if test ".$ac_decision_this" = .yes; then
21534 ac_decision=$ac_item
21535 eval "ac_decision_msg=\$ac_decision_${ac_item}_msg"
21542 if test ".$ac_decision" = .; then
21543 echo "$0:Error: decision on $ac_decision_item failed" 1>&2
21546 if test ".$ac_decision_msg" = .; then
21547 ac_decision_msg="$ac_decision"
21549 cat >>confdefs.h <<_ACEOF
21550 #define ${ac_decision_item} 1
21553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: decision on $ac_decision_item... $ac_decision_msg" >&5
21554 $as_echo "decision on $ac_decision_item... $ac_decision_msg" >&6; }
21557 cat >>confdefs.h <<_ACEOF
21558 #define $ac_decision 1
21569 case $ac_decision in
21570 USE_SHMEM_MMAP_TMP )
21573 USE_SHMEM_MMAP_SHM )
21590 # Do we have any shared memory support?
21591 if test "$usemmaptmp$usemmapshm$usemmapzero$useshmget$usemmapanon$usebeosarea$useos2shm$usewin32shm" = "00000000"; then
21612 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21613 if test "x$ac_cv_type_size_t" = xyes; then :
21617 cat >>confdefs.h <<_ACEOF
21618 #define size_t unsigned int
21623 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21624 # for constant arguments. Useless!
21625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
21626 $as_echo_n "checking for working alloca.h... " >&6; }
21627 if ${ac_cv_working_alloca_h+:} false; then :
21628 $as_echo_n "(cached) " >&6
21630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21631 /* end confdefs.h. */
21632 #include <alloca.h>
21636 char *p = (char *) alloca (2 * sizeof (int));
21642 if ac_fn_c_try_link "$LINENO"; then :
21643 ac_cv_working_alloca_h=yes
21645 ac_cv_working_alloca_h=no
21647 rm -f core conftest.err conftest.$ac_objext \
21648 conftest$ac_exeext conftest.$ac_ext
21650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
21651 $as_echo "$ac_cv_working_alloca_h" >&6; }
21652 if test $ac_cv_working_alloca_h = yes; then
21654 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
21658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
21659 $as_echo_n "checking for alloca... " >&6; }
21660 if ${ac_cv_func_alloca_works+:} false; then :
21661 $as_echo_n "(cached) " >&6
21663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21664 /* end confdefs.h. */
21666 # define alloca __builtin_alloca
21669 # include <malloc.h>
21670 # define alloca _alloca
21672 # ifdef HAVE_ALLOCA_H
21673 # include <alloca.h>
21678 # ifndef alloca /* predefined by HP cc +Olibcalls */
21679 void *alloca (size_t);
21689 char *p = (char *) alloca (1);
21695 if ac_fn_c_try_link "$LINENO"; then :
21696 ac_cv_func_alloca_works=yes
21698 ac_cv_func_alloca_works=no
21700 rm -f core conftest.err conftest.$ac_objext \
21701 conftest$ac_exeext conftest.$ac_ext
21703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
21704 $as_echo "$ac_cv_func_alloca_works" >&6; }
21706 if test $ac_cv_func_alloca_works = yes; then
21708 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
21711 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21712 # that cause trouble. Some versions do not even contain alloca or
21713 # contain a buggy version. If you still want to use their alloca,
21714 # use ar to extract alloca.o from them instead of compiling alloca.c.
21716 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
21718 $as_echo "#define C_ALLOCA 1" >>confdefs.h
21721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
21722 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
21723 if ${ac_cv_os_cray+:} false; then :
21724 $as_echo_n "(cached) " >&6
21726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21727 /* end confdefs.h. */
21728 #if defined CRAY && ! defined CRAY2
21735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21736 $EGREP "webecray" >/dev/null 2>&1; then :
21744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
21745 $as_echo "$ac_cv_os_cray" >&6; }
21746 if test $ac_cv_os_cray = yes; then
21747 for ac_func in _getb67 GETB67 getb67; do
21748 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21749 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21750 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21752 cat >>confdefs.h <<_ACEOF
21753 #define CRAY_STACKSEG_END $ac_func
21762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
21763 $as_echo_n "checking stack direction for C alloca... " >&6; }
21764 if ${ac_cv_c_stack_direction+:} false; then :
21765 $as_echo_n "(cached) " >&6
21767 if test "$cross_compiling" = yes; then :
21768 ac_cv_c_stack_direction=0
21770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21771 /* end confdefs.h. */
21772 $ac_includes_default
21774 find_stack_direction (int *addr, int depth)
21776 int dir, dummy = 0;
21779 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
21780 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
21781 return dir + dummy;
21785 main (int argc, char **argv)
21787 return find_stack_direction (0, argc + !argv + 20) < 0;
21790 if ac_fn_c_try_run "$LINENO"; then :
21791 ac_cv_c_stack_direction=1
21793 ac_cv_c_stack_direction=-1
21795 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21796 conftest.$ac_objext conftest.beam conftest.$ac_ext
21800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
21801 $as_echo "$ac_cv_c_stack_direction" >&6; }
21802 cat >>confdefs.h <<_ACEOF
21803 #define STACK_DIRECTION $ac_cv_c_stack_direction
21810 for ac_func in calloc setsid isinf isnan \
21811 getenv putenv setenv unsetenv \
21812 writev getifaddrs utime utimes
21814 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21815 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21816 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21817 cat >>confdefs.h <<_ACEOF
21818 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21824 for ac_func in setrlimit
21826 ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit"
21827 if test "x$ac_cv_func_setrlimit" = xyes; then :
21828 cat >>confdefs.h <<_ACEOF
21829 #define HAVE_SETRLIMIT 1
21837 for ac_func in getrlimit
21839 ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit"
21840 if test "x$ac_cv_func_getrlimit" = xyes; then :
21841 cat >>confdefs.h <<_ACEOF
21842 #define HAVE_GETRLIMIT 1
21851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfilev in -lsendfile" >&5
21852 $as_echo_n "checking for sendfilev in -lsendfile... " >&6; }
21853 if ${ac_cv_lib_sendfile_sendfilev+:} false; then :
21854 $as_echo_n "(cached) " >&6
21856 ac_check_lib_save_LIBS=$LIBS
21857 LIBS="-lsendfile $LIBS"
21858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21859 /* end confdefs.h. */
21861 /* Override any GCC internal prototype to avoid an error.
21862 Use char because int might match the return type of a GCC
21863 builtin and then its argument prototype would still apply. */
21871 return sendfilev ();
21876 if ac_fn_c_try_link "$LINENO"; then :
21877 ac_cv_lib_sendfile_sendfilev=yes
21879 ac_cv_lib_sendfile_sendfilev=no
21881 rm -f core conftest.err conftest.$ac_objext \
21882 conftest$ac_exeext conftest.$ac_ext
21883 LIBS=$ac_check_lib_save_LIBS
21885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfilev" >&5
21886 $as_echo "$ac_cv_lib_sendfile_sendfilev" >&6; }
21887 if test "x$ac_cv_lib_sendfile_sendfilev" = xyes; then :
21888 cat >>confdefs.h <<_ACEOF
21889 #define HAVE_LIBSENDFILE 1
21892 LIBS="-lsendfile $LIBS"
21896 for ac_func in sendfile send_file sendfilev
21898 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21899 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21900 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21901 cat >>confdefs.h <<_ACEOF
21902 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21911 # Check whether --with-sendfile was given.
21912 if test "${with_sendfile+set}" = set; then :
21913 withval=$with_sendfile; if test "$withval" = "yes"; then
21920 orig_sendfile=$sendfile
21923 # FreeBSD < 4.2 has issues with threads+sendfile
21924 if test $os_version -le "401999"; then
21925 if test "$threads" = "1"; then
21934 # disable sendfile support for 2.2 on S/390
21935 if test $os_version -lt 240; then
21940 # compiler-independent check for 64-bit build
21941 # The cast to long int works around a bug in the HP C Compiler
21942 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21943 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21944 # This bug is HP SR number 8606223364.
21945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
21946 $as_echo_n "checking size of void*... " >&6; }
21947 if ${ac_cv_sizeof_voidp+:} false; then :
21948 $as_echo_n "(cached) " >&6
21950 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
21953 if test "$ac_cv_type_voidp" = yes; then
21954 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21955 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21956 as_fn_error 77 "cannot compute sizeof (void*)
21957 See \`config.log' for more details" "$LINENO" 5; }
21959 ac_cv_sizeof_voidp=0
21964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
21965 $as_echo "$ac_cv_sizeof_voidp" >&6; }
21969 cat >>confdefs.h <<_ACEOF
21970 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
21974 if test "x$ac_cv_sizeof_voidp" = "x8"; then
21975 # sendfile not working for 64-bit build
21980 if test "$orig_sendfile" != "$sendfile"; then
21981 echo "sendfile support disabled to avoid system problem"
21987 for ac_func in sigaction
21989 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
21990 if test "x$ac_cv_func_sigaction" = xyes; then :
21991 cat >>confdefs.h <<_ACEOF
21992 #define HAVE_SIGACTION 1
22000 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
22001 /* NetBSD declares sys_siglist in unistd.h. */
22002 #ifdef HAVE_UNISTD_H
22003 # include <unistd.h>
22007 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
22013 cat >>confdefs.h <<_ACEOF
22014 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
22019 for ac_func in fork
22021 ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
22022 if test "x$ac_cv_func_fork" = xyes; then :
22023 cat >>confdefs.h <<_ACEOF
22024 #define HAVE_FORK 1
22033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr" >&5
22034 $as_echo_n "checking for inet_addr... " >&6; }
22035 if ${ac_cv_func_inet_addr+:} false; then :
22036 $as_echo_n "(cached) " >&6
22039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22040 /* end confdefs.h. */
22042 #ifdef HAVE_SYS_TYPES_H
22043 #include <sys/types.h>
22045 #ifdef HAVE_ARPA_INET_H
22046 #include <arpa/inet.h>
22053 inet_addr("127.0.0.1");
22059 if ac_fn_c_try_compile "$LINENO"; then :
22061 ac_cv_func_inet_addr=yes
22065 ac_cv_func_inet_addr=no
22068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_inet_addr" >&5
22072 $as_echo "$ac_cv_func_inet_addr" >&6; }
22074 if test "$ac_cv_func_inet_addr" = "yes"; then
22081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_network" >&5
22082 $as_echo_n "checking for inet_network... " >&6; }
22083 if ${ac_cv_func_inet_network+:} false; then :
22084 $as_echo_n "(cached) " >&6
22087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22088 /* end confdefs.h. */
22090 #ifdef HAVE_SYS_TYPES_H
22091 #include <sys/types.h>
22093 #ifdef HAVE_ARPA_INET_H
22094 #include <arpa/inet.h>
22101 inet_network("127.0.0.1");
22107 if ac_fn_c_try_compile "$LINENO"; then :
22109 ac_cv_func_inet_network=yes
22113 ac_cv_func_inet_network=no
22116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_inet_network" >&5
22120 $as_echo "$ac_cv_func_inet_network" >&6; }
22122 if test "$ac_cv_func_inet_network" = "yes"; then
22123 have_inet_network=1
22125 have_inet_network=0
22129 ac_fn_c_check_func "$LINENO" "_getch" "ac_cv_func__getch"
22130 if test "x$ac_cv_func__getch" = xyes; then :
22134 for ac_func in strerror_r
22136 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
22137 if test "x$ac_cv_func_strerror_r" = xyes; then :
22138 cat >>confdefs.h <<_ACEOF
22139 #define HAVE_STRERROR_R 1
22147 if test "$strerror_r" = "1"; then
22149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of return code from strerror_r" >&5
22150 $as_echo_n "checking for type of return code from strerror_r... " >&6; }
22151 if test "$cross_compiling" = yes; then :
22153 ac_cv_strerror_r_rc_int=no
22155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22156 /* end confdefs.h. */
22159 #include <string.h>
22164 if (strerror_r(ERANGE, buf, sizeof buf) < 1) {
22172 if ac_fn_c_try_run "$LINENO"; then :
22174 ac_cv_strerror_r_rc_int=yes
22177 ac_cv_strerror_r_rc_int=no
22179 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22180 conftest.$ac_objext conftest.beam conftest.$ac_ext
22183 if test "x$ac_cv_strerror_r_rc_int" = xyes; then
22185 $as_echo "#define STRERROR_R_RC_INT 1" >>confdefs.h
22191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
22192 $as_echo "$msg" >&6; }
22195 for ac_func in mmap
22197 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
22198 if test "x$ac_cv_func_mmap" = xyes; then :
22199 cat >>confdefs.h <<_ACEOF
22200 #define HAVE_MMAP 1
22208 if test "$native_mmap_emul" = "1"; then
22211 for ac_func in memmove
22213 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
22214 if test "x$ac_cv_func_memmove" = xyes; then :
22215 cat >>confdefs.h <<_ACEOF
22216 #define HAVE_MEMMOVE 1
22224 for ac_func in getpass getpassphrase gmtime_r localtime_r mkstemp
22226 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22227 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22228 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22229 cat >>confdefs.h <<_ACEOF
22230 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sigwait takes one argument" >&5
22250 $as_echo_n "checking whether sigwait takes one argument... " >&6; }
22251 if ${ac_cv_sigwait_one_arg+:} false; then :
22252 $as_echo_n "(cached) " >&6
22255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22256 /* end confdefs.h. */
22258 #if defined(__NETBSD__) || defined(DARWIN)
22259 /* When using the unproven-pthreads package, we need to pull in this
22260 * header to get a prototype for sigwait(). Else things will fail later
22261 * on. XXX Should probably be fixed in the unproven-pthreads package.
22262 * Darwin is declaring sigwait() in the wrong place as well.
22264 #include <pthread.h>
22266 #include <signal.h>
22280 if ac_fn_c_try_compile "$LINENO"; then :
22282 ac_cv_sigwait_one_arg=yes
22286 ac_cv_sigwait_one_arg=no
22289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sigwait_one_arg" >&5
22292 $as_echo "$ac_cv_sigwait_one_arg" >&6; }
22293 if test "$ac_cv_sigwait_one_arg" = "yes"; then
22295 $as_echo "#define SIGWAIT_TAKES_ONE_ARG 1" >>confdefs.h
22300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
22301 $as_echo_n "checking for ANSI C header files... " >&6; }
22302 if ${ac_cv_header_stdc+:} false; then :
22303 $as_echo_n "(cached) " >&6
22305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22306 /* end confdefs.h. */
22307 #include <stdlib.h>
22308 #include <stdarg.h>
22309 #include <string.h>
22320 if ac_fn_c_try_compile "$LINENO"; then :
22321 ac_cv_header_stdc=yes
22323 ac_cv_header_stdc=no
22325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22327 if test $ac_cv_header_stdc = yes; then
22328 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22330 /* end confdefs.h. */
22331 #include <string.h>
22334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22335 $EGREP "memchr" >/dev/null 2>&1; then :
22338 ac_cv_header_stdc=no
22344 if test $ac_cv_header_stdc = yes; then
22345 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22347 /* end confdefs.h. */
22348 #include <stdlib.h>
22351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22352 $EGREP "free" >/dev/null 2>&1; then :
22355 ac_cv_header_stdc=no
22361 if test $ac_cv_header_stdc = yes; then
22362 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22363 if test "$cross_compiling" = yes; then :
22366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22367 /* end confdefs.h. */
22369 #include <stdlib.h>
22370 #if ((' ' & 0x0FF) == 0x020)
22371 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22372 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22374 # define ISLOWER(c) \
22375 (('a' <= (c) && (c) <= 'i') \
22376 || ('j' <= (c) && (c) <= 'r') \
22377 || ('s' <= (c) && (c) <= 'z'))
22378 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22381 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22386 for (i = 0; i < 256; i++)
22387 if (XOR (islower (i), ISLOWER (i))
22388 || toupper (i) != TOUPPER (i))
22393 if ac_fn_c_try_run "$LINENO"; then :
22396 ac_cv_header_stdc=no
22398 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22399 conftest.$ac_objext conftest.beam conftest.$ac_ext
22404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
22405 $as_echo "$ac_cv_header_stdc" >&6; }
22406 if test $ac_cv_header_stdc = yes; then
22408 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
22414 for ac_header in ByteOrder.h \
22458 netinet/sctp_uio.h \
22480 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22481 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22482 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22483 cat >>confdefs.h <<_ACEOF
22484 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22491 for aprt_i in ByteOrder.h \
22535 netinet/sctp_uio.h \
22557 ac_safe=`echo "$aprt_i" | sed 'y%./+-%__p_%'`
22558 aprt_2=`echo "$aprt_i" | sed -e 's%/%_%g' -e 's/\.//g' -e 's/-//g'`
22559 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22567 # IRIX 6.5 has a problem in <netinet/tcp.h> which prevents it from
22568 # being included by itself. Check for <netinet/tcp.h> manually,
22569 # including another header file first.
22570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netinet/tcp.h" >&5
22571 $as_echo_n "checking for netinet/tcp.h... " >&6; }
22572 if ${apr_cv_hdr_netinet_tcp_h+:} false; then :
22573 $as_echo_n "(cached) " >&6
22575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22576 /* end confdefs.h. */
22577 #ifdef HAVE_NETINET_IN_H
22578 #include <netinet/in.h>
22580 #include <netinet/tcp.h>
22583 if ac_fn_c_try_cpp "$LINENO"; then :
22584 apr_cv_hdr_netinet_tcp_h=yes
22586 apr_cv_hdr_netinet_tcp_h=no
22588 rm -f conftest.err conftest.i conftest.$ac_ext
22590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_hdr_netinet_tcp_h" >&5
22591 $as_echo "$apr_cv_hdr_netinet_tcp_h" >&6; }
22592 if test "$apr_cv_hdr_netinet_tcp_h" = "yes"; then
22595 $as_echo "#define HAVE_NETINET_TCP_H 1" >>confdefs.h
22640 # Checking for h_errno in <netdb.h>
22641 if test "$netdbh" = "1"; then
22643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for h_errno in netdb.h" >&5
22644 $as_echo_n "checking for h_errno in netdb.h... " >&6; }
22645 if ${ac_cv_h_errno_cppflags+:} false; then :
22646 $as_echo_n "(cached) " >&6
22650 if test x != x; then
22651 CPPFLAGS="-D $CPPFLAGS"
22653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22654 /* end confdefs.h. */
22656 #ifdef HAVE_SYS_TYPES_H
22657 #include <sys/types.h>
22659 #ifdef HAVE_NETDB_H
22673 if ac_fn_c_try_compile "$LINENO"; then :
22675 if test x != x; then
22676 ac_cv_h_errno_cppflags=""
22678 ac_cv_h_errno_cppflags=yes
22683 ac_cv_h_errno_cppflags=no
22686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22687 if test "$ac_cv_h_errno_cppflags" = "no"; then
22688 ac_save="$CPPFLAGS"
22689 for flag in _XOPEN_SOURCE_EXTENDED; do
22691 if test x$flag != x; then
22692 CPPFLAGS="-D$flag $CPPFLAGS"
22694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22695 /* end confdefs.h. */
22697 #ifdef HAVE_SYS_TYPES_H
22698 #include <sys/types.h>
22700 #ifdef HAVE_NETDB_H
22714 if ac_fn_c_try_compile "$LINENO"; then :
22716 if test x$flag != x; then
22717 ac_cv_h_errno_cppflags="$flag"
22719 ac_cv_h_errno_cppflags=yes
22724 ac_cv_h_errno_cppflags=no
22727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22728 if test "$ac_cv_h_errno_cppflags" != "no"; then
22732 CPPFLAGS="$ac_save"
22737 if test "$ac_cv_h_errno_cppflags" != "no"; then
22738 if test "$ac_cv_h_errno_cppflags" != "yes"; then
22739 CPPFLAGS="-D$ac_cv_h_errno_cppflags $CPPFLAGS"
22740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -D$ac_cv_h_errno_cppflags" >&5
22741 $as_echo "yes, with -D$ac_cv_h_errno_cppflags" >&6; }
22743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_h_errno_cppflags" >&5
22744 $as_echo "$ac_cv_h_errno_cppflags" >&6; }
22747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_h_errno_cppflags" >&5
22748 $as_echo "$ac_cv_h_errno_cppflags" >&6; }
22751 if test "$ac_cv_h_errno_cflags" = "no"; then
22752 as_fn_error $? "can not find h_errno in netdb.h" "$LINENO" 5
22756 # Check whether --enable-allocator-uses-mmap was given.
22757 if test "${enable_allocator_uses_mmap+set}" = set; then :
22758 enableval=$enable_allocator_uses_mmap; if test "$enableval" = "yes"; then
22760 for ac_spec in header:sys/mman.h func:mmap func:munmap define:MAP_ANON; do
22761 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
22762 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
22765 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
22766 ac_var="ac_cv_header_$ac_item"
22769 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
22770 ac_var="ac_cv_file_$ac_item"
22772 func ) ac_var="ac_cv_func_$ac_item" ;;
22773 struct ) ac_var="ac_cv_struct_$ac_item" ;;
22774 define ) ac_var="ac_cv_define_$ac_item" ;;
22775 custom ) ac_var="$ac_item" ;;
22777 eval "ac_val=\$$ac_var"
22778 if test ".$ac_val" != .yes; then
22783 if test ".$ac_rc" = .yes; then
22786 $as_echo "#define APR_ALLOCATOR_USES_MMAP 1" >>confdefs.h
22790 as_fn_error $? "mmap()/MAP_ANON not supported" "$LINENO" 5
22799 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22800 if test "x$ac_cv_type_off_t" = xyes; then :
22804 cat >>confdefs.h <<_ACEOF
22805 #define off_t long int
22810 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22811 if test "x$ac_cv_type_pid_t" = xyes; then :
22815 cat >>confdefs.h <<_ACEOF
22821 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22822 if test "x$ac_cv_type_size_t" = xyes; then :
22826 cat >>confdefs.h <<_ACEOF
22827 #define size_t unsigned int
22832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22833 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22834 if ${ac_cv_type_uid_t+:} false; then :
22835 $as_echo_n "(cached) " >&6
22837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22838 /* end confdefs.h. */
22839 #include <sys/types.h>
22842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22843 $EGREP "uid_t" >/dev/null 2>&1; then :
22844 ac_cv_type_uid_t=yes
22846 ac_cv_type_uid_t=no
22851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
22852 $as_echo "$ac_cv_type_uid_t" >&6; }
22853 if test $ac_cv_type_uid_t = no; then
22855 $as_echo "#define uid_t int" >>confdefs.h
22858 $as_echo "#define gid_t int" >>confdefs.h
22862 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22863 if test "x$ac_cv_type_ssize_t" = xyes; then :
22867 cat >>confdefs.h <<_ACEOF
22868 #define ssize_t int
22873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
22874 $as_echo_n "checking for inline... " >&6; }
22875 if ${ac_cv_c_inline+:} false; then :
22876 $as_echo_n "(cached) " >&6
22879 for ac_kw in inline __inline__ __inline; do
22880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22881 /* end confdefs.h. */
22882 #ifndef __cplusplus
22884 static $ac_kw foo_t static_foo () {return 0; }
22885 $ac_kw foo_t foo () {return 0; }
22889 if ac_fn_c_try_compile "$LINENO"; then :
22890 ac_cv_c_inline=$ac_kw
22892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22893 test "$ac_cv_c_inline" != no && break
22897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
22898 $as_echo "$ac_cv_c_inline" >&6; }
22900 case $ac_cv_c_inline in
22903 case $ac_cv_c_inline in
22905 *) ac_val=$ac_cv_c_inline;;
22907 cat >>confdefs.h <<_ACEOF
22908 #ifndef __cplusplus
22909 #define inline $ac_val
22915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22916 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22917 if ${ac_cv_c_const+:} false; then :
22918 $as_echo_n "(cached) " >&6
22920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22921 /* end confdefs.h. */
22927 #ifndef __cplusplus
22928 /* Ultrix mips cc rejects this sort of thing. */
22929 typedef int charset[2];
22930 const charset cs = { 0, 0 };
22931 /* SunOS 4.1.1 cc rejects this. */
22932 char const *const *pcpcc;
22934 /* NEC SVR4.0.2 mips cc rejects this. */
22935 struct point {int x, y;};
22936 static struct point const zero = {0,0};
22937 /* AIX XL C 1.02.0.0 rejects this.
22938 It does not let you subtract one const X* pointer from another in
22939 an arm of an if-expression whose if-part is not a constant
22941 const char *g = "string";
22942 pcpcc = &g + (g ? g-g : 0);
22943 /* HPUX 7.0 cc rejects these. */
22945 ppc = (char**) pcpcc;
22946 pcpcc = (char const *const *) ppc;
22947 { /* SCO 3.2v4 cc rejects this sort of thing. */
22950 char const *s = 0 ? (char *) 0 : (char const *) 0;
22955 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22956 int x[] = {25, 17};
22957 const int *foo = &x[0];
22960 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22961 typedef const int *iptr;
22965 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22966 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22967 struct s { int j; const int *ap[3]; } bx;
22968 struct s *b = &bx; b->j = 5;
22970 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22971 const int foo = 10;
22972 if (!foo) return 0;
22974 return !cs[0] && !zero.x;
22981 if ac_fn_c_try_compile "$LINENO"; then :
22986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22989 $as_echo "$ac_cv_c_const" >&6; }
22990 if test $ac_cv_c_const = no; then
22992 $as_echo "#define const /**/" >>confdefs.h
22996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
22997 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
22998 if ${ac_cv_func_setpgrp_void+:} false; then :
22999 $as_echo_n "(cached) " >&6
23001 if test "$cross_compiling" = yes; then :
23002 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
23004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23005 /* end confdefs.h. */
23006 $ac_includes_default
23010 /* If this system has a BSD-style setpgrp which takes arguments,
23011 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
23012 exit successfully. */
23013 return setpgrp (1,1) != -1;
23018 if ac_fn_c_try_run "$LINENO"; then :
23019 ac_cv_func_setpgrp_void=no
23021 ac_cv_func_setpgrp_void=yes
23023 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23024 conftest.$ac_objext conftest.beam conftest.$ac_ext
23028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
23029 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
23030 if test $ac_cv_func_setpgrp_void = yes; then
23032 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
23038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
23039 $as_echo_n "checking for socklen_t... " >&6; }
23040 if ${ac_cv_socklen_t+:} false; then :
23041 $as_echo_n "(cached) " >&6
23044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23045 /* end confdefs.h. */
23047 #ifdef HAVE_SYS_TYPES_H
23048 #include <sys/types.h>
23050 #ifdef HAVE_SYS_SOCKET_H
23051 #include <sys/socket.h>
23058 socklen_t foo = (socklen_t) 0;
23064 if ac_fn_c_try_compile "$LINENO"; then :
23066 ac_cv_socklen_t=yes
23073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_socklen_t" >&5
23077 $as_echo "$ac_cv_socklen_t" >&6; }
23079 if test "$ac_cv_socklen_t" = "yes"; then
23081 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
23086 # The cast to long int works around a bug in the HP C Compiler
23087 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23088 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23089 # This bug is HP SR number 8606223364.
23090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
23091 $as_echo_n "checking size of void*... " >&6; }
23092 if ${ac_cv_sizeof_voidp+:} false; then :
23093 $as_echo_n "(cached) " >&6
23095 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
23098 if test "$ac_cv_type_voidp" = yes; then
23099 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23100 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23101 as_fn_error 77 "cannot compute sizeof (void*)
23102 See \`config.log' for more details" "$LINENO" 5; }
23104 ac_cv_sizeof_voidp=0
23109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
23110 $as_echo "$ac_cv_sizeof_voidp" >&6; }
23114 cat >>confdefs.h <<_ACEOF
23115 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
23120 if test "x$ac_cv_sizeof_voidp" != "x"; then
23121 voidp_size=$ac_cv_sizeof_voidp
23123 as_fn_error $? "Cannot determine size of void*" "$LINENO" 5
23126 # The cast to long int works around a bug in the HP C Compiler
23127 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23128 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23129 # This bug is HP SR number 8606223364.
23130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
23131 $as_echo_n "checking size of char... " >&6; }
23132 if ${ac_cv_sizeof_char+:} false; then :
23133 $as_echo_n "(cached) " >&6
23135 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
23138 if test "$ac_cv_type_char" = yes; then
23139 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23140 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23141 as_fn_error 77 "cannot compute sizeof (char)
23142 See \`config.log' for more details" "$LINENO" 5; }
23144 ac_cv_sizeof_char=0
23149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
23150 $as_echo "$ac_cv_sizeof_char" >&6; }
23154 cat >>confdefs.h <<_ACEOF
23155 #define SIZEOF_CHAR $ac_cv_sizeof_char
23159 # The cast to long int works around a bug in the HP C Compiler
23160 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23161 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23162 # This bug is HP SR number 8606223364.
23163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
23164 $as_echo_n "checking size of int... " >&6; }
23165 if ${ac_cv_sizeof_int+:} false; then :
23166 $as_echo_n "(cached) " >&6
23168 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
23171 if test "$ac_cv_type_int" = yes; then
23172 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23174 as_fn_error 77 "cannot compute sizeof (int)
23175 See \`config.log' for more details" "$LINENO" 5; }
23182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
23183 $as_echo "$ac_cv_sizeof_int" >&6; }
23187 cat >>confdefs.h <<_ACEOF
23188 #define SIZEOF_INT $ac_cv_sizeof_int
23192 # The cast to long int works around a bug in the HP C Compiler
23193 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23194 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23195 # This bug is HP SR number 8606223364.
23196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
23197 $as_echo_n "checking size of long... " >&6; }
23198 if ${ac_cv_sizeof_long+:} false; then :
23199 $as_echo_n "(cached) " >&6
23201 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
23204 if test "$ac_cv_type_long" = yes; then
23205 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23206 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23207 as_fn_error 77 "cannot compute sizeof (long)
23208 See \`config.log' for more details" "$LINENO" 5; }
23210 ac_cv_sizeof_long=0
23215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
23216 $as_echo "$ac_cv_sizeof_long" >&6; }
23220 cat >>confdefs.h <<_ACEOF
23221 #define SIZEOF_LONG $ac_cv_sizeof_long
23225 # The cast to long int works around a bug in the HP C Compiler
23226 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23227 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23228 # This bug is HP SR number 8606223364.
23229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
23230 $as_echo_n "checking size of short... " >&6; }
23231 if ${ac_cv_sizeof_short+:} false; then :
23232 $as_echo_n "(cached) " >&6
23234 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
23237 if test "$ac_cv_type_short" = yes; then
23238 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23239 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23240 as_fn_error 77 "cannot compute sizeof (short)
23241 See \`config.log' for more details" "$LINENO" 5; }
23243 ac_cv_sizeof_short=0
23248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
23249 $as_echo "$ac_cv_sizeof_short" >&6; }
23253 cat >>confdefs.h <<_ACEOF
23254 #define SIZEOF_SHORT $ac_cv_sizeof_short
23258 # The cast to long int works around a bug in the HP C Compiler
23259 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23260 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23261 # This bug is HP SR number 8606223364.
23262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
23263 $as_echo_n "checking size of long long... " >&6; }
23264 if ${ac_cv_sizeof_long_long+:} false; then :
23265 $as_echo_n "(cached) " >&6
23267 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
23270 if test "$ac_cv_type_long_long" = yes; then
23271 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23272 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23273 as_fn_error 77 "cannot compute sizeof (long long)
23274 See \`config.log' for more details" "$LINENO" 5; }
23276 ac_cv_sizeof_long_long=0
23281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
23282 $as_echo "$ac_cv_sizeof_long_long" >&6; }
23286 cat >>confdefs.h <<_ACEOF
23287 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23292 if test "$ac_cv_sizeof_short" = "2"; then
23295 if test "$ac_cv_sizeof_int" = "4"; then
23298 # Now we need to find what apr_int64_t (sizeof == 8) will be.
23299 # The first match is our preference.
23300 if test "$ac_cv_sizeof_int" = "8"; then
23301 int64_literal='#define APR_INT64_C(val) (val)'
23302 uint64_literal='#define APR_UINT64_C(val) (val##U)'
23303 int64_t_fmt='#define APR_INT64_T_FMT "d"'
23304 uint64_t_fmt='#define APR_UINT64_T_FMT "u"'
23305 uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "x"'
23308 int64_strfn="strtoi"
23309 elif test "$ac_cv_sizeof_long" = "8"; then
23310 int64_literal='#define APR_INT64_C(val) (val##L)'
23311 uint64_literal='#define APR_UINT64_C(val) (val##UL)'
23312 int64_t_fmt='#define APR_INT64_T_FMT "ld"'
23313 uint64_t_fmt='#define APR_UINT64_T_FMT "lu"'
23314 uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "lx"'
23317 int64_strfn="strtol"
23318 elif test "$ac_cv_sizeof_long_long" = "8"; then
23319 int64_literal='#define APR_INT64_C(val) (val##LL)'
23320 uint64_literal='#define APR_UINT64_C(val) (val##ULL)'
23321 # Linux, Solaris, FreeBSD all support ll with printf.
23322 # BSD 4.4 originated 'q'. Solaris is more popular and
23323 # doesn't support 'q'. Solaris wins. Exceptions can
23324 # go to the OS-dependent section.
23325 int64_t_fmt='#define APR_INT64_T_FMT "lld"'
23326 uint64_t_fmt='#define APR_UINT64_T_FMT "llu"'
23327 uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "llx"'
23328 int64_value="long long"
23329 long_value="long long"
23330 int64_strfn="strtoll"
23331 elif test "$ac_cv_sizeof_longlong" = "8"; then
23332 int64_literal='#define APR_INT64_C(val) (val##LL)'
23333 uint64_literal='#define APR_UINT64_C(val) (val##ULL)'
23334 int64_t_fmt='#define APR_INT64_T_FMT "qd"'
23335 uint64_t_fmt='#define APR_UINT64_T_FMT "qu"'
23336 uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "qx"'
23337 int64_value="__int64"
23338 long_value="__int64"
23339 int64_strfn="strtoll"
23341 # int64_literal may be overriden if your compiler thinks you have
23342 # a 64-bit value but APR does not agree.
23343 as_fn_error $? "could not detect a 64-bit integer type" "$LINENO" 5
23346 # If present, allow the C99 macro INT64_C to override our conversion.
23348 # HP-UX's ANSI C compiler provides this without any includes, so we
23349 # will first look for INT64_C without adding stdint.h
23350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for INT64_C" >&5
23351 $as_echo_n "checking for INT64_C... " >&6; }
23352 if ${apr_cv_define_INT64_C+:} false; then :
23353 $as_echo_n "(cached) " >&6
23356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23357 /* end confdefs.h. */
23362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23363 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
23364 apr_cv_define_INT64_C=yes
23367 # Now check for INT64_C in stdint.h
23368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23369 /* end confdefs.h. */
23370 #include <stdint.h>
23375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23376 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
23377 apr_cv_define_INT64_C=yes
23379 apr_cv_define_INT64_C=no
23387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_define_INT64_C" >&5
23388 $as_echo "$apr_cv_define_INT64_C" >&6; }
23390 if test "$apr_cv_define_INT64_C" = "yes"; then
23391 int64_literal='#define APR_INT64_C(val) INT64_C(val)'
23392 uint64_literal='#define APR_UINT64_C(val) UINT64_C(val)'
23398 if test "$ac_cv_type_size_t" = "yes"; then
23399 size_t_value="size_t"
23401 size_t_value="apr_int32_t"
23403 if test "$ac_cv_type_ssize_t" = "yes"; then
23404 ssize_t_value="ssize_t"
23406 ssize_t_value="apr_int32_t"
23408 if test "$ac_cv_socklen_t" = "yes"; then
23409 socklen_t_value="socklen_t"
23412 if test "$ac_cv_sizeof_long" = "8"; then
23413 # 64-bit HP-UX requires 32-bit socklens in
23414 # kernel, but user-space declarations say
23415 # 64-bit (socklen_t == size_t == long).
23416 # This will result in many compile warnings,
23417 # but we're functionally busted otherwise.
23418 socklen_t_value="int"
23423 socklen_t_value="int"
23426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5
23427 $as_echo_n "checking size of pid_t... " >&6; }
23428 if ${ac_cv_sizeof_pid_t+:} false; then :
23429 $as_echo_n "(cached) " >&6
23431 if test "$cross_compiling" = yes; then :
23432 ac_cv_sizeof_pid_t=8
23434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23435 /* end confdefs.h. */
23437 #include <sys/types.h>
23440 FILE *f=fopen("conftestval", "w");
23442 fprintf(f, "%d\n", sizeof(pid_t));
23446 if ac_fn_c_try_run "$LINENO"; then :
23447 ac_cv_sizeof_pid_t=`cat conftestval`
23449 ac_cv_sizeof_pid_t=0
23451 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23452 conftest.$ac_objext conftest.beam conftest.$ac_ext
23456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5
23457 $as_echo "$ac_cv_sizeof_pid_t" >&6; }
23459 cat >>confdefs.h <<_ACEOF
23460 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
23465 if test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_short"; then
23466 pid_t_fmt='#define APR_PID_T_FMT "hd"'
23467 elif test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_int"; then
23468 pid_t_fmt='#define APR_PID_T_FMT "d"'
23469 elif test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_long"; then
23470 pid_t_fmt='#define APR_PID_T_FMT "ld"'
23471 elif test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_long_long"; then
23472 pid_t_fmt='#define APR_PID_T_FMT APR_INT64_T_FMT'
23474 pid_t_fmt='#error Can not determine the proper size for pid_t'
23477 # Basically, we have tried to figure out the correct format strings
23478 # for APR types which vary between platforms, but we don't always get
23482 # uniquely, the 31-bit Linux/s390 uses "unsigned long int"
23483 # for size_t rather than "unsigned int":
23491 if test "$ac_cv_sizeof_long" = "8"; then
23492 pid_t_fmt='#define APR_PID_T_FMT "d"'
23494 pid_t_fmt='#define APR_PID_T_FMT "ld"'
23518 int64_t_fmt='#define APR_INT64_T_FMT "I64d"'
23519 uint64_t_fmt='#define APR_UINT64_T_FMT "I64u"'
23520 uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "I64x"'
23521 int64_value="__int64"
23522 long_value="__int64"
23523 int64_strfn="_strtoi64"
23529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ssize_t and int are the same" >&5
23530 $as_echo_n "checking whether ssize_t and int are the same... " >&6; }
23531 if ${apr_cv_typematch_ssize_t_int+:} false; then :
23532 $as_echo_n "(cached) " >&6
23535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23536 /* end confdefs.h. */
23537 $ac_includes_default
23542 int foo[0 - !__builtin_types_compatible_p(ssize_t, int)];
23548 if ac_fn_c_try_compile "$LINENO"; then :
23549 apr_cv_typematch_ssize_t_int=yes
23552 apr_cv_typematch_ssize_t_int=no
23554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_ssize_t_int" >&5
23557 $as_echo "$apr_cv_typematch_ssize_t_int" >&6; }
23561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ssize_t and long are the same" >&5
23562 $as_echo_n "checking whether ssize_t and long are the same... " >&6; }
23563 if ${apr_cv_typematch_ssize_t_long+:} false; then :
23564 $as_echo_n "(cached) " >&6
23567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23568 /* end confdefs.h. */
23569 $ac_includes_default
23574 int foo[0 - !__builtin_types_compatible_p(ssize_t, long)];
23580 if ac_fn_c_try_compile "$LINENO"; then :
23581 apr_cv_typematch_ssize_t_long=yes
23584 apr_cv_typematch_ssize_t_long=no
23586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_ssize_t_long" >&5
23589 $as_echo "$apr_cv_typematch_ssize_t_long" >&6; }
23593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether size_t and unsigned int are the same" >&5
23594 $as_echo_n "checking whether size_t and unsigned int are the same... " >&6; }
23595 if ${apr_cv_typematch_size_t_unsigned_int+:} false; then :
23596 $as_echo_n "(cached) " >&6
23599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23600 /* end confdefs.h. */
23601 $ac_includes_default
23606 int foo[0 - !__builtin_types_compatible_p(size_t, unsigned int)];
23612 if ac_fn_c_try_compile "$LINENO"; then :
23613 apr_cv_typematch_size_t_unsigned_int=yes
23616 apr_cv_typematch_size_t_unsigned_int=no
23618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_size_t_unsigned_int" >&5
23621 $as_echo "$apr_cv_typematch_size_t_unsigned_int" >&6; }
23625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether size_t and unsigned long are the same" >&5
23626 $as_echo_n "checking whether size_t and unsigned long are the same... " >&6; }
23627 if ${apr_cv_typematch_size_t_unsigned_long+:} false; then :
23628 $as_echo_n "(cached) " >&6
23631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23632 /* end confdefs.h. */
23633 $ac_includes_default
23638 int foo[0 - !__builtin_types_compatible_p(size_t, unsigned long)];
23644 if ac_fn_c_try_compile "$LINENO"; then :
23645 apr_cv_typematch_size_t_unsigned_long=yes
23648 apr_cv_typematch_size_t_unsigned_long=no
23650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_size_t_unsigned_long" >&5
23653 $as_echo "$apr_cv_typematch_size_t_unsigned_long" >&6; }
23656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23657 $as_echo_n "checking size of ssize_t... " >&6; }
23658 if ${ac_cv_sizeof_ssize_t+:} false; then :
23659 $as_echo_n "(cached) " >&6
23661 if test "$cross_compiling" = yes; then :
23662 ac_cv_sizeof_ssize_t=8
23664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23665 /* end confdefs.h. */
23667 #include <sys/types.h>
23670 FILE *f=fopen("conftestval", "w");
23672 fprintf(f, "%d\n", sizeof(ssize_t));
23676 if ac_fn_c_try_run "$LINENO"; then :
23677 ac_cv_sizeof_ssize_t=`cat conftestval`
23679 ac_cv_sizeof_ssize_t=0
23681 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23682 conftest.$ac_objext conftest.beam conftest.$ac_ext
23686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23687 $as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23689 cat >>confdefs.h <<_ACEOF
23690 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which format to use for apr_ssize_t" >&5
23696 $as_echo_n "checking which format to use for apr_ssize_t... " >&6; }
23697 if test -n "$ssize_t_fmt"; then
23698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: %$ssize_t_fmt" >&5
23699 $as_echo "%$ssize_t_fmt" >&6; }
23700 elif test "$ac_cv_sizeof_ssize_t" = "$ac_cv_sizeof_int"; then
23702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: %d" >&5
23703 $as_echo "%d" >&6; }
23704 elif test "$ac_cv_sizeof_ssize_t" = "$ac_cv_sizeof_long"; then
23706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: %ld" >&5
23707 $as_echo "%ld" >&6; }
23709 as_fn_error $? "could not determine the proper format for apr_ssize_t" "$LINENO" 5
23712 ssize_t_fmt="#define APR_SSIZE_T_FMT \"$ssize_t_fmt\""
23714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
23715 $as_echo_n "checking size of size_t... " >&6; }
23716 if ${ac_cv_sizeof_size_t+:} false; then :
23717 $as_echo_n "(cached) " >&6
23719 if test "$cross_compiling" = yes; then :
23720 ac_cv_sizeof_size_t=8
23722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23723 /* end confdefs.h. */
23725 #include <stddef.h>
23728 FILE *f=fopen("conftestval", "w");
23730 fprintf(f, "%d\n", sizeof(size_t));
23734 if ac_fn_c_try_run "$LINENO"; then :
23735 ac_cv_sizeof_size_t=`cat conftestval`
23737 ac_cv_sizeof_size_t=0
23739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23740 conftest.$ac_objext conftest.beam conftest.$ac_ext
23744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
23745 $as_echo "$ac_cv_sizeof_size_t" >&6; }
23747 cat >>confdefs.h <<_ACEOF
23748 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which format to use for apr_size_t" >&5
23754 $as_echo_n "checking which format to use for apr_size_t... " >&6; }
23755 if test -n "$size_t_fmt"; then
23756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: %$size_t_fmt" >&5
23757 $as_echo "%$size_t_fmt" >&6; }
23758 elif test "$ac_cv_sizeof_size_t" = "$ac_cv_sizeof_int"; then
23760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: %d" >&5
23761 $as_echo "%d" >&6; }
23762 elif test "$ac_cv_sizeof_size_t" = "$ac_cv_sizeof_long"; then
23764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: %ld" >&5
23765 $as_echo "%ld" >&6; }
23767 as_fn_error $? "could not determine the proper format for apr_size_t" "$LINENO" 5
23770 size_t_fmt="#define APR_SIZE_T_FMT \"$size_t_fmt\""
23772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
23773 $as_echo_n "checking size of off_t... " >&6; }
23774 if ${ac_cv_sizeof_off_t+:} false; then :
23775 $as_echo_n "(cached) " >&6
23777 if test "$cross_compiling" = yes; then :
23778 ac_cv_sizeof_off_t=8
23780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23781 /* end confdefs.h. */
23783 #include <sys/types.h>
23786 FILE *f=fopen("conftestval", "w");
23788 fprintf(f, "%d\n", sizeof(off_t));
23792 if ac_fn_c_try_run "$LINENO"; then :
23793 ac_cv_sizeof_off_t=`cat conftestval`
23795 ac_cv_sizeof_off_t=0
23797 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23798 conftest.$ac_objext conftest.beam conftest.$ac_ext
23802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
23803 $as_echo "$ac_cv_sizeof_off_t" >&6; }
23805 cat >>confdefs.h <<_ACEOF
23806 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23811 if test "${ac_cv_sizeof_off_t}${apr_cv_use_lfs64}" = "4yes"; then
23814 for ac_func in mmap64 sendfile64 sendfilev64 mkstemp64 readdir64_r
23816 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23817 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23818 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23819 cat >>confdefs.h <<_ACEOF
23820 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23826 elif test "${ac_cv_sizeof_off_t}" != "${ac_cv_sizeof_size_t}"; then
23827 # unsure of using -gt above is as portable, can can't forsee where
23828 # off_t can legitimately be smaller than size_t
23834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which type to use for apr_off_t" >&5
23835 $as_echo_n "checking which type to use for apr_off_t... " >&6; }
23836 if test "${ac_cv_sizeof_off_t}${apr_cv_use_lfs64}" = "4yes"; then
23838 off_t_fmt='#define APR_OFF_T_FMT APR_INT64_T_FMT'
23839 off_t_value='off64_t'
23840 off_t_strfn='apr_strtoi64'
23841 elif test "${ac_cv_sizeof_off_t}x${ac_cv_sizeof_long}" = "4x4"; then
23842 # Special case: off_t may change size with _FILE_OFFSET_BITS
23843 # on 32-bit systems with LFS support. To avoid compatibility
23844 # issues when other packages do define _FILE_OFFSET_BITS,
23845 # hard-code apr_off_t to long.
23847 off_t_fmt='#define APR_OFF_T_FMT "ld"'
23848 off_t_strfn='strtol'
23849 elif test "$ac_cv_type_off_t" = "yes"; then
23851 # off_t is more commonly a long than an int; prefer that case
23852 # where int and long are the same size.
23853 if test "$ac_cv_sizeof_off_t" = "$ac_cv_sizeof_long"; then
23854 off_t_fmt='#define APR_OFF_T_FMT "ld"'
23855 off_t_strfn='strtol'
23856 elif test "$ac_cv_sizeof_off_t" = "$ac_cv_sizeof_int"; then
23857 off_t_fmt='#define APR_OFF_T_FMT "d"'
23858 off_t_strfn='strtoi'
23859 elif test "$ac_cv_sizeof_off_t" = "$ac_cv_sizeof_long_long"; then
23860 off_t_fmt='#define APR_OFF_T_FMT APR_INT64_T_FMT'
23861 off_t_strfn='apr_strtoi64'
23863 as_fn_error $? "could not determine the size of off_t" "$LINENO" 5
23868 off_t_value=apr_int64_t
23869 off_t_fmt='#define APR_OFF_T_FMT "I64d"'
23870 off_t_strfn='_strtoi64'
23875 off_t_value=apr_int32_t
23877 off_t_strfn='strtoi'
23879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $off_t_value" >&5
23880 $as_echo "$off_t_value" >&6; }
23882 # Regardless of whether _LARGEFILE64_SOURCE is used, on some
23883 # platforms _FILE_OFFSET_BITS will affect the size of ino_t and hence
23884 # the build-time ABI may be different from the apparent ABI when using
23885 # APR with another package which *does* define _FILE_OFFSET_BITS.
23886 # (Exactly as per the case above with off_t where LFS is *not* used)
23888 # To be safe, hard-code apr_ino_t as 'unsigned long' or 'unsigned int'
23889 # iff that is exactly the size of ino_t here; otherwise use ino_t as existing
23890 # releases did. To be correct, apr_ino_t should have been made an
23891 # ino64_t as apr_off_t is off64_t, but this can't be done now without
23897 ino_t_value=apr_int64_t
23901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ino_t" >&5
23902 $as_echo_n "checking size of ino_t... " >&6; }
23903 if ${ac_cv_sizeof_ino_t+:} false; then :
23904 $as_echo_n "(cached) " >&6
23906 if test "$cross_compiling" = yes; then :
23907 ac_cv_sizeof_ino_t=$ac_cv_sizeof_long
23909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23910 /* end confdefs.h. */
23912 $ac_includes_default
23915 FILE *f=fopen("conftestval", "w");
23917 fprintf(f, "%d\n", sizeof(ino_t));
23921 if ac_fn_c_try_run "$LINENO"; then :
23922 ac_cv_sizeof_ino_t=`cat conftestval`
23924 ac_cv_sizeof_ino_t=0
23926 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23927 conftest.$ac_objext conftest.beam conftest.$ac_ext
23931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ino_t" >&5
23932 $as_echo "$ac_cv_sizeof_ino_t" >&6; }
23934 cat >>confdefs.h <<_ACEOF
23935 #define SIZEOF_INO_T $ac_cv_sizeof_ino_t
23939 if test $ac_cv_sizeof_ino_t = 4; then
23940 if test $ac_cv_sizeof_long = 4; then
23941 ino_t_value="unsigned long"
23943 ino_t_value="unsigned int"
23948 { $as_echo "$as_me:${as_lineno-$LINENO}: using $ino_t_value for ino_t" >&5
23949 $as_echo "$as_me: using $ino_t_value for ino_t" >&6;}
23951 # Checks for endianness
23952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
23953 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
23954 if ${ac_cv_c_bigendian+:} false; then :
23955 $as_echo_n "(cached) " >&6
23957 ac_cv_c_bigendian=unknown
23958 # See if we're dealing with a universal compiler.
23959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23960 /* end confdefs.h. */
23961 #ifndef __APPLE_CC__
23962 not a universal capable compiler
23967 if ac_fn_c_try_compile "$LINENO"; then :
23969 # Check for potential -arch flags. It is not universal unless
23970 # there are at least two -arch flags with different values.
23973 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23974 if test -n "$ac_prev"; then
23976 i?86 | x86_64 | ppc | ppc64)
23977 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23980 ac_cv_c_bigendian=universal
23986 elif test "x$ac_word" = "x-arch"; then
23991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23992 if test $ac_cv_c_bigendian = unknown; then
23993 # See if sys/param.h defines the BYTE_ORDER macro.
23994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23995 /* end confdefs.h. */
23996 #include <sys/types.h>
23997 #include <sys/param.h>
24002 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
24003 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
24005 bogus endian macros
24012 if ac_fn_c_try_compile "$LINENO"; then :
24013 # It does; now see whether it defined to BIG_ENDIAN or not.
24014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24015 /* end confdefs.h. */
24016 #include <sys/types.h>
24017 #include <sys/param.h>
24022 #if BYTE_ORDER != BIG_ENDIAN
24030 if ac_fn_c_try_compile "$LINENO"; then :
24031 ac_cv_c_bigendian=yes
24033 ac_cv_c_bigendian=no
24035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24039 if test $ac_cv_c_bigendian = unknown; then
24040 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
24041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24042 /* end confdefs.h. */
24043 #include <limits.h>
24048 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
24049 bogus endian macros
24056 if ac_fn_c_try_compile "$LINENO"; then :
24057 # It does; now see whether it defined to _BIG_ENDIAN or not.
24058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24059 /* end confdefs.h. */
24060 #include <limits.h>
24065 #ifndef _BIG_ENDIAN
24073 if ac_fn_c_try_compile "$LINENO"; then :
24074 ac_cv_c_bigendian=yes
24076 ac_cv_c_bigendian=no
24078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24082 if test $ac_cv_c_bigendian = unknown; then
24083 # Compile a test program.
24084 if test "$cross_compiling" = yes; then :
24085 # Try to guess by grepping values from an object file.
24086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24087 /* end confdefs.h. */
24088 short int ascii_mm[] =
24089 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
24090 short int ascii_ii[] =
24091 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
24092 int use_ascii (int i) {
24093 return ascii_mm[i] + ascii_ii[i];
24095 short int ebcdic_ii[] =
24096 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
24097 short int ebcdic_mm[] =
24098 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
24099 int use_ebcdic (int i) {
24100 return ebcdic_mm[i] + ebcdic_ii[i];
24107 return use_ascii (foo) == use_ebcdic (foo);
24112 if ac_fn_c_try_compile "$LINENO"; then :
24113 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
24114 ac_cv_c_bigendian=yes
24116 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
24117 if test "$ac_cv_c_bigendian" = unknown; then
24118 ac_cv_c_bigendian=no
24120 # finding both strings is unlikely to happen, but who knows?
24121 ac_cv_c_bigendian=unknown
24125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24128 /* end confdefs.h. */
24129 $ac_includes_default
24134 /* Are we little or big endian? From Harbison&Steele. */
24138 char c[sizeof (long int)];
24141 return u.c[sizeof (long int) - 1] == 1;
24147 if ac_fn_c_try_run "$LINENO"; then :
24148 ac_cv_c_bigendian=no
24150 ac_cv_c_bigendian=yes
24152 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24153 conftest.$ac_objext conftest.beam conftest.$ac_ext
24158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
24159 $as_echo "$ac_cv_c_bigendian" >&6; }
24160 case $ac_cv_c_bigendian in #(
24162 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
24168 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
24172 as_fn_error $? "unknown endianness
24173 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
24176 if test $ac_cv_c_bigendian = yes; then
24182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of struct iovec" >&5
24183 $as_echo_n "checking size of struct iovec... " >&6; }
24184 if ${ac_cv_sizeof_struct_iovec+:} false; then :
24185 $as_echo_n "(cached) " >&6
24187 if test "$cross_compiling" = yes; then :
24188 ac_cv_sizeof_struct_iovec=0
24190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24191 /* end confdefs.h. */
24193 #include <sys/types.h>
24194 #include <sys/uio.h>
24197 FILE *f=fopen("conftestval", "w");
24199 fprintf(f, "%d\n", sizeof(struct iovec));
24203 if ac_fn_c_try_run "$LINENO"; then :
24204 ac_cv_sizeof_struct_iovec=`cat conftestval`
24206 ac_cv_sizeof_struct_iovec=0
24208 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24209 conftest.$ac_objext conftest.beam conftest.$ac_ext
24213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_iovec" >&5
24214 $as_echo "$ac_cv_sizeof_struct_iovec" >&6; }
24216 cat >>confdefs.h <<_ACEOF
24217 #define SIZEOF_STRUCT_IOVEC $ac_cv_sizeof_struct_iovec
24221 if test "$ac_cv_sizeof_struct_iovec" = "0"; then
24251 for ac_func in strnicmp
24253 ac_fn_c_check_func "$LINENO" "strnicmp" "ac_cv_func_strnicmp"
24254 if test "x$ac_cv_func_strnicmp" = xyes; then :
24255 cat >>confdefs.h <<_ACEOF
24256 #define HAVE_STRNICMP 1
24264 for ac_func in strncasecmp
24266 ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
24267 if test "x$ac_cv_func_strncasecmp" = xyes; then :
24268 cat >>confdefs.h <<_ACEOF
24269 #define HAVE_STRNCASECMP 1
24271 have_strncasecmp="1"
24273 have_strncasecmp="0"
24277 for ac_func in stricmp
24279 ac_fn_c_check_func "$LINENO" "stricmp" "ac_cv_func_stricmp"
24280 if test "x$ac_cv_func_stricmp" = xyes; then :
24281 cat >>confdefs.h <<_ACEOF
24282 #define HAVE_STRICMP 1
24290 for ac_func in strcasecmp
24292 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
24293 if test "x$ac_cv_func_strcasecmp" = xyes; then :
24294 cat >>confdefs.h <<_ACEOF
24295 #define HAVE_STRCASECMP 1
24297 have_strcasecmp="1"
24299 have_strcasecmp="0"
24303 for ac_func in strdup
24305 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
24306 if test "x$ac_cv_func_strdup" = xyes; then :
24307 cat >>confdefs.h <<_ACEOF
24308 #define HAVE_STRDUP 1
24316 for ac_func in strstr
24318 ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
24319 if test "x$ac_cv_func_strstr" = xyes; then :
24320 cat >>confdefs.h <<_ACEOF
24321 #define HAVE_STRSTR 1
24329 for ac_func in memchr
24331 ac_fn_c_check_func "$LINENO" "memchr" "ac_cv_func_memchr"
24332 if test "x$ac_cv_func_memchr" = xyes; then :
24333 cat >>confdefs.h <<_ACEOF
24334 #define HAVE_MEMCHR 1
24342 as_ac_var=`$as_echo "ac_cv_func_$int64_strfn" | $as_tr_sh`
24343 ac_fn_c_check_func "$LINENO" "$int64_strfn" "$as_ac_var"
24344 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24345 have_int64_strfn="1"
24347 have_int64_strfn="0"
24351 if test "$have_int64_strfn" = "0" && test "$int64_strfn" = "strtoll"; then
24352 int64_strfn="strtoq"
24353 ac_fn_c_check_func "$LINENO" "strtoq" "ac_cv_func_strtoq"
24354 if test "x$ac_cv_func_strtoq" = xyes; then :
24362 if test "$have_int64_strfn" = "1"; then
24364 cat >>confdefs.h <<_ACEOF
24365 #define APR_INT64_STRFN $int64_strfn
24378 if test "$off_t_strfn" = "apr_strtoi64" && test "$have_int64_strfn" = "1"; then
24379 off_t_strfn=$int64_strfn
24382 cat >>confdefs.h <<_ACEOF
24383 #define APR_OFF_T_STRFN $off_t_strfn
24387 echo "${nl}Checking for DSO..."
24388 # Check whether --enable-dso was given.
24389 if test "${enable_dso+set}" = set; then :
24390 enableval=$enable_dso; if test "x$enableval" = "xyes"; then
24401 if test "$dsotype" = "any"; then
24402 if test "$dsotype" = "any"; then
24405 # Original Darwin, not for 9.0!:
24406 ac_fn_c_check_func "$LINENO" "NSLinkModule" "ac_cv_func_NSLinkModule"
24407 if test "x$ac_cv_func_NSLinkModule" = xyes; then :
24411 hppa*-hpux[1-9]\.*|hppa*-hpux1[01]*)
24412 # shl is specific to parisc hpux SOM binaries, not used for 64 bit
24413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
24414 $as_echo_n "checking for shl_load in -ldld... " >&6; }
24415 if ${ac_cv_lib_dld_shl_load+:} false; then :
24416 $as_echo_n "(cached) " >&6
24418 ac_check_lib_save_LIBS=$LIBS
24420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24421 /* end confdefs.h. */
24423 /* Override any GCC internal prototype to avoid an error.
24424 Use char because int might match the return type of a GCC
24425 builtin and then its argument prototype would still apply. */
24433 return shl_load ();
24438 if ac_fn_c_try_link "$LINENO"; then :
24439 ac_cv_lib_dld_shl_load=yes
24441 ac_cv_lib_dld_shl_load=no
24443 rm -f core conftest.err conftest.$ac_objext \
24444 conftest$ac_exeext conftest.$ac_ext
24445 LIBS=$ac_check_lib_save_LIBS
24447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
24448 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
24449 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
24453 if test "$ac_cv_sizeof_voidp$have_shl" = "41"; then
24455 if test "x$LIBS" = "x"; then
24456 test "x$silent" != "xyes" && echo " setting LIBS to \"-ldld\""
24459 apr_addto_bugger="-ldld"
24460 for i in $apr_addto_bugger; do
24461 apr_addto_duplicate="0"
24463 if test "x$i" = "x$j"; then
24464 apr_addto_duplicate="1"
24468 if test $apr_addto_duplicate = "0"; then
24469 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
24477 # several 'other's below probably belong up here. If they always
24478 # use a platform implementation and shouldn't test the dlopen/dlfcn
24479 # features, then bring them up here.
24480 # But if they -should- optionally use dlfcn, and/or need the config
24481 # detection of dlopen/dlsym, do not move them up.
24486 if test "$dsotype" = "any"; then
24487 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
24488 if test "x$ac_cv_func_dlopen" = xyes; then :
24493 if test "$dsotype" = "any"; then
24494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
24495 $as_echo_n "checking for dlopen in -ldl... " >&6; }
24496 if ${ac_cv_lib_dl_dlopen+:} false; then :
24497 $as_echo_n "(cached) " >&6
24499 ac_check_lib_save_LIBS=$LIBS
24501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24502 /* end confdefs.h. */
24504 /* Override any GCC internal prototype to avoid an error.
24505 Use char because int might match the return type of a GCC
24506 builtin and then its argument prototype would still apply. */
24519 if ac_fn_c_try_link "$LINENO"; then :
24520 ac_cv_lib_dl_dlopen=yes
24522 ac_cv_lib_dl_dlopen=no
24524 rm -f core conftest.err conftest.$ac_objext \
24525 conftest$ac_exeext conftest.$ac_ext
24526 LIBS=$ac_check_lib_save_LIBS
24528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
24529 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
24530 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
24532 if test "x$LIBS" = "x"; then
24533 test "x$silent" != "xyes" && echo " setting LIBS to \"-ldl\""
24536 apr_addto_bugger="-ldl"
24537 for i in $apr_addto_bugger; do
24538 apr_addto_duplicate="0"
24540 if test "x$i" = "x$j"; then
24541 apr_addto_duplicate="1"
24545 if test $apr_addto_duplicate = "0"; then
24546 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
24555 if test "$dsotype" = "dlfcn"; then
24556 # ReliantUnix has dlopen() in libc but dlsym() in libdl :(
24557 ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym"
24558 if test "x$ac_cv_func_dlsym" = xyes; then :
24561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
24562 $as_echo_n "checking for dlsym in -ldl... " >&6; }
24563 if ${ac_cv_lib_dl_dlsym+:} false; then :
24564 $as_echo_n "(cached) " >&6
24566 ac_check_lib_save_LIBS=$LIBS
24568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24569 /* end confdefs.h. */
24571 /* Override any GCC internal prototype to avoid an error.
24572 Use char because int might match the return type of a GCC
24573 builtin and then its argument prototype would still apply. */
24586 if ac_fn_c_try_link "$LINENO"; then :
24587 ac_cv_lib_dl_dlsym=yes
24589 ac_cv_lib_dl_dlsym=no
24591 rm -f core conftest.err conftest.$ac_objext \
24592 conftest$ac_exeext conftest.$ac_ext
24593 LIBS=$ac_check_lib_save_LIBS
24595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
24596 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
24597 if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
24599 if test "x$LIBS" = "x"; then
24600 test "x$silent" != "xyes" && echo " setting LIBS to \"-ldl\""
24603 apr_addto_bugger="-ldl"
24604 for i in $apr_addto_bugger; do
24605 apr_addto_duplicate="0"
24607 if test "x$i" = "x$j"; then
24608 apr_addto_duplicate="1"
24612 if test $apr_addto_duplicate = "0"; then
24613 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
24621 echo "Weird: dlopen() was found but dlsym() was not found!"
24627 if test "$dsotype" = "any"; then
24629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for load_image in -lroot" >&5
24630 $as_echo_n "checking for load_image in -lroot... " >&6; }
24631 if ${ac_cv_lib_root_load_image+:} false; then :
24632 $as_echo_n "(cached) " >&6
24634 ac_check_lib_save_LIBS=$LIBS
24635 LIBS="-lroot $LIBS"
24636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24637 /* end confdefs.h. */
24639 /* Override any GCC internal prototype to avoid an error.
24640 Use char because int might match the return type of a GCC
24641 builtin and then its argument prototype would still apply. */
24645 char load_image ();
24649 return load_image ();
24654 if ac_fn_c_try_link "$LINENO"; then :
24655 ac_cv_lib_root_load_image=yes
24657 ac_cv_lib_root_load_image=no
24659 rm -f core conftest.err conftest.$ac_objext \
24660 conftest$ac_exeext conftest.$ac_ext
24661 LIBS=$ac_check_lib_save_LIBS
24663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_root_load_image" >&5
24664 $as_echo "$ac_cv_lib_root_load_image" >&6; }
24665 if test "x$ac_cv_lib_root_load_image" = xyes; then :
24671 if test "$dsotype" = "any"; then
24673 *os390|*os400|*-aix*)
24674 # Some -aix5 will use dl, no hassles. Keep that pattern here.
24677 if test "$have_shl" = "1"; then
24679 if test "x$LIBS" = "x"; then
24680 test "x$silent" != "xyes" && echo " setting LIBS to \"-ldld\""
24683 apr_addto_bugger="-ldld"
24684 for i in $apr_addto_bugger; do
24685 apr_addto_duplicate="0"
24687 if test "x$i" = "x$j"; then
24688 apr_addto_duplicate="1"
24692 if test $apr_addto_duplicate = "0"; then
24693 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
24704 if test "$dsotype" = "any"; then
24705 as_fn_error $? "Could not detect suitable DSO implementation" "$LINENO" 5
24706 elif test "$dsotype" = "no"; then
24711 $as_echo "#define DSO_USE_DLFCN 1" >>confdefs.h
24714 $as_echo "#define DSO_USE_SHL 1" >>confdefs.h
24717 $as_echo "#define DSO_USE_DYLD 1" >>confdefs.h
24719 other) ;; # Use whatever is in dso/OSDIR
24720 *) as_fn_error $? "Unknown DSO implementation \"$dsotype\"" "$LINENO" 5;;
24723 apr_modules="$apr_modules dso"
24728 echo "${nl}Checking for Processes..."
24730 for ac_func in waitpid
24732 ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid"
24733 if test "x$ac_cv_func_waitpid" = xyes; then :
24734 cat >>confdefs.h <<_ACEOF
24735 #define HAVE_WAITPID 1
24742 # Check whether --enable-other-child was given.
24743 if test "${enable_other_child+set}" = set; then :
24744 enableval=$enable_other_child; if test "$enableval" = "yes"; then
24756 if test -z "$have_proc_invoked"; then
24757 have_proc_invoked="0"
24762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Variable Length Arrays" >&5
24763 $as_echo_n "checking for Variable Length Arrays... " >&6; }
24764 apr_save_CFLAGS=$CFLAGS
24765 CFLAGS="$CFLAGS $CFLAGS_WARN"
24766 if test "$ac_cv_c_compiler_gnu" = "yes"; then
24767 CFLAGS="$CFLAGS -Werror"
24769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24770 /* end confdefs.h. */
24771 #include "confdefs.h"
24774 int main(int argc, const char *const *argv) {
24782 if ac_fn_c_try_compile "$LINENO"; then :
24787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24788 CFLAGS=$apr_save_CFLAGS
24790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vla_msg" >&5
24791 $as_echo "$vla_msg" >&6; }
24792 if test "$vla_msg" = "yes"; then
24794 $as_echo "#define HAVE_VLA 1" >>confdefs.h
24798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct rlimit" >&5
24799 $as_echo_n "checking struct rlimit... " >&6; }
24800 if ${ac_cv_struct_rlimit+:} false; then :
24801 $as_echo_n "(cached) " >&6
24804 if test "$cross_compiling" = yes; then :
24806 ac_cv_struct_rlimit=no
24808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24809 /* end confdefs.h. */
24811 #include <sys/types.h>
24812 #include <sys/time.h>
24813 #include <sys/resource.h>
24816 struct rlimit limit;
24817 limit.rlim_cur = 0;
24818 limit.rlim_max = 0;
24822 if ac_fn_c_try_run "$LINENO"; then :
24824 ac_cv_struct_rlimit=yes
24827 ac_cv_struct_rlimit=no
24829 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24830 conftest.$ac_objext conftest.beam conftest.$ac_ext
24834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_rlimit" >&5
24835 $as_echo "$ac_cv_struct_rlimit" >&6; }
24837 test "x$ac_cv_struct_rlimit" = xyes && struct_rlimit=1
24840 echo "${nl}Checking for Locking..."
24842 for ac_func in semget semctl flock
24844 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24845 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24846 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24847 cat >>confdefs.h <<_ACEOF
24848 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24854 for ac_header in semaphore.h OS.h
24856 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24857 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24858 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24859 cat >>confdefs.h <<_ACEOF
24860 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_open" >&5
24868 $as_echo_n "checking for library containing sem_open... " >&6; }
24869 if ${ac_cv_search_sem_open+:} false; then :
24870 $as_echo_n "(cached) " >&6
24872 ac_func_search_save_LIBS=$LIBS
24873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24874 /* end confdefs.h. */
24876 /* Override any GCC internal prototype to avoid an error.
24877 Use char because int might match the return type of a GCC
24878 builtin and then its argument prototype would still apply. */
24886 return sem_open ();
24891 for ac_lib in '' rt; do
24892 if test -z "$ac_lib"; then
24893 ac_res="none required"
24896 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24898 if ac_fn_c_try_link "$LINENO"; then :
24899 ac_cv_search_sem_open=$ac_res
24901 rm -f core conftest.err conftest.$ac_objext \
24903 if ${ac_cv_search_sem_open+:} false; then :
24907 if ${ac_cv_search_sem_open+:} false; then :
24910 ac_cv_search_sem_open=no
24912 rm conftest.$ac_ext
24913 LIBS=$ac_func_search_save_LIBS
24915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_open" >&5
24916 $as_echo "$ac_cv_search_sem_open" >&6; }
24917 ac_res=$ac_cv_search_sem_open
24918 if test "$ac_res" != no; then :
24919 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24923 for ac_func in sem_close sem_unlink sem_post sem_wait create_sem
24925 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24926 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24927 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24928 cat >>confdefs.h <<_ACEOF
24929 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24936 # Some systems return ENOSYS from sem_open.
24937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working sem_open" >&5
24938 $as_echo_n "checking for working sem_open... " >&6; }
24939 if ${ac_cv_func_sem_open+:} false; then :
24940 $as_echo_n "(cached) " >&6
24943 if test "$cross_compiling" = yes; then :
24944 ac_cv_func_sem_open=no
24946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24947 /* end confdefs.h. */
24950 #include <stdlib.h>
24952 #include <semaphore.h>
24954 #define SEM_FAILED (-1)
24959 const char *sem_name = "/apr_autoconf";
24961 psem = sem_open(sem_name, O_CREAT, 0644, 1);
24962 if (psem == (sem_t *)SEM_FAILED) {
24966 psem = sem_open(sem_name, O_CREAT | O_EXCL, 0644, 1);
24967 if (psem != (sem_t *)SEM_FAILED) {
24971 sem_unlink(sem_name);
24975 if ac_fn_c_try_run "$LINENO"; then :
24976 ac_cv_func_sem_open=yes
24978 ac_cv_func_sem_open=no
24980 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24981 conftest.$ac_objext conftest.beam conftest.$ac_ext
24985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_sem_open" >&5
24986 $as_echo "$ac_cv_func_sem_open" >&6; }
24988 # It's stupid, but not all platforms have union semun, even those that need it.
24989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for union semun in sys/sem.h" >&5
24990 $as_echo_n "checking for union semun in sys/sem.h... " >&6; }
24991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24992 /* end confdefs.h. */
24994 #include <sys/types.h>
24995 #include <sys/ipc.h>
24996 #include <sys/sem.h>
25003 semctl(0, 0, 0, arg);
25009 if ac_fn_c_try_compile "$LINENO"; then :
25010 have_union_semun="1" union_semun=yes
25014 have_union_semun="0"
25017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
25019 $as_echo "$msg" >&6; }
25023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOCK_EX in sys/file.h" >&5
25024 $as_echo_n "checking for LOCK_EX in sys/file.h... " >&6; }
25025 if ${ac_cv_define_LOCK_EX+:} false; then :
25026 $as_echo_n "(cached) " >&6
25029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25030 /* end confdefs.h. */
25032 #include <sys/file.h>
25038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25039 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
25040 ac_cv_define_LOCK_EX=yes
25042 ac_cv_define_LOCK_EX=no
25048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_LOCK_EX" >&5
25049 $as_echo "$ac_cv_define_LOCK_EX" >&6; }
25050 if test "$ac_cv_define_LOCK_EX" = "yes"; then
25052 $as_echo "#define HAVE_LOCK_EX 1" >>confdefs.h
25057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLK in fcntl.h" >&5
25058 $as_echo_n "checking for F_SETLK in fcntl.h... " >&6; }
25059 if ${ac_cv_define_F_SETLK+:} false; then :
25060 $as_echo_n "(cached) " >&6
25063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25064 /* end confdefs.h. */
25072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25073 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
25074 ac_cv_define_F_SETLK=yes
25076 ac_cv_define_F_SETLK=no
25082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_F_SETLK" >&5
25083 $as_echo "$ac_cv_define_F_SETLK" >&6; }
25084 if test "$ac_cv_define_F_SETLK" = "yes"; then
25086 $as_echo "#define HAVE_F_SETLK 1" >>confdefs.h
25091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SEM_UNDO in sys/sem.h" >&5
25092 $as_echo_n "checking for SEM_UNDO in sys/sem.h... " >&6; }
25093 if ${ac_cv_define_SEM_UNDO+:} false; then :
25094 $as_echo_n "(cached) " >&6
25097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25098 /* end confdefs.h. */
25100 #include <sys/sem.h>
25106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25107 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
25108 ac_cv_define_SEM_UNDO=yes
25110 ac_cv_define_SEM_UNDO=no
25116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_SEM_UNDO" >&5
25117 $as_echo "$ac_cv_define_SEM_UNDO" >&6; }
25118 if test "$ac_cv_define_SEM_UNDO" = "yes"; then
25120 $as_echo "#define HAVE_SEM_UNDO 1" >>confdefs.h
25125 # We are assuming that if the platform doesn't have POLLIN, it doesn't have
25126 # any POLL definitions.
25128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POLLIN in poll.h sys/poll.h" >&5
25129 $as_echo_n "checking for POLLIN in poll.h sys/poll.h... " >&6; }
25130 if ${ac_cv_define_POLLIN+:} false; then :
25131 $as_echo_n "(cached) " >&6
25134 ac_cv_define_POLLIN=no
25135 for curhdr in poll.h sys/poll.h
25137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25138 /* end confdefs.h. */
25146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25147 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
25148 ac_cv_define_POLLIN=yes
25155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_POLLIN" >&5
25156 $as_echo "$ac_cv_define_POLLIN" >&6; }
25157 if test "$ac_cv_define_POLLIN" = "yes"; then
25159 $as_echo "#define HAVE_POLLIN 1" >>confdefs.h
25164 if test "$threads" = "1"; then
25166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PROCESS_SHARED in pthread.h" >&5
25167 $as_echo_n "checking for PTHREAD_PROCESS_SHARED in pthread.h... " >&6; }
25168 if ${ac_cv_define_PTHREAD_PROCESS_SHARED+:} false; then :
25169 $as_echo_n "(cached) " >&6
25172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25173 /* end confdefs.h. */
25175 #include <pthread.h>
25176 #ifdef PTHREAD_PROCESS_SHARED
25181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25182 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
25183 ac_cv_define_PTHREAD_PROCESS_SHARED=yes
25185 ac_cv_define_PTHREAD_PROCESS_SHARED=no
25191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_PTHREAD_PROCESS_SHARED" >&5
25192 $as_echo "$ac_cv_define_PTHREAD_PROCESS_SHARED" >&6; }
25193 if test "$ac_cv_define_PTHREAD_PROCESS_SHARED" = "yes"; then
25195 $as_echo "#define HAVE_PTHREAD_PROCESS_SHARED 1" >>confdefs.h
25199 for ac_func in pthread_mutexattr_setpshared
25201 ac_fn_c_check_func "$LINENO" "pthread_mutexattr_setpshared" "ac_cv_func_pthread_mutexattr_setpshared"
25202 if test "x$ac_cv_func_pthread_mutexattr_setpshared" = xyes; then :
25203 cat >>confdefs.h <<_ACEOF
25204 #define HAVE_PTHREAD_MUTEXATTR_SETPSHARED 1
25210 # Some systems have setpshared and define PROCESS_SHARED, but don't
25211 # really support PROCESS_SHARED locks. So, we must validate that we
25212 # can go through the steps without receiving some sort of system error.
25213 # Linux and older versions of AIX have this problem.
25215 for ac_spec in header:pthread.h define:PTHREAD_PROCESS_SHARED func:pthread_mutexattr_setpshared; do
25216 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25217 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25220 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25221 ac_var="ac_cv_header_$ac_item"
25224 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25225 ac_var="ac_cv_file_$ac_item"
25227 func ) ac_var="ac_cv_func_$ac_item" ;;
25228 struct ) ac_var="ac_cv_struct_$ac_item" ;;
25229 define ) ac_var="ac_cv_define_$ac_item" ;;
25230 custom ) ac_var="$ac_item" ;;
25232 eval "ac_val=\$$ac_var"
25233 if test ".$ac_val" != .yes; then
25238 if test ".$ac_rc" = .yes; then
25241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working PROCESS_SHARED locks" >&5
25242 $as_echo_n "checking for working PROCESS_SHARED locks... " >&6; }
25243 if ${apr_cv_process_shared_works+:} false; then :
25244 $as_echo_n "(cached) " >&6
25247 if test "$cross_compiling" = yes; then :
25248 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25249 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25250 as_fn_error $? "cannot run test program while cross compiling
25251 See \`config.log' for more details" "$LINENO" 5; }
25253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25254 /* end confdefs.h. */
25256 #include <sys/types.h>
25257 #include <pthread.h>
25260 pthread_mutex_t mutex;
25261 pthread_mutexattr_t attr;
25262 if (pthread_mutexattr_init(&attr))
25264 if (pthread_mutexattr_setpshared(&attr, PTHREAD_PROCESS_SHARED))
25266 if (pthread_mutex_init(&mutex, &attr))
25268 if (pthread_mutexattr_destroy(&attr))
25270 if (pthread_mutex_destroy(&mutex))
25275 if ac_fn_c_try_run "$LINENO"; then :
25276 apr_cv_process_shared_works=yes
25278 apr_cv_process_shared_works=no
25280 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25281 conftest.$ac_objext conftest.beam conftest.$ac_ext
25285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_process_shared_works" >&5
25286 $as_echo "$apr_cv_process_shared_works" >&6; }
25287 # Override detection of pthread_mutexattr_setpshared
25288 ac_cv_func_pthread_mutexattr_setpshared=$apr_cv_process_shared_works
25295 if test "$ac_cv_func_pthread_mutexattr_setpshared" = "yes"; then
25297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for robust cross-process mutex support" >&5
25298 $as_echo_n "checking for robust cross-process mutex support... " >&6; }
25299 if ${apr_cv_mutex_robust_shared+:} false; then :
25300 $as_echo_n "(cached) " >&6
25302 if test "$cross_compiling" = yes; then :
25303 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25304 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25305 as_fn_error $? "cannot run test program while cross compiling
25306 See \`config.log' for more details" "$LINENO" 5; }
25308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25309 /* end confdefs.h. */
25311 #include <sys/types.h>
25312 #include <pthread.h>
25313 #include <stdlib.h>
25315 int main(int argc, char **argv)
25317 pthread_mutex_t mutex;
25318 pthread_mutexattr_t attr;
25320 if (pthread_mutexattr_init(&attr))
25322 if (pthread_mutexattr_setpshared(&attr, PTHREAD_PROCESS_SHARED))
25324 if (pthread_mutexattr_setrobust_np(&attr, PTHREAD_MUTEX_ROBUST_NP))
25326 if (pthread_mutexattr_setprotocol(&attr, PTHREAD_PRIO_INHERIT))
25328 if (pthread_mutex_init(&mutex, &attr))
25330 if (pthread_mutexattr_destroy(&attr))
25332 if (pthread_mutex_destroy(&mutex))
25338 if ac_fn_c_try_run "$LINENO"; then :
25339 apr_cv_mutex_robust_shared=yes
25341 apr_cv_mutex_robust_shared=no
25343 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25344 conftest.$ac_objext conftest.beam conftest.$ac_ext
25348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_mutex_robust_shared" >&5
25349 $as_echo "$apr_cv_mutex_robust_shared" >&6; }
25351 if test "$apr_cv_mutex_robust_shared" = "yes"; then
25353 $as_echo "#define HAVE_PTHREAD_MUTEX_ROBUST 1" >>confdefs.h
25360 # See which lock mechanisms we can support on this system.
25362 for ac_spec in header:semaphore.h func:sem_open func:sem_close func:sem_unlink func:sem_post func:sem_wait; do
25363 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25364 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25367 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25368 ac_var="ac_cv_header_$ac_item"
25371 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25372 ac_var="ac_cv_file_$ac_item"
25374 func ) ac_var="ac_cv_func_$ac_item" ;;
25375 struct ) ac_var="ac_cv_struct_$ac_item" ;;
25376 define ) ac_var="ac_cv_define_$ac_item" ;;
25377 custom ) ac_var="$ac_item" ;;
25379 eval "ac_val=\$$ac_var"
25380 if test ".$ac_val" != .yes; then
25385 if test ".$ac_rc" = .yes; then
25394 for ac_spec in func:semget func:semctl define:SEM_UNDO; do
25395 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25396 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25399 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25400 ac_var="ac_cv_header_$ac_item"
25403 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25404 ac_var="ac_cv_file_$ac_item"
25406 func ) ac_var="ac_cv_func_$ac_item" ;;
25407 struct ) ac_var="ac_cv_struct_$ac_item" ;;
25408 define ) ac_var="ac_cv_define_$ac_item" ;;
25409 custom ) ac_var="$ac_item" ;;
25411 eval "ac_val=\$$ac_var"
25412 if test ".$ac_val" != .yes; then
25417 if test ".$ac_rc" = .yes; then
25426 for ac_spec in func:flock define:LOCK_EX; do
25427 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25428 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25431 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25432 ac_var="ac_cv_header_$ac_item"
25435 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25436 ac_var="ac_cv_file_$ac_item"
25438 func ) ac_var="ac_cv_func_$ac_item" ;;
25439 struct ) ac_var="ac_cv_struct_$ac_item" ;;
25440 define ) ac_var="ac_cv_define_$ac_item" ;;
25441 custom ) ac_var="$ac_item" ;;
25443 eval "ac_val=\$$ac_var"
25444 if test ".$ac_val" != .yes; then
25449 if test ".$ac_rc" = .yes; then
25458 for ac_spec in header:fcntl.h define:F_SETLK; do
25459 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25460 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25463 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25464 ac_var="ac_cv_header_$ac_item"
25467 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25468 ac_var="ac_cv_file_$ac_item"
25470 func ) ac_var="ac_cv_func_$ac_item" ;;
25471 struct ) ac_var="ac_cv_struct_$ac_item" ;;
25472 define ) ac_var="ac_cv_define_$ac_item" ;;
25473 custom ) ac_var="$ac_item" ;;
25475 eval "ac_val=\$$ac_var"
25476 if test ".$ac_val" != .yes; then
25481 if test ".$ac_rc" = .yes; then
25489 # note: the current APR use of shared mutex requires /dev/zero
25491 for ac_spec in header:pthread.h define:PTHREAD_PROCESS_SHARED func:pthread_mutexattr_setpshared file:/dev/zero; do
25492 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25493 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25496 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25497 ac_var="ac_cv_header_$ac_item"
25500 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25501 ac_var="ac_cv_file_$ac_item"
25503 func ) ac_var="ac_cv_func_$ac_item" ;;
25504 struct ) ac_var="ac_cv_struct_$ac_item" ;;
25505 define ) ac_var="ac_cv_define_$ac_item" ;;
25506 custom ) ac_var="$ac_item" ;;
25508 eval "ac_val=\$$ac_var"
25509 if test ".$ac_val" != .yes; then
25514 if test ".$ac_rc" = .yes; then
25516 hasprocpthreadser="1"
25519 hasprocpthreadser="0"
25523 for ac_spec in header:OS.h func:create_sem; do
25524 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25525 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25528 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25529 ac_var="ac_cv_header_$ac_item"
25532 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25533 ac_var="ac_cv_file_$ac_item"
25535 func ) ac_var="ac_cv_func_$ac_item" ;;
25536 struct ) ac_var="ac_cv_struct_$ac_item" ;;
25537 define ) ac_var="ac_cv_define_$ac_item" ;;
25538 custom ) ac_var="$ac_item" ;;
25540 eval "ac_val=\$$ac_var"
25541 if test ".$ac_val" != .yes; then
25546 if test ".$ac_rc" = .yes; then
25555 # See which lock mechanism we'll select by default on this system.
25556 # The last APR_DECIDE to execute sets the default.
25557 # At this stage, we match the ordering in Apache 1.3
25558 # which is (highest to lowest): sysvsem -> fcntl -> flock.
25559 # POSIX semaphores and cross-process pthread mutexes are not
25560 # used by default since they have less desirable behaviour when
25561 # e.g. a process holding the mutex segfaults.
25562 # The BEOSSEM decision doesn't require any substitutions but is
25563 # included here to prevent the fcntl() branch being selected
25564 # from the decision making.
25565 ac_decision_item='apr_lock implementation method'
25566 ac_decision_msg='FAILED'
25570 for ac_spec in func:flock define:LOCK_EX; do
25571 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25572 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25575 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25576 ac_var="ac_cv_header_$ac_item"
25579 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25580 ac_var="ac_cv_file_$ac_item"
25582 func ) ac_var="ac_cv_func_$ac_item" ;;
25583 struct ) ac_var="ac_cv_struct_$ac_item" ;;
25584 define ) ac_var="ac_cv_define_$ac_item" ;;
25585 custom ) ac_var="$ac_item" ;;
25587 eval "ac_val=\$$ac_var"
25588 if test ".$ac_val" != .yes; then
25593 if test ".$ac_rc" = .yes; then
25596 ac_decision='USE_FLOCK_SERIALIZE'
25597 ac_decision_msg='4.2BSD-style flock()'
25598 ac_decision_USE_FLOCK_SERIALIZE=yes
25599 ac_decision_USE_FLOCK_SERIALIZE_msg='4.2BSD-style flock()'
25607 for ac_spec in header:fcntl.h define:F_SETLK; do
25608 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25609 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25612 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25613 ac_var="ac_cv_header_$ac_item"
25616 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25617 ac_var="ac_cv_file_$ac_item"
25619 func ) ac_var="ac_cv_func_$ac_item" ;;
25620 struct ) ac_var="ac_cv_struct_$ac_item" ;;
25621 define ) ac_var="ac_cv_define_$ac_item" ;;
25622 custom ) ac_var="$ac_item" ;;
25624 eval "ac_val=\$$ac_var"
25625 if test ".$ac_val" != .yes; then
25630 if test ".$ac_rc" = .yes; then
25633 ac_decision='USE_FCNTL_SERIALIZE'
25634 ac_decision_msg='SVR4-style fcntl()'
25635 ac_decision_USE_FCNTL_SERIALIZE=yes
25636 ac_decision_USE_FCNTL_SERIALIZE_msg='SVR4-style fcntl()'
25644 for ac_spec in func:semget func:semctl define:SEM_UNDO; do
25645 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25646 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25649 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25650 ac_var="ac_cv_header_$ac_item"
25653 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25654 ac_var="ac_cv_file_$ac_item"
25656 func ) ac_var="ac_cv_func_$ac_item" ;;
25657 struct ) ac_var="ac_cv_struct_$ac_item" ;;
25658 define ) ac_var="ac_cv_define_$ac_item" ;;
25659 custom ) ac_var="$ac_item" ;;
25661 eval "ac_val=\$$ac_var"
25662 if test ".$ac_val" != .yes; then
25667 if test ".$ac_rc" = .yes; then
25670 ac_decision='USE_SYSVSEM_SERIALIZE'
25671 ac_decision_msg='SysV IPC semget()'
25672 ac_decision_USE_SYSVSEM_SERIALIZE=yes
25673 ac_decision_USE_SYSVSEM_SERIALIZE_msg='SysV IPC semget()'
25681 for ac_spec in header:OS.h func:create_sem; do
25682 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25683 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25686 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25687 ac_var="ac_cv_header_$ac_item"
25690 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25691 ac_var="ac_cv_file_$ac_item"
25693 func ) ac_var="ac_cv_func_$ac_item" ;;
25694 struct ) ac_var="ac_cv_struct_$ac_item" ;;
25695 define ) ac_var="ac_cv_define_$ac_item" ;;
25696 custom ) ac_var="$ac_item" ;;
25698 eval "ac_val=\$$ac_var"
25699 if test ".$ac_val" != .yes; then
25704 if test ".$ac_rc" = .yes; then
25707 ac_decision='USE_BEOSSEM'
25708 ac_decision_msg='BeOS Semaphores'
25709 ac_decision_USE_BEOSSEM=yes
25710 ac_decision_USE_BEOSSEM_msg='BeOS Semaphores'
25717 if test "x$apr_lock_method" != "x"; then
25718 ac_decision="$apr_lock_method"
25719 eval "ac_decision_msg=\"\$ac_decision_${ac_decision}_msg\""
25722 if test ".$ac_decision" = .; then
25723 echo "$0:Error: decision on $ac_decision_item failed" 1>&2
25726 if test ".$ac_decision_msg" = .; then
25727 ac_decision_msg="$ac_decision"
25729 cat >>confdefs.h <<_ACEOF
25730 #define ${ac_decision_item} 1
25733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: decision on $ac_decision_item... $ac_decision_msg" >&5
25734 $as_echo "decision on $ac_decision_item... $ac_decision_msg" >&6; }
25737 cat >>confdefs.h <<_ACEOF
25738 #define $ac_decision 1
25747 case $ac_decision in
25748 USE_FLOCK_SERIALIZE )
25751 USE_FCNTL_SERIALIZE )
25754 USE_SYSVSEM_SERIALIZE )
25757 USE_POSIXSEM_SERIALIZE )
25760 USE_PROC_PTHREAD_SERIALIZE )
25768 if test $hasfcntlser = "1"; then
25769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl returns EACCES when F_SETLK is already held" >&5
25770 $as_echo_n "checking if fcntl returns EACCES when F_SETLK is already held... " >&6; }
25771 if test "$cross_compiling" = yes; then :
25772 apr_fcntl_tryacquire_eacces=0
25774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25775 /* end confdefs.h. */
25777 #ifdef HAVE_STDLIB_H
25778 #include <stdlib.h>
25780 #ifdef HAVE_SYS_TYPES_H
25781 #include <sys/types.h>
25783 #ifdef HAVE_SYS_STAT_H
25784 #include <sys/stat.h>
25786 #ifdef HAVE_SYS_WAIT_H
25787 #include <sys/wait.h>
25789 #if defined(HAVE_UNISTD_H)
25790 #include <unistd.h>
25796 struct flock proc_mutex_lock_it = {0};
25797 const char *fname = "conftest.fcntl";
25802 proc_mutex_lock_it.l_whence = SEEK_SET; /* from current point */
25803 proc_mutex_lock_it.l_type = F_WRLCK; /* set exclusive/write lock */
25805 fd = creat(fname, S_IRWXU);
25808 if (rc = lockit()) {
25820 exit(WEXITSTATUS(status) != EACCES);
25826 rc = fcntl(fd, F_SETLK, &proc_mutex_lock_it);
25827 } while ( rc < 0 && errno == EINTR);
25829 return (rc < 0) ? errno : 0;
25832 if ac_fn_c_try_run "$LINENO"; then :
25833 apr_fcntl_tryacquire_eacces=1
25835 apr_fcntl_tryacquire_eacces=0
25837 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25838 conftest.$ac_objext conftest.beam conftest.$ac_ext
25843 if test "$apr_fcntl_tryacquire_eacces" = "1"; then
25845 $as_echo "#define FCNTL_TRYACQUIRE_EACCES 1" >>confdefs.h
25847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25848 $as_echo "yes" >&6; }
25850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25851 $as_echo "no" >&6; }
25867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if all interprocess locks affect threads" >&5
25868 $as_echo_n "checking if all interprocess locks affect threads... " >&6; }
25869 if test "x$apr_process_lock_is_global" = "xyes"; then
25871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25872 $as_echo "yes" >&6; }
25875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25876 $as_echo "no" >&6; }
25881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if POSIX sems affect threads in the same process" >&5
25882 $as_echo_n "checking if POSIX sems affect threads in the same process... " >&6; }
25883 if test "x$apr_posixsem_is_global" = "xyes"; then
25885 $as_echo "#define POSIXSEM_IS_GLOBAL 1" >>confdefs.h
25887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25888 $as_echo "yes" >&6; }
25890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25891 $as_echo "no" >&6; }
25894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SysV sems affect threads in the same process" >&5
25895 $as_echo_n "checking if SysV sems affect threads in the same process... " >&6; }
25896 if test "x$apr_sysvsem_is_global" = "xyes"; then
25898 $as_echo "#define SYSVSEM_IS_GLOBAL 1" >>confdefs.h
25900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25901 $as_echo "yes" >&6; }
25903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25904 $as_echo "no" >&6; }
25907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl locks affect threads in the same process" >&5
25908 $as_echo_n "checking if fcntl locks affect threads in the same process... " >&6; }
25909 if test "x$apr_fcntl_is_global" = "xyes"; then
25911 $as_echo "#define FCNTL_IS_GLOBAL 1" >>confdefs.h
25913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25914 $as_echo "yes" >&6; }
25916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25917 $as_echo "no" >&6; }
25920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if flock locks affect threads in the same process" >&5
25921 $as_echo_n "checking if flock locks affect threads in the same process... " >&6; }
25922 if test "x$apr_flock_is_global" = "xyes"; then
25924 $as_echo "#define FLOCK_IS_GLOBAL 1" >>confdefs.h
25926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25927 $as_echo "yes" >&6; }
25929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25930 $as_echo "no" >&6; }
25933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for entropy source" >&5
25934 $as_echo_n "checking for entropy source... " >&6; }
25939 # Check whether --with-egd was given.
25940 if test "${with_egd+set}" = set; then :
25942 $as_echo "#define HAVE_EGD 1" >>confdefs.h
25944 if test "$withval" = "yes"; then
25946 cat >>confdefs.h <<_ACEOF
25947 #define EGD_DEFAULT_SOCKET "/var/run/egd-pool","/dev/egd-pool","/etc/egd-pool","/etc/entropy"
25951 cat >>confdefs.h <<_ACEOF
25952 #define EGD_DEFAULT_SOCKET "$withval"
25956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: EGD-compatible daemon" >&5
25957 $as_echo "EGD-compatible daemon" >&6; }
25963 if test "$rand" != "1"; then
25965 # Check whether --with-devrandom was given.
25966 if test "${with_devrandom+set}" = set; then :
25967 withval=$with_devrandom; apr_devrandom="$withval"
25969 apr_devrandom="yes"
25973 if test "$apr_devrandom" = "yes"; then
25974 # /dev/random on OpenBSD doesn't provide random data, so
25975 # prefer /dev/arandom, which does; see random(4).
25976 for f in /dev/arandom /dev/urandom /dev/random; do
25977 if test -r $f; then
25983 elif test "$apr_devrandom" != "no"; then
25984 if test -r "$apr_devrandom"; then
25987 as_fn_error $? "$apr_devrandom not found or unreadable." "$LINENO" 5
25991 if test "$rand" = "1"; then
25994 if test $os_version -lt 1700; then
25996 why_no_rand=" ($apr_devrandom unusable on z/OS before V1R7)"
26002 if test "$rand" = "1"; then
26004 cat >>confdefs.h <<_ACEOF
26005 #define DEV_RANDOM "$apr_devrandom"
26008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_devrandom" >&5
26009 $as_echo "$apr_devrandom" >&6; }
26013 if test "$rand" != "1"; then
26015 # we have built in support for OS/2
26017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using OS/2 builtin random" >&5
26018 $as_echo "Using OS/2 builtin random" >&6; }
26022 if test "$rand" != "1"; then
26023 if test "$ac_cv_lib_truerand_main" = "yes"; then
26025 $as_echo "#define HAVE_TRUERAND 1" >>confdefs.h
26027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: truerand" >&5
26028 $as_echo "truerand" >&6; }
26031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found$why_no_rand" >&5
26032 $as_echo "not found$why_no_rand" >&6; }
26042 echo "${nl}Checking for File Info Support..."
26043 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "
26044 #ifdef HAVE_SYS_TYPES_H
26045 #include <sys/types.h>
26047 #ifdef HAVE_SYS_STAT_H
26048 #include <sys/stat.h>
26050 #ifdef HAVE_UNISTD_H
26051 #include <unistd.h>
26054 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
26056 cat >>confdefs.h <<_ACEOF
26057 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26062 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "
26063 #ifdef HAVE_SYS_TYPES_H
26064 #include <sys/types.h>
26066 #ifdef HAVE_SYS_STAT_H
26067 #include <sys/stat.h>
26069 #ifdef HAVE_UNISTD_H
26070 #include <unistd.h>
26073 if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then :
26075 cat >>confdefs.h <<_ACEOF
26076 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
26081 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctimensec" "ac_cv_member_struct_stat_st_ctimensec" "
26082 #ifdef HAVE_SYS_TYPES_H
26083 #include <sys/types.h>
26085 #ifdef HAVE_SYS_STAT_H
26086 #include <sys/stat.h>
26088 #ifdef HAVE_UNISTD_H
26089 #include <unistd.h>
26092 if test "x$ac_cv_member_struct_stat_st_ctimensec" = xyes; then :
26094 cat >>confdefs.h <<_ACEOF
26095 #define HAVE_STRUCT_STAT_ST_CTIMENSEC 1
26100 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" "
26101 #ifdef HAVE_SYS_TYPES_H
26102 #include <sys/types.h>
26104 #ifdef HAVE_SYS_STAT_H
26105 #include <sys/stat.h>
26107 #ifdef HAVE_UNISTD_H
26108 #include <unistd.h>
26111 if test "x$ac_cv_member_struct_stat_st_mtimensec" = xyes; then :
26113 cat >>confdefs.h <<_ACEOF
26114 #define HAVE_STRUCT_STAT_ST_MTIMENSEC 1
26119 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "
26120 #ifdef HAVE_SYS_TYPES_H
26121 #include <sys/types.h>
26123 #ifdef HAVE_SYS_STAT_H
26124 #include <sys/stat.h>
26126 #ifdef HAVE_UNISTD_H
26127 #include <unistd.h>
26130 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes; then :
26132 cat >>confdefs.h <<_ACEOF
26133 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
26138 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim.tv_nsec" "ac_cv_member_struct_stat_st_ctim_tv_nsec" "
26139 #ifdef HAVE_SYS_TYPES_H
26140 #include <sys/types.h>
26142 #ifdef HAVE_SYS_STAT_H
26143 #include <sys/stat.h>
26145 #ifdef HAVE_UNISTD_H
26146 #include <unistd.h>
26149 if test "x$ac_cv_member_struct_stat_st_ctim_tv_nsec" = xyes; then :
26151 cat >>confdefs.h <<_ACEOF
26152 #define HAVE_STRUCT_STAT_ST_CTIM_TV_NSEC 1
26157 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.tv_nsec" "ac_cv_member_struct_stat_st_mtim_tv_nsec" "
26158 #ifdef HAVE_SYS_TYPES_H
26159 #include <sys/types.h>
26161 #ifdef HAVE_SYS_STAT_H
26162 #include <sys/stat.h>
26164 #ifdef HAVE_UNISTD_H
26165 #include <unistd.h>
26168 if test "x$ac_cv_member_struct_stat_st_mtim_tv_nsec" = xyes; then :
26170 cat >>confdefs.h <<_ACEOF
26171 #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
26176 ac_fn_c_check_member "$LINENO" "struct stat" "st_atime_n" "ac_cv_member_struct_stat_st_atime_n" "
26177 #ifdef HAVE_SYS_TYPES_H
26178 #include <sys/types.h>
26180 #ifdef HAVE_SYS_STAT_H
26181 #include <sys/stat.h>
26183 #ifdef HAVE_UNISTD_H
26184 #include <unistd.h>
26187 if test "x$ac_cv_member_struct_stat_st_atime_n" = xyes; then :
26189 cat >>confdefs.h <<_ACEOF
26190 #define HAVE_STRUCT_STAT_ST_ATIME_N 1
26195 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime_n" "ac_cv_member_struct_stat_st_ctime_n" "
26196 #ifdef HAVE_SYS_TYPES_H
26197 #include <sys/types.h>
26199 #ifdef HAVE_SYS_STAT_H
26200 #include <sys/stat.h>
26202 #ifdef HAVE_UNISTD_H
26203 #include <unistd.h>
26206 if test "x$ac_cv_member_struct_stat_st_ctime_n" = xyes; then :
26208 cat >>confdefs.h <<_ACEOF
26209 #define HAVE_STRUCT_STAT_ST_CTIME_N 1
26214 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime_n" "ac_cv_member_struct_stat_st_mtime_n" "
26215 #ifdef HAVE_SYS_TYPES_H
26216 #include <sys/types.h>
26218 #ifdef HAVE_SYS_STAT_H
26219 #include <sys/stat.h>
26221 #ifdef HAVE_UNISTD_H
26222 #include <unistd.h>
26225 if test "x$ac_cv_member_struct_stat_st_mtime_n" = xyes; then :
26227 cat >>confdefs.h <<_ACEOF
26228 #define HAVE_STRUCT_STAT_ST_MTIME_N 1
26236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inode member of struct dirent" >&5
26237 $as_echo_n "checking for inode member of struct dirent... " >&6; }
26238 if ${apr_cv_dirent_inode+:} false; then :
26239 $as_echo_n "(cached) " >&6
26242 apr_cv_dirent_inode=no
26243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26244 /* end confdefs.h. */
26246 #include <sys/types.h>
26247 #include <dirent.h>
26256 struct dirent de; de.d_fileno;
26262 if ac_fn_c_try_compile "$LINENO"; then :
26263 apr_cv_dirent_inode=d_fileno
26265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26266 if test "$apr_cv_dirent_inode" = "no"; then
26267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26268 /* end confdefs.h. */
26270 #include <sys/types.h>
26271 #include <dirent.h>
26280 struct dirent de; de.d_ino;
26286 if ac_fn_c_try_compile "$LINENO"; then :
26287 apr_cv_dirent_inode=d_ino
26289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_dirent_inode" >&5
26294 $as_echo "$apr_cv_dirent_inode" >&6; }
26295 if test "$apr_cv_dirent_inode" != "no"; then
26297 cat >>confdefs.h <<_ACEOF
26298 #define DIRENT_INODE $apr_cv_dirent_inode
26304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file type member of struct dirent" >&5
26305 $as_echo_n "checking for file type member of struct dirent... " >&6; }
26306 if ${apr_cv_dirent_type+:} false; then :
26307 $as_echo_n "(cached) " >&6
26310 apr_cv_dirent_type=no
26311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26312 /* end confdefs.h. */
26314 #include <sys/types.h>
26315 #include <dirent.h>
26321 struct dirent de; de.d_type = DT_REG;
26327 if ac_fn_c_try_compile "$LINENO"; then :
26328 apr_cv_dirent_type=d_type
26330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_dirent_type" >&5
26334 $as_echo "$apr_cv_dirent_type" >&6; }
26335 if test "$apr_cv_dirent_type" != "no"; then
26337 cat >>confdefs.h <<_ACEOF
26338 #define DIRENT_TYPE $apr_cv_dirent_type
26344 echo "${nl}Checking for OS UUID Support..."
26346 for ac_header in uuid.h uuid/uuid.h sys/uuid.h
26348 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26349 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26350 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26351 cat >>confdefs.h <<_ACEOF
26352 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26360 apr_revert_save_LIBS=$LIBS
26362 # Prefer the flavor(s) that live in libc;
26363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_create" >&5
26364 $as_echo_n "checking for library containing uuid_create... " >&6; }
26365 if ${ac_cv_search_uuid_create+:} false; then :
26366 $as_echo_n "(cached) " >&6
26368 ac_func_search_save_LIBS=$LIBS
26369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26370 /* end confdefs.h. */
26372 /* Override any GCC internal prototype to avoid an error.
26373 Use char because int might match the return type of a GCC
26374 builtin and then its argument prototype would still apply. */
26378 char uuid_create ();
26382 return uuid_create ();
26387 for ac_lib in '' uuid; do
26388 if test -z "$ac_lib"; then
26389 ac_res="none required"
26392 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26394 if ac_fn_c_try_link "$LINENO"; then :
26395 ac_cv_search_uuid_create=$ac_res
26397 rm -f core conftest.err conftest.$ac_objext \
26399 if ${ac_cv_search_uuid_create+:} false; then :
26403 if ${ac_cv_search_uuid_create+:} false; then :
26406 ac_cv_search_uuid_create=no
26408 rm conftest.$ac_ext
26409 LIBS=$ac_func_search_save_LIBS
26411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_create" >&5
26412 $as_echo "$ac_cv_search_uuid_create" >&6; }
26413 ac_res=$ac_cv_search_uuid_create
26414 if test "$ac_res" != no; then :
26415 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_generate" >&5
26420 $as_echo_n "checking for library containing uuid_generate... " >&6; }
26421 if ${ac_cv_search_uuid_generate+:} false; then :
26422 $as_echo_n "(cached) " >&6
26424 ac_func_search_save_LIBS=$LIBS
26425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26426 /* end confdefs.h. */
26428 /* Override any GCC internal prototype to avoid an error.
26429 Use char because int might match the return type of a GCC
26430 builtin and then its argument prototype would still apply. */
26434 char uuid_generate ();
26438 return uuid_generate ();
26443 for ac_lib in '' uuid; do
26444 if test -z "$ac_lib"; then
26445 ac_res="none required"
26448 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26450 if ac_fn_c_try_link "$LINENO"; then :
26451 ac_cv_search_uuid_generate=$ac_res
26453 rm -f core conftest.err conftest.$ac_objext \
26455 if ${ac_cv_search_uuid_generate+:} false; then :
26459 if ${ac_cv_search_uuid_generate+:} false; then :
26462 ac_cv_search_uuid_generate=no
26464 rm conftest.$ac_ext
26465 LIBS=$ac_func_search_save_LIBS
26467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_generate" >&5
26468 $as_echo "$ac_cv_search_uuid_generate" >&6; }
26469 ac_res=$ac_cv_search_uuid_generate
26470 if test "$ac_res" != no; then :
26471 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26475 if test "$ac_cv_search_uuid_create" = "none required" -o \
26476 "$ac_cv_search_uuid_generate" = "none required"; then
26477 LIBS=$apr_revert_save_LIBS
26480 for ac_func in uuid_create uuid_generate
26482 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26483 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26484 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26485 cat >>confdefs.h <<_ACEOF
26486 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for os uuid usability" >&5
26494 $as_echo_n "checking for os uuid usability... " >&6; }
26495 if ${apr_cv_osuuid+:} false; then :
26496 $as_echo_n "(cached) " >&6
26499 # Ensure this test closely mirrors misc/unix/rand.c!
26501 #if defined(HAVE_SYS_TYPES_H)
26502 #include <sys/types.h>
26504 #if defined(HAVE_UNISTD_H)
26505 #include <unistd.h>
26507 #if defined(HAVE_UUID_H)
26509 #elif defined(HAVE_UUID_UUID_H)
26510 #include <uuid/uuid.h>
26511 #elif defined(HAVE_SYS_UUID_H)
26512 #include <sys/uuid.h>
26516 if test $ac_cv_func_uuid_create = yes; then
26517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26518 /* end confdefs.h. */
26526 uuid_create(&g, &s);
26527 if (s == uuid_s_ok) s = 0;
26533 if ac_fn_c_try_link "$LINENO"; then :
26536 apr_cv_func_uuid_create=no
26538 rm -f core conftest.err conftest.$ac_objext \
26539 conftest$ac_exeext conftest.$ac_ext
26541 if test $ac_cv_func_uuid_generate = yes; then
26542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26543 /* end confdefs.h. */
26556 if ac_fn_c_try_link "$LINENO"; then :
26559 apr_cv_func_uuid_generate=no
26561 rm -f core conftest.err conftest.$ac_objext \
26562 conftest$ac_exeext conftest.$ac_ext
26566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_osuuid" >&5
26567 $as_echo "$apr_cv_osuuid" >&6; }
26569 if test $apr_cv_osuuid = yes; then
26573 LIBS=$apr_revert_save_LIBS
26578 echo "${nl}Checking for Time Support..."
26580 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "
26581 #include <sys/types.h>
26584 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
26586 cat >>confdefs.h <<_ACEOF
26587 #define HAVE_STRUCT_TM_TM_GMTOFF 1
26592 ac_fn_c_check_member "$LINENO" "struct tm" "__tm_gmtoff" "ac_cv_member_struct_tm___tm_gmtoff" "
26593 #include <sys/types.h>
26596 if test "x$ac_cv_member_struct_tm___tm_gmtoff" = xyes; then :
26598 cat >>confdefs.h <<_ACEOF
26599 #define HAVE_STRUCT_TM___TM_GMTOFF 1
26606 echo "${nl}Checking for Networking support..."
26608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type in_addr" >&5
26609 $as_echo_n "checking for type in_addr... " >&6; }
26610 if ${ac_cv_type_in_addr+:} false; then :
26611 $as_echo_n "(cached) " >&6
26614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26615 /* end confdefs.h. */
26617 #ifdef HAVE_SYS_TYPES_H
26618 #include <sys/types.h>
26620 #ifdef HAVE_NETINET_IN_H
26621 #include <netinet/in.h>
26623 #ifdef HAVE_WINSOCK2_H
26624 #include <winsock2.h>
26631 struct in_addr arg;
26632 arg.s_addr = htonl(INADDR_ANY);
26638 if ac_fn_c_try_compile "$LINENO"; then :
26639 ac_cv_type_in_addr="yes"
26642 ac_cv_type_in_addr="no"
26644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_in_addr" >&5
26648 $as_echo "$ac_cv_type_in_addr" >&6; }
26650 if test "$ac_cv_type_in_addr" = "yes"; then
26656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fd == socket on this platform" >&5
26657 $as_echo_n "checking if fd == socket on this platform... " >&6; }
26658 if test "x$file_as_socket" != "x0" ; then
26659 file_as_socket="1";
26668 if test "$ac_cv_func_poll $file_as_socket" = "yes 1"; then
26670 $as_echo "#define WAITIO_USES_POLL 1" >>confdefs.h
26674 # Check the types only if we have gethostbyname_r
26675 if test "$ac_cv_func_gethostbyname_r" = "yes"; then
26678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking style of gethostbyname_r routine" >&5
26679 $as_echo_n "checking style of gethostbyname_r routine... " >&6; }
26680 if ${ac_cv_gethostbyname_r_style+:} false; then :
26681 $as_echo_n "(cached) " >&6
26683 apr_save_CFLAGS=$CFLAGS
26684 CFLAGS="$CFLAGS $CFLAGS_WARN"
26685 if test "$ac_cv_c_compiler_gnu" = "yes"; then
26686 CFLAGS="$CFLAGS -Werror"
26688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26689 /* end confdefs.h. */
26690 #include "confdefs.h"
26693 #ifdef HAVE_SYS_TYPES_H
26694 #include <sys/types.h>
26696 #ifdef HAVE_NETINET_IN_H
26697 #include <netinet/in.h>
26699 #ifdef HAVE_ARPA_INET_H
26700 #include <arpa/inet.h>
26702 #ifdef HAVE_NETDB_H
26705 #ifdef HAVE_STDLIB_H
26706 #include <stdlib.h>
26709 int main(int argc, const char *const *argv) {
26711 int tmp = gethostbyname_r((const char *) 0, (struct hostent *) 0,
26712 (char *) 0, 0, (struct hostent **) 0, &tmp);
26713 /* use tmp to suppress the warning */
26719 if ac_fn_c_try_compile "$LINENO"; then :
26720 ac_cv_gethostbyname_r_style=glibc2
26722 ac_cv_gethostbyname_r_style=none
26724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26725 CFLAGS=$apr_save_CFLAGS
26728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gethostbyname_r_style" >&5
26729 $as_echo "$ac_cv_gethostbyname_r_style" >&6; }
26731 if test "$ac_cv_gethostbyname_r_style" = "glibc2"; then
26733 $as_echo "#define GETHOSTBYNAME_R_GLIBC2 1" >>confdefs.h
26737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking 3rd argument to the gethostbyname_r routines" >&5
26738 $as_echo_n "checking 3rd argument to the gethostbyname_r routines... " >&6; }
26739 if ${ac_cv_gethostbyname_r_arg+:} false; then :
26740 $as_echo_n "(cached) " >&6
26742 apr_save_CFLAGS=$CFLAGS
26743 CFLAGS="$CFLAGS $CFLAGS_WARN"
26744 if test "$ac_cv_c_compiler_gnu" = "yes"; then
26745 CFLAGS="$CFLAGS -Werror"
26747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26748 /* end confdefs.h. */
26749 #include "confdefs.h"
26752 #ifdef HAVE_SYS_TYPES_H
26753 #include <sys/types.h>
26755 #ifdef HAVE_NETINET_IN_H
26756 #include <netinet/in.h>
26758 #ifdef HAVE_ARPA_INET_H
26759 #include <arpa/inet.h>
26761 #ifdef HAVE_NETDB_H
26764 #ifdef HAVE_STDLIB_H
26765 #include <stdlib.h>
26768 int main(int argc, const char *const *argv) {
26770 int tmp = gethostbyname_r((const char *) 0, (struct hostent *) 0,
26771 (struct hostent_data *) 0);
26772 /* use tmp to suppress the warning */
26778 if ac_fn_c_try_compile "$LINENO"; then :
26779 ac_cv_gethostbyname_r_arg=hostent_data
26781 ac_cv_gethostbyname_r_arg=char
26783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26784 CFLAGS=$apr_save_CFLAGS
26787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gethostbyname_r_arg" >&5
26788 $as_echo "$ac_cv_gethostbyname_r_arg" >&6; }
26790 if test "$ac_cv_gethostbyname_r_arg" = "hostent_data"; then
26792 $as_echo "#define GETHOSTBYNAME_R_HOSTENT_DATA 1" >>confdefs.h
26798 # Check the types only if we have getservbyname_r
26799 if test "$ac_cv_func_getservbyname_r" = "yes"; then
26802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking style of getservbyname_r routine" >&5
26803 $as_echo_n "checking style of getservbyname_r routine... " >&6; }
26804 if ${ac_cv_getservbyname_r_style+:} false; then :
26805 $as_echo_n "(cached) " >&6
26808 apr_save_CFLAGS=$CFLAGS
26809 CFLAGS="$CFLAGS $CFLAGS_WARN"
26810 if test "$ac_cv_c_compiler_gnu" = "yes"; then
26811 CFLAGS="$CFLAGS -Werror"
26813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26814 /* end confdefs.h. */
26815 #include "confdefs.h"
26818 #ifdef HAVE_SYS_TYPES_H
26819 #include <sys/types.h>
26821 #ifdef HAVE_NETINET_IN_H
26822 #include <netinet/in.h>
26824 #ifdef HAVE_ARPA_INET_H
26825 #include <arpa/inet.h>
26827 #ifdef HAVE_NETDB_H
26830 #ifdef HAVE_STDLIB_H
26831 #include <stdlib.h>
26834 int main(int argc, const char *const *argv) {
26836 int tmp = getservbyname_r((const char *) 0, (const char *) 0,
26837 (struct servent *) 0, (char *) 0, 0,
26838 (struct servent **) 0);
26839 /* use tmp to suppress the warning */
26845 if ac_fn_c_try_compile "$LINENO"; then :
26846 ac_cv_getservbyname_r_style=glibc2
26848 ac_cv_getservbyname_r_style=none
26850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26851 CFLAGS=$apr_save_CFLAGS
26854 if test "$ac_cv_getservbyname_r_style" = "none"; then
26855 apr_save_CFLAGS=$CFLAGS
26856 CFLAGS="$CFLAGS $CFLAGS_WARN"
26857 if test "$ac_cv_c_compiler_gnu" = "yes"; then
26858 CFLAGS="$CFLAGS -Werror"
26860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26861 /* end confdefs.h. */
26862 #include "confdefs.h"
26865 #ifdef HAVE_SYS_TYPES_H
26866 #include <sys/types.h>
26868 #ifdef HAVE_NETINET_IN_H
26869 #include <netinet/in.h>
26871 #ifdef HAVE_ARPA_INET_H
26872 #include <arpa/inet.h>
26874 #ifdef HAVE_NETDB_H
26877 #ifdef HAVE_STDLIB_H
26878 #include <stdlib.h>
26881 int main(int argc, const char *const *argv) {
26883 struct servent *tmp = getservbyname_r((const char *) 0, (const char *) 0,
26884 (struct servent *) 0, (char *) 0, 0);
26885 /* use tmp to suppress the warning */
26891 if ac_fn_c_try_compile "$LINENO"; then :
26892 ac_cv_getservbyname_r_style=solaris
26894 ac_cv_getservbyname_r_style=none
26896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26897 CFLAGS=$apr_save_CFLAGS
26901 if test "$ac_cv_getservbyname_r_style" = "none"; then
26902 apr_save_CFLAGS=$CFLAGS
26903 CFLAGS="$CFLAGS $CFLAGS_WARN"
26904 if test "$ac_cv_c_compiler_gnu" = "yes"; then
26905 CFLAGS="$CFLAGS -Werror"
26907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26908 /* end confdefs.h. */
26909 #include "confdefs.h"
26912 #ifdef HAVE_SYS_TYPES_H
26913 #include <sys/types.h>
26915 #ifdef HAVE_NETINET_IN_H
26916 #include <netinet/in.h>
26918 #ifdef HAVE_ARPA_INET_H
26919 #include <arpa/inet.h>
26921 #ifdef HAVE_NETDB_H
26924 #ifdef HAVE_STDLIB_H
26925 #include <stdlib.h>
26928 int main(int argc, const char *const *argv) {
26930 int tmp = getservbyname_r((const char *) 0, (const char *) 0,
26931 (struct servent *) 0, (struct servent_data *) 0);
26932 /* use tmp to suppress the warning */
26938 if ac_fn_c_try_compile "$LINENO"; then :
26939 ac_cv_getservbyname_r_style=osf1
26941 ac_cv_getservbyname_r_style=none
26943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26944 CFLAGS=$apr_save_CFLAGS
26949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_getservbyname_r_style" >&5
26950 $as_echo "$ac_cv_getservbyname_r_style" >&6; }
26952 if test "$ac_cv_getservbyname_r_style" = "glibc2"; then
26954 $as_echo "#define GETSERVBYNAME_R_GLIBC2 1" >>confdefs.h
26956 elif test "$ac_cv_getservbyname_r_style" = "solaris"; then
26958 $as_echo "#define GETSERVBYNAME_R_SOLARIS 1" >>confdefs.h
26960 elif test "$ac_cv_getservbyname_r_style" = "osf1"; then
26962 $as_echo "#define GETSERVBYNAME_R_OSF1 1" >>confdefs.h
26969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TCP_NODELAY setting is inherited from listening sockets" >&5
26970 $as_echo_n "checking if TCP_NODELAY setting is inherited from listening sockets... " >&6; }
26971 if ${ac_cv_tcp_nodelay_inherited+:} false; then :
26972 $as_echo_n "(cached) " >&6
26975 if test "$cross_compiling" = yes; then :
26977 ac_cv_tcp_nodelay_inherited="yes"
26980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26981 /* end confdefs.h. */
26984 #ifdef HAVE_SYS_TYPES_H
26985 #include <sys/types.h>
26987 #ifdef HAVE_SYS_SOCKET_H
26988 #include <sys/socket.h>
26990 #ifdef HAVE_NETINET_IN_H
26991 #include <netinet/in.h>
26993 #ifdef HAVE_NETINET_TCP_H
26994 #include <netinet/tcp.h>
26996 #ifndef HAVE_SOCKLEN_T
26997 typedef int socklen_t;
27000 int listen_s, connected_s, client_s;
27001 int listen_port, rc;
27002 struct sockaddr_in sa;
27004 socklen_t option_len;
27007 listen_s = socket(AF_INET, SOCK_STREAM, 0);
27008 if (listen_s < 0) {
27013 rc = setsockopt(listen_s, IPPROTO_TCP, TCP_NODELAY, &option, sizeof option);
27015 perror("setsockopt TCP_NODELAY");
27018 memset(&sa, 0, sizeof sa);
27019 sa.sin_family = AF_INET;
27021 sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
27023 /* leave port 0 to get ephemeral */
27024 rc = bind(listen_s, (struct sockaddr *)&sa, sizeof sa);
27026 perror("bind for ephemeral port");
27029 /* find ephemeral port */
27030 sa_len = sizeof(sa);
27031 rc = getsockname(listen_s, (struct sockaddr *)&sa, &sa_len);
27033 perror("getsockname");
27036 listen_port = sa.sin_port;
27037 rc = listen(listen_s, 5);
27042 client_s = socket(AF_INET, SOCK_STREAM, 0);
27043 if (client_s < 0) {
27047 memset(&sa, 0, sizeof sa);
27048 sa.sin_family = AF_INET;
27049 sa.sin_port = listen_port;
27051 sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
27053 /* leave sin_addr all zeros to use loopback */
27054 rc = connect(client_s, (struct sockaddr *)&sa, sizeof sa);
27059 sa_len = sizeof sa;
27060 connected_s = accept(listen_s, (struct sockaddr *)&sa, &sa_len);
27061 if (connected_s < 0) {
27065 option_len = sizeof option;
27066 rc = getsockopt(connected_s, IPPROTO_TCP, TCP_NODELAY, &option, &option_len);
27068 perror("getsockopt");
27072 fprintf(stderr, "TCP_NODELAY is not set in the child.\n");
27079 if ac_fn_c_try_run "$LINENO"; then :
27081 ac_cv_tcp_nodelay_inherited="yes"
27085 ac_cv_tcp_nodelay_inherited="no"
27088 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27089 conftest.$ac_objext conftest.beam conftest.$ac_ext
27093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tcp_nodelay_inherited" >&5
27094 $as_echo "$ac_cv_tcp_nodelay_inherited" >&6; }
27095 if test "$ac_cv_tcp_nodelay_inherited" = "yes"; then
27096 tcp_nodelay_inherited=1
27098 tcp_nodelay_inherited=0
27102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if O_NONBLOCK setting is inherited from listening sockets" >&5
27103 $as_echo_n "checking if O_NONBLOCK setting is inherited from listening sockets... " >&6; }
27104 if ${ac_cv_o_nonblock_inherited+:} false; then :
27105 $as_echo_n "(cached) " >&6
27108 if test "$cross_compiling" = yes; then :
27110 ac_cv_o_nonblock_inherited="yes"
27113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27114 /* end confdefs.h. */
27116 #ifdef HAVE_STDLIB_H
27117 #include <stdlib.h>
27119 #ifdef HAVE_STRING_H
27120 #include <string.h>
27122 #ifdef HAVE_STDIO_H
27125 #ifdef HAVE_SYS_TYPES_H
27126 #include <sys/types.h>
27128 #ifdef HAVE_SYS_SOCKET_H
27129 #include <sys/socket.h>
27131 #ifdef HAVE_SYS_SELECT_H
27132 #include <sys/select.h>
27134 #ifdef HAVE_NETINET_IN_H
27135 #include <netinet/in.h>
27137 #ifdef HAVE_NETINET_TCP_H
27138 #include <netinet/tcp.h>
27140 #ifndef HAVE_SOCKLEN_T
27141 typedef int socklen_t;
27143 #ifdef HAVE_FCNTL_H
27147 int listen_s, connected_s, client_s;
27148 int listen_port, rc;
27149 struct sockaddr_in sa;
27152 listen_s = socket(AF_INET, SOCK_STREAM, 0);
27153 if (listen_s < 0) {
27157 memset(&sa, 0, sizeof sa);
27158 sa.sin_family = AF_INET;
27160 sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
27162 /* leave port 0 to get ephemeral */
27163 rc = bind(listen_s, (struct sockaddr *)&sa, sizeof sa);
27165 perror("bind for ephemeral port");
27168 /* find ephemeral port */
27169 sa_len = sizeof(sa);
27170 rc = getsockname(listen_s, (struct sockaddr *)&sa, &sa_len);
27172 perror("getsockname");
27175 listen_port = sa.sin_port;
27176 rc = listen(listen_s, 5);
27181 rc = fcntl(listen_s, F_SETFL, O_NONBLOCK);
27183 perror("fcntl(F_SETFL)");
27186 client_s = socket(AF_INET, SOCK_STREAM, 0);
27187 if (client_s < 0) {
27191 memset(&sa, 0, sizeof sa);
27192 sa.sin_family = AF_INET;
27193 sa.sin_port = listen_port;
27195 sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
27197 /* leave sin_addr all zeros to use loopback */
27198 rc = connect(client_s, (struct sockaddr *)&sa, sizeof sa);
27203 sa_len = sizeof sa;
27204 /* 1 second select timeout */
27207 /* Set up fd set */
27209 FD_SET(listen_s, &fds);
27210 /* Wait for socket to become readable */
27211 rc = select(listen_s + 1, &fds, NULL, NULL, &tv);
27217 fprintf(stderr, "Socket failed to become readable (timeout)\n");
27220 if (!FD_ISSET(listen_s, &fds)) {
27221 fprintf(stderr, "Socket failed to become readable (selected another fd)\n");
27224 connected_s = accept(listen_s, (struct sockaddr *)&sa, &sa_len);
27225 if (connected_s < 0) {
27229 rc = fcntl(connected_s, F_GETFL, 0);
27231 perror("fcntl(F_GETFL)");
27234 if (!(rc & O_NONBLOCK)) {
27235 fprintf(stderr, "O_NONBLOCK is not set in the child.\n");
27242 if ac_fn_c_try_run "$LINENO"; then :
27244 ac_cv_o_nonblock_inherited="yes"
27248 ac_cv_o_nonblock_inherited="no"
27251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27252 conftest.$ac_objext conftest.beam conftest.$ac_ext
27256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_nonblock_inherited" >&5
27257 $as_echo "$ac_cv_o_nonblock_inherited" >&6; }
27258 if test "$ac_cv_o_nonblock_inherited" = "yes"; then
27259 o_nonblock_inherited=1
27261 o_nonblock_inherited=0
27265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TCP_NODELAY and TCP_CORK can both be enabled" >&5
27266 $as_echo_n "checking whether TCP_NODELAY and TCP_CORK can both be enabled... " >&6; }
27267 if ${apr_cv_tcp_nodelay_with_cork+:} false; then :
27268 $as_echo_n "(cached) " >&6
27270 if test "$cross_compiling" = yes; then :
27271 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27272 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27273 as_fn_error $? "cannot run test program while cross compiling
27274 See \`config.log' for more details" "$LINENO" 5; }
27276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27277 /* end confdefs.h. */
27279 #ifdef HAVE_SYS_TYPES_H
27280 #include <sys/types.h>
27282 #ifdef HAVE_SYS_SOCKET_H
27283 #include <sys/socket.h>
27285 #ifdef HAVE_NETINET_IN_H
27286 #include <netinet/in.h>
27288 #ifdef HAVE_NETINET_TCP_H
27289 #include <netinet/tcp.h>
27292 #include <stdlib.h>
27300 fd = socket(AF_INET, SOCK_STREAM, 0);
27306 rc = setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &flag, sizeof flag);
27308 perror("setsockopt TCP_NODELAY");
27313 rc = setsockopt(fd, IPPROTO_TCP, TCP_CORK, &flag, sizeof flag);
27315 perror("setsockopt TCP_CORK");
27325 if ac_fn_c_try_run "$LINENO"; then :
27326 apr_cv_tcp_nodelay_with_cork=yes
27328 apr_cv_tcp_nodelay_with_cork=no
27330 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27331 conftest.$ac_objext conftest.beam conftest.$ac_ext
27335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_tcp_nodelay_with_cork" >&5
27336 $as_echo "$apr_cv_tcp_nodelay_with_cork" >&6; }
27338 if test "$apr_cv_tcp_nodelay_with_cork" = "yes"; then
27340 $as_echo "#define HAVE_TCP_NODELAY_WITH_CORK 1" >>confdefs.h
27345 # Look for a way of corking TCP...
27347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCP_CORK in netinet/tcp.h" >&5
27348 $as_echo_n "checking for TCP_CORK in netinet/tcp.h... " >&6; }
27349 if ${ac_cv_define_TCP_CORK+:} false; then :
27350 $as_echo_n "(cached) " >&6
27353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27354 /* end confdefs.h. */
27356 #include <netinet/tcp.h>
27362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27363 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
27364 ac_cv_define_TCP_CORK=yes
27366 ac_cv_define_TCP_CORK=no
27372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_TCP_CORK" >&5
27373 $as_echo "$ac_cv_define_TCP_CORK" >&6; }
27374 if test "$ac_cv_define_TCP_CORK" = "yes"; then
27376 $as_echo "#define HAVE_TCP_CORK 1" >>confdefs.h
27381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCP_NOPUSH in netinet/tcp.h" >&5
27382 $as_echo_n "checking for TCP_NOPUSH in netinet/tcp.h... " >&6; }
27383 if ${ac_cv_define_TCP_NOPUSH+:} false; then :
27384 $as_echo_n "(cached) " >&6
27387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27388 /* end confdefs.h. */
27390 #include <netinet/tcp.h>
27396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27397 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
27398 ac_cv_define_TCP_NOPUSH=yes
27400 ac_cv_define_TCP_NOPUSH=no
27406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_TCP_NOPUSH" >&5
27407 $as_echo "$ac_cv_define_TCP_NOPUSH" >&6; }
27408 if test "$ac_cv_define_TCP_NOPUSH" = "yes"; then
27410 $as_echo "#define HAVE_TCP_NOPUSH 1" >>confdefs.h
27414 apr_tcp_nopush_flag="0"
27415 have_corkable_tcp="0"
27416 if test "x$ac_cv_define_TCP_CORK" = "xyes"; then
27417 apr_tcp_nopush_flag="TCP_CORK"
27418 have_corkable_tcp="1"
27422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27423 /* end confdefs.h. */
27425 #include <linux/socket.h>
27431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27432 $EGREP "yes" >/dev/null 2>&1; then :
27434 apr_tcp_nopush_flag="3"
27435 have_corkable_tcp="1"
27445 if test "x$ac_cv_define_TCP_NOPUSH" = "xyes"; then
27446 apr_tcp_nopush_flag="TCP_NOPUSH"
27447 have_corkable_tcp="1"
27451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SO_ACCEPTFILTER in sys/socket.h" >&5
27452 $as_echo_n "checking for SO_ACCEPTFILTER in sys/socket.h... " >&6; }
27453 if ${ac_cv_define_SO_ACCEPTFILTER+:} false; then :
27454 $as_echo_n "(cached) " >&6
27457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27458 /* end confdefs.h. */
27460 #include <sys/socket.h>
27461 #ifdef SO_ACCEPTFILTER
27466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27467 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
27468 ac_cv_define_SO_ACCEPTFILTER=yes
27470 ac_cv_define_SO_ACCEPTFILTER=no
27476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_SO_ACCEPTFILTER" >&5
27477 $as_echo "$ac_cv_define_SO_ACCEPTFILTER" >&6; }
27478 if test "$ac_cv_define_SO_ACCEPTFILTER" = "yes"; then
27480 $as_echo "#define HAVE_SO_ACCEPTFILTER 1" >>confdefs.h
27484 if test "x$ac_cv_define_SO_ACCEPTFILTER" = "xyes"; then
27491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SCTP is supported" >&5
27492 $as_echo_n "checking whether SCTP is supported... " >&6; }
27493 if ${apr_cv_sctp+:} false; then :
27494 $as_echo_n "(cached) " >&6
27497 if test "$cross_compiling" = yes; then :
27500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27501 /* end confdefs.h. */
27503 #ifdef HAVE_SYS_TYPES_H
27504 #include <sys/types.h>
27506 #ifdef HAVE_SYS_SOCKET_H
27507 #include <sys/socket.h>
27509 #ifdef HAVE_NETINET_IN_H
27510 #include <netinet/in.h>
27512 #ifdef HAVE_NETINET_SCTP_H
27513 #include <netinet/sctp.h>
27515 #ifdef HAVE_NETINET_SCTP_UIO_H
27516 #include <netinet/sctp_uio.h>
27518 #include <stdlib.h>
27521 if ((s = socket(AF_INET, SOCK_STREAM, IPPROTO_SCTP)) < 0)
27523 if (setsockopt(s, IPPROTO_SCTP, SCTP_NODELAY, &opt, sizeof(int)) < 0)
27528 if ac_fn_c_try_run "$LINENO"; then :
27533 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27534 conftest.$ac_objext conftest.beam conftest.$ac_ext
27538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_sctp" >&5
27539 $as_echo "$apr_cv_sctp" >&6; }
27541 if test "$apr_cv_sctp" = "yes"; then
27548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ip_mreq" >&5
27549 $as_echo_n "checking for struct ip_mreq... " >&6; }
27550 if ${apr_cv_struct_ipmreq+:} false; then :
27551 $as_echo_n "(cached) " >&6
27554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27555 /* end confdefs.h. */
27557 #include <sys/types.h>
27558 #include <netinet/in.h>
27564 struct ip_mreq mip;
27565 mip.imr_interface.s_addr = INADDR_ANY;
27571 if ac_fn_c_try_compile "$LINENO"; then :
27572 apr_cv_struct_ipmreq=yes
27574 apr_cv_struct_ipmreq=no
27576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_struct_ipmreq" >&5
27579 $as_echo "$apr_cv_struct_ipmreq" >&6; }
27581 if test $apr_cv_struct_ipmreq = yes; then
27583 $as_echo "#define HAVE_STRUCT_IPMREQ 1" >>confdefs.h
27593 for ac_func in set_h_errno
27595 ac_fn_c_check_func "$LINENO" "set_h_errno" "ac_cv_func_set_h_errno"
27596 if test "x$ac_cv_func_set_h_errno" = xyes; then :
27597 cat >>confdefs.h <<_ACEOF
27598 #define HAVE_SET_H_ERRNO 1
27605 echo "${nl}Checking for IPv6 Networking support..."
27607 # Check whether --enable-ipv6 was given.
27608 if test "${enable_ipv6+set}" = set; then :
27609 enableval=$enable_ipv6; if test "$enableval" = "no"; then
27610 user_disabled_ipv6=1
27613 user_disabled_ipv6=0
27622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
27623 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
27624 if ${ac_cv_search_getaddrinfo+:} false; then :
27625 $as_echo_n "(cached) " >&6
27627 ac_func_search_save_LIBS=$LIBS
27628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27629 /* end confdefs.h. */
27631 /* Override any GCC internal prototype to avoid an error.
27632 Use char because int might match the return type of a GCC
27633 builtin and then its argument prototype would still apply. */
27637 char getaddrinfo ();
27641 return getaddrinfo ();
27646 for ac_lib in '' socket inet6; do
27647 if test -z "$ac_lib"; then
27648 ac_res="none required"
27651 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27653 if ac_fn_c_try_link "$LINENO"; then :
27654 ac_cv_search_getaddrinfo=$ac_res
27656 rm -f core conftest.err conftest.$ac_objext \
27658 if ${ac_cv_search_getaddrinfo+:} false; then :
27662 if ${ac_cv_search_getaddrinfo+:} false; then :
27665 ac_cv_search_getaddrinfo=no
27667 rm conftest.$ac_ext
27668 LIBS=$ac_func_search_save_LIBS
27670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
27671 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
27672 ac_res=$ac_cv_search_getaddrinfo
27673 if test "$ac_res" != no; then :
27674 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gai_strerror" >&5
27679 $as_echo_n "checking for library containing gai_strerror... " >&6; }
27680 if ${ac_cv_search_gai_strerror+:} false; then :
27681 $as_echo_n "(cached) " >&6
27683 ac_func_search_save_LIBS=$LIBS
27684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27685 /* end confdefs.h. */
27687 /* Override any GCC internal prototype to avoid an error.
27688 Use char because int might match the return type of a GCC
27689 builtin and then its argument prototype would still apply. */
27693 char gai_strerror ();
27697 return gai_strerror ();
27702 for ac_lib in '' socket inet6; do
27703 if test -z "$ac_lib"; then
27704 ac_res="none required"
27707 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27709 if ac_fn_c_try_link "$LINENO"; then :
27710 ac_cv_search_gai_strerror=$ac_res
27712 rm -f core conftest.err conftest.$ac_objext \
27714 if ${ac_cv_search_gai_strerror+:} false; then :
27718 if ${ac_cv_search_gai_strerror+:} false; then :
27721 ac_cv_search_gai_strerror=no
27723 rm conftest.$ac_ext
27724 LIBS=$ac_func_search_save_LIBS
27726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gai_strerror" >&5
27727 $as_echo "$ac_cv_search_gai_strerror" >&6; }
27728 ac_res=$ac_cv_search_gai_strerror
27729 if test "$ac_res" != no; then :
27730 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
27735 $as_echo_n "checking for library containing getnameinfo... " >&6; }
27736 if ${ac_cv_search_getnameinfo+:} false; then :
27737 $as_echo_n "(cached) " >&6
27739 ac_func_search_save_LIBS=$LIBS
27740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27741 /* end confdefs.h. */
27743 /* Override any GCC internal prototype to avoid an error.
27744 Use char because int might match the return type of a GCC
27745 builtin and then its argument prototype would still apply. */
27749 char getnameinfo ();
27753 return getnameinfo ();
27758 for ac_lib in '' socket inet6; do
27759 if test -z "$ac_lib"; then
27760 ac_res="none required"
27763 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27765 if ac_fn_c_try_link "$LINENO"; then :
27766 ac_cv_search_getnameinfo=$ac_res
27768 rm -f core conftest.err conftest.$ac_objext \
27770 if ${ac_cv_search_getnameinfo+:} false; then :
27774 if ${ac_cv_search_getnameinfo+:} false; then :
27777 ac_cv_search_getnameinfo=no
27779 rm conftest.$ac_ext
27780 LIBS=$ac_func_search_save_LIBS
27782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
27783 $as_echo "$ac_cv_search_getnameinfo" >&6; }
27784 ac_res=$ac_cv_search_getnameinfo
27785 if test "$ac_res" != no; then :
27786 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27790 for ac_func in gai_strerror
27792 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
27793 if test "x$ac_cv_func_gai_strerror" = xyes; then :
27794 cat >>confdefs.h <<_ACEOF
27795 #define HAVE_GAI_STRERROR 1
27802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getaddrinfo" >&5
27803 $as_echo_n "checking for working getaddrinfo... " >&6; }
27804 if ${ac_cv_working_getaddrinfo+:} false; then :
27805 $as_echo_n "(cached) " >&6
27808 if test "$cross_compiling" = yes; then :
27810 ac_cv_working_getaddrinfo="yes"
27813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27814 /* end confdefs.h. */
27816 #ifdef HAVE_NETDB_H
27819 #ifdef HAVE_STRING_H
27820 #include <string.h>
27822 #ifdef HAVE_SYS_TYPES_H
27823 #include <sys/types.h>
27825 #ifdef HAVE_SYS_SOCKET_H
27826 #include <sys/socket.h>
27830 struct addrinfo hints, *ai;
27833 memset(&hints, 0, sizeof(hints));
27834 hints.ai_family = AF_UNSPEC;
27835 hints.ai_socktype = SOCK_STREAM;
27836 error = getaddrinfo("127.0.0.1", NULL, &hints, &ai);
27840 if (ai->ai_addr->sa_family != AF_INET) {
27847 if ac_fn_c_try_run "$LINENO"; then :
27849 ac_cv_working_getaddrinfo="yes"
27853 ac_cv_working_getaddrinfo="no"
27856 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27857 conftest.$ac_objext conftest.beam conftest.$ac_ext
27861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getaddrinfo" >&5
27862 $as_echo "$ac_cv_working_getaddrinfo" >&6; }
27863 if test "$ac_cv_working_getaddrinfo" = "yes"; then
27864 if test "$ac_cv_func_gai_strerror" != "yes"; then
27865 ac_cv_working_getaddrinfo="no"
27868 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
27874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for negative error codes for getaddrinfo" >&5
27875 $as_echo_n "checking for negative error codes for getaddrinfo... " >&6; }
27876 if ${ac_cv_negative_eai+:} false; then :
27877 $as_echo_n "(cached) " >&6
27880 if test "$cross_compiling" = yes; then :
27882 ac_cv_negative_eai="no"
27885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27886 /* end confdefs.h. */
27888 #ifdef HAVE_NETDB_H
27893 if (EAI_ADDRFAMILY < 0) {
27900 if ac_fn_c_try_run "$LINENO"; then :
27902 ac_cv_negative_eai="yes"
27906 ac_cv_negative_eai="no"
27909 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27910 conftest.$ac_objext conftest.beam conftest.$ac_ext
27914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_negative_eai" >&5
27915 $as_echo "$ac_cv_negative_eai" >&6; }
27916 if test "$ac_cv_negative_eai" = "yes"; then
27918 $as_echo "#define NEGATIVE_EAI 1" >>confdefs.h
27923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getnameinfo" >&5
27924 $as_echo_n "checking for working getnameinfo... " >&6; }
27925 if ${ac_cv_working_getnameinfo+:} false; then :
27926 $as_echo_n "(cached) " >&6
27929 if test "$cross_compiling" = yes; then :
27931 ac_cv_working_getnameinfo="yes"
27934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27935 /* end confdefs.h. */
27937 #ifdef HAVE_NETDB_H
27940 #ifdef HAVE_STRING_H
27941 #include <string.h>
27943 #ifdef HAVE_SYS_TYPES_H
27944 #include <sys/types.h>
27946 #ifdef HAVE_SYS_SOCKET_H
27947 #include <sys/socket.h>
27949 #ifdef HAVE_NETINET_IN_H
27950 #include <netinet/in.h>
27954 struct sockaddr_in sa;
27958 sa.sin_family = AF_INET;
27960 sa.sin_addr.s_addr = inet_addr("127.0.0.1");
27962 sa.sin_len = sizeof(sa);
27965 error = getnameinfo((const struct sockaddr *)&sa, sizeof(sa),
27966 hbuf, 256, NULL, 0,
27976 if ac_fn_c_try_run "$LINENO"; then :
27978 ac_cv_working_getnameinfo="yes"
27982 ac_cv_working_getnameinfo="no"
27985 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27986 conftest.$ac_objext conftest.beam conftest.$ac_ext
27990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getnameinfo" >&5
27991 $as_echo "$ac_cv_working_getnameinfo" >&6; }
27992 if test "$ac_cv_working_getnameinfo" = "yes"; then
27994 $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
27999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6" >&5
28000 $as_echo_n "checking for sockaddr_in6... " >&6; }
28001 if ${ac_cv_define_sockaddr_in6+:} false; then :
28002 $as_echo_n "(cached) " >&6
28005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28006 /* end confdefs.h. */
28008 #ifdef HAVE_SYS_TYPES_H
28009 #include <sys/types.h>
28011 #ifdef HAVE_NETINET_IN_H
28012 #include <netinet/in.h>
28019 struct sockaddr_in6 sa;
28025 if ac_fn_c_try_compile "$LINENO"; then :
28027 ac_cv_define_sockaddr_in6=yes
28031 ac_cv_define_sockaddr_in6=no
28034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_sockaddr_in6" >&5
28038 $as_echo "$ac_cv_define_sockaddr_in6" >&6; }
28040 if test "$ac_cv_define_sockaddr_in6" = "yes"; then
28041 have_sockaddr_in6=1
28043 have_sockaddr_in6=0
28047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5
28048 $as_echo_n "checking for sockaddr_storage... " >&6; }
28049 if ${apr_cv_define_sockaddr_storage+:} false; then :
28050 $as_echo_n "(cached) " >&6
28053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28054 /* end confdefs.h. */
28056 #ifdef HAVE_SYS_TYPES_H
28057 #include <sys/types.h>
28059 #ifdef HAVE_NETINET_IN_H
28060 #include <netinet/in.h>
28066 struct sockaddr_storage sa;
28071 if ac_fn_c_try_compile "$LINENO"; then :
28072 apr_cv_define_sockaddr_storage=yes
28074 apr_cv_define_sockaddr_storage=no
28076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_define_sockaddr_storage" >&5
28079 $as_echo "$apr_cv_define_sockaddr_storage" >&6; }
28081 if test "$apr_cv_define_sockaddr_storage" = "yes"; then
28090 if test "$user_disabled_ipv6" = 1; then
28091 ipv6_result="no -- disabled by user"
28093 if test "x$broken_ipv6" = "x0"; then
28094 if test "x$have_sockaddr_in6" = "x1"; then
28095 if test "x$ac_cv_working_getaddrinfo" = "xyes"; then
28096 if test "x$ac_cv_working_getnameinfo" = "xyes"; then
28098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working AI_ADDRCONFIG" >&5
28099 $as_echo_n "checking for working AI_ADDRCONFIG... " >&6; }
28100 if ${apr_cv_gai_addrconfig+:} false; then :
28101 $as_echo_n "(cached) " >&6
28104 if test "$cross_compiling" = yes; then :
28105 apr_cv_gai_addrconfig=no
28107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28108 /* end confdefs.h. */
28110 #ifdef HAVE_NETDB_H
28113 #ifdef HAVE_STRING_H
28114 #include <string.h>
28116 #ifdef HAVE_SYS_TYPES_H
28117 #include <sys/types.h>
28119 #ifdef HAVE_SYS_SOCKET_H
28120 #include <sys/socket.h>
28123 int main(int argc, char **argv) {
28124 struct addrinfo hints, *ai;
28126 memset(&hints, 0, sizeof(hints));
28127 hints.ai_family = AF_UNSPEC;
28128 hints.ai_socktype = SOCK_STREAM;
28129 hints.ai_flags = AI_ADDRCONFIG;
28130 return getaddrinfo("localhost", NULL, &hints, &ai) != 0;
28133 if ac_fn_c_try_run "$LINENO"; then :
28134 apr_cv_gai_addrconfig=yes
28136 apr_cv_gai_addrconfig=no
28138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28139 conftest.$ac_objext conftest.beam conftest.$ac_ext
28143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_gai_addrconfig" >&5
28144 $as_echo "$apr_cv_gai_addrconfig" >&6; }
28146 if test $apr_cv_gai_addrconfig = yes; then
28148 $as_echo "#define HAVE_GAI_ADDRCONFIG 1" >>confdefs.h
28155 ipv6_result="no -- no getnameinfo"
28158 ipv6_result="no -- no working getaddrinfo"
28161 ipv6_result="no -- no sockaddr_in6"
28164 ipv6_result="no -- the platform has known problems supporting IPv6"
28168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if APR supports IPv6" >&5
28169 $as_echo_n "checking if APR supports IPv6... " >&6; }
28170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_result" >&5
28171 $as_echo "$ipv6_result" >&6; }
28175 # hstrerror is only needed if IPv6 is not enabled,
28176 # so getaddrinfo/gai_strerror are not used.
28177 if test $have_ipv6 = 0; then
28178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
28179 $as_echo_n "checking for library containing hstrerror... " >&6; }
28180 if ${ac_cv_search_hstrerror+:} false; then :
28181 $as_echo_n "(cached) " >&6
28183 ac_func_search_save_LIBS=$LIBS
28184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28185 /* end confdefs.h. */
28187 /* Override any GCC internal prototype to avoid an error.
28188 Use char because int might match the return type of a GCC
28189 builtin and then its argument prototype would still apply. */
28197 return hstrerror ();
28202 for ac_lib in '' resolv; do
28203 if test -z "$ac_lib"; then
28204 ac_res="none required"
28207 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28209 if ac_fn_c_try_link "$LINENO"; then :
28210 ac_cv_search_hstrerror=$ac_res
28212 rm -f core conftest.err conftest.$ac_objext \
28214 if ${ac_cv_search_hstrerror+:} false; then :
28218 if ${ac_cv_search_hstrerror+:} false; then :
28221 ac_cv_search_hstrerror=no
28223 rm conftest.$ac_ext
28224 LIBS=$ac_func_search_save_LIBS
28226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
28227 $as_echo "$ac_cv_search_hstrerror" >&6; }
28228 ac_res=$ac_cv_search_hstrerror
28229 if test "$ac_res" != no; then :
28230 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28232 $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h
28239 for ac_header in langinfo.h
28241 ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
28242 if test "x$ac_cv_header_langinfo_h" = xyes; then :
28243 cat >>confdefs.h <<_ACEOF
28244 #define HAVE_LANGINFO_H 1
28251 for ac_func in nl_langinfo
28253 ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
28254 if test "x$ac_cv_func_nl_langinfo" = xyes; then :
28255 cat >>confdefs.h <<_ACEOF
28256 #define HAVE_NL_LANGINFO 1
28265 if test -z "$have_unicode_fs"; then
28266 test "x$silent" != "xyes" && echo " setting have_unicode_fs to \"0\""
28267 have_unicode_fs="0"
28273 if test -z "$apr_has_xthread_files"; then
28274 test "x$silent" != "xyes" && echo " setting apr_has_xthread_files to \"0\""
28275 apr_has_xthread_files="0"
28281 if test -z "$apr_procattr_user_set_requires_password"; then
28282 test "x$silent" != "xyes" && echo " setting apr_procattr_user_set_requires_password to \"0\""
28283 apr_procattr_user_set_requires_password="0"
28289 if test -z "$apr_thread_func"; then
28290 test "x$silent" != "xyes" && echo " setting apr_thread_func to \"\""
28297 if test -z "$apr_has_user"; then
28298 test "x$silent" != "xyes" && echo " setting apr_has_user to \"1\""
28305 echo "${nl}Restore user-defined environment settings..."
28308 set X $apr_ste_save_CPPFLAGS
28309 if test ${#} -eq 1; then
28310 EXTRA_CPPFLAGS="$CPPFLAGS"
28313 if test "x$apr_ste_save_CPPFLAGS" = "x$CPPFLAGS"; then
28316 EXTRA_CPPFLAGS=`echo "$CPPFLAGS" | sed -e "s%${apr_ste_save_CPPFLAGS}%%"`
28317 CPPFLAGS="$apr_ste_save_CPPFLAGS"
28320 if test "x$silent" != "xyes"; then
28321 echo " restoring CPPFLAGS to \"$CPPFLAGS\""
28322 echo " setting EXTRA_CPPFLAGS to \"$EXTRA_CPPFLAGS\""
28327 set X $apr_ste_save_CFLAGS
28328 if test ${#} -eq 1; then
28329 EXTRA_CFLAGS="$CFLAGS"
28332 if test "x$apr_ste_save_CFLAGS" = "x$CFLAGS"; then
28335 EXTRA_CFLAGS=`echo "$CFLAGS" | sed -e "s%${apr_ste_save_CFLAGS}%%"`
28336 CFLAGS="$apr_ste_save_CFLAGS"
28339 if test "x$silent" != "xyes"; then
28340 echo " restoring CFLAGS to \"$CFLAGS\""
28341 echo " setting EXTRA_CFLAGS to \"$EXTRA_CFLAGS\""
28346 set X $apr_ste_save_LDFLAGS
28347 if test ${#} -eq 1; then
28348 EXTRA_LDFLAGS="$LDFLAGS"
28351 if test "x$apr_ste_save_LDFLAGS" = "x$LDFLAGS"; then
28354 EXTRA_LDFLAGS=`echo "$LDFLAGS" | sed -e "s%${apr_ste_save_LDFLAGS}%%"`
28355 LDFLAGS="$apr_ste_save_LDFLAGS"
28358 if test "x$silent" != "xyes"; then
28359 echo " restoring LDFLAGS to \"$LDFLAGS\""
28360 echo " setting EXTRA_LDFLAGS to \"$EXTRA_LDFLAGS\""
28365 set X $apr_ste_save_LIBS
28366 if test ${#} -eq 1; then
28370 if test "x$apr_ste_save_LIBS" = "x$LIBS"; then
28373 EXTRA_LIBS=`echo "$LIBS" | sed -e "s%${apr_ste_save_LIBS}%%"`
28374 LIBS="$apr_ste_save_LIBS"
28377 if test "x$silent" != "xyes"; then
28378 echo " restoring LIBS to \"$LIBS\""
28379 echo " setting EXTRA_LIBS to \"$EXTRA_LIBS\""
28384 set X $apr_ste_save_INCLUDES
28385 if test ${#} -eq 1; then
28386 EXTRA_INCLUDES="$INCLUDES"
28389 if test "x$apr_ste_save_INCLUDES" = "x$INCLUDES"; then
28392 EXTRA_INCLUDES=`echo "$INCLUDES" | sed -e "s%${apr_ste_save_INCLUDES}%%"`
28393 INCLUDES="$apr_ste_save_INCLUDES"
28396 if test "x$silent" != "xyes"; then
28397 echo " restoring INCLUDES to \"$INCLUDES\""
28398 echo " setting EXTRA_INCLUDES to \"$EXTRA_INCLUDES\""
28418 # Use -no-install to link the test programs on all platforms
28419 # but Darwin, where it would cause the programs to be linked
28420 # against installed versions of libapr instead of those just
28423 *-apple-darwin*) LT_NO_INSTALL="" ;;
28424 *) LT_NO_INSTALL="-no-install" ;;
28429 # BSD/OS (BSDi) needs to use a different include syntax in the Makefiles
28433 # Check whether they've installed GNU make
28434 if make --version > /dev/null 2>&1; then
28435 INCLUDE_RULES="include $apr_buildout/apr_rules.mk"
28436 INCLUDE_OUTPUTS="include $apr_srcdir/build-outputs.mk"
28439 INCLUDE_RULES=".include \"$apr_buildout/apr_rules.mk\""
28440 INCLUDE_OUTPUTS=".include \"$apr_srcdir/build-outputs.mk\""
28444 INCLUDE_RULES="include $apr_buildout/apr_rules.mk"
28445 INCLUDE_OUTPUTS="include $apr_srcdir/build-outputs.mk"
28451 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"
28454 if test -d $srcdir/test; then
28455 ac_config_files="$ac_config_files test/Makefile test/internal/Makefile"
28459 dir=include/arch/unix
28460 test -d $dir || $MKDIR $dir
28462 ac_config_commands="$ac_config_commands default"
28465 cat >confcache <<\_ACEOF
28466 # This file is a shell script that caches the results of configure
28467 # tests run on this system so they can be shared between configure
28468 # scripts and configure runs, see configure's option --config-cache.
28469 # It is not useful on other systems. If it contains results you don't
28470 # want to keep, you may remove or edit it.
28472 # config.status only pays attention to the cache file if you give it
28473 # the --recheck option to rerun configure.
28475 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28476 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28477 # following values.
28481 # The following way of writing the cache mishandles newlines in values,
28482 # but we know of no workaround that is simple, portable, and efficient.
28483 # So, we kill variables containing newlines.
28484 # Ultrix sh set writes to stderr and can't be redirected directly,
28485 # and sets the high bit in the cache file unless we assign to the vars.
28487 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28488 eval ac_val=\$$ac_var
28492 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28493 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28496 _ | IFS | as_nl) ;; #(
28497 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28498 *) { eval $ac_var=; unset $ac_var;} ;;
28504 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28505 *${as_nl}ac_space=\ *)
28506 # `set' does not quote correctly, so add quotes: double-quote
28507 # substitution turns \\\\ into \\, and sed turns \\ into \.
28510 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28513 # `set' quotes correctly as required by POSIX, so do not add quotes.
28514 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28523 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28525 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28527 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28528 if test -w "$cache_file"; then
28529 if test "x$cache_file" != "x/dev/null"; then
28530 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28531 $as_echo "$as_me: updating cache $cache_file" >&6;}
28532 if test ! -f "$cache_file" || test -h "$cache_file"; then
28533 cat confcache >"$cache_file"
28535 case $cache_file in #(
28537 mv -f confcache "$cache_file"$$ &&
28538 mv -f "$cache_file"$$ "$cache_file" ;; #(
28540 mv -f confcache "$cache_file" ;;
28545 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28546 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28551 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28552 # Let make expand exec_prefix.
28553 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28555 DEFS=-DHAVE_CONFIG_H
28560 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28561 # 1. Remove the extension, and $U if already installed.
28562 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28563 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28564 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28565 # will be set to the directory where LIBOBJS objects are built.
28566 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28567 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
28569 LIBOBJS=$ac_libobjs
28571 LTLIBOBJS=$ac_ltlibobjs
28576 : "${CONFIG_STATUS=./config.status}"
28578 ac_clean_files_save=$ac_clean_files
28579 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28580 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28581 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28583 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28585 # Generated by $as_me.
28586 # Run this file to recreate the current configuration.
28587 # Compiler output produced by configure, useful for debugging
28588 # configure, is in config.log if it exists.
28591 ac_cs_recheck=false
28594 SHELL=\${CONFIG_SHELL-$SHELL}
28597 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
28598 ## -------------------- ##
28599 ## M4sh Initialization. ##
28600 ## -------------------- ##
28602 # Be more Bourne compatible
28603 DUALCASE=1; export DUALCASE # for MKS sh
28604 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
28607 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28608 # is contrary to our usage. Disable this feature.
28609 alias -g '${1+"$@"}'='"$@"'
28610 setopt NO_GLOB_SUBST
28612 case `(set -o) 2>/dev/null` in #(
28624 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28625 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28626 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28627 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28628 # Prefer a ksh shell builtin over an external printf program on Solaris,
28629 # but without wasting forks for bash or zsh.
28630 if test -z "$BASH_VERSION$ZSH_VERSION" \
28631 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28632 as_echo='print -r --'
28633 as_echo_n='print -rn --'
28634 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28635 as_echo='printf %s\n'
28636 as_echo_n='printf %s'
28638 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28639 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28640 as_echo_n='/usr/ucb/echo -n'
28642 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28643 as_echo_n_body='eval
28647 expr "X$arg" : "X\\(.*\\)$as_nl";
28648 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28650 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28652 export as_echo_n_body
28653 as_echo_n='sh -c $as_echo_n_body as_echo'
28655 export as_echo_body
28656 as_echo='sh -c $as_echo_body as_echo'
28659 # The user is always right.
28660 if test "${PATH_SEPARATOR+set}" != set; then
28662 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28663 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28670 # We need space, tab and new line, in precisely that order. Quoting is
28671 # there to prevent editors from complaining about space-tab.
28672 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28673 # splitting by setting IFS to empty value.)
28676 # Find who we are. Look in the path if we contain no directory separator.
28679 *[\\/]* ) as_myself=$0 ;;
28680 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28681 for as_dir in $PATH
28684 test -z "$as_dir" && as_dir=.
28685 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28691 # We did not find ourselves, most probably we were run as `sh COMMAND'
28692 # in which case we are not to be found in the path.
28693 if test "x$as_myself" = x; then
28696 if test ! -f "$as_myself"; then
28697 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28701 # Unset variables that we do not need and which cause bugs (e.g. in
28702 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
28703 # suppresses any "Segmentation fault" message there. '((' could
28704 # trigger a bug in pdksh 5.2.14.
28705 for as_var in BASH_ENV ENV MAIL MAILPATH
28706 do eval test x\${$as_var+set} = xset \
28707 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28720 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28723 # as_fn_error STATUS ERROR [LINENO LOG_FD]
28724 # ----------------------------------------
28725 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28726 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28727 # script with STATUS, using 1 if that was 0.
28730 as_status=$1; test $as_status -eq 0 && as_status=1
28732 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28733 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
28735 $as_echo "$as_me: error: $2" >&2
28736 as_fn_exit $as_status
28740 # as_fn_set_status STATUS
28741 # -----------------------
28742 # Set $? to STATUS, without forking.
28743 as_fn_set_status ()
28746 } # as_fn_set_status
28748 # as_fn_exit STATUS
28749 # -----------------
28750 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28754 as_fn_set_status $1
28760 # Portably unset VAR.
28763 { eval $1=; unset $1;}
28765 as_unset=as_fn_unset
28766 # as_fn_append VAR VALUE
28767 # ----------------------
28768 # Append the text in VALUE to the end of the definition contained in VAR. Take
28769 # advantage of any shell optimizations that allow amortized linear growth over
28770 # repeated appends, instead of the typical quadratic growth present in naive
28772 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
28773 eval 'as_fn_append ()
28784 # as_fn_arith ARG...
28785 # ------------------
28786 # Perform arithmetic evaluation on the ARGs, and store the result in the
28787 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28788 # must be portable across $(()) and expr.
28789 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
28790 eval 'as_fn_arith ()
28797 as_val=`expr "$@" || test $? -eq 1`
28802 if expr a : '\(a\)' >/dev/null 2>&1 &&
28803 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28809 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28810 as_basename=basename
28815 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28821 as_me=`$as_basename -- "$0" ||
28822 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28823 X"$0" : 'X\(//\)$' \| \
28824 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28826 sed '/^.*\/\([^/][^/]*\)\/*$/{
28840 # Avoid depending upon Character Ranges.
28841 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28842 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28843 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28844 as_cr_digits='0123456789'
28845 as_cr_alnum=$as_cr_Letters$as_cr_digits
28847 ECHO_C= ECHO_N= ECHO_T=
28848 case `echo -n x` in #(((((
28850 case `echo 'xy\c'` in
28851 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28853 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
28860 rm -f conf$$ conf$$.exe conf$$.file
28861 if test -d conf$$.dir; then
28862 rm -f conf$$.dir/conf$$.file
28865 mkdir conf$$.dir 2>/dev/null
28867 if (echo >conf$$.file) 2>/dev/null; then
28868 if ln -s conf$$.file conf$$ 2>/dev/null; then
28870 # ... but there are two gotchas:
28871 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28872 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28873 # In both cases, we have to default to `cp -pR'.
28874 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28876 elif ln conf$$.file conf$$ 2>/dev/null; then
28884 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28885 rmdir conf$$.dir 2>/dev/null
28890 # Create "$as_dir" as a directory, including parents if necessary.
28895 -*) as_dir=./$as_dir;;
28897 test -d "$as_dir" || eval $as_mkdir_p || {
28901 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28902 *) as_qdir=$as_dir;;
28904 as_dirs="'$as_qdir' $as_dirs"
28905 as_dir=`$as_dirname -- "$as_dir" ||
28906 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28907 X"$as_dir" : 'X\(//\)[^/]' \| \
28908 X"$as_dir" : 'X\(//\)$' \| \
28909 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28910 $as_echo X"$as_dir" |
28911 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28915 /^X\(\/\/\)[^/].*/{
28928 test -d "$as_dir" && break
28930 test -z "$as_dirs" || eval "mkdir $as_dirs"
28931 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
28935 if mkdir -p . 2>/dev/null; then
28936 as_mkdir_p='mkdir -p "$as_dir"'
28938 test -d ./-p && rmdir ./-p
28943 # as_fn_executable_p FILE
28944 # -----------------------
28945 # Test if FILE is an executable regular file.
28946 as_fn_executable_p ()
28948 test -f "$1" && test -x "$1"
28949 } # as_fn_executable_p
28950 as_test_x='test -x'
28951 as_executable_p=as_fn_executable_p
28953 # Sed expression to map a string onto a valid CPP name.
28954 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28956 # Sed expression to map a string onto a valid variable name.
28957 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28961 ## ----------------------------------- ##
28962 ## Main body of $CONFIG_STATUS script. ##
28963 ## ----------------------------------- ##
28965 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28968 # Save the log message, to keep $0 and so on meaningful, and to
28969 # report actual input values of CONFIG_FILES etc. instead of their
28970 # values after options handling.
28972 This file was extended by $as_me, which was
28973 generated by GNU Autoconf 2.69. Invocation command line was
28975 CONFIG_FILES = $CONFIG_FILES
28976 CONFIG_HEADERS = $CONFIG_HEADERS
28977 CONFIG_LINKS = $CONFIG_LINKS
28978 CONFIG_COMMANDS = $CONFIG_COMMANDS
28981 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28986 case $ac_config_files in *"
28987 "*) set x $ac_config_files; shift; ac_config_files=$*;;
28990 case $ac_config_headers in *"
28991 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28995 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28996 # Files that config.status was made for.
28997 config_files="$ac_config_files"
28998 config_headers="$ac_config_headers"
28999 config_commands="$ac_config_commands"
29003 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29005 \`$as_me' instantiates files and other configuration actions
29006 from templates according to the current configuration. Unless the files
29007 and actions are specified as TAGs, all are instantiated by default.
29009 Usage: $0 [OPTION]... [TAG]...
29011 -h, --help print this help, then exit
29012 -V, --version print version number and configuration settings, then exit
29013 --config print configuration, then exit
29014 -q, --quiet, --silent
29015 do not print progress messages
29016 -d, --debug don't remove temporary files
29017 --recheck update $as_me by reconfiguring in the same conditions
29018 --file=FILE[:TEMPLATE]
29019 instantiate the configuration file FILE
29020 --header=FILE[:TEMPLATE]
29021 instantiate the configuration header FILE
29023 Configuration files:
29026 Configuration headers:
29029 Configuration commands:
29032 Report bugs to the package provider."
29035 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29036 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
29039 configured by $0, generated by GNU Autoconf 2.69,
29040 with options \\"\$ac_cs_config\\"
29042 Copyright (C) 2012 Free Software Foundation, Inc.
29043 This config.status script is free software; the Free Software Foundation
29044 gives unlimited permission to copy, distribute and modify it."
29050 test -n "\$AWK" || AWK=awk
29053 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29054 # The default lists apply if the user does not specify any file.
29060 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29061 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29065 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29077 # Handling of the options.
29078 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29080 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29081 $as_echo "$ac_cs_version"; exit ;;
29082 --config | --confi | --conf | --con | --co | --c )
29083 $as_echo "$ac_cs_config"; exit ;;
29084 --debug | --debu | --deb | --de | --d | -d )
29086 --file | --fil | --fi | --f )
29089 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29090 '') as_fn_error $? "missing file argument" ;;
29092 as_fn_append CONFIG_FILES " '$ac_optarg'"
29093 ac_need_defaults=false;;
29094 --header | --heade | --head | --hea )
29097 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29099 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
29100 ac_need_defaults=false;;
29102 # Conflict between --help and --header
29103 as_fn_error $? "ambiguous option: \`$1'
29104 Try \`$0 --help' for more information.";;
29105 --help | --hel | -h )
29106 $as_echo "$ac_cs_usage"; exit ;;
29107 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29108 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29111 # This is an error.
29112 -*) as_fn_error $? "unrecognized option: \`$1'
29113 Try \`$0 --help' for more information." ;;
29115 *) as_fn_append ac_config_targets " $1"
29116 ac_need_defaults=false ;;
29122 ac_configure_extra_args=
29124 if $ac_cs_silent; then
29126 ac_configure_extra_args="$ac_configure_extra_args --silent"
29130 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29131 if \$ac_cs_recheck; then
29132 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29134 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29135 CONFIG_SHELL='$SHELL'
29136 export CONFIG_SHELL
29141 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29145 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29146 ## Running $as_me. ##
29152 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29158 # The HP-UX ksh and POSIX shell print the target directory to stdout
29159 # if CDPATH is set.
29160 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29162 sed_quote_subst='$sed_quote_subst'
29163 double_quote_subst='$double_quote_subst'
29164 delay_variable_subst='$delay_variable_subst'
29165 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
29166 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
29167 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
29168 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
29169 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
29170 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
29171 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
29172 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
29173 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
29174 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
29175 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
29176 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
29177 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
29178 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
29179 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
29180 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
29181 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
29182 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
29183 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
29184 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
29185 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
29186 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
29187 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
29188 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
29189 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
29190 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
29191 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
29192 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
29193 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
29194 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
29195 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
29196 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
29197 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
29198 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
29199 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
29200 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
29201 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
29202 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
29203 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
29204 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
29205 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
29206 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
29207 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
29208 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
29209 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
29210 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
29211 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
29212 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
29213 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
29214 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
29215 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
29216 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
29217 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
29218 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
29219 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
29220 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
29221 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
29222 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"`'
29223 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
29224 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
29225 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
29226 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
29227 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
29228 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
29229 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
29230 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
29231 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
29232 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
29233 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
29234 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
29235 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
29236 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
29237 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
29238 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
29239 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
29240 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
29241 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
29242 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
29243 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
29244 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
29245 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
29246 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
29247 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
29248 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
29249 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
29250 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
29251 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
29252 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
29253 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
29254 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
29255 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
29256 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
29257 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
29258 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
29259 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
29260 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
29261 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
29262 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
29263 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
29264 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
29265 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
29266 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
29267 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
29268 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
29269 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
29270 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
29271 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
29272 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
29273 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
29274 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
29275 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
29276 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
29277 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
29278 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
29279 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
29280 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
29281 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
29282 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
29283 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
29284 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
29285 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
29286 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
29287 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
29288 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
29289 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
29290 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
29291 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
29292 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
29293 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
29294 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
29295 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
29298 LTCFLAGS='$LTCFLAGS'
29299 compiler='$compiler_DEFAULT'
29301 # A function that is used when there is no print builtin or printf.
29302 func_fallback_echo ()
29304 eval 'cat <<_LTECHO_EOF
29309 # Quote evaled strings.
29326 deplibs_check_method \
29330 sharedlib_from_linklib_cmd \
29333 archiver_list_spec \
29339 lt_cv_sys_global_symbol_pipe \
29340 lt_cv_sys_global_symbol_to_cdecl \
29341 lt_cv_sys_global_symbol_to_c_name_address \
29342 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
29343 nm_file_list_spec \
29344 lt_prog_compiler_no_builtin_flag \
29345 lt_prog_compiler_pic \
29346 lt_prog_compiler_wl \
29347 lt_prog_compiler_static \
29348 lt_cv_prog_compiler_c_o \
29357 export_dynamic_flag_spec \
29358 whole_archive_flag_spec \
29359 compiler_needs_object \
29361 allow_undefined_flag \
29362 no_undefined_flag \
29363 hardcode_libdir_flag_spec \
29364 hardcode_libdir_separator \
29368 variables_saved_for_relink \
29370 library_names_spec \
29372 install_override_mode \
29376 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
29377 *[\\\\\\\`\\"\\\$]*)
29378 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
29381 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29386 # Double-quote double-evaled strings.
29387 for var in reload_cmds \
29388 old_postinstall_cmds \
29389 old_postuninstall_cmds \
29391 extract_expsyms_cmds \
29392 old_archive_from_new_cmds \
29393 old_archive_from_expsyms_cmds \
29395 archive_expsym_cmds \
29397 module_expsym_cmds \
29398 export_symbols_cmds \
29402 postuninstall_cmds \
29404 sys_lib_search_path_spec \
29405 sys_lib_dlsearch_path_spec; do
29406 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
29407 *[\\\\\\\`\\"\\\$]*)
29408 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
29411 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29416 ac_aux_dir='$ac_aux_dir'
29417 xsi_shell='$xsi_shell'
29418 lt_shell_append='$lt_shell_append'
29420 # See if we are running on zsh, and set the options which allow our
29421 # commands through without removal of \ escapes INIT.
29422 if test -n "\${ZSH_VERSION+set}" ; then
29423 setopt NO_GLOB_SUBST
29429 TIMESTAMP='$TIMESTAMP'
29437 # Commands run at the beginning of config.status:
29438 APR_SAVE_HEADERS="include/apr.h include/arch/unix/apr_private.h"
29439 APR_MAJOR_VERSION=$APR_MAJOR_VERSION
29442 for apri in \${APR_SAVE_HEADERS}; do
29443 test -r \${apri} && mv \${apri} \${apri}.save
29449 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29451 # Handling of arguments.
29452 for ac_config_target in $ac_config_targets
29454 case $ac_config_target in
29455 "include/arch/unix/apr_private.h") CONFIG_HEADERS="$CONFIG_HEADERS include/arch/unix/apr_private.h" ;;
29456 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
29457 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29458 "include/apr.h") CONFIG_FILES="$CONFIG_FILES include/apr.h" ;;
29459 "build/apr_rules.mk") CONFIG_FILES="$CONFIG_FILES build/apr_rules.mk" ;;
29460 "build/pkg/pkginfo") CONFIG_FILES="$CONFIG_FILES build/pkg/pkginfo" ;;
29461 "apr-$APR_MAJOR_VERSION-config") CONFIG_FILES="$CONFIG_FILES apr-$APR_MAJOR_VERSION-config:apr-config.in" ;;
29462 "apr.pc") CONFIG_FILES="$CONFIG_FILES apr.pc" ;;
29463 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
29464 "test/internal/Makefile") CONFIG_FILES="$CONFIG_FILES test/internal/Makefile" ;;
29465 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
29467 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29472 # If the user did not use the arguments to specify the items to instantiate,
29473 # then the envvar interface is used. Set only those that are not.
29474 # We use the long form for the default assignment because of an extremely
29475 # bizarre bug on SunOS 4.1.3.
29476 if $ac_need_defaults; then
29477 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29478 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29479 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29482 # Have a temporary directory for convenience. Make it in the build tree
29483 # simply because there is no reason against having it here, and in addition,
29484 # creating and moving files from /tmp can sometimes cause problems.
29485 # Hook for its removal unless debugging.
29486 # Note that there is a small window in which the directory will not be cleaned:
29487 # after its creation but before its name has been assigned to `$tmp'.
29491 trap 'exit_status=$?
29492 : "${ac_tmp:=$tmp}"
29493 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
29495 trap 'as_fn_exit 1' 1 2 13 15
29497 # Create a (secure) tmp directory for tmp files.
29500 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29504 tmp=./conf$$-$RANDOM
29505 (umask 077 && mkdir "$tmp")
29506 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
29509 # Set up the scripts for CONFIG_FILES section.
29510 # No need to generate them if there are no CONFIG_FILES.
29511 # This happens for instance with `./config.status config.h'.
29512 if test -n "$CONFIG_FILES"; then
29515 ac_cr=`echo X | tr X '\015'`
29516 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29517 # But we know of no other shell where ac_cr would be empty at this
29518 # point, so we can use a bashism as a fallback.
29519 if test "x$ac_cr" = x; then
29520 eval ac_cr=\$\'\\r\'
29522 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29523 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29526 ac_cs_awk_cr=$ac_cr
29529 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
29534 echo "cat >conf$$subs.awk <<_ACEOF" &&
29535 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29537 } >conf$$subs.sh ||
29538 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29539 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
29541 for ac_last_try in false false false false false :; do
29542 . ./conf$$subs.sh ||
29543 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29545 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29546 if test $ac_delim_n = $ac_delim_num; then
29548 elif $ac_last_try; then
29549 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29551 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29554 rm -f conf$$subs.sh
29556 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29557 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
29561 s/^/S["/; s/!.*/"]=/
29571 s/\(.\{148\}\)..*/\1/
29573 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29578 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29585 s/\(.\{148\}\)..*/\1/
29587 s/["\\]/\\&/g; s/^/"/; s/$/"/
29591 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29596 ' <conf$$subs.awk | sed '
29601 ' >>$CONFIG_STATUS || ac_write_fail=1
29602 rm -f conf$$subs.awk
29603 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29605 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
29606 for (key in S) S_is_set[key] = 1
29612 nfields = split(line, field, "@")
29614 len = length(field[1])
29615 for (i = 2; i < nfields; i++) {
29617 keylen = length(key)
29618 if (S_is_set[key]) {
29620 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29621 len += length(value) + length(field[++i])
29632 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29633 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29634 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29637 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
29638 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
29641 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
29642 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
29643 # trailing colons and then remove the whole line if VPATH becomes empty
29644 # (actually we leave an empty line to preserve line numbers).
29645 if test "x$srcdir" = x.; then
29646 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
29664 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29665 fi # test -n "$CONFIG_FILES"
29667 # Set up the scripts for CONFIG_HEADERS section.
29668 # No need to generate them if there are no CONFIG_HEADERS.
29669 # This happens for instance with `./config.status Makefile'.
29670 if test -n "$CONFIG_HEADERS"; then
29671 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
29675 # Transform confdefs.h into an awk script `defines.awk', embedded as
29676 # here-document in config.status, that substitutes the proper values into
29677 # config.h.in to produce config.h.
29679 # Create a delimiter string that does not exist in confdefs.h, to ease
29680 # handling of long lines.
29682 for ac_last_try in false false :; do
29683 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
29684 if test -z "$ac_tt"; then
29686 elif $ac_last_try; then
29687 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
29689 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29693 # For the awk script, D is an array of macro values keyed by name,
29694 # likewise P contains macro parameters if any. Preserve backslash
29695 # newline sequences.
29697 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29699 s/.\{148\}/&'"$ac_delim"'/g
29702 s/^[ ]*#[ ]*define[ ][ ]*/ /
29709 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29711 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
29715 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29716 D["\1"]=" \3\\\\\\n"\\/p
29718 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29723 s/.\{148\}/&'"$ac_delim"'/g
29728 s/["\\]/\\&/g; s/^/"/; s/$/"/p
29731 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29733 ' <confdefs.h | sed '
29734 s/'"$ac_delim"'/"\\\
29735 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29737 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29738 for (key in D) D_is_set[key] = 1
29741 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29743 split(line, arg, " ")
29744 if (arg[1] == "#") {
29748 defundef = substr(arg[1], 2)
29751 split(mac1, mac2, "(") #)
29753 prefix = substr(line, 1, index(line, defundef) - 1)
29754 if (D_is_set[macro]) {
29755 # Preserve the white space surrounding the "#".
29756 print prefix "define", macro P[macro] D[macro]
29759 # Replace #undef with comments. This is necessary, for example,
29760 # in the case of _POSIX_SOURCE, which is predefined and required
29761 # on some systems where configure will not decide to define it.
29762 if (defundef == "undef") {
29763 print "/*", prefix defundef, macro, "*/"
29771 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29772 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
29773 fi # test -n "$CONFIG_HEADERS"
29776 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
29781 :[FHLC]) ac_mode=$ac_tag; continue;;
29783 case $ac_mode$ac_tag in
29785 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
29786 :[FH]-) ac_tag=-:-;;
29787 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29804 -) ac_f="$ac_tmp/stdin";;
29805 *) # Look for the file first in the build tree, then in the source tree
29806 # (if the path is not absolute). The absolute path cannot be DOS-style,
29807 # because $ac_f cannot contain `:'.
29811 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29813 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29815 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29816 as_fn_append ac_file_inputs " '$ac_f'"
29819 # Let's still pretend it is `configure' which instantiates (i.e., don't
29820 # use $as_me), people would be surprised to read:
29821 # /* config.h. Generated by config.status. */
29822 configure_input='Generated from '`
29823 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29825 if test x"$ac_file" != x-; then
29826 configure_input="$ac_file. $configure_input"
29827 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29828 $as_echo "$as_me: creating $ac_file" >&6;}
29830 # Neutralize special characters interpreted by sed in replacement strings.
29831 case $configure_input in #(
29832 *\&* | *\|* | *\\* )
29833 ac_sed_conf_input=`$as_echo "$configure_input" |
29834 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29835 *) ac_sed_conf_input=$configure_input;;
29839 *:-:* | *:-) cat >"$ac_tmp/stdin" \
29840 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
29845 ac_dir=`$as_dirname -- "$ac_file" ||
29846 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29847 X"$ac_file" : 'X\(//\)[^/]' \| \
29848 X"$ac_file" : 'X\(//\)$' \| \
29849 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29850 $as_echo X"$ac_file" |
29851 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29855 /^X\(\/\/\)[^/].*/{
29868 as_dir="$ac_dir"; as_fn_mkdir_p
29872 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29874 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29875 # A ".." for each directory in $ac_dir_suffix.
29876 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29877 case $ac_top_builddir_sub in
29878 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29879 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29882 ac_abs_top_builddir=$ac_pwd
29883 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29884 # for backward compatibility:
29885 ac_top_builddir=$ac_top_build_prefix
29888 .) # We are building in place.
29890 ac_top_srcdir=$ac_top_builddir_sub
29891 ac_abs_top_srcdir=$ac_pwd ;;
29892 [\\/]* | ?:[\\/]* ) # Absolute name.
29893 ac_srcdir=$srcdir$ac_dir_suffix;
29894 ac_top_srcdir=$srcdir
29895 ac_abs_top_srcdir=$srcdir ;;
29896 *) # Relative name.
29897 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29898 ac_top_srcdir=$ac_top_build_prefix$srcdir
29899 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29901 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29911 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29912 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
29916 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29917 # If the template does not know about datarootdir, expand it.
29918 # FIXME: This hack should be removed a few years after 2.60.
29919 ac_datarootdir_hack=; ac_datarootdir_seen=
29930 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29931 *datarootdir*) ac_datarootdir_seen=yes;;
29932 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29934 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29936 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29937 ac_datarootdir_hack='
29938 s&@datadir@&$datadir&g
29939 s&@docdir@&$docdir&g
29940 s&@infodir@&$infodir&g
29941 s&@localedir@&$localedir&g
29942 s&@mandir@&$mandir&g
29943 s&\\\${datarootdir}&$datarootdir&g' ;;
29947 # Neutralize VPATH when `$srcdir' = `.'.
29948 # Shell code in configure.ac might set extrasub.
29949 # FIXME: do we really want to maintain this feature?
29950 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29951 ac_sed_extra="$ac_vpsub
29954 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29956 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29957 s|@configure_input@|$ac_sed_conf_input|;t t
29958 s&@top_builddir@&$ac_top_builddir_sub&;t t
29959 s&@top_build_prefix@&$ac_top_build_prefix&;t t
29960 s&@srcdir@&$ac_srcdir&;t t
29961 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29962 s&@top_srcdir@&$ac_top_srcdir&;t t
29963 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29964 s&@builddir@&$ac_builddir&;t t
29965 s&@abs_builddir@&$ac_abs_builddir&;t t
29966 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29967 s&@INSTALL@&$ac_INSTALL&;t t
29968 $ac_datarootdir_hack
29970 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
29971 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29973 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29974 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
29975 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
29976 "$ac_tmp/out"`; test -z "$ac_out"; } &&
29977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29978 which seems to be undefined. Please make sure it is defined" >&5
29979 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29980 which seems to be undefined. Please make sure it is defined" >&2;}
29982 rm -f "$ac_tmp/stdin"
29984 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
29985 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
29987 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29993 if test x"$ac_file" != x-; then
29995 $as_echo "/* $configure_input */" \
29996 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
29997 } >"$ac_tmp/config.h" \
29998 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29999 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
30000 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30001 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30004 mv "$ac_tmp/config.h" "$ac_file" \
30005 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30008 $as_echo "/* $configure_input */" \
30009 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
30010 || as_fn_error $? "could not create -" "$LINENO" 5
30014 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30015 $as_echo "$as_me: executing $ac_file commands" >&6;}
30020 case $ac_file$ac_mode in
30023 # See if we are running on zsh, and set the options which allow our
30024 # commands through without removal of \ escapes.
30025 if test -n "${ZSH_VERSION+set}" ; then
30026 setopt NO_GLOB_SUBST
30029 cfgfile="${ofile}T"
30030 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
30033 cat <<_LT_EOF >> "$cfgfile"
30036 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
30037 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
30038 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
30039 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
30041 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
30042 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
30044 # Written by Gordon Matzigkeit, 1996
30046 # This file is part of GNU Libtool.
30048 # GNU Libtool is free software; you can redistribute it and/or
30049 # modify it under the terms of the GNU General Public License as
30050 # published by the Free Software Foundation; either version 2 of
30051 # the License, or (at your option) any later version.
30053 # As a special exception to the GNU General Public License,
30054 # if you distribute this file as part of a program or library that
30055 # is built using GNU Libtool, you may include this file under the
30056 # same distribution terms that you use for the rest of that program.
30058 # GNU Libtool is distributed in the hope that it will be useful,
30059 # but WITHOUT ANY WARRANTY; without even the implied warranty of
30060 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30061 # GNU General Public License for more details.
30063 # You should have received a copy of the GNU General Public License
30064 # along with GNU Libtool; see the file COPYING. If not, a copy
30065 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
30066 # obtained by writing to the Free Software Foundation, Inc.,
30067 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
30070 # The names of the tagged configurations supported by this script.
30073 # ### BEGIN LIBTOOL CONFIG
30075 # Assembler program.
30078 # DLL creation program.
30079 DLLTOOL=$lt_DLLTOOL
30081 # Object dumper program.
30082 OBJDUMP=$lt_OBJDUMP
30084 # Which release of libtool.m4 was used?
30085 macro_version=$macro_version
30086 macro_revision=$macro_revision
30088 # Whether or not to build shared libraries.
30089 build_libtool_libs=$enable_shared
30091 # Whether or not to build static libraries.
30092 build_old_libs=$enable_static
30094 # What type of objects to build.
30097 # Whether or not to optimize for fast installation.
30098 fast_install=$enable_fast_install
30100 # Shell to use when invoking shell scripts.
30103 # An echo program that protects backslashes.
30106 # The PATH separator for the build system.
30107 PATH_SEPARATOR=$lt_PATH_SEPARATOR
30110 host_alias=$host_alias
30114 # The build system.
30115 build_alias=$build_alias
30119 # A sed program that does not truncate output.
30122 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
30123 Xsed="\$SED -e 1s/^X//"
30125 # A grep program that handles long lines.
30131 # A literal string matcher.
30134 # A BSD- or MS-compatible name lister.
30137 # Whether we need soft or hard links.
30140 # What is the maximum length of a command?
30141 max_cmd_len=$max_cmd_len
30143 # Object file suffix (normally "o").
30146 # Executable file suffix (normally "").
30149 # whether the shell understands "unset".
30152 # turn spaces into newlines.
30155 # turn newlines into spaces.
30158 # convert \$build file names to \$host format.
30159 to_host_file_cmd=$lt_cv_to_host_file_cmd
30161 # convert \$build files to toolchain format.
30162 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
30164 # Method to check whether dependent libraries are shared objects.
30165 deplibs_check_method=$lt_deplibs_check_method
30167 # Command to use when deplibs_check_method = "file_magic".
30168 file_magic_cmd=$lt_file_magic_cmd
30170 # How to find potential files when deplibs_check_method = "file_magic".
30171 file_magic_glob=$lt_file_magic_glob
30173 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
30174 want_nocaseglob=$lt_want_nocaseglob
30176 # Command to associate shared and link libraries.
30177 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
30182 # Flags to create an archive.
30183 AR_FLAGS=$lt_AR_FLAGS
30185 # How to feed a file listing to the archiver.
30186 archiver_list_spec=$lt_archiver_list_spec
30188 # A symbol stripping program.
30191 # Commands used to install an old-style archive.
30193 old_postinstall_cmds=$lt_old_postinstall_cmds
30194 old_postuninstall_cmds=$lt_old_postuninstall_cmds
30196 # Whether to use a lock for old archive extraction.
30197 lock_old_archive_extraction=$lock_old_archive_extraction
30202 # LTCC compiler flags.
30203 LTCFLAGS=$lt_CFLAGS
30205 # Take the output of nm and produce a listing of raw symbols and C names.
30206 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
30208 # Transform the output of nm in a proper C declaration.
30209 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
30211 # Transform the output of nm in a C name address pair.
30212 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
30214 # Transform the output of nm in a C name address pair when lib prefix is needed.
30215 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
30217 # Specify filename containing input files for \$NM.
30218 nm_file_list_spec=$lt_nm_file_list_spec
30220 # The root where to search for dependent libraries,and in which our libraries should be installed.
30221 lt_sysroot=$lt_sysroot
30223 # The name of the directory that contains temporary libtool files.
30226 # Used to examine libraries when file_magic_cmd begins with "file".
30227 MAGIC_CMD=$MAGIC_CMD
30229 # Must we lock files when doing compilation?
30230 need_locks=$lt_need_locks
30233 MANIFEST_TOOL=$lt_MANIFEST_TOOL
30235 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
30236 DSYMUTIL=$lt_DSYMUTIL
30238 # Tool to change global to local symbols on Mac OS X.
30241 # Tool to manipulate fat objects and archives on Mac OS X.
30244 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
30247 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
30248 OTOOL64=$lt_OTOOL64
30250 # Old archive suffix (normally "a").
30253 # Shared library suffix (normally ".so").
30254 shrext_cmds=$lt_shrext_cmds
30256 # The commands to extract the exported symbol list from a shared archive.
30257 extract_expsyms_cmds=$lt_extract_expsyms_cmds
30259 # Variables whose values should be saved in libtool wrapper scripts and
30260 # restored at link time.
30261 variables_saved_for_relink=$lt_variables_saved_for_relink
30263 # Do we need the "lib" prefix for modules?
30264 need_lib_prefix=$need_lib_prefix
30266 # Do we need a version for libraries?
30267 need_version=$need_version
30269 # Library versioning type.
30270 version_type=$version_type
30272 # Shared library runtime path variable.
30273 runpath_var=$runpath_var
30275 # Shared library path variable.
30276 shlibpath_var=$shlibpath_var
30278 # Is shlibpath searched before the hard-coded library search path?
30279 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
30281 # Format of library name prefix.
30282 libname_spec=$lt_libname_spec
30284 # List of archive names. First name is the real one, the rest are links.
30285 # The last name is the one that the linker finds with -lNAME
30286 library_names_spec=$lt_library_names_spec
30288 # The coded name of the library, if different from the real name.
30289 soname_spec=$lt_soname_spec
30291 # Permission mode override for installation of shared libraries.
30292 install_override_mode=$lt_install_override_mode
30294 # Command to use after installation of a shared archive.
30295 postinstall_cmds=$lt_postinstall_cmds
30297 # Command to use after uninstallation of a shared archive.
30298 postuninstall_cmds=$lt_postuninstall_cmds
30300 # Commands used to finish a libtool library installation in a directory.
30301 finish_cmds=$lt_finish_cmds
30303 # As "finish_cmds", except a single script fragment to be evaled but
30305 finish_eval=$lt_finish_eval
30307 # Whether we should hardcode library paths into libraries.
30308 hardcode_into_libs=$hardcode_into_libs
30310 # Compile-time system search path for libraries.
30311 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
30313 # Run-time system search path for libraries.
30314 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
30316 # Whether dlopen is supported.
30317 dlopen_support=$enable_dlopen
30319 # Whether dlopen of programs is supported.
30320 dlopen_self=$enable_dlopen_self
30322 # Whether dlopen of statically linked programs is supported.
30323 dlopen_self_static=$enable_dlopen_self_static
30325 # Commands to strip libraries.
30326 old_striplib=$lt_old_striplib
30327 striplib=$lt_striplib
30330 # The linker used to build libraries.
30333 # How to create reloadable object files.
30334 reload_flag=$lt_reload_flag
30335 reload_cmds=$lt_reload_cmds
30337 # Commands used to build an old-style archive.
30338 old_archive_cmds=$lt_old_archive_cmds
30340 # A language specific compiler.
30343 # Is the compiler the GNU compiler?
30346 # Compiler flag to turn off builtin functions.
30347 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
30349 # Additional compiler flags for building library objects.
30350 pic_flag=$lt_lt_prog_compiler_pic
30352 # How to pass a linker flag through the compiler.
30353 wl=$lt_lt_prog_compiler_wl
30355 # Compiler flag to prevent dynamic linking.
30356 link_static_flag=$lt_lt_prog_compiler_static
30358 # Does compiler simultaneously support -c and -o options?
30359 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
30361 # Whether or not to add -lc for building shared libraries.
30362 build_libtool_need_lc=$archive_cmds_need_lc
30364 # Whether or not to disallow shared libs when runtime libs are static.
30365 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
30367 # Compiler flag to allow reflexive dlopens.
30368 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
30370 # Compiler flag to generate shared objects directly from archives.
30371 whole_archive_flag_spec=$lt_whole_archive_flag_spec
30373 # Whether the compiler copes with passing no objects directly.
30374 compiler_needs_object=$lt_compiler_needs_object
30376 # Create an old-style archive from a shared archive.
30377 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
30379 # Create a temporary old-style archive to link instead of a shared archive.
30380 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
30382 # Commands used to build a shared archive.
30383 archive_cmds=$lt_archive_cmds
30384 archive_expsym_cmds=$lt_archive_expsym_cmds
30386 # Commands used to build a loadable module if different from building
30387 # a shared archive.
30388 module_cmds=$lt_module_cmds
30389 module_expsym_cmds=$lt_module_expsym_cmds
30391 # Whether we are building with GNU ld or not.
30392 with_gnu_ld=$lt_with_gnu_ld
30394 # Flag that allows shared libraries with undefined symbols to be built.
30395 allow_undefined_flag=$lt_allow_undefined_flag
30397 # Flag that enforces no undefined symbols.
30398 no_undefined_flag=$lt_no_undefined_flag
30400 # Flag to hardcode \$libdir into a binary during linking.
30401 # This must work even if \$libdir does not exist
30402 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
30404 # Whether we need a single "-rpath" flag with a separated argument.
30405 hardcode_libdir_separator=$lt_hardcode_libdir_separator
30407 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30408 # DIR into the resulting binary.
30409 hardcode_direct=$hardcode_direct
30411 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30412 # DIR into the resulting binary and the resulting library dependency is
30413 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
30414 # library is relocated.
30415 hardcode_direct_absolute=$hardcode_direct_absolute
30417 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30418 # into the resulting binary.
30419 hardcode_minus_L=$hardcode_minus_L
30421 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30422 # into the resulting binary.
30423 hardcode_shlibpath_var=$hardcode_shlibpath_var
30425 # Set to "yes" if building a shared library automatically hardcodes DIR
30426 # into the library and all subsequent libraries and executables linked
30428 hardcode_automatic=$hardcode_automatic
30430 # Set to yes if linker adds runtime paths of dependent libraries
30431 # to runtime path list.
30432 inherit_rpath=$inherit_rpath
30434 # Whether libtool must link a program against all its dependency libraries.
30435 link_all_deplibs=$link_all_deplibs
30437 # Set to "yes" if exported symbols are required.
30438 always_export_symbols=$always_export_symbols
30440 # The commands to list exported symbols.
30441 export_symbols_cmds=$lt_export_symbols_cmds
30443 # Symbols that should not be listed in the preloaded symbols.
30444 exclude_expsyms=$lt_exclude_expsyms
30446 # Symbols that must always be exported.
30447 include_expsyms=$lt_include_expsyms
30449 # Commands necessary for linking programs (against libraries) with templates.
30450 prelink_cmds=$lt_prelink_cmds
30452 # Commands necessary for finishing linking programs.
30453 postlink_cmds=$lt_postlink_cmds
30455 # Specify filename containing input files.
30456 file_list_spec=$lt_file_list_spec
30458 # How to hardcode a shared library path into an executable.
30459 hardcode_action=$hardcode_action
30461 # ### END LIBTOOL CONFIG
30467 cat <<\_LT_EOF >> "$cfgfile"
30468 # AIX sometimes has problems with the GCC collect2 program. For some
30469 # reason, if we set the COLLECT_NAMES environment variable, the problems
30470 # vanish in a puff of smoke.
30471 if test "X${COLLECT_NAMES+set}" != Xset; then
30473 export COLLECT_NAMES
30480 ltmain="$ac_aux_dir/ltmain.sh"
30483 # We use sed instead of cat because bash on DJGPP gets confused if
30484 # if finds mixed CR/LF and LF-only lines. Since sed operates in
30485 # text mode, it properly converts lines to CR/LF. This bash problem
30486 # is reportedly fixed, but why not run on old versions too?
30487 sed '$q' "$ltmain" >> "$cfgfile" \
30488 || (rm -f "$cfgfile"; exit 1)
30490 if test x"$xsi_shell" = xyes; then
30491 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
30495 \ */*) func_dirname_result="${1%/*}${2}" ;;\
30496 \ * ) func_dirname_result="${3}" ;;\
30498 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
30499 && mv -f "$cfgfile.tmp" "$cfgfile" \
30500 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30501 test 0 -eq $? || _lt_function_replace_fail=:
30504 sed -e '/^func_basename ()$/,/^} # func_basename /c\
30507 \ func_basename_result="${1##*/}"\
30508 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
30509 && mv -f "$cfgfile.tmp" "$cfgfile" \
30510 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30511 test 0 -eq $? || _lt_function_replace_fail=:
30514 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
30515 func_dirname_and_basename ()\
30518 \ */*) func_dirname_result="${1%/*}${2}" ;;\
30519 \ * ) func_dirname_result="${3}" ;;\
30521 \ func_basename_result="${1##*/}"\
30522 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
30523 && mv -f "$cfgfile.tmp" "$cfgfile" \
30524 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30525 test 0 -eq $? || _lt_function_replace_fail=:
30528 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
30531 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
30532 \ # positional parameters, so assign one to ordinary parameter first.\
30533 \ func_stripname_result=${3}\
30534 \ func_stripname_result=${func_stripname_result#"${1}"}\
30535 \ func_stripname_result=${func_stripname_result%"${2}"}\
30536 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
30537 && mv -f "$cfgfile.tmp" "$cfgfile" \
30538 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30539 test 0 -eq $? || _lt_function_replace_fail=:
30542 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
30543 func_split_long_opt ()\
30545 \ func_split_long_opt_name=${1%%=*}\
30546 \ func_split_long_opt_arg=${1#*=}\
30547 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
30548 && mv -f "$cfgfile.tmp" "$cfgfile" \
30549 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30550 test 0 -eq $? || _lt_function_replace_fail=:
30553 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
30554 func_split_short_opt ()\
30556 \ func_split_short_opt_arg=${1#??}\
30557 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
30558 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
30559 && mv -f "$cfgfile.tmp" "$cfgfile" \
30560 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30561 test 0 -eq $? || _lt_function_replace_fail=:
30564 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
30568 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
30569 \ *) func_lo2o_result=${1} ;;\
30571 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
30572 && mv -f "$cfgfile.tmp" "$cfgfile" \
30573 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30574 test 0 -eq $? || _lt_function_replace_fail=:
30577 sed -e '/^func_xform ()$/,/^} # func_xform /c\
30580 func_xform_result=${1%.*}.lo\
30581 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
30582 && mv -f "$cfgfile.tmp" "$cfgfile" \
30583 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30584 test 0 -eq $? || _lt_function_replace_fail=:
30587 sed -e '/^func_arith ()$/,/^} # func_arith /c\
30590 func_arith_result=$(( $* ))\
30591 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
30592 && mv -f "$cfgfile.tmp" "$cfgfile" \
30593 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30594 test 0 -eq $? || _lt_function_replace_fail=:
30597 sed -e '/^func_len ()$/,/^} # func_len /c\
30600 func_len_result=${#1}\
30601 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
30602 && mv -f "$cfgfile.tmp" "$cfgfile" \
30603 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30604 test 0 -eq $? || _lt_function_replace_fail=:
30608 if test x"$lt_shell_append" = xyes; then
30609 sed -e '/^func_append ()$/,/^} # func_append /c\
30612 eval "${1}+=\\${2}"\
30613 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
30614 && mv -f "$cfgfile.tmp" "$cfgfile" \
30615 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30616 test 0 -eq $? || _lt_function_replace_fail=:
30619 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
30620 func_append_quoted ()\
30622 \ func_quote_for_eval "${2}"\
30623 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
30624 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
30625 && mv -f "$cfgfile.tmp" "$cfgfile" \
30626 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30627 test 0 -eq $? || _lt_function_replace_fail=:
30630 # Save a `func_append' function call where possible by direct use of '+='
30631 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
30632 && mv -f "$cfgfile.tmp" "$cfgfile" \
30633 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30634 test 0 -eq $? || _lt_function_replace_fail=:
30636 # Save a `func_append' function call even when '+=' is not available
30637 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
30638 && mv -f "$cfgfile.tmp" "$cfgfile" \
30639 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30640 test 0 -eq $? || _lt_function_replace_fail=:
30643 if test x"$_lt_function_replace_fail" = x":"; then
30644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
30645 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
30649 mv -f "$cfgfile" "$ofile" ||
30650 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
30655 # Commands run at the end of config.status:
30656 for i in $APR_SAVE_HEADERS; do
30657 if cmp -s $i $i.save 2>/dev/null; then
30659 { $as_echo "$as_me:${as_lineno-$LINENO}: $i is unchanged" >&5
30660 $as_echo "$as_me: $i is unchanged" >&6;}
30664 chmod +x apr-$APR_MAJOR_VERSION-config
30673 ac_clean_files=$ac_clean_files_save
30675 test $ac_write_fail = 0 ||
30676 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
30679 # configure is writing to config.log, and then calls config.status.
30680 # config.status does its own redirection, appending to config.log.
30681 # Unfortunately, on DOS this fails, as config.log is still kept open
30682 # by configure, so config.status won't be able to write to it; its
30683 # output is simply discarded. So we exec the FD to /dev/null,
30684 # effectively closing config.log, so it can be properly (re)opened and
30685 # appended to by config.status. When coming back to configure, we
30686 # need to make the FD available again.
30687 if test "$no_create" != yes; then
30689 ac_config_status_args=
30690 test "$silent" = yes &&
30691 ac_config_status_args="$ac_config_status_args --quiet"
30693 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30695 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30696 # would make configure fail if this is the last instruction.
30697 $ac_cs_success || as_fn_exit 1
30699 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30701 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}