Imported Upstream version 2.5.11
[libapache-mod-security.git] / apache2 / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
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 ## -------------------- ##
14
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 :
18   emulate sh
19   NULLCMD=:
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+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
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
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
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'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
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.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 case $0 in #((
91   *[\\/]* ) as_myself=$0 ;;
92   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95   IFS=$as_save_IFS
96   test -z "$as_dir" && as_dir=.
97     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98   done
99 IFS=$as_save_IFS
100
101      ;;
102 esac
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
106   as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110   exit 1
111 fi
112
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 || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
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 :
136   emulate sh
137   NULLCMD=:
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+\"\$@\"}'='\"\$@\"'
141   setopt NO_GLOB_SUBST
142 else
143   case \`(set -o) 2>/dev/null\` in #(
144   *posix*) :
145     set -o posix ;; #(
146   *) :
147      ;;
148 esac
149 fi
150 "
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; }
156
157 exitcode=0
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 :
163
164 else
165   exitcode=1; echo positional parameters were not saved.
166 fi
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 :
174   as_have_required=yes
175 else
176   as_have_required=no
177 fi
178   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180 else
181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 do
185   IFS=$as_save_IFS
186   test -z "$as_dir" && as_dir=.
187   as_found=:
188   case $as_dir in #(
189          /*)
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 :
197   break 2
198 fi
199 fi
200            done;;
201        esac
202   as_found=false
203 done
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
207 fi; }
208 IFS=$as_save_IFS
209
210
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.
215         BASH_ENV=/dev/null
216         ENV=/dev/null
217         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218         export CONFIG_SHELL
219         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220 fi
221
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."
228   else
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."
233   fi
234   exit 1
235 fi
236 fi
237 fi
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
243
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
251 {
252   { eval $1=; unset $1;}
253 }
254 as_unset=as_fn_unset
255
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
260 {
261   return $1
262 } # as_fn_set_status
263
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
268 {
269   set +e
270   as_fn_set_status $1
271   exit $1
272 } # as_fn_exit
273
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
278 {
279
280   case $as_dir in #(
281   -*) as_dir=./$as_dir;;
282   esac
283   test -d "$as_dir" || eval $as_mkdir_p || {
284     as_dirs=
285     while :; do
286       case $as_dir in #(
287       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288       *) as_qdir=$as_dir;;
289       esac
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298             s//\1/
299             q
300           }
301           /^X\(\/\/\)[^/].*/{
302             s//\1/
303             q
304           }
305           /^X\(\/\/\)$/{
306             s//\1/
307             q
308           }
309           /^X\(\/\).*/{
310             s//\1/
311             q
312           }
313           s/.*/./; q'`
314       test -d "$as_dir" && break
315     done
316     test -z "$as_dirs" || eval "mkdir $as_dirs"
317   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320 } # as_fn_mkdir_p
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
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328   eval 'as_fn_append ()
329   {
330     eval $1+=\$2
331   }'
332 else
333   as_fn_append ()
334   {
335     eval $1=\$$1\$2
336   }
337 fi # as_fn_append
338
339 # as_fn_arith ARG...
340 # ------------------
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 :
345   eval 'as_fn_arith ()
346   {
347     as_val=$(( $* ))
348   }'
349 else
350   as_fn_arith ()
351   {
352     as_val=`expr "$@" || test $? -eq 1`
353   }
354 fi # as_fn_arith
355
356
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.
362 as_fn_error ()
363 {
364   as_status=$?; test $as_status -eq 0 && as_status=1
365   if test "$3"; then
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
368   fi
369   $as_echo "$as_me: error: $1" >&2
370   as_fn_exit $as_status
371 } # as_fn_error
372
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374    test "X`expr 00001 : '.*\(...\)'`" = X001; then
375   as_expr=expr
376 else
377   as_expr=false
378 fi
379
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381   as_basename=basename
382 else
383   as_basename=false
384 fi
385
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387   as_dirname=dirname
388 else
389   as_dirname=false
390 fi
391
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394          X"$0" : 'X\(//\)$' \| \
395          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397     sed '/^.*\/\([^/][^/]*\)\/*$/{
398             s//\1/
399             q
400           }
401           /^X\/\(\/\/\)$/{
402             s//\1/
403             q
404           }
405           /^X\/\(\/\).*/{
406             s//\1/
407             q
408           }
409           s/.*/./; q'`
410
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
417
418
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.  :-)
424   sed -n '
425     p
426     /[$]LINENO/=
427   ' <$as_myself |
428     sed '
429       s/[$]LINENO.*/&-/
430       t lineno
431       b
432       :lineno
433       N
434       :loop
435       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436       t loop
437       s/-\n.*//
438     ' >$as_me.lineno &&
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; }
441
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).
445   . "./$as_me.lineno"
446   # Exit status is that of the last command.
447   exit
448 }
449
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453   case `echo 'xy\c'` in
454   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
455   xy)  ECHO_C='\c';;
456   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
457        ECHO_T=' ';;
458   esac;;
459 *)
460   ECHO_N='-n';;
461 esac
462
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465   rm -f conf$$.dir/conf$$.file
466 else
467   rm -f conf$$.dir
468   mkdir conf$$.dir 2>/dev/null
469 fi
470 if (echo >conf$$.file) 2>/dev/null; then
471   if ln -s conf$$.file conf$$ 2>/dev/null; then
472     as_ln_s='ln -s'
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 ||
478       as_ln_s='cp -p'
479   elif ln conf$$.file conf$$ 2>/dev/null; then
480     as_ln_s=ln
481   else
482     as_ln_s='cp -p'
483   fi
484 else
485   as_ln_s='cp -p'
486 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
489
490 if mkdir -p . 2>/dev/null; then
491   as_mkdir_p='mkdir -p "$as_dir"'
492 else
493   test -d ./-p && rmdir ./-p
494   as_mkdir_p=false
495 fi
496
497 if test -x / >/dev/null 2>&1; then
498   as_test_x='test -x'
499 else
500   if ls -dL / >/dev/null 2>&1; then
501     as_ls_L_option=L
502   else
503     as_ls_L_option=
504   fi
505   as_test_x='
506     eval sh -c '\''
507       if test -d "$1"; then
508         test -d "$1/.";
509       else
510         case $1 in #(
511         -*)set "./$1";;
512         esac;
513         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514         ???[sx]*):;;*)false;;esac;fi
515     '\'' sh
516   '
517 fi
518 as_executable_p=$as_test_x
519
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'"
522
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'"
525
526
527 exec 7<&0 </dev/null 6>&1
528
529 # Name of the host.
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`
533
534 #
535 # Initializations.
536 #
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
545
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
553
554 ac_unique_file="mod_security2.c"
555 # Factoring default headers for most tests.
556 ac_includes_default="\
557 #include <stdio.h>
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
560 #endif
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
563 #endif
564 #ifdef STDC_HEADERS
565 # include <stdlib.h>
566 # include <stddef.h>
567 #else
568 # ifdef HAVE_STDLIB_H
569 #  include <stdlib.h>
570 # endif
571 #endif
572 #ifdef HAVE_STRING_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
574 #  include <memory.h>
575 # endif
576 # include <string.h>
577 #endif
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
580 #endif
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
583 #endif
584 #ifdef HAVE_STDINT_H
585 # include <stdint.h>
586 #endif
587 #ifdef HAVE_UNISTD_H
588 # include <unistd.h>
589 #endif"
590
591 ac_subst_vars='LTLIBOBJS
592 CURL_USES_GNUTLS
593 CURL_CFLAGS
594 CURL_LIBS
595 LUA_CFLAGS
596 LUA_LIBS
597 LIBXML2_CFLAGS
598 LIBXML2_LIBS
599 APU_LINK_LD
600 APU_LDFLAGS
601 APU_CFLAGS
602 APU_LIBS
603 APR_LINK_LD
604 APR_LDFLAGS
605 APR_CFLAGS
606 APR_LIBS
607 PCRE_CFLAGS
608 PCRE_LIBS
609 APXS_HTTPD
610 APXS_LIBEXECDIR
611 APXS_PROGNAME
612 APXS_SBINDIR
613 APXS_BINDIR
614 APXS_LIBDIR
615 APXS_CC
616 APXS_LIBTOOL
617 APXS_CFLAGS
618 APXS_LIBS
619 APXS_LDFLAGS
620 MODSEC_APXS_EXTRA_CFLAGS
621 APXS_EXTRA_CFLAGS
622 APXS_INCLUDES
623 APXS_INCLUDEDIR
624 APXS_WRAPPER
625 APXS
626 MODSEC_EXTRA_CFLAGS
627 EXTRA_CFLAGS
628 MSC_REGRESSION_DOCROOT_DIR
629 MSC_REGRESSION_LOGS_DIR
630 MSC_REGRESSION_CONF_DIR
631 MSC_REGRESSION_SERVERROOT_DIR
632 MSC_REGRESSION_DIR
633 MSC_TEST_DIR
634 MSC_PKGBASE_DIR
635 MSC_BASE_DIR
636 LIBOBJS
637 EGREP
638 ENV_CMD
639 PERL
640 GREP
641 RANLIB
642 SET_MAKE
643 LN_S
644 INSTALL_DATA
645 INSTALL_SCRIPT
646 INSTALL_PROGRAM
647 CPP
648 OBJEXT
649 EXEEXT
650 ac_ct_CC
651 CPPFLAGS
652 LDFLAGS
653 CFLAGS
654 CC
655 AWK
656 target_alias
657 host_alias
658 build_alias
659 LIBS
660 ECHO_T
661 ECHO_N
662 ECHO_C
663 DEFS
664 mandir
665 localedir
666 libdir
667 psdir
668 pdfdir
669 dvidir
670 htmldir
671 infodir
672 docdir
673 oldincludedir
674 includedir
675 localstatedir
676 sharedstatedir
677 sysconfdir
678 datadir
679 datarootdir
680 libexecdir
681 sbindir
682 bindir
683 program_transform_name
684 prefix
685 exec_prefix
686 PACKAGE_URL
687 PACKAGE_BUGREPORT
688 PACKAGE_STRING
689 PACKAGE_VERSION
690 PACKAGE_TARNAME
691 PACKAGE_NAME
692 PATH_SEPARATOR
693 SHELL'
694 ac_subst_files=''
695 ac_user_opts='
696 enable_option_checking
697 enable_errors
698 enable_verbose_output
699 enable_strict_compile
700 enable_debug_conf
701 enable_debug_cache
702 enable_debug_acmp
703 enable_debug_mem
704 enable_performance_measurement
705 enable_modsec_api
706 with_apxs
707 with_pcre
708 with_apr
709 with_apu
710 with_libxml
711 with_lua
712 with_curl
713 '
714       ac_precious_vars='build_alias
715 host_alias
716 target_alias
717 CC
718 CFLAGS
719 LDFLAGS
720 LIBS
721 CPPFLAGS
722 CPP'
723
724
725 # Initialize some variables set by options.
726 ac_init_help=
727 ac_init_version=false
728 ac_unrecognized_opts=
729 ac_unrecognized_sep=
730 # The variables have the same names as the options, with
731 # dashes changed to underlines.
732 cache_file=/dev/null
733 exec_prefix=NONE
734 no_create=
735 no_recursion=
736 prefix=NONE
737 program_prefix=NONE
738 program_suffix=NONE
739 program_transform_name=s,x,x,
740 silent=
741 site=
742 srcdir=
743 verbose=
744 x_includes=NONE
745 x_libraries=NONE
746
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'
765 htmldir='${docdir}'
766 dvidir='${docdir}'
767 pdfdir='${docdir}'
768 psdir='${docdir}'
769 libdir='${exec_prefix}/lib'
770 localedir='${datarootdir}/locale'
771 mandir='${datarootdir}/man'
772
773 ac_prev=
774 ac_dashdash=
775 for ac_option
776 do
777   # If the previous option needs an argument, assign it.
778   if test -n "$ac_prev"; then
779     eval $ac_prev=\$ac_option
780     ac_prev=
781     continue
782   fi
783
784   case $ac_option in
785   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
786   *)    ac_optarg=yes ;;
787   esac
788
789   # Accept the important Cygnus configure options, so we can diagnose typos.
790
791   case $ac_dashdash$ac_option in
792   --)
793     ac_dashdash=yes ;;
794
795   -bindir | --bindir | --bindi | --bind | --bin | --bi)
796     ac_prev=bindir ;;
797   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
798     bindir=$ac_optarg ;;
799
800   -build | --build | --buil | --bui | --bu)
801     ac_prev=build_alias ;;
802   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
803     build_alias=$ac_optarg ;;
804
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 ;;
811
812   --config-cache | -C)
813     cache_file=config.cache ;;
814
815   -datadir | --datadir | --datadi | --datad)
816     ac_prev=datadir ;;
817   -datadir=* | --datadir=* | --datadi=* | --datad=*)
818     datadir=$ac_optarg ;;
819
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 ;;
826
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
835       *"
836 "enable_$ac_useropt"
837 "*) ;;
838       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
839          ac_unrecognized_sep=', ';;
840     esac
841     eval enable_$ac_useropt=no ;;
842
843   -docdir | --docdir | --docdi | --doc | --do)
844     ac_prev=docdir ;;
845   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
846     docdir=$ac_optarg ;;
847
848   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
849     ac_prev=dvidir ;;
850   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
851     dvidir=$ac_optarg ;;
852
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
861       *"
862 "enable_$ac_useropt"
863 "*) ;;
864       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
865          ac_unrecognized_sep=', ';;
866     esac
867     eval enable_$ac_useropt=\$ac_optarg ;;
868
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 ;;
877
878   -gas | --gas | --ga | --g)
879     # Obsolete; use --with-gas.
880     with_gas=yes ;;
881
882   -help | --help | --hel | --he | -h)
883     ac_init_help=long ;;
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 ;;
888
889   -host | --host | --hos | --ho)
890     ac_prev=host_alias ;;
891   -host=* | --host=* | --hos=* | --ho=*)
892     host_alias=$ac_optarg ;;
893
894   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
895     ac_prev=htmldir ;;
896   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
897   | --ht=*)
898     htmldir=$ac_optarg ;;
899
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 ;;
906
907   -infodir | --infodir | --infodi | --infod | --info | --inf)
908     ac_prev=infodir ;;
909   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
910     infodir=$ac_optarg ;;
911
912   -libdir | --libdir | --libdi | --libd)
913     ac_prev=libdir ;;
914   -libdir=* | --libdir=* | --libdi=* | --libd=*)
915     libdir=$ac_optarg ;;
916
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 ;;
923
924   -localedir | --localedir | --localedi | --localed | --locale)
925     ac_prev=localedir ;;
926   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
927     localedir=$ac_optarg ;;
928
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 ;;
935
936   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
937     ac_prev=mandir ;;
938   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
939     mandir=$ac_optarg ;;
940
941   -nfp | --nfp | --nf)
942     # Obsolete; use --without-fp.
943     with_fp=no ;;
944
945   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
946   | --no-cr | --no-c | -n)
947     no_create=yes ;;
948
949   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
950   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
951     no_recursion=yes ;;
952
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 ;;
961
962   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
963     ac_prev=prefix ;;
964   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
965     prefix=$ac_optarg ;;
966
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 ;;
973
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 ;;
980
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 ;;
997
998   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
999     ac_prev=pdfdir ;;
1000   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1001     pdfdir=$ac_optarg ;;
1002
1003   -psdir | --psdir | --psdi | --psd | --ps)
1004     ac_prev=psdir ;;
1005   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1006     psdir=$ac_optarg ;;
1007
1008   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1009   | -silent | --silent | --silen | --sile | --sil)
1010     silent=yes ;;
1011
1012   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1013     ac_prev=sbindir ;;
1014   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1015   | --sbi=* | --sb=*)
1016     sbindir=$ac_optarg ;;
1017
1018   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1019   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1020   | --sharedst | --shareds | --shared | --share | --shar \
1021   | --sha | --sh)
1022     ac_prev=sharedstatedir ;;
1023   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1024   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1025   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1026   | --sha=* | --sh=*)
1027     sharedstatedir=$ac_optarg ;;
1028
1029   -site | --site | --sit)
1030     ac_prev=site ;;
1031   -site=* | --site=* | --sit=*)
1032     site=$ac_optarg ;;
1033
1034   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1035     ac_prev=srcdir ;;
1036   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1037     srcdir=$ac_optarg ;;
1038
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 ;;
1045
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 ;;
1050
1051   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1052     verbose=yes ;;
1053
1054   -version | --version | --versio | --versi | --vers | -V)
1055     ac_init_version=: ;;
1056
1057   -with-* | --with-*)
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
1065       *"
1066 "with_$ac_useropt"
1067 "*) ;;
1068       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1069          ac_unrecognized_sep=', ';;
1070     esac
1071     eval with_$ac_useropt=\$ac_optarg ;;
1072
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
1081       *"
1082 "with_$ac_useropt"
1083 "*) ;;
1084       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1085          ac_unrecognized_sep=', ';;
1086     esac
1087     eval with_$ac_useropt=no ;;
1088
1089   --x)
1090     # Obsolete; use --with-x.
1091     with_x=yes ;;
1092
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 ;;
1099
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 ;;
1106
1107   -*) as_fn_error "unrecognized option: \`$ac_option'
1108 Try \`$0 --help' for more information."
1109     ;;
1110
1111   *=*)
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'" ;;
1117     esac
1118     eval $ac_envvar=\$ac_optarg
1119     export $ac_envvar ;;
1120
1121   *)
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}
1127     ;;
1128
1129   esac
1130 done
1131
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"
1135 fi
1136
1137 if test -n "$ac_unrecognized_opts"; then
1138   case $enable_option_checking in
1139     no) ;;
1140     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1141     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1142   esac
1143 fi
1144
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
1150 do
1151   eval ac_val=\$$ac_var
1152   # Remove trailing slashes.
1153   case $ac_val in
1154     */ )
1155       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1156       eval $ac_var=\$ac_val;;
1157   esac
1158   # Be sure to have absolute directory names.
1159   case $ac_val in
1160     [\\/$]* | ?:[\\/]* )  continue;;
1161     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1162   esac
1163   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1164 done
1165
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.
1169 build=$build_alias
1170 host=$host_alias
1171 target=$target_alias
1172
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
1180     cross_compiling=yes
1181   fi
1182 fi
1183
1184 ac_tool_prefix=
1185 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1186
1187 test "$silent" = yes && exec 6>/dev/null
1188
1189
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"
1196
1197
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1209             s//\1/
1210             q
1211           }
1212           /^X\(\/\/\)[^/].*/{
1213             s//\1/
1214             q
1215           }
1216           /^X\(\/\/\)$/{
1217             s//\1/
1218             q
1219           }
1220           /^X\(\/\).*/{
1221             s//\1/
1222             q
1223           }
1224           s/.*/./; q'`
1225   srcdir=$ac_confdir
1226   if test ! -r "$srcdir/$ac_unique_file"; then
1227     srcdir=..
1228   fi
1229 else
1230   ac_srcdir_defaulted=no
1231 fi
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"
1235 fi
1236 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1237 ac_abs_confdir=`(
1238         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1239         pwd)`
1240 # When building in place, set srcdir=.
1241 if test "$ac_abs_confdir" = "$ac_pwd"; then
1242   srcdir=.
1243 fi
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.
1247 case $srcdir in
1248 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1249 esac
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}
1255 done
1256
1257 #
1258 # Report the --help message.
1259 #
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.
1263   cat <<_ACEOF
1264 \`configure' configures this package to adapt to many kinds of systems.
1265
1266 Usage: $0 [OPTION]... [VAR=VALUE]...
1267
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.
1270
1271 Defaults for the options are specified in brackets.
1272
1273 Configuration:
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 \`..']
1283
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
1288                           [PREFIX]
1289
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'.
1294
1295 For better control, use the options below.
1296
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]
1317 _ACEOF
1318
1319   cat <<\_ACEOF
1320 _ACEOF
1321 fi
1322
1323 if test -n "$ac_init_help"; then
1324
1325   cat <<\_ACEOF
1326
1327 Optional Features:
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.
1342
1343 Optional Packages:
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
1353
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>
1362   CPP         C preprocessor
1363
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.
1366
1367 Report bugs to the package provider.
1368 _ACEOF
1369 ac_status=$?
1370 fi
1371
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"; } ||
1377       continue
1378     ac_builddir=.
1379
1380 case "$ac_dir" in
1381 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1382 *)
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/ ;;
1389   esac ;;
1390 esac
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
1395
1396 case $srcdir in
1397   .)  # We are building in place.
1398     ac_srcdir=.
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 ;;
1405   *) # Relative name.
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 ;;
1409 esac
1410 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1411
1412     cd "$ac_dir" || { ac_status=$?; continue; }
1413     # Check for guested configure.
1414     if test -f "$ac_srcdir/configure.gnu"; then
1415       echo &&
1416       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1417     elif test -f "$ac_srcdir/configure"; then
1418       echo &&
1419       $SHELL "$ac_srcdir/configure" --help=recursive
1420     else
1421       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1422     fi || ac_status=$?
1423     cd "$ac_pwd" || { ac_status=$?; break; }
1424   done
1425 fi
1426
1427 test -n "$ac_init_help" && exit $ac_status
1428 if $ac_init_version; then
1429   cat <<\_ACEOF
1430 configure
1431 generated by GNU Autoconf 2.64
1432
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.
1436 _ACEOF
1437   exit
1438 fi
1439
1440 ## ------------------------ ##
1441 ## Autoconf initialization. ##
1442 ## ------------------------ ##
1443
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 ()
1448 {
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"
1452 case "(($ac_try" in
1453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1454   *) ac_try_echo=$ac_try;;
1455 esac
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
1459   ac_status=$?
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
1464   fi
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 :
1470   ac_retval=0
1471 else
1472   $as_echo "$as_me: failed program was:" >&5
1473 sed 's/^/| /' conftest.$ac_ext >&5
1474
1475         ac_retval=1
1476 fi
1477   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1478   return $ac_retval
1479
1480 } # ac_fn_c_try_compile
1481
1482 # ac_fn_c_try_cpp LINENO
1483 # ----------------------
1484 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1485 ac_fn_c_try_cpp ()
1486 {
1487   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1488   if { { ac_try="$ac_cpp conftest.$ac_ext"
1489 case "(($ac_try" in
1490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1491   *) ac_try_echo=$ac_try;;
1492 esac
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
1496   ac_status=$?
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
1501   fi
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
1506        }; then :
1507   ac_retval=0
1508 else
1509   $as_echo "$as_me: failed program was:" >&5
1510 sed 's/^/| /' conftest.$ac_ext >&5
1511
1512     ac_retval=1
1513 fi
1514   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1515   return $ac_retval
1516
1517 } # ac_fn_c_try_cpp
1518
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.
1523 ac_fn_c_try_run ()
1524 {
1525   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1526   if { { ac_try="$ac_link"
1527 case "(($ac_try" in
1528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1529   *) ac_try_echo=$ac_try;;
1530 esac
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
1534   ac_status=$?
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;;
1540 esac
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
1544   ac_status=$?
1545   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1546   test $ac_status = 0; }; }; then :
1547   ac_retval=0
1548 else
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
1552
1553        ac_retval=$ac_status
1554 fi
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;}
1557   return $ac_retval
1558
1559 } # ac_fn_c_try_run
1560
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
1565 # accordingly.
1566 ac_fn_c_check_header_mongrel ()
1567 {
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
1574 fi
1575 eval ac_res=\$$3
1576                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1577 $as_echo "$ac_res" >&6; }
1578 else
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.  */
1584 $4
1585 #include <$2>
1586 _ACEOF
1587 if ac_fn_c_try_compile "$LINENO"; then :
1588   ac_header_compiler=yes
1589 else
1590   ac_header_compiler=no
1591 fi
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; }
1595
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.  */
1601 #include <$2>
1602 _ACEOF
1603 if ac_fn_c_try_cpp "$LINENO"; then :
1604   ac_header_preproc=yes
1605 else
1606   ac_header_preproc=no
1607 fi
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; }
1611
1612 # So?  What about this header?
1613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1614   yes:no: )
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;}
1619     ;;
1620   no:yes:* )
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;}
1631     ;;
1632 esac
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
1637 else
1638   eval "$3=\$ac_header_compiler"
1639 fi
1640 eval ac_res=\$$3
1641                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1642 $as_echo "$ac_res" >&6; }
1643 fi
1644   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1645
1646 } # ac_fn_c_check_header_mongrel
1647
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 ()
1653 {
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
1659 else
1660   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1661 /* end confdefs.h.  */
1662 $4
1663 #include <$2>
1664 _ACEOF
1665 if ac_fn_c_try_compile "$LINENO"; then :
1666   eval "$3=yes"
1667 else
1668   eval "$3=no"
1669 fi
1670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1671 fi
1672 eval ac_res=\$$3
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;}
1676
1677 } # ac_fn_c_check_header_compile
1678
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 ()
1684 {
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
1690 else
1691   eval "$3=no"
1692   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1693 /* end confdefs.h.  */
1694 $4
1695 int
1696 main ()
1697 {
1698 if (sizeof ($2))
1699          return 0;
1700   ;
1701   return 0;
1702 }
1703 _ACEOF
1704 if ac_fn_c_try_compile "$LINENO"; then :
1705   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1706 /* end confdefs.h.  */
1707 $4
1708 int
1709 main ()
1710 {
1711 if (sizeof (($2)))
1712             return 0;
1713   ;
1714   return 0;
1715 }
1716 _ACEOF
1717 if ac_fn_c_try_compile "$LINENO"; then :
1718
1719 else
1720   eval "$3=yes"
1721 fi
1722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1723 fi
1724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1725 fi
1726 eval ac_res=\$$3
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;}
1730
1731 } # ac_fn_c_check_type
1732
1733 # ac_fn_c_find_uintX_t LINENO BITS VAR
1734 # ------------------------------------
1735 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1736 # accordingly.
1737 ac_fn_c_find_uintX_t ()
1738 {
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
1744 else
1745   eval "$3=no"
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
1751 int
1752 main ()
1753 {
1754 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
1755 test_array [0] = 0
1756
1757   ;
1758   return 0;
1759 }
1760 _ACEOF
1761 if ac_fn_c_try_compile "$LINENO"; then :
1762   case $ac_type in #(
1763   uint$2_t) :
1764     eval "$3=yes" ;; #(
1765   *) :
1766     eval "$3=\$ac_type" ;;
1767 esac
1768 fi
1769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1770        eval as_val=\$$3
1771    if test "x$as_val" = x""no; then :
1772
1773 else
1774   break
1775 fi
1776      done
1777 fi
1778 eval ac_res=\$$3
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;}
1782
1783 } # ac_fn_c_find_uintX_t
1784
1785 # ac_fn_c_try_link LINENO
1786 # -----------------------
1787 # Try to link conftest.$ac_ext, and return whether this succeeded.
1788 ac_fn_c_try_link ()
1789 {
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"
1793 case "(($ac_try" in
1794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1795   *) ac_try_echo=$ac_try;;
1796 esac
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
1800   ac_status=$?
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
1805   fi
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
1813        }; then :
1814   ac_retval=0
1815 else
1816   $as_echo "$as_me: failed program was:" >&5
1817 sed 's/^/| /' conftest.$ac_ext >&5
1818
1819         ac_retval=1
1820 fi
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;}
1827   return $ac_retval
1828
1829 } # ac_fn_c_try_link
1830
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 ()
1835 {
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
1841 else
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
1847
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.  */
1852
1853 #ifdef __STDC__
1854 # include <limits.h>
1855 #else
1856 # include <assert.h>
1857 #endif
1858
1859 #undef $2
1860
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.  */
1864 #ifdef __cplusplus
1865 extern "C"
1866 #endif
1867 char $2 ();
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
1872 choke me
1873 #endif
1874
1875 int
1876 main ()
1877 {
1878 return $2 ();
1879   ;
1880   return 0;
1881 }
1882 _ACEOF
1883 if ac_fn_c_try_link "$LINENO"; then :
1884   eval "$3=yes"
1885 else
1886   eval "$3=no"
1887 fi
1888 rm -f core conftest.err conftest.$ac_objext \
1889     conftest$ac_exeext conftest.$ac_ext
1890 fi
1891 eval ac_res=\$$3
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;}
1895
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.
1900
1901 It was created by $as_me, which was
1902 generated by GNU Autoconf 2.64.  Invocation command line was
1903
1904   $ $0 $@
1905
1906 _ACEOF
1907 exec 5>>config.log
1908 {
1909 cat <<_ASUNAME
1910 ## --------- ##
1911 ## Platform. ##
1912 ## --------- ##
1913
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`
1919
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`
1922
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`
1930
1931 _ASUNAME
1932
1933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1934 for as_dir in $PATH
1935 do
1936   IFS=$as_save_IFS
1937   test -z "$as_dir" && as_dir=.
1938     $as_echo "PATH: $as_dir"
1939   done
1940 IFS=$as_save_IFS
1941
1942 } >&5
1943
1944 cat >&5 <<_ACEOF
1945
1946
1947 ## ----------- ##
1948 ## Core tests. ##
1949 ## ----------- ##
1950
1951 _ACEOF
1952
1953
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.
1959 ac_configure_args=
1960 ac_configure_args0=
1961 ac_configure_args1=
1962 ac_must_keep_next=false
1963 for ac_pass in 1 2
1964 do
1965   for ac_arg
1966   do
1967     case $ac_arg in
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)
1971       continue ;;
1972     *\'*)
1973       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1974     esac
1975     case $ac_pass in
1976     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1977     2)
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.
1981       else
1982         case $ac_arg in
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 ;;
1989             esac
1990             ;;
1991           -* ) ac_must_keep_next=true ;;
1992         esac
1993       fi
1994       as_fn_append ac_configure_args " '$ac_arg'"
1995       ;;
1996     esac
1997   done
1998 done
1999 { ac_configure_args0=; unset ac_configure_args0;}
2000 { ac_configure_args1=; unset ac_configure_args1;}
2001
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.
2009   {
2010     echo
2011
2012     cat <<\_ASBOX
2013 ## ---------------- ##
2014 ## Cache variables. ##
2015 ## ---------------- ##
2016 _ASBOX
2017     echo
2018     # The following way of writing the cache mishandles newlines in values,
2019 (
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
2022     case $ac_val in #(
2023     *${as_nl}*)
2024       case $ac_var in #(
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;} ;;
2027       esac
2028       case $ac_var in #(
2029       _ | IFS | as_nl) ;; #(
2030       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2031       *) { eval $ac_var=; unset $ac_var;} ;;
2032       esac ;;
2033     esac
2034   done
2035   (set) 2>&1 |
2036     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2037     *${as_nl}ac_space=\ *)
2038       sed -n \
2039         "s/'\''/'\''\\\\'\'''\''/g;
2040           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2041       ;; #(
2042     *)
2043       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2044       ;;
2045     esac |
2046     sort
2047 )
2048     echo
2049
2050     cat <<\_ASBOX
2051 ## ----------------- ##
2052 ## Output variables. ##
2053 ## ----------------- ##
2054 _ASBOX
2055     echo
2056     for ac_var in $ac_subst_vars
2057     do
2058       eval ac_val=\$$ac_var
2059       case $ac_val in
2060       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2061       esac
2062       $as_echo "$ac_var='\''$ac_val'\''"
2063     done | sort
2064     echo
2065
2066     if test -n "$ac_subst_files"; then
2067       cat <<\_ASBOX
2068 ## ------------------- ##
2069 ## File substitutions. ##
2070 ## ------------------- ##
2071 _ASBOX
2072       echo
2073       for ac_var in $ac_subst_files
2074       do
2075         eval ac_val=\$$ac_var
2076         case $ac_val in
2077         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2078         esac
2079         $as_echo "$ac_var='\''$ac_val'\''"
2080       done | sort
2081       echo
2082     fi
2083
2084     if test -s confdefs.h; then
2085       cat <<\_ASBOX
2086 ## ----------- ##
2087 ## confdefs.h. ##
2088 ## ----------- ##
2089 _ASBOX
2090       echo
2091       cat confdefs.h
2092       echo
2093     fi
2094     test "$ac_signal" != 0 &&
2095       $as_echo "$as_me: caught signal $ac_signal"
2096     $as_echo "$as_me: exit $exit_status"
2097   } >&5
2098   rm -f core *.core core.conftest.* &&
2099     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2100     exit $exit_status
2101 ' 0
2102 for ac_signal in 1 2 13 15; do
2103   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2104 done
2105 ac_signal=0
2106
2107 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2108 rm -f -r conftest* confdefs.h
2109
2110 $as_echo "/* confdefs.h */" > confdefs.h
2111
2112 # Predefined preprocessor variables.
2113
2114 cat >>confdefs.h <<_ACEOF
2115 #define PACKAGE_NAME "$PACKAGE_NAME"
2116 _ACEOF
2117
2118 cat >>confdefs.h <<_ACEOF
2119 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2120 _ACEOF
2121
2122 cat >>confdefs.h <<_ACEOF
2123 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2124 _ACEOF
2125
2126 cat >>confdefs.h <<_ACEOF
2127 #define PACKAGE_STRING "$PACKAGE_STRING"
2128 _ACEOF
2129
2130 cat >>confdefs.h <<_ACEOF
2131 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2132 _ACEOF
2133
2134 cat >>confdefs.h <<_ACEOF
2135 #define PACKAGE_URL "$PACKAGE_URL"
2136 _ACEOF
2137
2138
2139 # Let the site file select an alternate cache file if it wants to.
2140 # Prefer an explicitly selected file to automatically selected ones.
2141 ac_site_file1=NONE
2142 ac_site_file2=NONE
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
2148 else
2149   ac_site_file1=$ac_default_prefix/share/config.site
2150   ac_site_file2=$ac_default_prefix/etc/config.site
2151 fi
2152 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2153 do
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
2159     . "$ac_site_file"
2160   fi
2161 done
2162
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;}
2169     case $cache_file in
2170       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2171       *)                      . "./$cache_file";;
2172     esac
2173   fi
2174 else
2175   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2176 $as_echo "$as_me: creating cache $cache_file" >&6;}
2177   >$cache_file
2178 fi
2179
2180 # Check that the precious variables saved in the cache have kept the same
2181 # value.
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
2189     set,)
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=: ;;
2193     ,set)
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=: ;;
2197     ,);;
2198     *)
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=:
2207         else
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
2211         fi
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;}
2216       fi;;
2217   esac
2218   # Pass precious variables to config.status.
2219   if test "$ac_new_set" = set; then
2220     case $ac_new_val in
2221     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2222     *) ac_arg=$ac_var=$ac_new_val ;;
2223     esac
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'" ;;
2227     esac
2228   fi
2229 done
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
2236 fi
2237 ## -------------------- ##
2238 ## Main body of script. ##
2239 ## -------------------- ##
2240
2241 ac_ext=c
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
2246
2247
2248
2249 ac_config_headers="$ac_config_headers mod_security2_config.h"
2250
2251 ac_aux_dir=
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
2255       ac_aux_dir=$ac_dir
2256       ac_install_sh="$ac_aux_dir/$ac_t -c"
2257       break 2
2258     fi
2259   done
2260 done
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
2263 fi
2264
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.
2272
2273
2274
2275 # Checks for programs.
2276 for ac_prog in gawk mawk nawk awk
2277 do
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
2284 else
2285   if test -n "$AWK"; then
2286   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2287 else
2288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289 for as_dir in $PATH
2290 do
2291   IFS=$as_save_IFS
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
2297     break 2
2298   fi
2299 done
2300   done
2301 IFS=$as_save_IFS
2302
2303 fi
2304 fi
2305 AWK=$ac_cv_prog_AWK
2306 if test -n "$AWK"; then
2307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2308 $as_echo "$AWK" >&6; }
2309 else
2310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2311 $as_echo "no" >&6; }
2312 fi
2313
2314
2315   test -n "$AWK" && break
2316 done
2317
2318 ac_ext=c
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
2330 else
2331   if test -n "$CC"; then
2332   ac_cv_prog_CC="$CC" # Let the user override the test.
2333 else
2334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2335 for as_dir in $PATH
2336 do
2337   IFS=$as_save_IFS
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
2343     break 2
2344   fi
2345 done
2346   done
2347 IFS=$as_save_IFS
2348
2349 fi
2350 fi
2351 CC=$ac_cv_prog_CC
2352 if test -n "$CC"; then
2353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2354 $as_echo "$CC" >&6; }
2355 else
2356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2357 $as_echo "no" >&6; }
2358 fi
2359
2360
2361 fi
2362 if test -z "$ac_cv_prog_CC"; then
2363   ac_ct_CC=$CC
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
2370 else
2371   if test -n "$ac_ct_CC"; then
2372   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2373 else
2374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2375 for as_dir in $PATH
2376 do
2377   IFS=$as_save_IFS
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
2383     break 2
2384   fi
2385 done
2386   done
2387 IFS=$as_save_IFS
2388
2389 fi
2390 fi
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; }
2395 else
2396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2397 $as_echo "no" >&6; }
2398 fi
2399
2400   if test "x$ac_ct_CC" = x; then
2401     CC=""
2402   else
2403     case $cross_compiling:$ac_tool_warned in
2404 yes:)
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 ;;
2408 esac
2409     CC=$ac_ct_CC
2410   fi
2411 else
2412   CC="$ac_cv_prog_CC"
2413 fi
2414
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
2423 else
2424   if test -n "$CC"; then
2425   ac_cv_prog_CC="$CC" # Let the user override the test.
2426 else
2427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2428 for as_dir in $PATH
2429 do
2430   IFS=$as_save_IFS
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
2436     break 2
2437   fi
2438 done
2439   done
2440 IFS=$as_save_IFS
2441
2442 fi
2443 fi
2444 CC=$ac_cv_prog_CC
2445 if test -n "$CC"; then
2446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2447 $as_echo "$CC" >&6; }
2448 else
2449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2450 $as_echo "no" >&6; }
2451 fi
2452
2453
2454   fi
2455 fi
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
2463 else
2464   if test -n "$CC"; then
2465   ac_cv_prog_CC="$CC" # Let the user override the test.
2466 else
2467   ac_prog_rejected=no
2468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469 for as_dir in $PATH
2470 do
2471   IFS=$as_save_IFS
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
2477        continue
2478      fi
2479     ac_cv_prog_CC="cc"
2480     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2481     break 2
2482   fi
2483 done
2484   done
2485 IFS=$as_save_IFS
2486
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
2490   shift
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.
2495     shift
2496     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2497   fi
2498 fi
2499 fi
2500 fi
2501 CC=$ac_cv_prog_CC
2502 if test -n "$CC"; then
2503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2504 $as_echo "$CC" >&6; }
2505 else
2506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2507 $as_echo "no" >&6; }
2508 fi
2509
2510
2511 fi
2512 if test -z "$CC"; then
2513   if test -n "$ac_tool_prefix"; then
2514   for ac_prog in cl.exe
2515   do
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
2522 else
2523   if test -n "$CC"; then
2524   ac_cv_prog_CC="$CC" # Let the user override the test.
2525 else
2526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527 for as_dir in $PATH
2528 do
2529   IFS=$as_save_IFS
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
2535     break 2
2536   fi
2537 done
2538   done
2539 IFS=$as_save_IFS
2540
2541 fi
2542 fi
2543 CC=$ac_cv_prog_CC
2544 if test -n "$CC"; then
2545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2546 $as_echo "$CC" >&6; }
2547 else
2548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2549 $as_echo "no" >&6; }
2550 fi
2551
2552
2553     test -n "$CC" && break
2554   done
2555 fi
2556 if test -z "$CC"; then
2557   ac_ct_CC=$CC
2558   for ac_prog in cl.exe
2559 do
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
2566 else
2567   if test -n "$ac_ct_CC"; then
2568   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2569 else
2570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2571 for as_dir in $PATH
2572 do
2573   IFS=$as_save_IFS
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
2579     break 2
2580   fi
2581 done
2582   done
2583 IFS=$as_save_IFS
2584
2585 fi
2586 fi
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; }
2591 else
2592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2593 $as_echo "no" >&6; }
2594 fi
2595
2596
2597   test -n "$ac_ct_CC" && break
2598 done
2599
2600   if test "x$ac_ct_CC" = x; then
2601     CC=""
2602   else
2603     case $cross_compiling:$ac_tool_warned in
2604 yes:)
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 ;;
2608 esac
2609     CC=$ac_ct_CC
2610   fi
2611 fi
2612
2613 fi
2614
2615
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; }
2620
2621 # Provide some information about the compiler.
2622 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2623 set X $ac_compile
2624 ac_compiler=$2
2625 for ac_option in --version -v -V -qversion; do
2626   { { ac_try="$ac_compiler $ac_option >&5"
2627 case "(($ac_try" in
2628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2629   *) ac_try_echo=$ac_try;;
2630 esac
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
2634   ac_status=$?
2635   if test -s conftest.err; then
2636     sed '10a\
2637 ... rest of stderr output deleted ...
2638          10q' conftest.err >conftest.er1
2639     cat conftest.er1 >&5
2640     rm -f conftest.er1 conftest.err
2641   fi
2642   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2643   test $ac_status = 0; }
2644 done
2645
2646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2647 /* end confdefs.h.  */
2648 #include <stdio.h>
2649 int
2650 main ()
2651 {
2652 FILE *f = fopen ("conftest.out", "w");
2653  return ferror (f) || fclose (f) != 0;
2654
2655   ;
2656   return 0;
2657 }
2658 _ACEOF
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
2663 # of exeext.
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[^ ]*//'`
2667
2668 # The possible output files:
2669 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2670
2671 ac_rmfiles=
2672 for ac_file in $ac_files
2673 do
2674   case $ac_file in
2675     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2676     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2677   esac
2678 done
2679 rm -f $ac_rmfiles
2680
2681 if { { ac_try="$ac_link_default"
2682 case "(($ac_try" in
2683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2684   *) ac_try_echo=$ac_try;;
2685 esac
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
2689   ac_status=$?
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
2696 # Autoconf.
2697 for ac_file in $ac_files ''
2698 do
2699   test -f "$ac_file" || continue
2700   case $ac_file in
2701     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2702         ;;
2703     [ab].out )
2704         # We found the default executable, but exeext='' is most
2705         # certainly right.
2706         break;;
2707     *.* )
2708         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2709         then :; else
2710            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2711         fi
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
2716         # actually working.
2717         break;;
2718     * )
2719         break;;
2720   esac
2721 done
2722 test "$ac_cv_exeext" = no && ac_cv_exeext=
2723
2724 else
2725   ac_file=''
2726 fi
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
2732
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; }; }
2738 fi
2739 ac_exeext=$ac_cv_exeext
2740
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;;
2751 esac
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
2755   ac_status=$?
2756   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2757   test $ac_status = 0; }; }; then
2758     cross_compiling=no
2759   else
2760     if test "$cross_compiling" = maybe; then
2761         cross_compiling=yes
2762     else
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; }
2768     fi
2769   fi
2770 fi
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2772 $as_echo "yes" >&6; }
2773
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; }
2782
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"
2786 case "(($ac_try" in
2787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2788   *) ac_try_echo=$ac_try;;
2789 esac
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
2793   ac_status=$?
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
2799 # `rm'.
2800 for ac_file in conftest.exe conftest conftest.*; do
2801   test -f "$ac_file" || continue
2802   case $ac_file in
2803     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2804     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2805           break;;
2806     * ) break;;
2807   esac
2808 done
2809 else
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; }
2814 fi
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; }
2818
2819 rm -f conftest.$ac_ext
2820 EXEEXT=$ac_cv_exeext
2821 ac_exeext=$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
2826 else
2827   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2828 /* end confdefs.h.  */
2829
2830 int
2831 main ()
2832 {
2833
2834   ;
2835   return 0;
2836 }
2837 _ACEOF
2838 rm -f conftest.o conftest.obj
2839 if { { ac_try="$ac_compile"
2840 case "(($ac_try" in
2841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2842   *) ac_try_echo=$ac_try;;
2843 esac
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
2847   ac_status=$?
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;
2852   case $ac_file in
2853     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2854     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2855        break;;
2856   esac
2857 done
2858 else
2859   $as_echo "$as_me: failed program was:" >&5
2860 sed 's/^/| /' conftest.$ac_ext >&5
2861
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; }
2866 fi
2867 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2868 fi
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
2872 ac_objext=$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
2877 else
2878   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2879 /* end confdefs.h.  */
2880
2881 int
2882 main ()
2883 {
2884 #ifndef __GNUC__
2885        choke me
2886 #endif
2887
2888   ;
2889   return 0;
2890 }
2891 _ACEOF
2892 if ac_fn_c_try_compile "$LINENO"; then :
2893   ac_compiler_gnu=yes
2894 else
2895   ac_compiler_gnu=no
2896 fi
2897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2898 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2899
2900 fi
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
2904   GCC=yes
2905 else
2906   GCC=
2907 fi
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
2914 else
2915   ac_save_c_werror_flag=$ac_c_werror_flag
2916    ac_c_werror_flag=yes
2917    ac_cv_prog_cc_g=no
2918    CFLAGS="-g"
2919    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2920 /* end confdefs.h.  */
2921
2922 int
2923 main ()
2924 {
2925
2926   ;
2927   return 0;
2928 }
2929 _ACEOF
2930 if ac_fn_c_try_compile "$LINENO"; then :
2931   ac_cv_prog_cc_g=yes
2932 else
2933   CFLAGS=""
2934       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2935 /* end confdefs.h.  */
2936
2937 int
2938 main ()
2939 {
2940
2941   ;
2942   return 0;
2943 }
2944 _ACEOF
2945 if ac_fn_c_try_compile "$LINENO"; then :
2946
2947 else
2948   ac_c_werror_flag=$ac_save_c_werror_flag
2949          CFLAGS="-g"
2950          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2951 /* end confdefs.h.  */
2952
2953 int
2954 main ()
2955 {
2956
2957   ;
2958   return 0;
2959 }
2960 _ACEOF
2961 if ac_fn_c_try_compile "$LINENO"; then :
2962   ac_cv_prog_cc_g=yes
2963 fi
2964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2965 fi
2966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2967 fi
2968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2969    ac_c_werror_flag=$ac_save_c_werror_flag
2970 fi
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
2977     CFLAGS="-g -O2"
2978   else
2979     CFLAGS="-g"
2980   fi
2981 else
2982   if test "$GCC" = yes; then
2983     CFLAGS="-O2"
2984   else
2985     CFLAGS=
2986   fi
2987 fi
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
2992 else
2993   ac_cv_prog_cc_c89=no
2994 ac_save_CC=$CC
2995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2996 /* end confdefs.h.  */
2997 #include <stdarg.h>
2998 #include <stdio.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)
3005      char **p;
3006      int i;
3007 {
3008   return p[i];
3009 }
3010 static char *f (char * (*g) (char **, int), char **p, ...)
3011 {
3012   char *s;
3013   va_list v;
3014   va_start (v,p);
3015   s = g (p, va_arg (v,int));
3016   va_end (v);
3017   return s;
3018 }
3019
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];
3028
3029 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3030    inside strings and character constants.  */
3031 #define FOO(x) 'x'
3032 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3033
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);
3038 int argc;
3039 char **argv;
3040 int
3041 main ()
3042 {
3043 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3044   ;
3045   return 0;
3046 }
3047 _ACEOF
3048 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3049         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3050 do
3051   CC="$ac_save_CC $ac_arg"
3052   if ac_fn_c_try_compile "$LINENO"; then :
3053   ac_cv_prog_cc_c89=$ac_arg
3054 fi
3055 rm -f core conftest.err conftest.$ac_objext
3056   test "x$ac_cv_prog_cc_c89" != "xno" && break
3057 done
3058 rm -f conftest.$ac_ext
3059 CC=$ac_save_CC
3060
3061 fi
3062 # AC_CACHE_VAL
3063 case "x$ac_cv_prog_cc_c89" in
3064   x)
3065     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3066 $as_echo "none needed" >&6; } ;;
3067   xno)
3068     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3069 $as_echo "unsupported" >&6; } ;;
3070   *)
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; } ;;
3074 esac
3075 if test "x$ac_cv_prog_cc_c89" != xno; then :
3076
3077 fi
3078
3079 ac_ext=c
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
3084
3085 ac_ext=c
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
3094   CPP=
3095 fi
3096 if test -z "$CPP"; then
3097   if test "${ac_cv_prog_CPP+set}" = set; then :
3098   $as_echo_n "(cached) " >&6
3099 else
3100       # Double quotes because CPP needs to be expanded
3101     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3102     do
3103       ac_preproc_ok=false
3104 for ac_c_preproc_warn_flag in '' yes
3105 do
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.  */
3114 #ifdef __STDC__
3115 # include <limits.h>
3116 #else
3117 # include <assert.h>
3118 #endif
3119                      Syntax error
3120 _ACEOF
3121 if ac_fn_c_try_cpp "$LINENO"; then :
3122
3123 else
3124   # Broken: fails on valid input.
3125 continue
3126 fi
3127 rm -f conftest.err conftest.$ac_ext
3128
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>
3134 _ACEOF
3135 if ac_fn_c_try_cpp "$LINENO"; then :
3136   # Broken: success on invalid input.
3137 continue
3138 else
3139   # Passes both tests.
3140 ac_preproc_ok=:
3141 break
3142 fi
3143 rm -f conftest.err conftest.$ac_ext
3144
3145 done
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 :
3149   break
3150 fi
3151
3152     done
3153     ac_cv_prog_CPP=$CPP
3154
3155 fi
3156   CPP=$ac_cv_prog_CPP
3157 else
3158   ac_cv_prog_CPP=$CPP
3159 fi
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3161 $as_echo "$CPP" >&6; }
3162 ac_preproc_ok=false
3163 for ac_c_preproc_warn_flag in '' yes
3164 do
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.  */
3173 #ifdef __STDC__
3174 # include <limits.h>
3175 #else
3176 # include <assert.h>
3177 #endif
3178                      Syntax error
3179 _ACEOF
3180 if ac_fn_c_try_cpp "$LINENO"; then :
3181
3182 else
3183   # Broken: fails on valid input.
3184 continue
3185 fi
3186 rm -f conftest.err conftest.$ac_ext
3187
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>
3193 _ACEOF
3194 if ac_fn_c_try_cpp "$LINENO"; then :
3195   # Broken: success on invalid input.
3196 continue
3197 else
3198   # Passes both tests.
3199 ac_preproc_ok=:
3200 break
3201 fi
3202 rm -f conftest.err conftest.$ac_ext
3203
3204 done
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 :
3208
3209 else
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; }
3214 fi
3215
3216 ac_ext=c
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
3221
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
3228 # AIX /bin/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
3241 else
3242   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3243 for as_dir in $PATH
3244 do
3245   IFS=$as_save_IFS
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[\\/]* | \
3252   /usr/ucb/* ) ;;
3253   *)
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
3256     # by default.
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.
3263             :
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.
3267             :
3268           else
3269             rm -rf conftest.one conftest.two conftest.dir
3270             echo one > conftest.one
3271             echo two > conftest.two
3272             mkdir conftest.dir
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
3277             then
3278               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3279               break 3
3280             fi
3281           fi
3282         fi
3283       done
3284     done
3285     ;;
3286 esac
3287
3288   done
3289 IFS=$as_save_IFS
3290
3291 rm -rf conftest.one conftest.two conftest.dir
3292
3293 fi
3294   if test "${ac_cv_path_install+set}" = set; then
3295     INSTALL=$ac_cv_path_install
3296   else
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
3302   fi
3303 fi
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3305 $as_echo "$INSTALL" >&6; }
3306
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}'
3310
3311 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3312
3313 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3314
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3316 $as_echo_n "checking whether ln -s works... " >&6; }
3317 LN_S=$as_ln_s
3318 if test "$LN_S" = "ln -s"; then
3319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3320 $as_echo "yes" >&6; }
3321 else
3322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3323 $as_echo "no, using $LN_S" >&6; }
3324 fi
3325
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; }
3328 set x ${MAKE-make}
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
3332 else
3333   cat >conftest.make <<\_ACEOF
3334 SHELL = /bin/sh
3335 all:
3336         @echo '@@@%%%=$(MAKE)=@@@%%%'
3337 _ACEOF
3338 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3339 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3340   *@@@%%%=?*=@@@%%%*)
3341     eval ac_cv_prog_make_${ac_make}_set=yes;;
3342   *)
3343     eval ac_cv_prog_make_${ac_make}_set=no;;
3344 esac
3345 rm -f conftest.make
3346 fi
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; }
3350   SET_MAKE=
3351 else
3352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3353 $as_echo "no" >&6; }
3354   SET_MAKE="MAKE=${MAKE-make}"
3355 fi
3356
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
3364 else
3365   if test -n "$RANLIB"; then
3366   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3367 else
3368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3369 for as_dir in $PATH
3370 do
3371   IFS=$as_save_IFS
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
3377     break 2
3378   fi
3379 done
3380   done
3381 IFS=$as_save_IFS
3382
3383 fi
3384 fi
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; }
3389 else
3390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3391 $as_echo "no" >&6; }
3392 fi
3393
3394
3395 fi
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
3404 else
3405   if test -n "$ac_ct_RANLIB"; then
3406   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3407 else
3408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3409 for as_dir in $PATH
3410 do
3411   IFS=$as_save_IFS
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
3417     break 2
3418   fi
3419 done
3420   done
3421 IFS=$as_save_IFS
3422
3423 fi
3424 fi
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; }
3429 else
3430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3431 $as_echo "no" >&6; }
3432 fi
3433
3434   if test "x$ac_ct_RANLIB" = x; then
3435     RANLIB=":"
3436   else
3437     case $cross_compiling:$ac_tool_warned in
3438 yes:)
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 ;;
3442 esac
3443     RANLIB=$ac_ct_RANLIB
3444   fi
3445 else
3446   RANLIB="$ac_cv_prog_RANLIB"
3447 fi
3448
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
3453 else
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
3459 do
3460   IFS=$as_save_IFS
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
3469 *GNU*)
3470   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3471 *)
3472   ac_count=0
3473   $as_echo_n 0123456789 >"conftest.in"
3474   while :
3475   do
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
3487     fi
3488     # 10*(2^10) chars as input seems more than enough
3489     test $ac_count -gt 10 && break
3490   done
3491   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3492 esac
3493
3494       $ac_path_GREP_found && break 3
3495     done
3496   done
3497   done
3498 IFS=$as_save_IFS
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
3501   fi
3502 else
3503   ac_cv_path_GREP=$GREP
3504 fi
3505
3506 fi
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"
3510
3511
3512 for ac_prog in perl perl5
3513 do
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
3520 else
3521   case $PERL in
3522   [\\/]* | ?:[\\/]*)
3523   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3524   ;;
3525   *)
3526   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3527 for as_dir in $PATH
3528 do
3529   IFS=$as_save_IFS
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
3535     break 2
3536   fi
3537 done
3538   done
3539 IFS=$as_save_IFS
3540
3541   ;;
3542 esac
3543 fi
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; }
3548 else
3549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3550 $as_echo "no" >&6; }
3551 fi
3552
3553
3554   test -n "$PERL" && break
3555 done
3556
3557 for ac_prog in env printenv
3558 do
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
3565 else
3566   case $ENV_CMD in
3567   [\\/]* | ?:[\\/]*)
3568   ac_cv_path_ENV_CMD="$ENV_CMD" # Let the user override the test with a path.
3569   ;;
3570   *)
3571   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3572 for as_dir in $PATH
3573 do
3574   IFS=$as_save_IFS
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
3580     break 2
3581   fi
3582 done
3583   done
3584 IFS=$as_save_IFS
3585
3586   ;;
3587 esac
3588 fi
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; }
3593 else
3594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3595 $as_echo "no" >&6; }
3596 fi
3597
3598
3599   test -n "$ENV_CMD" && break
3600 done
3601
3602
3603 # Checks for header files.
3604
3605
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
3610 else
3611   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3612    then ac_cv_path_EGREP="$GREP -E"
3613    else
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
3619 do
3620   IFS=$as_save_IFS
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
3629 *GNU*)
3630   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3631 *)
3632   ac_count=0
3633   $as_echo_n 0123456789 >"conftest.in"
3634   while :
3635   do
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
3647     fi
3648     # 10*(2^10) chars as input seems more than enough
3649     test $ac_count -gt 10 && break
3650   done
3651   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3652 esac
3653
3654       $ac_path_EGREP_found && break 3
3655     done
3656   done
3657   done
3658 IFS=$as_save_IFS
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
3661   fi
3662 else
3663   ac_cv_path_EGREP=$EGREP
3664 fi
3665
3666    fi
3667 fi
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"
3671
3672
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
3677 else
3678   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3679 /* end confdefs.h.  */
3680 #include <stdlib.h>
3681 #include <stdarg.h>
3682 #include <string.h>
3683 #include <float.h>
3684
3685 int
3686 main ()
3687 {
3688
3689   ;
3690   return 0;
3691 }
3692 _ACEOF
3693 if ac_fn_c_try_compile "$LINENO"; then :
3694   ac_cv_header_stdc=yes
3695 else
3696   ac_cv_header_stdc=no
3697 fi
3698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3699
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.  */
3704 #include <string.h>
3705
3706 _ACEOF
3707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3708   $EGREP "memchr" >/dev/null 2>&1; then :
3709
3710 else
3711   ac_cv_header_stdc=no
3712 fi
3713 rm -f conftest*
3714
3715 fi
3716
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.  */
3721 #include <stdlib.h>
3722
3723 _ACEOF
3724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3725   $EGREP "free" >/dev/null 2>&1; then :
3726
3727 else
3728   ac_cv_header_stdc=no
3729 fi
3730 rm -f conftest*
3731
3732 fi
3733
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 :
3737   :
3738 else
3739   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740 /* end confdefs.h.  */
3741 #include <ctype.h>
3742 #include <stdlib.h>
3743 #if ((' ' & 0x0FF) == 0x020)
3744 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3745 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3746 #else
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))
3752 #endif
3753
3754 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3755 int
3756 main ()
3757 {
3758   int i;
3759   for (i = 0; i < 256; i++)
3760     if (XOR (islower (i), ISLOWER (i))
3761         || toupper (i) != TOUPPER (i))
3762       return 2;
3763   return 0;
3764 }
3765 _ACEOF
3766 if ac_fn_c_try_run "$LINENO"; then :
3767
3768 else
3769   ac_cv_header_stdc=no
3770 fi
3771 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3772   conftest.$ac_objext conftest.beam conftest.$ac_ext
3773 fi
3774
3775 fi
3776 fi
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
3780
3781 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3782
3783 fi
3784
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
3788 do :
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
3791 "
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
3796 _ACEOF
3797
3798 fi
3799
3800 done
3801
3802
3803 for ac_header in fcntl.h limits.h stdlib.h string.h unistd.h sys/types.h sys/stat.h
3804 do :
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
3811 _ACEOF
3812
3813 fi
3814
3815 done
3816
3817
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
3823 else
3824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3825 /* end confdefs.h.  */
3826
3827 int
3828 main ()
3829 {
3830 /* FIXME: Include the comments suggested by Paul. */
3831 #ifndef __cplusplus
3832   /* Ultrix mips cc rejects this.  */
3833   typedef int charset[2];
3834   const charset cs;
3835   /* SunOS 4.1.1 cc rejects this.  */
3836   char const *const *pcpcc;
3837   char **ppc;
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
3844      expression */
3845   const char *g = "string";
3846   pcpcc = &g + (g ? g-g : 0);
3847   /* HPUX 7.0 cc rejects these. */
3848   ++pcpcc;
3849   ppc = (char**) pcpcc;
3850   pcpcc = (char const *const *) ppc;
3851   { /* SCO 3.2v4 cc rejects this.  */
3852     char *t;
3853     char const *s = 0 ? (char *) 0 : (char const *) 0;
3854
3855     *t++ = 0;
3856     if (s) return 0;
3857   }
3858   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3859     int x[] = {25, 17};
3860     const int *foo = &x[0];
3861     ++foo;
3862   }
3863   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3864     typedef const int *iptr;
3865     iptr p = 0;
3866     ++p;
3867   }
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;
3872   }
3873   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3874     const int foo = 10;
3875     if (!foo) return 0;
3876   }
3877   return !cs[0] && !zero.x;
3878 #endif
3879
3880   ;
3881   return 0;
3882 }
3883 _ACEOF
3884 if ac_fn_c_try_compile "$LINENO"; then :
3885   ac_cv_c_const=yes
3886 else
3887   ac_cv_c_const=no
3888 fi
3889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3890 fi
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
3894
3895 $as_echo "#define const /**/" >>confdefs.h
3896
3897 fi
3898
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
3903 else
3904   ac_cv_c_inline=no
3905 for ac_kw in inline __inline__ __inline; do
3906   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3907 /* end confdefs.h.  */
3908 #ifndef __cplusplus
3909 typedef int foo_t;
3910 static $ac_kw foo_t static_foo () {return 0; }
3911 $ac_kw foo_t foo () {return 0; }
3912 #endif
3913
3914 _ACEOF
3915 if ac_fn_c_try_compile "$LINENO"; then :
3916   ac_cv_c_inline=$ac_kw
3917 fi
3918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3919   test "$ac_cv_c_inline" != no && break
3920 done
3921
3922 fi
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
3924 $as_echo "$ac_cv_c_inline" >&6; }
3925
3926 case $ac_cv_c_inline in
3927   inline | yes) ;;
3928   *)
3929     case $ac_cv_c_inline in
3930       no) ac_val=;;
3931       *) ac_val=$ac_cv_c_inline;;
3932     esac
3933     cat >>confdefs.h <<_ACEOF
3934 #ifndef __cplusplus
3935 #define inline $ac_val
3936 #endif
3937 _ACEOF
3938     ;;
3939 esac
3940
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
3945 else
3946   ac_cv_c_restrict=no
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) {
3953         return ip[0];
3954        }
3955 int
3956 main ()
3957 {
3958 int s[1];
3959         int * $ac_kw t = s;
3960         t[0] = 0;
3961         return foo(t)
3962   ;
3963   return 0;
3964 }
3965 _ACEOF
3966 if ac_fn_c_try_compile "$LINENO"; then :
3967   ac_cv_c_restrict=$ac_kw
3968 fi
3969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3970      test "$ac_cv_c_restrict" != no && break
3971    done
3972
3973 fi
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
3975 $as_echo "$ac_cv_c_restrict" >&6; }
3976
3977  case $ac_cv_c_restrict in
3978    restrict) ;;
3979    no) $as_echo "#define restrict /**/" >>confdefs.h
3980  ;;
3981    *)  cat >>confdefs.h <<_ACEOF
3982 #define restrict $ac_cv_c_restrict
3983 _ACEOF
3984  ;;
3985  esac
3986
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 :
3989
3990 else
3991
3992 cat >>confdefs.h <<_ACEOF
3993 #define pid_t int
3994 _ACEOF
3995
3996 fi
3997
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 :
4000
4001 else
4002
4003 cat >>confdefs.h <<_ACEOF
4004 #define size_t unsigned int
4005 _ACEOF
4006
4007 fi
4008
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
4013 else
4014   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4015 /* end confdefs.h.  */
4016 #include <sys/types.h>
4017 #include <time.h>
4018
4019 int
4020 main ()
4021 {
4022 struct tm tm;
4023                                      int *p = &tm.tm_sec;
4024                                      return !p;
4025   ;
4026   return 0;
4027 }
4028 _ACEOF
4029 if ac_fn_c_try_compile "$LINENO"; then :
4030   ac_cv_struct_tm=time.h
4031 else
4032   ac_cv_struct_tm=sys/time.h
4033 fi
4034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4035 fi
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
4039
4040 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
4041
4042 fi
4043
4044 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
4045 case $ac_cv_c_uint8_t in #(
4046   no|yes) ;; #(
4047   *)
4048
4049 $as_echo "#define _UINT8_T 1" >>confdefs.h
4050
4051
4052 cat >>confdefs.h <<_ACEOF
4053 #define uint8_t $ac_cv_c_uint8_t
4054 _ACEOF
4055 ;;
4056   esac
4057
4058
4059 # Checks for library functions.
4060 for ac_header in stdlib.h
4061 do :
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
4066 _ACEOF
4067
4068 fi
4069
4070 done
4071
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
4076 else
4077   if test "$cross_compiling" = yes; then :
4078   ac_cv_func_malloc_0_nonnull=no
4079 else
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>
4084 #else
4085 char *malloc ();
4086 #endif
4087
4088 int
4089 main ()
4090 {
4091 return ! malloc (0);
4092   ;
4093   return 0;
4094 }
4095 _ACEOF
4096 if ac_fn_c_try_run "$LINENO"; then :
4097   ac_cv_func_malloc_0_nonnull=yes
4098 else
4099   ac_cv_func_malloc_0_nonnull=no
4100 fi
4101 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4102   conftest.$ac_objext conftest.beam conftest.$ac_ext
4103 fi
4104
4105 fi
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 :
4109
4110 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
4111
4112 else
4113   $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
4114
4115    case " $LIBOBJS " in
4116   *" malloc.$ac_objext "* ) ;;
4117   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
4118  ;;
4119 esac
4120
4121
4122 $as_echo "#define malloc rpl_malloc" >>confdefs.h
4123
4124 fi
4125
4126
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
4131 else
4132   if test "$cross_compiling" = yes; then :
4133   ac_cv_func_memcmp_working=no
4134 else
4135   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4136 /* end confdefs.h.  */
4137 $ac_includes_default
4138 int
4139 main ()
4140 {
4141
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)
4145     return 1;
4146
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.   */
4150   {
4151     char foo[21];
4152     char bar[21];
4153     int i;
4154     for (i = 0; i < 4; i++)
4155       {
4156         char *a = foo + i;
4157         char *b = bar + i;
4158         strcpy (a, "--------01111111");
4159         strcpy (b, "--------10000000");
4160         if (memcmp (a, b, 16) >= 0)
4161           return 1;
4162       }
4163     return 0;
4164   }
4165
4166   ;
4167   return 0;
4168 }
4169 _ACEOF
4170 if ac_fn_c_try_run "$LINENO"; then :
4171   ac_cv_func_memcmp_working=yes
4172 else
4173   ac_cv_func_memcmp_working=no
4174 fi
4175 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4176   conftest.$ac_objext conftest.beam conftest.$ac_ext
4177 fi
4178
4179 fi
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"
4185  ;;
4186 esac
4187
4188
4189 for ac_func in atexit getcwd memmove memset strcasecmp strchr strdup strerror strncasecmp strrchr strstr strtol
4190 do :
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
4197 _ACEOF
4198
4199 fi
4200 done
4201
4202
4203 # Some directories
4204 MSC_BASE_DIR=`pwd`
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"
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222 ### Configure Options
4223
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
4229     report_errors=1
4230   else
4231     report_errors=0
4232   fi
4233
4234 else
4235
4236   report_errors=1
4237
4238 fi
4239
4240
4241 # Verbose output
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
4246     verbose_output=1
4247   else
4248     verbose_output=0
4249   fi
4250
4251 else
4252
4253   verbose_output=0
4254
4255 fi
4256
4257
4258 # Strict Compile
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"
4264   else
4265     strict_compile=
4266   fi
4267
4268 else
4269
4270   strict_compile=
4271
4272 fi
4273
4274
4275 # DEBUG_CONF
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"
4281   else
4282     debug_conf=
4283   fi
4284
4285 else
4286
4287   debug_conf=
4288
4289 fi
4290
4291
4292 # CACHE_DEBUG
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"
4298   else
4299     debug_cache=
4300   fi
4301
4302 else
4303
4304   debug_cache=
4305
4306 fi
4307
4308
4309 # DEBUG_ACMP
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"
4315   else
4316     debug_acmp=
4317   fi
4318
4319 else
4320
4321   debug_acmp=
4322
4323 fi
4324
4325
4326 # DEBUG_MEM
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"
4332   else
4333     debug_mem=
4334   fi
4335
4336 else
4337
4338   debug_mem=
4339
4340 fi
4341
4342
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"
4349   else
4350     perf_meas=
4351   fi
4352
4353 else
4354
4355   perf_meas=
4356
4357 fi
4358
4359
4360 # NO_MODSEC_API
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"
4366   else
4367     modsec_api=
4368   fi
4369
4370 else
4371
4372   modsec_api=
4373
4374 fi
4375
4376
4377 # Find apxs
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;}
4380
4381 # Check whether --with-apxs was given.
4382 if test "${with_apxs+set}" = set; then :
4383   withval=$with_apxs;
4384   if test "$withval" = "yes"; then
4385     APXS=apxs
4386   else
4387     APXS="$withval"
4388   fi
4389
4390 fi
4391
4392
4393 if test -z "$APXS"; then
4394   for i in /usr/local/apache22/bin \
4395            /usr/local/apache2/bin \
4396            /usr/local/apache/bin \
4397            /usr/local/sbin \
4398            /usr/local/bin \
4399            /usr/sbin \
4400            /usr/bin;
4401   do
4402     if test -f "$i/apxs2"; then
4403       APXS="$i/apxs2"
4404       break
4405     elif test -f "$i/apxs"; then
4406       APXS="$i/apxs"
4407       break
4408     fi
4409   done
4410 fi
4411
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
4415
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.  */
4425
4426 #include "$APXS_INCLUDE/ap_mmn.h"
4427 #if AP_MODULE_MAGIC_AT_LEAST($HTTPD_WANTED_MMN,0)
4428 VERSION_OK
4429 #endif
4430 _ACEOF
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;}
4435 else
4436
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; }
4440      else
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;}
4443      fi
4444
4445 fi
4446 rm -f conftest*
4447
4448   fi
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`"
4455   else
4456     APXS_INCLUDES="`$APXS -q INCLUDES` `$APXS -q EXTRA_INCLUDES`"
4457   fi
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`"
4472   else
4473     APXS_LIBS="`$APXS -q LIBS` `$APXS -q EXTRA_LIBS`"
4474   fi
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"
4497   else
4498     APXS_HTTPD="$APXS_SBINDIR/$APXS_PROGNAME"
4499   fi
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
4502 else
4503   if test "$report_errors" -eq 1; then
4504     as_fn_error "couldn't find APXS" "$LINENO" 5
4505   else
4506     { $as_echo "$as_me:${as_lineno-$LINENO}: couldn't find APXS" >&5
4507 $as_echo "$as_me: couldn't find APXS" >&6;}
4508   fi
4509 fi
4510
4511 # Include M4 macros
4512
4513 PCRE_CONFIG=""
4514 PCRE_CFLAGS=""
4515 PCRE_LIBS=""
4516
4517
4518
4519
4520 APR_CONFIG=""
4521 APR_CFLAGS=""
4522 APR_LDFLAGS=""
4523 APR_LIBS=""
4524 APR_LINK_LD=""
4525
4526
4527
4528
4529 APU_CONFIG=""
4530 APU_CFLAGS=""
4531 APU_LDFLAGS=""
4532 APU_LIBS=""
4533 APU_LINK_LD=""
4534
4535
4536
4537
4538 LIBXML2_CONFIG=""
4539 LIBXML2_CFLAGS=""
4540 LIBXML2_LIBS=""
4541
4542
4543
4544
4545 LUA_CONFIG=""
4546 LUA_CFLAGS=""
4547 LUA_LIBS=""
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"
4551
4552
4553
4554
4555 CURL_CONFIG=""
4556 CURL_CFLAGS=""
4557 CURL_LIBS=""
4558 CURL_MIN_VERSION="7.15.1"
4559
4560
4561
4562
4563
4564 ### Build *EXTRA_CFLAGS vars
4565
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"
4570   fi
4571 else
4572   if test -n "$debug_mem"; then
4573     EXTRA_CFLAGS="-O0 -g -Wall"
4574   else
4575     EXTRA_CFLAGS="-O2 -g -Wall $strict_compile"
4576   fi
4577 fi
4578 MODSEC_EXTRA_CFLAGS="$debug_conf $debug_cache $debug_acmp $debug_mem $perf_meas $modsec_api"
4579
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"
4584 done;
4585 MODSEC_APXS_EXTRA_CFLAGS=""
4586 for f in $MODSEC_EXTRA_CFLAGS; do
4587     MODSEC_APXS_EXTRA_CFLAGS="$MODSEC_APXS_EXTRA_CFLAGS -Wc,$f"
4588 done;
4589
4590 ### Substitute the vars
4591
4592 save_CPPFLAGS=$CPPFLAGS
4593 CPPFLAGS="$APXS_INCLUDES $CPPFLAGS"
4594 save_LDFLAGS=$LDFLAGS
4595 LDFLAGS="$APXS_LDFLAGS $LDFLAGS"
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619 # Check whether --with-pcre was given.
4620 if test "${with_pcre+set}" = set; then :
4621   withval=$with_pcre; test_paths="${with_pcre}"
4622 else
4623   test_paths="/usr/local/libpcre /usr/local/pcre /usr/local /opt/libpcre /opt/pcre /opt /usr"
4624 fi
4625
4626
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpcre config script" >&5
4628 $as_echo_n "checking for libpcre config script... " >&6; }
4629
4630 if test -z "${with_pcre}"; then
4631     test_paths="/usr/local/pcre /usr/local /usr"
4632 else
4633     test_paths="${with_pcre}"
4634 fi
4635
4636 for x in ${test_paths}; do
4637         if test ! -d "$x" -a -e "$x"; then
4638         PCRE_CONFIG=$x
4639         pcre_path="no"
4640         break
4641     fi
4642
4643         for PCRE_CONFIG in pcre-config; do
4644         if test -e "${x}/bin/${PCRE_CONFIG}"; then
4645             pcre_path="${x}/bin"
4646             break
4647         elif test -e "${x}/${PCRE_CONFIG}"; then
4648             pcre_path="${x}"
4649             break
4650         else
4651             pcre_path=""
4652         fi
4653     done
4654     if test -n "$pcre_path"; then
4655         break
4656     fi
4657 done
4658     CFLAGS=$save_CFLAGS
4659     LDFLAGS=$save_LDFLAGS
4660
4661 if test -n "${pcre_path}"; then
4662     if test "${pcre_path}" != "no"; then
4663         PCRE_CONFIG="${pcre_path}/${PCRE_CONFIG}"
4664     fi
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
4673     CFLAGS=$save_CFLAGS
4674     LDFLAGS=$save_LDFLAGS
4675 else
4676     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4677 $as_echo "no" >&6; }
4678 fi
4679
4680
4681
4682
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
4687 else
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;}
4690
4691 fi
4692
4693
4694
4695 # Check whether --with-apr was given.
4696 if test "${with_apr+set}" = set; then :
4697   withval=$with_apr; test_paths="${with_apr}"
4698 else
4699   test_paths="/usr/local/libapr /usr/local/apr /usr/local /opt/libapr /opt/apr /opt /usr"
4700 fi
4701
4702
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libapr config script" >&5
4704 $as_echo_n "checking for libapr config script... " >&6; }
4705
4706 for x in ${test_paths}; do
4707         if test ! -d "$x" -a -e "$x"; then
4708         APR_CONFIG=$x
4709         apr_path=no
4710         break
4711     fi
4712
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
4715             apr_path="${x}/bin"
4716             break
4717         elif test -e "${x}/${APR_CONFIG}"; then
4718             apr_path="${x}"
4719             break
4720         else
4721             apr_path=""
4722         fi
4723     done
4724     if test -n "$apr_path"; then
4725         break
4726     fi
4727 done
4728
4729 if test -n "${apr_path}"; then
4730     if test "${apr_path}" != "no"; then
4731         APR_CONFIG="${apr_path}/${APR_CONFIG}"
4732     fi
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
4747     CFLAGS=$save_CFLAGS
4748     LDFLAGS=$save_LDFLAGS
4749 else
4750     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4751 $as_echo "no" >&6; }
4752 fi
4753
4754
4755
4756
4757
4758
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
4763 else
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;}
4766
4767 fi
4768
4769
4770
4771 # Check whether --with-apu was given.
4772 if test "${with_apu+set}" = set; then :
4773   withval=$with_apu; test_paths="${with_apu}"
4774 else
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"
4776 fi
4777
4778
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libapu config script" >&5
4780 $as_echo_n "checking for libapu config script... " >&6; }
4781
4782 for x in ${test_paths}; do
4783         if test ! -d "$x" -a -e "$x"; then
4784         APU_CONFIG=$x
4785         apu_path="no"
4786         break
4787     fi
4788
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
4791             apu_path="${x}/bin"
4792             break
4793         elif test -e "${x}/${APU_CONFIG}"; then
4794             apu_path="${x}"
4795             break
4796         else
4797             apu_path=""
4798         fi
4799     done
4800     if test -n "$apu_path"; then
4801         break
4802     fi
4803 done
4804
4805 if test -n "${apu_path}"; then
4806     if test "${apu_path}" != "no"; then
4807         APU_CONFIG="${apu_path}/${APU_CONFIG}"
4808     fi
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
4823     CFLAGS=$save_CFLAGS
4824     LDFLAGS=$save_LDFLAGS
4825 else
4826     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4827 $as_echo "no" >&6; }
4828 fi
4829
4830
4831
4832
4833
4834
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
4839 else
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;}
4842
4843 fi
4844
4845
4846
4847 # Check whether --with-libxml was given.
4848 if test "${with_libxml+set}" = set; then :
4849   withval=$with_libxml; test_paths="${with_libxml}"
4850 else
4851   test_paths="/usr/local/libxml2 /usr/local/xml2 /usr/local/xml /usr/local /opt/libxml2 /opt/libxml /opt/xml2 /opt/xml /opt /usr"
4852 fi
4853
4854
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2 config script" >&5
4856 $as_echo_n "checking for libxml2 config script... " >&6; }
4857
4858 for x in ${test_paths}; do
4859         if test ! -d "$x" -a -e "$x"; then
4860         LIBXML2_CONFIG=$x
4861         libxml2_path="no"
4862         break
4863     fi
4864
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"
4868             break
4869         elif test -e "${x}/${LIBXML2_CONFIG}"; then
4870             libxml2_path="${x}"
4871             break
4872         else
4873             libxml2_path=""
4874         fi
4875     done
4876     if test -n "$libxml2_path"; then
4877         break
4878     fi
4879 done
4880     CFLAGS=$save_CFLAGS
4881     LDFLAGS=$save_LDFLAGS
4882
4883 if test -n "${libxml2_path}"; then
4884     if test "${libxml2_path}" != "no"; then
4885         LIBXML2_CONFIG="${libxml2_path}/${LIBXML2_CONFIG}"
4886     fi
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
4895     CFLAGS=$save_CFLAGS
4896     LDFLAGS=$save_LDFLAGS
4897 else
4898     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4899 $as_echo "no" >&6; }
4900 fi
4901
4902
4903
4904
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
4909 else
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;}
4912
4913 fi
4914
4915
4916
4917 # Check whether --with-lua was given.
4918 if test "${with_lua+set}" = set; then :
4919   withval=$with_lua; test_paths="${with_lua}"
4920 else
4921   test_paths="/usr/local/liblua /usr/local/lua /usr/local /opt/liblua /opt/lua /opt /usr";
4922 fi
4923
4924
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblua config script" >&5
4926 $as_echo_n "checking for liblua config script... " >&6; }
4927
4928 for x in ${test_paths}; do
4929         if test ! -d "$x" -a -e "$x"; then
4930         LUA_CONFIG=$x
4931         break
4932     fi
4933
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}"
4938             break
4939         elif test -e "${x}/${y}"; then
4940             LUA_CONFIG="${x}/${y}"
4941             lua_config="${LUA_CONFIG}"
4942             break
4943         fi
4944     done
4945     if test -n "${lua_config}"; then
4946         break
4947     fi
4948 done
4949
4950 if test -n "${LUA_CONFIG}"; then
4951     LUA_PKGNAME=""
4952     for x in ${LUA_PKGNAMES}; do
4953         if ${LUA_CONFIG} --exists ${x}; then
4954             LUA_PKGNAME="$x"
4955             break
4956         fi
4957     done
4958 fi
4959
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
4969     CFLAGS=$save_CFLAGS
4970     LDFLAGS=$save_LDFLAGS
4971 else
4972     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4973 $as_echo "no" >&6; }
4974
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
4980                 lua_lib_path="${x}"
4981                 lua_lib_name="lua5.1"
4982                 break
4983             elif test -e "${x}/lib/liblua5.1.${y}"; then
4984                 lua_lib_path="${x}/lib"
4985                 lua_lib_name="lua5.1"
4986                 break
4987             elif test -e "${x}/lib64/liblua5.1.${y}"; then
4988                 lua_lib_path="${x}/lib64"
4989                 lua_lib_name="lua5.1"
4990                 break
4991             elif test -e "${x}/lib32/liblua5.1.${y}"; then
4992                 lua_lib_path="${x}/lib32"
4993                 lua_lib_name="lua5.1"
4994                 break
4995             elif test -e "${x}/liblua51.${y}"; then
4996                 lua_lib_path="${x}"
4997                 lua_lib_name="lua51"
4998                 break
4999             elif test -e "${x}/lib/liblua51.${y}"; then
5000                 lua_lib_path="${x}/lib"
5001                 lua_lib_name="lua51"
5002                 break
5003             elif test -e "${x}/lib64/liblua51.${y}"; then
5004                 lua_lib_path="${x}/lib64"
5005                 lua_lib_name="lua51"
5006                 break
5007             elif test -e "${x}/lib32/liblua51.${y}"; then
5008                 lua_lib_path="${x}/lib32"
5009                 lua_lib_name="lua51"
5010                 break
5011             elif test -e "${x}/liblua.${y}"; then
5012                 lua_lib_path="${x}"
5013                 lua_lib_name="lua"
5014                 break
5015             elif test -e "${x}/lib/liblua.${y}"; then
5016                 lua_lib_path="${x}/lib"
5017                 lua_lib_name="lua"
5018                 break
5019             elif test -e "${x}/lib64/liblua.${y}"; then
5020                 lua_lib_path="${x}/lib64"
5021                 lua_lib_name="lua"
5022                 break
5023             elif test -e "${x}/lib32/liblua.${y}"; then
5024                 lua_lib_path="${x}/lib32"
5025                 lua_lib_name="lua"
5026                 break
5027             else
5028                 lua_lib_path=""
5029                 lua_lib_name=""
5030             fi
5031         done
5032         if test -n "$lua_lib_path"; then
5033             break
5034         fi
5035     done
5036     for x in ${test_paths}; do
5037         if test -e "${x}/include/lua.h"; then
5038             lua_inc_path="${x}/include"
5039             break
5040         elif test -e "${x}/lua.h"; then
5041             lua_inc_path="${x}"
5042             break
5043         fi
5044
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"
5048                 break
5049             elif test -e "${x}/${lua_pkg_name}/lua.h"; then
5050                 lua_inc_path="${x}"
5051                 break
5052             else
5053                 lua_inc_path=""
5054             fi
5055         done
5056         if test -n "$lua_inc_path"; then
5057             break
5058         fi
5059     done
5060     if test -n "${lua_lib_path}" -a -n "${lua_inc_path}"; then
5061         LUA_CONFIG=""
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}"
5066         CFLAGS=$save_CFLAGS
5067         LDFLAGS=$save_LDFLAGS
5068     else
5069         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5070 $as_echo "no" >&6; }
5071     fi
5072 fi
5073
5074 if test -n "${LUA_LIBS}"; then
5075     LUA_CFLAGS="-DWITH_LUA ${LUA_CFLAGS}"
5076 fi
5077
5078
5079
5080
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;}
5085     else
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;}
5088
5089     fi
5090 fi
5091
5092
5093
5094 # Check whether --with-curl was given.
5095 if test "${with_curl+set}" = set; then :
5096   withval=$with_curl; test_paths="${with_curl}"
5097 else
5098   test_paths="/usr/local/libcurl /usr/local/curl /usr/local /opt/libcurl /opt/curl /opt /usr"
5099 fi
5100
5101
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl config script" >&5
5103 $as_echo_n "checking for libcurl config script... " >&6; }
5104
5105 for x in ${test_paths}; do
5106         if test ! -d "$x" -a -e "$x"; then
5107         CURL_CONFIG=$x
5108         curl_path="no"
5109         break
5110     fi
5111
5112         for CURL_CONFIG in curl-config; do
5113         if test -e "${x}/bin/${CURL_CONFIG}"; then
5114             curl_path="${x}/bin"
5115             break
5116         elif test -e "${x}/${CURL_CONFIG}"; then
5117             curl_path="${x}"
5118             break
5119         else
5120             curl_path=""
5121         fi
5122     done
5123     if test -n "$curl_path"; then
5124         break
5125     fi
5126 done
5127
5128 if test -n "${curl_path}"; then
5129     if test "${curl_path}" != "no"; then
5130         CURL_CONFIG="${curl_path}/${CURL_CONFIG}"
5131     fi
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
5143     CFLAGS=$save_CFLAGS
5144     LDFLAGS=$save_LDFLAGS
5145
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; }
5153     else
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;}
5158     fi
5159
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
5169     else
5170         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5171 $as_echo "no" >&6; }
5172         CURL_USES_GNUTLS=no
5173     fi
5174
5175 else
5176     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5177 $as_echo "no" >&6; }
5178 fi
5179
5180
5181
5182
5183
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;}
5189 else
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;}
5192
5193 fi
5194
5195
5196 ac_config_files="$ac_config_files Makefile"
5197
5198 ac_config_files="$ac_config_files build/apxs-wrapper"
5199
5200 if test -e "$PERL"; then
5201     ac_config_files="$ac_config_files mlogc-src/mlogc-batch-load.pl"
5202
5203     ac_config_files="$ac_config_files t/run-unit-tests.pl"
5204
5205     ac_config_files="$ac_config_files t/run-regression-tests.pl"
5206
5207     ac_config_files="$ac_config_files t/gen_rx-pm.pl"
5208
5209     ac_config_files="$ac_config_files t/csv_rx-pm.pl"
5210
5211     ac_config_files="$ac_config_files t/regression/server_root/conf/httpd.conf"
5212
5213
5214     # Perl based tools
5215     ac_config_files="$ac_config_files ../tools/rules-updater.pl"
5216
5217 fi
5218 if test -e "mlogc-src/Makefile.in"; then
5219     ac_config_files="$ac_config_files mlogc-src/Makefile"
5220
5221 fi
5222
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.
5229 #
5230 # config.status only pays attention to the cache file if you give it
5231 # the --recheck option to rerun configure.
5232 #
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
5235 # following values.
5236
5237 _ACEOF
5238
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.
5244 (
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
5247     case $ac_val in #(
5248     *${as_nl}*)
5249       case $ac_var in #(
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;} ;;
5252       esac
5253       case $ac_var in #(
5254       _ | IFS | as_nl) ;; #(
5255       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5256       *) { eval $ac_var=; unset $ac_var;} ;;
5257       esac ;;
5258     esac
5259   done
5260
5261   (set) 2>&1 |
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 \.
5266       sed -n \
5267         "s/'/'\\\\''/g;
5268           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5269       ;; #(
5270     *)
5271       # `set' quotes correctly as required by POSIX, so do not add quotes.
5272       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5273       ;;
5274     esac |
5275     sort
5276 ) |
5277   sed '
5278      /^ac_cv_env_/b end
5279      t clear
5280      :clear
5281      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5282      t end
5283      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5284      :end' >>confcache
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
5291   else
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;}
5294   fi
5295 fi
5296 rm -f confcache
5297
5298 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5299 # Let make expand exec_prefix.
5300 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5301
5302 DEFS=-DHAVE_CONFIG_H
5303
5304 ac_libobjs=
5305 ac_ltlibobjs=
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'
5314 done
5315 LIBOBJS=$ac_libobjs
5316
5317 LTLIBOBJS=$ac_ltlibobjs
5318
5319
5320
5321 : ${CONFIG_STATUS=./config.status}
5322 ac_write_fail=0
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;}
5327 as_write_fail=0
5328 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5329 #! $SHELL
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.
5334
5335 debug=false
5336 ac_cs_recheck=false
5337 ac_cs_silent=false
5338
5339 SHELL=\${CONFIG_SHELL-$SHELL}
5340 export SHELL
5341 _ASEOF
5342 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5343 ## -------------------- ##
5344 ## M4sh Initialization. ##
5345 ## -------------------- ##
5346
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 :
5350   emulate sh
5351   NULLCMD=:
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
5356 else
5357   case `(set -o) 2>/dev/null` in #(
5358   *posix*) :
5359     set -o posix ;; #(
5360   *) :
5361      ;;
5362 esac
5363 fi
5364
5365
5366 as_nl='
5367 '
5368 export as_nl
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'
5382 else
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'
5386   else
5387     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5388     as_echo_n_body='eval
5389       arg=$1;
5390       case $arg in #(
5391       *"$as_nl"*)
5392         expr "X$arg" : "X\\(.*\\)$as_nl";
5393         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5394       esac;
5395       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5396     '
5397     export as_echo_n_body
5398     as_echo_n='sh -c $as_echo_n_body as_echo'
5399   fi
5400   export as_echo_body
5401   as_echo='sh -c $as_echo_body as_echo'
5402 fi
5403
5404 # The user is always right.
5405 if test "${PATH_SEPARATOR+set}" != set; then
5406   PATH_SEPARATOR=:
5407   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5408     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5409       PATH_SEPARATOR=';'
5410   }
5411 fi
5412
5413
5414 # IFS
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.)
5419 IFS=" ""        $as_nl"
5420
5421 # Find who we are.  Look in the path if we contain no directory separator.
5422 case $0 in #((
5423   *[\\/]* ) as_myself=$0 ;;
5424   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5425 for as_dir in $PATH
5426 do
5427   IFS=$as_save_IFS
5428   test -z "$as_dir" && as_dir=.
5429     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5430   done
5431 IFS=$as_save_IFS
5432
5433      ;;
5434 esac
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
5438   as_myself=$0
5439 fi
5440 if test ! -f "$as_myself"; then
5441   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5442   exit 1
5443 fi
5444
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 || :
5452 done
5453 PS1='$ '
5454 PS2='> '
5455 PS4='+ '
5456
5457 # NLS nuisances.
5458 LC_ALL=C
5459 export LC_ALL
5460 LANGUAGE=C
5461 export LANGUAGE
5462
5463 # CDPATH.
5464 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5465
5466
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.
5472 as_fn_error ()
5473 {
5474   as_status=$?; test $as_status -eq 0 && as_status=1
5475   if test "$3"; then
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
5478   fi
5479   $as_echo "$as_me: error: $1" >&2
5480   as_fn_exit $as_status
5481 } # as_fn_error
5482
5483
5484 # as_fn_set_status STATUS
5485 # -----------------------
5486 # Set $? to STATUS, without forking.
5487 as_fn_set_status ()
5488 {
5489   return $1
5490 } # as_fn_set_status
5491
5492 # as_fn_exit STATUS
5493 # -----------------
5494 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5495 as_fn_exit ()
5496 {
5497   set +e
5498   as_fn_set_status $1
5499   exit $1
5500 } # as_fn_exit
5501
5502 # as_fn_unset VAR
5503 # ---------------
5504 # Portably unset VAR.
5505 as_fn_unset ()
5506 {
5507   { eval $1=; unset $1;}
5508 }
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
5515 # implementations.
5516 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5517   eval 'as_fn_append ()
5518   {
5519     eval $1+=\$2
5520   }'
5521 else
5522   as_fn_append ()
5523   {
5524     eval $1=\$$1\$2
5525   }
5526 fi # as_fn_append
5527
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 ()
5535   {
5536     as_val=$(( $* ))
5537   }'
5538 else
5539   as_fn_arith ()
5540   {
5541     as_val=`expr "$@" || test $? -eq 1`
5542   }
5543 fi # as_fn_arith
5544
5545
5546 if expr a : '\(a\)' >/dev/null 2>&1 &&
5547    test "X`expr 00001 : '.*\(...\)'`" = X001; then
5548   as_expr=expr
5549 else
5550   as_expr=false
5551 fi
5552
5553 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5554   as_basename=basename
5555 else
5556   as_basename=false
5557 fi
5558
5559 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5560   as_dirname=dirname
5561 else
5562   as_dirname=false
5563 fi
5564
5565 as_me=`$as_basename -- "$0" ||
5566 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5567          X"$0" : 'X\(//\)$' \| \
5568          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5569 $as_echo X/"$0" |
5570     sed '/^.*\/\([^/][^/]*\)\/*$/{
5571             s//\1/
5572             q
5573           }
5574           /^X\/\(\/\/\)$/{
5575             s//\1/
5576             q
5577           }
5578           /^X\/\(\/\).*/{
5579             s//\1/
5580             q
5581           }
5582           s/.*/./; q'`
5583
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
5590
5591 ECHO_C= ECHO_N= ECHO_T=
5592 case `echo -n x` in #(((((
5593 -n*)
5594   case `echo 'xy\c'` in
5595   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
5596   xy)  ECHO_C='\c';;
5597   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
5598        ECHO_T=' ';;
5599   esac;;
5600 *)
5601   ECHO_N='-n';;
5602 esac
5603
5604 rm -f conf$$ conf$$.exe conf$$.file
5605 if test -d conf$$.dir; then
5606   rm -f conf$$.dir/conf$$.file
5607 else
5608   rm -f conf$$.dir
5609   mkdir conf$$.dir 2>/dev/null
5610 fi
5611 if (echo >conf$$.file) 2>/dev/null; then
5612   if ln -s conf$$.file conf$$ 2>/dev/null; then
5613     as_ln_s='ln -s'
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 ||
5619       as_ln_s='cp -p'
5620   elif ln conf$$.file conf$$ 2>/dev/null; then
5621     as_ln_s=ln
5622   else
5623     as_ln_s='cp -p'
5624   fi
5625 else
5626   as_ln_s='cp -p'
5627 fi
5628 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5629 rmdir conf$$.dir 2>/dev/null
5630
5631
5632 # as_fn_mkdir_p
5633 # -------------
5634 # Create "$as_dir" as a directory, including parents if necessary.
5635 as_fn_mkdir_p ()
5636 {
5637
5638   case $as_dir in #(
5639   -*) as_dir=./$as_dir;;
5640   esac
5641   test -d "$as_dir" || eval $as_mkdir_p || {
5642     as_dirs=
5643     while :; do
5644       case $as_dir in #(
5645       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5646       *) as_qdir=$as_dir;;
5647       esac
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5656             s//\1/
5657             q
5658           }
5659           /^X\(\/\/\)[^/].*/{
5660             s//\1/
5661             q
5662           }
5663           /^X\(\/\/\)$/{
5664             s//\1/
5665             q
5666           }
5667           /^X\(\/\).*/{
5668             s//\1/
5669             q
5670           }
5671           s/.*/./; q'`
5672       test -d "$as_dir" && break
5673     done
5674     test -z "$as_dirs" || eval "mkdir $as_dirs"
5675   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
5676
5677
5678 } # as_fn_mkdir_p
5679 if mkdir -p . 2>/dev/null; then
5680   as_mkdir_p='mkdir -p "$as_dir"'
5681 else
5682   test -d ./-p && rmdir ./-p
5683   as_mkdir_p=false
5684 fi
5685
5686 if test -x / >/dev/null 2>&1; then
5687   as_test_x='test -x'
5688 else
5689   if ls -dL / >/dev/null 2>&1; then
5690     as_ls_L_option=L
5691   else
5692     as_ls_L_option=
5693   fi
5694   as_test_x='
5695     eval sh -c '\''
5696       if test -d "$1"; then
5697         test -d "$1/.";
5698       else
5699         case $1 in #(
5700         -*)set "./$1";;
5701         esac;
5702         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5703         ???[sx]*):;;*)false;;esac;fi
5704     '\'' sh
5705   '
5706 fi
5707 as_executable_p=$as_test_x
5708
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'"
5711
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'"
5714
5715
5716 exec 6>&1
5717 ## ----------------------------------- ##
5718 ## Main body of $CONFIG_STATUS script. ##
5719 ## ----------------------------------- ##
5720 _ASEOF
5721 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5722
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.
5727 ac_log="
5728 This file was extended by $as_me, which was
5729 generated by GNU Autoconf 2.64.  Invocation command line was
5730
5731   CONFIG_FILES    = $CONFIG_FILES
5732   CONFIG_HEADERS  = $CONFIG_HEADERS
5733   CONFIG_LINKS    = $CONFIG_LINKS
5734   CONFIG_COMMANDS = $CONFIG_COMMANDS
5735   $ $0 $@
5736
5737 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5738 "
5739
5740 _ACEOF
5741
5742 case $ac_config_files in *"
5743 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5744 esac
5745
5746 case $ac_config_headers in *"
5747 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5748 esac
5749
5750
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"
5755
5756 _ACEOF
5757
5758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5759 ac_cs_usage="\
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.
5763
5764 Usage: $0 [OPTION]... [TAG]...
5765
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
5776
5777 Configuration files:
5778 $config_files
5779
5780 Configuration headers:
5781 $config_headers
5782
5783 Report bugs to the package provider."
5784
5785 _ACEOF
5786 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5787 ac_cs_version="\\
5788 config.status
5789 configured by $0, generated by GNU Autoconf 2.64,
5790   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5791
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."
5795
5796 ac_pwd='$ac_pwd'
5797 srcdir='$srcdir'
5798 INSTALL='$INSTALL'
5799 AWK='$AWK'
5800 test -n "\$AWK" || AWK=awk
5801 _ACEOF
5802
5803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5804 # The default lists apply if the user does not specify any file.
5805 ac_need_defaults=:
5806 while test $# != 0
5807 do
5808   case $1 in
5809   --*=*)
5810     ac_option=`expr "X$1" : 'X\([^=]*\)='`
5811     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5812     ac_shift=:
5813     ;;
5814   *)
5815     ac_option=$1
5816     ac_optarg=$2
5817     ac_shift=shift
5818     ;;
5819   esac
5820
5821   case $ac_option in
5822   # Handling of the options.
5823   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5824     ac_cs_recheck=: ;;
5825   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5826     $as_echo "$ac_cs_version"; exit ;;
5827   --debug | --debu | --deb | --de | --d | -d )
5828     debug=: ;;
5829   --file | --fil | --fi | --f )
5830     $ac_shift
5831     case $ac_optarg in
5832     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5833     esac
5834     as_fn_append CONFIG_FILES " '$ac_optarg'"
5835     ac_need_defaults=false;;
5836   --header | --heade | --head | --hea )
5837     $ac_shift
5838     case $ac_optarg in
5839     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5840     esac
5841     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5842     ac_need_defaults=false;;
5843   --he | --h)
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)
5851     ac_cs_silent=: ;;
5852
5853   # This is an error.
5854   -*) as_fn_error "unrecognized option: \`$1'
5855 Try \`$0 --help' for more information." ;;
5856
5857   *) as_fn_append ac_config_targets " $1"
5858      ac_need_defaults=false ;;
5859
5860   esac
5861   shift
5862 done
5863
5864 ac_configure_extra_args=
5865
5866 if $ac_cs_silent; then
5867   exec 6>/dev/null
5868   ac_configure_extra_args="$ac_configure_extra_args --silent"
5869 fi
5870
5871 _ACEOF
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
5875   shift
5876   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5877   CONFIG_SHELL='$SHELL'
5878   export CONFIG_SHELL
5879   exec "\$@"
5880 fi
5881
5882 _ACEOF
5883 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5884 exec 5>>config.log
5885 {
5886   echo
5887   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5888 ## Running $as_me. ##
5889 _ASBOX
5890   $as_echo "$ac_log"
5891 } >&5
5892
5893 _ACEOF
5894 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5895 _ACEOF
5896
5897 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5898
5899 # Handling of arguments.
5900 for ac_config_target in $ac_config_targets
5901 do
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" ;;
5914
5915   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5916   esac
5917 done
5918
5919
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
5927 fi
5928
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'.
5935 $debug ||
5936 {
5937   tmp=
5938   trap 'exit_status=$?
5939   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5940 ' 0
5941   trap 'as_fn_exit 1' 1 2 13 15
5942 }
5943 # Create a (secure) tmp directory for tmp files.
5944
5945 {
5946   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5947   test -n "$tmp" && test -d "$tmp"
5948 }  ||
5949 {
5950   tmp=./conf$$-$RANDOM
5951   (umask 077 && mkdir "$tmp")
5952 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
5953
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
5958
5959
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\'
5966 fi
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
5969   ac_cs_awk_cr='\r'
5970 else
5971   ac_cs_awk_cr=$ac_cr
5972 fi
5973
5974 echo 'BEGIN {' >"$tmp/subs1.awk" &&
5975 _ACEOF
5976
5977
5978 {
5979   echo "cat >conf$$subs.awk <<_ACEOF" &&
5980   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5981   echo "_ACEOF"
5982 } >conf$$subs.sh ||
5983   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5984 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
5985 ac_delim='%!_!# '
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
5989
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
5992     break
5993   elif $ac_last_try; then
5994     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5995   else
5996     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5997   fi
5998 done
5999 rm -f conf$$subs.sh
6000
6001 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6002 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
6003 _ACEOF
6004 sed -n '
6005 h
6006 s/^/S["/; s/!.*/"]=/
6007 p
6008 g
6009 s/^[^!]*!//
6010 :repl
6011 t repl
6012 s/'"$ac_delim"'$//
6013 t delim
6014 :nl
6015 h
6016 s/\(.\{148\}\).*/\1/
6017 t more1
6018 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6019 p
6020 n
6021 b repl
6022 :more1
6023 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6024 p
6025 g
6026 s/.\{148\}//
6027 t nl
6028 :delim
6029 h
6030 s/\(.\{148\}\).*/\1/
6031 t more2
6032 s/["\\]/\\&/g; s/^/"/; s/$/"/
6033 p
6034 b
6035 :more2
6036 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6037 p
6038 g
6039 s/.\{148\}//
6040 t delim
6041 ' <conf$$subs.awk | sed '
6042 /^[^""]/{
6043   N
6044   s/\n//
6045 }
6046 ' >>$CONFIG_STATUS || ac_write_fail=1
6047 rm -f conf$$subs.awk
6048 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6049 _ACAWK
6050 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
6051   for (key in S) S_is_set[key] = 1
6052   FS = "\a"
6053
6054 }
6055 {
6056   line = $ 0
6057   nfields = split(line, field, "@")
6058   substed = 0
6059   len = length(field[1])
6060   for (i = 2; i < nfields; i++) {
6061     key = field[i]
6062     keylen = length(key)
6063     if (S_is_set[key]) {
6064       value = S[key]
6065       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6066       len += length(value) + length(field[++i])
6067       substed = 1
6068     } else
6069       len += 1 + keylen
6070   }
6071
6072   print line
6073 }
6074
6075 _ACAWK
6076 _ACEOF
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"
6080 else
6081   cat
6082 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
6083   || as_fn_error "could not setup config files machinery" "$LINENO" 5
6084 _ACEOF
6085
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[        ]*=/{
6092 s/:*\$(srcdir):*/:/
6093 s/:*\${srcdir}:*/:/
6094 s/:*@srcdir@:*/:/
6095 s/^\([^=]*=[     ]*\):*/\1/
6096 s/:*$//
6097 s/^[^=]*=[       ]*$//
6098 }'
6099 fi
6100
6101 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6102 fi # test -n "$CONFIG_FILES"
6103
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 ||
6109 BEGIN {
6110 _ACEOF
6111
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.
6115
6116 # Create a delimiter string that does not exist in confdefs.h, to ease
6117 # handling of long lines.
6118 ac_delim='%!_!# '
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
6122     break
6123   elif $ac_last_try; then
6124     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
6125   else
6126     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6127   fi
6128 done
6129
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.
6133
6134 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6135 sed -n '
6136 s/.\{148\}/&'"$ac_delim"'/g
6137 t rset
6138 :rset
6139 s/^[     ]*#[    ]*define[       ][      ]*/ /
6140 t def
6141 d
6142 :def
6143 s/\\$//
6144 t bsnl
6145 s/["\\]/\\&/g
6146 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
6147 D["\1"]=" \3"/p
6148 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
6149 d
6150 :bsnl
6151 s/["\\]/\\&/g
6152 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
6153 D["\1"]=" \3\\\\\\n"\\/p
6154 t cont
6155 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6156 t cont
6157 d
6158 :cont
6159 n
6160 s/.\{148\}/&'"$ac_delim"'/g
6161 t clear
6162 :clear
6163 s/\\$//
6164 t bsnlc
6165 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6166 d
6167 :bsnlc
6168 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6169 b cont
6170 ' <confdefs.h | sed '
6171 s/'"$ac_delim"'/"\\\
6172 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6173
6174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6175   for (key in D) D_is_set[key] = 1
6176   FS = "\a"
6177 }
6178 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6179   line = \$ 0
6180   split(line, arg, " ")
6181   if (arg[1] == "#") {
6182     defundef = arg[2]
6183     mac1 = arg[3]
6184   } else {
6185     defundef = substr(arg[1], 2)
6186     mac1 = arg[2]
6187   }
6188   split(mac1, mac2, "(") #)
6189   macro = mac2[1]
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]
6194     next
6195   } else {
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, "*/"
6201       next
6202     }
6203   }
6204 }
6205 { print }
6206 _ACAWK
6207 _ACEOF
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"
6211
6212
6213 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
6214 shift
6215 for ac_tag
6216 do
6217   case $ac_tag in
6218   :[FHLC]) ac_mode=$ac_tag; continue;;
6219   esac
6220   case $ac_mode$ac_tag in
6221   :[FHL]*:*);;
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;;
6225   esac
6226   ac_save_IFS=$IFS
6227   IFS=:
6228   set x $ac_tag
6229   IFS=$ac_save_IFS
6230   shift
6231   ac_file=$1
6232   shift
6233
6234   case $ac_mode in
6235   :L) ac_source=$1;;
6236   :[FH])
6237     ac_file_inputs=
6238     for ac_f
6239     do
6240       case $ac_f 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 `:'.
6245          test -f "$ac_f" ||
6246            case $ac_f in
6247            [\\/$]*) false;;
6248            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6249            esac ||
6250            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6251       esac
6252       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6253       as_fn_append ac_file_inputs " '$ac_f'"
6254     done
6255
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'
6261         `' by configure.'
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;}
6266     fi
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;;
6273     esac
6274
6275     case $ac_tag in
6276     *:-:* | *:-) cat >"$tmp/stdin" \
6277       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
6278     esac
6279     ;;
6280   esac
6281
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6289             s//\1/
6290             q
6291           }
6292           /^X\(\/\/\)[^/].*/{
6293             s//\1/
6294             q
6295           }
6296           /^X\(\/\/\)$/{
6297             s//\1/
6298             q
6299           }
6300           /^X\(\/\).*/{
6301             s//\1/
6302             q
6303           }
6304           s/.*/./; q'`
6305   as_dir="$ac_dir"; as_fn_mkdir_p
6306   ac_builddir=.
6307
6308 case "$ac_dir" in
6309 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6310 *)
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/ ;;
6317   esac ;;
6318 esac
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
6323
6324 case $srcdir in
6325   .)  # We are building in place.
6326     ac_srcdir=.
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 ;;
6333   *) # Relative name.
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 ;;
6337 esac
6338 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6339
6340
6341   case $ac_mode in
6342   :F)
6343   #
6344   # CONFIG_FILE
6345   #
6346
6347   case $INSTALL in
6348   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6349   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6350   esac
6351 _ACEOF
6352
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=
6357 ac_sed_dataroot='
6358 /datarootdir/ {
6359   p
6360   q
6361 }
6362 /@datadir@/p
6363 /@docdir@/p
6364 /@infodir@/p
6365 /@localedir@/p
6366 /@mandir@/p'
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;}
6372 _ACEOF
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' ;;
6381 esac
6382 _ACEOF
6383
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
6389 $extrasub
6390 _ACEOF
6391 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6392 :t
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
6406 "
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
6409
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;}
6417
6418   rm -f "$tmp/stdin"
6419   case $ac_file in
6420   -) cat "$tmp/out" && rm -f "$tmp/out";;
6421   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
6422   esac \
6423   || as_fn_error "could not create $ac_file" "$LINENO" 5
6424  ;;
6425   :H)
6426   #
6427   # CONFIG_HEADER
6428   #
6429   if test x"$ac_file" != x-; then
6430     {
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;}
6438     else
6439       rm -f "$ac_file"
6440       mv "$tmp/config.h" "$ac_file" \
6441         || as_fn_error "could not create $ac_file" "$LINENO" 5
6442     fi
6443   else
6444     $as_echo "/* $configure_input  */" \
6445       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
6446       || as_fn_error "could not create -" "$LINENO" 5
6447   fi
6448  ;;
6449
6450
6451   esac
6452
6453
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 ;;
6462
6463   esac
6464 done # for ac_tag
6465
6466
6467 as_fn_exit 0
6468 _ACEOF
6469 ac_clean_files=$ac_clean_files_save
6470
6471 test $ac_write_fail = 0 ||
6472   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
6473
6474
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
6484   ac_cs_success=:
6485   ac_config_status_args=
6486   test "$silent" = yes &&
6487     ac_config_status_args="$ac_config_status_args --quiet"
6488   exec 5>/dev/null
6489   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6490   exec 5>>config.log
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 $?
6494 fi
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;}
6498 fi
6499