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 --with-target-subdir=SUBDIR Configuring with a cross compiler"
22 --with-cross-host=HOST Configuring with a cross compiler"
24 --enable-maintainer-mode enable make rules and dependencies not useful
25 (and sometimes confusing) to the casual installer"
27 --enable-threads=TYPE choose threading package"
29 --enable-java-gc=TYPE choose garbage collector [boehm]"
31 --with-ecos Enable runtime eCos target support."
33 # Initialize some variables set by options.
34 # The variables have the same names as the options, with
35 # dashes changed to underlines.
37 cache_file=./config.cache
46 program_transform_name=s,x,x,
54 bindir='${exec_prefix}/bin'
55 sbindir='${exec_prefix}/sbin'
56 libexecdir='${exec_prefix}/libexec'
57 datadir='${prefix}/share'
58 sysconfdir='${prefix}/etc'
59 sharedstatedir='${prefix}/com'
60 localstatedir='${prefix}/var'
61 libdir='${exec_prefix}/lib'
62 includedir='${prefix}/include'
63 oldincludedir='/usr/include'
64 infodir='${prefix}/info'
65 mandir='${prefix}/man'
67 # Initialize some other variables.
70 SHELL=${CONFIG_SHELL-/bin/sh}
71 # Maximum number of lines to put in a shell here document.
78 # If the previous option needs an argument, assign it.
79 if test -n "$ac_prev"; then
80 eval "$ac_prev=\$ac_option"
86 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
90 # Accept the important Cygnus configure options, so we can diagnose typos.
94 -bindir | --bindir | --bindi | --bind | --bin | --bi)
96 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
97 bindir="$ac_optarg" ;;
99 -build | --build | --buil | --bui | --bu)
101 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
102 build="$ac_optarg" ;;
104 -cache-file | --cache-file | --cache-fil | --cache-fi \
105 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
106 ac_prev=cache_file ;;
107 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
108 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
109 cache_file="$ac_optarg" ;;
111 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
113 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
115 datadir="$ac_optarg" ;;
117 -disable-* | --disable-*)
118 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
119 # Reject names that are not valid shell variable names.
120 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
121 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
123 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
124 eval "enable_${ac_feature}=no" ;;
126 -enable-* | --enable-*)
127 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
128 # Reject names that are not valid shell variable names.
129 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
130 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
132 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
137 eval "enable_${ac_feature}='$ac_optarg'" ;;
139 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
140 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
141 | --exec | --exe | --ex)
142 ac_prev=exec_prefix ;;
143 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
144 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
145 | --exec=* | --exe=* | --ex=*)
146 exec_prefix="$ac_optarg" ;;
148 -gas | --gas | --ga | --g)
149 # Obsolete; use --with-gas.
152 -help | --help | --hel | --he)
153 # Omit some internal or obsolete options to make the list less imposing.
154 # This message is too long to be a string in the A/UX 3.1 sh.
156 Usage: configure [options] [host]
157 Options: [defaults in brackets after descriptions]
159 --cache-file=FILE cache test results in FILE
160 --help print this message
161 --no-create do not create output files
162 --quiet, --silent do not print \`checking...' messages
163 --version print the version of autoconf that created configure
164 Directory and file names:
165 --prefix=PREFIX install architecture-independent files in PREFIX
167 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
169 --bindir=DIR user executables in DIR [EPREFIX/bin]
170 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
171 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
172 --datadir=DIR read-only architecture-independent data in DIR
174 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
175 --sharedstatedir=DIR modifiable architecture-independent data in DIR
177 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
178 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
179 --includedir=DIR C header files in DIR [PREFIX/include]
180 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
181 --infodir=DIR info documentation in DIR [PREFIX/info]
182 --mandir=DIR man documentation in DIR [PREFIX/man]
183 --srcdir=DIR find the sources in DIR [configure dir or ..]
184 --program-prefix=PREFIX prepend PREFIX to installed program names
185 --program-suffix=SUFFIX append SUFFIX to installed program names
186 --program-transform-name=PROGRAM
187 run sed PROGRAM on installed program names
191 --build=BUILD configure for building on BUILD [BUILD=HOST]
192 --host=HOST configure for HOST [guessed]
193 --target=TARGET configure for TARGET [TARGET=HOST]
194 Features and packages:
195 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
196 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
197 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
198 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
199 --x-includes=DIR X include files are in DIR
200 --x-libraries=DIR X library files are in DIR
202 if test -n "$ac_help"; then
203 echo "--enable and --with options recognized:$ac_help"
207 -host | --host | --hos | --ho)
209 -host=* | --host=* | --hos=* | --ho=*)
212 -includedir | --includedir | --includedi | --included | --include \
213 | --includ | --inclu | --incl | --inc)
214 ac_prev=includedir ;;
215 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
216 | --includ=* | --inclu=* | --incl=* | --inc=*)
217 includedir="$ac_optarg" ;;
219 -infodir | --infodir | --infodi | --infod | --info | --inf)
221 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
222 infodir="$ac_optarg" ;;
224 -libdir | --libdir | --libdi | --libd)
226 -libdir=* | --libdir=* | --libdi=* | --libd=*)
227 libdir="$ac_optarg" ;;
229 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
230 | --libexe | --libex | --libe)
231 ac_prev=libexecdir ;;
232 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
233 | --libexe=* | --libex=* | --libe=*)
234 libexecdir="$ac_optarg" ;;
236 -localstatedir | --localstatedir | --localstatedi | --localstated \
237 | --localstate | --localstat | --localsta | --localst \
238 | --locals | --local | --loca | --loc | --lo)
239 ac_prev=localstatedir ;;
240 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
241 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
242 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
243 localstatedir="$ac_optarg" ;;
245 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
247 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
248 mandir="$ac_optarg" ;;
251 # Obsolete; use --without-fp.
254 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
258 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
259 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
262 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
263 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
264 | --oldin | --oldi | --old | --ol | --o)
265 ac_prev=oldincludedir ;;
266 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
267 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
268 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
269 oldincludedir="$ac_optarg" ;;
271 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
273 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
274 prefix="$ac_optarg" ;;
276 -program-prefix | --program-prefix | --program-prefi | --program-pref \
277 | --program-pre | --program-pr | --program-p)
278 ac_prev=program_prefix ;;
279 -program-prefix=* | --program-prefix=* | --program-prefi=* \
280 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
281 program_prefix="$ac_optarg" ;;
283 -program-suffix | --program-suffix | --program-suffi | --program-suff \
284 | --program-suf | --program-su | --program-s)
285 ac_prev=program_suffix ;;
286 -program-suffix=* | --program-suffix=* | --program-suffi=* \
287 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
288 program_suffix="$ac_optarg" ;;
290 -program-transform-name | --program-transform-name \
291 | --program-transform-nam | --program-transform-na \
292 | --program-transform-n | --program-transform- \
293 | --program-transform | --program-transfor \
294 | --program-transfo | --program-transf \
295 | --program-trans | --program-tran \
296 | --progr-tra | --program-tr | --program-t)
297 ac_prev=program_transform_name ;;
298 -program-transform-name=* | --program-transform-name=* \
299 | --program-transform-nam=* | --program-transform-na=* \
300 | --program-transform-n=* | --program-transform-=* \
301 | --program-transform=* | --program-transfor=* \
302 | --program-transfo=* | --program-transf=* \
303 | --program-trans=* | --program-tran=* \
304 | --progr-tra=* | --program-tr=* | --program-t=*)
305 program_transform_name="$ac_optarg" ;;
307 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
308 | -silent | --silent | --silen | --sile | --sil)
311 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
313 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
315 sbindir="$ac_optarg" ;;
317 -sharedstatedir | --sharedstatedir | --sharedstatedi \
318 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
319 | --sharedst | --shareds | --shared | --share | --shar \
321 ac_prev=sharedstatedir ;;
322 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
323 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
324 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
326 sharedstatedir="$ac_optarg" ;;
328 -site | --site | --sit)
330 -site=* | --site=* | --sit=*)
333 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
335 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
336 srcdir="$ac_optarg" ;;
338 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
339 | --syscon | --sysco | --sysc | --sys | --sy)
340 ac_prev=sysconfdir ;;
341 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
342 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
343 sysconfdir="$ac_optarg" ;;
345 -target | --target | --targe | --targ | --tar | --ta | --t)
347 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
348 target="$ac_optarg" ;;
350 -v | -verbose | --verbose | --verbos | --verbo | --verb)
353 -version | --version | --versio | --versi | --vers)
354 echo "configure generated by autoconf version 2.13"
358 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
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'`
368 eval "with_${ac_package}='$ac_optarg'" ;;
370 -without-* | --without-*)
371 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
372 # Reject names that are not valid shell variable names.
373 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
374 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
376 ac_package=`echo $ac_package| sed 's/-/_/g'`
377 eval "with_${ac_package}=no" ;;
380 # Obsolete; use --with-x.
383 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
384 | --x-incl | --x-inc | --x-in | --x-i)
385 ac_prev=x_includes ;;
386 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
387 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
388 x_includes="$ac_optarg" ;;
390 -x-libraries | --x-libraries | --x-librarie | --x-librari \
391 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
392 ac_prev=x_libraries ;;
393 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
394 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
395 x_libraries="$ac_optarg" ;;
397 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
401 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
402 echo "configure: warning: $ac_option: invalid host type" 1>&2
404 if test "x$nonopt" != xNONE; then
405 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
413 if test -n "$ac_prev"; then
414 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
417 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
419 # File descriptor usage:
422 # 2 errors and warnings
423 # 3 some systems may open it to /dev/tty
424 # 4 used on the Kubota Titan
425 # 6 checking for... messages and results
426 # 5 compiler messages saved in config.log
427 if test "$silent" = yes; then
435 This file contains any messages produced by compilers while
436 running configure, to aid debugging if configure makes a mistake.
439 # Strip out --no-create and --no-recursion so they do not pile up.
440 # Also quote any args containing shell metacharacters.
445 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
446 | --no-cr | --no-c) ;;
447 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
448 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
449 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
450 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
451 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
456 # Only set these to C if already set. These must not be set unconditionally
457 # because not all systems understand e.g. LANG=C (notably SCO).
458 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
459 # Non-C LC_CTYPE values break the ctype check.
460 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
461 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
462 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
463 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
465 # confdefs.h avoids OS command line length limits that DEFS can exceed.
466 rm -rf conftest* confdefs.h
467 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
470 # A filename unique to this package, relative to the directory that
471 # configure is in, which we can look for to find out if srcdir is correct.
472 ac_unique_file=gc_mark.h
474 # Find the source files, if location was not specified.
475 if test -z "$srcdir"; then
476 ac_srcdir_defaulted=yes
477 # Try the directory containing this script, then its parent.
479 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
480 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
482 if test ! -r $srcdir/$ac_unique_file; then
486 ac_srcdir_defaulted=no
488 if test ! -r $srcdir/$ac_unique_file; then
489 if test "$ac_srcdir_defaulted" = yes; then
490 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
492 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
495 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
497 # Prefer explicitly selected file to automatically selected ones.
498 if test -z "$CONFIG_SITE"; then
499 if test "x$prefix" != xNONE; then
500 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
502 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
505 for ac_site_file in $CONFIG_SITE; do
506 if test -r "$ac_site_file"; then
507 echo "loading site script $ac_site_file"
512 if test -r "$cache_file"; then
513 echo "loading cache $cache_file"
516 echo "creating cache $cache_file"
521 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
522 ac_cpp='$CPP $CPPFLAGS'
523 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
524 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
525 cross_compiling=$ac_cv_prog_cc_cross
529 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
530 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
531 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
538 ac_n= ac_c='\c' ac_t=
544 for ac_dir in .. $srcdir/..; do
545 if test -f $ac_dir/install-sh; then
547 ac_install_sh="$ac_aux_dir/install-sh -c"
549 elif test -f $ac_dir/install.sh; then
551 ac_install_sh="$ac_aux_dir/install.sh -c"
555 if test -z "$ac_aux_dir"; then
556 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
558 ac_config_guess=$ac_aux_dir/config.guess
559 ac_config_sub=$ac_aux_dir/config.sub
560 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
564 # Do some error checking and defaulting for the host and target type.
566 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
569 # 1. You are not allowed to specify --host, --target, and nonopt at the
571 # 2. Host defaults to nonopt.
572 # 3. If nonopt is not specified, then host defaults to the current host,
573 # as determined by config.guess.
574 # 4. Target and build default to nonopt.
575 # 5. If nonopt is not specified, then target and build default to host.
577 # The aliases save the names the user supplied, while $host etc.
578 # will get canonicalized.
579 case $host---$target---$nonopt in
580 NONE---*---* | *---NONE---* | *---*---NONE) ;;
581 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
585 # Make sure we can run config.sub.
586 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
587 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
590 echo $ac_n "checking host system type""... $ac_c" 1>&6
591 echo "configure:592: checking host system type" >&5
594 case "$host_alias" in
598 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
599 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
601 *) host_alias=$nonopt ;;
605 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
606 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
607 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
608 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
609 echo "$ac_t""$host" 1>&6
611 echo $ac_n "checking target system type""... $ac_c" 1>&6
612 echo "configure:613: checking target system type" >&5
615 case "$target_alias" in
618 NONE) target_alias=$host_alias ;;
619 *) target_alias=$nonopt ;;
623 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
624 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
625 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
626 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
627 echo "$ac_t""$target" 1>&6
629 echo $ac_n "checking build system type""... $ac_c" 1>&6
630 echo "configure:631: checking build system type" >&5
633 case "$build_alias" in
636 NONE) build_alias=$host_alias ;;
637 *) build_alias=$nonopt ;;
641 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
642 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
643 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
644 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
645 echo "$ac_t""$build" 1>&6
647 test "$host_alias" != "$target_alias" &&
648 test "$program_prefix$program_suffix$program_transform_name" = \
650 program_prefix=${target_alias}-
653 # Find a good install program. We prefer a C program (faster),
654 # so one script is as good as another. But avoid the broken or
655 # incompatible versions:
656 # SysV /etc/install, /usr/sbin/install
657 # SunOS /usr/etc/install
660 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
661 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
662 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
663 # ./install, which can be erroneously created by make from ./install.sh.
664 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
665 echo "configure:666: checking for a BSD compatible install" >&5
666 if test -z "$INSTALL"; then
667 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
668 echo $ac_n "(cached) $ac_c" 1>&6
670 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
671 for ac_dir in $PATH; do
672 # Account for people who put trailing slashes in PATH elements.
674 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
676 # OSF1 and SCO ODT 3.0 have their own names for install.
677 # Don't use installbsd from OSF since it installs stuff as root
679 for ac_prog in ginstall scoinst install; do
680 if test -f $ac_dir/$ac_prog; then
681 if test $ac_prog = install &&
682 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
683 # AIX install. It has an incompatible calling convention.
686 ac_cv_path_install="$ac_dir/$ac_prog -c"
697 if test "${ac_cv_path_install+set}" = set; then
698 INSTALL="$ac_cv_path_install"
700 # As a last resort, use the slow shell script. We don't cache a
701 # path for INSTALL within a source directory, because that will
702 # break other packages using the cache if that directory is
703 # removed, or if the path is relative.
704 INSTALL="$ac_install_sh"
707 echo "$ac_t""$INSTALL" 1>&6
709 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
710 # It thinks the first close brace ends the variable substitution.
711 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
713 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
715 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
717 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
718 echo "configure:719: checking whether build environment is sane" >&5
721 echo timestamp > conftestfile
722 # Do `set' in a subshell so we don't clobber the current shell's
723 # arguments. Must try -L first in case configure is actually a
724 # symlink; some systems play weird games with the mod time of symlinks
725 # (eg FreeBSD returns the mod time of the symlink's containing
728 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
729 if test "$*" = "X"; then
731 set X `ls -t $srcdir/configure conftestfile`
733 if test "$*" != "X $srcdir/configure conftestfile" \
734 && test "$*" != "X conftestfile $srcdir/configure"; then
736 # If neither matched, then we have a broken ls. This can happen
737 # if, for instance, CONFIG_SHELL is bash and it inherits a
738 # broken ls alias from the environment. This has actually
739 # happened. Such a system could not be considered "sane".
740 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
741 alias in your environment" 1>&2; exit 1; }
744 test "$2" = conftestfile
750 { echo "configure: error: newly created file is older than distributed files!
751 Check your system clock" 1>&2; exit 1; }
754 echo "$ac_t""yes" 1>&6
755 if test "$program_transform_name" = s,x,x,; then
756 program_transform_name=
758 # Double any \ or $. echo might interpret backslashes.
759 cat <<\EOF_SED > conftestsed
760 s,\\,\\\\,g; s,\$,$$,g
762 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
765 test "$program_prefix" != NONE &&
766 program_transform_name="s,^,${program_prefix},; $program_transform_name"
767 # Use a double $ so make ignores it.
768 test "$program_suffix" != NONE &&
769 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
771 # sed with no file args requires a program.
772 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
774 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
775 echo "configure:776: checking whether ${MAKE-make} sets \${MAKE}" >&5
776 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
777 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
778 echo $ac_n "(cached) $ac_c" 1>&6
780 cat > conftestmake <<\EOF
782 @echo 'ac_maketemp="${MAKE}"'
784 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
785 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
786 if test -n "$ac_maketemp"; then
787 eval ac_cv_prog_make_${ac_make}_set=yes
789 eval ac_cv_prog_make_${ac_make}_set=no
793 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
794 echo "$ac_t""yes" 1>&6
797 echo "$ac_t""no" 1>&6
798 SET_MAKE="MAKE=${MAKE-make}"
801 if test $host != $build; then
802 ac_tool_prefix=${host_alias}-
807 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
808 echo "configure:809: checking for Cygwin environment" >&5
809 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
810 echo $ac_n "(cached) $ac_c" 1>&6
812 cat > conftest.$ac_ext <<EOF
813 #line 814 "configure"
814 #include "confdefs.h"
819 #define __CYGWIN__ __CYGWIN32__
824 if { (eval echo configure:825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
828 echo "configure: failed program was:" >&5
829 cat conftest.$ac_ext >&5
837 echo "$ac_t""$ac_cv_cygwin" 1>&6
839 test "$ac_cv_cygwin" = yes && CYGWIN=yes
840 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
841 echo "configure:842: checking for mingw32 environment" >&5
842 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
843 echo $ac_n "(cached) $ac_c" 1>&6
845 cat > conftest.$ac_ext <<EOF
846 #line 847 "configure"
847 #include "confdefs.h"
853 if { (eval echo configure:854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
857 echo "configure: failed program was:" >&5
858 cat conftest.$ac_ext >&5
866 echo "$ac_t""$ac_cv_mingw32" 1>&6
868 test "$ac_cv_mingw32" = yes && MINGW32=yes
870 # Check whether --enable-multilib or --disable-multilib was given.
871 if test "${enable_multilib+set}" = set; then
872 enableval="$enable_multilib"
873 case "${enableval}" in
876 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
883 if test "${srcdir}" = "."; then
884 if test "${with_target_subdir}" != "."; then
885 boehm_gc_basedir="${srcdir}/${with_multisrctop}../."
887 boehm_gc_basedir="${srcdir}/${with_multisrctop}."
890 boehm_gc_basedir="${srcdir}/."
895 # Make sure we can run config.sub.
896 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
897 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
900 echo $ac_n "checking host system type""... $ac_c" 1>&6
901 echo "configure:902: checking host system type" >&5
904 case "$host_alias" in
908 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
909 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
911 *) host_alias=$nonopt ;;
915 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
916 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
917 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
918 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
919 echo "$ac_t""$host" 1>&6
927 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
928 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
933 missing_dir=`cd $ac_aux_dir && pwd`
934 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
935 echo "configure:936: checking for working aclocal" >&5
936 # Run test in a subshell; some versions of sh will print an error if
937 # an executable is not found, even if stderr is redirected.
938 # Redirect stdin to placate older versions of autoconf. Sigh.
939 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
941 echo "$ac_t""found" 1>&6
943 ACLOCAL="$missing_dir/missing aclocal"
944 echo "$ac_t""missing" 1>&6
947 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
948 echo "configure:949: checking for working autoconf" >&5
949 # Run test in a subshell; some versions of sh will print an error if
950 # an executable is not found, even if stderr is redirected.
951 # Redirect stdin to placate older versions of autoconf. Sigh.
952 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
954 echo "$ac_t""found" 1>&6
956 AUTOCONF="$missing_dir/missing autoconf"
957 echo "$ac_t""missing" 1>&6
960 echo $ac_n "checking for working automake""... $ac_c" 1>&6
961 echo "configure:962: checking for working automake" >&5
962 # Run test in a subshell; some versions of sh will print an error if
963 # an executable is not found, even if stderr is redirected.
964 # Redirect stdin to placate older versions of autoconf. Sigh.
965 if (automake --version) < /dev/null > /dev/null 2>&1; then
967 echo "$ac_t""found" 1>&6
969 AUTOMAKE="$missing_dir/missing automake"
970 echo "$ac_t""missing" 1>&6
973 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
974 echo "configure:975: checking for working autoheader" >&5
975 # Run test in a subshell; some versions of sh will print an error if
976 # an executable is not found, even if stderr is redirected.
977 # Redirect stdin to placate older versions of autoconf. Sigh.
978 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
979 AUTOHEADER=autoheader
980 echo "$ac_t""found" 1>&6
982 AUTOHEADER="$missing_dir/missing autoheader"
983 echo "$ac_t""missing" 1>&6
986 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
987 echo "configure:988: checking for working makeinfo" >&5
988 # Run test in a subshell; some versions of sh will print an error if
989 # an executable is not found, even if stderr is redirected.
990 # Redirect stdin to placate older versions of autoconf. Sigh.
991 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
993 echo "$ac_t""found" 1>&6
995 MAKEINFO="$missing_dir/missing makeinfo"
996 echo "$ac_t""missing" 1>&6
1001 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
1002 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1003 # are probably using a cross compiler, which will not be able to fully
1004 # link an executable. This should really be fixed in autoconf
1009 # Extract the first word of "gcc", so it can be a program name with args.
1010 set dummy gcc; ac_word=$2
1011 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1012 echo "configure:1013: checking for $ac_word" >&5
1013 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1014 echo $ac_n "(cached) $ac_c" 1>&6
1016 if test -n "$CC"; then
1017 ac_cv_prog_CC="$CC" # Let the user override the test.
1019 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1021 for ac_dir in $ac_dummy; do
1022 test -z "$ac_dir" && ac_dir=.
1023 if test -f $ac_dir/$ac_word; then
1032 if test -n "$CC"; then
1033 echo "$ac_t""$CC" 1>&6
1035 echo "$ac_t""no" 1>&6
1038 if test -z "$CC"; then
1039 # Extract the first word of "cc", so it can be a program name with args.
1040 set dummy cc; ac_word=$2
1041 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1042 echo "configure:1043: checking for $ac_word" >&5
1043 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1044 echo $ac_n "(cached) $ac_c" 1>&6
1046 if test -n "$CC"; then
1047 ac_cv_prog_CC="$CC" # Let the user override the test.
1049 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1052 for ac_dir in $ac_dummy; do
1053 test -z "$ac_dir" && ac_dir=.
1054 if test -f $ac_dir/$ac_word; then
1055 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1056 ac_prog_rejected=yes
1064 if test $ac_prog_rejected = yes; then
1065 # We found a bogon in the path, so make sure we never use it.
1066 set dummy $ac_cv_prog_CC
1068 if test $# -gt 0; then
1069 # We chose a different compiler from the bogus one.
1070 # However, it has the same basename, so the bogon will be chosen
1071 # first if we set CC to just the basename; use the full file name.
1073 set dummy "$ac_dir/$ac_word" "$@"
1081 if test -n "$CC"; then
1082 echo "$ac_t""$CC" 1>&6
1084 echo "$ac_t""no" 1>&6
1087 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1090 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1091 echo "configure:1092: checking whether we are using GNU C" >&5
1092 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1093 echo $ac_n "(cached) $ac_c" 1>&6
1095 cat > conftest.c <<EOF
1100 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1101: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1107 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1109 if test $ac_cv_prog_gcc = yes; then
1111 ac_test_CFLAGS="${CFLAGS+set}"
1112 ac_save_CFLAGS="$CFLAGS"
1114 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1115 echo "configure:1116: checking whether ${CC-cc} accepts -g" >&5
1116 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1117 echo $ac_n "(cached) $ac_c" 1>&6
1119 echo 'void f(){}' > conftest.c
1120 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1129 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1130 if test "$ac_test_CFLAGS" = set; then
1131 CFLAGS="$ac_save_CFLAGS"
1132 elif test $ac_cv_prog_cc_g = yes; then
1139 test "${CFLAGS+set}" = set || CFLAGS="-g"
1143 # Likewise for AC_PROG_CXX.
1146 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1148 # Extract the first word of "$ac_prog", so it can be a program name with args.
1149 set dummy $ac_prog; ac_word=$2
1150 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1151 echo "configure:1152: checking for $ac_word" >&5
1152 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1153 echo $ac_n "(cached) $ac_c" 1>&6
1155 if test -n "$CXX"; then
1156 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1158 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1160 for ac_dir in $ac_dummy; do
1161 test -z "$ac_dir" && ac_dir=.
1162 if test -f $ac_dir/$ac_word; then
1163 ac_cv_prog_CXX="$ac_prog"
1170 CXX="$ac_cv_prog_CXX"
1171 if test -n "$CXX"; then
1172 echo "$ac_t""$CXX" 1>&6
1174 echo "$ac_t""no" 1>&6
1177 test -n "$CXX" && break
1179 test -n "$CXX" || CXX="gcc"
1181 test -z "$CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1183 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1184 echo "configure:1185: checking whether we are using GNU C++" >&5
1185 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1186 echo $ac_n "(cached) $ac_c" 1>&6
1188 cat > conftest.C <<EOF
1193 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1194: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1200 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1202 if test $ac_cv_prog_gxx = yes; then
1204 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1205 ac_save_CXXFLAGS="$CXXFLAGS"
1207 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1208 echo "configure:1209: checking whether ${CXX-g++} accepts -g" >&5
1209 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1210 echo $ac_n "(cached) $ac_c" 1>&6
1212 echo 'void f(){}' > conftest.cc
1213 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1214 ac_cv_prog_cxx_g=yes
1222 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1223 if test "$ac_test_CXXFLAGS" = set; then
1224 CXXFLAGS="$ac_save_CXXFLAGS"
1225 elif test $ac_cv_prog_cxx_g = yes; then
1232 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1236 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we don't
1237 # run it explicitly here, it will be run implicitly before
1238 # NEWLIB_CONFIGURE, which doesn't work because that means that it will
1239 # be run before AC_CANONICAL_HOST.
1240 echo $ac_n "checking build system type""... $ac_c" 1>&6
1241 echo "configure:1242: checking build system type" >&5
1244 case "$build_alias" in
1247 NONE) build_alias=$host_alias ;;
1248 *) build_alias=$nonopt ;;
1252 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1253 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1254 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1255 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1256 echo "$ac_t""$build" 1>&6
1259 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1260 set dummy ${ac_tool_prefix}as; ac_word=$2
1261 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1262 echo "configure:1263: checking for $ac_word" >&5
1263 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1264 echo $ac_n "(cached) $ac_c" 1>&6
1266 if test -n "$AS"; then
1267 ac_cv_prog_AS="$AS" # Let the user override the test.
1269 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1271 for ac_dir in $ac_dummy; do
1272 test -z "$ac_dir" && ac_dir=.
1273 if test -f $ac_dir/$ac_word; then
1274 ac_cv_prog_AS="${ac_tool_prefix}as"
1279 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1283 if test -n "$AS"; then
1284 echo "$ac_t""$AS" 1>&6
1286 echo "$ac_t""no" 1>&6
1291 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1292 set dummy ${ac_tool_prefix}ar; ac_word=$2
1293 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1294 echo "configure:1295: checking for $ac_word" >&5
1295 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1296 echo $ac_n "(cached) $ac_c" 1>&6
1298 if test -n "$AR"; then
1299 ac_cv_prog_AR="$AR" # Let the user override the test.
1301 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1303 for ac_dir in $ac_dummy; do
1304 test -z "$ac_dir" && ac_dir=.
1305 if test -f $ac_dir/$ac_word; then
1306 ac_cv_prog_AR="${ac_tool_prefix}ar"
1311 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1315 if test -n "$AR"; then
1316 echo "$ac_t""$AR" 1>&6
1318 echo "$ac_t""no" 1>&6
1323 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1324 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1325 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1326 echo "configure:1327: checking for $ac_word" >&5
1327 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1328 echo $ac_n "(cached) $ac_c" 1>&6
1330 if test -n "$RANLIB"; then
1331 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1333 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1335 for ac_dir in $ac_dummy; do
1336 test -z "$ac_dir" && ac_dir=.
1337 if test -f $ac_dir/$ac_word; then
1338 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1345 RANLIB="$ac_cv_prog_RANLIB"
1346 if test -n "$RANLIB"; then
1347 echo "$ac_t""$RANLIB" 1>&6
1349 echo "$ac_t""no" 1>&6
1353 if test -z "$ac_cv_prog_RANLIB"; then
1354 if test -n "$ac_tool_prefix"; then
1355 # Extract the first word of "ranlib", so it can be a program name with args.
1356 set dummy ranlib; ac_word=$2
1357 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1358 echo "configure:1359: checking for $ac_word" >&5
1359 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1360 echo $ac_n "(cached) $ac_c" 1>&6
1362 if test -n "$RANLIB"; then
1363 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1365 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1367 for ac_dir in $ac_dummy; do
1368 test -z "$ac_dir" && ac_dir=.
1369 if test -f $ac_dir/$ac_word; then
1370 ac_cv_prog_RANLIB="ranlib"
1375 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1378 RANLIB="$ac_cv_prog_RANLIB"
1379 if test -n "$RANLIB"; then
1380 echo "$ac_t""$RANLIB" 1>&6
1382 echo "$ac_t""no" 1>&6
1391 # Find a good install program. We prefer a C program (faster),
1392 # so one script is as good as another. But avoid the broken or
1393 # incompatible versions:
1394 # SysV /etc/install, /usr/sbin/install
1395 # SunOS /usr/etc/install
1396 # IRIX /sbin/install
1398 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1399 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1400 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1401 # ./install, which can be erroneously created by make from ./install.sh.
1402 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1403 echo "configure:1404: checking for a BSD compatible install" >&5
1404 if test -z "$INSTALL"; then
1405 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1406 echo $ac_n "(cached) $ac_c" 1>&6
1408 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1409 for ac_dir in $PATH; do
1410 # Account for people who put trailing slashes in PATH elements.
1412 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1414 # OSF1 and SCO ODT 3.0 have their own names for install.
1415 # Don't use installbsd from OSF since it installs stuff as root
1417 for ac_prog in ginstall scoinst install; do
1418 if test -f $ac_dir/$ac_prog; then
1419 if test $ac_prog = install &&
1420 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1421 # AIX install. It has an incompatible calling convention.
1424 ac_cv_path_install="$ac_dir/$ac_prog -c"
1435 if test "${ac_cv_path_install+set}" = set; then
1436 INSTALL="$ac_cv_path_install"
1438 # As a last resort, use the slow shell script. We don't cache a
1439 # path for INSTALL within a source directory, because that will
1440 # break other packages using the cache if that directory is
1441 # removed, or if the path is relative.
1442 INSTALL="$ac_install_sh"
1445 echo "$ac_t""$INSTALL" 1>&6
1447 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1448 # It thinks the first close brace ends the variable substitution.
1449 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1451 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1453 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1456 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1457 echo "configure:1458: checking whether to enable maintainer-specific portions of Makefiles" >&5
1458 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1459 if test "${enable_maintainer_mode+set}" = set; then
1460 enableval="$enable_maintainer_mode"
1461 USE_MAINTAINER_MODE=$enableval
1463 USE_MAINTAINER_MODE=no
1466 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1469 if test $USE_MAINTAINER_MODE = yes; then
1470 MAINTAINER_MODE_TRUE=
1471 MAINTAINER_MODE_FALSE='#'
1473 MAINTAINER_MODE_TRUE='#'
1474 MAINTAINER_MODE_FALSE=
1476 MAINT=$MAINTAINER_MODE_TRUE
1480 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1481 # at least currently, we never actually build a program, so we never
1482 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1483 # fails, because we are probably configuring with a cross compiler
1484 # which can't create executables. So we include AC_EXEEXT to keep
1485 # automake happy, but we don't execute it, since we don't care about
1490 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1491 echo "configure:1492: checking for executable suffix" >&5
1492 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1493 echo $ac_n "(cached) $ac_c" 1>&6
1495 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1499 echo 'int main () { return 0; }' > conftest.$ac_ext
1501 if { (eval echo configure:1502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1502 for file in conftest.*; do
1504 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1505 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1509 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1512 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1517 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1518 echo "$ac_t""${ac_cv_exeext}" 1>&6
1523 . ${boehm_gc_basedir}/configure.host
1525 case ${boehm_gc_basedir} in
1526 /* | A-Za-z:/\\*) boehm_gc_flagbasedir=${boehm_gc_basedir} ;;
1527 *) boehm_gc_flagbasedir='$(top_builddir)/'${boehm_gc_basedir} ;;
1530 boehm_gc_cflags="${boehm_gc_cflags} -I"'$(top_builddir)'"/./targ-include -I${boehm_gc_flagbasedir}/libc/include"
1533 boehm_gc_cflags="${boehm_gc_cflags} -I${boehm_gc_flagbasedir}/../winsup/include"
1537 boehm_gc_cflags="${boehm_gc_cflags} -fno-builtin"
1539 BOEHM_GC_CFLAGS=${boehm_gc_cflags}
1543 # Check whether --with-target-subdir or --without-target-subdir was given.
1544 if test "${with_target_subdir+set}" = set; then
1545 withval="$with_target_subdir"
1549 # Check whether --with-cross-host or --without-cross-host was given.
1550 if test "${with_cross_host+set}" = set; then
1551 withval="$with_cross_host"
1556 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1557 echo "configure:1558: checking whether to enable maintainer-specific portions of Makefiles" >&5
1558 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1559 if test "${enable_maintainer_mode+set}" = set; then
1560 enableval="$enable_maintainer_mode"
1561 USE_MAINTAINER_MODE=$enableval
1563 USE_MAINTAINER_MODE=no
1566 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1569 if test $USE_MAINTAINER_MODE = yes; then
1570 MAINTAINER_MODE_TRUE=
1571 MAINTAINER_MODE_FALSE='#'
1573 MAINTAINER_MODE_TRUE='#'
1574 MAINTAINER_MODE_FALSE=
1576 MAINT=$MAINTAINER_MODE_TRUE
1579 # automake wants to see AC_EXEEXT. But we don't need it. And having
1580 # it is actually a problem, because the compiler we're passed can't
1581 # necessarily do a full link. So we fool automake here.
1582 if test "x" = "y"; then
1585 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1586 echo "configure:1587: checking for executable suffix" >&5
1587 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1588 echo $ac_n "(cached) $ac_c" 1>&6
1590 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1594 echo 'int main () { return 0; }' > conftest.$ac_ext
1596 if { (eval echo configure:1597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1597 for file in conftest.*; do
1599 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1600 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1604 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1607 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1612 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1613 echo "$ac_t""${ac_cv_exeext}" 1>&6
1618 echo $ac_n "checking for threads package to use""... $ac_c" 1>&6
1619 echo "configure:1620: checking for threads package to use" >&5
1620 # Check whether --enable-threads or --disable-threads was given.
1621 if test "${enable_threads+set}" = set; then
1622 enableval="$enable_threads"
1629 if test "$THREADS" = yes; then
1635 # FIXME: this isn't correct in all cases.
1645 # FIXME: for now, choose POSIX, because we implement that.
1646 # Later, choose solaris threads.
1665 cat >> confdefs.h <<\EOF
1666 #define LINUX_THREADS 1
1669 cat >> confdefs.h <<\EOF
1670 #define _REENTRANT 1
1675 cat >> confdefs.h <<\EOF
1676 #define SOLARIS_THREADS 1
1679 cat >> confdefs.h <<\EOF
1680 #define _SOLARIS_PTHREADS 1
1687 cat >> confdefs.h <<\EOF
1688 #define QUICK_THREADS 1
1691 INCLUDES="-I${boehm_gc_basedir}/../qthreads"
1693 decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
1694 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
1697 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
1700 echo "$ac_t""$THREADS" 1>&6
1702 # Check whether --enable-java-gc or --disable-java-gc was given.
1703 if test "${enable_java_gc+set}" = set; then
1704 enableval="$enable_java_gc"
1712 if test "$GC" = "boehm"; then
1713 target_all=libgcjgc.a
1718 # Check whether --with-ecos or --without-ecos was given.
1719 if test "${with_ecos+set}" = set; then
1720 withval="$with_ecos"
1721 TARGET_ECOS="$with_ecos"
1728 case "$TARGET_ECOS" in
1732 cat >> confdefs.h <<\EOF
1736 CXXINCLUDES="-I${TARGET_ECOS}/include"
1737 addobjs="$addobjs ecos.o"
1748 machdep="mips_ultrix_mach_dep.o"
1749 cat >> confdefs.h <<\EOF
1750 #define STACKBASE __stackbase
1753 cat >> confdefs.h <<\EOF
1754 #define DATASTART_IS_ETEXT 1
1758 sparc-sun-solaris2.3*)
1759 machdep="sparc_mach_dep.o"
1760 cat >> confdefs.h <<\EOF
1761 #define SUNOS53_SHARED_LIB 1
1766 if test x"$machdep" = x; then
1767 machdep="mach_dep.o"
1769 addobjs="$addobjs $machdep"
1773 sparc-sun-solaris2*)
1774 if test "$GCC" = yes; then
1776 for i in $CFLAGS; do
1781 new_CFLAGS="$new_CFLAGS $i"
1785 CFLAGS="$new_CFLAGS"
1793 cat >> confdefs.h <<\EOF
1797 cat >> confdefs.h <<\EOF
1798 #define NO_SIGNALS 1
1801 cat >> confdefs.h <<\EOF
1802 #define NO_DEBUGGING 1
1805 cat >> confdefs.h <<\EOF
1806 #define JAVA_FINALIZATION 1
1812 if test -n "${with_cross_host}"; then
1813 cat >> confdefs.h <<\EOF
1817 cat >> confdefs.h <<\EOF
1821 cat >> confdefs.h <<\EOF
1822 #define SMALL_CONFIG 1
1827 if test "${multilib}" = "yes"; then
1828 multilib_arg="--enable-multilib"
1834 cat > confcache <<\EOF
1835 # This file is a shell script that caches the results of configure
1836 # tests run on this system so they can be shared between configure
1837 # scripts and configure runs. It is not useful on other systems.
1838 # If it contains results you don't want to keep, you may remove or edit it.
1840 # By default, configure uses ./config.cache as the cache file,
1841 # creating it if it does not exist already. You can give configure
1842 # the --cache-file=FILE option to use a different cache file; that is
1843 # what configure does when it calls configure scripts in
1844 # subdirectories, so they share the cache.
1845 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1846 # config.status only pays attention to the cache file if you give it the
1847 # --recheck option to rerun configure.
1850 # The following way of writing the cache mishandles newlines in values,
1851 # but we know of no workaround that is simple, portable, and efficient.
1852 # So, don't put newlines in cache variables' values.
1853 # Ultrix sh set writes to stderr and can't be redirected directly,
1854 # and sets the high bit in the cache file unless we assign to the vars.
1856 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1858 # `set' does not quote correctly, so add quotes (double-quote substitution
1859 # turns \\\\ into \\, and sed turns \\ into \).
1861 -e "s/'/'\\\\''/g" \
1862 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1865 # `set' quotes correctly as required by POSIX, so do not add quotes.
1866 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1869 if cmp -s $cache_file confcache; then
1872 if test -w $cache_file; then
1873 echo "updating cache $cache_file"
1874 cat confcache > $cache_file
1876 echo "not updating unwritable cache $cache_file"
1881 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1883 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1884 # Let make expand exec_prefix.
1885 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1887 # Any assignment to VPATH causes Sun make to only execute
1888 # the first set of double-colon rules, so remove it if not needed.
1889 # If there is a colon in the path, we need to keep it.
1890 if test "x$srcdir" = x.; then
1891 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1894 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1896 # Transform confdefs.h into DEFS.
1897 # Protect against shell expansion while executing Makefile rules.
1898 # Protect against Makefile macro expansion.
1899 cat > conftest.defs <<\EOF
1900 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1901 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1906 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1910 # Without the "./", some shells look in PATH for config.status.
1911 : ${CONFIG_STATUS=./config.status}
1913 echo creating $CONFIG_STATUS
1914 rm -f $CONFIG_STATUS
1915 cat > $CONFIG_STATUS <<EOF
1917 # Generated automatically by configure.
1918 # Run this file to recreate the current configuration.
1919 # This directory was configured as follows,
1920 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1922 # $0 $ac_configure_args
1924 # Compiler output produced by configure, useful for debugging
1925 # configure, is in ./config.log if it exists.
1927 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1930 case "\$ac_option" in
1931 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1932 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1933 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1934 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1935 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1937 -help | --help | --hel | --he | --h)
1938 echo "\$ac_cs_usage"; exit 0 ;;
1939 *) echo "\$ac_cs_usage"; exit 1 ;;
1943 ac_given_srcdir=$srcdir
1944 ac_given_INSTALL="$INSTALL"
1946 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1948 cat >> $CONFIG_STATUS <<EOF
1950 # Protect against being on the right side of a sed subst in config.status.
1951 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1952 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1956 s%@CFLAGS@%$CFLAGS%g
1957 s%@CPPFLAGS@%$CPPFLAGS%g
1958 s%@CXXFLAGS@%$CXXFLAGS%g
1959 s%@FFLAGS@%$FFLAGS%g
1961 s%@LDFLAGS@%$LDFLAGS%g
1963 s%@exec_prefix@%$exec_prefix%g
1964 s%@prefix@%$prefix%g
1965 s%@program_transform_name@%$program_transform_name%g
1966 s%@bindir@%$bindir%g
1967 s%@sbindir@%$sbindir%g
1968 s%@libexecdir@%$libexecdir%g
1969 s%@datadir@%$datadir%g
1970 s%@sysconfdir@%$sysconfdir%g
1971 s%@sharedstatedir@%$sharedstatedir%g
1972 s%@localstatedir@%$localstatedir%g
1973 s%@libdir@%$libdir%g
1974 s%@includedir@%$includedir%g
1975 s%@oldincludedir@%$oldincludedir%g
1976 s%@infodir@%$infodir%g
1977 s%@mandir@%$mandir%g
1979 s%@host_alias@%$host_alias%g
1980 s%@host_cpu@%$host_cpu%g
1981 s%@host_vendor@%$host_vendor%g
1982 s%@host_os@%$host_os%g
1983 s%@target@%$target%g
1984 s%@target_alias@%$target_alias%g
1985 s%@target_cpu@%$target_cpu%g
1986 s%@target_vendor@%$target_vendor%g
1987 s%@target_os@%$target_os%g
1989 s%@build_alias@%$build_alias%g
1990 s%@build_cpu@%$build_cpu%g
1991 s%@build_vendor@%$build_vendor%g
1992 s%@build_os@%$build_os%g
1993 s%@boehm_gc_basedir@%$boehm_gc_basedir%g
1994 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1995 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1996 s%@INSTALL_DATA@%$INSTALL_DATA%g
1997 s%@PACKAGE@%$PACKAGE%g
1998 s%@VERSION@%$VERSION%g
1999 s%@ACLOCAL@%$ACLOCAL%g
2000 s%@AUTOCONF@%$AUTOCONF%g
2001 s%@AUTOMAKE@%$AUTOMAKE%g
2002 s%@AUTOHEADER@%$AUTOHEADER%g
2003 s%@MAKEINFO@%$MAKEINFO%g
2004 s%@SET_MAKE@%$SET_MAKE%g
2009 s%@RANLIB@%$RANLIB%g
2010 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
2011 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
2013 s%@EXEEXT@%$EXEEXT%g
2014 s%@BOEHM_GC_CFLAGS@%$BOEHM_GC_CFLAGS%g
2015 s%@target_all@%$target_all%g
2016 s%@INCLUDES@%$INCLUDES%g
2017 s%@CXXINCLUDES@%$CXXINCLUDES%g
2018 s%@addobjs@%$addobjs%g
2019 s%@MY_CFLAGS@%$MY_CFLAGS%g
2024 cat >> $CONFIG_STATUS <<\EOF
2026 # Split the substitutions into bite-sized pieces for seds with
2027 # small command number limits, like on Digital OSF/1 and HP-UX.
2028 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2029 ac_file=1 # Number of current file.
2030 ac_beg=1 # First line for current file.
2031 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2034 while $ac_more_lines; do
2035 if test $ac_beg -gt 1; then
2036 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2038 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2040 if test ! -s conftest.s$ac_file; then
2042 rm -f conftest.s$ac_file
2044 if test -z "$ac_sed_cmds"; then
2045 ac_sed_cmds="sed -f conftest.s$ac_file"
2047 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2049 ac_file=`expr $ac_file + 1`
2051 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2054 if test -z "$ac_sed_cmds"; then
2059 cat >> $CONFIG_STATUS <<EOF
2061 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2063 cat >> $CONFIG_STATUS <<\EOF
2064 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2065 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2067 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2068 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2069 *) ac_file_in="${ac_file}.in" ;;
2072 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2074 # Remove last slash and all that follows it. Not all systems have dirname.
2075 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2076 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2077 # The file is in a subdirectory.
2078 test ! -d "$ac_dir" && mkdir "$ac_dir"
2079 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2080 # A "../" for each directory in $ac_dir_suffix.
2081 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2083 ac_dir_suffix= ac_dots=
2086 case "$ac_given_srcdir" in
2088 if test -z "$ac_dots"; then top_srcdir=.
2089 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2090 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2092 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2093 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2096 case "$ac_given_INSTALL" in
2097 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2098 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2101 echo creating "$ac_file"
2103 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2105 *Makefile*) ac_comsub="1i\\
2106 # $configure_input" ;;
2110 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2112 s%@configure_input@%$configure_input%g
2113 s%@srcdir@%$srcdir%g
2114 s%@top_srcdir@%$top_srcdir%g
2115 s%@INSTALL@%$INSTALL%g
2116 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2122 cat >> $CONFIG_STATUS <<EOF
2123 ac_sources="config.h"
2124 ac_dests="boehm-config.h"
2127 cat >> $CONFIG_STATUS <<\EOF
2128 srcdir=$ac_given_srcdir
2129 while test -n "$ac_sources"; do
2130 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
2131 set $ac_sources; ac_source=$1; shift; ac_sources=$*
2133 echo "linking $srcdir/$ac_source to $ac_dest"
2135 if test ! -r $srcdir/$ac_source; then
2136 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
2140 # Make relative symlinks.
2141 # Remove last slash and all that follows it. Not all systems have dirname.
2142 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
2143 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
2144 # The dest file is in a subdirectory.
2145 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
2146 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
2147 # A "../" for each directory in $ac_dest_dir_suffix.
2148 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
2150 ac_dest_dir_suffix= ac_dots=
2154 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
2155 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
2158 # Make a symlink if possible; otherwise try a hard link.
2159 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
2160 ln $srcdir/$ac_source $ac_dest; then :
2162 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
2166 cat >> $CONFIG_STATUS <<EOF
2170 with_multisubdir=${with_multisubdir}
2171 ac_configure_args="${multilib_arg} ${ac_configure_args}"
2172 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
2173 boehm_gc_basedir=${boehm_gc_basedir}
2178 cat >> $CONFIG_STATUS <<\EOF
2180 echo "$DEFS" > boehm-cflags
2182 if test -n "$CONFIG_FILES"; then
2183 ac_file=Makefile . ${boehm_gc_basedir}/../config-ml.in
2187 chmod +x $CONFIG_STATUS
2188 rm -fr confdefs* $ac_clean_files
2189 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1