3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-api=API api to use (apache1, apache2)"
17 --with-apxs=PATH path to apxs"
19 --with-static module is to be statically linked"
21 --with-krb5=DIR path to Kerberos 5 install"
23 --with-krb5-include=DIR include path to Kerberos 5 install"
25 --with-krb5-lib=DIR lib path to Kerberos 5 install"
27 --disable-krb5 force disabling of krb5 support"
29 --with-krb4=DIR path to Kerberos 4 install"
31 --with-krb4-include=DIR include path to Kerberos 4 install"
33 --with-krb4-lib=DIR lib path to Kerberos 4 install"
35 --disable-krb4 force disabling of krb4 support"
37 # Initialize some variables set by options.
38 # The variables have the same names as the options, with
39 # dashes changed to underlines.
41 cache_file=./config.cache
50 program_transform_name=s,x,x,
58 bindir='${exec_prefix}/bin'
59 sbindir='${exec_prefix}/sbin'
60 libexecdir='${exec_prefix}/libexec'
61 datadir='${prefix}/share'
62 sysconfdir='${prefix}/etc'
63 sharedstatedir='${prefix}/com'
64 localstatedir='${prefix}/var'
65 libdir='${exec_prefix}/lib'
66 includedir='${prefix}/include'
67 oldincludedir='/usr/include'
68 infodir='${prefix}/info'
69 mandir='${prefix}/man'
71 # Initialize some other variables.
74 SHELL=${CONFIG_SHELL-/bin/sh}
75 # Maximum number of lines to put in a shell here document.
82 # If the previous option needs an argument, assign it.
83 if test -n "$ac_prev"; then
84 eval "$ac_prev=\$ac_option"
90 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
94 # Accept the important Cygnus configure options, so we can diagnose typos.
98 -bindir | --bindir | --bindi | --bind | --bin | --bi)
100 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
101 bindir="$ac_optarg" ;;
103 -build | --build | --buil | --bui | --bu)
105 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
106 build="$ac_optarg" ;;
108 -cache-file | --cache-file | --cache-fil | --cache-fi \
109 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
110 ac_prev=cache_file ;;
111 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
112 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
113 cache_file="$ac_optarg" ;;
115 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
117 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
119 datadir="$ac_optarg" ;;
121 -disable-* | --disable-*)
122 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
123 # Reject names that are not valid shell variable names.
124 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
125 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
127 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
128 eval "enable_${ac_feature}=no" ;;
130 -enable-* | --enable-*)
131 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
132 # Reject names that are not valid shell variable names.
133 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
134 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
136 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
141 eval "enable_${ac_feature}='$ac_optarg'" ;;
143 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
144 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
145 | --exec | --exe | --ex)
146 ac_prev=exec_prefix ;;
147 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
148 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
149 | --exec=* | --exe=* | --ex=*)
150 exec_prefix="$ac_optarg" ;;
152 -gas | --gas | --ga | --g)
153 # Obsolete; use --with-gas.
156 -help | --help | --hel | --he)
157 # Omit some internal or obsolete options to make the list less imposing.
158 # This message is too long to be a string in the A/UX 3.1 sh.
160 Usage: configure [options] [host]
161 Options: [defaults in brackets after descriptions]
163 --cache-file=FILE cache test results in FILE
164 --help print this message
165 --no-create do not create output files
166 --quiet, --silent do not print \`checking...' messages
167 --version print the version of autoconf that created configure
168 Directory and file names:
169 --prefix=PREFIX install architecture-independent files in PREFIX
171 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
173 --bindir=DIR user executables in DIR [EPREFIX/bin]
174 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
175 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
176 --datadir=DIR read-only architecture-independent data in DIR
178 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
179 --sharedstatedir=DIR modifiable architecture-independent data in DIR
181 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
182 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
183 --includedir=DIR C header files in DIR [PREFIX/include]
184 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
185 --infodir=DIR info documentation in DIR [PREFIX/info]
186 --mandir=DIR man documentation in DIR [PREFIX/man]
187 --srcdir=DIR find the sources in DIR [configure dir or ..]
188 --program-prefix=PREFIX prepend PREFIX to installed program names
189 --program-suffix=SUFFIX append SUFFIX to installed program names
190 --program-transform-name=PROGRAM
191 run sed PROGRAM on installed program names
195 --build=BUILD configure for building on BUILD [BUILD=HOST]
196 --host=HOST configure for HOST [guessed]
197 --target=TARGET configure for TARGET [TARGET=HOST]
198 Features and packages:
199 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
200 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
201 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
202 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
203 --x-includes=DIR X include files are in DIR
204 --x-libraries=DIR X library files are in DIR
206 if test -n "$ac_help"; then
207 echo "--enable and --with options recognized:$ac_help"
211 -host | --host | --hos | --ho)
213 -host=* | --host=* | --hos=* | --ho=*)
216 -includedir | --includedir | --includedi | --included | --include \
217 | --includ | --inclu | --incl | --inc)
218 ac_prev=includedir ;;
219 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
220 | --includ=* | --inclu=* | --incl=* | --inc=*)
221 includedir="$ac_optarg" ;;
223 -infodir | --infodir | --infodi | --infod | --info | --inf)
225 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
226 infodir="$ac_optarg" ;;
228 -libdir | --libdir | --libdi | --libd)
230 -libdir=* | --libdir=* | --libdi=* | --libd=*)
231 libdir="$ac_optarg" ;;
233 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
234 | --libexe | --libex | --libe)
235 ac_prev=libexecdir ;;
236 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
237 | --libexe=* | --libex=* | --libe=*)
238 libexecdir="$ac_optarg" ;;
240 -localstatedir | --localstatedir | --localstatedi | --localstated \
241 | --localstate | --localstat | --localsta | --localst \
242 | --locals | --local | --loca | --loc | --lo)
243 ac_prev=localstatedir ;;
244 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
245 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
246 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
247 localstatedir="$ac_optarg" ;;
249 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
251 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
252 mandir="$ac_optarg" ;;
255 # Obsolete; use --without-fp.
258 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
262 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
263 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
266 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
267 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
268 | --oldin | --oldi | --old | --ol | --o)
269 ac_prev=oldincludedir ;;
270 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
271 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
272 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
273 oldincludedir="$ac_optarg" ;;
275 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
277 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
278 prefix="$ac_optarg" ;;
280 -program-prefix | --program-prefix | --program-prefi | --program-pref \
281 | --program-pre | --program-pr | --program-p)
282 ac_prev=program_prefix ;;
283 -program-prefix=* | --program-prefix=* | --program-prefi=* \
284 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
285 program_prefix="$ac_optarg" ;;
287 -program-suffix | --program-suffix | --program-suffi | --program-suff \
288 | --program-suf | --program-su | --program-s)
289 ac_prev=program_suffix ;;
290 -program-suffix=* | --program-suffix=* | --program-suffi=* \
291 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
292 program_suffix="$ac_optarg" ;;
294 -program-transform-name | --program-transform-name \
295 | --program-transform-nam | --program-transform-na \
296 | --program-transform-n | --program-transform- \
297 | --program-transform | --program-transfor \
298 | --program-transfo | --program-transf \
299 | --program-trans | --program-tran \
300 | --progr-tra | --program-tr | --program-t)
301 ac_prev=program_transform_name ;;
302 -program-transform-name=* | --program-transform-name=* \
303 | --program-transform-nam=* | --program-transform-na=* \
304 | --program-transform-n=* | --program-transform-=* \
305 | --program-transform=* | --program-transfor=* \
306 | --program-transfo=* | --program-transf=* \
307 | --program-trans=* | --program-tran=* \
308 | --progr-tra=* | --program-tr=* | --program-t=*)
309 program_transform_name="$ac_optarg" ;;
311 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
312 | -silent | --silent | --silen | --sile | --sil)
315 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
317 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
319 sbindir="$ac_optarg" ;;
321 -sharedstatedir | --sharedstatedir | --sharedstatedi \
322 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
323 | --sharedst | --shareds | --shared | --share | --shar \
325 ac_prev=sharedstatedir ;;
326 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
327 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
328 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
330 sharedstatedir="$ac_optarg" ;;
332 -site | --site | --sit)
334 -site=* | --site=* | --sit=*)
337 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
339 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
340 srcdir="$ac_optarg" ;;
342 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
343 | --syscon | --sysco | --sysc | --sys | --sy)
344 ac_prev=sysconfdir ;;
345 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
346 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
347 sysconfdir="$ac_optarg" ;;
349 -target | --target | --targe | --targ | --tar | --ta | --t)
351 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
352 target="$ac_optarg" ;;
354 -v | -verbose | --verbose | --verbos | --verbo | --verb)
357 -version | --version | --versio | --versi | --vers)
358 echo "configure generated by autoconf version 2.13"
362 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
363 # Reject names that are not valid shell variable names.
364 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
365 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
367 ac_package=`echo $ac_package| sed 's/-/_/g'`
372 eval "with_${ac_package}='$ac_optarg'" ;;
374 -without-* | --without-*)
375 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
376 # Reject names that are not valid shell variable names.
377 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
378 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
380 ac_package=`echo $ac_package| sed 's/-/_/g'`
381 eval "with_${ac_package}=no" ;;
384 # Obsolete; use --with-x.
387 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
388 | --x-incl | --x-inc | --x-in | --x-i)
389 ac_prev=x_includes ;;
390 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
391 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
392 x_includes="$ac_optarg" ;;
394 -x-libraries | --x-libraries | --x-librarie | --x-librari \
395 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
396 ac_prev=x_libraries ;;
397 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
398 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
399 x_libraries="$ac_optarg" ;;
401 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
405 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
406 echo "configure: warning: $ac_option: invalid host type" 1>&2
408 if test "x$nonopt" != xNONE; then
409 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
417 if test -n "$ac_prev"; then
418 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
421 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
423 # File descriptor usage:
426 # 2 errors and warnings
427 # 3 some systems may open it to /dev/tty
428 # 4 used on the Kubota Titan
429 # 6 checking for... messages and results
430 # 5 compiler messages saved in config.log
431 if test "$silent" = yes; then
439 This file contains any messages produced by compilers while
440 running configure, to aid debugging if configure makes a mistake.
443 # Strip out --no-create and --no-recursion so they do not pile up.
444 # Also quote any args containing shell metacharacters.
449 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
450 | --no-cr | --no-c) ;;
451 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
453 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
454 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
455 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
460 # Only set these to C if already set. These must not be set unconditionally
461 # because not all systems understand e.g. LANG=C (notably SCO).
462 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
463 # Non-C LC_CTYPE values break the ctype check.
464 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
465 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
466 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
467 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
469 # confdefs.h avoids OS command line length limits that DEFS can exceed.
470 rm -rf conftest* confdefs.h
471 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
474 # A filename unique to this package, relative to the directory that
475 # configure is in, which we can look for to find out if srcdir is correct.
476 ac_unique_file=README
478 # Find the source files, if location was not specified.
479 if test -z "$srcdir"; then
480 ac_srcdir_defaulted=yes
481 # Try the directory containing this script, then its parent.
483 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
484 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
486 if test ! -r $srcdir/$ac_unique_file; then
490 ac_srcdir_defaulted=no
492 if test ! -r $srcdir/$ac_unique_file; then
493 if test "$ac_srcdir_defaulted" = yes; then
494 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
496 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
499 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
501 # Prefer explicitly selected file to automatically selected ones.
502 if test -z "$CONFIG_SITE"; then
503 if test "x$prefix" != xNONE; then
504 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
506 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
509 for ac_site_file in $CONFIG_SITE; do
510 if test -r "$ac_site_file"; then
511 echo "loading site script $ac_site_file"
516 if test -r "$cache_file"; then
517 echo "loading cache $cache_file"
520 echo "creating cache $cache_file"
525 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
526 ac_cpp='$CPP $CPPFLAGS'
527 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
528 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
529 cross_compiling=$ac_cv_prog_cc_cross
533 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
534 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
535 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
542 ac_n= ac_c='\c' ac_t=
548 # Check whether --with-api or --without-api was given.
549 if test "${with_api+set}" = set; then
560 { echo "configure: error: You can only specify apache1 or apache2." 1>&2; exit 1; }
568 # Check whether --with-apxs or --without-apxs was given.
569 if test "${with_apxs+set}" = set; then
572 if test -e $withval ; then
575 { echo "configure: error: Specified apxs path does not exist." 1>&2; exit 1; }
582 # Check whether --with-static or --without-static was given.
583 if test "${with_static+set}" = set; then
584 withval="$with_static"
592 # Check whether --with-krb5 or --without-krb5 was given.
593 if test "${with_krb5+set}" = set; then
596 if test -d $withval ; then
597 CFLAGS="$CFLAGS -I$withval/include"
598 CPPFLAGS="$CPPFLAGS -I$withval/include"
599 LDFLAGS="$LDFLAGS -L$withval/lib"
603 LDFLAGS="$LDFLAGS -R$withval/lib"
607 { echo "configure: error: Specified Kerberos 5 directory doesn't exist." 1>&2; exit 1; }
614 # Check whether --with-krb5-include or --without-krb5-include was given.
615 if test "${with_krb5_include+set}" = set; then
616 withval="$with_krb5_include"
618 if test -d $withval ; then
619 CFLAGS="$CFLAGS -I$withval"
620 CPPFLAGS="$CPPFLAGS -I$withval"
622 { echo "configure: error: Specified Kerberos 5 directory doesn't exist." 1>&2; exit 1; }
629 # Check whether --with-krb5-lib or --without-krb5-lib was given.
630 if test "${with_krb5_lib+set}" = set; then
631 withval="$with_krb5_lib"
633 if test -d $withval ; then
634 LDFLAGS="$LDFLAGS -L$withval"
638 LDFLAGS="$LDFLAGS -R$withval"
642 { echo "configure: error: Specified Kerberos 5 directory doesn't exist." 1>&2; exit 1; }
649 # Check whether --enable-krb5 or --disable-krb5 was given.
650 if test "${enable_krb5+set}" = set; then
651 enableval="$enable_krb5"
653 if test "$enable_krb5" = "no" ; then
654 ac_krb5_disable="yes"
660 # Check whether --with-krb4 or --without-krb4 was given.
661 if test "${with_krb4+set}" = set; then
664 if test -d $withval ; then
665 CFLAGS="$CFLAGS -I$withval/include"
666 CPPFLAGS="$CPPFLAGS -I$withval/include"
667 LDFLAGS="$LDFLAGS -L$withval/lib"
671 LDFLAGS="$LDFLAGS -R$withval/lib"
675 { echo "configure: error: Specified Kerberos 4 directory doesn't exist." 1>&2; exit 1; }
682 # Check whether --with-krb4-include or --without-krb4-include was given.
683 if test "${with_krb4_include+set}" = set; then
684 withval="$with_krb4_include"
686 if test -d $withval ; then
687 CFLAGS="$CFLAGS -I$withval"
688 CPPFLAGS="$CPPFLAGS -I$withval"
690 { echo "configure: error: Specified Kerberos 4 directory doesn't exist." 1>&2; exit 1; }
697 # Check whether --with-krb4-lib or --without-krb4-lib was given.
698 if test "${with_krb4_lib+set}" = set; then
699 withval="$with_krb4_lib"
701 if test -d $withval ; then
702 LDFLAGS="$LDFLAGS -L$withval"
706 LDFLAGS="$LDFLAGS -R$withval"
710 { echo "configure: error: Specified Kerberos 4 directory doesn't exist." 1>&2; exit 1; }
717 # Check whether --enable-krb4 or --disable-krb4 was given.
718 if test "${enable_krb4+set}" = set; then
719 enableval="$enable_krb4"
721 if test "$enable_krb4" = "no" ; then
722 ac_krb4_disable="yes"
729 # Extract the first word of "gcc", so it can be a program name with args.
730 set dummy gcc; ac_word=$2
731 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
732 echo "configure:733: checking for $ac_word" >&5
733 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
734 echo $ac_n "(cached) $ac_c" 1>&6
736 if test -n "$CC"; then
737 ac_cv_prog_CC="$CC" # Let the user override the test.
739 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
741 for ac_dir in $ac_dummy; do
742 test -z "$ac_dir" && ac_dir=.
743 if test -f $ac_dir/$ac_word; then
752 if test -n "$CC"; then
753 echo "$ac_t""$CC" 1>&6
755 echo "$ac_t""no" 1>&6
758 if test -z "$CC"; then
759 # Extract the first word of "cc", so it can be a program name with args.
760 set dummy cc; ac_word=$2
761 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
762 echo "configure:763: checking for $ac_word" >&5
763 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
764 echo $ac_n "(cached) $ac_c" 1>&6
766 if test -n "$CC"; then
767 ac_cv_prog_CC="$CC" # Let the user override the test.
769 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
772 for ac_dir in $ac_dummy; do
773 test -z "$ac_dir" && ac_dir=.
774 if test -f $ac_dir/$ac_word; then
775 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
784 if test $ac_prog_rejected = yes; then
785 # We found a bogon in the path, so make sure we never use it.
786 set dummy $ac_cv_prog_CC
788 if test $# -gt 0; then
789 # We chose a different compiler from the bogus one.
790 # However, it has the same basename, so the bogon will be chosen
791 # first if we set CC to just the basename; use the full file name.
793 set dummy "$ac_dir/$ac_word" "$@"
801 if test -n "$CC"; then
802 echo "$ac_t""$CC" 1>&6
804 echo "$ac_t""no" 1>&6
807 if test -z "$CC"; then
810 # Extract the first word of "cl", so it can be a program name with args.
811 set dummy cl; ac_word=$2
812 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
813 echo "configure:814: checking for $ac_word" >&5
814 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
815 echo $ac_n "(cached) $ac_c" 1>&6
817 if test -n "$CC"; then
818 ac_cv_prog_CC="$CC" # Let the user override the test.
820 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
822 for ac_dir in $ac_dummy; do
823 test -z "$ac_dir" && ac_dir=.
824 if test -f $ac_dir/$ac_word; then
833 if test -n "$CC"; then
834 echo "$ac_t""$CC" 1>&6
836 echo "$ac_t""no" 1>&6
841 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
844 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
845 echo "configure:846: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
848 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
849 ac_cpp='$CPP $CPPFLAGS'
850 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
851 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
852 cross_compiling=$ac_cv_prog_cc_cross
854 cat > conftest.$ac_ext << EOF
856 #line 857 "configure"
857 #include "confdefs.h"
861 if { (eval echo configure:862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
862 ac_cv_prog_cc_works=yes
863 # If we can't run a trivial program, we are probably using a cross compiler.
864 if (./conftest; exit) 2>/dev/null; then
865 ac_cv_prog_cc_cross=no
867 ac_cv_prog_cc_cross=yes
870 echo "configure: failed program was:" >&5
871 cat conftest.$ac_ext >&5
872 ac_cv_prog_cc_works=no
876 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
877 ac_cpp='$CPP $CPPFLAGS'
878 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
879 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
880 cross_compiling=$ac_cv_prog_cc_cross
882 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
883 if test $ac_cv_prog_cc_works = no; then
884 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
886 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
887 echo "configure:888: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
888 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
889 cross_compiling=$ac_cv_prog_cc_cross
891 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
892 echo "configure:893: checking whether we are using GNU C" >&5
893 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
894 echo $ac_n "(cached) $ac_c" 1>&6
896 cat > conftest.c <<EOF
901 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
908 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
910 if test $ac_cv_prog_gcc = yes; then
916 ac_test_CFLAGS="${CFLAGS+set}"
917 ac_save_CFLAGS="$CFLAGS"
919 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
920 echo "configure:921: checking whether ${CC-cc} accepts -g" >&5
921 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
922 echo $ac_n "(cached) $ac_c" 1>&6
924 echo 'void f(){}' > conftest.c
925 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
934 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
935 if test "$ac_test_CFLAGS" = set; then
936 CFLAGS="$ac_save_CFLAGS"
937 elif test $ac_cv_prog_cc_g = yes; then
938 if test "$GCC" = yes; then
944 if test "$GCC" = yes; then
951 if test -z "$ac_static" ; then
952 # Extract the first word of "apxs", so it can be a program name with args.
953 set dummy apxs; ac_word=$2
954 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
955 echo "configure:956: checking for $ac_word" >&5
956 if eval "test \"`echo '$''{'ac_cv_path_APXS'+set}'`\" = set"; then
957 echo $ac_n "(cached) $ac_c" 1>&6
961 ac_cv_path_APXS="$APXS" # Let the user override the test with a path.
964 ac_cv_path_APXS="$APXS" # Let the user override the test with a dos path.
967 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
969 for ac_dir in $ac_dummy; do
970 test -z "$ac_dir" && ac_dir=.
971 if test -f $ac_dir/$ac_word; then
972 ac_cv_path_APXS="$ac_dir/$ac_word"
980 APXS="$ac_cv_path_APXS"
981 if test -n "$APXS"; then
982 echo "$ac_t""$APXS" 1>&6
984 echo "$ac_t""no" 1>&6
987 if test -z "$APXS" ; then
988 echo "No apxs found. Defaulting to static module generation."
994 if test -z "$ac_krb5_disable" ; then
995 echo $ac_n "checking for krb5_get_in_tkt_with_password in -lkrb5""... $ac_c" 1>&6
996 echo "configure:997: checking for krb5_get_in_tkt_with_password in -lkrb5" >&5
997 ac_lib_var=`echo krb5'_'krb5_get_in_tkt_with_password | sed 'y%./+-%__p_%'`
998 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
999 echo $ac_n "(cached) $ac_c" 1>&6
1001 ac_save_LIBS="$LIBS"
1002 LIBS="-lkrb5 "-lcom_err" $LIBS"
1003 cat > conftest.$ac_ext <<EOF
1004 #line 1005 "configure"
1005 #include "confdefs.h"
1006 /* Override any gcc2 internal prototype to avoid an error. */
1007 /* We use char because int might match the return type of a gcc2
1008 builtin and then its argument prototype would still apply. */
1009 char krb5_get_in_tkt_with_password();
1012 krb5_get_in_tkt_with_password()
1015 if { (eval echo configure:1016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1017 eval "ac_cv_lib_$ac_lib_var=yes"
1019 echo "configure: failed program was:" >&5
1020 cat conftest.$ac_ext >&5
1022 eval "ac_cv_lib_$ac_lib_var=no"
1025 LIBS="$ac_save_LIBS"
1028 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1029 echo "$ac_t""yes" 1>&6
1034 echo $ac_n "checking for krb5_string_to_key in -lk5crypto""... $ac_c" 1>&6
1035 echo "configure:1036: checking for krb5_string_to_key in -lk5crypto" >&5
1036 ac_lib_var=`echo k5crypto'_'krb5_string_to_key | sed 'y%./+-%__p_%'`
1037 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1038 echo $ac_n "(cached) $ac_c" 1>&6
1040 ac_save_LIBS="$LIBS"
1041 LIBS="-lk5crypto "-lcom_err" $LIBS"
1042 cat > conftest.$ac_ext <<EOF
1043 #line 1044 "configure"
1044 #include "confdefs.h"
1045 /* Override any gcc2 internal prototype to avoid an error. */
1046 /* We use char because int might match the return type of a gcc2
1047 builtin and then its argument prototype would still apply. */
1048 char krb5_string_to_key();
1051 krb5_string_to_key()
1054 if { (eval echo configure:1055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1056 eval "ac_cv_lib_$ac_lib_var=yes"
1058 echo "configure: failed program was:" >&5
1059 cat conftest.$ac_ext >&5
1061 eval "ac_cv_lib_$ac_lib_var=no"
1064 LIBS="$ac_save_LIBS"
1067 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1068 echo "$ac_t""yes" 1>&6
1070 ac_krblibs="$ac_krblibs -lk5crypto"
1073 echo "$ac_t""no" 1>&6
1075 echo $ac_n "checking for krb5_string_to_key in -lcrypto""... $ac_c" 1>&6
1076 echo "configure:1077: checking for krb5_string_to_key in -lcrypto" >&5
1077 ac_lib_var=`echo crypto'_'krb5_string_to_key | sed 'y%./+-%__p_%'`
1078 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1079 echo $ac_n "(cached) $ac_c" 1>&6
1081 ac_save_LIBS="$LIBS"
1082 LIBS="-lcrypto "-lcom_err" $LIBS"
1083 cat > conftest.$ac_ext <<EOF
1084 #line 1085 "configure"
1085 #include "confdefs.h"
1086 /* Override any gcc2 internal prototype to avoid an error. */
1087 /* We use char because int might match the return type of a gcc2
1088 builtin and then its argument prototype would still apply. */
1089 char krb5_string_to_key();
1092 krb5_string_to_key()
1095 if { (eval echo configure:1096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1097 eval "ac_cv_lib_$ac_lib_var=yes"
1099 echo "configure: failed program was:" >&5
1100 cat conftest.$ac_ext >&5
1102 eval "ac_cv_lib_$ac_lib_var=no"
1105 LIBS="$ac_save_LIBS"
1108 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1109 echo "$ac_t""yes" 1>&6
1111 ac_krblibs="$ac_krblibs -lcrypto"
1114 echo "$ac_t""no" 1>&6
1123 ac_krblibs="$ac_krblibs -lcom_err"
1125 if test -z "$ac_krb4_disable" ; then
1126 if test -n "$ac_krblibs" ; then
1127 echo $ac_n "checking for krb_get_pw_in_tkt in -lkrb4""... $ac_c" 1>&6
1128 echo "configure:1129: checking for krb_get_pw_in_tkt in -lkrb4" >&5
1129 ac_lib_var=`echo krb4'_'krb_get_pw_in_tkt | sed 'y%./+-%__p_%'`
1130 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1131 echo $ac_n "(cached) $ac_c" 1>&6
1133 ac_save_LIBS="$LIBS"
1134 LIBS="-lkrb4 $ac_krblibs $LIBS"
1135 cat > conftest.$ac_ext <<EOF
1136 #line 1137 "configure"
1137 #include "confdefs.h"
1138 /* Override any gcc2 internal prototype to avoid an error. */
1139 /* We use char because int might match the return type of a gcc2
1140 builtin and then its argument prototype would still apply. */
1141 char krb_get_pw_in_tkt();
1147 if { (eval echo configure:1148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1149 eval "ac_cv_lib_$ac_lib_var=yes"
1151 echo "configure: failed program was:" >&5
1152 cat conftest.$ac_ext >&5
1154 eval "ac_cv_lib_$ac_lib_var=no"
1157 LIBS="$ac_save_LIBS"
1160 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1161 echo "$ac_t""yes" 1>&6
1165 ac_krblibs="-lkrb4 $ac_krblibs"
1168 echo "$ac_t""no" 1>&6
1175 echo "$ac_t""no" 1>&6
1180 if test -z "$ac_krb4_disable" -a -z "$ac_krb4" ; then
1181 echo $ac_n "checking for krb_get_pw_in_tkt in -lkrb""... $ac_c" 1>&6
1182 echo "configure:1183: checking for krb_get_pw_in_tkt in -lkrb" >&5
1183 ac_lib_var=`echo krb'_'krb_get_pw_in_tkt | sed 'y%./+-%__p_%'`
1184 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1185 echo $ac_n "(cached) $ac_c" 1>&6
1187 ac_save_LIBS="$LIBS"
1188 LIBS="-lkrb "-lcom_err" $LIBS"
1189 cat > conftest.$ac_ext <<EOF
1190 #line 1191 "configure"
1191 #include "confdefs.h"
1192 /* Override any gcc2 internal prototype to avoid an error. */
1193 /* We use char because int might match the return type of a gcc2
1194 builtin and then its argument prototype would still apply. */
1195 char krb_get_pw_in_tkt();
1201 if { (eval echo configure:1202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1203 eval "ac_cv_lib_$ac_lib_var=yes"
1205 echo "configure: failed program was:" >&5
1206 cat conftest.$ac_ext >&5
1208 eval "ac_cv_lib_$ac_lib_var=no"
1211 LIBS="$ac_save_LIBS"
1214 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1215 echo "$ac_t""yes" 1>&6
1219 ac_krblibs="$ac_krblibs -lkrb -lcom_err"
1222 echo "$ac_t""no" 1>&6
1227 if test -z "$ac_krb4" -a -z "$ac_krb5" ; then
1228 { echo "configure: error: Neither Kerberos 5 nor 4 support available." 1>&2; exit 1; }
1232 if test -n "$ac_krb5" ; then
1233 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1234 echo "configure:1235: checking how to run the C preprocessor" >&5
1235 # On Suns, sometimes $CPP names a directory.
1236 if test -n "$CPP" && test -d "$CPP"; then
1239 if test -z "$CPP"; then
1240 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1241 echo $ac_n "(cached) $ac_c" 1>&6
1243 # This must be in double quotes, not single quotes, because CPP may get
1244 # substituted into the Makefile and "${CC-cc}" will confuse make.
1246 # On the NeXT, cc -E runs the code through the compiler's parser,
1247 # not just through cpp.
1248 cat > conftest.$ac_ext <<EOF
1249 #line 1250 "configure"
1250 #include "confdefs.h"
1254 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1255 { (eval echo configure:1256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1256 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1257 if test -z "$ac_err"; then
1261 echo "configure: failed program was:" >&5
1262 cat conftest.$ac_ext >&5
1264 CPP="${CC-cc} -E -traditional-cpp"
1265 cat > conftest.$ac_ext <<EOF
1266 #line 1267 "configure"
1267 #include "confdefs.h"
1271 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1272 { (eval echo configure:1273: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1273 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1274 if test -z "$ac_err"; then
1278 echo "configure: failed program was:" >&5
1279 cat conftest.$ac_ext >&5
1281 CPP="${CC-cc} -nologo -E"
1282 cat > conftest.$ac_ext <<EOF
1283 #line 1284 "configure"
1284 #include "confdefs.h"
1288 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1289 { (eval echo configure:1290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1290 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1291 if test -z "$ac_err"; then
1295 echo "configure: failed program was:" >&5
1296 cat conftest.$ac_ext >&5
1305 ac_cv_prog_CPP="$CPP"
1307 CPP="$ac_cv_prog_CPP"
1309 ac_cv_prog_CPP="$CPP"
1311 echo "$ac_t""$CPP" 1>&6
1313 for ac_hdr in krb5.h
1315 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1316 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1317 echo "configure:1318: checking for $ac_hdr" >&5
1318 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1319 echo $ac_n "(cached) $ac_c" 1>&6
1321 cat > conftest.$ac_ext <<EOF
1322 #line 1323 "configure"
1323 #include "confdefs.h"
1326 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1327 { (eval echo configure:1328: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1328 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1329 if test -z "$ac_err"; then
1331 eval "ac_cv_header_$ac_safe=yes"
1334 echo "configure: failed program was:" >&5
1335 cat conftest.$ac_ext >&5
1337 eval "ac_cv_header_$ac_safe=no"
1341 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1342 echo "$ac_t""yes" 1>&6
1343 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1344 cat >> confdefs.h <<EOF
1345 #define $ac_tr_hdr 1
1352 echo "$ac_t""no" 1>&6
1357 if test -z "$ac_foundkrb5" ; then
1358 echo "$ac_t""krb5.h not found... removing krb5 support." 1>&6
1363 if test -n "$ac_krb4" ; then
1364 for ac_hdr in kerberosIV/krb.h krb.h
1366 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1367 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1368 echo "configure:1369: checking for $ac_hdr" >&5
1369 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1370 echo $ac_n "(cached) $ac_c" 1>&6
1372 cat > conftest.$ac_ext <<EOF
1373 #line 1374 "configure"
1374 #include "confdefs.h"
1377 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1378 { (eval echo configure:1379: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1379 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1380 if test -z "$ac_err"; then
1382 eval "ac_cv_header_$ac_safe=yes"
1385 echo "configure: failed program was:" >&5
1386 cat conftest.$ac_ext >&5
1388 eval "ac_cv_header_$ac_safe=no"
1392 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1393 echo "$ac_t""yes" 1>&6
1394 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1395 cat >> confdefs.h <<EOF
1396 #define $ac_tr_hdr 1
1403 echo "$ac_t""no" 1>&6
1408 if test -z "$ac_foundkrb4" ; then
1409 echo "$ac_t""krb.h not found... removing krb4 support." 1>&6
1414 if test -z "$ac_krb4" -a -z "$ac_krb5" ; then
1415 { echo "configure: error: Neither Kerberos 5 nor 4 support available." 1>&2; exit 1; }
1423 if test -z "$ac_api" ; then
1424 if test -n "`$APXS -q bindir 2> /dev/null`" ; then
1425 echo "API autodetected to be Apache 2.*"
1428 echo "API autodetected to be Apache 1.*"
1438 LIBS="$LIBS $ac_krblibs"
1439 DEFS="$DEFS $ac_krbdefs"
1444 GENHEADERS="$GENHEADERS apache1/api_inc.h"
1445 GENSOURCES="$GENSOURCES apache1/auth_user.c"
1446 GENSOURCES="$GENSOURCES apache1/module.c"
1449 GENHEADERS="$GENHEADERS apache2/api_inc.h"
1450 GENSOURCES="$GENSOURCES apache2/auth_user.c"
1451 GENSOURCES="$GENSOURCES apache2/hooks.c"
1452 GENSOURCES="$GENSOURCES apache2/module.c"
1456 if test "$ac_krb5" = "yes" ; then
1457 GENHEADERS="$GENHEADERS krb5/krb5_inc.h"
1458 GENSOURCES="krb5/validate.c $GENSOURCES"
1461 if test "$ac_krb4" = "yes" ; then
1462 GENHEADERS="$GENHEADERS krb4/krb4_inc.h"
1463 GENSOURCES="krb4/validate.c $GENSOURCES"
1467 echo "Generating mod_auth_kerb.c ..."
1468 echo "/* Automatically generated by configure. */" > mod_auth_kerb.c
1469 if test "$ac_krb5" = "yes" ; then
1470 echo "#define KRB5 1" >> mod_auth_kerb.c
1472 if test "$ac_krb4" = "yes" ; then
1473 echo "#define KRB4 1" >> mod_auth_kerb.c
1475 for f in $GENHEADERS $GENSOURCES ; do
1477 echo "" >> mod_auth_kerb.c
1478 cat $f >> mod_auth_kerb.c
1481 if test "$ac_static" = "yes" ; then
1484 echo "This module is to be built statically into Apache. You will need"
1485 echo "to place it into the appropriate location in the source tree and"
1486 echo "compile Apache accordingly. You can look at the online docs at"
1487 echo "http://modauthkerb.sourceforge.net/ or README.static for more"
1493 cat > confcache <<\EOF
1494 # This file is a shell script that caches the results of configure
1495 # tests run on this system so they can be shared between configure
1496 # scripts and configure runs. It is not useful on other systems.
1497 # If it contains results you don't want to keep, you may remove or edit it.
1499 # By default, configure uses ./config.cache as the cache file,
1500 # creating it if it does not exist already. You can give configure
1501 # the --cache-file=FILE option to use a different cache file; that is
1502 # what configure does when it calls configure scripts in
1503 # subdirectories, so they share the cache.
1504 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1505 # config.status only pays attention to the cache file if you give it the
1506 # --recheck option to rerun configure.
1509 # The following way of writing the cache mishandles newlines in values,
1510 # but we know of no workaround that is simple, portable, and efficient.
1511 # So, don't put newlines in cache variables' values.
1512 # Ultrix sh set writes to stderr and can't be redirected directly,
1513 # and sets the high bit in the cache file unless we assign to the vars.
1515 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1517 # `set' does not quote correctly, so add quotes (double-quote substitution
1518 # turns \\\\ into \\, and sed turns \\ into \).
1520 -e "s/'/'\\\\''/g" \
1521 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1524 # `set' quotes correctly as required by POSIX, so do not add quotes.
1525 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1528 if cmp -s $cache_file confcache; then
1531 if test -w $cache_file; then
1532 echo "updating cache $cache_file"
1533 cat confcache > $cache_file
1535 echo "not updating unwritable cache $cache_file"
1540 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1542 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1543 # Let make expand exec_prefix.
1544 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1546 # Any assignment to VPATH causes Sun make to only execute
1547 # the first set of double-colon rules, so remove it if not needed.
1548 # If there is a colon in the path, we need to keep it.
1549 if test "x$srcdir" = x.; then
1550 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1553 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1555 # Transform confdefs.h into DEFS.
1556 # Protect against shell expansion while executing Makefile rules.
1557 # Protect against Makefile macro expansion.
1558 cat > conftest.defs <<\EOF
1559 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1560 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1565 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1569 # Without the "./", some shells look in PATH for config.status.
1570 : ${CONFIG_STATUS=./config.status}
1572 echo creating $CONFIG_STATUS
1573 rm -f $CONFIG_STATUS
1574 cat > $CONFIG_STATUS <<EOF
1576 # Generated automatically by configure.
1577 # Run this file to recreate the current configuration.
1578 # This directory was configured as follows,
1579 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1581 # $0 $ac_configure_args
1583 # Compiler output produced by configure, useful for debugging
1584 # configure, is in ./config.log if it exists.
1586 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1589 case "\$ac_option" in
1590 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1591 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1592 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1593 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1594 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1596 -help | --help | --hel | --he | --h)
1597 echo "\$ac_cs_usage"; exit 0 ;;
1598 *) echo "\$ac_cs_usage"; exit 1 ;;
1602 ac_given_srcdir=$srcdir
1604 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1606 cat >> $CONFIG_STATUS <<EOF
1608 # Protect against being on the right side of a sed subst in config.status.
1609 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1610 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1614 s%@CFLAGS@%$CFLAGS%g
1615 s%@CPPFLAGS@%$CPPFLAGS%g
1616 s%@CXXFLAGS@%$CXXFLAGS%g
1617 s%@FFLAGS@%$FFLAGS%g
1619 s%@LDFLAGS@%$LDFLAGS%g
1621 s%@exec_prefix@%$exec_prefix%g
1622 s%@prefix@%$prefix%g
1623 s%@program_transform_name@%$program_transform_name%g
1624 s%@bindir@%$bindir%g
1625 s%@sbindir@%$sbindir%g
1626 s%@libexecdir@%$libexecdir%g
1627 s%@datadir@%$datadir%g
1628 s%@sysconfdir@%$sysconfdir%g
1629 s%@sharedstatedir@%$sharedstatedir%g
1630 s%@localstatedir@%$localstatedir%g
1631 s%@libdir@%$libdir%g
1632 s%@includedir@%$includedir%g
1633 s%@oldincludedir@%$oldincludedir%g
1634 s%@infodir@%$infodir%g
1635 s%@mandir@%$mandir%g
1643 cat >> $CONFIG_STATUS <<\EOF
1645 # Split the substitutions into bite-sized pieces for seds with
1646 # small command number limits, like on Digital OSF/1 and HP-UX.
1647 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1648 ac_file=1 # Number of current file.
1649 ac_beg=1 # First line for current file.
1650 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1653 while $ac_more_lines; do
1654 if test $ac_beg -gt 1; then
1655 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1657 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1659 if test ! -s conftest.s$ac_file; then
1661 rm -f conftest.s$ac_file
1663 if test -z "$ac_sed_cmds"; then
1664 ac_sed_cmds="sed -f conftest.s$ac_file"
1666 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1668 ac_file=`expr $ac_file + 1`
1670 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1673 if test -z "$ac_sed_cmds"; then
1678 cat >> $CONFIG_STATUS <<EOF
1680 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1682 cat >> $CONFIG_STATUS <<\EOF
1683 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1684 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1686 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1687 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1688 *) ac_file_in="${ac_file}.in" ;;
1691 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1693 # Remove last slash and all that follows it. Not all systems have dirname.
1694 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1695 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1696 # The file is in a subdirectory.
1697 test ! -d "$ac_dir" && mkdir "$ac_dir"
1698 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1699 # A "../" for each directory in $ac_dir_suffix.
1700 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1702 ac_dir_suffix= ac_dots=
1705 case "$ac_given_srcdir" in
1707 if test -z "$ac_dots"; then top_srcdir=.
1708 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1709 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1711 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1712 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1716 echo creating "$ac_file"
1718 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1720 *Makefile*) ac_comsub="1i\\
1721 # $configure_input" ;;
1725 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1727 s%@configure_input@%$configure_input%g
1728 s%@srcdir@%$srcdir%g
1729 s%@top_srcdir@%$top_srcdir%g
1730 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1735 cat >> $CONFIG_STATUS <<EOF
1738 cat >> $CONFIG_STATUS <<\EOF
1742 chmod +x $CONFIG_STATUS
1743 rm -fr confdefs* $ac_clean_files
1744 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1