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:
14 ac_default_prefix=/usr
16 --with-release=XXX set release to XXX [1]"
18 --with-statedir=/foo use state dir /foo [/var/lib/nfs]"
20 --with-statduser=rpcuser user for statd to run under [rpcuser or nobody]"
22 --enable-nfsv3 enable support for NFSv3"
24 --enable-nfsv4 enable support for NFSv4"
26 --enable-gss enable support for rpcsec_gss"
28 --enable-kprefix install progs as rpc.knfsd etc"
30 --enable-secure-statd Only lockd can use statd (security)"
32 --enable-rquotad enable rquotad"
34 --with-krb5=DIR use Kerberos v5 installation in DIR"
36 # Initialize some variables set by options.
37 # The variables have the same names as the options, with
38 # dashes changed to underlines.
40 cache_file=./config.cache
49 program_transform_name=s,x,x,
57 bindir='${exec_prefix}/bin'
58 sbindir='${exec_prefix}/sbin'
59 libexecdir='${exec_prefix}/libexec'
60 datadir='${prefix}/share'
61 sysconfdir='${prefix}/etc'
62 sharedstatedir='${prefix}/com'
63 localstatedir='${prefix}/var'
64 libdir='${exec_prefix}/lib'
65 includedir='${prefix}/include'
66 oldincludedir='/usr/include'
67 infodir='${prefix}/info'
68 mandir='${prefix}/man'
70 # Initialize some other variables.
73 SHELL=${CONFIG_SHELL-/bin/sh}
74 # Maximum number of lines to put in a shell here document.
81 # If the previous option needs an argument, assign it.
82 if test -n "$ac_prev"; then
83 eval "$ac_prev=\$ac_option"
89 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
93 # Accept the important Cygnus configure options, so we can diagnose typos.
97 -bindir | --bindir | --bindi | --bind | --bin | --bi)
99 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
100 bindir="$ac_optarg" ;;
102 -build | --build | --buil | --bui | --bu)
104 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
105 build="$ac_optarg" ;;
107 -cache-file | --cache-file | --cache-fil | --cache-fi \
108 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
109 ac_prev=cache_file ;;
110 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
111 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
112 cache_file="$ac_optarg" ;;
114 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
116 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
118 datadir="$ac_optarg" ;;
120 -disable-* | --disable-*)
121 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
122 # Reject names that are not valid shell variable names.
123 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
124 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
126 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
127 eval "enable_${ac_feature}=no" ;;
129 -enable-* | --enable-*)
130 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
131 # Reject names that are not valid shell variable names.
132 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
133 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
135 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
140 eval "enable_${ac_feature}='$ac_optarg'" ;;
142 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
143 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
144 | --exec | --exe | --ex)
145 ac_prev=exec_prefix ;;
146 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
147 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
148 | --exec=* | --exe=* | --ex=*)
149 exec_prefix="$ac_optarg" ;;
151 -gas | --gas | --ga | --g)
152 # Obsolete; use --with-gas.
155 -help | --help | --hel | --he)
156 # Omit some internal or obsolete options to make the list less imposing.
157 # This message is too long to be a string in the A/UX 3.1 sh.
159 Usage: configure [options] [host]
160 Options: [defaults in brackets after descriptions]
162 --cache-file=FILE cache test results in FILE
163 --help print this message
164 --no-create do not create output files
165 --quiet, --silent do not print \`checking...' messages
166 --version print the version of autoconf that created configure
167 Directory and file names:
168 --prefix=PREFIX install architecture-independent files in PREFIX
170 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
172 --bindir=DIR user executables in DIR [EPREFIX/bin]
173 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
174 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
175 --datadir=DIR read-only architecture-independent data in DIR
177 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
178 --sharedstatedir=DIR modifiable architecture-independent data in DIR
180 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
181 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
182 --includedir=DIR C header files in DIR [PREFIX/include]
183 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
184 --infodir=DIR info documentation in DIR [PREFIX/info]
185 --mandir=DIR man documentation in DIR [PREFIX/man]
186 --srcdir=DIR find the sources in DIR [configure dir or ..]
187 --program-prefix=PREFIX prepend PREFIX to installed program names
188 --program-suffix=SUFFIX append SUFFIX to installed program names
189 --program-transform-name=PROGRAM
190 run sed PROGRAM on installed program names
194 --build=BUILD configure for building on BUILD [BUILD=HOST]
195 --host=HOST configure for HOST [guessed]
196 --target=TARGET configure for TARGET [TARGET=HOST]
197 Features and packages:
198 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
199 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
200 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
201 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
202 --x-includes=DIR X include files are in DIR
203 --x-libraries=DIR X library files are in DIR
205 if test -n "$ac_help"; then
206 echo "--enable and --with options recognized:$ac_help"
210 -host | --host | --hos | --ho)
212 -host=* | --host=* | --hos=* | --ho=*)
215 -includedir | --includedir | --includedi | --included | --include \
216 | --includ | --inclu | --incl | --inc)
217 ac_prev=includedir ;;
218 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
219 | --includ=* | --inclu=* | --incl=* | --inc=*)
220 includedir="$ac_optarg" ;;
222 -infodir | --infodir | --infodi | --infod | --info | --inf)
224 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
225 infodir="$ac_optarg" ;;
227 -libdir | --libdir | --libdi | --libd)
229 -libdir=* | --libdir=* | --libdi=* | --libd=*)
230 libdir="$ac_optarg" ;;
232 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
233 | --libexe | --libex | --libe)
234 ac_prev=libexecdir ;;
235 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
236 | --libexe=* | --libex=* | --libe=*)
237 libexecdir="$ac_optarg" ;;
239 -localstatedir | --localstatedir | --localstatedi | --localstated \
240 | --localstate | --localstat | --localsta | --localst \
241 | --locals | --local | --loca | --loc | --lo)
242 ac_prev=localstatedir ;;
243 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
244 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
245 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
246 localstatedir="$ac_optarg" ;;
248 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
250 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
251 mandir="$ac_optarg" ;;
254 # Obsolete; use --without-fp.
257 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
261 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
262 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
265 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
266 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
267 | --oldin | --oldi | --old | --ol | --o)
268 ac_prev=oldincludedir ;;
269 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
270 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
271 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
272 oldincludedir="$ac_optarg" ;;
274 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
276 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
277 prefix="$ac_optarg" ;;
279 -program-prefix | --program-prefix | --program-prefi | --program-pref \
280 | --program-pre | --program-pr | --program-p)
281 ac_prev=program_prefix ;;
282 -program-prefix=* | --program-prefix=* | --program-prefi=* \
283 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
284 program_prefix="$ac_optarg" ;;
286 -program-suffix | --program-suffix | --program-suffi | --program-suff \
287 | --program-suf | --program-su | --program-s)
288 ac_prev=program_suffix ;;
289 -program-suffix=* | --program-suffix=* | --program-suffi=* \
290 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
291 program_suffix="$ac_optarg" ;;
293 -program-transform-name | --program-transform-name \
294 | --program-transform-nam | --program-transform-na \
295 | --program-transform-n | --program-transform- \
296 | --program-transform | --program-transfor \
297 | --program-transfo | --program-transf \
298 | --program-trans | --program-tran \
299 | --progr-tra | --program-tr | --program-t)
300 ac_prev=program_transform_name ;;
301 -program-transform-name=* | --program-transform-name=* \
302 | --program-transform-nam=* | --program-transform-na=* \
303 | --program-transform-n=* | --program-transform-=* \
304 | --program-transform=* | --program-transfor=* \
305 | --program-transfo=* | --program-transf=* \
306 | --program-trans=* | --program-tran=* \
307 | --progr-tra=* | --program-tr=* | --program-t=*)
308 program_transform_name="$ac_optarg" ;;
310 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
311 | -silent | --silent | --silen | --sile | --sil)
314 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
316 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
318 sbindir="$ac_optarg" ;;
320 -sharedstatedir | --sharedstatedir | --sharedstatedi \
321 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
322 | --sharedst | --shareds | --shared | --share | --shar \
324 ac_prev=sharedstatedir ;;
325 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
326 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
327 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
329 sharedstatedir="$ac_optarg" ;;
331 -site | --site | --sit)
333 -site=* | --site=* | --sit=*)
336 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
338 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
339 srcdir="$ac_optarg" ;;
341 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
342 | --syscon | --sysco | --sysc | --sys | --sy)
343 ac_prev=sysconfdir ;;
344 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
345 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
346 sysconfdir="$ac_optarg" ;;
348 -target | --target | --targe | --targ | --tar | --ta | --t)
350 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
351 target="$ac_optarg" ;;
353 -v | -verbose | --verbose | --verbos | --verbo | --verb)
356 -version | --version | --versio | --versi | --vers)
357 echo "configure generated by autoconf version 2.13"
361 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
362 # Reject names that are not valid shell variable names.
363 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
364 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
366 ac_package=`echo $ac_package| sed 's/-/_/g'`
371 eval "with_${ac_package}='$ac_optarg'" ;;
373 -without-* | --without-*)
374 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
375 # Reject names that are not valid shell variable names.
376 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
377 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
379 ac_package=`echo $ac_package| sed 's/-/_/g'`
380 eval "with_${ac_package}=no" ;;
383 # Obsolete; use --with-x.
386 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
387 | --x-incl | --x-inc | --x-in | --x-i)
388 ac_prev=x_includes ;;
389 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
390 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
391 x_includes="$ac_optarg" ;;
393 -x-libraries | --x-libraries | --x-librarie | --x-librari \
394 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
395 ac_prev=x_libraries ;;
396 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
397 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
398 x_libraries="$ac_optarg" ;;
400 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
404 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
405 echo "configure: warning: $ac_option: invalid host type" 1>&2
407 if test "x$nonopt" != xNONE; then
408 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
416 if test -n "$ac_prev"; then
417 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
420 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
422 # File descriptor usage:
425 # 2 errors and warnings
426 # 3 some systems may open it to /dev/tty
427 # 4 used on the Kubota Titan
428 # 6 checking for... messages and results
429 # 5 compiler messages saved in config.log
430 if test "$silent" = yes; then
438 This file contains any messages produced by compilers while
439 running configure, to aid debugging if configure makes a mistake.
442 # Strip out --no-create and --no-recursion so they do not pile up.
443 # Also quote any args containing shell metacharacters.
448 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
449 | --no-cr | --no-c) ;;
450 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
451 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
452 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
453 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
454 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
459 # Only set these to C if already set. These must not be set unconditionally
460 # because not all systems understand e.g. LANG=C (notably SCO).
461 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
462 # Non-C LC_CTYPE values break the ctype check.
463 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
464 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
465 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
466 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
468 # confdefs.h avoids OS command line length limits that DEFS can exceed.
469 rm -rf conftest* confdefs.h
470 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
473 # A filename unique to this package, relative to the directory that
474 # configure is in, which we can look for to find out if srcdir is correct.
475 ac_unique_file=rules.mk
477 # Find the source files, if location was not specified.
478 if test -z "$srcdir"; then
479 ac_srcdir_defaulted=yes
480 # Try the directory containing this script, then its parent.
482 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
483 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
485 if test ! -r $srcdir/$ac_unique_file; then
489 ac_srcdir_defaulted=no
491 if test ! -r $srcdir/$ac_unique_file; then
492 if test "$ac_srcdir_defaulted" = yes; then
493 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
495 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
498 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
500 # Prefer explicitly selected file to automatically selected ones.
501 if test -z "$CONFIG_SITE"; then
502 if test "x$prefix" != xNONE; then
503 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
505 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
508 for ac_site_file in $CONFIG_SITE; do
509 if test -r "$ac_site_file"; then
510 echo "loading site script $ac_site_file"
515 if test -r "$cache_file"; then
516 echo "loading cache $cache_file"
519 echo "creating cache $cache_file"
524 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
525 ac_cpp='$CPP $CPPFLAGS'
526 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
527 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
528 cross_compiling=$ac_cv_prog_cc_cross
532 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
533 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
534 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
541 ac_n= ac_c='\c' ac_t=
547 # The nfs-utils version
551 # Check whether --with-release or --without-release was given.
552 if test "${with_release+set}" = set; then
553 withval="$with_release"
560 # Check whether --with-statedir or --without-statedir was given.
561 if test "${with_statedir+set}" = set; then
562 withval="$with_statedir"
565 statedir=/var/lib/nfs
569 # Check whether --with-statduser or --without-statduser was given.
570 if test "${with_statduser+set}" = set; then
571 withval="$with_statduser"
574 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
582 # Check whether --enable-nfsv3 or --disable-nfsv3 was given.
583 if test "${enable_nfsv3+set}" = set; then
584 enableval="$enable_nfsv3"
585 enable_nfsv3=$enableval
590 if test "$enable_nfsv3" = yes; then
591 cat >> confdefs.h <<\EOF
592 #define NFS3_SUPPORTED 1
599 # Check whether --enable-nfsv4 or --disable-nfsv4 was given.
600 if test "${enable_nfsv4+set}" = set; then
601 enableval="$enable_nfsv4"
602 enable_nfsv4=$enableval
607 if test "$enable_nfsv4" = yes; then
608 cat >> confdefs.h <<\EOF
609 #define NFS4_SUPPORTED 1
619 # Check whether --enable-gss or --disable-gss was given.
620 if test "${enable_gss+set}" = set; then
621 enableval="$enable_gss"
622 enable_gss=$enableval
627 if test "$enable_gss" = yes; then
628 cat >> confdefs.h <<\EOF
629 #define GSS_SUPPORTED 1
642 # Check whether --enable-kprefix or --disable-kprefix was given.
643 if test "${enable_kprefix+set}" = set; then
644 enableval="$enable_kprefix"
645 test "$enableval" = "yes" && kprefix=k
651 # Check whether --enable-secure-statd or --disable-secure-statd was given.
652 if test "${enable_secure_statd+set}" = set; then
653 enableval="$enable_secure_statd"
654 test "$enableval" = "yes" && secure_statd=yes
659 if test "$secure_statd" = yes; then
660 cat >> confdefs.h <<\EOF
661 #define RESTRICTED_STATD 1
666 # Check whether --enable-rquotad or --disable-rquotad was given.
667 if test "${enable_rquotad+set}" = set; then
668 enableval="$enable_rquotad"
669 enable_rquotad=$enableval
674 if test "$enable_rquotad" = yes; then
682 # Extract the first word of "gcc", so it can be a program name with args.
683 set dummy gcc; ac_word=$2
684 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
685 echo "configure:686: checking for $ac_word" >&5
686 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
687 echo $ac_n "(cached) $ac_c" 1>&6
689 if test -n "$CC"; then
690 ac_cv_prog_CC="$CC" # Let the user override the test.
692 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
694 for ac_dir in $ac_dummy; do
695 test -z "$ac_dir" && ac_dir=.
696 if test -f $ac_dir/$ac_word; then
705 if test -n "$CC"; then
706 echo "$ac_t""$CC" 1>&6
708 echo "$ac_t""no" 1>&6
711 if test -z "$CC"; then
712 # Extract the first word of "cc", so it can be a program name with args.
713 set dummy cc; ac_word=$2
714 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
715 echo "configure:716: checking for $ac_word" >&5
716 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
717 echo $ac_n "(cached) $ac_c" 1>&6
719 if test -n "$CC"; then
720 ac_cv_prog_CC="$CC" # Let the user override the test.
722 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
725 for ac_dir in $ac_dummy; do
726 test -z "$ac_dir" && ac_dir=.
727 if test -f $ac_dir/$ac_word; then
728 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
737 if test $ac_prog_rejected = yes; then
738 # We found a bogon in the path, so make sure we never use it.
739 set dummy $ac_cv_prog_CC
741 if test $# -gt 0; then
742 # We chose a different compiler from the bogus one.
743 # However, it has the same basename, so the bogon will be chosen
744 # first if we set CC to just the basename; use the full file name.
746 set dummy "$ac_dir/$ac_word" "$@"
754 if test -n "$CC"; then
755 echo "$ac_t""$CC" 1>&6
757 echo "$ac_t""no" 1>&6
760 if test -z "$CC"; then
763 # Extract the first word of "cl", so it can be a program name with args.
764 set dummy cl; ac_word=$2
765 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
766 echo "configure:767: checking for $ac_word" >&5
767 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
768 echo $ac_n "(cached) $ac_c" 1>&6
770 if test -n "$CC"; then
771 ac_cv_prog_CC="$CC" # Let the user override the test.
773 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
775 for ac_dir in $ac_dummy; do
776 test -z "$ac_dir" && ac_dir=.
777 if test -f $ac_dir/$ac_word; then
786 if test -n "$CC"; then
787 echo "$ac_t""$CC" 1>&6
789 echo "$ac_t""no" 1>&6
794 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
797 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
798 echo "configure:799: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
801 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
802 ac_cpp='$CPP $CPPFLAGS'
803 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
804 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
805 cross_compiling=$ac_cv_prog_cc_cross
807 cat > conftest.$ac_ext << EOF
809 #line 810 "configure"
810 #include "confdefs.h"
814 if { (eval echo configure:815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
815 ac_cv_prog_cc_works=yes
816 # If we can't run a trivial program, we are probably using a cross compiler.
817 if (./conftest; exit) 2>/dev/null; then
818 ac_cv_prog_cc_cross=no
820 ac_cv_prog_cc_cross=yes
823 echo "configure: failed program was:" >&5
824 cat conftest.$ac_ext >&5
825 ac_cv_prog_cc_works=no
829 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
830 ac_cpp='$CPP $CPPFLAGS'
831 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
832 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
833 cross_compiling=$ac_cv_prog_cc_cross
835 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
836 if test $ac_cv_prog_cc_works = no; then
837 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
839 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
840 echo "configure:841: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
841 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
842 cross_compiling=$ac_cv_prog_cc_cross
844 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
845 echo "configure:846: checking whether we are using GNU C" >&5
846 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
847 echo $ac_n "(cached) $ac_c" 1>&6
849 cat > conftest.c <<EOF
854 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
861 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
863 if test $ac_cv_prog_gcc = yes; then
869 ac_test_CFLAGS="${CFLAGS+set}"
870 ac_save_CFLAGS="$CFLAGS"
872 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
873 echo "configure:874: checking whether ${CC-cc} accepts -g" >&5
874 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
875 echo $ac_n "(cached) $ac_c" 1>&6
877 echo 'void f(){}' > conftest.c
878 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
887 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
888 if test "$ac_test_CFLAGS" = set; then
889 CFLAGS="$ac_save_CFLAGS"
890 elif test $ac_cv_prog_cc_g = yes; then
891 if test "$GCC" = yes; then
897 if test "$GCC" = yes; then
904 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
905 echo "configure:906: checking how to run the C preprocessor" >&5
906 # On Suns, sometimes $CPP names a directory.
907 if test -n "$CPP" && test -d "$CPP"; then
910 if test -z "$CPP"; then
911 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
912 echo $ac_n "(cached) $ac_c" 1>&6
914 # This must be in double quotes, not single quotes, because CPP may get
915 # substituted into the Makefile and "${CC-cc}" will confuse make.
917 # On the NeXT, cc -E runs the code through the compiler's parser,
918 # not just through cpp.
919 cat > conftest.$ac_ext <<EOF
920 #line 921 "configure"
921 #include "confdefs.h"
925 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
926 { (eval echo configure:927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
927 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
928 if test -z "$ac_err"; then
932 echo "configure: failed program was:" >&5
933 cat conftest.$ac_ext >&5
935 CPP="${CC-cc} -E -traditional-cpp"
936 cat > conftest.$ac_ext <<EOF
937 #line 938 "configure"
938 #include "confdefs.h"
942 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
943 { (eval echo configure:944: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
944 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
945 if test -z "$ac_err"; then
949 echo "configure: failed program was:" >&5
950 cat conftest.$ac_ext >&5
952 CPP="${CC-cc} -nologo -E"
953 cat > conftest.$ac_ext <<EOF
954 #line 955 "configure"
955 #include "confdefs.h"
959 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
960 { (eval echo configure:961: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
961 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
962 if test -z "$ac_err"; then
966 echo "configure: failed program was:" >&5
967 cat conftest.$ac_ext >&5
976 ac_cv_prog_CPP="$CPP"
978 CPP="$ac_cv_prog_CPP"
980 ac_cv_prog_CPP="$CPP"
982 echo "$ac_t""$CPP" 1>&6
985 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
986 if test -f $ac_dir/install-sh; then
988 ac_install_sh="$ac_aux_dir/install-sh -c"
990 elif test -f $ac_dir/install.sh; then
992 ac_install_sh="$ac_aux_dir/install.sh -c"
996 if test -z "$ac_aux_dir"; then
997 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
999 ac_config_guess=$ac_aux_dir/config.guess
1000 ac_config_sub=$ac_aux_dir/config.sub
1001 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1003 # Find a good install program. We prefer a C program (faster),
1004 # so one script is as good as another. But avoid the broken or
1005 # incompatible versions:
1006 # SysV /etc/install, /usr/sbin/install
1007 # SunOS /usr/etc/install
1008 # IRIX /sbin/install
1010 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1011 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1012 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1013 # ./install, which can be erroneously created by make from ./install.sh.
1014 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1015 echo "configure:1016: checking for a BSD compatible install" >&5
1016 if test -z "$INSTALL"; then
1017 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1018 echo $ac_n "(cached) $ac_c" 1>&6
1020 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1021 for ac_dir in $PATH; do
1022 # Account for people who put trailing slashes in PATH elements.
1024 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1026 # OSF1 and SCO ODT 3.0 have their own names for install.
1027 # Don't use installbsd from OSF since it installs stuff as root
1029 for ac_prog in ginstall scoinst install; do
1030 if test -f $ac_dir/$ac_prog; then
1031 if test $ac_prog = install &&
1032 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1033 # AIX install. It has an incompatible calling convention.
1036 ac_cv_path_install="$ac_dir/$ac_prog -c"
1047 if test "${ac_cv_path_install+set}" = set; then
1048 INSTALL="$ac_cv_path_install"
1050 # As a last resort, use the slow shell script. We don't cache a
1051 # path for INSTALL within a source directory, because that will
1052 # break other packages using the cache if that directory is
1053 # removed, or if the path is relative.
1054 INSTALL="$ac_install_sh"
1057 echo "$ac_t""$INSTALL" 1>&6
1059 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1060 # It thinks the first close brace ends the variable substitution.
1061 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1063 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1065 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1068 test "${CC_FOR_BUILD+set}" = set || CC_FOR_BUILD="$CC"
1072 # Make sure we can run config.sub.
1073 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1074 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1077 echo $ac_n "checking host system type""... $ac_c" 1>&6
1078 echo "configure:1079: checking host system type" >&5
1081 case "$host_alias" in
1085 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1086 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1088 *) host_alias=$nonopt ;;
1092 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1093 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1094 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1095 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1096 echo "$ac_t""$host" 1>&6
1098 echo $ac_n "checking build system type""... $ac_c" 1>&6
1099 echo "configure:1100: checking build system type" >&5
1102 case "$build_alias" in
1105 NONE) build_alias=$host_alias ;;
1106 *) build_alias=$nonopt ;;
1110 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1111 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1112 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1113 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1114 echo "$ac_t""$build" 1>&6
1116 if test $host != $build; then
1117 ac_tool_prefix=${host_alias}-
1122 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1123 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1124 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1125 echo "configure:1126: checking for $ac_word" >&5
1126 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1127 echo $ac_n "(cached) $ac_c" 1>&6
1129 if test -n "$RANLIB"; then
1130 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1132 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1134 for ac_dir in $ac_dummy; do
1135 test -z "$ac_dir" && ac_dir=.
1136 if test -f $ac_dir/$ac_word; then
1137 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1144 RANLIB="$ac_cv_prog_RANLIB"
1145 if test -n "$RANLIB"; then
1146 echo "$ac_t""$RANLIB" 1>&6
1148 echo "$ac_t""no" 1>&6
1152 if test -z "$ac_cv_prog_RANLIB"; then
1153 if test -n "$ac_tool_prefix"; then
1154 # Extract the first word of "ranlib", so it can be a program name with args.
1155 set dummy ranlib; ac_word=$2
1156 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1157 echo "configure:1158: checking for $ac_word" >&5
1158 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1159 echo $ac_n "(cached) $ac_c" 1>&6
1161 if test -n "$RANLIB"; then
1162 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1164 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1166 for ac_dir in $ac_dummy; do
1167 test -z "$ac_dir" && ac_dir=.
1168 if test -f $ac_dir/$ac_word; then
1169 ac_cv_prog_RANLIB="ranlib"
1174 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1177 RANLIB="$ac_cv_prog_RANLIB"
1178 if test -n "$RANLIB"; then
1179 echo "$ac_t""$RANLIB" 1>&6
1181 echo "$ac_t""no" 1>&6
1189 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1190 set dummy ${ac_tool_prefix}ar; ac_word=$2
1191 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1192 echo "configure:1193: checking for $ac_word" >&5
1193 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1194 echo $ac_n "(cached) $ac_c" 1>&6
1196 if test -n "$AR"; then
1197 ac_cv_prog_AR="$AR" # Let the user override the test.
1199 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1201 for ac_dir in $ac_dummy; do
1202 test -z "$ac_dir" && ac_dir=.
1203 if test -f $ac_dir/$ac_word; then
1204 ac_cv_prog_AR="${ac_tool_prefix}ar"
1209 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1213 if test -n "$AR"; then
1214 echo "$ac_t""$AR" 1>&6
1216 echo "$ac_t""no" 1>&6
1221 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
1222 set dummy ${ac_tool_prefix}ld; ac_word=$2
1223 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1224 echo "configure:1225: checking for $ac_word" >&5
1225 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
1226 echo $ac_n "(cached) $ac_c" 1>&6
1228 if test -n "$LD"; then
1229 ac_cv_prog_LD="$LD" # Let the user override the test.
1231 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1233 for ac_dir in $ac_dummy; do
1234 test -z "$ac_dir" && ac_dir=.
1235 if test -f $ac_dir/$ac_word; then
1236 ac_cv_prog_LD="${ac_tool_prefix}ld"
1241 test -z "$ac_cv_prog_LD" && ac_cv_prog_LD="ld"
1245 if test -n "$LD"; then
1246 echo "$ac_t""$LD" 1>&6
1248 echo "$ac_t""no" 1>&6
1254 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1255 echo "configure:1256: checking for ANSI C header files" >&5
1256 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1257 echo $ac_n "(cached) $ac_c" 1>&6
1259 cat > conftest.$ac_ext <<EOF
1260 #line 1261 "configure"
1261 #include "confdefs.h"
1267 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1268 { (eval echo configure:1269: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1269 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1270 if test -z "$ac_err"; then
1272 ac_cv_header_stdc=yes
1275 echo "configure: failed program was:" >&5
1276 cat conftest.$ac_ext >&5
1278 ac_cv_header_stdc=no
1282 if test $ac_cv_header_stdc = yes; then
1283 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1284 cat > conftest.$ac_ext <<EOF
1285 #line 1286 "configure"
1286 #include "confdefs.h"
1289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1290 egrep "memchr" >/dev/null 2>&1; then
1294 ac_cv_header_stdc=no
1300 if test $ac_cv_header_stdc = yes; then
1301 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1302 cat > conftest.$ac_ext <<EOF
1303 #line 1304 "configure"
1304 #include "confdefs.h"
1307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1308 egrep "free" >/dev/null 2>&1; then
1312 ac_cv_header_stdc=no
1318 if test $ac_cv_header_stdc = yes; then
1319 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1320 if test "$cross_compiling" = yes; then
1323 cat > conftest.$ac_ext <<EOF
1324 #line 1325 "configure"
1325 #include "confdefs.h"
1327 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1328 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1329 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1330 int main () { int i; for (i = 0; i < 256; i++)
1331 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1335 if { (eval echo configure:1336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1339 echo "configure: failed program was:" >&5
1340 cat conftest.$ac_ext >&5
1342 ac_cv_header_stdc=no
1350 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1351 if test $ac_cv_header_stdc = yes; then
1352 cat >> confdefs.h <<\EOF
1353 #define STDC_HEADERS 1
1358 echo $ac_n "checking for GNU libc2""... $ac_c" 1>&6
1359 echo "configure:1360: checking for GNU libc2" >&5
1360 if eval "test \"`echo '$''{'knfsd_cv_glibc2'+set}'`\" = set"; then
1361 echo $ac_n "(cached) $ac_c" 1>&6
1363 cat > conftest.$ac_ext <<EOF
1364 #line 1365 "configure"
1365 #include "confdefs.h"
1367 #include <features.h>
1368 #if !defined(__GLIBC__)
1372 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1373 { (eval echo configure:1374: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1374 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1375 if test -z "$ac_err"; then
1380 echo "configure: failed program was:" >&5
1381 cat conftest.$ac_ext >&5
1388 echo "$ac_t""$knfsd_cv_glibc2" 1>&6
1389 if test $knfsd_cv_glibc2 = yes; then
1390 CFLAGS="$CFLAGS -D_GNU_SOURCE"
1391 CXXFLAGS="$CXXFLAGS -D_GNU_SOURCE"
1395 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
1396 echo "configure:1397: checking for main in -lsocket" >&5
1397 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
1398 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1399 echo $ac_n "(cached) $ac_c" 1>&6
1401 ac_save_LIBS="$LIBS"
1402 LIBS="-lsocket $LIBS"
1403 cat > conftest.$ac_ext <<EOF
1404 #line 1405 "configure"
1405 #include "confdefs.h"
1411 if { (eval echo configure:1412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1413 eval "ac_cv_lib_$ac_lib_var=yes"
1415 echo "configure: failed program was:" >&5
1416 cat conftest.$ac_ext >&5
1418 eval "ac_cv_lib_$ac_lib_var=no"
1421 LIBS="$ac_save_LIBS"
1424 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1425 echo "$ac_t""yes" 1>&6
1428 echo "$ac_t""no" 1>&6
1431 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
1432 echo "configure:1433: checking for main in -lnsl" >&5
1433 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
1434 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1435 echo $ac_n "(cached) $ac_c" 1>&6
1437 ac_save_LIBS="$LIBS"
1439 cat > conftest.$ac_ext <<EOF
1440 #line 1441 "configure"
1441 #include "confdefs.h"
1447 if { (eval echo configure:1448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1449 eval "ac_cv_lib_$ac_lib_var=yes"
1451 echo "configure: failed program was:" >&5
1452 cat conftest.$ac_ext >&5
1454 eval "ac_cv_lib_$ac_lib_var=no"
1457 LIBS="$ac_save_LIBS"
1460 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1461 echo "$ac_t""yes" 1>&6
1464 echo "$ac_t""no" 1>&6
1467 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
1468 echo "configure:1469: checking for crypt in -lcrypt" >&5
1469 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
1470 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1471 echo $ac_n "(cached) $ac_c" 1>&6
1473 ac_save_LIBS="$LIBS"
1474 LIBS="-lcrypt $LIBS"
1475 cat > conftest.$ac_ext <<EOF
1476 #line 1477 "configure"
1477 #include "confdefs.h"
1478 /* Override any gcc2 internal prototype to avoid an error. */
1479 /* We use char because int might match the return type of a gcc2
1480 builtin and then its argument prototype would still apply. */
1487 if { (eval echo configure:1488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1489 eval "ac_cv_lib_$ac_lib_var=yes"
1491 echo "configure: failed program was:" >&5
1492 cat conftest.$ac_ext >&5
1494 eval "ac_cv_lib_$ac_lib_var=no"
1497 LIBS="$ac_save_LIBS"
1500 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1501 echo "$ac_t""yes" 1>&6
1504 echo "$ac_t""no" 1>&6
1507 if test "$enable_nfsv4" = yes; then
1508 echo $ac_n "checking for event_dispatch in -levent""... $ac_c" 1>&6
1509 echo "configure:1510: checking for event_dispatch in -levent" >&5
1510 ac_lib_var=`echo event'_'event_dispatch | sed 'y%./+-%__p_%'`
1511 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1512 echo $ac_n "(cached) $ac_c" 1>&6
1514 ac_save_LIBS="$LIBS"
1515 LIBS="-levent $LIBS"
1516 cat > conftest.$ac_ext <<EOF
1517 #line 1518 "configure"
1518 #include "confdefs.h"
1519 /* Override any gcc2 internal prototype to avoid an error. */
1520 /* We use char because int might match the return type of a gcc2
1521 builtin and then its argument prototype would still apply. */
1522 char event_dispatch();
1528 if { (eval echo configure:1529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1530 eval "ac_cv_lib_$ac_lib_var=yes"
1532 echo "configure: failed program was:" >&5
1533 cat conftest.$ac_ext >&5
1535 eval "ac_cv_lib_$ac_lib_var=no"
1538 LIBS="$ac_save_LIBS"
1541 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1542 echo "$ac_t""yes" 1>&6
1543 ac_tr_lib=HAVE_LIB`echo event | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1544 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1545 cat >> confdefs.h <<EOF
1546 #define $ac_tr_lib 1
1549 LIBS="-levent $LIBS"
1552 echo "$ac_t""no" 1>&6
1555 echo $ac_n "checking for nfs4_uid_to_name in -lnfsidmap""... $ac_c" 1>&6
1556 echo "configure:1557: checking for nfs4_uid_to_name in -lnfsidmap" >&5
1557 ac_lib_var=`echo nfsidmap'_'nfs4_uid_to_name | sed 'y%./+-%__p_%'`
1558 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1559 echo $ac_n "(cached) $ac_c" 1>&6
1561 ac_save_LIBS="$LIBS"
1562 LIBS="-lnfsidmap $LIBS"
1563 cat > conftest.$ac_ext <<EOF
1564 #line 1565 "configure"
1565 #include "confdefs.h"
1566 /* Override any gcc2 internal prototype to avoid an error. */
1567 /* We use char because int might match the return type of a gcc2
1568 builtin and then its argument prototype would still apply. */
1569 char nfs4_uid_to_name();
1575 if { (eval echo configure:1576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1577 eval "ac_cv_lib_$ac_lib_var=yes"
1579 echo "configure: failed program was:" >&5
1580 cat conftest.$ac_ext >&5
1582 eval "ac_cv_lib_$ac_lib_var=no"
1585 LIBS="$ac_save_LIBS"
1588 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1589 echo "$ac_t""yes" 1>&6
1590 ac_tr_lib=HAVE_LIB`echo nfsidmap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1591 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1592 cat >> confdefs.h <<EOF
1593 #define $ac_tr_lib 1
1596 LIBS="-lnfsidmap $LIBS"
1599 echo "$ac_t""no" 1>&6
1602 for ac_hdr in event.h
1604 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1605 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1606 echo "configure:1607: checking for $ac_hdr" >&5
1607 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1608 echo $ac_n "(cached) $ac_c" 1>&6
1610 cat > conftest.$ac_ext <<EOF
1611 #line 1612 "configure"
1612 #include "confdefs.h"
1615 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1616 { (eval echo configure:1617: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1617 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1618 if test -z "$ac_err"; then
1620 eval "ac_cv_header_$ac_safe=yes"
1623 echo "configure: failed program was:" >&5
1624 cat conftest.$ac_ext >&5
1626 eval "ac_cv_header_$ac_safe=no"
1630 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1631 echo "$ac_t""yes" 1>&6
1632 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1633 cat >> confdefs.h <<EOF
1634 #define $ac_tr_hdr 1
1638 echo "$ac_t""no" 1>&6
1642 for ac_hdr in nfsidmap.h
1644 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1645 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1646 echo "configure:1647: checking for $ac_hdr" >&5
1647 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1648 echo $ac_n "(cached) $ac_c" 1>&6
1650 cat > conftest.$ac_ext <<EOF
1651 #line 1652 "configure"
1652 #include "confdefs.h"
1655 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1656 { (eval echo configure:1657: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1657 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1658 if test -z "$ac_err"; then
1660 eval "ac_cv_header_$ac_safe=yes"
1663 echo "configure: failed program was:" >&5
1664 cat conftest.$ac_ext >&5
1666 eval "ac_cv_header_$ac_safe=no"
1670 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1671 echo "$ac_t""yes" 1>&6
1672 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1673 cat >> confdefs.h <<EOF
1674 #define $ac_tr_hdr 1
1678 echo "$ac_t""no" 1>&6
1683 if test "$knfsd_cv_glibc2" = no; then
1684 echo $ac_n "checking for daemon in -lbsd""... $ac_c" 1>&6
1685 echo "configure:1686: checking for daemon in -lbsd" >&5
1686 ac_lib_var=`echo bsd'_'daemon | sed 'y%./+-%__p_%'`
1687 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1688 echo $ac_n "(cached) $ac_c" 1>&6
1690 ac_save_LIBS="$LIBS"
1692 cat > conftest.$ac_ext <<EOF
1693 #line 1694 "configure"
1694 #include "confdefs.h"
1695 /* Override any gcc2 internal prototype to avoid an error. */
1696 /* We use char because int might match the return type of a gcc2
1697 builtin and then its argument prototype would still apply. */
1704 if { (eval echo configure:1705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1706 eval "ac_cv_lib_$ac_lib_var=yes"
1708 echo "configure: failed program was:" >&5
1709 cat conftest.$ac_ext >&5
1711 eval "ac_cv_lib_$ac_lib_var=no"
1714 LIBS="$ac_save_LIBS"
1717 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1718 echo "$ac_t""yes" 1>&6
1721 echo "$ac_t""no" 1>&6
1730 echo $ac_n "checking for the tcp wrapper library""... $ac_c" 1>&6
1731 echo "configure:1732: checking for the tcp wrapper library" >&5
1732 if eval "test \"`echo '$''{'knfsd_cv_tcp_wrapper'+set}'`\" = set"; then
1733 echo $ac_n "(cached) $ac_c" 1>&6
1736 LIBS="$LIBS -lwrap $LIBNSL"
1737 cat > conftest.$ac_ext <<EOF
1738 #line 1739 "configure"
1739 #include "confdefs.h"
1741 int deny_severity = 0;
1742 int allow_severity = 0;
1744 return hosts_ctl ("nfsd", "", "")
1747 if { (eval echo configure:1748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1749 knfsd_cv_tcp_wrapper=yes
1751 echo "configure: failed program was:" >&5
1752 cat conftest.$ac_ext >&5
1754 knfsd_cv_tcp_wrapper=no
1760 echo "$ac_t""$knfsd_cv_tcp_wrapper" 1>&6
1761 if test "$knfsd_cv_tcp_wrapper" = yes; then
1762 CFLAGS="$CFLAGS -DHAVE_TCP_WRAPPER"
1763 CXXFLAGS="$CXXFLAGS -DHAVE_TCP_WRAPPER"
1769 if test "$enable_gss" = yes; then
1770 echo $ac_n "checking for Kerberos v5""... $ac_c" 1>&6
1771 echo "configure:1772: checking for Kerberos v5" >&5
1772 # Check whether --with-krb5 or --without-krb5 was given.
1773 if test "${with_krb5+set}" = set; then
1774 withval="$with_krb5"
1780 krb5_with="$withval"
1787 for dir in $krb5_with /usr/kerberos /usr/local /usr/local/krb5 /usr/krb5 \
1788 /usr/heimdal /usr/local/heimdal /usr/athena /usr ; do
1790 if test -f $dir/bin/krb5-config; then
1791 K5CONFIG=$dir/bin/krb5-config
1792 elif test -f "/usr/kerberos/bin/krb5-config"; then
1793 K5CONFIG="/usr/kerberos/bin/krb5-config"
1795 if test "$K5CONFIG" != ""; then
1796 if test -f $dir/include/gssapi/gssapi_krb5.h -a \
1797 \( -f $dir/lib/libgssapi_krb5.a -o \
1798 -f $dir/lib/libgssapi_krb5.so \) ; then
1799 cat >> confdefs.h <<\EOF
1804 K5VERS=`$K5CONFIG --version | awk '{split($4,v,"."); print v[1]v[2]v[3] }'`
1805 cat >> confdefs.h <<EOF
1806 #define KRB5_VERSION $K5VERS
1809 KRBLIB=`$K5CONFIG --libs gssapi`
1810 if test $K5VERS -le 131; then
1811 cat >> confdefs.h <<\EOF
1812 #define USE_PRIVATE_KRB5_FUNCTIONS 1
1816 echo $ac_n "checking for gss_krb5_export_lucid_sec_context in -lgssapi_krb5""... $ac_c" 1>&6
1817 echo "configure:1818: checking for gss_krb5_export_lucid_sec_context in -lgssapi_krb5" >&5
1818 ac_lib_var=`echo gssapi_krb5'_'gss_krb5_export_lucid_sec_context | sed 'y%./+-%__p_%'`
1819 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1820 echo $ac_n "(cached) $ac_c" 1>&6
1822 ac_save_LIBS="$LIBS"
1823 LIBS="-lgssapi_krb5 $KRBLIB $LIBS"
1824 cat > conftest.$ac_ext <<EOF
1825 #line 1826 "configure"
1826 #include "confdefs.h"
1827 /* Override any gcc2 internal prototype to avoid an error. */
1828 /* We use char because int might match the return type of a gcc2
1829 builtin and then its argument prototype would still apply. */
1830 char gss_krb5_export_lucid_sec_context();
1833 gss_krb5_export_lucid_sec_context()
1836 if { (eval echo configure:1837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1838 eval "ac_cv_lib_$ac_lib_var=yes"
1840 echo "configure: failed program was:" >&5
1841 cat conftest.$ac_ext >&5
1843 eval "ac_cv_lib_$ac_lib_var=no"
1846 LIBS="$ac_save_LIBS"
1849 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1850 echo "$ac_t""yes" 1>&6
1851 cat >> confdefs.h <<\EOF
1852 #define HAVE_LUCID_CONTEXT_SUPPORT 1
1856 echo "$ac_t""no" 1>&6
1859 echo $ac_n "checking for gss_krb5_set_allowable_enctypes in -lgssapi_krb5""... $ac_c" 1>&6
1860 echo "configure:1861: checking for gss_krb5_set_allowable_enctypes in -lgssapi_krb5" >&5
1861 ac_lib_var=`echo gssapi_krb5'_'gss_krb5_set_allowable_enctypes | sed 'y%./+-%__p_%'`
1862 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1863 echo $ac_n "(cached) $ac_c" 1>&6
1865 ac_save_LIBS="$LIBS"
1866 LIBS="-lgssapi_krb5 $KRBLIB $LIBS"
1867 cat > conftest.$ac_ext <<EOF
1868 #line 1869 "configure"
1869 #include "confdefs.h"
1870 /* Override any gcc2 internal prototype to avoid an error. */
1871 /* We use char because int might match the return type of a gcc2
1872 builtin and then its argument prototype would still apply. */
1873 char gss_krb5_set_allowable_enctypes();
1876 gss_krb5_set_allowable_enctypes()
1879 if { (eval echo configure:1880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1881 eval "ac_cv_lib_$ac_lib_var=yes"
1883 echo "configure: failed program was:" >&5
1884 cat conftest.$ac_ext >&5
1886 eval "ac_cv_lib_$ac_lib_var=no"
1889 LIBS="$ac_save_LIBS"
1892 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1893 echo "$ac_t""yes" 1>&6
1894 cat >> confdefs.h <<\EOF
1895 #define HAVE_SET_ALLOWABLE_ENCTYPES 1
1899 echo "$ac_t""no" 1>&6
1902 echo $ac_n "checking for gss_krb5_ccache_name in -lgssapi_krb5""... $ac_c" 1>&6
1903 echo "configure:1904: checking for gss_krb5_ccache_name in -lgssapi_krb5" >&5
1904 ac_lib_var=`echo gssapi_krb5'_'gss_krb5_ccache_name | sed 'y%./+-%__p_%'`
1905 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1906 echo $ac_n "(cached) $ac_c" 1>&6
1908 ac_save_LIBS="$LIBS"
1909 LIBS="-lgssapi_krb5 $KRBLIB $LIBS"
1910 cat > conftest.$ac_ext <<EOF
1911 #line 1912 "configure"
1912 #include "confdefs.h"
1913 /* Override any gcc2 internal prototype to avoid an error. */
1914 /* We use char because int might match the return type of a gcc2
1915 builtin and then its argument prototype would still apply. */
1916 char gss_krb5_ccache_name();
1919 gss_krb5_ccache_name()
1922 if { (eval echo configure:1923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1924 eval "ac_cv_lib_$ac_lib_var=yes"
1926 echo "configure: failed program was:" >&5
1927 cat conftest.$ac_ext >&5
1929 eval "ac_cv_lib_$ac_lib_var=no"
1932 LIBS="$ac_save_LIBS"
1935 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1936 echo "$ac_t""yes" 1>&6
1937 cat >> confdefs.h <<\EOF
1938 #define HAVE_GSS_KRB5_CCACHE_NAME 1
1942 echo "$ac_t""no" 1>&6
1946 elif test \( -f $dir/include/heim_err.h -o\
1947 -f $dir/include/heimdal/heim_err.h \) -a \
1948 -f $dir/lib/libroken.a; then
1949 cat >> confdefs.h <<\EOF
1950 #define HAVE_HEIMDAL 1
1954 K5VERS=`$K5CONFIG --version | head -1 | awk '{split($2,v,"."); print v[1]v[2]v[3] }'`
1955 cat >> confdefs.h <<EOF
1956 #define KRB5_VERSION $K5VERS
1959 KRBLIB=`$K5CONFIG --libs gssapi`
1960 echo $ac_n "checking for gss_krb5_export_lucid_sec_context in -lgssapi""... $ac_c" 1>&6
1961 echo "configure:1962: checking for gss_krb5_export_lucid_sec_context in -lgssapi" >&5
1962 ac_lib_var=`echo gssapi'_'gss_krb5_export_lucid_sec_context | sed 'y%./+-%__p_%'`
1963 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1964 echo $ac_n "(cached) $ac_c" 1>&6
1966 ac_save_LIBS="$LIBS"
1967 LIBS="-lgssapi $KRBLIB $LIBS"
1968 cat > conftest.$ac_ext <<EOF
1969 #line 1970 "configure"
1970 #include "confdefs.h"
1971 /* Override any gcc2 internal prototype to avoid an error. */
1972 /* We use char because int might match the return type of a gcc2
1973 builtin and then its argument prototype would still apply. */
1974 char gss_krb5_export_lucid_sec_context();
1977 gss_krb5_export_lucid_sec_context()
1980 if { (eval echo configure:1981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1982 eval "ac_cv_lib_$ac_lib_var=yes"
1984 echo "configure: failed program was:" >&5
1985 cat conftest.$ac_ext >&5
1987 eval "ac_cv_lib_$ac_lib_var=no"
1990 LIBS="$ac_save_LIBS"
1993 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1994 echo "$ac_t""yes" 1>&6
1995 cat >> confdefs.h <<\EOF
1996 #define HAVE_LUCID_CONTEXT_SUPPORT 1
2000 echo "$ac_t""no" 1>&6
2003 echo $ac_n "checking for gss_krb5_set_allowable_enctypes in -lgssapi""... $ac_c" 1>&6
2004 echo "configure:2005: checking for gss_krb5_set_allowable_enctypes in -lgssapi" >&5
2005 ac_lib_var=`echo gssapi'_'gss_krb5_set_allowable_enctypes | sed 'y%./+-%__p_%'`
2006 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2007 echo $ac_n "(cached) $ac_c" 1>&6
2009 ac_save_LIBS="$LIBS"
2010 LIBS="-lgssapi $KRBLIB $LIBS"
2011 cat > conftest.$ac_ext <<EOF
2012 #line 2013 "configure"
2013 #include "confdefs.h"
2014 /* Override any gcc2 internal prototype to avoid an error. */
2015 /* We use char because int might match the return type of a gcc2
2016 builtin and then its argument prototype would still apply. */
2017 char gss_krb5_set_allowable_enctypes();
2020 gss_krb5_set_allowable_enctypes()
2023 if { (eval echo configure:2024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2025 eval "ac_cv_lib_$ac_lib_var=yes"
2027 echo "configure: failed program was:" >&5
2028 cat conftest.$ac_ext >&5
2030 eval "ac_cv_lib_$ac_lib_var=no"
2033 LIBS="$ac_save_LIBS"
2036 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2037 echo "$ac_t""yes" 1>&6
2038 cat >> confdefs.h <<\EOF
2039 #define HAVE_SET_ALLOWABLE_ENCTYPES 1
2043 echo "$ac_t""no" 1>&6
2046 echo $ac_n "checking for gss_krb5_ccache_name in -lgssapi""... $ac_c" 1>&6
2047 echo "configure:2048: checking for gss_krb5_ccache_name in -lgssapi" >&5
2048 ac_lib_var=`echo gssapi'_'gss_krb5_ccache_name | sed 'y%./+-%__p_%'`
2049 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2050 echo $ac_n "(cached) $ac_c" 1>&6
2052 ac_save_LIBS="$LIBS"
2053 LIBS="-lgssapi $KRBLIB $LIBS"
2054 cat > conftest.$ac_ext <<EOF
2055 #line 2056 "configure"
2056 #include "confdefs.h"
2057 /* Override any gcc2 internal prototype to avoid an error. */
2058 /* We use char because int might match the return type of a gcc2
2059 builtin and then its argument prototype would still apply. */
2060 char gss_krb5_ccache_name();
2063 gss_krb5_ccache_name()
2066 if { (eval echo configure:2067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2068 eval "ac_cv_lib_$ac_lib_var=yes"
2070 echo "configure: failed program was:" >&5
2071 cat conftest.$ac_ext >&5
2073 eval "ac_cv_lib_$ac_lib_var=no"
2076 LIBS="$ac_save_LIBS"
2079 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2080 echo "$ac_t""yes" 1>&6
2081 cat >> confdefs.h <<\EOF
2082 #define HAVE_GSS_KRB5_CCACHE_NAME 1
2086 echo "$ac_t""no" 1>&6
2091 CFLAGS=$CFLAGS `K5CONFIG --cflags`
2094 if test "x$KRBDIR" = "x"; then
2095 if test "x$krb5_with" = "x"; then
2096 { echo "configure: error: Kerberos v5 with GSS support not found" 1>&2; exit 1; }
2098 { echo "configure: error: Kerberos v5 with GSS support not found at $krb5_with" 1>&2; exit 1; }
2101 echo "$ac_t""$KRBDIR" 1>&6
2102 if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
2103 echo "configure: warning: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" 1>&2
2112 for ac_func in innetgr
2114 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2115 echo "configure:2116: checking for $ac_func" >&5
2116 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2117 echo $ac_n "(cached) $ac_c" 1>&6
2119 cat > conftest.$ac_ext <<EOF
2120 #line 2121 "configure"
2121 #include "confdefs.h"
2122 /* System header to define __stub macros and hopefully few prototypes,
2123 which can conflict with char $ac_func(); below. */
2125 /* Override any gcc2 internal prototype to avoid an error. */
2126 /* We use char because int might match the return type of a gcc2
2127 builtin and then its argument prototype would still apply. */
2132 /* The GNU C library defines this for functions which it implements
2133 to always fail with ENOSYS. Some functions are actually named
2134 something starting with __ and the normal name is an alias. */
2135 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2143 if { (eval echo configure:2144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2145 eval "ac_cv_func_$ac_func=yes"
2147 echo "configure: failed program was:" >&5
2148 cat conftest.$ac_ext >&5
2150 eval "ac_cv_func_$ac_func=no"
2155 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2156 echo "$ac_t""yes" 1>&6
2157 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2158 cat >> confdefs.h <<EOF
2159 #define $ac_tr_func 1
2163 echo "$ac_t""no" 1>&6
2168 cat >> confdefs.h <<EOF
2169 #define NFS_STATEDIR "$statedir"
2177 cat > confcache <<\EOF
2178 # This file is a shell script that caches the results of configure
2179 # tests run on this system so they can be shared between configure
2180 # scripts and configure runs. It is not useful on other systems.
2181 # If it contains results you don't want to keep, you may remove or edit it.
2183 # By default, configure uses ./config.cache as the cache file,
2184 # creating it if it does not exist already. You can give configure
2185 # the --cache-file=FILE option to use a different cache file; that is
2186 # what configure does when it calls configure scripts in
2187 # subdirectories, so they share the cache.
2188 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2189 # config.status only pays attention to the cache file if you give it the
2190 # --recheck option to rerun configure.
2193 # The following way of writing the cache mishandles newlines in values,
2194 # but we know of no workaround that is simple, portable, and efficient.
2195 # So, don't put newlines in cache variables' values.
2196 # Ultrix sh set writes to stderr and can't be redirected directly,
2197 # and sets the high bit in the cache file unless we assign to the vars.
2199 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2201 # `set' does not quote correctly, so add quotes (double-quote substitution
2202 # turns \\\\ into \\, and sed turns \\ into \).
2204 -e "s/'/'\\\\''/g" \
2205 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2208 # `set' quotes correctly as required by POSIX, so do not add quotes.
2209 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2212 if cmp -s $cache_file confcache; then
2215 if test -w $cache_file; then
2216 echo "updating cache $cache_file"
2217 cat confcache > $cache_file
2219 echo "not updating unwritable cache $cache_file"
2224 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2226 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2227 # Let make expand exec_prefix.
2228 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2230 # Any assignment to VPATH causes Sun make to only execute
2231 # the first set of double-colon rules, so remove it if not needed.
2232 # If there is a colon in the path, we need to keep it.
2233 if test "x$srcdir" = x.; then
2234 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2237 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2239 DEFS=-DHAVE_CONFIG_H
2241 # Without the "./", some shells look in PATH for config.status.
2242 : ${CONFIG_STATUS=./config.status}
2244 echo creating $CONFIG_STATUS
2245 rm -f $CONFIG_STATUS
2246 cat > $CONFIG_STATUS <<EOF
2248 # Generated automatically by configure.
2249 # Run this file to recreate the current configuration.
2250 # This directory was configured as follows,
2251 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2253 # $0 $ac_configure_args
2255 # Compiler output produced by configure, useful for debugging
2256 # configure, is in ./config.log if it exists.
2258 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2261 case "\$ac_option" in
2262 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2263 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2264 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2265 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2266 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2268 -help | --help | --hel | --he | --h)
2269 echo "\$ac_cs_usage"; exit 0 ;;
2270 *) echo "\$ac_cs_usage"; exit 1 ;;
2274 ac_given_srcdir=$srcdir
2275 ac_given_INSTALL="$INSTALL"
2277 trap 'rm -fr `echo "config.mk nfs-utils.spec utils/Makefile support/include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2279 cat >> $CONFIG_STATUS <<EOF
2281 # Protect against being on the right side of a sed subst in config.status.
2282 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2283 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2287 s%@CFLAGS@%$CFLAGS%g
2288 s%@CPPFLAGS@%$CPPFLAGS%g
2289 s%@CXXFLAGS@%$CXXFLAGS%g
2290 s%@FFLAGS@%$FFLAGS%g
2292 s%@LDFLAGS@%$LDFLAGS%g
2294 s%@exec_prefix@%$exec_prefix%g
2295 s%@prefix@%$prefix%g
2296 s%@program_transform_name@%$program_transform_name%g
2297 s%@bindir@%$bindir%g
2298 s%@sbindir@%$sbindir%g
2299 s%@libexecdir@%$libexecdir%g
2300 s%@datadir@%$datadir%g
2301 s%@sysconfdir@%$sysconfdir%g
2302 s%@sharedstatedir@%$sharedstatedir%g
2303 s%@localstatedir@%$localstatedir%g
2304 s%@libdir@%$libdir%g
2305 s%@includedir@%$includedir%g
2306 s%@oldincludedir@%$oldincludedir%g
2307 s%@infodir@%$infodir%g
2308 s%@mandir@%$mandir%g
2309 s%@VERSION@%$VERSION%g
2310 s%@RELEASE@%$RELEASE%g
2311 s%@statedir@%$statedir%g
2312 s%@statduser@%$statduser%g
2313 s%@enable_nfsv3@%$enable_nfsv3%g
2314 s%@IDMAPD@%$IDMAPD%g
2315 s%@enable_nfsv4@%$enable_nfsv4%g
2317 s%@SVCGSSD@%$SVCGSSD%g
2318 s%@enable_gss@%$enable_gss%g
2319 s%@kprefix@%$kprefix%g
2320 s%@secure_statd@%$secure_statd%g
2321 s%@RQUOTAD@%$RQUOTAD%g
2324 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2325 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2326 s%@INSTALL_DATA@%$INSTALL_DATA%g
2327 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
2329 s%@host_alias@%$host_alias%g
2330 s%@host_cpu@%$host_cpu%g
2331 s%@host_vendor@%$host_vendor%g
2332 s%@host_os@%$host_os%g
2334 s%@build_alias@%$build_alias%g
2335 s%@build_cpu@%$build_cpu%g
2336 s%@build_vendor@%$build_vendor%g
2337 s%@build_os@%$build_os%g
2338 s%@RANLIB@%$RANLIB%g
2341 s%@LIBSOCKET@%$LIBSOCKET%g
2342 s%@LIBNSL@%$LIBNSL%g
2343 s%@LIBCRYPT@%$LIBCRYPT%g
2344 s%@LIBBSD@%$LIBBSD%g
2345 s%@LIBWRAP@%$LIBWRAP%g
2346 s%@KRBDIR@%$KRBDIR%g
2347 s%@KRBLIB@%$KRBLIB%g
2348 s%@K5VERS@%$K5VERS%g
2353 cat >> $CONFIG_STATUS <<\EOF
2355 # Split the substitutions into bite-sized pieces for seds with
2356 # small command number limits, like on Digital OSF/1 and HP-UX.
2357 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2358 ac_file=1 # Number of current file.
2359 ac_beg=1 # First line for current file.
2360 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2363 while $ac_more_lines; do
2364 if test $ac_beg -gt 1; then
2365 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2367 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2369 if test ! -s conftest.s$ac_file; then
2371 rm -f conftest.s$ac_file
2373 if test -z "$ac_sed_cmds"; then
2374 ac_sed_cmds="sed -f conftest.s$ac_file"
2376 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2378 ac_file=`expr $ac_file + 1`
2380 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2383 if test -z "$ac_sed_cmds"; then
2388 cat >> $CONFIG_STATUS <<EOF
2390 CONFIG_FILES=\${CONFIG_FILES-"config.mk nfs-utils.spec utils/Makefile"}
2392 cat >> $CONFIG_STATUS <<\EOF
2393 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2394 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2396 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2397 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2398 *) ac_file_in="${ac_file}.in" ;;
2401 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2403 # Remove last slash and all that follows it. Not all systems have dirname.
2404 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2405 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2406 # The file is in a subdirectory.
2407 test ! -d "$ac_dir" && mkdir "$ac_dir"
2408 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2409 # A "../" for each directory in $ac_dir_suffix.
2410 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2412 ac_dir_suffix= ac_dots=
2415 case "$ac_given_srcdir" in
2417 if test -z "$ac_dots"; then top_srcdir=.
2418 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2419 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2421 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2422 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2425 case "$ac_given_INSTALL" in
2426 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2427 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2430 echo creating "$ac_file"
2432 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2434 *Makefile*) ac_comsub="1i\\
2435 # $configure_input" ;;
2439 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2441 s%@configure_input@%$configure_input%g
2442 s%@srcdir@%$srcdir%g
2443 s%@top_srcdir@%$top_srcdir%g
2444 s%@INSTALL@%$INSTALL%g
2445 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2449 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2450 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2452 # ac_d sets the value in "#define NAME VALUE" lines.
2453 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2454 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2457 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2458 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2459 ac_uB='\([ ]\)%\1#\2define\3'
2462 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2463 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2464 ac_eB='$%\1#\2define\3'
2468 if test "${CONFIG_HEADERS+set}" != set; then
2470 cat >> $CONFIG_STATUS <<EOF
2471 CONFIG_HEADERS="support/include/config.h"
2473 cat >> $CONFIG_STATUS <<\EOF
2475 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2476 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2478 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2479 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2480 *) ac_file_in="${ac_file}.in" ;;
2483 echo creating $ac_file
2485 rm -f conftest.frag conftest.in conftest.out
2486 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2487 cat $ac_file_inputs > conftest.in
2491 # Transform confdefs.h into a sed script conftest.vals that substitutes
2492 # the proper values into config.h.in to produce config.h. And first:
2493 # Protect against being on the right side of a sed subst in config.status.
2494 # Protect against being in an unquoted here document in config.status.
2496 cat > conftest.hdr <<\EOF
2499 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2503 sed -n -f conftest.hdr confdefs.h > conftest.vals
2506 # This sed command replaces #undef with comments. This is necessary, for
2507 # example, in the case of _POSIX_SOURCE, which is predefined and required
2508 # on some systems where configure will not decide to define it.
2509 cat >> conftest.vals <<\EOF
2510 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2513 # Break up conftest.vals because some shells have a limit on
2514 # the size of here documents, and old seds have small limits too.
2519 ac_lines=`grep -c . conftest.vals`
2520 # grep -c gives empty output for an empty file on some AIX systems.
2521 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2522 # Write a limited-size here document to conftest.frag.
2523 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2524 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2526 sed -f conftest.frag conftest.in > conftest.out
2528 mv conftest.out conftest.in
2530 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2532 mv conftest.tail conftest.vals
2536 cat >> $CONFIG_STATUS <<\EOF
2537 rm -f conftest.frag conftest.h
2538 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2539 cat conftest.in >> conftest.h
2541 if cmp -s $ac_file conftest.h 2>/dev/null; then
2542 echo "$ac_file is unchanged"
2545 # Remove last slash and all that follows it. Not all systems have dirname.
2546 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2547 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2548 # The file is in a subdirectory.
2549 test ! -d "$ac_dir" && mkdir "$ac_dir"
2552 mv conftest.h $ac_file
2557 cat >> $CONFIG_STATUS <<EOF
2560 cat >> $CONFIG_STATUS <<\EOF
2564 chmod +x $CONFIG_STATUS
2565 rm -fr confdefs* $ac_clean_files
2566 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1