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