]> git.decadent.org.uk Git - nfs-utils.git/blob - configure
See Changelog
[nfs-utils.git] / configure
1 #! /bin/sh
2
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.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr
15 ac_help="$ac_help
16   --with-release=XXX      set release to XXX [1]"
17 ac_help="$ac_help
18   --with-statedir=/foo    use state dir /foo [/var/lib/nfs]"
19 ac_help="$ac_help
20   --enable-nfsv3          enable support for NFSv3"
21 ac_help="$ac_help
22   --enable-kprefix       install progs as rpc.knfsd etc"
23 ac_help="$ac_help
24   --enable-secure-statd  Only lockd can use statd (security)"
25 ac_help="$ac_help
26   --enable-rquotad          enable rquotad"
27
28 # Initialize some variables set by options.
29 # The variables have the same names as the options, with
30 # dashes changed to underlines.
31 build=NONE
32 cache_file=./config.cache
33 exec_prefix=NONE
34 host=NONE
35 no_create=
36 nonopt=NONE
37 no_recursion=
38 prefix=NONE
39 program_prefix=NONE
40 program_suffix=NONE
41 program_transform_name=s,x,x,
42 silent=
43 site=
44 srcdir=
45 target=NONE
46 verbose=
47 x_includes=NONE
48 x_libraries=NONE
49 bindir='${exec_prefix}/bin'
50 sbindir='${exec_prefix}/sbin'
51 libexecdir='${exec_prefix}/libexec'
52 datadir='${prefix}/share'
53 sysconfdir='${prefix}/etc'
54 sharedstatedir='${prefix}/com'
55 localstatedir='${prefix}/var'
56 libdir='${exec_prefix}/lib'
57 includedir='${prefix}/include'
58 oldincludedir='/usr/include'
59 infodir='${prefix}/info'
60 mandir='${prefix}/man'
61
62 # Initialize some other variables.
63 subdirs=
64 MFLAGS= MAKEFLAGS=
65 SHELL=${CONFIG_SHELL-/bin/sh}
66 # Maximum number of lines to put in a shell here document.
67 ac_max_here_lines=12
68
69 ac_prev=
70 for ac_option
71 do
72
73   # If the previous option needs an argument, assign it.
74   if test -n "$ac_prev"; then
75     eval "$ac_prev=\$ac_option"
76     ac_prev=
77     continue
78   fi
79
80   case "$ac_option" in
81   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
82   *) ac_optarg= ;;
83   esac
84
85   # Accept the important Cygnus configure options, so we can diagnose typos.
86
87   case "$ac_option" in
88
89   -bindir | --bindir | --bindi | --bind | --bin | --bi)
90     ac_prev=bindir ;;
91   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
92     bindir="$ac_optarg" ;;
93
94   -build | --build | --buil | --bui | --bu)
95     ac_prev=build ;;
96   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
97     build="$ac_optarg" ;;
98
99   -cache-file | --cache-file | --cache-fil | --cache-fi \
100   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
101     ac_prev=cache_file ;;
102   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
103   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
104     cache_file="$ac_optarg" ;;
105
106   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
107     ac_prev=datadir ;;
108   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
109   | --da=*)
110     datadir="$ac_optarg" ;;
111
112   -disable-* | --disable-*)
113     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
114     # Reject names that are not valid shell variable names.
115     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
116       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
117     fi
118     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
119     eval "enable_${ac_feature}=no" ;;
120
121   -enable-* | --enable-*)
122     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
123     # Reject names that are not valid shell variable names.
124     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
125       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
126     fi
127     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
128     case "$ac_option" in
129       *=*) ;;
130       *) ac_optarg=yes ;;
131     esac
132     eval "enable_${ac_feature}='$ac_optarg'" ;;
133
134   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
135   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
136   | --exec | --exe | --ex)
137     ac_prev=exec_prefix ;;
138   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
139   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
140   | --exec=* | --exe=* | --ex=*)
141     exec_prefix="$ac_optarg" ;;
142
143   -gas | --gas | --ga | --g)
144     # Obsolete; use --with-gas.
145     with_gas=yes ;;
146
147   -help | --help | --hel | --he)
148     # Omit some internal or obsolete options to make the list less imposing.
149     # This message is too long to be a string in the A/UX 3.1 sh.
150     cat << EOF
151 Usage: configure [options] [host]
152 Options: [defaults in brackets after descriptions]
153 Configuration:
154   --cache-file=FILE       cache test results in FILE
155   --help                  print this message
156   --no-create             do not create output files
157   --quiet, --silent       do not print \`checking...' messages
158   --version               print the version of autoconf that created configure
159 Directory and file names:
160   --prefix=PREFIX         install architecture-independent files in PREFIX
161                           [$ac_default_prefix]
162   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
163                           [same as prefix]
164   --bindir=DIR            user executables in DIR [EPREFIX/bin]
165   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
166   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
167   --datadir=DIR           read-only architecture-independent data in DIR
168                           [PREFIX/share]
169   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
170   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
171                           [PREFIX/com]
172   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
173   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
174   --includedir=DIR        C header files in DIR [PREFIX/include]
175   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
176   --infodir=DIR           info documentation in DIR [PREFIX/info]
177   --mandir=DIR            man documentation in DIR [PREFIX/man]
178   --srcdir=DIR            find the sources in DIR [configure dir or ..]
179   --program-prefix=PREFIX prepend PREFIX to installed program names
180   --program-suffix=SUFFIX append SUFFIX to installed program names
181   --program-transform-name=PROGRAM
182                           run sed PROGRAM on installed program names
183 EOF
184     cat << EOF
185 Host type:
186   --build=BUILD           configure for building on BUILD [BUILD=HOST]
187   --host=HOST             configure for HOST [guessed]
188   --target=TARGET         configure for TARGET [TARGET=HOST]
189 Features and packages:
190   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
191   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
192   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
193   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
194   --x-includes=DIR        X include files are in DIR
195   --x-libraries=DIR       X library files are in DIR
196 EOF
197     if test -n "$ac_help"; then
198       echo "--enable and --with options recognized:$ac_help"
199     fi
200     exit 0 ;;
201
202   -host | --host | --hos | --ho)
203     ac_prev=host ;;
204   -host=* | --host=* | --hos=* | --ho=*)
205     host="$ac_optarg" ;;
206
207   -includedir | --includedir | --includedi | --included | --include \
208   | --includ | --inclu | --incl | --inc)
209     ac_prev=includedir ;;
210   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
211   | --includ=* | --inclu=* | --incl=* | --inc=*)
212     includedir="$ac_optarg" ;;
213
214   -infodir | --infodir | --infodi | --infod | --info | --inf)
215     ac_prev=infodir ;;
216   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
217     infodir="$ac_optarg" ;;
218
219   -libdir | --libdir | --libdi | --libd)
220     ac_prev=libdir ;;
221   -libdir=* | --libdir=* | --libdi=* | --libd=*)
222     libdir="$ac_optarg" ;;
223
224   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
225   | --libexe | --libex | --libe)
226     ac_prev=libexecdir ;;
227   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
228   | --libexe=* | --libex=* | --libe=*)
229     libexecdir="$ac_optarg" ;;
230
231   -localstatedir | --localstatedir | --localstatedi | --localstated \
232   | --localstate | --localstat | --localsta | --localst \
233   | --locals | --local | --loca | --loc | --lo)
234     ac_prev=localstatedir ;;
235   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
236   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
237   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
238     localstatedir="$ac_optarg" ;;
239
240   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
241     ac_prev=mandir ;;
242   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
243     mandir="$ac_optarg" ;;
244
245   -nfp | --nfp | --nf)
246     # Obsolete; use --without-fp.
247     with_fp=no ;;
248
249   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
250   | --no-cr | --no-c)
251     no_create=yes ;;
252
253   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
254   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
255     no_recursion=yes ;;
256
257   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
258   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
259   | --oldin | --oldi | --old | --ol | --o)
260     ac_prev=oldincludedir ;;
261   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
262   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
263   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
264     oldincludedir="$ac_optarg" ;;
265
266   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
267     ac_prev=prefix ;;
268   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
269     prefix="$ac_optarg" ;;
270
271   -program-prefix | --program-prefix | --program-prefi | --program-pref \
272   | --program-pre | --program-pr | --program-p)
273     ac_prev=program_prefix ;;
274   -program-prefix=* | --program-prefix=* | --program-prefi=* \
275   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
276     program_prefix="$ac_optarg" ;;
277
278   -program-suffix | --program-suffix | --program-suffi | --program-suff \
279   | --program-suf | --program-su | --program-s)
280     ac_prev=program_suffix ;;
281   -program-suffix=* | --program-suffix=* | --program-suffi=* \
282   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
283     program_suffix="$ac_optarg" ;;
284
285   -program-transform-name | --program-transform-name \
286   | --program-transform-nam | --program-transform-na \
287   | --program-transform-n | --program-transform- \
288   | --program-transform | --program-transfor \
289   | --program-transfo | --program-transf \
290   | --program-trans | --program-tran \
291   | --progr-tra | --program-tr | --program-t)
292     ac_prev=program_transform_name ;;
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     program_transform_name="$ac_optarg" ;;
301
302   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
303   | -silent | --silent | --silen | --sile | --sil)
304     silent=yes ;;
305
306   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
307     ac_prev=sbindir ;;
308   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
309   | --sbi=* | --sb=*)
310     sbindir="$ac_optarg" ;;
311
312   -sharedstatedir | --sharedstatedir | --sharedstatedi \
313   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
314   | --sharedst | --shareds | --shared | --share | --shar \
315   | --sha | --sh)
316     ac_prev=sharedstatedir ;;
317   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
318   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
319   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
320   | --sha=* | --sh=*)
321     sharedstatedir="$ac_optarg" ;;
322
323   -site | --site | --sit)
324     ac_prev=site ;;
325   -site=* | --site=* | --sit=*)
326     site="$ac_optarg" ;;
327
328   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
329     ac_prev=srcdir ;;
330   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
331     srcdir="$ac_optarg" ;;
332
333   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
334   | --syscon | --sysco | --sysc | --sys | --sy)
335     ac_prev=sysconfdir ;;
336   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
337   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
338     sysconfdir="$ac_optarg" ;;
339
340   -target | --target | --targe | --targ | --tar | --ta | --t)
341     ac_prev=target ;;
342   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
343     target="$ac_optarg" ;;
344
345   -v | -verbose | --verbose | --verbos | --verbo | --verb)
346     verbose=yes ;;
347
348   -version | --version | --versio | --versi | --vers)
349     echo "configure generated by autoconf version 2.13"
350     exit 0 ;;
351
352   -with-* | --with-*)
353     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
354     # Reject names that are not valid shell variable names.
355     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
356       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
357     fi
358     ac_package=`echo $ac_package| sed 's/-/_/g'`
359     case "$ac_option" in
360       *=*) ;;
361       *) ac_optarg=yes ;;
362     esac
363     eval "with_${ac_package}='$ac_optarg'" ;;
364
365   -without-* | --without-*)
366     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
367     # Reject names that are not valid shell variable names.
368     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
369       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
370     fi
371     ac_package=`echo $ac_package| sed 's/-/_/g'`
372     eval "with_${ac_package}=no" ;;
373
374   --x)
375     # Obsolete; use --with-x.
376     with_x=yes ;;
377
378   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
379   | --x-incl | --x-inc | --x-in | --x-i)
380     ac_prev=x_includes ;;
381   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
382   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
383     x_includes="$ac_optarg" ;;
384
385   -x-libraries | --x-libraries | --x-librarie | --x-librari \
386   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
387     ac_prev=x_libraries ;;
388   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
389   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
390     x_libraries="$ac_optarg" ;;
391
392   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
393     ;;
394
395   *)
396     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
397       echo "configure: warning: $ac_option: invalid host type" 1>&2
398     fi
399     if test "x$nonopt" != xNONE; then
400       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
401     fi
402     nonopt="$ac_option"
403     ;;
404
405   esac
406 done
407
408 if test -n "$ac_prev"; then
409   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
410 fi
411
412 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
413
414 # File descriptor usage:
415 # 0 standard input
416 # 1 file creation
417 # 2 errors and warnings
418 # 3 some systems may open it to /dev/tty
419 # 4 used on the Kubota Titan
420 # 6 checking for... messages and results
421 # 5 compiler messages saved in config.log
422 if test "$silent" = yes; then
423   exec 6>/dev/null
424 else
425   exec 6>&1
426 fi
427 exec 5>./config.log
428
429 echo "\
430 This file contains any messages produced by compilers while
431 running configure, to aid debugging if configure makes a mistake.
432 " 1>&5
433
434 # Strip out --no-create and --no-recursion so they do not pile up.
435 # Also quote any args containing shell metacharacters.
436 ac_configure_args=
437 for ac_arg
438 do
439   case "$ac_arg" in
440   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
441   | --no-cr | --no-c) ;;
442   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
443   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
444   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
445   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
446   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
447   esac
448 done
449
450 # NLS nuisances.
451 # Only set these to C if already set.  These must not be set unconditionally
452 # because not all systems understand e.g. LANG=C (notably SCO).
453 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
454 # Non-C LC_CTYPE values break the ctype check.
455 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
456 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
457 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
458 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
459
460 # confdefs.h avoids OS command line length limits that DEFS can exceed.
461 rm -rf conftest* confdefs.h
462 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
463 echo > confdefs.h
464
465 # A filename unique to this package, relative to the directory that
466 # configure is in, which we can look for to find out if srcdir is correct.
467 ac_unique_file=rules.mk
468
469 # Find the source files, if location was not specified.
470 if test -z "$srcdir"; then
471   ac_srcdir_defaulted=yes
472   # Try the directory containing this script, then its parent.
473   ac_prog=$0
474   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
475   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
476   srcdir=$ac_confdir
477   if test ! -r $srcdir/$ac_unique_file; then
478     srcdir=..
479   fi
480 else
481   ac_srcdir_defaulted=no
482 fi
483 if test ! -r $srcdir/$ac_unique_file; then
484   if test "$ac_srcdir_defaulted" = yes; then
485     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
486   else
487     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
488   fi
489 fi
490 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
491
492 # Prefer explicitly selected file to automatically selected ones.
493 if test -z "$CONFIG_SITE"; then
494   if test "x$prefix" != xNONE; then
495     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
496   else
497     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
498   fi
499 fi
500 for ac_site_file in $CONFIG_SITE; do
501   if test -r "$ac_site_file"; then
502     echo "loading site script $ac_site_file"
503     . "$ac_site_file"
504   fi
505 done
506
507 if test -r "$cache_file"; then
508   echo "loading cache $cache_file"
509   . $cache_file
510 else
511   echo "creating cache $cache_file"
512   > $cache_file
513 fi
514
515 ac_ext=c
516 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
517 ac_cpp='$CPP $CPPFLAGS'
518 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
519 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
520 cross_compiling=$ac_cv_prog_cc_cross
521
522 ac_exeext=
523 ac_objext=o
524 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
525   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
526   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
527     ac_n= ac_c='
528 ' ac_t='        '
529   else
530     ac_n=-n ac_c= ac_t=
531   fi
532 else
533   ac_n= ac_c='\c' ac_t=
534 fi
535
536
537
538
539 # The nfs-utils version
540 VERSION="1.0.2"
541
542
543 # Check whether --with-release or --without-release was given.
544 if test "${with_release+set}" = set; then
545   withval="$with_release"
546   RELEASE=$withval
547 else
548   RELEASE=1
549 fi
550
551         
552 # Check whether --with-statedir or --without-statedir was given.
553 if test "${with_statedir+set}" = set; then
554   withval="$with_statedir"
555   statedir=$withval
556 else
557   statedir=/var/lib/nfs
558 fi
559
560         
561 # Check whether --enable-nfsv3 or --disable-nfsv3 was given.
562 if test "${enable_nfsv3+set}" = set; then
563   enableval="$enable_nfsv3"
564   enable_nfsv3=$enableval
565 else
566   enable_nfsv3=yes
567 fi
568
569         if test "$enable_nfsv3" = yes; then
570                 cat >> confdefs.h <<\EOF
571 #define NFS3_SUPPORTED 1
572 EOF
573
574         else
575                 enable_nfsv3=
576         fi
577         
578 # Check whether --enable-kprefix or --disable-kprefix was given.
579 if test "${enable_kprefix+set}" = set; then
580   enableval="$enable_kprefix"
581   test "$enableval" = "yes" && kprefix=k
582 else
583   kprefix=
584 fi
585
586         
587 # Check whether --enable-secure-statd or --disable-secure-statd was given.
588 if test "${enable_secure_statd+set}" = set; then
589   enableval="$enable_secure_statd"
590   test "$enableval" = "yes" && secure_statd=yes
591 else
592   secure_statd=no
593 fi
594
595         if test "$secure_statd" = yes; then
596                 cat >> confdefs.h <<\EOF
597 #define RESTRICTED_STATD 1
598 EOF
599
600         fi
601         
602 # Check whether --enable-rquotad or --disable-rquotad was given.
603 if test "${enable_rquotad+set}" = set; then
604   enableval="$enable_rquotad"
605   enable_rquotad=$enableval
606 else
607   enable_rquotad=yes
608 fi
609
610         if test "$enable_rquotad" = yes; then
611                 RQUOTAD=rquotad
612         else
613                 RQUOTAD=
614         fi
615         
616
617
618 # Extract the first word of "gcc", so it can be a program name with args.
619 set dummy gcc; ac_word=$2
620 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
621 echo "configure:622: checking for $ac_word" >&5
622 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
623   echo $ac_n "(cached) $ac_c" 1>&6
624 else
625   if test -n "$CC"; then
626   ac_cv_prog_CC="$CC" # Let the user override the test.
627 else
628   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
629   ac_dummy="$PATH"
630   for ac_dir in $ac_dummy; do
631     test -z "$ac_dir" && ac_dir=.
632     if test -f $ac_dir/$ac_word; then
633       ac_cv_prog_CC="gcc"
634       break
635     fi
636   done
637   IFS="$ac_save_ifs"
638 fi
639 fi
640 CC="$ac_cv_prog_CC"
641 if test -n "$CC"; then
642   echo "$ac_t""$CC" 1>&6
643 else
644   echo "$ac_t""no" 1>&6
645 fi
646
647 if test -z "$CC"; then
648   # Extract the first word of "cc", so it can be a program name with args.
649 set dummy cc; ac_word=$2
650 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
651 echo "configure:652: checking for $ac_word" >&5
652 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
653   echo $ac_n "(cached) $ac_c" 1>&6
654 else
655   if test -n "$CC"; then
656   ac_cv_prog_CC="$CC" # Let the user override the test.
657 else
658   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
659   ac_prog_rejected=no
660   ac_dummy="$PATH"
661   for ac_dir in $ac_dummy; do
662     test -z "$ac_dir" && ac_dir=.
663     if test -f $ac_dir/$ac_word; then
664       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
665         ac_prog_rejected=yes
666         continue
667       fi
668       ac_cv_prog_CC="cc"
669       break
670     fi
671   done
672   IFS="$ac_save_ifs"
673 if test $ac_prog_rejected = yes; then
674   # We found a bogon in the path, so make sure we never use it.
675   set dummy $ac_cv_prog_CC
676   shift
677   if test $# -gt 0; then
678     # We chose a different compiler from the bogus one.
679     # However, it has the same basename, so the bogon will be chosen
680     # first if we set CC to just the basename; use the full file name.
681     shift
682     set dummy "$ac_dir/$ac_word" "$@"
683     shift
684     ac_cv_prog_CC="$@"
685   fi
686 fi
687 fi
688 fi
689 CC="$ac_cv_prog_CC"
690 if test -n "$CC"; then
691   echo "$ac_t""$CC" 1>&6
692 else
693   echo "$ac_t""no" 1>&6
694 fi
695
696   if test -z "$CC"; then
697     case "`uname -s`" in
698     *win32* | *WIN32*)
699       # Extract the first word of "cl", so it can be a program name with args.
700 set dummy cl; ac_word=$2
701 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
702 echo "configure:703: checking for $ac_word" >&5
703 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
704   echo $ac_n "(cached) $ac_c" 1>&6
705 else
706   if test -n "$CC"; then
707   ac_cv_prog_CC="$CC" # Let the user override the test.
708 else
709   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
710   ac_dummy="$PATH"
711   for ac_dir in $ac_dummy; do
712     test -z "$ac_dir" && ac_dir=.
713     if test -f $ac_dir/$ac_word; then
714       ac_cv_prog_CC="cl"
715       break
716     fi
717   done
718   IFS="$ac_save_ifs"
719 fi
720 fi
721 CC="$ac_cv_prog_CC"
722 if test -n "$CC"; then
723   echo "$ac_t""$CC" 1>&6
724 else
725   echo "$ac_t""no" 1>&6
726 fi
727  ;;
728     esac
729   fi
730   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
731 fi
732
733 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
734 echo "configure:735: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
735
736 ac_ext=c
737 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
738 ac_cpp='$CPP $CPPFLAGS'
739 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
740 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
741 cross_compiling=$ac_cv_prog_cc_cross
742
743 cat > conftest.$ac_ext << EOF
744
745 #line 746 "configure"
746 #include "confdefs.h"
747
748 main(){return(0);}
749 EOF
750 if { (eval echo configure:751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
751   ac_cv_prog_cc_works=yes
752   # If we can't run a trivial program, we are probably using a cross compiler.
753   if (./conftest; exit) 2>/dev/null; then
754     ac_cv_prog_cc_cross=no
755   else
756     ac_cv_prog_cc_cross=yes
757   fi
758 else
759   echo "configure: failed program was:" >&5
760   cat conftest.$ac_ext >&5
761   ac_cv_prog_cc_works=no
762 fi
763 rm -fr conftest*
764 ac_ext=c
765 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
766 ac_cpp='$CPP $CPPFLAGS'
767 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
768 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
769 cross_compiling=$ac_cv_prog_cc_cross
770
771 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
772 if test $ac_cv_prog_cc_works = no; then
773   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
774 fi
775 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
776 echo "configure:777: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
777 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
778 cross_compiling=$ac_cv_prog_cc_cross
779
780 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
781 echo "configure:782: checking whether we are using GNU C" >&5
782 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
783   echo $ac_n "(cached) $ac_c" 1>&6
784 else
785   cat > conftest.c <<EOF
786 #ifdef __GNUC__
787   yes;
788 #endif
789 EOF
790 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
791   ac_cv_prog_gcc=yes
792 else
793   ac_cv_prog_gcc=no
794 fi
795 fi
796
797 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
798
799 if test $ac_cv_prog_gcc = yes; then
800   GCC=yes
801 else
802   GCC=
803 fi
804
805 ac_test_CFLAGS="${CFLAGS+set}"
806 ac_save_CFLAGS="$CFLAGS"
807 CFLAGS=
808 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
809 echo "configure:810: checking whether ${CC-cc} accepts -g" >&5
810 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
811   echo $ac_n "(cached) $ac_c" 1>&6
812 else
813   echo 'void f(){}' > conftest.c
814 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
815   ac_cv_prog_cc_g=yes
816 else
817   ac_cv_prog_cc_g=no
818 fi
819 rm -f conftest*
820
821 fi
822
823 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
824 if test "$ac_test_CFLAGS" = set; then
825   CFLAGS="$ac_save_CFLAGS"
826 elif test $ac_cv_prog_cc_g = yes; then
827   if test "$GCC" = yes; then
828     CFLAGS="-g -O2"
829   else
830     CFLAGS="-g"
831   fi
832 else
833   if test "$GCC" = yes; then
834     CFLAGS="-O2"
835   else
836     CFLAGS=
837   fi
838 fi
839
840 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
841 echo "configure:842: checking how to run the C preprocessor" >&5
842 # On Suns, sometimes $CPP names a directory.
843 if test -n "$CPP" && test -d "$CPP"; then
844   CPP=
845 fi
846 if test -z "$CPP"; then
847 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
848   echo $ac_n "(cached) $ac_c" 1>&6
849 else
850     # This must be in double quotes, not single quotes, because CPP may get
851   # substituted into the Makefile and "${CC-cc}" will confuse make.
852   CPP="${CC-cc} -E"
853   # On the NeXT, cc -E runs the code through the compiler's parser,
854   # not just through cpp.
855   cat > conftest.$ac_ext <<EOF
856 #line 857 "configure"
857 #include "confdefs.h"
858 #include <assert.h>
859 Syntax Error
860 EOF
861 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
862 { (eval echo configure:863: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
863 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
864 if test -z "$ac_err"; then
865   :
866 else
867   echo "$ac_err" >&5
868   echo "configure: failed program was:" >&5
869   cat conftest.$ac_ext >&5
870   rm -rf conftest*
871   CPP="${CC-cc} -E -traditional-cpp"
872   cat > conftest.$ac_ext <<EOF
873 #line 874 "configure"
874 #include "confdefs.h"
875 #include <assert.h>
876 Syntax Error
877 EOF
878 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
879 { (eval echo configure:880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
880 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
881 if test -z "$ac_err"; then
882   :
883 else
884   echo "$ac_err" >&5
885   echo "configure: failed program was:" >&5
886   cat conftest.$ac_ext >&5
887   rm -rf conftest*
888   CPP="${CC-cc} -nologo -E"
889   cat > conftest.$ac_ext <<EOF
890 #line 891 "configure"
891 #include "confdefs.h"
892 #include <assert.h>
893 Syntax Error
894 EOF
895 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
896 { (eval echo configure:897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
897 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
898 if test -z "$ac_err"; then
899   :
900 else
901   echo "$ac_err" >&5
902   echo "configure: failed program was:" >&5
903   cat conftest.$ac_ext >&5
904   rm -rf conftest*
905   CPP=/lib/cpp
906 fi
907 rm -f conftest*
908 fi
909 rm -f conftest*
910 fi
911 rm -f conftest*
912   ac_cv_prog_CPP="$CPP"
913 fi
914   CPP="$ac_cv_prog_CPP"
915 else
916   ac_cv_prog_CPP="$CPP"
917 fi
918 echo "$ac_t""$CPP" 1>&6
919
920 ac_aux_dir=
921 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
922   if test -f $ac_dir/install-sh; then
923     ac_aux_dir=$ac_dir
924     ac_install_sh="$ac_aux_dir/install-sh -c"
925     break
926   elif test -f $ac_dir/install.sh; then
927     ac_aux_dir=$ac_dir
928     ac_install_sh="$ac_aux_dir/install.sh -c"
929     break
930   fi
931 done
932 if test -z "$ac_aux_dir"; then
933   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
934 fi
935 ac_config_guess=$ac_aux_dir/config.guess
936 ac_config_sub=$ac_aux_dir/config.sub
937 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
938
939 # Find a good install program.  We prefer a C program (faster),
940 # so one script is as good as another.  But avoid the broken or
941 # incompatible versions:
942 # SysV /etc/install, /usr/sbin/install
943 # SunOS /usr/etc/install
944 # IRIX /sbin/install
945 # AIX /bin/install
946 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
947 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
948 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
949 # ./install, which can be erroneously created by make from ./install.sh.
950 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
951 echo "configure:952: checking for a BSD compatible install" >&5
952 if test -z "$INSTALL"; then
953 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
954   echo $ac_n "(cached) $ac_c" 1>&6
955 else
956     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
957   for ac_dir in $PATH; do
958     # Account for people who put trailing slashes in PATH elements.
959     case "$ac_dir/" in
960     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
961     *)
962       # OSF1 and SCO ODT 3.0 have their own names for install.
963       # Don't use installbsd from OSF since it installs stuff as root
964       # by default.
965       for ac_prog in ginstall scoinst install; do
966         if test -f $ac_dir/$ac_prog; then
967           if test $ac_prog = install &&
968             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
969             # AIX install.  It has an incompatible calling convention.
970             :
971           else
972             ac_cv_path_install="$ac_dir/$ac_prog -c"
973             break 2
974           fi
975         fi
976       done
977       ;;
978     esac
979   done
980   IFS="$ac_save_IFS"
981
982 fi
983   if test "${ac_cv_path_install+set}" = set; then
984     INSTALL="$ac_cv_path_install"
985   else
986     # As a last resort, use the slow shell script.  We don't cache a
987     # path for INSTALL within a source directory, because that will
988     # break other packages using the cache if that directory is
989     # removed, or if the path is relative.
990     INSTALL="$ac_install_sh"
991   fi
992 fi
993 echo "$ac_t""$INSTALL" 1>&6
994
995 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
996 # It thinks the first close brace ends the variable substitution.
997 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
998
999 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1000
1001 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1002
1003
1004 test "${CC_FOR_BUILD+set}" = set || CC_FOR_BUILD="$CC"
1005
1006
1007
1008 # Make sure we can run config.sub.
1009 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1010 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1011 fi
1012
1013 echo $ac_n "checking host system type""... $ac_c" 1>&6
1014 echo "configure:1015: checking host system type" >&5
1015
1016 host_alias=$host
1017 case "$host_alias" in
1018 NONE)
1019   case $nonopt in
1020   NONE)
1021     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1022     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1023     fi ;;
1024   *) host_alias=$nonopt ;;
1025   esac ;;
1026 esac
1027
1028 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1029 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1030 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1031 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1032 echo "$ac_t""$host" 1>&6
1033
1034 echo $ac_n "checking build system type""... $ac_c" 1>&6
1035 echo "configure:1036: checking build system type" >&5
1036
1037 build_alias=$build
1038 case "$build_alias" in
1039 NONE)
1040   case $nonopt in
1041   NONE) build_alias=$host_alias ;;
1042   *) build_alias=$nonopt ;;
1043   esac ;;
1044 esac
1045
1046 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1047 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1048 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1049 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1050 echo "$ac_t""$build" 1>&6
1051
1052 if test $host != $build; then
1053   ac_tool_prefix=${host_alias}-
1054 else
1055   ac_tool_prefix=
1056 fi
1057
1058 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1059 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1060 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1061 echo "configure:1062: checking for $ac_word" >&5
1062 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1063   echo $ac_n "(cached) $ac_c" 1>&6
1064 else
1065   if test -n "$RANLIB"; then
1066   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1067 else
1068   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1069   ac_dummy="$PATH"
1070   for ac_dir in $ac_dummy; do
1071     test -z "$ac_dir" && ac_dir=.
1072     if test -f $ac_dir/$ac_word; then
1073       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1074       break
1075     fi
1076   done
1077   IFS="$ac_save_ifs"
1078 fi
1079 fi
1080 RANLIB="$ac_cv_prog_RANLIB"
1081 if test -n "$RANLIB"; then
1082   echo "$ac_t""$RANLIB" 1>&6
1083 else
1084   echo "$ac_t""no" 1>&6
1085 fi
1086
1087
1088 if test -z "$ac_cv_prog_RANLIB"; then
1089 if test -n "$ac_tool_prefix"; then
1090   # Extract the first word of "ranlib", so it can be a program name with args.
1091 set dummy ranlib; ac_word=$2
1092 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1093 echo "configure:1094: checking for $ac_word" >&5
1094 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1095   echo $ac_n "(cached) $ac_c" 1>&6
1096 else
1097   if test -n "$RANLIB"; then
1098   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1099 else
1100   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1101   ac_dummy="$PATH"
1102   for ac_dir in $ac_dummy; do
1103     test -z "$ac_dir" && ac_dir=.
1104     if test -f $ac_dir/$ac_word; then
1105       ac_cv_prog_RANLIB="ranlib"
1106       break
1107     fi
1108   done
1109   IFS="$ac_save_ifs"
1110   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1111 fi
1112 fi
1113 RANLIB="$ac_cv_prog_RANLIB"
1114 if test -n "$RANLIB"; then
1115   echo "$ac_t""$RANLIB" 1>&6
1116 else
1117   echo "$ac_t""no" 1>&6
1118 fi
1119
1120 else
1121   RANLIB=":"
1122 fi
1123 fi
1124
1125 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1126 set dummy ${ac_tool_prefix}ar; ac_word=$2
1127 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1128 echo "configure:1129: checking for $ac_word" >&5
1129 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1130   echo $ac_n "(cached) $ac_c" 1>&6
1131 else
1132   if test -n "$AR"; then
1133   ac_cv_prog_AR="$AR" # Let the user override the test.
1134 else
1135   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1136   ac_dummy="$PATH"
1137   for ac_dir in $ac_dummy; do
1138     test -z "$ac_dir" && ac_dir=.
1139     if test -f $ac_dir/$ac_word; then
1140       ac_cv_prog_AR="${ac_tool_prefix}ar"
1141       break
1142     fi
1143   done
1144   IFS="$ac_save_ifs"
1145   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1146 fi
1147 fi
1148 AR="$ac_cv_prog_AR"
1149 if test -n "$AR"; then
1150   echo "$ac_t""$AR" 1>&6
1151 else
1152   echo "$ac_t""no" 1>&6
1153 fi
1154
1155
1156
1157 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
1158 set dummy ${ac_tool_prefix}ld; ac_word=$2
1159 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1160 echo "configure:1161: checking for $ac_word" >&5
1161 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
1162   echo $ac_n "(cached) $ac_c" 1>&6
1163 else
1164   if test -n "$LD"; then
1165   ac_cv_prog_LD="$LD" # Let the user override the test.
1166 else
1167   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1168   ac_dummy="$PATH"
1169   for ac_dir in $ac_dummy; do
1170     test -z "$ac_dir" && ac_dir=.
1171     if test -f $ac_dir/$ac_word; then
1172       ac_cv_prog_LD="${ac_tool_prefix}ld"
1173       break
1174     fi
1175   done
1176   IFS="$ac_save_ifs"
1177   test -z "$ac_cv_prog_LD" && ac_cv_prog_LD="ld"
1178 fi
1179 fi
1180 LD="$ac_cv_prog_LD"
1181 if test -n "$LD"; then
1182   echo "$ac_t""$LD" 1>&6
1183 else
1184   echo "$ac_t""no" 1>&6
1185 fi
1186
1187
1188
1189
1190 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1191 echo "configure:1192: checking for ANSI C header files" >&5
1192 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1193   echo $ac_n "(cached) $ac_c" 1>&6
1194 else
1195   cat > conftest.$ac_ext <<EOF
1196 #line 1197 "configure"
1197 #include "confdefs.h"
1198 #include <stdlib.h>
1199 #include <stdarg.h>
1200 #include <string.h>
1201 #include <float.h>
1202 EOF
1203 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1204 { (eval echo configure:1205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1205 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1206 if test -z "$ac_err"; then
1207   rm -rf conftest*
1208   ac_cv_header_stdc=yes
1209 else
1210   echo "$ac_err" >&5
1211   echo "configure: failed program was:" >&5
1212   cat conftest.$ac_ext >&5
1213   rm -rf conftest*
1214   ac_cv_header_stdc=no
1215 fi
1216 rm -f conftest*
1217
1218 if test $ac_cv_header_stdc = yes; then
1219   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1220 cat > conftest.$ac_ext <<EOF
1221 #line 1222 "configure"
1222 #include "confdefs.h"
1223 #include <string.h>
1224 EOF
1225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1226   egrep "memchr" >/dev/null 2>&1; then
1227   :
1228 else
1229   rm -rf conftest*
1230   ac_cv_header_stdc=no
1231 fi
1232 rm -f conftest*
1233
1234 fi
1235
1236 if test $ac_cv_header_stdc = yes; then
1237   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1238 cat > conftest.$ac_ext <<EOF
1239 #line 1240 "configure"
1240 #include "confdefs.h"
1241 #include <stdlib.h>
1242 EOF
1243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1244   egrep "free" >/dev/null 2>&1; then
1245   :
1246 else
1247   rm -rf conftest*
1248   ac_cv_header_stdc=no
1249 fi
1250 rm -f conftest*
1251
1252 fi
1253
1254 if test $ac_cv_header_stdc = yes; then
1255   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1256 if test "$cross_compiling" = yes; then
1257   :
1258 else
1259   cat > conftest.$ac_ext <<EOF
1260 #line 1261 "configure"
1261 #include "confdefs.h"
1262 #include <ctype.h>
1263 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1264 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1265 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1266 int main () { int i; for (i = 0; i < 256; i++)
1267 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1268 exit (0); }
1269
1270 EOF
1271 if { (eval echo configure:1272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1272 then
1273   :
1274 else
1275   echo "configure: failed program was:" >&5
1276   cat conftest.$ac_ext >&5
1277   rm -fr conftest*
1278   ac_cv_header_stdc=no
1279 fi
1280 rm -fr conftest*
1281 fi
1282
1283 fi
1284 fi
1285
1286 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1287 if test $ac_cv_header_stdc = yes; then
1288   cat >> confdefs.h <<\EOF
1289 #define STDC_HEADERS 1
1290 EOF
1291
1292 fi
1293
1294 echo $ac_n "checking for GNU libc2""... $ac_c" 1>&6
1295 echo "configure:1296: checking for GNU libc2" >&5
1296   if eval "test \"`echo '$''{'knfsd_cv_glibc2'+set}'`\" = set"; then
1297   echo $ac_n "(cached) $ac_c" 1>&6
1298 else
1299   cat > conftest.$ac_ext <<EOF
1300 #line 1301 "configure"
1301 #include "confdefs.h"
1302
1303       #include <features.h>
1304       #if !defined(__GLIBC__)
1305       # error Nope
1306       #endif
1307 EOF
1308 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1309 { (eval echo configure:1310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1310 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1311 if test -z "$ac_err"; then
1312   rm -rf conftest*
1313   knfsd_cv_glibc2=yes
1314 else
1315   echo "$ac_err" >&5
1316   echo "configure: failed program was:" >&5
1317   cat conftest.$ac_ext >&5
1318   rm -rf conftest*
1319   knfsd_cv_glibc2=no
1320 fi
1321 rm -f conftest*
1322 fi
1323
1324   echo "$ac_t""$knfsd_cv_glibc2" 1>&6
1325   if test $knfsd_cv_glibc2 = yes; then
1326     CFLAGS="$CFLAGS -D_GNU_SOURCE"
1327     CXXFLAGS="$CXXFLAGS -D_GNU_SOURCE"
1328   fi
1329
1330
1331 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
1332 echo "configure:1333: checking for main in -lsocket" >&5
1333 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
1334 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1335   echo $ac_n "(cached) $ac_c" 1>&6
1336 else
1337   ac_save_LIBS="$LIBS"
1338 LIBS="-lsocket  $LIBS"
1339 cat > conftest.$ac_ext <<EOF
1340 #line 1341 "configure"
1341 #include "confdefs.h"
1342
1343 int main() {
1344 main()
1345 ; return 0; }
1346 EOF
1347 if { (eval echo configure:1348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1348   rm -rf conftest*
1349   eval "ac_cv_lib_$ac_lib_var=yes"
1350 else
1351   echo "configure: failed program was:" >&5
1352   cat conftest.$ac_ext >&5
1353   rm -rf conftest*
1354   eval "ac_cv_lib_$ac_lib_var=no"
1355 fi
1356 rm -f conftest*
1357 LIBS="$ac_save_LIBS"
1358
1359 fi
1360 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1361   echo "$ac_t""yes" 1>&6
1362   LIBSOCKET="-lnsl"
1363 else
1364   echo "$ac_t""no" 1>&6
1365 fi
1366
1367 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
1368 echo "configure:1369: checking for main in -lnsl" >&5
1369 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
1370 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1371   echo $ac_n "(cached) $ac_c" 1>&6
1372 else
1373   ac_save_LIBS="$LIBS"
1374 LIBS="-lnsl  $LIBS"
1375 cat > conftest.$ac_ext <<EOF
1376 #line 1377 "configure"
1377 #include "confdefs.h"
1378
1379 int main() {
1380 main()
1381 ; return 0; }
1382 EOF
1383 if { (eval echo configure:1384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1384   rm -rf conftest*
1385   eval "ac_cv_lib_$ac_lib_var=yes"
1386 else
1387   echo "configure: failed program was:" >&5
1388   cat conftest.$ac_ext >&5
1389   rm -rf conftest*
1390   eval "ac_cv_lib_$ac_lib_var=no"
1391 fi
1392 rm -f conftest*
1393 LIBS="$ac_save_LIBS"
1394
1395 fi
1396 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1397   echo "$ac_t""yes" 1>&6
1398   LIBNSL="-lnsl"
1399 else
1400   echo "$ac_t""no" 1>&6
1401 fi
1402
1403 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
1404 echo "configure:1405: checking for crypt in -lcrypt" >&5
1405 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
1406 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1407   echo $ac_n "(cached) $ac_c" 1>&6
1408 else
1409   ac_save_LIBS="$LIBS"
1410 LIBS="-lcrypt  $LIBS"
1411 cat > conftest.$ac_ext <<EOF
1412 #line 1413 "configure"
1413 #include "confdefs.h"
1414 /* Override any gcc2 internal prototype to avoid an error.  */
1415 /* We use char because int might match the return type of a gcc2
1416     builtin and then its argument prototype would still apply.  */
1417 char crypt();
1418
1419 int main() {
1420 crypt()
1421 ; return 0; }
1422 EOF
1423 if { (eval echo configure:1424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1424   rm -rf conftest*
1425   eval "ac_cv_lib_$ac_lib_var=yes"
1426 else
1427   echo "configure: failed program was:" >&5
1428   cat conftest.$ac_ext >&5
1429   rm -rf conftest*
1430   eval "ac_cv_lib_$ac_lib_var=no"
1431 fi
1432 rm -f conftest*
1433 LIBS="$ac_save_LIBS"
1434
1435 fi
1436 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1437   echo "$ac_t""yes" 1>&6
1438   LIBCRYPT="-lcrypt"
1439 else
1440   echo "$ac_t""no" 1>&6
1441 fi
1442
1443 if test "$knfsd_cv_glibc2" = no; then
1444     echo $ac_n "checking for daemon in -lbsd""... $ac_c" 1>&6
1445 echo "configure:1446: checking for daemon in -lbsd" >&5
1446 ac_lib_var=`echo bsd'_'daemon | sed 'y%./+-%__p_%'`
1447 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1448   echo $ac_n "(cached) $ac_c" 1>&6
1449 else
1450   ac_save_LIBS="$LIBS"
1451 LIBS="-lbsd  $LIBS"
1452 cat > conftest.$ac_ext <<EOF
1453 #line 1454 "configure"
1454 #include "confdefs.h"
1455 /* Override any gcc2 internal prototype to avoid an error.  */
1456 /* We use char because int might match the return type of a gcc2
1457     builtin and then its argument prototype would still apply.  */
1458 char daemon();
1459
1460 int main() {
1461 daemon()
1462 ; return 0; }
1463 EOF
1464 if { (eval echo configure:1465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1465   rm -rf conftest*
1466   eval "ac_cv_lib_$ac_lib_var=yes"
1467 else
1468   echo "configure: failed program was:" >&5
1469   cat conftest.$ac_ext >&5
1470   rm -rf conftest*
1471   eval "ac_cv_lib_$ac_lib_var=no"
1472 fi
1473 rm -f conftest*
1474 LIBS="$ac_save_LIBS"
1475
1476 fi
1477 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1478   echo "$ac_t""yes" 1>&6
1479   LIBBSD="-lbsd"
1480 else
1481   echo "$ac_t""no" 1>&6
1482 fi
1483
1484 fi
1485
1486
1487
1488
1489
1490 echo $ac_n "checking for the tcp wrapper library""... $ac_c" 1>&6
1491 echo "configure:1492: checking for the tcp wrapper library" >&5
1492   if eval "test \"`echo '$''{'knfsd_cv_tcp_wrapper'+set}'`\" = set"; then
1493   echo $ac_n "(cached) $ac_c" 1>&6
1494 else
1495   old_LIBS="$LIBS"
1496    LIBS="$LIBS -lwrap $LIBNSL"
1497    cat > conftest.$ac_ext <<EOF
1498 #line 1499 "configure"
1499 #include "confdefs.h"
1500
1501       int deny_severity = 0;
1502       int allow_severity = 0;
1503 int main() {
1504 return hosts_ctl ("nfsd", "", "")
1505 ; return 0; }
1506 EOF
1507 if { (eval echo configure:1508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1508   rm -rf conftest*
1509   knfsd_cv_tcp_wrapper=yes
1510 else
1511   echo "configure: failed program was:" >&5
1512   cat conftest.$ac_ext >&5
1513   rm -rf conftest*
1514   knfsd_cv_tcp_wrapper=no
1515 fi
1516 rm -f conftest*
1517    LIBS="$old_LIBS"
1518 fi
1519
1520   echo "$ac_t""$knfsd_cv_tcp_wrapper" 1>&6
1521   if test "$knfsd_cv_tcp_wrapper" = yes; then
1522     CFLAGS="$CFLAGS -DHAVE_TCP_WRAPPER"
1523     CXXFLAGS="$CXXFLAGS -DHAVE_TCP_WRAPPER"
1524     LIBWRAP="-lwrap"
1525   fi
1526
1527
1528
1529
1530 for ac_func in innetgr
1531 do
1532 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1533 echo "configure:1534: checking for $ac_func" >&5
1534 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1535   echo $ac_n "(cached) $ac_c" 1>&6
1536 else
1537   cat > conftest.$ac_ext <<EOF
1538 #line 1539 "configure"
1539 #include "confdefs.h"
1540 /* System header to define __stub macros and hopefully few prototypes,
1541     which can conflict with char $ac_func(); below.  */
1542 #include <assert.h>
1543 /* Override any gcc2 internal prototype to avoid an error.  */
1544 /* We use char because int might match the return type of a gcc2
1545     builtin and then its argument prototype would still apply.  */
1546 char $ac_func();
1547
1548 int main() {
1549
1550 /* The GNU C library defines this for functions which it implements
1551     to always fail with ENOSYS.  Some functions are actually named
1552     something starting with __ and the normal name is an alias.  */
1553 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1554 choke me
1555 #else
1556 $ac_func();
1557 #endif
1558
1559 ; return 0; }
1560 EOF
1561 if { (eval echo configure:1562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1562   rm -rf conftest*
1563   eval "ac_cv_func_$ac_func=yes"
1564 else
1565   echo "configure: failed program was:" >&5
1566   cat conftest.$ac_ext >&5
1567   rm -rf conftest*
1568   eval "ac_cv_func_$ac_func=no"
1569 fi
1570 rm -f conftest*
1571 fi
1572
1573 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1574   echo "$ac_t""yes" 1>&6
1575     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1576   cat >> confdefs.h <<EOF
1577 #define $ac_tr_func 1
1578 EOF
1579  
1580 else
1581   echo "$ac_t""no" 1>&6
1582 fi
1583 done
1584
1585
1586 cat >> confdefs.h <<EOF
1587 #define NFS_STATEDIR "$statedir"
1588 EOF
1589
1590
1591
1592
1593
1594 trap '' 1 2 15
1595 cat > confcache <<\EOF
1596 # This file is a shell script that caches the results of configure
1597 # tests run on this system so they can be shared between configure
1598 # scripts and configure runs.  It is not useful on other systems.
1599 # If it contains results you don't want to keep, you may remove or edit it.
1600 #
1601 # By default, configure uses ./config.cache as the cache file,
1602 # creating it if it does not exist already.  You can give configure
1603 # the --cache-file=FILE option to use a different cache file; that is
1604 # what configure does when it calls configure scripts in
1605 # subdirectories, so they share the cache.
1606 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1607 # config.status only pays attention to the cache file if you give it the
1608 # --recheck option to rerun configure.
1609 #
1610 EOF
1611 # The following way of writing the cache mishandles newlines in values,
1612 # but we know of no workaround that is simple, portable, and efficient.
1613 # So, don't put newlines in cache variables' values.
1614 # Ultrix sh set writes to stderr and can't be redirected directly,
1615 # and sets the high bit in the cache file unless we assign to the vars.
1616 (set) 2>&1 |
1617   case `(ac_space=' '; set | grep ac_space) 2>&1` in
1618   *ac_space=\ *)
1619     # `set' does not quote correctly, so add quotes (double-quote substitution
1620     # turns \\\\ into \\, and sed turns \\ into \).
1621     sed -n \
1622       -e "s/'/'\\\\''/g" \
1623       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1624     ;;
1625   *)
1626     # `set' quotes correctly as required by POSIX, so do not add quotes.
1627     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1628     ;;
1629   esac >> confcache
1630 if cmp -s $cache_file confcache; then
1631   :
1632 else
1633   if test -w $cache_file; then
1634     echo "updating cache $cache_file"
1635     cat confcache > $cache_file
1636   else
1637     echo "not updating unwritable cache $cache_file"
1638   fi
1639 fi
1640 rm -f confcache
1641
1642 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1643
1644 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1645 # Let make expand exec_prefix.
1646 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1647
1648 # Any assignment to VPATH causes Sun make to only execute
1649 # the first set of double-colon rules, so remove it if not needed.
1650 # If there is a colon in the path, we need to keep it.
1651 if test "x$srcdir" = x.; then
1652   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1653 fi
1654
1655 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1656
1657 DEFS=-DHAVE_CONFIG_H
1658
1659 # Without the "./", some shells look in PATH for config.status.
1660 : ${CONFIG_STATUS=./config.status}
1661
1662 echo creating $CONFIG_STATUS
1663 rm -f $CONFIG_STATUS
1664 cat > $CONFIG_STATUS <<EOF
1665 #! /bin/sh
1666 # Generated automatically by configure.
1667 # Run this file to recreate the current configuration.
1668 # This directory was configured as follows,
1669 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1670 #
1671 # $0 $ac_configure_args
1672 #
1673 # Compiler output produced by configure, useful for debugging
1674 # configure, is in ./config.log if it exists.
1675
1676 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1677 for ac_option
1678 do
1679   case "\$ac_option" in
1680   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1681     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1682     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1683   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1684     echo "$CONFIG_STATUS generated by autoconf version 2.13"
1685     exit 0 ;;
1686   -help | --help | --hel | --he | --h)
1687     echo "\$ac_cs_usage"; exit 0 ;;
1688   *) echo "\$ac_cs_usage"; exit 1 ;;
1689   esac
1690 done
1691
1692 ac_given_srcdir=$srcdir
1693 ac_given_INSTALL="$INSTALL"
1694
1695 trap 'rm -fr `echo "config.mk nfs-utils.spec utils/Makefile support/include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1696 EOF
1697 cat >> $CONFIG_STATUS <<EOF
1698
1699 # Protect against being on the right side of a sed subst in config.status.
1700 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1701  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1702 $ac_vpsub
1703 $extrasub
1704 s%@SHELL@%$SHELL%g
1705 s%@CFLAGS@%$CFLAGS%g
1706 s%@CPPFLAGS@%$CPPFLAGS%g
1707 s%@CXXFLAGS@%$CXXFLAGS%g
1708 s%@FFLAGS@%$FFLAGS%g
1709 s%@DEFS@%$DEFS%g
1710 s%@LDFLAGS@%$LDFLAGS%g
1711 s%@LIBS@%$LIBS%g
1712 s%@exec_prefix@%$exec_prefix%g
1713 s%@prefix@%$prefix%g
1714 s%@program_transform_name@%$program_transform_name%g
1715 s%@bindir@%$bindir%g
1716 s%@sbindir@%$sbindir%g
1717 s%@libexecdir@%$libexecdir%g
1718 s%@datadir@%$datadir%g
1719 s%@sysconfdir@%$sysconfdir%g
1720 s%@sharedstatedir@%$sharedstatedir%g
1721 s%@localstatedir@%$localstatedir%g
1722 s%@libdir@%$libdir%g
1723 s%@includedir@%$includedir%g
1724 s%@oldincludedir@%$oldincludedir%g
1725 s%@infodir@%$infodir%g
1726 s%@mandir@%$mandir%g
1727 s%@VERSION@%$VERSION%g
1728 s%@RELEASE@%$RELEASE%g
1729 s%@statedir@%$statedir%g
1730 s%@enable_nfsv3@%$enable_nfsv3%g
1731 s%@kprefix@%$kprefix%g
1732 s%@secure_statd@%$secure_statd%g
1733 s%@RQUOTAD@%$RQUOTAD%g
1734 s%@CC@%$CC%g
1735 s%@CPP@%$CPP%g
1736 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1737 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1738 s%@INSTALL_DATA@%$INSTALL_DATA%g
1739 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
1740 s%@host@%$host%g
1741 s%@host_alias@%$host_alias%g
1742 s%@host_cpu@%$host_cpu%g
1743 s%@host_vendor@%$host_vendor%g
1744 s%@host_os@%$host_os%g
1745 s%@build@%$build%g
1746 s%@build_alias@%$build_alias%g
1747 s%@build_cpu@%$build_cpu%g
1748 s%@build_vendor@%$build_vendor%g
1749 s%@build_os@%$build_os%g
1750 s%@RANLIB@%$RANLIB%g
1751 s%@AR@%$AR%g
1752 s%@LD@%$LD%g
1753 s%@LIBSOCKET@%$LIBSOCKET%g
1754 s%@LIBNSL@%$LIBNSL%g
1755 s%@LIBCRYPT@%$LIBCRYPT%g
1756 s%@LIBBSD@%$LIBBSD%g
1757 s%@LIBWRAP@%$LIBWRAP%g
1758
1759 CEOF
1760 EOF
1761
1762 cat >> $CONFIG_STATUS <<\EOF
1763
1764 # Split the substitutions into bite-sized pieces for seds with
1765 # small command number limits, like on Digital OSF/1 and HP-UX.
1766 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1767 ac_file=1 # Number of current file.
1768 ac_beg=1 # First line for current file.
1769 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1770 ac_more_lines=:
1771 ac_sed_cmds=""
1772 while $ac_more_lines; do
1773   if test $ac_beg -gt 1; then
1774     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1775   else
1776     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1777   fi
1778   if test ! -s conftest.s$ac_file; then
1779     ac_more_lines=false
1780     rm -f conftest.s$ac_file
1781   else
1782     if test -z "$ac_sed_cmds"; then
1783       ac_sed_cmds="sed -f conftest.s$ac_file"
1784     else
1785       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1786     fi
1787     ac_file=`expr $ac_file + 1`
1788     ac_beg=$ac_end
1789     ac_end=`expr $ac_end + $ac_max_sed_cmds`
1790   fi
1791 done
1792 if test -z "$ac_sed_cmds"; then
1793   ac_sed_cmds=cat
1794 fi
1795 EOF
1796
1797 cat >> $CONFIG_STATUS <<EOF
1798
1799 CONFIG_FILES=\${CONFIG_FILES-"config.mk nfs-utils.spec utils/Makefile"}
1800 EOF
1801 cat >> $CONFIG_STATUS <<\EOF
1802 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1803   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1804   case "$ac_file" in
1805   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1806        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1807   *) ac_file_in="${ac_file}.in" ;;
1808   esac
1809
1810   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1811
1812   # Remove last slash and all that follows it.  Not all systems have dirname.
1813   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1814   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1815     # The file is in a subdirectory.
1816     test ! -d "$ac_dir" && mkdir "$ac_dir"
1817     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1818     # A "../" for each directory in $ac_dir_suffix.
1819     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1820   else
1821     ac_dir_suffix= ac_dots=
1822   fi
1823
1824   case "$ac_given_srcdir" in
1825   .)  srcdir=.
1826       if test -z "$ac_dots"; then top_srcdir=.
1827       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1828   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1829   *) # Relative path.
1830     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1831     top_srcdir="$ac_dots$ac_given_srcdir" ;;
1832   esac
1833
1834   case "$ac_given_INSTALL" in
1835   [/$]*) INSTALL="$ac_given_INSTALL" ;;
1836   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1837   esac
1838
1839   echo creating "$ac_file"
1840   rm -f "$ac_file"
1841   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1842   case "$ac_file" in
1843   *Makefile*) ac_comsub="1i\\
1844 # $configure_input" ;;
1845   *) ac_comsub= ;;
1846   esac
1847
1848   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1849   sed -e "$ac_comsub
1850 s%@configure_input@%$configure_input%g
1851 s%@srcdir@%$srcdir%g
1852 s%@top_srcdir@%$top_srcdir%g
1853 s%@INSTALL@%$INSTALL%g
1854 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1855 fi; done
1856 rm -f conftest.s*
1857
1858 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1859 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1860 #
1861 # ac_d sets the value in "#define NAME VALUE" lines.
1862 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
1863 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
1864 ac_dC='\3'
1865 ac_dD='%g'
1866 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1867 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
1868 ac_uB='\([      ]\)%\1#\2define\3'
1869 ac_uC=' '
1870 ac_uD='\4%g'
1871 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1872 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
1873 ac_eB='$%\1#\2define\3'
1874 ac_eC=' '
1875 ac_eD='%g'
1876
1877 if test "${CONFIG_HEADERS+set}" != set; then
1878 EOF
1879 cat >> $CONFIG_STATUS <<EOF
1880   CONFIG_HEADERS="support/include/config.h"
1881 EOF
1882 cat >> $CONFIG_STATUS <<\EOF
1883 fi
1884 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1885   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1886   case "$ac_file" in
1887   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1888        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1889   *) ac_file_in="${ac_file}.in" ;;
1890   esac
1891
1892   echo creating $ac_file
1893
1894   rm -f conftest.frag conftest.in conftest.out
1895   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1896   cat $ac_file_inputs > conftest.in
1897
1898 EOF
1899
1900 # Transform confdefs.h into a sed script conftest.vals that substitutes
1901 # the proper values into config.h.in to produce config.h.  And first:
1902 # Protect against being on the right side of a sed subst in config.status.
1903 # Protect against being in an unquoted here document in config.status.
1904 rm -f conftest.vals
1905 cat > conftest.hdr <<\EOF
1906 s/[\\&%]/\\&/g
1907 s%[\\$`]%\\&%g
1908 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1909 s%ac_d%ac_u%gp
1910 s%ac_u%ac_e%gp
1911 EOF
1912 sed -n -f conftest.hdr confdefs.h > conftest.vals
1913 rm -f conftest.hdr
1914
1915 # This sed command replaces #undef with comments.  This is necessary, for
1916 # example, in the case of _POSIX_SOURCE, which is predefined and required
1917 # on some systems where configure will not decide to define it.
1918 cat >> conftest.vals <<\EOF
1919 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1920 EOF
1921
1922 # Break up conftest.vals because some shells have a limit on
1923 # the size of here documents, and old seds have small limits too.
1924
1925 rm -f conftest.tail
1926 while :
1927 do
1928   ac_lines=`grep -c . conftest.vals`
1929   # grep -c gives empty output for an empty file on some AIX systems.
1930   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1931   # Write a limited-size here document to conftest.frag.
1932   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1933   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1934   echo 'CEOF
1935   sed -f conftest.frag conftest.in > conftest.out
1936   rm -f conftest.in
1937   mv conftest.out conftest.in
1938 ' >> $CONFIG_STATUS
1939   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1940   rm -f conftest.vals
1941   mv conftest.tail conftest.vals
1942 done
1943 rm -f conftest.vals
1944
1945 cat >> $CONFIG_STATUS <<\EOF
1946   rm -f conftest.frag conftest.h
1947   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
1948   cat conftest.in >> conftest.h
1949   rm -f conftest.in
1950   if cmp -s $ac_file conftest.h 2>/dev/null; then
1951     echo "$ac_file is unchanged"
1952     rm -f conftest.h
1953   else
1954     # Remove last slash and all that follows it.  Not all systems have dirname.
1955       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1956       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1957       # The file is in a subdirectory.
1958       test ! -d "$ac_dir" && mkdir "$ac_dir"
1959     fi
1960     rm -f $ac_file
1961     mv conftest.h $ac_file
1962   fi
1963 fi; done
1964
1965 EOF
1966 cat >> $CONFIG_STATUS <<EOF
1967
1968 EOF
1969 cat >> $CONFIG_STATUS <<\EOF
1970
1971 exit 0
1972 EOF
1973 chmod +x $CONFIG_STATUS
1974 rm -fr confdefs* $ac_clean_files
1975 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1976