* Makefile.in (ancillary): Drop acconfig-1.5.h; add acconfig.h.
[bpt/guile.git] / libguile / configure
CommitLineData
0f2d19dd
JB
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
2e18892a 4# Generated automatically using autoconf version 2.10
0f2d19dd
JB
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14
15# Initialize some variables set by options.
16# The variables have the same names as the options, with
17# dashes changed to underlines.
18build=NONE
19cache_file=./config.cache
20exec_prefix=NONE
21host=NONE
22no_create=
23nonopt=NONE
24no_recursion=
25prefix=NONE
26program_prefix=NONE
27program_suffix=NONE
28program_transform_name=s,x,x,
29silent=
30site=
31srcdir=
32target=NONE
33verbose=
34x_includes=NONE
35x_libraries=NONE
36bindir='${exec_prefix}/bin'
37sbindir='${exec_prefix}/sbin'
38libexecdir='${exec_prefix}/libexec'
39datadir='${prefix}/share'
40sysconfdir='${prefix}/etc'
41sharedstatedir='${prefix}/com'
42localstatedir='${prefix}/var'
43libdir='${exec_prefix}/lib'
44includedir='${prefix}/include'
45oldincludedir='/usr/include'
46infodir='${prefix}/info'
47mandir='${prefix}/man'
48
49# Initialize some other variables.
50subdirs=
51MFLAGS= MAKEFLAGS=
52
53ac_prev=
54for ac_option
55do
56
57 # If the previous option needs an argument, assign it.
58 if test -n "$ac_prev"; then
59 eval "$ac_prev=\$ac_option"
60 ac_prev=
61 continue
62 fi
63
64 case "$ac_option" in
65 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
66 *) ac_optarg= ;;
67 esac
68
69 # Accept the important Cygnus configure options, so we can diagnose typos.
70
71 case "$ac_option" in
72
73 -bindir | --bindir | --bindi | --bind | --bin | --bi)
74 ac_prev=bindir ;;
75 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
76 bindir="$ac_optarg" ;;
77
78 -build | --build | --buil | --bui | --bu)
79 ac_prev=build ;;
80 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
81 build="$ac_optarg" ;;
82
83 -cache-file | --cache-file | --cache-fil | --cache-fi \
84 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
85 ac_prev=cache_file ;;
86 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
87 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
88 cache_file="$ac_optarg" ;;
89
90 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
91 ac_prev=datadir ;;
92 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
93 | --da=*)
94 datadir="$ac_optarg" ;;
95
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; }
101 fi
102 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
103 eval "enable_${ac_feature}=no" ;;
104
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; }
110 fi
111 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
112 case "$ac_option" in
113 *=*) ;;
114 *) ac_optarg=yes ;;
115 esac
116 eval "enable_${ac_feature}='$ac_optarg'" ;;
117
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" ;;
126
127 -gas | --gas | --ga | --g)
128 # Obsolete; use --with-gas.
129 with_gas=yes ;;
130
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.
134 cat << EOF
135Usage: configure [options] [host]
136Options: [defaults in brackets after descriptions]
137Configuration:
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
143Directory and file names:
144 --prefix=PREFIX install architecture-independent files in PREFIX
145 [$ac_default_prefix]
146 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
147 [same as prefix]
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
152 [PREFIX/share]
153 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
154 --sharedstatedir=DIR modifiable architecture-independent data in DIR
155 [PREFIX/com]
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
167EOF
168 cat << EOF
169Host type:
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]
173Features 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
180EOF
181 if test -n "$ac_help"; then
182 echo "--enable and --with options recognized:$ac_help"
183 fi
184 exit 0 ;;
185
186 -host | --host | --hos | --ho)
187 ac_prev=host ;;
188 -host=* | --host=* | --hos=* | --ho=*)
189 host="$ac_optarg" ;;
190
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" ;;
197
198 -infodir | --infodir | --infodi | --infod | --info | --inf)
199 ac_prev=infodir ;;
200 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
201 infodir="$ac_optarg" ;;
202
203 -libdir | --libdir | --libdi | --libd)
204 ac_prev=libdir ;;
205 -libdir=* | --libdir=* | --libdi=* | --libd=*)
206 libdir="$ac_optarg" ;;
207
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" ;;
214
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" ;;
223
224 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
225 ac_prev=mandir ;;
226 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
227 mandir="$ac_optarg" ;;
228
229 -nfp | --nfp | --nf)
230 # Obsolete; use --without-fp.
231 with_fp=no ;;
232
233 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
234 | --no-cr | --no-c)
235 no_create=yes ;;
236
237 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
238 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
239 no_recursion=yes ;;
240
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" ;;
249
250 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
251 ac_prev=prefix ;;
252 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
253 prefix="$ac_optarg" ;;
254
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" ;;
261
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" ;;
268
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" ;;
285
286 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
287 | -silent | --silent | --silen | --sile | --sil)
288 silent=yes ;;
289
290 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
291 ac_prev=sbindir ;;
292 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
293 | --sbi=* | --sb=*)
294 sbindir="$ac_optarg" ;;
295
296 -sharedstatedir | --sharedstatedir | --sharedstatedi \
297 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
298 | --sharedst | --shareds | --shared | --share | --shar \
299 | --sha | --sh)
300 ac_prev=sharedstatedir ;;
301 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
302 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
303 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
304 | --sha=* | --sh=*)
305 sharedstatedir="$ac_optarg" ;;
306
307 -site | --site | --sit)
308 ac_prev=site ;;
309 -site=* | --site=* | --sit=*)
310 site="$ac_optarg" ;;
311
312 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
313 ac_prev=srcdir ;;
314 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
315 srcdir="$ac_optarg" ;;
316
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" ;;
323
324 -target | --target | --targe | --targ | --tar | --ta | --t)
325 ac_prev=target ;;
326 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
327 target="$ac_optarg" ;;
328
329 -v | -verbose | --verbose | --verbos | --verbo | --verb)
330 verbose=yes ;;
331
332 -version | --version | --versio | --versi | --vers)
2e18892a 333 echo "configure generated by autoconf version 2.10"
0f2d19dd
JB
334 exit 0 ;;
335
336 -with-* | --with-*)
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; }
341 fi
342 ac_package=`echo $ac_package| sed 's/-/_/g'`
343 case "$ac_option" in
344 *=*) ;;
345 *) ac_optarg=yes ;;
346 esac
347 eval "with_${ac_package}='$ac_optarg'" ;;
348
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; }
354 fi
355 ac_package=`echo $ac_package| sed 's/-/_/g'`
356 eval "with_${ac_package}=no" ;;
357
358 --x)
359 # Obsolete; use --with-x.
360 with_x=yes ;;
361
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" ;;
368
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" ;;
375
376 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
377 ;;
378
379 *)
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
382 fi
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; }
385 fi
386 nonopt="$ac_option"
387 ;;
388
389 esac
390done
391
392if test -n "$ac_prev"; then
393 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
394fi
395
396trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
397
398# File descriptor usage:
399# 0 standard input
400# 1 file creation
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
406if test "$silent" = yes; then
407 exec 6>/dev/null
408else
409 exec 6>&1
410fi
411exec 5>./config.log
412
413echo "\
414This file contains any messages produced by compilers while
415running configure, to aid debugging if configure makes a mistake.
416" 1>&5
417
418# Strip out --no-create and --no-recursion so they do not pile up.
419# Also quote any args containing shell metacharacters.
420ac_configure_args=
421for ac_arg
422do
423 case "$ac_arg" in
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" ;;
431 esac
432done
433
434# NLS nuisances.
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).
438if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
439if test "${LANG+set}" = set; then LANG=C; export LANG; fi
440
441# confdefs.h avoids OS command line length limits that DEFS can exceed.
442rm -rf conftest* confdefs.h
443# AIX cpp loses on an empty file, so make sure it contains at least a newline.
444echo > confdefs.h
445
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.
448ac_unique_file=eval.c
449
450# Find the source files, if location was not specified.
451if test -z "$srcdir"; then
452 ac_srcdir_defaulted=yes
453 # Try the directory containing this script, then its parent.
454 ac_prog=$0
455 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
456 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
457 srcdir=$ac_confdir
458 if test ! -r $srcdir/$ac_unique_file; then
459 srcdir=..
460 fi
461else
462 ac_srcdir_defaulted=no
463fi
464if 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; }
467 else
468 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
469 fi
470fi
471srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
472
473# Prefer explicitly selected file to automatically selected ones.
474if test -z "$CONFIG_SITE"; then
475 if test "x$prefix" != xNONE; then
476 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
477 else
478 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
479 fi
480fi
481for ac_site_file in $CONFIG_SITE; do
482 if test -r "$ac_site_file"; then
483 echo "loading site script $ac_site_file"
484 . "$ac_site_file"
485 fi
486done
487
488if test -r "$cache_file"; then
489 echo "loading cache $cache_file"
490 . $cache_file
491else
492 echo "creating cache $cache_file"
493 > $cache_file
494fi
495
496ac_ext=c
497# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
498ac_cpp='$CPP $CPPFLAGS'
499ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
500ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
501
502if (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
505 ac_n= ac_c='
506' ac_t=' '
507 else
508 ac_n=-n ac_c= ac_t=
509 fi
510else
511 ac_n= ac_c='\c' ac_t=
512fi
513
514
515
516
517. $srcdir/../GUILE-VERSION
518
519test -z "$CFLAGS" && CFLAGS=-g
520test -z "$LDFLAGS" && LDFLAGS=-g
521
522# Extract the first word of "gcc", so it can be a program name with args.
523set dummy gcc; ac_word=$2
524echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
525if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
526 echo $ac_n "(cached) $ac_c" 1>&6
527else
528 if test -n "$CC"; then
529 ac_cv_prog_CC="$CC" # Let the user override the test.
530else
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
535 ac_cv_prog_CC="gcc"
536 break
537 fi
538 done
539 IFS="$ac_save_ifs"
540fi
541fi
542CC="$ac_cv_prog_CC"
543if test -n "$CC"; then
544 echo "$ac_t""$CC" 1>&6
545else
546 echo "$ac_t""no" 1>&6
547fi
548
549if test -z "$CC"; then
550 # Extract the first word of "cc", so it can be a program name with args.
551set dummy cc; ac_word=$2
552echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
553if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
554 echo $ac_n "(cached) $ac_c" 1>&6
555else
556 if test -n "$CC"; then
557 ac_cv_prog_CC="$CC" # Let the user override the test.
558else
559 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
560 ac_prog_rejected=no
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
565 ac_prog_rejected=yes
566 continue
567 fi
568 ac_cv_prog_CC="cc"
569 break
570 fi
571 done
572 IFS="$ac_save_ifs"
573if 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
576 shift
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.
581 shift
582 set dummy "$ac_dir/$ac_word" "$@"
583 shift
584 ac_cv_prog_CC="$@"
585 fi
586fi
587fi
588fi
589CC="$ac_cv_prog_CC"
590if test -n "$CC"; then
591 echo "$ac_t""$CC" 1>&6
592else
593 echo "$ac_t""no" 1>&6
594fi
595
596 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
597fi
598
599echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
600if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
601 echo $ac_n "(cached) $ac_c" 1>&6
602else
603 cat > conftest.c <<EOF
604#ifdef __GNUC__
605 yes;
606#endif
607EOF
608if { 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
609 ac_cv_prog_gcc=yes
610else
611 ac_cv_prog_gcc=no
612fi
613fi
614
615echo "$ac_t""$ac_cv_prog_gcc" 1>&6
616if test $ac_cv_prog_gcc = yes; then
617 GCC=yes
618 if test "${CFLAGS+set}" != set; then
619 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
620if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
621 echo $ac_n "(cached) $ac_c" 1>&6
622else
623 echo 'void f(){}' > conftest.c
624if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
625 ac_cv_prog_gcc_g=yes
626else
627 ac_cv_prog_gcc_g=no
628fi
629rm -f conftest*
630
631fi
632
633echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
634 if test $ac_cv_prog_gcc_g = yes; then
635 CFLAGS="-g -O"
636 else
637 CFLAGS="-O"
638 fi
639 fi
640else
641 GCC=
642 test "${CFLAGS+set}" = set || CFLAGS="-g"
643fi
644
645echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
646# On Suns, sometimes $CPP names a directory.
647if test -n "$CPP" && test -d "$CPP"; then
648 CPP=
649fi
650if test -z "$CPP"; then
651if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
652 echo $ac_n "(cached) $ac_c" 1>&6
653else
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.
656 CPP="${CC-cc} -E"
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"
662#include <assert.h>
663Syntax Error
664EOF
665ac_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; }
667ac_err=`grep -v '^ *+' conftest.out`
668if test -z "$ac_err"; then
669 :
670else
671 echo "$ac_err" >&5
672 rm -rf conftest*
673 CPP="${CC-cc} -E -traditional-cpp"
674 cat > conftest.$ac_ext <<EOF
675#line 676 "configure"
676#include "confdefs.h"
677#include <assert.h>
678Syntax Error
679EOF
680ac_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; }
682ac_err=`grep -v '^ *+' conftest.out`
683if test -z "$ac_err"; then
684 :
685else
686 echo "$ac_err" >&5
687 rm -rf conftest*
688 CPP=/lib/cpp
689fi
690rm -f conftest*
691fi
692rm -f conftest*
693 ac_cv_prog_CPP="$CPP"
694fi
695 CPP="$ac_cv_prog_CPP"
696else
697 ac_cv_prog_CPP="$CPP"
698fi
699echo "$ac_t""$CPP" 1>&6
700
701# Extract the first word of "ranlib", so it can be a program name with args.
702set dummy ranlib; ac_word=$2
703echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
704if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
705 echo $ac_n "(cached) $ac_c" 1>&6
706else
707 if test -n "$RANLIB"; then
708 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
709else
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"
715 break
716 fi
717 done
718 IFS="$ac_save_ifs"
719 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
720fi
721fi
722RANLIB="$ac_cv_prog_RANLIB"
723if test -n "$RANLIB"; then
724 echo "$ac_t""$RANLIB" 1>&6
725else
726 echo "$ac_t""no" 1>&6
727fi
728
729
730echo $ac_n "checking for AIX""... $ac_c" 1>&6
731cat > conftest.$ac_ext <<EOF
732#line 733 "configure"
733#include "confdefs.h"
734#ifdef _AIX
735 yes
736#endif
737
738EOF
739if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
740 egrep "yes" >/dev/null 2>&1; then
741 rm -rf conftest*
742 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
743#define _ALL_SOURCE 1
744EOF
745
746else
747 rm -rf conftest*
748 echo "$ac_t""no" 1>&6
749fi
750rm -f conftest*
751
752
753echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
754if test -d /etc/conf/kconfig.d &&
755 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
756then
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
761EOF
762
763 if test "$GCC" = yes; then
764 CC="$CC -posix"
765 else
766 CC="$CC -Xp"
767 fi
768else
769 echo "$ac_t""no" 1>&6
770 ISC=
771fi
772
773ac_safe=`echo "minix/config.h" | tr './\055' '___'`
774echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
775if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
776 echo $ac_n "(cached) $ac_c" 1>&6
777else
778 cat > conftest.$ac_ext <<EOF
779#line 780 "configure"
780#include "confdefs.h"
781#include <minix/config.h>
782EOF
783ac_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; }
785ac_err=`grep -v '^ *+' conftest.out`
786if test -z "$ac_err"; then
787 rm -rf conftest*
788 eval "ac_cv_header_$ac_safe=yes"
789else
790 echo "$ac_err" >&5
791 rm -rf conftest*
792 eval "ac_cv_header_$ac_safe=no"
793fi
794rm -f conftest*
795fi
796if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
797 echo "$ac_t""yes" 1>&6
798 MINIX=yes
799else
800 echo "$ac_t""no" 1>&6
801MINIX=
802fi
803
804if test "$MINIX" = yes; then
805 cat >> confdefs.h <<\EOF
806#define _POSIX_SOURCE 1
807EOF
808
809 cat >> confdefs.h <<\EOF
810#define _POSIX_1_SOURCE 2
811EOF
812
813 cat >> confdefs.h <<\EOF
814#define _MINIX 1
815EOF
816
817fi
818
819
820echo $ac_n "checking for working const""... $ac_c" 1>&6
821if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
822 echo $ac_n "(cached) $ac_c" 1>&6
823else
824 cat > conftest.$ac_ext <<EOF
825#line 826 "configure"
826#include "confdefs.h"
827
828int main() { return 0; }
829int t() {
830
831/* Ultrix mips cc rejects this. */
832typedef int charset[2]; const charset x;
833/* SunOS 4.1.1 cc rejects this. */
834char const *const *ccp;
835char **p;
836/* NEC SVR4.0.2 mips cc rejects this. */
837struct point {int x, y;};
838static 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 */
842const char *g = "string";
843ccp = &g + (g ? g-g : 0);
844/* HPUX 7.0 cc rejects these. */
845++ccp;
846p = (char**) ccp;
847ccp = (char const *const *) p;
848{ /* SCO 3.2v4 cc rejects this. */
849 char *t;
850 char const *s = 0 ? (char *) 0 : (char const *) 0;
851
852 *t++ = 0;
853}
854{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
855 int x[] = {25, 17};
856 const int *foo = &x[0];
857 ++foo;
858}
859{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
860 typedef const int *iptr;
861 iptr p = 0;
862 ++p;
863}
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;
868}
869{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
870 const int foo = 10;
871}
872
873; return 0; }
874EOF
875if { (eval echo configure:876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
876 rm -rf conftest*
877 ac_cv_c_const=yes
878else
879 rm -rf conftest*
880 ac_cv_c_const=no
881fi
882rm -f conftest*
883
884fi
885
886echo "$ac_t""$ac_cv_c_const" 1>&6
887if test $ac_cv_c_const = no; then
888 cat >> confdefs.h <<\EOF
889#define const
890EOF
891
892fi
893
894
895# If we cannot run a trivial program, we must be cross compiling.
896echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
897if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
898 echo $ac_n "(cached) $ac_c" 1>&6
899else
900 if test "$cross_compiling" = yes; then
901 ac_cv_c_cross=yes
902else
903cat > conftest.$ac_ext <<EOF
904#line 905 "configure"
905#include "confdefs.h"
906main(){return(0);}
907EOF
908{ (eval echo configure:909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
909if test -s conftest && (./conftest; exit) 2>/dev/null; then
910 ac_cv_c_cross=no
911else
912 ac_cv_c_cross=yes
913fi
914fi
915rm -fr conftest*
916fi
917
918echo "$ac_t""$ac_cv_c_cross" 1>&6
919cross_compiling=$ac_cv_c_cross
920
921echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
922if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
923 echo $ac_n "(cached) $ac_c" 1>&6
924else
925 cat > conftest.$ac_ext <<EOF
926#line 927 "configure"
927#include "confdefs.h"
928#include <stdlib.h>
929#include <stdarg.h>
930#include <string.h>
931#include <float.h>
932EOF
933ac_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; }
935ac_err=`grep -v '^ *+' conftest.out`
936if test -z "$ac_err"; then
937 rm -rf conftest*
938 ac_cv_header_stdc=yes
939else
940 echo "$ac_err" >&5
941 rm -rf conftest*
942 ac_cv_header_stdc=no
943fi
944rm -f conftest*
945
946if test $ac_cv_header_stdc = yes; then
947 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
948cat > conftest.$ac_ext <<EOF
949#line 950 "configure"
950#include "confdefs.h"
951#include <string.h>
952EOF
953if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
954 egrep "memchr" >/dev/null 2>&1; then
955 :
956else
957 rm -rf conftest*
958 ac_cv_header_stdc=no
959fi
960rm -f conftest*
961
962fi
963
964if test $ac_cv_header_stdc = yes; then
965 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
966cat > conftest.$ac_ext <<EOF
967#line 968 "configure"
968#include "confdefs.h"
969#include <stdlib.h>
970EOF
971if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
972 egrep "free" >/dev/null 2>&1; then
973 :
974else
975 rm -rf conftest*
976 ac_cv_header_stdc=no
977fi
978rm -f conftest*
979
980fi
981
982if test $ac_cv_header_stdc = yes; then
983 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
984if test "$cross_compiling" = yes; then
985 :
986else
987cat > conftest.$ac_ext <<EOF
988#line 989 "configure"
989#include "confdefs.h"
990#include <ctype.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)))
994int main () { int i; for (i = 0; i < 256; i++)
995if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
996exit (0); }
997
998EOF
999{ (eval echo configure:1000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1000if test -s conftest && (./conftest; exit) 2>/dev/null; then
1001 :
1002else
1003 ac_cv_header_stdc=no
1004fi
1005fi
1006rm -fr conftest*
1007fi
1008fi
1009
1010echo "$ac_t""$ac_cv_header_stdc" 1>&6
1011if test $ac_cv_header_stdc = yes; then
1012 cat >> confdefs.h <<\EOF
1013#define STDC_HEADERS 1
1014EOF
1015
1016fi
1017
1018ac_header_dirent=no
1019for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1020do
1021ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
1022echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1023if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1024 echo $ac_n "(cached) $ac_c" 1>&6
1025else
1026 cat > conftest.$ac_ext <<EOF
1027#line 1028 "configure"
1028#include "confdefs.h"
1029#include <sys/types.h>
1030#include <$ac_hdr>
1031int main() { return 0; }
1032int t() {
1033DIR *dirp = 0;
1034; return 0; }
1035EOF
1036if { (eval echo configure:1037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1037 rm -rf conftest*
1038 eval "ac_cv_header_dirent_$ac_safe=yes"
1039else
1040 rm -rf conftest*
1041 eval "ac_cv_header_dirent_$ac_safe=no"
1042fi
1043rm -f conftest*
1044
1045fi
1046if 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
1051EOF
1052 ac_header_dirent=$ac_hdr; break
1053else
1054 echo "$ac_t""no" 1>&6
1055fi
1056done
1057# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1058if test $ac_header_dirent = dirent.h; then
1059echo $ac_n "checking for -ldir""... $ac_c" 1>&6
2e18892a 1060ac_lib_var=`echo dir'_'opendir | tr './+\055' '__p_'`
0f2d19dd
JB
1061if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1062 echo $ac_n "(cached) $ac_c" 1>&6
1063else
1064 ac_save_LIBS="$LIBS"
1065LIBS="-ldir $LIBS"
1066cat > conftest.$ac_ext <<EOF
1067#line 1068 "configure"
1068#include "confdefs.h"
1069/* Override any gcc2 internal prototype to avoid an error. */
2e18892a
GH
1070/* We use char because int might match the return type of a gcc2
1071 builtin and then its argument prototype would still apply. */
0f2d19dd
JB
1072char opendir();
1073
1074int main() { return 0; }
1075int t() {
1076opendir()
1077; return 0; }
1078EOF
2e18892a 1079if { (eval echo configure:1080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
0f2d19dd
JB
1080 rm -rf conftest*
1081 eval "ac_cv_lib_$ac_lib_var=yes"
1082else
1083 rm -rf conftest*
1084 eval "ac_cv_lib_$ac_lib_var=no"
1085fi
1086rm -f conftest*
1087LIBS="$ac_save_LIBS"
1088
1089fi
1090if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1091 echo "$ac_t""yes" 1>&6
1092 LIBS="$LIBS -ldir"
1093else
1094 echo "$ac_t""no" 1>&6
1095fi
1096
1097else
1098echo $ac_n "checking for -lx""... $ac_c" 1>&6
2e18892a 1099ac_lib_var=`echo x'_'opendir | tr './+\055' '__p_'`
0f2d19dd
JB
1100if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1101 echo $ac_n "(cached) $ac_c" 1>&6
1102else
1103 ac_save_LIBS="$LIBS"
1104LIBS="-lx $LIBS"
1105cat > conftest.$ac_ext <<EOF
2e18892a 1106#line 1107 "configure"
0f2d19dd
JB
1107#include "confdefs.h"
1108/* Override any gcc2 internal prototype to avoid an error. */
2e18892a
GH
1109/* We use char because int might match the return type of a gcc2
1110 builtin and then its argument prototype would still apply. */
0f2d19dd
JB
1111char opendir();
1112
1113int main() { return 0; }
1114int t() {
1115opendir()
1116; return 0; }
1117EOF
2e18892a 1118if { (eval echo configure:1119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
0f2d19dd
JB
1119 rm -rf conftest*
1120 eval "ac_cv_lib_$ac_lib_var=yes"
1121else
1122 rm -rf conftest*
1123 eval "ac_cv_lib_$ac_lib_var=no"
1124fi
1125rm -f conftest*
1126LIBS="$ac_save_LIBS"
1127
1128fi
1129if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1130 echo "$ac_t""yes" 1>&6
1131 LIBS="$LIBS -lx"
1132else
1133 echo "$ac_t""no" 1>&6
1134fi
1135
1136fi
1137
1138echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1139if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1140 echo $ac_n "(cached) $ac_c" 1>&6
1141else
1142 cat > conftest.$ac_ext <<EOF
2e18892a 1143#line 1144 "configure"
0f2d19dd
JB
1144#include "confdefs.h"
1145#include <sys/types.h>
1146#include <sys/time.h>
1147#include <time.h>
1148int main() { return 0; }
1149int t() {
1150struct tm *tp;
1151; return 0; }
1152EOF
2e18892a 1153if { (eval echo configure:1154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
0f2d19dd
JB
1154 rm -rf conftest*
1155 ac_cv_header_time=yes
1156else
1157 rm -rf conftest*
1158 ac_cv_header_time=no
1159fi
1160rm -f conftest*
1161
1162fi
1163
1164echo "$ac_t""$ac_cv_header_time" 1>&6
1165if test $ac_cv_header_time = yes; then
1166 cat >> confdefs.h <<\EOF
1167#define TIME_WITH_SYS_TIME 1
1168EOF
1169
1170fi
1171
1172echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1173if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1174 echo $ac_n "(cached) $ac_c" 1>&6
1175else
1176 cat > conftest.$ac_ext <<EOF
2e18892a 1177#line 1178 "configure"
0f2d19dd
JB
1178#include "confdefs.h"
1179#include <sys/types.h>
1180#include <sys/wait.h>
1181#ifndef WEXITSTATUS
1182#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1183#endif
1184#ifndef WIFEXITED
1185#define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1186#endif
1187int main() { return 0; }
1188int t() {
1189int s;
1190wait (&s);
1191s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1192; return 0; }
1193EOF
2e18892a 1194if { (eval echo configure:1195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
0f2d19dd
JB
1195 rm -rf conftest*
1196 ac_cv_header_sys_wait_h=yes
1197else
1198 rm -rf conftest*
1199 ac_cv_header_sys_wait_h=no
1200fi
1201rm -f conftest*
1202
1203fi
1204
1205echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1206if test $ac_cv_header_sys_wait_h = yes; then
1207 cat >> confdefs.h <<\EOF
1208#define HAVE_SYS_WAIT_H 1
1209EOF
1210
1211fi
1212
95b88819 1213for 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
0f2d19dd
JB
1214do
1215ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
1216echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1217if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1218 echo $ac_n "(cached) $ac_c" 1>&6
1219else
1220 cat > conftest.$ac_ext <<EOF
2e18892a 1221#line 1222 "configure"
0f2d19dd
JB
1222#include "confdefs.h"
1223#include <$ac_hdr>
1224EOF
1225ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2e18892a 1226{ (eval echo configure:1227: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
0f2d19dd
JB
1227ac_err=`grep -v '^ *+' conftest.out`
1228if test -z "$ac_err"; then
1229 rm -rf conftest*
1230 eval "ac_cv_header_$ac_safe=yes"
1231else
1232 echo "$ac_err" >&5
1233 rm -rf conftest*
1234 eval "ac_cv_header_$ac_safe=no"
1235fi
1236rm -f conftest*
1237fi
1238if 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
1243EOF
1244
1245else
1246 echo "$ac_t""no" 1>&6
1247fi
1248done
1249
1250
1251echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
1252if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
1253 echo $ac_n "(cached) $ac_c" 1>&6
1254else
1255 cat > conftest.$ac_ext <<EOF
2e18892a 1256#line 1257 "configure"
0f2d19dd
JB
1257#include "confdefs.h"
1258#include <sys/types.h>
1259EOF
1260if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1261 egrep "uid_t" >/dev/null 2>&1; then
1262 rm -rf conftest*
1263 ac_cv_type_uid_t=yes
1264else
1265 rm -rf conftest*
1266 ac_cv_type_uid_t=no
1267fi
1268rm -f conftest*
1269
1270fi
1271
1272echo "$ac_t""$ac_cv_type_uid_t" 1>&6
1273if test $ac_cv_type_uid_t = no; then
1274 cat >> confdefs.h <<\EOF
1275#define uid_t int
1276EOF
1277
1278 cat >> confdefs.h <<\EOF
1279#define gid_t int
1280EOF
1281
1282fi
1283
1284echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
1285if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
1286 echo $ac_n "(cached) $ac_c" 1>&6
1287else
1288 if test "$cross_compiling" = yes; then
1289 ac_cv_type_getgroups=cross
1290else
1291cat > conftest.$ac_ext <<EOF
2e18892a 1292#line 1293 "configure"
0f2d19dd
JB
1293#include "confdefs.h"
1294
1295/* Thanks to Mike Rendell for this test. */
1296#include <sys/types.h>
1297#define NGID 256
1298#undef MAX
1299#define MAX(x, y) ((x) > (y) ? (x) : (y))
1300main()
1301{
1302 gid_t gidset[NGID];
1303 int i, n;
1304 union { gid_t gval; long lval; } val;
1305
1306 val.lval = -1;
1307 for (i = 0; i < NGID; i++)
1308 gidset[i] = val.gval;
1309 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
1310 gidset);
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);
1314}
1315
1316EOF
2e18892a 1317{ (eval echo configure:1318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
0f2d19dd
JB
1318if test -s conftest && (./conftest; exit) 2>/dev/null; then
1319 ac_cv_type_getgroups=gid_t
1320else
1321 ac_cv_type_getgroups=int
1322fi
1323fi
1324rm -fr conftest*
1325if test $ac_cv_type_getgroups = cross; then
1326 cat > conftest.$ac_ext <<EOF
2e18892a 1327#line 1328 "configure"
0f2d19dd
JB
1328#include "confdefs.h"
1329#include <unistd.h>
1330EOF
1331if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1332 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
1333 rm -rf conftest*
1334 ac_cv_type_getgroups=gid_t
1335else
1336 rm -rf conftest*
1337 ac_cv_type_getgroups=int
1338fi
1339rm -f conftest*
1340
1341fi
1342fi
1343
1344echo "$ac_t""$ac_cv_type_getgroups" 1>&6
1345cat >> confdefs.h <<EOF
1346#define GETGROUPS_T $ac_cv_type_getgroups
1347EOF
1348
1349
1350echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1351if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1352 echo $ac_n "(cached) $ac_c" 1>&6
1353else
1354 cat > conftest.$ac_ext <<EOF
2e18892a 1355#line 1356 "configure"
0f2d19dd
JB
1356#include "confdefs.h"
1357#include <sys/types.h>
1358#include <signal.h>
1359#ifdef signal
1360#undef signal
1361#endif
1362#ifdef __cplusplus
1363extern "C" void (*signal (int, void (*)(int)))(int);
1364#else
1365void (*signal ()) ();
1366#endif
1367
1368int main() { return 0; }
1369int t() {
1370int i;
1371; return 0; }
1372EOF
2e18892a 1373if { (eval echo configure:1374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
0f2d19dd
JB
1374 rm -rf conftest*
1375 ac_cv_type_signal=void
1376else
1377 rm -rf conftest*
1378 ac_cv_type_signal=int
1379fi
1380rm -f conftest*
1381
1382fi
1383
1384echo "$ac_t""$ac_cv_type_signal" 1>&6
1385cat >> confdefs.h <<EOF
1386#define RETSIGTYPE $ac_cv_type_signal
1387EOF
1388
1389
b09ca643
JB
1390echo $ac_n "checking for mode_t""... $ac_c" 1>&6
1391if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
1392 echo $ac_n "(cached) $ac_c" 1>&6
1393else
1394 cat > conftest.$ac_ext <<EOF
1395#line 1396 "configure"
1396#include "confdefs.h"
1397#include <sys/types.h>
1398#if STDC_HEADERS
1399#include <stdlib.h>
1400#endif
1401EOF
1402if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1403 egrep "mode_t" >/dev/null 2>&1; then
1404 rm -rf conftest*
1405 ac_cv_type_mode_t=yes
1406else
1407 rm -rf conftest*
1408 ac_cv_type_mode_t=no
1409fi
1410rm -f conftest*
1411
1412fi
1413echo "$ac_t""$ac_cv_type_mode_t" 1>&6
1414if test $ac_cv_type_mode_t = no; then
1415 cat >> confdefs.h <<\EOF
1416#define mode_t int
1417EOF
1418
1419fi
1420
0f2d19dd 1421
2e18892a 1422for ac_func in ftime times geteuid seteuid setegid select uname mkdir rmdir getcwd rename putenv setlocale strftime strptime mknod nice lstat readlink symlink sync
0f2d19dd
JB
1423do
1424echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1425if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1426 echo $ac_n "(cached) $ac_c" 1>&6
1427else
1428 cat > conftest.$ac_ext <<EOF
b09ca643 1429#line 1430 "configure"
0f2d19dd
JB
1430#include "confdefs.h"
1431/* System header to define __stub macros and hopefully few prototypes,
1432 which can conflict with char $ac_func(); below. */
1433#include <assert.h>
1434/* Override any gcc2 internal prototype to avoid an error. */
2e18892a
GH
1435/* We use char because int might match the return type of a gcc2
1436 builtin and then its argument prototype would still apply. */
0f2d19dd
JB
1437char $ac_func();
1438
1439int main() { return 0; }
1440int t() {
1441
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)
1446choke me
1447#else
1448$ac_func();
1449#endif
1450
1451; return 0; }
1452EOF
b09ca643 1453if { (eval echo configure:1454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
0f2d19dd
JB
1454 rm -rf conftest*
1455 eval "ac_cv_func_$ac_func=yes"
1456else
1457 rm -rf conftest*
1458 eval "ac_cv_func_$ac_func=no"
1459fi
1460rm -f conftest*
1461
1462fi
1463if 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
1468EOF
1469
1470else
1471 echo "$ac_t""no" 1>&6
1472fi
1473done
1474
1475
1476for ac_func in inet_aton
1477do
1478echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1479if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1480 echo $ac_n "(cached) $ac_c" 1>&6
1481else
1482 cat > conftest.$ac_ext <<EOF
b09ca643 1483#line 1484 "configure"
0f2d19dd
JB
1484#include "confdefs.h"
1485/* System header to define __stub macros and hopefully few prototypes,
1486 which can conflict with char $ac_func(); below. */
1487#include <assert.h>
1488/* Override any gcc2 internal prototype to avoid an error. */
2e18892a
GH
1489/* We use char because int might match the return type of a gcc2
1490 builtin and then its argument prototype would still apply. */
0f2d19dd
JB
1491char $ac_func();
1492
1493int main() { return 0; }
1494int t() {
1495
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)
1500choke me
1501#else
1502$ac_func();
1503#endif
1504
1505; return 0; }
1506EOF
b09ca643 1507if { (eval echo configure:1508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
0f2d19dd
JB
1508 rm -rf conftest*
1509 eval "ac_cv_func_$ac_func=yes"
1510else
1511 rm -rf conftest*
1512 eval "ac_cv_func_$ac_func=no"
1513fi
1514rm -f conftest*
1515
1516fi
1517if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1518 echo "$ac_t""yes" 1>&6
1519 :
1520else
1521 echo "$ac_t""no" 1>&6
1522LIBOBJS="$LIBOBJS ${ac_func}.o"
1523fi
1524
1525done
1526
1527
1528echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
1529if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
1530 echo $ac_n "(cached) $ac_c" 1>&6
1531else
1532 cat > conftest.$ac_ext <<EOF
b09ca643 1533#line 1534 "configure"
0f2d19dd
JB
1534#include "confdefs.h"
1535#include <sys/types.h>
1536#include <sys/stat.h>
1537int main() { return 0; }
1538int t() {
1539struct stat s; s.st_rdev;
1540; return 0; }
1541EOF
b09ca643 1542if { (eval echo configure:1543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
0f2d19dd
JB
1543 rm -rf conftest*
1544 ac_cv_struct_st_rdev=yes
1545else
1546 rm -rf conftest*
1547 ac_cv_struct_st_rdev=no
1548fi
1549rm -f conftest*
1550
1551fi
1552
1553echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
1554if test $ac_cv_struct_st_rdev = yes; then
1555 cat >> confdefs.h <<\EOF
1556#define HAVE_ST_RDEV 1
1557EOF
1558
1559fi
1560
1561echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
1562if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
1563 echo $ac_n "(cached) $ac_c" 1>&6
1564else
1565 cat > conftest.$ac_ext <<EOF
b09ca643 1566#line 1567 "configure"
0f2d19dd
JB
1567#include "confdefs.h"
1568#include <sys/types.h>
1569#include <sys/stat.h>
1570int main() { return 0; }
1571int t() {
1572struct stat s; s.st_blksize;
1573; return 0; }
1574EOF
b09ca643 1575if { (eval echo configure:1576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
0f2d19dd
JB
1576 rm -rf conftest*
1577 ac_cv_struct_st_blksize=yes
1578else
1579 rm -rf conftest*
1580 ac_cv_struct_st_blksize=no
1581fi
1582rm -f conftest*
1583
1584fi
1585
1586echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
1587if test $ac_cv_struct_st_blksize = yes; then
1588 cat >> confdefs.h <<\EOF
1589#define HAVE_ST_BLKSIZE 1
1590EOF
1591
1592fi
1593
1594echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
1595if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
1596 echo $ac_n "(cached) $ac_c" 1>&6
1597else
1598 cat > conftest.$ac_ext <<EOF
b09ca643 1599#line 1600 "configure"
0f2d19dd
JB
1600#include "confdefs.h"
1601#include <sys/types.h>
1602#include <sys/stat.h>
1603int main() { return 0; }
1604int t() {
1605struct stat s; s.st_blocks;
1606; return 0; }
1607EOF
b09ca643 1608if { (eval echo configure:1609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
0f2d19dd
JB
1609 rm -rf conftest*
1610 ac_cv_struct_st_blocks=yes
1611else
1612 rm -rf conftest*
1613 ac_cv_struct_st_blocks=no
1614fi
1615rm -f conftest*
1616
1617fi
1618
1619echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
1620if test $ac_cv_struct_st_blocks = yes; then
1621 cat >> confdefs.h <<\EOF
1622#define HAVE_ST_BLOCKS 1
1623EOF
1624
1625else
1626 LIBOBJS="$LIBOBJS fileblocks.o"
1627fi
1628
1629
1630#--------------------------------------------------------------------
1631#
1632# Which way does the stack grow?
1633#
1634#--------------------------------------------------------------------
1635
1636if test "$cross_compiling" = yes; then
1637 echo "configure: warning: Guessing that stack grows down -- see scmconfig.h.in" 1>&2
1638else
1639cat > conftest.$ac_ext <<EOF
b09ca643 1640#line 1641 "configure"
0f2d19dd
JB
1641#include "confdefs.h"
1642aux (l) unsigned long l;
1643 { int x; exit (l >= ((unsigned long)&x)); }
1644 main () { int q; aux((unsigned long)&q); }
1645EOF
b09ca643 1646{ (eval echo configure:1647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
0f2d19dd
JB
1647if test -s conftest && (./conftest; exit) 2>/dev/null; then
1648 cat >> confdefs.h <<\EOF
1649#define SCM_STACK_GROWS_UP 1
1650EOF
1651
1652fi
1653fi
1654rm -fr conftest*
1655
1656
1657if test "$cross_compiling" = yes; then
1658 cat >> confdefs.h <<\EOF
1659#define SCM_SINGLES 1
1660EOF
1661
1662 echo "configure: warning: Guessing that sizeof(long) == sizeof(float) -- see scmconfig.h.in" 1>&2
1663else
1664cat > conftest.$ac_ext <<EOF
b09ca643 1665#line 1666 "configure"
0f2d19dd
JB
1666#include "confdefs.h"
1667main () { exit (sizeof(float) != sizeof(long)); }
1668EOF
b09ca643 1669{ (eval echo configure:1670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
0f2d19dd
JB
1670if test -s conftest && (./conftest; exit) 2>/dev/null; then
1671 cat >> confdefs.h <<\EOF
1672#define SCM_SINGLES 1
1673EOF
1674
1675fi
1676fi
1677rm -fr conftest*
1678
2e18892a
GH
1679echo $ac_n "checking for struct linger""... $ac_c" 1>&6
1680if eval "test \"`echo '$''{'scm_cv_struct_linger'+set}'`\" = set"; then
1681 echo $ac_n "(cached) $ac_c" 1>&6
1682else
1683 cat > conftest.$ac_ext <<EOF
b09ca643 1684#line 1685 "configure"
2e18892a
GH
1685#include "confdefs.h"
1686#include <sys/socket.h>
1687int main() { return 0; }
1688int t() {
1689struct linger lgr; lgr.l_linger = 100
1690; return 0; }
1691EOF
b09ca643 1692if { (eval echo configure:1693: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2e18892a
GH
1693 rm -rf conftest*
1694 scm_cv_struct_linger="yes"
1695else
1696 rm -rf conftest*
1697 scm_cv_struct_linger="no"
1698fi
1699rm -f conftest*
0f2d19dd 1700
2e18892a 1701fi
0f2d19dd 1702
2e18892a
GH
1703echo "$ac_t""$scm_cv_struct_linger" 1>&6
1704if test $scm_cv_struct_linger = yes; then
1705 cat >> confdefs.h <<\EOF
1706#define HAVE_STRUCT_LINGER 1
1707EOF
0f2d19dd 1708
2e18892a
GH
1709fi
1710
0f2d19dd
JB
1711#--------------------------------------------------------------------
1712#
1713# How can you violate a stdio abstraction by setting a stream's fd?
1714#
1715#--------------------------------------------------------------------
1716
1717FD_SETTER=""
1718
1719if test "x$FD_SETTER" = x; then
1720 cat > conftest.$ac_ext <<EOF
b09ca643 1721#line 1722 "configure"
0f2d19dd
JB
1722#include "confdefs.h"
1723#include <stdio.h>
1724
1725int main() { return 0; }
1726int t() {
1727stdout->_file = 1
1728; return 0; }
1729EOF
b09ca643 1730if { (eval echo configure:1731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
0f2d19dd
JB
1731 rm -rf conftest*
1732 FD_SETTER="((F)->_file = (D))"
1733fi
1734rm -f conftest*
1735
1736fi
1737
1738if test "x$FD_SETTER" = x; then
1739 cat > conftest.$ac_ext <<EOF
b09ca643 1740#line 1741 "configure"
0f2d19dd
JB
1741#include "confdefs.h"
1742#include <stdio.h>
1743
1744int main() { return 0; }
1745int t() {
1746stdout->_fileno
1747; return 0; }
1748EOF
b09ca643 1749if { (eval echo configure:1750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
0f2d19dd
JB
1750 rm -rf conftest*
1751 FD_SETTER="((F)->_fileno = (D))"
1752fi
1753rm -f conftest*
1754
1755fi
1756
1757
1758test "x$FD_SETTER" != x && cat >> confdefs.h <<\EOF
1759#define HAVE_FD_SETTER 1
1760EOF
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775trap '' 1 2 15
1776cat > 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.
1781#
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.
1790#
1791EOF
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.
1794(set) 2>&1 |
1795 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
1796 >> confcache
1797if cmp -s $cache_file confcache; then
1798 :
1799else
1800 if test -w $cache_file; then
1801 echo "updating cache $cache_file"
1802 cat confcache > $cache_file
1803 else
1804 echo "not updating unwritable cache $cache_file"
1805 fi
1806fi
1807rm -f confcache
1808
1809trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1810
1811test "x$prefix" = xNONE && prefix=$ac_default_prefix
1812# Let make expand exec_prefix.
1813test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1814
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.
1818if test "x$srcdir" = x.; then
1819 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1820fi
1821
1822trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1823
1824DEFS=-DHAVE_CONFIG_H
1825
1826# Without the "./", some shells look in PATH for config.status.
1827: ${CONFIG_STATUS=./config.status}
1828
1829echo creating $CONFIG_STATUS
1830rm -f $CONFIG_STATUS
1831cat > $CONFIG_STATUS <<EOF
1832#! /bin/sh
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`:
1837#
1838# $0 $ac_configure_args
1839#
1840# Compiler output produced by configure, useful for debugging
1841# configure, is in ./config.log if it exists.
1842
1843ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1844for ac_option
1845do
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)
2e18892a 1851 echo "$CONFIG_STATUS generated by autoconf version 2.10"
0f2d19dd
JB
1852 exit 0 ;;
1853 -help | --help | --hel | --he | --h)
1854 echo "\$ac_cs_usage"; exit 0 ;;
1855 *) echo "\$ac_cs_usage"; exit 1 ;;
1856 esac
1857done
1858
1859ac_given_srcdir=$srcdir
1860
1861trap 'rm -fr `echo "Makefile fd.h scmconfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1862EOF
1863cat >> $CONFIG_STATUS <<EOF
1864
1865# Protect against being on the right side of a sed subst in config.status.
1866sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1867 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1868$ac_vpsub
1869$extrasub
1870s%@CFLAGS@%$CFLAGS%g
1871s%@CPPFLAGS@%$CPPFLAGS%g
1872s%@CXXFLAGS@%$CXXFLAGS%g
1873s%@DEFS@%$DEFS%g
1874s%@LDFLAGS@%$LDFLAGS%g
1875s%@LIBS@%$LIBS%g
1876s%@exec_prefix@%$exec_prefix%g
1877s%@prefix@%$prefix%g
1878s%@program_transform_name@%$program_transform_name%g
1879s%@bindir@%$bindir%g
1880s%@sbindir@%$sbindir%g
1881s%@libexecdir@%$libexecdir%g
1882s%@datadir@%$datadir%g
1883s%@sysconfdir@%$sysconfdir%g
1884s%@sharedstatedir@%$sharedstatedir%g
1885s%@localstatedir@%$localstatedir%g
1886s%@libdir@%$libdir%g
1887s%@includedir@%$includedir%g
1888s%@oldincludedir@%$oldincludedir%g
1889s%@infodir@%$infodir%g
1890s%@mandir@%$mandir%g
1891s%@CC@%$CC%g
1892s%@CPP@%$CPP%g
1893s%@RANLIB@%$RANLIB%g
1894s%@LIBOBJS@%$LIBOBJS%g
1895s%@FD_SETTER@%$FD_SETTER%g
1896s%@TCL_SRC_DIR@%$TCL_SRC_DIR%g
1897s%@TK_SRC_DIR@%$TK_SRC_DIR%g
1898s%@XINCLUDES@%$XINCLUDES%g
1899s%@GUILE_MAJOR_VERSION@%$GUILE_MAJOR_VERSION%g
1900s%@GUILE_MINOR_VERSION@%$GUILE_MINOR_VERSION%g
1901s%@GUILE_VERSION@%$GUILE_VERSION%g
1902
1903CEOF
1904EOF
1905cat >> $CONFIG_STATUS <<EOF
1906
1907CONFIG_FILES=\${CONFIG_FILES-"Makefile fd.h"}
1908EOF
1909cat >> $CONFIG_STATUS <<\EOF
1910for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1911 # Support "outfile[:infile]", defaulting infile="outfile.in".
1912 case "$ac_file" 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" ;;
1916 esac
1917
1918 # Adjust relative srcdir, etc. for subdirectories.
1919
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'`
1928 else
1929 ac_dir_suffix= ac_dots=
1930 fi
1931
1932 case "$ac_given_srcdir" in
1933 .) srcdir=.
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" ;;
1937 *) # Relative path.
1938 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1939 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1940 esac
1941
1942 echo creating "$ac_file"
1943 rm -f "$ac_file"
1944 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1945 case "$ac_file" in
1946 *Makefile*) ac_comsub="1i\\
1947# $configure_input" ;;
1948 *) ac_comsub= ;;
1949 esac
1950 sed -e "$ac_comsub
1951s%@configure_input@%$configure_input%g
1952s%@srcdir@%$srcdir%g
1953s%@top_srcdir@%$top_srcdir%g
1954" -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
1955fi; done
1956rm -f conftest.subs
1957
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.
1960#
1961# ac_d sets the value in "#define NAME VALUE" lines.
1962ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1963ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
1964ac_dC='\3'
1965ac_dD='%g'
1966# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1967ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1968ac_uB='\([ ]\)%\1#\2define\3'
1969ac_uC=' '
1970ac_uD='\4%g'
1971# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1972ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1973ac_eB='$%\1#\2define\3'
1974ac_eC=' '
1975ac_eD='%g'
1976
1977CONFIG_HEADERS=${CONFIG_HEADERS-"scmconfig.h"}
1978for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1979 # Support "outfile[:infile]", defaulting infile="outfile.in".
1980 case "$ac_file" 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" ;;
1984 esac
1985
1986 echo creating $ac_file
1987
1988 rm -f conftest.frag conftest.in conftest.out
1989 cp $ac_given_srcdir/$ac_file_in conftest.in
1990
1991EOF
1992
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.
1997rm -f conftest.vals
1998cat > conftest.hdr <<\EOF
1999s/[\\&%]/\\&/g
2000s%[\\$`]%\\&%g
2001s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2002s%ac_d%ac_u%gp
2003s%ac_u%ac_e%gp
2004EOF
2005sed -n -f conftest.hdr confdefs.h > conftest.vals
2006rm -f conftest.hdr
2007
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.
2011cat >> conftest.vals <<\EOF
2012s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2013EOF
2014
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.
2018ac_max_here_lines=12
2019
2020rm -f conftest.tail
2021while :
2022do
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
2029 echo 'CEOF
2030 sed -f conftest.frag conftest.in > conftest.out
2031 rm -f conftest.in
2032 mv conftest.out conftest.in
2033' >> $CONFIG_STATUS
2034 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2035 rm -f conftest.vals
2036 mv conftest.tail conftest.vals
2037done
2038rm -f conftest.vals
2039
2040cat >> $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
2044 rm -f conftest.in
2045 if cmp -s $ac_file conftest.h 2>/dev/null; then
2046 echo "$ac_file is unchanged"
2047 rm -f conftest.h
2048 else
2e18892a
GH
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"
2054 fi
0f2d19dd
JB
2055 rm -f $ac_file
2056 mv conftest.h $ac_file
2057 fi
2058fi; done
2059
2060
2061
2062exit 0
2063EOF
2064chmod +x $CONFIG_STATUS
2065rm -fr confdefs* $ac_clean_files
2066test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2067
2068