* find.texi, updatedb.sh:
[findutils.git] / configure
blobcf3f66474a5728dee2e3e2dc58defc7a6e0472f8
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.7
5 # Copyright (C) 1992, 1993, 1994 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=
57 ac_prev=
58 for ac_option
61 # If the previous option needs an argument, assign it.
62 if test -n "$ac_prev"; then
63 eval "$ac_prev=\$ac_option"
64 ac_prev=
65 continue
68 case "$ac_option" in
69 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
70 *) ac_optarg= ;;
71 esac
73 # Accept the important Cygnus configure options, so we can diagnose typos.
75 case "$ac_option" in
77 -bindir | --bindir | --bindi | --bind | --bin | --bi)
78 ac_prev=bindir ;;
79 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
80 bindir="$ac_optarg" ;;
82 -build | --build | --buil | --bui | --bu)
83 ac_prev=build ;;
84 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
85 build="$ac_optarg" ;;
87 -cache-file | --cache-file | --cache-fil | --cache-fi \
88 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
89 ac_prev=cache_file ;;
90 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
91 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
92 cache_file="$ac_optarg" ;;
94 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
95 ac_prev=datadir ;;
96 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
97 | --da=*)
98 datadir="$ac_optarg" ;;
100 -disable-* | --disable-*)
101 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
102 # Reject names that are not valid shell variable names.
103 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
104 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
106 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
107 eval "enable_${ac_feature}=no" ;;
109 -enable-* | --enable-*)
110 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
111 # Reject names that are not valid shell variable names.
112 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
113 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
115 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
116 case "$ac_option" in
117 *=*) ;;
118 *) ac_optarg=yes ;;
119 esac
120 eval "enable_${ac_feature}='$ac_optarg'" ;;
122 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
123 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
124 | --exec | --exe | --ex)
125 ac_prev=exec_prefix ;;
126 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
127 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
128 | --exec=* | --exe=* | --ex=*)
129 exec_prefix="$ac_optarg" ;;
131 -gas | --gas | --ga | --g)
132 # Obsolete; use --with-gas.
133 with_gas=yes ;;
135 -help | --help | --hel | --he)
136 # Omit some internal or obsolete options to make the list less imposing.
137 # This message is too long to be a string in the A/UX 3.1 sh.
138 cat << EOF
139 Usage: configure [options] [host]
140 Options: [defaults in brackets after descriptions]
141 Configuration:
142 --cache-file=FILE cache test results in FILE
143 --help print this message
144 --no-create do not create output files
145 --quiet, --silent do not print \`checking...' messages
146 --version print the version of autoconf that created configure
147 Directory and file names:
148 --prefix=PREFIX install architecture-independent files in PREFIX
149 [$ac_default_prefix]
150 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
151 [same as prefix]
152 --bindir=DIR user executables in DIR [EPREFIX/bin]
153 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
154 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
155 --datadir=DIR read-only architecture-independent data in DIR
156 [PREFIX/share]
157 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
158 --sharedstatedir=DIR modifiable architecture-independent data in DIR
159 [PREFIX/com]
160 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
161 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
162 --includedir=DIR C header files in DIR [PREFIX/include]
163 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
164 --infodir=DIR info documentation in DIR [PREFIX/info]
165 --mandir=DIR man documentation in DIR [PREFIX/man]
166 --srcdir=DIR find the sources in DIR [configure dir or ..]
167 --program-prefix=PREFIX prepend PREFIX to installed program names
168 --program-suffix=SUFFIX append SUFFIX to installed program names
169 --program-transform-name=PROGRAM
170 run sed PROGRAM on installed program names
172 cat << EOF
173 Host type:
174 --build=BUILD configure for building on BUILD [BUILD=HOST]
175 --host=HOST configure for HOST [guessed]
176 --target=TARGET configure for TARGET [TARGET=HOST]
177 Features and packages:
178 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
179 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
180 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
181 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
182 --x-includes=DIR X include files are in DIR
183 --x-libraries=DIR X library files are in DIR
185 if test -n "$ac_help"; then
186 echo "--enable and --with options recognized:$ac_help"
188 exit 0 ;;
190 -host | --host | --hos | --ho)
191 ac_prev=host ;;
192 -host=* | --host=* | --hos=* | --ho=*)
193 host="$ac_optarg" ;;
195 -includedir | --includedir | --includedi | --included | --include \
196 | --includ | --inclu | --incl | --inc)
197 ac_prev=includedir ;;
198 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
199 | --includ=* | --inclu=* | --incl=* | --inc=*)
200 includedir="$ac_optarg" ;;
202 -infodir | --infodir | --infodi | --infod | --info | --inf)
203 ac_prev=infodir ;;
204 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
205 infodir="$ac_optarg" ;;
207 -libdir | --libdir | --libdi | --libd)
208 ac_prev=libdir ;;
209 -libdir=* | --libdir=* | --libdi=* | --libd=*)
210 libdir="$ac_optarg" ;;
212 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
213 | --libexe | --libex | --libe)
214 ac_prev=libexecdir ;;
215 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
216 | --libexe=* | --libex=* | --libe=*)
217 libexecdir="$ac_optarg" ;;
219 -localstatedir | --localstatedir | --localstatedi | --localstated \
220 | --localstate | --localstat | --localsta | --localst \
221 | --locals | --local | --loca | --loc | --lo)
222 ac_prev=localstatedir ;;
223 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
224 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
225 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
226 localstatedir="$ac_optarg" ;;
228 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
229 ac_prev=mandir ;;
230 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
231 mandir="$ac_optarg" ;;
233 -nfp | --nfp | --nf)
234 # Obsolete; use --without-fp.
235 with_fp=no ;;
237 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
238 | --no-cr | --no-c)
239 no_create=yes ;;
241 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
242 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
243 no_recursion=yes ;;
245 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
246 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
247 | --oldin | --oldi | --old | --ol | --o)
248 ac_prev=oldincludedir ;;
249 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
250 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
251 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
252 oldincludedir="$ac_optarg" ;;
254 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
255 ac_prev=prefix ;;
256 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
257 prefix="$ac_optarg" ;;
259 -program-prefix | --program-prefix | --program-prefi | --program-pref \
260 | --program-pre | --program-pr | --program-p)
261 ac_prev=program_prefix ;;
262 -program-prefix=* | --program-prefix=* | --program-prefi=* \
263 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
264 program_prefix="$ac_optarg" ;;
266 -program-suffix | --program-suffix | --program-suffi | --program-suff \
267 | --program-suf | --program-su | --program-s)
268 ac_prev=program_suffix ;;
269 -program-suffix=* | --program-suffix=* | --program-suffi=* \
270 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
271 program_suffix="$ac_optarg" ;;
273 -program-transform-name | --program-transform-name \
274 | --program-transform-nam | --program-transform-na \
275 | --program-transform-n | --program-transform- \
276 | --program-transform | --program-transfor \
277 | --program-transfo | --program-transf \
278 | --program-trans | --program-tran \
279 | --progr-tra | --program-tr | --program-t)
280 ac_prev=program_transform_name ;;
281 -program-transform-name=* | --program-transform-name=* \
282 | --program-transform-nam=* | --program-transform-na=* \
283 | --program-transform-n=* | --program-transform-=* \
284 | --program-transform=* | --program-transfor=* \
285 | --program-transfo=* | --program-transf=* \
286 | --program-trans=* | --program-tran=* \
287 | --progr-tra=* | --program-tr=* | --program-t=*)
288 program_transform_name="$ac_optarg" ;;
290 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
291 | -silent | --silent | --silen | --sile | --sil)
292 silent=yes ;;
294 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
295 ac_prev=sbindir ;;
296 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
297 | --sbi=* | --sb=*)
298 sbindir="$ac_optarg" ;;
300 -sharedstatedir | --sharedstatedir | --sharedstatedi \
301 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
302 | --sharedst | --shareds | --shared | --share | --shar \
303 | --sha | --sh)
304 ac_prev=sharedstatedir ;;
305 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
306 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
307 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
308 | --sha=* | --sh=*)
309 sharedstatedir="$ac_optarg" ;;
311 -site | --site | --sit)
312 ac_prev=site ;;
313 -site=* | --site=* | --sit=*)
314 site="$ac_optarg" ;;
316 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
317 ac_prev=srcdir ;;
318 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
319 srcdir="$ac_optarg" ;;
321 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
322 | --syscon | --sysco | --sysc | --sys | --sy)
323 ac_prev=sysconfdir ;;
324 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
325 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
326 sysconfdir="$ac_optarg" ;;
328 -target | --target | --targe | --targ | --tar | --ta | --t)
329 ac_prev=target ;;
330 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
331 target="$ac_optarg" ;;
333 -v | -verbose | --verbose | --verbos | --verbo | --verb)
334 verbose=yes ;;
336 -version | --version | --versio | --versi | --vers)
337 echo "configure generated by autoconf version 2.7"
338 exit 0 ;;
340 -with-* | --with-*)
341 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
342 # Reject names that are not valid shell variable names.
343 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
344 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
346 ac_package=`echo $ac_package| sed 's/-/_/g'`
347 case "$ac_option" in
348 *=*) ;;
349 *) ac_optarg=yes ;;
350 esac
351 eval "with_${ac_package}='$ac_optarg'" ;;
353 -without-* | --without-*)
354 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
355 # Reject names that are not valid shell variable names.
356 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
357 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
359 ac_package=`echo $ac_package| sed 's/-/_/g'`
360 eval "with_${ac_package}=no" ;;
362 --x)
363 # Obsolete; use --with-x.
364 with_x=yes ;;
366 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
367 | --x-incl | --x-inc | --x-in | --x-i)
368 ac_prev=x_includes ;;
369 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
370 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
371 x_includes="$ac_optarg" ;;
373 -x-libraries | --x-libraries | --x-librarie | --x-librari \
374 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
375 ac_prev=x_libraries ;;
376 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
377 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
378 x_libraries="$ac_optarg" ;;
380 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
384 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
385 echo "configure: warning: $ac_option: invalid host type" 1>&2
387 if test "x$nonopt" != xNONE; then
388 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
390 nonopt="$ac_option"
393 esac
394 done
396 if test -n "$ac_prev"; then
397 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
400 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
402 # File descriptor usage:
403 # 0 standard input
404 # 1 file creation
405 # 2 errors and warnings
406 # 3 some systems may open it to /dev/tty
407 # 4 used on the Kubota Titan
408 # 6 checking for... messages and results
409 # 5 compiler messages saved in config.log
410 if test "$silent" = yes; then
411 exec 6>/dev/null
412 else
413 exec 6>&1
415 exec 5>./config.log
417 echo "\
418 This file contains any messages produced by compilers while
419 running configure, to aid debugging if configure makes a mistake.
420 " 1>&5
422 # Strip out --no-create and --no-recursion so they do not pile up.
423 # Also quote any args containing shell metacharacters.
424 ac_configure_args=
425 for ac_arg
427 case "$ac_arg" in
428 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
429 | --no-cr | --no-c) ;;
430 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
431 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
432 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
433 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
434 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
435 esac
436 done
438 # NLS nuisances.
439 # Only set LANG and LC_ALL to C if already set.
440 # These must not be set unconditionally because not all systems understand
441 # e.g. LANG=C (notably SCO).
442 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
443 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
445 # confdefs.h avoids OS command line length limits that DEFS can exceed.
446 rm -rf conftest* confdefs.h
447 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
448 echo > confdefs.h
450 # A filename unique to this package, relative to the directory that
451 # configure is in, which we can look for to find out if srcdir is correct.
452 ac_unique_file=find/pred.c
454 # Find the source files, if location was not specified.
455 if test -z "$srcdir"; then
456 ac_srcdir_defaulted=yes
457 # Try the directory containing this script, then its parent.
458 ac_prog=$0
459 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
460 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
461 srcdir=$ac_confdir
462 if test ! -r $srcdir/$ac_unique_file; then
463 srcdir=..
465 else
466 ac_srcdir_defaulted=no
468 if test ! -r $srcdir/$ac_unique_file; then
469 if test "$ac_srcdir_defaulted" = yes; then
470 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
471 else
472 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
475 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
477 # Prefer explicitly selected file to automatically selected ones.
478 if test -z "$CONFIG_SITE"; then
479 if test "x$prefix" != xNONE; then
480 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
481 else
482 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
485 for ac_site_file in $CONFIG_SITE; do
486 if test -r "$ac_site_file"; then
487 echo "loading site script $ac_site_file"
488 . "$ac_site_file"
490 done
492 if test -r "$cache_file"; then
493 echo "loading cache $cache_file"
494 . $cache_file
495 else
496 echo "creating cache $cache_file"
497 > $cache_file
500 ac_ext=c
501 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
502 ac_cpp='echo $CPP $CPPFLAGS 1>&5;
503 $CPP $CPPFLAGS'
504 ac_compile='echo ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5;
505 ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
506 ac_link='echo ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5;
507 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
509 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
510 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
511 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
512 ac_n= ac_c='
513 ' ac_t=' '
514 else
515 ac_n=-n ac_c= ac_t=
517 else
518 ac_n= ac_c='\c' ac_t=
524 # Check whether --enable-id-cache or --disable-id-cache was given.
525 if test "${enable_id_cache+set}" = set; then
526 enableval="$enable_id_cache"
527 cat >> confdefs.h <<\EOF
528 #define CACHE_IDS 1
533 # Check whether --with-afs or --without-afs was given.
534 if test "${with_afs+set}" = set; then
535 withval="$with_afs"
536 cat >> confdefs.h <<\EOF
537 #define AFS 1
540 CPPFLAGS="$CPPFLAGS -I/usr/afsws/include"
541 LIBS="$LIBS -L/usr/afsws/lib -L/usr/afsws/lib/afs -lsys -lrx -llwp"
544 if test "$program_transform_name" = s,x,x,; then
545 program_transform_name=
546 else
547 # Double any \ or $. echo might interpret backslashes.
548 cat <<\EOF_SED > conftestsed
549 s,\\,\\\\,g; s,\$,$$,g
550 EOF_SED
551 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
552 rm -f conftestsed
554 test "$program_prefix" != NONE &&
555 program_transform_name="s,^,${program_prefix},; $program_transform_name"
556 # Use a double $ so make ignores it.
557 test "$program_suffix" != NONE &&
558 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
560 # sed with no file args requires a program.
561 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
564 # Extract the first word of "gcc", so it can be a program name with args.
565 set dummy gcc; ac_word=$2
566 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
567 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
568 echo $ac_n "(cached) $ac_c" 1>&6
569 else
570 if test -n "$CC"; then
571 ac_cv_prog_CC="$CC" # Let the user override the test.
572 else
573 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
574 for ac_dir in $PATH; do
575 test -z "$ac_dir" && ac_dir=.
576 if test -f $ac_dir/$ac_word; then
577 ac_cv_prog_CC="gcc"
578 break
580 done
581 IFS="$ac_save_ifs"
582 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
585 CC="$ac_cv_prog_CC"
586 if test -n "$CC"; then
587 echo "$ac_t""$CC" 1>&6
588 else
589 echo "$ac_t""no" 1>&6
593 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
594 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
595 echo $ac_n "(cached) $ac_c" 1>&6
596 else
597 cat > conftest.c <<EOF
598 #ifdef __GNUC__
599 yes;
600 #endif
602 if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
603 ac_cv_prog_gcc=yes
604 else
605 ac_cv_prog_gcc=no
609 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
610 if test $ac_cv_prog_gcc = yes; then
611 GCC=yes
612 if test "${CFLAGS+set}" != set; then
613 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
614 if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
615 echo $ac_n "(cached) $ac_c" 1>&6
616 else
617 echo 'void f(){}' > conftest.c
618 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
619 ac_cv_prog_gcc_g=yes
620 else
621 ac_cv_prog_gcc_g=no
623 rm -f conftest*
627 echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
628 if test $ac_cv_prog_gcc_g = yes; then
629 CFLAGS="-g -O"
630 else
631 CFLAGS="-O"
634 else
635 GCC=
636 test "${CFLAGS+set}" = set || CFLAGS="-g"
639 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
640 # On Suns, sometimes $CPP names a directory.
641 if test -n "$CPP" && test -d "$CPP"; then
642 CPP=
644 if test -z "$CPP"; then
645 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
646 echo $ac_n "(cached) $ac_c" 1>&6
647 else
648 # This must be in double quotes, not single quotes, because CPP may get
649 # substituted into the Makefile and "${CC-cc}" will confuse make.
650 CPP="${CC-cc} -E"
651 # On the NeXT, cc -E runs the code through the compiler's parser,
652 # not just through cpp.
653 cat > conftest.$ac_ext <<EOF
654 #line 655 "configure"
655 #include "confdefs.h"
656 #include <assert.h>
657 Syntax Error
659 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
660 ac_err=`grep -v '^ *+' conftest.out`
661 if test -z "$ac_err"; then
663 else
664 echo "$ac_err" >&5
665 rm -rf conftest*
666 CPP="${CC-cc} -E -traditional-cpp"
667 cat > conftest.$ac_ext <<EOF
668 #line 669 "configure"
669 #include "confdefs.h"
670 #include <assert.h>
671 Syntax Error
673 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
674 ac_err=`grep -v '^ *+' conftest.out`
675 if test -z "$ac_err"; then
677 else
678 echo "$ac_err" >&5
679 rm -rf conftest*
680 CPP=/lib/cpp
682 rm -f conftest*
684 rm -f conftest*
685 ac_cv_prog_CPP="$CPP"
687 CPP="$ac_cv_prog_CPP"
688 else
689 ac_cv_prog_CPP="$CPP"
691 echo "$ac_t""$CPP" 1>&6
693 ac_aux_dir=
694 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
695 if test -f $ac_dir/install-sh; then
696 ac_aux_dir=$ac_dir
697 ac_install_sh="$ac_aux_dir/install-sh -c"
698 break
699 elif test -f $ac_dir/install.sh; then
700 ac_aux_dir=$ac_dir
701 ac_install_sh="$ac_aux_dir/install.sh -c"
702 break
704 done
705 if test -z "$ac_aux_dir"; then
706 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
708 ac_config_guess=$ac_aux_dir/config.guess
709 ac_config_sub=$ac_aux_dir/config.sub
710 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
712 # Find a good install program. We prefer a C program (faster),
713 # so one script is as good as another. But avoid the broken or
714 # incompatible versions:
715 # SysV /etc/install, /usr/sbin/install
716 # SunOS /usr/etc/install
717 # IRIX /sbin/install
718 # AIX /bin/install
719 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
720 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
721 # ./install, which can be erroneously created by make from ./install.sh.
722 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
723 if test -z "$INSTALL"; then
724 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
725 echo $ac_n "(cached) $ac_c" 1>&6
726 else
727 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
728 for ac_dir in $PATH; do
729 # Account for people who put trailing slashes in PATH elements.
730 case "$ac_dir/" in
731 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
733 # OSF1 and SCO ODT 3.0 have their own names for install.
734 for ac_prog in ginstall installbsd scoinst install; do
735 if test -f $ac_dir/$ac_prog; then
736 if test $ac_prog = install &&
737 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
738 # AIX install. It has an incompatible calling convention.
739 # OSF/1 installbsd also uses dspmsg, but is usable.
741 else
742 ac_cv_path_install="$ac_dir/$ac_prog -c"
743 break 2
746 done
748 esac
749 done
750 IFS="$ac_save_ifs"
753 if test "${ac_cv_path_install+set}" = set; then
754 INSTALL="$ac_cv_path_install"
755 else
756 # As a last resort, use the slow shell script. We don't cache a
757 # path for INSTALL within a source directory, because that will
758 # break other packages using the cache if that directory is
759 # removed, or if the path is relative.
760 INSTALL="$ac_install_sh"
763 echo "$ac_t""$INSTALL" 1>&6
765 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
766 # It thinks the first close brace ends the variable substitution.
767 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
769 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
771 # Extract the first word of "ranlib", so it can be a program name with args.
772 set dummy ranlib; ac_word=$2
773 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
774 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
775 echo $ac_n "(cached) $ac_c" 1>&6
776 else
777 if test -n "$RANLIB"; then
778 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
779 else
780 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
781 for ac_dir in $PATH; do
782 test -z "$ac_dir" && ac_dir=.
783 if test -f $ac_dir/$ac_word; then
784 ac_cv_prog_RANLIB="ranlib"
785 break
787 done
788 IFS="$ac_save_ifs"
789 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
792 RANLIB="$ac_cv_prog_RANLIB"
793 if test -n "$RANLIB"; then
794 echo "$ac_t""$RANLIB" 1>&6
795 else
796 echo "$ac_t""no" 1>&6
799 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
800 set dummy ${MAKE-make}; ac_make=$2
801 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
802 echo $ac_n "(cached) $ac_c" 1>&6
803 else
804 cat > conftestmake <<\EOF
805 all:
806 @echo 'ac_maketemp="${MAKE}"'
808 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
809 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
810 if test -n "$ac_maketemp"; then
811 eval ac_cv_prog_make_${ac_make}_set=yes
812 else
813 eval ac_cv_prog_make_${ac_make}_set=no
815 rm -f conftestmake
817 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
818 echo "$ac_t""yes" 1>&6
819 SET_MAKE=
820 else
821 echo "$ac_t""no" 1>&6
822 SET_MAKE="MAKE=${MAKE-make}"
826 echo $ac_n "checking for AIX""... $ac_c" 1>&6
827 cat > conftest.$ac_ext <<EOF
828 #line 829 "configure"
829 #include "confdefs.h"
830 #ifdef _AIX
832 #endif
835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
836 egrep "yes" >/dev/null 2>&1; then
837 rm -rf conftest*
838 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
839 #define _ALL_SOURCE 1
842 else
843 rm -rf conftest*
844 echo "$ac_t""no" 1>&6
846 rm -f conftest*
849 ac_safe=`echo "minix/config.h" | tr './\055' '___'`
850 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
851 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
852 echo $ac_n "(cached) $ac_c" 1>&6
853 else
854 cat > conftest.$ac_ext <<EOF
855 #line 856 "configure"
856 #include "confdefs.h"
857 #include <minix/config.h>
859 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
860 ac_err=`grep -v '^ *+' conftest.out`
861 if test -z "$ac_err"; then
862 rm -rf conftest*
863 eval "ac_cv_header_$ac_safe=yes"
864 else
865 echo "$ac_err" >&5
866 rm -rf conftest*
867 eval "ac_cv_header_$ac_safe=no"
869 rm -f conftest*
871 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
872 echo "$ac_t""yes" 1>&6
873 MINIX=yes
874 else
875 echo "$ac_t""no" 1>&6
876 MINIX=
879 if test "$MINIX" = yes; then
880 cat >> confdefs.h <<\EOF
881 #define _POSIX_SOURCE 1
884 cat >> confdefs.h <<\EOF
885 #define _POSIX_1_SOURCE 2
888 cat >> confdefs.h <<\EOF
889 #define _MINIX 1
894 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
895 if test -d /etc/conf/kconfig.d &&
896 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
897 then
898 echo "$ac_t""yes" 1>&6
899 ISC=yes # If later tests want to check for ISC.
900 cat >> confdefs.h <<\EOF
901 #define _POSIX_SOURCE 1
904 if test "$GCC" = yes; then
905 CC="$CC -posix"
906 else
907 CC="$CC -Xp"
909 else
910 echo "$ac_t""no" 1>&6
911 ISC=
915 echo $ac_n "checking for -lsun""... $ac_c" 1>&6
916 ac_lib_var=`echo sun | tr '.-/+' '___p'`
917 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
918 echo $ac_n "(cached) $ac_c" 1>&6
919 else
920 ac_save_LIBS="$LIBS"
921 LIBS="-lsun $LIBS"
922 cat > conftest.$ac_ext <<EOF
923 #line 924 "configure"
924 #include "confdefs.h"
926 int main() { return 0; }
927 int t() {
928 getpwnam()
929 ; return 0; }
931 if eval $ac_link; then
932 rm -rf conftest*
933 eval "ac_cv_lib_$ac_lib_var=yes"
934 else
935 rm -rf conftest*
936 eval "ac_cv_lib_$ac_lib_var=no"
938 rm -f conftest*
939 LIBS="$ac_save_LIBS"
942 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
943 echo "$ac_t""yes" 1>&6
944 ac_tr_lib=HAVE_LIB`echo sun | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
945 cat >> confdefs.h <<EOF
946 #define $ac_tr_lib 1
949 LIBS="-lsun $LIBS"
951 else
952 echo "$ac_t""no" 1>&6
956 for ac_hdr in fcntl.h string.h limits.h unistd.h
958 ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
959 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
960 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
961 echo $ac_n "(cached) $ac_c" 1>&6
962 else
963 cat > conftest.$ac_ext <<EOF
964 #line 965 "configure"
965 #include "confdefs.h"
966 #include <$ac_hdr>
968 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
969 ac_err=`grep -v '^ *+' conftest.out`
970 if test -z "$ac_err"; then
971 rm -rf conftest*
972 eval "ac_cv_header_$ac_safe=yes"
973 else
974 echo "$ac_err" >&5
975 rm -rf conftest*
976 eval "ac_cv_header_$ac_safe=no"
978 rm -f conftest*
980 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
981 echo "$ac_t""yes" 1>&6
982 ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
983 cat >> confdefs.h <<EOF
984 #define $ac_tr_hdr 1
987 else
988 echo "$ac_t""no" 1>&6
990 done
992 # If we cannot run a trivial program, we must be cross compiling.
993 echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
994 if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
995 echo $ac_n "(cached) $ac_c" 1>&6
996 else
997 if test "$cross_compiling" = yes; then
998 ac_cv_c_cross=yes
999 else
1000 cat > conftest.$ac_ext <<EOF
1001 #line 1002 "configure"
1002 #include "confdefs.h"
1003 main(){return(0);}
1005 eval $ac_link
1006 if test -s conftest && (./conftest; exit) 2>/dev/null; then
1007 ac_cv_c_cross=no
1008 else
1009 ac_cv_c_cross=yes
1012 rm -fr conftest*
1015 echo "$ac_t""$ac_cv_c_cross" 1>&6
1016 cross_compiling=$ac_cv_c_cross
1018 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1019 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1020 echo $ac_n "(cached) $ac_c" 1>&6
1021 else
1022 cat > conftest.$ac_ext <<EOF
1023 #line 1024 "configure"
1024 #include "confdefs.h"
1025 #include <stdlib.h>
1026 #include <stdarg.h>
1027 #include <string.h>
1028 #include <float.h>
1030 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1031 ac_err=`grep -v '^ *+' conftest.out`
1032 if test -z "$ac_err"; then
1033 rm -rf conftest*
1034 ac_cv_header_stdc=yes
1035 else
1036 echo "$ac_err" >&5
1037 rm -rf conftest*
1038 ac_cv_header_stdc=no
1040 rm -f conftest*
1042 if test $ac_cv_header_stdc = yes; then
1043 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1044 cat > conftest.$ac_ext <<EOF
1045 #line 1046 "configure"
1046 #include "confdefs.h"
1047 #include <string.h>
1049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1050 egrep "memchr" >/dev/null 2>&1; then
1052 else
1053 rm -rf conftest*
1054 ac_cv_header_stdc=no
1056 rm -f conftest*
1060 if test $ac_cv_header_stdc = yes; then
1061 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1062 cat > conftest.$ac_ext <<EOF
1063 #line 1064 "configure"
1064 #include "confdefs.h"
1065 #include <stdlib.h>
1067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1068 egrep "free" >/dev/null 2>&1; then
1070 else
1071 rm -rf conftest*
1072 ac_cv_header_stdc=no
1074 rm -f conftest*
1078 if test $ac_cv_header_stdc = yes; then
1079 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1080 if test "$cross_compiling" = yes; then
1082 else
1083 cat > conftest.$ac_ext <<EOF
1084 #line 1085 "configure"
1085 #include "confdefs.h"
1086 #include <ctype.h>
1087 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1088 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1089 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1090 int main () { int i; for (i = 0; i < 256; i++)
1091 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1092 exit (0); }
1095 eval $ac_link
1096 if test -s conftest && (./conftest; exit) 2>/dev/null; then
1098 else
1099 ac_cv_header_stdc=no
1102 rm -fr conftest*
1106 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1107 if test $ac_cv_header_stdc = yes; then
1108 cat >> confdefs.h <<\EOF
1109 #define STDC_HEADERS 1
1114 echo $ac_n "checking whether sys/types.h defines makedev""... $ac_c" 1>&6
1115 if eval "test \"`echo '$''{'ac_cv_header_sys_types_h_makedev'+set}'`\" = set"; then
1116 echo $ac_n "(cached) $ac_c" 1>&6
1117 else
1118 cat > conftest.$ac_ext <<EOF
1119 #line 1120 "configure"
1120 #include "confdefs.h"
1121 #include <sys/types.h>
1122 int main() { return 0; }
1123 int t() {
1124 return makedev(0, 0);
1125 ; return 0; }
1127 if eval $ac_link; then
1128 rm -rf conftest*
1129 ac_cv_header_sys_types_h_makedev=yes
1130 else
1131 rm -rf conftest*
1132 ac_cv_header_sys_types_h_makedev=no
1134 rm -f conftest*
1139 echo "$ac_t""$ac_cv_header_sys_types_h_makedev" 1>&6
1141 if test $ac_cv_header_sys_types_h_makedev = no; then
1142 ac_safe=`echo "sys/mkdev.h" | tr './\055' '___'`
1143 echo $ac_n "checking for sys/mkdev.h""... $ac_c" 1>&6
1144 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1145 echo $ac_n "(cached) $ac_c" 1>&6
1146 else
1147 cat > conftest.$ac_ext <<EOF
1148 #line 1149 "configure"
1149 #include "confdefs.h"
1150 #include <sys/mkdev.h>
1152 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1153 ac_err=`grep -v '^ *+' conftest.out`
1154 if test -z "$ac_err"; then
1155 rm -rf conftest*
1156 eval "ac_cv_header_$ac_safe=yes"
1157 else
1158 echo "$ac_err" >&5
1159 rm -rf conftest*
1160 eval "ac_cv_header_$ac_safe=no"
1162 rm -f conftest*
1164 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1165 echo "$ac_t""yes" 1>&6
1166 cat >> confdefs.h <<\EOF
1167 #define MAJOR_IN_MKDEV 1
1170 else
1171 echo "$ac_t""no" 1>&6
1175 if test $ac_cv_header_sys_mkdev_h = no; then
1176 ac_safe=`echo "sys/sysmacros.h" | tr './\055' '___'`
1177 echo $ac_n "checking for sys/sysmacros.h""... $ac_c" 1>&6
1178 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1179 echo $ac_n "(cached) $ac_c" 1>&6
1180 else
1181 cat > conftest.$ac_ext <<EOF
1182 #line 1183 "configure"
1183 #include "confdefs.h"
1184 #include <sys/sysmacros.h>
1186 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1187 ac_err=`grep -v '^ *+' conftest.out`
1188 if test -z "$ac_err"; then
1189 rm -rf conftest*
1190 eval "ac_cv_header_$ac_safe=yes"
1191 else
1192 echo "$ac_err" >&5
1193 rm -rf conftest*
1194 eval "ac_cv_header_$ac_safe=no"
1196 rm -f conftest*
1198 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1199 echo "$ac_t""yes" 1>&6
1200 cat >> confdefs.h <<\EOF
1201 #define MAJOR_IN_SYSMACROS 1
1204 else
1205 echo "$ac_t""no" 1>&6
1211 ac_header_dirent=no
1212 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1214 ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
1215 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1216 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1217 echo $ac_n "(cached) $ac_c" 1>&6
1218 else
1219 cat > conftest.$ac_ext <<EOF
1220 #line 1221 "configure"
1221 #include "confdefs.h"
1222 #include <sys/types.h>
1223 #include <$ac_hdr>
1224 int main() { return 0; }
1225 int t() {
1226 DIR *dirp = 0;
1227 ; return 0; }
1229 if eval $ac_compile; then
1230 rm -rf conftest*
1231 eval "ac_cv_header_dirent_$ac_safe=yes"
1232 else
1233 rm -rf conftest*
1234 eval "ac_cv_header_dirent_$ac_safe=no"
1236 rm -f conftest*
1239 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1240 echo "$ac_t""yes" 1>&6
1241 ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdedfghijklmnopqrstuvwxyz./\055' 'ABCDEDFGHIJKLMNOPQRSTUVWXYZ___'`
1242 cat >> confdefs.h <<EOF
1243 #define $ac_tr_hdr 1
1245 ac_header_dirent=$ac_hdr; break
1246 else
1247 echo "$ac_t""no" 1>&6
1249 done
1250 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1251 if test $ac_header_dirent = dirent.h; then
1252 echo $ac_n "checking for -ldir""... $ac_c" 1>&6
1253 ac_lib_var=`echo dir | tr '.-/+' '___p'`
1254 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1255 echo $ac_n "(cached) $ac_c" 1>&6
1256 else
1257 ac_save_LIBS="$LIBS"
1258 LIBS="-ldir $LIBS"
1259 cat > conftest.$ac_ext <<EOF
1260 #line 1261 "configure"
1261 #include "confdefs.h"
1263 int main() { return 0; }
1264 int t() {
1265 opendir()
1266 ; return 0; }
1268 if eval $ac_link; then
1269 rm -rf conftest*
1270 eval "ac_cv_lib_$ac_lib_var=yes"
1271 else
1272 rm -rf conftest*
1273 eval "ac_cv_lib_$ac_lib_var=no"
1275 rm -f conftest*
1276 LIBS="$ac_save_LIBS"
1279 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1280 echo "$ac_t""yes" 1>&6
1281 LIBS="$LIBS -ldir"
1282 else
1283 echo "$ac_t""no" 1>&6
1286 else
1287 echo $ac_n "checking for -lx""... $ac_c" 1>&6
1288 ac_lib_var=`echo x | tr '.-/+' '___p'`
1289 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1290 echo $ac_n "(cached) $ac_c" 1>&6
1291 else
1292 ac_save_LIBS="$LIBS"
1293 LIBS="-lx $LIBS"
1294 cat > conftest.$ac_ext <<EOF
1295 #line 1296 "configure"
1296 #include "confdefs.h"
1298 int main() { return 0; }
1299 int t() {
1300 opendir()
1301 ; return 0; }
1303 if eval $ac_link; then
1304 rm -rf conftest*
1305 eval "ac_cv_lib_$ac_lib_var=yes"
1306 else
1307 rm -rf conftest*
1308 eval "ac_cv_lib_$ac_lib_var=no"
1310 rm -f conftest*
1311 LIBS="$ac_save_LIBS"
1314 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1315 echo "$ac_t""yes" 1>&6
1316 LIBS="$LIBS -lx"
1317 else
1318 echo "$ac_t""no" 1>&6
1323 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
1324 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
1325 echo $ac_n "(cached) $ac_c" 1>&6
1326 else
1327 cat > conftest.$ac_ext <<EOF
1328 #line 1329 "configure"
1329 #include "confdefs.h"
1330 #include <sys/types.h>
1331 #include <sys/stat.h>
1333 #if defined(S_ISBLK) && defined(S_IFDIR)
1334 # if S_ISBLK (S_IFDIR)
1335 You lose.
1336 # endif
1337 #endif
1339 #if defined(S_ISBLK) && defined(S_IFCHR)
1340 # if S_ISBLK (S_IFCHR)
1341 You lose.
1342 # endif
1343 #endif
1345 #if defined(S_ISLNK) && defined(S_IFREG)
1346 # if S_ISLNK (S_IFREG)
1347 You lose.
1348 # endif
1349 #endif
1351 #if defined(S_ISSOCK) && defined(S_IFREG)
1352 # if S_ISSOCK (S_IFREG)
1353 You lose.
1354 # endif
1355 #endif
1358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1359 egrep "You lose" >/dev/null 2>&1; then
1360 rm -rf conftest*
1361 ac_cv_header_stat_broken=yes
1362 else
1363 rm -rf conftest*
1364 ac_cv_header_stat_broken=no
1366 rm -f conftest*
1370 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
1371 if test $ac_cv_header_stat_broken = yes; then
1372 cat >> confdefs.h <<\EOF
1373 #define STAT_MACROS_BROKEN 1
1378 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1379 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1380 echo $ac_n "(cached) $ac_c" 1>&6
1381 else
1382 cat > conftest.$ac_ext <<EOF
1383 #line 1384 "configure"
1384 #include "confdefs.h"
1385 #include <sys/types.h>
1386 #include <sys/wait.h>
1387 #ifndef WEXITSTATUS
1388 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1389 #endif
1390 #ifndef WIFEXITED
1391 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1392 #endif
1393 int main() { return 0; }
1394 int t() {
1395 int s;
1396 wait (&s);
1397 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1398 ; return 0; }
1400 if eval $ac_compile; then
1401 rm -rf conftest*
1402 ac_cv_header_sys_wait_h=yes
1403 else
1404 rm -rf conftest*
1405 ac_cv_header_sys_wait_h=no
1407 rm -f conftest*
1411 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1412 if test $ac_cv_header_sys_wait_h = yes; then
1413 cat >> confdefs.h <<\EOF
1414 #define HAVE_SYS_WAIT_H 1
1420 echo $ac_n "checking how to get filesystem type""... $ac_c" 1>&6
1421 fstype=no
1422 # The order of these tests is important.
1423 cat > conftest.$ac_ext <<EOF
1424 #line 1425 "configure"
1425 #include "confdefs.h"
1426 #include <sys/statvfs.h>
1427 #include <sys/fstyp.h>
1429 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1430 ac_err=`grep -v '^ *+' conftest.out`
1431 if test -z "$ac_err"; then
1432 rm -rf conftest*
1433 cat >> confdefs.h <<\EOF
1434 #define FSTYPE_STATVFS 1
1436 fstype=SVR4
1437 else
1438 echo "$ac_err" >&5
1440 rm -f conftest*
1441 if test $fstype = no; then
1442 cat > conftest.$ac_ext <<EOF
1443 #line 1444 "configure"
1444 #include "confdefs.h"
1445 #include <sys/statfs.h>
1446 #include <sys/fstyp.h>
1448 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1449 ac_err=`grep -v '^ *+' conftest.out`
1450 if test -z "$ac_err"; then
1451 rm -rf conftest*
1452 cat >> confdefs.h <<\EOF
1453 #define FSTYPE_USG_STATFS 1
1455 fstype=SVR3
1456 else
1457 echo "$ac_err" >&5
1459 rm -f conftest*
1461 if test $fstype = no; then
1462 cat > conftest.$ac_ext <<EOF
1463 #line 1464 "configure"
1464 #include "confdefs.h"
1465 #include <sys/statfs.h>
1466 #include <sys/vmount.h>
1468 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1469 ac_err=`grep -v '^ *+' conftest.out`
1470 if test -z "$ac_err"; then
1471 rm -rf conftest*
1472 cat >> confdefs.h <<\EOF
1473 #define FSTYPE_AIX_STATFS 1
1475 fstype=AIX
1476 else
1477 echo "$ac_err" >&5
1479 rm -f conftest*
1481 if test $fstype = no; then
1482 cat > conftest.$ac_ext <<EOF
1483 #line 1484 "configure"
1484 #include "confdefs.h"
1485 #include <mntent.h>
1487 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1488 ac_err=`grep -v '^ *+' conftest.out`
1489 if test -z "$ac_err"; then
1490 rm -rf conftest*
1491 cat >> confdefs.h <<\EOF
1492 #define FSTYPE_MNTENT 1
1494 fstype=4.3BSD
1495 else
1496 echo "$ac_err" >&5
1498 rm -f conftest*
1500 if test $fstype = no; then
1501 cat > conftest.$ac_ext <<EOF
1502 #line 1503 "configure"
1503 #include "confdefs.h"
1504 #include <sys/mount.h>
1506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1507 egrep "f_type;" >/dev/null 2>&1; then
1508 rm -rf conftest*
1509 cat >> confdefs.h <<\EOF
1510 #define FSTYPE_STATFS 1
1512 fstype=4.4BSD/OSF1
1514 rm -f conftest*
1517 if test $fstype = no; then
1518 cat > conftest.$ac_ext <<EOF
1519 #line 1520 "configure"
1520 #include "confdefs.h"
1521 #include <sys/mount.h>
1522 #include <sys/fs_types.h>
1524 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1525 ac_err=`grep -v '^ *+' conftest.out`
1526 if test -z "$ac_err"; then
1527 rm -rf conftest*
1528 cat >> confdefs.h <<\EOF
1529 #define FSTYPE_GETMNT 1
1531 fstype=Ultrix
1532 else
1533 echo "$ac_err" >&5
1535 rm -f conftest*
1537 echo "$ac_t""$fstype" 1>&6
1540 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
1541 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
1542 echo $ac_n "(cached) $ac_c" 1>&6
1543 else
1544 cat > conftest.$ac_ext <<EOF
1545 #line 1546 "configure"
1546 #include "confdefs.h"
1547 #include <sys/types.h>
1549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1550 egrep "uid_t" >/dev/null 2>&1; then
1551 rm -rf conftest*
1552 ac_cv_type_uid_t=yes
1553 else
1554 rm -rf conftest*
1555 ac_cv_type_uid_t=no
1557 rm -f conftest*
1561 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
1562 if test $ac_cv_type_uid_t = no; then
1563 cat >> confdefs.h <<\EOF
1564 #define uid_t int
1567 cat >> confdefs.h <<\EOF
1568 #define gid_t int
1573 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1574 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1575 echo $ac_n "(cached) $ac_c" 1>&6
1576 else
1577 cat > conftest.$ac_ext <<EOF
1578 #line 1579 "configure"
1579 #include "confdefs.h"
1580 #include <sys/types.h>
1581 #if STDC_HEADERS
1582 #include <stdlib.h>
1583 #endif
1585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1586 egrep "size_t" >/dev/null 2>&1; then
1587 rm -rf conftest*
1588 ac_cv_type_size_t=yes
1589 else
1590 rm -rf conftest*
1591 ac_cv_type_size_t=no
1593 rm -f conftest*
1596 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1597 if test $ac_cv_type_size_t = no; then
1598 cat >> confdefs.h <<\EOF
1599 #define size_t unsigned
1604 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
1605 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
1606 echo $ac_n "(cached) $ac_c" 1>&6
1607 else
1608 cat > conftest.$ac_ext <<EOF
1609 #line 1610 "configure"
1610 #include "confdefs.h"
1611 #include <sys/types.h>
1612 #if STDC_HEADERS
1613 #include <stdlib.h>
1614 #endif
1616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1617 egrep "pid_t" >/dev/null 2>&1; then
1618 rm -rf conftest*
1619 ac_cv_type_pid_t=yes
1620 else
1621 rm -rf conftest*
1622 ac_cv_type_pid_t=no
1624 rm -f conftest*
1627 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
1628 if test $ac_cv_type_pid_t = no; then
1629 cat >> confdefs.h <<\EOF
1630 #define pid_t int
1635 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
1636 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
1637 echo $ac_n "(cached) $ac_c" 1>&6
1638 else
1639 cat > conftest.$ac_ext <<EOF
1640 #line 1641 "configure"
1641 #include "confdefs.h"
1642 #include <sys/types.h>
1643 #if STDC_HEADERS
1644 #include <stdlib.h>
1645 #endif
1647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1648 egrep "ino_t" >/dev/null 2>&1; then
1649 rm -rf conftest*
1650 ac_cv_type_ino_t=yes
1651 else
1652 rm -rf conftest*
1653 ac_cv_type_ino_t=no
1655 rm -f conftest*
1658 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
1659 if test $ac_cv_type_ino_t = no; then
1660 cat >> confdefs.h <<\EOF
1661 #define ino_t unsigned long
1666 echo $ac_n "checking for dev_t""... $ac_c" 1>&6
1667 if eval "test \"`echo '$''{'ac_cv_type_dev_t'+set}'`\" = set"; then
1668 echo $ac_n "(cached) $ac_c" 1>&6
1669 else
1670 cat > conftest.$ac_ext <<EOF
1671 #line 1672 "configure"
1672 #include "confdefs.h"
1673 #include <sys/types.h>
1674 #if STDC_HEADERS
1675 #include <stdlib.h>
1676 #endif
1678 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1679 egrep "dev_t" >/dev/null 2>&1; then
1680 rm -rf conftest*
1681 ac_cv_type_dev_t=yes
1682 else
1683 rm -rf conftest*
1684 ac_cv_type_dev_t=no
1686 rm -f conftest*
1689 echo "$ac_t""$ac_cv_type_dev_t" 1>&6
1690 if test $ac_cv_type_dev_t = no; then
1691 cat >> confdefs.h <<\EOF
1692 #define dev_t unsigned long
1697 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
1698 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
1699 echo $ac_n "(cached) $ac_c" 1>&6
1700 else
1701 cat > conftest.$ac_ext <<EOF
1702 #line 1703 "configure"
1703 #include "confdefs.h"
1704 #include <sys/types.h>
1705 #include <sys/stat.h>
1706 int main() { return 0; }
1707 int t() {
1708 struct stat s; s.st_blocks;
1709 ; return 0; }
1711 if eval $ac_compile; then
1712 rm -rf conftest*
1713 ac_cv_struct_st_blocks=yes
1714 else
1715 rm -rf conftest*
1716 ac_cv_struct_st_blocks=no
1718 rm -f conftest*
1722 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
1723 if test $ac_cv_struct_st_blocks = yes; then
1724 cat >> confdefs.h <<\EOF
1725 #define HAVE_ST_BLOCKS 1
1728 else
1729 LIBOBJS="$LIBOBJS fileblocks.o"
1732 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
1733 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
1734 echo $ac_n "(cached) $ac_c" 1>&6
1735 else
1736 cat > conftest.$ac_ext <<EOF
1737 #line 1738 "configure"
1738 #include "confdefs.h"
1739 #include <sys/types.h>
1740 #include <sys/stat.h>
1741 int main() { return 0; }
1742 int t() {
1743 struct stat s; s.st_rdev;
1744 ; return 0; }
1746 if eval $ac_compile; then
1747 rm -rf conftest*
1748 ac_cv_struct_st_rdev=yes
1749 else
1750 rm -rf conftest*
1751 ac_cv_struct_st_rdev=no
1753 rm -f conftest*
1757 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
1758 if test $ac_cv_struct_st_rdev = yes; then
1759 cat >> confdefs.h <<\EOF
1760 #define HAVE_ST_RDEV 1
1765 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
1766 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
1767 echo $ac_n "(cached) $ac_c" 1>&6
1768 else
1769 cat > conftest.$ac_ext <<EOF
1770 #line 1771 "configure"
1771 #include "confdefs.h"
1772 #include <sys/types.h>
1773 #include <time.h>
1774 int main() { return 0; }
1775 int t() {
1776 struct tm *tp; tp->tm_sec;
1777 ; return 0; }
1779 if eval $ac_compile; then
1780 rm -rf conftest*
1781 ac_cv_struct_tm=time.h
1782 else
1783 rm -rf conftest*
1784 ac_cv_struct_tm=sys/time.h
1786 rm -f conftest*
1790 echo "$ac_t""$ac_cv_struct_tm" 1>&6
1791 if test $ac_cv_struct_tm = sys/time.h; then
1792 cat >> confdefs.h <<\EOF
1793 #define TM_IN_SYS_TIME 1
1798 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
1799 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
1800 echo $ac_n "(cached) $ac_c" 1>&6
1801 else
1802 cat > conftest.$ac_ext <<EOF
1803 #line 1804 "configure"
1804 #include "confdefs.h"
1805 #include <sys/types.h>
1806 #include <$ac_cv_struct_tm>
1807 int main() { return 0; }
1808 int t() {
1809 struct tm tm; tm.tm_zone;
1810 ; return 0; }
1812 if eval $ac_compile; then
1813 rm -rf conftest*
1814 ac_cv_struct_tm_zone=yes
1815 else
1816 rm -rf conftest*
1817 ac_cv_struct_tm_zone=no
1819 rm -f conftest*
1823 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
1824 if test "$ac_cv_struct_tm_zone" = yes; then
1825 cat >> confdefs.h <<\EOF
1826 #define HAVE_TM_ZONE 1
1829 else
1830 echo $ac_n "checking for tzname""... $ac_c" 1>&6
1831 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
1832 echo $ac_n "(cached) $ac_c" 1>&6
1833 else
1834 cat > conftest.$ac_ext <<EOF
1835 #line 1836 "configure"
1836 #include "confdefs.h"
1837 #include <time.h>
1838 #ifndef tzname /* For SGI. */
1839 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
1840 #endif
1841 int main() { return 0; }
1842 int t() {
1843 atoi(*tzname);
1844 ; return 0; }
1846 if eval $ac_link; then
1847 rm -rf conftest*
1848 ac_cv_var_tzname=yes
1849 else
1850 rm -rf conftest*
1851 ac_cv_var_tzname=no
1853 rm -f conftest*
1857 echo "$ac_t""$ac_cv_var_tzname" 1>&6
1858 if test $ac_cv_var_tzname = yes; then
1859 cat >> confdefs.h <<\EOF
1860 #define HAVE_TZNAME 1
1866 echo $ac_n "checking for working const""... $ac_c" 1>&6
1867 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1868 echo $ac_n "(cached) $ac_c" 1>&6
1869 else
1870 cat > conftest.$ac_ext <<EOF
1871 #line 1872 "configure"
1872 #include "confdefs.h"
1874 int main() { return 0; }
1875 int t() {
1877 /* Ultrix mips cc rejects this. */
1878 typedef int charset[2]; const charset x;
1879 /* SunOS 4.1.1 cc rejects this. */
1880 char const *const *ccp;
1881 char **p;
1882 /* NEC SVR4.0.2 mips cc rejects this. */
1883 struct point {int x, y;};
1884 static struct point const zero = {0,0};
1885 /* AIX XL C 1.02.0.0 rejects this.
1886 It does not let you subtract one const X* pointer from another in an arm
1887 of an if-expression whose if-part is not a constant expression */
1888 const char *g = "string";
1889 ccp = &g + (g ? g-g : 0);
1890 /* HPUX 7.0 cc rejects these. */
1891 ++ccp;
1892 p = (char**) ccp;
1893 ccp = (char const *const *) p;
1894 { /* SCO 3.2v4 cc rejects this. */
1895 char *t;
1896 char const *s = 0 ? (char *) 0 : (char const *) 0;
1898 *t++ = 0;
1900 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1901 int x[] = {25, 17};
1902 const int *foo = &x[0];
1903 ++foo;
1905 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1906 typedef const int *iptr;
1907 iptr p = 0;
1908 ++p;
1910 { /* AIX XL C 1.02.0.0 rejects this saying
1911 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1912 struct s { int j; const int *ap[3]; };
1913 struct s *b; b->j = 5;
1915 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1916 const int foo = 10;
1919 ; return 0; }
1921 if eval $ac_compile; then
1922 rm -rf conftest*
1923 ac_cv_c_const=yes
1924 else
1925 rm -rf conftest*
1926 ac_cv_c_const=no
1928 rm -f conftest*
1932 echo "$ac_t""$ac_cv_c_const" 1>&6
1933 if test $ac_cv_c_const = no; then
1934 cat >> confdefs.h <<\EOF
1935 #define const
1942 for ac_func in memcmp memset mktime stpcpy strdup strftime strspn strstr strtol
1944 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1945 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1946 echo $ac_n "(cached) $ac_c" 1>&6
1947 else
1948 cat > conftest.$ac_ext <<EOF
1949 #line 1950 "configure"
1950 #include "confdefs.h"
1951 /* System header to define __stub macros and hopefully few prototypes,
1952 which can conflict with char $ac_func(); below. */
1953 #include <assert.h>
1954 /* Override any gcc2 internal prototype to avoid an error. */
1955 char $ac_func();
1957 int main() { return 0; }
1958 int t() {
1960 /* The GNU C library defines this for functions which it implements
1961 to always fail with ENOSYS. Some functions are actually named
1962 something starting with __ and the normal name is an alias. */
1963 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1964 choke me
1965 #else
1966 $ac_func();
1967 #endif
1969 ; return 0; }
1971 if eval $ac_link; then
1972 rm -rf conftest*
1973 eval "ac_cv_func_$ac_func=yes"
1974 else
1975 rm -rf conftest*
1976 eval "ac_cv_func_$ac_func=no"
1978 rm -f conftest*
1981 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1982 echo "$ac_t""yes" 1>&6
1984 else
1985 echo "$ac_t""no" 1>&6
1986 LIBOBJS="$LIBOBJS ${ac_func}.o"
1989 done
1991 for ac_func in fchdir getcwd strerror
1993 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1994 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1995 echo $ac_n "(cached) $ac_c" 1>&6
1996 else
1997 cat > conftest.$ac_ext <<EOF
1998 #line 1999 "configure"
1999 #include "confdefs.h"
2000 /* System header to define __stub macros and hopefully few prototypes,
2001 which can conflict with char $ac_func(); below. */
2002 #include <assert.h>
2003 /* Override any gcc2 internal prototype to avoid an error. */
2004 char $ac_func();
2006 int main() { return 0; }
2007 int t() {
2009 /* The GNU C library defines this for functions which it implements
2010 to always fail with ENOSYS. Some functions are actually named
2011 something starting with __ and the normal name is an alias. */
2012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2013 choke me
2014 #else
2015 $ac_func();
2016 #endif
2018 ; return 0; }
2020 if eval $ac_link; then
2021 rm -rf conftest*
2022 eval "ac_cv_func_$ac_func=yes"
2023 else
2024 rm -rf conftest*
2025 eval "ac_cv_func_$ac_func=no"
2027 rm -f conftest*
2030 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2031 echo "$ac_t""yes" 1>&6
2032 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2033 cat >> confdefs.h <<EOF
2034 #define $ac_tr_func 1
2037 else
2038 echo "$ac_t""no" 1>&6
2040 done
2042 # strftime is in -lintl on SCO UNIX.
2043 echo $ac_n "checking for -lintl""... $ac_c" 1>&6
2044 ac_lib_var=`echo intl | tr '.-/+' '___p'`
2045 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2046 echo $ac_n "(cached) $ac_c" 1>&6
2047 else
2048 ac_save_LIBS="$LIBS"
2049 LIBS="-lintl $LIBS"
2050 cat > conftest.$ac_ext <<EOF
2051 #line 2052 "configure"
2052 #include "confdefs.h"
2054 int main() { return 0; }
2055 int t() {
2056 strftime()
2057 ; return 0; }
2059 if eval $ac_link; then
2060 rm -rf conftest*
2061 eval "ac_cv_lib_$ac_lib_var=yes"
2062 else
2063 rm -rf conftest*
2064 eval "ac_cv_lib_$ac_lib_var=no"
2066 rm -f conftest*
2067 LIBS="$ac_save_LIBS"
2070 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2071 echo "$ac_t""yes" 1>&6
2072 LIBS="-lintl $LIBS"
2073 else
2074 echo "$ac_t""no" 1>&6
2077 echo $ac_n "checking for strftime""... $ac_c" 1>&6
2078 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
2079 echo $ac_n "(cached) $ac_c" 1>&6
2080 else
2081 cat > conftest.$ac_ext <<EOF
2082 #line 2083 "configure"
2083 #include "confdefs.h"
2084 /* System header to define __stub macros and hopefully few prototypes,
2085 which can conflict with char strftime(); below. */
2086 #include <assert.h>
2087 /* Override any gcc2 internal prototype to avoid an error. */
2088 char strftime();
2090 int main() { return 0; }
2091 int t() {
2093 /* The GNU C library defines this for functions which it implements
2094 to always fail with ENOSYS. Some functions are actually named
2095 something starting with __ and the normal name is an alias. */
2096 #if defined (__stub_strftime) || defined (__stub___strftime)
2097 choke me
2098 #else
2099 strftime();
2100 #endif
2102 ; return 0; }
2104 if eval $ac_link; then
2105 rm -rf conftest*
2106 eval "ac_cv_func_strftime=yes"
2107 else
2108 rm -rf conftest*
2109 eval "ac_cv_func_strftime=no"
2111 rm -f conftest*
2114 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
2115 echo "$ac_t""yes" 1>&6
2116 cat >> confdefs.h <<\EOF
2117 #define HAVE_STRFTIME 1
2120 else
2121 echo "$ac_t""no" 1>&6
2124 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2125 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2126 echo $ac_n "(cached) $ac_c" 1>&6
2127 else
2128 cat > conftest.$ac_ext <<EOF
2129 #line 2130 "configure"
2130 #include "confdefs.h"
2131 /* System header to define __stub macros and hopefully few prototypes,
2132 which can conflict with char vprintf(); below. */
2133 #include <assert.h>
2134 /* Override any gcc2 internal prototype to avoid an error. */
2135 char vprintf();
2137 int main() { return 0; }
2138 int t() {
2140 /* The GNU C library defines this for functions which it implements
2141 to always fail with ENOSYS. Some functions are actually named
2142 something starting with __ and the normal name is an alias. */
2143 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2144 choke me
2145 #else
2146 vprintf();
2147 #endif
2149 ; return 0; }
2151 if eval $ac_link; then
2152 rm -rf conftest*
2153 eval "ac_cv_func_vprintf=yes"
2154 else
2155 rm -rf conftest*
2156 eval "ac_cv_func_vprintf=no"
2158 rm -f conftest*
2161 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2162 echo "$ac_t""yes" 1>&6
2163 cat >> confdefs.h <<\EOF
2164 #define HAVE_VPRINTF 1
2167 else
2168 echo "$ac_t""no" 1>&6
2171 if test "$ac_cv_func_vprintf" != yes; then
2172 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2173 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2174 echo $ac_n "(cached) $ac_c" 1>&6
2175 else
2176 cat > conftest.$ac_ext <<EOF
2177 #line 2178 "configure"
2178 #include "confdefs.h"
2179 /* System header to define __stub macros and hopefully few prototypes,
2180 which can conflict with char _doprnt(); below. */
2181 #include <assert.h>
2182 /* Override any gcc2 internal prototype to avoid an error. */
2183 char _doprnt();
2185 int main() { return 0; }
2186 int t() {
2188 /* The GNU C library defines this for functions which it implements
2189 to always fail with ENOSYS. Some functions are actually named
2190 something starting with __ and the normal name is an alias. */
2191 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2192 choke me
2193 #else
2194 _doprnt();
2195 #endif
2197 ; return 0; }
2199 if eval $ac_link; then
2200 rm -rf conftest*
2201 eval "ac_cv_func__doprnt=yes"
2202 else
2203 rm -rf conftest*
2204 eval "ac_cv_func__doprnt=no"
2206 rm -f conftest*
2209 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2210 echo "$ac_t""yes" 1>&6
2211 cat >> confdefs.h <<\EOF
2212 #define HAVE_DOPRNT 1
2215 else
2216 echo "$ac_t""no" 1>&6
2221 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2222 # for constant arguments. Useless!
2223 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2224 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2225 echo $ac_n "(cached) $ac_c" 1>&6
2226 else
2227 cat > conftest.$ac_ext <<EOF
2228 #line 2229 "configure"
2229 #include "confdefs.h"
2230 #include <alloca.h>
2231 int main() { return 0; }
2232 int t() {
2233 char *p = alloca(2 * sizeof(int));
2234 ; return 0; }
2236 if eval $ac_link; then
2237 rm -rf conftest*
2238 ac_cv_header_alloca_h=yes
2239 else
2240 rm -rf conftest*
2241 ac_cv_header_alloca_h=no
2243 rm -f conftest*
2247 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2248 if test $ac_cv_header_alloca_h = yes; then
2249 cat >> confdefs.h <<\EOF
2250 #define HAVE_ALLOCA_H 1
2255 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2256 if eval "test \"`echo '$''{'ac_cv_func_alloca'+set}'`\" = set"; then
2257 echo $ac_n "(cached) $ac_c" 1>&6
2258 else
2259 cat > conftest.$ac_ext <<EOF
2260 #line 2261 "configure"
2261 #include "confdefs.h"
2263 #ifdef __GNUC__
2264 # define alloca __builtin_alloca
2265 #else
2266 # if HAVE_ALLOCA_H
2267 # include <alloca.h>
2268 # else
2269 # ifdef _AIX
2270 #pragma alloca
2271 # else
2272 # ifndef alloca /* predefined by HP cc +Olibcalls */
2273 char *alloca ();
2274 # endif
2275 # endif
2276 # endif
2277 #endif
2279 int main() { return 0; }
2280 int t() {
2281 char *p = (char *) alloca(1);
2282 ; return 0; }
2284 if eval $ac_link; then
2285 rm -rf conftest*
2286 ac_cv_func_alloca=yes
2287 else
2288 rm -rf conftest*
2289 ac_cv_func_alloca=no
2291 rm -f conftest*
2295 echo "$ac_t""$ac_cv_func_alloca" 1>&6
2296 if test $ac_cv_func_alloca = yes; then
2297 cat >> confdefs.h <<\EOF
2298 #define HAVE_ALLOCA 1
2303 if test $ac_cv_func_alloca = no; then
2304 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2305 # that cause trouble. Some versions do not even contain alloca or
2306 # contain a buggy version. If you still want to use their alloca,
2307 # use ar to extract alloca.o from them instead of compiling alloca.c.
2308 ALLOCA=alloca.o
2309 cat >> confdefs.h <<\EOF
2310 #define C_ALLOCA 1
2314 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2315 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2316 echo $ac_n "(cached) $ac_c" 1>&6
2317 else
2318 cat > conftest.$ac_ext <<EOF
2319 #line 2320 "configure"
2320 #include "confdefs.h"
2321 #if defined(CRAY) && ! defined(CRAY2)
2322 webecray
2323 #else
2324 wenotbecray
2325 #endif
2328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2329 egrep "webecray" >/dev/null 2>&1; then
2330 rm -rf conftest*
2331 ac_cv_os_cray=yes
2332 else
2333 rm -rf conftest*
2334 ac_cv_os_cray=no
2336 rm -f conftest*
2340 echo "$ac_t""$ac_cv_os_cray" 1>&6
2341 if test $ac_cv_os_cray = yes; then
2342 for ac_func in _getb67 GETB67 getb67; do
2343 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2344 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+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"
2350 /* System header to define __stub macros and hopefully few prototypes,
2351 which can conflict with char $ac_func(); below. */
2352 #include <assert.h>
2353 /* Override any gcc2 internal prototype to avoid an error. */
2354 char $ac_func();
2356 int main() { return 0; }
2357 int t() {
2359 /* The GNU C library defines this for functions which it implements
2360 to always fail with ENOSYS. Some functions are actually named
2361 something starting with __ and the normal name is an alias. */
2362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2363 choke me
2364 #else
2365 $ac_func();
2366 #endif
2368 ; return 0; }
2370 if eval $ac_link; then
2371 rm -rf conftest*
2372 eval "ac_cv_func_$ac_func=yes"
2373 else
2374 rm -rf conftest*
2375 eval "ac_cv_func_$ac_func=no"
2377 rm -f conftest*
2380 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2381 echo "$ac_t""yes" 1>&6
2382 cat >> confdefs.h <<EOF
2383 #define CRAY_STACKSEG_END $ac_func
2386 break
2387 else
2388 echo "$ac_t""no" 1>&6
2391 done
2394 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2395 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2396 echo $ac_n "(cached) $ac_c" 1>&6
2397 else
2398 if test "$cross_compiling" = yes; then
2399 ac_cv_c_stack_direction=0
2400 else
2401 cat > conftest.$ac_ext <<EOF
2402 #line 2403 "configure"
2403 #include "confdefs.h"
2404 find_stack_direction ()
2406 static char *addr = 0;
2407 auto char dummy;
2408 if (addr == 0)
2410 addr = &dummy;
2411 return find_stack_direction ();
2413 else
2414 return (&dummy > addr) ? 1 : -1;
2416 main ()
2418 exit (find_stack_direction() < 0);
2421 eval $ac_link
2422 if test -s conftest && (./conftest; exit) 2>/dev/null; then
2423 ac_cv_c_stack_direction=1
2424 else
2425 ac_cv_c_stack_direction=-1
2428 rm -fr conftest*
2431 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2432 cat >> confdefs.h <<EOF
2433 #define STACK_DIRECTION $ac_cv_c_stack_direction
2438 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
2439 echo $ac_n "checking for -lsun""... $ac_c" 1>&6
2440 ac_lib_var=`echo sun | tr '.-/+' '___p'`
2441 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2442 echo $ac_n "(cached) $ac_c" 1>&6
2443 else
2444 ac_save_LIBS="$LIBS"
2445 LIBS="-lsun $LIBS"
2446 cat > conftest.$ac_ext <<EOF
2447 #line 2448 "configure"
2448 #include "confdefs.h"
2450 int main() { return 0; }
2451 int t() {
2452 getmntent()
2453 ; return 0; }
2455 if eval $ac_link; then
2456 rm -rf conftest*
2457 eval "ac_cv_lib_$ac_lib_var=yes"
2458 else
2459 rm -rf conftest*
2460 eval "ac_cv_lib_$ac_lib_var=no"
2462 rm -f conftest*
2463 LIBS="$ac_save_LIBS"
2466 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2467 echo "$ac_t""yes" 1>&6
2468 LIBS="-lsun $LIBS"
2469 else
2470 echo "$ac_t""no" 1>&6
2471 echo $ac_n "checking for -lseq""... $ac_c" 1>&6
2472 ac_lib_var=`echo seq | tr '.-/+' '___p'`
2473 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2474 echo $ac_n "(cached) $ac_c" 1>&6
2475 else
2476 ac_save_LIBS="$LIBS"
2477 LIBS="-lseq $LIBS"
2478 cat > conftest.$ac_ext <<EOF
2479 #line 2480 "configure"
2480 #include "confdefs.h"
2482 int main() { return 0; }
2483 int t() {
2484 getmntent()
2485 ; return 0; }
2487 if eval $ac_link; then
2488 rm -rf conftest*
2489 eval "ac_cv_lib_$ac_lib_var=yes"
2490 else
2491 rm -rf conftest*
2492 eval "ac_cv_lib_$ac_lib_var=no"
2494 rm -f conftest*
2495 LIBS="$ac_save_LIBS"
2498 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2499 echo "$ac_t""yes" 1>&6
2500 LIBS="-lseq $LIBS"
2501 else
2502 echo "$ac_t""no" 1>&6
2503 echo $ac_n "checking for -lgen""... $ac_c" 1>&6
2504 ac_lib_var=`echo gen | tr '.-/+' '___p'`
2505 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2506 echo $ac_n "(cached) $ac_c" 1>&6
2507 else
2508 ac_save_LIBS="$LIBS"
2509 LIBS="-lgen $LIBS"
2510 cat > conftest.$ac_ext <<EOF
2511 #line 2512 "configure"
2512 #include "confdefs.h"
2514 int main() { return 0; }
2515 int t() {
2516 getmntent()
2517 ; return 0; }
2519 if eval $ac_link; then
2520 rm -rf conftest*
2521 eval "ac_cv_lib_$ac_lib_var=yes"
2522 else
2523 rm -rf conftest*
2524 eval "ac_cv_lib_$ac_lib_var=no"
2526 rm -f conftest*
2527 LIBS="$ac_save_LIBS"
2530 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2531 echo "$ac_t""yes" 1>&6
2532 LIBS="-lgen $LIBS"
2533 else
2534 echo "$ac_t""no" 1>&6
2541 echo $ac_n "checking for getmntent""... $ac_c" 1>&6
2542 if eval "test \"`echo '$''{'ac_cv_func_getmntent'+set}'`\" = set"; then
2543 echo $ac_n "(cached) $ac_c" 1>&6
2544 else
2545 cat > conftest.$ac_ext <<EOF
2546 #line 2547 "configure"
2547 #include "confdefs.h"
2548 /* System header to define __stub macros and hopefully few prototypes,
2549 which can conflict with char getmntent(); below. */
2550 #include <assert.h>
2551 /* Override any gcc2 internal prototype to avoid an error. */
2552 char getmntent();
2554 int main() { return 0; }
2555 int t() {
2557 /* The GNU C library defines this for functions which it implements
2558 to always fail with ENOSYS. Some functions are actually named
2559 something starting with __ and the normal name is an alias. */
2560 #if defined (__stub_getmntent) || defined (__stub___getmntent)
2561 choke me
2562 #else
2563 getmntent();
2564 #endif
2566 ; return 0; }
2568 if eval $ac_link; then
2569 rm -rf conftest*
2570 eval "ac_cv_func_getmntent=yes"
2571 else
2572 rm -rf conftest*
2573 eval "ac_cv_func_getmntent=no"
2575 rm -f conftest*
2578 if eval "test \"`echo '$ac_cv_func_'getmntent`\" = yes"; then
2579 echo "$ac_t""yes" 1>&6
2580 cat >> confdefs.h <<\EOF
2581 #define HAVE_GETMNTENT 1
2584 else
2585 echo "$ac_t""no" 1>&6
2588 echo $ac_n "checking whether closedir returns void""... $ac_c" 1>&6
2589 if eval "test \"`echo '$''{'ac_cv_func_closedir_void'+set}'`\" = set"; then
2590 echo $ac_n "(cached) $ac_c" 1>&6
2591 else
2592 if test "$cross_compiling" = yes; then
2593 ac_cv_func_closedir_void=yes
2594 else
2595 cat > conftest.$ac_ext <<EOF
2596 #line 2597 "configure"
2597 #include "confdefs.h"
2598 #include <sys/types.h>
2599 #include <$ac_header_dirent>
2600 int closedir(); main() { exit(closedir(opendir(".")) != 0); }
2602 eval $ac_link
2603 if test -s conftest && (./conftest; exit) 2>/dev/null; then
2604 ac_cv_func_closedir_void=no
2605 else
2606 ac_cv_func_closedir_void=yes
2609 rm -fr conftest*
2612 echo "$ac_t""$ac_cv_func_closedir_void" 1>&6
2613 if test $ac_cv_func_closedir_void = yes; then
2614 cat >> confdefs.h <<\EOF
2615 #define CLOSEDIR_VOID 1
2621 trap '' 1 2 15
2622 cat > confcache <<\EOF
2623 # This file is a shell script that caches the results of configure
2624 # tests run on this system so they can be shared between configure
2625 # scripts and configure runs. It is not useful on other systems.
2626 # If it contains results you don't want to keep, you may remove or edit it.
2628 # By default, configure uses ./config.cache as the cache file,
2629 # creating it if it does not exist already. You can give configure
2630 # the --cache-file=FILE option to use a different cache file; that is
2631 # what configure does when it calls configure scripts in
2632 # subdirectories, so they share the cache.
2633 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2634 # config.status only pays attention to the cache file if you give it the
2635 # --recheck option to rerun configure.
2638 # Ultrix sh set writes to stderr and can't be redirected directly,
2639 # and sets the high bit in the cache file unless we assign to the vars.
2640 (set) 2>&1 |
2641 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
2642 >> confcache
2643 if cmp -s $cache_file confcache; then
2645 else
2646 if test -w $cache_file; then
2647 echo "updating cache $cache_file"
2648 cat confcache > $cache_file
2649 else
2650 echo "not updating unwritable cache $cache_file"
2653 rm -f confcache
2655 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2657 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2658 # Let make expand exec_prefix.
2659 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2661 # Any assignment to VPATH causes Sun make to only execute
2662 # the first set of double-colon rules, so remove it if not needed.
2663 # If there is a colon in the path, we need to keep it.
2664 if test "x$srcdir" = x.; then
2665 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2668 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2670 DEFS=-DHAVE_CONFIG_H
2672 # Without the "./", some shells look in PATH for config.status.
2673 : ${CONFIG_STATUS=./config.status}
2675 echo creating $CONFIG_STATUS
2676 rm -f $CONFIG_STATUS
2677 cat > $CONFIG_STATUS <<EOF
2678 #! /bin/sh
2679 # Generated automatically by configure.
2680 # Run this file to recreate the current configuration.
2681 # This directory was configured as follows,
2682 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2684 # $0 $ac_configure_args
2686 # Compiler output produced by configure, useful for debugging
2687 # configure, is in ./config.log if it exists.
2689 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2690 for ac_option
2692 case "\$ac_option" in
2693 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2694 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2695 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2696 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2697 echo "$CONFIG_STATUS generated by autoconf version 2.7"
2698 exit 0 ;;
2699 -help | --help | --hel | --he | --h)
2700 echo "\$ac_cs_usage"; exit 0 ;;
2701 *) echo "\$ac_cs_usage"; exit 1 ;;
2702 esac
2703 done
2705 ac_given_srcdir=$srcdir
2706 ac_given_INSTALL="$INSTALL"
2708 trap 'rm -fr `echo "Makefile lib/Makefile find/Makefile xargs/Makefile \
2709 locate/Makefile doc/Makefile testsuite/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2711 cat >> $CONFIG_STATUS <<EOF
2713 # Protect against being on the right side of a sed subst in config.status.
2714 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2715 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2716 $ac_vpsub
2717 $extrasub
2718 s%@CFLAGS@%$CFLAGS%g
2719 s%@CPPFLAGS@%$CPPFLAGS%g
2720 s%@CXXFLAGS@%$CXXFLAGS%g
2721 s%@DEFS@%$DEFS%g
2722 s%@LDFLAGS@%$LDFLAGS%g
2723 s%@LIBS@%$LIBS%g
2724 s%@exec_prefix@%$exec_prefix%g
2725 s%@prefix@%$prefix%g
2726 s%@program_transform_name@%$program_transform_name%g
2727 s%@bindir@%$bindir%g
2728 s%@sbindir@%$sbindir%g
2729 s%@libexecdir@%$libexecdir%g
2730 s%@datadir@%$datadir%g
2731 s%@sysconfdir@%$sysconfdir%g
2732 s%@sharedstatedir@%$sharedstatedir%g
2733 s%@localstatedir@%$localstatedir%g
2734 s%@libdir@%$libdir%g
2735 s%@includedir@%$includedir%g
2736 s%@oldincludedir@%$oldincludedir%g
2737 s%@infodir@%$infodir%g
2738 s%@mandir@%$mandir%g
2739 s%@INCLUDES@%$INCLUDES%g
2740 s%@CC@%$CC%g
2741 s%@CPP@%$CPP%g
2742 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2743 s%@INSTALL_DATA@%$INSTALL_DATA%g
2744 s%@RANLIB@%$RANLIB%g
2745 s%@SET_MAKE@%$SET_MAKE%g
2746 s%@LIBOBJS@%$LIBOBJS%g
2747 s%@ALLOCA@%$ALLOCA%g
2749 CEOF
2751 cat >> $CONFIG_STATUS <<EOF
2753 CONFIG_FILES=\${CONFIG_FILES-"Makefile lib/Makefile find/Makefile xargs/Makefile \
2754 locate/Makefile doc/Makefile testsuite/Makefile"}
2756 cat >> $CONFIG_STATUS <<\EOF
2757 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2758 # Support "outfile[:infile]", defaulting infile="outfile.in".
2759 case "$ac_file" in
2760 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
2761 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2762 *) ac_file_in="${ac_file}.in" ;;
2763 esac
2765 # Adjust relative srcdir, etc. for subdirectories.
2767 # Remove last slash and all that follows it. Not all systems have dirname.
2768 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2769 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2770 # The file is in a subdirectory.
2771 test ! -d "$ac_dir" && mkdir "$ac_dir"
2772 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2773 # A "../" for each directory in $ac_dir_suffix.
2774 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2775 else
2776 ac_dir_suffix= ac_dots=
2779 case "$ac_given_srcdir" in
2780 .) srcdir=.
2781 if test -z "$ac_dots"; then top_srcdir=.
2782 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2783 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2784 *) # Relative path.
2785 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2786 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2787 esac
2789 case "$ac_given_INSTALL" in
2790 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2791 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2792 esac
2793 echo creating "$ac_file"
2794 rm -f "$ac_file"
2795 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2796 case "$ac_file" in
2797 *Makefile*) ac_comsub="1i\\
2798 # $configure_input" ;;
2799 *) ac_comsub= ;;
2800 esac
2801 sed -e "$ac_comsub
2802 s%@configure_input@%$configure_input%g
2803 s%@srcdir@%$srcdir%g
2804 s%@top_srcdir@%$top_srcdir%g
2805 s%@INSTALL@%$INSTALL%g
2806 " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
2807 fi; done
2808 rm -f conftest.subs
2810 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2811 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2813 # ac_d sets the value in "#define NAME VALUE" lines.
2814 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2815 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2816 ac_dC='\3'
2817 ac_dD='%g'
2818 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2819 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2820 ac_uB='\([ ]\)%\1#\2define\3'
2821 ac_uC=' '
2822 ac_uD='\4%g'
2823 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2824 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2825 ac_eB='$%\1#\2define\3'
2826 ac_eC=' '
2827 ac_eD='%g'
2829 CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"}
2830 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2831 # Support "outfile[:infile]", defaulting infile="outfile.in".
2832 case "$ac_file" in
2833 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
2834 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2835 *) ac_file_in="${ac_file}.in" ;;
2836 esac
2838 echo creating $ac_file
2840 rm -f conftest.frag conftest.in conftest.out
2841 cp $ac_given_srcdir/$ac_file_in conftest.in
2845 # Transform confdefs.h into a sed script conftest.vals that substitutes
2846 # the proper values into config.h.in to produce config.h. And first:
2847 # Protect against being on the right side of a sed subst in config.status.
2848 # Protect against being in an unquoted here document in config.status.
2849 rm -f conftest.vals
2850 cat > conftest.hdr <<\EOF
2851 s/[\\&%]/\\&/g
2852 s%[\\$`]%\\&%g
2853 s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2854 s%ac_d%ac_u%gp
2855 s%ac_u%ac_e%gp
2857 sed -n -f conftest.hdr confdefs.h > conftest.vals
2858 rm -f conftest.hdr
2860 # This sed command replaces #undef with comments. This is necessary, for
2861 # example, in the case of _POSIX_SOURCE, which is predefined and required
2862 # on some systems where configure will not decide to define it.
2863 cat >> conftest.vals <<\EOF
2864 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2867 # Break up conftest.vals because some shells have a limit on
2868 # the size of here documents, and old seds have small limits too.
2869 # Maximum number of lines to put in a single here document.
2870 ac_max_here_lines=12
2872 rm -f conftest.tail
2873 while :
2875 ac_lines=`grep -c . conftest.vals`
2876 # grep -c gives empty output for an empty file on some AIX systems.
2877 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2878 # Write a limited-size here document to conftest.frag.
2879 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2880 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2881 echo 'CEOF
2882 sed -f conftest.frag conftest.in > conftest.out
2883 rm -f conftest.in
2884 mv conftest.out conftest.in
2885 ' >> $CONFIG_STATUS
2886 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2887 rm -f conftest.vals
2888 mv conftest.tail conftest.vals
2889 done
2890 rm -f conftest.vals
2892 cat >> $CONFIG_STATUS <<\EOF
2893 rm -f conftest.frag conftest.h
2894 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2895 cat conftest.in >> conftest.h
2896 rm -f conftest.in
2897 if cmp -s $ac_file conftest.h 2>/dev/null; then
2898 echo "$ac_file is unchanged"
2899 rm -f conftest.h
2900 else
2901 rm -f $ac_file
2902 mv conftest.h $ac_file
2904 fi; done
2907 date > stamp-h
2908 exit 0
2910 chmod +x $CONFIG_STATUS
2911 rm -fr confdefs* $ac_clean_files
2912 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1