2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 test -z "$as_dir" && as_dir=.
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
238 SHELL=${CONFIG_SHELL-/bin/sh}
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
249 # Portably unset VAR.
252 { eval $1=; unset $1;}
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
276 # Create "$as_dir" as a directory, including parents if necessary.
281 -*) as_dir=./$as_dir;;
283 test -d "$as_dir" || eval $as_mkdir_p || {
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
314 test -d "$as_dir" && break
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
352 as_val=`expr "$@" || test $? -eq 1`
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
364 as_status=$?; test $as_status -eq 0 && as_status=1
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
446 # Exit status is that of the last command.
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
468 mkdir conf$$.dir 2>/dev/null
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
479 elif ln conf$$.file conf$$ 2>/dev/null; then
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
493 test -d ./-p && rmdir ./-p
497 if test -x / >/dev/null 2>&1; then
500 if ls -dL / >/dev/null 2>&1; then
507 if test -d "$1"; then
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev/null 6>&1
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
537 ac_default_prefix=/usr/local
539 ac_config_libobj_dir=.
546 # Identity of this package.
554 ac_unique_file="mod_security2.c"
555 # Factoring default headers for most tests.
556 ac_includes_default="\
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
568 # ifdef HAVE_STDLIB_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
591 ac_subst_vars='LTLIBOBJS
620 MODSEC_APXS_EXTRA_CFLAGS
628 MSC_REGRESSION_DOCROOT_DIR
629 MSC_REGRESSION_LOGS_DIR
630 MSC_REGRESSION_CONF_DIR
631 MSC_REGRESSION_SERVERROOT_DIR
683 program_transform_name
696 enable_option_checking
698 enable_verbose_output
699 enable_strict_compile
704 enable_performance_measurement
714 ac_precious_vars='build_alias
725 # Initialize some variables set by options.
727 ac_init_version=false
728 ac_unrecognized_opts=
730 # The variables have the same names as the options, with
731 # dashes changed to underlines.
739 program_transform_name=s,x,x,
747 # Installation directory options.
748 # These are left unexpanded so users can "make install exec_prefix=/foo"
749 # and all the variables that are supposed to be based on exec_prefix
750 # by default will actually change.
751 # Use braces instead of parens because sh, perl, etc. also accept them.
752 # (The list follows the same order as the GNU Coding Standards.)
753 bindir='${exec_prefix}/bin'
754 sbindir='${exec_prefix}/sbin'
755 libexecdir='${exec_prefix}/libexec'
756 datarootdir='${prefix}/share'
757 datadir='${datarootdir}'
758 sysconfdir='${prefix}/etc'
759 sharedstatedir='${prefix}/com'
760 localstatedir='${prefix}/var'
761 includedir='${prefix}/include'
762 oldincludedir='/usr/include'
763 docdir='${datarootdir}/doc/${PACKAGE}'
764 infodir='${datarootdir}/info'
769 libdir='${exec_prefix}/lib'
770 localedir='${datarootdir}/locale'
771 mandir='${datarootdir}/man'
777 # If the previous option needs an argument, assign it.
778 if test -n "$ac_prev"; then
779 eval $ac_prev=\$ac_option
785 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
789 # Accept the important Cygnus configure options, so we can diagnose typos.
791 case $ac_dashdash$ac_option in
795 -bindir | --bindir | --bindi | --bind | --bin | --bi)
797 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
800 -build | --build | --buil | --bui | --bu)
801 ac_prev=build_alias ;;
802 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
803 build_alias=$ac_optarg ;;
805 -cache-file | --cache-file | --cache-fil | --cache-fi \
806 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
807 ac_prev=cache_file ;;
808 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
809 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
810 cache_file=$ac_optarg ;;
813 cache_file=config.cache ;;
815 -datadir | --datadir | --datadi | --datad)
817 -datadir=* | --datadir=* | --datadi=* | --datad=*)
818 datadir=$ac_optarg ;;
820 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
821 | --dataroo | --dataro | --datar)
822 ac_prev=datarootdir ;;
823 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
824 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
825 datarootdir=$ac_optarg ;;
827 -disable-* | --disable-*)
828 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
829 # Reject names that are not valid shell variable names.
830 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
831 as_fn_error "invalid feature name: $ac_useropt"
832 ac_useropt_orig=$ac_useropt
833 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
834 case $ac_user_opts in
838 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
839 ac_unrecognized_sep=', ';;
841 eval enable_$ac_useropt=no ;;
843 -docdir | --docdir | --docdi | --doc | --do)
845 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
848 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
850 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
853 -enable-* | --enable-*)
854 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
855 # Reject names that are not valid shell variable names.
856 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
857 as_fn_error "invalid feature name: $ac_useropt"
858 ac_useropt_orig=$ac_useropt
859 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
860 case $ac_user_opts in
864 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
865 ac_unrecognized_sep=', ';;
867 eval enable_$ac_useropt=\$ac_optarg ;;
869 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
870 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
871 | --exec | --exe | --ex)
872 ac_prev=exec_prefix ;;
873 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
874 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
875 | --exec=* | --exe=* | --ex=*)
876 exec_prefix=$ac_optarg ;;
878 -gas | --gas | --ga | --g)
879 # Obsolete; use --with-gas.
882 -help | --help | --hel | --he | -h)
884 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
885 ac_init_help=recursive ;;
886 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
887 ac_init_help=short ;;
889 -host | --host | --hos | --ho)
890 ac_prev=host_alias ;;
891 -host=* | --host=* | --hos=* | --ho=*)
892 host_alias=$ac_optarg ;;
894 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
896 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
898 htmldir=$ac_optarg ;;
900 -includedir | --includedir | --includedi | --included | --include \
901 | --includ | --inclu | --incl | --inc)
902 ac_prev=includedir ;;
903 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
904 | --includ=* | --inclu=* | --incl=* | --inc=*)
905 includedir=$ac_optarg ;;
907 -infodir | --infodir | --infodi | --infod | --info | --inf)
909 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
910 infodir=$ac_optarg ;;
912 -libdir | --libdir | --libdi | --libd)
914 -libdir=* | --libdir=* | --libdi=* | --libd=*)
917 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
918 | --libexe | --libex | --libe)
919 ac_prev=libexecdir ;;
920 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
921 | --libexe=* | --libex=* | --libe=*)
922 libexecdir=$ac_optarg ;;
924 -localedir | --localedir | --localedi | --localed | --locale)
926 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
927 localedir=$ac_optarg ;;
929 -localstatedir | --localstatedir | --localstatedi | --localstated \
930 | --localstate | --localstat | --localsta | --localst | --locals)
931 ac_prev=localstatedir ;;
932 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
933 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
934 localstatedir=$ac_optarg ;;
936 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
938 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
942 # Obsolete; use --without-fp.
945 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
946 | --no-cr | --no-c | -n)
949 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
950 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
953 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
954 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
955 | --oldin | --oldi | --old | --ol | --o)
956 ac_prev=oldincludedir ;;
957 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
958 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
959 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
960 oldincludedir=$ac_optarg ;;
962 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
964 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
967 -program-prefix | --program-prefix | --program-prefi | --program-pref \
968 | --program-pre | --program-pr | --program-p)
969 ac_prev=program_prefix ;;
970 -program-prefix=* | --program-prefix=* | --program-prefi=* \
971 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
972 program_prefix=$ac_optarg ;;
974 -program-suffix | --program-suffix | --program-suffi | --program-suff \
975 | --program-suf | --program-su | --program-s)
976 ac_prev=program_suffix ;;
977 -program-suffix=* | --program-suffix=* | --program-suffi=* \
978 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
979 program_suffix=$ac_optarg ;;
981 -program-transform-name | --program-transform-name \
982 | --program-transform-nam | --program-transform-na \
983 | --program-transform-n | --program-transform- \
984 | --program-transform | --program-transfor \
985 | --program-transfo | --program-transf \
986 | --program-trans | --program-tran \
987 | --progr-tra | --program-tr | --program-t)
988 ac_prev=program_transform_name ;;
989 -program-transform-name=* | --program-transform-name=* \
990 | --program-transform-nam=* | --program-transform-na=* \
991 | --program-transform-n=* | --program-transform-=* \
992 | --program-transform=* | --program-transfor=* \
993 | --program-transfo=* | --program-transf=* \
994 | --program-trans=* | --program-tran=* \
995 | --progr-tra=* | --program-tr=* | --program-t=*)
996 program_transform_name=$ac_optarg ;;
998 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1000 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1001 pdfdir=$ac_optarg ;;
1003 -psdir | --psdir | --psdi | --psd | --ps)
1005 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1008 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1009 | -silent | --silent | --silen | --sile | --sil)
1012 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1014 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1016 sbindir=$ac_optarg ;;
1018 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1019 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1020 | --sharedst | --shareds | --shared | --share | --shar \
1022 ac_prev=sharedstatedir ;;
1023 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1024 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1025 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1027 sharedstatedir=$ac_optarg ;;
1029 -site | --site | --sit)
1031 -site=* | --site=* | --sit=*)
1034 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1036 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1037 srcdir=$ac_optarg ;;
1039 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1040 | --syscon | --sysco | --sysc | --sys | --sy)
1041 ac_prev=sysconfdir ;;
1042 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1043 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1044 sysconfdir=$ac_optarg ;;
1046 -target | --target | --targe | --targ | --tar | --ta | --t)
1047 ac_prev=target_alias ;;
1048 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1049 target_alias=$ac_optarg ;;
1051 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1054 -version | --version | --versio | --versi | --vers | -V)
1055 ac_init_version=: ;;
1058 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1059 # Reject names that are not valid shell variable names.
1060 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1061 as_fn_error "invalid package name: $ac_useropt"
1062 ac_useropt_orig=$ac_useropt
1063 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1064 case $ac_user_opts in
1068 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1069 ac_unrecognized_sep=', ';;
1071 eval with_$ac_useropt=\$ac_optarg ;;
1073 -without-* | --without-*)
1074 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1075 # Reject names that are not valid shell variable names.
1076 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1077 as_fn_error "invalid package name: $ac_useropt"
1078 ac_useropt_orig=$ac_useropt
1079 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1080 case $ac_user_opts in
1084 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1085 ac_unrecognized_sep=', ';;
1087 eval with_$ac_useropt=no ;;
1090 # Obsolete; use --with-x.
1093 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1094 | --x-incl | --x-inc | --x-in | --x-i)
1095 ac_prev=x_includes ;;
1096 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1097 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1098 x_includes=$ac_optarg ;;
1100 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1101 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1102 ac_prev=x_libraries ;;
1103 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1104 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1105 x_libraries=$ac_optarg ;;
1107 -*) as_fn_error "unrecognized option: \`$ac_option'
1108 Try \`$0 --help' for more information."
1112 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1113 # Reject names that are not valid shell variable names.
1114 case $ac_envvar in #(
1115 '' | [0-9]* | *[!_$as_cr_alnum]* )
1116 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1118 eval $ac_envvar=\$ac_optarg
1119 export $ac_envvar ;;
1122 # FIXME: should be removed in autoconf 3.0.
1123 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1124 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1125 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1126 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1132 if test -n "$ac_prev"; then
1133 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1134 as_fn_error "missing argument to $ac_option"
1137 if test -n "$ac_unrecognized_opts"; then
1138 case $enable_option_checking in
1140 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1141 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1145 # Check all directory arguments for consistency.
1146 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1147 datadir sysconfdir sharedstatedir localstatedir includedir \
1148 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1149 libdir localedir mandir
1151 eval ac_val=\$$ac_var
1152 # Remove trailing slashes.
1155 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1156 eval $ac_var=\$ac_val;;
1158 # Be sure to have absolute directory names.
1160 [\\/$]* | ?:[\\/]* ) continue;;
1161 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1163 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1166 # There might be people who depend on the old broken behavior: `$host'
1167 # used to hold the argument of --host etc.
1168 # FIXME: To remove some day.
1171 target=$target_alias
1173 # FIXME: To remove some day.
1174 if test "x$host_alias" != x; then
1175 if test "x$build_alias" = x; then
1176 cross_compiling=maybe
1177 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1178 If a cross compiler is detected then cross compile mode will be used." >&2
1179 elif test "x$build_alias" != "x$host_alias"; then
1185 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1187 test "$silent" = yes && exec 6>/dev/null
1190 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1191 ac_ls_di=`ls -di .` &&
1192 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1193 as_fn_error "working directory cannot be determined"
1194 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1195 as_fn_error "pwd does not report name of working directory"
1198 # Find the source files, if location was not specified.
1199 if test -z "$srcdir"; then
1200 ac_srcdir_defaulted=yes
1201 # Try the directory containing this script, then the parent directory.
1202 ac_confdir=`$as_dirname -- "$as_myself" ||
1203 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1204 X"$as_myself" : 'X\(//\)[^/]' \| \
1205 X"$as_myself" : 'X\(//\)$' \| \
1206 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1207 $as_echo X"$as_myself" |
1208 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1226 if test ! -r "$srcdir/$ac_unique_file"; then
1230 ac_srcdir_defaulted=no
1232 if test ! -r "$srcdir/$ac_unique_file"; then
1233 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1234 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1236 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1238 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1240 # When building in place, set srcdir=.
1241 if test "$ac_abs_confdir" = "$ac_pwd"; then
1244 # Remove unnecessary trailing slashes from srcdir.
1245 # Double slashes in file names in object file debugging info
1246 # mess up M-x gdb in Emacs.
1248 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1250 for ac_var in $ac_precious_vars; do
1251 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1252 eval ac_env_${ac_var}_value=\$${ac_var}
1253 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1254 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1258 # Report the --help message.
1260 if test "$ac_init_help" = "long"; then
1261 # Omit some internal or obsolete options to make the list less imposing.
1262 # This message is too long to be a string in the A/UX 3.1 sh.
1264 \`configure' configures this package to adapt to many kinds of systems.
1266 Usage: $0 [OPTION]... [VAR=VALUE]...
1268 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1269 VAR=VALUE. See below for descriptions of some of the useful variables.
1271 Defaults for the options are specified in brackets.
1274 -h, --help display this help and exit
1275 --help=short display options specific to this package
1276 --help=recursive display the short help of all the included packages
1277 -V, --version display version information and exit
1278 -q, --quiet, --silent do not print \`checking...' messages
1279 --cache-file=FILE cache test results in FILE [disabled]
1280 -C, --config-cache alias for \`--cache-file=config.cache'
1281 -n, --no-create do not create output files
1282 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1284 Installation directories:
1285 --prefix=PREFIX install architecture-independent files in PREFIX
1286 [$ac_default_prefix]
1287 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1290 By default, \`make install' will install all the files in
1291 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1292 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1293 for instance \`--prefix=\$HOME'.
1295 For better control, use the options below.
1297 Fine tuning of the installation directories:
1298 --bindir=DIR user executables [EPREFIX/bin]
1299 --sbindir=DIR system admin executables [EPREFIX/sbin]
1300 --libexecdir=DIR program executables [EPREFIX/libexec]
1301 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1302 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1303 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1304 --libdir=DIR object code libraries [EPREFIX/lib]
1305 --includedir=DIR C header files [PREFIX/include]
1306 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1307 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1308 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1309 --infodir=DIR info documentation [DATAROOTDIR/info]
1310 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1311 --mandir=DIR man documentation [DATAROOTDIR/man]
1312 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1313 --htmldir=DIR html documentation [DOCDIR]
1314 --dvidir=DIR dvi documentation [DOCDIR]
1315 --pdfdir=DIR pdf documentation [DOCDIR]
1316 --psdir=DIR ps documentation [DOCDIR]
1323 if test -n "$ac_init_help"; then
1328 --disable-option-checking ignore unrecognized --enable/--with options
1329 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1330 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1331 --disable-errors Disable errors during configure.
1332 --enable-verbose-output Enable more verbose configure output.
1333 --enable-strict-compile Enable strict compilation (warnings are errors).
1334 --enable-debug-conf Enable debug during configuration.
1335 --enable-debug-cache Enable debug for transformation caching.
1336 --enable-debug-acmp Enable debugging acmp code.
1337 --enable-debug-mem Enable debug during configuration.
1338 --enable-performance-measurement
1339 Enable performance-measurement stats.
1340 --disable-modsec-api Disable the API; compiling against some older Apache
1341 versions require this.
1344 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1345 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1346 --with-apxs=FILE FILE is the path to apxs; defaults to "apxs".
1347 --with-pcre=PATH Path to pcre prefix or config script
1348 --with-apr=PATH Path to apr prefix or config script
1349 --with-apu=PATH Path to apu prefix or config script
1350 --with-libxml=PATH Path to libxml2 prefix or config script
1351 --with-lua=PATH Path to lua prefix or config script
1352 --with-curl=PATH Path to curl prefix or config script
1354 Some influential environment variables:
1355 CC C compiler command
1356 CFLAGS C compiler flags
1357 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1358 nonstandard directory <lib dir>
1359 LIBS libraries to pass to the linker, e.g. -l<library>
1360 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1361 you have headers in a nonstandard directory <include dir>
1364 Use these variables to override the choices made by `configure' or to help
1365 it to find libraries and programs with nonstandard names/locations.
1367 Report bugs to the package provider.
1372 if test "$ac_init_help" = "recursive"; then
1373 # If there are subdirs, report their specific --help.
1374 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1375 test -d "$ac_dir" ||
1376 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1381 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1383 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1384 # A ".." for each directory in $ac_dir_suffix.
1385 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1386 case $ac_top_builddir_sub in
1387 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1388 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1391 ac_abs_top_builddir=$ac_pwd
1392 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1393 # for backward compatibility:
1394 ac_top_builddir=$ac_top_build_prefix
1397 .) # We are building in place.
1399 ac_top_srcdir=$ac_top_builddir_sub
1400 ac_abs_top_srcdir=$ac_pwd ;;
1401 [\\/]* | ?:[\\/]* ) # Absolute name.
1402 ac_srcdir=$srcdir$ac_dir_suffix;
1403 ac_top_srcdir=$srcdir
1404 ac_abs_top_srcdir=$srcdir ;;
1406 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1407 ac_top_srcdir=$ac_top_build_prefix$srcdir
1408 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1410 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1412 cd "$ac_dir" || { ac_status=$?; continue; }
1413 # Check for guested configure.
1414 if test -f "$ac_srcdir/configure.gnu"; then
1416 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1417 elif test -f "$ac_srcdir/configure"; then
1419 $SHELL "$ac_srcdir/configure" --help=recursive
1421 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1423 cd "$ac_pwd" || { ac_status=$?; break; }
1427 test -n "$ac_init_help" && exit $ac_status
1428 if $ac_init_version; then
1431 generated by GNU Autoconf 2.64
1433 Copyright (C) 2009 Free Software Foundation, Inc.
1434 This configure script is free software; the Free Software Foundation
1435 gives unlimited permission to copy, distribute and modify it.
1440 ## ------------------------ ##
1441 ## Autoconf initialization. ##
1442 ## ------------------------ ##
1444 # ac_fn_c_try_compile LINENO
1445 # --------------------------
1446 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1447 ac_fn_c_try_compile ()
1449 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1450 rm -f conftest.$ac_objext
1451 if { { ac_try="$ac_compile"
1453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1454 *) ac_try_echo=$ac_try;;
1456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1457 $as_echo "$ac_try_echo"; } >&5
1458 (eval "$ac_compile") 2>conftest.err
1460 if test -s conftest.err; then
1461 grep -v '^ *+' conftest.err >conftest.er1
1462 cat conftest.er1 >&5
1463 mv -f conftest.er1 conftest.err
1465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1466 test $ac_status = 0; } && {
1467 test -z "$ac_c_werror_flag" ||
1468 test ! -s conftest.err
1469 } && test -s conftest.$ac_objext; then :
1472 $as_echo "$as_me: failed program was:" >&5
1473 sed 's/^/| /' conftest.$ac_ext >&5
1477 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1480 } # ac_fn_c_try_compile
1482 # ac_fn_c_try_cpp LINENO
1483 # ----------------------
1484 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1487 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1488 if { { ac_try="$ac_cpp conftest.$ac_ext"
1490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1491 *) ac_try_echo=$ac_try;;
1493 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1494 $as_echo "$ac_try_echo"; } >&5
1495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1497 if test -s conftest.err; then
1498 grep -v '^ *+' conftest.err >conftest.er1
1499 cat conftest.er1 >&5
1500 mv -f conftest.er1 conftest.err
1502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1503 test $ac_status = 0; } >/dev/null && {
1504 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1505 test ! -s conftest.err
1509 $as_echo "$as_me: failed program was:" >&5
1510 sed 's/^/| /' conftest.$ac_ext >&5
1514 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1519 # ac_fn_c_try_run LINENO
1520 # ----------------------
1521 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1522 # that executables *can* be run.
1525 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1526 if { { ac_try="$ac_link"
1528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1529 *) ac_try_echo=$ac_try;;
1531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1532 $as_echo "$ac_try_echo"; } >&5
1533 (eval "$ac_link") 2>&5
1535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1536 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1537 { { case "(($ac_try" in
1538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1539 *) ac_try_echo=$ac_try;;
1541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1542 $as_echo "$ac_try_echo"; } >&5
1543 (eval "$ac_try") 2>&5
1545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1546 test $ac_status = 0; }; }; then :
1549 $as_echo "$as_me: program exited with status $ac_status" >&5
1550 $as_echo "$as_me: failed program was:" >&5
1551 sed 's/^/| /' conftest.$ac_ext >&5
1553 ac_retval=$ac_status
1555 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1556 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1561 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1562 # -------------------------------------------------------
1563 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1564 # the include files in INCLUDES and setting the cache variable VAR
1566 ac_fn_c_check_header_mongrel ()
1568 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1569 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1571 $as_echo_n "checking for $2... " >&6; }
1572 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1573 $as_echo_n "(cached) " >&6
1576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1577 $as_echo "$ac_res" >&6; }
1579 # Is the header compilable?
1580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1581 $as_echo_n "checking $2 usability... " >&6; }
1582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1583 /* end confdefs.h. */
1587 if ac_fn_c_try_compile "$LINENO"; then :
1588 ac_header_compiler=yes
1590 ac_header_compiler=no
1592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1594 $as_echo "$ac_header_compiler" >&6; }
1596 # Is the header present?
1597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1598 $as_echo_n "checking $2 presence... " >&6; }
1599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1600 /* end confdefs.h. */
1603 if ac_fn_c_try_cpp "$LINENO"; then :
1604 ac_header_preproc=yes
1606 ac_header_preproc=no
1608 rm -f conftest.err conftest.$ac_ext
1609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1610 $as_echo "$ac_header_preproc" >&6; }
1612 # So? What about this header?
1613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1616 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1618 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1622 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1624 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1626 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1628 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1630 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1634 $as_echo_n "checking for $2... " >&6; }
1635 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1636 $as_echo_n "(cached) " >&6
1638 eval "$3=\$ac_header_compiler"
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1642 $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_mongrel
1648 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1649 # -------------------------------------------------------
1650 # Tests whether HEADER exists and can be compiled using the include files in
1651 # INCLUDES, setting the cache variable VAR accordingly.
1652 ac_fn_c_check_header_compile ()
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1656 $as_echo_n "checking for $2... " >&6; }
1657 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1658 $as_echo_n "(cached) " >&6
1660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1661 /* end confdefs.h. */
1665 if ac_fn_c_try_compile "$LINENO"; then :
1670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1674 $as_echo "$ac_res" >&6; }
1675 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1677 } # ac_fn_c_check_header_compile
1679 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1680 # -------------------------------------------
1681 # Tests whether TYPE exists after having included INCLUDES, setting cache
1682 # variable VAR accordingly.
1683 ac_fn_c_check_type ()
1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1687 $as_echo_n "checking for $2... " >&6; }
1688 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1689 $as_echo_n "(cached) " >&6
1692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1693 /* end confdefs.h. */
1704 if ac_fn_c_try_compile "$LINENO"; then :
1705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1706 /* end confdefs.h. */
1717 if ac_fn_c_try_compile "$LINENO"; then :
1722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1728 $as_echo "$ac_res" >&6; }
1729 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1731 } # ac_fn_c_check_type
1733 # ac_fn_c_find_uintX_t LINENO BITS VAR
1734 # ------------------------------------
1735 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1737 ac_fn_c_find_uintX_t ()
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1741 $as_echo_n "checking for uint$2_t... " >&6; }
1742 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1743 $as_echo_n "(cached) " >&6
1746 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1747 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749 /* end confdefs.h. */
1750 $ac_includes_default
1754 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
1761 if ac_fn_c_try_compile "$LINENO"; then :
1766 eval "$3=\$ac_type" ;;
1769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1771 if test "x$as_val" = x""no; then :
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1780 $as_echo "$ac_res" >&6; }
1781 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1783 } # ac_fn_c_find_uintX_t
1785 # ac_fn_c_try_link LINENO
1786 # -----------------------
1787 # Try to link conftest.$ac_ext, and return whether this succeeded.
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 rm -f conftest.$ac_objext conftest$ac_exeext
1792 if { { ac_try="$ac_link"
1794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1795 *) ac_try_echo=$ac_try;;
1797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1798 $as_echo "$ac_try_echo"; } >&5
1799 (eval "$ac_link") 2>conftest.err
1801 if test -s conftest.err; then
1802 grep -v '^ *+' conftest.err >conftest.er1
1803 cat conftest.er1 >&5
1804 mv -f conftest.er1 conftest.err
1806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1807 test $ac_status = 0; } && {
1808 test -z "$ac_c_werror_flag" ||
1809 test ! -s conftest.err
1810 } && test -s conftest$ac_exeext && {
1811 test "$cross_compiling" = yes ||
1812 $as_test_x conftest$ac_exeext
1816 $as_echo "$as_me: failed program was:" >&5
1817 sed 's/^/| /' conftest.$ac_ext >&5
1821 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1822 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1823 # interfere with the next link command; also delete a directory that is
1824 # left behind by Apple's compiler. We do this before executing the actions.
1825 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1826 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1829 } # ac_fn_c_try_link
1831 # ac_fn_c_check_func LINENO FUNC VAR
1832 # ----------------------------------
1833 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1834 ac_fn_c_check_func ()
1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1838 $as_echo_n "checking for $2... " >&6; }
1839 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1840 $as_echo_n "(cached) " >&6
1842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843 /* end confdefs.h. */
1844 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1846 #define $2 innocuous_$2
1848 /* System header to define __stub macros and hopefully few prototypes,
1849 which can conflict with char $2 (); below.
1850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1851 <limits.h> exists even on freestanding compilers. */
1854 # include <limits.h>
1856 # include <assert.h>
1861 /* Override any GCC internal prototype to avoid an error.
1862 Use char because int might match the return type of a GCC
1863 builtin and then its argument prototype would still apply. */
1868 /* The GNU C library defines this for functions which it implements
1869 to always fail with ENOSYS. Some functions are actually named
1870 something starting with __ and the normal name is an alias. */
1871 #if defined __stub_$2 || defined __stub___$2
1883 if ac_fn_c_try_link "$LINENO"; then :
1888 rm -f core conftest.err conftest.$ac_objext \
1889 conftest$ac_exeext conftest.$ac_ext
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1893 $as_echo "$ac_res" >&6; }
1894 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1896 } # ac_fn_c_check_func
1897 cat >config.log <<_ACEOF
1898 This file contains any messages produced by compilers while
1899 running configure, to aid debugging if configure makes a mistake.
1901 It was created by $as_me, which was
1902 generated by GNU Autoconf 2.64. Invocation command line was
1914 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1915 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1916 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1917 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1918 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1920 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1921 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1923 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1924 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1925 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1926 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1927 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1928 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1929 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1937 test -z "$as_dir" && as_dir=.
1938 $as_echo "PATH: $as_dir"
1954 # Keep a trace of the command line.
1955 # Strip out --no-create and --no-recursion so they do not pile up.
1956 # Strip out --silent because we don't want to record it for future runs.
1957 # Also quote any args containing shell meta-characters.
1958 # Make two passes to allow for proper duplicate-argument suppression.
1962 ac_must_keep_next=false
1968 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1969 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1970 | -silent | --silent | --silen | --sile | --sil)
1973 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1976 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1978 as_fn_append ac_configure_args1 " '$ac_arg'"
1979 if test $ac_must_keep_next = true; then
1980 ac_must_keep_next=false # Got value, back to normal.
1983 *=* | --config-cache | -C | -disable-* | --disable-* \
1984 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1985 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1986 | -with-* | --with-* | -without-* | --without-* | --x)
1987 case "$ac_configure_args0 " in
1988 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1991 -* ) ac_must_keep_next=true ;;
1994 as_fn_append ac_configure_args " '$ac_arg'"
1999 { ac_configure_args0=; unset ac_configure_args0;}
2000 { ac_configure_args1=; unset ac_configure_args1;}
2002 # When interrupted or exit'd, cleanup temporary files, and complete
2003 # config.log. We remove comments because anyway the quotes in there
2004 # would cause problems or look ugly.
2005 # WARNING: Use '\'' to represent an apostrophe within the trap.
2006 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2007 trap 'exit_status=$?
2008 # Save into config.log some information that might help in debugging.
2013 ## ---------------- ##
2014 ## Cache variables. ##
2015 ## ---------------- ##
2018 # The following way of writing the cache mishandles newlines in values,
2020 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2021 eval ac_val=\$$ac_var
2025 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2026 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2029 _ | IFS | as_nl) ;; #(
2030 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2031 *) { eval $ac_var=; unset $ac_var;} ;;
2036 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2037 *${as_nl}ac_space=\ *)
2039 "s/'\''/'\''\\\\'\'''\''/g;
2040 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2043 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2051 ## ----------------- ##
2052 ## Output variables. ##
2053 ## ----------------- ##
2056 for ac_var in $ac_subst_vars
2058 eval ac_val=\$$ac_var
2060 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2062 $as_echo "$ac_var='\''$ac_val'\''"
2066 if test -n "$ac_subst_files"; then
2068 ## ------------------- ##
2069 ## File substitutions. ##
2070 ## ------------------- ##
2073 for ac_var in $ac_subst_files
2075 eval ac_val=\$$ac_var
2077 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2079 $as_echo "$ac_var='\''$ac_val'\''"
2084 if test -s confdefs.h; then
2094 test "$ac_signal" != 0 &&
2095 $as_echo "$as_me: caught signal $ac_signal"
2096 $as_echo "$as_me: exit $exit_status"
2098 rm -f core *.core core.conftest.* &&
2099 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2102 for ac_signal in 1 2 13 15; do
2103 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2107 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2108 rm -f -r conftest* confdefs.h
2110 $as_echo "/* confdefs.h */" > confdefs.h
2112 # Predefined preprocessor variables.
2114 cat >>confdefs.h <<_ACEOF
2115 #define PACKAGE_NAME "$PACKAGE_NAME"
2118 cat >>confdefs.h <<_ACEOF
2119 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2122 cat >>confdefs.h <<_ACEOF
2123 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2126 cat >>confdefs.h <<_ACEOF
2127 #define PACKAGE_STRING "$PACKAGE_STRING"
2130 cat >>confdefs.h <<_ACEOF
2131 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2134 cat >>confdefs.h <<_ACEOF
2135 #define PACKAGE_URL "$PACKAGE_URL"
2139 # Let the site file select an alternate cache file if it wants to.
2140 # Prefer an explicitly selected file to automatically selected ones.
2143 if test -n "$CONFIG_SITE"; then
2144 ac_site_file1=$CONFIG_SITE
2145 elif test "x$prefix" != xNONE; then
2146 ac_site_file1=$prefix/share/config.site
2147 ac_site_file2=$prefix/etc/config.site
2149 ac_site_file1=$ac_default_prefix/share/config.site
2150 ac_site_file2=$ac_default_prefix/etc/config.site
2152 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2154 test "x$ac_site_file" = xNONE && continue
2155 if test -r "$ac_site_file"; then
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2157 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2158 sed 's/^/| /' "$ac_site_file" >&5
2163 if test -r "$cache_file"; then
2164 # Some versions of bash will fail to source /dev/null (special
2165 # files actually), so we avoid doing that.
2166 if test -f "$cache_file"; then
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2168 $as_echo "$as_me: loading cache $cache_file" >&6;}
2170 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2171 *) . "./$cache_file";;
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2176 $as_echo "$as_me: creating cache $cache_file" >&6;}
2180 # Check that the precious variables saved in the cache have kept the same
2182 ac_cache_corrupted=false
2183 for ac_var in $ac_precious_vars; do
2184 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2185 eval ac_new_set=\$ac_env_${ac_var}_set
2186 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2187 eval ac_new_val=\$ac_env_${ac_var}_value
2188 case $ac_old_set,$ac_new_set in
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2191 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2192 ac_cache_corrupted=: ;;
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2195 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2196 ac_cache_corrupted=: ;;
2199 if test "x$ac_old_val" != "x$ac_new_val"; then
2200 # differences in whitespace do not lead to failure.
2201 ac_old_val_w=`echo x $ac_old_val`
2202 ac_new_val_w=`echo x $ac_new_val`
2203 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2205 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2206 ac_cache_corrupted=:
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2209 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2210 eval $ac_var=\$ac_old_val
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2213 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2215 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2218 # Pass precious variables to config.status.
2219 if test "$ac_new_set" = set; then
2221 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2222 *) ac_arg=$ac_var=$ac_new_val ;;
2224 case " $ac_configure_args " in
2225 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2226 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2230 if $ac_cache_corrupted; then
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2234 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2235 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2237 ## -------------------- ##
2238 ## Main body of script. ##
2239 ## -------------------- ##
2242 ac_cpp='$CPP $CPPFLAGS'
2243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2249 ac_config_headers="$ac_config_headers mod_security2_config.h"
2252 for ac_dir in build "$srcdir"/build; do
2253 for ac_t in install-sh install.sh shtool; do
2254 if test -f "$ac_dir/$ac_t"; then
2256 ac_install_sh="$ac_aux_dir/$ac_t -c"
2261 if test -z "$ac_aux_dir"; then
2262 as_fn_error "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
2265 # These three variables are undocumented and unsupported,
2266 # and are intended to be withdrawn in a future Autoconf release.
2267 # They can cause serious problems if a builder's source tree is in a directory
2268 # whose full name contains unusual characters.
2269 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2270 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2271 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2275 # Checks for programs.
2276 for ac_prog in gawk mawk nawk awk
2278 # Extract the first word of "$ac_prog", so it can be a program name with args.
2279 set dummy $ac_prog; ac_word=$2
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2281 $as_echo_n "checking for $ac_word... " >&6; }
2282 if test "${ac_cv_prog_AWK+set}" = set; then :
2283 $as_echo_n "(cached) " >&6
2285 if test -n "$AWK"; then
2286 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292 test -z "$as_dir" && as_dir=.
2293 for ac_exec_ext in '' $ac_executable_extensions; do
2294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2295 ac_cv_prog_AWK="$ac_prog"
2296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2306 if test -n "$AWK"; then
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2308 $as_echo "$AWK" >&6; }
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2311 $as_echo "no" >&6; }
2315 test -n "$AWK" && break
2319 ac_cpp='$CPP $CPPFLAGS'
2320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2323 if test -n "$ac_tool_prefix"; then
2324 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2325 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2327 $as_echo_n "checking for $ac_word... " >&6; }
2328 if test "${ac_cv_prog_CC+set}" = set; then :
2329 $as_echo_n "(cached) " >&6
2331 if test -n "$CC"; then
2332 ac_cv_prog_CC="$CC" # Let the user override the test.
2334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2338 test -z "$as_dir" && as_dir=.
2339 for ac_exec_ext in '' $ac_executable_extensions; do
2340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2341 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2352 if test -n "$CC"; then
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2354 $as_echo "$CC" >&6; }
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2357 $as_echo "no" >&6; }
2362 if test -z "$ac_cv_prog_CC"; then
2364 # Extract the first word of "gcc", so it can be a program name with args.
2365 set dummy gcc; ac_word=$2
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2367 $as_echo_n "checking for $ac_word... " >&6; }
2368 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2369 $as_echo_n "(cached) " >&6
2371 if test -n "$ac_ct_CC"; then
2372 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2378 test -z "$as_dir" && as_dir=.
2379 for ac_exec_ext in '' $ac_executable_extensions; do
2380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2381 ac_cv_prog_ac_ct_CC="gcc"
2382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2391 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2392 if test -n "$ac_ct_CC"; then
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2394 $as_echo "$ac_ct_CC" >&6; }
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2397 $as_echo "no" >&6; }
2400 if test "x$ac_ct_CC" = x; then
2403 case $cross_compiling:$ac_tool_warned in
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2407 ac_tool_warned=yes ;;
2415 if test -z "$CC"; then
2416 if test -n "$ac_tool_prefix"; then
2417 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2418 set dummy ${ac_tool_prefix}cc; ac_word=$2
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2420 $as_echo_n "checking for $ac_word... " >&6; }
2421 if test "${ac_cv_prog_CC+set}" = set; then :
2422 $as_echo_n "(cached) " >&6
2424 if test -n "$CC"; then
2425 ac_cv_prog_CC="$CC" # Let the user override the test.
2427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2431 test -z "$as_dir" && as_dir=.
2432 for ac_exec_ext in '' $ac_executable_extensions; do
2433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2434 ac_cv_prog_CC="${ac_tool_prefix}cc"
2435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2445 if test -n "$CC"; then
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2447 $as_echo "$CC" >&6; }
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2450 $as_echo "no" >&6; }
2456 if test -z "$CC"; then
2457 # Extract the first word of "cc", so it can be a program name with args.
2458 set dummy cc; ac_word=$2
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2460 $as_echo_n "checking for $ac_word... " >&6; }
2461 if test "${ac_cv_prog_CC+set}" = set; then :
2462 $as_echo_n "(cached) " >&6
2464 if test -n "$CC"; then
2465 ac_cv_prog_CC="$CC" # Let the user override the test.
2468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472 test -z "$as_dir" && as_dir=.
2473 for ac_exec_ext in '' $ac_executable_extensions; do
2474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2475 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2476 ac_prog_rejected=yes
2480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2487 if test $ac_prog_rejected = yes; then
2488 # We found a bogon in the path, so make sure we never use it.
2489 set dummy $ac_cv_prog_CC
2491 if test $# != 0; then
2492 # We chose a different compiler from the bogus one.
2493 # However, it has the same basename, so the bogon will be chosen
2494 # first if we set CC to just the basename; use the full file name.
2496 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2502 if test -n "$CC"; then
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2504 $as_echo "$CC" >&6; }
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2507 $as_echo "no" >&6; }
2512 if test -z "$CC"; then
2513 if test -n "$ac_tool_prefix"; then
2514 for ac_prog in cl.exe
2516 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2517 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2519 $as_echo_n "checking for $ac_word... " >&6; }
2520 if test "${ac_cv_prog_CC+set}" = set; then :
2521 $as_echo_n "(cached) " >&6
2523 if test -n "$CC"; then
2524 ac_cv_prog_CC="$CC" # Let the user override the test.
2526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2530 test -z "$as_dir" && as_dir=.
2531 for ac_exec_ext in '' $ac_executable_extensions; do
2532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2533 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2544 if test -n "$CC"; then
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2546 $as_echo "$CC" >&6; }
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2549 $as_echo "no" >&6; }
2553 test -n "$CC" && break
2556 if test -z "$CC"; then
2558 for ac_prog in cl.exe
2560 # Extract the first word of "$ac_prog", so it can be a program name with args.
2561 set dummy $ac_prog; ac_word=$2
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2563 $as_echo_n "checking for $ac_word... " >&6; }
2564 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2565 $as_echo_n "(cached) " >&6
2567 if test -n "$ac_ct_CC"; then
2568 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574 test -z "$as_dir" && as_dir=.
2575 for ac_exec_ext in '' $ac_executable_extensions; do
2576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2577 ac_cv_prog_ac_ct_CC="$ac_prog"
2578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2587 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2588 if test -n "$ac_ct_CC"; then
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2590 $as_echo "$ac_ct_CC" >&6; }
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2593 $as_echo "no" >&6; }
2597 test -n "$ac_ct_CC" && break
2600 if test "x$ac_ct_CC" = x; then
2603 case $cross_compiling:$ac_tool_warned in
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2606 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2607 ac_tool_warned=yes ;;
2616 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2617 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2618 as_fn_error "no acceptable C compiler found in \$PATH
2619 See \`config.log' for more details." "$LINENO" 5; }
2621 # Provide some information about the compiler.
2622 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2625 for ac_option in --version -v -V -qversion; do
2626 { { ac_try="$ac_compiler $ac_option >&5"
2628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2629 *) ac_try_echo=$ac_try;;
2631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2632 $as_echo "$ac_try_echo"; } >&5
2633 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2635 if test -s conftest.err; then
2637 ... rest of stderr output deleted ...
2638 10q' conftest.err >conftest.er1
2639 cat conftest.er1 >&5
2640 rm -f conftest.er1 conftest.err
2642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2643 test $ac_status = 0; }
2646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2647 /* end confdefs.h. */
2652 FILE *f = fopen ("conftest.out", "w");
2653 return ferror (f) || fclose (f) != 0;
2659 ac_clean_files_save=$ac_clean_files
2660 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2661 # Try to create an executable without -o first, disregard a.out.
2662 # It will help us diagnose broken compilers, and finding out an intuition
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2665 $as_echo_n "checking for C compiler default output file name... " >&6; }
2666 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2668 # The possible output files:
2669 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2672 for ac_file in $ac_files
2675 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2676 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2681 if { { ac_try="$ac_link_default"
2683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2684 *) ac_try_echo=$ac_try;;
2686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2687 $as_echo "$ac_try_echo"; } >&5
2688 (eval "$ac_link_default") 2>&5
2690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2691 test $ac_status = 0; }; then :
2692 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2693 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2694 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2695 # so that the user can short-circuit this test for compilers unknown to
2697 for ac_file in $ac_files ''
2699 test -f "$ac_file" || continue
2701 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2704 # We found the default executable, but exeext='' is most
2708 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2710 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2712 # We set ac_cv_exeext here because the later test for it is not
2713 # safe: cross compilers may not add the suffix if given an `-o'
2714 # argument, so we may need to know it at that point already.
2715 # Even if this section looks crufty: it has the advantage of
2722 test "$ac_cv_exeext" = no && ac_cv_exeext=
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2728 $as_echo "$ac_file" >&6; }
2729 if test -z "$ac_file"; then :
2730 $as_echo "$as_me: failed program was:" >&5
2731 sed 's/^/| /' conftest.$ac_ext >&5
2733 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2734 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2735 { as_fn_set_status 77
2736 as_fn_error "C compiler cannot create executables
2737 See \`config.log' for more details." "$LINENO" 5; }; }
2739 ac_exeext=$ac_cv_exeext
2741 # Check that the compiler produces executables we can run. If not, either
2742 # the compiler is broken, or we cross compile.
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2744 $as_echo_n "checking whether the C compiler works... " >&6; }
2745 # If not cross compiling, check that we can run a simple program.
2746 if test "$cross_compiling" != yes; then
2747 if { ac_try='./$ac_file'
2748 { { case "(($ac_try" in
2749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2750 *) ac_try_echo=$ac_try;;
2752 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2753 $as_echo "$ac_try_echo"; } >&5
2754 (eval "$ac_try") 2>&5
2756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2757 test $ac_status = 0; }; }; then
2760 if test "$cross_compiling" = maybe; then
2763 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2764 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2765 as_fn_error "cannot run C compiled programs.
2766 If you meant to cross compile, use \`--host'.
2767 See \`config.log' for more details." "$LINENO" 5; }
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2772 $as_echo "yes" >&6; }
2774 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2775 ac_clean_files=$ac_clean_files_save
2776 # Check that the compiler produces executables we can run. If not, either
2777 # the compiler is broken, or we cross compile.
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2779 $as_echo_n "checking whether we are cross compiling... " >&6; }
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2781 $as_echo "$cross_compiling" >&6; }
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2784 $as_echo_n "checking for suffix of executables... " >&6; }
2785 if { { ac_try="$ac_link"
2787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2788 *) ac_try_echo=$ac_try;;
2790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2791 $as_echo "$ac_try_echo"; } >&5
2792 (eval "$ac_link") 2>&5
2794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2795 test $ac_status = 0; }; then :
2796 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2797 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2798 # work properly (i.e., refer to `conftest.exe'), while it won't with
2800 for ac_file in conftest.exe conftest conftest.*; do
2801 test -f "$ac_file" || continue
2803 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2804 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2810 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2811 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2812 as_fn_error "cannot compute suffix of executables: cannot compile and link
2813 See \`config.log' for more details." "$LINENO" 5; }
2815 rm -f conftest$ac_cv_exeext
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2817 $as_echo "$ac_cv_exeext" >&6; }
2819 rm -f conftest.$ac_ext
2820 EXEEXT=$ac_cv_exeext
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2823 $as_echo_n "checking for suffix of object files... " >&6; }
2824 if test "${ac_cv_objext+set}" = set; then :
2825 $as_echo_n "(cached) " >&6
2827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2828 /* end confdefs.h. */
2838 rm -f conftest.o conftest.obj
2839 if { { ac_try="$ac_compile"
2841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2842 *) ac_try_echo=$ac_try;;
2844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2845 $as_echo "$ac_try_echo"; } >&5
2846 (eval "$ac_compile") 2>&5
2848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2849 test $ac_status = 0; }; then :
2850 for ac_file in conftest.o conftest.obj conftest.*; do
2851 test -f "$ac_file" || continue;
2853 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2854 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2859 $as_echo "$as_me: failed program was:" >&5
2860 sed 's/^/| /' conftest.$ac_ext >&5
2862 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2863 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2864 as_fn_error "cannot compute suffix of object files: cannot compile
2865 See \`config.log' for more details." "$LINENO" 5; }
2867 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2870 $as_echo "$ac_cv_objext" >&6; }
2871 OBJEXT=$ac_cv_objext
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2874 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2875 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2876 $as_echo_n "(cached) " >&6
2878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2879 /* end confdefs.h. */
2892 if ac_fn_c_try_compile "$LINENO"; then :
2897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2898 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2902 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2903 if test $ac_compiler_gnu = yes; then
2908 ac_test_CFLAGS=${CFLAGS+set}
2909 ac_save_CFLAGS=$CFLAGS
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2911 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2912 if test "${ac_cv_prog_cc_g+set}" = set; then :
2913 $as_echo_n "(cached) " >&6
2915 ac_save_c_werror_flag=$ac_c_werror_flag
2916 ac_c_werror_flag=yes
2919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2920 /* end confdefs.h. */
2930 if ac_fn_c_try_compile "$LINENO"; then :
2934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2935 /* end confdefs.h. */
2945 if ac_fn_c_try_compile "$LINENO"; then :
2948 ac_c_werror_flag=$ac_save_c_werror_flag
2950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2951 /* end confdefs.h. */
2961 if ac_fn_c_try_compile "$LINENO"; then :
2964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2969 ac_c_werror_flag=$ac_save_c_werror_flag
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2972 $as_echo "$ac_cv_prog_cc_g" >&6; }
2973 if test "$ac_test_CFLAGS" = set; then
2974 CFLAGS=$ac_save_CFLAGS
2975 elif test $ac_cv_prog_cc_g = yes; then
2976 if test "$GCC" = yes; then
2982 if test "$GCC" = yes; then
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2989 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2990 if test "${ac_cv_prog_cc_c89+set}" = set; then :
2991 $as_echo_n "(cached) " >&6
2993 ac_cv_prog_cc_c89=no
2995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2996 /* end confdefs.h. */
2999 #include <sys/types.h>
3000 #include <sys/stat.h>
3001 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3002 struct buf { int x; };
3003 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3004 static char *e (p, i)
3010 static char *f (char * (*g) (char **, int), char **p, ...)
3015 s = g (p, va_arg (v,int));
3020 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3021 function prototypes and stuff, but not '\xHH' hex character constants.
3022 These don't provoke an error unfortunately, instead are silently treated
3023 as 'x'. The following induces an error, until -std is added to get
3024 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3025 array size at least. It's necessary to write '\x00'==0 to get something
3026 that's true only with -std. */
3027 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3029 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3030 inside strings and character constants. */
3032 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3034 int test (int i, double x);
3035 struct s1 {int (*f) (int a);};
3036 struct s2 {int (*f) (double a);};
3037 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3043 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3048 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3049 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3051 CC="$ac_save_CC $ac_arg"
3052 if ac_fn_c_try_compile "$LINENO"; then :
3053 ac_cv_prog_cc_c89=$ac_arg
3055 rm -f core conftest.err conftest.$ac_objext
3056 test "x$ac_cv_prog_cc_c89" != "xno" && break
3058 rm -f conftest.$ac_ext
3063 case "x$ac_cv_prog_cc_c89" in
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3066 $as_echo "none needed" >&6; } ;;
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3069 $as_echo "unsupported" >&6; } ;;
3071 CC="$CC $ac_cv_prog_cc_c89"
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3073 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3075 if test "x$ac_cv_prog_cc_c89" != xno; then :
3080 ac_cpp='$CPP $CPPFLAGS'
3081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3086 ac_cpp='$CPP $CPPFLAGS'
3087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3091 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3092 # On Suns, sometimes $CPP names a directory.
3093 if test -n "$CPP" && test -d "$CPP"; then
3096 if test -z "$CPP"; then
3097 if test "${ac_cv_prog_CPP+set}" = set; then :
3098 $as_echo_n "(cached) " >&6
3100 # Double quotes because CPP needs to be expanded
3101 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3104 for ac_c_preproc_warn_flag in '' yes
3106 # Use a header file that comes with gcc, so configuring glibc
3107 # with a fresh cross-compiler works.
3108 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3109 # <limits.h> exists even on freestanding compilers.
3110 # On the NeXT, cc -E runs the code through the compiler's parser,
3111 # not just through cpp. "Syntax error" is here to catch this case.
3112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3113 /* end confdefs.h. */
3115 # include <limits.h>
3117 # include <assert.h>
3121 if ac_fn_c_try_cpp "$LINENO"; then :
3124 # Broken: fails on valid input.
3127 rm -f conftest.err conftest.$ac_ext
3129 # OK, works on sane cases. Now check whether nonexistent headers
3130 # can be detected and how.
3131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3132 /* end confdefs.h. */
3133 #include <ac_nonexistent.h>
3135 if ac_fn_c_try_cpp "$LINENO"; then :
3136 # Broken: success on invalid input.
3139 # Passes both tests.
3143 rm -f conftest.err conftest.$ac_ext
3146 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3147 rm -f conftest.err conftest.$ac_ext
3148 if $ac_preproc_ok; then :
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3161 $as_echo "$CPP" >&6; }
3163 for ac_c_preproc_warn_flag in '' yes
3165 # Use a header file that comes with gcc, so configuring glibc
3166 # with a fresh cross-compiler works.
3167 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3168 # <limits.h> exists even on freestanding compilers.
3169 # On the NeXT, cc -E runs the code through the compiler's parser,
3170 # not just through cpp. "Syntax error" is here to catch this case.
3171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3172 /* end confdefs.h. */
3174 # include <limits.h>
3176 # include <assert.h>
3180 if ac_fn_c_try_cpp "$LINENO"; then :
3183 # Broken: fails on valid input.
3186 rm -f conftest.err conftest.$ac_ext
3188 # OK, works on sane cases. Now check whether nonexistent headers
3189 # can be detected and how.
3190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3191 /* end confdefs.h. */
3192 #include <ac_nonexistent.h>
3194 if ac_fn_c_try_cpp "$LINENO"; then :
3195 # Broken: success on invalid input.
3198 # Passes both tests.
3202 rm -f conftest.err conftest.$ac_ext
3205 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3206 rm -f conftest.err conftest.$ac_ext
3207 if $ac_preproc_ok; then :
3210 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3211 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3212 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3213 See \`config.log' for more details." "$LINENO" 5; }
3217 ac_cpp='$CPP $CPPFLAGS'
3218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3222 # Find a good install program. We prefer a C program (faster),
3223 # so one script is as good as another. But avoid the broken or
3224 # incompatible versions:
3225 # SysV /etc/install, /usr/sbin/install
3226 # SunOS /usr/etc/install
3227 # IRIX /sbin/install
3229 # AmigaOS /C/install, which installs bootblocks on floppy discs
3230 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3231 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3232 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3233 # OS/2's system install, which has a completely different semantic
3234 # ./install, which can be erroneously created by make from ./install.sh.
3235 # Reject install programs that cannot install multiple files.
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3237 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3238 if test -z "$INSTALL"; then
3239 if test "${ac_cv_path_install+set}" = set; then :
3240 $as_echo_n "(cached) " >&6
3242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3246 test -z "$as_dir" && as_dir=.
3247 # Account for people who put trailing slashes in PATH elements.
3248 case $as_dir/ in #((
3249 ./ | .// | /[cC]/* | \
3250 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3251 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3254 # OSF1 and SCO ODT 3.0 have their own names for install.
3255 # Don't use installbsd from OSF since it installs stuff as root
3257 for ac_prog in ginstall scoinst install; do
3258 for ac_exec_ext in '' $ac_executable_extensions; do
3259 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3260 if test $ac_prog = install &&
3261 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3262 # AIX install. It has an incompatible calling convention.
3264 elif test $ac_prog = install &&
3265 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3266 # program-specific install script used by HP pwplus--don't use.
3269 rm -rf conftest.one conftest.two conftest.dir
3270 echo one > conftest.one
3271 echo two > conftest.two
3273 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3274 test -s conftest.one && test -s conftest.two &&
3275 test -s conftest.dir/conftest.one &&
3276 test -s conftest.dir/conftest.two
3278 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3291 rm -rf conftest.one conftest.two conftest.dir
3294 if test "${ac_cv_path_install+set}" = set; then
3295 INSTALL=$ac_cv_path_install
3297 # As a last resort, use the slow shell script. Don't cache a
3298 # value for INSTALL within a source directory, because that will
3299 # break other packages using the cache if that directory is
3300 # removed, or if the value is a relative name.
3301 INSTALL=$ac_install_sh
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3305 $as_echo "$INSTALL" >&6; }
3307 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3308 # It thinks the first close brace ends the variable substitution.
3309 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3311 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3313 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3316 $as_echo_n "checking whether ln -s works... " >&6; }
3318 if test "$LN_S" = "ln -s"; then
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3320 $as_echo "yes" >&6; }
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3323 $as_echo "no, using $LN_S" >&6; }
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3327 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3329 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3330 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3331 $as_echo_n "(cached) " >&6
3333 cat >conftest.make <<\_ACEOF
3336 @echo '@@@%%%=$(MAKE)=@@@%%%'
3338 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3339 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3341 eval ac_cv_prog_make_${ac_make}_set=yes;;
3343 eval ac_cv_prog_make_${ac_make}_set=no;;
3347 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3349 $as_echo "yes" >&6; }
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3353 $as_echo "no" >&6; }
3354 SET_MAKE="MAKE=${MAKE-make}"
3357 if test -n "$ac_tool_prefix"; then
3358 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3359 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3361 $as_echo_n "checking for $ac_word... " >&6; }
3362 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3363 $as_echo_n "(cached) " >&6
3365 if test -n "$RANLIB"; then
3366 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372 test -z "$as_dir" && as_dir=.
3373 for ac_exec_ext in '' $ac_executable_extensions; do
3374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3375 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3385 RANLIB=$ac_cv_prog_RANLIB
3386 if test -n "$RANLIB"; then
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3388 $as_echo "$RANLIB" >&6; }
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3391 $as_echo "no" >&6; }
3396 if test -z "$ac_cv_prog_RANLIB"; then
3397 ac_ct_RANLIB=$RANLIB
3398 # Extract the first word of "ranlib", so it can be a program name with args.
3399 set dummy ranlib; ac_word=$2
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3401 $as_echo_n "checking for $ac_word... " >&6; }
3402 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3403 $as_echo_n "(cached) " >&6
3405 if test -n "$ac_ct_RANLIB"; then
3406 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3412 test -z "$as_dir" && as_dir=.
3413 for ac_exec_ext in '' $ac_executable_extensions; do
3414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3415 ac_cv_prog_ac_ct_RANLIB="ranlib"
3416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3425 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3426 if test -n "$ac_ct_RANLIB"; then
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3428 $as_echo "$ac_ct_RANLIB" >&6; }
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3431 $as_echo "no" >&6; }
3434 if test "x$ac_ct_RANLIB" = x; then
3437 case $cross_compiling:$ac_tool_warned in
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3440 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3441 ac_tool_warned=yes ;;
3443 RANLIB=$ac_ct_RANLIB
3446 RANLIB="$ac_cv_prog_RANLIB"
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3450 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3451 if test "${ac_cv_path_GREP+set}" = set; then :
3452 $as_echo_n "(cached) " >&6
3454 if test -z "$GREP"; then
3455 ac_path_GREP_found=false
3456 # Loop through the user's path and test for each of PROGNAME-LIST
3457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3458 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3461 test -z "$as_dir" && as_dir=.
3462 for ac_prog in grep ggrep; do
3463 for ac_exec_ext in '' $ac_executable_extensions; do
3464 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3465 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3466 # Check for GNU ac_path_GREP and select it if it is found.
3467 # Check for GNU $ac_path_GREP
3468 case `"$ac_path_GREP" --version 2>&1` in
3470 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3473 $as_echo_n 0123456789 >"conftest.in"
3476 cat "conftest.in" "conftest.in" >"conftest.tmp"
3477 mv "conftest.tmp" "conftest.in"
3478 cp "conftest.in" "conftest.nl"
3479 $as_echo 'GREP' >> "conftest.nl"
3480 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3481 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3482 as_fn_arith $ac_count + 1 && ac_count=$as_val
3483 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3484 # Best one so far, save it but keep looking for a better one
3485 ac_cv_path_GREP="$ac_path_GREP"
3486 ac_path_GREP_max=$ac_count
3488 # 10*(2^10) chars as input seems more than enough
3489 test $ac_count -gt 10 && break
3491 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3494 $ac_path_GREP_found && break 3
3499 if test -z "$ac_cv_path_GREP"; then
3500 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3503 ac_cv_path_GREP=$GREP
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3508 $as_echo "$ac_cv_path_GREP" >&6; }
3509 GREP="$ac_cv_path_GREP"
3512 for ac_prog in perl perl5
3514 # Extract the first word of "$ac_prog", so it can be a program name with args.
3515 set dummy $ac_prog; ac_word=$2
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3517 $as_echo_n "checking for $ac_word... " >&6; }
3518 if test "${ac_cv_path_PERL+set}" = set; then :
3519 $as_echo_n "(cached) " >&6
3523 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3530 test -z "$as_dir" && as_dir=.
3531 for ac_exec_ext in '' $ac_executable_extensions; do
3532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3533 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
3534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3544 PERL=$ac_cv_path_PERL
3545 if test -n "$PERL"; then
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
3547 $as_echo "$PERL" >&6; }
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3550 $as_echo "no" >&6; }
3554 test -n "$PERL" && break
3557 for ac_prog in env printenv
3559 # Extract the first word of "$ac_prog", so it can be a program name with args.
3560 set dummy $ac_prog; ac_word=$2
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3562 $as_echo_n "checking for $ac_word... " >&6; }
3563 if test "${ac_cv_path_ENV_CMD+set}" = set; then :
3564 $as_echo_n "(cached) " >&6
3568 ac_cv_path_ENV_CMD="$ENV_CMD" # Let the user override the test with a path.
3571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3575 test -z "$as_dir" && as_dir=.
3576 for ac_exec_ext in '' $ac_executable_extensions; do
3577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3578 ac_cv_path_ENV_CMD="$as_dir/$ac_word$ac_exec_ext"
3579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3589 ENV_CMD=$ac_cv_path_ENV_CMD
3590 if test -n "$ENV_CMD"; then
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENV_CMD" >&5
3592 $as_echo "$ENV_CMD" >&6; }
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3595 $as_echo "no" >&6; }
3599 test -n "$ENV_CMD" && break
3603 # Checks for header files.
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3607 $as_echo_n "checking for egrep... " >&6; }
3608 if test "${ac_cv_path_EGREP+set}" = set; then :
3609 $as_echo_n "(cached) " >&6
3611 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3612 then ac_cv_path_EGREP="$GREP -E"
3614 if test -z "$EGREP"; then
3615 ac_path_EGREP_found=false
3616 # Loop through the user's path and test for each of PROGNAME-LIST
3617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3618 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3621 test -z "$as_dir" && as_dir=.
3622 for ac_prog in egrep; do
3623 for ac_exec_ext in '' $ac_executable_extensions; do
3624 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3625 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3626 # Check for GNU ac_path_EGREP and select it if it is found.
3627 # Check for GNU $ac_path_EGREP
3628 case `"$ac_path_EGREP" --version 2>&1` in
3630 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3633 $as_echo_n 0123456789 >"conftest.in"
3636 cat "conftest.in" "conftest.in" >"conftest.tmp"
3637 mv "conftest.tmp" "conftest.in"
3638 cp "conftest.in" "conftest.nl"
3639 $as_echo 'EGREP' >> "conftest.nl"
3640 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3641 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3642 as_fn_arith $ac_count + 1 && ac_count=$as_val
3643 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3644 # Best one so far, save it but keep looking for a better one
3645 ac_cv_path_EGREP="$ac_path_EGREP"
3646 ac_path_EGREP_max=$ac_count
3648 # 10*(2^10) chars as input seems more than enough
3649 test $ac_count -gt 10 && break
3651 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3654 $ac_path_EGREP_found && break 3
3659 if test -z "$ac_cv_path_EGREP"; then
3660 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3663 ac_cv_path_EGREP=$EGREP
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3669 $as_echo "$ac_cv_path_EGREP" >&6; }
3670 EGREP="$ac_cv_path_EGREP"
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3674 $as_echo_n "checking for ANSI C header files... " >&6; }
3675 if test "${ac_cv_header_stdc+set}" = set; then :
3676 $as_echo_n "(cached) " >&6
3678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3679 /* end confdefs.h. */
3693 if ac_fn_c_try_compile "$LINENO"; then :
3694 ac_cv_header_stdc=yes
3696 ac_cv_header_stdc=no
3698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3700 if test $ac_cv_header_stdc = yes; then
3701 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3703 /* end confdefs.h. */
3707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3708 $EGREP "memchr" >/dev/null 2>&1; then :
3711 ac_cv_header_stdc=no
3717 if test $ac_cv_header_stdc = yes; then
3718 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3720 /* end confdefs.h. */
3724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3725 $EGREP "free" >/dev/null 2>&1; then :
3728 ac_cv_header_stdc=no
3734 if test $ac_cv_header_stdc = yes; then
3735 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3736 if test "$cross_compiling" = yes; then :
3739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740 /* end confdefs.h. */
3743 #if ((' ' & 0x0FF) == 0x020)
3744 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3745 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3747 # define ISLOWER(c) \
3748 (('a' <= (c) && (c) <= 'i') \
3749 || ('j' <= (c) && (c) <= 'r') \
3750 || ('s' <= (c) && (c) <= 'z'))
3751 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3754 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3759 for (i = 0; i < 256; i++)
3760 if (XOR (islower (i), ISLOWER (i))
3761 || toupper (i) != TOUPPER (i))
3766 if ac_fn_c_try_run "$LINENO"; then :
3769 ac_cv_header_stdc=no
3771 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3772 conftest.$ac_objext conftest.beam conftest.$ac_ext
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3778 $as_echo "$ac_cv_header_stdc" >&6; }
3779 if test $ac_cv_header_stdc = yes; then
3781 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3785 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3786 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3787 inttypes.h stdint.h unistd.h
3789 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3790 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3792 eval as_val=\$$as_ac_Header
3793 if test "x$as_val" = x""yes; then :
3794 cat >>confdefs.h <<_ACEOF
3795 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3803 for ac_header in fcntl.h limits.h stdlib.h string.h unistd.h sys/types.h sys/stat.h
3805 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3806 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
3807 eval as_val=\$$as_ac_Header
3808 if test "x$as_val" = x""yes; then :
3809 cat >>confdefs.h <<_ACEOF
3810 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3818 # Checks for typedefs, structures, and compiler characteristics.
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
3820 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
3821 if test "${ac_cv_c_const+set}" = set; then :
3822 $as_echo_n "(cached) " >&6
3824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3825 /* end confdefs.h. */
3830 /* FIXME: Include the comments suggested by Paul. */
3832 /* Ultrix mips cc rejects this. */
3833 typedef int charset[2];
3835 /* SunOS 4.1.1 cc rejects this. */
3836 char const *const *pcpcc;
3838 /* NEC SVR4.0.2 mips cc rejects this. */
3839 struct point {int x, y;};
3840 static struct point const zero = {0,0};
3841 /* AIX XL C 1.02.0.0 rejects this.
3842 It does not let you subtract one const X* pointer from another in
3843 an arm of an if-expression whose if-part is not a constant
3845 const char *g = "string";
3846 pcpcc = &g + (g ? g-g : 0);
3847 /* HPUX 7.0 cc rejects these. */
3849 ppc = (char**) pcpcc;
3850 pcpcc = (char const *const *) ppc;
3851 { /* SCO 3.2v4 cc rejects this. */
3853 char const *s = 0 ? (char *) 0 : (char const *) 0;
3858 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3860 const int *foo = &x[0];
3863 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3864 typedef const int *iptr;
3868 { /* AIX XL C 1.02.0.0 rejects this saying
3869 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3870 struct s { int j; const int *ap[3]; };
3871 struct s *b; b->j = 5;
3873 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3877 return !cs[0] && !zero.x;
3884 if ac_fn_c_try_compile "$LINENO"; then :
3889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
3892 $as_echo "$ac_cv_c_const" >&6; }
3893 if test $ac_cv_c_const = no; then
3895 $as_echo "#define const /**/" >>confdefs.h
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
3900 $as_echo_n "checking for inline... " >&6; }
3901 if test "${ac_cv_c_inline+set}" = set; then :
3902 $as_echo_n "(cached) " >&6
3905 for ac_kw in inline __inline__ __inline; do
3906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3907 /* end confdefs.h. */
3910 static $ac_kw foo_t static_foo () {return 0; }
3911 $ac_kw foo_t foo () {return 0; }
3915 if ac_fn_c_try_compile "$LINENO"; then :
3916 ac_cv_c_inline=$ac_kw
3918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3919 test "$ac_cv_c_inline" != no && break
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
3924 $as_echo "$ac_cv_c_inline" >&6; }
3926 case $ac_cv_c_inline in
3929 case $ac_cv_c_inline in
3931 *) ac_val=$ac_cv_c_inline;;
3933 cat >>confdefs.h <<_ACEOF
3935 #define inline $ac_val
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
3942 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
3943 if test "${ac_cv_c_restrict+set}" = set; then :
3944 $as_echo_n "(cached) " >&6
3947 # The order here caters to the fact that C++ does not require restrict.
3948 for ac_kw in __restrict __restrict__ _Restrict restrict; do
3949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3950 /* end confdefs.h. */
3951 typedef int * int_ptr;
3952 int foo (int_ptr $ac_kw ip) {
3966 if ac_fn_c_try_compile "$LINENO"; then :
3967 ac_cv_c_restrict=$ac_kw
3969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3970 test "$ac_cv_c_restrict" != no && break
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
3975 $as_echo "$ac_cv_c_restrict" >&6; }
3977 case $ac_cv_c_restrict in
3979 no) $as_echo "#define restrict /**/" >>confdefs.h
3981 *) cat >>confdefs.h <<_ACEOF
3982 #define restrict $ac_cv_c_restrict
3987 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
3988 if test "x$ac_cv_type_pid_t" = x""yes; then :
3992 cat >>confdefs.h <<_ACEOF
3998 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
3999 if test "x$ac_cv_type_size_t" = x""yes; then :
4003 cat >>confdefs.h <<_ACEOF
4004 #define size_t unsigned int
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
4010 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
4011 if test "${ac_cv_struct_tm+set}" = set; then :
4012 $as_echo_n "(cached) " >&6
4014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4015 /* end confdefs.h. */
4016 #include <sys/types.h>
4023 int *p = &tm.tm_sec;
4029 if ac_fn_c_try_compile "$LINENO"; then :
4030 ac_cv_struct_tm=time.h
4032 ac_cv_struct_tm=sys/time.h
4034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
4037 $as_echo "$ac_cv_struct_tm" >&6; }
4038 if test $ac_cv_struct_tm = sys/time.h; then
4040 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
4044 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
4045 case $ac_cv_c_uint8_t in #(
4049 $as_echo "#define _UINT8_T 1" >>confdefs.h
4052 cat >>confdefs.h <<_ACEOF
4053 #define uint8_t $ac_cv_c_uint8_t
4059 # Checks for library functions.
4060 for ac_header in stdlib.h
4062 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4063 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
4064 cat >>confdefs.h <<_ACEOF
4065 #define HAVE_STDLIB_H 1
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
4073 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
4074 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
4075 $as_echo_n "(cached) " >&6
4077 if test "$cross_compiling" = yes; then :
4078 ac_cv_func_malloc_0_nonnull=no
4080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4081 /* end confdefs.h. */
4082 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
4083 # include <stdlib.h>
4091 return ! malloc (0);
4096 if ac_fn_c_try_run "$LINENO"; then :
4097 ac_cv_func_malloc_0_nonnull=yes
4099 ac_cv_func_malloc_0_nonnull=no
4101 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4102 conftest.$ac_objext conftest.beam conftest.$ac_ext
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
4107 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
4108 if test $ac_cv_func_malloc_0_nonnull = yes; then :
4110 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
4113 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
4115 case " $LIBOBJS " in
4116 *" malloc.$ac_objext "* ) ;;
4117 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
4122 $as_echo "#define malloc rpl_malloc" >>confdefs.h
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
4128 $as_echo_n "checking for working memcmp... " >&6; }
4129 if test "${ac_cv_func_memcmp_working+set}" = set; then :
4130 $as_echo_n "(cached) " >&6
4132 if test "$cross_compiling" = yes; then :
4133 ac_cv_func_memcmp_working=no
4135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4136 /* end confdefs.h. */
4137 $ac_includes_default
4142 /* Some versions of memcmp are not 8-bit clean. */
4143 char c0 = '\100', c1 = '\200', c2 = '\201';
4144 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
4147 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
4148 or more and with at least one buffer not starting on a 4-byte boundary.
4149 William Lewis provided this test program. */
4154 for (i = 0; i < 4; i++)
4158 strcpy (a, "--------01111111");
4159 strcpy (b, "--------10000000");
4160 if (memcmp (a, b, 16) >= 0)
4170 if ac_fn_c_try_run "$LINENO"; then :
4171 ac_cv_func_memcmp_working=yes
4173 ac_cv_func_memcmp_working=no
4175 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4176 conftest.$ac_objext conftest.beam conftest.$ac_ext
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
4181 $as_echo "$ac_cv_func_memcmp_working" >&6; }
4182 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
4183 *" memcmp.$ac_objext "* ) ;;
4184 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
4189 for ac_func in atexit getcwd memmove memset strcasecmp strchr strdup strerror strncasecmp strrchr strstr strtol
4191 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4192 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4193 eval as_val=\$$as_ac_var
4194 if test "x$as_val" = x""yes; then :
4195 cat >>confdefs.h <<_ACEOF
4196 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4205 MSC_PKGBASE_DIR="$MSC_BASE_DIR/.."
4206 MSC_TEST_DIR="$MSC_BASE_DIR/t"
4207 MSC_REGRESSION_DIR="$MSC_TEST_DIR/regression"
4208 MSC_REGRESSION_SERVERROOT_DIR="$MSC_REGRESSION_DIR/server_root"
4209 MSC_REGRESSION_CONF_DIR="$MSC_REGRESSION_SERVERROOT_DIR/conf"
4210 MSC_REGRESSION_LOGS_DIR="$MSC_REGRESSION_SERVERROOT_DIR/logs"
4211 MSC_REGRESSION_DOCROOT_DIR="$MSC_REGRESSION_SERVERROOT_DIR/htdocs"
4222 ### Configure Options
4224 # Ignore configure errors
4225 # Check whether --enable-errors was given.
4226 if test "${enable_errors+set}" = set; then :
4227 enableval=$enable_errors;
4228 if test "$enableval" != "no"; then
4242 # Check whether --enable-verbose-output was given.
4243 if test "${enable_verbose_output+set}" = set; then :
4244 enableval=$enable_verbose_output;
4245 if test "$enableval" != "no"; then
4259 # Check whether --enable-strict-compile was given.
4260 if test "${enable_strict_compile+set}" = set; then :
4261 enableval=$enable_strict_compile;
4262 if test "$enableval" != "no"; then
4263 strict_compile="-std=c99 -Wstrict-overflow=1 -Wextra -Wno-missing-field-initializers -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-unused-parameter -Wformat -Wformat-security -Werror -fstack-protector -D_FORTIFY_SOURCE=2"
4276 # Check whether --enable-debug-conf was given.
4277 if test "${enable_debug_conf+set}" = set; then :
4278 enableval=$enable_debug_conf;
4279 if test "$enableval" != "no"; then
4280 debug_conf="-DDEBUG_CONF"
4293 # Check whether --enable-debug-cache was given.
4294 if test "${enable_debug_cache+set}" = set; then :
4295 enableval=$enable_debug_cache;
4296 if test "$enableval" != "no"; then
4297 debug_cache="-DCACHE_DEBUG"
4310 # Check whether --enable-debug-acmp was given.
4311 if test "${enable_debug_acmp+set}" = set; then :
4312 enableval=$enable_debug_acmp;
4313 if test "$enableval" != "no"; then
4314 debug_acmp="-DDEBUG_ACMP"
4327 # Check whether --enable-debug-mem was given.
4328 if test "${enable_debug_mem+set}" = set; then :
4329 enableval=$enable_debug_mem;
4330 if test "$enableval" != "no"; then
4331 debug_mem="-DDEBUG_MEM"
4343 # PERFORMANCE_MEASUREMENT
4344 # Check whether --enable-performance-measurement was given.
4345 if test "${enable_performance_measurement+set}" = set; then :
4346 enableval=$enable_performance_measurement;
4347 if test "$enableval" != "no"; then
4348 perf_meas="-DPERFORMANCE_MEASUREMENT"
4361 # Check whether --enable-modsec-api was given.
4362 if test "${enable_modsec_api+set}" = set; then :
4363 enableval=$enable_modsec_api;
4364 if test "$enableval" != "yes"; then
4365 modsec_api="-DNO_MODSEC_API"
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: looking for Apache module support via DSO through APXS" >&5
4379 $as_echo "$as_me: looking for Apache module support via DSO through APXS" >&6;}
4381 # Check whether --with-apxs was given.
4382 if test "${with_apxs+set}" = set; then :
4384 if test "$withval" = "yes"; then
4393 if test -z "$APXS"; then
4394 for i in /usr/local/apache22/bin \
4395 /usr/local/apache2/bin \
4396 /usr/local/apache/bin \
4402 if test -f "$i/apxs2"; then
4405 elif test -f "$i/apxs"; then
4412 # arbitrarily picking the same version subversion looks for, don't know how
4413 # accurate this really is, but at least it'll force us to have apache2...
4414 HTTPD_WANTED_MMN=20020903
4416 if test -n "$APXS" -a "$APXS" != "no" -a -x "$APXS" ; then
4417 APXS_INCLUDE="`$APXS -q INCLUDEDIR`"
4418 if test -r $APXS_INCLUDE/httpd.h; then
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: found apxs at $APXS" >&5
4420 $as_echo "$as_me: found apxs at $APXS" >&6;}
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking httpd version" >&5
4422 $as_echo "$as_me: checking httpd version" >&6;}
4423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4424 /* end confdefs.h. */
4426 #include "$APXS_INCLUDE/ap_mmn.h"
4427 #if AP_MODULE_MAGIC_AT_LEAST($HTTPD_WANTED_MMN,0)
4431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4432 $EGREP "VERSION_OK" >/dev/null 2>&1; then :
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: httpd is recent enough" >&5
4434 $as_echo "$as_me: httpd is recent enough" >&6;}
4437 if test "$report_errors" -eq 1; then
4438 { as_fn_set_status mmn must be at least $HTTPD_WANTED_MMN
4439 as_fn_error "apache is too old" "$LINENO" 5; }
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: apache is too old" >&5
4442 $as_echo "$as_me: apache is too old" >&mmn must be at least $HTTPD_WANTED_MMN;}
4449 APXS_INCLUDEDIR="`$APXS -q INCLUDEDIR`"
4450 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apxs INCLUDEDIR: $APXS_INCLUDEDIR" >&5
4451 $as_echo "$as_me: apxs INCLUDEDIR: $APXS_INCLUDEDIR" >&6;}; fi
4452 # Make sure the include dir is used
4453 if test -n "$APXS_INCLUDEDIR"; then
4454 APXS_INCLUDES="-I${APXS_INCLUDEDIR} `$APXS -q INCLUDES` `$APXS -q EXTRA_INCLUDES`"
4456 APXS_INCLUDES="`$APXS -q INCLUDES` `$APXS -q EXTRA_INCLUDES`"
4458 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apxs INCLUDES: $APXS_INCLUDES" >&5
4459 $as_echo "$as_me: apxs INCLUDES: $APXS_INCLUDES" >&6;}; fi
4460 APXS_CFLAGS="`$APXS -q CFLAGS` `$APXS -q EXTRA_CFLAGS`"
4461 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apxs CFLAGS: $APXS_CFLAGS" >&5
4462 $as_echo "$as_me: apxs CFLAGS: $APXS_CFLAGS" >&6;}; fi
4463 APXS_LDFLAGS="`$APXS -q LDFLAGS` `$APXS -q EXTRA_LDFLAGS`"
4464 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apxs LDFLAGS: $APXS_LDFLAGS" >&5
4465 $as_echo "$as_me: apxs LDFLAGS: $APXS_LDFLAGS" >&6;}; fi
4466 APXS_LIBDIR="`$APXS -q LIBDIR`"
4467 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apxs LIBDIR: $APXS_LIBDIR" >&5
4468 $as_echo "$as_me: apxs LIBDIR: $APXS_LIBDIR" >&6;}; fi
4469 # Make sure the lib dir is used
4470 if test -n "$APXS_LIBDIR"; then
4471 APXS_LIBS="-L{$APXS_LIBDIR} `$APXS -q LIBS` `$APXS -q EXTRA_LIBS`"
4473 APXS_LIBS="`$APXS -q LIBS` `$APXS -q EXTRA_LIBS`"
4475 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apxs LIBS: $APXS_LIBS" >&5
4476 $as_echo "$as_me: apxs LIBS: $APXS_LIBS" >&6;}; fi
4477 APXS_LIBTOOL="`$APXS -q LIBTOOL`"
4478 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apxs LIBTOOL: $APXS_LIBTOOL" >&5
4479 $as_echo "$as_me: apxs LIBTOOL: $APXS_LIBTOOL" >&6;}; fi
4480 APXS_CC="`$APXS -q CC`"
4481 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apxs CC: $APXS_CC" >&5
4482 $as_echo "$as_me: apxs CC: $APXS_CC" >&6;}; fi
4483 APXS_BINDIR="`$APXS -q BINDIR`"
4484 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apxs BINDIR: $APXS_BINDIR" >&5
4485 $as_echo "$as_me: apxs BINDIR: $APXS_BINDIR" >&6;}; fi
4486 APXS_SBINDIR="`$APXS -q SBINDIR`"
4487 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apxs SBINDIR: $APXS_SBINDIR" >&5
4488 $as_echo "$as_me: apxs SBINDIR: $APXS_SBINDIR" >&6;}; fi
4489 APXS_PROGNAME="`$APXS -q PROGNAME`"
4490 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apxs PROGNAME: $APXS_PROGNAME" >&5
4491 $as_echo "$as_me: apxs PROGNAME: $APXS_PROGNAME" >&6;}; fi
4492 APXS_LIBEXECDIR="`$APXS -q LIBEXECDIR`"
4493 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apxs LIBEXECDIR: $APXS_LIBEXECDIR" >&5
4494 $as_echo "$as_me: apxs LIBEXECDIR: $APXS_LIBEXECDIR" >&6;}; fi
4495 if test "$APXS_SBINDIR" = "/"; then
4496 APXS_HTTPD="$APXS_SBINDIR/$APXS_PROGNAME"
4498 APXS_HTTPD="$APXS_SBINDIR/$APXS_PROGNAME"
4500 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apxs HTTPD: $APXS_HTTPD" >&5
4501 $as_echo "$as_me: apxs HTTPD: $APXS_HTTPD" >&6;}; fi
4503 if test "$report_errors" -eq 1; then
4504 as_fn_error "couldn't find APXS" "$LINENO" 5
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: couldn't find APXS" >&5
4507 $as_echo "$as_me: couldn't find APXS" >&6;}
4548 LUA_CONFIG=pkg-config
4549 LUA_PKGNAMES="lua5.1 lua-5.1 lua_5.1 lua-51 lua_51 lua51 lua5 lua"
4550 LUA_SONAMES="so la sl dll dylib"
4558 CURL_MIN_VERSION="7.15.1"
4564 ### Build *EXTRA_CFLAGS vars
4566 # Allow overriding EXTRA_CFLAGS
4567 if $ENV_CMD | $GREP "^EXTRA_CFLAGS" > /dev/null 2>&1; then
4568 if test -z "$debug_mem"; then
4569 EXTRA_CFLAGS="$EXTRA_CFLAGS $strict_compile"
4572 if test -n "$debug_mem"; then
4573 EXTRA_CFLAGS="-O0 -g -Wall"
4575 EXTRA_CFLAGS="-O2 -g -Wall $strict_compile"
4578 MODSEC_EXTRA_CFLAGS="$debug_conf $debug_cache $debug_acmp $debug_mem $perf_meas $modsec_api"
4580 APXS_WRAPPER=build/apxs-wrapper
4581 APXS_EXTRA_CFLAGS=""
4582 for f in $EXTRA_CFLAGS; do
4583 APXS_EXTRA_CFLAGS="$APXS_EXTRA_CFLAGS -Wc,$f"
4585 MODSEC_APXS_EXTRA_CFLAGS=""
4586 for f in $MODSEC_EXTRA_CFLAGS; do
4587 MODSEC_APXS_EXTRA_CFLAGS="$MODSEC_APXS_EXTRA_CFLAGS -Wc,$f"
4590 ### Substitute the vars
4592 save_CPPFLAGS=$CPPFLAGS
4593 CPPFLAGS="$APXS_INCLUDES $CPPFLAGS"
4594 save_LDFLAGS=$LDFLAGS
4595 LDFLAGS="$APXS_LDFLAGS $LDFLAGS"
4619 # Check whether --with-pcre was given.
4620 if test "${with_pcre+set}" = set; then :
4621 withval=$with_pcre; test_paths="${with_pcre}"
4623 test_paths="/usr/local/libpcre /usr/local/pcre /usr/local /opt/libpcre /opt/pcre /opt /usr"
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpcre config script" >&5
4628 $as_echo_n "checking for libpcre config script... " >&6; }
4630 if test -z "${with_pcre}"; then
4631 test_paths="/usr/local/pcre /usr/local /usr"
4633 test_paths="${with_pcre}"
4636 for x in ${test_paths}; do
4637 if test ! -d "$x" -a -e "$x"; then
4643 for PCRE_CONFIG in pcre-config; do
4644 if test -e "${x}/bin/${PCRE_CONFIG}"; then
4645 pcre_path="${x}/bin"
4647 elif test -e "${x}/${PCRE_CONFIG}"; then
4654 if test -n "$pcre_path"; then
4659 LDFLAGS=$save_LDFLAGS
4661 if test -n "${pcre_path}"; then
4662 if test "${pcre_path}" != "no"; then
4663 PCRE_CONFIG="${pcre_path}/${PCRE_CONFIG}"
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PCRE_CONFIG}" >&5
4666 $as_echo "${PCRE_CONFIG}" >&6; }
4667 PCRE_CFLAGS="`${PCRE_CONFIG} --cflags`"
4668 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: pcre CFLAGS: $PCRE_CFLAGS" >&5
4669 $as_echo "$as_me: pcre CFLAGS: $PCRE_CFLAGS" >&6;}; fi
4670 PCRE_LIBS="`${PCRE_CONFIG} --libs`"
4671 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: pcre LIBS: $PCRE_LIBS" >&5
4672 $as_echo "$as_me: pcre LIBS: $PCRE_LIBS" >&6;}; fi
4674 LDFLAGS=$save_LDFLAGS
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4677 $as_echo "no" >&6; }
4683 if test -z "${PCRE_LIBS}"; then
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: *** pcre library not found." >&5
4685 $as_echo "$as_me: *** pcre library not found." >&6;}
4686 as_fn_error "pcre library is required" "$LINENO" 5
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: using '${PCRE_LIBS}' for pcre Library" >&5
4689 $as_echo "$as_me: using '${PCRE_LIBS}' for pcre Library" >&6;}
4695 # Check whether --with-apr was given.
4696 if test "${with_apr+set}" = set; then :
4697 withval=$with_apr; test_paths="${with_apr}"
4699 test_paths="/usr/local/libapr /usr/local/apr /usr/local /opt/libapr /opt/apr /opt /usr"
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libapr config script" >&5
4704 $as_echo_n "checking for libapr config script... " >&6; }
4706 for x in ${test_paths}; do
4707 if test ! -d "$x" -a -e "$x"; then
4713 for APR_CONFIG in apr-1-mt-config apr-1-config apr-config-1 apr-mt-config-1 apr-mt-config apr-config; do
4714 if test -e "${x}/bin/${APR_CONFIG}"; then
4717 elif test -e "${x}/${APR_CONFIG}"; then
4724 if test -n "$apr_path"; then
4729 if test -n "${apr_path}"; then
4730 if test "${apr_path}" != "no"; then
4731 APR_CONFIG="${apr_path}/${APR_CONFIG}"
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${APR_CONFIG}" >&5
4734 $as_echo "${APR_CONFIG}" >&6; }
4735 APR_CFLAGS="`${APR_CONFIG} --includes --cppflags --cflags`"
4736 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apr CFLAGS: $APR_CFLAGS" >&5
4737 $as_echo "$as_me: apr CFLAGS: $APR_CFLAGS" >&6;}; fi
4738 APR_LDFLAGS="`${APR_CONFIG} --ldflags`"
4739 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apr LDFLAGS: $APR_LDFLAGS" >&5
4740 $as_echo "$as_me: apr LDFLAGS: $APR_LDFLAGS" >&6;}; fi
4741 APR_LIBS="`${APR_CONFIG} --libs`"
4742 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apr LIBS: $APR_LIBS" >&5
4743 $as_echo "$as_me: apr LIBS: $APR_LIBS" >&6;}; fi
4744 APR_LINK_LD="`${APR_CONFIG} --link-ld`"
4745 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apr LINK_LD: $APR_LINK_LD" >&5
4746 $as_echo "$as_me: apr LINK_LD: $APR_LINK_LD" >&6;}; fi
4748 LDFLAGS=$save_LDFLAGS
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4751 $as_echo "no" >&6; }
4759 if test -z "${APR_LIBS}"; then
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: *** apr library not found." >&5
4761 $as_echo "$as_me: *** apr library not found." >&6;}
4762 as_fn_error "apr library is required" "$LINENO" 5
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: using '${APR_LIBS}' for apr Library" >&5
4765 $as_echo "$as_me: using '${APR_LIBS}' for apr Library" >&6;}
4771 # Check whether --with-apu was given.
4772 if test "${with_apu+set}" = set; then :
4773 withval=$with_apu; test_paths="${with_apu}"
4775 test_paths="/usr/local/libapr-util /usr/local/apr-util /usr/local/libapu /usr/local/apu /usr/local /opt/libapr-util /opt/apr-util /opt/libapu /opt/apu /opt /usr"
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libapu config script" >&5
4780 $as_echo_n "checking for libapu config script... " >&6; }
4782 for x in ${test_paths}; do
4783 if test ! -d "$x" -a -e "$x"; then
4789 for APU_CONFIG in apu-1-mt-config apu-1-config apu-config-1 apu-mt-config-1 apu-mt-config apu-config; do
4790 if test -e "${x}/bin/${APU_CONFIG}"; then
4793 elif test -e "${x}/${APU_CONFIG}"; then
4800 if test -n "$apu_path"; then
4805 if test -n "${apu_path}"; then
4806 if test "${apu_path}" != "no"; then
4807 APU_CONFIG="${apu_path}/${APU_CONFIG}"
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${APU_CONFIG}" >&5
4810 $as_echo "${APU_CONFIG}" >&6; }
4811 APU_CFLAGS="`${APU_CONFIG} --includes`"
4812 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apu CFLAGS: $APU_CFLAGS" >&5
4813 $as_echo "$as_me: apu CFLAGS: $APU_CFLAGS" >&6;}; fi
4814 APU_LDFLAGS="`${APU_CONFIG} --ldflags`"
4815 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apu LDFLAGS: $APU_LDFLAGS" >&5
4816 $as_echo "$as_me: apu LDFLAGS: $APU_LDFLAGS" >&6;}; fi
4817 APU_LIBS="`${APU_CONFIG} --libs`"
4818 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apu LIBS: $APU_LIBS" >&5
4819 $as_echo "$as_me: apu LIBS: $APU_LIBS" >&6;}; fi
4820 APU_LINK_LD="`${APU_CONFIG} --link-ld`"
4821 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apu LINK_LD: $APU_LINK_LD" >&5
4822 $as_echo "$as_me: apu LINK_LD: $APU_LINK_LD" >&6;}; fi
4824 LDFLAGS=$save_LDFLAGS
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4827 $as_echo "no" >&6; }
4835 if test -z "${APU_LIBS}"; then
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: *** apu library not found." >&5
4837 $as_echo "$as_me: *** apu library not found." >&6;}
4838 as_fn_error "apu library is required" "$LINENO" 5
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: using '${APU_LIBS}' for apu Library" >&5
4841 $as_echo "$as_me: using '${APU_LIBS}' for apu Library" >&6;}
4847 # Check whether --with-libxml was given.
4848 if test "${with_libxml+set}" = set; then :
4849 withval=$with_libxml; test_paths="${with_libxml}"
4851 test_paths="/usr/local/libxml2 /usr/local/xml2 /usr/local/xml /usr/local /opt/libxml2 /opt/libxml /opt/xml2 /opt/xml /opt /usr"
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2 config script" >&5
4856 $as_echo_n "checking for libxml2 config script... " >&6; }
4858 for x in ${test_paths}; do
4859 if test ! -d "$x" -a -e "$x"; then
4865 for LIBXML2_CONFIG in xml2-config xml-2-config xml-config; do
4866 if test -e "${x}/bin/${LIBXML2_CONFIG}"; then
4867 libxml2_path="${x}/bin"
4869 elif test -e "${x}/${LIBXML2_CONFIG}"; then
4876 if test -n "$libxml2_path"; then
4881 LDFLAGS=$save_LDFLAGS
4883 if test -n "${libxml2_path}"; then
4884 if test "${libxml2_path}" != "no"; then
4885 LIBXML2_CONFIG="${libxml2_path}/${LIBXML2_CONFIG}"
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LIBXML2_CONFIG}" >&5
4888 $as_echo "${LIBXML2_CONFIG}" >&6; }
4889 LIBXML2_CFLAGS="`${LIBXML2_CONFIG} --cflags`"
4890 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: xml CFLAGS: $LIBXML2_CFLAGS" >&5
4891 $as_echo "$as_me: xml CFLAGS: $LIBXML2_CFLAGS" >&6;}; fi
4892 LIBXML2_LIBS="`${LIBXML2_CONFIG} --libs`"
4893 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: xml LIBS: $LIBXML2_LIBS" >&5
4894 $as_echo "$as_me: xml LIBS: $LIBXML2_LIBS" >&6;}; fi
4896 LDFLAGS=$save_LDFLAGS
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4899 $as_echo "no" >&6; }
4905 if test -z "${LIBXML2_LIBS}"; then
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: *** xml library not found." >&5
4907 $as_echo "$as_me: *** xml library not found." >&6;}
4908 as_fn_error "libxml2 is required" "$LINENO" 5
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: using '${LIBXML2_LIBS}' for libxml2" >&5
4911 $as_echo "$as_me: using '${LIBXML2_LIBS}' for libxml2" >&6;}
4917 # Check whether --with-lua was given.
4918 if test "${with_lua+set}" = set; then :
4919 withval=$with_lua; test_paths="${with_lua}"
4921 test_paths="/usr/local/liblua /usr/local/lua /usr/local /opt/liblua /opt/lua /opt /usr";
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblua config script" >&5
4926 $as_echo_n "checking for liblua config script... " >&6; }
4928 for x in ${test_paths}; do
4929 if test ! -d "$x" -a -e "$x"; then
4934 for y in $LUA_CONFIG; do
4935 if test -e "${x}/bin/${y}"; then
4936 LUA_CONFIG="${x}/bin/${y}"
4937 lua_config="${LUA_CONFIG}"
4939 elif test -e "${x}/${y}"; then
4940 LUA_CONFIG="${x}/${y}"
4941 lua_config="${LUA_CONFIG}"
4945 if test -n "${lua_config}"; then
4950 if test -n "${LUA_CONFIG}"; then
4952 for x in ${LUA_PKGNAMES}; do
4953 if ${LUA_CONFIG} --exists ${x}; then
4960 if test -n "${LUA_PKGNAME}"; then
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LUA_CONFIG}" >&5
4962 $as_echo "${LUA_CONFIG}" >&6; }
4963 LUA_CFLAGS="`${LUA_CONFIG} ${LUA_PKGNAME} --cflags`"
4964 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: lua CFLAGS: $LUA_CFLAGS" >&5
4965 $as_echo "$as_me: lua CFLAGS: $LUA_CFLAGS" >&6;}; fi
4966 LUA_LIBS="`${LUA_CONFIG} ${LUA_PKGNAME} --libs`"
4967 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: lua LIBS: $LUA_LIBS" >&5
4968 $as_echo "$as_me: lua LIBS: $LUA_LIBS" >&6;}; fi
4970 LDFLAGS=$save_LDFLAGS
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4973 $as_echo "no" >&6; }
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua install" >&5
4976 $as_echo_n "checking for lua install... " >&6; }
4977 for x in ${test_paths}; do
4978 for y in ${LUA_SONAMES}; do
4979 if test -e "${x}/liblua5.1.${y}"; then
4981 lua_lib_name="lua5.1"
4983 elif test -e "${x}/lib/liblua5.1.${y}"; then
4984 lua_lib_path="${x}/lib"
4985 lua_lib_name="lua5.1"
4987 elif test -e "${x}/lib64/liblua5.1.${y}"; then
4988 lua_lib_path="${x}/lib64"
4989 lua_lib_name="lua5.1"
4991 elif test -e "${x}/lib32/liblua5.1.${y}"; then
4992 lua_lib_path="${x}/lib32"
4993 lua_lib_name="lua5.1"
4995 elif test -e "${x}/liblua51.${y}"; then
4997 lua_lib_name="lua51"
4999 elif test -e "${x}/lib/liblua51.${y}"; then
5000 lua_lib_path="${x}/lib"
5001 lua_lib_name="lua51"
5003 elif test -e "${x}/lib64/liblua51.${y}"; then
5004 lua_lib_path="${x}/lib64"
5005 lua_lib_name="lua51"
5007 elif test -e "${x}/lib32/liblua51.${y}"; then
5008 lua_lib_path="${x}/lib32"
5009 lua_lib_name="lua51"
5011 elif test -e "${x}/liblua.${y}"; then
5015 elif test -e "${x}/lib/liblua.${y}"; then
5016 lua_lib_path="${x}/lib"
5019 elif test -e "${x}/lib64/liblua.${y}"; then
5020 lua_lib_path="${x}/lib64"
5023 elif test -e "${x}/lib32/liblua.${y}"; then
5024 lua_lib_path="${x}/lib32"
5032 if test -n "$lua_lib_path"; then
5036 for x in ${test_paths}; do
5037 if test -e "${x}/include/lua.h"; then
5038 lua_inc_path="${x}/include"
5040 elif test -e "${x}/lua.h"; then
5045 for lua_pkg_name in ${lua_lib_name} ${LUA_PKGNAMES}; do
5046 if test -e "${x}/include/${lua_pkg_name}/lua.h"; then
5047 lua_inc_path="${x}/include"
5049 elif test -e "${x}/${lua_pkg_name}/lua.h"; then
5056 if test -n "$lua_inc_path"; then
5060 if test -n "${lua_lib_path}" -a -n "${lua_inc_path}"; then
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lua_lib_path} ${lua_inc_path}" >&5
5063 $as_echo "${lua_lib_path} ${lua_inc_path}" >&6; }
5064 LUA_CFLAGS="-I${lua_inc_path}"
5065 LUA_LIBS="-L${lua_lib_path} -l${lua_lib_name}"
5067 LDFLAGS=$save_LDFLAGS
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5070 $as_echo "no" >&6; }
5074 if test -n "${LUA_LIBS}"; then
5075 LUA_CFLAGS="-DWITH_LUA ${LUA_CFLAGS}"
5081 if test "${with_path}" != "no"; then
5082 if test -z "${LUA_LIBS}"; then
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: optional lua library not found" >&5
5084 $as_echo "$as_me: optional lua library not found" >&6;}
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: using '${LUA_LIBS}' for lua Library" >&5
5087 $as_echo "$as_me: using '${LUA_LIBS}' for lua Library" >&6;}
5094 # Check whether --with-curl was given.
5095 if test "${with_curl+set}" = set; then :
5096 withval=$with_curl; test_paths="${with_curl}"
5098 test_paths="/usr/local/libcurl /usr/local/curl /usr/local /opt/libcurl /opt/curl /opt /usr"
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl config script" >&5
5103 $as_echo_n "checking for libcurl config script... " >&6; }
5105 for x in ${test_paths}; do
5106 if test ! -d "$x" -a -e "$x"; then
5112 for CURL_CONFIG in curl-config; do
5113 if test -e "${x}/bin/${CURL_CONFIG}"; then
5114 curl_path="${x}/bin"
5116 elif test -e "${x}/${CURL_CONFIG}"; then
5123 if test -n "$curl_path"; then
5128 if test -n "${curl_path}"; then
5129 if test "${curl_path}" != "no"; then
5130 CURL_CONFIG="${curl_path}/${CURL_CONFIG}"
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CURL_CONFIG}" >&5
5133 $as_echo "${CURL_CONFIG}" >&6; }
5134 CURL_CFLAGS="`${CURL_CONFIG} --cflags`"
5135 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: curl CFLAGS: $CURL_CFLAGS" >&5
5136 $as_echo "$as_me: curl CFLAGS: $CURL_CFLAGS" >&6;}; fi
5137 CURL_LIBS="`${CURL_CONFIG} --libs`"
5138 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: curl LIBS: $CURL_LIBS" >&5
5139 $as_echo "$as_me: curl LIBS: $CURL_LIBS" >&6;}; fi
5140 CURL_VERSION=`${CURL_CONFIG} --version | sed 's/^[^0-9][^[:space:]][^[:space:]]*[[:space:]]*//'`
5141 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: curl VERSION: $CURL_VERSION" >&5
5142 $as_echo "$as_me: curl VERSION: $CURL_VERSION" >&6;}; fi
5144 LDFLAGS=$save_LDFLAGS
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libcurl is at least v${CURL_MIN_VERSION}" >&5
5147 $as_echo_n "checking if libcurl is at least v${CURL_MIN_VERSION}... " >&6; }
5148 curl_min_ver=`echo ${CURL_MIN_VERSION} | awk -F. '{print (\$ 1 * 1000000) + (\$ 2 * 1000) + \$ 3}'`
5149 curl_ver=`echo ${CURL_VERSION} | awk -F. '{print (\$ 1 * 1000000) + (\$ 2 * 1000) + \$ 3}'`
5150 if test "$curl_min_ver" -le "$curl_ver"; then
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5152 $as_echo "yes" >&6; }
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5155 $as_echo "no" >&6; }
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: NOTE: curl library may be too old: $CURL_VERSION" >&5
5157 $as_echo "$as_me: NOTE: curl library may be too old: $CURL_VERSION" >&6;}
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libcurl is linked with gnutls" >&5
5161 $as_echo_n "checking if libcurl is linked with gnutls... " >&6; }
5162 curl_uses_gnutls=`echo ${CURL_LIBS} | grep gnutls | wc -l`
5163 if test "$curl_uses_gnutls" -ne 0; then
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5165 $as_echo "yes" >&6; }
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: NOTE: curl linked with gnutls may be buggy, openssl recommended" >&5
5167 $as_echo "$as_me: NOTE: curl linked with gnutls may be buggy, openssl recommended" >&6;}
5168 CURL_USES_GNUTLS=yes
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5171 $as_echo "no" >&6; }
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5177 $as_echo "no" >&6; }
5184 if test -z "${CURL_LIBS}"; then
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: *** curl library not found." >&5
5186 $as_echo "$as_me: *** curl library not found." >&6;}
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: NOTE: curl library is only required for building mlogc" >&5
5188 $as_echo "$as_me: NOTE: curl library is only required for building mlogc" >&6;}
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: using '${CURL_LIBS}' for curl Library" >&5
5191 $as_echo "$as_me: using '${CURL_LIBS}' for curl Library" >&6;}
5196 ac_config_files="$ac_config_files Makefile"
5198 ac_config_files="$ac_config_files build/apxs-wrapper"
5200 if test -e "$PERL"; then
5201 ac_config_files="$ac_config_files mlogc-src/mlogc-batch-load.pl"
5203 ac_config_files="$ac_config_files t/run-unit-tests.pl"
5205 ac_config_files="$ac_config_files t/run-regression-tests.pl"
5207 ac_config_files="$ac_config_files t/gen_rx-pm.pl"
5209 ac_config_files="$ac_config_files t/csv_rx-pm.pl"
5211 ac_config_files="$ac_config_files t/regression/server_root/conf/httpd.conf"
5215 ac_config_files="$ac_config_files ../tools/rules-updater.pl"
5218 if test -e "mlogc-src/Makefile.in"; then
5219 ac_config_files="$ac_config_files mlogc-src/Makefile"
5223 cat >confcache <<\_ACEOF
5224 # This file is a shell script that caches the results of configure
5225 # tests run on this system so they can be shared between configure
5226 # scripts and configure runs, see configure's option --config-cache.
5227 # It is not useful on other systems. If it contains results you don't
5228 # want to keep, you may remove or edit it.
5230 # config.status only pays attention to the cache file if you give it
5231 # the --recheck option to rerun configure.
5233 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5234 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5239 # The following way of writing the cache mishandles newlines in values,
5240 # but we know of no workaround that is simple, portable, and efficient.
5241 # So, we kill variables containing newlines.
5242 # Ultrix sh set writes to stderr and can't be redirected directly,
5243 # and sets the high bit in the cache file unless we assign to the vars.
5245 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5246 eval ac_val=\$$ac_var
5250 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5251 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5254 _ | IFS | as_nl) ;; #(
5255 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5256 *) { eval $ac_var=; unset $ac_var;} ;;
5262 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5263 *${as_nl}ac_space=\ *)
5264 # `set' does not quote correctly, so add quotes: double-quote
5265 # substitution turns \\\\ into \\, and sed turns \\ into \.
5268 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5271 # `set' quotes correctly as required by POSIX, so do not add quotes.
5272 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5281 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5283 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5285 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5286 if test -w "$cache_file"; then
5287 test "x$cache_file" != "x/dev/null" &&
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5289 $as_echo "$as_me: updating cache $cache_file" >&6;}
5290 cat confcache >$cache_file
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5293 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5298 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5299 # Let make expand exec_prefix.
5300 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5302 DEFS=-DHAVE_CONFIG_H
5306 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5307 # 1. Remove the extension, and $U if already installed.
5308 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5309 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5310 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5311 # will be set to the directory where LIBOBJS objects are built.
5312 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5313 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5317 LTLIBOBJS=$ac_ltlibobjs
5321 : ${CONFIG_STATUS=./config.status}
5323 ac_clean_files_save=$ac_clean_files
5324 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5326 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5328 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5330 # Generated by $as_me.
5331 # Run this file to recreate the current configuration.
5332 # Compiler output produced by configure, useful for debugging
5333 # configure, is in config.log if it exists.
5339 SHELL=\${CONFIG_SHELL-$SHELL}
5342 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5343 ## -------------------- ##
5344 ## M4sh Initialization. ##
5345 ## -------------------- ##
5347 # Be more Bourne compatible
5348 DUALCASE=1; export DUALCASE # for MKS sh
5349 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5352 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5353 # is contrary to our usage. Disable this feature.
5354 alias -g '${1+"$@"}'='"$@"'
5355 setopt NO_GLOB_SUBST
5357 case `(set -o) 2>/dev/null` in #(
5369 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5370 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5371 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5372 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5373 # Prefer a ksh shell builtin over an external printf program on Solaris,
5374 # but without wasting forks for bash or zsh.
5375 if test -z "$BASH_VERSION$ZSH_VERSION" \
5376 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5377 as_echo='print -r --'
5378 as_echo_n='print -rn --'
5379 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5380 as_echo='printf %s\n'
5381 as_echo_n='printf %s'
5383 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5384 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5385 as_echo_n='/usr/ucb/echo -n'
5387 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5388 as_echo_n_body='eval
5392 expr "X$arg" : "X\\(.*\\)$as_nl";
5393 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5395 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5397 export as_echo_n_body
5398 as_echo_n='sh -c $as_echo_n_body as_echo'
5401 as_echo='sh -c $as_echo_body as_echo'
5404 # The user is always right.
5405 if test "${PATH_SEPARATOR+set}" != set; then
5407 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5408 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5415 # We need space, tab and new line, in precisely that order. Quoting is
5416 # there to prevent editors from complaining about space-tab.
5417 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5418 # splitting by setting IFS to empty value.)
5421 # Find who we are. Look in the path if we contain no directory separator.
5423 *[\\/]* ) as_myself=$0 ;;
5424 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5428 test -z "$as_dir" && as_dir=.
5429 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5435 # We did not find ourselves, most probably we were run as `sh COMMAND'
5436 # in which case we are not to be found in the path.
5437 if test "x$as_myself" = x; then
5440 if test ! -f "$as_myself"; then
5441 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5445 # Unset variables that we do not need and which cause bugs (e.g. in
5446 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5447 # suppresses any "Segmentation fault" message there. '((' could
5448 # trigger a bug in pdksh 5.2.14.
5449 for as_var in BASH_ENV ENV MAIL MAILPATH
5450 do eval test x\${$as_var+set} = xset \
5451 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5464 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5467 # as_fn_error ERROR [LINENO LOG_FD]
5468 # ---------------------------------
5469 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5470 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5471 # script with status $?, using 1 if that was 0.
5474 as_status=$?; test $as_status -eq 0 && as_status=1
5476 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5477 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
5479 $as_echo "$as_me: error: $1" >&2
5480 as_fn_exit $as_status
5484 # as_fn_set_status STATUS
5485 # -----------------------
5486 # Set $? to STATUS, without forking.
5490 } # as_fn_set_status
5494 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5504 # Portably unset VAR.
5507 { eval $1=; unset $1;}
5509 as_unset=as_fn_unset
5510 # as_fn_append VAR VALUE
5511 # ----------------------
5512 # Append the text in VALUE to the end of the definition contained in VAR. Take
5513 # advantage of any shell optimizations that allow amortized linear growth over
5514 # repeated appends, instead of the typical quadratic growth present in naive
5516 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5517 eval 'as_fn_append ()
5528 # as_fn_arith ARG...
5529 # ------------------
5530 # Perform arithmetic evaluation on the ARGs, and store the result in the
5531 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5532 # must be portable across $(()) and expr.
5533 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5534 eval 'as_fn_arith ()
5541 as_val=`expr "$@" || test $? -eq 1`
5546 if expr a : '\(a\)' >/dev/null 2>&1 &&
5547 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5553 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5554 as_basename=basename
5559 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5565 as_me=`$as_basename -- "$0" ||
5566 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5567 X"$0" : 'X\(//\)$' \| \
5568 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5570 sed '/^.*\/\([^/][^/]*\)\/*$/{
5584 # Avoid depending upon Character Ranges.
5585 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5586 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5587 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5588 as_cr_digits='0123456789'
5589 as_cr_alnum=$as_cr_Letters$as_cr_digits
5591 ECHO_C= ECHO_N= ECHO_T=
5592 case `echo -n x` in #(((((
5594 case `echo 'xy\c'` in
5595 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5597 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5604 rm -f conf$$ conf$$.exe conf$$.file
5605 if test -d conf$$.dir; then
5606 rm -f conf$$.dir/conf$$.file
5609 mkdir conf$$.dir 2>/dev/null
5611 if (echo >conf$$.file) 2>/dev/null; then
5612 if ln -s conf$$.file conf$$ 2>/dev/null; then
5614 # ... but there are two gotchas:
5615 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5616 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5617 # In both cases, we have to default to `cp -p'.
5618 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5620 elif ln conf$$.file conf$$ 2>/dev/null; then
5628 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5629 rmdir conf$$.dir 2>/dev/null
5634 # Create "$as_dir" as a directory, including parents if necessary.
5639 -*) as_dir=./$as_dir;;
5641 test -d "$as_dir" || eval $as_mkdir_p || {
5645 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5646 *) as_qdir=$as_dir;;
5648 as_dirs="'$as_qdir' $as_dirs"
5649 as_dir=`$as_dirname -- "$as_dir" ||
5650 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5651 X"$as_dir" : 'X\(//\)[^/]' \| \
5652 X"$as_dir" : 'X\(//\)$' \| \
5653 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5654 $as_echo X"$as_dir" |
5655 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5672 test -d "$as_dir" && break
5674 test -z "$as_dirs" || eval "mkdir $as_dirs"
5675 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
5679 if mkdir -p . 2>/dev/null; then
5680 as_mkdir_p='mkdir -p "$as_dir"'
5682 test -d ./-p && rmdir ./-p
5686 if test -x / >/dev/null 2>&1; then
5689 if ls -dL / >/dev/null 2>&1; then
5696 if test -d "$1"; then
5702 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5703 ???[sx]*):;;*)false;;esac;fi
5707 as_executable_p=$as_test_x
5709 # Sed expression to map a string onto a valid CPP name.
5710 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5712 # Sed expression to map a string onto a valid variable name.
5713 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5717 ## ----------------------------------- ##
5718 ## Main body of $CONFIG_STATUS script. ##
5719 ## ----------------------------------- ##
5721 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5723 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5724 # Save the log message, to keep $0 and so on meaningful, and to
5725 # report actual input values of CONFIG_FILES etc. instead of their
5726 # values after options handling.
5728 This file was extended by $as_me, which was
5729 generated by GNU Autoconf 2.64. Invocation command line was
5731 CONFIG_FILES = $CONFIG_FILES
5732 CONFIG_HEADERS = $CONFIG_HEADERS
5733 CONFIG_LINKS = $CONFIG_LINKS
5734 CONFIG_COMMANDS = $CONFIG_COMMANDS
5737 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5742 case $ac_config_files in *"
5743 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5746 case $ac_config_headers in *"
5747 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5751 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5752 # Files that config.status was made for.
5753 config_files="$ac_config_files"
5754 config_headers="$ac_config_headers"
5758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5760 \`$as_me' instantiates files and other configuration actions
5761 from templates according to the current configuration. Unless the files
5762 and actions are specified as TAGs, all are instantiated by default.
5764 Usage: $0 [OPTION]... [TAG]...
5766 -h, --help print this help, then exit
5767 -V, --version print version number and configuration settings, then exit
5768 -q, --quiet, --silent
5769 do not print progress messages
5770 -d, --debug don't remove temporary files
5771 --recheck update $as_me by reconfiguring in the same conditions
5772 --file=FILE[:TEMPLATE]
5773 instantiate the configuration file FILE
5774 --header=FILE[:TEMPLATE]
5775 instantiate the configuration header FILE
5777 Configuration files:
5780 Configuration headers:
5783 Report bugs to the package provider."
5786 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5789 configured by $0, generated by GNU Autoconf 2.64,
5790 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5792 Copyright (C) 2009 Free Software Foundation, Inc.
5793 This config.status script is free software; the Free Software Foundation
5794 gives unlimited permission to copy, distribute and modify it."
5800 test -n "\$AWK" || AWK=awk
5803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5804 # The default lists apply if the user does not specify any file.
5810 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5811 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5822 # Handling of the options.
5823 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5825 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5826 $as_echo "$ac_cs_version"; exit ;;
5827 --debug | --debu | --deb | --de | --d | -d )
5829 --file | --fil | --fi | --f )
5832 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5834 as_fn_append CONFIG_FILES " '$ac_optarg'"
5835 ac_need_defaults=false;;
5836 --header | --heade | --head | --hea )
5839 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5841 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5842 ac_need_defaults=false;;
5844 # Conflict between --help and --header
5845 as_fn_error "ambiguous option: \`$1'
5846 Try \`$0 --help' for more information.";;
5847 --help | --hel | -h )
5848 $as_echo "$ac_cs_usage"; exit ;;
5849 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5850 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5854 -*) as_fn_error "unrecognized option: \`$1'
5855 Try \`$0 --help' for more information." ;;
5857 *) as_fn_append ac_config_targets " $1"
5858 ac_need_defaults=false ;;
5864 ac_configure_extra_args=
5866 if $ac_cs_silent; then
5868 ac_configure_extra_args="$ac_configure_extra_args --silent"
5872 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5873 if \$ac_cs_recheck; then
5874 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5876 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5877 CONFIG_SHELL='$SHELL'
5883 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5887 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5888 ## Running $as_me. ##
5894 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5897 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5899 # Handling of arguments.
5900 for ac_config_target in $ac_config_targets
5902 case $ac_config_target in
5903 "mod_security2_config.h") CONFIG_HEADERS="$CONFIG_HEADERS mod_security2_config.h" ;;
5904 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5905 "build/apxs-wrapper") CONFIG_FILES="$CONFIG_FILES build/apxs-wrapper" ;;
5906 "mlogc-src/mlogc-batch-load.pl") CONFIG_FILES="$CONFIG_FILES mlogc-src/mlogc-batch-load.pl" ;;
5907 "t/run-unit-tests.pl") CONFIG_FILES="$CONFIG_FILES t/run-unit-tests.pl" ;;
5908 "t/run-regression-tests.pl") CONFIG_FILES="$CONFIG_FILES t/run-regression-tests.pl" ;;
5909 "t/gen_rx-pm.pl") CONFIG_FILES="$CONFIG_FILES t/gen_rx-pm.pl" ;;
5910 "t/csv_rx-pm.pl") CONFIG_FILES="$CONFIG_FILES t/csv_rx-pm.pl" ;;
5911 "t/regression/server_root/conf/httpd.conf") CONFIG_FILES="$CONFIG_FILES t/regression/server_root/conf/httpd.conf" ;;
5912 "../tools/rules-updater.pl") CONFIG_FILES="$CONFIG_FILES ../tools/rules-updater.pl" ;;
5913 "mlogc-src/Makefile") CONFIG_FILES="$CONFIG_FILES mlogc-src/Makefile" ;;
5915 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5920 # If the user did not use the arguments to specify the items to instantiate,
5921 # then the envvar interface is used. Set only those that are not.
5922 # We use the long form for the default assignment because of an extremely
5923 # bizarre bug on SunOS 4.1.3.
5924 if $ac_need_defaults; then
5925 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5926 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5929 # Have a temporary directory for convenience. Make it in the build tree
5930 # simply because there is no reason against having it here, and in addition,
5931 # creating and moving files from /tmp can sometimes cause problems.
5932 # Hook for its removal unless debugging.
5933 # Note that there is a small window in which the directory will not be cleaned:
5934 # after its creation but before its name has been assigned to `$tmp'.
5938 trap 'exit_status=$?
5939 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5941 trap 'as_fn_exit 1' 1 2 13 15
5943 # Create a (secure) tmp directory for tmp files.
5946 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5947 test -n "$tmp" && test -d "$tmp"
5950 tmp=./conf$$-$RANDOM
5951 (umask 077 && mkdir "$tmp")
5952 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
5954 # Set up the scripts for CONFIG_FILES section.
5955 # No need to generate them if there are no CONFIG_FILES.
5956 # This happens for instance with `./config.status config.h'.
5957 if test -n "$CONFIG_FILES"; then
5960 ac_cr=`echo X | tr X '\015'`
5961 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5962 # But we know of no other shell where ac_cr would be empty at this
5963 # point, so we can use a bashism as a fallback.
5964 if test "x$ac_cr" = x; then
5965 eval ac_cr=\$\'\\r\'
5967 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5968 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5974 echo 'BEGIN {' >"$tmp/subs1.awk" &&
5979 echo "cat >conf$$subs.awk <<_ACEOF" &&
5980 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5983 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5984 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
5986 for ac_last_try in false false false false false :; do
5987 . ./conf$$subs.sh ||
5988 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5990 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5991 if test $ac_delim_n = $ac_delim_num; then
5993 elif $ac_last_try; then
5994 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5996 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6001 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6002 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
6006 s/^/S["/; s/!.*/"]=/
6016 s/\(.\{148\}\).*/\1/
6018 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6023 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6030 s/\(.\{148\}\).*/\1/
6032 s/["\\]/\\&/g; s/^/"/; s/$/"/
6036 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6041 ' <conf$$subs.awk | sed '
6046 ' >>$CONFIG_STATUS || ac_write_fail=1
6047 rm -f conf$$subs.awk
6048 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6050 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
6051 for (key in S) S_is_set[key] = 1
6057 nfields = split(line, field, "@")
6059 len = length(field[1])
6060 for (i = 2; i < nfields; i++) {
6062 keylen = length(key)
6063 if (S_is_set[key]) {
6065 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6066 len += length(value) + length(field[++i])
6077 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6078 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6079 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6082 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
6083 || as_fn_error "could not setup config files machinery" "$LINENO" 5
6086 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6087 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6088 # trailing colons and then remove the whole line if VPATH becomes empty
6089 # (actually we leave an empty line to preserve line numbers).
6090 if test "x$srcdir" = x.; then
6091 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6095 s/^\([^=]*=[ ]*\):*/\1/
6101 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6102 fi # test -n "$CONFIG_FILES"
6104 # Set up the scripts for CONFIG_HEADERS section.
6105 # No need to generate them if there are no CONFIG_HEADERS.
6106 # This happens for instance with `./config.status Makefile'.
6107 if test -n "$CONFIG_HEADERS"; then
6108 cat >"$tmp/defines.awk" <<\_ACAWK ||
6112 # Transform confdefs.h into an awk script `defines.awk', embedded as
6113 # here-document in config.status, that substitutes the proper values into
6114 # config.h.in to produce config.h.
6116 # Create a delimiter string that does not exist in confdefs.h, to ease
6117 # handling of long lines.
6119 for ac_last_try in false false :; do
6120 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
6121 if test -z "$ac_t"; then
6123 elif $ac_last_try; then
6124 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
6126 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6130 # For the awk script, D is an array of macro values keyed by name,
6131 # likewise P contains macro parameters if any. Preserve backslash
6132 # newline sequences.
6134 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6136 s/.\{148\}/&'"$ac_delim"'/g
6139 s/^[ ]*#[ ]*define[ ][ ]*/ /
6146 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6148 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6152 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6153 D["\1"]=" \3\\\\\\n"\\/p
6155 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6160 s/.\{148\}/&'"$ac_delim"'/g
6165 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6168 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6170 ' <confdefs.h | sed '
6171 s/'"$ac_delim"'/"\\\
6172 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6175 for (key in D) D_is_set[key] = 1
6178 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6180 split(line, arg, " ")
6181 if (arg[1] == "#") {
6185 defundef = substr(arg[1], 2)
6188 split(mac1, mac2, "(") #)
6190 prefix = substr(line, 1, index(line, defundef) - 1)
6191 if (D_is_set[macro]) {
6192 # Preserve the white space surrounding the "#".
6193 print prefix "define", macro P[macro] D[macro]
6196 # Replace #undef with comments. This is necessary, for example,
6197 # in the case of _POSIX_SOURCE, which is predefined and required
6198 # on some systems where configure will not decide to define it.
6199 if (defundef == "undef") {
6200 print "/*", prefix defundef, macro, "*/"
6208 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6209 as_fn_error "could not setup config headers machinery" "$LINENO" 5
6210 fi # test -n "$CONFIG_HEADERS"
6213 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
6218 :[FHLC]) ac_mode=$ac_tag; continue;;
6220 case $ac_mode$ac_tag in
6222 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
6223 :[FH]-) ac_tag=-:-;;
6224 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6241 -) ac_f="$tmp/stdin";;
6242 *) # Look for the file first in the build tree, then in the source tree
6243 # (if the path is not absolute). The absolute path cannot be DOS-style,
6244 # because $ac_f cannot contain `:'.
6248 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6250 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6252 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6253 as_fn_append ac_file_inputs " '$ac_f'"
6256 # Let's still pretend it is `configure' which instantiates (i.e., don't
6257 # use $as_me), people would be surprised to read:
6258 # /* config.h. Generated by config.status. */
6259 configure_input='Generated from '`
6260 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6262 if test x"$ac_file" != x-; then
6263 configure_input="$ac_file. $configure_input"
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6265 $as_echo "$as_me: creating $ac_file" >&6;}
6267 # Neutralize special characters interpreted by sed in replacement strings.
6268 case $configure_input in #(
6269 *\&* | *\|* | *\\* )
6270 ac_sed_conf_input=`$as_echo "$configure_input" |
6271 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6272 *) ac_sed_conf_input=$configure_input;;
6276 *:-:* | *:-) cat >"$tmp/stdin" \
6277 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
6282 ac_dir=`$as_dirname -- "$ac_file" ||
6283 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6284 X"$ac_file" : 'X\(//\)[^/]' \| \
6285 X"$ac_file" : 'X\(//\)$' \| \
6286 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6287 $as_echo X"$ac_file" |
6288 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6305 as_dir="$ac_dir"; as_fn_mkdir_p
6309 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6311 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6312 # A ".." for each directory in $ac_dir_suffix.
6313 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6314 case $ac_top_builddir_sub in
6315 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6316 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6319 ac_abs_top_builddir=$ac_pwd
6320 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6321 # for backward compatibility:
6322 ac_top_builddir=$ac_top_build_prefix
6325 .) # We are building in place.
6327 ac_top_srcdir=$ac_top_builddir_sub
6328 ac_abs_top_srcdir=$ac_pwd ;;
6329 [\\/]* | ?:[\\/]* ) # Absolute name.
6330 ac_srcdir=$srcdir$ac_dir_suffix;
6331 ac_top_srcdir=$srcdir
6332 ac_abs_top_srcdir=$srcdir ;;
6334 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6335 ac_top_srcdir=$ac_top_build_prefix$srcdir
6336 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6338 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6348 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6349 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6353 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6354 # If the template does not know about datarootdir, expand it.
6355 # FIXME: This hack should be removed a few years after 2.60.
6356 ac_datarootdir_hack=; ac_datarootdir_seen=
6367 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6368 *datarootdir*) ac_datarootdir_seen=yes;;
6369 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6371 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6373 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6374 ac_datarootdir_hack='
6375 s&@datadir@&$datadir&g
6376 s&@docdir@&$docdir&g
6377 s&@infodir@&$infodir&g
6378 s&@localedir@&$localedir&g
6379 s&@mandir@&$mandir&g
6380 s&\\\${datarootdir}&$datarootdir&g' ;;
6384 # Neutralize VPATH when `$srcdir' = `.'.
6385 # Shell code in configure.ac might set extrasub.
6386 # FIXME: do we really want to maintain this feature?
6387 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6388 ac_sed_extra="$ac_vpsub
6391 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6393 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6394 s|@configure_input@|$ac_sed_conf_input|;t t
6395 s&@top_builddir@&$ac_top_builddir_sub&;t t
6396 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6397 s&@srcdir@&$ac_srcdir&;t t
6398 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6399 s&@top_srcdir@&$ac_top_srcdir&;t t
6400 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6401 s&@builddir@&$ac_builddir&;t t
6402 s&@abs_builddir@&$ac_abs_builddir&;t t
6403 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6404 s&@INSTALL@&$ac_INSTALL&;t t
6405 $ac_datarootdir_hack
6407 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
6408 || as_fn_error "could not create $ac_file" "$LINENO" 5
6410 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6411 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6412 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6414 which seems to be undefined. Please make sure it is defined." >&5
6415 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6416 which seems to be undefined. Please make sure it is defined." >&2;}
6420 -) cat "$tmp/out" && rm -f "$tmp/out";;
6421 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
6423 || as_fn_error "could not create $ac_file" "$LINENO" 5
6429 if test x"$ac_file" != x-; then
6431 $as_echo "/* $configure_input */" \
6432 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
6433 } >"$tmp/config.h" \
6434 || as_fn_error "could not create $ac_file" "$LINENO" 5
6435 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6437 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6440 mv "$tmp/config.h" "$ac_file" \
6441 || as_fn_error "could not create $ac_file" "$LINENO" 5
6444 $as_echo "/* $configure_input */" \
6445 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
6446 || as_fn_error "could not create -" "$LINENO" 5
6454 case $ac_file$ac_mode in
6455 "build/apxs-wrapper":F) chmod +x build/apxs-wrapper ;;
6456 "mlogc-src/mlogc-batch-load.pl":F) chmod +x mlogc-src/mlogc-batch-load.pl ;;
6457 "t/run-unit-tests.pl":F) chmod +x t/run-unit-tests.pl ;;
6458 "t/run-regression-tests.pl":F) chmod +x t/run-regression-tests.pl ;;
6459 "t/gen_rx-pm.pl":F) chmod +x t/gen_rx-pm.pl ;;
6460 "t/csv_rx-pm.pl":F) chmod +x t/csv_rx-pm.pl ;;
6461 "../tools/rules-updater.pl":F) chmod +x ../tools/rules-updater.pl ;;
6469 ac_clean_files=$ac_clean_files_save
6471 test $ac_write_fail = 0 ||
6472 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
6475 # configure is writing to config.log, and then calls config.status.
6476 # config.status does its own redirection, appending to config.log.
6477 # Unfortunately, on DOS this fails, as config.log is still kept open
6478 # by configure, so config.status won't be able to write to it; its
6479 # output is simply discarded. So we exec the FD to /dev/null,
6480 # effectively closing config.log, so it can be properly (re)opened and
6481 # appended to by config.status. When coming back to configure, we
6482 # need to make the FD available again.
6483 if test "$no_create" != yes; then
6485 ac_config_status_args=
6486 test "$silent" = yes &&
6487 ac_config_status_args="$ac_config_status_args --quiet"
6489 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6491 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6492 # would make configure fail if this is the last instruction.
6493 $ac_cs_success || as_fn_exit $?
6495 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6497 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}