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:
15 --enable-multilib build many library versions (default)"
17 --enable-maintainer-mode enable make rules and dependencies not useful
18 (and sometimes confusing) to the casual installer"
20 --enable-shared[=PKGS] build shared libraries [default=yes]"
22 --enable-static[=PKGS] build static libraries [default=yes]"
24 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
26 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
28 --disable-libtool-lock force libtool not to do file locking"
30 --with-target-subdir=SUBDIR Configuring with a cross compiler"
32 --with-cross-host=HOST Configuring with a cross compiler"
34 --enable-maintainer-mode enable make rules and dependencies not useful
35 (and sometimes confusing) to the casual installer"
37 --enable-threads=TYPE choose threading package"
39 --enable-java-gc=TYPE choose garbage collector [boehm]"
41 --with-ecos Enable runtime eCos target support."
43 # Initialize some variables set by options.
44 # The variables have the same names as the options, with
45 # dashes changed to underlines.
47 cache_file=./config.cache
56 program_transform_name=s,x,x,
64 bindir='${exec_prefix}/bin'
65 sbindir='${exec_prefix}/sbin'
66 libexecdir='${exec_prefix}/libexec'
67 datadir='${prefix}/share'
68 sysconfdir='${prefix}/etc'
69 sharedstatedir='${prefix}/com'
70 localstatedir='${prefix}/var'
71 libdir='${exec_prefix}/lib'
72 includedir='${prefix}/include'
73 oldincludedir='/usr/include'
74 infodir='${prefix}/info'
75 mandir='${prefix}/man'
77 # Initialize some other variables.
80 SHELL=${CONFIG_SHELL-/bin/sh}
81 # Maximum number of lines to put in a shell here document.
88 # If the previous option needs an argument, assign it.
89 if test -n "$ac_prev"; then
90 eval "$ac_prev=\$ac_option"
96 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
100 # Accept the important Cygnus configure options, so we can diagnose typos.
104 -bindir | --bindir | --bindi | --bind | --bin | --bi)
106 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
107 bindir="$ac_optarg" ;;
109 -build | --build | --buil | --bui | --bu)
111 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
112 build="$ac_optarg" ;;
114 -cache-file | --cache-file | --cache-fil | --cache-fi \
115 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
116 ac_prev=cache_file ;;
117 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
118 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
119 cache_file="$ac_optarg" ;;
121 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
123 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
125 datadir="$ac_optarg" ;;
127 -disable-* | --disable-*)
128 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
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; }
133 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
134 eval "enable_${ac_feature}=no" ;;
136 -enable-* | --enable-*)
137 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
138 # Reject names that are not valid shell variable names.
139 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
140 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
142 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
147 eval "enable_${ac_feature}='$ac_optarg'" ;;
149 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
150 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
151 | --exec | --exe | --ex)
152 ac_prev=exec_prefix ;;
153 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
154 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
155 | --exec=* | --exe=* | --ex=*)
156 exec_prefix="$ac_optarg" ;;
158 -gas | --gas | --ga | --g)
159 # Obsolete; use --with-gas.
162 -help | --help | --hel | --he)
163 # Omit some internal or obsolete options to make the list less imposing.
164 # This message is too long to be a string in the A/UX 3.1 sh.
166 Usage: configure [options] [host]
167 Options: [defaults in brackets after descriptions]
169 --cache-file=FILE cache test results in FILE
170 --help print this message
171 --no-create do not create output files
172 --quiet, --silent do not print \`checking...' messages
173 --version print the version of autoconf that created configure
174 Directory and file names:
175 --prefix=PREFIX install architecture-independent files in PREFIX
177 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
179 --bindir=DIR user executables in DIR [EPREFIX/bin]
180 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
181 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
182 --datadir=DIR read-only architecture-independent data in DIR
184 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
185 --sharedstatedir=DIR modifiable architecture-independent data in DIR
187 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
188 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
189 --includedir=DIR C header files in DIR [PREFIX/include]
190 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
191 --infodir=DIR info documentation in DIR [PREFIX/info]
192 --mandir=DIR man documentation in DIR [PREFIX/man]
193 --srcdir=DIR find the sources in DIR [configure dir or ..]
194 --program-prefix=PREFIX prepend PREFIX to installed program names
195 --program-suffix=SUFFIX append SUFFIX to installed program names
196 --program-transform-name=PROGRAM
197 run sed PROGRAM on installed program names
201 --build=BUILD configure for building on BUILD [BUILD=HOST]
202 --host=HOST configure for HOST [guessed]
203 --target=TARGET configure for TARGET [TARGET=HOST]
204 Features and packages:
205 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
206 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
207 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
208 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
209 --x-includes=DIR X include files are in DIR
210 --x-libraries=DIR X library files are in DIR
212 if test -n "$ac_help"; then
213 echo "--enable and --with options recognized:$ac_help"
217 -host | --host | --hos | --ho)
219 -host=* | --host=* | --hos=* | --ho=*)
222 -includedir | --includedir | --includedi | --included | --include \
223 | --includ | --inclu | --incl | --inc)
224 ac_prev=includedir ;;
225 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
226 | --includ=* | --inclu=* | --incl=* | --inc=*)
227 includedir="$ac_optarg" ;;
229 -infodir | --infodir | --infodi | --infod | --info | --inf)
231 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
232 infodir="$ac_optarg" ;;
234 -libdir | --libdir | --libdi | --libd)
236 -libdir=* | --libdir=* | --libdi=* | --libd=*)
237 libdir="$ac_optarg" ;;
239 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
240 | --libexe | --libex | --libe)
241 ac_prev=libexecdir ;;
242 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
243 | --libexe=* | --libex=* | --libe=*)
244 libexecdir="$ac_optarg" ;;
246 -localstatedir | --localstatedir | --localstatedi | --localstated \
247 | --localstate | --localstat | --localsta | --localst \
248 | --locals | --local | --loca | --loc | --lo)
249 ac_prev=localstatedir ;;
250 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
251 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
252 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
253 localstatedir="$ac_optarg" ;;
255 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
257 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
258 mandir="$ac_optarg" ;;
261 # Obsolete; use --without-fp.
264 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
268 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
269 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
272 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
273 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
274 | --oldin | --oldi | --old | --ol | --o)
275 ac_prev=oldincludedir ;;
276 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
277 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
278 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
279 oldincludedir="$ac_optarg" ;;
281 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
283 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
284 prefix="$ac_optarg" ;;
286 -program-prefix | --program-prefix | --program-prefi | --program-pref \
287 | --program-pre | --program-pr | --program-p)
288 ac_prev=program_prefix ;;
289 -program-prefix=* | --program-prefix=* | --program-prefi=* \
290 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
291 program_prefix="$ac_optarg" ;;
293 -program-suffix | --program-suffix | --program-suffi | --program-suff \
294 | --program-suf | --program-su | --program-s)
295 ac_prev=program_suffix ;;
296 -program-suffix=* | --program-suffix=* | --program-suffi=* \
297 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
298 program_suffix="$ac_optarg" ;;
300 -program-transform-name | --program-transform-name \
301 | --program-transform-nam | --program-transform-na \
302 | --program-transform-n | --program-transform- \
303 | --program-transform | --program-transfor \
304 | --program-transfo | --program-transf \
305 | --program-trans | --program-tran \
306 | --progr-tra | --program-tr | --program-t)
307 ac_prev=program_transform_name ;;
308 -program-transform-name=* | --program-transform-name=* \
309 | --program-transform-nam=* | --program-transform-na=* \
310 | --program-transform-n=* | --program-transform-=* \
311 | --program-transform=* | --program-transfor=* \
312 | --program-transfo=* | --program-transf=* \
313 | --program-trans=* | --program-tran=* \
314 | --progr-tra=* | --program-tr=* | --program-t=*)
315 program_transform_name="$ac_optarg" ;;
317 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
318 | -silent | --silent | --silen | --sile | --sil)
321 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
323 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
325 sbindir="$ac_optarg" ;;
327 -sharedstatedir | --sharedstatedir | --sharedstatedi \
328 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
329 | --sharedst | --shareds | --shared | --share | --shar \
331 ac_prev=sharedstatedir ;;
332 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
333 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
334 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
336 sharedstatedir="$ac_optarg" ;;
338 -site | --site | --sit)
340 -site=* | --site=* | --sit=*)
343 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
345 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
346 srcdir="$ac_optarg" ;;
348 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
349 | --syscon | --sysco | --sysc | --sys | --sy)
350 ac_prev=sysconfdir ;;
351 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
352 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
353 sysconfdir="$ac_optarg" ;;
355 -target | --target | --targe | --targ | --tar | --ta | --t)
357 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
358 target="$ac_optarg" ;;
360 -v | -verbose | --verbose | --verbos | --verbo | --verb)
363 -version | --version | --versio | --versi | --vers)
364 echo "configure generated by autoconf version 2.13"
368 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
369 # Reject names that are not valid shell variable names.
370 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
371 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
373 ac_package=`echo $ac_package| sed 's/-/_/g'`
378 eval "with_${ac_package}='$ac_optarg'" ;;
380 -without-* | --without-*)
381 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
382 # Reject names that are not valid shell variable names.
383 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
384 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
386 ac_package=`echo $ac_package| sed 's/-/_/g'`
387 eval "with_${ac_package}=no" ;;
390 # Obsolete; use --with-x.
393 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
394 | --x-incl | --x-inc | --x-in | --x-i)
395 ac_prev=x_includes ;;
396 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
397 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
398 x_includes="$ac_optarg" ;;
400 -x-libraries | --x-libraries | --x-librarie | --x-librari \
401 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
402 ac_prev=x_libraries ;;
403 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
404 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
405 x_libraries="$ac_optarg" ;;
407 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
411 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
412 echo "configure: warning: $ac_option: invalid host type" 1>&2
414 if test "x$nonopt" != xNONE; then
415 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
423 if test -n "$ac_prev"; then
424 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
427 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
429 # File descriptor usage:
432 # 2 errors and warnings
433 # 3 some systems may open it to /dev/tty
434 # 4 used on the Kubota Titan
435 # 6 checking for... messages and results
436 # 5 compiler messages saved in config.log
437 if test "$silent" = yes; then
445 This file contains any messages produced by compilers while
446 running configure, to aid debugging if configure makes a mistake.
449 # Strip out --no-create and --no-recursion so they do not pile up.
450 # Also quote any args containing shell metacharacters.
455 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
456 | --no-cr | --no-c) ;;
457 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
458 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
459 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
460 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
461 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
466 # Only set these to C if already set. These must not be set unconditionally
467 # because not all systems understand e.g. LANG=C (notably SCO).
468 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
469 # Non-C LC_CTYPE values break the ctype check.
470 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
471 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
472 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
473 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
475 # confdefs.h avoids OS command line length limits that DEFS can exceed.
476 rm -rf conftest* confdefs.h
477 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
480 # A filename unique to this package, relative to the directory that
481 # configure is in, which we can look for to find out if srcdir is correct.
482 ac_unique_file=gc_mark.h
484 # Find the source files, if location was not specified.
485 if test -z "$srcdir"; then
486 ac_srcdir_defaulted=yes
487 # Try the directory containing this script, then its parent.
489 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
490 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
492 if test ! -r $srcdir/$ac_unique_file; then
496 ac_srcdir_defaulted=no
498 if test ! -r $srcdir/$ac_unique_file; then
499 if test "$ac_srcdir_defaulted" = yes; then
500 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
502 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
505 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
507 # Prefer explicitly selected file to automatically selected ones.
508 if test -z "$CONFIG_SITE"; then
509 if test "x$prefix" != xNONE; then
510 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
512 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
515 for ac_site_file in $CONFIG_SITE; do
516 if test -r "$ac_site_file"; then
517 echo "loading site script $ac_site_file"
522 if test -r "$cache_file"; then
523 echo "loading cache $cache_file"
526 echo "creating cache $cache_file"
531 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
532 ac_cpp='$CPP $CPPFLAGS'
533 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
534 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
535 cross_compiling=$ac_cv_prog_cc_cross
539 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
540 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
541 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
548 ac_n= ac_c='\c' ac_t=
554 for ac_dir in .. $srcdir/..; do
555 if test -f $ac_dir/install-sh; then
557 ac_install_sh="$ac_aux_dir/install-sh -c"
559 elif test -f $ac_dir/install.sh; then
561 ac_install_sh="$ac_aux_dir/install.sh -c"
565 if test -z "$ac_aux_dir"; then
566 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
568 ac_config_guess=$ac_aux_dir/config.guess
569 ac_config_sub=$ac_aux_dir/config.sub
570 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
574 # Do some error checking and defaulting for the host and target type.
576 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
579 # 1. You are not allowed to specify --host, --target, and nonopt at the
581 # 2. Host defaults to nonopt.
582 # 3. If nonopt is not specified, then host defaults to the current host,
583 # as determined by config.guess.
584 # 4. Target and build default to nonopt.
585 # 5. If nonopt is not specified, then target and build default to host.
587 # The aliases save the names the user supplied, while $host etc.
588 # will get canonicalized.
589 case $host---$target---$nonopt in
590 NONE---*---* | *---NONE---* | *---*---NONE) ;;
591 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
595 # Make sure we can run config.sub.
596 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
597 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
600 echo $ac_n "checking host system type""... $ac_c" 1>&6
601 echo "configure:602: checking host system type" >&5
604 case "$host_alias" in
608 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
609 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
611 *) host_alias=$nonopt ;;
615 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
616 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
617 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
618 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
619 echo "$ac_t""$host" 1>&6
621 echo $ac_n "checking target system type""... $ac_c" 1>&6
622 echo "configure:623: checking target system type" >&5
625 case "$target_alias" in
628 NONE) target_alias=$host_alias ;;
629 *) target_alias=$nonopt ;;
633 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
634 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
635 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
636 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
637 echo "$ac_t""$target" 1>&6
639 echo $ac_n "checking build system type""... $ac_c" 1>&6
640 echo "configure:641: checking build system type" >&5
643 case "$build_alias" in
646 NONE) build_alias=$host_alias ;;
647 *) build_alias=$nonopt ;;
651 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
652 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
653 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
654 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
655 echo "$ac_t""$build" 1>&6
657 test "$host_alias" != "$target_alias" &&
658 test "$program_prefix$program_suffix$program_transform_name" = \
660 program_prefix=${target_alias}-
663 # Find a good install program. We prefer a C program (faster),
664 # so one script is as good as another. But avoid the broken or
665 # incompatible versions:
666 # SysV /etc/install, /usr/sbin/install
667 # SunOS /usr/etc/install
670 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
671 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
672 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
673 # ./install, which can be erroneously created by make from ./install.sh.
674 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
675 echo "configure:676: checking for a BSD compatible install" >&5
676 if test -z "$INSTALL"; then
677 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
678 echo $ac_n "(cached) $ac_c" 1>&6
680 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
681 for ac_dir in $PATH; do
682 # Account for people who put trailing slashes in PATH elements.
684 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
686 # OSF1 and SCO ODT 3.0 have their own names for install.
687 # Don't use installbsd from OSF since it installs stuff as root
689 for ac_prog in ginstall scoinst install; do
690 if test -f $ac_dir/$ac_prog; then
691 if test $ac_prog = install &&
692 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
693 # AIX install. It has an incompatible calling convention.
696 ac_cv_path_install="$ac_dir/$ac_prog -c"
707 if test "${ac_cv_path_install+set}" = set; then
708 INSTALL="$ac_cv_path_install"
710 # As a last resort, use the slow shell script. We don't cache a
711 # path for INSTALL within a source directory, because that will
712 # break other packages using the cache if that directory is
713 # removed, or if the path is relative.
714 INSTALL="$ac_install_sh"
717 echo "$ac_t""$INSTALL" 1>&6
719 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
720 # It thinks the first close brace ends the variable substitution.
721 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
723 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
725 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
727 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
728 echo "configure:729: checking whether build environment is sane" >&5
731 echo timestamp > conftestfile
732 # Do `set' in a subshell so we don't clobber the current shell's
733 # arguments. Must try -L first in case configure is actually a
734 # symlink; some systems play weird games with the mod time of symlinks
735 # (eg FreeBSD returns the mod time of the symlink's containing
738 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
739 if test "$*" = "X"; then
741 set X `ls -t $srcdir/configure conftestfile`
743 if test "$*" != "X $srcdir/configure conftestfile" \
744 && test "$*" != "X conftestfile $srcdir/configure"; then
746 # If neither matched, then we have a broken ls. This can happen
747 # if, for instance, CONFIG_SHELL is bash and it inherits a
748 # broken ls alias from the environment. This has actually
749 # happened. Such a system could not be considered "sane".
750 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
751 alias in your environment" 1>&2; exit 1; }
754 test "$2" = conftestfile
760 { echo "configure: error: newly created file is older than distributed files!
761 Check your system clock" 1>&2; exit 1; }
764 echo "$ac_t""yes" 1>&6
765 if test "$program_transform_name" = s,x,x,; then
766 program_transform_name=
768 # Double any \ or $. echo might interpret backslashes.
769 cat <<\EOF_SED > conftestsed
770 s,\\,\\\\,g; s,\$,$$,g
772 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
775 test "$program_prefix" != NONE &&
776 program_transform_name="s,^,${program_prefix},; $program_transform_name"
777 # Use a double $ so make ignores it.
778 test "$program_suffix" != NONE &&
779 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
781 # sed with no file args requires a program.
782 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
784 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
785 echo "configure:786: checking whether ${MAKE-make} sets \${MAKE}" >&5
786 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
787 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
788 echo $ac_n "(cached) $ac_c" 1>&6
790 cat > conftestmake <<\EOF
792 @echo 'ac_maketemp="${MAKE}"'
794 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
795 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
796 if test -n "$ac_maketemp"; then
797 eval ac_cv_prog_make_${ac_make}_set=yes
799 eval ac_cv_prog_make_${ac_make}_set=no
803 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
804 echo "$ac_t""yes" 1>&6
807 echo "$ac_t""no" 1>&6
808 SET_MAKE="MAKE=${MAKE-make}"
811 if test $host != $build; then
812 ac_tool_prefix=${host_alias}-
817 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
818 echo "configure:819: checking for Cygwin environment" >&5
819 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
820 echo $ac_n "(cached) $ac_c" 1>&6
822 cat > conftest.$ac_ext <<EOF
823 #line 824 "configure"
824 #include "confdefs.h"
829 #define __CYGWIN__ __CYGWIN32__
834 if { (eval echo configure:835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
838 echo "configure: failed program was:" >&5
839 cat conftest.$ac_ext >&5
847 echo "$ac_t""$ac_cv_cygwin" 1>&6
849 test "$ac_cv_cygwin" = yes && CYGWIN=yes
850 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
851 echo "configure:852: checking for mingw32 environment" >&5
852 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
853 echo $ac_n "(cached) $ac_c" 1>&6
855 cat > conftest.$ac_ext <<EOF
856 #line 857 "configure"
857 #include "confdefs.h"
863 if { (eval echo configure:864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
867 echo "configure: failed program was:" >&5
868 cat conftest.$ac_ext >&5
876 echo "$ac_t""$ac_cv_mingw32" 1>&6
878 test "$ac_cv_mingw32" = yes && MINGW32=yes
880 # Check whether --enable-multilib or --disable-multilib was given.
881 if test "${enable_multilib+set}" = set; then
882 enableval="$enable_multilib"
883 case "${enableval}" in
886 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
893 if test "${srcdir}" = "."; then
894 if test "${with_target_subdir}" != "."; then
895 boehm_gc_basedir="${srcdir}/${with_multisrctop}../."
897 boehm_gc_basedir="${srcdir}/${with_multisrctop}."
900 boehm_gc_basedir="${srcdir}/."
905 # Make sure we can run config.sub.
906 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
907 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
910 echo $ac_n "checking host system type""... $ac_c" 1>&6
911 echo "configure:912: checking host system type" >&5
914 case "$host_alias" in
918 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
919 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
921 *) host_alias=$nonopt ;;
925 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
926 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
927 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
928 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
929 echo "$ac_t""$host" 1>&6
937 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
938 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
943 missing_dir=`cd $ac_aux_dir && pwd`
944 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
945 echo "configure:946: checking for working aclocal" >&5
946 # Run test in a subshell; some versions of sh will print an error if
947 # an executable is not found, even if stderr is redirected.
948 # Redirect stdin to placate older versions of autoconf. Sigh.
949 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
951 echo "$ac_t""found" 1>&6
953 ACLOCAL="$missing_dir/missing aclocal"
954 echo "$ac_t""missing" 1>&6
957 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
958 echo "configure:959: checking for working autoconf" >&5
959 # Run test in a subshell; some versions of sh will print an error if
960 # an executable is not found, even if stderr is redirected.
961 # Redirect stdin to placate older versions of autoconf. Sigh.
962 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
964 echo "$ac_t""found" 1>&6
966 AUTOCONF="$missing_dir/missing autoconf"
967 echo "$ac_t""missing" 1>&6
970 echo $ac_n "checking for working automake""... $ac_c" 1>&6
971 echo "configure:972: checking for working automake" >&5
972 # Run test in a subshell; some versions of sh will print an error if
973 # an executable is not found, even if stderr is redirected.
974 # Redirect stdin to placate older versions of autoconf. Sigh.
975 if (automake --version) < /dev/null > /dev/null 2>&1; then
977 echo "$ac_t""found" 1>&6
979 AUTOMAKE="$missing_dir/missing automake"
980 echo "$ac_t""missing" 1>&6
983 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
984 echo "configure:985: checking for working autoheader" >&5
985 # Run test in a subshell; some versions of sh will print an error if
986 # an executable is not found, even if stderr is redirected.
987 # Redirect stdin to placate older versions of autoconf. Sigh.
988 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
989 AUTOHEADER=autoheader
990 echo "$ac_t""found" 1>&6
992 AUTOHEADER="$missing_dir/missing autoheader"
993 echo "$ac_t""missing" 1>&6
996 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
997 echo "configure:998: checking for working makeinfo" >&5
998 # Run test in a subshell; some versions of sh will print an error if
999 # an executable is not found, even if stderr is redirected.
1000 # Redirect stdin to placate older versions of autoconf. Sigh.
1001 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1003 echo "$ac_t""found" 1>&6
1005 MAKEINFO="$missing_dir/missing makeinfo"
1006 echo "$ac_t""missing" 1>&6
1011 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
1012 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1013 # are probably using a cross compiler, which will not be able to fully
1014 # link an executable. This should really be fixed in autoconf
1019 # Extract the first word of "gcc", so it can be a program name with args.
1020 set dummy gcc; ac_word=$2
1021 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1022 echo "configure:1023: checking for $ac_word" >&5
1023 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1024 echo $ac_n "(cached) $ac_c" 1>&6
1026 if test -n "$CC"; then
1027 ac_cv_prog_CC="$CC" # Let the user override the test.
1029 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1031 for ac_dir in $ac_dummy; do
1032 test -z "$ac_dir" && ac_dir=.
1033 if test -f $ac_dir/$ac_word; then
1042 if test -n "$CC"; then
1043 echo "$ac_t""$CC" 1>&6
1045 echo "$ac_t""no" 1>&6
1048 if test -z "$CC"; then
1049 # Extract the first word of "cc", so it can be a program name with args.
1050 set dummy cc; ac_word=$2
1051 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1052 echo "configure:1053: checking for $ac_word" >&5
1053 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1054 echo $ac_n "(cached) $ac_c" 1>&6
1056 if test -n "$CC"; then
1057 ac_cv_prog_CC="$CC" # Let the user override the test.
1059 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1062 for ac_dir in $ac_dummy; do
1063 test -z "$ac_dir" && ac_dir=.
1064 if test -f $ac_dir/$ac_word; then
1065 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1066 ac_prog_rejected=yes
1074 if test $ac_prog_rejected = yes; then
1075 # We found a bogon in the path, so make sure we never use it.
1076 set dummy $ac_cv_prog_CC
1078 if test $# -gt 0; then
1079 # We chose a different compiler from the bogus one.
1080 # However, it has the same basename, so the bogon will be chosen
1081 # first if we set CC to just the basename; use the full file name.
1083 set dummy "$ac_dir/$ac_word" "$@"
1091 if test -n "$CC"; then
1092 echo "$ac_t""$CC" 1>&6
1094 echo "$ac_t""no" 1>&6
1097 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1100 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1101 echo "configure:1102: checking whether we are using GNU C" >&5
1102 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1103 echo $ac_n "(cached) $ac_c" 1>&6
1105 cat > conftest.c <<EOF
1110 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1111: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1117 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1119 if test $ac_cv_prog_gcc = yes; then
1121 ac_test_CFLAGS="${CFLAGS+set}"
1122 ac_save_CFLAGS="$CFLAGS"
1124 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1125 echo "configure:1126: checking whether ${CC-cc} accepts -g" >&5
1126 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1127 echo $ac_n "(cached) $ac_c" 1>&6
1129 echo 'void f(){}' > conftest.c
1130 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1139 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1140 if test "$ac_test_CFLAGS" = set; then
1141 CFLAGS="$ac_save_CFLAGS"
1142 elif test $ac_cv_prog_cc_g = yes; then
1149 test "${CFLAGS+set}" = set || CFLAGS="-g"
1153 # Likewise for AC_PROG_CXX.
1156 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1158 # Extract the first word of "$ac_prog", so it can be a program name with args.
1159 set dummy $ac_prog; ac_word=$2
1160 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1161 echo "configure:1162: checking for $ac_word" >&5
1162 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1163 echo $ac_n "(cached) $ac_c" 1>&6
1165 if test -n "$CXX"; then
1166 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1168 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1170 for ac_dir in $ac_dummy; do
1171 test -z "$ac_dir" && ac_dir=.
1172 if test -f $ac_dir/$ac_word; then
1173 ac_cv_prog_CXX="$ac_prog"
1180 CXX="$ac_cv_prog_CXX"
1181 if test -n "$CXX"; then
1182 echo "$ac_t""$CXX" 1>&6
1184 echo "$ac_t""no" 1>&6
1187 test -n "$CXX" && break
1189 test -n "$CXX" || CXX="gcc"
1191 test -z "$CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1193 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1194 echo "configure:1195: checking whether we are using GNU C++" >&5
1195 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1196 echo $ac_n "(cached) $ac_c" 1>&6
1198 cat > conftest.C <<EOF
1203 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1210 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1212 if test $ac_cv_prog_gxx = yes; then
1214 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1215 ac_save_CXXFLAGS="$CXXFLAGS"
1217 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1218 echo "configure:1219: checking whether ${CXX-g++} accepts -g" >&5
1219 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1220 echo $ac_n "(cached) $ac_c" 1>&6
1222 echo 'void f(){}' > conftest.cc
1223 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1224 ac_cv_prog_cxx_g=yes
1232 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1233 if test "$ac_test_CXXFLAGS" = set; then
1234 CXXFLAGS="$ac_save_CXXFLAGS"
1235 elif test $ac_cv_prog_cxx_g = yes; then
1242 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1246 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we don't
1247 # run it explicitly here, it will be run implicitly before
1248 # NEWLIB_CONFIGURE, which doesn't work because that means that it will
1249 # be run before AC_CANONICAL_HOST.
1250 echo $ac_n "checking build system type""... $ac_c" 1>&6
1251 echo "configure:1252: checking build system type" >&5
1254 case "$build_alias" in
1257 NONE) build_alias=$host_alias ;;
1258 *) build_alias=$nonopt ;;
1262 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1263 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1264 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1265 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1266 echo "$ac_t""$build" 1>&6
1269 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1270 set dummy ${ac_tool_prefix}as; ac_word=$2
1271 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1272 echo "configure:1273: checking for $ac_word" >&5
1273 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1274 echo $ac_n "(cached) $ac_c" 1>&6
1276 if test -n "$AS"; then
1277 ac_cv_prog_AS="$AS" # Let the user override the test.
1279 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1281 for ac_dir in $ac_dummy; do
1282 test -z "$ac_dir" && ac_dir=.
1283 if test -f $ac_dir/$ac_word; then
1284 ac_cv_prog_AS="${ac_tool_prefix}as"
1289 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1293 if test -n "$AS"; then
1294 echo "$ac_t""$AS" 1>&6
1296 echo "$ac_t""no" 1>&6
1301 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1302 set dummy ${ac_tool_prefix}ar; ac_word=$2
1303 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1304 echo "configure:1305: checking for $ac_word" >&5
1305 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1306 echo $ac_n "(cached) $ac_c" 1>&6
1308 if test -n "$AR"; then
1309 ac_cv_prog_AR="$AR" # Let the user override the test.
1311 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1313 for ac_dir in $ac_dummy; do
1314 test -z "$ac_dir" && ac_dir=.
1315 if test -f $ac_dir/$ac_word; then
1316 ac_cv_prog_AR="${ac_tool_prefix}ar"
1321 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1325 if test -n "$AR"; then
1326 echo "$ac_t""$AR" 1>&6
1328 echo "$ac_t""no" 1>&6
1333 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1334 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1335 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1336 echo "configure:1337: checking for $ac_word" >&5
1337 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1338 echo $ac_n "(cached) $ac_c" 1>&6
1340 if test -n "$RANLIB"; then
1341 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1343 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1345 for ac_dir in $ac_dummy; do
1346 test -z "$ac_dir" && ac_dir=.
1347 if test -f $ac_dir/$ac_word; then
1348 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1355 RANLIB="$ac_cv_prog_RANLIB"
1356 if test -n "$RANLIB"; then
1357 echo "$ac_t""$RANLIB" 1>&6
1359 echo "$ac_t""no" 1>&6
1363 if test -z "$ac_cv_prog_RANLIB"; then
1364 if test -n "$ac_tool_prefix"; then
1365 # Extract the first word of "ranlib", so it can be a program name with args.
1366 set dummy ranlib; ac_word=$2
1367 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1368 echo "configure:1369: checking for $ac_word" >&5
1369 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1370 echo $ac_n "(cached) $ac_c" 1>&6
1372 if test -n "$RANLIB"; then
1373 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1375 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1377 for ac_dir in $ac_dummy; do
1378 test -z "$ac_dir" && ac_dir=.
1379 if test -f $ac_dir/$ac_word; then
1380 ac_cv_prog_RANLIB="ranlib"
1385 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1388 RANLIB="$ac_cv_prog_RANLIB"
1389 if test -n "$RANLIB"; then
1390 echo "$ac_t""$RANLIB" 1>&6
1392 echo "$ac_t""no" 1>&6
1401 # Find a good install program. We prefer a C program (faster),
1402 # so one script is as good as another. But avoid the broken or
1403 # incompatible versions:
1404 # SysV /etc/install, /usr/sbin/install
1405 # SunOS /usr/etc/install
1406 # IRIX /sbin/install
1408 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1409 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1410 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1411 # ./install, which can be erroneously created by make from ./install.sh.
1412 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1413 echo "configure:1414: checking for a BSD compatible install" >&5
1414 if test -z "$INSTALL"; then
1415 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1416 echo $ac_n "(cached) $ac_c" 1>&6
1418 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1419 for ac_dir in $PATH; do
1420 # Account for people who put trailing slashes in PATH elements.
1422 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1424 # OSF1 and SCO ODT 3.0 have their own names for install.
1425 # Don't use installbsd from OSF since it installs stuff as root
1427 for ac_prog in ginstall scoinst install; do
1428 if test -f $ac_dir/$ac_prog; then
1429 if test $ac_prog = install &&
1430 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1431 # AIX install. It has an incompatible calling convention.
1434 ac_cv_path_install="$ac_dir/$ac_prog -c"
1445 if test "${ac_cv_path_install+set}" = set; then
1446 INSTALL="$ac_cv_path_install"
1448 # As a last resort, use the slow shell script. We don't cache a
1449 # path for INSTALL within a source directory, because that will
1450 # break other packages using the cache if that directory is
1451 # removed, or if the path is relative.
1452 INSTALL="$ac_install_sh"
1455 echo "$ac_t""$INSTALL" 1>&6
1457 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1458 # It thinks the first close brace ends the variable substitution.
1459 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1461 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1463 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1466 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1467 echo "configure:1468: checking whether to enable maintainer-specific portions of Makefiles" >&5
1468 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1469 if test "${enable_maintainer_mode+set}" = set; then
1470 enableval="$enable_maintainer_mode"
1471 USE_MAINTAINER_MODE=$enableval
1473 USE_MAINTAINER_MODE=no
1476 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1479 if test $USE_MAINTAINER_MODE = yes; then
1480 MAINTAINER_MODE_TRUE=
1481 MAINTAINER_MODE_FALSE='#'
1483 MAINTAINER_MODE_TRUE='#'
1484 MAINTAINER_MODE_FALSE=
1486 MAINT=$MAINTAINER_MODE_TRUE
1490 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1491 # at least currently, we never actually build a program, so we never
1492 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1493 # fails, because we are probably configuring with a cross compiler
1494 # which can't create executables. So we include AC_EXEEXT to keep
1495 # automake happy, but we don't execute it, since we don't care about
1500 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1501 echo "configure:1502: checking for executable suffix" >&5
1502 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1503 echo $ac_n "(cached) $ac_c" 1>&6
1505 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1509 echo 'int main () { return 0; }' > conftest.$ac_ext
1511 if { (eval echo configure:1512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1512 for file in conftest.*; do
1514 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1515 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1519 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1522 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1527 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1528 echo "$ac_t""${ac_cv_exeext}" 1>&6
1533 . ${boehm_gc_basedir}/configure.host
1535 case ${boehm_gc_basedir} in
1536 /* | A-Za-z:/\\*) boehm_gc_flagbasedir=${boehm_gc_basedir} ;;
1537 *) boehm_gc_flagbasedir='$(top_builddir)/'${boehm_gc_basedir} ;;
1540 boehm_gc_cflags="${boehm_gc_cflags} -I"'$(top_builddir)'"/./targ-include -I${boehm_gc_flagbasedir}/libc/include"
1543 boehm_gc_cflags="${boehm_gc_cflags} -I${boehm_gc_flagbasedir}/../winsup/include"
1547 boehm_gc_cflags="${boehm_gc_cflags} -fno-builtin"
1549 BOEHM_GC_CFLAGS=${boehm_gc_cflags}
1553 # Check whether --enable-shared or --disable-shared was given.
1554 if test "${enable_shared+set}" = set; then
1555 enableval="$enable_shared"
1556 p=${PACKAGE-default}
1557 case "$enableval" in
1558 yes) enable_shared=yes ;;
1559 no) enable_shared=no ;;
1562 # Look at the argument we got. We use all the common list separators.
1563 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1564 for pkg in $enableval; do
1565 if test "X$pkg" = "X$p"; then
1576 # Check whether --enable-static or --disable-static was given.
1577 if test "${enable_static+set}" = set; then
1578 enableval="$enable_static"
1579 p=${PACKAGE-default}
1580 case "$enableval" in
1581 yes) enable_static=yes ;;
1582 no) enable_static=no ;;
1585 # Look at the argument we got. We use all the common list separators.
1586 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1587 for pkg in $enableval; do
1588 if test "X$pkg" = "X$p"; then
1599 # Check whether --enable-fast-install or --disable-fast-install was given.
1600 if test "${enable_fast_install+set}" = set; then
1601 enableval="$enable_fast_install"
1602 p=${PACKAGE-default}
1603 case "$enableval" in
1604 yes) enable_fast_install=yes ;;
1605 no) enable_fast_install=no ;;
1607 enable_fast_install=no
1608 # Look at the argument we got. We use all the common list separators.
1609 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1610 for pkg in $enableval; do
1611 if test "X$pkg" = "X$p"; then
1612 enable_fast_install=yes
1619 enable_fast_install=yes
1622 # Extract the first word of "ranlib", so it can be a program name with args.
1623 set dummy ranlib; ac_word=$2
1624 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1625 echo "configure:1626: checking for $ac_word" >&5
1626 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1627 echo $ac_n "(cached) $ac_c" 1>&6
1629 if test -n "$RANLIB"; then
1630 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1632 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1634 for ac_dir in $ac_dummy; do
1635 test -z "$ac_dir" && ac_dir=.
1636 if test -f $ac_dir/$ac_word; then
1637 ac_cv_prog_RANLIB="ranlib"
1642 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1645 RANLIB="$ac_cv_prog_RANLIB"
1646 if test -n "$RANLIB"; then
1647 echo "$ac_t""$RANLIB" 1>&6
1649 echo "$ac_t""no" 1>&6
1652 # Extract the first word of "gcc", so it can be a program name with args.
1653 set dummy gcc; ac_word=$2
1654 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1655 echo "configure:1656: checking for $ac_word" >&5
1656 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1657 echo $ac_n "(cached) $ac_c" 1>&6
1659 if test -n "$CC"; then
1660 ac_cv_prog_CC="$CC" # Let the user override the test.
1662 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1664 for ac_dir in $ac_dummy; do
1665 test -z "$ac_dir" && ac_dir=.
1666 if test -f $ac_dir/$ac_word; then
1675 if test -n "$CC"; then
1676 echo "$ac_t""$CC" 1>&6
1678 echo "$ac_t""no" 1>&6
1681 if test -z "$CC"; then
1682 # Extract the first word of "cc", so it can be a program name with args.
1683 set dummy cc; ac_word=$2
1684 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1685 echo "configure:1686: checking for $ac_word" >&5
1686 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1687 echo $ac_n "(cached) $ac_c" 1>&6
1689 if test -n "$CC"; then
1690 ac_cv_prog_CC="$CC" # Let the user override the test.
1692 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1695 for ac_dir in $ac_dummy; do
1696 test -z "$ac_dir" && ac_dir=.
1697 if test -f $ac_dir/$ac_word; then
1698 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1699 ac_prog_rejected=yes
1707 if test $ac_prog_rejected = yes; then
1708 # We found a bogon in the path, so make sure we never use it.
1709 set dummy $ac_cv_prog_CC
1711 if test $# -gt 0; then
1712 # We chose a different compiler from the bogus one.
1713 # However, it has the same basename, so the bogon will be chosen
1714 # first if we set CC to just the basename; use the full file name.
1716 set dummy "$ac_dir/$ac_word" "$@"
1724 if test -n "$CC"; then
1725 echo "$ac_t""$CC" 1>&6
1727 echo "$ac_t""no" 1>&6
1730 if test -z "$CC"; then
1731 case "`uname -s`" in
1733 # Extract the first word of "cl", so it can be a program name with args.
1734 set dummy cl; ac_word=$2
1735 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1736 echo "configure:1737: checking for $ac_word" >&5
1737 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1738 echo $ac_n "(cached) $ac_c" 1>&6
1740 if test -n "$CC"; then
1741 ac_cv_prog_CC="$CC" # Let the user override the test.
1743 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1745 for ac_dir in $ac_dummy; do
1746 test -z "$ac_dir" && ac_dir=.
1747 if test -f $ac_dir/$ac_word; then
1756 if test -n "$CC"; then
1757 echo "$ac_t""$CC" 1>&6
1759 echo "$ac_t""no" 1>&6
1764 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1767 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1768 echo "configure:1769: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1771 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1772 ac_cpp='$CPP $CPPFLAGS'
1773 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1774 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1775 cross_compiling=$ac_cv_prog_cc_cross
1777 cat > conftest.$ac_ext << EOF
1779 #line 1780 "configure"
1780 #include "confdefs.h"
1784 if { (eval echo configure:1785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1785 ac_cv_prog_cc_works=yes
1786 # If we can't run a trivial program, we are probably using a cross compiler.
1787 if (./conftest; exit) 2>/dev/null; then
1788 ac_cv_prog_cc_cross=no
1790 ac_cv_prog_cc_cross=yes
1793 echo "configure: failed program was:" >&5
1794 cat conftest.$ac_ext >&5
1795 ac_cv_prog_cc_works=no
1799 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1800 ac_cpp='$CPP $CPPFLAGS'
1801 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1802 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1803 cross_compiling=$ac_cv_prog_cc_cross
1805 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1806 if test $ac_cv_prog_cc_works = no; then
1807 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1809 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1810 echo "configure:1811: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1811 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1812 cross_compiling=$ac_cv_prog_cc_cross
1814 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1815 echo "configure:1816: checking whether we are using GNU C" >&5
1816 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1817 echo $ac_n "(cached) $ac_c" 1>&6
1819 cat > conftest.c <<EOF
1824 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1831 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1833 if test $ac_cv_prog_gcc = yes; then
1839 ac_test_CFLAGS="${CFLAGS+set}"
1840 ac_save_CFLAGS="$CFLAGS"
1842 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1843 echo "configure:1844: checking whether ${CC-cc} accepts -g" >&5
1844 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1845 echo $ac_n "(cached) $ac_c" 1>&6
1847 echo 'void f(){}' > conftest.c
1848 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1857 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1858 if test "$ac_test_CFLAGS" = set; then
1859 CFLAGS="$ac_save_CFLAGS"
1860 elif test $ac_cv_prog_cc_g = yes; then
1861 if test "$GCC" = yes; then
1867 if test "$GCC" = yes; then
1874 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1875 if test "${with_gnu_ld+set}" = set; then
1876 withval="$with_gnu_ld"
1877 test "$withval" = no || with_gnu_ld=yes
1883 if test "$ac_cv_prog_gcc" = yes; then
1884 # Check if gcc -print-prog-name=ld gives a path.
1885 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1886 echo "configure:1887: checking for ld used by GCC" >&5
1887 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1889 # Accept absolute paths.
1890 /* | [A-Za-z]:[\\/]*)
1891 re_direlt='/[^/][^/]*/\.\./'
1892 # Canonicalize the path of ld
1893 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1894 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1895 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1897 test -z "$LD" && LD="$ac_prog"
1900 # If it fails, then pretend we aren't using GCC.
1904 # If it is relative, then search for the first ld in PATH.
1908 elif test "$with_gnu_ld" = yes; then
1909 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1910 echo "configure:1911: checking for GNU ld" >&5
1912 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1913 echo "configure:1914: checking for non-GNU ld" >&5
1915 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1916 echo $ac_n "(cached) $ac_c" 1>&6
1918 if test -z "$LD"; then
1919 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1920 for ac_dir in $PATH; do
1921 test -z "$ac_dir" && ac_dir=.
1922 if test -f "$ac_dir/$ac_prog"; then
1923 ac_cv_path_LD="$ac_dir/$ac_prog"
1924 # Check to see if the program is GNU ld. I'd rather use --version,
1925 # but apparently some GNU ld's only accept -v.
1926 # Break only if it was the GNU/non-GNU ld that we prefer.
1927 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1928 test "$with_gnu_ld" != no && break
1930 test "$with_gnu_ld" != yes && break
1936 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1941 if test -n "$LD"; then
1942 echo "$ac_t""$LD" 1>&6
1944 echo "$ac_t""no" 1>&6
1946 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1948 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1949 echo "configure:1950: checking if the linker ($LD) is GNU ld" >&5
1950 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1951 echo $ac_n "(cached) $ac_c" 1>&6
1953 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1954 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1955 ac_cv_prog_gnu_ld=yes
1957 ac_cv_prog_gnu_ld=no
1961 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1964 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1965 echo "configure:1966: checking for BSD-compatible nm" >&5
1966 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1967 echo $ac_n "(cached) $ac_c" 1>&6
1969 if test -n "$NM"; then
1970 # Let the user override the test.
1973 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1974 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1975 test -z "$ac_dir" && ac_dir=.
1976 if test -f $ac_dir/nm; then
1977 # Check to see if the nm accepts a BSD-compat flag.
1978 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1979 # nm: unknown option "B" ignored
1980 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1981 ac_cv_path_NM="$ac_dir/nm -B"
1983 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1984 ac_cv_path_NM="$ac_dir/nm -p"
1987 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1988 continue # so that we can try to find one that supports BSD flags
1993 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1998 echo "$ac_t""$NM" 1>&6
2001 # Check for command to grab the raw symbol name followed by C symbol from nm.
2002 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
2003 echo "configure:2004: checking command to parse $NM output" >&5
2004 if eval "test \"`echo '$''{'ac_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
2005 echo $ac_n "(cached) $ac_c" 1>&6
2007 # These are sane defaults that work on at least a few old systems.
2008 # {They come from Ultrix. What could be older than Ultrix?!! ;)}
2010 # Character class describing NM global symbol codes.
2011 ac_symcode='[BCDEGRST]'
2013 # Regexp to match symbols that can be accessed directly from C.
2014 ac_sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
2016 # Transform the above into a raw symbol and a C symbol.
2017 ac_symxfrm='\1 \2\3 \3'
2019 # Transform an extracted symbol line into a proper C declaration
2020 ac_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
2022 # Define system-specific variables.
2028 ac_symcode='[ABCDGISTW]'
2031 ac_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
2034 ac_symcode='[BCDEGRST]'
2041 # If we're using GNU nm, then use its standard symbol codes.
2042 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
2043 ac_symcode='[ABCDGISTW]'
2046 # Try without a prefix undercore, then with it.
2047 for ac_symprfx in "" "_"; do
2049 ac_cv_sys_global_symbol_pipe="sed -n -e 's/^.* \($ac_symcode\) *\($ac_symprfx\)$ac_sympat$/$ac_symxfrm/p'"
2051 # Check to see that the pipe works correctly.
2053 rm -f conftest.$ac_ext
2054 cat > conftest.$ac_ext <<EOF
2059 void nm_test_func(){}
2063 int main(){nm_test_var='a';nm_test_func;return 0;}
2066 if { (eval echo configure:2067: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2067 # Now try to grab the symbols.
2068 ac_nlist=conftest.nm
2070 if { (eval echo configure:2071: \"$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
2072 # Try sorting and uniquifying the output.
2073 if sort "$ac_nlist" | uniq > "$ac_nlist"T; then
2074 mv -f "$ac_nlist"T "$ac_nlist"
2079 # Make sure that we snagged all the symbols we need.
2080 if egrep ' nm_test_var$' "$ac_nlist" >/dev/null; then
2081 if egrep ' nm_test_func$' "$ac_nlist" >/dev/null; then
2082 cat <<EOF > conftest.c
2088 # Now generate the symbol file.
2089 eval "$ac_global_symbol_to_cdecl"' < "$ac_nlist" >> conftest.c'
2091 cat <<EOF >> conftest.c
2092 #if defined (__STDC__) && __STDC__
2093 # define lt_ptr_t void *
2095 # define lt_ptr_t char *
2099 /* The mapping between symbol names and symbols. */
2104 lt_preloaded_symbols[] =
2107 sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$ac_nlist" >> conftest.c
2108 cat <<\EOF >> conftest.c
2116 # Now try linking the two files.
2117 mv conftest.$ac_objext conftestm.$ac_objext
2118 ac_save_LIBS="$LIBS"
2119 ac_save_CFLAGS="$CFLAGS"
2120 LIBS="conftestm.$ac_objext"
2121 CFLAGS="$CFLAGS$no_builtin_flag"
2122 if { (eval echo configure:2123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2125 echo "configure: failed program was:" >&5
2128 LIBS="$ac_save_LIBS"
2129 CFLAGS="$ac_save_CFLAGS"
2131 echo "cannot find nm_test_func in $ac_nlist" >&5
2134 echo "cannot find nm_test_var in $ac_nlist" >&5
2137 echo "cannot run $ac_cv_sys_global_symbol_pipe" >&5
2140 echo "$progname: failed program was:" >&5
2145 # Do not use the global_symbol_pipe unless it works.
2146 if test "$ac_pipe_works" = yes; then
2147 if test x"$ac_symprfx" = x"_"; then
2148 ac_cv_sys_symbol_underscore=yes
2150 ac_cv_sys_symbol_underscore=no
2154 ac_cv_sys_global_symbol_pipe=
2162 if test -z "$ac_cv_sys_global_symbol_pipe"; then
2165 echo "$ac_t""$ac_result" 1>&6
2167 echo $ac_n "checking for _ prefix in compiled symbols""... $ac_c" 1>&6
2168 echo "configure:2169: checking for _ prefix in compiled symbols" >&5
2169 if eval "test \"`echo '$''{'ac_cv_sys_symbol_underscore'+set}'`\" = set"; then
2170 echo $ac_n "(cached) $ac_c" 1>&6
2172 ac_cv_sys_symbol_underscore=no
2173 cat > conftest.$ac_ext <<EOF
2174 void nm_test_func(){}
2175 int main(){nm_test_func;return 0;}
2177 if { (eval echo configure:2178: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2178 # Now try to grab the symbols.
2179 ac_nlist=conftest.nm
2180 if { (eval echo configure:2181: \"$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
2181 # See whether the symbols have a leading underscore.
2182 if egrep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
2183 ac_cv_sys_symbol_underscore=yes
2185 if egrep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
2188 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
2192 echo "configure: cannot run $ac_cv_sys_global_symbol_pipe" >&5
2195 echo "configure: failed program was:" >&5
2202 echo "$ac_t""$ac_cv_sys_symbol_underscore" 1>&6
2203 USE_SYMBOL_UNDERSCORE=${ac_cv_sys_symbol_underscore=no}
2205 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2206 echo "configure:2207: checking whether ln -s works" >&5
2207 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2208 echo $ac_n "(cached) $ac_c" 1>&6
2211 if ln -s X conftestdata 2>/dev/null
2214 ac_cv_prog_LN_S="ln -s"
2219 LN_S="$ac_cv_prog_LN_S"
2220 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2221 echo "$ac_t""yes" 1>&6
2223 echo "$ac_t""no" 1>&6
2227 # Check for any special flags to pass to ltconfig.
2228 libtool_flags="--cache-file=$cache_file"
2229 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2230 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2231 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2232 test "$lt_dlopen" = yes && libtool_flags="$libtool_flags --enable-dlopen"
2233 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
2234 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2235 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2237 # Some flags need to be propagated to the compiler or linker for good
2241 # Find out which ABI we are using.
2242 echo '#line 2243 "configure"' > conftest.$ac_ext
2243 if { (eval echo configure:2244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2244 case "`/usr/bin/file conftest.o`" in
2260 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2261 SAVE_CFLAGS="$CFLAGS"
2262 CFLAGS="$CFLAGS -belf"
2263 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2264 echo "configure:2265: checking whether the C compiler needs -belf" >&5
2265 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2266 echo $ac_n "(cached) $ac_c" 1>&6
2268 cat > conftest.$ac_ext <<EOF
2269 #line 2270 "configure"
2270 #include "confdefs.h"
2276 if { (eval echo configure:2277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2278 lt_cv_cc_needs_belf=yes
2280 echo "configure: failed program was:" >&5
2281 cat conftest.$ac_ext >&5
2283 lt_cv_cc_needs_belf=no
2288 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2289 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2290 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2291 CFLAGS="$SAVE_CFLAGS"
2296 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
2297 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
2298 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2299 echo "configure:2300: checking for $ac_word" >&5
2300 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2301 echo $ac_n "(cached) $ac_c" 1>&6
2303 if test -n "$DLLTOOL"; then
2304 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2306 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2308 for ac_dir in $ac_dummy; do
2309 test -z "$ac_dir" && ac_dir=.
2310 if test -f $ac_dir/$ac_word; then
2311 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
2318 DLLTOOL="$ac_cv_prog_DLLTOOL"
2319 if test -n "$DLLTOOL"; then
2320 echo "$ac_t""$DLLTOOL" 1>&6
2322 echo "$ac_t""no" 1>&6
2326 if test -z "$ac_cv_prog_DLLTOOL"; then
2327 if test -n "$ac_tool_prefix"; then
2328 # Extract the first word of "dlltool", so it can be a program name with args.
2329 set dummy dlltool; ac_word=$2
2330 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2331 echo "configure:2332: checking for $ac_word" >&5
2332 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2333 echo $ac_n "(cached) $ac_c" 1>&6
2335 if test -n "$DLLTOOL"; then
2336 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2338 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2340 for ac_dir in $ac_dummy; do
2341 test -z "$ac_dir" && ac_dir=.
2342 if test -f $ac_dir/$ac_word; then
2343 ac_cv_prog_DLLTOOL="dlltool"
2348 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
2351 DLLTOOL="$ac_cv_prog_DLLTOOL"
2352 if test -n "$DLLTOOL"; then
2353 echo "$ac_t""$DLLTOOL" 1>&6
2355 echo "$ac_t""no" 1>&6
2363 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2364 set dummy ${ac_tool_prefix}as; ac_word=$2
2365 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2366 echo "configure:2367: checking for $ac_word" >&5
2367 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2368 echo $ac_n "(cached) $ac_c" 1>&6
2370 if test -n "$AS"; then
2371 ac_cv_prog_AS="$AS" # Let the user override the test.
2373 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2375 for ac_dir in $ac_dummy; do
2376 test -z "$ac_dir" && ac_dir=.
2377 if test -f $ac_dir/$ac_word; then
2378 ac_cv_prog_AS="${ac_tool_prefix}as"
2386 if test -n "$AS"; then
2387 echo "$ac_t""$AS" 1>&6
2389 echo "$ac_t""no" 1>&6
2393 if test -z "$ac_cv_prog_AS"; then
2394 if test -n "$ac_tool_prefix"; then
2395 # Extract the first word of "as", so it can be a program name with args.
2396 set dummy as; ac_word=$2
2397 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2398 echo "configure:2399: checking for $ac_word" >&5
2399 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2400 echo $ac_n "(cached) $ac_c" 1>&6
2402 if test -n "$AS"; then
2403 ac_cv_prog_AS="$AS" # Let the user override the test.
2405 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2407 for ac_dir in $ac_dummy; do
2408 test -z "$ac_dir" && ac_dir=.
2409 if test -f $ac_dir/$ac_word; then
2415 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
2419 if test -n "$AS"; then
2420 echo "$ac_t""$AS" 1>&6
2422 echo "$ac_t""no" 1>&6
2435 # enable the --disable-libtool-lock switch
2437 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2438 if test "${enable_libtool_lock+set}" = set; then
2439 enableval="$enable_libtool_lock"
2440 need_locks=$enableval
2446 if test x"$need_locks" = xno; then
2447 libtool_flags="$libtool_flags --disable-lock"
2451 # Save cache, so that ltconfig can load it
2452 cat > confcache <<\EOF
2453 # This file is a shell script that caches the results of configure
2454 # tests run on this system so they can be shared between configure
2455 # scripts and configure runs. It is not useful on other systems.
2456 # If it contains results you don't want to keep, you may remove or edit it.
2458 # By default, configure uses ./config.cache as the cache file,
2459 # creating it if it does not exist already. You can give configure
2460 # the --cache-file=FILE option to use a different cache file; that is
2461 # what configure does when it calls configure scripts in
2462 # subdirectories, so they share the cache.
2463 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2464 # config.status only pays attention to the cache file if you give it the
2465 # --recheck option to rerun configure.
2468 # The following way of writing the cache mishandles newlines in values,
2469 # but we know of no workaround that is simple, portable, and efficient.
2470 # So, don't put newlines in cache variables' values.
2471 # Ultrix sh set writes to stderr and can't be redirected directly,
2472 # and sets the high bit in the cache file unless we assign to the vars.
2474 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2476 # `set' does not quote correctly, so add quotes (double-quote substitution
2477 # turns \\\\ into \\, and sed turns \\ into \).
2479 -e "s/'/'\\\\''/g" \
2480 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2483 # `set' quotes correctly as required by POSIX, so do not add quotes.
2484 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2487 if cmp -s $cache_file confcache; then
2490 if test -w $cache_file; then
2491 echo "updating cache $cache_file"
2492 cat confcache > $cache_file
2494 echo "not updating unwritable cache $cache_file"
2500 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2501 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2502 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
2503 DLLTOOL="$DLLTOOL" AS="$AS" \
2504 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2505 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2506 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2508 # Reload cache, that may have been modified by ltconfig
2509 if test -r "$cache_file"; then
2510 echo "loading cache $cache_file"
2513 echo "creating cache $cache_file"
2518 # This can be used to rebuild libtool when needed
2519 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
2521 # Always use our own libtool.
2522 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2524 # Redirect the config.log output again, so that the ltconfig log is not
2525 # clobbered by the next message.
2526 exec 5>>./config.log
2529 # Check whether --with-target-subdir or --without-target-subdir was given.
2530 if test "${with_target_subdir+set}" = set; then
2531 withval="$with_target_subdir"
2535 # Check whether --with-cross-host or --without-cross-host was given.
2536 if test "${with_cross_host+set}" = set; then
2537 withval="$with_cross_host"
2542 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2543 echo "configure:2544: checking whether to enable maintainer-specific portions of Makefiles" >&5
2544 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2545 if test "${enable_maintainer_mode+set}" = set; then
2546 enableval="$enable_maintainer_mode"
2547 USE_MAINTAINER_MODE=$enableval
2549 USE_MAINTAINER_MODE=no
2552 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2555 if test $USE_MAINTAINER_MODE = yes; then
2556 MAINTAINER_MODE_TRUE=
2557 MAINTAINER_MODE_FALSE='#'
2559 MAINTAINER_MODE_TRUE='#'
2560 MAINTAINER_MODE_FALSE=
2562 MAINT=$MAINTAINER_MODE_TRUE
2565 # automake wants to see AC_EXEEXT. But we don't need it. And having
2566 # it is actually a problem, because the compiler we're passed can't
2567 # necessarily do a full link. So we fool automake here.
2568 if test "x" = "y"; then
2571 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2572 echo "configure:2573: checking for executable suffix" >&5
2573 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2574 echo $ac_n "(cached) $ac_c" 1>&6
2576 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2580 echo 'int main () { return 0; }' > conftest.$ac_ext
2582 if { (eval echo configure:2583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2583 for file in conftest.*; do
2585 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
2586 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2590 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2593 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2598 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2599 echo "$ac_t""${ac_cv_exeext}" 1>&6
2604 echo $ac_n "checking for threads package to use""... $ac_c" 1>&6
2605 echo "configure:2606: checking for threads package to use" >&5
2606 # Check whether --enable-threads or --disable-threads was given.
2607 if test "${enable_threads+set}" = set; then
2608 enableval="$enable_threads"
2615 if test "$THREADS" = yes; then
2621 # FIXME: this isn't correct in all cases.
2628 # FIXME: for now, choose POSIX, because we implement that.
2629 # Later, choose irix threads.
2633 # FIXME: for now, choose POSIX, because we implement that.
2634 # Later, choose solaris threads.
2653 cat >> confdefs.h <<\EOF
2654 #define LINUX_THREADS 1
2657 cat >> confdefs.h <<\EOF
2658 #define _REENTRANT 1
2663 cat >> confdefs.h <<\EOF
2664 #define SOLARIS_THREADS 1
2667 cat >> confdefs.h <<\EOF
2668 #define _SOLARIS_PTHREADS 1
2673 cat >> confdefs.h <<\EOF
2674 #define IRIX_THREADS 1
2681 cat >> confdefs.h <<\EOF
2682 #define QUICK_THREADS 1
2685 INCLUDES="-I${boehm_gc_basedir}/../qthreads"
2687 decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
2688 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
2691 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
2694 echo "$ac_t""$THREADS" 1>&6
2696 # Check whether --enable-java-gc or --disable-java-gc was given.
2697 if test "${enable_java_gc+set}" = set; then
2698 enableval="$enable_java_gc"
2706 if test "$GC" = "boehm"; then
2707 target_all=libgcjgc.la
2712 # Check whether --with-ecos or --without-ecos was given.
2713 if test "${with_ecos+set}" = set; then
2714 withval="$with_ecos"
2715 TARGET_ECOS="$with_ecos"
2722 case "$TARGET_ECOS" in
2726 cat >> confdefs.h <<\EOF
2730 CXXINCLUDES="-I${TARGET_ECOS}/include"
2731 addobjs="$addobjs ecos.lo"
2742 machdep="alpha_mach_dep.lo"
2745 machdep="mips_sgi_mach_dep.lo"
2746 cat >> confdefs.h <<\EOF
2747 #define NO_EXECUTE_PERMISSION 1
2752 machdep="mips_ultrix_mach_dep.lo"
2753 cat >> confdefs.h <<\EOF
2754 #define STACKBASE __stackbase
2757 cat >> confdefs.h <<\EOF
2758 #define DATASTART_IS_ETEXT 1
2762 sparc-sun-solaris2.3*)
2763 cat >> confdefs.h <<\EOF
2764 #define SUNOS53_SHARED_LIB 1
2769 if test x"$machdep" = x; then
2770 machdep="mach_dep.lo"
2772 addobjs="$addobjs $machdep"
2776 sparc-sun-solaris2*)
2777 if test "$GCC" = yes; then
2779 for i in $CFLAGS; do
2784 new_CFLAGS="$new_CFLAGS $i"
2788 CFLAGS="$new_CFLAGS"
2796 cat >> confdefs.h <<\EOF
2800 cat >> confdefs.h <<\EOF
2801 #define NO_SIGNALS 1
2804 cat >> confdefs.h <<\EOF
2805 #define NO_DEBUGGING 1
2808 cat >> confdefs.h <<\EOF
2809 #define JAVA_FINALIZATION 1
2815 if test -n "${with_cross_host}"; then
2816 cat >> confdefs.h <<\EOF
2820 cat >> confdefs.h <<\EOF
2824 cat >> confdefs.h <<\EOF
2825 #define SMALL_CONFIG 1
2832 if test -z "$with_cross_host"; then
2834 USE_LIBDIR_FALSE='#'
2840 if test "${multilib}" = "yes"; then
2841 multilib_arg="--enable-multilib"
2847 cat > confcache <<\EOF
2848 # This file is a shell script that caches the results of configure
2849 # tests run on this system so they can be shared between configure
2850 # scripts and configure runs. It is not useful on other systems.
2851 # If it contains results you don't want to keep, you may remove or edit it.
2853 # By default, configure uses ./config.cache as the cache file,
2854 # creating it if it does not exist already. You can give configure
2855 # the --cache-file=FILE option to use a different cache file; that is
2856 # what configure does when it calls configure scripts in
2857 # subdirectories, so they share the cache.
2858 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2859 # config.status only pays attention to the cache file if you give it the
2860 # --recheck option to rerun configure.
2863 # The following way of writing the cache mishandles newlines in values,
2864 # but we know of no workaround that is simple, portable, and efficient.
2865 # So, don't put newlines in cache variables' values.
2866 # Ultrix sh set writes to stderr and can't be redirected directly,
2867 # and sets the high bit in the cache file unless we assign to the vars.
2869 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2871 # `set' does not quote correctly, so add quotes (double-quote substitution
2872 # turns \\\\ into \\, and sed turns \\ into \).
2874 -e "s/'/'\\\\''/g" \
2875 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2878 # `set' quotes correctly as required by POSIX, so do not add quotes.
2879 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2882 if cmp -s $cache_file confcache; then
2885 if test -w $cache_file; then
2886 echo "updating cache $cache_file"
2887 cat confcache > $cache_file
2889 echo "not updating unwritable cache $cache_file"
2894 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2896 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2897 # Let make expand exec_prefix.
2898 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2900 # Any assignment to VPATH causes Sun make to only execute
2901 # the first set of double-colon rules, so remove it if not needed.
2902 # If there is a colon in the path, we need to keep it.
2903 if test "x$srcdir" = x.; then
2904 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2907 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2909 # Transform confdefs.h into DEFS.
2910 # Protect against shell expansion while executing Makefile rules.
2911 # Protect against Makefile macro expansion.
2912 cat > conftest.defs <<\EOF
2913 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2914 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2919 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2923 # Without the "./", some shells look in PATH for config.status.
2924 : ${CONFIG_STATUS=./config.status}
2926 echo creating $CONFIG_STATUS
2927 rm -f $CONFIG_STATUS
2928 cat > $CONFIG_STATUS <<EOF
2930 # Generated automatically by configure.
2931 # Run this file to recreate the current configuration.
2932 # This directory was configured as follows,
2933 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2935 # $0 $ac_configure_args
2937 # Compiler output produced by configure, useful for debugging
2938 # configure, is in ./config.log if it exists.
2940 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2943 case "\$ac_option" in
2944 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2945 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2946 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2947 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2948 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2950 -help | --help | --hel | --he | --h)
2951 echo "\$ac_cs_usage"; exit 0 ;;
2952 *) echo "\$ac_cs_usage"; exit 1 ;;
2956 ac_given_srcdir=$srcdir
2957 ac_given_INSTALL="$INSTALL"
2959 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2961 cat >> $CONFIG_STATUS <<EOF
2963 # Protect against being on the right side of a sed subst in config.status.
2964 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2965 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2969 s%@CFLAGS@%$CFLAGS%g
2970 s%@CPPFLAGS@%$CPPFLAGS%g
2971 s%@CXXFLAGS@%$CXXFLAGS%g
2972 s%@FFLAGS@%$FFLAGS%g
2974 s%@LDFLAGS@%$LDFLAGS%g
2976 s%@exec_prefix@%$exec_prefix%g
2977 s%@prefix@%$prefix%g
2978 s%@program_transform_name@%$program_transform_name%g
2979 s%@bindir@%$bindir%g
2980 s%@sbindir@%$sbindir%g
2981 s%@libexecdir@%$libexecdir%g
2982 s%@datadir@%$datadir%g
2983 s%@sysconfdir@%$sysconfdir%g
2984 s%@sharedstatedir@%$sharedstatedir%g
2985 s%@localstatedir@%$localstatedir%g
2986 s%@libdir@%$libdir%g
2987 s%@includedir@%$includedir%g
2988 s%@oldincludedir@%$oldincludedir%g
2989 s%@infodir@%$infodir%g
2990 s%@mandir@%$mandir%g
2992 s%@host_alias@%$host_alias%g
2993 s%@host_cpu@%$host_cpu%g
2994 s%@host_vendor@%$host_vendor%g
2995 s%@host_os@%$host_os%g
2996 s%@target@%$target%g
2997 s%@target_alias@%$target_alias%g
2998 s%@target_cpu@%$target_cpu%g
2999 s%@target_vendor@%$target_vendor%g
3000 s%@target_os@%$target_os%g
3002 s%@build_alias@%$build_alias%g
3003 s%@build_cpu@%$build_cpu%g
3004 s%@build_vendor@%$build_vendor%g
3005 s%@build_os@%$build_os%g
3006 s%@boehm_gc_basedir@%$boehm_gc_basedir%g
3007 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3008 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3009 s%@INSTALL_DATA@%$INSTALL_DATA%g
3010 s%@PACKAGE@%$PACKAGE%g
3011 s%@VERSION@%$VERSION%g
3012 s%@ACLOCAL@%$ACLOCAL%g
3013 s%@AUTOCONF@%$AUTOCONF%g
3014 s%@AUTOMAKE@%$AUTOMAKE%g
3015 s%@AUTOHEADER@%$AUTOHEADER%g
3016 s%@MAKEINFO@%$MAKEINFO%g
3017 s%@SET_MAKE@%$SET_MAKE%g
3022 s%@RANLIB@%$RANLIB%g
3023 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
3024 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
3026 s%@EXEEXT@%$EXEEXT%g
3027 s%@BOEHM_GC_CFLAGS@%$BOEHM_GC_CFLAGS%g
3030 s%@USE_SYMBOL_UNDERSCORE@%$USE_SYMBOL_UNDERSCORE%g
3032 s%@DLLTOOL@%$DLLTOOL%g
3033 s%@LIBTOOL@%$LIBTOOL%g
3034 s%@target_all@%$target_all%g
3035 s%@INCLUDES@%$INCLUDES%g
3036 s%@CXXINCLUDES@%$CXXINCLUDES%g
3037 s%@addobjs@%$addobjs%g
3038 s%@MY_CFLAGS@%$MY_CFLAGS%g
3039 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
3040 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
3045 cat >> $CONFIG_STATUS <<\EOF
3047 # Split the substitutions into bite-sized pieces for seds with
3048 # small command number limits, like on Digital OSF/1 and HP-UX.
3049 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3050 ac_file=1 # Number of current file.
3051 ac_beg=1 # First line for current file.
3052 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3055 while $ac_more_lines; do
3056 if test $ac_beg -gt 1; then
3057 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3059 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3061 if test ! -s conftest.s$ac_file; then
3063 rm -f conftest.s$ac_file
3065 if test -z "$ac_sed_cmds"; then
3066 ac_sed_cmds="sed -f conftest.s$ac_file"
3068 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3070 ac_file=`expr $ac_file + 1`
3072 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3075 if test -z "$ac_sed_cmds"; then
3080 cat >> $CONFIG_STATUS <<EOF
3082 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
3084 cat >> $CONFIG_STATUS <<\EOF
3085 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3086 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3088 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3089 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3090 *) ac_file_in="${ac_file}.in" ;;
3093 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3095 # Remove last slash and all that follows it. Not all systems have dirname.
3096 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3097 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3098 # The file is in a subdirectory.
3099 test ! -d "$ac_dir" && mkdir "$ac_dir"
3100 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3101 # A "../" for each directory in $ac_dir_suffix.
3102 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3104 ac_dir_suffix= ac_dots=
3107 case "$ac_given_srcdir" in
3109 if test -z "$ac_dots"; then top_srcdir=.
3110 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3111 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3113 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3114 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3117 case "$ac_given_INSTALL" in
3118 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3119 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3122 echo creating "$ac_file"
3124 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3126 *Makefile*) ac_comsub="1i\\
3127 # $configure_input" ;;
3131 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3133 s%@configure_input@%$configure_input%g
3134 s%@srcdir@%$srcdir%g
3135 s%@top_srcdir@%$top_srcdir%g
3136 s%@INSTALL@%$INSTALL%g
3137 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3143 cat >> $CONFIG_STATUS <<EOF
3144 ac_sources="config.h"
3145 ac_dests="boehm-config.h"
3148 cat >> $CONFIG_STATUS <<\EOF
3149 srcdir=$ac_given_srcdir
3150 while test -n "$ac_sources"; do
3151 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
3152 set $ac_sources; ac_source=$1; shift; ac_sources=$*
3154 echo "linking $srcdir/$ac_source to $ac_dest"
3156 if test ! -r $srcdir/$ac_source; then
3157 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
3161 # Make relative symlinks.
3162 # Remove last slash and all that follows it. Not all systems have dirname.
3163 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
3164 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
3165 # The dest file is in a subdirectory.
3166 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
3167 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
3168 # A "../" for each directory in $ac_dest_dir_suffix.
3169 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
3171 ac_dest_dir_suffix= ac_dots=
3175 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
3176 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
3179 # Make a symlink if possible; otherwise try a hard link.
3180 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
3181 ln $srcdir/$ac_source $ac_dest; then :
3183 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
3187 cat >> $CONFIG_STATUS <<EOF
3191 with_multisubdir=${with_multisubdir}
3192 ac_configure_args="${multilib_arg} ${ac_configure_args}"
3193 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
3194 boehm_gc_basedir=${boehm_gc_basedir}
3199 cat >> $CONFIG_STATUS <<\EOF
3201 echo "$DEFS" > boehm-cflags
3203 if test -n "$CONFIG_FILES"; then
3204 ac_file=Makefile . ${boehm_gc_basedir}/../config-ml.in
3208 chmod +x $CONFIG_STATUS
3209 rm -fr confdefs* $ac_clean_files
3210 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1