3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --enable-maintainer-mode enable make rules and dependencies not useful
16 (and sometimes confusing) to the casual installer"
18 --disable-debug Don't include debugging support"
20 --enable-dynamic-linking Include support for dynamic linking"
22 --enable-guile-debug Include internal debugging functions"
24 --enable-shared build shared libraries [default=yes]"
26 --with-threads thread interface"
28 # Initialize some variables set by options.
29 # The variables have the same names as the options, with
30 # dashes changed to underlines.
32 cache_file
=.
/config.cache
41 program_transform_name
=s
,x
,x
,
49 bindir
='${exec_prefix}/bin'
50 sbindir
='${exec_prefix}/sbin'
51 libexecdir
='${exec_prefix}/libexec'
52 datadir
='${prefix}/share'
53 sysconfdir
='${prefix}/etc'
54 sharedstatedir
='${prefix}/com'
55 localstatedir
='${prefix}/var'
56 libdir
='${exec_prefix}/lib'
57 includedir
='${prefix}/include'
58 oldincludedir
='/usr/include'
59 infodir
='${prefix}/info'
60 mandir
='${prefix}/man'
62 # Initialize some other variables.
65 # Maximum number of lines to put in a shell here document.
72 # If the previous option needs an argument, assign it.
73 if test -n "$ac_prev"; then
74 eval "$ac_prev=\$ac_option"
80 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
84 # Accept the important Cygnus configure options, so we can diagnose typos.
88 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
90 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
91 bindir
="$ac_optarg" ;;
93 -build |
--build |
--buil |
--bui |
--bu)
95 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
98 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
99 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
100 ac_prev
=cache_file
;;
101 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
102 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
103 cache_file
="$ac_optarg" ;;
105 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
107 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
109 datadir
="$ac_optarg" ;;
111 -disable-* |
--disable-*)
112 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
113 # Reject names that are not valid shell variable names.
114 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
115 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
117 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
118 eval "enable_${ac_feature}=no" ;;
120 -enable-* |
--enable-*)
121 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
122 # Reject names that are not valid shell variable names.
123 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
124 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
126 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
131 eval "enable_${ac_feature}='$ac_optarg'" ;;
133 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
134 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
135 |
--exec |
--exe |
--ex)
136 ac_prev
=exec_prefix
;;
137 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
138 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
139 |
--exec=* |
--exe=* |
--ex=*)
140 exec_prefix
="$ac_optarg" ;;
142 -gas |
--gas |
--ga |
--g)
143 # Obsolete; use --with-gas.
146 -help |
--help |
--hel |
--he)
147 # Omit some internal or obsolete options to make the list less imposing.
148 # This message is too long to be a string in the A/UX 3.1 sh.
150 Usage: configure [options] [host]
151 Options: [defaults in brackets after descriptions]
153 --cache-file=FILE cache test results in FILE
154 --help print this message
155 --no-create do not create output files
156 --quiet, --silent do not print \`checking...' messages
157 --version print the version of autoconf that created configure
158 Directory and file names:
159 --prefix=PREFIX install architecture-independent files in PREFIX
161 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
163 --bindir=DIR user executables in DIR [EPREFIX/bin]
164 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
165 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
166 --datadir=DIR read-only architecture-independent data in DIR
168 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
169 --sharedstatedir=DIR modifiable architecture-independent data in DIR
171 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
172 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
173 --includedir=DIR C header files in DIR [PREFIX/include]
174 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
175 --infodir=DIR info documentation in DIR [PREFIX/info]
176 --mandir=DIR man documentation in DIR [PREFIX/man]
177 --srcdir=DIR find the sources in DIR [configure dir or ..]
178 --program-prefix=PREFIX prepend PREFIX to installed program names
179 --program-suffix=SUFFIX append SUFFIX to installed program names
180 --program-transform-name=PROGRAM
181 run sed PROGRAM on installed program names
185 --build=BUILD configure for building on BUILD [BUILD=HOST]
186 --host=HOST configure for HOST [guessed]
187 --target=TARGET configure for TARGET [TARGET=HOST]
188 Features and packages:
189 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
190 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
191 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
192 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
193 --x-includes=DIR X include files are in DIR
194 --x-libraries=DIR X library files are in DIR
196 if test -n "$ac_help"; then
197 echo "--enable and --with options recognized:$ac_help"
201 -host |
--host |
--hos |
--ho)
203 -host=* |
--host=* |
--hos=* |
--ho=*)
206 -includedir |
--includedir |
--includedi |
--included |
--include \
207 |
--includ |
--inclu |
--incl |
--inc)
208 ac_prev
=includedir
;;
209 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
210 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
211 includedir
="$ac_optarg" ;;
213 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
215 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
216 infodir
="$ac_optarg" ;;
218 -libdir |
--libdir |
--libdi |
--libd)
220 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
221 libdir
="$ac_optarg" ;;
223 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
224 |
--libexe |
--libex |
--libe)
225 ac_prev
=libexecdir
;;
226 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
227 |
--libexe=* |
--libex=* |
--libe=*)
228 libexecdir
="$ac_optarg" ;;
230 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
231 |
--localstate |
--localstat |
--localsta |
--localst \
232 |
--locals |
--local |
--loca |
--loc |
--lo)
233 ac_prev
=localstatedir
;;
234 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
235 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
236 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
237 localstatedir
="$ac_optarg" ;;
239 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
241 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
242 mandir
="$ac_optarg" ;;
245 # Obsolete; use --without-fp.
248 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
252 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
253 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
256 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
257 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
258 |
--oldin |
--oldi |
--old |
--ol |
--o)
259 ac_prev
=oldincludedir
;;
260 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
261 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
262 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
263 oldincludedir
="$ac_optarg" ;;
265 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
267 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
268 prefix
="$ac_optarg" ;;
270 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
271 |
--program-pre |
--program-pr |
--program-p)
272 ac_prev
=program_prefix
;;
273 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
274 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
275 program_prefix
="$ac_optarg" ;;
277 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
278 |
--program-suf |
--program-su |
--program-s)
279 ac_prev
=program_suffix
;;
280 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
281 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
282 program_suffix
="$ac_optarg" ;;
284 -program-transform-name |
--program-transform-name \
285 |
--program-transform-nam |
--program-transform-na \
286 |
--program-transform-n |
--program-transform- \
287 |
--program-transform |
--program-transfor \
288 |
--program-transfo |
--program-transf \
289 |
--program-trans |
--program-tran \
290 |
--progr-tra |
--program-tr |
--program-t)
291 ac_prev
=program_transform_name
;;
292 -program-transform-name=* |
--program-transform-name=* \
293 |
--program-transform-nam=* |
--program-transform-na=* \
294 |
--program-transform-n=* |
--program-transform-=* \
295 |
--program-transform=* |
--program-transfor=* \
296 |
--program-transfo=* |
--program-transf=* \
297 |
--program-trans=* |
--program-tran=* \
298 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
299 program_transform_name
="$ac_optarg" ;;
301 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
302 |
-silent |
--silent |
--silen |
--sile |
--sil)
305 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
307 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
309 sbindir
="$ac_optarg" ;;
311 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
312 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
313 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
315 ac_prev
=sharedstatedir
;;
316 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
317 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
318 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
320 sharedstatedir
="$ac_optarg" ;;
322 -site |
--site |
--sit)
324 -site=* |
--site=* |
--sit=*)
327 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
329 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
330 srcdir
="$ac_optarg" ;;
332 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
333 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
334 ac_prev
=sysconfdir
;;
335 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
336 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
337 sysconfdir
="$ac_optarg" ;;
339 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
341 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
342 target
="$ac_optarg" ;;
344 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
347 -version |
--version |
--versio |
--versi |
--vers)
348 echo "configure generated by autoconf version 2.12"
352 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
353 # Reject names that are not valid shell variable names.
354 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
355 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
357 ac_package
=`echo $ac_package| sed 's/-/_/g'`
362 eval "with_${ac_package}='$ac_optarg'" ;;
364 -without-* |
--without-*)
365 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
366 # Reject names that are not valid shell variable names.
367 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
368 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
370 ac_package
=`echo $ac_package| sed 's/-/_/g'`
371 eval "with_${ac_package}=no" ;;
374 # Obsolete; use --with-x.
377 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
378 |
--x-incl |
--x-inc |
--x-in |
--x-i)
379 ac_prev
=x_includes
;;
380 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
381 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
382 x_includes
="$ac_optarg" ;;
384 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
385 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
386 ac_prev
=x_libraries
;;
387 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
388 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
389 x_libraries
="$ac_optarg" ;;
391 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
395 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
396 echo "configure: warning: $ac_option: invalid host type" 1>&2
398 if test "x$nonopt" != xNONE
; then
399 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
407 if test -n "$ac_prev"; then
408 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
411 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
413 # File descriptor usage:
416 # 2 errors and warnings
417 # 3 some systems may open it to /dev/tty
418 # 4 used on the Kubota Titan
419 # 6 checking for... messages and results
420 # 5 compiler messages saved in config.log
421 if test "$silent" = yes; then
429 This file contains any messages produced by compilers while
430 running configure, to aid debugging if configure makes a mistake.
433 # Strip out --no-create and --no-recursion so they do not pile up.
434 # Also quote any args containing shell metacharacters.
439 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
440 |
--no-cr |
--no-c) ;;
441 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
442 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
443 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
444 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
445 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
450 # Only set these to C if already set. These must not be set unconditionally
451 # because not all systems understand e.g. LANG=C (notably SCO).
452 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
453 # Non-C LC_CTYPE values break the ctype check.
454 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
455 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
456 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
457 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
459 # confdefs.h avoids OS command line length limits that DEFS can exceed.
460 rm -rf conftest
* confdefs.h
461 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
464 # A filename unique to this package, relative to the directory that
465 # configure is in, which we can look for to find out if srcdir is correct.
466 ac_unique_file
=Makefile.
in
468 # Find the source files, if location was not specified.
469 if test -z "$srcdir"; then
470 ac_srcdir_defaulted
=yes
471 # Try the directory containing this script, then its parent.
473 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
474 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
476 if test ! -r $srcdir/$ac_unique_file; then
480 ac_srcdir_defaulted
=no
482 if test ! -r $srcdir/$ac_unique_file; then
483 if test "$ac_srcdir_defaulted" = yes; then
484 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
486 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
489 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
491 # Prefer explicitly selected file to automatically selected ones.
492 if test -z "$CONFIG_SITE"; then
493 if test "x$prefix" != xNONE
; then
494 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
496 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
499 for ac_site_file
in $CONFIG_SITE; do
500 if test -r "$ac_site_file"; then
501 echo "loading site script $ac_site_file"
506 if test -r "$cache_file"; then
507 echo "loading cache $cache_file"
510 echo "creating cache $cache_file"
515 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
516 ac_cpp
='$CPP $CPPFLAGS'
517 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
518 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
519 cross_compiling
=$ac_cv_prog_cc_cross
521 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
522 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
523 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
530 ac_n
= ac_c
='\c' ac_t
=
534 .
$srcdir/GUILE-VERSION
536 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
537 if test -f $ac_dir/install-sh
; then
539 ac_install_sh
="$ac_aux_dir/install-sh -c"
541 elif test -f $ac_dir/install.sh
; then
543 ac_install_sh
="$ac_aux_dir/install.sh -c"
547 if test -z "$ac_aux_dir"; then
548 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
550 ac_config_guess
=$ac_aux_dir/config.guess
551 ac_config_sub
=$ac_aux_dir/config.sub
552 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
554 # Find a good install program. We prefer a C program (faster),
555 # so one script is as good as another. But avoid the broken or
556 # incompatible versions:
557 # SysV /etc/install, /usr/sbin/install
558 # SunOS /usr/etc/install
561 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
562 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
563 # ./install, which can be erroneously created by make from ./install.sh.
564 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
565 echo "configure:566: checking for a BSD compatible install" >&5
566 if test -z "$INSTALL"; then
567 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
568 echo $ac_n "(cached) $ac_c" 1>&6
570 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
571 for ac_dir
in $PATH; do
572 # Account for people who put trailing slashes in PATH elements.
574 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
576 # OSF1 and SCO ODT 3.0 have their own names for install.
577 for ac_prog
in ginstall installbsd scoinst
install; do
578 if test -f $ac_dir/$ac_prog; then
579 if test $ac_prog = install &&
580 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
581 # AIX install. It has an incompatible calling convention.
582 # OSF/1 installbsd also uses dspmsg, but is usable.
585 ac_cv_path_install
="$ac_dir/$ac_prog -c"
596 if test "${ac_cv_path_install+set}" = set; then
597 INSTALL
="$ac_cv_path_install"
599 # As a last resort, use the slow shell script. We don't cache a
600 # path for INSTALL within a source directory, because that will
601 # break other packages using the cache if that directory is
602 # removed, or if the path is relative.
603 INSTALL
="$ac_install_sh"
606 echo "$ac_t""$INSTALL" 1>&6
608 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
609 # It thinks the first close brace ends the variable substitution.
610 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
612 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
615 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
622 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
623 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
626 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
627 echo "configure:628: checking whether build environment is sane" >&5
630 echo timestamp
> conftestfile
631 # Do `set' in a subshell so we don't clobber the current shell's
632 # arguments. Must try -L first in case configure is actually a
633 # symlink; some systems play weird games with the mod time of symlinks
634 # (eg FreeBSD returns the mod time of the symlink's containing
637 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
638 if test "" = "X"; then
640 set X
`ls -t $srcdir/configure conftestfile`
642 test "$2" = conftestfile
648 { echo "configure: error: newly created file is older than distributed files!
649 Check your system clock" 1>&2; exit 1; }
652 echo "$ac_t""yes" 1>&6
653 if test "$program_transform_name" = s
,x
,x
,; then
654 program_transform_name
=
656 # Double any \ or $. echo might interpret backslashes.
657 cat <<\EOF_SED
> conftestsed
658 s
,\\,\\\\,g
; s
,\$
,$$
,g
660 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
663 test "$program_prefix" != NONE
&&
664 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
665 # Use a double $ so make ignores it.
666 test "$program_suffix" != NONE
&&
667 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
669 # sed with no file args requires a program.
670 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
672 missing_dir
=`cd $ac_aux_dir && pwd`
673 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
674 echo "configure:675: checking for working aclocal" >&5
675 # Run test in a subshell; some versions of sh will print an error if
676 # an executable is not found, even if stderr is redirected.
677 # Redirect stdin to placate older versions of autoconf. Sigh.
678 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
680 echo "$ac_t""found" 1>&6
682 ACLOCAL
="$missing_dir/missing aclocal"
683 echo "$ac_t""missing" 1>&6
686 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
687 echo "configure:688: checking for working autoconf" >&5
688 # Run test in a subshell; some versions of sh will print an error if
689 # an executable is not found, even if stderr is redirected.
690 # Redirect stdin to placate older versions of autoconf. Sigh.
691 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
693 echo "$ac_t""found" 1>&6
695 AUTOCONF
="$missing_dir/missing autoconf"
696 echo "$ac_t""missing" 1>&6
699 echo $ac_n "checking for working automake""... $ac_c" 1>&6
700 echo "configure:701: checking for working automake" >&5
701 # Run test in a subshell; some versions of sh will print an error if
702 # an executable is not found, even if stderr is redirected.
703 # Redirect stdin to placate older versions of autoconf. Sigh.
704 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
706 echo "$ac_t""found" 1>&6
708 AUTOMAKE
="$missing_dir/missing automake"
709 echo "$ac_t""missing" 1>&6
712 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
713 echo "configure:714: checking for working autoheader" >&5
714 # Run test in a subshell; some versions of sh will print an error if
715 # an executable is not found, even if stderr is redirected.
716 # Redirect stdin to placate older versions of autoconf. Sigh.
717 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
718 AUTOHEADER
=autoheader
719 echo "$ac_t""found" 1>&6
721 AUTOHEADER
="$missing_dir/missing autoheader"
722 echo "$ac_t""missing" 1>&6
725 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
726 echo "configure:727: checking for working makeinfo" >&5
727 # Run test in a subshell; some versions of sh will print an error if
728 # an executable is not found, even if stderr is redirected.
729 # Redirect stdin to placate older versions of autoconf. Sigh.
730 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
732 echo "$ac_t""found" 1>&6
734 MAKEINFO
="$missing_dir/missing makeinfo"
735 echo "$ac_t""missing" 1>&6
738 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
739 echo "configure:740: checking whether ${MAKE-make} sets \${MAKE}" >&5
740 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
741 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
742 echo $ac_n "(cached) $ac_c" 1>&6
744 cat > conftestmake
<<\EOF
746 @
echo 'ac_maketemp="${MAKE}"'
748 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
749 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
750 if test -n "$ac_maketemp"; then
751 eval ac_cv_prog_make_
${ac_make}_set
=yes
753 eval ac_cv_prog_make_
${ac_make}_set
=no
757 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
758 echo "$ac_t""yes" 1>&6
761 echo "$ac_t""no" 1>&6
762 SET_MAKE
="MAKE=${MAKE-make}"
765 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
766 echo "configure:767: checking whether to enable maintainer-specific portions of Makefiles" >&5
767 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
768 if test "${enable_maintainer_mode+set}" = set; then
769 enableval
="$enable_maintainer_mode"
770 USE_MAINTAINER_MODE
=$enableval
772 USE_MAINTAINER_MODE
=no
775 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
776 if test $USE_MAINTAINER_MODE = yes; then
787 #--------------------------------------------------------------------
791 #--------------------------------------------------------------------
793 # Check whether --enable-debug or --disable-debug was given.
794 if test "${enable_debug+set}" = set; then
795 enableval
="$enable_debug"
799 if test "$enableval" != n
&& test "$enableval" != no
; then
800 cat >> confdefs.h
<<\EOF
801 #define DEBUG_EXTENSIONS 1
804 cat >> confdefs.h
<<\EOF
805 #define READER_EXTENSIONS 1
808 LIBOBJS
="backtrace.o stacks.o debug.o srcprop.o $LIBOBJS"
811 # Check whether --enable-dynamic-linking or --disable-dynamic-linking was given.
812 if test "${enable_dynamic_linking+set}" = set; then
813 enableval
="$enable_dynamic_linking"
816 enable_dynamic_linking
=yes
820 # Check whether --enable-guile-debug or --disable-guile-debug was given.
821 if test "${enable_guile_debug+set}" = set; then
822 enableval
="$enable_guile_debug"
826 if test "$enableval" = y ||
test "$enableval" = yes; then
827 cat >> confdefs.h
<<\EOF
828 #define GUILE_DEBUG 1
833 #--------------------------------------------------------------------
835 # Extract the first word of "gcc", so it can be a program name with args.
836 set dummy gcc
; ac_word
=$2
837 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
838 echo "configure:839: checking for $ac_word" >&5
839 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
840 echo $ac_n "(cached) $ac_c" 1>&6
842 if test -n "$CC"; then
843 ac_cv_prog_CC
="$CC" # Let the user override the test.
845 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
846 for ac_dir
in $PATH; do
847 test -z "$ac_dir" && ac_dir
=.
848 if test -f $ac_dir/$ac_word; then
857 if test -n "$CC"; then
858 echo "$ac_t""$CC" 1>&6
860 echo "$ac_t""no" 1>&6
863 if test -z "$CC"; then
864 # Extract the first word of "cc", so it can be a program name with args.
865 set dummy cc
; ac_word
=$2
866 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
867 echo "configure:868: checking for $ac_word" >&5
868 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
869 echo $ac_n "(cached) $ac_c" 1>&6
871 if test -n "$CC"; then
872 ac_cv_prog_CC
="$CC" # Let the user override the test.
874 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
876 for ac_dir
in $PATH; do
877 test -z "$ac_dir" && ac_dir
=.
878 if test -f $ac_dir/$ac_word; then
879 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
888 if test $ac_prog_rejected = yes; then
889 # We found a bogon in the path, so make sure we never use it.
890 set dummy
$ac_cv_prog_CC
892 if test $# -gt 0; then
893 # We chose a different compiler from the bogus one.
894 # However, it has the same basename, so the bogon will be chosen
895 # first if we set CC to just the basename; use the full file name.
897 set dummy
"$ac_dir/$ac_word" "$@"
905 if test -n "$CC"; then
906 echo "$ac_t""$CC" 1>&6
908 echo "$ac_t""no" 1>&6
911 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
914 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
915 echo "configure:916: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
918 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
919 ac_cpp
='$CPP $CPPFLAGS'
920 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
921 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
922 cross_compiling
=$ac_cv_prog_cc_cross
924 cat > conftest.
$ac_ext <<EOF
925 #line 926 "configure"
926 #include "confdefs.h"
929 if { (eval echo configure
:930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
930 ac_cv_prog_cc_works
=yes
931 # If we can't run a trivial program, we are probably using a cross compiler.
932 if (.
/conftest
; exit) 2>/dev
/null
; then
933 ac_cv_prog_cc_cross
=no
935 ac_cv_prog_cc_cross
=yes
938 echo "configure: failed program was:" >&5
939 cat conftest.
$ac_ext >&5
940 ac_cv_prog_cc_works
=no
944 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
945 if test $ac_cv_prog_cc_works = no
; then
946 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
948 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
949 echo "configure:950: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
950 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
951 cross_compiling
=$ac_cv_prog_cc_cross
953 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
954 echo "configure:955: checking whether we are using GNU C" >&5
955 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
956 echo $ac_n "(cached) $ac_c" 1>&6
958 cat > conftest.c
<<EOF
963 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:964: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
970 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
972 if test $ac_cv_prog_gcc = yes; then
974 ac_test_CFLAGS
="${CFLAGS+set}"
975 ac_save_CFLAGS
="$CFLAGS"
977 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
978 echo "configure:979: checking whether ${CC-cc} accepts -g" >&5
979 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
980 echo $ac_n "(cached) $ac_c" 1>&6
982 echo 'void f(){}' > conftest.c
983 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
992 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
993 if test "$ac_test_CFLAGS" = set; then
994 CFLAGS
="$ac_save_CFLAGS"
995 elif test $ac_cv_prog_cc_g = yes; then
1002 test "${CFLAGS+set}" = set || CFLAGS
="-g"
1005 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1006 echo "configure:1007: checking how to run the C preprocessor" >&5
1007 # On Suns, sometimes $CPP names a directory.
1008 if test -n "$CPP" && test -d "$CPP"; then
1011 if test -z "$CPP"; then
1012 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1013 echo $ac_n "(cached) $ac_c" 1>&6
1015 # This must be in double quotes, not single quotes, because CPP may get
1016 # substituted into the Makefile and "${CC-cc}" will confuse make.
1018 # On the NeXT, cc -E runs the code through the compiler's parser,
1019 # not just through cpp.
1020 cat > conftest.
$ac_ext <<EOF
1021 #line 1022 "configure"
1022 #include "confdefs.h"
1026 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1027 { (eval echo configure
:1028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1028 ac_err
=`grep -v '^ *+' conftest.out`
1029 if test -z "$ac_err"; then
1033 echo "configure: failed program was:" >&5
1034 cat conftest.
$ac_ext >&5
1036 CPP
="${CC-cc} -E -traditional-cpp"
1037 cat > conftest.
$ac_ext <<EOF
1038 #line 1039 "configure"
1039 #include "confdefs.h"
1043 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1044 { (eval echo configure
:1045: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1045 ac_err
=`grep -v '^ *+' conftest.out`
1046 if test -z "$ac_err"; then
1050 echo "configure: failed program was:" >&5
1051 cat conftest.
$ac_ext >&5
1058 ac_cv_prog_CPP
="$CPP"
1060 CPP
="$ac_cv_prog_CPP"
1062 ac_cv_prog_CPP
="$CPP"
1064 echo "$ac_t""$CPP" 1>&6
1067 # Make sure we can run config.sub.
1068 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
1069 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1072 echo $ac_n "checking host system type""... $ac_c" 1>&6
1073 echo "configure:1074: checking host system type" >&5
1076 case "$host_alias" in
1080 if host_alias
=`$ac_config_guess`; then :
1081 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1083 *) host_alias
=$nonopt ;;
1087 host=`$ac_config_sub $host_alias`
1088 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1089 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1090 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1091 echo "$ac_t""$host" 1>&6
1093 # Extract the first word of "ranlib", so it can be a program name with args.
1094 set dummy ranlib
; ac_word
=$2
1095 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1096 echo "configure:1097: checking for $ac_word" >&5
1097 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1098 echo $ac_n "(cached) $ac_c" 1>&6
1100 if test -n "$RANLIB"; then
1101 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1103 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1104 for ac_dir
in $PATH; do
1105 test -z "$ac_dir" && ac_dir
=.
1106 if test -f $ac_dir/$ac_word; then
1107 ac_cv_prog_RANLIB
="ranlib"
1112 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1115 RANLIB
="$ac_cv_prog_RANLIB"
1116 if test -n "$RANLIB"; then
1117 echo "$ac_t""$RANLIB" 1>&6
1119 echo "$ac_t""no" 1>&6
1126 # Always use our own libtool.
1127 LIBTOOL
='$(top_builddir)/libtool'
1130 # Check whether --enable-shared or --disable-shared was given.
1131 if test "${enable_shared+set}" = set; then
1132 enableval
="$enable_shared"
1133 test "$enableval" = no
&& libtool_shared
=" --disable-shared"
1139 libtool_flags
="$libtool_shared"
1140 test "$silent" = yes && libtool_flags
="$libtool_flags --silent"
1141 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1145 # For IRIX 6, ld needs -n32 if cc uses it.
1146 if echo " $CC $CFLAGS " |
egrep -e '[ ]-n32[ ]' > /dev
/null
; then
1152 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1153 CFLAGS
="$CFLAGS -belf"
1157 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1158 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" LD
="$LD" RANLIB
="$RANLIB" \
1159 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
1160 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$host \
1161 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1164 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1165 echo "configure:1166: checking for AIX" >&5
1166 cat > conftest.
$ac_ext <<EOF
1167 #line 1168 "configure"
1168 #include "confdefs.h"
1174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1175 egrep "yes" >/dev
/null
2>&1; then
1177 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
1178 #define _ALL_SOURCE 1
1183 echo "$ac_t""no" 1>&6
1188 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1189 echo "configure:1190: checking for POSIXized ISC" >&5
1190 if test -d /etc
/conf
/kconfig.d
&&
1191 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
1193 echo "$ac_t""yes" 1>&6
1194 ISC
=yes # If later tests want to check for ISC.
1195 cat >> confdefs.h
<<\EOF
1196 #define _POSIX_SOURCE 1
1199 if test "$GCC" = yes; then
1205 echo "$ac_t""no" 1>&6
1209 ac_safe
=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1210 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1211 echo "configure:1212: checking for minix/config.h" >&5
1212 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1213 echo $ac_n "(cached) $ac_c" 1>&6
1215 cat > conftest.
$ac_ext <<EOF
1216 #line 1217 "configure"
1217 #include "confdefs.h"
1218 #include <minix/config.h>
1220 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1221 { (eval echo configure
:1222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1222 ac_err
=`grep -v '^ *+' conftest.out`
1223 if test -z "$ac_err"; then
1225 eval "ac_cv_header_$ac_safe=yes"
1228 echo "configure: failed program was:" >&5
1229 cat conftest.
$ac_ext >&5
1231 eval "ac_cv_header_$ac_safe=no"
1235 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1236 echo "$ac_t""yes" 1>&6
1239 echo "$ac_t""no" 1>&6
1243 if test "$MINIX" = yes; then
1244 cat >> confdefs.h
<<\EOF
1245 #define _POSIX_SOURCE 1
1248 cat >> confdefs.h
<<\EOF
1249 #define _POSIX_1_SOURCE 2
1252 cat >> confdefs.h
<<\EOF
1259 echo $ac_n "checking for working const""... $ac_c" 1>&6
1260 echo "configure:1261: checking for working const" >&5
1261 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1262 echo $ac_n "(cached) $ac_c" 1>&6
1264 cat > conftest.
$ac_ext <<EOF
1265 #line 1266 "configure"
1266 #include "confdefs.h"
1270 /* Ultrix mips cc rejects this. */
1271 typedef int charset[2]; const charset x;
1272 /* SunOS 4.1.1 cc rejects this. */
1273 char const *const *ccp;
1275 /* NEC SVR4.0.2 mips cc rejects this. */
1276 struct point {int x, y;};
1277 static struct point const zero = {0,0};
1278 /* AIX XL C 1.02.0.0 rejects this.
1279 It does not let you subtract one const X* pointer from another in an arm
1280 of an if-expression whose if-part is not a constant expression */
1281 const char *g = "string";
1282 ccp = &g + (g ? g-g : 0);
1283 /* HPUX 7.0 cc rejects these. */
1286 ccp = (char const *const *) p;
1287 { /* SCO 3.2v4 cc rejects this. */
1289 char const *s = 0 ? (char *) 0 : (char const *) 0;
1293 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1295 const int *foo = &x[0];
1298 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1299 typedef const int *iptr;
1303 { /* AIX XL C 1.02.0.0 rejects this saying
1304 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1305 struct s { int j; const int *ap[3]; };
1306 struct s *b; b->j = 5;
1308 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1314 if { (eval echo configure
:1315: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1318 echo "configure: failed program was:" >&5
1319 cat conftest.
$ac_ext >&5
1326 echo "$ac_t""$ac_cv_c_const" 1>&6
1327 if test $ac_cv_c_const = no
; then
1328 cat >> confdefs.h
<<\EOF
1335 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1336 echo "configure:1337: checking for ANSI C header files" >&5
1337 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1338 echo $ac_n "(cached) $ac_c" 1>&6
1340 cat > conftest.
$ac_ext <<EOF
1341 #line 1342 "configure"
1342 #include "confdefs.h"
1348 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1349 { (eval echo configure
:1350: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1350 ac_err
=`grep -v '^ *+' conftest.out`
1351 if test -z "$ac_err"; then
1353 ac_cv_header_stdc
=yes
1356 echo "configure: failed program was:" >&5
1357 cat conftest.
$ac_ext >&5
1359 ac_cv_header_stdc
=no
1363 if test $ac_cv_header_stdc = yes; then
1364 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1365 cat > conftest.
$ac_ext <<EOF
1366 #line 1367 "configure"
1367 #include "confdefs.h"
1370 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1371 egrep "memchr" >/dev
/null
2>&1; then
1375 ac_cv_header_stdc
=no
1381 if test $ac_cv_header_stdc = yes; then
1382 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1383 cat > conftest.
$ac_ext <<EOF
1384 #line 1385 "configure"
1385 #include "confdefs.h"
1388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1389 egrep "free" >/dev
/null
2>&1; then
1393 ac_cv_header_stdc
=no
1399 if test $ac_cv_header_stdc = yes; then
1400 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1401 if test "$cross_compiling" = yes; then
1404 cat > conftest.
$ac_ext <<EOF
1405 #line 1406 "configure"
1406 #include "confdefs.h"
1408 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1409 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1410 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1411 int main () { int i; for (i = 0; i < 256; i++)
1412 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1416 if { (eval echo configure
:1417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1420 echo "configure: failed program was:" >&5
1421 cat conftest.
$ac_ext >&5
1423 ac_cv_header_stdc
=no
1431 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1432 if test $ac_cv_header_stdc = yes; then
1433 cat >> confdefs.h
<<\EOF
1434 #define STDC_HEADERS 1
1440 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
1442 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1443 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1444 echo "configure:1445: checking for $ac_hdr that defines DIR" >&5
1445 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1446 echo $ac_n "(cached) $ac_c" 1>&6
1448 cat > conftest.
$ac_ext <<EOF
1449 #line 1450 "configure"
1450 #include "confdefs.h"
1451 #include <sys/types.h>
1457 if { (eval echo configure
:1458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1459 eval "ac_cv_header_dirent_$ac_safe=yes"
1461 echo "configure: failed program was:" >&5
1462 cat conftest.
$ac_ext >&5
1464 eval "ac_cv_header_dirent_$ac_safe=no"
1468 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1469 echo "$ac_t""yes" 1>&6
1470 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1471 cat >> confdefs.h
<<EOF
1472 #define $ac_tr_hdr 1
1474 ac_header_dirent
=$ac_hdr; break
1476 echo "$ac_t""no" 1>&6
1479 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1480 if test $ac_header_dirent = dirent.h
; then
1481 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1482 echo "configure:1483: checking for opendir in -ldir" >&5
1483 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1484 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1485 echo $ac_n "(cached) $ac_c" 1>&6
1487 ac_save_LIBS
="$LIBS"
1489 cat > conftest.
$ac_ext <<EOF
1490 #line 1491 "configure"
1491 #include "confdefs.h"
1492 /* Override any gcc2 internal prototype to avoid an error. */
1493 /* We use char because int might match the return type of a gcc2
1494 builtin and then its argument prototype would still apply. */
1501 if { (eval echo configure
:1502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1503 eval "ac_cv_lib_$ac_lib_var=yes"
1505 echo "configure: failed program was:" >&5
1506 cat conftest.
$ac_ext >&5
1508 eval "ac_cv_lib_$ac_lib_var=no"
1511 LIBS
="$ac_save_LIBS"
1514 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1515 echo "$ac_t""yes" 1>&6
1518 echo "$ac_t""no" 1>&6
1522 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1523 echo "configure:1524: checking for opendir in -lx" >&5
1524 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1525 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1526 echo $ac_n "(cached) $ac_c" 1>&6
1528 ac_save_LIBS
="$LIBS"
1530 cat > conftest.
$ac_ext <<EOF
1531 #line 1532 "configure"
1532 #include "confdefs.h"
1533 /* Override any gcc2 internal prototype to avoid an error. */
1534 /* We use char because int might match the return type of a gcc2
1535 builtin and then its argument prototype would still apply. */
1542 if { (eval echo configure
:1543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1544 eval "ac_cv_lib_$ac_lib_var=yes"
1546 echo "configure: failed program was:" >&5
1547 cat conftest.
$ac_ext >&5
1549 eval "ac_cv_lib_$ac_lib_var=no"
1552 LIBS
="$ac_save_LIBS"
1555 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1556 echo "$ac_t""yes" 1>&6
1559 echo "$ac_t""no" 1>&6
1564 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1565 echo "configure:1566: checking whether time.h and sys/time.h may both be included" >&5
1566 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1567 echo $ac_n "(cached) $ac_c" 1>&6
1569 cat > conftest.
$ac_ext <<EOF
1570 #line 1571 "configure"
1571 #include "confdefs.h"
1572 #include <sys/types.h>
1573 #include <sys/time.h>
1579 if { (eval echo configure
:1580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1581 ac_cv_header_time
=yes
1583 echo "configure: failed program was:" >&5
1584 cat conftest.
$ac_ext >&5
1586 ac_cv_header_time
=no
1591 echo "$ac_t""$ac_cv_header_time" 1>&6
1592 if test $ac_cv_header_time = yes; then
1593 cat >> confdefs.h
<<\EOF
1594 #define TIME_WITH_SYS_TIME 1
1599 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1600 echo "configure:1601: checking for sys/wait.h that is POSIX.1 compatible" >&5
1601 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1602 echo $ac_n "(cached) $ac_c" 1>&6
1604 cat > conftest.
$ac_ext <<EOF
1605 #line 1606 "configure"
1606 #include "confdefs.h"
1607 #include <sys/types.h>
1608 #include <sys/wait.h>
1610 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1613 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1618 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1621 if { (eval echo configure
:1622: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1623 ac_cv_header_sys_wait_h
=yes
1625 echo "configure: failed program was:" >&5
1626 cat conftest.
$ac_ext >&5
1628 ac_cv_header_sys_wait_h
=no
1633 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1634 if test $ac_cv_header_sys_wait_h = yes; then
1635 cat >> confdefs.h
<<\EOF
1636 #define HAVE_SYS_WAIT_H 1
1641 for ac_hdr
in libc.h limits.h malloc.h memory.h string.h sys
/ioctl.h sys
/select.h sys
/time.h sys
/timeb.h sys
/times.h sys
/types.h sys
/utime.h
time.h unistd.h utime.h
1643 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1644 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1645 echo "configure:1646: checking for $ac_hdr" >&5
1646 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1647 echo $ac_n "(cached) $ac_c" 1>&6
1649 cat > conftest.
$ac_ext <<EOF
1650 #line 1651 "configure"
1651 #include "confdefs.h"
1654 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1655 { (eval echo configure
:1656: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1656 ac_err
=`grep -v '^ *+' conftest.out`
1657 if test -z "$ac_err"; then
1659 eval "ac_cv_header_$ac_safe=yes"
1662 echo "configure: failed program was:" >&5
1663 cat conftest.
$ac_ext >&5
1665 eval "ac_cv_header_$ac_safe=no"
1669 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1670 echo "$ac_t""yes" 1>&6
1671 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1672 cat >> confdefs.h
<<EOF
1673 #define $ac_tr_hdr 1
1677 echo "$ac_t""no" 1>&6
1682 for ac_hdr
in libc.h unistd.h
1684 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1685 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1686 echo "configure:1687: checking for $ac_hdr" >&5
1687 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1688 echo $ac_n "(cached) $ac_c" 1>&6
1690 cat > conftest.
$ac_ext <<EOF
1691 #line 1692 "configure"
1692 #include "confdefs.h"
1695 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1696 { (eval echo configure
:1697: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1697 ac_err
=`grep -v '^ *+' conftest.out`
1698 if test -z "$ac_err"; then
1700 eval "ac_cv_header_$ac_safe=yes"
1703 echo "configure: failed program was:" >&5
1704 cat conftest.
$ac_ext >&5
1706 eval "ac_cv_header_$ac_safe=no"
1710 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1711 echo "$ac_t""yes" 1>&6
1712 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1713 cat >> confdefs.h
<<EOF
1714 #define $ac_tr_hdr 1
1718 echo "$ac_t""no" 1>&6
1722 echo $ac_n "checking "whether libc.h and unistd.h can be included together
"""... $ac_c" 1>&6
1723 echo "configure:1724: checking "whether libc.h and unistd.h can be included together
"" >&5
1724 if eval "test \"`echo '$''{'guile_cv_header_libc_with_unistd'+set}'`\" = set"; then
1725 echo $ac_n "(cached) $ac_c" 1>&6
1728 if test "$ac_cv_header_libc_h" = "no"; then
1729 guile_cv_header_libc_with_unistd
="no"
1730 elif test "$ac_cv_header_unistd.h" = "no"; then
1731 guile_cv_header_libc_with_unistd
="yes"
1733 cat > conftest.
$ac_ext <<EOF
1734 #line 1735 "configure"
1735 #include "confdefs.h"
1738 # include <unistd.h>
1744 if { (eval echo configure
:1745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1746 guile_cv_header_libc_with_unistd
=yes
1748 echo "configure: failed program was:" >&5
1749 cat conftest.
$ac_ext >&5
1751 guile_cv_header_libc_with_unistd
=no
1760 echo "$ac_t""$guile_cv_header_libc_with_unistd" 1>&6
1761 if test "$guile_cv_header_libc_with_unistd" = yes; then
1762 cat >> confdefs.h
<<\EOF
1763 #define LIBC_H_WITH_UNISTD_H 1
1770 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
1771 echo "configure:1772: checking for uid_t in sys/types.h" >&5
1772 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
1773 echo $ac_n "(cached) $ac_c" 1>&6
1775 cat > conftest.
$ac_ext <<EOF
1776 #line 1777 "configure"
1777 #include "confdefs.h"
1778 #include <sys/types.h>
1780 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1781 egrep "uid_t" >/dev
/null
2>&1; then
1783 ac_cv_type_uid_t
=yes
1792 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
1793 if test $ac_cv_type_uid_t = no
; then
1794 cat >> confdefs.h
<<\EOF
1798 cat >> confdefs.h
<<\EOF
1804 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
1805 echo "configure:1806: checking type of array argument to getgroups" >&5
1806 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
1807 echo $ac_n "(cached) $ac_c" 1>&6
1809 if test "$cross_compiling" = yes; then
1810 ac_cv_type_getgroups
=cross
1812 cat > conftest.
$ac_ext <<EOF
1813 #line 1814 "configure"
1814 #include "confdefs.h"
1816 /* Thanks to Mike Rendell for this test. */
1817 #include <sys/types.h>
1820 #define MAX(x, y) ((x) > (y) ? (x) : (y))
1825 union { gid_t gval; long lval; } val;
1828 for (i = 0; i < NGID; i++)
1829 gidset[i] = val.gval;
1830 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
1832 /* Exit non-zero if getgroups seems to require an array of ints. This
1833 happens when gid_t is short but getgroups modifies an array of ints. */
1834 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
1838 if { (eval echo configure
:1839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1840 ac_cv_type_getgroups
=gid_t
1842 echo "configure: failed program was:" >&5
1843 cat conftest.
$ac_ext >&5
1845 ac_cv_type_getgroups
=int
1850 if test $ac_cv_type_getgroups = cross
; then
1851 cat > conftest.
$ac_ext <<EOF
1852 #line 1853 "configure"
1853 #include "confdefs.h"
1856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1857 egrep "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
1859 ac_cv_type_getgroups
=gid_t
1862 ac_cv_type_getgroups
=int
1869 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
1870 cat >> confdefs.h
<<EOF
1871 #define GETGROUPS_T $ac_cv_type_getgroups
1875 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1876 echo "configure:1877: checking return type of signal handlers" >&5
1877 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1878 echo $ac_n "(cached) $ac_c" 1>&6
1880 cat > conftest.
$ac_ext <<EOF
1881 #line 1882 "configure"
1882 #include "confdefs.h"
1883 #include <sys/types.h>
1889 extern "C" void (*signal (int, void (*)(int)))(int);
1891 void (*signal ()) ();
1898 if { (eval echo configure
:1899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1900 ac_cv_type_signal
=void
1902 echo "configure: failed program was:" >&5
1903 cat conftest.
$ac_ext >&5
1905 ac_cv_type_signal
=int
1910 echo "$ac_t""$ac_cv_type_signal" 1>&6
1911 cat >> confdefs.h
<<EOF
1912 #define RETSIGTYPE $ac_cv_type_signal
1916 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
1917 echo "configure:1918: checking for mode_t" >&5
1918 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
1919 echo $ac_n "(cached) $ac_c" 1>&6
1921 cat > conftest.
$ac_ext <<EOF
1922 #line 1923 "configure"
1923 #include "confdefs.h"
1924 #include <sys/types.h>
1930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1931 egrep "mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1933 ac_cv_type_mode_t
=yes
1936 ac_cv_type_mode_t
=no
1941 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
1942 if test $ac_cv_type_mode_t = no
; then
1943 cat >> confdefs.h
<<\EOF
1950 echo $ac_n "checking for main in -lrx""... $ac_c" 1>&6
1951 echo "configure:1952: checking for main in -lrx" >&5
1952 ac_lib_var
=`echo rx'_'main | sed 'y%./+-%__p_%'`
1953 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1954 echo $ac_n "(cached) $ac_c" 1>&6
1956 ac_save_LIBS
="$LIBS"
1958 cat > conftest.
$ac_ext <<EOF
1959 #line 1960 "configure"
1960 #include "confdefs.h"
1966 if { (eval echo configure
:1967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1968 eval "ac_cv_lib_$ac_lib_var=yes"
1970 echo "configure: failed program was:" >&5
1971 cat conftest.
$ac_ext >&5
1973 eval "ac_cv_lib_$ac_lib_var=no"
1976 LIBS
="$ac_save_LIBS"
1979 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1980 echo "$ac_t""yes" 1>&6
1981 ac_tr_lib
=HAVE_LIB
`echo rx | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1982 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1983 cat >> confdefs.h
<<EOF
1984 #define $ac_tr_lib 1
1990 echo "$ac_t""no" 1>&6
1994 # Checks for dynamic linking
1996 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
1997 echo "configure:1998: checking for main in -lm" >&5
1998 ac_lib_var
=`echo m'_'main | sed 'y%./+-%__p_%'`
1999 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2000 echo $ac_n "(cached) $ac_c" 1>&6
2002 ac_save_LIBS
="$LIBS"
2004 cat > conftest.
$ac_ext <<EOF
2005 #line 2006 "configure"
2006 #include "confdefs.h"
2012 if { (eval echo configure
:2013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2014 eval "ac_cv_lib_$ac_lib_var=yes"
2016 echo "configure: failed program was:" >&5
2017 cat conftest.
$ac_ext >&5
2019 eval "ac_cv_lib_$ac_lib_var=no"
2022 LIBS
="$ac_save_LIBS"
2025 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2026 echo "$ac_t""yes" 1>&6
2027 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2028 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2029 cat >> confdefs.h
<<EOF
2030 #define $ac_tr_lib 1
2036 echo "$ac_t""no" 1>&6
2039 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2040 echo "configure:2041: checking for gethostbyname" >&5
2041 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2042 echo $ac_n "(cached) $ac_c" 1>&6
2044 cat > conftest.
$ac_ext <<EOF
2045 #line 2046 "configure"
2046 #include "confdefs.h"
2047 /* System header to define __stub macros and hopefully few prototypes,
2048 which can conflict with char gethostbyname(); below. */
2050 /* Override any gcc2 internal prototype to avoid an error. */
2051 /* We use char because int might match the return type of a gcc2
2052 builtin and then its argument prototype would still apply. */
2053 char gethostbyname();
2057 /* The GNU C library defines this for functions which it implements
2058 to always fail with ENOSYS. Some functions are actually named
2059 something starting with __ and the normal name is an alias. */
2060 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2068 if { (eval echo configure
:2069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2070 eval "ac_cv_func_gethostbyname=yes"
2072 echo "configure: failed program was:" >&5
2073 cat conftest.
$ac_ext >&5
2075 eval "ac_cv_func_gethostbyname=no"
2080 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2081 echo "$ac_t""yes" 1>&6
2084 echo "$ac_t""no" 1>&6
2087 if test $ac_cv_func_gethostbyname = no
; then
2088 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2089 echo "configure:2090: checking for gethostbyname in -lnsl" >&5
2090 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2091 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2092 echo $ac_n "(cached) $ac_c" 1>&6
2094 ac_save_LIBS
="$LIBS"
2096 cat > conftest.
$ac_ext <<EOF
2097 #line 2098 "configure"
2098 #include "confdefs.h"
2099 /* Override any gcc2 internal prototype to avoid an error. */
2100 /* We use char because int might match the return type of a gcc2
2101 builtin and then its argument prototype would still apply. */
2102 char gethostbyname();
2108 if { (eval echo configure
:2109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2110 eval "ac_cv_lib_$ac_lib_var=yes"
2112 echo "configure: failed program was:" >&5
2113 cat conftest.
$ac_ext >&5
2115 eval "ac_cv_lib_$ac_lib_var=no"
2118 LIBS
="$ac_save_LIBS"
2121 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2122 echo "$ac_t""yes" 1>&6
2123 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2124 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2125 cat >> confdefs.h
<<EOF
2126 #define $ac_tr_lib 1
2132 echo "$ac_t""no" 1>&6
2136 echo $ac_n "checking for connect""... $ac_c" 1>&6
2137 echo "configure:2138: checking for connect" >&5
2138 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
2139 echo $ac_n "(cached) $ac_c" 1>&6
2141 cat > conftest.
$ac_ext <<EOF
2142 #line 2143 "configure"
2143 #include "confdefs.h"
2144 /* System header to define __stub macros and hopefully few prototypes,
2145 which can conflict with char connect(); below. */
2147 /* Override any gcc2 internal prototype to avoid an error. */
2148 /* We use char because int might match the return type of a gcc2
2149 builtin and then its argument prototype would still apply. */
2154 /* The GNU C library defines this for functions which it implements
2155 to always fail with ENOSYS. Some functions are actually named
2156 something starting with __ and the normal name is an alias. */
2157 #if defined (__stub_connect) || defined (__stub___connect)
2165 if { (eval echo configure
:2166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2167 eval "ac_cv_func_connect=yes"
2169 echo "configure: failed program was:" >&5
2170 cat conftest.
$ac_ext >&5
2172 eval "ac_cv_func_connect=no"
2177 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
2178 echo "$ac_t""yes" 1>&6
2181 echo "$ac_t""no" 1>&6
2184 if test $ac_cv_func_connect = no
; then
2185 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2186 echo "configure:2187: checking for connect in -lsocket" >&5
2187 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2188 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2189 echo $ac_n "(cached) $ac_c" 1>&6
2191 ac_save_LIBS
="$LIBS"
2192 LIBS
="-lsocket $LIBS"
2193 cat > conftest.
$ac_ext <<EOF
2194 #line 2195 "configure"
2195 #include "confdefs.h"
2196 /* Override any gcc2 internal prototype to avoid an error. */
2197 /* We use char because int might match the return type of a gcc2
2198 builtin and then its argument prototype would still apply. */
2205 if { (eval echo configure
:2206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2207 eval "ac_cv_lib_$ac_lib_var=yes"
2209 echo "configure: failed program was:" >&5
2210 cat conftest.
$ac_ext >&5
2212 eval "ac_cv_lib_$ac_lib_var=no"
2215 LIBS
="$ac_save_LIBS"
2218 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2219 echo "$ac_t""yes" 1>&6
2220 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2221 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2222 cat >> confdefs.h
<<EOF
2223 #define $ac_tr_lib 1
2226 LIBS
="-lsocket $LIBS"
2229 echo "$ac_t""no" 1>&6
2234 if test "$enable_dynamic_linking" = "yes"; then
2236 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2237 echo "configure:2238: checking for dlopen in -ldl" >&5
2238 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2239 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2240 echo $ac_n "(cached) $ac_c" 1>&6
2242 ac_save_LIBS
="$LIBS"
2244 cat > conftest.
$ac_ext <<EOF
2245 #line 2246 "configure"
2246 #include "confdefs.h"
2247 /* Override any gcc2 internal prototype to avoid an error. */
2248 /* We use char because int might match the return type of a gcc2
2249 builtin and then its argument prototype would still apply. */
2256 if { (eval echo configure
:2257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2258 eval "ac_cv_lib_$ac_lib_var=yes"
2260 echo "configure: failed program was:" >&5
2261 cat conftest.
$ac_ext >&5
2263 eval "ac_cv_lib_$ac_lib_var=no"
2266 LIBS
="$ac_save_LIBS"
2269 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2270 echo "$ac_t""yes" 1>&6
2271 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2272 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2273 cat >> confdefs.h
<<EOF
2274 #define $ac_tr_lib 1
2280 echo "$ac_t""no" 1>&6
2283 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
2284 cat >> confdefs.h
<<\EOF
2285 #define DYNAMIC_LINKING 1
2289 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
2290 echo "configure:2291: checking for dld_link in -ldld" >&5
2291 ac_lib_var
=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
2292 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2293 echo $ac_n "(cached) $ac_c" 1>&6
2295 ac_save_LIBS
="$LIBS"
2297 cat > conftest.
$ac_ext <<EOF
2298 #line 2299 "configure"
2299 #include "confdefs.h"
2300 /* Override any gcc2 internal prototype to avoid an error. */
2301 /* We use char because int might match the return type of a gcc2
2302 builtin and then its argument prototype would still apply. */
2309 if { (eval echo configure
:2310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2311 eval "ac_cv_lib_$ac_lib_var=yes"
2313 echo "configure: failed program was:" >&5
2314 cat conftest.
$ac_ext >&5
2316 eval "ac_cv_lib_$ac_lib_var=no"
2319 LIBS
="$ac_save_LIBS"
2322 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2323 echo "$ac_t""yes" 1>&6
2324 ac_tr_lib
=HAVE_LIB
`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2325 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2326 cat >> confdefs.h
<<EOF
2327 #define $ac_tr_lib 1
2333 echo "$ac_t""no" 1>&6
2336 if test "$ac_cv_lib_dld_dld_link" = "yes"; then
2337 cat >> confdefs.h
<<\EOF
2338 #define DYNAMIC_LINKING 1
2342 for ac_func
in shl_load
2344 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2345 echo "configure:2346: checking for $ac_func" >&5
2346 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2347 echo $ac_n "(cached) $ac_c" 1>&6
2349 cat > conftest.
$ac_ext <<EOF
2350 #line 2351 "configure"
2351 #include "confdefs.h"
2352 /* System header to define __stub macros and hopefully few prototypes,
2353 which can conflict with char $ac_func(); below. */
2355 /* Override any gcc2 internal prototype to avoid an error. */
2356 /* We use char because int might match the return type of a gcc2
2357 builtin and then its argument prototype would still apply. */
2362 /* The GNU C library defines this for functions which it implements
2363 to always fail with ENOSYS. Some functions are actually named
2364 something starting with __ and the normal name is an alias. */
2365 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2373 if { (eval echo configure
:2374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2375 eval "ac_cv_func_$ac_func=yes"
2377 echo "configure: failed program was:" >&5
2378 cat conftest.
$ac_ext >&5
2380 eval "ac_cv_func_$ac_func=no"
2385 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2386 echo "$ac_t""yes" 1>&6
2387 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2388 cat >> confdefs.h
<<EOF
2389 #define $ac_tr_func 1
2393 echo "$ac_t""no" 1>&6
2397 if test "$ac_cv_func_shl_load" = "yes"; then
2398 cat >> confdefs.h
<<\EOF
2399 #define DYNAMIC_LINKING 1
2409 for ac_func
in ctermid ftime getcwd geteuid gethostent gettimeofday lstat mkdir mknod nice readlink rename
rmdir select setegid seteuid setlocale setpgid setsid sigaction strftime strptime symlink sync tcgetpgrp tcsetpgrp
times uname waitpid
2411 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2412 echo "configure:2413: checking for $ac_func" >&5
2413 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2414 echo $ac_n "(cached) $ac_c" 1>&6
2416 cat > conftest.
$ac_ext <<EOF
2417 #line 2418 "configure"
2418 #include "confdefs.h"
2419 /* System header to define __stub macros and hopefully few prototypes,
2420 which can conflict with char $ac_func(); below. */
2422 /* Override any gcc2 internal prototype to avoid an error. */
2423 /* We use char because int might match the return type of a gcc2
2424 builtin and then its argument prototype would still apply. */
2429 /* The GNU C library defines this for functions which it implements
2430 to always fail with ENOSYS. Some functions are actually named
2431 something starting with __ and the normal name is an alias. */
2432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2440 if { (eval echo configure
:2441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2442 eval "ac_cv_func_$ac_func=yes"
2444 echo "configure: failed program was:" >&5
2445 cat conftest.
$ac_ext >&5
2447 eval "ac_cv_func_$ac_func=no"
2452 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2453 echo "$ac_t""yes" 1>&6
2454 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2455 cat >> confdefs.h
<<EOF
2456 #define $ac_tr_func 1
2460 echo "$ac_t""no" 1>&6
2465 echo $ac_n "checking for restartable system calls""... $ac_c" 1>&6
2466 echo "configure:2467: checking for restartable system calls" >&5
2467 if eval "test \"`echo '$''{'scm_cv_restarts'+set}'`\" = set"; then
2468 echo $ac_n "(cached) $ac_c" 1>&6
2470 if test $ac_cv_func_sigaction = yes; then
2471 cat > conftest.
$ac_ext <<EOF
2472 #line 2473 "configure"
2473 #include "confdefs.h"
2479 if { (eval echo configure
:2480: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2483 echo "configure: failed program was:" >&5
2484 cat conftest.
$ac_ext >&5
2494 echo "$ac_t""$scm_cv_restarts" 1>&6
2495 if test $scm_cv_restarts = yes; then
2496 cat >> confdefs.h
<<\EOF
2497 #define HAVE_RESTARTS 1
2502 for ac_func
in regcomp
2504 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2505 echo "configure:2506: checking for $ac_func" >&5
2506 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+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 /* System header to define __stub macros and hopefully few prototypes,
2513 which can conflict with char $ac_func(); below. */
2515 /* Override any gcc2 internal prototype to avoid an error. */
2516 /* We use char because int might match the return type of a gcc2
2517 builtin and then its argument prototype would still apply. */
2522 /* The GNU C library defines this for functions which it implements
2523 to always fail with ENOSYS. Some functions are actually named
2524 something starting with __ and the normal name is an alias. */
2525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2533 if { (eval echo configure
:2534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2535 eval "ac_cv_func_$ac_func=yes"
2537 echo "configure: failed program was:" >&5
2538 cat conftest.
$ac_ext >&5
2540 eval "ac_cv_func_$ac_func=no"
2545 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2546 echo "$ac_t""yes" 1>&6
2547 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2548 cat >> confdefs.h
<<EOF
2549 #define $ac_tr_func 1
2551 LIBOBJS
="regex-posix.o $LIBOBJS"
2553 echo "$ac_t""no" 1>&6
2558 for ac_func
in inet_aton putenv strerror
2560 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2561 echo "configure:2562: checking for $ac_func" >&5
2562 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2563 echo $ac_n "(cached) $ac_c" 1>&6
2565 cat > conftest.
$ac_ext <<EOF
2566 #line 2567 "configure"
2567 #include "confdefs.h"
2568 /* System header to define __stub macros and hopefully few prototypes,
2569 which can conflict with char $ac_func(); below. */
2571 /* Override any gcc2 internal prototype to avoid an error. */
2572 /* We use char because int might match the return type of a gcc2
2573 builtin and then its argument prototype would still apply. */
2578 /* The GNU C library defines this for functions which it implements
2579 to always fail with ENOSYS. Some functions are actually named
2580 something starting with __ and the normal name is an alias. */
2581 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2589 if { (eval echo configure
:2590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2591 eval "ac_cv_func_$ac_func=yes"
2593 echo "configure: failed program was:" >&5
2594 cat conftest.
$ac_ext >&5
2596 eval "ac_cv_func_$ac_func=no"
2601 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2602 echo "$ac_t""yes" 1>&6
2603 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2604 cat >> confdefs.h
<<EOF
2605 #define $ac_tr_func 1
2609 echo "$ac_t""no" 1>&6
2610 LIBOBJS
="$LIBOBJS ${ac_func}.o"
2616 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2617 # for constant arguments. Useless!
2618 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2619 echo "configure:2620: checking for working alloca.h" >&5
2620 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2621 echo $ac_n "(cached) $ac_c" 1>&6
2623 cat > conftest.
$ac_ext <<EOF
2624 #line 2625 "configure"
2625 #include "confdefs.h"
2628 char *p = alloca(2 * sizeof(int));
2631 if { (eval echo configure
:2632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2633 ac_cv_header_alloca_h
=yes
2635 echo "configure: failed program was:" >&5
2636 cat conftest.
$ac_ext >&5
2638 ac_cv_header_alloca_h
=no
2643 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2644 if test $ac_cv_header_alloca_h = yes; then
2645 cat >> confdefs.h
<<\EOF
2646 #define HAVE_ALLOCA_H 1
2651 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2652 echo "configure:2653: checking for alloca" >&5
2653 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2654 echo $ac_n "(cached) $ac_c" 1>&6
2656 cat > conftest.
$ac_ext <<EOF
2657 #line 2658 "configure"
2658 #include "confdefs.h"
2661 # define alloca __builtin_alloca
2664 # include <alloca.h>
2669 # ifndef alloca /* predefined by HP cc +Olibcalls */
2677 char *p = (char *) alloca(1);
2680 if { (eval echo configure
:2681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2682 ac_cv_func_alloca_works
=yes
2684 echo "configure: failed program was:" >&5
2685 cat conftest.
$ac_ext >&5
2687 ac_cv_func_alloca_works
=no
2692 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2693 if test $ac_cv_func_alloca_works = yes; then
2694 cat >> confdefs.h
<<\EOF
2695 #define HAVE_ALLOCA 1
2700 if test $ac_cv_func_alloca_works = no
; then
2701 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2702 # that cause trouble. Some versions do not even contain alloca or
2703 # contain a buggy version. If you still want to use their alloca,
2704 # use ar to extract alloca.o from them instead of compiling alloca.c.
2706 cat >> confdefs.h
<<\EOF
2711 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2712 echo "configure:2713: checking whether alloca needs Cray hooks" >&5
2713 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2714 echo $ac_n "(cached) $ac_c" 1>&6
2716 cat > conftest.
$ac_ext <<EOF
2717 #line 2718 "configure"
2718 #include "confdefs.h"
2719 #if defined(CRAY) && ! defined(CRAY2)
2726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2727 egrep "webecray" >/dev
/null
2>&1; then
2738 echo "$ac_t""$ac_cv_os_cray" 1>&6
2739 if test $ac_cv_os_cray = yes; then
2740 for ac_func
in _getb67 GETB67 getb67
; do
2741 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2742 echo "configure:2743: checking for $ac_func" >&5
2743 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2744 echo $ac_n "(cached) $ac_c" 1>&6
2746 cat > conftest.
$ac_ext <<EOF
2747 #line 2748 "configure"
2748 #include "confdefs.h"
2749 /* System header to define __stub macros and hopefully few prototypes,
2750 which can conflict with char $ac_func(); below. */
2752 /* Override any gcc2 internal prototype to avoid an error. */
2753 /* We use char because int might match the return type of a gcc2
2754 builtin and then its argument prototype would still apply. */
2759 /* The GNU C library defines this for functions which it implements
2760 to always fail with ENOSYS. Some functions are actually named
2761 something starting with __ and the normal name is an alias. */
2762 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2770 if { (eval echo configure
:2771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2772 eval "ac_cv_func_$ac_func=yes"
2774 echo "configure: failed program was:" >&5
2775 cat conftest.
$ac_ext >&5
2777 eval "ac_cv_func_$ac_func=no"
2782 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2783 echo "$ac_t""yes" 1>&6
2784 cat >> confdefs.h
<<EOF
2785 #define CRAY_STACKSEG_END $ac_func
2790 echo "$ac_t""no" 1>&6
2796 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2797 echo "configure:2798: checking stack direction for C alloca" >&5
2798 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2799 echo $ac_n "(cached) $ac_c" 1>&6
2801 if test "$cross_compiling" = yes; then
2802 ac_cv_c_stack_direction
=0
2804 cat > conftest.
$ac_ext <<EOF
2805 #line 2806 "configure"
2806 #include "confdefs.h"
2807 find_stack_direction ()
2809 static char *addr = 0;
2814 return find_stack_direction ();
2817 return (&dummy > addr) ? 1 : -1;
2821 exit (find_stack_direction() < 0);
2824 if { (eval echo configure
:2825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2826 ac_cv_c_stack_direction
=1
2828 echo "configure: failed program was:" >&5
2829 cat conftest.
$ac_ext >&5
2831 ac_cv_c_stack_direction
=-1
2838 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2839 cat >> confdefs.h
<<EOF
2840 #define STACK_DIRECTION $ac_cv_c_stack_direction
2846 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
2847 echo "configure:2848: checking for st_rdev in struct stat" >&5
2848 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
2849 echo $ac_n "(cached) $ac_c" 1>&6
2851 cat > conftest.
$ac_ext <<EOF
2852 #line 2853 "configure"
2853 #include "confdefs.h"
2854 #include <sys/types.h>
2855 #include <sys/stat.h>
2857 struct stat s; s.st_rdev;
2860 if { (eval echo configure
:2861: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2862 ac_cv_struct_st_rdev
=yes
2864 echo "configure: failed program was:" >&5
2865 cat conftest.
$ac_ext >&5
2867 ac_cv_struct_st_rdev
=no
2872 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
2873 if test $ac_cv_struct_st_rdev = yes; then
2874 cat >> confdefs.h
<<\EOF
2875 #define HAVE_ST_RDEV 1
2880 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
2881 echo "configure:2882: checking for st_blksize in struct stat" >&5
2882 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
2883 echo $ac_n "(cached) $ac_c" 1>&6
2885 cat > conftest.
$ac_ext <<EOF
2886 #line 2887 "configure"
2887 #include "confdefs.h"
2888 #include <sys/types.h>
2889 #include <sys/stat.h>
2891 struct stat s; s.st_blksize;
2894 if { (eval echo configure
:2895: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2896 ac_cv_struct_st_blksize
=yes
2898 echo "configure: failed program was:" >&5
2899 cat conftest.
$ac_ext >&5
2901 ac_cv_struct_st_blksize
=no
2906 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
2907 if test $ac_cv_struct_st_blksize = yes; then
2908 cat >> confdefs.h
<<\EOF
2909 #define HAVE_ST_BLKSIZE 1
2915 # We could use AC_STRUCT_ST_BLOCKS here, but that adds fileblocks.o to
2916 # LIBOBJS, which we don't need. This seems more direct.
2917 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
2918 echo "configure:2919: checking for st_blocks in struct stat" >&5
2919 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
2920 echo $ac_n "(cached) $ac_c" 1>&6
2922 cat > conftest.
$ac_ext <<EOF
2923 #line 2924 "configure"
2924 #include "confdefs.h"
2925 #include <sys/types.h>
2926 #include <sys/stat.h>
2928 struct stat s; s.st_blocks;
2931 if { (eval echo configure
:2932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2933 ac_cv_struct_st_blocks
=yes
2935 echo "configure: failed program was:" >&5
2936 cat conftest.
$ac_ext >&5
2938 ac_cv_struct_st_blocks
=no
2943 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
2944 if test $ac_cv_struct_st_blocks = yes; then
2945 cat >> confdefs.h
<<\EOF
2946 #define HAVE_ST_BLOCKS 1
2951 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2952 echo "configure:2953: checking whether struct tm is in sys/time.h or time.h" >&5
2953 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2954 echo $ac_n "(cached) $ac_c" 1>&6
2956 cat > conftest.
$ac_ext <<EOF
2957 #line 2958 "configure"
2958 #include "confdefs.h"
2959 #include <sys/types.h>
2962 struct tm *tp; tp->tm_sec;
2965 if { (eval echo configure
:2966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2967 ac_cv_struct_tm
=time.h
2969 echo "configure: failed program was:" >&5
2970 cat conftest.
$ac_ext >&5
2972 ac_cv_struct_tm
=sys
/time.h
2977 echo "$ac_t""$ac_cv_struct_tm" 1>&6
2978 if test $ac_cv_struct_tm = sys
/time.h
; then
2979 cat >> confdefs.h
<<\EOF
2980 #define TM_IN_SYS_TIME 1
2985 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
2986 echo "configure:2987: checking for tm_zone in struct tm" >&5
2987 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
2988 echo $ac_n "(cached) $ac_c" 1>&6
2990 cat > conftest.
$ac_ext <<EOF
2991 #line 2992 "configure"
2992 #include "confdefs.h"
2993 #include <sys/types.h>
2994 #include <$ac_cv_struct_tm>
2996 struct tm tm; tm.tm_zone;
2999 if { (eval echo configure
:3000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3001 ac_cv_struct_tm_zone
=yes
3003 echo "configure: failed program was:" >&5
3004 cat conftest.
$ac_ext >&5
3006 ac_cv_struct_tm_zone
=no
3011 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
3012 if test "$ac_cv_struct_tm_zone" = yes; then
3013 cat >> confdefs.h
<<\EOF
3014 #define HAVE_TM_ZONE 1
3018 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3019 echo "configure:3020: checking for tzname" >&5
3020 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
3021 echo $ac_n "(cached) $ac_c" 1>&6
3023 cat > conftest.
$ac_ext <<EOF
3024 #line 3025 "configure"
3025 #include "confdefs.h"
3027 #ifndef tzname /* For SGI. */
3028 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3034 if { (eval echo configure
:3035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3036 ac_cv_var_tzname
=yes
3038 echo "configure: failed program was:" >&5
3039 cat conftest.
$ac_ext >&5
3046 echo "$ac_t""$ac_cv_var_tzname" 1>&6
3047 if test $ac_cv_var_tzname = yes; then
3048 cat >> confdefs.h
<<\EOF
3049 #define HAVE_TZNAME 1
3056 echo $ac_n "checking whether we need POSIX to get struct utimbuf""... $ac_c" 1>&6
3057 echo "configure:3058: checking whether we need POSIX to get struct utimbuf" >&5
3058 if eval "test \"`echo '$''{'guile_cv_struct_utimbuf_needs_posix'+set}'`\" = set"; then
3059 echo $ac_n "(cached) $ac_c" 1>&6
3061 cat > conftest.
$ac_ext <<EOF
3062 #line 3063 "configure"
3063 #include "confdefs.h"
3066 #include <sys/utime.h>
3073 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3074 { (eval echo configure
:3075: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3075 ac_err
=`grep -v '^ *+' conftest.out`
3076 if test -z "$ac_err"; then
3078 guile_cv_struct_utimbuf_needs_posix
=no
3081 echo "configure: failed program was:" >&5
3082 cat conftest.
$ac_ext >&5
3084 guile_cv_struct_utimbuf_needs_posix
=yes
3089 echo "$ac_t""$guile_cv_struct_utimbuf_needs_posix" 1>&6
3090 if test "$guile_cv_struct_utimbuf_needs_posix" = yes; then
3091 cat >> confdefs.h
<<\EOF
3092 #define UTIMBUF_NEEDS_POSIX 1
3097 #--------------------------------------------------------------------
3099 # Which way does the stack grow?
3101 #--------------------------------------------------------------------
3103 if test "$cross_compiling" = yes; then
3104 echo "configure: warning: Guessing that stack grows down -- see scmconfig.h.in" 1>&2
3106 cat > conftest.
$ac_ext <<EOF
3107 #line 3108 "configure"
3108 #include "confdefs.h"
3109 aux (l) unsigned long l;
3110 { int x; exit (l >= ((unsigned long)&x)); }
3111 main () { int q; aux((unsigned long)&q); }
3113 if { (eval echo configure
:3114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3115 cat >> confdefs.h
<<\EOF
3116 #define SCM_STACK_GROWS_UP 1
3120 echo "configure: failed program was:" >&5
3121 cat conftest.
$ac_ext >&5
3128 if test "$cross_compiling" = yes; then
3129 cat >> confdefs.h
<<\EOF
3130 #define SCM_SINGLES 1
3133 echo "configure: warning: Guessing that sizeof(long) == sizeof(float) -- see scmconfig.h.in" 1>&2
3135 cat > conftest.
$ac_ext <<EOF
3136 #line 3137 "configure"
3137 #include "confdefs.h"
3138 main () { exit (sizeof(float) != sizeof(long)); }
3140 if { (eval echo configure
:3141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3142 cat >> confdefs.h
<<\EOF
3143 #define SCM_SINGLES 1
3147 echo "configure: failed program was:" >&5
3148 cat conftest.
$ac_ext >&5
3154 echo $ac_n "checking for struct linger""... $ac_c" 1>&6
3155 echo "configure:3156: checking for struct linger" >&5
3156 if eval "test \"`echo '$''{'scm_cv_struct_linger'+set}'`\" = set"; then
3157 echo $ac_n "(cached) $ac_c" 1>&6
3159 cat > conftest.
$ac_ext <<EOF
3160 #line 3161 "configure"
3161 #include "confdefs.h"
3163 #include <sys/types.h>
3164 #include <sys/socket.h>
3166 struct linger lgr; lgr.l_linger = 100
3169 if { (eval echo configure
:3170: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3171 scm_cv_struct_linger
="yes"
3173 echo "configure: failed program was:" >&5
3174 cat conftest.
$ac_ext >&5
3176 scm_cv_struct_linger
="no"
3181 echo "$ac_t""$scm_cv_struct_linger" 1>&6
3182 if test $scm_cv_struct_linger = yes; then
3183 cat >> confdefs.h
<<\EOF
3184 #define HAVE_STRUCT_LINGER 1
3189 #--------------------------------------------------------------------
3191 # How can you violate a stdio abstraction by setting a stream's fd?
3193 #--------------------------------------------------------------------
3195 echo $ac_n "checking how to set a stream file descriptor""... $ac_c" 1>&6
3196 echo "configure:3197: checking how to set a stream file descriptor" >&5
3197 if eval "test \"`echo '$''{'scm_cv_fd_setter'+set}'`\" = set"; then
3198 echo $ac_n "(cached) $ac_c" 1>&6
3200 cat > conftest.
$ac_ext <<EOF
3201 #line 3202 "configure"
3202 #include "confdefs.h"
3208 if { (eval echo configure
:3209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3210 scm_cv_fd_setter
="_file"
3212 echo "configure: failed program was:" >&5
3213 cat conftest.
$ac_ext >&5
3215 cat > conftest.
$ac_ext <<EOF
3216 #line 3217 "configure"
3217 #include "confdefs.h"
3223 if { (eval echo configure
:3224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3225 scm_cv_fd_setter
="_fileno"
3227 echo "configure: failed program was:" >&5
3228 cat conftest.
$ac_ext >&5
3238 if test "$scm_cv_fd_setter"; then
3239 echo "$ac_t""$scm_cv_fd_setter" 1>&6
3240 cat >> confdefs.h
<<EOF
3241 #define FD_SETTER $scm_cv_fd_setter
3245 echo "$ac_t""we couldn't do it!" 1>&6
3248 #--------------------------------------------------------------------
3249 # How to find out whether a FILE structure contains buffered data.
3250 # From Tk we have the following list:
3251 # _cnt: Most UNIX systems
3255 # Or, in GNU libc there are two fields, _gptr and _egptr, which
3256 # have to be compared.
3257 # These can also be known as _IO_read_ptr and _IO_read_end.
3258 #--------------------------------------------------------------------
3260 echo $ac_n "checking how to get buffer char count from FILE structure""... $ac_c" 1>&6
3261 echo "configure:3262: checking how to get buffer char count from FILE structure" >&5
3262 if eval "test \"`echo '$''{'scm_cv_struct_file_count'+set}'`\" = set"; then
3263 echo $ac_n "(cached) $ac_c" 1>&6
3265 cat > conftest.
$ac_ext <<EOF
3266 #line 3267 "configure"
3267 #include "confdefs.h"
3270 FILE *f = stdin; f->_cnt = 0
3273 if { (eval echo configure
:3274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3275 scm_cv_struct_file_count
="_cnt"
3277 echo "configure: failed program was:" >&5
3278 cat conftest.
$ac_ext >&5
3280 cat > conftest.
$ac_ext <<EOF
3281 #line 3282 "configure"
3282 #include "confdefs.h"
3285 FILE *f = stdin; f->_r = 0
3288 if { (eval echo configure
:3289: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3290 scm_cv_struct_file_count
="_r"
3292 echo "configure: failed program was:" >&5
3293 cat conftest.
$ac_ext >&5
3295 cat > conftest.
$ac_ext <<EOF
3296 #line 3297 "configure"
3297 #include "confdefs.h"
3300 FILE *f = stdin; f->readCount = 0
3303 if { (eval echo configure
:3304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3305 scm_cv_struct_file_count
="readCount"
3307 echo "configure: failed program was:" >&5
3308 cat conftest.
$ac_ext >&5
3310 scm_cv_struct_file_count
=""
3319 if test "$scm_cv_struct_file_count"; then
3320 echo "$ac_t""$scm_cv_struct_file_count" 1>&6
3321 cat >> confdefs.h
<<EOF
3322 #define FILE_CNT_FIELD $scm_cv_struct_file_count
3326 if eval "test \"`echo '$''{'scm_cv_struct_file_gptr'+set}'`\" = set"; then
3327 echo $ac_n "(cached) $ac_c" 1>&6
3329 cat > conftest.
$ac_ext <<EOF
3330 #line 3331 "configure"
3331 #include "confdefs.h"
3334 FILE *f = stdin; f->_gptr = f->egptr;
3337 if { (eval echo configure
:3338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3339 scm_cv_struct_file_gptr
=1
3341 echo "configure: failed program was:" >&5
3342 cat conftest.
$ac_ext >&5
3344 scm_cv_struct_file_gptr
=""
3349 if test "$scm_cv_struct_gptr"; then
3350 echo "$ac_t""gptr" 1>&6
3351 cat >> confdefs.h
<<EOF
3352 #define FILE_CNT_GPTR $scm_cv_struct_file_gptr
3356 if eval "test \"`echo '$''{'scm_cv_struct_file_readptr'+set}'`\" = set"; then
3357 echo $ac_n "(cached) $ac_c" 1>&6
3359 cat > conftest.
$ac_ext <<EOF
3360 #line 3361 "configure"
3361 #include "confdefs.h"
3364 FILE *f = stdin; f->_IO_read_ptr = f->_IO_read_end;
3367 if { (eval echo configure
:3368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3369 scm_cv_struct_file_readptr
=1
3371 echo "configure: failed program was:" >&5
3372 cat conftest.
$ac_ext >&5
3377 if test "$scm_cv_struct_file_readptr"; then
3378 echo "$ac_t""read_ptr" 1>&6
3379 cat >> confdefs.h
<<EOF
3380 #define FILE_CNT_READPTR $scm_cv_struct_file_readptr
3384 echo "$ac_t""we couldn't do it!" 1>&6
3389 #--------------------------------------------------------------------
3391 # Flags for thread support
3393 #--------------------------------------------------------------------
3396 echo $ac_n "checking "threads package
type"""... $ac_c" 1>&6
3397 echo "configure:3398: checking "threads package
type"" >&5
3398 if eval "test \"`echo '$''{'cy_cv_threads_package'+set}'`\" = set"; then
3399 echo $ac_n "(cached) $ac_c" 1>&6
3402 if eval "test \"`echo '$''{'cy_cv_threads_cflags'+set}'`\" = set"; then
3403 echo $ac_n "(cached) $ac_c" 1>&6
3406 if eval "test \"`echo '$''{'cy_cv_threads_libs'+set}'`\" = set"; then
3407 echo $ac_n "(cached) $ac_c" 1>&6
3411 # Check whether --with-threads or --without-threads was given.
3412 if test "${with_threads+set}" = set; then
3413 withval
="$with_threads"
3414 use_threads
=$withval
3419 test -n "$use_threads" || use_threads
=qt
3420 threads_package
=unknown
3421 if test "$use_threads" != no
; then
3422 if test "$use_threads" = yes ||
test "$use_threads" = qt
; then
3423 # Look for qt in source directory.
3424 if test -f $srcdir/qt
/qt.c
; then
3425 qtsrcdir
="`(cd $srcdir; pwd)`/qt"
3426 threads_package
=COOP
3427 cy_cv_threads_cflags
="-I$qtsrcdir -I../qt"
3428 cy_cv_threads_libs
="../qt/libqt.a"
3431 if test -f $use_threads/qt.c
; then
3432 # FIXME seems as though we should try to use an installed qt here.
3433 threads_package
=COOP
3434 cy_cv_threads_cflags
="-I$use_threads -I../qt"
3435 cy_cv_threads_libs
="../qt/libqt.a"
3438 if test "$use_threads" = pthreads
; then
3439 # Look for pthreads in srcdir. See above to understand why
3440 # we always set threads_package.
3441 if test -f $srcdir/..
/..
/pthreads
/pthreads
/queue.c \
3442 ||
test -f $srcdir/..
/pthreads
/pthreads
/queue.c
; then
3444 cy_cv_threads_cflags
="-I$srcdir/../../pthreads/include"
3445 cy_cv_threads_libs
="-L../../pthreads/lib -lpthread"
3448 saved_CPP
="$CPPFLAGS"
3451 if test "$threads_package" = unknown
; then
3452 CPPFLAGS
="-I$use_threads/include"
3453 LDFLAGS
="-L$use_threads/lib"
3454 LIBS
="-lgthreads -lmalloc"
3455 cat > conftest.
$ac_ext <<EOF
3456 #line 3457 "configure"
3457 #include "confdefs.h"
3458 #include <pthread.h>
3461 pthread_equal(NULL,NULL);
3465 if { (eval echo configure
:3466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3469 echo "configure: failed program was:" >&5
3470 cat conftest.
$ac_ext >&5
3474 if test "$threads_package" = unknown
; then
3476 cat > conftest.
$ac_ext <<EOF
3477 #line 3478 "configure"
3478 #include "confdefs.h"
3479 #include <pthread.h>
3482 pthread_equal(NULL,NULL);
3486 if { (eval echo configure
:3487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3490 echo "configure: failed program was:" >&5
3491 cat conftest.
$ac_ext >&5
3495 if test "$threads_package" = unknown
; then
3497 cat > conftest.
$ac_ext <<EOF
3498 #line 3499 "configure"
3499 #include "confdefs.h"
3500 #include <pthread.h>
3503 pthread_equal(NULL,NULL);
3507 if { (eval echo configure
:3508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3509 threads_package
=PCthreads
3511 echo "configure: failed program was:" >&5
3512 cat conftest.
$ac_ext >&5
3516 cy_cv_threads_cflags
="$CPPFLAGS $cy_cv_threads_cflags"
3517 cy_cv_threads_libs
="$LDFLAGS $LIBS $cy_cv_threads_libs"
3518 cy_cv_threads_package
=$threads_package
3519 CPPFLAGS
="$saved_CPP"
3522 if test "$threads_package" = unknown
; then
3523 { echo "configure: error: "cannot
find thread library installation
"" 1>&2; exit 1; }
3535 echo "$ac_t""$cy_cv_threads_package" 1>&6
3537 CFLAGS
="$CFLAGS $cy_cv_threads_cflags"
3538 THREAD_LIBS
="$cy_cv_threads_libs"
3541 if test "$cy_cv_threads_package" = FSU
; then
3542 cat >> confdefs.h
<<\EOF
3543 #define USE_FSU_PTHREADS 1
3546 else if test "$cy_cv_threads_package" = COOP
; then
3547 cat >> confdefs.h
<<\EOF
3548 #define USE_COOP_THREADS 1
3551 else if test "$cy_cv_threads_package" = MIT
; then
3552 cat >> confdefs.h
<<\EOF
3553 #define USE_MIT_PTHREADS 1
3556 else if test "$cy_cv_threads_package" = PCthreads
; then
3557 cat >> confdefs.h
<<\EOF
3558 #define USE_PCTHREADS_PTHREADS 1
3561 else if test "$cy_cv_threads_package" = unknown
; then
3562 { echo "configure: error: "cannot
find threads installation
"" 1>&2; exit 1; }
3569 if test "$cy_cv_threads_package" != ""; then
3570 cat >> confdefs.h
<<\EOF
3571 #define USE_THREADS 1
3574 LIBOBJS
="$LIBOBJS threads.o"
3577 ## If we're using GCC, ask for aggressive warnings.
3579 yes ) CFLAGS
="$CFLAGS -Wall -Wpointer-arith" ;;
3582 for ac_prog
in mawk gawk nawk
awk
3584 # Extract the first word of "$ac_prog", so it can be a program name with args.
3585 set dummy
$ac_prog; ac_word
=$2
3586 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3587 echo "configure:3588: checking for $ac_word" >&5
3588 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
3589 echo $ac_n "(cached) $ac_c" 1>&6
3591 if test -n "$AWK"; then
3592 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3594 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3595 for ac_dir
in $PATH; do
3596 test -z "$ac_dir" && ac_dir
=.
3597 if test -f $ac_dir/$ac_word; then
3598 ac_cv_prog_AWK
="$ac_prog"
3605 AWK
="$ac_cv_prog_AWK"
3606 if test -n "$AWK"; then
3607 echo "$ac_t""$AWK" 1>&6
3609 echo "$ac_t""no" 1>&6
3612 test -n "$AWK" && break
3616 ## If we're creating a shared library (using libtool!), then we'll
3617 ## need to generate a list of .lo files corresponding to the .o files
3618 ## given in LIBOBJS. We'll call it LIBLOBJS.
3619 LIBLOBJS
="`echo ${LIBOBJS} | sed 's/\.o/.lo/g'`"
3621 cat >> confdefs.h
<<EOF
3622 #define GUILE_MAJOR_VERSION "$GUILE_MAJOR_VERSION"
3625 cat >> confdefs.h
<<EOF
3626 #define GUILE_MINOR_VERSION "$GUILE_MINOR_VERSION"
3629 cat >> confdefs.h
<<EOF
3630 #define GUILE_VERSION "$GUILE_VERSION"
3639 threads_enabled
=false
3640 if test "$cy_cv_threads_package" = COOP
; then
3641 threads_enabled
=true
3644 # Determine the host we are working on
3646 # Make sure we can run config.sub.
3647 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
3648 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
3651 echo $ac_n "checking host system type""... $ac_c" 1>&6
3652 echo "configure:3653: checking host system type" >&5
3655 case "$host_alias" in
3659 if host_alias
=`$ac_config_guess`; then :
3660 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
3662 *) host_alias
=$nonopt ;;
3666 host=`$ac_config_sub $host_alias`
3667 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3668 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3669 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3670 echo "$ac_t""$host" 1>&6
3673 # How can we refer to the qt source directory from within the qt build
3674 # directory? For headers, we can rely on the fact that the qt src
3675 # directory appears in the #include path.
3677 qtsrcdir
="`(cd $srcdir; pwd)`/qt"
3681 qtmds_s
=$qtsrcdir/md
/i386.s
3683 qtmdc_c
=$qtsrcdir/md
/null.c
3686 qtmds_s
=$qtsrcdir/md
/mips-irix5.s
3688 qtmdc_c
=$qtsrcdir/md
/null.c
3689 qtdmdb_s
=$qtsrcdir/md
/mips_b.s
3692 qtmds_s
=$qtsrcdir/md
/mips.s
3694 qtmdc_c
=$qtsrcdir/md
/null.c
3695 qtdmdb_s
=$qtsrcdir/md
/mips_b.s
3699 qtmdc_c
=$qtsrcdir/md
/null.c
3700 qtmds_s
=$qtsrcdir/md
/_sparc.s
3701 qtdmdb_s
=$qtsrcdir/md
/_sparc_b.s
3705 qtmdc_c
=$qtsrcdir/md
/null.c
3706 qtmds_s
=$qtsrcdir/md
/sparc.s
3707 qtdmdb_s
=$qtsrcdir/md
/sparc_b.s
3710 echo "Unknown configuration; threads package disabled"
3711 threads_enabled
=false
3717 if $threads_enabled; then
3723 # Give the Makefile the names of the object files that will be
3724 # generated by compiling $qtmdc_c and $qtmds_s.
3725 qtmdc_o
="`echo ${qtmdc_c} | sed -e 's:^.*/::' | sed -e 's:\.c$:\.o:'`"
3726 qtmds_o
="`echo ${qtmds_s} | sed -e 's:^.*/::' | sed -e 's:\.s$:\.o:'`"
3737 cat > confcache
<<\EOF
3738 # This file is a shell script that caches the results of configure
3739 # tests run on this system so they can be shared between configure
3740 # scripts and configure runs. It is not useful on other systems.
3741 # If it contains results you don't want to keep, you may remove or edit it.
3743 # By default, configure uses ./config.cache as the cache file,
3744 # creating it if it does not exist already. You can give configure
3745 # the --cache-file=FILE option to use a different cache file; that is
3746 # what configure does when it calls configure scripts in
3747 # subdirectories, so they share the cache.
3748 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3749 # config.status only pays attention to the cache file if you give it the
3750 # --recheck option to rerun configure.
3753 # The following way of writing the cache mishandles newlines in values,
3754 # but we know of no workaround that is simple, portable, and efficient.
3755 # So, don't put newlines in cache variables' values.
3756 # Ultrix sh set writes to stderr and can't be redirected directly,
3757 # and sets the high bit in the cache file unless we assign to the vars.
3759 case `(ac_space=' '; set) 2>&1` in
3761 # `set' does not quote correctly, so add quotes (double-quote substitution
3762 # turns \\\\ into \\, and sed turns \\ into \).
3764 -e "s/'/'\\\\''/g" \
3765 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3768 # `set' quotes correctly as required by POSIX, so do not add quotes.
3769 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3772 if cmp -s $cache_file confcache
; then
3775 if test -w $cache_file; then
3776 echo "updating cache $cache_file"
3777 cat confcache
> $cache_file
3779 echo "not updating unwritable cache $cache_file"
3784 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3786 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
3787 # Let make expand exec_prefix.
3788 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
3790 # Any assignment to VPATH causes Sun make to only execute
3791 # the first set of double-colon rules, so remove it if not needed.
3792 # If there is a colon in the path, we need to keep it.
3793 if test "x$srcdir" = x.
; then
3794 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
3797 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3799 DEFS
=-DHAVE_CONFIG_H
3801 # Without the "./", some shells look in PATH for config.status.
3802 : ${CONFIG_STATUS=./config.status}
3804 echo creating
$CONFIG_STATUS
3805 rm -f $CONFIG_STATUS
3806 cat > $CONFIG_STATUS <<EOF
3808 # Generated automatically by configure.
3809 # Run this file to recreate the current configuration.
3810 # This directory was configured as follows,
3811 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3813 # $0 $ac_configure_args
3815 # Compiler output produced by configure, useful for debugging
3816 # configure, is in ./config.log if it exists.
3818 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3821 case "\$ac_option" in
3822 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3823 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3824 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3825 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3826 echo "$CONFIG_STATUS generated by autoconf version 2.12"
3828 -help | --help | --hel | --he | --h)
3829 echo "\$ac_cs_usage"; exit 0 ;;
3830 *) echo "\$ac_cs_usage"; exit 1 ;;
3834 ac_given_srcdir=$srcdir
3835 ac_given_INSTALL="$INSTALL"
3837 trap 'rm -fr `echo "Makefile libguile/Makefile libguile/guile-snarf ice-9/Makefile qt/Makefile qt/qt.h qt/md/Makefile qt/time/Makefile libguile/scmconfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3839 cat >> $CONFIG_STATUS <<EOF
3841 # Protect against being on the right side of a sed subst in config.status.
3842 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3843 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3846 s%@CFLAGS@%$CFLAGS%g
3847 s%@CPPFLAGS@%$CPPFLAGS%g
3848 s%@CXXFLAGS@%$CXXFLAGS%g
3850 s%@LDFLAGS@%$LDFLAGS%g
3852 s%@exec_prefix@%$exec_prefix%g
3853 s%@prefix@%$prefix%g
3854 s%@program_transform_name@%$program_transform_name%g
3855 s%@bindir@%$bindir%g
3856 s%@sbindir@%$sbindir%g
3857 s%@libexecdir@%$libexecdir%g
3858 s%@datadir@%$datadir%g
3859 s%@sysconfdir@%$sysconfdir%g
3860 s%@sharedstatedir@%$sharedstatedir%g
3861 s%@localstatedir@%$localstatedir%g
3862 s%@libdir@%$libdir%g
3863 s%@includedir@%$includedir%g
3864 s%@oldincludedir@%$oldincludedir%g
3865 s%@infodir@%$infodir%g
3866 s%@mandir@%$mandir%g
3867 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3868 s%@INSTALL_DATA@%$INSTALL_DATA%g
3869 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3870 s%@PACKAGE@%$PACKAGE%g
3871 s%@VERSION@%$VERSION%g
3872 s%@ACLOCAL@%$ACLOCAL%g
3873 s%@AUTOCONF@%$AUTOCONF%g
3874 s%@AUTOMAKE@%$AUTOMAKE%g
3875 s%@AUTOHEADER@%$AUTOHEADER%g
3876 s%@MAKEINFO@%$MAKEINFO%g
3877 s%@SET_MAKE@%$SET_MAKE%g
3882 s%@host_alias@%$host_alias%g
3883 s%@host_cpu@%$host_cpu%g
3884 s%@host_vendor@%$host_vendor%g
3885 s%@host_os@%$host_os%g
3886 s%@RANLIB@%$RANLIB%g
3887 s%@LIBTOOL@%$LIBTOOL%g
3888 s%@LIBOBJS@%$LIBOBJS%g
3889 s%@ALLOCA@%$ALLOCA%g
3890 s%@THREAD_LIBS@%$THREAD_LIBS%g
3892 s%@LIBLOBJS@%$LIBLOBJS%g
3893 s%@target_libs@%$target_libs%g
3894 s%@qtmd_h@%$qtmd_h%g
3895 s%@qtmdc_c@%$qtmdc_c%g
3896 s%@qtmdc_o@%$qtmdc_o%g
3897 s%@qtmds_s@%$qtmds_s%g
3898 s%@qtmds_o@%$qtmds_o%g
3899 s%@qtmdb_s@%$qtmdb_s%g
3904 cat >> $CONFIG_STATUS <<\EOF
3906 # Split the substitutions into bite-sized pieces for seds with
3907 # small command number limits, like on Digital OSF/1 and HP-UX.
3908 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
3909 ac_file
=1 # Number of current file.
3910 ac_beg
=1 # First line for current file.
3911 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
3914 while $ac_more_lines; do
3915 if test $ac_beg -gt 1; then
3916 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
3918 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
3920 if test ! -s conftest.s
$ac_file; then
3922 rm -f conftest.s
$ac_file
3924 if test -z "$ac_sed_cmds"; then
3925 ac_sed_cmds
="sed -f conftest.s$ac_file"
3927 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
3929 ac_file
=`expr $ac_file + 1`
3931 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
3934 if test -z "$ac_sed_cmds"; then
3939 cat >> $CONFIG_STATUS <<EOF
3941 CONFIG_FILES=\${CONFIG_FILES-"Makefile libguile/Makefile libguile/guile-snarf ice-9/Makefile qt/Makefile qt/qt.h qt/md/Makefile qt/time/Makefile"}
3943 cat >> $CONFIG_STATUS <<\EOF
3944 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
3945 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3947 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3948 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3949 *) ac_file_in
="${ac_file}.in" ;;
3952 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3954 # Remove last slash and all that follows it. Not all systems have dirname.
3955 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3956 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
3957 # The file is in a subdirectory.
3958 test ! -d "$ac_dir" && mkdir
"$ac_dir"
3959 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
3960 # A "../" for each directory in $ac_dir_suffix.
3961 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3963 ac_dir_suffix
= ac_dots
=
3966 case "$ac_given_srcdir" in
3968 if test -z "$ac_dots"; then top_srcdir
=.
3969 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3970 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
3972 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3973 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
3976 case "$ac_given_INSTALL" in
3977 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
3978 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
3981 echo creating
"$ac_file"
3983 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3985 *Makefile
*) ac_comsub
="1i\\
3986 # $configure_input" ;;
3990 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3992 s%@configure_input@%$configure_input%g
3993 s%@srcdir@%$srcdir%g
3994 s%@top_srcdir@%$top_srcdir%g
3995 s%@INSTALL@%$INSTALL%g
3996 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
4000 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4001 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4003 # ac_d sets the value in "#define NAME VALUE" lines.
4004 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4005 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
4008 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4009 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4010 ac_uB
='\([ ]\)%\1#\2define\3'
4013 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4014 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4015 ac_eB
='$%\1#\2define\3'
4019 if test "${CONFIG_HEADERS+set}" != set; then
4021 cat >> $CONFIG_STATUS <<EOF
4022 CONFIG_HEADERS="libguile/scmconfig.h"
4024 cat >> $CONFIG_STATUS <<\EOF
4026 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
4027 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4029 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4030 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4031 *) ac_file_in
="${ac_file}.in" ;;
4034 echo creating
$ac_file
4036 rm -f conftest.frag conftest.
in conftest.out
4037 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4038 cat $ac_file_inputs > conftest.
in
4042 # Transform confdefs.h into a sed script conftest.vals that substitutes
4043 # the proper values into config.h.in to produce config.h. And first:
4044 # Protect against being on the right side of a sed subst in config.status.
4045 # Protect against being in an unquoted here document in config.status.
4047 cat > conftest.hdr
<<\EOF
4050 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4054 sed -n -f conftest.hdr confdefs.h > conftest.vals
4057 # This sed command replaces #undef with comments. This is necessary, for
4058 # example, in the case of _POSIX_SOURCE, which is predefined and required
4059 # on some systems where configure will not decide to define it.
4060 cat >> conftest.vals <<\EOF
4061 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4064 # Break up conftest.vals because some shells have a limit on
4065 # the size of here documents, and old seds have small limits too.
4070 ac_lines=`grep -c . conftest.vals
`
4071 # grep -c gives empty output for an empty file on some AIX systems.
4072 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4073 # Write a limited-size here document to conftest.frag.
4074 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4075 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4077 sed -f conftest.frag conftest.in > conftest.out
4079 mv conftest.out conftest.in
4081 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4083 mv conftest.tail conftest.vals
4087 cat >> $CONFIG_STATUS <<\EOF
4088 rm -f conftest.frag conftest.h
4089 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4090 cat conftest.in >> conftest.h
4092 if cmp -s $ac_file conftest.h 2>/dev/null; then
4093 echo "$ac_file is unchanged"
4096 # Remove last slash and all that follows it. Not all systems have dirname.
4097 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
4098 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4099 # The file is in a subdirectory.
4100 test ! -d "$ac_dir" && mkdir "$ac_dir"
4103 mv conftest.h $ac_file
4108 cat >> $CONFIG_STATUS <<EOF
4112 cat >> $CONFIG_STATUS <<\EOF
4113 test -z "$CONFIG_HEADERS" || echo timestamp > libguile/stamp-h
4114 chmod +x libguile/guile-snarf
4117 chmod +x $CONFIG_STATUS
4118 rm -fr confdefs* $ac_clean_files
4119 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1