3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-rlm-krb5-lib-dir=DIR Directory for krb5 library files []"
17 --with-rlm-krb5-include-dir=DIR Directory for krb5 include files []"
19 --enable-heimdal-krb5 Enable if you have heimdal krb5"
21 # Initialize some variables set by options.
22 # The variables have the same names as the options, with
23 # dashes changed to underlines.
25 cache_file=./config.cache
34 program_transform_name=s,x,x,
42 bindir='${exec_prefix}/bin'
43 sbindir='${exec_prefix}/sbin'
44 libexecdir='${exec_prefix}/libexec'
45 datadir='${prefix}/share'
46 sysconfdir='${prefix}/etc'
47 sharedstatedir='${prefix}/com'
48 localstatedir='${prefix}/var'
49 libdir='${exec_prefix}/lib'
50 includedir='${prefix}/include'
51 oldincludedir='/usr/include'
52 infodir='${prefix}/info'
53 mandir='${prefix}/man'
55 # Initialize some other variables.
58 SHELL=${CONFIG_SHELL-/bin/sh}
59 # Maximum number of lines to put in a shell here document.
66 # If the previous option needs an argument, assign it.
67 if test -n "$ac_prev"; then
68 eval "$ac_prev=\$ac_option"
74 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
78 # Accept the important Cygnus configure options, so we can diagnose typos.
82 -bindir | --bindir | --bindi | --bind | --bin | --bi)
84 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
85 bindir="$ac_optarg" ;;
87 -build | --build | --buil | --bui | --bu)
89 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
92 -cache-file | --cache-file | --cache-fil | --cache-fi \
93 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
95 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
96 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
97 cache_file="$ac_optarg" ;;
99 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
101 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
103 datadir="$ac_optarg" ;;
105 -disable-* | --disable-*)
106 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
107 # Reject names that are not valid shell variable names.
108 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
109 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
111 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
112 eval "enable_${ac_feature}=no" ;;
114 -enable-* | --enable-*)
115 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
116 # Reject names that are not valid shell variable names.
117 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
118 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
120 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
125 eval "enable_${ac_feature}='$ac_optarg'" ;;
127 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
128 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
129 | --exec | --exe | --ex)
130 ac_prev=exec_prefix ;;
131 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
132 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
133 | --exec=* | --exe=* | --ex=*)
134 exec_prefix="$ac_optarg" ;;
136 -gas | --gas | --ga | --g)
137 # Obsolete; use --with-gas.
140 -help | --help | --hel | --he)
141 # Omit some internal or obsolete options to make the list less imposing.
142 # This message is too long to be a string in the A/UX 3.1 sh.
144 Usage: configure [options] [host]
145 Options: [defaults in brackets after descriptions]
147 --cache-file=FILE cache test results in FILE
148 --help print this message
149 --no-create do not create output files
150 --quiet, --silent do not print \`checking...' messages
151 --version print the version of autoconf that created configure
152 Directory and file names:
153 --prefix=PREFIX install architecture-independent files in PREFIX
155 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
157 --bindir=DIR user executables in DIR [EPREFIX/bin]
158 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
159 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
160 --datadir=DIR read-only architecture-independent data in DIR
162 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
163 --sharedstatedir=DIR modifiable architecture-independent data in DIR
165 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
166 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
167 --includedir=DIR C header files in DIR [PREFIX/include]
168 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
169 --infodir=DIR info documentation in DIR [PREFIX/info]
170 --mandir=DIR man documentation in DIR [PREFIX/man]
171 --srcdir=DIR find the sources in DIR [configure dir or ..]
172 --program-prefix=PREFIX prepend PREFIX to installed program names
173 --program-suffix=SUFFIX append SUFFIX to installed program names
174 --program-transform-name=PROGRAM
175 run sed PROGRAM on installed program names
179 --build=BUILD configure for building on BUILD [BUILD=HOST]
180 --host=HOST configure for HOST [guessed]
181 --target=TARGET configure for TARGET [TARGET=HOST]
182 Features and packages:
183 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
184 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
185 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
186 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
187 --x-includes=DIR X include files are in DIR
188 --x-libraries=DIR X library files are in DIR
190 if test -n "$ac_help"; then
191 echo "--enable and --with options recognized:$ac_help"
195 -host | --host | --hos | --ho)
197 -host=* | --host=* | --hos=* | --ho=*)
200 -includedir | --includedir | --includedi | --included | --include \
201 | --includ | --inclu | --incl | --inc)
202 ac_prev=includedir ;;
203 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
204 | --includ=* | --inclu=* | --incl=* | --inc=*)
205 includedir="$ac_optarg" ;;
207 -infodir | --infodir | --infodi | --infod | --info | --inf)
209 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
210 infodir="$ac_optarg" ;;
212 -libdir | --libdir | --libdi | --libd)
214 -libdir=* | --libdir=* | --libdi=* | --libd=*)
215 libdir="$ac_optarg" ;;
217 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
218 | --libexe | --libex | --libe)
219 ac_prev=libexecdir ;;
220 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
221 | --libexe=* | --libex=* | --libe=*)
222 libexecdir="$ac_optarg" ;;
224 -localstatedir | --localstatedir | --localstatedi | --localstated \
225 | --localstate | --localstat | --localsta | --localst \
226 | --locals | --local | --loca | --loc | --lo)
227 ac_prev=localstatedir ;;
228 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
229 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
230 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
231 localstatedir="$ac_optarg" ;;
233 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
235 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
236 mandir="$ac_optarg" ;;
239 # Obsolete; use --without-fp.
242 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
246 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
247 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
250 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
251 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
252 | --oldin | --oldi | --old | --ol | --o)
253 ac_prev=oldincludedir ;;
254 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
255 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
256 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
257 oldincludedir="$ac_optarg" ;;
259 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
261 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
262 prefix="$ac_optarg" ;;
264 -program-prefix | --program-prefix | --program-prefi | --program-pref \
265 | --program-pre | --program-pr | --program-p)
266 ac_prev=program_prefix ;;
267 -program-prefix=* | --program-prefix=* | --program-prefi=* \
268 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
269 program_prefix="$ac_optarg" ;;
271 -program-suffix | --program-suffix | --program-suffi | --program-suff \
272 | --program-suf | --program-su | --program-s)
273 ac_prev=program_suffix ;;
274 -program-suffix=* | --program-suffix=* | --program-suffi=* \
275 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
276 program_suffix="$ac_optarg" ;;
278 -program-transform-name | --program-transform-name \
279 | --program-transform-nam | --program-transform-na \
280 | --program-transform-n | --program-transform- \
281 | --program-transform | --program-transfor \
282 | --program-transfo | --program-transf \
283 | --program-trans | --program-tran \
284 | --progr-tra | --program-tr | --program-t)
285 ac_prev=program_transform_name ;;
286 -program-transform-name=* | --program-transform-name=* \
287 | --program-transform-nam=* | --program-transform-na=* \
288 | --program-transform-n=* | --program-transform-=* \
289 | --program-transform=* | --program-transfor=* \
290 | --program-transfo=* | --program-transf=* \
291 | --program-trans=* | --program-tran=* \
292 | --progr-tra=* | --program-tr=* | --program-t=*)
293 program_transform_name="$ac_optarg" ;;
295 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
296 | -silent | --silent | --silen | --sile | --sil)
299 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
301 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
303 sbindir="$ac_optarg" ;;
305 -sharedstatedir | --sharedstatedir | --sharedstatedi \
306 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
307 | --sharedst | --shareds | --shared | --share | --shar \
309 ac_prev=sharedstatedir ;;
310 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
311 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
312 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
314 sharedstatedir="$ac_optarg" ;;
316 -site | --site | --sit)
318 -site=* | --site=* | --sit=*)
321 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
323 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
324 srcdir="$ac_optarg" ;;
326 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
327 | --syscon | --sysco | --sysc | --sys | --sy)
328 ac_prev=sysconfdir ;;
329 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
330 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
331 sysconfdir="$ac_optarg" ;;
333 -target | --target | --targe | --targ | --tar | --ta | --t)
335 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
336 target="$ac_optarg" ;;
338 -v | -verbose | --verbose | --verbos | --verbo | --verb)
341 -version | --version | --versio | --versi | --vers)
342 echo "configure generated by autoconf version 2.13"
346 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
347 # Reject names that are not valid shell variable names.
348 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
349 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
351 ac_package=`echo $ac_package| sed 's/-/_/g'`
356 eval "with_${ac_package}='$ac_optarg'" ;;
358 -without-* | --without-*)
359 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
360 # Reject names that are not valid shell variable names.
361 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
362 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
364 ac_package=`echo $ac_package| sed 's/-/_/g'`
365 eval "with_${ac_package}=no" ;;
368 # Obsolete; use --with-x.
371 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
372 | --x-incl | --x-inc | --x-in | --x-i)
373 ac_prev=x_includes ;;
374 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
375 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
376 x_includes="$ac_optarg" ;;
378 -x-libraries | --x-libraries | --x-librarie | --x-librari \
379 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
380 ac_prev=x_libraries ;;
381 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
382 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
383 x_libraries="$ac_optarg" ;;
385 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
389 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
390 echo "configure: warning: $ac_option: invalid host type" 1>&2
392 if test "x$nonopt" != xNONE; then
393 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
401 if test -n "$ac_prev"; then
402 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
405 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
407 # File descriptor usage:
410 # 2 errors and warnings
411 # 3 some systems may open it to /dev/tty
412 # 4 used on the Kubota Titan
413 # 6 checking for... messages and results
414 # 5 compiler messages saved in config.log
415 if test "$silent" = yes; then
423 This file contains any messages produced by compilers while
424 running configure, to aid debugging if configure makes a mistake.
427 # Strip out --no-create and --no-recursion so they do not pile up.
428 # Also quote any args containing shell metacharacters.
433 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
434 | --no-cr | --no-c) ;;
435 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
436 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
437 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
438 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
439 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
444 # Only set these to C if already set. These must not be set unconditionally
445 # because not all systems understand e.g. LANG=C (notably SCO).
446 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
447 # Non-C LC_CTYPE values break the ctype check.
448 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
449 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
450 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
451 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
453 # confdefs.h avoids OS command line length limits that DEFS can exceed.
454 rm -rf conftest* confdefs.h
455 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
458 # A filename unique to this package, relative to the directory that
459 # configure is in, which we can look for to find out if srcdir is correct.
460 ac_unique_file=rlm_krb5.c
462 # Find the source files, if location was not specified.
463 if test -z "$srcdir"; then
464 ac_srcdir_defaulted=yes
465 # Try the directory containing this script, then its parent.
467 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
468 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
470 if test ! -r $srcdir/$ac_unique_file; then
474 ac_srcdir_defaulted=no
476 if test ! -r $srcdir/$ac_unique_file; then
477 if test "$ac_srcdir_defaulted" = yes; then
478 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
480 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
483 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
485 # Prefer explicitly selected file to automatically selected ones.
486 if test -z "$CONFIG_SITE"; then
487 if test "x$prefix" != xNONE; then
488 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
490 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
493 for ac_site_file in $CONFIG_SITE; do
494 if test -r "$ac_site_file"; then
495 echo "loading site script $ac_site_file"
500 if test -r "$cache_file"; then
501 echo "loading cache $cache_file"
504 echo "creating cache $cache_file"
509 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
510 ac_cpp='$CPP $CPPFLAGS'
511 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
512 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
513 cross_compiling=$ac_cv_prog_cc_cross
517 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
518 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
519 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
526 ac_n= ac_c='\c' ac_t=
530 # From configure.in Revision: 1.7
533 if test x$with_rlm_krb5 != xno; then
535 # Extract the first word of "gcc", so it can be a program name with args.
536 set dummy gcc; ac_word=$2
537 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
538 echo "configure:539: checking for $ac_word" >&5
539 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
540 echo $ac_n "(cached) $ac_c" 1>&6
542 if test -n "$CC"; then
543 ac_cv_prog_CC="$CC" # Let the user override the test.
545 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
547 for ac_dir in $ac_dummy; do
548 test -z "$ac_dir" && ac_dir=.
549 if test -f $ac_dir/$ac_word; then
558 if test -n "$CC"; then
559 echo "$ac_t""$CC" 1>&6
561 echo "$ac_t""no" 1>&6
564 if test -z "$CC"; then
565 # Extract the first word of "cc", so it can be a program name with args.
566 set dummy cc; ac_word=$2
567 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
568 echo "configure:569: checking for $ac_word" >&5
569 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
570 echo $ac_n "(cached) $ac_c" 1>&6
572 if test -n "$CC"; then
573 ac_cv_prog_CC="$CC" # Let the user override the test.
575 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
578 for ac_dir in $ac_dummy; do
579 test -z "$ac_dir" && ac_dir=.
580 if test -f $ac_dir/$ac_word; then
581 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
590 if test $ac_prog_rejected = yes; then
591 # We found a bogon in the path, so make sure we never use it.
592 set dummy $ac_cv_prog_CC
594 if test $# -gt 0; then
595 # We chose a different compiler from the bogus one.
596 # However, it has the same basename, so the bogon will be chosen
597 # first if we set CC to just the basename; use the full file name.
599 set dummy "$ac_dir/$ac_word" "$@"
607 if test -n "$CC"; then
608 echo "$ac_t""$CC" 1>&6
610 echo "$ac_t""no" 1>&6
613 if test -z "$CC"; then
616 # Extract the first word of "cl", so it can be a program name with args.
617 set dummy cl; ac_word=$2
618 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
619 echo "configure:620: checking for $ac_word" >&5
620 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
621 echo $ac_n "(cached) $ac_c" 1>&6
623 if test -n "$CC"; then
624 ac_cv_prog_CC="$CC" # Let the user override the test.
626 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
628 for ac_dir in $ac_dummy; do
629 test -z "$ac_dir" && ac_dir=.
630 if test -f $ac_dir/$ac_word; then
639 if test -n "$CC"; then
640 echo "$ac_t""$CC" 1>&6
642 echo "$ac_t""no" 1>&6
647 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
650 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
651 echo "configure:652: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
654 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
655 ac_cpp='$CPP $CPPFLAGS'
656 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
657 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
658 cross_compiling=$ac_cv_prog_cc_cross
660 cat > conftest.$ac_ext << EOF
662 #line 663 "configure"
663 #include "confdefs.h"
667 if { (eval echo configure:668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
668 ac_cv_prog_cc_works=yes
669 # If we can't run a trivial program, we are probably using a cross compiler.
670 if (./conftest; exit) 2>/dev/null; then
671 ac_cv_prog_cc_cross=no
673 ac_cv_prog_cc_cross=yes
676 echo "configure: failed program was:" >&5
677 cat conftest.$ac_ext >&5
678 ac_cv_prog_cc_works=no
682 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
683 ac_cpp='$CPP $CPPFLAGS'
684 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
685 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
686 cross_compiling=$ac_cv_prog_cc_cross
688 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
689 if test $ac_cv_prog_cc_works = no; then
690 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
692 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
693 echo "configure:694: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
694 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
695 cross_compiling=$ac_cv_prog_cc_cross
697 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
698 echo "configure:699: checking whether we are using GNU C" >&5
699 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
700 echo $ac_n "(cached) $ac_c" 1>&6
702 cat > conftest.c <<EOF
707 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
714 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
716 if test $ac_cv_prog_gcc = yes; then
722 ac_test_CFLAGS="${CFLAGS+set}"
723 ac_save_CFLAGS="$CFLAGS"
725 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
726 echo "configure:727: checking whether ${CC-cc} accepts -g" >&5
727 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
728 echo $ac_n "(cached) $ac_c" 1>&6
730 echo 'void f(){}' > conftest.c
731 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
740 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
741 if test "$ac_test_CFLAGS" = set; then
742 CFLAGS="$ac_save_CFLAGS"
743 elif test $ac_cv_prog_cc_g = yes; then
744 if test "$GCC" = yes; then
750 if test "$GCC" = yes; then
757 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
758 echo "configure:759: checking how to run the C preprocessor" >&5
759 # On Suns, sometimes $CPP names a directory.
760 if test -n "$CPP" && test -d "$CPP"; then
763 if test -z "$CPP"; then
764 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
765 echo $ac_n "(cached) $ac_c" 1>&6
767 # This must be in double quotes, not single quotes, because CPP may get
768 # substituted into the Makefile and "${CC-cc}" will confuse make.
770 # On the NeXT, cc -E runs the code through the compiler's parser,
771 # not just through cpp.
772 cat > conftest.$ac_ext <<EOF
773 #line 774 "configure"
774 #include "confdefs.h"
778 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
779 { (eval echo configure:780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
780 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
781 if test -z "$ac_err"; then
785 echo "configure: failed program was:" >&5
786 cat conftest.$ac_ext >&5
788 CPP="${CC-cc} -E -traditional-cpp"
789 cat > conftest.$ac_ext <<EOF
790 #line 791 "configure"
791 #include "confdefs.h"
795 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
796 { (eval echo configure:797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
797 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
798 if test -z "$ac_err"; then
802 echo "configure: failed program was:" >&5
803 cat conftest.$ac_ext >&5
805 CPP="${CC-cc} -nologo -E"
806 cat > conftest.$ac_ext <<EOF
807 #line 808 "configure"
808 #include "confdefs.h"
812 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
813 { (eval echo configure:814: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
814 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
815 if test -z "$ac_err"; then
819 echo "configure: failed program was:" >&5
820 cat conftest.$ac_ext >&5
829 ac_cv_prog_CPP="$CPP"
831 CPP="$ac_cv_prog_CPP"
833 ac_cv_prog_CPP="$CPP"
835 echo "$ac_t""$CPP" 1>&6
839 # Check whether --with-rlm-krb5-lib-dir or --without-rlm-krb5-lib-dir was given.
840 if test "${with_rlm_krb5_lib_dir+set}" = set; then
841 withval="$with_rlm_krb5_lib_dir"
844 { echo "configure: error: Need rlm-krb5-lib-dir" 1>&2; exit 1; }
849 rlm_krb5_lib_dir="$withval"
857 # Check whether --with-rlm-krb5-include-dir or --without-rlm-krb5-include-dir was given.
858 if test "${with_rlm_krb5_include_dir+set}" = set; then
859 withval="$with_rlm_krb5_include_dir"
862 { echo "configure: error: Need rlm-krb5-include-dir" 1>&2; exit 1; }
867 rlm_krb5_include_dir="$withval"
874 # Check whether --enable-heimdal-krb5 or --disable-heimdal-krb5 was given.
875 if test "${enable_heimdal_krb5+set}" = set; then
876 enableval="$enable_heimdal_krb5"
879 krb5_h_cflags="-DHEIMDAL_KRB5"
886 smart_try_dir=$rlm_krb5_include_dir
889 ac_safe=`echo "krb5.h" | sed 'y%./+-%__pm%'`
890 echo $ac_n "checking for krb5.h""... $ac_c" 1>&6
891 echo "configure:892: checking for krb5.h" >&5
897 if test "x$smart_try_dir" != "x"; then
898 for try in $smart_try_dir; do
899 CFLAGS="$old_CFLAGS -I$try"
900 cat > conftest.$ac_ext <<EOF
901 #line 902 "configure"
902 #include "confdefs.h"
909 if { (eval echo configure:910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
911 smart_include="-I$try"
913 echo "configure: failed program was:" >&5
914 cat conftest.$ac_ext >&5
919 if test "x$smart_include" != "x"; then
926 if test "x$smart_include" = "x"; then
927 cat > conftest.$ac_ext <<EOF
928 #line 929 "configure"
929 #include "confdefs.h"
936 if { (eval echo configure:937: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
940 echo "configure: failed program was:" >&5
941 cat conftest.$ac_ext >&5
948 if test "x$smart_include" = "x"; then
951 if test "x$LOCATE" != "x"; then
955 for x in `${LOCATE} $file 2>/dev/null`; do
956 base=`echo $x | sed "s%/${file}%%"`
957 if test "x$x" = "x$base"; then
961 dir=`${DIRNAME} $x 2>/dev/null`
962 exclude=`echo ${dir} | ${GREP} /home`
963 if test "x$exclude" != "x"; then
967 already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
968 if test "x$already" = "x"; then
974 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
977 for try in $smart_include_dir /usr/local/include /opt/include; do
978 CFLAGS="$old_CFLAGS -I$try"
979 cat > conftest.$ac_ext <<EOF
980 #line 981 "configure"
981 #include "confdefs.h"
988 if { (eval echo configure:989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
990 smart_include="-I$try"
992 echo "configure: failed program was:" >&5
993 cat conftest.$ac_ext >&5
998 if test "x$smart_include" != "x"; then
1002 CFLAGS="$old_CFLAGS"
1005 if test "x$smart_include" != "x"; then
1006 echo "$ac_t""yes" 1>&6
1007 eval "ac_cv_header_$ac_safe=yes"
1008 CFLAGS="$old_CFLAGS $smart_include"
1009 SMART_CFLAGS="$SMART_CFLAGS $smart_include"
1011 echo "$ac_t""no" 1>&6
1015 smart_try_dir=$rlm_krb5_lib_dir
1019 sm_lib_safe=`echo "k5crypto" | sed 'y%./+-%__p_%'`
1020 sm_func_safe=`echo "krb5_encrypt_data" | sed 'y%./+-%__p_%'`
1021 echo $ac_n "checking for krb5_encrypt_data in -lk5crypto""... $ac_c" 1>&6
1022 echo "configure:1023: checking for krb5_encrypt_data in -lk5crypto" >&5
1028 if test "x$smart_try_dir" != "x"; then
1029 for try in $smart_try_dir; do
1030 LIBS="-L$try -lk5crypto $old_LIBS"
1031 cat > conftest.$ac_ext <<EOF
1032 #line 1033 "configure"
1033 #include "confdefs.h"
1034 extern char krb5_encrypt_data();
1039 if { (eval echo configure:1040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1041 smart_lib="-L$try -lk5crypto"
1043 echo "configure: failed program was:" >&5
1044 cat conftest.$ac_ext >&5
1047 if test "x$smart_lib" != "x"; then
1054 if test "x$smart_lib" = "x"; then
1055 LIBS="-lk5crypto $old_LIBS"
1056 cat > conftest.$ac_ext <<EOF
1057 #line 1058 "configure"
1058 #include "confdefs.h"
1059 extern char krb5_encrypt_data();
1064 if { (eval echo configure:1065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1066 smart_lib="-lk5crypto"
1068 echo "configure: failed program was:" >&5
1069 cat conftest.$ac_ext >&5
1075 if test "x$smart_lib" = "x"; then
1078 if test "x$LOCATE" != "x"; then
1080 file=libk5crypto${libltdl_cv_shlibext}
1082 for x in `${LOCATE} $file 2>/dev/null`; do
1083 base=`echo $x | sed "s%/${file}%%"`
1084 if test "x$x" = "x$base"; then
1088 dir=`${DIRNAME} $x 2>/dev/null`
1089 exclude=`echo ${dir} | ${GREP} /home`
1090 if test "x$exclude" != "x"; then
1094 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
1095 if test "x$already" = "x"; then
1101 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
1105 if test "x$LOCATE" != "x"; then
1109 for x in `${LOCATE} $file 2>/dev/null`; do
1110 base=`echo $x | sed "s%/${file}%%"`
1111 if test "x$x" = "x$base"; then
1115 dir=`${DIRNAME} $x 2>/dev/null`
1116 exclude=`echo ${dir} | ${GREP} /home`
1117 if test "x$exclude" != "x"; then
1121 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
1122 if test "x$already" = "x"; then
1128 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
1131 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
1132 LIBS="-L$try -lk5crypto $old_LIBS"
1133 cat > conftest.$ac_ext <<EOF
1134 #line 1135 "configure"
1135 #include "confdefs.h"
1136 extern char krb5_encrypt_data();
1141 if { (eval echo configure:1142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1143 smart_lib="-L$try -lk5crypto"
1145 echo "configure: failed program was:" >&5
1146 cat conftest.$ac_ext >&5
1149 if test "x$smart_lib" != "x"; then
1156 if test "x$smart_lib" != "x"; then
1157 echo "$ac_t""yes" 1>&6
1158 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
1159 LIBS="$smart_lib $old_LIBS"
1160 SMART_LIBS="$smart_lib $SMART_LIBS"
1162 echo "$ac_t""no" 1>&6
1165 if test "x$ac_cv_lib_k5crypto_krb5_encrypt_data" = "xyes"; then
1166 krb5libcrypto="-lk5crypto"
1171 sm_lib_safe=`echo "crypto" | sed 'y%./+-%__p_%'`
1172 sm_func_safe=`echo "DH_new" | sed 'y%./+-%__p_%'`
1173 echo $ac_n "checking for DH_new in -lcrypto""... $ac_c" 1>&6
1174 echo "configure:1175: checking for DH_new in -lcrypto" >&5
1180 if test "x$smart_try_dir" != "x"; then
1181 for try in $smart_try_dir; do
1182 LIBS="-L$try -lcrypto $old_LIBS"
1183 cat > conftest.$ac_ext <<EOF
1184 #line 1185 "configure"
1185 #include "confdefs.h"
1186 extern char DH_new();
1191 if { (eval echo configure:1192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1193 smart_lib="-L$try -lcrypto"
1195 echo "configure: failed program was:" >&5
1196 cat conftest.$ac_ext >&5
1199 if test "x$smart_lib" != "x"; then
1206 if test "x$smart_lib" = "x"; then
1207 LIBS="-lcrypto $old_LIBS"
1208 cat > conftest.$ac_ext <<EOF
1209 #line 1210 "configure"
1210 #include "confdefs.h"
1211 extern char DH_new();
1216 if { (eval echo configure:1217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1218 smart_lib="-lcrypto"
1220 echo "configure: failed program was:" >&5
1221 cat conftest.$ac_ext >&5
1227 if test "x$smart_lib" = "x"; then
1230 if test "x$LOCATE" != "x"; then
1232 file=libcrypto${libltdl_cv_shlibext}
1234 for x in `${LOCATE} $file 2>/dev/null`; do
1235 base=`echo $x | sed "s%/${file}%%"`
1236 if test "x$x" = "x$base"; then
1240 dir=`${DIRNAME} $x 2>/dev/null`
1241 exclude=`echo ${dir} | ${GREP} /home`
1242 if test "x$exclude" != "x"; then
1246 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
1247 if test "x$already" = "x"; then
1253 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
1257 if test "x$LOCATE" != "x"; then
1261 for x in `${LOCATE} $file 2>/dev/null`; do
1262 base=`echo $x | sed "s%/${file}%%"`
1263 if test "x$x" = "x$base"; then
1267 dir=`${DIRNAME} $x 2>/dev/null`
1268 exclude=`echo ${dir} | ${GREP} /home`
1269 if test "x$exclude" != "x"; then
1273 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
1274 if test "x$already" = "x"; then
1280 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
1283 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
1284 LIBS="-L$try -lcrypto $old_LIBS"
1285 cat > conftest.$ac_ext <<EOF
1286 #line 1287 "configure"
1287 #include "confdefs.h"
1288 extern char DH_new();
1293 if { (eval echo configure:1294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1295 smart_lib="-L$try -lcrypto"
1297 echo "configure: failed program was:" >&5
1298 cat conftest.$ac_ext >&5
1301 if test "x$smart_lib" != "x"; then
1308 if test "x$smart_lib" != "x"; then
1309 echo "$ac_t""yes" 1>&6
1310 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
1311 LIBS="$smart_lib $old_LIBS"
1312 SMART_LIBS="$smart_lib $SMART_LIBS"
1314 echo "$ac_t""no" 1>&6
1317 if test "x$ac_cv_lib_crypto_DH_new" = "xyes"; then
1318 krb5libcrypto="-lcrypto"
1321 if test x$krb5libcrypto = x; then
1322 echo "configure: warning: neither krb5 'k5crypto' nor 'crypto' libraries are found!" 1>&2
1327 sm_lib_safe=`echo "com_err" | sed 'y%./+-%__p_%'`
1328 sm_func_safe=`echo "set_com_err_hook" | sed 'y%./+-%__p_%'`
1329 echo $ac_n "checking for set_com_err_hook in -lcom_err""... $ac_c" 1>&6
1330 echo "configure:1331: checking for set_com_err_hook in -lcom_err" >&5
1336 if test "x$smart_try_dir" != "x"; then
1337 for try in $smart_try_dir; do
1338 LIBS="-L$try -lcom_err $old_LIBS"
1339 cat > conftest.$ac_ext <<EOF
1340 #line 1341 "configure"
1341 #include "confdefs.h"
1342 extern char set_com_err_hook();
1347 if { (eval echo configure:1348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1349 smart_lib="-L$try -lcom_err"
1351 echo "configure: failed program was:" >&5
1352 cat conftest.$ac_ext >&5
1355 if test "x$smart_lib" != "x"; then
1362 if test "x$smart_lib" = "x"; then
1363 LIBS="-lcom_err $old_LIBS"
1364 cat > conftest.$ac_ext <<EOF
1365 #line 1366 "configure"
1366 #include "confdefs.h"
1367 extern char set_com_err_hook();
1372 if { (eval echo configure:1373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1374 smart_lib="-lcom_err"
1376 echo "configure: failed program was:" >&5
1377 cat conftest.$ac_ext >&5
1383 if test "x$smart_lib" = "x"; then
1386 if test "x$LOCATE" != "x"; then
1388 file=libcom_err${libltdl_cv_shlibext}
1390 for x in `${LOCATE} $file 2>/dev/null`; do
1391 base=`echo $x | sed "s%/${file}%%"`
1392 if test "x$x" = "x$base"; then
1396 dir=`${DIRNAME} $x 2>/dev/null`
1397 exclude=`echo ${dir} | ${GREP} /home`
1398 if test "x$exclude" != "x"; then
1402 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
1403 if test "x$already" = "x"; then
1409 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
1413 if test "x$LOCATE" != "x"; then
1417 for x in `${LOCATE} $file 2>/dev/null`; do
1418 base=`echo $x | sed "s%/${file}%%"`
1419 if test "x$x" = "x$base"; then
1423 dir=`${DIRNAME} $x 2>/dev/null`
1424 exclude=`echo ${dir} | ${GREP} /home`
1425 if test "x$exclude" != "x"; then
1429 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
1430 if test "x$already" = "x"; then
1436 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
1439 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
1440 LIBS="-L$try -lcom_err $old_LIBS"
1441 cat > conftest.$ac_ext <<EOF
1442 #line 1443 "configure"
1443 #include "confdefs.h"
1444 extern char set_com_err_hook();
1449 if { (eval echo configure:1450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1451 smart_lib="-L$try -lcom_err"
1453 echo "configure: failed program was:" >&5
1454 cat conftest.$ac_ext >&5
1457 if test "x$smart_lib" != "x"; then
1464 if test "x$smart_lib" != "x"; then
1465 echo "$ac_t""yes" 1>&6
1466 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
1467 LIBS="$smart_lib $old_LIBS"
1468 SMART_LIBS="$smart_lib $SMART_LIBS"
1470 echo "$ac_t""no" 1>&6
1473 if test "x$ac_cv_lib_com_err_set_com_err_hook" != "xyes"; then
1474 echo "configure: warning: the comm_err library isn't found!" 1>&2
1479 sm_lib_safe=`echo "krb5" | sed 'y%./+-%__p_%'`
1480 sm_func_safe=`echo "krb5_init_context" | sed 'y%./+-%__p_%'`
1481 echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6
1482 echo "configure:1483: checking for krb5_init_context in -lkrb5" >&5
1488 if test "x$smart_try_dir" != "x"; then
1489 for try in $smart_try_dir; do
1490 LIBS="-L$try -lkrb5 $old_LIBS"
1491 cat > conftest.$ac_ext <<EOF
1492 #line 1493 "configure"
1493 #include "confdefs.h"
1494 extern char krb5_init_context();
1499 if { (eval echo configure:1500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1501 smart_lib="-L$try -lkrb5"
1503 echo "configure: failed program was:" >&5
1504 cat conftest.$ac_ext >&5
1507 if test "x$smart_lib" != "x"; then
1514 if test "x$smart_lib" = "x"; then
1515 LIBS="-lkrb5 $old_LIBS"
1516 cat > conftest.$ac_ext <<EOF
1517 #line 1518 "configure"
1518 #include "confdefs.h"
1519 extern char krb5_init_context();
1524 if { (eval echo configure:1525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1528 echo "configure: failed program was:" >&5
1529 cat conftest.$ac_ext >&5
1535 if test "x$smart_lib" = "x"; then
1538 if test "x$LOCATE" != "x"; then
1540 file=libkrb5${libltdl_cv_shlibext}
1542 for x in `${LOCATE} $file 2>/dev/null`; do
1543 base=`echo $x | sed "s%/${file}%%"`
1544 if test "x$x" = "x$base"; then
1548 dir=`${DIRNAME} $x 2>/dev/null`
1549 exclude=`echo ${dir} | ${GREP} /home`
1550 if test "x$exclude" != "x"; then
1554 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
1555 if test "x$already" = "x"; then
1561 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
1565 if test "x$LOCATE" != "x"; then
1569 for x in `${LOCATE} $file 2>/dev/null`; do
1570 base=`echo $x | sed "s%/${file}%%"`
1571 if test "x$x" = "x$base"; then
1575 dir=`${DIRNAME} $x 2>/dev/null`
1576 exclude=`echo ${dir} | ${GREP} /home`
1577 if test "x$exclude" != "x"; then
1581 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
1582 if test "x$already" = "x"; then
1588 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
1591 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
1592 LIBS="-L$try -lkrb5 $old_LIBS"
1593 cat > conftest.$ac_ext <<EOF
1594 #line 1595 "configure"
1595 #include "confdefs.h"
1596 extern char krb5_init_context();
1601 if { (eval echo configure:1602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1603 smart_lib="-L$try -lkrb5"
1605 echo "configure: failed program was:" >&5
1606 cat conftest.$ac_ext >&5
1609 if test "x$smart_lib" != "x"; then
1616 if test "x$smart_lib" != "x"; then
1617 echo "$ac_t""yes" 1>&6
1618 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
1619 LIBS="$smart_lib $old_LIBS"
1620 SMART_LIBS="$smart_lib $SMART_LIBS"
1622 echo "$ac_t""no" 1>&6
1625 if test "x$ac_cv_lib_krb5_krb5_init_context" != "xyes"; then
1632 echo \*\*\* module rlm_krb5 is disabled.
1635 if test x"$fail" != x""; then
1636 if test x"${enable_strict_dependencies}" = x"yes"; then
1637 { echo "configure: error: set --without-rlm_krb5 to disable it explicitly." 1>&2; exit 1; }
1639 echo "configure: warning: silently not building rlm_krb5." 1>&2
1640 echo "configure: warning: FAILURE: rlm_krb5 requires: $fail." 1>&2;
1645 krb5_ldflags=$SMART_LIBS
1646 krb5_cflags="${krb5_h_cflags} $SMART_CFLAGS"
1652 cat > confcache <<\EOF
1653 # This file is a shell script that caches the results of configure
1654 # tests run on this system so they can be shared between configure
1655 # scripts and configure runs. It is not useful on other systems.
1656 # If it contains results you don't want to keep, you may remove or edit it.
1658 # By default, configure uses ./config.cache as the cache file,
1659 # creating it if it does not exist already. You can give configure
1660 # the --cache-file=FILE option to use a different cache file; that is
1661 # what configure does when it calls configure scripts in
1662 # subdirectories, so they share the cache.
1663 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1664 # config.status only pays attention to the cache file if you give it the
1665 # --recheck option to rerun configure.
1668 # The following way of writing the cache mishandles newlines in values,
1669 # but we know of no workaround that is simple, portable, and efficient.
1670 # So, don't put newlines in cache variables' values.
1671 # Ultrix sh set writes to stderr and can't be redirected directly,
1672 # and sets the high bit in the cache file unless we assign to the vars.
1674 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1676 # `set' does not quote correctly, so add quotes (double-quote substitution
1677 # turns \\\\ into \\, and sed turns \\ into \).
1679 -e "s/'/'\\\\''/g" \
1680 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1683 # `set' quotes correctly as required by POSIX, so do not add quotes.
1684 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1687 if cmp -s $cache_file confcache; then
1690 if test -w $cache_file; then
1691 echo "updating cache $cache_file"
1692 cat confcache > $cache_file
1694 echo "not updating unwritable cache $cache_file"
1699 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1701 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1702 # Let make expand exec_prefix.
1703 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1705 # Any assignment to VPATH causes Sun make to only execute
1706 # the first set of double-colon rules, so remove it if not needed.
1707 # If there is a colon in the path, we need to keep it.
1708 if test "x$srcdir" = x.; then
1709 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1712 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1714 # Transform confdefs.h into DEFS.
1715 # Protect against shell expansion while executing Makefile rules.
1716 # Protect against Makefile macro expansion.
1717 cat > conftest.defs <<\EOF
1718 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1719 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1724 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1728 # Without the "./", some shells look in PATH for config.status.
1729 : ${CONFIG_STATUS=./config.status}
1731 echo creating $CONFIG_STATUS
1732 rm -f $CONFIG_STATUS
1733 cat > $CONFIG_STATUS <<EOF
1735 # Generated automatically by configure.
1736 # Run this file to recreate the current configuration.
1737 # This directory was configured as follows,
1738 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1740 # $0 $ac_configure_args
1742 # Compiler output produced by configure, useful for debugging
1743 # configure, is in ./config.log if it exists.
1745 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1748 case "\$ac_option" in
1749 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1750 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1751 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1752 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1753 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1755 -help | --help | --hel | --he | --h)
1756 echo "\$ac_cs_usage"; exit 0 ;;
1757 *) echo "\$ac_cs_usage"; exit 1 ;;
1761 ac_given_srcdir=$srcdir
1763 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1765 cat >> $CONFIG_STATUS <<EOF
1767 # Protect against being on the right side of a sed subst in config.status.
1768 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1769 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1773 s%@CFLAGS@%$CFLAGS%g
1774 s%@CPPFLAGS@%$CPPFLAGS%g
1775 s%@CXXFLAGS@%$CXXFLAGS%g
1776 s%@FFLAGS@%$FFLAGS%g
1778 s%@LDFLAGS@%$LDFLAGS%g
1780 s%@exec_prefix@%$exec_prefix%g
1781 s%@prefix@%$prefix%g
1782 s%@program_transform_name@%$program_transform_name%g
1783 s%@bindir@%$bindir%g
1784 s%@sbindir@%$sbindir%g
1785 s%@libexecdir@%$libexecdir%g
1786 s%@datadir@%$datadir%g
1787 s%@sysconfdir@%$sysconfdir%g
1788 s%@sharedstatedir@%$sharedstatedir%g
1789 s%@localstatedir@%$localstatedir%g
1790 s%@libdir@%$libdir%g
1791 s%@includedir@%$includedir%g
1792 s%@oldincludedir@%$oldincludedir%g
1793 s%@infodir@%$infodir%g
1794 s%@mandir@%$mandir%g
1797 s%@krb5_cflags@%$krb5_cflags%g
1798 s%@krb5_ldflags@%$krb5_ldflags%g
1799 s%@targetname@%$targetname%g
1804 cat >> $CONFIG_STATUS <<\EOF
1806 # Split the substitutions into bite-sized pieces for seds with
1807 # small command number limits, like on Digital OSF/1 and HP-UX.
1808 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1809 ac_file=1 # Number of current file.
1810 ac_beg=1 # First line for current file.
1811 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1814 while $ac_more_lines; do
1815 if test $ac_beg -gt 1; then
1816 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1818 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1820 if test ! -s conftest.s$ac_file; then
1822 rm -f conftest.s$ac_file
1824 if test -z "$ac_sed_cmds"; then
1825 ac_sed_cmds="sed -f conftest.s$ac_file"
1827 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1829 ac_file=`expr $ac_file + 1`
1831 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1834 if test -z "$ac_sed_cmds"; then
1839 cat >> $CONFIG_STATUS <<EOF
1841 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1843 cat >> $CONFIG_STATUS <<\EOF
1844 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1845 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1847 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1848 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1849 *) ac_file_in="${ac_file}.in" ;;
1852 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1854 # Remove last slash and all that follows it. Not all systems have dirname.
1855 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1856 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1857 # The file is in a subdirectory.
1858 test ! -d "$ac_dir" && mkdir "$ac_dir"
1859 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1860 # A "../" for each directory in $ac_dir_suffix.
1861 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1863 ac_dir_suffix= ac_dots=
1866 case "$ac_given_srcdir" in
1868 if test -z "$ac_dots"; then top_srcdir=.
1869 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1870 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1872 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1873 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1877 echo creating "$ac_file"
1879 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1881 *Makefile*) ac_comsub="1i\\
1882 # $configure_input" ;;
1886 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1888 s%@configure_input@%$configure_input%g
1889 s%@srcdir@%$srcdir%g
1890 s%@top_srcdir@%$top_srcdir%g
1891 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1896 cat >> $CONFIG_STATUS <<EOF
1899 cat >> $CONFIG_STATUS <<\EOF
1903 chmod +x $CONFIG_STATUS
1904 rm -fr confdefs* $ac_clean_files
1905 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1