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,
81 bindir='${exec_prefix}/bin'
82 sbindir='${exec_prefix}/sbin'
83 libexecdir='${exec_prefix}/libexec'
84 datadir='${prefix}/share'
85 sysconfdir='${prefix}/etc'
86 sharedstatedir='${prefix}/com'
87 localstatedir='${prefix}/var'
88 libdir='${exec_prefix}/lib'
89 includedir='${prefix}/include'
90 oldincludedir='/usr/include'
91 infodir='${prefix}/info'
92 mandir='${prefix}/man'
94 # Initialize some other variables.
97 SHELL=${CONFIG_SHELL-/bin/sh}
98 # Maximum number of lines to put in a shell here document.
105 # If the previous option needs an argument, assign it.
106 if test -n "$ac_prev"; then
107 eval "$ac_prev=\$ac_option"
113 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
117 # Accept the important Cygnus configure options, so we can diagnose typos.
121 -bindir | --bindir | --bindi | --bind | --bin | --bi)
123 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
124 bindir="$ac_optarg" ;;
126 -build | --build | --buil | --bui | --bu)
128 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
129 build="$ac_optarg" ;;
131 -cache-file | --cache-file | --cache-fil | --cache-fi \
132 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
133 ac_prev=cache_file ;;
134 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
135 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
136 cache_file="$ac_optarg" ;;
138 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
140 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
142 datadir="$ac_optarg" ;;
144 -disable-* | --disable-*)
145 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
146 # Reject names that are not valid shell variable names.
147 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
148 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
150 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
151 eval "enable_${ac_feature}=no" ;;
153 -enable-* | --enable-*)
154 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
155 # Reject names that are not valid shell variable names.
156 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
157 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
159 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
164 eval "enable_${ac_feature}='$ac_optarg'" ;;
166 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
167 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
168 | --exec | --exe | --ex)
169 ac_prev=exec_prefix ;;
170 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
171 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
172 | --exec=* | --exe=* | --ex=*)
173 exec_prefix="$ac_optarg" ;;
175 -gas | --gas | --ga | --g)
176 # Obsolete; use --with-gas.
179 -help | --help | --hel | --he)
180 # Omit some internal or obsolete options to make the list less imposing.
181 # This message is too long to be a string in the A/UX 3.1 sh.
183 Usage: configure [options] [host]
184 Options: [defaults in brackets after descriptions]
186 --cache-file=FILE cache test results in FILE
187 --help print this message
188 --no-create do not create output files
189 --quiet, --silent do not print \`checking...' messages
190 --version print the version of autoconf that created configure
191 Directory and file names:
192 --prefix=PREFIX install architecture-independent files in PREFIX
194 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
196 --bindir=DIR user executables in DIR [EPREFIX/bin]
197 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
198 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
199 --datadir=DIR read-only architecture-independent data in DIR
201 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
202 --sharedstatedir=DIR modifiable architecture-independent data in DIR
204 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
205 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
206 --includedir=DIR C header files in DIR [PREFIX/include]
207 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
208 --infodir=DIR info documentation in DIR [PREFIX/info]
209 --mandir=DIR man documentation in DIR [PREFIX/man]
210 --srcdir=DIR find the sources in DIR [configure dir or ..]
211 --program-prefix=PREFIX prepend PREFIX to installed program names
212 --program-suffix=SUFFIX append SUFFIX to installed program names
213 --program-transform-name=PROGRAM
214 run sed PROGRAM on installed program names
218 --build=BUILD configure for building on BUILD [BUILD=HOST]
219 --host=HOST configure for HOST [guessed]
220 --target=TARGET configure for TARGET [TARGET=HOST]
221 Features and packages:
222 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
223 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
224 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
225 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
226 --x-includes=DIR X include files are in DIR
227 --x-libraries=DIR X library files are in DIR
229 if test -n "$ac_help"; then
230 echo "--enable and --with options recognized:$ac_help"
234 -host | --host | --hos | --ho)
236 -host=* | --host=* | --hos=* | --ho=*)
239 -includedir | --includedir | --includedi | --included | --include \
240 | --includ | --inclu | --incl | --inc)
241 ac_prev=includedir ;;
242 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
243 | --includ=* | --inclu=* | --incl=* | --inc=*)
244 includedir="$ac_optarg" ;;
246 -infodir | --infodir | --infodi | --infod | --info | --inf)
248 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
249 infodir="$ac_optarg" ;;
251 -libdir | --libdir | --libdi | --libd)
253 -libdir=* | --libdir=* | --libdi=* | --libd=*)
254 libdir="$ac_optarg" ;;
256 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
257 | --libexe | --libex | --libe)
258 ac_prev=libexecdir ;;
259 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
260 | --libexe=* | --libex=* | --libe=*)
261 libexecdir="$ac_optarg" ;;
263 -localstatedir | --localstatedir | --localstatedi | --localstated \
264 | --localstate | --localstat | --localsta | --localst \
265 | --locals | --local | --loca | --loc | --lo)
266 ac_prev=localstatedir ;;
267 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
268 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
269 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
270 localstatedir="$ac_optarg" ;;
272 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
274 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
275 mandir="$ac_optarg" ;;
278 # Obsolete; use --without-fp.
281 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
285 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
286 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
289 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
290 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
291 | --oldin | --oldi | --old | --ol | --o)
292 ac_prev=oldincludedir ;;
293 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
294 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
295 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
296 oldincludedir="$ac_optarg" ;;
298 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
300 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
301 prefix="$ac_optarg" ;;
303 -program-prefix | --program-prefix | --program-prefi | --program-pref \
304 | --program-pre | --program-pr | --program-p)
305 ac_prev=program_prefix ;;
306 -program-prefix=* | --program-prefix=* | --program-prefi=* \
307 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
308 program_prefix="$ac_optarg" ;;
310 -program-suffix | --program-suffix | --program-suffi | --program-suff \
311 | --program-suf | --program-su | --program-s)
312 ac_prev=program_suffix ;;
313 -program-suffix=* | --program-suffix=* | --program-suffi=* \
314 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
315 program_suffix="$ac_optarg" ;;
317 -program-transform-name | --program-transform-name \
318 | --program-transform-nam | --program-transform-na \
319 | --program-transform-n | --program-transform- \
320 | --program-transform | --program-transfor \
321 | --program-transfo | --program-transf \
322 | --program-trans | --program-tran \
323 | --progr-tra | --program-tr | --program-t)
324 ac_prev=program_transform_name ;;
325 -program-transform-name=* | --program-transform-name=* \
326 | --program-transform-nam=* | --program-transform-na=* \
327 | --program-transform-n=* | --program-transform-=* \
328 | --program-transform=* | --program-transfor=* \
329 | --program-transfo=* | --program-transf=* \
330 | --program-trans=* | --program-tran=* \
331 | --progr-tra=* | --program-tr=* | --program-t=*)
332 program_transform_name="$ac_optarg" ;;
334 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
335 | -silent | --silent | --silen | --sile | --sil)
338 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
340 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
342 sbindir="$ac_optarg" ;;
344 -sharedstatedir | --sharedstatedir | --sharedstatedi \
345 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
346 | --sharedst | --shareds | --shared | --share | --shar \
348 ac_prev=sharedstatedir ;;
349 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
350 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
351 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
353 sharedstatedir="$ac_optarg" ;;
355 -site | --site | --sit)
357 -site=* | --site=* | --sit=*)
360 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
362 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
363 srcdir="$ac_optarg" ;;
365 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
366 | --syscon | --sysco | --sysc | --sys | --sy)
367 ac_prev=sysconfdir ;;
368 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
369 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
370 sysconfdir="$ac_optarg" ;;
372 -target | --target | --targe | --targ | --tar | --ta | --t)
374 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
375 target="$ac_optarg" ;;
377 -v | -verbose | --verbose | --verbos | --verbo | --verb)
380 -version | --version | --versio | --versi | --vers)
381 echo "configure generated by autoconf version 2.13"
385 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
386 # Reject names that are not valid shell variable names.
387 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
388 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
390 ac_package=`echo $ac_package| sed 's/-/_/g'`
395 eval "with_${ac_package}='$ac_optarg'" ;;
397 -without-* | --without-*)
398 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
399 # Reject names that are not valid shell variable names.
400 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
401 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
403 ac_package=`echo $ac_package| sed 's/-/_/g'`
404 eval "with_${ac_package}=no" ;;
407 # Obsolete; use --with-x.
410 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
411 | --x-incl | --x-inc | --x-in | --x-i)
412 ac_prev=x_includes ;;
413 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
414 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
415 x_includes="$ac_optarg" ;;
417 -x-libraries | --x-libraries | --x-librarie | --x-librari \
418 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
419 ac_prev=x_libraries ;;
420 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
421 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
422 x_libraries="$ac_optarg" ;;
424 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
428 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
429 echo "configure: warning: $ac_option: invalid host type" 1>&2
431 if test "x$nonopt" != xNONE; then
432 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
440 if test -n "$ac_prev"; then
441 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
444 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
446 # File descriptor usage:
449 # 2 errors and warnings
450 # 3 some systems may open it to /dev/tty
451 # 4 used on the Kubota Titan
452 # 6 checking for... messages and results
453 # 5 compiler messages saved in config.log
454 if test "$silent" = yes; then
462 This file contains any messages produced by compilers while
463 running configure, to aid debugging if configure makes a mistake.
466 # Strip out --no-create and --no-recursion so they do not pile up.
467 # Also quote any args containing shell metacharacters.
472 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
473 | --no-cr | --no-c) ;;
474 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
475 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
476 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
477 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
478 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
483 # Only set these to C if already set. These must not be set unconditionally
484 # because not all systems understand e.g. LANG=C (notably SCO).
485 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
486 # Non-C LC_CTYPE values break the ctype check.
487 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
488 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
489 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
490 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
492 # confdefs.h avoids OS command line length limits that DEFS can exceed.
493 rm -rf conftest* confdefs.h
494 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
497 # A filename unique to this package, relative to the directory that
498 # configure is in, which we can look for to find out if srcdir is correct.
499 ac_unique_file=java/lang/System.java
501 # Find the source files, if location was not specified.
502 if test -z "$srcdir"; then
503 ac_srcdir_defaulted=yes
504 # Try the directory containing this script, then its parent.
506 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
507 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
509 if test ! -r $srcdir/$ac_unique_file; then
513 ac_srcdir_defaulted=no
515 if test ! -r $srcdir/$ac_unique_file; then
516 if test "$ac_srcdir_defaulted" = yes; then
517 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
519 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
522 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
524 # Prefer explicitly selected file to automatically selected ones.
525 if test -z "$CONFIG_SITE"; then
526 if test "x$prefix" != xNONE; then
527 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
529 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
532 for ac_site_file in $CONFIG_SITE; do
533 if test -r "$ac_site_file"; then
534 echo "loading site script $ac_site_file"
539 if test -r "$cache_file"; then
540 echo "loading cache $cache_file"
543 echo "creating cache $cache_file"
548 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
549 ac_cpp='$CPP $CPPFLAGS'
550 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
551 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
552 cross_compiling=$ac_cv_prog_cc_cross
556 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
557 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
558 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
565 ac_n= ac_c='\c' ac_t=
571 for ac_dir in .. $srcdir/..; do
572 if test -f $ac_dir/install-sh; then
574 ac_install_sh="$ac_aux_dir/install-sh -c"
576 elif test -f $ac_dir/install.sh; then
578 ac_install_sh="$ac_aux_dir/install.sh -c"
582 if test -z "$ac_aux_dir"; then
583 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
585 ac_config_guess=$ac_aux_dir/config.guess
586 ac_config_sub=$ac_aux_dir/config.sub
587 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
591 # Do some error checking and defaulting for the host and target type.
593 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
596 # 1. You are not allowed to specify --host, --target, and nonopt at the
598 # 2. Host defaults to nonopt.
599 # 3. If nonopt is not specified, then host defaults to the current host,
600 # as determined by config.guess.
601 # 4. Target and build default to nonopt.
602 # 5. If nonopt is not specified, then target and build default to host.
604 # The aliases save the names the user supplied, while $host etc.
605 # will get canonicalized.
606 case $host---$target---$nonopt in
607 NONE---*---* | *---NONE---* | *---*---NONE) ;;
608 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
612 # Make sure we can run config.sub.
613 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
614 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
617 echo $ac_n "checking host system type""... $ac_c" 1>&6
618 echo "configure:619: checking host system type" >&5
621 case "$host_alias" in
625 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
626 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
628 *) host_alias=$nonopt ;;
632 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
633 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
634 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
635 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
636 echo "$ac_t""$host" 1>&6
638 echo $ac_n "checking target system type""... $ac_c" 1>&6
639 echo "configure:640: checking target system type" >&5
642 case "$target_alias" in
645 NONE) target_alias=$host_alias ;;
646 *) target_alias=$nonopt ;;
650 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
651 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
652 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
653 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
654 echo "$ac_t""$target" 1>&6
656 echo $ac_n "checking build system type""... $ac_c" 1>&6
657 echo "configure:658: checking build system type" >&5
660 case "$build_alias" in
663 NONE) build_alias=$host_alias ;;
664 *) build_alias=$nonopt ;;
668 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
669 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
670 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
671 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
672 echo "$ac_t""$build" 1>&6
674 test "$host_alias" != "$target_alias" &&
675 test "$program_prefix$program_suffix$program_transform_name" = \
677 program_prefix=${target_alias}-
680 # Check whether --with-target-subdir or --without-target-subdir was given.
681 if test "${with_target_subdir+set}" = set; then
682 withval="$with_target_subdir"
686 # Check whether --with-cross-host or --without-cross-host was given.
687 if test "${with_cross_host+set}" = set; then
688 withval="$with_cross_host"
693 # Find a good install program. We prefer a C program (faster),
694 # so one script is as good as another. But avoid the broken or
695 # incompatible versions:
696 # SysV /etc/install, /usr/sbin/install
697 # SunOS /usr/etc/install
700 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
701 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
702 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
703 # ./install, which can be erroneously created by make from ./install.sh.
704 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
705 echo "configure:706: checking for a BSD compatible install" >&5
706 if test -z "$INSTALL"; then
707 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
708 echo $ac_n "(cached) $ac_c" 1>&6
710 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
711 for ac_dir in $PATH; do
712 # Account for people who put trailing slashes in PATH elements.
714 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
716 # OSF1 and SCO ODT 3.0 have their own names for install.
717 # Don't use installbsd from OSF since it installs stuff as root
719 for ac_prog in ginstall scoinst install; do
720 if test -f $ac_dir/$ac_prog; then
721 if test $ac_prog = install &&
722 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
723 # AIX install. It has an incompatible calling convention.
726 ac_cv_path_install="$ac_dir/$ac_prog -c"
737 if test "${ac_cv_path_install+set}" = set; then
738 INSTALL="$ac_cv_path_install"
740 # As a last resort, use the slow shell script. We don't cache a
741 # path for INSTALL within a source directory, because that will
742 # break other packages using the cache if that directory is
743 # removed, or if the path is relative.
744 INSTALL="$ac_install_sh"
747 echo "$ac_t""$INSTALL" 1>&6
749 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
750 # It thinks the first close brace ends the variable substitution.
751 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
753 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
755 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
757 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
758 echo "configure:759: checking whether build environment is sane" >&5
761 echo timestamp > conftestfile
762 # Do `set' in a subshell so we don't clobber the current shell's
763 # arguments. Must try -L first in case configure is actually a
764 # symlink; some systems play weird games with the mod time of symlinks
765 # (eg FreeBSD returns the mod time of the symlink's containing
768 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
769 if test "$*" = "X"; then
771 set X `ls -t $srcdir/configure conftestfile`
773 if test "$*" != "X $srcdir/configure conftestfile" \
774 && test "$*" != "X conftestfile $srcdir/configure"; then
776 # If neither matched, then we have a broken ls. This can happen
777 # if, for instance, CONFIG_SHELL is bash and it inherits a
778 # broken ls alias from the environment. This has actually
779 # happened. Such a system could not be considered "sane".
780 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
781 alias in your environment" 1>&2; exit 1; }
784 test "$2" = conftestfile
790 { echo "configure: error: newly created file is older than distributed files!
791 Check your system clock" 1>&2; exit 1; }
794 echo "$ac_t""yes" 1>&6
795 if test "$program_transform_name" = s,x,x,; then
796 program_transform_name=
798 # Double any \ or $. echo might interpret backslashes.
799 cat <<\EOF_SED > conftestsed
800 s,\\,\\\\,g; s,\$,$$,g
802 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
805 test "$program_prefix" != NONE &&
806 program_transform_name="s,^,${program_prefix},; $program_transform_name"
807 # Use a double $ so make ignores it.
808 test "$program_suffix" != NONE &&
809 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
811 # sed with no file args requires a program.
812 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
814 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
815 echo "configure:816: checking whether ${MAKE-make} sets \${MAKE}" >&5
816 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
817 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
818 echo $ac_n "(cached) $ac_c" 1>&6
820 cat > conftestmake <<\EOF
822 @echo 'ac_maketemp="${MAKE}"'
824 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
825 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
826 if test -n "$ac_maketemp"; then
827 eval ac_cv_prog_make_${ac_make}_set=yes
829 eval ac_cv_prog_make_${ac_make}_set=no
833 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
834 echo "$ac_t""yes" 1>&6
837 echo "$ac_t""no" 1>&6
838 SET_MAKE="MAKE=${MAKE-make}"
841 if test $host != $build; then
842 ac_tool_prefix=${host_alias}-
847 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
848 echo "configure:849: checking for Cygwin environment" >&5
849 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
850 echo $ac_n "(cached) $ac_c" 1>&6
852 cat > conftest.$ac_ext <<EOF
853 #line 854 "configure"
854 #include "confdefs.h"
859 #define __CYGWIN__ __CYGWIN32__
864 if { (eval echo configure:865: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
868 echo "configure: failed program was:" >&5
869 cat conftest.$ac_ext >&5
877 echo "$ac_t""$ac_cv_cygwin" 1>&6
879 test "$ac_cv_cygwin" = yes && CYGWIN=yes
880 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
881 echo "configure:882: checking for mingw32 environment" >&5
882 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
883 echo $ac_n "(cached) $ac_c" 1>&6
885 cat > conftest.$ac_ext <<EOF
886 #line 887 "configure"
887 #include "confdefs.h"
893 if { (eval echo configure:894: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
897 echo "configure: failed program was:" >&5
898 cat conftest.$ac_ext >&5
906 echo "$ac_t""$ac_cv_mingw32" 1>&6
908 test "$ac_cv_mingw32" = yes && MINGW32=yes
910 # Check whether --enable-multilib or --disable-multilib was given.
911 if test "${enable_multilib+set}" = set; then
912 enableval="$enable_multilib"
913 case "${enableval}" in
916 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
923 if test "${srcdir}" = "."; then
924 if test "${with_target_subdir}" != "."; then
925 libgcj_basedir="${srcdir}/${with_multisrctop}../."
927 libgcj_basedir="${srcdir}/${with_multisrctop}."
930 libgcj_basedir="${srcdir}/."
935 # Make sure we can run config.sub.
936 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
937 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
940 echo $ac_n "checking host system type""... $ac_c" 1>&6
941 echo "configure:942: checking host system type" >&5
944 case "$host_alias" in
948 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
949 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
951 *) host_alias=$nonopt ;;
955 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
956 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
957 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
958 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
959 echo "$ac_t""$host" 1>&6
965 # Extract the first word of "gcc", so it can be a program name with args.
966 set dummy gcc; ac_word=$2
967 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
968 echo "configure:969: checking for $ac_word" >&5
969 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
970 echo $ac_n "(cached) $ac_c" 1>&6
972 if test -n "$CC"; then
973 ac_cv_prog_CC="$CC" # Let the user override the test.
975 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
977 for ac_dir in $ac_dummy; do
978 test -z "$ac_dir" && ac_dir=.
979 if test -f $ac_dir/$ac_word; then
988 if test -n "$CC"; then
989 echo "$ac_t""$CC" 1>&6
991 echo "$ac_t""no" 1>&6
994 if test -z "$CC"; then
995 # Extract the first word of "cc", so it can be a program name with args.
996 set dummy cc; ac_word=$2
997 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
998 echo "configure:999: checking for $ac_word" >&5
999 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1000 echo $ac_n "(cached) $ac_c" 1>&6
1002 if test -n "$CC"; then
1003 ac_cv_prog_CC="$CC" # Let the user override the test.
1005 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1008 for ac_dir in $ac_dummy; do
1009 test -z "$ac_dir" && ac_dir=.
1010 if test -f $ac_dir/$ac_word; then
1011 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1012 ac_prog_rejected=yes
1020 if test $ac_prog_rejected = yes; then
1021 # We found a bogon in the path, so make sure we never use it.
1022 set dummy $ac_cv_prog_CC
1024 if test $# -gt 0; then
1025 # We chose a different compiler from the bogus one.
1026 # However, it has the same basename, so the bogon will be chosen
1027 # first if we set CC to just the basename; use the full file name.
1029 set dummy "$ac_dir/$ac_word" "$@"
1037 if test -n "$CC"; then
1038 echo "$ac_t""$CC" 1>&6
1040 echo "$ac_t""no" 1>&6
1043 if test -z "$CC"; then
1044 case "`uname -s`" in
1046 # Extract the first word of "cl", so it can be a program name with args.
1047 set dummy cl; ac_word=$2
1048 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1049 echo "configure:1050: checking for $ac_word" >&5
1050 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1051 echo $ac_n "(cached) $ac_c" 1>&6
1053 if test -n "$CC"; then
1054 ac_cv_prog_CC="$CC" # Let the user override the test.
1056 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1058 for ac_dir in $ac_dummy; do
1059 test -z "$ac_dir" && ac_dir=.
1060 if test -f $ac_dir/$ac_word; then
1069 if test -n "$CC"; then
1070 echo "$ac_t""$CC" 1>&6
1072 echo "$ac_t""no" 1>&6
1077 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1081 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1082 echo "configure:1083: checking whether we are using GNU C" >&5
1083 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1084 echo $ac_n "(cached) $ac_c" 1>&6
1086 cat > conftest.c <<EOF
1091 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1098 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1100 if test $ac_cv_prog_gcc = yes; then
1106 ac_test_CFLAGS="${CFLAGS+set}"
1107 ac_save_CFLAGS="$CFLAGS"
1109 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1110 echo "configure:1111: checking whether ${CC-cc} accepts -g" >&5
1111 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1112 echo $ac_n "(cached) $ac_c" 1>&6
1114 echo 'void f(){}' > conftest.c
1115 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1124 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1125 if test "$ac_test_CFLAGS" = set; then
1126 CFLAGS="$ac_save_CFLAGS"
1127 elif test $ac_cv_prog_cc_g = yes; then
1128 if test "$GCC" = yes; then
1134 if test "$GCC" = yes; then
1141 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1143 # Extract the first word of "$ac_prog", so it can be a program name with args.
1144 set dummy $ac_prog; ac_word=$2
1145 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1146 echo "configure:1147: checking for $ac_word" >&5
1147 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1148 echo $ac_n "(cached) $ac_c" 1>&6
1150 if test -n "$CXX"; then
1151 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1153 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1155 for ac_dir in $ac_dummy; do
1156 test -z "$ac_dir" && ac_dir=.
1157 if test -f $ac_dir/$ac_word; then
1158 ac_cv_prog_CXX="$ac_prog"
1165 CXX="$ac_cv_prog_CXX"
1166 if test -n "$CXX"; then
1167 echo "$ac_t""$CXX" 1>&6
1169 echo "$ac_t""no" 1>&6
1172 test -n "$CXX" && break
1174 test -n "$CXX" || CXX="gcc"
1178 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1179 echo "configure:1180: checking whether we are using GNU C++" >&5
1180 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1181 echo $ac_n "(cached) $ac_c" 1>&6
1183 cat > conftest.C <<EOF
1188 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1195 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1197 if test $ac_cv_prog_gxx = yes; then
1203 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1204 ac_save_CXXFLAGS="$CXXFLAGS"
1206 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1207 echo "configure:1208: checking whether ${CXX-g++} accepts -g" >&5
1208 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1209 echo $ac_n "(cached) $ac_c" 1>&6
1211 echo 'void f(){}' > conftest.cc
1212 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1213 ac_cv_prog_cxx_g=yes
1221 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1222 if test "$ac_test_CXXFLAGS" = set; then
1223 CXXFLAGS="$ac_save_CXXFLAGS"
1224 elif test $ac_cv_prog_cxx_g = yes; then
1225 if test "$GXX" = yes; then
1231 if test "$GXX" = yes; then
1245 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1246 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1248 cat >> confdefs.h <<EOF
1249 #define PACKAGE "$PACKAGE"
1252 cat >> confdefs.h <<EOF
1253 #define VERSION "$VERSION"
1258 missing_dir=`cd $ac_aux_dir && pwd`
1259 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1260 echo "configure:1261: checking for working aclocal" >&5
1261 # Run test in a subshell; some versions of sh will print an error if
1262 # an executable is not found, even if stderr is redirected.
1263 # Redirect stdin to placate older versions of autoconf. Sigh.
1264 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1266 echo "$ac_t""found" 1>&6
1268 ACLOCAL="$missing_dir/missing aclocal"
1269 echo "$ac_t""missing" 1>&6
1272 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1273 echo "configure:1274: checking for working autoconf" >&5
1274 # Run test in a subshell; some versions of sh will print an error if
1275 # an executable is not found, even if stderr is redirected.
1276 # Redirect stdin to placate older versions of autoconf. Sigh.
1277 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1279 echo "$ac_t""found" 1>&6
1281 AUTOCONF="$missing_dir/missing autoconf"
1282 echo "$ac_t""missing" 1>&6
1285 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1286 echo "configure:1287: checking for working automake" >&5
1287 # Run test in a subshell; some versions of sh will print an error if
1288 # an executable is not found, even if stderr is redirected.
1289 # Redirect stdin to placate older versions of autoconf. Sigh.
1290 if (automake --version) < /dev/null > /dev/null 2>&1; then
1292 echo "$ac_t""found" 1>&6
1294 AUTOMAKE="$missing_dir/missing automake"
1295 echo "$ac_t""missing" 1>&6
1298 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1299 echo "configure:1300: checking for working autoheader" >&5
1300 # Run test in a subshell; some versions of sh will print an error if
1301 # an executable is not found, even if stderr is redirected.
1302 # Redirect stdin to placate older versions of autoconf. Sigh.
1303 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1304 AUTOHEADER=autoheader
1305 echo "$ac_t""found" 1>&6
1307 AUTOHEADER="$missing_dir/missing autoheader"
1308 echo "$ac_t""missing" 1>&6
1311 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1312 echo "configure:1313: checking for working makeinfo" >&5
1313 # Run test in a subshell; some versions of sh will print an error if
1314 # an executable is not found, even if stderr is redirected.
1315 # Redirect stdin to placate older versions of autoconf. Sigh.
1316 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1318 echo "$ac_t""found" 1>&6
1320 MAKEINFO="$missing_dir/missing makeinfo"
1321 echo "$ac_t""missing" 1>&6
1326 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we dont
1327 # run it explicitly here, it will be run implicitly before
1328 # LIBGCJ_CONFIGURE, which doesn't work because that means that it will
1329 # be run before AC_CANONICAL_HOST.
1330 echo $ac_n "checking build system type""... $ac_c" 1>&6
1331 echo "configure:1332: checking build system type" >&5
1334 case "$build_alias" in
1337 NONE) build_alias=$host_alias ;;
1338 *) build_alias=$nonopt ;;
1342 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1343 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1344 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1345 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1346 echo "$ac_t""$build" 1>&6
1349 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1350 set dummy ${ac_tool_prefix}as; ac_word=$2
1351 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1352 echo "configure:1353: checking for $ac_word" >&5
1353 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1354 echo $ac_n "(cached) $ac_c" 1>&6
1356 if test -n "$AS"; then
1357 ac_cv_prog_AS="$AS" # Let the user override the test.
1359 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1361 for ac_dir in $ac_dummy; do
1362 test -z "$ac_dir" && ac_dir=.
1363 if test -f $ac_dir/$ac_word; then
1364 ac_cv_prog_AS="${ac_tool_prefix}as"
1369 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1373 if test -n "$AS"; then
1374 echo "$ac_t""$AS" 1>&6
1376 echo "$ac_t""no" 1>&6
1381 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1382 set dummy ${ac_tool_prefix}ar; ac_word=$2
1383 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1384 echo "configure:1385: checking for $ac_word" >&5
1385 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1386 echo $ac_n "(cached) $ac_c" 1>&6
1388 if test -n "$AR"; then
1389 ac_cv_prog_AR="$AR" # Let the user override the test.
1391 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1393 for ac_dir in $ac_dummy; do
1394 test -z "$ac_dir" && ac_dir=.
1395 if test -f $ac_dir/$ac_word; then
1396 ac_cv_prog_AR="${ac_tool_prefix}ar"
1401 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1405 if test -n "$AR"; then
1406 echo "$ac_t""$AR" 1>&6
1408 echo "$ac_t""no" 1>&6
1413 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1414 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1415 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1416 echo "configure:1417: checking for $ac_word" >&5
1417 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1418 echo $ac_n "(cached) $ac_c" 1>&6
1420 if test -n "$RANLIB"; then
1421 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1423 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1425 for ac_dir in $ac_dummy; do
1426 test -z "$ac_dir" && ac_dir=.
1427 if test -f $ac_dir/$ac_word; then
1428 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1435 RANLIB="$ac_cv_prog_RANLIB"
1436 if test -n "$RANLIB"; then
1437 echo "$ac_t""$RANLIB" 1>&6
1439 echo "$ac_t""no" 1>&6
1443 if test -z "$ac_cv_prog_RANLIB"; then
1444 if test -n "$ac_tool_prefix"; then
1445 # Extract the first word of "ranlib", so it can be a program name with args.
1446 set dummy ranlib; ac_word=$2
1447 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1448 echo "configure:1449: checking for $ac_word" >&5
1449 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1450 echo $ac_n "(cached) $ac_c" 1>&6
1452 if test -n "$RANLIB"; then
1453 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1455 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1457 for ac_dir in $ac_dummy; do
1458 test -z "$ac_dir" && ac_dir=.
1459 if test -f $ac_dir/$ac_word; then
1460 ac_cv_prog_RANLIB="ranlib"
1465 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1468 RANLIB="$ac_cv_prog_RANLIB"
1469 if test -n "$RANLIB"; then
1470 echo "$ac_t""$RANLIB" 1>&6
1472 echo "$ac_t""no" 1>&6
1481 # Find a good install program. We prefer a C program (faster),
1482 # so one script is as good as another. But avoid the broken or
1483 # incompatible versions:
1484 # SysV /etc/install, /usr/sbin/install
1485 # SunOS /usr/etc/install
1486 # IRIX /sbin/install
1488 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1489 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1490 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1491 # ./install, which can be erroneously created by make from ./install.sh.
1492 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1493 echo "configure:1494: checking for a BSD compatible install" >&5
1494 if test -z "$INSTALL"; then
1495 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1496 echo $ac_n "(cached) $ac_c" 1>&6
1498 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1499 for ac_dir in $PATH; do
1500 # Account for people who put trailing slashes in PATH elements.
1502 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1504 # OSF1 and SCO ODT 3.0 have their own names for install.
1505 # Don't use installbsd from OSF since it installs stuff as root
1507 for ac_prog in ginstall scoinst install; do
1508 if test -f $ac_dir/$ac_prog; then
1509 if test $ac_prog = install &&
1510 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1511 # AIX install. It has an incompatible calling convention.
1514 ac_cv_path_install="$ac_dir/$ac_prog -c"
1525 if test "${ac_cv_path_install+set}" = set; then
1526 INSTALL="$ac_cv_path_install"
1528 # As a last resort, use the slow shell script. We don't cache a
1529 # path for INSTALL within a source directory, because that will
1530 # break other packages using the cache if that directory is
1531 # removed, or if the path is relative.
1532 INSTALL="$ac_install_sh"
1535 echo "$ac_t""$INSTALL" 1>&6
1537 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1538 # It thinks the first close brace ends the variable substitution.
1539 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1541 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1543 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1546 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1547 echo "configure:1548: checking whether to enable maintainer-specific portions of Makefiles" >&5
1548 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1549 if test "${enable_maintainer_mode+set}" = set; then
1550 enableval="$enable_maintainer_mode"
1551 USE_MAINTAINER_MODE=$enableval
1553 USE_MAINTAINER_MODE=no
1556 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1559 if test $USE_MAINTAINER_MODE = yes; then
1560 MAINTAINER_MODE_TRUE=
1561 MAINTAINER_MODE_FALSE='#'
1563 MAINTAINER_MODE_TRUE='#'
1564 MAINTAINER_MODE_FALSE=
1566 MAINT=$MAINTAINER_MODE_TRUE
1570 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1571 # at least currently, we never actually build a program, so we never
1572 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1573 # fails, because we are probably configuring with a cross compiler
1574 # which cant create executables. So we include AC_EXEEXT to keep
1575 # automake happy, but we dont execute it, since we dont care about
1580 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1581 echo "configure:1582: checking for executable suffix" >&5
1582 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1583 echo $ac_n "(cached) $ac_c" 1>&6
1585 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1589 echo 'int main () { return 0; }' > conftest.$ac_ext
1591 if { (eval echo configure:1592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1592 for file in conftest.*; do
1594 *.c | *.o | *.obj) ;;
1595 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1599 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1602 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1607 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1608 echo "$ac_t""${ac_cv_exeext}" 1>&6
1613 # configure.host sets the following important variables
1614 # libgcj_cflags - host specific C compiler flags
1615 # libgcj_cxxflags - host specific C++ compiler flags
1616 # libgcj_javaflags - host specific Java compiler flags
1622 . ${libgcj_basedir}/configure.host
1624 case ${libgcj_basedir} in
1625 /* | A-Za-z:/\\*) libgcj_flagbasedir=${libgcj_basedir} ;;
1626 *) libgcj_flagbasedir='$(top_builddir)/'${libgcj_basedir} ;;
1629 LIBGCJ_CFLAGS="${libgcj_cflags}"
1630 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
1631 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
1641 # Only use libltdl for native builds.
1642 if test -z "${with_cross_host}"; then
1643 case "$enable_ltdl_convenience" in
1644 no) { echo "configure: error: this package needs a convenience libltdl" 1>&2; exit 1; } ;;
1645 "") enable_ltdl_convenience=yes
1646 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
1648 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
1649 INCLTDL='-I${top_srcdir}/''libltdl'
1653 cat >> confdefs.h <<\EOF
1657 # Sigh. Libtool's macro doesn't do the right thing.
1658 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
1663 # Check whether --enable-shared or --disable-shared was given.
1664 if test "${enable_shared+set}" = set; then
1665 enableval="$enable_shared"
1666 p=${PACKAGE-default}
1667 case "$enableval" in
1668 yes) enable_shared=yes ;;
1669 no) enable_shared=no ;;
1672 # Look at the argument we got. We use all the common list separators.
1673 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1674 for pkg in $enableval; do
1675 if test "X$pkg" = "X$p"; then
1686 # Check whether --enable-static or --disable-static was given.
1687 if test "${enable_static+set}" = set; then
1688 enableval="$enable_static"
1689 p=${PACKAGE-default}
1690 case "$enableval" in
1691 yes) enable_static=yes ;;
1692 no) enable_static=no ;;
1695 # Look at the argument we got. We use all the common list separators.
1696 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1697 for pkg in $enableval; do
1698 if test "X$pkg" = "X$p"; then
1709 # Check whether --enable-fast-install or --disable-fast-install was given.
1710 if test "${enable_fast_install+set}" = set; then
1711 enableval="$enable_fast_install"
1712 p=${PACKAGE-default}
1713 case "$enableval" in
1714 yes) enable_fast_install=yes ;;
1715 no) enable_fast_install=no ;;
1717 enable_fast_install=no
1718 # Look at the argument we got. We use all the common list separators.
1719 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1720 for pkg in $enableval; do
1721 if test "X$pkg" = "X$p"; then
1722 enable_fast_install=yes
1729 enable_fast_install=yes
1732 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1733 if test "${with_gnu_ld+set}" = set; then
1734 withval="$with_gnu_ld"
1735 test "$withval" = no || with_gnu_ld=yes
1741 if test "$ac_cv_prog_gcc" = yes; then
1742 # Check if gcc -print-prog-name=ld gives a path.
1743 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1744 echo "configure:1745: checking for ld used by GCC" >&5
1747 # gcc leaves a trailing carriage return which upsets mingw
1748 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1750 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1753 # Accept absolute paths.
1754 [\\/]* | [A-Za-z]:[\\/]*)
1755 re_direlt='/[^/][^/]*/\.\./'
1756 # Canonicalize the path of ld
1757 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1758 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1759 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1761 test -z "$LD" && LD="$ac_prog"
1764 # If it fails, then pretend we aren't using GCC.
1768 # If it is relative, then search for the first ld in PATH.
1772 elif test "$with_gnu_ld" = yes; then
1773 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1774 echo "configure:1775: checking for GNU ld" >&5
1776 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1777 echo "configure:1778: checking for non-GNU ld" >&5
1779 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1780 echo $ac_n "(cached) $ac_c" 1>&6
1782 if test -z "$LD"; then
1783 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1784 for ac_dir in $PATH; do
1785 test -z "$ac_dir" && ac_dir=.
1786 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1787 ac_cv_path_LD="$ac_dir/$ac_prog"
1788 # Check to see if the program is GNU ld. I'd rather use --version,
1789 # but apparently some GNU ld's only accept -v.
1790 # Break only if it was the GNU/non-GNU ld that we prefer.
1791 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1792 test "$with_gnu_ld" != no && break
1794 test "$with_gnu_ld" != yes && break
1800 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1805 if test -n "$LD"; then
1806 echo "$ac_t""$LD" 1>&6
1808 echo "$ac_t""no" 1>&6
1810 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1811 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1812 echo "configure:1813: checking if the linker ($LD) is GNU ld" >&5
1813 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1814 echo $ac_n "(cached) $ac_c" 1>&6
1816 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1817 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1818 ac_cv_prog_gnu_ld=yes
1820 ac_cv_prog_gnu_ld=no
1824 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1825 with_gnu_ld=$ac_cv_prog_gnu_ld
1828 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1829 echo "configure:1830: checking for $LD option to reload object files" >&5
1830 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1831 echo $ac_n "(cached) $ac_c" 1>&6
1833 lt_cv_ld_reload_flag='-r'
1836 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1837 reload_flag=$lt_cv_ld_reload_flag
1838 test -n "$reload_flag" && reload_flag=" $reload_flag"
1840 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1841 echo "configure:1842: checking for BSD-compatible nm" >&5
1842 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1843 echo $ac_n "(cached) $ac_c" 1>&6
1845 if test -n "$NM"; then
1846 # Let the user override the test.
1849 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1850 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1851 test -z "$ac_dir" && ac_dir=.
1852 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1853 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1854 # Check to see if the nm accepts a BSD-compat flag.
1855 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1856 # nm: unknown option "B" ignored
1857 # Tru64's nm complains that /dev/null is an invalid object file
1858 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1859 ac_cv_path_NM="$tmp_nm -B"
1861 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1862 ac_cv_path_NM="$tmp_nm -p"
1865 ac_cv_path_NM=${ac_cv_path_NM="$tmp_nm"} # keep the first match, but
1866 continue # so that we can try to find one that supports BSD flags
1871 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1876 echo "$ac_t""$NM" 1>&6
1878 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1879 echo "configure:1880: checking whether ln -s works" >&5
1880 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1881 echo $ac_n "(cached) $ac_c" 1>&6
1884 if ln -s X conftestdata 2>/dev/null
1887 ac_cv_prog_LN_S="ln -s"
1892 LN_S="$ac_cv_prog_LN_S"
1893 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1894 echo "$ac_t""yes" 1>&6
1896 echo "$ac_t""no" 1>&6
1899 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1900 echo "configure:1901: checking how to recognise dependant libraries" >&5
1901 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1902 echo $ac_n "(cached) $ac_c" 1>&6
1904 lt_cv_file_magic_cmd='$MAGIC_CMD'
1905 lt_cv_file_magic_test_file=
1906 lt_cv_deplibs_check_method='unknown'
1907 # Need to set the preceding variable on all platforms that support
1908 # interlibrary dependencies.
1909 # 'none' -- dependencies not supported.
1910 # `unknown' -- same as none, but documents that we really don't know.
1911 # 'pass_all' -- all dependencies passed with no checks.
1912 # 'test_compile' -- check by making test program.
1913 # 'file_magic [regex]' -- check by looking for files in library path
1914 # which responds to the $file_magic_cmd with a given egrep regex.
1915 # If you have `file' or equivalent on your system and you're not sure
1916 # whether `pass_all' will *always* work, you probably want this one.
1920 lt_cv_deplibs_check_method=pass_all
1924 lt_cv_deplibs_check_method=pass_all
1928 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1929 lt_cv_file_magic_cmd='/usr/bin/file -L'
1930 lt_cv_file_magic_test_file=/shlib/libc.so
1933 cygwin* | mingw* |pw32*)
1934 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1935 lt_cv_file_magic_cmd='$OBJDUMP -f'
1939 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1942 # Not sure whether the presence of OpenBSD here was a mistake.
1943 # Let's accept both of them until this is cleared up.
1944 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1945 lt_cv_file_magic_cmd=/usr/bin/file
1946 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1950 lt_cv_deplibs_check_method=pass_all
1955 lt_cv_deplibs_check_method=pass_all
1959 # TODO: Does this work for hpux-11 too?
1960 lt_cv_deplibs_check_method='file_magic (s0-90-90-9|PA-RISC0-9.0-9) shared library'
1961 lt_cv_file_magic_cmd=/usr/bin/file
1962 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1968 # this will be overridden with pass_all, but let us keep it just in case
1969 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1973 *-32|*"-32 ") libmagic=32-bit;;
1974 *-n32|*"-n32 ") libmagic=N32;;
1975 *-64|*"-64 ") libmagic=64-bit;;
1976 *) libmagic=never-match;;
1978 # this will be overridden with pass_all, but let us keep it just in case
1979 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1982 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1983 lt_cv_deplibs_check_method=pass_all
1986 # This must be Linux ELF.
1989 alpha* | i*86 | powerpc* | sparc* | ia64* )
1990 lt_cv_deplibs_check_method=pass_all ;;
1992 # glibc up to 2.1.1 does not perform some relocations on ARM
1993 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1995 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1999 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then :
2001 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
2002 lt_cv_file_magic_cmd='/usr/bin/file -L'
2003 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2007 osf3* | osf4* | osf5*)
2008 # this will be overridden with pass_all, but let us keep it just in case
2009 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2010 lt_cv_file_magic_test_file=/shlib/libc.so
2011 lt_cv_deplibs_check_method=pass_all
2015 lt_cv_deplibs_check_method=pass_all
2019 lt_cv_deplibs_check_method=pass_all
2020 lt_cv_file_magic_test_file=/lib/libc.so
2023 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2024 case "$host_vendor" in
2026 lt_cv_deplibs_check_method=pass_all
2029 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]'
2030 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2038 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2039 file_magic_cmd=$lt_cv_file_magic_cmd
2040 deplibs_check_method=$lt_cv_deplibs_check_method
2042 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2043 echo "configure:2044: checking for object suffix" >&5
2044 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2045 echo $ac_n "(cached) $ac_c" 1>&6
2048 echo 'int i = 1;' > conftest.$ac_ext
2049 if { (eval echo configure:2050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2050 for ac_file in conftest.*; do
2053 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2057 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2062 echo "$ac_t""$ac_cv_objext" 1>&6
2063 OBJEXT=$ac_cv_objext
2064 ac_objext=$ac_cv_objext
2066 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2068 # Only perform the check for file, if the check method requires it
2069 case "$deplibs_check_method" in
2071 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2072 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2073 echo "configure:2074: checking for ${ac_tool_prefix}file" >&5
2074 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2075 echo $ac_n "(cached) $ac_c" 1>&6
2077 case "$MAGIC_CMD" in
2079 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2082 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2085 ac_save_MAGIC_CMD="$MAGIC_CMD"
2086 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2087 ac_dummy="/usr/bin:$PATH"
2088 for ac_dir in $ac_dummy; do
2089 test -z "$ac_dir" && ac_dir=.
2090 if test -f $ac_dir/${ac_tool_prefix}file; then
2091 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2092 if test -n "$file_magic_test_file"; then
2093 case "$deplibs_check_method" in
2095 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2096 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2097 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2098 egrep "$file_magic_regex" > /dev/null; then
2103 *** Warning: the command libtool uses to detect shared libraries,
2104 *** $file_magic_cmd, produces output that libtool cannot recognize.
2105 *** The result is that libtool may fail to recognize shared libraries
2106 *** as such. This will affect the creation of libtool libraries that
2107 *** depend on shared libraries, but programs linked with such libtool
2108 *** libraries will work regardless of this problem. Nevertheless, you
2109 *** may want to report the problem to your system manager and/or to
2110 *** bug-libtool@gnu.org
2120 MAGIC_CMD="$ac_save_MAGIC_CMD"
2125 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2126 if test -n "$MAGIC_CMD"; then
2127 echo "$ac_t""$MAGIC_CMD" 1>&6
2129 echo "$ac_t""no" 1>&6
2132 if test -z "$lt_cv_path_MAGIC_CMD"; then
2133 if test -n "$ac_tool_prefix"; then
2134 echo $ac_n "checking for file""... $ac_c" 1>&6
2135 echo "configure:2136: checking for file" >&5
2136 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2137 echo $ac_n "(cached) $ac_c" 1>&6
2139 case "$MAGIC_CMD" in
2141 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2144 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2147 ac_save_MAGIC_CMD="$MAGIC_CMD"
2148 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2149 ac_dummy="/usr/bin:$PATH"
2150 for ac_dir in $ac_dummy; do
2151 test -z "$ac_dir" && ac_dir=.
2152 if test -f $ac_dir/file; then
2153 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2154 if test -n "$file_magic_test_file"; then
2155 case "$deplibs_check_method" in
2157 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2158 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2159 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2160 egrep "$file_magic_regex" > /dev/null; then
2165 *** Warning: the command libtool uses to detect shared libraries,
2166 *** $file_magic_cmd, produces output that libtool cannot recognize.
2167 *** The result is that libtool may fail to recognize shared libraries
2168 *** as such. This will affect the creation of libtool libraries that
2169 *** depend on shared libraries, but programs linked with such libtool
2170 *** libraries will work regardless of this problem. Nevertheless, you
2171 *** may want to report the problem to your system manager and/or to
2172 *** bug-libtool@gnu.org
2182 MAGIC_CMD="$ac_save_MAGIC_CMD"
2187 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2188 if test -n "$MAGIC_CMD"; then
2189 echo "$ac_t""$MAGIC_CMD" 1>&6
2191 echo "$ac_t""no" 1>&6
2203 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2204 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2205 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2206 echo "configure:2207: checking for $ac_word" >&5
2207 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2208 echo $ac_n "(cached) $ac_c" 1>&6
2210 if test -n "$RANLIB"; then
2211 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2213 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2215 for ac_dir in $ac_dummy; do
2216 test -z "$ac_dir" && ac_dir=.
2217 if test -f $ac_dir/$ac_word; then
2218 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2225 RANLIB="$ac_cv_prog_RANLIB"
2226 if test -n "$RANLIB"; then
2227 echo "$ac_t""$RANLIB" 1>&6
2229 echo "$ac_t""no" 1>&6
2233 if test -z "$ac_cv_prog_RANLIB"; then
2234 if test -n "$ac_tool_prefix"; then
2235 # Extract the first word of "ranlib", so it can be a program name with args.
2236 set dummy ranlib; ac_word=$2
2237 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2238 echo "configure:2239: checking for $ac_word" >&5
2239 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2240 echo $ac_n "(cached) $ac_c" 1>&6
2242 if test -n "$RANLIB"; then
2243 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2245 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2247 for ac_dir in $ac_dummy; do
2248 test -z "$ac_dir" && ac_dir=.
2249 if test -f $ac_dir/$ac_word; then
2250 ac_cv_prog_RANLIB="ranlib"
2255 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2258 RANLIB="$ac_cv_prog_RANLIB"
2259 if test -n "$RANLIB"; then
2260 echo "$ac_t""$RANLIB" 1>&6
2262 echo "$ac_t""no" 1>&6
2270 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2271 set dummy ${ac_tool_prefix}strip; ac_word=$2
2272 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2273 echo "configure:2274: checking for $ac_word" >&5
2274 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2275 echo $ac_n "(cached) $ac_c" 1>&6
2277 if test -n "$STRIP"; then
2278 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2280 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2282 for ac_dir in $ac_dummy; do
2283 test -z "$ac_dir" && ac_dir=.
2284 if test -f $ac_dir/$ac_word; then
2285 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2292 STRIP="$ac_cv_prog_STRIP"
2293 if test -n "$STRIP"; then
2294 echo "$ac_t""$STRIP" 1>&6
2296 echo "$ac_t""no" 1>&6
2300 if test -z "$ac_cv_prog_STRIP"; then
2301 if test -n "$ac_tool_prefix"; then
2302 # Extract the first word of "strip", so it can be a program name with args.
2303 set dummy strip; ac_word=$2
2304 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2305 echo "configure:2306: checking for $ac_word" >&5
2306 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2307 echo $ac_n "(cached) $ac_c" 1>&6
2309 if test -n "$STRIP"; then
2310 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2312 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2314 for ac_dir in $ac_dummy; do
2315 test -z "$ac_dir" && ac_dir=.
2316 if test -f $ac_dir/$ac_word; then
2317 ac_cv_prog_STRIP="strip"
2322 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2325 STRIP="$ac_cv_prog_STRIP"
2326 if test -n "$STRIP"; then
2327 echo "$ac_t""$STRIP" 1>&6
2329 echo "$ac_t""no" 1>&6
2338 # Check for any special flags to pass to ltconfig.
2339 libtool_flags="--cache-file=$cache_file"
2340 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2341 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2342 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2343 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2344 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2345 libtool_flags="$libtool_flags --enable-dlopen"
2347 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2348 if test "${enable_libtool_lock+set}" = set; then
2349 enableval="$enable_libtool_lock"
2353 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2354 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2356 # Check whether --with-pic or --without-pic was given.
2357 if test "${with_pic+set}" = set; then
2364 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2365 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2367 # Some flags need to be propagated to the compiler or linker for good
2371 # Find out which ABI we are using.
2372 echo '#line 2373 "configure"' > conftest.$ac_ext
2373 if { (eval echo configure:2374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2374 case "`/usr/bin/file conftest.o`" in
2390 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2391 SAVE_CFLAGS="$CFLAGS"
2392 CFLAGS="$CFLAGS -belf"
2393 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2394 echo "configure:2395: checking whether the C compiler needs -belf" >&5
2395 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2396 echo $ac_n "(cached) $ac_c" 1>&6
2400 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2401 ac_cpp='$CPP $CPPFLAGS'
2402 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2403 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2404 cross_compiling=$ac_cv_prog_cc_cross
2406 cat > conftest.$ac_ext <<EOF
2407 #line 2408 "configure"
2408 #include "confdefs.h"
2414 if { (eval echo configure:2415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2416 lt_cv_cc_needs_belf=yes
2418 echo "configure: failed program was:" >&5
2419 cat conftest.$ac_ext >&5
2421 lt_cv_cc_needs_belf=no
2425 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2426 ac_cpp='$CPP $CPPFLAGS'
2427 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2428 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2429 cross_compiling=$ac_cv_prog_cc_cross
2433 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2434 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2435 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2436 CFLAGS="$SAVE_CFLAGS"
2443 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2444 echo "configure:2445: checking how to run the C++ preprocessor" >&5
2445 if test -z "$CXXCPP"; then
2446 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2447 echo $ac_n "(cached) $ac_c" 1>&6
2450 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2451 ac_cpp='$CXXCPP $CPPFLAGS'
2452 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2453 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2454 cross_compiling=$ac_cv_prog_cxx_cross
2455 CXXCPP="${CXX-g++} -E"
2456 cat > conftest.$ac_ext <<EOF
2457 #line 2458 "configure"
2458 #include "confdefs.h"
2461 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2462 { (eval echo configure:2463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2463 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2464 if test -z "$ac_err"; then
2468 echo "configure: failed program was:" >&5
2469 cat conftest.$ac_ext >&5
2474 ac_cv_prog_CXXCPP="$CXXCPP"
2476 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2477 ac_cpp='$CPP $CPPFLAGS'
2478 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2479 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2480 cross_compiling=$ac_cv_prog_cc_cross
2483 CXXCPP="$ac_cv_prog_CXXCPP"
2484 echo "$ac_t""$CXXCPP" 1>&6
2487 # Save cache, so that ltconfig can load it
2488 cat > confcache <<\EOF
2489 # This file is a shell script that caches the results of configure
2490 # tests run on this system so they can be shared between configure
2491 # scripts and configure runs. It is not useful on other systems.
2492 # If it contains results you don't want to keep, you may remove or edit it.
2494 # By default, configure uses ./config.cache as the cache file,
2495 # creating it if it does not exist already. You can give configure
2496 # the --cache-file=FILE option to use a different cache file; that is
2497 # what configure does when it calls configure scripts in
2498 # subdirectories, so they share the cache.
2499 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2500 # config.status only pays attention to the cache file if you give it the
2501 # --recheck option to rerun configure.
2504 # The following way of writing the cache mishandles newlines in values,
2505 # but we know of no workaround that is simple, portable, and efficient.
2506 # So, don't put newlines in cache variables' values.
2507 # Ultrix sh set writes to stderr and can't be redirected directly,
2508 # and sets the high bit in the cache file unless we assign to the vars.
2510 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2512 # `set' does not quote correctly, so add quotes (double-quote substitution
2513 # turns \\\\ into \\, and sed turns \\ into \).
2515 -e "s/'/'\\\\''/g" \
2516 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2519 # `set' quotes correctly as required by POSIX, so do not add quotes.
2520 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2523 if cmp -s $cache_file confcache; then
2526 if test -w $cache_file; then
2527 echo "updating cache $cache_file"
2528 cat confcache > $cache_file
2530 echo "not updating unwritable cache $cache_file"
2536 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2537 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2538 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2539 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2540 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2541 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2542 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2543 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2544 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2545 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2547 # Reload cache, that may have been modified by ltconfig
2548 if test -r "$cache_file"; then
2549 echo "loading cache $cache_file"
2552 echo "creating cache $cache_file"
2557 # This can be used to rebuild libtool when needed
2558 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2560 # Always use our own libtool.
2561 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2563 # Redirect the config.log output again, so that the ltconfig log is not
2564 # clobbered by the next message.
2565 exec 5>>./config.log
2570 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2572 lt_save_CFLAGS="$CFLAGS"
2573 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2574 MAGIC_CMD="$MAGIC_CMD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2575 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2576 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2577 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2578 deplibs_check_method="$deplibs_check_method" \
2579 file_magic_cmd="$file_magic_cmd" \
2580 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2581 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2582 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2584 CFLAGS="$lt_save_CFLAGS"
2586 # Redirect the config.log output again, so that the ltconfig log is not
2587 # clobbered by the next message.
2588 exec 5>>./config.log
2599 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
2608 if test -d $srcdir/testsuite; then
2610 TESTSUBDIR_FALSE='#'
2616 # Check whether --enable-fast-character or --disable-fast-character was given.
2617 if test "${enable_fast_character+set}" = set; then
2618 enableval="$enable_fast_character"
2622 cat >> confdefs.h <<\EOF
2623 #define COMPACT_CHARACTER 1
2629 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
2630 if test "${enable_getenv_properties+set}" = set; then
2631 enableval="$enable_getenv_properties"
2636 if test -n "$enable_getenv_properties"; then
2637 enable_getenv_properties=${enable_getenv_properties_default-yes}
2639 if test "$enable_getenv_properties" = no; then
2640 cat >> confdefs.h <<\EOF
2641 #define DISABLE_GETENV_PROPERTIES 1
2646 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2647 if test "${enable_libgcj_debug+set}" = set; then
2648 enableval="$enable_libgcj_debug"
2649 if test "$enable_libgcj_debug" = yes; then
2650 cat >> confdefs.h <<\EOF
2658 # Check whether --enable-interpreter or --disable-interpreter was given.
2659 if test "${enable_interpreter+set}" = set; then
2660 enableval="$enable_interpreter"
2661 if test "$enable_interpreter" = yes; then
2662 # This can also be set in configure.host.
2663 libgcj_interpreter=yes
2664 elif test "$enable_interpreter" = no; then
2665 libgcj_interpreter=no
2670 if test "$libgcj_interpreter" = yes; then
2671 cat >> confdefs.h <<\EOF
2672 #define INTERPRETER 1
2678 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
2679 if test "${enable_sjlj_exceptions+set}" = set; then
2680 enableval="$enable_sjlj_exceptions"
2681 if test "$enable_sjlj_exceptions" = yes; then
2682 # This can be set in configure.host.
2688 if test "$libgcj_sjlj" = yes; then
2689 EXCEPTIONSPEC="-fsjlj-exceptions"
2690 cat >> confdefs.h <<\EOF
2691 #define SJLJ_EXCEPTIONS 1
2697 if test "$ac_cv_prog_gnu_ld" = yes; then
2698 FORCELIBGCCSPEC="-u __rethrow -u __frame_state_for -lgcc"
2701 echo $ac_n "checking for data_start""... $ac_c" 1>&6
2702 echo "configure:2703: checking for data_start" >&5
2705 cat > conftest.$ac_ext <<EOF
2706 #line 2707 "configure"
2707 #include "confdefs.h"
2708 extern int data_start;
2710 return ((int) &data_start);
2713 if { (eval echo configure:2714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2715 echo "$ac_t""found it" 1>&6
2717 echo "configure: failed program was:" >&5
2718 cat conftest.$ac_ext >&5
2720 LIBDATASTARTSPEC="-u data_start libgcjdata.a%s"
2721 NEEDS_DATA_START=yes
2722 echo "$ac_t""missing" 1>&6
2727 # Check whether --enable-java-net or --disable-java-net was given.
2728 if test "${enable_java_net+set}" = set; then
2729 enableval="$enable_java_net"
2734 if test -n "$enable_java_net"; then
2735 enable_java_net=${enable_java_net_default-yes}
2737 if test "$enable_java_net" = no; then
2738 cat >> confdefs.h <<\EOF
2739 #define DISABLE_JAVA_NET 1
2744 # Check whether --enable-jvmpi or --disable-jvmpi was given.
2745 if test "${enable_jvmpi+set}" = set; then
2746 enableval="$enable_jvmpi"
2751 if test "$enable_jvmpi" != no; then
2752 cat >> confdefs.h <<\EOF
2753 #define ENABLE_JVMPI 1
2759 # Check whether --with-ecos or --without-ecos was given.
2760 if test "${with_ecos+set}" = set; then
2761 withval="$with_ecos"
2762 TARGET_ECOS="$with_ecos"
2767 case "$TARGET_ECOS" in
2769 FILE_DESCRIPTOR=natFileDescriptorPosix.cc
2770 PROCESS=${PROCESS-Posix}
2773 FILE_DESCRIPTOR=natFileDescriptorEcos.cc
2775 cat >> confdefs.h <<\EOF
2782 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2783 echo "configure:2784: checking how to run the C preprocessor" >&5
2784 # On Suns, sometimes $CPP names a directory.
2785 if test -n "$CPP" && test -d "$CPP"; then
2788 if test -z "$CPP"; then
2789 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2790 echo $ac_n "(cached) $ac_c" 1>&6
2792 # This must be in double quotes, not single quotes, because CPP may get
2793 # substituted into the Makefile and "${CC-cc}" will confuse make.
2795 # On the NeXT, cc -E runs the code through the compiler's parser,
2796 # not just through cpp.
2797 cat > conftest.$ac_ext <<EOF
2798 #line 2799 "configure"
2799 #include "confdefs.h"
2803 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2804 { (eval echo configure:2805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2805 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2806 if test -z "$ac_err"; then
2810 echo "configure: failed program was:" >&5
2811 cat conftest.$ac_ext >&5
2813 CPP="${CC-cc} -E -traditional-cpp"
2814 cat > conftest.$ac_ext <<EOF
2815 #line 2816 "configure"
2816 #include "confdefs.h"
2820 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2821 { (eval echo configure:2822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2822 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2823 if test -z "$ac_err"; then
2827 echo "configure: failed program was:" >&5
2828 cat conftest.$ac_ext >&5
2830 CPP="${CC-cc} -nologo -E"
2831 cat > conftest.$ac_ext <<EOF
2832 #line 2833 "configure"
2833 #include "confdefs.h"
2837 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2838 { (eval echo configure:2839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2839 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2840 if test -z "$ac_err"; then
2844 echo "configure: failed program was:" >&5
2845 cat conftest.$ac_ext >&5
2854 ac_cv_prog_CPP="$CPP"
2856 CPP="$ac_cv_prog_CPP"
2858 ac_cv_prog_CPP="$CPP"
2860 echo "$ac_t""$CPP" 1>&6
2862 cat > conftest.$ac_ext <<EOF
2863 #line 2864 "configure"
2864 #include "confdefs.h"
2867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2868 egrep "uint32_t" >/dev/null 2>&1; then
2870 cat >> confdefs.h <<\EOF
2871 #define HAVE_INT32_DEFINED 1
2877 cat > conftest.$ac_ext <<EOF
2878 #line 2879 "configure"
2879 #include "confdefs.h"
2880 #include <inttypes.h>
2882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2883 egrep "uint32_t" >/dev/null 2>&1; then
2885 cat >> confdefs.h <<\EOF
2886 #define HAVE_INT32_DEFINED 1
2892 cat > conftest.$ac_ext <<EOF
2893 #line 2894 "configure"
2894 #include "confdefs.h"
2895 #include <sys/types.h>
2897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2898 egrep "u_int32_t" >/dev/null 2>&1; then
2900 cat >> confdefs.h <<\EOF
2901 #define HAVE_BSD_INT32_DEFINED 1
2907 cat > conftest.$ac_ext <<EOF
2908 #line 2909 "configure"
2909 #include "confdefs.h"
2910 #include <sys/config.h>
2912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2913 egrep "u_int32_t" >/dev/null 2>&1; then
2915 cat >> confdefs.h <<\EOF
2916 #define HAVE_BSD_INT32_DEFINED 1
2924 cat > conftest.$ac_ext <<EOF
2925 #line 2926 "configure"
2926 #include "confdefs.h"
2929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2930 egrep "mktime" >/dev/null 2>&1; then
2932 cat >> confdefs.h <<\EOF
2933 #define HAVE_MKTIME 1
2939 cat > conftest.$ac_ext <<EOF
2940 #line 2941 "configure"
2941 #include "confdefs.h"
2944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2945 egrep "localtime" >/dev/null 2>&1; then
2947 cat >> confdefs.h <<\EOF
2948 #define HAVE_LOCALTIME 1
2955 test -d java || mkdir java
2956 test -d java/io || mkdir java/io
2959 test -d java/lang || mkdir java/lang
2966 LIBGCJTESTSPEC="-L`pwd`/.libs -rpath `pwd`/.libs"
2969 # Check whether --with-system-zlib or --without-system-zlib was given.
2970 if test "${with_system_zlib+set}" = set; then
2971 withval="$with_system_zlib"
2982 echo $ac_n "checking for garbage collector to use""... $ac_c" 1>&6
2983 echo "configure:2984: checking for garbage collector to use" >&5
2984 # Check whether --enable-java-gc or --disable-java-gc was given.
2985 if test "${enable_java_gc+set}" = set; then
2986 enableval="$enable_java_gc"
3002 echo "$ac_t""boehm" 1>&6
3003 GCDEPS='$(top_builddir)/../boehm-gc/libgcjgc.la'
3004 # We include the path to the boehm-gc build directory.
3005 # See Makefile.am to understand why.
3006 GCLIBS="$GCDEPS -L\$(here)/../boehm-gc/$libsubdir"
3007 GCINCS='-I$(top_srcdir)/../boehm-gc -I$(top_builddir)/../boehm-gc'
3009 JC1GCSPEC='-fuse-boehm-gc'
3010 GCTESTSPEC="-L`pwd`/../boehm-gc/.libs -rpath `pwd`/../boehm-gc/.libs"
3011 GCINCS="$GCINCS `cat ../boehm-gc/boehm-cflags`"
3014 cat >> confdefs.h <<\EOF
3015 #define HAVE_BOEHM_GC 1
3020 echo "$ac_t""none" 1>&6
3025 { echo "configure: error: unrecognized collector \"$GC\"" 1>&2; exit 1; }
3038 echo $ac_n "checking for threads package to use""... $ac_c" 1>&6
3039 echo "configure:3040: checking for threads package to use" >&5
3040 # Check whether --enable-threads or --disable-threads was given.
3041 if test "${enable_threads+set}" = set; then
3042 enableval="$enable_threads"
3049 if test "$THREADS" = yes; then
3055 # FIXME: this isn't correct in all cases.
3062 # FIXME: for now, choose POSIX, because we implement that.
3063 # Later, choose irix threads.
3067 # FIXME: for now, choose POSIX, because we implement that.
3068 # Later, choose solaris threads.
3086 cat >> confdefs.h <<\EOF
3087 #define LINUX_THREADS 1
3093 decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
3094 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
3097 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
3100 echo "$ac_t""$THREADS" 1>&6
3110 THREADLIBS=-lpthread
3111 THREADSPEC=-lpthread
3112 THREADOBJS=posix-threads.lo
3113 THREADH=posix-threads.h
3114 # MIT pthreads doesn't seem to have the mutexattr functions.
3115 # But for now we don't check for it. We just assume you aren't
3116 # using MIT pthreads.
3117 cat >> confdefs.h <<\EOF
3118 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3122 # If we're using the Boehm GC, then we happen to know that it
3123 # defines _REENTRANT, so we don't bother. Eww.
3124 if test "$GC" != boehm; then
3125 cat >> confdefs.h <<\EOF
3126 #define _REENTRANT 1
3130 cat >> confdefs.h <<\EOF
3131 #define _POSIX_PTHREAD_SEMANTICS 1
3137 THREADOBJS=no-threads.lo
3138 THREADH=no-threads.h
3150 if test "$GCC" = yes; then
3162 # Find eh-common.h and support headers. If we're in the tree with
3163 # gcc, then look there. Otherwise look in compat-include. If all else
3164 # fails, just hope the user has set things up somehow.
3165 if test -r $srcdir/../gcc/eh-common.h; then
3166 EH_COMMON_INCLUDE='-I$(top_srcdir)/../gcc -I$(top_srcdir)/../include'
3168 if test -d $srcdir/../compat-include; then
3169 EH_COMMON_INCLUDE='-I$(top_srcdir)/../compat-include'
3175 if test -n "${with_cross_host}"; then
3176 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
3177 # may not work correctly, because the compiler may not be able to
3180 # We assume newlib. This lets us hard-code the functions we know
3182 cat >> confdefs.h <<\EOF
3183 #define HAVE_MEMMOVE 1
3186 cat >> confdefs.h <<\EOF
3187 #define HAVE_MEMCPY 1
3190 cat >> confdefs.h <<\EOF
3191 #define HAVE_STRERROR 1
3194 cat >> confdefs.h <<\EOF
3195 #define HAVE_GMTIME_R 1
3198 cat >> confdefs.h <<\EOF
3199 #define HAVE_LOCALTIME_R 1
3202 cat >> confdefs.h <<\EOF
3203 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3206 cat >> confdefs.h <<\EOF
3207 #define HAVE_ALLOCA 1
3211 cat >> confdefs.h <<\EOF
3217 ZLIBTESTSPEC="-L`pwd`/../zlib/.libs -rpath `pwd`/../zlib/.libs"
3219 # If Canadian cross, then don't pick up tools from the build
3221 if test "$build" != "$with_cross_host"; then
3224 GCJ="${target_alias}-gcj"
3230 for ac_func in strerror ioctl select fstat open fsync sleep
3232 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3233 echo "configure:3234: checking for $ac_func" >&5
3234 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3235 echo $ac_n "(cached) $ac_c" 1>&6
3237 cat > conftest.$ac_ext <<EOF
3238 #line 3239 "configure"
3239 #include "confdefs.h"
3240 /* System header to define __stub macros and hopefully few prototypes,
3241 which can conflict with char $ac_func(); below. */
3243 /* Override any gcc2 internal prototype to avoid an error. */
3244 /* We use char because int might match the return type of a gcc2
3245 builtin and then its argument prototype would still apply. */
3250 /* The GNU C library defines this for functions which it implements
3251 to always fail with ENOSYS. Some functions are actually named
3252 something starting with __ and the normal name is an alias. */
3253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3261 if { (eval echo configure:3262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3263 eval "ac_cv_func_$ac_func=yes"
3265 echo "configure: failed program was:" >&5
3266 cat conftest.$ac_ext >&5
3268 eval "ac_cv_func_$ac_func=no"
3273 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3274 echo "$ac_t""yes" 1>&6
3275 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3276 cat >> confdefs.h <<EOF
3277 #define $ac_tr_func 1
3281 echo "$ac_t""no" 1>&6
3285 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
3287 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3288 echo "configure:3289: checking for $ac_func" >&5
3289 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3290 echo $ac_n "(cached) $ac_c" 1>&6
3292 cat > conftest.$ac_ext <<EOF
3293 #line 3294 "configure"
3294 #include "confdefs.h"
3295 /* System header to define __stub macros and hopefully few prototypes,
3296 which can conflict with char $ac_func(); below. */
3298 /* Override any gcc2 internal prototype to avoid an error. */
3299 /* We use char because int might match the return type of a gcc2
3300 builtin and then its argument prototype would still apply. */
3305 /* The GNU C library defines this for functions which it implements
3306 to always fail with ENOSYS. Some functions are actually named
3307 something starting with __ and the normal name is an alias. */
3308 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3316 if { (eval echo configure:3317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3318 eval "ac_cv_func_$ac_func=yes"
3320 echo "configure: failed program was:" >&5
3321 cat conftest.$ac_ext >&5
3323 eval "ac_cv_func_$ac_func=no"
3328 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3329 echo "$ac_t""yes" 1>&6
3330 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3331 cat >> confdefs.h <<EOF
3332 #define $ac_tr_func 1
3336 echo "$ac_t""no" 1>&6
3340 for ac_func in access stat mkdir rename rmdir unlink realpath
3342 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3343 echo "configure:3344: checking for $ac_func" >&5
3344 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3345 echo $ac_n "(cached) $ac_c" 1>&6
3347 cat > conftest.$ac_ext <<EOF
3348 #line 3349 "configure"
3349 #include "confdefs.h"
3350 /* System header to define __stub macros and hopefully few prototypes,
3351 which can conflict with char $ac_func(); below. */
3353 /* Override any gcc2 internal prototype to avoid an error. */
3354 /* We use char because int might match the return type of a gcc2
3355 builtin and then its argument prototype would still apply. */
3360 /* The GNU C library defines this for functions which it implements
3361 to always fail with ENOSYS. Some functions are actually named
3362 something starting with __ and the normal name is an alias. */
3363 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3371 if { (eval echo configure:3372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3373 eval "ac_cv_func_$ac_func=yes"
3375 echo "configure: failed program was:" >&5
3376 cat conftest.$ac_ext >&5
3378 eval "ac_cv_func_$ac_func=no"
3383 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3384 echo "$ac_t""yes" 1>&6
3385 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3386 cat >> confdefs.h <<EOF
3387 #define $ac_tr_func 1
3391 echo "$ac_t""no" 1>&6
3395 for ac_func in iconv nl_langinfo
3397 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3398 echo "configure:3399: checking for $ac_func" >&5
3399 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3400 echo $ac_n "(cached) $ac_c" 1>&6
3402 cat > conftest.$ac_ext <<EOF
3403 #line 3404 "configure"
3404 #include "confdefs.h"
3405 /* System header to define __stub macros and hopefully few prototypes,
3406 which can conflict with char $ac_func(); below. */
3408 /* Override any gcc2 internal prototype to avoid an error. */
3409 /* We use char because int might match the return type of a gcc2
3410 builtin and then its argument prototype would still apply. */
3415 /* The GNU C library defines this for functions which it implements
3416 to always fail with ENOSYS. Some functions are actually named
3417 something starting with __ and the normal name is an alias. */
3418 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3426 if { (eval echo configure:3427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3428 eval "ac_cv_func_$ac_func=yes"
3430 echo "configure: failed program was:" >&5
3431 cat conftest.$ac_ext >&5
3433 eval "ac_cv_func_$ac_func=no"
3438 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3439 echo "$ac_t""yes" 1>&6
3440 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3441 cat >> confdefs.h <<EOF
3442 #define $ac_tr_func 1
3446 echo "$ac_t""no" 1>&6
3450 for ac_func in inet_aton inet_addr
3452 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3453 echo "configure:3454: checking for $ac_func" >&5
3454 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3455 echo $ac_n "(cached) $ac_c" 1>&6
3457 cat > conftest.$ac_ext <<EOF
3458 #line 3459 "configure"
3459 #include "confdefs.h"
3460 /* System header to define __stub macros and hopefully few prototypes,
3461 which can conflict with char $ac_func(); below. */
3463 /* Override any gcc2 internal prototype to avoid an error. */
3464 /* We use char because int might match the return type of a gcc2
3465 builtin and then its argument prototype would still apply. */
3470 /* The GNU C library defines this for functions which it implements
3471 to always fail with ENOSYS. Some functions are actually named
3472 something starting with __ and the normal name is an alias. */
3473 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3481 if { (eval echo configure:3482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3483 eval "ac_cv_func_$ac_func=yes"
3485 echo "configure: failed program was:" >&5
3486 cat conftest.$ac_ext >&5
3488 eval "ac_cv_func_$ac_func=no"
3493 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3494 echo "$ac_t""yes" 1>&6
3495 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3496 cat >> confdefs.h <<EOF
3497 #define $ac_tr_func 1
3501 echo "$ac_t""no" 1>&6
3505 for ac_func in inet_pton uname inet_ntoa
3507 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3508 echo "configure:3509: checking for $ac_func" >&5
3509 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3510 echo $ac_n "(cached) $ac_c" 1>&6
3512 cat > conftest.$ac_ext <<EOF
3513 #line 3514 "configure"
3514 #include "confdefs.h"
3515 /* System header to define __stub macros and hopefully few prototypes,
3516 which can conflict with char $ac_func(); below. */
3518 /* Override any gcc2 internal prototype to avoid an error. */
3519 /* We use char because int might match the return type of a gcc2
3520 builtin and then its argument prototype would still apply. */
3525 /* The GNU C library defines this for functions which it implements
3526 to always fail with ENOSYS. Some functions are actually named
3527 something starting with __ and the normal name is an alias. */
3528 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3536 if { (eval echo configure:3537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3538 eval "ac_cv_func_$ac_func=yes"
3540 echo "configure: failed program was:" >&5
3541 cat conftest.$ac_ext >&5
3543 eval "ac_cv_func_$ac_func=no"
3548 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3549 echo "$ac_t""yes" 1>&6
3550 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3551 cat >> confdefs.h <<EOF
3552 #define $ac_tr_func 1
3556 echo "$ac_t""no" 1>&6
3560 for ac_func in backtrace fork execvp pipe
3562 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3563 echo "configure:3564: checking for $ac_func" >&5
3564 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3565 echo $ac_n "(cached) $ac_c" 1>&6
3567 cat > conftest.$ac_ext <<EOF
3568 #line 3569 "configure"
3569 #include "confdefs.h"
3570 /* System header to define __stub macros and hopefully few prototypes,
3571 which can conflict with char $ac_func(); below. */
3573 /* Override any gcc2 internal prototype to avoid an error. */
3574 /* We use char because int might match the return type of a gcc2
3575 builtin and then its argument prototype would still apply. */
3580 /* The GNU C library defines this for functions which it implements
3581 to always fail with ENOSYS. Some functions are actually named
3582 something starting with __ and the normal name is an alias. */
3583 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3591 if { (eval echo configure:3592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3593 eval "ac_cv_func_$ac_func=yes"
3595 echo "configure: failed program was:" >&5
3596 cat conftest.$ac_ext >&5
3598 eval "ac_cv_func_$ac_func=no"
3603 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3604 echo "$ac_t""yes" 1>&6
3605 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3606 cat >> confdefs.h <<EOF
3607 #define $ac_tr_func 1
3611 echo "$ac_t""no" 1>&6
3615 for ac_hdr in execinfo.h unistd.h dlfcn.h
3617 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3618 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3619 echo "configure:3620: checking for $ac_hdr" >&5
3620 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3621 echo $ac_n "(cached) $ac_c" 1>&6
3623 cat > conftest.$ac_ext <<EOF
3624 #line 3625 "configure"
3625 #include "confdefs.h"
3628 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3629 { (eval echo configure:3630: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3630 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3631 if test -z "$ac_err"; then
3633 eval "ac_cv_header_$ac_safe=yes"
3636 echo "configure: failed program was:" >&5
3637 cat conftest.$ac_ext >&5
3639 eval "ac_cv_header_$ac_safe=no"
3643 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3644 echo "$ac_t""yes" 1>&6
3645 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3646 cat >> confdefs.h <<EOF
3647 #define $ac_tr_hdr 1
3651 echo "$ac_t""no" 1>&6
3655 echo $ac_n "checking for dladdr in -ldl""... $ac_c" 1>&6
3656 echo "configure:3657: checking for dladdr in -ldl" >&5
3657 ac_lib_var=`echo dl'_'dladdr | sed 'y%./+-%__p_%'`
3658 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3659 echo $ac_n "(cached) $ac_c" 1>&6
3661 ac_save_LIBS="$LIBS"
3663 cat > conftest.$ac_ext <<EOF
3664 #line 3665 "configure"
3665 #include "confdefs.h"
3666 /* Override any gcc2 internal prototype to avoid an error. */
3667 /* We use char because int might match the return type of a gcc2
3668 builtin and then its argument prototype would still apply. */
3675 if { (eval echo configure:3676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3677 eval "ac_cv_lib_$ac_lib_var=yes"
3679 echo "configure: failed program was:" >&5
3680 cat conftest.$ac_ext >&5
3682 eval "ac_cv_lib_$ac_lib_var=no"
3685 LIBS="$ac_save_LIBS"
3688 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3689 echo "$ac_t""yes" 1>&6
3691 cat >> confdefs.h <<\EOF
3692 #define HAVE_DLADDR 1
3696 echo "$ac_t""no" 1>&6
3699 for ac_file in /proc/self/exe
3702 ac_safe=`echo "$ac_file" | sed 'y%./+-%__p_%'`
3703 echo $ac_n "checking for $ac_file""... $ac_c" 1>&6
3704 echo "configure:3705: checking for $ac_file" >&5
3705 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
3706 echo $ac_n "(cached) $ac_c" 1>&6
3708 if test "$cross_compiling" = yes; then
3709 { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
3711 if test -r $ac_file; then
3712 eval "ac_cv_file_$ac_safe=yes"
3714 eval "ac_cv_file_$ac_safe=no"
3718 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
3719 echo "$ac_t""yes" 1>&6
3720 ac_tr_file=HAVE_`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3721 cat >> confdefs.h <<EOF
3722 #define $ac_tr_file 1
3725 cat >> confdefs.h <<\EOF
3726 #define HAVE_PROC_SELF_EXE 1
3730 echo "$ac_t""no" 1>&6
3736 for ac_func in gethostbyname_r
3738 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3739 echo "configure:3740: checking for $ac_func" >&5
3740 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3741 echo $ac_n "(cached) $ac_c" 1>&6
3743 cat > conftest.$ac_ext <<EOF
3744 #line 3745 "configure"
3745 #include "confdefs.h"
3746 /* System header to define __stub macros and hopefully few prototypes,
3747 which can conflict with char $ac_func(); below. */
3749 /* Override any gcc2 internal prototype to avoid an error. */
3750 /* We use char because int might match the return type of a gcc2
3751 builtin and then its argument prototype would still apply. */
3756 /* The GNU C library defines this for functions which it implements
3757 to always fail with ENOSYS. Some functions are actually named
3758 something starting with __ and the normal name is an alias. */
3759 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3767 if { (eval echo configure:3768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3769 eval "ac_cv_func_$ac_func=yes"
3771 echo "configure: failed program was:" >&5
3772 cat conftest.$ac_ext >&5
3774 eval "ac_cv_func_$ac_func=no"
3779 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3780 echo "$ac_t""yes" 1>&6
3781 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3782 cat >> confdefs.h <<EOF
3783 #define $ac_tr_func 1
3786 cat >> confdefs.h <<\EOF
3787 #define HAVE_GETHOSTBYNAME_R 1
3790 # There are two different kinds of gethostbyname_r.
3791 # We look for the one that returns `int'.
3792 # Hopefully this check is robust enough.
3793 cat > conftest.$ac_ext <<EOF
3794 #line 3795 "configure"
3795 #include "confdefs.h"
3798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3799 egrep "int.*gethostbyname_r" >/dev/null 2>&1; then
3802 cat >> confdefs.h <<\EOF
3803 #define GETHOSTBYNAME_R_RETURNS_INT 1
3811 *" -D_REENTRANT "*) ;;
3813 echo $ac_n "checking whether gethostbyname_r declaration requires -D_REENTRANT""... $ac_c" 1>&6
3814 echo "configure:3815: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
3815 if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
3816 echo $ac_n "(cached) $ac_c" 1>&6
3820 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3821 ac_cpp='$CXXCPP $CPPFLAGS'
3822 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3823 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3824 cross_compiling=$ac_cv_prog_cxx_cross
3826 cat > conftest.$ac_ext <<EOF
3827 #line 3828 "configure"
3828 #include "confdefs.h"
3831 gethostbyname_r("", 0, 0);
3834 if { (eval echo configure:3835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3836 libjava_cv_gethostbyname_r_needs_reentrant=no
3838 echo "configure: failed program was:" >&5
3839 cat conftest.$ac_ext >&5
3841 CPPFLAGS_SAVE="$CPPFLAGS"
3842 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
3843 cat > conftest.$ac_ext <<EOF
3844 #line 3845 "configure"
3845 #include "confdefs.h"
3848 gethostbyname_r("", 0, 0);
3851 if { (eval echo configure:3852: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3853 libjava_cv_gethostbyname_r_needs_reentrant=yes
3855 echo "configure: failed program was:" >&5
3856 cat conftest.$ac_ext >&5
3858 libjava_cv_gethostbyname_r_needs_reentrant=fail
3861 CPPFLAGS="$CPPFLAGS_SAVE"
3866 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3867 ac_cpp='$CPP $CPPFLAGS'
3868 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3869 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3870 cross_compiling=$ac_cv_prog_cc_cross
3875 echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
3876 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
3877 cat >> confdefs.h <<\EOF
3878 #define _REENTRANT 1
3885 echo $ac_n "checking for struct hostent_data""... $ac_c" 1>&6
3886 echo "configure:3887: checking for struct hostent_data" >&5
3887 if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
3888 echo $ac_n "(cached) $ac_c" 1>&6
3890 cat > conftest.$ac_ext <<EOF
3891 #line 3892 "configure"
3892 #include "confdefs.h"
3894 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
3895 # define _REENTRANT 1
3899 struct hostent_data data;
3902 if { (eval echo configure:3903: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3904 libjava_cv_struct_hostent_data=yes
3906 echo "configure: failed program was:" >&5
3907 cat conftest.$ac_ext >&5
3909 libjava_cv_struct_hostent_data=no
3914 echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
3915 if test "x$libjava_cv_struct_hostent_data" = xyes; then
3916 cat >> confdefs.h <<\EOF
3917 #define HAVE_STRUCT_HOSTENT_DATA 1
3923 echo "$ac_t""no" 1>&6
3928 for ac_func in gethostbyaddr_r
3930 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3931 echo "configure:3932: checking for $ac_func" >&5
3932 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3933 echo $ac_n "(cached) $ac_c" 1>&6
3935 cat > conftest.$ac_ext <<EOF
3936 #line 3937 "configure"
3937 #include "confdefs.h"
3938 /* System header to define __stub macros and hopefully few prototypes,
3939 which can conflict with char $ac_func(); below. */
3941 /* Override any gcc2 internal prototype to avoid an error. */
3942 /* We use char because int might match the return type of a gcc2
3943 builtin and then its argument prototype would still apply. */
3948 /* The GNU C library defines this for functions which it implements
3949 to always fail with ENOSYS. Some functions are actually named
3950 something starting with __ and the normal name is an alias. */
3951 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3959 if { (eval echo configure:3960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3961 eval "ac_cv_func_$ac_func=yes"
3963 echo "configure: failed program was:" >&5
3964 cat conftest.$ac_ext >&5
3966 eval "ac_cv_func_$ac_func=no"
3971 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3972 echo "$ac_t""yes" 1>&6
3973 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3974 cat >> confdefs.h <<EOF
3975 #define $ac_tr_func 1
3978 cat >> confdefs.h <<\EOF
3979 #define HAVE_GETHOSTBYADDR_R 1
3982 # There are two different kinds of gethostbyaddr_r.
3983 # We look for the one that returns `int'.
3984 # Hopefully this check is robust enough.
3985 cat > conftest.$ac_ext <<EOF
3986 #line 3987 "configure"
3987 #include "confdefs.h"
3990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3991 egrep "int.*gethostbyaddr_r" >/dev/null 2>&1; then
3994 cat >> confdefs.h <<\EOF
3995 #define GETHOSTBYADDR_R_RETURNS_INT 1
4002 echo "$ac_t""no" 1>&6
4007 for ac_func in gethostname
4009 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4010 echo "configure:4011: checking for $ac_func" >&5
4011 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4012 echo $ac_n "(cached) $ac_c" 1>&6
4014 cat > conftest.$ac_ext <<EOF
4015 #line 4016 "configure"
4016 #include "confdefs.h"
4017 /* System header to define __stub macros and hopefully few prototypes,
4018 which can conflict with char $ac_func(); below. */
4020 /* Override any gcc2 internal prototype to avoid an error. */
4021 /* We use char because int might match the return type of a gcc2
4022 builtin and then its argument prototype would still apply. */
4027 /* The GNU C library defines this for functions which it implements
4028 to always fail with ENOSYS. Some functions are actually named
4029 something starting with __ and the normal name is an alias. */
4030 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4038 if { (eval echo configure:4039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4040 eval "ac_cv_func_$ac_func=yes"
4042 echo "configure: failed program was:" >&5
4043 cat conftest.$ac_ext >&5
4045 eval "ac_cv_func_$ac_func=no"
4050 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4051 echo "$ac_t""yes" 1>&6
4052 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4053 cat >> confdefs.h <<EOF
4054 #define $ac_tr_func 1
4057 cat >> confdefs.h <<\EOF
4058 #define HAVE_GETHOSTNAME 1
4061 cat > conftest.$ac_ext <<EOF
4062 #line 4063 "configure"
4063 #include "confdefs.h"
4066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4067 egrep "gethostname" >/dev/null 2>&1; then
4070 cat >> confdefs.h <<\EOF
4071 #define HAVE_GETHOSTNAME_DECL 1
4078 echo "$ac_t""no" 1>&6
4083 # Look for these functions in the thread library, but only bother
4084 # if using POSIX threads.
4085 if test "$THREADS" = posix; then
4087 LIBS="$LIBS $THREADLIBS"
4088 # Some POSIX thread systems don't have pthread_mutexattr_settype.
4090 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
4092 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4093 echo "configure:4094: checking for $ac_func" >&5
4094 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4095 echo $ac_n "(cached) $ac_c" 1>&6
4097 cat > conftest.$ac_ext <<EOF
4098 #line 4099 "configure"
4099 #include "confdefs.h"
4100 /* System header to define __stub macros and hopefully few prototypes,
4101 which can conflict with char $ac_func(); below. */
4103 /* Override any gcc2 internal prototype to avoid an error. */
4104 /* We use char because int might match the return type of a gcc2
4105 builtin and then its argument prototype would still apply. */
4110 /* The GNU C library defines this for functions which it implements
4111 to always fail with ENOSYS. Some functions are actually named
4112 something starting with __ and the normal name is an alias. */
4113 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4121 if { (eval echo configure:4122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4123 eval "ac_cv_func_$ac_func=yes"
4125 echo "configure: failed program was:" >&5
4126 cat conftest.$ac_ext >&5
4128 eval "ac_cv_func_$ac_func=no"
4133 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4134 echo "$ac_t""yes" 1>&6
4135 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4136 cat >> confdefs.h <<EOF
4137 #define $ac_tr_func 1
4141 echo "$ac_t""no" 1>&6
4146 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
4147 # Solaris 7 the name librt is preferred.
4148 for ac_func in sched_yield
4150 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4151 echo "configure:4152: checking for $ac_func" >&5
4152 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4153 echo $ac_n "(cached) $ac_c" 1>&6
4155 cat > conftest.$ac_ext <<EOF
4156 #line 4157 "configure"
4157 #include "confdefs.h"
4158 /* System header to define __stub macros and hopefully few prototypes,
4159 which can conflict with char $ac_func(); below. */
4161 /* Override any gcc2 internal prototype to avoid an error. */
4162 /* We use char because int might match the return type of a gcc2
4163 builtin and then its argument prototype would still apply. */
4168 /* The GNU C library defines this for functions which it implements
4169 to always fail with ENOSYS. Some functions are actually named
4170 something starting with __ and the normal name is an alias. */
4171 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4179 if { (eval echo configure:4180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4181 eval "ac_cv_func_$ac_func=yes"
4183 echo "configure: failed program was:" >&5
4184 cat conftest.$ac_ext >&5
4186 eval "ac_cv_func_$ac_func=no"
4191 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4192 echo "$ac_t""yes" 1>&6
4193 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4194 cat >> confdefs.h <<EOF
4195 #define $ac_tr_func 1
4199 echo "$ac_t""no" 1>&6
4200 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
4201 echo "configure:4202: checking for sched_yield in -lrt" >&5
4202 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
4203 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4204 echo $ac_n "(cached) $ac_c" 1>&6
4206 ac_save_LIBS="$LIBS"
4208 cat > conftest.$ac_ext <<EOF
4209 #line 4210 "configure"
4210 #include "confdefs.h"
4211 /* Override any gcc2 internal prototype to avoid an error. */
4212 /* We use char because int might match the return type of a gcc2
4213 builtin and then its argument prototype would still apply. */
4220 if { (eval echo configure:4221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4222 eval "ac_cv_lib_$ac_lib_var=yes"
4224 echo "configure: failed program was:" >&5
4225 cat conftest.$ac_ext >&5
4227 eval "ac_cv_lib_$ac_lib_var=no"
4230 LIBS="$ac_save_LIBS"
4233 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4234 echo "$ac_t""yes" 1>&6
4236 cat >> confdefs.h <<\EOF
4237 #define HAVE_SCHED_YIELD 1
4240 THREADLIBS="$THREADLIBS -lrt"
4241 THREADSPEC="$THREADSPEC -lrt"
4243 echo "$ac_t""no" 1>&6
4245 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
4246 echo "configure:4247: checking for sched_yield in -lposix4" >&5
4247 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
4248 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4249 echo $ac_n "(cached) $ac_c" 1>&6
4251 ac_save_LIBS="$LIBS"
4252 LIBS="-lposix4 $LIBS"
4253 cat > conftest.$ac_ext <<EOF
4254 #line 4255 "configure"
4255 #include "confdefs.h"
4256 /* Override any gcc2 internal prototype to avoid an error. */
4257 /* We use char because int might match the return type of a gcc2
4258 builtin and then its argument prototype would still apply. */
4265 if { (eval echo configure:4266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4267 eval "ac_cv_lib_$ac_lib_var=yes"
4269 echo "configure: failed program was:" >&5
4270 cat conftest.$ac_ext >&5
4272 eval "ac_cv_lib_$ac_lib_var=no"
4275 LIBS="$ac_save_LIBS"
4278 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4279 echo "$ac_t""yes" 1>&6
4281 cat >> confdefs.h <<\EOF
4282 #define HAVE_SCHED_YIELD 1
4285 THREADLIBS="$THREADLIBS -lposix4"
4286 THREADSPEC="$THREADSPEC -lposix4"
4288 echo "$ac_t""no" 1>&6
4298 # We can save a little space at runtime if the mutex has m_count
4299 # or __m_count. This is a nice hack for Linux.
4300 cat > conftest.$ac_ext <<EOF
4301 #line 4302 "configure"
4302 #include "confdefs.h"
4303 #include <pthread.h>
4306 extern pthread_mutex_t *mutex; int q = mutex->m_count;
4310 if { (eval echo configure:4311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4312 cat >> confdefs.h <<\EOF
4313 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
4317 echo "configure: failed program was:" >&5
4318 cat conftest.$ac_ext >&5
4321 cat > conftest.$ac_ext <<EOF
4322 #line 4323 "configure"
4323 #include "confdefs.h"
4324 #include <pthread.h>
4327 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
4331 if { (eval echo configure:4332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4333 cat >> confdefs.h <<\EOF
4334 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
4338 echo "configure: failed program was:" >&5
4339 cat conftest.$ac_ext >&5
4346 # We require a way to get the time.
4348 for ac_func in gettimeofday time ftime
4350 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4351 echo "configure:4352: checking for $ac_func" >&5
4352 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4353 echo $ac_n "(cached) $ac_c" 1>&6
4355 cat > conftest.$ac_ext <<EOF
4356 #line 4357 "configure"
4357 #include "confdefs.h"
4358 /* System header to define __stub macros and hopefully few prototypes,
4359 which can conflict with char $ac_func(); below. */
4361 /* Override any gcc2 internal prototype to avoid an error. */
4362 /* We use char because int might match the return type of a gcc2
4363 builtin and then its argument prototype would still apply. */
4368 /* The GNU C library defines this for functions which it implements
4369 to always fail with ENOSYS. Some functions are actually named
4370 something starting with __ and the normal name is an alias. */
4371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4379 if { (eval echo configure:4380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4381 eval "ac_cv_func_$ac_func=yes"
4383 echo "configure: failed program was:" >&5
4384 cat conftest.$ac_ext >&5
4386 eval "ac_cv_func_$ac_func=no"
4391 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4392 echo "$ac_t""yes" 1>&6
4393 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4394 cat >> confdefs.h <<EOF
4395 #define $ac_tr_func 1
4399 echo "$ac_t""no" 1>&6
4403 if test "$time_found" = no; then
4404 { echo "configure: error: no function found to get the time" 1>&2; exit 1; }
4407 for ac_func in memmove
4409 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4410 echo "configure:4411: checking for $ac_func" >&5
4411 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4412 echo $ac_n "(cached) $ac_c" 1>&6
4414 cat > conftest.$ac_ext <<EOF
4415 #line 4416 "configure"
4416 #include "confdefs.h"
4417 /* System header to define __stub macros and hopefully few prototypes,
4418 which can conflict with char $ac_func(); below. */
4420 /* Override any gcc2 internal prototype to avoid an error. */
4421 /* We use char because int might match the return type of a gcc2
4422 builtin and then its argument prototype would still apply. */
4427 /* The GNU C library defines this for functions which it implements
4428 to always fail with ENOSYS. Some functions are actually named
4429 something starting with __ and the normal name is an alias. */
4430 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4438 if { (eval echo configure:4439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4440 eval "ac_cv_func_$ac_func=yes"
4442 echo "configure: failed program was:" >&5
4443 cat conftest.$ac_ext >&5
4445 eval "ac_cv_func_$ac_func=no"
4450 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4451 echo "$ac_t""yes" 1>&6
4452 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4453 cat >> confdefs.h <<EOF
4454 #define $ac_tr_func 1
4458 echo "$ac_t""no" 1>&6
4463 # We require memcpy.
4465 for ac_func in memcpy
4467 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4468 echo "configure:4469: checking for $ac_func" >&5
4469 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4470 echo $ac_n "(cached) $ac_c" 1>&6
4472 cat > conftest.$ac_ext <<EOF
4473 #line 4474 "configure"
4474 #include "confdefs.h"
4475 /* System header to define __stub macros and hopefully few prototypes,
4476 which can conflict with char $ac_func(); below. */
4478 /* Override any gcc2 internal prototype to avoid an error. */
4479 /* We use char because int might match the return type of a gcc2
4480 builtin and then its argument prototype would still apply. */
4485 /* The GNU C library defines this for functions which it implements
4486 to always fail with ENOSYS. Some functions are actually named
4487 something starting with __ and the normal name is an alias. */
4488 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4496 if { (eval echo configure:4497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4498 eval "ac_cv_func_$ac_func=yes"
4500 echo "configure: failed program was:" >&5
4501 cat conftest.$ac_ext >&5
4503 eval "ac_cv_func_$ac_func=no"
4508 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4509 echo "$ac_t""yes" 1>&6
4510 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4511 cat >> confdefs.h <<EOF
4512 #define $ac_tr_func 1
4516 echo "$ac_t""no" 1>&6
4520 if test "$memcpy_found" = no; then
4521 { echo "configure: error: memcpy is required" 1>&2; exit 1; }
4524 # Some library-finding code we stole from Tcl.
4525 #--------------------------------------------------------------------
4526 # Check for the existence of the -lsocket and -lnsl libraries.
4527 # The order here is important, so that they end up in the right
4528 # order in the command line generated by make. Here are some
4529 # special considerations:
4530 # 1. Use "connect" and "accept" to check for -lsocket, and
4531 # "gethostbyname" to check for -lnsl.
4532 # 2. Use each function name only once: can't redo a check because
4533 # autoconf caches the results of the last check and won't redo it.
4534 # 3. Use -lnsl and -lsocket only if they supply procedures that
4535 # aren't already present in the normal libraries. This is because
4536 # IRIX 5.2 has libraries, but they aren't needed and they're
4537 # bogus: they goof up name resolution if used.
4538 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
4539 # To get around this problem, check for both libraries together
4540 # if -lsocket doesn't work by itself.
4541 #--------------------------------------------------------------------
4543 echo $ac_n "checking for socket libraries""... $ac_c" 1>&6
4544 echo "configure:4545: checking for socket libraries" >&5
4545 if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
4546 echo $ac_n "(cached) $ac_c" 1>&6
4550 unset ac_cv_func_connect
4551 echo $ac_n "checking for connect""... $ac_c" 1>&6
4552 echo "configure:4553: checking for connect" >&5
4553 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
4554 echo $ac_n "(cached) $ac_c" 1>&6
4556 cat > conftest.$ac_ext <<EOF
4557 #line 4558 "configure"
4558 #include "confdefs.h"
4559 /* System header to define __stub macros and hopefully few prototypes,
4560 which can conflict with char connect(); below. */
4562 /* Override any gcc2 internal prototype to avoid an error. */
4563 /* We use char because int might match the return type of a gcc2
4564 builtin and then its argument prototype would still apply. */
4569 /* The GNU C library defines this for functions which it implements
4570 to always fail with ENOSYS. Some functions are actually named
4571 something starting with __ and the normal name is an alias. */
4572 #if defined (__stub_connect) || defined (__stub___connect)
4580 if { (eval echo configure:4581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4582 eval "ac_cv_func_connect=yes"
4584 echo "configure: failed program was:" >&5
4585 cat conftest.$ac_ext >&5
4587 eval "ac_cv_func_connect=no"
4592 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
4593 echo "$ac_t""yes" 1>&6
4596 echo "$ac_t""no" 1>&6
4600 if test "$gcj_checkSocket" = 1; then
4601 unset ac_cv_func_connect
4602 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4603 echo "configure:4604: checking for main in -lsocket" >&5
4604 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
4605 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4606 echo $ac_n "(cached) $ac_c" 1>&6
4608 ac_save_LIBS="$LIBS"
4609 LIBS="-lsocket $LIBS"
4610 cat > conftest.$ac_ext <<EOF
4611 #line 4612 "configure"
4612 #include "confdefs.h"
4618 if { (eval echo configure:4619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4620 eval "ac_cv_lib_$ac_lib_var=yes"
4622 echo "configure: failed program was:" >&5
4623 cat conftest.$ac_ext >&5
4625 eval "ac_cv_lib_$ac_lib_var=no"
4628 LIBS="$ac_save_LIBS"
4631 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4632 echo "$ac_t""yes" 1>&6
4633 gcj_cv_lib_sockets="-lsocket"
4635 echo "$ac_t""no" 1>&6
4640 if test "$gcj_checkBoth" = 1; then
4642 LIBS="$LIBS -lsocket -lnsl"
4643 unset ac_cv_func_accept
4644 echo $ac_n "checking for accept""... $ac_c" 1>&6
4645 echo "configure:4646: checking for accept" >&5
4646 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
4647 echo $ac_n "(cached) $ac_c" 1>&6
4649 cat > conftest.$ac_ext <<EOF
4650 #line 4651 "configure"
4651 #include "confdefs.h"
4652 /* System header to define __stub macros and hopefully few prototypes,
4653 which can conflict with char accept(); below. */
4655 /* Override any gcc2 internal prototype to avoid an error. */
4656 /* We use char because int might match the return type of a gcc2
4657 builtin and then its argument prototype would still apply. */
4662 /* The GNU C library defines this for functions which it implements
4663 to always fail with ENOSYS. Some functions are actually named
4664 something starting with __ and the normal name is an alias. */
4665 #if defined (__stub_accept) || defined (__stub___accept)
4673 if { (eval echo configure:4674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4675 eval "ac_cv_func_accept=yes"
4677 echo "configure: failed program was:" >&5
4678 cat conftest.$ac_ext >&5
4680 eval "ac_cv_func_accept=no"
4685 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
4686 echo "$ac_t""yes" 1>&6
4688 gcj_cv_lib_sockets="-lsocket -lnsl"
4690 echo "$ac_t""no" 1>&6
4693 unset ac_cv_func_accept
4696 unset ac_cv_func_gethostbyname
4698 LIBS="$LIBS $gcj_cv_lib_sockets"
4699 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4700 echo "configure:4701: checking for gethostbyname" >&5
4701 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
4702 echo $ac_n "(cached) $ac_c" 1>&6
4704 cat > conftest.$ac_ext <<EOF
4705 #line 4706 "configure"
4706 #include "confdefs.h"
4707 /* System header to define __stub macros and hopefully few prototypes,
4708 which can conflict with char gethostbyname(); below. */
4710 /* Override any gcc2 internal prototype to avoid an error. */
4711 /* We use char because int might match the return type of a gcc2
4712 builtin and then its argument prototype would still apply. */
4713 char gethostbyname();
4717 /* The GNU C library defines this for functions which it implements
4718 to always fail with ENOSYS. Some functions are actually named
4719 something starting with __ and the normal name is an alias. */
4720 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4728 if { (eval echo configure:4729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4730 eval "ac_cv_func_gethostbyname=yes"
4732 echo "configure: failed program was:" >&5
4733 cat conftest.$ac_ext >&5
4735 eval "ac_cv_func_gethostbyname=no"
4740 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
4741 echo "$ac_t""yes" 1>&6
4744 echo "$ac_t""no" 1>&6
4745 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4746 echo "configure:4747: checking for main in -lnsl" >&5
4747 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
4748 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4749 echo $ac_n "(cached) $ac_c" 1>&6
4751 ac_save_LIBS="$LIBS"
4753 cat > conftest.$ac_ext <<EOF
4754 #line 4755 "configure"
4755 #include "confdefs.h"
4761 if { (eval echo configure:4762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4763 eval "ac_cv_lib_$ac_lib_var=yes"
4765 echo "configure: failed program was:" >&5
4766 cat conftest.$ac_ext >&5
4768 eval "ac_cv_lib_$ac_lib_var=no"
4771 LIBS="$ac_save_LIBS"
4774 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4775 echo "$ac_t""yes" 1>&6
4776 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
4778 echo "$ac_t""no" 1>&6
4783 unset ac_cv_func_gethostbyname
4788 echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
4789 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
4791 if test "$with_system_zlib" = yes; then
4792 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
4793 echo "configure:4794: checking for deflate in -lz" >&5
4794 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
4795 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4796 echo $ac_n "(cached) $ac_c" 1>&6
4798 ac_save_LIBS="$LIBS"
4800 cat > conftest.$ac_ext <<EOF
4801 #line 4802 "configure"
4802 #include "confdefs.h"
4803 /* Override any gcc2 internal prototype to avoid an error. */
4804 /* We use char because int might match the return type of a gcc2
4805 builtin and then its argument prototype would still apply. */
4812 if { (eval echo configure:4813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4814 eval "ac_cv_lib_$ac_lib_var=yes"
4816 echo "configure: failed program was:" >&5
4817 cat conftest.$ac_ext >&5
4819 eval "ac_cv_lib_$ac_lib_var=no"
4822 LIBS="$ac_save_LIBS"
4825 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4826 echo "$ac_t""yes" 1>&6
4829 echo "$ac_t""no" 1>&6
4835 ZLIBTESTSPEC="-L`pwd`/../zlib/.libs -rpath `pwd`/../zlib/.libs"
4838 # On Solaris, and maybe other architectures, the Boehm collector
4840 if test "$GC" = boehm; then
4841 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
4842 echo "configure:4843: checking for main in -ldl" >&5
4843 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
4844 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4845 echo $ac_n "(cached) $ac_c" 1>&6
4847 ac_save_LIBS="$LIBS"
4849 cat > conftest.$ac_ext <<EOF
4850 #line 4851 "configure"
4851 #include "confdefs.h"
4857 if { (eval echo configure:4858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4859 eval "ac_cv_lib_$ac_lib_var=yes"
4861 echo "configure: failed program was:" >&5
4862 cat conftest.$ac_ext >&5
4864 eval "ac_cv_lib_$ac_lib_var=no"
4867 LIBS="$ac_save_LIBS"
4870 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4871 echo "$ac_t""yes" 1>&6
4872 SYSTEMSPEC="$SYSTEMSPEC -ldl"
4874 echo "$ac_t""no" 1>&6
4879 if test -z "${with_multisubdir}"; then
4883 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
4886 dir="`cd ${builddotdot}/../../gcc && pwd`"
4887 if test -x "${dir}/gcj"; then
4888 GCJ="$dir/gcj -B`pwd`/ -B$dir/"
4896 # Create it, so that compile/link tests don't fail
4897 test -f libgcj.spec || touch libgcj.spec
4898 GCJ="$GCJ -I$srcdir"
4901 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
4902 set dummy ${ac_tool_prefix}gcj; ac_word=$2
4903 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4904 echo "configure:4905: checking for $ac_word" >&5
4905 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
4906 echo $ac_n "(cached) $ac_c" 1>&6
4908 if test -n "$GCJ"; then
4909 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
4911 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4913 for ac_dir in $ac_dummy; do
4914 test -z "$ac_dir" && ac_dir=.
4915 if test -f $ac_dir/$ac_word; then
4916 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
4923 GCJ="$ac_cv_prog_GCJ"
4924 if test -n "$GCJ"; then
4925 echo "$ac_t""$GCJ" 1>&6
4927 echo "$ac_t""no" 1>&6
4931 if test -z "$ac_cv_prog_GCJ"; then
4932 if test -n "$ac_tool_prefix"; then
4933 # Extract the first word of "gcj", so it can be a program name with args.
4934 set dummy gcj; ac_word=$2
4935 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4936 echo "configure:4937: checking for $ac_word" >&5
4937 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
4938 echo $ac_n "(cached) $ac_c" 1>&6
4940 if test -n "$GCJ"; then
4941 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
4943 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4945 for ac_dir in $ac_dummy; do
4946 test -z "$ac_dir" && ac_dir=.
4947 if test -f $ac_dir/$ac_word; then
4948 ac_cv_prog_GCJ="gcj"
4953 test -z "$ac_cv_prog_GCJ" && ac_cv_prog_GCJ="no"
4956 GCJ="$ac_cv_prog_GCJ"
4957 if test -n "$GCJ"; then
4958 echo "$ac_t""$GCJ" 1>&6
4960 echo "$ac_t""no" 1>&6
4968 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
4972 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
4974 lt_save_CFLAGS="$CFLAGS"
4975 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="" \
4976 MAGIC_CMD="$MAGIC_CMD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4977 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4978 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4979 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4980 deplibs_check_method="$deplibs_check_method" \
4981 file_magic_cmd="$file_magic_cmd" \
4982 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
4983 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
4984 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
4986 CFLAGS="$lt_save_CFLAGS"
4988 # Redirect the config.log output again, so that the ltconfig log is not
4989 # clobbered by the next message.
4990 exec 5>>./config.log
4995 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4996 echo "configure:4997: checking size of void *" >&5
4997 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
4998 echo $ac_n "(cached) $ac_c" 1>&6
5000 if test "$cross_compiling" = yes; then
5001 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5003 cat > conftest.$ac_ext <<EOF
5004 #line 5005 "configure"
5005 #include "confdefs.h"
5009 FILE *f=fopen("conftestval", "w");
5011 fprintf(f, "%d\n", sizeof(void *));
5015 if { (eval echo configure:5016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5017 ac_cv_sizeof_void_p=`cat conftestval`
5019 echo "configure: failed program was:" >&5
5020 cat conftest.$ac_ext >&5
5022 ac_cv_sizeof_void_p=0
5028 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
5029 cat >> confdefs.h <<EOF
5030 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5038 if test "x$ZLIBSPEC" = "x-lzgcj"; then
5039 # We include the path to the zlib build directory.
5040 # See Makefile.am to understand why.
5041 ZDEPS='$(top_builddir)/../zlib/libzgcj.la'
5042 ZLIBS="$ZDEPS -L\$(here)/../zlib/$libsubdir"
5043 ZINCS='-I$(top_srcdir)/../zlib'
5056 if test "$CANADIAN" = yes; then
5065 if test "$NULL_TARGET" = yes; then
5067 NULL_TARGET_FALSE='#'
5069 NULL_TARGET_TRUE='#'
5074 if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
5083 if test -z "$with_cross_host"; then
5085 USE_LIBDIR_FALSE='#'
5092 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
5093 NEEDS_DATA_START_TRUE=
5094 NEEDS_DATA_START_FALSE='#'
5096 NEEDS_DATA_START_TRUE='#'
5097 NEEDS_DATA_START_FALSE=
5101 # Determine gcj version number.
5103 gcjvers="`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`"
5105 cat >> confdefs.h <<EOF
5106 #define GCJVERSION "$gcjvers"
5110 # See if gcj supports -fuse-divide-subroutine. gcc 2.95 does not, and
5111 # we want to continue to support that version.
5112 echo $ac_n "checking whether gcj supports -fuse-divide-subroutine""... $ac_c" 1>&6
5113 echo "configure:5114: checking whether gcj supports -fuse-divide-subroutine" >&5
5114 cat > conftest.java << 'END'
5115 public class conftest { }
5118 $GCJ -classpath $srcdir -fuse-divide-subroutine -fsyntax-only \
5119 conftest.java > /dev/null 2>&1 \
5122 if test "$use_fuse" = no; then
5125 echo "$ac_t""$use_fuse" 1>&6
5129 echo $ac_n "checking for g++ -ffloat-store bug""... $ac_c" 1>&6
5130 echo "configure:5131: checking for g++ -ffloat-store bug" >&5
5131 save_CFLAGS="$CFLAGS"
5132 CFLAGS="-x c++ -O2 -ffloat-store"
5133 cat > conftest.$ac_ext <<EOF
5134 #line 5135 "configure"
5135 #include "confdefs.h"
5141 if { (eval echo configure:5142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5143 echo "$ac_t""no" 1>&6
5145 echo "configure: failed program was:" >&5
5146 cat conftest.$ac_ext >&5
5148 cat >> confdefs.h <<\EOF
5149 #define __NO_MATH_INLINES 1
5152 echo "$ac_t""yes" 1>&6
5155 CFLAGS="$save_CFLAGS"
5157 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
5159 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5160 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5161 echo "configure:5162: checking for $ac_hdr" >&5
5162 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5163 echo $ac_n "(cached) $ac_c" 1>&6
5165 cat > conftest.$ac_ext <<EOF
5166 #line 5167 "configure"
5167 #include "confdefs.h"
5170 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5171 { (eval echo configure:5172: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5172 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5173 if test -z "$ac_err"; then
5175 eval "ac_cv_header_$ac_safe=yes"
5178 echo "configure: failed program was:" >&5
5179 cat conftest.$ac_ext >&5
5181 eval "ac_cv_header_$ac_safe=no"
5185 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5186 echo "$ac_t""yes" 1>&6
5187 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5188 cat >> confdefs.h <<EOF
5189 #define $ac_tr_hdr 1
5193 echo "$ac_t""no" 1>&6
5197 for ac_hdr in dirent.h
5199 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5200 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5201 echo "configure:5202: checking for $ac_hdr" >&5
5202 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5203 echo $ac_n "(cached) $ac_c" 1>&6
5205 cat > conftest.$ac_ext <<EOF
5206 #line 5207 "configure"
5207 #include "confdefs.h"
5210 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5211 { (eval echo configure:5212: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5212 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5213 if test -z "$ac_err"; then
5215 eval "ac_cv_header_$ac_safe=yes"
5218 echo "configure: failed program was:" >&5
5219 cat conftest.$ac_ext >&5
5221 eval "ac_cv_header_$ac_safe=no"
5225 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5226 echo "$ac_t""yes" 1>&6
5227 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5228 cat >> confdefs.h <<EOF
5229 #define $ac_tr_hdr 1
5233 echo "$ac_t""no" 1>&6
5238 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5239 echo "configure:5240: checking for ANSI C header files" >&5
5240 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5241 echo $ac_n "(cached) $ac_c" 1>&6
5243 cat > conftest.$ac_ext <<EOF
5244 #line 5245 "configure"
5245 #include "confdefs.h"
5251 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5252 { (eval echo configure:5253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5253 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5254 if test -z "$ac_err"; then
5256 ac_cv_header_stdc=yes
5259 echo "configure: failed program was:" >&5
5260 cat conftest.$ac_ext >&5
5262 ac_cv_header_stdc=no
5266 if test $ac_cv_header_stdc = yes; then
5267 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5268 cat > conftest.$ac_ext <<EOF
5269 #line 5270 "configure"
5270 #include "confdefs.h"
5273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5274 egrep "memchr" >/dev/null 2>&1; then
5278 ac_cv_header_stdc=no
5284 if test $ac_cv_header_stdc = yes; then
5285 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5286 cat > conftest.$ac_ext <<EOF
5287 #line 5288 "configure"
5288 #include "confdefs.h"
5291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5292 egrep "free" >/dev/null 2>&1; then
5296 ac_cv_header_stdc=no
5302 if test $ac_cv_header_stdc = yes; then
5303 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5304 if test "$cross_compiling" = yes; then
5307 cat > conftest.$ac_ext <<EOF
5308 #line 5309 "configure"
5309 #include "confdefs.h"
5311 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5312 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5313 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5314 int main () { int i; for (i = 0; i < 256; i++)
5315 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5319 if { (eval echo configure:5320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5323 echo "configure: failed program was:" >&5
5324 cat conftest.$ac_ext >&5
5326 ac_cv_header_stdc=no
5334 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5335 if test $ac_cv_header_stdc = yes; then
5336 cat >> confdefs.h <<\EOF
5337 #define STDC_HEADERS 1
5342 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
5343 echo "configure:5344: checking for ssize_t" >&5
5344 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
5345 echo $ac_n "(cached) $ac_c" 1>&6
5347 cat > conftest.$ac_ext <<EOF
5348 #line 5349 "configure"
5349 #include "confdefs.h"
5350 #include <sys/types.h>
5356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5357 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5359 ac_cv_type_ssize_t=yes
5362 ac_cv_type_ssize_t=no
5367 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
5368 if test $ac_cv_type_ssize_t = no; then
5369 cat >> confdefs.h <<\EOF
5376 echo $ac_n "checking for in_addr_t""... $ac_c" 1>&6
5377 echo "configure:5378: checking for in_addr_t" >&5
5378 cat > conftest.$ac_ext <<EOF
5379 #line 5380 "configure"
5380 #include "confdefs.h"
5381 #include <sys/types.h>
5386 #if HAVE_NETINET_IN_H
5387 #include <netinet/in.h>
5393 if { (eval echo configure:5394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5395 cat >> confdefs.h <<\EOF
5396 #define HAVE_IN_ADDR_T 1
5399 echo "$ac_t""yes" 1>&6
5401 echo "configure: failed program was:" >&5
5402 cat conftest.$ac_ext >&5
5404 echo "$ac_t""no" 1>&6
5408 echo $ac_n "checking whether struct ip_mreq is in netinet/in.h""... $ac_c" 1>&6
5409 echo "configure:5410: checking whether struct ip_mreq is in netinet/in.h" >&5
5410 cat > conftest.$ac_ext <<EOF
5411 #line 5412 "configure"
5412 #include "confdefs.h"
5413 #include <netinet/in.h>
5415 struct ip_mreq mreq;
5418 if { (eval echo configure:5419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5420 cat >> confdefs.h <<\EOF
5421 #define HAVE_STRUCT_IP_MREQ 1
5424 echo "$ac_t""yes" 1>&6
5426 echo "configure: failed program was:" >&5
5427 cat conftest.$ac_ext >&5
5429 echo "$ac_t""no" 1>&6
5433 echo $ac_n "checking whether struct sockaddr_in6 is in netinet/in.h""... $ac_c" 1>&6
5434 echo "configure:5435: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
5435 cat > conftest.$ac_ext <<EOF
5436 #line 5437 "configure"
5437 #include "confdefs.h"
5438 #include <netinet/in.h>
5440 struct sockaddr_in6 addr6;
5443 if { (eval echo configure:5444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5445 cat >> confdefs.h <<\EOF
5446 #define HAVE_INET6 1
5449 echo "$ac_t""yes" 1>&6
5451 echo "configure: failed program was:" >&5
5452 cat conftest.$ac_ext >&5
5454 echo "$ac_t""no" 1>&6
5458 echo $ac_n "checking for socklen_t in sys/socket.h""... $ac_c" 1>&6
5459 echo "configure:5460: checking for socklen_t in sys/socket.h" >&5
5460 cat > conftest.$ac_ext <<EOF
5461 #line 5462 "configure"
5462 #include "confdefs.h"
5463 #include <sys/socket.h>
5468 if { (eval echo configure:5469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5470 cat >> confdefs.h <<\EOF
5471 #define HAVE_SOCKLEN_T 1
5474 echo "$ac_t""yes" 1>&6
5476 echo "configure: failed program was:" >&5
5477 cat conftest.$ac_ext >&5
5479 echo "$ac_t""no" 1>&6
5483 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
5484 echo "configure:5485: checking for tm_gmtoff in struct tm" >&5
5485 cat > conftest.$ac_ext <<EOF
5486 #line 5487 "configure"
5487 #include "confdefs.h"
5490 struct tm tim; tim.tm_gmtoff = 0;
5493 if { (eval echo configure:5494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5495 cat >> confdefs.h <<\EOF
5496 #define STRUCT_TM_HAS_GMTOFF 1
5499 echo "$ac_t""yes" 1>&6
5501 echo "configure: failed program was:" >&5
5502 cat conftest.$ac_ext >&5
5504 echo "$ac_t""no" 1>&6
5505 echo $ac_n "checking for global timezone variable""... $ac_c" 1>&6
5506 echo "configure:5507: checking for global timezone variable" >&5
5507 cat > conftest.$ac_ext <<EOF
5508 #line 5509 "configure"
5509 #include "confdefs.h"
5515 if { (eval echo configure:5516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5517 cat >> confdefs.h <<\EOF
5518 #define HAVE_TIMEZONE 1
5521 echo "$ac_t""yes" 1>&6
5523 echo "configure: failed program was:" >&5
5524 cat conftest.$ac_ext >&5
5526 echo "$ac_t""no" 1>&6
5532 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5533 # for constant arguments. Useless!
5534 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5535 echo "configure:5536: checking for working alloca.h" >&5
5536 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5537 echo $ac_n "(cached) $ac_c" 1>&6
5539 cat > conftest.$ac_ext <<EOF
5540 #line 5541 "configure"
5541 #include "confdefs.h"
5544 char *p = alloca(2 * sizeof(int));
5547 if { (eval echo configure:5548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5549 ac_cv_header_alloca_h=yes
5551 echo "configure: failed program was:" >&5
5552 cat conftest.$ac_ext >&5
5554 ac_cv_header_alloca_h=no
5559 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5560 if test $ac_cv_header_alloca_h = yes; then
5561 cat >> confdefs.h <<\EOF
5562 #define HAVE_ALLOCA_H 1
5567 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5568 echo "configure:5569: checking for alloca" >&5
5569 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5570 echo $ac_n "(cached) $ac_c" 1>&6
5572 cat > conftest.$ac_ext <<EOF
5573 #line 5574 "configure"
5574 #include "confdefs.h"
5577 # define alloca __builtin_alloca
5580 # include <malloc.h>
5581 # define alloca _alloca
5584 # include <alloca.h>
5589 # ifndef alloca /* predefined by HP cc +Olibcalls */
5598 char *p = (char *) alloca(1);
5601 if { (eval echo configure:5602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5603 ac_cv_func_alloca_works=yes
5605 echo "configure: failed program was:" >&5
5606 cat conftest.$ac_ext >&5
5608 ac_cv_func_alloca_works=no
5613 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5614 if test $ac_cv_func_alloca_works = yes; then
5615 cat >> confdefs.h <<\EOF
5616 #define HAVE_ALLOCA 1
5621 if test $ac_cv_func_alloca_works = no; then
5622 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5623 # that cause trouble. Some versions do not even contain alloca or
5624 # contain a buggy version. If you still want to use their alloca,
5625 # use ar to extract alloca.o from them instead of compiling alloca.c.
5626 ALLOCA=alloca.${ac_objext}
5627 cat >> confdefs.h <<\EOF
5632 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5633 echo "configure:5634: checking whether alloca needs Cray hooks" >&5
5634 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5635 echo $ac_n "(cached) $ac_c" 1>&6
5637 cat > conftest.$ac_ext <<EOF
5638 #line 5639 "configure"
5639 #include "confdefs.h"
5640 #if defined(CRAY) && ! defined(CRAY2)
5647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5648 egrep "webecray" >/dev/null 2>&1; then
5659 echo "$ac_t""$ac_cv_os_cray" 1>&6
5660 if test $ac_cv_os_cray = yes; then
5661 for ac_func in _getb67 GETB67 getb67; do
5662 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5663 echo "configure:5664: checking for $ac_func" >&5
5664 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5665 echo $ac_n "(cached) $ac_c" 1>&6
5667 cat > conftest.$ac_ext <<EOF
5668 #line 5669 "configure"
5669 #include "confdefs.h"
5670 /* System header to define __stub macros and hopefully few prototypes,
5671 which can conflict with char $ac_func(); below. */
5673 /* Override any gcc2 internal prototype to avoid an error. */
5674 /* We use char because int might match the return type of a gcc2
5675 builtin and then its argument prototype would still apply. */
5680 /* The GNU C library defines this for functions which it implements
5681 to always fail with ENOSYS. Some functions are actually named
5682 something starting with __ and the normal name is an alias. */
5683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5691 if { (eval echo configure:5692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5693 eval "ac_cv_func_$ac_func=yes"
5695 echo "configure: failed program was:" >&5
5696 cat conftest.$ac_ext >&5
5698 eval "ac_cv_func_$ac_func=no"
5703 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5704 echo "$ac_t""yes" 1>&6
5705 cat >> confdefs.h <<EOF
5706 #define CRAY_STACKSEG_END $ac_func
5711 echo "$ac_t""no" 1>&6
5717 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5718 echo "configure:5719: checking stack direction for C alloca" >&5
5719 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5720 echo $ac_n "(cached) $ac_c" 1>&6
5722 if test "$cross_compiling" = yes; then
5723 ac_cv_c_stack_direction=0
5725 cat > conftest.$ac_ext <<EOF
5726 #line 5727 "configure"
5727 #include "confdefs.h"
5728 find_stack_direction ()
5730 static char *addr = 0;
5735 return find_stack_direction ();
5738 return (&dummy > addr) ? 1 : -1;
5742 exit (find_stack_direction() < 0);
5745 if { (eval echo configure:5746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5747 ac_cv_c_stack_direction=1
5749 echo "configure: failed program was:" >&5
5750 cat conftest.$ac_ext >&5
5752 ac_cv_c_stack_direction=-1
5759 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5760 cat >> confdefs.h <<EOF
5761 #define STACK_DIRECTION $ac_cv_c_stack_direction
5769 # Extract the first word of "$ac_prog", so it can be a program name with args.
5770 set dummy $ac_prog; ac_word=$2
5771 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5772 echo "configure:5773: checking for $ac_word" >&5
5773 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
5774 echo $ac_n "(cached) $ac_c" 1>&6
5776 if test -n "$PERL"; then
5777 ac_cv_prog_PERL="$PERL" # Let the user override the test.
5779 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5781 for ac_dir in $ac_dummy; do
5782 test -z "$ac_dir" && ac_dir=.
5783 if test -f $ac_dir/$ac_word; then
5784 ac_cv_prog_PERL="$ac_prog"
5791 PERL="$ac_cv_prog_PERL"
5792 if test -n "$PERL"; then
5793 echo "$ac_t""$PERL" 1>&6
5795 echo "$ac_t""no" 1>&6
5798 test -n "$PERL" && break
5800 test -n "$PERL" || PERL="false"
5807 SIGNAL_HANDLER=include/i386-signal.h
5810 SIGNAL_HANDLER=include/sparc-signal.h
5813 SYSDEP_SOURCES=sysdep/ia64.c
5814 test -d sysdep || mkdir sysdep
5817 SIGNAL_HANDLER=include/default-signal.h
5821 # If we're using sjlj exceptions, forget what we just learned.
5822 if test "$libgcj_sjlj" = yes; then
5823 SIGNAL_HANDLER=include/default-signal.h
5830 if test "${multilib}" = "yes"; then
5831 multilib_arg="--enable-multilib"
5840 cat > confcache <<\EOF
5841 # This file is a shell script that caches the results of configure
5842 # tests run on this system so they can be shared between configure
5843 # scripts and configure runs. It is not useful on other systems.
5844 # If it contains results you don't want to keep, you may remove or edit it.
5846 # By default, configure uses ./config.cache as the cache file,
5847 # creating it if it does not exist already. You can give configure
5848 # the --cache-file=FILE option to use a different cache file; that is
5849 # what configure does when it calls configure scripts in
5850 # subdirectories, so they share the cache.
5851 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5852 # config.status only pays attention to the cache file if you give it the
5853 # --recheck option to rerun configure.
5856 # The following way of writing the cache mishandles newlines in values,
5857 # but we know of no workaround that is simple, portable, and efficient.
5858 # So, don't put newlines in cache variables' values.
5859 # Ultrix sh set writes to stderr and can't be redirected directly,
5860 # and sets the high bit in the cache file unless we assign to the vars.
5862 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5864 # `set' does not quote correctly, so add quotes (double-quote substitution
5865 # turns \\\\ into \\, and sed turns \\ into \).
5867 -e "s/'/'\\\\''/g" \
5868 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5871 # `set' quotes correctly as required by POSIX, so do not add quotes.
5872 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5875 if cmp -s $cache_file confcache; then
5878 if test -w $cache_file; then
5879 echo "updating cache $cache_file"
5880 cat confcache > $cache_file
5882 echo "not updating unwritable cache $cache_file"
5887 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5889 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5890 # Let make expand exec_prefix.
5891 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5893 # Any assignment to VPATH causes Sun make to only execute
5894 # the first set of double-colon rules, so remove it if not needed.
5895 # If there is a colon in the path, we need to keep it.
5896 if test "x$srcdir" = x.; then
5897 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5900 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5902 DEFS=-DHAVE_CONFIG_H
5904 # Without the "./", some shells look in PATH for config.status.
5905 : ${CONFIG_STATUS=./config.status}
5907 echo creating $CONFIG_STATUS
5908 rm -f $CONFIG_STATUS
5909 cat > $CONFIG_STATUS <<EOF
5911 # Generated automatically by configure.
5912 # Run this file to recreate the current configuration.
5913 # This directory was configured as follows,
5914 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5916 # $0 $ac_configure_args
5918 # Compiler output produced by configure, useful for debugging
5919 # configure, is in ./config.log if it exists.
5921 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5924 case "\$ac_option" in
5925 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5926 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5927 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5928 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5929 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5931 -help | --help | --hel | --he | --h)
5932 echo "\$ac_cs_usage"; exit 0 ;;
5933 *) echo "\$ac_cs_usage"; exit 1 ;;
5937 ac_given_srcdir=$srcdir
5938 ac_given_INSTALL="$INSTALL"
5940 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
5942 cat >> $CONFIG_STATUS <<EOF
5944 # Protect against being on the right side of a sed subst in config.status.
5945 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5946 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5950 s%@CFLAGS@%$CFLAGS%g
5951 s%@CPPFLAGS@%$CPPFLAGS%g
5952 s%@CXXFLAGS@%$CXXFLAGS%g
5953 s%@FFLAGS@%$FFLAGS%g
5955 s%@LDFLAGS@%$LDFLAGS%g
5957 s%@exec_prefix@%$exec_prefix%g
5958 s%@prefix@%$prefix%g
5959 s%@program_transform_name@%$program_transform_name%g
5960 s%@bindir@%$bindir%g
5961 s%@sbindir@%$sbindir%g
5962 s%@libexecdir@%$libexecdir%g
5963 s%@datadir@%$datadir%g
5964 s%@sysconfdir@%$sysconfdir%g
5965 s%@sharedstatedir@%$sharedstatedir%g
5966 s%@localstatedir@%$localstatedir%g
5967 s%@libdir@%$libdir%g
5968 s%@includedir@%$includedir%g
5969 s%@oldincludedir@%$oldincludedir%g
5970 s%@infodir@%$infodir%g
5971 s%@mandir@%$mandir%g
5973 s%@host_alias@%$host_alias%g
5974 s%@host_cpu@%$host_cpu%g
5975 s%@host_vendor@%$host_vendor%g
5976 s%@host_os@%$host_os%g
5977 s%@target@%$target%g
5978 s%@target_alias@%$target_alias%g
5979 s%@target_cpu@%$target_cpu%g
5980 s%@target_vendor@%$target_vendor%g
5981 s%@target_os@%$target_os%g
5983 s%@build_alias@%$build_alias%g
5984 s%@build_cpu@%$build_cpu%g
5985 s%@build_vendor@%$build_vendor%g
5986 s%@build_os@%$build_os%g
5987 s%@libgcj_basedir@%$libgcj_basedir%g
5990 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5991 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5992 s%@INSTALL_DATA@%$INSTALL_DATA%g
5993 s%@PACKAGE@%$PACKAGE%g
5994 s%@VERSION@%$VERSION%g
5995 s%@ACLOCAL@%$ACLOCAL%g
5996 s%@AUTOCONF@%$AUTOCONF%g
5997 s%@AUTOMAKE@%$AUTOMAKE%g
5998 s%@AUTOHEADER@%$AUTOHEADER%g
5999 s%@MAKEINFO@%$MAKEINFO%g
6000 s%@SET_MAKE@%$SET_MAKE%g
6003 s%@RANLIB@%$RANLIB%g
6004 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
6005 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
6007 s%@EXEEXT@%$EXEEXT%g
6008 s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
6009 s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
6010 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
6011 s%@INCLTDL@%$INCLTDL%g
6012 s%@LIBLTDL@%$LIBLTDL%g
6013 s%@DIRLTDL@%$DIRLTDL%g
6015 s%@OBJEXT@%$OBJEXT%g
6017 s%@LIBTOOL@%$LIBTOOL%g
6018 s%@CXXCPP@%$CXXCPP%g
6019 s%@subdirs@%$subdirs%g
6020 s%@COMPPATH@%$COMPPATH%g
6021 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
6022 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
6023 s%@LIBDATASTARTSPEC@%$LIBDATASTARTSPEC%g
6025 s%@SYSTEMSPEC@%$SYSTEMSPEC%g
6026 s%@LIBGCJTESTSPEC@%$LIBGCJTESTSPEC%g
6027 s%@ZLIBSPEC@%$ZLIBSPEC%g
6028 s%@ZLIBTESTSPEC@%$ZLIBTESTSPEC%g
6029 s%@GCLIBS@%$GCLIBS%g
6030 s%@GCINCS@%$GCINCS%g
6031 s%@GCDEPS@%$GCDEPS%g
6032 s%@GCOBJS@%$GCOBJS%g
6033 s%@GCSPEC@%$GCSPEC%g
6034 s%@JC1GCSPEC@%$JC1GCSPEC%g
6035 s%@GCTESTSPEC@%$GCTESTSPEC%g
6036 s%@THREADLIBS@%$THREADLIBS%g
6037 s%@THREADINCS@%$THREADINCS%g
6038 s%@THREADDEPS@%$THREADDEPS%g
6039 s%@THREADOBJS@%$THREADOBJS%g
6040 s%@THREADSPEC@%$THREADSPEC%g
6041 s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
6042 s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
6044 s%@GCJFLAGS@%$GCJFLAGS%g
6048 s%@DIVIDESPEC@%$DIVIDESPEC%g
6049 s%@EXCEPTIONSPEC@%$EXCEPTIONSPEC%g
6050 s%@FORCELIBGCCSPEC@%$FORCELIBGCCSPEC%g
6051 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
6052 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
6053 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
6054 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
6055 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
6056 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
6057 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
6058 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
6059 s%@NEEDS_DATA_START_TRUE@%$NEEDS_DATA_START_TRUE%g
6060 s%@NEEDS_DATA_START_FALSE@%$NEEDS_DATA_START_FALSE%g
6061 s%@EH_COMMON_INCLUDE@%$EH_COMMON_INCLUDE%g
6062 s%@AM_RUNTESTFLAGS@%$AM_RUNTESTFLAGS%g
6063 s%@ALLOCA@%$ALLOCA%g
6065 s%@SYSDEP_SOURCES@%$SYSDEP_SOURCES%g
6071 cat >> $CONFIG_STATUS <<\EOF
6073 # Split the substitutions into bite-sized pieces for seds with
6074 # small command number limits, like on Digital OSF/1 and HP-UX.
6075 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6076 ac_file=1 # Number of current file.
6077 ac_beg=1 # First line for current file.
6078 ac_end=$ac_max_sed_cmds # Line after last line for current file.
6081 while $ac_more_lines; do
6082 if test $ac_beg -gt 1; then
6083 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6085 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6087 if test ! -s conftest.s$ac_file; then
6089 rm -f conftest.s$ac_file
6091 if test -z "$ac_sed_cmds"; then
6092 ac_sed_cmds="sed -f conftest.s$ac_file"
6094 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6096 ac_file=`expr $ac_file + 1`
6098 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6101 if test -z "$ac_sed_cmds"; then
6106 cat >> $CONFIG_STATUS <<EOF
6108 CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile"}
6110 cat >> $CONFIG_STATUS <<\EOF
6111 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6112 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6114 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6115 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6116 *) ac_file_in="${ac_file}.in" ;;
6119 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6121 # Remove last slash and all that follows it. Not all systems have dirname.
6122 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6123 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6124 # The file is in a subdirectory.
6125 test ! -d "$ac_dir" && mkdir "$ac_dir"
6126 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6127 # A "../" for each directory in $ac_dir_suffix.
6128 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6130 ac_dir_suffix= ac_dots=
6133 case "$ac_given_srcdir" in
6135 if test -z "$ac_dots"; then top_srcdir=.
6136 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6137 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6139 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6140 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6143 case "$ac_given_INSTALL" in
6144 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6145 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6148 echo creating "$ac_file"
6150 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6152 *Makefile*) ac_comsub="1i\\
6153 # $configure_input" ;;
6157 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6159 s%@configure_input@%$configure_input%g
6160 s%@srcdir@%$srcdir%g
6161 s%@top_srcdir@%$top_srcdir%g
6162 s%@INSTALL@%$INSTALL%g
6163 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6167 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6168 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6170 # ac_d sets the value in "#define NAME VALUE" lines.
6171 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6172 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6175 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6176 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6177 ac_uB='\([ ]\)%\1#\2define\3'
6180 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6181 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6182 ac_eB='$%\1#\2define\3'
6186 if test "${CONFIG_HEADERS+set}" != set; then
6188 cat >> $CONFIG_STATUS <<EOF
6189 CONFIG_HEADERS="include/config.h"
6191 cat >> $CONFIG_STATUS <<\EOF
6193 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6194 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6196 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6197 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6198 *) ac_file_in="${ac_file}.in" ;;
6201 echo creating $ac_file
6203 rm -f conftest.frag conftest.in conftest.out
6204 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6205 cat $ac_file_inputs > conftest.in
6209 # Transform confdefs.h into a sed script conftest.vals that substitutes
6210 # the proper values into config.h.in to produce config.h. And first:
6211 # Protect against being on the right side of a sed subst in config.status.
6212 # Protect against being in an unquoted here document in config.status.
6214 cat > conftest.hdr <<\EOF
6217 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6221 sed -n -f conftest.hdr confdefs.h > conftest.vals
6224 # This sed command replaces #undef with comments. This is necessary, for
6225 # example, in the case of _POSIX_SOURCE, which is predefined and required
6226 # on some systems where configure will not decide to define it.
6227 cat >> conftest.vals <<\EOF
6228 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6231 # Break up conftest.vals because some shells have a limit on
6232 # the size of here documents, and old seds have small limits too.
6237 ac_lines=`grep -c . conftest.vals`
6238 # grep -c gives empty output for an empty file on some AIX systems.
6239 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6240 # Write a limited-size here document to conftest.frag.
6241 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6242 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6244 sed -f conftest.frag conftest.in > conftest.out
6246 mv conftest.out conftest.in
6248 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6250 mv conftest.tail conftest.vals
6254 cat >> $CONFIG_STATUS <<\EOF
6255 rm -f conftest.frag conftest.h
6256 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6257 cat conftest.in >> conftest.h
6259 if cmp -s $ac_file conftest.h 2>/dev/null; then
6260 echo "$ac_file is unchanged"
6263 # Remove last slash and all that follows it. Not all systems have dirname.
6264 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6265 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6266 # The file is in a subdirectory.
6267 test ! -d "$ac_dir" && mkdir "$ac_dir"
6270 mv conftest.h $ac_file
6276 cat >> $CONFIG_STATUS <<EOF
6277 ac_sources="java/io/$FILE_DESCRIPTOR java/lang/${PROCESS}Process.java java/lang/nat${PROCESS}Process.cc include/$GCHDR include/$THREADH $SIGNAL_HANDLER"
6278 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"
6281 cat >> $CONFIG_STATUS <<\EOF
6282 srcdir=$ac_given_srcdir
6283 while test -n "$ac_sources"; do
6284 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
6285 set $ac_sources; ac_source=$1; shift; ac_sources=$*
6287 echo "linking $srcdir/$ac_source to $ac_dest"
6289 if test ! -r $srcdir/$ac_source; then
6290 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
6294 # Make relative symlinks.
6295 # Remove last slash and all that follows it. Not all systems have dirname.
6296 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
6297 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
6298 # The dest file is in a subdirectory.
6299 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
6300 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
6301 # A "../" for each directory in $ac_dest_dir_suffix.
6302 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
6304 ac_dest_dir_suffix= ac_dots=
6308 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
6309 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
6312 # Make a symlink if possible; otherwise try a hard link.
6313 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
6314 ln $srcdir/$ac_source $ac_dest; then :
6316 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
6320 cat >> $CONFIG_STATUS <<EOF
6325 with_multisubdir=${with_multisubdir}
6326 ac_configure_args="${multilib_arg} ${ac_configure_args}"
6327 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
6328 libgcj_basedir=${libgcj_basedir}
6333 cat >> $CONFIG_STATUS <<\EOF
6334 test -z "$CONFIG_HEADERS" || echo timestamp > include/stamp-h
6335 if test -n "$CONFIG_FILES"; then
6336 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
6340 chmod +x $CONFIG_STATUS
6341 rm -fr confdefs* $ac_clean_files
6342 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6344 if test "$no_recursion" != yes; then
6346 # Remove --cache-file and --srcdir arguments so they do not pile up.
6347 ac_sub_configure_args=
6349 for ac_arg in $ac_configure_args; do
6350 if test -n "$ac_prev"; then
6355 -cache-file | --cache-file | --cache-fil | --cache-fi \
6356 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
6357 ac_prev=cache_file ;;
6358 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
6359 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
6361 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
6363 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
6365 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
6369 for ac_config_dir in $DIRLTDL; do
6371 # Do not complain, so a configure script can configure whichever
6372 # parts of a large source tree are present.
6373 if test ! -d $srcdir/$ac_config_dir; then
6377 echo configuring in $ac_config_dir
6382 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
6384 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
6392 # A "../" for each directory in /$ac_config_dir.
6393 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
6396 .) # No --srcdir option. We are building in place.
6397 ac_sub_srcdir=$srcdir ;;
6398 /*) # Absolute path.
6399 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
6401 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
6404 # Check for guested configure; otherwise get Cygnus style configure.
6405 if test -f $ac_sub_srcdir/configure; then
6406 ac_sub_configure=$ac_sub_srcdir/configure
6407 elif test -f $ac_sub_srcdir/configure.in; then
6408 ac_sub_configure=$ac_configure
6410 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
6414 # The recursion is here.
6415 if test -n "$ac_sub_configure"; then
6417 # Make the cache file name correct relative to the subdirectory.
6418 case "$cache_file" in
6419 /*) ac_sub_cache_file=$cache_file ;;
6421 ac_sub_cache_file="$ac_dots$cache_file" ;;
6423 case "$ac_given_INSTALL" in
6424 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6425 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6428 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
6429 # The eval makes quoting arguments work.
6430 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
6433 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }