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