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}'
622 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
623 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
626 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
627 echo "configure:628: checking whether build environment is sane" >&5
630 echo timestamp
> conftestfile
631 # Do `set' in a subshell so we don't clobber the current shell's
632 # arguments. Must try -L first in case configure is actually a
633 # symlink; some systems play weird games with the mod time of symlinks
634 # (eg FreeBSD returns the mod time of the symlink's containing
637 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
638 if test "" = "X"; then
640 set X
`ls -t $srcdir/configure conftestfile`
642 test "$2" = conftestfile
648 { echo "configure: error: newly created file is older than distributed files!
649 Check your system clock" 1>&2; exit 1; }
652 echo "$ac_t""yes" 1>&6
653 if test "$program_transform_name" = s
,x
,x
,; then
654 program_transform_name
=
656 # Double any \ or $. echo might interpret backslashes.
657 cat <<\EOF_SED
> conftestsed
658 s
,\\,\\\\,g
; s
,\$
,$$
,g
660 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
663 test "$program_prefix" != NONE
&&
664 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
665 # Use a double $ so make ignores it.
666 test "$program_suffix" != NONE
&&
667 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
669 # sed with no file args requires a program.
670 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
672 missing_dir
=`cd $ac_aux_dir && pwd`
673 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
674 echo "configure:675: checking for working aclocal" >&5
675 # Run test in a subshell; some versions of sh will print an error if
676 # an executable is not found, even if stderr is redirected.
677 # Redirect stdin to placate older versions of autoconf. Sigh.
678 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
680 echo "$ac_t""found" 1>&6
682 ACLOCAL
="$missing_dir/missing aclocal"
683 echo "$ac_t""missing" 1>&6
686 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
687 echo "configure:688: checking for working autoconf" >&5
688 # Run test in a subshell; some versions of sh will print an error if
689 # an executable is not found, even if stderr is redirected.
690 # Redirect stdin to placate older versions of autoconf. Sigh.
691 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
693 echo "$ac_t""found" 1>&6
695 AUTOCONF
="$missing_dir/missing autoconf"
696 echo "$ac_t""missing" 1>&6
699 echo $ac_n "checking for working automake""... $ac_c" 1>&6
700 echo "configure:701: checking for working automake" >&5
701 # Run test in a subshell; some versions of sh will print an error if
702 # an executable is not found, even if stderr is redirected.
703 # Redirect stdin to placate older versions of autoconf. Sigh.
704 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
706 echo "$ac_t""found" 1>&6
708 AUTOMAKE
="$missing_dir/missing automake"
709 echo "$ac_t""missing" 1>&6
712 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
713 echo "configure:714: checking for working autoheader" >&5
714 # Run test in a subshell; some versions of sh will print an error if
715 # an executable is not found, even if stderr is redirected.
716 # Redirect stdin to placate older versions of autoconf. Sigh.
717 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
718 AUTOHEADER
=autoheader
719 echo "$ac_t""found" 1>&6
721 AUTOHEADER
="$missing_dir/missing autoheader"
722 echo "$ac_t""missing" 1>&6
725 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
726 echo "configure:727: checking for working makeinfo" >&5
727 # Run test in a subshell; some versions of sh will print an error if
728 # an executable is not found, even if stderr is redirected.
729 # Redirect stdin to placate older versions of autoconf. Sigh.
730 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
732 echo "$ac_t""found" 1>&6
734 MAKEINFO
="$missing_dir/missing makeinfo"
735 echo "$ac_t""missing" 1>&6
738 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
739 echo "configure:740: checking whether ${MAKE-make} sets \${MAKE}" >&5
740 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
741 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
742 echo $ac_n "(cached) $ac_c" 1>&6
744 cat > conftestmake
<<\EOF
746 @
echo 'ac_maketemp="${MAKE}"'
748 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
749 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
750 if test -n "$ac_maketemp"; then
751 eval ac_cv_prog_make_
${ac_make}_set
=yes
753 eval ac_cv_prog_make_
${ac_make}_set
=no
757 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
758 echo "$ac_t""yes" 1>&6
761 echo "$ac_t""no" 1>&6
762 SET_MAKE
="MAKE=${MAKE-make}"
765 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
766 echo "configure:767: checking whether to enable maintainer-specific portions of Makefiles" >&5
767 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
768 if test "${enable_maintainer_mode+set}" = set; then
769 enableval
="$enable_maintainer_mode"
770 USE_MAINTAINER_MODE
=$enableval
772 USE_MAINTAINER_MODE
=no
775 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
776 if test $USE_MAINTAINER_MODE = yes; then
787 #--------------------------------------------------------------------
791 #--------------------------------------------------------------------
793 # Check whether --enable-debug or --disable-debug was given.
794 if test "${enable_debug+set}" = set; then
795 enableval
="$enable_debug"
799 if test "$enableval" != n
&& test "$enableval" != no
; then
800 cat >> confdefs.h
<<\EOF
801 #define DEBUG_EXTENSIONS 1
804 cat >> confdefs.h
<<\EOF
805 #define READER_EXTENSIONS 1
808 LIBOBJS
="backtrace.o stacks.o debug.o srcprop.o $LIBOBJS"
811 # Check whether --enable-dynamic-linking or --disable-dynamic-linking was given.
812 if test "${enable_dynamic_linking+set}" = set; then
813 enableval
="$enable_dynamic_linking"
818 # Check whether --enable-guile-debug or --disable-guile-debug was given.
819 if test "${enable_guile_debug+set}" = set; then
820 enableval
="$enable_guile_debug"
824 if test "$enableval" = y ||
test "$enableval" = yes; then
825 cat >> confdefs.h
<<\EOF
826 #define GUILE_DEBUG 1
831 #--------------------------------------------------------------------
833 # Extract the first word of "gcc", so it can be a program name with args.
834 set dummy gcc
; ac_word
=$2
835 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
836 echo "configure:837: checking for $ac_word" >&5
837 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
838 echo $ac_n "(cached) $ac_c" 1>&6
840 if test -n "$CC"; then
841 ac_cv_prog_CC
="$CC" # Let the user override the test.
843 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
844 for ac_dir
in $PATH; do
845 test -z "$ac_dir" && ac_dir
=.
846 if test -f $ac_dir/$ac_word; then
855 if test -n "$CC"; then
856 echo "$ac_t""$CC" 1>&6
858 echo "$ac_t""no" 1>&6
861 if test -z "$CC"; then
862 # Extract the first word of "cc", so it can be a program name with args.
863 set dummy cc
; ac_word
=$2
864 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
865 echo "configure:866: checking for $ac_word" >&5
866 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
867 echo $ac_n "(cached) $ac_c" 1>&6
869 if test -n "$CC"; then
870 ac_cv_prog_CC
="$CC" # Let the user override the test.
872 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
874 for ac_dir
in $PATH; do
875 test -z "$ac_dir" && ac_dir
=.
876 if test -f $ac_dir/$ac_word; then
877 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
886 if test $ac_prog_rejected = yes; then
887 # We found a bogon in the path, so make sure we never use it.
888 set dummy
$ac_cv_prog_CC
890 if test $# -gt 0; then
891 # We chose a different compiler from the bogus one.
892 # However, it has the same basename, so the bogon will be chosen
893 # first if we set CC to just the basename; use the full file name.
895 set dummy
"$ac_dir/$ac_word" "$@"
903 if test -n "$CC"; then
904 echo "$ac_t""$CC" 1>&6
906 echo "$ac_t""no" 1>&6
909 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
912 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
913 echo "configure:914: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
916 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
917 ac_cpp
='$CPP $CPPFLAGS'
918 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
919 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
920 cross_compiling
=$ac_cv_prog_cc_cross
922 cat > conftest.
$ac_ext <<EOF
923 #line 924 "configure"
924 #include "confdefs.h"
927 if { (eval echo configure
:928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
928 ac_cv_prog_cc_works
=yes
929 # If we can't run a trivial program, we are probably using a cross compiler.
930 if (.
/conftest
; exit) 2>/dev
/null
; then
931 ac_cv_prog_cc_cross
=no
933 ac_cv_prog_cc_cross
=yes
936 echo "configure: failed program was:" >&5
937 cat conftest.
$ac_ext >&5
938 ac_cv_prog_cc_works
=no
942 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
943 if test $ac_cv_prog_cc_works = no
; then
944 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
946 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
947 echo "configure:948: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
948 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
949 cross_compiling
=$ac_cv_prog_cc_cross
951 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
952 echo "configure:953: checking whether we are using GNU C" >&5
953 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
954 echo $ac_n "(cached) $ac_c" 1>&6
956 cat > conftest.c
<<EOF
961 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
968 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
970 if test $ac_cv_prog_gcc = yes; then
972 ac_test_CFLAGS
="${CFLAGS+set}"
973 ac_save_CFLAGS
="$CFLAGS"
975 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
976 echo "configure:977: checking whether ${CC-cc} accepts -g" >&5
977 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
978 echo $ac_n "(cached) $ac_c" 1>&6
980 echo 'void f(){}' > conftest.c
981 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
990 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
991 if test "$ac_test_CFLAGS" = set; then
992 CFLAGS
="$ac_save_CFLAGS"
993 elif test $ac_cv_prog_cc_g = yes; then
1000 test "${CFLAGS+set}" = set || CFLAGS
="-g"
1003 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1004 echo "configure:1005: checking how to run the C preprocessor" >&5
1005 # On Suns, sometimes $CPP names a directory.
1006 if test -n "$CPP" && test -d "$CPP"; then
1009 if test -z "$CPP"; then
1010 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1011 echo $ac_n "(cached) $ac_c" 1>&6
1013 # This must be in double quotes, not single quotes, because CPP may get
1014 # substituted into the Makefile and "${CC-cc}" will confuse make.
1016 # On the NeXT, cc -E runs the code through the compiler's parser,
1017 # not just through cpp.
1018 cat > conftest.
$ac_ext <<EOF
1019 #line 1020 "configure"
1020 #include "confdefs.h"
1024 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1025 { (eval echo configure
:1026: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1026 ac_err
=`grep -v '^ *+' conftest.out`
1027 if test -z "$ac_err"; then
1031 echo "configure: failed program was:" >&5
1032 cat conftest.
$ac_ext >&5
1034 CPP
="${CC-cc} -E -traditional-cpp"
1035 cat > conftest.
$ac_ext <<EOF
1036 #line 1037 "configure"
1037 #include "confdefs.h"
1041 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1042 { (eval echo configure
:1043: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1043 ac_err
=`grep -v '^ *+' conftest.out`
1044 if test -z "$ac_err"; then
1048 echo "configure: failed program was:" >&5
1049 cat conftest.
$ac_ext >&5
1056 ac_cv_prog_CPP
="$CPP"
1058 CPP
="$ac_cv_prog_CPP"
1060 ac_cv_prog_CPP
="$CPP"
1062 echo "$ac_t""$CPP" 1>&6
1065 # Make sure we can run config.sub.
1066 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
1067 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1070 echo $ac_n "checking host system type""... $ac_c" 1>&6
1071 echo "configure:1072: checking host system type" >&5
1074 case "$host_alias" in
1078 if host_alias
=`$ac_config_guess`; then :
1079 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1081 *) host_alias
=$nonopt ;;
1085 host=`$ac_config_sub $host_alias`
1086 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1087 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1088 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1089 echo "$ac_t""$host" 1>&6
1091 # Extract the first word of "ranlib", so it can be a program name with args.
1092 set dummy ranlib
; ac_word
=$2
1093 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1094 echo "configure:1095: checking for $ac_word" >&5
1095 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1096 echo $ac_n "(cached) $ac_c" 1>&6
1098 if test -n "$RANLIB"; then
1099 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1101 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1102 for ac_dir
in $PATH; do
1103 test -z "$ac_dir" && ac_dir
=.
1104 if test -f $ac_dir/$ac_word; then
1105 ac_cv_prog_RANLIB
="ranlib"
1110 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1113 RANLIB
="$ac_cv_prog_RANLIB"
1114 if test -n "$RANLIB"; then
1115 echo "$ac_t""$RANLIB" 1>&6
1117 echo "$ac_t""no" 1>&6
1124 # Always use our own libtool.
1125 LIBTOOL
='$(top_builddir)/libtool'
1128 # Check whether --enable-shared or --disable-shared was given.
1129 if test "${enable_shared+set}" = set; then
1130 enableval
="$enable_shared"
1131 test "$enableval" = no
&& libtool_shared
=" --disable-shared"
1137 libtool_flags
="$libtool_shared"
1138 test "$silent" = yes && libtool_flags
="$libtool_flags --silent"
1139 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1143 # For IRIX 6, ld needs -n32 if cc uses it.
1144 if echo " $CC $CFLAGS " |
egrep -e '[ ]-n32[ ]' > /dev
/null
; then
1150 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1151 CFLAGS
="$CFLAGS -belf"
1155 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1156 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" LD
="$LD" RANLIB
="$RANLIB" \
1157 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
1158 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$host \
1159 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1162 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1163 echo "configure:1164: checking for AIX" >&5
1164 cat > conftest.
$ac_ext <<EOF
1165 #line 1166 "configure"
1166 #include "confdefs.h"
1172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1173 egrep "yes" >/dev
/null
2>&1; then
1175 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
1176 #define _ALL_SOURCE 1
1181 echo "$ac_t""no" 1>&6
1186 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1187 echo "configure:1188: checking for POSIXized ISC" >&5
1188 if test -d /etc
/conf
/kconfig.d
&&
1189 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
1191 echo "$ac_t""yes" 1>&6
1192 ISC
=yes # If later tests want to check for ISC.
1193 cat >> confdefs.h
<<\EOF
1194 #define _POSIX_SOURCE 1
1197 if test "$GCC" = yes; then
1203 echo "$ac_t""no" 1>&6
1207 ac_safe
=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1208 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1209 echo "configure:1210: checking for minix/config.h" >&5
1210 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1211 echo $ac_n "(cached) $ac_c" 1>&6
1213 cat > conftest.
$ac_ext <<EOF
1214 #line 1215 "configure"
1215 #include "confdefs.h"
1216 #include <minix/config.h>
1218 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1219 { (eval echo configure
:1220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1220 ac_err
=`grep -v '^ *+' conftest.out`
1221 if test -z "$ac_err"; then
1223 eval "ac_cv_header_$ac_safe=yes"
1226 echo "configure: failed program was:" >&5
1227 cat conftest.
$ac_ext >&5
1229 eval "ac_cv_header_$ac_safe=no"
1233 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1234 echo "$ac_t""yes" 1>&6
1237 echo "$ac_t""no" 1>&6
1241 if test "$MINIX" = yes; then
1242 cat >> confdefs.h
<<\EOF
1243 #define _POSIX_SOURCE 1
1246 cat >> confdefs.h
<<\EOF
1247 #define _POSIX_1_SOURCE 2
1250 cat >> confdefs.h
<<\EOF
1257 echo $ac_n "checking for working const""... $ac_c" 1>&6
1258 echo "configure:1259: checking for working const" >&5
1259 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1260 echo $ac_n "(cached) $ac_c" 1>&6
1262 cat > conftest.
$ac_ext <<EOF
1263 #line 1264 "configure"
1264 #include "confdefs.h"
1268 /* Ultrix mips cc rejects this. */
1269 typedef int charset[2]; const charset x;
1270 /* SunOS 4.1.1 cc rejects this. */
1271 char const *const *ccp;
1273 /* NEC SVR4.0.2 mips cc rejects this. */
1274 struct point {int x, y;};
1275 static struct point const zero = {0,0};
1276 /* AIX XL C 1.02.0.0 rejects this.
1277 It does not let you subtract one const X* pointer from another in an arm
1278 of an if-expression whose if-part is not a constant expression */
1279 const char *g = "string";
1280 ccp = &g + (g ? g-g : 0);
1281 /* HPUX 7.0 cc rejects these. */
1284 ccp = (char const *const *) p;
1285 { /* SCO 3.2v4 cc rejects this. */
1287 char const *s = 0 ? (char *) 0 : (char const *) 0;
1291 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1293 const int *foo = &x[0];
1296 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1297 typedef const int *iptr;
1301 { /* AIX XL C 1.02.0.0 rejects this saying
1302 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1303 struct s { int j; const int *ap[3]; };
1304 struct s *b; b->j = 5;
1306 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1312 if { (eval echo configure
:1313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1316 echo "configure: failed program was:" >&5
1317 cat conftest.
$ac_ext >&5
1324 echo "$ac_t""$ac_cv_c_const" 1>&6
1325 if test $ac_cv_c_const = no
; then
1326 cat >> confdefs.h
<<\EOF
1333 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1334 echo "configure:1335: checking for ANSI C header files" >&5
1335 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1336 echo $ac_n "(cached) $ac_c" 1>&6
1338 cat > conftest.
$ac_ext <<EOF
1339 #line 1340 "configure"
1340 #include "confdefs.h"
1346 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1347 { (eval echo configure
:1348: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1348 ac_err
=`grep -v '^ *+' conftest.out`
1349 if test -z "$ac_err"; then
1351 ac_cv_header_stdc
=yes
1354 echo "configure: failed program was:" >&5
1355 cat conftest.
$ac_ext >&5
1357 ac_cv_header_stdc
=no
1361 if test $ac_cv_header_stdc = yes; then
1362 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1363 cat > conftest.
$ac_ext <<EOF
1364 #line 1365 "configure"
1365 #include "confdefs.h"
1368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1369 egrep "memchr" >/dev
/null
2>&1; then
1373 ac_cv_header_stdc
=no
1379 if test $ac_cv_header_stdc = yes; then
1380 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1381 cat > conftest.
$ac_ext <<EOF
1382 #line 1383 "configure"
1383 #include "confdefs.h"
1386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1387 egrep "free" >/dev
/null
2>&1; then
1391 ac_cv_header_stdc
=no
1397 if test $ac_cv_header_stdc = yes; then
1398 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1399 if test "$cross_compiling" = yes; then
1402 cat > conftest.
$ac_ext <<EOF
1403 #line 1404 "configure"
1404 #include "confdefs.h"
1406 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1407 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1408 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1409 int main () { int i; for (i = 0; i < 256; i++)
1410 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1414 if { (eval echo configure
:1415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1418 echo "configure: failed program was:" >&5
1419 cat conftest.
$ac_ext >&5
1421 ac_cv_header_stdc
=no
1429 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1430 if test $ac_cv_header_stdc = yes; then
1431 cat >> confdefs.h
<<\EOF
1432 #define STDC_HEADERS 1
1438 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
1440 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1441 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1442 echo "configure:1443: checking for $ac_hdr that defines DIR" >&5
1443 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1444 echo $ac_n "(cached) $ac_c" 1>&6
1446 cat > conftest.
$ac_ext <<EOF
1447 #line 1448 "configure"
1448 #include "confdefs.h"
1449 #include <sys/types.h>
1455 if { (eval echo configure
:1456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1457 eval "ac_cv_header_dirent_$ac_safe=yes"
1459 echo "configure: failed program was:" >&5
1460 cat conftest.
$ac_ext >&5
1462 eval "ac_cv_header_dirent_$ac_safe=no"
1466 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1467 echo "$ac_t""yes" 1>&6
1468 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1469 cat >> confdefs.h
<<EOF
1470 #define $ac_tr_hdr 1
1472 ac_header_dirent
=$ac_hdr; break
1474 echo "$ac_t""no" 1>&6
1477 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1478 if test $ac_header_dirent = dirent.h
; then
1479 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1480 echo "configure:1481: checking for opendir in -ldir" >&5
1481 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1482 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1483 echo $ac_n "(cached) $ac_c" 1>&6
1485 ac_save_LIBS
="$LIBS"
1487 cat > conftest.
$ac_ext <<EOF
1488 #line 1489 "configure"
1489 #include "confdefs.h"
1490 /* Override any gcc2 internal prototype to avoid an error. */
1491 /* We use char because int might match the return type of a gcc2
1492 builtin and then its argument prototype would still apply. */
1499 if { (eval echo configure
:1500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1501 eval "ac_cv_lib_$ac_lib_var=yes"
1503 echo "configure: failed program was:" >&5
1504 cat conftest.
$ac_ext >&5
1506 eval "ac_cv_lib_$ac_lib_var=no"
1509 LIBS
="$ac_save_LIBS"
1512 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1513 echo "$ac_t""yes" 1>&6
1516 echo "$ac_t""no" 1>&6
1520 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1521 echo "configure:1522: checking for opendir in -lx" >&5
1522 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1523 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1524 echo $ac_n "(cached) $ac_c" 1>&6
1526 ac_save_LIBS
="$LIBS"
1528 cat > conftest.
$ac_ext <<EOF
1529 #line 1530 "configure"
1530 #include "confdefs.h"
1531 /* Override any gcc2 internal prototype to avoid an error. */
1532 /* We use char because int might match the return type of a gcc2
1533 builtin and then its argument prototype would still apply. */
1540 if { (eval echo configure
:1541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1542 eval "ac_cv_lib_$ac_lib_var=yes"
1544 echo "configure: failed program was:" >&5
1545 cat conftest.
$ac_ext >&5
1547 eval "ac_cv_lib_$ac_lib_var=no"
1550 LIBS
="$ac_save_LIBS"
1553 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1554 echo "$ac_t""yes" 1>&6
1557 echo "$ac_t""no" 1>&6
1562 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1563 echo "configure:1564: checking whether time.h and sys/time.h may both be included" >&5
1564 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1565 echo $ac_n "(cached) $ac_c" 1>&6
1567 cat > conftest.
$ac_ext <<EOF
1568 #line 1569 "configure"
1569 #include "confdefs.h"
1570 #include <sys/types.h>
1571 #include <sys/time.h>
1577 if { (eval echo configure
:1578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1579 ac_cv_header_time
=yes
1581 echo "configure: failed program was:" >&5
1582 cat conftest.
$ac_ext >&5
1584 ac_cv_header_time
=no
1589 echo "$ac_t""$ac_cv_header_time" 1>&6
1590 if test $ac_cv_header_time = yes; then
1591 cat >> confdefs.h
<<\EOF
1592 #define TIME_WITH_SYS_TIME 1
1597 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1598 echo "configure:1599: checking for sys/wait.h that is POSIX.1 compatible" >&5
1599 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1600 echo $ac_n "(cached) $ac_c" 1>&6
1602 cat > conftest.
$ac_ext <<EOF
1603 #line 1604 "configure"
1604 #include "confdefs.h"
1605 #include <sys/types.h>
1606 #include <sys/wait.h>
1608 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1611 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1616 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1619 if { (eval echo configure
:1620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1621 ac_cv_header_sys_wait_h
=yes
1623 echo "configure: failed program was:" >&5
1624 cat conftest.
$ac_ext >&5
1626 ac_cv_header_sys_wait_h
=no
1631 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1632 if test $ac_cv_header_sys_wait_h = yes; then
1633 cat >> confdefs.h
<<\EOF
1634 #define HAVE_SYS_WAIT_H 1
1639 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
1641 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1642 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1643 echo "configure:1644: checking for $ac_hdr" >&5
1644 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1645 echo $ac_n "(cached) $ac_c" 1>&6
1647 cat > conftest.
$ac_ext <<EOF
1648 #line 1649 "configure"
1649 #include "confdefs.h"
1652 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1653 { (eval echo configure
:1654: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1654 ac_err
=`grep -v '^ *+' conftest.out`
1655 if test -z "$ac_err"; then
1657 eval "ac_cv_header_$ac_safe=yes"
1660 echo "configure: failed program was:" >&5
1661 cat conftest.
$ac_ext >&5
1663 eval "ac_cv_header_$ac_safe=no"
1667 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1668 echo "$ac_t""yes" 1>&6
1669 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1670 cat >> confdefs.h
<<EOF
1671 #define $ac_tr_hdr 1
1675 echo "$ac_t""no" 1>&6
1680 for ac_hdr
in libc.h unistd.h
1682 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1683 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1684 echo "configure:1685: checking for $ac_hdr" >&5
1685 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1686 echo $ac_n "(cached) $ac_c" 1>&6
1688 cat > conftest.
$ac_ext <<EOF
1689 #line 1690 "configure"
1690 #include "confdefs.h"
1693 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1694 { (eval echo configure
:1695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1695 ac_err
=`grep -v '^ *+' conftest.out`
1696 if test -z "$ac_err"; then
1698 eval "ac_cv_header_$ac_safe=yes"
1701 echo "configure: failed program was:" >&5
1702 cat conftest.
$ac_ext >&5
1704 eval "ac_cv_header_$ac_safe=no"
1708 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1709 echo "$ac_t""yes" 1>&6
1710 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1711 cat >> confdefs.h
<<EOF
1712 #define $ac_tr_hdr 1
1716 echo "$ac_t""no" 1>&6
1720 echo $ac_n "checking "whether libc.h and unistd.h can be included together
"""... $ac_c" 1>&6
1721 echo "configure:1722: checking "whether libc.h and unistd.h can be included together
"" >&5
1722 if eval "test \"`echo '$''{'guile_cv_header_libc_with_unistd'+set}'`\" = set"; then
1723 echo $ac_n "(cached) $ac_c" 1>&6
1726 if test "$ac_cv_header_libc_h" = "no"; then
1727 guile_cv_header_libc_with_unistd
="no"
1728 elif test "$ac_cv_header_unistd.h" = "no"; then
1729 guile_cv_header_libc_with_unistd
="yes"
1731 cat > conftest.
$ac_ext <<EOF
1732 #line 1733 "configure"
1733 #include "confdefs.h"
1736 # include <unistd.h>
1742 if { (eval echo configure
:1743: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1744 guile_cv_header_libc_with_unistd
=yes
1746 echo "configure: failed program was:" >&5
1747 cat conftest.
$ac_ext >&5
1749 guile_cv_header_libc_with_unistd
=no
1758 echo "$ac_t""$guile_cv_header_libc_with_unistd" 1>&6
1759 if test "$guile_cv_header_libc_with_unistd" = yes; then
1760 cat >> confdefs.h
<<\EOF
1761 #define LIBC_H_WITH_UNISTD_H 1
1768 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
1769 echo "configure:1770: checking for uid_t in sys/types.h" >&5
1770 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
1771 echo $ac_n "(cached) $ac_c" 1>&6
1773 cat > conftest.
$ac_ext <<EOF
1774 #line 1775 "configure"
1775 #include "confdefs.h"
1776 #include <sys/types.h>
1778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1779 egrep "uid_t" >/dev
/null
2>&1; then
1781 ac_cv_type_uid_t
=yes
1790 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
1791 if test $ac_cv_type_uid_t = no
; then
1792 cat >> confdefs.h
<<\EOF
1796 cat >> confdefs.h
<<\EOF
1802 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
1803 echo "configure:1804: checking type of array argument to getgroups" >&5
1804 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
1805 echo $ac_n "(cached) $ac_c" 1>&6
1807 if test "$cross_compiling" = yes; then
1808 ac_cv_type_getgroups
=cross
1810 cat > conftest.
$ac_ext <<EOF
1811 #line 1812 "configure"
1812 #include "confdefs.h"
1814 /* Thanks to Mike Rendell for this test. */
1815 #include <sys/types.h>
1818 #define MAX(x, y) ((x) > (y) ? (x) : (y))
1823 union { gid_t gval; long lval; } val;
1826 for (i = 0; i < NGID; i++)
1827 gidset[i] = val.gval;
1828 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
1830 /* Exit non-zero if getgroups seems to require an array of ints. This
1831 happens when gid_t is short but getgroups modifies an array of ints. */
1832 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
1836 if { (eval echo configure
:1837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1838 ac_cv_type_getgroups
=gid_t
1840 echo "configure: failed program was:" >&5
1841 cat conftest.
$ac_ext >&5
1843 ac_cv_type_getgroups
=int
1848 if test $ac_cv_type_getgroups = cross
; then
1849 cat > conftest.
$ac_ext <<EOF
1850 #line 1851 "configure"
1851 #include "confdefs.h"
1854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1855 egrep "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
1857 ac_cv_type_getgroups
=gid_t
1860 ac_cv_type_getgroups
=int
1867 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
1868 cat >> confdefs.h
<<EOF
1869 #define GETGROUPS_T $ac_cv_type_getgroups
1873 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1874 echo "configure:1875: checking return type of signal handlers" >&5
1875 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1876 echo $ac_n "(cached) $ac_c" 1>&6
1878 cat > conftest.
$ac_ext <<EOF
1879 #line 1880 "configure"
1880 #include "confdefs.h"
1881 #include <sys/types.h>
1887 extern "C" void (*signal (int, void (*)(int)))(int);
1889 void (*signal ()) ();
1896 if { (eval echo configure
:1897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1898 ac_cv_type_signal
=void
1900 echo "configure: failed program was:" >&5
1901 cat conftest.
$ac_ext >&5
1903 ac_cv_type_signal
=int
1908 echo "$ac_t""$ac_cv_type_signal" 1>&6
1909 cat >> confdefs.h
<<EOF
1910 #define RETSIGTYPE $ac_cv_type_signal
1914 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
1915 echo "configure:1916: checking for mode_t" >&5
1916 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
1917 echo $ac_n "(cached) $ac_c" 1>&6
1919 cat > conftest.
$ac_ext <<EOF
1920 #line 1921 "configure"
1921 #include "confdefs.h"
1922 #include <sys/types.h>
1928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1929 egrep "mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1931 ac_cv_type_mode_t
=yes
1934 ac_cv_type_mode_t
=no
1939 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
1940 if test $ac_cv_type_mode_t = no
; then
1941 cat >> confdefs.h
<<\EOF
1948 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
1950 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1951 echo "configure:1952: checking for $ac_func" >&5
1952 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1953 echo $ac_n "(cached) $ac_c" 1>&6
1955 cat > conftest.
$ac_ext <<EOF
1956 #line 1957 "configure"
1957 #include "confdefs.h"
1958 /* System header to define __stub macros and hopefully few prototypes,
1959 which can conflict with char $ac_func(); below. */
1961 /* Override any gcc2 internal prototype to avoid an error. */
1962 /* We use char because int might match the return type of a gcc2
1963 builtin and then its argument prototype would still apply. */
1968 /* The GNU C library defines this for functions which it implements
1969 to always fail with ENOSYS. Some functions are actually named
1970 something starting with __ and the normal name is an alias. */
1971 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1979 if { (eval echo configure
:1980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1981 eval "ac_cv_func_$ac_func=yes"
1983 echo "configure: failed program was:" >&5
1984 cat conftest.
$ac_ext >&5
1986 eval "ac_cv_func_$ac_func=no"
1991 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1992 echo "$ac_t""yes" 1>&6
1993 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1994 cat >> confdefs.h
<<EOF
1995 #define $ac_tr_func 1
1999 echo "$ac_t""no" 1>&6
2004 for ac_func
in inet_aton putenv strerror
2006 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2007 echo "configure:2008: checking for $ac_func" >&5
2008 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2009 echo $ac_n "(cached) $ac_c" 1>&6
2011 cat > conftest.
$ac_ext <<EOF
2012 #line 2013 "configure"
2013 #include "confdefs.h"
2014 /* System header to define __stub macros and hopefully few prototypes,
2015 which can conflict with char $ac_func(); below. */
2017 /* Override any gcc2 internal prototype to avoid an error. */
2018 /* We use char because int might match the return type of a gcc2
2019 builtin and then its argument prototype would still apply. */
2024 /* The GNU C library defines this for functions which it implements
2025 to always fail with ENOSYS. Some functions are actually named
2026 something starting with __ and the normal name is an alias. */
2027 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2035 if { (eval echo configure
:2036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2037 eval "ac_cv_func_$ac_func=yes"
2039 echo "configure: failed program was:" >&5
2040 cat conftest.
$ac_ext >&5
2042 eval "ac_cv_func_$ac_func=no"
2047 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2048 echo "$ac_t""yes" 1>&6
2049 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2050 cat >> confdefs.h
<<EOF
2051 #define $ac_tr_func 1
2055 echo "$ac_t""no" 1>&6
2056 LIBOBJS
="$LIBOBJS ${ac_func}.o"
2062 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2063 # for constant arguments. Useless!
2064 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2065 echo "configure:2066: checking for working alloca.h" >&5
2066 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2067 echo $ac_n "(cached) $ac_c" 1>&6
2069 cat > conftest.
$ac_ext <<EOF
2070 #line 2071 "configure"
2071 #include "confdefs.h"
2074 char *p = alloca(2 * sizeof(int));
2077 if { (eval echo configure
:2078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2079 ac_cv_header_alloca_h
=yes
2081 echo "configure: failed program was:" >&5
2082 cat conftest.
$ac_ext >&5
2084 ac_cv_header_alloca_h
=no
2089 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2090 if test $ac_cv_header_alloca_h = yes; then
2091 cat >> confdefs.h
<<\EOF
2092 #define HAVE_ALLOCA_H 1
2097 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2098 echo "configure:2099: checking for alloca" >&5
2099 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2100 echo $ac_n "(cached) $ac_c" 1>&6
2102 cat > conftest.
$ac_ext <<EOF
2103 #line 2104 "configure"
2104 #include "confdefs.h"
2107 # define alloca __builtin_alloca
2110 # include <alloca.h>
2115 # ifndef alloca /* predefined by HP cc +Olibcalls */
2123 char *p = (char *) alloca(1);
2126 if { (eval echo configure
:2127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2128 ac_cv_func_alloca_works
=yes
2130 echo "configure: failed program was:" >&5
2131 cat conftest.
$ac_ext >&5
2133 ac_cv_func_alloca_works
=no
2138 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2139 if test $ac_cv_func_alloca_works = yes; then
2140 cat >> confdefs.h
<<\EOF
2141 #define HAVE_ALLOCA 1
2146 if test $ac_cv_func_alloca_works = no
; then
2147 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2148 # that cause trouble. Some versions do not even contain alloca or
2149 # contain a buggy version. If you still want to use their alloca,
2150 # use ar to extract alloca.o from them instead of compiling alloca.c.
2152 cat >> confdefs.h
<<\EOF
2157 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2158 echo "configure:2159: checking whether alloca needs Cray hooks" >&5
2159 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2160 echo $ac_n "(cached) $ac_c" 1>&6
2162 cat > conftest.
$ac_ext <<EOF
2163 #line 2164 "configure"
2164 #include "confdefs.h"
2165 #if defined(CRAY) && ! defined(CRAY2)
2172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2173 egrep "webecray" >/dev
/null
2>&1; then
2184 echo "$ac_t""$ac_cv_os_cray" 1>&6
2185 if test $ac_cv_os_cray = yes; then
2186 for ac_func
in _getb67 GETB67 getb67
; do
2187 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2188 echo "configure:2189: checking for $ac_func" >&5
2189 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2190 echo $ac_n "(cached) $ac_c" 1>&6
2192 cat > conftest.
$ac_ext <<EOF
2193 #line 2194 "configure"
2194 #include "confdefs.h"
2195 /* System header to define __stub macros and hopefully few prototypes,
2196 which can conflict with char $ac_func(); below. */
2198 /* Override any gcc2 internal prototype to avoid an error. */
2199 /* We use char because int might match the return type of a gcc2
2200 builtin and then its argument prototype would still apply. */
2205 /* The GNU C library defines this for functions which it implements
2206 to always fail with ENOSYS. Some functions are actually named
2207 something starting with __ and the normal name is an alias. */
2208 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2216 if { (eval echo configure
:2217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2218 eval "ac_cv_func_$ac_func=yes"
2220 echo "configure: failed program was:" >&5
2221 cat conftest.
$ac_ext >&5
2223 eval "ac_cv_func_$ac_func=no"
2228 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2229 echo "$ac_t""yes" 1>&6
2230 cat >> confdefs.h
<<EOF
2231 #define CRAY_STACKSEG_END $ac_func
2236 echo "$ac_t""no" 1>&6
2242 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2243 echo "configure:2244: checking stack direction for C alloca" >&5
2244 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2245 echo $ac_n "(cached) $ac_c" 1>&6
2247 if test "$cross_compiling" = yes; then
2248 ac_cv_c_stack_direction
=0
2250 cat > conftest.
$ac_ext <<EOF
2251 #line 2252 "configure"
2252 #include "confdefs.h"
2253 find_stack_direction ()
2255 static char *addr = 0;
2260 return find_stack_direction ();
2263 return (&dummy > addr) ? 1 : -1;
2267 exit (find_stack_direction() < 0);
2270 if { (eval echo configure
:2271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2272 ac_cv_c_stack_direction
=1
2274 echo "configure: failed program was:" >&5
2275 cat conftest.
$ac_ext >&5
2277 ac_cv_c_stack_direction
=-1
2284 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2285 cat >> confdefs.h
<<EOF
2286 #define STACK_DIRECTION $ac_cv_c_stack_direction
2292 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
2293 echo "configure:2294: checking for st_rdev in struct stat" >&5
2294 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
2295 echo $ac_n "(cached) $ac_c" 1>&6
2297 cat > conftest.
$ac_ext <<EOF
2298 #line 2299 "configure"
2299 #include "confdefs.h"
2300 #include <sys/types.h>
2301 #include <sys/stat.h>
2303 struct stat s; s.st_rdev;
2306 if { (eval echo configure
:2307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2308 ac_cv_struct_st_rdev
=yes
2310 echo "configure: failed program was:" >&5
2311 cat conftest.
$ac_ext >&5
2313 ac_cv_struct_st_rdev
=no
2318 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
2319 if test $ac_cv_struct_st_rdev = yes; then
2320 cat >> confdefs.h
<<\EOF
2321 #define HAVE_ST_RDEV 1
2326 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
2327 echo "configure:2328: checking for st_blksize in struct stat" >&5
2328 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
2329 echo $ac_n "(cached) $ac_c" 1>&6
2331 cat > conftest.
$ac_ext <<EOF
2332 #line 2333 "configure"
2333 #include "confdefs.h"
2334 #include <sys/types.h>
2335 #include <sys/stat.h>
2337 struct stat s; s.st_blksize;
2340 if { (eval echo configure
:2341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2342 ac_cv_struct_st_blksize
=yes
2344 echo "configure: failed program was:" >&5
2345 cat conftest.
$ac_ext >&5
2347 ac_cv_struct_st_blksize
=no
2352 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
2353 if test $ac_cv_struct_st_blksize = yes; then
2354 cat >> confdefs.h
<<\EOF
2355 #define HAVE_ST_BLKSIZE 1
2361 # We could use AC_STRUCT_ST_BLOCKS here, but that adds fileblocks.o to
2362 # LIBOBJS, which we don't need. This seems more direct.
2363 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
2364 echo "configure:2365: checking for st_blocks in struct stat" >&5
2365 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
2366 echo $ac_n "(cached) $ac_c" 1>&6
2368 cat > conftest.
$ac_ext <<EOF
2369 #line 2370 "configure"
2370 #include "confdefs.h"
2371 #include <sys/types.h>
2372 #include <sys/stat.h>
2374 struct stat s; s.st_blocks;
2377 if { (eval echo configure
:2378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2379 ac_cv_struct_st_blocks
=yes
2381 echo "configure: failed program was:" >&5
2382 cat conftest.
$ac_ext >&5
2384 ac_cv_struct_st_blocks
=no
2389 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
2390 if test $ac_cv_struct_st_blocks = yes; then
2391 cat >> confdefs.h
<<\EOF
2392 #define HAVE_ST_BLOCKS 1
2397 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2398 echo "configure:2399: checking whether struct tm is in sys/time.h or time.h" >&5
2399 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2400 echo $ac_n "(cached) $ac_c" 1>&6
2402 cat > conftest.
$ac_ext <<EOF
2403 #line 2404 "configure"
2404 #include "confdefs.h"
2405 #include <sys/types.h>
2408 struct tm *tp; tp->tm_sec;
2411 if { (eval echo configure
:2412: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2413 ac_cv_struct_tm
=time.h
2415 echo "configure: failed program was:" >&5
2416 cat conftest.
$ac_ext >&5
2418 ac_cv_struct_tm
=sys
/time.h
2423 echo "$ac_t""$ac_cv_struct_tm" 1>&6
2424 if test $ac_cv_struct_tm = sys
/time.h
; then
2425 cat >> confdefs.h
<<\EOF
2426 #define TM_IN_SYS_TIME 1
2431 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
2432 echo "configure:2433: checking for tm_zone in struct tm" >&5
2433 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
2434 echo $ac_n "(cached) $ac_c" 1>&6
2436 cat > conftest.
$ac_ext <<EOF
2437 #line 2438 "configure"
2438 #include "confdefs.h"
2439 #include <sys/types.h>
2440 #include <$ac_cv_struct_tm>
2442 struct tm tm; tm.tm_zone;
2445 if { (eval echo configure
:2446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2447 ac_cv_struct_tm_zone
=yes
2449 echo "configure: failed program was:" >&5
2450 cat conftest.
$ac_ext >&5
2452 ac_cv_struct_tm_zone
=no
2457 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
2458 if test "$ac_cv_struct_tm_zone" = yes; then
2459 cat >> confdefs.h
<<\EOF
2460 #define HAVE_TM_ZONE 1
2464 echo $ac_n "checking for tzname""... $ac_c" 1>&6
2465 echo "configure:2466: checking for tzname" >&5
2466 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
2467 echo $ac_n "(cached) $ac_c" 1>&6
2469 cat > conftest.
$ac_ext <<EOF
2470 #line 2471 "configure"
2471 #include "confdefs.h"
2473 #ifndef tzname /* For SGI. */
2474 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
2480 if { (eval echo configure
:2481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2482 ac_cv_var_tzname
=yes
2484 echo "configure: failed program was:" >&5
2485 cat conftest.
$ac_ext >&5
2492 echo "$ac_t""$ac_cv_var_tzname" 1>&6
2493 if test $ac_cv_var_tzname = yes; then
2494 cat >> confdefs.h
<<\EOF
2495 #define HAVE_TZNAME 1
2502 echo $ac_n "checking whether we need POSIX to get struct utimbuf""... $ac_c" 1>&6
2503 echo "configure:2504: checking whether we need POSIX to get struct utimbuf" >&5
2504 if eval "test \"`echo '$''{'guile_cv_struct_utimbuf_needs_posix'+set}'`\" = set"; then
2505 echo $ac_n "(cached) $ac_c" 1>&6
2507 cat > conftest.
$ac_ext <<EOF
2508 #line 2509 "configure"
2509 #include "confdefs.h"
2512 #include <sys/utime.h>
2519 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2520 { (eval echo configure
:2521: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2521 ac_err
=`grep -v '^ *+' conftest.out`
2522 if test -z "$ac_err"; then
2524 guile_cv_struct_utimbuf_needs_posix
=no
2527 echo "configure: failed program was:" >&5
2528 cat conftest.
$ac_ext >&5
2530 guile_cv_struct_utimbuf_needs_posix
=yes
2535 echo "$ac_t""$guile_cv_struct_utimbuf_needs_posix" 1>&6
2536 if test "$guile_cv_struct_utimbuf_needs_posix" = yes; then
2537 cat >> confdefs.h
<<\EOF
2538 #define UTIMBUF_NEEDS_POSIX 1
2543 # Checks for dynamic linking
2545 xtra_PLUGIN_guile_libs
=""
2548 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
2549 echo "configure:2550: checking for main in -lm" >&5
2550 ac_lib_var
=`echo m'_'main | sed 'y%./+-%__p_%'`
2551 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2552 echo $ac_n "(cached) $ac_c" 1>&6
2554 ac_save_LIBS
="$LIBS"
2556 cat > conftest.
$ac_ext <<EOF
2557 #line 2558 "configure"
2558 #include "confdefs.h"
2564 if { (eval echo configure
:2565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2566 eval "ac_cv_lib_$ac_lib_var=yes"
2568 echo "configure: failed program was:" >&5
2569 cat conftest.
$ac_ext >&5
2571 eval "ac_cv_lib_$ac_lib_var=no"
2574 LIBS
="$ac_save_LIBS"
2577 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2578 echo "$ac_t""yes" 1>&6
2579 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2580 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2581 cat >> confdefs.h
<<EOF
2582 #define $ac_tr_lib 1
2588 echo "$ac_t""no" 1>&6
2591 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2592 echo "configure:2593: checking for gethostbyname" >&5
2593 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2594 echo $ac_n "(cached) $ac_c" 1>&6
2596 cat > conftest.
$ac_ext <<EOF
2597 #line 2598 "configure"
2598 #include "confdefs.h"
2599 /* System header to define __stub macros and hopefully few prototypes,
2600 which can conflict with char gethostbyname(); below. */
2602 /* Override any gcc2 internal prototype to avoid an error. */
2603 /* We use char because int might match the return type of a gcc2
2604 builtin and then its argument prototype would still apply. */
2605 char gethostbyname();
2609 /* The GNU C library defines this for functions which it implements
2610 to always fail with ENOSYS. Some functions are actually named
2611 something starting with __ and the normal name is an alias. */
2612 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2620 if { (eval echo configure
:2621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2622 eval "ac_cv_func_gethostbyname=yes"
2624 echo "configure: failed program was:" >&5
2625 cat conftest.
$ac_ext >&5
2627 eval "ac_cv_func_gethostbyname=no"
2632 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2633 echo "$ac_t""yes" 1>&6
2636 echo "$ac_t""no" 1>&6
2639 if test $ac_cv_func_gethostbyname = no
; then
2640 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2641 echo "configure:2642: checking for gethostbyname in -lnsl" >&5
2642 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2643 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2644 echo $ac_n "(cached) $ac_c" 1>&6
2646 ac_save_LIBS
="$LIBS"
2648 cat > conftest.
$ac_ext <<EOF
2649 #line 2650 "configure"
2650 #include "confdefs.h"
2651 /* Override any gcc2 internal prototype to avoid an error. */
2652 /* We use char because int might match the return type of a gcc2
2653 builtin and then its argument prototype would still apply. */
2654 char gethostbyname();
2660 if { (eval echo configure
:2661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2662 eval "ac_cv_lib_$ac_lib_var=yes"
2664 echo "configure: failed program was:" >&5
2665 cat conftest.
$ac_ext >&5
2667 eval "ac_cv_lib_$ac_lib_var=no"
2670 LIBS
="$ac_save_LIBS"
2673 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2674 echo "$ac_t""yes" 1>&6
2675 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2676 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2677 cat >> confdefs.h
<<EOF
2678 #define $ac_tr_lib 1
2684 echo "$ac_t""no" 1>&6
2688 echo $ac_n "checking for connect""... $ac_c" 1>&6
2689 echo "configure:2690: checking for connect" >&5
2690 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
2691 echo $ac_n "(cached) $ac_c" 1>&6
2693 cat > conftest.
$ac_ext <<EOF
2694 #line 2695 "configure"
2695 #include "confdefs.h"
2696 /* System header to define __stub macros and hopefully few prototypes,
2697 which can conflict with char connect(); below. */
2699 /* Override any gcc2 internal prototype to avoid an error. */
2700 /* We use char because int might match the return type of a gcc2
2701 builtin and then its argument prototype would still apply. */
2706 /* The GNU C library defines this for functions which it implements
2707 to always fail with ENOSYS. Some functions are actually named
2708 something starting with __ and the normal name is an alias. */
2709 #if defined (__stub_connect) || defined (__stub___connect)
2717 if { (eval echo configure
:2718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2719 eval "ac_cv_func_connect=yes"
2721 echo "configure: failed program was:" >&5
2722 cat conftest.
$ac_ext >&5
2724 eval "ac_cv_func_connect=no"
2729 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
2730 echo "$ac_t""yes" 1>&6
2733 echo "$ac_t""no" 1>&6
2736 if test $ac_cv_func_connect = no
; then
2737 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2738 echo "configure:2739: checking for connect in -lsocket" >&5
2739 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2740 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2741 echo $ac_n "(cached) $ac_c" 1>&6
2743 ac_save_LIBS
="$LIBS"
2744 LIBS
="-lsocket $LIBS"
2745 cat > conftest.
$ac_ext <<EOF
2746 #line 2747 "configure"
2747 #include "confdefs.h"
2748 /* Override any gcc2 internal prototype to avoid an error. */
2749 /* We use char because int might match the return type of a gcc2
2750 builtin and then its argument prototype would still apply. */
2757 if { (eval echo configure
:2758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2759 eval "ac_cv_lib_$ac_lib_var=yes"
2761 echo "configure: failed program was:" >&5
2762 cat conftest.
$ac_ext >&5
2764 eval "ac_cv_lib_$ac_lib_var=no"
2767 LIBS
="$ac_save_LIBS"
2770 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2771 echo "$ac_t""yes" 1>&6
2772 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2773 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2774 cat >> confdefs.h
<<EOF
2775 #define $ac_tr_lib 1
2778 LIBS
="-lsocket $LIBS"
2781 echo "$ac_t""no" 1>&6
2786 if test "$enable_dynamic_linking" = "yes"; then
2788 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2789 echo "configure:2790: checking for dlopen in -ldl" >&5
2790 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2791 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2792 echo $ac_n "(cached) $ac_c" 1>&6
2794 ac_save_LIBS
="$LIBS"
2796 cat > conftest.
$ac_ext <<EOF
2797 #line 2798 "configure"
2798 #include "confdefs.h"
2799 /* Override any gcc2 internal prototype to avoid an error. */
2800 /* We use char because int might match the return type of a gcc2
2801 builtin and then its argument prototype would still apply. */
2808 if { (eval echo configure
:2809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2810 eval "ac_cv_lib_$ac_lib_var=yes"
2812 echo "configure: failed program was:" >&5
2813 cat conftest.
$ac_ext >&5
2815 eval "ac_cv_lib_$ac_lib_var=no"
2818 LIBS
="$ac_save_LIBS"
2821 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2822 echo "$ac_t""yes" 1>&6
2823 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2824 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2825 cat >> confdefs.h
<<EOF
2826 #define $ac_tr_lib 1
2832 echo "$ac_t""no" 1>&6
2835 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
2836 xtra_PLUGIN_guile_libs
="-lguile -ldl"
2837 cat >> confdefs.h
<<\EOF
2838 #define DYNAMIC_LINKING 1
2842 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
2843 echo "configure:2844: checking for dld_link in -ldld" >&5
2844 ac_lib_var
=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
2845 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2846 echo $ac_n "(cached) $ac_c" 1>&6
2848 ac_save_LIBS
="$LIBS"
2850 cat > conftest.
$ac_ext <<EOF
2851 #line 2852 "configure"
2852 #include "confdefs.h"
2853 /* Override any gcc2 internal prototype to avoid an error. */
2854 /* We use char because int might match the return type of a gcc2
2855 builtin and then its argument prototype would still apply. */
2862 if { (eval echo configure
:2863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2864 eval "ac_cv_lib_$ac_lib_var=yes"
2866 echo "configure: failed program was:" >&5
2867 cat conftest.
$ac_ext >&5
2869 eval "ac_cv_lib_$ac_lib_var=no"
2872 LIBS
="$ac_save_LIBS"
2875 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2876 echo "$ac_t""yes" 1>&6
2877 ac_tr_lib
=HAVE_LIB
`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2878 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2879 cat >> confdefs.h
<<EOF
2880 #define $ac_tr_lib 1
2886 echo "$ac_t""no" 1>&6
2889 if test "$ac_cv_lib_dld_dld_link" = "yes"; then
2890 xtra_PLUGIN_guile_libs
="-lguile -ldld"
2891 cat >> confdefs.h
<<\EOF
2892 #define DYNAMIC_LINKING 1
2896 for ac_func
in shl_load
2898 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2899 echo "configure:2900: checking for $ac_func" >&5
2900 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2901 echo $ac_n "(cached) $ac_c" 1>&6
2903 cat > conftest.
$ac_ext <<EOF
2904 #line 2905 "configure"
2905 #include "confdefs.h"
2906 /* System header to define __stub macros and hopefully few prototypes,
2907 which can conflict with char $ac_func(); below. */
2909 /* Override any gcc2 internal prototype to avoid an error. */
2910 /* We use char because int might match the return type of a gcc2
2911 builtin and then its argument prototype would still apply. */
2916 /* The GNU C library defines this for functions which it implements
2917 to always fail with ENOSYS. Some functions are actually named
2918 something starting with __ and the normal name is an alias. */
2919 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2927 if { (eval echo configure
:2928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2929 eval "ac_cv_func_$ac_func=yes"
2931 echo "configure: failed program was:" >&5
2932 cat conftest.
$ac_ext >&5
2934 eval "ac_cv_func_$ac_func=no"
2939 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2940 echo "$ac_t""yes" 1>&6
2941 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2942 cat >> confdefs.h
<<EOF
2943 #define $ac_tr_func 1
2947 echo "$ac_t""no" 1>&6
2951 if test "$ac_cv_func_shl_load" = "yes"; then
2952 cat >> confdefs.h
<<\EOF
2953 #define DYNAMIC_LINKING 1
2962 #--------------------------------------------------------------------
2964 # Which way does the stack grow?
2966 #--------------------------------------------------------------------
2968 if test "$cross_compiling" = yes; then
2969 echo "configure: warning: Guessing that stack grows down -- see scmconfig.h.in" 1>&2
2971 cat > conftest.
$ac_ext <<EOF
2972 #line 2973 "configure"
2973 #include "confdefs.h"
2974 aux (l) unsigned long l;
2975 { int x; exit (l >= ((unsigned long)&x)); }
2976 main () { int q; aux((unsigned long)&q); }
2978 if { (eval echo configure
:2979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2980 cat >> confdefs.h
<<\EOF
2981 #define SCM_STACK_GROWS_UP 1
2985 echo "configure: failed program was:" >&5
2986 cat conftest.
$ac_ext >&5
2993 if test "$cross_compiling" = yes; then
2994 cat >> confdefs.h
<<\EOF
2995 #define SCM_SINGLES 1
2998 echo "configure: warning: Guessing that sizeof(long) == sizeof(float) -- see scmconfig.h.in" 1>&2
3000 cat > conftest.
$ac_ext <<EOF
3001 #line 3002 "configure"
3002 #include "confdefs.h"
3003 main () { exit (sizeof(float) != sizeof(long)); }
3005 if { (eval echo configure
:3006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3007 cat >> confdefs.h
<<\EOF
3008 #define SCM_SINGLES 1
3012 echo "configure: failed program was:" >&5
3013 cat conftest.
$ac_ext >&5
3019 echo $ac_n "checking for struct linger""... $ac_c" 1>&6
3020 echo "configure:3021: checking for struct linger" >&5
3021 if eval "test \"`echo '$''{'scm_cv_struct_linger'+set}'`\" = set"; then
3022 echo $ac_n "(cached) $ac_c" 1>&6
3024 cat > conftest.
$ac_ext <<EOF
3025 #line 3026 "configure"
3026 #include "confdefs.h"
3028 #include <sys/types.h>
3029 #include <sys/socket.h>
3031 struct linger lgr; lgr.l_linger = 100
3034 if { (eval echo configure
:3035: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3036 scm_cv_struct_linger
="yes"
3038 echo "configure: failed program was:" >&5
3039 cat conftest.
$ac_ext >&5
3041 scm_cv_struct_linger
="no"
3046 echo "$ac_t""$scm_cv_struct_linger" 1>&6
3047 if test $scm_cv_struct_linger = yes; then
3048 cat >> confdefs.h
<<\EOF
3049 #define HAVE_STRUCT_LINGER 1
3054 #--------------------------------------------------------------------
3056 # How can you violate a stdio abstraction by setting a stream's fd?
3058 #--------------------------------------------------------------------
3060 echo $ac_n "checking how to set a stream file descriptor""... $ac_c" 1>&6
3061 echo "configure:3062: checking how to set a stream file descriptor" >&5
3062 if eval "test \"`echo '$''{'scm_cv_fd_setter'+set}'`\" = set"; then
3063 echo $ac_n "(cached) $ac_c" 1>&6
3065 cat > conftest.
$ac_ext <<EOF
3066 #line 3067 "configure"
3067 #include "confdefs.h"
3073 if { (eval echo configure
:3074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3075 scm_cv_fd_setter
="_file"
3077 echo "configure: failed program was:" >&5
3078 cat conftest.
$ac_ext >&5
3080 cat > conftest.
$ac_ext <<EOF
3081 #line 3082 "configure"
3082 #include "confdefs.h"
3088 if { (eval echo configure
:3089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3090 scm_cv_fd_setter
="_fileno"
3092 echo "configure: failed program was:" >&5
3093 cat conftest.
$ac_ext >&5
3103 if test "$scm_cv_fd_setter"; then
3104 echo "$ac_t""$scm_cv_fd_setter" 1>&6
3105 cat >> confdefs.h
<<EOF
3106 #define FD_SETTER $scm_cv_fd_setter
3110 echo "$ac_t""we couldn't do it!" 1>&6
3113 #--------------------------------------------------------------------
3114 # How to find out whether a FILE structure contains buffered data.
3115 # From Tk we have the following list:
3116 # _cnt: Most UNIX systems
3120 # Or, in GNU libc there are two fields, _gptr and _egptr, which
3121 # have to be compared.
3122 # These can also be known as _IO_read_ptr and _IO_read_end.
3123 #--------------------------------------------------------------------
3125 echo $ac_n "checking how to get buffer char count from FILE structure""... $ac_c" 1>&6
3126 echo "configure:3127: checking how to get buffer char count from FILE structure" >&5
3127 if eval "test \"`echo '$''{'scm_cv_struct_file_count'+set}'`\" = set"; then
3128 echo $ac_n "(cached) $ac_c" 1>&6
3130 cat > conftest.
$ac_ext <<EOF
3131 #line 3132 "configure"
3132 #include "confdefs.h"
3135 FILE *f = stdin; f->_cnt = 0
3138 if { (eval echo configure
:3139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3140 scm_cv_struct_file_count
="_cnt"
3142 echo "configure: failed program was:" >&5
3143 cat conftest.
$ac_ext >&5
3145 cat > conftest.
$ac_ext <<EOF
3146 #line 3147 "configure"
3147 #include "confdefs.h"
3150 FILE *f = stdin; f->_r = 0
3153 if { (eval echo configure
:3154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3155 scm_cv_struct_file_count
="_r"
3157 echo "configure: failed program was:" >&5
3158 cat conftest.
$ac_ext >&5
3160 cat > conftest.
$ac_ext <<EOF
3161 #line 3162 "configure"
3162 #include "confdefs.h"
3165 FILE *f = stdin; f->readCount = 0
3168 if { (eval echo configure
:3169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3170 scm_cv_struct_file_count
="readCount"
3172 echo "configure: failed program was:" >&5
3173 cat conftest.
$ac_ext >&5
3175 scm_cv_struct_file_count
=""
3184 if test "$scm_cv_struct_file_count"; then
3185 echo "$ac_t""$scm_cv_struct_file_count" 1>&6
3186 cat >> confdefs.h
<<EOF
3187 #define FILE_CNT_FIELD $scm_cv_struct_file_count
3191 if eval "test \"`echo '$''{'scm_cv_struct_file_gptr'+set}'`\" = set"; then
3192 echo $ac_n "(cached) $ac_c" 1>&6
3194 cat > conftest.
$ac_ext <<EOF
3195 #line 3196 "configure"
3196 #include "confdefs.h"
3199 FILE *f = stdin; f->_gptr = f->egptr;
3202 if { (eval echo configure
:3203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3204 scm_cv_struct_file_gptr
=1
3206 echo "configure: failed program was:" >&5
3207 cat conftest.
$ac_ext >&5
3209 scm_cv_struct_file_gptr
=""
3214 if test "$scm_cv_struct_gptr"; then
3215 echo "$ac_t""gptr" 1>&6
3216 cat >> confdefs.h
<<EOF
3217 #define FILE_CNT_GPTR $scm_cv_struct_file_gptr
3221 if eval "test \"`echo '$''{'scm_cv_struct_file_readptr'+set}'`\" = set"; then
3222 echo $ac_n "(cached) $ac_c" 1>&6
3224 cat > conftest.
$ac_ext <<EOF
3225 #line 3226 "configure"
3226 #include "confdefs.h"
3229 FILE *f = stdin; f->_IO_read_ptr = f->_IO_read_end;
3232 if { (eval echo configure
:3233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3234 scm_cv_struct_file_readptr
=1
3236 echo "configure: failed program was:" >&5
3237 cat conftest.
$ac_ext >&5
3242 if test "$scm_cv_struct_file_readptr"; then
3243 echo "$ac_t""read_ptr" 1>&6
3244 cat >> confdefs.h
<<EOF
3245 #define FILE_CNT_READPTR $scm_cv_struct_file_readptr
3249 echo "$ac_t""we couldn't do it!" 1>&6
3254 #--------------------------------------------------------------------
3256 # Flags for thread support
3258 #--------------------------------------------------------------------
3261 echo $ac_n "checking "threads package
type"""... $ac_c" 1>&6
3262 echo "configure:3263: checking "threads package
type"" >&5
3263 if eval "test \"`echo '$''{'cy_cv_threads_package'+set}'`\" = set"; then
3264 echo $ac_n "(cached) $ac_c" 1>&6
3267 if eval "test \"`echo '$''{'cy_cv_threads_cflags'+set}'`\" = set"; then
3268 echo $ac_n "(cached) $ac_c" 1>&6
3271 if eval "test \"`echo '$''{'cy_cv_threads_libs'+set}'`\" = set"; then
3272 echo $ac_n "(cached) $ac_c" 1>&6
3276 # Check whether --with-threads or --without-threads was given.
3277 if test "${with_threads+set}" = set; then
3278 withval
="$with_threads"
3279 use_threads
=$withval
3284 test -n "$use_threads" || use_threads
=qt
3285 threads_package
=unknown
3286 if test "$use_threads" != no
; then
3287 if test "$use_threads" = yes ||
test "$use_threads" = qt
; then
3288 # Look for qt in source directory.
3289 if test -f $srcdir/qt
/qt.c
; then
3290 qtsrcdir
="`(cd $srcdir; pwd)`/qt"
3291 threads_package
=COOP
3292 cy_cv_threads_cflags
="-I$qtsrcdir -I../qt"
3293 cy_cv_threads_libs
="../qt/libqt.a"
3296 if test -f $use_threads/qt.c
; then
3297 # FIXME seems as though we should try to use an installed qt here.
3298 threads_package
=COOP
3299 cy_cv_threads_cflags
="-I$use_threads -I../qt"
3300 cy_cv_threads_libs
="../qt/libqt.a"
3303 if test "$use_threads" = pthreads
; then
3304 # Look for pthreads in srcdir. See above to understand why
3305 # we always set threads_package.
3306 if test -f $srcdir/..
/..
/pthreads
/pthreads
/queue.c \
3307 ||
test -f $srcdir/..
/pthreads
/pthreads
/queue.c
; then
3309 cy_cv_threads_cflags
="-I$srcdir/../../pthreads/include"
3310 cy_cv_threads_libs
="-L../../pthreads/lib -lpthread"
3313 saved_CPP
="$CPPFLAGS"
3316 if test "$threads_package" = unknown
; then
3317 CPPFLAGS
="-I$use_threads/include"
3318 LDFLAGS
="-L$use_threads/lib"
3319 LIBS
="-lgthreads -lmalloc"
3320 cat > conftest.
$ac_ext <<EOF
3321 #line 3322 "configure"
3322 #include "confdefs.h"
3323 #include <pthread.h>
3326 pthread_equal(NULL,NULL);
3330 if { (eval echo configure
:3331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3334 echo "configure: failed program was:" >&5
3335 cat conftest.
$ac_ext >&5
3339 if test "$threads_package" = unknown
; then
3341 cat > conftest.
$ac_ext <<EOF
3342 #line 3343 "configure"
3343 #include "confdefs.h"
3344 #include <pthread.h>
3347 pthread_equal(NULL,NULL);
3351 if { (eval echo configure
:3352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3355 echo "configure: failed program was:" >&5
3356 cat conftest.
$ac_ext >&5
3360 if test "$threads_package" = unknown
; then
3362 cat > conftest.
$ac_ext <<EOF
3363 #line 3364 "configure"
3364 #include "confdefs.h"
3365 #include <pthread.h>
3368 pthread_equal(NULL,NULL);
3372 if { (eval echo configure
:3373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3374 threads_package
=PCthreads
3376 echo "configure: failed program was:" >&5
3377 cat conftest.
$ac_ext >&5
3381 cy_cv_threads_cflags
="$CPPFLAGS $cy_cv_threads_cflags"
3382 cy_cv_threads_libs
="$LDFLAGS $LIBS $cy_cv_threads_libs"
3383 cy_cv_threads_package
=$threads_package
3384 CPPFLAGS
="$saved_CPP"
3387 if test "$threads_package" = unknown
; then
3388 { echo "configure: error: "cannot
find thread library installation
"" 1>&2; exit 1; }
3400 echo "$ac_t""$cy_cv_threads_package" 1>&6
3402 CFLAGS
="$CFLAGS $cy_cv_threads_cflags"
3403 THREAD_LIBS
="$cy_cv_threads_libs"
3406 if test "$cy_cv_threads_package" = FSU
; then
3407 cat >> confdefs.h
<<\EOF
3408 #define USE_FSU_PTHREADS 1
3411 else if test "$cy_cv_threads_package" = COOP
; then
3412 cat >> confdefs.h
<<\EOF
3413 #define USE_COOP_THREADS 1
3416 else if test "$cy_cv_threads_package" = MIT
; then
3417 cat >> confdefs.h
<<\EOF
3418 #define USE_MIT_PTHREADS 1
3421 else if test "$cy_cv_threads_package" = PCthreads
; then
3422 cat >> confdefs.h
<<\EOF
3423 #define USE_PCTHREADS_PTHREADS 1
3426 else if test "$cy_cv_threads_package" = unknown
; then
3427 { echo "configure: error: "cannot
find threads installation
"" 1>&2; exit 1; }
3434 if test "$cy_cv_threads_package" != ""; then
3435 cat >> confdefs.h
<<\EOF
3436 #define USE_THREADS 1
3439 LIBOBJS
="$LIBOBJS threads.o"
3442 ## If we're using GCC, ask for aggressive warnings.
3444 yes ) CFLAGS
="$CFLAGS -Wall -Wpointer-arith" ;;
3447 for ac_prog
in mawk gawk nawk
awk
3449 # Extract the first word of "$ac_prog", so it can be a program name with args.
3450 set dummy
$ac_prog; ac_word
=$2
3451 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3452 echo "configure:3453: checking for $ac_word" >&5
3453 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
3454 echo $ac_n "(cached) $ac_c" 1>&6
3456 if test -n "$AWK"; then
3457 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3459 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3460 for ac_dir
in $PATH; do
3461 test -z "$ac_dir" && ac_dir
=.
3462 if test -f $ac_dir/$ac_word; then
3463 ac_cv_prog_AWK
="$ac_prog"
3470 AWK
="$ac_cv_prog_AWK"
3471 if test -n "$AWK"; then
3472 echo "$ac_t""$AWK" 1>&6
3474 echo "$ac_t""no" 1>&6
3477 test -n "$AWK" && break
3481 ## If we're creating a shared library (using libtool!), then we'll
3482 ## need to generate a list of .lo files corresponding to the .o files
3483 ## given in LIBOBJS. We'll call it LIBLOBJS.
3484 LIBLOBJS
="`echo ${LIBOBJS} | sed 's/\.o/.lo/g'`"
3486 cat >> confdefs.h
<<EOF
3487 #define GUILE_MAJOR_VERSION "$GUILE_MAJOR_VERSION"
3490 cat >> confdefs.h
<<EOF
3491 #define GUILE_MINOR_VERSION "$GUILE_MINOR_VERSION"
3494 cat >> confdefs.h
<<EOF
3495 #define GUILE_VERSION "$GUILE_VERSION"
3504 threads_enabled
=false
3505 if test "$cy_cv_threads_package" = COOP
; then
3506 threads_enabled
=true
3509 # Determine the host we are working on
3511 # Make sure we can run config.sub.
3512 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
3513 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
3516 echo $ac_n "checking host system type""... $ac_c" 1>&6
3517 echo "configure:3518: checking host system type" >&5
3520 case "$host_alias" in
3524 if host_alias
=`$ac_config_guess`; then :
3525 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
3527 *) host_alias
=$nonopt ;;
3531 host=`$ac_config_sub $host_alias`
3532 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3533 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3534 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3535 echo "$ac_t""$host" 1>&6
3538 # How can we refer to the qt source directory from within the qt build
3539 # directory? For headers, we can rely on the fact that the qt src
3540 # directory appears in the #include path.
3542 qtsrcdir
="`(cd $srcdir; pwd)`/qt"
3546 qtmds_s
=$qtsrcdir/md
/i386.s
3548 qtmdc_c
=$qtsrcdir/md
/null.c
3551 qtmds_s
=$qtsrcdir/md
/mips-irix5.s
3553 qtmdc_c
=$qtsrcdir/md
/null.c
3554 qtdmdb_s
=$qtsrcdir/md
/mips_b.s
3557 qtmds_s
=$qtsrcdir/md
/mips.s
3559 qtmdc_c
=$qtsrcdir/md
/null.c
3560 qtdmdb_s
=$qtsrcdir/md
/mips_b.s
3564 qtmdc_c
=$qtsrcdir/md
/null.c
3565 qtmds_s
=$qtsrcdir/md
/_sparc.s
3566 qtdmdb_s
=$qtsrcdir/md
/_sparc_b.s
3570 qtmdc_c
=$qtsrcdir/md
/null.c
3571 qtmds_s
=$qtsrcdir/md
/sparc.s
3572 qtdmdb_s
=$qtsrcdir/md
/sparc_b.s
3575 echo "Unknown configuration; threads package disabled"
3576 threads_enabled
=false
3582 if $threads_enabled; then
3588 # Give the Makefile the names of the object files that will be
3589 # generated by compiling $qtmdc_c and $qtmds_s.
3590 qtmdc_o
="`echo ${qtmdc_c} | sed -e 's:^.*/::' | sed -e 's:\.c$:\.o:'`"
3591 qtmds_o
="`echo ${qtmds_s} | sed -e 's:^.*/::' | sed -e 's:\.s$:\.o:'`"
3602 cat > confcache
<<\EOF
3603 # This file is a shell script that caches the results of configure
3604 # tests run on this system so they can be shared between configure
3605 # scripts and configure runs. It is not useful on other systems.
3606 # If it contains results you don't want to keep, you may remove or edit it.
3608 # By default, configure uses ./config.cache as the cache file,
3609 # creating it if it does not exist already. You can give configure
3610 # the --cache-file=FILE option to use a different cache file; that is
3611 # what configure does when it calls configure scripts in
3612 # subdirectories, so they share the cache.
3613 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3614 # config.status only pays attention to the cache file if you give it the
3615 # --recheck option to rerun configure.
3618 # The following way of writing the cache mishandles newlines in values,
3619 # but we know of no workaround that is simple, portable, and efficient.
3620 # So, don't put newlines in cache variables' values.
3621 # Ultrix sh set writes to stderr and can't be redirected directly,
3622 # and sets the high bit in the cache file unless we assign to the vars.
3624 case `(ac_space=' '; set) 2>&1` in
3626 # `set' does not quote correctly, so add quotes (double-quote substitution
3627 # turns \\\\ into \\, and sed turns \\ into \).
3629 -e "s/'/'\\\\''/g" \
3630 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3633 # `set' quotes correctly as required by POSIX, so do not add quotes.
3634 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3637 if cmp -s $cache_file confcache
; then
3640 if test -w $cache_file; then
3641 echo "updating cache $cache_file"
3642 cat confcache
> $cache_file
3644 echo "not updating unwritable cache $cache_file"
3649 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3651 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
3652 # Let make expand exec_prefix.
3653 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
3655 # Any assignment to VPATH causes Sun make to only execute
3656 # the first set of double-colon rules, so remove it if not needed.
3657 # If there is a colon in the path, we need to keep it.
3658 if test "x$srcdir" = x.
; then
3659 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
3662 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3664 DEFS
=-DHAVE_CONFIG_H
3666 # Without the "./", some shells look in PATH for config.status.
3667 : ${CONFIG_STATUS=./config.status}
3669 echo creating
$CONFIG_STATUS
3670 rm -f $CONFIG_STATUS
3671 cat > $CONFIG_STATUS <<EOF
3673 # Generated automatically by configure.
3674 # Run this file to recreate the current configuration.
3675 # This directory was configured as follows,
3676 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3678 # $0 $ac_configure_args
3680 # Compiler output produced by configure, useful for debugging
3681 # configure, is in ./config.log if it exists.
3683 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3686 case "\$ac_option" in
3687 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3688 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3689 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3690 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3691 echo "$CONFIG_STATUS generated by autoconf version 2.12"
3693 -help | --help | --hel | --he | --h)
3694 echo "\$ac_cs_usage"; exit 0 ;;
3695 *) echo "\$ac_cs_usage"; exit 1 ;;
3699 ac_given_srcdir=$srcdir
3700 ac_given_INSTALL="$INSTALL"
3702 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
3704 cat >> $CONFIG_STATUS <<EOF
3706 # Protect against being on the right side of a sed subst in config.status.
3707 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3708 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3711 s%@CFLAGS@%$CFLAGS%g
3712 s%@CPPFLAGS@%$CPPFLAGS%g
3713 s%@CXXFLAGS@%$CXXFLAGS%g
3715 s%@LDFLAGS@%$LDFLAGS%g
3717 s%@exec_prefix@%$exec_prefix%g
3718 s%@prefix@%$prefix%g
3719 s%@program_transform_name@%$program_transform_name%g
3720 s%@bindir@%$bindir%g
3721 s%@sbindir@%$sbindir%g
3722 s%@libexecdir@%$libexecdir%g
3723 s%@datadir@%$datadir%g
3724 s%@sysconfdir@%$sysconfdir%g
3725 s%@sharedstatedir@%$sharedstatedir%g
3726 s%@localstatedir@%$localstatedir%g
3727 s%@libdir@%$libdir%g
3728 s%@includedir@%$includedir%g
3729 s%@oldincludedir@%$oldincludedir%g
3730 s%@infodir@%$infodir%g
3731 s%@mandir@%$mandir%g
3732 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3733 s%@INSTALL_DATA@%$INSTALL_DATA%g
3734 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3735 s%@PACKAGE@%$PACKAGE%g
3736 s%@VERSION@%$VERSION%g
3737 s%@ACLOCAL@%$ACLOCAL%g
3738 s%@AUTOCONF@%$AUTOCONF%g
3739 s%@AUTOMAKE@%$AUTOMAKE%g
3740 s%@AUTOHEADER@%$AUTOHEADER%g
3741 s%@MAKEINFO@%$MAKEINFO%g
3742 s%@SET_MAKE@%$SET_MAKE%g
3747 s%@host_alias@%$host_alias%g
3748 s%@host_cpu@%$host_cpu%g
3749 s%@host_vendor@%$host_vendor%g
3750 s%@host_os@%$host_os%g
3751 s%@RANLIB@%$RANLIB%g
3752 s%@LIBTOOL@%$LIBTOOL%g
3753 s%@LIBOBJS@%$LIBOBJS%g
3754 s%@ALLOCA@%$ALLOCA%g
3755 s%@xtra_PLUGIN_guile_libs@%$xtra_PLUGIN_guile_libs%g
3756 s%@THREAD_LIBS@%$THREAD_LIBS%g
3758 s%@LIBLOBJS@%$LIBLOBJS%g
3759 s%@target_libs@%$target_libs%g
3760 s%@qtmd_h@%$qtmd_h%g
3761 s%@qtmdc_c@%$qtmdc_c%g
3762 s%@qtmdc_o@%$qtmdc_o%g
3763 s%@qtmds_s@%$qtmds_s%g
3764 s%@qtmds_o@%$qtmds_o%g
3765 s%@qtmdb_s@%$qtmdb_s%g
3770 cat >> $CONFIG_STATUS <<\EOF
3772 # Split the substitutions into bite-sized pieces for seds with
3773 # small command number limits, like on Digital OSF/1 and HP-UX.
3774 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
3775 ac_file
=1 # Number of current file.
3776 ac_beg
=1 # First line for current file.
3777 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
3780 while $ac_more_lines; do
3781 if test $ac_beg -gt 1; then
3782 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
3784 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
3786 if test ! -s conftest.s
$ac_file; then
3788 rm -f conftest.s
$ac_file
3790 if test -z "$ac_sed_cmds"; then
3791 ac_sed_cmds
="sed -f conftest.s$ac_file"
3793 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
3795 ac_file
=`expr $ac_file + 1`
3797 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
3800 if test -z "$ac_sed_cmds"; then
3805 cat >> $CONFIG_STATUS <<EOF
3807 CONFIG_FILES=\${CONFIG_FILES-"Makefile libguile/Makefile libguile/guile-snarf ice-9/Makefile qt/Makefile qt/qt.h qt/md/Makefile qt/time/Makefile"}
3809 cat >> $CONFIG_STATUS <<\EOF
3810 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
3811 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3813 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3814 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3815 *) ac_file_in
="${ac_file}.in" ;;
3818 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3820 # Remove last slash and all that follows it. Not all systems have dirname.
3821 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3822 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
3823 # The file is in a subdirectory.
3824 test ! -d "$ac_dir" && mkdir
"$ac_dir"
3825 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
3826 # A "../" for each directory in $ac_dir_suffix.
3827 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3829 ac_dir_suffix
= ac_dots
=
3832 case "$ac_given_srcdir" in
3834 if test -z "$ac_dots"; then top_srcdir
=.
3835 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3836 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
3838 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3839 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
3842 case "$ac_given_INSTALL" in
3843 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
3844 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
3847 echo creating
"$ac_file"
3849 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3851 *Makefile
*) ac_comsub
="1i\\
3852 # $configure_input" ;;
3856 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3858 s%@configure_input@%$configure_input%g
3859 s%@srcdir@%$srcdir%g
3860 s%@top_srcdir@%$top_srcdir%g
3861 s%@INSTALL@%$INSTALL%g
3862 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
3866 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3867 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3869 # ac_d sets the value in "#define NAME VALUE" lines.
3870 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3871 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
3874 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3875 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3876 ac_uB
='\([ ]\)%\1#\2define\3'
3879 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3880 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3881 ac_eB
='$%\1#\2define\3'
3885 if test "${CONFIG_HEADERS+set}" != set; then
3887 cat >> $CONFIG_STATUS <<EOF
3888 CONFIG_HEADERS="libguile/scmconfig.h"
3890 cat >> $CONFIG_STATUS <<\EOF
3892 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
3893 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3895 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3896 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3897 *) ac_file_in
="${ac_file}.in" ;;
3900 echo creating
$ac_file
3902 rm -f conftest.frag conftest.
in conftest.out
3903 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3904 cat $ac_file_inputs > conftest.
in
3908 # Transform confdefs.h into a sed script conftest.vals that substitutes
3909 # the proper values into config.h.in to produce config.h. And first:
3910 # Protect against being on the right side of a sed subst in config.status.
3911 # Protect against being in an unquoted here document in config.status.
3913 cat > conftest.hdr
<<\EOF
3916 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3920 sed -n -f conftest.hdr confdefs.h > conftest.vals
3923 # This sed command replaces #undef with comments. This is necessary, for
3924 # example, in the case of _POSIX_SOURCE, which is predefined and required
3925 # on some systems where configure will not decide to define it.
3926 cat >> conftest.vals <<\EOF
3927 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3930 # Break up conftest.vals because some shells have a limit on
3931 # the size of here documents, and old seds have small limits too.
3936 ac_lines=`grep -c . conftest.vals
`
3937 # grep -c gives empty output for an empty file on some AIX systems.
3938 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3939 # Write a limited-size here document to conftest.frag.
3940 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3941 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3943 sed -f conftest.frag conftest.in > conftest.out
3945 mv conftest.out conftest.in
3947 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3949 mv conftest.tail conftest.vals
3953 cat >> $CONFIG_STATUS <<\EOF
3954 rm -f conftest.frag conftest.h
3955 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3956 cat conftest.in >> conftest.h
3958 if cmp -s $ac_file conftest.h 2>/dev/null; then
3959 echo "$ac_file is unchanged"
3962 # Remove last slash and all that follows it. Not all systems have dirname.
3963 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
3964 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3965 # The file is in a subdirectory.
3966 test ! -d "$ac_dir" && mkdir "$ac_dir"
3969 mv conftest.h $ac_file
3974 cat >> $CONFIG_STATUS <<EOF
3978 cat >> $CONFIG_STATUS <<\EOF
3979 test -z "$CONFIG_HEADERS" || echo timestamp > libguile/stamp-h
3980 chmod +x libguile/guile-snarf
3983 chmod +x $CONFIG_STATUS
3984 rm -fr confdefs* $ac_clean_files
3985 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1