3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.10
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 # Initialize some variables set by options.
16 # The variables have the same names as the options, with
17 # dashes changed to underlines.
19 cache_file
=.
/config.cache
28 program_transform_name
=s
,x
,x
,
36 bindir
='${exec_prefix}/bin'
37 sbindir
='${exec_prefix}/sbin'
38 libexecdir
='${exec_prefix}/libexec'
39 datadir
='${prefix}/share'
40 sysconfdir
='${prefix}/etc'
41 sharedstatedir
='${prefix}/com'
42 localstatedir
='${prefix}/var'
43 libdir
='${exec_prefix}/lib'
44 includedir
='${prefix}/include'
45 oldincludedir
='/usr/include'
46 infodir
='${prefix}/info'
47 mandir
='${prefix}/man'
49 # Initialize some other variables.
57 # If the previous option needs an argument, assign it.
58 if test -n "$ac_prev"; then
59 eval "$ac_prev=\$ac_option"
65 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
69 # Accept the important Cygnus configure options, so we can diagnose typos.
73 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
75 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
76 bindir
="$ac_optarg" ;;
78 -build |
--build |
--buil |
--bui |
--bu)
80 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
83 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
84 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
86 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
87 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
88 cache_file
="$ac_optarg" ;;
90 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
92 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
94 datadir
="$ac_optarg" ;;
96 -disable-* |
--disable-*)
97 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
98 # Reject names that are not valid shell variable names.
99 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
100 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
102 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
103 eval "enable_${ac_feature}=no" ;;
105 -enable-* |
--enable-*)
106 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
107 # Reject names that are not valid shell variable names.
108 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
109 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
111 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
116 eval "enable_${ac_feature}='$ac_optarg'" ;;
118 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
119 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
120 |
--exec |
--exe |
--ex)
121 ac_prev
=exec_prefix
;;
122 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
123 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
124 |
--exec=* |
--exe=* |
--ex=*)
125 exec_prefix
="$ac_optarg" ;;
127 -gas |
--gas |
--ga |
--g)
128 # Obsolete; use --with-gas.
131 -help |
--help |
--hel |
--he)
132 # Omit some internal or obsolete options to make the list less imposing.
133 # This message is too long to be a string in the A/UX 3.1 sh.
135 Usage: configure [options] [host]
136 Options: [defaults in brackets after descriptions]
138 --cache-file=FILE cache test results in FILE
139 --help print this message
140 --no-create do not create output files
141 --quiet, --silent do not print \`checking...' messages
142 --version print the version of autoconf that created configure
143 Directory and file names:
144 --prefix=PREFIX install architecture-independent files in PREFIX
146 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
148 --bindir=DIR user executables in DIR [EPREFIX/bin]
149 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
150 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
151 --datadir=DIR read-only architecture-independent data in DIR
153 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
154 --sharedstatedir=DIR modifiable architecture-independent data in DIR
156 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
157 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
158 --includedir=DIR C header files in DIR [PREFIX/include]
159 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
160 --infodir=DIR info documentation in DIR [PREFIX/info]
161 --mandir=DIR man documentation in DIR [PREFIX/man]
162 --srcdir=DIR find the sources in DIR [configure dir or ..]
163 --program-prefix=PREFIX prepend PREFIX to installed program names
164 --program-suffix=SUFFIX append SUFFIX to installed program names
165 --program-transform-name=PROGRAM
166 run sed PROGRAM on installed program names
170 --build=BUILD configure for building on BUILD [BUILD=HOST]
171 --host=HOST configure for HOST [guessed]
172 --target=TARGET configure for TARGET [TARGET=HOST]
173 Features and packages:
174 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
175 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
176 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
177 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
178 --x-includes=DIR X include files are in DIR
179 --x-libraries=DIR X library files are in DIR
181 if test -n "$ac_help"; then
182 echo "--enable and --with options recognized:$ac_help"
186 -host |
--host |
--hos |
--ho)
188 -host=* |
--host=* |
--hos=* |
--ho=*)
191 -includedir |
--includedir |
--includedi |
--included |
--include \
192 |
--includ |
--inclu |
--incl |
--inc)
193 ac_prev
=includedir
;;
194 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
195 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
196 includedir
="$ac_optarg" ;;
198 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
200 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
201 infodir
="$ac_optarg" ;;
203 -libdir |
--libdir |
--libdi |
--libd)
205 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
206 libdir
="$ac_optarg" ;;
208 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
209 |
--libexe |
--libex |
--libe)
210 ac_prev
=libexecdir
;;
211 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
212 |
--libexe=* |
--libex=* |
--libe=*)
213 libexecdir
="$ac_optarg" ;;
215 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
216 |
--localstate |
--localstat |
--localsta |
--localst \
217 |
--locals |
--local |
--loca |
--loc |
--lo)
218 ac_prev
=localstatedir
;;
219 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
220 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
221 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
222 localstatedir
="$ac_optarg" ;;
224 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
226 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
227 mandir
="$ac_optarg" ;;
230 # Obsolete; use --without-fp.
233 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
237 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
238 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
241 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
242 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
243 |
--oldin |
--oldi |
--old |
--ol |
--o)
244 ac_prev
=oldincludedir
;;
245 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
246 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
247 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
248 oldincludedir
="$ac_optarg" ;;
250 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
252 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
253 prefix
="$ac_optarg" ;;
255 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
256 |
--program-pre |
--program-pr |
--program-p)
257 ac_prev
=program_prefix
;;
258 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
259 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
260 program_prefix
="$ac_optarg" ;;
262 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
263 |
--program-suf |
--program-su |
--program-s)
264 ac_prev
=program_suffix
;;
265 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
266 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
267 program_suffix
="$ac_optarg" ;;
269 -program-transform-name |
--program-transform-name \
270 |
--program-transform-nam |
--program-transform-na \
271 |
--program-transform-n |
--program-transform- \
272 |
--program-transform |
--program-transfor \
273 |
--program-transfo |
--program-transf \
274 |
--program-trans |
--program-tran \
275 |
--progr-tra |
--program-tr |
--program-t)
276 ac_prev
=program_transform_name
;;
277 -program-transform-name=* |
--program-transform-name=* \
278 |
--program-transform-nam=* |
--program-transform-na=* \
279 |
--program-transform-n=* |
--program-transform-=* \
280 |
--program-transform=* |
--program-transfor=* \
281 |
--program-transfo=* |
--program-transf=* \
282 |
--program-trans=* |
--program-tran=* \
283 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
284 program_transform_name
="$ac_optarg" ;;
286 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
287 |
-silent |
--silent |
--silen |
--sile |
--sil)
290 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
292 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
294 sbindir
="$ac_optarg" ;;
296 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
297 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
298 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
300 ac_prev
=sharedstatedir
;;
301 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
302 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
303 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
305 sharedstatedir
="$ac_optarg" ;;
307 -site |
--site |
--sit)
309 -site=* |
--site=* |
--sit=*)
312 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
314 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
315 srcdir
="$ac_optarg" ;;
317 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
318 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
319 ac_prev
=sysconfdir
;;
320 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
321 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
322 sysconfdir
="$ac_optarg" ;;
324 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
326 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
327 target
="$ac_optarg" ;;
329 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
332 -version |
--version |
--versio |
--versi |
--vers)
333 echo "configure generated by autoconf version 2.10"
337 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
338 # Reject names that are not valid shell variable names.
339 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
340 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
342 ac_package
=`echo $ac_package| sed 's/-/_/g'`
347 eval "with_${ac_package}='$ac_optarg'" ;;
349 -without-* |
--without-*)
350 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
351 # Reject names that are not valid shell variable names.
352 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
353 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
355 ac_package
=`echo $ac_package| sed 's/-/_/g'`
356 eval "with_${ac_package}=no" ;;
359 # Obsolete; use --with-x.
362 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
363 |
--x-incl |
--x-inc |
--x-in |
--x-i)
364 ac_prev
=x_includes
;;
365 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
366 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
367 x_includes
="$ac_optarg" ;;
369 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
370 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
371 ac_prev
=x_libraries
;;
372 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
373 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
374 x_libraries
="$ac_optarg" ;;
376 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
380 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
381 echo "configure: warning: $ac_option: invalid host type" 1>&2
383 if test "x$nonopt" != xNONE
; then
384 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
392 if test -n "$ac_prev"; then
393 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
396 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
398 # File descriptor usage:
401 # 2 errors and warnings
402 # 3 some systems may open it to /dev/tty
403 # 4 used on the Kubota Titan
404 # 6 checking for... messages and results
405 # 5 compiler messages saved in config.log
406 if test "$silent" = yes; then
414 This file contains any messages produced by compilers while
415 running configure, to aid debugging if configure makes a mistake.
418 # Strip out --no-create and --no-recursion so they do not pile up.
419 # Also quote any args containing shell metacharacters.
424 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
425 |
--no-cr |
--no-c) ;;
426 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
427 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
428 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
429 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
430 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
435 # Only set LANG and LC_ALL to C if already set.
436 # These must not be set unconditionally because not all systems understand
437 # e.g. LANG=C (notably SCO).
438 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
439 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
441 # confdefs.h avoids OS command line length limits that DEFS can exceed.
442 rm -rf conftest
* confdefs.h
443 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
446 # A filename unique to this package, relative to the directory that
447 # configure is in, which we can look for to find out if srcdir is correct.
448 ac_unique_file
=eval.c
450 # Find the source files, if location was not specified.
451 if test -z "$srcdir"; then
452 ac_srcdir_defaulted
=yes
453 # Try the directory containing this script, then its parent.
455 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
456 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
458 if test ! -r $srcdir/$ac_unique_file; then
462 ac_srcdir_defaulted
=no
464 if test ! -r $srcdir/$ac_unique_file; then
465 if test "$ac_srcdir_defaulted" = yes; then
466 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
468 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
471 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
473 # Prefer explicitly selected file to automatically selected ones.
474 if test -z "$CONFIG_SITE"; then
475 if test "x$prefix" != xNONE
; then
476 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
478 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
481 for ac_site_file
in $CONFIG_SITE; do
482 if test -r "$ac_site_file"; then
483 echo "loading site script $ac_site_file"
488 if test -r "$cache_file"; then
489 echo "loading cache $cache_file"
492 echo "creating cache $cache_file"
497 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
498 ac_cpp
='$CPP $CPPFLAGS'
499 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
500 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
502 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
503 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
504 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
511 ac_n
= ac_c
='\c' ac_t
=
517 .
$srcdir/..
/GUILE-VERSION
519 test -z "$CFLAGS" && CFLAGS
=-g
520 test -z "$LDFLAGS" && LDFLAGS
=-g
522 # Extract the first word of "gcc", so it can be a program name with args.
523 set dummy gcc
; ac_word
=$2
524 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
525 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
526 echo $ac_n "(cached) $ac_c" 1>&6
528 if test -n "$CC"; then
529 ac_cv_prog_CC
="$CC" # Let the user override the test.
531 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
532 for ac_dir
in $PATH; do
533 test -z "$ac_dir" && ac_dir
=.
534 if test -f $ac_dir/$ac_word; then
543 if test -n "$CC"; then
544 echo "$ac_t""$CC" 1>&6
546 echo "$ac_t""no" 1>&6
549 if test -z "$CC"; then
550 # Extract the first word of "cc", so it can be a program name with args.
551 set dummy cc
; ac_word
=$2
552 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
553 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
554 echo $ac_n "(cached) $ac_c" 1>&6
556 if test -n "$CC"; then
557 ac_cv_prog_CC
="$CC" # Let the user override the test.
559 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
561 for ac_dir
in $PATH; do
562 test -z "$ac_dir" && ac_dir
=.
563 if test -f $ac_dir/$ac_word; then
564 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
573 if test $ac_prog_rejected = yes; then
574 # We found a bogon in the path, so make sure we never use it.
575 set dummy
$ac_cv_prog_CC
577 if test $# -gt 0; then
578 # We chose a different compiler from the bogus one.
579 # However, it has the same basename, so the bogon will be chosen
580 # first if we set CC to just the basename; use the full file name.
582 set dummy
"$ac_dir/$ac_word" "$@"
590 if test -n "$CC"; then
591 echo "$ac_t""$CC" 1>&6
593 echo "$ac_t""no" 1>&6
596 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
599 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
600 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
601 echo $ac_n "(cached) $ac_c" 1>&6
603 cat > conftest.c
<<EOF
608 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:609: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
615 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
616 if test $ac_cv_prog_gcc = yes; then
618 if test "${CFLAGS+set}" != set; then
619 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
620 if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
621 echo $ac_n "(cached) $ac_c" 1>&6
623 echo 'void f(){}' > conftest.c
624 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
633 echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
634 if test $ac_cv_prog_gcc_g = yes; then
642 test "${CFLAGS+set}" = set || CFLAGS
="-g"
645 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
646 # On Suns, sometimes $CPP names a directory.
647 if test -n "$CPP" && test -d "$CPP"; then
650 if test -z "$CPP"; then
651 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
652 echo $ac_n "(cached) $ac_c" 1>&6
654 # This must be in double quotes, not single quotes, because CPP may get
655 # substituted into the Makefile and "${CC-cc}" will confuse make.
657 # On the NeXT, cc -E runs the code through the compiler's parser,
658 # not just through cpp.
659 cat > conftest.
$ac_ext <<EOF
660 #line 661 "configure"
661 #include "confdefs.h"
665 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
666 { (eval echo configure
:667: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
667 ac_err
=`grep -v '^ *+' conftest.out`
668 if test -z "$ac_err"; then
673 CPP
="${CC-cc} -E -traditional-cpp"
674 cat > conftest.
$ac_ext <<EOF
675 #line 676 "configure"
676 #include "confdefs.h"
680 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
681 { (eval echo configure
:682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
682 ac_err
=`grep -v '^ *+' conftest.out`
683 if test -z "$ac_err"; then
693 ac_cv_prog_CPP
="$CPP"
695 CPP
="$ac_cv_prog_CPP"
697 ac_cv_prog_CPP
="$CPP"
699 echo "$ac_t""$CPP" 1>&6
701 # Extract the first word of "ranlib", so it can be a program name with args.
702 set dummy ranlib
; ac_word
=$2
703 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
704 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
705 echo $ac_n "(cached) $ac_c" 1>&6
707 if test -n "$RANLIB"; then
708 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
710 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
711 for ac_dir
in $PATH; do
712 test -z "$ac_dir" && ac_dir
=.
713 if test -f $ac_dir/$ac_word; then
714 ac_cv_prog_RANLIB
="ranlib"
719 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
722 RANLIB
="$ac_cv_prog_RANLIB"
723 if test -n "$RANLIB"; then
724 echo "$ac_t""$RANLIB" 1>&6
726 echo "$ac_t""no" 1>&6
730 echo $ac_n "checking for AIX""... $ac_c" 1>&6
731 cat > conftest.
$ac_ext <<EOF
732 #line 733 "configure"
733 #include "confdefs.h"
739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
740 egrep "yes" >/dev
/null
2>&1; then
742 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
743 #define _ALL_SOURCE 1
748 echo "$ac_t""no" 1>&6
753 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
754 if test -d /etc
/conf
/kconfig.d
&&
755 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
757 echo "$ac_t""yes" 1>&6
758 ISC
=yes # If later tests want to check for ISC.
759 cat >> confdefs.h
<<\EOF
760 #define _POSIX_SOURCE 1
763 if test "$GCC" = yes; then
769 echo "$ac_t""no" 1>&6
773 ac_safe
=`echo "minix/config.h" | tr './\055' '___'`
774 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
775 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
776 echo $ac_n "(cached) $ac_c" 1>&6
778 cat > conftest.
$ac_ext <<EOF
779 #line 780 "configure"
780 #include "confdefs.h"
781 #include <minix/config.h>
783 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
784 { (eval echo configure
:785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
785 ac_err
=`grep -v '^ *+' conftest.out`
786 if test -z "$ac_err"; then
788 eval "ac_cv_header_$ac_safe=yes"
792 eval "ac_cv_header_$ac_safe=no"
796 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
797 echo "$ac_t""yes" 1>&6
800 echo "$ac_t""no" 1>&6
804 if test "$MINIX" = yes; then
805 cat >> confdefs.h
<<\EOF
806 #define _POSIX_SOURCE 1
809 cat >> confdefs.h
<<\EOF
810 #define _POSIX_1_SOURCE 2
813 cat >> confdefs.h
<<\EOF
820 echo $ac_n "checking for working const""... $ac_c" 1>&6
821 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
822 echo $ac_n "(cached) $ac_c" 1>&6
824 cat > conftest.
$ac_ext <<EOF
825 #line 826 "configure"
826 #include "confdefs.h"
828 int main() { return 0; }
831 /* Ultrix mips cc rejects this. */
832 typedef int charset[2]; const charset x;
833 /* SunOS 4.1.1 cc rejects this. */
834 char const *const *ccp;
836 /* NEC SVR4.0.2 mips cc rejects this. */
837 struct point {int x, y;};
838 static struct point const zero = {0,0};
839 /* AIX XL C 1.02.0.0 rejects this.
840 It does not let you subtract one const X* pointer from another in an arm
841 of an if-expression whose if-part is not a constant expression */
842 const char *g = "string";
843 ccp = &g + (g ? g-g : 0);
844 /* HPUX 7.0 cc rejects these. */
847 ccp = (char const *const *) p;
848 { /* SCO 3.2v4 cc rejects this. */
850 char const *s = 0 ? (char *) 0 : (char const *) 0;
854 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
856 const int *foo = &x[0];
859 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
860 typedef const int *iptr;
864 { /* AIX XL C 1.02.0.0 rejects this saying
865 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
866 struct s { int j; const int *ap[3]; };
867 struct s *b; b->j = 5;
869 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
875 if { (eval echo configure
:876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
886 echo "$ac_t""$ac_cv_c_const" 1>&6
887 if test $ac_cv_c_const = no
; then
888 cat >> confdefs.h
<<\EOF
895 # If we cannot run a trivial program, we must be cross compiling.
896 echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
897 if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
898 echo $ac_n "(cached) $ac_c" 1>&6
900 if test "$cross_compiling" = yes; then
903 cat > conftest.
$ac_ext <<EOF
904 #line 905 "configure"
905 #include "confdefs.h"
908 { (eval echo configure
:909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
909 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
918 echo "$ac_t""$ac_cv_c_cross" 1>&6
919 cross_compiling
=$ac_cv_c_cross
921 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
922 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
923 echo $ac_n "(cached) $ac_c" 1>&6
925 cat > conftest.
$ac_ext <<EOF
926 #line 927 "configure"
927 #include "confdefs.h"
933 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
934 { (eval echo configure
:935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
935 ac_err
=`grep -v '^ *+' conftest.out`
936 if test -z "$ac_err"; then
938 ac_cv_header_stdc
=yes
946 if test $ac_cv_header_stdc = yes; then
947 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
948 cat > conftest.
$ac_ext <<EOF
949 #line 950 "configure"
950 #include "confdefs.h"
953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
954 egrep "memchr" >/dev
/null
2>&1; then
964 if test $ac_cv_header_stdc = yes; then
965 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
966 cat > conftest.
$ac_ext <<EOF
967 #line 968 "configure"
968 #include "confdefs.h"
971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
972 egrep "free" >/dev
/null
2>&1; then
982 if test $ac_cv_header_stdc = yes; then
983 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
984 if test "$cross_compiling" = yes; then
987 cat > conftest.
$ac_ext <<EOF
988 #line 989 "configure"
989 #include "confdefs.h"
991 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
992 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
993 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
994 int main () { int i; for (i = 0; i < 256; i++)
995 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
999 { (eval echo configure
:1000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1000 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
1003 ac_cv_header_stdc
=no
1010 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1011 if test $ac_cv_header_stdc = yes; then
1012 cat >> confdefs.h
<<\EOF
1013 #define STDC_HEADERS 1
1019 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
1021 ac_safe
=`echo "$ac_hdr" | tr './\055' '___'`
1022 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1023 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1024 echo $ac_n "(cached) $ac_c" 1>&6
1026 cat > conftest.
$ac_ext <<EOF
1027 #line 1028 "configure"
1028 #include "confdefs.h"
1029 #include <sys/types.h>
1031 int main() { return 0; }
1036 if { (eval echo configure
:1037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1038 eval "ac_cv_header_dirent_$ac_safe=yes"
1041 eval "ac_cv_header_dirent_$ac_safe=no"
1046 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1047 echo "$ac_t""yes" 1>&6
1048 ac_tr_hdr
=HAVE_
`echo $ac_hdr | tr 'abcdedfghijklmnopqrstuvwxyz./\055' 'ABCDEDFGHIJKLMNOPQRSTUVWXYZ___'`
1049 cat >> confdefs.h
<<EOF
1050 #define $ac_tr_hdr 1
1052 ac_header_dirent
=$ac_hdr; break
1054 echo "$ac_t""no" 1>&6
1057 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1058 if test $ac_header_dirent = dirent.h
; then
1059 echo $ac_n "checking for -ldir""... $ac_c" 1>&6
1060 ac_lib_var
=`echo dir'_'opendir | tr './+\055' '__p_'`
1061 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1062 echo $ac_n "(cached) $ac_c" 1>&6
1064 ac_save_LIBS
="$LIBS"
1066 cat > conftest.
$ac_ext <<EOF
1067 #line 1068 "configure"
1068 #include "confdefs.h"
1069 /* Override any gcc2 internal prototype to avoid an error. */
1070 /* We use char because int might match the return type of a gcc2
1071 builtin and then its argument prototype would still apply. */
1074 int main() { return 0; }
1079 if { (eval echo configure
:1080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1081 eval "ac_cv_lib_$ac_lib_var=yes"
1084 eval "ac_cv_lib_$ac_lib_var=no"
1087 LIBS
="$ac_save_LIBS"
1090 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1091 echo "$ac_t""yes" 1>&6
1094 echo "$ac_t""no" 1>&6
1098 echo $ac_n "checking for -lx""... $ac_c" 1>&6
1099 ac_lib_var
=`echo x'_'opendir | tr './+\055' '__p_'`
1100 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1101 echo $ac_n "(cached) $ac_c" 1>&6
1103 ac_save_LIBS
="$LIBS"
1105 cat > conftest.
$ac_ext <<EOF
1106 #line 1107 "configure"
1107 #include "confdefs.h"
1108 /* Override any gcc2 internal prototype to avoid an error. */
1109 /* We use char because int might match the return type of a gcc2
1110 builtin and then its argument prototype would still apply. */
1113 int main() { return 0; }
1118 if { (eval echo configure
:1119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1120 eval "ac_cv_lib_$ac_lib_var=yes"
1123 eval "ac_cv_lib_$ac_lib_var=no"
1126 LIBS
="$ac_save_LIBS"
1129 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1130 echo "$ac_t""yes" 1>&6
1133 echo "$ac_t""no" 1>&6
1138 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1139 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1140 echo $ac_n "(cached) $ac_c" 1>&6
1142 cat > conftest.
$ac_ext <<EOF
1143 #line 1144 "configure"
1144 #include "confdefs.h"
1145 #include <sys/types.h>
1146 #include <sys/time.h>
1148 int main() { return 0; }
1153 if { (eval echo configure
:1154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1155 ac_cv_header_time
=yes
1158 ac_cv_header_time
=no
1164 echo "$ac_t""$ac_cv_header_time" 1>&6
1165 if test $ac_cv_header_time = yes; then
1166 cat >> confdefs.h
<<\EOF
1167 #define TIME_WITH_SYS_TIME 1
1172 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1173 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1174 echo $ac_n "(cached) $ac_c" 1>&6
1176 cat > conftest.
$ac_ext <<EOF
1177 #line 1178 "configure"
1178 #include "confdefs.h"
1179 #include <sys/types.h>
1180 #include <sys/wait.h>
1182 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1185 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1187 int main() { return 0; }
1191 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1194 if { (eval echo configure
:1195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1196 ac_cv_header_sys_wait_h
=yes
1199 ac_cv_header_sys_wait_h
=no
1205 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1206 if test $ac_cv_header_sys_wait_h = yes; then
1207 cat >> confdefs.h
<<\EOF
1208 #define HAVE_SYS_WAIT_H 1
1213 for ac_hdr
in libc.h limits.h malloc.h memory.h string.h sys
/ioctl.h sys
/select.h sys
/time.h sys
/timeb.h sys
/times.h sys
/types.h
time.h unistd.h
1215 ac_safe
=`echo "$ac_hdr" | tr './\055' '___'`
1216 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1217 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1218 echo $ac_n "(cached) $ac_c" 1>&6
1220 cat > conftest.
$ac_ext <<EOF
1221 #line 1222 "configure"
1222 #include "confdefs.h"
1225 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1226 { (eval echo configure
:1227: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1227 ac_err
=`grep -v '^ *+' conftest.out`
1228 if test -z "$ac_err"; then
1230 eval "ac_cv_header_$ac_safe=yes"
1234 eval "ac_cv_header_$ac_safe=no"
1238 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1239 echo "$ac_t""yes" 1>&6
1240 ac_tr_hdr
=HAVE_
`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
1241 cat >> confdefs.h
<<EOF
1242 #define $ac_tr_hdr 1
1246 echo "$ac_t""no" 1>&6
1251 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
1252 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
1253 echo $ac_n "(cached) $ac_c" 1>&6
1255 cat > conftest.
$ac_ext <<EOF
1256 #line 1257 "configure"
1257 #include "confdefs.h"
1258 #include <sys/types.h>
1260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1261 egrep "uid_t" >/dev
/null
2>&1; then
1263 ac_cv_type_uid_t
=yes
1272 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
1273 if test $ac_cv_type_uid_t = no
; then
1274 cat >> confdefs.h
<<\EOF
1278 cat >> confdefs.h
<<\EOF
1284 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
1285 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
1286 echo $ac_n "(cached) $ac_c" 1>&6
1288 if test "$cross_compiling" = yes; then
1289 ac_cv_type_getgroups
=cross
1291 cat > conftest.
$ac_ext <<EOF
1292 #line 1293 "configure"
1293 #include "confdefs.h"
1295 /* Thanks to Mike Rendell for this test. */
1296 #include <sys/types.h>
1299 #define MAX(x, y) ((x) > (y) ? (x) : (y))
1304 union { gid_t gval; long lval; } val;
1307 for (i = 0; i < NGID; i++)
1308 gidset[i] = val.gval;
1309 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
1311 /* Exit non-zero if getgroups seems to require an array of ints. This
1312 happens when gid_t is short but getgroups modifies an array of ints. */
1313 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
1317 { (eval echo configure
:1318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1318 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
1319 ac_cv_type_getgroups
=gid_t
1321 ac_cv_type_getgroups
=int
1325 if test $ac_cv_type_getgroups = cross
; then
1326 cat > conftest.
$ac_ext <<EOF
1327 #line 1328 "configure"
1328 #include "confdefs.h"
1331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1332 egrep "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
1334 ac_cv_type_getgroups
=gid_t
1337 ac_cv_type_getgroups
=int
1344 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
1345 cat >> confdefs.h
<<EOF
1346 #define GETGROUPS_T $ac_cv_type_getgroups
1350 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1351 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1352 echo $ac_n "(cached) $ac_c" 1>&6
1354 cat > conftest.
$ac_ext <<EOF
1355 #line 1356 "configure"
1356 #include "confdefs.h"
1357 #include <sys/types.h>
1363 extern "C" void (*signal (int, void (*)(int)))(int);
1365 void (*signal ()) ();
1368 int main() { return 0; }
1373 if { (eval echo configure
:1374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1375 ac_cv_type_signal
=void
1378 ac_cv_type_signal
=int
1384 echo "$ac_t""$ac_cv_type_signal" 1>&6
1385 cat >> confdefs.h
<<EOF
1386 #define RETSIGTYPE $ac_cv_type_signal
1390 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
1391 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
1392 echo $ac_n "(cached) $ac_c" 1>&6
1394 cat > conftest.
$ac_ext <<EOF
1395 #line 1396 "configure"
1396 #include "confdefs.h"
1397 #include <sys/types.h>
1402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1403 egrep "mode_t" >/dev
/null
2>&1; then
1405 ac_cv_type_mode_t
=yes
1408 ac_cv_type_mode_t
=no
1413 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
1414 if test $ac_cv_type_mode_t = no
; then
1415 cat >> confdefs.h
<<\EOF
1422 for ac_func
in ctermid ftime getcwd geteuid lstat mkdir mknod nice putenv readlink rename
rmdir select setegid seteuid setlocale setpgid setsid strftime strptime symlink sync tcgetpgrp tcsetpgrp
times uname waitpid
1424 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1425 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1426 echo $ac_n "(cached) $ac_c" 1>&6
1428 cat > conftest.
$ac_ext <<EOF
1429 #line 1430 "configure"
1430 #include "confdefs.h"
1431 /* System header to define __stub macros and hopefully few prototypes,
1432 which can conflict with char $ac_func(); below. */
1434 /* Override any gcc2 internal prototype to avoid an error. */
1435 /* We use char because int might match the return type of a gcc2
1436 builtin and then its argument prototype would still apply. */
1439 int main() { return 0; }
1442 /* The GNU C library defines this for functions which it implements
1443 to always fail with ENOSYS. Some functions are actually named
1444 something starting with __ and the normal name is an alias. */
1445 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1453 if { (eval echo configure
:1454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1455 eval "ac_cv_func_$ac_func=yes"
1458 eval "ac_cv_func_$ac_func=no"
1463 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1464 echo "$ac_t""yes" 1>&6
1465 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1466 cat >> confdefs.h
<<EOF
1467 #define $ac_tr_func 1
1471 echo "$ac_t""no" 1>&6
1476 for ac_func
in inet_aton
1478 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1479 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1480 echo $ac_n "(cached) $ac_c" 1>&6
1482 cat > conftest.
$ac_ext <<EOF
1483 #line 1484 "configure"
1484 #include "confdefs.h"
1485 /* System header to define __stub macros and hopefully few prototypes,
1486 which can conflict with char $ac_func(); below. */
1488 /* Override any gcc2 internal prototype to avoid an error. */
1489 /* We use char because int might match the return type of a gcc2
1490 builtin and then its argument prototype would still apply. */
1493 int main() { return 0; }
1496 /* The GNU C library defines this for functions which it implements
1497 to always fail with ENOSYS. Some functions are actually named
1498 something starting with __ and the normal name is an alias. */
1499 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1507 if { (eval echo configure
:1508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1509 eval "ac_cv_func_$ac_func=yes"
1512 eval "ac_cv_func_$ac_func=no"
1517 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1518 echo "$ac_t""yes" 1>&6
1521 echo "$ac_t""no" 1>&6
1522 LIBOBJS
="$LIBOBJS ${ac_func}.o"
1528 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
1529 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
1530 echo $ac_n "(cached) $ac_c" 1>&6
1532 cat > conftest.
$ac_ext <<EOF
1533 #line 1534 "configure"
1534 #include "confdefs.h"
1535 #include <sys/types.h>
1536 #include <sys/stat.h>
1537 int main() { return 0; }
1539 struct stat s; s.st_rdev;
1542 if { (eval echo configure
:1543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1544 ac_cv_struct_st_rdev
=yes
1547 ac_cv_struct_st_rdev
=no
1553 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
1554 if test $ac_cv_struct_st_rdev = yes; then
1555 cat >> confdefs.h
<<\EOF
1556 #define HAVE_ST_RDEV 1
1561 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
1562 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
1563 echo $ac_n "(cached) $ac_c" 1>&6
1565 cat > conftest.
$ac_ext <<EOF
1566 #line 1567 "configure"
1567 #include "confdefs.h"
1568 #include <sys/types.h>
1569 #include <sys/stat.h>
1570 int main() { return 0; }
1572 struct stat s; s.st_blksize;
1575 if { (eval echo configure
:1576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1577 ac_cv_struct_st_blksize
=yes
1580 ac_cv_struct_st_blksize
=no
1586 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
1587 if test $ac_cv_struct_st_blksize = yes; then
1588 cat >> confdefs.h
<<\EOF
1589 #define HAVE_ST_BLKSIZE 1
1594 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
1595 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
1596 echo $ac_n "(cached) $ac_c" 1>&6
1598 cat > conftest.
$ac_ext <<EOF
1599 #line 1600 "configure"
1600 #include "confdefs.h"
1601 #include <sys/types.h>
1602 #include <sys/stat.h>
1603 int main() { return 0; }
1605 struct stat s; s.st_blocks;
1608 if { (eval echo configure
:1609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1610 ac_cv_struct_st_blocks
=yes
1613 ac_cv_struct_st_blocks
=no
1619 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
1620 if test $ac_cv_struct_st_blocks = yes; then
1621 cat >> confdefs.h
<<\EOF
1622 #define HAVE_ST_BLOCKS 1
1626 LIBOBJS
="$LIBOBJS fileblocks.o"
1630 #--------------------------------------------------------------------
1632 # Which way does the stack grow?
1634 #--------------------------------------------------------------------
1636 if test "$cross_compiling" = yes; then
1637 echo "configure: warning: Guessing that stack grows down -- see scmconfig.h.in" 1>&2
1639 cat > conftest.
$ac_ext <<EOF
1640 #line 1641 "configure"
1641 #include "confdefs.h"
1642 aux (l) unsigned long l;
1643 { int x; exit (l >= ((unsigned long)&x)); }
1644 main () { int q; aux((unsigned long)&q); }
1646 { (eval echo configure
:1647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1647 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
1648 cat >> confdefs.h
<<\EOF
1649 #define SCM_STACK_GROWS_UP 1
1657 if test "$cross_compiling" = yes; then
1658 cat >> confdefs.h
<<\EOF
1659 #define SCM_SINGLES 1
1662 echo "configure: warning: Guessing that sizeof(long) == sizeof(float) -- see scmconfig.h.in" 1>&2
1664 cat > conftest.
$ac_ext <<EOF
1665 #line 1666 "configure"
1666 #include "confdefs.h"
1667 main () { exit (sizeof(float) != sizeof(long)); }
1669 { (eval echo configure
:1670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1670 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
1671 cat >> confdefs.h
<<\EOF
1672 #define SCM_SINGLES 1
1679 echo $ac_n "checking for struct linger""... $ac_c" 1>&6
1680 if eval "test \"`echo '$''{'scm_cv_struct_linger'+set}'`\" = set"; then
1681 echo $ac_n "(cached) $ac_c" 1>&6
1683 cat > conftest.
$ac_ext <<EOF
1684 #line 1685 "configure"
1685 #include "confdefs.h"
1686 #include <sys/socket.h>
1687 int main() { return 0; }
1689 struct linger lgr; lgr.l_linger = 100
1692 if { (eval echo configure
:1693: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1694 scm_cv_struct_linger
="yes"
1697 scm_cv_struct_linger
="no"
1703 echo "$ac_t""$scm_cv_struct_linger" 1>&6
1704 if test $scm_cv_struct_linger = yes; then
1705 cat >> confdefs.h
<<\EOF
1706 #define HAVE_STRUCT_LINGER 1
1711 #--------------------------------------------------------------------
1713 # How can you violate a stdio abstraction by setting a stream's fd?
1715 #--------------------------------------------------------------------
1719 if test "x$FD_SETTER" = x
; then
1720 cat > conftest.
$ac_ext <<EOF
1721 #line 1722 "configure"
1722 #include "confdefs.h"
1725 int main() { return 0; }
1730 if { (eval echo configure
:1731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1732 FD_SETTER
="((F)->_file = (D))"
1738 if test "x$FD_SETTER" = x
; then
1739 cat > conftest.
$ac_ext <<EOF
1740 #line 1741 "configure"
1741 #include "confdefs.h"
1744 int main() { return 0; }
1749 if { (eval echo configure
:1750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1751 FD_SETTER
="((F)->_fileno = (D))"
1758 test "x$FD_SETTER" != x
&& cat >> confdefs.h
<<\EOF
1759 #define HAVE_FD_SETTER 1
1776 cat > confcache
<<\EOF
1777 # This file is a shell script that caches the results of configure
1778 # tests run on this system so they can be shared between configure
1779 # scripts and configure runs. It is not useful on other systems.
1780 # If it contains results you don't want to keep, you may remove or edit it.
1782 # By default, configure uses ./config.cache as the cache file,
1783 # creating it if it does not exist already. You can give configure
1784 # the --cache-file=FILE option to use a different cache file; that is
1785 # what configure does when it calls configure scripts in
1786 # subdirectories, so they share the cache.
1787 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1788 # config.status only pays attention to the cache file if you give it the
1789 # --recheck option to rerun configure.
1792 # Ultrix sh set writes to stderr and can't be redirected directly,
1793 # and sets the high bit in the cache file unless we assign to the vars.
1795 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
1797 if cmp -s $cache_file confcache
; then
1800 if test -w $cache_file; then
1801 echo "updating cache $cache_file"
1802 cat confcache
> $cache_file
1804 echo "not updating unwritable cache $cache_file"
1809 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1811 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
1812 # Let make expand exec_prefix.
1813 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
1815 # Any assignment to VPATH causes Sun make to only execute
1816 # the first set of double-colon rules, so remove it if not needed.
1817 # If there is a colon in the path, we need to keep it.
1818 if test "x$srcdir" = x.
; then
1819 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
1822 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1824 DEFS
=-DHAVE_CONFIG_H
1826 # Without the "./", some shells look in PATH for config.status.
1827 : ${CONFIG_STATUS=./config.status}
1829 echo creating
$CONFIG_STATUS
1830 rm -f $CONFIG_STATUS
1831 cat > $CONFIG_STATUS <<EOF
1833 # Generated automatically by configure.
1834 # Run this file to recreate the current configuration.
1835 # This directory was configured as follows,
1836 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1838 # $0 $ac_configure_args
1840 # Compiler output produced by configure, useful for debugging
1841 # configure, is in ./config.log if it exists.
1843 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1846 case "\$ac_option" in
1847 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1848 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1849 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1850 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1851 echo "$CONFIG_STATUS generated by autoconf version 2.10"
1853 -help | --help | --hel | --he | --h)
1854 echo "\$ac_cs_usage"; exit 0 ;;
1855 *) echo "\$ac_cs_usage"; exit 1 ;;
1859 ac_given_srcdir=$srcdir
1861 trap 'rm -fr `echo "Makefile fd.h scmconfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1863 cat >> $CONFIG_STATUS <<EOF
1865 # Protect against being on the right side of a sed subst in config.status.
1866 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1867 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1870 s%@CFLAGS@%$CFLAGS%g
1871 s%@CPPFLAGS@%$CPPFLAGS%g
1872 s%@CXXFLAGS@%$CXXFLAGS%g
1874 s%@LDFLAGS@%$LDFLAGS%g
1876 s%@exec_prefix@%$exec_prefix%g
1877 s%@prefix@%$prefix%g
1878 s%@program_transform_name@%$program_transform_name%g
1879 s%@bindir@%$bindir%g
1880 s%@sbindir@%$sbindir%g
1881 s%@libexecdir@%$libexecdir%g
1882 s%@datadir@%$datadir%g
1883 s%@sysconfdir@%$sysconfdir%g
1884 s%@sharedstatedir@%$sharedstatedir%g
1885 s%@localstatedir@%$localstatedir%g
1886 s%@libdir@%$libdir%g
1887 s%@includedir@%$includedir%g
1888 s%@oldincludedir@%$oldincludedir%g
1889 s%@infodir@%$infodir%g
1890 s%@mandir@%$mandir%g
1893 s%@RANLIB@%$RANLIB%g
1894 s%@LIBOBJS@%$LIBOBJS%g
1895 s%@FD_SETTER@%$FD_SETTER%g
1896 s%@TCL_SRC_DIR@%$TCL_SRC_DIR%g
1897 s%@TK_SRC_DIR@%$TK_SRC_DIR%g
1898 s%@XINCLUDES@%$XINCLUDES%g
1899 s%@GUILE_MAJOR_VERSION@%$GUILE_MAJOR_VERSION%g
1900 s%@GUILE_MINOR_VERSION@%$GUILE_MINOR_VERSION%g
1901 s%@GUILE_VERSION@%$GUILE_VERSION%g
1905 cat >> $CONFIG_STATUS <<EOF
1907 CONFIG_FILES=\${CONFIG_FILES-"Makefile fd.h"}
1909 cat >> $CONFIG_STATUS <<\EOF
1910 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
1911 # Support "outfile[:infile]", defaulting infile="outfile.in".
1913 *:*) ac_file_in
=`echo "$ac_file"|sed 's%.*:%%'`
1914 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
1915 *) ac_file_in
="${ac_file}.in" ;;
1918 # Adjust relative srcdir, etc. for subdirectories.
1920 # Remove last slash and all that follows it. Not all systems have dirname.
1921 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1922 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
1923 # The file is in a subdirectory.
1924 test ! -d "$ac_dir" && mkdir
"$ac_dir"
1925 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
1926 # A "../" for each directory in $ac_dir_suffix.
1927 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1929 ac_dir_suffix
= ac_dots
=
1932 case "$ac_given_srcdir" in
1934 if test -z "$ac_dots"; then top_srcdir
=.
1935 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1936 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
1938 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1939 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
1942 echo creating
"$ac_file"
1944 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1946 *Makefile
*) ac_comsub
="1i\\
1947 # $configure_input" ;;
1951 s%@configure_input@%$configure_input%g
1952 s%@srcdir@%$srcdir%g
1953 s%@top_srcdir@%$top_srcdir%g
1954 " -f conftest.subs
$ac_given_srcdir/$ac_file_in > $ac_file
1958 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1959 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1961 # ac_d sets the value in "#define NAME VALUE" lines.
1962 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1963 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
1966 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1967 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1968 ac_uB
='\([ ]\)%\1#\2define\3'
1971 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1972 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1973 ac_eB
='$%\1#\2define\3'
1977 CONFIG_HEADERS
=${CONFIG_HEADERS-"scmconfig.h"}
1978 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
1979 # Support "outfile[:infile]", defaulting infile="outfile.in".
1981 *:*) ac_file_in
=`echo "$ac_file"|sed 's%.*:%%'`
1982 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
1983 *) ac_file_in
="${ac_file}.in" ;;
1986 echo creating
$ac_file
1988 rm -f conftest.frag conftest.
in conftest.out
1989 cp $ac_given_srcdir/$ac_file_in conftest.
in
1993 # Transform confdefs.h into a sed script conftest.vals that substitutes
1994 # the proper values into config.h.in to produce config.h. And first:
1995 # Protect against being on the right side of a sed subst in config.status.
1996 # Protect against being in an unquoted here document in config.status.
1998 cat > conftest.hdr
<<\EOF
2001 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2005 sed -n -f conftest.hdr confdefs.h > conftest.vals
2008 # This sed command replaces #undef with comments. This is necessary, for
2009 # example, in the case of _POSIX_SOURCE, which is predefined and required
2010 # on some systems where configure will not decide to define it.
2011 cat >> conftest.vals <<\EOF
2012 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2015 # Break up conftest.vals because some shells have a limit on
2016 # the size of here documents, and old seds have small limits too.
2017 # Maximum number of lines to put in a single here document.
2018 ac_max_here_lines=12
2023 ac_lines=`grep -c . conftest.vals
`
2024 # grep -c gives empty output for an empty file on some AIX systems.
2025 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2026 # Write a limited-size here document to conftest.frag.
2027 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2028 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2030 sed -f conftest.frag conftest.in > conftest.out
2032 mv conftest.out conftest.in
2034 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2036 mv conftest.tail conftest.vals
2040 cat >> $CONFIG_STATUS <<\EOF
2041 rm -f conftest.frag conftest.h
2042 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2043 cat conftest.in >> conftest.h
2045 if cmp -s $ac_file conftest.h 2>/dev/null; then
2046 echo "$ac_file is unchanged"
2049 # Remove last slash and all that follows it. Not all systems have dirname.
2050 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
2051 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2052 # The file is in a subdirectory.
2053 test ! -d "$ac_dir" && mkdir "$ac_dir"
2056 mv conftest.h $ac_file
2064 chmod +x $CONFIG_STATUS
2065 rm -fr confdefs* $ac_clean_files
2066 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1