Added call krb5_save_realms() for saving multiple realms given in a config file ...
[mod_auth_kerb.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for Apache Kerberos Module alpha2.
4 #
5 # Report bugs to <modauthkerb-developers@lists.sourceforge.net>.
6 #
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11
12 if expr a : '\(a\)' >/dev/null 2>&1; then
13   as_expr=expr
14 else
15   as_expr=false
16 fi
17
18
19 ## --------------------- ##
20 ## M4sh Initialization.  ##
21 ## --------------------- ##
22
23 # Be Bourne compatible
24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25   emulate sh
26   NULLCMD=:
27 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28   set -o posix
29 fi
30
31 # NLS nuisances.
32 # Support unset when possible.
33 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
34   as_unset=unset
35 else
36   as_unset=false
37 fi
38
39 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
40     { $as_unset LANG || test "${LANG+set}" != set; } ||
41       { LANG=C; export LANG; }
42 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
43     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
44       { LC_ALL=C; export LC_ALL; }
45 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
46     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
47       { LC_TIME=C; export LC_TIME; }
48 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
49     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
50       { LC_CTYPE=C; export LC_CTYPE; }
51 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
52     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
53       { LANGUAGE=C; export LANGUAGE; }
54 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
55     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
56       { LC_COLLATE=C; export LC_COLLATE; }
57 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
58     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
59       { LC_NUMERIC=C; export LC_NUMERIC; }
60 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
61     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
62       { LC_MESSAGES=C; export LC_MESSAGES; }
63
64
65 # Name of the executable.
66 as_me=`(basename "$0") 2>/dev/null ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77 # PATH needs CR, and LINENO needs CR and PATH.
78 # Avoid depending upon Character Ranges.
79 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
80 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
81 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
82 as_cr_digits='0123456789'
83 as_cr_alnum=$as_cr_Letters$as_cr_digits
84
85 # The user is always right.
86 if test "${PATH_SEPARATOR+set}" != set; then
87   echo "#! /bin/sh" >conftest.sh
88   echo  "exit 0"   >>conftest.sh
89   chmod +x conftest.sh
90   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
91     PATH_SEPARATOR=';'
92   else
93     PATH_SEPARATOR=:
94   fi
95   rm -f conftest.sh
96 fi
97
98
99   as_lineno_1=$LINENO
100   as_lineno_2=$LINENO
101   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
102   test "x$as_lineno_1" != "x$as_lineno_2" &&
103   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
104   # Find who we are.  Look in the path if we contain no path at all
105   # relative or not.
106   case $0 in
107     *[\\/]* ) as_myself=$0 ;;
108     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
109 for as_dir in $PATH
110 do
111   IFS=$as_save_IFS
112   test -z "$as_dir" && as_dir=.
113   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
114 done
115
116        ;;
117   esac
118   # We did not find ourselves, most probably we were run as `sh COMMAND'
119   # in which case we are not to be found in the path.
120   if test "x$as_myself" = x; then
121     as_myself=$0
122   fi
123   if test ! -f "$as_myself"; then
124     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
125    { (exit 1); exit 1; }; }
126   fi
127   case $CONFIG_SHELL in
128   '')
129     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
130 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
131 do
132   IFS=$as_save_IFS
133   test -z "$as_dir" && as_dir=.
134   for as_base in sh bash ksh sh5; do
135          case $as_dir in
136          /*)
137            if ("$as_dir/$as_base" -c '
138   as_lineno_1=$LINENO
139   as_lineno_2=$LINENO
140   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
141   test "x$as_lineno_1" != "x$as_lineno_2" &&
142   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
143              CONFIG_SHELL=$as_dir/$as_base
144              export CONFIG_SHELL
145              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
146            fi;;
147          esac
148        done
149 done
150 ;;
151   esac
152
153   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
154   # uniformly replaced by the line number.  The first 'sed' inserts a
155   # line-number line before each line; the second 'sed' does the real
156   # work.  The second script uses 'N' to pair each line-number line
157   # with the numbered line, and appends trailing '-' during
158   # substitution so that $LINENO is not a special case at line end.
159   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
160   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
161   sed '=' <$as_myself |
162     sed '
163       N
164       s,$,-,
165       : loop
166       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
167       t loop
168       s,-$,,
169       s,^['$as_cr_digits']*\n,,
170     ' >$as_me.lineno &&
171   chmod +x $as_me.lineno ||
172     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
173    { (exit 1); exit 1; }; }
174
175   # Don't try to exec as it changes $[0], causing all sort of problems
176   # (the dirname of $[0] is not the place where we might find the
177   # original and so on.  Autoconf is especially sensible to this).
178   . ./$as_me.lineno
179   # Exit status is that of the last command.
180   exit
181 }
182
183
184 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
185   *c*,-n*) ECHO_N= ECHO_C='
186 ' ECHO_T='      ' ;;
187   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
188   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
189 esac
190
191 if expr a : '\(a\)' >/dev/null 2>&1; then
192   as_expr=expr
193 else
194   as_expr=false
195 fi
196
197 rm -f conf$$ conf$$.exe conf$$.file
198 echo >conf$$.file
199 if ln -s conf$$.file conf$$ 2>/dev/null; then
200   # We could just check for DJGPP; but this test a) works b) is more generic
201   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
202   if test -f conf$$.exe; then
203     # Don't use ln at all; we don't have any links
204     as_ln_s='cp -p'
205   else
206     as_ln_s='ln -s'
207   fi
208 elif ln conf$$.file conf$$ 2>/dev/null; then
209   as_ln_s=ln
210 else
211   as_ln_s='cp -p'
212 fi
213 rm -f conf$$ conf$$.exe conf$$.file
214
215 as_executable_p="test -f"
216
217 # Sed expression to map a string onto a valid CPP name.
218 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
219
220 # Sed expression to map a string onto a valid variable name.
221 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
222
223
224 # IFS
225 # We need space, tab and new line, in precisely that order.
226 as_nl='
227 '
228 IFS="   $as_nl"
229
230 # CDPATH.
231 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
232
233
234 # Name of the host.
235 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
236 # so uname gets run too.
237 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
238
239 exec 6>&1
240
241 #
242 # Initializations.
243 #
244 ac_default_prefix=/usr/local
245 cross_compiling=no
246 subdirs=
247 MFLAGS=
248 MAKEFLAGS=
249 SHELL=${CONFIG_SHELL-/bin/sh}
250
251 # Maximum number of lines to put in a shell here document.
252 # This variable seems obsolete.  It should probably be removed, and
253 # only ac_max_sed_lines should be used.
254 : ${ac_max_here_lines=38}
255
256 # Identity of this package.
257 PACKAGE_NAME='Apache Kerberos Module'
258 PACKAGE_TARNAME='mod_auth_kerb'
259 PACKAGE_VERSION='alpha2'
260 PACKAGE_STRING='Apache Kerberos Module alpha2'
261 PACKAGE_BUGREPORT='modauthkerb-developers@lists.sourceforge.net'
262
263 # Factoring default headers for most tests.
264 ac_includes_default="\
265 #include <stdio.h>
266 #if HAVE_SYS_TYPES_H
267 # include <sys/types.h>
268 #endif
269 #if HAVE_SYS_STAT_H
270 # include <sys/stat.h>
271 #endif
272 #if STDC_HEADERS
273 # include <stdlib.h>
274 # include <stddef.h>
275 #else
276 # if HAVE_STDLIB_H
277 #  include <stdlib.h>
278 # endif
279 #endif
280 #if HAVE_STRING_H
281 # if !STDC_HEADERS && HAVE_MEMORY_H
282 #  include <memory.h>
283 # endif
284 # include <string.h>
285 #endif
286 #if HAVE_STRINGS_H
287 # include <strings.h>
288 #endif
289 #if HAVE_INTTYPES_H
290 # include <inttypes.h>
291 #else
292 # if HAVE_STDINT_H
293 #  include <stdint.h>
294 # endif
295 #endif
296 #if HAVE_UNISTD_H
297 # include <unistd.h>
298 #endif"
299
300
301 # Initialize some variables set by options.
302 ac_init_help=
303 ac_init_version=false
304 # The variables have the same names as the options, with
305 # dashes changed to underlines.
306 cache_file=/dev/null
307 exec_prefix=NONE
308 no_create=
309 no_recursion=
310 prefix=NONE
311 program_prefix=NONE
312 program_suffix=NONE
313 program_transform_name=s,x,x,
314 silent=
315 site=
316 srcdir=
317 verbose=
318 x_includes=NONE
319 x_libraries=NONE
320
321 # Installation directory options.
322 # These are left unexpanded so users can "make install exec_prefix=/foo"
323 # and all the variables that are supposed to be based on exec_prefix
324 # by default will actually change.
325 # Use braces instead of parens because sh, perl, etc. also accept them.
326 bindir='${exec_prefix}/bin'
327 sbindir='${exec_prefix}/sbin'
328 libexecdir='${exec_prefix}/libexec'
329 datadir='${prefix}/share'
330 sysconfdir='${prefix}/etc'
331 sharedstatedir='${prefix}/com'
332 localstatedir='${prefix}/var'
333 libdir='${exec_prefix}/lib'
334 includedir='${prefix}/include'
335 oldincludedir='/usr/include'
336 infodir='${prefix}/info'
337 mandir='${prefix}/man'
338
339 ac_prev=
340 for ac_option
341 do
342   # If the previous option needs an argument, assign it.
343   if test -n "$ac_prev"; then
344     eval "$ac_prev=\$ac_option"
345     ac_prev=
346     continue
347   fi
348
349   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
350
351   # Accept the important Cygnus configure options, so we can diagnose typos.
352
353   case $ac_option in
354
355   -bindir | --bindir | --bindi | --bind | --bin | --bi)
356     ac_prev=bindir ;;
357   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
358     bindir=$ac_optarg ;;
359
360   -build | --build | --buil | --bui | --bu)
361     ac_prev=build_alias ;;
362   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
363     build_alias=$ac_optarg ;;
364
365   -cache-file | --cache-file | --cache-fil | --cache-fi \
366   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
367     ac_prev=cache_file ;;
368   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
369   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
370     cache_file=$ac_optarg ;;
371
372   --config-cache | -C)
373     cache_file=config.cache ;;
374
375   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
376     ac_prev=datadir ;;
377   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
378   | --da=*)
379     datadir=$ac_optarg ;;
380
381   -disable-* | --disable-*)
382     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
383     # Reject names that are not valid shell variable names.
384     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
385       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
386    { (exit 1); exit 1; }; }
387     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
388     eval "enable_$ac_feature=no" ;;
389
390   -enable-* | --enable-*)
391     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
392     # Reject names that are not valid shell variable names.
393     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
394       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
395    { (exit 1); exit 1; }; }
396     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
397     case $ac_option in
398       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
399       *) ac_optarg=yes ;;
400     esac
401     eval "enable_$ac_feature='$ac_optarg'" ;;
402
403   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
404   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
405   | --exec | --exe | --ex)
406     ac_prev=exec_prefix ;;
407   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
408   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
409   | --exec=* | --exe=* | --ex=*)
410     exec_prefix=$ac_optarg ;;
411
412   -gas | --gas | --ga | --g)
413     # Obsolete; use --with-gas.
414     with_gas=yes ;;
415
416   -help | --help | --hel | --he | -h)
417     ac_init_help=long ;;
418   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
419     ac_init_help=recursive ;;
420   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
421     ac_init_help=short ;;
422
423   -host | --host | --hos | --ho)
424     ac_prev=host_alias ;;
425   -host=* | --host=* | --hos=* | --ho=*)
426     host_alias=$ac_optarg ;;
427
428   -includedir | --includedir | --includedi | --included | --include \
429   | --includ | --inclu | --incl | --inc)
430     ac_prev=includedir ;;
431   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
432   | --includ=* | --inclu=* | --incl=* | --inc=*)
433     includedir=$ac_optarg ;;
434
435   -infodir | --infodir | --infodi | --infod | --info | --inf)
436     ac_prev=infodir ;;
437   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
438     infodir=$ac_optarg ;;
439
440   -libdir | --libdir | --libdi | --libd)
441     ac_prev=libdir ;;
442   -libdir=* | --libdir=* | --libdi=* | --libd=*)
443     libdir=$ac_optarg ;;
444
445   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
446   | --libexe | --libex | --libe)
447     ac_prev=libexecdir ;;
448   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
449   | --libexe=* | --libex=* | --libe=*)
450     libexecdir=$ac_optarg ;;
451
452   -localstatedir | --localstatedir | --localstatedi | --localstated \
453   | --localstate | --localstat | --localsta | --localst \
454   | --locals | --local | --loca | --loc | --lo)
455     ac_prev=localstatedir ;;
456   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
457   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
458   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
459     localstatedir=$ac_optarg ;;
460
461   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
462     ac_prev=mandir ;;
463   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
464     mandir=$ac_optarg ;;
465
466   -nfp | --nfp | --nf)
467     # Obsolete; use --without-fp.
468     with_fp=no ;;
469
470   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
471   | --no-cr | --no-c | -n)
472     no_create=yes ;;
473
474   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
475   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
476     no_recursion=yes ;;
477
478   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
479   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
480   | --oldin | --oldi | --old | --ol | --o)
481     ac_prev=oldincludedir ;;
482   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
483   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
484   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
485     oldincludedir=$ac_optarg ;;
486
487   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
488     ac_prev=prefix ;;
489   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
490     prefix=$ac_optarg ;;
491
492   -program-prefix | --program-prefix | --program-prefi | --program-pref \
493   | --program-pre | --program-pr | --program-p)
494     ac_prev=program_prefix ;;
495   -program-prefix=* | --program-prefix=* | --program-prefi=* \
496   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
497     program_prefix=$ac_optarg ;;
498
499   -program-suffix | --program-suffix | --program-suffi | --program-suff \
500   | --program-suf | --program-su | --program-s)
501     ac_prev=program_suffix ;;
502   -program-suffix=* | --program-suffix=* | --program-suffi=* \
503   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
504     program_suffix=$ac_optarg ;;
505
506   -program-transform-name | --program-transform-name \
507   | --program-transform-nam | --program-transform-na \
508   | --program-transform-n | --program-transform- \
509   | --program-transform | --program-transfor \
510   | --program-transfo | --program-transf \
511   | --program-trans | --program-tran \
512   | --progr-tra | --program-tr | --program-t)
513     ac_prev=program_transform_name ;;
514   -program-transform-name=* | --program-transform-name=* \
515   | --program-transform-nam=* | --program-transform-na=* \
516   | --program-transform-n=* | --program-transform-=* \
517   | --program-transform=* | --program-transfor=* \
518   | --program-transfo=* | --program-transf=* \
519   | --program-trans=* | --program-tran=* \
520   | --progr-tra=* | --program-tr=* | --program-t=*)
521     program_transform_name=$ac_optarg ;;
522
523   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
524   | -silent | --silent | --silen | --sile | --sil)
525     silent=yes ;;
526
527   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
528     ac_prev=sbindir ;;
529   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
530   | --sbi=* | --sb=*)
531     sbindir=$ac_optarg ;;
532
533   -sharedstatedir | --sharedstatedir | --sharedstatedi \
534   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
535   | --sharedst | --shareds | --shared | --share | --shar \
536   | --sha | --sh)
537     ac_prev=sharedstatedir ;;
538   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
539   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
540   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
541   | --sha=* | --sh=*)
542     sharedstatedir=$ac_optarg ;;
543
544   -site | --site | --sit)
545     ac_prev=site ;;
546   -site=* | --site=* | --sit=*)
547     site=$ac_optarg ;;
548
549   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
550     ac_prev=srcdir ;;
551   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
552     srcdir=$ac_optarg ;;
553
554   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
555   | --syscon | --sysco | --sysc | --sys | --sy)
556     ac_prev=sysconfdir ;;
557   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
558   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
559     sysconfdir=$ac_optarg ;;
560
561   -target | --target | --targe | --targ | --tar | --ta | --t)
562     ac_prev=target_alias ;;
563   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
564     target_alias=$ac_optarg ;;
565
566   -v | -verbose | --verbose | --verbos | --verbo | --verb)
567     verbose=yes ;;
568
569   -version | --version | --versio | --versi | --vers | -V)
570     ac_init_version=: ;;
571
572   -with-* | --with-*)
573     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
574     # Reject names that are not valid shell variable names.
575     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
576       { echo "$as_me: error: invalid package name: $ac_package" >&2
577    { (exit 1); exit 1; }; }
578     ac_package=`echo $ac_package| sed 's/-/_/g'`
579     case $ac_option in
580       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
581       *) ac_optarg=yes ;;
582     esac
583     eval "with_$ac_package='$ac_optarg'" ;;
584
585   -without-* | --without-*)
586     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package | sed 's/-/_/g'`
592     eval "with_$ac_package=no" ;;
593
594   --x)
595     # Obsolete; use --with-x.
596     with_x=yes ;;
597
598   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
599   | --x-incl | --x-inc | --x-in | --x-i)
600     ac_prev=x_includes ;;
601   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
602   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
603     x_includes=$ac_optarg ;;
604
605   -x-libraries | --x-libraries | --x-librarie | --x-librari \
606   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
607     ac_prev=x_libraries ;;
608   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
609   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
610     x_libraries=$ac_optarg ;;
611
612   -*) { echo "$as_me: error: unrecognized option: $ac_option
613 Try \`$0 --help' for more information." >&2
614    { (exit 1); exit 1; }; }
615     ;;
616
617   *=*)
618     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
619     # Reject names that are not valid shell variable names.
620     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
621       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
622    { (exit 1); exit 1; }; }
623     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
624     eval "$ac_envvar='$ac_optarg'"
625     export $ac_envvar ;;
626
627   *)
628     # FIXME: should be removed in autoconf 3.0.
629     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
630     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
631       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
632     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
633     ;;
634
635   esac
636 done
637
638 if test -n "$ac_prev"; then
639   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
640   { echo "$as_me: error: missing argument to $ac_option" >&2
641    { (exit 1); exit 1; }; }
642 fi
643
644 # Be sure to have absolute paths.
645 for ac_var in exec_prefix prefix
646 do
647   eval ac_val=$`echo $ac_var`
648   case $ac_val in
649     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
650     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
651    { (exit 1); exit 1; }; };;
652   esac
653 done
654
655 # Be sure to have absolute paths.
656 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
657               localstatedir libdir includedir oldincludedir infodir mandir
658 do
659   eval ac_val=$`echo $ac_var`
660   case $ac_val in
661     [\\/$]* | ?:[\\/]* ) ;;
662     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
663    { (exit 1); exit 1; }; };;
664   esac
665 done
666
667 # There might be people who depend on the old broken behavior: `$host'
668 # used to hold the argument of --host etc.
669 # FIXME: To remove some day.
670 build=$build_alias
671 host=$host_alias
672 target=$target_alias
673
674 # FIXME: To remove some day.
675 if test "x$host_alias" != x; then
676   if test "x$build_alias" = x; then
677     cross_compiling=maybe
678     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
679     If a cross compiler is detected then cross compile mode will be used." >&2
680   elif test "x$build_alias" != "x$host_alias"; then
681     cross_compiling=yes
682   fi
683 fi
684
685 ac_tool_prefix=
686 test -n "$host_alias" && ac_tool_prefix=$host_alias-
687
688 test "$silent" = yes && exec 6>/dev/null
689
690
691 # Find the source files, if location was not specified.
692 if test -z "$srcdir"; then
693   ac_srcdir_defaulted=yes
694   # Try the directory containing this script, then its parent.
695   ac_confdir=`(dirname "$0") 2>/dev/null ||
696 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
697          X"$0" : 'X\(//\)[^/]' \| \
698          X"$0" : 'X\(//\)$' \| \
699          X"$0" : 'X\(/\)' \| \
700          .     : '\(.\)' 2>/dev/null ||
701 echo X"$0" |
702     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
703           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
704           /^X\(\/\/\)$/{ s//\1/; q; }
705           /^X\(\/\).*/{ s//\1/; q; }
706           s/.*/./; q'`
707   srcdir=$ac_confdir
708   if test ! -r $srcdir/$ac_unique_file; then
709     srcdir=..
710   fi
711 else
712   ac_srcdir_defaulted=no
713 fi
714 if test ! -r $srcdir/$ac_unique_file; then
715   if test "$ac_srcdir_defaulted" = yes; then
716     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
717    { (exit 1); exit 1; }; }
718   else
719     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
720    { (exit 1); exit 1; }; }
721   fi
722 fi
723 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
724 ac_env_build_alias_set=${build_alias+set}
725 ac_env_build_alias_value=$build_alias
726 ac_cv_env_build_alias_set=${build_alias+set}
727 ac_cv_env_build_alias_value=$build_alias
728 ac_env_host_alias_set=${host_alias+set}
729 ac_env_host_alias_value=$host_alias
730 ac_cv_env_host_alias_set=${host_alias+set}
731 ac_cv_env_host_alias_value=$host_alias
732 ac_env_target_alias_set=${target_alias+set}
733 ac_env_target_alias_value=$target_alias
734 ac_cv_env_target_alias_set=${target_alias+set}
735 ac_cv_env_target_alias_value=$target_alias
736 ac_env_CC_set=${CC+set}
737 ac_env_CC_value=$CC
738 ac_cv_env_CC_set=${CC+set}
739 ac_cv_env_CC_value=$CC
740 ac_env_CFLAGS_set=${CFLAGS+set}
741 ac_env_CFLAGS_value=$CFLAGS
742 ac_cv_env_CFLAGS_set=${CFLAGS+set}
743 ac_cv_env_CFLAGS_value=$CFLAGS
744 ac_env_LDFLAGS_set=${LDFLAGS+set}
745 ac_env_LDFLAGS_value=$LDFLAGS
746 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
747 ac_cv_env_LDFLAGS_value=$LDFLAGS
748 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
749 ac_env_CPPFLAGS_value=$CPPFLAGS
750 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
751 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
752 ac_env_CPP_set=${CPP+set}
753 ac_env_CPP_value=$CPP
754 ac_cv_env_CPP_set=${CPP+set}
755 ac_cv_env_CPP_value=$CPP
756
757 #
758 # Report the --help message.
759 #
760 if test "$ac_init_help" = "long"; then
761   # Omit some internal or obsolete options to make the list less imposing.
762   # This message is too long to be a string in the A/UX 3.1 sh.
763   cat <<_ACEOF
764 \`configure' configures Apache Kerberos Module alpha2 to adapt to many kinds of systems.
765
766 Usage: $0 [OPTION]... [VAR=VALUE]...
767
768 To assign environment variables (e.g., CC, CFLAGS...), specify them as
769 VAR=VALUE.  See below for descriptions of some of the useful variables.
770
771 Defaults for the options are specified in brackets.
772
773 Configuration:
774   -h, --help              display this help and exit
775       --help=short        display options specific to this package
776       --help=recursive    display the short help of all the included packages
777   -V, --version           display version information and exit
778   -q, --quiet, --silent   do not print \`checking...' messages
779       --cache-file=FILE   cache test results in FILE [disabled]
780   -C, --config-cache      alias for \`--cache-file=config.cache'
781   -n, --no-create         do not create output files
782       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
783
784 _ACEOF
785
786   cat <<_ACEOF
787 Installation directories:
788   --prefix=PREFIX         install architecture-independent files in PREFIX
789                           [$ac_default_prefix]
790   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
791                           [PREFIX]
792
793 By default, \`make install' will install all the files in
794 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
795 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
796 for instance \`--prefix=\$HOME'.
797
798 For better control, use the options below.
799
800 Fine tuning of the installation directories:
801   --bindir=DIR           user executables [EPREFIX/bin]
802   --sbindir=DIR          system admin executables [EPREFIX/sbin]
803   --libexecdir=DIR       program executables [EPREFIX/libexec]
804   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
805   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
806   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
807   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
808   --libdir=DIR           object code libraries [EPREFIX/lib]
809   --includedir=DIR       C header files [PREFIX/include]
810   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
811   --infodir=DIR          info documentation [PREFIX/info]
812   --mandir=DIR           man documentation [PREFIX/man]
813 _ACEOF
814
815   cat <<\_ACEOF
816 _ACEOF
817 fi
818
819 if test -n "$ac_init_help"; then
820   case $ac_init_help in
821      short | recursive ) echo "Configuration of Apache Kerberos Module alpha2:";;
822    esac
823   cat <<\_ACEOF
824
825 Optional Features:
826   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
827   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
828   --disable-krb5                      force disabling of krb5 support
829   --disable-krb4                      force disabling of krb4 support
830
831 Optional Packages:
832   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
833   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
834   --with-api=API                      api to use (apache1, apache2)
835   --with-apxs=PATH                    path to apxs
836   --with-static                       module is to be statically linked
837   --with-krb5=DIR                     path to Kerberos 5 install
838     --with-krb5-include=DIR           include path to Kerberos 5 install
839     --with-krb5-lib=DIR               lib path to Kerberos 5 install
840   --with-krb4=DIR                     path to Kerberos 4 install
841     --with-krb4-include=DIR           include path to Kerberos 4 install
842     --with-krb4-lib=DIR               lib path to Kerberos 4 install
843
844 Some influential environment variables:
845   CC          C compiler command
846   CFLAGS      C compiler flags
847   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
848               nonstandard directory <lib dir>
849   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
850               headers in a nonstandard directory <include dir>
851   CPP         C preprocessor
852
853 Use these variables to override the choices made by `configure' or to help
854 it to find libraries and programs with nonstandard names/locations.
855
856 Report bugs to <modauthkerb-developers@lists.sourceforge.net>.
857 _ACEOF
858 fi
859
860 if test "$ac_init_help" = "recursive"; then
861   # If there are subdirs, report their specific --help.
862   ac_popdir=`pwd`
863   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
864     test -d $ac_dir || continue
865     ac_builddir=.
866
867 if test "$ac_dir" != .; then
868   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
869   # A "../" for each directory in $ac_dir_suffix.
870   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
871 else
872   ac_dir_suffix= ac_top_builddir=
873 fi
874
875 case $srcdir in
876   .)  # No --srcdir option.  We are building in place.
877     ac_srcdir=.
878     if test -z "$ac_top_builddir"; then
879        ac_top_srcdir=.
880     else
881        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
882     fi ;;
883   [\\/]* | ?:[\\/]* )  # Absolute path.
884     ac_srcdir=$srcdir$ac_dir_suffix;
885     ac_top_srcdir=$srcdir ;;
886   *) # Relative path.
887     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
888     ac_top_srcdir=$ac_top_builddir$srcdir ;;
889 esac
890 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
891 # absolute.
892 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
893 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
894 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
895 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
896
897     cd $ac_dir
898     # Check for guested configure; otherwise get Cygnus style configure.
899     if test -f $ac_srcdir/configure.gnu; then
900       echo
901       $SHELL $ac_srcdir/configure.gnu  --help=recursive
902     elif test -f $ac_srcdir/configure; then
903       echo
904       $SHELL $ac_srcdir/configure  --help=recursive
905     elif test -f $ac_srcdir/configure.ac ||
906            test -f $ac_srcdir/configure.in; then
907       echo
908       $ac_configure --help
909     else
910       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
911     fi
912     cd $ac_popdir
913   done
914 fi
915
916 test -n "$ac_init_help" && exit 0
917 if $ac_init_version; then
918   cat <<\_ACEOF
919 Apache Kerberos Module configure alpha2
920 generated by GNU Autoconf 2.53
921
922 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
923 Free Software Foundation, Inc.
924 This configure script is free software; the Free Software Foundation
925 gives unlimited permission to copy, distribute and modify it.
926 _ACEOF
927   exit 0
928 fi
929 exec 5>config.log
930 cat >&5 <<_ACEOF
931 This file contains any messages produced by compilers while
932 running configure, to aid debugging if configure makes a mistake.
933
934 It was created by Apache Kerberos Module $as_me alpha2, which was
935 generated by GNU Autoconf 2.53.  Invocation command line was
936
937   $ $0 $@
938
939 _ACEOF
940 {
941 cat <<_ASUNAME
942 ## --------- ##
943 ## Platform. ##
944 ## --------- ##
945
946 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
947 uname -m = `(uname -m) 2>/dev/null || echo unknown`
948 uname -r = `(uname -r) 2>/dev/null || echo unknown`
949 uname -s = `(uname -s) 2>/dev/null || echo unknown`
950 uname -v = `(uname -v) 2>/dev/null || echo unknown`
951
952 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
953 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
954
955 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
956 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
957 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
958 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
959 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
960 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
961 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
962
963 _ASUNAME
964
965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
966 for as_dir in $PATH
967 do
968   IFS=$as_save_IFS
969   test -z "$as_dir" && as_dir=.
970   echo "PATH: $as_dir"
971 done
972
973 } >&5
974
975 cat >&5 <<_ACEOF
976
977
978 ## ----------- ##
979 ## Core tests. ##
980 ## ----------- ##
981
982 _ACEOF
983
984
985 # Keep a trace of the command line.
986 # Strip out --no-create and --no-recursion so they do not pile up.
987 # Also quote any args containing shell meta-characters.
988 ac_configure_args=
989 ac_sep=
990 for ac_arg
991 do
992   case $ac_arg in
993   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
994   | --no-cr | --no-c | -n ) continue ;;
995   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
996   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
997     continue ;;
998   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
999     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1000   esac
1001   case " $ac_configure_args " in
1002     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1003     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1004        ac_sep=" " ;;
1005   esac
1006   # Get rid of the leading space.
1007 done
1008
1009 # When interrupted or exit'd, cleanup temporary files, and complete
1010 # config.log.  We remove comments because anyway the quotes in there
1011 # would cause problems or look ugly.
1012 # WARNING: Be sure not to use single quotes in there, as some shells,
1013 # such as our DU 5.0 friend, will then `close' the trap.
1014 trap 'exit_status=$?
1015   # Save into config.log some information that might help in debugging.
1016   {
1017     echo
1018     cat <<\_ASBOX
1019 ## ---------------- ##
1020 ## Cache variables. ##
1021 ## ---------------- ##
1022 _ASBOX
1023     echo
1024     # The following way of writing the cache mishandles newlines in values,
1025 {
1026   (set) 2>&1 |
1027     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1028     *ac_space=\ *)
1029       sed -n \
1030         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1031           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1032       ;;
1033     *)
1034       sed -n \
1035         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1036       ;;
1037     esac;
1038 }
1039     echo
1040     if test -s confdefs.h; then
1041       cat <<\_ASBOX
1042 ## ----------- ##
1043 ## confdefs.h. ##
1044 ## ----------- ##
1045 _ASBOX
1046       echo
1047       sed "/^$/d" confdefs.h
1048       echo
1049     fi
1050     test "$ac_signal" != 0 &&
1051       echo "$as_me: caught signal $ac_signal"
1052     echo "$as_me: exit $exit_status"
1053   } >&5
1054   rm -f core core.* *.core &&
1055   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1056     exit $exit_status
1057      ' 0
1058 for ac_signal in 1 2 13 15; do
1059   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1060 done
1061 ac_signal=0
1062
1063 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1064 rm -rf conftest* confdefs.h
1065 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1066 echo >confdefs.h
1067
1068 # Predefined preprocessor variables.
1069
1070 cat >>confdefs.h <<_ACEOF
1071 #define PACKAGE_NAME "$PACKAGE_NAME"
1072 _ACEOF
1073
1074
1075 cat >>confdefs.h <<_ACEOF
1076 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1077 _ACEOF
1078
1079
1080 cat >>confdefs.h <<_ACEOF
1081 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1082 _ACEOF
1083
1084
1085 cat >>confdefs.h <<_ACEOF
1086 #define PACKAGE_STRING "$PACKAGE_STRING"
1087 _ACEOF
1088
1089
1090 cat >>confdefs.h <<_ACEOF
1091 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1092 _ACEOF
1093
1094
1095 # Let the site file select an alternate cache file if it wants to.
1096 # Prefer explicitly selected file to automatically selected ones.
1097 if test -z "$CONFIG_SITE"; then
1098   if test "x$prefix" != xNONE; then
1099     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1100   else
1101     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1102   fi
1103 fi
1104 for ac_site_file in $CONFIG_SITE; do
1105   if test -r "$ac_site_file"; then
1106     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1107 echo "$as_me: loading site script $ac_site_file" >&6;}
1108     sed 's/^/| /' "$ac_site_file" >&5
1109     . "$ac_site_file"
1110   fi
1111 done
1112
1113 if test -r "$cache_file"; then
1114   # Some versions of bash will fail to source /dev/null (special
1115   # files actually), so we avoid doing that.
1116   if test -f "$cache_file"; then
1117     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1118 echo "$as_me: loading cache $cache_file" >&6;}
1119     case $cache_file in
1120       [\\/]* | ?:[\\/]* ) . $cache_file;;
1121       *)                      . ./$cache_file;;
1122     esac
1123   fi
1124 else
1125   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1126 echo "$as_me: creating cache $cache_file" >&6;}
1127   >$cache_file
1128 fi
1129
1130 # Check that the precious variables saved in the cache have kept the same
1131 # value.
1132 ac_cache_corrupted=false
1133 for ac_var in `(set) 2>&1 |
1134                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1135   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1136   eval ac_new_set=\$ac_env_${ac_var}_set
1137   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1138   eval ac_new_val="\$ac_env_${ac_var}_value"
1139   case $ac_old_set,$ac_new_set in
1140     set,)
1141       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1142 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1143       ac_cache_corrupted=: ;;
1144     ,set)
1145       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1146 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1147       ac_cache_corrupted=: ;;
1148     ,);;
1149     *)
1150       if test "x$ac_old_val" != "x$ac_new_val"; then
1151         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1152 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1153         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1154 echo "$as_me:   former value:  $ac_old_val" >&2;}
1155         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1156 echo "$as_me:   current value: $ac_new_val" >&2;}
1157         ac_cache_corrupted=:
1158       fi;;
1159   esac
1160   # Pass precious variables to config.status.
1161   if test "$ac_new_set" = set; then
1162     case $ac_new_val in
1163     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1164       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1165     *) ac_arg=$ac_var=$ac_new_val ;;
1166     esac
1167     case " $ac_configure_args " in
1168       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1169       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1170     esac
1171   fi
1172 done
1173 if $ac_cache_corrupted; then
1174   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1175 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1176   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1177 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1178    { (exit 1); exit 1; }; }
1179 fi
1180
1181 ac_ext=c
1182 ac_cpp='$CPP $CPPFLAGS'
1183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215 # Check whether --with-api or --without-api was given.
1216 if test "${with_api+set}" = set; then
1217   withval="$with_api"
1218
1219         case $withval in
1220                 'apache1')
1221                         ac_api=apache1
1222                         ac_apidefs="-DAPXS1"
1223                         ;;
1224                 'apache2')
1225                         ac_api=apache2
1226                         ac_apidefs="-DAPXS2"
1227                         ;;
1228                 *)
1229                         { { echo "$as_me:$LINENO: error: You can only specify apache1 or apache2." >&5
1230 echo "$as_me: error: You can only specify apache1 or apache2." >&2;}
1231    { (exit 1); exit 1; }; }
1232                         ;;
1233         esac
1234
1235
1236 fi;
1237
1238
1239 # Check whether --with-apxs or --without-apxs was given.
1240 if test "${with_apxs+set}" = set; then
1241   withval="$with_apxs"
1242
1243         if test -e $withval ; then
1244                 APXS="$withval"
1245         else
1246                 { { echo "$as_me:$LINENO: error: Specified apxs path does not exist." >&5
1247 echo "$as_me: error: Specified apxs path does not exist." >&2;}
1248    { (exit 1); exit 1; }; }
1249         fi
1250
1251
1252 fi;
1253
1254
1255 # Check whether --with-static or --without-static was given.
1256 if test "${with_static+set}" = set; then
1257   withval="$with_static"
1258
1259         ac_static="yes"
1260
1261
1262 fi;
1263
1264
1265 # Check whether --with-krb5 or --without-krb5 was given.
1266 if test "${with_krb5+set}" = set; then
1267   withval="$with_krb5"
1268
1269         if test -d $withval ; then
1270                 CFLAGS="$CFLAGS -I$withval/include -I$withval/include/kerberosIV"
1271                 CPPFLAGS="$CPPFLAGS -I$withval/include -I$withval/include/kerberosIV"
1272                 LDFLAGS="$LDFLAGS -L$withval/lib"
1273
1274                 case "$host" in
1275                         *-solaris*)
1276                                 LDFLAGS="$LDFLAGS -R$withval/lib"
1277                                 ;;
1278                 esac
1279         else
1280                 { { echo "$as_me:$LINENO: error: Specified Kerberos 5 directory doesn't exist." >&5
1281 echo "$as_me: error: Specified Kerberos 5 directory doesn't exist." >&2;}
1282    { (exit 1); exit 1; }; }
1283         fi
1284
1285
1286 fi;
1287
1288
1289 # Check whether --with-krb5-include or --without-krb5-include was given.
1290 if test "${with_krb5_include+set}" = set; then
1291   withval="$with_krb5_include"
1292
1293         if test -d $withval ; then
1294                 CFLAGS="$CFLAGS -I$withval -I$withval/include/kerberosIV"
1295                 CPPFLAGS="$CPPFLAGS -I$withval -I$withval/include/kerberosIV"
1296         else
1297                 { { echo "$as_me:$LINENO: error: Specified Kerberos 5 directory doesn't exist." >&5
1298 echo "$as_me: error: Specified Kerberos 5 directory doesn't exist." >&2;}
1299    { (exit 1); exit 1; }; }
1300         fi
1301
1302
1303 fi;
1304
1305
1306 # Check whether --with-krb5-lib or --without-krb5-lib was given.
1307 if test "${with_krb5_lib+set}" = set; then
1308   withval="$with_krb5_lib"
1309
1310         if test -d $withval ; then
1311                 LDFLAGS="$LDFLAGS -L$withval"
1312
1313                 case "$host" in
1314                         *-solaris*)
1315                                 LDFLAGS="$LDFLAGS -R$withval"
1316                                 ;;
1317                 esac
1318         else
1319                 { { echo "$as_me:$LINENO: error: Specified Kerberos 5 directory doesn't exist." >&5
1320 echo "$as_me: error: Specified Kerberos 5 directory doesn't exist." >&2;}
1321    { (exit 1); exit 1; }; }
1322         fi
1323
1324
1325 fi;
1326
1327 # Check whether --enable-krb5 or --disable-krb5 was given.
1328 if test "${enable_krb5+set}" = set; then
1329   enableval="$enable_krb5"
1330
1331         if test "$enable_krb5" = "no" ; then
1332                 ac_krb5_disable="yes"
1333         fi
1334
1335 fi;
1336
1337
1338 # Check whether --with-krb4 or --without-krb4 was given.
1339 if test "${with_krb4+set}" = set; then
1340   withval="$with_krb4"
1341
1342         if test -d $withval ; then
1343                 CFLAGS="$CFLAGS -I$withval/include"
1344                 CPPFLAGS="$CPPFLAGS -I$withval/include"
1345                 LDFLAGS="$LDFLAGS -L$withval/lib"
1346
1347                 case "$host" in
1348                         *-solaris*)
1349                                 LDFLAGS="$LDFLAGS -R$withval/lib"
1350                                 ;;
1351                 esac
1352         else
1353                 { { echo "$as_me:$LINENO: error: Specified Kerberos 4 directory doesn't exist." >&5
1354 echo "$as_me: error: Specified Kerberos 4 directory doesn't exist." >&2;}
1355    { (exit 1); exit 1; }; }
1356         fi
1357
1358
1359 fi;
1360
1361
1362 # Check whether --with-krb4-include or --without-krb4-include was given.
1363 if test "${with_krb4_include+set}" = set; then
1364   withval="$with_krb4_include"
1365
1366         if test -d $withval ; then
1367                 CFLAGS="$CFLAGS -I$withval"
1368                 CPPFLAGS="$CPPFLAGS -I$withval"
1369         else
1370                 { { echo "$as_me:$LINENO: error: Specified Kerberos 4 directory doesn't exist." >&5
1371 echo "$as_me: error: Specified Kerberos 4 directory doesn't exist." >&2;}
1372    { (exit 1); exit 1; }; }
1373         fi
1374
1375
1376 fi;
1377
1378
1379 # Check whether --with-krb4-lib or --without-krb4-lib was given.
1380 if test "${with_krb4_lib+set}" = set; then
1381   withval="$with_krb4_lib"
1382
1383         if test -d $withval ; then
1384                 LDFLAGS="$LDFLAGS -L$withval"
1385
1386                 case "$host" in
1387                         *-solaris*)
1388                                 LDFLAGS="$LDFLAGS -R$withval"
1389                                 ;;
1390                 esac
1391         else
1392                 { { echo "$as_me:$LINENO: error: Specified Kerberos 4 directory doesn't exist." >&5
1393 echo "$as_me: error: Specified Kerberos 4 directory doesn't exist." >&2;}
1394    { (exit 1); exit 1; }; }
1395         fi
1396
1397
1398 fi;
1399
1400 # Check whether --enable-krb4 or --disable-krb4 was given.
1401 if test "${enable_krb4+set}" = set; then
1402   enableval="$enable_krb4"
1403
1404         if test "$enable_krb4" = "no" ; then
1405                 ac_krb4_disable="yes"
1406         fi
1407
1408 fi;
1409
1410
1411 ac_ext=c
1412 ac_cpp='$CPP $CPPFLAGS'
1413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1416 if test -n "$ac_tool_prefix"; then
1417   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1418 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1419 echo "$as_me:$LINENO: checking for $ac_word" >&5
1420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1421 if test "${ac_cv_prog_CC+set}" = set; then
1422   echo $ECHO_N "(cached) $ECHO_C" >&6
1423 else
1424   if test -n "$CC"; then
1425   ac_cv_prog_CC="$CC" # Let the user override the test.
1426 else
1427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1428 for as_dir in $PATH
1429 do
1430   IFS=$as_save_IFS
1431   test -z "$as_dir" && as_dir=.
1432   for ac_exec_ext in '' $ac_executable_extensions; do
1433   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1434     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1435     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1436     break 2
1437   fi
1438 done
1439 done
1440
1441 fi
1442 fi
1443 CC=$ac_cv_prog_CC
1444 if test -n "$CC"; then
1445   echo "$as_me:$LINENO: result: $CC" >&5
1446 echo "${ECHO_T}$CC" >&6
1447 else
1448   echo "$as_me:$LINENO: result: no" >&5
1449 echo "${ECHO_T}no" >&6
1450 fi
1451
1452 fi
1453 if test -z "$ac_cv_prog_CC"; then
1454   ac_ct_CC=$CC
1455   # Extract the first word of "gcc", so it can be a program name with args.
1456 set dummy gcc; ac_word=$2
1457 echo "$as_me:$LINENO: checking for $ac_word" >&5
1458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1459 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1460   echo $ECHO_N "(cached) $ECHO_C" >&6
1461 else
1462   if test -n "$ac_ct_CC"; then
1463   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1464 else
1465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1466 for as_dir in $PATH
1467 do
1468   IFS=$as_save_IFS
1469   test -z "$as_dir" && as_dir=.
1470   for ac_exec_ext in '' $ac_executable_extensions; do
1471   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1472     ac_cv_prog_ac_ct_CC="gcc"
1473     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1474     break 2
1475   fi
1476 done
1477 done
1478
1479 fi
1480 fi
1481 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1482 if test -n "$ac_ct_CC"; then
1483   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1484 echo "${ECHO_T}$ac_ct_CC" >&6
1485 else
1486   echo "$as_me:$LINENO: result: no" >&5
1487 echo "${ECHO_T}no" >&6
1488 fi
1489
1490   CC=$ac_ct_CC
1491 else
1492   CC="$ac_cv_prog_CC"
1493 fi
1494
1495 if test -z "$CC"; then
1496   if test -n "$ac_tool_prefix"; then
1497   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1498 set dummy ${ac_tool_prefix}cc; ac_word=$2
1499 echo "$as_me:$LINENO: checking for $ac_word" >&5
1500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1501 if test "${ac_cv_prog_CC+set}" = set; then
1502   echo $ECHO_N "(cached) $ECHO_C" >&6
1503 else
1504   if test -n "$CC"; then
1505   ac_cv_prog_CC="$CC" # Let the user override the test.
1506 else
1507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1508 for as_dir in $PATH
1509 do
1510   IFS=$as_save_IFS
1511   test -z "$as_dir" && as_dir=.
1512   for ac_exec_ext in '' $ac_executable_extensions; do
1513   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1514     ac_cv_prog_CC="${ac_tool_prefix}cc"
1515     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1516     break 2
1517   fi
1518 done
1519 done
1520
1521 fi
1522 fi
1523 CC=$ac_cv_prog_CC
1524 if test -n "$CC"; then
1525   echo "$as_me:$LINENO: result: $CC" >&5
1526 echo "${ECHO_T}$CC" >&6
1527 else
1528   echo "$as_me:$LINENO: result: no" >&5
1529 echo "${ECHO_T}no" >&6
1530 fi
1531
1532 fi
1533 if test -z "$ac_cv_prog_CC"; then
1534   ac_ct_CC=$CC
1535   # Extract the first word of "cc", so it can be a program name with args.
1536 set dummy cc; ac_word=$2
1537 echo "$as_me:$LINENO: checking for $ac_word" >&5
1538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1539 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1540   echo $ECHO_N "(cached) $ECHO_C" >&6
1541 else
1542   if test -n "$ac_ct_CC"; then
1543   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1544 else
1545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1546 for as_dir in $PATH
1547 do
1548   IFS=$as_save_IFS
1549   test -z "$as_dir" && as_dir=.
1550   for ac_exec_ext in '' $ac_executable_extensions; do
1551   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1552     ac_cv_prog_ac_ct_CC="cc"
1553     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1554     break 2
1555   fi
1556 done
1557 done
1558
1559 fi
1560 fi
1561 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1562 if test -n "$ac_ct_CC"; then
1563   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1564 echo "${ECHO_T}$ac_ct_CC" >&6
1565 else
1566   echo "$as_me:$LINENO: result: no" >&5
1567 echo "${ECHO_T}no" >&6
1568 fi
1569
1570   CC=$ac_ct_CC
1571 else
1572   CC="$ac_cv_prog_CC"
1573 fi
1574
1575 fi
1576 if test -z "$CC"; then
1577   # Extract the first word of "cc", so it can be a program name with args.
1578 set dummy cc; ac_word=$2
1579 echo "$as_me:$LINENO: checking for $ac_word" >&5
1580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1581 if test "${ac_cv_prog_CC+set}" = set; then
1582   echo $ECHO_N "(cached) $ECHO_C" >&6
1583 else
1584   if test -n "$CC"; then
1585   ac_cv_prog_CC="$CC" # Let the user override the test.
1586 else
1587   ac_prog_rejected=no
1588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1589 for as_dir in $PATH
1590 do
1591   IFS=$as_save_IFS
1592   test -z "$as_dir" && as_dir=.
1593   for ac_exec_ext in '' $ac_executable_extensions; do
1594   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1595     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1596        ac_prog_rejected=yes
1597        continue
1598      fi
1599     ac_cv_prog_CC="cc"
1600     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1601     break 2
1602   fi
1603 done
1604 done
1605
1606 if test $ac_prog_rejected = yes; then
1607   # We found a bogon in the path, so make sure we never use it.
1608   set dummy $ac_cv_prog_CC
1609   shift
1610   if test $# != 0; then
1611     # We chose a different compiler from the bogus one.
1612     # However, it has the same basename, so the bogon will be chosen
1613     # first if we set CC to just the basename; use the full file name.
1614     shift
1615     set dummy "$as_dir/$ac_word" ${1+"$@"}
1616     shift
1617     ac_cv_prog_CC="$@"
1618   fi
1619 fi
1620 fi
1621 fi
1622 CC=$ac_cv_prog_CC
1623 if test -n "$CC"; then
1624   echo "$as_me:$LINENO: result: $CC" >&5
1625 echo "${ECHO_T}$CC" >&6
1626 else
1627   echo "$as_me:$LINENO: result: no" >&5
1628 echo "${ECHO_T}no" >&6
1629 fi
1630
1631 fi
1632 if test -z "$CC"; then
1633   if test -n "$ac_tool_prefix"; then
1634   for ac_prog in cl
1635   do
1636     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1637 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1638 echo "$as_me:$LINENO: checking for $ac_word" >&5
1639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1640 if test "${ac_cv_prog_CC+set}" = set; then
1641   echo $ECHO_N "(cached) $ECHO_C" >&6
1642 else
1643   if test -n "$CC"; then
1644   ac_cv_prog_CC="$CC" # Let the user override the test.
1645 else
1646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1647 for as_dir in $PATH
1648 do
1649   IFS=$as_save_IFS
1650   test -z "$as_dir" && as_dir=.
1651   for ac_exec_ext in '' $ac_executable_extensions; do
1652   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1653     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1655     break 2
1656   fi
1657 done
1658 done
1659
1660 fi
1661 fi
1662 CC=$ac_cv_prog_CC
1663 if test -n "$CC"; then
1664   echo "$as_me:$LINENO: result: $CC" >&5
1665 echo "${ECHO_T}$CC" >&6
1666 else
1667   echo "$as_me:$LINENO: result: no" >&5
1668 echo "${ECHO_T}no" >&6
1669 fi
1670
1671     test -n "$CC" && break
1672   done
1673 fi
1674 if test -z "$CC"; then
1675   ac_ct_CC=$CC
1676   for ac_prog in cl
1677 do
1678   # Extract the first word of "$ac_prog", so it can be a program name with args.
1679 set dummy $ac_prog; ac_word=$2
1680 echo "$as_me:$LINENO: checking for $ac_word" >&5
1681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1682 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1683   echo $ECHO_N "(cached) $ECHO_C" >&6
1684 else
1685   if test -n "$ac_ct_CC"; then
1686   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1687 else
1688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1689 for as_dir in $PATH
1690 do
1691   IFS=$as_save_IFS
1692   test -z "$as_dir" && as_dir=.
1693   for ac_exec_ext in '' $ac_executable_extensions; do
1694   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1695     ac_cv_prog_ac_ct_CC="$ac_prog"
1696     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1697     break 2
1698   fi
1699 done
1700 done
1701
1702 fi
1703 fi
1704 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1705 if test -n "$ac_ct_CC"; then
1706   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1707 echo "${ECHO_T}$ac_ct_CC" >&6
1708 else
1709   echo "$as_me:$LINENO: result: no" >&5
1710 echo "${ECHO_T}no" >&6
1711 fi
1712
1713   test -n "$ac_ct_CC" && break
1714 done
1715
1716   CC=$ac_ct_CC
1717 fi
1718
1719 fi
1720
1721
1722 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1723 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1724    { (exit 1); exit 1; }; }
1725
1726 # Provide some information about the compiler.
1727 echo "$as_me:$LINENO:" \
1728      "checking for C compiler version" >&5
1729 ac_compiler=`set X $ac_compile; echo $2`
1730 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1731   (eval $ac_compiler --version </dev/null >&5) 2>&5
1732   ac_status=$?
1733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1734   (exit $ac_status); }
1735 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1736   (eval $ac_compiler -v </dev/null >&5) 2>&5
1737   ac_status=$?
1738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1739   (exit $ac_status); }
1740 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1741   (eval $ac_compiler -V </dev/null >&5) 2>&5
1742   ac_status=$?
1743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1744   (exit $ac_status); }
1745
1746 cat >conftest.$ac_ext <<_ACEOF
1747 #line $LINENO "configure"
1748 #include "confdefs.h"
1749
1750 #ifdef F77_DUMMY_MAIN
1751 #  ifdef __cplusplus
1752      extern "C"
1753 #  endif
1754    int F77_DUMMY_MAIN() { return 1; }
1755 #endif
1756 int
1757 main ()
1758 {
1759
1760   ;
1761   return 0;
1762 }
1763 _ACEOF
1764 ac_clean_files_save=$ac_clean_files
1765 ac_clean_files="$ac_clean_files a.out a.exe"
1766 # Try to create an executable without -o first, disregard a.out.
1767 # It will help us diagnose broken compilers, and finding out an intuition
1768 # of exeext.
1769 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1770 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1771 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1772 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1773   (eval $ac_link_default) 2>&5
1774   ac_status=$?
1775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1776   (exit $ac_status); }; then
1777   # Find the output, starting from the most likely.  This scheme is
1778 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1779 # resort.
1780
1781 # Be careful to initialize this variable, since it used to be cached.
1782 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1783 ac_cv_exeext=
1784 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1785                 ls a.out conftest 2>/dev/null;
1786                 ls a.* conftest.* 2>/dev/null`; do
1787   case $ac_file in
1788     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1789     a.out ) # We found the default executable, but exeext='' is most
1790             # certainly right.
1791             break;;
1792     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1793           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1794           export ac_cv_exeext
1795           break;;
1796     * ) break;;
1797   esac
1798 done
1799 else
1800   echo "$as_me: failed program was:" >&5
1801 cat conftest.$ac_ext >&5
1802 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1803 echo "$as_me: error: C compiler cannot create executables" >&2;}
1804    { (exit 77); exit 77; }; }
1805 fi
1806
1807 ac_exeext=$ac_cv_exeext
1808 echo "$as_me:$LINENO: result: $ac_file" >&5
1809 echo "${ECHO_T}$ac_file" >&6
1810
1811 # Check the compiler produces executables we can run.  If not, either
1812 # the compiler is broken, or we cross compile.
1813 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1814 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1815 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1816 # If not cross compiling, check that we can run a simple program.
1817 if test "$cross_compiling" != yes; then
1818   if { ac_try='./$ac_file'
1819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1820   (eval $ac_try) 2>&5
1821   ac_status=$?
1822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1823   (exit $ac_status); }; }; then
1824     cross_compiling=no
1825   else
1826     if test "$cross_compiling" = maybe; then
1827         cross_compiling=yes
1828     else
1829         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1830 If you meant to cross compile, use \`--host'." >&5
1831 echo "$as_me: error: cannot run C compiled programs.
1832 If you meant to cross compile, use \`--host'." >&2;}
1833    { (exit 1); exit 1; }; }
1834     fi
1835   fi
1836 fi
1837 echo "$as_me:$LINENO: result: yes" >&5
1838 echo "${ECHO_T}yes" >&6
1839
1840 rm -f a.out a.exe conftest$ac_cv_exeext
1841 ac_clean_files=$ac_clean_files_save
1842 # Check the compiler produces executables we can run.  If not, either
1843 # the compiler is broken, or we cross compile.
1844 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1845 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1846 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1847 echo "${ECHO_T}$cross_compiling" >&6
1848
1849 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1850 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1852   (eval $ac_link) 2>&5
1853   ac_status=$?
1854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1855   (exit $ac_status); }; then
1856   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1857 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1858 # work properly (i.e., refer to `conftest.exe'), while it won't with
1859 # `rm'.
1860 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1861   case $ac_file in
1862     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1863     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1864           export ac_cv_exeext
1865           break;;
1866     * ) break;;
1867   esac
1868 done
1869 else
1870   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1871 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1872    { (exit 1); exit 1; }; }
1873 fi
1874
1875 rm -f conftest$ac_cv_exeext
1876 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1877 echo "${ECHO_T}$ac_cv_exeext" >&6
1878
1879 rm -f conftest.$ac_ext
1880 EXEEXT=$ac_cv_exeext
1881 ac_exeext=$EXEEXT
1882 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1883 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1884 if test "${ac_cv_objext+set}" = set; then
1885   echo $ECHO_N "(cached) $ECHO_C" >&6
1886 else
1887   cat >conftest.$ac_ext <<_ACEOF
1888 #line $LINENO "configure"
1889 #include "confdefs.h"
1890
1891 #ifdef F77_DUMMY_MAIN
1892 #  ifdef __cplusplus
1893      extern "C"
1894 #  endif
1895    int F77_DUMMY_MAIN() { return 1; }
1896 #endif
1897 int
1898 main ()
1899 {
1900
1901   ;
1902   return 0;
1903 }
1904 _ACEOF
1905 rm -f conftest.o conftest.obj
1906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1907   (eval $ac_compile) 2>&5
1908   ac_status=$?
1909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1910   (exit $ac_status); }; then
1911   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1912   case $ac_file in
1913     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1914     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1915        break;;
1916   esac
1917 done
1918 else
1919   echo "$as_me: failed program was:" >&5
1920 cat conftest.$ac_ext >&5
1921 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1922 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1923    { (exit 1); exit 1; }; }
1924 fi
1925
1926 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1927 fi
1928 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1929 echo "${ECHO_T}$ac_cv_objext" >&6
1930 OBJEXT=$ac_cv_objext
1931 ac_objext=$OBJEXT
1932 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1933 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1934 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1935   echo $ECHO_N "(cached) $ECHO_C" >&6
1936 else
1937   cat >conftest.$ac_ext <<_ACEOF
1938 #line $LINENO "configure"
1939 #include "confdefs.h"
1940
1941 #ifdef F77_DUMMY_MAIN
1942 #  ifdef __cplusplus
1943      extern "C"
1944 #  endif
1945    int F77_DUMMY_MAIN() { return 1; }
1946 #endif
1947 int
1948 main ()
1949 {
1950 #ifndef __GNUC__
1951        choke me
1952 #endif
1953
1954   ;
1955   return 0;
1956 }
1957 _ACEOF
1958 rm -f conftest.$ac_objext
1959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1960   (eval $ac_compile) 2>&5
1961   ac_status=$?
1962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1963   (exit $ac_status); } &&
1964          { ac_try='test -s conftest.$ac_objext'
1965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1966   (eval $ac_try) 2>&5
1967   ac_status=$?
1968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969   (exit $ac_status); }; }; then
1970   ac_compiler_gnu=yes
1971 else
1972   echo "$as_me: failed program was:" >&5
1973 cat conftest.$ac_ext >&5
1974 ac_compiler_gnu=no
1975 fi
1976 rm -f conftest.$ac_objext conftest.$ac_ext
1977 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1978
1979 fi
1980 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1981 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1982 GCC=`test $ac_compiler_gnu = yes && echo yes`
1983 ac_test_CFLAGS=${CFLAGS+set}
1984 ac_save_CFLAGS=$CFLAGS
1985 CFLAGS="-g"
1986 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1987 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1988 if test "${ac_cv_prog_cc_g+set}" = set; then
1989   echo $ECHO_N "(cached) $ECHO_C" >&6
1990 else
1991   cat >conftest.$ac_ext <<_ACEOF
1992 #line $LINENO "configure"
1993 #include "confdefs.h"
1994
1995 #ifdef F77_DUMMY_MAIN
1996 #  ifdef __cplusplus
1997      extern "C"
1998 #  endif
1999    int F77_DUMMY_MAIN() { return 1; }
2000 #endif
2001 int
2002 main ()
2003 {
2004
2005   ;
2006   return 0;
2007 }
2008 _ACEOF
2009 rm -f conftest.$ac_objext
2010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2011   (eval $ac_compile) 2>&5
2012   ac_status=$?
2013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2014   (exit $ac_status); } &&
2015          { ac_try='test -s conftest.$ac_objext'
2016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2017   (eval $ac_try) 2>&5
2018   ac_status=$?
2019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2020   (exit $ac_status); }; }; then
2021   ac_cv_prog_cc_g=yes
2022 else
2023   echo "$as_me: failed program was:" >&5
2024 cat conftest.$ac_ext >&5
2025 ac_cv_prog_cc_g=no
2026 fi
2027 rm -f conftest.$ac_objext conftest.$ac_ext
2028 fi
2029 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2030 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2031 if test "$ac_test_CFLAGS" = set; then
2032   CFLAGS=$ac_save_CFLAGS
2033 elif test $ac_cv_prog_cc_g = yes; then
2034   if test "$GCC" = yes; then
2035     CFLAGS="-g -O2"
2036   else
2037     CFLAGS="-g"
2038   fi
2039 else
2040   if test "$GCC" = yes; then
2041     CFLAGS="-O2"
2042   else
2043     CFLAGS=
2044   fi
2045 fi
2046 # Some people use a C++ compiler to compile C.  Since we use `exit',
2047 # in C++ we need to declare it.  In case someone uses the same compiler
2048 # for both compiling C and C++ we need to have the C++ compiler decide
2049 # the declaration of exit, since it's the most demanding environment.
2050 cat >conftest.$ac_ext <<_ACEOF
2051 #ifndef __cplusplus
2052   choke me
2053 #endif
2054 _ACEOF
2055 rm -f conftest.$ac_objext
2056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2057   (eval $ac_compile) 2>&5
2058   ac_status=$?
2059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060   (exit $ac_status); } &&
2061          { ac_try='test -s conftest.$ac_objext'
2062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2063   (eval $ac_try) 2>&5
2064   ac_status=$?
2065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2066   (exit $ac_status); }; }; then
2067   for ac_declaration in \
2068    ''\
2069    '#include <stdlib.h>' \
2070    'extern "C" void std::exit (int) throw (); using std::exit;' \
2071    'extern "C" void std::exit (int); using std::exit;' \
2072    'extern "C" void exit (int) throw ();' \
2073    'extern "C" void exit (int);' \
2074    'void exit (int);'
2075 do
2076   cat >conftest.$ac_ext <<_ACEOF
2077 #line $LINENO "configure"
2078 #include "confdefs.h"
2079 #include <stdlib.h>
2080 $ac_declaration
2081 #ifdef F77_DUMMY_MAIN
2082 #  ifdef __cplusplus
2083      extern "C"
2084 #  endif
2085    int F77_DUMMY_MAIN() { return 1; }
2086 #endif
2087 int
2088 main ()
2089 {
2090 exit (42);
2091   ;
2092   return 0;
2093 }
2094 _ACEOF
2095 rm -f conftest.$ac_objext
2096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2097   (eval $ac_compile) 2>&5
2098   ac_status=$?
2099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100   (exit $ac_status); } &&
2101          { ac_try='test -s conftest.$ac_objext'
2102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2103   (eval $ac_try) 2>&5
2104   ac_status=$?
2105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106   (exit $ac_status); }; }; then
2107   :
2108 else
2109   echo "$as_me: failed program was:" >&5
2110 cat conftest.$ac_ext >&5
2111 continue
2112 fi
2113 rm -f conftest.$ac_objext conftest.$ac_ext
2114   cat >conftest.$ac_ext <<_ACEOF
2115 #line $LINENO "configure"
2116 #include "confdefs.h"
2117 $ac_declaration
2118 #ifdef F77_DUMMY_MAIN
2119 #  ifdef __cplusplus
2120      extern "C"
2121 #  endif
2122    int F77_DUMMY_MAIN() { return 1; }
2123 #endif
2124 int
2125 main ()
2126 {
2127 exit (42);
2128   ;
2129   return 0;
2130 }
2131 _ACEOF
2132 rm -f conftest.$ac_objext
2133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2134   (eval $ac_compile) 2>&5
2135   ac_status=$?
2136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137   (exit $ac_status); } &&
2138          { ac_try='test -s conftest.$ac_objext'
2139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2140   (eval $ac_try) 2>&5
2141   ac_status=$?
2142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143   (exit $ac_status); }; }; then
2144   break
2145 else
2146   echo "$as_me: failed program was:" >&5
2147 cat conftest.$ac_ext >&5
2148 fi
2149 rm -f conftest.$ac_objext conftest.$ac_ext
2150 done
2151 rm -f conftest*
2152 if test -n "$ac_declaration"; then
2153   echo '#ifdef __cplusplus' >>confdefs.h
2154   echo $ac_declaration      >>confdefs.h
2155   echo '#endif'             >>confdefs.h
2156 fi
2157
2158 else
2159   echo "$as_me: failed program was:" >&5
2160 cat conftest.$ac_ext >&5
2161 fi
2162 rm -f conftest.$ac_objext conftest.$ac_ext
2163 ac_ext=c
2164 ac_cpp='$CPP $CPPFLAGS'
2165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2168
2169 if test -z "$ac_static" ; then
2170         # Extract the first word of "apxs", so it can be a program name with args.
2171 set dummy apxs; ac_word=$2
2172 echo "$as_me:$LINENO: checking for $ac_word" >&5
2173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2174 if test "${ac_cv_path_APXS+set}" = set; then
2175   echo $ECHO_N "(cached) $ECHO_C" >&6
2176 else
2177   case $APXS in
2178   [\\/]* | ?:[\\/]*)
2179   ac_cv_path_APXS="$APXS" # Let the user override the test with a path.
2180   ;;
2181   *)
2182   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2183 for as_dir in $PATH
2184 do
2185   IFS=$as_save_IFS
2186   test -z "$as_dir" && as_dir=.
2187   for ac_exec_ext in '' $ac_executable_extensions; do
2188   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2189     ac_cv_path_APXS="$as_dir/$ac_word$ac_exec_ext"
2190     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2191     break 2
2192   fi
2193 done
2194 done
2195
2196   ;;
2197 esac
2198 fi
2199 APXS=$ac_cv_path_APXS
2200
2201 if test -n "$APXS"; then
2202   echo "$as_me:$LINENO: result: $APXS" >&5
2203 echo "${ECHO_T}$APXS" >&6
2204 else
2205   echo "$as_me:$LINENO: result: no" >&5
2206 echo "${ECHO_T}no" >&6
2207 fi
2208
2209         if test -z "$APXS" ; then
2210                 echo "No apxs found.  Defaulting to static module generation."
2211                 ac_static="yes"
2212         fi
2213 fi
2214
2215
2216 if test -z "$ac_krb5_disable" ; then
2217
2218 echo "$as_me:$LINENO: checking for krb5_get_in_tkt_with_password in -lkrb5" >&5
2219 echo $ECHO_N "checking for krb5_get_in_tkt_with_password in -lkrb5... $ECHO_C" >&6
2220 if test "${ac_cv_lib_krb5_krb5_get_in_tkt_with_password+set}" = set; then
2221   echo $ECHO_N "(cached) $ECHO_C" >&6
2222 else
2223   ac_check_lib_save_LIBS=$LIBS
2224 LIBS="-lkrb5 "-lcom_err" $LIBS"
2225 cat >conftest.$ac_ext <<_ACEOF
2226 #line $LINENO "configure"
2227 #include "confdefs.h"
2228
2229 /* Override any gcc2 internal prototype to avoid an error.  */
2230 #ifdef __cplusplus
2231 extern "C"
2232 #endif
2233 /* We use char because int might match the return type of a gcc2
2234    builtin and then its argument prototype would still apply.  */
2235 char krb5_get_in_tkt_with_password ();
2236 #ifdef F77_DUMMY_MAIN
2237 #  ifdef __cplusplus
2238      extern "C"
2239 #  endif
2240    int F77_DUMMY_MAIN() { return 1; }
2241 #endif
2242 int
2243 main ()
2244 {
2245 krb5_get_in_tkt_with_password ();
2246   ;
2247   return 0;
2248 }
2249 _ACEOF
2250 rm -f conftest.$ac_objext conftest$ac_exeext
2251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2252   (eval $ac_link) 2>&5
2253   ac_status=$?
2254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255   (exit $ac_status); } &&
2256          { ac_try='test -s conftest$ac_exeext'
2257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2258   (eval $ac_try) 2>&5
2259   ac_status=$?
2260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261   (exit $ac_status); }; }; then
2262   ac_cv_lib_krb5_krb5_get_in_tkt_with_password=yes
2263 else
2264   echo "$as_me: failed program was:" >&5
2265 cat conftest.$ac_ext >&5
2266 ac_cv_lib_krb5_krb5_get_in_tkt_with_password=no
2267 fi
2268 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2269 LIBS=$ac_check_lib_save_LIBS
2270 fi
2271 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_get_in_tkt_with_password" >&5
2272 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_get_in_tkt_with_password" >&6
2273 if test $ac_cv_lib_krb5_krb5_get_in_tkt_with_password = yes; then
2274
2275                 ac_krb5="yes"
2276                 ac_krbdefs="-DKRB5"
2277                 ac_krblibs="-lkrb5"
2278                 echo "$as_me:$LINENO: checking for krb5_string_to_key in -lk5crypto" >&5
2279 echo $ECHO_N "checking for krb5_string_to_key in -lk5crypto... $ECHO_C" >&6
2280 if test "${ac_cv_lib_k5crypto_krb5_string_to_key+set}" = set; then
2281   echo $ECHO_N "(cached) $ECHO_C" >&6
2282 else
2283   ac_check_lib_save_LIBS=$LIBS
2284 LIBS="-lk5crypto "-lcom_err" $LIBS"
2285 cat >conftest.$ac_ext <<_ACEOF
2286 #line $LINENO "configure"
2287 #include "confdefs.h"
2288
2289 /* Override any gcc2 internal prototype to avoid an error.  */
2290 #ifdef __cplusplus
2291 extern "C"
2292 #endif
2293 /* We use char because int might match the return type of a gcc2
2294    builtin and then its argument prototype would still apply.  */
2295 char krb5_string_to_key ();
2296 #ifdef F77_DUMMY_MAIN
2297 #  ifdef __cplusplus
2298      extern "C"
2299 #  endif
2300    int F77_DUMMY_MAIN() { return 1; }
2301 #endif
2302 int
2303 main ()
2304 {
2305 krb5_string_to_key ();
2306   ;
2307   return 0;
2308 }
2309 _ACEOF
2310 rm -f conftest.$ac_objext conftest$ac_exeext
2311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2312   (eval $ac_link) 2>&5
2313   ac_status=$?
2314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315   (exit $ac_status); } &&
2316          { ac_try='test -s conftest$ac_exeext'
2317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2318   (eval $ac_try) 2>&5
2319   ac_status=$?
2320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321   (exit $ac_status); }; }; then
2322   ac_cv_lib_k5crypto_krb5_string_to_key=yes
2323 else
2324   echo "$as_me: failed program was:" >&5
2325 cat conftest.$ac_ext >&5
2326 ac_cv_lib_k5crypto_krb5_string_to_key=no
2327 fi
2328 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2329 LIBS=$ac_check_lib_save_LIBS
2330 fi
2331 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_krb5_string_to_key" >&5
2332 echo "${ECHO_T}$ac_cv_lib_k5crypto_krb5_string_to_key" >&6
2333 if test $ac_cv_lib_k5crypto_krb5_string_to_key = yes; then
2334
2335                         ac_krblibs="$ac_krblibs -lk5crypto"
2336
2337 else
2338
2339                         echo "$as_me:$LINENO: checking for krb5_string_to_key in -lcrypto" >&5
2340 echo $ECHO_N "checking for krb5_string_to_key in -lcrypto... $ECHO_C" >&6
2341 if test "${ac_cv_lib_crypto_krb5_string_to_key+set}" = set; then
2342   echo $ECHO_N "(cached) $ECHO_C" >&6
2343 else
2344   ac_check_lib_save_LIBS=$LIBS
2345 LIBS="-lcrypto "-lcom_err" $LIBS"
2346 cat >conftest.$ac_ext <<_ACEOF
2347 #line $LINENO "configure"
2348 #include "confdefs.h"
2349
2350 /* Override any gcc2 internal prototype to avoid an error.  */
2351 #ifdef __cplusplus
2352 extern "C"
2353 #endif
2354 /* We use char because int might match the return type of a gcc2
2355    builtin and then its argument prototype would still apply.  */
2356 char krb5_string_to_key ();
2357 #ifdef F77_DUMMY_MAIN
2358 #  ifdef __cplusplus
2359      extern "C"
2360 #  endif
2361    int F77_DUMMY_MAIN() { return 1; }
2362 #endif
2363 int
2364 main ()
2365 {
2366 krb5_string_to_key ();
2367   ;
2368   return 0;
2369 }
2370 _ACEOF
2371 rm -f conftest.$ac_objext conftest$ac_exeext
2372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2373   (eval $ac_link) 2>&5
2374   ac_status=$?
2375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376   (exit $ac_status); } &&
2377          { ac_try='test -s conftest$ac_exeext'
2378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2379   (eval $ac_try) 2>&5
2380   ac_status=$?
2381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382   (exit $ac_status); }; }; then
2383   ac_cv_lib_crypto_krb5_string_to_key=yes
2384 else
2385   echo "$as_me: failed program was:" >&5
2386 cat conftest.$ac_ext >&5
2387 ac_cv_lib_crypto_krb5_string_to_key=no
2388 fi
2389 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2390 LIBS=$ac_check_lib_save_LIBS
2391 fi
2392 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_krb5_string_to_key" >&5
2393 echo "${ECHO_T}$ac_cv_lib_crypto_krb5_string_to_key" >&6
2394 if test $ac_cv_lib_crypto_krb5_string_to_key = yes; then
2395
2396                                 ac_krblibs="$ac_krblibs -lcrypto"
2397
2398 else
2399
2400                                 ac_krblibs=""
2401
2402 fi
2403
2404
2405 fi
2406
2407                 ac_krblibs="$ac_krblibs -lcom_err"
2408
2409                 if test -z "$ac_krb4_disable" ; then
2410                         if test -n "$ac_krblibs" ; then
2411                                 echo "$as_me:$LINENO: checking for krb_get_pw_in_tkt in -lkrb4" >&5
2412 echo $ECHO_N "checking for krb_get_pw_in_tkt in -lkrb4... $ECHO_C" >&6
2413 if test "${ac_cv_lib_krb4_krb_get_pw_in_tkt+set}" = set; then
2414   echo $ECHO_N "(cached) $ECHO_C" >&6
2415 else
2416   ac_check_lib_save_LIBS=$LIBS
2417 LIBS="-lkrb4 $ac_krblibs $LIBS"
2418 cat >conftest.$ac_ext <<_ACEOF
2419 #line $LINENO "configure"
2420 #include "confdefs.h"
2421
2422 /* Override any gcc2 internal prototype to avoid an error.  */
2423 #ifdef __cplusplus
2424 extern "C"
2425 #endif
2426 /* We use char because int might match the return type of a gcc2
2427    builtin and then its argument prototype would still apply.  */
2428 char krb_get_pw_in_tkt ();
2429 #ifdef F77_DUMMY_MAIN
2430 #  ifdef __cplusplus
2431      extern "C"
2432 #  endif
2433    int F77_DUMMY_MAIN() { return 1; }
2434 #endif
2435 int
2436 main ()
2437 {
2438 krb_get_pw_in_tkt ();
2439   ;
2440   return 0;
2441 }
2442 _ACEOF
2443 rm -f conftest.$ac_objext conftest$ac_exeext
2444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2445   (eval $ac_link) 2>&5
2446   ac_status=$?
2447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448   (exit $ac_status); } &&
2449          { ac_try='test -s conftest$ac_exeext'
2450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2451   (eval $ac_try) 2>&5
2452   ac_status=$?
2453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454   (exit $ac_status); }; }; then
2455   ac_cv_lib_krb4_krb_get_pw_in_tkt=yes
2456 else
2457   echo "$as_me: failed program was:" >&5
2458 cat conftest.$ac_ext >&5
2459 ac_cv_lib_krb4_krb_get_pw_in_tkt=no
2460 fi
2461 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2462 LIBS=$ac_check_lib_save_LIBS
2463 fi
2464 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_pw_in_tkt" >&5
2465 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_pw_in_tkt" >&6
2466 if test $ac_cv_lib_krb4_krb_get_pw_in_tkt = yes; then
2467
2468                                         ac_krb4="yes"
2469                                         ac_krbdefs="$ac_krbdefs -DKRB4"
2470                                         ac_krblibs="$ac_krblibs -lkrb4 $ac_krblibs"
2471
2472 fi
2473
2474                         fi
2475                 fi
2476
2477 fi
2478
2479 fi
2480
2481 if test -z "$ac_krb4_disable" -a -z "$ac_krb4" ; then
2482         echo "$as_me:$LINENO: checking for krb_get_pw_in_tkt in -lkrb" >&5
2483 echo $ECHO_N "checking for krb_get_pw_in_tkt in -lkrb... $ECHO_C" >&6
2484 if test "${ac_cv_lib_krb_krb_get_pw_in_tkt+set}" = set; then
2485   echo $ECHO_N "(cached) $ECHO_C" >&6
2486 else
2487   ac_check_lib_save_LIBS=$LIBS
2488 LIBS="-lkrb "-lcom_err" $LIBS"
2489 cat >conftest.$ac_ext <<_ACEOF
2490 #line $LINENO "configure"
2491 #include "confdefs.h"
2492
2493 /* Override any gcc2 internal prototype to avoid an error.  */
2494 #ifdef __cplusplus
2495 extern "C"
2496 #endif
2497 /* We use char because int might match the return type of a gcc2
2498    builtin and then its argument prototype would still apply.  */
2499 char krb_get_pw_in_tkt ();
2500 #ifdef F77_DUMMY_MAIN
2501 #  ifdef __cplusplus
2502      extern "C"
2503 #  endif
2504    int F77_DUMMY_MAIN() { return 1; }
2505 #endif
2506 int
2507 main ()
2508 {
2509 krb_get_pw_in_tkt ();
2510   ;
2511   return 0;
2512 }
2513 _ACEOF
2514 rm -f conftest.$ac_objext conftest$ac_exeext
2515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2516   (eval $ac_link) 2>&5
2517   ac_status=$?
2518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519   (exit $ac_status); } &&
2520          { ac_try='test -s conftest$ac_exeext'
2521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2522   (eval $ac_try) 2>&5
2523   ac_status=$?
2524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525   (exit $ac_status); }; }; then
2526   ac_cv_lib_krb_krb_get_pw_in_tkt=yes
2527 else
2528   echo "$as_me: failed program was:" >&5
2529 cat conftest.$ac_ext >&5
2530 ac_cv_lib_krb_krb_get_pw_in_tkt=no
2531 fi
2532 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2533 LIBS=$ac_check_lib_save_LIBS
2534 fi
2535 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_pw_in_tkt" >&5
2536 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_pw_in_tkt" >&6
2537 if test $ac_cv_lib_krb_krb_get_pw_in_tkt = yes; then
2538
2539                 ac_krb4="yes"
2540                 ac_krbdefs="-DKRB4"
2541                 ac_krblibs="$ac_krblibs -lkrb -lcom_err"
2542
2543 fi
2544
2545 fi
2546
2547 if test -z "$ac_krb4" -a -z "$ac_krb5" ; then
2548         { { echo "$as_me:$LINENO: error: Neither Kerberos 5 nor 4 support available." >&5
2549 echo "$as_me: error: Neither Kerberos 5 nor 4 support available." >&2;}
2550    { (exit 1); exit 1; }; }
2551 fi
2552
2553
2554 if test -n "$ac_krb5" ; then
2555         ac_ext=c
2556 ac_cpp='$CPP $CPPFLAGS'
2557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2560 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2561 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2562 # On Suns, sometimes $CPP names a directory.
2563 if test -n "$CPP" && test -d "$CPP"; then
2564   CPP=
2565 fi
2566 if test -z "$CPP"; then
2567   if test "${ac_cv_prog_CPP+set}" = set; then
2568   echo $ECHO_N "(cached) $ECHO_C" >&6
2569 else
2570       # Double quotes because CPP needs to be expanded
2571     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2572     do
2573       ac_preproc_ok=false
2574 for ac_c_preproc_warn_flag in '' yes
2575 do
2576   # Use a header file that comes with gcc, so configuring glibc
2577   # with a fresh cross-compiler works.
2578   # On the NeXT, cc -E runs the code through the compiler's parser,
2579   # not just through cpp. "Syntax error" is here to catch this case.
2580   cat >conftest.$ac_ext <<_ACEOF
2581 #line $LINENO "configure"
2582 #include "confdefs.h"
2583 #include <assert.h>
2584                      Syntax error
2585 _ACEOF
2586 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2587   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2588   ac_status=$?
2589   egrep -v '^ *\+' conftest.er1 >conftest.err
2590   rm -f conftest.er1
2591   cat conftest.err >&5
2592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593   (exit $ac_status); } >/dev/null; then
2594   if test -s conftest.err; then
2595     ac_cpp_err=$ac_c_preproc_warn_flag
2596   else
2597     ac_cpp_err=
2598   fi
2599 else
2600   ac_cpp_err=yes
2601 fi
2602 if test -z "$ac_cpp_err"; then
2603   :
2604 else
2605   echo "$as_me: failed program was:" >&5
2606   cat conftest.$ac_ext >&5
2607   # Broken: fails on valid input.
2608 continue
2609 fi
2610 rm -f conftest.err conftest.$ac_ext
2611
2612   # OK, works on sane cases.  Now check whether non-existent headers
2613   # can be detected and how.
2614   cat >conftest.$ac_ext <<_ACEOF
2615 #line $LINENO "configure"
2616 #include "confdefs.h"
2617 #include <ac_nonexistent.h>
2618 _ACEOF
2619 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2620   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2621   ac_status=$?
2622   egrep -v '^ *\+' conftest.er1 >conftest.err
2623   rm -f conftest.er1
2624   cat conftest.err >&5
2625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626   (exit $ac_status); } >/dev/null; then
2627   if test -s conftest.err; then
2628     ac_cpp_err=$ac_c_preproc_warn_flag
2629   else
2630     ac_cpp_err=
2631   fi
2632 else
2633   ac_cpp_err=yes
2634 fi
2635 if test -z "$ac_cpp_err"; then
2636   # Broken: success on invalid input.
2637 continue
2638 else
2639   echo "$as_me: failed program was:" >&5
2640   cat conftest.$ac_ext >&5
2641   # Passes both tests.
2642 ac_preproc_ok=:
2643 break
2644 fi
2645 rm -f conftest.err conftest.$ac_ext
2646
2647 done
2648 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2649 rm -f conftest.err conftest.$ac_ext
2650 if $ac_preproc_ok; then
2651   break
2652 fi
2653
2654     done
2655     ac_cv_prog_CPP=$CPP
2656
2657 fi
2658   CPP=$ac_cv_prog_CPP
2659 else
2660   ac_cv_prog_CPP=$CPP
2661 fi
2662 echo "$as_me:$LINENO: result: $CPP" >&5
2663 echo "${ECHO_T}$CPP" >&6
2664 ac_preproc_ok=false
2665 for ac_c_preproc_warn_flag in '' yes
2666 do
2667   # Use a header file that comes with gcc, so configuring glibc
2668   # with a fresh cross-compiler works.
2669   # On the NeXT, cc -E runs the code through the compiler's parser,
2670   # not just through cpp. "Syntax error" is here to catch this case.
2671   cat >conftest.$ac_ext <<_ACEOF
2672 #line $LINENO "configure"
2673 #include "confdefs.h"
2674 #include <assert.h>
2675                      Syntax error
2676 _ACEOF
2677 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2678   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2679   ac_status=$?
2680   egrep -v '^ *\+' conftest.er1 >conftest.err
2681   rm -f conftest.er1
2682   cat conftest.err >&5
2683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684   (exit $ac_status); } >/dev/null; then
2685   if test -s conftest.err; then
2686     ac_cpp_err=$ac_c_preproc_warn_flag
2687   else
2688     ac_cpp_err=
2689   fi
2690 else
2691   ac_cpp_err=yes
2692 fi
2693 if test -z "$ac_cpp_err"; then
2694   :
2695 else
2696   echo "$as_me: failed program was:" >&5
2697   cat conftest.$ac_ext >&5
2698   # Broken: fails on valid input.
2699 continue
2700 fi
2701 rm -f conftest.err conftest.$ac_ext
2702
2703   # OK, works on sane cases.  Now check whether non-existent headers
2704   # can be detected and how.
2705   cat >conftest.$ac_ext <<_ACEOF
2706 #line $LINENO "configure"
2707 #include "confdefs.h"
2708 #include <ac_nonexistent.h>
2709 _ACEOF
2710 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2711   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2712   ac_status=$?
2713   egrep -v '^ *\+' conftest.er1 >conftest.err
2714   rm -f conftest.er1
2715   cat conftest.err >&5
2716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717   (exit $ac_status); } >/dev/null; then
2718   if test -s conftest.err; then
2719     ac_cpp_err=$ac_c_preproc_warn_flag
2720   else
2721     ac_cpp_err=
2722   fi
2723 else
2724   ac_cpp_err=yes
2725 fi
2726 if test -z "$ac_cpp_err"; then
2727   # Broken: success on invalid input.
2728 continue
2729 else
2730   echo "$as_me: failed program was:" >&5
2731   cat conftest.$ac_ext >&5
2732   # Passes both tests.
2733 ac_preproc_ok=:
2734 break
2735 fi
2736 rm -f conftest.err conftest.$ac_ext
2737
2738 done
2739 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2740 rm -f conftest.err conftest.$ac_ext
2741 if $ac_preproc_ok; then
2742   :
2743 else
2744   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2745 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2746    { (exit 1); exit 1; }; }
2747 fi
2748
2749 ac_ext=c
2750 ac_cpp='$CPP $CPPFLAGS'
2751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2754
2755
2756 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2757 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2758 if test "${ac_cv_header_stdc+set}" = set; then
2759   echo $ECHO_N "(cached) $ECHO_C" >&6
2760 else
2761   cat >conftest.$ac_ext <<_ACEOF
2762 #line $LINENO "configure"
2763 #include "confdefs.h"
2764 #include <stdlib.h>
2765 #include <stdarg.h>
2766 #include <string.h>
2767 #include <float.h>
2768
2769 _ACEOF
2770 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2771   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2772   ac_status=$?
2773   egrep -v '^ *\+' conftest.er1 >conftest.err
2774   rm -f conftest.er1
2775   cat conftest.err >&5
2776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777   (exit $ac_status); } >/dev/null; then
2778   if test -s conftest.err; then
2779     ac_cpp_err=$ac_c_preproc_warn_flag
2780   else
2781     ac_cpp_err=
2782   fi
2783 else
2784   ac_cpp_err=yes
2785 fi
2786 if test -z "$ac_cpp_err"; then
2787   ac_cv_header_stdc=yes
2788 else
2789   echo "$as_me: failed program was:" >&5
2790   cat conftest.$ac_ext >&5
2791   ac_cv_header_stdc=no
2792 fi
2793 rm -f conftest.err conftest.$ac_ext
2794
2795 if test $ac_cv_header_stdc = yes; then
2796   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2797   cat >conftest.$ac_ext <<_ACEOF
2798 #line $LINENO "configure"
2799 #include "confdefs.h"
2800 #include <string.h>
2801
2802 _ACEOF
2803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2804   egrep "memchr" >/dev/null 2>&1; then
2805   :
2806 else
2807   ac_cv_header_stdc=no
2808 fi
2809 rm -f conftest*
2810
2811 fi
2812
2813 if test $ac_cv_header_stdc = yes; then
2814   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2815   cat >conftest.$ac_ext <<_ACEOF
2816 #line $LINENO "configure"
2817 #include "confdefs.h"
2818 #include <stdlib.h>
2819
2820 _ACEOF
2821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2822   egrep "free" >/dev/null 2>&1; then
2823   :
2824 else
2825   ac_cv_header_stdc=no
2826 fi
2827 rm -f conftest*
2828
2829 fi
2830
2831 if test $ac_cv_header_stdc = yes; then
2832   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2833   if test "$cross_compiling" = yes; then
2834   :
2835 else
2836   cat >conftest.$ac_ext <<_ACEOF
2837 #line $LINENO "configure"
2838 #include "confdefs.h"
2839 #include <ctype.h>
2840 #if ((' ' & 0x0FF) == 0x020)
2841 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2842 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2843 #else
2844 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2845                      || ('j' <= (c) && (c) <= 'r') \
2846                      || ('s' <= (c) && (c) <= 'z'))
2847 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2848 #endif
2849
2850 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2851 int
2852 main ()
2853 {
2854   int i;
2855   for (i = 0; i < 256; i++)
2856     if (XOR (islower (i), ISLOWER (i))
2857         || toupper (i) != TOUPPER (i))
2858       exit(2);
2859   exit (0);
2860 }
2861 _ACEOF
2862 rm -f conftest$ac_exeext
2863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2864   (eval $ac_link) 2>&5
2865   ac_status=$?
2866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2869   (eval $ac_try) 2>&5
2870   ac_status=$?
2871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872   (exit $ac_status); }; }; then
2873   :
2874 else
2875   echo "$as_me: program exited with status $ac_status" >&5
2876 echo "$as_me: failed program was:" >&5
2877 cat conftest.$ac_ext >&5
2878 ( exit $ac_status )
2879 ac_cv_header_stdc=no
2880 fi
2881 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2882 fi
2883 fi
2884 fi
2885 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2886 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2887 if test $ac_cv_header_stdc = yes; then
2888
2889 cat >>confdefs.h <<\_ACEOF
2890 #define STDC_HEADERS 1
2891 _ACEOF
2892
2893 fi
2894
2895 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2906                   inttypes.h stdint.h unistd.h
2907 do
2908 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2909 echo "$as_me:$LINENO: checking for $ac_header" >&5
2910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2912   echo $ECHO_N "(cached) $ECHO_C" >&6
2913 else
2914   cat >conftest.$ac_ext <<_ACEOF
2915 #line $LINENO "configure"
2916 #include "confdefs.h"
2917 $ac_includes_default
2918
2919 #include <$ac_header>
2920 _ACEOF
2921 rm -f conftest.$ac_objext
2922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2923   (eval $ac_compile) 2>&5
2924   ac_status=$?
2925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926   (exit $ac_status); } &&
2927          { ac_try='test -s conftest.$ac_objext'
2928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2929   (eval $ac_try) 2>&5
2930   ac_status=$?
2931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932   (exit $ac_status); }; }; then
2933   eval "$as_ac_Header=yes"
2934 else
2935   echo "$as_me: failed program was:" >&5
2936 cat conftest.$ac_ext >&5
2937 eval "$as_ac_Header=no"
2938 fi
2939 rm -f conftest.$ac_objext conftest.$ac_ext
2940 fi
2941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2942 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2943 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2944   cat >>confdefs.h <<_ACEOF
2945 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2946 _ACEOF
2947
2948 fi
2949
2950 done
2951
2952
2953
2954 for ac_header in krb5.h
2955 do
2956 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2957 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2958   echo "$as_me:$LINENO: checking for $ac_header" >&5
2959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2961   echo $ECHO_N "(cached) $ECHO_C" >&6
2962 fi
2963 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2964 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2965 else
2966   # Is the header compilable?
2967 echo "$as_me:$LINENO: checking $ac_header usability" >&5
2968 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
2969 cat >conftest.$ac_ext <<_ACEOF
2970 #line $LINENO "configure"
2971 #include "confdefs.h"
2972 $ac_includes_default
2973 #include <$ac_header>
2974 _ACEOF
2975 rm -f conftest.$ac_objext
2976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2977   (eval $ac_compile) 2>&5
2978   ac_status=$?
2979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980   (exit $ac_status); } &&
2981          { ac_try='test -s conftest.$ac_objext'
2982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2983   (eval $ac_try) 2>&5
2984   ac_status=$?
2985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986   (exit $ac_status); }; }; then
2987   ac_header_compiler=yes
2988 else
2989   echo "$as_me: failed program was:" >&5
2990 cat conftest.$ac_ext >&5
2991 ac_header_compiler=no
2992 fi
2993 rm -f conftest.$ac_objext conftest.$ac_ext
2994 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2995 echo "${ECHO_T}$ac_header_compiler" >&6
2996
2997 # Is the header present?
2998 echo "$as_me:$LINENO: checking $ac_header presence" >&5
2999 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3000 cat >conftest.$ac_ext <<_ACEOF
3001 #line $LINENO "configure"
3002 #include "confdefs.h"
3003 #include <$ac_header>
3004 _ACEOF
3005 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3006   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3007   ac_status=$?
3008   egrep -v '^ *\+' conftest.er1 >conftest.err
3009   rm -f conftest.er1
3010   cat conftest.err >&5
3011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012   (exit $ac_status); } >/dev/null; then
3013   if test -s conftest.err; then
3014     ac_cpp_err=$ac_c_preproc_warn_flag
3015   else
3016     ac_cpp_err=
3017   fi
3018 else
3019   ac_cpp_err=yes
3020 fi
3021 if test -z "$ac_cpp_err"; then
3022   ac_header_preproc=yes
3023 else
3024   echo "$as_me: failed program was:" >&5
3025   cat conftest.$ac_ext >&5
3026   ac_header_preproc=no
3027 fi
3028 rm -f conftest.err conftest.$ac_ext
3029 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3030 echo "${ECHO_T}$ac_header_preproc" >&6
3031
3032 # So?  What about this header?
3033 case $ac_header_compiler:$ac_header_preproc in
3034   yes:no )
3035     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3036 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3037     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3038 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3039   no:yes )
3040     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3041 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3042     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3043 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3044     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3045 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3046 esac
3047 echo "$as_me:$LINENO: checking for $ac_header" >&5
3048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3050   echo $ECHO_N "(cached) $ECHO_C" >&6
3051 else
3052   eval "$as_ac_Header=$ac_header_preproc"
3053 fi
3054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3055 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3056
3057 fi
3058 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3059   cat >>confdefs.h <<_ACEOF
3060 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3061 _ACEOF
3062
3063                 ac_foundkrb5="yes"
3064                 break
3065
3066 fi
3067
3068 done
3069
3070
3071         if test -z "$ac_foundkrb5" ; then
3072                 echo "$as_me:$LINENO: result: krb5.h not found... removing krb5 support." >&5
3073 echo "${ECHO_T}krb5.h not found... removing krb5 support." >&6
3074                 ac_krb5=""
3075         fi
3076 fi
3077
3078 if test -n "$ac_krb4" ; then
3079
3080
3081 for ac_header in kerberosIV/krb.h krb.h
3082 do
3083 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3085   echo "$as_me:$LINENO: checking for $ac_header" >&5
3086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3088   echo $ECHO_N "(cached) $ECHO_C" >&6
3089 fi
3090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3091 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3092 else
3093   # Is the header compilable?
3094 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3095 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3096 cat >conftest.$ac_ext <<_ACEOF
3097 #line $LINENO "configure"
3098 #include "confdefs.h"
3099 $ac_includes_default
3100 #include <$ac_header>
3101 _ACEOF
3102 rm -f conftest.$ac_objext
3103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3104   (eval $ac_compile) 2>&5
3105   ac_status=$?
3106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107   (exit $ac_status); } &&
3108          { ac_try='test -s conftest.$ac_objext'
3109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3110   (eval $ac_try) 2>&5
3111   ac_status=$?
3112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113   (exit $ac_status); }; }; then
3114   ac_header_compiler=yes
3115 else
3116   echo "$as_me: failed program was:" >&5
3117 cat conftest.$ac_ext >&5
3118 ac_header_compiler=no
3119 fi
3120 rm -f conftest.$ac_objext conftest.$ac_ext
3121 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3122 echo "${ECHO_T}$ac_header_compiler" >&6
3123
3124 # Is the header present?
3125 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3126 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3127 cat >conftest.$ac_ext <<_ACEOF
3128 #line $LINENO "configure"
3129 #include "confdefs.h"
3130 #include <$ac_header>
3131 _ACEOF
3132 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3133   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3134   ac_status=$?
3135   egrep -v '^ *\+' conftest.er1 >conftest.err
3136   rm -f conftest.er1
3137   cat conftest.err >&5
3138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139   (exit $ac_status); } >/dev/null; then
3140   if test -s conftest.err; then
3141     ac_cpp_err=$ac_c_preproc_warn_flag
3142   else
3143     ac_cpp_err=
3144   fi
3145 else
3146   ac_cpp_err=yes
3147 fi
3148 if test -z "$ac_cpp_err"; then
3149   ac_header_preproc=yes
3150 else
3151   echo "$as_me: failed program was:" >&5
3152   cat conftest.$ac_ext >&5
3153   ac_header_preproc=no
3154 fi
3155 rm -f conftest.err conftest.$ac_ext
3156 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3157 echo "${ECHO_T}$ac_header_preproc" >&6
3158
3159 # So?  What about this header?
3160 case $ac_header_compiler:$ac_header_preproc in
3161   yes:no )
3162     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3163 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3164     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3165 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3166   no:yes )
3167     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3168 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3169     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3170 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3171     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3172 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3173 esac
3174 echo "$as_me:$LINENO: checking for $ac_header" >&5
3175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3176 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3177   echo $ECHO_N "(cached) $ECHO_C" >&6
3178 else
3179   eval "$as_ac_Header=$ac_header_preproc"
3180 fi
3181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3182 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3183
3184 fi
3185 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3186   cat >>confdefs.h <<_ACEOF
3187 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3188 _ACEOF
3189
3190                 ac_foundkrb4="yes"
3191                 break
3192
3193 fi
3194
3195 done
3196
3197
3198         if test -z "$ac_foundkrb4" ; then
3199                 echo "$as_me:$LINENO: result: krb.h not found... removing krb4 support." >&5
3200 echo "${ECHO_T}krb.h not found... removing krb4 support." >&6
3201                 ac_krb4=""
3202         fi
3203 fi
3204
3205 if test -z "$ac_krb4" -a -z "$ac_krb5" ; then
3206         { { echo "$as_me:$LINENO: error: Neither Kerberos 5 nor 4 support available." >&5
3207 echo "$as_me: error: Neither Kerberos 5 nor 4 support available." >&2;}
3208    { (exit 1); exit 1; }; }
3209 fi
3210
3211
3212
3213
3214
3215
3216 if test -z "$ac_api" ; then
3217         if test -n "`$APXS -q bindir 2> /dev/null`" ; then
3218                 echo "API autodetected to be Apache 2.*"
3219                 ac_api=apache2
3220                 ac_apidefs="-DAPXS2"
3221         else
3222                 echo "API autodetected to be Apache 1.*"
3223                 ac_api=apache1
3224                 ac_apidefs="-DAPXS1"
3225         fi
3226 fi
3227
3228
3229
3230
3231
3232
3233 LIBS="$LIBS $ac_krblibs"
3234 DEFS="$DEFS $ac_apidefs $ac_krbdefs"
3235 CFLAGS="$CFLAGS $DEFS"
3236
3237
3238 if test "$ac_static" = "yes" ; then
3239         echo ""
3240         echo ""
3241         echo "This module is to be built statically into Apache.  You will need"
3242         echo "to place it into the appropriate location in the source tree and"
3243         echo "compile Apache accordingly.  You can look at the online docs at"
3244         echo "http://modauthkerb.sourceforge.net/ or README.static for more"
3245         echo "information."
3246         echo ""
3247         echo ""
3248 else
3249         ac_config_files="$ac_config_files Makefile"
3250 cat >confcache <<\_ACEOF
3251 # This file is a shell script that caches the results of configure
3252 # tests run on this system so they can be shared between configure
3253 # scripts and configure runs, see configure's option --config-cache.
3254 # It is not useful on other systems.  If it contains results you don't
3255 # want to keep, you may remove or edit it.
3256 #
3257 # config.status only pays attention to the cache file if you give it
3258 # the --recheck option to rerun configure.
3259 #
3260 # `ac_cv_env_foo' variables (set or unset) will be overriden when
3261 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3262 # following values.
3263
3264 _ACEOF
3265
3266 # The following way of writing the cache mishandles newlines in values,
3267 # but we know of no workaround that is simple, portable, and efficient.
3268 # So, don't put newlines in cache variables' values.
3269 # Ultrix sh set writes to stderr and can't be redirected directly,
3270 # and sets the high bit in the cache file unless we assign to the vars.
3271 {
3272   (set) 2>&1 |
3273     case `(ac_space=' '; set | grep ac_space) 2>&1` in
3274     *ac_space=\ *)
3275       # `set' does not quote correctly, so add quotes (double-quote
3276       # substitution turns \\\\ into \\, and sed turns \\ into \).
3277       sed -n \
3278         "s/'/'\\\\''/g;
3279           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3280       ;;
3281     *)
3282       # `set' quotes correctly as required by POSIX, so do not add quotes.
3283       sed -n \
3284         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3285       ;;
3286     esac;
3287 } |
3288   sed '
3289      t clear
3290      : clear
3291      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3292      t end
3293      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3294      : end' >>confcache
3295 if cmp -s $cache_file confcache; then :; else
3296   if test -w $cache_file; then
3297     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3298     cat confcache >$cache_file
3299   else
3300     echo "not updating unwritable cache $cache_file"
3301   fi
3302 fi
3303 rm -f confcache
3304
3305 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3306 # Let make expand exec_prefix.
3307 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3308
3309 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3310 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3311 # trailing colons and then remove the whole line if VPATH becomes empty
3312 # (actually we leave an empty line to preserve line numbers).
3313 if test "x$srcdir" = x.; then
3314   ac_vpsub='/^[         ]*VPATH[        ]*=/{
3315 s/:*\$(srcdir):*/:/;
3316 s/:*\${srcdir}:*/:/;
3317 s/:*@srcdir@:*/:/;
3318 s/^\([^=]*=[    ]*\):*/\1/;
3319 s/:*$//;
3320 s/^[^=]*=[      ]*$//;
3321 }'
3322 fi
3323
3324 # Transform confdefs.h into DEFS.
3325 # Protect against shell expansion while executing Makefile rules.
3326 # Protect against Makefile macro expansion.
3327 #
3328 # If the first sed substitution is executed (which looks for macros that
3329 # take arguments), then we branch to the quote section.  Otherwise,
3330 # look for a macro that doesn't take arguments.
3331 cat >confdef2opt.sed <<\_ACEOF
3332 t clear
3333 : clear
3334 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
3335 t quote
3336 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
3337 t quote
3338 d
3339 : quote
3340 s,[     `~#$^&*(){}\\|;'"<>?],\\&,g
3341 s,\[,\\&,g
3342 s,\],\\&,g
3343 s,\$,$$,g
3344 p
3345 _ACEOF
3346 # We use echo to avoid assuming a particular line-breaking character.
3347 # The extra dot is to prevent the shell from consuming trailing
3348 # line-breaks from the sub-command output.  A line-break within
3349 # single-quotes doesn't work because, if this script is created in a
3350 # platform that uses two characters for line-breaks (e.g., DOS), tr
3351 # would break.
3352 ac_LF_and_DOT=`echo; echo .`
3353 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
3354 rm -f confdef2opt.sed
3355
3356
3357
3358 : ${CONFIG_STATUS=./config.status}
3359 ac_clean_files_save=$ac_clean_files
3360 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3361 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3362 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3363 cat >$CONFIG_STATUS <<_ACEOF
3364 #! $SHELL
3365 # Generated by $as_me.
3366 # Run this file to recreate the current configuration.
3367 # Compiler output produced by configure, useful for debugging
3368 # configure, is in config.log if it exists.
3369
3370 debug=false
3371 SHELL=\${CONFIG_SHELL-$SHELL}
3372 _ACEOF
3373
3374 cat >>$CONFIG_STATUS <<\_ACEOF
3375
3376 ## --------------------- ##
3377 ## M4sh Initialization.  ##
3378 ## --------------------- ##
3379
3380 # Be Bourne compatible
3381 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3382   emulate sh
3383   NULLCMD=:
3384 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3385   set -o posix
3386 fi
3387
3388 # NLS nuisances.
3389 # Support unset when possible.
3390 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
3391   as_unset=unset
3392 else
3393   as_unset=false
3394 fi
3395
3396 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
3397     { $as_unset LANG || test "${LANG+set}" != set; } ||
3398       { LANG=C; export LANG; }
3399 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
3400     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
3401       { LC_ALL=C; export LC_ALL; }
3402 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
3403     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
3404       { LC_TIME=C; export LC_TIME; }
3405 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
3406     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
3407       { LC_CTYPE=C; export LC_CTYPE; }
3408 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
3409     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
3410       { LANGUAGE=C; export LANGUAGE; }
3411 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
3412     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
3413       { LC_COLLATE=C; export LC_COLLATE; }
3414 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
3415     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
3416       { LC_NUMERIC=C; export LC_NUMERIC; }
3417 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
3418     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
3419       { LC_MESSAGES=C; export LC_MESSAGES; }
3420
3421
3422 # Name of the executable.
3423 as_me=`(basename "$0") 2>/dev/null ||
3424 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3425          X"$0" : 'X\(//\)$' \| \
3426          X"$0" : 'X\(/\)$' \| \
3427          .     : '\(.\)' 2>/dev/null ||
3428 echo X/"$0" |
3429     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3430           /^X\/\(\/\/\)$/{ s//\1/; q; }
3431           /^X\/\(\/\).*/{ s//\1/; q; }
3432           s/.*/./; q'`
3433
3434 # PATH needs CR, and LINENO needs CR and PATH.
3435 # Avoid depending upon Character Ranges.
3436 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3437 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3438 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3439 as_cr_digits='0123456789'
3440 as_cr_alnum=$as_cr_Letters$as_cr_digits
3441
3442 # The user is always right.
3443 if test "${PATH_SEPARATOR+set}" != set; then
3444   echo "#! /bin/sh" >conftest.sh
3445   echo  "exit 0"   >>conftest.sh
3446   chmod +x conftest.sh
3447   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
3448     PATH_SEPARATOR=';'
3449   else
3450     PATH_SEPARATOR=:
3451   fi
3452   rm -f conftest.sh
3453 fi
3454
3455
3456   as_lineno_1=$LINENO
3457   as_lineno_2=$LINENO
3458   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3459   test "x$as_lineno_1" != "x$as_lineno_2" &&
3460   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
3461   # Find who we are.  Look in the path if we contain no path at all
3462   # relative or not.
3463   case $0 in
3464     *[\\/]* ) as_myself=$0 ;;
3465     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3466 for as_dir in $PATH
3467 do
3468   IFS=$as_save_IFS
3469   test -z "$as_dir" && as_dir=.
3470   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3471 done
3472
3473        ;;
3474   esac
3475   # We did not find ourselves, most probably we were run as `sh COMMAND'
3476   # in which case we are not to be found in the path.
3477   if test "x$as_myself" = x; then
3478     as_myself=$0
3479   fi
3480   if test ! -f "$as_myself"; then
3481     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3482 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3483    { (exit 1); exit 1; }; }
3484   fi
3485   case $CONFIG_SHELL in
3486   '')
3487     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3488 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3489 do
3490   IFS=$as_save_IFS
3491   test -z "$as_dir" && as_dir=.
3492   for as_base in sh bash ksh sh5; do
3493          case $as_dir in
3494          /*)
3495            if ("$as_dir/$as_base" -c '
3496   as_lineno_1=$LINENO
3497   as_lineno_2=$LINENO
3498   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3499   test "x$as_lineno_1" != "x$as_lineno_2" &&
3500   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
3501              CONFIG_SHELL=$as_dir/$as_base
3502              export CONFIG_SHELL
3503              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3504            fi;;
3505          esac
3506        done
3507 done
3508 ;;
3509   esac
3510
3511   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3512   # uniformly replaced by the line number.  The first 'sed' inserts a
3513   # line-number line before each line; the second 'sed' does the real
3514   # work.  The second script uses 'N' to pair each line-number line
3515   # with the numbered line, and appends trailing '-' during
3516   # substitution so that $LINENO is not a special case at line end.
3517   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3518   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
3519   sed '=' <$as_myself |
3520     sed '
3521       N
3522       s,$,-,
3523       : loop
3524       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3525       t loop
3526       s,-$,,
3527       s,^['$as_cr_digits']*\n,,
3528     ' >$as_me.lineno &&
3529   chmod +x $as_me.lineno ||
3530     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3531 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3532    { (exit 1); exit 1; }; }
3533
3534   # Don't try to exec as it changes $[0], causing all sort of problems
3535   # (the dirname of $[0] is not the place where we might find the
3536   # original and so on.  Autoconf is especially sensible to this).
3537   . ./$as_me.lineno
3538   # Exit status is that of the last command.
3539   exit
3540 }
3541
3542
3543 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3544   *c*,-n*) ECHO_N= ECHO_C='
3545 ' ECHO_T='      ' ;;
3546   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3547   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
3548 esac
3549
3550 if expr a : '\(a\)' >/dev/null 2>&1; then
3551   as_expr=expr
3552 else
3553   as_expr=false
3554 fi
3555
3556 rm -f conf$$ conf$$.exe conf$$.file
3557 echo >conf$$.file
3558 if ln -s conf$$.file conf$$ 2>/dev/null; then
3559   # We could just check for DJGPP; but this test a) works b) is more generic
3560   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3561   if test -f conf$$.exe; then
3562     # Don't use ln at all; we don't have any links
3563     as_ln_s='cp -p'
3564   else
3565     as_ln_s='ln -s'
3566   fi
3567 elif ln conf$$.file conf$$ 2>/dev/null; then
3568   as_ln_s=ln
3569 else
3570   as_ln_s='cp -p'
3571 fi
3572 rm -f conf$$ conf$$.exe conf$$.file
3573
3574 as_executable_p="test -f"
3575
3576 # Sed expression to map a string onto a valid CPP name.
3577 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
3578
3579 # Sed expression to map a string onto a valid variable name.
3580 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
3581
3582
3583 # IFS
3584 # We need space, tab and new line, in precisely that order.
3585 as_nl='
3586 '
3587 IFS="   $as_nl"
3588
3589 # CDPATH.
3590 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
3591
3592 exec 6>&1
3593
3594 # Open the log real soon, to keep \$[0] and so on meaningful, and to
3595 # report actual input values of CONFIG_FILES etc. instead of their
3596 # values after options handling.  Logging --version etc. is OK.
3597 exec 5>>config.log
3598 {
3599   echo
3600   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3601 ## Running $as_me. ##
3602 _ASBOX
3603 } >&5
3604 cat >&5 <<_CSEOF
3605
3606 This file was extended by Apache Kerberos Module $as_me alpha2, which was
3607 generated by GNU Autoconf 2.53.  Invocation command line was
3608
3609   CONFIG_FILES    = $CONFIG_FILES
3610   CONFIG_HEADERS  = $CONFIG_HEADERS
3611   CONFIG_LINKS    = $CONFIG_LINKS
3612   CONFIG_COMMANDS = $CONFIG_COMMANDS
3613   $ $0 $@
3614
3615 _CSEOF
3616 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3617 echo >&5
3618 _ACEOF
3619
3620 # Files that config.status was made for.
3621 if test -n "$ac_config_files"; then
3622   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3623 fi
3624
3625 if test -n "$ac_config_headers"; then
3626   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3627 fi
3628
3629 if test -n "$ac_config_links"; then
3630   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3631 fi
3632
3633 if test -n "$ac_config_commands"; then
3634   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3635 fi
3636
3637 cat >>$CONFIG_STATUS <<\_ACEOF
3638
3639 ac_cs_usage="\
3640 \`$as_me' instantiates files from templates according to the
3641 current configuration.
3642
3643 Usage: $0 [OPTIONS] [FILE]...
3644
3645   -h, --help       print this help, then exit
3646   -V, --version    print version number, then exit
3647   -d, --debug      don't remove temporary files
3648       --recheck    update $as_me by reconfiguring in the same conditions
3649   --file=FILE[:TEMPLATE]
3650                    instantiate the configuration file FILE
3651
3652 Configuration files:
3653 $config_files
3654
3655 Report bugs to <bug-autoconf@gnu.org>."
3656 _ACEOF
3657
3658 cat >>$CONFIG_STATUS <<_ACEOF
3659 ac_cs_version="\\
3660 Apache Kerberos Module config.status alpha2
3661 configured by $0, generated by GNU Autoconf 2.53,
3662   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3663
3664 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
3665 Free Software Foundation, Inc.
3666 This config.status script is free software; the Free Software Foundation
3667 gives unlimited permission to copy, distribute and modify it."
3668 srcdir=$srcdir
3669 _ACEOF
3670
3671 cat >>$CONFIG_STATUS <<\_ACEOF
3672 # If no file are specified by the user, then we need to provide default
3673 # value.  By we need to know if files were specified by the user.
3674 ac_need_defaults=:
3675 while test $# != 0
3676 do
3677   case $1 in
3678   --*=*)
3679     ac_option=`expr "x$1" : 'x\([^=]*\)='`
3680     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3681     shift
3682     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
3683     shift
3684     ;;
3685   -*);;
3686   *) # This is not an option, so the user has probably given explicit
3687      # arguments.
3688      ac_need_defaults=false;;
3689   esac
3690
3691   case $1 in
3692   # Handling of the options.
3693 _ACEOF
3694 cat >>$CONFIG_STATUS <<_ACEOF
3695   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3696     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
3697     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
3698 _ACEOF
3699 cat >>$CONFIG_STATUS <<\_ACEOF
3700   --version | --vers* | -V )
3701     echo "$ac_cs_version"; exit 0 ;;
3702   --he | --h)
3703     # Conflict between --help and --header
3704     { { echo "$as_me:$LINENO: error: ambiguous option: $1
3705 Try \`$0 --help' for more information." >&5
3706 echo "$as_me: error: ambiguous option: $1
3707 Try \`$0 --help' for more information." >&2;}
3708    { (exit 1); exit 1; }; };;
3709   --help | --hel | -h )
3710     echo "$ac_cs_usage"; exit 0 ;;
3711   --debug | --d* | -d )
3712     debug=: ;;
3713   --file | --fil | --fi | --f )
3714     shift
3715     CONFIG_FILES="$CONFIG_FILES $1"
3716     ac_need_defaults=false;;
3717   --header | --heade | --head | --hea )
3718     shift
3719     CONFIG_HEADERS="$CONFIG_HEADERS $1"
3720     ac_need_defaults=false;;
3721
3722   # This is an error.
3723   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
3724 Try \`$0 --help' for more information." >&5
3725 echo "$as_me: error: unrecognized option: $1
3726 Try \`$0 --help' for more information." >&2;}
3727    { (exit 1); exit 1; }; } ;;
3728
3729   *) ac_config_targets="$ac_config_targets $1" ;;
3730
3731   esac
3732   shift
3733 done
3734
3735 _ACEOF
3736
3737
3738
3739
3740
3741 cat >>$CONFIG_STATUS <<\_ACEOF
3742 for ac_config_target in $ac_config_targets
3743 do
3744   case "$ac_config_target" in
3745   # Handling of arguments.
3746   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3747   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3748 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3749    { (exit 1); exit 1; }; };;
3750   esac
3751 done
3752
3753 # If the user did not use the arguments to specify the items to instantiate,
3754 # then the envvar interface is used.  Set only those that are not.
3755 # We use the long form for the default assignment because of an extremely
3756 # bizarre bug on SunOS 4.1.3.
3757 if $ac_need_defaults; then
3758   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3759 fi
3760
3761 # Create a temporary directory, and hook for its removal unless debugging.
3762 $debug ||
3763 {
3764   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3765   trap '{ (exit 1); exit 1; }' 1 2 13 15
3766 }
3767
3768 # Create a (secure) tmp directory for tmp files.
3769 : ${TMPDIR=/tmp}
3770 {
3771   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
3772   test -n "$tmp" && test -d "$tmp"
3773 }  ||
3774 {
3775   tmp=$TMPDIR/cs$$-$RANDOM
3776   (umask 077 && mkdir $tmp)
3777 } ||
3778 {
3779    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3780    { (exit 1); exit 1; }
3781 }
3782
3783 _ACEOF
3784
3785 cat >>$CONFIG_STATUS <<_ACEOF
3786
3787 #
3788 # CONFIG_FILES section.
3789 #
3790
3791 # No need to generate the scripts if there are no CONFIG_FILES.
3792 # This happens for instance when ./config.status config.h
3793 if test -n "\$CONFIG_FILES"; then
3794   # Protect against being on the right side of a sed subst in config.status.
3795   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3796    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3797 s,@SHELL@,$SHELL,;t t
3798 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3799 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3800 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3801 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3802 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3803 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3804 s,@exec_prefix@,$exec_prefix,;t t
3805 s,@prefix@,$prefix,;t t
3806 s,@program_transform_name@,$program_transform_name,;t t
3807 s,@bindir@,$bindir,;t t
3808 s,@sbindir@,$sbindir,;t t
3809 s,@libexecdir@,$libexecdir,;t t
3810 s,@datadir@,$datadir,;t t
3811 s,@sysconfdir@,$sysconfdir,;t t
3812 s,@sharedstatedir@,$sharedstatedir,;t t
3813 s,@localstatedir@,$localstatedir,;t t
3814 s,@libdir@,$libdir,;t t
3815 s,@includedir@,$includedir,;t t
3816 s,@oldincludedir@,$oldincludedir,;t t
3817 s,@infodir@,$infodir,;t t
3818 s,@mandir@,$mandir,;t t
3819 s,@build_alias@,$build_alias,;t t
3820 s,@host_alias@,$host_alias,;t t
3821 s,@target_alias@,$target_alias,;t t
3822 s,@DEFS@,$DEFS,;t t
3823 s,@ECHO_C@,$ECHO_C,;t t
3824 s,@ECHO_N@,$ECHO_N,;t t
3825 s,@ECHO_T@,$ECHO_T,;t t
3826 s,@LIBS@,$LIBS,;t t
3827 s,@CC@,$CC,;t t
3828 s,@CFLAGS@,$CFLAGS,;t t
3829 s,@LDFLAGS@,$LDFLAGS,;t t
3830 s,@CPPFLAGS@,$CPPFLAGS,;t t
3831 s,@ac_ct_CC@,$ac_ct_CC,;t t
3832 s,@EXEEXT@,$EXEEXT,;t t
3833 s,@OBJEXT@,$OBJEXT,;t t
3834 s,@APXS@,$APXS,;t t
3835 s,@CPP@,$CPP,;t t
3836 CEOF
3837
3838 _ACEOF
3839
3840   cat >>$CONFIG_STATUS <<\_ACEOF
3841   # Split the substitutions into bite-sized pieces for seds with
3842   # small command number limits, like on Digital OSF/1 and HP-UX.
3843   ac_max_sed_lines=48
3844   ac_sed_frag=1 # Number of current file.
3845   ac_beg=1 # First line for current file.
3846   ac_end=$ac_max_sed_lines # Line after last line for current file.
3847   ac_more_lines=:
3848   ac_sed_cmds=
3849   while $ac_more_lines; do
3850     if test $ac_beg -gt 1; then
3851       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3852     else
3853       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3854     fi
3855     if test ! -s $tmp/subs.frag; then
3856       ac_more_lines=false
3857     else
3858       # The purpose of the label and of the branching condition is to
3859       # speed up the sed processing (if there are no `@' at all, there
3860       # is no need to browse any of the substitutions).
3861       # These are the two extra sed commands mentioned above.
3862       (echo ':t
3863   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3864       if test -z "$ac_sed_cmds"; then
3865         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
3866       else
3867         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3868       fi
3869       ac_sed_frag=`expr $ac_sed_frag + 1`
3870       ac_beg=$ac_end
3871       ac_end=`expr $ac_end + $ac_max_sed_lines`
3872     fi
3873   done
3874   if test -z "$ac_sed_cmds"; then
3875     ac_sed_cmds=cat
3876   fi
3877 fi # test -n "$CONFIG_FILES"
3878
3879 _ACEOF
3880 cat >>$CONFIG_STATUS <<\_ACEOF
3881 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
3882   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3883   case $ac_file in
3884   - | *:- | *:-:* ) # input from stdin
3885         cat >$tmp/stdin
3886         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3887         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3888   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3889         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3890   * )   ac_file_in=$ac_file.in ;;
3891   esac
3892
3893   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
3894   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
3895 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3896          X"$ac_file" : 'X\(//\)[^/]' \| \
3897          X"$ac_file" : 'X\(//\)$' \| \
3898          X"$ac_file" : 'X\(/\)' \| \
3899          .     : '\(.\)' 2>/dev/null ||
3900 echo X"$ac_file" |
3901     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3902           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3903           /^X\(\/\/\)$/{ s//\1/; q; }
3904           /^X\(\/\).*/{ s//\1/; q; }
3905           s/.*/./; q'`
3906   { case "$ac_dir" in
3907   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
3908   *)                      as_incr_dir=.;;
3909 esac
3910 as_dummy="$ac_dir"
3911 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
3912   case $as_mkdir_dir in
3913     # Skip DOS drivespec
3914     ?:) as_incr_dir=$as_mkdir_dir ;;
3915     *)
3916       as_incr_dir=$as_incr_dir/$as_mkdir_dir
3917       test -d "$as_incr_dir" ||
3918         mkdir "$as_incr_dir" ||
3919         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
3920 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
3921    { (exit 1); exit 1; }; }
3922     ;;
3923   esac
3924 done; }
3925
3926   ac_builddir=.
3927
3928 if test "$ac_dir" != .; then
3929   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
3930   # A "../" for each directory in $ac_dir_suffix.
3931   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
3932 else
3933   ac_dir_suffix= ac_top_builddir=
3934 fi
3935
3936 case $srcdir in
3937   .)  # No --srcdir option.  We are building in place.
3938     ac_srcdir=.
3939     if test -z "$ac_top_builddir"; then
3940        ac_top_srcdir=.
3941     else
3942        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
3943     fi ;;
3944   [\\/]* | ?:[\\/]* )  # Absolute path.
3945     ac_srcdir=$srcdir$ac_dir_suffix;
3946     ac_top_srcdir=$srcdir ;;
3947   *) # Relative path.
3948     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
3949     ac_top_srcdir=$ac_top_builddir$srcdir ;;
3950 esac
3951 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
3952 # absolute.
3953 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
3954 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
3955 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
3956 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
3957
3958
3959
3960   if test x"$ac_file" != x-; then
3961     { echo "$as_me:$LINENO: creating $ac_file" >&5
3962 echo "$as_me: creating $ac_file" >&6;}
3963     rm -f "$ac_file"
3964   fi
3965   # Let's still pretend it is `configure' which instantiates (i.e., don't
3966   # use $as_me), people would be surprised to read:
3967   #    /* config.h.  Generated by config.status.  */
3968   if test x"$ac_file" = x-; then
3969     configure_input=
3970   else
3971     configure_input="$ac_file.  "
3972   fi
3973   configure_input=$configure_input"Generated from `echo $ac_file_in |
3974                                      sed 's,.*/,,'` by configure."
3975
3976   # First look for the input files in the build tree, otherwise in the
3977   # src tree.
3978   ac_file_inputs=`IFS=:
3979     for f in $ac_file_in; do
3980       case $f in
3981       -) echo $tmp/stdin ;;
3982       [\\/$]*)
3983          # Absolute (can't be DOS-style, as IFS=:)
3984          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3985 echo "$as_me: error: cannot find input file: $f" >&2;}
3986    { (exit 1); exit 1; }; }
3987          echo $f;;
3988       *) # Relative
3989          if test -f "$f"; then
3990            # Build tree
3991            echo $f
3992          elif test -f "$srcdir/$f"; then
3993            # Source tree
3994            echo $srcdir/$f
3995          else
3996            # /dev/null tree
3997            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3998 echo "$as_me: error: cannot find input file: $f" >&2;}
3999    { (exit 1); exit 1; }; }
4000          fi;;
4001       esac
4002     done` || { (exit 1); exit 1; }
4003 _ACEOF
4004 cat >>$CONFIG_STATUS <<_ACEOF
4005   sed "$ac_vpsub
4006 $extrasub
4007 _ACEOF
4008 cat >>$CONFIG_STATUS <<\_ACEOF
4009 :t
4010 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4011 s,@configure_input@,$configure_input,;t t
4012 s,@srcdir@,$ac_srcdir,;t t
4013 s,@abs_srcdir@,$ac_abs_srcdir,;t t
4014 s,@top_srcdir@,$ac_top_srcdir,;t t
4015 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4016 s,@builddir@,$ac_builddir,;t t
4017 s,@abs_builddir@,$ac_abs_builddir,;t t
4018 s,@top_builddir@,$ac_top_builddir,;t t
4019 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4020 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4021   rm -f $tmp/stdin
4022   if test x"$ac_file" != x-; then
4023     mv $tmp/out $ac_file
4024   else
4025     cat $tmp/out
4026     rm -f $tmp/out
4027   fi
4028
4029 done
4030 _ACEOF
4031
4032 cat >>$CONFIG_STATUS <<\_ACEOF
4033
4034 { (exit 0); exit 0; }
4035 _ACEOF
4036 chmod +x $CONFIG_STATUS
4037 ac_clean_files=$ac_clean_files_save
4038
4039
4040 # configure is writing to config.log, and then calls config.status.
4041 # config.status does its own redirection, appending to config.log.
4042 # Unfortunately, on DOS this fails, as config.log is still kept open
4043 # by configure, so config.status won't be able to write to it; its
4044 # output is simply discarded.  So we exec the FD to /dev/null,
4045 # effectively closing config.log, so it can be properly (re)opened and
4046 # appended to by config.status.  When coming back to configure, we
4047 # need to make the FD available again.
4048 if test "$no_create" != yes; then
4049   ac_cs_success=:
4050   exec 5>/dev/null
4051   $SHELL $CONFIG_STATUS || ac_cs_success=false
4052   exec 5>>config.log
4053   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4054   # would make configure fail if this is the last instruction.
4055   $ac_cs_success || { (exit 1); exit 1; }
4056 fi
4057
4058         ac_config_files="$ac_config_files src/Makefile"
4059 cat >confcache <<\_ACEOF
4060 # This file is a shell script that caches the results of configure
4061 # tests run on this system so they can be shared between configure
4062 # scripts and configure runs, see configure's option --config-cache.
4063 # It is not useful on other systems.  If it contains results you don't
4064 # want to keep, you may remove or edit it.
4065 #
4066 # config.status only pays attention to the cache file if you give it
4067 # the --recheck option to rerun configure.
4068 #
4069 # `ac_cv_env_foo' variables (set or unset) will be overriden when
4070 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4071 # following values.
4072
4073 _ACEOF
4074
4075 # The following way of writing the cache mishandles newlines in values,
4076 # but we know of no workaround that is simple, portable, and efficient.
4077 # So, don't put newlines in cache variables' values.
4078 # Ultrix sh set writes to stderr and can't be redirected directly,
4079 # and sets the high bit in the cache file unless we assign to the vars.
4080 {
4081   (set) 2>&1 |
4082     case `(ac_space=' '; set | grep ac_space) 2>&1` in
4083     *ac_space=\ *)
4084       # `set' does not quote correctly, so add quotes (double-quote
4085       # substitution turns \\\\ into \\, and sed turns \\ into \).
4086       sed -n \
4087         "s/'/'\\\\''/g;
4088           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4089       ;;
4090     *)
4091       # `set' quotes correctly as required by POSIX, so do not add quotes.
4092       sed -n \
4093         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4094       ;;
4095     esac;
4096 } |
4097   sed '
4098      t clear
4099      : clear
4100      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4101      t end
4102      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4103      : end' >>confcache
4104 if cmp -s $cache_file confcache; then :; else
4105   if test -w $cache_file; then
4106     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4107     cat confcache >$cache_file
4108   else
4109     echo "not updating unwritable cache $cache_file"
4110   fi
4111 fi
4112 rm -f confcache
4113
4114 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4115 # Let make expand exec_prefix.
4116 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4117
4118 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4119 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4120 # trailing colons and then remove the whole line if VPATH becomes empty
4121 # (actually we leave an empty line to preserve line numbers).
4122 if test "x$srcdir" = x.; then
4123   ac_vpsub='/^[         ]*VPATH[        ]*=/{
4124 s/:*\$(srcdir):*/:/;
4125 s/:*\${srcdir}:*/:/;
4126 s/:*@srcdir@:*/:/;
4127 s/^\([^=]*=[    ]*\):*/\1/;
4128 s/:*$//;
4129 s/^[^=]*=[      ]*$//;
4130 }'
4131 fi
4132
4133 # Transform confdefs.h into DEFS.
4134 # Protect against shell expansion while executing Makefile rules.
4135 # Protect against Makefile macro expansion.
4136 #
4137 # If the first sed substitution is executed (which looks for macros that
4138 # take arguments), then we branch to the quote section.  Otherwise,
4139 # look for a macro that doesn't take arguments.
4140 cat >confdef2opt.sed <<\_ACEOF
4141 t clear
4142 : clear
4143 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
4144 t quote
4145 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
4146 t quote
4147 d
4148 : quote
4149 s,[     `~#$^&*(){}\\|;'"<>?],\\&,g
4150 s,\[,\\&,g
4151 s,\],\\&,g
4152 s,\$,$$,g
4153 p
4154 _ACEOF
4155 # We use echo to avoid assuming a particular line-breaking character.
4156 # The extra dot is to prevent the shell from consuming trailing
4157 # line-breaks from the sub-command output.  A line-break within
4158 # single-quotes doesn't work because, if this script is created in a
4159 # platform that uses two characters for line-breaks (e.g., DOS), tr
4160 # would break.
4161 ac_LF_and_DOT=`echo; echo .`
4162 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
4163 rm -f confdef2opt.sed
4164
4165
4166
4167 : ${CONFIG_STATUS=./config.status}
4168 ac_clean_files_save=$ac_clean_files
4169 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4170 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4171 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4172 cat >$CONFIG_STATUS <<_ACEOF
4173 #! $SHELL
4174 # Generated by $as_me.
4175 # Run this file to recreate the current configuration.
4176 # Compiler output produced by configure, useful for debugging
4177 # configure, is in config.log if it exists.
4178
4179 debug=false
4180 SHELL=\${CONFIG_SHELL-$SHELL}
4181 _ACEOF
4182
4183 cat >>$CONFIG_STATUS <<\_ACEOF
4184
4185 ## --------------------- ##
4186 ## M4sh Initialization.  ##
4187 ## --------------------- ##
4188
4189 # Be Bourne compatible
4190 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4191   emulate sh
4192   NULLCMD=:
4193 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4194   set -o posix
4195 fi
4196
4197 # NLS nuisances.
4198 # Support unset when possible.
4199 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
4200   as_unset=unset
4201 else
4202   as_unset=false
4203 fi
4204
4205 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
4206     { $as_unset LANG || test "${LANG+set}" != set; } ||
4207       { LANG=C; export LANG; }
4208 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
4209     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
4210       { LC_ALL=C; export LC_ALL; }
4211 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
4212     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
4213       { LC_TIME=C; export LC_TIME; }
4214 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
4215     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
4216       { LC_CTYPE=C; export LC_CTYPE; }
4217 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
4218     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
4219       { LANGUAGE=C; export LANGUAGE; }
4220 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
4221     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
4222       { LC_COLLATE=C; export LC_COLLATE; }
4223 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
4224     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
4225       { LC_NUMERIC=C; export LC_NUMERIC; }
4226 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
4227     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
4228       { LC_MESSAGES=C; export LC_MESSAGES; }
4229
4230
4231 # Name of the executable.
4232 as_me=`(basename "$0") 2>/dev/null ||
4233 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4234          X"$0" : 'X\(//\)$' \| \
4235          X"$0" : 'X\(/\)$' \| \
4236          .     : '\(.\)' 2>/dev/null ||
4237 echo X/"$0" |
4238     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4239           /^X\/\(\/\/\)$/{ s//\1/; q; }
4240           /^X\/\(\/\).*/{ s//\1/; q; }
4241           s/.*/./; q'`
4242
4243 # PATH needs CR, and LINENO needs CR and PATH.
4244 # Avoid depending upon Character Ranges.
4245 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4246 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4247 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4248 as_cr_digits='0123456789'
4249 as_cr_alnum=$as_cr_Letters$as_cr_digits
4250
4251 # The user is always right.
4252 if test "${PATH_SEPARATOR+set}" != set; then
4253   echo "#! /bin/sh" >conftest.sh
4254   echo  "exit 0"   >>conftest.sh
4255   chmod +x conftest.sh
4256   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
4257     PATH_SEPARATOR=';'
4258   else
4259     PATH_SEPARATOR=:
4260   fi
4261   rm -f conftest.sh
4262 fi
4263
4264
4265   as_lineno_1=$LINENO
4266   as_lineno_2=$LINENO
4267   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4268   test "x$as_lineno_1" != "x$as_lineno_2" &&
4269   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
4270   # Find who we are.  Look in the path if we contain no path at all
4271   # relative or not.
4272   case $0 in
4273     *[\\/]* ) as_myself=$0 ;;
4274     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275 for as_dir in $PATH
4276 do
4277   IFS=$as_save_IFS
4278   test -z "$as_dir" && as_dir=.
4279   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4280 done
4281
4282        ;;
4283   esac
4284   # We did not find ourselves, most probably we were run as `sh COMMAND'
4285   # in which case we are not to be found in the path.
4286   if test "x$as_myself" = x; then
4287     as_myself=$0
4288   fi
4289   if test ! -f "$as_myself"; then
4290     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4291 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4292    { (exit 1); exit 1; }; }
4293   fi
4294   case $CONFIG_SHELL in
4295   '')
4296     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4297 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4298 do
4299   IFS=$as_save_IFS
4300   test -z "$as_dir" && as_dir=.
4301   for as_base in sh bash ksh sh5; do
4302          case $as_dir in
4303          /*)
4304            if ("$as_dir/$as_base" -c '
4305   as_lineno_1=$LINENO
4306   as_lineno_2=$LINENO
4307   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4308   test "x$as_lineno_1" != "x$as_lineno_2" &&
4309   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
4310              CONFIG_SHELL=$as_dir/$as_base
4311              export CONFIG_SHELL
4312              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4313            fi;;
4314          esac
4315        done
4316 done
4317 ;;
4318   esac
4319
4320   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4321   # uniformly replaced by the line number.  The first 'sed' inserts a
4322   # line-number line before each line; the second 'sed' does the real
4323   # work.  The second script uses 'N' to pair each line-number line
4324   # with the numbered line, and appends trailing '-' during
4325   # substitution so that $LINENO is not a special case at line end.
4326   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4327   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
4328   sed '=' <$as_myself |
4329     sed '
4330       N
4331       s,$,-,
4332       : loop
4333       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4334       t loop
4335       s,-$,,
4336       s,^['$as_cr_digits']*\n,,
4337     ' >$as_me.lineno &&
4338   chmod +x $as_me.lineno ||
4339     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4340 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4341    { (exit 1); exit 1; }; }
4342
4343   # Don't try to exec as it changes $[0], causing all sort of problems
4344   # (the dirname of $[0] is not the place where we might find the
4345   # original and so on.  Autoconf is especially sensible to this).
4346   . ./$as_me.lineno
4347   # Exit status is that of the last command.
4348   exit
4349 }
4350
4351
4352 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4353   *c*,-n*) ECHO_N= ECHO_C='
4354 ' ECHO_T='      ' ;;
4355   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4356   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
4357 esac
4358
4359 if expr a : '\(a\)' >/dev/null 2>&1; then
4360   as_expr=expr
4361 else
4362   as_expr=false
4363 fi
4364
4365 rm -f conf$$ conf$$.exe conf$$.file
4366 echo >conf$$.file
4367 if ln -s conf$$.file conf$$ 2>/dev/null; then
4368   # We could just check for DJGPP; but this test a) works b) is more generic
4369   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4370   if test -f conf$$.exe; then
4371     # Don't use ln at all; we don't have any links
4372     as_ln_s='cp -p'
4373   else
4374     as_ln_s='ln -s'
4375   fi
4376 elif ln conf$$.file conf$$ 2>/dev/null; then
4377   as_ln_s=ln
4378 else
4379   as_ln_s='cp -p'
4380 fi
4381 rm -f conf$$ conf$$.exe conf$$.file
4382
4383 as_executable_p="test -f"
4384
4385 # Sed expression to map a string onto a valid CPP name.
4386 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
4387
4388 # Sed expression to map a string onto a valid variable name.
4389 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
4390
4391
4392 # IFS
4393 # We need space, tab and new line, in precisely that order.
4394 as_nl='
4395 '
4396 IFS="   $as_nl"
4397
4398 # CDPATH.
4399 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
4400
4401 exec 6>&1
4402
4403 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4404 # report actual input values of CONFIG_FILES etc. instead of their
4405 # values after options handling.  Logging --version etc. is OK.
4406 exec 5>>config.log
4407 {
4408   echo
4409   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4410 ## Running $as_me. ##
4411 _ASBOX
4412 } >&5
4413 cat >&5 <<_CSEOF
4414
4415 This file was extended by Apache Kerberos Module $as_me alpha2, which was
4416 generated by GNU Autoconf 2.53.  Invocation command line was
4417
4418   CONFIG_FILES    = $CONFIG_FILES
4419   CONFIG_HEADERS  = $CONFIG_HEADERS
4420   CONFIG_LINKS    = $CONFIG_LINKS
4421   CONFIG_COMMANDS = $CONFIG_COMMANDS
4422   $ $0 $@
4423
4424 _CSEOF
4425 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4426 echo >&5
4427 _ACEOF
4428
4429 # Files that config.status was made for.
4430 if test -n "$ac_config_files"; then
4431   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4432 fi
4433
4434 if test -n "$ac_config_headers"; then
4435   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4436 fi
4437
4438 if test -n "$ac_config_links"; then
4439   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4440 fi
4441
4442 if test -n "$ac_config_commands"; then
4443   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4444 fi
4445
4446 cat >>$CONFIG_STATUS <<\_ACEOF
4447
4448 ac_cs_usage="\
4449 \`$as_me' instantiates files from templates according to the
4450 current configuration.
4451
4452 Usage: $0 [OPTIONS] [FILE]...
4453
4454   -h, --help       print this help, then exit
4455   -V, --version    print version number, then exit
4456   -d, --debug      don't remove temporary files
4457       --recheck    update $as_me by reconfiguring in the same conditions
4458   --file=FILE[:TEMPLATE]
4459                    instantiate the configuration file FILE
4460
4461 Configuration files:
4462 $config_files
4463
4464 Report bugs to <bug-autoconf@gnu.org>."
4465 _ACEOF
4466
4467 cat >>$CONFIG_STATUS <<_ACEOF
4468 ac_cs_version="\\
4469 Apache Kerberos Module config.status alpha2
4470 configured by $0, generated by GNU Autoconf 2.53,
4471   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4472
4473 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
4474 Free Software Foundation, Inc.
4475 This config.status script is free software; the Free Software Foundation
4476 gives unlimited permission to copy, distribute and modify it."
4477 srcdir=$srcdir
4478 _ACEOF
4479
4480 cat >>$CONFIG_STATUS <<\_ACEOF
4481 # If no file are specified by the user, then we need to provide default
4482 # value.  By we need to know if files were specified by the user.
4483 ac_need_defaults=:
4484 while test $# != 0
4485 do
4486   case $1 in
4487   --*=*)
4488     ac_option=`expr "x$1" : 'x\([^=]*\)='`
4489     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4490     shift
4491     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
4492     shift
4493     ;;
4494   -*);;
4495   *) # This is not an option, so the user has probably given explicit
4496      # arguments.
4497      ac_need_defaults=false;;
4498   esac
4499
4500   case $1 in
4501   # Handling of the options.
4502 _ACEOF
4503 cat >>$CONFIG_STATUS <<_ACEOF
4504   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4505     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
4506     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
4507 _ACEOF
4508 cat >>$CONFIG_STATUS <<\_ACEOF
4509   --version | --vers* | -V )
4510     echo "$ac_cs_version"; exit 0 ;;
4511   --he | --h)
4512     # Conflict between --help and --header
4513     { { echo "$as_me:$LINENO: error: ambiguous option: $1
4514 Try \`$0 --help' for more information." >&5
4515 echo "$as_me: error: ambiguous option: $1
4516 Try \`$0 --help' for more information." >&2;}
4517    { (exit 1); exit 1; }; };;
4518   --help | --hel | -h )
4519     echo "$ac_cs_usage"; exit 0 ;;
4520   --debug | --d* | -d )
4521     debug=: ;;
4522   --file | --fil | --fi | --f )
4523     shift
4524     CONFIG_FILES="$CONFIG_FILES $1"
4525     ac_need_defaults=false;;
4526   --header | --heade | --head | --hea )
4527     shift
4528     CONFIG_HEADERS="$CONFIG_HEADERS $1"
4529     ac_need_defaults=false;;
4530
4531   # This is an error.
4532   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4533 Try \`$0 --help' for more information." >&5
4534 echo "$as_me: error: unrecognized option: $1
4535 Try \`$0 --help' for more information." >&2;}
4536    { (exit 1); exit 1; }; } ;;
4537
4538   *) ac_config_targets="$ac_config_targets $1" ;;
4539
4540   esac
4541   shift
4542 done
4543
4544 _ACEOF
4545
4546
4547
4548
4549
4550 cat >>$CONFIG_STATUS <<\_ACEOF
4551 for ac_config_target in $ac_config_targets
4552 do
4553   case "$ac_config_target" in
4554   # Handling of arguments.
4555   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4556   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
4557   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4558 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4559    { (exit 1); exit 1; }; };;
4560   esac
4561 done
4562
4563 # If the user did not use the arguments to specify the items to instantiate,
4564 # then the envvar interface is used.  Set only those that are not.
4565 # We use the long form for the default assignment because of an extremely
4566 # bizarre bug on SunOS 4.1.3.
4567 if $ac_need_defaults; then
4568   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4569 fi
4570
4571 # Create a temporary directory, and hook for its removal unless debugging.
4572 $debug ||
4573 {
4574   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4575   trap '{ (exit 1); exit 1; }' 1 2 13 15
4576 }
4577
4578 # Create a (secure) tmp directory for tmp files.
4579 : ${TMPDIR=/tmp}
4580 {
4581   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
4582   test -n "$tmp" && test -d "$tmp"
4583 }  ||
4584 {
4585   tmp=$TMPDIR/cs$$-$RANDOM
4586   (umask 077 && mkdir $tmp)
4587 } ||
4588 {
4589    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
4590    { (exit 1); exit 1; }
4591 }
4592
4593 _ACEOF
4594
4595 cat >>$CONFIG_STATUS <<_ACEOF
4596
4597 #
4598 # CONFIG_FILES section.
4599 #
4600
4601 # No need to generate the scripts if there are no CONFIG_FILES.
4602 # This happens for instance when ./config.status config.h
4603 if test -n "\$CONFIG_FILES"; then
4604   # Protect against being on the right side of a sed subst in config.status.
4605   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4606    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4607 s,@SHELL@,$SHELL,;t t
4608 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4609 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4610 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4611 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4612 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4613 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4614 s,@exec_prefix@,$exec_prefix,;t t
4615 s,@prefix@,$prefix,;t t
4616 s,@program_transform_name@,$program_transform_name,;t t
4617 s,@bindir@,$bindir,;t t
4618 s,@sbindir@,$sbindir,;t t
4619 s,@libexecdir@,$libexecdir,;t t
4620 s,@datadir@,$datadir,;t t
4621 s,@sysconfdir@,$sysconfdir,;t t
4622 s,@sharedstatedir@,$sharedstatedir,;t t
4623 s,@localstatedir@,$localstatedir,;t t
4624 s,@libdir@,$libdir,;t t
4625 s,@includedir@,$includedir,;t t
4626 s,@oldincludedir@,$oldincludedir,;t t
4627 s,@infodir@,$infodir,;t t
4628 s,@mandir@,$mandir,;t t
4629 s,@build_alias@,$build_alias,;t t
4630 s,@host_alias@,$host_alias,;t t
4631 s,@target_alias@,$target_alias,;t t
4632 s,@DEFS@,$DEFS,;t t
4633 s,@ECHO_C@,$ECHO_C,;t t
4634 s,@ECHO_N@,$ECHO_N,;t t
4635 s,@ECHO_T@,$ECHO_T,;t t
4636 s,@LIBS@,$LIBS,;t t
4637 s,@CC@,$CC,;t t
4638 s,@CFLAGS@,$CFLAGS,;t t
4639 s,@LDFLAGS@,$LDFLAGS,;t t
4640 s,@CPPFLAGS@,$CPPFLAGS,;t t
4641 s,@ac_ct_CC@,$ac_ct_CC,;t t
4642 s,@EXEEXT@,$EXEEXT,;t t
4643 s,@OBJEXT@,$OBJEXT,;t t
4644 s,@APXS@,$APXS,;t t
4645 s,@CPP@,$CPP,;t t
4646 CEOF
4647
4648 _ACEOF
4649
4650   cat >>$CONFIG_STATUS <<\_ACEOF
4651   # Split the substitutions into bite-sized pieces for seds with
4652   # small command number limits, like on Digital OSF/1 and HP-UX.
4653   ac_max_sed_lines=48
4654   ac_sed_frag=1 # Number of current file.
4655   ac_beg=1 # First line for current file.
4656   ac_end=$ac_max_sed_lines # Line after last line for current file.
4657   ac_more_lines=:
4658   ac_sed_cmds=
4659   while $ac_more_lines; do
4660     if test $ac_beg -gt 1; then
4661       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4662     else
4663       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4664     fi
4665     if test ! -s $tmp/subs.frag; then
4666       ac_more_lines=false
4667     else
4668       # The purpose of the label and of the branching condition is to
4669       # speed up the sed processing (if there are no `@' at all, there
4670       # is no need to browse any of the substitutions).
4671       # These are the two extra sed commands mentioned above.
4672       (echo ':t
4673   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4674       if test -z "$ac_sed_cmds"; then
4675         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4676       else
4677         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4678       fi
4679       ac_sed_frag=`expr $ac_sed_frag + 1`
4680       ac_beg=$ac_end
4681       ac_end=`expr $ac_end + $ac_max_sed_lines`
4682     fi
4683   done
4684   if test -z "$ac_sed_cmds"; then
4685     ac_sed_cmds=cat
4686   fi
4687 fi # test -n "$CONFIG_FILES"
4688
4689 _ACEOF
4690 cat >>$CONFIG_STATUS <<\_ACEOF
4691 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4692   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4693   case $ac_file in
4694   - | *:- | *:-:* ) # input from stdin
4695         cat >$tmp/stdin
4696         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4697         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4698   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4699         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4700   * )   ac_file_in=$ac_file.in ;;
4701   esac
4702
4703   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4704   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4705 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4706          X"$ac_file" : 'X\(//\)[^/]' \| \
4707          X"$ac_file" : 'X\(//\)$' \| \
4708          X"$ac_file" : 'X\(/\)' \| \
4709          .     : '\(.\)' 2>/dev/null ||
4710 echo X"$ac_file" |
4711     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4712           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4713           /^X\(\/\/\)$/{ s//\1/; q; }
4714           /^X\(\/\).*/{ s//\1/; q; }
4715           s/.*/./; q'`
4716   { case "$ac_dir" in
4717   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
4718   *)                      as_incr_dir=.;;
4719 esac
4720 as_dummy="$ac_dir"
4721 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
4722   case $as_mkdir_dir in
4723     # Skip DOS drivespec
4724     ?:) as_incr_dir=$as_mkdir_dir ;;
4725     *)
4726       as_incr_dir=$as_incr_dir/$as_mkdir_dir
4727       test -d "$as_incr_dir" ||
4728         mkdir "$as_incr_dir" ||
4729         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
4730 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
4731    { (exit 1); exit 1; }; }
4732     ;;
4733   esac
4734 done; }
4735
4736   ac_builddir=.
4737
4738 if test "$ac_dir" != .; then
4739   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4740   # A "../" for each directory in $ac_dir_suffix.
4741   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4742 else
4743   ac_dir_suffix= ac_top_builddir=
4744 fi
4745
4746 case $srcdir in
4747   .)  # No --srcdir option.  We are building in place.
4748     ac_srcdir=.
4749     if test -z "$ac_top_builddir"; then
4750        ac_top_srcdir=.
4751     else
4752        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4753     fi ;;
4754   [\\/]* | ?:[\\/]* )  # Absolute path.
4755     ac_srcdir=$srcdir$ac_dir_suffix;
4756     ac_top_srcdir=$srcdir ;;
4757   *) # Relative path.
4758     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4759     ac_top_srcdir=$ac_top_builddir$srcdir ;;
4760 esac
4761 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
4762 # absolute.
4763 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
4764 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
4765 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
4766 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
4767
4768
4769
4770   if test x"$ac_file" != x-; then
4771     { echo "$as_me:$LINENO: creating $ac_file" >&5
4772 echo "$as_me: creating $ac_file" >&6;}
4773     rm -f "$ac_file"
4774   fi
4775   # Let's still pretend it is `configure' which instantiates (i.e., don't
4776   # use $as_me), people would be surprised to read:
4777   #    /* config.h.  Generated by config.status.  */
4778   if test x"$ac_file" = x-; then
4779     configure_input=
4780   else
4781     configure_input="$ac_file.  "
4782   fi
4783   configure_input=$configure_input"Generated from `echo $ac_file_in |
4784                                      sed 's,.*/,,'` by configure."
4785
4786   # First look for the input files in the build tree, otherwise in the
4787   # src tree.
4788   ac_file_inputs=`IFS=:
4789     for f in $ac_file_in; do
4790       case $f in
4791       -) echo $tmp/stdin ;;
4792       [\\/$]*)
4793          # Absolute (can't be DOS-style, as IFS=:)
4794          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4795 echo "$as_me: error: cannot find input file: $f" >&2;}
4796    { (exit 1); exit 1; }; }
4797          echo $f;;
4798       *) # Relative
4799          if test -f "$f"; then
4800            # Build tree
4801            echo $f
4802          elif test -f "$srcdir/$f"; then
4803            # Source tree
4804            echo $srcdir/$f
4805          else
4806            # /dev/null tree
4807            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4808 echo "$as_me: error: cannot find input file: $f" >&2;}
4809    { (exit 1); exit 1; }; }
4810          fi;;
4811       esac
4812     done` || { (exit 1); exit 1; }
4813 _ACEOF
4814 cat >>$CONFIG_STATUS <<_ACEOF
4815   sed "$ac_vpsub
4816 $extrasub
4817 _ACEOF
4818 cat >>$CONFIG_STATUS <<\_ACEOF
4819 :t
4820 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4821 s,@configure_input@,$configure_input,;t t
4822 s,@srcdir@,$ac_srcdir,;t t
4823 s,@abs_srcdir@,$ac_abs_srcdir,;t t
4824 s,@top_srcdir@,$ac_top_srcdir,;t t
4825 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4826 s,@builddir@,$ac_builddir,;t t
4827 s,@abs_builddir@,$ac_abs_builddir,;t t
4828 s,@top_builddir@,$ac_top_builddir,;t t
4829 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4830 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4831   rm -f $tmp/stdin
4832   if test x"$ac_file" != x-; then
4833     mv $tmp/out $ac_file
4834   else
4835     cat $tmp/out
4836     rm -f $tmp/out
4837   fi
4838
4839 done
4840 _ACEOF
4841
4842 cat >>$CONFIG_STATUS <<\_ACEOF
4843
4844 { (exit 0); exit 0; }
4845 _ACEOF
4846 chmod +x $CONFIG_STATUS
4847 ac_clean_files=$ac_clean_files_save
4848
4849
4850 # configure is writing to config.log, and then calls config.status.
4851 # config.status does its own redirection, appending to config.log.
4852 # Unfortunately, on DOS this fails, as config.log is still kept open
4853 # by configure, so config.status won't be able to write to it; its
4854 # output is simply discarded.  So we exec the FD to /dev/null,
4855 # effectively closing config.log, so it can be properly (re)opened and
4856 # appended to by config.status.  When coming back to configure, we
4857 # need to make the FD available again.
4858 if test "$no_create" != yes; then
4859   ac_cs_success=:
4860   exec 5>/dev/null
4861   $SHELL $CONFIG_STATUS || ac_cs_success=false
4862   exec 5>>config.log
4863   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4864   # would make configure fail if this is the last instruction.
4865   $ac_cs_success || { (exit 1); exit 1; }
4866 fi
4867
4868 fi
4869
4870 exit 0