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 --with-target-subdir=SUBDIR Configuring in a subdirectory"
17 --with-cross-host=HOST Configuring with a cross compiler"
19 --enable-multilib build many library versions (default)"
21 --enable-maintainer-mode enable make rules and dependencies not useful
22 (and sometimes confusing) to the casual installer"
24 --enable-fast-character Prefer speed over size for Character"
26 --enable-libgcj-debug Enable runtime debugging code"
28 --with-ecos Enable runtime eCos target support."
30 --enable-java-gc=TYPE choose garbage collector [boehm]"
32 --enable-threads=TYPE choose threading package"
34 # Initialize some variables set by options.
35 # The variables have the same names as the options, with
36 # dashes changed to underlines.
38 cache_file=./config.cache
47 program_transform_name=s,x,x,
55 bindir='${exec_prefix}/bin'
56 sbindir='${exec_prefix}/sbin'
57 libexecdir='${exec_prefix}/libexec'
58 datadir='${prefix}/share'
59 sysconfdir='${prefix}/etc'
60 sharedstatedir='${prefix}/com'
61 localstatedir='${prefix}/var'
62 libdir='${exec_prefix}/lib'
63 includedir='${prefix}/include'
64 oldincludedir='/usr/include'
65 infodir='${prefix}/info'
66 mandir='${prefix}/man'
68 # Initialize some other variables.
71 SHELL=${CONFIG_SHELL-/bin/sh}
72 # Maximum number of lines to put in a shell here document.
79 # If the previous option needs an argument, assign it.
80 if test -n "$ac_prev"; then
81 eval "$ac_prev=\$ac_option"
87 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
91 # Accept the important Cygnus configure options, so we can diagnose typos.
95 -bindir | --bindir | --bindi | --bind | --bin | --bi)
97 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
98 bindir="$ac_optarg" ;;
100 -build | --build | --buil | --bui | --bu)
102 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
103 build="$ac_optarg" ;;
105 -cache-file | --cache-file | --cache-fil | --cache-fi \
106 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
107 ac_prev=cache_file ;;
108 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
109 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
110 cache_file="$ac_optarg" ;;
112 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
114 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
116 datadir="$ac_optarg" ;;
118 -disable-* | --disable-*)
119 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
120 # Reject names that are not valid shell variable names.
121 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
122 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
124 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
125 eval "enable_${ac_feature}=no" ;;
127 -enable-* | --enable-*)
128 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
129 # Reject names that are not valid shell variable names.
130 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
131 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
133 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
138 eval "enable_${ac_feature}='$ac_optarg'" ;;
140 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
141 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
142 | --exec | --exe | --ex)
143 ac_prev=exec_prefix ;;
144 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
145 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
146 | --exec=* | --exe=* | --ex=*)
147 exec_prefix="$ac_optarg" ;;
149 -gas | --gas | --ga | --g)
150 # Obsolete; use --with-gas.
153 -help | --help | --hel | --he)
154 # Omit some internal or obsolete options to make the list less imposing.
155 # This message is too long to be a string in the A/UX 3.1 sh.
157 Usage: configure [options] [host]
158 Options: [defaults in brackets after descriptions]
160 --cache-file=FILE cache test results in FILE
161 --help print this message
162 --no-create do not create output files
163 --quiet, --silent do not print \`checking...' messages
164 --version print the version of autoconf that created configure
165 Directory and file names:
166 --prefix=PREFIX install architecture-independent files in PREFIX
168 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
170 --bindir=DIR user executables in DIR [EPREFIX/bin]
171 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
172 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
173 --datadir=DIR read-only architecture-independent data in DIR
175 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
176 --sharedstatedir=DIR modifiable architecture-independent data in DIR
178 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
179 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
180 --includedir=DIR C header files in DIR [PREFIX/include]
181 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
182 --infodir=DIR info documentation in DIR [PREFIX/info]
183 --mandir=DIR man documentation in DIR [PREFIX/man]
184 --srcdir=DIR find the sources in DIR [configure dir or ..]
185 --program-prefix=PREFIX prepend PREFIX to installed program names
186 --program-suffix=SUFFIX append SUFFIX to installed program names
187 --program-transform-name=PROGRAM
188 run sed PROGRAM on installed program names
192 --build=BUILD configure for building on BUILD [BUILD=HOST]
193 --host=HOST configure for HOST [guessed]
194 --target=TARGET configure for TARGET [TARGET=HOST]
195 Features and packages:
196 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
197 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
198 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
199 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
200 --x-includes=DIR X include files are in DIR
201 --x-libraries=DIR X library files are in DIR
203 if test -n "$ac_help"; then
204 echo "--enable and --with options recognized:$ac_help"
208 -host | --host | --hos | --ho)
210 -host=* | --host=* | --hos=* | --ho=*)
213 -includedir | --includedir | --includedi | --included | --include \
214 | --includ | --inclu | --incl | --inc)
215 ac_prev=includedir ;;
216 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
217 | --includ=* | --inclu=* | --incl=* | --inc=*)
218 includedir="$ac_optarg" ;;
220 -infodir | --infodir | --infodi | --infod | --info | --inf)
222 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
223 infodir="$ac_optarg" ;;
225 -libdir | --libdir | --libdi | --libd)
227 -libdir=* | --libdir=* | --libdi=* | --libd=*)
228 libdir="$ac_optarg" ;;
230 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
231 | --libexe | --libex | --libe)
232 ac_prev=libexecdir ;;
233 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
234 | --libexe=* | --libex=* | --libe=*)
235 libexecdir="$ac_optarg" ;;
237 -localstatedir | --localstatedir | --localstatedi | --localstated \
238 | --localstate | --localstat | --localsta | --localst \
239 | --locals | --local | --loca | --loc | --lo)
240 ac_prev=localstatedir ;;
241 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
242 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
243 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
244 localstatedir="$ac_optarg" ;;
246 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
248 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
249 mandir="$ac_optarg" ;;
252 # Obsolete; use --without-fp.
255 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
259 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
260 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
263 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
264 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
265 | --oldin | --oldi | --old | --ol | --o)
266 ac_prev=oldincludedir ;;
267 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
268 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
269 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
270 oldincludedir="$ac_optarg" ;;
272 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
274 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
275 prefix="$ac_optarg" ;;
277 -program-prefix | --program-prefix | --program-prefi | --program-pref \
278 | --program-pre | --program-pr | --program-p)
279 ac_prev=program_prefix ;;
280 -program-prefix=* | --program-prefix=* | --program-prefi=* \
281 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
282 program_prefix="$ac_optarg" ;;
284 -program-suffix | --program-suffix | --program-suffi | --program-suff \
285 | --program-suf | --program-su | --program-s)
286 ac_prev=program_suffix ;;
287 -program-suffix=* | --program-suffix=* | --program-suffi=* \
288 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
289 program_suffix="$ac_optarg" ;;
291 -program-transform-name | --program-transform-name \
292 | --program-transform-nam | --program-transform-na \
293 | --program-transform-n | --program-transform- \
294 | --program-transform | --program-transfor \
295 | --program-transfo | --program-transf \
296 | --program-trans | --program-tran \
297 | --progr-tra | --program-tr | --program-t)
298 ac_prev=program_transform_name ;;
299 -program-transform-name=* | --program-transform-name=* \
300 | --program-transform-nam=* | --program-transform-na=* \
301 | --program-transform-n=* | --program-transform-=* \
302 | --program-transform=* | --program-transfor=* \
303 | --program-transfo=* | --program-transf=* \
304 | --program-trans=* | --program-tran=* \
305 | --progr-tra=* | --program-tr=* | --program-t=*)
306 program_transform_name="$ac_optarg" ;;
308 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
309 | -silent | --silent | --silen | --sile | --sil)
312 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
314 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
316 sbindir="$ac_optarg" ;;
318 -sharedstatedir | --sharedstatedir | --sharedstatedi \
319 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
320 | --sharedst | --shareds | --shared | --share | --shar \
322 ac_prev=sharedstatedir ;;
323 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
324 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
325 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
327 sharedstatedir="$ac_optarg" ;;
329 -site | --site | --sit)
331 -site=* | --site=* | --sit=*)
334 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
336 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
337 srcdir="$ac_optarg" ;;
339 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
340 | --syscon | --sysco | --sysc | --sys | --sy)
341 ac_prev=sysconfdir ;;
342 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
343 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
344 sysconfdir="$ac_optarg" ;;
346 -target | --target | --targe | --targ | --tar | --ta | --t)
348 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
349 target="$ac_optarg" ;;
351 -v | -verbose | --verbose | --verbos | --verbo | --verb)
354 -version | --version | --versio | --versi | --vers)
355 echo "configure generated by autoconf version 2.13"
359 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
360 # Reject names that are not valid shell variable names.
361 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
362 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
364 ac_package=`echo $ac_package| sed 's/-/_/g'`
369 eval "with_${ac_package}='$ac_optarg'" ;;
371 -without-* | --without-*)
372 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
373 # Reject names that are not valid shell variable names.
374 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
375 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
377 ac_package=`echo $ac_package| sed 's/-/_/g'`
378 eval "with_${ac_package}=no" ;;
381 # Obsolete; use --with-x.
384 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
385 | --x-incl | --x-inc | --x-in | --x-i)
386 ac_prev=x_includes ;;
387 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
388 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
389 x_includes="$ac_optarg" ;;
391 -x-libraries | --x-libraries | --x-librarie | --x-librari \
392 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
393 ac_prev=x_libraries ;;
394 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
395 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
396 x_libraries="$ac_optarg" ;;
398 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
402 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
403 echo "configure: warning: $ac_option: invalid host type" 1>&2
405 if test "x$nonopt" != xNONE; then
406 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
414 if test -n "$ac_prev"; then
415 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
418 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
420 # File descriptor usage:
423 # 2 errors and warnings
424 # 3 some systems may open it to /dev/tty
425 # 4 used on the Kubota Titan
426 # 6 checking for... messages and results
427 # 5 compiler messages saved in config.log
428 if test "$silent" = yes; then
436 This file contains any messages produced by compilers while
437 running configure, to aid debugging if configure makes a mistake.
440 # Strip out --no-create and --no-recursion so they do not pile up.
441 # Also quote any args containing shell metacharacters.
446 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
447 | --no-cr | --no-c) ;;
448 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
449 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
450 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
451 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
452 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
457 # Only set these to C if already set. These must not be set unconditionally
458 # because not all systems understand e.g. LANG=C (notably SCO).
459 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
460 # Non-C LC_CTYPE values break the ctype check.
461 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
462 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
463 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
464 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
466 # confdefs.h avoids OS command line length limits that DEFS can exceed.
467 rm -rf conftest* confdefs.h
468 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
471 # A filename unique to this package, relative to the directory that
472 # configure is in, which we can look for to find out if srcdir is correct.
473 ac_unique_file=java/lang/System.java
475 # Find the source files, if location was not specified.
476 if test -z "$srcdir"; then
477 ac_srcdir_defaulted=yes
478 # Try the directory containing this script, then its parent.
480 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
481 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
483 if test ! -r $srcdir/$ac_unique_file; then
487 ac_srcdir_defaulted=no
489 if test ! -r $srcdir/$ac_unique_file; then
490 if test "$ac_srcdir_defaulted" = yes; then
491 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
493 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
496 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
498 # Prefer explicitly selected file to automatically selected ones.
499 if test -z "$CONFIG_SITE"; then
500 if test "x$prefix" != xNONE; then
501 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
503 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
506 for ac_site_file in $CONFIG_SITE; do
507 if test -r "$ac_site_file"; then
508 echo "loading site script $ac_site_file"
513 if test -r "$cache_file"; then
514 echo "loading cache $cache_file"
517 echo "creating cache $cache_file"
522 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
523 ac_cpp='$CPP $CPPFLAGS'
524 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
525 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
526 cross_compiling=$ac_cv_prog_cc_cross
530 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
531 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
532 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
539 ac_n= ac_c='\c' ac_t=
545 for ac_dir in .. $srcdir/..; do
546 if test -f $ac_dir/install-sh; then
548 ac_install_sh="$ac_aux_dir/install-sh -c"
550 elif test -f $ac_dir/install.sh; then
552 ac_install_sh="$ac_aux_dir/install.sh -c"
556 if test -z "$ac_aux_dir"; then
557 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
559 ac_config_guess=$ac_aux_dir/config.guess
560 ac_config_sub=$ac_aux_dir/config.sub
561 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
565 # Do some error checking and defaulting for the host and target type.
567 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
570 # 1. You are not allowed to specify --host, --target, and nonopt at the
572 # 2. Host defaults to nonopt.
573 # 3. If nonopt is not specified, then host defaults to the current host,
574 # as determined by config.guess.
575 # 4. Target and build default to nonopt.
576 # 5. If nonopt is not specified, then target and build default to host.
578 # The aliases save the names the user supplied, while $host etc.
579 # will get canonicalized.
580 case $host---$target---$nonopt in
581 NONE---*---* | *---NONE---* | *---*---NONE) ;;
582 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
586 # Make sure we can run config.sub.
587 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
588 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
591 echo $ac_n "checking host system type""... $ac_c" 1>&6
592 echo "configure:593: checking host system type" >&5
595 case "$host_alias" in
599 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
600 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
602 *) host_alias=$nonopt ;;
606 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
607 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
608 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
609 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
610 echo "$ac_t""$host" 1>&6
612 echo $ac_n "checking target system type""... $ac_c" 1>&6
613 echo "configure:614: checking target system type" >&5
616 case "$target_alias" in
619 NONE) target_alias=$host_alias ;;
620 *) target_alias=$nonopt ;;
624 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
625 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
626 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
627 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
628 echo "$ac_t""$target" 1>&6
630 echo $ac_n "checking build system type""... $ac_c" 1>&6
631 echo "configure:632: checking build system type" >&5
634 case "$build_alias" in
637 NONE) build_alias=$host_alias ;;
638 *) build_alias=$nonopt ;;
642 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
643 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
644 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
645 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
646 echo "$ac_t""$build" 1>&6
648 test "$host_alias" != "$target_alias" &&
649 test "$program_prefix$program_suffix$program_transform_name" = \
651 program_prefix=${target_alias}-
654 # Check whether --with-target-subdir or --without-target-subdir was given.
655 if test "${with_target_subdir+set}" = set; then
656 withval="$with_target_subdir"
660 # Check whether --with-cross-host or --without-cross-host was given.
661 if test "${with_cross_host+set}" = set; then
662 withval="$with_cross_host"
667 # Find a good install program. We prefer a C program (faster),
668 # so one script is as good as another. But avoid the broken or
669 # incompatible versions:
670 # SysV /etc/install, /usr/sbin/install
671 # SunOS /usr/etc/install
674 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
675 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
676 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
677 # ./install, which can be erroneously created by make from ./install.sh.
678 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
679 echo "configure:680: checking for a BSD compatible install" >&5
680 if test -z "$INSTALL"; then
681 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
682 echo $ac_n "(cached) $ac_c" 1>&6
684 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
685 for ac_dir in $PATH; do
686 # Account for people who put trailing slashes in PATH elements.
688 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
690 # OSF1 and SCO ODT 3.0 have their own names for install.
691 # Don't use installbsd from OSF since it installs stuff as root
693 for ac_prog in ginstall scoinst install; do
694 if test -f $ac_dir/$ac_prog; then
695 if test $ac_prog = install &&
696 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
697 # AIX install. It has an incompatible calling convention.
700 ac_cv_path_install="$ac_dir/$ac_prog -c"
711 if test "${ac_cv_path_install+set}" = set; then
712 INSTALL="$ac_cv_path_install"
714 # As a last resort, use the slow shell script. We don't cache a
715 # path for INSTALL within a source directory, because that will
716 # break other packages using the cache if that directory is
717 # removed, or if the path is relative.
718 INSTALL="$ac_install_sh"
721 echo "$ac_t""$INSTALL" 1>&6
723 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
724 # It thinks the first close brace ends the variable substitution.
725 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
727 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
729 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
731 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
732 echo "configure:733: checking whether build environment is sane" >&5
735 echo timestamp > conftestfile
736 # Do `set' in a subshell so we don't clobber the current shell's
737 # arguments. Must try -L first in case configure is actually a
738 # symlink; some systems play weird games with the mod time of symlinks
739 # (eg FreeBSD returns the mod time of the symlink's containing
742 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
743 if test "$*" = "X"; then
745 set X `ls -t $srcdir/configure conftestfile`
747 if test "$*" != "X $srcdir/configure conftestfile" \
748 && test "$*" != "X conftestfile $srcdir/configure"; then
750 # If neither matched, then we have a broken ls. This can happen
751 # if, for instance, CONFIG_SHELL is bash and it inherits a
752 # broken ls alias from the environment. This has actually
753 # happened. Such a system could not be considered "sane".
754 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
755 alias in your environment" 1>&2; exit 1; }
758 test "$2" = conftestfile
764 { echo "configure: error: newly created file is older than distributed files!
765 Check your system clock" 1>&2; exit 1; }
768 echo "$ac_t""yes" 1>&6
769 if test "$program_transform_name" = s,x,x,; then
770 program_transform_name=
772 # Double any \ or $. echo might interpret backslashes.
773 cat <<\EOF_SED > conftestsed
774 s,\\,\\\\,g; s,\$,$$,g
776 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
779 test "$program_prefix" != NONE &&
780 program_transform_name="s,^,${program_prefix},; $program_transform_name"
781 # Use a double $ so make ignores it.
782 test "$program_suffix" != NONE &&
783 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
785 # sed with no file args requires a program.
786 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
788 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
789 echo "configure:790: checking whether ${MAKE-make} sets \${MAKE}" >&5
790 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
791 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
792 echo $ac_n "(cached) $ac_c" 1>&6
794 cat > conftestmake <<\EOF
796 @echo 'ac_maketemp="${MAKE}"'
798 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
799 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
800 if test -n "$ac_maketemp"; then
801 eval ac_cv_prog_make_${ac_make}_set=yes
803 eval ac_cv_prog_make_${ac_make}_set=no
807 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
808 echo "$ac_t""yes" 1>&6
811 echo "$ac_t""no" 1>&6
812 SET_MAKE="MAKE=${MAKE-make}"
815 if test $host != $build; then
816 ac_tool_prefix=${host_alias}-
821 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
822 echo "configure:823: checking for Cygwin environment" >&5
823 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
824 echo $ac_n "(cached) $ac_c" 1>&6
826 cat > conftest.$ac_ext <<EOF
827 #line 828 "configure"
828 #include "confdefs.h"
833 #define __CYGWIN__ __CYGWIN32__
838 if { (eval echo configure:839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
842 echo "configure: failed program was:" >&5
843 cat conftest.$ac_ext >&5
851 echo "$ac_t""$ac_cv_cygwin" 1>&6
853 test "$ac_cv_cygwin" = yes && CYGWIN=yes
854 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
855 echo "configure:856: checking for mingw32 environment" >&5
856 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
857 echo $ac_n "(cached) $ac_c" 1>&6
859 cat > conftest.$ac_ext <<EOF
860 #line 861 "configure"
861 #include "confdefs.h"
867 if { (eval echo configure:868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
871 echo "configure: failed program was:" >&5
872 cat conftest.$ac_ext >&5
880 echo "$ac_t""$ac_cv_mingw32" 1>&6
882 test "$ac_cv_mingw32" = yes && MINGW32=yes
884 # Check whether --enable-multilib or --disable-multilib was given.
885 if test "${enable_multilib+set}" = set; then
886 enableval="$enable_multilib"
887 case "${enableval}" in
890 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
897 if test "${srcdir}" = "."; then
898 if test "${with_target_subdir}" != "."; then
899 libgcj_basedir="${srcdir}/${with_multisrctop}../."
901 libgcj_basedir="${srcdir}/${with_multisrctop}."
904 libgcj_basedir="${srcdir}/."
909 # Make sure we can run config.sub.
910 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
911 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
914 echo $ac_n "checking host system type""... $ac_c" 1>&6
915 echo "configure:916: checking host system type" >&5
918 case "$host_alias" in
922 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
923 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
925 *) host_alias=$nonopt ;;
929 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
930 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
931 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
932 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
933 echo "$ac_t""$host" 1>&6
941 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
942 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
944 cat >> confdefs.h <<EOF
945 #define PACKAGE "$PACKAGE"
948 cat >> confdefs.h <<EOF
949 #define VERSION "$VERSION"
954 missing_dir=`cd $ac_aux_dir && pwd`
955 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
956 echo "configure:957: checking for working aclocal" >&5
957 # Run test in a subshell; some versions of sh will print an error if
958 # an executable is not found, even if stderr is redirected.
959 # Redirect stdin to placate older versions of autoconf. Sigh.
960 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
962 echo "$ac_t""found" 1>&6
964 ACLOCAL="$missing_dir/missing aclocal"
965 echo "$ac_t""missing" 1>&6
968 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
969 echo "configure:970: checking for working autoconf" >&5
970 # Run test in a subshell; some versions of sh will print an error if
971 # an executable is not found, even if stderr is redirected.
972 # Redirect stdin to placate older versions of autoconf. Sigh.
973 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
975 echo "$ac_t""found" 1>&6
977 AUTOCONF="$missing_dir/missing autoconf"
978 echo "$ac_t""missing" 1>&6
981 echo $ac_n "checking for working automake""... $ac_c" 1>&6
982 echo "configure:983: checking for working automake" >&5
983 # Run test in a subshell; some versions of sh will print an error if
984 # an executable is not found, even if stderr is redirected.
985 # Redirect stdin to placate older versions of autoconf. Sigh.
986 if (automake --version) < /dev/null > /dev/null 2>&1; then
988 echo "$ac_t""found" 1>&6
990 AUTOMAKE="$missing_dir/missing automake"
991 echo "$ac_t""missing" 1>&6
994 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
995 echo "configure:996: checking for working autoheader" >&5
996 # Run test in a subshell; some versions of sh will print an error if
997 # an executable is not found, even if stderr is redirected.
998 # Redirect stdin to placate older versions of autoconf. Sigh.
999 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1000 AUTOHEADER=autoheader
1001 echo "$ac_t""found" 1>&6
1003 AUTOHEADER="$missing_dir/missing autoheader"
1004 echo "$ac_t""missing" 1>&6
1007 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1008 echo "configure:1009: checking for working makeinfo" >&5
1009 # Run test in a subshell; some versions of sh will print an error if
1010 # an executable is not found, even if stderr is redirected.
1011 # Redirect stdin to placate older versions of autoconf. Sigh.
1012 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1014 echo "$ac_t""found" 1>&6
1016 MAKEINFO="$missing_dir/missing makeinfo"
1017 echo "$ac_t""missing" 1>&6
1022 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
1023 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1024 # are probably using a cross compiler, which will not be able to fully
1025 # link an executable. This should really be fixed in autoconf
1030 # Extract the first word of "gcc", so it can be a program name with args.
1031 set dummy gcc; ac_word=$2
1032 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1033 echo "configure:1034: checking for $ac_word" >&5
1034 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1035 echo $ac_n "(cached) $ac_c" 1>&6
1037 if test -n "$CC"; then
1038 ac_cv_prog_CC="$CC" # Let the user override the test.
1040 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1042 for ac_dir in $ac_dummy; do
1043 test -z "$ac_dir" && ac_dir=.
1044 if test -f $ac_dir/$ac_word; then
1053 if test -n "$CC"; then
1054 echo "$ac_t""$CC" 1>&6
1056 echo "$ac_t""no" 1>&6
1059 if test -z "$CC"; then
1060 # Extract the first word of "cc", so it can be a program name with args.
1061 set dummy cc; ac_word=$2
1062 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1063 echo "configure:1064: checking for $ac_word" >&5
1064 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1065 echo $ac_n "(cached) $ac_c" 1>&6
1067 if test -n "$CC"; then
1068 ac_cv_prog_CC="$CC" # Let the user override the test.
1070 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1073 for ac_dir in $ac_dummy; do
1074 test -z "$ac_dir" && ac_dir=.
1075 if test -f $ac_dir/$ac_word; then
1076 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1077 ac_prog_rejected=yes
1085 if test $ac_prog_rejected = yes; then
1086 # We found a bogon in the path, so make sure we never use it.
1087 set dummy $ac_cv_prog_CC
1089 if test $# -gt 0; then
1090 # We chose a different compiler from the bogus one.
1091 # However, it has the same basename, so the bogon will be chosen
1092 # first if we set CC to just the basename; use the full file name.
1094 set dummy "$ac_dir/$ac_word" "$@"
1102 if test -n "$CC"; then
1103 echo "$ac_t""$CC" 1>&6
1105 echo "$ac_t""no" 1>&6
1108 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1111 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1112 echo "configure:1113: checking whether we are using GNU C" >&5
1113 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1114 echo $ac_n "(cached) $ac_c" 1>&6
1116 cat > conftest.c <<EOF
1121 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1122: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1128 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1130 if test $ac_cv_prog_gcc = yes; then
1132 ac_test_CFLAGS="${CFLAGS+set}"
1133 ac_save_CFLAGS="$CFLAGS"
1135 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1136 echo "configure:1137: checking whether ${CC-cc} accepts -g" >&5
1137 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1138 echo $ac_n "(cached) $ac_c" 1>&6
1140 echo 'void f(){}' > conftest.c
1141 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1150 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1151 if test "$ac_test_CFLAGS" = set; then
1152 CFLAGS="$ac_save_CFLAGS"
1153 elif test $ac_cv_prog_cc_g = yes; then
1160 test "${CFLAGS+set}" = set || CFLAGS="-g"
1164 # Likewise for AC_PROG_CXX.
1167 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1169 # Extract the first word of "$ac_prog", so it can be a program name with args.
1170 set dummy $ac_prog; ac_word=$2
1171 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1172 echo "configure:1173: checking for $ac_word" >&5
1173 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1174 echo $ac_n "(cached) $ac_c" 1>&6
1176 if test -n "$CXX"; then
1177 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1179 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1181 for ac_dir in $ac_dummy; do
1182 test -z "$ac_dir" && ac_dir=.
1183 if test -f $ac_dir/$ac_word; then
1184 ac_cv_prog_CXX="$ac_prog"
1191 CXX="$ac_cv_prog_CXX"
1192 if test -n "$CXX"; then
1193 echo "$ac_t""$CXX" 1>&6
1195 echo "$ac_t""no" 1>&6
1198 test -n "$CXX" && break
1200 test -n "$CXX" || CXX="gcc"
1202 test -z "$CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1204 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1205 echo "configure:1206: checking whether we are using GNU C++" >&5
1206 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1207 echo $ac_n "(cached) $ac_c" 1>&6
1209 cat > conftest.C <<EOF
1214 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1221 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1223 if test $ac_cv_prog_gxx = yes; then
1225 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1226 ac_save_CXXFLAGS="$CXXFLAGS"
1228 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1229 echo "configure:1230: checking whether ${CXX-g++} accepts -g" >&5
1230 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1231 echo $ac_n "(cached) $ac_c" 1>&6
1233 echo 'void f(){}' > conftest.cc
1234 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1235 ac_cv_prog_cxx_g=yes
1243 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1244 if test "$ac_test_CXXFLAGS" = set; then
1245 CXXFLAGS="$ac_save_CXXFLAGS"
1246 elif test $ac_cv_prog_cxx_g = yes; then
1253 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1257 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we dont
1258 # run it explicitly here, it will be run implicitly before
1259 # LIBGCJ_CONFIGURE, which doesn't work because that means that it will
1260 # be run before AC_CANONICAL_HOST.
1261 echo $ac_n "checking build system type""... $ac_c" 1>&6
1262 echo "configure:1263: checking build system type" >&5
1265 case "$build_alias" in
1268 NONE) build_alias=$host_alias ;;
1269 *) build_alias=$nonopt ;;
1273 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1274 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1275 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1276 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1277 echo "$ac_t""$build" 1>&6
1280 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1281 set dummy ${ac_tool_prefix}as; ac_word=$2
1282 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1283 echo "configure:1284: checking for $ac_word" >&5
1284 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1285 echo $ac_n "(cached) $ac_c" 1>&6
1287 if test -n "$AS"; then
1288 ac_cv_prog_AS="$AS" # Let the user override the test.
1290 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1292 for ac_dir in $ac_dummy; do
1293 test -z "$ac_dir" && ac_dir=.
1294 if test -f $ac_dir/$ac_word; then
1295 ac_cv_prog_AS="${ac_tool_prefix}as"
1300 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1304 if test -n "$AS"; then
1305 echo "$ac_t""$AS" 1>&6
1307 echo "$ac_t""no" 1>&6
1312 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1313 set dummy ${ac_tool_prefix}ar; ac_word=$2
1314 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1315 echo "configure:1316: checking for $ac_word" >&5
1316 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1317 echo $ac_n "(cached) $ac_c" 1>&6
1319 if test -n "$AR"; then
1320 ac_cv_prog_AR="$AR" # Let the user override the test.
1322 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1324 for ac_dir in $ac_dummy; do
1325 test -z "$ac_dir" && ac_dir=.
1326 if test -f $ac_dir/$ac_word; then
1327 ac_cv_prog_AR="${ac_tool_prefix}ar"
1332 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1336 if test -n "$AR"; then
1337 echo "$ac_t""$AR" 1>&6
1339 echo "$ac_t""no" 1>&6
1344 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1345 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1346 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1347 echo "configure:1348: checking for $ac_word" >&5
1348 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1349 echo $ac_n "(cached) $ac_c" 1>&6
1351 if test -n "$RANLIB"; then
1352 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1354 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1356 for ac_dir in $ac_dummy; do
1357 test -z "$ac_dir" && ac_dir=.
1358 if test -f $ac_dir/$ac_word; then
1359 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1366 RANLIB="$ac_cv_prog_RANLIB"
1367 if test -n "$RANLIB"; then
1368 echo "$ac_t""$RANLIB" 1>&6
1370 echo "$ac_t""no" 1>&6
1374 if test -z "$ac_cv_prog_RANLIB"; then
1375 if test -n "$ac_tool_prefix"; then
1376 # Extract the first word of "ranlib", so it can be a program name with args.
1377 set dummy ranlib; ac_word=$2
1378 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1379 echo "configure:1380: checking for $ac_word" >&5
1380 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1381 echo $ac_n "(cached) $ac_c" 1>&6
1383 if test -n "$RANLIB"; then
1384 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1386 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1388 for ac_dir in $ac_dummy; do
1389 test -z "$ac_dir" && ac_dir=.
1390 if test -f $ac_dir/$ac_word; then
1391 ac_cv_prog_RANLIB="ranlib"
1396 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1399 RANLIB="$ac_cv_prog_RANLIB"
1400 if test -n "$RANLIB"; then
1401 echo "$ac_t""$RANLIB" 1>&6
1403 echo "$ac_t""no" 1>&6
1412 # Find a good install program. We prefer a C program (faster),
1413 # so one script is as good as another. But avoid the broken or
1414 # incompatible versions:
1415 # SysV /etc/install, /usr/sbin/install
1416 # SunOS /usr/etc/install
1417 # IRIX /sbin/install
1419 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1420 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1421 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1422 # ./install, which can be erroneously created by make from ./install.sh.
1423 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1424 echo "configure:1425: checking for a BSD compatible install" >&5
1425 if test -z "$INSTALL"; then
1426 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1427 echo $ac_n "(cached) $ac_c" 1>&6
1429 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1430 for ac_dir in $PATH; do
1431 # Account for people who put trailing slashes in PATH elements.
1433 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1435 # OSF1 and SCO ODT 3.0 have their own names for install.
1436 # Don't use installbsd from OSF since it installs stuff as root
1438 for ac_prog in ginstall scoinst install; do
1439 if test -f $ac_dir/$ac_prog; then
1440 if test $ac_prog = install &&
1441 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1442 # AIX install. It has an incompatible calling convention.
1445 ac_cv_path_install="$ac_dir/$ac_prog -c"
1456 if test "${ac_cv_path_install+set}" = set; then
1457 INSTALL="$ac_cv_path_install"
1459 # As a last resort, use the slow shell script. We don't cache a
1460 # path for INSTALL within a source directory, because that will
1461 # break other packages using the cache if that directory is
1462 # removed, or if the path is relative.
1463 INSTALL="$ac_install_sh"
1466 echo "$ac_t""$INSTALL" 1>&6
1468 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1469 # It thinks the first close brace ends the variable substitution.
1470 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1472 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1474 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1477 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1478 echo "configure:1479: checking whether to enable maintainer-specific portions of Makefiles" >&5
1479 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1480 if test "${enable_maintainer_mode+set}" = set; then
1481 enableval="$enable_maintainer_mode"
1482 USE_MAINTAINER_MODE=$enableval
1484 USE_MAINTAINER_MODE=no
1487 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1490 if test $USE_MAINTAINER_MODE = yes; then
1491 MAINTAINER_MODE_TRUE=
1492 MAINTAINER_MODE_FALSE='#'
1494 MAINTAINER_MODE_TRUE='#'
1495 MAINTAINER_MODE_FALSE=
1497 MAINT=$MAINTAINER_MODE_TRUE
1501 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1502 # at least currently, we never actually build a program, so we never
1503 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1504 # fails, because we are probably configuring with a cross compiler
1505 # which cant create executables. So we include AC_EXEEXT to keep
1506 # automake happy, but we dont execute it, since we dont care about
1511 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1512 echo "configure:1513: checking for executable suffix" >&5
1513 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1514 echo $ac_n "(cached) $ac_c" 1>&6
1516 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1520 echo 'int main () { return 0; }' > conftest.$ac_ext
1522 if { (eval echo configure:1523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1523 for file in conftest.*; do
1525 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1526 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1530 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1533 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1538 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1539 echo "$ac_t""${ac_cv_exeext}" 1>&6
1544 # configure.host sets the following important variables
1545 # libgcj_cflags - host specific C compiler flags
1546 # libgcj_cxxflags - host specific C++ compiler flags
1547 # libgcj_javaflags - host specific Java compiler flags
1553 . ${libgcj_basedir}/configure.host
1555 case ${libgcj_basedir} in
1556 /* | A-Za-z:/\\*) libgcj_flagbasedir=${libgcj_basedir} ;;
1557 *) libgcj_flagbasedir='$(top_builddir)/'${libgcj_basedir} ;;
1560 LIBGCJ_CFLAGS="${libgcj_cflags}"
1561 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
1562 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
1572 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
1581 if test -d $srcdir/testsuite; then
1583 TESTSUBDIR_FALSE='#'
1589 # Check whether --enable-fast-character or --disable-fast-character was given.
1590 if test "${enable_fast_character+set}" = set; then
1591 enableval="$enable_fast_character"
1595 cat >> confdefs.h <<\EOF
1596 #define COMPACT_CHARACTER 1
1602 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
1603 if test "${enable_libgcj_debug+set}" = set; then
1604 enableval="$enable_libgcj_debug"
1605 if test "$enable_libgcj_debug" = yes; then
1606 cat >> confdefs.h <<\EOF
1615 # Check whether --with-ecos or --without-ecos was given.
1616 if test "${with_ecos+set}" = set; then
1617 withval="$with_ecos"
1618 TARGET_ECOS="$with_ecos"
1623 case "$TARGET_ECOS" in
1625 FILE_DESCRIPTOR=natFileDescriptorPosix.cc
1628 FILE_DESCRIPTOR=natFileDescriptorEcos.cc
1629 cat >> confdefs.h <<\EOF
1636 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1637 echo "configure:1638: checking how to run the C preprocessor" >&5
1638 # On Suns, sometimes $CPP names a directory.
1639 if test -n "$CPP" && test -d "$CPP"; then
1642 if test -z "$CPP"; then
1643 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1644 echo $ac_n "(cached) $ac_c" 1>&6
1646 # This must be in double quotes, not single quotes, because CPP may get
1647 # substituted into the Makefile and "${CC-cc}" will confuse make.
1649 # On the NeXT, cc -E runs the code through the compiler's parser,
1650 # not just through cpp.
1651 cat > conftest.$ac_ext <<EOF
1652 #line 1653 "configure"
1653 #include "confdefs.h"
1657 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1658 { (eval echo configure:1659: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1659 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1660 if test -z "$ac_err"; then
1664 echo "configure: failed program was:" >&5
1665 cat conftest.$ac_ext >&5
1667 CPP="${CC-cc} -E -traditional-cpp"
1668 cat > conftest.$ac_ext <<EOF
1669 #line 1670 "configure"
1670 #include "confdefs.h"
1674 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1675 { (eval echo configure:1676: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1676 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1677 if test -z "$ac_err"; then
1681 echo "configure: failed program was:" >&5
1682 cat conftest.$ac_ext >&5
1684 CPP="${CC-cc} -nologo -E"
1685 cat > conftest.$ac_ext <<EOF
1686 #line 1687 "configure"
1687 #include "confdefs.h"
1691 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1692 { (eval echo configure:1693: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1693 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1694 if test -z "$ac_err"; then
1698 echo "configure: failed program was:" >&5
1699 cat conftest.$ac_ext >&5
1708 ac_cv_prog_CPP="$CPP"
1710 CPP="$ac_cv_prog_CPP"
1712 ac_cv_prog_CPP="$CPP"
1714 echo "$ac_t""$CPP" 1>&6
1716 cat > conftest.$ac_ext <<EOF
1717 #line 1718 "configure"
1718 #include "confdefs.h"
1719 #include <sys/types.h>
1721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1722 egrep "__uint32_t" >/dev/null 2>&1; then
1724 cat >> confdefs.h <<\EOF
1725 #define HAVE_INT32_DEFINED 1
1731 cat > conftest.$ac_ext <<EOF
1732 #line 1733 "configure"
1733 #include "confdefs.h"
1734 #include <sys/config.h>
1736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1737 egrep "__uint32_t" >/dev/null 2>&1; then
1739 cat >> confdefs.h <<\EOF
1740 #define HAVE_INT32_DEFINED 1
1747 cat > conftest.$ac_ext <<EOF
1748 #line 1749 "configure"
1749 #include "confdefs.h"
1752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1753 egrep "mktime" >/dev/null 2>&1; then
1755 cat >> confdefs.h <<\EOF
1756 #define HAVE_MKTIME 1
1762 cat > conftest.$ac_ext <<EOF
1763 #line 1764 "configure"
1764 #include "confdefs.h"
1767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1768 egrep "localtime" >/dev/null 2>&1; then
1770 cat >> confdefs.h <<\EOF
1771 #define HAVE_LOCALTIME 1
1778 test -d java || mkdir java
1779 test -d java/io || mkdir java/io
1782 echo $ac_n "checking for garbage collector to use""... $ac_c" 1>&6
1783 echo "configure:1784: checking for garbage collector to use" >&5
1784 # Check whether --enable-java-gc or --disable-java-gc was given.
1785 if test "${enable_java_gc+set}" = set; then
1786 enableval="$enable_java_gc"
1799 echo "$ac_t""boehm" 1>&6
1800 GCLIBS='-L$(top_builddir)/../boehm-gc -lgcjgc'
1801 GCDEPS='$(top_builddir)/../boehm-gc/libgcjgc.a'
1802 GCINCS='-I$(top_srcdir)/../boehm-gc -I$(top_builddir)/../boehm-gc'
1803 GCINCS="$GCINCS `cat ../boehm-gc/boehm-cflags`"
1806 cat >> confdefs.h <<\EOF
1807 #define HAVE_BOEHM_GC 1
1812 echo "$ac_t""none" 1>&6
1817 { echo "configure: error: unrecognized collector \"$GC\"" 1>&2; exit 1; }
1827 echo $ac_n "checking for threads package to use""... $ac_c" 1>&6
1828 echo "configure:1829: checking for threads package to use" >&5
1829 # Check whether --enable-threads or --disable-threads was given.
1830 if test "${enable_threads+set}" = set; then
1831 enableval="$enable_threads"
1838 if test "$THREADS" = yes; then
1844 # FIXME: this isn't correct in all cases.
1854 # FIXME: for now, choose POSIX, because we implement that.
1855 # Later, choose solaris threads.
1873 cat >> confdefs.h <<\EOF
1874 #define LINUX_THREADS 1
1882 decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
1883 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
1886 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
1889 echo "$ac_t""$THREADS" 1>&6
1898 THREADLIBS=-lpthread
1899 THREADOBJS=posix-threads.o
1900 THREADH=posix-threads.h
1901 # MIT pthreads doesn't seem to have the mutexattr functions.
1902 # But for now we don't check for it. We just assume you aren't
1903 # using MIT pthreads.
1904 cat >> confdefs.h <<\EOF
1905 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
1911 THREADLIBS='-L$(top_builddir)/../qthreads -lgcjcoop'
1912 THREADOBJS=quick-threads.o
1913 THREADINCS='-I$(top_srcdir)/../qthreads'
1914 THREADH=quick-threads.h
1915 THREADDEPS='$(top_builddir)/../qthreads/libgcjcoop.a'
1919 THREADOBJS=no-threads.o
1920 THREADH=no-threads.h
1931 if test "$GCC" = yes; then
1942 # Find eh-common.h and support headers. If we're in the tree with
1943 # gcc, then look there. Otherwise look in compat-include. If all else
1944 # fails, just hope the user has set things up somehow.
1945 if test -r $srcdir/../gcc/eh-common.h; then
1946 EH_COMMON_INCLUDE='-I$(top_srcdir)/../gcc -I$(top_srcdir)/../include'
1948 if test -d $srcdir/../compat-include; then
1949 EH_COMMON_INCLUDE='-I$(top_srcdir)/../compat-include'
1955 if test -n "${with_cross_host}"; then
1956 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
1957 # may not work correctly, because the compiler may not be able to
1960 # We assume newlib. This lets us hard-code the functions we know
1962 cat >> confdefs.h <<\EOF
1963 #define HAVE_MEMMOVE 1
1966 cat >> confdefs.h <<\EOF
1967 #define HAVE_MEMCPY 1
1970 cat >> confdefs.h <<\EOF
1971 #define HAVE_STRERROR 1
1974 cat >> confdefs.h <<\EOF
1975 #define HAVE_CTIME_R 1
1978 cat >> confdefs.h <<\EOF
1979 #define HAVE_GMTIME_R 1
1982 cat >> confdefs.h <<\EOF
1983 #define HAVE_LOCALTIME_R 1
1986 cat >> confdefs.h <<\EOF
1987 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
1990 cat >> confdefs.h <<\EOF
1991 #define HAVE_ALLOCA 1
1995 # If Canadian cross, then don't pick up tools from the build
1997 if test "$build" != "$with_cross_host"; then
2002 # Some POSIX thread systems don't have pthread_mutexattr_settype.
2004 for ac_func in strerror ioctl select open fsync sleep
2006 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2007 echo "configure:2008: checking for $ac_func" >&5
2008 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2009 echo $ac_n "(cached) $ac_c" 1>&6
2011 cat > conftest.$ac_ext <<EOF
2012 #line 2013 "configure"
2013 #include "confdefs.h"
2014 /* System header to define __stub macros and hopefully few prototypes,
2015 which can conflict with char $ac_func(); below. */
2017 /* Override any gcc2 internal prototype to avoid an error. */
2018 /* We use char because int might match the return type of a gcc2
2019 builtin and then its argument prototype would still apply. */
2024 /* The GNU C library defines this for functions which it implements
2025 to always fail with ENOSYS. Some functions are actually named
2026 something starting with __ and the normal name is an alias. */
2027 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2035 if { (eval echo configure:2036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2037 eval "ac_cv_func_$ac_func=yes"
2039 echo "configure: failed program was:" >&5
2040 cat conftest.$ac_ext >&5
2042 eval "ac_cv_func_$ac_func=no"
2047 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2048 echo "$ac_t""yes" 1>&6
2049 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2050 cat >> confdefs.h <<EOF
2051 #define $ac_tr_func 1
2055 echo "$ac_t""no" 1>&6
2059 for ac_func in ctime_r ctime
2061 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2062 echo "configure:2063: checking for $ac_func" >&5
2063 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2064 echo $ac_n "(cached) $ac_c" 1>&6
2066 cat > conftest.$ac_ext <<EOF
2067 #line 2068 "configure"
2068 #include "confdefs.h"
2069 /* System header to define __stub macros and hopefully few prototypes,
2070 which can conflict with char $ac_func(); below. */
2072 /* Override any gcc2 internal prototype to avoid an error. */
2073 /* We use char because int might match the return type of a gcc2
2074 builtin and then its argument prototype would still apply. */
2079 /* The GNU C library defines this for functions which it implements
2080 to always fail with ENOSYS. Some functions are actually named
2081 something starting with __ and the normal name is an alias. */
2082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2090 if { (eval echo configure:2091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2092 eval "ac_cv_func_$ac_func=yes"
2094 echo "configure: failed program was:" >&5
2095 cat conftest.$ac_ext >&5
2097 eval "ac_cv_func_$ac_func=no"
2102 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2103 echo "$ac_t""yes" 1>&6
2104 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2105 cat >> confdefs.h <<EOF
2106 #define $ac_tr_func 1
2110 echo "$ac_t""no" 1>&6
2114 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r
2116 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2117 echo "configure:2118: checking for $ac_func" >&5
2118 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2119 echo $ac_n "(cached) $ac_c" 1>&6
2121 cat > conftest.$ac_ext <<EOF
2122 #line 2123 "configure"
2123 #include "confdefs.h"
2124 /* System header to define __stub macros and hopefully few prototypes,
2125 which can conflict with char $ac_func(); below. */
2127 /* Override any gcc2 internal prototype to avoid an error. */
2128 /* We use char because int might match the return type of a gcc2
2129 builtin and then its argument prototype would still apply. */
2134 /* The GNU C library defines this for functions which it implements
2135 to always fail with ENOSYS. Some functions are actually named
2136 something starting with __ and the normal name is an alias. */
2137 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2145 if { (eval echo configure:2146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2147 eval "ac_cv_func_$ac_func=yes"
2149 echo "configure: failed program was:" >&5
2150 cat conftest.$ac_ext >&5
2152 eval "ac_cv_func_$ac_func=no"
2157 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2158 echo "$ac_t""yes" 1>&6
2159 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2160 cat >> confdefs.h <<EOF
2161 #define $ac_tr_func 1
2165 echo "$ac_t""no" 1>&6
2169 for ac_func in access stat mkdir rename rmdir unlink realpath
2171 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2172 echo "configure:2173: checking for $ac_func" >&5
2173 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2174 echo $ac_n "(cached) $ac_c" 1>&6
2176 cat > conftest.$ac_ext <<EOF
2177 #line 2178 "configure"
2178 #include "confdefs.h"
2179 /* System header to define __stub macros and hopefully few prototypes,
2180 which can conflict with char $ac_func(); below. */
2182 /* Override any gcc2 internal prototype to avoid an error. */
2183 /* We use char because int might match the return type of a gcc2
2184 builtin and then its argument prototype would still apply. */
2189 /* The GNU C library defines this for functions which it implements
2190 to always fail with ENOSYS. Some functions are actually named
2191 something starting with __ and the normal name is an alias. */
2192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2200 if { (eval echo configure:2201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2202 eval "ac_cv_func_$ac_func=yes"
2204 echo "configure: failed program was:" >&5
2205 cat conftest.$ac_ext >&5
2207 eval "ac_cv_func_$ac_func=no"
2212 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2213 echo "$ac_t""yes" 1>&6
2214 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2215 cat >> confdefs.h <<EOF
2216 #define $ac_tr_func 1
2220 echo "$ac_t""no" 1>&6
2224 for ac_func in inet_aton inet_addr
2226 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2227 echo "configure:2228: checking for $ac_func" >&5
2228 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2229 echo $ac_n "(cached) $ac_c" 1>&6
2231 cat > conftest.$ac_ext <<EOF
2232 #line 2233 "configure"
2233 #include "confdefs.h"
2234 /* System header to define __stub macros and hopefully few prototypes,
2235 which can conflict with char $ac_func(); below. */
2237 /* Override any gcc2 internal prototype to avoid an error. */
2238 /* We use char because int might match the return type of a gcc2
2239 builtin and then its argument prototype would still apply. */
2244 /* The GNU C library defines this for functions which it implements
2245 to always fail with ENOSYS. Some functions are actually named
2246 something starting with __ and the normal name is an alias. */
2247 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2255 if { (eval echo configure:2256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2257 eval "ac_cv_func_$ac_func=yes"
2259 echo "configure: failed program was:" >&5
2260 cat conftest.$ac_ext >&5
2262 eval "ac_cv_func_$ac_func=no"
2267 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2268 echo "$ac_t""yes" 1>&6
2269 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2270 cat >> confdefs.h <<EOF
2271 #define $ac_tr_func 1
2275 echo "$ac_t""no" 1>&6
2279 for ac_func in inet_pton uname
2281 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2282 echo "configure:2283: checking for $ac_func" >&5
2283 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2284 echo $ac_n "(cached) $ac_c" 1>&6
2286 cat > conftest.$ac_ext <<EOF
2287 #line 2288 "configure"
2288 #include "confdefs.h"
2289 /* System header to define __stub macros and hopefully few prototypes,
2290 which can conflict with char $ac_func(); below. */
2292 /* Override any gcc2 internal prototype to avoid an error. */
2293 /* We use char because int might match the return type of a gcc2
2294 builtin and then its argument prototype would still apply. */
2299 /* The GNU C library defines this for functions which it implements
2300 to always fail with ENOSYS. Some functions are actually named
2301 something starting with __ and the normal name is an alias. */
2302 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2310 if { (eval echo configure:2311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2312 eval "ac_cv_func_$ac_func=yes"
2314 echo "configure: failed program was:" >&5
2315 cat conftest.$ac_ext >&5
2317 eval "ac_cv_func_$ac_func=no"
2322 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2323 echo "$ac_t""yes" 1>&6
2324 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2325 cat >> confdefs.h <<EOF
2326 #define $ac_tr_func 1
2330 echo "$ac_t""no" 1>&6
2335 for ac_func in gethostbyname_r
2337 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2338 echo "configure:2339: checking for $ac_func" >&5
2339 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2340 echo $ac_n "(cached) $ac_c" 1>&6
2342 cat > conftest.$ac_ext <<EOF
2343 #line 2344 "configure"
2344 #include "confdefs.h"
2345 /* System header to define __stub macros and hopefully few prototypes,
2346 which can conflict with char $ac_func(); below. */
2348 /* Override any gcc2 internal prototype to avoid an error. */
2349 /* We use char because int might match the return type of a gcc2
2350 builtin and then its argument prototype would still apply. */
2355 /* The GNU C library defines this for functions which it implements
2356 to always fail with ENOSYS. Some functions are actually named
2357 something starting with __ and the normal name is an alias. */
2358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2366 if { (eval echo configure:2367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2368 eval "ac_cv_func_$ac_func=yes"
2370 echo "configure: failed program was:" >&5
2371 cat conftest.$ac_ext >&5
2373 eval "ac_cv_func_$ac_func=no"
2378 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2379 echo "$ac_t""yes" 1>&6
2380 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2381 cat >> confdefs.h <<EOF
2382 #define $ac_tr_func 1
2385 cat >> confdefs.h <<\EOF
2386 #define HAVE_GETHOSTBYNAME_R 1
2389 # There are two different kinds of gethostbyname_r.
2390 # We look for the one that returns `int'.
2391 # Hopefully this check is robust enough.
2392 cat > conftest.$ac_ext <<EOF
2393 #line 2394 "configure"
2394 #include "confdefs.h"
2397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2398 egrep "int.*gethostbyname_r" >/dev/null 2>&1; then
2401 cat >> confdefs.h <<\EOF
2402 #define GETHOSTBYNAME_R_RETURNS_INT 1
2409 echo "$ac_t""no" 1>&6
2414 for ac_func in gethostbyaddr_r
2416 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2417 echo "configure:2418: checking for $ac_func" >&5
2418 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2419 echo $ac_n "(cached) $ac_c" 1>&6
2421 cat > conftest.$ac_ext <<EOF
2422 #line 2423 "configure"
2423 #include "confdefs.h"
2424 /* System header to define __stub macros and hopefully few prototypes,
2425 which can conflict with char $ac_func(); below. */
2427 /* Override any gcc2 internal prototype to avoid an error. */
2428 /* We use char because int might match the return type of a gcc2
2429 builtin and then its argument prototype would still apply. */
2434 /* The GNU C library defines this for functions which it implements
2435 to always fail with ENOSYS. Some functions are actually named
2436 something starting with __ and the normal name is an alias. */
2437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2445 if { (eval echo configure:2446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2447 eval "ac_cv_func_$ac_func=yes"
2449 echo "configure: failed program was:" >&5
2450 cat conftest.$ac_ext >&5
2452 eval "ac_cv_func_$ac_func=no"
2457 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2458 echo "$ac_t""yes" 1>&6
2459 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2460 cat >> confdefs.h <<EOF
2461 #define $ac_tr_func 1
2464 cat >> confdefs.h <<\EOF
2465 #define HAVE_GETHOSTBYADDR_R 1
2468 # There are two different kinds of gethostbyaddr_r.
2469 # We look for the one that returns `int'.
2470 # Hopefully this check is robust enough.
2471 cat > conftest.$ac_ext <<EOF
2472 #line 2473 "configure"
2473 #include "confdefs.h"
2476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2477 egrep "int.*gethostbyaddr_r" >/dev/null 2>&1; then
2480 cat >> confdefs.h <<\EOF
2481 #define GETHOSTBYADDR_R_RETURNS_INT 1
2488 echo "$ac_t""no" 1>&6
2493 for ac_func in gethostname
2495 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2496 echo "configure:2497: checking for $ac_func" >&5
2497 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2498 echo $ac_n "(cached) $ac_c" 1>&6
2500 cat > conftest.$ac_ext <<EOF
2501 #line 2502 "configure"
2502 #include "confdefs.h"
2503 /* System header to define __stub macros and hopefully few prototypes,
2504 which can conflict with char $ac_func(); below. */
2506 /* Override any gcc2 internal prototype to avoid an error. */
2507 /* We use char because int might match the return type of a gcc2
2508 builtin and then its argument prototype would still apply. */
2513 /* The GNU C library defines this for functions which it implements
2514 to always fail with ENOSYS. Some functions are actually named
2515 something starting with __ and the normal name is an alias. */
2516 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2524 if { (eval echo configure:2525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2526 eval "ac_cv_func_$ac_func=yes"
2528 echo "configure: failed program was:" >&5
2529 cat conftest.$ac_ext >&5
2531 eval "ac_cv_func_$ac_func=no"
2536 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2537 echo "$ac_t""yes" 1>&6
2538 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2539 cat >> confdefs.h <<EOF
2540 #define $ac_tr_func 1
2543 cat >> confdefs.h <<\EOF
2544 #define HAVE_GETHOSTNAME 1
2547 cat > conftest.$ac_ext <<EOF
2548 #line 2549 "configure"
2549 #include "confdefs.h"
2552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2553 egrep "gethostname" >/dev/null 2>&1; then
2556 cat >> confdefs.h <<\EOF
2557 #define HAVE_GETHOSTNAME_DECL 1
2564 echo "$ac_t""no" 1>&6
2569 # Look for these functions in the thread library.
2571 LIBS="$LIBS $THREADLIBS"
2572 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np sched_yield
2574 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2575 echo "configure:2576: checking for $ac_func" >&5
2576 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2577 echo $ac_n "(cached) $ac_c" 1>&6
2579 cat > conftest.$ac_ext <<EOF
2580 #line 2581 "configure"
2581 #include "confdefs.h"
2582 /* System header to define __stub macros and hopefully few prototypes,
2583 which can conflict with char $ac_func(); below. */
2585 /* Override any gcc2 internal prototype to avoid an error. */
2586 /* We use char because int might match the return type of a gcc2
2587 builtin and then its argument prototype would still apply. */
2592 /* The GNU C library defines this for functions which it implements
2593 to always fail with ENOSYS. Some functions are actually named
2594 something starting with __ and the normal name is an alias. */
2595 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2603 if { (eval echo configure:2604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2605 eval "ac_cv_func_$ac_func=yes"
2607 echo "configure: failed program was:" >&5
2608 cat conftest.$ac_ext >&5
2610 eval "ac_cv_func_$ac_func=no"
2615 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2616 echo "$ac_t""yes" 1>&6
2617 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2618 cat >> confdefs.h <<EOF
2619 #define $ac_tr_func 1
2623 echo "$ac_t""no" 1>&6
2629 # We require a way to get the time.
2631 for ac_func in gettimeofday time ftime
2633 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2634 echo "configure:2635: checking for $ac_func" >&5
2635 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2636 echo $ac_n "(cached) $ac_c" 1>&6
2638 cat > conftest.$ac_ext <<EOF
2639 #line 2640 "configure"
2640 #include "confdefs.h"
2641 /* System header to define __stub macros and hopefully few prototypes,
2642 which can conflict with char $ac_func(); below. */
2644 /* Override any gcc2 internal prototype to avoid an error. */
2645 /* We use char because int might match the return type of a gcc2
2646 builtin and then its argument prototype would still apply. */
2651 /* The GNU C library defines this for functions which it implements
2652 to always fail with ENOSYS. Some functions are actually named
2653 something starting with __ and the normal name is an alias. */
2654 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2662 if { (eval echo configure:2663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2664 eval "ac_cv_func_$ac_func=yes"
2666 echo "configure: failed program was:" >&5
2667 cat conftest.$ac_ext >&5
2669 eval "ac_cv_func_$ac_func=no"
2674 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2675 echo "$ac_t""yes" 1>&6
2676 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2677 cat >> confdefs.h <<EOF
2678 #define $ac_tr_func 1
2682 echo "$ac_t""no" 1>&6
2686 if test "$time_found" = no; then
2687 { echo "configure: error: no function found to get the time" 1>&2; exit 1; }
2690 # We require memmove.
2692 for ac_func in memmove
2694 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2695 echo "configure:2696: checking for $ac_func" >&5
2696 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2697 echo $ac_n "(cached) $ac_c" 1>&6
2699 cat > conftest.$ac_ext <<EOF
2700 #line 2701 "configure"
2701 #include "confdefs.h"
2702 /* System header to define __stub macros and hopefully few prototypes,
2703 which can conflict with char $ac_func(); below. */
2705 /* Override any gcc2 internal prototype to avoid an error. */
2706 /* We use char because int might match the return type of a gcc2
2707 builtin and then its argument prototype would still apply. */
2712 /* The GNU C library defines this for functions which it implements
2713 to always fail with ENOSYS. Some functions are actually named
2714 something starting with __ and the normal name is an alias. */
2715 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2723 if { (eval echo configure:2724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2725 eval "ac_cv_func_$ac_func=yes"
2727 echo "configure: failed program was:" >&5
2728 cat conftest.$ac_ext >&5
2730 eval "ac_cv_func_$ac_func=no"
2735 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2736 echo "$ac_t""yes" 1>&6
2737 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2738 cat >> confdefs.h <<EOF
2739 #define $ac_tr_func 1
2743 echo "$ac_t""no" 1>&6
2747 if test "$memmove_found" = no; then
2748 { echo "configure: error: memmove is required" 1>&2; exit 1; }
2751 # We require memcpy.
2753 for ac_func in memcpy
2755 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2756 echo "configure:2757: checking for $ac_func" >&5
2757 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2758 echo $ac_n "(cached) $ac_c" 1>&6
2760 cat > conftest.$ac_ext <<EOF
2761 #line 2762 "configure"
2762 #include "confdefs.h"
2763 /* System header to define __stub macros and hopefully few prototypes,
2764 which can conflict with char $ac_func(); below. */
2766 /* Override any gcc2 internal prototype to avoid an error. */
2767 /* We use char because int might match the return type of a gcc2
2768 builtin and then its argument prototype would still apply. */
2773 /* The GNU C library defines this for functions which it implements
2774 to always fail with ENOSYS. Some functions are actually named
2775 something starting with __ and the normal name is an alias. */
2776 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2784 if { (eval echo configure:2785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2786 eval "ac_cv_func_$ac_func=yes"
2788 echo "configure: failed program was:" >&5
2789 cat conftest.$ac_ext >&5
2791 eval "ac_cv_func_$ac_func=no"
2796 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2797 echo "$ac_t""yes" 1>&6
2798 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2799 cat >> confdefs.h <<EOF
2800 #define $ac_tr_func 1
2804 echo "$ac_t""no" 1>&6
2808 if test "$memcpy_found" = no; then
2809 { echo "configure: error: memcpy is required" 1>&2; exit 1; }
2812 test -d "$libgcj_basedir/../gcc/java" || {
2820 if test "$CANADIAN" = yes; then
2829 if test "$NULL_TARGET" = yes; then
2831 NULL_TARGET_FALSE='#'
2833 NULL_TARGET_TRUE='#'
2838 if test "$CANADIAN" = no || test "$NULL_TARGET" = yes; then
2850 for ac_hdr in unistd.h sys/time.h sys/types.h fcntl.h sys/ioctl.h sys/filio.h sys/stat.h sys/select.h sys/socket.h netinet/in.h arpa/inet.h netdb.h pwd.h
2852 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2853 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2854 echo "configure:2855: checking for $ac_hdr" >&5
2855 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2856 echo $ac_n "(cached) $ac_c" 1>&6
2858 cat > conftest.$ac_ext <<EOF
2859 #line 2860 "configure"
2860 #include "confdefs.h"
2863 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2864 { (eval echo configure:2865: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2865 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2866 if test -z "$ac_err"; then
2868 eval "ac_cv_header_$ac_safe=yes"
2871 echo "configure: failed program was:" >&5
2872 cat conftest.$ac_ext >&5
2874 eval "ac_cv_header_$ac_safe=no"
2878 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2879 echo "$ac_t""yes" 1>&6
2880 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2881 cat >> confdefs.h <<EOF
2882 #define $ac_tr_hdr 1
2886 echo "$ac_t""no" 1>&6
2890 for ac_hdr in dirent.h
2892 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2893 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2894 echo "configure:2895: checking for $ac_hdr" >&5
2895 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2896 echo $ac_n "(cached) $ac_c" 1>&6
2898 cat > conftest.$ac_ext <<EOF
2899 #line 2900 "configure"
2900 #include "confdefs.h"
2903 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2904 { (eval echo configure:2905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2905 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2906 if test -z "$ac_err"; then
2908 eval "ac_cv_header_$ac_safe=yes"
2911 echo "configure: failed program was:" >&5
2912 cat conftest.$ac_ext >&5
2914 eval "ac_cv_header_$ac_safe=no"
2918 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2919 echo "$ac_t""yes" 1>&6
2920 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2921 cat >> confdefs.h <<EOF
2922 #define $ac_tr_hdr 1
2926 echo "$ac_t""no" 1>&6
2931 echo $ac_n "checking whether struct sockaddr_in6 is in netinet/in.h""... $ac_c" 1>&6
2932 echo "configure:2933: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
2933 cat > conftest.$ac_ext <<EOF
2934 #line 2935 "configure"
2935 #include "confdefs.h"
2936 #include <netinet/in.h>
2938 struct sockaddr_in6 addr6;
2941 if { (eval echo configure:2942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2943 cat >> confdefs.h <<\EOF
2944 #define HAVE_INET6 1
2947 echo "$ac_t""yes" 1>&6
2949 echo "configure: failed program was:" >&5
2950 cat conftest.$ac_ext >&5
2952 echo "$ac_t""no" 1>&6
2956 echo $ac_n "checking for socklen_t in sys/socket.h""... $ac_c" 1>&6
2957 echo "configure:2958: checking for socklen_t in sys/socket.h" >&5
2958 cat > conftest.$ac_ext <<EOF
2959 #line 2960 "configure"
2960 #include "confdefs.h"
2961 #include <sys/socket.h>
2966 if { (eval echo configure:2967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2968 cat >> confdefs.h <<\EOF
2969 #define HAVE_SOCKLEN_T 1
2972 echo "$ac_t""yes" 1>&6
2974 echo "configure: failed program was:" >&5
2975 cat conftest.$ac_ext >&5
2977 echo "$ac_t""no" 1>&6
2981 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
2982 echo "configure:2983: checking for tm_gmtoff in struct tm" >&5
2983 cat > conftest.$ac_ext <<EOF
2984 #line 2985 "configure"
2985 #include "confdefs.h"
2988 struct tm tim; tim.tm_gmtoff = 0;
2991 if { (eval echo configure:2992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2993 cat >> confdefs.h <<\EOF
2994 #define STRUCT_TM_HAS_GMTOFF 1
2997 echo "$ac_t""yes" 1>&6
2999 echo "configure: failed program was:" >&5
3000 cat conftest.$ac_ext >&5
3002 echo "$ac_t""no" 1>&6
3003 echo $ac_n "checking for global timezone variable""... $ac_c" 1>&6
3004 echo "configure:3005: checking for global timezone variable" >&5
3005 cat > conftest.$ac_ext <<EOF
3006 #line 3007 "configure"
3007 #include "confdefs.h"
3013 if { (eval echo configure:3014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3015 cat >> confdefs.h <<\EOF
3016 #define HAVE_TIMEZONE 1
3019 echo "$ac_t""yes" 1>&6
3021 echo "configure: failed program was:" >&5
3022 cat conftest.$ac_ext >&5
3024 echo "$ac_t""no" 1>&6
3030 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3031 # for constant arguments. Useless!
3032 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3033 echo "configure:3034: checking for working alloca.h" >&5
3034 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3035 echo $ac_n "(cached) $ac_c" 1>&6
3037 cat > conftest.$ac_ext <<EOF
3038 #line 3039 "configure"
3039 #include "confdefs.h"
3042 char *p = alloca(2 * sizeof(int));
3045 if { (eval echo configure:3046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3047 ac_cv_header_alloca_h=yes
3049 echo "configure: failed program was:" >&5
3050 cat conftest.$ac_ext >&5
3052 ac_cv_header_alloca_h=no
3057 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3058 if test $ac_cv_header_alloca_h = yes; then
3059 cat >> confdefs.h <<\EOF
3060 #define HAVE_ALLOCA_H 1
3065 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3066 echo "configure:3067: checking for alloca" >&5
3067 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3068 echo $ac_n "(cached) $ac_c" 1>&6
3070 cat > conftest.$ac_ext <<EOF
3071 #line 3072 "configure"
3072 #include "confdefs.h"
3075 # define alloca __builtin_alloca
3078 # include <malloc.h>
3079 # define alloca _alloca
3082 # include <alloca.h>
3087 # ifndef alloca /* predefined by HP cc +Olibcalls */
3096 char *p = (char *) alloca(1);
3099 if { (eval echo configure:3100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3101 ac_cv_func_alloca_works=yes
3103 echo "configure: failed program was:" >&5
3104 cat conftest.$ac_ext >&5
3106 ac_cv_func_alloca_works=no
3111 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3112 if test $ac_cv_func_alloca_works = yes; then
3113 cat >> confdefs.h <<\EOF
3114 #define HAVE_ALLOCA 1
3119 if test $ac_cv_func_alloca_works = no; then
3120 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3121 # that cause trouble. Some versions do not even contain alloca or
3122 # contain a buggy version. If you still want to use their alloca,
3123 # use ar to extract alloca.o from them instead of compiling alloca.c.
3124 ALLOCA=alloca.${ac_objext}
3125 cat >> confdefs.h <<\EOF
3130 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3131 echo "configure:3132: checking whether alloca needs Cray hooks" >&5
3132 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3133 echo $ac_n "(cached) $ac_c" 1>&6
3135 cat > conftest.$ac_ext <<EOF
3136 #line 3137 "configure"
3137 #include "confdefs.h"
3138 #if defined(CRAY) && ! defined(CRAY2)
3145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3146 egrep "webecray" >/dev/null 2>&1; then
3157 echo "$ac_t""$ac_cv_os_cray" 1>&6
3158 if test $ac_cv_os_cray = yes; then
3159 for ac_func in _getb67 GETB67 getb67; do
3160 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3161 echo "configure:3162: checking for $ac_func" >&5
3162 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3163 echo $ac_n "(cached) $ac_c" 1>&6
3165 cat > conftest.$ac_ext <<EOF
3166 #line 3167 "configure"
3167 #include "confdefs.h"
3168 /* System header to define __stub macros and hopefully few prototypes,
3169 which can conflict with char $ac_func(); below. */
3171 /* Override any gcc2 internal prototype to avoid an error. */
3172 /* We use char because int might match the return type of a gcc2
3173 builtin and then its argument prototype would still apply. */
3178 /* The GNU C library defines this for functions which it implements
3179 to always fail with ENOSYS. Some functions are actually named
3180 something starting with __ and the normal name is an alias. */
3181 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3189 if { (eval echo configure:3190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3191 eval "ac_cv_func_$ac_func=yes"
3193 echo "configure: failed program was:" >&5
3194 cat conftest.$ac_ext >&5
3196 eval "ac_cv_func_$ac_func=no"
3201 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3202 echo "$ac_t""yes" 1>&6
3203 cat >> confdefs.h <<EOF
3204 #define CRAY_STACKSEG_END $ac_func
3209 echo "$ac_t""no" 1>&6
3215 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3216 echo "configure:3217: checking stack direction for C alloca" >&5
3217 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3218 echo $ac_n "(cached) $ac_c" 1>&6
3220 if test "$cross_compiling" = yes; then
3221 ac_cv_c_stack_direction=0
3223 cat > conftest.$ac_ext <<EOF
3224 #line 3225 "configure"
3225 #include "confdefs.h"
3226 find_stack_direction ()
3228 static char *addr = 0;
3233 return find_stack_direction ();
3236 return (&dummy > addr) ? 1 : -1;
3240 exit (find_stack_direction() < 0);
3243 if { (eval echo configure:3244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3245 ac_cv_c_stack_direction=1
3247 echo "configure: failed program was:" >&5
3248 cat conftest.$ac_ext >&5
3250 ac_cv_c_stack_direction=-1
3257 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3258 cat >> confdefs.h <<EOF
3259 #define STACK_DIRECTION $ac_cv_c_stack_direction
3267 # Extract the first word of "$ac_prog", so it can be a program name with args.
3268 set dummy $ac_prog; ac_word=$2
3269 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3270 echo "configure:3271: checking for $ac_word" >&5
3271 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
3272 echo $ac_n "(cached) $ac_c" 1>&6
3274 if test -n "$PERL"; then
3275 ac_cv_prog_PERL="$PERL" # Let the user override the test.
3277 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3279 for ac_dir in $ac_dummy; do
3280 test -z "$ac_dir" && ac_dir=.
3281 if test -f $ac_dir/$ac_word; then
3282 ac_cv_prog_PERL="$ac_prog"
3289 PERL="$ac_cv_prog_PERL"
3290 if test -n "$PERL"; then
3291 echo "$ac_t""$PERL" 1>&6
3293 echo "$ac_t""no" 1>&6
3296 test -n "$PERL" && break
3298 test -n "$PERL" || PERL="false"
3301 if test "${multilib}" = "yes"; then
3302 multilib_arg="--enable-multilib"
3311 cat > confcache <<\EOF
3312 # This file is a shell script that caches the results of configure
3313 # tests run on this system so they can be shared between configure
3314 # scripts and configure runs. It is not useful on other systems.
3315 # If it contains results you don't want to keep, you may remove or edit it.
3317 # By default, configure uses ./config.cache as the cache file,
3318 # creating it if it does not exist already. You can give configure
3319 # the --cache-file=FILE option to use a different cache file; that is
3320 # what configure does when it calls configure scripts in
3321 # subdirectories, so they share the cache.
3322 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3323 # config.status only pays attention to the cache file if you give it the
3324 # --recheck option to rerun configure.
3327 # The following way of writing the cache mishandles newlines in values,
3328 # but we know of no workaround that is simple, portable, and efficient.
3329 # So, don't put newlines in cache variables' values.
3330 # Ultrix sh set writes to stderr and can't be redirected directly,
3331 # and sets the high bit in the cache file unless we assign to the vars.
3333 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3335 # `set' does not quote correctly, so add quotes (double-quote substitution
3336 # turns \\\\ into \\, and sed turns \\ into \).
3338 -e "s/'/'\\\\''/g" \
3339 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3342 # `set' quotes correctly as required by POSIX, so do not add quotes.
3343 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3346 if cmp -s $cache_file confcache; then
3349 if test -w $cache_file; then
3350 echo "updating cache $cache_file"
3351 cat confcache > $cache_file
3353 echo "not updating unwritable cache $cache_file"
3358 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3360 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3361 # Let make expand exec_prefix.
3362 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3364 # Any assignment to VPATH causes Sun make to only execute
3365 # the first set of double-colon rules, so remove it if not needed.
3366 # If there is a colon in the path, we need to keep it.
3367 if test "x$srcdir" = x.; then
3368 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3371 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3373 DEFS=-DHAVE_CONFIG_H
3375 # Without the "./", some shells look in PATH for config.status.
3376 : ${CONFIG_STATUS=./config.status}
3378 echo creating $CONFIG_STATUS
3379 rm -f $CONFIG_STATUS
3380 cat > $CONFIG_STATUS <<EOF
3382 # Generated automatically by configure.
3383 # Run this file to recreate the current configuration.
3384 # This directory was configured as follows,
3385 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3387 # $0 $ac_configure_args
3389 # Compiler output produced by configure, useful for debugging
3390 # configure, is in ./config.log if it exists.
3392 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3395 case "\$ac_option" in
3396 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3397 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3398 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3399 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3400 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3402 -help | --help | --hel | --he | --h)
3403 echo "\$ac_cs_usage"; exit 0 ;;
3404 *) echo "\$ac_cs_usage"; exit 1 ;;
3408 ac_given_srcdir=$srcdir
3409 ac_given_INSTALL="$INSTALL"
3411 trap 'rm -fr `echo "Makefile testsuite/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3413 cat >> $CONFIG_STATUS <<EOF
3415 # Protect against being on the right side of a sed subst in config.status.
3416 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3417 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3421 s%@CFLAGS@%$CFLAGS%g
3422 s%@CPPFLAGS@%$CPPFLAGS%g
3423 s%@CXXFLAGS@%$CXXFLAGS%g
3424 s%@FFLAGS@%$FFLAGS%g
3426 s%@LDFLAGS@%$LDFLAGS%g
3428 s%@exec_prefix@%$exec_prefix%g
3429 s%@prefix@%$prefix%g
3430 s%@program_transform_name@%$program_transform_name%g
3431 s%@bindir@%$bindir%g
3432 s%@sbindir@%$sbindir%g
3433 s%@libexecdir@%$libexecdir%g
3434 s%@datadir@%$datadir%g
3435 s%@sysconfdir@%$sysconfdir%g
3436 s%@sharedstatedir@%$sharedstatedir%g
3437 s%@localstatedir@%$localstatedir%g
3438 s%@libdir@%$libdir%g
3439 s%@includedir@%$includedir%g
3440 s%@oldincludedir@%$oldincludedir%g
3441 s%@infodir@%$infodir%g
3442 s%@mandir@%$mandir%g
3444 s%@host_alias@%$host_alias%g
3445 s%@host_cpu@%$host_cpu%g
3446 s%@host_vendor@%$host_vendor%g
3447 s%@host_os@%$host_os%g
3448 s%@target@%$target%g
3449 s%@target_alias@%$target_alias%g
3450 s%@target_cpu@%$target_cpu%g
3451 s%@target_vendor@%$target_vendor%g
3452 s%@target_os@%$target_os%g
3454 s%@build_alias@%$build_alias%g
3455 s%@build_cpu@%$build_cpu%g
3456 s%@build_vendor@%$build_vendor%g
3457 s%@build_os@%$build_os%g
3458 s%@libgcj_basedir@%$libgcj_basedir%g
3459 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3460 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3461 s%@INSTALL_DATA@%$INSTALL_DATA%g
3462 s%@PACKAGE@%$PACKAGE%g
3463 s%@VERSION@%$VERSION%g
3464 s%@ACLOCAL@%$ACLOCAL%g
3465 s%@AUTOCONF@%$AUTOCONF%g
3466 s%@AUTOMAKE@%$AUTOMAKE%g
3467 s%@AUTOHEADER@%$AUTOHEADER%g
3468 s%@MAKEINFO@%$MAKEINFO%g
3469 s%@SET_MAKE@%$SET_MAKE%g
3474 s%@RANLIB@%$RANLIB%g
3475 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
3476 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
3478 s%@EXEEXT@%$EXEEXT%g
3479 s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
3480 s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
3481 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
3482 s%@COMPPATH@%$COMPPATH%g
3483 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
3484 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
3486 s%@GCLIBS@%$GCLIBS%g
3487 s%@GCINCS@%$GCINCS%g
3488 s%@GCDEPS@%$GCDEPS%g
3489 s%@GCOBJS@%$GCOBJS%g
3490 s%@THREADLIBS@%$THREADLIBS%g
3491 s%@THREADINCS@%$THREADINCS%g
3492 s%@THREADDEPS@%$THREADDEPS%g
3493 s%@THREADOBJS@%$THREADOBJS%g
3494 s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
3495 s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
3496 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
3497 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
3498 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
3499 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
3500 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
3501 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
3502 s%@EH_COMMON_INCLUDE@%$EH_COMMON_INCLUDE%g
3503 s%@AM_RUNTESTFLAGS@%$AM_RUNTESTFLAGS%g
3504 s%@ALLOCA@%$ALLOCA%g
3511 cat >> $CONFIG_STATUS <<\EOF
3513 # Split the substitutions into bite-sized pieces for seds with
3514 # small command number limits, like on Digital OSF/1 and HP-UX.
3515 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3516 ac_file=1 # Number of current file.
3517 ac_beg=1 # First line for current file.
3518 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3521 while $ac_more_lines; do
3522 if test $ac_beg -gt 1; then
3523 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3525 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3527 if test ! -s conftest.s$ac_file; then
3529 rm -f conftest.s$ac_file
3531 if test -z "$ac_sed_cmds"; then
3532 ac_sed_cmds="sed -f conftest.s$ac_file"
3534 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3536 ac_file=`expr $ac_file + 1`
3538 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3541 if test -z "$ac_sed_cmds"; then
3546 cat >> $CONFIG_STATUS <<EOF
3548 CONFIG_FILES=\${CONFIG_FILES-"Makefile testsuite/Makefile"}
3550 cat >> $CONFIG_STATUS <<\EOF
3551 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3552 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3554 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3555 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3556 *) ac_file_in="${ac_file}.in" ;;
3559 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3561 # Remove last slash and all that follows it. Not all systems have dirname.
3562 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3563 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3564 # The file is in a subdirectory.
3565 test ! -d "$ac_dir" && mkdir "$ac_dir"
3566 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3567 # A "../" for each directory in $ac_dir_suffix.
3568 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3570 ac_dir_suffix= ac_dots=
3573 case "$ac_given_srcdir" in
3575 if test -z "$ac_dots"; then top_srcdir=.
3576 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3577 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3579 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3580 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3583 case "$ac_given_INSTALL" in
3584 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3585 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3588 echo creating "$ac_file"
3590 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3592 *Makefile*) ac_comsub="1i\\
3593 # $configure_input" ;;
3597 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3599 s%@configure_input@%$configure_input%g
3600 s%@srcdir@%$srcdir%g
3601 s%@top_srcdir@%$top_srcdir%g
3602 s%@INSTALL@%$INSTALL%g
3603 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3607 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3608 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3610 # ac_d sets the value in "#define NAME VALUE" lines.
3611 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3612 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3615 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3616 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3617 ac_uB='\([ ]\)%\1#\2define\3'
3620 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3621 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3622 ac_eB='$%\1#\2define\3'
3626 if test "${CONFIG_HEADERS+set}" != set; then
3628 cat >> $CONFIG_STATUS <<EOF
3629 CONFIG_HEADERS="include/config.h"
3631 cat >> $CONFIG_STATUS <<\EOF
3633 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3634 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3636 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3637 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3638 *) ac_file_in="${ac_file}.in" ;;
3641 echo creating $ac_file
3643 rm -f conftest.frag conftest.in conftest.out
3644 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3645 cat $ac_file_inputs > conftest.in
3649 # Transform confdefs.h into a sed script conftest.vals that substitutes
3650 # the proper values into config.h.in to produce config.h. And first:
3651 # Protect against being on the right side of a sed subst in config.status.
3652 # Protect against being in an unquoted here document in config.status.
3654 cat > conftest.hdr <<\EOF
3657 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3661 sed -n -f conftest.hdr confdefs.h > conftest.vals
3664 # This sed command replaces #undef with comments. This is necessary, for
3665 # example, in the case of _POSIX_SOURCE, which is predefined and required
3666 # on some systems where configure will not decide to define it.
3667 cat >> conftest.vals <<\EOF
3668 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3671 # Break up conftest.vals because some shells have a limit on
3672 # the size of here documents, and old seds have small limits too.
3677 ac_lines=`grep -c . conftest.vals`
3678 # grep -c gives empty output for an empty file on some AIX systems.
3679 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3680 # Write a limited-size here document to conftest.frag.
3681 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3682 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3684 sed -f conftest.frag conftest.in > conftest.out
3686 mv conftest.out conftest.in
3688 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3690 mv conftest.tail conftest.vals
3694 cat >> $CONFIG_STATUS <<\EOF
3695 rm -f conftest.frag conftest.h
3696 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3697 cat conftest.in >> conftest.h
3699 if cmp -s $ac_file conftest.h 2>/dev/null; then
3700 echo "$ac_file is unchanged"
3703 # Remove last slash and all that follows it. Not all systems have dirname.
3704 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3705 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3706 # The file is in a subdirectory.
3707 test ! -d "$ac_dir" && mkdir "$ac_dir"
3710 mv conftest.h $ac_file
3716 cat >> $CONFIG_STATUS <<EOF
3717 ac_sources="java/io/$FILE_DESCRIPTOR include/$GCHDR include/$THREADH"
3718 ac_dests="java/io/natFileDescriptor.cc include/java-gc.h include/java-threads.h"
3721 cat >> $CONFIG_STATUS <<\EOF
3722 srcdir=$ac_given_srcdir
3723 while test -n "$ac_sources"; do
3724 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
3725 set $ac_sources; ac_source=$1; shift; ac_sources=$*
3727 echo "linking $srcdir/$ac_source to $ac_dest"
3729 if test ! -r $srcdir/$ac_source; then
3730 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
3734 # Make relative symlinks.
3735 # Remove last slash and all that follows it. Not all systems have dirname.
3736 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
3737 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
3738 # The dest file is in a subdirectory.
3739 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
3740 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
3741 # A "../" for each directory in $ac_dest_dir_suffix.
3742 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
3744 ac_dest_dir_suffix= ac_dots=
3748 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
3749 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
3752 # Make a symlink if possible; otherwise try a hard link.
3753 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
3754 ln $srcdir/$ac_source $ac_dest; then :
3756 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
3760 cat >> $CONFIG_STATUS <<EOF
3765 with_multisubdir=${with_multisubdir}
3766 ac_configure_args="${multilib_arg} ${ac_configure_args}"
3767 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
3768 libgcj_basedir=${libgcj_basedir}
3773 cat >> $CONFIG_STATUS <<\EOF
3774 test -z "$CONFIG_HEADERS" || echo timestamp > include/stamp-h
3775 if test -n "$CONFIG_FILES"; then
3776 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
3780 chmod +x $CONFIG_STATUS
3781 rm -fr confdefs* $ac_clean_files
3782 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1