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-statedir=/foo use state dir /foo [/var/lib/nfs]"
18 --enable-nfsv3 enable support for NFSv3"
20 --enable-kprefix install progs as rpc.knfsd etc"
22 --enable-secure-statd Only lockd can use statd (security)"
24 # Initialize some variables set by options.
25 # The variables have the same names as the options, with
26 # dashes changed to underlines.
28 cache_file=./config.cache
37 program_transform_name=s,x,x,
46 bindir='${exec_prefix}/bin'
47 sbindir='${exec_prefix}/sbin'
48 libexecdir='${exec_prefix}/libexec'
49 datadir='${prefix}/share'
50 sysconfdir='${prefix}/etc'
51 sharedstatedir='${prefix}/com'
52 localstatedir='${prefix}/var'
53 libdir='${exec_prefix}/lib'
54 includedir='${prefix}/include'
55 oldincludedir='/usr/include'
56 infodir='${prefix}/info'
57 mandir='${prefix}/man'
59 # Initialize some other variables.
62 SHELL=${CONFIG_SHELL-/bin/sh}
63 # Maximum number of lines to put in a shell here document.
70 # If the previous option needs an argument, assign it.
71 if test -n "$ac_prev"; then
72 eval "$ac_prev=\$ac_option"
78 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
82 # Accept the important Cygnus configure options, so we can diagnose typos.
86 -bindir | --bindir | --bindi | --bind | --bin | --bi)
88 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
89 bindir="$ac_optarg" ;;
91 -build | --build | --buil | --bui | --bu)
93 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
96 -cache-file | --cache-file | --cache-fil | --cache-fi \
97 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
99 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
100 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
101 cache_file="$ac_optarg" ;;
103 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
105 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
107 datadir="$ac_optarg" ;;
109 -disable-* | --disable-*)
110 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
111 # Reject names that are not valid shell variable names.
112 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
113 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
115 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
116 eval "enable_${ac_feature}=no" ;;
118 -enable-* | --enable-*)
119 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
120 # Reject names that are not valid shell variable names.
121 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
122 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
124 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
129 eval "enable_${ac_feature}='$ac_optarg'" ;;
131 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
132 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
133 | --exec | --exe | --ex)
134 ac_prev=exec_prefix ;;
135 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
136 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
137 | --exec=* | --exe=* | --ex=*)
138 exec_prefix="$ac_optarg" ;;
140 -gas | --gas | --ga | --g)
141 # Obsolete; use --with-gas.
144 -help | --help | --hel | --he)
145 # Omit some internal or obsolete options to make the list less imposing.
146 # This message is too long to be a string in the A/UX 3.1 sh.
148 Usage: configure [options] [host]
149 Options: [defaults in brackets after descriptions]
151 --cache-file=FILE cache test results in FILE
152 --help print this message
153 --no-create do not create output files
154 --quiet, --silent do not print \`checking...' messages
155 --site-file=FILE use FILE as the site file
156 --version print the version of autoconf that created configure
157 Directory and file names:
158 --prefix=PREFIX install architecture-independent files in PREFIX
160 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
162 --bindir=DIR user executables in DIR [EPREFIX/bin]
163 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
164 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
165 --datadir=DIR read-only architecture-independent data in DIR
167 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
168 --sharedstatedir=DIR modifiable architecture-independent data in DIR
170 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
171 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
172 --includedir=DIR C header files in DIR [PREFIX/include]
173 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
174 --infodir=DIR info documentation in DIR [PREFIX/info]
175 --mandir=DIR man documentation in DIR [PREFIX/man]
176 --srcdir=DIR find the sources in DIR [configure dir or ..]
177 --program-prefix=PREFIX prepend PREFIX to installed program names
178 --program-suffix=SUFFIX append SUFFIX to installed program names
179 --program-transform-name=PROGRAM
180 run sed PROGRAM on installed program names
184 --build=BUILD configure for building on BUILD [BUILD=HOST]
185 --host=HOST configure for HOST [guessed]
186 --target=TARGET configure for TARGET [TARGET=HOST]
187 Features and packages:
188 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
189 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
190 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
191 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
192 --x-includes=DIR X include files are in DIR
193 --x-libraries=DIR X library files are in DIR
195 if test -n "$ac_help"; then
196 echo "--enable and --with options recognized:$ac_help"
200 -host | --host | --hos | --ho)
202 -host=* | --host=* | --hos=* | --ho=*)
205 -includedir | --includedir | --includedi | --included | --include \
206 | --includ | --inclu | --incl | --inc)
207 ac_prev=includedir ;;
208 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
209 | --includ=* | --inclu=* | --incl=* | --inc=*)
210 includedir="$ac_optarg" ;;
212 -infodir | --infodir | --infodi | --infod | --info | --inf)
214 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
215 infodir="$ac_optarg" ;;
217 -libdir | --libdir | --libdi | --libd)
219 -libdir=* | --libdir=* | --libdi=* | --libd=*)
220 libdir="$ac_optarg" ;;
222 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
223 | --libexe | --libex | --libe)
224 ac_prev=libexecdir ;;
225 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
226 | --libexe=* | --libex=* | --libe=*)
227 libexecdir="$ac_optarg" ;;
229 -localstatedir | --localstatedir | --localstatedi | --localstated \
230 | --localstate | --localstat | --localsta | --localst \
231 | --locals | --local | --loca | --loc | --lo)
232 ac_prev=localstatedir ;;
233 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
234 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
235 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
236 localstatedir="$ac_optarg" ;;
238 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
240 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
241 mandir="$ac_optarg" ;;
244 # Obsolete; use --without-fp.
247 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
251 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
252 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
255 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
256 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
257 | --oldin | --oldi | --old | --ol | --o)
258 ac_prev=oldincludedir ;;
259 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
260 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
261 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
262 oldincludedir="$ac_optarg" ;;
264 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
266 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
267 prefix="$ac_optarg" ;;
269 -program-prefix | --program-prefix | --program-prefi | --program-pref \
270 | --program-pre | --program-pr | --program-p)
271 ac_prev=program_prefix ;;
272 -program-prefix=* | --program-prefix=* | --program-prefi=* \
273 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
274 program_prefix="$ac_optarg" ;;
276 -program-suffix | --program-suffix | --program-suffi | --program-suff \
277 | --program-suf | --program-su | --program-s)
278 ac_prev=program_suffix ;;
279 -program-suffix=* | --program-suffix=* | --program-suffi=* \
280 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
281 program_suffix="$ac_optarg" ;;
283 -program-transform-name | --program-transform-name \
284 | --program-transform-nam | --program-transform-na \
285 | --program-transform-n | --program-transform- \
286 | --program-transform | --program-transfor \
287 | --program-transfo | --program-transf \
288 | --program-trans | --program-tran \
289 | --progr-tra | --program-tr | --program-t)
290 ac_prev=program_transform_name ;;
291 -program-transform-name=* | --program-transform-name=* \
292 | --program-transform-nam=* | --program-transform-na=* \
293 | --program-transform-n=* | --program-transform-=* \
294 | --program-transform=* | --program-transfor=* \
295 | --program-transfo=* | --program-transf=* \
296 | --program-trans=* | --program-tran=* \
297 | --progr-tra=* | --program-tr=* | --program-t=*)
298 program_transform_name="$ac_optarg" ;;
300 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
301 | -silent | --silent | --silen | --sile | --sil)
304 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
306 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
308 sbindir="$ac_optarg" ;;
310 -sharedstatedir | --sharedstatedir | --sharedstatedi \
311 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
312 | --sharedst | --shareds | --shared | --share | --shar \
314 ac_prev=sharedstatedir ;;
315 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
316 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
317 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
319 sharedstatedir="$ac_optarg" ;;
321 -site | --site | --sit)
323 -site=* | --site=* | --sit=*)
326 -site-file | --site-file | --site-fil | --site-fi | --site-f)
328 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
329 sitefile="$ac_optarg" ;;
331 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
333 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
334 srcdir="$ac_optarg" ;;
336 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
337 | --syscon | --sysco | --sysc | --sys | --sy)
338 ac_prev=sysconfdir ;;
339 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
340 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
341 sysconfdir="$ac_optarg" ;;
343 -target | --target | --targe | --targ | --tar | --ta | --t)
345 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
346 target="$ac_optarg" ;;
348 -v | -verbose | --verbose | --verbos | --verbo | --verb)
351 -version | --version | --versio | --versi | --vers)
352 echo "configure generated by autoconf version 2.13"
356 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
357 # Reject names that are not valid shell variable names.
358 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
359 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
361 ac_package=`echo $ac_package| sed 's/-/_/g'`
366 eval "with_${ac_package}='$ac_optarg'" ;;
368 -without-* | --without-*)
369 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
370 # Reject names that are not valid shell variable names.
371 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
372 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
374 ac_package=`echo $ac_package| sed 's/-/_/g'`
375 eval "with_${ac_package}=no" ;;
378 # Obsolete; use --with-x.
381 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
382 | --x-incl | --x-inc | --x-in | --x-i)
383 ac_prev=x_includes ;;
384 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
385 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
386 x_includes="$ac_optarg" ;;
388 -x-libraries | --x-libraries | --x-librarie | --x-librari \
389 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
390 ac_prev=x_libraries ;;
391 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
392 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
393 x_libraries="$ac_optarg" ;;
395 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
399 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
400 echo "configure: warning: $ac_option: invalid host type" 1>&2
402 if test "x$nonopt" != xNONE; then
403 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
411 if test -n "$ac_prev"; then
412 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
415 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
417 # File descriptor usage:
420 # 2 errors and warnings
421 # 3 some systems may open it to /dev/tty
422 # 4 used on the Kubota Titan
423 # 6 checking for... messages and results
424 # 5 compiler messages saved in config.log
425 if test "$silent" = yes; then
433 This file contains any messages produced by compilers while
434 running configure, to aid debugging if configure makes a mistake.
437 # Strip out --no-create and --no-recursion so they do not pile up.
438 # Also quote any args containing shell metacharacters.
443 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
444 | --no-cr | --no-c) ;;
445 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
446 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
447 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
448 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
449 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
454 # Only set these to C if already set. These must not be set unconditionally
455 # because not all systems understand e.g. LANG=C (notably SCO).
456 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
457 # Non-C LC_CTYPE values break the ctype check.
458 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
459 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
460 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
461 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
463 # confdefs.h avoids OS command line length limits that DEFS can exceed.
464 rm -rf conftest* confdefs.h
465 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
468 # A filename unique to this package, relative to the directory that
469 # configure is in, which we can look for to find out if srcdir is correct.
470 ac_unique_file=rules.mk
472 # Find the source files, if location was not specified.
473 if test -z "$srcdir"; then
474 ac_srcdir_defaulted=yes
475 # Try the directory containing this script, then its parent.
477 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
478 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
480 if test ! -r $srcdir/$ac_unique_file; then
484 ac_srcdir_defaulted=no
486 if test ! -r $srcdir/$ac_unique_file; then
487 if test "$ac_srcdir_defaulted" = yes; then
488 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
490 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
493 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
495 # Prefer explicitly selected file to automatically selected ones.
496 if test -z "$sitefile"; then
497 if test -z "$CONFIG_SITE"; then
498 if test "x$prefix" != xNONE; then
499 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
501 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
505 CONFIG_SITE="$sitefile"
507 for ac_site_file in $CONFIG_SITE; do
508 if test -r "$ac_site_file"; then
509 echo "loading site script $ac_site_file"
514 if test -r "$cache_file"; then
515 echo "loading cache $cache_file"
518 echo "creating cache $cache_file"
523 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
524 ac_cpp='$CPP $CPPFLAGS'
525 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
526 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
527 cross_compiling=$ac_cv_prog_cc_cross
531 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
532 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
533 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
540 ac_n= ac_c='\c' ac_t=
546 # The nfs-utils version
547 VERSION="nfs-utils 0.1.1"
550 # Check whether --with-statedir or --without-statedir was given.
551 if test "${with_statedir+set}" = set; then
552 withval="$with_statedir"
555 statedir=/var/lib/nfs
559 # Check whether --enable-nfsv3 or --disable-nfsv3 was given.
560 if test "${enable_nfsv3+set}" = set; then
561 enableval="$enable_nfsv3"
562 enable_nfsv3=$enableval
567 if test "$enable_nfsv3" = yes; then
568 cat >> confdefs.h <<\EOF
569 #define NFS3_SUPPORTED 1
576 # Check whether --enable-kprefix or --disable-kprefix was given.
577 if test "${enable_kprefix+set}" = set; then
578 enableval="$enable_kprefix"
579 test "$enableval" = "yes" && kprefix=k
585 # Check whether --enable-secure-statd or --disable-secure-statd was given.
586 if test "${enable_secure_statd+set}" = set; then
587 enableval="$enable_secure_statd"
588 test "$enableval" = "yes" && secure_statd=yes
593 if test "$secure_statd" = yes; then
594 cat >> confdefs.h <<\EOF
595 #define RESTRICTED_STATD 1
602 # Extract the first word of "gcc", so it can be a program name with args.
603 set dummy gcc; ac_word=$2
604 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
605 echo "configure:606: checking for $ac_word" >&5
606 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
607 echo $ac_n "(cached) $ac_c" 1>&6
609 if test -n "$CC"; then
610 ac_cv_prog_CC="$CC" # Let the user override the test.
612 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
614 for ac_dir in $ac_dummy; do
615 test -z "$ac_dir" && ac_dir=.
616 if test -f $ac_dir/$ac_word; then
625 if test -n "$CC"; then
626 echo "$ac_t""$CC" 1>&6
628 echo "$ac_t""no" 1>&6
631 if test -z "$CC"; then
632 # Extract the first word of "cc", so it can be a program name with args.
633 set dummy cc; ac_word=$2
634 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
635 echo "configure:636: checking for $ac_word" >&5
636 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
637 echo $ac_n "(cached) $ac_c" 1>&6
639 if test -n "$CC"; then
640 ac_cv_prog_CC="$CC" # Let the user override the test.
642 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
645 for ac_dir in $ac_dummy; do
646 test -z "$ac_dir" && ac_dir=.
647 if test -f $ac_dir/$ac_word; then
648 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
657 if test $ac_prog_rejected = yes; then
658 # We found a bogon in the path, so make sure we never use it.
659 set dummy $ac_cv_prog_CC
661 if test $# -gt 0; then
662 # We chose a different compiler from the bogus one.
663 # However, it has the same basename, so the bogon will be chosen
664 # first if we set CC to just the basename; use the full file name.
666 set dummy "$ac_dir/$ac_word" "$@"
674 if test -n "$CC"; then
675 echo "$ac_t""$CC" 1>&6
677 echo "$ac_t""no" 1>&6
680 if test -z "$CC"; then
683 # Extract the first word of "cl", so it can be a program name with args.
684 set dummy cl; ac_word=$2
685 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
686 echo "configure:687: checking for $ac_word" >&5
687 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
688 echo $ac_n "(cached) $ac_c" 1>&6
690 if test -n "$CC"; then
691 ac_cv_prog_CC="$CC" # Let the user override the test.
693 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
695 for ac_dir in $ac_dummy; do
696 test -z "$ac_dir" && ac_dir=.
697 if test -f $ac_dir/$ac_word; then
706 if test -n "$CC"; then
707 echo "$ac_t""$CC" 1>&6
709 echo "$ac_t""no" 1>&6
714 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
717 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
718 echo "configure:719: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
721 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
722 ac_cpp='$CPP $CPPFLAGS'
723 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
724 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
725 cross_compiling=$ac_cv_prog_cc_cross
727 cat > conftest.$ac_ext << EOF
729 #line 730 "configure"
730 #include "confdefs.h"
734 if { (eval echo configure:735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
735 ac_cv_prog_cc_works=yes
736 # If we can't run a trivial program, we are probably using a cross compiler.
737 if (./conftest; exit) 2>/dev/null; then
738 ac_cv_prog_cc_cross=no
740 ac_cv_prog_cc_cross=yes
743 echo "configure: failed program was:" >&5
744 cat conftest.$ac_ext >&5
745 ac_cv_prog_cc_works=no
749 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
750 ac_cpp='$CPP $CPPFLAGS'
751 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
752 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
753 cross_compiling=$ac_cv_prog_cc_cross
755 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
756 if test $ac_cv_prog_cc_works = no; then
757 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
759 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
760 echo "configure:761: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
761 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
762 cross_compiling=$ac_cv_prog_cc_cross
764 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
765 echo "configure:766: checking whether we are using GNU C" >&5
766 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
767 echo $ac_n "(cached) $ac_c" 1>&6
769 cat > conftest.c <<EOF
774 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:775: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
781 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
783 if test $ac_cv_prog_gcc = yes; then
789 ac_test_CFLAGS="${CFLAGS+set}"
790 ac_save_CFLAGS="$CFLAGS"
792 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
793 echo "configure:794: checking whether ${CC-cc} accepts -g" >&5
794 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
795 echo $ac_n "(cached) $ac_c" 1>&6
797 echo 'void f(){}' > conftest.c
798 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
807 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
808 if test "$ac_test_CFLAGS" = set; then
809 CFLAGS="$ac_save_CFLAGS"
810 elif test $ac_cv_prog_cc_g = yes; then
811 if test "$GCC" = yes; then
817 if test "$GCC" = yes; then
824 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
826 # Extract the first word of "$ac_prog", so it can be a program name with args.
827 set dummy $ac_prog; ac_word=$2
828 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
829 echo "configure:830: checking for $ac_word" >&5
830 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
831 echo $ac_n "(cached) $ac_c" 1>&6
833 if test -n "$CXX"; then
834 ac_cv_prog_CXX="$CXX" # Let the user override the test.
836 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
838 for ac_dir in $ac_dummy; do
839 test -z "$ac_dir" && ac_dir=.
840 if test -f $ac_dir/$ac_word; then
841 ac_cv_prog_CXX="$ac_prog"
848 CXX="$ac_cv_prog_CXX"
849 if test -n "$CXX"; then
850 echo "$ac_t""$CXX" 1>&6
852 echo "$ac_t""no" 1>&6
855 test -n "$CXX" && break
857 test -n "$CXX" || CXX="gcc"
860 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
861 echo "configure:862: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
864 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
865 ac_cpp='$CXXCPP $CPPFLAGS'
866 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
867 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
868 cross_compiling=$ac_cv_prog_cxx_cross
870 cat > conftest.$ac_ext << EOF
872 #line 873 "configure"
873 #include "confdefs.h"
875 int main(){return(0);}
877 if { (eval echo configure:878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
878 ac_cv_prog_cxx_works=yes
879 # If we can't run a trivial program, we are probably using a cross compiler.
880 if (./conftest; exit) 2>/dev/null; then
881 ac_cv_prog_cxx_cross=no
883 ac_cv_prog_cxx_cross=yes
886 echo "configure: failed program was:" >&5
887 cat conftest.$ac_ext >&5
888 ac_cv_prog_cxx_works=no
892 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
893 ac_cpp='$CPP $CPPFLAGS'
894 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
895 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
896 cross_compiling=$ac_cv_prog_cc_cross
898 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
899 if test $ac_cv_prog_cxx_works = no; then
900 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
902 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
903 echo "configure:904: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
904 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
905 cross_compiling=$ac_cv_prog_cxx_cross
907 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
908 echo "configure:909: checking whether we are using GNU C++" >&5
909 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
910 echo $ac_n "(cached) $ac_c" 1>&6
912 cat > conftest.C <<EOF
917 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
924 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
926 if test $ac_cv_prog_gxx = yes; then
932 ac_test_CXXFLAGS="${CXXFLAGS+set}"
933 ac_save_CXXFLAGS="$CXXFLAGS"
935 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
936 echo "configure:937: checking whether ${CXX-g++} accepts -g" >&5
937 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
938 echo $ac_n "(cached) $ac_c" 1>&6
940 echo 'void f(){}' > conftest.cc
941 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
950 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
951 if test "$ac_test_CXXFLAGS" = set; then
952 CXXFLAGS="$ac_save_CXXFLAGS"
953 elif test $ac_cv_prog_cxx_g = yes; then
954 if test "$GXX" = yes; then
960 if test "$GXX" = yes; then
967 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
968 echo "configure:969: checking how to run the C preprocessor" >&5
969 # On Suns, sometimes $CPP names a directory.
970 if test -n "$CPP" && test -d "$CPP"; then
973 if test -z "$CPP"; then
974 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
975 echo $ac_n "(cached) $ac_c" 1>&6
977 # This must be in double quotes, not single quotes, because CPP may get
978 # substituted into the Makefile and "${CC-cc}" will confuse make.
980 # On the NeXT, cc -E runs the code through the compiler's parser,
981 # not just through cpp.
982 cat > conftest.$ac_ext <<EOF
983 #line 984 "configure"
984 #include "confdefs.h"
988 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
989 { (eval echo configure:990: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
990 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
991 if test -z "$ac_err"; then
995 echo "configure: failed program was:" >&5
996 cat conftest.$ac_ext >&5
998 CPP="${CC-cc} -E -traditional-cpp"
999 cat > conftest.$ac_ext <<EOF
1000 #line 1001 "configure"
1001 #include "confdefs.h"
1005 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1006 { (eval echo configure:1007: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1007 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1008 if test -z "$ac_err"; then
1012 echo "configure: failed program was:" >&5
1013 cat conftest.$ac_ext >&5
1015 CPP="${CC-cc} -nologo -E"
1016 cat > conftest.$ac_ext <<EOF
1017 #line 1018 "configure"
1018 #include "confdefs.h"
1022 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1023 { (eval echo configure:1024: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1024 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1025 if test -z "$ac_err"; then
1029 echo "configure: failed program was:" >&5
1030 cat conftest.$ac_ext >&5
1039 ac_cv_prog_CPP="$CPP"
1041 CPP="$ac_cv_prog_CPP"
1043 ac_cv_prog_CPP="$CPP"
1045 echo "$ac_t""$CPP" 1>&6
1048 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1049 if test -f $ac_dir/install-sh; then
1051 ac_install_sh="$ac_aux_dir/install-sh -c"
1053 elif test -f $ac_dir/install.sh; then
1055 ac_install_sh="$ac_aux_dir/install.sh -c"
1059 if test -z "$ac_aux_dir"; then
1060 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1062 ac_config_guess=$ac_aux_dir/config.guess
1063 ac_config_sub=$ac_aux_dir/config.sub
1064 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1066 # Find a good install program. We prefer a C program (faster),
1067 # so one script is as good as another. But avoid the broken or
1068 # incompatible versions:
1069 # SysV /etc/install, /usr/sbin/install
1070 # SunOS /usr/etc/install
1071 # IRIX /sbin/install
1073 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1074 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1075 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1076 # ./install, which can be erroneously created by make from ./install.sh.
1077 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1078 echo "configure:1079: checking for a BSD compatible install" >&5
1079 if test -z "$INSTALL"; then
1080 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1081 echo $ac_n "(cached) $ac_c" 1>&6
1083 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1084 for ac_dir in $PATH; do
1085 # Account for people who put trailing slashes in PATH elements.
1087 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1089 # OSF1 and SCO ODT 3.0 have their own names for install.
1090 # Don't use installbsd from OSF since it installs stuff as root
1092 for ac_prog in ginstall scoinst install; do
1093 if test -f $ac_dir/$ac_prog; then
1094 if test $ac_prog = install &&
1095 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1096 # AIX install. It has an incompatible calling convention.
1099 ac_cv_path_install="$ac_dir/$ac_prog -c"
1110 if test "${ac_cv_path_install+set}" = set; then
1111 INSTALL="$ac_cv_path_install"
1113 # As a last resort, use the slow shell script. We don't cache a
1114 # path for INSTALL within a source directory, because that will
1115 # break other packages using the cache if that directory is
1116 # removed, or if the path is relative.
1117 INSTALL="$ac_install_sh"
1120 echo "$ac_t""$INSTALL" 1>&6
1122 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1123 # It thinks the first close brace ends the variable substitution.
1124 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1126 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1128 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1130 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1131 echo "configure:1132: checking for ANSI C header files" >&5
1132 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1133 echo $ac_n "(cached) $ac_c" 1>&6
1135 cat > conftest.$ac_ext <<EOF
1136 #line 1137 "configure"
1137 #include "confdefs.h"
1143 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1144 { (eval echo configure:1145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1145 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1146 if test -z "$ac_err"; then
1148 ac_cv_header_stdc=yes
1151 echo "configure: failed program was:" >&5
1152 cat conftest.$ac_ext >&5
1154 ac_cv_header_stdc=no
1158 if test $ac_cv_header_stdc = yes; then
1159 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1160 cat > conftest.$ac_ext <<EOF
1161 #line 1162 "configure"
1162 #include "confdefs.h"
1165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1166 egrep "memchr" >/dev/null 2>&1; then
1170 ac_cv_header_stdc=no
1176 if test $ac_cv_header_stdc = yes; then
1177 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1178 cat > conftest.$ac_ext <<EOF
1179 #line 1180 "configure"
1180 #include "confdefs.h"
1183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1184 egrep "free" >/dev/null 2>&1; then
1188 ac_cv_header_stdc=no
1194 if test $ac_cv_header_stdc = yes; then
1195 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1196 if test "$cross_compiling" = yes; then
1199 cat > conftest.$ac_ext <<EOF
1200 #line 1201 "configure"
1201 #include "confdefs.h"
1203 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1204 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1205 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1206 int main () { int i; for (i = 0; i < 256; i++)
1207 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1211 if { (eval echo configure:1212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1215 echo "configure: failed program was:" >&5
1216 cat conftest.$ac_ext >&5
1218 ac_cv_header_stdc=no
1226 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1227 if test $ac_cv_header_stdc = yes; then
1228 cat >> confdefs.h <<\EOF
1229 #define STDC_HEADERS 1
1234 echo $ac_n "checking for GNU libc2""... $ac_c" 1>&6
1235 echo "configure:1236: checking for GNU libc2" >&5
1236 if eval "test \"`echo '$''{'knfsd_cv_glibc2'+set}'`\" = set"; then
1237 echo $ac_n "(cached) $ac_c" 1>&6
1239 cat > conftest.$ac_ext <<EOF
1240 #line 1241 "configure"
1241 #include "confdefs.h"
1243 #include <features.h>
1244 #if !defined(__GLIBC__)
1248 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1249 { (eval echo configure:1250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1250 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1251 if test -z "$ac_err"; then
1256 echo "configure: failed program was:" >&5
1257 cat conftest.$ac_ext >&5
1264 echo "$ac_t""$knfsd_cv_glibc2" 1>&6
1265 if test $knfsd_cv_glibc2 = yes; then
1266 CFLAGS="$CFLAGS -D_GNU_SOURCE"
1267 CXXFLAGS="$CXXFLAGS -D_GNU_SOURCE"
1271 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
1272 echo "configure:1273: checking for main in -lsocket" >&5
1273 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
1274 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1275 echo $ac_n "(cached) $ac_c" 1>&6
1277 ac_save_LIBS="$LIBS"
1278 LIBS="-lsocket $LIBS"
1279 cat > conftest.$ac_ext <<EOF
1280 #line 1281 "configure"
1281 #include "confdefs.h"
1287 if { (eval echo configure:1288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1289 eval "ac_cv_lib_$ac_lib_var=yes"
1291 echo "configure: failed program was:" >&5
1292 cat conftest.$ac_ext >&5
1294 eval "ac_cv_lib_$ac_lib_var=no"
1297 LIBS="$ac_save_LIBS"
1300 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1301 echo "$ac_t""yes" 1>&6
1304 echo "$ac_t""no" 1>&6
1307 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
1308 echo "configure:1309: checking for main in -lnsl" >&5
1309 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
1310 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1311 echo $ac_n "(cached) $ac_c" 1>&6
1313 ac_save_LIBS="$LIBS"
1315 cat > conftest.$ac_ext <<EOF
1316 #line 1317 "configure"
1317 #include "confdefs.h"
1323 if { (eval echo configure:1324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1325 eval "ac_cv_lib_$ac_lib_var=yes"
1327 echo "configure: failed program was:" >&5
1328 cat conftest.$ac_ext >&5
1330 eval "ac_cv_lib_$ac_lib_var=no"
1333 LIBS="$ac_save_LIBS"
1336 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1337 echo "$ac_t""yes" 1>&6
1340 echo "$ac_t""no" 1>&6
1343 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
1344 echo "configure:1345: checking for crypt in -lcrypt" >&5
1345 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
1346 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1347 echo $ac_n "(cached) $ac_c" 1>&6
1349 ac_save_LIBS="$LIBS"
1350 LIBS="-lcrypt $LIBS"
1351 cat > conftest.$ac_ext <<EOF
1352 #line 1353 "configure"
1353 #include "confdefs.h"
1354 /* Override any gcc2 internal prototype to avoid an error. */
1355 /* We use char because int might match the return type of a gcc2
1356 builtin and then its argument prototype would still apply. */
1363 if { (eval echo configure:1364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1365 eval "ac_cv_lib_$ac_lib_var=yes"
1367 echo "configure: failed program was:" >&5
1368 cat conftest.$ac_ext >&5
1370 eval "ac_cv_lib_$ac_lib_var=no"
1373 LIBS="$ac_save_LIBS"
1376 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1377 echo "$ac_t""yes" 1>&6
1380 echo "$ac_t""no" 1>&6
1383 if test "$knfsd_cv_glibc2" = no; then
1384 echo $ac_n "checking for daemon in -lbsd""... $ac_c" 1>&6
1385 echo "configure:1386: checking for daemon in -lbsd" >&5
1386 ac_lib_var=`echo bsd'_'daemon | sed 'y%./+-%__p_%'`
1387 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1388 echo $ac_n "(cached) $ac_c" 1>&6
1390 ac_save_LIBS="$LIBS"
1392 cat > conftest.$ac_ext <<EOF
1393 #line 1394 "configure"
1394 #include "confdefs.h"
1395 /* Override any gcc2 internal prototype to avoid an error. */
1396 /* We use char because int might match the return type of a gcc2
1397 builtin and then its argument prototype would still apply. */
1404 if { (eval echo configure:1405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1406 eval "ac_cv_lib_$ac_lib_var=yes"
1408 echo "configure: failed program was:" >&5
1409 cat conftest.$ac_ext >&5
1411 eval "ac_cv_lib_$ac_lib_var=no"
1414 LIBS="$ac_save_LIBS"
1417 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1418 echo "$ac_t""yes" 1>&6
1421 echo "$ac_t""no" 1>&6
1431 for ac_func in innetgr
1433 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1434 echo "configure:1435: checking for $ac_func" >&5
1435 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1436 echo $ac_n "(cached) $ac_c" 1>&6
1438 cat > conftest.$ac_ext <<EOF
1439 #line 1440 "configure"
1440 #include "confdefs.h"
1441 /* System header to define __stub macros and hopefully few prototypes,
1442 which can conflict with char $ac_func(); below. */
1444 /* Override any gcc2 internal prototype to avoid an error. */
1445 /* We use char because int might match the return type of a gcc2
1446 builtin and then its argument prototype would still apply. */
1451 /* The GNU C library defines this for functions which it implements
1452 to always fail with ENOSYS. Some functions are actually named
1453 something starting with __ and the normal name is an alias. */
1454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1462 if { (eval echo configure:1463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1464 eval "ac_cv_func_$ac_func=yes"
1466 echo "configure: failed program was:" >&5
1467 cat conftest.$ac_ext >&5
1469 eval "ac_cv_func_$ac_func=no"
1474 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1475 echo "$ac_t""yes" 1>&6
1476 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1477 cat >> confdefs.h <<EOF
1478 #define $ac_tr_func 1
1482 echo "$ac_t""no" 1>&6
1487 cat >> confdefs.h <<EOF
1488 #define NFS_STATEDIR "$statedir"
1496 cat > confcache <<\EOF
1497 # This file is a shell script that caches the results of configure
1498 # tests run on this system so they can be shared between configure
1499 # scripts and configure runs. It is not useful on other systems.
1500 # If it contains results you don't want to keep, you may remove or edit it.
1502 # By default, configure uses ./config.cache as the cache file,
1503 # creating it if it does not exist already. You can give configure
1504 # the --cache-file=FILE option to use a different cache file; that is
1505 # what configure does when it calls configure scripts in
1506 # subdirectories, so they share the cache.
1507 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1508 # config.status only pays attention to the cache file if you give it the
1509 # --recheck option to rerun configure.
1512 # The following way of writing the cache mishandles newlines in values,
1513 # but we know of no workaround that is simple, portable, and efficient.
1514 # So, don't put newlines in cache variables' values.
1515 # Ultrix sh set writes to stderr and can't be redirected directly,
1516 # and sets the high bit in the cache file unless we assign to the vars.
1518 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1520 # `set' does not quote correctly, so add quotes (double-quote substitution
1521 # turns \\\\ into \\, and sed turns \\ into \).
1523 -e "s/'/'\\\\''/g" \
1524 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1527 # `set' quotes correctly as required by POSIX, so do not add quotes.
1528 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1531 if cmp -s $cache_file confcache; then
1534 if test -w $cache_file; then
1535 echo "updating cache $cache_file"
1536 cat confcache > $cache_file
1538 echo "not updating unwritable cache $cache_file"
1543 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1545 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1546 # Let make expand exec_prefix.
1547 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1549 # Any assignment to VPATH causes Sun make to only execute
1550 # the first set of double-colon rules, so remove it if not needed.
1551 # If there is a colon in the path, we need to keep it.
1552 if test "x$srcdir" = x.; then
1553 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1556 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1558 DEFS=-DHAVE_CONFIG_H
1560 # Without the "./", some shells look in PATH for config.status.
1561 : ${CONFIG_STATUS=./config.status}
1563 echo creating $CONFIG_STATUS
1564 rm -f $CONFIG_STATUS
1565 cat > $CONFIG_STATUS <<EOF
1567 # Generated automatically by configure.
1568 # Run this file to recreate the current configuration.
1569 # This directory was configured as follows,
1570 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1572 # $0 $ac_configure_args
1574 # Compiler output produced by configure, useful for debugging
1575 # configure, is in ./config.log if it exists.
1577 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1580 case "\$ac_option" in
1581 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1582 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1583 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1584 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1585 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1587 -help | --help | --hel | --he | --h)
1588 echo "\$ac_cs_usage"; exit 0 ;;
1589 *) echo "\$ac_cs_usage"; exit 1 ;;
1593 ac_given_srcdir=$srcdir
1594 ac_given_INSTALL="$INSTALL"
1596 trap 'rm -fr `echo "config.mk support/include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1598 cat >> $CONFIG_STATUS <<EOF
1600 # Protect against being on the right side of a sed subst in config.status.
1601 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1602 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1606 s%@CFLAGS@%$CFLAGS%g
1607 s%@CPPFLAGS@%$CPPFLAGS%g
1608 s%@CXXFLAGS@%$CXXFLAGS%g
1609 s%@FFLAGS@%$FFLAGS%g
1611 s%@LDFLAGS@%$LDFLAGS%g
1613 s%@exec_prefix@%$exec_prefix%g
1614 s%@prefix@%$prefix%g
1615 s%@program_transform_name@%$program_transform_name%g
1616 s%@bindir@%$bindir%g
1617 s%@sbindir@%$sbindir%g
1618 s%@libexecdir@%$libexecdir%g
1619 s%@datadir@%$datadir%g
1620 s%@sysconfdir@%$sysconfdir%g
1621 s%@sharedstatedir@%$sharedstatedir%g
1622 s%@localstatedir@%$localstatedir%g
1623 s%@libdir@%$libdir%g
1624 s%@includedir@%$includedir%g
1625 s%@oldincludedir@%$oldincludedir%g
1626 s%@infodir@%$infodir%g
1627 s%@mandir@%$mandir%g
1628 s%@VERSION@%$VERSION%g
1629 s%@statedir@%$statedir%g
1630 s%@enable_nfsv3@%$enable_nfsv3%g
1631 s%@kprefix@%$kprefix%g
1632 s%@secure_statd@%$secure_statd%g
1636 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1637 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1638 s%@INSTALL_DATA@%$INSTALL_DATA%g
1639 s%@LIBSOCKET@%$LIBSOCKET%g
1640 s%@LIBNSL@%$LIBNSL%g
1641 s%@LIBCRYPT@%$LIBCRYPT%g
1642 s%@LIBBSD@%$LIBBSD%g
1647 cat >> $CONFIG_STATUS <<\EOF
1649 # Split the substitutions into bite-sized pieces for seds with
1650 # small command number limits, like on Digital OSF/1 and HP-UX.
1651 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1652 ac_file=1 # Number of current file.
1653 ac_beg=1 # First line for current file.
1654 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1657 while $ac_more_lines; do
1658 if test $ac_beg -gt 1; then
1659 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1661 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1663 if test ! -s conftest.s$ac_file; then
1665 rm -f conftest.s$ac_file
1667 if test -z "$ac_sed_cmds"; then
1668 ac_sed_cmds="sed -f conftest.s$ac_file"
1670 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1672 ac_file=`expr $ac_file + 1`
1674 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1677 if test -z "$ac_sed_cmds"; then
1682 cat >> $CONFIG_STATUS <<EOF
1684 CONFIG_FILES=\${CONFIG_FILES-"config.mk"}
1686 cat >> $CONFIG_STATUS <<\EOF
1687 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1688 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1690 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1691 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1692 *) ac_file_in="${ac_file}.in" ;;
1695 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1697 # Remove last slash and all that follows it. Not all systems have dirname.
1698 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1699 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1700 # The file is in a subdirectory.
1701 test ! -d "$ac_dir" && mkdir "$ac_dir"
1702 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1703 # A "../" for each directory in $ac_dir_suffix.
1704 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1706 ac_dir_suffix= ac_dots=
1709 case "$ac_given_srcdir" in
1711 if test -z "$ac_dots"; then top_srcdir=.
1712 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1713 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1715 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1716 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1719 case "$ac_given_INSTALL" in
1720 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1721 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1724 echo creating "$ac_file"
1726 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1728 *Makefile*) ac_comsub="1i\\
1729 # $configure_input" ;;
1733 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1735 s%@configure_input@%$configure_input%g
1736 s%@srcdir@%$srcdir%g
1737 s%@top_srcdir@%$top_srcdir%g
1738 s%@INSTALL@%$INSTALL%g
1739 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1743 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1744 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1746 # ac_d sets the value in "#define NAME VALUE" lines.
1747 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1748 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
1751 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1752 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1753 ac_uB='\([ ]\)%\1#\2define\3'
1756 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1757 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1758 ac_eB='$%\1#\2define\3'
1762 if test "${CONFIG_HEADERS+set}" != set; then
1764 cat >> $CONFIG_STATUS <<EOF
1765 CONFIG_HEADERS="support/include/config.h"
1767 cat >> $CONFIG_STATUS <<\EOF
1769 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1770 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1772 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1773 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1774 *) ac_file_in="${ac_file}.in" ;;
1777 echo creating $ac_file
1779 rm -f conftest.frag conftest.in conftest.out
1780 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1781 cat $ac_file_inputs > conftest.in
1785 # Transform confdefs.h into a sed script conftest.vals that substitutes
1786 # the proper values into config.h.in to produce config.h. And first:
1787 # Protect against being on the right side of a sed subst in config.status.
1788 # Protect against being in an unquoted here document in config.status.
1790 cat > conftest.hdr <<\EOF
1793 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1797 sed -n -f conftest.hdr confdefs.h > conftest.vals
1800 # This sed command replaces #undef with comments. This is necessary, for
1801 # example, in the case of _POSIX_SOURCE, which is predefined and required
1802 # on some systems where configure will not decide to define it.
1803 cat >> conftest.vals <<\EOF
1804 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1807 # Break up conftest.vals because some shells have a limit on
1808 # the size of here documents, and old seds have small limits too.
1813 ac_lines=`grep -c . conftest.vals`
1814 # grep -c gives empty output for an empty file on some AIX systems.
1815 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1816 # Write a limited-size here document to conftest.frag.
1817 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1818 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1820 sed -f conftest.frag conftest.in > conftest.out
1822 mv conftest.out conftest.in
1824 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1826 mv conftest.tail conftest.vals
1830 cat >> $CONFIG_STATUS <<\EOF
1831 rm -f conftest.frag conftest.h
1832 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1833 cat conftest.in >> conftest.h
1835 if cmp -s $ac_file conftest.h 2>/dev/null; then
1836 echo "$ac_file is unchanged"
1839 # Remove last slash and all that follows it. Not all systems have dirname.
1840 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1841 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1842 # The file is in a subdirectory.
1843 test ! -d "$ac_dir" && mkdir "$ac_dir"
1846 mv conftest.h $ac_file
1851 cat >> $CONFIG_STATUS <<EOF
1854 cat >> $CONFIG_STATUS <<\EOF
1858 chmod +x $CONFIG_STATUS
1859 rm -fr confdefs* $ac_clean_files
1860 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1