cellconfig-add-missing-prototypes-20010705
[openafs.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_help="$ac_help
15   --with-afs-sysname=sys    use sys for the afs sysname
16 "
17 ac_help="$ac_help
18   --enable-obsolete                     enable obsolete portions of AFS (mpp, ntp and package)"
19 ac_help="$ac_help
20   --enable-insecure                     enable insecure portions of AFS (ftpd, inetd, rcp, rlogind and rsh)"
21 ac_help="$ac_help
22   --disable-afsdb                       disable AFSDB RR support"
23 ac_help="$ac_help
24   --enable-bos-restricted-mode  enable bosserver restricted mode which disables certain bosserver functionality"
25 ac_help="$ac_help
26   --enable-namei-fileserver             force compilation of namei fileserver in preference to inode fileserver"
27 ac_help="$ac_help
28   --with-linux-kernel-headers=path      use the kernel headers found at path(optional, defaults to /usr/src/linux)
29 "
30 ac_help="$ac_help
31   --enable-bigendian    the target is big endian"
32 ac_help="$ac_help
33   --enable-littleendian the target is little endian"
34
35 # Initialize some variables set by options.
36 # The variables have the same names as the options, with
37 # dashes changed to underlines.
38 build=NONE
39 cache_file=./config.cache
40 exec_prefix=NONE
41 host=NONE
42 no_create=
43 nonopt=NONE
44 no_recursion=
45 prefix=NONE
46 program_prefix=NONE
47 program_suffix=NONE
48 program_transform_name=s,x,x,
49 silent=
50 site=
51 srcdir=
52 target=NONE
53 verbose=
54 x_includes=NONE
55 x_libraries=NONE
56 bindir='${exec_prefix}/bin'
57 sbindir='${exec_prefix}/sbin'
58 libexecdir='${exec_prefix}/libexec'
59 datadir='${prefix}/share'
60 sysconfdir='${prefix}/etc'
61 sharedstatedir='${prefix}/com'
62 localstatedir='${prefix}/var'
63 libdir='${exec_prefix}/lib'
64 includedir='${prefix}/include'
65 oldincludedir='/usr/include'
66 infodir='${prefix}/info'
67 mandir='${prefix}/man'
68
69 # Initialize some other variables.
70 subdirs=
71 MFLAGS= MAKEFLAGS=
72 SHELL=${CONFIG_SHELL-/bin/sh}
73 # Maximum number of lines to put in a shell here document.
74 ac_max_here_lines=12
75
76 ac_prev=
77 for ac_option
78 do
79
80   # If the previous option needs an argument, assign it.
81   if test -n "$ac_prev"; then
82     eval "$ac_prev=\$ac_option"
83     ac_prev=
84     continue
85   fi
86
87   case "$ac_option" in
88   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
89   *) ac_optarg= ;;
90   esac
91
92   # Accept the important Cygnus configure options, so we can diagnose typos.
93
94   case "$ac_option" in
95
96   -bindir | --bindir | --bindi | --bind | --bin | --bi)
97     ac_prev=bindir ;;
98   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
99     bindir="$ac_optarg" ;;
100
101   -build | --build | --buil | --bui | --bu)
102     ac_prev=build ;;
103   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
104     build="$ac_optarg" ;;
105
106   -cache-file | --cache-file | --cache-fil | --cache-fi \
107   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
108     ac_prev=cache_file ;;
109   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
110   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
111     cache_file="$ac_optarg" ;;
112
113   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
114     ac_prev=datadir ;;
115   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
116   | --da=*)
117     datadir="$ac_optarg" ;;
118
119   -disable-* | --disable-*)
120     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
121     # Reject names that are not valid shell variable names.
122     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
123       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
124     fi
125     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
126     eval "enable_${ac_feature}=no" ;;
127
128   -enable-* | --enable-*)
129     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
130     # Reject names that are not valid shell variable names.
131     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
132       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
133     fi
134     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
135     case "$ac_option" in
136       *=*) ;;
137       *) ac_optarg=yes ;;
138     esac
139     eval "enable_${ac_feature}='$ac_optarg'" ;;
140
141   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
142   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
143   | --exec | --exe | --ex)
144     ac_prev=exec_prefix ;;
145   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
146   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
147   | --exec=* | --exe=* | --ex=*)
148     exec_prefix="$ac_optarg" ;;
149
150   -gas | --gas | --ga | --g)
151     # Obsolete; use --with-gas.
152     with_gas=yes ;;
153
154   -help | --help | --hel | --he)
155     # Omit some internal or obsolete options to make the list less imposing.
156     # This message is too long to be a string in the A/UX 3.1 sh.
157     cat << EOF
158 Usage: configure [options] [host]
159 Options: [defaults in brackets after descriptions]
160 Configuration:
161   --cache-file=FILE       cache test results in FILE
162   --help                  print this message
163   --no-create             do not create output files
164   --quiet, --silent       do not print \`checking...' messages
165   --version               print the version of autoconf that created configure
166 Directory and file names:
167   --prefix=PREFIX         install architecture-independent files in PREFIX
168                           [$ac_default_prefix]
169   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
170                           [same as prefix]
171   --bindir=DIR            user executables in DIR [EPREFIX/bin]
172   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
173   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
174   --datadir=DIR           read-only architecture-independent data in DIR
175                           [PREFIX/share]
176   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
177   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
178                           [PREFIX/com]
179   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
180   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
181   --includedir=DIR        C header files in DIR [PREFIX/include]
182   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
183   --infodir=DIR           info documentation in DIR [PREFIX/info]
184   --mandir=DIR            man documentation in DIR [PREFIX/man]
185   --srcdir=DIR            find the sources in DIR [configure dir or ..]
186   --program-prefix=PREFIX prepend PREFIX to installed program names
187   --program-suffix=SUFFIX append SUFFIX to installed program names
188   --program-transform-name=PROGRAM
189                           run sed PROGRAM on installed program names
190 EOF
191     cat << EOF
192 Host type:
193   --build=BUILD           configure for building on BUILD [BUILD=HOST]
194   --host=HOST             configure for HOST [guessed]
195   --target=TARGET         configure for TARGET [TARGET=HOST]
196 Features and packages:
197   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
198   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
199   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
200   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
201   --x-includes=DIR        X include files are in DIR
202   --x-libraries=DIR       X library files are in DIR
203 EOF
204     if test -n "$ac_help"; then
205       echo "--enable and --with options recognized:$ac_help"
206     fi
207     exit 0 ;;
208
209   -host | --host | --hos | --ho)
210     ac_prev=host ;;
211   -host=* | --host=* | --hos=* | --ho=*)
212     host="$ac_optarg" ;;
213
214   -includedir | --includedir | --includedi | --included | --include \
215   | --includ | --inclu | --incl | --inc)
216     ac_prev=includedir ;;
217   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
218   | --includ=* | --inclu=* | --incl=* | --inc=*)
219     includedir="$ac_optarg" ;;
220
221   -infodir | --infodir | --infodi | --infod | --info | --inf)
222     ac_prev=infodir ;;
223   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
224     infodir="$ac_optarg" ;;
225
226   -libdir | --libdir | --libdi | --libd)
227     ac_prev=libdir ;;
228   -libdir=* | --libdir=* | --libdi=* | --libd=*)
229     libdir="$ac_optarg" ;;
230
231   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
232   | --libexe | --libex | --libe)
233     ac_prev=libexecdir ;;
234   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
235   | --libexe=* | --libex=* | --libe=*)
236     libexecdir="$ac_optarg" ;;
237
238   -localstatedir | --localstatedir | --localstatedi | --localstated \
239   | --localstate | --localstat | --localsta | --localst \
240   | --locals | --local | --loca | --loc | --lo)
241     ac_prev=localstatedir ;;
242   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
243   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
244   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
245     localstatedir="$ac_optarg" ;;
246
247   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
248     ac_prev=mandir ;;
249   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
250     mandir="$ac_optarg" ;;
251
252   -nfp | --nfp | --nf)
253     # Obsolete; use --without-fp.
254     with_fp=no ;;
255
256   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
257   | --no-cr | --no-c)
258     no_create=yes ;;
259
260   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
261   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
262     no_recursion=yes ;;
263
264   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
265   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
266   | --oldin | --oldi | --old | --ol | --o)
267     ac_prev=oldincludedir ;;
268   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
269   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
270   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
271     oldincludedir="$ac_optarg" ;;
272
273   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
274     ac_prev=prefix ;;
275   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
276     prefix="$ac_optarg" ;;
277
278   -program-prefix | --program-prefix | --program-prefi | --program-pref \
279   | --program-pre | --program-pr | --program-p)
280     ac_prev=program_prefix ;;
281   -program-prefix=* | --program-prefix=* | --program-prefi=* \
282   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
283     program_prefix="$ac_optarg" ;;
284
285   -program-suffix | --program-suffix | --program-suffi | --program-suff \
286   | --program-suf | --program-su | --program-s)
287     ac_prev=program_suffix ;;
288   -program-suffix=* | --program-suffix=* | --program-suffi=* \
289   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
290     program_suffix="$ac_optarg" ;;
291
292   -program-transform-name | --program-transform-name \
293   | --program-transform-nam | --program-transform-na \
294   | --program-transform-n | --program-transform- \
295   | --program-transform | --program-transfor \
296   | --program-transfo | --program-transf \
297   | --program-trans | --program-tran \
298   | --progr-tra | --program-tr | --program-t)
299     ac_prev=program_transform_name ;;
300   -program-transform-name=* | --program-transform-name=* \
301   | --program-transform-nam=* | --program-transform-na=* \
302   | --program-transform-n=* | --program-transform-=* \
303   | --program-transform=* | --program-transfor=* \
304   | --program-transfo=* | --program-transf=* \
305   | --program-trans=* | --program-tran=* \
306   | --progr-tra=* | --program-tr=* | --program-t=*)
307     program_transform_name="$ac_optarg" ;;
308
309   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
310   | -silent | --silent | --silen | --sile | --sil)
311     silent=yes ;;
312
313   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
314     ac_prev=sbindir ;;
315   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
316   | --sbi=* | --sb=*)
317     sbindir="$ac_optarg" ;;
318
319   -sharedstatedir | --sharedstatedir | --sharedstatedi \
320   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
321   | --sharedst | --shareds | --shared | --share | --shar \
322   | --sha | --sh)
323     ac_prev=sharedstatedir ;;
324   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
325   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
326   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
327   | --sha=* | --sh=*)
328     sharedstatedir="$ac_optarg" ;;
329
330   -site | --site | --sit)
331     ac_prev=site ;;
332   -site=* | --site=* | --sit=*)
333     site="$ac_optarg" ;;
334
335   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
336     ac_prev=srcdir ;;
337   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
338     srcdir="$ac_optarg" ;;
339
340   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
341   | --syscon | --sysco | --sysc | --sys | --sy)
342     ac_prev=sysconfdir ;;
343   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
344   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
345     sysconfdir="$ac_optarg" ;;
346
347   -target | --target | --targe | --targ | --tar | --ta | --t)
348     ac_prev=target ;;
349   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
350     target="$ac_optarg" ;;
351
352   -v | -verbose | --verbose | --verbos | --verbo | --verb)
353     verbose=yes ;;
354
355   -version | --version | --versio | --versi | --vers)
356     echo "configure generated by autoconf version 2.13"
357     exit 0 ;;
358
359   -with-* | --with-*)
360     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
361     # Reject names that are not valid shell variable names.
362     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
363       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
364     fi
365     ac_package=`echo $ac_package| sed 's/-/_/g'`
366     case "$ac_option" in
367       *=*) ;;
368       *) ac_optarg=yes ;;
369     esac
370     eval "with_${ac_package}='$ac_optarg'" ;;
371
372   -without-* | --without-*)
373     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
374     # Reject names that are not valid shell variable names.
375     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
376       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
377     fi
378     ac_package=`echo $ac_package| sed 's/-/_/g'`
379     eval "with_${ac_package}=no" ;;
380
381   --x)
382     # Obsolete; use --with-x.
383     with_x=yes ;;
384
385   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
386   | --x-incl | --x-inc | --x-in | --x-i)
387     ac_prev=x_includes ;;
388   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
389   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
390     x_includes="$ac_optarg" ;;
391
392   -x-libraries | --x-libraries | --x-librarie | --x-librari \
393   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
394     ac_prev=x_libraries ;;
395   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
396   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
397     x_libraries="$ac_optarg" ;;
398
399   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
400     ;;
401
402   *)
403     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
404       echo "configure: warning: $ac_option: invalid host type" 1>&2
405     fi
406     if test "x$nonopt" != xNONE; then
407       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
408     fi
409     nonopt="$ac_option"
410     ;;
411
412   esac
413 done
414
415 if test -n "$ac_prev"; then
416   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
417 fi
418
419 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
420
421 # File descriptor usage:
422 # 0 standard input
423 # 1 file creation
424 # 2 errors and warnings
425 # 3 some systems may open it to /dev/tty
426 # 4 used on the Kubota Titan
427 # 6 checking for... messages and results
428 # 5 compiler messages saved in config.log
429 if test "$silent" = yes; then
430   exec 6>/dev/null
431 else
432   exec 6>&1
433 fi
434 exec 5>./config.log
435
436 echo "\
437 This file contains any messages produced by compilers while
438 running configure, to aid debugging if configure makes a mistake.
439 " 1>&5
440
441 # Strip out --no-create and --no-recursion so they do not pile up.
442 # Also quote any args containing shell metacharacters.
443 ac_configure_args=
444 for ac_arg
445 do
446   case "$ac_arg" in
447   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
448   | --no-cr | --no-c) ;;
449   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
450   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
451   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
452   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
453   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
454   esac
455 done
456
457 # NLS nuisances.
458 # Only set these to C if already set.  These must not be set unconditionally
459 # because not all systems understand e.g. LANG=C (notably SCO).
460 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
461 # Non-C LC_CTYPE values break the ctype check.
462 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
463 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
464 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
465 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
466
467 # confdefs.h avoids OS command line length limits that DEFS can exceed.
468 rm -rf conftest* confdefs.h
469 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
470 echo > confdefs.h
471
472 # A filename unique to this package, relative to the directory that
473 # configure is in, which we can look for to find out if srcdir is correct.
474 ac_unique_file=src/config/stds.h
475
476 # Find the source files, if location was not specified.
477 if test -z "$srcdir"; then
478   ac_srcdir_defaulted=yes
479   # Try the directory containing this script, then its parent.
480   ac_prog=$0
481   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
482   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
483   srcdir=$ac_confdir
484   if test ! -r $srcdir/$ac_unique_file; then
485     srcdir=..
486   fi
487 else
488   ac_srcdir_defaulted=no
489 fi
490 if test ! -r $srcdir/$ac_unique_file; then
491   if test "$ac_srcdir_defaulted" = yes; then
492     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
493   else
494     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
495   fi
496 fi
497 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
498
499 # Prefer explicitly selected file to automatically selected ones.
500 if test -z "$CONFIG_SITE"; then
501   if test "x$prefix" != xNONE; then
502     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
503   else
504     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
505   fi
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 ac_aux_dir=
545 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
546   if test -f $ac_dir/install-sh; then
547     ac_aux_dir=$ac_dir
548     ac_install_sh="$ac_aux_dir/install-sh -c"
549     break
550   elif test -f $ac_dir/install.sh; then
551     ac_aux_dir=$ac_dir
552     ac_install_sh="$ac_aux_dir/install.sh -c"
553     break
554   fi
555 done
556 if test -z "$ac_aux_dir"; then
557   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
558 fi
559 ac_config_guess=$ac_aux_dir/config.guess
560 ac_config_sub=$ac_aux_dir/config.sub
561 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
562
563 # Find a good install program.  We prefer a C program (faster),
564 # so one script is as good as another.  But avoid the broken or
565 # incompatible versions:
566 # SysV /etc/install, /usr/sbin/install
567 # SunOS /usr/etc/install
568 # IRIX /sbin/install
569 # AIX /bin/install
570 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
571 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
572 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
573 # ./install, which can be erroneously created by make from ./install.sh.
574 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
575 echo "configure:576: checking for a BSD compatible install" >&5
576 if test -z "$INSTALL"; then
577 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
578   echo $ac_n "(cached) $ac_c" 1>&6
579 else
580     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
581   for ac_dir in $PATH; do
582     # Account for people who put trailing slashes in PATH elements.
583     case "$ac_dir/" in
584     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
585     *)
586       # OSF1 and SCO ODT 3.0 have their own names for install.
587       # Don't use installbsd from OSF since it installs stuff as root
588       # by default.
589       for ac_prog in ginstall scoinst install; do
590         if test -f $ac_dir/$ac_prog; then
591           if test $ac_prog = install &&
592             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
593             # AIX install.  It has an incompatible calling convention.
594             :
595           else
596             ac_cv_path_install="$ac_dir/$ac_prog -c"
597             break 2
598           fi
599         fi
600       done
601       ;;
602     esac
603   done
604   IFS="$ac_save_IFS"
605
606 fi
607   if test "${ac_cv_path_install+set}" = set; then
608     INSTALL="$ac_cv_path_install"
609   else
610     # As a last resort, use the slow shell script.  We don't cache a
611     # path for INSTALL within a source directory, because that will
612     # break other packages using the cache if that directory is
613     # removed, or if the path is relative.
614     INSTALL="$ac_install_sh"
615   fi
616 fi
617 echo "$ac_t""$INSTALL" 1>&6
618
619 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
620 # It thinks the first close brace ends the variable substitution.
621 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
622
623 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
624
625 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
626
627 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
628 echo "configure:629: checking whether build environment is sane" >&5
629 # Just in case
630 sleep 1
631 echo timestamp > conftestfile
632 # Do `set' in a subshell so we don't clobber the current shell's
633 # arguments.  Must try -L first in case configure is actually a
634 # symlink; some systems play weird games with the mod time of symlinks
635 # (eg FreeBSD returns the mod time of the symlink's containing
636 # directory).
637 if (
638    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
639    if test "$*" = "X"; then
640       # -L didn't work.
641       set X `ls -t $srcdir/configure conftestfile`
642    fi
643    if test "$*" != "X $srcdir/configure conftestfile" \
644       && test "$*" != "X conftestfile $srcdir/configure"; then
645
646       # If neither matched, then we have a broken ls.  This can happen
647       # if, for instance, CONFIG_SHELL is bash and it inherits a
648       # broken ls alias from the environment.  This has actually
649       # happened.  Such a system could not be considered "sane".
650       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
651 alias in your environment" 1>&2; exit 1; }
652    fi
653
654    test "$2" = conftestfile
655    )
656 then
657    # Ok.
658    :
659 else
660    { echo "configure: error: newly created file is older than distributed files!
661 Check your system clock" 1>&2; exit 1; }
662 fi
663 rm -f conftest*
664 echo "$ac_t""yes" 1>&6
665 if test "$program_transform_name" = s,x,x,; then
666   program_transform_name=
667 else
668   # Double any \ or $.  echo might interpret backslashes.
669   cat <<\EOF_SED > conftestsed
670 s,\\,\\\\,g; s,\$,$$,g
671 EOF_SED
672   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
673   rm -f conftestsed
674 fi
675 test "$program_prefix" != NONE &&
676   program_transform_name="s,^,${program_prefix},; $program_transform_name"
677 # Use a double $ so make ignores it.
678 test "$program_suffix" != NONE &&
679   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
680
681 # sed with no file args requires a program.
682 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
683
684 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
685 echo "configure:686: checking whether ${MAKE-make} sets \${MAKE}" >&5
686 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
687 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
688   echo $ac_n "(cached) $ac_c" 1>&6
689 else
690   cat > conftestmake <<\EOF
691 all:
692         @echo 'ac_maketemp="${MAKE}"'
693 EOF
694 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
695 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
696 if test -n "$ac_maketemp"; then
697   eval ac_cv_prog_make_${ac_make}_set=yes
698 else
699   eval ac_cv_prog_make_${ac_make}_set=no
700 fi
701 rm -f conftestmake
702 fi
703 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
704   echo "$ac_t""yes" 1>&6
705   SET_MAKE=
706 else
707   echo "$ac_t""no" 1>&6
708   SET_MAKE="MAKE=${MAKE-make}"
709 fi
710
711
712 PACKAGE=openafs
713
714 VERSION=devel
715
716 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
717   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
718 fi
719 cat >> confdefs.h <<EOF
720 #define PACKAGE "$PACKAGE"
721 EOF
722
723 cat >> confdefs.h <<EOF
724 #define VERSION "$VERSION"
725 EOF
726
727
728
729 missing_dir=`cd $ac_aux_dir && pwd`
730 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
731 echo "configure:732: checking for working aclocal" >&5
732 # Run test in a subshell; some versions of sh will print an error if
733 # an executable is not found, even if stderr is redirected.
734 # Redirect stdin to placate older versions of autoconf.  Sigh.
735 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
736    ACLOCAL=aclocal
737    echo "$ac_t""found" 1>&6
738 else
739    ACLOCAL="$missing_dir/missing aclocal"
740    echo "$ac_t""missing" 1>&6
741 fi
742
743 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
744 echo "configure:745: checking for working autoconf" >&5
745 # Run test in a subshell; some versions of sh will print an error if
746 # an executable is not found, even if stderr is redirected.
747 # Redirect stdin to placate older versions of autoconf.  Sigh.
748 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
749    AUTOCONF=autoconf
750    echo "$ac_t""found" 1>&6
751 else
752    AUTOCONF="$missing_dir/missing autoconf"
753    echo "$ac_t""missing" 1>&6
754 fi
755
756 echo $ac_n "checking for working automake""... $ac_c" 1>&6
757 echo "configure:758: checking for working automake" >&5
758 # Run test in a subshell; some versions of sh will print an error if
759 # an executable is not found, even if stderr is redirected.
760 # Redirect stdin to placate older versions of autoconf.  Sigh.
761 if (automake --version) < /dev/null > /dev/null 2>&1; then
762    AUTOMAKE=automake
763    echo "$ac_t""found" 1>&6
764 else
765    AUTOMAKE="$missing_dir/missing automake"
766    echo "$ac_t""missing" 1>&6
767 fi
768
769 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
770 echo "configure:771: checking for working autoheader" >&5
771 # Run test in a subshell; some versions of sh will print an error if
772 # an executable is not found, even if stderr is redirected.
773 # Redirect stdin to placate older versions of autoconf.  Sigh.
774 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
775    AUTOHEADER=autoheader
776    echo "$ac_t""found" 1>&6
777 else
778    AUTOHEADER="$missing_dir/missing autoheader"
779    echo "$ac_t""missing" 1>&6
780 fi
781
782 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
783 echo "configure:784: checking for working makeinfo" >&5
784 # Run test in a subshell; some versions of sh will print an error if
785 # an executable is not found, even if stderr is redirected.
786 # Redirect stdin to placate older versions of autoconf.  Sigh.
787 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
788    MAKEINFO=makeinfo
789    echo "$ac_t""found" 1>&6
790 else
791    MAKEINFO="$missing_dir/missing makeinfo"
792    echo "$ac_t""missing" 1>&6
793 fi
794
795
796
797 # Make sure we can run config.sub.
798 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
799 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
800 fi
801
802 echo $ac_n "checking host system type""... $ac_c" 1>&6
803 echo "configure:804: checking host system type" >&5
804
805 host_alias=$host
806 case "$host_alias" in
807 NONE)
808   case $nonopt in
809   NONE)
810     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
811     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
812     fi ;;
813   *) host_alias=$nonopt ;;
814   esac ;;
815 esac
816
817 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
818 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
819 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
820 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
821 echo "$ac_t""$host" 1>&6
822
823
824
825 #BOZO_SAVE_CORES BOS_RESTRICTED_MODE BOS_NEW_CONFIG pam sia  BITMAP_LATER FAST_RESTART
826 # Check whether --with-afs-sysname or --without-afs-sysname was given.
827 if test "${with_afs_sysname+set}" = set; then
828   withval="$with_afs_sysname"
829   :
830 fi
831
832 # Check whether --enable-obsolete or --disable-obsolete was given.
833 if test "${enable_obsolete+set}" = set; then
834   enableval="$enable_obsolete"
835   :
836 else
837   enable_obsolete="no"
838 fi
839
840 # Check whether --enable-insecure or --disable-insecure was given.
841 if test "${enable_insecure+set}" = set; then
842   enableval="$enable_insecure"
843   :
844 else
845   enable_insecure="no"
846 fi
847
848 # Check whether --enable-afsdb or --disable-afsdb was given.
849 if test "${enable_afsdb+set}" = set; then
850   enableval="$enable_afsdb"
851   :
852 else
853   enable_afsdb="yes"
854 fi
855
856 # Check whether --enable-bos-restricted-mode or --disable-bos-restricted-mode was given.
857 if test "${enable_bos_restricted_mode+set}" = set; then
858   enableval="$enable_bos_restricted_mode"
859   :
860 else
861   enable_bos_restricted_mode="no"
862 fi
863
864 # Check whether --enable-namei-fileserver or --disable-namei-fileserver was given.
865 if test "${enable_namei_fileserver+set}" = set; then
866   enableval="$enable_namei_fileserver"
867   :
868 else
869   enable_namei_fileserver="no"
870 fi
871
872 # Check whether --with-linux-kernel-headers or --without-linux-kernel-headers was given.
873 if test "${with_linux_kernel_headers+set}" = set; then
874   withval="$with_linux_kernel_headers"
875   :
876 fi
877
878
879 # Extract the first word of "gcc", so it can be a program name with args.
880 set dummy gcc; ac_word=$2
881 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
882 echo "configure:883: checking for $ac_word" >&5
883 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
884   echo $ac_n "(cached) $ac_c" 1>&6
885 else
886   if test -n "$CC"; then
887   ac_cv_prog_CC="$CC" # Let the user override the test.
888 else
889   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
890   ac_dummy="$PATH"
891   for ac_dir in $ac_dummy; do
892     test -z "$ac_dir" && ac_dir=.
893     if test -f $ac_dir/$ac_word; then
894       ac_cv_prog_CC="gcc"
895       break
896     fi
897   done
898   IFS="$ac_save_ifs"
899 fi
900 fi
901 CC="$ac_cv_prog_CC"
902 if test -n "$CC"; then
903   echo "$ac_t""$CC" 1>&6
904 else
905   echo "$ac_t""no" 1>&6
906 fi
907
908 if test -z "$CC"; then
909   # Extract the first word of "cc", so it can be a program name with args.
910 set dummy cc; ac_word=$2
911 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
912 echo "configure:913: checking for $ac_word" >&5
913 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
914   echo $ac_n "(cached) $ac_c" 1>&6
915 else
916   if test -n "$CC"; then
917   ac_cv_prog_CC="$CC" # Let the user override the test.
918 else
919   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
920   ac_prog_rejected=no
921   ac_dummy="$PATH"
922   for ac_dir in $ac_dummy; do
923     test -z "$ac_dir" && ac_dir=.
924     if test -f $ac_dir/$ac_word; then
925       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
926         ac_prog_rejected=yes
927         continue
928       fi
929       ac_cv_prog_CC="cc"
930       break
931     fi
932   done
933   IFS="$ac_save_ifs"
934 if test $ac_prog_rejected = yes; then
935   # We found a bogon in the path, so make sure we never use it.
936   set dummy $ac_cv_prog_CC
937   shift
938   if test $# -gt 0; then
939     # We chose a different compiler from the bogus one.
940     # However, it has the same basename, so the bogon will be chosen
941     # first if we set CC to just the basename; use the full file name.
942     shift
943     set dummy "$ac_dir/$ac_word" "$@"
944     shift
945     ac_cv_prog_CC="$@"
946   fi
947 fi
948 fi
949 fi
950 CC="$ac_cv_prog_CC"
951 if test -n "$CC"; then
952   echo "$ac_t""$CC" 1>&6
953 else
954   echo "$ac_t""no" 1>&6
955 fi
956
957   if test -z "$CC"; then
958     case "`uname -s`" in
959     *win32* | *WIN32*)
960       # Extract the first word of "cl", so it can be a program name with args.
961 set dummy cl; ac_word=$2
962 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
963 echo "configure:964: checking for $ac_word" >&5
964 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
965   echo $ac_n "(cached) $ac_c" 1>&6
966 else
967   if test -n "$CC"; then
968   ac_cv_prog_CC="$CC" # Let the user override the test.
969 else
970   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
971   ac_dummy="$PATH"
972   for ac_dir in $ac_dummy; do
973     test -z "$ac_dir" && ac_dir=.
974     if test -f $ac_dir/$ac_word; then
975       ac_cv_prog_CC="cl"
976       break
977     fi
978   done
979   IFS="$ac_save_ifs"
980 fi
981 fi
982 CC="$ac_cv_prog_CC"
983 if test -n "$CC"; then
984   echo "$ac_t""$CC" 1>&6
985 else
986   echo "$ac_t""no" 1>&6
987 fi
988  ;;
989     esac
990   fi
991   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
992 fi
993
994 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
995 echo "configure:996: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
996
997 ac_ext=c
998 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
999 ac_cpp='$CPP $CPPFLAGS'
1000 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1001 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1002 cross_compiling=$ac_cv_prog_cc_cross
1003
1004 cat > conftest.$ac_ext << EOF
1005
1006 #line 1007 "configure"
1007 #include "confdefs.h"
1008
1009 main(){return(0);}
1010 EOF
1011 if { (eval echo configure:1012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1012   ac_cv_prog_cc_works=yes
1013   # If we can't run a trivial program, we are probably using a cross compiler.
1014   if (./conftest; exit) 2>/dev/null; then
1015     ac_cv_prog_cc_cross=no
1016   else
1017     ac_cv_prog_cc_cross=yes
1018   fi
1019 else
1020   echo "configure: failed program was:" >&5
1021   cat conftest.$ac_ext >&5
1022   ac_cv_prog_cc_works=no
1023 fi
1024 rm -fr conftest*
1025 ac_ext=c
1026 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1027 ac_cpp='$CPP $CPPFLAGS'
1028 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1029 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1030 cross_compiling=$ac_cv_prog_cc_cross
1031
1032 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1033 if test $ac_cv_prog_cc_works = no; then
1034   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1035 fi
1036 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1037 echo "configure:1038: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1038 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1039 cross_compiling=$ac_cv_prog_cc_cross
1040
1041 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1042 echo "configure:1043: checking whether we are using GNU C" >&5
1043 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1044   echo $ac_n "(cached) $ac_c" 1>&6
1045 else
1046   cat > conftest.c <<EOF
1047 #ifdef __GNUC__
1048   yes;
1049 #endif
1050 EOF
1051 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1052   ac_cv_prog_gcc=yes
1053 else
1054   ac_cv_prog_gcc=no
1055 fi
1056 fi
1057
1058 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1059
1060 if test $ac_cv_prog_gcc = yes; then
1061   GCC=yes
1062 else
1063   GCC=
1064 fi
1065
1066 ac_test_CFLAGS="${CFLAGS+set}"
1067 ac_save_CFLAGS="$CFLAGS"
1068 CFLAGS=
1069 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1070 echo "configure:1071: checking whether ${CC-cc} accepts -g" >&5
1071 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1072   echo $ac_n "(cached) $ac_c" 1>&6
1073 else
1074   echo 'void f(){}' > conftest.c
1075 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1076   ac_cv_prog_cc_g=yes
1077 else
1078   ac_cv_prog_cc_g=no
1079 fi
1080 rm -f conftest*
1081
1082 fi
1083
1084 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1085 if test "$ac_test_CFLAGS" = set; then
1086   CFLAGS="$ac_save_CFLAGS"
1087 elif test $ac_cv_prog_cc_g = yes; then
1088   if test "$GCC" = yes; then
1089     CFLAGS="-g -O2"
1090   else
1091     CFLAGS="-g"
1092   fi
1093 else
1094   if test "$GCC" = yes; then
1095     CFLAGS="-O2"
1096   else
1097     CFLAGS=
1098   fi
1099 fi
1100
1101
1102 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1103 echo "configure:1104: checking how to run the C preprocessor" >&5
1104 # On Suns, sometimes $CPP names a directory.
1105 if test -n "$CPP" && test -d "$CPP"; then
1106   CPP=
1107 fi
1108 if test -z "$CPP"; then
1109 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1110   echo $ac_n "(cached) $ac_c" 1>&6
1111 else
1112     # This must be in double quotes, not single quotes, because CPP may get
1113   # substituted into the Makefile and "${CC-cc}" will confuse make.
1114   CPP="${CC-cc} -E"
1115   # On the NeXT, cc -E runs the code through the compiler's parser,
1116   # not just through cpp.
1117   cat > conftest.$ac_ext <<EOF
1118 #line 1119 "configure"
1119 #include "confdefs.h"
1120 #include <assert.h>
1121 Syntax Error
1122 EOF
1123 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1124 { (eval echo configure:1125: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1125 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1126 if test -z "$ac_err"; then
1127   :
1128 else
1129   echo "$ac_err" >&5
1130   echo "configure: failed program was:" >&5
1131   cat conftest.$ac_ext >&5
1132   rm -rf conftest*
1133   CPP="${CC-cc} -E -traditional-cpp"
1134   cat > conftest.$ac_ext <<EOF
1135 #line 1136 "configure"
1136 #include "confdefs.h"
1137 #include <assert.h>
1138 Syntax Error
1139 EOF
1140 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1141 { (eval echo configure:1142: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1142 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1143 if test -z "$ac_err"; then
1144   :
1145 else
1146   echo "$ac_err" >&5
1147   echo "configure: failed program was:" >&5
1148   cat conftest.$ac_ext >&5
1149   rm -rf conftest*
1150   CPP="${CC-cc} -nologo -E"
1151   cat > conftest.$ac_ext <<EOF
1152 #line 1153 "configure"
1153 #include "confdefs.h"
1154 #include <assert.h>
1155 Syntax Error
1156 EOF
1157 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1158 { (eval echo configure:1159: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1159 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1160 if test -z "$ac_err"; then
1161   :
1162 else
1163   echo "$ac_err" >&5
1164   echo "configure: failed program was:" >&5
1165   cat conftest.$ac_ext >&5
1166   rm -rf conftest*
1167   CPP=/lib/cpp
1168 fi
1169 rm -f conftest*
1170 fi
1171 rm -f conftest*
1172 fi
1173 rm -f conftest*
1174   ac_cv_prog_CPP="$CPP"
1175 fi
1176   CPP="$ac_cv_prog_CPP"
1177 else
1178   ac_cv_prog_CPP="$CPP"
1179 fi
1180 echo "$ac_t""$CPP" 1>&6
1181
1182 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1183 echo "configure:1184: checking for AIX" >&5
1184 cat > conftest.$ac_ext <<EOF
1185 #line 1186 "configure"
1186 #include "confdefs.h"
1187 #ifdef _AIX
1188   yes
1189 #endif
1190
1191 EOF
1192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1193   egrep "yes" >/dev/null 2>&1; then
1194   rm -rf conftest*
1195   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1196 #define _ALL_SOURCE 1
1197 EOF
1198
1199 else
1200   rm -rf conftest*
1201   echo "$ac_t""no" 1>&6
1202 fi
1203 rm -f conftest*
1204
1205
1206 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1207 echo "configure:1208: checking for POSIXized ISC" >&5
1208 if test -d /etc/conf/kconfig.d &&
1209   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1210 then
1211   echo "$ac_t""yes" 1>&6
1212   ISC=yes # If later tests want to check for ISC.
1213   cat >> confdefs.h <<\EOF
1214 #define _POSIX_SOURCE 1
1215 EOF
1216
1217   if test "$GCC" = yes; then
1218     CC="$CC -posix"
1219   else
1220     CC="$CC -Xp"
1221   fi
1222 else
1223   echo "$ac_t""no" 1>&6
1224   ISC=
1225 fi
1226
1227 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1228 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1229 echo "configure:1230: checking for minix/config.h" >&5
1230 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1231   echo $ac_n "(cached) $ac_c" 1>&6
1232 else
1233   cat > conftest.$ac_ext <<EOF
1234 #line 1235 "configure"
1235 #include "confdefs.h"
1236 #include <minix/config.h>
1237 EOF
1238 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1239 { (eval echo configure:1240: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1240 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1241 if test -z "$ac_err"; then
1242   rm -rf conftest*
1243   eval "ac_cv_header_$ac_safe=yes"
1244 else
1245   echo "$ac_err" >&5
1246   echo "configure: failed program was:" >&5
1247   cat conftest.$ac_ext >&5
1248   rm -rf conftest*
1249   eval "ac_cv_header_$ac_safe=no"
1250 fi
1251 rm -f conftest*
1252 fi
1253 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1254   echo "$ac_t""yes" 1>&6
1255   MINIX=yes
1256 else
1257   echo "$ac_t""no" 1>&6
1258 MINIX=
1259 fi
1260
1261 if test "$MINIX" = yes; then
1262   cat >> confdefs.h <<\EOF
1263 #define _POSIX_SOURCE 1
1264 EOF
1265
1266   cat >> confdefs.h <<\EOF
1267 #define _POSIX_1_SOURCE 2
1268 EOF
1269
1270   cat >> confdefs.h <<\EOF
1271 #define _MINIX 1
1272 EOF
1273
1274 fi
1275
1276
1277 echo $ac_n "checking for inline""... $ac_c" 1>&6
1278 echo "configure:1279: checking for inline" >&5
1279 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1280   echo $ac_n "(cached) $ac_c" 1>&6
1281 else
1282   ac_cv_c_inline=no
1283 for ac_kw in inline __inline__ __inline; do
1284   cat > conftest.$ac_ext <<EOF
1285 #line 1286 "configure"
1286 #include "confdefs.h"
1287
1288 int main() {
1289 } $ac_kw foo() {
1290 ; return 0; }
1291 EOF
1292 if { (eval echo configure:1293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1293   rm -rf conftest*
1294   ac_cv_c_inline=$ac_kw; break
1295 else
1296   echo "configure: failed program was:" >&5
1297   cat conftest.$ac_ext >&5
1298 fi
1299 rm -f conftest*
1300 done
1301
1302 fi
1303
1304 echo "$ac_t""$ac_cv_c_inline" 1>&6
1305 case "$ac_cv_c_inline" in
1306   inline | yes) ;;
1307   no) cat >> confdefs.h <<\EOF
1308 #define inline 
1309 EOF
1310  ;;
1311   *)  cat >> confdefs.h <<EOF
1312 #define inline $ac_cv_c_inline
1313 EOF
1314  ;;
1315 esac
1316
1317 echo $ac_n "checking for working const""... $ac_c" 1>&6
1318 echo "configure:1319: checking for working const" >&5
1319 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1320   echo $ac_n "(cached) $ac_c" 1>&6
1321 else
1322   cat > conftest.$ac_ext <<EOF
1323 #line 1324 "configure"
1324 #include "confdefs.h"
1325
1326 int main() {
1327
1328 /* Ultrix mips cc rejects this.  */
1329 typedef int charset[2]; const charset x;
1330 /* SunOS 4.1.1 cc rejects this.  */
1331 char const *const *ccp;
1332 char **p;
1333 /* NEC SVR4.0.2 mips cc rejects this.  */
1334 struct point {int x, y;};
1335 static struct point const zero = {0,0};
1336 /* AIX XL C 1.02.0.0 rejects this.
1337    It does not let you subtract one const X* pointer from another in an arm
1338    of an if-expression whose if-part is not a constant expression */
1339 const char *g = "string";
1340 ccp = &g + (g ? g-g : 0);
1341 /* HPUX 7.0 cc rejects these. */
1342 ++ccp;
1343 p = (char**) ccp;
1344 ccp = (char const *const *) p;
1345 { /* SCO 3.2v4 cc rejects this.  */
1346   char *t;
1347   char const *s = 0 ? (char *) 0 : (char const *) 0;
1348
1349   *t++ = 0;
1350 }
1351 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
1352   int x[] = {25, 17};
1353   const int *foo = &x[0];
1354   ++foo;
1355 }
1356 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1357   typedef const int *iptr;
1358   iptr p = 0;
1359   ++p;
1360 }
1361 { /* AIX XL C 1.02.0.0 rejects this saying
1362      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1363   struct s { int j; const int *ap[3]; };
1364   struct s *b; b->j = 5;
1365 }
1366 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1367   const int foo = 10;
1368 }
1369
1370 ; return 0; }
1371 EOF
1372 if { (eval echo configure:1373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1373   rm -rf conftest*
1374   ac_cv_c_const=yes
1375 else
1376   echo "configure: failed program was:" >&5
1377   cat conftest.$ac_ext >&5
1378   rm -rf conftest*
1379   ac_cv_c_const=no
1380 fi
1381 rm -f conftest*
1382 fi
1383
1384 echo "$ac_t""$ac_cv_c_const" 1>&6
1385 if test $ac_cv_c_const = no; then
1386   cat >> confdefs.h <<\EOF
1387 #define const 
1388 EOF
1389
1390 fi
1391
1392 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1393 echo "configure:1394: checking for ANSI C header files" >&5
1394 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1395   echo $ac_n "(cached) $ac_c" 1>&6
1396 else
1397   cat > conftest.$ac_ext <<EOF
1398 #line 1399 "configure"
1399 #include "confdefs.h"
1400 #include <stdlib.h>
1401 #include <stdarg.h>
1402 #include <string.h>
1403 #include <float.h>
1404 EOF
1405 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1406 { (eval echo configure:1407: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1407 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1408 if test -z "$ac_err"; then
1409   rm -rf conftest*
1410   ac_cv_header_stdc=yes
1411 else
1412   echo "$ac_err" >&5
1413   echo "configure: failed program was:" >&5
1414   cat conftest.$ac_ext >&5
1415   rm -rf conftest*
1416   ac_cv_header_stdc=no
1417 fi
1418 rm -f conftest*
1419
1420 if test $ac_cv_header_stdc = yes; then
1421   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1422 cat > conftest.$ac_ext <<EOF
1423 #line 1424 "configure"
1424 #include "confdefs.h"
1425 #include <string.h>
1426 EOF
1427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1428   egrep "memchr" >/dev/null 2>&1; then
1429   :
1430 else
1431   rm -rf conftest*
1432   ac_cv_header_stdc=no
1433 fi
1434 rm -f conftest*
1435
1436 fi
1437
1438 if test $ac_cv_header_stdc = yes; then
1439   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1440 cat > conftest.$ac_ext <<EOF
1441 #line 1442 "configure"
1442 #include "confdefs.h"
1443 #include <stdlib.h>
1444 EOF
1445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1446   egrep "free" >/dev/null 2>&1; then
1447   :
1448 else
1449   rm -rf conftest*
1450   ac_cv_header_stdc=no
1451 fi
1452 rm -f conftest*
1453
1454 fi
1455
1456 if test $ac_cv_header_stdc = yes; then
1457   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1458 if test "$cross_compiling" = yes; then
1459   :
1460 else
1461   cat > conftest.$ac_ext <<EOF
1462 #line 1463 "configure"
1463 #include "confdefs.h"
1464 #include <ctype.h>
1465 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1466 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1467 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1468 int main () { int i; for (i = 0; i < 256; i++)
1469 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1470 exit (0); }
1471
1472 EOF
1473 if { (eval echo configure:1474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1474 then
1475   :
1476 else
1477   echo "configure: failed program was:" >&5
1478   cat conftest.$ac_ext >&5
1479   rm -fr conftest*
1480   ac_cv_header_stdc=no
1481 fi
1482 rm -fr conftest*
1483 fi
1484
1485 fi
1486 fi
1487
1488 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1489 if test $ac_cv_header_stdc = yes; then
1490   cat >> confdefs.h <<\EOF
1491 #define STDC_HEADERS 1
1492 EOF
1493
1494 fi
1495
1496 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
1497 echo "configure:1498: checking for pid_t" >&5
1498 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
1499   echo $ac_n "(cached) $ac_c" 1>&6
1500 else
1501   cat > conftest.$ac_ext <<EOF
1502 #line 1503 "configure"
1503 #include "confdefs.h"
1504 #include <sys/types.h>
1505 #if STDC_HEADERS
1506 #include <stdlib.h>
1507 #include <stddef.h>
1508 #endif
1509 EOF
1510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1511   egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1512   rm -rf conftest*
1513   ac_cv_type_pid_t=yes
1514 else
1515   rm -rf conftest*
1516   ac_cv_type_pid_t=no
1517 fi
1518 rm -f conftest*
1519
1520 fi
1521 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
1522 if test $ac_cv_type_pid_t = no; then
1523   cat >> confdefs.h <<\EOF
1524 #define pid_t int
1525 EOF
1526
1527 fi
1528
1529 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1530 echo "configure:1531: checking for size_t" >&5
1531 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1532   echo $ac_n "(cached) $ac_c" 1>&6
1533 else
1534   cat > conftest.$ac_ext <<EOF
1535 #line 1536 "configure"
1536 #include "confdefs.h"
1537 #include <sys/types.h>
1538 #if STDC_HEADERS
1539 #include <stdlib.h>
1540 #include <stddef.h>
1541 #endif
1542 EOF
1543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1544   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1545   rm -rf conftest*
1546   ac_cv_type_size_t=yes
1547 else
1548   rm -rf conftest*
1549   ac_cv_type_size_t=no
1550 fi
1551 rm -f conftest*
1552
1553 fi
1554 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1555 if test $ac_cv_type_size_t = no; then
1556   cat >> confdefs.h <<\EOF
1557 #define size_t unsigned
1558 EOF
1559
1560 fi
1561
1562 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1563 echo "configure:1564: checking return type of signal handlers" >&5
1564 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1565   echo $ac_n "(cached) $ac_c" 1>&6
1566 else
1567   cat > conftest.$ac_ext <<EOF
1568 #line 1569 "configure"
1569 #include "confdefs.h"
1570 #include <sys/types.h>
1571 #include <signal.h>
1572 #ifdef signal
1573 #undef signal
1574 #endif
1575 #ifdef __cplusplus
1576 extern "C" void (*signal (int, void (*)(int)))(int);
1577 #else
1578 void (*signal ()) ();
1579 #endif
1580
1581 int main() {
1582 int i;
1583 ; return 0; }
1584 EOF
1585 if { (eval echo configure:1586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1586   rm -rf conftest*
1587   ac_cv_type_signal=void
1588 else
1589   echo "configure: failed program was:" >&5
1590   cat conftest.$ac_ext >&5
1591   rm -rf conftest*
1592   ac_cv_type_signal=int
1593 fi
1594 rm -f conftest*
1595 fi
1596
1597 echo "$ac_t""$ac_cv_type_signal" 1>&6
1598 cat >> confdefs.h <<EOF
1599 #define RETSIGTYPE $ac_cv_type_signal
1600 EOF
1601
1602
1603
1604 # Find a good install program.  We prefer a C program (faster),
1605 # so one script is as good as another.  But avoid the broken or
1606 # incompatible versions:
1607 # SysV /etc/install, /usr/sbin/install
1608 # SunOS /usr/etc/install
1609 # IRIX /sbin/install
1610 # AIX /bin/install
1611 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1612 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1613 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1614 # ./install, which can be erroneously created by make from ./install.sh.
1615 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1616 echo "configure:1617: checking for a BSD compatible install" >&5
1617 if test -z "$INSTALL"; then
1618 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1619   echo $ac_n "(cached) $ac_c" 1>&6
1620 else
1621     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1622   for ac_dir in $PATH; do
1623     # Account for people who put trailing slashes in PATH elements.
1624     case "$ac_dir/" in
1625     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1626     *)
1627       # OSF1 and SCO ODT 3.0 have their own names for install.
1628       # Don't use installbsd from OSF since it installs stuff as root
1629       # by default.
1630       for ac_prog in ginstall scoinst install; do
1631         if test -f $ac_dir/$ac_prog; then
1632           if test $ac_prog = install &&
1633             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1634             # AIX install.  It has an incompatible calling convention.
1635             :
1636           else
1637             ac_cv_path_install="$ac_dir/$ac_prog -c"
1638             break 2
1639           fi
1640         fi
1641       done
1642       ;;
1643     esac
1644   done
1645   IFS="$ac_save_IFS"
1646
1647 fi
1648   if test "${ac_cv_path_install+set}" = set; then
1649     INSTALL="$ac_cv_path_install"
1650   else
1651     # As a last resort, use the slow shell script.  We don't cache a
1652     # path for INSTALL within a source directory, because that will
1653     # break other packages using the cache if that directory is
1654     # removed, or if the path is relative.
1655     INSTALL="$ac_install_sh"
1656   fi
1657 fi
1658 echo "$ac_t""$INSTALL" 1>&6
1659
1660 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1661 # It thinks the first close brace ends the variable substitution.
1662 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1663
1664 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1665
1666 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1667
1668 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1669 echo "configure:1670: checking whether ln -s works" >&5
1670 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1671   echo $ac_n "(cached) $ac_c" 1>&6
1672 else
1673   rm -f conftestdata
1674 if ln -s X conftestdata 2>/dev/null
1675 then
1676   rm -f conftestdata
1677   ac_cv_prog_LN_S="ln -s"
1678 else
1679   ac_cv_prog_LN_S=ln
1680 fi
1681 fi
1682 LN_S="$ac_cv_prog_LN_S"
1683 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1684   echo "$ac_t""yes" 1>&6
1685 else
1686   echo "$ac_t""no" 1>&6
1687 fi
1688
1689 # Extract the first word of "ranlib", so it can be a program name with args.
1690 set dummy ranlib; ac_word=$2
1691 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1692 echo "configure:1693: checking for $ac_word" >&5
1693 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1694   echo $ac_n "(cached) $ac_c" 1>&6
1695 else
1696   if test -n "$RANLIB"; then
1697   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1698 else
1699   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1700   ac_dummy="$PATH"
1701   for ac_dir in $ac_dummy; do
1702     test -z "$ac_dir" && ac_dir=.
1703     if test -f $ac_dir/$ac_word; then
1704       ac_cv_prog_RANLIB="ranlib"
1705       break
1706     fi
1707   done
1708   IFS="$ac_save_ifs"
1709   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1710 fi
1711 fi
1712 RANLIB="$ac_cv_prog_RANLIB"
1713 if test -n "$RANLIB"; then
1714   echo "$ac_t""$RANLIB" 1>&6
1715 else
1716   echo "$ac_t""no" 1>&6
1717 fi
1718
1719 for ac_prog in 'bison -y' byacc
1720 do
1721 # Extract the first word of "$ac_prog", so it can be a program name with args.
1722 set dummy $ac_prog; ac_word=$2
1723 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1724 echo "configure:1725: checking for $ac_word" >&5
1725 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1726   echo $ac_n "(cached) $ac_c" 1>&6
1727 else
1728   if test -n "$YACC"; then
1729   ac_cv_prog_YACC="$YACC" # Let the user override the test.
1730 else
1731   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1732   ac_dummy="$PATH"
1733   for ac_dir in $ac_dummy; do
1734     test -z "$ac_dir" && ac_dir=.
1735     if test -f $ac_dir/$ac_word; then
1736       ac_cv_prog_YACC="$ac_prog"
1737       break
1738     fi
1739   done
1740   IFS="$ac_save_ifs"
1741 fi
1742 fi
1743 YACC="$ac_cv_prog_YACC"
1744 if test -n "$YACC"; then
1745   echo "$ac_t""$YACC" 1>&6
1746 else
1747   echo "$ac_t""no" 1>&6
1748 fi
1749
1750 test -n "$YACC" && break
1751 done
1752 test -n "$YACC" || YACC="yacc"
1753
1754 missing_dir=`cd $ac_aux_dir && pwd`
1755 for ac_prog in flex lex
1756 do
1757 # Extract the first word of "$ac_prog", so it can be a program name with args.
1758 set dummy $ac_prog; ac_word=$2
1759 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1760 echo "configure:1761: checking for $ac_word" >&5
1761 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1762   echo $ac_n "(cached) $ac_c" 1>&6
1763 else
1764   if test -n "$LEX"; then
1765   ac_cv_prog_LEX="$LEX" # Let the user override the test.
1766 else
1767   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1768   ac_dummy="$PATH"
1769   for ac_dir in $ac_dummy; do
1770     test -z "$ac_dir" && ac_dir=.
1771     if test -f $ac_dir/$ac_word; then
1772       ac_cv_prog_LEX="$ac_prog"
1773       break
1774     fi
1775   done
1776   IFS="$ac_save_ifs"
1777 fi
1778 fi
1779 LEX="$ac_cv_prog_LEX"
1780 if test -n "$LEX"; then
1781   echo "$ac_t""$LEX" 1>&6
1782 else
1783   echo "$ac_t""no" 1>&6
1784 fi
1785
1786 test -n "$LEX" && break
1787 done
1788 test -n "$LEX" || LEX=""$missing_dir/missing flex""
1789
1790 # Extract the first word of "flex", so it can be a program name with args.
1791 set dummy flex; ac_word=$2
1792 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1793 echo "configure:1794: checking for $ac_word" >&5
1794 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1795   echo $ac_n "(cached) $ac_c" 1>&6
1796 else
1797   if test -n "$LEX"; then
1798   ac_cv_prog_LEX="$LEX" # Let the user override the test.
1799 else
1800   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1801   ac_dummy="$PATH"
1802   for ac_dir in $ac_dummy; do
1803     test -z "$ac_dir" && ac_dir=.
1804     if test -f $ac_dir/$ac_word; then
1805       ac_cv_prog_LEX="flex"
1806       break
1807     fi
1808   done
1809   IFS="$ac_save_ifs"
1810   test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1811 fi
1812 fi
1813 LEX="$ac_cv_prog_LEX"
1814 if test -n "$LEX"; then
1815   echo "$ac_t""$LEX" 1>&6
1816 else
1817   echo "$ac_t""no" 1>&6
1818 fi
1819
1820 if test -z "$LEXLIB"
1821 then
1822   case "$LEX" in
1823   flex*) ac_lib=fl ;;
1824   *) ac_lib=l ;;
1825   esac
1826   echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1827 echo "configure:1828: checking for yywrap in -l$ac_lib" >&5
1828 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1829 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1830   echo $ac_n "(cached) $ac_c" 1>&6
1831 else
1832   ac_save_LIBS="$LIBS"
1833 LIBS="-l$ac_lib  $LIBS"
1834 cat > conftest.$ac_ext <<EOF
1835 #line 1836 "configure"
1836 #include "confdefs.h"
1837 /* Override any gcc2 internal prototype to avoid an error.  */
1838 /* We use char because int might match the return type of a gcc2
1839     builtin and then its argument prototype would still apply.  */
1840 char yywrap();
1841
1842 int main() {
1843 yywrap()
1844 ; return 0; }
1845 EOF
1846 if { (eval echo configure:1847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1847   rm -rf conftest*
1848   eval "ac_cv_lib_$ac_lib_var=yes"
1849 else
1850   echo "configure: failed program was:" >&5
1851   cat conftest.$ac_ext >&5
1852   rm -rf conftest*
1853   eval "ac_cv_lib_$ac_lib_var=no"
1854 fi
1855 rm -f conftest*
1856 LIBS="$ac_save_LIBS"
1857
1858 fi
1859 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1860   echo "$ac_t""yes" 1>&6
1861   LEXLIB="-l$ac_lib"
1862 else
1863   echo "$ac_t""no" 1>&6
1864 fi
1865
1866 fi
1867
1868 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
1869 echo "configure:1870: checking lex output file root" >&5
1870 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
1871   echo $ac_n "(cached) $ac_c" 1>&6
1872 else
1873   # The minimal lex program is just a single line: %%.  But some broken lexes
1874 # (Solaris, I think it was) want two %% lines, so accommodate them.
1875 echo '%%
1876 %%' | $LEX
1877 if test -f lex.yy.c; then
1878   ac_cv_prog_lex_root=lex.yy
1879 elif test -f lexyy.c; then
1880   ac_cv_prog_lex_root=lexyy
1881 else
1882   { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
1883 fi
1884 fi
1885
1886 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
1887 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
1888
1889 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
1890 echo "configure:1891: checking whether yytext is a pointer" >&5
1891 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
1892   echo $ac_n "(cached) $ac_c" 1>&6
1893 else
1894   # POSIX says lex can declare yytext either as a pointer or an array; the
1895 # default is implementation-dependent. Figure out which it is, since
1896 # not all implementations provide the %pointer and %array declarations.
1897 ac_cv_prog_lex_yytext_pointer=no
1898 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
1899 ac_save_LIBS="$LIBS"
1900 LIBS="$LIBS $LEXLIB"
1901 cat > conftest.$ac_ext <<EOF
1902 #line 1903 "configure"
1903 #include "confdefs.h"
1904 `cat $LEX_OUTPUT_ROOT.c`
1905 int main() {
1906
1907 ; return 0; }
1908 EOF
1909 if { (eval echo configure:1910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1910   rm -rf conftest*
1911   ac_cv_prog_lex_yytext_pointer=yes
1912 else
1913   echo "configure: failed program was:" >&5
1914   cat conftest.$ac_ext >&5
1915 fi
1916 rm -f conftest*
1917 LIBS="$ac_save_LIBS"
1918 rm -f "${LEX_OUTPUT_ROOT}.c"
1919
1920 fi
1921
1922 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
1923 if test $ac_cv_prog_lex_yytext_pointer = yes; then
1924   cat >> confdefs.h <<\EOF
1925 #define YYTEXT_POINTER 1
1926 EOF
1927
1928 fi
1929
1930
1931
1932 # Check whether --enable-bigendian or --disable-bigendian was given.
1933 if test "${enable_bigendian+set}" = set; then
1934   enableval="$enable_bigendian"
1935   openafs_cv_c_bigendian=yes
1936 fi
1937
1938 # Check whether --enable-littleendian or --disable-littleendian was given.
1939 if test "${enable_littleendian+set}" = set; then
1940   enableval="$enable_littleendian"
1941   openafs_cv_c_bigendian=no
1942 fi
1943
1944 echo $ac_n "checking whether byte order is known at compile time""... $ac_c" 1>&6
1945 echo "configure:1946: checking whether byte order is known at compile time" >&5
1946 if eval "test \"`echo '$''{'openafs_cv_c_bigendian_compile'+set}'`\" = set"; then
1947   echo $ac_n "(cached) $ac_c" 1>&6
1948 else
1949   cat > conftest.$ac_ext <<EOF
1950 #line 1951 "configure"
1951 #include "confdefs.h"
1952
1953 #include <sys/types.h>
1954 #include <sys/param.h>
1955 int main() {
1956
1957 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1958  bogus endian macros
1959 #endif
1960 ; return 0; }
1961 EOF
1962 if { (eval echo configure:1963: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1963   rm -rf conftest*
1964   openafs_cv_c_bigendian_compile=yes
1965 else
1966   echo "configure: failed program was:" >&5
1967   cat conftest.$ac_ext >&5
1968   rm -rf conftest*
1969   openafs_cv_c_bigendian_compile=no
1970 fi
1971 rm -f conftest*
1972 fi
1973
1974 echo "$ac_t""$openafs_cv_c_bigendian_compile" 1>&6
1975 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1976 echo "configure:1977: checking whether byte ordering is bigendian" >&5
1977 if eval "test \"`echo '$''{'openafs_cv_c_bigendian'+set}'`\" = set"; then
1978   echo $ac_n "(cached) $ac_c" 1>&6
1979 else
1980   
1981   if test "$openafs_cv_c_bigendian_compile" = "yes"; then
1982     cat > conftest.$ac_ext <<EOF
1983 #line 1984 "configure"
1984 #include "confdefs.h"
1985
1986 #include <sys/types.h>
1987 #include <sys/param.h>
1988 int main() {
1989
1990 #if BYTE_ORDER != BIG_ENDIAN
1991   not big endian
1992 #endif
1993 ; return 0; }
1994 EOF
1995 if { (eval echo configure:1996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1996   rm -rf conftest*
1997   openafs_cv_c_bigendian=yes
1998 else
1999   echo "configure: failed program was:" >&5
2000   cat conftest.$ac_ext >&5
2001   rm -rf conftest*
2002   openafs_cv_c_bigendian=no
2003 fi
2004 rm -f conftest*
2005   else
2006     if test "$cross_compiling" = yes; then
2007   { echo "configure: error: specify either --enable-bigendian or --enable-littleendian" 1>&2; exit 1; }
2008 else
2009   cat > conftest.$ac_ext <<EOF
2010 #line 2011 "configure"
2011 #include "confdefs.h"
2012 main () {
2013       /* Are we little or big endian?  From Harbison&Steele.  */
2014       union
2015       {
2016         long l;
2017         char c[sizeof (long)];
2018     } u;
2019     u.l = 1;
2020     exit (u.c[sizeof (long) - 1] == 1);
2021   }
2022 EOF
2023 if { (eval echo configure:2024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2024 then
2025   openafs_cv_c_bigendian=no
2026 else
2027   echo "configure: failed program was:" >&5
2028   cat conftest.$ac_ext >&5
2029   rm -fr conftest*
2030   openafs_cv_c_bigendian=yes
2031 fi
2032 rm -fr conftest*
2033 fi
2034
2035   fi
2036
2037 fi
2038
2039 echo "$ac_t""$openafs_cv_c_bigendian" 1>&6
2040 if test "$openafs_cv_c_bigendian" = "yes"; then
2041   cat >> confdefs.h <<\EOF
2042 #define WORDS_BIGENDIAN 1
2043 EOF
2044 fi
2045 if test "$openafs_cv_c_bigendian_compile" = "yes"; then
2046   cat >> confdefs.h <<\EOF
2047 #define ENDIANESS_IN_SYS_PARAM_H 1
2048 EOF
2049 fi
2050
2051
2052 echo $ac_n "checking your OS""... $ac_c" 1>&6
2053 echo "configure:2054: checking your OS" >&5
2054 system=$host
2055 case $system in
2056         *-linux*)
2057                 MKAFS_OSTYPE=LINUX
2058                 if test "x$with_linux_kernel_headers" != "x"; then
2059                         LINUX_KERNEL_PATH="$with_linux_kernel_headers"
2060                 else
2061                         LINUX_KERNEL_PATH="/usr/src/linux"
2062                 fi
2063                 if test -f "$with_linux_kernel_headers/include/linux/version.h"; then
2064                  linux_kvers=`fgrep UTS_RELEASE $with_linux_kernel_headers/include/linux/version.h |awk 'BEGIN { FS="\"" } { print $2 }'`
2065                  if test "x$linux_kvers" = "x"; then
2066                   { echo "configure: error: Linux headers lack version definition" 1>&2; exit 1; }
2067                   exit 1
2068                  else
2069                   LINUX_VERSION="$linux_kvers"
2070                  fi
2071                 else
2072                  { echo "configure: error: No linux headers found at $with_linux_kernel_headers" 1>&2; exit 1; }
2073                  exit 1
2074                 fi
2075                 echo "$ac_t""linux" 1>&6
2076                 
2077 echo $ac_n "checking for i_bytes in struct inode""... $ac_c" 1>&6
2078 echo "configure:2079: checking for i_bytes in struct inode" >&5
2079 save_CPPFLAGS="$CPPFLAGS"
2080 CPPFLAGS="-I${LINUX_KERNEL_PATH}/include -D__KERNEL__ $CPPFLAGS"
2081 if eval "test \"`echo '$''{'ac_cv_linux_fs_struct_inode_has_i_bytes'+set}'`\" = set"; then
2082   echo $ac_n "(cached) $ac_c" 1>&6
2083 else
2084   
2085 cat > conftest.$ac_ext <<EOF
2086 #line 2087 "configure"
2087 #include "confdefs.h"
2088 #include <linux/fs.h>
2089 int main() {
2090 struct inode _inode;
2091 printf("%d\n", _inode.i_bytes);
2092 ; return 0; }
2093 EOF
2094 if { (eval echo configure:2095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2095   rm -rf conftest*
2096   ac_cv_linux_fs_struct_inode_has_i_bytes=yes
2097 else
2098   echo "configure: failed program was:" >&5
2099   cat conftest.$ac_ext >&5
2100   rm -rf conftest*
2101   ac_cv_linux_fs_struct_inode_has_i_bytes=no
2102 fi
2103 rm -f conftest*
2104 fi
2105
2106 echo "$ac_t""$ac_cv_linux_fs_struct_inode_has_i_bytes" 1>&6
2107 CPPFLAGS="$save_CPPFLAGS"
2108                 
2109 echo $ac_n "checking for inode_setattr return type""... $ac_c" 1>&6
2110 echo "configure:2111: checking for inode_setattr return type" >&5
2111 save_CPPFLAGS="$CPPFLAGS"
2112 CPPFLAGS="-I${LINUX_KERNEL_PATH}/include -D__KERNEL__ $CPPFLAGS"
2113 if eval "test \"`echo '$''{'ac_cv_linux_func_inode_setattr_returns_int'+set}'`\" = set"; then
2114   echo $ac_n "(cached) $ac_c" 1>&6
2115 else
2116   
2117 cat > conftest.$ac_ext <<EOF
2118 #line 2119 "configure"
2119 #include "confdefs.h"
2120 #include <linux/fs.h>
2121 int main() {
2122 struct inode _inode; 
2123 struct iattr _iattr;
2124 int i; 
2125 i = inode_setattr(&_inode, &_iattr);
2126 ; return 0; }
2127 EOF
2128 if { (eval echo configure:2129: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2129   rm -rf conftest*
2130   ac_cv_linux_func_inode_setattr_returns_int=yes
2131 else
2132   echo "configure: failed program was:" >&5
2133   cat conftest.$ac_ext >&5
2134   rm -rf conftest*
2135   ac_cv_linux_func_inode_setattr_returns_int=no
2136 fi
2137 rm -f conftest*
2138 fi
2139
2140 echo "$ac_t""$ac_cv_linux_func_inode_setattr_returns_int" 1>&6
2141 CPPFLAGS="$save_CPPFLAGS"
2142                 ;;
2143         *-solaris*)
2144                 MKAFS_OSTYPE=SOLARIS
2145                 echo "$ac_t""sun4" 1>&6
2146                 ;;
2147         *-hpux*)
2148                 MKAFS_OSTYPE=HPUX
2149                 echo "$ac_t""hp_ux" 1>&6
2150                 ;;
2151         *-irix*)
2152                 MKAFS_OSTYPE=IRIX
2153                 echo "$ac_t""sgi" 1>&6
2154                 ;;
2155         *-aix*)
2156                 MKAFS_OSTYPE=AIX
2157                 echo "$ac_t""rs_aix" 1>&6
2158                 ;;
2159         *-osf*)
2160                 MKAFS_OSTYPE=DUX
2161                 echo "$ac_t""alpha_dux" 1>&6
2162                 ;;
2163         *-darwin*)
2164                 MKAFS_OSTYPE=DARWIN
2165                 echo "$ac_t""ppc_darwin" 1>&6
2166                 ;;
2167         *)
2168                 echo "$ac_t""$system" 1>&6
2169                 ;;
2170 esac
2171
2172 if test "x${MKAFS_OSTYPE}" = "xIRIX"; then
2173         echo Skipping library tests because they confuse Irix.
2174 else
2175   for ac_func in socket
2176 do
2177 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2178 echo "configure:2179: checking for $ac_func" >&5
2179 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2180   echo $ac_n "(cached) $ac_c" 1>&6
2181 else
2182   cat > conftest.$ac_ext <<EOF
2183 #line 2184 "configure"
2184 #include "confdefs.h"
2185 /* System header to define __stub macros and hopefully few prototypes,
2186     which can conflict with char $ac_func(); below.  */
2187 #include <assert.h>
2188 /* Override any gcc2 internal prototype to avoid an error.  */
2189 /* We use char because int might match the return type of a gcc2
2190     builtin and then its argument prototype would still apply.  */
2191 char $ac_func();
2192
2193 int main() {
2194
2195 /* The GNU C library defines this for functions which it implements
2196     to always fail with ENOSYS.  Some functions are actually named
2197     something starting with __ and the normal name is an alias.  */
2198 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2199 choke me
2200 #else
2201 $ac_func();
2202 #endif
2203
2204 ; return 0; }
2205 EOF
2206 if { (eval echo configure:2207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2207   rm -rf conftest*
2208   eval "ac_cv_func_$ac_func=yes"
2209 else
2210   echo "configure: failed program was:" >&5
2211   cat conftest.$ac_ext >&5
2212   rm -rf conftest*
2213   eval "ac_cv_func_$ac_func=no"
2214 fi
2215 rm -f conftest*
2216 fi
2217
2218 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2219   echo "$ac_t""yes" 1>&6
2220     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2221   cat >> confdefs.h <<EOF
2222 #define $ac_tr_func 1
2223 EOF
2224  
2225 else
2226   echo "$ac_t""no" 1>&6
2227 fi
2228 done
2229
2230
2231   if test "$ac_cv_func_socket" = no; then
2232     for lib in socket inet; do
2233         if test "$HAVE_SOCKET" != 1; then
2234                 echo $ac_n "checking for socket in -l$lib""... $ac_c" 1>&6
2235 echo "configure:2236: checking for socket in -l$lib" >&5
2236 ac_lib_var=`echo $lib'_'socket | sed 'y%./+-%__p_%'`
2237 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2238   echo $ac_n "(cached) $ac_c" 1>&6
2239 else
2240   ac_save_LIBS="$LIBS"
2241 LIBS="-l$lib  $LIBS"
2242 cat > conftest.$ac_ext <<EOF
2243 #line 2244 "configure"
2244 #include "confdefs.h"
2245 /* Override any gcc2 internal prototype to avoid an error.  */
2246 /* We use char because int might match the return type of a gcc2
2247     builtin and then its argument prototype would still apply.  */
2248 char socket();
2249
2250 int main() {
2251 socket()
2252 ; return 0; }
2253 EOF
2254 if { (eval echo configure:2255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2255   rm -rf conftest*
2256   eval "ac_cv_lib_$ac_lib_var=yes"
2257 else
2258   echo "configure: failed program was:" >&5
2259   cat conftest.$ac_ext >&5
2260   rm -rf conftest*
2261   eval "ac_cv_lib_$ac_lib_var=no"
2262 fi
2263 rm -f conftest*
2264 LIBS="$ac_save_LIBS"
2265
2266 fi
2267 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2268   echo "$ac_t""yes" 1>&6
2269   LIBS="$LIBS -l$lib";HAVE_SOCKET=1;cat >> confdefs.h <<\EOF
2270 #define HAVE_SOCKET 1
2271 EOF
2272
2273 else
2274   echo "$ac_t""no" 1>&6
2275 fi
2276
2277         fi
2278     done
2279   fi
2280   
2281   for ac_func in connect
2282 do
2283 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2284 echo "configure:2285: checking for $ac_func" >&5
2285 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2286   echo $ac_n "(cached) $ac_c" 1>&6
2287 else
2288   cat > conftest.$ac_ext <<EOF
2289 #line 2290 "configure"
2290 #include "confdefs.h"
2291 /* System header to define __stub macros and hopefully few prototypes,
2292     which can conflict with char $ac_func(); below.  */
2293 #include <assert.h>
2294 /* Override any gcc2 internal prototype to avoid an error.  */
2295 /* We use char because int might match the return type of a gcc2
2296     builtin and then its argument prototype would still apply.  */
2297 char $ac_func();
2298
2299 int main() {
2300
2301 /* The GNU C library defines this for functions which it implements
2302     to always fail with ENOSYS.  Some functions are actually named
2303     something starting with __ and the normal name is an alias.  */
2304 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2305 choke me
2306 #else
2307 $ac_func();
2308 #endif
2309
2310 ; return 0; }
2311 EOF
2312 if { (eval echo configure:2313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2313   rm -rf conftest*
2314   eval "ac_cv_func_$ac_func=yes"
2315 else
2316   echo "configure: failed program was:" >&5
2317   cat conftest.$ac_ext >&5
2318   rm -rf conftest*
2319   eval "ac_cv_func_$ac_func=no"
2320 fi
2321 rm -f conftest*
2322 fi
2323
2324 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2325   echo "$ac_t""yes" 1>&6
2326     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2327   cat >> confdefs.h <<EOF
2328 #define $ac_tr_func 1
2329 EOF
2330  
2331 else
2332   echo "$ac_t""no" 1>&6
2333 fi
2334 done
2335        
2336
2337   if test "$ac_cv_func_connect" = no; then
2338     for lib in nsl; do
2339         if test "$HAVE_CONNECT" != 1; then
2340                 echo $ac_n "checking for connect in -l$lib""... $ac_c" 1>&6
2341 echo "configure:2342: checking for connect in -l$lib" >&5
2342 ac_lib_var=`echo $lib'_'connect | sed 'y%./+-%__p_%'`
2343 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2344   echo $ac_n "(cached) $ac_c" 1>&6
2345 else
2346   ac_save_LIBS="$LIBS"
2347 LIBS="-l$lib  $LIBS"
2348 cat > conftest.$ac_ext <<EOF
2349 #line 2350 "configure"
2350 #include "confdefs.h"
2351 /* Override any gcc2 internal prototype to avoid an error.  */
2352 /* We use char because int might match the return type of a gcc2
2353     builtin and then its argument prototype would still apply.  */
2354 char connect();
2355
2356 int main() {
2357 connect()
2358 ; return 0; }
2359 EOF
2360 if { (eval echo configure:2361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2361   rm -rf conftest*
2362   eval "ac_cv_lib_$ac_lib_var=yes"
2363 else
2364   echo "configure: failed program was:" >&5
2365   cat conftest.$ac_ext >&5
2366   rm -rf conftest*
2367   eval "ac_cv_lib_$ac_lib_var=no"
2368 fi
2369 rm -f conftest*
2370 LIBS="$ac_save_LIBS"
2371
2372 fi
2373 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2374   echo "$ac_t""yes" 1>&6
2375   LIBS="$LIBS -l$lib";HAVE_CONNECT=1;cat >> confdefs.h <<\EOF
2376 #define HAVE_CONNECT 1
2377 EOF
2378
2379 else
2380   echo "$ac_t""no" 1>&6
2381 fi
2382
2383         fi
2384     done
2385   fi
2386
2387   for ac_func in gethostbyname
2388 do
2389 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2390 echo "configure:2391: checking for $ac_func" >&5
2391 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2392   echo $ac_n "(cached) $ac_c" 1>&6
2393 else
2394   cat > conftest.$ac_ext <<EOF
2395 #line 2396 "configure"
2396 #include "confdefs.h"
2397 /* System header to define __stub macros and hopefully few prototypes,
2398     which can conflict with char $ac_func(); below.  */
2399 #include <assert.h>
2400 /* Override any gcc2 internal prototype to avoid an error.  */
2401 /* We use char because int might match the return type of a gcc2
2402     builtin and then its argument prototype would still apply.  */
2403 char $ac_func();
2404
2405 int main() {
2406
2407 /* The GNU C library defines this for functions which it implements
2408     to always fail with ENOSYS.  Some functions are actually named
2409     something starting with __ and the normal name is an alias.  */
2410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2411 choke me
2412 #else
2413 $ac_func();
2414 #endif
2415
2416 ; return 0; }
2417 EOF
2418 if { (eval echo configure:2419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2419   rm -rf conftest*
2420   eval "ac_cv_func_$ac_func=yes"
2421 else
2422   echo "configure: failed program was:" >&5
2423   cat conftest.$ac_ext >&5
2424   rm -rf conftest*
2425   eval "ac_cv_func_$ac_func=no"
2426 fi
2427 rm -f conftest*
2428 fi
2429
2430 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2431   echo "$ac_t""yes" 1>&6
2432     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2433   cat >> confdefs.h <<EOF
2434 #define $ac_tr_func 1
2435 EOF
2436  
2437 else
2438   echo "$ac_t""no" 1>&6
2439 fi
2440 done
2441
2442   if test "$ac_cv_func_gethostbyname" = no; then
2443         for lib in dns nsl resolv; do
2444           if test "$HAVE_GETHOSTBYNAME" != 1; then
2445             echo $ac_n "checking for gethostbyname in -l$lib""... $ac_c" 1>&6
2446 echo "configure:2447: checking for gethostbyname in -l$lib" >&5
2447 ac_lib_var=`echo $lib'_'gethostbyname | sed 'y%./+-%__p_%'`
2448 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2449   echo $ac_n "(cached) $ac_c" 1>&6
2450 else
2451   ac_save_LIBS="$LIBS"
2452 LIBS="-l$lib  $LIBS"
2453 cat > conftest.$ac_ext <<EOF
2454 #line 2455 "configure"
2455 #include "confdefs.h"
2456 /* Override any gcc2 internal prototype to avoid an error.  */
2457 /* We use char because int might match the return type of a gcc2
2458     builtin and then its argument prototype would still apply.  */
2459 char gethostbyname();
2460
2461 int main() {
2462 gethostbyname()
2463 ; return 0; }
2464 EOF
2465 if { (eval echo configure:2466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2466   rm -rf conftest*
2467   eval "ac_cv_lib_$ac_lib_var=yes"
2468 else
2469   echo "configure: failed program was:" >&5
2470   cat conftest.$ac_ext >&5
2471   rm -rf conftest*
2472   eval "ac_cv_lib_$ac_lib_var=no"
2473 fi
2474 rm -f conftest*
2475 LIBS="$ac_save_LIBS"
2476
2477 fi
2478 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2479   echo "$ac_t""yes" 1>&6
2480   LIBS="$LIBS -l$lib";HAVE_GETHOSTBYNAME=1;cat >> confdefs.h <<\EOF
2481 #define HAVE_GETHOSTBYNAME 1
2482 EOF
2483
2484 else
2485   echo "$ac_t""no" 1>&6
2486 fi
2487
2488           fi
2489         done    
2490   fi    
2491
2492   for ac_func in res_search
2493 do
2494 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2495 echo "configure:2496: checking for $ac_func" >&5
2496 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2497   echo $ac_n "(cached) $ac_c" 1>&6
2498 else
2499   cat > conftest.$ac_ext <<EOF
2500 #line 2501 "configure"
2501 #include "confdefs.h"
2502 /* System header to define __stub macros and hopefully few prototypes,
2503     which can conflict with char $ac_func(); below.  */
2504 #include <assert.h>
2505 /* Override any gcc2 internal prototype to avoid an error.  */
2506 /* We use char because int might match the return type of a gcc2
2507     builtin and then its argument prototype would still apply.  */
2508 char $ac_func();
2509
2510 int main() {
2511
2512 /* The GNU C library defines this for functions which it implements
2513     to always fail with ENOSYS.  Some functions are actually named
2514     something starting with __ and the normal name is an alias.  */
2515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2516 choke me
2517 #else
2518 $ac_func();
2519 #endif
2520
2521 ; return 0; }
2522 EOF
2523 if { (eval echo configure:2524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2524   rm -rf conftest*
2525   eval "ac_cv_func_$ac_func=yes"
2526 else
2527   echo "configure: failed program was:" >&5
2528   cat conftest.$ac_ext >&5
2529   rm -rf conftest*
2530   eval "ac_cv_func_$ac_func=no"
2531 fi
2532 rm -f conftest*
2533 fi
2534
2535 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2536   echo "$ac_t""yes" 1>&6
2537     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2538   cat >> confdefs.h <<EOF
2539 #define $ac_tr_func 1
2540 EOF
2541  
2542 else
2543   echo "$ac_t""no" 1>&6
2544 fi
2545 done
2546
2547   if test "$ac_cv_func_res_search" = no; then
2548         for lib in dns nsl resolv; do
2549           if test "$HAVE_RES_SEARCH" != 1; then
2550             echo $ac_n "checking for res_search in -l$lib""... $ac_c" 1>&6
2551 echo "configure:2552: checking for res_search in -l$lib" >&5
2552 ac_lib_var=`echo $lib'_'res_search | sed 'y%./+-%__p_%'`
2553 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2554   echo $ac_n "(cached) $ac_c" 1>&6
2555 else
2556   ac_save_LIBS="$LIBS"
2557 LIBS="-l$lib  $LIBS"
2558 cat > conftest.$ac_ext <<EOF
2559 #line 2560 "configure"
2560 #include "confdefs.h"
2561 /* Override any gcc2 internal prototype to avoid an error.  */
2562 /* We use char because int might match the return type of a gcc2
2563     builtin and then its argument prototype would still apply.  */
2564 char res_search();
2565
2566 int main() {
2567 res_search()
2568 ; return 0; }
2569 EOF
2570 if { (eval echo configure:2571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2571   rm -rf conftest*
2572   eval "ac_cv_lib_$ac_lib_var=yes"
2573 else
2574   echo "configure: failed program was:" >&5
2575   cat conftest.$ac_ext >&5
2576   rm -rf conftest*
2577   eval "ac_cv_lib_$ac_lib_var=no"
2578 fi
2579 rm -f conftest*
2580 LIBS="$ac_save_LIBS"
2581
2582 fi
2583 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2584   echo "$ac_t""yes" 1>&6
2585   LIBS="$LIBS -l$lib";HAVE_RES_SEARCH=1;cat >> confdefs.h <<\EOF
2586 #define HAVE_RES_SEARCH 1
2587 EOF
2588
2589 else
2590   echo "$ac_t""no" 1>&6
2591 fi
2592
2593           fi
2594         done    
2595         if test "$HAVE_RES_SEARCH" = 1; then
2596           LIB_res_search="-l$lib"       
2597         fi
2598   fi    
2599 fi
2600
2601 PTHREAD_LIBS=error
2602 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
2603 echo "configure:2604: checking for pthread_attr_init in -lpthread" >&5
2604 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2605 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2606   echo $ac_n "(cached) $ac_c" 1>&6
2607 else
2608   ac_save_LIBS="$LIBS"
2609 LIBS="-lpthread  $LIBS"
2610 cat > conftest.$ac_ext <<EOF
2611 #line 2612 "configure"
2612 #include "confdefs.h"
2613 /* Override any gcc2 internal prototype to avoid an error.  */
2614 /* We use char because int might match the return type of a gcc2
2615     builtin and then its argument prototype would still apply.  */
2616 char pthread_attr_init();
2617
2618 int main() {
2619 pthread_attr_init()
2620 ; return 0; }
2621 EOF
2622 if { (eval echo configure:2623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2623   rm -rf conftest*
2624   eval "ac_cv_lib_$ac_lib_var=yes"
2625 else
2626   echo "configure: failed program was:" >&5
2627   cat conftest.$ac_ext >&5
2628   rm -rf conftest*
2629   eval "ac_cv_lib_$ac_lib_var=no"
2630 fi
2631 rm -f conftest*
2632 LIBS="$ac_save_LIBS"
2633
2634 fi
2635 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2636   echo "$ac_t""yes" 1>&6
2637   PTHREAD_LIBS="-lpthread"
2638 else
2639   echo "$ac_t""no" 1>&6
2640 fi
2641
2642 if test "x$PTHREAD_LIBS" = xerror; then
2643         echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
2644 echo "configure:2645: checking for pthread_attr_init in -lpthreads" >&5
2645 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2646 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2647   echo $ac_n "(cached) $ac_c" 1>&6
2648 else
2649   ac_save_LIBS="$LIBS"
2650 LIBS="-lpthreads  $LIBS"
2651 cat > conftest.$ac_ext <<EOF
2652 #line 2653 "configure"
2653 #include "confdefs.h"
2654 /* Override any gcc2 internal prototype to avoid an error.  */
2655 /* We use char because int might match the return type of a gcc2
2656     builtin and then its argument prototype would still apply.  */
2657 char pthread_attr_init();
2658
2659 int main() {
2660 pthread_attr_init()
2661 ; return 0; }
2662 EOF
2663 if { (eval echo configure:2664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2664   rm -rf conftest*
2665   eval "ac_cv_lib_$ac_lib_var=yes"
2666 else
2667   echo "configure: failed program was:" >&5
2668   cat conftest.$ac_ext >&5
2669   rm -rf conftest*
2670   eval "ac_cv_lib_$ac_lib_var=no"
2671 fi
2672 rm -f conftest*
2673 LIBS="$ac_save_LIBS"
2674
2675 fi
2676 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2677   echo "$ac_t""yes" 1>&6
2678   PTHREAD_LIBS="-lpthreads"
2679 else
2680   echo "$ac_t""no" 1>&6
2681 fi
2682
2683 fi
2684 if test "x$PTHREAD_LIBS" = xerror; then
2685         echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
2686 echo "configure:2687: checking for pthread_attr_init in -lc_r" >&5
2687 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2688 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2689   echo $ac_n "(cached) $ac_c" 1>&6
2690 else
2691   ac_save_LIBS="$LIBS"
2692 LIBS="-lc_r  $LIBS"
2693 cat > conftest.$ac_ext <<EOF
2694 #line 2695 "configure"
2695 #include "confdefs.h"
2696 /* Override any gcc2 internal prototype to avoid an error.  */
2697 /* We use char because int might match the return type of a gcc2
2698     builtin and then its argument prototype would still apply.  */
2699 char pthread_attr_init();
2700
2701 int main() {
2702 pthread_attr_init()
2703 ; return 0; }
2704 EOF
2705 if { (eval echo configure:2706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2706   rm -rf conftest*
2707   eval "ac_cv_lib_$ac_lib_var=yes"
2708 else
2709   echo "configure: failed program was:" >&5
2710   cat conftest.$ac_ext >&5
2711   rm -rf conftest*
2712   eval "ac_cv_lib_$ac_lib_var=no"
2713 fi
2714 rm -f conftest*
2715 LIBS="$ac_save_LIBS"
2716
2717 fi
2718 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2719   echo "$ac_t""yes" 1>&6
2720   PTHREAD_LIBS="-lc_r"
2721 else
2722   echo "$ac_t""no" 1>&6
2723 fi
2724
2725 fi
2726 if test "x$PTHREAD_LIBS" = xerror; then
2727         echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
2728 echo "configure:2729: checking for pthread_attr_init" >&5
2729 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
2730   echo $ac_n "(cached) $ac_c" 1>&6
2731 else
2732   cat > conftest.$ac_ext <<EOF
2733 #line 2734 "configure"
2734 #include "confdefs.h"
2735 /* System header to define __stub macros and hopefully few prototypes,
2736     which can conflict with char pthread_attr_init(); below.  */
2737 #include <assert.h>
2738 /* Override any gcc2 internal prototype to avoid an error.  */
2739 /* We use char because int might match the return type of a gcc2
2740     builtin and then its argument prototype would still apply.  */
2741 char pthread_attr_init();
2742
2743 int main() {
2744
2745 /* The GNU C library defines this for functions which it implements
2746     to always fail with ENOSYS.  Some functions are actually named
2747     something starting with __ and the normal name is an alias.  */
2748 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
2749 choke me
2750 #else
2751 pthread_attr_init();
2752 #endif
2753
2754 ; return 0; }
2755 EOF
2756 if { (eval echo configure:2757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2757   rm -rf conftest*
2758   eval "ac_cv_func_pthread_attr_init=yes"
2759 else
2760   echo "configure: failed program was:" >&5
2761   cat conftest.$ac_ext >&5
2762   rm -rf conftest*
2763   eval "ac_cv_func_pthread_attr_init=no"
2764 fi
2765 rm -f conftest*
2766 fi
2767
2768 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
2769   echo "$ac_t""yes" 1>&6
2770   PTHREAD_LIBS=""
2771 else
2772   echo "$ac_t""no" 1>&6
2773 fi
2774
2775 fi
2776 if test "x$PTHREAD_LIBS" = xerror; then
2777         { echo "configure: error: *** Unable to locate working posix thread library ***" 1>&2; exit 1; }
2778 fi
2779
2780
2781 WITH_OBSOLETE=NO
2782 if test "$enable_obsolete" = "yes"; then
2783         WITH_OBSOLETE=YES
2784 fi
2785
2786 WITH_INSECURE=NO
2787 if test "$enable_insecure" = "yes"; then
2788         WITH_INSECURE=YES
2789 fi
2790
2791 # Should autocompute a default
2792 if test "x$with_afs_sysname" != "x"; then
2793         AFS_SYSNAME="$with_afs_sysname"
2794 else
2795         { echo "configure: error: An AFS sysname is required" 1>&2; exit 1; }
2796         exit 1
2797 fi
2798
2799 if test "$enable_bos_restricted_mode" = "yes"; then
2800         cat >> confdefs.h <<\EOF
2801 #define BOS_RESTRICTED_MODE 1
2802 EOF
2803
2804 fi
2805
2806 if test "$enable_namei_fileserver" = "yes"; then
2807         cat >> confdefs.h <<\EOF
2808 #define AFS_NAMEI_ENV 1
2809 EOF
2810
2811 fi
2812
2813 if test "$enable_afsdb" = "yes"; then
2814         LIB_AFSDB="$LIB_res_search"
2815         cat >> confdefs.h <<\EOF
2816 #define AFS_AFSDB_ENV 1
2817 EOF
2818
2819 fi
2820
2821 SRCDIR_PARENT=`pwd`
2822 TOP_SRCDIR="${SRCDIR_PARENT}/src"
2823
2824 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2825 echo "configure:2826: checking for ANSI C header files" >&5
2826 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2827   echo $ac_n "(cached) $ac_c" 1>&6
2828 else
2829   cat > conftest.$ac_ext <<EOF
2830 #line 2831 "configure"
2831 #include "confdefs.h"
2832 #include <stdlib.h>
2833 #include <stdarg.h>
2834 #include <string.h>
2835 #include <float.h>
2836 EOF
2837 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2838 { (eval echo configure:2839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2839 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2840 if test -z "$ac_err"; then
2841   rm -rf conftest*
2842   ac_cv_header_stdc=yes
2843 else
2844   echo "$ac_err" >&5
2845   echo "configure: failed program was:" >&5
2846   cat conftest.$ac_ext >&5
2847   rm -rf conftest*
2848   ac_cv_header_stdc=no
2849 fi
2850 rm -f conftest*
2851
2852 if test $ac_cv_header_stdc = yes; then
2853   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2854 cat > conftest.$ac_ext <<EOF
2855 #line 2856 "configure"
2856 #include "confdefs.h"
2857 #include <string.h>
2858 EOF
2859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2860   egrep "memchr" >/dev/null 2>&1; then
2861   :
2862 else
2863   rm -rf conftest*
2864   ac_cv_header_stdc=no
2865 fi
2866 rm -f conftest*
2867
2868 fi
2869
2870 if test $ac_cv_header_stdc = yes; then
2871   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2872 cat > conftest.$ac_ext <<EOF
2873 #line 2874 "configure"
2874 #include "confdefs.h"
2875 #include <stdlib.h>
2876 EOF
2877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2878   egrep "free" >/dev/null 2>&1; then
2879   :
2880 else
2881   rm -rf conftest*
2882   ac_cv_header_stdc=no
2883 fi
2884 rm -f conftest*
2885
2886 fi
2887
2888 if test $ac_cv_header_stdc = yes; then
2889   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2890 if test "$cross_compiling" = yes; then
2891   :
2892 else
2893   cat > conftest.$ac_ext <<EOF
2894 #line 2895 "configure"
2895 #include "confdefs.h"
2896 #include <ctype.h>
2897 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2898 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2899 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2900 int main () { int i; for (i = 0; i < 256; i++)
2901 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2902 exit (0); }
2903
2904 EOF
2905 if { (eval echo configure:2906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2906 then
2907   :
2908 else
2909   echo "configure: failed program was:" >&5
2910   cat conftest.$ac_ext >&5
2911   rm -fr conftest*
2912   ac_cv_header_stdc=no
2913 fi
2914 rm -fr conftest*
2915 fi
2916
2917 fi
2918 fi
2919
2920 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2921 if test $ac_cv_header_stdc = yes; then
2922   cat >> confdefs.h <<\EOF
2923 #define STDC_HEADERS 1
2924 EOF
2925
2926 fi
2927
2928 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2929 echo "configure:2930: checking for sys/wait.h that is POSIX.1 compatible" >&5
2930 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2931   echo $ac_n "(cached) $ac_c" 1>&6
2932 else
2933   cat > conftest.$ac_ext <<EOF
2934 #line 2935 "configure"
2935 #include "confdefs.h"
2936 #include <sys/types.h>
2937 #include <sys/wait.h>
2938 #ifndef WEXITSTATUS
2939 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2940 #endif
2941 #ifndef WIFEXITED
2942 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2943 #endif
2944 int main() {
2945 int s;
2946 wait (&s);
2947 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2948 ; return 0; }
2949 EOF
2950 if { (eval echo configure:2951: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2951   rm -rf conftest*
2952   ac_cv_header_sys_wait_h=yes
2953 else
2954   echo "configure: failed program was:" >&5
2955   cat conftest.$ac_ext >&5
2956   rm -rf conftest*
2957   ac_cv_header_sys_wait_h=no
2958 fi
2959 rm -f conftest*
2960 fi
2961
2962 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2963 if test $ac_cv_header_sys_wait_h = yes; then
2964   cat >> confdefs.h <<\EOF
2965 #define HAVE_SYS_WAIT_H 1
2966 EOF
2967
2968 fi
2969
2970 ac_header_dirent=no
2971 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2972 do
2973 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2974 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2975 echo "configure:2976: checking for $ac_hdr that defines DIR" >&5
2976 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2977   echo $ac_n "(cached) $ac_c" 1>&6
2978 else
2979   cat > conftest.$ac_ext <<EOF
2980 #line 2981 "configure"
2981 #include "confdefs.h"
2982 #include <sys/types.h>
2983 #include <$ac_hdr>
2984 int main() {
2985 DIR *dirp = 0;
2986 ; return 0; }
2987 EOF
2988 if { (eval echo configure:2989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2989   rm -rf conftest*
2990   eval "ac_cv_header_dirent_$ac_safe=yes"
2991 else
2992   echo "configure: failed program was:" >&5
2993   cat conftest.$ac_ext >&5
2994   rm -rf conftest*
2995   eval "ac_cv_header_dirent_$ac_safe=no"
2996 fi
2997 rm -f conftest*
2998 fi
2999 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
3000   echo "$ac_t""yes" 1>&6
3001     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3002   cat >> confdefs.h <<EOF
3003 #define $ac_tr_hdr 1
3004 EOF
3005  ac_header_dirent=$ac_hdr; break
3006 else
3007   echo "$ac_t""no" 1>&6
3008 fi
3009 done
3010 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3011 if test $ac_header_dirent = dirent.h; then
3012 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
3013 echo "configure:3014: checking for opendir in -ldir" >&5
3014 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
3015 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3016   echo $ac_n "(cached) $ac_c" 1>&6
3017 else
3018   ac_save_LIBS="$LIBS"
3019 LIBS="-ldir  $LIBS"
3020 cat > conftest.$ac_ext <<EOF
3021 #line 3022 "configure"
3022 #include "confdefs.h"
3023 /* Override any gcc2 internal prototype to avoid an error.  */
3024 /* We use char because int might match the return type of a gcc2
3025     builtin and then its argument prototype would still apply.  */
3026 char opendir();
3027
3028 int main() {
3029 opendir()
3030 ; return 0; }
3031 EOF
3032 if { (eval echo configure:3033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3033   rm -rf conftest*
3034   eval "ac_cv_lib_$ac_lib_var=yes"
3035 else
3036   echo "configure: failed program was:" >&5
3037   cat conftest.$ac_ext >&5
3038   rm -rf conftest*
3039   eval "ac_cv_lib_$ac_lib_var=no"
3040 fi
3041 rm -f conftest*
3042 LIBS="$ac_save_LIBS"
3043
3044 fi
3045 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3046   echo "$ac_t""yes" 1>&6
3047   LIBS="$LIBS -ldir"
3048 else
3049   echo "$ac_t""no" 1>&6
3050 fi
3051
3052 else
3053 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
3054 echo "configure:3055: checking for opendir in -lx" >&5
3055 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
3056 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3057   echo $ac_n "(cached) $ac_c" 1>&6
3058 else
3059   ac_save_LIBS="$LIBS"
3060 LIBS="-lx  $LIBS"
3061 cat > conftest.$ac_ext <<EOF
3062 #line 3063 "configure"
3063 #include "confdefs.h"
3064 /* Override any gcc2 internal prototype to avoid an error.  */
3065 /* We use char because int might match the return type of a gcc2
3066     builtin and then its argument prototype would still apply.  */
3067 char opendir();
3068
3069 int main() {
3070 opendir()
3071 ; return 0; }
3072 EOF
3073 if { (eval echo configure:3074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3074   rm -rf conftest*
3075   eval "ac_cv_lib_$ac_lib_var=yes"
3076 else
3077   echo "configure: failed program was:" >&5
3078   cat conftest.$ac_ext >&5
3079   rm -rf conftest*
3080   eval "ac_cv_lib_$ac_lib_var=no"
3081 fi
3082 rm -f conftest*
3083 LIBS="$ac_save_LIBS"
3084
3085 fi
3086 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3087   echo "$ac_t""yes" 1>&6
3088   LIBS="$LIBS -lx"
3089 else
3090   echo "$ac_t""no" 1>&6
3091 fi
3092
3093 fi
3094
3095 for ac_hdr in stdlib.h string.h unistd.h fcntl.h sys/time.h sys/file.h
3096 do
3097 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3098 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3099 echo "configure:3100: checking for $ac_hdr" >&5
3100 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3101   echo $ac_n "(cached) $ac_c" 1>&6
3102 else
3103   cat > conftest.$ac_ext <<EOF
3104 #line 3105 "configure"
3105 #include "confdefs.h"
3106 #include <$ac_hdr>
3107 EOF
3108 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3109 { (eval echo configure:3110: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3110 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3111 if test -z "$ac_err"; then
3112   rm -rf conftest*
3113   eval "ac_cv_header_$ac_safe=yes"
3114 else
3115   echo "$ac_err" >&5
3116   echo "configure: failed program was:" >&5
3117   cat conftest.$ac_ext >&5
3118   rm -rf conftest*
3119   eval "ac_cv_header_$ac_safe=no"
3120 fi
3121 rm -f conftest*
3122 fi
3123 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3124   echo "$ac_t""yes" 1>&6
3125     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3126   cat >> confdefs.h <<EOF
3127 #define $ac_tr_hdr 1
3128 EOF
3129  
3130 else
3131   echo "$ac_t""no" 1>&6
3132 fi
3133 done
3134
3135 for ac_hdr in netinet/in.h netdb.h sys/fcntl.h sys/mnttab.h sys/mntent.h
3136 do
3137 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3138 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3139 echo "configure:3140: checking for $ac_hdr" >&5
3140 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3141   echo $ac_n "(cached) $ac_c" 1>&6
3142 else
3143   cat > conftest.$ac_ext <<EOF
3144 #line 3145 "configure"
3145 #include "confdefs.h"
3146 #include <$ac_hdr>
3147 EOF
3148 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3149 { (eval echo configure:3150: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3150 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3151 if test -z "$ac_err"; then
3152   rm -rf conftest*
3153   eval "ac_cv_header_$ac_safe=yes"
3154 else
3155   echo "$ac_err" >&5
3156   echo "configure: failed program was:" >&5
3157   cat conftest.$ac_ext >&5
3158   rm -rf conftest*
3159   eval "ac_cv_header_$ac_safe=no"
3160 fi
3161 rm -f conftest*
3162 fi
3163 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3164   echo "$ac_t""yes" 1>&6
3165     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3166   cat >> confdefs.h <<EOF
3167 #define $ac_tr_hdr 1
3168 EOF
3169  
3170 else
3171   echo "$ac_t""no" 1>&6
3172 fi
3173 done
3174
3175 for ac_hdr in mntent.h sys/vfs.h sys/param.h sys/fs_types.h
3176 do
3177 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3178 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3179 echo "configure:3180: checking for $ac_hdr" >&5
3180 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3181   echo $ac_n "(cached) $ac_c" 1>&6
3182 else
3183   cat > conftest.$ac_ext <<EOF
3184 #line 3185 "configure"
3185 #include "confdefs.h"
3186 #include <$ac_hdr>
3187 EOF
3188 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3189 { (eval echo configure:3190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3190 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3191 if test -z "$ac_err"; then
3192   rm -rf conftest*
3193   eval "ac_cv_header_$ac_safe=yes"
3194 else
3195   echo "$ac_err" >&5
3196   echo "configure: failed program was:" >&5
3197   cat conftest.$ac_ext >&5
3198   rm -rf conftest*
3199   eval "ac_cv_header_$ac_safe=no"
3200 fi
3201 rm -f conftest*
3202 fi
3203 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3204   echo "$ac_t""yes" 1>&6
3205     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3206   cat >> confdefs.h <<EOF
3207 #define $ac_tr_hdr 1
3208 EOF
3209  
3210 else
3211   echo "$ac_t""no" 1>&6
3212 fi
3213 done
3214
3215 for ac_hdr in sys/mount.h strings.h termios.h signal.h
3216 do
3217 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3218 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3219 echo "configure:3220: checking for $ac_hdr" >&5
3220 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3221   echo $ac_n "(cached) $ac_c" 1>&6
3222 else
3223   cat > conftest.$ac_ext <<EOF
3224 #line 3225 "configure"
3225 #include "confdefs.h"
3226 #include <$ac_hdr>
3227 EOF
3228 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3229 { (eval echo configure:3230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3230 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3231 if test -z "$ac_err"; then
3232   rm -rf conftest*
3233   eval "ac_cv_header_$ac_safe=yes"
3234 else
3235   echo "$ac_err" >&5
3236   echo "configure: failed program was:" >&5
3237   cat conftest.$ac_ext >&5
3238   rm -rf conftest*
3239   eval "ac_cv_header_$ac_safe=no"
3240 fi
3241 rm -f conftest*
3242 fi
3243 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3244   echo "$ac_t""yes" 1>&6
3245     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3246   cat >> confdefs.h <<EOF
3247 #define $ac_tr_hdr 1
3248 EOF
3249  
3250 else
3251   echo "$ac_t""no" 1>&6
3252 fi
3253 done
3254
3255 for ac_hdr in windows.h malloc.h winsock2.h direct.h io.h
3256 do
3257 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3258 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3259 echo "configure:3260: checking for $ac_hdr" >&5
3260 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3261   echo $ac_n "(cached) $ac_c" 1>&6
3262 else
3263   cat > conftest.$ac_ext <<EOF
3264 #line 3265 "configure"
3265 #include "confdefs.h"
3266 #include <$ac_hdr>
3267 EOF
3268 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3269 { (eval echo configure:3270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3270 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3271 if test -z "$ac_err"; then
3272   rm -rf conftest*
3273   eval "ac_cv_header_$ac_safe=yes"
3274 else
3275   echo "$ac_err" >&5
3276   echo "configure: failed program was:" >&5
3277   cat conftest.$ac_ext >&5
3278   rm -rf conftest*
3279   eval "ac_cv_header_$ac_safe=no"
3280 fi
3281 rm -f conftest*
3282 fi
3283 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3284   echo "$ac_t""yes" 1>&6
3285     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3286   cat >> confdefs.h <<EOF
3287 #define $ac_tr_hdr 1
3288 EOF
3289  
3290 else
3291   echo "$ac_t""no" 1>&6
3292 fi
3293 done
3294
3295 for ac_hdr in security/pam_modules.h siad.h usersec.h
3296 do
3297 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3298 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3299 echo "configure:3300: checking for $ac_hdr" >&5
3300 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3301   echo $ac_n "(cached) $ac_c" 1>&6
3302 else
3303   cat > conftest.$ac_ext <<EOF
3304 #line 3305 "configure"
3305 #include "confdefs.h"
3306 #include <$ac_hdr>
3307 EOF
3308 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3309 { (eval echo configure:3310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3310 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3311 if test -z "$ac_err"; then
3312   rm -rf conftest*
3313   eval "ac_cv_header_$ac_safe=yes"
3314 else
3315   echo "$ac_err" >&5
3316   echo "configure: failed program was:" >&5
3317   cat conftest.$ac_ext >&5
3318   rm -rf conftest*
3319   eval "ac_cv_header_$ac_safe=no"
3320 fi
3321 rm -f conftest*
3322 fi
3323 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3324   echo "$ac_t""yes" 1>&6
3325     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3326   cat >> confdefs.h <<EOF
3327 #define $ac_tr_hdr 1
3328 EOF
3329  
3330 else
3331   echo "$ac_t""no" 1>&6
3332 fi
3333 done
3334
3335
3336 for ac_func in utimes random srandom getdtablesize snprintf re_comp re_exec
3337 do
3338 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3339 echo "configure:3340: checking for $ac_func" >&5
3340 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3341   echo $ac_n "(cached) $ac_c" 1>&6
3342 else
3343   cat > conftest.$ac_ext <<EOF
3344 #line 3345 "configure"
3345 #include "confdefs.h"
3346 /* System header to define __stub macros and hopefully few prototypes,
3347     which can conflict with char $ac_func(); below.  */
3348 #include <assert.h>
3349 /* Override any gcc2 internal prototype to avoid an error.  */
3350 /* We use char because int might match the return type of a gcc2
3351     builtin and then its argument prototype would still apply.  */
3352 char $ac_func();
3353
3354 int main() {
3355
3356 /* The GNU C library defines this for functions which it implements
3357     to always fail with ENOSYS.  Some functions are actually named
3358     something starting with __ and the normal name is an alias.  */
3359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3360 choke me
3361 #else
3362 $ac_func();
3363 #endif
3364
3365 ; return 0; }
3366 EOF
3367 if { (eval echo configure:3368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3368   rm -rf conftest*
3369   eval "ac_cv_func_$ac_func=yes"
3370 else
3371   echo "configure: failed program was:" >&5
3372   cat conftest.$ac_ext >&5
3373   rm -rf conftest*
3374   eval "ac_cv_func_$ac_func=no"
3375 fi
3376 rm -f conftest*
3377 fi
3378
3379 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3380   echo "$ac_t""yes" 1>&6
3381     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3382   cat >> confdefs.h <<EOF
3383 #define $ac_tr_func 1
3384 EOF
3385  
3386 else
3387   echo "$ac_t""no" 1>&6
3388 fi
3389 done
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401 trap '' 1 2 15
3402 cat > confcache <<\EOF
3403 # This file is a shell script that caches the results of configure
3404 # tests run on this system so they can be shared between configure
3405 # scripts and configure runs.  It is not useful on other systems.
3406 # If it contains results you don't want to keep, you may remove or edit it.
3407 #
3408 # By default, configure uses ./config.cache as the cache file,
3409 # creating it if it does not exist already.  You can give configure
3410 # the --cache-file=FILE option to use a different cache file; that is
3411 # what configure does when it calls configure scripts in
3412 # subdirectories, so they share the cache.
3413 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3414 # config.status only pays attention to the cache file if you give it the
3415 # --recheck option to rerun configure.
3416 #
3417 EOF
3418 # The following way of writing the cache mishandles newlines in values,
3419 # but we know of no workaround that is simple, portable, and efficient.
3420 # So, don't put newlines in cache variables' values.
3421 # Ultrix sh set writes to stderr and can't be redirected directly,
3422 # and sets the high bit in the cache file unless we assign to the vars.
3423 (set) 2>&1 |
3424   case `(ac_space=' '; set | grep ac_space) 2>&1` in
3425   *ac_space=\ *)
3426     # `set' does not quote correctly, so add quotes (double-quote substitution
3427     # turns \\\\ into \\, and sed turns \\ into \).
3428     sed -n \
3429       -e "s/'/'\\\\''/g" \
3430       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3431     ;;
3432   *)
3433     # `set' quotes correctly as required by POSIX, so do not add quotes.
3434     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3435     ;;
3436   esac >> confcache
3437 if cmp -s $cache_file confcache; then
3438   :
3439 else
3440   if test -w $cache_file; then
3441     echo "updating cache $cache_file"
3442     cat confcache > $cache_file
3443   else
3444     echo "not updating unwritable cache $cache_file"
3445   fi
3446 fi
3447 rm -f confcache
3448
3449 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3450
3451 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3452 # Let make expand exec_prefix.
3453 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3454
3455 # Any assignment to VPATH causes Sun make to only execute
3456 # the first set of double-colon rules, so remove it if not needed.
3457 # If there is a colon in the path, we need to keep it.
3458 if test "x$srcdir" = x.; then
3459   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
3460 fi
3461
3462 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3463
3464 DEFS=-DHAVE_CONFIG_H
3465
3466 # Without the "./", some shells look in PATH for config.status.
3467 : ${CONFIG_STATUS=./config.status}
3468
3469 echo creating $CONFIG_STATUS
3470 rm -f $CONFIG_STATUS
3471 cat > $CONFIG_STATUS <<EOF
3472 #! /bin/sh
3473 # Generated automatically by configure.
3474 # Run this file to recreate the current configuration.
3475 # This directory was configured as follows,
3476 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3477 #
3478 # $0 $ac_configure_args
3479 #
3480 # Compiler output produced by configure, useful for debugging
3481 # configure, is in ./config.log if it exists.
3482
3483 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3484 for ac_option
3485 do
3486   case "\$ac_option" in
3487   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3488     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3489     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3490   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3491     echo "$CONFIG_STATUS generated by autoconf version 2.13"
3492     exit 0 ;;
3493   -help | --help | --hel | --he | --h)
3494     echo "\$ac_cs_usage"; exit 0 ;;
3495   *) echo "\$ac_cs_usage"; exit 1 ;;
3496   esac
3497 done
3498
3499 ac_given_srcdir=$srcdir
3500 ac_given_INSTALL="$INSTALL"
3501
3502 trap 'rm -fr `echo "\
3503 Makefile               \
3504 src/config/Makefile.${AFS_SYSNAME} \
3505 src/libafs/MakefileProto.${MKAFS_OSTYPE} \
3506  src/config/afsconfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3507 EOF
3508 cat >> $CONFIG_STATUS <<EOF
3509
3510 # Protect against being on the right side of a sed subst in config.status.
3511 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3512  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3513 $ac_vpsub
3514 $extrasub
3515 s%@SHELL@%$SHELL%g
3516 s%@CFLAGS@%$CFLAGS%g
3517 s%@CPPFLAGS@%$CPPFLAGS%g
3518 s%@CXXFLAGS@%$CXXFLAGS%g
3519 s%@FFLAGS@%$FFLAGS%g
3520 s%@DEFS@%$DEFS%g
3521 s%@LDFLAGS@%$LDFLAGS%g
3522 s%@LIBS@%$LIBS%g
3523 s%@exec_prefix@%$exec_prefix%g
3524 s%@prefix@%$prefix%g
3525 s%@program_transform_name@%$program_transform_name%g
3526 s%@bindir@%$bindir%g
3527 s%@sbindir@%$sbindir%g
3528 s%@libexecdir@%$libexecdir%g
3529 s%@datadir@%$datadir%g
3530 s%@sysconfdir@%$sysconfdir%g
3531 s%@sharedstatedir@%$sharedstatedir%g
3532 s%@localstatedir@%$localstatedir%g
3533 s%@libdir@%$libdir%g
3534 s%@includedir@%$includedir%g
3535 s%@oldincludedir@%$oldincludedir%g
3536 s%@infodir@%$infodir%g
3537 s%@mandir@%$mandir%g
3538 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3539 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3540 s%@INSTALL_DATA@%$INSTALL_DATA%g
3541 s%@PACKAGE@%$PACKAGE%g
3542 s%@VERSION@%$VERSION%g
3543 s%@ACLOCAL@%$ACLOCAL%g
3544 s%@AUTOCONF@%$AUTOCONF%g
3545 s%@AUTOMAKE@%$AUTOMAKE%g
3546 s%@AUTOHEADER@%$AUTOHEADER%g
3547 s%@MAKEINFO@%$MAKEINFO%g
3548 s%@SET_MAKE@%$SET_MAKE%g
3549 s%@host@%$host%g
3550 s%@host_alias@%$host_alias%g
3551 s%@host_cpu@%$host_cpu%g
3552 s%@host_vendor@%$host_vendor%g
3553 s%@host_os@%$host_os%g
3554 s%@CC@%$CC%g
3555 s%@CPP@%$CPP%g
3556 s%@LN_S@%$LN_S%g
3557 s%@RANLIB@%$RANLIB%g
3558 s%@YACC@%$YACC%g
3559 s%@LEX@%$LEX%g
3560 s%@LEXLIB@%$LEXLIB%g
3561 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
3562 s%@PTHREAD_LIBS@%$PTHREAD_LIBS%g
3563 s%@AFS_SYSNAME@%$AFS_SYSNAME%g
3564 s%@LIB_AFSDB@%$LIB_AFSDB%g
3565 s%@LINUX_KERNEL_PATH@%$LINUX_KERNEL_PATH%g
3566 s%@LINUX_VERSION@%$LINUX_VERSION%g
3567 s%@MKAFS_OSTYPE@%$MKAFS_OSTYPE%g
3568 s%@TOP_SRCDIR@%$TOP_SRCDIR%g
3569 s%@WITH_OBSOLETE@%$WITH_OBSOLETE%g
3570 s%@WITH_INSECURE@%$WITH_INSECURE%g
3571
3572 CEOF
3573 EOF
3574
3575 cat >> $CONFIG_STATUS <<\EOF
3576
3577 # Split the substitutions into bite-sized pieces for seds with
3578 # small command number limits, like on Digital OSF/1 and HP-UX.
3579 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3580 ac_file=1 # Number of current file.
3581 ac_beg=1 # First line for current file.
3582 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3583 ac_more_lines=:
3584 ac_sed_cmds=""
3585 while $ac_more_lines; do
3586   if test $ac_beg -gt 1; then
3587     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3588   else
3589     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3590   fi
3591   if test ! -s conftest.s$ac_file; then
3592     ac_more_lines=false
3593     rm -f conftest.s$ac_file
3594   else
3595     if test -z "$ac_sed_cmds"; then
3596       ac_sed_cmds="sed -f conftest.s$ac_file"
3597     else
3598       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3599     fi
3600     ac_file=`expr $ac_file + 1`
3601     ac_beg=$ac_end
3602     ac_end=`expr $ac_end + $ac_max_sed_cmds`
3603   fi
3604 done
3605 if test -z "$ac_sed_cmds"; then
3606   ac_sed_cmds=cat
3607 fi
3608 EOF
3609
3610 cat >> $CONFIG_STATUS <<EOF
3611
3612 CONFIG_FILES=\${CONFIG_FILES-"\
3613 Makefile               \
3614 src/config/Makefile.${AFS_SYSNAME} \
3615 src/libafs/MakefileProto.${MKAFS_OSTYPE} \
3616 "}
3617 EOF
3618 cat >> $CONFIG_STATUS <<\EOF
3619 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3620   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3621   case "$ac_file" in
3622   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3623        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3624   *) ac_file_in="${ac_file}.in" ;;
3625   esac
3626
3627   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3628
3629   # Remove last slash and all that follows it.  Not all systems have dirname.
3630   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3631   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3632     # The file is in a subdirectory.
3633     test ! -d "$ac_dir" && mkdir "$ac_dir"
3634     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3635     # A "../" for each directory in $ac_dir_suffix.
3636     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3637   else
3638     ac_dir_suffix= ac_dots=
3639   fi
3640
3641   case "$ac_given_srcdir" in
3642   .)  srcdir=.
3643       if test -z "$ac_dots"; then top_srcdir=.
3644       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3645   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3646   *) # Relative path.
3647     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3648     top_srcdir="$ac_dots$ac_given_srcdir" ;;
3649   esac
3650
3651   case "$ac_given_INSTALL" in
3652   [/$]*) INSTALL="$ac_given_INSTALL" ;;
3653   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3654   esac
3655
3656   echo creating "$ac_file"
3657   rm -f "$ac_file"
3658   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3659   case "$ac_file" in
3660   *Makefile*) ac_comsub="1i\\
3661 # $configure_input" ;;
3662   *) ac_comsub= ;;
3663   esac
3664
3665   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3666   sed -e "$ac_comsub
3667 s%@configure_input@%$configure_input%g
3668 s%@srcdir@%$srcdir%g
3669 s%@top_srcdir@%$top_srcdir%g
3670 s%@INSTALL@%$INSTALL%g
3671 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3672 fi; done
3673 rm -f conftest.s*
3674
3675 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3676 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3677 #
3678 # ac_d sets the value in "#define NAME VALUE" lines.
3679 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
3680 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
3681 ac_dC='\3'
3682 ac_dD='%g'
3683 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3684 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
3685 ac_uB='\([      ]\)%\1#\2define\3'
3686 ac_uC=' '
3687 ac_uD='\4%g'
3688 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3689 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
3690 ac_eB='$%\1#\2define\3'
3691 ac_eC=' '
3692 ac_eD='%g'
3693
3694 if test "${CONFIG_HEADERS+set}" != set; then
3695 EOF
3696 cat >> $CONFIG_STATUS <<EOF
3697   CONFIG_HEADERS="src/config/afsconfig.h"
3698 EOF
3699 cat >> $CONFIG_STATUS <<\EOF
3700 fi
3701 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3702   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3703   case "$ac_file" in
3704   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3705        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3706   *) ac_file_in="${ac_file}.in" ;;
3707   esac
3708
3709   echo creating $ac_file
3710
3711   rm -f conftest.frag conftest.in conftest.out
3712   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3713   cat $ac_file_inputs > conftest.in
3714
3715 EOF
3716
3717 # Transform confdefs.h into a sed script conftest.vals that substitutes
3718 # the proper values into config.h.in to produce config.h.  And first:
3719 # Protect against being on the right side of a sed subst in config.status.
3720 # Protect against being in an unquoted here document in config.status.
3721 rm -f conftest.vals
3722 cat > conftest.hdr <<\EOF
3723 s/[\\&%]/\\&/g
3724 s%[\\$`]%\\&%g
3725 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3726 s%ac_d%ac_u%gp
3727 s%ac_u%ac_e%gp
3728 EOF
3729 sed -n -f conftest.hdr confdefs.h > conftest.vals
3730 rm -f conftest.hdr
3731
3732 # This sed command replaces #undef with comments.  This is necessary, for
3733 # example, in the case of _POSIX_SOURCE, which is predefined and required
3734 # on some systems where configure will not decide to define it.
3735 cat >> conftest.vals <<\EOF
3736 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3737 EOF
3738
3739 # Break up conftest.vals because some shells have a limit on
3740 # the size of here documents, and old seds have small limits too.
3741
3742 rm -f conftest.tail
3743 while :
3744 do
3745   ac_lines=`grep -c . conftest.vals`
3746   # grep -c gives empty output for an empty file on some AIX systems.
3747   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3748   # Write a limited-size here document to conftest.frag.
3749   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3750   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3751   echo 'CEOF
3752   sed -f conftest.frag conftest.in > conftest.out
3753   rm -f conftest.in
3754   mv conftest.out conftest.in
3755 ' >> $CONFIG_STATUS
3756   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3757   rm -f conftest.vals
3758   mv conftest.tail conftest.vals
3759 done
3760 rm -f conftest.vals
3761
3762 cat >> $CONFIG_STATUS <<\EOF
3763   rm -f conftest.frag conftest.h
3764   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
3765   cat conftest.in >> conftest.h
3766   rm -f conftest.in
3767   if cmp -s $ac_file conftest.h 2>/dev/null; then
3768     echo "$ac_file is unchanged"
3769     rm -f conftest.h
3770   else
3771     # Remove last slash and all that follows it.  Not all systems have dirname.
3772       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3773       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3774       # The file is in a subdirectory.
3775       test ! -d "$ac_dir" && mkdir "$ac_dir"
3776     fi
3777     rm -f $ac_file
3778     mv conftest.h $ac_file
3779   fi
3780 fi; done
3781
3782 EOF
3783 cat >> $CONFIG_STATUS <<EOF
3784
3785 EOF
3786 cat >> $CONFIG_STATUS <<\EOF
3787
3788 exit 0
3789 EOF
3790 chmod +x $CONFIG_STATUS
3791 rm -fr confdefs* $ac_clean_files
3792 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3793