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