* README-alpha: added alpha README file
[findutils.git] / configure
blob203a26b8f4a2047630076f532fd3aa24f5e2960d
1 #! /bin/sh
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.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --enable-id-cache cache all UIDs & GIDs; avoid if using NIS or Hesiod"
16 ac_help="$ac_help
17 --with-afs support -fstype afs"
19 # Initialize some variables set by options.
20 # The variables have the same names as the options, with
21 # dashes changed to underlines.
22 build=NONE
23 cache_file=./config.cache
24 exec_prefix=NONE
25 host=NONE
26 no_create=
27 nonopt=NONE
28 no_recursion=
29 prefix=NONE
30 program_prefix=NONE
31 program_suffix=NONE
32 program_transform_name=s,x,x,
33 silent=
34 site=
35 srcdir=
36 target=NONE
37 verbose=
38 x_includes=NONE
39 x_libraries=NONE
40 bindir='${exec_prefix}/bin'
41 sbindir='${exec_prefix}/sbin'
42 libexecdir='${exec_prefix}/libexec'
43 datadir='${prefix}/share'
44 sysconfdir='${prefix}/etc'
45 sharedstatedir='${prefix}/com'
46 localstatedir='${prefix}/var'
47 libdir='${exec_prefix}/lib'
48 includedir='${prefix}/include'
49 oldincludedir='/usr/include'
50 infodir='${prefix}/info'
51 mandir='${prefix}/man'
53 # Initialize some other variables.
54 subdirs=
55 MFLAGS= MAKEFLAGS=
56 SHELL=${CONFIG_SHELL-/bin/sh}
57 # Maximum number of lines to put in a shell here document.
58 ac_max_here_lines=12
60 ac_prev=
61 for ac_option
64 # If the previous option needs an argument, assign it.
65 if test -n "$ac_prev"; then
66 eval "$ac_prev=\$ac_option"
67 ac_prev=
68 continue
71 case "$ac_option" in
72 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
73 *) ac_optarg= ;;
74 esac
76 # Accept the important Cygnus configure options, so we can diagnose typos.
78 case "$ac_option" in
80 -bindir | --bindir | --bindi | --bind | --bin | --bi)
81 ac_prev=bindir ;;
82 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
83 bindir="$ac_optarg" ;;
85 -build | --build | --buil | --bui | --bu)
86 ac_prev=build ;;
87 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
88 build="$ac_optarg" ;;
90 -cache-file | --cache-file | --cache-fil | --cache-fi \
91 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
92 ac_prev=cache_file ;;
93 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
94 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
95 cache_file="$ac_optarg" ;;
97 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
98 ac_prev=datadir ;;
99 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
100 | --da=*)
101 datadir="$ac_optarg" ;;
103 -disable-* | --disable-*)
104 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
105 # Reject names that are not valid shell variable names.
106 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
107 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
109 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
110 eval "enable_${ac_feature}=no" ;;
112 -enable-* | --enable-*)
113 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
114 # Reject names that are not valid shell variable names.
115 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
116 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
118 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
119 case "$ac_option" in
120 *=*) ;;
121 *) ac_optarg=yes ;;
122 esac
123 eval "enable_${ac_feature}='$ac_optarg'" ;;
125 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
126 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
127 | --exec | --exe | --ex)
128 ac_prev=exec_prefix ;;
129 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
130 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
131 | --exec=* | --exe=* | --ex=*)
132 exec_prefix="$ac_optarg" ;;
134 -gas | --gas | --ga | --g)
135 # Obsolete; use --with-gas.
136 with_gas=yes ;;
138 -help | --help | --hel | --he)
139 # Omit some internal or obsolete options to make the list less imposing.
140 # This message is too long to be a string in the A/UX 3.1 sh.
141 cat << EOF
142 Usage: configure [options] [host]
143 Options: [defaults in brackets after descriptions]
144 Configuration:
145 --cache-file=FILE cache test results in FILE
146 --help print this message
147 --no-create do not create output files
148 --quiet, --silent do not print \`checking...' messages
149 --version print the version of autoconf that created configure
150 Directory and file names:
151 --prefix=PREFIX install architecture-independent files in PREFIX
152 [$ac_default_prefix]
153 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
154 [same as prefix]
155 --bindir=DIR user executables in DIR [EPREFIX/bin]
156 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
157 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
158 --datadir=DIR read-only architecture-independent data in DIR
159 [PREFIX/share]
160 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
161 --sharedstatedir=DIR modifiable architecture-independent data in DIR
162 [PREFIX/com]
163 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
164 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
165 --includedir=DIR C header files in DIR [PREFIX/include]
166 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
167 --infodir=DIR info documentation in DIR [PREFIX/info]
168 --mandir=DIR man documentation in DIR [PREFIX/man]
169 --srcdir=DIR find the sources in DIR [configure dir or ..]
170 --program-prefix=PREFIX prepend PREFIX to installed program names
171 --program-suffix=SUFFIX append SUFFIX to installed program names
172 --program-transform-name=PROGRAM
173 run sed PROGRAM on installed program names
175 cat << EOF
176 Host type:
177 --build=BUILD configure for building on BUILD [BUILD=HOST]
178 --host=HOST configure for HOST [guessed]
179 --target=TARGET configure for TARGET [TARGET=HOST]
180 Features and packages:
181 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
182 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
183 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
184 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
185 --x-includes=DIR X include files are in DIR
186 --x-libraries=DIR X library files are in DIR
188 if test -n "$ac_help"; then
189 echo "--enable and --with options recognized:$ac_help"
191 exit 0 ;;
193 -host | --host | --hos | --ho)
194 ac_prev=host ;;
195 -host=* | --host=* | --hos=* | --ho=*)
196 host="$ac_optarg" ;;
198 -includedir | --includedir | --includedi | --included | --include \
199 | --includ | --inclu | --incl | --inc)
200 ac_prev=includedir ;;
201 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
202 | --includ=* | --inclu=* | --incl=* | --inc=*)
203 includedir="$ac_optarg" ;;
205 -infodir | --infodir | --infodi | --infod | --info | --inf)
206 ac_prev=infodir ;;
207 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
208 infodir="$ac_optarg" ;;
210 -libdir | --libdir | --libdi | --libd)
211 ac_prev=libdir ;;
212 -libdir=* | --libdir=* | --libdi=* | --libd=*)
213 libdir="$ac_optarg" ;;
215 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
216 | --libexe | --libex | --libe)
217 ac_prev=libexecdir ;;
218 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
219 | --libexe=* | --libex=* | --libe=*)
220 libexecdir="$ac_optarg" ;;
222 -localstatedir | --localstatedir | --localstatedi | --localstated \
223 | --localstate | --localstat | --localsta | --localst \
224 | --locals | --local | --loca | --loc | --lo)
225 ac_prev=localstatedir ;;
226 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
227 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
228 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
229 localstatedir="$ac_optarg" ;;
231 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
232 ac_prev=mandir ;;
233 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
234 mandir="$ac_optarg" ;;
236 -nfp | --nfp | --nf)
237 # Obsolete; use --without-fp.
238 with_fp=no ;;
240 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
241 | --no-cr | --no-c)
242 no_create=yes ;;
244 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
245 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
246 no_recursion=yes ;;
248 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
249 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
250 | --oldin | --oldi | --old | --ol | --o)
251 ac_prev=oldincludedir ;;
252 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
253 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
254 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
255 oldincludedir="$ac_optarg" ;;
257 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
258 ac_prev=prefix ;;
259 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
260 prefix="$ac_optarg" ;;
262 -program-prefix | --program-prefix | --program-prefi | --program-pref \
263 | --program-pre | --program-pr | --program-p)
264 ac_prev=program_prefix ;;
265 -program-prefix=* | --program-prefix=* | --program-prefi=* \
266 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
267 program_prefix="$ac_optarg" ;;
269 -program-suffix | --program-suffix | --program-suffi | --program-suff \
270 | --program-suf | --program-su | --program-s)
271 ac_prev=program_suffix ;;
272 -program-suffix=* | --program-suffix=* | --program-suffi=* \
273 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
274 program_suffix="$ac_optarg" ;;
276 -program-transform-name | --program-transform-name \
277 | --program-transform-nam | --program-transform-na \
278 | --program-transform-n | --program-transform- \
279 | --program-transform | --program-transfor \
280 | --program-transfo | --program-transf \
281 | --program-trans | --program-tran \
282 | --progr-tra | --program-tr | --program-t)
283 ac_prev=program_transform_name ;;
284 -program-transform-name=* | --program-transform-name=* \
285 | --program-transform-nam=* | --program-transform-na=* \
286 | --program-transform-n=* | --program-transform-=* \
287 | --program-transform=* | --program-transfor=* \
288 | --program-transfo=* | --program-transf=* \
289 | --program-trans=* | --program-tran=* \
290 | --progr-tra=* | --program-tr=* | --program-t=*)
291 program_transform_name="$ac_optarg" ;;
293 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
294 | -silent | --silent | --silen | --sile | --sil)
295 silent=yes ;;
297 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
298 ac_prev=sbindir ;;
299 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
300 | --sbi=* | --sb=*)
301 sbindir="$ac_optarg" ;;
303 -sharedstatedir | --sharedstatedir | --sharedstatedi \
304 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
305 | --sharedst | --shareds | --shared | --share | --shar \
306 | --sha | --sh)
307 ac_prev=sharedstatedir ;;
308 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
309 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
310 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
311 | --sha=* | --sh=*)
312 sharedstatedir="$ac_optarg" ;;
314 -site | --site | --sit)
315 ac_prev=site ;;
316 -site=* | --site=* | --sit=*)
317 site="$ac_optarg" ;;
319 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
320 ac_prev=srcdir ;;
321 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
322 srcdir="$ac_optarg" ;;
324 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
325 | --syscon | --sysco | --sysc | --sys | --sy)
326 ac_prev=sysconfdir ;;
327 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
328 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
329 sysconfdir="$ac_optarg" ;;
331 -target | --target | --targe | --targ | --tar | --ta | --t)
332 ac_prev=target ;;
333 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
334 target="$ac_optarg" ;;
336 -v | -verbose | --verbose | --verbos | --verbo | --verb)
337 verbose=yes ;;
339 -version | --version | --versio | --versi | --vers)
340 echo "configure generated by autoconf version 2.13"
341 exit 0 ;;
343 -with-* | --with-*)
344 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
345 # Reject names that are not valid shell variable names.
346 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
347 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
349 ac_package=`echo $ac_package| sed 's/-/_/g'`
350 case "$ac_option" in
351 *=*) ;;
352 *) ac_optarg=yes ;;
353 esac
354 eval "with_${ac_package}='$ac_optarg'" ;;
356 -without-* | --without-*)
357 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
358 # Reject names that are not valid shell variable names.
359 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
360 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
362 ac_package=`echo $ac_package| sed 's/-/_/g'`
363 eval "with_${ac_package}=no" ;;
365 --x)
366 # Obsolete; use --with-x.
367 with_x=yes ;;
369 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
370 | --x-incl | --x-inc | --x-in | --x-i)
371 ac_prev=x_includes ;;
372 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
373 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
374 x_includes="$ac_optarg" ;;
376 -x-libraries | --x-libraries | --x-librarie | --x-librari \
377 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
378 ac_prev=x_libraries ;;
379 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
380 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
381 x_libraries="$ac_optarg" ;;
383 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
387 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
388 echo "configure: warning: $ac_option: invalid host type" 1>&2
390 if test "x$nonopt" != xNONE; then
391 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
393 nonopt="$ac_option"
396 esac
397 done
399 if test -n "$ac_prev"; then
400 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
403 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
405 # File descriptor usage:
406 # 0 standard input
407 # 1 file creation
408 # 2 errors and warnings
409 # 3 some systems may open it to /dev/tty
410 # 4 used on the Kubota Titan
411 # 6 checking for... messages and results
412 # 5 compiler messages saved in config.log
413 if test "$silent" = yes; then
414 exec 6>/dev/null
415 else
416 exec 6>&1
418 exec 5>./config.log
420 echo "\
421 This file contains any messages produced by compilers while
422 running configure, to aid debugging if configure makes a mistake.
423 " 1>&5
425 # Strip out --no-create and --no-recursion so they do not pile up.
426 # Also quote any args containing shell metacharacters.
427 ac_configure_args=
428 for ac_arg
430 case "$ac_arg" in
431 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
432 | --no-cr | --no-c) ;;
433 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
434 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
435 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
436 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
437 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
438 esac
439 done
441 # NLS nuisances.
442 # Only set these to C if already set. These must not be set unconditionally
443 # because not all systems understand e.g. LANG=C (notably SCO).
444 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
445 # Non-C LC_CTYPE values break the ctype check.
446 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
447 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
448 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
449 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
451 # confdefs.h avoids OS command line length limits that DEFS can exceed.
452 rm -rf conftest* confdefs.h
453 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
454 echo > confdefs.h
456 # A filename unique to this package, relative to the directory that
457 # configure is in, which we can look for to find out if srcdir is correct.
458 ac_unique_file=find/pred.c
460 # Find the source files, if location was not specified.
461 if test -z "$srcdir"; then
462 ac_srcdir_defaulted=yes
463 # Try the directory containing this script, then its parent.
464 ac_prog=$0
465 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
466 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
467 srcdir=$ac_confdir
468 if test ! -r $srcdir/$ac_unique_file; then
469 srcdir=..
471 else
472 ac_srcdir_defaulted=no
474 if test ! -r $srcdir/$ac_unique_file; then
475 if test "$ac_srcdir_defaulted" = yes; then
476 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
477 else
478 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
481 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
483 # Prefer explicitly selected file to automatically selected ones.
484 if test -z "$CONFIG_SITE"; then
485 if test "x$prefix" != xNONE; then
486 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
487 else
488 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
491 for ac_site_file in $CONFIG_SITE; do
492 if test -r "$ac_site_file"; then
493 echo "loading site script $ac_site_file"
494 . "$ac_site_file"
496 done
498 if test -r "$cache_file"; then
499 echo "loading cache $cache_file"
500 . $cache_file
501 else
502 echo "creating cache $cache_file"
503 > $cache_file
506 ac_ext=c
507 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
508 ac_cpp='$CPP $CPPFLAGS'
509 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
510 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
511 cross_compiling=$ac_cv_prog_cc_cross
513 ac_exeext=
514 ac_objext=o
515 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
516 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
517 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
518 ac_n= ac_c='
519 ' ac_t=' '
520 else
521 ac_n=-n ac_c= ac_t=
523 else
524 ac_n= ac_c='\c' ac_t=
532 ac_aux_dir=
533 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
534 if test -f $ac_dir/install-sh; then
535 ac_aux_dir=$ac_dir
536 ac_install_sh="$ac_aux_dir/install-sh -c"
537 break
538 elif test -f $ac_dir/install.sh; then
539 ac_aux_dir=$ac_dir
540 ac_install_sh="$ac_aux_dir/install.sh -c"
541 break
543 done
544 if test -z "$ac_aux_dir"; then
545 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
547 ac_config_guess=$ac_aux_dir/config.guess
548 ac_config_sub=$ac_aux_dir/config.sub
549 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
551 # Find a good install program. We prefer a C program (faster),
552 # so one script is as good as another. But avoid the broken or
553 # incompatible versions:
554 # SysV /etc/install, /usr/sbin/install
555 # SunOS /usr/etc/install
556 # IRIX /sbin/install
557 # AIX /bin/install
558 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
559 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
560 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
561 # ./install, which can be erroneously created by make from ./install.sh.
562 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
563 echo "configure:564: checking for a BSD compatible install" >&5
564 if test -z "$INSTALL"; then
565 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
566 echo $ac_n "(cached) $ac_c" 1>&6
567 else
568 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
569 for ac_dir in $PATH; do
570 # Account for people who put trailing slashes in PATH elements.
571 case "$ac_dir/" in
572 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
574 # OSF1 and SCO ODT 3.0 have their own names for install.
575 # Don't use installbsd from OSF since it installs stuff as root
576 # by default.
577 for ac_prog in ginstall scoinst install; do
578 if test -f $ac_dir/$ac_prog; then
579 if test $ac_prog = install &&
580 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
581 # AIX install. It has an incompatible calling convention.
583 else
584 ac_cv_path_install="$ac_dir/$ac_prog -c"
585 break 2
588 done
590 esac
591 done
592 IFS="$ac_save_IFS"
595 if test "${ac_cv_path_install+set}" = set; then
596 INSTALL="$ac_cv_path_install"
597 else
598 # As a last resort, use the slow shell script. We don't cache a
599 # path for INSTALL within a source directory, because that will
600 # break other packages using the cache if that directory is
601 # removed, or if the path is relative.
602 INSTALL="$ac_install_sh"
605 echo "$ac_t""$INSTALL" 1>&6
607 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
608 # It thinks the first close brace ends the variable substitution.
609 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
611 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
613 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
615 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
616 echo "configure:617: checking whether build environment is sane" >&5
617 # Just in case
618 sleep 1
619 echo timestamp > conftestfile
620 # Do `set' in a subshell so we don't clobber the current shell's
621 # arguments. Must try -L first in case configure is actually a
622 # symlink; some systems play weird games with the mod time of symlinks
623 # (eg FreeBSD returns the mod time of the symlink's containing
624 # directory).
625 if (
626 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
627 if test "$*" = "X"; then
628 # -L didn't work.
629 set X `ls -t $srcdir/configure conftestfile`
631 if test "$*" != "X $srcdir/configure conftestfile" \
632 && test "$*" != "X conftestfile $srcdir/configure"; then
634 # If neither matched, then we have a broken ls. This can happen
635 # if, for instance, CONFIG_SHELL is bash and it inherits a
636 # broken ls alias from the environment. This has actually
637 # happened. Such a system could not be considered "sane".
638 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
639 alias in your environment" 1>&2; exit 1; }
642 test "$2" = conftestfile
644 then
645 # Ok.
647 else
648 { echo "configure: error: newly created file is older than distributed files!
649 Check your system clock" 1>&2; exit 1; }
651 rm -f conftest*
652 echo "$ac_t""yes" 1>&6
653 if test "$program_transform_name" = s,x,x,; then
654 program_transform_name=
655 else
656 # Double any \ or $. echo might interpret backslashes.
657 cat <<\EOF_SED > conftestsed
658 s,\\,\\\\,g; s,\$,$$,g
659 EOF_SED
660 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
661 rm -f conftestsed
663 test "$program_prefix" != NONE &&
664 program_transform_name="s,^,${program_prefix},; $program_transform_name"
665 # Use a double $ so make ignores it.
666 test "$program_suffix" != NONE &&
667 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
669 # sed with no file args requires a program.
670 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
672 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
673 echo "configure:674: checking whether ${MAKE-make} sets \${MAKE}" >&5
674 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
675 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
676 echo $ac_n "(cached) $ac_c" 1>&6
677 else
678 cat > conftestmake <<\EOF
679 all:
680 @echo 'ac_maketemp="${MAKE}"'
682 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
683 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
684 if test -n "$ac_maketemp"; then
685 eval ac_cv_prog_make_${ac_make}_set=yes
686 else
687 eval ac_cv_prog_make_${ac_make}_set=no
689 rm -f conftestmake
691 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
692 echo "$ac_t""yes" 1>&6
693 SET_MAKE=
694 else
695 echo "$ac_t""no" 1>&6
696 SET_MAKE="MAKE=${MAKE-make}"
700 PACKAGE=findutils
702 VERSION=4.1.1
704 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
705 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
707 cat >> confdefs.h <<EOF
708 #define PACKAGE "$PACKAGE"
711 cat >> confdefs.h <<EOF
712 #define VERSION "$VERSION"
717 missing_dir=`cd $ac_aux_dir && pwd`
718 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
719 echo "configure:720: checking for working aclocal" >&5
720 # Run test in a subshell; some versions of sh will print an error if
721 # an executable is not found, even if stderr is redirected.
722 # Redirect stdin to placate older versions of autoconf. Sigh.
723 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
724 ACLOCAL=aclocal
725 echo "$ac_t""found" 1>&6
726 else
727 ACLOCAL="$missing_dir/missing aclocal"
728 echo "$ac_t""missing" 1>&6
731 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
732 echo "configure:733: checking for working autoconf" >&5
733 # Run test in a subshell; some versions of sh will print an error if
734 # an executable is not found, even if stderr is redirected.
735 # Redirect stdin to placate older versions of autoconf. Sigh.
736 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
737 AUTOCONF=autoconf
738 echo "$ac_t""found" 1>&6
739 else
740 AUTOCONF="$missing_dir/missing autoconf"
741 echo "$ac_t""missing" 1>&6
744 echo $ac_n "checking for working automake""... $ac_c" 1>&6
745 echo "configure:746: checking for working automake" >&5
746 # Run test in a subshell; some versions of sh will print an error if
747 # an executable is not found, even if stderr is redirected.
748 # Redirect stdin to placate older versions of autoconf. Sigh.
749 if (automake --version) < /dev/null > /dev/null 2>&1; then
750 AUTOMAKE=automake
751 echo "$ac_t""found" 1>&6
752 else
753 AUTOMAKE="$missing_dir/missing automake"
754 echo "$ac_t""missing" 1>&6
757 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
758 echo "configure:759: checking for working autoheader" >&5
759 # Run test in a subshell; some versions of sh will print an error if
760 # an executable is not found, even if stderr is redirected.
761 # Redirect stdin to placate older versions of autoconf. Sigh.
762 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
763 AUTOHEADER=autoheader
764 echo "$ac_t""found" 1>&6
765 else
766 AUTOHEADER="$missing_dir/missing autoheader"
767 echo "$ac_t""missing" 1>&6
770 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
771 echo "configure:772: checking for working makeinfo" >&5
772 # Run test in a subshell; some versions of sh will print an error if
773 # an executable is not found, even if stderr is redirected.
774 # Redirect stdin to placate older versions of autoconf. Sigh.
775 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
776 MAKEINFO=makeinfo
777 echo "$ac_t""found" 1>&6
778 else
779 MAKEINFO="$missing_dir/missing makeinfo"
780 echo "$ac_t""missing" 1>&6
785 # Check whether --enable-id-cache or --disable-id-cache was given.
786 if test "${enable_id_cache+set}" = set; then
787 enableval="$enable_id_cache"
788 cat >> confdefs.h <<\EOF
789 #define CACHE_IDS 1
794 # Check whether --with-afs or --without-afs was given.
795 if test "${with_afs+set}" = set; then
796 withval="$with_afs"
797 cat >> confdefs.h <<\EOF
798 #define AFS 1
801 CPPFLAGS="$CPPFLAGS -I/usr/afsws/include"
802 LIBS="$LIBS -L/usr/afsws/lib -L/usr/afsws/lib/afs -lsys -lrx -llwp"
805 if test "$program_transform_name" = s,x,x,; then
806 program_transform_name=
807 else
808 # Double any \ or $. echo might interpret backslashes.
809 cat <<\EOF_SED > conftestsed
810 s,\\,\\\\,g; s,\$,$$,g
811 EOF_SED
812 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
813 rm -f conftestsed
815 test "$program_prefix" != NONE &&
816 program_transform_name="s,^,${program_prefix},; $program_transform_name"
817 # Use a double $ so make ignores it.
818 test "$program_suffix" != NONE &&
819 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
821 # sed with no file args requires a program.
822 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
825 # Extract the first word of "gcc", so it can be a program name with args.
826 set dummy gcc; ac_word=$2
827 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
828 echo "configure:829: checking for $ac_word" >&5
829 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
830 echo $ac_n "(cached) $ac_c" 1>&6
831 else
832 if test -n "$CC"; then
833 ac_cv_prog_CC="$CC" # Let the user override the test.
834 else
835 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
836 ac_dummy="$PATH"
837 for ac_dir in $ac_dummy; do
838 test -z "$ac_dir" && ac_dir=.
839 if test -f $ac_dir/$ac_word; then
840 ac_cv_prog_CC="gcc"
841 break
843 done
844 IFS="$ac_save_ifs"
847 CC="$ac_cv_prog_CC"
848 if test -n "$CC"; then
849 echo "$ac_t""$CC" 1>&6
850 else
851 echo "$ac_t""no" 1>&6
854 if test -z "$CC"; then
855 # Extract the first word of "cc", so it can be a program name with args.
856 set dummy cc; ac_word=$2
857 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
858 echo "configure:859: checking for $ac_word" >&5
859 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
860 echo $ac_n "(cached) $ac_c" 1>&6
861 else
862 if test -n "$CC"; then
863 ac_cv_prog_CC="$CC" # Let the user override the test.
864 else
865 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
866 ac_prog_rejected=no
867 ac_dummy="$PATH"
868 for ac_dir in $ac_dummy; do
869 test -z "$ac_dir" && ac_dir=.
870 if test -f $ac_dir/$ac_word; then
871 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
872 ac_prog_rejected=yes
873 continue
875 ac_cv_prog_CC="cc"
876 break
878 done
879 IFS="$ac_save_ifs"
880 if test $ac_prog_rejected = yes; then
881 # We found a bogon in the path, so make sure we never use it.
882 set dummy $ac_cv_prog_CC
883 shift
884 if test $# -gt 0; then
885 # We chose a different compiler from the bogus one.
886 # However, it has the same basename, so the bogon will be chosen
887 # first if we set CC to just the basename; use the full file name.
888 shift
889 set dummy "$ac_dir/$ac_word" "$@"
890 shift
891 ac_cv_prog_CC="$@"
896 CC="$ac_cv_prog_CC"
897 if test -n "$CC"; then
898 echo "$ac_t""$CC" 1>&6
899 else
900 echo "$ac_t""no" 1>&6
903 if test -z "$CC"; then
904 case "`uname -s`" in
905 *win32* | *WIN32*)
906 # Extract the first word of "cl", so it can be a program name with args.
907 set dummy cl; ac_word=$2
908 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
909 echo "configure:910: checking for $ac_word" >&5
910 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
911 echo $ac_n "(cached) $ac_c" 1>&6
912 else
913 if test -n "$CC"; then
914 ac_cv_prog_CC="$CC" # Let the user override the test.
915 else
916 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
917 ac_dummy="$PATH"
918 for ac_dir in $ac_dummy; do
919 test -z "$ac_dir" && ac_dir=.
920 if test -f $ac_dir/$ac_word; then
921 ac_cv_prog_CC="cl"
922 break
924 done
925 IFS="$ac_save_ifs"
928 CC="$ac_cv_prog_CC"
929 if test -n "$CC"; then
930 echo "$ac_t""$CC" 1>&6
931 else
932 echo "$ac_t""no" 1>&6
935 esac
937 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
940 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
941 echo "configure:942: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
943 ac_ext=c
944 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
945 ac_cpp='$CPP $CPPFLAGS'
946 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
947 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
948 cross_compiling=$ac_cv_prog_cc_cross
950 cat > conftest.$ac_ext << EOF
952 #line 953 "configure"
953 #include "confdefs.h"
955 main(){return(0);}
957 if { (eval echo configure:958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
958 ac_cv_prog_cc_works=yes
959 # If we can't run a trivial program, we are probably using a cross compiler.
960 if (./conftest; exit) 2>/dev/null; then
961 ac_cv_prog_cc_cross=no
962 else
963 ac_cv_prog_cc_cross=yes
965 else
966 echo "configure: failed program was:" >&5
967 cat conftest.$ac_ext >&5
968 ac_cv_prog_cc_works=no
970 rm -fr conftest*
971 ac_ext=c
972 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
973 ac_cpp='$CPP $CPPFLAGS'
974 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
975 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
976 cross_compiling=$ac_cv_prog_cc_cross
978 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
979 if test $ac_cv_prog_cc_works = no; then
980 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
982 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
983 echo "configure:984: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
984 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
985 cross_compiling=$ac_cv_prog_cc_cross
987 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
988 echo "configure:989: checking whether we are using GNU C" >&5
989 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
990 echo $ac_n "(cached) $ac_c" 1>&6
991 else
992 cat > conftest.c <<EOF
993 #ifdef __GNUC__
994 yes;
995 #endif
997 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
998 ac_cv_prog_gcc=yes
999 else
1000 ac_cv_prog_gcc=no
1004 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1006 if test $ac_cv_prog_gcc = yes; then
1007 GCC=yes
1008 else
1009 GCC=
1012 ac_test_CFLAGS="${CFLAGS+set}"
1013 ac_save_CFLAGS="$CFLAGS"
1014 CFLAGS=
1015 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1016 echo "configure:1017: checking whether ${CC-cc} accepts -g" >&5
1017 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1018 echo $ac_n "(cached) $ac_c" 1>&6
1019 else
1020 echo 'void f(){}' > conftest.c
1021 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1022 ac_cv_prog_cc_g=yes
1023 else
1024 ac_cv_prog_cc_g=no
1026 rm -f conftest*
1030 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1031 if test "$ac_test_CFLAGS" = set; then
1032 CFLAGS="$ac_save_CFLAGS"
1033 elif test $ac_cv_prog_cc_g = yes; then
1034 if test "$GCC" = yes; then
1035 CFLAGS="-g -O2"
1036 else
1037 CFLAGS="-g"
1039 else
1040 if test "$GCC" = yes; then
1041 CFLAGS="-O2"
1042 else
1043 CFLAGS=
1047 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1048 echo "configure:1049: checking how to run the C preprocessor" >&5
1049 # On Suns, sometimes $CPP names a directory.
1050 if test -n "$CPP" && test -d "$CPP"; then
1051 CPP=
1053 if test -z "$CPP"; then
1054 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1055 echo $ac_n "(cached) $ac_c" 1>&6
1056 else
1057 # This must be in double quotes, not single quotes, because CPP may get
1058 # substituted into the Makefile and "${CC-cc}" will confuse make.
1059 CPP="${CC-cc} -E"
1060 # On the NeXT, cc -E runs the code through the compiler's parser,
1061 # not just through cpp.
1062 cat > conftest.$ac_ext <<EOF
1063 #line 1064 "configure"
1064 #include "confdefs.h"
1065 #include <assert.h>
1066 Syntax Error
1068 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1069 { (eval echo configure:1070: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1070 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1071 if test -z "$ac_err"; then
1073 else
1074 echo "$ac_err" >&5
1075 echo "configure: failed program was:" >&5
1076 cat conftest.$ac_ext >&5
1077 rm -rf conftest*
1078 CPP="${CC-cc} -E -traditional-cpp"
1079 cat > conftest.$ac_ext <<EOF
1080 #line 1081 "configure"
1081 #include "confdefs.h"
1082 #include <assert.h>
1083 Syntax Error
1085 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1086 { (eval echo configure:1087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1087 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1088 if test -z "$ac_err"; then
1090 else
1091 echo "$ac_err" >&5
1092 echo "configure: failed program was:" >&5
1093 cat conftest.$ac_ext >&5
1094 rm -rf conftest*
1095 CPP="${CC-cc} -nologo -E"
1096 cat > conftest.$ac_ext <<EOF
1097 #line 1098 "configure"
1098 #include "confdefs.h"
1099 #include <assert.h>
1100 Syntax Error
1102 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1103 { (eval echo configure:1104: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1104 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1105 if test -z "$ac_err"; then
1107 else
1108 echo "$ac_err" >&5
1109 echo "configure: failed program was:" >&5
1110 cat conftest.$ac_ext >&5
1111 rm -rf conftest*
1112 CPP=/lib/cpp
1114 rm -f conftest*
1116 rm -f conftest*
1118 rm -f conftest*
1119 ac_cv_prog_CPP="$CPP"
1121 CPP="$ac_cv_prog_CPP"
1122 else
1123 ac_cv_prog_CPP="$CPP"
1125 echo "$ac_t""$CPP" 1>&6
1127 # Find a good install program. We prefer a C program (faster),
1128 # so one script is as good as another. But avoid the broken or
1129 # incompatible versions:
1130 # SysV /etc/install, /usr/sbin/install
1131 # SunOS /usr/etc/install
1132 # IRIX /sbin/install
1133 # AIX /bin/install
1134 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1135 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1136 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1137 # ./install, which can be erroneously created by make from ./install.sh.
1138 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1139 echo "configure:1140: checking for a BSD compatible install" >&5
1140 if test -z "$INSTALL"; then
1141 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1142 echo $ac_n "(cached) $ac_c" 1>&6
1143 else
1144 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1145 for ac_dir in $PATH; do
1146 # Account for people who put trailing slashes in PATH elements.
1147 case "$ac_dir/" in
1148 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1150 # OSF1 and SCO ODT 3.0 have their own names for install.
1151 # Don't use installbsd from OSF since it installs stuff as root
1152 # by default.
1153 for ac_prog in ginstall scoinst install; do
1154 if test -f $ac_dir/$ac_prog; then
1155 if test $ac_prog = install &&
1156 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1157 # AIX install. It has an incompatible calling convention.
1159 else
1160 ac_cv_path_install="$ac_dir/$ac_prog -c"
1161 break 2
1164 done
1166 esac
1167 done
1168 IFS="$ac_save_IFS"
1171 if test "${ac_cv_path_install+set}" = set; then
1172 INSTALL="$ac_cv_path_install"
1173 else
1174 # As a last resort, use the slow shell script. We don't cache a
1175 # path for INSTALL within a source directory, because that will
1176 # break other packages using the cache if that directory is
1177 # removed, or if the path is relative.
1178 INSTALL="$ac_install_sh"
1181 echo "$ac_t""$INSTALL" 1>&6
1183 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1184 # It thinks the first close brace ends the variable substitution.
1185 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1187 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1189 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1191 # Extract the first word of "ranlib", so it can be a program name with args.
1192 set dummy ranlib; ac_word=$2
1193 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1194 echo "configure:1195: checking for $ac_word" >&5
1195 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1196 echo $ac_n "(cached) $ac_c" 1>&6
1197 else
1198 if test -n "$RANLIB"; then
1199 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1200 else
1201 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1202 ac_dummy="$PATH"
1203 for ac_dir in $ac_dummy; do
1204 test -z "$ac_dir" && ac_dir=.
1205 if test -f $ac_dir/$ac_word; then
1206 ac_cv_prog_RANLIB="ranlib"
1207 break
1209 done
1210 IFS="$ac_save_ifs"
1211 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1214 RANLIB="$ac_cv_prog_RANLIB"
1215 if test -n "$RANLIB"; then
1216 echo "$ac_t""$RANLIB" 1>&6
1217 else
1218 echo "$ac_t""no" 1>&6
1221 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1222 echo "configure:1223: checking whether ${MAKE-make} sets \${MAKE}" >&5
1223 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1224 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1225 echo $ac_n "(cached) $ac_c" 1>&6
1226 else
1227 cat > conftestmake <<\EOF
1228 all:
1229 @echo 'ac_maketemp="${MAKE}"'
1231 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1232 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1233 if test -n "$ac_maketemp"; then
1234 eval ac_cv_prog_make_${ac_make}_set=yes
1235 else
1236 eval ac_cv_prog_make_${ac_make}_set=no
1238 rm -f conftestmake
1240 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1241 echo "$ac_t""yes" 1>&6
1242 SET_MAKE=
1243 else
1244 echo "$ac_t""no" 1>&6
1245 SET_MAKE="MAKE=${MAKE-make}"
1249 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1250 echo "configure:1251: checking for AIX" >&5
1251 cat > conftest.$ac_ext <<EOF
1252 #line 1253 "configure"
1253 #include "confdefs.h"
1254 #ifdef _AIX
1256 #endif
1259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1260 egrep "yes" >/dev/null 2>&1; then
1261 rm -rf conftest*
1262 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1263 #define _ALL_SOURCE 1
1266 else
1267 rm -rf conftest*
1268 echo "$ac_t""no" 1>&6
1270 rm -f conftest*
1273 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1274 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1275 echo "configure:1276: checking for minix/config.h" >&5
1276 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1277 echo $ac_n "(cached) $ac_c" 1>&6
1278 else
1279 cat > conftest.$ac_ext <<EOF
1280 #line 1281 "configure"
1281 #include "confdefs.h"
1282 #include <minix/config.h>
1284 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1285 { (eval echo configure:1286: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1286 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1287 if test -z "$ac_err"; then
1288 rm -rf conftest*
1289 eval "ac_cv_header_$ac_safe=yes"
1290 else
1291 echo "$ac_err" >&5
1292 echo "configure: failed program was:" >&5
1293 cat conftest.$ac_ext >&5
1294 rm -rf conftest*
1295 eval "ac_cv_header_$ac_safe=no"
1297 rm -f conftest*
1299 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1300 echo "$ac_t""yes" 1>&6
1301 MINIX=yes
1302 else
1303 echo "$ac_t""no" 1>&6
1304 MINIX=
1307 if test "$MINIX" = yes; then
1308 cat >> confdefs.h <<\EOF
1309 #define _POSIX_SOURCE 1
1312 cat >> confdefs.h <<\EOF
1313 #define _POSIX_1_SOURCE 2
1316 cat >> confdefs.h <<\EOF
1317 #define _MINIX 1
1322 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1323 echo "configure:1324: checking for POSIXized ISC" >&5
1324 if test -d /etc/conf/kconfig.d &&
1325 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1326 then
1327 echo "$ac_t""yes" 1>&6
1328 ISC=yes # If later tests want to check for ISC.
1329 cat >> confdefs.h <<\EOF
1330 #define _POSIX_SOURCE 1
1333 if test "$GCC" = yes; then
1334 CC="$CC -posix"
1335 else
1336 CC="$CC -Xp"
1338 else
1339 echo "$ac_t""no" 1>&6
1340 ISC=
1344 echo $ac_n "checking for getpwnam in -lsun""... $ac_c" 1>&6
1345 echo "configure:1346: checking for getpwnam in -lsun" >&5
1346 ac_lib_var=`echo sun'_'getpwnam | sed 'y%./+-%__p_%'`
1347 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1348 echo $ac_n "(cached) $ac_c" 1>&6
1349 else
1350 ac_save_LIBS="$LIBS"
1351 LIBS="-lsun $LIBS"
1352 cat > conftest.$ac_ext <<EOF
1353 #line 1354 "configure"
1354 #include "confdefs.h"
1355 /* Override any gcc2 internal prototype to avoid an error. */
1356 /* We use char because int might match the return type of a gcc2
1357 builtin and then its argument prototype would still apply. */
1358 char getpwnam();
1360 int main() {
1361 getpwnam()
1362 ; return 0; }
1364 if { (eval echo configure:1365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1365 rm -rf conftest*
1366 eval "ac_cv_lib_$ac_lib_var=yes"
1367 else
1368 echo "configure: failed program was:" >&5
1369 cat conftest.$ac_ext >&5
1370 rm -rf conftest*
1371 eval "ac_cv_lib_$ac_lib_var=no"
1373 rm -f conftest*
1374 LIBS="$ac_save_LIBS"
1377 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1378 echo "$ac_t""yes" 1>&6
1379 ac_tr_lib=HAVE_LIB`echo sun | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1380 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1381 cat >> confdefs.h <<EOF
1382 #define $ac_tr_lib 1
1385 LIBS="-lsun $LIBS"
1387 else
1388 echo "$ac_t""no" 1>&6
1392 for ac_hdr in fcntl.h string.h limits.h unistd.h errno.h
1394 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1395 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1396 echo "configure:1397: checking for $ac_hdr" >&5
1397 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1398 echo $ac_n "(cached) $ac_c" 1>&6
1399 else
1400 cat > conftest.$ac_ext <<EOF
1401 #line 1402 "configure"
1402 #include "confdefs.h"
1403 #include <$ac_hdr>
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 eval "ac_cv_header_$ac_safe=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 eval "ac_cv_header_$ac_safe=no"
1418 rm -f conftest*
1420 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1421 echo "$ac_t""yes" 1>&6
1422 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1423 cat >> confdefs.h <<EOF
1424 #define $ac_tr_hdr 1
1427 else
1428 echo "$ac_t""no" 1>&6
1430 done
1432 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1433 echo "configure:1434: checking for ANSI C header files" >&5
1434 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1435 echo $ac_n "(cached) $ac_c" 1>&6
1436 else
1437 cat > conftest.$ac_ext <<EOF
1438 #line 1439 "configure"
1439 #include "confdefs.h"
1440 #include <stdlib.h>
1441 #include <stdarg.h>
1442 #include <string.h>
1443 #include <float.h>
1445 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1446 { (eval echo configure:1447: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1447 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1448 if test -z "$ac_err"; then
1449 rm -rf conftest*
1450 ac_cv_header_stdc=yes
1451 else
1452 echo "$ac_err" >&5
1453 echo "configure: failed program was:" >&5
1454 cat conftest.$ac_ext >&5
1455 rm -rf conftest*
1456 ac_cv_header_stdc=no
1458 rm -f conftest*
1460 if test $ac_cv_header_stdc = yes; then
1461 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1462 cat > conftest.$ac_ext <<EOF
1463 #line 1464 "configure"
1464 #include "confdefs.h"
1465 #include <string.h>
1467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1468 egrep "memchr" >/dev/null 2>&1; then
1470 else
1471 rm -rf conftest*
1472 ac_cv_header_stdc=no
1474 rm -f conftest*
1478 if test $ac_cv_header_stdc = yes; then
1479 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1480 cat > conftest.$ac_ext <<EOF
1481 #line 1482 "configure"
1482 #include "confdefs.h"
1483 #include <stdlib.h>
1485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1486 egrep "free" >/dev/null 2>&1; then
1488 else
1489 rm -rf conftest*
1490 ac_cv_header_stdc=no
1492 rm -f conftest*
1496 if test $ac_cv_header_stdc = yes; then
1497 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1498 if test "$cross_compiling" = yes; then
1500 else
1501 cat > conftest.$ac_ext <<EOF
1502 #line 1503 "configure"
1503 #include "confdefs.h"
1504 #include <ctype.h>
1505 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1506 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1507 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1508 int main () { int i; for (i = 0; i < 256; i++)
1509 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1510 exit (0); }
1513 if { (eval echo configure:1514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1514 then
1516 else
1517 echo "configure: failed program was:" >&5
1518 cat conftest.$ac_ext >&5
1519 rm -fr conftest*
1520 ac_cv_header_stdc=no
1522 rm -fr conftest*
1528 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1529 if test $ac_cv_header_stdc = yes; then
1530 cat >> confdefs.h <<\EOF
1531 #define STDC_HEADERS 1
1536 echo $ac_n "checking whether sys/types.h defines makedev""... $ac_c" 1>&6
1537 echo "configure:1538: checking whether sys/types.h defines makedev" >&5
1538 if eval "test \"`echo '$''{'ac_cv_header_sys_types_h_makedev'+set}'`\" = set"; then
1539 echo $ac_n "(cached) $ac_c" 1>&6
1540 else
1541 cat > conftest.$ac_ext <<EOF
1542 #line 1543 "configure"
1543 #include "confdefs.h"
1544 #include <sys/types.h>
1545 int main() {
1546 return makedev(0, 0);
1547 ; return 0; }
1549 if { (eval echo configure:1550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1550 rm -rf conftest*
1551 ac_cv_header_sys_types_h_makedev=yes
1552 else
1553 echo "configure: failed program was:" >&5
1554 cat conftest.$ac_ext >&5
1555 rm -rf conftest*
1556 ac_cv_header_sys_types_h_makedev=no
1558 rm -f conftest*
1562 echo "$ac_t""$ac_cv_header_sys_types_h_makedev" 1>&6
1564 if test $ac_cv_header_sys_types_h_makedev = no; then
1565 ac_safe=`echo "sys/mkdev.h" | sed 'y%./+-%__p_%'`
1566 echo $ac_n "checking for sys/mkdev.h""... $ac_c" 1>&6
1567 echo "configure:1568: checking for sys/mkdev.h" >&5
1568 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1569 echo $ac_n "(cached) $ac_c" 1>&6
1570 else
1571 cat > conftest.$ac_ext <<EOF
1572 #line 1573 "configure"
1573 #include "confdefs.h"
1574 #include <sys/mkdev.h>
1576 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1577 { (eval echo configure:1578: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1578 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1579 if test -z "$ac_err"; then
1580 rm -rf conftest*
1581 eval "ac_cv_header_$ac_safe=yes"
1582 else
1583 echo "$ac_err" >&5
1584 echo "configure: failed program was:" >&5
1585 cat conftest.$ac_ext >&5
1586 rm -rf conftest*
1587 eval "ac_cv_header_$ac_safe=no"
1589 rm -f conftest*
1591 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1592 echo "$ac_t""yes" 1>&6
1593 cat >> confdefs.h <<\EOF
1594 #define MAJOR_IN_MKDEV 1
1597 else
1598 echo "$ac_t""no" 1>&6
1602 if test $ac_cv_header_sys_mkdev_h = no; then
1603 ac_safe=`echo "sys/sysmacros.h" | sed 'y%./+-%__p_%'`
1604 echo $ac_n "checking for sys/sysmacros.h""... $ac_c" 1>&6
1605 echo "configure:1606: checking for sys/sysmacros.h" >&5
1606 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1607 echo $ac_n "(cached) $ac_c" 1>&6
1608 else
1609 cat > conftest.$ac_ext <<EOF
1610 #line 1611 "configure"
1611 #include "confdefs.h"
1612 #include <sys/sysmacros.h>
1614 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1615 { (eval echo configure:1616: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1616 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1617 if test -z "$ac_err"; then
1618 rm -rf conftest*
1619 eval "ac_cv_header_$ac_safe=yes"
1620 else
1621 echo "$ac_err" >&5
1622 echo "configure: failed program was:" >&5
1623 cat conftest.$ac_ext >&5
1624 rm -rf conftest*
1625 eval "ac_cv_header_$ac_safe=no"
1627 rm -f conftest*
1629 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1630 echo "$ac_t""yes" 1>&6
1631 cat >> confdefs.h <<\EOF
1632 #define MAJOR_IN_SYSMACROS 1
1635 else
1636 echo "$ac_t""no" 1>&6
1642 ac_header_dirent=no
1643 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1645 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1646 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1647 echo "configure:1648: checking for $ac_hdr that defines DIR" >&5
1648 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1649 echo $ac_n "(cached) $ac_c" 1>&6
1650 else
1651 cat > conftest.$ac_ext <<EOF
1652 #line 1653 "configure"
1653 #include "confdefs.h"
1654 #include <sys/types.h>
1655 #include <$ac_hdr>
1656 int main() {
1657 DIR *dirp = 0;
1658 ; return 0; }
1660 if { (eval echo configure:1661: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1661 rm -rf conftest*
1662 eval "ac_cv_header_dirent_$ac_safe=yes"
1663 else
1664 echo "configure: failed program was:" >&5
1665 cat conftest.$ac_ext >&5
1666 rm -rf conftest*
1667 eval "ac_cv_header_dirent_$ac_safe=no"
1669 rm -f conftest*
1671 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1672 echo "$ac_t""yes" 1>&6
1673 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1674 cat >> confdefs.h <<EOF
1675 #define $ac_tr_hdr 1
1677 ac_header_dirent=$ac_hdr; break
1678 else
1679 echo "$ac_t""no" 1>&6
1681 done
1682 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1683 if test $ac_header_dirent = dirent.h; then
1684 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1685 echo "configure:1686: checking for opendir in -ldir" >&5
1686 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1687 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1688 echo $ac_n "(cached) $ac_c" 1>&6
1689 else
1690 ac_save_LIBS="$LIBS"
1691 LIBS="-ldir $LIBS"
1692 cat > conftest.$ac_ext <<EOF
1693 #line 1694 "configure"
1694 #include "confdefs.h"
1695 /* Override any gcc2 internal prototype to avoid an error. */
1696 /* We use char because int might match the return type of a gcc2
1697 builtin and then its argument prototype would still apply. */
1698 char opendir();
1700 int main() {
1701 opendir()
1702 ; return 0; }
1704 if { (eval echo configure:1705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1705 rm -rf conftest*
1706 eval "ac_cv_lib_$ac_lib_var=yes"
1707 else
1708 echo "configure: failed program was:" >&5
1709 cat conftest.$ac_ext >&5
1710 rm -rf conftest*
1711 eval "ac_cv_lib_$ac_lib_var=no"
1713 rm -f conftest*
1714 LIBS="$ac_save_LIBS"
1717 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1718 echo "$ac_t""yes" 1>&6
1719 LIBS="$LIBS -ldir"
1720 else
1721 echo "$ac_t""no" 1>&6
1724 else
1725 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1726 echo "configure:1727: checking for opendir in -lx" >&5
1727 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1728 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1729 echo $ac_n "(cached) $ac_c" 1>&6
1730 else
1731 ac_save_LIBS="$LIBS"
1732 LIBS="-lx $LIBS"
1733 cat > conftest.$ac_ext <<EOF
1734 #line 1735 "configure"
1735 #include "confdefs.h"
1736 /* Override any gcc2 internal prototype to avoid an error. */
1737 /* We use char because int might match the return type of a gcc2
1738 builtin and then its argument prototype would still apply. */
1739 char opendir();
1741 int main() {
1742 opendir()
1743 ; return 0; }
1745 if { (eval echo configure:1746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1746 rm -rf conftest*
1747 eval "ac_cv_lib_$ac_lib_var=yes"
1748 else
1749 echo "configure: failed program was:" >&5
1750 cat conftest.$ac_ext >&5
1751 rm -rf conftest*
1752 eval "ac_cv_lib_$ac_lib_var=no"
1754 rm -f conftest*
1755 LIBS="$ac_save_LIBS"
1758 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1759 echo "$ac_t""yes" 1>&6
1760 LIBS="$LIBS -lx"
1761 else
1762 echo "$ac_t""no" 1>&6
1767 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
1768 echo "configure:1769: checking whether stat file-mode macros are broken" >&5
1769 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
1770 echo $ac_n "(cached) $ac_c" 1>&6
1771 else
1772 cat > conftest.$ac_ext <<EOF
1773 #line 1774 "configure"
1774 #include "confdefs.h"
1775 #include <sys/types.h>
1776 #include <sys/stat.h>
1778 #if defined(S_ISBLK) && defined(S_IFDIR)
1779 # if S_ISBLK (S_IFDIR)
1780 You lose.
1781 # endif
1782 #endif
1784 #if defined(S_ISBLK) && defined(S_IFCHR)
1785 # if S_ISBLK (S_IFCHR)
1786 You lose.
1787 # endif
1788 #endif
1790 #if defined(S_ISLNK) && defined(S_IFREG)
1791 # if S_ISLNK (S_IFREG)
1792 You lose.
1793 # endif
1794 #endif
1796 #if defined(S_ISSOCK) && defined(S_IFREG)
1797 # if S_ISSOCK (S_IFREG)
1798 You lose.
1799 # endif
1800 #endif
1803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1804 egrep "You lose" >/dev/null 2>&1; then
1805 rm -rf conftest*
1806 ac_cv_header_stat_broken=yes
1807 else
1808 rm -rf conftest*
1809 ac_cv_header_stat_broken=no
1811 rm -f conftest*
1815 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
1816 if test $ac_cv_header_stat_broken = yes; then
1817 cat >> confdefs.h <<\EOF
1818 #define STAT_MACROS_BROKEN 1
1823 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1824 echo "configure:1825: checking for sys/wait.h that is POSIX.1 compatible" >&5
1825 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1826 echo $ac_n "(cached) $ac_c" 1>&6
1827 else
1828 cat > conftest.$ac_ext <<EOF
1829 #line 1830 "configure"
1830 #include "confdefs.h"
1831 #include <sys/types.h>
1832 #include <sys/wait.h>
1833 #ifndef WEXITSTATUS
1834 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1835 #endif
1836 #ifndef WIFEXITED
1837 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1838 #endif
1839 int main() {
1840 int s;
1841 wait (&s);
1842 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1843 ; return 0; }
1845 if { (eval echo configure:1846: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1846 rm -rf conftest*
1847 ac_cv_header_sys_wait_h=yes
1848 else
1849 echo "configure: failed program was:" >&5
1850 cat conftest.$ac_ext >&5
1851 rm -rf conftest*
1852 ac_cv_header_sys_wait_h=no
1854 rm -f conftest*
1857 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1858 if test $ac_cv_header_sys_wait_h = yes; then
1859 cat >> confdefs.h <<\EOF
1860 #define HAVE_SYS_WAIT_H 1
1866 echo $ac_n "checking how to get filesystem type""... $ac_c" 1>&6
1867 echo "configure:1868: checking how to get filesystem type" >&5
1868 fstype=no
1869 # The order of these tests is important.
1870 cat > conftest.$ac_ext <<EOF
1871 #line 1872 "configure"
1872 #include "confdefs.h"
1873 #include <sys/statvfs.h>
1874 #include <sys/fstyp.h>
1876 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1877 { (eval echo configure:1878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1878 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1879 if test -z "$ac_err"; then
1880 rm -rf conftest*
1881 cat >> confdefs.h <<\EOF
1882 #define FSTYPE_STATVFS 1
1884 fstype=SVR4
1885 else
1886 echo "$ac_err" >&5
1887 echo "configure: failed program was:" >&5
1888 cat conftest.$ac_ext >&5
1890 rm -f conftest*
1891 if test $fstype = no; then
1892 cat > conftest.$ac_ext <<EOF
1893 #line 1894 "configure"
1894 #include "confdefs.h"
1895 #include <sys/statfs.h>
1896 #include <sys/fstyp.h>
1898 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1899 { (eval echo configure:1900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1900 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1901 if test -z "$ac_err"; then
1902 rm -rf conftest*
1903 cat >> confdefs.h <<\EOF
1904 #define FSTYPE_USG_STATFS 1
1906 fstype=SVR3
1907 else
1908 echo "$ac_err" >&5
1909 echo "configure: failed program was:" >&5
1910 cat conftest.$ac_ext >&5
1912 rm -f conftest*
1914 if test $fstype = no; then
1915 cat > conftest.$ac_ext <<EOF
1916 #line 1917 "configure"
1917 #include "confdefs.h"
1918 #include <sys/statfs.h>
1919 #include <sys/vmount.h>
1921 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1922 { (eval echo configure:1923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1923 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1924 if test -z "$ac_err"; then
1925 rm -rf conftest*
1926 cat >> confdefs.h <<\EOF
1927 #define FSTYPE_AIX_STATFS 1
1929 fstype=AIX
1930 else
1931 echo "$ac_err" >&5
1932 echo "configure: failed program was:" >&5
1933 cat conftest.$ac_ext >&5
1935 rm -f conftest*
1937 if test $fstype = no; then
1938 cat > conftest.$ac_ext <<EOF
1939 #line 1940 "configure"
1940 #include "confdefs.h"
1941 #include <mntent.h>
1943 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1944 { (eval echo configure:1945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1945 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1946 if test -z "$ac_err"; then
1947 rm -rf conftest*
1948 cat >> confdefs.h <<\EOF
1949 #define FSTYPE_MNTENT 1
1951 fstype=4.3BSD
1952 else
1953 echo "$ac_err" >&5
1954 echo "configure: failed program was:" >&5
1955 cat conftest.$ac_ext >&5
1957 rm -f conftest*
1959 if test $fstype = no; then
1960 cat > conftest.$ac_ext <<EOF
1961 #line 1962 "configure"
1962 #include "confdefs.h"
1963 #include <sys/mount.h>
1965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1966 egrep "f_type;" >/dev/null 2>&1; then
1967 rm -rf conftest*
1968 cat >> confdefs.h <<\EOF
1969 #define FSTYPE_STATFS 1
1971 fstype=4.4BSD/OSF1
1973 rm -f conftest*
1976 if test $fstype = no; then
1977 cat > conftest.$ac_ext <<EOF
1978 #line 1979 "configure"
1979 #include "confdefs.h"
1980 #include <sys/mount.h>
1981 #include <sys/fs_types.h>
1983 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1984 { (eval echo configure:1985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1985 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1986 if test -z "$ac_err"; then
1987 rm -rf conftest*
1988 cat >> confdefs.h <<\EOF
1989 #define FSTYPE_GETMNT 1
1991 fstype=Ultrix
1992 else
1993 echo "$ac_err" >&5
1994 echo "configure: failed program was:" >&5
1995 cat conftest.$ac_ext >&5
1997 rm -f conftest*
1999 echo "$ac_t""$fstype" 1>&6
2002 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2003 echo "configure:2004: checking for uid_t in sys/types.h" >&5
2004 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2005 echo $ac_n "(cached) $ac_c" 1>&6
2006 else
2007 cat > conftest.$ac_ext <<EOF
2008 #line 2009 "configure"
2009 #include "confdefs.h"
2010 #include <sys/types.h>
2012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2013 egrep "uid_t" >/dev/null 2>&1; then
2014 rm -rf conftest*
2015 ac_cv_type_uid_t=yes
2016 else
2017 rm -rf conftest*
2018 ac_cv_type_uid_t=no
2020 rm -f conftest*
2024 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2025 if test $ac_cv_type_uid_t = no; then
2026 cat >> confdefs.h <<\EOF
2027 #define uid_t int
2030 cat >> confdefs.h <<\EOF
2031 #define gid_t int
2036 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2037 echo "configure:2038: checking for size_t" >&5
2038 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2039 echo $ac_n "(cached) $ac_c" 1>&6
2040 else
2041 cat > conftest.$ac_ext <<EOF
2042 #line 2043 "configure"
2043 #include "confdefs.h"
2044 #include <sys/types.h>
2045 #if STDC_HEADERS
2046 #include <stdlib.h>
2047 #include <stddef.h>
2048 #endif
2050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2051 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2052 rm -rf conftest*
2053 ac_cv_type_size_t=yes
2054 else
2055 rm -rf conftest*
2056 ac_cv_type_size_t=no
2058 rm -f conftest*
2061 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2062 if test $ac_cv_type_size_t = no; then
2063 cat >> confdefs.h <<\EOF
2064 #define size_t unsigned
2069 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2070 echo "configure:2071: checking for pid_t" >&5
2071 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2072 echo $ac_n "(cached) $ac_c" 1>&6
2073 else
2074 cat > conftest.$ac_ext <<EOF
2075 #line 2076 "configure"
2076 #include "confdefs.h"
2077 #include <sys/types.h>
2078 #if STDC_HEADERS
2079 #include <stdlib.h>
2080 #include <stddef.h>
2081 #endif
2083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2084 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2085 rm -rf conftest*
2086 ac_cv_type_pid_t=yes
2087 else
2088 rm -rf conftest*
2089 ac_cv_type_pid_t=no
2091 rm -f conftest*
2094 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2095 if test $ac_cv_type_pid_t = no; then
2096 cat >> confdefs.h <<\EOF
2097 #define pid_t int
2102 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
2103 echo "configure:2104: checking for ino_t" >&5
2104 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
2105 echo $ac_n "(cached) $ac_c" 1>&6
2106 else
2107 cat > conftest.$ac_ext <<EOF
2108 #line 2109 "configure"
2109 #include "confdefs.h"
2110 #include <sys/types.h>
2111 #if STDC_HEADERS
2112 #include <stdlib.h>
2113 #include <stddef.h>
2114 #endif
2116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2117 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2118 rm -rf conftest*
2119 ac_cv_type_ino_t=yes
2120 else
2121 rm -rf conftest*
2122 ac_cv_type_ino_t=no
2124 rm -f conftest*
2127 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
2128 if test $ac_cv_type_ino_t = no; then
2129 cat >> confdefs.h <<\EOF
2130 #define ino_t unsigned long
2135 echo $ac_n "checking for dev_t""... $ac_c" 1>&6
2136 echo "configure:2137: checking for dev_t" >&5
2137 if eval "test \"`echo '$''{'ac_cv_type_dev_t'+set}'`\" = set"; then
2138 echo $ac_n "(cached) $ac_c" 1>&6
2139 else
2140 cat > conftest.$ac_ext <<EOF
2141 #line 2142 "configure"
2142 #include "confdefs.h"
2143 #include <sys/types.h>
2144 #if STDC_HEADERS
2145 #include <stdlib.h>
2146 #include <stddef.h>
2147 #endif
2149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2150 egrep "(^|[^a-zA-Z_0-9])dev_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2151 rm -rf conftest*
2152 ac_cv_type_dev_t=yes
2153 else
2154 rm -rf conftest*
2155 ac_cv_type_dev_t=no
2157 rm -f conftest*
2160 echo "$ac_t""$ac_cv_type_dev_t" 1>&6
2161 if test $ac_cv_type_dev_t = no; then
2162 cat >> confdefs.h <<\EOF
2163 #define dev_t unsigned long
2168 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
2169 echo "configure:2170: checking for st_blocks in struct stat" >&5
2170 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
2171 echo $ac_n "(cached) $ac_c" 1>&6
2172 else
2173 cat > conftest.$ac_ext <<EOF
2174 #line 2175 "configure"
2175 #include "confdefs.h"
2176 #include <sys/types.h>
2177 #include <sys/stat.h>
2178 int main() {
2179 struct stat s; s.st_blocks;
2180 ; return 0; }
2182 if { (eval echo configure:2183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2183 rm -rf conftest*
2184 ac_cv_struct_st_blocks=yes
2185 else
2186 echo "configure: failed program was:" >&5
2187 cat conftest.$ac_ext >&5
2188 rm -rf conftest*
2189 ac_cv_struct_st_blocks=no
2191 rm -f conftest*
2194 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
2195 if test $ac_cv_struct_st_blocks = yes; then
2196 cat >> confdefs.h <<\EOF
2197 #define HAVE_ST_BLOCKS 1
2200 else
2201 LIBOBJS="$LIBOBJS fileblocks.${ac_objext}"
2204 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
2205 echo "configure:2206: checking for st_rdev in struct stat" >&5
2206 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
2207 echo $ac_n "(cached) $ac_c" 1>&6
2208 else
2209 cat > conftest.$ac_ext <<EOF
2210 #line 2211 "configure"
2211 #include "confdefs.h"
2212 #include <sys/types.h>
2213 #include <sys/stat.h>
2214 int main() {
2215 struct stat s; s.st_rdev;
2216 ; return 0; }
2218 if { (eval echo configure:2219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2219 rm -rf conftest*
2220 ac_cv_struct_st_rdev=yes
2221 else
2222 echo "configure: failed program was:" >&5
2223 cat conftest.$ac_ext >&5
2224 rm -rf conftest*
2225 ac_cv_struct_st_rdev=no
2227 rm -f conftest*
2230 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
2231 if test $ac_cv_struct_st_rdev = yes; then
2232 cat >> confdefs.h <<\EOF
2233 #define HAVE_ST_RDEV 1
2238 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2239 echo "configure:2240: checking whether struct tm is in sys/time.h or time.h" >&5
2240 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2241 echo $ac_n "(cached) $ac_c" 1>&6
2242 else
2243 cat > conftest.$ac_ext <<EOF
2244 #line 2245 "configure"
2245 #include "confdefs.h"
2246 #include <sys/types.h>
2247 #include <time.h>
2248 int main() {
2249 struct tm *tp; tp->tm_sec;
2250 ; return 0; }
2252 if { (eval echo configure:2253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2253 rm -rf conftest*
2254 ac_cv_struct_tm=time.h
2255 else
2256 echo "configure: failed program was:" >&5
2257 cat conftest.$ac_ext >&5
2258 rm -rf conftest*
2259 ac_cv_struct_tm=sys/time.h
2261 rm -f conftest*
2264 echo "$ac_t""$ac_cv_struct_tm" 1>&6
2265 if test $ac_cv_struct_tm = sys/time.h; then
2266 cat >> confdefs.h <<\EOF
2267 #define TM_IN_SYS_TIME 1
2272 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
2273 echo "configure:2274: checking for tm_zone in struct tm" >&5
2274 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
2275 echo $ac_n "(cached) $ac_c" 1>&6
2276 else
2277 cat > conftest.$ac_ext <<EOF
2278 #line 2279 "configure"
2279 #include "confdefs.h"
2280 #include <sys/types.h>
2281 #include <$ac_cv_struct_tm>
2282 int main() {
2283 struct tm tm; tm.tm_zone;
2284 ; return 0; }
2286 if { (eval echo configure:2287: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2287 rm -rf conftest*
2288 ac_cv_struct_tm_zone=yes
2289 else
2290 echo "configure: failed program was:" >&5
2291 cat conftest.$ac_ext >&5
2292 rm -rf conftest*
2293 ac_cv_struct_tm_zone=no
2295 rm -f conftest*
2298 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
2299 if test "$ac_cv_struct_tm_zone" = yes; then
2300 cat >> confdefs.h <<\EOF
2301 #define HAVE_TM_ZONE 1
2304 else
2305 echo $ac_n "checking for tzname""... $ac_c" 1>&6
2306 echo "configure:2307: checking for tzname" >&5
2307 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
2308 echo $ac_n "(cached) $ac_c" 1>&6
2309 else
2310 cat > conftest.$ac_ext <<EOF
2311 #line 2312 "configure"
2312 #include "confdefs.h"
2313 #include <time.h>
2314 #ifndef tzname /* For SGI. */
2315 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
2316 #endif
2317 int main() {
2318 atoi(*tzname);
2319 ; return 0; }
2321 if { (eval echo configure:2322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2322 rm -rf conftest*
2323 ac_cv_var_tzname=yes
2324 else
2325 echo "configure: failed program was:" >&5
2326 cat conftest.$ac_ext >&5
2327 rm -rf conftest*
2328 ac_cv_var_tzname=no
2330 rm -f conftest*
2333 echo "$ac_t""$ac_cv_var_tzname" 1>&6
2334 if test $ac_cv_var_tzname = yes; then
2335 cat >> confdefs.h <<\EOF
2336 #define HAVE_TZNAME 1
2342 echo $ac_n "checking for working const""... $ac_c" 1>&6
2343 echo "configure:2344: checking for working const" >&5
2344 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2345 echo $ac_n "(cached) $ac_c" 1>&6
2346 else
2347 cat > conftest.$ac_ext <<EOF
2348 #line 2349 "configure"
2349 #include "confdefs.h"
2351 int main() {
2353 /* Ultrix mips cc rejects this. */
2354 typedef int charset[2]; const charset x;
2355 /* SunOS 4.1.1 cc rejects this. */
2356 char const *const *ccp;
2357 char **p;
2358 /* NEC SVR4.0.2 mips cc rejects this. */
2359 struct point {int x, y;};
2360 static struct point const zero = {0,0};
2361 /* AIX XL C 1.02.0.0 rejects this.
2362 It does not let you subtract one const X* pointer from another in an arm
2363 of an if-expression whose if-part is not a constant expression */
2364 const char *g = "string";
2365 ccp = &g + (g ? g-g : 0);
2366 /* HPUX 7.0 cc rejects these. */
2367 ++ccp;
2368 p = (char**) ccp;
2369 ccp = (char const *const *) p;
2370 { /* SCO 3.2v4 cc rejects this. */
2371 char *t;
2372 char const *s = 0 ? (char *) 0 : (char const *) 0;
2374 *t++ = 0;
2376 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2377 int x[] = {25, 17};
2378 const int *foo = &x[0];
2379 ++foo;
2381 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2382 typedef const int *iptr;
2383 iptr p = 0;
2384 ++p;
2386 { /* AIX XL C 1.02.0.0 rejects this saying
2387 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2388 struct s { int j; const int *ap[3]; };
2389 struct s *b; b->j = 5;
2391 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2392 const int foo = 10;
2395 ; return 0; }
2397 if { (eval echo configure:2398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2398 rm -rf conftest*
2399 ac_cv_c_const=yes
2400 else
2401 echo "configure: failed program was:" >&5
2402 cat conftest.$ac_ext >&5
2403 rm -rf conftest*
2404 ac_cv_c_const=no
2406 rm -f conftest*
2409 echo "$ac_t""$ac_cv_c_const" 1>&6
2410 if test $ac_cv_c_const = no; then
2411 cat >> confdefs.h <<\EOF
2412 #define const
2419 echo $ac_n "checking for strftime""... $ac_c" 1>&6
2420 echo "configure:2421: checking for strftime" >&5
2421 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
2422 echo $ac_n "(cached) $ac_c" 1>&6
2423 else
2424 cat > conftest.$ac_ext <<EOF
2425 #line 2426 "configure"
2426 #include "confdefs.h"
2427 /* System header to define __stub macros and hopefully few prototypes,
2428 which can conflict with char strftime(); below. */
2429 #include <assert.h>
2430 /* Override any gcc2 internal prototype to avoid an error. */
2431 /* We use char because int might match the return type of a gcc2
2432 builtin and then its argument prototype would still apply. */
2433 char strftime();
2435 int main() {
2437 /* The GNU C library defines this for functions which it implements
2438 to always fail with ENOSYS. Some functions are actually named
2439 something starting with __ and the normal name is an alias. */
2440 #if defined (__stub_strftime) || defined (__stub___strftime)
2441 choke me
2442 #else
2443 strftime();
2444 #endif
2446 ; return 0; }
2448 if { (eval echo configure:2449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2449 rm -rf conftest*
2450 eval "ac_cv_func_strftime=yes"
2451 else
2452 echo "configure: failed program was:" >&5
2453 cat conftest.$ac_ext >&5
2454 rm -rf conftest*
2455 eval "ac_cv_func_strftime=no"
2457 rm -f conftest*
2460 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
2461 echo "$ac_t""yes" 1>&6
2462 cat >> confdefs.h <<\EOF
2463 #define HAVE_STRFTIME 1
2466 else
2467 echo "$ac_t""no" 1>&6
2468 # strftime is in -lintl on SCO UNIX.
2469 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
2470 echo "configure:2471: checking for strftime in -lintl" >&5
2471 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
2472 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2473 echo $ac_n "(cached) $ac_c" 1>&6
2474 else
2475 ac_save_LIBS="$LIBS"
2476 LIBS="-lintl $LIBS"
2477 cat > conftest.$ac_ext <<EOF
2478 #line 2479 "configure"
2479 #include "confdefs.h"
2480 /* Override any gcc2 internal prototype to avoid an error. */
2481 /* We use char because int might match the return type of a gcc2
2482 builtin and then its argument prototype would still apply. */
2483 char strftime();
2485 int main() {
2486 strftime()
2487 ; return 0; }
2489 if { (eval echo configure:2490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2490 rm -rf conftest*
2491 eval "ac_cv_lib_$ac_lib_var=yes"
2492 else
2493 echo "configure: failed program was:" >&5
2494 cat conftest.$ac_ext >&5
2495 rm -rf conftest*
2496 eval "ac_cv_lib_$ac_lib_var=no"
2498 rm -f conftest*
2499 LIBS="$ac_save_LIBS"
2502 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2503 echo "$ac_t""yes" 1>&6
2504 cat >> confdefs.h <<\EOF
2505 #define HAVE_STRFTIME 1
2508 LIBS="-lintl $LIBS"
2509 else
2510 echo "$ac_t""no" 1>&6
2515 for ac_func in memcmp memset mktime stpcpy strdup strftime strspn strstr strtol
2517 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2518 echo "configure:2519: checking for $ac_func" >&5
2519 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2520 echo $ac_n "(cached) $ac_c" 1>&6
2521 else
2522 cat > conftest.$ac_ext <<EOF
2523 #line 2524 "configure"
2524 #include "confdefs.h"
2525 /* System header to define __stub macros and hopefully few prototypes,
2526 which can conflict with char $ac_func(); below. */
2527 #include <assert.h>
2528 /* Override any gcc2 internal prototype to avoid an error. */
2529 /* We use char because int might match the return type of a gcc2
2530 builtin and then its argument prototype would still apply. */
2531 char $ac_func();
2533 int main() {
2535 /* The GNU C library defines this for functions which it implements
2536 to always fail with ENOSYS. Some functions are actually named
2537 something starting with __ and the normal name is an alias. */
2538 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2539 choke me
2540 #else
2541 $ac_func();
2542 #endif
2544 ; return 0; }
2546 if { (eval echo configure:2547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2547 rm -rf conftest*
2548 eval "ac_cv_func_$ac_func=yes"
2549 else
2550 echo "configure: failed program was:" >&5
2551 cat conftest.$ac_ext >&5
2552 rm -rf conftest*
2553 eval "ac_cv_func_$ac_func=no"
2555 rm -f conftest*
2558 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2559 echo "$ac_t""yes" 1>&6
2560 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2561 cat >> confdefs.h <<EOF
2562 #define $ac_tr_func 1
2565 else
2566 echo "$ac_t""no" 1>&6
2567 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
2569 done
2572 for ac_func in fchdir getcwd strerror basename endgrent endpwent
2574 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2575 echo "configure:2576: checking for $ac_func" >&5
2576 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2577 echo $ac_n "(cached) $ac_c" 1>&6
2578 else
2579 cat > conftest.$ac_ext <<EOF
2580 #line 2581 "configure"
2581 #include "confdefs.h"
2582 /* System header to define __stub macros and hopefully few prototypes,
2583 which can conflict with char $ac_func(); below. */
2584 #include <assert.h>
2585 /* Override any gcc2 internal prototype to avoid an error. */
2586 /* We use char because int might match the return type of a gcc2
2587 builtin and then its argument prototype would still apply. */
2588 char $ac_func();
2590 int main() {
2592 /* The GNU C library defines this for functions which it implements
2593 to always fail with ENOSYS. Some functions are actually named
2594 something starting with __ and the normal name is an alias. */
2595 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2596 choke me
2597 #else
2598 $ac_func();
2599 #endif
2601 ; return 0; }
2603 if { (eval echo configure:2604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2604 rm -rf conftest*
2605 eval "ac_cv_func_$ac_func=yes"
2606 else
2607 echo "configure: failed program was:" >&5
2608 cat conftest.$ac_ext >&5
2609 rm -rf conftest*
2610 eval "ac_cv_func_$ac_func=no"
2612 rm -f conftest*
2615 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2616 echo "$ac_t""yes" 1>&6
2617 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2618 cat >> confdefs.h <<EOF
2619 #define $ac_tr_func 1
2622 else
2623 echo "$ac_t""no" 1>&6
2625 done
2627 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2628 echo "configure:2629: checking for vprintf" >&5
2629 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2630 echo $ac_n "(cached) $ac_c" 1>&6
2631 else
2632 cat > conftest.$ac_ext <<EOF
2633 #line 2634 "configure"
2634 #include "confdefs.h"
2635 /* System header to define __stub macros and hopefully few prototypes,
2636 which can conflict with char vprintf(); below. */
2637 #include <assert.h>
2638 /* Override any gcc2 internal prototype to avoid an error. */
2639 /* We use char because int might match the return type of a gcc2
2640 builtin and then its argument prototype would still apply. */
2641 char vprintf();
2643 int main() {
2645 /* The GNU C library defines this for functions which it implements
2646 to always fail with ENOSYS. Some functions are actually named
2647 something starting with __ and the normal name is an alias. */
2648 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2649 choke me
2650 #else
2651 vprintf();
2652 #endif
2654 ; return 0; }
2656 if { (eval echo configure:2657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2657 rm -rf conftest*
2658 eval "ac_cv_func_vprintf=yes"
2659 else
2660 echo "configure: failed program was:" >&5
2661 cat conftest.$ac_ext >&5
2662 rm -rf conftest*
2663 eval "ac_cv_func_vprintf=no"
2665 rm -f conftest*
2668 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2669 echo "$ac_t""yes" 1>&6
2670 cat >> confdefs.h <<\EOF
2671 #define HAVE_VPRINTF 1
2674 else
2675 echo "$ac_t""no" 1>&6
2678 if test "$ac_cv_func_vprintf" != yes; then
2679 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2680 echo "configure:2681: checking for _doprnt" >&5
2681 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2682 echo $ac_n "(cached) $ac_c" 1>&6
2683 else
2684 cat > conftest.$ac_ext <<EOF
2685 #line 2686 "configure"
2686 #include "confdefs.h"
2687 /* System header to define __stub macros and hopefully few prototypes,
2688 which can conflict with char _doprnt(); below. */
2689 #include <assert.h>
2690 /* Override any gcc2 internal prototype to avoid an error. */
2691 /* We use char because int might match the return type of a gcc2
2692 builtin and then its argument prototype would still apply. */
2693 char _doprnt();
2695 int main() {
2697 /* The GNU C library defines this for functions which it implements
2698 to always fail with ENOSYS. Some functions are actually named
2699 something starting with __ and the normal name is an alias. */
2700 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2701 choke me
2702 #else
2703 _doprnt();
2704 #endif
2706 ; return 0; }
2708 if { (eval echo configure:2709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2709 rm -rf conftest*
2710 eval "ac_cv_func__doprnt=yes"
2711 else
2712 echo "configure: failed program was:" >&5
2713 cat conftest.$ac_ext >&5
2714 rm -rf conftest*
2715 eval "ac_cv_func__doprnt=no"
2717 rm -f conftest*
2720 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2721 echo "$ac_t""yes" 1>&6
2722 cat >> confdefs.h <<\EOF
2723 #define HAVE_DOPRNT 1
2726 else
2727 echo "$ac_t""no" 1>&6
2732 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2733 # for constant arguments. Useless!
2734 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2735 echo "configure:2736: checking for working alloca.h" >&5
2736 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2737 echo $ac_n "(cached) $ac_c" 1>&6
2738 else
2739 cat > conftest.$ac_ext <<EOF
2740 #line 2741 "configure"
2741 #include "confdefs.h"
2742 #include <alloca.h>
2743 int main() {
2744 char *p = alloca(2 * sizeof(int));
2745 ; return 0; }
2747 if { (eval echo configure:2748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2748 rm -rf conftest*
2749 ac_cv_header_alloca_h=yes
2750 else
2751 echo "configure: failed program was:" >&5
2752 cat conftest.$ac_ext >&5
2753 rm -rf conftest*
2754 ac_cv_header_alloca_h=no
2756 rm -f conftest*
2759 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2760 if test $ac_cv_header_alloca_h = yes; then
2761 cat >> confdefs.h <<\EOF
2762 #define HAVE_ALLOCA_H 1
2767 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2768 echo "configure:2769: checking for alloca" >&5
2769 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2770 echo $ac_n "(cached) $ac_c" 1>&6
2771 else
2772 cat > conftest.$ac_ext <<EOF
2773 #line 2774 "configure"
2774 #include "confdefs.h"
2776 #ifdef __GNUC__
2777 # define alloca __builtin_alloca
2778 #else
2779 # ifdef _MSC_VER
2780 # include <malloc.h>
2781 # define alloca _alloca
2782 # else
2783 # if HAVE_ALLOCA_H
2784 # include <alloca.h>
2785 # else
2786 # ifdef _AIX
2787 #pragma alloca
2788 # else
2789 # ifndef alloca /* predefined by HP cc +Olibcalls */
2790 char *alloca ();
2791 # endif
2792 # endif
2793 # endif
2794 # endif
2795 #endif
2797 int main() {
2798 char *p = (char *) alloca(1);
2799 ; return 0; }
2801 if { (eval echo configure:2802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2802 rm -rf conftest*
2803 ac_cv_func_alloca_works=yes
2804 else
2805 echo "configure: failed program was:" >&5
2806 cat conftest.$ac_ext >&5
2807 rm -rf conftest*
2808 ac_cv_func_alloca_works=no
2810 rm -f conftest*
2813 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2814 if test $ac_cv_func_alloca_works = yes; then
2815 cat >> confdefs.h <<\EOF
2816 #define HAVE_ALLOCA 1
2821 if test $ac_cv_func_alloca_works = no; then
2822 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2823 # that cause trouble. Some versions do not even contain alloca or
2824 # contain a buggy version. If you still want to use their alloca,
2825 # use ar to extract alloca.o from them instead of compiling alloca.c.
2826 ALLOCA=alloca.${ac_objext}
2827 cat >> confdefs.h <<\EOF
2828 #define C_ALLOCA 1
2832 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2833 echo "configure:2834: checking whether alloca needs Cray hooks" >&5
2834 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2835 echo $ac_n "(cached) $ac_c" 1>&6
2836 else
2837 cat > conftest.$ac_ext <<EOF
2838 #line 2839 "configure"
2839 #include "confdefs.h"
2840 #if defined(CRAY) && ! defined(CRAY2)
2841 webecray
2842 #else
2843 wenotbecray
2844 #endif
2847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2848 egrep "webecray" >/dev/null 2>&1; then
2849 rm -rf conftest*
2850 ac_cv_os_cray=yes
2851 else
2852 rm -rf conftest*
2853 ac_cv_os_cray=no
2855 rm -f conftest*
2859 echo "$ac_t""$ac_cv_os_cray" 1>&6
2860 if test $ac_cv_os_cray = yes; then
2861 for ac_func in _getb67 GETB67 getb67; do
2862 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2863 echo "configure:2864: checking for $ac_func" >&5
2864 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2865 echo $ac_n "(cached) $ac_c" 1>&6
2866 else
2867 cat > conftest.$ac_ext <<EOF
2868 #line 2869 "configure"
2869 #include "confdefs.h"
2870 /* System header to define __stub macros and hopefully few prototypes,
2871 which can conflict with char $ac_func(); below. */
2872 #include <assert.h>
2873 /* Override any gcc2 internal prototype to avoid an error. */
2874 /* We use char because int might match the return type of a gcc2
2875 builtin and then its argument prototype would still apply. */
2876 char $ac_func();
2878 int main() {
2880 /* The GNU C library defines this for functions which it implements
2881 to always fail with ENOSYS. Some functions are actually named
2882 something starting with __ and the normal name is an alias. */
2883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2884 choke me
2885 #else
2886 $ac_func();
2887 #endif
2889 ; return 0; }
2891 if { (eval echo configure:2892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2892 rm -rf conftest*
2893 eval "ac_cv_func_$ac_func=yes"
2894 else
2895 echo "configure: failed program was:" >&5
2896 cat conftest.$ac_ext >&5
2897 rm -rf conftest*
2898 eval "ac_cv_func_$ac_func=no"
2900 rm -f conftest*
2903 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2904 echo "$ac_t""yes" 1>&6
2905 cat >> confdefs.h <<EOF
2906 #define CRAY_STACKSEG_END $ac_func
2909 break
2910 else
2911 echo "$ac_t""no" 1>&6
2914 done
2917 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2918 echo "configure:2919: checking stack direction for C alloca" >&5
2919 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2920 echo $ac_n "(cached) $ac_c" 1>&6
2921 else
2922 if test "$cross_compiling" = yes; then
2923 ac_cv_c_stack_direction=0
2924 else
2925 cat > conftest.$ac_ext <<EOF
2926 #line 2927 "configure"
2927 #include "confdefs.h"
2928 find_stack_direction ()
2930 static char *addr = 0;
2931 auto char dummy;
2932 if (addr == 0)
2934 addr = &dummy;
2935 return find_stack_direction ();
2937 else
2938 return (&dummy > addr) ? 1 : -1;
2940 main ()
2942 exit (find_stack_direction() < 0);
2945 if { (eval echo configure:2946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2946 then
2947 ac_cv_c_stack_direction=1
2948 else
2949 echo "configure: failed program was:" >&5
2950 cat conftest.$ac_ext >&5
2951 rm -fr conftest*
2952 ac_cv_c_stack_direction=-1
2954 rm -fr conftest*
2959 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2960 cat >> confdefs.h <<EOF
2961 #define STACK_DIRECTION $ac_cv_c_stack_direction
2966 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
2967 echo $ac_n "checking for getmntent in -lsun""... $ac_c" 1>&6
2968 echo "configure:2969: checking for getmntent in -lsun" >&5
2969 ac_lib_var=`echo sun'_'getmntent | sed 'y%./+-%__p_%'`
2970 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2971 echo $ac_n "(cached) $ac_c" 1>&6
2972 else
2973 ac_save_LIBS="$LIBS"
2974 LIBS="-lsun $LIBS"
2975 cat > conftest.$ac_ext <<EOF
2976 #line 2977 "configure"
2977 #include "confdefs.h"
2978 /* Override any gcc2 internal prototype to avoid an error. */
2979 /* We use char because int might match the return type of a gcc2
2980 builtin and then its argument prototype would still apply. */
2981 char getmntent();
2983 int main() {
2984 getmntent()
2985 ; return 0; }
2987 if { (eval echo configure:2988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2988 rm -rf conftest*
2989 eval "ac_cv_lib_$ac_lib_var=yes"
2990 else
2991 echo "configure: failed program was:" >&5
2992 cat conftest.$ac_ext >&5
2993 rm -rf conftest*
2994 eval "ac_cv_lib_$ac_lib_var=no"
2996 rm -f conftest*
2997 LIBS="$ac_save_LIBS"
3000 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3001 echo "$ac_t""yes" 1>&6
3002 LIBS="-lsun $LIBS"
3003 else
3004 echo "$ac_t""no" 1>&6
3005 echo $ac_n "checking for getmntent in -lseq""... $ac_c" 1>&6
3006 echo "configure:3007: checking for getmntent in -lseq" >&5
3007 ac_lib_var=`echo seq'_'getmntent | sed 'y%./+-%__p_%'`
3008 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3009 echo $ac_n "(cached) $ac_c" 1>&6
3010 else
3011 ac_save_LIBS="$LIBS"
3012 LIBS="-lseq $LIBS"
3013 cat > conftest.$ac_ext <<EOF
3014 #line 3015 "configure"
3015 #include "confdefs.h"
3016 /* Override any gcc2 internal prototype to avoid an error. */
3017 /* We use char because int might match the return type of a gcc2
3018 builtin and then its argument prototype would still apply. */
3019 char getmntent();
3021 int main() {
3022 getmntent()
3023 ; return 0; }
3025 if { (eval echo configure:3026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3026 rm -rf conftest*
3027 eval "ac_cv_lib_$ac_lib_var=yes"
3028 else
3029 echo "configure: failed program was:" >&5
3030 cat conftest.$ac_ext >&5
3031 rm -rf conftest*
3032 eval "ac_cv_lib_$ac_lib_var=no"
3034 rm -f conftest*
3035 LIBS="$ac_save_LIBS"
3038 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3039 echo "$ac_t""yes" 1>&6
3040 LIBS="-lseq $LIBS"
3041 else
3042 echo "$ac_t""no" 1>&6
3043 echo $ac_n "checking for getmntent in -lgen""... $ac_c" 1>&6
3044 echo "configure:3045: checking for getmntent in -lgen" >&5
3045 ac_lib_var=`echo gen'_'getmntent | sed 'y%./+-%__p_%'`
3046 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3047 echo $ac_n "(cached) $ac_c" 1>&6
3048 else
3049 ac_save_LIBS="$LIBS"
3050 LIBS="-lgen $LIBS"
3051 cat > conftest.$ac_ext <<EOF
3052 #line 3053 "configure"
3053 #include "confdefs.h"
3054 /* Override any gcc2 internal prototype to avoid an error. */
3055 /* We use char because int might match the return type of a gcc2
3056 builtin and then its argument prototype would still apply. */
3057 char getmntent();
3059 int main() {
3060 getmntent()
3061 ; return 0; }
3063 if { (eval echo configure:3064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3064 rm -rf conftest*
3065 eval "ac_cv_lib_$ac_lib_var=yes"
3066 else
3067 echo "configure: failed program was:" >&5
3068 cat conftest.$ac_ext >&5
3069 rm -rf conftest*
3070 eval "ac_cv_lib_$ac_lib_var=no"
3072 rm -f conftest*
3073 LIBS="$ac_save_LIBS"
3076 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3077 echo "$ac_t""yes" 1>&6
3078 LIBS="-lgen $LIBS"
3079 else
3080 echo "$ac_t""no" 1>&6
3087 echo $ac_n "checking for getmntent""... $ac_c" 1>&6
3088 echo "configure:3089: checking for getmntent" >&5
3089 if eval "test \"`echo '$''{'ac_cv_func_getmntent'+set}'`\" = set"; then
3090 echo $ac_n "(cached) $ac_c" 1>&6
3091 else
3092 cat > conftest.$ac_ext <<EOF
3093 #line 3094 "configure"
3094 #include "confdefs.h"
3095 /* System header to define __stub macros and hopefully few prototypes,
3096 which can conflict with char getmntent(); below. */
3097 #include <assert.h>
3098 /* Override any gcc2 internal prototype to avoid an error. */
3099 /* We use char because int might match the return type of a gcc2
3100 builtin and then its argument prototype would still apply. */
3101 char getmntent();
3103 int main() {
3105 /* The GNU C library defines this for functions which it implements
3106 to always fail with ENOSYS. Some functions are actually named
3107 something starting with __ and the normal name is an alias. */
3108 #if defined (__stub_getmntent) || defined (__stub___getmntent)
3109 choke me
3110 #else
3111 getmntent();
3112 #endif
3114 ; return 0; }
3116 if { (eval echo configure:3117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3117 rm -rf conftest*
3118 eval "ac_cv_func_getmntent=yes"
3119 else
3120 echo "configure: failed program was:" >&5
3121 cat conftest.$ac_ext >&5
3122 rm -rf conftest*
3123 eval "ac_cv_func_getmntent=no"
3125 rm -f conftest*
3128 if eval "test \"`echo '$ac_cv_func_'getmntent`\" = yes"; then
3129 echo "$ac_t""yes" 1>&6
3130 cat >> confdefs.h <<\EOF
3131 #define HAVE_GETMNTENT 1
3134 else
3135 echo "$ac_t""no" 1>&6
3138 echo $ac_n "checking whether closedir returns void""... $ac_c" 1>&6
3139 echo "configure:3140: checking whether closedir returns void" >&5
3140 if eval "test \"`echo '$''{'ac_cv_func_closedir_void'+set}'`\" = set"; then
3141 echo $ac_n "(cached) $ac_c" 1>&6
3142 else
3143 if test "$cross_compiling" = yes; then
3144 ac_cv_func_closedir_void=yes
3145 else
3146 cat > conftest.$ac_ext <<EOF
3147 #line 3148 "configure"
3148 #include "confdefs.h"
3149 #include <sys/types.h>
3150 #include <$ac_header_dirent>
3151 int closedir(); main() { exit(closedir(opendir(".")) != 0); }
3153 if { (eval echo configure:3154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3154 then
3155 ac_cv_func_closedir_void=no
3156 else
3157 echo "configure: failed program was:" >&5
3158 cat conftest.$ac_ext >&5
3159 rm -fr conftest*
3160 ac_cv_func_closedir_void=yes
3162 rm -fr conftest*
3167 echo "$ac_t""$ac_cv_func_closedir_void" 1>&6
3168 if test $ac_cv_func_closedir_void = yes; then
3169 cat >> confdefs.h <<\EOF
3170 #define CLOSEDIR_VOID 1
3176 trap '' 1 2 15
3177 cat > confcache <<\EOF
3178 # This file is a shell script that caches the results of configure
3179 # tests run on this system so they can be shared between configure
3180 # scripts and configure runs. It is not useful on other systems.
3181 # If it contains results you don't want to keep, you may remove or edit it.
3183 # By default, configure uses ./config.cache as the cache file,
3184 # creating it if it does not exist already. You can give configure
3185 # the --cache-file=FILE option to use a different cache file; that is
3186 # what configure does when it calls configure scripts in
3187 # subdirectories, so they share the cache.
3188 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3189 # config.status only pays attention to the cache file if you give it the
3190 # --recheck option to rerun configure.
3193 # The following way of writing the cache mishandles newlines in values,
3194 # but we know of no workaround that is simple, portable, and efficient.
3195 # So, don't put newlines in cache variables' values.
3196 # Ultrix sh set writes to stderr and can't be redirected directly,
3197 # and sets the high bit in the cache file unless we assign to the vars.
3198 (set) 2>&1 |
3199 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3200 *ac_space=\ *)
3201 # `set' does not quote correctly, so add quotes (double-quote substitution
3202 # turns \\\\ into \\, and sed turns \\ into \).
3203 sed -n \
3204 -e "s/'/'\\\\''/g" \
3205 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3208 # `set' quotes correctly as required by POSIX, so do not add quotes.
3209 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3211 esac >> confcache
3212 if cmp -s $cache_file confcache; then
3214 else
3215 if test -w $cache_file; then
3216 echo "updating cache $cache_file"
3217 cat confcache > $cache_file
3218 else
3219 echo "not updating unwritable cache $cache_file"
3222 rm -f confcache
3224 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3226 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3227 # Let make expand exec_prefix.
3228 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3230 # Any assignment to VPATH causes Sun make to only execute
3231 # the first set of double-colon rules, so remove it if not needed.
3232 # If there is a colon in the path, we need to keep it.
3233 if test "x$srcdir" = x.; then
3234 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3237 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3239 DEFS=-DHAVE_CONFIG_H
3241 # Without the "./", some shells look in PATH for config.status.
3242 : ${CONFIG_STATUS=./config.status}
3244 echo creating $CONFIG_STATUS
3245 rm -f $CONFIG_STATUS
3246 cat > $CONFIG_STATUS <<EOF
3247 #! /bin/sh
3248 # Generated automatically by configure.
3249 # Run this file to recreate the current configuration.
3250 # This directory was configured as follows,
3251 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3253 # $0 $ac_configure_args
3255 # Compiler output produced by configure, useful for debugging
3256 # configure, is in ./config.log if it exists.
3258 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3259 for ac_option
3261 case "\$ac_option" in
3262 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3263 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3264 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3265 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3266 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3267 exit 0 ;;
3268 -help | --help | --hel | --he | --h)
3269 echo "\$ac_cs_usage"; exit 0 ;;
3270 *) echo "\$ac_cs_usage"; exit 1 ;;
3271 esac
3272 done
3274 ac_given_srcdir=$srcdir
3275 ac_given_INSTALL="$INSTALL"
3277 trap 'rm -fr `echo "Makefile lib/Makefile find/Makefile xargs/Makefile \
3278 locate/Makefile doc/Makefile testsuite/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3280 cat >> $CONFIG_STATUS <<EOF
3282 # Protect against being on the right side of a sed subst in config.status.
3283 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3284 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3285 $ac_vpsub
3286 $extrasub
3287 s%@SHELL@%$SHELL%g
3288 s%@CFLAGS@%$CFLAGS%g
3289 s%@CPPFLAGS@%$CPPFLAGS%g
3290 s%@CXXFLAGS@%$CXXFLAGS%g
3291 s%@FFLAGS@%$FFLAGS%g
3292 s%@DEFS@%$DEFS%g
3293 s%@LDFLAGS@%$LDFLAGS%g
3294 s%@LIBS@%$LIBS%g
3295 s%@exec_prefix@%$exec_prefix%g
3296 s%@prefix@%$prefix%g
3297 s%@program_transform_name@%$program_transform_name%g
3298 s%@bindir@%$bindir%g
3299 s%@sbindir@%$sbindir%g
3300 s%@libexecdir@%$libexecdir%g
3301 s%@datadir@%$datadir%g
3302 s%@sysconfdir@%$sysconfdir%g
3303 s%@sharedstatedir@%$sharedstatedir%g
3304 s%@localstatedir@%$localstatedir%g
3305 s%@libdir@%$libdir%g
3306 s%@includedir@%$includedir%g
3307 s%@oldincludedir@%$oldincludedir%g
3308 s%@infodir@%$infodir%g
3309 s%@mandir@%$mandir%g
3310 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3311 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3312 s%@INSTALL_DATA@%$INSTALL_DATA%g
3313 s%@PACKAGE@%$PACKAGE%g
3314 s%@VERSION@%$VERSION%g
3315 s%@ACLOCAL@%$ACLOCAL%g
3316 s%@AUTOCONF@%$AUTOCONF%g
3317 s%@AUTOMAKE@%$AUTOMAKE%g
3318 s%@AUTOHEADER@%$AUTOHEADER%g
3319 s%@MAKEINFO@%$MAKEINFO%g
3320 s%@SET_MAKE@%$SET_MAKE%g
3321 s%@INCLUDES@%$INCLUDES%g
3322 s%@CC@%$CC%g
3323 s%@CPP@%$CPP%g
3324 s%@RANLIB@%$RANLIB%g
3325 s%@LIBOBJS@%$LIBOBJS%g
3326 s%@ALLOCA@%$ALLOCA%g
3328 CEOF
3331 cat >> $CONFIG_STATUS <<\EOF
3333 # Split the substitutions into bite-sized pieces for seds with
3334 # small command number limits, like on Digital OSF/1 and HP-UX.
3335 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3336 ac_file=1 # Number of current file.
3337 ac_beg=1 # First line for current file.
3338 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3339 ac_more_lines=:
3340 ac_sed_cmds=""
3341 while $ac_more_lines; do
3342 if test $ac_beg -gt 1; then
3343 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3344 else
3345 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3347 if test ! -s conftest.s$ac_file; then
3348 ac_more_lines=false
3349 rm -f conftest.s$ac_file
3350 else
3351 if test -z "$ac_sed_cmds"; then
3352 ac_sed_cmds="sed -f conftest.s$ac_file"
3353 else
3354 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3356 ac_file=`expr $ac_file + 1`
3357 ac_beg=$ac_end
3358 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3360 done
3361 if test -z "$ac_sed_cmds"; then
3362 ac_sed_cmds=cat
3366 cat >> $CONFIG_STATUS <<EOF
3368 CONFIG_FILES=\${CONFIG_FILES-"Makefile lib/Makefile find/Makefile xargs/Makefile \
3369 locate/Makefile doc/Makefile testsuite/Makefile"}
3371 cat >> $CONFIG_STATUS <<\EOF
3372 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3373 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3374 case "$ac_file" in
3375 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3376 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3377 *) ac_file_in="${ac_file}.in" ;;
3378 esac
3380 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3382 # Remove last slash and all that follows it. Not all systems have dirname.
3383 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3384 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3385 # The file is in a subdirectory.
3386 test ! -d "$ac_dir" && mkdir "$ac_dir"
3387 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3388 # A "../" for each directory in $ac_dir_suffix.
3389 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3390 else
3391 ac_dir_suffix= ac_dots=
3394 case "$ac_given_srcdir" in
3395 .) srcdir=.
3396 if test -z "$ac_dots"; then top_srcdir=.
3397 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3398 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3399 *) # Relative path.
3400 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3401 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3402 esac
3404 case "$ac_given_INSTALL" in
3405 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3406 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3407 esac
3409 echo creating "$ac_file"
3410 rm -f "$ac_file"
3411 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3412 case "$ac_file" in
3413 *Makefile*) ac_comsub="1i\\
3414 # $configure_input" ;;
3415 *) ac_comsub= ;;
3416 esac
3418 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3419 sed -e "$ac_comsub
3420 s%@configure_input@%$configure_input%g
3421 s%@srcdir@%$srcdir%g
3422 s%@top_srcdir@%$top_srcdir%g
3423 s%@INSTALL@%$INSTALL%g
3424 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3425 fi; done
3426 rm -f conftest.s*
3428 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3429 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3431 # ac_d sets the value in "#define NAME VALUE" lines.
3432 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3433 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3434 ac_dC='\3'
3435 ac_dD='%g'
3436 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3437 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3438 ac_uB='\([ ]\)%\1#\2define\3'
3439 ac_uC=' '
3440 ac_uD='\4%g'
3441 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3442 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3443 ac_eB='$%\1#\2define\3'
3444 ac_eC=' '
3445 ac_eD='%g'
3447 if test "${CONFIG_HEADERS+set}" != set; then
3449 cat >> $CONFIG_STATUS <<EOF
3450 CONFIG_HEADERS="config.h"
3452 cat >> $CONFIG_STATUS <<\EOF
3454 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3455 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3456 case "$ac_file" in
3457 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3458 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3459 *) ac_file_in="${ac_file}.in" ;;
3460 esac
3462 echo creating $ac_file
3464 rm -f conftest.frag conftest.in conftest.out
3465 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3466 cat $ac_file_inputs > conftest.in
3470 # Transform confdefs.h into a sed script conftest.vals that substitutes
3471 # the proper values into config.h.in to produce config.h. And first:
3472 # Protect against being on the right side of a sed subst in config.status.
3473 # Protect against being in an unquoted here document in config.status.
3474 rm -f conftest.vals
3475 cat > conftest.hdr <<\EOF
3476 s/[\\&%]/\\&/g
3477 s%[\\$`]%\\&%g
3478 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3479 s%ac_d%ac_u%gp
3480 s%ac_u%ac_e%gp
3482 sed -n -f conftest.hdr confdefs.h > conftest.vals
3483 rm -f conftest.hdr
3485 # This sed command replaces #undef with comments. This is necessary, for
3486 # example, in the case of _POSIX_SOURCE, which is predefined and required
3487 # on some systems where configure will not decide to define it.
3488 cat >> conftest.vals <<\EOF
3489 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3492 # Break up conftest.vals because some shells have a limit on
3493 # the size of here documents, and old seds have small limits too.
3495 rm -f conftest.tail
3496 while :
3498 ac_lines=`grep -c . conftest.vals`
3499 # grep -c gives empty output for an empty file on some AIX systems.
3500 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3501 # Write a limited-size here document to conftest.frag.
3502 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3503 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3504 echo 'CEOF
3505 sed -f conftest.frag conftest.in > conftest.out
3506 rm -f conftest.in
3507 mv conftest.out conftest.in
3508 ' >> $CONFIG_STATUS
3509 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3510 rm -f conftest.vals
3511 mv conftest.tail conftest.vals
3512 done
3513 rm -f conftest.vals
3515 cat >> $CONFIG_STATUS <<\EOF
3516 rm -f conftest.frag conftest.h
3517 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3518 cat conftest.in >> conftest.h
3519 rm -f conftest.in
3520 if cmp -s $ac_file conftest.h 2>/dev/null; then
3521 echo "$ac_file is unchanged"
3522 rm -f conftest.h
3523 else
3524 # Remove last slash and all that follows it. Not all systems have dirname.
3525 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3526 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3527 # The file is in a subdirectory.
3528 test ! -d "$ac_dir" && mkdir "$ac_dir"
3530 rm -f $ac_file
3531 mv conftest.h $ac_file
3533 fi; done
3536 cat >> $CONFIG_STATUS <<EOF
3540 cat >> $CONFIG_STATUS <<\EOF
3541 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
3542 date > stamp-h
3543 exit 0
3545 chmod +x $CONFIG_STATUS
3546 rm -fr confdefs* $ac_clean_files
3547 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1