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