2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.65.
6
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
11
# This configure script is free software; the Free Software Foundation
12
# gives unlimited permission to copy, distribute and modify it.
13
## -------------------- ##
14
## M4sh Initialization. ##
15
## -------------------- ##
17
# Be more Bourne compatible
18
DUALCASE=1; export DUALCASE # for MKS sh
19
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23
# is contrary to our usage. Disable this feature.
24
alias -g '${1+"$@"}'='"$@"'
27
case `(set -o) 2>/dev/null` in #(
39
# Printing a long string crashes Solaris 7 /usr/bin/printf.
40
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43
# Prefer a ksh shell builtin over an external printf program on Solaris,
44
# but without wasting forks for bash or zsh.
45
if test -z "$BASH_VERSION$ZSH_VERSION" \
46
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48
as_echo_n='print -rn --'
49
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55
as_echo_n='/usr/ucb/echo -n'
57
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62
expr "X$arg" : "X\\(.*\\)$as_nl";
63
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68
as_echo_n='sh -c $as_echo_n_body as_echo'
71
as_echo='sh -c $as_echo_body as_echo'
74
# The user is always right.
75
if test "${PATH_SEPARATOR+set}" != set; then
77
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85
# We need space, tab and new line, in precisely that order. Quoting is
86
# there to prevent editors from complaining about space-tab.
87
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88
# splitting by setting IFS to empty value.)
91
# Find who we are. Look in the path if we contain no directory separator.
93
*[\\/]* ) as_myself=$0 ;;
94
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98
test -z "$as_dir" && as_dir=.
99
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105
# We did not find ourselves, most probably we were run as `sh COMMAND'
106
# in which case we are not to be found in the path.
107
if test "x$as_myself" = x; then
110
if test ! -f "$as_myself"; then
111
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115
# Unset variables that we do not need and which cause bugs (e.g. in
116
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117
# suppresses any "Segmentation fault" message there. '((' could
118
# trigger a bug in pdksh 5.2.14.
119
for as_var in BASH_ENV ENV MAIL MAILPATH
120
do eval test x\${$as_var+set} = xset \
121
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
134
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
if test "x$CONFIG_SHELL" = x; then
137
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141
# is contrary to our usage. Disable this feature.
142
alias -g '\${1+\"\$@\"}'='\"\$@\"'
145
case \`(set -o) 2>/dev/null\` in #(
153
as_required="as_fn_return () { (exit \$1); }
154
as_fn_success () { as_fn_return 0; }
155
as_fn_failure () { as_fn_return 1; }
156
as_fn_ret_success () { return 0; }
157
as_fn_ret_failure () { return 1; }
160
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
exitcode=1; echo positional parameters were not saved.
169
test x\$exitcode = x0 || exit 1"
170
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174
test \$(( 1 + 1 )) = 2 || exit 1"
175
if (eval "$as_required") 2>/dev/null; then :
180
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188
test -z "$as_dir" && as_dir=.
192
for as_base in sh bash ksh sh5; do
193
# Try only shells that exist, to save several forks.
194
as_shell=$as_dir/$as_base
195
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197
CONFIG_SHELL=$as_shell as_have_required=yes
198
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
206
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208
CONFIG_SHELL=$SHELL as_have_required=yes
213
if test "x$CONFIG_SHELL" != x; then :
214
# We cannot yet assume a decent shell, so we have to provide a
215
# neutralization value for shells without unset; and this also
216
# works around shells that cannot unset nonexistent variables.
219
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
221
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224
if test x$as_have_required = xno; then :
225
$as_echo "$0: This script requires a shell more modern than all"
226
$as_echo "$0: the shells that I found on your system."
227
if test x${ZSH_VERSION+set} = xset ; then
228
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229
$as_echo "$0: be upgraded to zsh 4.3.4 or later."
231
$as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232
$0: including any error possibly output before this
233
$0: message. Then install a modern shell, or manually run
234
$0: the script under such a shell if you do have one."
240
SHELL=${CONFIG_SHELL-/bin/sh}
242
# Unset more variables known to interfere with behavior of common tools.
243
CLICOLOR_FORCE= GREP_OPTIONS=
244
unset CLICOLOR_FORCE GREP_OPTIONS
246
## --------------------- ##
247
## M4sh Shell Functions. ##
248
## --------------------- ##
251
# Portably unset VAR.
254
{ eval $1=; unset $1;}
258
# as_fn_set_status STATUS
259
# -----------------------
260
# Set $? to STATUS, without forking.
268
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278
# Create "$as_dir" as a directory, including parents if necessary.
283
-*) as_dir=./$as_dir;;
285
test -d "$as_dir" || eval $as_mkdir_p || {
289
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292
as_dirs="'$as_qdir' $as_dirs"
293
as_dir=`$as_dirname -- "$as_dir" ||
294
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295
X"$as_dir" : 'X\(//\)[^/]' \| \
296
X"$as_dir" : 'X\(//\)$' \| \
297
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298
$as_echo X"$as_dir" |
299
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316
test -d "$as_dir" && break
318
test -z "$as_dirs" || eval "mkdir $as_dirs"
319
} || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323
# as_fn_append VAR VALUE
324
# ----------------------
325
# Append the text in VALUE to the end of the definition contained in VAR. Take
326
# advantage of any shell optimizations that allow amortized linear growth over
327
# repeated appends, instead of the typical quadratic growth present in naive
329
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330
eval 'as_fn_append ()
343
# Perform arithmetic evaluation on the ARGs, and store the result in the
344
# global $as_val. Take advantage of shells that can avoid forks. The arguments
345
# must be portable across $(()) and expr.
346
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
354
as_val=`expr "$@" || test $? -eq 1`
359
# as_fn_error ERROR [LINENO LOG_FD]
360
# ---------------------------------
361
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363
# script with status $?, using 1 if that was 0.
366
as_status=$?; test $as_status -eq 0 && as_status=1
368
as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369
$as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371
$as_echo "$as_me: error: $1" >&2
372
as_fn_exit $as_status
375
if expr a : '\(a\)' >/dev/null 2>&1 &&
376
test "X`expr 00001 : '.*\(...\)'`" = X001; then
382
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
394
as_me=`$as_basename -- "$0" ||
395
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396
X"$0" : 'X\(//\)$' \| \
397
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399
sed '/^.*\/\([^/][^/]*\)\/*$/{
413
# Avoid depending upon Character Ranges.
414
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417
as_cr_digits='0123456789'
418
as_cr_alnum=$as_cr_Letters$as_cr_digits
421
as_lineno_1=$LINENO as_lineno_1a=$LINENO
422
as_lineno_2=$LINENO as_lineno_2a=$LINENO
423
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441
chmod +x "$as_me.lineno" ||
442
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444
# Don't try to exec as it changes $[0], causing all sort of problems
445
# (the dirname of $[0] is not the place where we might find the
446
# original and so on. Autoconf is especially sensitive to this).
448
# Exit status is that of the last command.
452
ECHO_C= ECHO_N= ECHO_T=
453
case `echo -n x` in #(((((
455
case `echo 'xy\c'` in
456
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
458
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465
rm -f conf$$ conf$$.exe conf$$.file
466
if test -d conf$$.dir; then
467
rm -f conf$$.dir/conf$$.file
470
mkdir conf$$.dir 2>/dev/null
472
if (echo >conf$$.file) 2>/dev/null; then
473
if ln -s conf$$.file conf$$ 2>/dev/null; then
475
# ... but there are two gotchas:
476
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478
# In both cases, we have to default to `cp -p'.
479
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481
elif ln conf$$.file conf$$ 2>/dev/null; then
489
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490
rmdir conf$$.dir 2>/dev/null
492
if mkdir -p . 2>/dev/null; then
493
as_mkdir_p='mkdir -p "$as_dir"'
495
test -d ./-p && rmdir ./-p
499
if test -x / >/dev/null 2>&1; then
502
if ls -dL / >/dev/null 2>&1; then
509
if test -d "$1"; then
515
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516
???[sx]*):;;*)false;;esac;fi
520
as_executable_p=$as_test_x
522
# Sed expression to map a string onto a valid CPP name.
523
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525
# Sed expression to map a string onto a valid variable name.
526
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529
test -n "$DJDIR" || exec 7<&0 </dev/null
533
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534
# so uname gets run too.
535
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
540
ac_default_prefix=/usr/local
542
ac_config_libobj_dir=.
549
# Identity of this package.
557
ac_unique_file="context.c"
558
ac_default_prefix=/usr/local/serf
559
# Factoring default headers for most tests.
560
ac_includes_default="\
562
#ifdef HAVE_SYS_TYPES_H
563
# include <sys/types.h>
565
#ifdef HAVE_SYS_STAT_H
566
# include <sys/stat.h>
572
# ifdef HAVE_STDLIB_H
577
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
582
#ifdef HAVE_STRINGS_H
583
# include <strings.h>
585
#ifdef HAVE_INTTYPES_H
586
# include <inttypes.h>
595
ac_subst_vars='LTLIBOBJS
606
SERF_CLEAN_SRCLIB_DIRS
607
SERF_BUILD_SRCLIB_DIRS
671
program_transform_name
684
enable_option_checking
690
ac_precious_vars='build_alias
701
# Initialize some variables set by options.
703
ac_init_version=false
704
ac_unrecognized_opts=
706
# The variables have the same names as the options, with
707
# dashes changed to underlines.
715
program_transform_name=s,x,x,
723
# Installation directory options.
724
# These are left unexpanded so users can "make install exec_prefix=/foo"
725
# and all the variables that are supposed to be based on exec_prefix
726
# by default will actually change.
727
# Use braces instead of parens because sh, perl, etc. also accept them.
728
# (The list follows the same order as the GNU Coding Standards.)
729
bindir='${exec_prefix}/bin'
730
sbindir='${exec_prefix}/sbin'
731
libexecdir='${exec_prefix}/libexec'
732
datarootdir='${prefix}/share'
733
datadir='${datarootdir}'
734
sysconfdir='${prefix}/etc'
735
sharedstatedir='${prefix}/com'
736
localstatedir='${prefix}/var'
737
includedir='${prefix}/include'
738
oldincludedir='/usr/include'
739
docdir='${datarootdir}/doc/${PACKAGE}'
740
infodir='${datarootdir}/info'
745
libdir='${exec_prefix}/lib'
746
localedir='${datarootdir}/locale'
747
mandir='${datarootdir}/man'
753
# If the previous option needs an argument, assign it.
754
if test -n "$ac_prev"; then
755
eval $ac_prev=\$ac_option
761
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
765
# Accept the important Cygnus configure options, so we can diagnose typos.
767
case $ac_dashdash$ac_option in
771
-bindir | --bindir | --bindi | --bind | --bin | --bi)
773
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
776
-build | --build | --buil | --bui | --bu)
777
ac_prev=build_alias ;;
778
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
779
build_alias=$ac_optarg ;;
781
-cache-file | --cache-file | --cache-fil | --cache-fi \
782
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
783
ac_prev=cache_file ;;
784
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
785
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
786
cache_file=$ac_optarg ;;
789
cache_file=config.cache ;;
791
-datadir | --datadir | --datadi | --datad)
793
-datadir=* | --datadir=* | --datadi=* | --datad=*)
794
datadir=$ac_optarg ;;
796
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
797
| --dataroo | --dataro | --datar)
798
ac_prev=datarootdir ;;
799
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
800
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
801
datarootdir=$ac_optarg ;;
803
-disable-* | --disable-*)
804
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
805
# Reject names that are not valid shell variable names.
806
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
807
as_fn_error "invalid feature name: $ac_useropt"
808
ac_useropt_orig=$ac_useropt
809
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
810
case $ac_user_opts in
814
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
815
ac_unrecognized_sep=', ';;
817
eval enable_$ac_useropt=no ;;
819
-docdir | --docdir | --docdi | --doc | --do)
821
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
824
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
826
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
829
-enable-* | --enable-*)
830
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
831
# Reject names that are not valid shell variable names.
832
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
833
as_fn_error "invalid feature name: $ac_useropt"
834
ac_useropt_orig=$ac_useropt
835
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
836
case $ac_user_opts in
840
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
841
ac_unrecognized_sep=', ';;
843
eval enable_$ac_useropt=\$ac_optarg ;;
845
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
846
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
847
| --exec | --exe | --ex)
848
ac_prev=exec_prefix ;;
849
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
850
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
851
| --exec=* | --exe=* | --ex=*)
852
exec_prefix=$ac_optarg ;;
854
-gas | --gas | --ga | --g)
855
# Obsolete; use --with-gas.
858
-help | --help | --hel | --he | -h)
860
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
861
ac_init_help=recursive ;;
862
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
863
ac_init_help=short ;;
865
-host | --host | --hos | --ho)
866
ac_prev=host_alias ;;
867
-host=* | --host=* | --hos=* | --ho=*)
868
host_alias=$ac_optarg ;;
870
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
872
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
874
htmldir=$ac_optarg ;;
876
-includedir | --includedir | --includedi | --included | --include \
877
| --includ | --inclu | --incl | --inc)
878
ac_prev=includedir ;;
879
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
880
| --includ=* | --inclu=* | --incl=* | --inc=*)
881
includedir=$ac_optarg ;;
883
-infodir | --infodir | --infodi | --infod | --info | --inf)
885
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
886
infodir=$ac_optarg ;;
888
-libdir | --libdir | --libdi | --libd)
890
-libdir=* | --libdir=* | --libdi=* | --libd=*)
893
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
894
| --libexe | --libex | --libe)
895
ac_prev=libexecdir ;;
896
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
897
| --libexe=* | --libex=* | --libe=*)
898
libexecdir=$ac_optarg ;;
900
-localedir | --localedir | --localedi | --localed | --locale)
902
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
903
localedir=$ac_optarg ;;
905
-localstatedir | --localstatedir | --localstatedi | --localstated \
906
| --localstate | --localstat | --localsta | --localst | --locals)
907
ac_prev=localstatedir ;;
908
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
909
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
910
localstatedir=$ac_optarg ;;
912
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
914
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
918
# Obsolete; use --without-fp.
921
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
922
| --no-cr | --no-c | -n)
925
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
926
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
929
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
930
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
931
| --oldin | --oldi | --old | --ol | --o)
932
ac_prev=oldincludedir ;;
933
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
934
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
935
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
936
oldincludedir=$ac_optarg ;;
938
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
940
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
943
-program-prefix | --program-prefix | --program-prefi | --program-pref \
944
| --program-pre | --program-pr | --program-p)
945
ac_prev=program_prefix ;;
946
-program-prefix=* | --program-prefix=* | --program-prefi=* \
947
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
948
program_prefix=$ac_optarg ;;
950
-program-suffix | --program-suffix | --program-suffi | --program-suff \
951
| --program-suf | --program-su | --program-s)
952
ac_prev=program_suffix ;;
953
-program-suffix=* | --program-suffix=* | --program-suffi=* \
954
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
955
program_suffix=$ac_optarg ;;
957
-program-transform-name | --program-transform-name \
958
| --program-transform-nam | --program-transform-na \
959
| --program-transform-n | --program-transform- \
960
| --program-transform | --program-transfor \
961
| --program-transfo | --program-transf \
962
| --program-trans | --program-tran \
963
| --progr-tra | --program-tr | --program-t)
964
ac_prev=program_transform_name ;;
965
-program-transform-name=* | --program-transform-name=* \
966
| --program-transform-nam=* | --program-transform-na=* \
967
| --program-transform-n=* | --program-transform-=* \
968
| --program-transform=* | --program-transfor=* \
969
| --program-transfo=* | --program-transf=* \
970
| --program-trans=* | --program-tran=* \
971
| --progr-tra=* | --program-tr=* | --program-t=*)
972
program_transform_name=$ac_optarg ;;
974
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
976
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
979
-psdir | --psdir | --psdi | --psd | --ps)
981
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
984
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
985
| -silent | --silent | --silen | --sile | --sil)
988
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
990
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
992
sbindir=$ac_optarg ;;
994
-sharedstatedir | --sharedstatedir | --sharedstatedi \
995
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
996
| --sharedst | --shareds | --shared | --share | --shar \
998
ac_prev=sharedstatedir ;;
999
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1000
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1001
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1003
sharedstatedir=$ac_optarg ;;
1005
-site | --site | --sit)
1007
-site=* | --site=* | --sit=*)
1010
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1012
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1013
srcdir=$ac_optarg ;;
1015
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1016
| --syscon | --sysco | --sysc | --sys | --sy)
1017
ac_prev=sysconfdir ;;
1018
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1019
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1020
sysconfdir=$ac_optarg ;;
1022
-target | --target | --targe | --targ | --tar | --ta | --t)
1023
ac_prev=target_alias ;;
1024
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1025
target_alias=$ac_optarg ;;
1027
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1030
-version | --version | --versio | --versi | --vers | -V)
1031
ac_init_version=: ;;
1034
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1035
# Reject names that are not valid shell variable names.
1036
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1037
as_fn_error "invalid package name: $ac_useropt"
1038
ac_useropt_orig=$ac_useropt
1039
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1040
case $ac_user_opts in
1044
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1045
ac_unrecognized_sep=', ';;
1047
eval with_$ac_useropt=\$ac_optarg ;;
1049
-without-* | --without-*)
1050
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1051
# Reject names that are not valid shell variable names.
1052
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1053
as_fn_error "invalid package name: $ac_useropt"
1054
ac_useropt_orig=$ac_useropt
1055
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1056
case $ac_user_opts in
1060
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1061
ac_unrecognized_sep=', ';;
1063
eval with_$ac_useropt=no ;;
1066
# Obsolete; use --with-x.
1069
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1070
| --x-incl | --x-inc | --x-in | --x-i)
1071
ac_prev=x_includes ;;
1072
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1073
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1074
x_includes=$ac_optarg ;;
1076
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1077
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1078
ac_prev=x_libraries ;;
1079
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1080
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1081
x_libraries=$ac_optarg ;;
1083
-*) as_fn_error "unrecognized option: \`$ac_option'
1084
Try \`$0 --help' for more information."
1088
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1089
# Reject names that are not valid shell variable names.
1090
case $ac_envvar in #(
1091
'' | [0-9]* | *[!_$as_cr_alnum]* )
1092
as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1094
eval $ac_envvar=\$ac_optarg
1095
export $ac_envvar ;;
1098
# FIXME: should be removed in autoconf 3.0.
1099
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1100
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1101
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1102
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1108
if test -n "$ac_prev"; then
1109
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1110
as_fn_error "missing argument to $ac_option"
1113
if test -n "$ac_unrecognized_opts"; then
1114
case $enable_option_checking in
1116
fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1117
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1121
# Check all directory arguments for consistency.
1122
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1123
datadir sysconfdir sharedstatedir localstatedir includedir \
1124
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1125
libdir localedir mandir
1127
eval ac_val=\$$ac_var
1128
# Remove trailing slashes.
1131
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1132
eval $ac_var=\$ac_val;;
1134
# Be sure to have absolute directory names.
1136
[\\/$]* | ?:[\\/]* ) continue;;
1137
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1139
as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1142
# There might be people who depend on the old broken behavior: `$host'
1143
# used to hold the argument of --host etc.
1144
# FIXME: To remove some day.
1147
target=$target_alias
1149
# FIXME: To remove some day.
1150
if test "x$host_alias" != x; then
1151
if test "x$build_alias" = x; then
1152
cross_compiling=maybe
1153
$as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1154
If a cross compiler is detected then cross compile mode will be used." >&2
1155
elif test "x$build_alias" != "x$host_alias"; then
1161
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1163
test "$silent" = yes && exec 6>/dev/null
1166
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1167
ac_ls_di=`ls -di .` &&
1168
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1169
as_fn_error "working directory cannot be determined"
1170
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1171
as_fn_error "pwd does not report name of working directory"
1174
# Find the source files, if location was not specified.
1175
if test -z "$srcdir"; then
1176
ac_srcdir_defaulted=yes
1177
# Try the directory containing this script, then the parent directory.
1178
ac_confdir=`$as_dirname -- "$as_myself" ||
1179
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1180
X"$as_myself" : 'X\(//\)[^/]' \| \
1181
X"$as_myself" : 'X\(//\)$' \| \
1182
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1183
$as_echo X"$as_myself" |
1184
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1202
if test ! -r "$srcdir/$ac_unique_file"; then
1206
ac_srcdir_defaulted=no
1208
if test ! -r "$srcdir/$ac_unique_file"; then
1209
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1210
as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1212
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1214
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1216
# When building in place, set srcdir=.
1217
if test "$ac_abs_confdir" = "$ac_pwd"; then
1220
# Remove unnecessary trailing slashes from srcdir.
1221
# Double slashes in file names in object file debugging info
1222
# mess up M-x gdb in Emacs.
1224
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1226
for ac_var in $ac_precious_vars; do
1227
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1228
eval ac_env_${ac_var}_value=\$${ac_var}
1229
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1230
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1234
# Report the --help message.
1236
if test "$ac_init_help" = "long"; then
1237
# Omit some internal or obsolete options to make the list less imposing.
1238
# This message is too long to be a string in the A/UX 3.1 sh.
1240
\`configure' configures this package to adapt to many kinds of systems.
1242
Usage: $0 [OPTION]... [VAR=VALUE]...
1244
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1245
VAR=VALUE. See below for descriptions of some of the useful variables.
1247
Defaults for the options are specified in brackets.
1250
-h, --help display this help and exit
1251
--help=short display options specific to this package
1252
--help=recursive display the short help of all the included packages
1253
-V, --version display version information and exit
1254
-q, --quiet, --silent do not print \`checking...' messages
1255
--cache-file=FILE cache test results in FILE [disabled]
1256
-C, --config-cache alias for \`--cache-file=config.cache'
1257
-n, --no-create do not create output files
1258
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1260
Installation directories:
1261
--prefix=PREFIX install architecture-independent files in PREFIX
1262
[$ac_default_prefix]
1263
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1266
By default, \`make install' will install all the files in
1267
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1268
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1269
for instance \`--prefix=\$HOME'.
1271
For better control, use the options below.
1273
Fine tuning of the installation directories:
1274
--bindir=DIR user executables [EPREFIX/bin]
1275
--sbindir=DIR system admin executables [EPREFIX/sbin]
1276
--libexecdir=DIR program executables [EPREFIX/libexec]
1277
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1278
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1279
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1280
--libdir=DIR object code libraries [EPREFIX/lib]
1281
--includedir=DIR C header files [PREFIX/include]
1282
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1283
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1284
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1285
--infodir=DIR info documentation [DATAROOTDIR/info]
1286
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1287
--mandir=DIR man documentation [DATAROOTDIR/man]
1288
--docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1289
--htmldir=DIR html documentation [DOCDIR]
1290
--dvidir=DIR dvi documentation [DOCDIR]
1291
--pdfdir=DIR pdf documentation [DOCDIR]
1292
--psdir=DIR ps documentation [DOCDIR]
1298
--build=BUILD configure for building on BUILD [guessed]
1299
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1300
--target=TARGET configure for building compilers for TARGET [HOST]
1304
if test -n "$ac_init_help"; then
1309
--disable-option-checking ignore unrecognized --enable/--with options
1310
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1311
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1312
--enable-layout=LAYOUT
1315
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1316
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1317
--with-apr=PATH prefix for installed APR or the full path to
1319
--with-apr-util=PATH prefix for installed APU or the full path to
1321
--with-openssl=PATH Path to OpenSSL (eg. /usr/local/ssl)
1323
Some influential environment variables:
1324
CC C compiler command
1325
CFLAGS C compiler flags
1326
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1327
nonstandard directory <lib dir>
1328
LIBS libraries to pass to the linker, e.g. -l<library>
1329
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1330
you have headers in a nonstandard directory <include dir>
1333
Use these variables to override the choices made by `configure' or to help
1334
it to find libraries and programs with nonstandard names/locations.
1336
Report bugs to the package provider.
1341
if test "$ac_init_help" = "recursive"; then
1342
# If there are subdirs, report their specific --help.
1343
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1344
test -d "$ac_dir" ||
1345
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1350
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1352
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1353
# A ".." for each directory in $ac_dir_suffix.
1354
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1355
case $ac_top_builddir_sub in
1356
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1357
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1360
ac_abs_top_builddir=$ac_pwd
1361
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1362
# for backward compatibility:
1363
ac_top_builddir=$ac_top_build_prefix
1366
.) # We are building in place.
1368
ac_top_srcdir=$ac_top_builddir_sub
1369
ac_abs_top_srcdir=$ac_pwd ;;
1370
[\\/]* | ?:[\\/]* ) # Absolute name.
1371
ac_srcdir=$srcdir$ac_dir_suffix;
1372
ac_top_srcdir=$srcdir
1373
ac_abs_top_srcdir=$srcdir ;;
1375
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1376
ac_top_srcdir=$ac_top_build_prefix$srcdir
1377
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1379
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1381
cd "$ac_dir" || { ac_status=$?; continue; }
1382
# Check for guested configure.
1383
if test -f "$ac_srcdir/configure.gnu"; then
1385
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1386
elif test -f "$ac_srcdir/configure"; then
1388
$SHELL "$ac_srcdir/configure" --help=recursive
1390
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1392
cd "$ac_pwd" || { ac_status=$?; break; }
1396
test -n "$ac_init_help" && exit $ac_status
1397
if $ac_init_version; then
1400
generated by GNU Autoconf 2.65
1402
Copyright (C) 2009 Free Software Foundation, Inc.
1403
This configure script is free software; the Free Software Foundation
1404
gives unlimited permission to copy, distribute and modify it.
1409
## ------------------------ ##
1410
## Autoconf initialization. ##
1411
## ------------------------ ##
1413
# ac_fn_c_try_compile LINENO
1414
# --------------------------
1415
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1416
ac_fn_c_try_compile ()
1418
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1419
rm -f conftest.$ac_objext
1420
if { { ac_try="$ac_compile"
1422
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1423
*) ac_try_echo=$ac_try;;
1425
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1426
$as_echo "$ac_try_echo"; } >&5
1427
(eval "$ac_compile") 2>conftest.err
1429
if test -s conftest.err; then
1430
grep -v '^ *+' conftest.err >conftest.er1
1431
cat conftest.er1 >&5
1432
mv -f conftest.er1 conftest.err
1434
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1435
test $ac_status = 0; } && {
1436
test -z "$ac_c_werror_flag" ||
1437
test ! -s conftest.err
1438
} && test -s conftest.$ac_objext; then :
1441
$as_echo "$as_me: failed program was:" >&5
1442
sed 's/^/| /' conftest.$ac_ext >&5
1446
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1447
as_fn_set_status $ac_retval
1449
} # ac_fn_c_try_compile
1451
# ac_fn_c_try_cpp LINENO
1452
# ----------------------
1453
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1456
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1457
if { { ac_try="$ac_cpp conftest.$ac_ext"
1459
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1460
*) ac_try_echo=$ac_try;;
1462
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1463
$as_echo "$ac_try_echo"; } >&5
1464
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1466
if test -s conftest.err; then
1467
grep -v '^ *+' conftest.err >conftest.er1
1468
cat conftest.er1 >&5
1469
mv -f conftest.er1 conftest.err
1471
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1472
test $ac_status = 0; } >/dev/null && {
1473
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1474
test ! -s conftest.err
1478
$as_echo "$as_me: failed program was:" >&5
1479
sed 's/^/| /' conftest.$ac_ext >&5
1483
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1484
as_fn_set_status $ac_retval
1488
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1489
# -------------------------------------------------------
1490
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1491
# the include files in INCLUDES and setting the cache variable VAR
1493
ac_fn_c_check_header_mongrel ()
1495
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1496
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1497
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1498
$as_echo_n "checking for $2... " >&6; }
1499
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1500
$as_echo_n "(cached) " >&6
1503
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1504
$as_echo "$ac_res" >&6; }
1506
# Is the header compilable?
1507
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1508
$as_echo_n "checking $2 usability... " >&6; }
1509
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1510
/* end confdefs.h. */
1514
if ac_fn_c_try_compile "$LINENO"; then :
1515
ac_header_compiler=yes
1517
ac_header_compiler=no
1519
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1520
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1521
$as_echo "$ac_header_compiler" >&6; }
1523
# Is the header present?
1524
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1525
$as_echo_n "checking $2 presence... " >&6; }
1526
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1527
/* end confdefs.h. */
1530
if ac_fn_c_try_cpp "$LINENO"; then :
1531
ac_header_preproc=yes
1533
ac_header_preproc=no
1535
rm -f conftest.err conftest.$ac_ext
1536
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1537
$as_echo "$ac_header_preproc" >&6; }
1539
# So? What about this header?
1540
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1542
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1543
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1544
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1545
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1548
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1549
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1550
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1551
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1552
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1553
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1554
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1555
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1556
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1557
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1560
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1561
$as_echo_n "checking for $2... " >&6; }
1562
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1563
$as_echo_n "(cached) " >&6
1565
eval "$3=\$ac_header_compiler"
1568
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1569
$as_echo "$ac_res" >&6; }
1571
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1573
} # ac_fn_c_check_header_mongrel
1575
# ac_fn_c_try_run LINENO
1576
# ----------------------
1577
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1578
# that executables *can* be run.
1581
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582
if { { ac_try="$ac_link"
1584
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1585
*) ac_try_echo=$ac_try;;
1587
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1588
$as_echo "$ac_try_echo"; } >&5
1589
(eval "$ac_link") 2>&5
1591
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1592
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1593
{ { case "(($ac_try" in
1594
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1595
*) ac_try_echo=$ac_try;;
1597
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1598
$as_echo "$ac_try_echo"; } >&5
1599
(eval "$ac_try") 2>&5
1601
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1602
test $ac_status = 0; }; }; then :
1605
$as_echo "$as_me: program exited with status $ac_status" >&5
1606
$as_echo "$as_me: failed program was:" >&5
1607
sed 's/^/| /' conftest.$ac_ext >&5
1609
ac_retval=$ac_status
1611
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1612
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1613
as_fn_set_status $ac_retval
1617
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1618
# -------------------------------------------------------
1619
# Tests whether HEADER exists and can be compiled using the include files in
1620
# INCLUDES, setting the cache variable VAR accordingly.
1621
ac_fn_c_check_header_compile ()
1623
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1625
$as_echo_n "checking for $2... " >&6; }
1626
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1627
$as_echo_n "(cached) " >&6
1629
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1630
/* end confdefs.h. */
1634
if ac_fn_c_try_compile "$LINENO"; then :
1639
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1642
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1643
$as_echo "$ac_res" >&6; }
1644
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1646
} # ac_fn_c_check_header_compile
1648
# ac_fn_c_try_link LINENO
1649
# -----------------------
1650
# Try to link conftest.$ac_ext, and return whether this succeeded.
1653
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654
rm -f conftest.$ac_objext conftest$ac_exeext
1655
if { { ac_try="$ac_link"
1657
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1658
*) ac_try_echo=$ac_try;;
1660
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661
$as_echo "$ac_try_echo"; } >&5
1662
(eval "$ac_link") 2>conftest.err
1664
if test -s conftest.err; then
1665
grep -v '^ *+' conftest.err >conftest.er1
1666
cat conftest.er1 >&5
1667
mv -f conftest.er1 conftest.err
1669
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1670
test $ac_status = 0; } && {
1671
test -z "$ac_c_werror_flag" ||
1672
test ! -s conftest.err
1673
} && test -s conftest$ac_exeext && {
1674
test "$cross_compiling" = yes ||
1675
$as_test_x conftest$ac_exeext
1679
$as_echo "$as_me: failed program was:" >&5
1680
sed 's/^/| /' conftest.$ac_ext >&5
1684
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1685
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1686
# interfere with the next link command; also delete a directory that is
1687
# left behind by Apple's compiler. We do this before executing the actions.
1688
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1689
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1690
as_fn_set_status $ac_retval
1692
} # ac_fn_c_try_link
1693
cat >config.log <<_ACEOF
1694
This file contains any messages produced by compilers while
1695
running configure, to aid debugging if configure makes a mistake.
1697
It was created by $as_me, which was
1698
generated by GNU Autoconf 2.65. Invocation command line was
1710
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1711
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1712
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1713
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1714
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1716
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1717
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1719
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1720
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1721
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1722
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1723
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1724
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1725
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1729
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1733
test -z "$as_dir" && as_dir=.
1734
$as_echo "PATH: $as_dir"
1750
# Keep a trace of the command line.
1751
# Strip out --no-create and --no-recursion so they do not pile up.
1752
# Strip out --silent because we don't want to record it for future runs.
1753
# Also quote any args containing shell meta-characters.
1754
# Make two passes to allow for proper duplicate-argument suppression.
1758
ac_must_keep_next=false
1764
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1765
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1766
| -silent | --silent | --silen | --sile | --sil)
1769
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1772
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1774
as_fn_append ac_configure_args1 " '$ac_arg'"
1775
if test $ac_must_keep_next = true; then
1776
ac_must_keep_next=false # Got value, back to normal.
1779
*=* | --config-cache | -C | -disable-* | --disable-* \
1780
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1781
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1782
| -with-* | --with-* | -without-* | --without-* | --x)
1783
case "$ac_configure_args0 " in
1784
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1787
-* ) ac_must_keep_next=true ;;
1790
as_fn_append ac_configure_args " '$ac_arg'"
1795
{ ac_configure_args0=; unset ac_configure_args0;}
1796
{ ac_configure_args1=; unset ac_configure_args1;}
1798
# When interrupted or exit'd, cleanup temporary files, and complete
1799
# config.log. We remove comments because anyway the quotes in there
1800
# would cause problems or look ugly.
1801
# WARNING: Use '\'' to represent an apostrophe within the trap.
1802
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1803
trap 'exit_status=$?
1804
# Save into config.log some information that might help in debugging.
1809
## ---------------- ##
1810
## Cache variables. ##
1811
## ---------------- ##
1814
# The following way of writing the cache mishandles newlines in values,
1816
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1817
eval ac_val=\$$ac_var
1821
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1822
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1825
_ | IFS | as_nl) ;; #(
1826
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1827
*) { eval $ac_var=; unset $ac_var;} ;;
1832
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1833
*${as_nl}ac_space=\ *)
1835
"s/'\''/'\''\\\\'\'''\''/g;
1836
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1839
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1847
## ----------------- ##
1848
## Output variables. ##
1849
## ----------------- ##
1852
for ac_var in $ac_subst_vars
1854
eval ac_val=\$$ac_var
1856
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1858
$as_echo "$ac_var='\''$ac_val'\''"
1862
if test -n "$ac_subst_files"; then
1864
## ------------------- ##
1865
## File substitutions. ##
1866
## ------------------- ##
1869
for ac_var in $ac_subst_files
1871
eval ac_val=\$$ac_var
1873
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1875
$as_echo "$ac_var='\''$ac_val'\''"
1880
if test -s confdefs.h; then
1890
test "$ac_signal" != 0 &&
1891
$as_echo "$as_me: caught signal $ac_signal"
1892
$as_echo "$as_me: exit $exit_status"
1894
rm -f core *.core core.conftest.* &&
1895
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1898
for ac_signal in 1 2 13 15; do
1899
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1903
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1904
rm -f -r conftest* confdefs.h
1906
$as_echo "/* confdefs.h */" > confdefs.h
1908
# Predefined preprocessor variables.
1910
cat >>confdefs.h <<_ACEOF
1911
#define PACKAGE_NAME "$PACKAGE_NAME"
1914
cat >>confdefs.h <<_ACEOF
1915
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1918
cat >>confdefs.h <<_ACEOF
1919
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1922
cat >>confdefs.h <<_ACEOF
1923
#define PACKAGE_STRING "$PACKAGE_STRING"
1926
cat >>confdefs.h <<_ACEOF
1927
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1930
cat >>confdefs.h <<_ACEOF
1931
#define PACKAGE_URL "$PACKAGE_URL"
1935
# Let the site file select an alternate cache file if it wants to.
1936
# Prefer an explicitly selected file to automatically selected ones.
1939
if test -n "$CONFIG_SITE"; then
1940
ac_site_file1=$CONFIG_SITE
1941
elif test "x$prefix" != xNONE; then
1942
ac_site_file1=$prefix/share/config.site
1943
ac_site_file2=$prefix/etc/config.site
1945
ac_site_file1=$ac_default_prefix/share/config.site
1946
ac_site_file2=$ac_default_prefix/etc/config.site
1948
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1950
test "x$ac_site_file" = xNONE && continue
1951
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1952
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1953
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1954
sed 's/^/| /' "$ac_site_file" >&5
1959
if test -r "$cache_file"; then
1960
# Some versions of bash will fail to source /dev/null (special files
1961
# actually), so we avoid doing that. DJGPP emulates it as a regular file.
1962
if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1963
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1964
$as_echo "$as_me: loading cache $cache_file" >&6;}
1966
[\\/]* | ?:[\\/]* ) . "$cache_file";;
1967
*) . "./$cache_file";;
1971
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1972
$as_echo "$as_me: creating cache $cache_file" >&6;}
1976
# Check that the precious variables saved in the cache have kept the same
1978
ac_cache_corrupted=false
1979
for ac_var in $ac_precious_vars; do
1980
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1981
eval ac_new_set=\$ac_env_${ac_var}_set
1982
eval ac_old_val=\$ac_cv_env_${ac_var}_value
1983
eval ac_new_val=\$ac_env_${ac_var}_value
1984
case $ac_old_set,$ac_new_set in
1986
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1987
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1988
ac_cache_corrupted=: ;;
1990
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1991
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1992
ac_cache_corrupted=: ;;
1995
if test "x$ac_old_val" != "x$ac_new_val"; then
1996
# differences in whitespace do not lead to failure.
1997
ac_old_val_w=`echo x $ac_old_val`
1998
ac_new_val_w=`echo x $ac_new_val`
1999
if test "$ac_old_val_w" != "$ac_new_val_w"; then
2000
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2001
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2002
ac_cache_corrupted=:
2004
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2005
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2006
eval $ac_var=\$ac_old_val
2008
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2009
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2010
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2011
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2014
# Pass precious variables to config.status.
2015
if test "$ac_new_set" = set; then
2017
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2018
*) ac_arg=$ac_var=$ac_new_val ;;
2020
case " $ac_configure_args " in
2021
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2022
*) as_fn_append ac_configure_args " '$ac_arg'" ;;
2026
if $ac_cache_corrupted; then
2027
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2028
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2029
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2030
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2031
as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2033
## -------------------- ##
2034
## Main body of script. ##
2035
## -------------------- ##
2038
ac_cpp='$CPP $CPPFLAGS'
2039
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2040
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2041
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2046
for ac_dir in build "$srcdir"/build; do
2047
for ac_t in install-sh install.sh shtool; do
2048
if test -f "$ac_dir/$ac_t"; then
2050
ac_install_sh="$ac_aux_dir/$ac_t -c"
2055
if test -z "$ac_aux_dir"; then
2056
as_fn_error "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
2059
# These three variables are undocumented and unsupported,
2060
# and are intended to be withdrawn in a future Autoconf release.
2061
# They can cause serious problems if a builder's source tree is in a directory
2062
# whose full name contains unusual characters.
2063
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2064
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2065
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2153
# Check whether --enable-layout was given.
2154
if test "${enable_layout+set}" = set; then :
2155
enableval=$enable_layout;
2161
if test -z "$LAYOUT"; then
2165
if test ! -f $srcdir/config.layout; then
2166
echo "** Error: Layout file $srcdir/config.layout not found"
2167
echo "** Error: Cannot use undefined layout '$LAYOUT'"
2170
# Catch layout names including a slash which will otherwise
2171
# confuse the heck out of the sed script.
2174
echo "** Error: $LAYOUT is not a valid layout name"
2177
pldconf=./config.pld
2179
sed -e "1s/[ ]*<[lL]ayout[ ]*$LAYOUT[ ]*>[ ]*//;1t" \
2180
-e "1,/[ ]*<[lL]ayout[ ]*$LAYOUT[ ]*>[ ]*/d" \
2181
-e '/[ ]*<\/Layout>[ ]*/,$d' \
2183
-e "s/:[ ]*/=\'/g" \
2185
$srcdir/config.layout > $pldconf
2187
if test ! -s $pldconf; then
2188
echo "** Error: unable to find layout $layout_name"
2193
for var in prefix exec_prefix bindir sbindir libexecdir mandir \
2194
sysconfdir datadir includedir localstatedir runtimedir \
2195
logfiledir libdir installbuilddir libsuffix ; do
2196
eval "val=\"\$$var\""
2199
val=`echo $val | sed -e 's;\+$;;'`
2200
eval "$var=\"\$val\""
2207
val=`echo $val | sed -e 's:\(.\)/*$:\1:'`
2208
val=`echo $val | sed -e 's:[\$]\([a-z_]*\):$\1:g'`
2209
if test "$autosuffix" = "yes"; then
2210
if echo $val | grep apache >/dev/null; then
2215
if test "$addtarget" = "yes"; then
2224
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for chosen layout" >&5
2225
$as_echo_n "checking for chosen layout... " >&6; }
2226
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $layout_name" >&5
2227
$as_echo "$layout_name" >&6; }
2232
# Retrieve the command-line arguments. The eval is needed because
2233
# the arguments are quoted to preserve accuracy.
2234
eval "set x $ac_configure_args"
2238
# If the previous option needs an argument, assign it.
2239
if test -n "$ac_prev"; then
2240
eval "$ac_prev=\$ac_option"
2245
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
2249
-bindir | --bindir | --bindi | --bind | --bin | --bi)
2251
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
2252
bindir="$ac_optarg" ;;
2254
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
2256
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
2258
datadir="$ac_optarg" ;;
2260
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
2261
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
2262
| --exec | --exe | --ex)
2263
ac_prev=exec_prefix ;;
2264
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
2265
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
2266
| --exec=* | --exe=* | --ex=*)
2267
exec_prefix="$ac_optarg" ;;
2269
-includedir | --includedir | --includedi | --included | --include \
2270
| --includ | --inclu | --incl | --inc)
2271
ac_prev=includedir ;;
2272
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
2273
| --includ=* | --inclu=* | --incl=* | --inc=*)
2274
includedir="$ac_optarg" ;;
2276
-infodir | --infodir | --infodi | --infod | --info | --inf)
2278
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
2279
infodir="$ac_optarg" ;;
2281
-libdir | --libdir | --libdi | --libd)
2283
-libdir=* | --libdir=* | --libdi=* | --libd=*)
2284
libdir="$ac_optarg" ;;
2286
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
2287
| --libexe | --libex | --libe)
2288
ac_prev=libexecdir ;;
2289
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
2290
| --libexe=* | --libex=* | --libe=*)
2291
libexecdir="$ac_optarg" ;;
2293
-localstatedir | --localstatedir | --localstatedi | --localstated \
2294
| --localstate | --localstat | --localsta | --localst \
2295
| --locals | --local | --loca | --loc | --lo)
2296
ac_prev=localstatedir ;;
2297
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
2298
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
2299
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
2300
localstatedir="$ac_optarg" ;;
2302
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
2304
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
2305
mandir="$ac_optarg" ;;
2307
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
2309
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
2310
prefix="$ac_optarg" ;;
2312
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
2314
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
2316
sbindir="$ac_optarg" ;;
2318
-sharedstatedir | --sharedstatedir | --sharedstatedi \
2319
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
2320
| --sharedst | --shareds | --shared | --share | --shar \
2322
ac_prev=sharedstatedir ;;
2323
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
2324
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
2325
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
2327
sharedstatedir="$ac_optarg" ;;
2329
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
2330
| --syscon | --sysco | --sysc | --sys | --sy)
2331
ac_prev=sysconfdir ;;
2332
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
2333
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
2334
sysconfdir="$ac_optarg" ;;
2339
# Be sure to have absolute paths.
2340
for ac_var in exec_prefix prefix
2342
eval ac_val=$`echo $ac_var`
2344
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
2345
*) as_fn_error "expected an absolute path for --$ac_var: $ac_val" "$LINENO" 5;;
2352
apr_ste_save_CPPFLAGS="$CPPFLAGS"
2355
apr_ste_save_CFLAGS="$CFLAGS"
2358
apr_ste_save_CXXFLAGS="$CXXFLAGS"
2361
apr_ste_save_LDFLAGS="$LDFLAGS"
2364
apr_ste_save_LIBS="$LIBS"
2367
apr_ste_save_INCLUDES="$INCLUDES"
2372
cat >config.nice<<EOF
2375
# Created by configure
2378
if test -n "$CC"; then
2379
echo "CC=\"$CC\"; export CC" >> config.nice
2381
if test -n "$CFLAGS"; then
2382
echo "CFLAGS=\"$CFLAGS\"; export CFLAGS" >> config.nice
2384
if test -n "$CPPFLAGS"; then
2385
echo "CPPFLAGS=\"$CPPFLAGS\"; export CPPFLAGS" >> config.nice
2387
if test -n "$LDFLAGS"; then
2388
echo "LDFLAGS=\"$LDFLAGS\"; export LDFLAGS" >> config.nice
2390
if test -n "$LTFLAGS"; then
2391
echo "LTFLAGS=\"$LTFLAGS\"; export LTFLAGS" >> config.nice
2393
if test -n "$LIBS"; then
2394
echo "LIBS=\"$LIBS\"; export LIBS" >> config.nice
2396
if test -n "$INCLUDES"; then
2397
echo "INCLUDES=\"$INCLUDES\"; export INCLUDES" >> config.nice
2399
if test -n "$NOTEST_CFLAGS"; then
2400
echo "NOTEST_CFLAGS=\"$NOTEST_CFLAGS\"; export NOTEST_CFLAGS" >> config.nice
2402
if test -n "$NOTEST_CPPFLAGS"; then
2403
echo "NOTEST_CPPFLAGS=\"$NOTEST_CPPFLAGS\"; export NOTEST_CPPFLAGS" >> config.nice
2405
if test -n "$NOTEST_LDFLAGS"; then
2406
echo "NOTEST_LDFLAGS=\"$NOTEST_LDFLAGS\"; export NOTEST_LDFLAGS" >> config.nice
2408
if test -n "$NOTEST_LIBS"; then
2409
echo "NOTEST_LIBS=\"$NOTEST_LIBS\"; export NOTEST_LIBS" >> config.nice
2412
# Retrieve command-line arguments.
2413
eval "set x $0 $ac_configure_args"
2421
while test "x${ap_cur}" != "x${ap_last}";
2424
ap_cur=`eval "echo ${ap_cur}"`
2428
echo "\"$arg\" \\" >> config.nice
2430
echo '"$@"' >> config.nice
2431
chmod +x config.nice
2437
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mkdir -p" >&5
2438
$as_echo_n "checking for working mkdir -p... " >&6; }
2439
if test "${ac_cv_mkdir_p+set}" = set; then :
2440
$as_echo_n "(cached) " >&6
2443
test -d conftestdir && rm -rf conftestdir
2444
mkdir -p conftestdir/somedir >/dev/null 2>&1
2445
if test -d conftestdir/somedir; then
2453
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mkdir_p" >&5
2454
$as_echo "$ac_cv_mkdir_p" >&6; }
2455
if test "$ac_cv_mkdir_p" = "yes"; then
2458
mkdir_p="$top_srcdir/build/mkdir.sh"
2465
# Make sure we can run config.sub.
2466
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2467
as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2469
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2470
$as_echo_n "checking build system type... " >&6; }
2471
if test "${ac_cv_build+set}" = set; then :
2472
$as_echo_n "(cached) " >&6
2474
ac_build_alias=$build_alias
2475
test "x$ac_build_alias" = x &&
2476
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2477
test "x$ac_build_alias" = x &&
2478
as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2479
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2480
as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2483
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2484
$as_echo "$ac_cv_build" >&6; }
2485
case $ac_cv_build in
2487
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2490
ac_save_IFS=$IFS; IFS='-'
2496
# Remember, the first character of IFS is used to create $*,
2497
# except with old shells:
2500
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2503
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2504
$as_echo_n "checking host system type... " >&6; }
2505
if test "${ac_cv_host+set}" = set; then :
2506
$as_echo_n "(cached) " >&6
2508
if test "x$host_alias" = x; then
2509
ac_cv_host=$ac_cv_build
2511
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2512
as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2516
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2517
$as_echo "$ac_cv_host" >&6; }
2520
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2523
ac_save_IFS=$IFS; IFS='-'
2529
# Remember, the first character of IFS is used to create $*,
2530
# except with old shells:
2533
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2536
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2537
$as_echo_n "checking target system type... " >&6; }
2538
if test "${ac_cv_target+set}" = set; then :
2539
$as_echo_n "(cached) " >&6
2541
if test "x$target_alias" = x; then
2542
ac_cv_target=$ac_cv_host
2544
ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2545
as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2549
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2550
$as_echo "$ac_cv_target" >&6; }
2551
case $ac_cv_target in
2553
*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2555
target=$ac_cv_target
2556
ac_save_IFS=$IFS; IFS='-'
2562
# Remember, the first character of IFS is used to create $*,
2563
# except with old shells:
2566
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2569
# The aliases save the names the user supplied, while $host etc.
2570
# will get canonicalized.
2571
test -n "$target_alias" &&
2572
test "$program_prefix$program_suffix$program_transform_name" = \
2574
program_prefix=${target_alias}-
2577
orig_prefix="$prefix"
2579
echo $ac_n "${nl}Configuring Apache Portable Runtime library...${nl}"
2584
if test "$target_os" = "os2-emx"; then
2585
# Scripts don't pass test -x on OS/2
2591
acceptable_majors="0 1 2"
2593
apr_temp_acceptable_apr_config=""
2594
for apr_temp_major in $acceptable_majors
2596
case $apr_temp_major in
2598
apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config"
2601
apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config"
2606
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5
2607
$as_echo_n "checking for APR... " >&6; }
2609
# Check whether --with-apr was given.
2610
if test "${with_apr+set}" = set; then :
2612
if test "$withval" = "no" || test "$withval" = "yes"; then
2613
as_fn_error "--with-apr requires a directory or file to be provided" "$LINENO" 5
2616
for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
2618
for lookdir in "$withval/bin" "$withval"
2620
if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
2621
apr_config="$lookdir/$apr_temp_apr_config_file"
2629
if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
2630
apr_config="$withval"
2634
if test "$apr_found" != "yes"; then
2635
as_fn_error "the --with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file." "$LINENO" 5
2640
if test -n "1" && test "1" = "1"; then
2641
for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
2643
if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then
2644
apr_config="$apr_temp_apr_config_file"
2649
for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do
2650
if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then
2651
apr_config="$lookdir/bin/$apr_temp_apr_config_file"
2660
if test "$apr_found" = "no" && test -d ""$srcdir/apr""; then
2661
apr_temp_abs_srcdir="`cd "$srcdir/apr" && pwd`"
2662
apr_found="reconfig"
2663
apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \""$srcdir/apr"/include/apr_version.h\"`"
2664
case $apr_bundled_major in
2666
as_fn_error "failed to find major version of bundled APR" "$LINENO" 5
2669
apr_temp_apr_config_file="apr-config"
2672
apr_temp_apr_config_file="apr-$apr_bundled_major-config"
2675
if test -n ""./apr""; then
2676
apr_config=""./apr"/$apr_temp_apr_config_file"
2678
apr_config=""$srcdir/apr"/$apr_temp_apr_config_file"
2685
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5
2686
$as_echo "$apr_found" >&6; }
2689
if test "$apr_found" = "no"; then
2690
as_fn_error "APR not found. Please read the documentation." "$LINENO" 5
2693
if test "$apr_found" = "reconfig"; then
2695
# save our work to this point; this allows the sub-package to use it
2696
cat >confcache <<\_ACEOF
2697
# This file is a shell script that caches the results of configure
2698
# tests run on this system so they can be shared between configure
2699
# scripts and configure runs, see configure's option --config-cache.
2700
# It is not useful on other systems. If it contains results you don't
2701
# want to keep, you may remove or edit it.
2703
# config.status only pays attention to the cache file if you give it
2704
# the --recheck option to rerun configure.
2706
# `ac_cv_env_foo' variables (set or unset) will be overridden when
2707
# loading this file, other *unset* `ac_cv_foo' will be assigned the
2712
# The following way of writing the cache mishandles newlines in values,
2713
# but we know of no workaround that is simple, portable, and efficient.
2714
# So, we kill variables containing newlines.
2715
# Ultrix sh set writes to stderr and can't be redirected directly,
2716
# and sets the high bit in the cache file unless we assign to the vars.
2718
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
2719
eval ac_val=\$$ac_var
2723
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2724
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2727
_ | IFS | as_nl) ;; #(
2728
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2729
*) { eval $ac_var=; unset $ac_var;} ;;
2735
case $as_nl`(ac_space=' '; set) 2>&1` in #(
2736
*${as_nl}ac_space=\ *)
2737
# `set' does not quote correctly, so add quotes: double-quote
2738
# substitution turns \\\\ into \\, and sed turns \\ into \.
2741
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2744
# `set' quotes correctly as required by POSIX, so do not add quotes.
2745
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2754
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2756
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2758
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
2759
if test -w "$cache_file"; then
2760
test "x$cache_file" != "x/dev/null" &&
2761
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
2762
$as_echo "$as_me: updating cache $cache_file" >&6;}
2763
cat confcache >$cache_file
2765
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
2766
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
2771
echo "configuring package in apr now"
2773
apr_config_subdirs="apr"
2774
test -d apr || $mkdir_p apr
2775
ac_abs_srcdir=`(cd $srcdir/apr && pwd)`
2778
# A "../" for each directory in /$config_subdirs.
2779
ac_dots=`echo $apr_config_subdirs|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2781
# Make the cache file pathname absolute for the subdirs
2782
# required to correctly handle subdirs that might actually
2784
case "$cache_file" in
2785
/*) # already absolute
2786
ac_sub_cache_file=$cache_file ;;
2787
*) # Was relative path.
2788
ac_sub_cache_file="$ac_popdir/$cache_file" ;;
2794
for apr_configure_arg in $ac_configure_args
2796
case "$apr_configure_arg" in
2797
--enable-layout=*|\'--enable-layout=*)
2800
apr_configure_args="$apr_configure_args$apr_sep'$apr_configure_arg'"
2805
test "x$silent" = "xyes" && apr_configure_args="$apr_configure_args --silent"
2807
apr_configure_args="--disable-option-checking $apr_configure_args"
2809
if eval $SHELL $ac_abs_srcdir/configure $apr_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_abs_srcdir --prefix=$prefix --exec-prefix=$exec_prefix --libdir=$libdir --includedir=$includedir --bindir=$bindir --datadir=$datadir --with-installbuilddir=$installbuilddir
2811
echo "apr configured properly"
2813
echo "configure failed for apr"
2819
# grab any updates from the sub-package
2820
if test -r "$cache_file"; then
2821
# Some versions of bash will fail to source /dev/null (special files
2822
# actually), so we avoid doing that. DJGPP emulates it as a regular file.
2823
if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2824
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2825
$as_echo "$as_me: loading cache $cache_file" >&6;}
2827
[\\/]* | ?:[\\/]* ) . "$cache_file";;
2828
*) . "./$cache_file";;
2832
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2833
$as_echo "$as_me: creating cache $cache_file" >&6;}
2838
SERF_BUILD_SRCLIB_DIRS="apr $SERF_BUILD_SRCLIB_DIRS"
2839
SERF_CLEAN_SRCLIB_DIRS="$SERF_CLEAN_SRCLIB_DIRS apr"
2843
if test -z "$CC"; then
2844
test "x$silent" != "xyes" && echo " setting CC to \"`$apr_config --cc`\""
2845
CC="`$apr_config --cc`"
2849
if test -z "$CPP"; then
2850
test "x$silent" != "xyes" && echo " setting CPP to \"`$apr_config --cpp`\""
2851
CPP="`$apr_config --cpp`"
2855
if test -z "$APR_LIBTOOL"; then
2856
test "x$silent" != "xyes" && echo " setting APR_LIBTOOL to \"`$apr_config --apr-libtool`\""
2857
APR_LIBTOOL="`$apr_config --apr-libtool`"
2861
if test "x$CFLAGS" = "x"; then
2862
test "x$silent" != "xyes" && echo " setting CFLAGS to \"`$apr_config --cflags`\""
2863
CFLAGS="`$apr_config --cflags`"
2865
apr_addto_bugger="`$apr_config --cflags`"
2866
for i in $apr_addto_bugger; do
2867
apr_addto_duplicate="0"
2868
for j in $CFLAGS; do
2869
if test "x$i" = "x$j"; then
2870
apr_addto_duplicate="1"
2874
if test $apr_addto_duplicate = "0"; then
2875
test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
2882
if test "x$CPPFLAGS" = "x"; then
2883
test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"`$apr_config --cppflags`\""
2884
CPPFLAGS="`$apr_config --cppflags`"
2886
apr_addto_bugger="`$apr_config --cppflags`"
2887
for i in $apr_addto_bugger; do
2888
apr_addto_duplicate="0"
2889
for j in $CPPFLAGS; do
2890
if test "x$i" = "x$j"; then
2891
apr_addto_duplicate="1"
2895
if test $apr_addto_duplicate = "0"; then
2896
test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
2897
CPPFLAGS="$CPPFLAGS $i"
2903
if test "x$LDFLAGS" = "x"; then
2904
test "x$silent" != "xyes" && echo " setting LDFLAGS to \"`$apr_config --ldflags`\""
2905
LDFLAGS="`$apr_config --ldflags`"
2907
apr_addto_bugger="`$apr_config --ldflags`"
2908
for i in $apr_addto_bugger; do
2909
apr_addto_duplicate="0"
2910
for j in $LDFLAGS; do
2911
if test "x$i" = "x$j"; then
2912
apr_addto_duplicate="1"
2916
if test $apr_addto_duplicate = "0"; then
2917
test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
2918
LDFLAGS="$LDFLAGS $i"
2923
SHLIBPATH_VAR=`$apr_config --shlib-path-var`
2924
APR_BINDIR=`$apr_config --bindir`
2925
APR_INCLUDES=`$apr_config --includes`
2926
APR_VERSION=`$apr_config --version`
2927
APR_CONFIG="$apr_config"
2930
if test -z "$LTFLAGS"; then
2931
test "x$silent" != "xyes" && echo " setting LTFLAGS to \""--silent"\""
2932
LTFLAGS=""--silent""
2943
APR_VERSION_MAJOR="`echo \"$APR_VERSION\" | sed 's,\..*,,'`"
2944
APR_VERSION_NUM="`echo \"$APR_VERSION\" | \
2945
sed -e 's/[^0-9\.].*$//' \
2946
-e 's/\.\([0-9]\)$/.0\1/' \
2947
-e 's/\.\([0-9][0-9]\)$/.0\1/' \
2948
-e 's/\.\([0-9]\)\./0\1/; s/\.//g;'`"
2950
if test "$APR_VERSION_NUM" -ge "200000"; then
2963
echo $ac_n "${nl}Configuring Apache Portable Runtime Utility library...${nl}"
2969
if test "$target_os" = "os2-emx"; then
2970
# Scripts don't pass test -x on OS/2
2976
acceptable_majors="$APR_VERSION_MAJOR"
2978
apu_temp_acceptable_apu_config=""
2979
for apu_temp_major in $acceptable_majors
2981
case $apu_temp_major in
2983
apu_temp_acceptable_apu_config="$apu_temp_acceptable_apu_config apu-config"
2986
apu_temp_acceptable_apu_config="$apu_temp_acceptable_apu_config apu-$apu_temp_major-config"
2991
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR-util" >&5
2992
$as_echo_n "checking for APR-util... " >&6; }
2994
# Check whether --with-apr-util was given.
2995
if test "${with_apr_util+set}" = set; then :
2996
withval=$with_apr_util;
2997
if test "$withval" = "no" || test "$withval" = "yes"; then
2998
as_fn_error "--with-apr-util requires a directory or file to be provided" "$LINENO" 5
3001
for apu_temp_apu_config_file in $apu_temp_acceptable_apu_config
3003
for lookdir in "$withval/bin" "$withval"
3005
if $TEST_X "$lookdir/$apu_temp_apu_config_file"; then
3006
apu_config="$lookdir/$apu_temp_apu_config_file"
3014
if test "$apu_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
3015
apu_config="$withval"
3019
if test "$apu_found" != "yes"; then
3020
as_fn_error "the --with-apr-util parameter is incorrect. It must specify an install prefix, a build directory, or an apu-config file." "$LINENO" 5
3025
if test -n "1" && test "1" = "1"; then
3026
for apu_temp_apu_config_file in $apu_temp_acceptable_apu_config
3028
if $apu_temp_apu_config_file --help > /dev/null 2>&1 ; then
3029
apu_config="$apu_temp_apu_config_file"
3034
for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do
3035
if $TEST_X "$lookdir/bin/$apu_temp_apu_config_file"; then
3036
apu_config="$lookdir/bin/$apu_temp_apu_config_file"
3045
if test "$apu_found" = "no" && test -d ""$srcdir/apr-util""; then
3046
apu_temp_abs_srcdir="`cd "$srcdir/apr-util" && pwd`"
3047
apu_found="reconfig"
3048
apu_bundled_major="`sed -n '/#define.*APU_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \""$srcdir/apr-util"/include/apu_version.h\"`"
3049
case $apu_bundled_major in
3051
as_fn_error "failed to find major version of bundled APU" "$LINENO" 5
3054
apu_temp_apu_config_file="apu-config"
3057
apu_temp_apu_config_file="apu-$apu_bundled_major-config"
3060
if test -n ""./apr-util""; then
3061
apu_config=""./apr-util"/$apu_temp_apu_config_file"
3063
apu_config=""$srcdir/apr-util"/$apu_temp_apu_config_file"
3070
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_found" >&5
3071
$as_echo "$apu_found" >&6; }
3075
if test "$apu_found" = "no"; then
3076
as_fn_error "APR-util not found. Please read the documentation." "$LINENO" 5
3079
# Catch some misconfigurations:
3080
case ${apr_found}.${apu_found} in
3082
as_fn_error "Cannot use an external APR-util with the bundled APR" "$LINENO" 5
3085
as_fn_error "Cannot use an external APR with the bundled APR-util" "$LINENO" 5
3089
if test "$apu_found" = "reconfig"; then
3091
# save our work to this point; this allows the sub-package to use it
3092
cat >confcache <<\_ACEOF
3093
# This file is a shell script that caches the results of configure
3094
# tests run on this system so they can be shared between configure
3095
# scripts and configure runs, see configure's option --config-cache.
3096
# It is not useful on other systems. If it contains results you don't
3097
# want to keep, you may remove or edit it.
3099
# config.status only pays attention to the cache file if you give it
3100
# the --recheck option to rerun configure.
3102
# `ac_cv_env_foo' variables (set or unset) will be overridden when
3103
# loading this file, other *unset* `ac_cv_foo' will be assigned the
3108
# The following way of writing the cache mishandles newlines in values,
3109
# but we know of no workaround that is simple, portable, and efficient.
3110
# So, we kill variables containing newlines.
3111
# Ultrix sh set writes to stderr and can't be redirected directly,
3112
# and sets the high bit in the cache file unless we assign to the vars.
3114
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3115
eval ac_val=\$$ac_var
3119
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3120
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3123
_ | IFS | as_nl) ;; #(
3124
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3125
*) { eval $ac_var=; unset $ac_var;} ;;
3131
case $as_nl`(ac_space=' '; set) 2>&1` in #(
3132
*${as_nl}ac_space=\ *)
3133
# `set' does not quote correctly, so add quotes: double-quote
3134
# substitution turns \\\\ into \\, and sed turns \\ into \.
3137
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3140
# `set' quotes correctly as required by POSIX, so do not add quotes.
3141
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3150
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3152
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3154
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3155
if test -w "$cache_file"; then
3156
test "x$cache_file" != "x/dev/null" &&
3157
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3158
$as_echo "$as_me: updating cache $cache_file" >&6;}
3159
cat confcache >$cache_file
3161
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3162
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3167
echo "configuring package in apr-util now"
3169
apr_config_subdirs="apr-util"
3170
test -d apr-util || $mkdir_p apr-util
3171
ac_abs_srcdir=`(cd $srcdir/apr-util && pwd)`
3174
# A "../" for each directory in /$config_subdirs.
3175
ac_dots=`echo $apr_config_subdirs|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3177
# Make the cache file pathname absolute for the subdirs
3178
# required to correctly handle subdirs that might actually
3180
case "$cache_file" in
3181
/*) # already absolute
3182
ac_sub_cache_file=$cache_file ;;
3183
*) # Was relative path.
3184
ac_sub_cache_file="$ac_popdir/$cache_file" ;;
3190
for apr_configure_arg in $ac_configure_args
3192
case "$apr_configure_arg" in
3193
--enable-layout=*|\'--enable-layout=*)
3196
apr_configure_args="$apr_configure_args$apr_sep'$apr_configure_arg'"
3201
test "x$silent" = "xyes" && apr_configure_args="$apr_configure_args --silent"
3203
apr_configure_args="--disable-option-checking $apr_configure_args"
3205
if eval $SHELL $ac_abs_srcdir/configure $apr_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_abs_srcdir --with-apr=../apr --prefix=$prefix --exec-prefix=$exec_prefix --libdir=$libdir --includedir=$includedir --bindir=$bindir
3207
echo "apr-util configured properly"
3209
echo "configure failed for apr-util"
3215
# grab any updates from the sub-package
3216
if test -r "$cache_file"; then
3217
# Some versions of bash will fail to source /dev/null (special files
3218
# actually), so we avoid doing that. DJGPP emulates it as a regular file.
3219
if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3220
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3221
$as_echo "$as_me: loading cache $cache_file" >&6;}
3223
[\\/]* | ?:[\\/]* ) . "$cache_file";;
3224
*) . "./$cache_file";;
3228
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3229
$as_echo "$as_me: creating cache $cache_file" >&6;}
3234
SERF_BUILD_SRCLIB_DIRS="$SERF_BUILD_SRCLIB_DIRS apr-util"
3235
SERF_CLEAN_SRCLIB_DIRS="apr-util $SERF_CLEAN_SRCLIB_DIRS"
3239
if test "x$LDFLAGS" = "x"; then
3240
test "x$silent" != "xyes" && echo " setting LDFLAGS to \"`$apu_config --ldflags`\""
3241
LDFLAGS="`$apu_config --ldflags`"
3243
apr_addto_bugger="`$apu_config --ldflags`"
3244
for i in $apr_addto_bugger; do
3245
apr_addto_duplicate="0"
3246
for j in $LDFLAGS; do
3247
if test "x$i" = "x$j"; then
3248
apr_addto_duplicate="1"
3252
if test $apr_addto_duplicate = "0"; then
3253
test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
3254
LDFLAGS="$LDFLAGS $i"
3259
APU_BINDIR=`$apu_config --bindir`
3260
APU_INCLUDES=`$apu_config --includes`
3261
APU_VERSION=`$apu_config --version`
3262
APU_CONFIG="$APU_BINDIR/apu-`echo ${APU_VERSION} | sed 's,\..*,,'`-config"
3271
ac_cpp='$CPP $CPPFLAGS'
3272
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3273
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3274
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3275
if test -n "$ac_tool_prefix"; then
3276
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3277
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3278
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3279
$as_echo_n "checking for $ac_word... " >&6; }
3280
if test "${ac_cv_prog_CC+set}" = set; then :
3281
$as_echo_n "(cached) " >&6
3283
if test -n "$CC"; then
3284
ac_cv_prog_CC="$CC" # Let the user override the test.
3286
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290
test -z "$as_dir" && as_dir=.
3291
for ac_exec_ext in '' $ac_executable_extensions; do
3292
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3293
ac_cv_prog_CC="${ac_tool_prefix}gcc"
3294
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3304
if test -n "$CC"; then
3305
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3306
$as_echo "$CC" >&6; }
3308
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3309
$as_echo "no" >&6; }
3314
if test -z "$ac_cv_prog_CC"; then
3316
# Extract the first word of "gcc", so it can be a program name with args.
3317
set dummy gcc; ac_word=$2
3318
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3319
$as_echo_n "checking for $ac_word... " >&6; }
3320
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3321
$as_echo_n "(cached) " >&6
3323
if test -n "$ac_ct_CC"; then
3324
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3326
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3330
test -z "$as_dir" && as_dir=.
3331
for ac_exec_ext in '' $ac_executable_extensions; do
3332
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3333
ac_cv_prog_ac_ct_CC="gcc"
3334
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3343
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3344
if test -n "$ac_ct_CC"; then
3345
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3346
$as_echo "$ac_ct_CC" >&6; }
3348
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3349
$as_echo "no" >&6; }
3352
if test "x$ac_ct_CC" = x; then
3355
case $cross_compiling:$ac_tool_warned in
3357
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3358
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3359
ac_tool_warned=yes ;;
3367
if test -z "$CC"; then
3368
if test -n "$ac_tool_prefix"; then
3369
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3370
set dummy ${ac_tool_prefix}cc; ac_word=$2
3371
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3372
$as_echo_n "checking for $ac_word... " >&6; }
3373
if test "${ac_cv_prog_CC+set}" = set; then :
3374
$as_echo_n "(cached) " >&6
3376
if test -n "$CC"; then
3377
ac_cv_prog_CC="$CC" # Let the user override the test.
3379
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3383
test -z "$as_dir" && as_dir=.
3384
for ac_exec_ext in '' $ac_executable_extensions; do
3385
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3386
ac_cv_prog_CC="${ac_tool_prefix}cc"
3387
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3397
if test -n "$CC"; then
3398
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3399
$as_echo "$CC" >&6; }
3401
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3402
$as_echo "no" >&6; }
3408
if test -z "$CC"; then
3409
# Extract the first word of "cc", so it can be a program name with args.
3410
set dummy cc; ac_word=$2
3411
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3412
$as_echo_n "checking for $ac_word... " >&6; }
3413
if test "${ac_cv_prog_CC+set}" = set; then :
3414
$as_echo_n "(cached) " >&6
3416
if test -n "$CC"; then
3417
ac_cv_prog_CC="$CC" # Let the user override the test.
3420
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3424
test -z "$as_dir" && as_dir=.
3425
for ac_exec_ext in '' $ac_executable_extensions; do
3426
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3427
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3428
ac_prog_rejected=yes
3432
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3439
if test $ac_prog_rejected = yes; then
3440
# We found a bogon in the path, so make sure we never use it.
3441
set dummy $ac_cv_prog_CC
3443
if test $# != 0; then
3444
# We chose a different compiler from the bogus one.
3445
# However, it has the same basename, so the bogon will be chosen
3446
# first if we set CC to just the basename; use the full file name.
3448
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3454
if test -n "$CC"; then
3455
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3456
$as_echo "$CC" >&6; }
3458
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3459
$as_echo "no" >&6; }
3464
if test -z "$CC"; then
3465
if test -n "$ac_tool_prefix"; then
3466
for ac_prog in cl.exe
3468
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3469
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3470
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3471
$as_echo_n "checking for $ac_word... " >&6; }
3472
if test "${ac_cv_prog_CC+set}" = set; then :
3473
$as_echo_n "(cached) " >&6
3475
if test -n "$CC"; then
3476
ac_cv_prog_CC="$CC" # Let the user override the test.
3478
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3482
test -z "$as_dir" && as_dir=.
3483
for ac_exec_ext in '' $ac_executable_extensions; do
3484
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3485
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3486
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3496
if test -n "$CC"; then
3497
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3498
$as_echo "$CC" >&6; }
3500
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3501
$as_echo "no" >&6; }
3505
test -n "$CC" && break
3508
if test -z "$CC"; then
3510
for ac_prog in cl.exe
3512
# Extract the first word of "$ac_prog", so it can be a program name with args.
3513
set dummy $ac_prog; ac_word=$2
3514
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3515
$as_echo_n "checking for $ac_word... " >&6; }
3516
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3517
$as_echo_n "(cached) " >&6
3519
if test -n "$ac_ct_CC"; then
3520
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3522
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526
test -z "$as_dir" && as_dir=.
3527
for ac_exec_ext in '' $ac_executable_extensions; do
3528
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3529
ac_cv_prog_ac_ct_CC="$ac_prog"
3530
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3539
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3540
if test -n "$ac_ct_CC"; then
3541
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3542
$as_echo "$ac_ct_CC" >&6; }
3544
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3545
$as_echo "no" >&6; }
3549
test -n "$ac_ct_CC" && break
3552
if test "x$ac_ct_CC" = x; then
3555
case $cross_compiling:$ac_tool_warned in
3557
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3558
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3559
ac_tool_warned=yes ;;
3568
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3569
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3570
as_fn_error "no acceptable C compiler found in \$PATH
3571
See \`config.log' for more details." "$LINENO" 5; }
3573
# Provide some information about the compiler.
3574
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3577
for ac_option in --version -v -V -qversion; do
3578
{ { ac_try="$ac_compiler $ac_option >&5"
3580
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3581
*) ac_try_echo=$ac_try;;
3583
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3584
$as_echo "$ac_try_echo"; } >&5
3585
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
3587
if test -s conftest.err; then
3589
... rest of stderr output deleted ...
3590
10q' conftest.err >conftest.er1
3591
cat conftest.er1 >&5
3593
rm -f conftest.er1 conftest.err
3594
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3595
test $ac_status = 0; }
3598
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3599
/* end confdefs.h. */
3609
ac_clean_files_save=$ac_clean_files
3610
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3611
# Try to create an executable without -o first, disregard a.out.
3612
# It will help us diagnose broken compilers, and finding out an intuition
3614
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3615
$as_echo_n "checking whether the C compiler works... " >&6; }
3616
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3618
# The possible output files:
3619
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3622
for ac_file in $ac_files
3625
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3626
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
3631
if { { ac_try="$ac_link_default"
3633
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3634
*) ac_try_echo=$ac_try;;
3636
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3637
$as_echo "$ac_try_echo"; } >&5
3638
(eval "$ac_link_default") 2>&5
3640
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3641
test $ac_status = 0; }; then :
3642
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3643
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3644
# in a Makefile. We should not override ac_cv_exeext if it was cached,
3645
# so that the user can short-circuit this test for compilers unknown to
3647
for ac_file in $ac_files ''
3649
test -f "$ac_file" || continue
3651
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3654
# We found the default executable, but exeext='' is most
3658
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3660
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3662
# We set ac_cv_exeext here because the later test for it is not
3663
# safe: cross compilers may not add the suffix if given an `-o'
3664
# argument, so we may need to know it at that point already.
3665
# Even if this section looks crufty: it has the advantage of
3672
test "$ac_cv_exeext" = no && ac_cv_exeext=
3677
if test -z "$ac_file"; then :
3678
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3679
$as_echo "no" >&6; }
3680
$as_echo "$as_me: failed program was:" >&5
3681
sed 's/^/| /' conftest.$ac_ext >&5
3683
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3684
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3685
{ as_fn_set_status 77
3686
as_fn_error "C compiler cannot create executables
3687
See \`config.log' for more details." "$LINENO" 5; }; }
3689
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3690
$as_echo "yes" >&6; }
3692
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3693
$as_echo_n "checking for C compiler default output file name... " >&6; }
3694
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3695
$as_echo "$ac_file" >&6; }
3696
ac_exeext=$ac_cv_exeext
3698
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3699
ac_clean_files=$ac_clean_files_save
3700
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3701
$as_echo_n "checking for suffix of executables... " >&6; }
3702
if { { ac_try="$ac_link"
3704
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3705
*) ac_try_echo=$ac_try;;
3707
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3708
$as_echo "$ac_try_echo"; } >&5
3709
(eval "$ac_link") 2>&5
3711
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3712
test $ac_status = 0; }; then :
3713
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3714
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3715
# work properly (i.e., refer to `conftest.exe'), while it won't with
3717
for ac_file in conftest.exe conftest conftest.*; do
3718
test -f "$ac_file" || continue
3720
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3721
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3727
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3728
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3729
as_fn_error "cannot compute suffix of executables: cannot compile and link
3730
See \`config.log' for more details." "$LINENO" 5; }
3732
rm -f conftest conftest$ac_cv_exeext
3733
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3734
$as_echo "$ac_cv_exeext" >&6; }
3736
rm -f conftest.$ac_ext
3737
EXEEXT=$ac_cv_exeext
3739
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740
/* end confdefs.h. */
3745
FILE *f = fopen ("conftest.out", "w");
3746
return ferror (f) || fclose (f) != 0;
3752
ac_clean_files="$ac_clean_files conftest.out"
3753
# Check that the compiler produces executables we can run. If not, either
3754
# the compiler is broken, or we cross compile.
3755
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3756
$as_echo_n "checking whether we are cross compiling... " >&6; }
3757
if test "$cross_compiling" != yes; then
3758
{ { ac_try="$ac_link"
3760
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3761
*) ac_try_echo=$ac_try;;
3763
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3764
$as_echo "$ac_try_echo"; } >&5
3765
(eval "$ac_link") 2>&5
3767
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3768
test $ac_status = 0; }
3769
if { ac_try='./conftest$ac_cv_exeext'
3770
{ { case "(($ac_try" in
3771
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3772
*) ac_try_echo=$ac_try;;
3774
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3775
$as_echo "$ac_try_echo"; } >&5
3776
(eval "$ac_try") 2>&5
3778
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3779
test $ac_status = 0; }; }; then
3782
if test "$cross_compiling" = maybe; then
3785
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3786
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3787
as_fn_error "cannot run C compiled programs.
3788
If you meant to cross compile, use \`--host'.
3789
See \`config.log' for more details." "$LINENO" 5; }
3793
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3794
$as_echo "$cross_compiling" >&6; }
3796
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3797
ac_clean_files=$ac_clean_files_save
3798
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3799
$as_echo_n "checking for suffix of object files... " >&6; }
3800
if test "${ac_cv_objext+set}" = set; then :
3801
$as_echo_n "(cached) " >&6
3803
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3804
/* end confdefs.h. */
3814
rm -f conftest.o conftest.obj
3815
if { { ac_try="$ac_compile"
3817
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3818
*) ac_try_echo=$ac_try;;
3820
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3821
$as_echo "$ac_try_echo"; } >&5
3822
(eval "$ac_compile") 2>&5
3824
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3825
test $ac_status = 0; }; then :
3826
for ac_file in conftest.o conftest.obj conftest.*; do
3827
test -f "$ac_file" || continue;
3829
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3830
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3835
$as_echo "$as_me: failed program was:" >&5
3836
sed 's/^/| /' conftest.$ac_ext >&5
3838
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3839
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3840
as_fn_error "cannot compute suffix of object files: cannot compile
3841
See \`config.log' for more details." "$LINENO" 5; }
3843
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3845
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3846
$as_echo "$ac_cv_objext" >&6; }
3847
OBJEXT=$ac_cv_objext
3849
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3850
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3851
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3852
$as_echo_n "(cached) " >&6
3854
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3855
/* end confdefs.h. */
3868
if ac_fn_c_try_compile "$LINENO"; then :
3873
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3874
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3877
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3878
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3879
if test $ac_compiler_gnu = yes; then
3884
ac_test_CFLAGS=${CFLAGS+set}
3885
ac_save_CFLAGS=$CFLAGS
3886
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3887
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3888
if test "${ac_cv_prog_cc_g+set}" = set; then :
3889
$as_echo_n "(cached) " >&6
3891
ac_save_c_werror_flag=$ac_c_werror_flag
3892
ac_c_werror_flag=yes
3895
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3896
/* end confdefs.h. */
3906
if ac_fn_c_try_compile "$LINENO"; then :
3910
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3911
/* end confdefs.h. */
3921
if ac_fn_c_try_compile "$LINENO"; then :
3924
ac_c_werror_flag=$ac_save_c_werror_flag
3926
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3927
/* end confdefs.h. */
3937
if ac_fn_c_try_compile "$LINENO"; then :
3940
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3942
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3944
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3945
ac_c_werror_flag=$ac_save_c_werror_flag
3947
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3948
$as_echo "$ac_cv_prog_cc_g" >&6; }
3949
if test "$ac_test_CFLAGS" = set; then
3950
CFLAGS=$ac_save_CFLAGS
3951
elif test $ac_cv_prog_cc_g = yes; then
3952
if test "$GCC" = yes; then
3958
if test "$GCC" = yes; then
3964
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3965
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3966
if test "${ac_cv_prog_cc_c89+set}" = set; then :
3967
$as_echo_n "(cached) " >&6
3969
ac_cv_prog_cc_c89=no
3971
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3972
/* end confdefs.h. */
3975
#include <sys/types.h>
3976
#include <sys/stat.h>
3977
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3978
struct buf { int x; };
3979
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3980
static char *e (p, i)
3986
static char *f (char * (*g) (char **, int), char **p, ...)
3991
s = g (p, va_arg (v,int));
3996
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3997
function prototypes and stuff, but not '\xHH' hex character constants.
3998
These don't provoke an error unfortunately, instead are silently treated
3999
as 'x'. The following induces an error, until -std is added to get
4000
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4001
array size at least. It's necessary to write '\x00'==0 to get something
4002
that's true only with -std. */
4003
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4005
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4006
inside strings and character constants. */
4008
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4010
int test (int i, double x);
4011
struct s1 {int (*f) (int a);};
4012
struct s2 {int (*f) (double a);};
4013
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4019
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4024
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4025
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4027
CC="$ac_save_CC $ac_arg"
4028
if ac_fn_c_try_compile "$LINENO"; then :
4029
ac_cv_prog_cc_c89=$ac_arg
4031
rm -f core conftest.err conftest.$ac_objext
4032
test "x$ac_cv_prog_cc_c89" != "xno" && break
4034
rm -f conftest.$ac_ext
4039
case "x$ac_cv_prog_cc_c89" in
4041
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4042
$as_echo "none needed" >&6; } ;;
4044
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4045
$as_echo "unsupported" >&6; } ;;
4047
CC="$CC $ac_cv_prog_cc_c89"
4048
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4049
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4051
if test "x$ac_cv_prog_cc_c89" != xno; then :
4056
ac_cpp='$CPP $CPPFLAGS'
4057
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4058
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4059
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4062
ac_cpp='$CPP $CPPFLAGS'
4063
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4064
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4065
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4066
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4067
$as_echo_n "checking how to run the C preprocessor... " >&6; }
4068
# On Suns, sometimes $CPP names a directory.
4069
if test -n "$CPP" && test -d "$CPP"; then
4072
if test -z "$CPP"; then
4073
if test "${ac_cv_prog_CPP+set}" = set; then :
4074
$as_echo_n "(cached) " >&6
4076
# Double quotes because CPP needs to be expanded
4077
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4080
for ac_c_preproc_warn_flag in '' yes
4082
# Use a header file that comes with gcc, so configuring glibc
4083
# with a fresh cross-compiler works.
4084
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4085
# <limits.h> exists even on freestanding compilers.
4086
# On the NeXT, cc -E runs the code through the compiler's parser,
4087
# not just through cpp. "Syntax error" is here to catch this case.
4088
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4089
/* end confdefs.h. */
4091
# include <limits.h>
4093
# include <assert.h>
4097
if ac_fn_c_try_cpp "$LINENO"; then :
4100
# Broken: fails on valid input.
4103
rm -f conftest.err conftest.$ac_ext
4105
# OK, works on sane cases. Now check whether nonexistent headers
4106
# can be detected and how.
4107
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4108
/* end confdefs.h. */
4109
#include <ac_nonexistent.h>
4111
if ac_fn_c_try_cpp "$LINENO"; then :
4112
# Broken: success on invalid input.
4115
# Passes both tests.
4119
rm -f conftest.err conftest.$ac_ext
4122
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4123
rm -f conftest.err conftest.$ac_ext
4124
if $ac_preproc_ok; then :
4136
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4137
$as_echo "$CPP" >&6; }
4139
for ac_c_preproc_warn_flag in '' yes
4141
# Use a header file that comes with gcc, so configuring glibc
4142
# with a fresh cross-compiler works.
4143
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4144
# <limits.h> exists even on freestanding compilers.
4145
# On the NeXT, cc -E runs the code through the compiler's parser,
4146
# not just through cpp. "Syntax error" is here to catch this case.
4147
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148
/* end confdefs.h. */
4150
# include <limits.h>
4152
# include <assert.h>
4156
if ac_fn_c_try_cpp "$LINENO"; then :
4159
# Broken: fails on valid input.
4162
rm -f conftest.err conftest.$ac_ext
4164
# OK, works on sane cases. Now check whether nonexistent headers
4165
# can be detected and how.
4166
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4167
/* end confdefs.h. */
4168
#include <ac_nonexistent.h>
4170
if ac_fn_c_try_cpp "$LINENO"; then :
4171
# Broken: success on invalid input.
4174
# Passes both tests.
4178
rm -f conftest.err conftest.$ac_ext
4181
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4182
rm -f conftest.err conftest.$ac_ext
4183
if $ac_preproc_ok; then :
4186
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4187
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4188
as_fn_error "C preprocessor \"$CPP\" fails sanity check
4189
See \`config.log' for more details." "$LINENO" 5; }
4193
ac_cpp='$CPP $CPPFLAGS'
4194
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4195
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4196
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4198
# Find a good install program. We prefer a C program (faster),
4199
# so one script is as good as another. But avoid the broken or
4200
# incompatible versions:
4201
# SysV /etc/install, /usr/sbin/install
4202
# SunOS /usr/etc/install
4203
# IRIX /sbin/install
4205
# AmigaOS /C/install, which installs bootblocks on floppy discs
4206
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4207
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4208
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4209
# OS/2's system install, which has a completely different semantic
4210
# ./install, which can be erroneously created by make from ./install.sh.
4211
# Reject install programs that cannot install multiple files.
4212
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4213
$as_echo_n "checking for a BSD-compatible install... " >&6; }
4214
if test -z "$INSTALL"; then
4215
if test "${ac_cv_path_install+set}" = set; then :
4216
$as_echo_n "(cached) " >&6
4218
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4222
test -z "$as_dir" && as_dir=.
4223
# Account for people who put trailing slashes in PATH elements.
4224
case $as_dir/ in #((
4225
./ | .// | /[cC]/* | \
4226
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4227
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4230
# OSF1 and SCO ODT 3.0 have their own names for install.
4231
# Don't use installbsd from OSF since it installs stuff as root
4233
for ac_prog in ginstall scoinst install; do
4234
for ac_exec_ext in '' $ac_executable_extensions; do
4235
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4236
if test $ac_prog = install &&
4237
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4238
# AIX install. It has an incompatible calling convention.
4240
elif test $ac_prog = install &&
4241
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4242
# program-specific install script used by HP pwplus--don't use.
4245
rm -rf conftest.one conftest.two conftest.dir
4246
echo one > conftest.one
4247
echo two > conftest.two
4249
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4250
test -s conftest.one && test -s conftest.two &&
4251
test -s conftest.dir/conftest.one &&
4252
test -s conftest.dir/conftest.two
4254
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4267
rm -rf conftest.one conftest.two conftest.dir
4270
if test "${ac_cv_path_install+set}" = set; then
4271
INSTALL=$ac_cv_path_install
4273
# As a last resort, use the slow shell script. Don't cache a
4274
# value for INSTALL within a source directory, because that will
4275
# break other packages using the cache if that directory is
4276
# removed, or if the value is a relative name.
4277
INSTALL=$ac_install_sh
4280
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4281
$as_echo "$INSTALL" >&6; }
4283
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4284
# It thinks the first close brace ends the variable substitution.
4285
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4287
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4289
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4292
if test "x${cache_file}" = "x/dev/null"; then
4293
# Likewise, ensure that CC and CPP are passed through to the pcre
4294
# configure script iff caching is disabled (the autoconf 2.5x default).
4295
export CC; export CPP
4298
echo $ac_n "Configuring Serf...${nl}"
4300
abs_srcdir=`(cd $srcdir && pwd)`
4303
get_version="$abs_srcdir/build/get-version.sh"
4304
version_hdr="$abs_srcdir/serf.h"
4305
SERF_MAJOR_VERSION="`$get_version major $version_hdr SERF`"
4306
SERF_DOTTED_VERSION="`$get_version all $version_hdr SERF`"
4315
# Check whether --with-openssl was given.
4316
if test "${with_openssl+set}" = set; then :
4317
withval=$with_openssl;
4318
if test "$withval" = "yes"; then
4319
as_fn_error "--with-openssl requires a path" "$LINENO" 5
4321
openssl_prefix=$withval
4323
if test "x$openssl_prefix" != "x" -a ! -d "$openssl_prefix"; then
4324
as_fn_error "'--with-openssl requires a path to a directory'" "$LINENO" 5
4328
if test "x$CPPFLAGS" = "x"; then
4329
test "x$silent" != "xyes" && echo " setting CPPFLAGS to \""-I${openssl_prefix}/include"\""
4330
CPPFLAGS=""-I${openssl_prefix}/include""
4332
apr_addto_bugger=""-I${openssl_prefix}/include""
4333
for i in $apr_addto_bugger; do
4334
apr_addto_duplicate="0"
4335
for j in $CPPFLAGS; do
4336
if test "x$i" = "x$j"; then
4337
apr_addto_duplicate="1"
4341
if test $apr_addto_duplicate = "0"; then
4342
test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
4343
CPPFLAGS="$CPPFLAGS $i"
4348
if test -e "${openssl_prefix}/Makefile"; then
4350
if test "x$LDFLAGS" = "x"; then
4351
test "x$silent" != "xyes" && echo " setting LDFLAGS to \""-L${openssl_prefix}"\""
4352
LDFLAGS=""-L${openssl_prefix}""
4354
apr_addto_bugger=""-L${openssl_prefix}""
4355
for i in $apr_addto_bugger; do
4356
apr_addto_duplicate="0"
4357
for j in $LDFLAGS; do
4358
if test "x$i" = "x$j"; then
4359
apr_addto_duplicate="1"
4363
if test $apr_addto_duplicate = "0"; then
4364
test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
4365
LDFLAGS="$LDFLAGS $i"
4371
if test "x$LDFLAGS" = "x"; then
4372
test "x$silent" != "xyes" && echo " setting LDFLAGS to \""-R${openssl_prefix}"\""
4373
LDFLAGS=""-R${openssl_prefix}""
4375
apr_addto_bugger=""-R${openssl_prefix}""
4376
for i in $apr_addto_bugger; do
4377
apr_addto_duplicate="0"
4378
for j in $LDFLAGS; do
4379
if test "x$i" = "x$j"; then
4380
apr_addto_duplicate="1"
4384
if test $apr_addto_duplicate = "0"; then
4385
test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
4386
LDFLAGS="$LDFLAGS $i"
4393
if test "x$LDFLAGS" = "x"; then
4394
test "x$silent" != "xyes" && echo " setting LDFLAGS to \""-L${openssl_prefix}/lib"\""
4395
LDFLAGS=""-L${openssl_prefix}/lib""
4397
apr_addto_bugger=""-L${openssl_prefix}/lib""
4398
for i in $apr_addto_bugger; do
4399
apr_addto_duplicate="0"
4400
for j in $LDFLAGS; do
4401
if test "x$i" = "x$j"; then
4402
apr_addto_duplicate="1"
4406
if test $apr_addto_duplicate = "0"; then
4407
test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
4408
LDFLAGS="$LDFLAGS $i"
4414
if test "x$LDFLAGS" = "x"; then
4415
test "x$silent" != "xyes" && echo " setting LDFLAGS to \""-R${openssl_prefix}/lib"\""
4416
LDFLAGS=""-R${openssl_prefix}/lib""
4418
apr_addto_bugger=""-R${openssl_prefix}/lib""
4419
for i in $apr_addto_bugger; do
4420
apr_addto_duplicate="0"
4421
for j in $LDFLAGS; do
4422
if test "x$i" = "x$j"; then
4423
apr_addto_duplicate="1"
4427
if test $apr_addto_duplicate = "0"; then
4428
test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
4429
LDFLAGS="$LDFLAGS $i"
4442
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4443
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4444
if test "${ac_cv_path_GREP+set}" = set; then :
4445
$as_echo_n "(cached) " >&6
4447
if test -z "$GREP"; then
4448
ac_path_GREP_found=false
4449
# Loop through the user's path and test for each of PROGNAME-LIST
4450
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4454
test -z "$as_dir" && as_dir=.
4455
for ac_prog in grep ggrep; do
4456
for ac_exec_ext in '' $ac_executable_extensions; do
4457
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4458
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4459
# Check for GNU ac_path_GREP and select it if it is found.
4460
# Check for GNU $ac_path_GREP
4461
case `"$ac_path_GREP" --version 2>&1` in
4463
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4466
$as_echo_n 0123456789 >"conftest.in"
4469
cat "conftest.in" "conftest.in" >"conftest.tmp"
4470
mv "conftest.tmp" "conftest.in"
4471
cp "conftest.in" "conftest.nl"
4472
$as_echo 'GREP' >> "conftest.nl"
4473
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4474
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4475
as_fn_arith $ac_count + 1 && ac_count=$as_val
4476
if test $ac_count -gt ${ac_path_GREP_max-0}; then
4477
# Best one so far, save it but keep looking for a better one
4478
ac_cv_path_GREP="$ac_path_GREP"
4479
ac_path_GREP_max=$ac_count
4481
# 10*(2^10) chars as input seems more than enough
4482
test $ac_count -gt 10 && break
4484
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4487
$ac_path_GREP_found && break 3
4492
if test -z "$ac_cv_path_GREP"; then
4493
as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4496
ac_cv_path_GREP=$GREP
4500
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4501
$as_echo "$ac_cv_path_GREP" >&6; }
4502
GREP="$ac_cv_path_GREP"
4505
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4506
$as_echo_n "checking for egrep... " >&6; }
4507
if test "${ac_cv_path_EGREP+set}" = set; then :
4508
$as_echo_n "(cached) " >&6
4510
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4511
then ac_cv_path_EGREP="$GREP -E"
4513
if test -z "$EGREP"; then
4514
ac_path_EGREP_found=false
4515
# Loop through the user's path and test for each of PROGNAME-LIST
4516
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4517
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4520
test -z "$as_dir" && as_dir=.
4521
for ac_prog in egrep; do
4522
for ac_exec_ext in '' $ac_executable_extensions; do
4523
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4524
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4525
# Check for GNU ac_path_EGREP and select it if it is found.
4526
# Check for GNU $ac_path_EGREP
4527
case `"$ac_path_EGREP" --version 2>&1` in
4529
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4532
$as_echo_n 0123456789 >"conftest.in"
4535
cat "conftest.in" "conftest.in" >"conftest.tmp"
4536
mv "conftest.tmp" "conftest.in"
4537
cp "conftest.in" "conftest.nl"
4538
$as_echo 'EGREP' >> "conftest.nl"
4539
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4540
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4541
as_fn_arith $ac_count + 1 && ac_count=$as_val
4542
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4543
# Best one so far, save it but keep looking for a better one
4544
ac_cv_path_EGREP="$ac_path_EGREP"
4545
ac_path_EGREP_max=$ac_count
4547
# 10*(2^10) chars as input seems more than enough
4548
test $ac_count -gt 10 && break
4550
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4553
$ac_path_EGREP_found && break 3
4558
if test -z "$ac_cv_path_EGREP"; then
4559
as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4562
ac_cv_path_EGREP=$EGREP
4567
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4568
$as_echo "$ac_cv_path_EGREP" >&6; }
4569
EGREP="$ac_cv_path_EGREP"
4572
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4573
$as_echo_n "checking for ANSI C header files... " >&6; }
4574
if test "${ac_cv_header_stdc+set}" = set; then :
4575
$as_echo_n "(cached) " >&6
4577
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4578
/* end confdefs.h. */
4592
if ac_fn_c_try_compile "$LINENO"; then :
4593
ac_cv_header_stdc=yes
4595
ac_cv_header_stdc=no
4597
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4599
if test $ac_cv_header_stdc = yes; then
4600
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4601
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4602
/* end confdefs.h. */
4606
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4607
$EGREP "memchr" >/dev/null 2>&1; then :
4610
ac_cv_header_stdc=no
4616
if test $ac_cv_header_stdc = yes; then
4617
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4618
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4619
/* end confdefs.h. */
4623
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4624
$EGREP "free" >/dev/null 2>&1; then :
4627
ac_cv_header_stdc=no
4633
if test $ac_cv_header_stdc = yes; then
4634
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4635
if test "$cross_compiling" = yes; then :
4638
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4639
/* end confdefs.h. */
4642
#if ((' ' & 0x0FF) == 0x020)
4643
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4644
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4646
# define ISLOWER(c) \
4647
(('a' <= (c) && (c) <= 'i') \
4648
|| ('j' <= (c) && (c) <= 'r') \
4649
|| ('s' <= (c) && (c) <= 'z'))
4650
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4653
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4658
for (i = 0; i < 256; i++)
4659
if (XOR (islower (i), ISLOWER (i))
4660
|| toupper (i) != TOUPPER (i))
4665
if ac_fn_c_try_run "$LINENO"; then :
4668
ac_cv_header_stdc=no
4670
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4671
conftest.$ac_objext conftest.beam conftest.$ac_ext
4676
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4677
$as_echo "$ac_cv_header_stdc" >&6; }
4678
if test $ac_cv_header_stdc = yes; then
4680
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4684
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4685
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4686
inttypes.h stdint.h unistd.h
4688
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4689
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4691
eval as_val=\$$as_ac_Header
4692
if test "x$as_val" = x""yes; then :
4693
cat >>confdefs.h <<_ACEOF
4694
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4702
ac_fn_c_check_header_mongrel "$LINENO" "openssl/opensslv.h" "ac_cv_header_openssl_opensslv_h" "$ac_includes_default"
4703
if test "x$ac_cv_header_openssl_opensslv_h" = x""yes; then :
4706
as_fn_error "We require OpenSSL; try --with-openssl" "$LINENO" 5
4711
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fabs" >&5
4712
$as_echo_n "checking for library containing fabs... " >&6; }
4713
if test "${ac_cv_search_fabs+set}" = set; then :
4714
$as_echo_n "(cached) " >&6
4716
ac_func_search_save_LIBS=$LIBS
4717
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4718
/* end confdefs.h. */
4720
/* Override any GCC internal prototype to avoid an error.
4721
Use char because int might match the return type of a GCC
4722
builtin and then its argument prototype would still apply. */
4735
for ac_lib in '' m; do
4736
if test -z "$ac_lib"; then
4737
ac_res="none required"
4740
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4742
if ac_fn_c_try_link "$LINENO"; then :
4743
ac_cv_search_fabs=$ac_res
4745
rm -f core conftest.err conftest.$ac_objext \
4747
if test "${ac_cv_search_fabs+set}" = set; then :
4751
if test "${ac_cv_search_fabs+set}" = set; then :
4754
ac_cv_search_fabs=no
4757
LIBS=$ac_func_search_save_LIBS
4759
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fabs" >&5
4760
$as_echo "$ac_cv_search_fabs" >&6; }
4761
ac_res=$ac_cv_search_fabs
4762
if test "$ac_res" != no; then :
4763
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4769
if test -n "$apu_config"; then
4771
if test "x$libs" = "x"; then
4772
test "x$silent" != "xyes" && echo " setting libs to \"`$apu_config --link-libtool --libs`\""
4773
libs="`$apu_config --link-libtool --libs`"
4775
apr_addto_bugger="`$apu_config --link-libtool --libs`"
4776
for i in $apr_addto_bugger; do
4777
apr_addto_duplicate="0"
4779
if test "x$i" = "x$j"; then
4780
apr_addto_duplicate="1"
4784
if test $apr_addto_duplicate = "0"; then
4785
test "x$silent" != "xyes" && echo " adding \"$i\" to libs"
4793
if test "x$libs" = "x"; then
4794
test "x$silent" != "xyes" && echo " setting libs to \"`$apr_config --link-libtool --libs` $LIBS\""
4795
libs="`$apr_config --link-libtool --libs` $LIBS"
4797
apr_addto_bugger="`$apr_config --link-libtool --libs` $LIBS"
4798
for i in $apr_addto_bugger; do
4799
apr_addto_duplicate="0"
4801
if test "x$i" = "x$j"; then
4802
apr_addto_duplicate="1"
4806
if test $apr_addto_duplicate = "0"; then
4807
test "x$silent" != "xyes" && echo " adding \"$i\" to libs"
4815
if test "x$SERF_LIBS" = "x"; then
4816
test "x$silent" != "xyes" && echo " setting SERF_LIBS to \"$libs\""
4819
apr_addto_bugger="$libs"
4820
for i in $apr_addto_bugger; do
4821
apr_addto_duplicate="0"
4822
for j in $SERF_LIBS; do
4823
if test "x$i" = "x$j"; then
4824
apr_addto_duplicate="1"
4828
if test $apr_addto_duplicate = "0"; then
4829
test "x$silent" != "xyes" && echo " adding \"$i\" to SERF_LIBS"
4830
SERF_LIBS="$SERF_LIBS $i"
4838
if test "x$apr_ste_save_CPPFLAGS" = "x"; then
4839
EXTRA_CPPFLAGS="$CPPFLAGS"
4842
if test "x$apr_ste_save_CPPFLAGS" = "x$CPPFLAGS"; then
4845
EXTRA_CPPFLAGS=`echo $CPPFLAGS | sed -e "s%${apr_ste_save_CPPFLAGS}%%"`
4846
CPPFLAGS="$apr_ste_save_CPPFLAGS"
4849
if test "x$silent" != "xyes"; then
4850
echo " restoring CPPFLAGS to \"$CPPFLAGS\""
4851
echo " setting EXTRA_CPPFLAGS to \"$EXTRA_CPPFLAGS\""
4856
if test "x$apr_ste_save_CFLAGS" = "x"; then
4857
EXTRA_CFLAGS="$CFLAGS"
4860
if test "x$apr_ste_save_CFLAGS" = "x$CFLAGS"; then
4863
EXTRA_CFLAGS=`echo $CFLAGS | sed -e "s%${apr_ste_save_CFLAGS}%%"`
4864
CFLAGS="$apr_ste_save_CFLAGS"
4867
if test "x$silent" != "xyes"; then
4868
echo " restoring CFLAGS to \"$CFLAGS\""
4869
echo " setting EXTRA_CFLAGS to \"$EXTRA_CFLAGS\""
4874
if test "x$apr_ste_save_CXXFLAGS" = "x"; then
4875
EXTRA_CXXFLAGS="$CXXFLAGS"
4878
if test "x$apr_ste_save_CXXFLAGS" = "x$CXXFLAGS"; then
4881
EXTRA_CXXFLAGS=`echo $CXXFLAGS | sed -e "s%${apr_ste_save_CXXFLAGS}%%"`
4882
CXXFLAGS="$apr_ste_save_CXXFLAGS"
4885
if test "x$silent" != "xyes"; then
4886
echo " restoring CXXFLAGS to \"$CXXFLAGS\""
4887
echo " setting EXTRA_CXXFLAGS to \"$EXTRA_CXXFLAGS\""
4892
if test "x$apr_ste_save_LDFLAGS" = "x"; then
4893
EXTRA_LDFLAGS="$LDFLAGS"
4896
if test "x$apr_ste_save_LDFLAGS" = "x$LDFLAGS"; then
4899
EXTRA_LDFLAGS=`echo $LDFLAGS | sed -e "s%${apr_ste_save_LDFLAGS}%%"`
4900
LDFLAGS="$apr_ste_save_LDFLAGS"
4903
if test "x$silent" != "xyes"; then
4904
echo " restoring LDFLAGS to \"$LDFLAGS\""
4905
echo " setting EXTRA_LDFLAGS to \"$EXTRA_LDFLAGS\""
4910
if test "x$apr_ste_save_LIBS" = "x"; then
4914
if test "x$apr_ste_save_LIBS" = "x$LIBS"; then
4917
EXTRA_LIBS=`echo $LIBS | sed -e "s%${apr_ste_save_LIBS}%%"`
4918
LIBS="$apr_ste_save_LIBS"
4921
if test "x$silent" != "xyes"; then
4922
echo " restoring LIBS to \"$LIBS\""
4923
echo " setting EXTRA_LIBS to \"$EXTRA_LIBS\""
4928
if test "x$apr_ste_save_INCLUDES" = "x"; then
4929
EXTRA_INCLUDES="$INCLUDES"
4932
if test "x$apr_ste_save_INCLUDES" = "x$INCLUDES"; then
4935
EXTRA_INCLUDES=`echo $INCLUDES | sed -e "s%${apr_ste_save_INCLUDES}%%"`
4936
INCLUDES="$apr_ste_save_INCLUDES"
4939
if test "x$silent" != "xyes"; then
4940
echo " restoring INCLUDES to \"$INCLUDES\""
4941
echo " setting EXTRA_INCLUDES to \"$EXTRA_INCLUDES\""
4946
ac_config_files="$ac_config_files Makefile"
4948
ac_config_commands="$ac_config_commands mkdir-vpath"
4951
cat >confcache <<\_ACEOF
4952
# This file is a shell script that caches the results of configure
4953
# tests run on this system so they can be shared between configure
4954
# scripts and configure runs, see configure's option --config-cache.
4955
# It is not useful on other systems. If it contains results you don't
4956
# want to keep, you may remove or edit it.
4958
# config.status only pays attention to the cache file if you give it
4959
# the --recheck option to rerun configure.
4961
# `ac_cv_env_foo' variables (set or unset) will be overridden when
4962
# loading this file, other *unset* `ac_cv_foo' will be assigned the
4967
# The following way of writing the cache mishandles newlines in values,
4968
# but we know of no workaround that is simple, portable, and efficient.
4969
# So, we kill variables containing newlines.
4970
# Ultrix sh set writes to stderr and can't be redirected directly,
4971
# and sets the high bit in the cache file unless we assign to the vars.
4973
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4974
eval ac_val=\$$ac_var
4978
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4979
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4982
_ | IFS | as_nl) ;; #(
4983
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4984
*) { eval $ac_var=; unset $ac_var;} ;;
4990
case $as_nl`(ac_space=' '; set) 2>&1` in #(
4991
*${as_nl}ac_space=\ *)
4992
# `set' does not quote correctly, so add quotes: double-quote
4993
# substitution turns \\\\ into \\, and sed turns \\ into \.
4996
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4999
# `set' quotes correctly as required by POSIX, so do not add quotes.
5000
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5009
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5011
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5013
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5014
if test -w "$cache_file"; then
5015
test "x$cache_file" != "x/dev/null" &&
5016
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5017
$as_echo "$as_me: updating cache $cache_file" >&6;}
5018
cat confcache >$cache_file
5020
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5021
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5026
test "x$prefix" = xNONE && prefix=$ac_default_prefix
5027
# Let make expand exec_prefix.
5028
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5030
# Transform confdefs.h into DEFS.
5031
# Protect against shell expansion while executing Makefile rules.
5032
# Protect against Makefile macro expansion.
5034
# If the first sed substitution is executed (which looks for macros that
5035
# take arguments), then branch to the quote section. Otherwise,
5036
# look for a macro that doesn't take arguments.
5046
s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
5048
s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
5052
s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
5065
DEFS=`sed -n "$ac_script" confdefs.h`
5070
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5071
# 1. Remove the extension, and $U if already installed.
5072
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5073
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5074
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5075
# will be set to the directory where LIBOBJS objects are built.
5076
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5077
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5081
LTLIBOBJS=$ac_ltlibobjs
5085
: ${CONFIG_STATUS=./config.status}
5087
ac_clean_files_save=$ac_clean_files
5088
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5089
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5090
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5092
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5094
# Generated by $as_me.
5095
# Run this file to recreate the current configuration.
5096
# Compiler output produced by configure, useful for debugging
5097
# configure, is in config.log if it exists.
5103
SHELL=\${CONFIG_SHELL-$SHELL}
5106
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5107
## -------------------- ##
5108
## M4sh Initialization. ##
5109
## -------------------- ##
5111
# Be more Bourne compatible
5112
DUALCASE=1; export DUALCASE # for MKS sh
5113
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5116
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5117
# is contrary to our usage. Disable this feature.
5118
alias -g '${1+"$@"}'='"$@"'
5119
setopt NO_GLOB_SUBST
5121
case `(set -o) 2>/dev/null` in #(
5133
# Printing a long string crashes Solaris 7 /usr/bin/printf.
5134
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5135
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5136
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5137
# Prefer a ksh shell builtin over an external printf program on Solaris,
5138
# but without wasting forks for bash or zsh.
5139
if test -z "$BASH_VERSION$ZSH_VERSION" \
5140
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5141
as_echo='print -r --'
5142
as_echo_n='print -rn --'
5143
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5144
as_echo='printf %s\n'
5145
as_echo_n='printf %s'
5147
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5148
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5149
as_echo_n='/usr/ucb/echo -n'
5151
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5152
as_echo_n_body='eval
5156
expr "X$arg" : "X\\(.*\\)$as_nl";
5157
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5159
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5161
export as_echo_n_body
5162
as_echo_n='sh -c $as_echo_n_body as_echo'
5165
as_echo='sh -c $as_echo_body as_echo'
5168
# The user is always right.
5169
if test "${PATH_SEPARATOR+set}" != set; then
5171
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5172
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5179
# We need space, tab and new line, in precisely that order. Quoting is
5180
# there to prevent editors from complaining about space-tab.
5181
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5182
# splitting by setting IFS to empty value.)
5185
# Find who we are. Look in the path if we contain no directory separator.
5187
*[\\/]* ) as_myself=$0 ;;
5188
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5192
test -z "$as_dir" && as_dir=.
5193
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5199
# We did not find ourselves, most probably we were run as `sh COMMAND'
5200
# in which case we are not to be found in the path.
5201
if test "x$as_myself" = x; then
5204
if test ! -f "$as_myself"; then
5205
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5209
# Unset variables that we do not need and which cause bugs (e.g. in
5210
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5211
# suppresses any "Segmentation fault" message there. '((' could
5212
# trigger a bug in pdksh 5.2.14.
5213
for as_var in BASH_ENV ENV MAIL MAILPATH
5214
do eval test x\${$as_var+set} = xset \
5215
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5228
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5231
# as_fn_error ERROR [LINENO LOG_FD]
5232
# ---------------------------------
5233
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5234
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5235
# script with status $?, using 1 if that was 0.
5238
as_status=$?; test $as_status -eq 0 && as_status=1
5240
as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5241
$as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
5243
$as_echo "$as_me: error: $1" >&2
5244
as_fn_exit $as_status
5248
# as_fn_set_status STATUS
5249
# -----------------------
5250
# Set $? to STATUS, without forking.
5254
} # as_fn_set_status
5258
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5268
# Portably unset VAR.
5271
{ eval $1=; unset $1;}
5273
as_unset=as_fn_unset
5274
# as_fn_append VAR VALUE
5275
# ----------------------
5276
# Append the text in VALUE to the end of the definition contained in VAR. Take
5277
# advantage of any shell optimizations that allow amortized linear growth over
5278
# repeated appends, instead of the typical quadratic growth present in naive
5280
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5281
eval 'as_fn_append ()
5292
# as_fn_arith ARG...
5293
# ------------------
5294
# Perform arithmetic evaluation on the ARGs, and store the result in the
5295
# global $as_val. Take advantage of shells that can avoid forks. The arguments
5296
# must be portable across $(()) and expr.
5297
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5298
eval 'as_fn_arith ()
5305
as_val=`expr "$@" || test $? -eq 1`
5310
if expr a : '\(a\)' >/dev/null 2>&1 &&
5311
test "X`expr 00001 : '.*\(...\)'`" = X001; then
5317
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5318
as_basename=basename
5323
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5329
as_me=`$as_basename -- "$0" ||
5330
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5331
X"$0" : 'X\(//\)$' \| \
5332
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5334
sed '/^.*\/\([^/][^/]*\)\/*$/{
5348
# Avoid depending upon Character Ranges.
5349
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5350
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5351
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5352
as_cr_digits='0123456789'
5353
as_cr_alnum=$as_cr_Letters$as_cr_digits
5355
ECHO_C= ECHO_N= ECHO_T=
5356
case `echo -n x` in #(((((
5358
case `echo 'xy\c'` in
5359
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
5361
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5368
rm -f conf$$ conf$$.exe conf$$.file
5369
if test -d conf$$.dir; then
5370
rm -f conf$$.dir/conf$$.file
5373
mkdir conf$$.dir 2>/dev/null
5375
if (echo >conf$$.file) 2>/dev/null; then
5376
if ln -s conf$$.file conf$$ 2>/dev/null; then
5378
# ... but there are two gotchas:
5379
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5380
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5381
# In both cases, we have to default to `cp -p'.
5382
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5384
elif ln conf$$.file conf$$ 2>/dev/null; then
5392
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5393
rmdir conf$$.dir 2>/dev/null
5398
# Create "$as_dir" as a directory, including parents if necessary.
5403
-*) as_dir=./$as_dir;;
5405
test -d "$as_dir" || eval $as_mkdir_p || {
5409
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5410
*) as_qdir=$as_dir;;
5412
as_dirs="'$as_qdir' $as_dirs"
5413
as_dir=`$as_dirname -- "$as_dir" ||
5414
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5415
X"$as_dir" : 'X\(//\)[^/]' \| \
5416
X"$as_dir" : 'X\(//\)$' \| \
5417
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5418
$as_echo X"$as_dir" |
5419
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5436
test -d "$as_dir" && break
5438
test -z "$as_dirs" || eval "mkdir $as_dirs"
5439
} || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
5443
if mkdir -p . 2>/dev/null; then
5444
as_mkdir_p='mkdir -p "$as_dir"'
5446
test -d ./-p && rmdir ./-p
5450
if test -x / >/dev/null 2>&1; then
5453
if ls -dL / >/dev/null 2>&1; then
5460
if test -d "$1"; then
5466
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5467
???[sx]*):;;*)false;;esac;fi
5471
as_executable_p=$as_test_x
5473
# Sed expression to map a string onto a valid CPP name.
5474
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5476
# Sed expression to map a string onto a valid variable name.
5477
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5481
## ----------------------------------- ##
5482
## Main body of $CONFIG_STATUS script. ##
5483
## ----------------------------------- ##
5485
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5487
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5488
# Save the log message, to keep $0 and so on meaningful, and to
5489
# report actual input values of CONFIG_FILES etc. instead of their
5490
# values after options handling.
5492
This file was extended by $as_me, which was
5493
generated by GNU Autoconf 2.65. Invocation command line was
5495
CONFIG_FILES = $CONFIG_FILES
5496
CONFIG_HEADERS = $CONFIG_HEADERS
5497
CONFIG_LINKS = $CONFIG_LINKS
5498
CONFIG_COMMANDS = $CONFIG_COMMANDS
5501
on `(hostname || uname -n) 2>/dev/null | sed 1q`
5506
case $ac_config_files in *"
5507
"*) set x $ac_config_files; shift; ac_config_files=$*;;
5512
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5513
# Files that config.status was made for.
5514
config_files="$ac_config_files"
5515
config_commands="$ac_config_commands"
5519
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5521
\`$as_me' instantiates files and other configuration actions
5522
from templates according to the current configuration. Unless the files
5523
and actions are specified as TAGs, all are instantiated by default.
5525
Usage: $0 [OPTION]... [TAG]...
5527
-h, --help print this help, then exit
5528
-V, --version print version number and configuration settings, then exit
5529
--config print configuration, then exit
5530
-q, --quiet, --silent
5531
do not print progress messages
5532
-d, --debug don't remove temporary files
5533
--recheck update $as_me by reconfiguring in the same conditions
5534
--file=FILE[:TEMPLATE]
5535
instantiate the configuration file FILE
5537
Configuration files:
5540
Configuration commands:
5543
Report bugs to the package provider."
5546
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5547
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5550
configured by $0, generated by GNU Autoconf 2.65,
5551
with options \\"\$ac_cs_config\\"
5553
Copyright (C) 2009 Free Software Foundation, Inc.
5554
This config.status script is free software; the Free Software Foundation
5555
gives unlimited permission to copy, distribute and modify it."
5560
test -n "\$AWK" || AWK=awk
5563
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5564
# The default lists apply if the user does not specify any file.
5570
ac_option=`expr "X$1" : 'X\([^=]*\)='`
5571
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5582
# Handling of the options.
5583
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5585
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5586
$as_echo "$ac_cs_version"; exit ;;
5587
--config | --confi | --conf | --con | --co | --c )
5588
$as_echo "$ac_cs_config"; exit ;;
5589
--debug | --debu | --deb | --de | --d | -d )
5591
--file | --fil | --fi | --f )
5594
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5596
as_fn_append CONFIG_FILES " '$ac_optarg'"
5597
ac_need_defaults=false;;
5598
--he | --h | --help | --hel | -h )
5599
$as_echo "$ac_cs_usage"; exit ;;
5600
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
5601
| -silent | --silent | --silen | --sile | --sil | --si | --s)
5605
-*) as_fn_error "unrecognized option: \`$1'
5606
Try \`$0 --help' for more information." ;;
5608
*) as_fn_append ac_config_targets " $1"
5609
ac_need_defaults=false ;;
5615
ac_configure_extra_args=
5617
if $ac_cs_silent; then
5619
ac_configure_extra_args="$ac_configure_extra_args --silent"
5623
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5624
if \$ac_cs_recheck; then
5625
set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5627
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5628
CONFIG_SHELL='$SHELL'
5634
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5638
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5639
## Running $as_me. ##
5645
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5648
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5650
# Handling of arguments.
5651
for ac_config_target in $ac_config_targets
5653
case $ac_config_target in
5654
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5655
"mkdir-vpath") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdir-vpath" ;;
5657
*) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5662
# If the user did not use the arguments to specify the items to instantiate,
5663
# then the envvar interface is used. Set only those that are not.
5664
# We use the long form for the default assignment because of an extremely
5665
# bizarre bug on SunOS 4.1.3.
5666
if $ac_need_defaults; then
5667
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5668
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5671
# Have a temporary directory for convenience. Make it in the build tree
5672
# simply because there is no reason against having it here, and in addition,
5673
# creating and moving files from /tmp can sometimes cause problems.
5674
# Hook for its removal unless debugging.
5675
# Note that there is a small window in which the directory will not be cleaned:
5676
# after its creation but before its name has been assigned to `$tmp'.
5680
trap 'exit_status=$?
5681
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5683
trap 'as_fn_exit 1' 1 2 13 15
5685
# Create a (secure) tmp directory for tmp files.
5688
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5689
test -n "$tmp" && test -d "$tmp"
5692
tmp=./conf$$-$RANDOM
5693
(umask 077 && mkdir "$tmp")
5694
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
5696
# Set up the scripts for CONFIG_FILES section.
5697
# No need to generate them if there are no CONFIG_FILES.
5698
# This happens for instance with `./config.status config.h'.
5699
if test -n "$CONFIG_FILES"; then
5702
ac_cr=`echo X | tr X '\015'`
5703
# On cygwin, bash can eat \r inside `` if the user requested igncr.
5704
# But we know of no other shell where ac_cr would be empty at this
5705
# point, so we can use a bashism as a fallback.
5706
if test "x$ac_cr" = x; then
5707
eval ac_cr=\$\'\\r\'
5709
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5710
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5716
echo 'BEGIN {' >"$tmp/subs1.awk" &&
5721
echo "cat >conf$$subs.awk <<_ACEOF" &&
5722
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5725
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5726
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
5728
for ac_last_try in false false false false false :; do
5729
. ./conf$$subs.sh ||
5730
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5732
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5733
if test $ac_delim_n = $ac_delim_num; then
5735
elif $ac_last_try; then
5736
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5738
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5743
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5744
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
5748
s/^/S["/; s/!.*/"]=/
5758
s/\(.\{148\}\)..*/\1/
5760
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5765
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5772
s/\(.\{148\}\)..*/\1/
5774
s/["\\]/\\&/g; s/^/"/; s/$/"/
5778
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5783
' <conf$$subs.awk | sed '
5788
' >>$CONFIG_STATUS || ac_write_fail=1
5789
rm -f conf$$subs.awk
5790
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5792
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
5793
for (key in S) S_is_set[key] = 1
5799
nfields = split(line, field, "@")
5801
len = length(field[1])
5802
for (i = 2; i < nfields; i++) {
5804
keylen = length(key)
5805
if (S_is_set[key]) {
5807
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5808
len += length(value) + length(field[++i])
5819
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5820
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5821
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5824
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
5825
|| as_fn_error "could not setup config files machinery" "$LINENO" 5
5828
# VPATH may cause trouble with some makes, so we remove $(srcdir),
5829
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5830
# trailing colons and then remove the whole line if VPATH becomes empty
5831
# (actually we leave an empty line to preserve line numbers).
5832
if test "x$srcdir" = x.; then
5833
ac_vpsub='/^[ ]*VPATH[ ]*=/{
5837
s/^\([^=]*=[ ]*\):*/\1/
5843
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5844
fi # test -n "$CONFIG_FILES"
5847
eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
5852
:[FHLC]) ac_mode=$ac_tag; continue;;
5854
case $ac_mode$ac_tag in
5856
:L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
5857
:[FH]-) ac_tag=-:-;;
5858
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5875
-) ac_f="$tmp/stdin";;
5876
*) # Look for the file first in the build tree, then in the source tree
5877
# (if the path is not absolute). The absolute path cannot be DOS-style,
5878
# because $ac_f cannot contain `:'.
5882
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5884
as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5886
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5887
as_fn_append ac_file_inputs " '$ac_f'"
5890
# Let's still pretend it is `configure' which instantiates (i.e., don't
5891
# use $as_me), people would be surprised to read:
5892
# /* config.h. Generated by config.status. */
5893
configure_input='Generated from '`
5894
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5896
if test x"$ac_file" != x-; then
5897
configure_input="$ac_file. $configure_input"
5898
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5899
$as_echo "$as_me: creating $ac_file" >&6;}
5901
# Neutralize special characters interpreted by sed in replacement strings.
5902
case $configure_input in #(
5903
*\&* | *\|* | *\\* )
5904
ac_sed_conf_input=`$as_echo "$configure_input" |
5905
sed 's/[\\\\&|]/\\\\&/g'`;; #(
5906
*) ac_sed_conf_input=$configure_input;;
5910
*:-:* | *:-) cat >"$tmp/stdin" \
5911
|| as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
5916
ac_dir=`$as_dirname -- "$ac_file" ||
5917
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5918
X"$ac_file" : 'X\(//\)[^/]' \| \
5919
X"$ac_file" : 'X\(//\)$' \| \
5920
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5921
$as_echo X"$ac_file" |
5922
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5939
as_dir="$ac_dir"; as_fn_mkdir_p
5943
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5945
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5946
# A ".." for each directory in $ac_dir_suffix.
5947
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5948
case $ac_top_builddir_sub in
5949
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5950
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5953
ac_abs_top_builddir=$ac_pwd
5954
ac_abs_builddir=$ac_pwd$ac_dir_suffix
5955
# for backward compatibility:
5956
ac_top_builddir=$ac_top_build_prefix
5959
.) # We are building in place.
5961
ac_top_srcdir=$ac_top_builddir_sub
5962
ac_abs_top_srcdir=$ac_pwd ;;
5963
[\\/]* | ?:[\\/]* ) # Absolute name.
5964
ac_srcdir=$srcdir$ac_dir_suffix;
5965
ac_top_srcdir=$srcdir
5966
ac_abs_top_srcdir=$srcdir ;;
5968
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5969
ac_top_srcdir=$ac_top_build_prefix$srcdir
5970
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5972
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5982
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5983
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5987
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5988
# If the template does not know about datarootdir, expand it.
5989
# FIXME: This hack should be removed a few years after 2.60.
5990
ac_datarootdir_hack=; ac_datarootdir_seen=
6001
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6002
*datarootdir*) ac_datarootdir_seen=yes;;
6003
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6004
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6005
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6007
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6008
ac_datarootdir_hack='
6009
s&@datadir@&$datadir&g
6010
s&@docdir@&$docdir&g
6011
s&@infodir@&$infodir&g
6012
s&@localedir@&$localedir&g
6013
s&@mandir@&$mandir&g
6014
s&\\\${datarootdir}&$datarootdir&g' ;;
6018
# Neutralize VPATH when `$srcdir' = `.'.
6019
# Shell code in configure.ac might set extrasub.
6020
# FIXME: do we really want to maintain this feature?
6021
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6022
ac_sed_extra="$ac_vpsub
6025
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6027
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6028
s|@configure_input@|$ac_sed_conf_input|;t t
6029
s&@top_builddir@&$ac_top_builddir_sub&;t t
6030
s&@top_build_prefix@&$ac_top_build_prefix&;t t
6031
s&@srcdir@&$ac_srcdir&;t t
6032
s&@abs_srcdir@&$ac_abs_srcdir&;t t
6033
s&@top_srcdir@&$ac_top_srcdir&;t t
6034
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6035
s&@builddir@&$ac_builddir&;t t
6036
s&@abs_builddir@&$ac_abs_builddir&;t t
6037
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6038
s&@INSTALL@&$ac_INSTALL&;t t
6039
$ac_datarootdir_hack
6041
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
6042
|| as_fn_error "could not create $ac_file" "$LINENO" 5
6044
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6045
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6046
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6047
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6048
which seems to be undefined. Please make sure it is defined." >&5
6049
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6050
which seems to be undefined. Please make sure it is defined." >&2;}
6054
-) cat "$tmp/out" && rm -f "$tmp/out";;
6055
*) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
6057
|| as_fn_error "could not create $ac_file" "$LINENO" 5
6061
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6062
$as_echo "$as_me: executing $ac_file commands" >&6;}
6067
case $ac_file$ac_mode in
6068
"mkdir-vpath":C) make mkdir-vpath ;;
6076
ac_clean_files=$ac_clean_files_save
6078
test $ac_write_fail = 0 ||
6079
as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
6082
# configure is writing to config.log, and then calls config.status.
6083
# config.status does its own redirection, appending to config.log.
6084
# Unfortunately, on DOS this fails, as config.log is still kept open
6085
# by configure, so config.status won't be able to write to it; its
6086
# output is simply discarded. So we exec the FD to /dev/null,
6087
# effectively closing config.log, so it can be properly (re)opened and
6088
# appended to by config.status. When coming back to configure, we
6089
# need to make the FD available again.
6090
if test "$no_create" != yes; then
6092
ac_config_status_args=
6093
test "$silent" = yes &&
6094
ac_config_status_args="$ac_config_status_args --quiet"
6096
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6098
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
6099
# would make configure fail if this is the last instruction.
6100
$ac_cs_success || as_fn_exit $?
6102
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6103
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6104
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}