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.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr/local/cacao
16 --enable-threads enable threads support"
18 --enable-gc2 enable new garbage collector"
20 # Initialize some variables set by options.
21 # The variables have the same names as the options, with
22 # dashes changed to underlines.
24 cache_file=./config.cache
33 program_transform_name=s,x,x,
41 bindir='${exec_prefix}/bin'
42 sbindir='${exec_prefix}/sbin'
43 libexecdir='${exec_prefix}/libexec'
44 datadir='${prefix}/share'
45 sysconfdir='${prefix}/etc'
46 sharedstatedir='${prefix}/com'
47 localstatedir='${prefix}/var'
48 libdir='${exec_prefix}/lib'
49 includedir='${prefix}/include'
50 oldincludedir='/usr/include'
51 infodir='${prefix}/info'
52 mandir='${prefix}/man'
54 # Initialize some other variables.
57 SHELL=${CONFIG_SHELL-/bin/sh}
58 # Maximum number of lines to put in a shell here document.
65 # If the previous option needs an argument, assign it.
66 if test -n "$ac_prev"; then
67 eval "$ac_prev=\$ac_option"
73 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
77 # Accept the important Cygnus configure options, so we can diagnose typos.
81 -bindir | --bindir | --bindi | --bind | --bin | --bi)
83 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
84 bindir="$ac_optarg" ;;
86 -build | --build | --buil | --bui | --bu)
88 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
91 -cache-file | --cache-file | --cache-fil | --cache-fi \
92 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
94 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
95 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
96 cache_file="$ac_optarg" ;;
98 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
100 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
102 datadir="$ac_optarg" ;;
104 -disable-* | --disable-*)
105 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
106 # Reject names that are not valid shell variable names.
107 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
108 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
110 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
111 eval "enable_${ac_feature}=no" ;;
113 -enable-* | --enable-*)
114 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
115 # Reject names that are not valid shell variable names.
116 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
117 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
119 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
124 eval "enable_${ac_feature}='$ac_optarg'" ;;
126 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
127 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
128 | --exec | --exe | --ex)
129 ac_prev=exec_prefix ;;
130 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
131 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
132 | --exec=* | --exe=* | --ex=*)
133 exec_prefix="$ac_optarg" ;;
135 -gas | --gas | --ga | --g)
136 # Obsolete; use --with-gas.
139 -help | --help | --hel | --he)
140 # Omit some internal or obsolete options to make the list less imposing.
141 # This message is too long to be a string in the A/UX 3.1 sh.
143 Usage: configure [options] [host]
144 Options: [defaults in brackets after descriptions]
146 --cache-file=FILE cache test results in FILE
147 --help print this message
148 --no-create do not create output files
149 --quiet, --silent do not print \`checking...' messages
150 --version print the version of autoconf that created configure
151 Directory and file names:
152 --prefix=PREFIX install architecture-independent files in PREFIX
154 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
156 --bindir=DIR user executables in DIR [EPREFIX/bin]
157 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
158 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
159 --datadir=DIR read-only architecture-independent data in DIR
161 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
162 --sharedstatedir=DIR modifiable architecture-independent data in DIR
164 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
165 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
166 --includedir=DIR C header files in DIR [PREFIX/include]
167 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
168 --infodir=DIR info documentation in DIR [PREFIX/info]
169 --mandir=DIR man documentation in DIR [PREFIX/man]
170 --srcdir=DIR find the sources in DIR [configure dir or ..]
171 --program-prefix=PREFIX prepend PREFIX to installed program names
172 --program-suffix=SUFFIX append SUFFIX to installed program names
173 --program-transform-name=PROGRAM
174 run sed PROGRAM on installed program names
178 --build=BUILD configure for building on BUILD [BUILD=HOST]
179 --host=HOST configure for HOST [guessed]
180 --target=TARGET configure for TARGET [TARGET=HOST]
181 Features and packages:
182 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
183 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
184 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
185 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
186 --x-includes=DIR X include files are in DIR
187 --x-libraries=DIR X library files are in DIR
189 if test -n "$ac_help"; then
190 echo "--enable and --with options recognized:$ac_help"
194 -host | --host | --hos | --ho)
196 -host=* | --host=* | --hos=* | --ho=*)
199 -includedir | --includedir | --includedi | --included | --include \
200 | --includ | --inclu | --incl | --inc)
201 ac_prev=includedir ;;
202 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
203 | --includ=* | --inclu=* | --incl=* | --inc=*)
204 includedir="$ac_optarg" ;;
206 -infodir | --infodir | --infodi | --infod | --info | --inf)
208 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
209 infodir="$ac_optarg" ;;
211 -libdir | --libdir | --libdi | --libd)
213 -libdir=* | --libdir=* | --libdi=* | --libd=*)
214 libdir="$ac_optarg" ;;
216 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
217 | --libexe | --libex | --libe)
218 ac_prev=libexecdir ;;
219 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
220 | --libexe=* | --libex=* | --libe=*)
221 libexecdir="$ac_optarg" ;;
223 -localstatedir | --localstatedir | --localstatedi | --localstated \
224 | --localstate | --localstat | --localsta | --localst \
225 | --locals | --local | --loca | --loc | --lo)
226 ac_prev=localstatedir ;;
227 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
228 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
229 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
230 localstatedir="$ac_optarg" ;;
232 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
234 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
235 mandir="$ac_optarg" ;;
238 # Obsolete; use --without-fp.
241 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
245 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
246 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
249 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
250 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
251 | --oldin | --oldi | --old | --ol | --o)
252 ac_prev=oldincludedir ;;
253 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
254 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
255 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
256 oldincludedir="$ac_optarg" ;;
258 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
260 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
261 prefix="$ac_optarg" ;;
263 -program-prefix | --program-prefix | --program-prefi | --program-pref \
264 | --program-pre | --program-pr | --program-p)
265 ac_prev=program_prefix ;;
266 -program-prefix=* | --program-prefix=* | --program-prefi=* \
267 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
268 program_prefix="$ac_optarg" ;;
270 -program-suffix | --program-suffix | --program-suffi | --program-suff \
271 | --program-suf | --program-su | --program-s)
272 ac_prev=program_suffix ;;
273 -program-suffix=* | --program-suffix=* | --program-suffi=* \
274 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
275 program_suffix="$ac_optarg" ;;
277 -program-transform-name | --program-transform-name \
278 | --program-transform-nam | --program-transform-na \
279 | --program-transform-n | --program-transform- \
280 | --program-transform | --program-transfor \
281 | --program-transfo | --program-transf \
282 | --program-trans | --program-tran \
283 | --progr-tra | --program-tr | --program-t)
284 ac_prev=program_transform_name ;;
285 -program-transform-name=* | --program-transform-name=* \
286 | --program-transform-nam=* | --program-transform-na=* \
287 | --program-transform-n=* | --program-transform-=* \
288 | --program-transform=* | --program-transfor=* \
289 | --program-transfo=* | --program-transf=* \
290 | --program-trans=* | --program-tran=* \
291 | --progr-tra=* | --program-tr=* | --program-t=*)
292 program_transform_name="$ac_optarg" ;;
294 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
295 | -silent | --silent | --silen | --sile | --sil)
298 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
300 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
302 sbindir="$ac_optarg" ;;
304 -sharedstatedir | --sharedstatedir | --sharedstatedi \
305 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
306 | --sharedst | --shareds | --shared | --share | --shar \
308 ac_prev=sharedstatedir ;;
309 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
310 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
311 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
313 sharedstatedir="$ac_optarg" ;;
315 -site | --site | --sit)
317 -site=* | --site=* | --sit=*)
320 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
322 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
323 srcdir="$ac_optarg" ;;
325 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
326 | --syscon | --sysco | --sysc | --sys | --sy)
327 ac_prev=sysconfdir ;;
328 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
329 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
330 sysconfdir="$ac_optarg" ;;
332 -target | --target | --targe | --targ | --tar | --ta | --t)
334 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
335 target="$ac_optarg" ;;
337 -v | -verbose | --verbose | --verbos | --verbo | --verb)
340 -version | --version | --versio | --versi | --vers)
341 echo "configure generated by autoconf version 2.13"
345 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
346 # Reject names that are not valid shell variable names.
347 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
348 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
350 ac_package=`echo $ac_package| sed 's/-/_/g'`
355 eval "with_${ac_package}='$ac_optarg'" ;;
357 -without-* | --without-*)
358 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
359 # Reject names that are not valid shell variable names.
360 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
361 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
363 ac_package=`echo $ac_package| sed 's/-/_/g'`
364 eval "with_${ac_package}=no" ;;
367 # Obsolete; use --with-x.
370 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
371 | --x-incl | --x-inc | --x-in | --x-i)
372 ac_prev=x_includes ;;
373 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
374 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
375 x_includes="$ac_optarg" ;;
377 -x-libraries | --x-libraries | --x-librarie | --x-librari \
378 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
379 ac_prev=x_libraries ;;
380 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
381 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
382 x_libraries="$ac_optarg" ;;
384 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
388 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
389 echo "configure: warning: $ac_option: invalid host type" 1>&2
391 if test "x$nonopt" != xNONE; then
392 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
400 if test -n "$ac_prev"; then
401 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
404 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
406 # File descriptor usage:
409 # 2 errors and warnings
410 # 3 some systems may open it to /dev/tty
411 # 4 used on the Kubota Titan
412 # 6 checking for... messages and results
413 # 5 compiler messages saved in config.log
414 if test "$silent" = yes; then
422 This file contains any messages produced by compilers while
423 running configure, to aid debugging if configure makes a mistake.
426 # Strip out --no-create and --no-recursion so they do not pile up.
427 # Also quote any args containing shell metacharacters.
432 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
433 | --no-cr | --no-c) ;;
434 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
435 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
436 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
437 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
438 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
443 # Only set these to C if already set. These must not be set unconditionally
444 # because not all systems understand e.g. LANG=C (notably SCO).
445 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
446 # Non-C LC_CTYPE values break the ctype check.
447 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
448 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
449 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
450 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
452 # confdefs.h avoids OS command line length limits that DEFS can exceed.
453 rm -rf conftest* confdefs.h
454 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
457 # A filename unique to this package, relative to the directory that
458 # configure is in, which we can look for to find out if srcdir is correct.
459 ac_unique_file=compiler.c
461 # Find the source files, if location was not specified.
462 if test -z "$srcdir"; then
463 ac_srcdir_defaulted=yes
464 # Try the directory containing this script, then its parent.
466 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
467 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
469 if test ! -r $srcdir/$ac_unique_file; then
473 ac_srcdir_defaulted=no
475 if test ! -r $srcdir/$ac_unique_file; then
476 if test "$ac_srcdir_defaulted" = yes; then
477 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
479 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
482 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
484 # Prefer explicitly selected file to automatically selected ones.
485 if test -z "$CONFIG_SITE"; then
486 if test "x$prefix" != xNONE; then
487 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
489 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
492 for ac_site_file in $CONFIG_SITE; do
493 if test -r "$ac_site_file"; then
494 echo "loading site script $ac_site_file"
499 if test -r "$cache_file"; then
500 echo "loading cache $cache_file"
503 echo "creating cache $cache_file"
508 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
509 ac_cpp='$CPP $CPPFLAGS'
510 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
511 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
512 cross_compiling=$ac_cv_prog_cc_cross
516 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
517 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
518 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
525 ac_n= ac_c='\c' ac_t=
530 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
531 if test -f $ac_dir/install-sh; then
533 ac_install_sh="$ac_aux_dir/install-sh -c"
535 elif test -f $ac_dir/install.sh; then
537 ac_install_sh="$ac_aux_dir/install.sh -c"
541 if test -z "$ac_aux_dir"; then
542 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
544 ac_config_guess=$ac_aux_dir/config.guess
545 ac_config_sub=$ac_aux_dir/config.sub
546 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
549 # Make sure we can run config.sub.
550 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
551 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
554 echo $ac_n "checking host system type""... $ac_c" 1>&6
555 echo "configure:556: checking host system type" >&5
558 case "$host_alias" in
562 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
563 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
565 *) host_alias=$nonopt ;;
569 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
570 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
571 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
572 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
573 echo "$ac_t""$host" 1>&6
576 # Find a good install program. We prefer a C program (faster),
577 # so one script is as good as another. But avoid the broken or
578 # incompatible versions:
579 # SysV /etc/install, /usr/sbin/install
580 # SunOS /usr/etc/install
583 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
584 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
585 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
586 # ./install, which can be erroneously created by make from ./install.sh.
587 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
588 echo "configure:589: checking for a BSD compatible install" >&5
589 if test -z "$INSTALL"; then
590 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
591 echo $ac_n "(cached) $ac_c" 1>&6
593 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
594 for ac_dir in $PATH; do
595 # Account for people who put trailing slashes in PATH elements.
597 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
599 # OSF1 and SCO ODT 3.0 have their own names for install.
600 # Don't use installbsd from OSF since it installs stuff as root
602 for ac_prog in ginstall scoinst install; do
603 if test -f $ac_dir/$ac_prog; then
604 if test $ac_prog = install &&
605 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
606 # AIX install. It has an incompatible calling convention.
609 ac_cv_path_install="$ac_dir/$ac_prog -c"
620 if test "${ac_cv_path_install+set}" = set; then
621 INSTALL="$ac_cv_path_install"
623 # As a last resort, use the slow shell script. We don't cache a
624 # path for INSTALL within a source directory, because that will
625 # break other packages using the cache if that directory is
626 # removed, or if the path is relative.
627 INSTALL="$ac_install_sh"
630 echo "$ac_t""$INSTALL" 1>&6
632 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
633 # It thinks the first close brace ends the variable substitution.
634 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
636 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
638 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
641 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
643 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
644 echo "configure:645: checking whether build environment is sane" >&5
647 echo timestamp > conftestfile
648 # Do `set' in a subshell so we don't clobber the current shell's
649 # arguments. Must try -L first in case configure is actually a
650 # symlink; some systems play weird games with the mod time of symlinks
651 # (eg FreeBSD returns the mod time of the symlink's containing
654 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
655 if test "$*" = "X"; then
657 set X `ls -t $srcdir/configure conftestfile`
659 if test "$*" != "X $srcdir/configure conftestfile" \
660 && test "$*" != "X conftestfile $srcdir/configure"; then
662 # If neither matched, then we have a broken ls. This can happen
663 # if, for instance, CONFIG_SHELL is bash and it inherits a
664 # broken ls alias from the environment. This has actually
665 # happened. Such a system could not be considered "sane".
666 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
667 alias in your environment" 1>&2; exit 1; }
670 test "$2" = conftestfile
676 { echo "configure: error: newly created file is older than distributed files!
677 Check your system clock" 1>&2; exit 1; }
680 echo "$ac_t""yes" 1>&6
681 if test "$program_transform_name" = s,x,x,; then
682 program_transform_name=
684 # Double any \ or $. echo might interpret backslashes.
685 cat <<\EOF_SED > conftestsed
686 s,\\,\\\\,g; s,\$,$$,g
688 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
691 test "$program_prefix" != NONE &&
692 program_transform_name="s,^,${program_prefix},; $program_transform_name"
693 # Use a double $ so make ignores it.
694 test "$program_suffix" != NONE &&
695 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
697 # sed with no file args requires a program.
698 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
700 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
701 echo "configure:702: checking whether ${MAKE-make} sets \${MAKE}" >&5
702 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
703 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
704 echo $ac_n "(cached) $ac_c" 1>&6
706 cat > conftestmake <<\EOF
708 @echo 'ac_maketemp="${MAKE}"'
710 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
711 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
712 if test -n "$ac_maketemp"; then
713 eval ac_cv_prog_make_${ac_make}_set=yes
715 eval ac_cv_prog_make_${ac_make}_set=no
719 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
720 echo "$ac_t""yes" 1>&6
723 echo "$ac_t""no" 1>&6
724 SET_MAKE="MAKE=${MAKE-make}"
732 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
733 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
735 cat >> confdefs.h <<EOF
736 #define PACKAGE "$PACKAGE"
739 cat >> confdefs.h <<EOF
740 #define VERSION "$VERSION"
745 missing_dir=`cd $ac_aux_dir && pwd`
746 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
747 echo "configure:748: checking for working aclocal" >&5
748 # Run test in a subshell; some versions of sh will print an error if
749 # an executable is not found, even if stderr is redirected.
750 # Redirect stdin to placate older versions of autoconf. Sigh.
751 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
753 echo "$ac_t""found" 1>&6
755 ACLOCAL="$missing_dir/missing aclocal"
756 echo "$ac_t""missing" 1>&6
759 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
760 echo "configure:761: checking for working autoconf" >&5
761 # Run test in a subshell; some versions of sh will print an error if
762 # an executable is not found, even if stderr is redirected.
763 # Redirect stdin to placate older versions of autoconf. Sigh.
764 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
766 echo "$ac_t""found" 1>&6
768 AUTOCONF="$missing_dir/missing autoconf"
769 echo "$ac_t""missing" 1>&6
772 echo $ac_n "checking for working automake""... $ac_c" 1>&6
773 echo "configure:774: checking for working automake" >&5
774 # Run test in a subshell; some versions of sh will print an error if
775 # an executable is not found, even if stderr is redirected.
776 # Redirect stdin to placate older versions of autoconf. Sigh.
777 if (automake --version) < /dev/null > /dev/null 2>&1; then
779 echo "$ac_t""found" 1>&6
781 AUTOMAKE="$missing_dir/missing automake"
782 echo "$ac_t""missing" 1>&6
785 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
786 echo "configure:787: checking for working autoheader" >&5
787 # Run test in a subshell; some versions of sh will print an error if
788 # an executable is not found, even if stderr is redirected.
789 # Redirect stdin to placate older versions of autoconf. Sigh.
790 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
791 AUTOHEADER=autoheader
792 echo "$ac_t""found" 1>&6
794 AUTOHEADER="$missing_dir/missing autoheader"
795 echo "$ac_t""missing" 1>&6
798 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
799 echo "configure:800: checking for working makeinfo" >&5
800 # Run test in a subshell; some versions of sh will print an error if
801 # an executable is not found, even if stderr is redirected.
802 # Redirect stdin to placate older versions of autoconf. Sigh.
803 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
805 echo "$ac_t""found" 1>&6
807 MAKEINFO="$missing_dir/missing makeinfo"
808 echo "$ac_t""missing" 1>&6
822 CFLAGS="-ieee -O2 -g3"
823 COMPILER_SOURCES="compiler.h compiler.c"
824 COMPILER_OBJECTS="compiler.o"
825 cat >> confdefs.h <<\EOF
826 #define OLD_COMPILER 1
833 CFLAGS="-64 -g -DMAP_ANONYMOUS=0 -woff 1048,1110,1164,1515"
838 sparc* | powerpc* | ppc* | * )
839 { echo "configure: error: $host-cpu systems are not supported at this time" 1>&2; exit 1; } ;;
846 cat >> confdefs.h <<EOF
847 #define SYSDEP_DIR "$SYSDEP_DIR"
852 # Extract the first word of "gcc", so it can be a program name with args.
853 set dummy gcc; ac_word=$2
854 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
855 echo "configure:856: checking for $ac_word" >&5
856 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
857 echo $ac_n "(cached) $ac_c" 1>&6
859 if test -n "$CC"; then
860 ac_cv_prog_CC="$CC" # Let the user override the test.
862 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
864 for ac_dir in $ac_dummy; do
865 test -z "$ac_dir" && ac_dir=.
866 if test -f $ac_dir/$ac_word; then
875 if test -n "$CC"; then
876 echo "$ac_t""$CC" 1>&6
878 echo "$ac_t""no" 1>&6
881 if test -z "$CC"; then
882 # Extract the first word of "cc", so it can be a program name with args.
883 set dummy cc; ac_word=$2
884 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
885 echo "configure:886: checking for $ac_word" >&5
886 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
887 echo $ac_n "(cached) $ac_c" 1>&6
889 if test -n "$CC"; then
890 ac_cv_prog_CC="$CC" # Let the user override the test.
892 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
895 for ac_dir in $ac_dummy; do
896 test -z "$ac_dir" && ac_dir=.
897 if test -f $ac_dir/$ac_word; then
898 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
907 if test $ac_prog_rejected = yes; then
908 # We found a bogon in the path, so make sure we never use it.
909 set dummy $ac_cv_prog_CC
911 if test $# -gt 0; then
912 # We chose a different compiler from the bogus one.
913 # However, it has the same basename, so the bogon will be chosen
914 # first if we set CC to just the basename; use the full file name.
916 set dummy "$ac_dir/$ac_word" "$@"
924 if test -n "$CC"; then
925 echo "$ac_t""$CC" 1>&6
927 echo "$ac_t""no" 1>&6
930 if test -z "$CC"; then
933 # Extract the first word of "cl", so it can be a program name with args.
934 set dummy cl; ac_word=$2
935 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
936 echo "configure:937: checking for $ac_word" >&5
937 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
938 echo $ac_n "(cached) $ac_c" 1>&6
940 if test -n "$CC"; then
941 ac_cv_prog_CC="$CC" # Let the user override the test.
943 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
945 for ac_dir in $ac_dummy; do
946 test -z "$ac_dir" && ac_dir=.
947 if test -f $ac_dir/$ac_word; then
956 if test -n "$CC"; then
957 echo "$ac_t""$CC" 1>&6
959 echo "$ac_t""no" 1>&6
964 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
967 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
968 echo "configure:969: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
971 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
972 ac_cpp='$CPP $CPPFLAGS'
973 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
974 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
975 cross_compiling=$ac_cv_prog_cc_cross
977 cat > conftest.$ac_ext << EOF
979 #line 980 "configure"
980 #include "confdefs.h"
984 if { (eval echo configure:985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
985 ac_cv_prog_cc_works=yes
986 # If we can't run a trivial program, we are probably using a cross compiler.
987 if (./conftest; exit) 2>/dev/null; then
988 ac_cv_prog_cc_cross=no
990 ac_cv_prog_cc_cross=yes
993 echo "configure: failed program was:" >&5
994 cat conftest.$ac_ext >&5
995 ac_cv_prog_cc_works=no
999 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1000 ac_cpp='$CPP $CPPFLAGS'
1001 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1002 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1003 cross_compiling=$ac_cv_prog_cc_cross
1005 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1006 if test $ac_cv_prog_cc_works = no; then
1007 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1009 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1010 echo "configure:1011: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1011 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1012 cross_compiling=$ac_cv_prog_cc_cross
1014 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1015 echo "configure:1016: checking whether we are using GNU C" >&5
1016 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1017 echo $ac_n "(cached) $ac_c" 1>&6
1019 cat > conftest.c <<EOF
1024 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1031 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1033 if test $ac_cv_prog_gcc = yes; then
1039 ac_test_CFLAGS="${CFLAGS+set}"
1040 ac_save_CFLAGS="$CFLAGS"
1042 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1043 echo "configure:1044: checking whether ${CC-cc} accepts -g" >&5
1044 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1045 echo $ac_n "(cached) $ac_c" 1>&6
1047 echo 'void f(){}' > conftest.c
1048 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1057 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1058 if test "$ac_test_CFLAGS" = set; then
1059 CFLAGS="$ac_save_CFLAGS"
1060 elif test $ac_cv_prog_cc_g = yes; then
1061 if test "$GCC" = yes; then
1067 if test "$GCC" = yes; then
1074 # Extract the first word of "ranlib", so it can be a program name with args.
1075 set dummy ranlib; ac_word=$2
1076 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1077 echo "configure:1078: checking for $ac_word" >&5
1078 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1079 echo $ac_n "(cached) $ac_c" 1>&6
1081 if test -n "$RANLIB"; then
1082 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1084 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1086 for ac_dir in $ac_dummy; do
1087 test -z "$ac_dir" && ac_dir=.
1088 if test -f $ac_dir/$ac_word; then
1089 ac_cv_prog_RANLIB="ranlib"
1094 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1097 RANLIB="$ac_cv_prog_RANLIB"
1098 if test -n "$RANLIB"; then
1099 echo "$ac_t""$RANLIB" 1>&6
1101 echo "$ac_t""no" 1>&6
1105 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
1106 echo "configure:1107: checking for sin in -lm" >&5
1107 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
1108 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1109 echo $ac_n "(cached) $ac_c" 1>&6
1111 ac_save_LIBS="$LIBS"
1113 cat > conftest.$ac_ext <<EOF
1114 #line 1115 "configure"
1115 #include "confdefs.h"
1116 /* Override any gcc2 internal prototype to avoid an error. */
1117 /* We use char because int might match the return type of a gcc2
1118 builtin and then its argument prototype would still apply. */
1125 if { (eval echo configure:1126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1127 eval "ac_cv_lib_$ac_lib_var=yes"
1129 echo "configure: failed program was:" >&5
1130 cat conftest.$ac_ext >&5
1132 eval "ac_cv_lib_$ac_lib_var=no"
1135 LIBS="$ac_save_LIBS"
1138 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1139 echo "$ac_t""yes" 1>&6
1140 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1141 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1142 cat >> confdefs.h <<EOF
1143 #define $ac_tr_lib 1
1149 echo "$ac_t""no" 1>&6
1154 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1156 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1157 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1158 echo "configure:1159: checking for $ac_hdr that defines DIR" >&5
1159 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1160 echo $ac_n "(cached) $ac_c" 1>&6
1162 cat > conftest.$ac_ext <<EOF
1163 #line 1164 "configure"
1164 #include "confdefs.h"
1165 #include <sys/types.h>
1171 if { (eval echo configure:1172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1173 eval "ac_cv_header_dirent_$ac_safe=yes"
1175 echo "configure: failed program was:" >&5
1176 cat conftest.$ac_ext >&5
1178 eval "ac_cv_header_dirent_$ac_safe=no"
1182 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1183 echo "$ac_t""yes" 1>&6
1184 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1185 cat >> confdefs.h <<EOF
1186 #define $ac_tr_hdr 1
1188 ac_header_dirent=$ac_hdr; break
1190 echo "$ac_t""no" 1>&6
1193 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1194 if test $ac_header_dirent = dirent.h; then
1195 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1196 echo "configure:1197: checking for opendir in -ldir" >&5
1197 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1198 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1199 echo $ac_n "(cached) $ac_c" 1>&6
1201 ac_save_LIBS="$LIBS"
1203 cat > conftest.$ac_ext <<EOF
1204 #line 1205 "configure"
1205 #include "confdefs.h"
1206 /* Override any gcc2 internal prototype to avoid an error. */
1207 /* We use char because int might match the return type of a gcc2
1208 builtin and then its argument prototype would still apply. */
1215 if { (eval echo configure:1216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1217 eval "ac_cv_lib_$ac_lib_var=yes"
1219 echo "configure: failed program was:" >&5
1220 cat conftest.$ac_ext >&5
1222 eval "ac_cv_lib_$ac_lib_var=no"
1225 LIBS="$ac_save_LIBS"
1228 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1229 echo "$ac_t""yes" 1>&6
1232 echo "$ac_t""no" 1>&6
1236 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1237 echo "configure:1238: checking for opendir in -lx" >&5
1238 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1239 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1240 echo $ac_n "(cached) $ac_c" 1>&6
1242 ac_save_LIBS="$LIBS"
1244 cat > conftest.$ac_ext <<EOF
1245 #line 1246 "configure"
1246 #include "confdefs.h"
1247 /* Override any gcc2 internal prototype to avoid an error. */
1248 /* We use char because int might match the return type of a gcc2
1249 builtin and then its argument prototype would still apply. */
1256 if { (eval echo configure:1257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1258 eval "ac_cv_lib_$ac_lib_var=yes"
1260 echo "configure: failed program was:" >&5
1261 cat conftest.$ac_ext >&5
1263 eval "ac_cv_lib_$ac_lib_var=no"
1266 LIBS="$ac_save_LIBS"
1269 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1270 echo "$ac_t""yes" 1>&6
1273 echo "$ac_t""no" 1>&6
1278 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1279 echo "configure:1280: checking how to run the C preprocessor" >&5
1280 # On Suns, sometimes $CPP names a directory.
1281 if test -n "$CPP" && test -d "$CPP"; then
1284 if test -z "$CPP"; then
1285 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1286 echo $ac_n "(cached) $ac_c" 1>&6
1288 # This must be in double quotes, not single quotes, because CPP may get
1289 # substituted into the Makefile and "${CC-cc}" will confuse make.
1291 # On the NeXT, cc -E runs the code through the compiler's parser,
1292 # not just through cpp.
1293 cat > conftest.$ac_ext <<EOF
1294 #line 1295 "configure"
1295 #include "confdefs.h"
1299 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1300 { (eval echo configure:1301: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1301 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1302 if test -z "$ac_err"; then
1306 echo "configure: failed program was:" >&5
1307 cat conftest.$ac_ext >&5
1309 CPP="${CC-cc} -E -traditional-cpp"
1310 cat > conftest.$ac_ext <<EOF
1311 #line 1312 "configure"
1312 #include "confdefs.h"
1316 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1317 { (eval echo configure:1318: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1318 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1319 if test -z "$ac_err"; then
1323 echo "configure: failed program was:" >&5
1324 cat conftest.$ac_ext >&5
1326 CPP="${CC-cc} -nologo -E"
1327 cat > conftest.$ac_ext <<EOF
1328 #line 1329 "configure"
1329 #include "confdefs.h"
1333 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1334 { (eval echo configure:1335: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1335 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1336 if test -z "$ac_err"; then
1340 echo "configure: failed program was:" >&5
1341 cat conftest.$ac_ext >&5
1350 ac_cv_prog_CPP="$CPP"
1352 CPP="$ac_cv_prog_CPP"
1354 ac_cv_prog_CPP="$CPP"
1356 echo "$ac_t""$CPP" 1>&6
1358 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1359 echo "configure:1360: checking for ANSI C header files" >&5
1360 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1361 echo $ac_n "(cached) $ac_c" 1>&6
1363 cat > conftest.$ac_ext <<EOF
1364 #line 1365 "configure"
1365 #include "confdefs.h"
1371 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1372 { (eval echo configure:1373: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1373 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1374 if test -z "$ac_err"; then
1376 ac_cv_header_stdc=yes
1379 echo "configure: failed program was:" >&5
1380 cat conftest.$ac_ext >&5
1382 ac_cv_header_stdc=no
1386 if test $ac_cv_header_stdc = yes; then
1387 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1388 cat > conftest.$ac_ext <<EOF
1389 #line 1390 "configure"
1390 #include "confdefs.h"
1393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1394 egrep "memchr" >/dev/null 2>&1; then
1398 ac_cv_header_stdc=no
1404 if test $ac_cv_header_stdc = yes; then
1405 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1406 cat > conftest.$ac_ext <<EOF
1407 #line 1408 "configure"
1408 #include "confdefs.h"
1411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1412 egrep "free" >/dev/null 2>&1; then
1416 ac_cv_header_stdc=no
1422 if test $ac_cv_header_stdc = yes; then
1423 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1424 if test "$cross_compiling" = yes; then
1427 cat > conftest.$ac_ext <<EOF
1428 #line 1429 "configure"
1429 #include "confdefs.h"
1431 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1432 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1433 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1434 int main () { int i; for (i = 0; i < 256; i++)
1435 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1439 if { (eval echo configure:1440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1443 echo "configure: failed program was:" >&5
1444 cat conftest.$ac_ext >&5
1446 ac_cv_header_stdc=no
1454 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1455 if test $ac_cv_header_stdc = yes; then
1456 cat >> confdefs.h <<\EOF
1457 #define STDC_HEADERS 1
1462 for ac_hdr in fcntl.h sys/time.h unistd.h
1464 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1465 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1466 echo "configure:1467: checking for $ac_hdr" >&5
1467 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1468 echo $ac_n "(cached) $ac_c" 1>&6
1470 cat > conftest.$ac_ext <<EOF
1471 #line 1472 "configure"
1472 #include "confdefs.h"
1475 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1476 { (eval echo configure:1477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1477 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1478 if test -z "$ac_err"; then
1480 eval "ac_cv_header_$ac_safe=yes"
1483 echo "configure: failed program was:" >&5
1484 cat conftest.$ac_ext >&5
1486 eval "ac_cv_header_$ac_safe=no"
1490 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1491 echo "$ac_t""yes" 1>&6
1492 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1493 cat >> confdefs.h <<EOF
1494 #define $ac_tr_hdr 1
1498 echo "$ac_t""no" 1>&6
1503 echo $ac_n "checking for working const""... $ac_c" 1>&6
1504 echo "configure:1505: checking for working const" >&5
1505 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1506 echo $ac_n "(cached) $ac_c" 1>&6
1508 cat > conftest.$ac_ext <<EOF
1509 #line 1510 "configure"
1510 #include "confdefs.h"
1514 /* Ultrix mips cc rejects this. */
1515 typedef int charset[2]; const charset x;
1516 /* SunOS 4.1.1 cc rejects this. */
1517 char const *const *ccp;
1519 /* NEC SVR4.0.2 mips cc rejects this. */
1520 struct point {int x, y;};
1521 static struct point const zero = {0,0};
1522 /* AIX XL C 1.02.0.0 rejects this.
1523 It does not let you subtract one const X* pointer from another in an arm
1524 of an if-expression whose if-part is not a constant expression */
1525 const char *g = "string";
1526 ccp = &g + (g ? g-g : 0);
1527 /* HPUX 7.0 cc rejects these. */
1530 ccp = (char const *const *) p;
1531 { /* SCO 3.2v4 cc rejects this. */
1533 char const *s = 0 ? (char *) 0 : (char const *) 0;
1537 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1539 const int *foo = &x[0];
1542 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1543 typedef const int *iptr;
1547 { /* AIX XL C 1.02.0.0 rejects this saying
1548 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1549 struct s { int j; const int *ap[3]; };
1550 struct s *b; b->j = 5;
1552 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1558 if { (eval echo configure:1559: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1562 echo "configure: failed program was:" >&5
1563 cat conftest.$ac_ext >&5
1570 echo "$ac_t""$ac_cv_c_const" 1>&6
1571 if test $ac_cv_c_const = no; then
1572 cat >> confdefs.h <<\EOF
1578 echo $ac_n "checking for inline""... $ac_c" 1>&6
1579 echo "configure:1580: checking for inline" >&5
1580 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1581 echo $ac_n "(cached) $ac_c" 1>&6
1584 for ac_kw in inline __inline__ __inline; do
1585 cat > conftest.$ac_ext <<EOF
1586 #line 1587 "configure"
1587 #include "confdefs.h"
1593 if { (eval echo configure:1594: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1595 ac_cv_c_inline=$ac_kw; break
1597 echo "configure: failed program was:" >&5
1598 cat conftest.$ac_ext >&5
1605 echo "$ac_t""$ac_cv_c_inline" 1>&6
1606 case "$ac_cv_c_inline" in
1608 no) cat >> confdefs.h <<\EOF
1612 *) cat >> confdefs.h <<EOF
1613 #define inline $ac_cv_c_inline
1618 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1619 echo "configure:1620: checking for off_t" >&5
1620 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1621 echo $ac_n "(cached) $ac_c" 1>&6
1623 cat > conftest.$ac_ext <<EOF
1624 #line 1625 "configure"
1625 #include "confdefs.h"
1626 #include <sys/types.h>
1632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1633 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1635 ac_cv_type_off_t=yes
1643 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1644 if test $ac_cv_type_off_t = no; then
1645 cat >> confdefs.h <<\EOF
1651 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1652 echo "configure:1653: checking for size_t" >&5
1653 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1654 echo $ac_n "(cached) $ac_c" 1>&6
1656 cat > conftest.$ac_ext <<EOF
1657 #line 1658 "configure"
1658 #include "confdefs.h"
1659 #include <sys/types.h>
1665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1666 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1668 ac_cv_type_size_t=yes
1671 ac_cv_type_size_t=no
1676 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1677 if test $ac_cv_type_size_t = no; then
1678 cat >> confdefs.h <<\EOF
1679 #define size_t unsigned
1684 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1685 echo "configure:1686: checking whether time.h and sys/time.h may both be included" >&5
1686 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1687 echo $ac_n "(cached) $ac_c" 1>&6
1689 cat > conftest.$ac_ext <<EOF
1690 #line 1691 "configure"
1691 #include "confdefs.h"
1692 #include <sys/types.h>
1693 #include <sys/time.h>
1699 if { (eval echo configure:1700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1701 ac_cv_header_time=yes
1703 echo "configure: failed program was:" >&5
1704 cat conftest.$ac_ext >&5
1706 ac_cv_header_time=no
1711 echo "$ac_t""$ac_cv_header_time" 1>&6
1712 if test $ac_cv_header_time = yes; then
1713 cat >> confdefs.h <<\EOF
1714 #define TIME_WITH_SYS_TIME 1
1719 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
1720 echo "configure:1721: checking whether struct tm is in sys/time.h or time.h" >&5
1721 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
1722 echo $ac_n "(cached) $ac_c" 1>&6
1724 cat > conftest.$ac_ext <<EOF
1725 #line 1726 "configure"
1726 #include "confdefs.h"
1727 #include <sys/types.h>
1730 struct tm *tp; tp->tm_sec;
1733 if { (eval echo configure:1734: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1735 ac_cv_struct_tm=time.h
1737 echo "configure: failed program was:" >&5
1738 cat conftest.$ac_ext >&5
1740 ac_cv_struct_tm=sys/time.h
1745 echo "$ac_t""$ac_cv_struct_tm" 1>&6
1746 if test $ac_cv_struct_tm = sys/time.h; then
1747 cat >> confdefs.h <<\EOF
1748 #define TM_IN_SYS_TIME 1
1754 if test $ac_cv_prog_gcc = yes; then
1755 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1756 echo "configure:1757: checking whether ${CC-cc} needs -traditional" >&5
1757 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1758 echo $ac_n "(cached) $ac_c" 1>&6
1760 ac_pattern="Autoconf.*'x'"
1761 cat > conftest.$ac_ext <<EOF
1762 #line 1763 "configure"
1763 #include "confdefs.h"
1767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1768 egrep "$ac_pattern" >/dev/null 2>&1; then
1770 ac_cv_prog_gcc_traditional=yes
1773 ac_cv_prog_gcc_traditional=no
1778 if test $ac_cv_prog_gcc_traditional = no; then
1779 cat > conftest.$ac_ext <<EOF
1780 #line 1781 "configure"
1781 #include "confdefs.h"
1785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1786 egrep "$ac_pattern" >/dev/null 2>&1; then
1788 ac_cv_prog_gcc_traditional=yes
1795 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1796 if test $ac_cv_prog_gcc_traditional = yes; then
1797 CC="$CC -traditional"
1801 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
1802 echo "configure:1803: checking for 8-bit clean memcmp" >&5
1803 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
1804 echo $ac_n "(cached) $ac_c" 1>&6
1806 if test "$cross_compiling" = yes; then
1807 ac_cv_func_memcmp_clean=no
1809 cat > conftest.$ac_ext <<EOF
1810 #line 1811 "configure"
1811 #include "confdefs.h"
1815 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
1816 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
1820 if { (eval echo configure:1821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1822 ac_cv_func_memcmp_clean=yes
1824 echo "configure: failed program was:" >&5
1825 cat conftest.$ac_ext >&5
1827 ac_cv_func_memcmp_clean=no
1834 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
1835 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
1837 for ac_hdr in unistd.h
1839 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1840 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1841 echo "configure:1842: checking for $ac_hdr" >&5
1842 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1843 echo $ac_n "(cached) $ac_c" 1>&6
1845 cat > conftest.$ac_ext <<EOF
1846 #line 1847 "configure"
1847 #include "confdefs.h"
1850 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1851 { (eval echo configure:1852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1852 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1853 if test -z "$ac_err"; then
1855 eval "ac_cv_header_$ac_safe=yes"
1858 echo "configure: failed program was:" >&5
1859 cat conftest.$ac_ext >&5
1861 eval "ac_cv_header_$ac_safe=no"
1865 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1866 echo "$ac_t""yes" 1>&6
1867 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1868 cat >> confdefs.h <<EOF
1869 #define $ac_tr_hdr 1
1873 echo "$ac_t""no" 1>&6
1877 for ac_func in getpagesize
1879 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1880 echo "configure:1881: checking for $ac_func" >&5
1881 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1882 echo $ac_n "(cached) $ac_c" 1>&6
1884 cat > conftest.$ac_ext <<EOF
1885 #line 1886 "configure"
1886 #include "confdefs.h"
1887 /* System header to define __stub macros and hopefully few prototypes,
1888 which can conflict with char $ac_func(); below. */
1890 /* Override any gcc2 internal prototype to avoid an error. */
1891 /* We use char because int might match the return type of a gcc2
1892 builtin and then its argument prototype would still apply. */
1897 /* The GNU C library defines this for functions which it implements
1898 to always fail with ENOSYS. Some functions are actually named
1899 something starting with __ and the normal name is an alias. */
1900 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1908 if { (eval echo configure:1909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1910 eval "ac_cv_func_$ac_func=yes"
1912 echo "configure: failed program was:" >&5
1913 cat conftest.$ac_ext >&5
1915 eval "ac_cv_func_$ac_func=no"
1920 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1921 echo "$ac_t""yes" 1>&6
1922 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1923 cat >> confdefs.h <<EOF
1924 #define $ac_tr_func 1
1928 echo "$ac_t""no" 1>&6
1932 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1933 echo "configure:1934: checking for working mmap" >&5
1934 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1935 echo $ac_n "(cached) $ac_c" 1>&6
1937 if test "$cross_compiling" = yes; then
1938 ac_cv_func_mmap_fixed_mapped=no
1940 cat > conftest.$ac_ext <<EOF
1941 #line 1942 "configure"
1942 #include "confdefs.h"
1944 /* Thanks to Mike Haertel and Jim Avera for this test.
1945 Here is a matrix of mmap possibilities:
1946 mmap private not fixed
1947 mmap private fixed at somewhere currently unmapped
1948 mmap private fixed at somewhere already mapped
1949 mmap shared not fixed
1950 mmap shared fixed at somewhere currently unmapped
1951 mmap shared fixed at somewhere already mapped
1952 For private mappings, we should verify that changes cannot be read()
1953 back from the file, nor mmap's back from the file at a different
1954 address. (There have been systems where private was not correctly
1955 implemented like the infamous i386 svr4.0, and systems where the
1956 VM page cache was not coherent with the filesystem buffer cache
1957 like early versions of FreeBSD and possibly contemporary NetBSD.)
1958 For shared mappings, we should conversely verify that changes get
1959 propogated back to all the places they're supposed to be.
1961 Grep wants private fixed already mapped.
1962 The main things grep needs to know about mmap are:
1963 * does it exist and is it safe to write into the mmap'd area
1964 * how to use it (BSD variants) */
1965 #include <sys/types.h>
1967 #include <sys/mman.h>
1969 /* This mess was copied from the GNU getpagesize.h. */
1970 #ifndef HAVE_GETPAGESIZE
1971 # ifdef HAVE_UNISTD_H
1972 # include <unistd.h>
1975 /* Assume that all systems that can run configure have sys/param.h. */
1976 # ifndef HAVE_SYS_PARAM_H
1977 # define HAVE_SYS_PARAM_H 1
1980 # ifdef _SC_PAGESIZE
1981 # define getpagesize() sysconf(_SC_PAGESIZE)
1982 # else /* no _SC_PAGESIZE */
1983 # ifdef HAVE_SYS_PARAM_H
1984 # include <sys/param.h>
1985 # ifdef EXEC_PAGESIZE
1986 # define getpagesize() EXEC_PAGESIZE
1987 # else /* no EXEC_PAGESIZE */
1989 # define getpagesize() NBPG * CLSIZE
1992 # endif /* no CLSIZE */
1993 # else /* no NBPG */
1995 # define getpagesize() NBPC
1996 # else /* no NBPC */
1998 # define getpagesize() PAGESIZE
1999 # endif /* PAGESIZE */
2000 # endif /* no NBPC */
2001 # endif /* no NBPG */
2002 # endif /* no EXEC_PAGESIZE */
2003 # else /* no HAVE_SYS_PARAM_H */
2004 # define getpagesize() 8192 /* punt totally */
2005 # endif /* no HAVE_SYS_PARAM_H */
2006 # endif /* no _SC_PAGESIZE */
2008 #endif /* no HAVE_GETPAGESIZE */
2011 extern "C" { void *malloc(unsigned); }
2019 char *data, *data2, *data3;
2023 pagesize = getpagesize();
2026 * First, make a file with some known garbage in it.
2028 data = malloc(pagesize);
2031 for (i = 0; i < pagesize; ++i)
2032 *(data + i) = rand();
2034 fd = creat("conftestmmap", 0600);
2037 if (write(fd, data, pagesize) != pagesize)
2042 * Next, try to mmap the file at a fixed address which
2043 * already has something else allocated at it. If we can,
2044 * also make sure that we see the same garbage.
2046 fd = open("conftestmmap", O_RDWR);
2049 data2 = malloc(2 * pagesize);
2052 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2053 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2054 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2056 for (i = 0; i < pagesize; ++i)
2057 if (*(data + i) != *(data2 + i))
2061 * Finally, make sure that changes to the mapped area
2062 * do not percolate back to the file as seen by read().
2063 * (This is a bug on some variants of i386 svr4.0.)
2065 for (i = 0; i < pagesize; ++i)
2066 *(data2 + i) = *(data2 + i) + 1;
2067 data3 = malloc(pagesize);
2070 if (read(fd, data3, pagesize) != pagesize)
2072 for (i = 0; i < pagesize; ++i)
2073 if (*(data + i) != *(data3 + i))
2076 unlink("conftestmmap");
2081 if { (eval echo configure:2082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2083 ac_cv_func_mmap_fixed_mapped=yes
2085 echo "configure: failed program was:" >&5
2086 cat conftest.$ac_ext >&5
2088 ac_cv_func_mmap_fixed_mapped=no
2095 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2096 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2097 cat >> confdefs.h <<\EOF
2103 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2104 echo "configure:2105: checking return type of signal handlers" >&5
2105 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2106 echo $ac_n "(cached) $ac_c" 1>&6
2108 cat > conftest.$ac_ext <<EOF
2109 #line 2110 "configure"
2110 #include "confdefs.h"
2111 #include <sys/types.h>
2117 extern "C" void (*signal (int, void (*)(int)))(int);
2119 void (*signal ()) ();
2126 if { (eval echo configure:2127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2128 ac_cv_type_signal=void
2130 echo "configure: failed program was:" >&5
2131 cat conftest.$ac_ext >&5
2133 ac_cv_type_signal=int
2138 echo "$ac_t""$ac_cv_type_signal" 1>&6
2139 cat >> confdefs.h <<EOF
2140 #define RETSIGTYPE $ac_cv_type_signal
2144 for ac_func in getcwd gettimeofday mkdir mktime select socket
2146 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2147 echo "configure:2148: checking for $ac_func" >&5
2148 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2149 echo $ac_n "(cached) $ac_c" 1>&6
2151 cat > conftest.$ac_ext <<EOF
2152 #line 2153 "configure"
2153 #include "confdefs.h"
2154 /* System header to define __stub macros and hopefully few prototypes,
2155 which can conflict with char $ac_func(); below. */
2157 /* Override any gcc2 internal prototype to avoid an error. */
2158 /* We use char because int might match the return type of a gcc2
2159 builtin and then its argument prototype would still apply. */
2164 /* The GNU C library defines this for functions which it implements
2165 to always fail with ENOSYS. Some functions are actually named
2166 something starting with __ and the normal name is an alias. */
2167 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2175 if { (eval echo configure:2176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2177 eval "ac_cv_func_$ac_func=yes"
2179 echo "configure: failed program was:" >&5
2180 cat conftest.$ac_ext >&5
2182 eval "ac_cv_func_$ac_func=no"
2187 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2188 echo "$ac_t""yes" 1>&6
2189 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2190 cat >> confdefs.h <<EOF
2191 #define $ac_tr_func 1
2195 echo "$ac_t""no" 1>&6
2200 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2201 echo $ac_n "checking whether MAP_FAILED is defined""... $ac_c" 1>&6
2202 echo "configure:2203: checking whether MAP_FAILED is defined" >&5
2203 if eval "test \"`echo '$''{'ac_cv_map_failed'+set}'`\" = set"; then
2204 echo $ac_n "(cached) $ac_c" 1>&6
2206 cat > conftest.$ac_ext <<EOF
2207 #line 2208 "configure"
2208 #include "confdefs.h"
2209 #include <sys/mman.h>
2214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2215 egrep "yes" >/dev/null 2>&1; then
2217 ac_cv_map_failed=yes
2226 echo "$ac_t""$ac_cv_map_failed" 1>&6
2228 echo $ac_n "checking whether MAP_ANONYMOUS is defined""... $ac_c" 1>&6
2229 echo "configure:2230: checking whether MAP_ANONYMOUS is defined" >&5
2230 if eval "test \"`echo '$''{'ac_cv_map_anonymous'+set}'`\" = set"; then
2231 echo $ac_n "(cached) $ac_c" 1>&6
2233 cat > conftest.$ac_ext <<EOF
2234 #line 2235 "configure"
2235 #include "confdefs.h"
2236 #include <sys/mman.h>
2237 #ifdef MAP_ANONYMOUS
2241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2242 egrep "yes" >/dev/null 2>&1; then
2244 ac_cv_map_anonymous=yes
2247 ac_cv_map_anonymous=no
2253 echo "$ac_t""$ac_cv_map_anonymous" 1>&6
2255 if test $ac_cv_map_failed = yes; then
2256 cat >> confdefs.h <<\EOF
2257 #define HAVE_MAP_FAILED 1
2262 if test $ac_cv_map_failed = yes; then
2263 cat >> confdefs.h <<\EOF
2264 #define HAVE_MAP_ANONYMOUS 1
2272 # Check whether --enable-threads or --disable-threads was given.
2273 if test "${enable_threads+set}" = set; then
2274 enableval="$enable_threads"
2278 # Check whether --enable-gc2 or --disable-gc2 was given.
2279 if test "${enable_gc2+set}" = set; then
2280 enableval="$enable_gc2"
2285 echo $ac_n "checking whether to include threads support""... $ac_c" 1>&6
2286 echo "configure:2287: checking whether to include threads support" >&5
2287 if test x"$enable_threads" = "xno"; then
2288 echo "$ac_t""no" 1>&6
2290 echo "$ac_t""yes" 1>&6
2292 cat >> confdefs.h <<\EOF
2293 #define USE_THREADS 1
2296 cat >> confdefs.h <<\EOF
2297 #define EXTERNAL_OVERFLOW 1
2300 cat >> confdefs.h <<\EOF
2301 #define DONT_FREE_FIRST 1
2305 LIBTHREAD="libthreads.a"
2306 THREAD_OBJ="threads/libthreads.a"
2311 echo $ac_n "checking which garbage collector to use""... $ac_c" 1>&6
2312 echo "configure:2313: checking which garbage collector to use" >&5
2313 if test x"$enable_gc2" = "xno"; then
2314 echo "$ac_t""old garbage collector" 1>&6
2315 GC_OBJ="mm/libmm_old.a"
2317 echo "$ac_t""new garbage collector" 1>&6
2318 GC_OBJ="mm/libmm_new.a"
2324 cat > confcache <<\EOF
2325 # This file is a shell script that caches the results of configure
2326 # tests run on this system so they can be shared between configure
2327 # scripts and configure runs. It is not useful on other systems.
2328 # If it contains results you don't want to keep, you may remove or edit it.
2330 # By default, configure uses ./config.cache as the cache file,
2331 # creating it if it does not exist already. You can give configure
2332 # the --cache-file=FILE option to use a different cache file; that is
2333 # what configure does when it calls configure scripts in
2334 # subdirectories, so they share the cache.
2335 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2336 # config.status only pays attention to the cache file if you give it the
2337 # --recheck option to rerun configure.
2340 # The following way of writing the cache mishandles newlines in values,
2341 # but we know of no workaround that is simple, portable, and efficient.
2342 # So, don't put newlines in cache variables' values.
2343 # Ultrix sh set writes to stderr and can't be redirected directly,
2344 # and sets the high bit in the cache file unless we assign to the vars.
2346 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2348 # `set' does not quote correctly, so add quotes (double-quote substitution
2349 # turns \\\\ into \\, and sed turns \\ into \).
2351 -e "s/'/'\\\\''/g" \
2352 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2355 # `set' quotes correctly as required by POSIX, so do not add quotes.
2356 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2359 if cmp -s $cache_file confcache; then
2362 if test -w $cache_file; then
2363 echo "updating cache $cache_file"
2364 cat confcache > $cache_file
2366 echo "not updating unwritable cache $cache_file"
2371 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2373 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2374 # Let make expand exec_prefix.
2375 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2377 # Any assignment to VPATH causes Sun make to only execute
2378 # the first set of double-colon rules, so remove it if not needed.
2379 # If there is a colon in the path, we need to keep it.
2380 if test "x$srcdir" = x.; then
2381 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2384 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2386 DEFS=-DHAVE_CONFIG_H
2388 # Without the "./", some shells look in PATH for config.status.
2389 : ${CONFIG_STATUS=./config.status}
2391 echo creating $CONFIG_STATUS
2392 rm -f $CONFIG_STATUS
2393 cat > $CONFIG_STATUS <<EOF
2395 # Generated automatically by configure.
2396 # Run this file to recreate the current configuration.
2397 # This directory was configured as follows,
2398 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2400 # $0 $ac_configure_args
2402 # Compiler output produced by configure, useful for debugging
2403 # configure, is in ./config.log if it exists.
2405 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2408 case "\$ac_option" in
2409 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2410 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2411 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2412 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2413 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2415 -help | --help | --hel | --he | --h)
2416 echo "\$ac_cs_usage"; exit 0 ;;
2417 *) echo "\$ac_cs_usage"; exit 1 ;;
2421 ac_given_srcdir=$srcdir
2422 ac_given_INSTALL="$INSTALL"
2424 trap 'rm -fr `echo "Makefile \
2432 comp/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2434 cat >> $CONFIG_STATUS <<EOF
2436 # Protect against being on the right side of a sed subst in config.status.
2437 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2438 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2442 s%@CFLAGS@%$CFLAGS%g
2443 s%@CPPFLAGS@%$CPPFLAGS%g
2444 s%@CXXFLAGS@%$CXXFLAGS%g
2445 s%@FFLAGS@%$FFLAGS%g
2447 s%@LDFLAGS@%$LDFLAGS%g
2449 s%@exec_prefix@%$exec_prefix%g
2450 s%@prefix@%$prefix%g
2451 s%@program_transform_name@%$program_transform_name%g
2452 s%@bindir@%$bindir%g
2453 s%@sbindir@%$sbindir%g
2454 s%@libexecdir@%$libexecdir%g
2455 s%@datadir@%$datadir%g
2456 s%@sysconfdir@%$sysconfdir%g
2457 s%@sharedstatedir@%$sharedstatedir%g
2458 s%@localstatedir@%$localstatedir%g
2459 s%@libdir@%$libdir%g
2460 s%@includedir@%$includedir%g
2461 s%@oldincludedir@%$oldincludedir%g
2462 s%@infodir@%$infodir%g
2463 s%@mandir@%$mandir%g
2465 s%@host_alias@%$host_alias%g
2466 s%@host_cpu@%$host_cpu%g
2467 s%@host_vendor@%$host_vendor%g
2468 s%@host_os@%$host_os%g
2469 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2470 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2471 s%@INSTALL_DATA@%$INSTALL_DATA%g
2472 s%@PACKAGE@%$PACKAGE%g
2473 s%@VERSION@%$VERSION%g
2474 s%@ACLOCAL@%$ACLOCAL%g
2475 s%@AUTOCONF@%$AUTOCONF%g
2476 s%@AUTOMAKE@%$AUTOMAKE%g
2477 s%@AUTOHEADER@%$AUTOHEADER%g
2478 s%@MAKEINFO@%$MAKEINFO%g
2479 s%@SET_MAKE@%$SET_MAKE%g
2480 s%@COMPILER_SOURCES@%$COMPILER_SOURCES%g
2481 s%@COMPILER_OBJECTS@%$COMPILER_OBJECTS%g
2482 s%@SYSDEP_DIR@%$SYSDEP_DIR%g
2484 s%@RANLIB@%$RANLIB%g
2486 s%@LIBOBJS@%$LIBOBJS%g
2487 s%@LIBTHREAD@%$LIBTHREAD%g
2488 s%@THREAD_OBJ@%$THREAD_OBJ%g
2489 s%@GC_OBJ@%$GC_OBJ%g
2494 cat >> $CONFIG_STATUS <<\EOF
2496 # Split the substitutions into bite-sized pieces for seds with
2497 # small command number limits, like on Digital OSF/1 and HP-UX.
2498 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2499 ac_file=1 # Number of current file.
2500 ac_beg=1 # First line for current file.
2501 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2504 while $ac_more_lines; do
2505 if test $ac_beg -gt 1; then
2506 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2508 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2510 if test ! -s conftest.s$ac_file; then
2512 rm -f conftest.s$ac_file
2514 if test -z "$ac_sed_cmds"; then
2515 ac_sed_cmds="sed -f conftest.s$ac_file"
2517 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2519 ac_file=`expr $ac_file + 1`
2521 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2524 if test -z "$ac_sed_cmds"; then
2529 cat >> $CONFIG_STATUS <<EOF
2531 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
2541 cat >> $CONFIG_STATUS <<\EOF
2542 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2543 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2545 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2546 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2547 *) ac_file_in="${ac_file}.in" ;;
2550 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2552 # Remove last slash and all that follows it. Not all systems have dirname.
2553 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2554 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2555 # The file is in a subdirectory.
2556 test ! -d "$ac_dir" && mkdir "$ac_dir"
2557 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2558 # A "../" for each directory in $ac_dir_suffix.
2559 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2561 ac_dir_suffix= ac_dots=
2564 case "$ac_given_srcdir" in
2566 if test -z "$ac_dots"; then top_srcdir=.
2567 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2568 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2570 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2571 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2574 case "$ac_given_INSTALL" in
2575 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2576 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2579 echo creating "$ac_file"
2581 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2583 *Makefile*) ac_comsub="1i\\
2584 # $configure_input" ;;
2588 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2590 s%@configure_input@%$configure_input%g
2591 s%@srcdir@%$srcdir%g
2592 s%@top_srcdir@%$top_srcdir%g
2593 s%@INSTALL@%$INSTALL%g
2594 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2598 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2599 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2601 # ac_d sets the value in "#define NAME VALUE" lines.
2602 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2603 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2606 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2607 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2608 ac_uB='\([ ]\)%\1#\2define\3'
2611 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2612 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2613 ac_eB='$%\1#\2define\3'
2617 if test "${CONFIG_HEADERS+set}" != set; then
2619 cat >> $CONFIG_STATUS <<EOF
2620 CONFIG_HEADERS="config.h"
2622 cat >> $CONFIG_STATUS <<\EOF
2624 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2625 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2627 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2628 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2629 *) ac_file_in="${ac_file}.in" ;;
2632 echo creating $ac_file
2634 rm -f conftest.frag conftest.in conftest.out
2635 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2636 cat $ac_file_inputs > conftest.in
2640 # Transform confdefs.h into a sed script conftest.vals that substitutes
2641 # the proper values into config.h.in to produce config.h. And first:
2642 # Protect against being on the right side of a sed subst in config.status.
2643 # Protect against being in an unquoted here document in config.status.
2645 cat > conftest.hdr <<\EOF
2648 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2652 sed -n -f conftest.hdr confdefs.h > conftest.vals
2655 # This sed command replaces #undef with comments. This is necessary, for
2656 # example, in the case of _POSIX_SOURCE, which is predefined and required
2657 # on some systems where configure will not decide to define it.
2658 cat >> conftest.vals <<\EOF
2659 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2662 # Break up conftest.vals because some shells have a limit on
2663 # the size of here documents, and old seds have small limits too.
2668 ac_lines=`grep -c . conftest.vals`
2669 # grep -c gives empty output for an empty file on some AIX systems.
2670 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2671 # Write a limited-size here document to conftest.frag.
2672 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2673 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2675 sed -f conftest.frag conftest.in > conftest.out
2677 mv conftest.out conftest.in
2679 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2681 mv conftest.tail conftest.vals
2685 cat >> $CONFIG_STATUS <<\EOF
2686 rm -f conftest.frag conftest.h
2687 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2688 cat conftest.in >> conftest.h
2690 if cmp -s $ac_file conftest.h 2>/dev/null; then
2691 echo "$ac_file is unchanged"
2694 # Remove last slash and all that follows it. Not all systems have dirname.
2695 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2696 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2697 # The file is in a subdirectory.
2698 test ! -d "$ac_dir" && mkdir "$ac_dir"
2701 mv conftest.h $ac_file
2706 cat >> $CONFIG_STATUS <<EOF
2710 cat >> $CONFIG_STATUS <<\EOF
2711 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2715 chmod +x $CONFIG_STATUS
2716 rm -fr confdefs* $ac_clean_files
2717 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1