* vports.c (scm_sfport, prinsfpt, sf_read_flush, noop0): Removed.
[bpt/guile.git] / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --enable-maintainer-mode enable make rules and dependencies not useful
16 (and sometimes confusing) to the casual installer"
17 ac_help="$ac_help
18 --enable-dynamic-linking Include support for dynamic linking"
19 ac_help="$ac_help
20 --enable-guile-debug Include internal debugging functions"
21 ac_help="$ac_help
22 --enable-shared[=PKGS] build shared libraries [default=yes]"
23 ac_help="$ac_help
24 --enable-static[=PKGS] build static libraries [default=yes]"
25 ac_help="$ac_help
26 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
27 ac_help="$ac_help
28 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
29 ac_help="$ac_help
30 --disable-libtool-lock avoid locking (might break parallel builds)"
31 ac_help="$ac_help
32 --with-threads thread interface"
33
34 # Initialize some variables set by options.
35 # The variables have the same names as the options, with
36 # dashes changed to underlines.
37 build=NONE
38 cache_file=./config.cache
39 exec_prefix=NONE
40 host=NONE
41 no_create=
42 nonopt=NONE
43 no_recursion=
44 prefix=NONE
45 program_prefix=NONE
46 program_suffix=NONE
47 program_transform_name=s,x,x,
48 silent=
49 site=
50 srcdir=
51 target=NONE
52 verbose=
53 x_includes=NONE
54 x_libraries=NONE
55 bindir='${exec_prefix}/bin'
56 sbindir='${exec_prefix}/sbin'
57 libexecdir='${exec_prefix}/libexec'
58 datadir='${prefix}/share'
59 sysconfdir='${prefix}/etc'
60 sharedstatedir='${prefix}/com'
61 localstatedir='${prefix}/var'
62 libdir='${exec_prefix}/lib'
63 includedir='${prefix}/include'
64 oldincludedir='/usr/include'
65 infodir='${prefix}/info'
66 mandir='${prefix}/man'
67
68 # Initialize some other variables.
69 subdirs=
70 MFLAGS= MAKEFLAGS=
71 SHELL=${CONFIG_SHELL-/bin/sh}
72 # Maximum number of lines to put in a shell here document.
73 ac_max_here_lines=12
74
75 ac_prev=
76 for ac_option
77 do
78
79 # If the previous option needs an argument, assign it.
80 if test -n "$ac_prev"; then
81 eval "$ac_prev=\$ac_option"
82 ac_prev=
83 continue
84 fi
85
86 case "$ac_option" in
87 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
88 *) ac_optarg= ;;
89 esac
90
91 # Accept the important Cygnus configure options, so we can diagnose typos.
92
93 case "$ac_option" in
94
95 -bindir | --bindir | --bindi | --bind | --bin | --bi)
96 ac_prev=bindir ;;
97 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
98 bindir="$ac_optarg" ;;
99
100 -build | --build | --buil | --bui | --bu)
101 ac_prev=build ;;
102 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
103 build="$ac_optarg" ;;
104
105 -cache-file | --cache-file | --cache-fil | --cache-fi \
106 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
107 ac_prev=cache_file ;;
108 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
109 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
110 cache_file="$ac_optarg" ;;
111
112 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
113 ac_prev=datadir ;;
114 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
115 | --da=*)
116 datadir="$ac_optarg" ;;
117
118 -disable-* | --disable-*)
119 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
120 # Reject names that are not valid shell variable names.
121 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
122 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
123 fi
124 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
125 eval "enable_${ac_feature}=no" ;;
126
127 -enable-* | --enable-*)
128 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
129 # Reject names that are not valid shell variable names.
130 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
131 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
132 fi
133 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
134 case "$ac_option" in
135 *=*) ;;
136 *) ac_optarg=yes ;;
137 esac
138 eval "enable_${ac_feature}='$ac_optarg'" ;;
139
140 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
141 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
142 | --exec | --exe | --ex)
143 ac_prev=exec_prefix ;;
144 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
145 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
146 | --exec=* | --exe=* | --ex=*)
147 exec_prefix="$ac_optarg" ;;
148
149 -gas | --gas | --ga | --g)
150 # Obsolete; use --with-gas.
151 with_gas=yes ;;
152
153 -help | --help | --hel | --he)
154 # Omit some internal or obsolete options to make the list less imposing.
155 # This message is too long to be a string in the A/UX 3.1 sh.
156 cat << EOF
157 Usage: configure [options] [host]
158 Options: [defaults in brackets after descriptions]
159 Configuration:
160 --cache-file=FILE cache test results in FILE
161 --help print this message
162 --no-create do not create output files
163 --quiet, --silent do not print \`checking...' messages
164 --version print the version of autoconf that created configure
165 Directory and file names:
166 --prefix=PREFIX install architecture-independent files in PREFIX
167 [$ac_default_prefix]
168 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
169 [same as prefix]
170 --bindir=DIR user executables in DIR [EPREFIX/bin]
171 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
172 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
173 --datadir=DIR read-only architecture-independent data in DIR
174 [PREFIX/share]
175 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
176 --sharedstatedir=DIR modifiable architecture-independent data in DIR
177 [PREFIX/com]
178 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
179 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
180 --includedir=DIR C header files in DIR [PREFIX/include]
181 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
182 --infodir=DIR info documentation in DIR [PREFIX/info]
183 --mandir=DIR man documentation in DIR [PREFIX/man]
184 --srcdir=DIR find the sources in DIR [configure dir or ..]
185 --program-prefix=PREFIX prepend PREFIX to installed program names
186 --program-suffix=SUFFIX append SUFFIX to installed program names
187 --program-transform-name=PROGRAM
188 run sed PROGRAM on installed program names
189 EOF
190 cat << EOF
191 Host type:
192 --build=BUILD configure for building on BUILD [BUILD=HOST]
193 --host=HOST configure for HOST [guessed]
194 --target=TARGET configure for TARGET [TARGET=HOST]
195 Features and packages:
196 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
197 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
198 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
199 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
200 --x-includes=DIR X include files are in DIR
201 --x-libraries=DIR X library files are in DIR
202 EOF
203 if test -n "$ac_help"; then
204 echo "--enable and --with options recognized:$ac_help"
205 fi
206 exit 0 ;;
207
208 -host | --host | --hos | --ho)
209 ac_prev=host ;;
210 -host=* | --host=* | --hos=* | --ho=*)
211 host="$ac_optarg" ;;
212
213 -includedir | --includedir | --includedi | --included | --include \
214 | --includ | --inclu | --incl | --inc)
215 ac_prev=includedir ;;
216 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
217 | --includ=* | --inclu=* | --incl=* | --inc=*)
218 includedir="$ac_optarg" ;;
219
220 -infodir | --infodir | --infodi | --infod | --info | --inf)
221 ac_prev=infodir ;;
222 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
223 infodir="$ac_optarg" ;;
224
225 -libdir | --libdir | --libdi | --libd)
226 ac_prev=libdir ;;
227 -libdir=* | --libdir=* | --libdi=* | --libd=*)
228 libdir="$ac_optarg" ;;
229
230 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
231 | --libexe | --libex | --libe)
232 ac_prev=libexecdir ;;
233 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
234 | --libexe=* | --libex=* | --libe=*)
235 libexecdir="$ac_optarg" ;;
236
237 -localstatedir | --localstatedir | --localstatedi | --localstated \
238 | --localstate | --localstat | --localsta | --localst \
239 | --locals | --local | --loca | --loc | --lo)
240 ac_prev=localstatedir ;;
241 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
242 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
243 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
244 localstatedir="$ac_optarg" ;;
245
246 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
247 ac_prev=mandir ;;
248 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
249 mandir="$ac_optarg" ;;
250
251 -nfp | --nfp | --nf)
252 # Obsolete; use --without-fp.
253 with_fp=no ;;
254
255 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
256 | --no-cr | --no-c)
257 no_create=yes ;;
258
259 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
260 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
261 no_recursion=yes ;;
262
263 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
264 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
265 | --oldin | --oldi | --old | --ol | --o)
266 ac_prev=oldincludedir ;;
267 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
268 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
269 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
270 oldincludedir="$ac_optarg" ;;
271
272 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
273 ac_prev=prefix ;;
274 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
275 prefix="$ac_optarg" ;;
276
277 -program-prefix | --program-prefix | --program-prefi | --program-pref \
278 | --program-pre | --program-pr | --program-p)
279 ac_prev=program_prefix ;;
280 -program-prefix=* | --program-prefix=* | --program-prefi=* \
281 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
282 program_prefix="$ac_optarg" ;;
283
284 -program-suffix | --program-suffix | --program-suffi | --program-suff \
285 | --program-suf | --program-su | --program-s)
286 ac_prev=program_suffix ;;
287 -program-suffix=* | --program-suffix=* | --program-suffi=* \
288 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
289 program_suffix="$ac_optarg" ;;
290
291 -program-transform-name | --program-transform-name \
292 | --program-transform-nam | --program-transform-na \
293 | --program-transform-n | --program-transform- \
294 | --program-transform | --program-transfor \
295 | --program-transfo | --program-transf \
296 | --program-trans | --program-tran \
297 | --progr-tra | --program-tr | --program-t)
298 ac_prev=program_transform_name ;;
299 -program-transform-name=* | --program-transform-name=* \
300 | --program-transform-nam=* | --program-transform-na=* \
301 | --program-transform-n=* | --program-transform-=* \
302 | --program-transform=* | --program-transfor=* \
303 | --program-transfo=* | --program-transf=* \
304 | --program-trans=* | --program-tran=* \
305 | --progr-tra=* | --program-tr=* | --program-t=*)
306 program_transform_name="$ac_optarg" ;;
307
308 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
309 | -silent | --silent | --silen | --sile | --sil)
310 silent=yes ;;
311
312 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
313 ac_prev=sbindir ;;
314 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
315 | --sbi=* | --sb=*)
316 sbindir="$ac_optarg" ;;
317
318 -sharedstatedir | --sharedstatedir | --sharedstatedi \
319 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
320 | --sharedst | --shareds | --shared | --share | --shar \
321 | --sha | --sh)
322 ac_prev=sharedstatedir ;;
323 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
324 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
325 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
326 | --sha=* | --sh=*)
327 sharedstatedir="$ac_optarg" ;;
328
329 -site | --site | --sit)
330 ac_prev=site ;;
331 -site=* | --site=* | --sit=*)
332 site="$ac_optarg" ;;
333
334 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
335 ac_prev=srcdir ;;
336 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
337 srcdir="$ac_optarg" ;;
338
339 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
340 | --syscon | --sysco | --sysc | --sys | --sy)
341 ac_prev=sysconfdir ;;
342 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
343 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
344 sysconfdir="$ac_optarg" ;;
345
346 -target | --target | --targe | --targ | --tar | --ta | --t)
347 ac_prev=target ;;
348 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
349 target="$ac_optarg" ;;
350
351 -v | -verbose | --verbose | --verbos | --verbo | --verb)
352 verbose=yes ;;
353
354 -version | --version | --versio | --versi | --vers)
355 echo "configure generated by autoconf version 2.13"
356 exit 0 ;;
357
358 -with-* | --with-*)
359 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
360 # Reject names that are not valid shell variable names.
361 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
362 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
363 fi
364 ac_package=`echo $ac_package| sed 's/-/_/g'`
365 case "$ac_option" in
366 *=*) ;;
367 *) ac_optarg=yes ;;
368 esac
369 eval "with_${ac_package}='$ac_optarg'" ;;
370
371 -without-* | --without-*)
372 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
373 # Reject names that are not valid shell variable names.
374 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
375 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
376 fi
377 ac_package=`echo $ac_package| sed 's/-/_/g'`
378 eval "with_${ac_package}=no" ;;
379
380 --x)
381 # Obsolete; use --with-x.
382 with_x=yes ;;
383
384 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
385 | --x-incl | --x-inc | --x-in | --x-i)
386 ac_prev=x_includes ;;
387 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
388 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
389 x_includes="$ac_optarg" ;;
390
391 -x-libraries | --x-libraries | --x-librarie | --x-librari \
392 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
393 ac_prev=x_libraries ;;
394 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
395 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
396 x_libraries="$ac_optarg" ;;
397
398 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
399 ;;
400
401 *)
402 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
403 echo "configure: warning: $ac_option: invalid host type" 1>&2
404 fi
405 if test "x$nonopt" != xNONE; then
406 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
407 fi
408 nonopt="$ac_option"
409 ;;
410
411 esac
412 done
413
414 if test -n "$ac_prev"; then
415 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
416 fi
417
418 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
419
420 # File descriptor usage:
421 # 0 standard input
422 # 1 file creation
423 # 2 errors and warnings
424 # 3 some systems may open it to /dev/tty
425 # 4 used on the Kubota Titan
426 # 6 checking for... messages and results
427 # 5 compiler messages saved in config.log
428 if test "$silent" = yes; then
429 exec 6>/dev/null
430 else
431 exec 6>&1
432 fi
433 exec 5>./config.log
434
435 echo "\
436 This file contains any messages produced by compilers while
437 running configure, to aid debugging if configure makes a mistake.
438 " 1>&5
439
440 # Strip out --no-create and --no-recursion so they do not pile up.
441 # Also quote any args containing shell metacharacters.
442 ac_configure_args=
443 for ac_arg
444 do
445 case "$ac_arg" in
446 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
447 | --no-cr | --no-c) ;;
448 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
449 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
450 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
451 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
452 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
453 esac
454 done
455
456 # NLS nuisances.
457 # Only set these to C if already set. These must not be set unconditionally
458 # because not all systems understand e.g. LANG=C (notably SCO).
459 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
460 # Non-C LC_CTYPE values break the ctype check.
461 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
462 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
463 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
464 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
465
466 # confdefs.h avoids OS command line length limits that DEFS can exceed.
467 rm -rf conftest* confdefs.h
468 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
469 echo > confdefs.h
470
471 # A filename unique to this package, relative to the directory that
472 # configure is in, which we can look for to find out if srcdir is correct.
473 ac_unique_file=Makefile.in
474
475 # Find the source files, if location was not specified.
476 if test -z "$srcdir"; then
477 ac_srcdir_defaulted=yes
478 # Try the directory containing this script, then its parent.
479 ac_prog=$0
480 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
481 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
482 srcdir=$ac_confdir
483 if test ! -r $srcdir/$ac_unique_file; then
484 srcdir=..
485 fi
486 else
487 ac_srcdir_defaulted=no
488 fi
489 if test ! -r $srcdir/$ac_unique_file; then
490 if test "$ac_srcdir_defaulted" = yes; then
491 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
492 else
493 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
494 fi
495 fi
496 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
497
498 # Prefer explicitly selected file to automatically selected ones.
499 if test -z "$CONFIG_SITE"; then
500 if test "x$prefix" != xNONE; then
501 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
502 else
503 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
504 fi
505 fi
506 for ac_site_file in $CONFIG_SITE; do
507 if test -r "$ac_site_file"; then
508 echo "loading site script $ac_site_file"
509 . "$ac_site_file"
510 fi
511 done
512
513 if test -r "$cache_file"; then
514 echo "loading cache $cache_file"
515 . $cache_file
516 else
517 echo "creating cache $cache_file"
518 > $cache_file
519 fi
520
521 ac_ext=c
522 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
523 ac_cpp='$CPP $CPPFLAGS'
524 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
525 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
526 cross_compiling=$ac_cv_prog_cc_cross
527
528 ac_exeext=
529 ac_objext=o
530 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
531 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
532 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
533 ac_n= ac_c='
534 ' ac_t=' '
535 else
536 ac_n=-n ac_c= ac_t=
537 fi
538 else
539 ac_n= ac_c='\c' ac_t=
540 fi
541
542
543 . $srcdir/GUILE-VERSION
544 ac_aux_dir=
545 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
546 if test -f $ac_dir/install-sh; then
547 ac_aux_dir=$ac_dir
548 ac_install_sh="$ac_aux_dir/install-sh -c"
549 break
550 elif test -f $ac_dir/install.sh; then
551 ac_aux_dir=$ac_dir
552 ac_install_sh="$ac_aux_dir/install.sh -c"
553 break
554 fi
555 done
556 if test -z "$ac_aux_dir"; then
557 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
558 fi
559 ac_config_guess=$ac_aux_dir/config.guess
560 ac_config_sub=$ac_aux_dir/config.sub
561 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
562
563 # Find a good install program. We prefer a C program (faster),
564 # so one script is as good as another. But avoid the broken or
565 # incompatible versions:
566 # SysV /etc/install, /usr/sbin/install
567 # SunOS /usr/etc/install
568 # IRIX /sbin/install
569 # AIX /bin/install
570 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
571 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
572 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
573 # ./install, which can be erroneously created by make from ./install.sh.
574 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
575 echo "configure:576: checking for a BSD compatible install" >&5
576 if test -z "$INSTALL"; then
577 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
578 echo $ac_n "(cached) $ac_c" 1>&6
579 else
580 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
581 for ac_dir in $PATH; do
582 # Account for people who put trailing slashes in PATH elements.
583 case "$ac_dir/" in
584 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
585 *)
586 # OSF1 and SCO ODT 3.0 have their own names for install.
587 # Don't use installbsd from OSF since it installs stuff as root
588 # by default.
589 for ac_prog in ginstall scoinst install; do
590 if test -f $ac_dir/$ac_prog; then
591 if test $ac_prog = install &&
592 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
593 # AIX install. It has an incompatible calling convention.
594 :
595 else
596 ac_cv_path_install="$ac_dir/$ac_prog -c"
597 break 2
598 fi
599 fi
600 done
601 ;;
602 esac
603 done
604 IFS="$ac_save_IFS"
605
606 fi
607 if test "${ac_cv_path_install+set}" = set; then
608 INSTALL="$ac_cv_path_install"
609 else
610 # As a last resort, use the slow shell script. We don't cache a
611 # path for INSTALL within a source directory, because that will
612 # break other packages using the cache if that directory is
613 # removed, or if the path is relative.
614 INSTALL="$ac_install_sh"
615 fi
616 fi
617 echo "$ac_t""$INSTALL" 1>&6
618
619 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
620 # It thinks the first close brace ends the variable substitution.
621 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
622
623 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
624
625 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
626
627 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
628 echo "configure:629: checking whether build environment is sane" >&5
629 # Just in case
630 sleep 1
631 echo timestamp > conftestfile
632 # Do `set' in a subshell so we don't clobber the current shell's
633 # arguments. Must try -L first in case configure is actually a
634 # symlink; some systems play weird games with the mod time of symlinks
635 # (eg FreeBSD returns the mod time of the symlink's containing
636 # directory).
637 if (
638 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
639 if test "$*" = "X"; then
640 # -L didn't work.
641 set X `ls -t $srcdir/configure conftestfile`
642 fi
643 if test "$*" != "X $srcdir/configure conftestfile" \
644 && test "$*" != "X conftestfile $srcdir/configure"; then
645
646 # If neither matched, then we have a broken ls. This can happen
647 # if, for instance, CONFIG_SHELL is bash and it inherits a
648 # broken ls alias from the environment. This has actually
649 # happened. Such a system could not be considered "sane".
650 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
651 alias in your environment" 1>&2; exit 1; }
652 fi
653
654 test "$2" = conftestfile
655 )
656 then
657 # Ok.
658 :
659 else
660 { echo "configure: error: newly created file is older than distributed files!
661 Check your system clock" 1>&2; exit 1; }
662 fi
663 rm -f conftest*
664 echo "$ac_t""yes" 1>&6
665 if test "$program_transform_name" = s,x,x,; then
666 program_transform_name=
667 else
668 # Double any \ or $. echo might interpret backslashes.
669 cat <<\EOF_SED > conftestsed
670 s,\\,\\\\,g; s,\$,$$,g
671 EOF_SED
672 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
673 rm -f conftestsed
674 fi
675 test "$program_prefix" != NONE &&
676 program_transform_name="s,^,${program_prefix},; $program_transform_name"
677 # Use a double $ so make ignores it.
678 test "$program_suffix" != NONE &&
679 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
680
681 # sed with no file args requires a program.
682 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
683
684 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
685 echo "configure:686: checking whether ${MAKE-make} sets \${MAKE}" >&5
686 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
687 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
688 echo $ac_n "(cached) $ac_c" 1>&6
689 else
690 cat > conftestmake <<\EOF
691 all:
692 @echo 'ac_maketemp="${MAKE}"'
693 EOF
694 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
695 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
696 if test -n "$ac_maketemp"; then
697 eval ac_cv_prog_make_${ac_make}_set=yes
698 else
699 eval ac_cv_prog_make_${ac_make}_set=no
700 fi
701 rm -f conftestmake
702 fi
703 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
704 echo "$ac_t""yes" 1>&6
705 SET_MAKE=
706 else
707 echo "$ac_t""no" 1>&6
708 SET_MAKE="MAKE=${MAKE-make}"
709 fi
710
711
712 PACKAGE=$PACKAGE
713
714 VERSION=$VERSION
715
716 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
717 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
718 fi
719
720
721
722 missing_dir=`cd $ac_aux_dir && pwd`
723 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
724 echo "configure:725: checking for working aclocal" >&5
725 # Run test in a subshell; some versions of sh will print an error if
726 # an executable is not found, even if stderr is redirected.
727 # Redirect stdin to placate older versions of autoconf. Sigh.
728 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
729 ACLOCAL=aclocal
730 echo "$ac_t""found" 1>&6
731 else
732 ACLOCAL="$missing_dir/missing aclocal"
733 echo "$ac_t""missing" 1>&6
734 fi
735
736 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
737 echo "configure:738: checking for working autoconf" >&5
738 # Run test in a subshell; some versions of sh will print an error if
739 # an executable is not found, even if stderr is redirected.
740 # Redirect stdin to placate older versions of autoconf. Sigh.
741 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
742 AUTOCONF=autoconf
743 echo "$ac_t""found" 1>&6
744 else
745 AUTOCONF="$missing_dir/missing autoconf"
746 echo "$ac_t""missing" 1>&6
747 fi
748
749 echo $ac_n "checking for working automake""... $ac_c" 1>&6
750 echo "configure:751: checking for working automake" >&5
751 # Run test in a subshell; some versions of sh will print an error if
752 # an executable is not found, even if stderr is redirected.
753 # Redirect stdin to placate older versions of autoconf. Sigh.
754 if (automake --version) < /dev/null > /dev/null 2>&1; then
755 AUTOMAKE=automake
756 echo "$ac_t""found" 1>&6
757 else
758 AUTOMAKE="$missing_dir/missing automake"
759 echo "$ac_t""missing" 1>&6
760 fi
761
762 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
763 echo "configure:764: checking for working autoheader" >&5
764 # Run test in a subshell; some versions of sh will print an error if
765 # an executable is not found, even if stderr is redirected.
766 # Redirect stdin to placate older versions of autoconf. Sigh.
767 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
768 AUTOHEADER=autoheader
769 echo "$ac_t""found" 1>&6
770 else
771 AUTOHEADER="$missing_dir/missing autoheader"
772 echo "$ac_t""missing" 1>&6
773 fi
774
775 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
776 echo "configure:777: checking for working makeinfo" >&5
777 # Run test in a subshell; some versions of sh will print an error if
778 # an executable is not found, even if stderr is redirected.
779 # Redirect stdin to placate older versions of autoconf. Sigh.
780 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
781 MAKEINFO=makeinfo
782 echo "$ac_t""found" 1>&6
783 else
784 MAKEINFO="$missing_dir/missing makeinfo"
785 echo "$ac_t""missing" 1>&6
786 fi
787
788
789 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
790 echo "configure:791: checking whether to enable maintainer-specific portions of Makefiles" >&5
791 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
792 if test "${enable_maintainer_mode+set}" = set; then
793 enableval="$enable_maintainer_mode"
794 USE_MAINTAINER_MODE=$enableval
795 else
796 USE_MAINTAINER_MODE=no
797 fi
798
799 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
800
801
802 if test $USE_MAINTAINER_MODE = yes; then
803 MAINTAINER_MODE_TRUE=
804 MAINTAINER_MODE_FALSE='#'
805 else
806 MAINTAINER_MODE_TRUE='#'
807 MAINTAINER_MODE_FALSE=
808 fi
809 MAINT=$MAINTAINER_MODE_TRUE
810
811
812
813
814
815
816 #--------------------------------------------------------------------
817 #
818 # Independent Subdirectories
819 #
820 #--------------------------------------------------------------------
821
822 subdirs="guile-readline"
823
824
825 #--------------------------------------------------------------------
826 #
827 # User options
828 #
829 #--------------------------------------------------------------------
830
831 # Check whether --enable-dynamic-linking or --disable-dynamic-linking was given.
832 if test "${enable_dynamic_linking+set}" = set; then
833 enableval="$enable_dynamic_linking"
834 :
835 else
836 enable_dynamic_linking=yes
837 fi
838
839
840 # Check whether --enable-guile-debug or --disable-guile-debug was given.
841 if test "${enable_guile_debug+set}" = set; then
842 enableval="$enable_guile_debug"
843 :
844 fi
845
846 if test "$enableval" = y || test "$enableval" = yes; then
847 cat >> confdefs.h <<\EOF
848 #define GUILE_DEBUG 1
849 EOF
850
851 fi
852
853 cat >> confdefs.h <<\EOF
854 #define DEBUG_EXTENSIONS 1
855 EOF
856
857 cat >> confdefs.h <<\EOF
858 #define READER_EXTENSIONS 1
859 EOF
860
861
862 #--------------------------------------------------------------------
863
864 # Extract the first word of "gcc", so it can be a program name with args.
865 set dummy gcc; 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
870 else
871 if test -n "$CC"; then
872 ac_cv_prog_CC="$CC" # Let the user override the test.
873 else
874 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
875 ac_dummy="$PATH"
876 for ac_dir in $ac_dummy; do
877 test -z "$ac_dir" && ac_dir=.
878 if test -f $ac_dir/$ac_word; then
879 ac_cv_prog_CC="gcc"
880 break
881 fi
882 done
883 IFS="$ac_save_ifs"
884 fi
885 fi
886 CC="$ac_cv_prog_CC"
887 if test -n "$CC"; then
888 echo "$ac_t""$CC" 1>&6
889 else
890 echo "$ac_t""no" 1>&6
891 fi
892
893 if test -z "$CC"; then
894 # Extract the first word of "cc", so it can be a program name with args.
895 set dummy cc; ac_word=$2
896 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
897 echo "configure:898: checking for $ac_word" >&5
898 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
899 echo $ac_n "(cached) $ac_c" 1>&6
900 else
901 if test -n "$CC"; then
902 ac_cv_prog_CC="$CC" # Let the user override the test.
903 else
904 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
905 ac_prog_rejected=no
906 ac_dummy="$PATH"
907 for ac_dir in $ac_dummy; do
908 test -z "$ac_dir" && ac_dir=.
909 if test -f $ac_dir/$ac_word; then
910 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
911 ac_prog_rejected=yes
912 continue
913 fi
914 ac_cv_prog_CC="cc"
915 break
916 fi
917 done
918 IFS="$ac_save_ifs"
919 if test $ac_prog_rejected = yes; then
920 # We found a bogon in the path, so make sure we never use it.
921 set dummy $ac_cv_prog_CC
922 shift
923 if test $# -gt 0; then
924 # We chose a different compiler from the bogus one.
925 # However, it has the same basename, so the bogon will be chosen
926 # first if we set CC to just the basename; use the full file name.
927 shift
928 set dummy "$ac_dir/$ac_word" "$@"
929 shift
930 ac_cv_prog_CC="$@"
931 fi
932 fi
933 fi
934 fi
935 CC="$ac_cv_prog_CC"
936 if test -n "$CC"; then
937 echo "$ac_t""$CC" 1>&6
938 else
939 echo "$ac_t""no" 1>&6
940 fi
941
942 if test -z "$CC"; then
943 case "`uname -s`" in
944 *win32* | *WIN32*)
945 # Extract the first word of "cl", so it can be a program name with args.
946 set dummy cl; ac_word=$2
947 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
948 echo "configure:949: checking for $ac_word" >&5
949 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
950 echo $ac_n "(cached) $ac_c" 1>&6
951 else
952 if test -n "$CC"; then
953 ac_cv_prog_CC="$CC" # Let the user override the test.
954 else
955 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
956 ac_dummy="$PATH"
957 for ac_dir in $ac_dummy; do
958 test -z "$ac_dir" && ac_dir=.
959 if test -f $ac_dir/$ac_word; then
960 ac_cv_prog_CC="cl"
961 break
962 fi
963 done
964 IFS="$ac_save_ifs"
965 fi
966 fi
967 CC="$ac_cv_prog_CC"
968 if test -n "$CC"; then
969 echo "$ac_t""$CC" 1>&6
970 else
971 echo "$ac_t""no" 1>&6
972 fi
973 ;;
974 esac
975 fi
976 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
977 fi
978
979 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
980 echo "configure:981: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
981
982 ac_ext=c
983 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
984 ac_cpp='$CPP $CPPFLAGS'
985 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
986 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
987 cross_compiling=$ac_cv_prog_cc_cross
988
989 cat > conftest.$ac_ext << EOF
990
991 #line 992 "configure"
992 #include "confdefs.h"
993
994 main(){return(0);}
995 EOF
996 if { (eval echo configure:997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
997 ac_cv_prog_cc_works=yes
998 # If we can't run a trivial program, we are probably using a cross compiler.
999 if (./conftest; exit) 2>/dev/null; then
1000 ac_cv_prog_cc_cross=no
1001 else
1002 ac_cv_prog_cc_cross=yes
1003 fi
1004 else
1005 echo "configure: failed program was:" >&5
1006 cat conftest.$ac_ext >&5
1007 ac_cv_prog_cc_works=no
1008 fi
1009 rm -fr conftest*
1010 ac_ext=c
1011 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1012 ac_cpp='$CPP $CPPFLAGS'
1013 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1014 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1015 cross_compiling=$ac_cv_prog_cc_cross
1016
1017 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1018 if test $ac_cv_prog_cc_works = no; then
1019 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1020 fi
1021 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1022 echo "configure:1023: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1023 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1024 cross_compiling=$ac_cv_prog_cc_cross
1025
1026 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1027 echo "configure:1028: checking whether we are using GNU C" >&5
1028 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1029 echo $ac_n "(cached) $ac_c" 1>&6
1030 else
1031 cat > conftest.c <<EOF
1032 #ifdef __GNUC__
1033 yes;
1034 #endif
1035 EOF
1036 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1037 ac_cv_prog_gcc=yes
1038 else
1039 ac_cv_prog_gcc=no
1040 fi
1041 fi
1042
1043 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1044
1045 if test $ac_cv_prog_gcc = yes; then
1046 GCC=yes
1047 else
1048 GCC=
1049 fi
1050
1051 ac_test_CFLAGS="${CFLAGS+set}"
1052 ac_save_CFLAGS="$CFLAGS"
1053 CFLAGS=
1054 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1055 echo "configure:1056: checking whether ${CC-cc} accepts -g" >&5
1056 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1057 echo $ac_n "(cached) $ac_c" 1>&6
1058 else
1059 echo 'void f(){}' > conftest.c
1060 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1061 ac_cv_prog_cc_g=yes
1062 else
1063 ac_cv_prog_cc_g=no
1064 fi
1065 rm -f conftest*
1066
1067 fi
1068
1069 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1070 if test "$ac_test_CFLAGS" = set; then
1071 CFLAGS="$ac_save_CFLAGS"
1072 elif test $ac_cv_prog_cc_g = yes; then
1073 if test "$GCC" = yes; then
1074 CFLAGS="-g -O2"
1075 else
1076 CFLAGS="-g"
1077 fi
1078 else
1079 if test "$GCC" = yes; then
1080 CFLAGS="-O2"
1081 else
1082 CFLAGS=
1083 fi
1084 fi
1085
1086 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1087 echo "configure:1088: checking how to run the C preprocessor" >&5
1088 # On Suns, sometimes $CPP names a directory.
1089 if test -n "$CPP" && test -d "$CPP"; then
1090 CPP=
1091 fi
1092 if test -z "$CPP"; then
1093 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1094 echo $ac_n "(cached) $ac_c" 1>&6
1095 else
1096 # This must be in double quotes, not single quotes, because CPP may get
1097 # substituted into the Makefile and "${CC-cc}" will confuse make.
1098 CPP="${CC-cc} -E"
1099 # On the NeXT, cc -E runs the code through the compiler's parser,
1100 # not just through cpp.
1101 cat > conftest.$ac_ext <<EOF
1102 #line 1103 "configure"
1103 #include "confdefs.h"
1104 #include <assert.h>
1105 Syntax Error
1106 EOF
1107 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1108 { (eval echo configure:1109: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1109 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1110 if test -z "$ac_err"; then
1111 :
1112 else
1113 echo "$ac_err" >&5
1114 echo "configure: failed program was:" >&5
1115 cat conftest.$ac_ext >&5
1116 rm -rf conftest*
1117 CPP="${CC-cc} -E -traditional-cpp"
1118 cat > conftest.$ac_ext <<EOF
1119 #line 1120 "configure"
1120 #include "confdefs.h"
1121 #include <assert.h>
1122 Syntax Error
1123 EOF
1124 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1125 { (eval echo configure:1126: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1126 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1127 if test -z "$ac_err"; then
1128 :
1129 else
1130 echo "$ac_err" >&5
1131 echo "configure: failed program was:" >&5
1132 cat conftest.$ac_ext >&5
1133 rm -rf conftest*
1134 CPP="${CC-cc} -nologo -E"
1135 cat > conftest.$ac_ext <<EOF
1136 #line 1137 "configure"
1137 #include "confdefs.h"
1138 #include <assert.h>
1139 Syntax Error
1140 EOF
1141 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1142 { (eval echo configure:1143: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1143 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1144 if test -z "$ac_err"; then
1145 :
1146 else
1147 echo "$ac_err" >&5
1148 echo "configure: failed program was:" >&5
1149 cat conftest.$ac_ext >&5
1150 rm -rf conftest*
1151 CPP=/lib/cpp
1152 fi
1153 rm -f conftest*
1154 fi
1155 rm -f conftest*
1156 fi
1157 rm -f conftest*
1158 ac_cv_prog_CPP="$CPP"
1159 fi
1160 CPP="$ac_cv_prog_CPP"
1161 else
1162 ac_cv_prog_CPP="$CPP"
1163 fi
1164 echo "$ac_t""$CPP" 1>&6
1165
1166 # Check whether --enable-shared or --disable-shared was given.
1167 if test "${enable_shared+set}" = set; then
1168 enableval="$enable_shared"
1169 p=${PACKAGE-default}
1170 case "$enableval" in
1171 yes) enable_shared=yes ;;
1172 no) enable_shared=no ;;
1173 *)
1174 enable_shared=no
1175 # Look at the argument we got. We use all the common list separators.
1176 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1177 for pkg in $enableval; do
1178 if test "X$pkg" = "X$p"; then
1179 enable_shared=yes
1180 fi
1181 done
1182 IFS="$ac_save_ifs"
1183 ;;
1184 esac
1185 else
1186 enable_shared=yes
1187 fi
1188
1189 # Check whether --enable-static or --disable-static was given.
1190 if test "${enable_static+set}" = set; then
1191 enableval="$enable_static"
1192 p=${PACKAGE-default}
1193 case "$enableval" in
1194 yes) enable_static=yes ;;
1195 no) enable_static=no ;;
1196 *)
1197 enable_static=no
1198 # Look at the argument we got. We use all the common list separators.
1199 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1200 for pkg in $enableval; do
1201 if test "X$pkg" = "X$p"; then
1202 enable_static=yes
1203 fi
1204 done
1205 IFS="$ac_save_ifs"
1206 ;;
1207 esac
1208 else
1209 enable_static=yes
1210 fi
1211
1212 # Check whether --enable-fast-install or --disable-fast-install was given.
1213 if test "${enable_fast_install+set}" = set; then
1214 enableval="$enable_fast_install"
1215 p=${PACKAGE-default}
1216 case "$enableval" in
1217 yes) enable_fast_install=yes ;;
1218 no) enable_fast_install=no ;;
1219 *)
1220 enable_fast_install=no
1221 # Look at the argument we got. We use all the common list separators.
1222 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1223 for pkg in $enableval; do
1224 if test "X$pkg" = "X$p"; then
1225 enable_fast_install=yes
1226 fi
1227 done
1228 IFS="$ac_save_ifs"
1229 ;;
1230 esac
1231 else
1232 enable_fast_install=yes
1233 fi
1234
1235
1236 # Make sure we can run config.sub.
1237 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1238 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1239 fi
1240
1241 echo $ac_n "checking host system type""... $ac_c" 1>&6
1242 echo "configure:1243: checking host system type" >&5
1243
1244 host_alias=$host
1245 case "$host_alias" in
1246 NONE)
1247 case $nonopt in
1248 NONE)
1249 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1250 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1251 fi ;;
1252 *) host_alias=$nonopt ;;
1253 esac ;;
1254 esac
1255
1256 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1257 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1258 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1259 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1260 echo "$ac_t""$host" 1>&6
1261
1262 echo $ac_n "checking build system type""... $ac_c" 1>&6
1263 echo "configure:1264: checking build system type" >&5
1264
1265 build_alias=$build
1266 case "$build_alias" in
1267 NONE)
1268 case $nonopt in
1269 NONE) build_alias=$host_alias ;;
1270 *) build_alias=$nonopt ;;
1271 esac ;;
1272 esac
1273
1274 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1275 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1276 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1277 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1278 echo "$ac_t""$build" 1>&6
1279
1280 # Extract the first word of "ranlib", so it can be a program name with args.
1281 set dummy ranlib; ac_word=$2
1282 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1283 echo "configure:1284: checking for $ac_word" >&5
1284 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1285 echo $ac_n "(cached) $ac_c" 1>&6
1286 else
1287 if test -n "$RANLIB"; then
1288 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1289 else
1290 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1291 ac_dummy="$PATH"
1292 for ac_dir in $ac_dummy; do
1293 test -z "$ac_dir" && ac_dir=.
1294 if test -f $ac_dir/$ac_word; then
1295 ac_cv_prog_RANLIB="ranlib"
1296 break
1297 fi
1298 done
1299 IFS="$ac_save_ifs"
1300 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1301 fi
1302 fi
1303 RANLIB="$ac_cv_prog_RANLIB"
1304 if test -n "$RANLIB"; then
1305 echo "$ac_t""$RANLIB" 1>&6
1306 else
1307 echo "$ac_t""no" 1>&6
1308 fi
1309
1310 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1311 if test "${with_gnu_ld+set}" = set; then
1312 withval="$with_gnu_ld"
1313 test "$withval" = no || with_gnu_ld=yes
1314 else
1315 with_gnu_ld=no
1316 fi
1317
1318 ac_prog=ld
1319 if test "$ac_cv_prog_gcc" = yes; then
1320 # Check if gcc -print-prog-name=ld gives a path.
1321 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1322 echo "configure:1323: checking for ld used by GCC" >&5
1323 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1324 case "$ac_prog" in
1325 # Accept absolute paths.
1326 [\\/]* | [A-Za-z]:[\\/]*)
1327 re_direlt='/[^/][^/]*/\.\./'
1328 # Canonicalize the path of ld
1329 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1330 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1331 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1332 done
1333 test -z "$LD" && LD="$ac_prog"
1334 ;;
1335 "")
1336 # If it fails, then pretend we aren't using GCC.
1337 ac_prog=ld
1338 ;;
1339 *)
1340 # If it is relative, then search for the first ld in PATH.
1341 with_gnu_ld=unknown
1342 ;;
1343 esac
1344 elif test "$with_gnu_ld" = yes; then
1345 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1346 echo "configure:1347: checking for GNU ld" >&5
1347 else
1348 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1349 echo "configure:1350: checking for non-GNU ld" >&5
1350 fi
1351 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1352 echo $ac_n "(cached) $ac_c" 1>&6
1353 else
1354 if test -z "$LD"; then
1355 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1356 for ac_dir in $PATH; do
1357 test -z "$ac_dir" && ac_dir=.
1358 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1359 ac_cv_path_LD="$ac_dir/$ac_prog"
1360 # Check to see if the program is GNU ld. I'd rather use --version,
1361 # but apparently some GNU ld's only accept -v.
1362 # Break only if it was the GNU/non-GNU ld that we prefer.
1363 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1364 test "$with_gnu_ld" != no && break
1365 else
1366 test "$with_gnu_ld" != yes && break
1367 fi
1368 fi
1369 done
1370 IFS="$ac_save_ifs"
1371 else
1372 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1373 fi
1374 fi
1375
1376 LD="$ac_cv_path_LD"
1377 if test -n "$LD"; then
1378 echo "$ac_t""$LD" 1>&6
1379 else
1380 echo "$ac_t""no" 1>&6
1381 fi
1382 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1383
1384 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1385 echo "configure:1386: checking if the linker ($LD) is GNU ld" >&5
1386 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1387 echo $ac_n "(cached) $ac_c" 1>&6
1388 else
1389 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1390 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1391 ac_cv_prog_gnu_ld=yes
1392 else
1393 ac_cv_prog_gnu_ld=no
1394 fi
1395 fi
1396
1397 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1398
1399
1400 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1401 echo "configure:1402: checking for BSD-compatible nm" >&5
1402 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1403 echo $ac_n "(cached) $ac_c" 1>&6
1404 else
1405 if test -n "$NM"; then
1406 # Let the user override the test.
1407 ac_cv_path_NM="$NM"
1408 else
1409 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1410 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1411 test -z "$ac_dir" && ac_dir=.
1412 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1413 # Check to see if the nm accepts a BSD-compat flag.
1414 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1415 # nm: unknown option "B" ignored
1416 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1417 ac_cv_path_NM="$ac_dir/nm -B"
1418 break
1419 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1420 ac_cv_path_NM="$ac_dir/nm -p"
1421 break
1422 else
1423 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1424 continue # so that we can try to find one that supports BSD flags
1425 fi
1426 fi
1427 done
1428 IFS="$ac_save_ifs"
1429 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1430 fi
1431 fi
1432
1433 NM="$ac_cv_path_NM"
1434 echo "$ac_t""$NM" 1>&6
1435
1436
1437 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1438 echo "configure:1439: checking whether ln -s works" >&5
1439 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1440 echo $ac_n "(cached) $ac_c" 1>&6
1441 else
1442 rm -f conftestdata
1443 if ln -s X conftestdata 2>/dev/null
1444 then
1445 rm -f conftestdata
1446 ac_cv_prog_LN_S="ln -s"
1447 else
1448 ac_cv_prog_LN_S=ln
1449 fi
1450 fi
1451 LN_S="$ac_cv_prog_LN_S"
1452 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1453 echo "$ac_t""yes" 1>&6
1454 else
1455 echo "$ac_t""no" 1>&6
1456 fi
1457
1458
1459 # Check for any special flags to pass to ltconfig.
1460 libtool_flags="--cache-file=$cache_file"
1461 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1462 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1463 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1464 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1465 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1466
1467
1468 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1469 if test "${enable_libtool_lock+set}" = set; then
1470 enableval="$enable_libtool_lock"
1471 :
1472 fi
1473
1474 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1475 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1476
1477 # Some flags need to be propagated to the compiler or linker for good
1478 # libtool support.
1479 case "$host" in
1480 *-*-irix6*)
1481 # Find out which ABI we are using.
1482 echo '#line 1483 "configure"' > conftest.$ac_ext
1483 if { (eval echo configure:1484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1484 case "`/usr/bin/file conftest.o`" in
1485 *32-bit*)
1486 LD="${LD-ld} -32"
1487 ;;
1488 *N32*)
1489 LD="${LD-ld} -n32"
1490 ;;
1491 *64-bit*)
1492 LD="${LD-ld} -64"
1493 ;;
1494 esac
1495 fi
1496 rm -rf conftest*
1497 ;;
1498
1499 *-*-sco3.2v5*)
1500 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1501 SAVE_CFLAGS="$CFLAGS"
1502 CFLAGS="$CFLAGS -belf"
1503 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1504 echo "configure:1505: checking whether the C compiler needs -belf" >&5
1505 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1506 echo $ac_n "(cached) $ac_c" 1>&6
1507 else
1508 cat > conftest.$ac_ext <<EOF
1509 #line 1510 "configure"
1510 #include "confdefs.h"
1511
1512 int main() {
1513
1514 ; return 0; }
1515 EOF
1516 if { (eval echo configure:1517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1517 rm -rf conftest*
1518 lt_cv_cc_needs_belf=yes
1519 else
1520 echo "configure: failed program was:" >&5
1521 cat conftest.$ac_ext >&5
1522 rm -rf conftest*
1523 lt_cv_cc_needs_belf=no
1524 fi
1525 rm -f conftest*
1526 fi
1527
1528 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1529 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1530 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1531 CFLAGS="$SAVE_CFLAGS"
1532 fi
1533 ;;
1534
1535
1536 esac
1537
1538
1539 # Save cache, so that ltconfig can load it
1540 cat > confcache <<\EOF
1541 # This file is a shell script that caches the results of configure
1542 # tests run on this system so they can be shared between configure
1543 # scripts and configure runs. It is not useful on other systems.
1544 # If it contains results you don't want to keep, you may remove or edit it.
1545 #
1546 # By default, configure uses ./config.cache as the cache file,
1547 # creating it if it does not exist already. You can give configure
1548 # the --cache-file=FILE option to use a different cache file; that is
1549 # what configure does when it calls configure scripts in
1550 # subdirectories, so they share the cache.
1551 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1552 # config.status only pays attention to the cache file if you give it the
1553 # --recheck option to rerun configure.
1554 #
1555 EOF
1556 # The following way of writing the cache mishandles newlines in values,
1557 # but we know of no workaround that is simple, portable, and efficient.
1558 # So, don't put newlines in cache variables' values.
1559 # Ultrix sh set writes to stderr and can't be redirected directly,
1560 # and sets the high bit in the cache file unless we assign to the vars.
1561 (set) 2>&1 |
1562 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1563 *ac_space=\ *)
1564 # `set' does not quote correctly, so add quotes (double-quote substitution
1565 # turns \\\\ into \\, and sed turns \\ into \).
1566 sed -n \
1567 -e "s/'/'\\\\''/g" \
1568 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1569 ;;
1570 *)
1571 # `set' quotes correctly as required by POSIX, so do not add quotes.
1572 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1573 ;;
1574 esac >> confcache
1575 if cmp -s $cache_file confcache; then
1576 :
1577 else
1578 if test -w $cache_file; then
1579 echo "updating cache $cache_file"
1580 cat confcache > $cache_file
1581 else
1582 echo "not updating unwritable cache $cache_file"
1583 fi
1584 fi
1585 rm -f confcache
1586
1587
1588 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1589 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1590 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1591 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1592 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1593 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1594 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1595 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1596
1597 # Reload cache, that may have been modified by ltconfig
1598 if test -r "$cache_file"; then
1599 echo "loading cache $cache_file"
1600 . $cache_file
1601 else
1602 echo "creating cache $cache_file"
1603 > $cache_file
1604 fi
1605
1606
1607 # This can be used to rebuild libtool when needed
1608 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1609
1610 # Always use our own libtool.
1611 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1612
1613 # Redirect the config.log output again, so that the ltconfig log is not
1614 # clobbered by the next message.
1615 exec 5>>./config.log
1616
1617
1618 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1619 echo "configure:1620: checking for AIX" >&5
1620 cat > conftest.$ac_ext <<EOF
1621 #line 1622 "configure"
1622 #include "confdefs.h"
1623 #ifdef _AIX
1624 yes
1625 #endif
1626
1627 EOF
1628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1629 egrep "yes" >/dev/null 2>&1; then
1630 rm -rf conftest*
1631 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1632 #define _ALL_SOURCE 1
1633 EOF
1634
1635 else
1636 rm -rf conftest*
1637 echo "$ac_t""no" 1>&6
1638 fi
1639 rm -f conftest*
1640
1641
1642 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1643 echo "configure:1644: checking for POSIXized ISC" >&5
1644 if test -d /etc/conf/kconfig.d &&
1645 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1646 then
1647 echo "$ac_t""yes" 1>&6
1648 ISC=yes # If later tests want to check for ISC.
1649 cat >> confdefs.h <<\EOF
1650 #define _POSIX_SOURCE 1
1651 EOF
1652
1653 if test "$GCC" = yes; then
1654 CC="$CC -posix"
1655 else
1656 CC="$CC -Xp"
1657 fi
1658 else
1659 echo "$ac_t""no" 1>&6
1660 ISC=
1661 fi
1662
1663 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1664 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1665 echo "configure:1666: checking for minix/config.h" >&5
1666 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1667 echo $ac_n "(cached) $ac_c" 1>&6
1668 else
1669 cat > conftest.$ac_ext <<EOF
1670 #line 1671 "configure"
1671 #include "confdefs.h"
1672 #include <minix/config.h>
1673 EOF
1674 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1675 { (eval echo configure:1676: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1676 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1677 if test -z "$ac_err"; then
1678 rm -rf conftest*
1679 eval "ac_cv_header_$ac_safe=yes"
1680 else
1681 echo "$ac_err" >&5
1682 echo "configure: failed program was:" >&5
1683 cat conftest.$ac_ext >&5
1684 rm -rf conftest*
1685 eval "ac_cv_header_$ac_safe=no"
1686 fi
1687 rm -f conftest*
1688 fi
1689 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1690 echo "$ac_t""yes" 1>&6
1691 MINIX=yes
1692 else
1693 echo "$ac_t""no" 1>&6
1694 MINIX=
1695 fi
1696
1697 if test "$MINIX" = yes; then
1698 cat >> confdefs.h <<\EOF
1699 #define _POSIX_SOURCE 1
1700 EOF
1701
1702 cat >> confdefs.h <<\EOF
1703 #define _POSIX_1_SOURCE 2
1704 EOF
1705
1706 cat >> confdefs.h <<\EOF
1707 #define _MINIX 1
1708 EOF
1709
1710 fi
1711
1712
1713
1714
1715
1716 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
1717 echo "configure:1718: checking for ${CC-cc} option to accept ANSI C" >&5
1718 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
1719 echo $ac_n "(cached) $ac_c" 1>&6
1720 else
1721 am_cv_prog_cc_stdc=no
1722 ac_save_CC="$CC"
1723 # Don't try gcc -ansi; that turns off useful extensions and
1724 # breaks some systems' header files.
1725 # AIX -qlanglvl=ansi
1726 # Ultrix and OSF/1 -std1
1727 # HP-UX -Aa -D_HPUX_SOURCE
1728 # SVR4 -Xc -D__EXTENSIONS__
1729 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1730 do
1731 CC="$ac_save_CC $ac_arg"
1732 cat > conftest.$ac_ext <<EOF
1733 #line 1734 "configure"
1734 #include "confdefs.h"
1735 #include <stdarg.h>
1736 #include <stdio.h>
1737 #include <sys/types.h>
1738 #include <sys/stat.h>
1739 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1740 struct buf { int x; };
1741 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1742 static char *e (p, i)
1743 char **p;
1744 int i;
1745 {
1746 return p[i];
1747 }
1748 static char *f (char * (*g) (char **, int), char **p, ...)
1749 {
1750 char *s;
1751 va_list v;
1752 va_start (v,p);
1753 s = g (p, va_arg (v,int));
1754 va_end (v);
1755 return s;
1756 }
1757 int test (int i, double x);
1758 struct s1 {int (*f) (int a);};
1759 struct s2 {int (*f) (double a);};
1760 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1761 int argc;
1762 char **argv;
1763
1764 int main() {
1765
1766 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1767
1768 ; return 0; }
1769 EOF
1770 if { (eval echo configure:1771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1771 rm -rf conftest*
1772 am_cv_prog_cc_stdc="$ac_arg"; break
1773 else
1774 echo "configure: failed program was:" >&5
1775 cat conftest.$ac_ext >&5
1776 fi
1777 rm -f conftest*
1778 done
1779 CC="$ac_save_CC"
1780
1781 fi
1782
1783 if test -z "$am_cv_prog_cc_stdc"; then
1784 echo "$ac_t""none needed" 1>&6
1785 else
1786 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1787 fi
1788 case "x$am_cv_prog_cc_stdc" in
1789 x|xno) ;;
1790 *) CC="$CC $am_cv_prog_cc_stdc" ;;
1791 esac
1792
1793
1794 echo $ac_n "checking for working const""... $ac_c" 1>&6
1795 echo "configure:1796: checking for working const" >&5
1796 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1797 echo $ac_n "(cached) $ac_c" 1>&6
1798 else
1799 cat > conftest.$ac_ext <<EOF
1800 #line 1801 "configure"
1801 #include "confdefs.h"
1802
1803 int main() {
1804
1805 /* Ultrix mips cc rejects this. */
1806 typedef int charset[2]; const charset x;
1807 /* SunOS 4.1.1 cc rejects this. */
1808 char const *const *ccp;
1809 char **p;
1810 /* NEC SVR4.0.2 mips cc rejects this. */
1811 struct point {int x, y;};
1812 static struct point const zero = {0,0};
1813 /* AIX XL C 1.02.0.0 rejects this.
1814 It does not let you subtract one const X* pointer from another in an arm
1815 of an if-expression whose if-part is not a constant expression */
1816 const char *g = "string";
1817 ccp = &g + (g ? g-g : 0);
1818 /* HPUX 7.0 cc rejects these. */
1819 ++ccp;
1820 p = (char**) ccp;
1821 ccp = (char const *const *) p;
1822 { /* SCO 3.2v4 cc rejects this. */
1823 char *t;
1824 char const *s = 0 ? (char *) 0 : (char const *) 0;
1825
1826 *t++ = 0;
1827 }
1828 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1829 int x[] = {25, 17};
1830 const int *foo = &x[0];
1831 ++foo;
1832 }
1833 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1834 typedef const int *iptr;
1835 iptr p = 0;
1836 ++p;
1837 }
1838 { /* AIX XL C 1.02.0.0 rejects this saying
1839 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1840 struct s { int j; const int *ap[3]; };
1841 struct s *b; b->j = 5;
1842 }
1843 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1844 const int foo = 10;
1845 }
1846
1847 ; return 0; }
1848 EOF
1849 if { (eval echo configure:1850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1850 rm -rf conftest*
1851 ac_cv_c_const=yes
1852 else
1853 echo "configure: failed program was:" >&5
1854 cat conftest.$ac_ext >&5
1855 rm -rf conftest*
1856 ac_cv_c_const=no
1857 fi
1858 rm -f conftest*
1859 fi
1860
1861 echo "$ac_t""$ac_cv_c_const" 1>&6
1862 if test $ac_cv_c_const = no; then
1863 cat >> confdefs.h <<\EOF
1864 #define const
1865 EOF
1866
1867 fi
1868
1869 echo $ac_n "checking for inline""... $ac_c" 1>&6
1870 echo "configure:1871: checking for inline" >&5
1871 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1872 echo $ac_n "(cached) $ac_c" 1>&6
1873 else
1874 ac_cv_c_inline=no
1875 for ac_kw in inline __inline__ __inline; do
1876 cat > conftest.$ac_ext <<EOF
1877 #line 1878 "configure"
1878 #include "confdefs.h"
1879
1880 int main() {
1881 } $ac_kw foo() {
1882 ; return 0; }
1883 EOF
1884 if { (eval echo configure:1885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1885 rm -rf conftest*
1886 ac_cv_c_inline=$ac_kw; break
1887 else
1888 echo "configure: failed program was:" >&5
1889 cat conftest.$ac_ext >&5
1890 fi
1891 rm -f conftest*
1892 done
1893
1894 fi
1895
1896 echo "$ac_t""$ac_cv_c_inline" 1>&6
1897 case "$ac_cv_c_inline" in
1898 inline | yes) ;;
1899 no) cat >> confdefs.h <<\EOF
1900 #define inline
1901 EOF
1902 ;;
1903 *) cat >> confdefs.h <<EOF
1904 #define inline $ac_cv_c_inline
1905 EOF
1906 ;;
1907 esac
1908
1909 echo $ac_n "checking size of int""... $ac_c" 1>&6
1910 echo "configure:1911: checking size of int" >&5
1911 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1912 echo $ac_n "(cached) $ac_c" 1>&6
1913 else
1914 if test "$cross_compiling" = yes; then
1915 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1916 else
1917 cat > conftest.$ac_ext <<EOF
1918 #line 1919 "configure"
1919 #include "confdefs.h"
1920 #include <stdio.h>
1921 main()
1922 {
1923 FILE *f=fopen("conftestval", "w");
1924 if (!f) exit(1);
1925 fprintf(f, "%d\n", sizeof(int));
1926 exit(0);
1927 }
1928 EOF
1929 if { (eval echo configure:1930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1930 then
1931 ac_cv_sizeof_int=`cat conftestval`
1932 else
1933 echo "configure: failed program was:" >&5
1934 cat conftest.$ac_ext >&5
1935 rm -fr conftest*
1936 ac_cv_sizeof_int=0
1937 fi
1938 rm -fr conftest*
1939 fi
1940
1941 fi
1942 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1943 cat >> confdefs.h <<EOF
1944 #define SIZEOF_INT $ac_cv_sizeof_int
1945 EOF
1946
1947
1948 echo $ac_n "checking size of long""... $ac_c" 1>&6
1949 echo "configure:1950: checking size of long" >&5
1950 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1951 echo $ac_n "(cached) $ac_c" 1>&6
1952 else
1953 if test "$cross_compiling" = yes; then
1954 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1955 else
1956 cat > conftest.$ac_ext <<EOF
1957 #line 1958 "configure"
1958 #include "confdefs.h"
1959 #include <stdio.h>
1960 main()
1961 {
1962 FILE *f=fopen("conftestval", "w");
1963 if (!f) exit(1);
1964 fprintf(f, "%d\n", sizeof(long));
1965 exit(0);
1966 }
1967 EOF
1968 if { (eval echo configure:1969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1969 then
1970 ac_cv_sizeof_long=`cat conftestval`
1971 else
1972 echo "configure: failed program was:" >&5
1973 cat conftest.$ac_ext >&5
1974 rm -fr conftest*
1975 ac_cv_sizeof_long=0
1976 fi
1977 rm -fr conftest*
1978 fi
1979
1980 fi
1981 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1982 cat >> confdefs.h <<EOF
1983 #define SIZEOF_LONG $ac_cv_sizeof_long
1984 EOF
1985
1986
1987 echo $ac_n "checking for long longs""... $ac_c" 1>&6
1988 echo "configure:1989: checking for long longs" >&5
1989 if eval "test \"`echo '$''{'scm_cv_long_longs'+set}'`\" = set"; then
1990 echo $ac_n "(cached) $ac_c" 1>&6
1991 else
1992 cat > conftest.$ac_ext <<EOF
1993 #line 1994 "configure"
1994 #include "confdefs.h"
1995
1996 int main() {
1997 long long a
1998 ; return 0; }
1999 EOF
2000 if { (eval echo configure:2001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2001 rm -rf conftest*
2002 scm_cv_long_longs=yes
2003 else
2004 echo "configure: failed program was:" >&5
2005 cat conftest.$ac_ext >&5
2006 rm -rf conftest*
2007 scm_cv_long_longs=no
2008 fi
2009 rm -f conftest*
2010 fi
2011
2012 echo "$ac_t""$scm_cv_long_longs" 1>&6
2013 if test "$scm_cv_long_longs" = yes; then
2014 cat >> confdefs.h <<\EOF
2015 #define HAVE_LONG_LONGS 1
2016 EOF
2017
2018 fi
2019
2020 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2021 echo "configure:2022: checking for ANSI C header files" >&5
2022 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2023 echo $ac_n "(cached) $ac_c" 1>&6
2024 else
2025 cat > conftest.$ac_ext <<EOF
2026 #line 2027 "configure"
2027 #include "confdefs.h"
2028 #include <stdlib.h>
2029 #include <stdarg.h>
2030 #include <string.h>
2031 #include <float.h>
2032 EOF
2033 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2034 { (eval echo configure:2035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2035 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2036 if test -z "$ac_err"; then
2037 rm -rf conftest*
2038 ac_cv_header_stdc=yes
2039 else
2040 echo "$ac_err" >&5
2041 echo "configure: failed program was:" >&5
2042 cat conftest.$ac_ext >&5
2043 rm -rf conftest*
2044 ac_cv_header_stdc=no
2045 fi
2046 rm -f conftest*
2047
2048 if test $ac_cv_header_stdc = yes; then
2049 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2050 cat > conftest.$ac_ext <<EOF
2051 #line 2052 "configure"
2052 #include "confdefs.h"
2053 #include <string.h>
2054 EOF
2055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2056 egrep "memchr" >/dev/null 2>&1; then
2057 :
2058 else
2059 rm -rf conftest*
2060 ac_cv_header_stdc=no
2061 fi
2062 rm -f conftest*
2063
2064 fi
2065
2066 if test $ac_cv_header_stdc = yes; then
2067 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2068 cat > conftest.$ac_ext <<EOF
2069 #line 2070 "configure"
2070 #include "confdefs.h"
2071 #include <stdlib.h>
2072 EOF
2073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2074 egrep "free" >/dev/null 2>&1; then
2075 :
2076 else
2077 rm -rf conftest*
2078 ac_cv_header_stdc=no
2079 fi
2080 rm -f conftest*
2081
2082 fi
2083
2084 if test $ac_cv_header_stdc = yes; then
2085 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2086 if test "$cross_compiling" = yes; then
2087 :
2088 else
2089 cat > conftest.$ac_ext <<EOF
2090 #line 2091 "configure"
2091 #include "confdefs.h"
2092 #include <ctype.h>
2093 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2094 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2095 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2096 int main () { int i; for (i = 0; i < 256; i++)
2097 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2098 exit (0); }
2099
2100 EOF
2101 if { (eval echo configure:2102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2102 then
2103 :
2104 else
2105 echo "configure: failed program was:" >&5
2106 cat conftest.$ac_ext >&5
2107 rm -fr conftest*
2108 ac_cv_header_stdc=no
2109 fi
2110 rm -fr conftest*
2111 fi
2112
2113 fi
2114 fi
2115
2116 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2117 if test $ac_cv_header_stdc = yes; then
2118 cat >> confdefs.h <<\EOF
2119 #define STDC_HEADERS 1
2120 EOF
2121
2122 fi
2123
2124 ac_header_dirent=no
2125 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2126 do
2127 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2128 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2129 echo "configure:2130: checking for $ac_hdr that defines DIR" >&5
2130 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2131 echo $ac_n "(cached) $ac_c" 1>&6
2132 else
2133 cat > conftest.$ac_ext <<EOF
2134 #line 2135 "configure"
2135 #include "confdefs.h"
2136 #include <sys/types.h>
2137 #include <$ac_hdr>
2138 int main() {
2139 DIR *dirp = 0;
2140 ; return 0; }
2141 EOF
2142 if { (eval echo configure:2143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2143 rm -rf conftest*
2144 eval "ac_cv_header_dirent_$ac_safe=yes"
2145 else
2146 echo "configure: failed program was:" >&5
2147 cat conftest.$ac_ext >&5
2148 rm -rf conftest*
2149 eval "ac_cv_header_dirent_$ac_safe=no"
2150 fi
2151 rm -f conftest*
2152 fi
2153 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2154 echo "$ac_t""yes" 1>&6
2155 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2156 cat >> confdefs.h <<EOF
2157 #define $ac_tr_hdr 1
2158 EOF
2159 ac_header_dirent=$ac_hdr; break
2160 else
2161 echo "$ac_t""no" 1>&6
2162 fi
2163 done
2164 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2165 if test $ac_header_dirent = dirent.h; then
2166 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2167 echo "configure:2168: checking for opendir in -ldir" >&5
2168 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2169 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2170 echo $ac_n "(cached) $ac_c" 1>&6
2171 else
2172 ac_save_LIBS="$LIBS"
2173 LIBS="-ldir $LIBS"
2174 cat > conftest.$ac_ext <<EOF
2175 #line 2176 "configure"
2176 #include "confdefs.h"
2177 /* Override any gcc2 internal prototype to avoid an error. */
2178 /* We use char because int might match the return type of a gcc2
2179 builtin and then its argument prototype would still apply. */
2180 char opendir();
2181
2182 int main() {
2183 opendir()
2184 ; return 0; }
2185 EOF
2186 if { (eval echo configure:2187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2187 rm -rf conftest*
2188 eval "ac_cv_lib_$ac_lib_var=yes"
2189 else
2190 echo "configure: failed program was:" >&5
2191 cat conftest.$ac_ext >&5
2192 rm -rf conftest*
2193 eval "ac_cv_lib_$ac_lib_var=no"
2194 fi
2195 rm -f conftest*
2196 LIBS="$ac_save_LIBS"
2197
2198 fi
2199 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2200 echo "$ac_t""yes" 1>&6
2201 LIBS="$LIBS -ldir"
2202 else
2203 echo "$ac_t""no" 1>&6
2204 fi
2205
2206 else
2207 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2208 echo "configure:2209: checking for opendir in -lx" >&5
2209 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2210 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2211 echo $ac_n "(cached) $ac_c" 1>&6
2212 else
2213 ac_save_LIBS="$LIBS"
2214 LIBS="-lx $LIBS"
2215 cat > conftest.$ac_ext <<EOF
2216 #line 2217 "configure"
2217 #include "confdefs.h"
2218 /* Override any gcc2 internal prototype to avoid an error. */
2219 /* We use char because int might match the return type of a gcc2
2220 builtin and then its argument prototype would still apply. */
2221 char opendir();
2222
2223 int main() {
2224 opendir()
2225 ; return 0; }
2226 EOF
2227 if { (eval echo configure:2228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2228 rm -rf conftest*
2229 eval "ac_cv_lib_$ac_lib_var=yes"
2230 else
2231 echo "configure: failed program was:" >&5
2232 cat conftest.$ac_ext >&5
2233 rm -rf conftest*
2234 eval "ac_cv_lib_$ac_lib_var=no"
2235 fi
2236 rm -f conftest*
2237 LIBS="$ac_save_LIBS"
2238
2239 fi
2240 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2241 echo "$ac_t""yes" 1>&6
2242 LIBS="$LIBS -lx"
2243 else
2244 echo "$ac_t""no" 1>&6
2245 fi
2246
2247 fi
2248
2249 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2250 echo "configure:2251: checking whether time.h and sys/time.h may both be included" >&5
2251 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2252 echo $ac_n "(cached) $ac_c" 1>&6
2253 else
2254 cat > conftest.$ac_ext <<EOF
2255 #line 2256 "configure"
2256 #include "confdefs.h"
2257 #include <sys/types.h>
2258 #include <sys/time.h>
2259 #include <time.h>
2260 int main() {
2261 struct tm *tp;
2262 ; return 0; }
2263 EOF
2264 if { (eval echo configure:2265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2265 rm -rf conftest*
2266 ac_cv_header_time=yes
2267 else
2268 echo "configure: failed program was:" >&5
2269 cat conftest.$ac_ext >&5
2270 rm -rf conftest*
2271 ac_cv_header_time=no
2272 fi
2273 rm -f conftest*
2274 fi
2275
2276 echo "$ac_t""$ac_cv_header_time" 1>&6
2277 if test $ac_cv_header_time = yes; then
2278 cat >> confdefs.h <<\EOF
2279 #define TIME_WITH_SYS_TIME 1
2280 EOF
2281
2282 fi
2283
2284 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2285 echo "configure:2286: checking for sys/wait.h that is POSIX.1 compatible" >&5
2286 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2287 echo $ac_n "(cached) $ac_c" 1>&6
2288 else
2289 cat > conftest.$ac_ext <<EOF
2290 #line 2291 "configure"
2291 #include "confdefs.h"
2292 #include <sys/types.h>
2293 #include <sys/wait.h>
2294 #ifndef WEXITSTATUS
2295 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2296 #endif
2297 #ifndef WIFEXITED
2298 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2299 #endif
2300 int main() {
2301 int s;
2302 wait (&s);
2303 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2304 ; return 0; }
2305 EOF
2306 if { (eval echo configure:2307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2307 rm -rf conftest*
2308 ac_cv_header_sys_wait_h=yes
2309 else
2310 echo "configure: failed program was:" >&5
2311 cat conftest.$ac_ext >&5
2312 rm -rf conftest*
2313 ac_cv_header_sys_wait_h=no
2314 fi
2315 rm -f conftest*
2316 fi
2317
2318 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2319 if test $ac_cv_header_sys_wait_h = yes; then
2320 cat >> confdefs.h <<\EOF
2321 #define HAVE_SYS_WAIT_H 1
2322 EOF
2323
2324 fi
2325
2326 for ac_hdr in io.h libc.h limits.h malloc.h memory.h string.h regex.h rxposix.h rx/rxposix.h sys/ioctl.h sys/select.h sys/time.h sys/timeb.h sys/times.h sys/types.h sys/utime.h time.h unistd.h utime.h
2327 do
2328 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2329 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2330 echo "configure:2331: checking for $ac_hdr" >&5
2331 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2332 echo $ac_n "(cached) $ac_c" 1>&6
2333 else
2334 cat > conftest.$ac_ext <<EOF
2335 #line 2336 "configure"
2336 #include "confdefs.h"
2337 #include <$ac_hdr>
2338 EOF
2339 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2340 { (eval echo configure:2341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2341 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2342 if test -z "$ac_err"; then
2343 rm -rf conftest*
2344 eval "ac_cv_header_$ac_safe=yes"
2345 else
2346 echo "$ac_err" >&5
2347 echo "configure: failed program was:" >&5
2348 cat conftest.$ac_ext >&5
2349 rm -rf conftest*
2350 eval "ac_cv_header_$ac_safe=no"
2351 fi
2352 rm -f conftest*
2353 fi
2354 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2355 echo "$ac_t""yes" 1>&6
2356 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2357 cat >> confdefs.h <<EOF
2358 #define $ac_tr_hdr 1
2359 EOF
2360
2361 else
2362 echo "$ac_t""no" 1>&6
2363 fi
2364 done
2365
2366
2367 for ac_hdr in libc.h unistd.h
2368 do
2369 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2370 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2371 echo "configure:2372: checking for $ac_hdr" >&5
2372 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2373 echo $ac_n "(cached) $ac_c" 1>&6
2374 else
2375 cat > conftest.$ac_ext <<EOF
2376 #line 2377 "configure"
2377 #include "confdefs.h"
2378 #include <$ac_hdr>
2379 EOF
2380 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2381 { (eval echo configure:2382: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2382 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2383 if test -z "$ac_err"; then
2384 rm -rf conftest*
2385 eval "ac_cv_header_$ac_safe=yes"
2386 else
2387 echo "$ac_err" >&5
2388 echo "configure: failed program was:" >&5
2389 cat conftest.$ac_ext >&5
2390 rm -rf conftest*
2391 eval "ac_cv_header_$ac_safe=no"
2392 fi
2393 rm -f conftest*
2394 fi
2395 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2396 echo "$ac_t""yes" 1>&6
2397 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2398 cat >> confdefs.h <<EOF
2399 #define $ac_tr_hdr 1
2400 EOF
2401
2402 else
2403 echo "$ac_t""no" 1>&6
2404 fi
2405 done
2406
2407 echo $ac_n "checking "whether libc.h and unistd.h can be included together"""... $ac_c" 1>&6
2408 echo "configure:2409: checking "whether libc.h and unistd.h can be included together"" >&5
2409 if eval "test \"`echo '$''{'guile_cv_header_libc_with_unistd'+set}'`\" = set"; then
2410 echo $ac_n "(cached) $ac_c" 1>&6
2411 else
2412
2413 if test "$ac_cv_header_libc_h" = "no"; then
2414 guile_cv_header_libc_with_unistd="no"
2415 elif test "$ac_cv_header_unistd.h" = "no"; then
2416 guile_cv_header_libc_with_unistd="yes"
2417 else
2418 cat > conftest.$ac_ext <<EOF
2419 #line 2420 "configure"
2420 #include "confdefs.h"
2421
2422 # include <libc.h>
2423 # include <unistd.h>
2424
2425 int main() {
2426
2427 ; return 0; }
2428 EOF
2429 if { (eval echo configure:2430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2430 rm -rf conftest*
2431 guile_cv_header_libc_with_unistd=yes
2432 else
2433 echo "configure: failed program was:" >&5
2434 cat conftest.$ac_ext >&5
2435 rm -rf conftest*
2436 guile_cv_header_libc_with_unistd=no
2437
2438 fi
2439 rm -f conftest*
2440 fi
2441
2442
2443 fi
2444
2445 echo "$ac_t""$guile_cv_header_libc_with_unistd" 1>&6
2446 if test "$guile_cv_header_libc_with_unistd" = yes; then
2447 cat >> confdefs.h <<\EOF
2448 #define LIBC_H_WITH_UNISTD_H 1
2449 EOF
2450
2451 fi
2452
2453
2454
2455 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2456 echo "configure:2457: checking for uid_t in sys/types.h" >&5
2457 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2458 echo $ac_n "(cached) $ac_c" 1>&6
2459 else
2460 cat > conftest.$ac_ext <<EOF
2461 #line 2462 "configure"
2462 #include "confdefs.h"
2463 #include <sys/types.h>
2464 EOF
2465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2466 egrep "uid_t" >/dev/null 2>&1; then
2467 rm -rf conftest*
2468 ac_cv_type_uid_t=yes
2469 else
2470 rm -rf conftest*
2471 ac_cv_type_uid_t=no
2472 fi
2473 rm -f conftest*
2474
2475 fi
2476
2477 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2478 if test $ac_cv_type_uid_t = no; then
2479 cat >> confdefs.h <<\EOF
2480 #define uid_t int
2481 EOF
2482
2483 cat >> confdefs.h <<\EOF
2484 #define gid_t int
2485 EOF
2486
2487 fi
2488
2489 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
2490 echo "configure:2491: checking type of array argument to getgroups" >&5
2491 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
2492 echo $ac_n "(cached) $ac_c" 1>&6
2493 else
2494 if test "$cross_compiling" = yes; then
2495 ac_cv_type_getgroups=cross
2496 else
2497 cat > conftest.$ac_ext <<EOF
2498 #line 2499 "configure"
2499 #include "confdefs.h"
2500
2501 /* Thanks to Mike Rendell for this test. */
2502 #include <sys/types.h>
2503 #define NGID 256
2504 #undef MAX
2505 #define MAX(x, y) ((x) > (y) ? (x) : (y))
2506 main()
2507 {
2508 gid_t gidset[NGID];
2509 int i, n;
2510 union { gid_t gval; long lval; } val;
2511
2512 val.lval = -1;
2513 for (i = 0; i < NGID; i++)
2514 gidset[i] = val.gval;
2515 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
2516 gidset);
2517 /* Exit non-zero if getgroups seems to require an array of ints. This
2518 happens when gid_t is short but getgroups modifies an array of ints. */
2519 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
2520 }
2521
2522 EOF
2523 if { (eval echo configure:2524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2524 then
2525 ac_cv_type_getgroups=gid_t
2526 else
2527 echo "configure: failed program was:" >&5
2528 cat conftest.$ac_ext >&5
2529 rm -fr conftest*
2530 ac_cv_type_getgroups=int
2531 fi
2532 rm -fr conftest*
2533 fi
2534
2535 if test $ac_cv_type_getgroups = cross; then
2536 cat > conftest.$ac_ext <<EOF
2537 #line 2538 "configure"
2538 #include "confdefs.h"
2539 #include <unistd.h>
2540 EOF
2541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2542 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
2543 rm -rf conftest*
2544 ac_cv_type_getgroups=gid_t
2545 else
2546 rm -rf conftest*
2547 ac_cv_type_getgroups=int
2548 fi
2549 rm -f conftest*
2550
2551 fi
2552 fi
2553
2554 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
2555 cat >> confdefs.h <<EOF
2556 #define GETGROUPS_T $ac_cv_type_getgroups
2557 EOF
2558
2559
2560 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2561 echo "configure:2562: checking return type of signal handlers" >&5
2562 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2563 echo $ac_n "(cached) $ac_c" 1>&6
2564 else
2565 cat > conftest.$ac_ext <<EOF
2566 #line 2567 "configure"
2567 #include "confdefs.h"
2568 #include <sys/types.h>
2569 #include <signal.h>
2570 #ifdef signal
2571 #undef signal
2572 #endif
2573 #ifdef __cplusplus
2574 extern "C" void (*signal (int, void (*)(int)))(int);
2575 #else
2576 void (*signal ()) ();
2577 #endif
2578
2579 int main() {
2580 int i;
2581 ; return 0; }
2582 EOF
2583 if { (eval echo configure:2584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2584 rm -rf conftest*
2585 ac_cv_type_signal=void
2586 else
2587 echo "configure: failed program was:" >&5
2588 cat conftest.$ac_ext >&5
2589 rm -rf conftest*
2590 ac_cv_type_signal=int
2591 fi
2592 rm -f conftest*
2593 fi
2594
2595 echo "$ac_t""$ac_cv_type_signal" 1>&6
2596 cat >> confdefs.h <<EOF
2597 #define RETSIGTYPE $ac_cv_type_signal
2598 EOF
2599
2600
2601 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2602 echo "configure:2603: checking for mode_t" >&5
2603 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2604 echo $ac_n "(cached) $ac_c" 1>&6
2605 else
2606 cat > conftest.$ac_ext <<EOF
2607 #line 2608 "configure"
2608 #include "confdefs.h"
2609 #include <sys/types.h>
2610 #if STDC_HEADERS
2611 #include <stdlib.h>
2612 #include <stddef.h>
2613 #endif
2614 EOF
2615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2616 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2617 rm -rf conftest*
2618 ac_cv_type_mode_t=yes
2619 else
2620 rm -rf conftest*
2621 ac_cv_type_mode_t=no
2622 fi
2623 rm -f conftest*
2624
2625 fi
2626 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2627 if test $ac_cv_type_mode_t = no; then
2628 cat >> confdefs.h <<\EOF
2629 #define mode_t int
2630 EOF
2631
2632 fi
2633
2634
2635 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
2636 echo "configure:2637: checking for main in -lm" >&5
2637 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
2638 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2639 echo $ac_n "(cached) $ac_c" 1>&6
2640 else
2641 ac_save_LIBS="$LIBS"
2642 LIBS="-lm $LIBS"
2643 cat > conftest.$ac_ext <<EOF
2644 #line 2645 "configure"
2645 #include "confdefs.h"
2646
2647 int main() {
2648 main()
2649 ; return 0; }
2650 EOF
2651 if { (eval echo configure:2652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2652 rm -rf conftest*
2653 eval "ac_cv_lib_$ac_lib_var=yes"
2654 else
2655 echo "configure: failed program was:" >&5
2656 cat conftest.$ac_ext >&5
2657 rm -rf conftest*
2658 eval "ac_cv_lib_$ac_lib_var=no"
2659 fi
2660 rm -f conftest*
2661 LIBS="$ac_save_LIBS"
2662
2663 fi
2664 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2665 echo "$ac_t""yes" 1>&6
2666 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2667 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2668 cat >> confdefs.h <<EOF
2669 #define $ac_tr_lib 1
2670 EOF
2671
2672 LIBS="-lm $LIBS"
2673
2674 else
2675 echo "$ac_t""no" 1>&6
2676 fi
2677
2678 for ac_func in gethostbyname
2679 do
2680 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2681 echo "configure:2682: checking for $ac_func" >&5
2682 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2683 echo $ac_n "(cached) $ac_c" 1>&6
2684 else
2685 cat > conftest.$ac_ext <<EOF
2686 #line 2687 "configure"
2687 #include "confdefs.h"
2688 /* System header to define __stub macros and hopefully few prototypes,
2689 which can conflict with char $ac_func(); below. */
2690 #include <assert.h>
2691 /* Override any gcc2 internal prototype to avoid an error. */
2692 /* We use char because int might match the return type of a gcc2
2693 builtin and then its argument prototype would still apply. */
2694 char $ac_func();
2695
2696 int main() {
2697
2698 /* The GNU C library defines this for functions which it implements
2699 to always fail with ENOSYS. Some functions are actually named
2700 something starting with __ and the normal name is an alias. */
2701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2702 choke me
2703 #else
2704 $ac_func();
2705 #endif
2706
2707 ; return 0; }
2708 EOF
2709 if { (eval echo configure:2710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2710 rm -rf conftest*
2711 eval "ac_cv_func_$ac_func=yes"
2712 else
2713 echo "configure: failed program was:" >&5
2714 cat conftest.$ac_ext >&5
2715 rm -rf conftest*
2716 eval "ac_cv_func_$ac_func=no"
2717 fi
2718 rm -f conftest*
2719 fi
2720
2721 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2722 echo "$ac_t""yes" 1>&6
2723 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2724 cat >> confdefs.h <<EOF
2725 #define $ac_tr_func 1
2726 EOF
2727
2728 else
2729 echo "$ac_t""no" 1>&6
2730 fi
2731 done
2732
2733 if test $ac_cv_func_gethostbyname = no; then
2734 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2735 echo "configure:2736: checking for gethostbyname in -lnsl" >&5
2736 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2737 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2738 echo $ac_n "(cached) $ac_c" 1>&6
2739 else
2740 ac_save_LIBS="$LIBS"
2741 LIBS="-lnsl $LIBS"
2742 cat > conftest.$ac_ext <<EOF
2743 #line 2744 "configure"
2744 #include "confdefs.h"
2745 /* Override any gcc2 internal prototype to avoid an error. */
2746 /* We use char because int might match the return type of a gcc2
2747 builtin and then its argument prototype would still apply. */
2748 char gethostbyname();
2749
2750 int main() {
2751 gethostbyname()
2752 ; return 0; }
2753 EOF
2754 if { (eval echo configure:2755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2755 rm -rf conftest*
2756 eval "ac_cv_lib_$ac_lib_var=yes"
2757 else
2758 echo "configure: failed program was:" >&5
2759 cat conftest.$ac_ext >&5
2760 rm -rf conftest*
2761 eval "ac_cv_lib_$ac_lib_var=no"
2762 fi
2763 rm -f conftest*
2764 LIBS="$ac_save_LIBS"
2765
2766 fi
2767 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2768 echo "$ac_t""yes" 1>&6
2769 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2770 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2771 cat >> confdefs.h <<EOF
2772 #define $ac_tr_lib 1
2773 EOF
2774
2775 LIBS="-lnsl $LIBS"
2776
2777 else
2778 echo "$ac_t""no" 1>&6
2779 fi
2780
2781 fi
2782 for ac_func in connect
2783 do
2784 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2785 echo "configure:2786: checking for $ac_func" >&5
2786 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2787 echo $ac_n "(cached) $ac_c" 1>&6
2788 else
2789 cat > conftest.$ac_ext <<EOF
2790 #line 2791 "configure"
2791 #include "confdefs.h"
2792 /* System header to define __stub macros and hopefully few prototypes,
2793 which can conflict with char $ac_func(); below. */
2794 #include <assert.h>
2795 /* Override any gcc2 internal prototype to avoid an error. */
2796 /* We use char because int might match the return type of a gcc2
2797 builtin and then its argument prototype would still apply. */
2798 char $ac_func();
2799
2800 int main() {
2801
2802 /* The GNU C library defines this for functions which it implements
2803 to always fail with ENOSYS. Some functions are actually named
2804 something starting with __ and the normal name is an alias. */
2805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2806 choke me
2807 #else
2808 $ac_func();
2809 #endif
2810
2811 ; return 0; }
2812 EOF
2813 if { (eval echo configure:2814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2814 rm -rf conftest*
2815 eval "ac_cv_func_$ac_func=yes"
2816 else
2817 echo "configure: failed program was:" >&5
2818 cat conftest.$ac_ext >&5
2819 rm -rf conftest*
2820 eval "ac_cv_func_$ac_func=no"
2821 fi
2822 rm -f conftest*
2823 fi
2824
2825 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2826 echo "$ac_t""yes" 1>&6
2827 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2828 cat >> confdefs.h <<EOF
2829 #define $ac_tr_func 1
2830 EOF
2831
2832 else
2833 echo "$ac_t""no" 1>&6
2834 fi
2835 done
2836
2837 if test $ac_cv_func_connect = no; then
2838 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2839 echo "configure:2840: checking for connect in -lsocket" >&5
2840 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2841 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2842 echo $ac_n "(cached) $ac_c" 1>&6
2843 else
2844 ac_save_LIBS="$LIBS"
2845 LIBS="-lsocket $LIBS"
2846 cat > conftest.$ac_ext <<EOF
2847 #line 2848 "configure"
2848 #include "confdefs.h"
2849 /* Override any gcc2 internal prototype to avoid an error. */
2850 /* We use char because int might match the return type of a gcc2
2851 builtin and then its argument prototype would still apply. */
2852 char connect();
2853
2854 int main() {
2855 connect()
2856 ; return 0; }
2857 EOF
2858 if { (eval echo configure:2859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2859 rm -rf conftest*
2860 eval "ac_cv_lib_$ac_lib_var=yes"
2861 else
2862 echo "configure: failed program was:" >&5
2863 cat conftest.$ac_ext >&5
2864 rm -rf conftest*
2865 eval "ac_cv_lib_$ac_lib_var=no"
2866 fi
2867 rm -f conftest*
2868 LIBS="$ac_save_LIBS"
2869
2870 fi
2871 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2872 echo "$ac_t""yes" 1>&6
2873 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2874 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2875 cat >> confdefs.h <<EOF
2876 #define $ac_tr_lib 1
2877 EOF
2878
2879 LIBS="-lsocket $LIBS"
2880
2881 else
2882 echo "$ac_t""no" 1>&6
2883 fi
2884
2885 fi
2886
2887 # Checks for dynamic linking
2888
2889 if test "$enable_dynamic_linking" = "yes"; then
2890
2891 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2892 echo "configure:2893: checking for dlopen in -ldl" >&5
2893 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2894 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2895 echo $ac_n "(cached) $ac_c" 1>&6
2896 else
2897 ac_save_LIBS="$LIBS"
2898 LIBS="-ldl $LIBS"
2899 cat > conftest.$ac_ext <<EOF
2900 #line 2901 "configure"
2901 #include "confdefs.h"
2902 /* Override any gcc2 internal prototype to avoid an error. */
2903 /* We use char because int might match the return type of a gcc2
2904 builtin and then its argument prototype would still apply. */
2905 char dlopen();
2906
2907 int main() {
2908 dlopen()
2909 ; return 0; }
2910 EOF
2911 if { (eval echo configure:2912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2912 rm -rf conftest*
2913 eval "ac_cv_lib_$ac_lib_var=yes"
2914 else
2915 echo "configure: failed program was:" >&5
2916 cat conftest.$ac_ext >&5
2917 rm -rf conftest*
2918 eval "ac_cv_lib_$ac_lib_var=no"
2919 fi
2920 rm -f conftest*
2921 LIBS="$ac_save_LIBS"
2922
2923 fi
2924 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2925 echo "$ac_t""yes" 1>&6
2926 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2927 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2928 cat >> confdefs.h <<EOF
2929 #define $ac_tr_lib 1
2930 EOF
2931
2932 LIBS="-ldl $LIBS"
2933
2934 else
2935 echo "$ac_t""no" 1>&6
2936 fi
2937
2938 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
2939 for ac_func in dlopen
2940 do
2941 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2942 echo "configure:2943: checking for $ac_func" >&5
2943 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2944 echo $ac_n "(cached) $ac_c" 1>&6
2945 else
2946 cat > conftest.$ac_ext <<EOF
2947 #line 2948 "configure"
2948 #include "confdefs.h"
2949 /* System header to define __stub macros and hopefully few prototypes,
2950 which can conflict with char $ac_func(); below. */
2951 #include <assert.h>
2952 /* Override any gcc2 internal prototype to avoid an error. */
2953 /* We use char because int might match the return type of a gcc2
2954 builtin and then its argument prototype would still apply. */
2955 char $ac_func();
2956
2957 int main() {
2958
2959 /* The GNU C library defines this for functions which it implements
2960 to always fail with ENOSYS. Some functions are actually named
2961 something starting with __ and the normal name is an alias. */
2962 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2963 choke me
2964 #else
2965 $ac_func();
2966 #endif
2967
2968 ; return 0; }
2969 EOF
2970 if { (eval echo configure:2971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2971 rm -rf conftest*
2972 eval "ac_cv_func_$ac_func=yes"
2973 else
2974 echo "configure: failed program was:" >&5
2975 cat conftest.$ac_ext >&5
2976 rm -rf conftest*
2977 eval "ac_cv_func_$ac_func=no"
2978 fi
2979 rm -f conftest*
2980 fi
2981
2982 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2983 echo "$ac_t""yes" 1>&6
2984 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2985 cat >> confdefs.h <<EOF
2986 #define $ac_tr_func 1
2987 EOF
2988
2989 else
2990 echo "$ac_t""no" 1>&6
2991 fi
2992 done
2993
2994 cat >> confdefs.h <<\EOF
2995 #define DYNAMIC_LINKING 1
2996 EOF
2997
2998 else
2999 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
3000 echo "configure:3001: checking for dld_link in -ldld" >&5
3001 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
3002 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3003 echo $ac_n "(cached) $ac_c" 1>&6
3004 else
3005 ac_save_LIBS="$LIBS"
3006 LIBS="-ldld $LIBS"
3007 cat > conftest.$ac_ext <<EOF
3008 #line 3009 "configure"
3009 #include "confdefs.h"
3010 /* Override any gcc2 internal prototype to avoid an error. */
3011 /* We use char because int might match the return type of a gcc2
3012 builtin and then its argument prototype would still apply. */
3013 char dld_link();
3014
3015 int main() {
3016 dld_link()
3017 ; return 0; }
3018 EOF
3019 if { (eval echo configure:3020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3020 rm -rf conftest*
3021 eval "ac_cv_lib_$ac_lib_var=yes"
3022 else
3023 echo "configure: failed program was:" >&5
3024 cat conftest.$ac_ext >&5
3025 rm -rf conftest*
3026 eval "ac_cv_lib_$ac_lib_var=no"
3027 fi
3028 rm -f conftest*
3029 LIBS="$ac_save_LIBS"
3030
3031 fi
3032 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3033 echo "$ac_t""yes" 1>&6
3034 ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3035 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3036 cat >> confdefs.h <<EOF
3037 #define $ac_tr_lib 1
3038 EOF
3039
3040 LIBS="-ldld $LIBS"
3041
3042 else
3043 echo "$ac_t""no" 1>&6
3044 fi
3045
3046 if test "$ac_cv_lib_dld_dld_link" = "yes"; then
3047 cat >> confdefs.h <<\EOF
3048 #define DYNAMIC_LINKING 1
3049 EOF
3050
3051 else
3052 for ac_func in shl_load
3053 do
3054 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3055 echo "configure:3056: checking for $ac_func" >&5
3056 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3057 echo $ac_n "(cached) $ac_c" 1>&6
3058 else
3059 cat > conftest.$ac_ext <<EOF
3060 #line 3061 "configure"
3061 #include "confdefs.h"
3062 /* System header to define __stub macros and hopefully few prototypes,
3063 which can conflict with char $ac_func(); below. */
3064 #include <assert.h>
3065 /* Override any gcc2 internal prototype to avoid an error. */
3066 /* We use char because int might match the return type of a gcc2
3067 builtin and then its argument prototype would still apply. */
3068 char $ac_func();
3069
3070 int main() {
3071
3072 /* The GNU C library defines this for functions which it implements
3073 to always fail with ENOSYS. Some functions are actually named
3074 something starting with __ and the normal name is an alias. */
3075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3076 choke me
3077 #else
3078 $ac_func();
3079 #endif
3080
3081 ; return 0; }
3082 EOF
3083 if { (eval echo configure:3084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3084 rm -rf conftest*
3085 eval "ac_cv_func_$ac_func=yes"
3086 else
3087 echo "configure: failed program was:" >&5
3088 cat conftest.$ac_ext >&5
3089 rm -rf conftest*
3090 eval "ac_cv_func_$ac_func=no"
3091 fi
3092 rm -f conftest*
3093 fi
3094
3095 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3096 echo "$ac_t""yes" 1>&6
3097 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3098 cat >> confdefs.h <<EOF
3099 #define $ac_tr_func 1
3100 EOF
3101
3102 else
3103 echo "$ac_t""no" 1>&6
3104 fi
3105 done
3106
3107 if test "$ac_cv_func_shl_load" = "yes"; then
3108 cat >> confdefs.h <<\EOF
3109 #define DYNAMIC_LINKING 1
3110 EOF
3111
3112 else
3113 for ac_func in dlopen
3114 do
3115 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3116 echo "configure:3117: checking for $ac_func" >&5
3117 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3118 echo $ac_n "(cached) $ac_c" 1>&6
3119 else
3120 cat > conftest.$ac_ext <<EOF
3121 #line 3122 "configure"
3122 #include "confdefs.h"
3123 /* System header to define __stub macros and hopefully few prototypes,
3124 which can conflict with char $ac_func(); below. */
3125 #include <assert.h>
3126 /* Override any gcc2 internal prototype to avoid an error. */
3127 /* We use char because int might match the return type of a gcc2
3128 builtin and then its argument prototype would still apply. */
3129 char $ac_func();
3130
3131 int main() {
3132
3133 /* The GNU C library defines this for functions which it implements
3134 to always fail with ENOSYS. Some functions are actually named
3135 something starting with __ and the normal name is an alias. */
3136 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3137 choke me
3138 #else
3139 $ac_func();
3140 #endif
3141
3142 ; return 0; }
3143 EOF
3144 if { (eval echo configure:3145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3145 rm -rf conftest*
3146 eval "ac_cv_func_$ac_func=yes"
3147 else
3148 echo "configure: failed program was:" >&5
3149 cat conftest.$ac_ext >&5
3150 rm -rf conftest*
3151 eval "ac_cv_func_$ac_func=no"
3152 fi
3153 rm -f conftest*
3154 fi
3155
3156 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3157 echo "$ac_t""yes" 1>&6
3158 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3159 cat >> confdefs.h <<EOF
3160 #define $ac_tr_func 1
3161 EOF
3162
3163 else
3164 echo "$ac_t""no" 1>&6
3165 fi
3166 done
3167
3168 if test "$ac_cv_func_dlopen" = "yes"; then
3169 cat >> confdefs.h <<\EOF
3170 #define DYNAMIC_LINKING 1
3171 EOF
3172
3173 fi
3174 fi
3175 fi
3176 fi
3177
3178 fi
3179
3180
3181 echo $ac_n "checking for underscore before symbols""... $ac_c" 1>&6
3182 echo "configure:3183: checking for underscore before symbols" >&5
3183 if eval "test \"`echo '$''{'guile_cv_uscore'+set}'`\" = set"; then
3184 echo $ac_n "(cached) $ac_c" 1>&6
3185 else
3186
3187 echo "main(){int i=1;}
3188 fnord(){int i=23; int ltuae=42;}" > conftest.c
3189 ${CC} conftest.c > /dev/null
3190 if (nm a.out | grep _fnord) > /dev/null; then
3191 guile_cv_uscore=yes
3192 else
3193 guile_cv_uscore=no
3194 fi
3195 fi
3196
3197 echo "$ac_t""$guile_cv_uscore" 1>&6
3198 rm -f conftest.c a.out
3199
3200 if test $guile_cv_uscore = yes; then
3201 cat >> confdefs.h <<\EOF
3202 #define USCORE 1
3203 EOF
3204
3205
3206 if test $ac_cv_func_dlopen = yes -o $ac_cv_lib_dl_dlopen = yes ; then
3207 echo $ac_n "checking whether dlsym always adds an underscore for us""... $ac_c" 1>&6
3208 echo "configure:3209: checking whether dlsym always adds an underscore for us" >&5
3209 if eval "test \"`echo '$''{'guile_cv_dlsym_adds_uscore'+set}'`\" = set"; then
3210 echo $ac_n "(cached) $ac_c" 1>&6
3211 else
3212 if test "$cross_compiling" = yes; then
3213 guile_cv_dlsym_adds_uscore=no
3214 else
3215 cat > conftest.$ac_ext <<EOF
3216 #line 3217 "configure"
3217 #include "confdefs.h"
3218
3219 #include <dlfcn.h>
3220 #include <stdio.h>
3221 fnord() { int i=42;}
3222 main() { void *self, *ptr1, *ptr2; self=dlopen(NULL,RTLD_LAZY);
3223 if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord");
3224 if(ptr1 && !ptr2) exit(0); } exit(1); }
3225
3226 EOF
3227 if { (eval echo configure:3228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3228 then
3229 guile_cv_dlsym_adds_uscore=yes
3230 cat >> confdefs.h <<\EOF
3231 #define DLSYM_ADDS_USCORE 1
3232 EOF
3233
3234 else
3235 echo "configure: failed program was:" >&5
3236 cat conftest.$ac_ext >&5
3237 rm -fr conftest*
3238 guile_cv_dlsym_adds_uscore=no
3239 fi
3240 rm -fr conftest*
3241 fi
3242
3243 fi
3244
3245
3246 echo "$ac_t""$guile_cv_dlsym_adds_uscore" 1>&6
3247 fi
3248 fi
3249
3250
3251 for ac_func in ctermid ftime getcwd geteuid gettimeofday lstat mkdir mknod nice readlink rename rmdir select setegid seteuid setlocale setpgid setsid sigaction strftime strptime symlink sync tcgetpgrp tcsetpgrp times uname waitpid bzero strdup system usleep
3252 do
3253 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3254 echo "configure:3255: checking for $ac_func" >&5
3255 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3256 echo $ac_n "(cached) $ac_c" 1>&6
3257 else
3258 cat > conftest.$ac_ext <<EOF
3259 #line 3260 "configure"
3260 #include "confdefs.h"
3261 /* System header to define __stub macros and hopefully few prototypes,
3262 which can conflict with char $ac_func(); below. */
3263 #include <assert.h>
3264 /* Override any gcc2 internal prototype to avoid an error. */
3265 /* We use char because int might match the return type of a gcc2
3266 builtin and then its argument prototype would still apply. */
3267 char $ac_func();
3268
3269 int main() {
3270
3271 /* The GNU C library defines this for functions which it implements
3272 to always fail with ENOSYS. Some functions are actually named
3273 something starting with __ and the normal name is an alias. */
3274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3275 choke me
3276 #else
3277 $ac_func();
3278 #endif
3279
3280 ; return 0; }
3281 EOF
3282 if { (eval echo configure:3283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3283 rm -rf conftest*
3284 eval "ac_cv_func_$ac_func=yes"
3285 else
3286 echo "configure: failed program was:" >&5
3287 cat conftest.$ac_ext >&5
3288 rm -rf conftest*
3289 eval "ac_cv_func_$ac_func=no"
3290 fi
3291 rm -f conftest*
3292 fi
3293
3294 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3295 echo "$ac_t""yes" 1>&6
3296 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3297 cat >> confdefs.h <<EOF
3298 #define $ac_tr_func 1
3299 EOF
3300
3301 else
3302 echo "$ac_t""no" 1>&6
3303 fi
3304 done
3305
3306
3307 ### Some systems don't declare some functions. On such systems, we
3308 ### need to at least provide our own K&R-style declarations.
3309
3310 ### GUILE_FUNC_DECLARED(function, headerfile)
3311
3312 ### Check for a declaration of FUNCTION in HEADERFILE; if it is
3313 ### not there, #define MISSING_FUNCTION_DECL.
3314
3315
3316
3317 echo $ac_n "checking for strptime declaration""... $ac_c" 1>&6
3318 echo "configure:3319: checking for strptime declaration" >&5
3319 if eval "test \"`echo '$''{'guile_cv_func_strptime_declared'+set}'`\" = set"; then
3320 echo $ac_n "(cached) $ac_c" 1>&6
3321 else
3322 cat > conftest.$ac_ext <<EOF
3323 #line 3324 "configure"
3324 #include "confdefs.h"
3325 #include <time.h>
3326 EOF
3327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3328 egrep "strptime" >/dev/null 2>&1; then
3329 rm -rf conftest*
3330 guile_cv_func_strptime_declared=yes
3331 else
3332 rm -rf conftest*
3333 guile_cv_func_strptime_declared=no
3334 fi
3335 rm -f conftest*
3336
3337 fi
3338
3339 echo "$ac_t""$guile_cv_func_strptime_declared" 1>&6
3340 if test x$guile_cv_func_strptime_declared = xno; then
3341 cat >> confdefs.h <<\EOF
3342 #define MISSING_STRPTIME_DECL 1
3343 EOF
3344
3345 fi
3346
3347
3348 echo $ac_n "checking for bzero declaration""... $ac_c" 1>&6
3349 echo "configure:3350: checking for bzero declaration" >&5
3350 if eval "test \"`echo '$''{'guile_cv_func_bzero_declared'+set}'`\" = set"; then
3351 echo $ac_n "(cached) $ac_c" 1>&6
3352 else
3353 cat > conftest.$ac_ext <<EOF
3354 #line 3355 "configure"
3355 #include "confdefs.h"
3356 #include <string.h>
3357 EOF
3358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3359 egrep "bzero" >/dev/null 2>&1; then
3360 rm -rf conftest*
3361 guile_cv_func_bzero_declared=yes
3362 else
3363 rm -rf conftest*
3364 guile_cv_func_bzero_declared=no
3365 fi
3366 rm -f conftest*
3367
3368 fi
3369
3370 echo "$ac_t""$guile_cv_func_bzero_declared" 1>&6
3371 if test x$guile_cv_func_bzero_declared = xno; then
3372 cat >> confdefs.h <<\EOF
3373 #define MISSING_BZERO_DECL 1
3374 EOF
3375
3376 fi
3377
3378
3379 echo $ac_n "checking for sleep declaration""... $ac_c" 1>&6
3380 echo "configure:3381: checking for sleep declaration" >&5
3381 if eval "test \"`echo '$''{'guile_cv_func_sleep_declared'+set}'`\" = set"; then
3382 echo $ac_n "(cached) $ac_c" 1>&6
3383 else
3384 cat > conftest.$ac_ext <<EOF
3385 #line 3386 "configure"
3386 #include "confdefs.h"
3387 #include <unistd.h>
3388 EOF
3389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3390 egrep "sleep" >/dev/null 2>&1; then
3391 rm -rf conftest*
3392 guile_cv_func_sleep_declared=yes
3393 else
3394 rm -rf conftest*
3395 guile_cv_func_sleep_declared=no
3396 fi
3397 rm -f conftest*
3398
3399 fi
3400
3401 echo "$ac_t""$guile_cv_func_sleep_declared" 1>&6
3402 if test x$guile_cv_func_sleep_declared = xno; then
3403 cat >> confdefs.h <<\EOF
3404 #define MISSING_SLEEP_DECL 1
3405 EOF
3406
3407 fi
3408
3409
3410 echo $ac_n "checking for usleep declaration""... $ac_c" 1>&6
3411 echo "configure:3412: checking for usleep declaration" >&5
3412 if eval "test \"`echo '$''{'guile_cv_func_usleep_declared'+set}'`\" = set"; then
3413 echo $ac_n "(cached) $ac_c" 1>&6
3414 else
3415 cat > conftest.$ac_ext <<EOF
3416 #line 3417 "configure"
3417 #include "confdefs.h"
3418 #include <unistd.h>
3419 EOF
3420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3421 egrep "usleep" >/dev/null 2>&1; then
3422 rm -rf conftest*
3423 guile_cv_func_usleep_declared=yes
3424 else
3425 rm -rf conftest*
3426 guile_cv_func_usleep_declared=no
3427 fi
3428 rm -f conftest*
3429
3430 fi
3431
3432 echo "$ac_t""$guile_cv_func_usleep_declared" 1>&6
3433 if test x$guile_cv_func_usleep_declared = xno; then
3434 cat >> confdefs.h <<\EOF
3435 #define MISSING_USLEEP_DECL 1
3436 EOF
3437
3438 fi
3439
3440
3441 ### On some systems usleep has no return value. If it does have one,
3442 ### we'd like to return it; otherwise, we'll fake it.
3443 echo $ac_n "checking return type of usleep""... $ac_c" 1>&6
3444 echo "configure:3445: checking return type of usleep" >&5
3445 if eval "test \"`echo '$''{'guile_cv_func_usleep_return_type'+set}'`\" = set"; then
3446 echo $ac_n "(cached) $ac_c" 1>&6
3447 else
3448 cat > conftest.$ac_ext <<EOF
3449 #line 3450 "configure"
3450 #include "confdefs.h"
3451 #include </usr/include/unistd.h>
3452 EOF
3453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3454 egrep "void[ ]+usleep" >/dev/null 2>&1; then
3455 rm -rf conftest*
3456 guile_cv_func_usleep_return_type=void
3457 else
3458 rm -rf conftest*
3459 guile_cv_func_usleep_return_type=int
3460 fi
3461 rm -f conftest*
3462
3463 fi
3464
3465 echo "$ac_t""$guile_cv_func_usleep_return_type" 1>&6
3466 case "$guile_cv_func_usleep_return_type" in
3467 "void" )
3468 cat >> confdefs.h <<\EOF
3469 #define USLEEP_RETURNS_VOID 1
3470 EOF
3471
3472 ;;
3473 esac
3474
3475
3476 ac_safe=`echo "sys/un.h" | sed 'y%./+-%__p_%'`
3477 echo $ac_n "checking for sys/un.h""... $ac_c" 1>&6
3478 echo "configure:3479: checking for sys/un.h" >&5
3479 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3480 echo $ac_n "(cached) $ac_c" 1>&6
3481 else
3482 cat > conftest.$ac_ext <<EOF
3483 #line 3484 "configure"
3484 #include "confdefs.h"
3485 #include <sys/un.h>
3486 EOF
3487 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3488 { (eval echo configure:3489: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3489 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3490 if test -z "$ac_err"; then
3491 rm -rf conftest*
3492 eval "ac_cv_header_$ac_safe=yes"
3493 else
3494 echo "$ac_err" >&5
3495 echo "configure: failed program was:" >&5
3496 cat conftest.$ac_ext >&5
3497 rm -rf conftest*
3498 eval "ac_cv_header_$ac_safe=no"
3499 fi
3500 rm -f conftest*
3501 fi
3502 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3503 echo "$ac_t""yes" 1>&6
3504 have_sys_un_h=1
3505 else
3506 echo "$ac_t""no" 1>&6
3507 fi
3508
3509 if test -n "$have_sys_un_h" ; then
3510 cat >> confdefs.h <<\EOF
3511 #define HAVE_UNIX_DOMAIN_SOCKETS 1
3512 EOF
3513
3514 fi
3515
3516 for ac_func in socketpair getgroups setpwent pause tzset
3517 do
3518 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3519 echo "configure:3520: checking for $ac_func" >&5
3520 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3521 echo $ac_n "(cached) $ac_c" 1>&6
3522 else
3523 cat > conftest.$ac_ext <<EOF
3524 #line 3525 "configure"
3525 #include "confdefs.h"
3526 /* System header to define __stub macros and hopefully few prototypes,
3527 which can conflict with char $ac_func(); below. */
3528 #include <assert.h>
3529 /* Override any gcc2 internal prototype to avoid an error. */
3530 /* We use char because int might match the return type of a gcc2
3531 builtin and then its argument prototype would still apply. */
3532 char $ac_func();
3533
3534 int main() {
3535
3536 /* The GNU C library defines this for functions which it implements
3537 to always fail with ENOSYS. Some functions are actually named
3538 something starting with __ and the normal name is an alias. */
3539 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3540 choke me
3541 #else
3542 $ac_func();
3543 #endif
3544
3545 ; return 0; }
3546 EOF
3547 if { (eval echo configure:3548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3548 rm -rf conftest*
3549 eval "ac_cv_func_$ac_func=yes"
3550 else
3551 echo "configure: failed program was:" >&5
3552 cat conftest.$ac_ext >&5
3553 rm -rf conftest*
3554 eval "ac_cv_func_$ac_func=no"
3555 fi
3556 rm -f conftest*
3557 fi
3558
3559 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3560 echo "$ac_t""yes" 1>&6
3561 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3562 cat >> confdefs.h <<EOF
3563 #define $ac_tr_func 1
3564 EOF
3565
3566 else
3567 echo "$ac_t""no" 1>&6
3568 fi
3569 done
3570
3571
3572
3573
3574
3575 for ac_func in sethostent gethostent endhostent setnetent getnetent endnetent setprotoent getprotoent endprotoent setservent getservent endservent getnetbyaddr getnetbyname inet_lnaof inet_makeaddr inet_netof
3576 do
3577 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3578 echo "configure:3579: checking for $ac_func" >&5
3579 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3580 echo $ac_n "(cached) $ac_c" 1>&6
3581 else
3582 cat > conftest.$ac_ext <<EOF
3583 #line 3584 "configure"
3584 #include "confdefs.h"
3585 /* System header to define __stub macros and hopefully few prototypes,
3586 which can conflict with char $ac_func(); below. */
3587 #include <assert.h>
3588 /* Override any gcc2 internal prototype to avoid an error. */
3589 /* We use char because int might match the return type of a gcc2
3590 builtin and then its argument prototype would still apply. */
3591 char $ac_func();
3592
3593 int main() {
3594
3595 /* The GNU C library defines this for functions which it implements
3596 to always fail with ENOSYS. Some functions are actually named
3597 something starting with __ and the normal name is an alias. */
3598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3599 choke me
3600 #else
3601 $ac_func();
3602 #endif
3603
3604 ; return 0; }
3605 EOF
3606 if { (eval echo configure:3607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3607 rm -rf conftest*
3608 eval "ac_cv_func_$ac_func=yes"
3609 else
3610 echo "configure: failed program was:" >&5
3611 cat conftest.$ac_ext >&5
3612 rm -rf conftest*
3613 eval "ac_cv_func_$ac_func=no"
3614 fi
3615 rm -f conftest*
3616 fi
3617
3618 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3619 echo "$ac_t""yes" 1>&6
3620 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3621 cat >> confdefs.h <<EOF
3622 #define $ac_tr_func 1
3623 EOF
3624
3625 else
3626 echo "$ac_t""no" 1>&6
3627 fi
3628 done
3629
3630
3631
3632 echo $ac_n "checking for restartable system calls""... $ac_c" 1>&6
3633 echo "configure:3634: checking for restartable system calls" >&5
3634 if eval "test \"`echo '$''{'scm_cv_restarts'+set}'`\" = set"; then
3635 echo $ac_n "(cached) $ac_c" 1>&6
3636 else
3637 if test $ac_cv_func_sigaction = yes; then
3638 cat > conftest.$ac_ext <<EOF
3639 #line 3640 "configure"
3640 #include "confdefs.h"
3641 #include <signal.h>
3642 int main() {
3643 int a = SA_RESTART
3644 ; return 0; }
3645 EOF
3646 if { (eval echo configure:3647: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3647 rm -rf conftest*
3648 scm_cv_restarts=yes
3649 else
3650 echo "configure: failed program was:" >&5
3651 cat conftest.$ac_ext >&5
3652 rm -rf conftest*
3653 scm_cv_restarts=no
3654 fi
3655 rm -f conftest*
3656 else
3657 scm_cv_restarts=no
3658 fi
3659 fi
3660
3661 echo "$ac_t""$scm_cv_restarts" 1>&6
3662 if test $scm_cv_restarts = yes; then
3663 cat >> confdefs.h <<\EOF
3664 #define HAVE_RESTARTS 1
3665 EOF
3666
3667 fi
3668
3669 if test "$ac_cv_header_regex_h" = yes ||
3670 test "$ac_cv_header_rxposix_h" = yes ||
3671 test "$ac_cv_header_rx_rxposix_h" = yes; then
3672 echo $ac_n "checking for regcomp""... $ac_c" 1>&6
3673 echo "configure:3674: checking for regcomp" >&5
3674 if eval "test \"`echo '$''{'ac_cv_func_regcomp_norx'+set}'`\" = set"; then
3675 echo $ac_n "(cached) $ac_c" 1>&6
3676 else
3677 cat > conftest.$ac_ext <<EOF
3678 #line 3679 "configure"
3679 #include "confdefs.h"
3680 /* System header to define __stub macros and hopefully few prototypes,
3681 which can conflict with char regcomp(); below. */
3682 #include <assert.h>
3683 /* Override any gcc2 internal prototype to avoid an error. */
3684 /* We use char because int might match the return type of a gcc2
3685 builtin and then its argument prototype would still apply. */
3686 char regcomp();
3687
3688 int main() {
3689
3690 /* The GNU C library defines this for functions which it implements
3691 to always fail with ENOSYS. Some functions are actually named
3692 something starting with __ and the normal name is an alias. */
3693 #if defined (__stub_regcomp) || defined (__stub___regcomp)
3694 choke me
3695 #else
3696 regcomp();
3697 #endif
3698
3699 ; return 0; }
3700 EOF
3701 if { (eval echo configure:3702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3702 rm -rf conftest*
3703 eval "ac_cv_func_regcomp_norx=yes"
3704 else
3705 echo "configure: failed program was:" >&5
3706 cat conftest.$ac_ext >&5
3707 rm -rf conftest*
3708 eval "ac_cv_func_regcomp_norx=no"
3709 fi
3710 rm -f conftest*
3711 fi
3712
3713 if eval "test \"`echo '$ac_cv_func_'regcomp'_'norx`\" = yes"; then
3714 echo "$ac_t""yes" 1>&6
3715 LIBOBJS="regex-posix.o $LIBOBJS"
3716 else
3717 echo "$ac_t""no" 1>&6
3718 echo $ac_n "checking for main in -lrx""... $ac_c" 1>&6
3719 echo "configure:3720: checking for main in -lrx" >&5
3720 ac_lib_var=`echo rx'_'main | sed 'y%./+-%__p_%'`
3721 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3722 echo $ac_n "(cached) $ac_c" 1>&6
3723 else
3724 ac_save_LIBS="$LIBS"
3725 LIBS="-lrx $LIBS"
3726 cat > conftest.$ac_ext <<EOF
3727 #line 3728 "configure"
3728 #include "confdefs.h"
3729
3730 int main() {
3731 main()
3732 ; return 0; }
3733 EOF
3734 if { (eval echo configure:3735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3735 rm -rf conftest*
3736 eval "ac_cv_lib_$ac_lib_var=yes"
3737 else
3738 echo "configure: failed program was:" >&5
3739 cat conftest.$ac_ext >&5
3740 rm -rf conftest*
3741 eval "ac_cv_lib_$ac_lib_var=no"
3742 fi
3743 rm -f conftest*
3744 LIBS="$ac_save_LIBS"
3745
3746 fi
3747 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3748 echo "$ac_t""yes" 1>&6
3749 ac_tr_lib=HAVE_LIB`echo rx | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3750 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3751 cat >> confdefs.h <<EOF
3752 #define $ac_tr_lib 1
3753 EOF
3754
3755 LIBS="-lrx $LIBS"
3756
3757 else
3758 echo "$ac_t""no" 1>&6
3759 fi
3760
3761 echo $ac_n "checking for regcomp""... $ac_c" 1>&6
3762 echo "configure:3763: checking for regcomp" >&5
3763 if eval "test \"`echo '$''{'ac_cv_func_regcomp_rx'+set}'`\" = set"; then
3764 echo $ac_n "(cached) $ac_c" 1>&6
3765 else
3766 cat > conftest.$ac_ext <<EOF
3767 #line 3768 "configure"
3768 #include "confdefs.h"
3769 /* System header to define __stub macros and hopefully few prototypes,
3770 which can conflict with char regcomp(); below. */
3771 #include <assert.h>
3772 /* Override any gcc2 internal prototype to avoid an error. */
3773 /* We use char because int might match the return type of a gcc2
3774 builtin and then its argument prototype would still apply. */
3775 char regcomp();
3776
3777 int main() {
3778
3779 /* The GNU C library defines this for functions which it implements
3780 to always fail with ENOSYS. Some functions are actually named
3781 something starting with __ and the normal name is an alias. */
3782 #if defined (__stub_regcomp) || defined (__stub___regcomp)
3783 choke me
3784 #else
3785 regcomp();
3786 #endif
3787
3788 ; return 0; }
3789 EOF
3790 if { (eval echo configure:3791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3791 rm -rf conftest*
3792 eval "ac_cv_func_regcomp_rx=yes"
3793 else
3794 echo "configure: failed program was:" >&5
3795 cat conftest.$ac_ext >&5
3796 rm -rf conftest*
3797 eval "ac_cv_func_regcomp_rx=no"
3798 fi
3799 rm -f conftest*
3800 fi
3801
3802 if eval "test \"`echo '$ac_cv_func_'regcomp'_'rx`\" = yes"; then
3803 echo "$ac_t""yes" 1>&6
3804 LIBOBJS="regex-posix.o $LIBOBJS"
3805 else
3806 echo "$ac_t""no" 1>&6
3807 fi
3808
3809
3810 fi
3811
3812 if test "$ac_cv_func_regcomp_norx" = yes ||
3813 test "$ac_cv_func_regcomp_rx" = yes; then
3814 cat >> confdefs.h <<\EOF
3815 #define HAVE_REGCOMP 1
3816 EOF
3817
3818 fi
3819 fi
3820
3821 for ac_func in inet_aton putenv strerror
3822 do
3823 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3824 echo "configure:3825: checking for $ac_func" >&5
3825 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3826 echo $ac_n "(cached) $ac_c" 1>&6
3827 else
3828 cat > conftest.$ac_ext <<EOF
3829 #line 3830 "configure"
3830 #include "confdefs.h"
3831 /* System header to define __stub macros and hopefully few prototypes,
3832 which can conflict with char $ac_func(); below. */
3833 #include <assert.h>
3834 /* Override any gcc2 internal prototype to avoid an error. */
3835 /* We use char because int might match the return type of a gcc2
3836 builtin and then its argument prototype would still apply. */
3837 char $ac_func();
3838
3839 int main() {
3840
3841 /* The GNU C library defines this for functions which it implements
3842 to always fail with ENOSYS. Some functions are actually named
3843 something starting with __ and the normal name is an alias. */
3844 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3845 choke me
3846 #else
3847 $ac_func();
3848 #endif
3849
3850 ; return 0; }
3851 EOF
3852 if { (eval echo configure:3853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3853 rm -rf conftest*
3854 eval "ac_cv_func_$ac_func=yes"
3855 else
3856 echo "configure: failed program was:" >&5
3857 cat conftest.$ac_ext >&5
3858 rm -rf conftest*
3859 eval "ac_cv_func_$ac_func=no"
3860 fi
3861 rm -f conftest*
3862 fi
3863
3864 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3865 echo "$ac_t""yes" 1>&6
3866 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3867 cat >> confdefs.h <<EOF
3868 #define $ac_tr_func 1
3869 EOF
3870
3871 else
3872 echo "$ac_t""no" 1>&6
3873 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
3874 fi
3875 done
3876
3877
3878
3879 # When testing for the presence of alloca, we need to add alloca.o
3880 # explicitly to LIBOBJS to make sure that it is translated to
3881 # `alloca.lo' for libtool later on. This can and should be done more cleanly.
3882 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3883 # for constant arguments. Useless!
3884 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3885 echo "configure:3886: checking for working alloca.h" >&5
3886 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3887 echo $ac_n "(cached) $ac_c" 1>&6
3888 else
3889 cat > conftest.$ac_ext <<EOF
3890 #line 3891 "configure"
3891 #include "confdefs.h"
3892 #include <alloca.h>
3893 int main() {
3894 char *p = alloca(2 * sizeof(int));
3895 ; return 0; }
3896 EOF
3897 if { (eval echo configure:3898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3898 rm -rf conftest*
3899 ac_cv_header_alloca_h=yes
3900 else
3901 echo "configure: failed program was:" >&5
3902 cat conftest.$ac_ext >&5
3903 rm -rf conftest*
3904 ac_cv_header_alloca_h=no
3905 fi
3906 rm -f conftest*
3907 fi
3908
3909 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3910 if test $ac_cv_header_alloca_h = yes; then
3911 cat >> confdefs.h <<\EOF
3912 #define HAVE_ALLOCA_H 1
3913 EOF
3914
3915 fi
3916
3917 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3918 echo "configure:3919: checking for alloca" >&5
3919 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3920 echo $ac_n "(cached) $ac_c" 1>&6
3921 else
3922 cat > conftest.$ac_ext <<EOF
3923 #line 3924 "configure"
3924 #include "confdefs.h"
3925
3926 #ifdef __GNUC__
3927 # define alloca __builtin_alloca
3928 #else
3929 # ifdef _MSC_VER
3930 # include <malloc.h>
3931 # define alloca _alloca
3932 # else
3933 # if HAVE_ALLOCA_H
3934 # include <alloca.h>
3935 # else
3936 # ifdef _AIX
3937 #pragma alloca
3938 # else
3939 # ifndef alloca /* predefined by HP cc +Olibcalls */
3940 char *alloca ();
3941 # endif
3942 # endif
3943 # endif
3944 # endif
3945 #endif
3946
3947 int main() {
3948 char *p = (char *) alloca(1);
3949 ; return 0; }
3950 EOF
3951 if { (eval echo configure:3952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3952 rm -rf conftest*
3953 ac_cv_func_alloca_works=yes
3954 else
3955 echo "configure: failed program was:" >&5
3956 cat conftest.$ac_ext >&5
3957 rm -rf conftest*
3958 ac_cv_func_alloca_works=no
3959 fi
3960 rm -f conftest*
3961 fi
3962
3963 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3964 if test $ac_cv_func_alloca_works = yes; then
3965 cat >> confdefs.h <<\EOF
3966 #define HAVE_ALLOCA 1
3967 EOF
3968
3969 fi
3970
3971 if test $ac_cv_func_alloca_works = no; then
3972 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3973 # that cause trouble. Some versions do not even contain alloca or
3974 # contain a buggy version. If you still want to use their alloca,
3975 # use ar to extract alloca.o from them instead of compiling alloca.c.
3976 ALLOCA=alloca.${ac_objext}
3977 cat >> confdefs.h <<\EOF
3978 #define C_ALLOCA 1
3979 EOF
3980
3981
3982 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3983 echo "configure:3984: checking whether alloca needs Cray hooks" >&5
3984 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3985 echo $ac_n "(cached) $ac_c" 1>&6
3986 else
3987 cat > conftest.$ac_ext <<EOF
3988 #line 3989 "configure"
3989 #include "confdefs.h"
3990 #if defined(CRAY) && ! defined(CRAY2)
3991 webecray
3992 #else
3993 wenotbecray
3994 #endif
3995
3996 EOF
3997 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3998 egrep "webecray" >/dev/null 2>&1; then
3999 rm -rf conftest*
4000 ac_cv_os_cray=yes
4001 else
4002 rm -rf conftest*
4003 ac_cv_os_cray=no
4004 fi
4005 rm -f conftest*
4006
4007 fi
4008
4009 echo "$ac_t""$ac_cv_os_cray" 1>&6
4010 if test $ac_cv_os_cray = yes; then
4011 for ac_func in _getb67 GETB67 getb67; do
4012 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4013 echo "configure:4014: checking for $ac_func" >&5
4014 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4015 echo $ac_n "(cached) $ac_c" 1>&6
4016 else
4017 cat > conftest.$ac_ext <<EOF
4018 #line 4019 "configure"
4019 #include "confdefs.h"
4020 /* System header to define __stub macros and hopefully few prototypes,
4021 which can conflict with char $ac_func(); below. */
4022 #include <assert.h>
4023 /* Override any gcc2 internal prototype to avoid an error. */
4024 /* We use char because int might match the return type of a gcc2
4025 builtin and then its argument prototype would still apply. */
4026 char $ac_func();
4027
4028 int main() {
4029
4030 /* The GNU C library defines this for functions which it implements
4031 to always fail with ENOSYS. Some functions are actually named
4032 something starting with __ and the normal name is an alias. */
4033 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4034 choke me
4035 #else
4036 $ac_func();
4037 #endif
4038
4039 ; return 0; }
4040 EOF
4041 if { (eval echo configure:4042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4042 rm -rf conftest*
4043 eval "ac_cv_func_$ac_func=yes"
4044 else
4045 echo "configure: failed program was:" >&5
4046 cat conftest.$ac_ext >&5
4047 rm -rf conftest*
4048 eval "ac_cv_func_$ac_func=no"
4049 fi
4050 rm -f conftest*
4051 fi
4052
4053 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4054 echo "$ac_t""yes" 1>&6
4055 cat >> confdefs.h <<EOF
4056 #define CRAY_STACKSEG_END $ac_func
4057 EOF
4058
4059 break
4060 else
4061 echo "$ac_t""no" 1>&6
4062 fi
4063
4064 done
4065 fi
4066
4067 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4068 echo "configure:4069: checking stack direction for C alloca" >&5
4069 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4070 echo $ac_n "(cached) $ac_c" 1>&6
4071 else
4072 if test "$cross_compiling" = yes; then
4073 ac_cv_c_stack_direction=0
4074 else
4075 cat > conftest.$ac_ext <<EOF
4076 #line 4077 "configure"
4077 #include "confdefs.h"
4078 find_stack_direction ()
4079 {
4080 static char *addr = 0;
4081 auto char dummy;
4082 if (addr == 0)
4083 {
4084 addr = &dummy;
4085 return find_stack_direction ();
4086 }
4087 else
4088 return (&dummy > addr) ? 1 : -1;
4089 }
4090 main ()
4091 {
4092 exit (find_stack_direction() < 0);
4093 }
4094 EOF
4095 if { (eval echo configure:4096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4096 then
4097 ac_cv_c_stack_direction=1
4098 else
4099 echo "configure: failed program was:" >&5
4100 cat conftest.$ac_ext >&5
4101 rm -fr conftest*
4102 ac_cv_c_stack_direction=-1
4103 fi
4104 rm -fr conftest*
4105 fi
4106
4107 fi
4108
4109 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4110 cat >> confdefs.h <<EOF
4111 #define STACK_DIRECTION $ac_cv_c_stack_direction
4112 EOF
4113
4114 fi
4115
4116 if test "$ALLOCA" = "alloca.o"; then LIBOBJS="alloca.o $LIBOBJS"; fi
4117
4118 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
4119 echo "configure:4120: checking for st_rdev in struct stat" >&5
4120 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
4121 echo $ac_n "(cached) $ac_c" 1>&6
4122 else
4123 cat > conftest.$ac_ext <<EOF
4124 #line 4125 "configure"
4125 #include "confdefs.h"
4126 #include <sys/types.h>
4127 #include <sys/stat.h>
4128 int main() {
4129 struct stat s; s.st_rdev;
4130 ; return 0; }
4131 EOF
4132 if { (eval echo configure:4133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4133 rm -rf conftest*
4134 ac_cv_struct_st_rdev=yes
4135 else
4136 echo "configure: failed program was:" >&5
4137 cat conftest.$ac_ext >&5
4138 rm -rf conftest*
4139 ac_cv_struct_st_rdev=no
4140 fi
4141 rm -f conftest*
4142 fi
4143
4144 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
4145 if test $ac_cv_struct_st_rdev = yes; then
4146 cat >> confdefs.h <<\EOF
4147 #define HAVE_ST_RDEV 1
4148 EOF
4149
4150 fi
4151
4152 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
4153 echo "configure:4154: checking for st_blksize in struct stat" >&5
4154 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
4155 echo $ac_n "(cached) $ac_c" 1>&6
4156 else
4157 cat > conftest.$ac_ext <<EOF
4158 #line 4159 "configure"
4159 #include "confdefs.h"
4160 #include <sys/types.h>
4161 #include <sys/stat.h>
4162 int main() {
4163 struct stat s; s.st_blksize;
4164 ; return 0; }
4165 EOF
4166 if { (eval echo configure:4167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4167 rm -rf conftest*
4168 ac_cv_struct_st_blksize=yes
4169 else
4170 echo "configure: failed program was:" >&5
4171 cat conftest.$ac_ext >&5
4172 rm -rf conftest*
4173 ac_cv_struct_st_blksize=no
4174 fi
4175 rm -f conftest*
4176 fi
4177
4178 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
4179 if test $ac_cv_struct_st_blksize = yes; then
4180 cat >> confdefs.h <<\EOF
4181 #define HAVE_ST_BLKSIZE 1
4182 EOF
4183
4184 fi
4185
4186
4187 # We could use AC_STRUCT_ST_BLOCKS here, but that adds fileblocks.o to
4188 # LIBOBJS, which we don't need. This seems more direct.
4189 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
4190 echo "configure:4191: checking for st_blocks in struct stat" >&5
4191 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
4192 echo $ac_n "(cached) $ac_c" 1>&6
4193 else
4194 cat > conftest.$ac_ext <<EOF
4195 #line 4196 "configure"
4196 #include "confdefs.h"
4197 #include <sys/types.h>
4198 #include <sys/stat.h>
4199 int main() {
4200 struct stat s; s.st_blocks;
4201 ; return 0; }
4202 EOF
4203 if { (eval echo configure:4204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4204 rm -rf conftest*
4205 ac_cv_struct_st_blocks=yes
4206 else
4207 echo "configure: failed program was:" >&5
4208 cat conftest.$ac_ext >&5
4209 rm -rf conftest*
4210 ac_cv_struct_st_blocks=no
4211 fi
4212 rm -f conftest*
4213 fi
4214
4215 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
4216 if test $ac_cv_struct_st_blocks = yes; then
4217 cat >> confdefs.h <<\EOF
4218 #define HAVE_ST_BLOCKS 1
4219 EOF
4220
4221 fi
4222
4223 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4224 echo "configure:4225: checking whether struct tm is in sys/time.h or time.h" >&5
4225 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
4226 echo $ac_n "(cached) $ac_c" 1>&6
4227 else
4228 cat > conftest.$ac_ext <<EOF
4229 #line 4230 "configure"
4230 #include "confdefs.h"
4231 #include <sys/types.h>
4232 #include <time.h>
4233 int main() {
4234 struct tm *tp; tp->tm_sec;
4235 ; return 0; }
4236 EOF
4237 if { (eval echo configure:4238: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4238 rm -rf conftest*
4239 ac_cv_struct_tm=time.h
4240 else
4241 echo "configure: failed program was:" >&5
4242 cat conftest.$ac_ext >&5
4243 rm -rf conftest*
4244 ac_cv_struct_tm=sys/time.h
4245 fi
4246 rm -f conftest*
4247 fi
4248
4249 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4250 if test $ac_cv_struct_tm = sys/time.h; then
4251 cat >> confdefs.h <<\EOF
4252 #define TM_IN_SYS_TIME 1
4253 EOF
4254
4255 fi
4256
4257 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4258 echo "configure:4259: checking for tm_zone in struct tm" >&5
4259 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
4260 echo $ac_n "(cached) $ac_c" 1>&6
4261 else
4262 cat > conftest.$ac_ext <<EOF
4263 #line 4264 "configure"
4264 #include "confdefs.h"
4265 #include <sys/types.h>
4266 #include <$ac_cv_struct_tm>
4267 int main() {
4268 struct tm tm; tm.tm_zone;
4269 ; return 0; }
4270 EOF
4271 if { (eval echo configure:4272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4272 rm -rf conftest*
4273 ac_cv_struct_tm_zone=yes
4274 else
4275 echo "configure: failed program was:" >&5
4276 cat conftest.$ac_ext >&5
4277 rm -rf conftest*
4278 ac_cv_struct_tm_zone=no
4279 fi
4280 rm -f conftest*
4281 fi
4282
4283 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4284 if test "$ac_cv_struct_tm_zone" = yes; then
4285 cat >> confdefs.h <<\EOF
4286 #define HAVE_TM_ZONE 1
4287 EOF
4288
4289 else
4290 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4291 echo "configure:4292: checking for tzname" >&5
4292 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
4293 echo $ac_n "(cached) $ac_c" 1>&6
4294 else
4295 cat > conftest.$ac_ext <<EOF
4296 #line 4297 "configure"
4297 #include "confdefs.h"
4298 #include <time.h>
4299 #ifndef tzname /* For SGI. */
4300 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4301 #endif
4302 int main() {
4303 atoi(*tzname);
4304 ; return 0; }
4305 EOF
4306 if { (eval echo configure:4307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4307 rm -rf conftest*
4308 ac_cv_var_tzname=yes
4309 else
4310 echo "configure: failed program was:" >&5
4311 cat conftest.$ac_ext >&5
4312 rm -rf conftest*
4313 ac_cv_var_tzname=no
4314 fi
4315 rm -f conftest*
4316 fi
4317
4318 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4319 if test $ac_cv_var_tzname = yes; then
4320 cat >> confdefs.h <<\EOF
4321 #define HAVE_TZNAME 1
4322 EOF
4323
4324 fi
4325 fi
4326
4327
4328 echo $ac_n "checking whether we need POSIX to get struct utimbuf""... $ac_c" 1>&6
4329 echo "configure:4330: checking whether we need POSIX to get struct utimbuf" >&5
4330 if eval "test \"`echo '$''{'guile_cv_struct_utimbuf_needs_posix'+set}'`\" = set"; then
4331 echo $ac_n "(cached) $ac_c" 1>&6
4332 else
4333 cat > conftest.$ac_ext <<EOF
4334 #line 4335 "configure"
4335 #include "confdefs.h"
4336
4337 #ifdef __EMX__
4338 #include <sys/utime.h>
4339 #else
4340 #include <utime.h>
4341 #endif
4342 struct utime blah;
4343
4344 EOF
4345 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4346 { (eval echo configure:4347: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4347 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4348 if test -z "$ac_err"; then
4349 rm -rf conftest*
4350 guile_cv_struct_utimbuf_needs_posix=no
4351 else
4352 echo "$ac_err" >&5
4353 echo "configure: failed program was:" >&5
4354 cat conftest.$ac_ext >&5
4355 rm -rf conftest*
4356 guile_cv_struct_utimbuf_needs_posix=yes
4357 fi
4358 rm -f conftest*
4359 fi
4360
4361 echo "$ac_t""$guile_cv_struct_utimbuf_needs_posix" 1>&6
4362 if test "$guile_cv_struct_utimbuf_needs_posix" = yes; then
4363 cat >> confdefs.h <<\EOF
4364 #define UTIMBUF_NEEDS_POSIX 1
4365 EOF
4366
4367 fi
4368
4369 #--------------------------------------------------------------------
4370 #
4371 # Which way does the stack grow?
4372 #
4373 #--------------------------------------------------------------------
4374
4375 if test "$cross_compiling" = yes; then
4376 echo "configure: warning: Guessing that stack grows down -- see scmconfig.h.in" 1>&2
4377 else
4378 cat > conftest.$ac_ext <<EOF
4379 #line 4380 "configure"
4380 #include "confdefs.h"
4381 aux (l) unsigned long l;
4382 { int x; exit (l >= ((unsigned long)&x)); }
4383 main () { int q; aux((unsigned long)&q); }
4384 EOF
4385 if { (eval echo configure:4386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4386 then
4387 cat >> confdefs.h <<\EOF
4388 #define SCM_STACK_GROWS_UP 1
4389 EOF
4390
4391 else
4392 echo "configure: failed program was:" >&5
4393 cat conftest.$ac_ext >&5
4394 fi
4395 rm -fr conftest*
4396 fi
4397
4398
4399 echo $ac_n "checking whether floats fit in longs""... $ac_c" 1>&6
4400 echo "configure:4401: checking whether floats fit in longs" >&5
4401 if eval "test \"`echo '$''{'guile_cv_type_float_fits_long'+set}'`\" = set"; then
4402 echo $ac_n "(cached) $ac_c" 1>&6
4403 else
4404 if test "$cross_compiling" = yes; then
4405 guile_cv_type_float_fits_long=guess-yes
4406 else
4407 cat > conftest.$ac_ext <<EOF
4408 #line 4409 "configure"
4409 #include "confdefs.h"
4410 main () { exit (sizeof(float) > sizeof(long)); }
4411 EOF
4412 if { (eval echo configure:4413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4413 then
4414 guile_cv_type_float_fits_long=yes
4415 else
4416 echo "configure: failed program was:" >&5
4417 cat conftest.$ac_ext >&5
4418 rm -fr conftest*
4419 guile_cv_type_float_fits_long=no
4420 fi
4421 rm -fr conftest*
4422 fi
4423
4424 fi
4425
4426 echo "$ac_t""$guile_cv_type_float_fits_long" 1>&6
4427 case $guile_cv_type_float_fits_long in
4428 "yes" )
4429 cat >> confdefs.h <<\EOF
4430 #define SCM_SINGLES 1
4431 EOF
4432
4433 ;;
4434 "guess-yes" )
4435 cat >> confdefs.h <<\EOF
4436 #define SCM_SINGLES 1
4437 EOF
4438
4439 echo "configure: warning: guessing that sizeof(long) == sizeof(float)" 1>&2
4440 echo "configure: warning: see SCM_SINGLES in scmconfig.h.in" 1>&2
4441 ;;
4442 esac
4443
4444
4445 echo $ac_n "checking for struct linger""... $ac_c" 1>&6
4446 echo "configure:4447: checking for struct linger" >&5
4447 if eval "test \"`echo '$''{'scm_cv_struct_linger'+set}'`\" = set"; then
4448 echo $ac_n "(cached) $ac_c" 1>&6
4449 else
4450 cat > conftest.$ac_ext <<EOF
4451 #line 4452 "configure"
4452 #include "confdefs.h"
4453
4454 #include <sys/types.h>
4455 #include <sys/socket.h>
4456 int main() {
4457 struct linger lgr; lgr.l_linger = 100
4458 ; return 0; }
4459 EOF
4460 if { (eval echo configure:4461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4461 rm -rf conftest*
4462 scm_cv_struct_linger="yes"
4463 else
4464 echo "configure: failed program was:" >&5
4465 cat conftest.$ac_ext >&5
4466 rm -rf conftest*
4467 scm_cv_struct_linger="no"
4468 fi
4469 rm -f conftest*
4470 fi
4471
4472 echo "$ac_t""$scm_cv_struct_linger" 1>&6
4473 if test $scm_cv_struct_linger = yes; then
4474 cat >> confdefs.h <<\EOF
4475 #define HAVE_STRUCT_LINGER 1
4476 EOF
4477
4478 fi
4479
4480 #--------------------------------------------------------------------
4481 #
4482 # How can you violate a stdio abstraction by setting a stream's fd?
4483 #
4484 #--------------------------------------------------------------------
4485
4486
4487
4488 #--------------------------------------------------------------------
4489 # How to find out whether a FILE structure contains buffered data.
4490 # From Tk we have the following list:
4491 # _cnt: Most UNIX systems
4492 # __cnt: HPUX and SCO
4493 # _r: BSD
4494 # readCount: Sprite
4495 # Or, in GNU libc there are two fields, _gptr and _egptr, which
4496 # have to be compared.
4497 # These can also be known as _IO_read_ptr and _IO_read_end.
4498 #--------------------------------------------------------------------
4499
4500
4501 #--------------------------------------------------------------------
4502 #
4503 # Flags for thread support
4504 #
4505 #--------------------------------------------------------------------
4506
4507 ### What thread package has the user asked for?
4508 # Check whether --with-threads or --without-threads was given.
4509 if test "${with_threads+set}" = set; then
4510 withval="$with_threads"
4511 :
4512 else
4513 with_threads=no
4514 fi
4515
4516
4517 ### Turn $with_threads into either the name of a threads package, like
4518 ### `qt', or `no', meaning that threads should not be supported.
4519 echo $ac_n "checking whether to support threads""... $ac_c" 1>&6
4520 echo "configure:4521: checking whether to support threads" >&5
4521 case "$with_threads" in
4522 "yes" | "qt" | "coop" | "")
4523 with_threads=qt
4524 ;;
4525 "no" )
4526 ;;
4527 * )
4528 { echo "configure: error: invalid value for --with-threads: $with_threads" 1>&2; exit 1; }
4529 ;;
4530 esac
4531 echo "$ac_t""$with_threads" 1>&6
4532
4533 ## Make sure the threads package we've chosen is actually supported on
4534 ## the present platform.
4535 case "${with_threads}" in
4536 "qt" )
4537 ## This configures the QuickThreads package, and sets or clears
4538 ## the THREAD_PACKAGE variable if qthreads don't configure
4539 ## correctly.
4540
4541
4542
4543 echo $ac_n "checking QuickThreads configuration""... $ac_c" 1>&6
4544 echo "configure:4545: checking QuickThreads configuration" >&5
4545 # How can we refer to the qt source directory from within the qt build
4546 # directory? For headers, we can rely on the fact that the qt src
4547 # directory appears in the #include path.
4548 qtsrcdir="`(cd $srcdir; pwd)`/qt"
4549
4550
4551 THREAD_PACKAGE=QT
4552 qthread_asflags=''
4553 case "$host" in
4554 i[3456]86-*-*)
4555 port_name=i386
4556 qtmd_h=md/i386.h
4557 qtmds_s=md/i386.s
4558 qtmdc_c=md/null.c
4559 qtdmdb_s=
4560 case "$host" in
4561 *-*-netbsd* )
4562 ## NetBSD needs to be told to pass the assembly code through
4563 ## the C preprocessor. Other GCC installations seem to do
4564 ## this by default, but NetBSD's doesn't. We could get the
4565 ## same effect by giving the file a name ending with .S
4566 ## instead of .s, but I don't see how to tell automake to do
4567 ## that.
4568 qthread_asflags='-x assembler-with-cpp'
4569 ;;
4570 esac
4571 ;;
4572 mips-sgi-irix[56]*)
4573 port_name=irix
4574 qtmd_h=md/mips.h
4575 qtmds_s=md/mips-irix5.s
4576 qtmdc_c=md/null.c
4577 qtdmdb_s=md/mips_b.s
4578 ;;
4579 mips-*-*)
4580 port_name=mips
4581 qtmd_h=md/mips.h
4582 qtmds_s=md/mips.s
4583 qtmdc_c=md/null.c
4584 qtdmdb_s=md/mips_b.s
4585 ;;
4586 sparc-*-sunos*)
4587 port_name=sparc-sunos
4588 qtmd_h=md/sparc.h
4589 qtmds_s=md/_sparc.s
4590 qtmdc_c=md/null.c
4591 qtdmdb_s=md/_sparc_b.s
4592 ;;
4593 sparc-*-*)
4594 port_name=sparc
4595 qtmd_h=md/sparc.h
4596 qtmds_s=md/sparc.s
4597 qtmdc_c=md/null.c
4598 qtdmdb_s=md/sparc_b.s
4599 ;;
4600 alpha-*-*)
4601 port_name=alpha
4602 qtmd_h=md/axp.h
4603 qtmds_s=md/axp.s
4604 qtmdc_c=md/null.c
4605 qtdmdb_s=md/axp_b.s
4606 ;;
4607 *)
4608 echo "Unknown configuration; threads package disabled"
4609 THREAD_PACKAGE=""
4610 ;;
4611 esac
4612
4613
4614 # Did configuration succeed?
4615 if test -n "$THREAD_PACKAGE"; then
4616 echo "$ac_t""$port_name" 1>&6
4617 QTHREAD_LTLIBS=libqthreads.la
4618 THREAD_CPPFLAGS="-I$qtsrcdir -I../qt"
4619 THREAD_LIBS_LOCAL="../qt/libqthreads.la"
4620 THREAD_LIBS_INSTALLED="-lqthreads"
4621 else
4622 echo "$ac_t""none; disabled" 1>&6
4623 fi
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636 ;;
4637 esac
4638
4639 ## If we're using threads, bring in some other parts of Guile which
4640 ## work with them.
4641 if test "${THREAD_PACKAGE}" != "" ; then
4642 cat >> confdefs.h <<\EOF
4643 #define USE_THREADS 1
4644 EOF
4645
4646
4647 ## Include the Guile thread interface in the library...
4648 LIBOBJS="$LIBOBJS threads.o"
4649
4650 ## ... and tell it which package to talk to.
4651 case "${THREAD_PACKAGE}" in
4652 "QT" )
4653 cat >> confdefs.h <<\EOF
4654 #define USE_COOP_THREADS 1
4655 EOF
4656
4657 ;;
4658 * )
4659 { echo "configure: error: invalid value for THREAD_PACKAGE: ${THREAD_PACKAGE}" 1>&2; exit 1; }
4660 ;;
4661 esac
4662
4663 ## Bring in scm_internal_select, if appropriate.
4664 if test $ac_cv_func_gettimeofday = yes &&
4665 test $ac_cv_func_select = yes; then
4666 LIBOBJS="$LIBOBJS iselect.o"
4667 cat >> confdefs.h <<\EOF
4668 #define GUILE_ISELECT 1
4669 EOF
4670
4671 fi
4672 fi
4673
4674 ## If we're using GCC, ask for aggressive warnings.
4675 case "$GCC" in
4676 yes )
4677 ## We had -Wstrict-prototypes in here for a bit, but Guile does too
4678 ## much stuff with generic function pointers for that to really be
4679 ## less than exasperating.
4680 CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wmissing-prototypes" ;;
4681 esac
4682
4683 for ac_prog in mawk gawk nawk awk
4684 do
4685 # Extract the first word of "$ac_prog", so it can be a program name with args.
4686 set dummy $ac_prog; ac_word=$2
4687 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4688 echo "configure:4689: checking for $ac_word" >&5
4689 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
4690 echo $ac_n "(cached) $ac_c" 1>&6
4691 else
4692 if test -n "$AWK"; then
4693 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4694 else
4695 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4696 ac_dummy="$PATH"
4697 for ac_dir in $ac_dummy; do
4698 test -z "$ac_dir" && ac_dir=.
4699 if test -f $ac_dir/$ac_word; then
4700 ac_cv_prog_AWK="$ac_prog"
4701 break
4702 fi
4703 done
4704 IFS="$ac_save_ifs"
4705 fi
4706 fi
4707 AWK="$ac_cv_prog_AWK"
4708 if test -n "$AWK"; then
4709 echo "$ac_t""$AWK" 1>&6
4710 else
4711 echo "$ac_t""no" 1>&6
4712 fi
4713
4714 test -n "$AWK" && break
4715 done
4716
4717
4718 ## If we're creating a shared library (using libtool!), then we'll
4719 ## need to generate a list of .lo files corresponding to the .o files
4720 ## given in LIBOBJS. We'll call it LIBLOBJS.
4721 LIBLOBJS="`echo ${LIBOBJS} | sed 's/\.o/.lo/g'`"
4722
4723
4724
4725
4726
4727 GUILE_LIBS="$LDFLAGS $THREAD_LIBS_INSTALLED $LIBS"
4728
4729
4730 GUILE_STAMP="`date`"
4731
4732
4733
4734
4735
4736 trap '' 1 2 15
4737 cat > confcache <<\EOF
4738 # This file is a shell script that caches the results of configure
4739 # tests run on this system so they can be shared between configure
4740 # scripts and configure runs. It is not useful on other systems.
4741 # If it contains results you don't want to keep, you may remove or edit it.
4742 #
4743 # By default, configure uses ./config.cache as the cache file,
4744 # creating it if it does not exist already. You can give configure
4745 # the --cache-file=FILE option to use a different cache file; that is
4746 # what configure does when it calls configure scripts in
4747 # subdirectories, so they share the cache.
4748 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4749 # config.status only pays attention to the cache file if you give it the
4750 # --recheck option to rerun configure.
4751 #
4752 EOF
4753 # The following way of writing the cache mishandles newlines in values,
4754 # but we know of no workaround that is simple, portable, and efficient.
4755 # So, don't put newlines in cache variables' values.
4756 # Ultrix sh set writes to stderr and can't be redirected directly,
4757 # and sets the high bit in the cache file unless we assign to the vars.
4758 (set) 2>&1 |
4759 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4760 *ac_space=\ *)
4761 # `set' does not quote correctly, so add quotes (double-quote substitution
4762 # turns \\\\ into \\, and sed turns \\ into \).
4763 sed -n \
4764 -e "s/'/'\\\\''/g" \
4765 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4766 ;;
4767 *)
4768 # `set' quotes correctly as required by POSIX, so do not add quotes.
4769 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4770 ;;
4771 esac >> confcache
4772 if cmp -s $cache_file confcache; then
4773 :
4774 else
4775 if test -w $cache_file; then
4776 echo "updating cache $cache_file"
4777 cat confcache > $cache_file
4778 else
4779 echo "not updating unwritable cache $cache_file"
4780 fi
4781 fi
4782 rm -f confcache
4783
4784 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4785
4786 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4787 # Let make expand exec_prefix.
4788 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4789
4790 # Any assignment to VPATH causes Sun make to only execute
4791 # the first set of double-colon rules, so remove it if not needed.
4792 # If there is a colon in the path, we need to keep it.
4793 if test "x$srcdir" = x.; then
4794 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4795 fi
4796
4797 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4798
4799 DEFS=-DHAVE_CONFIG_H
4800
4801 # Without the "./", some shells look in PATH for config.status.
4802 : ${CONFIG_STATUS=./config.status}
4803
4804 echo creating $CONFIG_STATUS
4805 rm -f $CONFIG_STATUS
4806 cat > $CONFIG_STATUS <<EOF
4807 #! /bin/sh
4808 # Generated automatically by configure.
4809 # Run this file to recreate the current configuration.
4810 # This directory was configured as follows,
4811 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4812 #
4813 # $0 $ac_configure_args
4814 #
4815 # Compiler output produced by configure, useful for debugging
4816 # configure, is in ./config.log if it exists.
4817
4818 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4819 for ac_option
4820 do
4821 case "\$ac_option" in
4822 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4823 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4824 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4825 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4826 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4827 exit 0 ;;
4828 -help | --help | --hel | --he | --h)
4829 echo "\$ac_cs_usage"; exit 0 ;;
4830 *) echo "\$ac_cs_usage"; exit 1 ;;
4831 esac
4832 done
4833
4834 ac_given_srcdir=$srcdir
4835 ac_given_INSTALL="$INSTALL"
4836
4837 trap 'rm -fr `echo "Makefile libguile/Makefile libguile/guile-snarf libguile/versiondat.h ice-9/Makefile ice-9/version.scm qt/Makefile qt/qt.h qt/md/Makefile qt/time/Makefile guile-config/Makefile doc/Makefile libguile/scmconfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4838 EOF
4839 cat >> $CONFIG_STATUS <<EOF
4840
4841 # Protect against being on the right side of a sed subst in config.status.
4842 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4843 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4844 $ac_vpsub
4845 $extrasub
4846 s%@SHELL@%$SHELL%g
4847 s%@CFLAGS@%$CFLAGS%g
4848 s%@CPPFLAGS@%$CPPFLAGS%g
4849 s%@CXXFLAGS@%$CXXFLAGS%g
4850 s%@FFLAGS@%$FFLAGS%g
4851 s%@DEFS@%$DEFS%g
4852 s%@LDFLAGS@%$LDFLAGS%g
4853 s%@LIBS@%$LIBS%g
4854 s%@exec_prefix@%$exec_prefix%g
4855 s%@prefix@%$prefix%g
4856 s%@program_transform_name@%$program_transform_name%g
4857 s%@bindir@%$bindir%g
4858 s%@sbindir@%$sbindir%g
4859 s%@libexecdir@%$libexecdir%g
4860 s%@datadir@%$datadir%g
4861 s%@sysconfdir@%$sysconfdir%g
4862 s%@sharedstatedir@%$sharedstatedir%g
4863 s%@localstatedir@%$localstatedir%g
4864 s%@libdir@%$libdir%g
4865 s%@includedir@%$includedir%g
4866 s%@oldincludedir@%$oldincludedir%g
4867 s%@infodir@%$infodir%g
4868 s%@mandir@%$mandir%g
4869 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4870 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4871 s%@INSTALL_DATA@%$INSTALL_DATA%g
4872 s%@PACKAGE@%$PACKAGE%g
4873 s%@VERSION@%$VERSION%g
4874 s%@ACLOCAL@%$ACLOCAL%g
4875 s%@AUTOCONF@%$AUTOCONF%g
4876 s%@AUTOMAKE@%$AUTOMAKE%g
4877 s%@AUTOHEADER@%$AUTOHEADER%g
4878 s%@MAKEINFO@%$MAKEINFO%g
4879 s%@SET_MAKE@%$SET_MAKE%g
4880 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
4881 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
4882 s%@MAINT@%$MAINT%g
4883 s%@subdirs@%$subdirs%g
4884 s%@CC@%$CC%g
4885 s%@CPP@%$CPP%g
4886 s%@host@%$host%g
4887 s%@host_alias@%$host_alias%g
4888 s%@host_cpu@%$host_cpu%g
4889 s%@host_vendor@%$host_vendor%g
4890 s%@host_os@%$host_os%g
4891 s%@build@%$build%g
4892 s%@build_alias@%$build_alias%g
4893 s%@build_cpu@%$build_cpu%g
4894 s%@build_vendor@%$build_vendor%g
4895 s%@build_os@%$build_os%g
4896 s%@RANLIB@%$RANLIB%g
4897 s%@LD@%$LD%g
4898 s%@NM@%$NM%g
4899 s%@LN_S@%$LN_S%g
4900 s%@LIBTOOL@%$LIBTOOL%g
4901 s%@LIBOBJS@%$LIBOBJS%g
4902 s%@ALLOCA@%$ALLOCA%g
4903 s%@QTHREAD_LTLIBS@%$QTHREAD_LTLIBS%g
4904 s%@qtmd_h@%$qtmd_h%g
4905 s%@qtmds_s@%$qtmds_s%g
4906 s%@qtmdc_c@%$qtmdc_c%g
4907 s%@qtdmdb_s@%$qtdmdb_s%g
4908 s%@qthread_asflags@%$qthread_asflags%g
4909 s%@THREAD_PACKAGE@%$THREAD_PACKAGE%g
4910 s%@THREAD_CPPFLAGS@%$THREAD_CPPFLAGS%g
4911 s%@THREAD_LIBS_LOCAL@%$THREAD_LIBS_LOCAL%g
4912 s%@THREAD_LIBS_INSTALLED@%$THREAD_LIBS_INSTALLED%g
4913 s%@AWK@%$AWK%g
4914 s%@GUILE_MAJOR_VERSION@%$GUILE_MAJOR_VERSION%g
4915 s%@GUILE_MINOR_VERSION@%$GUILE_MINOR_VERSION%g
4916 s%@GUILE_VERSION@%$GUILE_VERSION%g
4917 s%@GUILE_LIBS@%$GUILE_LIBS%g
4918 s%@GUILE_STAMP@%$GUILE_STAMP%g
4919 s%@LIBLOBJS@%$LIBLOBJS%g
4920
4921 CEOF
4922 EOF
4923
4924 cat >> $CONFIG_STATUS <<\EOF
4925
4926 # Split the substitutions into bite-sized pieces for seds with
4927 # small command number limits, like on Digital OSF/1 and HP-UX.
4928 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4929 ac_file=1 # Number of current file.
4930 ac_beg=1 # First line for current file.
4931 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4932 ac_more_lines=:
4933 ac_sed_cmds=""
4934 while $ac_more_lines; do
4935 if test $ac_beg -gt 1; then
4936 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4937 else
4938 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4939 fi
4940 if test ! -s conftest.s$ac_file; then
4941 ac_more_lines=false
4942 rm -f conftest.s$ac_file
4943 else
4944 if test -z "$ac_sed_cmds"; then
4945 ac_sed_cmds="sed -f conftest.s$ac_file"
4946 else
4947 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4948 fi
4949 ac_file=`expr $ac_file + 1`
4950 ac_beg=$ac_end
4951 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4952 fi
4953 done
4954 if test -z "$ac_sed_cmds"; then
4955 ac_sed_cmds=cat
4956 fi
4957 EOF
4958
4959 cat >> $CONFIG_STATUS <<EOF
4960
4961 CONFIG_FILES=\${CONFIG_FILES-"Makefile libguile/Makefile libguile/guile-snarf libguile/versiondat.h ice-9/Makefile ice-9/version.scm qt/Makefile qt/qt.h qt/md/Makefile qt/time/Makefile guile-config/Makefile doc/Makefile"}
4962 EOF
4963 cat >> $CONFIG_STATUS <<\EOF
4964 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4965 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4966 case "$ac_file" in
4967 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4968 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4969 *) ac_file_in="${ac_file}.in" ;;
4970 esac
4971
4972 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4973
4974 # Remove last slash and all that follows it. Not all systems have dirname.
4975 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4976 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4977 # The file is in a subdirectory.
4978 test ! -d "$ac_dir" && mkdir "$ac_dir"
4979 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4980 # A "../" for each directory in $ac_dir_suffix.
4981 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4982 else
4983 ac_dir_suffix= ac_dots=
4984 fi
4985
4986 case "$ac_given_srcdir" in
4987 .) srcdir=.
4988 if test -z "$ac_dots"; then top_srcdir=.
4989 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4990 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4991 *) # Relative path.
4992 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4993 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4994 esac
4995
4996 case "$ac_given_INSTALL" in
4997 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4998 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4999 esac
5000
5001 echo creating "$ac_file"
5002 rm -f "$ac_file"
5003 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5004 case "$ac_file" in
5005 *Makefile*) ac_comsub="1i\\
5006 # $configure_input" ;;
5007 *) ac_comsub= ;;
5008 esac
5009
5010 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5011 sed -e "$ac_comsub
5012 s%@configure_input@%$configure_input%g
5013 s%@srcdir@%$srcdir%g
5014 s%@top_srcdir@%$top_srcdir%g
5015 s%@INSTALL@%$INSTALL%g
5016 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5017 fi; done
5018 rm -f conftest.s*
5019
5020 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5021 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5022 #
5023 # ac_d sets the value in "#define NAME VALUE" lines.
5024 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5025 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5026 ac_dC='\3'
5027 ac_dD='%g'
5028 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5029 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5030 ac_uB='\([ ]\)%\1#\2define\3'
5031 ac_uC=' '
5032 ac_uD='\4%g'
5033 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5034 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5035 ac_eB='$%\1#\2define\3'
5036 ac_eC=' '
5037 ac_eD='%g'
5038
5039 if test "${CONFIG_HEADERS+set}" != set; then
5040 EOF
5041 cat >> $CONFIG_STATUS <<EOF
5042 CONFIG_HEADERS="libguile/scmconfig.h"
5043 EOF
5044 cat >> $CONFIG_STATUS <<\EOF
5045 fi
5046 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5047 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5048 case "$ac_file" in
5049 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5050 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5051 *) ac_file_in="${ac_file}.in" ;;
5052 esac
5053
5054 echo creating $ac_file
5055
5056 rm -f conftest.frag conftest.in conftest.out
5057 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5058 cat $ac_file_inputs > conftest.in
5059
5060 EOF
5061
5062 # Transform confdefs.h into a sed script conftest.vals that substitutes
5063 # the proper values into config.h.in to produce config.h. And first:
5064 # Protect against being on the right side of a sed subst in config.status.
5065 # Protect against being in an unquoted here document in config.status.
5066 rm -f conftest.vals
5067 cat > conftest.hdr <<\EOF
5068 s/[\\&%]/\\&/g
5069 s%[\\$`]%\\&%g
5070 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5071 s%ac_d%ac_u%gp
5072 s%ac_u%ac_e%gp
5073 EOF
5074 sed -n -f conftest.hdr confdefs.h > conftest.vals
5075 rm -f conftest.hdr
5076
5077 # This sed command replaces #undef with comments. This is necessary, for
5078 # example, in the case of _POSIX_SOURCE, which is predefined and required
5079 # on some systems where configure will not decide to define it.
5080 cat >> conftest.vals <<\EOF
5081 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5082 EOF
5083
5084 # Break up conftest.vals because some shells have a limit on
5085 # the size of here documents, and old seds have small limits too.
5086
5087 rm -f conftest.tail
5088 while :
5089 do
5090 ac_lines=`grep -c . conftest.vals`
5091 # grep -c gives empty output for an empty file on some AIX systems.
5092 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5093 # Write a limited-size here document to conftest.frag.
5094 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5095 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5096 echo 'CEOF
5097 sed -f conftest.frag conftest.in > conftest.out
5098 rm -f conftest.in
5099 mv conftest.out conftest.in
5100 ' >> $CONFIG_STATUS
5101 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5102 rm -f conftest.vals
5103 mv conftest.tail conftest.vals
5104 done
5105 rm -f conftest.vals
5106
5107 cat >> $CONFIG_STATUS <<\EOF
5108 rm -f conftest.frag conftest.h
5109 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5110 cat conftest.in >> conftest.h
5111 rm -f conftest.in
5112 if cmp -s $ac_file conftest.h 2>/dev/null; then
5113 echo "$ac_file is unchanged"
5114 rm -f conftest.h
5115 else
5116 # Remove last slash and all that follows it. Not all systems have dirname.
5117 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5118 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5119 # The file is in a subdirectory.
5120 test ! -d "$ac_dir" && mkdir "$ac_dir"
5121 fi
5122 rm -f $ac_file
5123 mv conftest.h $ac_file
5124 fi
5125 fi; done
5126
5127 EOF
5128 cat >> $CONFIG_STATUS <<EOF
5129
5130
5131 EOF
5132 cat >> $CONFIG_STATUS <<\EOF
5133 test -z "$CONFIG_HEADERS" || echo timestamp > libguile/stamp-h
5134 chmod +x libguile/guile-snarf
5135 exit 0
5136 EOF
5137 chmod +x $CONFIG_STATUS
5138 rm -fr confdefs* $ac_clean_files
5139 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5140
5141 if test "$no_recursion" != yes; then
5142
5143 # Remove --cache-file and --srcdir arguments so they do not pile up.
5144 ac_sub_configure_args=
5145 ac_prev=
5146 for ac_arg in $ac_configure_args; do
5147 if test -n "$ac_prev"; then
5148 ac_prev=
5149 continue
5150 fi
5151 case "$ac_arg" in
5152 -cache-file | --cache-file | --cache-fil | --cache-fi \
5153 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
5154 ac_prev=cache_file ;;
5155 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
5156 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
5157 ;;
5158 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
5159 ac_prev=srcdir ;;
5160 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5161 ;;
5162 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
5163 esac
5164 done
5165
5166 for ac_config_dir in guile-readline; do
5167
5168 # Do not complain, so a configure script can configure whichever
5169 # parts of a large source tree are present.
5170 if test ! -d $srcdir/$ac_config_dir; then
5171 continue
5172 fi
5173
5174 echo configuring in $ac_config_dir
5175
5176 case "$srcdir" in
5177 .) ;;
5178 *)
5179 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
5180 else
5181 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
5182 fi
5183 ;;
5184 esac
5185
5186 ac_popdir=`pwd`
5187 cd $ac_config_dir
5188
5189 # A "../" for each directory in /$ac_config_dir.
5190 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
5191
5192 case "$srcdir" in
5193 .) # No --srcdir option. We are building in place.
5194 ac_sub_srcdir=$srcdir ;;
5195 /*) # Absolute path.
5196 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
5197 *) # Relative path.
5198 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
5199 esac
5200
5201 # Check for guested configure; otherwise get Cygnus style configure.
5202 if test -f $ac_sub_srcdir/configure; then
5203 ac_sub_configure=$ac_sub_srcdir/configure
5204 elif test -f $ac_sub_srcdir/configure.in; then
5205 ac_sub_configure=$ac_configure
5206 else
5207 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
5208 ac_sub_configure=
5209 fi
5210
5211 # The recursion is here.
5212 if test -n "$ac_sub_configure"; then
5213
5214 # Make the cache file name correct relative to the subdirectory.
5215 case "$cache_file" in
5216 /*) ac_sub_cache_file=$cache_file ;;
5217 *) # Relative path.
5218 ac_sub_cache_file="$ac_dots$cache_file" ;;
5219 esac
5220 case "$ac_given_INSTALL" in
5221 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5222 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5223 esac
5224
5225 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
5226 # The eval makes quoting arguments work.
5227 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
5228 then :
5229 else
5230 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
5231 fi
5232 fi
5233
5234 cd $ac_popdir
5235 done
5236 fi
5237
5238