3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
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 --enable-dynamic-linking Include support for dynamic linking"
20 --enable-guile-debug Include internal debugging functions"
22 --enable-lang Include multilanguage support (experimental)"
24 --enable-shared[=PKGS] build shared libraries [default=yes]"
26 --enable-static[=PKGS] build static libraries [default=yes]"
28 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
30 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
32 --disable-libtool-lock avoid locking (might break parallel builds)"
34 --with-threads thread interface"
36 # Initialize some variables set by options.
37 # The variables have the same names as the options, with
38 # dashes changed to underlines.
40 cache_file
=.
/config.cache
49 program_transform_name
=s
,x
,x
,
57 bindir
='${exec_prefix}/bin'
58 sbindir
='${exec_prefix}/sbin'
59 libexecdir
='${exec_prefix}/libexec'
60 datadir
='${prefix}/share'
61 sysconfdir
='${prefix}/etc'
62 sharedstatedir
='${prefix}/com'
63 localstatedir
='${prefix}/var'
64 libdir
='${exec_prefix}/lib'
65 includedir
='${prefix}/include'
66 oldincludedir
='/usr/include'
67 infodir
='${prefix}/info'
68 mandir
='${prefix}/man'
70 # Initialize some other variables.
73 SHELL
=${CONFIG_SHELL-/bin/sh}
74 # Maximum number of lines to put in a shell here document.
81 # If the previous option needs an argument, assign it.
82 if test -n "$ac_prev"; then
83 eval "$ac_prev=\$ac_option"
89 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
93 # Accept the important Cygnus configure options, so we can diagnose typos.
97 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
99 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
100 bindir
="$ac_optarg" ;;
102 -build |
--build |
--buil |
--bui |
--bu)
104 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
105 build
="$ac_optarg" ;;
107 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
108 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
109 ac_prev
=cache_file
;;
110 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
111 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
112 cache_file
="$ac_optarg" ;;
114 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
116 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
118 datadir
="$ac_optarg" ;;
120 -disable-* |
--disable-*)
121 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
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'`
127 eval "enable_${ac_feature}=no" ;;
129 -enable-* |
--enable-*)
130 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
131 # Reject names that are not valid shell variable names.
132 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
133 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
135 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
140 eval "enable_${ac_feature}='$ac_optarg'" ;;
142 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
143 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
144 |
--exec |
--exe |
--ex)
145 ac_prev
=exec_prefix
;;
146 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
147 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
148 |
--exec=* |
--exe=* |
--ex=*)
149 exec_prefix
="$ac_optarg" ;;
151 -gas |
--gas |
--ga |
--g)
152 # Obsolete; use --with-gas.
155 -help |
--help |
--hel |
--he)
156 # Omit some internal or obsolete options to make the list less imposing.
157 # This message is too long to be a string in the A/UX 3.1 sh.
159 Usage: configure [options] [host]
160 Options: [defaults in brackets after descriptions]
162 --cache-file=FILE cache test results in FILE
163 --help print this message
164 --no-create do not create output files
165 --quiet, --silent do not print \`checking...' messages
166 --version print the version of autoconf that created configure
167 Directory and file names:
168 --prefix=PREFIX install architecture-independent files in PREFIX
170 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
172 --bindir=DIR user executables in DIR [EPREFIX/bin]
173 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
174 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
175 --datadir=DIR read-only architecture-independent data in DIR
177 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
178 --sharedstatedir=DIR modifiable architecture-independent data in DIR
180 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
181 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
182 --includedir=DIR C header files in DIR [PREFIX/include]
183 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
184 --infodir=DIR info documentation in DIR [PREFIX/info]
185 --mandir=DIR man documentation in DIR [PREFIX/man]
186 --srcdir=DIR find the sources in DIR [configure dir or ..]
187 --program-prefix=PREFIX prepend PREFIX to installed program names
188 --program-suffix=SUFFIX append SUFFIX to installed program names
189 --program-transform-name=PROGRAM
190 run sed PROGRAM on installed program names
194 --build=BUILD configure for building on BUILD [BUILD=HOST]
195 --host=HOST configure for HOST [guessed]
196 --target=TARGET configure for TARGET [TARGET=HOST]
197 Features and packages:
198 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
199 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
200 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
201 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
202 --x-includes=DIR X include files are in DIR
203 --x-libraries=DIR X library files are in DIR
205 if test -n "$ac_help"; then
206 echo "--enable and --with options recognized:$ac_help"
210 -host |
--host |
--hos |
--ho)
212 -host=* |
--host=* |
--hos=* |
--ho=*)
215 -includedir |
--includedir |
--includedi |
--included |
--include \
216 |
--includ |
--inclu |
--incl |
--inc)
217 ac_prev
=includedir
;;
218 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
219 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
220 includedir
="$ac_optarg" ;;
222 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
224 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
225 infodir
="$ac_optarg" ;;
227 -libdir |
--libdir |
--libdi |
--libd)
229 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
230 libdir
="$ac_optarg" ;;
232 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
233 |
--libexe |
--libex |
--libe)
234 ac_prev
=libexecdir
;;
235 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
236 |
--libexe=* |
--libex=* |
--libe=*)
237 libexecdir
="$ac_optarg" ;;
239 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
240 |
--localstate |
--localstat |
--localsta |
--localst \
241 |
--locals |
--local |
--loca |
--loc |
--lo)
242 ac_prev
=localstatedir
;;
243 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
244 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
245 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
246 localstatedir
="$ac_optarg" ;;
248 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
250 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
251 mandir
="$ac_optarg" ;;
254 # Obsolete; use --without-fp.
257 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
261 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
262 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
265 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
266 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
267 |
--oldin |
--oldi |
--old |
--ol |
--o)
268 ac_prev
=oldincludedir
;;
269 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
270 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
271 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
272 oldincludedir
="$ac_optarg" ;;
274 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
276 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
277 prefix
="$ac_optarg" ;;
279 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
280 |
--program-pre |
--program-pr |
--program-p)
281 ac_prev
=program_prefix
;;
282 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
283 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
284 program_prefix
="$ac_optarg" ;;
286 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
287 |
--program-suf |
--program-su |
--program-s)
288 ac_prev
=program_suffix
;;
289 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
290 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
291 program_suffix
="$ac_optarg" ;;
293 -program-transform-name |
--program-transform-name \
294 |
--program-transform-nam |
--program-transform-na \
295 |
--program-transform-n |
--program-transform- \
296 |
--program-transform |
--program-transfor \
297 |
--program-transfo |
--program-transf \
298 |
--program-trans |
--program-tran \
299 |
--progr-tra |
--program-tr |
--program-t)
300 ac_prev
=program_transform_name
;;
301 -program-transform-name=* |
--program-transform-name=* \
302 |
--program-transform-nam=* |
--program-transform-na=* \
303 |
--program-transform-n=* |
--program-transform-=* \
304 |
--program-transform=* |
--program-transfor=* \
305 |
--program-transfo=* |
--program-transf=* \
306 |
--program-trans=* |
--program-tran=* \
307 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
308 program_transform_name
="$ac_optarg" ;;
310 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
311 |
-silent |
--silent |
--silen |
--sile |
--sil)
314 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
316 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
318 sbindir
="$ac_optarg" ;;
320 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
321 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
322 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
324 ac_prev
=sharedstatedir
;;
325 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
326 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
327 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
329 sharedstatedir
="$ac_optarg" ;;
331 -site |
--site |
--sit)
333 -site=* |
--site=* |
--sit=*)
336 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
338 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
339 srcdir
="$ac_optarg" ;;
341 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
342 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
343 ac_prev
=sysconfdir
;;
344 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
345 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
346 sysconfdir
="$ac_optarg" ;;
348 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
350 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
351 target
="$ac_optarg" ;;
353 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
356 -version |
--version |
--versio |
--versi |
--vers)
357 echo "configure generated by autoconf version 2.13"
361 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
362 # Reject names that are not valid shell variable names.
363 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
364 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
366 ac_package
=`echo $ac_package| sed 's/-/_/g'`
371 eval "with_${ac_package}='$ac_optarg'" ;;
373 -without-* |
--without-*)
374 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
375 # Reject names that are not valid shell variable names.
376 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
377 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
379 ac_package
=`echo $ac_package| sed 's/-/_/g'`
380 eval "with_${ac_package}=no" ;;
383 # Obsolete; use --with-x.
386 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
387 |
--x-incl |
--x-inc |
--x-in |
--x-i)
388 ac_prev
=x_includes
;;
389 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
390 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
391 x_includes
="$ac_optarg" ;;
393 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
394 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
395 ac_prev
=x_libraries
;;
396 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
397 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
398 x_libraries
="$ac_optarg" ;;
400 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
404 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
405 echo "configure: warning: $ac_option: invalid host type" 1>&2
407 if test "x$nonopt" != xNONE
; then
408 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
416 if test -n "$ac_prev"; then
417 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
420 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
422 # File descriptor usage:
425 # 2 errors and warnings
426 # 3 some systems may open it to /dev/tty
427 # 4 used on the Kubota Titan
428 # 6 checking for... messages and results
429 # 5 compiler messages saved in config.log
430 if test "$silent" = yes; then
438 This file contains any messages produced by compilers while
439 running configure, to aid debugging if configure makes a mistake.
442 # Strip out --no-create and --no-recursion so they do not pile up.
443 # Also quote any args containing shell metacharacters.
448 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
449 |
--no-cr |
--no-c) ;;
450 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
451 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
452 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
453 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
454 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
459 # Only set these to C if already set. These must not be set unconditionally
460 # because not all systems understand e.g. LANG=C (notably SCO).
461 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
462 # Non-C LC_CTYPE values break the ctype check.
463 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
464 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
465 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
466 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
468 # confdefs.h avoids OS command line length limits that DEFS can exceed.
469 rm -rf conftest
* confdefs.h
470 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
473 # A filename unique to this package, relative to the directory that
474 # configure is in, which we can look for to find out if srcdir is correct.
475 ac_unique_file
=Makefile.
in
477 # Find the source files, if location was not specified.
478 if test -z "$srcdir"; then
479 ac_srcdir_defaulted
=yes
480 # Try the directory containing this script, then its parent.
482 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
483 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
485 if test ! -r $srcdir/$ac_unique_file; then
489 ac_srcdir_defaulted
=no
491 if test ! -r $srcdir/$ac_unique_file; then
492 if test "$ac_srcdir_defaulted" = yes; then
493 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
495 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
498 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
500 # Prefer explicitly selected file to automatically selected ones.
501 if test -z "$CONFIG_SITE"; then
502 if test "x$prefix" != xNONE
; then
503 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
505 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
508 for ac_site_file
in $CONFIG_SITE; do
509 if test -r "$ac_site_file"; then
510 echo "loading site script $ac_site_file"
515 if test -r "$cache_file"; then
516 echo "loading cache $cache_file"
519 echo "creating cache $cache_file"
524 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
525 ac_cpp
='$CPP $CPPFLAGS'
526 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
527 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
528 cross_compiling
=$ac_cv_prog_cc_cross
532 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
533 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
534 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
541 ac_n
= ac_c
='\c' ac_t
=
545 .
$srcdir/GUILE-VERSION
547 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
548 if test -f $ac_dir/install-sh
; then
550 ac_install_sh
="$ac_aux_dir/install-sh -c"
552 elif test -f $ac_dir/install.sh
; then
554 ac_install_sh
="$ac_aux_dir/install.sh -c"
558 if test -z "$ac_aux_dir"; then
559 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
561 ac_config_guess
=$ac_aux_dir/config.guess
562 ac_config_sub
=$ac_aux_dir/config.sub
563 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
565 # Find a good install program. We prefer a C program (faster),
566 # so one script is as good as another. But avoid the broken or
567 # incompatible versions:
568 # SysV /etc/install, /usr/sbin/install
569 # SunOS /usr/etc/install
572 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
573 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
574 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
575 # ./install, which can be erroneously created by make from ./install.sh.
576 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
577 echo "configure:578: checking for a BSD compatible install" >&5
578 if test -z "$INSTALL"; then
579 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
580 echo $ac_n "(cached) $ac_c" 1>&6
582 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
583 for ac_dir
in $PATH; do
584 # Account for people who put trailing slashes in PATH elements.
586 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
588 # OSF1 and SCO ODT 3.0 have their own names for install.
589 # Don't use installbsd from OSF since it installs stuff as root
591 for ac_prog
in ginstall scoinst
install; do
592 if test -f $ac_dir/$ac_prog; then
593 if test $ac_prog = install &&
594 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
595 # AIX install. It has an incompatible calling convention.
598 ac_cv_path_install
="$ac_dir/$ac_prog -c"
609 if test "${ac_cv_path_install+set}" = set; then
610 INSTALL
="$ac_cv_path_install"
612 # As a last resort, use the slow shell script. We don't cache a
613 # path for INSTALL within a source directory, because that will
614 # break other packages using the cache if that directory is
615 # removed, or if the path is relative.
616 INSTALL
="$ac_install_sh"
619 echo "$ac_t""$INSTALL" 1>&6
621 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
622 # It thinks the first close brace ends the variable substitution.
623 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
625 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
627 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
629 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
630 echo "configure:631: checking whether build environment is sane" >&5
633 echo timestamp
> conftestfile
634 # Do `set' in a subshell so we don't clobber the current shell's
635 # arguments. Must try -L first in case configure is actually a
636 # symlink; some systems play weird games with the mod time of symlinks
637 # (eg FreeBSD returns the mod time of the symlink's containing
640 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
641 if test "$*" = "X"; then
643 set X
`ls -t $srcdir/configure conftestfile`
645 if test "$*" != "X $srcdir/configure conftestfile" \
646 && test "$*" != "X conftestfile $srcdir/configure"; then
648 # If neither matched, then we have a broken ls. This can happen
649 # if, for instance, CONFIG_SHELL is bash and it inherits a
650 # broken ls alias from the environment. This has actually
651 # happened. Such a system could not be considered "sane".
652 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
653 alias in your environment" 1>&2; exit 1; }
656 test "$2" = conftestfile
662 { echo "configure: error: newly created file is older than distributed files!
663 Check your system clock" 1>&2; exit 1; }
666 echo "$ac_t""yes" 1>&6
667 if test "$program_transform_name" = s
,x
,x
,; then
668 program_transform_name
=
670 # Double any \ or $. echo might interpret backslashes.
671 cat <<\EOF_SED
> conftestsed
672 s
,\\,\\\\,g
; s
,\$
,$$
,g
674 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
677 test "$program_prefix" != NONE
&&
678 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
679 # Use a double $ so make ignores it.
680 test "$program_suffix" != NONE
&&
681 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
683 # sed with no file args requires a program.
684 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
686 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
687 echo "configure:688: checking whether ${MAKE-make} sets \${MAKE}" >&5
688 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
689 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
690 echo $ac_n "(cached) $ac_c" 1>&6
692 cat > conftestmake
<<\EOF
694 @
echo 'ac_maketemp="${MAKE}"'
696 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
697 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
698 if test -n "$ac_maketemp"; then
699 eval ac_cv_prog_make_
${ac_make}_set
=yes
701 eval ac_cv_prog_make_
${ac_make}_set
=no
705 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
706 echo "$ac_t""yes" 1>&6
709 echo "$ac_t""no" 1>&6
710 SET_MAKE
="MAKE=${MAKE-make}"
718 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
719 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
724 missing_dir
=`cd $ac_aux_dir && pwd`
725 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
726 echo "configure:727: checking for working aclocal" >&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 (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
732 echo "$ac_t""found" 1>&6
734 ACLOCAL
="$missing_dir/missing aclocal"
735 echo "$ac_t""missing" 1>&6
738 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
739 echo "configure:740: checking for working autoconf" >&5
740 # Run test in a subshell; some versions of sh will print an error if
741 # an executable is not found, even if stderr is redirected.
742 # Redirect stdin to placate older versions of autoconf. Sigh.
743 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
745 echo "$ac_t""found" 1>&6
747 AUTOCONF
="$missing_dir/missing autoconf"
748 echo "$ac_t""missing" 1>&6
751 echo $ac_n "checking for working automake""... $ac_c" 1>&6
752 echo "configure:753: checking for working automake" >&5
753 # Run test in a subshell; some versions of sh will print an error if
754 # an executable is not found, even if stderr is redirected.
755 # Redirect stdin to placate older versions of autoconf. Sigh.
756 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
758 echo "$ac_t""found" 1>&6
760 AUTOMAKE
="$missing_dir/missing automake"
761 echo "$ac_t""missing" 1>&6
764 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
765 echo "configure:766: checking for working autoheader" >&5
766 # Run test in a subshell; some versions of sh will print an error if
767 # an executable is not found, even if stderr is redirected.
768 # Redirect stdin to placate older versions of autoconf. Sigh.
769 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
770 AUTOHEADER
=autoheader
771 echo "$ac_t""found" 1>&6
773 AUTOHEADER
="$missing_dir/missing autoheader"
774 echo "$ac_t""missing" 1>&6
777 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
778 echo "configure:779: checking for working makeinfo" >&5
779 # Run test in a subshell; some versions of sh will print an error if
780 # an executable is not found, even if stderr is redirected.
781 # Redirect stdin to placate older versions of autoconf. Sigh.
782 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
784 echo "$ac_t""found" 1>&6
786 MAKEINFO
="$missing_dir/missing makeinfo"
787 echo "$ac_t""missing" 1>&6
791 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
792 echo "configure:793: checking whether to enable maintainer-specific portions of Makefiles" >&5
793 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
794 if test "${enable_maintainer_mode+set}" = set; then
795 enableval
="$enable_maintainer_mode"
796 USE_MAINTAINER_MODE
=$enableval
798 USE_MAINTAINER_MODE
=no
801 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
804 if test $USE_MAINTAINER_MODE = yes; then
805 MAINTAINER_MODE_TRUE
=
806 MAINTAINER_MODE_FALSE
='#'
808 MAINTAINER_MODE_TRUE
='#'
809 MAINTAINER_MODE_FALSE
=
811 MAINT
=$MAINTAINER_MODE_TRUE
818 #--------------------------------------------------------------------
820 # Independent Subdirectories
822 #--------------------------------------------------------------------
824 subdirs
="guile-readline"
827 #--------------------------------------------------------------------
831 #--------------------------------------------------------------------
833 # Check whether --enable-dynamic-linking or --disable-dynamic-linking was given.
834 if test "${enable_dynamic_linking+set}" = set; then
835 enableval
="$enable_dynamic_linking"
838 enable_dynamic_linking
=yes
842 # Check whether --enable-guile-debug or --disable-guile-debug was given.
843 if test "${enable_guile_debug+set}" = set; then
844 enableval
="$enable_guile_debug"
845 if test "$enable_guile_debug" = y ||
test "$enable_guile_debug" = yes; then
846 cat >> confdefs.h
<<\EOF
847 #define GUILE_DEBUG 1
854 # Check whether --enable-lang or --disable-lang was given.
855 if test "${enable_lang+set}" = set; then
856 enableval
="$enable_lang"
857 if test "$enable_lang" = y ||
test "$enable_lang" = yes; then
858 cat >> confdefs.h
<<\EOF
862 LIBOBJS
="$LIBOBJS lang.o"
867 cat >> confdefs.h
<<\EOF
868 #define DEBUG_EXTENSIONS 1
871 cat >> confdefs.h
<<\EOF
872 #define READER_EXTENSIONS 1
876 #--------------------------------------------------------------------
878 # Extract the first word of "gcc", so it can be a program name with args.
879 set dummy gcc
; ac_word
=$2
880 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
881 echo "configure:882: checking for $ac_word" >&5
882 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
883 echo $ac_n "(cached) $ac_c" 1>&6
885 if test -n "$CC"; then
886 ac_cv_prog_CC
="$CC" # Let the user override the test.
888 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
890 for ac_dir
in $ac_dummy; do
891 test -z "$ac_dir" && ac_dir
=.
892 if test -f $ac_dir/$ac_word; then
901 if test -n "$CC"; then
902 echo "$ac_t""$CC" 1>&6
904 echo "$ac_t""no" 1>&6
907 if test -z "$CC"; then
908 # Extract the first word of "cc", so it can be a program name with args.
909 set dummy cc
; ac_word
=$2
910 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
911 echo "configure:912: checking for $ac_word" >&5
912 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
913 echo $ac_n "(cached) $ac_c" 1>&6
915 if test -n "$CC"; then
916 ac_cv_prog_CC
="$CC" # Let the user override the test.
918 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
921 for ac_dir
in $ac_dummy; do
922 test -z "$ac_dir" && ac_dir
=.
923 if test -f $ac_dir/$ac_word; then
924 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
933 if test $ac_prog_rejected = yes; then
934 # We found a bogon in the path, so make sure we never use it.
935 set dummy
$ac_cv_prog_CC
937 if test $# -gt 0; then
938 # We chose a different compiler from the bogus one.
939 # However, it has the same basename, so the bogon will be chosen
940 # first if we set CC to just the basename; use the full file name.
942 set dummy
"$ac_dir/$ac_word" "$@"
950 if test -n "$CC"; then
951 echo "$ac_t""$CC" 1>&6
953 echo "$ac_t""no" 1>&6
956 if test -z "$CC"; then
959 # Extract the first word of "cl", so it can be a program name with args.
960 set dummy cl
; ac_word
=$2
961 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
962 echo "configure:963: checking for $ac_word" >&5
963 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
964 echo $ac_n "(cached) $ac_c" 1>&6
966 if test -n "$CC"; then
967 ac_cv_prog_CC
="$CC" # Let the user override the test.
969 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
971 for ac_dir
in $ac_dummy; do
972 test -z "$ac_dir" && ac_dir
=.
973 if test -f $ac_dir/$ac_word; then
982 if test -n "$CC"; then
983 echo "$ac_t""$CC" 1>&6
985 echo "$ac_t""no" 1>&6
990 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
993 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
994 echo "configure:995: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
997 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
998 ac_cpp
='$CPP $CPPFLAGS'
999 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1000 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1001 cross_compiling
=$ac_cv_prog_cc_cross
1003 cat > conftest.
$ac_ext << EOF
1005 #line 1006 "configure"
1006 #include "confdefs.h"
1010 if { (eval echo configure
:1011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1011 ac_cv_prog_cc_works
=yes
1012 # If we can't run a trivial program, we are probably using a cross compiler.
1013 if (.
/conftest
; exit) 2>/dev
/null
; then
1014 ac_cv_prog_cc_cross
=no
1016 ac_cv_prog_cc_cross
=yes
1019 echo "configure: failed program was:" >&5
1020 cat conftest.
$ac_ext >&5
1021 ac_cv_prog_cc_works
=no
1025 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1026 ac_cpp
='$CPP $CPPFLAGS'
1027 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1028 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1029 cross_compiling
=$ac_cv_prog_cc_cross
1031 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1032 if test $ac_cv_prog_cc_works = no
; then
1033 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1035 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1036 echo "configure:1037: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1037 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1038 cross_compiling
=$ac_cv_prog_cc_cross
1040 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1041 echo "configure:1042: checking whether we are using GNU C" >&5
1042 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1043 echo $ac_n "(cached) $ac_c" 1>&6
1045 cat > conftest.c
<<EOF
1050 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1057 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1059 if test $ac_cv_prog_gcc = yes; then
1065 ac_test_CFLAGS
="${CFLAGS+set}"
1066 ac_save_CFLAGS
="$CFLAGS"
1068 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1069 echo "configure:1070: checking whether ${CC-cc} accepts -g" >&5
1070 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1071 echo $ac_n "(cached) $ac_c" 1>&6
1073 echo 'void f(){}' > conftest.c
1074 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1083 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1084 if test "$ac_test_CFLAGS" = set; then
1085 CFLAGS
="$ac_save_CFLAGS"
1086 elif test $ac_cv_prog_cc_g = yes; then
1087 if test "$GCC" = yes; then
1093 if test "$GCC" = yes; then
1100 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1101 echo "configure:1102: checking how to run the C preprocessor" >&5
1102 # On Suns, sometimes $CPP names a directory.
1103 if test -n "$CPP" && test -d "$CPP"; then
1106 if test -z "$CPP"; then
1107 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1108 echo $ac_n "(cached) $ac_c" 1>&6
1110 # This must be in double quotes, not single quotes, because CPP may get
1111 # substituted into the Makefile and "${CC-cc}" will confuse make.
1113 # On the NeXT, cc -E runs the code through the compiler's parser,
1114 # not just through cpp.
1115 cat > conftest.
$ac_ext <<EOF
1116 #line 1117 "configure"
1117 #include "confdefs.h"
1121 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1122 { (eval echo configure
:1123: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1123 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1124 if test -z "$ac_err"; then
1128 echo "configure: failed program was:" >&5
1129 cat conftest.
$ac_ext >&5
1131 CPP
="${CC-cc} -E -traditional-cpp"
1132 cat > conftest.
$ac_ext <<EOF
1133 #line 1134 "configure"
1134 #include "confdefs.h"
1138 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1139 { (eval echo configure
:1140: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1140 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1141 if test -z "$ac_err"; then
1145 echo "configure: failed program was:" >&5
1146 cat conftest.
$ac_ext >&5
1148 CPP
="${CC-cc} -nologo -E"
1149 cat > conftest.
$ac_ext <<EOF
1150 #line 1151 "configure"
1151 #include "confdefs.h"
1155 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1156 { (eval echo configure
:1157: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1157 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1158 if test -z "$ac_err"; then
1162 echo "configure: failed program was:" >&5
1163 cat conftest.
$ac_ext >&5
1172 ac_cv_prog_CPP
="$CPP"
1174 CPP
="$ac_cv_prog_CPP"
1176 ac_cv_prog_CPP
="$CPP"
1178 echo "$ac_t""$CPP" 1>&6
1180 # Check whether --enable-shared or --disable-shared was given.
1181 if test "${enable_shared+set}" = set; then
1182 enableval
="$enable_shared"
1183 p
=${PACKAGE-default}
1184 case "$enableval" in
1185 yes) enable_shared
=yes ;;
1186 no
) enable_shared
=no
;;
1189 # Look at the argument we got. We use all the common list separators.
1190 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1191 for pkg
in $enableval; do
1192 if test "X$pkg" = "X$p"; then
1203 # Check whether --enable-static or --disable-static was given.
1204 if test "${enable_static+set}" = set; then
1205 enableval
="$enable_static"
1206 p
=${PACKAGE-default}
1207 case "$enableval" in
1208 yes) enable_static
=yes ;;
1209 no
) enable_static
=no
;;
1212 # Look at the argument we got. We use all the common list separators.
1213 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1214 for pkg
in $enableval; do
1215 if test "X$pkg" = "X$p"; then
1226 # Check whether --enable-fast-install or --disable-fast-install was given.
1227 if test "${enable_fast_install+set}" = set; then
1228 enableval
="$enable_fast_install"
1229 p
=${PACKAGE-default}
1230 case "$enableval" in
1231 yes) enable_fast_install
=yes ;;
1232 no
) enable_fast_install
=no
;;
1234 enable_fast_install
=no
1235 # Look at the argument we got. We use all the common list separators.
1236 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1237 for pkg
in $enableval; do
1238 if test "X$pkg" = "X$p"; then
1239 enable_fast_install
=yes
1246 enable_fast_install
=yes
1250 # Make sure we can run config.sub.
1251 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1252 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1255 echo $ac_n "checking host system type""... $ac_c" 1>&6
1256 echo "configure:1257: checking host system type" >&5
1259 case "$host_alias" in
1263 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1264 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1266 *) host_alias
=$nonopt ;;
1270 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1271 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1272 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1273 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1274 echo "$ac_t""$host" 1>&6
1276 echo $ac_n "checking build system type""... $ac_c" 1>&6
1277 echo "configure:1278: checking build system type" >&5
1280 case "$build_alias" in
1283 NONE
) build_alias
=$host_alias ;;
1284 *) build_alias
=$nonopt ;;
1288 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1289 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1290 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1291 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1292 echo "$ac_t""$build" 1>&6
1294 # Extract the first word of "ranlib", so it can be a program name with args.
1295 set dummy ranlib
; ac_word
=$2
1296 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1297 echo "configure:1298: checking for $ac_word" >&5
1298 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1299 echo $ac_n "(cached) $ac_c" 1>&6
1301 if test -n "$RANLIB"; then
1302 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1304 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1306 for ac_dir
in $ac_dummy; do
1307 test -z "$ac_dir" && ac_dir
=.
1308 if test -f $ac_dir/$ac_word; then
1309 ac_cv_prog_RANLIB
="ranlib"
1314 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1317 RANLIB
="$ac_cv_prog_RANLIB"
1318 if test -n "$RANLIB"; then
1319 echo "$ac_t""$RANLIB" 1>&6
1321 echo "$ac_t""no" 1>&6
1324 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1325 if test "${with_gnu_ld+set}" = set; then
1326 withval
="$with_gnu_ld"
1327 test "$withval" = no || with_gnu_ld
=yes
1333 if test "$ac_cv_prog_gcc" = yes; then
1334 # Check if gcc -print-prog-name=ld gives a path.
1335 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1336 echo "configure:1337: checking for ld used by GCC" >&5
1337 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1339 # Accept absolute paths.
1340 [\\/]* |
[A-Za-z
]:[\\/]*)
1341 re_direlt
='/[^/][^/]*/\.\./'
1342 # Canonicalize the path of ld
1343 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1344 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1345 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1347 test -z "$LD" && LD
="$ac_prog"
1350 # If it fails, then pretend we aren't using GCC.
1354 # If it is relative, then search for the first ld in PATH.
1358 elif test "$with_gnu_ld" = yes; then
1359 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1360 echo "configure:1361: checking for GNU ld" >&5
1362 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1363 echo "configure:1364: checking for non-GNU ld" >&5
1365 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1366 echo $ac_n "(cached) $ac_c" 1>&6
1368 if test -z "$LD"; then
1369 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1370 for ac_dir
in $PATH; do
1371 test -z "$ac_dir" && ac_dir
=.
1372 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1373 ac_cv_path_LD
="$ac_dir/$ac_prog"
1374 # Check to see if the program is GNU ld. I'd rather use --version,
1375 # but apparently some GNU ld's only accept -v.
1376 # Break only if it was the GNU/non-GNU ld that we prefer.
1377 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1378 test "$with_gnu_ld" != no
&& break
1380 test "$with_gnu_ld" != yes && break
1386 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1391 if test -n "$LD"; then
1392 echo "$ac_t""$LD" 1>&6
1394 echo "$ac_t""no" 1>&6
1396 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1398 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1399 echo "configure:1400: checking if the linker ($LD) is GNU ld" >&5
1400 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1401 echo $ac_n "(cached) $ac_c" 1>&6
1403 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1404 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1405 ac_cv_prog_gnu_ld
=yes
1407 ac_cv_prog_gnu_ld
=no
1411 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1414 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1415 echo "configure:1416: checking for BSD-compatible nm" >&5
1416 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1417 echo $ac_n "(cached) $ac_c" 1>&6
1419 if test -n "$NM"; then
1420 # Let the user override the test.
1423 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1424 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1425 test -z "$ac_dir" && ac_dir
=.
1426 if test -f $ac_dir/nm ||
test -f $ac_dir/nm
$ac_exeext ; then
1427 # Check to see if the nm accepts a BSD-compat flag.
1428 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1429 # nm: unknown option "B" ignored
1430 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1431 ac_cv_path_NM
="$ac_dir/nm -B"
1433 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1434 ac_cv_path_NM
="$ac_dir/nm -p"
1437 ac_cv_path_NM
=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1438 continue # so that we can try to find one that supports BSD flags
1443 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1448 echo "$ac_t""$NM" 1>&6
1451 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1452 echo "configure:1453: checking whether ln -s works" >&5
1453 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1454 echo $ac_n "(cached) $ac_c" 1>&6
1457 if ln -s X conftestdata
2>/dev
/null
1460 ac_cv_prog_LN_S
="ln -s"
1465 LN_S
="$ac_cv_prog_LN_S"
1466 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1467 echo "$ac_t""yes" 1>&6
1469 echo "$ac_t""no" 1>&6
1473 # Check for any special flags to pass to ltconfig.
1474 libtool_flags
="--cache-file=$cache_file"
1475 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1476 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1477 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
1478 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1479 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1482 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1483 if test "${enable_libtool_lock+set}" = set; then
1484 enableval
="$enable_libtool_lock"
1488 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
1489 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
1491 # Some flags need to be propagated to the compiler or linker for good
1495 # Find out which ABI we are using.
1496 echo '#line 1497 "configure"' > conftest.
$ac_ext
1497 if { (eval echo configure
:1498: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1498 case "`/usr/bin/file conftest.o`" in
1514 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1515 SAVE_CFLAGS
="$CFLAGS"
1516 CFLAGS
="$CFLAGS -belf"
1517 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1518 echo "configure:1519: checking whether the C compiler needs -belf" >&5
1519 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1520 echo $ac_n "(cached) $ac_c" 1>&6
1522 cat > conftest.
$ac_ext <<EOF
1523 #line 1524 "configure"
1524 #include "confdefs.h"
1530 if { (eval echo configure
:1531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1532 lt_cv_cc_needs_belf
=yes
1534 echo "configure: failed program was:" >&5
1535 cat conftest.
$ac_ext >&5
1537 lt_cv_cc_needs_belf
=no
1542 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1543 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
1544 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1545 CFLAGS
="$SAVE_CFLAGS"
1553 # Save cache, so that ltconfig can load it
1554 cat > confcache
<<\EOF
1555 # This file is a shell script that caches the results of configure
1556 # tests run on this system so they can be shared between configure
1557 # scripts and configure runs. It is not useful on other systems.
1558 # If it contains results you don't want to keep, you may remove or edit it.
1560 # By default, configure uses ./config.cache as the cache file,
1561 # creating it if it does not exist already. You can give configure
1562 # the --cache-file=FILE option to use a different cache file; that is
1563 # what configure does when it calls configure scripts in
1564 # subdirectories, so they share the cache.
1565 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1566 # config.status only pays attention to the cache file if you give it the
1567 # --recheck option to rerun configure.
1570 # The following way of writing the cache mishandles newlines in values,
1571 # but we know of no workaround that is simple, portable, and efficient.
1572 # So, don't put newlines in cache variables' values.
1573 # Ultrix sh set writes to stderr and can't be redirected directly,
1574 # and sets the high bit in the cache file unless we assign to the vars.
1576 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1578 # `set' does not quote correctly, so add quotes (double-quote substitution
1579 # turns \\\\ into \\, and sed turns \\ into \).
1581 -e "s/'/'\\\\''/g" \
1582 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1585 # `set' quotes correctly as required by POSIX, so do not add quotes.
1586 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1589 if cmp -s $cache_file confcache
; then
1592 if test -w $cache_file; then
1593 echo "updating cache $cache_file"
1594 cat confcache
> $cache_file
1596 echo "not updating unwritable cache $cache_file"
1602 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1603 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1604 LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
1605 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" \
1606 DLLTOOL
="$DLLTOOL" AS
="$AS" OBJDUMP
="$OBJDUMP" \
1607 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
1608 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$host \
1609 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1611 # Reload cache, that may have been modified by ltconfig
1612 if test -r "$cache_file"; then
1613 echo "loading cache $cache_file"
1616 echo "creating cache $cache_file"
1621 # This can be used to rebuild libtool when needed
1622 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1624 # Always use our own libtool.
1625 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1627 # Redirect the config.log output again, so that the ltconfig log is not
1628 # clobbered by the next message.
1629 exec 5>>.
/config.log
1632 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1633 echo "configure:1634: checking for AIX" >&5
1634 cat > conftest.
$ac_ext <<EOF
1635 #line 1636 "configure"
1636 #include "confdefs.h"
1642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1643 egrep "yes" >/dev
/null
2>&1; then
1645 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
1646 #define _ALL_SOURCE 1
1651 echo "$ac_t""no" 1>&6
1656 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1657 echo "configure:1658: checking for POSIXized ISC" >&5
1658 if test -d /etc
/conf
/kconfig.d
&&
1659 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
1661 echo "$ac_t""yes" 1>&6
1662 ISC
=yes # If later tests want to check for ISC.
1663 cat >> confdefs.h
<<\EOF
1664 #define _POSIX_SOURCE 1
1667 if test "$GCC" = yes; then
1673 echo "$ac_t""no" 1>&6
1677 ac_safe
=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1678 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1679 echo "configure:1680: checking for minix/config.h" >&5
1680 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1681 echo $ac_n "(cached) $ac_c" 1>&6
1683 cat > conftest.
$ac_ext <<EOF
1684 #line 1685 "configure"
1685 #include "confdefs.h"
1686 #include <minix/config.h>
1688 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1689 { (eval echo configure
:1690: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1690 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1691 if test -z "$ac_err"; then
1693 eval "ac_cv_header_$ac_safe=yes"
1696 echo "configure: failed program was:" >&5
1697 cat conftest.
$ac_ext >&5
1699 eval "ac_cv_header_$ac_safe=no"
1703 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1704 echo "$ac_t""yes" 1>&6
1707 echo "$ac_t""no" 1>&6
1711 if test "$MINIX" = yes; then
1712 cat >> confdefs.h
<<\EOF
1713 #define _POSIX_SOURCE 1
1716 cat >> confdefs.h
<<\EOF
1717 #define _POSIX_1_SOURCE 2
1720 cat >> confdefs.h
<<\EOF
1730 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
1731 echo "configure:1732: checking for ${CC-cc} option to accept ANSI C" >&5
1732 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
1733 echo $ac_n "(cached) $ac_c" 1>&6
1735 am_cv_prog_cc_stdc
=no
1737 # Don't try gcc -ansi; that turns off useful extensions and
1738 # breaks some systems' header files.
1739 # AIX -qlanglvl=ansi
1740 # Ultrix and OSF/1 -std1
1741 # HP-UX -Aa -D_HPUX_SOURCE
1742 # SVR4 -Xc -D__EXTENSIONS__
1743 for ac_arg
in "" -qlanglvl=ansi
-std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1745 CC
="$ac_save_CC $ac_arg"
1746 cat > conftest.
$ac_ext <<EOF
1747 #line 1748 "configure"
1748 #include "confdefs.h"
1751 #include <sys/types.h>
1752 #include <sys/stat.h>
1753 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1754 struct buf { int x; };
1755 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1756 static char *e (p, i)
1762 static char *f (char * (*g) (char **, int), char **p, ...)
1767 s = g (p, va_arg (v,int));
1771 int test (int i, double x);
1772 struct s1 {int (*f) (int a);};
1773 struct s2 {int (*f) (double a);};
1774 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1780 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1784 if { (eval echo configure
:1785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1786 am_cv_prog_cc_stdc
="$ac_arg"; break
1788 echo "configure: failed program was:" >&5
1789 cat conftest.
$ac_ext >&5
1797 if test -z "$am_cv_prog_cc_stdc"; then
1798 echo "$ac_t""none needed" 1>&6
1800 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1802 case "x$am_cv_prog_cc_stdc" in
1804 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
1808 echo $ac_n "checking for working const""... $ac_c" 1>&6
1809 echo "configure:1810: checking for working const" >&5
1810 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1811 echo $ac_n "(cached) $ac_c" 1>&6
1813 cat > conftest.
$ac_ext <<EOF
1814 #line 1815 "configure"
1815 #include "confdefs.h"
1819 /* Ultrix mips cc rejects this. */
1820 typedef int charset[2]; const charset x;
1821 /* SunOS 4.1.1 cc rejects this. */
1822 char const *const *ccp;
1824 /* NEC SVR4.0.2 mips cc rejects this. */
1825 struct point {int x, y;};
1826 static struct point const zero = {0,0};
1827 /* AIX XL C 1.02.0.0 rejects this.
1828 It does not let you subtract one const X* pointer from another in an arm
1829 of an if-expression whose if-part is not a constant expression */
1830 const char *g = "string";
1831 ccp = &g + (g ? g-g : 0);
1832 /* HPUX 7.0 cc rejects these. */
1835 ccp = (char const *const *) p;
1836 { /* SCO 3.2v4 cc rejects this. */
1838 char const *s = 0 ? (char *) 0 : (char const *) 0;
1842 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1844 const int *foo = &x[0];
1847 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1848 typedef const int *iptr;
1852 { /* AIX XL C 1.02.0.0 rejects this saying
1853 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1854 struct s { int j; const int *ap[3]; };
1855 struct s *b; b->j = 5;
1857 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1863 if { (eval echo configure
:1864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1867 echo "configure: failed program was:" >&5
1868 cat conftest.
$ac_ext >&5
1875 echo "$ac_t""$ac_cv_c_const" 1>&6
1876 if test $ac_cv_c_const = no
; then
1877 cat >> confdefs.h
<<\EOF
1883 echo $ac_n "checking for inline""... $ac_c" 1>&6
1884 echo "configure:1885: checking for inline" >&5
1885 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1886 echo $ac_n "(cached) $ac_c" 1>&6
1889 for ac_kw
in inline __inline__ __inline
; do
1890 cat > conftest.
$ac_ext <<EOF
1891 #line 1892 "configure"
1892 #include "confdefs.h"
1898 if { (eval echo configure
:1899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1900 ac_cv_c_inline
=$ac_kw; break
1902 echo "configure: failed program was:" >&5
1903 cat conftest.
$ac_ext >&5
1910 echo "$ac_t""$ac_cv_c_inline" 1>&6
1911 case "$ac_cv_c_inline" in
1913 no
) cat >> confdefs.h
<<\EOF
1917 *) cat >> confdefs.h
<<EOF
1918 #define inline $ac_cv_c_inline
1923 echo $ac_n "checking size of int""... $ac_c" 1>&6
1924 echo "configure:1925: checking size of int" >&5
1925 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1926 echo $ac_n "(cached) $ac_c" 1>&6
1928 if test "$cross_compiling" = yes; then
1929 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1931 cat > conftest.
$ac_ext <<EOF
1932 #line 1933 "configure"
1933 #include "confdefs.h"
1937 FILE *f=fopen("conftestval", "w");
1939 fprintf(f, "%d\n", sizeof(int));
1943 if { (eval echo configure
:1944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1945 ac_cv_sizeof_int
=`cat conftestval`
1947 echo "configure: failed program was:" >&5
1948 cat conftest.
$ac_ext >&5
1956 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1957 cat >> confdefs.h
<<EOF
1958 #define SIZEOF_INT $ac_cv_sizeof_int
1962 echo $ac_n "checking size of long""... $ac_c" 1>&6
1963 echo "configure:1964: checking size of long" >&5
1964 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1965 echo $ac_n "(cached) $ac_c" 1>&6
1967 if test "$cross_compiling" = yes; then
1968 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1970 cat > conftest.
$ac_ext <<EOF
1971 #line 1972 "configure"
1972 #include "confdefs.h"
1976 FILE *f=fopen("conftestval", "w");
1978 fprintf(f, "%d\n", sizeof(long));
1982 if { (eval echo configure
:1983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1984 ac_cv_sizeof_long
=`cat conftestval`
1986 echo "configure: failed program was:" >&5
1987 cat conftest.
$ac_ext >&5
1995 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1996 cat >> confdefs.h
<<EOF
1997 #define SIZEOF_LONG $ac_cv_sizeof_long
2001 echo $ac_n "checking for long longs""... $ac_c" 1>&6
2002 echo "configure:2003: checking for long longs" >&5
2003 if eval "test \"`echo '$''{'scm_cv_long_longs'+set}'`\" = set"; then
2004 echo $ac_n "(cached) $ac_c" 1>&6
2006 cat > conftest.
$ac_ext <<EOF
2007 #line 2008 "configure"
2008 #include "confdefs.h"
2014 if { (eval echo configure
:2015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2016 scm_cv_long_longs
=yes
2018 echo "configure: failed program was:" >&5
2019 cat conftest.
$ac_ext >&5
2021 scm_cv_long_longs
=no
2026 echo "$ac_t""$scm_cv_long_longs" 1>&6
2027 if test "$scm_cv_long_longs" = yes; then
2028 cat >> confdefs.h
<<\EOF
2029 #define HAVE_LONG_LONGS 1
2034 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2035 echo "configure:2036: checking for ANSI C header files" >&5
2036 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2037 echo $ac_n "(cached) $ac_c" 1>&6
2039 cat > conftest.
$ac_ext <<EOF
2040 #line 2041 "configure"
2041 #include "confdefs.h"
2047 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2048 { (eval echo configure
:2049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2049 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2050 if test -z "$ac_err"; then
2052 ac_cv_header_stdc
=yes
2055 echo "configure: failed program was:" >&5
2056 cat conftest.
$ac_ext >&5
2058 ac_cv_header_stdc
=no
2062 if test $ac_cv_header_stdc = yes; then
2063 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2064 cat > conftest.
$ac_ext <<EOF
2065 #line 2066 "configure"
2066 #include "confdefs.h"
2069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2070 egrep "memchr" >/dev
/null
2>&1; then
2074 ac_cv_header_stdc
=no
2080 if test $ac_cv_header_stdc = yes; then
2081 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2082 cat > conftest.
$ac_ext <<EOF
2083 #line 2084 "configure"
2084 #include "confdefs.h"
2087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2088 egrep "free" >/dev
/null
2>&1; then
2092 ac_cv_header_stdc
=no
2098 if test $ac_cv_header_stdc = yes; then
2099 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2100 if test "$cross_compiling" = yes; then
2103 cat > conftest.
$ac_ext <<EOF
2104 #line 2105 "configure"
2105 #include "confdefs.h"
2107 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2108 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2109 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2110 int main () { int i; for (i = 0; i < 256; i++)
2111 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2115 if { (eval echo configure
:2116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2119 echo "configure: failed program was:" >&5
2120 cat conftest.
$ac_ext >&5
2122 ac_cv_header_stdc
=no
2130 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2131 if test $ac_cv_header_stdc = yes; then
2132 cat >> confdefs.h
<<\EOF
2133 #define STDC_HEADERS 1
2139 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
2141 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2142 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2143 echo "configure:2144: checking for $ac_hdr that defines DIR" >&5
2144 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2145 echo $ac_n "(cached) $ac_c" 1>&6
2147 cat > conftest.
$ac_ext <<EOF
2148 #line 2149 "configure"
2149 #include "confdefs.h"
2150 #include <sys/types.h>
2156 if { (eval echo configure
:2157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2158 eval "ac_cv_header_dirent_$ac_safe=yes"
2160 echo "configure: failed program was:" >&5
2161 cat conftest.
$ac_ext >&5
2163 eval "ac_cv_header_dirent_$ac_safe=no"
2167 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2168 echo "$ac_t""yes" 1>&6
2169 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2170 cat >> confdefs.h
<<EOF
2171 #define $ac_tr_hdr 1
2173 ac_header_dirent
=$ac_hdr; break
2175 echo "$ac_t""no" 1>&6
2178 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2179 if test $ac_header_dirent = dirent.h
; then
2180 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2181 echo "configure:2182: checking for opendir in -ldir" >&5
2182 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2183 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2184 echo $ac_n "(cached) $ac_c" 1>&6
2186 ac_save_LIBS
="$LIBS"
2188 cat > conftest.
$ac_ext <<EOF
2189 #line 2190 "configure"
2190 #include "confdefs.h"
2191 /* Override any gcc2 internal prototype to avoid an error. */
2192 /* We use char because int might match the return type of a gcc2
2193 builtin and then its argument prototype would still apply. */
2200 if { (eval echo configure
:2201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2202 eval "ac_cv_lib_$ac_lib_var=yes"
2204 echo "configure: failed program was:" >&5
2205 cat conftest.
$ac_ext >&5
2207 eval "ac_cv_lib_$ac_lib_var=no"
2210 LIBS
="$ac_save_LIBS"
2213 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2214 echo "$ac_t""yes" 1>&6
2217 echo "$ac_t""no" 1>&6
2221 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2222 echo "configure:2223: checking for opendir in -lx" >&5
2223 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2224 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2225 echo $ac_n "(cached) $ac_c" 1>&6
2227 ac_save_LIBS
="$LIBS"
2229 cat > conftest.
$ac_ext <<EOF
2230 #line 2231 "configure"
2231 #include "confdefs.h"
2232 /* Override any gcc2 internal prototype to avoid an error. */
2233 /* We use char because int might match the return type of a gcc2
2234 builtin and then its argument prototype would still apply. */
2241 if { (eval echo configure
:2242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2243 eval "ac_cv_lib_$ac_lib_var=yes"
2245 echo "configure: failed program was:" >&5
2246 cat conftest.
$ac_ext >&5
2248 eval "ac_cv_lib_$ac_lib_var=no"
2251 LIBS
="$ac_save_LIBS"
2254 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2255 echo "$ac_t""yes" 1>&6
2258 echo "$ac_t""no" 1>&6
2263 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2264 echo "configure:2265: checking whether time.h and sys/time.h may both be included" >&5
2265 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2266 echo $ac_n "(cached) $ac_c" 1>&6
2268 cat > conftest.
$ac_ext <<EOF
2269 #line 2270 "configure"
2270 #include "confdefs.h"
2271 #include <sys/types.h>
2272 #include <sys/time.h>
2278 if { (eval echo configure
:2279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2280 ac_cv_header_time
=yes
2282 echo "configure: failed program was:" >&5
2283 cat conftest.
$ac_ext >&5
2285 ac_cv_header_time
=no
2290 echo "$ac_t""$ac_cv_header_time" 1>&6
2291 if test $ac_cv_header_time = yes; then
2292 cat >> confdefs.h
<<\EOF
2293 #define TIME_WITH_SYS_TIME 1
2298 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2299 echo "configure:2300: checking for sys/wait.h that is POSIX.1 compatible" >&5
2300 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2301 echo $ac_n "(cached) $ac_c" 1>&6
2303 cat > conftest.
$ac_ext <<EOF
2304 #line 2305 "configure"
2305 #include "confdefs.h"
2306 #include <sys/types.h>
2307 #include <sys/wait.h>
2309 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2312 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2317 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2320 if { (eval echo configure
:2321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2322 ac_cv_header_sys_wait_h
=yes
2324 echo "configure: failed program was:" >&5
2325 cat conftest.
$ac_ext >&5
2327 ac_cv_header_sys_wait_h
=no
2332 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2333 if test $ac_cv_header_sys_wait_h = yes; then
2334 cat >> confdefs.h
<<\EOF
2335 #define HAVE_SYS_WAIT_H 1
2340 for ac_hdr
in io.h libc.h limits.h malloc.h memory.h string.h regex.h rxposix.h rx
/rxposix.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
2342 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2343 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2344 echo "configure:2345: checking for $ac_hdr" >&5
2345 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2346 echo $ac_n "(cached) $ac_c" 1>&6
2348 cat > conftest.
$ac_ext <<EOF
2349 #line 2350 "configure"
2350 #include "confdefs.h"
2353 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2354 { (eval echo configure
:2355: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2355 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2356 if test -z "$ac_err"; then
2358 eval "ac_cv_header_$ac_safe=yes"
2361 echo "configure: failed program was:" >&5
2362 cat conftest.
$ac_ext >&5
2364 eval "ac_cv_header_$ac_safe=no"
2368 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2369 echo "$ac_t""yes" 1>&6
2370 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2371 cat >> confdefs.h
<<EOF
2372 #define $ac_tr_hdr 1
2376 echo "$ac_t""no" 1>&6
2381 for ac_hdr
in libc.h unistd.h
2383 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2384 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2385 echo "configure:2386: checking for $ac_hdr" >&5
2386 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2387 echo $ac_n "(cached) $ac_c" 1>&6
2389 cat > conftest.
$ac_ext <<EOF
2390 #line 2391 "configure"
2391 #include "confdefs.h"
2394 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2395 { (eval echo configure
:2396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2396 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2397 if test -z "$ac_err"; then
2399 eval "ac_cv_header_$ac_safe=yes"
2402 echo "configure: failed program was:" >&5
2403 cat conftest.
$ac_ext >&5
2405 eval "ac_cv_header_$ac_safe=no"
2409 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2410 echo "$ac_t""yes" 1>&6
2411 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2412 cat >> confdefs.h
<<EOF
2413 #define $ac_tr_hdr 1
2417 echo "$ac_t""no" 1>&6
2421 echo $ac_n "checking "whether libc.h and unistd.h can be included together
"""... $ac_c" 1>&6
2422 echo "configure:2423: checking "whether libc.h and unistd.h can be included together
"" >&5
2423 if eval "test \"`echo '$''{'guile_cv_header_libc_with_unistd'+set}'`\" = set"; then
2424 echo $ac_n "(cached) $ac_c" 1>&6
2427 if test "$ac_cv_header_libc_h" = "no"; then
2428 guile_cv_header_libc_with_unistd
="no"
2429 elif test "$ac_cv_header_unistd.h" = "no"; then
2430 guile_cv_header_libc_with_unistd
="yes"
2432 cat > conftest.
$ac_ext <<EOF
2433 #line 2434 "configure"
2434 #include "confdefs.h"
2437 # include <unistd.h>
2443 if { (eval echo configure
:2444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2445 guile_cv_header_libc_with_unistd
=yes
2447 echo "configure: failed program was:" >&5
2448 cat conftest.
$ac_ext >&5
2450 guile_cv_header_libc_with_unistd
=no
2459 echo "$ac_t""$guile_cv_header_libc_with_unistd" 1>&6
2460 if test "$guile_cv_header_libc_with_unistd" = yes; then
2461 cat >> confdefs.h
<<\EOF
2462 #define LIBC_H_WITH_UNISTD_H 1
2469 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2470 echo "configure:2471: checking for uid_t in sys/types.h" >&5
2471 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2472 echo $ac_n "(cached) $ac_c" 1>&6
2474 cat > conftest.
$ac_ext <<EOF
2475 #line 2476 "configure"
2476 #include "confdefs.h"
2477 #include <sys/types.h>
2479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2480 egrep "uid_t" >/dev
/null
2>&1; then
2482 ac_cv_type_uid_t
=yes
2491 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2492 if test $ac_cv_type_uid_t = no
; then
2493 cat >> confdefs.h
<<\EOF
2497 cat >> confdefs.h
<<\EOF
2503 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
2504 echo "configure:2505: checking type of array argument to getgroups" >&5
2505 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
2506 echo $ac_n "(cached) $ac_c" 1>&6
2508 if test "$cross_compiling" = yes; then
2509 ac_cv_type_getgroups
=cross
2511 cat > conftest.
$ac_ext <<EOF
2512 #line 2513 "configure"
2513 #include "confdefs.h"
2515 /* Thanks to Mike Rendell for this test. */
2516 #include <sys/types.h>
2519 #define MAX(x, y) ((x) > (y) ? (x) : (y))
2524 union { gid_t gval; long lval; } val;
2527 for (i = 0; i < NGID; i++)
2528 gidset[i] = val.gval;
2529 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
2531 /* Exit non-zero if getgroups seems to require an array of ints. This
2532 happens when gid_t is short but getgroups modifies an array of ints. */
2533 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
2537 if { (eval echo configure
:2538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2539 ac_cv_type_getgroups
=gid_t
2541 echo "configure: failed program was:" >&5
2542 cat conftest.
$ac_ext >&5
2544 ac_cv_type_getgroups
=int
2549 if test $ac_cv_type_getgroups = cross
; then
2550 cat > conftest.
$ac_ext <<EOF
2551 #line 2552 "configure"
2552 #include "confdefs.h"
2555 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2556 egrep "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
2558 ac_cv_type_getgroups
=gid_t
2561 ac_cv_type_getgroups
=int
2568 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
2569 cat >> confdefs.h
<<EOF
2570 #define GETGROUPS_T $ac_cv_type_getgroups
2574 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2575 echo "configure:2576: checking return type of signal handlers" >&5
2576 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2577 echo $ac_n "(cached) $ac_c" 1>&6
2579 cat > conftest.
$ac_ext <<EOF
2580 #line 2581 "configure"
2581 #include "confdefs.h"
2582 #include <sys/types.h>
2588 extern "C" void (*signal (int, void (*)(int)))(int);
2590 void (*signal ()) ();
2597 if { (eval echo configure
:2598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2599 ac_cv_type_signal
=void
2601 echo "configure: failed program was:" >&5
2602 cat conftest.
$ac_ext >&5
2604 ac_cv_type_signal
=int
2609 echo "$ac_t""$ac_cv_type_signal" 1>&6
2610 cat >> confdefs.h
<<EOF
2611 #define RETSIGTYPE $ac_cv_type_signal
2615 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2616 echo "configure:2617: checking for mode_t" >&5
2617 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2618 echo $ac_n "(cached) $ac_c" 1>&6
2620 cat > conftest.
$ac_ext <<EOF
2621 #line 2622 "configure"
2622 #include "confdefs.h"
2623 #include <sys/types.h>
2629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2630 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2632 ac_cv_type_mode_t
=yes
2635 ac_cv_type_mode_t
=no
2640 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2641 if test $ac_cv_type_mode_t = no
; then
2642 cat >> confdefs.h
<<\EOF
2649 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
2650 echo "configure:2651: checking for main in -lm" >&5
2651 ac_lib_var
=`echo m'_'main | sed 'y%./+-%__p_%'`
2652 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2653 echo $ac_n "(cached) $ac_c" 1>&6
2655 ac_save_LIBS
="$LIBS"
2657 cat > conftest.
$ac_ext <<EOF
2658 #line 2659 "configure"
2659 #include "confdefs.h"
2665 if { (eval echo configure
:2666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2667 eval "ac_cv_lib_$ac_lib_var=yes"
2669 echo "configure: failed program was:" >&5
2670 cat conftest.
$ac_ext >&5
2672 eval "ac_cv_lib_$ac_lib_var=no"
2675 LIBS
="$ac_save_LIBS"
2678 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2679 echo "$ac_t""yes" 1>&6
2680 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2681 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2682 cat >> confdefs.h
<<EOF
2683 #define $ac_tr_lib 1
2689 echo "$ac_t""no" 1>&6
2692 for ac_func
in gethostbyname
2694 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2695 echo "configure:2696: checking for $ac_func" >&5
2696 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2697 echo $ac_n "(cached) $ac_c" 1>&6
2699 cat > conftest.
$ac_ext <<EOF
2700 #line 2701 "configure"
2701 #include "confdefs.h"
2702 /* System header to define __stub macros and hopefully few prototypes,
2703 which can conflict with char $ac_func(); below. */
2705 /* Override any gcc2 internal prototype to avoid an error. */
2706 /* We use char because int might match the return type of a gcc2
2707 builtin and then its argument prototype would still apply. */
2712 /* The GNU C library defines this for functions which it implements
2713 to always fail with ENOSYS. Some functions are actually named
2714 something starting with __ and the normal name is an alias. */
2715 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2723 if { (eval echo configure
:2724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2725 eval "ac_cv_func_$ac_func=yes"
2727 echo "configure: failed program was:" >&5
2728 cat conftest.
$ac_ext >&5
2730 eval "ac_cv_func_$ac_func=no"
2735 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2736 echo "$ac_t""yes" 1>&6
2737 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2738 cat >> confdefs.h
<<EOF
2739 #define $ac_tr_func 1
2743 echo "$ac_t""no" 1>&6
2747 if test $ac_cv_func_gethostbyname = no
; then
2748 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2749 echo "configure:2750: checking for gethostbyname in -lnsl" >&5
2750 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2751 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2752 echo $ac_n "(cached) $ac_c" 1>&6
2754 ac_save_LIBS
="$LIBS"
2756 cat > conftest.
$ac_ext <<EOF
2757 #line 2758 "configure"
2758 #include "confdefs.h"
2759 /* Override any gcc2 internal prototype to avoid an error. */
2760 /* We use char because int might match the return type of a gcc2
2761 builtin and then its argument prototype would still apply. */
2762 char gethostbyname();
2768 if { (eval echo configure
:2769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2770 eval "ac_cv_lib_$ac_lib_var=yes"
2772 echo "configure: failed program was:" >&5
2773 cat conftest.
$ac_ext >&5
2775 eval "ac_cv_lib_$ac_lib_var=no"
2778 LIBS
="$ac_save_LIBS"
2781 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2782 echo "$ac_t""yes" 1>&6
2783 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2784 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2785 cat >> confdefs.h
<<EOF
2786 #define $ac_tr_lib 1
2792 echo "$ac_t""no" 1>&6
2796 for ac_func
in connect
2798 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2799 echo "configure:2800: checking for $ac_func" >&5
2800 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2801 echo $ac_n "(cached) $ac_c" 1>&6
2803 cat > conftest.
$ac_ext <<EOF
2804 #line 2805 "configure"
2805 #include "confdefs.h"
2806 /* System header to define __stub macros and hopefully few prototypes,
2807 which can conflict with char $ac_func(); below. */
2809 /* Override any gcc2 internal prototype to avoid an error. */
2810 /* We use char because int might match the return type of a gcc2
2811 builtin and then its argument prototype would still apply. */
2816 /* The GNU C library defines this for functions which it implements
2817 to always fail with ENOSYS. Some functions are actually named
2818 something starting with __ and the normal name is an alias. */
2819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2827 if { (eval echo configure
:2828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2829 eval "ac_cv_func_$ac_func=yes"
2831 echo "configure: failed program was:" >&5
2832 cat conftest.
$ac_ext >&5
2834 eval "ac_cv_func_$ac_func=no"
2839 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2840 echo "$ac_t""yes" 1>&6
2841 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2842 cat >> confdefs.h
<<EOF
2843 #define $ac_tr_func 1
2847 echo "$ac_t""no" 1>&6
2851 if test $ac_cv_func_connect = no
; then
2852 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2853 echo "configure:2854: checking for connect in -lsocket" >&5
2854 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2855 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2856 echo $ac_n "(cached) $ac_c" 1>&6
2858 ac_save_LIBS
="$LIBS"
2859 LIBS
="-lsocket $LIBS"
2860 cat > conftest.
$ac_ext <<EOF
2861 #line 2862 "configure"
2862 #include "confdefs.h"
2863 /* Override any gcc2 internal prototype to avoid an error. */
2864 /* We use char because int might match the return type of a gcc2
2865 builtin and then its argument prototype would still apply. */
2872 if { (eval echo configure
:2873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2874 eval "ac_cv_lib_$ac_lib_var=yes"
2876 echo "configure: failed program was:" >&5
2877 cat conftest.
$ac_ext >&5
2879 eval "ac_cv_lib_$ac_lib_var=no"
2882 LIBS
="$ac_save_LIBS"
2885 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2886 echo "$ac_t""yes" 1>&6
2887 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2888 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2889 cat >> confdefs.h
<<EOF
2890 #define $ac_tr_lib 1
2893 LIBS
="-lsocket $LIBS"
2896 echo "$ac_t""no" 1>&6
2901 # Checks for dynamic linking
2903 if test "$enable_dynamic_linking" = "yes"; then
2905 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2906 echo "configure:2907: checking for dlopen in -ldl" >&5
2907 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2908 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2909 echo $ac_n "(cached) $ac_c" 1>&6
2911 ac_save_LIBS
="$LIBS"
2913 cat > conftest.
$ac_ext <<EOF
2914 #line 2915 "configure"
2915 #include "confdefs.h"
2916 /* Override any gcc2 internal prototype to avoid an error. */
2917 /* We use char because int might match the return type of a gcc2
2918 builtin and then its argument prototype would still apply. */
2925 if { (eval echo configure
:2926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2927 eval "ac_cv_lib_$ac_lib_var=yes"
2929 echo "configure: failed program was:" >&5
2930 cat conftest.
$ac_ext >&5
2932 eval "ac_cv_lib_$ac_lib_var=no"
2935 LIBS
="$ac_save_LIBS"
2938 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2939 echo "$ac_t""yes" 1>&6
2940 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2941 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2942 cat >> confdefs.h
<<EOF
2943 #define $ac_tr_lib 1
2949 echo "$ac_t""no" 1>&6
2952 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
2953 for ac_func
in dlopen
2955 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2956 echo "configure:2957: checking for $ac_func" >&5
2957 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2958 echo $ac_n "(cached) $ac_c" 1>&6
2960 cat > conftest.
$ac_ext <<EOF
2961 #line 2962 "configure"
2962 #include "confdefs.h"
2963 /* System header to define __stub macros and hopefully few prototypes,
2964 which can conflict with char $ac_func(); below. */
2966 /* Override any gcc2 internal prototype to avoid an error. */
2967 /* We use char because int might match the return type of a gcc2
2968 builtin and then its argument prototype would still apply. */
2973 /* The GNU C library defines this for functions which it implements
2974 to always fail with ENOSYS. Some functions are actually named
2975 something starting with __ and the normal name is an alias. */
2976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2984 if { (eval echo configure
:2985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2986 eval "ac_cv_func_$ac_func=yes"
2988 echo "configure: failed program was:" >&5
2989 cat conftest.
$ac_ext >&5
2991 eval "ac_cv_func_$ac_func=no"
2996 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2997 echo "$ac_t""yes" 1>&6
2998 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2999 cat >> confdefs.h
<<EOF
3000 #define $ac_tr_func 1
3004 echo "$ac_t""no" 1>&6
3008 cat >> confdefs.h
<<\EOF
3009 #define DYNAMIC_LINKING 1
3013 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
3014 echo "configure:3015: checking for dld_link in -ldld" >&5
3015 ac_lib_var
=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
3016 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3017 echo $ac_n "(cached) $ac_c" 1>&6
3019 ac_save_LIBS
="$LIBS"
3021 cat > conftest.
$ac_ext <<EOF
3022 #line 3023 "configure"
3023 #include "confdefs.h"
3024 /* Override any gcc2 internal prototype to avoid an error. */
3025 /* We use char because int might match the return type of a gcc2
3026 builtin and then its argument prototype would still apply. */
3033 if { (eval echo configure
:3034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3035 eval "ac_cv_lib_$ac_lib_var=yes"
3037 echo "configure: failed program was:" >&5
3038 cat conftest.
$ac_ext >&5
3040 eval "ac_cv_lib_$ac_lib_var=no"
3043 LIBS
="$ac_save_LIBS"
3046 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3047 echo "$ac_t""yes" 1>&6
3048 ac_tr_lib
=HAVE_LIB
`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3049 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3050 cat >> confdefs.h
<<EOF
3051 #define $ac_tr_lib 1
3057 echo "$ac_t""no" 1>&6
3060 if test "$ac_cv_lib_dld_dld_link" = "yes"; then
3061 cat >> confdefs.h
<<\EOF
3062 #define DYNAMIC_LINKING 1
3066 for ac_func
in shl_load
3068 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3069 echo "configure:3070: checking for $ac_func" >&5
3070 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3071 echo $ac_n "(cached) $ac_c" 1>&6
3073 cat > conftest.
$ac_ext <<EOF
3074 #line 3075 "configure"
3075 #include "confdefs.h"
3076 /* System header to define __stub macros and hopefully few prototypes,
3077 which can conflict with char $ac_func(); below. */
3079 /* Override any gcc2 internal prototype to avoid an error. */
3080 /* We use char because int might match the return type of a gcc2
3081 builtin and then its argument prototype would still apply. */
3086 /* The GNU C library defines this for functions which it implements
3087 to always fail with ENOSYS. Some functions are actually named
3088 something starting with __ and the normal name is an alias. */
3089 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3097 if { (eval echo configure
:3098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3099 eval "ac_cv_func_$ac_func=yes"
3101 echo "configure: failed program was:" >&5
3102 cat conftest.
$ac_ext >&5
3104 eval "ac_cv_func_$ac_func=no"
3109 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3110 echo "$ac_t""yes" 1>&6
3111 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3112 cat >> confdefs.h
<<EOF
3113 #define $ac_tr_func 1
3117 echo "$ac_t""no" 1>&6
3121 if test "$ac_cv_func_shl_load" = "yes"; then
3122 cat >> confdefs.h
<<\EOF
3123 #define DYNAMIC_LINKING 1
3127 for ac_func
in dlopen
3129 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3130 echo "configure:3131: checking for $ac_func" >&5
3131 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3132 echo $ac_n "(cached) $ac_c" 1>&6
3134 cat > conftest.
$ac_ext <<EOF
3135 #line 3136 "configure"
3136 #include "confdefs.h"
3137 /* System header to define __stub macros and hopefully few prototypes,
3138 which can conflict with char $ac_func(); below. */
3140 /* Override any gcc2 internal prototype to avoid an error. */
3141 /* We use char because int might match the return type of a gcc2
3142 builtin and then its argument prototype would still apply. */
3147 /* The GNU C library defines this for functions which it implements
3148 to always fail with ENOSYS. Some functions are actually named
3149 something starting with __ and the normal name is an alias. */
3150 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3158 if { (eval echo configure
:3159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3160 eval "ac_cv_func_$ac_func=yes"
3162 echo "configure: failed program was:" >&5
3163 cat conftest.
$ac_ext >&5
3165 eval "ac_cv_func_$ac_func=no"
3170 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3171 echo "$ac_t""yes" 1>&6
3172 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3173 cat >> confdefs.h
<<EOF
3174 #define $ac_tr_func 1
3178 echo "$ac_t""no" 1>&6
3182 if test "$ac_cv_func_dlopen" = "yes"; then
3183 cat >> confdefs.h
<<\EOF
3184 #define DYNAMIC_LINKING 1
3195 echo $ac_n "checking for underscore before symbols""... $ac_c" 1>&6
3196 echo "configure:3197: checking for underscore before symbols" >&5
3197 if eval "test \"`echo '$''{'guile_cv_uscore'+set}'`\" = set"; then
3198 echo $ac_n "(cached) $ac_c" 1>&6
3201 echo "main(){int i=1;}
3202 fnord(){int i=23; int ltuae=42;}" > conftest.c
3203 ${CC} conftest.c
> /dev
/null
3204 if (nm a.out |
grep _fnord
) > /dev
/null
; then
3211 echo "$ac_t""$guile_cv_uscore" 1>&6
3212 rm -f conftest.c a.out
3214 if test $guile_cv_uscore = yes; then
3215 cat >> confdefs.h
<<\EOF
3220 if test $ac_cv_func_dlopen = yes -o $ac_cv_lib_dl_dlopen = yes ; then
3221 echo $ac_n "checking whether dlsym always adds an underscore for us""... $ac_c" 1>&6
3222 echo "configure:3223: checking whether dlsym always adds an underscore for us" >&5
3223 if eval "test \"`echo '$''{'guile_cv_dlsym_adds_uscore'+set}'`\" = set"; then
3224 echo $ac_n "(cached) $ac_c" 1>&6
3226 if test "$cross_compiling" = yes; then
3227 guile_cv_dlsym_adds_uscore
=no
3229 cat > conftest.
$ac_ext <<EOF
3230 #line 3231 "configure"
3231 #include "confdefs.h"
3235 fnord() { int i=42;}
3236 main() { void *self, *ptr1, *ptr2; self=dlopen(NULL,RTLD_LAZY);
3237 if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord");
3238 if(ptr1 && !ptr2) exit(0); } exit(1); }
3241 if { (eval echo configure
:3242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3243 guile_cv_dlsym_adds_uscore
=yes
3244 cat >> confdefs.h
<<\EOF
3245 #define DLSYM_ADDS_USCORE 1
3249 echo "configure: failed program was:" >&5
3250 cat conftest.
$ac_ext >&5
3252 guile_cv_dlsym_adds_uscore
=no
3260 echo "$ac_t""$guile_cv_dlsym_adds_uscore" 1>&6
3265 for ac_func
in ctermid ftime getcwd geteuid gettimeofday lstat mkdir mknod nice readlink rename
rmdir select setegid seteuid setlocale setpgid setsid sigaction strftime strptime symlink sync tcgetpgrp tcsetpgrp
times uname waitpid bzero strdup system
usleep
3267 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3268 echo "configure:3269: checking for $ac_func" >&5
3269 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3270 echo $ac_n "(cached) $ac_c" 1>&6
3272 cat > conftest.
$ac_ext <<EOF
3273 #line 3274 "configure"
3274 #include "confdefs.h"
3275 /* System header to define __stub macros and hopefully few prototypes,
3276 which can conflict with char $ac_func(); below. */
3278 /* Override any gcc2 internal prototype to avoid an error. */
3279 /* We use char because int might match the return type of a gcc2
3280 builtin and then its argument prototype would still apply. */
3285 /* The GNU C library defines this for functions which it implements
3286 to always fail with ENOSYS. Some functions are actually named
3287 something starting with __ and the normal name is an alias. */
3288 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3296 if { (eval echo configure
:3297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3298 eval "ac_cv_func_$ac_func=yes"
3300 echo "configure: failed program was:" >&5
3301 cat conftest.
$ac_ext >&5
3303 eval "ac_cv_func_$ac_func=no"
3308 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3309 echo "$ac_t""yes" 1>&6
3310 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3311 cat >> confdefs.h
<<EOF
3312 #define $ac_tr_func 1
3316 echo "$ac_t""no" 1>&6
3321 ### Some systems don't declare some functions. On such systems, we
3322 ### need to at least provide our own K&R-style declarations.
3324 ### GUILE_FUNC_DECLARED(function, headerfile)
3326 ### Check for a declaration of FUNCTION in HEADERFILE; if it is
3327 ### not there, #define MISSING_FUNCTION_DECL.
3331 echo $ac_n "checking for strptime declaration""... $ac_c" 1>&6
3332 echo "configure:3333: checking for strptime declaration" >&5
3333 if eval "test \"`echo '$''{'guile_cv_func_strptime_declared'+set}'`\" = set"; then
3334 echo $ac_n "(cached) $ac_c" 1>&6
3336 cat > conftest.
$ac_ext <<EOF
3337 #line 3338 "configure"
3338 #include "confdefs.h"
3341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3342 egrep "strptime" >/dev
/null
2>&1; then
3344 guile_cv_func_strptime_declared
=yes
3347 guile_cv_func_strptime_declared
=no
3353 echo "$ac_t""$guile_cv_func_strptime_declared" 1>&6
3354 if test x
$guile_cv_func_strptime_declared = xno
; then
3355 cat >> confdefs.h
<<\EOF
3356 #define MISSING_STRPTIME_DECL 1
3362 echo $ac_n "checking for bzero declaration""... $ac_c" 1>&6
3363 echo "configure:3364: checking for bzero declaration" >&5
3364 if eval "test \"`echo '$''{'guile_cv_func_bzero_declared'+set}'`\" = set"; then
3365 echo $ac_n "(cached) $ac_c" 1>&6
3367 cat > conftest.
$ac_ext <<EOF
3368 #line 3369 "configure"
3369 #include "confdefs.h"
3372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3373 egrep "bzero" >/dev
/null
2>&1; then
3375 guile_cv_func_bzero_declared
=yes
3378 guile_cv_func_bzero_declared
=no
3384 echo "$ac_t""$guile_cv_func_bzero_declared" 1>&6
3385 if test x
$guile_cv_func_bzero_declared = xno
; then
3386 cat >> confdefs.h
<<\EOF
3387 #define MISSING_BZERO_DECL 1
3393 echo $ac_n "checking for sleep declaration""... $ac_c" 1>&6
3394 echo "configure:3395: checking for sleep declaration" >&5
3395 if eval "test \"`echo '$''{'guile_cv_func_sleep_declared'+set}'`\" = set"; then
3396 echo $ac_n "(cached) $ac_c" 1>&6
3398 cat > conftest.
$ac_ext <<EOF
3399 #line 3400 "configure"
3400 #include "confdefs.h"
3403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3404 egrep "sleep" >/dev
/null
2>&1; then
3406 guile_cv_func_sleep_declared
=yes
3409 guile_cv_func_sleep_declared
=no
3415 echo "$ac_t""$guile_cv_func_sleep_declared" 1>&6
3416 if test x
$guile_cv_func_sleep_declared = xno
; then
3417 cat >> confdefs.h
<<\EOF
3418 #define MISSING_SLEEP_DECL 1
3424 echo $ac_n "checking for usleep declaration""... $ac_c" 1>&6
3425 echo "configure:3426: checking for usleep declaration" >&5
3426 if eval "test \"`echo '$''{'guile_cv_func_usleep_declared'+set}'`\" = set"; then
3427 echo $ac_n "(cached) $ac_c" 1>&6
3429 cat > conftest.
$ac_ext <<EOF
3430 #line 3431 "configure"
3431 #include "confdefs.h"
3434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3435 egrep "usleep" >/dev
/null
2>&1; then
3437 guile_cv_func_usleep_declared
=yes
3440 guile_cv_func_usleep_declared
=no
3446 echo "$ac_t""$guile_cv_func_usleep_declared" 1>&6
3447 if test x
$guile_cv_func_usleep_declared = xno
; then
3448 cat >> confdefs.h
<<\EOF
3449 #define MISSING_USLEEP_DECL 1
3455 ### On some systems usleep has no return value. If it does have one,
3456 ### we'd like to return it; otherwise, we'll fake it.
3457 echo $ac_n "checking return type of usleep""... $ac_c" 1>&6
3458 echo "configure:3459: checking return type of usleep" >&5
3459 if eval "test \"`echo '$''{'guile_cv_func_usleep_return_type'+set}'`\" = set"; then
3460 echo $ac_n "(cached) $ac_c" 1>&6
3462 cat > conftest.
$ac_ext <<EOF
3463 #line 3464 "configure"
3464 #include "confdefs.h"
3465 #include </usr/include/unistd.h>
3467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3468 egrep "void[ ]+usleep" >/dev
/null
2>&1; then
3470 guile_cv_func_usleep_return_type
=void
3473 guile_cv_func_usleep_return_type
=int
3479 echo "$ac_t""$guile_cv_func_usleep_return_type" 1>&6
3480 case "$guile_cv_func_usleep_return_type" in
3482 cat >> confdefs.h
<<\EOF
3483 #define USLEEP_RETURNS_VOID 1
3490 ac_safe
=`echo "sys/un.h" | sed 'y%./+-%__p_%'`
3491 echo $ac_n "checking for sys/un.h""... $ac_c" 1>&6
3492 echo "configure:3493: checking for sys/un.h" >&5
3493 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3494 echo $ac_n "(cached) $ac_c" 1>&6
3496 cat > conftest.
$ac_ext <<EOF
3497 #line 3498 "configure"
3498 #include "confdefs.h"
3501 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3502 { (eval echo configure
:3503: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3503 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3504 if test -z "$ac_err"; then
3506 eval "ac_cv_header_$ac_safe=yes"
3509 echo "configure: failed program was:" >&5
3510 cat conftest.
$ac_ext >&5
3512 eval "ac_cv_header_$ac_safe=no"
3516 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3517 echo "$ac_t""yes" 1>&6
3520 echo "$ac_t""no" 1>&6
3523 if test -n "$have_sys_un_h" ; then
3524 cat >> confdefs.h
<<\EOF
3525 #define HAVE_UNIX_DOMAIN_SOCKETS 1
3530 for ac_func
in socketpair getgroups setpwent pause tzset
3532 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3533 echo "configure:3534: checking for $ac_func" >&5
3534 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3535 echo $ac_n "(cached) $ac_c" 1>&6
3537 cat > conftest.
$ac_ext <<EOF
3538 #line 3539 "configure"
3539 #include "confdefs.h"
3540 /* System header to define __stub macros and hopefully few prototypes,
3541 which can conflict with char $ac_func(); below. */
3543 /* Override any gcc2 internal prototype to avoid an error. */
3544 /* We use char because int might match the return type of a gcc2
3545 builtin and then its argument prototype would still apply. */
3550 /* The GNU C library defines this for functions which it implements
3551 to always fail with ENOSYS. Some functions are actually named
3552 something starting with __ and the normal name is an alias. */
3553 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3561 if { (eval echo configure
:3562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3563 eval "ac_cv_func_$ac_func=yes"
3565 echo "configure: failed program was:" >&5
3566 cat conftest.
$ac_ext >&5
3568 eval "ac_cv_func_$ac_func=no"
3573 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3574 echo "$ac_t""yes" 1>&6
3575 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3576 cat >> confdefs.h
<<EOF
3577 #define $ac_tr_func 1
3581 echo "$ac_t""no" 1>&6
3589 for ac_func
in sethostent gethostent endhostent setnetent getnetent endnetent setprotoent getprotoent endprotoent setservent getservent endservent getnetbyaddr getnetbyname inet_lnaof inet_makeaddr inet_netof
3591 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3592 echo "configure:3593: checking for $ac_func" >&5
3593 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3594 echo $ac_n "(cached) $ac_c" 1>&6
3596 cat > conftest.
$ac_ext <<EOF
3597 #line 3598 "configure"
3598 #include "confdefs.h"
3599 /* System header to define __stub macros and hopefully few prototypes,
3600 which can conflict with char $ac_func(); below. */
3602 /* Override any gcc2 internal prototype to avoid an error. */
3603 /* We use char because int might match the return type of a gcc2
3604 builtin and then its argument prototype would still apply. */
3609 /* The GNU C library defines this for functions which it implements
3610 to always fail with ENOSYS. Some functions are actually named
3611 something starting with __ and the normal name is an alias. */
3612 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3620 if { (eval echo configure
:3621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3622 eval "ac_cv_func_$ac_func=yes"
3624 echo "configure: failed program was:" >&5
3625 cat conftest.
$ac_ext >&5
3627 eval "ac_cv_func_$ac_func=no"
3632 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3633 echo "$ac_t""yes" 1>&6
3634 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3635 cat >> confdefs.h
<<EOF
3636 #define $ac_tr_func 1
3640 echo "$ac_t""no" 1>&6
3646 echo $ac_n "checking for restartable system calls""... $ac_c" 1>&6
3647 echo "configure:3648: checking for restartable system calls" >&5
3648 if eval "test \"`echo '$''{'scm_cv_restarts'+set}'`\" = set"; then
3649 echo $ac_n "(cached) $ac_c" 1>&6
3651 if test $ac_cv_func_sigaction = yes; then
3652 cat > conftest.
$ac_ext <<EOF
3653 #line 3654 "configure"
3654 #include "confdefs.h"
3660 if { (eval echo configure
:3661: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3664 echo "configure: failed program was:" >&5
3665 cat conftest.
$ac_ext >&5
3675 echo "$ac_t""$scm_cv_restarts" 1>&6
3676 if test $scm_cv_restarts = yes; then
3677 cat >> confdefs.h
<<\EOF
3678 #define HAVE_RESTARTS 1
3683 if test "$ac_cv_header_regex_h" = yes ||
3684 test "$ac_cv_header_rxposix_h" = yes ||
3685 test "$ac_cv_header_rx_rxposix_h" = yes; then
3686 echo $ac_n "checking for regcomp""... $ac_c" 1>&6
3687 echo "configure:3688: checking for regcomp" >&5
3688 if eval "test \"`echo '$''{'ac_cv_func_regcomp_norx'+set}'`\" = set"; then
3689 echo $ac_n "(cached) $ac_c" 1>&6
3691 cat > conftest.
$ac_ext <<EOF
3692 #line 3693 "configure"
3693 #include "confdefs.h"
3694 /* System header to define __stub macros and hopefully few prototypes,
3695 which can conflict with char regcomp(); below. */
3697 /* Override any gcc2 internal prototype to avoid an error. */
3698 /* We use char because int might match the return type of a gcc2
3699 builtin and then its argument prototype would still apply. */
3704 /* The GNU C library defines this for functions which it implements
3705 to always fail with ENOSYS. Some functions are actually named
3706 something starting with __ and the normal name is an alias. */
3707 #if defined (__stub_regcomp) || defined (__stub___regcomp)
3715 if { (eval echo configure
:3716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3717 eval "ac_cv_func_regcomp_norx=yes"
3719 echo "configure: failed program was:" >&5
3720 cat conftest.
$ac_ext >&5
3722 eval "ac_cv_func_regcomp_norx=no"
3727 if eval "test \"`echo '$ac_cv_func_'regcomp'_'norx`\" = yes"; then
3728 echo "$ac_t""yes" 1>&6
3729 LIBOBJS
="regex-posix.o $LIBOBJS"
3731 echo "$ac_t""no" 1>&6
3732 echo $ac_n "checking for main in -lrx""... $ac_c" 1>&6
3733 echo "configure:3734: checking for main in -lrx" >&5
3734 ac_lib_var
=`echo rx'_'main | sed 'y%./+-%__p_%'`
3735 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3736 echo $ac_n "(cached) $ac_c" 1>&6
3738 ac_save_LIBS
="$LIBS"
3740 cat > conftest.
$ac_ext <<EOF
3741 #line 3742 "configure"
3742 #include "confdefs.h"
3748 if { (eval echo configure
:3749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3750 eval "ac_cv_lib_$ac_lib_var=yes"
3752 echo "configure: failed program was:" >&5
3753 cat conftest.
$ac_ext >&5
3755 eval "ac_cv_lib_$ac_lib_var=no"
3758 LIBS
="$ac_save_LIBS"
3761 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3762 echo "$ac_t""yes" 1>&6
3763 ac_tr_lib
=HAVE_LIB
`echo rx | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3764 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3765 cat >> confdefs.h
<<EOF
3766 #define $ac_tr_lib 1
3772 echo "$ac_t""no" 1>&6
3775 echo $ac_n "checking for regcomp""... $ac_c" 1>&6
3776 echo "configure:3777: checking for regcomp" >&5
3777 if eval "test \"`echo '$''{'ac_cv_func_regcomp_rx'+set}'`\" = set"; then
3778 echo $ac_n "(cached) $ac_c" 1>&6
3780 cat > conftest.
$ac_ext <<EOF
3781 #line 3782 "configure"
3782 #include "confdefs.h"
3783 /* System header to define __stub macros and hopefully few prototypes,
3784 which can conflict with char regcomp(); below. */
3786 /* Override any gcc2 internal prototype to avoid an error. */
3787 /* We use char because int might match the return type of a gcc2
3788 builtin and then its argument prototype would still apply. */
3793 /* The GNU C library defines this for functions which it implements
3794 to always fail with ENOSYS. Some functions are actually named
3795 something starting with __ and the normal name is an alias. */
3796 #if defined (__stub_regcomp) || defined (__stub___regcomp)
3804 if { (eval echo configure
:3805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3806 eval "ac_cv_func_regcomp_rx=yes"
3808 echo "configure: failed program was:" >&5
3809 cat conftest.
$ac_ext >&5
3811 eval "ac_cv_func_regcomp_rx=no"
3816 if eval "test \"`echo '$ac_cv_func_'regcomp'_'rx`\" = yes"; then
3817 echo "$ac_t""yes" 1>&6
3818 LIBOBJS
="regex-posix.o $LIBOBJS"
3820 echo "$ac_t""no" 1>&6
3826 if test "$ac_cv_func_regcomp_norx" = yes ||
3827 test "$ac_cv_func_regcomp_rx" = yes; then
3828 cat >> confdefs.h
<<\EOF
3829 #define HAVE_REGCOMP 1
3835 for ac_func
in inet_aton putenv strerror
3837 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3838 echo "configure:3839: checking for $ac_func" >&5
3839 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3840 echo $ac_n "(cached) $ac_c" 1>&6
3842 cat > conftest.
$ac_ext <<EOF
3843 #line 3844 "configure"
3844 #include "confdefs.h"
3845 /* System header to define __stub macros and hopefully few prototypes,
3846 which can conflict with char $ac_func(); below. */
3848 /* Override any gcc2 internal prototype to avoid an error. */
3849 /* We use char because int might match the return type of a gcc2
3850 builtin and then its argument prototype would still apply. */
3855 /* The GNU C library defines this for functions which it implements
3856 to always fail with ENOSYS. Some functions are actually named
3857 something starting with __ and the normal name is an alias. */
3858 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3866 if { (eval echo configure
:3867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3868 eval "ac_cv_func_$ac_func=yes"
3870 echo "configure: failed program was:" >&5
3871 cat conftest.
$ac_ext >&5
3873 eval "ac_cv_func_$ac_func=no"
3878 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3879 echo "$ac_t""yes" 1>&6
3880 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3881 cat >> confdefs.h
<<EOF
3882 #define $ac_tr_func 1
3886 echo "$ac_t""no" 1>&6
3887 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
3893 # When testing for the presence of alloca, we need to add alloca.o
3894 # explicitly to LIBOBJS to make sure that it is translated to
3895 # `alloca.lo' for libtool later on. This can and should be done more cleanly.
3896 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3897 # for constant arguments. Useless!
3898 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3899 echo "configure:3900: checking for working alloca.h" >&5
3900 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3901 echo $ac_n "(cached) $ac_c" 1>&6
3903 cat > conftest.
$ac_ext <<EOF
3904 #line 3905 "configure"
3905 #include "confdefs.h"
3908 char *p = alloca(2 * sizeof(int));
3911 if { (eval echo configure
:3912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3913 ac_cv_header_alloca_h
=yes
3915 echo "configure: failed program was:" >&5
3916 cat conftest.
$ac_ext >&5
3918 ac_cv_header_alloca_h
=no
3923 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3924 if test $ac_cv_header_alloca_h = yes; then
3925 cat >> confdefs.h
<<\EOF
3926 #define HAVE_ALLOCA_H 1
3931 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3932 echo "configure:3933: checking for alloca" >&5
3933 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3934 echo $ac_n "(cached) $ac_c" 1>&6
3936 cat > conftest.
$ac_ext <<EOF
3937 #line 3938 "configure"
3938 #include "confdefs.h"
3941 # define alloca __builtin_alloca
3944 # include <malloc.h>
3945 # define alloca _alloca
3948 # include <alloca.h>
3953 # ifndef alloca /* predefined by HP cc +Olibcalls */
3962 char *p = (char *) alloca(1);
3965 if { (eval echo configure
:3966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3967 ac_cv_func_alloca_works
=yes
3969 echo "configure: failed program was:" >&5
3970 cat conftest.
$ac_ext >&5
3972 ac_cv_func_alloca_works
=no
3977 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3978 if test $ac_cv_func_alloca_works = yes; then
3979 cat >> confdefs.h
<<\EOF
3980 #define HAVE_ALLOCA 1
3985 if test $ac_cv_func_alloca_works = no
; then
3986 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3987 # that cause trouble. Some versions do not even contain alloca or
3988 # contain a buggy version. If you still want to use their alloca,
3989 # use ar to extract alloca.o from them instead of compiling alloca.c.
3990 ALLOCA
=alloca.
${ac_objext}
3991 cat >> confdefs.h
<<\EOF
3996 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3997 echo "configure:3998: checking whether alloca needs Cray hooks" >&5
3998 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3999 echo $ac_n "(cached) $ac_c" 1>&6
4001 cat > conftest.
$ac_ext <<EOF
4002 #line 4003 "configure"
4003 #include "confdefs.h"
4004 #if defined(CRAY) && ! defined(CRAY2)
4011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4012 egrep "webecray" >/dev
/null
2>&1; then
4023 echo "$ac_t""$ac_cv_os_cray" 1>&6
4024 if test $ac_cv_os_cray = yes; then
4025 for ac_func
in _getb67 GETB67 getb67
; do
4026 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4027 echo "configure:4028: checking for $ac_func" >&5
4028 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4029 echo $ac_n "(cached) $ac_c" 1>&6
4031 cat > conftest.
$ac_ext <<EOF
4032 #line 4033 "configure"
4033 #include "confdefs.h"
4034 /* System header to define __stub macros and hopefully few prototypes,
4035 which can conflict with char $ac_func(); below. */
4037 /* Override any gcc2 internal prototype to avoid an error. */
4038 /* We use char because int might match the return type of a gcc2
4039 builtin and then its argument prototype would still apply. */
4044 /* The GNU C library defines this for functions which it implements
4045 to always fail with ENOSYS. Some functions are actually named
4046 something starting with __ and the normal name is an alias. */
4047 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4055 if { (eval echo configure
:4056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4057 eval "ac_cv_func_$ac_func=yes"
4059 echo "configure: failed program was:" >&5
4060 cat conftest.
$ac_ext >&5
4062 eval "ac_cv_func_$ac_func=no"
4067 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4068 echo "$ac_t""yes" 1>&6
4069 cat >> confdefs.h
<<EOF
4070 #define CRAY_STACKSEG_END $ac_func
4075 echo "$ac_t""no" 1>&6
4081 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4082 echo "configure:4083: checking stack direction for C alloca" >&5
4083 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4084 echo $ac_n "(cached) $ac_c" 1>&6
4086 if test "$cross_compiling" = yes; then
4087 ac_cv_c_stack_direction
=0
4089 cat > conftest.
$ac_ext <<EOF
4090 #line 4091 "configure"
4091 #include "confdefs.h"
4092 find_stack_direction ()
4094 static char *addr = 0;
4099 return find_stack_direction ();
4102 return (&dummy > addr) ? 1 : -1;
4106 exit (find_stack_direction() < 0);
4109 if { (eval echo configure
:4110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4111 ac_cv_c_stack_direction
=1
4113 echo "configure: failed program was:" >&5
4114 cat conftest.
$ac_ext >&5
4116 ac_cv_c_stack_direction
=-1
4123 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4124 cat >> confdefs.h
<<EOF
4125 #define STACK_DIRECTION $ac_cv_c_stack_direction
4130 if test "$ALLOCA" = "alloca.o"; then LIBOBJS
="alloca.o $LIBOBJS"; fi
4132 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
4133 echo "configure:4134: checking for st_rdev in struct stat" >&5
4134 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
4135 echo $ac_n "(cached) $ac_c" 1>&6
4137 cat > conftest.
$ac_ext <<EOF
4138 #line 4139 "configure"
4139 #include "confdefs.h"
4140 #include <sys/types.h>
4141 #include <sys/stat.h>
4143 struct stat s; s.st_rdev;
4146 if { (eval echo configure
:4147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4148 ac_cv_struct_st_rdev
=yes
4150 echo "configure: failed program was:" >&5
4151 cat conftest.
$ac_ext >&5
4153 ac_cv_struct_st_rdev
=no
4158 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
4159 if test $ac_cv_struct_st_rdev = yes; then
4160 cat >> confdefs.h
<<\EOF
4161 #define HAVE_ST_RDEV 1
4166 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
4167 echo "configure:4168: checking for st_blksize in struct stat" >&5
4168 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
4169 echo $ac_n "(cached) $ac_c" 1>&6
4171 cat > conftest.
$ac_ext <<EOF
4172 #line 4173 "configure"
4173 #include "confdefs.h"
4174 #include <sys/types.h>
4175 #include <sys/stat.h>
4177 struct stat s; s.st_blksize;
4180 if { (eval echo configure
:4181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4182 ac_cv_struct_st_blksize
=yes
4184 echo "configure: failed program was:" >&5
4185 cat conftest.
$ac_ext >&5
4187 ac_cv_struct_st_blksize
=no
4192 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
4193 if test $ac_cv_struct_st_blksize = yes; then
4194 cat >> confdefs.h
<<\EOF
4195 #define HAVE_ST_BLKSIZE 1
4201 # We could use AC_STRUCT_ST_BLOCKS here, but that adds fileblocks.o to
4202 # LIBOBJS, which we don't need. This seems more direct.
4203 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
4204 echo "configure:4205: checking for st_blocks in struct stat" >&5
4205 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
4206 echo $ac_n "(cached) $ac_c" 1>&6
4208 cat > conftest.
$ac_ext <<EOF
4209 #line 4210 "configure"
4210 #include "confdefs.h"
4211 #include <sys/types.h>
4212 #include <sys/stat.h>
4214 struct stat s; s.st_blocks;
4217 if { (eval echo configure
:4218: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4219 ac_cv_struct_st_blocks
=yes
4221 echo "configure: failed program was:" >&5
4222 cat conftest.
$ac_ext >&5
4224 ac_cv_struct_st_blocks
=no
4229 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
4230 if test $ac_cv_struct_st_blocks = yes; then
4231 cat >> confdefs.h
<<\EOF
4232 #define HAVE_ST_BLOCKS 1
4237 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4238 echo "configure:4239: checking whether struct tm is in sys/time.h or time.h" >&5
4239 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
4240 echo $ac_n "(cached) $ac_c" 1>&6
4242 cat > conftest.
$ac_ext <<EOF
4243 #line 4244 "configure"
4244 #include "confdefs.h"
4245 #include <sys/types.h>
4248 struct tm *tp; tp->tm_sec;
4251 if { (eval echo configure
:4252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4253 ac_cv_struct_tm
=time.h
4255 echo "configure: failed program was:" >&5
4256 cat conftest.
$ac_ext >&5
4258 ac_cv_struct_tm
=sys
/time.h
4263 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4264 if test $ac_cv_struct_tm = sys
/time.h
; then
4265 cat >> confdefs.h
<<\EOF
4266 #define TM_IN_SYS_TIME 1
4271 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4272 echo "configure:4273: checking for tm_zone in struct tm" >&5
4273 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
4274 echo $ac_n "(cached) $ac_c" 1>&6
4276 cat > conftest.
$ac_ext <<EOF
4277 #line 4278 "configure"
4278 #include "confdefs.h"
4279 #include <sys/types.h>
4280 #include <$ac_cv_struct_tm>
4282 struct tm tm; tm.tm_zone;
4285 if { (eval echo configure
:4286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4287 ac_cv_struct_tm_zone
=yes
4289 echo "configure: failed program was:" >&5
4290 cat conftest.
$ac_ext >&5
4292 ac_cv_struct_tm_zone
=no
4297 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4298 if test "$ac_cv_struct_tm_zone" = yes; then
4299 cat >> confdefs.h
<<\EOF
4300 #define HAVE_TM_ZONE 1
4304 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4305 echo "configure:4306: checking for tzname" >&5
4306 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
4307 echo $ac_n "(cached) $ac_c" 1>&6
4309 cat > conftest.
$ac_ext <<EOF
4310 #line 4311 "configure"
4311 #include "confdefs.h"
4313 #ifndef tzname /* For SGI. */
4314 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4320 if { (eval echo configure
:4321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4322 ac_cv_var_tzname
=yes
4324 echo "configure: failed program was:" >&5
4325 cat conftest.
$ac_ext >&5
4332 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4333 if test $ac_cv_var_tzname = yes; then
4334 cat >> confdefs.h
<<\EOF
4335 #define HAVE_TZNAME 1
4342 echo $ac_n "checking whether we need POSIX to get struct utimbuf""... $ac_c" 1>&6
4343 echo "configure:4344: checking whether we need POSIX to get struct utimbuf" >&5
4344 if eval "test \"`echo '$''{'guile_cv_struct_utimbuf_needs_posix'+set}'`\" = set"; then
4345 echo $ac_n "(cached) $ac_c" 1>&6
4347 cat > conftest.
$ac_ext <<EOF
4348 #line 4349 "configure"
4349 #include "confdefs.h"
4352 #include <sys/utime.h>
4359 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4360 { (eval echo configure
:4361: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4361 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4362 if test -z "$ac_err"; then
4364 guile_cv_struct_utimbuf_needs_posix
=no
4367 echo "configure: failed program was:" >&5
4368 cat conftest.
$ac_ext >&5
4370 guile_cv_struct_utimbuf_needs_posix
=yes
4375 echo "$ac_t""$guile_cv_struct_utimbuf_needs_posix" 1>&6
4376 if test "$guile_cv_struct_utimbuf_needs_posix" = yes; then
4377 cat >> confdefs.h
<<\EOF
4378 #define UTIMBUF_NEEDS_POSIX 1
4383 #--------------------------------------------------------------------
4385 # Which way does the stack grow?
4387 #--------------------------------------------------------------------
4389 if test "$cross_compiling" = yes; then
4390 echo "configure: warning: Guessing that stack grows down -- see scmconfig.h.in" 1>&2
4392 cat > conftest.
$ac_ext <<EOF
4393 #line 4394 "configure"
4394 #include "confdefs.h"
4395 aux (l) unsigned long l;
4396 { int x; exit (l >= ((unsigned long)&x)); }
4397 main () { int q; aux((unsigned long)&q); }
4399 if { (eval echo configure
:4400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4401 cat >> confdefs.h
<<\EOF
4402 #define SCM_STACK_GROWS_UP 1
4406 echo "configure: failed program was:" >&5
4407 cat conftest.
$ac_ext >&5
4413 echo $ac_n "checking whether floats fit in longs""... $ac_c" 1>&6
4414 echo "configure:4415: checking whether floats fit in longs" >&5
4415 if eval "test \"`echo '$''{'guile_cv_type_float_fits_long'+set}'`\" = set"; then
4416 echo $ac_n "(cached) $ac_c" 1>&6
4418 if test "$cross_compiling" = yes; then
4419 guile_cv_type_float_fits_long
=guess-yes
4421 cat > conftest.
$ac_ext <<EOF
4422 #line 4423 "configure"
4423 #include "confdefs.h"
4424 main () { exit (sizeof(float) > sizeof(long)); }
4426 if { (eval echo configure
:4427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4428 guile_cv_type_float_fits_long
=yes
4430 echo "configure: failed program was:" >&5
4431 cat conftest.
$ac_ext >&5
4433 guile_cv_type_float_fits_long
=no
4440 echo "$ac_t""$guile_cv_type_float_fits_long" 1>&6
4441 case $guile_cv_type_float_fits_long in
4443 cat >> confdefs.h
<<\EOF
4444 #define SCM_SINGLES 1
4449 cat >> confdefs.h
<<\EOF
4450 #define SCM_SINGLES 1
4453 echo "configure: warning: guessing that sizeof(long) == sizeof(float)" 1>&2
4454 echo "configure: warning: see SCM_SINGLES in scmconfig.h.in" 1>&2
4459 echo $ac_n "checking for struct linger""... $ac_c" 1>&6
4460 echo "configure:4461: checking for struct linger" >&5
4461 if eval "test \"`echo '$''{'scm_cv_struct_linger'+set}'`\" = set"; then
4462 echo $ac_n "(cached) $ac_c" 1>&6
4464 cat > conftest.
$ac_ext <<EOF
4465 #line 4466 "configure"
4466 #include "confdefs.h"
4468 #include <sys/types.h>
4469 #include <sys/socket.h>
4471 struct linger lgr; lgr.l_linger = 100
4474 if { (eval echo configure
:4475: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4476 scm_cv_struct_linger
="yes"
4478 echo "configure: failed program was:" >&5
4479 cat conftest.
$ac_ext >&5
4481 scm_cv_struct_linger
="no"
4486 echo "$ac_t""$scm_cv_struct_linger" 1>&6
4487 if test $scm_cv_struct_linger = yes; then
4488 cat >> confdefs.h
<<\EOF
4489 #define HAVE_STRUCT_LINGER 1
4494 #--------------------------------------------------------------------
4496 # How can you violate a stdio abstraction by setting a stream's fd?
4498 #--------------------------------------------------------------------
4502 #--------------------------------------------------------------------
4503 # How to find out whether a FILE structure contains buffered data.
4504 # From Tk we have the following list:
4505 # _cnt: Most UNIX systems
4506 # __cnt: HPUX and SCO
4509 # Or, in GNU libc there are two fields, _gptr and _egptr, which
4510 # have to be compared.
4511 # These can also be known as _IO_read_ptr and _IO_read_end.
4512 #--------------------------------------------------------------------
4515 #--------------------------------------------------------------------
4517 # Flags for thread support
4519 #--------------------------------------------------------------------
4521 ### What thread package has the user asked for?
4522 # Check whether --with-threads or --without-threads was given.
4523 if test "${with_threads+set}" = set; then
4524 withval
="$with_threads"
4531 ### Turn $with_threads into either the name of a threads package, like
4532 ### `qt', or `no', meaning that threads should not be supported.
4533 echo $ac_n "checking whether to support threads""... $ac_c" 1>&6
4534 echo "configure:4535: checking whether to support threads" >&5
4535 case "$with_threads" in
4536 "yes" |
"qt" |
"coop" |
"")
4542 { echo "configure: error: invalid value for --with-threads: $with_threads" 1>&2; exit 1; }
4545 echo "$ac_t""$with_threads" 1>&6
4547 ## Make sure the threads package we've chosen is actually supported on
4548 ## the present platform.
4549 case "${with_threads}" in
4551 ## This configures the QuickThreads package, and sets or clears
4552 ## the THREAD_PACKAGE variable if qthreads don't configure
4557 echo $ac_n "checking QuickThreads configuration""... $ac_c" 1>&6
4558 echo "configure:4559: checking QuickThreads configuration" >&5
4559 # How can we refer to the qt source directory from within the qt build
4560 # directory? For headers, we can rely on the fact that the qt src
4561 # directory appears in the #include path.
4562 qtsrcdir
="`(cd $srcdir; pwd)`/qt"
4576 ## NetBSD needs to be told to pass the assembly code through
4577 ## the C preprocessor. Other GCC installations seem to do
4578 ## this by default, but NetBSD's doesn't. We could get the
4579 ## same effect by giving the file a name ending with .S
4580 ## instead of .s, but I don't see how to tell automake to do
4582 qthread_asflags
='-x assembler-with-cpp'
4589 qtmds_s
=md
/mips-irix5.s
4591 qtdmdb_s
=md
/mips_b.s
4598 qtdmdb_s
=md
/mips_b.s
4601 port_name
=sparc-sunos
4605 qtdmdb_s
=md
/_sparc_b.s
4612 qtdmdb_s
=md
/sparc_b.s
4622 echo "Unknown configuration; threads package disabled"
4628 # Did configuration succeed?
4629 if test -n "$THREAD_PACKAGE"; then
4630 echo "$ac_t""$port_name" 1>&6
4631 QTHREAD_LTLIBS
=libqthreads.la
4632 THREAD_CPPFLAGS
="-I$qtsrcdir -I../qt"
4633 THREAD_LIBS_LOCAL
="../qt/libqthreads.la"
4634 THREAD_LIBS_INSTALLED
="-lqthreads"
4636 echo "$ac_t""none; disabled" 1>&6
4653 ## If we're using threads, bring in some other parts of Guile which
4655 if test "${THREAD_PACKAGE}" != "" ; then
4656 cat >> confdefs.h
<<\EOF
4657 #define USE_THREADS 1
4661 ## Include the Guile thread interface in the library...
4662 LIBOBJS
="$LIBOBJS threads.o"
4664 ## ... and tell it which package to talk to.
4665 case "${THREAD_PACKAGE}" in
4667 cat >> confdefs.h
<<\EOF
4668 #define USE_COOP_THREADS 1
4673 { echo "configure: error: invalid value for THREAD_PACKAGE: ${THREAD_PACKAGE}" 1>&2; exit 1; }
4677 ## Bring in scm_internal_select, if appropriate.
4678 if test $ac_cv_func_gettimeofday = yes &&
4679 test $ac_cv_func_select = yes; then
4680 LIBOBJS
="$LIBOBJS iselect.o"
4681 cat >> confdefs.h
<<\EOF
4682 #define GUILE_ISELECT 1
4689 ## If we're using GCC, ask for aggressive warnings.
4692 ## We had -Wstrict-prototypes in here for a bit, but Guile does too
4693 ## much stuff with generic function pointers for that to really be
4694 ## less than exasperating.
4695 CFLAGS
="$CFLAGS -Wall -Wpointer-arith -Wmissing-prototypes" ;;
4698 for ac_prog
in mawk gawk nawk
awk
4700 # Extract the first word of "$ac_prog", so it can be a program name with args.
4701 set dummy
$ac_prog; ac_word
=$2
4702 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4703 echo "configure:4704: checking for $ac_word" >&5
4704 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
4705 echo $ac_n "(cached) $ac_c" 1>&6
4707 if test -n "$AWK"; then
4708 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4710 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4712 for ac_dir
in $ac_dummy; do
4713 test -z "$ac_dir" && ac_dir
=.
4714 if test -f $ac_dir/$ac_word; then
4715 ac_cv_prog_AWK
="$ac_prog"
4722 AWK
="$ac_cv_prog_AWK"
4723 if test -n "$AWK"; then
4724 echo "$ac_t""$AWK" 1>&6
4726 echo "$ac_t""no" 1>&6
4729 test -n "$AWK" && break
4733 ## If we're creating a shared library (using libtool!), then we'll
4734 ## need to generate a list of .lo files corresponding to the .o files
4735 ## given in LIBOBJS. We'll call it LIBLOBJS.
4736 LIBLOBJS
="`echo ${LIBOBJS} | sed 's/\.o/.lo/g'`"
4742 GUILE_LIBS
="$LDFLAGS $THREAD_LIBS_INSTALLED $LIBS"
4745 GUILE_STAMP
="`date`"
4752 cat > confcache
<<\EOF
4753 # This file is a shell script that caches the results of configure
4754 # tests run on this system so they can be shared between configure
4755 # scripts and configure runs. It is not useful on other systems.
4756 # If it contains results you don't want to keep, you may remove or edit it.
4758 # By default, configure uses ./config.cache as the cache file,
4759 # creating it if it does not exist already. You can give configure
4760 # the --cache-file=FILE option to use a different cache file; that is
4761 # what configure does when it calls configure scripts in
4762 # subdirectories, so they share the cache.
4763 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4764 # config.status only pays attention to the cache file if you give it the
4765 # --recheck option to rerun configure.
4768 # The following way of writing the cache mishandles newlines in values,
4769 # but we know of no workaround that is simple, portable, and efficient.
4770 # So, don't put newlines in cache variables' values.
4771 # Ultrix sh set writes to stderr and can't be redirected directly,
4772 # and sets the high bit in the cache file unless we assign to the vars.
4774 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4776 # `set' does not quote correctly, so add quotes (double-quote substitution
4777 # turns \\\\ into \\, and sed turns \\ into \).
4779 -e "s/'/'\\\\''/g" \
4780 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4783 # `set' quotes correctly as required by POSIX, so do not add quotes.
4784 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4787 if cmp -s $cache_file confcache
; then
4790 if test -w $cache_file; then
4791 echo "updating cache $cache_file"
4792 cat confcache
> $cache_file
4794 echo "not updating unwritable cache $cache_file"
4799 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4801 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4802 # Let make expand exec_prefix.
4803 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4805 # Any assignment to VPATH causes Sun make to only execute
4806 # the first set of double-colon rules, so remove it if not needed.
4807 # If there is a colon in the path, we need to keep it.
4808 if test "x$srcdir" = x.
; then
4809 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
4812 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4814 DEFS
=-DHAVE_CONFIG_H
4816 # Without the "./", some shells look in PATH for config.status.
4817 : ${CONFIG_STATUS=./config.status}
4819 echo creating
$CONFIG_STATUS
4820 rm -f $CONFIG_STATUS
4821 cat > $CONFIG_STATUS <<EOF
4823 # Generated automatically by configure.
4824 # Run this file to recreate the current configuration.
4825 # This directory was configured as follows,
4826 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4828 # $0 $ac_configure_args
4830 # Compiler output produced by configure, useful for debugging
4831 # configure, is in ./config.log if it exists.
4833 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4836 case "\$ac_option" in
4837 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4838 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4839 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4840 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4841 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4843 -help | --help | --hel | --he | --h)
4844 echo "\$ac_cs_usage"; exit 0 ;;
4845 *) echo "\$ac_cs_usage"; exit 1 ;;
4849 ac_given_srcdir=$srcdir
4850 ac_given_INSTALL="$INSTALL"
4852 trap 'rm -fr `echo "Makefile libguile/Makefile libguile/guile-snarf libguile/versiondat.h ice-9/Makefile ice-9/version.scm qt/Makefile qt/qt.h qt/md/Makefile qt/time/Makefile guile-config/Makefile doc/Makefile libguile/scmconfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4854 cat >> $CONFIG_STATUS <<EOF
4856 # Protect against being on the right side of a sed subst in config.status.
4857 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4858 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4862 s%@CFLAGS@%$CFLAGS%g
4863 s%@CPPFLAGS@%$CPPFLAGS%g
4864 s%@CXXFLAGS@%$CXXFLAGS%g
4865 s%@FFLAGS@%$FFLAGS%g
4867 s%@LDFLAGS@%$LDFLAGS%g
4869 s%@exec_prefix@%$exec_prefix%g
4870 s%@prefix@%$prefix%g
4871 s%@program_transform_name@%$program_transform_name%g
4872 s%@bindir@%$bindir%g
4873 s%@sbindir@%$sbindir%g
4874 s%@libexecdir@%$libexecdir%g
4875 s%@datadir@%$datadir%g
4876 s%@sysconfdir@%$sysconfdir%g
4877 s%@sharedstatedir@%$sharedstatedir%g
4878 s%@localstatedir@%$localstatedir%g
4879 s%@libdir@%$libdir%g
4880 s%@includedir@%$includedir%g
4881 s%@oldincludedir@%$oldincludedir%g
4882 s%@infodir@%$infodir%g
4883 s%@mandir@%$mandir%g
4884 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4885 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4886 s%@INSTALL_DATA@%$INSTALL_DATA%g
4887 s%@PACKAGE@%$PACKAGE%g
4888 s%@VERSION@%$VERSION%g
4889 s%@ACLOCAL@%$ACLOCAL%g
4890 s%@AUTOCONF@%$AUTOCONF%g
4891 s%@AUTOMAKE@%$AUTOMAKE%g
4892 s%@AUTOHEADER@%$AUTOHEADER%g
4893 s%@MAKEINFO@%$MAKEINFO%g
4894 s%@SET_MAKE@%$SET_MAKE%g
4895 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
4896 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
4898 s%@subdirs@%$subdirs%g
4902 s%@host_alias@%$host_alias%g
4903 s%@host_cpu@%$host_cpu%g
4904 s%@host_vendor@%$host_vendor%g
4905 s%@host_os@%$host_os%g
4907 s%@build_alias@%$build_alias%g
4908 s%@build_cpu@%$build_cpu%g
4909 s%@build_vendor@%$build_vendor%g
4910 s%@build_os@%$build_os%g
4911 s%@RANLIB@%$RANLIB%g
4915 s%@LIBTOOL@%$LIBTOOL%g
4916 s%@LIBOBJS@%$LIBOBJS%g
4917 s%@ALLOCA@%$ALLOCA%g
4918 s%@QTHREAD_LTLIBS@%$QTHREAD_LTLIBS%g
4919 s%@qtmd_h@%$qtmd_h%g
4920 s%@qtmds_s@%$qtmds_s%g
4921 s%@qtmdc_c@%$qtmdc_c%g
4922 s%@qtdmdb_s@%$qtdmdb_s%g
4923 s%@qthread_asflags@%$qthread_asflags%g
4924 s%@THREAD_PACKAGE@%$THREAD_PACKAGE%g
4925 s%@THREAD_CPPFLAGS@%$THREAD_CPPFLAGS%g
4926 s%@THREAD_LIBS_LOCAL@%$THREAD_LIBS_LOCAL%g
4927 s%@THREAD_LIBS_INSTALLED@%$THREAD_LIBS_INSTALLED%g
4929 s%@GUILE_MAJOR_VERSION@%$GUILE_MAJOR_VERSION%g
4930 s%@GUILE_MINOR_VERSION@%$GUILE_MINOR_VERSION%g
4931 s%@GUILE_VERSION@%$GUILE_VERSION%g
4932 s%@GUILE_LIBS@%$GUILE_LIBS%g
4933 s%@GUILE_STAMP@%$GUILE_STAMP%g
4934 s%@LIBLOBJS@%$LIBLOBJS%g
4939 cat >> $CONFIG_STATUS <<\EOF
4941 # Split the substitutions into bite-sized pieces for seds with
4942 # small command number limits, like on Digital OSF/1 and HP-UX.
4943 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
4944 ac_file
=1 # Number of current file.
4945 ac_beg
=1 # First line for current file.
4946 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
4949 while $ac_more_lines; do
4950 if test $ac_beg -gt 1; then
4951 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
4953 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
4955 if test ! -s conftest.s
$ac_file; then
4957 rm -f conftest.s
$ac_file
4959 if test -z "$ac_sed_cmds"; then
4960 ac_sed_cmds
="sed -f conftest.s$ac_file"
4962 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
4964 ac_file
=`expr $ac_file + 1`
4966 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
4969 if test -z "$ac_sed_cmds"; then
4974 cat >> $CONFIG_STATUS <<EOF
4976 CONFIG_FILES=\${CONFIG_FILES-"Makefile libguile/Makefile libguile/guile-snarf libguile/versiondat.h ice-9/Makefile ice-9/version.scm qt/Makefile qt/qt.h qt/md/Makefile qt/time/Makefile guile-config/Makefile doc/Makefile"}
4978 cat >> $CONFIG_STATUS <<\EOF
4979 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
4980 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4982 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4983 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4984 *) ac_file_in
="${ac_file}.in" ;;
4987 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4989 # Remove last slash and all that follows it. Not all systems have dirname.
4990 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4991 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
4992 # The file is in a subdirectory.
4993 test ! -d "$ac_dir" && mkdir
"$ac_dir"
4994 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
4995 # A "../" for each directory in $ac_dir_suffix.
4996 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4998 ac_dir_suffix
= ac_dots
=
5001 case "$ac_given_srcdir" in
5003 if test -z "$ac_dots"; then top_srcdir
=.
5004 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5005 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5007 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5008 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5011 case "$ac_given_INSTALL" in
5012 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5013 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5016 echo creating
"$ac_file"
5018 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5020 *Makefile
*) ac_comsub
="1i\\
5021 # $configure_input" ;;
5025 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5027 s%@configure_input@%$configure_input%g
5028 s%@srcdir@%$srcdir%g
5029 s%@top_srcdir@%$top_srcdir%g
5030 s%@INSTALL@%$INSTALL%g
5031 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5035 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5036 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5038 # ac_d sets the value in "#define NAME VALUE" lines.
5039 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5040 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5043 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5044 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5045 ac_uB
='\([ ]\)%\1#\2define\3'
5048 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5049 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5050 ac_eB
='$%\1#\2define\3'
5054 if test "${CONFIG_HEADERS+set}" != set; then
5056 cat >> $CONFIG_STATUS <<EOF
5057 CONFIG_HEADERS="libguile/scmconfig.h"
5059 cat >> $CONFIG_STATUS <<\EOF
5061 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5062 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5064 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5065 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5066 *) ac_file_in
="${ac_file}.in" ;;
5069 echo creating
$ac_file
5071 rm -f conftest.frag conftest.
in conftest.out
5072 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5073 cat $ac_file_inputs > conftest.
in
5077 # Transform confdefs.h into a sed script conftest.vals that substitutes
5078 # the proper values into config.h.in to produce config.h. And first:
5079 # Protect against being on the right side of a sed subst in config.status.
5080 # Protect against being in an unquoted here document in config.status.
5082 cat > conftest.hdr
<<\EOF
5085 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5089 sed -n -f conftest.hdr confdefs.h > conftest.vals
5092 # This sed command replaces #undef with comments. This is necessary, for
5093 # example, in the case of _POSIX_SOURCE, which is predefined and required
5094 # on some systems where configure will not decide to define it.
5095 cat >> conftest.vals <<\EOF
5096 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5099 # Break up conftest.vals because some shells have a limit on
5100 # the size of here documents, and old seds have small limits too.
5105 ac_lines=`grep -c . conftest.vals
`
5106 # grep -c gives empty output for an empty file on some AIX systems.
5107 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5108 # Write a limited-size here document to conftest.frag.
5109 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5110 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5112 sed -f conftest.frag conftest.in > conftest.out
5114 mv conftest.out conftest.in
5116 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5118 mv conftest.tail conftest.vals
5122 cat >> $CONFIG_STATUS <<\EOF
5123 rm -f conftest.frag conftest.h
5124 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5125 cat conftest.in >> conftest.h
5127 if cmp -s $ac_file conftest.h 2>/dev/null; then
5128 echo "$ac_file is unchanged"
5131 # Remove last slash and all that follows it. Not all systems have dirname.
5132 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5133 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5134 # The file is in a subdirectory.
5135 test ! -d "$ac_dir" && mkdir "$ac_dir"
5138 mv conftest.h $ac_file
5143 cat >> $CONFIG_STATUS <<EOF
5147 cat >> $CONFIG_STATUS <<\EOF
5148 test -z "$CONFIG_HEADERS" || echo timestamp > libguile/stamp-h
5149 chmod +x libguile/guile-snarf
5152 chmod +x $CONFIG_STATUS
5153 rm -fr confdefs* $ac_clean_files
5154 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5156 if test "$no_recursion" != yes; then
5158 # Remove --cache-file and --srcdir arguments so they do not pile up.
5159 ac_sub_configure_args=
5161 for ac_arg in $ac_configure_args; do
5162 if test -n "$ac_prev"; then
5167 -cache-file | --cache-file | --cache-fil | --cache-fi \
5168 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
5169 ac_prev=cache_file ;;
5170 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
5171 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
5173 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
5175 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5177 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
5181 for ac_config_dir in guile-readline; do
5183 # Do not complain, so a configure script can configure whichever
5184 # parts of a large source tree are present.
5185 if test ! -d $srcdir/$ac_config_dir; then
5189 echo configuring in $ac_config_dir
5194 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
5196 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
5204 # A "../" for each directory in /$ac_config_dir.
5205 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
5208 .) # No --srcdir option. We are building in place.
5209 ac_sub_srcdir=$srcdir ;;
5210 /*) # Absolute path.
5211 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
5213 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
5216 # Check for guested configure; otherwise get Cygnus style configure.
5217 if test -f $ac_sub_srcdir/configure; then
5218 ac_sub_configure=$ac_sub_srcdir/configure
5219 elif test -f $ac_sub_srcdir/configure.in; then
5220 ac_sub_configure=$ac_configure
5222 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
5226 # The recursion is here.
5227 if test -n "$ac_sub_configure"; then
5229 # Make the cache file name correct relative to the subdirectory.
5230 case "$cache_file" in
5231 /*) ac_sub_cache_file=$cache_file ;;
5233 ac_sub_cache_file="$ac_dots$cache_file" ;;
5235 case "$ac_given_INSTALL" in
5236 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5237 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5240 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
5241 # The eval makes quoting arguments work.
5242 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
5245 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }