3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
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 --enable-maintainer-mode enable make rules and dependencies not useful
16 (and sometimes confusing) to the casual installer"
18 --disable-debug Don't include debugging support"
20 --enable-dynamic-linking Include support for dynamic linking"
22 --enable-guile-debug Include internal debugging functions"
24 --enable-shared build shared libraries [default=yes]"
26 --with-threads thread interface"
28 # Initialize some variables set by options.
29 # The variables have the same names as the options, with
30 # dashes changed to underlines.
32 cache_file
=.
/config.cache
41 program_transform_name
=s
,x
,x
,
49 bindir
='${exec_prefix}/bin'
50 sbindir
='${exec_prefix}/sbin'
51 libexecdir
='${exec_prefix}/libexec'
52 datadir
='${prefix}/share'
53 sysconfdir
='${prefix}/etc'
54 sharedstatedir
='${prefix}/com'
55 localstatedir
='${prefix}/var'
56 libdir
='${exec_prefix}/lib'
57 includedir
='${prefix}/include'
58 oldincludedir
='/usr/include'
59 infodir
='${prefix}/info'
60 mandir
='${prefix}/man'
62 # Initialize some other variables.
65 # Maximum number of lines to put in a shell here document.
72 # If the previous option needs an argument, assign it.
73 if test -n "$ac_prev"; then
74 eval "$ac_prev=\$ac_option"
80 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
84 # Accept the important Cygnus configure options, so we can diagnose typos.
88 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
90 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
91 bindir
="$ac_optarg" ;;
93 -build |
--build |
--buil |
--bui |
--bu)
95 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
98 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
99 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
100 ac_prev
=cache_file
;;
101 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
102 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
103 cache_file
="$ac_optarg" ;;
105 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
107 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
109 datadir
="$ac_optarg" ;;
111 -disable-* |
--disable-*)
112 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
113 # Reject names that are not valid shell variable names.
114 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
115 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
117 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
118 eval "enable_${ac_feature}=no" ;;
120 -enable-* |
--enable-*)
121 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
122 # Reject names that are not valid shell variable names.
123 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
124 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
126 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
131 eval "enable_${ac_feature}='$ac_optarg'" ;;
133 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
134 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
135 |
--exec |
--exe |
--ex)
136 ac_prev
=exec_prefix
;;
137 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
138 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
139 |
--exec=* |
--exe=* |
--ex=*)
140 exec_prefix
="$ac_optarg" ;;
142 -gas |
--gas |
--ga |
--g)
143 # Obsolete; use --with-gas.
146 -help |
--help |
--hel |
--he)
147 # Omit some internal or obsolete options to make the list less imposing.
148 # This message is too long to be a string in the A/UX 3.1 sh.
150 Usage: configure [options] [host]
151 Options: [defaults in brackets after descriptions]
153 --cache-file=FILE cache test results in FILE
154 --help print this message
155 --no-create do not create output files
156 --quiet, --silent do not print \`checking...' messages
157 --version print the version of autoconf that created configure
158 Directory and file names:
159 --prefix=PREFIX install architecture-independent files in PREFIX
161 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
163 --bindir=DIR user executables in DIR [EPREFIX/bin]
164 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
165 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
166 --datadir=DIR read-only architecture-independent data in DIR
168 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
169 --sharedstatedir=DIR modifiable architecture-independent data in DIR
171 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
172 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
173 --includedir=DIR C header files in DIR [PREFIX/include]
174 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
175 --infodir=DIR info documentation in DIR [PREFIX/info]
176 --mandir=DIR man documentation in DIR [PREFIX/man]
177 --srcdir=DIR find the sources in DIR [configure dir or ..]
178 --program-prefix=PREFIX prepend PREFIX to installed program names
179 --program-suffix=SUFFIX append SUFFIX to installed program names
180 --program-transform-name=PROGRAM
181 run sed PROGRAM on installed program names
185 --build=BUILD configure for building on BUILD [BUILD=HOST]
186 --host=HOST configure for HOST [guessed]
187 --target=TARGET configure for TARGET [TARGET=HOST]
188 Features and packages:
189 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
190 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
191 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
192 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
193 --x-includes=DIR X include files are in DIR
194 --x-libraries=DIR X library files are in DIR
196 if test -n "$ac_help"; then
197 echo "--enable and --with options recognized:$ac_help"
201 -host |
--host |
--hos |
--ho)
203 -host=* |
--host=* |
--hos=* |
--ho=*)
206 -includedir |
--includedir |
--includedi |
--included |
--include \
207 |
--includ |
--inclu |
--incl |
--inc)
208 ac_prev
=includedir
;;
209 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
210 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
211 includedir
="$ac_optarg" ;;
213 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
215 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
216 infodir
="$ac_optarg" ;;
218 -libdir |
--libdir |
--libdi |
--libd)
220 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
221 libdir
="$ac_optarg" ;;
223 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
224 |
--libexe |
--libex |
--libe)
225 ac_prev
=libexecdir
;;
226 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
227 |
--libexe=* |
--libex=* |
--libe=*)
228 libexecdir
="$ac_optarg" ;;
230 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
231 |
--localstate |
--localstat |
--localsta |
--localst \
232 |
--locals |
--local |
--loca |
--loc |
--lo)
233 ac_prev
=localstatedir
;;
234 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
235 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
236 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
237 localstatedir
="$ac_optarg" ;;
239 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
241 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
242 mandir
="$ac_optarg" ;;
245 # Obsolete; use --without-fp.
248 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
252 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
253 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
256 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
257 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
258 |
--oldin |
--oldi |
--old |
--ol |
--o)
259 ac_prev
=oldincludedir
;;
260 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
261 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
262 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
263 oldincludedir
="$ac_optarg" ;;
265 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
267 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
268 prefix
="$ac_optarg" ;;
270 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
271 |
--program-pre |
--program-pr |
--program-p)
272 ac_prev
=program_prefix
;;
273 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
274 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
275 program_prefix
="$ac_optarg" ;;
277 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
278 |
--program-suf |
--program-su |
--program-s)
279 ac_prev
=program_suffix
;;
280 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
281 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
282 program_suffix
="$ac_optarg" ;;
284 -program-transform-name |
--program-transform-name \
285 |
--program-transform-nam |
--program-transform-na \
286 |
--program-transform-n |
--program-transform- \
287 |
--program-transform |
--program-transfor \
288 |
--program-transfo |
--program-transf \
289 |
--program-trans |
--program-tran \
290 |
--progr-tra |
--program-tr |
--program-t)
291 ac_prev
=program_transform_name
;;
292 -program-transform-name=* |
--program-transform-name=* \
293 |
--program-transform-nam=* |
--program-transform-na=* \
294 |
--program-transform-n=* |
--program-transform-=* \
295 |
--program-transform=* |
--program-transfor=* \
296 |
--program-transfo=* |
--program-transf=* \
297 |
--program-trans=* |
--program-tran=* \
298 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
299 program_transform_name
="$ac_optarg" ;;
301 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
302 |
-silent |
--silent |
--silen |
--sile |
--sil)
305 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
307 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
309 sbindir
="$ac_optarg" ;;
311 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
312 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
313 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
315 ac_prev
=sharedstatedir
;;
316 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
317 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
318 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
320 sharedstatedir
="$ac_optarg" ;;
322 -site |
--site |
--sit)
324 -site=* |
--site=* |
--sit=*)
327 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
329 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
330 srcdir
="$ac_optarg" ;;
332 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
333 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
334 ac_prev
=sysconfdir
;;
335 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
336 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
337 sysconfdir
="$ac_optarg" ;;
339 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
341 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
342 target
="$ac_optarg" ;;
344 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
347 -version |
--version |
--versio |
--versi |
--vers)
348 echo "configure generated by autoconf version 2.12"
352 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
353 # Reject names that are not valid shell variable names.
354 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
355 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
357 ac_package
=`echo $ac_package| sed 's/-/_/g'`
362 eval "with_${ac_package}='$ac_optarg'" ;;
364 -without-* |
--without-*)
365 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
366 # Reject names that are not valid shell variable names.
367 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
368 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
370 ac_package
=`echo $ac_package| sed 's/-/_/g'`
371 eval "with_${ac_package}=no" ;;
374 # Obsolete; use --with-x.
377 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
378 |
--x-incl |
--x-inc |
--x-in |
--x-i)
379 ac_prev
=x_includes
;;
380 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
381 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
382 x_includes
="$ac_optarg" ;;
384 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
385 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
386 ac_prev
=x_libraries
;;
387 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
388 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
389 x_libraries
="$ac_optarg" ;;
391 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
395 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
396 echo "configure: warning: $ac_option: invalid host type" 1>&2
398 if test "x$nonopt" != xNONE
; then
399 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
407 if test -n "$ac_prev"; then
408 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
411 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
413 # File descriptor usage:
416 # 2 errors and warnings
417 # 3 some systems may open it to /dev/tty
418 # 4 used on the Kubota Titan
419 # 6 checking for... messages and results
420 # 5 compiler messages saved in config.log
421 if test "$silent" = yes; then
429 This file contains any messages produced by compilers while
430 running configure, to aid debugging if configure makes a mistake.
433 # Strip out --no-create and --no-recursion so they do not pile up.
434 # Also quote any args containing shell metacharacters.
439 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
440 |
--no-cr |
--no-c) ;;
441 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
442 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
443 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
444 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
445 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
450 # Only set these to C if already set. These must not be set unconditionally
451 # because not all systems understand e.g. LANG=C (notably SCO).
452 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
453 # Non-C LC_CTYPE values break the ctype check.
454 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
455 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
456 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
457 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
459 # confdefs.h avoids OS command line length limits that DEFS can exceed.
460 rm -rf conftest
* confdefs.h
461 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
464 # A filename unique to this package, relative to the directory that
465 # configure is in, which we can look for to find out if srcdir is correct.
466 ac_unique_file
=Makefile.
in
468 # Find the source files, if location was not specified.
469 if test -z "$srcdir"; then
470 ac_srcdir_defaulted
=yes
471 # Try the directory containing this script, then its parent.
473 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
474 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
476 if test ! -r $srcdir/$ac_unique_file; then
480 ac_srcdir_defaulted
=no
482 if test ! -r $srcdir/$ac_unique_file; then
483 if test "$ac_srcdir_defaulted" = yes; then
484 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
486 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
489 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
491 # Prefer explicitly selected file to automatically selected ones.
492 if test -z "$CONFIG_SITE"; then
493 if test "x$prefix" != xNONE
; then
494 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
496 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
499 for ac_site_file
in $CONFIG_SITE; do
500 if test -r "$ac_site_file"; then
501 echo "loading site script $ac_site_file"
506 if test -r "$cache_file"; then
507 echo "loading cache $cache_file"
510 echo "creating cache $cache_file"
515 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
516 ac_cpp
='$CPP $CPPFLAGS'
517 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
518 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
519 cross_compiling
=$ac_cv_prog_cc_cross
521 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
522 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
523 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
530 ac_n
= ac_c
='\c' ac_t
=
534 .
$srcdir/GUILE-VERSION
536 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
537 if test -f $ac_dir/install-sh
; then
539 ac_install_sh
="$ac_aux_dir/install-sh -c"
541 elif test -f $ac_dir/install.sh
; then
543 ac_install_sh
="$ac_aux_dir/install.sh -c"
547 if test -z "$ac_aux_dir"; then
548 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
550 ac_config_guess
=$ac_aux_dir/config.guess
551 ac_config_sub
=$ac_aux_dir/config.sub
552 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
554 # Find a good install program. We prefer a C program (faster),
555 # so one script is as good as another. But avoid the broken or
556 # incompatible versions:
557 # SysV /etc/install, /usr/sbin/install
558 # SunOS /usr/etc/install
561 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
562 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
563 # ./install, which can be erroneously created by make from ./install.sh.
564 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
565 echo "configure:566: checking for a BSD compatible install" >&5
566 if test -z "$INSTALL"; then
567 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
568 echo $ac_n "(cached) $ac_c" 1>&6
570 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
571 for ac_dir
in $PATH; do
572 # Account for people who put trailing slashes in PATH elements.
574 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
576 # OSF1 and SCO ODT 3.0 have their own names for install.
577 for ac_prog
in ginstall installbsd scoinst
install; do
578 if test -f $ac_dir/$ac_prog; then
579 if test $ac_prog = install &&
580 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
581 # AIX install. It has an incompatible calling convention.
582 # OSF/1 installbsd also uses dspmsg, but is usable.
585 ac_cv_path_install
="$ac_dir/$ac_prog -c"
596 if test "${ac_cv_path_install+set}" = set; then
597 INSTALL
="$ac_cv_path_install"
599 # As a last resort, use the slow shell script. We don't cache a
600 # path for INSTALL within a source directory, because that will
601 # break other packages using the cache if that directory is
602 # removed, or if the path is relative.
603 INSTALL
="$ac_install_sh"
606 echo "$ac_t""$INSTALL" 1>&6
608 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
609 # It thinks the first close brace ends the variable substitution.
610 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
612 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
615 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
623 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
624 echo "configure:625: checking whether build environment is sane" >&5
627 echo timestamp
> conftestfile
628 # Do `set' in a subshell so we don't clobber the current shell's
629 # arguments. Must try -L first in case configure is actually a
630 # symlink; some systems play weird games with the mod time of symlinks
631 # (eg FreeBSD returns the mod time of the symlink's containing
634 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
635 if test "" = "X"; then
637 set X
`ls -t $srcdir/configure conftestfile`
639 test "$2" = conftestfile
645 { echo "configure: error: newly created file is older than distributed files!
646 Check your system clock" 1>&2; exit 1; }
649 echo "$ac_t""yes" 1>&6
650 if test "$program_transform_name" = s
,x
,x
,; then
651 program_transform_name
=
653 # Double any \ or $. echo might interpret backslashes.
654 cat <<\EOF_SED
> conftestsed
655 s
,\\,\\\\,g
; s
,\$
,$$
,g
657 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
660 test "$program_prefix" != NONE
&&
661 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
662 # Use a double $ so make ignores it.
663 test "$program_suffix" != NONE
&&
664 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
666 # sed with no file args requires a program.
667 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
669 missing_dir
=`cd $ac_aux_dir && pwd`
670 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
671 echo "configure:672: checking for working aclocal" >&5
672 # Run test in a subshell; some versions of sh will print an error if
673 # an executable is not found, even if stderr is redirected.
674 if (aclocal
--version) > /dev
/null
2>&1; then
676 echo "$ac_t""found" 1>&6
678 ACLOCAL
="$missing_dir/missing aclocal"
679 echo "$ac_t""missing" 1>&6
682 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
683 echo "configure:684: checking for working autoconf" >&5
684 # Run test in a subshell; some versions of sh will print an error if
685 # an executable is not found, even if stderr is redirected.
686 if (autoconf
--version) > /dev
/null
2>&1; then
688 echo "$ac_t""found" 1>&6
690 AUTOCONF
="$missing_dir/missing autoconf"
691 echo "$ac_t""missing" 1>&6
694 echo $ac_n "checking for working automake""... $ac_c" 1>&6
695 echo "configure:696: checking for working automake" >&5
696 # Run test in a subshell; some versions of sh will print an error if
697 # an executable is not found, even if stderr is redirected.
698 if (automake
--version) > /dev
/null
2>&1; then
700 echo "$ac_t""found" 1>&6
702 AUTOMAKE
="$missing_dir/missing automake"
703 echo "$ac_t""missing" 1>&6
706 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
707 echo "configure:708: checking for working autoheader" >&5
708 # Run test in a subshell; some versions of sh will print an error if
709 # an executable is not found, even if stderr is redirected.
710 if (autoheader
--version) > /dev
/null
2>&1; then
711 AUTOHEADER
=autoheader
712 echo "$ac_t""found" 1>&6
714 AUTOHEADER
="$missing_dir/missing autoheader"
715 echo "$ac_t""missing" 1>&6
718 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
719 echo "configure:720: checking for working makeinfo" >&5
720 # Run test in a subshell; some versions of sh will print an error if
721 # an executable is not found, even if stderr is redirected.
722 if (makeinfo
--version) > /dev
/null
2>&1; then
724 echo "$ac_t""found" 1>&6
726 MAKEINFO
="$missing_dir/missing makeinfo"
727 echo "$ac_t""missing" 1>&6
730 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
731 echo "configure:732: checking whether ${MAKE-make} sets \${MAKE}" >&5
732 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
733 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
734 echo $ac_n "(cached) $ac_c" 1>&6
736 cat > conftestmake
<<\EOF
738 @
echo 'ac_maketemp="${MAKE}"'
740 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
741 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
742 if test -n "$ac_maketemp"; then
743 eval ac_cv_prog_make_
${ac_make}_set
=yes
745 eval ac_cv_prog_make_
${ac_make}_set
=no
749 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
750 echo "$ac_t""yes" 1>&6
753 echo "$ac_t""no" 1>&6
754 SET_MAKE
="MAKE=${MAKE-make}"
757 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
758 echo "configure:759: checking whether to enable maintainer-specific portions of Makefiles" >&5
759 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
760 if test "${enable_maintainer_mode+set}" = set; then
761 enableval
="$enable_maintainer_mode"
762 USE_MAINTAINER_MODE
=$enableval
764 USE_MAINTAINER_MODE
=no
767 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
768 if test $USE_MAINTAINER_MODE = yes; then
779 #--------------------------------------------------------------------
783 #--------------------------------------------------------------------
785 # Check whether --enable-debug or --disable-debug was given.
786 if test "${enable_debug+set}" = set; then
787 enableval
="$enable_debug"
791 if test "$enableval" != n
&& test "$enableval" != no
; then
792 cat >> confdefs.h
<<\EOF
793 #define DEBUG_EXTENSIONS 1
796 cat >> confdefs.h
<<\EOF
797 #define READER_EXTENSIONS 1
800 LIBOBJS
="backtrace.o stacks.o debug.o srcprop.o $LIBOBJS"
803 # Check whether --enable-dynamic-linking or --disable-dynamic-linking was given.
804 if test "${enable_dynamic_linking+set}" = set; then
805 enableval
="$enable_dynamic_linking"
810 # Check whether --enable-guile-debug or --disable-guile-debug was given.
811 if test "${enable_guile_debug+set}" = set; then
812 enableval
="$enable_guile_debug"
816 if test "$enableval" = y ||
test "$enableval" = yes; then
817 cat >> confdefs.h
<<\EOF
818 #define GUILE_DEBUG 1
823 #--------------------------------------------------------------------
825 # Extract the first word of "gcc", so it can be a program name with args.
826 set dummy gcc
; ac_word
=$2
827 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
828 echo "configure:829: checking for $ac_word" >&5
829 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
830 echo $ac_n "(cached) $ac_c" 1>&6
832 if test -n "$CC"; then
833 ac_cv_prog_CC
="$CC" # Let the user override the test.
835 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
836 for ac_dir
in $PATH; do
837 test -z "$ac_dir" && ac_dir
=.
838 if test -f $ac_dir/$ac_word; then
847 if test -n "$CC"; then
848 echo "$ac_t""$CC" 1>&6
850 echo "$ac_t""no" 1>&6
853 if test -z "$CC"; then
854 # Extract the first word of "cc", so it can be a program name with args.
855 set dummy cc
; ac_word
=$2
856 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
857 echo "configure:858: checking for $ac_word" >&5
858 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
859 echo $ac_n "(cached) $ac_c" 1>&6
861 if test -n "$CC"; then
862 ac_cv_prog_CC
="$CC" # Let the user override the test.
864 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
866 for ac_dir
in $PATH; do
867 test -z "$ac_dir" && ac_dir
=.
868 if test -f $ac_dir/$ac_word; then
869 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
878 if test $ac_prog_rejected = yes; then
879 # We found a bogon in the path, so make sure we never use it.
880 set dummy
$ac_cv_prog_CC
882 if test $# -gt 0; then
883 # We chose a different compiler from the bogus one.
884 # However, it has the same basename, so the bogon will be chosen
885 # first if we set CC to just the basename; use the full file name.
887 set dummy
"$ac_dir/$ac_word" "$@"
895 if test -n "$CC"; then
896 echo "$ac_t""$CC" 1>&6
898 echo "$ac_t""no" 1>&6
901 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
904 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
905 echo "configure:906: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
908 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
909 ac_cpp
='$CPP $CPPFLAGS'
910 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
911 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
912 cross_compiling
=$ac_cv_prog_cc_cross
914 cat > conftest.
$ac_ext <<EOF
915 #line 916 "configure"
916 #include "confdefs.h"
919 if { (eval echo configure
:920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
920 ac_cv_prog_cc_works
=yes
921 # If we can't run a trivial program, we are probably using a cross compiler.
922 if (.
/conftest
; exit) 2>/dev
/null
; then
923 ac_cv_prog_cc_cross
=no
925 ac_cv_prog_cc_cross
=yes
928 echo "configure: failed program was:" >&5
929 cat conftest.
$ac_ext >&5
930 ac_cv_prog_cc_works
=no
934 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
935 if test $ac_cv_prog_cc_works = no
; then
936 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
938 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
939 echo "configure:940: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
940 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
941 cross_compiling
=$ac_cv_prog_cc_cross
943 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
944 echo "configure:945: checking whether we are using GNU C" >&5
945 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
946 echo $ac_n "(cached) $ac_c" 1>&6
948 cat > conftest.c
<<EOF
953 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
960 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
962 if test $ac_cv_prog_gcc = yes; then
964 ac_test_CFLAGS
="${CFLAGS+set}"
965 ac_save_CFLAGS
="$CFLAGS"
967 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
968 echo "configure:969: checking whether ${CC-cc} accepts -g" >&5
969 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
970 echo $ac_n "(cached) $ac_c" 1>&6
972 echo 'void f(){}' > conftest.c
973 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
982 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
983 if test "$ac_test_CFLAGS" = set; then
984 CFLAGS
="$ac_save_CFLAGS"
985 elif test $ac_cv_prog_cc_g = yes; then
992 test "${CFLAGS+set}" = set || CFLAGS
="-g"
995 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
996 echo "configure:997: checking how to run the C preprocessor" >&5
997 # On Suns, sometimes $CPP names a directory.
998 if test -n "$CPP" && test -d "$CPP"; then
1001 if test -z "$CPP"; then
1002 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1003 echo $ac_n "(cached) $ac_c" 1>&6
1005 # This must be in double quotes, not single quotes, because CPP may get
1006 # substituted into the Makefile and "${CC-cc}" will confuse make.
1008 # On the NeXT, cc -E runs the code through the compiler's parser,
1009 # not just through cpp.
1010 cat > conftest.
$ac_ext <<EOF
1011 #line 1012 "configure"
1012 #include "confdefs.h"
1016 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1017 { (eval echo configure
:1018: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1018 ac_err
=`grep -v '^ *+' conftest.out`
1019 if test -z "$ac_err"; then
1023 echo "configure: failed program was:" >&5
1024 cat conftest.
$ac_ext >&5
1026 CPP
="${CC-cc} -E -traditional-cpp"
1027 cat > conftest.
$ac_ext <<EOF
1028 #line 1029 "configure"
1029 #include "confdefs.h"
1033 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1034 { (eval echo configure
:1035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1035 ac_err
=`grep -v '^ *+' conftest.out`
1036 if test -z "$ac_err"; then
1040 echo "configure: failed program was:" >&5
1041 cat conftest.
$ac_ext >&5
1048 ac_cv_prog_CPP
="$CPP"
1050 CPP
="$ac_cv_prog_CPP"
1052 ac_cv_prog_CPP
="$CPP"
1054 echo "$ac_t""$CPP" 1>&6
1057 # Make sure we can run config.sub.
1058 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
1059 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1062 echo $ac_n "checking host system type""... $ac_c" 1>&6
1063 echo "configure:1064: checking host system type" >&5
1066 case "$host_alias" in
1070 if host_alias
=`$ac_config_guess`; then :
1071 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1073 *) host_alias
=$nonopt ;;
1077 host=`$ac_config_sub $host_alias`
1078 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1079 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1080 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1081 echo "$ac_t""$host" 1>&6
1083 # Extract the first word of "ranlib", so it can be a program name with args.
1084 set dummy ranlib
; ac_word
=$2
1085 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1086 echo "configure:1087: checking for $ac_word" >&5
1087 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1088 echo $ac_n "(cached) $ac_c" 1>&6
1090 if test -n "$RANLIB"; then
1091 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1093 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1094 for ac_dir
in $PATH; do
1095 test -z "$ac_dir" && ac_dir
=.
1096 if test -f $ac_dir/$ac_word; then
1097 ac_cv_prog_RANLIB
="ranlib"
1102 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1105 RANLIB
="$ac_cv_prog_RANLIB"
1106 if test -n "$RANLIB"; then
1107 echo "$ac_t""$RANLIB" 1>&6
1109 echo "$ac_t""no" 1>&6
1116 # Always use our own libtool.
1117 LIBTOOL
='$(top_builddir)/libtool'
1120 # Check whether --enable-shared or --disable-shared was given.
1121 if test "${enable_shared+set}" = set; then
1122 enableval
="$enable_shared"
1123 test "$enableval" = no
&& libtool_shared
=" --disable-shared"
1129 libtool_flags
="$libtool_shared"
1130 test "$silent" = yes && libtool_flags
="$libtool_flags --silent"
1131 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1135 # For IRIX 6, ld needs -n32 if cc uses it.
1136 if echo " $CC $CFLAGS " |
egrep -e '[ ]-n32[ ]' > /dev
/null
; then
1142 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1143 CFLAGS
="$CFLAGS -belf"
1147 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1148 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" LD
="$LD" RANLIB
="$RANLIB" \
1149 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
1150 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$host \
1151 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1154 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1155 echo "configure:1156: checking for AIX" >&5
1156 cat > conftest.
$ac_ext <<EOF
1157 #line 1158 "configure"
1158 #include "confdefs.h"
1164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1165 egrep "yes" >/dev
/null
2>&1; then
1167 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
1168 #define _ALL_SOURCE 1
1173 echo "$ac_t""no" 1>&6
1178 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1179 echo "configure:1180: checking for POSIXized ISC" >&5
1180 if test -d /etc
/conf
/kconfig.d
&&
1181 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
1183 echo "$ac_t""yes" 1>&6
1184 ISC
=yes # If later tests want to check for ISC.
1185 cat >> confdefs.h
<<\EOF
1186 #define _POSIX_SOURCE 1
1189 if test "$GCC" = yes; then
1195 echo "$ac_t""no" 1>&6
1199 ac_safe
=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1200 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1201 echo "configure:1202: checking for minix/config.h" >&5
1202 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1203 echo $ac_n "(cached) $ac_c" 1>&6
1205 cat > conftest.
$ac_ext <<EOF
1206 #line 1207 "configure"
1207 #include "confdefs.h"
1208 #include <minix/config.h>
1210 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1211 { (eval echo configure
:1212: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1212 ac_err
=`grep -v '^ *+' conftest.out`
1213 if test -z "$ac_err"; then
1215 eval "ac_cv_header_$ac_safe=yes"
1218 echo "configure: failed program was:" >&5
1219 cat conftest.
$ac_ext >&5
1221 eval "ac_cv_header_$ac_safe=no"
1225 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1226 echo "$ac_t""yes" 1>&6
1229 echo "$ac_t""no" 1>&6
1233 if test "$MINIX" = yes; then
1234 cat >> confdefs.h
<<\EOF
1235 #define _POSIX_SOURCE 1
1238 cat >> confdefs.h
<<\EOF
1239 #define _POSIX_1_SOURCE 2
1242 cat >> confdefs.h
<<\EOF
1249 echo $ac_n "checking for working const""... $ac_c" 1>&6
1250 echo "configure:1251: checking for working const" >&5
1251 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1252 echo $ac_n "(cached) $ac_c" 1>&6
1254 cat > conftest.
$ac_ext <<EOF
1255 #line 1256 "configure"
1256 #include "confdefs.h"
1260 /* Ultrix mips cc rejects this. */
1261 typedef int charset[2]; const charset x;
1262 /* SunOS 4.1.1 cc rejects this. */
1263 char const *const *ccp;
1265 /* NEC SVR4.0.2 mips cc rejects this. */
1266 struct point {int x, y;};
1267 static struct point const zero = {0,0};
1268 /* AIX XL C 1.02.0.0 rejects this.
1269 It does not let you subtract one const X* pointer from another in an arm
1270 of an if-expression whose if-part is not a constant expression */
1271 const char *g = "string";
1272 ccp = &g + (g ? g-g : 0);
1273 /* HPUX 7.0 cc rejects these. */
1276 ccp = (char const *const *) p;
1277 { /* SCO 3.2v4 cc rejects this. */
1279 char const *s = 0 ? (char *) 0 : (char const *) 0;
1283 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1285 const int *foo = &x[0];
1288 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1289 typedef const int *iptr;
1293 { /* AIX XL C 1.02.0.0 rejects this saying
1294 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1295 struct s { int j; const int *ap[3]; };
1296 struct s *b; b->j = 5;
1298 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1304 if { (eval echo configure
:1305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1308 echo "configure: failed program was:" >&5
1309 cat conftest.
$ac_ext >&5
1316 echo "$ac_t""$ac_cv_c_const" 1>&6
1317 if test $ac_cv_c_const = no
; then
1318 cat >> confdefs.h
<<\EOF
1325 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1326 echo "configure:1327: checking for ANSI C header files" >&5
1327 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1328 echo $ac_n "(cached) $ac_c" 1>&6
1330 cat > conftest.
$ac_ext <<EOF
1331 #line 1332 "configure"
1332 #include "confdefs.h"
1338 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1339 { (eval echo configure
:1340: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1340 ac_err
=`grep -v '^ *+' conftest.out`
1341 if test -z "$ac_err"; then
1343 ac_cv_header_stdc
=yes
1346 echo "configure: failed program was:" >&5
1347 cat conftest.
$ac_ext >&5
1349 ac_cv_header_stdc
=no
1353 if test $ac_cv_header_stdc = yes; then
1354 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1355 cat > conftest.
$ac_ext <<EOF
1356 #line 1357 "configure"
1357 #include "confdefs.h"
1360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1361 egrep "memchr" >/dev
/null
2>&1; then
1365 ac_cv_header_stdc
=no
1371 if test $ac_cv_header_stdc = yes; then
1372 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1373 cat > conftest.
$ac_ext <<EOF
1374 #line 1375 "configure"
1375 #include "confdefs.h"
1378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1379 egrep "free" >/dev
/null
2>&1; then
1383 ac_cv_header_stdc
=no
1389 if test $ac_cv_header_stdc = yes; then
1390 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1391 if test "$cross_compiling" = yes; then
1394 cat > conftest.
$ac_ext <<EOF
1395 #line 1396 "configure"
1396 #include "confdefs.h"
1398 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1399 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1400 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1401 int main () { int i; for (i = 0; i < 256; i++)
1402 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1406 if { (eval echo configure
:1407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1410 echo "configure: failed program was:" >&5
1411 cat conftest.
$ac_ext >&5
1413 ac_cv_header_stdc
=no
1421 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1422 if test $ac_cv_header_stdc = yes; then
1423 cat >> confdefs.h
<<\EOF
1424 #define STDC_HEADERS 1
1430 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
1432 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1433 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1434 echo "configure:1435: checking for $ac_hdr that defines DIR" >&5
1435 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1436 echo $ac_n "(cached) $ac_c" 1>&6
1438 cat > conftest.
$ac_ext <<EOF
1439 #line 1440 "configure"
1440 #include "confdefs.h"
1441 #include <sys/types.h>
1447 if { (eval echo configure
:1448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1449 eval "ac_cv_header_dirent_$ac_safe=yes"
1451 echo "configure: failed program was:" >&5
1452 cat conftest.
$ac_ext >&5
1454 eval "ac_cv_header_dirent_$ac_safe=no"
1458 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1459 echo "$ac_t""yes" 1>&6
1460 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1461 cat >> confdefs.h
<<EOF
1462 #define $ac_tr_hdr 1
1464 ac_header_dirent
=$ac_hdr; break
1466 echo "$ac_t""no" 1>&6
1469 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1470 if test $ac_header_dirent = dirent.h
; then
1471 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1472 echo "configure:1473: checking for opendir in -ldir" >&5
1473 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1474 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1475 echo $ac_n "(cached) $ac_c" 1>&6
1477 ac_save_LIBS
="$LIBS"
1479 cat > conftest.
$ac_ext <<EOF
1480 #line 1481 "configure"
1481 #include "confdefs.h"
1482 /* Override any gcc2 internal prototype to avoid an error. */
1483 /* We use char because int might match the return type of a gcc2
1484 builtin and then its argument prototype would still apply. */
1491 if { (eval echo configure
:1492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1493 eval "ac_cv_lib_$ac_lib_var=yes"
1495 echo "configure: failed program was:" >&5
1496 cat conftest.
$ac_ext >&5
1498 eval "ac_cv_lib_$ac_lib_var=no"
1501 LIBS
="$ac_save_LIBS"
1504 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1505 echo "$ac_t""yes" 1>&6
1508 echo "$ac_t""no" 1>&6
1512 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1513 echo "configure:1514: checking for opendir in -lx" >&5
1514 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1515 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1516 echo $ac_n "(cached) $ac_c" 1>&6
1518 ac_save_LIBS
="$LIBS"
1520 cat > conftest.
$ac_ext <<EOF
1521 #line 1522 "configure"
1522 #include "confdefs.h"
1523 /* Override any gcc2 internal prototype to avoid an error. */
1524 /* We use char because int might match the return type of a gcc2
1525 builtin and then its argument prototype would still apply. */
1532 if { (eval echo configure
:1533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1534 eval "ac_cv_lib_$ac_lib_var=yes"
1536 echo "configure: failed program was:" >&5
1537 cat conftest.
$ac_ext >&5
1539 eval "ac_cv_lib_$ac_lib_var=no"
1542 LIBS
="$ac_save_LIBS"
1545 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1546 echo "$ac_t""yes" 1>&6
1549 echo "$ac_t""no" 1>&6
1554 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1555 echo "configure:1556: checking whether time.h and sys/time.h may both be included" >&5
1556 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1557 echo $ac_n "(cached) $ac_c" 1>&6
1559 cat > conftest.
$ac_ext <<EOF
1560 #line 1561 "configure"
1561 #include "confdefs.h"
1562 #include <sys/types.h>
1563 #include <sys/time.h>
1569 if { (eval echo configure
:1570: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1571 ac_cv_header_time
=yes
1573 echo "configure: failed program was:" >&5
1574 cat conftest.
$ac_ext >&5
1576 ac_cv_header_time
=no
1581 echo "$ac_t""$ac_cv_header_time" 1>&6
1582 if test $ac_cv_header_time = yes; then
1583 cat >> confdefs.h
<<\EOF
1584 #define TIME_WITH_SYS_TIME 1
1589 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1590 echo "configure:1591: checking for sys/wait.h that is POSIX.1 compatible" >&5
1591 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1592 echo $ac_n "(cached) $ac_c" 1>&6
1594 cat > conftest.
$ac_ext <<EOF
1595 #line 1596 "configure"
1596 #include "confdefs.h"
1597 #include <sys/types.h>
1598 #include <sys/wait.h>
1600 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1603 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1608 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1611 if { (eval echo configure
:1612: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1613 ac_cv_header_sys_wait_h
=yes
1615 echo "configure: failed program was:" >&5
1616 cat conftest.
$ac_ext >&5
1618 ac_cv_header_sys_wait_h
=no
1623 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1624 if test $ac_cv_header_sys_wait_h = yes; then
1625 cat >> confdefs.h
<<\EOF
1626 #define HAVE_SYS_WAIT_H 1
1631 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 sys
/utime.h
time.h unistd.h utime.h
1633 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1634 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1635 echo "configure:1636: checking for $ac_hdr" >&5
1636 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1637 echo $ac_n "(cached) $ac_c" 1>&6
1639 cat > conftest.
$ac_ext <<EOF
1640 #line 1641 "configure"
1641 #include "confdefs.h"
1644 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1645 { (eval echo configure
:1646: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1646 ac_err
=`grep -v '^ *+' conftest.out`
1647 if test -z "$ac_err"; then
1649 eval "ac_cv_header_$ac_safe=yes"
1652 echo "configure: failed program was:" >&5
1653 cat conftest.
$ac_ext >&5
1655 eval "ac_cv_header_$ac_safe=no"
1659 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1660 echo "$ac_t""yes" 1>&6
1661 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1662 cat >> confdefs.h
<<EOF
1663 #define $ac_tr_hdr 1
1667 echo "$ac_t""no" 1>&6
1672 for ac_hdr
in libc.h unistd.h
1674 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1675 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1676 echo "configure:1677: checking for $ac_hdr" >&5
1677 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1678 echo $ac_n "(cached) $ac_c" 1>&6
1680 cat > conftest.
$ac_ext <<EOF
1681 #line 1682 "configure"
1682 #include "confdefs.h"
1685 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1686 { (eval echo configure
:1687: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1687 ac_err
=`grep -v '^ *+' conftest.out`
1688 if test -z "$ac_err"; then
1690 eval "ac_cv_header_$ac_safe=yes"
1693 echo "configure: failed program was:" >&5
1694 cat conftest.
$ac_ext >&5
1696 eval "ac_cv_header_$ac_safe=no"
1700 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1701 echo "$ac_t""yes" 1>&6
1702 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1703 cat >> confdefs.h
<<EOF
1704 #define $ac_tr_hdr 1
1708 echo "$ac_t""no" 1>&6
1712 echo $ac_n "checking "whether libc.h and unistd.h can be included together
"""... $ac_c" 1>&6
1713 echo "configure:1714: checking "whether libc.h and unistd.h can be included together
"" >&5
1714 if eval "test \"`echo '$''{'guile_cv_header_libc_with_unistd'+set}'`\" = set"; then
1715 echo $ac_n "(cached) $ac_c" 1>&6
1718 if test "$ac_cv_header_libc_h" = "no"; then
1719 guile_cv_header_libc_with_unistd
="no"
1720 elif test "$ac_cv_header_unistd.h" = "no"; then
1721 guile_cv_header_libc_with_unistd
="yes"
1723 cat > conftest.
$ac_ext <<EOF
1724 #line 1725 "configure"
1725 #include "confdefs.h"
1728 # include <unistd.h>
1734 if { (eval echo configure
:1735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1736 guile_cv_header_libc_with_unistd
=yes
1738 echo "configure: failed program was:" >&5
1739 cat conftest.
$ac_ext >&5
1741 guile_cv_header_libc_with_unistd
=no
1750 echo "$ac_t""$guile_cv_header_libc_with_unistd" 1>&6
1751 if test "$guile_cv_header_libc_with_unistd" = yes; then
1752 cat >> confdefs.h
<<\EOF
1753 #define LIBC_H_WITH_UNISTD_H 1
1760 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
1761 echo "configure:1762: checking for uid_t in sys/types.h" >&5
1762 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
1763 echo $ac_n "(cached) $ac_c" 1>&6
1765 cat > conftest.
$ac_ext <<EOF
1766 #line 1767 "configure"
1767 #include "confdefs.h"
1768 #include <sys/types.h>
1770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1771 egrep "uid_t" >/dev
/null
2>&1; then
1773 ac_cv_type_uid_t
=yes
1782 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
1783 if test $ac_cv_type_uid_t = no
; then
1784 cat >> confdefs.h
<<\EOF
1788 cat >> confdefs.h
<<\EOF
1794 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
1795 echo "configure:1796: checking type of array argument to getgroups" >&5
1796 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
1797 echo $ac_n "(cached) $ac_c" 1>&6
1799 if test "$cross_compiling" = yes; then
1800 ac_cv_type_getgroups
=cross
1802 cat > conftest.
$ac_ext <<EOF
1803 #line 1804 "configure"
1804 #include "confdefs.h"
1806 /* Thanks to Mike Rendell for this test. */
1807 #include <sys/types.h>
1810 #define MAX(x, y) ((x) > (y) ? (x) : (y))
1815 union { gid_t gval; long lval; } val;
1818 for (i = 0; i < NGID; i++)
1819 gidset[i] = val.gval;
1820 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
1822 /* Exit non-zero if getgroups seems to require an array of ints. This
1823 happens when gid_t is short but getgroups modifies an array of ints. */
1824 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
1828 if { (eval echo configure
:1829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1830 ac_cv_type_getgroups
=gid_t
1832 echo "configure: failed program was:" >&5
1833 cat conftest.
$ac_ext >&5
1835 ac_cv_type_getgroups
=int
1840 if test $ac_cv_type_getgroups = cross
; then
1841 cat > conftest.
$ac_ext <<EOF
1842 #line 1843 "configure"
1843 #include "confdefs.h"
1846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1847 egrep "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
1849 ac_cv_type_getgroups
=gid_t
1852 ac_cv_type_getgroups
=int
1859 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
1860 cat >> confdefs.h
<<EOF
1861 #define GETGROUPS_T $ac_cv_type_getgroups
1865 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1866 echo "configure:1867: checking return type of signal handlers" >&5
1867 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1868 echo $ac_n "(cached) $ac_c" 1>&6
1870 cat > conftest.
$ac_ext <<EOF
1871 #line 1872 "configure"
1872 #include "confdefs.h"
1873 #include <sys/types.h>
1879 extern "C" void (*signal (int, void (*)(int)))(int);
1881 void (*signal ()) ();
1888 if { (eval echo configure
:1889: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1890 ac_cv_type_signal
=void
1892 echo "configure: failed program was:" >&5
1893 cat conftest.
$ac_ext >&5
1895 ac_cv_type_signal
=int
1900 echo "$ac_t""$ac_cv_type_signal" 1>&6
1901 cat >> confdefs.h
<<EOF
1902 #define RETSIGTYPE $ac_cv_type_signal
1906 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
1907 echo "configure:1908: checking for mode_t" >&5
1908 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
1909 echo $ac_n "(cached) $ac_c" 1>&6
1911 cat > conftest.
$ac_ext <<EOF
1912 #line 1913 "configure"
1913 #include "confdefs.h"
1914 #include <sys/types.h>
1920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1921 egrep "mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1923 ac_cv_type_mode_t
=yes
1926 ac_cv_type_mode_t
=no
1931 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
1932 if test $ac_cv_type_mode_t = no
; then
1933 cat >> confdefs.h
<<\EOF
1940 for ac_func
in ctermid ftime getcwd geteuid gethostent gettimeofday lstat mkdir mknod nice readlink rename
rmdir select setegid seteuid setlocale setpgid setsid strftime strptime symlink sync tcgetpgrp tcsetpgrp
times uname waitpid
1942 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1943 echo "configure:1944: checking for $ac_func" >&5
1944 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1945 echo $ac_n "(cached) $ac_c" 1>&6
1947 cat > conftest.
$ac_ext <<EOF
1948 #line 1949 "configure"
1949 #include "confdefs.h"
1950 /* System header to define __stub macros and hopefully few prototypes,
1951 which can conflict with char $ac_func(); below. */
1953 /* Override any gcc2 internal prototype to avoid an error. */
1954 /* We use char because int might match the return type of a gcc2
1955 builtin and then its argument prototype would still apply. */
1960 /* The GNU C library defines this for functions which it implements
1961 to always fail with ENOSYS. Some functions are actually named
1962 something starting with __ and the normal name is an alias. */
1963 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1971 if { (eval echo configure
:1972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1973 eval "ac_cv_func_$ac_func=yes"
1975 echo "configure: failed program was:" >&5
1976 cat conftest.
$ac_ext >&5
1978 eval "ac_cv_func_$ac_func=no"
1983 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1984 echo "$ac_t""yes" 1>&6
1985 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1986 cat >> confdefs.h
<<EOF
1987 #define $ac_tr_func 1
1991 echo "$ac_t""no" 1>&6
1996 for ac_func
in inet_aton putenv strerror
1998 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1999 echo "configure:2000: checking for $ac_func" >&5
2000 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2001 echo $ac_n "(cached) $ac_c" 1>&6
2003 cat > conftest.
$ac_ext <<EOF
2004 #line 2005 "configure"
2005 #include "confdefs.h"
2006 /* System header to define __stub macros and hopefully few prototypes,
2007 which can conflict with char $ac_func(); below. */
2009 /* Override any gcc2 internal prototype to avoid an error. */
2010 /* We use char because int might match the return type of a gcc2
2011 builtin and then its argument prototype would still apply. */
2016 /* The GNU C library defines this for functions which it implements
2017 to always fail with ENOSYS. Some functions are actually named
2018 something starting with __ and the normal name is an alias. */
2019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2027 if { (eval echo configure
:2028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2029 eval "ac_cv_func_$ac_func=yes"
2031 echo "configure: failed program was:" >&5
2032 cat conftest.
$ac_ext >&5
2034 eval "ac_cv_func_$ac_func=no"
2039 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2040 echo "$ac_t""yes" 1>&6
2041 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2042 cat >> confdefs.h
<<EOF
2043 #define $ac_tr_func 1
2047 echo "$ac_t""no" 1>&6
2048 LIBOBJS
="$LIBOBJS ${ac_func}.o"
2054 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2055 # for constant arguments. Useless!
2056 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2057 echo "configure:2058: checking for working alloca.h" >&5
2058 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2059 echo $ac_n "(cached) $ac_c" 1>&6
2061 cat > conftest.
$ac_ext <<EOF
2062 #line 2063 "configure"
2063 #include "confdefs.h"
2066 char *p = alloca(2 * sizeof(int));
2069 if { (eval echo configure
:2070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2071 ac_cv_header_alloca_h
=yes
2073 echo "configure: failed program was:" >&5
2074 cat conftest.
$ac_ext >&5
2076 ac_cv_header_alloca_h
=no
2081 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2082 if test $ac_cv_header_alloca_h = yes; then
2083 cat >> confdefs.h
<<\EOF
2084 #define HAVE_ALLOCA_H 1
2089 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2090 echo "configure:2091: checking for alloca" >&5
2091 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2092 echo $ac_n "(cached) $ac_c" 1>&6
2094 cat > conftest.
$ac_ext <<EOF
2095 #line 2096 "configure"
2096 #include "confdefs.h"
2099 # define alloca __builtin_alloca
2102 # include <alloca.h>
2107 # ifndef alloca /* predefined by HP cc +Olibcalls */
2115 char *p = (char *) alloca(1);
2118 if { (eval echo configure
:2119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2120 ac_cv_func_alloca_works
=yes
2122 echo "configure: failed program was:" >&5
2123 cat conftest.
$ac_ext >&5
2125 ac_cv_func_alloca_works
=no
2130 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2131 if test $ac_cv_func_alloca_works = yes; then
2132 cat >> confdefs.h
<<\EOF
2133 #define HAVE_ALLOCA 1
2138 if test $ac_cv_func_alloca_works = no
; then
2139 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2140 # that cause trouble. Some versions do not even contain alloca or
2141 # contain a buggy version. If you still want to use their alloca,
2142 # use ar to extract alloca.o from them instead of compiling alloca.c.
2144 cat >> confdefs.h
<<\EOF
2149 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2150 echo "configure:2151: checking whether alloca needs Cray hooks" >&5
2151 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2152 echo $ac_n "(cached) $ac_c" 1>&6
2154 cat > conftest.
$ac_ext <<EOF
2155 #line 2156 "configure"
2156 #include "confdefs.h"
2157 #if defined(CRAY) && ! defined(CRAY2)
2164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2165 egrep "webecray" >/dev
/null
2>&1; then
2176 echo "$ac_t""$ac_cv_os_cray" 1>&6
2177 if test $ac_cv_os_cray = yes; then
2178 for ac_func
in _getb67 GETB67 getb67
; do
2179 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2180 echo "configure:2181: checking for $ac_func" >&5
2181 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2182 echo $ac_n "(cached) $ac_c" 1>&6
2184 cat > conftest.
$ac_ext <<EOF
2185 #line 2186 "configure"
2186 #include "confdefs.h"
2187 /* System header to define __stub macros and hopefully few prototypes,
2188 which can conflict with char $ac_func(); below. */
2190 /* Override any gcc2 internal prototype to avoid an error. */
2191 /* We use char because int might match the return type of a gcc2
2192 builtin and then its argument prototype would still apply. */
2197 /* The GNU C library defines this for functions which it implements
2198 to always fail with ENOSYS. Some functions are actually named
2199 something starting with __ and the normal name is an alias. */
2200 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2208 if { (eval echo configure
:2209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2210 eval "ac_cv_func_$ac_func=yes"
2212 echo "configure: failed program was:" >&5
2213 cat conftest.
$ac_ext >&5
2215 eval "ac_cv_func_$ac_func=no"
2220 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2221 echo "$ac_t""yes" 1>&6
2222 cat >> confdefs.h
<<EOF
2223 #define CRAY_STACKSEG_END $ac_func
2228 echo "$ac_t""no" 1>&6
2234 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2235 echo "configure:2236: checking stack direction for C alloca" >&5
2236 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2237 echo $ac_n "(cached) $ac_c" 1>&6
2239 if test "$cross_compiling" = yes; then
2240 ac_cv_c_stack_direction
=0
2242 cat > conftest.
$ac_ext <<EOF
2243 #line 2244 "configure"
2244 #include "confdefs.h"
2245 find_stack_direction ()
2247 static char *addr = 0;
2252 return find_stack_direction ();
2255 return (&dummy > addr) ? 1 : -1;
2259 exit (find_stack_direction() < 0);
2262 if { (eval echo configure
:2263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2264 ac_cv_c_stack_direction
=1
2266 echo "configure: failed program was:" >&5
2267 cat conftest.
$ac_ext >&5
2269 ac_cv_c_stack_direction
=-1
2276 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2277 cat >> confdefs.h
<<EOF
2278 #define STACK_DIRECTION $ac_cv_c_stack_direction
2284 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
2285 echo "configure:2286: checking for st_rdev in struct stat" >&5
2286 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
2287 echo $ac_n "(cached) $ac_c" 1>&6
2289 cat > conftest.
$ac_ext <<EOF
2290 #line 2291 "configure"
2291 #include "confdefs.h"
2292 #include <sys/types.h>
2293 #include <sys/stat.h>
2295 struct stat s; s.st_rdev;
2298 if { (eval echo configure
:2299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2300 ac_cv_struct_st_rdev
=yes
2302 echo "configure: failed program was:" >&5
2303 cat conftest.
$ac_ext >&5
2305 ac_cv_struct_st_rdev
=no
2310 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
2311 if test $ac_cv_struct_st_rdev = yes; then
2312 cat >> confdefs.h
<<\EOF
2313 #define HAVE_ST_RDEV 1
2318 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
2319 echo "configure:2320: checking for st_blksize in struct stat" >&5
2320 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
2321 echo $ac_n "(cached) $ac_c" 1>&6
2323 cat > conftest.
$ac_ext <<EOF
2324 #line 2325 "configure"
2325 #include "confdefs.h"
2326 #include <sys/types.h>
2327 #include <sys/stat.h>
2329 struct stat s; s.st_blksize;
2332 if { (eval echo configure
:2333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2334 ac_cv_struct_st_blksize
=yes
2336 echo "configure: failed program was:" >&5
2337 cat conftest.
$ac_ext >&5
2339 ac_cv_struct_st_blksize
=no
2344 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
2345 if test $ac_cv_struct_st_blksize = yes; then
2346 cat >> confdefs.h
<<\EOF
2347 #define HAVE_ST_BLKSIZE 1
2352 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
2353 echo "configure:2354: checking for st_blocks in struct stat" >&5
2354 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
2355 echo $ac_n "(cached) $ac_c" 1>&6
2357 cat > conftest.
$ac_ext <<EOF
2358 #line 2359 "configure"
2359 #include "confdefs.h"
2360 #include <sys/types.h>
2361 #include <sys/stat.h>
2363 struct stat s; s.st_blocks;
2366 if { (eval echo configure
:2367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2368 ac_cv_struct_st_blocks
=yes
2370 echo "configure: failed program was:" >&5
2371 cat conftest.
$ac_ext >&5
2373 ac_cv_struct_st_blocks
=no
2378 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
2379 if test $ac_cv_struct_st_blocks = yes; then
2380 cat >> confdefs.h
<<\EOF
2381 #define HAVE_ST_BLOCKS 1
2385 LIBOBJS
="$LIBOBJS fileblocks.o"
2388 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2389 echo "configure:2390: checking whether struct tm is in sys/time.h or time.h" >&5
2390 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2391 echo $ac_n "(cached) $ac_c" 1>&6
2393 cat > conftest.
$ac_ext <<EOF
2394 #line 2395 "configure"
2395 #include "confdefs.h"
2396 #include <sys/types.h>
2399 struct tm *tp; tp->tm_sec;
2402 if { (eval echo configure
:2403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2404 ac_cv_struct_tm
=time.h
2406 echo "configure: failed program was:" >&5
2407 cat conftest.
$ac_ext >&5
2409 ac_cv_struct_tm
=sys
/time.h
2414 echo "$ac_t""$ac_cv_struct_tm" 1>&6
2415 if test $ac_cv_struct_tm = sys
/time.h
; then
2416 cat >> confdefs.h
<<\EOF
2417 #define TM_IN_SYS_TIME 1
2422 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
2423 echo "configure:2424: checking for tm_zone in struct tm" >&5
2424 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
2425 echo $ac_n "(cached) $ac_c" 1>&6
2427 cat > conftest.
$ac_ext <<EOF
2428 #line 2429 "configure"
2429 #include "confdefs.h"
2430 #include <sys/types.h>
2431 #include <$ac_cv_struct_tm>
2433 struct tm tm; tm.tm_zone;
2436 if { (eval echo configure
:2437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2438 ac_cv_struct_tm_zone
=yes
2440 echo "configure: failed program was:" >&5
2441 cat conftest.
$ac_ext >&5
2443 ac_cv_struct_tm_zone
=no
2448 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
2449 if test "$ac_cv_struct_tm_zone" = yes; then
2450 cat >> confdefs.h
<<\EOF
2451 #define HAVE_TM_ZONE 1
2455 echo $ac_n "checking for tzname""... $ac_c" 1>&6
2456 echo "configure:2457: checking for tzname" >&5
2457 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
2458 echo $ac_n "(cached) $ac_c" 1>&6
2460 cat > conftest.
$ac_ext <<EOF
2461 #line 2462 "configure"
2462 #include "confdefs.h"
2464 #ifndef tzname /* For SGI. */
2465 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
2471 if { (eval echo configure
:2472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2473 ac_cv_var_tzname
=yes
2475 echo "configure: failed program was:" >&5
2476 cat conftest.
$ac_ext >&5
2483 echo "$ac_t""$ac_cv_var_tzname" 1>&6
2484 if test $ac_cv_var_tzname = yes; then
2485 cat >> confdefs.h
<<\EOF
2486 #define HAVE_TZNAME 1
2493 echo $ac_n "checking whether we need POSIX to get struct utimbuf""... $ac_c" 1>&6
2494 echo "configure:2495: checking whether we need POSIX to get struct utimbuf" >&5
2495 if eval "test \"`echo '$''{'guile_cv_struct_utimbuf_needs_posix'+set}'`\" = set"; then
2496 echo $ac_n "(cached) $ac_c" 1>&6
2498 cat > conftest.
$ac_ext <<EOF
2499 #line 2500 "configure"
2500 #include "confdefs.h"
2503 #include <sys/utime.h>
2510 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2511 { (eval echo configure
:2512: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2512 ac_err
=`grep -v '^ *+' conftest.out`
2513 if test -z "$ac_err"; then
2515 guile_cv_struct_utimbuf_needs_posix
=no
2518 echo "configure: failed program was:" >&5
2519 cat conftest.
$ac_ext >&5
2521 guile_cv_struct_utimbuf_needs_posix
=yes
2526 echo "$ac_t""$guile_cv_struct_utimbuf_needs_posix" 1>&6
2527 if test "$guile_cv_struct_utimbuf_needs_posix" = yes; then
2528 cat >> confdefs.h
<<\EOF
2529 #define UTIMBUF_NEEDS_POSIX 1
2534 # Checks for dynamic linking
2536 xtra_PLUGIN_guile_libs
=""
2539 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
2540 echo "configure:2541: checking for main in -lm" >&5
2541 ac_lib_var
=`echo m'_'main | sed 'y%./+-%__p_%'`
2542 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2543 echo $ac_n "(cached) $ac_c" 1>&6
2545 ac_save_LIBS
="$LIBS"
2547 cat > conftest.
$ac_ext <<EOF
2548 #line 2549 "configure"
2549 #include "confdefs.h"
2555 if { (eval echo configure
:2556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2557 eval "ac_cv_lib_$ac_lib_var=yes"
2559 echo "configure: failed program was:" >&5
2560 cat conftest.
$ac_ext >&5
2562 eval "ac_cv_lib_$ac_lib_var=no"
2565 LIBS
="$ac_save_LIBS"
2568 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2569 echo "$ac_t""yes" 1>&6
2570 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2571 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2572 cat >> confdefs.h
<<EOF
2573 #define $ac_tr_lib 1
2579 echo "$ac_t""no" 1>&6
2582 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
2583 echo "configure:2584: checking for main in -lsocket" >&5
2584 ac_lib_var
=`echo socket'_'main | sed 'y%./+-%__p_%'`
2585 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2586 echo $ac_n "(cached) $ac_c" 1>&6
2588 ac_save_LIBS
="$LIBS"
2589 LIBS
="-lsocket $LIBS"
2590 cat > conftest.
$ac_ext <<EOF
2591 #line 2592 "configure"
2592 #include "confdefs.h"
2598 if { (eval echo configure
:2599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2600 eval "ac_cv_lib_$ac_lib_var=yes"
2602 echo "configure: failed program was:" >&5
2603 cat conftest.
$ac_ext >&5
2605 eval "ac_cv_lib_$ac_lib_var=no"
2608 LIBS
="$ac_save_LIBS"
2611 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2612 echo "$ac_t""yes" 1>&6
2613 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2614 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2615 cat >> confdefs.h
<<EOF
2616 #define $ac_tr_lib 1
2619 LIBS
="-lsocket $LIBS"
2622 echo "$ac_t""no" 1>&6
2625 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
2626 echo "configure:2627: checking for main in -lnsl" >&5
2627 ac_lib_var
=`echo nsl'_'main | sed 'y%./+-%__p_%'`
2628 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2629 echo $ac_n "(cached) $ac_c" 1>&6
2631 ac_save_LIBS
="$LIBS"
2633 cat > conftest.
$ac_ext <<EOF
2634 #line 2635 "configure"
2635 #include "confdefs.h"
2641 if { (eval echo configure
:2642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2643 eval "ac_cv_lib_$ac_lib_var=yes"
2645 echo "configure: failed program was:" >&5
2646 cat conftest.
$ac_ext >&5
2648 eval "ac_cv_lib_$ac_lib_var=no"
2651 LIBS
="$ac_save_LIBS"
2654 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2655 echo "$ac_t""yes" 1>&6
2656 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2657 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2658 cat >> confdefs.h
<<EOF
2659 #define $ac_tr_lib 1
2665 echo "$ac_t""no" 1>&6
2669 if test "$enable_dynamic_linking" = "yes"; then
2671 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2672 echo "configure:2673: checking for dlopen in -ldl" >&5
2673 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2674 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2675 echo $ac_n "(cached) $ac_c" 1>&6
2677 ac_save_LIBS
="$LIBS"
2679 cat > conftest.
$ac_ext <<EOF
2680 #line 2681 "configure"
2681 #include "confdefs.h"
2682 /* Override any gcc2 internal prototype to avoid an error. */
2683 /* We use char because int might match the return type of a gcc2
2684 builtin and then its argument prototype would still apply. */
2691 if { (eval echo configure
:2692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2693 eval "ac_cv_lib_$ac_lib_var=yes"
2695 echo "configure: failed program was:" >&5
2696 cat conftest.
$ac_ext >&5
2698 eval "ac_cv_lib_$ac_lib_var=no"
2701 LIBS
="$ac_save_LIBS"
2704 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2705 echo "$ac_t""yes" 1>&6
2706 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2707 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2708 cat >> confdefs.h
<<EOF
2709 #define $ac_tr_lib 1
2715 echo "$ac_t""no" 1>&6
2718 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
2719 xtra_PLUGIN_guile_libs
="-lguile -ldl"
2720 cat >> confdefs.h
<<\EOF
2721 #define DYNAMIC_LINKING 1
2725 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
2726 echo "configure:2727: checking for dld_link in -ldld" >&5
2727 ac_lib_var
=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
2728 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2729 echo $ac_n "(cached) $ac_c" 1>&6
2731 ac_save_LIBS
="$LIBS"
2733 cat > conftest.
$ac_ext <<EOF
2734 #line 2735 "configure"
2735 #include "confdefs.h"
2736 /* Override any gcc2 internal prototype to avoid an error. */
2737 /* We use char because int might match the return type of a gcc2
2738 builtin and then its argument prototype would still apply. */
2745 if { (eval echo configure
:2746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2747 eval "ac_cv_lib_$ac_lib_var=yes"
2749 echo "configure: failed program was:" >&5
2750 cat conftest.
$ac_ext >&5
2752 eval "ac_cv_lib_$ac_lib_var=no"
2755 LIBS
="$ac_save_LIBS"
2758 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2759 echo "$ac_t""yes" 1>&6
2760 ac_tr_lib
=HAVE_LIB
`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2761 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2762 cat >> confdefs.h
<<EOF
2763 #define $ac_tr_lib 1
2769 echo "$ac_t""no" 1>&6
2772 if test "$ac_cv_lib_dld_dld_link" = "yes"; then
2773 xtra_PLUGIN_guile_libs
="-lguile -ldld"
2774 cat >> confdefs.h
<<\EOF
2775 #define DYNAMIC_LINKING 1
2779 for ac_func
in shl_load
2781 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2782 echo "configure:2783: checking for $ac_func" >&5
2783 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2784 echo $ac_n "(cached) $ac_c" 1>&6
2786 cat > conftest.
$ac_ext <<EOF
2787 #line 2788 "configure"
2788 #include "confdefs.h"
2789 /* System header to define __stub macros and hopefully few prototypes,
2790 which can conflict with char $ac_func(); below. */
2792 /* Override any gcc2 internal prototype to avoid an error. */
2793 /* We use char because int might match the return type of a gcc2
2794 builtin and then its argument prototype would still apply. */
2799 /* The GNU C library defines this for functions which it implements
2800 to always fail with ENOSYS. Some functions are actually named
2801 something starting with __ and the normal name is an alias. */
2802 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2810 if { (eval echo configure
:2811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2812 eval "ac_cv_func_$ac_func=yes"
2814 echo "configure: failed program was:" >&5
2815 cat conftest.
$ac_ext >&5
2817 eval "ac_cv_func_$ac_func=no"
2822 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2823 echo "$ac_t""yes" 1>&6
2824 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2825 cat >> confdefs.h
<<EOF
2826 #define $ac_tr_func 1
2830 echo "$ac_t""no" 1>&6
2834 if test "$ac_cv_func_shl_load" = "yes"; then
2835 cat >> confdefs.h
<<\EOF
2836 #define DYNAMIC_LINKING 1
2845 #--------------------------------------------------------------------
2847 # Which way does the stack grow?
2849 #--------------------------------------------------------------------
2851 if test "$cross_compiling" = yes; then
2852 echo "configure: warning: Guessing that stack grows down -- see scmconfig.h.in" 1>&2
2854 cat > conftest.
$ac_ext <<EOF
2855 #line 2856 "configure"
2856 #include "confdefs.h"
2857 aux (l) unsigned long l;
2858 { int x; exit (l >= ((unsigned long)&x)); }
2859 main () { int q; aux((unsigned long)&q); }
2861 if { (eval echo configure
:2862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2863 cat >> confdefs.h
<<\EOF
2864 #define SCM_STACK_GROWS_UP 1
2868 echo "configure: failed program was:" >&5
2869 cat conftest.
$ac_ext >&5
2876 if test "$cross_compiling" = yes; then
2877 cat >> confdefs.h
<<\EOF
2878 #define SCM_SINGLES 1
2881 echo "configure: warning: Guessing that sizeof(long) == sizeof(float) -- see scmconfig.h.in" 1>&2
2883 cat > conftest.
$ac_ext <<EOF
2884 #line 2885 "configure"
2885 #include "confdefs.h"
2886 main () { exit (sizeof(float) != sizeof(long)); }
2888 if { (eval echo configure
:2889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2890 cat >> confdefs.h
<<\EOF
2891 #define SCM_SINGLES 1
2895 echo "configure: failed program was:" >&5
2896 cat conftest.
$ac_ext >&5
2902 echo $ac_n "checking for struct linger""... $ac_c" 1>&6
2903 echo "configure:2904: checking for struct linger" >&5
2904 if eval "test \"`echo '$''{'scm_cv_struct_linger'+set}'`\" = set"; then
2905 echo $ac_n "(cached) $ac_c" 1>&6
2907 cat > conftest.
$ac_ext <<EOF
2908 #line 2909 "configure"
2909 #include "confdefs.h"
2911 #include <sys/types.h>
2912 #include <sys/socket.h>
2914 struct linger lgr; lgr.l_linger = 100
2917 if { (eval echo configure
:2918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2919 scm_cv_struct_linger
="yes"
2921 echo "configure: failed program was:" >&5
2922 cat conftest.
$ac_ext >&5
2924 scm_cv_struct_linger
="no"
2929 echo "$ac_t""$scm_cv_struct_linger" 1>&6
2930 if test $scm_cv_struct_linger = yes; then
2931 cat >> confdefs.h
<<\EOF
2932 #define HAVE_STRUCT_LINGER 1
2937 #--------------------------------------------------------------------
2939 # How can you violate a stdio abstraction by setting a stream's fd?
2941 #--------------------------------------------------------------------
2943 echo $ac_n "checking how to set a stream file descriptor""... $ac_c" 1>&6
2944 echo "configure:2945: checking how to set a stream file descriptor" >&5
2945 if eval "test \"`echo '$''{'scm_cv_fd_setter'+set}'`\" = set"; then
2946 echo $ac_n "(cached) $ac_c" 1>&6
2948 cat > conftest.
$ac_ext <<EOF
2949 #line 2950 "configure"
2950 #include "confdefs.h"
2956 if { (eval echo configure
:2957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2958 scm_cv_fd_setter
="_file"
2960 echo "configure: failed program was:" >&5
2961 cat conftest.
$ac_ext >&5
2963 cat > conftest.
$ac_ext <<EOF
2964 #line 2965 "configure"
2965 #include "confdefs.h"
2971 if { (eval echo configure
:2972: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2973 scm_cv_fd_setter
="_fileno"
2975 echo "configure: failed program was:" >&5
2976 cat conftest.
$ac_ext >&5
2986 if test "$scm_cv_fd_setter"; then
2987 echo "$ac_t""$scm_cv_fd_setter" 1>&6
2988 cat >> confdefs.h
<<EOF
2989 #define FD_SETTER $scm_cv_fd_setter
2993 echo "$ac_t""we couldn't do it!" 1>&6
2996 #--------------------------------------------------------------------
2997 # How to find out whether a FILE structure contains buffered data.
2998 # From Tk we have the following list:
2999 # _cnt: Most UNIX systems
3003 # Or, in GNU libc there are two fields, _gptr and _egptr, which
3004 # have to be compared.
3005 # These can also be known as _IO_read_ptr and _IO_read_end.
3006 #--------------------------------------------------------------------
3008 echo $ac_n "checking how to get buffer char count from FILE structure""... $ac_c" 1>&6
3009 echo "configure:3010: checking how to get buffer char count from FILE structure" >&5
3010 if eval "test \"`echo '$''{'scm_cv_struct_file_count'+set}'`\" = set"; then
3011 echo $ac_n "(cached) $ac_c" 1>&6
3013 cat > conftest.
$ac_ext <<EOF
3014 #line 3015 "configure"
3015 #include "confdefs.h"
3018 FILE *f = stdin; f->_cnt = 0
3021 if { (eval echo configure
:3022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3023 scm_cv_struct_file_count
="_cnt"
3025 echo "configure: failed program was:" >&5
3026 cat conftest.
$ac_ext >&5
3028 cat > conftest.
$ac_ext <<EOF
3029 #line 3030 "configure"
3030 #include "confdefs.h"
3033 FILE *f = stdin; f->_r = 0
3036 if { (eval echo configure
:3037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3038 scm_cv_struct_file_count
="_r"
3040 echo "configure: failed program was:" >&5
3041 cat conftest.
$ac_ext >&5
3043 cat > conftest.
$ac_ext <<EOF
3044 #line 3045 "configure"
3045 #include "confdefs.h"
3048 FILE *f = stdin; f->readCount = 0
3051 if { (eval echo configure
:3052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3053 scm_cv_struct_file_count
="readCount"
3055 echo "configure: failed program was:" >&5
3056 cat conftest.
$ac_ext >&5
3058 scm_cv_struct_file_count
=""
3067 if test "$scm_cv_struct_file_count"; then
3068 echo "$ac_t""$scm_cv_struct_file_count" 1>&6
3069 cat >> confdefs.h
<<EOF
3070 #define FILE_CNT_FIELD $scm_cv_struct_file_count
3074 if eval "test \"`echo '$''{'scm_cv_struct_file_gptr'+set}'`\" = set"; then
3075 echo $ac_n "(cached) $ac_c" 1>&6
3077 cat > conftest.
$ac_ext <<EOF
3078 #line 3079 "configure"
3079 #include "confdefs.h"
3082 FILE *f = stdin; f->_gptr = f->egptr;
3085 if { (eval echo configure
:3086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3087 scm_cv_struct_file_gptr
=1
3089 echo "configure: failed program was:" >&5
3090 cat conftest.
$ac_ext >&5
3092 scm_cv_struct_file_gptr
=""
3097 if test "$scm_cv_struct_gptr"; then
3098 echo "$ac_t""gptr" 1>&6
3099 cat >> confdefs.h
<<EOF
3100 #define FILE_CNT_GPTR $scm_cv_struct_file_gptr
3104 if eval "test \"`echo '$''{'scm_cv_struct_file_readptr'+set}'`\" = set"; then
3105 echo $ac_n "(cached) $ac_c" 1>&6
3107 cat > conftest.
$ac_ext <<EOF
3108 #line 3109 "configure"
3109 #include "confdefs.h"
3112 FILE *f = stdin; f->_IO_read_ptr = f->_IO_read_end;
3115 if { (eval echo configure
:3116: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3117 scm_cv_struct_file_readptr
=1
3119 echo "configure: failed program was:" >&5
3120 cat conftest.
$ac_ext >&5
3125 if test "$scm_cv_struct_file_readptr"; then
3126 echo "$ac_t""read_ptr" 1>&6
3127 cat >> confdefs.h
<<EOF
3128 #define FILE_CNT_READPTR $scm_cv_struct_file_readptr
3132 echo "$ac_t""we couldn't do it!" 1>&6
3137 #--------------------------------------------------------------------
3139 # Flags for thread support
3141 #--------------------------------------------------------------------
3144 echo $ac_n "checking "threads package
type"""... $ac_c" 1>&6
3145 echo "configure:3146: checking "threads package
type"" >&5
3146 if eval "test \"`echo '$''{'cy_cv_threads_package'+set}'`\" = set"; then
3147 echo $ac_n "(cached) $ac_c" 1>&6
3150 if eval "test \"`echo '$''{'cy_cv_threads_cflags'+set}'`\" = set"; then
3151 echo $ac_n "(cached) $ac_c" 1>&6
3154 if eval "test \"`echo '$''{'cy_cv_threads_libs'+set}'`\" = set"; then
3155 echo $ac_n "(cached) $ac_c" 1>&6
3159 # Check whether --with-threads or --without-threads was given.
3160 if test "${with_threads+set}" = set; then
3161 withval
="$with_threads"
3162 use_threads
=$withval
3167 test -n "$use_threads" || use_threads
=qt
3168 threads_package
=unknown
3169 if test "$use_threads" != no
; then
3170 if test "$use_threads" = yes ||
test "$use_threads" = qt
; then
3171 # Look for qt in source directory. This is a hack: we look in
3172 # "./qt" because this check might be run at the top level.
3173 if test -f $srcdir/..
/qt
/qt.c ||
test -f $srcdir/qt
/qt.c
; then
3174 threads_package
=COOP
3175 cy_cv_threads_cflags
="-I$srcdir/../qt -I../qt"
3176 cy_cv_threads_libs
="../threads/libthreads.a ../qt/libqt.a"
3179 if test -f $use_threads/qt.c
; then
3180 # FIXME seems as though we should try to use an installed qt here.
3181 threads_package
=COOP
3182 cy_cv_threads_cflags
="-I$use_threads -I../qt"
3183 cy_cv_threads_libs
="../threads/libthreads.a ../qt/libqt.a"
3186 if test "$use_threads" = pthreads
; then
3187 # Look for pthreads in srcdir. See above to understand why
3188 # we always set threads_package.
3189 if test -f $srcdir/..
/..
/pthreads
/pthreads
/queue.c \
3190 ||
test -f $srcdir/..
/pthreads
/pthreads
/queue.c
; then
3192 cy_cv_threads_cflags
="-I$srcdir/../../pthreads/include"
3193 cy_cv_threads_libs
="-L../../pthreads/lib -lpthread"
3196 saved_CPP
="$CPPFLAGS"
3199 if test "$threads_package" = unknown
; then
3200 CPPFLAGS
="-I$use_threads/include"
3201 LDFLAGS
="-L$use_threads/lib"
3202 LIBS
="-lgthreads -lmalloc"
3203 cat > conftest.
$ac_ext <<EOF
3204 #line 3205 "configure"
3205 #include "confdefs.h"
3206 #include <pthread.h>
3209 pthread_equal(NULL,NULL);
3213 if { (eval echo configure
:3214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3217 echo "configure: failed program was:" >&5
3218 cat conftest.
$ac_ext >&5
3222 if test "$threads_package" = unknown
; then
3224 cat > conftest.
$ac_ext <<EOF
3225 #line 3226 "configure"
3226 #include "confdefs.h"
3227 #include <pthread.h>
3230 pthread_equal(NULL,NULL);
3234 if { (eval echo configure
:3235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3238 echo "configure: failed program was:" >&5
3239 cat conftest.
$ac_ext >&5
3243 if test "$threads_package" = unknown
; then
3245 cat > conftest.
$ac_ext <<EOF
3246 #line 3247 "configure"
3247 #include "confdefs.h"
3248 #include <pthread.h>
3251 pthread_equal(NULL,NULL);
3255 if { (eval echo configure
:3256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3257 threads_package
=PCthreads
3259 echo "configure: failed program was:" >&5
3260 cat conftest.
$ac_ext >&5
3264 cy_cv_threads_cflags
="$CPPFLAGS $cy_cv_threads_cflags"
3265 cy_cv_threads_libs
="$LDFLAGS $LIBS $cy_cv_threads_libs"
3266 cy_cv_threads_package
=$threads_package
3267 CPPFLAGS
="$saved_CPP"
3270 if test "$threads_package" = unknown
; then
3271 { echo "configure: error: "cannot
find thread library installation
"" 1>&2; exit 1; }
3283 echo "$ac_t""$cy_cv_threads_package" 1>&6
3285 CFLAGS
="$CFLAGS $cy_cv_threads_cflags"
3286 THREAD_LIBS
="$cy_cv_threads_libs"
3289 if test "$cy_cv_threads_package" = FSU
; then
3290 cat >> confdefs.h
<<\EOF
3291 #define USE_FSU_PTHREADS 1
3294 else if test "$cy_cv_threads_package" = COOP
; then
3295 cat >> confdefs.h
<<\EOF
3296 #define USE_COOP_THREADS 1
3299 else if test "$cy_cv_threads_package" = MIT
; then
3300 cat >> confdefs.h
<<\EOF
3301 #define USE_MIT_PTHREADS 1
3304 else if test "$cy_cv_threads_package" = PCthreads
; then
3305 cat >> confdefs.h
<<\EOF
3306 #define USE_PCTHREADS_PTHREADS 1
3309 else if test "$cy_cv_threads_package" = unknown
; then
3310 { echo "configure: error: "cannot
find threads installation
"" 1>&2; exit 1; }
3317 if test "$cy_cv_threads_package" != ""; then
3318 cat >> confdefs.h
<<\EOF
3319 #define USE_THREADS 1
3322 LIBOBJS
="$LIBOBJS threads.o"
3325 ## If we're using GCC, ask for aggressive warnings.
3327 yes ) CFLAGS
="$CFLAGS -Wall -Wpointer-arith" ;;
3330 for ac_prog
in mawk gawk nawk
awk
3332 # Extract the first word of "$ac_prog", so it can be a program name with args.
3333 set dummy
$ac_prog; ac_word
=$2
3334 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3335 echo "configure:3336: checking for $ac_word" >&5
3336 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
3337 echo $ac_n "(cached) $ac_c" 1>&6
3339 if test -n "$AWK"; then
3340 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3342 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3343 for ac_dir
in $PATH; do
3344 test -z "$ac_dir" && ac_dir
=.
3345 if test -f $ac_dir/$ac_word; then
3346 ac_cv_prog_AWK
="$ac_prog"
3353 AWK
="$ac_cv_prog_AWK"
3354 if test -n "$AWK"; then
3355 echo "$ac_t""$AWK" 1>&6
3357 echo "$ac_t""no" 1>&6
3360 test -n "$AWK" && break
3364 ## If we're creating a shared library (using libtool!), then we'll
3365 ## need to generate a list of .lo files corresponding to the .o files
3366 ## given in LIBOBJS. We'll call it LIBLOBJS.
3367 LIBLOBJS
="`echo ${LIBOBJS} | sed 's/\.o/.lo/g'`"
3369 cat >> confdefs.h
<<EOF
3370 #define GUILE_MAJOR_VERSION "$GUILE_MAJOR_VERSION"
3373 cat >> confdefs.h
<<EOF
3374 #define GUILE_MINOR_VERSION "$GUILE_MINOR_VERSION"
3377 cat >> confdefs.h
<<EOF
3378 #define GUILE_VERSION "$GUILE_VERSION"
3387 threads_enabled
=false
3388 if test "$cy_cv_threads_package" = COOP
; then
3389 threads_enabled
=true
3392 # Determine the host we are working on
3394 # Make sure we can run config.sub.
3395 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
3396 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
3399 echo $ac_n "checking host system type""... $ac_c" 1>&6
3400 echo "configure:3401: checking host system type" >&5
3403 case "$host_alias" in
3407 if host_alias
=`$ac_config_guess`; then :
3408 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
3410 *) host_alias
=$nonopt ;;
3414 host=`$ac_config_sub $host_alias`
3415 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3416 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3417 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3418 echo "$ac_t""$host" 1>&6
3423 qtmds_s
=$srcdir/md
/i386.s
3424 qtmd_h
=$srcdir/md
/i386.h
3425 qtmdc_c
=$srcdir/md
/null.c
3428 qtmds_s
=$srcdir/md
/mips-irix5.s
3429 qtmd_h
=$srcdir/md
/mips.h
3430 qtmdc_c
=$srcdir/md
/null.c
3431 qtdmdb_s
=$srcdir/md
/mips_b.s
3434 qtmds_s
=$srcdir/md
/mips.s
3435 qtmd_h
=$srcdir/md
/mips.h
3436 qtmdc_c
=$srcdir/md
/null.c
3437 qtdmdb_s
=$srcdir/md
/mips_b.s
3439 sparc-sun-solaris2.
*)
3440 qtmd_h
=$srcdir/md
/sparc.h
3441 qtmdc_c
=$srcdir/md
/null.c
3442 qtmds_s
=$srcdir/md
/sparc.s
3443 qtdmdb_s
=$srcdir/md
/sparc_b.s
3446 qtmd_h
=$srcdir/md
/sparc.h
3447 qtmdc_c
=$srcdir/md
/null.c
3448 qtmds_s
=$srcdir/md
/_sparc.s
3449 qtdmdb_s
=$srcdir/md
/_sparc_b.s
3452 echo "Unknown configuration; threads package disabled"
3453 threads_enabled
=false
3459 if $threads_enabled; then
3465 # Give the Makefile the names of the object files that will be
3466 # generated by compiling $qtmdc_c and $qtmds_s.
3467 qtmdc_o
="`echo ${qtmdc_c} | sed -e 's:^.*/::' | sed -e 's:\.c$:\.o:'`"
3468 qtmds_o
="`echo ${qtmds_s} | sed -e 's:^.*/::' | sed -e 's:\.s$:\.o:'`"
3479 cat > confcache
<<\EOF
3480 # This file is a shell script that caches the results of configure
3481 # tests run on this system so they can be shared between configure
3482 # scripts and configure runs. It is not useful on other systems.
3483 # If it contains results you don't want to keep, you may remove or edit it.
3485 # By default, configure uses ./config.cache as the cache file,
3486 # creating it if it does not exist already. You can give configure
3487 # the --cache-file=FILE option to use a different cache file; that is
3488 # what configure does when it calls configure scripts in
3489 # subdirectories, so they share the cache.
3490 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3491 # config.status only pays attention to the cache file if you give it the
3492 # --recheck option to rerun configure.
3495 # The following way of writing the cache mishandles newlines in values,
3496 # but we know of no workaround that is simple, portable, and efficient.
3497 # So, don't put newlines in cache variables' values.
3498 # Ultrix sh set writes to stderr and can't be redirected directly,
3499 # and sets the high bit in the cache file unless we assign to the vars.
3501 case `(ac_space=' '; set) 2>&1` in
3503 # `set' does not quote correctly, so add quotes (double-quote substitution
3504 # turns \\\\ into \\, and sed turns \\ into \).
3506 -e "s/'/'\\\\''/g" \
3507 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3510 # `set' quotes correctly as required by POSIX, so do not add quotes.
3511 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3514 if cmp -s $cache_file confcache
; then
3517 if test -w $cache_file; then
3518 echo "updating cache $cache_file"
3519 cat confcache
> $cache_file
3521 echo "not updating unwritable cache $cache_file"
3526 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3528 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
3529 # Let make expand exec_prefix.
3530 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
3532 # Any assignment to VPATH causes Sun make to only execute
3533 # the first set of double-colon rules, so remove it if not needed.
3534 # If there is a colon in the path, we need to keep it.
3535 if test "x$srcdir" = x.
; then
3536 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
3539 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3541 DEFS
=-DHAVE_CONFIG_H
3543 # Without the "./", some shells look in PATH for config.status.
3544 : ${CONFIG_STATUS=./config.status}
3546 echo creating
$CONFIG_STATUS
3547 rm -f $CONFIG_STATUS
3548 cat > $CONFIG_STATUS <<EOF
3550 # Generated automatically by configure.
3551 # Run this file to recreate the current configuration.
3552 # This directory was configured as follows,
3553 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3555 # $0 $ac_configure_args
3557 # Compiler output produced by configure, useful for debugging
3558 # configure, is in ./config.log if it exists.
3560 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3563 case "\$ac_option" in
3564 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3565 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3566 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3567 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3568 echo "$CONFIG_STATUS generated by autoconf version 2.12"
3570 -help | --help | --hel | --he | --h)
3571 echo "\$ac_cs_usage"; exit 0 ;;
3572 *) echo "\$ac_cs_usage"; exit 1 ;;
3576 ac_given_srcdir=$srcdir
3577 ac_given_INSTALL="$INSTALL"
3579 trap 'rm -fr `echo "Makefile libguile/Makefile libguile/guile-snarf ice-9/Makefile qt/Makefile qt/qt.h qt/md/Makefile qt/time/Makefile libguile/scmconfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3581 cat >> $CONFIG_STATUS <<EOF
3583 # Protect against being on the right side of a sed subst in config.status.
3584 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3585 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3588 s%@CFLAGS@%$CFLAGS%g
3589 s%@CPPFLAGS@%$CPPFLAGS%g
3590 s%@CXXFLAGS@%$CXXFLAGS%g
3592 s%@LDFLAGS@%$LDFLAGS%g
3594 s%@exec_prefix@%$exec_prefix%g
3595 s%@prefix@%$prefix%g
3596 s%@program_transform_name@%$program_transform_name%g
3597 s%@bindir@%$bindir%g
3598 s%@sbindir@%$sbindir%g
3599 s%@libexecdir@%$libexecdir%g
3600 s%@datadir@%$datadir%g
3601 s%@sysconfdir@%$sysconfdir%g
3602 s%@sharedstatedir@%$sharedstatedir%g
3603 s%@localstatedir@%$localstatedir%g
3604 s%@libdir@%$libdir%g
3605 s%@includedir@%$includedir%g
3606 s%@oldincludedir@%$oldincludedir%g
3607 s%@infodir@%$infodir%g
3608 s%@mandir@%$mandir%g
3609 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3610 s%@INSTALL_DATA@%$INSTALL_DATA%g
3611 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3612 s%@PACKAGE@%$PACKAGE%g
3613 s%@VERSION@%$VERSION%g
3614 s%@ACLOCAL@%$ACLOCAL%g
3615 s%@AUTOCONF@%$AUTOCONF%g
3616 s%@AUTOMAKE@%$AUTOMAKE%g
3617 s%@AUTOHEADER@%$AUTOHEADER%g
3618 s%@MAKEINFO@%$MAKEINFO%g
3619 s%@SET_MAKE@%$SET_MAKE%g
3624 s%@host_alias@%$host_alias%g
3625 s%@host_cpu@%$host_cpu%g
3626 s%@host_vendor@%$host_vendor%g
3627 s%@host_os@%$host_os%g
3628 s%@RANLIB@%$RANLIB%g
3629 s%@LIBTOOL@%$LIBTOOL%g
3630 s%@LIBOBJS@%$LIBOBJS%g
3631 s%@ALLOCA@%$ALLOCA%g
3632 s%@xtra_PLUGIN_guile_libs@%$xtra_PLUGIN_guile_libs%g
3633 s%@THREAD_LIBS@%$THREAD_LIBS%g
3635 s%@LIBLOBJS@%$LIBLOBJS%g
3636 s%@target_libs@%$target_libs%g
3637 s%@qtmd_h@%$qtmd_h%g
3638 s%@qtmdc_c@%$qtmdc_c%g
3639 s%@qtmdc_o@%$qtmdc_o%g
3640 s%@qtmds_s@%$qtmds_s%g
3641 s%@qtmds_o@%$qtmds_o%g
3642 s%@qtmdb_s@%$qtmdb_s%g
3647 cat >> $CONFIG_STATUS <<\EOF
3649 # Split the substitutions into bite-sized pieces for seds with
3650 # small command number limits, like on Digital OSF/1 and HP-UX.
3651 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
3652 ac_file
=1 # Number of current file.
3653 ac_beg
=1 # First line for current file.
3654 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
3657 while $ac_more_lines; do
3658 if test $ac_beg -gt 1; then
3659 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
3661 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
3663 if test ! -s conftest.s
$ac_file; then
3665 rm -f conftest.s
$ac_file
3667 if test -z "$ac_sed_cmds"; then
3668 ac_sed_cmds
="sed -f conftest.s$ac_file"
3670 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
3672 ac_file
=`expr $ac_file + 1`
3674 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
3677 if test -z "$ac_sed_cmds"; then
3682 cat >> $CONFIG_STATUS <<EOF
3684 CONFIG_FILES=\${CONFIG_FILES-"Makefile libguile/Makefile libguile/guile-snarf ice-9/Makefile qt/Makefile qt/qt.h qt/md/Makefile qt/time/Makefile"}
3686 cat >> $CONFIG_STATUS <<\EOF
3687 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
3688 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3690 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3691 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3692 *) ac_file_in
="${ac_file}.in" ;;
3695 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3697 # Remove last slash and all that follows it. Not all systems have dirname.
3698 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3699 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
3700 # The file is in a subdirectory.
3701 test ! -d "$ac_dir" && mkdir
"$ac_dir"
3702 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
3703 # A "../" for each directory in $ac_dir_suffix.
3704 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3706 ac_dir_suffix
= ac_dots
=
3709 case "$ac_given_srcdir" in
3711 if test -z "$ac_dots"; then top_srcdir
=.
3712 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3713 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
3715 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3716 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
3719 case "$ac_given_INSTALL" in
3720 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
3721 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
3724 echo creating
"$ac_file"
3726 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3728 *Makefile
*) ac_comsub
="1i\\
3729 # $configure_input" ;;
3733 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3735 s%@configure_input@%$configure_input%g
3736 s%@srcdir@%$srcdir%g
3737 s%@top_srcdir@%$top_srcdir%g
3738 s%@INSTALL@%$INSTALL%g
3739 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
3743 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3744 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3746 # ac_d sets the value in "#define NAME VALUE" lines.
3747 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3748 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
3751 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3752 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3753 ac_uB
='\([ ]\)%\1#\2define\3'
3756 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3757 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3758 ac_eB
='$%\1#\2define\3'
3762 if test "${CONFIG_HEADERS+set}" != set; then
3764 cat >> $CONFIG_STATUS <<EOF
3765 CONFIG_HEADERS="libguile/scmconfig.h"
3767 cat >> $CONFIG_STATUS <<\EOF
3769 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
3770 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3772 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3773 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3774 *) ac_file_in
="${ac_file}.in" ;;
3777 echo creating
$ac_file
3779 rm -f conftest.frag conftest.
in conftest.out
3780 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3781 cat $ac_file_inputs > conftest.
in
3785 # Transform confdefs.h into a sed script conftest.vals that substitutes
3786 # the proper values into config.h.in to produce config.h. And first:
3787 # Protect against being on the right side of a sed subst in config.status.
3788 # Protect against being in an unquoted here document in config.status.
3790 cat > conftest.hdr
<<\EOF
3793 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3797 sed -n -f conftest.hdr confdefs.h > conftest.vals
3800 # This sed command replaces #undef with comments. This is necessary, for
3801 # example, in the case of _POSIX_SOURCE, which is predefined and required
3802 # on some systems where configure will not decide to define it.
3803 cat >> conftest.vals <<\EOF
3804 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3807 # Break up conftest.vals because some shells have a limit on
3808 # the size of here documents, and old seds have small limits too.
3813 ac_lines=`grep -c . conftest.vals
`
3814 # grep -c gives empty output for an empty file on some AIX systems.
3815 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3816 # Write a limited-size here document to conftest.frag.
3817 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3818 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3820 sed -f conftest.frag conftest.in > conftest.out
3822 mv conftest.out conftest.in
3824 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3826 mv conftest.tail conftest.vals
3830 cat >> $CONFIG_STATUS <<\EOF
3831 rm -f conftest.frag conftest.h
3832 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3833 cat conftest.in >> conftest.h
3835 if cmp -s $ac_file conftest.h 2>/dev/null; then
3836 echo "$ac_file is unchanged"
3839 # Remove last slash and all that follows it. Not all systems have dirname.
3840 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
3841 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3842 # The file is in a subdirectory.
3843 test ! -d "$ac_dir" && mkdir "$ac_dir"
3846 mv conftest.h $ac_file
3851 cat >> $CONFIG_STATUS <<EOF
3855 cat >> $CONFIG_STATUS <<\EOF
3856 test -z "$CONFIG_HEADERS" || echo timestamp > libguile/stamp-h
3857 chmod +x libguile/guile-snarf
3860 chmod +x $CONFIG_STATUS
3861 rm -fr confdefs* $ac_clean_files
3862 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1