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