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 --with-pic try to use only PIC/non-PIC objects [default=use both]"
37 --enable-fast-character prefer speed over size for Character"
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
976 # Extract the first word of "gcc", so it can be a program name with args.
977 set dummy gcc; ac_word=$2
978 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
979 echo "configure:980: checking for $ac_word" >&5
980 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
981 echo $ac_n "(cached) $ac_c" 1>&6
983 if test -n "$CC"; then
984 ac_cv_prog_CC="$CC" # Let the user override the test.
986 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
988 for ac_dir in $ac_dummy; do
989 test -z "$ac_dir" && ac_dir=.
990 if test -f $ac_dir/$ac_word; then
999 if test -n "$CC"; then
1000 echo "$ac_t""$CC" 1>&6
1002 echo "$ac_t""no" 1>&6
1005 if test -z "$CC"; then
1006 # Extract the first word of "cc", so it can be a program name with args.
1007 set dummy cc; ac_word=$2
1008 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1009 echo "configure:1010: checking for $ac_word" >&5
1010 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1011 echo $ac_n "(cached) $ac_c" 1>&6
1013 if test -n "$CC"; then
1014 ac_cv_prog_CC="$CC" # Let the user override the test.
1016 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1019 for ac_dir in $ac_dummy; do
1020 test -z "$ac_dir" && ac_dir=.
1021 if test -f $ac_dir/$ac_word; then
1022 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1023 ac_prog_rejected=yes
1031 if test $ac_prog_rejected = yes; then
1032 # We found a bogon in the path, so make sure we never use it.
1033 set dummy $ac_cv_prog_CC
1035 if test $# -gt 0; then
1036 # We chose a different compiler from the bogus one.
1037 # However, it has the same basename, so the bogon will be chosen
1038 # first if we set CC to just the basename; use the full file name.
1040 set dummy "$ac_dir/$ac_word" "$@"
1048 if test -n "$CC"; then
1049 echo "$ac_t""$CC" 1>&6
1051 echo "$ac_t""no" 1>&6
1054 if test -z "$CC"; then
1055 case "`uname -s`" in
1057 # Extract the first word of "cl", so it can be a program name with args.
1058 set dummy cl; ac_word=$2
1059 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1060 echo "configure:1061: checking for $ac_word" >&5
1061 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1062 echo $ac_n "(cached) $ac_c" 1>&6
1064 if test -n "$CC"; then
1065 ac_cv_prog_CC="$CC" # Let the user override the test.
1067 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1069 for ac_dir in $ac_dummy; do
1070 test -z "$ac_dir" && ac_dir=.
1071 if test -f $ac_dir/$ac_word; then
1080 if test -n "$CC"; then
1081 echo "$ac_t""$CC" 1>&6
1083 echo "$ac_t""no" 1>&6
1088 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1092 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1093 echo "configure:1094: checking whether we are using GNU C" >&5
1094 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1095 echo $ac_n "(cached) $ac_c" 1>&6
1097 cat > conftest.c <<EOF
1102 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1103: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1109 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1111 if test $ac_cv_prog_gcc = yes; then
1117 ac_test_CFLAGS="${CFLAGS+set}"
1118 ac_save_CFLAGS="$CFLAGS"
1120 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1121 echo "configure:1122: checking whether ${CC-cc} accepts -g" >&5
1122 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1123 echo $ac_n "(cached) $ac_c" 1>&6
1125 echo 'void f(){}' > conftest.c
1126 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1135 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1136 if test "$ac_test_CFLAGS" = set; then
1137 CFLAGS="$ac_save_CFLAGS"
1138 elif test $ac_cv_prog_cc_g = yes; then
1139 if test "$GCC" = yes; then
1145 if test "$GCC" = yes; then
1152 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1154 # Extract the first word of "$ac_prog", so it can be a program name with args.
1155 set dummy $ac_prog; ac_word=$2
1156 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1157 echo "configure:1158: checking for $ac_word" >&5
1158 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1159 echo $ac_n "(cached) $ac_c" 1>&6
1161 if test -n "$CXX"; then
1162 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1164 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1166 for ac_dir in $ac_dummy; do
1167 test -z "$ac_dir" && ac_dir=.
1168 if test -f $ac_dir/$ac_word; then
1169 ac_cv_prog_CXX="$ac_prog"
1176 CXX="$ac_cv_prog_CXX"
1177 if test -n "$CXX"; then
1178 echo "$ac_t""$CXX" 1>&6
1180 echo "$ac_t""no" 1>&6
1183 test -n "$CXX" && break
1185 test -n "$CXX" || CXX="gcc"
1189 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1190 echo "configure:1191: checking whether we are using GNU C++" >&5
1191 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1192 echo $ac_n "(cached) $ac_c" 1>&6
1194 cat > conftest.C <<EOF
1199 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1200: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1206 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1208 if test $ac_cv_prog_gxx = yes; then
1214 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1215 ac_save_CXXFLAGS="$CXXFLAGS"
1217 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1218 echo "configure:1219: checking whether ${CXX-g++} accepts -g" >&5
1219 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1220 echo $ac_n "(cached) $ac_c" 1>&6
1222 echo 'void f(){}' > conftest.cc
1223 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1224 ac_cv_prog_cxx_g=yes
1232 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1233 if test "$ac_test_CXXFLAGS" = set; then
1234 CXXFLAGS="$ac_save_CXXFLAGS"
1235 elif test $ac_cv_prog_cxx_g = yes; then
1236 if test "$GXX" = yes; then
1242 if test "$GXX" = yes; then
1256 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1257 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1259 cat >> confdefs.h <<EOF
1260 #define PACKAGE "$PACKAGE"
1263 cat >> confdefs.h <<EOF
1264 #define VERSION "$VERSION"
1269 missing_dir=`cd $ac_aux_dir && pwd`
1270 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1271 echo "configure:1272: checking for working aclocal" >&5
1272 # Run test in a subshell; some versions of sh will print an error if
1273 # an executable is not found, even if stderr is redirected.
1274 # Redirect stdin to placate older versions of autoconf. Sigh.
1275 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1277 echo "$ac_t""found" 1>&6
1279 ACLOCAL="$missing_dir/missing aclocal"
1280 echo "$ac_t""missing" 1>&6
1283 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1284 echo "configure:1285: checking for working autoconf" >&5
1285 # Run test in a subshell; some versions of sh will print an error if
1286 # an executable is not found, even if stderr is redirected.
1287 # Redirect stdin to placate older versions of autoconf. Sigh.
1288 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1290 echo "$ac_t""found" 1>&6
1292 AUTOCONF="$missing_dir/missing autoconf"
1293 echo "$ac_t""missing" 1>&6
1296 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1297 echo "configure:1298: checking for working automake" >&5
1298 # Run test in a subshell; some versions of sh will print an error if
1299 # an executable is not found, even if stderr is redirected.
1300 # Redirect stdin to placate older versions of autoconf. Sigh.
1301 if (automake --version) < /dev/null > /dev/null 2>&1; then
1303 echo "$ac_t""found" 1>&6
1305 AUTOMAKE="$missing_dir/missing automake"
1306 echo "$ac_t""missing" 1>&6
1309 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1310 echo "configure:1311: checking for working autoheader" >&5
1311 # Run test in a subshell; some versions of sh will print an error if
1312 # an executable is not found, even if stderr is redirected.
1313 # Redirect stdin to placate older versions of autoconf. Sigh.
1314 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1315 AUTOHEADER=autoheader
1316 echo "$ac_t""found" 1>&6
1318 AUTOHEADER="$missing_dir/missing autoheader"
1319 echo "$ac_t""missing" 1>&6
1322 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1323 echo "configure:1324: checking for working makeinfo" >&5
1324 # Run test in a subshell; some versions of sh will print an error if
1325 # an executable is not found, even if stderr is redirected.
1326 # Redirect stdin to placate older versions of autoconf. Sigh.
1327 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1329 echo "$ac_t""found" 1>&6
1331 MAKEINFO="$missing_dir/missing makeinfo"
1332 echo "$ac_t""missing" 1>&6
1337 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we dont
1338 # run it explicitly here, it will be run implicitly before
1339 # LIBGCJ_CONFIGURE, which doesn't work because that means that it will
1340 # be run before AC_CANONICAL_HOST.
1341 echo $ac_n "checking build system type""... $ac_c" 1>&6
1342 echo "configure:1343: checking build system type" >&5
1345 case "$build_alias" in
1348 NONE) build_alias=$host_alias ;;
1349 *) build_alias=$nonopt ;;
1353 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1354 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1355 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1356 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1357 echo "$ac_t""$build" 1>&6
1360 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1361 set dummy ${ac_tool_prefix}as; ac_word=$2
1362 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1363 echo "configure:1364: checking for $ac_word" >&5
1364 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1365 echo $ac_n "(cached) $ac_c" 1>&6
1367 if test -n "$AS"; then
1368 ac_cv_prog_AS="$AS" # Let the user override the test.
1370 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1372 for ac_dir in $ac_dummy; do
1373 test -z "$ac_dir" && ac_dir=.
1374 if test -f $ac_dir/$ac_word; then
1375 ac_cv_prog_AS="${ac_tool_prefix}as"
1380 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1384 if test -n "$AS"; then
1385 echo "$ac_t""$AS" 1>&6
1387 echo "$ac_t""no" 1>&6
1392 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1393 set dummy ${ac_tool_prefix}ar; ac_word=$2
1394 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1395 echo "configure:1396: checking for $ac_word" >&5
1396 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1397 echo $ac_n "(cached) $ac_c" 1>&6
1399 if test -n "$AR"; then
1400 ac_cv_prog_AR="$AR" # Let the user override the test.
1402 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1404 for ac_dir in $ac_dummy; do
1405 test -z "$ac_dir" && ac_dir=.
1406 if test -f $ac_dir/$ac_word; then
1407 ac_cv_prog_AR="${ac_tool_prefix}ar"
1412 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1416 if test -n "$AR"; then
1417 echo "$ac_t""$AR" 1>&6
1419 echo "$ac_t""no" 1>&6
1424 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1425 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1426 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1427 echo "configure:1428: checking for $ac_word" >&5
1428 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1429 echo $ac_n "(cached) $ac_c" 1>&6
1431 if test -n "$RANLIB"; then
1432 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1434 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1436 for ac_dir in $ac_dummy; do
1437 test -z "$ac_dir" && ac_dir=.
1438 if test -f $ac_dir/$ac_word; then
1439 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1446 RANLIB="$ac_cv_prog_RANLIB"
1447 if test -n "$RANLIB"; then
1448 echo "$ac_t""$RANLIB" 1>&6
1450 echo "$ac_t""no" 1>&6
1454 if test -z "$ac_cv_prog_RANLIB"; then
1455 if test -n "$ac_tool_prefix"; then
1456 # Extract the first word of "ranlib", so it can be a program name with args.
1457 set dummy ranlib; ac_word=$2
1458 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1459 echo "configure:1460: checking for $ac_word" >&5
1460 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1461 echo $ac_n "(cached) $ac_c" 1>&6
1463 if test -n "$RANLIB"; then
1464 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1466 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1468 for ac_dir in $ac_dummy; do
1469 test -z "$ac_dir" && ac_dir=.
1470 if test -f $ac_dir/$ac_word; then
1471 ac_cv_prog_RANLIB="ranlib"
1476 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1479 RANLIB="$ac_cv_prog_RANLIB"
1480 if test -n "$RANLIB"; then
1481 echo "$ac_t""$RANLIB" 1>&6
1483 echo "$ac_t""no" 1>&6
1492 # Find a good install program. We prefer a C program (faster),
1493 # so one script is as good as another. But avoid the broken or
1494 # incompatible versions:
1495 # SysV /etc/install, /usr/sbin/install
1496 # SunOS /usr/etc/install
1497 # IRIX /sbin/install
1499 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1500 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1501 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1502 # ./install, which can be erroneously created by make from ./install.sh.
1503 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1504 echo "configure:1505: checking for a BSD compatible install" >&5
1505 if test -z "$INSTALL"; then
1506 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1507 echo $ac_n "(cached) $ac_c" 1>&6
1509 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1510 for ac_dir in $PATH; do
1511 # Account for people who put trailing slashes in PATH elements.
1513 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1515 # OSF1 and SCO ODT 3.0 have their own names for install.
1516 # Don't use installbsd from OSF since it installs stuff as root
1518 for ac_prog in ginstall scoinst install; do
1519 if test -f $ac_dir/$ac_prog; then
1520 if test $ac_prog = install &&
1521 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1522 # AIX install. It has an incompatible calling convention.
1525 ac_cv_path_install="$ac_dir/$ac_prog -c"
1536 if test "${ac_cv_path_install+set}" = set; then
1537 INSTALL="$ac_cv_path_install"
1539 # As a last resort, use the slow shell script. We don't cache a
1540 # path for INSTALL within a source directory, because that will
1541 # break other packages using the cache if that directory is
1542 # removed, or if the path is relative.
1543 INSTALL="$ac_install_sh"
1546 echo "$ac_t""$INSTALL" 1>&6
1548 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1549 # It thinks the first close brace ends the variable substitution.
1550 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1552 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1554 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1557 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1558 echo "configure:1559: checking whether to enable maintainer-specific portions of Makefiles" >&5
1559 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1560 if test "${enable_maintainer_mode+set}" = set; then
1561 enableval="$enable_maintainer_mode"
1562 USE_MAINTAINER_MODE=$enableval
1564 USE_MAINTAINER_MODE=no
1567 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1570 if test $USE_MAINTAINER_MODE = yes; then
1571 MAINTAINER_MODE_TRUE=
1572 MAINTAINER_MODE_FALSE='#'
1574 MAINTAINER_MODE_TRUE='#'
1575 MAINTAINER_MODE_FALSE=
1577 MAINT=$MAINTAINER_MODE_TRUE
1581 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1582 # at least currently, we never actually build a program, so we never
1583 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1584 # fails, because we are probably configuring with a cross compiler
1585 # which cant create executables. So we include AC_EXEEXT to keep
1586 # automake happy, but we dont execute it, since we dont care about
1591 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1592 echo "configure:1593: checking for executable suffix" >&5
1593 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1594 echo $ac_n "(cached) $ac_c" 1>&6
1596 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1600 echo 'int main () { return 0; }' > conftest.$ac_ext
1602 if { (eval echo configure:1603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1603 for file in conftest.*; do
1605 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1606 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1610 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1613 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1618 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1619 echo "$ac_t""${ac_cv_exeext}" 1>&6
1624 # configure.host sets the following important variables
1625 # libgcj_cflags - host specific C compiler flags
1626 # libgcj_cxxflags - host specific C++ compiler flags
1627 # libgcj_javaflags - host specific Java compiler flags
1633 . ${libgcj_basedir}/configure.host
1635 case ${libgcj_basedir} in
1636 /* | A-Za-z:/\\*) libgcj_flagbasedir=${libgcj_basedir} ;;
1637 *) libgcj_flagbasedir='$(top_builddir)/'${libgcj_basedir} ;;
1640 LIBGCJ_CFLAGS="${libgcj_cflags}"
1641 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
1642 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
1652 # Only use libltdl for native builds.
1653 if test -z "${with_cross_host}"; then
1654 case "$enable_ltdl_convenience" in
1655 no) { echo "configure: error: this package needs a convenience libltdl" 1>&2; exit 1; } ;;
1656 "") enable_ltdl_convenience=yes
1657 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
1659 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
1660 INCLTDL='-I${top_srcdir}/''libltdl'
1664 cat >> confdefs.h <<\EOF
1668 # Sigh. Libtool's macro doesn't do the right thing.
1669 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
1674 # Check whether --enable-shared or --disable-shared was given.
1675 if test "${enable_shared+set}" = set; then
1676 enableval="$enable_shared"
1677 p=${PACKAGE-default}
1678 case "$enableval" in
1679 yes) enable_shared=yes ;;
1680 no) enable_shared=no ;;
1683 # Look at the argument we got. We use all the common list separators.
1684 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1685 for pkg in $enableval; do
1686 if test "X$pkg" = "X$p"; then
1697 # Check whether --enable-static or --disable-static was given.
1698 if test "${enable_static+set}" = set; then
1699 enableval="$enable_static"
1700 p=${PACKAGE-default}
1701 case "$enableval" in
1702 yes) enable_static=yes ;;
1703 no) enable_static=no ;;
1706 # Look at the argument we got. We use all the common list separators.
1707 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1708 for pkg in $enableval; do
1709 if test "X$pkg" = "X$p"; then
1720 # Check whether --enable-fast-install or --disable-fast-install was given.
1721 if test "${enable_fast_install+set}" = set; then
1722 enableval="$enable_fast_install"
1723 p=${PACKAGE-default}
1724 case "$enableval" in
1725 yes) enable_fast_install=yes ;;
1726 no) enable_fast_install=no ;;
1728 enable_fast_install=no
1729 # Look at the argument we got. We use all the common list separators.
1730 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1731 for pkg in $enableval; do
1732 if test "X$pkg" = "X$p"; then
1733 enable_fast_install=yes
1740 enable_fast_install=yes
1743 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1744 if test "${with_gnu_ld+set}" = set; then
1745 withval="$with_gnu_ld"
1746 test "$withval" = no || with_gnu_ld=yes
1752 if test "$ac_cv_prog_gcc" = yes; then
1753 # Check if gcc -print-prog-name=ld gives a path.
1754 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1755 echo "configure:1756: checking for ld used by GCC" >&5
1758 # gcc leaves a trailing carriage return which upsets mingw
1759 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1761 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1764 # Accept absolute paths.
1765 [\\/]* | [A-Za-z]:[\\/]*)
1766 re_direlt='/[^/][^/]*/\.\./'
1767 # Canonicalize the path of ld
1768 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1769 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1770 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1772 test -z "$LD" && LD="$ac_prog"
1775 # If it fails, then pretend we aren't using GCC.
1779 # If it is relative, then search for the first ld in PATH.
1783 elif test "$with_gnu_ld" = yes; then
1784 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1785 echo "configure:1786: checking for GNU ld" >&5
1787 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1788 echo "configure:1789: checking for non-GNU ld" >&5
1790 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1791 echo $ac_n "(cached) $ac_c" 1>&6
1793 if test -z "$LD"; then
1794 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1795 for ac_dir in $PATH; do
1796 test -z "$ac_dir" && ac_dir=.
1797 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1798 ac_cv_path_LD="$ac_dir/$ac_prog"
1799 # Check to see if the program is GNU ld. I'd rather use --version,
1800 # but apparently some GNU ld's only accept -v.
1801 # Break only if it was the GNU/non-GNU ld that we prefer.
1802 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1803 test "$with_gnu_ld" != no && break
1805 test "$with_gnu_ld" != yes && break
1811 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1816 if test -n "$LD"; then
1817 echo "$ac_t""$LD" 1>&6
1819 echo "$ac_t""no" 1>&6
1821 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1822 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1823 echo "configure:1824: checking if the linker ($LD) is GNU ld" >&5
1824 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1825 echo $ac_n "(cached) $ac_c" 1>&6
1827 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1828 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1829 ac_cv_prog_gnu_ld=yes
1831 ac_cv_prog_gnu_ld=no
1835 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1836 with_gnu_ld=$ac_cv_prog_gnu_ld
1839 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1840 echo "configure:1841: checking for $LD option to reload object files" >&5
1841 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1842 echo $ac_n "(cached) $ac_c" 1>&6
1844 lt_cv_ld_reload_flag='-r'
1847 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1848 reload_flag=$lt_cv_ld_reload_flag
1849 test -n "$reload_flag" && reload_flag=" $reload_flag"
1851 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1852 echo "configure:1853: checking for BSD-compatible nm" >&5
1853 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1854 echo $ac_n "(cached) $ac_c" 1>&6
1856 if test -n "$NM"; then
1857 # Let the user override the test.
1860 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1861 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1862 test -z "$ac_dir" && ac_dir=.
1863 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1864 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1865 # Check to see if the nm accepts a BSD-compat flag.
1866 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1867 # nm: unknown option "B" ignored
1868 # Tru64's nm complains that /dev/null is an invalid object file
1869 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1870 ac_cv_path_NM="$tmp_nm -B"
1872 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1873 ac_cv_path_NM="$tmp_nm -p"
1876 ac_cv_path_NM=${ac_cv_path_NM="$tmp_nm"} # keep the first match, but
1877 continue # so that we can try to find one that supports BSD flags
1882 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1887 echo "$ac_t""$NM" 1>&6
1889 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1890 echo "configure:1891: checking whether ln -s works" >&5
1891 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1892 echo $ac_n "(cached) $ac_c" 1>&6
1895 if ln -s X conftestdata 2>/dev/null
1898 ac_cv_prog_LN_S="ln -s"
1903 LN_S="$ac_cv_prog_LN_S"
1904 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1905 echo "$ac_t""yes" 1>&6
1907 echo "$ac_t""no" 1>&6
1910 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1911 echo "configure:1912: checking how to recognise dependant libraries" >&5
1912 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1913 echo $ac_n "(cached) $ac_c" 1>&6
1915 lt_cv_file_magic_cmd='${MAGIC}'
1916 lt_cv_file_magic_test_file=
1917 lt_cv_deplibs_check_method='unknown'
1918 # Need to set the preceding variable on all platforms that support
1919 # interlibrary dependencies.
1920 # 'none' -- dependencies not supported.
1921 # `unknown' -- same as none, but documents that we really don't know.
1922 # 'pass_all' -- all dependencies passed with no checks.
1923 # 'test_compile' -- check by making test program.
1924 # 'file_magic [regex]' -- check by looking for files in library path
1925 # which responds to the $file_magic_cmd with a given egrep regex.
1926 # If you have `file' or equivalent on your system and you're not sure
1927 # whether `pass_all' will *always* work, you probably want this one.
1931 lt_cv_deplibs_check_method=pass_all
1935 lt_cv_deplibs_check_method=pass_all
1939 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1940 lt_cv_file_magic_cmd='/usr/bin/file -L'
1941 lt_cv_file_magic_test_file=/shlib/libc.so
1945 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1946 lt_cv_file_magic_cmd='${OBJDUMP} -f'
1950 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1953 # Not sure whether the presence of OpenBSD here was a mistake.
1954 # Let's accept both of them until this is cleared up.
1955 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1956 lt_cv_file_magic_cmd=/usr/bin/file
1957 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1961 lt_cv_deplibs_check_method=pass_all
1966 lt_cv_deplibs_check_method=pass_all
1970 # TODO: Does this work for hpux-11 too?
1971 lt_cv_deplibs_check_method='file_magic (s0-90-90-9|PA-RISC0-9.0-9) shared library'
1972 lt_cv_file_magic_cmd=/usr/bin/file
1973 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1979 # this will be overridden with pass_all, but let us keep it just in case
1980 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1984 *-32|*"-32 ") libmagic=32-bit;;
1985 *-n32|*"-n32 ") libmagic=N32;;
1986 *-64|*"-64 ") libmagic=64-bit;;
1987 *) libmagic=never-match;;
1989 # this will be overridden with pass_all, but let us keep it just in case
1990 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1993 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1994 lt_cv_deplibs_check_method=pass_all
1997 # This must be Linux ELF.
2000 alpha* | i*86 | powerpc* | sparc* | ia64* )
2001 lt_cv_deplibs_check_method=pass_all ;;
2003 # glibc up to 2.1.1 does not perform some relocations on ARM
2004 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2006 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2010 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then :
2012 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
2013 lt_cv_file_magic_cmd='/usr/bin/file -L'
2014 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2018 osf3* | osf4* | osf5*)
2019 # this will be overridden with pass_all, but let us keep it just in case
2020 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2021 lt_cv_file_magic_test_file=/shlib/libc.so
2022 lt_cv_deplibs_check_method=pass_all
2026 lt_cv_deplibs_check_method=pass_all
2030 lt_cv_deplibs_check_method=pass_all
2031 lt_cv_file_magic_test_file=/lib/libc.so
2034 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2035 case "$host_vendor" in
2037 lt_cv_deplibs_check_method=pass_all
2040 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
2041 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2049 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2050 file_magic_cmd=$lt_cv_file_magic_cmd
2051 deplibs_check_method=$lt_cv_deplibs_check_method
2053 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2054 echo "configure:2055: checking for object suffix" >&5
2055 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2056 echo $ac_n "(cached) $ac_c" 1>&6
2059 echo 'int i = 1;' > conftest.$ac_ext
2060 if { (eval echo configure:2061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2061 for ac_file in conftest.*; do
2064 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2068 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2073 echo "$ac_t""$ac_cv_objext" 1>&6
2074 OBJEXT=$ac_cv_objext
2075 ac_objext=$ac_cv_objext
2077 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2079 # Only perform the check for file, if the check method requires it
2080 case "$deplibs_check_method" in
2082 if test "$file_magic_cmd" = '${MAGIC}'; then
2083 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2084 echo "configure:2085: checking for ${ac_tool_prefix}file" >&5
2085 if eval "test \"`echo '$''{'lt_cv_path_MAGIC'+set}'`\" = set"; then
2086 echo $ac_n "(cached) $ac_c" 1>&6
2090 lt_cv_path_MAGIC="$MAGIC" # Let the user override the test with a path.
2093 ac_cv_path_MAGIC="$MAGIC" # Let the user override the test with a dos path.
2096 ac_save_MAGIC="$MAGIC"
2097 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2098 ac_dummy="/usr/bin:$PATH"
2099 for ac_dir in $ac_dummy; do
2100 test -z "$ac_dir" && ac_dir=.
2101 if test -f $ac_dir/${ac_tool_prefix}file; then
2102 lt_cv_path_MAGIC="$ac_dir/${ac_tool_prefix}file"
2103 if test -n "$file_magic_test_file"; then
2104 case "$deplibs_check_method" in
2106 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2107 MAGIC="$lt_cv_path_MAGIC"
2108 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2109 egrep "$file_magic_regex" > /dev/null; then
2114 *** Warning: the command libtool uses to detect shared libraries,
2115 *** $file_magic_cmd, produces output that libtool cannot recognize.
2116 *** The result is that libtool may fail to recognize shared libraries
2117 *** as such. This will affect the creation of libtool libraries that
2118 *** depend on shared libraries, but programs linked with such libtool
2119 *** libraries will work regardless of this problem. Nevertheless, you
2120 *** may want to report the problem to your system manager and/or to
2121 *** bug-libtool@gnu.org
2131 MAGIC="$ac_save_MAGIC"
2136 MAGIC="$lt_cv_path_MAGIC"
2137 if test -n "$MAGIC"; then
2138 echo "$ac_t""$MAGIC" 1>&6
2140 echo "$ac_t""no" 1>&6
2143 if test -z "$lt_cv_path_MAGIC"; then
2144 if test -n "$ac_tool_prefix"; then
2145 echo $ac_n "checking for file""... $ac_c" 1>&6
2146 echo "configure:2147: checking for file" >&5
2147 if eval "test \"`echo '$''{'lt_cv_path_MAGIC'+set}'`\" = set"; then
2148 echo $ac_n "(cached) $ac_c" 1>&6
2152 lt_cv_path_MAGIC="$MAGIC" # Let the user override the test with a path.
2155 ac_cv_path_MAGIC="$MAGIC" # Let the user override the test with a dos path.
2158 ac_save_MAGIC="$MAGIC"
2159 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2160 ac_dummy="/usr/bin:$PATH"
2161 for ac_dir in $ac_dummy; do
2162 test -z "$ac_dir" && ac_dir=.
2163 if test -f $ac_dir/file; then
2164 lt_cv_path_MAGIC="$ac_dir/file"
2165 if test -n "$file_magic_test_file"; then
2166 case "$deplibs_check_method" in
2168 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2169 MAGIC="$lt_cv_path_MAGIC"
2170 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2171 egrep "$file_magic_regex" > /dev/null; then
2176 *** Warning: the command libtool uses to detect shared libraries,
2177 *** $file_magic_cmd, produces output that libtool cannot recognize.
2178 *** The result is that libtool may fail to recognize shared libraries
2179 *** as such. This will affect the creation of libtool libraries that
2180 *** depend on shared libraries, but programs linked with such libtool
2181 *** libraries will work regardless of this problem. Nevertheless, you
2182 *** may want to report the problem to your system manager and/or to
2183 *** bug-libtool@gnu.org
2193 MAGIC="$ac_save_MAGIC"
2198 MAGIC="$lt_cv_path_MAGIC"
2199 if test -n "$MAGIC"; then
2200 echo "$ac_t""$MAGIC" 1>&6
2202 echo "$ac_t""no" 1>&6
2214 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2215 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2216 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2217 echo "configure:2218: checking for $ac_word" >&5
2218 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2219 echo $ac_n "(cached) $ac_c" 1>&6
2221 if test -n "$RANLIB"; then
2222 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2224 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2226 for ac_dir in $ac_dummy; do
2227 test -z "$ac_dir" && ac_dir=.
2228 if test -f $ac_dir/$ac_word; then
2229 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2236 RANLIB="$ac_cv_prog_RANLIB"
2237 if test -n "$RANLIB"; then
2238 echo "$ac_t""$RANLIB" 1>&6
2240 echo "$ac_t""no" 1>&6
2244 if test -z "$ac_cv_prog_RANLIB"; then
2245 if test -n "$ac_tool_prefix"; then
2246 # Extract the first word of "ranlib", so it can be a program name with args.
2247 set dummy ranlib; ac_word=$2
2248 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2249 echo "configure:2250: checking for $ac_word" >&5
2250 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2251 echo $ac_n "(cached) $ac_c" 1>&6
2253 if test -n "$RANLIB"; then
2254 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2256 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2258 for ac_dir in $ac_dummy; do
2259 test -z "$ac_dir" && ac_dir=.
2260 if test -f $ac_dir/$ac_word; then
2261 ac_cv_prog_RANLIB="ranlib"
2266 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2269 RANLIB="$ac_cv_prog_RANLIB"
2270 if test -n "$RANLIB"; then
2271 echo "$ac_t""$RANLIB" 1>&6
2273 echo "$ac_t""no" 1>&6
2281 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2282 set dummy ${ac_tool_prefix}strip; ac_word=$2
2283 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2284 echo "configure:2285: checking for $ac_word" >&5
2285 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2286 echo $ac_n "(cached) $ac_c" 1>&6
2288 if test -n "$STRIP"; then
2289 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2291 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2293 for ac_dir in $ac_dummy; do
2294 test -z "$ac_dir" && ac_dir=.
2295 if test -f $ac_dir/$ac_word; then
2296 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2303 STRIP="$ac_cv_prog_STRIP"
2304 if test -n "$STRIP"; then
2305 echo "$ac_t""$STRIP" 1>&6
2307 echo "$ac_t""no" 1>&6
2311 if test -z "$ac_cv_prog_STRIP"; then
2312 if test -n "$ac_tool_prefix"; then
2313 # Extract the first word of "strip", so it can be a program name with args.
2314 set dummy strip; ac_word=$2
2315 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2316 echo "configure:2317: checking for $ac_word" >&5
2317 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2318 echo $ac_n "(cached) $ac_c" 1>&6
2320 if test -n "$STRIP"; then
2321 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2323 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2325 for ac_dir in $ac_dummy; do
2326 test -z "$ac_dir" && ac_dir=.
2327 if test -f $ac_dir/$ac_word; then
2328 ac_cv_prog_STRIP="strip"
2333 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2336 STRIP="$ac_cv_prog_STRIP"
2337 if test -n "$STRIP"; then
2338 echo "$ac_t""$STRIP" 1>&6
2340 echo "$ac_t""no" 1>&6
2349 # Check for any special flags to pass to ltconfig.
2350 libtool_flags="--cache-file=$cache_file"
2351 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2352 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2353 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2354 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2355 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2356 libtool_flags="$libtool_flags --enable-dlopen"
2358 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2359 if test "${enable_libtool_lock+set}" = set; then
2360 enableval="$enable_libtool_lock"
2364 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2365 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2367 # Check whether --with-pic or --without-pic was given.
2368 if test "${with_pic+set}" = set; then
2375 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2376 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2378 # Some flags need to be propagated to the compiler or linker for good
2382 # Find out which ABI we are using.
2383 echo '#line 2384 "configure"' > conftest.$ac_ext
2384 if { (eval echo configure:2385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2385 case "`/usr/bin/file conftest.o`" in
2401 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2402 SAVE_CFLAGS="$CFLAGS"
2403 CFLAGS="$CFLAGS -belf"
2404 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2405 echo "configure:2406: checking whether the C compiler needs -belf" >&5
2406 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2407 echo $ac_n "(cached) $ac_c" 1>&6
2411 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2412 ac_cpp='$CPP $CPPFLAGS'
2413 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2414 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2415 cross_compiling=$ac_cv_prog_cc_cross
2417 cat > conftest.$ac_ext <<EOF
2418 #line 2419 "configure"
2419 #include "confdefs.h"
2425 if { (eval echo configure:2426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2427 lt_cv_cc_needs_belf=yes
2429 echo "configure: failed program was:" >&5
2430 cat conftest.$ac_ext >&5
2432 lt_cv_cc_needs_belf=no
2436 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2437 ac_cpp='$CPP $CPPFLAGS'
2438 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2439 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2440 cross_compiling=$ac_cv_prog_cc_cross
2444 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2445 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2446 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2447 CFLAGS="$SAVE_CFLAGS"
2454 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2455 echo "configure:2456: checking how to run the C++ preprocessor" >&5
2456 if test -z "$CXXCPP"; then
2457 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2458 echo $ac_n "(cached) $ac_c" 1>&6
2461 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2462 ac_cpp='$CXXCPP $CPPFLAGS'
2463 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2464 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2465 cross_compiling=$ac_cv_prog_cxx_cross
2466 CXXCPP="${CXX-g++} -E"
2467 cat > conftest.$ac_ext <<EOF
2468 #line 2469 "configure"
2469 #include "confdefs.h"
2472 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2473 { (eval echo configure:2474: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2474 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2475 if test -z "$ac_err"; then
2479 echo "configure: failed program was:" >&5
2480 cat conftest.$ac_ext >&5
2485 ac_cv_prog_CXXCPP="$CXXCPP"
2487 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2488 ac_cpp='$CPP $CPPFLAGS'
2489 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2490 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2491 cross_compiling=$ac_cv_prog_cc_cross
2494 CXXCPP="$ac_cv_prog_CXXCPP"
2495 echo "$ac_t""$CXXCPP" 1>&6
2498 # Save cache, so that ltconfig can load it
2499 cat > confcache <<\EOF
2500 # This file is a shell script that caches the results of configure
2501 # tests run on this system so they can be shared between configure
2502 # scripts and configure runs. It is not useful on other systems.
2503 # If it contains results you don't want to keep, you may remove or edit it.
2505 # By default, configure uses ./config.cache as the cache file,
2506 # creating it if it does not exist already. You can give configure
2507 # the --cache-file=FILE option to use a different cache file; that is
2508 # what configure does when it calls configure scripts in
2509 # subdirectories, so they share the cache.
2510 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2511 # config.status only pays attention to the cache file if you give it the
2512 # --recheck option to rerun configure.
2515 # The following way of writing the cache mishandles newlines in values,
2516 # but we know of no workaround that is simple, portable, and efficient.
2517 # So, don't put newlines in cache variables' values.
2518 # Ultrix sh set writes to stderr and can't be redirected directly,
2519 # and sets the high bit in the cache file unless we assign to the vars.
2521 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2523 # `set' does not quote correctly, so add quotes (double-quote substitution
2524 # turns \\\\ into \\, and sed turns \\ into \).
2526 -e "s/'/'\\\\''/g" \
2527 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2530 # `set' quotes correctly as required by POSIX, so do not add quotes.
2531 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2534 if cmp -s $cache_file confcache; then
2537 if test -w $cache_file; then
2538 echo "updating cache $cache_file"
2539 cat confcache > $cache_file
2541 echo "not updating unwritable cache $cache_file"
2547 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2548 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2549 MAGIC="$MAGIC" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2550 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2551 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2552 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2553 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2554 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2555 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2556 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2558 # Reload cache, that may have been modified by ltconfig
2559 if test -r "$cache_file"; then
2560 echo "loading cache $cache_file"
2563 echo "creating cache $cache_file"
2568 # This can be used to rebuild libtool when needed
2569 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2571 # Always use our own libtool.
2572 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2574 # Redirect the config.log output again, so that the ltconfig log is not
2575 # clobbered by the next message.
2576 exec 5>>./config.log
2581 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2583 lt_save_CFLAGS="$CFLAGS"
2584 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2585 MAGIC="$MAGIC" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2586 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2587 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2588 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2589 deplibs_check_method="$deplibs_check_method" \
2590 file_magic_cmd="$file_magic_cmd" \
2591 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2592 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2593 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2595 CFLAGS="$lt_save_CFLAGS"
2597 # Redirect the config.log output again, so that the ltconfig log is not
2598 # clobbered by the next message.
2599 exec 5>>./config.log
2610 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
2619 if test -d $srcdir/testsuite; then
2621 TESTSUBDIR_FALSE='#'
2627 # Check whether --enable-fast-character or --disable-fast-character was given.
2628 if test "${enable_fast_character+set}" = set; then
2629 enableval="$enable_fast_character"
2633 cat >> confdefs.h <<\EOF
2634 #define COMPACT_CHARACTER 1
2640 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
2641 if test "${enable_getenv_properties+set}" = set; then
2642 enableval="$enable_getenv_properties"
2647 if test -n "$enable_getenv_properties"; then
2648 enable_getenv_properties=${enable_getenv_properties_default-yes}
2650 if test "$enable_getenv_properties" = no; then
2651 cat >> confdefs.h <<\EOF
2652 #define DISABLE_GETENV_PROPERTIES 1
2657 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2658 if test "${enable_libgcj_debug+set}" = set; then
2659 enableval="$enable_libgcj_debug"
2660 if test "$enable_libgcj_debug" = yes; then
2661 cat >> confdefs.h <<\EOF
2669 # Check whether --enable-interpreter or --disable-interpreter was given.
2670 if test "${enable_interpreter+set}" = set; then
2671 enableval="$enable_interpreter"
2672 if test "$enable_interpreter" = yes; then
2673 # This can also be set in configure.host.
2674 libgcj_interpreter=yes
2675 elif test "$enable_interpreter" = no; then
2676 libgcj_interpreter=no
2681 if test "$libgcj_interpreter" = yes; then
2682 cat >> confdefs.h <<\EOF
2683 #define INTERPRETER 1
2689 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
2690 if test "${enable_sjlj_exceptions+set}" = set; then
2691 enableval="$enable_sjlj_exceptions"
2692 if test "$enable_sjlj_exceptions" = yes; then
2693 # This can be set in configure.host.
2699 if test "$libgcj_sjlj" = yes; then
2700 EXCEPTIONSPEC="-fsjlj-exceptions"
2701 cat >> confdefs.h <<\EOF
2702 #define SJLJ_EXCEPTIONS 1
2708 if test "$ac_cv_prog_gnu_ld" = yes; then
2709 FORCELIBGCCSPEC="-u __rethrow -u __frame_state_for -lgcc"
2712 echo $ac_n "checking for data_start""... $ac_c" 1>&6
2713 echo "configure:2714: checking for data_start" >&5
2716 cat > conftest.$ac_ext <<EOF
2717 #line 2718 "configure"
2718 #include "confdefs.h"
2719 extern int data_start;
2721 return ((int) &data_start);
2724 if { (eval echo configure:2725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2726 echo "$ac_t""found it" 1>&6
2728 echo "configure: failed program was:" >&5
2729 cat conftest.$ac_ext >&5
2731 LIBDATASTARTSPEC="-u data_start libgcjdata.a%s"
2732 NEEDS_DATA_START=yes
2733 echo "$ac_t""missing" 1>&6
2738 # Check whether --enable-java-net or --disable-java-net was given.
2739 if test "${enable_java_net+set}" = set; then
2740 enableval="$enable_java_net"
2745 if test -n "$enable_java_net"; then
2746 enable_java_net=${enable_java_net_default-yes}
2748 if test "$enable_java_net" = no; then
2749 cat >> confdefs.h <<\EOF
2750 #define DISABLE_JAVA_NET 1
2755 # Check whether --enable-jvmpi or --disable-jvmpi was given.
2756 if test "${enable_jvmpi+set}" = set; then
2757 enableval="$enable_jvmpi"
2762 if test "$enable_jvmpi" != no; then
2763 cat >> confdefs.h <<\EOF
2764 #define ENABLE_JVMPI 1
2770 # Check whether --with-ecos or --without-ecos was given.
2771 if test "${with_ecos+set}" = set; then
2772 withval="$with_ecos"
2773 TARGET_ECOS="$with_ecos"
2778 case "$TARGET_ECOS" in
2780 FILE_DESCRIPTOR=natFileDescriptorPosix.cc
2781 PROCESS=${PROCESS-Posix}
2784 FILE_DESCRIPTOR=natFileDescriptorEcos.cc
2786 cat >> confdefs.h <<\EOF
2793 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2794 echo "configure:2795: checking how to run the C preprocessor" >&5
2795 # On Suns, sometimes $CPP names a directory.
2796 if test -n "$CPP" && test -d "$CPP"; then
2799 if test -z "$CPP"; then
2800 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2801 echo $ac_n "(cached) $ac_c" 1>&6
2803 # This must be in double quotes, not single quotes, because CPP may get
2804 # substituted into the Makefile and "${CC-cc}" will confuse make.
2806 # On the NeXT, cc -E runs the code through the compiler's parser,
2807 # not just through cpp.
2808 cat > conftest.$ac_ext <<EOF
2809 #line 2810 "configure"
2810 #include "confdefs.h"
2814 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2815 { (eval echo configure:2816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2816 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2817 if test -z "$ac_err"; then
2821 echo "configure: failed program was:" >&5
2822 cat conftest.$ac_ext >&5
2824 CPP="${CC-cc} -E -traditional-cpp"
2825 cat > conftest.$ac_ext <<EOF
2826 #line 2827 "configure"
2827 #include "confdefs.h"
2831 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2832 { (eval echo configure:2833: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2833 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2834 if test -z "$ac_err"; then
2838 echo "configure: failed program was:" >&5
2839 cat conftest.$ac_ext >&5
2841 CPP="${CC-cc} -nologo -E"
2842 cat > conftest.$ac_ext <<EOF
2843 #line 2844 "configure"
2844 #include "confdefs.h"
2848 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2849 { (eval echo configure:2850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2850 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2851 if test -z "$ac_err"; then
2855 echo "configure: failed program was:" >&5
2856 cat conftest.$ac_ext >&5
2865 ac_cv_prog_CPP="$CPP"
2867 CPP="$ac_cv_prog_CPP"
2869 ac_cv_prog_CPP="$CPP"
2871 echo "$ac_t""$CPP" 1>&6
2873 cat > conftest.$ac_ext <<EOF
2874 #line 2875 "configure"
2875 #include "confdefs.h"
2878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2879 egrep "uint32_t" >/dev/null 2>&1; then
2881 cat >> confdefs.h <<\EOF
2882 #define HAVE_INT32_DEFINED 1
2888 cat > conftest.$ac_ext <<EOF
2889 #line 2890 "configure"
2890 #include "confdefs.h"
2891 #include <inttypes.h>
2893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2894 egrep "uint32_t" >/dev/null 2>&1; then
2896 cat >> confdefs.h <<\EOF
2897 #define HAVE_INT32_DEFINED 1
2903 cat > conftest.$ac_ext <<EOF
2904 #line 2905 "configure"
2905 #include "confdefs.h"
2906 #include <sys/types.h>
2908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2909 egrep "u_int32_t" >/dev/null 2>&1; then
2911 cat >> confdefs.h <<\EOF
2912 #define HAVE_BSD_INT32_DEFINED 1
2918 cat > conftest.$ac_ext <<EOF
2919 #line 2920 "configure"
2920 #include "confdefs.h"
2921 #include <sys/config.h>
2923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2924 egrep "u_int32_t" >/dev/null 2>&1; then
2926 cat >> confdefs.h <<\EOF
2927 #define HAVE_BSD_INT32_DEFINED 1
2935 cat > conftest.$ac_ext <<EOF
2936 #line 2937 "configure"
2937 #include "confdefs.h"
2940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2941 egrep "mktime" >/dev/null 2>&1; then
2943 cat >> confdefs.h <<\EOF
2944 #define HAVE_MKTIME 1
2950 cat > conftest.$ac_ext <<EOF
2951 #line 2952 "configure"
2952 #include "confdefs.h"
2955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2956 egrep "localtime" >/dev/null 2>&1; then
2958 cat >> confdefs.h <<\EOF
2959 #define HAVE_LOCALTIME 1
2966 test -d java || mkdir java
2967 test -d java/io || mkdir java/io
2970 test -d java/lang || mkdir java/lang
2977 LIBGCJTESTSPEC="-L`pwd`/.libs -rpath `pwd`/.libs"
2980 # Check whether --with-system-zlib or --without-system-zlib was given.
2981 if test "${with_system_zlib+set}" = set; then
2982 withval="$with_system_zlib"
2993 echo $ac_n "checking for garbage collector to use""... $ac_c" 1>&6
2994 echo "configure:2995: checking for garbage collector to use" >&5
2995 # Check whether --enable-java-gc or --disable-java-gc was given.
2996 if test "${enable_java_gc+set}" = set; then
2997 enableval="$enable_java_gc"
3012 echo "$ac_t""boehm" 1>&6
3013 GCDEPS='$(top_builddir)/../boehm-gc/libgcjgc.la'
3014 # We include the path to the boehm-gc build directory.
3015 # See Makefile.am to understand why.
3016 GCLIBS="$GCDEPS -L\$(here)/../boehm-gc/$libsubdir"
3017 GCINCS='-I$(top_srcdir)/../boehm-gc -I$(top_builddir)/../boehm-gc'
3019 GCTESTSPEC="-L`pwd`/../boehm-gc/.libs -rpath `pwd`/../boehm-gc/.libs"
3020 GCINCS="$GCINCS `cat ../boehm-gc/boehm-cflags`"
3023 cat >> confdefs.h <<\EOF
3024 #define HAVE_BOEHM_GC 1
3029 echo "$ac_t""none" 1>&6
3034 { echo "configure: error: unrecognized collector \"$GC\"" 1>&2; exit 1; }
3046 echo $ac_n "checking for threads package to use""... $ac_c" 1>&6
3047 echo "configure:3048: checking for threads package to use" >&5
3048 # Check whether --enable-threads or --disable-threads was given.
3049 if test "${enable_threads+set}" = set; then
3050 enableval="$enable_threads"
3057 if test "$THREADS" = yes; then
3063 # FIXME: this isn't correct in all cases.
3070 # FIXME: for now, choose POSIX, because we implement that.
3071 # Later, choose irix threads.
3075 # FIXME: for now, choose POSIX, because we implement that.
3076 # Later, choose solaris threads.
3094 cat >> confdefs.h <<\EOF
3095 #define LINUX_THREADS 1
3101 decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
3102 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
3105 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
3108 echo "$ac_t""$THREADS" 1>&6
3118 THREADLIBS=-lpthread
3119 THREADSPEC=-lpthread
3120 THREADOBJS=posix-threads.lo
3121 THREADH=posix-threads.h
3122 # MIT pthreads doesn't seem to have the mutexattr functions.
3123 # But for now we don't check for it. We just assume you aren't
3124 # using MIT pthreads.
3125 cat >> confdefs.h <<\EOF
3126 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3130 # If we're using the Boehm GC, then we happen to know that it
3131 # defines _REENTRANT, so we don't bother. Eww.
3132 if test "$GC" != boehm; then
3133 cat >> confdefs.h <<\EOF
3134 #define _REENTRANT 1
3138 cat >> confdefs.h <<\EOF
3139 #define _POSIX_PTHREAD_SEMANTICS 1
3145 THREADOBJS=no-threads.lo
3146 THREADH=no-threads.h
3158 if test "$GCC" = yes; then
3170 # Find eh-common.h and support headers. If we're in the tree with
3171 # gcc, then look there. Otherwise look in compat-include. If all else
3172 # fails, just hope the user has set things up somehow.
3173 if test -r $srcdir/../gcc/eh-common.h; then
3174 EH_COMMON_INCLUDE='-I$(top_srcdir)/../gcc -I$(top_srcdir)/../include'
3176 if test -d $srcdir/../compat-include; then
3177 EH_COMMON_INCLUDE='-I$(top_srcdir)/../compat-include'
3183 if test -n "${with_cross_host}"; then
3184 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
3185 # may not work correctly, because the compiler may not be able to
3188 # We assume newlib. This lets us hard-code the functions we know
3190 cat >> confdefs.h <<\EOF
3191 #define HAVE_MEMMOVE 1
3194 cat >> confdefs.h <<\EOF
3195 #define HAVE_MEMCPY 1
3198 cat >> confdefs.h <<\EOF
3199 #define HAVE_STRERROR 1
3202 cat >> confdefs.h <<\EOF
3203 #define HAVE_GMTIME_R 1
3206 cat >> confdefs.h <<\EOF
3207 #define HAVE_LOCALTIME_R 1
3210 cat >> confdefs.h <<\EOF
3211 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3214 cat >> confdefs.h <<\EOF
3215 #define HAVE_ALLOCA 1
3219 cat >> confdefs.h <<\EOF
3225 ZLIBTESTSPEC="-L`pwd`/../zlib/.libs -rpath `pwd`/../zlib/.libs"
3227 # If Canadian cross, then don't pick up tools from the build
3229 if test "$build" != "$with_cross_host"; then
3232 GCJ="${target_alias}-gcj"
3238 for ac_func in strerror ioctl select fstat open fsync sleep
3240 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3241 echo "configure:3242: checking for $ac_func" >&5
3242 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3243 echo $ac_n "(cached) $ac_c" 1>&6
3245 cat > conftest.$ac_ext <<EOF
3246 #line 3247 "configure"
3247 #include "confdefs.h"
3248 /* System header to define __stub macros and hopefully few prototypes,
3249 which can conflict with char $ac_func(); below. */
3251 /* Override any gcc2 internal prototype to avoid an error. */
3252 /* We use char because int might match the return type of a gcc2
3253 builtin and then its argument prototype would still apply. */
3258 /* The GNU C library defines this for functions which it implements
3259 to always fail with ENOSYS. Some functions are actually named
3260 something starting with __ and the normal name is an alias. */
3261 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3269 if { (eval echo configure:3270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3271 eval "ac_cv_func_$ac_func=yes"
3273 echo "configure: failed program was:" >&5
3274 cat conftest.$ac_ext >&5
3276 eval "ac_cv_func_$ac_func=no"
3281 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3282 echo "$ac_t""yes" 1>&6
3283 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3284 cat >> confdefs.h <<EOF
3285 #define $ac_tr_func 1
3289 echo "$ac_t""no" 1>&6
3293 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
3295 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3296 echo "configure:3297: checking for $ac_func" >&5
3297 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3298 echo $ac_n "(cached) $ac_c" 1>&6
3300 cat > conftest.$ac_ext <<EOF
3301 #line 3302 "configure"
3302 #include "confdefs.h"
3303 /* System header to define __stub macros and hopefully few prototypes,
3304 which can conflict with char $ac_func(); below. */
3306 /* Override any gcc2 internal prototype to avoid an error. */
3307 /* We use char because int might match the return type of a gcc2
3308 builtin and then its argument prototype would still apply. */
3313 /* The GNU C library defines this for functions which it implements
3314 to always fail with ENOSYS. Some functions are actually named
3315 something starting with __ and the normal name is an alias. */
3316 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3324 if { (eval echo configure:3325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3326 eval "ac_cv_func_$ac_func=yes"
3328 echo "configure: failed program was:" >&5
3329 cat conftest.$ac_ext >&5
3331 eval "ac_cv_func_$ac_func=no"
3336 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3337 echo "$ac_t""yes" 1>&6
3338 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3339 cat >> confdefs.h <<EOF
3340 #define $ac_tr_func 1
3344 echo "$ac_t""no" 1>&6
3348 for ac_func in access stat mkdir rename rmdir unlink realpath
3350 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3351 echo "configure:3352: checking for $ac_func" >&5
3352 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3353 echo $ac_n "(cached) $ac_c" 1>&6
3355 cat > conftest.$ac_ext <<EOF
3356 #line 3357 "configure"
3357 #include "confdefs.h"
3358 /* System header to define __stub macros and hopefully few prototypes,
3359 which can conflict with char $ac_func(); below. */
3361 /* Override any gcc2 internal prototype to avoid an error. */
3362 /* We use char because int might match the return type of a gcc2
3363 builtin and then its argument prototype would still apply. */
3368 /* The GNU C library defines this for functions which it implements
3369 to always fail with ENOSYS. Some functions are actually named
3370 something starting with __ and the normal name is an alias. */
3371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3379 if { (eval echo configure:3380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3381 eval "ac_cv_func_$ac_func=yes"
3383 echo "configure: failed program was:" >&5
3384 cat conftest.$ac_ext >&5
3386 eval "ac_cv_func_$ac_func=no"
3391 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3392 echo "$ac_t""yes" 1>&6
3393 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3394 cat >> confdefs.h <<EOF
3395 #define $ac_tr_func 1
3399 echo "$ac_t""no" 1>&6
3403 for ac_func in iconv nl_langinfo
3405 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3406 echo "configure:3407: checking for $ac_func" >&5
3407 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3408 echo $ac_n "(cached) $ac_c" 1>&6
3410 cat > conftest.$ac_ext <<EOF
3411 #line 3412 "configure"
3412 #include "confdefs.h"
3413 /* System header to define __stub macros and hopefully few prototypes,
3414 which can conflict with char $ac_func(); below. */
3416 /* Override any gcc2 internal prototype to avoid an error. */
3417 /* We use char because int might match the return type of a gcc2
3418 builtin and then its argument prototype would still apply. */
3423 /* The GNU C library defines this for functions which it implements
3424 to always fail with ENOSYS. Some functions are actually named
3425 something starting with __ and the normal name is an alias. */
3426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3434 if { (eval echo configure:3435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3436 eval "ac_cv_func_$ac_func=yes"
3438 echo "configure: failed program was:" >&5
3439 cat conftest.$ac_ext >&5
3441 eval "ac_cv_func_$ac_func=no"
3446 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3447 echo "$ac_t""yes" 1>&6
3448 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3449 cat >> confdefs.h <<EOF
3450 #define $ac_tr_func 1
3454 echo "$ac_t""no" 1>&6
3458 for ac_func in inet_aton inet_addr
3460 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3461 echo "configure:3462: checking for $ac_func" >&5
3462 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3463 echo $ac_n "(cached) $ac_c" 1>&6
3465 cat > conftest.$ac_ext <<EOF
3466 #line 3467 "configure"
3467 #include "confdefs.h"
3468 /* System header to define __stub macros and hopefully few prototypes,
3469 which can conflict with char $ac_func(); below. */
3471 /* Override any gcc2 internal prototype to avoid an error. */
3472 /* We use char because int might match the return type of a gcc2
3473 builtin and then its argument prototype would still apply. */
3478 /* The GNU C library defines this for functions which it implements
3479 to always fail with ENOSYS. Some functions are actually named
3480 something starting with __ and the normal name is an alias. */
3481 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3489 if { (eval echo configure:3490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3491 eval "ac_cv_func_$ac_func=yes"
3493 echo "configure: failed program was:" >&5
3494 cat conftest.$ac_ext >&5
3496 eval "ac_cv_func_$ac_func=no"
3501 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3502 echo "$ac_t""yes" 1>&6
3503 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3504 cat >> confdefs.h <<EOF
3505 #define $ac_tr_func 1
3509 echo "$ac_t""no" 1>&6
3513 for ac_func in inet_pton uname inet_ntoa
3515 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3516 echo "configure:3517: checking for $ac_func" >&5
3517 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3518 echo $ac_n "(cached) $ac_c" 1>&6
3520 cat > conftest.$ac_ext <<EOF
3521 #line 3522 "configure"
3522 #include "confdefs.h"
3523 /* System header to define __stub macros and hopefully few prototypes,
3524 which can conflict with char $ac_func(); below. */
3526 /* Override any gcc2 internal prototype to avoid an error. */
3527 /* We use char because int might match the return type of a gcc2
3528 builtin and then its argument prototype would still apply. */
3533 /* The GNU C library defines this for functions which it implements
3534 to always fail with ENOSYS. Some functions are actually named
3535 something starting with __ and the normal name is an alias. */
3536 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3544 if { (eval echo configure:3545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3546 eval "ac_cv_func_$ac_func=yes"
3548 echo "configure: failed program was:" >&5
3549 cat conftest.$ac_ext >&5
3551 eval "ac_cv_func_$ac_func=no"
3556 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3557 echo "$ac_t""yes" 1>&6
3558 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3559 cat >> confdefs.h <<EOF
3560 #define $ac_tr_func 1
3564 echo "$ac_t""no" 1>&6
3568 for ac_func in backtrace fork execvp pipe
3570 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3571 echo "configure:3572: checking for $ac_func" >&5
3572 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3573 echo $ac_n "(cached) $ac_c" 1>&6
3575 cat > conftest.$ac_ext <<EOF
3576 #line 3577 "configure"
3577 #include "confdefs.h"
3578 /* System header to define __stub macros and hopefully few prototypes,
3579 which can conflict with char $ac_func(); below. */
3581 /* Override any gcc2 internal prototype to avoid an error. */
3582 /* We use char because int might match the return type of a gcc2
3583 builtin and then its argument prototype would still apply. */
3588 /* The GNU C library defines this for functions which it implements
3589 to always fail with ENOSYS. Some functions are actually named
3590 something starting with __ and the normal name is an alias. */
3591 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3599 if { (eval echo configure:3600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3601 eval "ac_cv_func_$ac_func=yes"
3603 echo "configure: failed program was:" >&5
3604 cat conftest.$ac_ext >&5
3606 eval "ac_cv_func_$ac_func=no"
3611 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3612 echo "$ac_t""yes" 1>&6
3613 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3614 cat >> confdefs.h <<EOF
3615 #define $ac_tr_func 1
3619 echo "$ac_t""no" 1>&6
3623 for ac_hdr in execinfo.h unistd.h dlfcn.h
3625 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3626 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3627 echo "configure:3628: checking for $ac_hdr" >&5
3628 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3629 echo $ac_n "(cached) $ac_c" 1>&6
3631 cat > conftest.$ac_ext <<EOF
3632 #line 3633 "configure"
3633 #include "confdefs.h"
3636 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3637 { (eval echo configure:3638: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3638 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3639 if test -z "$ac_err"; then
3641 eval "ac_cv_header_$ac_safe=yes"
3644 echo "configure: failed program was:" >&5
3645 cat conftest.$ac_ext >&5
3647 eval "ac_cv_header_$ac_safe=no"
3651 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3652 echo "$ac_t""yes" 1>&6
3653 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3654 cat >> confdefs.h <<EOF
3655 #define $ac_tr_hdr 1
3659 echo "$ac_t""no" 1>&6
3663 echo $ac_n "checking for dladdr in -ldl""... $ac_c" 1>&6
3664 echo "configure:3665: checking for dladdr in -ldl" >&5
3665 ac_lib_var=`echo dl'_'dladdr | sed 'y%./+-%__p_%'`
3666 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3667 echo $ac_n "(cached) $ac_c" 1>&6
3669 ac_save_LIBS="$LIBS"
3671 cat > conftest.$ac_ext <<EOF
3672 #line 3673 "configure"
3673 #include "confdefs.h"
3674 /* Override any gcc2 internal prototype to avoid an error. */
3675 /* We use char because int might match the return type of a gcc2
3676 builtin and then its argument prototype would still apply. */
3683 if { (eval echo configure:3684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3685 eval "ac_cv_lib_$ac_lib_var=yes"
3687 echo "configure: failed program was:" >&5
3688 cat conftest.$ac_ext >&5
3690 eval "ac_cv_lib_$ac_lib_var=no"
3693 LIBS="$ac_save_LIBS"
3696 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3697 echo "$ac_t""yes" 1>&6
3699 cat >> confdefs.h <<\EOF
3700 #define HAVE_DLADDR 1
3704 echo "$ac_t""no" 1>&6
3707 for ac_file in /proc/self/exe
3710 ac_safe=`echo "$ac_file" | sed 'y%./+-%__p_%'`
3711 echo $ac_n "checking for $ac_file""... $ac_c" 1>&6
3712 echo "configure:3713: checking for $ac_file" >&5
3713 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
3714 echo $ac_n "(cached) $ac_c" 1>&6
3716 if test "$cross_compiling" = yes; then
3717 { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
3719 if test -r $ac_file; then
3720 eval "ac_cv_file_$ac_safe=yes"
3722 eval "ac_cv_file_$ac_safe=no"
3726 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
3727 echo "$ac_t""yes" 1>&6
3728 ac_tr_file=HAVE_`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3729 cat >> confdefs.h <<EOF
3730 #define $ac_tr_file 1
3733 cat >> confdefs.h <<\EOF
3734 #define HAVE_PROC_SELF_EXE 1
3738 echo "$ac_t""no" 1>&6
3744 for ac_func in gethostbyname_r
3746 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3747 echo "configure:3748: checking for $ac_func" >&5
3748 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3749 echo $ac_n "(cached) $ac_c" 1>&6
3751 cat > conftest.$ac_ext <<EOF
3752 #line 3753 "configure"
3753 #include "confdefs.h"
3754 /* System header to define __stub macros and hopefully few prototypes,
3755 which can conflict with char $ac_func(); below. */
3757 /* Override any gcc2 internal prototype to avoid an error. */
3758 /* We use char because int might match the return type of a gcc2
3759 builtin and then its argument prototype would still apply. */
3764 /* The GNU C library defines this for functions which it implements
3765 to always fail with ENOSYS. Some functions are actually named
3766 something starting with __ and the normal name is an alias. */
3767 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3775 if { (eval echo configure:3776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3777 eval "ac_cv_func_$ac_func=yes"
3779 echo "configure: failed program was:" >&5
3780 cat conftest.$ac_ext >&5
3782 eval "ac_cv_func_$ac_func=no"
3787 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3788 echo "$ac_t""yes" 1>&6
3789 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3790 cat >> confdefs.h <<EOF
3791 #define $ac_tr_func 1
3794 cat >> confdefs.h <<\EOF
3795 #define HAVE_GETHOSTBYNAME_R 1
3798 # There are two different kinds of gethostbyname_r.
3799 # We look for the one that returns `int'.
3800 # Hopefully this check is robust enough.
3801 cat > conftest.$ac_ext <<EOF
3802 #line 3803 "configure"
3803 #include "confdefs.h"
3806 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3807 egrep "int.*gethostbyname_r" >/dev/null 2>&1; then
3810 cat >> confdefs.h <<\EOF
3811 #define GETHOSTBYNAME_R_RETURNS_INT 1
3819 *" -D_REENTRANT "*) ;;
3821 echo $ac_n "checking whether gethostbyname_r declaration requires -D_REENTRANT""... $ac_c" 1>&6
3822 echo "configure:3823: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
3823 if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
3824 echo $ac_n "(cached) $ac_c" 1>&6
3828 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3829 ac_cpp='$CXXCPP $CPPFLAGS'
3830 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3831 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3832 cross_compiling=$ac_cv_prog_cxx_cross
3834 cat > conftest.$ac_ext <<EOF
3835 #line 3836 "configure"
3836 #include "confdefs.h"
3839 gethostbyname_r("", 0, 0);
3842 if { (eval echo configure:3843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3844 libjava_cv_gethostbyname_r_needs_reentrant=no
3846 echo "configure: failed program was:" >&5
3847 cat conftest.$ac_ext >&5
3849 CPPFLAGS_SAVE="$CPPFLAGS"
3850 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
3851 cat > conftest.$ac_ext <<EOF
3852 #line 3853 "configure"
3853 #include "confdefs.h"
3856 gethostbyname_r("", 0, 0);
3859 if { (eval echo configure:3860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3861 libjava_cv_gethostbyname_r_needs_reentrant=yes
3863 echo "configure: failed program was:" >&5
3864 cat conftest.$ac_ext >&5
3866 libjava_cv_gethostbyname_r_needs_reentrant=fail
3869 CPPFLAGS="$CPPFLAGS_SAVE"
3874 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3875 ac_cpp='$CPP $CPPFLAGS'
3876 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3877 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3878 cross_compiling=$ac_cv_prog_cc_cross
3883 echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
3884 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
3885 cat >> confdefs.h <<\EOF
3886 #define _REENTRANT 1
3893 echo $ac_n "checking for struct hostent_data""... $ac_c" 1>&6
3894 echo "configure:3895: checking for struct hostent_data" >&5
3895 if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
3896 echo $ac_n "(cached) $ac_c" 1>&6
3898 cat > conftest.$ac_ext <<EOF
3899 #line 3900 "configure"
3900 #include "confdefs.h"
3902 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
3903 # define _REENTRANT 1
3907 struct hostent_data data;
3910 if { (eval echo configure:3911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3912 libjava_cv_struct_hostent_data=yes
3914 echo "configure: failed program was:" >&5
3915 cat conftest.$ac_ext >&5
3917 libjava_cv_struct_hostent_data=no
3922 echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
3923 if test "x$libjava_cv_struct_hostent_data" = xyes; then
3924 cat >> confdefs.h <<\EOF
3925 #define HAVE_STRUCT_HOSTENT_DATA 1
3931 echo "$ac_t""no" 1>&6
3936 for ac_func in gethostbyaddr_r
3938 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3939 echo "configure:3940: checking for $ac_func" >&5
3940 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3941 echo $ac_n "(cached) $ac_c" 1>&6
3943 cat > conftest.$ac_ext <<EOF
3944 #line 3945 "configure"
3945 #include "confdefs.h"
3946 /* System header to define __stub macros and hopefully few prototypes,
3947 which can conflict with char $ac_func(); below. */
3949 /* Override any gcc2 internal prototype to avoid an error. */
3950 /* We use char because int might match the return type of a gcc2
3951 builtin and then its argument prototype would still apply. */
3956 /* The GNU C library defines this for functions which it implements
3957 to always fail with ENOSYS. Some functions are actually named
3958 something starting with __ and the normal name is an alias. */
3959 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3967 if { (eval echo configure:3968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3969 eval "ac_cv_func_$ac_func=yes"
3971 echo "configure: failed program was:" >&5
3972 cat conftest.$ac_ext >&5
3974 eval "ac_cv_func_$ac_func=no"
3979 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3980 echo "$ac_t""yes" 1>&6
3981 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3982 cat >> confdefs.h <<EOF
3983 #define $ac_tr_func 1
3986 cat >> confdefs.h <<\EOF
3987 #define HAVE_GETHOSTBYADDR_R 1
3990 # There are two different kinds of gethostbyaddr_r.
3991 # We look for the one that returns `int'.
3992 # Hopefully this check is robust enough.
3993 cat > conftest.$ac_ext <<EOF
3994 #line 3995 "configure"
3995 #include "confdefs.h"
3998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3999 egrep "int.*gethostbyaddr_r" >/dev/null 2>&1; then
4002 cat >> confdefs.h <<\EOF
4003 #define GETHOSTBYADDR_R_RETURNS_INT 1
4010 echo "$ac_t""no" 1>&6
4015 for ac_func in gethostname
4017 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4018 echo "configure:4019: checking for $ac_func" >&5
4019 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4020 echo $ac_n "(cached) $ac_c" 1>&6
4022 cat > conftest.$ac_ext <<EOF
4023 #line 4024 "configure"
4024 #include "confdefs.h"
4025 /* System header to define __stub macros and hopefully few prototypes,
4026 which can conflict with char $ac_func(); below. */
4028 /* Override any gcc2 internal prototype to avoid an error. */
4029 /* We use char because int might match the return type of a gcc2
4030 builtin and then its argument prototype would still apply. */
4035 /* The GNU C library defines this for functions which it implements
4036 to always fail with ENOSYS. Some functions are actually named
4037 something starting with __ and the normal name is an alias. */
4038 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4046 if { (eval echo configure:4047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4048 eval "ac_cv_func_$ac_func=yes"
4050 echo "configure: failed program was:" >&5
4051 cat conftest.$ac_ext >&5
4053 eval "ac_cv_func_$ac_func=no"
4058 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4059 echo "$ac_t""yes" 1>&6
4060 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4061 cat >> confdefs.h <<EOF
4062 #define $ac_tr_func 1
4065 cat >> confdefs.h <<\EOF
4066 #define HAVE_GETHOSTNAME 1
4069 cat > conftest.$ac_ext <<EOF
4070 #line 4071 "configure"
4071 #include "confdefs.h"
4074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4075 egrep "gethostname" >/dev/null 2>&1; then
4078 cat >> confdefs.h <<\EOF
4079 #define HAVE_GETHOSTNAME_DECL 1
4086 echo "$ac_t""no" 1>&6
4091 # Look for these functions in the thread library, but only bother
4092 # if using POSIX threads.
4093 if test "$THREADS" = posix; then
4095 LIBS="$LIBS $THREADLIBS"
4096 # Some POSIX thread systems don't have pthread_mutexattr_settype.
4098 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
4100 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4101 echo "configure:4102: checking for $ac_func" >&5
4102 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4103 echo $ac_n "(cached) $ac_c" 1>&6
4105 cat > conftest.$ac_ext <<EOF
4106 #line 4107 "configure"
4107 #include "confdefs.h"
4108 /* System header to define __stub macros and hopefully few prototypes,
4109 which can conflict with char $ac_func(); below. */
4111 /* Override any gcc2 internal prototype to avoid an error. */
4112 /* We use char because int might match the return type of a gcc2
4113 builtin and then its argument prototype would still apply. */
4118 /* The GNU C library defines this for functions which it implements
4119 to always fail with ENOSYS. Some functions are actually named
4120 something starting with __ and the normal name is an alias. */
4121 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4129 if { (eval echo configure:4130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4131 eval "ac_cv_func_$ac_func=yes"
4133 echo "configure: failed program was:" >&5
4134 cat conftest.$ac_ext >&5
4136 eval "ac_cv_func_$ac_func=no"
4141 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4142 echo "$ac_t""yes" 1>&6
4143 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4144 cat >> confdefs.h <<EOF
4145 #define $ac_tr_func 1
4149 echo "$ac_t""no" 1>&6
4154 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
4155 # Solaris 7 the name librt is preferred.
4156 for ac_func in sched_yield
4158 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4159 echo "configure:4160: checking for $ac_func" >&5
4160 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4161 echo $ac_n "(cached) $ac_c" 1>&6
4163 cat > conftest.$ac_ext <<EOF
4164 #line 4165 "configure"
4165 #include "confdefs.h"
4166 /* System header to define __stub macros and hopefully few prototypes,
4167 which can conflict with char $ac_func(); below. */
4169 /* Override any gcc2 internal prototype to avoid an error. */
4170 /* We use char because int might match the return type of a gcc2
4171 builtin and then its argument prototype would still apply. */
4176 /* The GNU C library defines this for functions which it implements
4177 to always fail with ENOSYS. Some functions are actually named
4178 something starting with __ and the normal name is an alias. */
4179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4187 if { (eval echo configure:4188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4189 eval "ac_cv_func_$ac_func=yes"
4191 echo "configure: failed program was:" >&5
4192 cat conftest.$ac_ext >&5
4194 eval "ac_cv_func_$ac_func=no"
4199 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4200 echo "$ac_t""yes" 1>&6
4201 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4202 cat >> confdefs.h <<EOF
4203 #define $ac_tr_func 1
4207 echo "$ac_t""no" 1>&6
4208 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
4209 echo "configure:4210: checking for sched_yield in -lrt" >&5
4210 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
4211 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4212 echo $ac_n "(cached) $ac_c" 1>&6
4214 ac_save_LIBS="$LIBS"
4216 cat > conftest.$ac_ext <<EOF
4217 #line 4218 "configure"
4218 #include "confdefs.h"
4219 /* Override any gcc2 internal prototype to avoid an error. */
4220 /* We use char because int might match the return type of a gcc2
4221 builtin and then its argument prototype would still apply. */
4228 if { (eval echo configure:4229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4230 eval "ac_cv_lib_$ac_lib_var=yes"
4232 echo "configure: failed program was:" >&5
4233 cat conftest.$ac_ext >&5
4235 eval "ac_cv_lib_$ac_lib_var=no"
4238 LIBS="$ac_save_LIBS"
4241 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4242 echo "$ac_t""yes" 1>&6
4244 cat >> confdefs.h <<\EOF
4245 #define HAVE_SCHED_YIELD 1
4248 THREADLIBS="$THREADLIBS -lrt"
4249 THREADSPEC="$THREADSPEC -lrt"
4251 echo "$ac_t""no" 1>&6
4253 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
4254 echo "configure:4255: checking for sched_yield in -lposix4" >&5
4255 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
4256 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4257 echo $ac_n "(cached) $ac_c" 1>&6
4259 ac_save_LIBS="$LIBS"
4260 LIBS="-lposix4 $LIBS"
4261 cat > conftest.$ac_ext <<EOF
4262 #line 4263 "configure"
4263 #include "confdefs.h"
4264 /* Override any gcc2 internal prototype to avoid an error. */
4265 /* We use char because int might match the return type of a gcc2
4266 builtin and then its argument prototype would still apply. */
4273 if { (eval echo configure:4274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4275 eval "ac_cv_lib_$ac_lib_var=yes"
4277 echo "configure: failed program was:" >&5
4278 cat conftest.$ac_ext >&5
4280 eval "ac_cv_lib_$ac_lib_var=no"
4283 LIBS="$ac_save_LIBS"
4286 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4287 echo "$ac_t""yes" 1>&6
4289 cat >> confdefs.h <<\EOF
4290 #define HAVE_SCHED_YIELD 1
4293 THREADLIBS="$THREADLIBS -lposix4"
4294 THREADSPEC="$THREADSPEC -lposix4"
4296 echo "$ac_t""no" 1>&6
4306 # We can save a little space at runtime if the mutex has m_count
4307 # or __m_count. This is a nice hack for Linux.
4308 cat > conftest.$ac_ext <<EOF
4309 #line 4310 "configure"
4310 #include "confdefs.h"
4311 #include <pthread.h>
4314 extern pthread_mutex_t *mutex; int q = mutex->m_count;
4318 if { (eval echo configure:4319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4320 cat >> confdefs.h <<\EOF
4321 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
4325 echo "configure: failed program was:" >&5
4326 cat conftest.$ac_ext >&5
4329 cat > conftest.$ac_ext <<EOF
4330 #line 4331 "configure"
4331 #include "confdefs.h"
4332 #include <pthread.h>
4335 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
4339 if { (eval echo configure:4340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4341 cat >> confdefs.h <<\EOF
4342 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
4346 echo "configure: failed program was:" >&5
4347 cat conftest.$ac_ext >&5
4354 # We require a way to get the time.
4356 for ac_func in gettimeofday time ftime
4358 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4359 echo "configure:4360: checking for $ac_func" >&5
4360 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4361 echo $ac_n "(cached) $ac_c" 1>&6
4363 cat > conftest.$ac_ext <<EOF
4364 #line 4365 "configure"
4365 #include "confdefs.h"
4366 /* System header to define __stub macros and hopefully few prototypes,
4367 which can conflict with char $ac_func(); below. */
4369 /* Override any gcc2 internal prototype to avoid an error. */
4370 /* We use char because int might match the return type of a gcc2
4371 builtin and then its argument prototype would still apply. */
4376 /* The GNU C library defines this for functions which it implements
4377 to always fail with ENOSYS. Some functions are actually named
4378 something starting with __ and the normal name is an alias. */
4379 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4387 if { (eval echo configure:4388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4389 eval "ac_cv_func_$ac_func=yes"
4391 echo "configure: failed program was:" >&5
4392 cat conftest.$ac_ext >&5
4394 eval "ac_cv_func_$ac_func=no"
4399 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4400 echo "$ac_t""yes" 1>&6
4401 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4402 cat >> confdefs.h <<EOF
4403 #define $ac_tr_func 1
4407 echo "$ac_t""no" 1>&6
4411 if test "$time_found" = no; then
4412 { echo "configure: error: no function found to get the time" 1>&2; exit 1; }
4415 for ac_func in memmove
4417 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4418 echo "configure:4419: checking for $ac_func" >&5
4419 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4420 echo $ac_n "(cached) $ac_c" 1>&6
4422 cat > conftest.$ac_ext <<EOF
4423 #line 4424 "configure"
4424 #include "confdefs.h"
4425 /* System header to define __stub macros and hopefully few prototypes,
4426 which can conflict with char $ac_func(); below. */
4428 /* Override any gcc2 internal prototype to avoid an error. */
4429 /* We use char because int might match the return type of a gcc2
4430 builtin and then its argument prototype would still apply. */
4435 /* The GNU C library defines this for functions which it implements
4436 to always fail with ENOSYS. Some functions are actually named
4437 something starting with __ and the normal name is an alias. */
4438 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4446 if { (eval echo configure:4447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4448 eval "ac_cv_func_$ac_func=yes"
4450 echo "configure: failed program was:" >&5
4451 cat conftest.$ac_ext >&5
4453 eval "ac_cv_func_$ac_func=no"
4458 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4459 echo "$ac_t""yes" 1>&6
4460 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4461 cat >> confdefs.h <<EOF
4462 #define $ac_tr_func 1
4466 echo "$ac_t""no" 1>&6
4471 # We require memcpy.
4473 for ac_func in memcpy
4475 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4476 echo "configure:4477: checking for $ac_func" >&5
4477 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4478 echo $ac_n "(cached) $ac_c" 1>&6
4480 cat > conftest.$ac_ext <<EOF
4481 #line 4482 "configure"
4482 #include "confdefs.h"
4483 /* System header to define __stub macros and hopefully few prototypes,
4484 which can conflict with char $ac_func(); below. */
4486 /* Override any gcc2 internal prototype to avoid an error. */
4487 /* We use char because int might match the return type of a gcc2
4488 builtin and then its argument prototype would still apply. */
4493 /* The GNU C library defines this for functions which it implements
4494 to always fail with ENOSYS. Some functions are actually named
4495 something starting with __ and the normal name is an alias. */
4496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4504 if { (eval echo configure:4505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4506 eval "ac_cv_func_$ac_func=yes"
4508 echo "configure: failed program was:" >&5
4509 cat conftest.$ac_ext >&5
4511 eval "ac_cv_func_$ac_func=no"
4516 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4517 echo "$ac_t""yes" 1>&6
4518 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4519 cat >> confdefs.h <<EOF
4520 #define $ac_tr_func 1
4524 echo "$ac_t""no" 1>&6
4528 if test "$memcpy_found" = no; then
4529 { echo "configure: error: memcpy is required" 1>&2; exit 1; }
4532 # Some library-finding code we stole from Tcl.
4533 #--------------------------------------------------------------------
4534 # Check for the existence of the -lsocket and -lnsl libraries.
4535 # The order here is important, so that they end up in the right
4536 # order in the command line generated by make. Here are some
4537 # special considerations:
4538 # 1. Use "connect" and "accept" to check for -lsocket, and
4539 # "gethostbyname" to check for -lnsl.
4540 # 2. Use each function name only once: can't redo a check because
4541 # autoconf caches the results of the last check and won't redo it.
4542 # 3. Use -lnsl and -lsocket only if they supply procedures that
4543 # aren't already present in the normal libraries. This is because
4544 # IRIX 5.2 has libraries, but they aren't needed and they're
4545 # bogus: they goof up name resolution if used.
4546 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
4547 # To get around this problem, check for both libraries together
4548 # if -lsocket doesn't work by itself.
4549 #--------------------------------------------------------------------
4551 echo $ac_n "checking for socket libraries""... $ac_c" 1>&6
4552 echo "configure:4553: checking for socket libraries" >&5
4553 if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
4554 echo $ac_n "(cached) $ac_c" 1>&6
4558 unset ac_cv_func_connect
4559 echo $ac_n "checking for connect""... $ac_c" 1>&6
4560 echo "configure:4561: checking for connect" >&5
4561 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
4562 echo $ac_n "(cached) $ac_c" 1>&6
4564 cat > conftest.$ac_ext <<EOF
4565 #line 4566 "configure"
4566 #include "confdefs.h"
4567 /* System header to define __stub macros and hopefully few prototypes,
4568 which can conflict with char connect(); below. */
4570 /* Override any gcc2 internal prototype to avoid an error. */
4571 /* We use char because int might match the return type of a gcc2
4572 builtin and then its argument prototype would still apply. */
4577 /* The GNU C library defines this for functions which it implements
4578 to always fail with ENOSYS. Some functions are actually named
4579 something starting with __ and the normal name is an alias. */
4580 #if defined (__stub_connect) || defined (__stub___connect)
4588 if { (eval echo configure:4589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4590 eval "ac_cv_func_connect=yes"
4592 echo "configure: failed program was:" >&5
4593 cat conftest.$ac_ext >&5
4595 eval "ac_cv_func_connect=no"
4600 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
4601 echo "$ac_t""yes" 1>&6
4604 echo "$ac_t""no" 1>&6
4608 if test "$gcj_checkSocket" = 1; then
4609 unset ac_cv_func_connect
4610 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4611 echo "configure:4612: checking for main in -lsocket" >&5
4612 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
4613 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4614 echo $ac_n "(cached) $ac_c" 1>&6
4616 ac_save_LIBS="$LIBS"
4617 LIBS="-lsocket $LIBS"
4618 cat > conftest.$ac_ext <<EOF
4619 #line 4620 "configure"
4620 #include "confdefs.h"
4626 if { (eval echo configure:4627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4628 eval "ac_cv_lib_$ac_lib_var=yes"
4630 echo "configure: failed program was:" >&5
4631 cat conftest.$ac_ext >&5
4633 eval "ac_cv_lib_$ac_lib_var=no"
4636 LIBS="$ac_save_LIBS"
4639 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4640 echo "$ac_t""yes" 1>&6
4641 gcj_cv_lib_sockets="-lsocket"
4643 echo "$ac_t""no" 1>&6
4648 if test "$gcj_checkBoth" = 1; then
4650 LIBS="$LIBS -lsocket -lnsl"
4651 unset ac_cv_func_accept
4652 echo $ac_n "checking for accept""... $ac_c" 1>&6
4653 echo "configure:4654: checking for accept" >&5
4654 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
4655 echo $ac_n "(cached) $ac_c" 1>&6
4657 cat > conftest.$ac_ext <<EOF
4658 #line 4659 "configure"
4659 #include "confdefs.h"
4660 /* System header to define __stub macros and hopefully few prototypes,
4661 which can conflict with char accept(); below. */
4663 /* Override any gcc2 internal prototype to avoid an error. */
4664 /* We use char because int might match the return type of a gcc2
4665 builtin and then its argument prototype would still apply. */
4670 /* The GNU C library defines this for functions which it implements
4671 to always fail with ENOSYS. Some functions are actually named
4672 something starting with __ and the normal name is an alias. */
4673 #if defined (__stub_accept) || defined (__stub___accept)
4681 if { (eval echo configure:4682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4683 eval "ac_cv_func_accept=yes"
4685 echo "configure: failed program was:" >&5
4686 cat conftest.$ac_ext >&5
4688 eval "ac_cv_func_accept=no"
4693 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
4694 echo "$ac_t""yes" 1>&6
4696 gcj_cv_lib_sockets="-lsocket -lnsl"
4698 echo "$ac_t""no" 1>&6
4701 unset ac_cv_func_accept
4704 unset ac_cv_func_gethostbyname
4706 LIBS="$LIBS $gcj_cv_lib_sockets"
4707 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4708 echo "configure:4709: checking for gethostbyname" >&5
4709 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
4710 echo $ac_n "(cached) $ac_c" 1>&6
4712 cat > conftest.$ac_ext <<EOF
4713 #line 4714 "configure"
4714 #include "confdefs.h"
4715 /* System header to define __stub macros and hopefully few prototypes,
4716 which can conflict with char gethostbyname(); below. */
4718 /* Override any gcc2 internal prototype to avoid an error. */
4719 /* We use char because int might match the return type of a gcc2
4720 builtin and then its argument prototype would still apply. */
4721 char gethostbyname();
4725 /* The GNU C library defines this for functions which it implements
4726 to always fail with ENOSYS. Some functions are actually named
4727 something starting with __ and the normal name is an alias. */
4728 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4736 if { (eval echo configure:4737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4738 eval "ac_cv_func_gethostbyname=yes"
4740 echo "configure: failed program was:" >&5
4741 cat conftest.$ac_ext >&5
4743 eval "ac_cv_func_gethostbyname=no"
4748 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
4749 echo "$ac_t""yes" 1>&6
4752 echo "$ac_t""no" 1>&6
4753 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4754 echo "configure:4755: checking for main in -lnsl" >&5
4755 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
4756 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4757 echo $ac_n "(cached) $ac_c" 1>&6
4759 ac_save_LIBS="$LIBS"
4761 cat > conftest.$ac_ext <<EOF
4762 #line 4763 "configure"
4763 #include "confdefs.h"
4769 if { (eval echo configure:4770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4771 eval "ac_cv_lib_$ac_lib_var=yes"
4773 echo "configure: failed program was:" >&5
4774 cat conftest.$ac_ext >&5
4776 eval "ac_cv_lib_$ac_lib_var=no"
4779 LIBS="$ac_save_LIBS"
4782 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4783 echo "$ac_t""yes" 1>&6
4784 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
4786 echo "$ac_t""no" 1>&6
4791 unset ac_cv_func_gethostbyname
4796 echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
4797 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
4799 if test "$with_system_zlib" = yes; then
4800 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
4801 echo "configure:4802: checking for deflate in -lz" >&5
4802 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
4803 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4804 echo $ac_n "(cached) $ac_c" 1>&6
4806 ac_save_LIBS="$LIBS"
4808 cat > conftest.$ac_ext <<EOF
4809 #line 4810 "configure"
4810 #include "confdefs.h"
4811 /* Override any gcc2 internal prototype to avoid an error. */
4812 /* We use char because int might match the return type of a gcc2
4813 builtin and then its argument prototype would still apply. */
4820 if { (eval echo configure:4821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4822 eval "ac_cv_lib_$ac_lib_var=yes"
4824 echo "configure: failed program was:" >&5
4825 cat conftest.$ac_ext >&5
4827 eval "ac_cv_lib_$ac_lib_var=no"
4830 LIBS="$ac_save_LIBS"
4833 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4834 echo "$ac_t""yes" 1>&6
4837 echo "$ac_t""no" 1>&6
4843 ZLIBTESTSPEC="-L`pwd`/../zlib/.libs -rpath `pwd`/../zlib/.libs"
4846 # On Solaris, and maybe other architectures, the Boehm collector
4848 if test "$GC" = boehm; then
4849 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
4850 echo "configure:4851: checking for main in -ldl" >&5
4851 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
4852 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4853 echo $ac_n "(cached) $ac_c" 1>&6
4855 ac_save_LIBS="$LIBS"
4857 cat > conftest.$ac_ext <<EOF
4858 #line 4859 "configure"
4859 #include "confdefs.h"
4865 if { (eval echo configure:4866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4867 eval "ac_cv_lib_$ac_lib_var=yes"
4869 echo "configure: failed program was:" >&5
4870 cat conftest.$ac_ext >&5
4872 eval "ac_cv_lib_$ac_lib_var=no"
4875 LIBS="$ac_save_LIBS"
4878 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4879 echo "$ac_t""yes" 1>&6
4880 SYSTEMSPEC="$SYSTEMSPEC -ldl"
4882 echo "$ac_t""no" 1>&6
4887 if test -z "${with_multisubdir}"; then
4891 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
4894 dir="`cd ${builddotdot}/../../gcc && pwd`"
4895 if test -x "${dir}/gcj"; then
4896 GCJ="$dir/gcj -B`pwd`/ -B$dir/"
4904 # Create it, so that compile/link tests don't fail
4905 test -f libgcj.spec || touch libgcj.spec
4906 GCJ="$GCJ -I$srcdir"
4909 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
4910 set dummy ${ac_tool_prefix}gcj; ac_word=$2
4911 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4912 echo "configure:4913: checking for $ac_word" >&5
4913 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
4914 echo $ac_n "(cached) $ac_c" 1>&6
4916 if test -n "$GCJ"; then
4917 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
4919 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4921 for ac_dir in $ac_dummy; do
4922 test -z "$ac_dir" && ac_dir=.
4923 if test -f $ac_dir/$ac_word; then
4924 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
4931 GCJ="$ac_cv_prog_GCJ"
4932 if test -n "$GCJ"; then
4933 echo "$ac_t""$GCJ" 1>&6
4935 echo "$ac_t""no" 1>&6
4939 if test -z "$ac_cv_prog_GCJ"; then
4940 if test -n "$ac_tool_prefix"; then
4941 # Extract the first word of "gcj", so it can be a program name with args.
4942 set dummy gcj; ac_word=$2
4943 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4944 echo "configure:4945: checking for $ac_word" >&5
4945 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
4946 echo $ac_n "(cached) $ac_c" 1>&6
4948 if test -n "$GCJ"; then
4949 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
4951 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4953 for ac_dir in $ac_dummy; do
4954 test -z "$ac_dir" && ac_dir=.
4955 if test -f $ac_dir/$ac_word; then
4956 ac_cv_prog_GCJ="gcj"
4961 test -z "$ac_cv_prog_GCJ" && ac_cv_prog_GCJ="no"
4964 GCJ="$ac_cv_prog_GCJ"
4965 if test -n "$GCJ"; then
4966 echo "$ac_t""$GCJ" 1>&6
4968 echo "$ac_t""no" 1>&6
4976 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
4980 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
4982 lt_save_CFLAGS="$CFLAGS"
4983 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="" \
4984 MAGIC="$MAGIC" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4985 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4986 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4987 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4988 deplibs_check_method="$deplibs_check_method" \
4989 file_magic_cmd="$file_magic_cmd" \
4990 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
4991 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
4992 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
4994 CFLAGS="$lt_save_CFLAGS"
4996 # Redirect the config.log output again, so that the ltconfig log is not
4997 # clobbered by the next message.
4998 exec 5>>./config.log
5003 echo $ac_n "checking size of void *""... $ac_c" 1>&6
5004 echo "configure:5005: checking size of void *" >&5
5005 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
5006 echo $ac_n "(cached) $ac_c" 1>&6
5008 if test "$cross_compiling" = yes; then
5009 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5011 cat > conftest.$ac_ext <<EOF
5012 #line 5013 "configure"
5013 #include "confdefs.h"
5017 FILE *f=fopen("conftestval", "w");
5019 fprintf(f, "%d\n", sizeof(void *));
5023 if { (eval echo configure:5024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5025 ac_cv_sizeof_void_p=`cat conftestval`
5027 echo "configure: failed program was:" >&5
5028 cat conftest.$ac_ext >&5
5030 ac_cv_sizeof_void_p=0
5036 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
5037 cat >> confdefs.h <<EOF
5038 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5046 if test "x$ZLIBSPEC" = "x-lzgcj"; then
5047 # We include the path to the zlib build directory.
5048 # See Makefile.am to understand why.
5049 ZDEPS='$(top_builddir)/../zlib/libzgcj.la'
5050 ZLIBS="$ZDEPS -L\$(here)/../zlib/$libsubdir"
5051 ZINCS='-I$(top_srcdir)/../zlib'
5064 if test "$CANADIAN" = yes; then
5073 if test "$NULL_TARGET" = yes; then
5075 NULL_TARGET_FALSE='#'
5077 NULL_TARGET_TRUE='#'
5082 if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
5091 if test -z "$with_cross_host"; then
5093 USE_LIBDIR_FALSE='#'
5100 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
5101 NEEDS_DATA_START_TRUE=
5102 NEEDS_DATA_START_FALSE='#'
5104 NEEDS_DATA_START_TRUE='#'
5105 NEEDS_DATA_START_FALSE=
5109 # Determine gcj version number.
5111 gcjvers="`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`"
5113 cat >> confdefs.h <<EOF
5114 #define GCJVERSION "$gcjvers"
5118 # See if gcj supports -fuse-divide-subroutine. gcc 2.95 does not, and
5119 # we want to continue to support that version.
5120 echo $ac_n "checking whether gcj supports -fuse-divide-subroutine""... $ac_c" 1>&6
5121 echo "configure:5122: checking whether gcj supports -fuse-divide-subroutine" >&5
5122 cat > conftest.java << 'END'
5123 public class conftest { }
5126 $GCJ -classpath $srcdir -fuse-divide-subroutine -fsyntax-only \
5127 conftest.java > /dev/null 2>&1 \
5130 if test "$use_fuse" = no; then
5133 echo "$ac_t""$use_fuse" 1>&6
5137 echo $ac_n "checking for g++ -ffloat-store bug""... $ac_c" 1>&6
5138 echo "configure:5139: checking for g++ -ffloat-store bug" >&5
5139 save_CFLAGS="$CFLAGS"
5140 CFLAGS="-x c++ -O2 -ffloat-store"
5141 cat > conftest.$ac_ext <<EOF
5142 #line 5143 "configure"
5143 #include "confdefs.h"
5149 if { (eval echo configure:5150: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5151 echo "$ac_t""no" 1>&6
5153 echo "configure: failed program was:" >&5
5154 cat conftest.$ac_ext >&5
5156 cat >> confdefs.h <<\EOF
5157 #define __NO_MATH_INLINES 1
5160 echo "$ac_t""yes" 1>&6
5163 CFLAGS="$save_CFLAGS"
5165 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 langinfo.h
5167 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5168 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5169 echo "configure:5170: checking for $ac_hdr" >&5
5170 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5171 echo $ac_n "(cached) $ac_c" 1>&6
5173 cat > conftest.$ac_ext <<EOF
5174 #line 5175 "configure"
5175 #include "confdefs.h"
5178 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5179 { (eval echo configure:5180: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5180 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5181 if test -z "$ac_err"; then
5183 eval "ac_cv_header_$ac_safe=yes"
5186 echo "configure: failed program was:" >&5
5187 cat conftest.$ac_ext >&5
5189 eval "ac_cv_header_$ac_safe=no"
5193 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5194 echo "$ac_t""yes" 1>&6
5195 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5196 cat >> confdefs.h <<EOF
5197 #define $ac_tr_hdr 1
5201 echo "$ac_t""no" 1>&6
5205 for ac_hdr in dirent.h
5207 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5208 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5209 echo "configure:5210: checking for $ac_hdr" >&5
5210 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5211 echo $ac_n "(cached) $ac_c" 1>&6
5213 cat > conftest.$ac_ext <<EOF
5214 #line 5215 "configure"
5215 #include "confdefs.h"
5218 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5219 { (eval echo configure:5220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5220 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5221 if test -z "$ac_err"; then
5223 eval "ac_cv_header_$ac_safe=yes"
5226 echo "configure: failed program was:" >&5
5227 cat conftest.$ac_ext >&5
5229 eval "ac_cv_header_$ac_safe=no"
5233 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5234 echo "$ac_t""yes" 1>&6
5235 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5236 cat >> confdefs.h <<EOF
5237 #define $ac_tr_hdr 1
5241 echo "$ac_t""no" 1>&6
5246 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5247 echo "configure:5248: checking for ANSI C header files" >&5
5248 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5249 echo $ac_n "(cached) $ac_c" 1>&6
5251 cat > conftest.$ac_ext <<EOF
5252 #line 5253 "configure"
5253 #include "confdefs.h"
5259 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5260 { (eval echo configure:5261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5261 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5262 if test -z "$ac_err"; then
5264 ac_cv_header_stdc=yes
5267 echo "configure: failed program was:" >&5
5268 cat conftest.$ac_ext >&5
5270 ac_cv_header_stdc=no
5274 if test $ac_cv_header_stdc = yes; then
5275 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5276 cat > conftest.$ac_ext <<EOF
5277 #line 5278 "configure"
5278 #include "confdefs.h"
5281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5282 egrep "memchr" >/dev/null 2>&1; then
5286 ac_cv_header_stdc=no
5292 if test $ac_cv_header_stdc = yes; then
5293 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5294 cat > conftest.$ac_ext <<EOF
5295 #line 5296 "configure"
5296 #include "confdefs.h"
5299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5300 egrep "free" >/dev/null 2>&1; then
5304 ac_cv_header_stdc=no
5310 if test $ac_cv_header_stdc = yes; then
5311 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5312 if test "$cross_compiling" = yes; then
5315 cat > conftest.$ac_ext <<EOF
5316 #line 5317 "configure"
5317 #include "confdefs.h"
5319 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5320 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5321 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5322 int main () { int i; for (i = 0; i < 256; i++)
5323 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5327 if { (eval echo configure:5328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5331 echo "configure: failed program was:" >&5
5332 cat conftest.$ac_ext >&5
5334 ac_cv_header_stdc=no
5342 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5343 if test $ac_cv_header_stdc = yes; then
5344 cat >> confdefs.h <<\EOF
5345 #define STDC_HEADERS 1
5350 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
5351 echo "configure:5352: checking for ssize_t" >&5
5352 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
5353 echo $ac_n "(cached) $ac_c" 1>&6
5355 cat > conftest.$ac_ext <<EOF
5356 #line 5357 "configure"
5357 #include "confdefs.h"
5358 #include <sys/types.h>
5364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5365 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5367 ac_cv_type_ssize_t=yes
5370 ac_cv_type_ssize_t=no
5375 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
5376 if test $ac_cv_type_ssize_t = no; then
5377 cat >> confdefs.h <<\EOF
5384 echo $ac_n "checking for in_addr_t""... $ac_c" 1>&6
5385 echo "configure:5386: checking for in_addr_t" >&5
5386 cat > conftest.$ac_ext <<EOF
5387 #line 5388 "configure"
5388 #include "confdefs.h"
5389 #include <sys/types.h>
5394 #if HAVE_NETINET_IN_H
5395 #include <netinet/in.h>
5401 if { (eval echo configure:5402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5403 cat >> confdefs.h <<\EOF
5404 #define HAVE_IN_ADDR_T 1
5407 echo "$ac_t""yes" 1>&6
5409 echo "configure: failed program was:" >&5
5410 cat conftest.$ac_ext >&5
5412 echo "$ac_t""no" 1>&6
5416 echo $ac_n "checking whether struct ip_mreq is in netinet/in.h""... $ac_c" 1>&6
5417 echo "configure:5418: checking whether struct ip_mreq is in netinet/in.h" >&5
5418 cat > conftest.$ac_ext <<EOF
5419 #line 5420 "configure"
5420 #include "confdefs.h"
5421 #include <netinet/in.h>
5423 struct ip_mreq mreq;
5426 if { (eval echo configure:5427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5428 cat >> confdefs.h <<\EOF
5429 #define HAVE_STRUCT_IP_MREQ 1
5432 echo "$ac_t""yes" 1>&6
5434 echo "configure: failed program was:" >&5
5435 cat conftest.$ac_ext >&5
5437 echo "$ac_t""no" 1>&6
5441 echo $ac_n "checking whether struct sockaddr_in6 is in netinet/in.h""... $ac_c" 1>&6
5442 echo "configure:5443: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
5443 cat > conftest.$ac_ext <<EOF
5444 #line 5445 "configure"
5445 #include "confdefs.h"
5446 #include <netinet/in.h>
5448 struct sockaddr_in6 addr6;
5451 if { (eval echo configure:5452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5453 cat >> confdefs.h <<\EOF
5454 #define HAVE_INET6 1
5457 echo "$ac_t""yes" 1>&6
5459 echo "configure: failed program was:" >&5
5460 cat conftest.$ac_ext >&5
5462 echo "$ac_t""no" 1>&6
5466 echo $ac_n "checking for socklen_t in sys/socket.h""... $ac_c" 1>&6
5467 echo "configure:5468: checking for socklen_t in sys/socket.h" >&5
5468 cat > conftest.$ac_ext <<EOF
5469 #line 5470 "configure"
5470 #include "confdefs.h"
5471 #include <sys/socket.h>
5476 if { (eval echo configure:5477: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5478 cat >> confdefs.h <<\EOF
5479 #define HAVE_SOCKLEN_T 1
5482 echo "$ac_t""yes" 1>&6
5484 echo "configure: failed program was:" >&5
5485 cat conftest.$ac_ext >&5
5487 echo "$ac_t""no" 1>&6
5491 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
5492 echo "configure:5493: checking for tm_gmtoff in struct tm" >&5
5493 cat > conftest.$ac_ext <<EOF
5494 #line 5495 "configure"
5495 #include "confdefs.h"
5498 struct tm tim; tim.tm_gmtoff = 0;
5501 if { (eval echo configure:5502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5503 cat >> confdefs.h <<\EOF
5504 #define STRUCT_TM_HAS_GMTOFF 1
5507 echo "$ac_t""yes" 1>&6
5509 echo "configure: failed program was:" >&5
5510 cat conftest.$ac_ext >&5
5512 echo "$ac_t""no" 1>&6
5513 echo $ac_n "checking for global timezone variable""... $ac_c" 1>&6
5514 echo "configure:5515: checking for global timezone variable" >&5
5515 cat > conftest.$ac_ext <<EOF
5516 #line 5517 "configure"
5517 #include "confdefs.h"
5523 if { (eval echo configure:5524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5525 cat >> confdefs.h <<\EOF
5526 #define HAVE_TIMEZONE 1
5529 echo "$ac_t""yes" 1>&6
5531 echo "configure: failed program was:" >&5
5532 cat conftest.$ac_ext >&5
5534 echo "$ac_t""no" 1>&6
5540 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5541 # for constant arguments. Useless!
5542 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5543 echo "configure:5544: checking for working alloca.h" >&5
5544 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5545 echo $ac_n "(cached) $ac_c" 1>&6
5547 cat > conftest.$ac_ext <<EOF
5548 #line 5549 "configure"
5549 #include "confdefs.h"
5552 char *p = alloca(2 * sizeof(int));
5555 if { (eval echo configure:5556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5557 ac_cv_header_alloca_h=yes
5559 echo "configure: failed program was:" >&5
5560 cat conftest.$ac_ext >&5
5562 ac_cv_header_alloca_h=no
5567 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5568 if test $ac_cv_header_alloca_h = yes; then
5569 cat >> confdefs.h <<\EOF
5570 #define HAVE_ALLOCA_H 1
5575 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5576 echo "configure:5577: checking for alloca" >&5
5577 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5578 echo $ac_n "(cached) $ac_c" 1>&6
5580 cat > conftest.$ac_ext <<EOF
5581 #line 5582 "configure"
5582 #include "confdefs.h"
5585 # define alloca __builtin_alloca
5588 # include <malloc.h>
5589 # define alloca _alloca
5592 # include <alloca.h>
5597 # ifndef alloca /* predefined by HP cc +Olibcalls */
5606 char *p = (char *) alloca(1);
5609 if { (eval echo configure:5610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5611 ac_cv_func_alloca_works=yes
5613 echo "configure: failed program was:" >&5
5614 cat conftest.$ac_ext >&5
5616 ac_cv_func_alloca_works=no
5621 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5622 if test $ac_cv_func_alloca_works = yes; then
5623 cat >> confdefs.h <<\EOF
5624 #define HAVE_ALLOCA 1
5629 if test $ac_cv_func_alloca_works = no; then
5630 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5631 # that cause trouble. Some versions do not even contain alloca or
5632 # contain a buggy version. If you still want to use their alloca,
5633 # use ar to extract alloca.o from them instead of compiling alloca.c.
5634 ALLOCA=alloca.${ac_objext}
5635 cat >> confdefs.h <<\EOF
5640 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5641 echo "configure:5642: checking whether alloca needs Cray hooks" >&5
5642 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5643 echo $ac_n "(cached) $ac_c" 1>&6
5645 cat > conftest.$ac_ext <<EOF
5646 #line 5647 "configure"
5647 #include "confdefs.h"
5648 #if defined(CRAY) && ! defined(CRAY2)
5655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5656 egrep "webecray" >/dev/null 2>&1; then
5667 echo "$ac_t""$ac_cv_os_cray" 1>&6
5668 if test $ac_cv_os_cray = yes; then
5669 for ac_func in _getb67 GETB67 getb67; do
5670 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5671 echo "configure:5672: checking for $ac_func" >&5
5672 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5673 echo $ac_n "(cached) $ac_c" 1>&6
5675 cat > conftest.$ac_ext <<EOF
5676 #line 5677 "configure"
5677 #include "confdefs.h"
5678 /* System header to define __stub macros and hopefully few prototypes,
5679 which can conflict with char $ac_func(); below. */
5681 /* Override any gcc2 internal prototype to avoid an error. */
5682 /* We use char because int might match the return type of a gcc2
5683 builtin and then its argument prototype would still apply. */
5688 /* The GNU C library defines this for functions which it implements
5689 to always fail with ENOSYS. Some functions are actually named
5690 something starting with __ and the normal name is an alias. */
5691 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5699 if { (eval echo configure:5700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5701 eval "ac_cv_func_$ac_func=yes"
5703 echo "configure: failed program was:" >&5
5704 cat conftest.$ac_ext >&5
5706 eval "ac_cv_func_$ac_func=no"
5711 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5712 echo "$ac_t""yes" 1>&6
5713 cat >> confdefs.h <<EOF
5714 #define CRAY_STACKSEG_END $ac_func
5719 echo "$ac_t""no" 1>&6
5725 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5726 echo "configure:5727: checking stack direction for C alloca" >&5
5727 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5728 echo $ac_n "(cached) $ac_c" 1>&6
5730 if test "$cross_compiling" = yes; then
5731 ac_cv_c_stack_direction=0
5733 cat > conftest.$ac_ext <<EOF
5734 #line 5735 "configure"
5735 #include "confdefs.h"
5736 find_stack_direction ()
5738 static char *addr = 0;
5743 return find_stack_direction ();
5746 return (&dummy > addr) ? 1 : -1;
5750 exit (find_stack_direction() < 0);
5753 if { (eval echo configure:5754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5755 ac_cv_c_stack_direction=1
5757 echo "configure: failed program was:" >&5
5758 cat conftest.$ac_ext >&5
5760 ac_cv_c_stack_direction=-1
5767 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5768 cat >> confdefs.h <<EOF
5769 #define STACK_DIRECTION $ac_cv_c_stack_direction
5777 # Extract the first word of "$ac_prog", so it can be a program name with args.
5778 set dummy $ac_prog; ac_word=$2
5779 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5780 echo "configure:5781: checking for $ac_word" >&5
5781 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
5782 echo $ac_n "(cached) $ac_c" 1>&6
5784 if test -n "$PERL"; then
5785 ac_cv_prog_PERL="$PERL" # Let the user override the test.
5787 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5789 for ac_dir in $ac_dummy; do
5790 test -z "$ac_dir" && ac_dir=.
5791 if test -f $ac_dir/$ac_word; then
5792 ac_cv_prog_PERL="$ac_prog"
5799 PERL="$ac_cv_prog_PERL"
5800 if test -n "$PERL"; then
5801 echo "$ac_t""$PERL" 1>&6
5803 echo "$ac_t""no" 1>&6
5806 test -n "$PERL" && break
5808 test -n "$PERL" || PERL="false"
5815 SIGNAL_HANDLER=include/i386-signal.h
5818 SIGNAL_HANDLER=include/sparc-signal.h
5821 SYSDEP_SOURCES=sysdep/ia64.c
5822 test -d sysdep || mkdir sysdep
5825 SIGNAL_HANDLER=include/default-signal.h
5829 # If we're using sjlj exceptions, forget what we just learned.
5830 if test "$libgcj_sjlj" = yes; then
5831 SIGNAL_HANDLER=include/default-signal.h
5838 if test "${multilib}" = "yes"; then
5839 multilib_arg="--enable-multilib"
5848 cat > confcache <<\EOF
5849 # This file is a shell script that caches the results of configure
5850 # tests run on this system so they can be shared between configure
5851 # scripts and configure runs. It is not useful on other systems.
5852 # If it contains results you don't want to keep, you may remove or edit it.
5854 # By default, configure uses ./config.cache as the cache file,
5855 # creating it if it does not exist already. You can give configure
5856 # the --cache-file=FILE option to use a different cache file; that is
5857 # what configure does when it calls configure scripts in
5858 # subdirectories, so they share the cache.
5859 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5860 # config.status only pays attention to the cache file if you give it the
5861 # --recheck option to rerun configure.
5864 # The following way of writing the cache mishandles newlines in values,
5865 # but we know of no workaround that is simple, portable, and efficient.
5866 # So, don't put newlines in cache variables' values.
5867 # Ultrix sh set writes to stderr and can't be redirected directly,
5868 # and sets the high bit in the cache file unless we assign to the vars.
5870 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5872 # `set' does not quote correctly, so add quotes (double-quote substitution
5873 # turns \\\\ into \\, and sed turns \\ into \).
5875 -e "s/'/'\\\\''/g" \
5876 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5879 # `set' quotes correctly as required by POSIX, so do not add quotes.
5880 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5883 if cmp -s $cache_file confcache; then
5886 if test -w $cache_file; then
5887 echo "updating cache $cache_file"
5888 cat confcache > $cache_file
5890 echo "not updating unwritable cache $cache_file"
5895 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5897 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5898 # Let make expand exec_prefix.
5899 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5901 # Any assignment to VPATH causes Sun make to only execute
5902 # the first set of double-colon rules, so remove it if not needed.
5903 # If there is a colon in the path, we need to keep it.
5904 if test "x$srcdir" = x.; then
5905 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5908 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5910 DEFS=-DHAVE_CONFIG_H
5912 # Without the "./", some shells look in PATH for config.status.
5913 : ${CONFIG_STATUS=./config.status}
5915 echo creating $CONFIG_STATUS
5916 rm -f $CONFIG_STATUS
5917 cat > $CONFIG_STATUS <<EOF
5919 # Generated automatically by configure.
5920 # Run this file to recreate the current configuration.
5921 # This directory was configured as follows,
5922 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5924 # $0 $ac_configure_args
5926 # Compiler output produced by configure, useful for debugging
5927 # configure, is in ./config.log if it exists.
5929 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5932 case "\$ac_option" in
5933 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5934 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5935 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5936 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5937 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5939 -help | --help | --hel | --he | --h)
5940 echo "\$ac_cs_usage"; exit 0 ;;
5941 *) echo "\$ac_cs_usage"; exit 1 ;;
5945 ac_given_srcdir=$srcdir
5946 ac_given_INSTALL="$INSTALL"
5948 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
5950 cat >> $CONFIG_STATUS <<EOF
5952 # Protect against being on the right side of a sed subst in config.status.
5953 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5954 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5958 s%@CFLAGS@%$CFLAGS%g
5959 s%@CPPFLAGS@%$CPPFLAGS%g
5960 s%@CXXFLAGS@%$CXXFLAGS%g
5961 s%@FFLAGS@%$FFLAGS%g
5963 s%@LDFLAGS@%$LDFLAGS%g
5965 s%@exec_prefix@%$exec_prefix%g
5966 s%@prefix@%$prefix%g
5967 s%@program_transform_name@%$program_transform_name%g
5968 s%@bindir@%$bindir%g
5969 s%@sbindir@%$sbindir%g
5970 s%@libexecdir@%$libexecdir%g
5971 s%@datadir@%$datadir%g
5972 s%@sysconfdir@%$sysconfdir%g
5973 s%@sharedstatedir@%$sharedstatedir%g
5974 s%@localstatedir@%$localstatedir%g
5975 s%@libdir@%$libdir%g
5976 s%@includedir@%$includedir%g
5977 s%@oldincludedir@%$oldincludedir%g
5978 s%@infodir@%$infodir%g
5979 s%@mandir@%$mandir%g
5981 s%@host_alias@%$host_alias%g
5982 s%@host_cpu@%$host_cpu%g
5983 s%@host_vendor@%$host_vendor%g
5984 s%@host_os@%$host_os%g
5985 s%@target@%$target%g
5986 s%@target_alias@%$target_alias%g
5987 s%@target_cpu@%$target_cpu%g
5988 s%@target_vendor@%$target_vendor%g
5989 s%@target_os@%$target_os%g
5991 s%@build_alias@%$build_alias%g
5992 s%@build_cpu@%$build_cpu%g
5993 s%@build_vendor@%$build_vendor%g
5994 s%@build_os@%$build_os%g
5995 s%@libgcj_basedir@%$libgcj_basedir%g
5998 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5999 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6000 s%@INSTALL_DATA@%$INSTALL_DATA%g
6001 s%@PACKAGE@%$PACKAGE%g
6002 s%@VERSION@%$VERSION%g
6003 s%@ACLOCAL@%$ACLOCAL%g
6004 s%@AUTOCONF@%$AUTOCONF%g
6005 s%@AUTOMAKE@%$AUTOMAKE%g
6006 s%@AUTOHEADER@%$AUTOHEADER%g
6007 s%@MAKEINFO@%$MAKEINFO%g
6008 s%@SET_MAKE@%$SET_MAKE%g
6011 s%@RANLIB@%$RANLIB%g
6012 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
6013 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
6015 s%@EXEEXT@%$EXEEXT%g
6016 s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
6017 s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
6018 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
6019 s%@INCLTDL@%$INCLTDL%g
6020 s%@LIBLTDL@%$LIBLTDL%g
6021 s%@DIRLTDL@%$DIRLTDL%g
6023 s%@OBJEXT@%$OBJEXT%g
6025 s%@LIBTOOL@%$LIBTOOL%g
6026 s%@CXXCPP@%$CXXCPP%g
6027 s%@subdirs@%$subdirs%g
6028 s%@COMPPATH@%$COMPPATH%g
6029 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
6030 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
6031 s%@LIBDATASTARTSPEC@%$LIBDATASTARTSPEC%g
6033 s%@SYSTEMSPEC@%$SYSTEMSPEC%g
6034 s%@LIBGCJTESTSPEC@%$LIBGCJTESTSPEC%g
6035 s%@ZLIBSPEC@%$ZLIBSPEC%g
6036 s%@ZLIBTESTSPEC@%$ZLIBTESTSPEC%g
6037 s%@GCLIBS@%$GCLIBS%g
6038 s%@GCINCS@%$GCINCS%g
6039 s%@GCDEPS@%$GCDEPS%g
6040 s%@GCOBJS@%$GCOBJS%g
6041 s%@GCSPEC@%$GCSPEC%g
6042 s%@GCTESTSPEC@%$GCTESTSPEC%g
6043 s%@THREADLIBS@%$THREADLIBS%g
6044 s%@THREADINCS@%$THREADINCS%g
6045 s%@THREADDEPS@%$THREADDEPS%g
6046 s%@THREADOBJS@%$THREADOBJS%g
6047 s%@THREADSPEC@%$THREADSPEC%g
6048 s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
6049 s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
6051 s%@GCJFLAGS@%$GCJFLAGS%g
6055 s%@DIVIDESPEC@%$DIVIDESPEC%g
6056 s%@EXCEPTIONSPEC@%$EXCEPTIONSPEC%g
6057 s%@FORCELIBGCCSPEC@%$FORCELIBGCCSPEC%g
6058 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
6059 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
6060 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
6061 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
6062 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
6063 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
6064 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
6065 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
6066 s%@NEEDS_DATA_START_TRUE@%$NEEDS_DATA_START_TRUE%g
6067 s%@NEEDS_DATA_START_FALSE@%$NEEDS_DATA_START_FALSE%g
6068 s%@EH_COMMON_INCLUDE@%$EH_COMMON_INCLUDE%g
6069 s%@AM_RUNTESTFLAGS@%$AM_RUNTESTFLAGS%g
6070 s%@ALLOCA@%$ALLOCA%g
6072 s%@SYSDEP_SOURCES@%$SYSDEP_SOURCES%g
6078 cat >> $CONFIG_STATUS <<\EOF
6080 # Split the substitutions into bite-sized pieces for seds with
6081 # small command number limits, like on Digital OSF/1 and HP-UX.
6082 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6083 ac_file=1 # Number of current file.
6084 ac_beg=1 # First line for current file.
6085 ac_end=$ac_max_sed_cmds # Line after last line for current file.
6088 while $ac_more_lines; do
6089 if test $ac_beg -gt 1; then
6090 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6092 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6094 if test ! -s conftest.s$ac_file; then
6096 rm -f conftest.s$ac_file
6098 if test -z "$ac_sed_cmds"; then
6099 ac_sed_cmds="sed -f conftest.s$ac_file"
6101 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6103 ac_file=`expr $ac_file + 1`
6105 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6108 if test -z "$ac_sed_cmds"; then
6113 cat >> $CONFIG_STATUS <<EOF
6115 CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile"}
6117 cat >> $CONFIG_STATUS <<\EOF
6118 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6119 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6121 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6122 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6123 *) ac_file_in="${ac_file}.in" ;;
6126 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6128 # Remove last slash and all that follows it. Not all systems have dirname.
6129 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6130 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6131 # The file is in a subdirectory.
6132 test ! -d "$ac_dir" && mkdir "$ac_dir"
6133 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6134 # A "../" for each directory in $ac_dir_suffix.
6135 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6137 ac_dir_suffix= ac_dots=
6140 case "$ac_given_srcdir" in
6142 if test -z "$ac_dots"; then top_srcdir=.
6143 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6144 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6146 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6147 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6150 case "$ac_given_INSTALL" in
6151 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6152 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6155 echo creating "$ac_file"
6157 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6159 *Makefile*) ac_comsub="1i\\
6160 # $configure_input" ;;
6164 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6166 s%@configure_input@%$configure_input%g
6167 s%@srcdir@%$srcdir%g
6168 s%@top_srcdir@%$top_srcdir%g
6169 s%@INSTALL@%$INSTALL%g
6170 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6174 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6175 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6177 # ac_d sets the value in "#define NAME VALUE" lines.
6178 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6179 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6182 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6183 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6184 ac_uB='\([ ]\)%\1#\2define\3'
6187 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6188 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6189 ac_eB='$%\1#\2define\3'
6193 if test "${CONFIG_HEADERS+set}" != set; then
6195 cat >> $CONFIG_STATUS <<EOF
6196 CONFIG_HEADERS="include/config.h"
6198 cat >> $CONFIG_STATUS <<\EOF
6200 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6201 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6203 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6204 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6205 *) ac_file_in="${ac_file}.in" ;;
6208 echo creating $ac_file
6210 rm -f conftest.frag conftest.in conftest.out
6211 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6212 cat $ac_file_inputs > conftest.in
6216 # Transform confdefs.h into a sed script conftest.vals that substitutes
6217 # the proper values into config.h.in to produce config.h. And first:
6218 # Protect against being on the right side of a sed subst in config.status.
6219 # Protect against being in an unquoted here document in config.status.
6221 cat > conftest.hdr <<\EOF
6224 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6228 sed -n -f conftest.hdr confdefs.h > conftest.vals
6231 # This sed command replaces #undef with comments. This is necessary, for
6232 # example, in the case of _POSIX_SOURCE, which is predefined and required
6233 # on some systems where configure will not decide to define it.
6234 cat >> conftest.vals <<\EOF
6235 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6238 # Break up conftest.vals because some shells have a limit on
6239 # the size of here documents, and old seds have small limits too.
6244 ac_lines=`grep -c . conftest.vals`
6245 # grep -c gives empty output for an empty file on some AIX systems.
6246 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6247 # Write a limited-size here document to conftest.frag.
6248 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6249 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6251 sed -f conftest.frag conftest.in > conftest.out
6253 mv conftest.out conftest.in
6255 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6257 mv conftest.tail conftest.vals
6261 cat >> $CONFIG_STATUS <<\EOF
6262 rm -f conftest.frag conftest.h
6263 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6264 cat conftest.in >> conftest.h
6266 if cmp -s $ac_file conftest.h 2>/dev/null; then
6267 echo "$ac_file is unchanged"
6270 # Remove last slash and all that follows it. Not all systems have dirname.
6271 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6272 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6273 # The file is in a subdirectory.
6274 test ! -d "$ac_dir" && mkdir "$ac_dir"
6277 mv conftest.h $ac_file
6283 cat >> $CONFIG_STATUS <<EOF
6284 ac_sources="java/io/$FILE_DESCRIPTOR java/lang/${PROCESS}Process.java java/lang/nat${PROCESS}Process.cc include/$GCHDR include/$THREADH $SIGNAL_HANDLER"
6285 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"
6288 cat >> $CONFIG_STATUS <<\EOF
6289 srcdir=$ac_given_srcdir
6290 while test -n "$ac_sources"; do
6291 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
6292 set $ac_sources; ac_source=$1; shift; ac_sources=$*
6294 echo "linking $srcdir/$ac_source to $ac_dest"
6296 if test ! -r $srcdir/$ac_source; then
6297 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
6301 # Make relative symlinks.
6302 # Remove last slash and all that follows it. Not all systems have dirname.
6303 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
6304 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
6305 # The dest file is in a subdirectory.
6306 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
6307 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
6308 # A "../" for each directory in $ac_dest_dir_suffix.
6309 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
6311 ac_dest_dir_suffix= ac_dots=
6315 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
6316 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
6319 # Make a symlink if possible; otherwise try a hard link.
6320 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
6321 ln $srcdir/$ac_source $ac_dest; then :
6323 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
6327 cat >> $CONFIG_STATUS <<EOF
6332 with_multisubdir=${with_multisubdir}
6333 ac_configure_args="${multilib_arg} ${ac_configure_args}"
6334 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
6335 libgcj_basedir=${libgcj_basedir}
6340 cat >> $CONFIG_STATUS <<\EOF
6341 test -z "$CONFIG_HEADERS" || echo timestamp > include/stamp-h
6342 if test -n "$CONFIG_FILES"; then
6343 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
6347 chmod +x $CONFIG_STATUS
6348 rm -fr confdefs* $ac_clean_files
6349 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6351 if test "$no_recursion" != yes; then
6353 # Remove --cache-file and --srcdir arguments so they do not pile up.
6354 ac_sub_configure_args=
6356 for ac_arg in $ac_configure_args; do
6357 if test -n "$ac_prev"; then
6362 -cache-file | --cache-file | --cache-fil | --cache-fi \
6363 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
6364 ac_prev=cache_file ;;
6365 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
6366 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
6368 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
6370 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
6372 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
6376 for ac_config_dir in $DIRLTDL; do
6378 # Do not complain, so a configure script can configure whichever
6379 # parts of a large source tree are present.
6380 if test ! -d $srcdir/$ac_config_dir; then
6384 echo configuring in $ac_config_dir
6389 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
6391 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
6399 # A "../" for each directory in /$ac_config_dir.
6400 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
6403 .) # No --srcdir option. We are building in place.
6404 ac_sub_srcdir=$srcdir ;;
6405 /*) # Absolute path.
6406 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
6408 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
6411 # Check for guested configure; otherwise get Cygnus style configure.
6412 if test -f $ac_sub_srcdir/configure; then
6413 ac_sub_configure=$ac_sub_srcdir/configure
6414 elif test -f $ac_sub_srcdir/configure.in; then
6415 ac_sub_configure=$ac_configure
6417 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
6421 # The recursion is here.
6422 if test -n "$ac_sub_configure"; then
6424 # Make the cache file name correct relative to the subdirectory.
6425 case "$cache_file" in
6426 /*) ac_sub_cache_file=$cache_file ;;
6428 ac_sub_cache_file="$ac_dots$cache_file" ;;
6430 case "$ac_given_INSTALL" in
6431 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6432 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6435 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
6436 # The eval makes quoting arguments work.
6437 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
6440 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }