2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated automatically using Autoconf version 2.14.1
4 # Copyright (C) 1992, 93, 94, 95, 96, 98, 1999 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
13 ac_default_prefix=/usr/local
14 # Any additions from configure.in:
15 ac_default_prefix=/usr
16 ac_arg_with_help="$ac_arg_with_help
17 --with-statedir=/foo use state dir /foo [/var/lib/nfs]"
18 ac_arg_enable_help="$ac_arg_enable_help
19 --enable-nfsv3 enable support for NFSv3"
20 ac_arg_enable_help="$ac_arg_enable_help
21 --enable-kprefix install progs as rpc.knfsd etc"
22 ac_arg_enable_help="$ac_arg_enable_help
23 --enable-secure-statd Only lockd can use statd (security)"
24 ac_arg_var_help="$ac_arg_var_help
25 CFLAGS Extra flags for the C compiler"
27 # Initialize some variables set by options.
28 # The variables have the same names as the options, with
29 # dashes changed to underlines.
31 cache_file=./config.cache
40 program_transform_name=s,x,x,
48 bindir='${exec_prefix}/bin'
49 sbindir='${exec_prefix}/sbin'
50 libexecdir='${exec_prefix}/libexec'
51 datadir='${prefix}/share'
52 sysconfdir='${prefix}/etc'
53 sharedstatedir='${prefix}/com'
54 localstatedir='${prefix}/var'
55 libdir='${exec_prefix}/lib'
56 includedir='${prefix}/include'
57 oldincludedir='/usr/include'
58 infodir='${prefix}/info'
59 mandir='${prefix}/man'
61 # Initialize some other variables.
64 SHELL=${CONFIG_SHELL-/bin/sh}
65 # Maximum number of lines to put in a shell here document.
66 : ${ac_max_here_lines=12}
67 # Sed expression to map a string onto a valid sh and CPP variable names.
68 ac_tr_sh='sed -e y%*+%pp%;s%[^a-zA-Z0-9_]%_%g'
69 ac_tr_cpp='sed -e y%*abcdefghijklmnopqrstuvwxyz%PABCDEFGHIJKLMNOPQRSTUVWXYZ%;s%[^A-Z0-9_]%_%g'
75 # If the previous option needs an argument, assign it.
76 if test -n "$ac_prev"; then
77 eval "$ac_prev=\$ac_option"
83 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
87 # Accept the important Cygnus configure options, so we can diagnose typos.
91 -bindir | --bindir | --bindi | --bind | --bin | --bi)
93 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
94 bindir="$ac_optarg" ;;
96 -build | --build | --buil | --bui | --bu)
98 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
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" ;;
108 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
110 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
112 datadir="$ac_optarg" ;;
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; }
120 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
121 eval "enable_${ac_feature}=no" ;;
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; }
129 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
131 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
134 eval "enable_${ac_feature}='$ac_optarg'" ;;
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" ;;
145 -gas | --gas | --ga | --g)
146 # Obsolete; use --with-gas.
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.
153 `configure' configures software source code packages to adapt to many kinds
156 Usage: configure [OPTION]... [VAR=VALUE]... [HOST]
158 To safely assign special values to environment variables (e.g., CC,
159 CFLAGS...), give to `configure' the definition as VAR=VALUE.
161 Defaults for the options are specified in brackets.
164 --cache-file=FILE cache test results in FILE
165 --help print this message
166 --no-create do not create output files
167 --quiet, --silent do not print \`checking...' messages
168 --version print the version of autoconf that created configure
170 Directory and file names:
171 --prefix=PREFIX install architecture-independent files in PREFIX
173 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
175 --bindir=DIR user executables in DIR [EPREFIX/bin]
176 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
177 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
178 --datadir=DIR read-only architecture-independent data in DIR
180 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
181 --sharedstatedir=DIR modifiable architecture-independent data in DIR
183 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
184 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
185 --includedir=DIR C header files in DIR [PREFIX/include]
186 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
187 --infodir=DIR info documentation in DIR [PREFIX/info]
188 --mandir=DIR man documentation in DIR [PREFIX/man]
189 --srcdir=DIR find the sources in DIR [configure dir or ..]
192 --program-prefix=PREFIX prepend PREFIX to installed program names
193 --program-suffix=SUFFIX append SUFFIX to installed program names
194 --program-transform-name=PROGRAM
195 run sed PROGRAM on installed program names
200 --build=BUILD configure for building on BUILD [BUILD=HOST]
201 --host=HOST configure for HOST [guessed]
202 --target=TARGET configure for TARGET [TARGET=HOST]
204 Features and packages:
205 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
206 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
207 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
208 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
209 --x-includes=DIR X include files are in DIR
210 --x-libraries=DIR X library files are in DIR
212 test -n "$ac_arg_enable_help" && echo "
213 --enable options recognized:$ac_arg_enable_help"
214 test -n "$ac_arg_with_help" && echo "
215 --with options recognized:$ac_arg_with_help"
216 test -n "$ac_arg_var_help" && echo "
217 Some of the influent environment variables:$ac_arg_var_help"
220 -host | --host | --hos | --ho)
222 -host=* | --host=* | --hos=* | --ho=*)
225 -includedir | --includedir | --includedi | --included | --include \
226 | --includ | --inclu | --incl | --inc)
227 ac_prev=includedir ;;
228 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
229 | --includ=* | --inclu=* | --incl=* | --inc=*)
230 includedir="$ac_optarg" ;;
232 -infodir | --infodir | --infodi | --infod | --info | --inf)
234 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
235 infodir="$ac_optarg" ;;
237 -libdir | --libdir | --libdi | --libd)
239 -libdir=* | --libdir=* | --libdi=* | --libd=*)
240 libdir="$ac_optarg" ;;
242 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
243 | --libexe | --libex | --libe)
244 ac_prev=libexecdir ;;
245 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
246 | --libexe=* | --libex=* | --libe=*)
247 libexecdir="$ac_optarg" ;;
249 -localstatedir | --localstatedir | --localstatedi | --localstated \
250 | --localstate | --localstat | --localsta | --localst \
251 | --locals | --local | --loca | --loc | --lo)
252 ac_prev=localstatedir ;;
253 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
254 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
255 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
256 localstatedir="$ac_optarg" ;;
258 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
260 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
261 mandir="$ac_optarg" ;;
264 # Obsolete; use --without-fp.
267 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
271 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
272 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
275 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
276 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
277 | --oldin | --oldi | --old | --ol | --o)
278 ac_prev=oldincludedir ;;
279 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
280 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
281 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
282 oldincludedir="$ac_optarg" ;;
284 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
286 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
287 prefix="$ac_optarg" ;;
289 -program-prefix | --program-prefix | --program-prefi | --program-pref \
290 | --program-pre | --program-pr | --program-p)
291 ac_prev=program_prefix ;;
292 -program-prefix=* | --program-prefix=* | --program-prefi=* \
293 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
294 program_prefix="$ac_optarg" ;;
296 -program-suffix | --program-suffix | --program-suffi | --program-suff \
297 | --program-suf | --program-su | --program-s)
298 ac_prev=program_suffix ;;
299 -program-suffix=* | --program-suffix=* | --program-suffi=* \
300 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
301 program_suffix="$ac_optarg" ;;
303 -program-transform-name | --program-transform-name \
304 | --program-transform-nam | --program-transform-na \
305 | --program-transform-n | --program-transform- \
306 | --program-transform | --program-transfor \
307 | --program-transfo | --program-transf \
308 | --program-trans | --program-tran \
309 | --progr-tra | --program-tr | --program-t)
310 ac_prev=program_transform_name ;;
311 -program-transform-name=* | --program-transform-name=* \
312 | --program-transform-nam=* | --program-transform-na=* \
313 | --program-transform-n=* | --program-transform-=* \
314 | --program-transform=* | --program-transfor=* \
315 | --program-transfo=* | --program-transf=* \
316 | --program-trans=* | --program-tran=* \
317 | --progr-tra=* | --program-tr=* | --program-t=*)
318 program_transform_name="$ac_optarg" ;;
320 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
321 | -silent | --silent | --silen | --sile | --sil)
324 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
326 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
328 sbindir="$ac_optarg" ;;
330 -sharedstatedir | --sharedstatedir | --sharedstatedi \
331 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
332 | --sharedst | --shareds | --shared | --share | --shar \
334 ac_prev=sharedstatedir ;;
335 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
336 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
337 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
339 sharedstatedir="$ac_optarg" ;;
341 -site | --site | --sit)
343 -site=* | --site=* | --sit=*)
346 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
348 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
349 srcdir="$ac_optarg" ;;
351 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
352 | --syscon | --sysco | --sysc | --sys | --sy)
353 ac_prev=sysconfdir ;;
354 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
355 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
356 sysconfdir="$ac_optarg" ;;
358 -target | --target | --targe | --targ | --tar | --ta | --t)
360 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
361 target="$ac_optarg" ;;
363 -v | -verbose | --verbose | --verbos | --verbo | --verb)
366 -version | --version | --versio | --versi | --vers)
367 echo "configure generated by autoconf version 2.14.1"
371 ac_package=`echo "$ac_option"|sed -e 's/-*with-//' -e 's/=.*//'`
372 # Reject names that are not valid shell variable names.
373 if test -n "`echo "$ac_package"| sed 's/[-_a-zA-Z0-9]//g'`"; then
374 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
376 ac_package=`echo $ac_package| sed 's/-/_/g'`
378 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
381 eval "with_${ac_package}='$ac_optarg'" ;;
383 -without-* | --without-*)
384 ac_package=`echo "$ac_option"|sed -e 's/-*without-//'`
385 # Reject names that are not valid shell variable names.
386 if test -n "`echo "$ac_package"| sed 's/[-a-zA-Z0-9_]//g'`"; then
387 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
389 ac_package=`echo $ac_package| sed 's/-/_/g'`
390 eval "with_${ac_package}=no" ;;
393 # Obsolete; use --with-x.
396 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
397 | --x-incl | --x-inc | --x-in | --x-i)
398 ac_prev=x_includes ;;
399 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
400 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
401 x_includes="$ac_optarg" ;;
403 -x-libraries | --x-libraries | --x-librarie | --x-librari \
404 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
405 ac_prev=x_libraries ;;
406 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
407 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
408 x_libraries="$ac_optarg" ;;
410 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
414 ac_envvar=`echo $ac_option|sed -e 's/=.*//'`
415 # Reject names that are not valid shell variable names.
416 if test -n "`echo $ac_envvar| sed 's/[_a-zA-Z0-9]//g'`"; then
417 { echo "configure: error: $ac_envvar: invalid variable name" 1>&2; exit 1; }
419 eval "${ac_envvar}='$ac_optarg'"
423 if test -n "`echo "$ac_option"| sed 's/[-a-z0-9.]//g'`"; then
424 echo "configure: warning: $ac_option: invalid host type" 1>&2
426 if test "x$nonopt" != xNONE; then
427 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
435 if test -n "$ac_prev"; then
436 { echo "configure: error: missing argument to --\`echo $ac_prev | sed 's/_/-/g'\`" 1>&2; exit 1; }
439 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
441 # File descriptor usage:
444 # 2 errors and warnings
445 # 3 some systems may open it to /dev/tty
446 # 4 used on the Kubota Titan
447 # 6 checking for... messages and results
448 # 5 compiler messages saved in config.log
449 if test "$silent" = yes; then
457 This file contains any messages produced by compilers while
458 running configure, to aid debugging if configure makes a mistake.
461 # Strip out --no-create and --no-recursion so they do not pile up.
462 # Also quote any args containing shell meta-characters.
467 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
468 | --no-cr | --no-c) ;;
469 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
470 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
471 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
472 ac_arg=`echo "$ac_arg"|sed "s/'/'\\\\\\\\''/g"`
473 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
474 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
479 # Only set these to C if already set. These must not be set unconditionally
480 # because not all systems understand e.g. LANG=C (notably SCO).
481 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
482 # Non-C LC_CTYPE values break the ctype check.
483 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
484 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
485 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
486 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
488 # confdefs.h avoids OS command line length limits that DEFS can exceed.
489 rm -rf conftest* confdefs.h
490 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
493 # A filename unique to this package, relative to the directory that
494 # configure is in, which we can look for to find out if srcdir is correct.
495 ac_unique_file=rules.mk
497 # Find the source files, if location was not specified.
498 if test -z "$srcdir"; then
499 ac_srcdir_defaulted=yes
500 # Try the directory containing this script, then its parent.
502 ac_confdir=`echo "$ac_prog"|sed 's%/[^/][^/]*$%%'`
503 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
505 if test ! -r $srcdir/$ac_unique_file; then
509 ac_srcdir_defaulted=no
511 if test ! -r $srcdir/$ac_unique_file; then
512 if test "$ac_srcdir_defaulted" = yes; then
513 { echo "configure: error: cannot find sources in $ac_confdir or .." 1>&2; exit 1; }
515 { echo "configure: error: cannot find sources in $srcdir" 1>&2; exit 1; }
518 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
520 # Prefer explicitly selected file to automatically selected ones.
521 if test -z "$CONFIG_SITE"; then
522 if test "x$prefix" != xNONE; then
523 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
525 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
528 for ac_site_file in $CONFIG_SITE; do
529 if test -r "$ac_site_file"; then
530 echo "loading site script $ac_site_file"
535 if test -r "$cache_file"; then
536 echo "loading cache $cache_file"
537 test -f "$cache_file" && . $cache_file
539 echo "creating cache $cache_file"
544 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
545 ac_cpp='$CPP $CPPFLAGS'
546 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
547 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
548 cross_compiling=$ac_cv_prog_cc_cross
552 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
553 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
554 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
561 ac_n= ac_c='\c' ac_t=
567 # The nfs-utils version
571 # Check whether --with-statedir or --without-statedir was given.
572 if test "${with_statedir+set}" = set; then
573 withval="$with_statedir"
576 statedir=/var/lib/nfs
580 # Check whether --enable-nfsv3 or --disable-nfsv3 was given.
581 if test "${enable_nfsv3+set}" = set; then
582 enableval="$enable_nfsv3"
583 enable_nfsv3=$enableval
588 if test "$enable_nfsv3" = yes; then
589 cat >> confdefs.h <<\EOF
590 #define NFS3_SUPPORTED 1
597 # Check whether --enable-kprefix or --disable-kprefix was given.
598 if test "${enable_kprefix+set}" = set; then
599 enableval="$enable_kprefix"
600 test "$enableval" = "yes" && kprefix=k
606 # Check whether --enable-secure-statd or --disable-secure-statd was given.
607 if test "${enable_secure_statd+set}" = set; then
608 enableval="$enable_secure_statd"
609 test "$enableval" = "yes" && secure_statd=yes
614 if test "$secure_statd" = yes; then
615 cat >> confdefs.h <<\EOF
616 #define RESTRICTED_STATD 1
623 case "${CFLAGS+set} $ac_configure_args" in
625 "set "*) ac_configure_args="CFLAGS='$CFLAGS' $ac_configure_args";;
628 # Extract the first word of "gcc", so it can be a program name with args.
629 set dummy gcc; ac_word=$2
630 echo $ac_n "checking for $ac_word... $ac_c" 1>&6
631 echo "configure:632: checking for $ac_word" 1>&5
632 if test "${ac_cv_prog_CC+set}" = set; then
633 echo $ac_n "(cached) $ac_c" 1>&6
635 if test -n "$CC"; then
636 ac_cv_prog_CC="$CC" # Let the user override the test.
638 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
640 for ac_dir in $ac_dummy; do
641 test -z "$ac_dir" && ac_dir=.
642 if test -f $ac_dir/$ac_word; then
651 if test -n "$CC"; then
652 echo "$ac_t""$CC" 1>&6
654 echo "$ac_t""no" 1>&6
657 if test -z "$CC"; then
658 # Extract the first word of "cc", so it can be a program name with args.
659 set dummy cc; ac_word=$2
660 echo $ac_n "checking for $ac_word... $ac_c" 1>&6
661 echo "configure:662: checking for $ac_word" 1>&5
662 if test "${ac_cv_prog_CC+set}" = set; then
663 echo $ac_n "(cached) $ac_c" 1>&6
665 if test -n "$CC"; then
666 ac_cv_prog_CC="$CC" # Let the user override the test.
668 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
671 for ac_dir in $ac_dummy; do
672 test -z "$ac_dir" && ac_dir=.
673 if test -f $ac_dir/$ac_word; then
674 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
683 if test $ac_prog_rejected = yes; then
684 # We found a bogon in the path, so make sure we never use it.
685 set dummy $ac_cv_prog_CC
687 if test $# -gt 0; then
688 # We chose a different compiler from the bogus one.
689 # However, it has the same basename, so the bogon will be chosen
690 # first if we set CC to just the basename; use the full file name.
692 set dummy "$ac_dir/$ac_word" "$@"
700 if test -n "$CC"; then
701 echo "$ac_t""$CC" 1>&6
703 echo "$ac_t""no" 1>&6
706 if test -z "$CC"; then
709 # Extract the first word of "$ac_prog", so it can be a program name with args.
710 set dummy $ac_prog; ac_word=$2
711 echo $ac_n "checking for $ac_word... $ac_c" 1>&6
712 echo "configure:713: checking for $ac_word" 1>&5
713 if test "${ac_cv_prog_CC+set}" = set; then
714 echo $ac_n "(cached) $ac_c" 1>&6
716 if test -n "$CC"; then
717 ac_cv_prog_CC="$CC" # Let the user override the test.
719 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
721 for ac_dir in $ac_dummy; do
722 test -z "$ac_dir" && ac_dir=.
723 if test -f $ac_dir/$ac_word; then
724 ac_cv_prog_CC="$ac_prog"
732 if test -n "$CC"; then
733 echo "$ac_t""$CC" 1>&6
735 echo "$ac_t""no" 1>&6
738 test -n "$CC" && break
745 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
747 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works... $ac_c" 1>&6
748 echo "configure:749: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" 1>&5
751 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
752 ac_cpp='$CPP $CPPFLAGS'
753 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
754 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
755 cross_compiling=$ac_cv_prog_cc_cross
757 cat > conftest.$ac_ext << EOF
759 #line 760 "configure"
760 #include "confdefs.h"
762 int main(){return(0);}
764 if { (eval echo configure:765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
765 ac_cv_prog_cc_works=yes
766 # If we can't run a trivial program, we are probably using a cross compiler.
767 if (./conftest; exit) 2>/dev/null; then
768 ac_cv_prog_cc_cross=no
770 ac_cv_prog_cc_cross=yes
773 echo "configure: failed program was:" >&5
774 cat conftest.$ac_ext >&5
775 ac_cv_prog_cc_works=no
779 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
780 ac_cpp='$CPP $CPPFLAGS'
781 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
782 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
783 cross_compiling=$ac_cv_prog_cc_cross
785 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
786 if test $ac_cv_prog_cc_works = no; then
787 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
789 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler... $ac_c" 1>&6
790 echo "configure:791: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" 1>&5
791 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
792 cross_compiling=$ac_cv_prog_cc_cross
794 echo $ac_n "checking whether we are using GNU C... $ac_c" 1>&6
795 echo "configure:796: checking whether we are using GNU C" 1>&5
796 if test "${ac_cv_prog_gcc+set}" = set; then
797 echo $ac_n "(cached) $ac_c" 1>&6
799 cat > conftest.c <<EOF
804 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
810 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
812 if test $ac_cv_prog_gcc = yes; then
818 ac_test_CFLAGS="${CFLAGS+set}"
819 ac_save_CFLAGS="$CFLAGS"
821 echo $ac_n "checking whether ${CC-cc} accepts -g... $ac_c" 1>&6
822 echo "configure:823: checking whether ${CC-cc} accepts -g" 1>&5
823 if test "${ac_cv_prog_cc_g+set}" = set; then
824 echo $ac_n "(cached) $ac_c" 1>&6
826 echo 'void f(){}' > conftest.c
827 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
835 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
836 if test "$ac_test_CFLAGS" = set; then
837 CFLAGS="$ac_save_CFLAGS"
838 elif test $ac_cv_prog_cc_g = yes; then
839 if test "$GCC" = yes; then
845 if test "$GCC" = yes; then
852 for ac_prog in $CCC c++ g++ gpp CC cxx cc++ cl
854 # Extract the first word of "$ac_prog", so it can be a program name with args.
855 set dummy $ac_prog; ac_word=$2
856 echo $ac_n "checking for $ac_word... $ac_c" 1>&6
857 echo "configure:858: checking for $ac_word" 1>&5
858 if test "${ac_cv_prog_CXX+set}" = set; then
859 echo $ac_n "(cached) $ac_c" 1>&6
861 if test -n "$CXX"; then
862 ac_cv_prog_CXX="$CXX" # Let the user override the test.
864 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
866 for ac_dir in $ac_dummy; do
867 test -z "$ac_dir" && ac_dir=.
868 if test -f $ac_dir/$ac_word; then
869 ac_cv_prog_CXX="$ac_prog"
876 CXX="$ac_cv_prog_CXX"
877 if test -n "$CXX"; then
878 echo "$ac_t""$CXX" 1>&6
880 echo "$ac_t""no" 1>&6
883 test -n "$CXX" && break
885 test -n "$CXX" || CXX="g++"
888 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $CPPFLAGS $LDFLAGS) works... $ac_c" 1>&6
889 echo "configure:890: checking whether the C++ compiler ($CXX $CXXFLAGS $CPPFLAGS $LDFLAGS) works" 1>&5
892 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
893 ac_cpp='$CXXCPP $CPPFLAGS'
894 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
895 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
896 cross_compiling=$ac_cv_prog_cxx_cross
898 cat > conftest.$ac_ext << EOF
900 #line 901 "configure"
901 #include "confdefs.h"
903 int main(){return(0);}
905 if { (eval echo configure:906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
906 ac_cv_prog_cxx_works=yes
907 # If we can't run a trivial program, we are probably using a cross compiler.
908 if (./conftest; exit) 2>/dev/null; then
909 ac_cv_prog_cxx_cross=no
911 ac_cv_prog_cxx_cross=yes
914 echo "configure: failed program was:" >&5
915 cat conftest.$ac_ext >&5
916 ac_cv_prog_cxx_works=no
920 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
921 ac_cpp='$CPP $CPPFLAGS'
922 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
923 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
924 cross_compiling=$ac_cv_prog_cc_cross
926 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
927 if test $ac_cv_prog_cxx_works = no; then
928 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
930 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler... $ac_c" 1>&6
931 echo "configure:932: checking whether the C++ compiler ($CXX $CXXFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" 1>&5
932 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
933 cross_compiling=$ac_cv_prog_cxx_cross
935 echo $ac_n "checking whether we are using GNU C++... $ac_c" 1>&6
936 echo "configure:937: checking whether we are using GNU C++" 1>&5
937 if test "${ac_cv_prog_gxx+set}" = set; then
938 echo $ac_n "(cached) $ac_c" 1>&6
940 cat > conftest.C <<EOF
945 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
951 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
953 if test $ac_cv_prog_gxx = yes; then
959 ac_test_CXXFLAGS="${CXXFLAGS+set}"
960 ac_save_CXXFLAGS="$CXXFLAGS"
962 echo $ac_n "checking whether ${CXX-g++} accepts -g... $ac_c" 1>&6
963 echo "configure:964: checking whether ${CXX-g++} accepts -g" 1>&5
964 if test "${ac_cv_prog_cxx_g+set}" = set; then
965 echo $ac_n "(cached) $ac_c" 1>&6
967 echo 'void f(){}' > conftest.cc
968 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
976 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
977 if test "$ac_test_CXXFLAGS" = set; then
978 CXXFLAGS="$ac_save_CXXFLAGS"
979 elif test $ac_cv_prog_cxx_g = yes; then
980 if test "$GXX" = yes; then
986 if test "$GXX" = yes; then
993 echo $ac_n "checking how to run the C preprocessor... $ac_c" 1>&6
994 echo "configure:995: checking how to run the C preprocessor" 1>&5
995 # On Suns, sometimes $CPP names a directory.
996 if test -n "$CPP" && test -d "$CPP"; then
999 if test -z "$CPP"; then
1000 if test "${ac_cv_prog_CPP+set}" = set; then
1001 echo $ac_n "(cached) $ac_c" 1>&6
1003 # This must be in double quotes, not single quotes, because CPP may get
1004 # substituted into the Makefile and "${CC-cc}" will confuse make.
1006 # On the NeXT, cc -E runs the code through the compiler's parser,
1007 # not just through cpp.
1008 cat > conftest.$ac_ext <<EOF
1009 #line 1010 "configure"
1010 #include "confdefs.h"
1014 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1015 { (eval echo configure:1016: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1016 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1017 if test -z "$ac_err"; then
1021 echo "configure: failed program was:" >&5
1022 cat conftest.$ac_ext >&5
1024 CPP="${CC-cc} -E -traditional-cpp"
1025 cat > conftest.$ac_ext <<EOF
1026 #line 1027 "configure"
1027 #include "confdefs.h"
1031 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1032 { (eval echo configure:1033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1033 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1034 if test -z "$ac_err"; then
1038 echo "configure: failed program was:" >&5
1039 cat conftest.$ac_ext >&5
1041 CPP="${CC-cc} -nologo -E"
1042 cat > conftest.$ac_ext <<EOF
1043 #line 1044 "configure"
1044 #include "confdefs.h"
1048 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1049 { (eval echo configure:1050: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1050 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1051 if test -z "$ac_err"; then
1055 echo "configure: failed program was:" >&5
1056 cat conftest.$ac_ext >&5
1065 ac_cv_prog_CPP="$CPP"
1067 CPP="$ac_cv_prog_CPP"
1069 ac_cv_prog_CPP="$CPP"
1071 echo "$ac_t""$CPP" 1>&6
1074 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1075 if test -f $ac_dir/install-sh; then
1077 ac_install_sh="$ac_aux_dir/install-sh -c"
1079 elif test -f $ac_dir/install.sh; then
1081 ac_install_sh="$ac_aux_dir/install.sh -c"
1083 elif test -f $ac_dir/shtool; then
1085 ac_install_sh="$ac_aux_dir/shtool install -c"
1089 if test -z "$ac_aux_dir"; then
1090 { echo "configure: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1092 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1093 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1094 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1096 # Find a good install program. We prefer a C program (faster),
1097 # so one script is as good as another. But avoid the broken or
1098 # incompatible versions:
1099 # SysV /etc/install, /usr/sbin/install
1100 # SunOS /usr/etc/install
1101 # IRIX /sbin/install
1103 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1104 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1105 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1106 # ./install, which can be erroneously created by make from ./install.sh.
1107 echo $ac_n "checking for a BSD compatible install... $ac_c" 1>&6
1108 echo "configure:1109: checking for a BSD compatible install" 1>&5
1109 if test -z "$INSTALL"; then
1110 if test "${ac_cv_path_install+set}" = set; then
1111 echo $ac_n "(cached) $ac_c" 1>&6
1113 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1114 for ac_dir in $PATH; do
1115 # Account for people who put trailing slashes in PATH elements.
1117 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1119 # OSF1 and SCO ODT 3.0 have their own names for install.
1120 # Don't use installbsd from OSF since it installs stuff as root
1122 for ac_prog in ginstall scoinst install; do
1123 if test -f $ac_dir/$ac_prog; then
1124 if test $ac_prog = install &&
1125 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1126 # AIX install. It has an incompatible calling convention.
1128 elif test $ac_prog = install &&
1129 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
1130 # program-specific install script used by HP pwplus--don't use.
1133 ac_cv_path_install="$ac_dir/$ac_prog -c"
1144 if test "${ac_cv_path_install+set}" = set; then
1145 INSTALL="$ac_cv_path_install"
1147 # As a last resort, use the slow shell script. We don't cache a
1148 # path for INSTALL within a source directory, because that will
1149 # break other packages using the cache if that directory is
1150 # removed, or if the path is relative.
1151 INSTALL="$ac_install_sh"
1154 echo "$ac_t""$INSTALL" 1>&6
1156 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1157 # It thinks the first close brace ends the variable substitution.
1158 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1160 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1162 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1164 echo $ac_n "checking for ANSI C header files... $ac_c" 1>&6
1165 echo "configure:1166: checking for ANSI C header files" 1>&5
1166 if test "${ac_cv_header_stdc+set}" = set; then
1167 echo $ac_n "(cached) $ac_c" 1>&6
1169 cat > conftest.$ac_ext <<EOF
1170 #line 1171 "configure"
1171 #include "confdefs.h"
1177 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1178 { (eval echo configure:1179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1179 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1180 if test -z "$ac_err"; then
1182 ac_cv_header_stdc=yes
1185 echo "configure: failed program was:" >&5
1186 cat conftest.$ac_ext >&5
1188 ac_cv_header_stdc=no
1192 if test $ac_cv_header_stdc = yes; then
1193 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1194 cat > conftest.$ac_ext <<EOF
1195 #line 1196 "configure"
1196 #include "confdefs.h"
1199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1200 egrep "memchr" >/dev/null 2>&1; then
1204 ac_cv_header_stdc=no
1210 if test $ac_cv_header_stdc = yes; then
1211 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1212 cat > conftest.$ac_ext <<EOF
1213 #line 1214 "configure"
1214 #include "confdefs.h"
1217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1218 egrep "free" >/dev/null 2>&1; then
1222 ac_cv_header_stdc=no
1228 if test $ac_cv_header_stdc = yes; then
1229 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1230 if test "$cross_compiling" = yes; then
1233 cat > conftest.$ac_ext <<EOF
1234 #line 1235 "configure"
1235 #include "confdefs.h"
1237 #if ((' ' & 0x0FF) == 0x020)
1238 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1239 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1241 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
1242 || ('j' <= (c) && (c) <= 'r') \
1243 || ('s' <= (c) && (c) <= 'z'))
1244 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
1246 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1247 int main () { int i; for (i = 0; i < 256; i++)
1248 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1252 if { (eval echo configure:1253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1256 echo "configure: failed program was:" >&5
1257 cat conftest.$ac_ext >&5
1259 ac_cv_header_stdc=no
1266 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1267 if test $ac_cv_header_stdc = yes; then
1268 cat >> confdefs.h <<\EOF
1269 #define STDC_HEADERS 1
1274 echo $ac_n "checking for GNU libc2... $ac_c" 1>&6
1275 echo "configure:1276: checking for GNU libc2" 1>&5
1276 if test "${knfsd_cv_glibc2+set}" = set; then
1277 echo $ac_n "(cached) $ac_c" 1>&6
1279 cat > conftest.$ac_ext <<EOF
1280 #line 1281 "configure"
1281 #include "confdefs.h"
1283 #include <features.h>
1284 #if !defined(__GLIBC__)
1288 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1289 { (eval echo configure:1290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1290 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1291 if test -z "$ac_err"; then
1296 echo "configure: failed program was:" >&5
1297 cat conftest.$ac_ext >&5
1304 echo "$ac_t""$knfsd_cv_glibc2" 1>&6
1305 if test $knfsd_cv_glibc2 = yes; then
1306 CFLAGS="$CFLAGS -D_GNU_SOURCE"
1307 CXXFLAGS="$CXXFLAGS -D_GNU_SOURCE"
1311 echo $ac_n "checking for main in -lsocket... $ac_c" 1>&6
1312 echo "configure:1313: checking for main in -lsocket" 1>&5
1313 if test "${ac_cv_lib_socket_main+set}" = set; then
1314 echo $ac_n "(cached) $ac_c" 1>&6
1316 ac_save_LIBS="$LIBS"
1317 LIBS="-lsocket $LIBS"
1318 cat > conftest.$ac_ext <<EOF
1319 #line 1320 "configure"
1320 #include "confdefs.h"
1326 if { (eval echo configure:1327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1328 ac_cv_lib_socket_main=yes
1330 echo "configure: failed program was:" >&5
1331 cat conftest.$ac_ext >&5
1333 ac_cv_lib_socket_main=no
1336 LIBS="$ac_save_LIBS"
1338 echo "$ac_t""$ac_cv_lib_socket_main" 1>&6
1339 if test $ac_cv_lib_socket_main = yes; then
1343 echo $ac_n "checking for main in -lnsl... $ac_c" 1>&6
1344 echo "configure:1345: checking for main in -lnsl" 1>&5
1345 if test "${ac_cv_lib_nsl_main+set}" = set; then
1346 echo $ac_n "(cached) $ac_c" 1>&6
1348 ac_save_LIBS="$LIBS"
1350 cat > conftest.$ac_ext <<EOF
1351 #line 1352 "configure"
1352 #include "confdefs.h"
1358 if { (eval echo configure:1359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1360 ac_cv_lib_nsl_main=yes
1362 echo "configure: failed program was:" >&5
1363 cat conftest.$ac_ext >&5
1365 ac_cv_lib_nsl_main=no
1368 LIBS="$ac_save_LIBS"
1370 echo "$ac_t""$ac_cv_lib_nsl_main" 1>&6
1371 if test $ac_cv_lib_nsl_main = yes; then
1375 echo $ac_n "checking for crypt in -lcrypt... $ac_c" 1>&6
1376 echo "configure:1377: checking for crypt in -lcrypt" 1>&5
1377 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
1378 echo $ac_n "(cached) $ac_c" 1>&6
1380 ac_save_LIBS="$LIBS"
1381 LIBS="-lcrypt $LIBS"
1382 cat > conftest.$ac_ext <<EOF
1383 #line 1384 "configure"
1384 #include "confdefs.h"
1385 /* Override any gcc2 internal prototype to avoid an error. */
1386 /* We use char because int might match the return type of a gcc2
1387 builtin and then its argument prototype would still apply. */
1394 if { (eval echo configure:1395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1396 ac_cv_lib_crypt_crypt=yes
1398 echo "configure: failed program was:" >&5
1399 cat conftest.$ac_ext >&5
1401 ac_cv_lib_crypt_crypt=no
1404 LIBS="$ac_save_LIBS"
1406 echo "$ac_t""$ac_cv_lib_crypt_crypt" 1>&6
1407 if test $ac_cv_lib_crypt_crypt = yes; then
1411 if test "$knfsd_cv_glibc2" = no; then
1412 echo $ac_n "checking for daemon in -lbsd... $ac_c" 1>&6
1413 echo "configure:1414: checking for daemon in -lbsd" 1>&5
1414 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
1415 echo $ac_n "(cached) $ac_c" 1>&6
1417 ac_save_LIBS="$LIBS"
1419 cat > conftest.$ac_ext <<EOF
1420 #line 1421 "configure"
1421 #include "confdefs.h"
1422 /* Override any gcc2 internal prototype to avoid an error. */
1423 /* We use char because int might match the return type of a gcc2
1424 builtin and then its argument prototype would still apply. */
1431 if { (eval echo configure:1432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1433 ac_cv_lib_bsd_daemon=yes
1435 echo "configure: failed program was:" >&5
1436 cat conftest.$ac_ext >&5
1438 ac_cv_lib_bsd_daemon=no
1441 LIBS="$ac_save_LIBS"
1443 echo "$ac_t""$ac_cv_lib_bsd_daemon" 1>&6
1444 if test $ac_cv_lib_bsd_daemon = yes; then
1455 for ac_func in innetgr
1457 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
1458 echo $ac_n "checking for $ac_func... $ac_c" 1>&6
1459 echo "configure:1460: checking for $ac_func" 1>&5
1460 if eval "test \"\${$ac_ac_var+set}\" = set"; then
1461 echo $ac_n "(cached) $ac_c" 1>&6
1463 cat > conftest.$ac_ext <<EOF
1464 #line 1465 "configure"
1465 #include "confdefs.h"
1466 /* System header to define __stub macros and hopefully few prototypes,
1467 which can conflict with char $ac_func(); below. */
1469 /* Override any gcc2 internal prototype to avoid an error. */
1470 /* We use char because int might match the return type of a gcc2
1471 builtin and then its argument prototype would still apply. */
1477 /* The GNU C library defines this for functions which it implements
1478 to always fail with ENOSYS. Some functions are actually named
1479 something starting with __ and the normal name is an alias. */
1480 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1488 if { (eval echo configure:1489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1490 eval "$ac_ac_var=yes"
1492 echo "configure: failed program was:" >&5
1493 cat conftest.$ac_ext >&5
1495 eval "$ac_ac_var=no"
1499 echo "$ac_t""`eval echo '${'$ac_ac_var'}'`" 1>&6
1500 if test `eval echo '${'$ac_ac_var'}'` = yes; then
1501 cat >> confdefs.h <<EOF
1502 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
1509 cat >> confdefs.h <<EOF
1510 #define NFS_STATEDIR "$statedir"
1518 cat > confcache <<\EOF
1519 # This file is a shell script that caches the results of configure
1520 # tests run on this system so they can be shared between configure
1521 # scripts and configure runs. It is not useful on other systems.
1522 # If it contains results you don't want to keep, you may remove or edit it.
1524 # By default, configure uses ./config.cache as the cache file,
1525 # creating it if it does not exist already. You can give configure
1526 # the --cache-file=FILE option to use a different cache file; that is
1527 # what configure does when it calls configure scripts in
1528 # subdirectories, so they share the cache.
1529 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1530 # config.status only pays attention to the cache file if you give it the
1531 # --recheck option to rerun configure.
1534 # The following way of writing the cache mishandles newlines in values,
1535 # but we know of no workaround that is simple, portable, and efficient.
1536 # So, don't put newlines in cache variables' values.
1537 # Ultrix sh set writes to stderr and can't be redirected directly,
1538 # and sets the high bit in the cache file unless we assign to the vars.
1540 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1542 # `set' does not quote correctly, so add quotes (double-quote substitution
1543 # turns \\\\ into \\, and sed turns \\ into \).
1545 -e "s/'/'\\\\''/g" \
1546 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1549 # `set' quotes correctly as required by POSIX, so do not add quotes.
1550 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1553 if cmp -s $cache_file confcache; then
1556 if test -w $cache_file; then
1557 echo "updating cache $cache_file"
1558 cat confcache > $cache_file
1560 echo "not updating unwritable cache $cache_file"
1565 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1567 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1568 # Let make expand exec_prefix.
1569 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1571 # Any assignment to VPATH causes Sun make to only execute
1572 # the first set of double-colon rules, so remove it if not needed.
1573 # If there is a colon in the path, we need to keep it.
1574 if test "x$srcdir" = x.; then
1575 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1578 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1580 DEFS=-DHAVE_CONFIG_H
1582 # Without the "./", some shells look in PATH for config.status.
1583 : ${CONFIG_STATUS=./config.status}
1585 echo creating $CONFIG_STATUS
1586 rm -f $CONFIG_STATUS
1587 cat > $CONFIG_STATUS <<EOF
1589 # Generated automatically by configure.
1590 # Run this file to recreate the current configuration.
1591 # This directory was configured as follows,
1592 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1594 # $0 $ac_configure_args
1596 # Compiler output produced by configure, useful for debugging
1597 # configure, is in ./config.log if it exists.
1599 # Files that config.status was made for.
1601 config.mk nfs-utils.spec"
1603 support/include/config.h"
1608 \\\`$CONFIG_STATUS' instantiates files from templates according to the
1609 current configuration.
1611 Usage: $CONFIG_STATUS [OPTIONS] FILE...
1613 --recheck Update $CONFIG_STATUS by reconfiguring in the same conditions
1614 --version Print the version of Autoconf and exit
1615 --help Display this help and exit
1617 Files to instantiate:
1618 Configuration files:
1620 Configuration headers:
1625 Report bugs to <bug-autoconf@gnu.org>."
1628 $CONFIG_STATUS generated by autoconf version 2.14.1.
1629 Configured on host `(hostname || uname -n) 2>/dev/null | sed 1q` by running
1630 $0 $ac_configure_args"
1632 # Root of the tmp file names. Use pid to allow concurrent executions.
1634 ac_given_srcdir=$srcdir
1635 ac_given_INSTALL="$INSTALL"
1639 case "\$ac_option" in
1640 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1641 echo "running \${CONFIG_SHELL-/bin/sh} $0 `echo "$ac_configure_args" | sed 's/[\\"\`\$]/\\\\&/g'` --no-create --no-recursion"
1642 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1643 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1644 echo "\$ac_cs_version"; exit 0 ;;
1645 -help | --help | --hel | --he | --h)
1646 echo "\$ac_cs_usage"; exit 0 ;;
1647 *) # Find out the files to process.
1648 for ac_file in \$config_files
1651 \$ac_option | \$ac_option:* )
1652 CONFIG_FILES="\$CONFIG_FILES \$ac_file"
1657 test -z "\$ac_option" && continue
1658 for ac_file in \$config_headers
1661 \$ac_option | \$ac_option:* )
1662 CONFIG_HEADERS="\$CONFIG_HEADERS \$ac_file"
1667 test -z "\$ac_option" && continue
1668 for ac_file in \$config_links
1671 \$ac_option | \$ac_option:* )
1672 CONFIG_LINKS="\$CONFIG_LINKS \$ac_file"
1677 test -z "\$ac_option" && continue
1678 echo "$CONFIG_STATUS: invalid argument: \$ac_option"; exit 1
1685 cat >> $CONFIG_STATUS <<EOF
1686 # If there were arguments, don't assign a default value.
1687 if test \$# = 0; then
1688 : \${CONFIG_FILES="\$config_files"}
1689 : \${CONFIG_HEADERS="\$config_headers"}
1690 : \${CONFIG_LINKS="\$config_links"}
1693 # Remove all the CONFIG_FILES, and trap to remove the temp files.
1694 rm -fr \`echo "\$CONFIG_FILES" | sed "s/:[^ ]*//g"\`
1695 trap 'rm -fr \$ac_cs_root*; exit 1' 1 2 15
1700 cat >>$CONFIG_STATUS <<EOF
1701 # Protect against being on the right side of a sed subst in config.status.
1702 sed 's/%@/@@/; s/@%/@@/; s/%;t t\$/@;t t/; /@;t t\$/s/[\\\\&%]/\\\\&/g;
1703 s/@@/%@/; s/@@/@%/; s/@;t t\$/%;t t/' > \$ac_cs_root.subs <<\\CEOF
1704 s%@SHELL@%$SHELL%;t t
1705 s%@CFLAGS@%$CFLAGS%;t t
1706 s%@CPPFLAGS@%$CPPFLAGS%;t t
1707 s%@CXXFLAGS@%$CXXFLAGS%;t t
1708 s%@FFLAGS@%$FFLAGS%;t t
1710 s%@LDFLAGS@%$LDFLAGS%;t t
1712 s%@exec_prefix@%$exec_prefix%;t t
1713 s%@prefix@%$prefix%;t t
1714 s%@program_transform_name@%$program_transform_name%;t t
1715 s%@bindir@%$bindir%;t t
1716 s%@sbindir@%$sbindir%;t t
1717 s%@libexecdir@%$libexecdir%;t t
1718 s%@datadir@%$datadir%;t t
1719 s%@sysconfdir@%$sysconfdir%;t t
1720 s%@sharedstatedir@%$sharedstatedir%;t t
1721 s%@localstatedir@%$localstatedir%;t t
1722 s%@libdir@%$libdir%;t t
1723 s%@includedir@%$includedir%;t t
1724 s%@oldincludedir@%$oldincludedir%;t t
1725 s%@infodir@%$infodir%;t t
1726 s%@mandir@%$mandir%;t t
1727 s%@VERSION@%$VERSION%;t t
1728 s%@statedir@%$statedir%;t t
1729 s%@enable_nfsv3@%$enable_nfsv3%;t t
1730 s%@kprefix@%$kprefix%;t t
1731 s%@secure_statd@%$secure_statd%;t t
1735 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%;t t
1736 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%;t t
1737 s%@INSTALL_DATA@%$INSTALL_DATA%;t t
1738 s%@LIBSOCKET@%$LIBSOCKET%;t t
1739 s%@LIBNSL@%$LIBNSL%;t t
1740 s%@LIBCRYPT@%$LIBCRYPT%;t t
1741 s%@LIBBSD@%$LIBBSD%;t t
1746 cat >> $CONFIG_STATUS <<\EOF
1747 # Split the substitutions into bite-sized pieces for seds with
1748 # small command number limits, like on Digital OSF/1 and HP-UX.
1750 ac_sed_frag=1 # Number of current file.
1751 ac_beg=1 # First line for current file.
1752 ac_end=$ac_max_sed_lines # Line after last line for current file.
1755 while $ac_more_lines; do
1756 if test $ac_beg -gt 1; then
1757 sed "1,${ac_beg}d; ${ac_end}q" $ac_cs_root.subs > $ac_cs_root.sfrag
1759 sed "${ac_end}q" $ac_cs_root.subs > $ac_cs_root.sfrag
1761 if test ! -s $ac_cs_root.sfrag; then
1763 rm -f $ac_cs_root.sfrag
1765 # The purpose of the label and of the branching condition is to
1766 # speed up the sed processing (if there are no `@' at all, there
1767 # is no need to browse any of the substitutions).
1768 # These are the two extra sed commands mentioned above.
1770 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $ac_cs_root.sfrag) > $ac_cs_root.s$ac_sed_frag
1771 if test -z "$ac_sed_cmds"; then
1772 ac_sed_cmds="sed -f $ac_cs_root.s$ac_sed_frag"
1774 ac_sed_cmds="$ac_sed_cmds | sed -f $ac_cs_root.s$ac_sed_frag"
1776 ac_sed_frag=`expr $ac_sed_frag + 1`
1778 ac_end=`expr $ac_end + $ac_max_sed_lines`
1781 if test -z "$ac_sed_cmds"; then
1787 cat >> $CONFIG_STATUS <<\EOF
1788 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1789 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1791 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1792 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1793 *) ac_file_in="${ac_file}.in" ;;
1796 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1798 # Remove last slash and all that follows it. Not all systems have dirname.
1799 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1800 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1801 # The file is in a subdirectory.
1802 test ! -d "$ac_dir" && mkdir "$ac_dir"
1803 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1804 # A "../" for each directory in $ac_dir_suffix.
1805 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1807 ac_dir_suffix= ac_dots=
1810 case "$ac_given_srcdir" in
1812 if test -z "$ac_dots"; then top_srcdir=.
1813 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1814 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1816 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1817 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1820 case "$ac_given_INSTALL" in
1821 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1822 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1825 echo creating "$ac_file"
1827 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1829 *[Mm]akefile*) ac_comsub="1i\\
1830 # $configure_input" ;;
1834 # Don't redirect the output to AC_FILE directly: use `mv' so that updating
1835 # is atomic, and doesn't need trapping.
1836 ac_file_inputs=`echo $ac_file_in | sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1838 cat >>$CONFIG_STATUS <<EOF
1843 cat >>$CONFIG_STATUS <<\EOF
1845 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1846 s%@configure_input@%$configure_input%;t t
1847 s%@srcdir@%$srcdir%;t t
1848 s%@top_srcdir@%$top_srcdir%;t t
1849 s%@INSTALL@%$INSTALL%;t t
1850 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_cs_root.out
1851 mv $ac_cs_root.out $ac_file
1853 rm -f $ac_cs_root.s*
1855 cat >>$CONFIG_STATUS <<\EOF
1856 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1857 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1859 # ac_d sets the value in "#define NAME VALUE" lines.
1860 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1861 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
1864 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1865 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1866 ac_uB='\([ ]\)%\1#\2define\3'
1869 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1870 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1871 ac_eB='$%\1#\2define\3'
1875 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1876 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1878 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1879 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1880 *) ac_file_in="${ac_file}.in" ;;
1883 echo creating $ac_file
1885 rm -f $ac_cs_root.frag $ac_cs_root.in $ac_cs_root.out
1886 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1887 cat $ac_file_inputs > $ac_cs_root.in
1891 # Transform confdefs.h into a sed script conftest.vals that substitutes
1892 # the proper values into config.h.in to produce config.h. And first:
1893 # Protect against being on the right side of a sed subst in config.status.
1894 # Protect against being in an unquoted here document in config.status.
1896 cat > $ac_cs_root.hdr <<\EOF
1901 s%^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$%${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD}%gp
1903 s%^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1908 # If some macros were called several times there might be several times
1909 # the same #defines, which is useless. Nevertheless, we may not want to
1910 # sort them, since we want the *last* AC_DEFINE to be honored.
1911 uniq confdefs.h | sed -n -f $ac_cs_root.hdr > conftest.vals
1912 rm -f $ac_cs_root.hdr
1914 # This sed command replaces #undef with comments. This is necessary, for
1915 # example, in the case of _POSIX_SOURCE, which is predefined and required
1916 # on some systems where configure will not decide to define it.
1917 cat >> conftest.vals <<\EOF
1918 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1921 # Break up conftest.vals because some shells have a limit on the size
1922 # of here documents, and old seds have small limits too (100 cmds).
1926 ac_lines=`grep -c . conftest.vals`
1927 # grep -c gives empty output for an empty file on some AIX systems.
1928 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1929 # Write a limited-size here document to $ac_cs_root.frag.
1930 echo ' cat > $ac_cs_root.frag <<CEOF' >> $CONFIG_STATUS
1931 echo '/^#[ ]*u*n*d*e*f*/!b' >> $CONFIG_STATUS
1932 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1934 sed -f $ac_cs_root.frag $ac_cs_root.in > $ac_cs_root.out
1935 rm -f $ac_cs_root.in
1936 mv $ac_cs_root.out $ac_cs_root.in
1938 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1940 mv conftest.tail conftest.vals
1944 cat >> $CONFIG_STATUS <<\EOF
1945 rm -f $ac_cs_root.frag $ac_cs_root.h
1946 echo "/* $ac_file. Generated automatically by configure. */" > $ac_cs_root.h
1947 cat $ac_cs_root.in >> $ac_cs_root.h
1948 rm -f $ac_cs_root.in
1949 if cmp -s $ac_file $ac_cs_root.h 2>/dev/null; then
1950 echo "$ac_file is unchanged"
1953 # Remove last slash and all that follows it. Not all systems have dirname.
1954 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1955 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1956 # The file is in a subdirectory.
1957 test ! -d "$ac_dir" && mkdir "$ac_dir"
1960 mv $ac_cs_root.h $ac_file
1964 cat >> $CONFIG_STATUS <<\EOF
1965 srcdir=$ac_given_srcdir
1967 for ac_file in : $CONFIG_LINKS; do if test "x$ac_file" != x:; then
1968 ac_dest=`echo "$ac_file"|sed 's%:.*%%'`
1969 ac_source=`echo "$ac_file"|sed 's%[^:]*:%%'`
1971 echo "linking $srcdir/$ac_source to $ac_dest"
1973 if test ! -r $srcdir/$ac_source; then
1974 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
1978 # Make relative symlinks.
1979 # Remove last slash and all that follows it. Not all systems have dirname.
1980 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
1981 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
1982 # The dest file is in a subdirectory.
1983 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
1984 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
1985 # A "../" for each directory in $ac_dest_dir_suffix.
1986 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
1988 ac_dest_dir_suffix= ac_dots=
1992 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
1993 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
1996 # Make a symlink if possible; otherwise try a hard link.
1997 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
1998 ln $srcdir/$ac_source $ac_dest; then :
2000 { echo "configure: error: cannot link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
2005 cat >> $CONFIG_STATUS <<EOF
2008 cat >> $CONFIG_STATUS <<\EOF
2012 chmod +x $CONFIG_STATUS
2013 rm -fr confdefs* $ac_clean_files
2014 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1