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
16 configuring in a subdirectory"
18 --with-cross-host=HOST configuring with a cross compiler"
20 --enable-multilib build many library versions (default)"
22 --enable-maintainer-mode enable make rules and dependencies not useful
23 (and sometimes confusing) to the casual installer"
25 --enable-shared[=PKGS] build shared libraries [default=yes]"
27 --enable-static[=PKGS] build static libraries [default=yes]"
29 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
31 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
33 --disable-libtool-lock avoid locking (might break parallel builds)"
35 --enable-fast-character prefer speed over size for Character"
37 --enable-java-awt enable AWT implementation"
39 --disable-getenv-properties
40 don't set system properties from GCJ_PROPERTIES"
42 --enable-libgcj-debug enable runtime debugging code"
44 --enable-interpreter enable interpreter"
46 --enable-sjlj-exceptions use setjmp/longjmp exceptions"
48 --disable-java-net disable java.net"
50 --disable-jvmpi disable JVMPI support"
52 --with-ecos enable runtime eCos target support"
54 --with-system-zlib use installed libz"
56 --enable-java-gc=TYPE choose garbage collector [boehm]"
58 --enable-threads=TYPE choose threading package"
60 # Initialize some variables set by options.
61 # The variables have the same names as the options, with
62 # dashes changed to underlines.
64 cache_file=./config.cache
73 program_transform_name=s,x,x,
82 bindir='${exec_prefix}/bin'
83 sbindir='${exec_prefix}/sbin'
84 libexecdir='${exec_prefix}/libexec'
85 datadir='${prefix}/share'
86 sysconfdir='${prefix}/etc'
87 sharedstatedir='${prefix}/com'
88 localstatedir='${prefix}/var'
89 libdir='${exec_prefix}/lib'
90 includedir='${prefix}/include'
91 oldincludedir='/usr/include'
92 infodir='${prefix}/info'
93 mandir='${prefix}/man'
95 # Initialize some other variables.
98 SHELL=${CONFIG_SHELL-/bin/sh}
99 # Maximum number of lines to put in a shell here document.
106 # If the previous option needs an argument, assign it.
107 if test -n "$ac_prev"; then
108 eval "$ac_prev=\$ac_option"
114 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
118 # Accept the important Cygnus configure options, so we can diagnose typos.
122 -bindir | --bindir | --bindi | --bind | --bin | --bi)
124 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
125 bindir="$ac_optarg" ;;
127 -build | --build | --buil | --bui | --bu)
129 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
130 build="$ac_optarg" ;;
132 -cache-file | --cache-file | --cache-fil | --cache-fi \
133 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
134 ac_prev=cache_file ;;
135 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
136 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
137 cache_file="$ac_optarg" ;;
139 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
141 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
143 datadir="$ac_optarg" ;;
145 -disable-* | --disable-*)
146 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
147 # Reject names that are not valid shell variable names.
148 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
149 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
151 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
152 eval "enable_${ac_feature}=no" ;;
154 -enable-* | --enable-*)
155 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
156 # Reject names that are not valid shell variable names.
157 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
158 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
160 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
165 eval "enable_${ac_feature}='$ac_optarg'" ;;
167 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
168 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
169 | --exec | --exe | --ex)
170 ac_prev=exec_prefix ;;
171 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
172 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
173 | --exec=* | --exe=* | --ex=*)
174 exec_prefix="$ac_optarg" ;;
176 -gas | --gas | --ga | --g)
177 # Obsolete; use --with-gas.
180 -help | --help | --hel | --he)
181 # Omit some internal or obsolete options to make the list less imposing.
182 # This message is too long to be a string in the A/UX 3.1 sh.
184 Usage: configure [options] [host]
185 Options: [defaults in brackets after descriptions]
187 --cache-file=FILE cache test results in FILE
188 --help print this message
189 --no-create do not create output files
190 --quiet, --silent do not print \`checking...' messages
191 --site-file=FILE use FILE as the site file
192 --version print the version of autoconf that created configure
193 Directory and file names:
194 --prefix=PREFIX install architecture-independent files in PREFIX
196 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
198 --bindir=DIR user executables in DIR [EPREFIX/bin]
199 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
200 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
201 --datadir=DIR read-only architecture-independent data in DIR
203 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
204 --sharedstatedir=DIR modifiable architecture-independent data in DIR
206 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
207 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
208 --includedir=DIR C header files in DIR [PREFIX/include]
209 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
210 --infodir=DIR info documentation in DIR [PREFIX/info]
211 --mandir=DIR man documentation in DIR [PREFIX/man]
212 --srcdir=DIR find the sources in DIR [configure dir or ..]
213 --program-prefix=PREFIX prepend PREFIX to installed program names
214 --program-suffix=SUFFIX append SUFFIX to installed program names
215 --program-transform-name=PROGRAM
216 run sed PROGRAM on installed program names
220 --build=BUILD configure for building on BUILD [BUILD=HOST]
221 --host=HOST configure for HOST [guessed]
222 --target=TARGET configure for TARGET [TARGET=HOST]
223 Features and packages:
224 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
225 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
226 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
227 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
228 --x-includes=DIR X include files are in DIR
229 --x-libraries=DIR X library files are in DIR
231 if test -n "$ac_help"; then
232 echo "--enable and --with options recognized:$ac_help"
236 -host | --host | --hos | --ho)
238 -host=* | --host=* | --hos=* | --ho=*)
241 -includedir | --includedir | --includedi | --included | --include \
242 | --includ | --inclu | --incl | --inc)
243 ac_prev=includedir ;;
244 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
245 | --includ=* | --inclu=* | --incl=* | --inc=*)
246 includedir="$ac_optarg" ;;
248 -infodir | --infodir | --infodi | --infod | --info | --inf)
250 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
251 infodir="$ac_optarg" ;;
253 -libdir | --libdir | --libdi | --libd)
255 -libdir=* | --libdir=* | --libdi=* | --libd=*)
256 libdir="$ac_optarg" ;;
258 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
259 | --libexe | --libex | --libe)
260 ac_prev=libexecdir ;;
261 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
262 | --libexe=* | --libex=* | --libe=*)
263 libexecdir="$ac_optarg" ;;
265 -localstatedir | --localstatedir | --localstatedi | --localstated \
266 | --localstate | --localstat | --localsta | --localst \
267 | --locals | --local | --loca | --loc | --lo)
268 ac_prev=localstatedir ;;
269 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
270 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
271 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
272 localstatedir="$ac_optarg" ;;
274 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
276 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
277 mandir="$ac_optarg" ;;
280 # Obsolete; use --without-fp.
283 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
287 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
288 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
291 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
292 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
293 | --oldin | --oldi | --old | --ol | --o)
294 ac_prev=oldincludedir ;;
295 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
296 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
297 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
298 oldincludedir="$ac_optarg" ;;
300 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
302 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
303 prefix="$ac_optarg" ;;
305 -program-prefix | --program-prefix | --program-prefi | --program-pref \
306 | --program-pre | --program-pr | --program-p)
307 ac_prev=program_prefix ;;
308 -program-prefix=* | --program-prefix=* | --program-prefi=* \
309 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
310 program_prefix="$ac_optarg" ;;
312 -program-suffix | --program-suffix | --program-suffi | --program-suff \
313 | --program-suf | --program-su | --program-s)
314 ac_prev=program_suffix ;;
315 -program-suffix=* | --program-suffix=* | --program-suffi=* \
316 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
317 program_suffix="$ac_optarg" ;;
319 -program-transform-name | --program-transform-name \
320 | --program-transform-nam | --program-transform-na \
321 | --program-transform-n | --program-transform- \
322 | --program-transform | --program-transfor \
323 | --program-transfo | --program-transf \
324 | --program-trans | --program-tran \
325 | --progr-tra | --program-tr | --program-t)
326 ac_prev=program_transform_name ;;
327 -program-transform-name=* | --program-transform-name=* \
328 | --program-transform-nam=* | --program-transform-na=* \
329 | --program-transform-n=* | --program-transform-=* \
330 | --program-transform=* | --program-transfor=* \
331 | --program-transfo=* | --program-transf=* \
332 | --program-trans=* | --program-tran=* \
333 | --progr-tra=* | --program-tr=* | --program-t=*)
334 program_transform_name="$ac_optarg" ;;
336 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
337 | -silent | --silent | --silen | --sile | --sil)
340 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
342 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
344 sbindir="$ac_optarg" ;;
346 -sharedstatedir | --sharedstatedir | --sharedstatedi \
347 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
348 | --sharedst | --shareds | --shared | --share | --shar \
350 ac_prev=sharedstatedir ;;
351 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
352 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
353 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
355 sharedstatedir="$ac_optarg" ;;
357 -site | --site | --sit)
359 -site=* | --site=* | --sit=*)
362 -site-file | --site-file | --site-fil | --site-fi | --site-f)
364 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
365 sitefile="$ac_optarg" ;;
367 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
369 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
370 srcdir="$ac_optarg" ;;
372 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
373 | --syscon | --sysco | --sysc | --sys | --sy)
374 ac_prev=sysconfdir ;;
375 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
376 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
377 sysconfdir="$ac_optarg" ;;
379 -target | --target | --targe | --targ | --tar | --ta | --t)
381 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
382 target="$ac_optarg" ;;
384 -v | -verbose | --verbose | --verbos | --verbo | --verb)
387 -version | --version | --versio | --versi | --vers)
388 echo "configure generated by autoconf version 2.13"
392 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
393 # Reject names that are not valid shell variable names.
394 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
395 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
397 ac_package=`echo $ac_package| sed 's/-/_/g'`
402 eval "with_${ac_package}='$ac_optarg'" ;;
404 -without-* | --without-*)
405 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
406 # Reject names that are not valid shell variable names.
407 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
408 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
410 ac_package=`echo $ac_package| sed 's/-/_/g'`
411 eval "with_${ac_package}=no" ;;
414 # Obsolete; use --with-x.
417 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
418 | --x-incl | --x-inc | --x-in | --x-i)
419 ac_prev=x_includes ;;
420 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
421 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
422 x_includes="$ac_optarg" ;;
424 -x-libraries | --x-libraries | --x-librarie | --x-librari \
425 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
426 ac_prev=x_libraries ;;
427 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
428 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
429 x_libraries="$ac_optarg" ;;
431 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
435 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
436 echo "configure: warning: $ac_option: invalid host type" 1>&2
438 if test "x$nonopt" != xNONE; then
439 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
447 if test -n "$ac_prev"; then
448 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
451 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
453 # File descriptor usage:
456 # 2 errors and warnings
457 # 3 some systems may open it to /dev/tty
458 # 4 used on the Kubota Titan
459 # 6 checking for... messages and results
460 # 5 compiler messages saved in config.log
461 if test "$silent" = yes; then
469 This file contains any messages produced by compilers while
470 running configure, to aid debugging if configure makes a mistake.
473 # Strip out --no-create and --no-recursion so they do not pile up.
474 # Also quote any args containing shell metacharacters.
479 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
480 | --no-cr | --no-c) ;;
481 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
482 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
483 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
484 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
485 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
490 # Only set these to C if already set. These must not be set unconditionally
491 # because not all systems understand e.g. LANG=C (notably SCO).
492 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
493 # Non-C LC_CTYPE values break the ctype check.
494 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
495 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
496 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
497 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
499 # confdefs.h avoids OS command line length limits that DEFS can exceed.
500 rm -rf conftest* confdefs.h
501 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
504 # A filename unique to this package, relative to the directory that
505 # configure is in, which we can look for to find out if srcdir is correct.
506 ac_unique_file=java/lang/System.java
508 # Find the source files, if location was not specified.
509 if test -z "$srcdir"; then
510 ac_srcdir_defaulted=yes
511 # Try the directory containing this script, then its parent.
513 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
514 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
516 if test ! -r $srcdir/$ac_unique_file; then
520 ac_srcdir_defaulted=no
522 if test ! -r $srcdir/$ac_unique_file; then
523 if test "$ac_srcdir_defaulted" = yes; then
524 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
526 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
529 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
531 # Prefer explicitly selected file to automatically selected ones.
532 if test -z "$sitefile"; then
533 if test -z "$CONFIG_SITE"; then
534 if test "x$prefix" != xNONE; then
535 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
537 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
541 CONFIG_SITE="$sitefile"
543 for ac_site_file in $CONFIG_SITE; do
544 if test -r "$ac_site_file"; then
545 echo "loading site script $ac_site_file"
550 if test -r "$cache_file"; then
551 echo "loading cache $cache_file"
554 echo "creating cache $cache_file"
559 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
560 ac_cpp='$CPP $CPPFLAGS'
561 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
562 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
563 cross_compiling=$ac_cv_prog_cc_cross
567 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
568 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
569 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
576 ac_n= ac_c='\c' ac_t=
582 for ac_dir in .. $srcdir/..; do
583 if test -f $ac_dir/install-sh; then
585 ac_install_sh="$ac_aux_dir/install-sh -c"
587 elif test -f $ac_dir/install.sh; then
589 ac_install_sh="$ac_aux_dir/install.sh -c"
593 if test -z "$ac_aux_dir"; then
594 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
596 ac_config_guess=$ac_aux_dir/config.guess
597 ac_config_sub=$ac_aux_dir/config.sub
598 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
602 # Do some error checking and defaulting for the host and target type.
604 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
607 # 1. You are not allowed to specify --host, --target, and nonopt at the
609 # 2. Host defaults to nonopt.
610 # 3. If nonopt is not specified, then host defaults to the current host,
611 # as determined by config.guess.
612 # 4. Target and build default to nonopt.
613 # 5. If nonopt is not specified, then target and build default to host.
615 # The aliases save the names the user supplied, while $host etc.
616 # will get canonicalized.
617 case $host---$target---$nonopt in
618 NONE---*---* | *---NONE---* | *---*---NONE) ;;
619 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
623 # Make sure we can run config.sub.
624 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
625 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
628 echo $ac_n "checking host system type""... $ac_c" 1>&6
629 echo "configure:630: checking host system type" >&5
632 case "$host_alias" in
636 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
637 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
639 *) host_alias=$nonopt ;;
643 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
644 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
645 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
646 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
647 echo "$ac_t""$host" 1>&6
649 echo $ac_n "checking target system type""... $ac_c" 1>&6
650 echo "configure:651: checking target system type" >&5
653 case "$target_alias" in
656 NONE) target_alias=$host_alias ;;
657 *) target_alias=$nonopt ;;
661 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
662 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
663 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
664 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
665 echo "$ac_t""$target" 1>&6
667 echo $ac_n "checking build system type""... $ac_c" 1>&6
668 echo "configure:669: checking build system type" >&5
671 case "$build_alias" in
674 NONE) build_alias=$host_alias ;;
675 *) build_alias=$nonopt ;;
679 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
680 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
681 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
682 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
683 echo "$ac_t""$build" 1>&6
685 test "$host_alias" != "$target_alias" &&
686 test "$program_prefix$program_suffix$program_transform_name" = \
688 program_prefix=${target_alias}-
691 # Check whether --with-target-subdir or --without-target-subdir was given.
692 if test "${with_target_subdir+set}" = set; then
693 withval="$with_target_subdir"
697 # Check whether --with-cross-host or --without-cross-host was given.
698 if test "${with_cross_host+set}" = set; then
699 withval="$with_cross_host"
704 # Find a good install program. We prefer a C program (faster),
705 # so one script is as good as another. But avoid the broken or
706 # incompatible versions:
707 # SysV /etc/install, /usr/sbin/install
708 # SunOS /usr/etc/install
711 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
712 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
713 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
714 # ./install, which can be erroneously created by make from ./install.sh.
715 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
716 echo "configure:717: checking for a BSD compatible install" >&5
717 if test -z "$INSTALL"; then
718 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
719 echo $ac_n "(cached) $ac_c" 1>&6
721 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
722 for ac_dir in $PATH; do
723 # Account for people who put trailing slashes in PATH elements.
725 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
727 # OSF1 and SCO ODT 3.0 have their own names for install.
728 # Don't use installbsd from OSF since it installs stuff as root
730 for ac_prog in ginstall scoinst install; do
731 if test -f $ac_dir/$ac_prog; then
732 if test $ac_prog = install &&
733 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
734 # AIX install. It has an incompatible calling convention.
737 ac_cv_path_install="$ac_dir/$ac_prog -c"
748 if test "${ac_cv_path_install+set}" = set; then
749 INSTALL="$ac_cv_path_install"
751 # As a last resort, use the slow shell script. We don't cache a
752 # path for INSTALL within a source directory, because that will
753 # break other packages using the cache if that directory is
754 # removed, or if the path is relative.
755 INSTALL="$ac_install_sh"
758 echo "$ac_t""$INSTALL" 1>&6
760 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
761 # It thinks the first close brace ends the variable substitution.
762 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
764 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
766 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
768 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
769 echo "configure:770: checking whether build environment is sane" >&5
772 echo timestamp > conftestfile
773 # Do `set' in a subshell so we don't clobber the current shell's
774 # arguments. Must try -L first in case configure is actually a
775 # symlink; some systems play weird games with the mod time of symlinks
776 # (eg FreeBSD returns the mod time of the symlink's containing
779 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
780 if test "$*" = "X"; then
782 set X `ls -t $srcdir/configure conftestfile`
784 if test "$*" != "X $srcdir/configure conftestfile" \
785 && test "$*" != "X conftestfile $srcdir/configure"; then
787 # If neither matched, then we have a broken ls. This can happen
788 # if, for instance, CONFIG_SHELL is bash and it inherits a
789 # broken ls alias from the environment. This has actually
790 # happened. Such a system could not be considered "sane".
791 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
792 alias in your environment" 1>&2; exit 1; }
795 test "$2" = conftestfile
801 { echo "configure: error: newly created file is older than distributed files!
802 Check your system clock" 1>&2; exit 1; }
805 echo "$ac_t""yes" 1>&6
806 if test "$program_transform_name" = s,x,x,; then
807 program_transform_name=
809 # Double any \ or $. echo might interpret backslashes.
810 cat <<\EOF_SED > conftestsed
811 s,\\,\\\\,g; s,\$,$$,g
813 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
816 test "$program_prefix" != NONE &&
817 program_transform_name="s,^,${program_prefix},; $program_transform_name"
818 # Use a double $ so make ignores it.
819 test "$program_suffix" != NONE &&
820 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
822 # sed with no file args requires a program.
823 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
825 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
826 echo "configure:827: checking whether ${MAKE-make} sets \${MAKE}" >&5
827 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
828 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
829 echo $ac_n "(cached) $ac_c" 1>&6
831 cat > conftestmake <<\EOF
833 @echo 'ac_maketemp="${MAKE}"'
835 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
836 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
837 if test -n "$ac_maketemp"; then
838 eval ac_cv_prog_make_${ac_make}_set=yes
840 eval ac_cv_prog_make_${ac_make}_set=no
844 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
845 echo "$ac_t""yes" 1>&6
848 echo "$ac_t""no" 1>&6
849 SET_MAKE="MAKE=${MAKE-make}"
852 if test $host != $build; then
853 ac_tool_prefix=${host_alias}-
858 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
859 echo "configure:860: checking for Cygwin environment" >&5
860 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
861 echo $ac_n "(cached) $ac_c" 1>&6
863 cat > conftest.$ac_ext <<EOF
864 #line 865 "configure"
865 #include "confdefs.h"
870 #define __CYGWIN__ __CYGWIN32__
875 if { (eval echo configure:876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
879 echo "configure: failed program was:" >&5
880 cat conftest.$ac_ext >&5
888 echo "$ac_t""$ac_cv_cygwin" 1>&6
890 test "$ac_cv_cygwin" = yes && CYGWIN=yes
891 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
892 echo "configure:893: checking for mingw32 environment" >&5
893 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
894 echo $ac_n "(cached) $ac_c" 1>&6
896 cat > conftest.$ac_ext <<EOF
897 #line 898 "configure"
898 #include "confdefs.h"
904 if { (eval echo configure:905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
908 echo "configure: failed program was:" >&5
909 cat conftest.$ac_ext >&5
917 echo "$ac_t""$ac_cv_mingw32" 1>&6
919 test "$ac_cv_mingw32" = yes && MINGW32=yes
921 # Check whether --enable-multilib or --disable-multilib was given.
922 if test "${enable_multilib+set}" = set; then
923 enableval="$enable_multilib"
924 case "${enableval}" in
927 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
934 if test "${srcdir}" = "."; then
935 if test "${with_target_subdir}" != "."; then
936 libgcj_basedir="${srcdir}/${with_multisrctop}../."
938 libgcj_basedir="${srcdir}/${with_multisrctop}."
941 libgcj_basedir="${srcdir}/."
946 # Make sure we can run config.sub.
947 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
948 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
951 echo $ac_n "checking host system type""... $ac_c" 1>&6
952 echo "configure:953: checking host system type" >&5
955 case "$host_alias" in
959 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
960 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
962 *) host_alias=$nonopt ;;
966 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
967 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
968 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
969 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
970 echo "$ac_t""$host" 1>&6
979 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
980 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
982 cat >> confdefs.h <<EOF
983 #define PACKAGE "$PACKAGE"
986 cat >> confdefs.h <<EOF
987 #define VERSION "$VERSION"
992 missing_dir=`cd $ac_aux_dir && pwd`
993 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
994 echo "configure:995: checking for working aclocal" >&5
995 # Run test in a subshell; some versions of sh will print an error if
996 # an executable is not found, even if stderr is redirected.
997 # Redirect stdin to placate older versions of autoconf. Sigh.
998 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1000 echo "$ac_t""found" 1>&6
1002 ACLOCAL="$missing_dir/missing aclocal"
1003 echo "$ac_t""missing" 1>&6
1006 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1007 echo "configure:1008: checking for working autoconf" >&5
1008 # Run test in a subshell; some versions of sh will print an error if
1009 # an executable is not found, even if stderr is redirected.
1010 # Redirect stdin to placate older versions of autoconf. Sigh.
1011 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1013 echo "$ac_t""found" 1>&6
1015 AUTOCONF="$missing_dir/missing autoconf"
1016 echo "$ac_t""missing" 1>&6
1019 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1020 echo "configure:1021: checking for working automake" >&5
1021 # Run test in a subshell; some versions of sh will print an error if
1022 # an executable is not found, even if stderr is redirected.
1023 # Redirect stdin to placate older versions of autoconf. Sigh.
1024 if (automake --version) < /dev/null > /dev/null 2>&1; then
1026 echo "$ac_t""found" 1>&6
1028 AUTOMAKE="$missing_dir/missing automake"
1029 echo "$ac_t""missing" 1>&6
1032 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1033 echo "configure:1034: checking for working autoheader" >&5
1034 # Run test in a subshell; some versions of sh will print an error if
1035 # an executable is not found, even if stderr is redirected.
1036 # Redirect stdin to placate older versions of autoconf. Sigh.
1037 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1038 AUTOHEADER=autoheader
1039 echo "$ac_t""found" 1>&6
1041 AUTOHEADER="$missing_dir/missing autoheader"
1042 echo "$ac_t""missing" 1>&6
1045 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1046 echo "configure:1047: checking for working makeinfo" >&5
1047 # Run test in a subshell; some versions of sh will print an error if
1048 # an executable is not found, even if stderr is redirected.
1049 # Redirect stdin to placate older versions of autoconf. Sigh.
1050 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1052 echo "$ac_t""found" 1>&6
1054 MAKEINFO="$missing_dir/missing makeinfo"
1055 echo "$ac_t""missing" 1>&6
1060 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
1061 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1062 # are probably using a cross compiler, which will not be able to fully
1063 # link an executable. This should really be fixed in autoconf
1069 # Extract the first word of "gcc", so it can be a program name with args.
1070 set dummy gcc; ac_word=$2
1071 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1072 echo "configure:1073: checking for $ac_word" >&5
1073 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1074 echo $ac_n "(cached) $ac_c" 1>&6
1076 if test -n "$CC"; then
1077 ac_cv_prog_CC="$CC" # Let the user override the test.
1079 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1081 for ac_dir in $ac_dummy; do
1082 test -z "$ac_dir" && ac_dir=.
1083 if test -f $ac_dir/$ac_word; then
1092 if test -n "$CC"; then
1093 echo "$ac_t""$CC" 1>&6
1095 echo "$ac_t""no" 1>&6
1098 if test -z "$CC"; then
1099 # Extract the first word of "cc", so it can be a program name with args.
1100 set dummy cc; ac_word=$2
1101 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1102 echo "configure:1103: checking for $ac_word" >&5
1103 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1104 echo $ac_n "(cached) $ac_c" 1>&6
1106 if test -n "$CC"; then
1107 ac_cv_prog_CC="$CC" # Let the user override the test.
1109 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1112 for ac_dir in $ac_dummy; do
1113 test -z "$ac_dir" && ac_dir=.
1114 if test -f $ac_dir/$ac_word; then
1115 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1116 ac_prog_rejected=yes
1124 if test $ac_prog_rejected = yes; then
1125 # We found a bogon in the path, so make sure we never use it.
1126 set dummy $ac_cv_prog_CC
1128 if test $# -gt 0; then
1129 # We chose a different compiler from the bogus one.
1130 # However, it has the same basename, so the bogon will be chosen
1131 # first if we set CC to just the basename; use the full file name.
1133 set dummy "$ac_dir/$ac_word" "$@"
1141 if test -n "$CC"; then
1142 echo "$ac_t""$CC" 1>&6
1144 echo "$ac_t""no" 1>&6
1147 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1150 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1151 echo "configure:1152: checking whether we are using GNU C" >&5
1152 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1153 echo $ac_n "(cached) $ac_c" 1>&6
1155 cat > conftest.c <<EOF
1160 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1161: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1167 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1169 if test $ac_cv_prog_gcc = yes; then
1171 ac_test_CFLAGS="${CFLAGS+set}"
1172 ac_save_CFLAGS="$CFLAGS"
1174 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1175 echo "configure:1176: checking whether ${CC-cc} accepts -g" >&5
1176 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1177 echo $ac_n "(cached) $ac_c" 1>&6
1179 echo 'void f(){}' > conftest.c
1180 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1189 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1190 if test "$ac_test_CFLAGS" = set; then
1191 CFLAGS="$ac_save_CFLAGS"
1192 elif test $ac_cv_prog_cc_g = yes; then
1199 test "${CFLAGS+set}" = set || CFLAGS="-g"
1203 # Likewise for AC_PROG_CXX.
1207 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1209 # Extract the first word of "$ac_prog", so it can be a program name with args.
1210 set dummy $ac_prog; ac_word=$2
1211 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1212 echo "configure:1213: checking for $ac_word" >&5
1213 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1214 echo $ac_n "(cached) $ac_c" 1>&6
1216 if test -n "$CXX"; then
1217 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1219 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1221 for ac_dir in $ac_dummy; do
1222 test -z "$ac_dir" && ac_dir=.
1223 if test -f $ac_dir/$ac_word; then
1224 ac_cv_prog_CXX="$ac_prog"
1231 CXX="$ac_cv_prog_CXX"
1232 if test -n "$CXX"; then
1233 echo "$ac_t""$CXX" 1>&6
1235 echo "$ac_t""no" 1>&6
1238 test -n "$CXX" && break
1240 test -n "$CXX" || CXX="gcc"
1242 test -z "$CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1244 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1245 echo "configure:1246: checking whether we are using GNU C++" >&5
1246 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1247 echo $ac_n "(cached) $ac_c" 1>&6
1249 cat > conftest.C <<EOF
1254 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1255: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1261 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1263 if test $ac_cv_prog_gxx = yes; then
1265 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1266 ac_save_CXXFLAGS="$CXXFLAGS"
1268 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1269 echo "configure:1270: checking whether ${CXX-g++} accepts -g" >&5
1270 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1271 echo $ac_n "(cached) $ac_c" 1>&6
1273 echo 'void f(){}' > conftest.cc
1274 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1275 ac_cv_prog_cxx_g=yes
1283 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1284 if test "$ac_test_CXXFLAGS" = set; then
1285 CXXFLAGS="$ac_save_CXXFLAGS"
1286 elif test $ac_cv_prog_cxx_g = yes; then
1293 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1297 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we dont
1298 # run it explicitly here, it will be run implicitly before
1299 # LIBGCJ_CONFIGURE, which doesn't work because that means that it will
1300 # be run before AC_CANONICAL_HOST.
1301 echo $ac_n "checking build system type""... $ac_c" 1>&6
1302 echo "configure:1303: checking build system type" >&5
1305 case "$build_alias" in
1308 NONE) build_alias=$host_alias ;;
1309 *) build_alias=$nonopt ;;
1313 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1314 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1315 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1316 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1317 echo "$ac_t""$build" 1>&6
1320 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1321 set dummy ${ac_tool_prefix}as; ac_word=$2
1322 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1323 echo "configure:1324: checking for $ac_word" >&5
1324 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1325 echo $ac_n "(cached) $ac_c" 1>&6
1327 if test -n "$AS"; then
1328 ac_cv_prog_AS="$AS" # Let the user override the test.
1330 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1332 for ac_dir in $ac_dummy; do
1333 test -z "$ac_dir" && ac_dir=.
1334 if test -f $ac_dir/$ac_word; then
1335 ac_cv_prog_AS="${ac_tool_prefix}as"
1340 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1344 if test -n "$AS"; then
1345 echo "$ac_t""$AS" 1>&6
1347 echo "$ac_t""no" 1>&6
1352 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1353 set dummy ${ac_tool_prefix}ar; ac_word=$2
1354 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1355 echo "configure:1356: checking for $ac_word" >&5
1356 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1357 echo $ac_n "(cached) $ac_c" 1>&6
1359 if test -n "$AR"; then
1360 ac_cv_prog_AR="$AR" # Let the user override the test.
1362 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1364 for ac_dir in $ac_dummy; do
1365 test -z "$ac_dir" && ac_dir=.
1366 if test -f $ac_dir/$ac_word; then
1367 ac_cv_prog_AR="${ac_tool_prefix}ar"
1372 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1376 if test -n "$AR"; then
1377 echo "$ac_t""$AR" 1>&6
1379 echo "$ac_t""no" 1>&6
1384 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1385 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1386 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1387 echo "configure:1388: checking for $ac_word" >&5
1388 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1389 echo $ac_n "(cached) $ac_c" 1>&6
1391 if test -n "$RANLIB"; then
1392 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1394 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1396 for ac_dir in $ac_dummy; do
1397 test -z "$ac_dir" && ac_dir=.
1398 if test -f $ac_dir/$ac_word; then
1399 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1406 RANLIB="$ac_cv_prog_RANLIB"
1407 if test -n "$RANLIB"; then
1408 echo "$ac_t""$RANLIB" 1>&6
1410 echo "$ac_t""no" 1>&6
1414 if test -z "$ac_cv_prog_RANLIB"; then
1415 if test -n "$ac_tool_prefix"; then
1416 # Extract the first word of "ranlib", so it can be a program name with args.
1417 set dummy ranlib; ac_word=$2
1418 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1419 echo "configure:1420: checking for $ac_word" >&5
1420 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1421 echo $ac_n "(cached) $ac_c" 1>&6
1423 if test -n "$RANLIB"; then
1424 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1426 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1428 for ac_dir in $ac_dummy; do
1429 test -z "$ac_dir" && ac_dir=.
1430 if test -f $ac_dir/$ac_word; then
1431 ac_cv_prog_RANLIB="ranlib"
1436 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1439 RANLIB="$ac_cv_prog_RANLIB"
1440 if test -n "$RANLIB"; then
1441 echo "$ac_t""$RANLIB" 1>&6
1443 echo "$ac_t""no" 1>&6
1452 # Find a good install program. We prefer a C program (faster),
1453 # so one script is as good as another. But avoid the broken or
1454 # incompatible versions:
1455 # SysV /etc/install, /usr/sbin/install
1456 # SunOS /usr/etc/install
1457 # IRIX /sbin/install
1459 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1460 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1461 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1462 # ./install, which can be erroneously created by make from ./install.sh.
1463 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1464 echo "configure:1465: checking for a BSD compatible install" >&5
1465 if test -z "$INSTALL"; then
1466 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1467 echo $ac_n "(cached) $ac_c" 1>&6
1469 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1470 for ac_dir in $PATH; do
1471 # Account for people who put trailing slashes in PATH elements.
1473 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1475 # OSF1 and SCO ODT 3.0 have their own names for install.
1476 # Don't use installbsd from OSF since it installs stuff as root
1478 for ac_prog in ginstall scoinst install; do
1479 if test -f $ac_dir/$ac_prog; then
1480 if test $ac_prog = install &&
1481 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1482 # AIX install. It has an incompatible calling convention.
1485 ac_cv_path_install="$ac_dir/$ac_prog -c"
1496 if test "${ac_cv_path_install+set}" = set; then
1497 INSTALL="$ac_cv_path_install"
1499 # As a last resort, use the slow shell script. We don't cache a
1500 # path for INSTALL within a source directory, because that will
1501 # break other packages using the cache if that directory is
1502 # removed, or if the path is relative.
1503 INSTALL="$ac_install_sh"
1506 echo "$ac_t""$INSTALL" 1>&6
1508 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1509 # It thinks the first close brace ends the variable substitution.
1510 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1512 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1514 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1517 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1518 echo "configure:1519: checking whether to enable maintainer-specific portions of Makefiles" >&5
1519 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1520 if test "${enable_maintainer_mode+set}" = set; then
1521 enableval="$enable_maintainer_mode"
1522 USE_MAINTAINER_MODE=$enableval
1524 USE_MAINTAINER_MODE=no
1527 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1530 if test $USE_MAINTAINER_MODE = yes; then
1531 MAINTAINER_MODE_TRUE=
1532 MAINTAINER_MODE_FALSE='#'
1534 MAINTAINER_MODE_TRUE='#'
1535 MAINTAINER_MODE_FALSE=
1537 MAINT=$MAINTAINER_MODE_TRUE
1541 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1542 # at least currently, we never actually build a program, so we never
1543 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1544 # fails, because we are probably configuring with a cross compiler
1545 # which cant create executables. So we include AC_EXEEXT to keep
1546 # automake happy, but we dont execute it, since we dont care about
1551 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1552 echo "configure:1553: checking for executable suffix" >&5
1553 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1554 echo $ac_n "(cached) $ac_c" 1>&6
1556 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1560 echo 'int main () { return 0; }' > conftest.$ac_ext
1562 if { (eval echo configure:1563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1563 for file in conftest.*; do
1565 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1566 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1570 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1573 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1578 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1579 echo "$ac_t""${ac_cv_exeext}" 1>&6
1584 # configure.host sets the following important variables
1585 # libgcj_cflags - host specific C compiler flags
1586 # libgcj_cxxflags - host specific C++ compiler flags
1587 # libgcj_javaflags - host specific Java compiler flags
1593 . ${libgcj_basedir}/configure.host
1595 case ${libgcj_basedir} in
1596 /* | A-Za-z:/\\*) libgcj_flagbasedir=${libgcj_basedir} ;;
1597 *) libgcj_flagbasedir='$(top_builddir)/'${libgcj_basedir} ;;
1600 LIBGCJ_CFLAGS="${libgcj_cflags}"
1601 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
1602 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
1612 # Only use libltdl for native builds.
1613 if test -z "${with_cross_host}"; then
1614 case "$enable_ltdl_convenience" in
1615 no) { echo "configure: error: this package needs a convenience libltdl" 1>&2; exit 1; } ;;
1616 "") enable_ltdl_convenience=yes
1617 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
1619 LIBLTDL='${top_builddir}/libltdl'/libltdlc.la
1620 INCLTDL='-I${top_builddir}/libltdl'
1624 cat >> confdefs.h <<\EOF
1628 # Sigh. Libtool's macro doesn't do the right thing.
1629 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
1634 # Check whether --enable-shared or --disable-shared was given.
1635 if test "${enable_shared+set}" = set; then
1636 enableval="$enable_shared"
1637 p=${PACKAGE-default}
1638 case "$enableval" in
1639 yes) enable_shared=yes ;;
1640 no) enable_shared=no ;;
1643 # Look at the argument we got. We use all the common list separators.
1644 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1645 for pkg in $enableval; do
1646 if test "X$pkg" = "X$p"; then
1657 # Check whether --enable-static or --disable-static was given.
1658 if test "${enable_static+set}" = set; then
1659 enableval="$enable_static"
1660 p=${PACKAGE-default}
1661 case "$enableval" in
1662 yes) enable_static=yes ;;
1663 no) enable_static=no ;;
1666 # Look at the argument we got. We use all the common list separators.
1667 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1668 for pkg in $enableval; do
1669 if test "X$pkg" = "X$p"; then
1680 # Check whether --enable-fast-install or --disable-fast-install was given.
1681 if test "${enable_fast_install+set}" = set; then
1682 enableval="$enable_fast_install"
1683 p=${PACKAGE-default}
1684 case "$enableval" in
1685 yes) enable_fast_install=yes ;;
1686 no) enable_fast_install=no ;;
1688 enable_fast_install=no
1689 # Look at the argument we got. We use all the common list separators.
1690 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1691 for pkg in $enableval; do
1692 if test "X$pkg" = "X$p"; then
1693 enable_fast_install=yes
1700 enable_fast_install=yes
1703 # Extract the first word of "ranlib", so it can be a program name with args.
1704 set dummy ranlib; ac_word=$2
1705 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1706 echo "configure:1707: checking for $ac_word" >&5
1707 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1708 echo $ac_n "(cached) $ac_c" 1>&6
1710 if test -n "$RANLIB"; then
1711 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1713 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1715 for ac_dir in $ac_dummy; do
1716 test -z "$ac_dir" && ac_dir=.
1717 if test -f $ac_dir/$ac_word; then
1718 ac_cv_prog_RANLIB="ranlib"
1723 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1726 RANLIB="$ac_cv_prog_RANLIB"
1727 if test -n "$RANLIB"; then
1728 echo "$ac_t""$RANLIB" 1>&6
1730 echo "$ac_t""no" 1>&6
1733 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1734 if test "${with_gnu_ld+set}" = set; then
1735 withval="$with_gnu_ld"
1736 test "$withval" = no || with_gnu_ld=yes
1742 if test "$ac_cv_prog_gcc" = yes; then
1743 # Check if gcc -print-prog-name=ld gives a path.
1744 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1745 echo "configure:1746: checking for ld used by GCC" >&5
1746 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1748 # Accept absolute paths.
1749 [\\/]* | [A-Za-z]:[\\/]*)
1750 re_direlt='/[^/][^/]*/\.\./'
1751 # Canonicalize the path of ld
1752 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1753 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1754 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1756 test -z "$LD" && LD="$ac_prog"
1759 # If it fails, then pretend we aren't using GCC.
1763 # If it is relative, then search for the first ld in PATH.
1767 elif test "$with_gnu_ld" = yes; then
1768 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1769 echo "configure:1770: checking for GNU ld" >&5
1771 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1772 echo "configure:1773: checking for non-GNU ld" >&5
1774 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1775 echo $ac_n "(cached) $ac_c" 1>&6
1777 if test -z "$LD"; then
1778 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1779 for ac_dir in $PATH; do
1780 test -z "$ac_dir" && ac_dir=.
1781 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1782 ac_cv_path_LD="$ac_dir/$ac_prog"
1783 # Check to see if the program is GNU ld. I'd rather use --version,
1784 # but apparently some GNU ld's only accept -v.
1785 # Break only if it was the GNU/non-GNU ld that we prefer.
1786 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1787 test "$with_gnu_ld" != no && break
1789 test "$with_gnu_ld" != yes && break
1795 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1800 if test -n "$LD"; then
1801 echo "$ac_t""$LD" 1>&6
1803 echo "$ac_t""no" 1>&6
1805 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1806 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1807 echo "configure:1808: checking if the linker ($LD) is GNU ld" >&5
1808 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1809 echo $ac_n "(cached) $ac_c" 1>&6
1811 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1812 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1813 ac_cv_prog_gnu_ld=yes
1815 ac_cv_prog_gnu_ld=no
1819 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1822 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1823 echo "configure:1824: checking for BSD-compatible nm" >&5
1824 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1825 echo $ac_n "(cached) $ac_c" 1>&6
1827 if test -n "$NM"; then
1828 # Let the user override the test.
1831 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1832 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1833 test -z "$ac_dir" && ac_dir=.
1834 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1835 # Check to see if the nm accepts a BSD-compat flag.
1836 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1837 # nm: unknown option "B" ignored
1838 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1839 ac_cv_path_NM="$ac_dir/nm -B"
1841 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1842 ac_cv_path_NM="$ac_dir/nm -p"
1845 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1846 continue # so that we can try to find one that supports BSD flags
1851 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1856 echo "$ac_t""$NM" 1>&6
1858 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1859 echo "configure:1860: checking whether ln -s works" >&5
1860 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1861 echo $ac_n "(cached) $ac_c" 1>&6
1864 if ln -s X conftestdata 2>/dev/null
1867 ac_cv_prog_LN_S="ln -s"
1872 LN_S="$ac_cv_prog_LN_S"
1873 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1874 echo "$ac_t""yes" 1>&6
1876 echo "$ac_t""no" 1>&6
1881 NONE) lt_target="$host" ;;
1882 *) lt_target="$target" ;;
1885 # Check for any special flags to pass to ltconfig.
1886 libtool_flags="--cache-file=$cache_file"
1887 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1888 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1889 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1890 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1891 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1892 libtool_flags="$libtool_flags --enable-dlopen"
1894 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1895 if test "${enable_libtool_lock+set}" = set; then
1896 enableval="$enable_libtool_lock"
1900 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1901 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1903 # Some flags need to be propagated to the compiler or linker for good
1905 case "$lt_target" in
1907 # Find out which ABI we are using.
1908 echo '#line 1909 "configure"' > conftest.$ac_ext
1909 if { (eval echo configure:1910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1910 case "`/usr/bin/file conftest.o`" in
1926 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1927 SAVE_CFLAGS="$CFLAGS"
1928 CFLAGS="$CFLAGS -belf"
1929 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1930 echo "configure:1931: checking whether the C compiler needs -belf" >&5
1931 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1932 echo $ac_n "(cached) $ac_c" 1>&6
1934 cat > conftest.$ac_ext <<EOF
1935 #line 1936 "configure"
1936 #include "confdefs.h"
1942 if { (eval echo configure:1943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1944 lt_cv_cc_needs_belf=yes
1946 echo "configure: failed program was:" >&5
1947 cat conftest.$ac_ext >&5
1949 lt_cv_cc_needs_belf=no
1954 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1955 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1956 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1957 CFLAGS="$SAVE_CFLAGS"
1965 # Save cache, so that ltconfig can load it
1966 cat > confcache <<\EOF
1967 # This file is a shell script that caches the results of configure
1968 # tests run on this system so they can be shared between configure
1969 # scripts and configure runs. It is not useful on other systems.
1970 # If it contains results you don't want to keep, you may remove or edit it.
1972 # By default, configure uses ./config.cache as the cache file,
1973 # creating it if it does not exist already. You can give configure
1974 # the --cache-file=FILE option to use a different cache file; that is
1975 # what configure does when it calls configure scripts in
1976 # subdirectories, so they share the cache.
1977 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1978 # config.status only pays attention to the cache file if you give it the
1979 # --recheck option to rerun configure.
1982 # The following way of writing the cache mishandles newlines in values,
1983 # but we know of no workaround that is simple, portable, and efficient.
1984 # So, don't put newlines in cache variables' values.
1985 # Ultrix sh set writes to stderr and can't be redirected directly,
1986 # and sets the high bit in the cache file unless we assign to the vars.
1988 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1990 # `set' does not quote correctly, so add quotes (double-quote substitution
1991 # turns \\\\ into \\, and sed turns \\ into \).
1993 -e "s/'/'\\\\''/g" \
1994 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1997 # `set' quotes correctly as required by POSIX, so do not add quotes.
1998 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2001 if cmp -s $cache_file confcache; then
2004 if test -w $cache_file; then
2005 echo "updating cache $cache_file"
2006 cat confcache > $cache_file
2008 echo "not updating unwritable cache $cache_file"
2014 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2015 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2016 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2017 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
2018 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
2019 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2020 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
2021 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2023 # Reload cache, that may have been modified by ltconfig
2024 if test -r "$cache_file"; then
2025 echo "loading cache $cache_file"
2028 echo "creating cache $cache_file"
2033 # This can be used to rebuild libtool when needed
2034 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
2036 # Always use our own libtool.
2037 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2039 # Redirect the config.log output again, so that the ltconfig log is not
2040 # clobbered by the next message.
2041 exec 5>>./config.log
2046 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
2055 if test -d $srcdir/testsuite; then
2057 TESTSUBDIR_FALSE='#'
2063 # Check whether --enable-fast-character or --disable-fast-character was given.
2064 if test "${enable_fast_character+set}" = set; then
2065 enableval="$enable_fast_character"
2069 cat >> confdefs.h <<\EOF
2070 #define COMPACT_CHARACTER 1
2076 # Check whether --enable-java-awt or --disable-java-awt was given.
2077 if test "${enable_java_awt+set}" = set; then
2078 enableval="$enable_java_awt"
2079 awt=$enable_java_awt
2082 # Default to enabled on native systems.
2083 if test -z "${with_cross_host}"; then
2093 if test "$awt" = yes; then
2101 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
2102 if test "${enable_getenv_properties+set}" = set; then
2103 enableval="$enable_getenv_properties"
2108 if test -n "$enable_getenv_properties"; then
2109 enable_getenv_properties=${enable_getenv_properties_default-yes}
2111 if test "$enable_getenv_properties" = no; then
2112 cat >> confdefs.h <<\EOF
2113 #define DISABLE_GETENV_PROPERTIES 1
2118 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2119 if test "${enable_libgcj_debug+set}" = set; then
2120 enableval="$enable_libgcj_debug"
2121 if test "$enable_libgcj_debug" = yes; then
2122 cat >> confdefs.h <<\EOF
2130 # Check whether --enable-interpreter or --disable-interpreter was given.
2131 if test "${enable_interpreter+set}" = set; then
2132 enableval="$enable_interpreter"
2133 if test "$enable_interpreter" = yes; then
2134 # This can also be set in configure.host.
2135 libgcj_interpreter=yes
2136 elif test "$enable_interpreter" = no; then
2137 libgcj_interpreter=no
2142 if test "$libgcj_interpreter" = yes; then
2143 cat >> confdefs.h <<\EOF
2144 #define INTERPRETER 1
2150 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
2151 if test "${enable_sjlj_exceptions+set}" = set; then
2152 enableval="$enable_sjlj_exceptions"
2153 if test "$enable_sjlj_exceptions" = yes; then
2154 # This can be set in configure.host.
2160 if test "$libgcj_sjlj" = yes; then
2161 EXCEPTIONSPEC="-fsjlj-exceptions"
2162 cat >> confdefs.h <<\EOF
2163 #define SJLJ_EXCEPTIONS 1
2169 if test "$ac_cv_prog_gnu_ld" = yes; then
2170 FORCELIBGCCSPEC="-u __rethrow -u __frame_state_for -lgcc"
2173 echo $ac_n "checking for data_start""... $ac_c" 1>&6
2174 echo "configure:2175: checking for data_start" >&5
2177 cat > conftest.$ac_ext <<EOF
2178 #line 2179 "configure"
2179 #include "confdefs.h"
2180 extern int data_start;
2182 return ((int) &data_start);
2185 if { (eval echo configure:2186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2187 echo "$ac_t""found it" 1>&6
2189 echo "configure: failed program was:" >&5
2190 cat conftest.$ac_ext >&5
2192 LIBDATASTARTSPEC="-u data_start -lgcjdata"
2193 NEEDS_DATA_START=yes
2194 echo "$ac_t""missing" 1>&6
2199 # Check whether --enable-java-net or --disable-java-net was given.
2200 if test "${enable_java_net+set}" = set; then
2201 enableval="$enable_java_net"
2206 if test -n "$enable_java_net"; then
2207 enable_java_net=${enable_java_net_default-yes}
2209 if test "$enable_java_net" = no; then
2210 cat >> confdefs.h <<\EOF
2211 #define DISABLE_JAVA_NET 1
2216 # Check whether --enable-jvmpi or --disable-jvmpi was given.
2217 if test "${enable_jvmpi+set}" = set; then
2218 enableval="$enable_jvmpi"
2223 if test "$enable_jvmpi" != no; then
2224 cat >> confdefs.h <<\EOF
2225 #define ENABLE_JVMPI 1
2231 # Check whether --with-ecos or --without-ecos was given.
2232 if test "${with_ecos+set}" = set; then
2233 withval="$with_ecos"
2234 TARGET_ECOS="$with_ecos"
2239 case "$TARGET_ECOS" in
2241 FILE_DESCRIPTOR=natFileDescriptorPosix.cc
2242 PROCESS=${PROCESS-Posix}
2245 FILE_DESCRIPTOR=natFileDescriptorEcos.cc
2247 cat >> confdefs.h <<\EOF
2254 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2255 echo "configure:2256: checking how to run the C preprocessor" >&5
2256 # On Suns, sometimes $CPP names a directory.
2257 if test -n "$CPP" && test -d "$CPP"; then
2260 if test -z "$CPP"; then
2261 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2262 echo $ac_n "(cached) $ac_c" 1>&6
2264 # This must be in double quotes, not single quotes, because CPP may get
2265 # substituted into the Makefile and "${CC-cc}" will confuse make.
2267 # On the NeXT, cc -E runs the code through the compiler's parser,
2268 # not just through cpp.
2269 cat > conftest.$ac_ext <<EOF
2270 #line 2271 "configure"
2271 #include "confdefs.h"
2275 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2276 { (eval echo configure:2277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2277 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2278 if test -z "$ac_err"; then
2282 echo "configure: failed program was:" >&5
2283 cat conftest.$ac_ext >&5
2285 CPP="${CC-cc} -E -traditional-cpp"
2286 cat > conftest.$ac_ext <<EOF
2287 #line 2288 "configure"
2288 #include "confdefs.h"
2292 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2293 { (eval echo configure:2294: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2294 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2295 if test -z "$ac_err"; then
2299 echo "configure: failed program was:" >&5
2300 cat conftest.$ac_ext >&5
2302 CPP="${CC-cc} -nologo -E"
2303 cat > conftest.$ac_ext <<EOF
2304 #line 2305 "configure"
2305 #include "confdefs.h"
2309 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2310 { (eval echo configure:2311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2311 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2312 if test -z "$ac_err"; then
2316 echo "configure: failed program was:" >&5
2317 cat conftest.$ac_ext >&5
2326 ac_cv_prog_CPP="$CPP"
2328 CPP="$ac_cv_prog_CPP"
2330 ac_cv_prog_CPP="$CPP"
2332 echo "$ac_t""$CPP" 1>&6
2334 cat > conftest.$ac_ext <<EOF
2335 #line 2336 "configure"
2336 #include "confdefs.h"
2339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2340 egrep "uint32_t" >/dev/null 2>&1; then
2342 cat >> confdefs.h <<\EOF
2343 #define HAVE_INT32_DEFINED 1
2349 cat > conftest.$ac_ext <<EOF
2350 #line 2351 "configure"
2351 #include "confdefs.h"
2352 #include <inttypes.h>
2354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2355 egrep "uint32_t" >/dev/null 2>&1; then
2357 cat >> confdefs.h <<\EOF
2358 #define HAVE_INT32_DEFINED 1
2364 cat > conftest.$ac_ext <<EOF
2365 #line 2366 "configure"
2366 #include "confdefs.h"
2367 #include <sys/types.h>
2369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2370 egrep "u_int32_t" >/dev/null 2>&1; then
2372 cat >> confdefs.h <<\EOF
2373 #define HAVE_BSD_INT32_DEFINED 1
2379 cat > conftest.$ac_ext <<EOF
2380 #line 2381 "configure"
2381 #include "confdefs.h"
2382 #include <sys/config.h>
2384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2385 egrep "u_int32_t" >/dev/null 2>&1; then
2387 cat >> confdefs.h <<\EOF
2388 #define HAVE_BSD_INT32_DEFINED 1
2396 cat > conftest.$ac_ext <<EOF
2397 #line 2398 "configure"
2398 #include "confdefs.h"
2401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2402 egrep "mktime" >/dev/null 2>&1; then
2404 cat >> confdefs.h <<\EOF
2405 #define HAVE_MKTIME 1
2411 cat > conftest.$ac_ext <<EOF
2412 #line 2413 "configure"
2413 #include "confdefs.h"
2416 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2417 egrep "localtime" >/dev/null 2>&1; then
2419 cat >> confdefs.h <<\EOF
2420 #define HAVE_LOCALTIME 1
2427 test -d java || mkdir java
2428 test -d java/io || mkdir java/io
2431 test -d java/lang || mkdir java/lang
2438 LIBGCJTESTSPEC="-L`pwd`/.libs -rpath `pwd`/.libs"
2441 # Check whether --with-system-zlib or --without-system-zlib was given.
2442 if test "${with_system_zlib+set}" = set; then
2443 withval="$with_system_zlib"
2454 echo $ac_n "checking for garbage collector to use""... $ac_c" 1>&6
2455 echo "configure:2456: checking for garbage collector to use" >&5
2456 # Check whether --enable-java-gc or --disable-java-gc was given.
2457 if test "${enable_java_gc+set}" = set; then
2458 enableval="$enable_java_gc"
2473 echo "$ac_t""boehm" 1>&6
2474 GCDEPS='$(top_builddir)/../boehm-gc/libgcjgc.la'
2475 # We include the path to the boehm-gc build directory.
2476 # See Makefile.am to understand why.
2477 GCLIBS="$GCDEPS -L\$(here)/../boehm-gc/$libsubdir"
2478 GCINCS='-I$(top_srcdir)/../boehm-gc -I$(top_builddir)/../boehm-gc'
2480 GCTESTSPEC="-L`pwd`/../boehm-gc/.libs -rpath `pwd`/../boehm-gc/.libs"
2481 GCINCS="$GCINCS `cat ../boehm-gc/boehm-cflags`"
2484 cat >> confdefs.h <<\EOF
2485 #define HAVE_BOEHM_GC 1
2490 echo "$ac_t""none" 1>&6
2495 { echo "configure: error: unrecognized collector \"$GC\"" 1>&2; exit 1; }
2507 echo $ac_n "checking for threads package to use""... $ac_c" 1>&6
2508 echo "configure:2509: checking for threads package to use" >&5
2509 # Check whether --enable-threads or --disable-threads was given.
2510 if test "${enable_threads+set}" = set; then
2511 enableval="$enable_threads"
2518 if test "$THREADS" = yes; then
2524 # FIXME: this isn't correct in all cases.
2531 # FIXME: for now, choose POSIX, because we implement that.
2532 # Later, choose irix threads.
2536 # FIXME: for now, choose POSIX, because we implement that.
2537 # Later, choose solaris threads.
2555 cat >> confdefs.h <<\EOF
2556 #define LINUX_THREADS 1
2562 decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
2563 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
2566 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
2569 echo "$ac_t""$THREADS" 1>&6
2579 THREADLIBS=-lpthread
2580 THREADSPEC=-lpthread
2581 THREADOBJS=posix-threads.lo
2582 THREADH=posix-threads.h
2583 # MIT pthreads doesn't seem to have the mutexattr functions.
2584 # But for now we don't check for it. We just assume you aren't
2585 # using MIT pthreads.
2586 cat >> confdefs.h <<\EOF
2587 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
2591 # If we're using the Boehm GC, then we happen to know that it
2592 # defines _REENTRANT, so we don't bother. Eww.
2593 if test "$GC" != boehm; then
2594 cat >> confdefs.h <<\EOF
2595 #define _REENTRANT 1
2599 cat >> confdefs.h <<\EOF
2600 #define _POSIX_PTHREAD_SEMANTICS 1
2606 THREADOBJS=no-threads.lo
2607 THREADH=no-threads.h
2619 if test "$GCC" = yes; then
2631 # Find eh-common.h and support headers. If we're in the tree with
2632 # gcc, then look there. Otherwise look in compat-include. If all else
2633 # fails, just hope the user has set things up somehow.
2634 if test -r $srcdir/../gcc/eh-common.h; then
2635 EH_COMMON_INCLUDE='-I$(top_srcdir)/../gcc -I$(top_srcdir)/../include'
2637 if test -d $srcdir/../compat-include; then
2638 EH_COMMON_INCLUDE='-I$(top_srcdir)/../compat-include'
2644 if test -n "${with_cross_host}"; then
2645 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
2646 # may not work correctly, because the compiler may not be able to
2649 # We assume newlib. This lets us hard-code the functions we know
2651 cat >> confdefs.h <<\EOF
2652 #define HAVE_MEMMOVE 1
2655 cat >> confdefs.h <<\EOF
2656 #define HAVE_MEMCPY 1
2659 cat >> confdefs.h <<\EOF
2660 #define HAVE_STRERROR 1
2663 cat >> confdefs.h <<\EOF
2664 #define HAVE_GMTIME_R 1
2667 cat >> confdefs.h <<\EOF
2668 #define HAVE_LOCALTIME_R 1
2671 cat >> confdefs.h <<\EOF
2672 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
2675 cat >> confdefs.h <<\EOF
2676 #define HAVE_ALLOCA 1
2680 cat >> confdefs.h <<\EOF
2686 ZLIBTESTSPEC="-L`pwd`/../zlib/.libs -rpath `pwd`/../zlib/.libs"
2688 # If Canadian cross, then don't pick up tools from the build
2690 if test "$build" != "$with_cross_host"; then
2693 GCJ="${target_alias}-gcj"
2699 for ac_func in strerror ioctl select fstat open fsync sleep
2701 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2702 echo "configure:2703: checking for $ac_func" >&5
2703 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2704 echo $ac_n "(cached) $ac_c" 1>&6
2706 cat > conftest.$ac_ext <<EOF
2707 #line 2708 "configure"
2708 #include "confdefs.h"
2709 /* System header to define __stub macros and hopefully few prototypes,
2710 which can conflict with char $ac_func(); below. */
2712 /* Override any gcc2 internal prototype to avoid an error. */
2713 /* We use char because int might match the return type of a gcc2
2714 builtin and then its argument prototype would still apply. */
2719 /* The GNU C library defines this for functions which it implements
2720 to always fail with ENOSYS. Some functions are actually named
2721 something starting with __ and the normal name is an alias. */
2722 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2730 if { (eval echo configure:2731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2732 eval "ac_cv_func_$ac_func=yes"
2734 echo "configure: failed program was:" >&5
2735 cat conftest.$ac_ext >&5
2737 eval "ac_cv_func_$ac_func=no"
2742 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2743 echo "$ac_t""yes" 1>&6
2744 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2745 cat >> confdefs.h <<EOF
2746 #define $ac_tr_func 1
2750 echo "$ac_t""no" 1>&6
2754 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
2756 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2757 echo "configure:2758: checking for $ac_func" >&5
2758 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2759 echo $ac_n "(cached) $ac_c" 1>&6
2761 cat > conftest.$ac_ext <<EOF
2762 #line 2763 "configure"
2763 #include "confdefs.h"
2764 /* System header to define __stub macros and hopefully few prototypes,
2765 which can conflict with char $ac_func(); below. */
2767 /* Override any gcc2 internal prototype to avoid an error. */
2768 /* We use char because int might match the return type of a gcc2
2769 builtin and then its argument prototype would still apply. */
2774 /* The GNU C library defines this for functions which it implements
2775 to always fail with ENOSYS. Some functions are actually named
2776 something starting with __ and the normal name is an alias. */
2777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2785 if { (eval echo configure:2786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2787 eval "ac_cv_func_$ac_func=yes"
2789 echo "configure: failed program was:" >&5
2790 cat conftest.$ac_ext >&5
2792 eval "ac_cv_func_$ac_func=no"
2797 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2798 echo "$ac_t""yes" 1>&6
2799 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2800 cat >> confdefs.h <<EOF
2801 #define $ac_tr_func 1
2805 echo "$ac_t""no" 1>&6
2809 for ac_func in access stat mkdir rename rmdir unlink realpath iconv
2811 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2812 echo "configure:2813: checking for $ac_func" >&5
2813 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2814 echo $ac_n "(cached) $ac_c" 1>&6
2816 cat > conftest.$ac_ext <<EOF
2817 #line 2818 "configure"
2818 #include "confdefs.h"
2819 /* System header to define __stub macros and hopefully few prototypes,
2820 which can conflict with char $ac_func(); below. */
2822 /* Override any gcc2 internal prototype to avoid an error. */
2823 /* We use char because int might match the return type of a gcc2
2824 builtin and then its argument prototype would still apply. */
2829 /* The GNU C library defines this for functions which it implements
2830 to always fail with ENOSYS. Some functions are actually named
2831 something starting with __ and the normal name is an alias. */
2832 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2840 if { (eval echo configure:2841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2842 eval "ac_cv_func_$ac_func=yes"
2844 echo "configure: failed program was:" >&5
2845 cat conftest.$ac_ext >&5
2847 eval "ac_cv_func_$ac_func=no"
2852 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2853 echo "$ac_t""yes" 1>&6
2854 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2855 cat >> confdefs.h <<EOF
2856 #define $ac_tr_func 1
2860 echo "$ac_t""no" 1>&6
2864 for ac_func in inet_aton inet_addr
2866 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2867 echo "configure:2868: checking for $ac_func" >&5
2868 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2869 echo $ac_n "(cached) $ac_c" 1>&6
2871 cat > conftest.$ac_ext <<EOF
2872 #line 2873 "configure"
2873 #include "confdefs.h"
2874 /* System header to define __stub macros and hopefully few prototypes,
2875 which can conflict with char $ac_func(); below. */
2877 /* Override any gcc2 internal prototype to avoid an error. */
2878 /* We use char because int might match the return type of a gcc2
2879 builtin and then its argument prototype would still apply. */
2884 /* The GNU C library defines this for functions which it implements
2885 to always fail with ENOSYS. Some functions are actually named
2886 something starting with __ and the normal name is an alias. */
2887 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2895 if { (eval echo configure:2896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2897 eval "ac_cv_func_$ac_func=yes"
2899 echo "configure: failed program was:" >&5
2900 cat conftest.$ac_ext >&5
2902 eval "ac_cv_func_$ac_func=no"
2907 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2908 echo "$ac_t""yes" 1>&6
2909 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2910 cat >> confdefs.h <<EOF
2911 #define $ac_tr_func 1
2915 echo "$ac_t""no" 1>&6
2919 for ac_func in inet_pton uname inet_ntoa
2921 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2922 echo "configure:2923: checking for $ac_func" >&5
2923 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2924 echo $ac_n "(cached) $ac_c" 1>&6
2926 cat > conftest.$ac_ext <<EOF
2927 #line 2928 "configure"
2928 #include "confdefs.h"
2929 /* System header to define __stub macros and hopefully few prototypes,
2930 which can conflict with char $ac_func(); below. */
2932 /* Override any gcc2 internal prototype to avoid an error. */
2933 /* We use char because int might match the return type of a gcc2
2934 builtin and then its argument prototype would still apply. */
2939 /* The GNU C library defines this for functions which it implements
2940 to always fail with ENOSYS. Some functions are actually named
2941 something starting with __ and the normal name is an alias. */
2942 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2950 if { (eval echo configure:2951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2952 eval "ac_cv_func_$ac_func=yes"
2954 echo "configure: failed program was:" >&5
2955 cat conftest.$ac_ext >&5
2957 eval "ac_cv_func_$ac_func=no"
2962 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2963 echo "$ac_t""yes" 1>&6
2964 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2965 cat >> confdefs.h <<EOF
2966 #define $ac_tr_func 1
2970 echo "$ac_t""no" 1>&6
2974 for ac_func in backtrace fork execvp pipe
2976 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2977 echo "configure:2978: checking for $ac_func" >&5
2978 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2979 echo $ac_n "(cached) $ac_c" 1>&6
2981 cat > conftest.$ac_ext <<EOF
2982 #line 2983 "configure"
2983 #include "confdefs.h"
2984 /* System header to define __stub macros and hopefully few prototypes,
2985 which can conflict with char $ac_func(); below. */
2987 /* Override any gcc2 internal prototype to avoid an error. */
2988 /* We use char because int might match the return type of a gcc2
2989 builtin and then its argument prototype would still apply. */
2994 /* The GNU C library defines this for functions which it implements
2995 to always fail with ENOSYS. Some functions are actually named
2996 something starting with __ and the normal name is an alias. */
2997 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3005 if { (eval echo configure:3006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3007 eval "ac_cv_func_$ac_func=yes"
3009 echo "configure: failed program was:" >&5
3010 cat conftest.$ac_ext >&5
3012 eval "ac_cv_func_$ac_func=no"
3017 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3018 echo "$ac_t""yes" 1>&6
3019 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3020 cat >> confdefs.h <<EOF
3021 #define $ac_tr_func 1
3025 echo "$ac_t""no" 1>&6
3029 for ac_hdr in execinfo.h unistd.h dlfcn.h
3031 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3032 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3033 echo "configure:3034: checking for $ac_hdr" >&5
3034 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3035 echo $ac_n "(cached) $ac_c" 1>&6
3037 cat > conftest.$ac_ext <<EOF
3038 #line 3039 "configure"
3039 #include "confdefs.h"
3042 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3043 { (eval echo configure:3044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3044 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3045 if test -z "$ac_err"; then
3047 eval "ac_cv_header_$ac_safe=yes"
3050 echo "configure: failed program was:" >&5
3051 cat conftest.$ac_ext >&5
3053 eval "ac_cv_header_$ac_safe=no"
3057 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3058 echo "$ac_t""yes" 1>&6
3059 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3060 cat >> confdefs.h <<EOF
3061 #define $ac_tr_hdr 1
3065 echo "$ac_t""no" 1>&6
3069 echo $ac_n "checking for dladdr in -ldl""... $ac_c" 1>&6
3070 echo "configure:3071: checking for dladdr in -ldl" >&5
3071 ac_lib_var=`echo dl'_'dladdr | sed 'y%./+-%__p_%'`
3072 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3073 echo $ac_n "(cached) $ac_c" 1>&6
3075 ac_save_LIBS="$LIBS"
3077 cat > conftest.$ac_ext <<EOF
3078 #line 3079 "configure"
3079 #include "confdefs.h"
3080 /* Override any gcc2 internal prototype to avoid an error. */
3081 /* We use char because int might match the return type of a gcc2
3082 builtin and then its argument prototype would still apply. */
3089 if { (eval echo configure:3090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3091 eval "ac_cv_lib_$ac_lib_var=yes"
3093 echo "configure: failed program was:" >&5
3094 cat conftest.$ac_ext >&5
3096 eval "ac_cv_lib_$ac_lib_var=no"
3099 LIBS="$ac_save_LIBS"
3102 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3103 echo "$ac_t""yes" 1>&6
3105 cat >> confdefs.h <<\EOF
3106 #define HAVE_DLADDR 1
3110 echo "$ac_t""no" 1>&6
3113 for ac_file in /proc/self/exe
3116 ac_safe=`echo "$ac_file" | sed 'y%./+-%__p_%'`
3117 echo $ac_n "checking for $ac_file""... $ac_c" 1>&6
3118 echo "configure:3119: checking for $ac_file" >&5
3119 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
3120 echo $ac_n "(cached) $ac_c" 1>&6
3122 if test "$cross_compiling" = yes; then
3123 { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
3125 if test -r $ac_file; then
3126 eval "ac_cv_file_$ac_safe=yes"
3128 eval "ac_cv_file_$ac_safe=no"
3132 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
3133 echo "$ac_t""yes" 1>&6
3134 ac_tr_file=HAVE_`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3135 cat >> confdefs.h <<EOF
3136 #define $ac_tr_file 1
3139 cat >> confdefs.h <<\EOF
3140 #define HAVE_PROC_SELF_EXE 1
3144 echo "$ac_t""no" 1>&6
3150 for ac_func in gethostbyname_r
3152 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3153 echo "configure:3154: checking for $ac_func" >&5
3154 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3155 echo $ac_n "(cached) $ac_c" 1>&6
3157 cat > conftest.$ac_ext <<EOF
3158 #line 3159 "configure"
3159 #include "confdefs.h"
3160 /* System header to define __stub macros and hopefully few prototypes,
3161 which can conflict with char $ac_func(); below. */
3163 /* Override any gcc2 internal prototype to avoid an error. */
3164 /* We use char because int might match the return type of a gcc2
3165 builtin and then its argument prototype would still apply. */
3170 /* The GNU C library defines this for functions which it implements
3171 to always fail with ENOSYS. Some functions are actually named
3172 something starting with __ and the normal name is an alias. */
3173 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3181 if { (eval echo configure:3182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3183 eval "ac_cv_func_$ac_func=yes"
3185 echo "configure: failed program was:" >&5
3186 cat conftest.$ac_ext >&5
3188 eval "ac_cv_func_$ac_func=no"
3193 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3194 echo "$ac_t""yes" 1>&6
3195 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3196 cat >> confdefs.h <<EOF
3197 #define $ac_tr_func 1
3200 cat >> confdefs.h <<\EOF
3201 #define HAVE_GETHOSTBYNAME_R 1
3204 # There are two different kinds of gethostbyname_r.
3205 # We look for the one that returns `int'.
3206 # Hopefully this check is robust enough.
3207 cat > conftest.$ac_ext <<EOF
3208 #line 3209 "configure"
3209 #include "confdefs.h"
3212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3213 egrep "int.*gethostbyname_r" >/dev/null 2>&1; then
3216 cat >> confdefs.h <<\EOF
3217 #define GETHOSTBYNAME_R_RETURNS_INT 1
3225 *" -D_REENTRANT "*) ;;
3227 echo $ac_n "checking whether gethostbyname_r declaration requires -D_REENTRANT""... $ac_c" 1>&6
3228 echo "configure:3229: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
3229 if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
3230 echo $ac_n "(cached) $ac_c" 1>&6
3234 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3235 ac_cpp='$CXXCPP $CPPFLAGS'
3236 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3237 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3238 cross_compiling=$ac_cv_prog_cxx_cross
3240 cat > conftest.$ac_ext <<EOF
3241 #line 3242 "configure"
3242 #include "confdefs.h"
3245 gethostbyname_r("", 0, 0);
3248 if { (eval echo configure:3249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3250 libjava_cv_gethostbyname_r_needs_reentrant=no
3252 echo "configure: failed program was:" >&5
3253 cat conftest.$ac_ext >&5
3255 CPPFLAGS_SAVE="$CPPFLAGS"
3256 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
3257 cat > conftest.$ac_ext <<EOF
3258 #line 3259 "configure"
3259 #include "confdefs.h"
3262 gethostbyname_r("", 0, 0);
3265 if { (eval echo configure:3266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3267 libjava_cv_gethostbyname_r_needs_reentrant=yes
3269 echo "configure: failed program was:" >&5
3270 cat conftest.$ac_ext >&5
3272 libjava_cv_gethostbyname_r_needs_reentrant=fail
3275 CPPFLAGS="$CPPFLAGS_SAVE"
3280 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3281 ac_cpp='$CPP $CPPFLAGS'
3282 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3283 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3284 cross_compiling=$ac_cv_prog_cc_cross
3289 echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
3290 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
3291 cat >> confdefs.h <<\EOF
3292 #define _REENTRANT 1
3299 echo $ac_n "checking for struct hostent_data""... $ac_c" 1>&6
3300 echo "configure:3301: checking for struct hostent_data" >&5
3301 if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
3302 echo $ac_n "(cached) $ac_c" 1>&6
3304 cat > conftest.$ac_ext <<EOF
3305 #line 3306 "configure"
3306 #include "confdefs.h"
3308 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
3309 # define _REENTRANT 1
3313 struct hostent_data data;
3316 if { (eval echo configure:3317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3318 libjava_cv_struct_hostent_data=yes
3320 echo "configure: failed program was:" >&5
3321 cat conftest.$ac_ext >&5
3323 libjava_cv_struct_hostent_data=no
3328 echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
3329 if test "x$libjava_cv_struct_hostent_data" = xyes; then
3330 cat >> confdefs.h <<\EOF
3331 #define HAVE_STRUCT_HOSTENT_DATA 1
3337 echo "$ac_t""no" 1>&6
3342 for ac_func in gethostbyaddr_r
3344 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3345 echo "configure:3346: checking for $ac_func" >&5
3346 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3347 echo $ac_n "(cached) $ac_c" 1>&6
3349 cat > conftest.$ac_ext <<EOF
3350 #line 3351 "configure"
3351 #include "confdefs.h"
3352 /* System header to define __stub macros and hopefully few prototypes,
3353 which can conflict with char $ac_func(); below. */
3355 /* Override any gcc2 internal prototype to avoid an error. */
3356 /* We use char because int might match the return type of a gcc2
3357 builtin and then its argument prototype would still apply. */
3362 /* The GNU C library defines this for functions which it implements
3363 to always fail with ENOSYS. Some functions are actually named
3364 something starting with __ and the normal name is an alias. */
3365 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3373 if { (eval echo configure:3374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3375 eval "ac_cv_func_$ac_func=yes"
3377 echo "configure: failed program was:" >&5
3378 cat conftest.$ac_ext >&5
3380 eval "ac_cv_func_$ac_func=no"
3385 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3386 echo "$ac_t""yes" 1>&6
3387 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3388 cat >> confdefs.h <<EOF
3389 #define $ac_tr_func 1
3392 cat >> confdefs.h <<\EOF
3393 #define HAVE_GETHOSTBYADDR_R 1
3396 # There are two different kinds of gethostbyaddr_r.
3397 # We look for the one that returns `int'.
3398 # Hopefully this check is robust enough.
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 "int.*gethostbyaddr_r" >/dev/null 2>&1; then
3408 cat >> confdefs.h <<\EOF
3409 #define GETHOSTBYADDR_R_RETURNS_INT 1
3416 echo "$ac_t""no" 1>&6
3421 for ac_func in gethostname
3423 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3424 echo "configure:3425: checking for $ac_func" >&5
3425 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3426 echo $ac_n "(cached) $ac_c" 1>&6
3428 cat > conftest.$ac_ext <<EOF
3429 #line 3430 "configure"
3430 #include "confdefs.h"
3431 /* System header to define __stub macros and hopefully few prototypes,
3432 which can conflict with char $ac_func(); below. */
3434 /* Override any gcc2 internal prototype to avoid an error. */
3435 /* We use char because int might match the return type of a gcc2
3436 builtin and then its argument prototype would still apply. */
3441 /* The GNU C library defines this for functions which it implements
3442 to always fail with ENOSYS. Some functions are actually named
3443 something starting with __ and the normal name is an alias. */
3444 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3452 if { (eval echo configure:3453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3454 eval "ac_cv_func_$ac_func=yes"
3456 echo "configure: failed program was:" >&5
3457 cat conftest.$ac_ext >&5
3459 eval "ac_cv_func_$ac_func=no"
3464 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3465 echo "$ac_t""yes" 1>&6
3466 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3467 cat >> confdefs.h <<EOF
3468 #define $ac_tr_func 1
3471 cat >> confdefs.h <<\EOF
3472 #define HAVE_GETHOSTNAME 1
3475 cat > conftest.$ac_ext <<EOF
3476 #line 3477 "configure"
3477 #include "confdefs.h"
3480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3481 egrep "gethostname" >/dev/null 2>&1; then
3484 cat >> confdefs.h <<\EOF
3485 #define HAVE_GETHOSTNAME_DECL 1
3492 echo "$ac_t""no" 1>&6
3497 # Look for these functions in the thread library, but only bother
3498 # if using POSIX threads.
3499 if test "$THREADS" = posix; then
3501 LIBS="$LIBS $THREADLIBS"
3502 # Some POSIX thread systems don't have pthread_mutexattr_settype.
3504 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
3506 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3507 echo "configure:3508: checking for $ac_func" >&5
3508 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3509 echo $ac_n "(cached) $ac_c" 1>&6
3511 cat > conftest.$ac_ext <<EOF
3512 #line 3513 "configure"
3513 #include "confdefs.h"
3514 /* System header to define __stub macros and hopefully few prototypes,
3515 which can conflict with char $ac_func(); below. */
3517 /* Override any gcc2 internal prototype to avoid an error. */
3518 /* We use char because int might match the return type of a gcc2
3519 builtin and then its argument prototype would still apply. */
3524 /* The GNU C library defines this for functions which it implements
3525 to always fail with ENOSYS. Some functions are actually named
3526 something starting with __ and the normal name is an alias. */
3527 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3535 if { (eval echo configure:3536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3537 eval "ac_cv_func_$ac_func=yes"
3539 echo "configure: failed program was:" >&5
3540 cat conftest.$ac_ext >&5
3542 eval "ac_cv_func_$ac_func=no"
3547 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3548 echo "$ac_t""yes" 1>&6
3549 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3550 cat >> confdefs.h <<EOF
3551 #define $ac_tr_func 1
3555 echo "$ac_t""no" 1>&6
3560 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
3561 # Solaris 7 the name librt is preferred.
3562 for ac_func in sched_yield
3564 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3565 echo "configure:3566: checking for $ac_func" >&5
3566 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3567 echo $ac_n "(cached) $ac_c" 1>&6
3569 cat > conftest.$ac_ext <<EOF
3570 #line 3571 "configure"
3571 #include "confdefs.h"
3572 /* System header to define __stub macros and hopefully few prototypes,
3573 which can conflict with char $ac_func(); below. */
3575 /* Override any gcc2 internal prototype to avoid an error. */
3576 /* We use char because int might match the return type of a gcc2
3577 builtin and then its argument prototype would still apply. */
3582 /* The GNU C library defines this for functions which it implements
3583 to always fail with ENOSYS. Some functions are actually named
3584 something starting with __ and the normal name is an alias. */
3585 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3593 if { (eval echo configure:3594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3595 eval "ac_cv_func_$ac_func=yes"
3597 echo "configure: failed program was:" >&5
3598 cat conftest.$ac_ext >&5
3600 eval "ac_cv_func_$ac_func=no"
3605 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3606 echo "$ac_t""yes" 1>&6
3607 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3608 cat >> confdefs.h <<EOF
3609 #define $ac_tr_func 1
3613 echo "$ac_t""no" 1>&6
3614 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
3615 echo "configure:3616: checking for sched_yield in -lrt" >&5
3616 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
3617 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3618 echo $ac_n "(cached) $ac_c" 1>&6
3620 ac_save_LIBS="$LIBS"
3622 cat > conftest.$ac_ext <<EOF
3623 #line 3624 "configure"
3624 #include "confdefs.h"
3625 /* Override any gcc2 internal prototype to avoid an error. */
3626 /* We use char because int might match the return type of a gcc2
3627 builtin and then its argument prototype would still apply. */
3634 if { (eval echo configure:3635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3636 eval "ac_cv_lib_$ac_lib_var=yes"
3638 echo "configure: failed program was:" >&5
3639 cat conftest.$ac_ext >&5
3641 eval "ac_cv_lib_$ac_lib_var=no"
3644 LIBS="$ac_save_LIBS"
3647 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3648 echo "$ac_t""yes" 1>&6
3650 cat >> confdefs.h <<\EOF
3651 #define HAVE_SCHED_YIELD 1
3654 THREADLIBS="$THREADLIBS -lrt"
3655 THREADSPEC="$THREADSPEC -lrt"
3657 echo "$ac_t""no" 1>&6
3659 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
3660 echo "configure:3661: checking for sched_yield in -lposix4" >&5
3661 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
3662 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3663 echo $ac_n "(cached) $ac_c" 1>&6
3665 ac_save_LIBS="$LIBS"
3666 LIBS="-lposix4 $LIBS"
3667 cat > conftest.$ac_ext <<EOF
3668 #line 3669 "configure"
3669 #include "confdefs.h"
3670 /* Override any gcc2 internal prototype to avoid an error. */
3671 /* We use char because int might match the return type of a gcc2
3672 builtin and then its argument prototype would still apply. */
3679 if { (eval echo configure:3680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3681 eval "ac_cv_lib_$ac_lib_var=yes"
3683 echo "configure: failed program was:" >&5
3684 cat conftest.$ac_ext >&5
3686 eval "ac_cv_lib_$ac_lib_var=no"
3689 LIBS="$ac_save_LIBS"
3692 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3693 echo "$ac_t""yes" 1>&6
3695 cat >> confdefs.h <<\EOF
3696 #define HAVE_SCHED_YIELD 1
3699 THREADLIBS="$THREADLIBS -lposix4"
3700 THREADSPEC="$THREADSPEC -lposix4"
3702 echo "$ac_t""no" 1>&6
3712 # We can save a little space at runtime if the mutex has m_count
3713 # or __m_count. This is a nice hack for Linux.
3714 cat > conftest.$ac_ext <<EOF
3715 #line 3716 "configure"
3716 #include "confdefs.h"
3717 #include <pthread.h>
3720 extern pthread_mutex_t *mutex; int q = mutex->m_count;
3724 if { (eval echo configure:3725: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3726 cat >> confdefs.h <<\EOF
3727 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
3731 echo "configure: failed program was:" >&5
3732 cat conftest.$ac_ext >&5
3735 cat > conftest.$ac_ext <<EOF
3736 #line 3737 "configure"
3737 #include "confdefs.h"
3738 #include <pthread.h>
3741 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
3745 if { (eval echo configure:3746: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3747 cat >> confdefs.h <<\EOF
3748 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
3752 echo "configure: failed program was:" >&5
3753 cat conftest.$ac_ext >&5
3760 # We require a way to get the time.
3762 for ac_func in gettimeofday time ftime
3764 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3765 echo "configure:3766: checking for $ac_func" >&5
3766 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3767 echo $ac_n "(cached) $ac_c" 1>&6
3769 cat > conftest.$ac_ext <<EOF
3770 #line 3771 "configure"
3771 #include "confdefs.h"
3772 /* System header to define __stub macros and hopefully few prototypes,
3773 which can conflict with char $ac_func(); below. */
3775 /* Override any gcc2 internal prototype to avoid an error. */
3776 /* We use char because int might match the return type of a gcc2
3777 builtin and then its argument prototype would still apply. */
3782 /* The GNU C library defines this for functions which it implements
3783 to always fail with ENOSYS. Some functions are actually named
3784 something starting with __ and the normal name is an alias. */
3785 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3793 if { (eval echo configure:3794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3795 eval "ac_cv_func_$ac_func=yes"
3797 echo "configure: failed program was:" >&5
3798 cat conftest.$ac_ext >&5
3800 eval "ac_cv_func_$ac_func=no"
3805 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3806 echo "$ac_t""yes" 1>&6
3807 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3808 cat >> confdefs.h <<EOF
3809 #define $ac_tr_func 1
3813 echo "$ac_t""no" 1>&6
3817 if test "$time_found" = no; then
3818 { echo "configure: error: no function found to get the time" 1>&2; exit 1; }
3821 for ac_func in memmove
3823 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3824 echo "configure:3825: checking for $ac_func" >&5
3825 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3826 echo $ac_n "(cached) $ac_c" 1>&6
3828 cat > conftest.$ac_ext <<EOF
3829 #line 3830 "configure"
3830 #include "confdefs.h"
3831 /* System header to define __stub macros and hopefully few prototypes,
3832 which can conflict with char $ac_func(); below. */
3834 /* Override any gcc2 internal prototype to avoid an error. */
3835 /* We use char because int might match the return type of a gcc2
3836 builtin and then its argument prototype would still apply. */
3841 /* The GNU C library defines this for functions which it implements
3842 to always fail with ENOSYS. Some functions are actually named
3843 something starting with __ and the normal name is an alias. */
3844 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3852 if { (eval echo configure:3853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3854 eval "ac_cv_func_$ac_func=yes"
3856 echo "configure: failed program was:" >&5
3857 cat conftest.$ac_ext >&5
3859 eval "ac_cv_func_$ac_func=no"
3864 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3865 echo "$ac_t""yes" 1>&6
3866 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3867 cat >> confdefs.h <<EOF
3868 #define $ac_tr_func 1
3872 echo "$ac_t""no" 1>&6
3877 # We require memcpy.
3879 for ac_func in memcpy
3881 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3882 echo "configure:3883: checking for $ac_func" >&5
3883 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3884 echo $ac_n "(cached) $ac_c" 1>&6
3886 cat > conftest.$ac_ext <<EOF
3887 #line 3888 "configure"
3888 #include "confdefs.h"
3889 /* System header to define __stub macros and hopefully few prototypes,
3890 which can conflict with char $ac_func(); below. */
3892 /* Override any gcc2 internal prototype to avoid an error. */
3893 /* We use char because int might match the return type of a gcc2
3894 builtin and then its argument prototype would still apply. */
3899 /* The GNU C library defines this for functions which it implements
3900 to always fail with ENOSYS. Some functions are actually named
3901 something starting with __ and the normal name is an alias. */
3902 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3910 if { (eval echo configure:3911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3912 eval "ac_cv_func_$ac_func=yes"
3914 echo "configure: failed program was:" >&5
3915 cat conftest.$ac_ext >&5
3917 eval "ac_cv_func_$ac_func=no"
3922 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3923 echo "$ac_t""yes" 1>&6
3924 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3925 cat >> confdefs.h <<EOF
3926 #define $ac_tr_func 1
3930 echo "$ac_t""no" 1>&6
3934 if test "$memcpy_found" = no; then
3935 { echo "configure: error: memcpy is required" 1>&2; exit 1; }
3938 # Some library-finding code we stole from Tcl.
3939 #--------------------------------------------------------------------
3940 # Check for the existence of the -lsocket and -lnsl libraries.
3941 # The order here is important, so that they end up in the right
3942 # order in the command line generated by make. Here are some
3943 # special considerations:
3944 # 1. Use "connect" and "accept" to check for -lsocket, and
3945 # "gethostbyname" to check for -lnsl.
3946 # 2. Use each function name only once: can't redo a check because
3947 # autoconf caches the results of the last check and won't redo it.
3948 # 3. Use -lnsl and -lsocket only if they supply procedures that
3949 # aren't already present in the normal libraries. This is because
3950 # IRIX 5.2 has libraries, but they aren't needed and they're
3951 # bogus: they goof up name resolution if used.
3952 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
3953 # To get around this problem, check for both libraries together
3954 # if -lsocket doesn't work by itself.
3955 #--------------------------------------------------------------------
3957 echo $ac_n "checking for socket libraries""... $ac_c" 1>&6
3958 echo "configure:3959: checking for socket libraries" >&5
3959 if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
3960 echo $ac_n "(cached) $ac_c" 1>&6
3964 unset ac_cv_func_connect
3965 echo $ac_n "checking for connect""... $ac_c" 1>&6
3966 echo "configure:3967: checking for connect" >&5
3967 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3968 echo $ac_n "(cached) $ac_c" 1>&6
3970 cat > conftest.$ac_ext <<EOF
3971 #line 3972 "configure"
3972 #include "confdefs.h"
3973 /* System header to define __stub macros and hopefully few prototypes,
3974 which can conflict with char connect(); below. */
3976 /* Override any gcc2 internal prototype to avoid an error. */
3977 /* We use char because int might match the return type of a gcc2
3978 builtin and then its argument prototype would still apply. */
3983 /* The GNU C library defines this for functions which it implements
3984 to always fail with ENOSYS. Some functions are actually named
3985 something starting with __ and the normal name is an alias. */
3986 #if defined (__stub_connect) || defined (__stub___connect)
3994 if { (eval echo configure:3995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3996 eval "ac_cv_func_connect=yes"
3998 echo "configure: failed program was:" >&5
3999 cat conftest.$ac_ext >&5
4001 eval "ac_cv_func_connect=no"
4006 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
4007 echo "$ac_t""yes" 1>&6
4010 echo "$ac_t""no" 1>&6
4014 if test "$gcj_checkSocket" = 1; then
4015 unset ac_cv_func_connect
4016 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4017 echo "configure:4018: checking for main in -lsocket" >&5
4018 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
4019 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4020 echo $ac_n "(cached) $ac_c" 1>&6
4022 ac_save_LIBS="$LIBS"
4023 LIBS="-lsocket $LIBS"
4024 cat > conftest.$ac_ext <<EOF
4025 #line 4026 "configure"
4026 #include "confdefs.h"
4032 if { (eval echo configure:4033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4034 eval "ac_cv_lib_$ac_lib_var=yes"
4036 echo "configure: failed program was:" >&5
4037 cat conftest.$ac_ext >&5
4039 eval "ac_cv_lib_$ac_lib_var=no"
4042 LIBS="$ac_save_LIBS"
4045 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4046 echo "$ac_t""yes" 1>&6
4047 gcj_cv_lib_sockets="-lsocket"
4049 echo "$ac_t""no" 1>&6
4054 if test "$gcj_checkBoth" = 1; then
4056 LIBS="$LIBS -lsocket -lnsl"
4057 unset ac_cv_func_accept
4058 echo $ac_n "checking for accept""... $ac_c" 1>&6
4059 echo "configure:4060: checking for accept" >&5
4060 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
4061 echo $ac_n "(cached) $ac_c" 1>&6
4063 cat > conftest.$ac_ext <<EOF
4064 #line 4065 "configure"
4065 #include "confdefs.h"
4066 /* System header to define __stub macros and hopefully few prototypes,
4067 which can conflict with char accept(); below. */
4069 /* Override any gcc2 internal prototype to avoid an error. */
4070 /* We use char because int might match the return type of a gcc2
4071 builtin and then its argument prototype would still apply. */
4076 /* The GNU C library defines this for functions which it implements
4077 to always fail with ENOSYS. Some functions are actually named
4078 something starting with __ and the normal name is an alias. */
4079 #if defined (__stub_accept) || defined (__stub___accept)
4087 if { (eval echo configure:4088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4089 eval "ac_cv_func_accept=yes"
4091 echo "configure: failed program was:" >&5
4092 cat conftest.$ac_ext >&5
4094 eval "ac_cv_func_accept=no"
4099 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
4100 echo "$ac_t""yes" 1>&6
4102 gcj_cv_lib_sockets="-lsocket -lnsl"
4104 echo "$ac_t""no" 1>&6
4107 unset ac_cv_func_accept
4110 unset ac_cv_func_gethostbyname
4112 LIBS="$LIBS $gcj_cv_lib_sockets"
4113 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4114 echo "configure:4115: checking for gethostbyname" >&5
4115 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
4116 echo $ac_n "(cached) $ac_c" 1>&6
4118 cat > conftest.$ac_ext <<EOF
4119 #line 4120 "configure"
4120 #include "confdefs.h"
4121 /* System header to define __stub macros and hopefully few prototypes,
4122 which can conflict with char gethostbyname(); below. */
4124 /* Override any gcc2 internal prototype to avoid an error. */
4125 /* We use char because int might match the return type of a gcc2
4126 builtin and then its argument prototype would still apply. */
4127 char gethostbyname();
4131 /* The GNU C library defines this for functions which it implements
4132 to always fail with ENOSYS. Some functions are actually named
4133 something starting with __ and the normal name is an alias. */
4134 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4142 if { (eval echo configure:4143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4144 eval "ac_cv_func_gethostbyname=yes"
4146 echo "configure: failed program was:" >&5
4147 cat conftest.$ac_ext >&5
4149 eval "ac_cv_func_gethostbyname=no"
4154 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
4155 echo "$ac_t""yes" 1>&6
4158 echo "$ac_t""no" 1>&6
4159 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4160 echo "configure:4161: checking for main in -lnsl" >&5
4161 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
4162 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4163 echo $ac_n "(cached) $ac_c" 1>&6
4165 ac_save_LIBS="$LIBS"
4167 cat > conftest.$ac_ext <<EOF
4168 #line 4169 "configure"
4169 #include "confdefs.h"
4175 if { (eval echo configure:4176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4177 eval "ac_cv_lib_$ac_lib_var=yes"
4179 echo "configure: failed program was:" >&5
4180 cat conftest.$ac_ext >&5
4182 eval "ac_cv_lib_$ac_lib_var=no"
4185 LIBS="$ac_save_LIBS"
4188 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4189 echo "$ac_t""yes" 1>&6
4190 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
4192 echo "$ac_t""no" 1>&6
4197 unset ac_cv_func_gethostbyname
4202 echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
4203 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
4205 if test "$with_system_zlib" = yes; then
4206 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
4207 echo "configure:4208: checking for deflate in -lz" >&5
4208 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
4209 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4210 echo $ac_n "(cached) $ac_c" 1>&6
4212 ac_save_LIBS="$LIBS"
4214 cat > conftest.$ac_ext <<EOF
4215 #line 4216 "configure"
4216 #include "confdefs.h"
4217 /* Override any gcc2 internal prototype to avoid an error. */
4218 /* We use char because int might match the return type of a gcc2
4219 builtin and then its argument prototype would still apply. */
4226 if { (eval echo configure:4227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4228 eval "ac_cv_lib_$ac_lib_var=yes"
4230 echo "configure: failed program was:" >&5
4231 cat conftest.$ac_ext >&5
4233 eval "ac_cv_lib_$ac_lib_var=no"
4236 LIBS="$ac_save_LIBS"
4239 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4240 echo "$ac_t""yes" 1>&6
4243 echo "$ac_t""no" 1>&6
4249 ZLIBTESTSPEC="-L`pwd`/../zlib/.libs -rpath `pwd`/../zlib/.libs"
4252 # On Solaris, and maybe other architectures, the Boehm collector
4254 if test "$GC" = boehm; then
4255 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
4256 echo "configure:4257: checking for main in -ldl" >&5
4257 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
4258 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4259 echo $ac_n "(cached) $ac_c" 1>&6
4261 ac_save_LIBS="$LIBS"
4263 cat > conftest.$ac_ext <<EOF
4264 #line 4265 "configure"
4265 #include "confdefs.h"
4271 if { (eval echo configure:4272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4273 eval "ac_cv_lib_$ac_lib_var=yes"
4275 echo "configure: failed program was:" >&5
4276 cat conftest.$ac_ext >&5
4278 eval "ac_cv_lib_$ac_lib_var=no"
4281 LIBS="$ac_save_LIBS"
4284 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4285 echo "$ac_t""yes" 1>&6
4286 SYSTEMSPEC="$SYSTEMSPEC -ldl"
4288 echo "$ac_t""no" 1>&6
4293 if test -d "$libgcj_basedir/../gcc/java"; then
4302 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4303 echo "configure:4304: checking size of void *" >&5
4304 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
4305 echo $ac_n "(cached) $ac_c" 1>&6
4307 if test "$cross_compiling" = yes; then
4308 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4310 cat > conftest.$ac_ext <<EOF
4311 #line 4312 "configure"
4312 #include "confdefs.h"
4316 FILE *f=fopen("conftestval", "w");
4318 fprintf(f, "%d\n", sizeof(void *));
4322 if { (eval echo configure:4323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4324 ac_cv_sizeof_void_p=`cat conftestval`
4326 echo "configure: failed program was:" >&5
4327 cat conftest.$ac_ext >&5
4329 ac_cv_sizeof_void_p=0
4335 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
4336 cat >> confdefs.h <<EOF
4337 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4345 if test "x$ZLIBSPEC" = "x-lzgcj"; then
4346 # We include the path to the zlib build directory.
4347 # See Makefile.am to understand why.
4348 ZDEPS='$(top_builddir)/../zlib/libzgcj.la'
4349 ZLIBS="$ZDEPS -L\$(here)/../zlib/$libsubdir"
4350 ZINCS='-I$(top_srcdir)/../zlib'
4363 if test "$CANADIAN" = yes; then
4372 if test "$NULL_TARGET" = yes; then
4374 NULL_TARGET_FALSE='#'
4376 NULL_TARGET_TRUE='#'
4381 if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
4390 if test -z "$with_cross_host"; then
4392 USE_LIBDIR_FALSE='#'
4399 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
4400 NEEDS_DATA_START_TRUE=
4401 NEEDS_DATA_START_FALSE='#'
4403 NEEDS_DATA_START_TRUE='#'
4404 NEEDS_DATA_START_FALSE=
4408 # Determine gcj version number.
4409 if test "$GCJ" = ""; then
4410 if test -z "${with_multisubdir}"; then
4414 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
4417 dir="`cd ${builddotdot}/../../gcc && pwd`"
4418 GCJ="$dir/gcj -B$dir/"
4421 gcjvers="`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`"
4423 cat >> confdefs.h <<EOF
4424 #define GCJVERSION "$gcjvers"
4428 # See if gcj supports -fuse-divide-subroutine. gcc 2.95 does not, and
4429 # we want to continue to support that version.
4430 echo $ac_n "checking whether gcj supports -fuse-divide-subroutine""... $ac_c" 1>&6
4431 echo "configure:4432: checking whether gcj supports -fuse-divide-subroutine" >&5
4432 cat > conftest.java << 'END'
4433 public class conftest { }
4436 $GCJ -classpath $srcdir -fuse-divide-subroutine -fsyntax-only \
4437 conftest.java > /dev/null 2>&1 \
4440 if test "$use_fuse" = no; then
4443 echo "$ac_t""$use_fuse" 1>&6
4447 echo $ac_n "checking for g++ -ffloat-store bug""... $ac_c" 1>&6
4448 echo "configure:4449: checking for g++ -ffloat-store bug" >&5
4449 save_CFLAGS="$CFLAGS"
4450 CFLAGS="-x c++ -O2 -ffloat-store"
4451 cat > conftest.$ac_ext <<EOF
4452 #line 4453 "configure"
4453 #include "confdefs.h"
4459 if { (eval echo configure:4460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4461 echo "$ac_t""no" 1>&6
4463 echo "configure: failed program was:" >&5
4464 cat conftest.$ac_ext >&5
4466 cat >> confdefs.h <<\EOF
4467 #define __NO_MATH_INLINES 1
4470 echo "$ac_t""yes" 1>&6
4473 CFLAGS="$save_CFLAGS"
4475 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
4477 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4478 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4479 echo "configure:4480: checking for $ac_hdr" >&5
4480 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4481 echo $ac_n "(cached) $ac_c" 1>&6
4483 cat > conftest.$ac_ext <<EOF
4484 #line 4485 "configure"
4485 #include "confdefs.h"
4488 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4489 { (eval echo configure:4490: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4490 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4491 if test -z "$ac_err"; then
4493 eval "ac_cv_header_$ac_safe=yes"
4496 echo "configure: failed program was:" >&5
4497 cat conftest.$ac_ext >&5
4499 eval "ac_cv_header_$ac_safe=no"
4503 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4504 echo "$ac_t""yes" 1>&6
4505 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4506 cat >> confdefs.h <<EOF
4507 #define $ac_tr_hdr 1
4511 echo "$ac_t""no" 1>&6
4515 for ac_hdr in dirent.h
4517 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4518 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4519 echo "configure:4520: checking for $ac_hdr" >&5
4520 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4521 echo $ac_n "(cached) $ac_c" 1>&6
4523 cat > conftest.$ac_ext <<EOF
4524 #line 4525 "configure"
4525 #include "confdefs.h"
4528 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4529 { (eval echo configure:4530: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4530 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4531 if test -z "$ac_err"; then
4533 eval "ac_cv_header_$ac_safe=yes"
4536 echo "configure: failed program was:" >&5
4537 cat conftest.$ac_ext >&5
4539 eval "ac_cv_header_$ac_safe=no"
4543 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4544 echo "$ac_t""yes" 1>&6
4545 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4546 cat >> confdefs.h <<EOF
4547 #define $ac_tr_hdr 1
4551 echo "$ac_t""no" 1>&6
4556 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4557 echo "configure:4558: checking for ANSI C header files" >&5
4558 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
4559 echo $ac_n "(cached) $ac_c" 1>&6
4561 cat > conftest.$ac_ext <<EOF
4562 #line 4563 "configure"
4563 #include "confdefs.h"
4569 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4570 { (eval echo configure:4571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4571 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4572 if test -z "$ac_err"; then
4574 ac_cv_header_stdc=yes
4577 echo "configure: failed program was:" >&5
4578 cat conftest.$ac_ext >&5
4580 ac_cv_header_stdc=no
4584 if test $ac_cv_header_stdc = yes; then
4585 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4586 cat > conftest.$ac_ext <<EOF
4587 #line 4588 "configure"
4588 #include "confdefs.h"
4591 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4592 egrep "memchr" >/dev/null 2>&1; then
4596 ac_cv_header_stdc=no
4602 if test $ac_cv_header_stdc = yes; then
4603 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4604 cat > conftest.$ac_ext <<EOF
4605 #line 4606 "configure"
4606 #include "confdefs.h"
4609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4610 egrep "free" >/dev/null 2>&1; then
4614 ac_cv_header_stdc=no
4620 if test $ac_cv_header_stdc = yes; then
4621 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4622 if test "$cross_compiling" = yes; then
4625 cat > conftest.$ac_ext <<EOF
4626 #line 4627 "configure"
4627 #include "confdefs.h"
4629 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4630 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4631 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4632 int main () { int i; for (i = 0; i < 256; i++)
4633 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4637 if { (eval echo configure:4638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4641 echo "configure: failed program was:" >&5
4642 cat conftest.$ac_ext >&5
4644 ac_cv_header_stdc=no
4652 echo "$ac_t""$ac_cv_header_stdc" 1>&6
4653 if test $ac_cv_header_stdc = yes; then
4654 cat >> confdefs.h <<\EOF
4655 #define STDC_HEADERS 1
4660 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
4661 echo "configure:4662: checking for ssize_t" >&5
4662 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
4663 echo $ac_n "(cached) $ac_c" 1>&6
4665 cat > conftest.$ac_ext <<EOF
4666 #line 4667 "configure"
4667 #include "confdefs.h"
4668 #include <sys/types.h>
4674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4675 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4677 ac_cv_type_ssize_t=yes
4680 ac_cv_type_ssize_t=no
4685 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
4686 if test $ac_cv_type_ssize_t = no; then
4687 cat >> confdefs.h <<\EOF
4694 echo $ac_n "checking for in_addr_t""... $ac_c" 1>&6
4695 echo "configure:4696: checking for in_addr_t" >&5
4696 cat > conftest.$ac_ext <<EOF
4697 #line 4698 "configure"
4698 #include "confdefs.h"
4699 #include <sys/types.h>
4704 #if HAVE_NETINET_IN_H
4705 #include <netinet/in.h>
4711 if { (eval echo configure:4712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4713 cat >> confdefs.h <<\EOF
4714 #define HAVE_IN_ADDR_T 1
4717 echo "$ac_t""yes" 1>&6
4719 echo "configure: failed program was:" >&5
4720 cat conftest.$ac_ext >&5
4722 echo "$ac_t""no" 1>&6
4726 echo $ac_n "checking whether struct ip_mreq is in netinet/in.h""... $ac_c" 1>&6
4727 echo "configure:4728: checking whether struct ip_mreq is in netinet/in.h" >&5
4728 cat > conftest.$ac_ext <<EOF
4729 #line 4730 "configure"
4730 #include "confdefs.h"
4731 #include <netinet/in.h>
4733 struct ip_mreq mreq;
4736 if { (eval echo configure:4737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4738 cat >> confdefs.h <<\EOF
4739 #define HAVE_STRUCT_IP_MREQ 1
4742 echo "$ac_t""yes" 1>&6
4744 echo "configure: failed program was:" >&5
4745 cat conftest.$ac_ext >&5
4747 echo "$ac_t""no" 1>&6
4751 echo $ac_n "checking whether struct sockaddr_in6 is in netinet/in.h""... $ac_c" 1>&6
4752 echo "configure:4753: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
4753 cat > conftest.$ac_ext <<EOF
4754 #line 4755 "configure"
4755 #include "confdefs.h"
4756 #include <netinet/in.h>
4758 struct sockaddr_in6 addr6;
4761 if { (eval echo configure:4762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4763 cat >> confdefs.h <<\EOF
4764 #define HAVE_INET6 1
4767 echo "$ac_t""yes" 1>&6
4769 echo "configure: failed program was:" >&5
4770 cat conftest.$ac_ext >&5
4772 echo "$ac_t""no" 1>&6
4776 echo $ac_n "checking for socklen_t in sys/socket.h""... $ac_c" 1>&6
4777 echo "configure:4778: checking for socklen_t in sys/socket.h" >&5
4778 cat > conftest.$ac_ext <<EOF
4779 #line 4780 "configure"
4780 #include "confdefs.h"
4781 #include <sys/socket.h>
4786 if { (eval echo configure:4787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4788 cat >> confdefs.h <<\EOF
4789 #define HAVE_SOCKLEN_T 1
4792 echo "$ac_t""yes" 1>&6
4794 echo "configure: failed program was:" >&5
4795 cat conftest.$ac_ext >&5
4797 echo "$ac_t""no" 1>&6
4801 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
4802 echo "configure:4803: checking for tm_gmtoff in struct tm" >&5
4803 cat > conftest.$ac_ext <<EOF
4804 #line 4805 "configure"
4805 #include "confdefs.h"
4808 struct tm tim; tim.tm_gmtoff = 0;
4811 if { (eval echo configure:4812: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4813 cat >> confdefs.h <<\EOF
4814 #define STRUCT_TM_HAS_GMTOFF 1
4817 echo "$ac_t""yes" 1>&6
4819 echo "configure: failed program was:" >&5
4820 cat conftest.$ac_ext >&5
4822 echo "$ac_t""no" 1>&6
4823 echo $ac_n "checking for global timezone variable""... $ac_c" 1>&6
4824 echo "configure:4825: checking for global timezone variable" >&5
4825 cat > conftest.$ac_ext <<EOF
4826 #line 4827 "configure"
4827 #include "confdefs.h"
4833 if { (eval echo configure:4834: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4835 cat >> confdefs.h <<\EOF
4836 #define HAVE_TIMEZONE 1
4839 echo "$ac_t""yes" 1>&6
4841 echo "configure: failed program was:" >&5
4842 cat conftest.$ac_ext >&5
4844 echo "$ac_t""no" 1>&6
4850 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4851 # for constant arguments. Useless!
4852 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4853 echo "configure:4854: checking for working alloca.h" >&5
4854 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4855 echo $ac_n "(cached) $ac_c" 1>&6
4857 cat > conftest.$ac_ext <<EOF
4858 #line 4859 "configure"
4859 #include "confdefs.h"
4862 char *p = alloca(2 * sizeof(int));
4865 if { (eval echo configure:4866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4867 ac_cv_header_alloca_h=yes
4869 echo "configure: failed program was:" >&5
4870 cat conftest.$ac_ext >&5
4872 ac_cv_header_alloca_h=no
4877 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4878 if test $ac_cv_header_alloca_h = yes; then
4879 cat >> confdefs.h <<\EOF
4880 #define HAVE_ALLOCA_H 1
4885 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4886 echo "configure:4887: checking for alloca" >&5
4887 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4888 echo $ac_n "(cached) $ac_c" 1>&6
4890 cat > conftest.$ac_ext <<EOF
4891 #line 4892 "configure"
4892 #include "confdefs.h"
4895 # define alloca __builtin_alloca
4898 # include <malloc.h>
4899 # define alloca _alloca
4902 # include <alloca.h>
4907 # ifndef alloca /* predefined by HP cc +Olibcalls */
4916 char *p = (char *) alloca(1);
4919 if { (eval echo configure:4920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4921 ac_cv_func_alloca_works=yes
4923 echo "configure: failed program was:" >&5
4924 cat conftest.$ac_ext >&5
4926 ac_cv_func_alloca_works=no
4931 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4932 if test $ac_cv_func_alloca_works = yes; then
4933 cat >> confdefs.h <<\EOF
4934 #define HAVE_ALLOCA 1
4939 if test $ac_cv_func_alloca_works = no; then
4940 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4941 # that cause trouble. Some versions do not even contain alloca or
4942 # contain a buggy version. If you still want to use their alloca,
4943 # use ar to extract alloca.o from them instead of compiling alloca.c.
4944 ALLOCA=alloca.${ac_objext}
4945 cat >> confdefs.h <<\EOF
4950 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4951 echo "configure:4952: checking whether alloca needs Cray hooks" >&5
4952 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4953 echo $ac_n "(cached) $ac_c" 1>&6
4955 cat > conftest.$ac_ext <<EOF
4956 #line 4957 "configure"
4957 #include "confdefs.h"
4958 #if defined(CRAY) && ! defined(CRAY2)
4965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4966 egrep "webecray" >/dev/null 2>&1; then
4977 echo "$ac_t""$ac_cv_os_cray" 1>&6
4978 if test $ac_cv_os_cray = yes; then
4979 for ac_func in _getb67 GETB67 getb67; do
4980 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4981 echo "configure:4982: checking for $ac_func" >&5
4982 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4983 echo $ac_n "(cached) $ac_c" 1>&6
4985 cat > conftest.$ac_ext <<EOF
4986 #line 4987 "configure"
4987 #include "confdefs.h"
4988 /* System header to define __stub macros and hopefully few prototypes,
4989 which can conflict with char $ac_func(); below. */
4991 /* Override any gcc2 internal prototype to avoid an error. */
4992 /* We use char because int might match the return type of a gcc2
4993 builtin and then its argument prototype would still apply. */
4998 /* The GNU C library defines this for functions which it implements
4999 to always fail with ENOSYS. Some functions are actually named
5000 something starting with __ and the normal name is an alias. */
5001 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5009 if { (eval echo configure:5010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5011 eval "ac_cv_func_$ac_func=yes"
5013 echo "configure: failed program was:" >&5
5014 cat conftest.$ac_ext >&5
5016 eval "ac_cv_func_$ac_func=no"
5021 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5022 echo "$ac_t""yes" 1>&6
5023 cat >> confdefs.h <<EOF
5024 #define CRAY_STACKSEG_END $ac_func
5029 echo "$ac_t""no" 1>&6
5035 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5036 echo "configure:5037: checking stack direction for C alloca" >&5
5037 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5038 echo $ac_n "(cached) $ac_c" 1>&6
5040 if test "$cross_compiling" = yes; then
5041 ac_cv_c_stack_direction=0
5043 cat > conftest.$ac_ext <<EOF
5044 #line 5045 "configure"
5045 #include "confdefs.h"
5046 find_stack_direction ()
5048 static char *addr = 0;
5053 return find_stack_direction ();
5056 return (&dummy > addr) ? 1 : -1;
5060 exit (find_stack_direction() < 0);
5063 if { (eval echo configure:5064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5065 ac_cv_c_stack_direction=1
5067 echo "configure: failed program was:" >&5
5068 cat conftest.$ac_ext >&5
5070 ac_cv_c_stack_direction=-1
5077 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5078 cat >> confdefs.h <<EOF
5079 #define STACK_DIRECTION $ac_cv_c_stack_direction
5087 # Extract the first word of "$ac_prog", so it can be a program name with args.
5088 set dummy $ac_prog; ac_word=$2
5089 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5090 echo "configure:5091: checking for $ac_word" >&5
5091 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
5092 echo $ac_n "(cached) $ac_c" 1>&6
5094 if test -n "$PERL"; then
5095 ac_cv_prog_PERL="$PERL" # Let the user override the test.
5097 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5099 for ac_dir in $ac_dummy; do
5100 test -z "$ac_dir" && ac_dir=.
5101 if test -f $ac_dir/$ac_word; then
5102 ac_cv_prog_PERL="$ac_prog"
5109 PERL="$ac_cv_prog_PERL"
5110 if test -n "$PERL"; then
5111 echo "$ac_t""$PERL" 1>&6
5113 echo "$ac_t""no" 1>&6
5116 test -n "$PERL" && break
5118 test -n "$PERL" || PERL="false"
5121 if test "$enable_sjlj_exceptions" = yes; then
5122 SIGNAL_HANDLER=include/default-signal.h
5126 SIGNAL_HANDLER=include/i386-signal.h
5129 SIGNAL_HANDLER=include/sparc-signal.h
5132 SIGNAL_HANDLER=include/default-signal.h
5139 if test "${multilib}" = "yes"; then
5140 multilib_arg="--enable-multilib"
5149 cat > confcache <<\EOF
5150 # This file is a shell script that caches the results of configure
5151 # tests run on this system so they can be shared between configure
5152 # scripts and configure runs. It is not useful on other systems.
5153 # If it contains results you don't want to keep, you may remove or edit it.
5155 # By default, configure uses ./config.cache as the cache file,
5156 # creating it if it does not exist already. You can give configure
5157 # the --cache-file=FILE option to use a different cache file; that is
5158 # what configure does when it calls configure scripts in
5159 # subdirectories, so they share the cache.
5160 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5161 # config.status only pays attention to the cache file if you give it the
5162 # --recheck option to rerun configure.
5165 # The following way of writing the cache mishandles newlines in values,
5166 # but we know of no workaround that is simple, portable, and efficient.
5167 # So, don't put newlines in cache variables' values.
5168 # Ultrix sh set writes to stderr and can't be redirected directly,
5169 # and sets the high bit in the cache file unless we assign to the vars.
5171 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5173 # `set' does not quote correctly, so add quotes (double-quote substitution
5174 # turns \\\\ into \\, and sed turns \\ into \).
5176 -e "s/'/'\\\\''/g" \
5177 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5180 # `set' quotes correctly as required by POSIX, so do not add quotes.
5181 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5184 if cmp -s $cache_file confcache; then
5187 if test -w $cache_file; then
5188 echo "updating cache $cache_file"
5189 cat confcache > $cache_file
5191 echo "not updating unwritable cache $cache_file"
5196 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5198 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5199 # Let make expand exec_prefix.
5200 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5202 # Any assignment to VPATH causes Sun make to only execute
5203 # the first set of double-colon rules, so remove it if not needed.
5204 # If there is a colon in the path, we need to keep it.
5205 if test "x$srcdir" = x.; then
5206 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5209 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5211 DEFS=-DHAVE_CONFIG_H
5213 # Without the "./", some shells look in PATH for config.status.
5214 : ${CONFIG_STATUS=./config.status}
5216 echo creating $CONFIG_STATUS
5217 rm -f $CONFIG_STATUS
5218 cat > $CONFIG_STATUS <<EOF
5220 # Generated automatically by configure.
5221 # Run this file to recreate the current configuration.
5222 # This directory was configured as follows,
5223 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5225 # $0 $ac_configure_args
5227 # Compiler output produced by configure, useful for debugging
5228 # configure, is in ./config.log if it exists.
5230 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5233 case "\$ac_option" in
5234 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5235 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5236 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5237 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5238 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5240 -help | --help | --hel | --he | --h)
5241 echo "\$ac_cs_usage"; exit 0 ;;
5242 *) echo "\$ac_cs_usage"; exit 1 ;;
5246 ac_given_srcdir=$srcdir
5247 ac_given_INSTALL="$INSTALL"
5249 trap 'rm -fr `echo "Makefile libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5251 cat >> $CONFIG_STATUS <<EOF
5253 # Protect against being on the right side of a sed subst in config.status.
5254 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5255 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5259 s%@CFLAGS@%$CFLAGS%g
5260 s%@CPPFLAGS@%$CPPFLAGS%g
5261 s%@CXXFLAGS@%$CXXFLAGS%g
5262 s%@FFLAGS@%$FFLAGS%g
5264 s%@LDFLAGS@%$LDFLAGS%g
5266 s%@exec_prefix@%$exec_prefix%g
5267 s%@prefix@%$prefix%g
5268 s%@program_transform_name@%$program_transform_name%g
5269 s%@bindir@%$bindir%g
5270 s%@sbindir@%$sbindir%g
5271 s%@libexecdir@%$libexecdir%g
5272 s%@datadir@%$datadir%g
5273 s%@sysconfdir@%$sysconfdir%g
5274 s%@sharedstatedir@%$sharedstatedir%g
5275 s%@localstatedir@%$localstatedir%g
5276 s%@libdir@%$libdir%g
5277 s%@includedir@%$includedir%g
5278 s%@oldincludedir@%$oldincludedir%g
5279 s%@infodir@%$infodir%g
5280 s%@mandir@%$mandir%g
5282 s%@host_alias@%$host_alias%g
5283 s%@host_cpu@%$host_cpu%g
5284 s%@host_vendor@%$host_vendor%g
5285 s%@host_os@%$host_os%g
5286 s%@target@%$target%g
5287 s%@target_alias@%$target_alias%g
5288 s%@target_cpu@%$target_cpu%g
5289 s%@target_vendor@%$target_vendor%g
5290 s%@target_os@%$target_os%g
5292 s%@build_alias@%$build_alias%g
5293 s%@build_cpu@%$build_cpu%g
5294 s%@build_vendor@%$build_vendor%g
5295 s%@build_os@%$build_os%g
5296 s%@libgcj_basedir@%$libgcj_basedir%g
5297 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5298 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5299 s%@INSTALL_DATA@%$INSTALL_DATA%g
5300 s%@PACKAGE@%$PACKAGE%g
5301 s%@VERSION@%$VERSION%g
5302 s%@ACLOCAL@%$ACLOCAL%g
5303 s%@AUTOCONF@%$AUTOCONF%g
5304 s%@AUTOMAKE@%$AUTOMAKE%g
5305 s%@AUTOHEADER@%$AUTOHEADER%g
5306 s%@MAKEINFO@%$MAKEINFO%g
5307 s%@SET_MAKE@%$SET_MAKE%g
5312 s%@RANLIB@%$RANLIB%g
5313 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5314 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5316 s%@EXEEXT@%$EXEEXT%g
5317 s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
5318 s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
5319 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
5320 s%@INCLTDL@%$INCLTDL%g
5321 s%@LIBLTDL@%$LIBLTDL%g
5322 s%@DIRLTDL@%$DIRLTDL%g
5324 s%@LIBTOOL@%$LIBTOOL%g
5325 s%@subdirs@%$subdirs%g
5326 s%@COMPPATH@%$COMPPATH%g
5327 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
5328 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
5329 s%@AWT_TRUE@%$AWT_TRUE%g
5330 s%@AWT_FALSE@%$AWT_FALSE%g
5331 s%@LIBDATASTARTSPEC@%$LIBDATASTARTSPEC%g
5333 s%@SYSTEMSPEC@%$SYSTEMSPEC%g
5334 s%@LIBGCJTESTSPEC@%$LIBGCJTESTSPEC%g
5335 s%@ZLIBSPEC@%$ZLIBSPEC%g
5336 s%@ZLIBTESTSPEC@%$ZLIBTESTSPEC%g
5337 s%@GCLIBS@%$GCLIBS%g
5338 s%@GCINCS@%$GCINCS%g
5339 s%@GCDEPS@%$GCDEPS%g
5340 s%@GCOBJS@%$GCOBJS%g
5341 s%@GCSPEC@%$GCSPEC%g
5342 s%@GCTESTSPEC@%$GCTESTSPEC%g
5343 s%@THREADLIBS@%$THREADLIBS%g
5344 s%@THREADINCS@%$THREADINCS%g
5345 s%@THREADDEPS@%$THREADDEPS%g
5346 s%@THREADOBJS@%$THREADOBJS%g
5347 s%@THREADSPEC@%$THREADSPEC%g
5348 s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
5349 s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
5353 s%@DIVIDESPEC@%$DIVIDESPEC%g
5354 s%@EXCEPTIONSPEC@%$EXCEPTIONSPEC%g
5355 s%@FORCELIBGCCSPEC@%$FORCELIBGCCSPEC%g
5356 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
5357 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
5358 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
5359 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
5360 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
5361 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
5362 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
5363 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
5364 s%@NEEDS_DATA_START_TRUE@%$NEEDS_DATA_START_TRUE%g
5365 s%@NEEDS_DATA_START_FALSE@%$NEEDS_DATA_START_FALSE%g
5366 s%@EH_COMMON_INCLUDE@%$EH_COMMON_INCLUDE%g
5367 s%@AM_RUNTESTFLAGS@%$AM_RUNTESTFLAGS%g
5368 s%@ALLOCA@%$ALLOCA%g
5375 cat >> $CONFIG_STATUS <<\EOF
5377 # Split the substitutions into bite-sized pieces for seds with
5378 # small command number limits, like on Digital OSF/1 and HP-UX.
5379 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5380 ac_file=1 # Number of current file.
5381 ac_beg=1 # First line for current file.
5382 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5385 while $ac_more_lines; do
5386 if test $ac_beg -gt 1; then
5387 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5389 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5391 if test ! -s conftest.s$ac_file; then
5393 rm -f conftest.s$ac_file
5395 if test -z "$ac_sed_cmds"; then
5396 ac_sed_cmds="sed -f conftest.s$ac_file"
5398 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5400 ac_file=`expr $ac_file + 1`
5402 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5405 if test -z "$ac_sed_cmds"; then
5410 cat >> $CONFIG_STATUS <<EOF
5412 CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile"}
5414 cat >> $CONFIG_STATUS <<\EOF
5415 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5416 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5418 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5419 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5420 *) ac_file_in="${ac_file}.in" ;;
5423 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5425 # Remove last slash and all that follows it. Not all systems have dirname.
5426 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5427 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5428 # The file is in a subdirectory.
5429 test ! -d "$ac_dir" && mkdir "$ac_dir"
5430 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5431 # A "../" for each directory in $ac_dir_suffix.
5432 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5434 ac_dir_suffix= ac_dots=
5437 case "$ac_given_srcdir" in
5439 if test -z "$ac_dots"; then top_srcdir=.
5440 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5441 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5443 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5444 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5447 case "$ac_given_INSTALL" in
5448 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5449 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5452 echo creating "$ac_file"
5454 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5456 *Makefile*) ac_comsub="1i\\
5457 # $configure_input" ;;
5461 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5463 s%@configure_input@%$configure_input%g
5464 s%@srcdir@%$srcdir%g
5465 s%@top_srcdir@%$top_srcdir%g
5466 s%@INSTALL@%$INSTALL%g
5467 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5471 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5472 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5474 # ac_d sets the value in "#define NAME VALUE" lines.
5475 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5476 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5479 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5480 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5481 ac_uB='\([ ]\)%\1#\2define\3'
5484 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5485 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5486 ac_eB='$%\1#\2define\3'
5490 if test "${CONFIG_HEADERS+set}" != set; then
5492 cat >> $CONFIG_STATUS <<EOF
5493 CONFIG_HEADERS="include/config.h"
5495 cat >> $CONFIG_STATUS <<\EOF
5497 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5498 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5500 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5501 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5502 *) ac_file_in="${ac_file}.in" ;;
5505 echo creating $ac_file
5507 rm -f conftest.frag conftest.in conftest.out
5508 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5509 cat $ac_file_inputs > conftest.in
5513 # Transform confdefs.h into a sed script conftest.vals that substitutes
5514 # the proper values into config.h.in to produce config.h. And first:
5515 # Protect against being on the right side of a sed subst in config.status.
5516 # Protect against being in an unquoted here document in config.status.
5518 cat > conftest.hdr <<\EOF
5521 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5525 sed -n -f conftest.hdr confdefs.h > conftest.vals
5528 # This sed command replaces #undef with comments. This is necessary, for
5529 # example, in the case of _POSIX_SOURCE, which is predefined and required
5530 # on some systems where configure will not decide to define it.
5531 cat >> conftest.vals <<\EOF
5532 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5535 # Break up conftest.vals because some shells have a limit on
5536 # the size of here documents, and old seds have small limits too.
5541 ac_lines=`grep -c . conftest.vals`
5542 # grep -c gives empty output for an empty file on some AIX systems.
5543 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5544 # Write a limited-size here document to conftest.frag.
5545 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5546 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5548 sed -f conftest.frag conftest.in > conftest.out
5550 mv conftest.out conftest.in
5552 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5554 mv conftest.tail conftest.vals
5558 cat >> $CONFIG_STATUS <<\EOF
5559 rm -f conftest.frag conftest.h
5560 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5561 cat conftest.in >> conftest.h
5563 if cmp -s $ac_file conftest.h 2>/dev/null; then
5564 echo "$ac_file is unchanged"
5567 # Remove last slash and all that follows it. Not all systems have dirname.
5568 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5569 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5570 # The file is in a subdirectory.
5571 test ! -d "$ac_dir" && mkdir "$ac_dir"
5574 mv conftest.h $ac_file
5580 cat >> $CONFIG_STATUS <<EOF
5581 ac_sources="java/io/$FILE_DESCRIPTOR java/lang/${PROCESS}Process.java java/lang/nat${PROCESS}Process.cc include/$GCHDR include/$THREADH $SIGNAL_HANDLER"
5582 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"
5585 cat >> $CONFIG_STATUS <<\EOF
5586 srcdir=$ac_given_srcdir
5587 while test -n "$ac_sources"; do
5588 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5589 set $ac_sources; ac_source=$1; shift; ac_sources=$*
5591 echo "linking $srcdir/$ac_source to $ac_dest"
5593 if test ! -r $srcdir/$ac_source; then
5594 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
5598 # Make relative symlinks.
5599 # Remove last slash and all that follows it. Not all systems have dirname.
5600 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
5601 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
5602 # The dest file is in a subdirectory.
5603 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
5604 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
5605 # A "../" for each directory in $ac_dest_dir_suffix.
5606 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
5608 ac_dest_dir_suffix= ac_dots=
5612 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
5613 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
5616 # Make a symlink if possible; otherwise try a hard link.
5617 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
5618 ln $srcdir/$ac_source $ac_dest; then :
5620 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
5624 cat >> $CONFIG_STATUS <<EOF
5629 with_multisubdir=${with_multisubdir}
5630 ac_configure_args="${multilib_arg} ${ac_configure_args}"
5631 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
5632 libgcj_basedir=${libgcj_basedir}
5637 cat >> $CONFIG_STATUS <<\EOF
5638 test -z "$CONFIG_HEADERS" || echo timestamp > include/stamp-h
5639 if test -n "$CONFIG_FILES"; then
5640 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
5644 chmod +x $CONFIG_STATUS
5645 rm -fr confdefs* $ac_clean_files
5646 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5648 if test "$no_recursion" != yes; then
5650 # Remove --cache-file and --srcdir arguments so they do not pile up.
5651 ac_sub_configure_args=
5653 for ac_arg in $ac_configure_args; do
5654 if test -n "$ac_prev"; then
5659 -cache-file | --cache-file | --cache-fil | --cache-fi \
5660 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
5661 ac_prev=cache_file ;;
5662 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
5663 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
5665 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
5667 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5669 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
5673 for ac_config_dir in $DIRLTDL; do
5675 # Do not complain, so a configure script can configure whichever
5676 # parts of a large source tree are present.
5677 if test ! -d $srcdir/$ac_config_dir; then
5681 echo configuring in $ac_config_dir
5686 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
5688 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
5696 # A "../" for each directory in /$ac_config_dir.
5697 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
5700 .) # No --srcdir option. We are building in place.
5701 ac_sub_srcdir=$srcdir ;;
5702 /*) # Absolute path.
5703 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
5705 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
5708 # Check for guested configure; otherwise get Cygnus style configure.
5709 if test -f $ac_sub_srcdir/configure; then
5710 ac_sub_configure=$ac_sub_srcdir/configure
5711 elif test -f $ac_sub_srcdir/configure.in; then
5712 ac_sub_configure=$ac_configure
5714 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
5718 # The recursion is here.
5719 if test -n "$ac_sub_configure"; then
5721 # Make the cache file name correct relative to the subdirectory.
5722 case "$cache_file" in
5723 /*) ac_sub_cache_file=$cache_file ;;
5725 ac_sub_cache_file="$ac_dots$cache_file" ;;
5727 case "$ac_given_INSTALL" in
5728 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5729 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5732 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
5733 # The eval makes quoting arguments work.
5734 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
5737 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }