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