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-shared[=PKGS] build shared libraries [default=yes]"
26 --enable-static[=PKGS] build static libraries [default=yes]"
28 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
30 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
32 --disable-libtool-lock avoid locking (might break parallel builds)"
34 --enable-fast-character Prefer speed over size for Character"
36 --enable-libgcj-debug Enable runtime debugging code"
38 --enable-interpreter Enable interpreter"
40 --with-ecos Enable runtime eCos target support."
42 --with-system-zlib Use installed libz"
44 --enable-java-gc=TYPE choose garbage collector [boehm]"
46 --enable-threads=TYPE choose threading package"
48 # Initialize some variables set by options.
49 # The variables have the same names as the options, with
50 # dashes changed to underlines.
52 cache_file=./config.cache
61 program_transform_name=s,x,x,
70 bindir='${exec_prefix}/bin'
71 sbindir='${exec_prefix}/sbin'
72 libexecdir='${exec_prefix}/libexec'
73 datadir='${prefix}/share'
74 sysconfdir='${prefix}/etc'
75 sharedstatedir='${prefix}/com'
76 localstatedir='${prefix}/var'
77 libdir='${exec_prefix}/lib'
78 includedir='${prefix}/include'
79 oldincludedir='/usr/include'
80 infodir='${prefix}/info'
81 mandir='${prefix}/man'
83 # Initialize some other variables.
86 SHELL=${CONFIG_SHELL-/bin/sh}
87 # Maximum number of lines to put in a shell here document.
94 # If the previous option needs an argument, assign it.
95 if test -n "$ac_prev"; then
96 eval "$ac_prev=\$ac_option"
102 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
106 # Accept the important Cygnus configure options, so we can diagnose typos.
110 -bindir | --bindir | --bindi | --bind | --bin | --bi)
112 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
113 bindir="$ac_optarg" ;;
115 -build | --build | --buil | --bui | --bu)
117 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
118 build="$ac_optarg" ;;
120 -cache-file | --cache-file | --cache-fil | --cache-fi \
121 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
122 ac_prev=cache_file ;;
123 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
124 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
125 cache_file="$ac_optarg" ;;
127 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
129 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
131 datadir="$ac_optarg" ;;
133 -disable-* | --disable-*)
134 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
135 # Reject names that are not valid shell variable names.
136 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
137 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
139 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
140 eval "enable_${ac_feature}=no" ;;
142 -enable-* | --enable-*)
143 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
144 # Reject names that are not valid shell variable names.
145 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
146 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
148 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
153 eval "enable_${ac_feature}='$ac_optarg'" ;;
155 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
156 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
157 | --exec | --exe | --ex)
158 ac_prev=exec_prefix ;;
159 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
160 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
161 | --exec=* | --exe=* | --ex=*)
162 exec_prefix="$ac_optarg" ;;
164 -gas | --gas | --ga | --g)
165 # Obsolete; use --with-gas.
168 -help | --help | --hel | --he)
169 # Omit some internal or obsolete options to make the list less imposing.
170 # This message is too long to be a string in the A/UX 3.1 sh.
172 Usage: configure [options] [host]
173 Options: [defaults in brackets after descriptions]
175 --cache-file=FILE cache test results in FILE
176 --help print this message
177 --no-create do not create output files
178 --quiet, --silent do not print \`checking...' messages
179 --site-file=FILE use FILE as the site file
180 --version print the version of autoconf that created configure
181 Directory and file names:
182 --prefix=PREFIX install architecture-independent files in PREFIX
184 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
186 --bindir=DIR user executables in DIR [EPREFIX/bin]
187 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
188 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
189 --datadir=DIR read-only architecture-independent data in DIR
191 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
192 --sharedstatedir=DIR modifiable architecture-independent data in DIR
194 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
195 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
196 --includedir=DIR C header files in DIR [PREFIX/include]
197 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
198 --infodir=DIR info documentation in DIR [PREFIX/info]
199 --mandir=DIR man documentation in DIR [PREFIX/man]
200 --srcdir=DIR find the sources in DIR [configure dir or ..]
201 --program-prefix=PREFIX prepend PREFIX to installed program names
202 --program-suffix=SUFFIX append SUFFIX to installed program names
203 --program-transform-name=PROGRAM
204 run sed PROGRAM on installed program names
208 --build=BUILD configure for building on BUILD [BUILD=HOST]
209 --host=HOST configure for HOST [guessed]
210 --target=TARGET configure for TARGET [TARGET=HOST]
211 Features and packages:
212 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
213 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
214 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
215 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
216 --x-includes=DIR X include files are in DIR
217 --x-libraries=DIR X library files are in DIR
219 if test -n "$ac_help"; then
220 echo "--enable and --with options recognized:$ac_help"
224 -host | --host | --hos | --ho)
226 -host=* | --host=* | --hos=* | --ho=*)
229 -includedir | --includedir | --includedi | --included | --include \
230 | --includ | --inclu | --incl | --inc)
231 ac_prev=includedir ;;
232 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
233 | --includ=* | --inclu=* | --incl=* | --inc=*)
234 includedir="$ac_optarg" ;;
236 -infodir | --infodir | --infodi | --infod | --info | --inf)
238 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
239 infodir="$ac_optarg" ;;
241 -libdir | --libdir | --libdi | --libd)
243 -libdir=* | --libdir=* | --libdi=* | --libd=*)
244 libdir="$ac_optarg" ;;
246 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
247 | --libexe | --libex | --libe)
248 ac_prev=libexecdir ;;
249 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
250 | --libexe=* | --libex=* | --libe=*)
251 libexecdir="$ac_optarg" ;;
253 -localstatedir | --localstatedir | --localstatedi | --localstated \
254 | --localstate | --localstat | --localsta | --localst \
255 | --locals | --local | --loca | --loc | --lo)
256 ac_prev=localstatedir ;;
257 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
258 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
259 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
260 localstatedir="$ac_optarg" ;;
262 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
264 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
265 mandir="$ac_optarg" ;;
268 # Obsolete; use --without-fp.
271 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
275 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
276 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
279 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
280 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
281 | --oldin | --oldi | --old | --ol | --o)
282 ac_prev=oldincludedir ;;
283 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
284 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
285 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
286 oldincludedir="$ac_optarg" ;;
288 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
290 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
291 prefix="$ac_optarg" ;;
293 -program-prefix | --program-prefix | --program-prefi | --program-pref \
294 | --program-pre | --program-pr | --program-p)
295 ac_prev=program_prefix ;;
296 -program-prefix=* | --program-prefix=* | --program-prefi=* \
297 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
298 program_prefix="$ac_optarg" ;;
300 -program-suffix | --program-suffix | --program-suffi | --program-suff \
301 | --program-suf | --program-su | --program-s)
302 ac_prev=program_suffix ;;
303 -program-suffix=* | --program-suffix=* | --program-suffi=* \
304 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
305 program_suffix="$ac_optarg" ;;
307 -program-transform-name | --program-transform-name \
308 | --program-transform-nam | --program-transform-na \
309 | --program-transform-n | --program-transform- \
310 | --program-transform | --program-transfor \
311 | --program-transfo | --program-transf \
312 | --program-trans | --program-tran \
313 | --progr-tra | --program-tr | --program-t)
314 ac_prev=program_transform_name ;;
315 -program-transform-name=* | --program-transform-name=* \
316 | --program-transform-nam=* | --program-transform-na=* \
317 | --program-transform-n=* | --program-transform-=* \
318 | --program-transform=* | --program-transfor=* \
319 | --program-transfo=* | --program-transf=* \
320 | --program-trans=* | --program-tran=* \
321 | --progr-tra=* | --program-tr=* | --program-t=*)
322 program_transform_name="$ac_optarg" ;;
324 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
325 | -silent | --silent | --silen | --sile | --sil)
328 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
330 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
332 sbindir="$ac_optarg" ;;
334 -sharedstatedir | --sharedstatedir | --sharedstatedi \
335 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
336 | --sharedst | --shareds | --shared | --share | --shar \
338 ac_prev=sharedstatedir ;;
339 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
340 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
341 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
343 sharedstatedir="$ac_optarg" ;;
345 -site | --site | --sit)
347 -site=* | --site=* | --sit=*)
350 -site-file | --site-file | --site-fil | --site-fi | --site-f)
352 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
353 sitefile="$ac_optarg" ;;
355 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
357 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
358 srcdir="$ac_optarg" ;;
360 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
361 | --syscon | --sysco | --sysc | --sys | --sy)
362 ac_prev=sysconfdir ;;
363 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
364 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
365 sysconfdir="$ac_optarg" ;;
367 -target | --target | --targe | --targ | --tar | --ta | --t)
369 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
370 target="$ac_optarg" ;;
372 -v | -verbose | --verbose | --verbos | --verbo | --verb)
375 -version | --version | --versio | --versi | --vers)
376 echo "configure generated by autoconf version 2.13"
380 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
381 # Reject names that are not valid shell variable names.
382 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
383 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
385 ac_package=`echo $ac_package| sed 's/-/_/g'`
390 eval "with_${ac_package}='$ac_optarg'" ;;
392 -without-* | --without-*)
393 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
394 # Reject names that are not valid shell variable names.
395 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
396 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
398 ac_package=`echo $ac_package| sed 's/-/_/g'`
399 eval "with_${ac_package}=no" ;;
402 # Obsolete; use --with-x.
405 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
406 | --x-incl | --x-inc | --x-in | --x-i)
407 ac_prev=x_includes ;;
408 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
409 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
410 x_includes="$ac_optarg" ;;
412 -x-libraries | --x-libraries | --x-librarie | --x-librari \
413 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
414 ac_prev=x_libraries ;;
415 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
416 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
417 x_libraries="$ac_optarg" ;;
419 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
423 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
424 echo "configure: warning: $ac_option: invalid host type" 1>&2
426 if test "x$nonopt" != xNONE; then
427 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
435 if test -n "$ac_prev"; then
436 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
439 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
441 # File descriptor usage:
444 # 2 errors and warnings
445 # 3 some systems may open it to /dev/tty
446 # 4 used on the Kubota Titan
447 # 6 checking for... messages and results
448 # 5 compiler messages saved in config.log
449 if test "$silent" = yes; then
457 This file contains any messages produced by compilers while
458 running configure, to aid debugging if configure makes a mistake.
461 # Strip out --no-create and --no-recursion so they do not pile up.
462 # Also quote any args containing shell metacharacters.
467 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
468 | --no-cr | --no-c) ;;
469 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
470 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
471 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
472 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
473 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
478 # Only set these to C if already set. These must not be set unconditionally
479 # because not all systems understand e.g. LANG=C (notably SCO).
480 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
481 # Non-C LC_CTYPE values break the ctype check.
482 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
483 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
484 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
485 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
487 # confdefs.h avoids OS command line length limits that DEFS can exceed.
488 rm -rf conftest* confdefs.h
489 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
492 # A filename unique to this package, relative to the directory that
493 # configure is in, which we can look for to find out if srcdir is correct.
494 ac_unique_file=java/lang/System.java
496 # Find the source files, if location was not specified.
497 if test -z "$srcdir"; then
498 ac_srcdir_defaulted=yes
499 # Try the directory containing this script, then its parent.
501 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
502 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
504 if test ! -r $srcdir/$ac_unique_file; then
508 ac_srcdir_defaulted=no
510 if test ! -r $srcdir/$ac_unique_file; then
511 if test "$ac_srcdir_defaulted" = yes; then
512 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
514 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
517 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
519 # Prefer explicitly selected file to automatically selected ones.
520 if test -z "$sitefile"; then
521 if test -z "$CONFIG_SITE"; then
522 if test "x$prefix" != xNONE; then
523 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
525 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
529 CONFIG_SITE="$sitefile"
531 for ac_site_file in $CONFIG_SITE; do
532 if test -r "$ac_site_file"; then
533 echo "loading site script $ac_site_file"
538 if test -r "$cache_file"; then
539 echo "loading cache $cache_file"
542 echo "creating cache $cache_file"
547 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
548 ac_cpp='$CPP $CPPFLAGS'
549 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
550 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
551 cross_compiling=$ac_cv_prog_cc_cross
555 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
556 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
557 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
564 ac_n= ac_c='\c' ac_t=
570 for ac_dir in .. $srcdir/..; do
571 if test -f $ac_dir/install-sh; then
573 ac_install_sh="$ac_aux_dir/install-sh -c"
575 elif test -f $ac_dir/install.sh; then
577 ac_install_sh="$ac_aux_dir/install.sh -c"
581 if test -z "$ac_aux_dir"; then
582 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
584 ac_config_guess=$ac_aux_dir/config.guess
585 ac_config_sub=$ac_aux_dir/config.sub
586 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
590 # Do some error checking and defaulting for the host and target type.
592 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
595 # 1. You are not allowed to specify --host, --target, and nonopt at the
597 # 2. Host defaults to nonopt.
598 # 3. If nonopt is not specified, then host defaults to the current host,
599 # as determined by config.guess.
600 # 4. Target and build default to nonopt.
601 # 5. If nonopt is not specified, then target and build default to host.
603 # The aliases save the names the user supplied, while $host etc.
604 # will get canonicalized.
605 case $host---$target---$nonopt in
606 NONE---*---* | *---NONE---* | *---*---NONE) ;;
607 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
611 # Make sure we can run config.sub.
612 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
613 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
616 echo $ac_n "checking host system type""... $ac_c" 1>&6
617 echo "configure:618: checking host system type" >&5
620 case "$host_alias" in
624 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
625 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
627 *) host_alias=$nonopt ;;
631 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
632 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
633 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
634 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
635 echo "$ac_t""$host" 1>&6
637 echo $ac_n "checking target system type""... $ac_c" 1>&6
638 echo "configure:639: checking target system type" >&5
641 case "$target_alias" in
644 NONE) target_alias=$host_alias ;;
645 *) target_alias=$nonopt ;;
649 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
650 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
651 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
652 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
653 echo "$ac_t""$target" 1>&6
655 echo $ac_n "checking build system type""... $ac_c" 1>&6
656 echo "configure:657: checking build system type" >&5
659 case "$build_alias" in
662 NONE) build_alias=$host_alias ;;
663 *) build_alias=$nonopt ;;
667 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
668 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
669 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
670 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
671 echo "$ac_t""$build" 1>&6
673 test "$host_alias" != "$target_alias" &&
674 test "$program_prefix$program_suffix$program_transform_name" = \
676 program_prefix=${target_alias}-
679 # Check whether --with-target-subdir or --without-target-subdir was given.
680 if test "${with_target_subdir+set}" = set; then
681 withval="$with_target_subdir"
685 # Check whether --with-cross-host or --without-cross-host was given.
686 if test "${with_cross_host+set}" = set; then
687 withval="$with_cross_host"
692 # Find a good install program. We prefer a C program (faster),
693 # so one script is as good as another. But avoid the broken or
694 # incompatible versions:
695 # SysV /etc/install, /usr/sbin/install
696 # SunOS /usr/etc/install
699 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
700 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
701 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
702 # ./install, which can be erroneously created by make from ./install.sh.
703 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
704 echo "configure:705: checking for a BSD compatible install" >&5
705 if test -z "$INSTALL"; then
706 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
707 echo $ac_n "(cached) $ac_c" 1>&6
709 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
710 for ac_dir in $PATH; do
711 # Account for people who put trailing slashes in PATH elements.
713 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
715 # OSF1 and SCO ODT 3.0 have their own names for install.
716 # Don't use installbsd from OSF since it installs stuff as root
718 for ac_prog in ginstall scoinst install; do
719 if test -f $ac_dir/$ac_prog; then
720 if test $ac_prog = install &&
721 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
722 # AIX install. It has an incompatible calling convention.
725 ac_cv_path_install="$ac_dir/$ac_prog -c"
736 if test "${ac_cv_path_install+set}" = set; then
737 INSTALL="$ac_cv_path_install"
739 # As a last resort, use the slow shell script. We don't cache a
740 # path for INSTALL within a source directory, because that will
741 # break other packages using the cache if that directory is
742 # removed, or if the path is relative.
743 INSTALL="$ac_install_sh"
746 echo "$ac_t""$INSTALL" 1>&6
748 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
749 # It thinks the first close brace ends the variable substitution.
750 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
752 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
754 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
756 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
757 echo "configure:758: checking whether build environment is sane" >&5
760 echo timestamp > conftestfile
761 # Do `set' in a subshell so we don't clobber the current shell's
762 # arguments. Must try -L first in case configure is actually a
763 # symlink; some systems play weird games with the mod time of symlinks
764 # (eg FreeBSD returns the mod time of the symlink's containing
767 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
768 if test "$*" = "X"; then
770 set X `ls -t $srcdir/configure conftestfile`
772 if test "$*" != "X $srcdir/configure conftestfile" \
773 && test "$*" != "X conftestfile $srcdir/configure"; then
775 # If neither matched, then we have a broken ls. This can happen
776 # if, for instance, CONFIG_SHELL is bash and it inherits a
777 # broken ls alias from the environment. This has actually
778 # happened. Such a system could not be considered "sane".
779 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
780 alias in your environment" 1>&2; exit 1; }
783 test "$2" = conftestfile
789 { echo "configure: error: newly created file is older than distributed files!
790 Check your system clock" 1>&2; exit 1; }
793 echo "$ac_t""yes" 1>&6
794 if test "$program_transform_name" = s,x,x,; then
795 program_transform_name=
797 # Double any \ or $. echo might interpret backslashes.
798 cat <<\EOF_SED > conftestsed
799 s,\\,\\\\,g; s,\$,$$,g
801 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
804 test "$program_prefix" != NONE &&
805 program_transform_name="s,^,${program_prefix},; $program_transform_name"
806 # Use a double $ so make ignores it.
807 test "$program_suffix" != NONE &&
808 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
810 # sed with no file args requires a program.
811 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
813 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
814 echo "configure:815: checking whether ${MAKE-make} sets \${MAKE}" >&5
815 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
816 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
817 echo $ac_n "(cached) $ac_c" 1>&6
819 cat > conftestmake <<\EOF
821 @echo 'ac_maketemp="${MAKE}"'
823 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
824 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
825 if test -n "$ac_maketemp"; then
826 eval ac_cv_prog_make_${ac_make}_set=yes
828 eval ac_cv_prog_make_${ac_make}_set=no
832 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
833 echo "$ac_t""yes" 1>&6
836 echo "$ac_t""no" 1>&6
837 SET_MAKE="MAKE=${MAKE-make}"
840 if test $host != $build; then
841 ac_tool_prefix=${host_alias}-
846 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
847 echo "configure:848: checking for Cygwin environment" >&5
848 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
849 echo $ac_n "(cached) $ac_c" 1>&6
851 cat > conftest.$ac_ext <<EOF
852 #line 853 "configure"
853 #include "confdefs.h"
858 #define __CYGWIN__ __CYGWIN32__
863 if { (eval echo configure:864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
867 echo "configure: failed program was:" >&5
868 cat conftest.$ac_ext >&5
876 echo "$ac_t""$ac_cv_cygwin" 1>&6
878 test "$ac_cv_cygwin" = yes && CYGWIN=yes
879 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
880 echo "configure:881: checking for mingw32 environment" >&5
881 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
882 echo $ac_n "(cached) $ac_c" 1>&6
884 cat > conftest.$ac_ext <<EOF
885 #line 886 "configure"
886 #include "confdefs.h"
892 if { (eval echo configure:893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
896 echo "configure: failed program was:" >&5
897 cat conftest.$ac_ext >&5
905 echo "$ac_t""$ac_cv_mingw32" 1>&6
907 test "$ac_cv_mingw32" = yes && MINGW32=yes
909 # Check whether --enable-multilib or --disable-multilib was given.
910 if test "${enable_multilib+set}" = set; then
911 enableval="$enable_multilib"
912 case "${enableval}" in
915 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
922 if test "${srcdir}" = "."; then
923 if test "${with_target_subdir}" != "."; then
924 libgcj_basedir="${srcdir}/${with_multisrctop}../."
926 libgcj_basedir="${srcdir}/${with_multisrctop}."
929 libgcj_basedir="${srcdir}/."
934 # Make sure we can run config.sub.
935 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
936 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
939 echo $ac_n "checking host system type""... $ac_c" 1>&6
940 echo "configure:941: checking host system type" >&5
943 case "$host_alias" in
947 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
948 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
950 *) host_alias=$nonopt ;;
954 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
955 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
956 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
957 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
958 echo "$ac_t""$host" 1>&6
967 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
968 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
970 cat >> confdefs.h <<EOF
971 #define PACKAGE "$PACKAGE"
974 cat >> confdefs.h <<EOF
975 #define VERSION "$VERSION"
980 missing_dir=`cd $ac_aux_dir && pwd`
981 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
982 echo "configure:983: checking for working aclocal" >&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 (aclocal --version) < /dev/null > /dev/null 2>&1; then
988 echo "$ac_t""found" 1>&6
990 ACLOCAL="$missing_dir/missing aclocal"
991 echo "$ac_t""missing" 1>&6
994 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
995 echo "configure:996: checking for working autoconf" >&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 (autoconf --version) < /dev/null > /dev/null 2>&1; then
1001 echo "$ac_t""found" 1>&6
1003 AUTOCONF="$missing_dir/missing autoconf"
1004 echo "$ac_t""missing" 1>&6
1007 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1008 echo "configure:1009: checking for working automake" >&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 (automake --version) < /dev/null > /dev/null 2>&1; then
1014 echo "$ac_t""found" 1>&6
1016 AUTOMAKE="$missing_dir/missing automake"
1017 echo "$ac_t""missing" 1>&6
1020 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1021 echo "configure:1022: checking for working autoheader" >&5
1022 # Run test in a subshell; some versions of sh will print an error if
1023 # an executable is not found, even if stderr is redirected.
1024 # Redirect stdin to placate older versions of autoconf. Sigh.
1025 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1026 AUTOHEADER=autoheader
1027 echo "$ac_t""found" 1>&6
1029 AUTOHEADER="$missing_dir/missing autoheader"
1030 echo "$ac_t""missing" 1>&6
1033 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1034 echo "configure:1035: checking for working makeinfo" >&5
1035 # Run test in a subshell; some versions of sh will print an error if
1036 # an executable is not found, even if stderr is redirected.
1037 # Redirect stdin to placate older versions of autoconf. Sigh.
1038 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1040 echo "$ac_t""found" 1>&6
1042 MAKEINFO="$missing_dir/missing makeinfo"
1043 echo "$ac_t""missing" 1>&6
1048 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
1049 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1050 # are probably using a cross compiler, which will not be able to fully
1051 # link an executable. This should really be fixed in autoconf
1056 # Extract the first word of "gcc", so it can be a program name with args.
1057 set dummy gcc; ac_word=$2
1058 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1059 echo "configure:1060: checking for $ac_word" >&5
1060 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1061 echo $ac_n "(cached) $ac_c" 1>&6
1063 if test -n "$CC"; then
1064 ac_cv_prog_CC="$CC" # Let the user override the test.
1066 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1068 for ac_dir in $ac_dummy; do
1069 test -z "$ac_dir" && ac_dir=.
1070 if test -f $ac_dir/$ac_word; then
1079 if test -n "$CC"; then
1080 echo "$ac_t""$CC" 1>&6
1082 echo "$ac_t""no" 1>&6
1085 if test -z "$CC"; then
1086 # Extract the first word of "cc", so it can be a program name with args.
1087 set dummy cc; ac_word=$2
1088 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1089 echo "configure:1090: checking for $ac_word" >&5
1090 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1091 echo $ac_n "(cached) $ac_c" 1>&6
1093 if test -n "$CC"; then
1094 ac_cv_prog_CC="$CC" # Let the user override the test.
1096 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1099 for ac_dir in $ac_dummy; do
1100 test -z "$ac_dir" && ac_dir=.
1101 if test -f $ac_dir/$ac_word; then
1102 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1103 ac_prog_rejected=yes
1111 if test $ac_prog_rejected = yes; then
1112 # We found a bogon in the path, so make sure we never use it.
1113 set dummy $ac_cv_prog_CC
1115 if test $# -gt 0; then
1116 # We chose a different compiler from the bogus one.
1117 # However, it has the same basename, so the bogon will be chosen
1118 # first if we set CC to just the basename; use the full file name.
1120 set dummy "$ac_dir/$ac_word" "$@"
1128 if test -n "$CC"; then
1129 echo "$ac_t""$CC" 1>&6
1131 echo "$ac_t""no" 1>&6
1134 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1137 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1138 echo "configure:1139: checking whether we are using GNU C" >&5
1139 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1140 echo $ac_n "(cached) $ac_c" 1>&6
1142 cat > conftest.c <<EOF
1147 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1148: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1154 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1156 if test $ac_cv_prog_gcc = yes; then
1158 ac_test_CFLAGS="${CFLAGS+set}"
1159 ac_save_CFLAGS="$CFLAGS"
1161 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1162 echo "configure:1163: checking whether ${CC-cc} accepts -g" >&5
1163 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1164 echo $ac_n "(cached) $ac_c" 1>&6
1166 echo 'void f(){}' > conftest.c
1167 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1176 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1177 if test "$ac_test_CFLAGS" = set; then
1178 CFLAGS="$ac_save_CFLAGS"
1179 elif test $ac_cv_prog_cc_g = yes; then
1186 test "${CFLAGS+set}" = set || CFLAGS="-g"
1190 # Likewise for AC_PROG_CXX.
1193 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1195 # Extract the first word of "$ac_prog", so it can be a program name with args.
1196 set dummy $ac_prog; ac_word=$2
1197 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1198 echo "configure:1199: checking for $ac_word" >&5
1199 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1200 echo $ac_n "(cached) $ac_c" 1>&6
1202 if test -n "$CXX"; then
1203 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1205 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1207 for ac_dir in $ac_dummy; do
1208 test -z "$ac_dir" && ac_dir=.
1209 if test -f $ac_dir/$ac_word; then
1210 ac_cv_prog_CXX="$ac_prog"
1217 CXX="$ac_cv_prog_CXX"
1218 if test -n "$CXX"; then
1219 echo "$ac_t""$CXX" 1>&6
1221 echo "$ac_t""no" 1>&6
1224 test -n "$CXX" && break
1226 test -n "$CXX" || CXX="gcc"
1228 test -z "$CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1230 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1231 echo "configure:1232: checking whether we are using GNU C++" >&5
1232 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1233 echo $ac_n "(cached) $ac_c" 1>&6
1235 cat > conftest.C <<EOF
1240 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1247 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1249 if test $ac_cv_prog_gxx = yes; then
1251 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1252 ac_save_CXXFLAGS="$CXXFLAGS"
1254 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1255 echo "configure:1256: checking whether ${CXX-g++} accepts -g" >&5
1256 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1257 echo $ac_n "(cached) $ac_c" 1>&6
1259 echo 'void f(){}' > conftest.cc
1260 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1261 ac_cv_prog_cxx_g=yes
1269 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1270 if test "$ac_test_CXXFLAGS" = set; then
1271 CXXFLAGS="$ac_save_CXXFLAGS"
1272 elif test $ac_cv_prog_cxx_g = yes; then
1279 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1283 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we dont
1284 # run it explicitly here, it will be run implicitly before
1285 # LIBGCJ_CONFIGURE, which doesn't work because that means that it will
1286 # be run before AC_CANONICAL_HOST.
1287 echo $ac_n "checking build system type""... $ac_c" 1>&6
1288 echo "configure:1289: checking build system type" >&5
1291 case "$build_alias" in
1294 NONE) build_alias=$host_alias ;;
1295 *) build_alias=$nonopt ;;
1299 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1300 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1301 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1302 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1303 echo "$ac_t""$build" 1>&6
1306 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1307 set dummy ${ac_tool_prefix}as; ac_word=$2
1308 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1309 echo "configure:1310: checking for $ac_word" >&5
1310 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1311 echo $ac_n "(cached) $ac_c" 1>&6
1313 if test -n "$AS"; then
1314 ac_cv_prog_AS="$AS" # Let the user override the test.
1316 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1318 for ac_dir in $ac_dummy; do
1319 test -z "$ac_dir" && ac_dir=.
1320 if test -f $ac_dir/$ac_word; then
1321 ac_cv_prog_AS="${ac_tool_prefix}as"
1326 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1330 if test -n "$AS"; then
1331 echo "$ac_t""$AS" 1>&6
1333 echo "$ac_t""no" 1>&6
1338 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1339 set dummy ${ac_tool_prefix}ar; ac_word=$2
1340 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1341 echo "configure:1342: checking for $ac_word" >&5
1342 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1343 echo $ac_n "(cached) $ac_c" 1>&6
1345 if test -n "$AR"; then
1346 ac_cv_prog_AR="$AR" # Let the user override the test.
1348 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1350 for ac_dir in $ac_dummy; do
1351 test -z "$ac_dir" && ac_dir=.
1352 if test -f $ac_dir/$ac_word; then
1353 ac_cv_prog_AR="${ac_tool_prefix}ar"
1358 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1362 if test -n "$AR"; then
1363 echo "$ac_t""$AR" 1>&6
1365 echo "$ac_t""no" 1>&6
1370 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1371 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1372 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1373 echo "configure:1374: checking for $ac_word" >&5
1374 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1375 echo $ac_n "(cached) $ac_c" 1>&6
1377 if test -n "$RANLIB"; then
1378 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1380 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1382 for ac_dir in $ac_dummy; do
1383 test -z "$ac_dir" && ac_dir=.
1384 if test -f $ac_dir/$ac_word; then
1385 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1392 RANLIB="$ac_cv_prog_RANLIB"
1393 if test -n "$RANLIB"; then
1394 echo "$ac_t""$RANLIB" 1>&6
1396 echo "$ac_t""no" 1>&6
1400 if test -z "$ac_cv_prog_RANLIB"; then
1401 if test -n "$ac_tool_prefix"; then
1402 # Extract the first word of "ranlib", so it can be a program name with args.
1403 set dummy ranlib; ac_word=$2
1404 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1405 echo "configure:1406: checking for $ac_word" >&5
1406 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1407 echo $ac_n "(cached) $ac_c" 1>&6
1409 if test -n "$RANLIB"; then
1410 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1412 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1414 for ac_dir in $ac_dummy; do
1415 test -z "$ac_dir" && ac_dir=.
1416 if test -f $ac_dir/$ac_word; then
1417 ac_cv_prog_RANLIB="ranlib"
1422 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1425 RANLIB="$ac_cv_prog_RANLIB"
1426 if test -n "$RANLIB"; then
1427 echo "$ac_t""$RANLIB" 1>&6
1429 echo "$ac_t""no" 1>&6
1438 # Find a good install program. We prefer a C program (faster),
1439 # so one script is as good as another. But avoid the broken or
1440 # incompatible versions:
1441 # SysV /etc/install, /usr/sbin/install
1442 # SunOS /usr/etc/install
1443 # IRIX /sbin/install
1445 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1446 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1447 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1448 # ./install, which can be erroneously created by make from ./install.sh.
1449 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1450 echo "configure:1451: checking for a BSD compatible install" >&5
1451 if test -z "$INSTALL"; then
1452 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1453 echo $ac_n "(cached) $ac_c" 1>&6
1455 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1456 for ac_dir in $PATH; do
1457 # Account for people who put trailing slashes in PATH elements.
1459 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1461 # OSF1 and SCO ODT 3.0 have their own names for install.
1462 # Don't use installbsd from OSF since it installs stuff as root
1464 for ac_prog in ginstall scoinst install; do
1465 if test -f $ac_dir/$ac_prog; then
1466 if test $ac_prog = install &&
1467 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1468 # AIX install. It has an incompatible calling convention.
1471 ac_cv_path_install="$ac_dir/$ac_prog -c"
1482 if test "${ac_cv_path_install+set}" = set; then
1483 INSTALL="$ac_cv_path_install"
1485 # As a last resort, use the slow shell script. We don't cache a
1486 # path for INSTALL within a source directory, because that will
1487 # break other packages using the cache if that directory is
1488 # removed, or if the path is relative.
1489 INSTALL="$ac_install_sh"
1492 echo "$ac_t""$INSTALL" 1>&6
1494 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1495 # It thinks the first close brace ends the variable substitution.
1496 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1498 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1500 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1503 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1504 echo "configure:1505: checking whether to enable maintainer-specific portions of Makefiles" >&5
1505 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1506 if test "${enable_maintainer_mode+set}" = set; then
1507 enableval="$enable_maintainer_mode"
1508 USE_MAINTAINER_MODE=$enableval
1510 USE_MAINTAINER_MODE=no
1513 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1516 if test $USE_MAINTAINER_MODE = yes; then
1517 MAINTAINER_MODE_TRUE=
1518 MAINTAINER_MODE_FALSE='#'
1520 MAINTAINER_MODE_TRUE='#'
1521 MAINTAINER_MODE_FALSE=
1523 MAINT=$MAINTAINER_MODE_TRUE
1527 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1528 # at least currently, we never actually build a program, so we never
1529 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1530 # fails, because we are probably configuring with a cross compiler
1531 # which cant create executables. So we include AC_EXEEXT to keep
1532 # automake happy, but we dont execute it, since we dont care about
1537 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1538 echo "configure:1539: checking for executable suffix" >&5
1539 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1540 echo $ac_n "(cached) $ac_c" 1>&6
1542 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1546 echo 'int main () { return 0; }' > conftest.$ac_ext
1548 if { (eval echo configure:1549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1549 for file in conftest.*; do
1551 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1552 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1556 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1559 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1564 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1565 echo "$ac_t""${ac_cv_exeext}" 1>&6
1570 # configure.host sets the following important variables
1571 # libgcj_cflags - host specific C compiler flags
1572 # libgcj_cxxflags - host specific C++ compiler flags
1573 # libgcj_javaflags - host specific Java compiler flags
1579 . ${libgcj_basedir}/configure.host
1581 case ${libgcj_basedir} in
1582 /* | A-Za-z:/\\*) libgcj_flagbasedir=${libgcj_basedir} ;;
1583 *) libgcj_flagbasedir='$(top_builddir)/'${libgcj_basedir} ;;
1586 LIBGCJ_CFLAGS="${libgcj_cflags}"
1587 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
1588 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
1598 # Check whether --enable-shared or --disable-shared was given.
1599 if test "${enable_shared+set}" = set; then
1600 enableval="$enable_shared"
1601 p=${PACKAGE-default}
1602 case "$enableval" in
1603 yes) enable_shared=yes ;;
1604 no) enable_shared=no ;;
1607 # Look at the argument we got. We use all the common list separators.
1608 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1609 for pkg in $enableval; do
1610 if test "X$pkg" = "X$p"; then
1621 # Check whether --enable-static or --disable-static was given.
1622 if test "${enable_static+set}" = set; then
1623 enableval="$enable_static"
1624 p=${PACKAGE-default}
1625 case "$enableval" in
1626 yes) enable_static=yes ;;
1627 no) enable_static=no ;;
1630 # Look at the argument we got. We use all the common list separators.
1631 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1632 for pkg in $enableval; do
1633 if test "X$pkg" = "X$p"; then
1644 # Check whether --enable-fast-install or --disable-fast-install was given.
1645 if test "${enable_fast_install+set}" = set; then
1646 enableval="$enable_fast_install"
1647 p=${PACKAGE-default}
1648 case "$enableval" in
1649 yes) enable_fast_install=yes ;;
1650 no) enable_fast_install=no ;;
1652 enable_fast_install=no
1653 # Look at the argument we got. We use all the common list separators.
1654 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1655 for pkg in $enableval; do
1656 if test "X$pkg" = "X$p"; then
1657 enable_fast_install=yes
1664 enable_fast_install=yes
1667 # Extract the first word of "ranlib", so it can be a program name with args.
1668 set dummy ranlib; ac_word=$2
1669 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1670 echo "configure:1671: checking for $ac_word" >&5
1671 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1672 echo $ac_n "(cached) $ac_c" 1>&6
1674 if test -n "$RANLIB"; then
1675 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1677 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1679 for ac_dir in $ac_dummy; do
1680 test -z "$ac_dir" && ac_dir=.
1681 if test -f $ac_dir/$ac_word; then
1682 ac_cv_prog_RANLIB="ranlib"
1687 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1690 RANLIB="$ac_cv_prog_RANLIB"
1691 if test -n "$RANLIB"; then
1692 echo "$ac_t""$RANLIB" 1>&6
1694 echo "$ac_t""no" 1>&6
1697 # Extract the first word of "gcc", so it can be a program name with args.
1698 set dummy gcc; ac_word=$2
1699 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1700 echo "configure:1701: checking for $ac_word" >&5
1701 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1702 echo $ac_n "(cached) $ac_c" 1>&6
1704 if test -n "$CC"; then
1705 ac_cv_prog_CC="$CC" # Let the user override the test.
1707 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1709 for ac_dir in $ac_dummy; do
1710 test -z "$ac_dir" && ac_dir=.
1711 if test -f $ac_dir/$ac_word; then
1720 if test -n "$CC"; then
1721 echo "$ac_t""$CC" 1>&6
1723 echo "$ac_t""no" 1>&6
1726 if test -z "$CC"; then
1727 # Extract the first word of "cc", so it can be a program name with args.
1728 set dummy cc; ac_word=$2
1729 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1730 echo "configure:1731: checking for $ac_word" >&5
1731 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1732 echo $ac_n "(cached) $ac_c" 1>&6
1734 if test -n "$CC"; then
1735 ac_cv_prog_CC="$CC" # Let the user override the test.
1737 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1740 for ac_dir in $ac_dummy; do
1741 test -z "$ac_dir" && ac_dir=.
1742 if test -f $ac_dir/$ac_word; then
1743 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1744 ac_prog_rejected=yes
1752 if test $ac_prog_rejected = yes; then
1753 # We found a bogon in the path, so make sure we never use it.
1754 set dummy $ac_cv_prog_CC
1756 if test $# -gt 0; then
1757 # We chose a different compiler from the bogus one.
1758 # However, it has the same basename, so the bogon will be chosen
1759 # first if we set CC to just the basename; use the full file name.
1761 set dummy "$ac_dir/$ac_word" "$@"
1769 if test -n "$CC"; then
1770 echo "$ac_t""$CC" 1>&6
1772 echo "$ac_t""no" 1>&6
1775 if test -z "$CC"; then
1776 case "`uname -s`" in
1778 # Extract the first word of "cl", so it can be a program name with args.
1779 set dummy cl; ac_word=$2
1780 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1781 echo "configure:1782: checking for $ac_word" >&5
1782 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1783 echo $ac_n "(cached) $ac_c" 1>&6
1785 if test -n "$CC"; then
1786 ac_cv_prog_CC="$CC" # Let the user override the test.
1788 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1790 for ac_dir in $ac_dummy; do
1791 test -z "$ac_dir" && ac_dir=.
1792 if test -f $ac_dir/$ac_word; then
1801 if test -n "$CC"; then
1802 echo "$ac_t""$CC" 1>&6
1804 echo "$ac_t""no" 1>&6
1809 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1812 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1813 echo "configure:1814: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1816 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1817 ac_cpp='$CPP $CPPFLAGS'
1818 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1819 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1820 cross_compiling=$ac_cv_prog_cc_cross
1822 cat > conftest.$ac_ext << EOF
1824 #line 1825 "configure"
1825 #include "confdefs.h"
1829 if { (eval echo configure:1830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1830 ac_cv_prog_cc_works=yes
1831 # If we can't run a trivial program, we are probably using a cross compiler.
1832 if (./conftest; exit) 2>/dev/null; then
1833 ac_cv_prog_cc_cross=no
1835 ac_cv_prog_cc_cross=yes
1838 echo "configure: failed program was:" >&5
1839 cat conftest.$ac_ext >&5
1840 ac_cv_prog_cc_works=no
1844 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1845 ac_cpp='$CPP $CPPFLAGS'
1846 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1847 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1848 cross_compiling=$ac_cv_prog_cc_cross
1850 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1851 if test $ac_cv_prog_cc_works = no; then
1852 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1854 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1855 echo "configure:1856: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1856 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1857 cross_compiling=$ac_cv_prog_cc_cross
1859 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1860 echo "configure:1861: checking whether we are using GNU C" >&5
1861 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1862 echo $ac_n "(cached) $ac_c" 1>&6
1864 cat > conftest.c <<EOF
1869 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1876 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1878 if test $ac_cv_prog_gcc = yes; then
1884 ac_test_CFLAGS="${CFLAGS+set}"
1885 ac_save_CFLAGS="$CFLAGS"
1887 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1888 echo "configure:1889: checking whether ${CC-cc} accepts -g" >&5
1889 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1890 echo $ac_n "(cached) $ac_c" 1>&6
1892 echo 'void f(){}' > conftest.c
1893 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1902 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1903 if test "$ac_test_CFLAGS" = set; then
1904 CFLAGS="$ac_save_CFLAGS"
1905 elif test $ac_cv_prog_cc_g = yes; then
1906 if test "$GCC" = yes; then
1912 if test "$GCC" = yes; then
1919 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1920 if test "${with_gnu_ld+set}" = set; then
1921 withval="$with_gnu_ld"
1922 test "$withval" = no || with_gnu_ld=yes
1928 if test "$ac_cv_prog_gcc" = yes; then
1929 # Check if gcc -print-prog-name=ld gives a path.
1930 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1931 echo "configure:1932: checking for ld used by GCC" >&5
1932 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1934 # Accept absolute paths.
1935 [\\/]* | [A-Za-z]:[\\/]*)
1936 re_direlt='/[^/][^/]*/\.\./'
1937 # Canonicalize the path of ld
1938 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1939 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1940 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1942 test -z "$LD" && LD="$ac_prog"
1945 # If it fails, then pretend we aren't using GCC.
1949 # If it is relative, then search for the first ld in PATH.
1953 elif test "$with_gnu_ld" = yes; then
1954 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1955 echo "configure:1956: checking for GNU ld" >&5
1957 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1958 echo "configure:1959: checking for non-GNU ld" >&5
1960 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1961 echo $ac_n "(cached) $ac_c" 1>&6
1963 if test -z "$LD"; then
1964 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1965 for ac_dir in $PATH; do
1966 test -z "$ac_dir" && ac_dir=.
1967 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1968 ac_cv_path_LD="$ac_dir/$ac_prog"
1969 # Check to see if the program is GNU ld. I'd rather use --version,
1970 # but apparently some GNU ld's only accept -v.
1971 # Break only if it was the GNU/non-GNU ld that we prefer.
1972 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1973 test "$with_gnu_ld" != no && break
1975 test "$with_gnu_ld" != yes && break
1981 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1986 if test -n "$LD"; then
1987 echo "$ac_t""$LD" 1>&6
1989 echo "$ac_t""no" 1>&6
1991 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1993 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1994 echo "configure:1995: checking if the linker ($LD) is GNU ld" >&5
1995 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1996 echo $ac_n "(cached) $ac_c" 1>&6
1998 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1999 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2000 ac_cv_prog_gnu_ld=yes
2002 ac_cv_prog_gnu_ld=no
2006 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2009 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2010 echo "configure:2011: checking for BSD-compatible nm" >&5
2011 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
2012 echo $ac_n "(cached) $ac_c" 1>&6
2014 if test -n "$NM"; then
2015 # Let the user override the test.
2018 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2019 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2020 test -z "$ac_dir" && ac_dir=.
2021 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
2022 # Check to see if the nm accepts a BSD-compat flag.
2023 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2024 # nm: unknown option "B" ignored
2025 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2026 ac_cv_path_NM="$ac_dir/nm -B"
2028 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2029 ac_cv_path_NM="$ac_dir/nm -p"
2032 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
2033 continue # so that we can try to find one that supports BSD flags
2038 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2043 echo "$ac_t""$NM" 1>&6
2046 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2047 echo "configure:2048: checking whether ln -s works" >&5
2048 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2049 echo $ac_n "(cached) $ac_c" 1>&6
2052 if ln -s X conftestdata 2>/dev/null
2055 ac_cv_prog_LN_S="ln -s"
2060 LN_S="$ac_cv_prog_LN_S"
2061 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2062 echo "$ac_t""yes" 1>&6
2064 echo "$ac_t""no" 1>&6
2068 # Check for any special flags to pass to ltconfig.
2069 libtool_flags="--cache-file=$cache_file"
2070 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2071 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2072 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2073 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2074 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2077 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2078 if test "${enable_libtool_lock+set}" = set; then
2079 enableval="$enable_libtool_lock"
2083 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2084 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2086 # Some flags need to be propagated to the compiler or linker for good
2090 # Find out which ABI we are using.
2091 echo '#line 2092 "configure"' > conftest.$ac_ext
2092 if { (eval echo configure:2093: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2093 case "`/usr/bin/file conftest.o`" in
2109 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2110 SAVE_CFLAGS="$CFLAGS"
2111 CFLAGS="$CFLAGS -belf"
2112 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2113 echo "configure:2114: checking whether the C compiler needs -belf" >&5
2114 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2115 echo $ac_n "(cached) $ac_c" 1>&6
2117 cat > conftest.$ac_ext <<EOF
2118 #line 2119 "configure"
2119 #include "confdefs.h"
2125 if { (eval echo configure:2126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2127 lt_cv_cc_needs_belf=yes
2129 echo "configure: failed program was:" >&5
2130 cat conftest.$ac_ext >&5
2132 lt_cv_cc_needs_belf=no
2137 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2138 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2139 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2140 CFLAGS="$SAVE_CFLAGS"
2148 # Save cache, so that ltconfig can load it
2149 cat > confcache <<\EOF
2150 # This file is a shell script that caches the results of configure
2151 # tests run on this system so they can be shared between configure
2152 # scripts and configure runs. It is not useful on other systems.
2153 # If it contains results you don't want to keep, you may remove or edit it.
2155 # By default, configure uses ./config.cache as the cache file,
2156 # creating it if it does not exist already. You can give configure
2157 # the --cache-file=FILE option to use a different cache file; that is
2158 # what configure does when it calls configure scripts in
2159 # subdirectories, so they share the cache.
2160 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2161 # config.status only pays attention to the cache file if you give it the
2162 # --recheck option to rerun configure.
2165 # The following way of writing the cache mishandles newlines in values,
2166 # but we know of no workaround that is simple, portable, and efficient.
2167 # So, don't put newlines in cache variables' values.
2168 # Ultrix sh set writes to stderr and can't be redirected directly,
2169 # and sets the high bit in the cache file unless we assign to the vars.
2171 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2173 # `set' does not quote correctly, so add quotes (double-quote substitution
2174 # turns \\\\ into \\, and sed turns \\ into \).
2176 -e "s/'/'\\\\''/g" \
2177 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2180 # `set' quotes correctly as required by POSIX, so do not add quotes.
2181 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2184 if cmp -s $cache_file confcache; then
2187 if test -w $cache_file; then
2188 echo "updating cache $cache_file"
2189 cat confcache > $cache_file
2191 echo "not updating unwritable cache $cache_file"
2197 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2198 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2199 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2200 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
2201 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
2202 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2203 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2204 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2206 # Reload cache, that may have been modified by ltconfig
2207 if test -r "$cache_file"; then
2208 echo "loading cache $cache_file"
2211 echo "creating cache $cache_file"
2216 # This can be used to rebuild libtool when needed
2217 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
2219 # Always use our own libtool.
2220 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2222 # Redirect the config.log output again, so that the ltconfig log is not
2223 # clobbered by the next message.
2224 exec 5>>./config.log
2227 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
2236 if test -d $srcdir/testsuite; then
2238 TESTSUBDIR_FALSE='#'
2244 # Check whether --enable-fast-character or --disable-fast-character was given.
2245 if test "${enable_fast_character+set}" = set; then
2246 enableval="$enable_fast_character"
2250 cat >> confdefs.h <<\EOF
2251 #define COMPACT_CHARACTER 1
2257 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2258 if test "${enable_libgcj_debug+set}" = set; then
2259 enableval="$enable_libgcj_debug"
2260 if test "$enable_libgcj_debug" = yes; then
2261 cat >> confdefs.h <<\EOF
2269 # Check whether --enable-interpreter or --disable-interpreter was given.
2270 if test "${enable_interpreter+set}" = set; then
2271 enableval="$enable_interpreter"
2272 if test "$enable_interpreter" = yes; then
2273 cat >> confdefs.h <<\EOF
2274 #define INTERPRETER 1
2285 # Check whether --with-ecos or --without-ecos was given.
2286 if test "${with_ecos+set}" = set; then
2287 withval="$with_ecos"
2288 TARGET_ECOS="$with_ecos"
2293 case "$TARGET_ECOS" in
2295 FILE_DESCRIPTOR=natFileDescriptorPosix.cc
2299 FILE_DESCRIPTOR=natFileDescriptorEcos.cc
2301 cat >> confdefs.h <<\EOF
2308 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2309 echo "configure:2310: checking how to run the C preprocessor" >&5
2310 # On Suns, sometimes $CPP names a directory.
2311 if test -n "$CPP" && test -d "$CPP"; then
2314 if test -z "$CPP"; then
2315 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2316 echo $ac_n "(cached) $ac_c" 1>&6
2318 # This must be in double quotes, not single quotes, because CPP may get
2319 # substituted into the Makefile and "${CC-cc}" will confuse make.
2321 # On the NeXT, cc -E runs the code through the compiler's parser,
2322 # not just through cpp.
2323 cat > conftest.$ac_ext <<EOF
2324 #line 2325 "configure"
2325 #include "confdefs.h"
2329 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2330 { (eval echo configure:2331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2331 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2332 if test -z "$ac_err"; then
2336 echo "configure: failed program was:" >&5
2337 cat conftest.$ac_ext >&5
2339 CPP="${CC-cc} -E -traditional-cpp"
2340 cat > conftest.$ac_ext <<EOF
2341 #line 2342 "configure"
2342 #include "confdefs.h"
2346 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2347 { (eval echo configure:2348: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2348 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2349 if test -z "$ac_err"; then
2353 echo "configure: failed program was:" >&5
2354 cat conftest.$ac_ext >&5
2356 CPP="${CC-cc} -nologo -E"
2357 cat > conftest.$ac_ext <<EOF
2358 #line 2359 "configure"
2359 #include "confdefs.h"
2363 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2364 { (eval echo configure:2365: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2365 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2366 if test -z "$ac_err"; then
2370 echo "configure: failed program was:" >&5
2371 cat conftest.$ac_ext >&5
2380 ac_cv_prog_CPP="$CPP"
2382 CPP="$ac_cv_prog_CPP"
2384 ac_cv_prog_CPP="$CPP"
2386 echo "$ac_t""$CPP" 1>&6
2388 cat > conftest.$ac_ext <<EOF
2389 #line 2390 "configure"
2390 #include "confdefs.h"
2393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2394 egrep "uint32_t" >/dev/null 2>&1; then
2396 cat >> confdefs.h <<\EOF
2397 #define HAVE_INT32_DEFINED 1
2403 cat > conftest.$ac_ext <<EOF
2404 #line 2405 "configure"
2405 #include "confdefs.h"
2406 #include <inttypes.h>
2408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2409 egrep "uint32_t" >/dev/null 2>&1; then
2411 cat >> confdefs.h <<\EOF
2412 #define HAVE_INT32_DEFINED 1
2418 cat > conftest.$ac_ext <<EOF
2419 #line 2420 "configure"
2420 #include "confdefs.h"
2421 #include <sys/types.h>
2423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2424 egrep "u_int32_t" >/dev/null 2>&1; then
2426 cat >> confdefs.h <<\EOF
2427 #define HAVE_BSD_INT32_DEFINED 1
2433 cat > conftest.$ac_ext <<EOF
2434 #line 2435 "configure"
2435 #include "confdefs.h"
2436 #include <sys/config.h>
2438 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2439 egrep "u_int32_t" >/dev/null 2>&1; then
2441 cat >> confdefs.h <<\EOF
2442 #define HAVE_BSD_INT32_DEFINED 1
2450 cat > conftest.$ac_ext <<EOF
2451 #line 2452 "configure"
2452 #include "confdefs.h"
2455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2456 egrep "mktime" >/dev/null 2>&1; then
2458 cat >> confdefs.h <<\EOF
2459 #define HAVE_MKTIME 1
2465 cat > conftest.$ac_ext <<EOF
2466 #line 2467 "configure"
2467 #include "confdefs.h"
2470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2471 egrep "localtime" >/dev/null 2>&1; then
2473 cat >> confdefs.h <<\EOF
2474 #define HAVE_LOCALTIME 1
2481 test -d java || mkdir java
2482 test -d java/io || mkdir java/io
2485 test -d java/lang || mkdir java/lang
2492 # Check whether --with-system-zlib or --without-system-zlib was given.
2493 if test "${with_system_zlib+set}" = set; then
2494 withval="$with_system_zlib"
2503 echo $ac_n "checking for garbage collector to use""... $ac_c" 1>&6
2504 echo "configure:2505: checking for garbage collector to use" >&5
2505 # Check whether --enable-java-gc or --disable-java-gc was given.
2506 if test "${enable_java_gc+set}" = set; then
2507 enableval="$enable_java_gc"
2521 echo "$ac_t""boehm" 1>&6
2522 GCDEPS='$(top_builddir)/../boehm-gc/libgcjgc.la'
2523 # We include the path to the boehm-gc build directory.
2524 # See Makefile.am to understand why.
2525 GCLIBS="$GCDEPS -L\$(here)/../boehm-gc/$libsubdir"
2526 GCINCS='-I$(top_srcdir)/../boehm-gc -I$(top_builddir)/../boehm-gc'
2528 GCINCS="$GCINCS `cat ../boehm-gc/boehm-cflags`"
2531 cat >> confdefs.h <<\EOF
2532 #define HAVE_BOEHM_GC 1
2537 echo "$ac_t""none" 1>&6
2542 { echo "configure: error: unrecognized collector \"$GC\"" 1>&2; exit 1; }
2553 echo $ac_n "checking for threads package to use""... $ac_c" 1>&6
2554 echo "configure:2555: checking for threads package to use" >&5
2555 # Check whether --enable-threads or --disable-threads was given.
2556 if test "${enable_threads+set}" = set; then
2557 enableval="$enable_threads"
2564 if test "$THREADS" = yes; then
2570 # FIXME: this isn't correct in all cases.
2577 # FIXME: for now, choose POSIX, because we implement that.
2578 # Later, choose irix threads.
2582 # FIXME: for now, choose POSIX, because we implement that.
2583 # Later, choose solaris threads.
2601 cat >> confdefs.h <<\EOF
2602 #define LINUX_THREADS 1
2610 decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
2611 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
2614 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
2617 echo "$ac_t""$THREADS" 1>&6
2627 THREADLIBS=-lpthread
2628 THREADSPEC=-lpthread
2629 THREADOBJS=posix-threads.lo
2630 THREADH=posix-threads.h
2631 # MIT pthreads doesn't seem to have the mutexattr functions.
2632 # But for now we don't check for it. We just assume you aren't
2633 # using MIT pthreads.
2634 cat >> confdefs.h <<\EOF
2635 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
2641 THREADDEPS='$(top_builddir)/../qthreads/libgcjcoop.la'
2642 # We include the path to the qthreads build directory.
2643 # See Makefile.am to understand why.
2644 THREADLIBS="$THREADDEPS -L\$(here)/../qthreads/$libsubdir"
2645 THREADSPEC='-lgcjcoop'
2646 THREADOBJS=quick-threads.lo
2647 THREADINCS='-I$(top_srcdir)/../qthreads'
2648 THREADH=quick-threads.h
2652 THREADOBJS=no-threads.lo
2653 THREADH=no-threads.h
2665 if test "$GCC" = yes; then
2676 # Find eh-common.h and support headers. If we're in the tree with
2677 # gcc, then look there. Otherwise look in compat-include. If all else
2678 # fails, just hope the user has set things up somehow.
2679 if test -r $srcdir/../gcc/eh-common.h; then
2680 EH_COMMON_INCLUDE='-I$(top_srcdir)/../gcc -I$(top_srcdir)/../include'
2682 if test -d $srcdir/../compat-include; then
2683 EH_COMMON_INCLUDE='-I$(top_srcdir)/../compat-include'
2689 if test -n "${with_cross_host}"; then
2690 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
2691 # may not work correctly, because the compiler may not be able to
2694 # We assume newlib. This lets us hard-code the functions we know
2696 cat >> confdefs.h <<\EOF
2697 #define HAVE_MEMMOVE 1
2700 cat >> confdefs.h <<\EOF
2701 #define HAVE_MEMCPY 1
2704 cat >> confdefs.h <<\EOF
2705 #define HAVE_STRERROR 1
2708 cat >> confdefs.h <<\EOF
2709 #define HAVE_CTIME_R 1
2712 cat >> confdefs.h <<\EOF
2713 #define HAVE_GMTIME_R 1
2716 cat >> confdefs.h <<\EOF
2717 #define HAVE_LOCALTIME_R 1
2720 cat >> confdefs.h <<\EOF
2721 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
2724 cat >> confdefs.h <<\EOF
2725 #define HAVE_ALLOCA 1
2731 # If Canadian cross, then don't pick up tools from the build
2733 if test "$build" != "$with_cross_host"; then
2736 GCJ="${target_alias}/gcj"
2741 # Some POSIX thread systems don't have pthread_mutexattr_settype.
2743 for ac_func in strerror ioctl select open fsync sleep
2745 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2746 echo "configure:2747: checking for $ac_func" >&5
2747 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2748 echo $ac_n "(cached) $ac_c" 1>&6
2750 cat > conftest.$ac_ext <<EOF
2751 #line 2752 "configure"
2752 #include "confdefs.h"
2753 /* System header to define __stub macros and hopefully few prototypes,
2754 which can conflict with char $ac_func(); below. */
2756 /* Override any gcc2 internal prototype to avoid an error. */
2757 /* We use char because int might match the return type of a gcc2
2758 builtin and then its argument prototype would still apply. */
2763 /* The GNU C library defines this for functions which it implements
2764 to always fail with ENOSYS. Some functions are actually named
2765 something starting with __ and the normal name is an alias. */
2766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2774 if { (eval echo configure:2775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2776 eval "ac_cv_func_$ac_func=yes"
2778 echo "configure: failed program was:" >&5
2779 cat conftest.$ac_ext >&5
2781 eval "ac_cv_func_$ac_func=no"
2786 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2787 echo "$ac_t""yes" 1>&6
2788 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2789 cat >> confdefs.h <<EOF
2790 #define $ac_tr_func 1
2794 echo "$ac_t""no" 1>&6
2798 for ac_func in ctime_r ctime
2800 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2801 echo "configure:2802: checking for $ac_func" >&5
2802 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2803 echo $ac_n "(cached) $ac_c" 1>&6
2805 cat > conftest.$ac_ext <<EOF
2806 #line 2807 "configure"
2807 #include "confdefs.h"
2808 /* System header to define __stub macros and hopefully few prototypes,
2809 which can conflict with char $ac_func(); below. */
2811 /* Override any gcc2 internal prototype to avoid an error. */
2812 /* We use char because int might match the return type of a gcc2
2813 builtin and then its argument prototype would still apply. */
2818 /* The GNU C library defines this for functions which it implements
2819 to always fail with ENOSYS. Some functions are actually named
2820 something starting with __ and the normal name is an alias. */
2821 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2829 if { (eval echo configure:2830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2831 eval "ac_cv_func_$ac_func=yes"
2833 echo "configure: failed program was:" >&5
2834 cat conftest.$ac_ext >&5
2836 eval "ac_cv_func_$ac_func=no"
2841 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2842 echo "$ac_t""yes" 1>&6
2843 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2844 cat >> confdefs.h <<EOF
2845 #define $ac_tr_func 1
2849 echo "$ac_t""no" 1>&6
2853 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r
2855 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2856 echo "configure:2857: checking for $ac_func" >&5
2857 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2858 echo $ac_n "(cached) $ac_c" 1>&6
2860 cat > conftest.$ac_ext <<EOF
2861 #line 2862 "configure"
2862 #include "confdefs.h"
2863 /* System header to define __stub macros and hopefully few prototypes,
2864 which can conflict with char $ac_func(); below. */
2866 /* Override any gcc2 internal prototype to avoid an error. */
2867 /* We use char because int might match the return type of a gcc2
2868 builtin and then its argument prototype would still apply. */
2873 /* The GNU C library defines this for functions which it implements
2874 to always fail with ENOSYS. Some functions are actually named
2875 something starting with __ and the normal name is an alias. */
2876 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2884 if { (eval echo configure:2885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2886 eval "ac_cv_func_$ac_func=yes"
2888 echo "configure: failed program was:" >&5
2889 cat conftest.$ac_ext >&5
2891 eval "ac_cv_func_$ac_func=no"
2896 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2897 echo "$ac_t""yes" 1>&6
2898 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2899 cat >> confdefs.h <<EOF
2900 #define $ac_tr_func 1
2904 echo "$ac_t""no" 1>&6
2908 for ac_func in access stat mkdir rename rmdir unlink realpath
2910 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2911 echo "configure:2912: checking for $ac_func" >&5
2912 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2913 echo $ac_n "(cached) $ac_c" 1>&6
2915 cat > conftest.$ac_ext <<EOF
2916 #line 2917 "configure"
2917 #include "confdefs.h"
2918 /* System header to define __stub macros and hopefully few prototypes,
2919 which can conflict with char $ac_func(); below. */
2921 /* Override any gcc2 internal prototype to avoid an error. */
2922 /* We use char because int might match the return type of a gcc2
2923 builtin and then its argument prototype would still apply. */
2928 /* The GNU C library defines this for functions which it implements
2929 to always fail with ENOSYS. Some functions are actually named
2930 something starting with __ and the normal name is an alias. */
2931 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2939 if { (eval echo configure:2940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2941 eval "ac_cv_func_$ac_func=yes"
2943 echo "configure: failed program was:" >&5
2944 cat conftest.$ac_ext >&5
2946 eval "ac_cv_func_$ac_func=no"
2951 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2952 echo "$ac_t""yes" 1>&6
2953 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2954 cat >> confdefs.h <<EOF
2955 #define $ac_tr_func 1
2959 echo "$ac_t""no" 1>&6
2963 for ac_func in inet_aton inet_addr
2965 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2966 echo "configure:2967: checking for $ac_func" >&5
2967 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2968 echo $ac_n "(cached) $ac_c" 1>&6
2970 cat > conftest.$ac_ext <<EOF
2971 #line 2972 "configure"
2972 #include "confdefs.h"
2973 /* System header to define __stub macros and hopefully few prototypes,
2974 which can conflict with char $ac_func(); below. */
2976 /* Override any gcc2 internal prototype to avoid an error. */
2977 /* We use char because int might match the return type of a gcc2
2978 builtin and then its argument prototype would still apply. */
2983 /* The GNU C library defines this for functions which it implements
2984 to always fail with ENOSYS. Some functions are actually named
2985 something starting with __ and the normal name is an alias. */
2986 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2994 if { (eval echo configure:2995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2996 eval "ac_cv_func_$ac_func=yes"
2998 echo "configure: failed program was:" >&5
2999 cat conftest.$ac_ext >&5
3001 eval "ac_cv_func_$ac_func=no"
3006 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3007 echo "$ac_t""yes" 1>&6
3008 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3009 cat >> confdefs.h <<EOF
3010 #define $ac_tr_func 1
3014 echo "$ac_t""no" 1>&6
3018 for ac_func in inet_pton uname inet_ntoa
3020 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3021 echo "configure:3022: checking for $ac_func" >&5
3022 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3023 echo $ac_n "(cached) $ac_c" 1>&6
3025 cat > conftest.$ac_ext <<EOF
3026 #line 3027 "configure"
3027 #include "confdefs.h"
3028 /* System header to define __stub macros and hopefully few prototypes,
3029 which can conflict with char $ac_func(); below. */
3031 /* Override any gcc2 internal prototype to avoid an error. */
3032 /* We use char because int might match the return type of a gcc2
3033 builtin and then its argument prototype would still apply. */
3038 /* The GNU C library defines this for functions which it implements
3039 to always fail with ENOSYS. Some functions are actually named
3040 something starting with __ and the normal name is an alias. */
3041 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3049 if { (eval echo configure:3050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3051 eval "ac_cv_func_$ac_func=yes"
3053 echo "configure: failed program was:" >&5
3054 cat conftest.$ac_ext >&5
3056 eval "ac_cv_func_$ac_func=no"
3061 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3062 echo "$ac_t""yes" 1>&6
3063 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3064 cat >> confdefs.h <<EOF
3065 #define $ac_tr_func 1
3069 echo "$ac_t""no" 1>&6
3074 for ac_func in gethostbyname_r
3076 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3077 echo "configure:3078: checking for $ac_func" >&5
3078 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3079 echo $ac_n "(cached) $ac_c" 1>&6
3081 cat > conftest.$ac_ext <<EOF
3082 #line 3083 "configure"
3083 #include "confdefs.h"
3084 /* System header to define __stub macros and hopefully few prototypes,
3085 which can conflict with char $ac_func(); below. */
3087 /* Override any gcc2 internal prototype to avoid an error. */
3088 /* We use char because int might match the return type of a gcc2
3089 builtin and then its argument prototype would still apply. */
3094 /* The GNU C library defines this for functions which it implements
3095 to always fail with ENOSYS. Some functions are actually named
3096 something starting with __ and the normal name is an alias. */
3097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3105 if { (eval echo configure:3106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3107 eval "ac_cv_func_$ac_func=yes"
3109 echo "configure: failed program was:" >&5
3110 cat conftest.$ac_ext >&5
3112 eval "ac_cv_func_$ac_func=no"
3117 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3118 echo "$ac_t""yes" 1>&6
3119 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3120 cat >> confdefs.h <<EOF
3121 #define $ac_tr_func 1
3124 cat >> confdefs.h <<\EOF
3125 #define HAVE_GETHOSTBYNAME_R 1
3128 # There are two different kinds of gethostbyname_r.
3129 # We look for the one that returns `int'.
3130 # Hopefully this check is robust enough.
3131 cat > conftest.$ac_ext <<EOF
3132 #line 3133 "configure"
3133 #include "confdefs.h"
3136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3137 egrep "int.*gethostbyname_r" >/dev/null 2>&1; then
3140 cat >> confdefs.h <<\EOF
3141 #define GETHOSTBYNAME_R_RETURNS_INT 1
3149 *" -D_REENTRANT "*) ;;
3151 echo $ac_n "checking whether gethostbyname_r declaration requires -D_REENTRANT""... $ac_c" 1>&6
3152 echo "configure:3153: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
3153 if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
3154 echo $ac_n "(cached) $ac_c" 1>&6
3158 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3159 ac_cpp='$CXXCPP $CPPFLAGS'
3160 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3161 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3162 cross_compiling=$ac_cv_prog_cxx_cross
3164 cat > conftest.$ac_ext <<EOF
3165 #line 3166 "configure"
3166 #include "confdefs.h"
3169 gethostbyname_r("", 0, 0);
3172 if { (eval echo configure:3173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3174 libjava_cv_gethostbyname_r_needs_reentrant=no
3176 echo "configure: failed program was:" >&5
3177 cat conftest.$ac_ext >&5
3179 CPPFLAGS_SAVE="$CPPFLAGS"
3180 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
3181 cat > conftest.$ac_ext <<EOF
3182 #line 3183 "configure"
3183 #include "confdefs.h"
3186 gethostbyname_r("", 0, 0);
3189 if { (eval echo configure:3190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3191 libjava_cv_gethostbyname_r_needs_reentrant=yes
3193 echo "configure: failed program was:" >&5
3194 cat conftest.$ac_ext >&5
3196 libjava_cv_gethostbyname_r_needs_reentrant=fail
3199 CPPFLAGS="$CPPFLAGS_SAVE"
3204 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3205 ac_cpp='$CPP $CPPFLAGS'
3206 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3207 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3208 cross_compiling=$ac_cv_prog_cc_cross
3213 echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
3214 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
3215 cat >> confdefs.h <<\EOF
3216 #define GETHOSTBYNAME_R_NEEDS_REENTRANT 1
3223 echo $ac_n "checking for struct hostent_data""... $ac_c" 1>&6
3224 echo "configure:3225: checking for struct hostent_data" >&5
3225 if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
3226 echo $ac_n "(cached) $ac_c" 1>&6
3228 cat > conftest.$ac_ext <<EOF
3229 #line 3230 "configure"
3230 #include "confdefs.h"
3232 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
3233 # define _REENTRANT 1
3237 struct hostent_data data;
3240 if { (eval echo configure:3241: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3242 libjava_cv_struct_hostent_data=yes
3244 echo "configure: failed program was:" >&5
3245 cat conftest.$ac_ext >&5
3247 libjava_cv_struct_hostent_data=no
3252 echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
3253 if test "x$libjava_cv_struct_hostent_data" = xyes; then
3254 cat >> confdefs.h <<\EOF
3255 #define HAVE_STRUCT_HOSTENT_DATA 1
3261 echo "$ac_t""no" 1>&6
3266 for ac_func in gethostbyaddr_r
3268 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3269 echo "configure:3270: checking for $ac_func" >&5
3270 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3271 echo $ac_n "(cached) $ac_c" 1>&6
3273 cat > conftest.$ac_ext <<EOF
3274 #line 3275 "configure"
3275 #include "confdefs.h"
3276 /* System header to define __stub macros and hopefully few prototypes,
3277 which can conflict with char $ac_func(); below. */
3279 /* Override any gcc2 internal prototype to avoid an error. */
3280 /* We use char because int might match the return type of a gcc2
3281 builtin and then its argument prototype would still apply. */
3286 /* The GNU C library defines this for functions which it implements
3287 to always fail with ENOSYS. Some functions are actually named
3288 something starting with __ and the normal name is an alias. */
3289 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3297 if { (eval echo configure:3298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3299 eval "ac_cv_func_$ac_func=yes"
3301 echo "configure: failed program was:" >&5
3302 cat conftest.$ac_ext >&5
3304 eval "ac_cv_func_$ac_func=no"
3309 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3310 echo "$ac_t""yes" 1>&6
3311 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3312 cat >> confdefs.h <<EOF
3313 #define $ac_tr_func 1
3316 cat >> confdefs.h <<\EOF
3317 #define HAVE_GETHOSTBYADDR_R 1
3320 # There are two different kinds of gethostbyaddr_r.
3321 # We look for the one that returns `int'.
3322 # Hopefully this check is robust enough.
3323 cat > conftest.$ac_ext <<EOF
3324 #line 3325 "configure"
3325 #include "confdefs.h"
3328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3329 egrep "int.*gethostbyaddr_r" >/dev/null 2>&1; then
3332 cat >> confdefs.h <<\EOF
3333 #define GETHOSTBYADDR_R_RETURNS_INT 1
3340 echo "$ac_t""no" 1>&6
3345 for ac_func in gethostname
3347 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3348 echo "configure:3349: checking for $ac_func" >&5
3349 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3350 echo $ac_n "(cached) $ac_c" 1>&6
3352 cat > conftest.$ac_ext <<EOF
3353 #line 3354 "configure"
3354 #include "confdefs.h"
3355 /* System header to define __stub macros and hopefully few prototypes,
3356 which can conflict with char $ac_func(); below. */
3358 /* Override any gcc2 internal prototype to avoid an error. */
3359 /* We use char because int might match the return type of a gcc2
3360 builtin and then its argument prototype would still apply. */
3365 /* The GNU C library defines this for functions which it implements
3366 to always fail with ENOSYS. Some functions are actually named
3367 something starting with __ and the normal name is an alias. */
3368 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3376 if { (eval echo configure:3377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3378 eval "ac_cv_func_$ac_func=yes"
3380 echo "configure: failed program was:" >&5
3381 cat conftest.$ac_ext >&5
3383 eval "ac_cv_func_$ac_func=no"
3388 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3389 echo "$ac_t""yes" 1>&6
3390 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3391 cat >> confdefs.h <<EOF
3392 #define $ac_tr_func 1
3395 cat >> confdefs.h <<\EOF
3396 #define HAVE_GETHOSTNAME 1
3399 cat > conftest.$ac_ext <<EOF
3400 #line 3401 "configure"
3401 #include "confdefs.h"
3404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3405 egrep "gethostname" >/dev/null 2>&1; then
3408 cat >> confdefs.h <<\EOF
3409 #define HAVE_GETHOSTNAME_DECL 1
3416 echo "$ac_t""no" 1>&6
3421 # Look for these functions in the thread library.
3423 LIBS="$LIBS $THREADLIBS"
3424 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
3426 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3427 echo "configure:3428: checking for $ac_func" >&5
3428 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3429 echo $ac_n "(cached) $ac_c" 1>&6
3431 cat > conftest.$ac_ext <<EOF
3432 #line 3433 "configure"
3433 #include "confdefs.h"
3434 /* System header to define __stub macros and hopefully few prototypes,
3435 which can conflict with char $ac_func(); below. */
3437 /* Override any gcc2 internal prototype to avoid an error. */
3438 /* We use char because int might match the return type of a gcc2
3439 builtin and then its argument prototype would still apply. */
3444 /* The GNU C library defines this for functions which it implements
3445 to always fail with ENOSYS. Some functions are actually named
3446 something starting with __ and the normal name is an alias. */
3447 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3455 if { (eval echo configure:3456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3457 eval "ac_cv_func_$ac_func=yes"
3459 echo "configure: failed program was:" >&5
3460 cat conftest.$ac_ext >&5
3462 eval "ac_cv_func_$ac_func=no"
3467 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3468 echo "$ac_t""yes" 1>&6
3469 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3470 cat >> confdefs.h <<EOF
3471 #define $ac_tr_func 1
3475 echo "$ac_t""no" 1>&6
3480 # Look for sched_yield. Sometimes it is in the posix4 library
3481 # (Solaris) and sometimes in -lrt (x86 Solaris).
3482 for ac_func in sched_yield
3484 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3485 echo "configure:3486: checking for $ac_func" >&5
3486 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3487 echo $ac_n "(cached) $ac_c" 1>&6
3489 cat > conftest.$ac_ext <<EOF
3490 #line 3491 "configure"
3491 #include "confdefs.h"
3492 /* System header to define __stub macros and hopefully few prototypes,
3493 which can conflict with char $ac_func(); below. */
3495 /* Override any gcc2 internal prototype to avoid an error. */
3496 /* We use char because int might match the return type of a gcc2
3497 builtin and then its argument prototype would still apply. */
3502 /* The GNU C library defines this for functions which it implements
3503 to always fail with ENOSYS. Some functions are actually named
3504 something starting with __ and the normal name is an alias. */
3505 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3513 if { (eval echo configure:3514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3515 eval "ac_cv_func_$ac_func=yes"
3517 echo "configure: failed program was:" >&5
3518 cat conftest.$ac_ext >&5
3520 eval "ac_cv_func_$ac_func=no"
3525 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3526 echo "$ac_t""yes" 1>&6
3527 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3528 cat >> confdefs.h <<EOF
3529 #define $ac_tr_func 1
3533 echo "$ac_t""no" 1>&6
3534 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
3535 echo "configure:3536: checking for sched_yield in -lposix4" >&5
3536 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
3537 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3538 echo $ac_n "(cached) $ac_c" 1>&6
3540 ac_save_LIBS="$LIBS"
3541 LIBS="-lposix4 $LIBS"
3542 cat > conftest.$ac_ext <<EOF
3543 #line 3544 "configure"
3544 #include "confdefs.h"
3545 /* Override any gcc2 internal prototype to avoid an error. */
3546 /* We use char because int might match the return type of a gcc2
3547 builtin and then its argument prototype would still apply. */
3554 if { (eval echo configure:3555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3556 eval "ac_cv_lib_$ac_lib_var=yes"
3558 echo "configure: failed program was:" >&5
3559 cat conftest.$ac_ext >&5
3561 eval "ac_cv_lib_$ac_lib_var=no"
3564 LIBS="$ac_save_LIBS"
3567 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3568 echo "$ac_t""yes" 1>&6
3570 cat >> confdefs.h <<\EOF
3571 #define HAVE_SCHED_YIELD 1
3574 THREADLIBS="$THREADLIBS -lposix4"
3576 echo "$ac_t""no" 1>&6
3578 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
3579 echo "configure:3580: checking for sched_yield in -lrt" >&5
3580 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
3581 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3582 echo $ac_n "(cached) $ac_c" 1>&6
3584 ac_save_LIBS="$LIBS"
3586 cat > conftest.$ac_ext <<EOF
3587 #line 3588 "configure"
3588 #include "confdefs.h"
3589 /* Override any gcc2 internal prototype to avoid an error. */
3590 /* We use char because int might match the return type of a gcc2
3591 builtin and then its argument prototype would still apply. */
3598 if { (eval echo configure:3599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3600 eval "ac_cv_lib_$ac_lib_var=yes"
3602 echo "configure: failed program was:" >&5
3603 cat conftest.$ac_ext >&5
3605 eval "ac_cv_lib_$ac_lib_var=no"
3608 LIBS="$ac_save_LIBS"
3611 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3612 echo "$ac_t""yes" 1>&6
3614 cat >> confdefs.h <<\EOF
3615 #define HAVE_SCHED_YIELD 1
3618 THREADLIBS="$THREADLIBS -lrt"
3620 echo "$ac_t""no" 1>&6
3630 # We require a way to get the time.
3632 for ac_func in gettimeofday time ftime
3634 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3635 echo "configure:3636: checking for $ac_func" >&5
3636 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3637 echo $ac_n "(cached) $ac_c" 1>&6
3639 cat > conftest.$ac_ext <<EOF
3640 #line 3641 "configure"
3641 #include "confdefs.h"
3642 /* System header to define __stub macros and hopefully few prototypes,
3643 which can conflict with char $ac_func(); below. */
3645 /* Override any gcc2 internal prototype to avoid an error. */
3646 /* We use char because int might match the return type of a gcc2
3647 builtin and then its argument prototype would still apply. */
3652 /* The GNU C library defines this for functions which it implements
3653 to always fail with ENOSYS. Some functions are actually named
3654 something starting with __ and the normal name is an alias. */
3655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3663 if { (eval echo configure:3664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3665 eval "ac_cv_func_$ac_func=yes"
3667 echo "configure: failed program was:" >&5
3668 cat conftest.$ac_ext >&5
3670 eval "ac_cv_func_$ac_func=no"
3675 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3676 echo "$ac_t""yes" 1>&6
3677 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3678 cat >> confdefs.h <<EOF
3679 #define $ac_tr_func 1
3683 echo "$ac_t""no" 1>&6
3687 if test "$time_found" = no; then
3688 { echo "configure: error: no function found to get the time" 1>&2; exit 1; }
3691 for ac_func in memmove
3693 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3694 echo "configure:3695: checking for $ac_func" >&5
3695 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3696 echo $ac_n "(cached) $ac_c" 1>&6
3698 cat > conftest.$ac_ext <<EOF
3699 #line 3700 "configure"
3700 #include "confdefs.h"
3701 /* System header to define __stub macros and hopefully few prototypes,
3702 which can conflict with char $ac_func(); below. */
3704 /* Override any gcc2 internal prototype to avoid an error. */
3705 /* We use char because int might match the return type of a gcc2
3706 builtin and then its argument prototype would still apply. */
3711 /* The GNU C library defines this for functions which it implements
3712 to always fail with ENOSYS. Some functions are actually named
3713 something starting with __ and the normal name is an alias. */
3714 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3722 if { (eval echo configure:3723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3724 eval "ac_cv_func_$ac_func=yes"
3726 echo "configure: failed program was:" >&5
3727 cat conftest.$ac_ext >&5
3729 eval "ac_cv_func_$ac_func=no"
3734 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3735 echo "$ac_t""yes" 1>&6
3736 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3737 cat >> confdefs.h <<EOF
3738 #define $ac_tr_func 1
3742 echo "$ac_t""no" 1>&6
3747 # We require memcpy.
3749 for ac_func in memcpy
3751 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3752 echo "configure:3753: checking for $ac_func" >&5
3753 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3754 echo $ac_n "(cached) $ac_c" 1>&6
3756 cat > conftest.$ac_ext <<EOF
3757 #line 3758 "configure"
3758 #include "confdefs.h"
3759 /* System header to define __stub macros and hopefully few prototypes,
3760 which can conflict with char $ac_func(); below. */
3762 /* Override any gcc2 internal prototype to avoid an error. */
3763 /* We use char because int might match the return type of a gcc2
3764 builtin and then its argument prototype would still apply. */
3769 /* The GNU C library defines this for functions which it implements
3770 to always fail with ENOSYS. Some functions are actually named
3771 something starting with __ and the normal name is an alias. */
3772 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3780 if { (eval echo configure:3781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3782 eval "ac_cv_func_$ac_func=yes"
3784 echo "configure: failed program was:" >&5
3785 cat conftest.$ac_ext >&5
3787 eval "ac_cv_func_$ac_func=no"
3792 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3793 echo "$ac_t""yes" 1>&6
3794 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3795 cat >> confdefs.h <<EOF
3796 #define $ac_tr_func 1
3800 echo "$ac_t""no" 1>&6
3804 if test "$memcpy_found" = no; then
3805 { echo "configure: error: memcpy is required" 1>&2; exit 1; }
3808 # Some library-finding code we stole from Tcl.
3809 #--------------------------------------------------------------------
3810 # Check for the existence of the -lsocket and -lnsl libraries.
3811 # The order here is important, so that they end up in the right
3812 # order in the command line generated by make. Here are some
3813 # special considerations:
3814 # 1. Use "connect" and "accept" to check for -lsocket, and
3815 # "gethostbyname" to check for -lnsl.
3816 # 2. Use each function name only once: can't redo a check because
3817 # autoconf caches the results of the last check and won't redo it.
3818 # 3. Use -lnsl and -lsocket only if they supply procedures that
3819 # aren't already present in the normal libraries. This is because
3820 # IRIX 5.2 has libraries, but they aren't needed and they're
3821 # bogus: they goof up name resolution if used.
3822 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
3823 # To get around this problem, check for both libraries together
3824 # if -lsocket doesn't work by itself.
3825 #--------------------------------------------------------------------
3827 echo $ac_n "checking for socket libraries""... $ac_c" 1>&6
3828 echo "configure:3829: checking for socket libraries" >&5
3829 if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
3830 echo $ac_n "(cached) $ac_c" 1>&6
3834 unset ac_cv_func_connect
3835 echo $ac_n "checking for connect""... $ac_c" 1>&6
3836 echo "configure:3837: checking for connect" >&5
3837 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3838 echo $ac_n "(cached) $ac_c" 1>&6
3840 cat > conftest.$ac_ext <<EOF
3841 #line 3842 "configure"
3842 #include "confdefs.h"
3843 /* System header to define __stub macros and hopefully few prototypes,
3844 which can conflict with char connect(); below. */
3846 /* Override any gcc2 internal prototype to avoid an error. */
3847 /* We use char because int might match the return type of a gcc2
3848 builtin and then its argument prototype would still apply. */
3853 /* The GNU C library defines this for functions which it implements
3854 to always fail with ENOSYS. Some functions are actually named
3855 something starting with __ and the normal name is an alias. */
3856 #if defined (__stub_connect) || defined (__stub___connect)
3864 if { (eval echo configure:3865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3866 eval "ac_cv_func_connect=yes"
3868 echo "configure: failed program was:" >&5
3869 cat conftest.$ac_ext >&5
3871 eval "ac_cv_func_connect=no"
3876 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3877 echo "$ac_t""yes" 1>&6
3880 echo "$ac_t""no" 1>&6
3884 if test "$gcj_checkSocket" = 1; then
3885 unset ac_cv_func_connect
3886 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
3887 echo "configure:3888: checking for main in -lsocket" >&5
3888 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
3889 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3890 echo $ac_n "(cached) $ac_c" 1>&6
3892 ac_save_LIBS="$LIBS"
3893 LIBS="-lsocket $LIBS"
3894 cat > conftest.$ac_ext <<EOF
3895 #line 3896 "configure"
3896 #include "confdefs.h"
3902 if { (eval echo configure:3903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3904 eval "ac_cv_lib_$ac_lib_var=yes"
3906 echo "configure: failed program was:" >&5
3907 cat conftest.$ac_ext >&5
3909 eval "ac_cv_lib_$ac_lib_var=no"
3912 LIBS="$ac_save_LIBS"
3915 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3916 echo "$ac_t""yes" 1>&6
3917 gcj_cv_lib_sockets="-lsocket"
3919 echo "$ac_t""no" 1>&6
3924 if test "$gcj_checkBoth" = 1; then
3926 LIBS="$LIBS -lsocket -lnsl"
3927 unset ac_cv_func_accept
3928 echo $ac_n "checking for accept""... $ac_c" 1>&6
3929 echo "configure:3930: checking for accept" >&5
3930 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
3931 echo $ac_n "(cached) $ac_c" 1>&6
3933 cat > conftest.$ac_ext <<EOF
3934 #line 3935 "configure"
3935 #include "confdefs.h"
3936 /* System header to define __stub macros and hopefully few prototypes,
3937 which can conflict with char accept(); below. */
3939 /* Override any gcc2 internal prototype to avoid an error. */
3940 /* We use char because int might match the return type of a gcc2
3941 builtin and then its argument prototype would still apply. */
3946 /* The GNU C library defines this for functions which it implements
3947 to always fail with ENOSYS. Some functions are actually named
3948 something starting with __ and the normal name is an alias. */
3949 #if defined (__stub_accept) || defined (__stub___accept)
3957 if { (eval echo configure:3958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3959 eval "ac_cv_func_accept=yes"
3961 echo "configure: failed program was:" >&5
3962 cat conftest.$ac_ext >&5
3964 eval "ac_cv_func_accept=no"
3969 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
3970 echo "$ac_t""yes" 1>&6
3972 gcj_cv_lib_sockets="-lsocket -lnsl"
3974 echo "$ac_t""no" 1>&6
3977 unset ac_cv_func_accept
3980 unset ac_cv_func_gethostbyname
3982 LIBS="$LIBS $gcj_cv_lib_sockets"
3983 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3984 echo "configure:3985: checking for gethostbyname" >&5
3985 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3986 echo $ac_n "(cached) $ac_c" 1>&6
3988 cat > conftest.$ac_ext <<EOF
3989 #line 3990 "configure"
3990 #include "confdefs.h"
3991 /* System header to define __stub macros and hopefully few prototypes,
3992 which can conflict with char gethostbyname(); below. */
3994 /* Override any gcc2 internal prototype to avoid an error. */
3995 /* We use char because int might match the return type of a gcc2
3996 builtin and then its argument prototype would still apply. */
3997 char gethostbyname();
4001 /* The GNU C library defines this for functions which it implements
4002 to always fail with ENOSYS. Some functions are actually named
4003 something starting with __ and the normal name is an alias. */
4004 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4012 if { (eval echo configure:4013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4014 eval "ac_cv_func_gethostbyname=yes"
4016 echo "configure: failed program was:" >&5
4017 cat conftest.$ac_ext >&5
4019 eval "ac_cv_func_gethostbyname=no"
4024 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
4025 echo "$ac_t""yes" 1>&6
4028 echo "$ac_t""no" 1>&6
4029 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4030 echo "configure:4031: checking for main in -lnsl" >&5
4031 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
4032 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4033 echo $ac_n "(cached) $ac_c" 1>&6
4035 ac_save_LIBS="$LIBS"
4037 cat > conftest.$ac_ext <<EOF
4038 #line 4039 "configure"
4039 #include "confdefs.h"
4045 if { (eval echo configure:4046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4047 eval "ac_cv_lib_$ac_lib_var=yes"
4049 echo "configure: failed program was:" >&5
4050 cat conftest.$ac_ext >&5
4052 eval "ac_cv_lib_$ac_lib_var=no"
4055 LIBS="$ac_save_LIBS"
4058 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4059 echo "$ac_t""yes" 1>&6
4060 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
4062 echo "$ac_t""no" 1>&6
4067 unset ac_cv_func_gethostbyname
4072 echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
4073 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
4075 if test "$enable_interpreter" = yes; then
4079 if test "$with_system_zlib" = yes; then
4080 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
4081 echo "configure:4082: checking for deflate in -lz" >&5
4082 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
4083 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4084 echo $ac_n "(cached) $ac_c" 1>&6
4086 ac_save_LIBS="$LIBS"
4088 cat > conftest.$ac_ext <<EOF
4089 #line 4090 "configure"
4090 #include "confdefs.h"
4091 /* Override any gcc2 internal prototype to avoid an error. */
4092 /* We use char because int might match the return type of a gcc2
4093 builtin and then its argument prototype would still apply. */
4100 if { (eval echo configure:4101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4102 eval "ac_cv_lib_$ac_lib_var=yes"
4104 echo "configure: failed program was:" >&5
4105 cat conftest.$ac_ext >&5
4107 eval "ac_cv_lib_$ac_lib_var=no"
4110 LIBS="$ac_save_LIBS"
4113 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4114 echo "$ac_t""yes" 1>&6
4117 echo "$ac_t""no" 1>&6
4125 # On Solaris, and maybe other architectures, the Boehm collector
4127 if test "$GC" = boehm; then
4128 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
4129 echo "configure:4130: checking for main in -ldl" >&5
4130 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
4131 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4132 echo $ac_n "(cached) $ac_c" 1>&6
4134 ac_save_LIBS="$LIBS"
4136 cat > conftest.$ac_ext <<EOF
4137 #line 4138 "configure"
4138 #include "confdefs.h"
4144 if { (eval echo configure:4145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4146 eval "ac_cv_lib_$ac_lib_var=yes"
4148 echo "configure: failed program was:" >&5
4149 cat conftest.$ac_ext >&5
4151 eval "ac_cv_lib_$ac_lib_var=no"
4154 LIBS="$ac_save_LIBS"
4157 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4158 echo "$ac_t""yes" 1>&6
4159 SYSTEMSPEC="$SYSTEMSPEC -ldl"
4161 echo "$ac_t""no" 1>&6
4166 if test -d "$libgcj_basedir/../gcc/java"; then
4178 if test "x$ZLIBSPEC" = "x-lzgcj"; then
4179 # We include the path to the zlib build directory.
4180 # See Makefile.am to understand why.
4181 ZDEPS='$(top_builddir)/../zlib/libzgcj.la'
4182 ZLIBS="$ZDEPS -L\$(here)/../zlib/$libsubdir"
4183 ZINCS='-I$(top_srcdir)/../zlib'
4194 if test "$CANADIAN" = yes; then
4203 if test "$NULL_TARGET" = yes; then
4205 NULL_TARGET_FALSE='#'
4207 NULL_TARGET_TRUE='#'
4212 if test "$CANADIAN" = no || test "$NULL_TARGET" = yes; then
4221 if test -z "$with_cross_host"; then
4223 USE_LIBDIR_FALSE='#'
4230 # Determine gcj version number.
4231 if test "$GCJ" = ""; then
4232 if test -z "${with_multisubdir}"; then
4235 builddotdot=`echo ${with_multisubdir} | sed -e 's:^/^/*:..:g'`
4237 dir="`cd ${builddotdot}/../../gcc && pwd`"
4238 GCJ="$dir/gcj -B$dir/"
4241 gcjvers="`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`"
4243 cat >> confdefs.h <<EOF
4244 #define GCJVERSION "$gcjvers"
4250 for ac_hdr in unistd.h bstring.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 sys/config.h inttypes.h stdint.h
4252 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4253 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4254 echo "configure:4255: checking for $ac_hdr" >&5
4255 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4256 echo $ac_n "(cached) $ac_c" 1>&6
4258 cat > conftest.$ac_ext <<EOF
4259 #line 4260 "configure"
4260 #include "confdefs.h"
4263 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4264 { (eval echo configure:4265: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4265 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4266 if test -z "$ac_err"; then
4268 eval "ac_cv_header_$ac_safe=yes"
4271 echo "configure: failed program was:" >&5
4272 cat conftest.$ac_ext >&5
4274 eval "ac_cv_header_$ac_safe=no"
4278 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4279 echo "$ac_t""yes" 1>&6
4280 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4281 cat >> confdefs.h <<EOF
4282 #define $ac_tr_hdr 1
4286 echo "$ac_t""no" 1>&6
4290 for ac_hdr in dirent.h
4292 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4293 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4294 echo "configure:4295: checking for $ac_hdr" >&5
4295 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4296 echo $ac_n "(cached) $ac_c" 1>&6
4298 cat > conftest.$ac_ext <<EOF
4299 #line 4300 "configure"
4300 #include "confdefs.h"
4303 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4304 { (eval echo configure:4305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4305 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4306 if test -z "$ac_err"; then
4308 eval "ac_cv_header_$ac_safe=yes"
4311 echo "configure: failed program was:" >&5
4312 cat conftest.$ac_ext >&5
4314 eval "ac_cv_header_$ac_safe=no"
4318 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4319 echo "$ac_t""yes" 1>&6
4320 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4321 cat >> confdefs.h <<EOF
4322 #define $ac_tr_hdr 1
4326 echo "$ac_t""no" 1>&6
4331 echo $ac_n "checking whether struct sockaddr_in6 is in netinet/in.h""... $ac_c" 1>&6
4332 echo "configure:4333: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
4333 cat > conftest.$ac_ext <<EOF
4334 #line 4335 "configure"
4335 #include "confdefs.h"
4336 #include <netinet/in.h>
4338 struct sockaddr_in6 addr6;
4341 if { (eval echo configure:4342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4343 cat >> confdefs.h <<\EOF
4344 #define HAVE_INET6 1
4347 echo "$ac_t""yes" 1>&6
4349 echo "configure: failed program was:" >&5
4350 cat conftest.$ac_ext >&5
4352 echo "$ac_t""no" 1>&6
4356 echo $ac_n "checking for socklen_t in sys/socket.h""... $ac_c" 1>&6
4357 echo "configure:4358: checking for socklen_t in sys/socket.h" >&5
4358 cat > conftest.$ac_ext <<EOF
4359 #line 4360 "configure"
4360 #include "confdefs.h"
4361 #include <sys/socket.h>
4366 if { (eval echo configure:4367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4368 cat >> confdefs.h <<\EOF
4369 #define HAVE_SOCKLEN_T 1
4372 echo "$ac_t""yes" 1>&6
4374 echo "configure: failed program was:" >&5
4375 cat conftest.$ac_ext >&5
4377 echo "$ac_t""no" 1>&6
4381 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
4382 echo "configure:4383: checking for tm_gmtoff in struct tm" >&5
4383 cat > conftest.$ac_ext <<EOF
4384 #line 4385 "configure"
4385 #include "confdefs.h"
4388 struct tm tim; tim.tm_gmtoff = 0;
4391 if { (eval echo configure:4392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4393 cat >> confdefs.h <<\EOF
4394 #define STRUCT_TM_HAS_GMTOFF 1
4397 echo "$ac_t""yes" 1>&6
4399 echo "configure: failed program was:" >&5
4400 cat conftest.$ac_ext >&5
4402 echo "$ac_t""no" 1>&6
4403 echo $ac_n "checking for global timezone variable""... $ac_c" 1>&6
4404 echo "configure:4405: checking for global timezone variable" >&5
4405 cat > conftest.$ac_ext <<EOF
4406 #line 4407 "configure"
4407 #include "confdefs.h"
4413 if { (eval echo configure:4414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4415 cat >> confdefs.h <<\EOF
4416 #define HAVE_TIMEZONE 1
4419 echo "$ac_t""yes" 1>&6
4421 echo "configure: failed program was:" >&5
4422 cat conftest.$ac_ext >&5
4424 echo "$ac_t""no" 1>&6
4430 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4431 # for constant arguments. Useless!
4432 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4433 echo "configure:4434: checking for working alloca.h" >&5
4434 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4435 echo $ac_n "(cached) $ac_c" 1>&6
4437 cat > conftest.$ac_ext <<EOF
4438 #line 4439 "configure"
4439 #include "confdefs.h"
4442 char *p = alloca(2 * sizeof(int));
4445 if { (eval echo configure:4446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4447 ac_cv_header_alloca_h=yes
4449 echo "configure: failed program was:" >&5
4450 cat conftest.$ac_ext >&5
4452 ac_cv_header_alloca_h=no
4457 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4458 if test $ac_cv_header_alloca_h = yes; then
4459 cat >> confdefs.h <<\EOF
4460 #define HAVE_ALLOCA_H 1
4465 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4466 echo "configure:4467: checking for alloca" >&5
4467 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4468 echo $ac_n "(cached) $ac_c" 1>&6
4470 cat > conftest.$ac_ext <<EOF
4471 #line 4472 "configure"
4472 #include "confdefs.h"
4475 # define alloca __builtin_alloca
4478 # include <malloc.h>
4479 # define alloca _alloca
4482 # include <alloca.h>
4487 # ifndef alloca /* predefined by HP cc +Olibcalls */
4496 char *p = (char *) alloca(1);
4499 if { (eval echo configure:4500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4501 ac_cv_func_alloca_works=yes
4503 echo "configure: failed program was:" >&5
4504 cat conftest.$ac_ext >&5
4506 ac_cv_func_alloca_works=no
4511 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4512 if test $ac_cv_func_alloca_works = yes; then
4513 cat >> confdefs.h <<\EOF
4514 #define HAVE_ALLOCA 1
4519 if test $ac_cv_func_alloca_works = no; then
4520 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4521 # that cause trouble. Some versions do not even contain alloca or
4522 # contain a buggy version. If you still want to use their alloca,
4523 # use ar to extract alloca.o from them instead of compiling alloca.c.
4524 ALLOCA=alloca.${ac_objext}
4525 cat >> confdefs.h <<\EOF
4530 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4531 echo "configure:4532: checking whether alloca needs Cray hooks" >&5
4532 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4533 echo $ac_n "(cached) $ac_c" 1>&6
4535 cat > conftest.$ac_ext <<EOF
4536 #line 4537 "configure"
4537 #include "confdefs.h"
4538 #if defined(CRAY) && ! defined(CRAY2)
4545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4546 egrep "webecray" >/dev/null 2>&1; then
4557 echo "$ac_t""$ac_cv_os_cray" 1>&6
4558 if test $ac_cv_os_cray = yes; then
4559 for ac_func in _getb67 GETB67 getb67; do
4560 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4561 echo "configure:4562: checking for $ac_func" >&5
4562 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4563 echo $ac_n "(cached) $ac_c" 1>&6
4565 cat > conftest.$ac_ext <<EOF
4566 #line 4567 "configure"
4567 #include "confdefs.h"
4568 /* System header to define __stub macros and hopefully few prototypes,
4569 which can conflict with char $ac_func(); below. */
4571 /* Override any gcc2 internal prototype to avoid an error. */
4572 /* We use char because int might match the return type of a gcc2
4573 builtin and then its argument prototype would still apply. */
4578 /* The GNU C library defines this for functions which it implements
4579 to always fail with ENOSYS. Some functions are actually named
4580 something starting with __ and the normal name is an alias. */
4581 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4589 if { (eval echo configure:4590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4591 eval "ac_cv_func_$ac_func=yes"
4593 echo "configure: failed program was:" >&5
4594 cat conftest.$ac_ext >&5
4596 eval "ac_cv_func_$ac_func=no"
4601 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4602 echo "$ac_t""yes" 1>&6
4603 cat >> confdefs.h <<EOF
4604 #define CRAY_STACKSEG_END $ac_func
4609 echo "$ac_t""no" 1>&6
4615 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4616 echo "configure:4617: checking stack direction for C alloca" >&5
4617 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4618 echo $ac_n "(cached) $ac_c" 1>&6
4620 if test "$cross_compiling" = yes; then
4621 ac_cv_c_stack_direction=0
4623 cat > conftest.$ac_ext <<EOF
4624 #line 4625 "configure"
4625 #include "confdefs.h"
4626 find_stack_direction ()
4628 static char *addr = 0;
4633 return find_stack_direction ();
4636 return (&dummy > addr) ? 1 : -1;
4640 exit (find_stack_direction() < 0);
4643 if { (eval echo configure:4644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4645 ac_cv_c_stack_direction=1
4647 echo "configure: failed program was:" >&5
4648 cat conftest.$ac_ext >&5
4650 ac_cv_c_stack_direction=-1
4657 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4658 cat >> confdefs.h <<EOF
4659 #define STACK_DIRECTION $ac_cv_c_stack_direction
4667 # Extract the first word of "$ac_prog", so it can be a program name with args.
4668 set dummy $ac_prog; ac_word=$2
4669 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4670 echo "configure:4671: checking for $ac_word" >&5
4671 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
4672 echo $ac_n "(cached) $ac_c" 1>&6
4674 if test -n "$PERL"; then
4675 ac_cv_prog_PERL="$PERL" # Let the user override the test.
4677 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4679 for ac_dir in $ac_dummy; do
4680 test -z "$ac_dir" && ac_dir=.
4681 if test -f $ac_dir/$ac_word; then
4682 ac_cv_prog_PERL="$ac_prog"
4689 PERL="$ac_cv_prog_PERL"
4690 if test -n "$PERL"; then
4691 echo "$ac_t""$PERL" 1>&6
4693 echo "$ac_t""no" 1>&6
4696 test -n "$PERL" && break
4698 test -n "$PERL" || PERL="false"
4703 SIGNAL_HANDLER=include/i386-signal.h
4706 SIGNAL_HANDLER=include/sparc-signal.h
4709 SIGNAL_HANDLER=include/default-signal.h
4715 if test "${multilib}" = "yes"; then
4716 multilib_arg="--enable-multilib"
4725 cat > confcache <<\EOF
4726 # This file is a shell script that caches the results of configure
4727 # tests run on this system so they can be shared between configure
4728 # scripts and configure runs. It is not useful on other systems.
4729 # If it contains results you don't want to keep, you may remove or edit it.
4731 # By default, configure uses ./config.cache as the cache file,
4732 # creating it if it does not exist already. You can give configure
4733 # the --cache-file=FILE option to use a different cache file; that is
4734 # what configure does when it calls configure scripts in
4735 # subdirectories, so they share the cache.
4736 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4737 # config.status only pays attention to the cache file if you give it the
4738 # --recheck option to rerun configure.
4741 # The following way of writing the cache mishandles newlines in values,
4742 # but we know of no workaround that is simple, portable, and efficient.
4743 # So, don't put newlines in cache variables' values.
4744 # Ultrix sh set writes to stderr and can't be redirected directly,
4745 # and sets the high bit in the cache file unless we assign to the vars.
4747 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4749 # `set' does not quote correctly, so add quotes (double-quote substitution
4750 # turns \\\\ into \\, and sed turns \\ into \).
4752 -e "s/'/'\\\\''/g" \
4753 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4756 # `set' quotes correctly as required by POSIX, so do not add quotes.
4757 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4760 if cmp -s $cache_file confcache; then
4763 if test -w $cache_file; then
4764 echo "updating cache $cache_file"
4765 cat confcache > $cache_file
4767 echo "not updating unwritable cache $cache_file"
4772 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4774 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4775 # Let make expand exec_prefix.
4776 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4778 # Any assignment to VPATH causes Sun make to only execute
4779 # the first set of double-colon rules, so remove it if not needed.
4780 # If there is a colon in the path, we need to keep it.
4781 if test "x$srcdir" = x.; then
4782 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4785 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4787 DEFS=-DHAVE_CONFIG_H
4789 # Without the "./", some shells look in PATH for config.status.
4790 : ${CONFIG_STATUS=./config.status}
4792 echo creating $CONFIG_STATUS
4793 rm -f $CONFIG_STATUS
4794 cat > $CONFIG_STATUS <<EOF
4796 # Generated automatically by configure.
4797 # Run this file to recreate the current configuration.
4798 # This directory was configured as follows,
4799 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4801 # $0 $ac_configure_args
4803 # Compiler output produced by configure, useful for debugging
4804 # configure, is in ./config.log if it exists.
4806 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4809 case "\$ac_option" in
4810 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4811 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4812 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4813 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4814 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4816 -help | --help | --hel | --he | --h)
4817 echo "\$ac_cs_usage"; exit 0 ;;
4818 *) echo "\$ac_cs_usage"; exit 1 ;;
4822 ac_given_srcdir=$srcdir
4823 ac_given_INSTALL="$INSTALL"
4825 trap 'rm -fr `echo "Makefile libgcj.spec testsuite/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4827 cat >> $CONFIG_STATUS <<EOF
4829 # Protect against being on the right side of a sed subst in config.status.
4830 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4831 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4835 s%@CFLAGS@%$CFLAGS%g
4836 s%@CPPFLAGS@%$CPPFLAGS%g
4837 s%@CXXFLAGS@%$CXXFLAGS%g
4838 s%@FFLAGS@%$FFLAGS%g
4840 s%@LDFLAGS@%$LDFLAGS%g
4842 s%@exec_prefix@%$exec_prefix%g
4843 s%@prefix@%$prefix%g
4844 s%@program_transform_name@%$program_transform_name%g
4845 s%@bindir@%$bindir%g
4846 s%@sbindir@%$sbindir%g
4847 s%@libexecdir@%$libexecdir%g
4848 s%@datadir@%$datadir%g
4849 s%@sysconfdir@%$sysconfdir%g
4850 s%@sharedstatedir@%$sharedstatedir%g
4851 s%@localstatedir@%$localstatedir%g
4852 s%@libdir@%$libdir%g
4853 s%@includedir@%$includedir%g
4854 s%@oldincludedir@%$oldincludedir%g
4855 s%@infodir@%$infodir%g
4856 s%@mandir@%$mandir%g
4858 s%@host_alias@%$host_alias%g
4859 s%@host_cpu@%$host_cpu%g
4860 s%@host_vendor@%$host_vendor%g
4861 s%@host_os@%$host_os%g
4862 s%@target@%$target%g
4863 s%@target_alias@%$target_alias%g
4864 s%@target_cpu@%$target_cpu%g
4865 s%@target_vendor@%$target_vendor%g
4866 s%@target_os@%$target_os%g
4868 s%@build_alias@%$build_alias%g
4869 s%@build_cpu@%$build_cpu%g
4870 s%@build_vendor@%$build_vendor%g
4871 s%@build_os@%$build_os%g
4872 s%@libgcj_basedir@%$libgcj_basedir%g
4873 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4874 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4875 s%@INSTALL_DATA@%$INSTALL_DATA%g
4876 s%@PACKAGE@%$PACKAGE%g
4877 s%@VERSION@%$VERSION%g
4878 s%@ACLOCAL@%$ACLOCAL%g
4879 s%@AUTOCONF@%$AUTOCONF%g
4880 s%@AUTOMAKE@%$AUTOMAKE%g
4881 s%@AUTOHEADER@%$AUTOHEADER%g
4882 s%@MAKEINFO@%$MAKEINFO%g
4883 s%@SET_MAKE@%$SET_MAKE%g
4888 s%@RANLIB@%$RANLIB%g
4889 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
4890 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
4892 s%@EXEEXT@%$EXEEXT%g
4893 s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
4894 s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
4895 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
4899 s%@LIBTOOL@%$LIBTOOL%g
4900 s%@COMPPATH@%$COMPPATH%g
4901 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
4902 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
4903 s%@INTERPSPEC@%$INTERPSPEC%g
4905 s%@SYSTEMSPEC@%$SYSTEMSPEC%g
4906 s%@ZLIBSPEC@%$ZLIBSPEC%g
4907 s%@GCLIBS@%$GCLIBS%g
4908 s%@GCINCS@%$GCINCS%g
4909 s%@GCDEPS@%$GCDEPS%g
4910 s%@GCOBJS@%$GCOBJS%g
4911 s%@GCSPEC@%$GCSPEC%g
4912 s%@THREADLIBS@%$THREADLIBS%g
4913 s%@THREADINCS@%$THREADINCS%g
4914 s%@THREADDEPS@%$THREADDEPS%g
4915 s%@THREADOBJS@%$THREADOBJS%g
4916 s%@THREADSPEC@%$THREADSPEC%g
4917 s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
4918 s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
4922 s%@DIVIDESPEC@%$DIVIDESPEC%g
4923 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
4924 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
4925 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
4926 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
4927 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
4928 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
4929 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
4930 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
4931 s%@EH_COMMON_INCLUDE@%$EH_COMMON_INCLUDE%g
4932 s%@AM_RUNTESTFLAGS@%$AM_RUNTESTFLAGS%g
4933 s%@ALLOCA@%$ALLOCA%g
4940 cat >> $CONFIG_STATUS <<\EOF
4942 # Split the substitutions into bite-sized pieces for seds with
4943 # small command number limits, like on Digital OSF/1 and HP-UX.
4944 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4945 ac_file=1 # Number of current file.
4946 ac_beg=1 # First line for current file.
4947 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4950 while $ac_more_lines; do
4951 if test $ac_beg -gt 1; then
4952 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4954 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4956 if test ! -s conftest.s$ac_file; then
4958 rm -f conftest.s$ac_file
4960 if test -z "$ac_sed_cmds"; then
4961 ac_sed_cmds="sed -f conftest.s$ac_file"
4963 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4965 ac_file=`expr $ac_file + 1`
4967 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4970 if test -z "$ac_sed_cmds"; then
4975 cat >> $CONFIG_STATUS <<EOF
4977 CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.spec testsuite/Makefile"}
4979 cat >> $CONFIG_STATUS <<\EOF
4980 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4981 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4983 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4984 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4985 *) ac_file_in="${ac_file}.in" ;;
4988 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4990 # Remove last slash and all that follows it. Not all systems have dirname.
4991 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4992 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4993 # The file is in a subdirectory.
4994 test ! -d "$ac_dir" && mkdir "$ac_dir"
4995 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4996 # A "../" for each directory in $ac_dir_suffix.
4997 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4999 ac_dir_suffix= ac_dots=
5002 case "$ac_given_srcdir" in
5004 if test -z "$ac_dots"; then top_srcdir=.
5005 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5006 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5008 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5009 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5012 case "$ac_given_INSTALL" in
5013 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5014 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5017 echo creating "$ac_file"
5019 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5021 *Makefile*) ac_comsub="1i\\
5022 # $configure_input" ;;
5026 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5028 s%@configure_input@%$configure_input%g
5029 s%@srcdir@%$srcdir%g
5030 s%@top_srcdir@%$top_srcdir%g
5031 s%@INSTALL@%$INSTALL%g
5032 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5036 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5037 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5039 # ac_d sets the value in "#define NAME VALUE" lines.
5040 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5041 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5044 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5045 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5046 ac_uB='\([ ]\)%\1#\2define\3'
5049 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5050 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5051 ac_eB='$%\1#\2define\3'
5055 if test "${CONFIG_HEADERS+set}" != set; then
5057 cat >> $CONFIG_STATUS <<EOF
5058 CONFIG_HEADERS="include/config.h"
5060 cat >> $CONFIG_STATUS <<\EOF
5062 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5063 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5065 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5066 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5067 *) ac_file_in="${ac_file}.in" ;;
5070 echo creating $ac_file
5072 rm -f conftest.frag conftest.in conftest.out
5073 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5074 cat $ac_file_inputs > conftest.in
5078 # Transform confdefs.h into a sed script conftest.vals that substitutes
5079 # the proper values into config.h.in to produce config.h. And first:
5080 # Protect against being on the right side of a sed subst in config.status.
5081 # Protect against being in an unquoted here document in config.status.
5083 cat > conftest.hdr <<\EOF
5086 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5090 sed -n -f conftest.hdr confdefs.h > conftest.vals
5093 # This sed command replaces #undef with comments. This is necessary, for
5094 # example, in the case of _POSIX_SOURCE, which is predefined and required
5095 # on some systems where configure will not decide to define it.
5096 cat >> conftest.vals <<\EOF
5097 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5100 # Break up conftest.vals because some shells have a limit on
5101 # the size of here documents, and old seds have small limits too.
5106 ac_lines=`grep -c . conftest.vals`
5107 # grep -c gives empty output for an empty file on some AIX systems.
5108 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5109 # Write a limited-size here document to conftest.frag.
5110 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5111 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5113 sed -f conftest.frag conftest.in > conftest.out
5115 mv conftest.out conftest.in
5117 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5119 mv conftest.tail conftest.vals
5123 cat >> $CONFIG_STATUS <<\EOF
5124 rm -f conftest.frag conftest.h
5125 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5126 cat conftest.in >> conftest.h
5128 if cmp -s $ac_file conftest.h 2>/dev/null; then
5129 echo "$ac_file is unchanged"
5132 # Remove last slash and all that follows it. Not all systems have dirname.
5133 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5134 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5135 # The file is in a subdirectory.
5136 test ! -d "$ac_dir" && mkdir "$ac_dir"
5139 mv conftest.h $ac_file
5145 cat >> $CONFIG_STATUS <<EOF
5146 ac_sources="java/io/$FILE_DESCRIPTOR java/lang/${PROCESS}Process.java java/lang/nat${PROCESS}Process.cc include/$GCHDR include/$THREADH $SIGNAL_HANDLER"
5147 ac_dests="java/io/natFileDescriptor.cc java/lang/ConcreteProcess.java java/lang/natConcreteProcess.cc include/java-gc.h include/java-threads.h include/java-signal.h"
5150 cat >> $CONFIG_STATUS <<\EOF
5151 srcdir=$ac_given_srcdir
5152 while test -n "$ac_sources"; do
5153 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5154 set $ac_sources; ac_source=$1; shift; ac_sources=$*
5156 echo "linking $srcdir/$ac_source to $ac_dest"
5158 if test ! -r $srcdir/$ac_source; then
5159 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
5163 # Make relative symlinks.
5164 # Remove last slash and all that follows it. Not all systems have dirname.
5165 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
5166 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
5167 # The dest file is in a subdirectory.
5168 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
5169 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
5170 # A "../" for each directory in $ac_dest_dir_suffix.
5171 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
5173 ac_dest_dir_suffix= ac_dots=
5177 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
5178 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
5181 # Make a symlink if possible; otherwise try a hard link.
5182 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
5183 ln $srcdir/$ac_source $ac_dest; then :
5185 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
5189 cat >> $CONFIG_STATUS <<EOF
5194 with_multisubdir=${with_multisubdir}
5195 ac_configure_args="${multilib_arg} ${ac_configure_args}"
5196 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
5197 libgcj_basedir=${libgcj_basedir}
5202 cat >> $CONFIG_STATUS <<\EOF
5203 test -z "$CONFIG_HEADERS" || echo timestamp > include/stamp-h
5204 if test -n "$CONFIG_FILES"; then
5205 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
5209 chmod +x $CONFIG_STATUS
5210 rm -fr confdefs* $ac_clean_files
5211 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1