2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for suphp 0.5.2.
5 # Report bugs to <sebastian.marsching@suphp.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 if expr a : '\(a\)' >/dev/null 2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.file conf$$ 2>/dev/null; then
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
223 test -d ./-p && rmdir ./-p
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # We need space, tab and new line, in precisely that order.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
262 SHELL=${CONFIG_SHELL-/bin/sh}
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
269 # Identity of this package.
271 PACKAGE_TARNAME='suphp'
272 PACKAGE_VERSION='0.5.2'
273 PACKAGE_STRING='suphp 0.5.2'
274 PACKAGE_BUGREPORT='sebastian.marsching@suphp.org'
276 ac_unique_file="src/suphp.c"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
281 # include <sys/types.h>
284 # include <sys/stat.h>
295 # if !STDC_HEADERS && HAVE_MEMORY_H
301 # include <strings.h>
304 # include <inttypes.h>
314 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA APXS APACHE_VERSION_1_3 APACHE_VERSION_2 OPT_APACHEMOD_USERGROUP_DEF CPP EGREP LIBOBJS LTLIBOBJS'
317 # Initialize some variables set by options.
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
329 program_transform_name=s,x,x,
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386 cache_file=$ac_optarg ;;
389 cache_file=config.cache ;;
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 datadir=$ac_optarg ;;
397 -disable-* | --disable-*)
398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* | --enable-*)
407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 eval "enable_$ac_feature='$ac_optarg'" ;;
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
426 exec_prefix=$ac_optarg ;;
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
432 -help | --help | --hel | --he | -h)
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
449 includedir=$ac_optarg ;;
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
456 -libdir | --libdir | --libdi | --libd)
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
466 libexecdir=$ac_optarg ;;
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475 localstatedir=$ac_optarg ;;
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
483 # Obsolete; use --without-fp.
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501 oldincludedir=$ac_optarg ;;
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513 program_prefix=$ac_optarg ;;
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520 program_suffix=$ac_optarg ;;
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
537 program_transform_name=$ac_optarg ;;
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 sbindir=$ac_optarg ;;
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 sharedstatedir=$ac_optarg ;;
560 -site | --site | --sit)
562 -site=* | --site=* | --sit=*)
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575 sysconfdir=$ac_optarg ;;
577 -target | --target | --targe | --targ | --tar | --ta | --t)
578 ac_prev=target_alias ;;
579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580 target_alias=$ac_optarg ;;
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 -version | --version | --versio | --versi | --vers | -V)
589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package=`echo $ac_package| sed 's/-/_/g'`
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 eval "with_$ac_package='$ac_optarg'" ;;
601 -without-* | --without-*)
602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
611 # Obsolete; use --with-x.
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619 x_includes=$ac_optarg ;;
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626 x_libraries=$ac_optarg ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
654 if test -n "$ac_prev"; then
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
663 eval ac_val=$`echo $ac_var`
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
675 eval ac_val=$`echo $ac_var`
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704 test "$silent" = yes && exec 6>/dev/null
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
724 if test ! -r $srcdir/$ac_unique_file; then
728 ac_srcdir_defaulted=no
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CPP_set=${CPP+set}
772 ac_env_CPP_value=$CPP
773 ac_cv_env_CPP_set=${CPP+set}
774 ac_cv_env_CPP_value=$CPP
777 # Report the --help message.
779 if test "$ac_init_help" = "long"; then
780 # Omit some internal or obsolete options to make the list less imposing.
781 # This message is too long to be a string in the A/UX 3.1 sh.
783 \`configure' configures suphp 0.5.2 to adapt to many kinds of systems.
785 Usage: $0 [OPTION]... [VAR=VALUE]...
787 To assign environment variables (e.g., CC, CFLAGS...), specify them as
788 VAR=VALUE. See below for descriptions of some of the useful variables.
790 Defaults for the options are specified in brackets.
793 -h, --help display this help and exit
794 --help=short display options specific to this package
795 --help=recursive display the short help of all the included packages
796 -V, --version display version information and exit
797 -q, --quiet, --silent do not print \`checking...' messages
798 --cache-file=FILE cache test results in FILE [disabled]
799 -C, --config-cache alias for \`--cache-file=config.cache'
800 -n, --no-create do not create output files
801 --srcdir=DIR find the sources in DIR [configure dir or \`..']
806 Installation directories:
807 --prefix=PREFIX install architecture-independent files in PREFIX
809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
817 For better control, use the options below.
819 Fine tuning of the installation directories:
820 --bindir=DIR user executables [EPREFIX/bin]
821 --sbindir=DIR system admin executables [EPREFIX/sbin]
822 --libexecdir=DIR program executables [EPREFIX/libexec]
823 --datadir=DIR read-only architecture-independent data [PREFIX/share]
824 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
825 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
826 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
827 --libdir=DIR object code libraries [EPREFIX/lib]
828 --includedir=DIR C header files [PREFIX/include]
829 --oldincludedir=DIR C header files for non-gcc [/usr/include]
830 --infodir=DIR info documentation [PREFIX/info]
831 --mandir=DIR man documentation [PREFIX/man]
838 if test -n "$ac_init_help"; then
839 case $ac_init_help in
840 short | recursive ) echo "Configuration of suphp 0.5.2:";;
845 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
846 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
847 --enable-checkpath Check if script resides in DOCUMENT_ROOT (default is
849 --enable-checkuid Do not accept UIDs that are not listed in
850 /etc/passwd (default is ENABLED)
851 --enable-checkgid Do not accept GIDs that are not listed in /etc/group
855 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
856 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
857 --with-apxs=FILE Build shared Apache module. FILE is the optional
858 pathname to the Apache apxs tool; defaults to
860 --with-setid-mode=MODE Mode to use for setting UID/GID. MODE can be on of
861 "owner", "config" or "paranoid"; defaults to
863 --with-min-uid=UID Minimum UID, which is allowed to run scripts
865 --with-min-gid=GID Minimum GID, which is allowed to run scripts
867 --with-apache-user=USERNAME
868 Name of the user Apache is running as (default is
870 --with-php=FILE Path to PHP interpreter (default is "/usr/bin/php"
871 --with-logfile=FILE Path to suPHP logfile (default is
872 "/var/log/httpd/suphp_log"
874 Some influential environment variables:
875 CC C compiler command
876 CFLAGS C compiler flags
877 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
878 nonstandard directory <lib dir>
879 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
880 headers in a nonstandard directory <include dir>
883 Use these variables to override the choices made by `configure' or to help
884 it to find libraries and programs with nonstandard names/locations.
886 Report bugs to <sebastian.marsching@suphp.org>.
890 if test "$ac_init_help" = "recursive"; then
891 # If there are subdirs, report their specific --help.
893 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
894 test -d $ac_dir || continue
897 if test "$ac_dir" != .; then
898 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
899 # A "../" for each directory in $ac_dir_suffix.
900 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
902 ac_dir_suffix= ac_top_builddir=
906 .) # No --srcdir option. We are building in place.
908 if test -z "$ac_top_builddir"; then
911 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
913 [\\/]* | ?:[\\/]* ) # Absolute path.
914 ac_srcdir=$srcdir$ac_dir_suffix;
915 ac_top_srcdir=$srcdir ;;
917 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
918 ac_top_srcdir=$ac_top_builddir$srcdir ;;
921 # Do not use `cd foo && pwd` to compute absolute paths, because
922 # the directories may not exist.
924 .) ac_abs_builddir="$ac_dir";;
927 .) ac_abs_builddir=`pwd`;;
928 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
929 *) ac_abs_builddir=`pwd`/"$ac_dir";;
932 case $ac_abs_builddir in
933 .) ac_abs_top_builddir=${ac_top_builddir}.;;
935 case ${ac_top_builddir}. in
936 .) ac_abs_top_builddir=$ac_abs_builddir;;
937 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
938 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
941 case $ac_abs_builddir in
942 .) ac_abs_srcdir=$ac_srcdir;;
945 .) ac_abs_srcdir=$ac_abs_builddir;;
946 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
947 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
950 case $ac_abs_builddir in
951 .) ac_abs_top_srcdir=$ac_top_srcdir;;
953 case $ac_top_srcdir in
954 .) ac_abs_top_srcdir=$ac_abs_builddir;;
955 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
956 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
961 # Check for guested configure; otherwise get Cygnus style configure.
962 if test -f $ac_srcdir/configure.gnu; then
964 $SHELL $ac_srcdir/configure.gnu --help=recursive
965 elif test -f $ac_srcdir/configure; then
967 $SHELL $ac_srcdir/configure --help=recursive
968 elif test -f $ac_srcdir/configure.ac ||
969 test -f $ac_srcdir/configure.in; then
973 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
979 test -n "$ac_init_help" && exit 0
980 if $ac_init_version; then
982 suphp configure 0.5.2
983 generated by GNU Autoconf 2.59
985 Copyright (C) 2003 Free Software Foundation, Inc.
986 This configure script is free software; the Free Software Foundation
987 gives unlimited permission to copy, distribute and modify it.
993 This file contains any messages produced by compilers while
994 running configure, to aid debugging if configure makes a mistake.
996 It was created by suphp $as_me 0.5.2, which was
997 generated by GNU Autoconf 2.59. Invocation command line was
1008 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1009 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1010 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1011 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1012 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1014 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1015 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1017 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1018 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1019 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1020 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1021 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1022 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1023 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1031 test -z "$as_dir" && as_dir=.
1032 echo "PATH: $as_dir"
1047 # Keep a trace of the command line.
1048 # Strip out --no-create and --no-recursion so they do not pile up.
1049 # Strip out --silent because we don't want to record it for future runs.
1050 # Also quote any args containing shell meta-characters.
1051 # Make two passes to allow for proper duplicate-argument suppression.
1056 ac_must_keep_next=false
1062 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1064 | -silent | --silent | --silen | --sile | --sil)
1066 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1067 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1070 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1072 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1073 if test $ac_must_keep_next = true; then
1074 ac_must_keep_next=false # Got value, back to normal.
1077 *=* | --config-cache | -C | -disable-* | --disable-* \
1078 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1079 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1080 | -with-* | --with-* | -without-* | --without-* | --x)
1081 case "$ac_configure_args0 " in
1082 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1085 -* ) ac_must_keep_next=true ;;
1088 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1089 # Get rid of the leading space.
1095 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1096 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1098 # When interrupted or exit'd, cleanup temporary files, and complete
1099 # config.log. We remove comments because anyway the quotes in there
1100 # would cause problems or look ugly.
1101 # WARNING: Be sure not to use single quotes in there, as some shells,
1102 # such as our DU 5.0 friend, will then `close' the trap.
1103 trap 'exit_status=$?
1104 # Save into config.log some information that might help in debugging.
1109 ## ---------------- ##
1110 ## Cache variables. ##
1111 ## ---------------- ##
1114 # The following way of writing the cache mishandles newlines in values,
1117 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1120 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1125 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1132 ## ----------------- ##
1133 ## Output variables. ##
1134 ## ----------------- ##
1137 for ac_var in $ac_subst_vars
1139 eval ac_val=$`echo $ac_var`
1140 echo "$ac_var='"'"'$ac_val'"'"'"
1144 if test -n "$ac_subst_files"; then
1151 for ac_var in $ac_subst_files
1153 eval ac_val=$`echo $ac_var`
1154 echo "$ac_var='"'"'$ac_val'"'"'"
1159 if test -s confdefs.h; then
1166 sed "/^$/d" confdefs.h | sort
1169 test "$ac_signal" != 0 &&
1170 echo "$as_me: caught signal $ac_signal"
1171 echo "$as_me: exit $exit_status"
1173 rm -f core *.core &&
1174 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1177 for ac_signal in 1 2 13 15; do
1178 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1182 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1183 rm -rf conftest* confdefs.h
1184 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1187 # Predefined preprocessor variables.
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_NAME "$PACKAGE_NAME"
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_STRING "$PACKAGE_STRING"
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1214 # Let the site file select an alternate cache file if it wants to.
1215 # Prefer explicitly selected file to automatically selected ones.
1216 if test -z "$CONFIG_SITE"; then
1217 if test "x$prefix" != xNONE; then
1218 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1220 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1223 for ac_site_file in $CONFIG_SITE; do
1224 if test -r "$ac_site_file"; then
1225 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1226 echo "$as_me: loading site script $ac_site_file" >&6;}
1227 sed 's/^/| /' "$ac_site_file" >&5
1232 if test -r "$cache_file"; then
1233 # Some versions of bash will fail to source /dev/null (special
1234 # files actually), so we avoid doing that.
1235 if test -f "$cache_file"; then
1236 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1237 echo "$as_me: loading cache $cache_file" >&6;}
1239 [\\/]* | ?:[\\/]* ) . $cache_file;;
1240 *) . ./$cache_file;;
1244 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1245 echo "$as_me: creating cache $cache_file" >&6;}
1249 # Check that the precious variables saved in the cache have kept the same
1251 ac_cache_corrupted=false
1252 for ac_var in `(set) 2>&1 |
1253 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1254 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1255 eval ac_new_set=\$ac_env_${ac_var}_set
1256 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1257 eval ac_new_val="\$ac_env_${ac_var}_value"
1258 case $ac_old_set,$ac_new_set in
1260 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1261 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1262 ac_cache_corrupted=: ;;
1264 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1265 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1266 ac_cache_corrupted=: ;;
1269 if test "x$ac_old_val" != "x$ac_new_val"; then
1270 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1271 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1272 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1273 echo "$as_me: former value: $ac_old_val" >&2;}
1274 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1275 echo "$as_me: current value: $ac_new_val" >&2;}
1276 ac_cache_corrupted=:
1279 # Pass precious variables to config.status.
1280 if test "$ac_new_set" = set; then
1282 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1283 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1284 *) ac_arg=$ac_var=$ac_new_val ;;
1286 case " $ac_configure_args " in
1287 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1288 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1292 if $ac_cache_corrupted; then
1293 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1294 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1295 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1296 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1297 { (exit 1); exit 1; }; }
1301 ac_cpp='$CPP $CPPFLAGS'
1302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1334 for ac_dir in config $srcdir/config; do
1335 if test -f $ac_dir/install-sh; then
1337 ac_install_sh="$ac_aux_dir/install-sh -c"
1339 elif test -f $ac_dir/install.sh; then
1341 ac_install_sh="$ac_aux_dir/install.sh -c"
1343 elif test -f $ac_dir/shtool; then
1345 ac_install_sh="$ac_aux_dir/shtool install -c"
1349 if test -z "$ac_aux_dir"; then
1350 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1351 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1352 { (exit 1); exit 1; }; }
1354 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1355 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1356 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1358 ac_config_headers="$ac_config_headers src/config.h"
1361 # Checks for programs.
1363 ac_cpp='$CPP $CPPFLAGS'
1364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1367 if test -n "$ac_tool_prefix"; then
1368 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1369 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1370 echo "$as_me:$LINENO: checking for $ac_word" >&5
1371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1372 if test "${ac_cv_prog_CC+set}" = set; then
1373 echo $ECHO_N "(cached) $ECHO_C" >&6
1375 if test -n "$CC"; then
1376 ac_cv_prog_CC="$CC" # Let the user override the test.
1378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1382 test -z "$as_dir" && as_dir=.
1383 for ac_exec_ext in '' $ac_executable_extensions; do
1384 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1385 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1395 if test -n "$CC"; then
1396 echo "$as_me:$LINENO: result: $CC" >&5
1397 echo "${ECHO_T}$CC" >&6
1399 echo "$as_me:$LINENO: result: no" >&5
1400 echo "${ECHO_T}no" >&6
1404 if test -z "$ac_cv_prog_CC"; then
1406 # Extract the first word of "gcc", so it can be a program name with args.
1407 set dummy gcc; ac_word=$2
1408 echo "$as_me:$LINENO: checking for $ac_word" >&5
1409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1410 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1411 echo $ECHO_N "(cached) $ECHO_C" >&6
1413 if test -n "$ac_ct_CC"; then
1414 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1420 test -z "$as_dir" && as_dir=.
1421 for ac_exec_ext in '' $ac_executable_extensions; do
1422 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1423 ac_cv_prog_ac_ct_CC="gcc"
1424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1432 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1433 if test -n "$ac_ct_CC"; then
1434 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1435 echo "${ECHO_T}$ac_ct_CC" >&6
1437 echo "$as_me:$LINENO: result: no" >&5
1438 echo "${ECHO_T}no" >&6
1446 if test -z "$CC"; then
1447 if test -n "$ac_tool_prefix"; then
1448 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1449 set dummy ${ac_tool_prefix}cc; ac_word=$2
1450 echo "$as_me:$LINENO: checking for $ac_word" >&5
1451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1452 if test "${ac_cv_prog_CC+set}" = set; then
1453 echo $ECHO_N "(cached) $ECHO_C" >&6
1455 if test -n "$CC"; then
1456 ac_cv_prog_CC="$CC" # Let the user override the test.
1458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1462 test -z "$as_dir" && as_dir=.
1463 for ac_exec_ext in '' $ac_executable_extensions; do
1464 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1465 ac_cv_prog_CC="${ac_tool_prefix}cc"
1466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1475 if test -n "$CC"; then
1476 echo "$as_me:$LINENO: result: $CC" >&5
1477 echo "${ECHO_T}$CC" >&6
1479 echo "$as_me:$LINENO: result: no" >&5
1480 echo "${ECHO_T}no" >&6
1484 if test -z "$ac_cv_prog_CC"; then
1486 # Extract the first word of "cc", so it can be a program name with args.
1487 set dummy cc; ac_word=$2
1488 echo "$as_me:$LINENO: checking for $ac_word" >&5
1489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1490 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1491 echo $ECHO_N "(cached) $ECHO_C" >&6
1493 if test -n "$ac_ct_CC"; then
1494 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1500 test -z "$as_dir" && as_dir=.
1501 for ac_exec_ext in '' $ac_executable_extensions; do
1502 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1503 ac_cv_prog_ac_ct_CC="cc"
1504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1512 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1513 if test -n "$ac_ct_CC"; then
1514 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1515 echo "${ECHO_T}$ac_ct_CC" >&6
1517 echo "$as_me:$LINENO: result: no" >&5
1518 echo "${ECHO_T}no" >&6
1527 if test -z "$CC"; then
1528 # Extract the first word of "cc", so it can be a program name with args.
1529 set dummy cc; ac_word=$2
1530 echo "$as_me:$LINENO: checking for $ac_word" >&5
1531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1532 if test "${ac_cv_prog_CC+set}" = set; then
1533 echo $ECHO_N "(cached) $ECHO_C" >&6
1535 if test -n "$CC"; then
1536 ac_cv_prog_CC="$CC" # Let the user override the test.
1539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1543 test -z "$as_dir" && as_dir=.
1544 for ac_exec_ext in '' $ac_executable_extensions; do
1545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1546 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1547 ac_prog_rejected=yes
1551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1557 if test $ac_prog_rejected = yes; then
1558 # We found a bogon in the path, so make sure we never use it.
1559 set dummy $ac_cv_prog_CC
1561 if test $# != 0; then
1562 # We chose a different compiler from the bogus one.
1563 # However, it has the same basename, so the bogon will be chosen
1564 # first if we set CC to just the basename; use the full file name.
1566 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1572 if test -n "$CC"; then
1573 echo "$as_me:$LINENO: result: $CC" >&5
1574 echo "${ECHO_T}$CC" >&6
1576 echo "$as_me:$LINENO: result: no" >&5
1577 echo "${ECHO_T}no" >&6
1581 if test -z "$CC"; then
1582 if test -n "$ac_tool_prefix"; then
1585 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1586 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1587 echo "$as_me:$LINENO: checking for $ac_word" >&5
1588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1589 if test "${ac_cv_prog_CC+set}" = set; then
1590 echo $ECHO_N "(cached) $ECHO_C" >&6
1592 if test -n "$CC"; then
1593 ac_cv_prog_CC="$CC" # Let the user override the test.
1595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1599 test -z "$as_dir" && as_dir=.
1600 for ac_exec_ext in '' $ac_executable_extensions; do
1601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1602 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1612 if test -n "$CC"; then
1613 echo "$as_me:$LINENO: result: $CC" >&5
1614 echo "${ECHO_T}$CC" >&6
1616 echo "$as_me:$LINENO: result: no" >&5
1617 echo "${ECHO_T}no" >&6
1620 test -n "$CC" && break
1623 if test -z "$CC"; then
1627 # Extract the first word of "$ac_prog", so it can be a program name with args.
1628 set dummy $ac_prog; ac_word=$2
1629 echo "$as_me:$LINENO: checking for $ac_word" >&5
1630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1631 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1632 echo $ECHO_N "(cached) $ECHO_C" >&6
1634 if test -n "$ac_ct_CC"; then
1635 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1641 test -z "$as_dir" && as_dir=.
1642 for ac_exec_ext in '' $ac_executable_extensions; do
1643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1644 ac_cv_prog_ac_ct_CC="$ac_prog"
1645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1653 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1654 if test -n "$ac_ct_CC"; then
1655 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1656 echo "${ECHO_T}$ac_ct_CC" >&6
1658 echo "$as_me:$LINENO: result: no" >&5
1659 echo "${ECHO_T}no" >&6
1662 test -n "$ac_ct_CC" && break
1671 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1672 See \`config.log' for more details." >&5
1673 echo "$as_me: error: no acceptable C compiler found in \$PATH
1674 See \`config.log' for more details." >&2;}
1675 { (exit 1); exit 1; }; }
1677 # Provide some information about the compiler.
1678 echo "$as_me:$LINENO:" \
1679 "checking for C compiler version" >&5
1680 ac_compiler=`set X $ac_compile; echo $2`
1681 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1682 (eval $ac_compiler --version </dev/null >&5) 2>&5
1684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1685 (exit $ac_status); }
1686 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1687 (eval $ac_compiler -v </dev/null >&5) 2>&5
1689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1690 (exit $ac_status); }
1691 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1692 (eval $ac_compiler -V </dev/null >&5) 2>&5
1694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1695 (exit $ac_status); }
1697 cat >conftest.$ac_ext <<_ACEOF
1700 cat confdefs.h >>conftest.$ac_ext
1701 cat >>conftest.$ac_ext <<_ACEOF
1702 /* end confdefs.h. */
1712 ac_clean_files_save=$ac_clean_files
1713 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1714 # Try to create an executable without -o first, disregard a.out.
1715 # It will help us diagnose broken compilers, and finding out an intuition
1717 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1718 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1719 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1720 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1721 (eval $ac_link_default) 2>&5
1723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1724 (exit $ac_status); }; then
1725 # Find the output, starting from the most likely. This scheme is
1726 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1729 # Be careful to initialize this variable, since it used to be cached.
1730 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1732 # b.out is created by i960 compilers.
1733 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1735 test -f "$ac_file" || continue
1737 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1740 # This is the source file.
1743 # We found the default executable, but exeext='' is most
1747 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1748 # FIXME: I believe we export ac_cv_exeext for Libtool,
1749 # but it would be cool to find out if it's true. Does anybody
1750 # maintain Libtool? --akim.
1758 echo "$as_me: failed program was:" >&5
1759 sed 's/^/| /' conftest.$ac_ext >&5
1761 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1762 See \`config.log' for more details." >&5
1763 echo "$as_me: error: C compiler cannot create executables
1764 See \`config.log' for more details." >&2;}
1765 { (exit 77); exit 77; }; }
1768 ac_exeext=$ac_cv_exeext
1769 echo "$as_me:$LINENO: result: $ac_file" >&5
1770 echo "${ECHO_T}$ac_file" >&6
1772 # Check the compiler produces executables we can run. If not, either
1773 # the compiler is broken, or we cross compile.
1774 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1775 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1776 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1777 # If not cross compiling, check that we can run a simple program.
1778 if test "$cross_compiling" != yes; then
1779 if { ac_try='./$ac_file'
1780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1784 (exit $ac_status); }; }; then
1787 if test "$cross_compiling" = maybe; then
1790 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1791 If you meant to cross compile, use \`--host'.
1792 See \`config.log' for more details." >&5
1793 echo "$as_me: error: cannot run C compiled programs.
1794 If you meant to cross compile, use \`--host'.
1795 See \`config.log' for more details." >&2;}
1796 { (exit 1); exit 1; }; }
1800 echo "$as_me:$LINENO: result: yes" >&5
1801 echo "${ECHO_T}yes" >&6
1803 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1804 ac_clean_files=$ac_clean_files_save
1805 # Check the compiler produces executables we can run. If not, either
1806 # the compiler is broken, or we cross compile.
1807 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1808 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1809 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1810 echo "${ECHO_T}$cross_compiling" >&6
1812 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1813 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1815 (eval $ac_link) 2>&5
1817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1818 (exit $ac_status); }; then
1819 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1820 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1821 # work properly (i.e., refer to `conftest.exe'), while it won't with
1823 for ac_file in conftest.exe conftest conftest.*; do
1824 test -f "$ac_file" || continue
1826 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1827 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1834 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1835 See \`config.log' for more details." >&5
1836 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1837 See \`config.log' for more details." >&2;}
1838 { (exit 1); exit 1; }; }
1841 rm -f conftest$ac_cv_exeext
1842 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1843 echo "${ECHO_T}$ac_cv_exeext" >&6
1845 rm -f conftest.$ac_ext
1846 EXEEXT=$ac_cv_exeext
1848 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1849 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1850 if test "${ac_cv_objext+set}" = set; then
1851 echo $ECHO_N "(cached) $ECHO_C" >&6
1853 cat >conftest.$ac_ext <<_ACEOF
1856 cat confdefs.h >>conftest.$ac_ext
1857 cat >>conftest.$ac_ext <<_ACEOF
1858 /* end confdefs.h. */
1868 rm -f conftest.o conftest.obj
1869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1870 (eval $ac_compile) 2>&5
1872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1873 (exit $ac_status); }; then
1874 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1876 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1877 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1882 echo "$as_me: failed program was:" >&5
1883 sed 's/^/| /' conftest.$ac_ext >&5
1885 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1886 See \`config.log' for more details." >&5
1887 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1888 See \`config.log' for more details." >&2;}
1889 { (exit 1); exit 1; }; }
1892 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1894 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1895 echo "${ECHO_T}$ac_cv_objext" >&6
1896 OBJEXT=$ac_cv_objext
1898 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1899 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1900 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1901 echo $ECHO_N "(cached) $ECHO_C" >&6
1903 cat >conftest.$ac_ext <<_ACEOF
1906 cat confdefs.h >>conftest.$ac_ext
1907 cat >>conftest.$ac_ext <<_ACEOF
1908 /* end confdefs.h. */
1921 rm -f conftest.$ac_objext
1922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1923 (eval $ac_compile) 2>conftest.er1
1925 grep -v '^ *+' conftest.er1 >conftest.err
1927 cat conftest.err >&5
1928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1929 (exit $ac_status); } &&
1930 { ac_try='test -z "$ac_c_werror_flag"
1931 || test ! -s conftest.err'
1932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1936 (exit $ac_status); }; } &&
1937 { ac_try='test -s conftest.$ac_objext'
1938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1942 (exit $ac_status); }; }; then
1945 echo "$as_me: failed program was:" >&5
1946 sed 's/^/| /' conftest.$ac_ext >&5
1950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1951 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1954 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1955 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1956 GCC=`test $ac_compiler_gnu = yes && echo yes`
1957 ac_test_CFLAGS=${CFLAGS+set}
1958 ac_save_CFLAGS=$CFLAGS
1960 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1961 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1962 if test "${ac_cv_prog_cc_g+set}" = set; then
1963 echo $ECHO_N "(cached) $ECHO_C" >&6
1965 cat >conftest.$ac_ext <<_ACEOF
1968 cat confdefs.h >>conftest.$ac_ext
1969 cat >>conftest.$ac_ext <<_ACEOF
1970 /* end confdefs.h. */
1980 rm -f conftest.$ac_objext
1981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1982 (eval $ac_compile) 2>conftest.er1
1984 grep -v '^ *+' conftest.er1 >conftest.err
1986 cat conftest.err >&5
1987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1988 (exit $ac_status); } &&
1989 { ac_try='test -z "$ac_c_werror_flag"
1990 || test ! -s conftest.err'
1991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1995 (exit $ac_status); }; } &&
1996 { ac_try='test -s conftest.$ac_objext'
1997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001 (exit $ac_status); }; }; then
2004 echo "$as_me: failed program was:" >&5
2005 sed 's/^/| /' conftest.$ac_ext >&5
2009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2011 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2012 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2013 if test "$ac_test_CFLAGS" = set; then
2014 CFLAGS=$ac_save_CFLAGS
2015 elif test $ac_cv_prog_cc_g = yes; then
2016 if test "$GCC" = yes; then
2022 if test "$GCC" = yes; then
2028 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2029 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2030 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2033 ac_cv_prog_cc_stdc=no
2035 cat >conftest.$ac_ext <<_ACEOF
2038 cat confdefs.h >>conftest.$ac_ext
2039 cat >>conftest.$ac_ext <<_ACEOF
2040 /* end confdefs.h. */
2043 #include <sys/types.h>
2044 #include <sys/stat.h>
2045 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2046 struct buf { int x; };
2047 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2048 static char *e (p, i)
2054 static char *f (char * (*g) (char **, int), char **p, ...)
2059 s = g (p, va_arg (v,int));
2064 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2065 function prototypes and stuff, but not '\xHH' hex character constants.
2066 These don't provoke an error unfortunately, instead are silently treated
2067 as 'x'. The following induces an error, until -std1 is added to get
2068 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2069 array size at least. It's necessary to write '\x00'==0 to get something
2070 that's true only with -std1. */
2071 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2073 int test (int i, double x);
2074 struct s1 {int (*f) (int a);};
2075 struct s2 {int (*f) (double a);};
2076 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2082 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2087 # Don't try gcc -ansi; that turns off useful extensions and
2088 # breaks some systems' header files.
2089 # AIX -qlanglvl=ansi
2090 # Ultrix and OSF/1 -std1
2091 # HP-UX 10.20 and later -Ae
2092 # HP-UX older versions -Aa -D_HPUX_SOURCE
2093 # SVR4 -Xc -D__EXTENSIONS__
2094 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2096 CC="$ac_save_CC $ac_arg"
2097 rm -f conftest.$ac_objext
2098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2099 (eval $ac_compile) 2>conftest.er1
2101 grep -v '^ *+' conftest.er1 >conftest.err
2103 cat conftest.err >&5
2104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105 (exit $ac_status); } &&
2106 { ac_try='test -z "$ac_c_werror_flag"
2107 || test ! -s conftest.err'
2108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112 (exit $ac_status); }; } &&
2113 { ac_try='test -s conftest.$ac_objext'
2114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 (exit $ac_status); }; }; then
2119 ac_cv_prog_cc_stdc=$ac_arg
2122 echo "$as_me: failed program was:" >&5
2123 sed 's/^/| /' conftest.$ac_ext >&5
2126 rm -f conftest.err conftest.$ac_objext
2128 rm -f conftest.$ac_ext conftest.$ac_objext
2133 case "x$ac_cv_prog_cc_stdc" in
2135 echo "$as_me:$LINENO: result: none needed" >&5
2136 echo "${ECHO_T}none needed" >&6 ;;
2138 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2139 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2140 CC="$CC $ac_cv_prog_cc_stdc" ;;
2143 # Some people use a C++ compiler to compile C. Since we use `exit',
2144 # in C++ we need to declare it. In case someone uses the same compiler
2145 # for both compiling C and C++ we need to have the C++ compiler decide
2146 # the declaration of exit, since it's the most demanding environment.
2147 cat >conftest.$ac_ext <<_ACEOF
2152 rm -f conftest.$ac_objext
2153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2154 (eval $ac_compile) 2>conftest.er1
2156 grep -v '^ *+' conftest.er1 >conftest.err
2158 cat conftest.err >&5
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); } &&
2161 { ac_try='test -z "$ac_c_werror_flag"
2162 || test ! -s conftest.err'
2163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167 (exit $ac_status); }; } &&
2168 { ac_try='test -s conftest.$ac_objext'
2169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); }; }; then
2174 for ac_declaration in \
2176 'extern "C" void std::exit (int) throw (); using std::exit;' \
2177 'extern "C" void std::exit (int); using std::exit;' \
2178 'extern "C" void exit (int) throw ();' \
2179 'extern "C" void exit (int);' \
2182 cat >conftest.$ac_ext <<_ACEOF
2185 cat confdefs.h >>conftest.$ac_ext
2186 cat >>conftest.$ac_ext <<_ACEOF
2187 /* end confdefs.h. */
2198 rm -f conftest.$ac_objext
2199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2200 (eval $ac_compile) 2>conftest.er1
2202 grep -v '^ *+' conftest.er1 >conftest.err
2204 cat conftest.err >&5
2205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206 (exit $ac_status); } &&
2207 { ac_try='test -z "$ac_c_werror_flag"
2208 || test ! -s conftest.err'
2209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213 (exit $ac_status); }; } &&
2214 { ac_try='test -s conftest.$ac_objext'
2215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); }; }; then
2222 echo "$as_me: failed program was:" >&5
2223 sed 's/^/| /' conftest.$ac_ext >&5
2227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2228 cat >conftest.$ac_ext <<_ACEOF
2231 cat confdefs.h >>conftest.$ac_ext
2232 cat >>conftest.$ac_ext <<_ACEOF
2233 /* end confdefs.h. */
2243 rm -f conftest.$ac_objext
2244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2245 (eval $ac_compile) 2>conftest.er1
2247 grep -v '^ *+' conftest.er1 >conftest.err
2249 cat conftest.err >&5
2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251 (exit $ac_status); } &&
2252 { ac_try='test -z "$ac_c_werror_flag"
2253 || test ! -s conftest.err'
2254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }; } &&
2259 { ac_try='test -s conftest.$ac_objext'
2260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264 (exit $ac_status); }; }; then
2267 echo "$as_me: failed program was:" >&5
2268 sed 's/^/| /' conftest.$ac_ext >&5
2271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2274 if test -n "$ac_declaration"; then
2275 echo '#ifdef __cplusplus' >>confdefs.h
2276 echo $ac_declaration >>confdefs.h
2277 echo '#endif' >>confdefs.h
2281 echo "$as_me: failed program was:" >&5
2282 sed 's/^/| /' conftest.$ac_ext >&5
2285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2287 ac_cpp='$CPP $CPPFLAGS'
2288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2292 # Find a good install program. We prefer a C program (faster),
2293 # so one script is as good as another. But avoid the broken or
2294 # incompatible versions:
2295 # SysV /etc/install, /usr/sbin/install
2296 # SunOS /usr/etc/install
2297 # IRIX /sbin/install
2299 # AmigaOS /C/install, which installs bootblocks on floppy discs
2300 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2301 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2302 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2303 # OS/2's system install, which has a completely different semantic
2304 # ./install, which can be erroneously created by make from ./install.sh.
2305 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2306 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2307 if test -z "$INSTALL"; then
2308 if test "${ac_cv_path_install+set}" = set; then
2309 echo $ECHO_N "(cached) $ECHO_C" >&6
2311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2315 test -z "$as_dir" && as_dir=.
2316 # Account for people who put trailing slashes in PATH elements.
2318 ./ | .// | /cC/* | \
2319 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2320 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2323 # OSF1 and SCO ODT 3.0 have their own names for install.
2324 # Don't use installbsd from OSF since it installs stuff as root
2326 for ac_prog in ginstall scoinst install; do
2327 for ac_exec_ext in '' $ac_executable_extensions; do
2328 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2329 if test $ac_prog = install &&
2330 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2331 # AIX install. It has an incompatible calling convention.
2333 elif test $ac_prog = install &&
2334 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2335 # program-specific install script used by HP pwplus--don't use.
2338 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2350 if test "${ac_cv_path_install+set}" = set; then
2351 INSTALL=$ac_cv_path_install
2353 # As a last resort, use the slow shell script. We don't cache a
2354 # path for INSTALL within a source directory, because that will
2355 # break other packages using the cache if that directory is
2356 # removed, or if the path is relative.
2357 INSTALL=$ac_install_sh
2360 echo "$as_me:$LINENO: result: $INSTALL" >&5
2361 echo "${ECHO_T}$INSTALL" >&6
2363 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2364 # It thinks the first close brace ends the variable substitution.
2365 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2367 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2369 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2372 echo "$as_me:$LINENO: checking for dynamic Apache module support (via APXS)" >&5
2373 echo $ECHO_N "checking for dynamic Apache module support (via APXS)... $ECHO_C" >&6
2375 # Check whether --with-apxs or --without-apxs was given.
2376 if test "${with_apxs+set}" = set; then
2377 withval="$with_apxs"
2379 if test "$withval" = "yes"; then
2387 if test -z "$APXS"; then
2391 if test "$BINNAME" = "" -a "$APXS" = "" -a "$FAIL_STATIC" = ""; then
2392 for i in /usr/sbin /usr/local/apache/bin ; do
2393 if test -f "$i/apxs"; then
2399 if test -n "$APXS"; then
2402 APACHE_VERSION=`\`$APXS -q SBINDIR\`/\`$APXS -q TARGET\` -v \
2403 | grep "Server version" \
2407 major_version=`echo $APACHE_VERSION|cut -f1,2 -d.`
2408 if test "$major_version" = "2.0"; then
2409 APACHE_VERSION_2=true
2410 APACHE_VERSION_1_3=false
2412 APACHE_VERSION_2=false
2413 APACHE_VERSION_1_3=true
2418 echo "$as_me:$LINENO: result: found at $APXS (version $APACHE_VERSION)" >&5
2419 echo "${ECHO_T}found at $APXS (version $APACHE_VERSION)" >&6
2424 echo "$as_me:$LINENO: result: no" >&5
2425 echo "${ECHO_T}no" >&6
2428 echo "$as_me:$LINENO: checking for set-UID/set-GID mode" >&5
2429 echo $ECHO_N "checking for set-UID/set-GID mode... $ECHO_C" >&6
2431 # Check whether --with-setid-mode or --without-setid-mode was given.
2432 if test "${with_setid_mode+set}" = set; then
2433 withval="$with_setid_mode"
2435 if test "$withval" = "yes"; then
2438 SETID_MODE="$withval"
2443 if test -z "$SETID_MODE" ; then
2447 if test -n "$SETID_MODE"; then
2448 case "$SETID_MODE" in
2450 OPT_APACHEMOD_USERGROUP_DEF=""
2453 cat >>confdefs.h <<\_ACEOF
2454 #define OPT_USERGROUP_OWNER 1
2459 OPT_APACHEMOD_USERGROUP_DEF=-DSUPHP_USE_USERGROUP
2462 cat >>confdefs.h <<\_ACEOF
2463 #define OPT_USERGROUP_FORCE 1
2468 OPT_APACHEMOD_USERGROUP_DEF=-DSUPHP_USE_USERGROUP
2471 cat >>confdefs.h <<\_ACEOF
2472 #define OPT_USERGROUP_PARANOID 1
2477 { { echo "$as_me:$LINENO: error: --with-setid-mode has to be set to one of \"owner\", \"force\" or \"paranoid\"" >&5
2478 echo "$as_me: error: --with-setid-mode has to be set to one of \"owner\", \"force\" or \"paranoid\"" >&2;}
2479 { (exit 1); exit 1; }; }
2482 echo "$as_me:$LINENO: result: ok - using $SETID_MODE" >&5
2483 echo "${ECHO_T}ok - using $SETID_MODE" >&6
2487 # Check whether --enable-checkpath or --disable-checkpath was given.
2488 if test "${enable_checkpath+set}" = set; then
2489 enableval="$enable_checkpath"
2491 if test "$enableval" = "no"; then
2494 cat >>confdefs.h <<\_ACEOF
2495 #define OPT_DISABLE_CHECKPATH 1
2503 # Check whether --enable-checkuid or --disable-checkuid was given.
2504 if test "${enable_checkuid+set}" = set; then
2505 enableval="$enable_checkuid"
2507 if test "$enableval" = "no"; then
2510 cat >>confdefs.h <<\_ACEOF
2511 #define OPT_NO_PASSWD 1
2519 # Check whether --enable-checkgid or --disable-checkgid was given.
2520 if test "${enable_checkgid+set}" = set; then
2521 enableval="$enable_checkgid"
2523 if test "$enableval" = "no"; then
2526 cat >>confdefs.h <<\_ACEOF
2527 #define OPT_NO_GROUP 1
2535 # Check whether --with-min-uid or --without-min-uid was given.
2536 if test "${with_min_uid+set}" = set; then
2537 withval="$with_min_uid"
2539 if test "$withval" -a ! "$withval" = "yes" ; then
2541 cat >>confdefs.h <<_ACEOF
2542 #define OPT_MIN_UID $withval
2550 cat >>confdefs.h <<\_ACEOF
2551 #define OPT_MIN_UID 100
2558 # Check whether --with-min-gid or --without-min-gid was given.
2559 if test "${with_min_gid+set}" = set; then
2560 withval="$with_min_gid"
2562 if test "$withval" -a ! "$withval" = "yes" ; then
2564 cat >>confdefs.h <<_ACEOF
2565 #define OPT_MIN_GID $withval
2573 cat >>confdefs.h <<\_ACEOF
2574 #define OPT_MIN_GID 100
2581 # Check whether --with-apache-user or --without-apache-user was given.
2582 if test "${with_apache_user+set}" = set; then
2583 withval="$with_apache_user"
2585 if test "$withval" -a ! "$withval" = "yes" ; then
2587 cat >>confdefs.h <<_ACEOF
2588 #define OPT_APACHE_USER "$withval"
2596 cat >>confdefs.h <<_ACEOF
2597 #define OPT_APACHE_USER "wwwrun"
2604 # Check whether --with-php or --without-php was given.
2605 if test "${with_php+set}" = set; then
2608 if test "$withval" -a ! "$withval" = "yes" ; then
2610 cat >>confdefs.h <<_ACEOF
2611 #define OPT_PATH_TO_PHP "$withval"
2619 cat >>confdefs.h <<_ACEOF
2620 #define OPT_PATH_TO_PHP "/usr/bin/php"
2627 # Check whether --with-logfile or --without-logfile was given.
2628 if test "${with_logfile+set}" = set; then
2629 withval="$with_logfile"
2631 if test "$withval" -a ! "$withval" = "yes" ; then
2633 cat >>confdefs.h <<_ACEOF
2634 #define OPT_LOGFILE "$withval"
2642 cat >>confdefs.h <<_ACEOF
2643 #define OPT_LOGFILE "/var/log/httpd/suphp_log"
2650 # Checks for libraries.
2652 # Checks for header files.
2655 ac_cpp='$CPP $CPPFLAGS'
2656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2659 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2660 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2661 # On Suns, sometimes $CPP names a directory.
2662 if test -n "$CPP" && test -d "$CPP"; then
2665 if test -z "$CPP"; then
2666 if test "${ac_cv_prog_CPP+set}" = set; then
2667 echo $ECHO_N "(cached) $ECHO_C" >&6
2669 # Double quotes because CPP needs to be expanded
2670 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2673 for ac_c_preproc_warn_flag in '' yes
2675 # Use a header file that comes with gcc, so configuring glibc
2676 # with a fresh cross-compiler works.
2677 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2678 # <limits.h> exists even on freestanding compilers.
2679 # On the NeXT, cc -E runs the code through the compiler's parser,
2680 # not just through cpp. "Syntax error" is here to catch this case.
2681 cat >conftest.$ac_ext <<_ACEOF
2684 cat confdefs.h >>conftest.$ac_ext
2685 cat >>conftest.$ac_ext <<_ACEOF
2686 /* end confdefs.h. */
2688 # include <limits.h>
2690 # include <assert.h>
2694 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2695 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2697 grep -v '^ *+' conftest.er1 >conftest.err
2699 cat conftest.err >&5
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); } >/dev/null; then
2702 if test -s conftest.err; then
2703 ac_cpp_err=$ac_c_preproc_warn_flag
2704 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2711 if test -z "$ac_cpp_err"; then
2714 echo "$as_me: failed program was:" >&5
2715 sed 's/^/| /' conftest.$ac_ext >&5
2717 # Broken: fails on valid input.
2720 rm -f conftest.err conftest.$ac_ext
2722 # OK, works on sane cases. Now check whether non-existent headers
2723 # can be detected and how.
2724 cat >conftest.$ac_ext <<_ACEOF
2727 cat confdefs.h >>conftest.$ac_ext
2728 cat >>conftest.$ac_ext <<_ACEOF
2729 /* end confdefs.h. */
2730 #include <ac_nonexistent.h>
2732 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2733 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2735 grep -v '^ *+' conftest.er1 >conftest.err
2737 cat conftest.err >&5
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); } >/dev/null; then
2740 if test -s conftest.err; then
2741 ac_cpp_err=$ac_c_preproc_warn_flag
2742 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2749 if test -z "$ac_cpp_err"; then
2750 # Broken: success on invalid input.
2753 echo "$as_me: failed program was:" >&5
2754 sed 's/^/| /' conftest.$ac_ext >&5
2756 # Passes both tests.
2760 rm -f conftest.err conftest.$ac_ext
2763 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2764 rm -f conftest.err conftest.$ac_ext
2765 if $ac_preproc_ok; then
2777 echo "$as_me:$LINENO: result: $CPP" >&5
2778 echo "${ECHO_T}$CPP" >&6
2780 for ac_c_preproc_warn_flag in '' yes
2782 # Use a header file that comes with gcc, so configuring glibc
2783 # with a fresh cross-compiler works.
2784 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2785 # <limits.h> exists even on freestanding compilers.
2786 # On the NeXT, cc -E runs the code through the compiler's parser,
2787 # not just through cpp. "Syntax error" is here to catch this case.
2788 cat >conftest.$ac_ext <<_ACEOF
2791 cat confdefs.h >>conftest.$ac_ext
2792 cat >>conftest.$ac_ext <<_ACEOF
2793 /* end confdefs.h. */
2795 # include <limits.h>
2797 # include <assert.h>
2801 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2802 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2804 grep -v '^ *+' conftest.er1 >conftest.err
2806 cat conftest.err >&5
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); } >/dev/null; then
2809 if test -s conftest.err; then
2810 ac_cpp_err=$ac_c_preproc_warn_flag
2811 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2818 if test -z "$ac_cpp_err"; then
2821 echo "$as_me: failed program was:" >&5
2822 sed 's/^/| /' conftest.$ac_ext >&5
2824 # Broken: fails on valid input.
2827 rm -f conftest.err conftest.$ac_ext
2829 # OK, works on sane cases. Now check whether non-existent headers
2830 # can be detected and how.
2831 cat >conftest.$ac_ext <<_ACEOF
2834 cat confdefs.h >>conftest.$ac_ext
2835 cat >>conftest.$ac_ext <<_ACEOF
2836 /* end confdefs.h. */
2837 #include <ac_nonexistent.h>
2839 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2840 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2842 grep -v '^ *+' conftest.er1 >conftest.err
2844 cat conftest.err >&5
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); } >/dev/null; then
2847 if test -s conftest.err; then
2848 ac_cpp_err=$ac_c_preproc_warn_flag
2849 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2856 if test -z "$ac_cpp_err"; then
2857 # Broken: success on invalid input.
2860 echo "$as_me: failed program was:" >&5
2861 sed 's/^/| /' conftest.$ac_ext >&5
2863 # Passes both tests.
2867 rm -f conftest.err conftest.$ac_ext
2870 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2871 rm -f conftest.err conftest.$ac_ext
2872 if $ac_preproc_ok; then
2875 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2876 See \`config.log' for more details." >&5
2877 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2878 See \`config.log' for more details." >&2;}
2879 { (exit 1); exit 1; }; }
2883 ac_cpp='$CPP $CPPFLAGS'
2884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2889 echo "$as_me:$LINENO: checking for egrep" >&5
2890 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2891 if test "${ac_cv_prog_egrep+set}" = set; then
2892 echo $ECHO_N "(cached) $ECHO_C" >&6
2894 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2895 then ac_cv_prog_egrep='grep -E'
2896 else ac_cv_prog_egrep='egrep'
2899 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2900 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2901 EGREP=$ac_cv_prog_egrep
2904 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2905 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2906 if test "${ac_cv_header_stdc+set}" = set; then
2907 echo $ECHO_N "(cached) $ECHO_C" >&6
2909 cat >conftest.$ac_ext <<_ACEOF
2912 cat confdefs.h >>conftest.$ac_ext
2913 cat >>conftest.$ac_ext <<_ACEOF
2914 /* end confdefs.h. */
2928 rm -f conftest.$ac_objext
2929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2930 (eval $ac_compile) 2>conftest.er1
2932 grep -v '^ *+' conftest.er1 >conftest.err
2934 cat conftest.err >&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); } &&
2937 { ac_try='test -z "$ac_c_werror_flag"
2938 || test ! -s conftest.err'
2939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); }; } &&
2944 { ac_try='test -s conftest.$ac_objext'
2945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); }; }; then
2950 ac_cv_header_stdc=yes
2952 echo "$as_me: failed program was:" >&5
2953 sed 's/^/| /' conftest.$ac_ext >&5
2955 ac_cv_header_stdc=no
2957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2959 if test $ac_cv_header_stdc = yes; then
2960 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2961 cat >conftest.$ac_ext <<_ACEOF
2964 cat confdefs.h >>conftest.$ac_ext
2965 cat >>conftest.$ac_ext <<_ACEOF
2966 /* end confdefs.h. */
2970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2971 $EGREP "memchr" >/dev/null 2>&1; then
2974 ac_cv_header_stdc=no
2980 if test $ac_cv_header_stdc = yes; then
2981 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2982 cat >conftest.$ac_ext <<_ACEOF
2985 cat confdefs.h >>conftest.$ac_ext
2986 cat >>conftest.$ac_ext <<_ACEOF
2987 /* end confdefs.h. */
2991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2992 $EGREP "free" >/dev/null 2>&1; then
2995 ac_cv_header_stdc=no
3001 if test $ac_cv_header_stdc = yes; then
3002 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3003 if test "$cross_compiling" = yes; then
3006 cat >conftest.$ac_ext <<_ACEOF
3009 cat confdefs.h >>conftest.$ac_ext
3010 cat >>conftest.$ac_ext <<_ACEOF
3011 /* end confdefs.h. */
3013 #if ((' ' & 0x0FF) == 0x020)
3014 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3015 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3017 # define ISLOWER(c) \
3018 (('a' <= (c) && (c) <= 'i') \
3019 || ('j' <= (c) && (c) <= 'r') \
3020 || ('s' <= (c) && (c) <= 'z'))
3021 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3024 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3029 for (i = 0; i < 256; i++)
3030 if (XOR (islower (i), ISLOWER (i))
3031 || toupper (i) != TOUPPER (i))
3036 rm -f conftest$ac_exeext
3037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3038 (eval $ac_link) 2>&5
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); }; }; then
3049 echo "$as_me: program exited with status $ac_status" >&5
3050 echo "$as_me: failed program was:" >&5
3051 sed 's/^/| /' conftest.$ac_ext >&5
3054 ac_cv_header_stdc=no
3056 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3060 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3061 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3062 if test $ac_cv_header_stdc = yes; then
3064 cat >>confdefs.h <<\_ACEOF
3065 #define STDC_HEADERS 1
3070 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3080 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3081 inttypes.h stdint.h unistd.h
3083 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3084 echo "$as_me:$LINENO: checking for $ac_header" >&5
3085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3087 echo $ECHO_N "(cached) $ECHO_C" >&6
3089 cat >conftest.$ac_ext <<_ACEOF
3092 cat confdefs.h >>conftest.$ac_ext
3093 cat >>conftest.$ac_ext <<_ACEOF
3094 /* end confdefs.h. */
3095 $ac_includes_default
3097 #include <$ac_header>
3099 rm -f conftest.$ac_objext
3100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3101 (eval $ac_compile) 2>conftest.er1
3103 grep -v '^ *+' conftest.er1 >conftest.err
3105 cat conftest.err >&5
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); } &&
3108 { ac_try='test -z "$ac_c_werror_flag"
3109 || test ! -s conftest.err'
3110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); }; } &&
3115 { ac_try='test -s conftest.$ac_objext'
3116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120 (exit $ac_status); }; }; then
3121 eval "$as_ac_Header=yes"
3123 echo "$as_me: failed program was:" >&5
3124 sed 's/^/| /' conftest.$ac_ext >&5
3126 eval "$as_ac_Header=no"
3128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3130 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3131 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3132 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3133 cat >>confdefs.h <<_ACEOF
3134 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3146 for ac_header in fcntl.h stdlib.h string.h unistd.h
3148 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3150 echo "$as_me:$LINENO: checking for $ac_header" >&5
3151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3152 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3153 echo $ECHO_N "(cached) $ECHO_C" >&6
3155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3156 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3158 # Is the header compilable?
3159 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3160 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3161 cat >conftest.$ac_ext <<_ACEOF
3164 cat confdefs.h >>conftest.$ac_ext
3165 cat >>conftest.$ac_ext <<_ACEOF
3166 /* end confdefs.h. */
3167 $ac_includes_default
3168 #include <$ac_header>
3170 rm -f conftest.$ac_objext
3171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3172 (eval $ac_compile) 2>conftest.er1
3174 grep -v '^ *+' conftest.er1 >conftest.err
3176 cat conftest.err >&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); } &&
3179 { ac_try='test -z "$ac_c_werror_flag"
3180 || test ! -s conftest.err'
3181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); }; } &&
3186 { ac_try='test -s conftest.$ac_objext'
3187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); }; }; then
3192 ac_header_compiler=yes
3194 echo "$as_me: failed program was:" >&5
3195 sed 's/^/| /' conftest.$ac_ext >&5
3197 ac_header_compiler=no
3199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3200 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3201 echo "${ECHO_T}$ac_header_compiler" >&6
3203 # Is the header present?
3204 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3205 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3206 cat >conftest.$ac_ext <<_ACEOF
3209 cat confdefs.h >>conftest.$ac_ext
3210 cat >>conftest.$ac_ext <<_ACEOF
3211 /* end confdefs.h. */
3212 #include <$ac_header>
3214 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3215 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3217 grep -v '^ *+' conftest.er1 >conftest.err
3219 cat conftest.err >&5
3220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221 (exit $ac_status); } >/dev/null; then
3222 if test -s conftest.err; then
3223 ac_cpp_err=$ac_c_preproc_warn_flag
3224 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3231 if test -z "$ac_cpp_err"; then
3232 ac_header_preproc=yes
3234 echo "$as_me: failed program was:" >&5
3235 sed 's/^/| /' conftest.$ac_ext >&5
3237 ac_header_preproc=no
3239 rm -f conftest.err conftest.$ac_ext
3240 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3241 echo "${ECHO_T}$ac_header_preproc" >&6
3243 # So? What about this header?
3244 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3246 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3247 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3248 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3249 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3250 ac_header_preproc=yes
3253 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3254 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3255 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3256 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3257 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3258 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3259 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3260 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3262 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3263 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3264 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3267 ## -------------------------------------------- ##
3268 ## Report this to sebastian.marsching@suphp.org ##
3269 ## -------------------------------------------- ##
3272 sed "s/^/$as_me: WARNING: /" >&2
3275 echo "$as_me:$LINENO: checking for $ac_header" >&5
3276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3277 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3278 echo $ECHO_N "(cached) $ECHO_C" >&6
3280 eval "$as_ac_Header=\$ac_header_preproc"
3282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3283 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3286 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3287 cat >>confdefs.h <<_ACEOF
3288 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3296 # Checks for typedefs, structures, and compiler characteristics.
3297 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3298 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3299 if test "${ac_cv_c_const+set}" = set; then
3300 echo $ECHO_N "(cached) $ECHO_C" >&6
3302 cat >conftest.$ac_ext <<_ACEOF
3305 cat confdefs.h >>conftest.$ac_ext
3306 cat >>conftest.$ac_ext <<_ACEOF
3307 /* end confdefs.h. */
3312 /* FIXME: Include the comments suggested by Paul. */
3314 /* Ultrix mips cc rejects this. */
3315 typedef int charset[2];
3317 /* SunOS 4.1.1 cc rejects this. */
3318 char const *const *ccp;
3320 /* NEC SVR4.0.2 mips cc rejects this. */
3321 struct point {int x, y;};
3322 static struct point const zero = {0,0};
3323 /* AIX XL C 1.02.0.0 rejects this.
3324 It does not let you subtract one const X* pointer from another in
3325 an arm of an if-expression whose if-part is not a constant
3327 const char *g = "string";
3328 ccp = &g + (g ? g-g : 0);
3329 /* HPUX 7.0 cc rejects these. */
3332 ccp = (char const *const *) p;
3333 { /* SCO 3.2v4 cc rejects this. */
3335 char const *s = 0 ? (char *) 0 : (char const *) 0;
3339 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3341 const int *foo = &x[0];
3344 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3345 typedef const int *iptr;
3349 { /* AIX XL C 1.02.0.0 rejects this saying
3350 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3351 struct s { int j; const int *ap[3]; };
3352 struct s *b; b->j = 5;
3354 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3363 rm -f conftest.$ac_objext
3364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3365 (eval $ac_compile) 2>conftest.er1
3367 grep -v '^ *+' conftest.er1 >conftest.err
3369 cat conftest.err >&5
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); } &&
3372 { ac_try='test -z "$ac_c_werror_flag"
3373 || test ! -s conftest.err'
3374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); }; } &&
3379 { ac_try='test -s conftest.$ac_objext'
3380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); }; }; then
3387 echo "$as_me: failed program was:" >&5
3388 sed 's/^/| /' conftest.$ac_ext >&5
3392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3394 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3395 echo "${ECHO_T}$ac_cv_c_const" >&6
3396 if test $ac_cv_c_const = no; then
3398 cat >>confdefs.h <<\_ACEOF
3404 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
3405 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
3406 if test "${ac_cv_type_uid_t+set}" = set; then
3407 echo $ECHO_N "(cached) $ECHO_C" >&6
3409 cat >conftest.$ac_ext <<_ACEOF
3412 cat confdefs.h >>conftest.$ac_ext
3413 cat >>conftest.$ac_ext <<_ACEOF
3414 /* end confdefs.h. */
3415 #include <sys/types.h>
3418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3419 $EGREP "uid_t" >/dev/null 2>&1; then
3420 ac_cv_type_uid_t=yes
3427 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
3428 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
3429 if test $ac_cv_type_uid_t = no; then
3431 cat >>confdefs.h <<\_ACEOF
3436 cat >>confdefs.h <<\_ACEOF
3442 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
3443 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
3444 if test "${ac_cv_struct_tm+set}" = set; then
3445 echo $ECHO_N "(cached) $ECHO_C" >&6
3447 cat >conftest.$ac_ext <<_ACEOF
3450 cat confdefs.h >>conftest.$ac_ext
3451 cat >>conftest.$ac_ext <<_ACEOF
3452 /* end confdefs.h. */
3453 #include <sys/types.h>
3459 struct tm *tp; tp->tm_sec;
3464 rm -f conftest.$ac_objext
3465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3466 (eval $ac_compile) 2>conftest.er1
3468 grep -v '^ *+' conftest.er1 >conftest.err
3470 cat conftest.err >&5
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); } &&
3473 { ac_try='test -z "$ac_c_werror_flag"
3474 || test ! -s conftest.err'
3475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); }; } &&
3480 { ac_try='test -s conftest.$ac_objext'
3481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); }; }; then
3486 ac_cv_struct_tm=time.h
3488 echo "$as_me: failed program was:" >&5
3489 sed 's/^/| /' conftest.$ac_ext >&5
3491 ac_cv_struct_tm=sys/time.h
3493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3495 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
3496 echo "${ECHO_T}$ac_cv_struct_tm" >&6
3497 if test $ac_cv_struct_tm = sys/time.h; then
3499 cat >>confdefs.h <<\_ACEOF
3500 #define TM_IN_SYS_TIME 1
3506 # Checks for library functions.
3507 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
3508 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
3509 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
3510 echo $ECHO_N "(cached) $ECHO_C" >&6
3512 rm -f conftest.sym conftest.file
3514 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
3515 if test "$cross_compiling" = yes; then
3516 ac_cv_func_lstat_dereferences_slashed_symlink=no
3518 cat >conftest.$ac_ext <<_ACEOF
3521 cat confdefs.h >>conftest.$ac_ext
3522 cat >>conftest.$ac_ext <<_ACEOF
3523 /* end confdefs.h. */
3524 $ac_includes_default
3529 /* Linux will dereference the symlink and fail.
3530 That is better in the sense that it means we will not
3531 have to compile and use the lstat wrapper. */
3532 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
3537 rm -f conftest$ac_exeext
3538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3539 (eval $ac_link) 2>&5
3541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547 (exit $ac_status); }; }; then
3548 ac_cv_func_lstat_dereferences_slashed_symlink=yes
3550 echo "$as_me: program exited with status $ac_status" >&5
3551 echo "$as_me: failed program was:" >&5
3552 sed 's/^/| /' conftest.$ac_ext >&5
3555 ac_cv_func_lstat_dereferences_slashed_symlink=no
3557 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3560 # If the `ln -s' command failed, then we probably don't even
3561 # have an lstat function.
3562 ac_cv_func_lstat_dereferences_slashed_symlink=no
3564 rm -f conftest.sym conftest.file
3567 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
3568 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
3570 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
3572 cat >>confdefs.h <<_ACEOF
3573 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
3577 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
3579 "lstat.$ac_objext" | \
3580 *" lstat.$ac_objext" | \
3581 "lstat.$ac_objext "* | \
3582 *" lstat.$ac_objext "* ) ;;
3583 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
3588 echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
3589 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
3590 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
3591 echo $ECHO_N "(cached) $ECHO_C" >&6
3593 if test "$cross_compiling" = yes; then
3594 ac_cv_func_lstat_empty_string_bug=yes
3596 cat >conftest.$ac_ext <<_ACEOF
3599 cat confdefs.h >>conftest.$ac_ext
3600 cat >>conftest.$ac_ext <<_ACEOF
3601 /* end confdefs.h. */
3602 $ac_includes_default
3607 exit (lstat ("", &sbuf) ? 1 : 0);
3612 rm -f conftest$ac_exeext
3613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3614 (eval $ac_link) 2>&5
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); }; }; then
3623 ac_cv_func_lstat_empty_string_bug=yes
3625 echo "$as_me: program exited with status $ac_status" >&5
3626 echo "$as_me: failed program was:" >&5
3627 sed 's/^/| /' conftest.$ac_ext >&5
3630 ac_cv_func_lstat_empty_string_bug=no
3632 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3635 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
3636 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
3637 if test $ac_cv_func_lstat_empty_string_bug = yes; then
3639 "lstat.$ac_objext" | \
3640 *" lstat.$ac_objext" | \
3641 "lstat.$ac_objext "* | \
3642 *" lstat.$ac_objext "* ) ;;
3643 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
3647 cat >>confdefs.h <<_ACEOF
3648 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
3654 for ac_header in stdlib.h
3656 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3658 echo "$as_me:$LINENO: checking for $ac_header" >&5
3659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3661 echo $ECHO_N "(cached) $ECHO_C" >&6
3663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3664 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3666 # Is the header compilable?
3667 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3668 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3669 cat >conftest.$ac_ext <<_ACEOF
3672 cat confdefs.h >>conftest.$ac_ext
3673 cat >>conftest.$ac_ext <<_ACEOF
3674 /* end confdefs.h. */
3675 $ac_includes_default
3676 #include <$ac_header>
3678 rm -f conftest.$ac_objext
3679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3680 (eval $ac_compile) 2>conftest.er1
3682 grep -v '^ *+' conftest.er1 >conftest.err
3684 cat conftest.err >&5
3685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686 (exit $ac_status); } &&
3687 { ac_try='test -z "$ac_c_werror_flag"
3688 || test ! -s conftest.err'
3689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); }; } &&
3694 { ac_try='test -s conftest.$ac_objext'
3695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); }; }; then
3700 ac_header_compiler=yes
3702 echo "$as_me: failed program was:" >&5
3703 sed 's/^/| /' conftest.$ac_ext >&5
3705 ac_header_compiler=no
3707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3708 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3709 echo "${ECHO_T}$ac_header_compiler" >&6
3711 # Is the header present?
3712 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3713 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3714 cat >conftest.$ac_ext <<_ACEOF
3717 cat confdefs.h >>conftest.$ac_ext
3718 cat >>conftest.$ac_ext <<_ACEOF
3719 /* end confdefs.h. */
3720 #include <$ac_header>
3722 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3723 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3725 grep -v '^ *+' conftest.er1 >conftest.err
3727 cat conftest.err >&5
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); } >/dev/null; then
3730 if test -s conftest.err; then
3731 ac_cpp_err=$ac_c_preproc_warn_flag
3732 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3739 if test -z "$ac_cpp_err"; then
3740 ac_header_preproc=yes
3742 echo "$as_me: failed program was:" >&5
3743 sed 's/^/| /' conftest.$ac_ext >&5
3745 ac_header_preproc=no
3747 rm -f conftest.err conftest.$ac_ext
3748 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3749 echo "${ECHO_T}$ac_header_preproc" >&6
3751 # So? What about this header?
3752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3754 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3755 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3757 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3758 ac_header_preproc=yes
3761 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3762 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3763 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3764 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3765 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3766 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3767 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3768 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3770 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3771 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3772 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3775 ## -------------------------------------------- ##
3776 ## Report this to sebastian.marsching@suphp.org ##
3777 ## -------------------------------------------- ##
3780 sed "s/^/$as_me: WARNING: /" >&2
3783 echo "$as_me:$LINENO: checking for $ac_header" >&5
3784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3786 echo $ECHO_N "(cached) $ECHO_C" >&6
3788 eval "$as_ac_Header=\$ac_header_preproc"
3790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3791 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3794 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3795 cat >>confdefs.h <<_ACEOF
3796 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3803 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
3804 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
3805 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
3806 echo $ECHO_N "(cached) $ECHO_C" >&6
3808 if test "$cross_compiling" = yes; then
3809 ac_cv_func_malloc_0_nonnull=no
3811 cat >conftest.$ac_ext <<_ACEOF
3814 cat confdefs.h >>conftest.$ac_ext
3815 cat >>conftest.$ac_ext <<_ACEOF
3816 /* end confdefs.h. */
3817 #if STDC_HEADERS || HAVE_STDLIB_H
3818 # include <stdlib.h>
3826 exit (malloc (0) ? 0 : 1);
3831 rm -f conftest$ac_exeext
3832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3833 (eval $ac_link) 2>&5
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841 (exit $ac_status); }; }; then
3842 ac_cv_func_malloc_0_nonnull=yes
3844 echo "$as_me: program exited with status $ac_status" >&5
3845 echo "$as_me: failed program was:" >&5
3846 sed 's/^/| /' conftest.$ac_ext >&5
3849 ac_cv_func_malloc_0_nonnull=no
3851 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3854 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
3855 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
3856 if test $ac_cv_func_malloc_0_nonnull = yes; then
3858 cat >>confdefs.h <<\_ACEOF
3859 #define HAVE_MALLOC 1
3863 cat >>confdefs.h <<\_ACEOF
3864 #define HAVE_MALLOC 0
3868 "malloc.$ac_objext" | \
3869 *" malloc.$ac_objext" | \
3870 "malloc.$ac_objext "* | \
3871 *" malloc.$ac_objext "* ) ;;
3872 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
3876 cat >>confdefs.h <<\_ACEOF
3877 #define malloc rpl_malloc
3884 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
3885 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
3886 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
3887 echo $ECHO_N "(cached) $ECHO_C" >&6
3889 if test "$cross_compiling" = yes; then
3890 ac_cv_func_stat_empty_string_bug=yes
3892 cat >conftest.$ac_ext <<_ACEOF
3895 cat confdefs.h >>conftest.$ac_ext
3896 cat >>conftest.$ac_ext <<_ACEOF
3897 /* end confdefs.h. */
3898 $ac_includes_default
3903 exit (stat ("", &sbuf) ? 1 : 0);
3908 rm -f conftest$ac_exeext
3909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3910 (eval $ac_link) 2>&5
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918 (exit $ac_status); }; }; then
3919 ac_cv_func_stat_empty_string_bug=yes
3921 echo "$as_me: program exited with status $ac_status" >&5
3922 echo "$as_me: failed program was:" >&5
3923 sed 's/^/| /' conftest.$ac_ext >&5
3926 ac_cv_func_stat_empty_string_bug=no
3928 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3931 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
3932 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
3933 if test $ac_cv_func_stat_empty_string_bug = yes; then
3935 "stat.$ac_objext" | \
3936 *" stat.$ac_objext" | \
3937 "stat.$ac_objext "* | \
3938 *" stat.$ac_objext "* ) ;;
3939 *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
3943 cat >>confdefs.h <<_ACEOF
3944 #define HAVE_STAT_EMPTY_STRING_BUG 1
3950 for ac_func in strftime
3952 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3953 echo "$as_me:$LINENO: checking for $ac_func" >&5
3954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3955 if eval "test \"\${$as_ac_var+set}\" = set"; then
3956 echo $ECHO_N "(cached) $ECHO_C" >&6
3958 cat >conftest.$ac_ext <<_ACEOF
3961 cat confdefs.h >>conftest.$ac_ext
3962 cat >>conftest.$ac_ext <<_ACEOF
3963 /* end confdefs.h. */
3964 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3966 #define $ac_func innocuous_$ac_func
3968 /* System header to define __stub macros and hopefully few prototypes,
3969 which can conflict with char $ac_func (); below.
3970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3971 <limits.h> exists even on freestanding compilers. */
3974 # include <limits.h>
3976 # include <assert.h>
3981 /* Override any gcc2 internal prototype to avoid an error. */
3986 /* We use char because int might match the return type of a gcc2
3987 builtin and then its argument prototype would still apply. */
3989 /* The GNU C library defines this for functions which it implements
3990 to always fail with ENOSYS. Some functions are actually named
3991 something starting with __ and the normal name is an alias. */
3992 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3995 char (*f) () = $ac_func;
4004 return f != $ac_func;
4009 rm -f conftest.$ac_objext conftest$ac_exeext
4010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4011 (eval $ac_link) 2>conftest.er1
4013 grep -v '^ *+' conftest.er1 >conftest.err
4015 cat conftest.err >&5
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); } &&
4018 { ac_try='test -z "$ac_c_werror_flag"
4019 || test ! -s conftest.err'
4020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); }; } &&
4025 { ac_try='test -s conftest$ac_exeext'
4026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); }; }; then
4031 eval "$as_ac_var=yes"
4033 echo "$as_me: failed program was:" >&5
4034 sed 's/^/| /' conftest.$ac_ext >&5
4036 eval "$as_ac_var=no"
4038 rm -f conftest.err conftest.$ac_objext \
4039 conftest$ac_exeext conftest.$ac_ext
4041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4042 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4043 if test `eval echo '${'$as_ac_var'}'` = yes; then
4044 cat >>confdefs.h <<_ACEOF
4045 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4049 # strftime is in -lintl on SCO UNIX.
4050 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
4051 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
4052 if test "${ac_cv_lib_intl_strftime+set}" = set; then
4053 echo $ECHO_N "(cached) $ECHO_C" >&6
4055 ac_check_lib_save_LIBS=$LIBS
4057 cat >conftest.$ac_ext <<_ACEOF
4060 cat confdefs.h >>conftest.$ac_ext
4061 cat >>conftest.$ac_ext <<_ACEOF
4062 /* end confdefs.h. */
4064 /* Override any gcc2 internal prototype to avoid an error. */
4068 /* We use char because int might match the return type of a gcc2
4069 builtin and then its argument prototype would still apply. */
4079 rm -f conftest.$ac_objext conftest$ac_exeext
4080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4081 (eval $ac_link) 2>conftest.er1
4083 grep -v '^ *+' conftest.er1 >conftest.err
4085 cat conftest.err >&5
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); } &&
4088 { ac_try='test -z "$ac_c_werror_flag"
4089 || test ! -s conftest.err'
4090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); }; } &&
4095 { ac_try='test -s conftest$ac_exeext'
4096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); }; }; then
4101 ac_cv_lib_intl_strftime=yes
4103 echo "$as_me: failed program was:" >&5
4104 sed 's/^/| /' conftest.$ac_ext >&5
4106 ac_cv_lib_intl_strftime=no
4108 rm -f conftest.err conftest.$ac_objext \
4109 conftest$ac_exeext conftest.$ac_ext
4110 LIBS=$ac_check_lib_save_LIBS
4112 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
4113 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
4114 if test $ac_cv_lib_intl_strftime = yes; then
4115 cat >>confdefs.h <<\_ACEOF
4116 #define HAVE_STRFTIME 1
4129 for ac_func in setenv strcasecmp strdup strrchr
4131 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4132 echo "$as_me:$LINENO: checking for $ac_func" >&5
4133 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4134 if eval "test \"\${$as_ac_var+set}\" = set"; then
4135 echo $ECHO_N "(cached) $ECHO_C" >&6
4137 cat >conftest.$ac_ext <<_ACEOF
4140 cat confdefs.h >>conftest.$ac_ext
4141 cat >>conftest.$ac_ext <<_ACEOF
4142 /* end confdefs.h. */
4143 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4145 #define $ac_func innocuous_$ac_func
4147 /* System header to define __stub macros and hopefully few prototypes,
4148 which can conflict with char $ac_func (); below.
4149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4150 <limits.h> exists even on freestanding compilers. */
4153 # include <limits.h>
4155 # include <assert.h>
4160 /* Override any gcc2 internal prototype to avoid an error. */
4165 /* We use char because int might match the return type of a gcc2
4166 builtin and then its argument prototype would still apply. */
4168 /* The GNU C library defines this for functions which it implements
4169 to always fail with ENOSYS. Some functions are actually named
4170 something starting with __ and the normal name is an alias. */
4171 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4174 char (*f) () = $ac_func;
4183 return f != $ac_func;
4188 rm -f conftest.$ac_objext conftest$ac_exeext
4189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4190 (eval $ac_link) 2>conftest.er1
4192 grep -v '^ *+' conftest.er1 >conftest.err
4194 cat conftest.err >&5
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); } &&
4197 { ac_try='test -z "$ac_c_werror_flag"
4198 || test ! -s conftest.err'
4199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); }; } &&
4204 { ac_try='test -s conftest$ac_exeext'
4205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209 (exit $ac_status); }; }; then
4210 eval "$as_ac_var=yes"
4212 echo "$as_me: failed program was:" >&5
4213 sed 's/^/| /' conftest.$ac_ext >&5
4215 eval "$as_ac_var=no"
4217 rm -f conftest.err conftest.$ac_objext \
4218 conftest$ac_exeext conftest.$ac_ext
4220 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4221 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4222 if test `eval echo '${'$as_ac_var'}'` = yes; then
4223 cat >>confdefs.h <<_ACEOF
4224 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4231 ac_config_files="$ac_config_files Makefile src/Makefile src/apache/Makefile src/apache2/Makefile"
4233 cat >confcache <<\_ACEOF
4234 # This file is a shell script that caches the results of configure
4235 # tests run on this system so they can be shared between configure
4236 # scripts and configure runs, see configure's option --config-cache.
4237 # It is not useful on other systems. If it contains results you don't
4238 # want to keep, you may remove or edit it.
4240 # config.status only pays attention to the cache file if you give it
4241 # the --recheck option to rerun configure.
4243 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4244 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4249 # The following way of writing the cache mishandles newlines in values,
4250 # but we know of no workaround that is simple, portable, and efficient.
4251 # So, don't put newlines in cache variables' values.
4252 # Ultrix sh set writes to stderr and can't be redirected directly,
4253 # and sets the high bit in the cache file unless we assign to the vars.
4256 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4258 # `set' does not quote correctly, so add quotes (double-quote
4259 # substitution turns \\\\ into \\, and sed turns \\ into \).
4262 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4265 # `set' quotes correctly as required by POSIX, so do not add quotes.
4267 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4274 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4276 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4278 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4279 if test -w $cache_file; then
4280 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4281 cat confcache >$cache_file
4283 echo "not updating unwritable cache $cache_file"
4288 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4289 # Let make expand exec_prefix.
4290 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4292 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4293 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4294 # trailing colons and then remove the whole line if VPATH becomes empty
4295 # (actually we leave an empty line to preserve line numbers).
4296 if test "x$srcdir" = x.; then
4297 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4298 s/:*\$(srcdir):*/:/;
4299 s/:*\${srcdir}:*/:/;
4301 s/^\([^=]*=[ ]*\):*/\1/;
4307 DEFS=-DHAVE_CONFIG_H
4311 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4312 # 1. Remove the extension, and $U if already installed.
4313 ac_i=`echo "$ac_i" |
4314 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4316 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4317 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4321 LTLIBOBJS=$ac_ltlibobjs
4325 : ${CONFIG_STATUS=./config.status}
4326 ac_clean_files_save=$ac_clean_files
4327 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4328 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4329 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4330 cat >$CONFIG_STATUS <<_ACEOF
4332 # Generated by $as_me.
4333 # Run this file to recreate the current configuration.
4334 # Compiler output produced by configure, useful for debugging
4335 # configure, is in config.log if it exists.
4340 SHELL=\${CONFIG_SHELL-$SHELL}
4343 cat >>$CONFIG_STATUS <<\_ACEOF
4344 ## --------------------- ##
4345 ## M4sh Initialization. ##
4346 ## --------------------- ##
4348 # Be Bourne compatible
4349 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4352 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4353 # is contrary to our usage. Disable this feature.
4354 alias -g '${1+"$@"}'='"$@"'
4355 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4358 DUALCASE=1; export DUALCASE # for MKS sh
4360 # Support unset when possible.
4361 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4368 # Work around bugs in pre-3.0 UWIN ksh.
4369 $as_unset ENV MAIL MAILPATH
4376 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4377 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4378 LC_TELEPHONE LC_TIME
4380 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4381 eval $as_var=C; export $as_var
4387 # Required to use basename.
4388 if expr a : '\(a\)' >/dev/null 2>&1; then
4394 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4395 as_basename=basename
4401 # Name of the executable.
4402 as_me=`$as_basename "$0" ||
4403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4404 X"$0" : 'X\(//\)$' \| \
4405 X"$0" : 'X\(/\)$' \| \
4406 . : '\(.\)' 2>/dev/null ||
4408 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4409 /^X\/\(\/\/\)$/{ s//\1/; q; }
4410 /^X\/\(\/\).*/{ s//\1/; q; }
4414 # PATH needs CR, and LINENO needs CR and PATH.
4415 # Avoid depending upon Character Ranges.
4416 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4417 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4418 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4419 as_cr_digits='0123456789'
4420 as_cr_alnum=$as_cr_Letters$as_cr_digits
4422 # The user is always right.
4423 if test "${PATH_SEPARATOR+set}" != set; then
4424 echo "#! /bin/sh" >conf$$.sh
4425 echo "exit 0" >>conf$$.sh
4427 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4438 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4439 test "x$as_lineno_1" != "x$as_lineno_2" &&
4440 test "x$as_lineno_3" = "x$as_lineno_2" || {
4441 # Find who we are. Look in the path if we contain no path at all
4444 *[\\/]* ) as_myself=$0 ;;
4445 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449 test -z "$as_dir" && as_dir=.
4450 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4455 # We did not find ourselves, most probably we were run as `sh COMMAND'
4456 # in which case we are not to be found in the path.
4457 if test "x$as_myself" = x; then
4460 if test ! -f "$as_myself"; then
4461 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4462 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4463 { (exit 1); exit 1; }; }
4465 case $CONFIG_SHELL in
4467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4468 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4471 test -z "$as_dir" && as_dir=.
4472 for as_base in sh bash ksh sh5; do
4475 if ("$as_dir/$as_base" -c '
4478 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4479 test "x$as_lineno_1" != "x$as_lineno_2" &&
4480 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4481 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4482 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4483 CONFIG_SHELL=$as_dir/$as_base
4485 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4493 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4494 # uniformly replaced by the line number. The first 'sed' inserts a
4495 # line-number line before each line; the second 'sed' does the real
4496 # work. The second script uses 'N' to pair each line-number line
4497 # with the numbered line, and appends trailing '-' during
4498 # substitution so that $LINENO is not a special case at line end.
4499 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4500 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4501 sed '=' <$as_myself |
4506 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4509 s,^['$as_cr_digits']*\n,,
4511 chmod +x $as_me.lineno ||
4512 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4513 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4514 { (exit 1); exit 1; }; }
4516 # Don't try to exec as it changes $[0], causing all sort of problems
4517 # (the dirname of $[0] is not the place where we might find the
4518 # original and so on. Autoconf is especially sensible to this).
4520 # Exit status is that of the last command.
4525 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4526 *c*,-n*) ECHO_N= ECHO_C='
4528 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4529 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4532 if expr a : '\(a\)' >/dev/null 2>&1; then
4538 rm -f conf$$ conf$$.exe conf$$.file
4540 if ln -s conf$$.file conf$$ 2>/dev/null; then
4541 # We could just check for DJGPP; but this test a) works b) is more generic
4542 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4543 if test -f conf$$.exe; then
4544 # Don't use ln at all; we don't have any links
4549 elif ln conf$$.file conf$$ 2>/dev/null; then
4554 rm -f conf$$ conf$$.exe conf$$.file
4556 if mkdir -p . 2>/dev/null; then
4559 test -d ./-p && rmdir ./-p
4563 as_executable_p="test -f"
4565 # Sed expression to map a string onto a valid CPP name.
4566 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4568 # Sed expression to map a string onto a valid variable name.
4569 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4573 # We need space, tab and new line, in precisely that order.
4583 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4584 # report actual input values of CONFIG_FILES etc. instead of their
4585 # values after options handling. Logging --version etc. is OK.
4589 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4590 ## Running $as_me. ##
4595 This file was extended by suphp $as_me 0.5.2, which was
4596 generated by GNU Autoconf 2.59. Invocation command line was
4598 CONFIG_FILES = $CONFIG_FILES
4599 CONFIG_HEADERS = $CONFIG_HEADERS
4600 CONFIG_LINKS = $CONFIG_LINKS
4601 CONFIG_COMMANDS = $CONFIG_COMMANDS
4605 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4609 # Files that config.status was made for.
4610 if test -n "$ac_config_files"; then
4611 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4614 if test -n "$ac_config_headers"; then
4615 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4618 if test -n "$ac_config_links"; then
4619 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4622 if test -n "$ac_config_commands"; then
4623 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4626 cat >>$CONFIG_STATUS <<\_ACEOF
4629 \`$as_me' instantiates files from templates according to the
4630 current configuration.
4632 Usage: $0 [OPTIONS] [FILE]...
4634 -h, --help print this help, then exit
4635 -V, --version print version number, then exit
4636 -q, --quiet do not print progress messages
4637 -d, --debug don't remove temporary files
4638 --recheck update $as_me by reconfiguring in the same conditions
4639 --file=FILE[:TEMPLATE]
4640 instantiate the configuration file FILE
4641 --header=FILE[:TEMPLATE]
4642 instantiate the configuration header FILE
4644 Configuration files:
4647 Configuration headers:
4650 Report bugs to <bug-autoconf@gnu.org>."
4653 cat >>$CONFIG_STATUS <<_ACEOF
4655 suphp config.status 0.5.2
4656 configured by $0, generated by GNU Autoconf 2.59,
4657 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4659 Copyright (C) 2003 Free Software Foundation, Inc.
4660 This config.status script is free software; the Free Software Foundation
4661 gives unlimited permission to copy, distribute and modify it."
4666 cat >>$CONFIG_STATUS <<\_ACEOF
4667 # If no file are specified by the user, then we need to provide default
4668 # value. By we need to know if files were specified by the user.
4674 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4675 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4683 *) # This is not an option, so the user has probably given explicit
4686 ac_need_defaults=false;;
4690 # Handling of the options.
4692 cat >>$CONFIG_STATUS <<\_ACEOF
4693 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4695 --version | --vers* | -V )
4696 echo "$ac_cs_version"; exit 0 ;;
4698 # Conflict between --help and --header
4699 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4700 Try \`$0 --help' for more information." >&5
4701 echo "$as_me: error: ambiguous option: $1
4702 Try \`$0 --help' for more information." >&2;}
4703 { (exit 1); exit 1; }; };;
4704 --help | --hel | -h )
4705 echo "$ac_cs_usage"; exit 0 ;;
4706 --debug | --d* | -d )
4708 --file | --fil | --fi | --f )
4710 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4711 ac_need_defaults=false;;
4712 --header | --heade | --head | --hea )
4714 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4715 ac_need_defaults=false;;
4716 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4717 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4721 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4722 Try \`$0 --help' for more information." >&5
4723 echo "$as_me: error: unrecognized option: $1
4724 Try \`$0 --help' for more information." >&2;}
4725 { (exit 1); exit 1; }; } ;;
4727 *) ac_config_targets="$ac_config_targets $1" ;;
4733 ac_configure_extra_args=
4735 if $ac_cs_silent; then
4737 ac_configure_extra_args="$ac_configure_extra_args --silent"
4741 cat >>$CONFIG_STATUS <<_ACEOF
4742 if \$ac_cs_recheck; then
4743 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4744 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4753 cat >>$CONFIG_STATUS <<\_ACEOF
4754 for ac_config_target in $ac_config_targets
4756 case "$ac_config_target" in
4757 # Handling of arguments.
4758 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4759 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
4760 "src/apache/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/apache/Makefile" ;;
4761 "src/apache2/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/apache2/Makefile" ;;
4762 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
4763 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4764 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4765 { (exit 1); exit 1; }; };;
4769 # If the user did not use the arguments to specify the items to instantiate,
4770 # then the envvar interface is used. Set only those that are not.
4771 # We use the long form for the default assignment because of an extremely
4772 # bizarre bug on SunOS 4.1.3.
4773 if $ac_need_defaults; then
4774 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4775 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4778 # Have a temporary directory for convenience. Make it in the build tree
4779 # simply because there is no reason to put it here, and in addition,
4780 # creating and moving files from /tmp can sometimes cause problems.
4781 # Create a temporary directory, and hook for its removal unless debugging.
4784 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4785 trap '{ (exit 1); exit 1; }' 1 2 13 15
4788 # Create a (secure) tmp directory for tmp files.
4791 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4792 test -n "$tmp" && test -d "$tmp"
4795 tmp=./confstat$$-$RANDOM
4796 (umask 077 && mkdir $tmp)
4799 echo "$me: cannot create a temporary directory in ." >&2
4800 { (exit 1); exit 1; }
4805 cat >>$CONFIG_STATUS <<_ACEOF
4808 # CONFIG_FILES section.
4811 # No need to generate the scripts if there are no CONFIG_FILES.
4812 # This happens for instance when ./config.status config.h
4813 if test -n "\$CONFIG_FILES"; then
4814 # Protect against being on the right side of a sed subst in config.status.
4815 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4816 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4817 s,@SHELL@,$SHELL,;t t
4818 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4819 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4820 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4821 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4822 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4823 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4824 s,@exec_prefix@,$exec_prefix,;t t
4825 s,@prefix@,$prefix,;t t
4826 s,@program_transform_name@,$program_transform_name,;t t
4827 s,@bindir@,$bindir,;t t
4828 s,@sbindir@,$sbindir,;t t
4829 s,@libexecdir@,$libexecdir,;t t
4830 s,@datadir@,$datadir,;t t
4831 s,@sysconfdir@,$sysconfdir,;t t
4832 s,@sharedstatedir@,$sharedstatedir,;t t
4833 s,@localstatedir@,$localstatedir,;t t
4834 s,@libdir@,$libdir,;t t
4835 s,@includedir@,$includedir,;t t
4836 s,@oldincludedir@,$oldincludedir,;t t
4837 s,@infodir@,$infodir,;t t
4838 s,@mandir@,$mandir,;t t
4839 s,@build_alias@,$build_alias,;t t
4840 s,@host_alias@,$host_alias,;t t
4841 s,@target_alias@,$target_alias,;t t
4843 s,@ECHO_C@,$ECHO_C,;t t
4844 s,@ECHO_N@,$ECHO_N,;t t
4845 s,@ECHO_T@,$ECHO_T,;t t
4848 s,@CFLAGS@,$CFLAGS,;t t
4849 s,@LDFLAGS@,$LDFLAGS,;t t
4850 s,@CPPFLAGS@,$CPPFLAGS,;t t
4851 s,@ac_ct_CC@,$ac_ct_CC,;t t
4852 s,@EXEEXT@,$EXEEXT,;t t
4853 s,@OBJEXT@,$OBJEXT,;t t
4854 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4855 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4856 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4858 s,@APACHE_VERSION_1_3@,$APACHE_VERSION_1_3,;t t
4859 s,@APACHE_VERSION_2@,$APACHE_VERSION_2,;t t
4860 s,@OPT_APACHEMOD_USERGROUP_DEF@,$OPT_APACHEMOD_USERGROUP_DEF,;t t
4862 s,@EGREP@,$EGREP,;t t
4863 s,@LIBOBJS@,$LIBOBJS,;t t
4864 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4869 cat >>$CONFIG_STATUS <<\_ACEOF
4870 # Split the substitutions into bite-sized pieces for seds with
4871 # small command number limits, like on Digital OSF/1 and HP-UX.
4873 ac_sed_frag=1 # Number of current file.
4874 ac_beg=1 # First line for current file.
4875 ac_end=$ac_max_sed_lines # Line after last line for current file.
4878 while $ac_more_lines; do
4879 if test $ac_beg -gt 1; then
4880 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4882 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4884 if test ! -s $tmp/subs.frag; then
4887 # The purpose of the label and of the branching condition is to
4888 # speed up the sed processing (if there are no `@' at all, there
4889 # is no need to browse any of the substitutions).
4890 # These are the two extra sed commands mentioned above.
4892 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4893 if test -z "$ac_sed_cmds"; then
4894 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4896 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4898 ac_sed_frag=`expr $ac_sed_frag + 1`
4900 ac_end=`expr $ac_end + $ac_max_sed_lines`
4903 if test -z "$ac_sed_cmds"; then
4906 fi # test -n "$CONFIG_FILES"
4909 cat >>$CONFIG_STATUS <<\_ACEOF
4910 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4911 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4913 - | *:- | *:-:* ) # input from stdin
4915 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4916 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4917 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4918 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4919 * ) ac_file_in=$ac_file.in ;;
4922 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4923 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4924 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4925 X"$ac_file" : 'X\(//\)[^/]' \| \
4926 X"$ac_file" : 'X\(//\)$' \| \
4927 X"$ac_file" : 'X\(/\)' \| \
4928 . : '\(.\)' 2>/dev/null ||
4930 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4931 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4932 /^X\(\/\/\)$/{ s//\1/; q; }
4933 /^X\(\/\).*/{ s//\1/; q; }
4935 { if $as_mkdir_p; then
4940 while test ! -d "$as_dir"; do
4941 as_dirs="$as_dir $as_dirs"
4942 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4943 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4944 X"$as_dir" : 'X\(//\)[^/]' \| \
4945 X"$as_dir" : 'X\(//\)$' \| \
4946 X"$as_dir" : 'X\(/\)' \| \
4947 . : '\(.\)' 2>/dev/null ||
4949 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4950 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4951 /^X\(\/\/\)$/{ s//\1/; q; }
4952 /^X\(\/\).*/{ s//\1/; q; }
4955 test ! -n "$as_dirs" || mkdir $as_dirs
4956 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4957 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4958 { (exit 1); exit 1; }; }; }
4962 if test "$ac_dir" != .; then
4963 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4964 # A "../" for each directory in $ac_dir_suffix.
4965 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4967 ac_dir_suffix= ac_top_builddir=
4971 .) # No --srcdir option. We are building in place.
4973 if test -z "$ac_top_builddir"; then
4976 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4978 [\\/]* | ?:[\\/]* ) # Absolute path.
4979 ac_srcdir=$srcdir$ac_dir_suffix;
4980 ac_top_srcdir=$srcdir ;;
4982 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4983 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4986 # Do not use `cd foo && pwd` to compute absolute paths, because
4987 # the directories may not exist.
4989 .) ac_abs_builddir="$ac_dir";;
4992 .) ac_abs_builddir=`pwd`;;
4993 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4994 *) ac_abs_builddir=`pwd`/"$ac_dir";;
4997 case $ac_abs_builddir in
4998 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5000 case ${ac_top_builddir}. in
5001 .) ac_abs_top_builddir=$ac_abs_builddir;;
5002 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5003 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5006 case $ac_abs_builddir in
5007 .) ac_abs_srcdir=$ac_srcdir;;
5010 .) ac_abs_srcdir=$ac_abs_builddir;;
5011 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5012 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5015 case $ac_abs_builddir in
5016 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5018 case $ac_top_srcdir in
5019 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5020 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5021 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5027 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5028 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5031 if test x"$ac_file" != x-; then
5032 { echo "$as_me:$LINENO: creating $ac_file" >&5
5033 echo "$as_me: creating $ac_file" >&6;}
5036 # Let's still pretend it is `configure' which instantiates (i.e., don't
5037 # use $as_me), people would be surprised to read:
5038 # /* config.h. Generated by config.status. */
5039 if test x"$ac_file" = x-; then
5042 configure_input="$ac_file. "
5044 configure_input=$configure_input"Generated from `echo $ac_file_in |
5045 sed 's,.*/,,'` by configure."
5047 # First look for the input files in the build tree, otherwise in the
5049 ac_file_inputs=`IFS=:
5050 for f in $ac_file_in; do
5052 -) echo $tmp/stdin ;;
5054 # Absolute (can't be DOS-style, as IFS=:)
5055 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5056 echo "$as_me: error: cannot find input file: $f" >&2;}
5057 { (exit 1); exit 1; }; }
5060 if test -f "$f"; then
5063 elif test -f "$srcdir/$f"; then
5068 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5069 echo "$as_me: error: cannot find input file: $f" >&2;}
5070 { (exit 1); exit 1; }; }
5073 done` || { (exit 1); exit 1; }
5075 cat >>$CONFIG_STATUS <<_ACEOF
5079 cat >>$CONFIG_STATUS <<\_ACEOF
5081 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5082 s,@configure_input@,$configure_input,;t t
5083 s,@srcdir@,$ac_srcdir,;t t
5084 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5085 s,@top_srcdir@,$ac_top_srcdir,;t t
5086 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5087 s,@builddir@,$ac_builddir,;t t
5088 s,@abs_builddir@,$ac_abs_builddir,;t t
5089 s,@top_builddir@,$ac_top_builddir,;t t
5090 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5091 s,@INSTALL@,$ac_INSTALL,;t t
5092 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5094 if test x"$ac_file" != x-; then
5095 mv $tmp/out $ac_file
5103 cat >>$CONFIG_STATUS <<\_ACEOF
5106 # CONFIG_HEADER section.
5109 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5110 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5112 # ac_d sets the value in "#define NAME VALUE" lines.
5113 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5114 ac_dB='[ ].*$,\1#\2'
5117 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5118 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5119 ac_uB='$,\1#\2define\3'
5123 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5124 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5126 - | *:- | *:-:* ) # input from stdin
5128 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5129 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5130 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5131 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5132 * ) ac_file_in=$ac_file.in ;;
5135 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5136 echo "$as_me: creating $ac_file" >&6;}
5138 # First look for the input files in the build tree, otherwise in the
5140 ac_file_inputs=`IFS=:
5141 for f in $ac_file_in; do
5143 -) echo $tmp/stdin ;;
5145 # Absolute (can't be DOS-style, as IFS=:)
5146 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5147 echo "$as_me: error: cannot find input file: $f" >&2;}
5148 { (exit 1); exit 1; }; }
5149 # Do quote $f, to prevent DOS paths from being IFS'd.
5152 if test -f "$f"; then
5155 elif test -f "$srcdir/$f"; then
5160 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5161 echo "$as_me: error: cannot find input file: $f" >&2;}
5162 { (exit 1); exit 1; }; }
5165 done` || { (exit 1); exit 1; }
5166 # Remove the trailing spaces.
5167 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5171 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5172 # `conftest.undefs', that substitutes the proper values into
5173 # config.h.in to produce config.h. The first handles `#define'
5174 # templates, and the second `#undef' templates.
5175 # And first: Protect against being on the right side of a sed subst in
5176 # config.status. Protect against being in an unquoted here document
5178 rm -f conftest.defines conftest.undefs
5179 # Using a here document instead of a string reduces the quoting nightmare.
5180 # Putting comments in sed scripts is not portable.
5182 # `end' is used to avoid that the second main sed command (meant for
5183 # 0-ary CPP macros) applies to n-ary macro definitions.
5184 # See the Autoconf documentation for `clear'.
5185 cat >confdef2sed.sed <<\_ACEOF
5190 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5192 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5195 # If some macros were called several times there might be several times
5196 # the same #defines, which is useless. Nevertheless, we may not want to
5197 # sort them, since we want the *last* AC-DEFINE to be honored.
5198 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5199 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5200 rm -f confdef2sed.sed
5202 # This sed command replaces #undef with comments. This is necessary, for
5203 # example, in the case of _POSIX_SOURCE, which is predefined and required
5204 # on some systems where configure will not decide to define it.
5205 cat >>conftest.undefs <<\_ACEOF
5206 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5209 # Break up conftest.defines because some shells have a limit on the size
5210 # of here documents, and old seds have small limits too (100 cmds).
5211 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5212 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5213 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5214 echo ' :' >>$CONFIG_STATUS
5216 while grep . conftest.defines >/dev/null
5218 # Write a limited-size here document to $tmp/defines.sed.
5219 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5220 # Speed up: don't consider the non `#define' lines.
5221 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5222 # Work around the forget-to-reset-the-flag bug.
5223 echo 't clr' >>$CONFIG_STATUS
5224 echo ': clr' >>$CONFIG_STATUS
5225 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5227 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5231 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5232 rm -f conftest.defines
5233 mv conftest.tail conftest.defines
5235 rm -f conftest.defines
5236 echo ' fi # grep' >>$CONFIG_STATUS
5237 echo >>$CONFIG_STATUS
5239 # Break up conftest.undefs because some shells have a limit on the size
5240 # of here documents, and old seds have small limits too (100 cmds).
5241 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5243 while grep . conftest.undefs >/dev/null
5245 # Write a limited-size here document to $tmp/undefs.sed.
5246 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5247 # Speed up: don't consider the non `#undef'
5248 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5249 # Work around the forget-to-reset-the-flag bug.
5250 echo 't clr' >>$CONFIG_STATUS
5251 echo ': clr' >>$CONFIG_STATUS
5252 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5254 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5258 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5259 rm -f conftest.undefs
5260 mv conftest.tail conftest.undefs
5262 rm -f conftest.undefs
5264 cat >>$CONFIG_STATUS <<\_ACEOF
5265 # Let's still pretend it is `configure' which instantiates (i.e., don't
5266 # use $as_me), people would be surprised to read:
5267 # /* config.h. Generated by config.status. */
5268 if test x"$ac_file" = x-; then
5269 echo "/* Generated by configure. */" >$tmp/config.h
5271 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
5273 cat $tmp/in >>$tmp/config.h
5275 if test x"$ac_file" != x-; then
5276 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
5277 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5278 echo "$as_me: $ac_file is unchanged" >&6;}
5280 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5281 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5282 X"$ac_file" : 'X\(//\)[^/]' \| \
5283 X"$ac_file" : 'X\(//\)$' \| \
5284 X"$ac_file" : 'X\(/\)' \| \
5285 . : '\(.\)' 2>/dev/null ||
5287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5288 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5289 /^X\(\/\/\)$/{ s//\1/; q; }
5290 /^X\(\/\).*/{ s//\1/; q; }
5292 { if $as_mkdir_p; then
5297 while test ! -d "$as_dir"; do
5298 as_dirs="$as_dir $as_dirs"
5299 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5301 X"$as_dir" : 'X\(//\)[^/]' \| \
5302 X"$as_dir" : 'X\(//\)$' \| \
5303 X"$as_dir" : 'X\(/\)' \| \
5304 . : '\(.\)' 2>/dev/null ||
5306 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5307 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5308 /^X\(\/\/\)$/{ s//\1/; q; }
5309 /^X\(\/\).*/{ s//\1/; q; }
5312 test ! -n "$as_dirs" || mkdir $as_dirs
5313 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5314 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5315 { (exit 1); exit 1; }; }; }
5318 mv $tmp/config.h $ac_file
5327 cat >>$CONFIG_STATUS <<\_ACEOF
5329 { (exit 0); exit 0; }
5331 chmod +x $CONFIG_STATUS
5332 ac_clean_files=$ac_clean_files_save
5335 # configure is writing to config.log, and then calls config.status.
5336 # config.status does its own redirection, appending to config.log.
5337 # Unfortunately, on DOS this fails, as config.log is still kept open
5338 # by configure, so config.status won't be able to write to it; its
5339 # output is simply discarded. So we exec the FD to /dev/null,
5340 # effectively closing config.log, so it can be properly (re)opened and
5341 # appended to by config.status. When coming back to configure, we
5342 # need to make the FD available again.
5343 if test "$no_create" != yes; then
5345 ac_config_status_args=
5346 test "$silent" = yes &&
5347 ac_config_status_args="$ac_config_status_args --quiet"
5349 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5351 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5352 # would make configure fail if this is the last instruction.
5353 $ac_cs_success || { (exit 1); exit 1; }
5357 if test -n "$OPT_APACHEMOD_USERGROUP_DEF" -a "$APACHE_VERSION_1_3" = "true"; then
5358 { echo "$as_me:$LINENO: WARNING:
5359 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
5360 !!*** The suPHP module for Apache 1.3 only works with ***!!
5361 !!*** set-ID mode \"owner\", other modes are only supported ***!!
5362 !!*** by the Apache 2.x module ***!!
5363 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
5365 echo "$as_me: WARNING:
5366 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
5367 !!*** The suPHP module for Apache 1.3 only works with ***!!
5368 !!*** set-ID mode \"owner\", other modes are only supported ***!!
5369 !!*** by the Apache 2.x module ***!!
5370 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
5374 if test "$APXS" = "/notfound/"; then
5375 { echo "$as_me:$LINENO: WARNING:
5376 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
5377 !!*** APXS was not found, so mod_suphp will not be built! ***!!
5378 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
5380 echo "$as_me: WARNING:
5381 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
5382 !!*** APXS was not found, so mod_suphp will not be built! ***!!
5383 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!