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.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --enable-id-cache cache all UIDs & GIDs; avoid if using NIS or Hesiod"
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.
23 cache_file
=.
/config.cache
32 program_transform_name
=s
,x
,x
,
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.
61 # If the previous option needs an argument, assign it.
62 if test -n "$ac_prev"; then
63 eval "$ac_prev=\$ac_option"
69 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
73 # Accept the important Cygnus configure options, so we can diagnose typos.
77 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
79 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
80 bindir
="$ac_optarg" ;;
82 -build |
--build |
--buil |
--bui |
--bu)
84 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
87 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
88 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
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)
96 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
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'`
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.
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.
139 Usage: configure [options] [host]
140 Options: [defaults in brackets after descriptions]
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
150 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
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
157 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
158 --sharedstatedir=DIR modifiable architecture-independent data in DIR
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
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"
190 -host |
--host |
--hos |
--ho)
192 -host=* |
--host=* |
--hos=* |
--ho=*)
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)
204 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
205 infodir
="$ac_optarg" ;;
207 -libdir |
--libdir |
--libdi |
--libd)
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)
230 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
231 mandir
="$ac_optarg" ;;
234 # Obsolete; use --without-fp.
237 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
241 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
242 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
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)
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)
294 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
296 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
298 sbindir
="$ac_optarg" ;;
300 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
301 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
302 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
304 ac_prev
=sharedstatedir
;;
305 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
306 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
307 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
309 sharedstatedir
="$ac_optarg" ;;
311 -site |
--site |
--sit)
313 -site=* |
--site=* |
--sit=*)
316 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
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)
330 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
331 target
="$ac_optarg" ;;
333 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
336 -version |
--version |
--versio |
--versi |
--vers)
337 echo "configure generated by autoconf version 2.7"
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'`
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" ;;
363 # Obsolete; use --with-x.
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; }
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:
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
418 This file contains any messages produced by compilers while
419 running configure, to aid debugging if configure makes a mistake.
422 # Strip out --no-create and --no-recursion so they do not pile up.
423 # Also quote any args containing shell metacharacters.
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" ;;
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.
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.
459 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
460 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
462 if test ! -r $srcdir/$ac_unique_file; then
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; }
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"
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"
492 if test -r "$cache_file"; then
493 echo "loading cache $cache_file"
496 echo "creating cache $cache_file"
501 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
502 ac_cpp
='echo $CPP $CPPFLAGS 1>&5;
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
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
533 # Check whether --with-afs or --without-afs was given.
534 if test "${with_afs+set}" = set; then
536 cat >> confdefs.h
<<\EOF
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
=
547 # Double any \ or $. echo might interpret backslashes.
548 cat <<\EOF_SED
> conftestsed
549 s
,\\,\\\\,g
; s
,\$
,$$
,g
551 program_transform_name
="`echo $program_transform_name|sed -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
570 if test -n "$CC"; then
571 ac_cv_prog_CC
="$CC" # Let the user override the test.
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
582 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC
="cc"
586 if test -n "$CC"; then
587 echo "$ac_t""$CC" 1>&6
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
597 cat > conftest.c
<<EOF
602 if ${CC-cc} -E conftest.c
2>&5 |
egrep yes >/dev
/null
2>&1; then
609 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
610 if test $ac_cv_prog_gcc = yes; then
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
617 echo 'void f(){}' > conftest.c
618 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
627 echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
628 if test $ac_cv_prog_gcc_g = yes; then
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
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
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.
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"
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
666 CPP
="${CC-cc} -E -traditional-cpp"
667 cat > conftest.
$ac_ext <<EOF
668 #line 669 "configure"
669 #include "confdefs.h"
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
685 ac_cv_prog_CPP
="$CPP"
687 CPP
="$ac_cv_prog_CPP"
689 ac_cv_prog_CPP
="$CPP"
691 echo "$ac_t""$CPP" 1>&6
694 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
695 if test -f $ac_dir/install-sh
; then
697 ac_install_sh
="$ac_aux_dir/install-sh -c"
699 elif test -f $ac_dir/install.sh
; then
701 ac_install_sh
="$ac_aux_dir/install.sh -c"
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
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
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.
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.
742 ac_cv_path_install
="$ac_dir/$ac_prog -c"
753 if test "${ac_cv_path_install+set}" = set; then
754 INSTALL
="$ac_cv_path_install"
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
777 if test -n "$RANLIB"; then
778 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
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"
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
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
804 cat > conftestmake
<<\EOF
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
813 eval ac_cv_prog_make_
${ac_make}_set
=no
817 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
818 echo "$ac_t""yes" 1>&6
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"
835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
836 egrep "yes" >/dev
/null
2>&1; then
838 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
839 #define _ALL_SOURCE 1
844 echo "$ac_t""no" 1>&6
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
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
863 eval "ac_cv_header_$ac_safe=yes"
867 eval "ac_cv_header_$ac_safe=no"
871 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
872 echo "$ac_t""yes" 1>&6
875 echo "$ac_t""no" 1>&6
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
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
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
910 echo "$ac_t""no" 1>&6
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
922 cat > conftest.
$ac_ext <<EOF
923 #line 924 "configure"
924 #include "confdefs.h"
926 int main() { return 0; }
931 if eval $ac_link; then
933 eval "ac_cv_lib_$ac_lib_var=yes"
936 eval "ac_cv_lib_$ac_lib_var=no"
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
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
963 cat > conftest.
$ac_ext <<EOF
964 #line 965 "configure"
965 #include "confdefs.h"
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
972 eval "ac_cv_header_$ac_safe=yes"
976 eval "ac_cv_header_$ac_safe=no"
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
988 echo "$ac_t""no" 1>&6
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
997 if test "$cross_compiling" = yes; then
1000 cat > conftest.
$ac_ext <<EOF
1001 #line 1002 "configure"
1002 #include "confdefs.h"
1006 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
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
1022 cat > conftest.
$ac_ext <<EOF
1023 #line 1024 "configure"
1024 #include "confdefs.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
1034 ac_cv_header_stdc
=yes
1038 ac_cv_header_stdc
=no
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"
1049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1050 egrep "memchr" >/dev
/null
2>&1; then
1054 ac_cv_header_stdc
=no
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"
1067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1068 egrep "free" >/dev
/null
2>&1; then
1072 ac_cv_header_stdc
=no
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
1083 cat > conftest.
$ac_ext <<EOF
1084 #line 1085 "configure"
1085 #include "confdefs.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);
1096 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
1099 ac_cv_header_stdc
=no
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
1118 cat > conftest.
$ac_ext <<EOF
1119 #line 1120 "configure"
1120 #include "confdefs.h"
1121 #include <sys/types.h>
1122 int main() { return 0; }
1124 return makedev(0, 0);
1127 if eval $ac_link; then
1129 ac_cv_header_sys_types_h_makedev
=yes
1132 ac_cv_header_sys_types_h_makedev
=no
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
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
1156 eval "ac_cv_header_$ac_safe=yes"
1160 eval "ac_cv_header_$ac_safe=no"
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
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
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
1190 eval "ac_cv_header_$ac_safe=yes"
1194 eval "ac_cv_header_$ac_safe=no"
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
1205 echo "$ac_t""no" 1>&6
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
1219 cat > conftest.
$ac_ext <<EOF
1220 #line 1221 "configure"
1221 #include "confdefs.h"
1222 #include <sys/types.h>
1224 int main() { return 0; }
1229 if eval $ac_compile; then
1231 eval "ac_cv_header_dirent_$ac_safe=yes"
1234 eval "ac_cv_header_dirent_$ac_safe=no"
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
1247 echo "$ac_t""no" 1>&6
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
1257 ac_save_LIBS
="$LIBS"
1259 cat > conftest.
$ac_ext <<EOF
1260 #line 1261 "configure"
1261 #include "confdefs.h"
1263 int main() { return 0; }
1268 if eval $ac_link; then
1270 eval "ac_cv_lib_$ac_lib_var=yes"
1273 eval "ac_cv_lib_$ac_lib_var=no"
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
1283 echo "$ac_t""no" 1>&6
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
1292 ac_save_LIBS
="$LIBS"
1294 cat > conftest.
$ac_ext <<EOF
1295 #line 1296 "configure"
1296 #include "confdefs.h"
1298 int main() { return 0; }
1303 if eval $ac_link; then
1305 eval "ac_cv_lib_$ac_lib_var=yes"
1308 eval "ac_cv_lib_$ac_lib_var=no"
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
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
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)
1339 #if defined(S_ISBLK) && defined(S_IFCHR)
1340 # if S_ISBLK (S_IFCHR)
1345 #if defined(S_ISLNK) && defined(S_IFREG)
1346 # if S_ISLNK (S_IFREG)
1351 #if defined(S_ISSOCK) && defined(S_IFREG)
1352 # if S_ISSOCK (S_IFREG)
1358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1359 egrep "You lose" >/dev
/null
2>&1; then
1361 ac_cv_header_stat_broken
=yes
1364 ac_cv_header_stat_broken
=no
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
1382 cat > conftest.
$ac_ext <<EOF
1383 #line 1384 "configure"
1384 #include "confdefs.h"
1385 #include <sys/types.h>
1386 #include <sys/wait.h>
1388 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1391 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1393 int main() { return 0; }
1397 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1400 if eval $ac_compile; then
1402 ac_cv_header_sys_wait_h
=yes
1405 ac_cv_header_sys_wait_h
=no
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
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
1433 cat >> confdefs.h
<<\EOF
1434 #define FSTYPE_STATVFS 1
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
1452 cat >> confdefs.h
<<\EOF
1453 #define FSTYPE_USG_STATFS 1
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
1472 cat >> confdefs.h
<<\EOF
1473 #define FSTYPE_AIX_STATFS 1
1481 if test $fstype = no
; then
1482 cat > conftest.
$ac_ext <<EOF
1483 #line 1484 "configure"
1484 #include "confdefs.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
1491 cat >> confdefs.h
<<\EOF
1492 #define FSTYPE_MNTENT 1
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
1509 cat >> confdefs.h
<<\EOF
1510 #define FSTYPE_STATFS 1
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
1528 cat >> confdefs.h
<<\EOF
1529 #define FSTYPE_GETMNT 1
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
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
1552 ac_cv_type_uid_t
=yes
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
1567 cat >> confdefs.h
<<\EOF
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
1577 cat > conftest.
$ac_ext <<EOF
1578 #line 1579 "configure"
1579 #include "confdefs.h"
1580 #include <sys/types.h>
1585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1586 egrep "size_t" >/dev
/null
2>&1; then
1588 ac_cv_type_size_t
=yes
1591 ac_cv_type_size_t
=no
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
1608 cat > conftest.
$ac_ext <<EOF
1609 #line 1610 "configure"
1610 #include "confdefs.h"
1611 #include <sys/types.h>
1616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1617 egrep "pid_t" >/dev
/null
2>&1; then
1619 ac_cv_type_pid_t
=yes
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
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
1639 cat > conftest.
$ac_ext <<EOF
1640 #line 1641 "configure"
1641 #include "confdefs.h"
1642 #include <sys/types.h>
1647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1648 egrep "ino_t" >/dev
/null
2>&1; then
1650 ac_cv_type_ino_t
=yes
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
1670 cat > conftest.
$ac_ext <<EOF
1671 #line 1672 "configure"
1672 #include "confdefs.h"
1673 #include <sys/types.h>
1678 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1679 egrep "dev_t" >/dev
/null
2>&1; then
1681 ac_cv_type_dev_t
=yes
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
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; }
1708 struct stat s; s.st_blocks;
1711 if eval $ac_compile; then
1713 ac_cv_struct_st_blocks
=yes
1716 ac_cv_struct_st_blocks
=no
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
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
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; }
1743 struct stat s; s.st_rdev;
1746 if eval $ac_compile; then
1748 ac_cv_struct_st_rdev
=yes
1751 ac_cv_struct_st_rdev
=no
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
1769 cat > conftest.
$ac_ext <<EOF
1770 #line 1771 "configure"
1771 #include "confdefs.h"
1772 #include <sys/types.h>
1774 int main() { return 0; }
1776 struct tm *tp; tp->tm_sec;
1779 if eval $ac_compile; then
1781 ac_cv_struct_tm
=time.h
1784 ac_cv_struct_tm
=sys
/time.h
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
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; }
1809 struct tm tm; tm.tm_zone;
1812 if eval $ac_compile; then
1814 ac_cv_struct_tm_zone
=yes
1817 ac_cv_struct_tm_zone
=no
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
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
1834 cat > conftest.
$ac_ext <<EOF
1835 #line 1836 "configure"
1836 #include "confdefs.h"
1838 #ifndef tzname /* For SGI. */
1839 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
1841 int main() { return 0; }
1846 if eval $ac_link; then
1848 ac_cv_var_tzname
=yes
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
1870 cat > conftest.
$ac_ext <<EOF
1871 #line 1872 "configure"
1872 #include "confdefs.h"
1874 int main() { return 0; }
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;
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. */
1893 ccp = (char const *const *) p;
1894 { /* SCO 3.2v4 cc rejects this. */
1896 char const *s = 0 ? (char *) 0 : (char const *) 0;
1900 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1902 const int *foo = &x[0];
1905 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1906 typedef const int *iptr;
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 */
1921 if eval $ac_compile; then
1932 echo "$ac_t""$ac_cv_c_const" 1>&6
1933 if test $ac_cv_c_const = no
; then
1934 cat >> confdefs.h
<<\EOF
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
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. */
1954 /* Override any gcc2 internal prototype to avoid an error. */
1957 int main() { return 0; }
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)
1971 if eval $ac_link; then
1973 eval "ac_cv_func_$ac_func=yes"
1976 eval "ac_cv_func_$ac_func=no"
1981 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1982 echo "$ac_t""yes" 1>&6
1985 echo "$ac_t""no" 1>&6
1986 LIBOBJS
="$LIBOBJS ${ac_func}.o"
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
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. */
2003 /* Override any gcc2 internal prototype to avoid an error. */
2006 int main() { return 0; }
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)
2020 if eval $ac_link; then
2022 eval "ac_cv_func_$ac_func=yes"
2025 eval "ac_cv_func_$ac_func=no"
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
2038 echo "$ac_t""no" 1>&6
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
2048 ac_save_LIBS
="$LIBS"
2050 cat > conftest.
$ac_ext <<EOF
2051 #line 2052 "configure"
2052 #include "confdefs.h"
2054 int main() { return 0; }
2059 if eval $ac_link; then
2061 eval "ac_cv_lib_$ac_lib_var=yes"
2064 eval "ac_cv_lib_$ac_lib_var=no"
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
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
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. */
2087 /* Override any gcc2 internal prototype to avoid an error. */
2090 int main() { return 0; }
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)
2104 if eval $ac_link; then
2106 eval "ac_cv_func_strftime=yes"
2109 eval "ac_cv_func_strftime=no"
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
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
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. */
2134 /* Override any gcc2 internal prototype to avoid an error. */
2137 int main() { return 0; }
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)
2151 if eval $ac_link; then
2153 eval "ac_cv_func_vprintf=yes"
2156 eval "ac_cv_func_vprintf=no"
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
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
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. */
2182 /* Override any gcc2 internal prototype to avoid an error. */
2185 int main() { return 0; }
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)
2199 if eval $ac_link; then
2201 eval "ac_cv_func__doprnt=yes"
2204 eval "ac_cv_func__doprnt=no"
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
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
2227 cat > conftest.
$ac_ext <<EOF
2228 #line 2229 "configure"
2229 #include "confdefs.h"
2231 int main() { return 0; }
2233 char *p = alloca(2 * sizeof(int));
2236 if eval $ac_link; then
2238 ac_cv_header_alloca_h
=yes
2241 ac_cv_header_alloca_h
=no
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
2259 cat > conftest.
$ac_ext <<EOF
2260 #line 2261 "configure"
2261 #include "confdefs.h"
2264 # define alloca __builtin_alloca
2267 # include <alloca.h>
2272 # ifndef alloca /* predefined by HP cc +Olibcalls */
2279 int main() { return 0; }
2281 char *p = (char *) alloca(1);
2284 if eval $ac_link; then
2286 ac_cv_func_alloca
=yes
2289 ac_cv_func_alloca
=no
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.
2309 cat >> confdefs.h
<<\EOF
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
2318 cat > conftest.
$ac_ext <<EOF
2319 #line 2320 "configure"
2320 #include "confdefs.h"
2321 #if defined(CRAY) && ! defined(CRAY2)
2328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2329 egrep "webecray" >/dev
/null
2>&1; then
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
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. */
2353 /* Override any gcc2 internal prototype to avoid an error. */
2356 int main() { return 0; }
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)
2370 if eval $ac_link; then
2372 eval "ac_cv_func_$ac_func=yes"
2375 eval "ac_cv_func_$ac_func=no"
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
2388 echo "$ac_t""no" 1>&6
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
2398 if test "$cross_compiling" = yes; then
2399 ac_cv_c_stack_direction
=0
2401 cat > conftest.
$ac_ext <<EOF
2402 #line 2403 "configure"
2403 #include "confdefs.h"
2404 find_stack_direction ()
2406 static char *addr = 0;
2411 return find_stack_direction ();
2414 return (&dummy > addr) ? 1 : -1;
2418 exit (find_stack_direction() < 0);
2422 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
2423 ac_cv_c_stack_direction
=1
2425 ac_cv_c_stack_direction
=-1
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
2444 ac_save_LIBS
="$LIBS"
2446 cat > conftest.
$ac_ext <<EOF
2447 #line 2448 "configure"
2448 #include "confdefs.h"
2450 int main() { return 0; }
2455 if eval $ac_link; then
2457 eval "ac_cv_lib_$ac_lib_var=yes"
2460 eval "ac_cv_lib_$ac_lib_var=no"
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
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
2476 ac_save_LIBS
="$LIBS"
2478 cat > conftest.
$ac_ext <<EOF
2479 #line 2480 "configure"
2480 #include "confdefs.h"
2482 int main() { return 0; }
2487 if eval $ac_link; then
2489 eval "ac_cv_lib_$ac_lib_var=yes"
2492 eval "ac_cv_lib_$ac_lib_var=no"
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
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
2508 ac_save_LIBS
="$LIBS"
2510 cat > conftest.
$ac_ext <<EOF
2511 #line 2512 "configure"
2512 #include "confdefs.h"
2514 int main() { return 0; }
2519 if eval $ac_link; then
2521 eval "ac_cv_lib_$ac_lib_var=yes"
2524 eval "ac_cv_lib_$ac_lib_var=no"
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
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
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. */
2551 /* Override any gcc2 internal prototype to avoid an error. */
2554 int main() { return 0; }
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)
2568 if eval $ac_link; then
2570 eval "ac_cv_func_getmntent=yes"
2573 eval "ac_cv_func_getmntent=no"
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
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
2592 if test "$cross_compiling" = yes; then
2593 ac_cv_func_closedir_void
=yes
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); }
2603 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
2604 ac_cv_func_closedir_void
=no
2606 ac_cv_func_closedir_void
=yes
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
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.
2641 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
2643 if cmp -s $cache_file confcache
; then
2646 if test -w $cache_file; then
2647 echo "updating cache $cache_file"
2648 cat confcache
> $cache_file
2650 echo "not updating unwritable cache $cache_file"
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
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]"
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"
2699 -help | --help | --hel | --he | --h)
2700 echo "\$ac_cs_usage"; exit 0 ;;
2701 *) echo "\$ac_cs_usage"; exit 1 ;;
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
2718 s%@CFLAGS@%$CFLAGS%g
2719 s%@CPPFLAGS@%$CPPFLAGS%g
2720 s%@CXXFLAGS@%$CXXFLAGS%g
2722 s%@LDFLAGS@%$LDFLAGS%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
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
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".
2760 *:*) ac_file_in
=`echo "$ac_file"|sed 's%.*:%%'`
2761 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2762 *) ac_file_in
="${ac_file}.in" ;;
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'`
2776 ac_dir_suffix
= ac_dots
=
2779 case "$ac_given_srcdir" in
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" ;;
2785 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2786 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
2789 case "$ac_given_INSTALL" in
2790 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
2791 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
2793 echo creating
"$ac_file"
2795 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2797 *Makefile
*) ac_comsub
="1i\\
2798 # $configure_input" ;;
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
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'
2818 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2819 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2820 ac_uB
='\([ ]\)%\1#\2define\3'
2823 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2824 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2825 ac_eB
='$%\1#\2define\3'
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".
2833 *:*) ac_file_in
=`echo "$ac_file"|sed 's%.*:%%'`
2834 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2835 *) ac_file_in
="${ac_file}.in" ;;
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.
2850 cat > conftest.hdr
<<\EOF
2853 s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2857 sed -n -f conftest.hdr confdefs.h > conftest.vals
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
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
2882 sed -f conftest.frag conftest.in > conftest.out
2884 mv conftest.out conftest.in
2886 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2888 mv conftest.tail 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
2897 if cmp -s $ac_file conftest.h 2>/dev/null; then
2898 echo "$ac_file is unchanged"
2902 mv conftest.h $ac_file
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