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 --disable-posix omit posix interfaces"
24 --disable-net omit networking interfaces"
26 --disable-regex omit regular expression interfaces"
28 --enable-shared[=PKGS] build shared libraries [default=yes]"
30 --enable-static[=PKGS] build static libraries [default=yes]"
32 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
34 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
36 --disable-libtool-lock avoid locking (might break parallel builds)"
38 --with-threads thread interface"
40 # Initialize some variables set by options.
41 # The variables have the same names as the options, with
42 # dashes changed to underlines.
44 cache_file
=.
/config.cache
53 program_transform_name
=s
,x
,x
,
61 bindir
='${exec_prefix}/bin'
62 sbindir
='${exec_prefix}/sbin'
63 libexecdir
='${exec_prefix}/libexec'
64 datadir
='${prefix}/share'
65 sysconfdir
='${prefix}/etc'
66 sharedstatedir
='${prefix}/com'
67 localstatedir
='${prefix}/var'
68 libdir
='${exec_prefix}/lib'
69 includedir
='${prefix}/include'
70 oldincludedir
='/usr/include'
71 infodir
='${prefix}/info'
72 mandir
='${prefix}/man'
74 # Initialize some other variables.
77 SHELL
=${CONFIG_SHELL-/bin/sh}
78 # Maximum number of lines to put in a shell here document.
85 # If the previous option needs an argument, assign it.
86 if test -n "$ac_prev"; then
87 eval "$ac_prev=\$ac_option"
93 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
97 # Accept the important Cygnus configure options, so we can diagnose typos.
101 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
103 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
104 bindir
="$ac_optarg" ;;
106 -build |
--build |
--buil |
--bui |
--bu)
108 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
109 build
="$ac_optarg" ;;
111 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
112 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
113 ac_prev
=cache_file
;;
114 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
115 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
116 cache_file
="$ac_optarg" ;;
118 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
120 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
122 datadir
="$ac_optarg" ;;
124 -disable-* |
--disable-*)
125 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
126 # Reject names that are not valid shell variable names.
127 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
128 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
130 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
131 eval "enable_${ac_feature}=no" ;;
133 -enable-* |
--enable-*)
134 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
135 # Reject names that are not valid shell variable names.
136 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
137 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
139 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
144 eval "enable_${ac_feature}='$ac_optarg'" ;;
146 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
147 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
148 |
--exec |
--exe |
--ex)
149 ac_prev
=exec_prefix
;;
150 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
151 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
152 |
--exec=* |
--exe=* |
--ex=*)
153 exec_prefix
="$ac_optarg" ;;
155 -gas |
--gas |
--ga |
--g)
156 # Obsolete; use --with-gas.
159 -help |
--help |
--hel |
--he)
160 # Omit some internal or obsolete options to make the list less imposing.
161 # This message is too long to be a string in the A/UX 3.1 sh.
163 Usage: configure [options] [host]
164 Options: [defaults in brackets after descriptions]
166 --cache-file=FILE cache test results in FILE
167 --help print this message
168 --no-create do not create output files
169 --quiet, --silent do not print \`checking...' messages
170 --version print the version of autoconf that created configure
171 Directory and file names:
172 --prefix=PREFIX install architecture-independent files in PREFIX
174 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
176 --bindir=DIR user executables in DIR [EPREFIX/bin]
177 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
178 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
179 --datadir=DIR read-only architecture-independent data in DIR
181 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
182 --sharedstatedir=DIR modifiable architecture-independent data in DIR
184 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
185 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
186 --includedir=DIR C header files in DIR [PREFIX/include]
187 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
188 --infodir=DIR info documentation in DIR [PREFIX/info]
189 --mandir=DIR man documentation in DIR [PREFIX/man]
190 --srcdir=DIR find the sources in DIR [configure dir or ..]
191 --program-prefix=PREFIX prepend PREFIX to installed program names
192 --program-suffix=SUFFIX append SUFFIX to installed program names
193 --program-transform-name=PROGRAM
194 run sed PROGRAM on installed program names
198 --build=BUILD configure for building on BUILD [BUILD=HOST]
199 --host=HOST configure for HOST [guessed]
200 --target=TARGET configure for TARGET [TARGET=HOST]
201 Features and packages:
202 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
203 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
204 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
205 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
206 --x-includes=DIR X include files are in DIR
207 --x-libraries=DIR X library files are in DIR
209 if test -n "$ac_help"; then
210 echo "--enable and --with options recognized:$ac_help"
214 -host |
--host |
--hos |
--ho)
216 -host=* |
--host=* |
--hos=* |
--ho=*)
219 -includedir |
--includedir |
--includedi |
--included |
--include \
220 |
--includ |
--inclu |
--incl |
--inc)
221 ac_prev
=includedir
;;
222 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
223 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
224 includedir
="$ac_optarg" ;;
226 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
228 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
229 infodir
="$ac_optarg" ;;
231 -libdir |
--libdir |
--libdi |
--libd)
233 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
234 libdir
="$ac_optarg" ;;
236 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
237 |
--libexe |
--libex |
--libe)
238 ac_prev
=libexecdir
;;
239 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
240 |
--libexe=* |
--libex=* |
--libe=*)
241 libexecdir
="$ac_optarg" ;;
243 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
244 |
--localstate |
--localstat |
--localsta |
--localst \
245 |
--locals |
--local |
--loca |
--loc |
--lo)
246 ac_prev
=localstatedir
;;
247 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
248 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
249 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
250 localstatedir
="$ac_optarg" ;;
252 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
254 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
255 mandir
="$ac_optarg" ;;
258 # Obsolete; use --without-fp.
261 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
265 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
266 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
269 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
270 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
271 |
--oldin |
--oldi |
--old |
--ol |
--o)
272 ac_prev
=oldincludedir
;;
273 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
274 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
275 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
276 oldincludedir
="$ac_optarg" ;;
278 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
280 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
281 prefix
="$ac_optarg" ;;
283 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
284 |
--program-pre |
--program-pr |
--program-p)
285 ac_prev
=program_prefix
;;
286 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
287 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
288 program_prefix
="$ac_optarg" ;;
290 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
291 |
--program-suf |
--program-su |
--program-s)
292 ac_prev
=program_suffix
;;
293 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
294 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
295 program_suffix
="$ac_optarg" ;;
297 -program-transform-name |
--program-transform-name \
298 |
--program-transform-nam |
--program-transform-na \
299 |
--program-transform-n |
--program-transform- \
300 |
--program-transform |
--program-transfor \
301 |
--program-transfo |
--program-transf \
302 |
--program-trans |
--program-tran \
303 |
--progr-tra |
--program-tr |
--program-t)
304 ac_prev
=program_transform_name
;;
305 -program-transform-name=* |
--program-transform-name=* \
306 |
--program-transform-nam=* |
--program-transform-na=* \
307 |
--program-transform-n=* |
--program-transform-=* \
308 |
--program-transform=* |
--program-transfor=* \
309 |
--program-transfo=* |
--program-transf=* \
310 |
--program-trans=* |
--program-tran=* \
311 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
312 program_transform_name
="$ac_optarg" ;;
314 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
315 |
-silent |
--silent |
--silen |
--sile |
--sil)
318 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
320 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
322 sbindir
="$ac_optarg" ;;
324 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
325 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
326 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
328 ac_prev
=sharedstatedir
;;
329 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
330 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
331 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
333 sharedstatedir
="$ac_optarg" ;;
335 -site |
--site |
--sit)
337 -site=* |
--site=* |
--sit=*)
340 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
342 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
343 srcdir
="$ac_optarg" ;;
345 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
346 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
347 ac_prev
=sysconfdir
;;
348 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
349 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
350 sysconfdir
="$ac_optarg" ;;
352 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
354 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
355 target
="$ac_optarg" ;;
357 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
360 -version |
--version |
--versio |
--versi |
--vers)
361 echo "configure generated by autoconf version 2.13"
365 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
366 # Reject names that are not valid shell variable names.
367 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
368 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
370 ac_package
=`echo $ac_package| sed 's/-/_/g'`
375 eval "with_${ac_package}='$ac_optarg'" ;;
377 -without-* |
--without-*)
378 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
379 # Reject names that are not valid shell variable names.
380 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
381 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
383 ac_package
=`echo $ac_package| sed 's/-/_/g'`
384 eval "with_${ac_package}=no" ;;
387 # Obsolete; use --with-x.
390 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
391 |
--x-incl |
--x-inc |
--x-in |
--x-i)
392 ac_prev
=x_includes
;;
393 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
394 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
395 x_includes
="$ac_optarg" ;;
397 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
398 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
399 ac_prev
=x_libraries
;;
400 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
401 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
402 x_libraries
="$ac_optarg" ;;
404 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
408 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
409 echo "configure: warning: $ac_option: invalid host type" 1>&2
411 if test "x$nonopt" != xNONE
; then
412 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
420 if test -n "$ac_prev"; then
421 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
424 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
426 # File descriptor usage:
429 # 2 errors and warnings
430 # 3 some systems may open it to /dev/tty
431 # 4 used on the Kubota Titan
432 # 6 checking for... messages and results
433 # 5 compiler messages saved in config.log
434 if test "$silent" = yes; then
442 This file contains any messages produced by compilers while
443 running configure, to aid debugging if configure makes a mistake.
446 # Strip out --no-create and --no-recursion so they do not pile up.
447 # Also quote any args containing shell metacharacters.
452 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
453 |
--no-cr |
--no-c) ;;
454 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
455 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
456 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
457 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
458 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
463 # Only set these to C if already set. These must not be set unconditionally
464 # because not all systems understand e.g. LANG=C (notably SCO).
465 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
466 # Non-C LC_CTYPE values break the ctype check.
467 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
468 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
469 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
470 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
472 # confdefs.h avoids OS command line length limits that DEFS can exceed.
473 rm -rf conftest
* confdefs.h
474 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
477 # A filename unique to this package, relative to the directory that
478 # configure is in, which we can look for to find out if srcdir is correct.
479 ac_unique_file
=Makefile.
in
481 # Find the source files, if location was not specified.
482 if test -z "$srcdir"; then
483 ac_srcdir_defaulted
=yes
484 # Try the directory containing this script, then its parent.
486 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
487 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
489 if test ! -r $srcdir/$ac_unique_file; then
493 ac_srcdir_defaulted
=no
495 if test ! -r $srcdir/$ac_unique_file; then
496 if test "$ac_srcdir_defaulted" = yes; then
497 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
499 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
502 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
504 # Prefer explicitly selected file to automatically selected ones.
505 if test -z "$CONFIG_SITE"; then
506 if test "x$prefix" != xNONE
; then
507 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
509 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
512 for ac_site_file
in $CONFIG_SITE; do
513 if test -r "$ac_site_file"; then
514 echo "loading site script $ac_site_file"
519 if test -r "$cache_file"; then
520 echo "loading cache $cache_file"
523 echo "creating cache $cache_file"
528 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
529 ac_cpp
='$CPP $CPPFLAGS'
530 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
531 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
532 cross_compiling
=$ac_cv_prog_cc_cross
536 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
537 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
538 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
545 ac_n
= ac_c
='\c' ac_t
=
549 .
$srcdir/GUILE-VERSION
551 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
552 if test -f $ac_dir/install-sh
; then
554 ac_install_sh
="$ac_aux_dir/install-sh -c"
556 elif test -f $ac_dir/install.sh
; then
558 ac_install_sh
="$ac_aux_dir/install.sh -c"
562 if test -z "$ac_aux_dir"; then
563 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
565 ac_config_guess
=$ac_aux_dir/config.guess
566 ac_config_sub
=$ac_aux_dir/config.sub
567 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
569 # Find a good install program. We prefer a C program (faster),
570 # so one script is as good as another. But avoid the broken or
571 # incompatible versions:
572 # SysV /etc/install, /usr/sbin/install
573 # SunOS /usr/etc/install
576 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
577 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
578 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
579 # ./install, which can be erroneously created by make from ./install.sh.
580 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
581 echo "configure:582: checking for a BSD compatible install" >&5
582 if test -z "$INSTALL"; then
583 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
584 echo $ac_n "(cached) $ac_c" 1>&6
586 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
587 for ac_dir
in $PATH; do
588 # Account for people who put trailing slashes in PATH elements.
590 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
592 # OSF1 and SCO ODT 3.0 have their own names for install.
593 # Don't use installbsd from OSF since it installs stuff as root
595 for ac_prog
in ginstall scoinst
install; do
596 if test -f $ac_dir/$ac_prog; then
597 if test $ac_prog = install &&
598 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
599 # AIX install. It has an incompatible calling convention.
602 ac_cv_path_install
="$ac_dir/$ac_prog -c"
613 if test "${ac_cv_path_install+set}" = set; then
614 INSTALL
="$ac_cv_path_install"
616 # As a last resort, use the slow shell script. We don't cache a
617 # path for INSTALL within a source directory, because that will
618 # break other packages using the cache if that directory is
619 # removed, or if the path is relative.
620 INSTALL
="$ac_install_sh"
623 echo "$ac_t""$INSTALL" 1>&6
625 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
626 # It thinks the first close brace ends the variable substitution.
627 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
629 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
631 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
633 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
634 echo "configure:635: checking whether build environment is sane" >&5
637 echo timestamp
> conftestfile
638 # Do `set' in a subshell so we don't clobber the current shell's
639 # arguments. Must try -L first in case configure is actually a
640 # symlink; some systems play weird games with the mod time of symlinks
641 # (eg FreeBSD returns the mod time of the symlink's containing
644 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
645 if test "$*" = "X"; then
647 set X
`ls -t $srcdir/configure conftestfile`
649 if test "$*" != "X $srcdir/configure conftestfile" \
650 && test "$*" != "X conftestfile $srcdir/configure"; then
652 # If neither matched, then we have a broken ls. This can happen
653 # if, for instance, CONFIG_SHELL is bash and it inherits a
654 # broken ls alias from the environment. This has actually
655 # happened. Such a system could not be considered "sane".
656 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
657 alias in your environment" 1>&2; exit 1; }
660 test "$2" = conftestfile
666 { echo "configure: error: newly created file is older than distributed files!
667 Check your system clock" 1>&2; exit 1; }
670 echo "$ac_t""yes" 1>&6
671 if test "$program_transform_name" = s
,x
,x
,; then
672 program_transform_name
=
674 # Double any \ or $. echo might interpret backslashes.
675 cat <<\EOF_SED
> conftestsed
676 s
,\\,\\\\,g
; s
,\$
,$$
,g
678 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
681 test "$program_prefix" != NONE
&&
682 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
683 # Use a double $ so make ignores it.
684 test "$program_suffix" != NONE
&&
685 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
687 # sed with no file args requires a program.
688 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
690 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
691 echo "configure:692: checking whether ${MAKE-make} sets \${MAKE}" >&5
692 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
693 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
694 echo $ac_n "(cached) $ac_c" 1>&6
696 cat > conftestmake
<<\EOF
698 @
echo 'ac_maketemp="${MAKE}"'
700 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
701 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
702 if test -n "$ac_maketemp"; then
703 eval ac_cv_prog_make_
${ac_make}_set
=yes
705 eval ac_cv_prog_make_
${ac_make}_set
=no
709 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
710 echo "$ac_t""yes" 1>&6
713 echo "$ac_t""no" 1>&6
714 SET_MAKE
="MAKE=${MAKE-make}"
722 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
723 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
728 missing_dir
=`cd $ac_aux_dir && pwd`
729 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
730 echo "configure:731: checking for working aclocal" >&5
731 # Run test in a subshell; some versions of sh will print an error if
732 # an executable is not found, even if stderr is redirected.
733 # Redirect stdin to placate older versions of autoconf. Sigh.
734 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
736 echo "$ac_t""found" 1>&6
738 ACLOCAL
="$missing_dir/missing aclocal"
739 echo "$ac_t""missing" 1>&6
742 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
743 echo "configure:744: checking for working autoconf" >&5
744 # Run test in a subshell; some versions of sh will print an error if
745 # an executable is not found, even if stderr is redirected.
746 # Redirect stdin to placate older versions of autoconf. Sigh.
747 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
749 echo "$ac_t""found" 1>&6
751 AUTOCONF
="$missing_dir/missing autoconf"
752 echo "$ac_t""missing" 1>&6
755 echo $ac_n "checking for working automake""... $ac_c" 1>&6
756 echo "configure:757: checking for working automake" >&5
757 # Run test in a subshell; some versions of sh will print an error if
758 # an executable is not found, even if stderr is redirected.
759 # Redirect stdin to placate older versions of autoconf. Sigh.
760 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
762 echo "$ac_t""found" 1>&6
764 AUTOMAKE
="$missing_dir/missing automake"
765 echo "$ac_t""missing" 1>&6
768 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
769 echo "configure:770: checking for working autoheader" >&5
770 # Run test in a subshell; some versions of sh will print an error if
771 # an executable is not found, even if stderr is redirected.
772 # Redirect stdin to placate older versions of autoconf. Sigh.
773 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
774 AUTOHEADER
=autoheader
775 echo "$ac_t""found" 1>&6
777 AUTOHEADER
="$missing_dir/missing autoheader"
778 echo "$ac_t""missing" 1>&6
781 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
782 echo "configure:783: checking for working makeinfo" >&5
783 # Run test in a subshell; some versions of sh will print an error if
784 # an executable is not found, even if stderr is redirected.
785 # Redirect stdin to placate older versions of autoconf. Sigh.
786 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
788 echo "$ac_t""found" 1>&6
790 MAKEINFO
="$missing_dir/missing makeinfo"
791 echo "$ac_t""missing" 1>&6
795 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
796 echo "configure:797: checking whether to enable maintainer-specific portions of Makefiles" >&5
797 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
798 if test "${enable_maintainer_mode+set}" = set; then
799 enableval
="$enable_maintainer_mode"
800 USE_MAINTAINER_MODE
=$enableval
802 USE_MAINTAINER_MODE
=no
805 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
808 if test $USE_MAINTAINER_MODE = yes; then
809 MAINTAINER_MODE_TRUE
=
810 MAINTAINER_MODE_FALSE
='#'
812 MAINTAINER_MODE_TRUE
='#'
813 MAINTAINER_MODE_FALSE
=
815 MAINT
=$MAINTAINER_MODE_TRUE
822 #--------------------------------------------------------------------
824 # Independent Subdirectories
826 #--------------------------------------------------------------------
828 subdirs
="guile-readline"
831 #--------------------------------------------------------------------
835 #--------------------------------------------------------------------
837 # Check whether --enable-dynamic-linking or --disable-dynamic-linking was given.
838 if test "${enable_dynamic_linking+set}" = set; then
839 enableval
="$enable_dynamic_linking"
842 enable_dynamic_linking
=yes
846 # Check whether --enable-guile-debug or --disable-guile-debug was given.
847 if test "${enable_guile_debug+set}" = set; then
848 enableval
="$enable_guile_debug"
849 if test "$enable_guile_debug" = y ||
test "$enable_guile_debug" = yes; then
850 cat >> confdefs.h
<<\EOF
851 #define GUILE_DEBUG 1
858 # Check whether --enable-posix or --disable-posix was given.
859 if test "${enable_posix+set}" = set; then
860 enableval
="$enable_posix"
867 # Check whether --enable-networking or --disable-networking was given.
868 if test "${enable_networking+set}" = set; then
869 enableval
="$enable_networking"
872 enable_networking
=yes
876 # Check whether --enable-regex or --disable-regex was given.
877 if test "${enable_regex+set}" = set; then
878 enableval
="$enable_regex"
885 cat >> confdefs.h
<<\EOF
886 #define DEBUG_EXTENSIONS 1
889 cat >> confdefs.h
<<\EOF
890 #define READER_EXTENSIONS 1
895 if test "$enable_posix" = yes; then
896 LIBOBJS
="$LIBOBJS filesys.o posix.o"
897 cat >> confdefs.h
<<\EOF
903 if test "$enable_networking" = yes; then
904 LIBOBJS
="$LIBOBJS net_db.o socket.o"
905 cat >> confdefs.h
<<\EOF
906 #define HAVE_NETWORKING 1
911 #--------------------------------------------------------------------
913 # Extract the first word of "gcc", so it can be a program name with args.
914 set dummy gcc
; ac_word
=$2
915 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
916 echo "configure:917: checking for $ac_word" >&5
917 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
918 echo $ac_n "(cached) $ac_c" 1>&6
920 if test -n "$CC"; then
921 ac_cv_prog_CC
="$CC" # Let the user override the test.
923 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
925 for ac_dir
in $ac_dummy; do
926 test -z "$ac_dir" && ac_dir
=.
927 if test -f $ac_dir/$ac_word; then
936 if test -n "$CC"; then
937 echo "$ac_t""$CC" 1>&6
939 echo "$ac_t""no" 1>&6
942 if test -z "$CC"; then
943 # Extract the first word of "cc", so it can be a program name with args.
944 set dummy cc
; ac_word
=$2
945 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
946 echo "configure:947: checking for $ac_word" >&5
947 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
948 echo $ac_n "(cached) $ac_c" 1>&6
950 if test -n "$CC"; then
951 ac_cv_prog_CC
="$CC" # Let the user override the test.
953 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
956 for ac_dir
in $ac_dummy; do
957 test -z "$ac_dir" && ac_dir
=.
958 if test -f $ac_dir/$ac_word; then
959 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
968 if test $ac_prog_rejected = yes; then
969 # We found a bogon in the path, so make sure we never use it.
970 set dummy
$ac_cv_prog_CC
972 if test $# -gt 0; then
973 # We chose a different compiler from the bogus one.
974 # However, it has the same basename, so the bogon will be chosen
975 # first if we set CC to just the basename; use the full file name.
977 set dummy
"$ac_dir/$ac_word" "$@"
985 if test -n "$CC"; then
986 echo "$ac_t""$CC" 1>&6
988 echo "$ac_t""no" 1>&6
991 if test -z "$CC"; then
994 # Extract the first word of "cl", so it can be a program name with args.
995 set dummy cl
; ac_word
=$2
996 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
997 echo "configure:998: checking for $ac_word" >&5
998 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
999 echo $ac_n "(cached) $ac_c" 1>&6
1001 if test -n "$CC"; then
1002 ac_cv_prog_CC
="$CC" # Let the user override the test.
1004 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1006 for ac_dir
in $ac_dummy; do
1007 test -z "$ac_dir" && ac_dir
=.
1008 if test -f $ac_dir/$ac_word; then
1017 if test -n "$CC"; then
1018 echo "$ac_t""$CC" 1>&6
1020 echo "$ac_t""no" 1>&6
1025 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1028 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1029 echo "configure:1030: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1032 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1033 ac_cpp
='$CPP $CPPFLAGS'
1034 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1035 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1036 cross_compiling
=$ac_cv_prog_cc_cross
1038 cat > conftest.
$ac_ext << EOF
1040 #line 1041 "configure"
1041 #include "confdefs.h"
1045 if { (eval echo configure
:1046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1046 ac_cv_prog_cc_works
=yes
1047 # If we can't run a trivial program, we are probably using a cross compiler.
1048 if (.
/conftest
; exit) 2>/dev
/null
; then
1049 ac_cv_prog_cc_cross
=no
1051 ac_cv_prog_cc_cross
=yes
1054 echo "configure: failed program was:" >&5
1055 cat conftest.
$ac_ext >&5
1056 ac_cv_prog_cc_works
=no
1060 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1061 ac_cpp
='$CPP $CPPFLAGS'
1062 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1063 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1064 cross_compiling
=$ac_cv_prog_cc_cross
1066 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1067 if test $ac_cv_prog_cc_works = no
; then
1068 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1070 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1071 echo "configure:1072: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1072 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1073 cross_compiling
=$ac_cv_prog_cc_cross
1075 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1076 echo "configure:1077: checking whether we are using GNU C" >&5
1077 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1078 echo $ac_n "(cached) $ac_c" 1>&6
1080 cat > conftest.c
<<EOF
1085 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1086: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1092 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1094 if test $ac_cv_prog_gcc = yes; then
1100 ac_test_CFLAGS
="${CFLAGS+set}"
1101 ac_save_CFLAGS
="$CFLAGS"
1103 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1104 echo "configure:1105: checking whether ${CC-cc} accepts -g" >&5
1105 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1106 echo $ac_n "(cached) $ac_c" 1>&6
1108 echo 'void f(){}' > conftest.c
1109 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1118 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1119 if test "$ac_test_CFLAGS" = set; then
1120 CFLAGS
="$ac_save_CFLAGS"
1121 elif test $ac_cv_prog_cc_g = yes; then
1122 if test "$GCC" = yes; then
1128 if test "$GCC" = yes; then
1135 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1136 echo "configure:1137: checking how to run the C preprocessor" >&5
1137 # On Suns, sometimes $CPP names a directory.
1138 if test -n "$CPP" && test -d "$CPP"; then
1141 if test -z "$CPP"; then
1142 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1143 echo $ac_n "(cached) $ac_c" 1>&6
1145 # This must be in double quotes, not single quotes, because CPP may get
1146 # substituted into the Makefile and "${CC-cc}" will confuse make.
1148 # On the NeXT, cc -E runs the code through the compiler's parser,
1149 # not just through cpp.
1150 cat > conftest.
$ac_ext <<EOF
1151 #line 1152 "configure"
1152 #include "confdefs.h"
1156 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1157 { (eval echo configure
:1158: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1158 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1159 if test -z "$ac_err"; then
1163 echo "configure: failed program was:" >&5
1164 cat conftest.
$ac_ext >&5
1166 CPP
="${CC-cc} -E -traditional-cpp"
1167 cat > conftest.
$ac_ext <<EOF
1168 #line 1169 "configure"
1169 #include "confdefs.h"
1173 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1174 { (eval echo configure
:1175: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1175 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1176 if test -z "$ac_err"; then
1180 echo "configure: failed program was:" >&5
1181 cat conftest.
$ac_ext >&5
1183 CPP
="${CC-cc} -nologo -E"
1184 cat > conftest.
$ac_ext <<EOF
1185 #line 1186 "configure"
1186 #include "confdefs.h"
1190 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1191 { (eval echo configure
:1192: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1192 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1193 if test -z "$ac_err"; then
1197 echo "configure: failed program was:" >&5
1198 cat conftest.
$ac_ext >&5
1207 ac_cv_prog_CPP
="$CPP"
1209 CPP
="$ac_cv_prog_CPP"
1211 ac_cv_prog_CPP
="$CPP"
1213 echo "$ac_t""$CPP" 1>&6
1216 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1217 echo "configure:1218: checking for AIX" >&5
1218 cat > conftest.
$ac_ext <<EOF
1219 #line 1220 "configure"
1220 #include "confdefs.h"
1226 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1227 egrep "yes" >/dev
/null
2>&1; then
1229 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
1230 #define _ALL_SOURCE 1
1235 echo "$ac_t""no" 1>&6
1240 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1241 echo "configure:1242: checking for POSIXized ISC" >&5
1242 if test -d /etc
/conf
/kconfig.d
&&
1243 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
1245 echo "$ac_t""yes" 1>&6
1246 ISC
=yes # If later tests want to check for ISC.
1247 cat >> confdefs.h
<<\EOF
1248 #define _POSIX_SOURCE 1
1251 if test "$GCC" = yes; then
1257 echo "$ac_t""no" 1>&6
1261 ac_safe
=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1262 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1263 echo "configure:1264: checking for minix/config.h" >&5
1264 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1265 echo $ac_n "(cached) $ac_c" 1>&6
1267 cat > conftest.
$ac_ext <<EOF
1268 #line 1269 "configure"
1269 #include "confdefs.h"
1270 #include <minix/config.h>
1272 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1273 { (eval echo configure
:1274: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1274 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1275 if test -z "$ac_err"; then
1277 eval "ac_cv_header_$ac_safe=yes"
1280 echo "configure: failed program was:" >&5
1281 cat conftest.
$ac_ext >&5
1283 eval "ac_cv_header_$ac_safe=no"
1287 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1288 echo "$ac_t""yes" 1>&6
1291 echo "$ac_t""no" 1>&6
1295 if test "$MINIX" = yes; then
1296 cat >> confdefs.h
<<\EOF
1297 #define _POSIX_SOURCE 1
1300 cat >> confdefs.h
<<\EOF
1301 #define _POSIX_1_SOURCE 2
1304 cat >> confdefs.h
<<\EOF
1314 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
1315 echo "configure:1316: checking for ${CC-cc} option to accept ANSI C" >&5
1316 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
1317 echo $ac_n "(cached) $ac_c" 1>&6
1319 am_cv_prog_cc_stdc
=no
1321 # Don't try gcc -ansi; that turns off useful extensions and
1322 # breaks some systems' header files.
1323 # AIX -qlanglvl=ansi
1324 # Ultrix and OSF/1 -std1
1325 # HP-UX -Aa -D_HPUX_SOURCE
1326 # SVR4 -Xc -D__EXTENSIONS__
1327 for ac_arg
in "" -qlanglvl=ansi
-std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1329 CC
="$ac_save_CC $ac_arg"
1330 cat > conftest.
$ac_ext <<EOF
1331 #line 1332 "configure"
1332 #include "confdefs.h"
1335 #include <sys/types.h>
1336 #include <sys/stat.h>
1337 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1338 struct buf { int x; };
1339 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1340 static char *e (p, i)
1346 static char *f (char * (*g) (char **, int), char **p, ...)
1351 s = g (p, va_arg (v,int));
1355 int test (int i, double x);
1356 struct s1 {int (*f) (int a);};
1357 struct s2 {int (*f) (double a);};
1358 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1364 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1368 if { (eval echo configure
:1369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1370 am_cv_prog_cc_stdc
="$ac_arg"; break
1372 echo "configure: failed program was:" >&5
1373 cat conftest.
$ac_ext >&5
1381 if test -z "$am_cv_prog_cc_stdc"; then
1382 echo "$ac_t""none needed" 1>&6
1384 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1386 case "x$am_cv_prog_cc_stdc" in
1388 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
1391 # Check whether --enable-shared or --disable-shared was given.
1392 if test "${enable_shared+set}" = set; then
1393 enableval
="$enable_shared"
1394 p
=${PACKAGE-default}
1395 case "$enableval" in
1396 yes) enable_shared
=yes ;;
1397 no
) enable_shared
=no
;;
1400 # Look at the argument we got. We use all the common list separators.
1401 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1402 for pkg
in $enableval; do
1403 if test "X$pkg" = "X$p"; then
1414 # Check whether --enable-static or --disable-static was given.
1415 if test "${enable_static+set}" = set; then
1416 enableval
="$enable_static"
1417 p
=${PACKAGE-default}
1418 case "$enableval" in
1419 yes) enable_static
=yes ;;
1420 no
) enable_static
=no
;;
1423 # Look at the argument we got. We use all the common list separators.
1424 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1425 for pkg
in $enableval; do
1426 if test "X$pkg" = "X$p"; then
1437 # Check whether --enable-fast-install or --disable-fast-install was given.
1438 if test "${enable_fast_install+set}" = set; then
1439 enableval
="$enable_fast_install"
1440 p
=${PACKAGE-default}
1441 case "$enableval" in
1442 yes) enable_fast_install
=yes ;;
1443 no
) enable_fast_install
=no
;;
1445 enable_fast_install
=no
1446 # Look at the argument we got. We use all the common list separators.
1447 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1448 for pkg
in $enableval; do
1449 if test "X$pkg" = "X$p"; then
1450 enable_fast_install
=yes
1457 enable_fast_install
=yes
1461 # Make sure we can run config.sub.
1462 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1463 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1466 echo $ac_n "checking host system type""... $ac_c" 1>&6
1467 echo "configure:1468: checking host system type" >&5
1470 case "$host_alias" in
1474 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1475 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1477 *) host_alias
=$nonopt ;;
1481 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1482 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1483 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1484 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1485 echo "$ac_t""$host" 1>&6
1487 echo $ac_n "checking build system type""... $ac_c" 1>&6
1488 echo "configure:1489: checking build system type" >&5
1491 case "$build_alias" in
1494 NONE
) build_alias
=$host_alias ;;
1495 *) build_alias
=$nonopt ;;
1499 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1500 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1501 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1502 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1503 echo "$ac_t""$build" 1>&6
1505 # Extract the first word of "ranlib", so it can be a program name with args.
1506 set dummy ranlib
; ac_word
=$2
1507 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1508 echo "configure:1509: checking for $ac_word" >&5
1509 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1510 echo $ac_n "(cached) $ac_c" 1>&6
1512 if test -n "$RANLIB"; then
1513 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1515 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1517 for ac_dir
in $ac_dummy; do
1518 test -z "$ac_dir" && ac_dir
=.
1519 if test -f $ac_dir/$ac_word; then
1520 ac_cv_prog_RANLIB
="ranlib"
1525 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1528 RANLIB
="$ac_cv_prog_RANLIB"
1529 if test -n "$RANLIB"; then
1530 echo "$ac_t""$RANLIB" 1>&6
1532 echo "$ac_t""no" 1>&6
1535 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1536 if test "${with_gnu_ld+set}" = set; then
1537 withval
="$with_gnu_ld"
1538 test "$withval" = no || with_gnu_ld
=yes
1544 if test "$ac_cv_prog_gcc" = yes; then
1545 # Check if gcc -print-prog-name=ld gives a path.
1546 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1547 echo "configure:1548: checking for ld used by GCC" >&5
1548 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1550 # Accept absolute paths.
1551 [\\/]* |
[A-Za-z
]:[\\/]*)
1552 re_direlt
='/[^/][^/]*/\.\./'
1553 # Canonicalize the path of ld
1554 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1555 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1556 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1558 test -z "$LD" && LD
="$ac_prog"
1561 # If it fails, then pretend we aren't using GCC.
1565 # If it is relative, then search for the first ld in PATH.
1569 elif test "$with_gnu_ld" = yes; then
1570 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1571 echo "configure:1572: checking for GNU ld" >&5
1573 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1574 echo "configure:1575: checking for non-GNU ld" >&5
1576 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1577 echo $ac_n "(cached) $ac_c" 1>&6
1579 if test -z "$LD"; then
1580 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1581 for ac_dir
in $PATH; do
1582 test -z "$ac_dir" && ac_dir
=.
1583 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1584 ac_cv_path_LD
="$ac_dir/$ac_prog"
1585 # Check to see if the program is GNU ld. I'd rather use --version,
1586 # but apparently some GNU ld's only accept -v.
1587 # Break only if it was the GNU/non-GNU ld that we prefer.
1588 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1589 test "$with_gnu_ld" != no
&& break
1591 test "$with_gnu_ld" != yes && break
1597 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1602 if test -n "$LD"; then
1603 echo "$ac_t""$LD" 1>&6
1605 echo "$ac_t""no" 1>&6
1607 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1609 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1610 echo "configure:1611: checking if the linker ($LD) is GNU ld" >&5
1611 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1612 echo $ac_n "(cached) $ac_c" 1>&6
1614 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1615 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1616 ac_cv_prog_gnu_ld
=yes
1618 ac_cv_prog_gnu_ld
=no
1622 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1625 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1626 echo "configure:1627: checking for BSD-compatible nm" >&5
1627 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1628 echo $ac_n "(cached) $ac_c" 1>&6
1630 if test -n "$NM"; then
1631 # Let the user override the test.
1634 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1635 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1636 test -z "$ac_dir" && ac_dir
=.
1637 if test -f $ac_dir/nm ||
test -f $ac_dir/nm
$ac_exeext ; then
1638 # Check to see if the nm accepts a BSD-compat flag.
1639 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1640 # nm: unknown option "B" ignored
1641 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1642 ac_cv_path_NM
="$ac_dir/nm -B"
1644 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1645 ac_cv_path_NM
="$ac_dir/nm -p"
1648 ac_cv_path_NM
=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1649 continue # so that we can try to find one that supports BSD flags
1654 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1659 echo "$ac_t""$NM" 1>&6
1662 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1663 echo "configure:1664: checking whether ln -s works" >&5
1664 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1665 echo $ac_n "(cached) $ac_c" 1>&6
1668 if ln -s X conftestdata
2>/dev
/null
1671 ac_cv_prog_LN_S
="ln -s"
1676 LN_S
="$ac_cv_prog_LN_S"
1677 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1678 echo "$ac_t""yes" 1>&6
1680 echo "$ac_t""no" 1>&6
1684 # Check for any special flags to pass to ltconfig.
1685 libtool_flags
="--cache-file=$cache_file"
1686 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1687 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1688 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
1689 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1690 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1693 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1694 if test "${enable_libtool_lock+set}" = set; then
1695 enableval
="$enable_libtool_lock"
1699 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
1700 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
1702 # Some flags need to be propagated to the compiler or linker for good
1706 # Find out which ABI we are using.
1707 echo '#line 1708 "configure"' > conftest.
$ac_ext
1708 if { (eval echo configure
:1709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1709 case "`/usr/bin/file conftest.o`" in
1725 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1726 SAVE_CFLAGS
="$CFLAGS"
1727 CFLAGS
="$CFLAGS -belf"
1728 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1729 echo "configure:1730: checking whether the C compiler needs -belf" >&5
1730 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1731 echo $ac_n "(cached) $ac_c" 1>&6
1733 cat > conftest.
$ac_ext <<EOF
1734 #line 1735 "configure"
1735 #include "confdefs.h"
1741 if { (eval echo configure
:1742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1743 lt_cv_cc_needs_belf
=yes
1745 echo "configure: failed program was:" >&5
1746 cat conftest.
$ac_ext >&5
1748 lt_cv_cc_needs_belf
=no
1753 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1754 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
1755 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1756 CFLAGS
="$SAVE_CFLAGS"
1764 # Save cache, so that ltconfig can load it
1765 cat > confcache
<<\EOF
1766 # This file is a shell script that caches the results of configure
1767 # tests run on this system so they can be shared between configure
1768 # scripts and configure runs. It is not useful on other systems.
1769 # If it contains results you don't want to keep, you may remove or edit it.
1771 # By default, configure uses ./config.cache as the cache file,
1772 # creating it if it does not exist already. You can give configure
1773 # the --cache-file=FILE option to use a different cache file; that is
1774 # what configure does when it calls configure scripts in
1775 # subdirectories, so they share the cache.
1776 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1777 # config.status only pays attention to the cache file if you give it the
1778 # --recheck option to rerun configure.
1781 # The following way of writing the cache mishandles newlines in values,
1782 # but we know of no workaround that is simple, portable, and efficient.
1783 # So, don't put newlines in cache variables' values.
1784 # Ultrix sh set writes to stderr and can't be redirected directly,
1785 # and sets the high bit in the cache file unless we assign to the vars.
1787 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1789 # `set' does not quote correctly, so add quotes (double-quote substitution
1790 # turns \\\\ into \\, and sed turns \\ into \).
1792 -e "s/'/'\\\\''/g" \
1793 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1796 # `set' quotes correctly as required by POSIX, so do not add quotes.
1797 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1800 if cmp -s $cache_file confcache
; then
1803 if test -w $cache_file; then
1804 echo "updating cache $cache_file"
1805 cat confcache
> $cache_file
1807 echo "not updating unwritable cache $cache_file"
1813 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1814 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1815 LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
1816 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" \
1817 DLLTOOL
="$DLLTOOL" AS
="$AS" OBJDUMP
="$OBJDUMP" \
1818 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
1819 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$host \
1820 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1822 # Reload cache, that may have been modified by ltconfig
1823 if test -r "$cache_file"; then
1824 echo "loading cache $cache_file"
1827 echo "creating cache $cache_file"
1832 # This can be used to rebuild libtool when needed
1833 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1835 # Always use our own libtool.
1836 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1838 # Redirect the config.log output again, so that the ltconfig log is not
1839 # clobbered by the next message.
1840 exec 5>>.
/config.log
1843 echo $ac_n "checking for working const""... $ac_c" 1>&6
1844 echo "configure:1845: checking for working const" >&5
1845 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1846 echo $ac_n "(cached) $ac_c" 1>&6
1848 cat > conftest.
$ac_ext <<EOF
1849 #line 1850 "configure"
1850 #include "confdefs.h"
1854 /* Ultrix mips cc rejects this. */
1855 typedef int charset[2]; const charset x;
1856 /* SunOS 4.1.1 cc rejects this. */
1857 char const *const *ccp;
1859 /* NEC SVR4.0.2 mips cc rejects this. */
1860 struct point {int x, y;};
1861 static struct point const zero = {0,0};
1862 /* AIX XL C 1.02.0.0 rejects this.
1863 It does not let you subtract one const X* pointer from another in an arm
1864 of an if-expression whose if-part is not a constant expression */
1865 const char *g = "string";
1866 ccp = &g + (g ? g-g : 0);
1867 /* HPUX 7.0 cc rejects these. */
1870 ccp = (char const *const *) p;
1871 { /* SCO 3.2v4 cc rejects this. */
1873 char const *s = 0 ? (char *) 0 : (char const *) 0;
1877 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1879 const int *foo = &x[0];
1882 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1883 typedef const int *iptr;
1887 { /* AIX XL C 1.02.0.0 rejects this saying
1888 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1889 struct s { int j; const int *ap[3]; };
1890 struct s *b; b->j = 5;
1892 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1898 if { (eval echo configure
:1899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1902 echo "configure: failed program was:" >&5
1903 cat conftest.
$ac_ext >&5
1910 echo "$ac_t""$ac_cv_c_const" 1>&6
1911 if test $ac_cv_c_const = no
; then
1912 cat >> confdefs.h
<<\EOF
1918 echo $ac_n "checking for inline""... $ac_c" 1>&6
1919 echo "configure:1920: checking for inline" >&5
1920 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1921 echo $ac_n "(cached) $ac_c" 1>&6
1924 for ac_kw
in inline __inline__ __inline
; do
1925 cat > conftest.
$ac_ext <<EOF
1926 #line 1927 "configure"
1927 #include "confdefs.h"
1933 if { (eval echo configure
:1934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1935 ac_cv_c_inline
=$ac_kw; break
1937 echo "configure: failed program was:" >&5
1938 cat conftest.
$ac_ext >&5
1945 echo "$ac_t""$ac_cv_c_inline" 1>&6
1946 case "$ac_cv_c_inline" in
1948 no
) cat >> confdefs.h
<<\EOF
1952 *) cat >> confdefs.h
<<EOF
1953 #define inline $ac_cv_c_inline
1958 echo $ac_n "checking size of int""... $ac_c" 1>&6
1959 echo "configure:1960: checking size of int" >&5
1960 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1961 echo $ac_n "(cached) $ac_c" 1>&6
1963 if test "$cross_compiling" = yes; then
1964 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1966 cat > conftest.
$ac_ext <<EOF
1967 #line 1968 "configure"
1968 #include "confdefs.h"
1972 FILE *f=fopen("conftestval", "w");
1974 fprintf(f, "%d\n", sizeof(int));
1978 if { (eval echo configure
:1979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1980 ac_cv_sizeof_int
=`cat conftestval`
1982 echo "configure: failed program was:" >&5
1983 cat conftest.
$ac_ext >&5
1991 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1992 cat >> confdefs.h
<<EOF
1993 #define SIZEOF_INT $ac_cv_sizeof_int
1997 echo $ac_n "checking size of long""... $ac_c" 1>&6
1998 echo "configure:1999: checking size of long" >&5
1999 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2000 echo $ac_n "(cached) $ac_c" 1>&6
2002 if test "$cross_compiling" = yes; then
2003 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2005 cat > conftest.
$ac_ext <<EOF
2006 #line 2007 "configure"
2007 #include "confdefs.h"
2011 FILE *f=fopen("conftestval", "w");
2013 fprintf(f, "%d\n", sizeof(long));
2017 if { (eval echo configure
:2018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2019 ac_cv_sizeof_long
=`cat conftestval`
2021 echo "configure: failed program was:" >&5
2022 cat conftest.
$ac_ext >&5
2030 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2031 cat >> confdefs.h
<<EOF
2032 #define SIZEOF_LONG $ac_cv_sizeof_long
2036 echo $ac_n "checking for long longs""... $ac_c" 1>&6
2037 echo "configure:2038: checking for long longs" >&5
2038 if eval "test \"`echo '$''{'scm_cv_long_longs'+set}'`\" = set"; then
2039 echo $ac_n "(cached) $ac_c" 1>&6
2041 cat > conftest.
$ac_ext <<EOF
2042 #line 2043 "configure"
2043 #include "confdefs.h"
2049 if { (eval echo configure
:2050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2051 scm_cv_long_longs
=yes
2053 echo "configure: failed program was:" >&5
2054 cat conftest.
$ac_ext >&5
2056 scm_cv_long_longs
=no
2061 echo "$ac_t""$scm_cv_long_longs" 1>&6
2062 if test "$scm_cv_long_longs" = yes; then
2063 cat >> confdefs.h
<<\EOF
2064 #define HAVE_LONG_LONGS 1
2069 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2070 echo "configure:2071: checking for ANSI C header files" >&5
2071 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2072 echo $ac_n "(cached) $ac_c" 1>&6
2074 cat > conftest.
$ac_ext <<EOF
2075 #line 2076 "configure"
2076 #include "confdefs.h"
2082 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2083 { (eval echo configure
:2084: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2084 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2085 if test -z "$ac_err"; then
2087 ac_cv_header_stdc
=yes
2090 echo "configure: failed program was:" >&5
2091 cat conftest.
$ac_ext >&5
2093 ac_cv_header_stdc
=no
2097 if test $ac_cv_header_stdc = yes; then
2098 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2099 cat > conftest.
$ac_ext <<EOF
2100 #line 2101 "configure"
2101 #include "confdefs.h"
2104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2105 egrep "memchr" >/dev
/null
2>&1; then
2109 ac_cv_header_stdc
=no
2115 if test $ac_cv_header_stdc = yes; then
2116 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2117 cat > conftest.
$ac_ext <<EOF
2118 #line 2119 "configure"
2119 #include "confdefs.h"
2122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2123 egrep "free" >/dev
/null
2>&1; then
2127 ac_cv_header_stdc
=no
2133 if test $ac_cv_header_stdc = yes; then
2134 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2135 if test "$cross_compiling" = yes; then
2138 cat > conftest.
$ac_ext <<EOF
2139 #line 2140 "configure"
2140 #include "confdefs.h"
2142 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2143 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2144 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2145 int main () { int i; for (i = 0; i < 256; i++)
2146 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2150 if { (eval echo configure
:2151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2154 echo "configure: failed program was:" >&5
2155 cat conftest.
$ac_ext >&5
2157 ac_cv_header_stdc
=no
2165 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2166 if test $ac_cv_header_stdc = yes; then
2167 cat >> confdefs.h
<<\EOF
2168 #define STDC_HEADERS 1
2174 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
2176 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2177 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2178 echo "configure:2179: checking for $ac_hdr that defines DIR" >&5
2179 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2180 echo $ac_n "(cached) $ac_c" 1>&6
2182 cat > conftest.
$ac_ext <<EOF
2183 #line 2184 "configure"
2184 #include "confdefs.h"
2185 #include <sys/types.h>
2191 if { (eval echo configure
:2192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2193 eval "ac_cv_header_dirent_$ac_safe=yes"
2195 echo "configure: failed program was:" >&5
2196 cat conftest.
$ac_ext >&5
2198 eval "ac_cv_header_dirent_$ac_safe=no"
2202 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2203 echo "$ac_t""yes" 1>&6
2204 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2205 cat >> confdefs.h
<<EOF
2206 #define $ac_tr_hdr 1
2208 ac_header_dirent
=$ac_hdr; break
2210 echo "$ac_t""no" 1>&6
2213 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2214 if test $ac_header_dirent = dirent.h
; then
2215 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2216 echo "configure:2217: checking for opendir in -ldir" >&5
2217 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2218 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2219 echo $ac_n "(cached) $ac_c" 1>&6
2221 ac_save_LIBS
="$LIBS"
2223 cat > conftest.
$ac_ext <<EOF
2224 #line 2225 "configure"
2225 #include "confdefs.h"
2226 /* Override any gcc2 internal prototype to avoid an error. */
2227 /* We use char because int might match the return type of a gcc2
2228 builtin and then its argument prototype would still apply. */
2235 if { (eval echo configure
:2236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2237 eval "ac_cv_lib_$ac_lib_var=yes"
2239 echo "configure: failed program was:" >&5
2240 cat conftest.
$ac_ext >&5
2242 eval "ac_cv_lib_$ac_lib_var=no"
2245 LIBS
="$ac_save_LIBS"
2248 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2249 echo "$ac_t""yes" 1>&6
2252 echo "$ac_t""no" 1>&6
2256 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2257 echo "configure:2258: checking for opendir in -lx" >&5
2258 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2259 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2260 echo $ac_n "(cached) $ac_c" 1>&6
2262 ac_save_LIBS
="$LIBS"
2264 cat > conftest.
$ac_ext <<EOF
2265 #line 2266 "configure"
2266 #include "confdefs.h"
2267 /* Override any gcc2 internal prototype to avoid an error. */
2268 /* We use char because int might match the return type of a gcc2
2269 builtin and then its argument prototype would still apply. */
2276 if { (eval echo configure
:2277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2278 eval "ac_cv_lib_$ac_lib_var=yes"
2280 echo "configure: failed program was:" >&5
2281 cat conftest.
$ac_ext >&5
2283 eval "ac_cv_lib_$ac_lib_var=no"
2286 LIBS
="$ac_save_LIBS"
2289 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2290 echo "$ac_t""yes" 1>&6
2293 echo "$ac_t""no" 1>&6
2298 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2299 echo "configure:2300: checking whether time.h and sys/time.h may both be included" >&5
2300 if eval "test \"`echo '$''{'ac_cv_header_time'+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/time.h>
2313 if { (eval echo configure
:2314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2315 ac_cv_header_time
=yes
2317 echo "configure: failed program was:" >&5
2318 cat conftest.
$ac_ext >&5
2320 ac_cv_header_time
=no
2325 echo "$ac_t""$ac_cv_header_time" 1>&6
2326 if test $ac_cv_header_time = yes; then
2327 cat >> confdefs.h
<<\EOF
2328 #define TIME_WITH_SYS_TIME 1
2333 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2334 echo "configure:2335: checking for sys/wait.h that is POSIX.1 compatible" >&5
2335 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2336 echo $ac_n "(cached) $ac_c" 1>&6
2338 cat > conftest.
$ac_ext <<EOF
2339 #line 2340 "configure"
2340 #include "confdefs.h"
2341 #include <sys/types.h>
2342 #include <sys/wait.h>
2344 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2347 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2352 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2355 if { (eval echo configure
:2356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2357 ac_cv_header_sys_wait_h
=yes
2359 echo "configure: failed program was:" >&5
2360 cat conftest.
$ac_ext >&5
2362 ac_cv_header_sys_wait_h
=no
2367 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2368 if test $ac_cv_header_sys_wait_h = yes; then
2369 cat >> confdefs.h
<<\EOF
2370 #define HAVE_SYS_WAIT_H 1
2375 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
2377 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2378 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2379 echo "configure:2380: checking for $ac_hdr" >&5
2380 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2381 echo $ac_n "(cached) $ac_c" 1>&6
2383 cat > conftest.
$ac_ext <<EOF
2384 #line 2385 "configure"
2385 #include "confdefs.h"
2388 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2389 { (eval echo configure
:2390: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2390 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2391 if test -z "$ac_err"; then
2393 eval "ac_cv_header_$ac_safe=yes"
2396 echo "configure: failed program was:" >&5
2397 cat conftest.
$ac_ext >&5
2399 eval "ac_cv_header_$ac_safe=no"
2403 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2404 echo "$ac_t""yes" 1>&6
2405 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2406 cat >> confdefs.h
<<EOF
2407 #define $ac_tr_hdr 1
2411 echo "$ac_t""no" 1>&6
2416 for ac_hdr
in libc.h unistd.h
2418 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2419 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2420 echo "configure:2421: checking for $ac_hdr" >&5
2421 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2422 echo $ac_n "(cached) $ac_c" 1>&6
2424 cat > conftest.
$ac_ext <<EOF
2425 #line 2426 "configure"
2426 #include "confdefs.h"
2429 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2430 { (eval echo configure
:2431: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2431 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2432 if test -z "$ac_err"; then
2434 eval "ac_cv_header_$ac_safe=yes"
2437 echo "configure: failed program was:" >&5
2438 cat conftest.
$ac_ext >&5
2440 eval "ac_cv_header_$ac_safe=no"
2444 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2445 echo "$ac_t""yes" 1>&6
2446 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2447 cat >> confdefs.h
<<EOF
2448 #define $ac_tr_hdr 1
2452 echo "$ac_t""no" 1>&6
2456 echo $ac_n "checking "whether libc.h and unistd.h can be included together
"""... $ac_c" 1>&6
2457 echo "configure:2458: checking "whether libc.h and unistd.h can be included together
"" >&5
2458 if eval "test \"`echo '$''{'guile_cv_header_libc_with_unistd'+set}'`\" = set"; then
2459 echo $ac_n "(cached) $ac_c" 1>&6
2462 if test "$ac_cv_header_libc_h" = "no"; then
2463 guile_cv_header_libc_with_unistd
="no"
2464 elif test "$ac_cv_header_unistd_h" = "no"; then
2465 guile_cv_header_libc_with_unistd
="yes"
2467 cat > conftest.
$ac_ext <<EOF
2468 #line 2469 "configure"
2469 #include "confdefs.h"
2472 # include <unistd.h>
2478 if { (eval echo configure
:2479: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2480 guile_cv_header_libc_with_unistd
=yes
2482 echo "configure: failed program was:" >&5
2483 cat conftest.
$ac_ext >&5
2485 guile_cv_header_libc_with_unistd
=no
2494 echo "$ac_t""$guile_cv_header_libc_with_unistd" 1>&6
2495 if test "$guile_cv_header_libc_with_unistd" = yes; then
2496 cat >> confdefs.h
<<\EOF
2497 #define LIBC_H_WITH_UNISTD_H 1
2504 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2505 echo "configure:2506: checking for uid_t in sys/types.h" >&5
2506 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2507 echo $ac_n "(cached) $ac_c" 1>&6
2509 cat > conftest.
$ac_ext <<EOF
2510 #line 2511 "configure"
2511 #include "confdefs.h"
2512 #include <sys/types.h>
2514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2515 egrep "uid_t" >/dev
/null
2>&1; then
2517 ac_cv_type_uid_t
=yes
2526 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2527 if test $ac_cv_type_uid_t = no
; then
2528 cat >> confdefs.h
<<\EOF
2532 cat >> confdefs.h
<<\EOF
2538 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
2539 echo "configure:2540: checking type of array argument to getgroups" >&5
2540 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
2541 echo $ac_n "(cached) $ac_c" 1>&6
2543 if test "$cross_compiling" = yes; then
2544 ac_cv_type_getgroups
=cross
2546 cat > conftest.
$ac_ext <<EOF
2547 #line 2548 "configure"
2548 #include "confdefs.h"
2550 /* Thanks to Mike Rendell for this test. */
2551 #include <sys/types.h>
2554 #define MAX(x, y) ((x) > (y) ? (x) : (y))
2559 union { gid_t gval; long lval; } val;
2562 for (i = 0; i < NGID; i++)
2563 gidset[i] = val.gval;
2564 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
2566 /* Exit non-zero if getgroups seems to require an array of ints. This
2567 happens when gid_t is short but getgroups modifies an array of ints. */
2568 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
2572 if { (eval echo configure
:2573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2574 ac_cv_type_getgroups
=gid_t
2576 echo "configure: failed program was:" >&5
2577 cat conftest.
$ac_ext >&5
2579 ac_cv_type_getgroups
=int
2584 if test $ac_cv_type_getgroups = cross
; then
2585 cat > conftest.
$ac_ext <<EOF
2586 #line 2587 "configure"
2587 #include "confdefs.h"
2590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2591 egrep "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
2593 ac_cv_type_getgroups
=gid_t
2596 ac_cv_type_getgroups
=int
2603 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
2604 cat >> confdefs.h
<<EOF
2605 #define GETGROUPS_T $ac_cv_type_getgroups
2609 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2610 echo "configure:2611: checking return type of signal handlers" >&5
2611 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2612 echo $ac_n "(cached) $ac_c" 1>&6
2614 cat > conftest.
$ac_ext <<EOF
2615 #line 2616 "configure"
2616 #include "confdefs.h"
2617 #include <sys/types.h>
2623 extern "C" void (*signal (int, void (*)(int)))(int);
2625 void (*signal ()) ();
2632 if { (eval echo configure
:2633: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2634 ac_cv_type_signal
=void
2636 echo "configure: failed program was:" >&5
2637 cat conftest.
$ac_ext >&5
2639 ac_cv_type_signal
=int
2644 echo "$ac_t""$ac_cv_type_signal" 1>&6
2645 cat >> confdefs.h
<<EOF
2646 #define RETSIGTYPE $ac_cv_type_signal
2650 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2651 echo "configure:2652: checking for mode_t" >&5
2652 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2653 echo $ac_n "(cached) $ac_c" 1>&6
2655 cat > conftest.
$ac_ext <<EOF
2656 #line 2657 "configure"
2657 #include "confdefs.h"
2658 #include <sys/types.h>
2664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2665 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2667 ac_cv_type_mode_t
=yes
2670 ac_cv_type_mode_t
=no
2675 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2676 if test $ac_cv_type_mode_t = no
; then
2677 cat >> confdefs.h
<<\EOF
2684 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
2685 echo "configure:2686: checking for main in -lm" >&5
2686 ac_lib_var
=`echo m'_'main | sed 'y%./+-%__p_%'`
2687 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2688 echo $ac_n "(cached) $ac_c" 1>&6
2690 ac_save_LIBS
="$LIBS"
2692 cat > conftest.
$ac_ext <<EOF
2693 #line 2694 "configure"
2694 #include "confdefs.h"
2700 if { (eval echo configure
:2701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2702 eval "ac_cv_lib_$ac_lib_var=yes"
2704 echo "configure: failed program was:" >&5
2705 cat conftest.
$ac_ext >&5
2707 eval "ac_cv_lib_$ac_lib_var=no"
2710 LIBS
="$ac_save_LIBS"
2713 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2714 echo "$ac_t""yes" 1>&6
2715 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2716 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2717 cat >> confdefs.h
<<EOF
2718 #define $ac_tr_lib 1
2724 echo "$ac_t""no" 1>&6
2727 for ac_func
in gethostbyname
2729 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2730 echo "configure:2731: checking for $ac_func" >&5
2731 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2732 echo $ac_n "(cached) $ac_c" 1>&6
2734 cat > conftest.
$ac_ext <<EOF
2735 #line 2736 "configure"
2736 #include "confdefs.h"
2737 /* System header to define __stub macros and hopefully few prototypes,
2738 which can conflict with char $ac_func(); below. */
2740 /* Override any gcc2 internal prototype to avoid an error. */
2741 /* We use char because int might match the return type of a gcc2
2742 builtin and then its argument prototype would still apply. */
2747 /* The GNU C library defines this for functions which it implements
2748 to always fail with ENOSYS. Some functions are actually named
2749 something starting with __ and the normal name is an alias. */
2750 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2758 if { (eval echo configure
:2759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2760 eval "ac_cv_func_$ac_func=yes"
2762 echo "configure: failed program was:" >&5
2763 cat conftest.
$ac_ext >&5
2765 eval "ac_cv_func_$ac_func=no"
2770 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2771 echo "$ac_t""yes" 1>&6
2772 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2773 cat >> confdefs.h
<<EOF
2774 #define $ac_tr_func 1
2778 echo "$ac_t""no" 1>&6
2782 if test $ac_cv_func_gethostbyname = no
; then
2783 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2784 echo "configure:2785: checking for gethostbyname in -lnsl" >&5
2785 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2786 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2787 echo $ac_n "(cached) $ac_c" 1>&6
2789 ac_save_LIBS
="$LIBS"
2791 cat > conftest.
$ac_ext <<EOF
2792 #line 2793 "configure"
2793 #include "confdefs.h"
2794 /* Override any gcc2 internal prototype to avoid an error. */
2795 /* We use char because int might match the return type of a gcc2
2796 builtin and then its argument prototype would still apply. */
2797 char gethostbyname();
2803 if { (eval echo configure
:2804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2805 eval "ac_cv_lib_$ac_lib_var=yes"
2807 echo "configure: failed program was:" >&5
2808 cat conftest.
$ac_ext >&5
2810 eval "ac_cv_lib_$ac_lib_var=no"
2813 LIBS
="$ac_save_LIBS"
2816 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2817 echo "$ac_t""yes" 1>&6
2818 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2819 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2820 cat >> confdefs.h
<<EOF
2821 #define $ac_tr_lib 1
2827 echo "$ac_t""no" 1>&6
2831 for ac_func
in connect
2833 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2834 echo "configure:2835: checking for $ac_func" >&5
2835 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2836 echo $ac_n "(cached) $ac_c" 1>&6
2838 cat > conftest.
$ac_ext <<EOF
2839 #line 2840 "configure"
2840 #include "confdefs.h"
2841 /* System header to define __stub macros and hopefully few prototypes,
2842 which can conflict with char $ac_func(); below. */
2844 /* Override any gcc2 internal prototype to avoid an error. */
2845 /* We use char because int might match the return type of a gcc2
2846 builtin and then its argument prototype would still apply. */
2851 /* The GNU C library defines this for functions which it implements
2852 to always fail with ENOSYS. Some functions are actually named
2853 something starting with __ and the normal name is an alias. */
2854 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2862 if { (eval echo configure
:2863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2864 eval "ac_cv_func_$ac_func=yes"
2866 echo "configure: failed program was:" >&5
2867 cat conftest.
$ac_ext >&5
2869 eval "ac_cv_func_$ac_func=no"
2874 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2875 echo "$ac_t""yes" 1>&6
2876 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2877 cat >> confdefs.h
<<EOF
2878 #define $ac_tr_func 1
2882 echo "$ac_t""no" 1>&6
2886 if test $ac_cv_func_connect = no
; then
2887 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2888 echo "configure:2889: checking for connect in -lsocket" >&5
2889 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2890 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2891 echo $ac_n "(cached) $ac_c" 1>&6
2893 ac_save_LIBS
="$LIBS"
2894 LIBS
="-lsocket $LIBS"
2895 cat > conftest.
$ac_ext <<EOF
2896 #line 2897 "configure"
2897 #include "confdefs.h"
2898 /* Override any gcc2 internal prototype to avoid an error. */
2899 /* We use char because int might match the return type of a gcc2
2900 builtin and then its argument prototype would still apply. */
2907 if { (eval echo configure
:2908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2909 eval "ac_cv_lib_$ac_lib_var=yes"
2911 echo "configure: failed program was:" >&5
2912 cat conftest.
$ac_ext >&5
2914 eval "ac_cv_lib_$ac_lib_var=no"
2917 LIBS
="$ac_save_LIBS"
2920 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2921 echo "$ac_t""yes" 1>&6
2922 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2923 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2924 cat >> confdefs.h
<<EOF
2925 #define $ac_tr_lib 1
2928 LIBS
="-lsocket $LIBS"
2931 echo "$ac_t""no" 1>&6
2936 # Checks for dynamic linking
2938 if test "$enable_dynamic_linking" = "yes"; then
2940 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2941 echo "configure:2942: checking for dlopen in -ldl" >&5
2942 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2943 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2944 echo $ac_n "(cached) $ac_c" 1>&6
2946 ac_save_LIBS
="$LIBS"
2948 cat > conftest.
$ac_ext <<EOF
2949 #line 2950 "configure"
2950 #include "confdefs.h"
2951 /* Override any gcc2 internal prototype to avoid an error. */
2952 /* We use char because int might match the return type of a gcc2
2953 builtin and then its argument prototype would still apply. */
2960 if { (eval echo configure
:2961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2962 eval "ac_cv_lib_$ac_lib_var=yes"
2964 echo "configure: failed program was:" >&5
2965 cat conftest.
$ac_ext >&5
2967 eval "ac_cv_lib_$ac_lib_var=no"
2970 LIBS
="$ac_save_LIBS"
2973 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2974 echo "$ac_t""yes" 1>&6
2975 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2976 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2977 cat >> confdefs.h
<<EOF
2978 #define $ac_tr_lib 1
2984 echo "$ac_t""no" 1>&6
2987 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
2988 for ac_func
in dlopen
2990 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2991 echo "configure:2992: checking for $ac_func" >&5
2992 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2993 echo $ac_n "(cached) $ac_c" 1>&6
2995 cat > conftest.
$ac_ext <<EOF
2996 #line 2997 "configure"
2997 #include "confdefs.h"
2998 /* System header to define __stub macros and hopefully few prototypes,
2999 which can conflict with char $ac_func(); below. */
3001 /* Override any gcc2 internal prototype to avoid an error. */
3002 /* We use char because int might match the return type of a gcc2
3003 builtin and then its argument prototype would still apply. */
3008 /* The GNU C library defines this for functions which it implements
3009 to always fail with ENOSYS. Some functions are actually named
3010 something starting with __ and the normal name is an alias. */
3011 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3019 if { (eval echo configure
:3020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3021 eval "ac_cv_func_$ac_func=yes"
3023 echo "configure: failed program was:" >&5
3024 cat conftest.
$ac_ext >&5
3026 eval "ac_cv_func_$ac_func=no"
3031 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3032 echo "$ac_t""yes" 1>&6
3033 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3034 cat >> confdefs.h
<<EOF
3035 #define $ac_tr_func 1
3039 echo "$ac_t""no" 1>&6
3043 cat >> confdefs.h
<<\EOF
3044 #define DYNAMIC_LINKING 1
3048 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
3049 echo "configure:3050: checking for dld_link in -ldld" >&5
3050 ac_lib_var
=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
3051 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3052 echo $ac_n "(cached) $ac_c" 1>&6
3054 ac_save_LIBS
="$LIBS"
3056 cat > conftest.
$ac_ext <<EOF
3057 #line 3058 "configure"
3058 #include "confdefs.h"
3059 /* Override any gcc2 internal prototype to avoid an error. */
3060 /* We use char because int might match the return type of a gcc2
3061 builtin and then its argument prototype would still apply. */
3068 if { (eval echo configure
:3069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3070 eval "ac_cv_lib_$ac_lib_var=yes"
3072 echo "configure: failed program was:" >&5
3073 cat conftest.
$ac_ext >&5
3075 eval "ac_cv_lib_$ac_lib_var=no"
3078 LIBS
="$ac_save_LIBS"
3081 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3082 echo "$ac_t""yes" 1>&6
3083 ac_tr_lib
=HAVE_LIB
`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3084 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3085 cat >> confdefs.h
<<EOF
3086 #define $ac_tr_lib 1
3092 echo "$ac_t""no" 1>&6
3095 if test "$ac_cv_lib_dld_dld_link" = "yes"; then
3096 cat >> confdefs.h
<<\EOF
3097 #define DYNAMIC_LINKING 1
3101 for ac_func
in shl_load
3103 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3104 echo "configure:3105: checking for $ac_func" >&5
3105 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3106 echo $ac_n "(cached) $ac_c" 1>&6
3108 cat > conftest.
$ac_ext <<EOF
3109 #line 3110 "configure"
3110 #include "confdefs.h"
3111 /* System header to define __stub macros and hopefully few prototypes,
3112 which can conflict with char $ac_func(); below. */
3114 /* Override any gcc2 internal prototype to avoid an error. */
3115 /* We use char because int might match the return type of a gcc2
3116 builtin and then its argument prototype would still apply. */
3121 /* The GNU C library defines this for functions which it implements
3122 to always fail with ENOSYS. Some functions are actually named
3123 something starting with __ and the normal name is an alias. */
3124 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3132 if { (eval echo configure
:3133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3134 eval "ac_cv_func_$ac_func=yes"
3136 echo "configure: failed program was:" >&5
3137 cat conftest.
$ac_ext >&5
3139 eval "ac_cv_func_$ac_func=no"
3144 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3145 echo "$ac_t""yes" 1>&6
3146 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3147 cat >> confdefs.h
<<EOF
3148 #define $ac_tr_func 1
3152 echo "$ac_t""no" 1>&6
3156 if test "$ac_cv_func_shl_load" = "yes"; then
3157 cat >> confdefs.h
<<\EOF
3158 #define DYNAMIC_LINKING 1
3162 for ac_func
in dlopen
3164 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3165 echo "configure:3166: checking for $ac_func" >&5
3166 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3167 echo $ac_n "(cached) $ac_c" 1>&6
3169 cat > conftest.
$ac_ext <<EOF
3170 #line 3171 "configure"
3171 #include "confdefs.h"
3172 /* System header to define __stub macros and hopefully few prototypes,
3173 which can conflict with char $ac_func(); below. */
3175 /* Override any gcc2 internal prototype to avoid an error. */
3176 /* We use char because int might match the return type of a gcc2
3177 builtin and then its argument prototype would still apply. */
3182 /* The GNU C library defines this for functions which it implements
3183 to always fail with ENOSYS. Some functions are actually named
3184 something starting with __ and the normal name is an alias. */
3185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3193 if { (eval echo configure
:3194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3195 eval "ac_cv_func_$ac_func=yes"
3197 echo "configure: failed program was:" >&5
3198 cat conftest.
$ac_ext >&5
3200 eval "ac_cv_func_$ac_func=no"
3205 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3206 echo "$ac_t""yes" 1>&6
3207 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3208 cat >> confdefs.h
<<EOF
3209 #define $ac_tr_func 1
3213 echo "$ac_t""no" 1>&6
3217 if test "$ac_cv_func_dlopen" = "yes"; then
3218 cat >> confdefs.h
<<\EOF
3219 #define DYNAMIC_LINKING 1
3230 echo $ac_n "checking for underscore before symbols""... $ac_c" 1>&6
3231 echo "configure:3232: checking for underscore before symbols" >&5
3232 if eval "test \"`echo '$''{'guile_cv_uscore'+set}'`\" = set"; then
3233 echo $ac_n "(cached) $ac_c" 1>&6
3236 echo "main(){int i=1;}
3237 fnord(){int i=23; int ltuae=42;}" > conftest.c
3238 ${CC} conftest.c
> /dev
/null
3239 if (nm a.out |
grep _fnord
) > /dev
/null
; then
3246 echo "$ac_t""$guile_cv_uscore" 1>&6
3247 rm -f conftest.c a.out
3249 if test $guile_cv_uscore = yes; then
3250 cat >> confdefs.h
<<\EOF
3255 if test $ac_cv_func_dlopen = yes -o $ac_cv_lib_dl_dlopen = yes ; then
3256 echo $ac_n "checking whether dlsym always adds an underscore for us""... $ac_c" 1>&6
3257 echo "configure:3258: checking whether dlsym always adds an underscore for us" >&5
3258 if eval "test \"`echo '$''{'guile_cv_dlsym_adds_uscore'+set}'`\" = set"; then
3259 echo $ac_n "(cached) $ac_c" 1>&6
3261 if test "$cross_compiling" = yes; then
3262 guile_cv_dlsym_adds_uscore
=no
3264 cat > conftest.
$ac_ext <<EOF
3265 #line 3266 "configure"
3266 #include "confdefs.h"
3270 fnord() { int i=42;}
3271 main() { void *self, *ptr1, *ptr2; self=dlopen(NULL,RTLD_LAZY);
3272 if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord");
3273 if(ptr1 && !ptr2) exit(0); } exit(1); }
3276 if { (eval echo configure
:3277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3278 guile_cv_dlsym_adds_uscore
=yes
3279 cat >> confdefs.h
<<\EOF
3280 #define DLSYM_ADDS_USCORE 1
3284 echo "configure: failed program was:" >&5
3285 cat conftest.
$ac_ext >&5
3287 guile_cv_dlsym_adds_uscore
=no
3295 echo "$ac_t""$guile_cv_dlsym_adds_uscore" 1>&6
3300 for ac_func
in ctermid ftime getcwd geteuid gettimeofday lstat mkdir mknod nice readlink rename
rmdir select setegid seteuid setlocale setpgid setsid sigaction siginterrupt strftime strptime symlink sync tcgetpgrp tcsetpgrp
times uname waitpid bzero strdup system
usleep atexit on_exit
3302 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3303 echo "configure:3304: checking for $ac_func" >&5
3304 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3305 echo $ac_n "(cached) $ac_c" 1>&6
3307 cat > conftest.
$ac_ext <<EOF
3308 #line 3309 "configure"
3309 #include "confdefs.h"
3310 /* System header to define __stub macros and hopefully few prototypes,
3311 which can conflict with char $ac_func(); below. */
3313 /* Override any gcc2 internal prototype to avoid an error. */
3314 /* We use char because int might match the return type of a gcc2
3315 builtin and then its argument prototype would still apply. */
3320 /* The GNU C library defines this for functions which it implements
3321 to always fail with ENOSYS. Some functions are actually named
3322 something starting with __ and the normal name is an alias. */
3323 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3331 if { (eval echo configure
:3332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3333 eval "ac_cv_func_$ac_func=yes"
3335 echo "configure: failed program was:" >&5
3336 cat conftest.
$ac_ext >&5
3338 eval "ac_cv_func_$ac_func=no"
3343 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3344 echo "$ac_t""yes" 1>&6
3345 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3346 cat >> confdefs.h
<<EOF
3347 #define $ac_tr_func 1
3351 echo "$ac_t""no" 1>&6
3356 ### Some systems don't declare some functions. On such systems, we
3357 ### need to at least provide our own K&R-style declarations.
3359 ### GUILE_FUNC_DECLARED(function, headerfile)
3361 ### Check for a declaration of FUNCTION in HEADERFILE; if it is
3362 ### not there, #define MISSING_FUNCTION_DECL.
3366 echo $ac_n "checking for strptime declaration""... $ac_c" 1>&6
3367 echo "configure:3368: checking for strptime declaration" >&5
3368 if eval "test \"`echo '$''{'guile_cv_func_strptime_declared'+set}'`\" = set"; then
3369 echo $ac_n "(cached) $ac_c" 1>&6
3371 cat > conftest.
$ac_ext <<EOF
3372 #line 3373 "configure"
3373 #include "confdefs.h"
3376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3377 egrep "strptime" >/dev
/null
2>&1; then
3379 guile_cv_func_strptime_declared
=yes
3382 guile_cv_func_strptime_declared
=no
3388 echo "$ac_t""$guile_cv_func_strptime_declared" 1>&6
3389 if test x
$guile_cv_func_strptime_declared = xno
; then
3390 cat >> confdefs.h
<<\EOF
3391 #define MISSING_STRPTIME_DECL 1
3397 echo $ac_n "checking for bzero declaration""... $ac_c" 1>&6
3398 echo "configure:3399: checking for bzero declaration" >&5
3399 if eval "test \"`echo '$''{'guile_cv_func_bzero_declared'+set}'`\" = set"; then
3400 echo $ac_n "(cached) $ac_c" 1>&6
3402 cat > conftest.
$ac_ext <<EOF
3403 #line 3404 "configure"
3404 #include "confdefs.h"
3407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3408 egrep "bzero" >/dev
/null
2>&1; then
3410 guile_cv_func_bzero_declared
=yes
3413 guile_cv_func_bzero_declared
=no
3419 echo "$ac_t""$guile_cv_func_bzero_declared" 1>&6
3420 if test x
$guile_cv_func_bzero_declared = xno
; then
3421 cat >> confdefs.h
<<\EOF
3422 #define MISSING_BZERO_DECL 1
3428 echo $ac_n "checking for sleep declaration""... $ac_c" 1>&6
3429 echo "configure:3430: checking for sleep declaration" >&5
3430 if eval "test \"`echo '$''{'guile_cv_func_sleep_declared'+set}'`\" = set"; then
3431 echo $ac_n "(cached) $ac_c" 1>&6
3433 cat > conftest.
$ac_ext <<EOF
3434 #line 3435 "configure"
3435 #include "confdefs.h"
3438 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3439 egrep "sleep" >/dev
/null
2>&1; then
3441 guile_cv_func_sleep_declared
=yes
3444 guile_cv_func_sleep_declared
=no
3450 echo "$ac_t""$guile_cv_func_sleep_declared" 1>&6
3451 if test x
$guile_cv_func_sleep_declared = xno
; then
3452 cat >> confdefs.h
<<\EOF
3453 #define MISSING_SLEEP_DECL 1
3459 echo $ac_n "checking for usleep declaration""... $ac_c" 1>&6
3460 echo "configure:3461: checking for usleep declaration" >&5
3461 if eval "test \"`echo '$''{'guile_cv_func_usleep_declared'+set}'`\" = set"; then
3462 echo $ac_n "(cached) $ac_c" 1>&6
3464 cat > conftest.
$ac_ext <<EOF
3465 #line 3466 "configure"
3466 #include "confdefs.h"
3469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3470 egrep "usleep" >/dev
/null
2>&1; then
3472 guile_cv_func_usleep_declared
=yes
3475 guile_cv_func_usleep_declared
=no
3481 echo "$ac_t""$guile_cv_func_usleep_declared" 1>&6
3482 if test x
$guile_cv_func_usleep_declared = xno
; then
3483 cat >> confdefs.h
<<\EOF
3484 #define MISSING_USLEEP_DECL 1
3490 ### On some systems usleep has no return value. If it does have one,
3491 ### we'd like to return it; otherwise, we'll fake it.
3492 echo $ac_n "checking return type of usleep""... $ac_c" 1>&6
3493 echo "configure:3494: checking return type of usleep" >&5
3494 if eval "test \"`echo '$''{'guile_cv_func_usleep_return_type'+set}'`\" = set"; then
3495 echo $ac_n "(cached) $ac_c" 1>&6
3497 cat > conftest.
$ac_ext <<EOF
3498 #line 3499 "configure"
3499 #include "confdefs.h"
3500 #include </usr/include/unistd.h>
3502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3503 egrep "void[ ]+usleep" >/dev
/null
2>&1; then
3505 guile_cv_func_usleep_return_type
=void
3508 guile_cv_func_usleep_return_type
=int
3514 echo "$ac_t""$guile_cv_func_usleep_return_type" 1>&6
3515 case "$guile_cv_func_usleep_return_type" in
3517 cat >> confdefs.h
<<\EOF
3518 #define USLEEP_RETURNS_VOID 1
3525 ac_safe
=`echo "sys/un.h" | sed 'y%./+-%__p_%'`
3526 echo $ac_n "checking for sys/un.h""... $ac_c" 1>&6
3527 echo "configure:3528: checking for sys/un.h" >&5
3528 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3529 echo $ac_n "(cached) $ac_c" 1>&6
3531 cat > conftest.
$ac_ext <<EOF
3532 #line 3533 "configure"
3533 #include "confdefs.h"
3536 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3537 { (eval echo configure
:3538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3538 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3539 if test -z "$ac_err"; then
3541 eval "ac_cv_header_$ac_safe=yes"
3544 echo "configure: failed program was:" >&5
3545 cat conftest.
$ac_ext >&5
3547 eval "ac_cv_header_$ac_safe=no"
3551 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3552 echo "$ac_t""yes" 1>&6
3555 echo "$ac_t""no" 1>&6
3558 if test -n "$have_sys_un_h" ; then
3559 cat >> confdefs.h
<<\EOF
3560 #define HAVE_UNIX_DOMAIN_SOCKETS 1
3565 for ac_func
in socketpair getgroups setpwent pause tzset
3567 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3568 echo "configure:3569: checking for $ac_func" >&5
3569 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3570 echo $ac_n "(cached) $ac_c" 1>&6
3572 cat > conftest.
$ac_ext <<EOF
3573 #line 3574 "configure"
3574 #include "confdefs.h"
3575 /* System header to define __stub macros and hopefully few prototypes,
3576 which can conflict with char $ac_func(); below. */
3578 /* Override any gcc2 internal prototype to avoid an error. */
3579 /* We use char because int might match the return type of a gcc2
3580 builtin and then its argument prototype would still apply. */
3585 /* The GNU C library defines this for functions which it implements
3586 to always fail with ENOSYS. Some functions are actually named
3587 something starting with __ and the normal name is an alias. */
3588 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3596 if { (eval echo configure
:3597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3598 eval "ac_cv_func_$ac_func=yes"
3600 echo "configure: failed program was:" >&5
3601 cat conftest.
$ac_ext >&5
3603 eval "ac_cv_func_$ac_func=no"
3608 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3609 echo "$ac_t""yes" 1>&6
3610 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3611 cat >> confdefs.h
<<EOF
3612 #define $ac_tr_func 1
3616 echo "$ac_t""no" 1>&6
3624 for ac_func
in sethostent gethostent endhostent setnetent getnetent endnetent setprotoent getprotoent endprotoent setservent getservent endservent getnetbyaddr getnetbyname inet_lnaof inet_makeaddr inet_netof
3626 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3627 echo "configure:3628: checking for $ac_func" >&5
3628 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3629 echo $ac_n "(cached) $ac_c" 1>&6
3631 cat > conftest.
$ac_ext <<EOF
3632 #line 3633 "configure"
3633 #include "confdefs.h"
3634 /* System header to define __stub macros and hopefully few prototypes,
3635 which can conflict with char $ac_func(); below. */
3637 /* Override any gcc2 internal prototype to avoid an error. */
3638 /* We use char because int might match the return type of a gcc2
3639 builtin and then its argument prototype would still apply. */
3644 /* The GNU C library defines this for functions which it implements
3645 to always fail with ENOSYS. Some functions are actually named
3646 something starting with __ and the normal name is an alias. */
3647 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3655 if { (eval echo configure
:3656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3657 eval "ac_cv_func_$ac_func=yes"
3659 echo "configure: failed program was:" >&5
3660 cat conftest.
$ac_ext >&5
3662 eval "ac_cv_func_$ac_func=no"
3667 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3668 echo "$ac_t""yes" 1>&6
3669 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3670 cat >> confdefs.h
<<EOF
3671 #define $ac_tr_func 1
3675 echo "$ac_t""no" 1>&6
3682 echo $ac_n "checking for restartable system calls""... $ac_c" 1>&6
3683 echo "configure:3684: checking for restartable system calls" >&5
3684 if eval "test \"`echo '$''{'ac_cv_sys_restartable_syscalls'+set}'`\" = set"; then
3685 echo $ac_n "(cached) $ac_c" 1>&6
3687 if test "$cross_compiling" = yes; then
3688 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3690 cat > conftest.
$ac_ext <<EOF
3691 #line 3692 "configure"
3692 #include "confdefs.h"
3693 /* Exit 0 (true) if wait returns something other than -1,
3694 i.e. the pid of the child, which means that wait was restarted
3695 after getting the signal. */
3696 #include <sys/types.h>
3700 int i = fork (), status;
3701 if (i == 0) { sleep (3); kill (getppid (), SIGINT); sleep (3); exit (0); }
3702 signal (SIGINT, ucatch);
3704 if (status == -1) wait(&i);
3705 exit (status == -1);
3709 if { (eval echo configure
:3710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3711 ac_cv_sys_restartable_syscalls
=yes
3713 echo "configure: failed program was:" >&5
3714 cat conftest.
$ac_ext >&5
3716 ac_cv_sys_restartable_syscalls
=no
3723 echo "$ac_t""$ac_cv_sys_restartable_syscalls" 1>&6
3724 if test $ac_cv_sys_restartable_syscalls = yes; then
3725 cat >> confdefs.h
<<\EOF
3726 #define HAVE_RESTARTABLE_SYSCALLS 1
3732 if test "$enable_regex" = yes; then
3733 if test "$ac_cv_header_regex_h" = yes ||
3734 test "$ac_cv_header_rxposix_h" = yes ||
3735 test "$ac_cv_header_rx_rxposix_h" = yes; then
3736 echo $ac_n "checking for regcomp""... $ac_c" 1>&6
3737 echo "configure:3738: checking for regcomp" >&5
3738 if eval "test \"`echo '$''{'ac_cv_func_regcomp_norx'+set}'`\" = set"; then
3739 echo $ac_n "(cached) $ac_c" 1>&6
3741 cat > conftest.
$ac_ext <<EOF
3742 #line 3743 "configure"
3743 #include "confdefs.h"
3744 /* System header to define __stub macros and hopefully few prototypes,
3745 which can conflict with char regcomp(); below. */
3747 /* Override any gcc2 internal prototype to avoid an error. */
3748 /* We use char because int might match the return type of a gcc2
3749 builtin and then its argument prototype would still apply. */
3754 /* The GNU C library defines this for functions which it implements
3755 to always fail with ENOSYS. Some functions are actually named
3756 something starting with __ and the normal name is an alias. */
3757 #if defined (__stub_regcomp) || defined (__stub___regcomp)
3765 if { (eval echo configure
:3766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3767 eval "ac_cv_func_regcomp_norx=yes"
3769 echo "configure: failed program was:" >&5
3770 cat conftest.
$ac_ext >&5
3772 eval "ac_cv_func_regcomp_norx=no"
3777 if eval "test \"`echo '$ac_cv_func_'regcomp'_'norx`\" = yes"; then
3778 echo "$ac_t""yes" 1>&6
3779 LIBOBJS
="regex-posix.o $LIBOBJS"
3781 echo "$ac_t""no" 1>&6
3782 echo $ac_n "checking for main in -lrx""... $ac_c" 1>&6
3783 echo "configure:3784: checking for main in -lrx" >&5
3784 ac_lib_var
=`echo rx'_'main | sed 'y%./+-%__p_%'`
3785 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3786 echo $ac_n "(cached) $ac_c" 1>&6
3788 ac_save_LIBS
="$LIBS"
3790 cat > conftest.
$ac_ext <<EOF
3791 #line 3792 "configure"
3792 #include "confdefs.h"
3798 if { (eval echo configure
:3799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3800 eval "ac_cv_lib_$ac_lib_var=yes"
3802 echo "configure: failed program was:" >&5
3803 cat conftest.
$ac_ext >&5
3805 eval "ac_cv_lib_$ac_lib_var=no"
3808 LIBS
="$ac_save_LIBS"
3811 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3812 echo "$ac_t""yes" 1>&6
3813 ac_tr_lib
=HAVE_LIB
`echo rx | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3814 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3815 cat >> confdefs.h
<<EOF
3816 #define $ac_tr_lib 1
3822 echo "$ac_t""no" 1>&6
3825 echo $ac_n "checking for regcomp""... $ac_c" 1>&6
3826 echo "configure:3827: checking for regcomp" >&5
3827 if eval "test \"`echo '$''{'ac_cv_func_regcomp_rx'+set}'`\" = set"; then
3828 echo $ac_n "(cached) $ac_c" 1>&6
3830 cat > conftest.
$ac_ext <<EOF
3831 #line 3832 "configure"
3832 #include "confdefs.h"
3833 /* System header to define __stub macros and hopefully few prototypes,
3834 which can conflict with char regcomp(); below. */
3836 /* Override any gcc2 internal prototype to avoid an error. */
3837 /* We use char because int might match the return type of a gcc2
3838 builtin and then its argument prototype would still apply. */
3843 /* The GNU C library defines this for functions which it implements
3844 to always fail with ENOSYS. Some functions are actually named
3845 something starting with __ and the normal name is an alias. */
3846 #if defined (__stub_regcomp) || defined (__stub___regcomp)
3854 if { (eval echo configure
:3855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3856 eval "ac_cv_func_regcomp_rx=yes"
3858 echo "configure: failed program was:" >&5
3859 cat conftest.
$ac_ext >&5
3861 eval "ac_cv_func_regcomp_rx=no"
3866 if eval "test \"`echo '$ac_cv_func_'regcomp'_'rx`\" = yes"; then
3867 echo "$ac_t""yes" 1>&6
3868 LIBOBJS
="regex-posix.o $LIBOBJS"
3870 echo "$ac_t""no" 1>&6
3876 if test "$ac_cv_func_regcomp_norx" = yes ||
3877 test "$ac_cv_func_regcomp_rx" = yes; then
3878 cat >> confdefs.h
<<\EOF
3879 #define HAVE_REGCOMP 1
3886 for ac_func
in inet_aton putenv strerror memmove
3888 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3889 echo "configure:3890: checking for $ac_func" >&5
3890 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3891 echo $ac_n "(cached) $ac_c" 1>&6
3893 cat > conftest.
$ac_ext <<EOF
3894 #line 3895 "configure"
3895 #include "confdefs.h"
3896 /* System header to define __stub macros and hopefully few prototypes,
3897 which can conflict with char $ac_func(); below. */
3899 /* Override any gcc2 internal prototype to avoid an error. */
3900 /* We use char because int might match the return type of a gcc2
3901 builtin and then its argument prototype would still apply. */
3906 /* The GNU C library defines this for functions which it implements
3907 to always fail with ENOSYS. Some functions are actually named
3908 something starting with __ and the normal name is an alias. */
3909 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3917 if { (eval echo configure
:3918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3919 eval "ac_cv_func_$ac_func=yes"
3921 echo "configure: failed program was:" >&5
3922 cat conftest.
$ac_ext >&5
3924 eval "ac_cv_func_$ac_func=no"
3929 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3930 echo "$ac_t""yes" 1>&6
3931 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3932 cat >> confdefs.h
<<EOF
3933 #define $ac_tr_func 1
3937 echo "$ac_t""no" 1>&6
3938 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
3944 # When testing for the presence of alloca, we need to add alloca.o
3945 # explicitly to LIBOBJS to make sure that it is translated to
3946 # `alloca.lo' for libtool later on. This can and should be done more cleanly.
3947 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3948 # for constant arguments. Useless!
3949 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3950 echo "configure:3951: checking for working alloca.h" >&5
3951 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3952 echo $ac_n "(cached) $ac_c" 1>&6
3954 cat > conftest.
$ac_ext <<EOF
3955 #line 3956 "configure"
3956 #include "confdefs.h"
3959 char *p = alloca(2 * sizeof(int));
3962 if { (eval echo configure
:3963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3964 ac_cv_header_alloca_h
=yes
3966 echo "configure: failed program was:" >&5
3967 cat conftest.
$ac_ext >&5
3969 ac_cv_header_alloca_h
=no
3974 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3975 if test $ac_cv_header_alloca_h = yes; then
3976 cat >> confdefs.h
<<\EOF
3977 #define HAVE_ALLOCA_H 1
3982 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3983 echo "configure:3984: checking for alloca" >&5
3984 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3985 echo $ac_n "(cached) $ac_c" 1>&6
3987 cat > conftest.
$ac_ext <<EOF
3988 #line 3989 "configure"
3989 #include "confdefs.h"
3992 # define alloca __builtin_alloca
3995 # include <malloc.h>
3996 # define alloca _alloca
3999 # include <alloca.h>
4004 # ifndef alloca /* predefined by HP cc +Olibcalls */
4013 char *p = (char *) alloca(1);
4016 if { (eval echo configure
:4017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4018 ac_cv_func_alloca_works
=yes
4020 echo "configure: failed program was:" >&5
4021 cat conftest.
$ac_ext >&5
4023 ac_cv_func_alloca_works
=no
4028 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4029 if test $ac_cv_func_alloca_works = yes; then
4030 cat >> confdefs.h
<<\EOF
4031 #define HAVE_ALLOCA 1
4036 if test $ac_cv_func_alloca_works = no
; then
4037 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4038 # that cause trouble. Some versions do not even contain alloca or
4039 # contain a buggy version. If you still want to use their alloca,
4040 # use ar to extract alloca.o from them instead of compiling alloca.c.
4041 ALLOCA
=alloca.
${ac_objext}
4042 cat >> confdefs.h
<<\EOF
4047 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4048 echo "configure:4049: checking whether alloca needs Cray hooks" >&5
4049 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4050 echo $ac_n "(cached) $ac_c" 1>&6
4052 cat > conftest.
$ac_ext <<EOF
4053 #line 4054 "configure"
4054 #include "confdefs.h"
4055 #if defined(CRAY) && ! defined(CRAY2)
4062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4063 egrep "webecray" >/dev
/null
2>&1; then
4074 echo "$ac_t""$ac_cv_os_cray" 1>&6
4075 if test $ac_cv_os_cray = yes; then
4076 for ac_func
in _getb67 GETB67 getb67
; do
4077 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4078 echo "configure:4079: checking for $ac_func" >&5
4079 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4080 echo $ac_n "(cached) $ac_c" 1>&6
4082 cat > conftest.
$ac_ext <<EOF
4083 #line 4084 "configure"
4084 #include "confdefs.h"
4085 /* System header to define __stub macros and hopefully few prototypes,
4086 which can conflict with char $ac_func(); below. */
4088 /* Override any gcc2 internal prototype to avoid an error. */
4089 /* We use char because int might match the return type of a gcc2
4090 builtin and then its argument prototype would still apply. */
4095 /* The GNU C library defines this for functions which it implements
4096 to always fail with ENOSYS. Some functions are actually named
4097 something starting with __ and the normal name is an alias. */
4098 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4106 if { (eval echo configure
:4107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4108 eval "ac_cv_func_$ac_func=yes"
4110 echo "configure: failed program was:" >&5
4111 cat conftest.
$ac_ext >&5
4113 eval "ac_cv_func_$ac_func=no"
4118 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4119 echo "$ac_t""yes" 1>&6
4120 cat >> confdefs.h
<<EOF
4121 #define CRAY_STACKSEG_END $ac_func
4126 echo "$ac_t""no" 1>&6
4132 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4133 echo "configure:4134: checking stack direction for C alloca" >&5
4134 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4135 echo $ac_n "(cached) $ac_c" 1>&6
4137 if test "$cross_compiling" = yes; then
4138 ac_cv_c_stack_direction
=0
4140 cat > conftest.
$ac_ext <<EOF
4141 #line 4142 "configure"
4142 #include "confdefs.h"
4143 find_stack_direction ()
4145 static char *addr = 0;
4150 return find_stack_direction ();
4153 return (&dummy > addr) ? 1 : -1;
4157 exit (find_stack_direction() < 0);
4160 if { (eval echo configure
:4161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4162 ac_cv_c_stack_direction
=1
4164 echo "configure: failed program was:" >&5
4165 cat conftest.
$ac_ext >&5
4167 ac_cv_c_stack_direction
=-1
4174 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4175 cat >> confdefs.h
<<EOF
4176 #define STACK_DIRECTION $ac_cv_c_stack_direction
4181 if test "$ALLOCA" = "alloca.o"; then LIBOBJS
="alloca.o $LIBOBJS"; fi
4183 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
4184 echo "configure:4185: checking for st_rdev in struct stat" >&5
4185 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
4186 echo $ac_n "(cached) $ac_c" 1>&6
4188 cat > conftest.
$ac_ext <<EOF
4189 #line 4190 "configure"
4190 #include "confdefs.h"
4191 #include <sys/types.h>
4192 #include <sys/stat.h>
4194 struct stat s; s.st_rdev;
4197 if { (eval echo configure
:4198: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4199 ac_cv_struct_st_rdev
=yes
4201 echo "configure: failed program was:" >&5
4202 cat conftest.
$ac_ext >&5
4204 ac_cv_struct_st_rdev
=no
4209 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
4210 if test $ac_cv_struct_st_rdev = yes; then
4211 cat >> confdefs.h
<<\EOF
4212 #define HAVE_ST_RDEV 1
4217 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
4218 echo "configure:4219: checking for st_blksize in struct stat" >&5
4219 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
4220 echo $ac_n "(cached) $ac_c" 1>&6
4222 cat > conftest.
$ac_ext <<EOF
4223 #line 4224 "configure"
4224 #include "confdefs.h"
4225 #include <sys/types.h>
4226 #include <sys/stat.h>
4228 struct stat s; s.st_blksize;
4231 if { (eval echo configure
:4232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4233 ac_cv_struct_st_blksize
=yes
4235 echo "configure: failed program was:" >&5
4236 cat conftest.
$ac_ext >&5
4238 ac_cv_struct_st_blksize
=no
4243 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
4244 if test $ac_cv_struct_st_blksize = yes; then
4245 cat >> confdefs.h
<<\EOF
4246 #define HAVE_ST_BLKSIZE 1
4252 # We could use AC_STRUCT_ST_BLOCKS here, but that adds fileblocks.o to
4253 # LIBOBJS, which we don't need. This seems more direct.
4254 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
4255 echo "configure:4256: checking for st_blocks in struct stat" >&5
4256 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
4257 echo $ac_n "(cached) $ac_c" 1>&6
4259 cat > conftest.
$ac_ext <<EOF
4260 #line 4261 "configure"
4261 #include "confdefs.h"
4262 #include <sys/types.h>
4263 #include <sys/stat.h>
4265 struct stat s; s.st_blocks;
4268 if { (eval echo configure
:4269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4270 ac_cv_struct_st_blocks
=yes
4272 echo "configure: failed program was:" >&5
4273 cat conftest.
$ac_ext >&5
4275 ac_cv_struct_st_blocks
=no
4280 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
4281 if test $ac_cv_struct_st_blocks = yes; then
4282 cat >> confdefs.h
<<\EOF
4283 #define HAVE_ST_BLOCKS 1
4288 echo $ac_n "checking for S_ISLNK in sys/stat.h""... $ac_c" 1>&6
4289 echo "configure:4290: checking for S_ISLNK in sys/stat.h" >&5
4290 if eval "test \"`echo '$''{'ac_cv_macro_S_ISLNK'+set}'`\" = set"; then
4291 echo $ac_n "(cached) $ac_c" 1>&6
4293 cat > conftest.
$ac_ext <<EOF
4294 #line 4295 "configure"
4295 #include "confdefs.h"
4296 #include <sys/stat.h>
4301 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4302 { (eval echo configure
:4303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4303 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4304 if test -z "$ac_err"; then
4306 ac_cv_macro_S_ISLNK
=yes
4309 echo "configure: failed program was:" >&5
4310 cat conftest.
$ac_ext >&5
4312 ac_cv_macro_S_ISLNK
=no
4317 echo "$ac_t""$ac_cv_macro_S_ISLNK" 1>&6
4318 if test $ac_cv_macro_S_ISLNK = yes; then
4319 cat >> confdefs.h
<<\EOF
4320 #define HAVE_S_ISLNK 1
4325 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4326 echo "configure:4327: checking whether struct tm is in sys/time.h or time.h" >&5
4327 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
4328 echo $ac_n "(cached) $ac_c" 1>&6
4330 cat > conftest.
$ac_ext <<EOF
4331 #line 4332 "configure"
4332 #include "confdefs.h"
4333 #include <sys/types.h>
4336 struct tm *tp; tp->tm_sec;
4339 if { (eval echo configure
:4340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4341 ac_cv_struct_tm
=time.h
4343 echo "configure: failed program was:" >&5
4344 cat conftest.
$ac_ext >&5
4346 ac_cv_struct_tm
=sys
/time.h
4351 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4352 if test $ac_cv_struct_tm = sys
/time.h
; then
4353 cat >> confdefs.h
<<\EOF
4354 #define TM_IN_SYS_TIME 1
4359 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4360 echo "configure:4361: checking for tm_zone in struct tm" >&5
4361 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
4362 echo $ac_n "(cached) $ac_c" 1>&6
4364 cat > conftest.
$ac_ext <<EOF
4365 #line 4366 "configure"
4366 #include "confdefs.h"
4367 #include <sys/types.h>
4368 #include <$ac_cv_struct_tm>
4370 struct tm tm; tm.tm_zone;
4373 if { (eval echo configure
:4374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4375 ac_cv_struct_tm_zone
=yes
4377 echo "configure: failed program was:" >&5
4378 cat conftest.
$ac_ext >&5
4380 ac_cv_struct_tm_zone
=no
4385 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4386 if test "$ac_cv_struct_tm_zone" = yes; then
4387 cat >> confdefs.h
<<\EOF
4388 #define HAVE_TM_ZONE 1
4392 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4393 echo "configure:4394: checking for tzname" >&5
4394 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
4395 echo $ac_n "(cached) $ac_c" 1>&6
4397 cat > conftest.
$ac_ext <<EOF
4398 #line 4399 "configure"
4399 #include "confdefs.h"
4401 #ifndef tzname /* For SGI. */
4402 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4408 if { (eval echo configure
:4409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4410 ac_cv_var_tzname
=yes
4412 echo "configure: failed program was:" >&5
4413 cat conftest.
$ac_ext >&5
4420 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4421 if test $ac_cv_var_tzname = yes; then
4422 cat >> confdefs.h
<<\EOF
4423 #define HAVE_TZNAME 1
4430 echo $ac_n "checking whether we need POSIX to get struct utimbuf""... $ac_c" 1>&6
4431 echo "configure:4432: checking whether we need POSIX to get struct utimbuf" >&5
4432 if eval "test \"`echo '$''{'guile_cv_struct_utimbuf_needs_posix'+set}'`\" = set"; then
4433 echo $ac_n "(cached) $ac_c" 1>&6
4435 cat > conftest.
$ac_ext <<EOF
4436 #line 4437 "configure"
4437 #include "confdefs.h"
4440 #include <sys/utime.h>
4447 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4448 { (eval echo configure
:4449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4449 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4450 if test -z "$ac_err"; then
4452 guile_cv_struct_utimbuf_needs_posix
=no
4455 echo "configure: failed program was:" >&5
4456 cat conftest.
$ac_ext >&5
4458 guile_cv_struct_utimbuf_needs_posix
=yes
4463 echo "$ac_t""$guile_cv_struct_utimbuf_needs_posix" 1>&6
4464 if test "$guile_cv_struct_utimbuf_needs_posix" = yes; then
4465 cat >> confdefs.h
<<\EOF
4466 #define UTIMBUF_NEEDS_POSIX 1
4471 #--------------------------------------------------------------------
4473 # Which way does the stack grow?
4475 #--------------------------------------------------------------------
4477 if test "$cross_compiling" = yes; then
4478 echo "configure: warning: Guessing that stack grows down -- see scmconfig.h.in" 1>&2
4480 cat > conftest.
$ac_ext <<EOF
4481 #line 4482 "configure"
4482 #include "confdefs.h"
4483 aux (l) unsigned long l;
4484 { int x; exit (l >= ((unsigned long)&x)); }
4485 main () { int q; aux((unsigned long)&q); }
4487 if { (eval echo configure
:4488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4489 cat >> confdefs.h
<<\EOF
4490 #define SCM_STACK_GROWS_UP 1
4494 echo "configure: failed program was:" >&5
4495 cat conftest.
$ac_ext >&5
4501 echo $ac_n "checking whether floats fit in longs""... $ac_c" 1>&6
4502 echo "configure:4503: checking whether floats fit in longs" >&5
4503 if eval "test \"`echo '$''{'guile_cv_type_float_fits_long'+set}'`\" = set"; then
4504 echo $ac_n "(cached) $ac_c" 1>&6
4506 if test "$cross_compiling" = yes; then
4507 guile_cv_type_float_fits_long
=guess-yes
4509 cat > conftest.
$ac_ext <<EOF
4510 #line 4511 "configure"
4511 #include "confdefs.h"
4512 main () { exit (sizeof(float) > sizeof(long)); }
4514 if { (eval echo configure
:4515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4516 guile_cv_type_float_fits_long
=yes
4518 echo "configure: failed program was:" >&5
4519 cat conftest.
$ac_ext >&5
4521 guile_cv_type_float_fits_long
=no
4528 echo "$ac_t""$guile_cv_type_float_fits_long" 1>&6
4529 case $guile_cv_type_float_fits_long in
4531 cat >> confdefs.h
<<\EOF
4532 #define SCM_SINGLES 1
4537 cat >> confdefs.h
<<\EOF
4538 #define SCM_SINGLES 1
4541 echo "configure: warning: guessing that sizeof(long) == sizeof(float)" 1>&2
4542 echo "configure: warning: see SCM_SINGLES in scmconfig.h.in" 1>&2
4547 echo $ac_n "checking for struct linger""... $ac_c" 1>&6
4548 echo "configure:4549: checking for struct linger" >&5
4549 if eval "test \"`echo '$''{'scm_cv_struct_linger'+set}'`\" = set"; then
4550 echo $ac_n "(cached) $ac_c" 1>&6
4552 cat > conftest.
$ac_ext <<EOF
4553 #line 4554 "configure"
4554 #include "confdefs.h"
4556 #include <sys/types.h>
4557 #include <sys/socket.h>
4559 struct linger lgr; lgr.l_linger = 100
4562 if { (eval echo configure
:4563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4564 scm_cv_struct_linger
="yes"
4566 echo "configure: failed program was:" >&5
4567 cat conftest.
$ac_ext >&5
4569 scm_cv_struct_linger
="no"
4574 echo "$ac_t""$scm_cv_struct_linger" 1>&6
4575 if test $scm_cv_struct_linger = yes; then
4576 cat >> confdefs.h
<<\EOF
4577 #define HAVE_STRUCT_LINGER 1
4582 #--------------------------------------------------------------------
4584 # Flags for thread support
4586 #--------------------------------------------------------------------
4588 ### What thread package has the user asked for?
4589 # Check whether --with-threads or --without-threads was given.
4590 if test "${with_threads+set}" = set; then
4591 withval
="$with_threads"
4598 ### Turn $with_threads into either the name of a threads package, like
4599 ### `qt', or `no', meaning that threads should not be supported.
4600 echo $ac_n "checking whether to support threads""... $ac_c" 1>&6
4601 echo "configure:4602: checking whether to support threads" >&5
4602 case "$with_threads" in
4603 "yes" |
"qt" |
"coop" |
"")
4609 { echo "configure: error: invalid value for --with-threads: $with_threads" 1>&2; exit 1; }
4612 echo "$ac_t""$with_threads" 1>&6
4614 ## Make sure the threads package we've chosen is actually supported on
4615 ## the present platform.
4616 case "${with_threads}" in
4618 ## This configures the QuickThreads package, and sets or clears
4619 ## the THREAD_PACKAGE variable if qthreads don't configure
4624 echo $ac_n "checking QuickThreads configuration""... $ac_c" 1>&6
4625 echo "configure:4626: checking QuickThreads configuration" >&5
4626 # How can we refer to the qt source directory from within the qt build
4627 # directory? For headers, we can rely on the fact that the qt src
4628 # directory appears in the #include path.
4629 qtsrcdir
="`(cd $srcdir; pwd)`/qt"
4643 ## NetBSD needs to be told to pass the assembly code through
4644 ## the C preprocessor. Other GCC installations seem to do
4645 ## this by default, but NetBSD's doesn't. We could get the
4646 ## same effect by giving the file a name ending with .S
4647 ## instead of .s, but I don't see how to tell automake to do
4649 qthread_asflags
='-x assembler-with-cpp'
4656 qtmds_s
=md
/mips-irix5.s
4658 qtdmdb_s
=md
/mips_b.s
4665 qtdmdb_s
=md
/mips_b.s
4668 port_name
=sparc-sunos
4672 qtdmdb_s
=md
/_sparc_b.s
4679 qtdmdb_s
=md
/sparc_b.s
4689 echo "Unknown configuration; threads package disabled"
4695 # Did configuration succeed?
4696 if test -n "$THREAD_PACKAGE"; then
4697 echo "$ac_t""$port_name" 1>&6
4698 QTHREAD_LTLIBS
=libqthreads.la
4699 THREAD_CPPFLAGS
="-I$qtsrcdir -I../qt"
4700 THREAD_LIBS_LOCAL
="../qt/libqthreads.la"
4701 THREAD_LIBS_INSTALLED
="-lqthreads"
4703 echo "$ac_t""none; disabled" 1>&6
4720 ## If we're using threads, bring in some other parts of Guile which
4722 if test "${THREAD_PACKAGE}" != "" ; then
4723 cat >> confdefs.h
<<\EOF
4724 #define USE_THREADS 1
4728 ## Include the Guile thread interface in the library...
4729 LIBOBJS
="$LIBOBJS threads.o"
4731 ## ... and tell it which package to talk to.
4732 case "${THREAD_PACKAGE}" in
4734 cat >> confdefs.h
<<\EOF
4735 #define USE_COOP_THREADS 1
4740 { echo "configure: error: invalid value for THREAD_PACKAGE: ${THREAD_PACKAGE}" 1>&2; exit 1; }
4744 ## Bring in scm_internal_select, if appropriate.
4745 if test $ac_cv_func_gettimeofday = yes &&
4746 test $ac_cv_func_select = yes; then
4747 LIBOBJS
="$LIBOBJS iselect.o"
4748 cat >> confdefs.h
<<\EOF
4749 #define GUILE_ISELECT 1
4755 ## If we're using GCC, ask for aggressive warnings.
4758 ## We had -Wstrict-prototypes in here for a bit, but Guile does too
4759 ## much stuff with generic function pointers for that to really be
4760 ## less than exasperating.
4761 CFLAGS
="$CFLAGS -Wall -Wpointer-arith -Wmissing-prototypes" ;;
4764 for ac_prog
in mawk gawk nawk
awk
4766 # Extract the first word of "$ac_prog", so it can be a program name with args.
4767 set dummy
$ac_prog; ac_word
=$2
4768 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4769 echo "configure:4770: checking for $ac_word" >&5
4770 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
4771 echo $ac_n "(cached) $ac_c" 1>&6
4773 if test -n "$AWK"; then
4774 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4776 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4778 for ac_dir
in $ac_dummy; do
4779 test -z "$ac_dir" && ac_dir
=.
4780 if test -f $ac_dir/$ac_word; then
4781 ac_cv_prog_AWK
="$ac_prog"
4788 AWK
="$ac_cv_prog_AWK"
4789 if test -n "$AWK"; then
4790 echo "$ac_t""$AWK" 1>&6
4792 echo "$ac_t""no" 1>&6
4795 test -n "$AWK" && break
4799 ## If we're creating a shared library (using libtool!), then we'll
4800 ## need to generate a list of .lo files corresponding to the .o files
4801 ## given in LIBOBJS. We'll call it LIBLOBJS.
4802 LIBLOBJS
="`echo ${LIBOBJS} | sed 's/\.o/.lo/g'`"
4808 GUILE_LIBS
="$LDFLAGS $THREAD_LIBS_INSTALLED $LIBS"
4815 cat > confcache
<<\EOF
4816 # This file is a shell script that caches the results of configure
4817 # tests run on this system so they can be shared between configure
4818 # scripts and configure runs. It is not useful on other systems.
4819 # If it contains results you don't want to keep, you may remove or edit it.
4821 # By default, configure uses ./config.cache as the cache file,
4822 # creating it if it does not exist already. You can give configure
4823 # the --cache-file=FILE option to use a different cache file; that is
4824 # what configure does when it calls configure scripts in
4825 # subdirectories, so they share the cache.
4826 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4827 # config.status only pays attention to the cache file if you give it the
4828 # --recheck option to rerun configure.
4831 # The following way of writing the cache mishandles newlines in values,
4832 # but we know of no workaround that is simple, portable, and efficient.
4833 # So, don't put newlines in cache variables' values.
4834 # Ultrix sh set writes to stderr and can't be redirected directly,
4835 # and sets the high bit in the cache file unless we assign to the vars.
4837 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4839 # `set' does not quote correctly, so add quotes (double-quote substitution
4840 # turns \\\\ into \\, and sed turns \\ into \).
4842 -e "s/'/'\\\\''/g" \
4843 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4846 # `set' quotes correctly as required by POSIX, so do not add quotes.
4847 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4850 if cmp -s $cache_file confcache
; then
4853 if test -w $cache_file; then
4854 echo "updating cache $cache_file"
4855 cat confcache
> $cache_file
4857 echo "not updating unwritable cache $cache_file"
4862 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4864 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4865 # Let make expand exec_prefix.
4866 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4868 # Any assignment to VPATH causes Sun make to only execute
4869 # the first set of double-colon rules, so remove it if not needed.
4870 # If there is a colon in the path, we need to keep it.
4871 if test "x$srcdir" = x.
; then
4872 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
4875 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4877 DEFS
=-DHAVE_CONFIG_H
4879 # Without the "./", some shells look in PATH for config.status.
4880 : ${CONFIG_STATUS=./config.status}
4882 echo creating
$CONFIG_STATUS
4883 rm -f $CONFIG_STATUS
4884 cat > $CONFIG_STATUS <<EOF
4886 # Generated automatically by configure.
4887 # Run this file to recreate the current configuration.
4888 # This directory was configured as follows,
4889 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4891 # $0 $ac_configure_args
4893 # Compiler output produced by configure, useful for debugging
4894 # configure, is in ./config.log if it exists.
4896 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4899 case "\$ac_option" in
4900 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4901 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4902 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4903 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4904 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4906 -help | --help | --hel | --he | --h)
4907 echo "\$ac_cs_usage"; exit 0 ;;
4908 *) echo "\$ac_cs_usage"; exit 1 ;;
4912 ac_given_srcdir=$srcdir
4913 ac_given_INSTALL="$INSTALL"
4915 trap 'rm -fr `echo "Makefile libguile/Makefile libguile/guile-snarf libguile/versiondat.h ice-9/Makefile 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
4917 cat >> $CONFIG_STATUS <<EOF
4919 # Protect against being on the right side of a sed subst in config.status.
4920 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4921 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4925 s%@CFLAGS@%$CFLAGS%g
4926 s%@CPPFLAGS@%$CPPFLAGS%g
4927 s%@CXXFLAGS@%$CXXFLAGS%g
4928 s%@FFLAGS@%$FFLAGS%g
4930 s%@LDFLAGS@%$LDFLAGS%g
4932 s%@exec_prefix@%$exec_prefix%g
4933 s%@prefix@%$prefix%g
4934 s%@program_transform_name@%$program_transform_name%g
4935 s%@bindir@%$bindir%g
4936 s%@sbindir@%$sbindir%g
4937 s%@libexecdir@%$libexecdir%g
4938 s%@datadir@%$datadir%g
4939 s%@sysconfdir@%$sysconfdir%g
4940 s%@sharedstatedir@%$sharedstatedir%g
4941 s%@localstatedir@%$localstatedir%g
4942 s%@libdir@%$libdir%g
4943 s%@includedir@%$includedir%g
4944 s%@oldincludedir@%$oldincludedir%g
4945 s%@infodir@%$infodir%g
4946 s%@mandir@%$mandir%g
4947 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4948 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4949 s%@INSTALL_DATA@%$INSTALL_DATA%g
4950 s%@PACKAGE@%$PACKAGE%g
4951 s%@VERSION@%$VERSION%g
4952 s%@ACLOCAL@%$ACLOCAL%g
4953 s%@AUTOCONF@%$AUTOCONF%g
4954 s%@AUTOMAKE@%$AUTOMAKE%g
4955 s%@AUTOHEADER@%$AUTOHEADER%g
4956 s%@MAKEINFO@%$MAKEINFO%g
4957 s%@SET_MAKE@%$SET_MAKE%g
4958 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
4959 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
4961 s%@subdirs@%$subdirs%g
4965 s%@host_alias@%$host_alias%g
4966 s%@host_cpu@%$host_cpu%g
4967 s%@host_vendor@%$host_vendor%g
4968 s%@host_os@%$host_os%g
4970 s%@build_alias@%$build_alias%g
4971 s%@build_cpu@%$build_cpu%g
4972 s%@build_vendor@%$build_vendor%g
4973 s%@build_os@%$build_os%g
4974 s%@RANLIB@%$RANLIB%g
4978 s%@LIBTOOL@%$LIBTOOL%g
4979 s%@LIBOBJS@%$LIBOBJS%g
4980 s%@ALLOCA@%$ALLOCA%g
4981 s%@QTHREAD_LTLIBS@%$QTHREAD_LTLIBS%g
4982 s%@qtmd_h@%$qtmd_h%g
4983 s%@qtmds_s@%$qtmds_s%g
4984 s%@qtmdc_c@%$qtmdc_c%g
4985 s%@qtdmdb_s@%$qtdmdb_s%g
4986 s%@qthread_asflags@%$qthread_asflags%g
4987 s%@THREAD_PACKAGE@%$THREAD_PACKAGE%g
4988 s%@THREAD_CPPFLAGS@%$THREAD_CPPFLAGS%g
4989 s%@THREAD_LIBS_LOCAL@%$THREAD_LIBS_LOCAL%g
4990 s%@THREAD_LIBS_INSTALLED@%$THREAD_LIBS_INSTALLED%g
4992 s%@GUILE_MAJOR_VERSION@%$GUILE_MAJOR_VERSION%g
4993 s%@GUILE_MINOR_VERSION@%$GUILE_MINOR_VERSION%g
4994 s%@GUILE_VERSION@%$GUILE_VERSION%g
4995 s%@GUILE_LIBS@%$GUILE_LIBS%g
4996 s%@LIBLOBJS@%$LIBLOBJS%g
5001 cat >> $CONFIG_STATUS <<\EOF
5003 # Split the substitutions into bite-sized pieces for seds with
5004 # small command number limits, like on Digital OSF/1 and HP-UX.
5005 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5006 ac_file
=1 # Number of current file.
5007 ac_beg
=1 # First line for current file.
5008 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5011 while $ac_more_lines; do
5012 if test $ac_beg -gt 1; then
5013 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5015 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5017 if test ! -s conftest.s
$ac_file; then
5019 rm -f conftest.s
$ac_file
5021 if test -z "$ac_sed_cmds"; then
5022 ac_sed_cmds
="sed -f conftest.s$ac_file"
5024 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5026 ac_file
=`expr $ac_file + 1`
5028 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5031 if test -z "$ac_sed_cmds"; then
5036 cat >> $CONFIG_STATUS <<EOF
5038 CONFIG_FILES=\${CONFIG_FILES-"Makefile libguile/Makefile libguile/guile-snarf libguile/versiondat.h ice-9/Makefile qt/Makefile qt/qt.h qt/md/Makefile qt/time/Makefile guile-config/Makefile doc/Makefile"}
5040 cat >> $CONFIG_STATUS <<\EOF
5041 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5042 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5044 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5045 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5046 *) ac_file_in
="${ac_file}.in" ;;
5049 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5051 # Remove last slash and all that follows it. Not all systems have dirname.
5052 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5053 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5054 # The file is in a subdirectory.
5055 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5056 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5057 # A "../" for each directory in $ac_dir_suffix.
5058 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5060 ac_dir_suffix
= ac_dots
=
5063 case "$ac_given_srcdir" in
5065 if test -z "$ac_dots"; then top_srcdir
=.
5066 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5067 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5069 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5070 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5073 case "$ac_given_INSTALL" in
5074 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5075 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5078 echo creating
"$ac_file"
5080 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5082 *Makefile
*) ac_comsub
="1i\\
5083 # $configure_input" ;;
5087 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5089 s%@configure_input@%$configure_input%g
5090 s%@srcdir@%$srcdir%g
5091 s%@top_srcdir@%$top_srcdir%g
5092 s%@INSTALL@%$INSTALL%g
5093 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5097 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5098 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5100 # ac_d sets the value in "#define NAME VALUE" lines.
5101 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5102 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5105 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5106 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5107 ac_uB
='\([ ]\)%\1#\2define\3'
5110 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5111 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5112 ac_eB
='$%\1#\2define\3'
5116 if test "${CONFIG_HEADERS+set}" != set; then
5118 cat >> $CONFIG_STATUS <<EOF
5119 CONFIG_HEADERS="libguile/scmconfig.h"
5121 cat >> $CONFIG_STATUS <<\EOF
5123 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5124 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5126 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5127 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5128 *) ac_file_in
="${ac_file}.in" ;;
5131 echo creating
$ac_file
5133 rm -f conftest.frag conftest.
in conftest.out
5134 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5135 cat $ac_file_inputs > conftest.
in
5139 # Transform confdefs.h into a sed script conftest.vals that substitutes
5140 # the proper values into config.h.in to produce config.h. And first:
5141 # Protect against being on the right side of a sed subst in config.status.
5142 # Protect against being in an unquoted here document in config.status.
5144 cat > conftest.hdr
<<\EOF
5147 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5151 sed -n -f conftest.hdr confdefs.h > conftest.vals
5154 # This sed command replaces #undef with comments. This is necessary, for
5155 # example, in the case of _POSIX_SOURCE, which is predefined and required
5156 # on some systems where configure will not decide to define it.
5157 cat >> conftest.vals <<\EOF
5158 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5161 # Break up conftest.vals because some shells have a limit on
5162 # the size of here documents, and old seds have small limits too.
5167 ac_lines=`grep -c . conftest.vals
`
5168 # grep -c gives empty output for an empty file on some AIX systems.
5169 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5170 # Write a limited-size here document to conftest.frag.
5171 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5172 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5174 sed -f conftest.frag conftest.in > conftest.out
5176 mv conftest.out conftest.in
5178 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5180 mv conftest.tail conftest.vals
5184 cat >> $CONFIG_STATUS <<\EOF
5185 rm -f conftest.frag conftest.h
5186 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5187 cat conftest.in >> conftest.h
5189 if cmp -s $ac_file conftest.h 2>/dev/null; then
5190 echo "$ac_file is unchanged"
5193 # Remove last slash and all that follows it. Not all systems have dirname.
5194 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5195 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5196 # The file is in a subdirectory.
5197 test ! -d "$ac_dir" && mkdir "$ac_dir"
5200 mv conftest.h $ac_file
5205 cat >> $CONFIG_STATUS <<EOF
5209 cat >> $CONFIG_STATUS <<\EOF
5210 test -z "$CONFIG_HEADERS" || echo timestamp > libguile/stamp-h
5211 chmod +x libguile/guile-snarf
5214 chmod +x $CONFIG_STATUS
5215 rm -fr confdefs* $ac_clean_files
5216 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5218 if test "$no_recursion" != yes; then
5220 # Remove --cache-file and --srcdir arguments so they do not pile up.
5221 ac_sub_configure_args=
5223 for ac_arg in $ac_configure_args; do
5224 if test -n "$ac_prev"; then
5229 -cache-file | --cache-file | --cache-fil | --cache-fi \
5230 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
5231 ac_prev=cache_file ;;
5232 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
5233 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
5235 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
5237 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5239 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
5243 for ac_config_dir in guile-readline; do
5245 # Do not complain, so a configure script can configure whichever
5246 # parts of a large source tree are present.
5247 if test ! -d $srcdir/$ac_config_dir; then
5251 echo configuring in $ac_config_dir
5256 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
5258 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
5266 # A "../" for each directory in /$ac_config_dir.
5267 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
5270 .) # No --srcdir option. We are building in place.
5271 ac_sub_srcdir=$srcdir ;;
5272 /*) # Absolute path.
5273 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
5275 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
5278 # Check for guested configure; otherwise get Cygnus style configure.
5279 if test -f $ac_sub_srcdir/configure; then
5280 ac_sub_configure=$ac_sub_srcdir/configure
5281 elif test -f $ac_sub_srcdir/configure.in; then
5282 ac_sub_configure=$ac_configure
5284 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
5288 # The recursion is here.
5289 if test -n "$ac_sub_configure"; then
5291 # Make the cache file name correct relative to the subdirectory.
5292 case "$cache_file" in
5293 /*) ac_sub_cache_file=$cache_file ;;
5295 ac_sub_cache_file="$ac_dots$cache_file" ;;
5297 case "$ac_given_INSTALL" in
5298 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5299 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5302 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
5303 # The eval makes quoting arguments work.
5304 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
5307 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }