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-hash-synchronization
43 Use global hash table for monitor locks"
45 --enable-libgcj-debug enable runtime debugging code"
47 --enable-interpreter enable interpreter"
49 --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
51 --disable-java-net disable java.net"
53 --disable-jvmpi disable JVMPI support"
55 --with-ecos enable runtime eCos target support"
57 --with-system-zlib use installed libz"
59 --enable-java-gc=TYPE choose garbage collector [boehm]"
61 --with-x use the X Window System"
63 --enable-java-awt list of AWT peer implementations to be built"
65 # Initialize some variables set by options.
66 # The variables have the same names as the options, with
67 # dashes changed to underlines.
69 cache_file=./config.cache
78 program_transform_name=s,x,x,
86 bindir='${exec_prefix}/bin'
87 sbindir='${exec_prefix}/sbin'
88 libexecdir='${exec_prefix}/libexec'
89 datadir='${prefix}/share'
90 sysconfdir='${prefix}/etc'
91 sharedstatedir='${prefix}/com'
92 localstatedir='${prefix}/var'
93 libdir='${exec_prefix}/lib'
94 includedir='${prefix}/include'
95 oldincludedir='/usr/include'
96 infodir='${prefix}/info'
97 mandir='${prefix}/man'
99 # Initialize some other variables.
102 SHELL=${CONFIG_SHELL-/bin/sh}
103 # Maximum number of lines to put in a shell here document.
110 # If the previous option needs an argument, assign it.
111 if test -n "$ac_prev"; then
112 eval "$ac_prev=\$ac_option"
118 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
122 # Accept the important Cygnus configure options, so we can diagnose typos.
126 -bindir | --bindir | --bindi | --bind | --bin | --bi)
128 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
129 bindir="$ac_optarg" ;;
131 -build | --build | --buil | --bui | --bu)
133 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
134 build="$ac_optarg" ;;
136 -cache-file | --cache-file | --cache-fil | --cache-fi \
137 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
138 ac_prev=cache_file ;;
139 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
140 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
141 cache_file="$ac_optarg" ;;
143 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
145 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
147 datadir="$ac_optarg" ;;
149 -disable-* | --disable-*)
150 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
151 # Reject names that are not valid shell variable names.
152 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
153 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
155 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
156 eval "enable_${ac_feature}=no" ;;
158 -enable-* | --enable-*)
159 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
160 # Reject names that are not valid shell variable names.
161 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
162 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
164 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
169 eval "enable_${ac_feature}='$ac_optarg'" ;;
171 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
172 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
173 | --exec | --exe | --ex)
174 ac_prev=exec_prefix ;;
175 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
176 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
177 | --exec=* | --exe=* | --ex=*)
178 exec_prefix="$ac_optarg" ;;
180 -gas | --gas | --ga | --g)
181 # Obsolete; use --with-gas.
184 -help | --help | --hel | --he)
185 # Omit some internal or obsolete options to make the list less imposing.
186 # This message is too long to be a string in the A/UX 3.1 sh.
188 Usage: configure [options] [host]
189 Options: [defaults in brackets after descriptions]
191 --cache-file=FILE cache test results in FILE
192 --help print this message
193 --no-create do not create output files
194 --quiet, --silent do not print \`checking...' messages
195 --version print the version of autoconf that created configure
196 Directory and file names:
197 --prefix=PREFIX install architecture-independent files in PREFIX
199 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
201 --bindir=DIR user executables in DIR [EPREFIX/bin]
202 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
203 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
204 --datadir=DIR read-only architecture-independent data in DIR
206 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
207 --sharedstatedir=DIR modifiable architecture-independent data in DIR
209 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
210 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
211 --includedir=DIR C header files in DIR [PREFIX/include]
212 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
213 --infodir=DIR info documentation in DIR [PREFIX/info]
214 --mandir=DIR man documentation in DIR [PREFIX/man]
215 --srcdir=DIR find the sources in DIR [configure dir or ..]
216 --program-prefix=PREFIX prepend PREFIX to installed program names
217 --program-suffix=SUFFIX append SUFFIX to installed program names
218 --program-transform-name=PROGRAM
219 run sed PROGRAM on installed program names
223 --build=BUILD configure for building on BUILD [BUILD=HOST]
224 --host=HOST configure for HOST [guessed]
225 --target=TARGET configure for TARGET [TARGET=HOST]
226 Features and packages:
227 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
228 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
229 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
230 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
231 --x-includes=DIR X include files are in DIR
232 --x-libraries=DIR X library files are in DIR
234 if test -n "$ac_help"; then
235 echo "--enable and --with options recognized:$ac_help"
239 -host | --host | --hos | --ho)
241 -host=* | --host=* | --hos=* | --ho=*)
244 -includedir | --includedir | --includedi | --included | --include \
245 | --includ | --inclu | --incl | --inc)
246 ac_prev=includedir ;;
247 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
248 | --includ=* | --inclu=* | --incl=* | --inc=*)
249 includedir="$ac_optarg" ;;
251 -infodir | --infodir | --infodi | --infod | --info | --inf)
253 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
254 infodir="$ac_optarg" ;;
256 -libdir | --libdir | --libdi | --libd)
258 -libdir=* | --libdir=* | --libdi=* | --libd=*)
259 libdir="$ac_optarg" ;;
261 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
262 | --libexe | --libex | --libe)
263 ac_prev=libexecdir ;;
264 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
265 | --libexe=* | --libex=* | --libe=*)
266 libexecdir="$ac_optarg" ;;
268 -localstatedir | --localstatedir | --localstatedi | --localstated \
269 | --localstate | --localstat | --localsta | --localst \
270 | --locals | --local | --loca | --loc | --lo)
271 ac_prev=localstatedir ;;
272 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
273 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
274 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
275 localstatedir="$ac_optarg" ;;
277 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
279 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
280 mandir="$ac_optarg" ;;
283 # Obsolete; use --without-fp.
286 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
290 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
291 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
294 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
295 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
296 | --oldin | --oldi | --old | --ol | --o)
297 ac_prev=oldincludedir ;;
298 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
299 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
300 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
301 oldincludedir="$ac_optarg" ;;
303 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
305 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
306 prefix="$ac_optarg" ;;
308 -program-prefix | --program-prefix | --program-prefi | --program-pref \
309 | --program-pre | --program-pr | --program-p)
310 ac_prev=program_prefix ;;
311 -program-prefix=* | --program-prefix=* | --program-prefi=* \
312 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
313 program_prefix="$ac_optarg" ;;
315 -program-suffix | --program-suffix | --program-suffi | --program-suff \
316 | --program-suf | --program-su | --program-s)
317 ac_prev=program_suffix ;;
318 -program-suffix=* | --program-suffix=* | --program-suffi=* \
319 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
320 program_suffix="$ac_optarg" ;;
322 -program-transform-name | --program-transform-name \
323 | --program-transform-nam | --program-transform-na \
324 | --program-transform-n | --program-transform- \
325 | --program-transform | --program-transfor \
326 | --program-transfo | --program-transf \
327 | --program-trans | --program-tran \
328 | --progr-tra | --program-tr | --program-t)
329 ac_prev=program_transform_name ;;
330 -program-transform-name=* | --program-transform-name=* \
331 | --program-transform-nam=* | --program-transform-na=* \
332 | --program-transform-n=* | --program-transform-=* \
333 | --program-transform=* | --program-transfor=* \
334 | --program-transfo=* | --program-transf=* \
335 | --program-trans=* | --program-tran=* \
336 | --progr-tra=* | --program-tr=* | --program-t=*)
337 program_transform_name="$ac_optarg" ;;
339 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
340 | -silent | --silent | --silen | --sile | --sil)
343 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
345 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
347 sbindir="$ac_optarg" ;;
349 -sharedstatedir | --sharedstatedir | --sharedstatedi \
350 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
351 | --sharedst | --shareds | --shared | --share | --shar \
353 ac_prev=sharedstatedir ;;
354 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
355 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
356 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
358 sharedstatedir="$ac_optarg" ;;
360 -site | --site | --sit)
362 -site=* | --site=* | --sit=*)
365 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
367 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
368 srcdir="$ac_optarg" ;;
370 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
371 | --syscon | --sysco | --sysc | --sys | --sy)
372 ac_prev=sysconfdir ;;
373 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
374 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
375 sysconfdir="$ac_optarg" ;;
377 -target | --target | --targe | --targ | --tar | --ta | --t)
379 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
380 target="$ac_optarg" ;;
382 -v | -verbose | --verbose | --verbos | --verbo | --verb)
385 -version | --version | --versio | --versi | --vers)
386 echo "configure generated by autoconf version 2.13"
390 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
391 # Reject names that are not valid shell variable names.
392 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
393 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
395 ac_package=`echo $ac_package| sed 's/-/_/g'`
400 eval "with_${ac_package}='$ac_optarg'" ;;
402 -without-* | --without-*)
403 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
404 # Reject names that are not valid shell variable names.
405 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
406 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
408 ac_package=`echo $ac_package| sed 's/-/_/g'`
409 eval "with_${ac_package}=no" ;;
412 # Obsolete; use --with-x.
415 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
416 | --x-incl | --x-inc | --x-in | --x-i)
417 ac_prev=x_includes ;;
418 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
419 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
420 x_includes="$ac_optarg" ;;
422 -x-libraries | --x-libraries | --x-librarie | --x-librari \
423 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
424 ac_prev=x_libraries ;;
425 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
426 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
427 x_libraries="$ac_optarg" ;;
429 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
433 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
434 echo "configure: warning: $ac_option: invalid host type" 1>&2
436 if test "x$nonopt" != xNONE; then
437 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
445 if test -n "$ac_prev"; then
446 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
449 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
451 # File descriptor usage:
454 # 2 errors and warnings
455 # 3 some systems may open it to /dev/tty
456 # 4 used on the Kubota Titan
457 # 6 checking for... messages and results
458 # 5 compiler messages saved in config.log
459 if test "$silent" = yes; then
467 This file contains any messages produced by compilers while
468 running configure, to aid debugging if configure makes a mistake.
471 # Strip out --no-create and --no-recursion so they do not pile up.
472 # Also quote any args containing shell metacharacters.
477 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
478 | --no-cr | --no-c) ;;
479 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
480 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
481 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
482 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
483 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
488 # Only set these to C if already set. These must not be set unconditionally
489 # because not all systems understand e.g. LANG=C (notably SCO).
490 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
491 # Non-C LC_CTYPE values break the ctype check.
492 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
493 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
494 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
495 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
497 # confdefs.h avoids OS command line length limits that DEFS can exceed.
498 rm -rf conftest* confdefs.h
499 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
502 # A filename unique to this package, relative to the directory that
503 # configure is in, which we can look for to find out if srcdir is correct.
504 ac_unique_file=java/lang/System.java
506 # Find the source files, if location was not specified.
507 if test -z "$srcdir"; then
508 ac_srcdir_defaulted=yes
509 # Try the directory containing this script, then its parent.
511 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
512 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
514 if test ! -r $srcdir/$ac_unique_file; then
518 ac_srcdir_defaulted=no
520 if test ! -r $srcdir/$ac_unique_file; then
521 if test "$ac_srcdir_defaulted" = yes; then
522 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
524 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
527 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
529 # Prefer explicitly selected file to automatically selected ones.
530 if test -z "$CONFIG_SITE"; then
531 if test "x$prefix" != xNONE; then
532 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
534 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
537 for ac_site_file in $CONFIG_SITE; do
538 if test -r "$ac_site_file"; then
539 echo "loading site script $ac_site_file"
544 if test -r "$cache_file"; then
545 echo "loading cache $cache_file"
548 echo "creating cache $cache_file"
553 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
554 ac_cpp='$CPP $CPPFLAGS'
555 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
556 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
557 cross_compiling=$ac_cv_prog_cc_cross
561 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
562 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
563 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
570 ac_n= ac_c='\c' ac_t=
576 for ac_dir in .. $srcdir/..; do
577 if test -f $ac_dir/install-sh; then
579 ac_install_sh="$ac_aux_dir/install-sh -c"
581 elif test -f $ac_dir/install.sh; then
583 ac_install_sh="$ac_aux_dir/install.sh -c"
587 if test -z "$ac_aux_dir"; then
588 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
590 ac_config_guess=$ac_aux_dir/config.guess
591 ac_config_sub=$ac_aux_dir/config.sub
592 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
596 # Do some error checking and defaulting for the host and target type.
598 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
601 # 1. You are not allowed to specify --host, --target, and nonopt at the
603 # 2. Host defaults to nonopt.
604 # 3. If nonopt is not specified, then host defaults to the current host,
605 # as determined by config.guess.
606 # 4. Target and build default to nonopt.
607 # 5. If nonopt is not specified, then target and build default to host.
609 # The aliases save the names the user supplied, while $host etc.
610 # will get canonicalized.
611 case $host---$target---$nonopt in
612 NONE---*---* | *---NONE---* | *---*---NONE) ;;
613 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
617 # Make sure we can run config.sub.
618 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
619 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
622 echo $ac_n "checking host system type""... $ac_c" 1>&6
623 echo "configure:624: checking host system type" >&5
626 case "$host_alias" in
630 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
631 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
633 *) host_alias=$nonopt ;;
637 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
638 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
639 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
640 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
641 echo "$ac_t""$host" 1>&6
643 echo $ac_n "checking target system type""... $ac_c" 1>&6
644 echo "configure:645: checking target system type" >&5
647 case "$target_alias" in
650 NONE) target_alias=$host_alias ;;
651 *) target_alias=$nonopt ;;
655 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
656 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
657 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
658 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
659 echo "$ac_t""$target" 1>&6
661 echo $ac_n "checking build system type""... $ac_c" 1>&6
662 echo "configure:663: checking build system type" >&5
665 case "$build_alias" in
668 NONE) build_alias=$host_alias ;;
669 *) build_alias=$nonopt ;;
673 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
674 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
675 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
676 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
677 echo "$ac_t""$build" 1>&6
679 test "$host_alias" != "$target_alias" &&
680 test "$program_prefix$program_suffix$program_transform_name" = \
682 program_prefix=${target_alias}-
684 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
685 echo "configure:686: checking whether ln -s works" >&5
686 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
687 echo $ac_n "(cached) $ac_c" 1>&6
690 if ln -s X conftestdata 2>/dev/null
693 ac_cv_prog_LN_S="ln -s"
698 LN_S="$ac_cv_prog_LN_S"
699 if test "$ac_cv_prog_LN_S" = "ln -s"; then
700 echo "$ac_t""yes" 1>&6
702 echo "$ac_t""no" 1>&6
706 # Check whether --with-target-subdir or --without-target-subdir was given.
707 if test "${with_target_subdir+set}" = set; then
708 withval="$with_target_subdir"
712 # Check whether --with-cross-host or --without-cross-host was given.
713 if test "${with_cross_host+set}" = set; then
714 withval="$with_cross_host"
719 # Find a good install program. We prefer a C program (faster),
720 # so one script is as good as another. But avoid the broken or
721 # incompatible versions:
722 # SysV /etc/install, /usr/sbin/install
723 # SunOS /usr/etc/install
726 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
727 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
728 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
729 # ./install, which can be erroneously created by make from ./install.sh.
730 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
731 echo "configure:732: checking for a BSD compatible install" >&5
732 if test -z "$INSTALL"; then
733 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
734 echo $ac_n "(cached) $ac_c" 1>&6
736 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
737 for ac_dir in $PATH; do
738 # Account for people who put trailing slashes in PATH elements.
740 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
742 # OSF1 and SCO ODT 3.0 have their own names for install.
743 # Don't use installbsd from OSF since it installs stuff as root
745 for ac_prog in ginstall scoinst install; do
746 if test -f $ac_dir/$ac_prog; then
747 if test $ac_prog = install &&
748 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
749 # AIX install. It has an incompatible calling convention.
752 ac_cv_path_install="$ac_dir/$ac_prog -c"
763 if test "${ac_cv_path_install+set}" = set; then
764 INSTALL="$ac_cv_path_install"
766 # As a last resort, use the slow shell script. We don't cache a
767 # path for INSTALL within a source directory, because that will
768 # break other packages using the cache if that directory is
769 # removed, or if the path is relative.
770 INSTALL="$ac_install_sh"
773 echo "$ac_t""$INSTALL" 1>&6
775 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
776 # It thinks the first close brace ends the variable substitution.
777 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
779 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
781 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
783 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
784 echo "configure:785: checking whether build environment is sane" >&5
787 echo timestamp > conftestfile
788 # Do `set' in a subshell so we don't clobber the current shell's
789 # arguments. Must try -L first in case configure is actually a
790 # symlink; some systems play weird games with the mod time of symlinks
791 # (eg FreeBSD returns the mod time of the symlink's containing
794 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
795 if test "$*" = "X"; then
797 set X `ls -t $srcdir/configure conftestfile`
799 if test "$*" != "X $srcdir/configure conftestfile" \
800 && test "$*" != "X conftestfile $srcdir/configure"; then
802 # If neither matched, then we have a broken ls. This can happen
803 # if, for instance, CONFIG_SHELL is bash and it inherits a
804 # broken ls alias from the environment. This has actually
805 # happened. Such a system could not be considered "sane".
806 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
807 alias in your environment" 1>&2; exit 1; }
810 test "$2" = conftestfile
816 { echo "configure: error: newly created file is older than distributed files!
817 Check your system clock" 1>&2; exit 1; }
820 echo "$ac_t""yes" 1>&6
821 if test "$program_transform_name" = s,x,x,; then
822 program_transform_name=
824 # Double any \ or $. echo might interpret backslashes.
825 cat <<\EOF_SED > conftestsed
826 s,\\,\\\\,g; s,\$,$$,g
828 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
831 test "$program_prefix" != NONE &&
832 program_transform_name="s,^,${program_prefix},; $program_transform_name"
833 # Use a double $ so make ignores it.
834 test "$program_suffix" != NONE &&
835 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
837 # sed with no file args requires a program.
838 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
840 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
841 echo "configure:842: checking whether ${MAKE-make} sets \${MAKE}" >&5
842 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
843 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
844 echo $ac_n "(cached) $ac_c" 1>&6
846 cat > conftestmake <<\EOF
848 @echo 'ac_maketemp="${MAKE}"'
850 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
851 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
852 if test -n "$ac_maketemp"; then
853 eval ac_cv_prog_make_${ac_make}_set=yes
855 eval ac_cv_prog_make_${ac_make}_set=no
859 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
860 echo "$ac_t""yes" 1>&6
863 echo "$ac_t""no" 1>&6
864 SET_MAKE="MAKE=${MAKE-make}"
867 if test $host != $build; then
868 ac_tool_prefix=${host_alias}-
873 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
874 echo "configure:875: checking for Cygwin environment" >&5
875 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
876 echo $ac_n "(cached) $ac_c" 1>&6
878 cat > conftest.$ac_ext <<EOF
879 #line 880 "configure"
880 #include "confdefs.h"
885 #define __CYGWIN__ __CYGWIN32__
890 if { (eval echo configure:891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
894 echo "configure: failed program was:" >&5
895 cat conftest.$ac_ext >&5
903 echo "$ac_t""$ac_cv_cygwin" 1>&6
905 test "$ac_cv_cygwin" = yes && CYGWIN=yes
906 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
907 echo "configure:908: checking for mingw32 environment" >&5
908 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
909 echo $ac_n "(cached) $ac_c" 1>&6
911 cat > conftest.$ac_ext <<EOF
912 #line 913 "configure"
913 #include "confdefs.h"
919 if { (eval echo configure:920: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
923 echo "configure: failed program was:" >&5
924 cat conftest.$ac_ext >&5
932 echo "$ac_t""$ac_cv_mingw32" 1>&6
934 test "$ac_cv_mingw32" = yes && MINGW32=yes
936 # Check whether --enable-multilib or --disable-multilib was given.
937 if test "${enable_multilib+set}" = set; then
938 enableval="$enable_multilib"
939 case "${enableval}" in
942 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
949 if test "${srcdir}" = "."; then
950 if test "${with_target_subdir}" != "."; then
951 libgcj_basedir="${srcdir}/${with_multisrctop}../."
953 libgcj_basedir="${srcdir}/${with_multisrctop}."
956 libgcj_basedir="${srcdir}/."
961 # Make sure we can run config.sub.
962 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
963 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
966 echo $ac_n "checking host system type""... $ac_c" 1>&6
967 echo "configure:968: checking host system type" >&5
970 case "$host_alias" in
974 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
975 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
977 *) host_alias=$nonopt ;;
981 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
982 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
983 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
984 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
985 echo "$ac_t""$host" 1>&6
991 # Extract the first word of "gcc", so it can be a program name with args.
992 set dummy gcc; ac_word=$2
993 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
994 echo "configure:995: checking for $ac_word" >&5
995 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
996 echo $ac_n "(cached) $ac_c" 1>&6
998 if test -n "$CC"; then
999 ac_cv_prog_CC="$CC" # Let the user override the test.
1001 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1003 for ac_dir in $ac_dummy; do
1004 test -z "$ac_dir" && ac_dir=.
1005 if test -f $ac_dir/$ac_word; then
1014 if test -n "$CC"; then
1015 echo "$ac_t""$CC" 1>&6
1017 echo "$ac_t""no" 1>&6
1020 if test -z "$CC"; then
1021 # Extract the first word of "cc", so it can be a program name with args.
1022 set dummy cc; ac_word=$2
1023 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1024 echo "configure:1025: checking for $ac_word" >&5
1025 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1026 echo $ac_n "(cached) $ac_c" 1>&6
1028 if test -n "$CC"; then
1029 ac_cv_prog_CC="$CC" # Let the user override the test.
1031 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1034 for ac_dir in $ac_dummy; do
1035 test -z "$ac_dir" && ac_dir=.
1036 if test -f $ac_dir/$ac_word; then
1037 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1038 ac_prog_rejected=yes
1046 if test $ac_prog_rejected = yes; then
1047 # We found a bogon in the path, so make sure we never use it.
1048 set dummy $ac_cv_prog_CC
1050 if test $# -gt 0; then
1051 # We chose a different compiler from the bogus one.
1052 # However, it has the same basename, so the bogon will be chosen
1053 # first if we set CC to just the basename; use the full file name.
1055 set dummy "$ac_dir/$ac_word" "$@"
1063 if test -n "$CC"; then
1064 echo "$ac_t""$CC" 1>&6
1066 echo "$ac_t""no" 1>&6
1069 if test -z "$CC"; then
1070 case "`uname -s`" in
1072 # Extract the first word of "cl", so it can be a program name with args.
1073 set dummy cl; ac_word=$2
1074 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1075 echo "configure:1076: checking for $ac_word" >&5
1076 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1077 echo $ac_n "(cached) $ac_c" 1>&6
1079 if test -n "$CC"; then
1080 ac_cv_prog_CC="$CC" # Let the user override the test.
1082 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1084 for ac_dir in $ac_dummy; do
1085 test -z "$ac_dir" && ac_dir=.
1086 if test -f $ac_dir/$ac_word; then
1095 if test -n "$CC"; then
1096 echo "$ac_t""$CC" 1>&6
1098 echo "$ac_t""no" 1>&6
1103 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1107 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1108 echo "configure:1109: checking whether we are using GNU C" >&5
1109 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1110 echo $ac_n "(cached) $ac_c" 1>&6
1112 cat > conftest.c <<EOF
1117 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1124 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1126 if test $ac_cv_prog_gcc = yes; then
1132 ac_test_CFLAGS="${CFLAGS+set}"
1133 ac_save_CFLAGS="$CFLAGS"
1135 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1136 echo "configure:1137: checking whether ${CC-cc} accepts -g" >&5
1137 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1138 echo $ac_n "(cached) $ac_c" 1>&6
1140 echo 'void f(){}' > conftest.c
1141 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1150 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1151 if test "$ac_test_CFLAGS" = set; then
1152 CFLAGS="$ac_save_CFLAGS"
1153 elif test $ac_cv_prog_cc_g = yes; then
1154 if test "$GCC" = yes; then
1160 if test "$GCC" = yes; then
1167 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1169 # Extract the first word of "$ac_prog", so it can be a program name with args.
1170 set dummy $ac_prog; ac_word=$2
1171 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1172 echo "configure:1173: checking for $ac_word" >&5
1173 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1174 echo $ac_n "(cached) $ac_c" 1>&6
1176 if test -n "$CXX"; then
1177 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1179 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1181 for ac_dir in $ac_dummy; do
1182 test -z "$ac_dir" && ac_dir=.
1183 if test -f $ac_dir/$ac_word; then
1184 ac_cv_prog_CXX="$ac_prog"
1191 CXX="$ac_cv_prog_CXX"
1192 if test -n "$CXX"; then
1193 echo "$ac_t""$CXX" 1>&6
1195 echo "$ac_t""no" 1>&6
1198 test -n "$CXX" && break
1200 test -n "$CXX" || CXX="gcc"
1204 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1205 echo "configure:1206: checking whether we are using GNU C++" >&5
1206 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1207 echo $ac_n "(cached) $ac_c" 1>&6
1209 cat > conftest.C <<EOF
1214 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1221 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1223 if test $ac_cv_prog_gxx = yes; then
1229 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1230 ac_save_CXXFLAGS="$CXXFLAGS"
1232 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1233 echo "configure:1234: checking whether ${CXX-g++} accepts -g" >&5
1234 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1235 echo $ac_n "(cached) $ac_c" 1>&6
1237 echo 'void f(){}' > conftest.cc
1238 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1239 ac_cv_prog_cxx_g=yes
1247 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1248 if test "$ac_test_CXXFLAGS" = set; then
1249 CXXFLAGS="$ac_save_CXXFLAGS"
1250 elif test $ac_cv_prog_cxx_g = yes; then
1251 if test "$GXX" = yes; then
1257 if test "$GXX" = yes; then
1271 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1272 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1274 cat >> confdefs.h <<EOF
1275 #define PACKAGE "$PACKAGE"
1278 cat >> confdefs.h <<EOF
1279 #define VERSION "$VERSION"
1284 missing_dir=`cd $ac_aux_dir && pwd`
1285 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1286 echo "configure:1287: checking for working aclocal" >&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 (aclocal --version) < /dev/null > /dev/null 2>&1; then
1292 echo "$ac_t""found" 1>&6
1294 ACLOCAL="$missing_dir/missing aclocal"
1295 echo "$ac_t""missing" 1>&6
1298 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1299 echo "configure:1300: checking for working autoconf" >&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 (autoconf --version) < /dev/null > /dev/null 2>&1; then
1305 echo "$ac_t""found" 1>&6
1307 AUTOCONF="$missing_dir/missing autoconf"
1308 echo "$ac_t""missing" 1>&6
1311 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1312 echo "configure:1313: checking for working automake" >&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 (automake --version) < /dev/null > /dev/null 2>&1; then
1318 echo "$ac_t""found" 1>&6
1320 AUTOMAKE="$missing_dir/missing automake"
1321 echo "$ac_t""missing" 1>&6
1324 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1325 echo "configure:1326: checking for working autoheader" >&5
1326 # Run test in a subshell; some versions of sh will print an error if
1327 # an executable is not found, even if stderr is redirected.
1328 # Redirect stdin to placate older versions of autoconf. Sigh.
1329 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1330 AUTOHEADER=autoheader
1331 echo "$ac_t""found" 1>&6
1333 AUTOHEADER="$missing_dir/missing autoheader"
1334 echo "$ac_t""missing" 1>&6
1337 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1338 echo "configure:1339: checking for working makeinfo" >&5
1339 # Run test in a subshell; some versions of sh will print an error if
1340 # an executable is not found, even if stderr is redirected.
1341 # Redirect stdin to placate older versions of autoconf. Sigh.
1342 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1344 echo "$ac_t""found" 1>&6
1346 MAKEINFO="$missing_dir/missing makeinfo"
1347 echo "$ac_t""missing" 1>&6
1352 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we dont
1353 # run it explicitly here, it will be run implicitly before
1354 # LIBGCJ_CONFIGURE, which doesn't work because that means that it will
1355 # be run before AC_CANONICAL_HOST.
1356 echo $ac_n "checking build system type""... $ac_c" 1>&6
1357 echo "configure:1358: checking build system type" >&5
1360 case "$build_alias" in
1363 NONE) build_alias=$host_alias ;;
1364 *) build_alias=$nonopt ;;
1368 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1369 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1370 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1371 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1372 echo "$ac_t""$build" 1>&6
1375 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1376 set dummy ${ac_tool_prefix}as; ac_word=$2
1377 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1378 echo "configure:1379: checking for $ac_word" >&5
1379 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1380 echo $ac_n "(cached) $ac_c" 1>&6
1382 if test -n "$AS"; then
1383 ac_cv_prog_AS="$AS" # Let the user override the test.
1385 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1387 for ac_dir in $ac_dummy; do
1388 test -z "$ac_dir" && ac_dir=.
1389 if test -f $ac_dir/$ac_word; then
1390 ac_cv_prog_AS="${ac_tool_prefix}as"
1395 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1399 if test -n "$AS"; then
1400 echo "$ac_t""$AS" 1>&6
1402 echo "$ac_t""no" 1>&6
1407 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1408 set dummy ${ac_tool_prefix}ar; ac_word=$2
1409 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1410 echo "configure:1411: checking for $ac_word" >&5
1411 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1412 echo $ac_n "(cached) $ac_c" 1>&6
1414 if test -n "$AR"; then
1415 ac_cv_prog_AR="$AR" # Let the user override the test.
1417 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1419 for ac_dir in $ac_dummy; do
1420 test -z "$ac_dir" && ac_dir=.
1421 if test -f $ac_dir/$ac_word; then
1422 ac_cv_prog_AR="${ac_tool_prefix}ar"
1427 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1431 if test -n "$AR"; then
1432 echo "$ac_t""$AR" 1>&6
1434 echo "$ac_t""no" 1>&6
1439 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1440 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1441 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1442 echo "configure:1443: checking for $ac_word" >&5
1443 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1444 echo $ac_n "(cached) $ac_c" 1>&6
1446 if test -n "$RANLIB"; then
1447 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1449 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1451 for ac_dir in $ac_dummy; do
1452 test -z "$ac_dir" && ac_dir=.
1453 if test -f $ac_dir/$ac_word; then
1454 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1461 RANLIB="$ac_cv_prog_RANLIB"
1462 if test -n "$RANLIB"; then
1463 echo "$ac_t""$RANLIB" 1>&6
1465 echo "$ac_t""no" 1>&6
1469 if test -z "$ac_cv_prog_RANLIB"; then
1470 if test -n "$ac_tool_prefix"; then
1471 # Extract the first word of "ranlib", so it can be a program name with args.
1472 set dummy ranlib; ac_word=$2
1473 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1474 echo "configure:1475: checking for $ac_word" >&5
1475 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1476 echo $ac_n "(cached) $ac_c" 1>&6
1478 if test -n "$RANLIB"; then
1479 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1481 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1483 for ac_dir in $ac_dummy; do
1484 test -z "$ac_dir" && ac_dir=.
1485 if test -f $ac_dir/$ac_word; then
1486 ac_cv_prog_RANLIB="ranlib"
1491 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1494 RANLIB="$ac_cv_prog_RANLIB"
1495 if test -n "$RANLIB"; then
1496 echo "$ac_t""$RANLIB" 1>&6
1498 echo "$ac_t""no" 1>&6
1507 # Find a good install program. We prefer a C program (faster),
1508 # so one script is as good as another. But avoid the broken or
1509 # incompatible versions:
1510 # SysV /etc/install, /usr/sbin/install
1511 # SunOS /usr/etc/install
1512 # IRIX /sbin/install
1514 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1515 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1516 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1517 # ./install, which can be erroneously created by make from ./install.sh.
1518 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1519 echo "configure:1520: checking for a BSD compatible install" >&5
1520 if test -z "$INSTALL"; then
1521 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1522 echo $ac_n "(cached) $ac_c" 1>&6
1524 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1525 for ac_dir in $PATH; do
1526 # Account for people who put trailing slashes in PATH elements.
1528 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1530 # OSF1 and SCO ODT 3.0 have their own names for install.
1531 # Don't use installbsd from OSF since it installs stuff as root
1533 for ac_prog in ginstall scoinst install; do
1534 if test -f $ac_dir/$ac_prog; then
1535 if test $ac_prog = install &&
1536 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1537 # AIX install. It has an incompatible calling convention.
1540 ac_cv_path_install="$ac_dir/$ac_prog -c"
1551 if test "${ac_cv_path_install+set}" = set; then
1552 INSTALL="$ac_cv_path_install"
1554 # As a last resort, use the slow shell script. We don't cache a
1555 # path for INSTALL within a source directory, because that will
1556 # break other packages using the cache if that directory is
1557 # removed, or if the path is relative.
1558 INSTALL="$ac_install_sh"
1561 echo "$ac_t""$INSTALL" 1>&6
1563 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1564 # It thinks the first close brace ends the variable substitution.
1565 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1567 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1569 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1572 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1573 echo "configure:1574: checking whether to enable maintainer-specific portions of Makefiles" >&5
1574 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1575 if test "${enable_maintainer_mode+set}" = set; then
1576 enableval="$enable_maintainer_mode"
1577 USE_MAINTAINER_MODE=$enableval
1579 USE_MAINTAINER_MODE=no
1582 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1585 if test $USE_MAINTAINER_MODE = yes; then
1586 MAINTAINER_MODE_TRUE=
1587 MAINTAINER_MODE_FALSE='#'
1589 MAINTAINER_MODE_TRUE='#'
1590 MAINTAINER_MODE_FALSE=
1592 MAINT=$MAINTAINER_MODE_TRUE
1596 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1597 # at least currently, we never actually build a program, so we never
1598 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1599 # fails, because we are probably configuring with a cross compiler
1600 # which cant create executables. So we include AC_EXEEXT to keep
1601 # automake happy, but we dont execute it, since we dont care about
1606 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1607 echo "configure:1608: checking for executable suffix" >&5
1608 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1609 echo $ac_n "(cached) $ac_c" 1>&6
1611 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1615 echo 'int main () { return 0; }' > conftest.$ac_ext
1617 if { (eval echo configure:1618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1618 for file in conftest.*; do
1620 *.c | *.o | *.obj) ;;
1621 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1625 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1628 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1633 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1634 echo "$ac_t""${ac_cv_exeext}" 1>&6
1639 # configure.host sets the following important variables
1640 # libgcj_cflags - host specific C compiler flags
1641 # libgcj_cxxflags - host specific C++ compiler flags
1642 # libgcj_javaflags - host specific Java compiler flags
1648 . ${libgcj_basedir}/configure.host
1650 case ${libgcj_basedir} in
1651 /* | A-Za-z:/\\*) libgcj_flagbasedir=${libgcj_basedir} ;;
1652 *) libgcj_flagbasedir='$(top_builddir)/'${libgcj_basedir} ;;
1655 LIBGCJ_CFLAGS="${libgcj_cflags}"
1656 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
1657 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
1667 # Only use libltdl for native builds.
1668 if test -z "${with_cross_host}"; then
1669 case $enable_ltdl_convenience in
1670 no) { echo "configure: error: this package needs a convenience libltdl" 1>&2; exit 1; } ;;
1671 "") enable_ltdl_convenience=yes
1672 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
1674 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
1675 INCLTDL='-I${top_srcdir}/''libltdl'
1679 cat >> confdefs.h <<\EOF
1683 # Sigh. Libtool's macro doesn't do the right thing.
1684 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
1689 # Check whether --enable-shared or --disable-shared was given.
1690 if test "${enable_shared+set}" = set; then
1691 enableval="$enable_shared"
1692 p=${PACKAGE-default}
1694 yes) enable_shared=yes ;;
1695 no) enable_shared=no ;;
1698 # Look at the argument we got. We use all the common list separators.
1699 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1700 for pkg in $enableval; do
1701 if test "X$pkg" = "X$p"; then
1712 # Check whether --enable-static or --disable-static was given.
1713 if test "${enable_static+set}" = set; then
1714 enableval="$enable_static"
1715 p=${PACKAGE-default}
1717 yes) enable_static=yes ;;
1718 no) enable_static=no ;;
1721 # Look at the argument we got. We use all the common list separators.
1722 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1723 for pkg in $enableval; do
1724 if test "X$pkg" = "X$p"; then
1735 # Check whether --enable-fast-install or --disable-fast-install was given.
1736 if test "${enable_fast_install+set}" = set; then
1737 enableval="$enable_fast_install"
1738 p=${PACKAGE-default}
1740 yes) enable_fast_install=yes ;;
1741 no) enable_fast_install=no ;;
1743 enable_fast_install=no
1744 # Look at the argument we got. We use all the common list separators.
1745 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1746 for pkg in $enableval; do
1747 if test "X$pkg" = "X$p"; then
1748 enable_fast_install=yes
1755 enable_fast_install=yes
1758 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1759 if test "${with_gnu_ld+set}" = set; then
1760 withval="$with_gnu_ld"
1761 test "$withval" = no || with_gnu_ld=yes
1767 if test "$GCC" = yes; then
1768 # Check if gcc -print-prog-name=ld gives a path.
1769 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1770 echo "configure:1771: checking for ld used by GCC" >&5
1773 # gcc leaves a trailing carriage return which upsets mingw
1774 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1776 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1779 # Accept absolute paths.
1780 [\\/]* | [A-Za-z]:[\\/]*)
1781 re_direlt='/[^/][^/]*/\.\./'
1782 # Canonicalize the path of ld
1783 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1784 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1785 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1787 test -z "$LD" && LD="$ac_prog"
1790 # If it fails, then pretend we aren't using GCC.
1794 # If it is relative, then search for the first ld in PATH.
1798 elif test "$with_gnu_ld" = yes; then
1799 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1800 echo "configure:1801: checking for GNU ld" >&5
1802 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1803 echo "configure:1804: checking for non-GNU ld" >&5
1805 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1806 echo $ac_n "(cached) $ac_c" 1>&6
1808 if test -z "$LD"; then
1809 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1810 for ac_dir in $PATH; do
1811 test -z "$ac_dir" && ac_dir=.
1812 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1813 lt_cv_path_LD="$ac_dir/$ac_prog"
1814 # Check to see if the program is GNU ld. I'd rather use --version,
1815 # but apparently some GNU ld's only accept -v.
1816 # Break only if it was the GNU/non-GNU ld that we prefer.
1817 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1818 test "$with_gnu_ld" != no && break
1820 test "$with_gnu_ld" != yes && break
1826 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1831 if test -n "$LD"; then
1832 echo "$ac_t""$LD" 1>&6
1834 echo "$ac_t""no" 1>&6
1836 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1837 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1838 echo "configure:1839: checking if the linker ($LD) is GNU ld" >&5
1839 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1840 echo $ac_n "(cached) $ac_c" 1>&6
1842 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1843 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1844 lt_cv_prog_gnu_ld=yes
1846 lt_cv_prog_gnu_ld=no
1850 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1851 with_gnu_ld=$lt_cv_prog_gnu_ld
1854 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1855 echo "configure:1856: checking for $LD option to reload object files" >&5
1856 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1857 echo $ac_n "(cached) $ac_c" 1>&6
1859 lt_cv_ld_reload_flag='-r'
1862 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1863 reload_flag=$lt_cv_ld_reload_flag
1864 test -n "$reload_flag" && reload_flag=" $reload_flag"
1866 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1867 echo "configure:1868: checking for BSD-compatible nm" >&5
1868 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1869 echo $ac_n "(cached) $ac_c" 1>&6
1871 if test -n "$NM"; then
1872 # Let the user override the test.
1875 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1876 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1877 test -z "$ac_dir" && ac_dir=.
1878 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1879 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1880 # Check to see if the nm accepts a BSD-compat flag.
1881 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1882 # nm: unknown option "B" ignored
1883 # Tru64's nm complains that /dev/null is an invalid object file
1884 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1885 lt_cv_path_NM="$tmp_nm -B"
1887 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1888 lt_cv_path_NM="$tmp_nm -p"
1891 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1892 continue # so that we can try to find one that supports BSD flags
1897 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1902 echo "$ac_t""$NM" 1>&6
1904 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1905 echo "configure:1906: checking how to recognise dependant libraries" >&5
1906 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1907 echo $ac_n "(cached) $ac_c" 1>&6
1909 lt_cv_file_magic_cmd='$MAGIC_CMD'
1910 lt_cv_file_magic_test_file=
1911 lt_cv_deplibs_check_method='unknown'
1912 # Need to set the preceding variable on all platforms that support
1913 # interlibrary dependencies.
1914 # 'none' -- dependencies not supported.
1915 # `unknown' -- same as none, but documents that we really don't know.
1916 # 'pass_all' -- all dependencies passed with no checks.
1917 # 'test_compile' -- check by making test program.
1918 # 'file_magic [regex]' -- check by looking for files in library path
1919 # which responds to the $file_magic_cmd with a given egrep regex.
1920 # If you have `file' or equivalent on your system and you're not sure
1921 # whether `pass_all' will *always* work, you probably want this one.
1925 lt_cv_deplibs_check_method=pass_all
1929 lt_cv_deplibs_check_method=pass_all
1933 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1934 lt_cv_file_magic_cmd='/usr/bin/file -L'
1935 lt_cv_file_magic_test_file=/shlib/libc.so
1938 cygwin* | mingw* |pw32*)
1939 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1940 lt_cv_file_magic_cmd='$OBJDUMP -f'
1943 darwin* | rhapsody*)
1944 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1945 lt_cv_file_magic_cmd='/usr/bin/file -L'
1947 rhapsody* | darwin1.012)
1948 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1951 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1957 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1960 # Not sure whether the presence of OpenBSD here was a mistake.
1961 # Let's accept both of them until this is cleared up.
1962 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1963 lt_cv_file_magic_cmd=/usr/bin/file
1964 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1968 lt_cv_deplibs_check_method=pass_all
1973 lt_cv_deplibs_check_method=pass_all
1977 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1978 lt_cv_file_magic_cmd=/usr/bin/file
1979 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1985 # this will be overridden with pass_all, but let us keep it just in case
1986 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1990 *-32|*"-32 ") libmagic=32-bit;;
1991 *-n32|*"-n32 ") libmagic=N32;;
1992 *-64|*"-64 ") libmagic=64-bit;;
1993 *) libmagic=never-match;;
1995 # this will be overridden with pass_all, but let us keep it just in case
1996 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1999 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2000 lt_cv_deplibs_check_method=pass_all
2003 # This must be Linux ELF.
2006 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2007 lt_cv_deplibs_check_method=pass_all ;;
2009 # glibc up to 2.1.1 does not perform some relocations on ARM
2010 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2012 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2016 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2017 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2019 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2024 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2025 lt_cv_file_magic_cmd=/usr/bin/file
2026 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2029 osf3* | osf4* | osf5*)
2030 # this will be overridden with pass_all, but let us keep it just in case
2031 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2032 lt_cv_file_magic_test_file=/shlib/libc.so
2033 lt_cv_deplibs_check_method=pass_all
2037 lt_cv_deplibs_check_method=pass_all
2041 lt_cv_deplibs_check_method=pass_all
2042 lt_cv_file_magic_test_file=/lib/libc.so
2045 sysv5uw[78]* | sysv4*uw2*)
2046 lt_cv_deplibs_check_method=pass_all
2049 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2050 case $host_vendor in
2052 lt_cv_deplibs_check_method=pass_all
2055 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]'
2056 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2064 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2065 file_magic_cmd=$lt_cv_file_magic_cmd
2066 deplibs_check_method=$lt_cv_deplibs_check_method
2068 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2069 echo "configure:2070: checking for object suffix" >&5
2070 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2071 echo $ac_n "(cached) $ac_c" 1>&6
2074 echo 'int i = 1;' > conftest.$ac_ext
2075 if { (eval echo configure:2076: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2076 for ac_file in conftest.*; do
2079 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2083 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2088 echo "$ac_t""$ac_cv_objext" 1>&6
2089 OBJEXT=$ac_cv_objext
2090 ac_objext=$ac_cv_objext
2092 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2094 # Only perform the check for file, if the check method requires it
2095 case $deplibs_check_method in
2097 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2098 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2099 echo "configure:2100: checking for ${ac_tool_prefix}file" >&5
2100 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2101 echo $ac_n "(cached) $ac_c" 1>&6
2105 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2108 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2111 ac_save_MAGIC_CMD="$MAGIC_CMD"
2112 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2113 ac_dummy="/usr/bin:$PATH"
2114 for ac_dir in $ac_dummy; do
2115 test -z "$ac_dir" && ac_dir=.
2116 if test -f $ac_dir/${ac_tool_prefix}file; then
2117 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2118 if test -n "$file_magic_test_file"; then
2119 case $deplibs_check_method in
2121 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2122 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2123 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2124 egrep "$file_magic_regex" > /dev/null; then
2129 *** Warning: the command libtool uses to detect shared libraries,
2130 *** $file_magic_cmd, produces output that libtool cannot recognize.
2131 *** The result is that libtool may fail to recognize shared libraries
2132 *** as such. This will affect the creation of libtool libraries that
2133 *** depend on shared libraries, but programs linked with such libtool
2134 *** libraries will work regardless of this problem. Nevertheless, you
2135 *** may want to report the problem to your system manager and/or to
2136 *** bug-libtool@gnu.org
2146 MAGIC_CMD="$ac_save_MAGIC_CMD"
2151 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2152 if test -n "$MAGIC_CMD"; then
2153 echo "$ac_t""$MAGIC_CMD" 1>&6
2155 echo "$ac_t""no" 1>&6
2158 if test -z "$lt_cv_path_MAGIC_CMD"; then
2159 if test -n "$ac_tool_prefix"; then
2160 echo $ac_n "checking for file""... $ac_c" 1>&6
2161 echo "configure:2162: checking for file" >&5
2162 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2163 echo $ac_n "(cached) $ac_c" 1>&6
2167 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2170 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2173 ac_save_MAGIC_CMD="$MAGIC_CMD"
2174 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2175 ac_dummy="/usr/bin:$PATH"
2176 for ac_dir in $ac_dummy; do
2177 test -z "$ac_dir" && ac_dir=.
2178 if test -f $ac_dir/file; then
2179 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2180 if test -n "$file_magic_test_file"; then
2181 case $deplibs_check_method in
2183 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2184 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2185 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2186 egrep "$file_magic_regex" > /dev/null; then
2191 *** Warning: the command libtool uses to detect shared libraries,
2192 *** $file_magic_cmd, produces output that libtool cannot recognize.
2193 *** The result is that libtool may fail to recognize shared libraries
2194 *** as such. This will affect the creation of libtool libraries that
2195 *** depend on shared libraries, but programs linked with such libtool
2196 *** libraries will work regardless of this problem. Nevertheless, you
2197 *** may want to report the problem to your system manager and/or to
2198 *** bug-libtool@gnu.org
2208 MAGIC_CMD="$ac_save_MAGIC_CMD"
2213 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2214 if test -n "$MAGIC_CMD"; then
2215 echo "$ac_t""$MAGIC_CMD" 1>&6
2217 echo "$ac_t""no" 1>&6
2229 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2230 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2231 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2232 echo "configure:2233: checking for $ac_word" >&5
2233 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2234 echo $ac_n "(cached) $ac_c" 1>&6
2236 if test -n "$RANLIB"; then
2237 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2239 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2241 for ac_dir in $ac_dummy; do
2242 test -z "$ac_dir" && ac_dir=.
2243 if test -f $ac_dir/$ac_word; then
2244 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2251 RANLIB="$ac_cv_prog_RANLIB"
2252 if test -n "$RANLIB"; then
2253 echo "$ac_t""$RANLIB" 1>&6
2255 echo "$ac_t""no" 1>&6
2259 if test -z "$ac_cv_prog_RANLIB"; then
2260 if test -n "$ac_tool_prefix"; then
2261 # Extract the first word of "ranlib", so it can be a program name with args.
2262 set dummy ranlib; ac_word=$2
2263 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2264 echo "configure:2265: checking for $ac_word" >&5
2265 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2266 echo $ac_n "(cached) $ac_c" 1>&6
2268 if test -n "$RANLIB"; then
2269 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2271 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2273 for ac_dir in $ac_dummy; do
2274 test -z "$ac_dir" && ac_dir=.
2275 if test -f $ac_dir/$ac_word; then
2276 ac_cv_prog_RANLIB="ranlib"
2281 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2284 RANLIB="$ac_cv_prog_RANLIB"
2285 if test -n "$RANLIB"; then
2286 echo "$ac_t""$RANLIB" 1>&6
2288 echo "$ac_t""no" 1>&6
2296 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2297 set dummy ${ac_tool_prefix}strip; ac_word=$2
2298 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2299 echo "configure:2300: checking for $ac_word" >&5
2300 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2301 echo $ac_n "(cached) $ac_c" 1>&6
2303 if test -n "$STRIP"; then
2304 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2306 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2308 for ac_dir in $ac_dummy; do
2309 test -z "$ac_dir" && ac_dir=.
2310 if test -f $ac_dir/$ac_word; then
2311 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2318 STRIP="$ac_cv_prog_STRIP"
2319 if test -n "$STRIP"; then
2320 echo "$ac_t""$STRIP" 1>&6
2322 echo "$ac_t""no" 1>&6
2326 if test -z "$ac_cv_prog_STRIP"; then
2327 if test -n "$ac_tool_prefix"; then
2328 # Extract the first word of "strip", so it can be a program name with args.
2329 set dummy strip; ac_word=$2
2330 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2331 echo "configure:2332: checking for $ac_word" >&5
2332 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2333 echo $ac_n "(cached) $ac_c" 1>&6
2335 if test -n "$STRIP"; then
2336 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2338 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2340 for ac_dir in $ac_dummy; do
2341 test -z "$ac_dir" && ac_dir=.
2342 if test -f $ac_dir/$ac_word; then
2343 ac_cv_prog_STRIP="strip"
2348 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2351 STRIP="$ac_cv_prog_STRIP"
2352 if test -n "$STRIP"; then
2353 echo "$ac_t""$STRIP" 1>&6
2355 echo "$ac_t""no" 1>&6
2364 # Check for any special flags to pass to ltconfig.
2365 libtool_flags="--cache-file=$cache_file"
2366 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2367 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2368 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2369 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2370 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2371 libtool_flags="$libtool_flags --enable-dlopen"
2373 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2374 if test "${enable_libtool_lock+set}" = set; then
2375 enableval="$enable_libtool_lock"
2379 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2380 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2382 # Check whether --with-pic or --without-pic was given.
2383 if test "${with_pic+set}" = set; then
2390 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2391 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2393 # Some flags need to be propagated to the compiler or linker for good
2397 # Find out which ABI we are using.
2398 echo '#line 2399 "configure"' > conftest.$ac_ext
2399 if { (eval echo configure:2400: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2400 case `/usr/bin/file conftest.$ac_objext` in
2416 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2417 SAVE_CFLAGS="$CFLAGS"
2418 CFLAGS="$CFLAGS -belf"
2419 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2420 echo "configure:2421: checking whether the C compiler needs -belf" >&5
2421 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2422 echo $ac_n "(cached) $ac_c" 1>&6
2426 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2427 ac_cpp='$CPP $CPPFLAGS'
2428 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2429 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2430 cross_compiling=$ac_cv_prog_cc_cross
2432 cat > conftest.$ac_ext <<EOF
2433 #line 2434 "configure"
2434 #include "confdefs.h"
2440 if { (eval echo configure:2441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2442 lt_cv_cc_needs_belf=yes
2444 echo "configure: failed program was:" >&5
2445 cat conftest.$ac_ext >&5
2447 lt_cv_cc_needs_belf=no
2451 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2452 ac_cpp='$CPP $CPPFLAGS'
2453 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2454 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2455 cross_compiling=$ac_cv_prog_cc_cross
2459 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2460 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2461 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2462 CFLAGS="$SAVE_CFLAGS"
2469 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2470 echo "configure:2471: checking how to run the C++ preprocessor" >&5
2471 if test -z "$CXXCPP"; then
2472 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2473 echo $ac_n "(cached) $ac_c" 1>&6
2476 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2477 ac_cpp='$CXXCPP $CPPFLAGS'
2478 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2479 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2480 cross_compiling=$ac_cv_prog_cxx_cross
2481 CXXCPP="${CXX-g++} -E"
2482 cat > conftest.$ac_ext <<EOF
2483 #line 2484 "configure"
2484 #include "confdefs.h"
2487 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2488 { (eval echo configure:2489: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2489 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2490 if test -z "$ac_err"; then
2494 echo "configure: failed program was:" >&5
2495 cat conftest.$ac_ext >&5
2500 ac_cv_prog_CXXCPP="$CXXCPP"
2502 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2503 ac_cpp='$CPP $CPPFLAGS'
2504 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2505 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2506 cross_compiling=$ac_cv_prog_cc_cross
2509 CXXCPP="$ac_cv_prog_CXXCPP"
2510 echo "$ac_t""$CXXCPP" 1>&6
2513 # Save cache, so that ltconfig can load it
2514 cat > confcache <<\EOF
2515 # This file is a shell script that caches the results of configure
2516 # tests run on this system so they can be shared between configure
2517 # scripts and configure runs. It is not useful on other systems.
2518 # If it contains results you don't want to keep, you may remove or edit it.
2520 # By default, configure uses ./config.cache as the cache file,
2521 # creating it if it does not exist already. You can give configure
2522 # the --cache-file=FILE option to use a different cache file; that is
2523 # what configure does when it calls configure scripts in
2524 # subdirectories, so they share the cache.
2525 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2526 # config.status only pays attention to the cache file if you give it the
2527 # --recheck option to rerun configure.
2530 # The following way of writing the cache mishandles newlines in values,
2531 # but we know of no workaround that is simple, portable, and efficient.
2532 # So, don't put newlines in cache variables' values.
2533 # Ultrix sh set writes to stderr and can't be redirected directly,
2534 # and sets the high bit in the cache file unless we assign to the vars.
2536 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2538 # `set' does not quote correctly, so add quotes (double-quote substitution
2539 # turns \\\\ into \\, and sed turns \\ into \).
2541 -e "s/'/'\\\\''/g" \
2542 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2545 # `set' quotes correctly as required by POSIX, so do not add quotes.
2546 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2549 if cmp -s $cache_file confcache; then
2552 if test -w $cache_file; then
2553 echo "updating cache $cache_file"
2554 cat confcache > $cache_file
2556 echo "not updating unwritable cache $cache_file"
2562 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2563 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2564 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2565 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2566 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2567 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2568 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2569 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2570 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2571 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2573 # Reload cache, that may have been modified by ltconfig
2574 if test -r "$cache_file"; then
2575 echo "loading cache $cache_file"
2578 echo "creating cache $cache_file"
2583 # This can be used to rebuild libtool when needed
2584 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2586 # Always use our own libtool.
2587 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2589 # Redirect the config.log output again, so that the ltconfig log is not
2590 # clobbered by the next message.
2591 exec 5>>./config.log
2595 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2597 lt_save_CFLAGS="$CFLAGS"
2598 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2599 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2600 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2601 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2602 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2603 deplibs_check_method="$deplibs_check_method" \
2604 file_magic_cmd="$file_magic_cmd" \
2605 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2606 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2607 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2609 CFLAGS="$lt_save_CFLAGS"
2611 # Redirect the config.log output again, so that the ltconfig log is not
2612 # clobbered by the next message.
2613 exec 5>>./config.log
2623 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
2632 if test -d $srcdir/testsuite; then
2634 TESTSUBDIR_FALSE='#'
2640 # Check whether --enable-fast-character or --disable-fast-character was given.
2641 if test "${enable_fast_character+set}" = set; then
2642 enableval="$enable_fast_character"
2646 cat >> confdefs.h <<\EOF
2647 #define COMPACT_CHARACTER 1
2653 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
2654 if test "${enable_getenv_properties+set}" = set; then
2655 enableval="$enable_getenv_properties"
2660 if test -z "$enable_getenv_properties"; then
2661 enable_getenv_properties=${enable_getenv_properties_default-yes}
2663 if test "$enable_getenv_properties" = no; then
2664 cat >> confdefs.h <<\EOF
2665 #define DISABLE_GETENV_PROPERTIES 1
2671 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
2672 if test "${enable_hash_synchronization+set}" = set; then
2673 enableval="$enable_hash_synchronization"
2678 if test -z "$enable_hash_synchronization"; then
2679 enable_hash_synchronization=$enable_hash_synchronization_default
2685 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2686 if test "${enable_libgcj_debug+set}" = set; then
2687 enableval="$enable_libgcj_debug"
2688 if test "$enable_libgcj_debug" = yes; then
2689 cat >> confdefs.h <<\EOF
2698 # Check whether --enable-interpreter or --disable-interpreter was given.
2699 if test "${enable_interpreter+set}" = set; then
2700 enableval="$enable_interpreter"
2701 if test "$enable_interpreter" = yes; then
2702 # This can also be set in configure.host.
2703 libgcj_interpreter=yes
2704 elif test "$enable_interpreter" = no; then
2705 libgcj_interpreter=no
2710 if test "$libgcj_interpreter" = yes; then
2711 cat >> confdefs.h <<\EOF
2712 #define INTERPRETER 1
2717 echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
2718 echo "configure:2719: checking for exception model to use" >&5
2721 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2722 ac_cpp='$CXXCPP $CPPFLAGS'
2723 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2724 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2725 cross_compiling=$ac_cv_prog_cxx_cross
2727 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
2728 if test "${enable_sjlj_exceptions+set}" = set; then
2729 enableval="$enable_sjlj_exceptions"
2732 cat > conftest.$ac_ext << EOF
2733 #line 2734 "configure"
2742 old_CXXFLAGS="$CXXFLAGS"
2744 if { (eval echo configure:2745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2745 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
2746 enable_sjlj_exceptions=yes
2747 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
2748 enable_sjlj_exceptions=no
2751 CXXFLAGS="$old_CXXFLAGS"
2755 if test x$enable_sjlj_exceptions = xyes; then
2756 cat >> confdefs.h <<\EOF
2757 #define SJLJ_EXCEPTIONS 1
2760 ac_exception_model_name=sjlj
2761 elif test x$enable_sjlj_exceptions = xno; then
2762 ac_exception_model_name="call frame"
2764 { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
2767 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2768 ac_cpp='$CPP $CPPFLAGS'
2769 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2770 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2771 cross_compiling=$ac_cv_prog_cc_cross
2773 echo "$ac_t""$ac_exception_model_name" 1>&6
2775 echo $ac_n "checking for data_start""... $ac_c" 1>&6
2776 echo "configure:2777: checking for data_start" >&5
2779 cat > conftest.$ac_ext <<EOF
2780 #line 2781 "configure"
2781 #include "confdefs.h"
2782 extern int data_start;
2784 return ((int) &data_start);
2787 if { (eval echo configure:2788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2789 echo "$ac_t""found it" 1>&6
2791 echo "configure: failed program was:" >&5
2792 cat conftest.$ac_ext >&5
2794 LIBDATASTARTSPEC="-u data_start libgcjdata.a%s"
2795 NEEDS_DATA_START=yes
2796 echo "$ac_t""missing" 1>&6
2801 # Check whether --enable-java-net or --disable-java-net was given.
2802 if test "${enable_java_net+set}" = set; then
2803 enableval="$enable_java_net"
2808 if test -z "$enable_java_net"; then
2809 enable_java_net=${enable_java_net_default-yes}
2811 if test "$enable_java_net" = no; then
2812 cat >> confdefs.h <<\EOF
2813 #define DISABLE_JAVA_NET 1
2818 # Check whether --enable-jvmpi or --disable-jvmpi was given.
2819 if test "${enable_jvmpi+set}" = set; then
2820 enableval="$enable_jvmpi"
2825 if test "$enable_jvmpi" != no; then
2826 cat >> confdefs.h <<\EOF
2827 #define ENABLE_JVMPI 1
2833 # Check whether --with-ecos or --without-ecos was given.
2834 if test "${with_ecos+set}" = set; then
2835 withval="$with_ecos"
2836 TARGET_ECOS="$with_ecos"
2841 case "$TARGET_ECOS" in
2843 FILE_DESCRIPTOR=natFileDescriptorPosix.cc
2844 PROCESS=${PROCESS-Posix}
2847 FILE_DESCRIPTOR=natFileDescriptorEcos.cc
2849 cat >> confdefs.h <<\EOF
2856 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2857 echo "configure:2858: checking how to run the C preprocessor" >&5
2858 # On Suns, sometimes $CPP names a directory.
2859 if test -n "$CPP" && test -d "$CPP"; then
2862 if test -z "$CPP"; then
2863 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2864 echo $ac_n "(cached) $ac_c" 1>&6
2866 # This must be in double quotes, not single quotes, because CPP may get
2867 # substituted into the Makefile and "${CC-cc}" will confuse make.
2869 # On the NeXT, cc -E runs the code through the compiler's parser,
2870 # not just through cpp.
2871 cat > conftest.$ac_ext <<EOF
2872 #line 2873 "configure"
2873 #include "confdefs.h"
2877 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2878 { (eval echo configure:2879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2879 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2880 if test -z "$ac_err"; then
2884 echo "configure: failed program was:" >&5
2885 cat conftest.$ac_ext >&5
2887 CPP="${CC-cc} -E -traditional-cpp"
2888 cat > conftest.$ac_ext <<EOF
2889 #line 2890 "configure"
2890 #include "confdefs.h"
2894 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2895 { (eval echo configure:2896: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2896 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2897 if test -z "$ac_err"; then
2901 echo "configure: failed program was:" >&5
2902 cat conftest.$ac_ext >&5
2904 CPP="${CC-cc} -nologo -E"
2905 cat > conftest.$ac_ext <<EOF
2906 #line 2907 "configure"
2907 #include "confdefs.h"
2911 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2912 { (eval echo configure:2913: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2913 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2914 if test -z "$ac_err"; then
2918 echo "configure: failed program was:" >&5
2919 cat conftest.$ac_ext >&5
2928 ac_cv_prog_CPP="$CPP"
2930 CPP="$ac_cv_prog_CPP"
2932 ac_cv_prog_CPP="$CPP"
2934 echo "$ac_t""$CPP" 1>&6
2936 cat > conftest.$ac_ext <<EOF
2937 #line 2938 "configure"
2938 #include "confdefs.h"
2941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2942 egrep "uint32_t" >/dev/null 2>&1; then
2944 cat >> confdefs.h <<\EOF
2945 #define HAVE_INT32_DEFINED 1
2951 cat > conftest.$ac_ext <<EOF
2952 #line 2953 "configure"
2953 #include "confdefs.h"
2954 #include <inttypes.h>
2956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2957 egrep "uint32_t" >/dev/null 2>&1; then
2959 cat >> confdefs.h <<\EOF
2960 #define HAVE_INT32_DEFINED 1
2966 cat > conftest.$ac_ext <<EOF
2967 #line 2968 "configure"
2968 #include "confdefs.h"
2969 #include <sys/types.h>
2971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2972 egrep "u_int32_t" >/dev/null 2>&1; then
2974 cat >> confdefs.h <<\EOF
2975 #define HAVE_BSD_INT32_DEFINED 1
2981 cat > conftest.$ac_ext <<EOF
2982 #line 2983 "configure"
2983 #include "confdefs.h"
2984 #include <sys/config.h>
2986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2987 egrep "u_int32_t" >/dev/null 2>&1; then
2989 cat >> confdefs.h <<\EOF
2990 #define HAVE_BSD_INT32_DEFINED 1
2998 cat > conftest.$ac_ext <<EOF
2999 #line 3000 "configure"
3000 #include "confdefs.h"
3003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3004 egrep "mktime" >/dev/null 2>&1; then
3006 cat >> confdefs.h <<\EOF
3007 #define HAVE_MKTIME 1
3013 cat > conftest.$ac_ext <<EOF
3014 #line 3015 "configure"
3015 #include "confdefs.h"
3018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3019 egrep "localtime" >/dev/null 2>&1; then
3021 cat >> confdefs.h <<\EOF
3022 #define HAVE_LOCALTIME 1
3029 test -d java || mkdir java
3030 test -d java/io || mkdir java/io
3031 test -d gnu || mkdir gnu
3034 test -d java/lang || mkdir java/lang
3041 LIBGCJTESTSPEC="-L`pwd`/.libs -rpath `pwd`/.libs"
3044 # Check whether --with-system-zlib or --without-system-zlib was given.
3045 if test "${with_system_zlib+set}" = set; then
3046 withval="$with_system_zlib"
3057 echo $ac_n "checking for garbage collector to use""... $ac_c" 1>&6
3058 echo "configure:3059: checking for garbage collector to use" >&5
3059 # Check whether --enable-java-gc or --disable-java-gc was given.
3060 if test "${enable_java_gc+set}" = set; then
3061 enableval="$enable_java_gc"
3077 echo "$ac_t""boehm" 1>&6
3078 GCDEPS='$(top_builddir)/../boehm-gc/libgcjgc.la'
3079 # We include the path to the boehm-gc build directory.
3080 # See Makefile.am to understand why.
3081 GCLIBS="$GCDEPS -L\$(here)/../boehm-gc/$libsubdir"
3082 GCINCS='-I$(top_srcdir)/../boehm-gc/include'
3084 JC1GCSPEC='-fuse-boehm-gc'
3085 GCTESTSPEC="-L`pwd`/../boehm-gc/.libs -rpath `pwd`/../boehm-gc/.libs"
3086 GCINCS="$GCINCS `cat ../boehm-gc/boehm-cflags`"
3089 cat >> confdefs.h <<\EOF
3090 #define HAVE_BOEHM_GC 1
3095 echo "$ac_t""none" 1>&6
3100 { echo "configure: error: unrecognized collector \"$GC\"" 1>&2; exit 1; }
3113 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3114 echo "configure:3115: checking for thread model used by GCC" >&5
3115 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3116 echo "$ac_t""$THREADS" 1>&6
3126 cat >> confdefs.h <<\EOF
3127 #define LINUX_THREADS 1
3133 decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
3134 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
3137 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
3149 THREADLIBS=-lpthread
3150 THREADSPEC=-lpthread
3151 THREADOBJS=posix-threads.lo
3152 THREADH=posix-threads.h
3153 # MIT pthreads doesn't seem to have the mutexattr functions.
3154 # But for now we don't check for it. We just assume you aren't
3155 # using MIT pthreads.
3156 cat >> confdefs.h <<\EOF
3157 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3161 # If we're using the Boehm GC, then we happen to know that it
3162 # defines _REENTRANT, so we don't bother. Eww.
3163 if test "$GC" != boehm; then
3164 cat >> confdefs.h <<\EOF
3165 #define _REENTRANT 1
3169 cat >> confdefs.h <<\EOF
3170 #define _POSIX_PTHREAD_SEMANTICS 1
3176 THREADOBJS=no-threads.lo
3177 THREADH=no-threads.h
3188 # Hash synchronization is only useful with posix threads right now.
3189 if test "$enable_hash_synchronization" = yes && test "$THREADS" = "posix"; then
3190 HASH_SYNC_SPEC=-fhash-synchronization
3191 cat >> confdefs.h <<\EOF
3192 #define JV_HASH_SYNCHRONIZATION 1
3201 if test "$GCC" = yes; then
3213 # We're in the tree with gcc, and need to include some of its headers.
3214 GCC_UNWIND_INCLUDE='-I$(top_srcdir)/../gcc'
3216 if test -n "${with_cross_host}"; then
3217 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
3218 # may not work correctly, because the compiler may not be able to
3221 # We assume newlib. This lets us hard-code the functions we know
3223 cat >> confdefs.h <<\EOF
3224 #define HAVE_MEMMOVE 1
3227 cat >> confdefs.h <<\EOF
3228 #define HAVE_MEMCPY 1
3231 cat >> confdefs.h <<\EOF
3232 #define HAVE_STRERROR 1
3235 cat >> confdefs.h <<\EOF
3236 #define HAVE_GMTIME_R 1
3239 cat >> confdefs.h <<\EOF
3240 #define HAVE_LOCALTIME_R 1
3243 cat >> confdefs.h <<\EOF
3244 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3247 cat >> confdefs.h <<\EOF
3248 #define HAVE_ALLOCA 1
3252 cat >> confdefs.h <<\EOF
3258 ZLIBTESTSPEC="-L`pwd`/../zlib/.libs -rpath `pwd`/../zlib/.libs"
3260 # If Canadian cross, then don't pick up tools from the build
3262 if test x"$build" != x"$with_cross_host" && x"$build" != x"$target"; then
3265 GCJ="${target_alias}-gcj"
3269 for ac_func in strerror ioctl select fstat open fsync sleep
3271 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3272 echo "configure:3273: checking for $ac_func" >&5
3273 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3274 echo $ac_n "(cached) $ac_c" 1>&6
3276 cat > conftest.$ac_ext <<EOF
3277 #line 3278 "configure"
3278 #include "confdefs.h"
3279 /* System header to define __stub macros and hopefully few prototypes,
3280 which can conflict with char $ac_func(); below. */
3282 /* Override any gcc2 internal prototype to avoid an error. */
3283 /* We use char because int might match the return type of a gcc2
3284 builtin and then its argument prototype would still apply. */
3289 /* The GNU C library defines this for functions which it implements
3290 to always fail with ENOSYS. Some functions are actually named
3291 something starting with __ and the normal name is an alias. */
3292 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3300 if { (eval echo configure:3301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3302 eval "ac_cv_func_$ac_func=yes"
3304 echo "configure: failed program was:" >&5
3305 cat conftest.$ac_ext >&5
3307 eval "ac_cv_func_$ac_func=no"
3312 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3313 echo "$ac_t""yes" 1>&6
3314 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3315 cat >> confdefs.h <<EOF
3316 #define $ac_tr_func 1
3320 echo "$ac_t""no" 1>&6
3324 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
3326 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3327 echo "configure:3328: checking for $ac_func" >&5
3328 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3329 echo $ac_n "(cached) $ac_c" 1>&6
3331 cat > conftest.$ac_ext <<EOF
3332 #line 3333 "configure"
3333 #include "confdefs.h"
3334 /* System header to define __stub macros and hopefully few prototypes,
3335 which can conflict with char $ac_func(); below. */
3337 /* Override any gcc2 internal prototype to avoid an error. */
3338 /* We use char because int might match the return type of a gcc2
3339 builtin and then its argument prototype would still apply. */
3344 /* The GNU C library defines this for functions which it implements
3345 to always fail with ENOSYS. Some functions are actually named
3346 something starting with __ and the normal name is an alias. */
3347 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3355 if { (eval echo configure:3356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3357 eval "ac_cv_func_$ac_func=yes"
3359 echo "configure: failed program was:" >&5
3360 cat conftest.$ac_ext >&5
3362 eval "ac_cv_func_$ac_func=no"
3367 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3368 echo "$ac_t""yes" 1>&6
3369 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3370 cat >> confdefs.h <<EOF
3371 #define $ac_tr_func 1
3375 echo "$ac_t""no" 1>&6
3379 for ac_func in access stat mkdir rename rmdir unlink realpath utime chmod
3381 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3382 echo "configure:3383: checking for $ac_func" >&5
3383 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3384 echo $ac_n "(cached) $ac_c" 1>&6
3386 cat > conftest.$ac_ext <<EOF
3387 #line 3388 "configure"
3388 #include "confdefs.h"
3389 /* System header to define __stub macros and hopefully few prototypes,
3390 which can conflict with char $ac_func(); below. */
3392 /* Override any gcc2 internal prototype to avoid an error. */
3393 /* We use char because int might match the return type of a gcc2
3394 builtin and then its argument prototype would still apply. */
3399 /* The GNU C library defines this for functions which it implements
3400 to always fail with ENOSYS. Some functions are actually named
3401 something starting with __ and the normal name is an alias. */
3402 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3410 if { (eval echo configure:3411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3412 eval "ac_cv_func_$ac_func=yes"
3414 echo "configure: failed program was:" >&5
3415 cat conftest.$ac_ext >&5
3417 eval "ac_cv_func_$ac_func=no"
3422 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3423 echo "$ac_t""yes" 1>&6
3424 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3425 cat >> confdefs.h <<EOF
3426 #define $ac_tr_func 1
3430 echo "$ac_t""no" 1>&6
3434 for ac_func in iconv nl_langinfo setlocale
3436 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3437 echo "configure:3438: checking for $ac_func" >&5
3438 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3439 echo $ac_n "(cached) $ac_c" 1>&6
3441 cat > conftest.$ac_ext <<EOF
3442 #line 3443 "configure"
3443 #include "confdefs.h"
3444 /* System header to define __stub macros and hopefully few prototypes,
3445 which can conflict with char $ac_func(); below. */
3447 /* Override any gcc2 internal prototype to avoid an error. */
3448 /* We use char because int might match the return type of a gcc2
3449 builtin and then its argument prototype would still apply. */
3454 /* The GNU C library defines this for functions which it implements
3455 to always fail with ENOSYS. Some functions are actually named
3456 something starting with __ and the normal name is an alias. */
3457 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3465 if { (eval echo configure:3466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3467 eval "ac_cv_func_$ac_func=yes"
3469 echo "configure: failed program was:" >&5
3470 cat conftest.$ac_ext >&5
3472 eval "ac_cv_func_$ac_func=no"
3477 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3478 echo "$ac_t""yes" 1>&6
3479 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3480 cat >> confdefs.h <<EOF
3481 #define $ac_tr_func 1
3485 echo "$ac_t""no" 1>&6
3489 for ac_func in inet_aton inet_addr
3491 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3492 echo "configure:3493: checking for $ac_func" >&5
3493 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3494 echo $ac_n "(cached) $ac_c" 1>&6
3496 cat > conftest.$ac_ext <<EOF
3497 #line 3498 "configure"
3498 #include "confdefs.h"
3499 /* System header to define __stub macros and hopefully few prototypes,
3500 which can conflict with char $ac_func(); below. */
3502 /* Override any gcc2 internal prototype to avoid an error. */
3503 /* We use char because int might match the return type of a gcc2
3504 builtin and then its argument prototype would still apply. */
3509 /* The GNU C library defines this for functions which it implements
3510 to always fail with ENOSYS. Some functions are actually named
3511 something starting with __ and the normal name is an alias. */
3512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3520 if { (eval echo configure:3521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3522 eval "ac_cv_func_$ac_func=yes"
3524 echo "configure: failed program was:" >&5
3525 cat conftest.$ac_ext >&5
3527 eval "ac_cv_func_$ac_func=no"
3532 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3533 echo "$ac_t""yes" 1>&6
3534 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3535 cat >> confdefs.h <<EOF
3536 #define $ac_tr_func 1
3540 echo "$ac_t""no" 1>&6
3544 for ac_func in inet_pton uname inet_ntoa
3546 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3547 echo "configure:3548: checking for $ac_func" >&5
3548 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3549 echo $ac_n "(cached) $ac_c" 1>&6
3551 cat > conftest.$ac_ext <<EOF
3552 #line 3553 "configure"
3553 #include "confdefs.h"
3554 /* System header to define __stub macros and hopefully few prototypes,
3555 which can conflict with char $ac_func(); below. */
3557 /* Override any gcc2 internal prototype to avoid an error. */
3558 /* We use char because int might match the return type of a gcc2
3559 builtin and then its argument prototype would still apply. */
3564 /* The GNU C library defines this for functions which it implements
3565 to always fail with ENOSYS. Some functions are actually named
3566 something starting with __ and the normal name is an alias. */
3567 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3575 if { (eval echo configure:3576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3577 eval "ac_cv_func_$ac_func=yes"
3579 echo "configure: failed program was:" >&5
3580 cat conftest.$ac_ext >&5
3582 eval "ac_cv_func_$ac_func=no"
3587 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3588 echo "$ac_t""yes" 1>&6
3589 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3590 cat >> confdefs.h <<EOF
3591 #define $ac_tr_func 1
3595 echo "$ac_t""no" 1>&6
3599 for ac_func in backtrace fork execvp pipe sigaction
3601 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3602 echo "configure:3603: checking for $ac_func" >&5
3603 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3604 echo $ac_n "(cached) $ac_c" 1>&6
3606 cat > conftest.$ac_ext <<EOF
3607 #line 3608 "configure"
3608 #include "confdefs.h"
3609 /* System header to define __stub macros and hopefully few prototypes,
3610 which can conflict with char $ac_func(); below. */
3612 /* Override any gcc2 internal prototype to avoid an error. */
3613 /* We use char because int might match the return type of a gcc2
3614 builtin and then its argument prototype would still apply. */
3619 /* The GNU C library defines this for functions which it implements
3620 to always fail with ENOSYS. Some functions are actually named
3621 something starting with __ and the normal name is an alias. */
3622 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3630 if { (eval echo configure:3631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3632 eval "ac_cv_func_$ac_func=yes"
3634 echo "configure: failed program was:" >&5
3635 cat conftest.$ac_ext >&5
3637 eval "ac_cv_func_$ac_func=no"
3642 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3643 echo "$ac_t""yes" 1>&6
3644 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3645 cat >> confdefs.h <<EOF
3646 #define $ac_tr_func 1
3650 echo "$ac_t""no" 1>&6
3654 for ac_hdr in execinfo.h unistd.h dlfcn.h
3656 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3657 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3658 echo "configure:3659: checking for $ac_hdr" >&5
3659 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3660 echo $ac_n "(cached) $ac_c" 1>&6
3662 cat > conftest.$ac_ext <<EOF
3663 #line 3664 "configure"
3664 #include "confdefs.h"
3667 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3668 { (eval echo configure:3669: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3669 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3670 if test -z "$ac_err"; then
3672 eval "ac_cv_header_$ac_safe=yes"
3675 echo "configure: failed program was:" >&5
3676 cat conftest.$ac_ext >&5
3678 eval "ac_cv_header_$ac_safe=no"
3682 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3683 echo "$ac_t""yes" 1>&6
3684 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3685 cat >> confdefs.h <<EOF
3686 #define $ac_tr_hdr 1
3690 echo "$ac_t""no" 1>&6
3694 echo $ac_n "checking for dladdr in -ldl""... $ac_c" 1>&6
3695 echo "configure:3696: checking for dladdr in -ldl" >&5
3696 ac_lib_var=`echo dl'_'dladdr | sed 'y%./+-%__p_%'`
3697 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3698 echo $ac_n "(cached) $ac_c" 1>&6
3700 ac_save_LIBS="$LIBS"
3702 cat > conftest.$ac_ext <<EOF
3703 #line 3704 "configure"
3704 #include "confdefs.h"
3705 /* Override any gcc2 internal prototype to avoid an error. */
3706 /* We use char because int might match the return type of a gcc2
3707 builtin and then its argument prototype would still apply. */
3714 if { (eval echo configure:3715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3716 eval "ac_cv_lib_$ac_lib_var=yes"
3718 echo "configure: failed program was:" >&5
3719 cat conftest.$ac_ext >&5
3721 eval "ac_cv_lib_$ac_lib_var=no"
3724 LIBS="$ac_save_LIBS"
3727 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3728 echo "$ac_t""yes" 1>&6
3730 cat >> confdefs.h <<\EOF
3731 #define HAVE_DLADDR 1
3735 echo "$ac_t""no" 1>&6
3738 for ac_file in /proc/self/exe
3741 ac_safe=`echo "$ac_file" | sed 'y%./+-%__p_%'`
3742 echo $ac_n "checking for $ac_file""... $ac_c" 1>&6
3743 echo "configure:3744: checking for $ac_file" >&5
3744 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
3745 echo $ac_n "(cached) $ac_c" 1>&6
3747 if test "$cross_compiling" = yes; then
3748 { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
3750 if test -r $ac_file; then
3751 eval "ac_cv_file_$ac_safe=yes"
3753 eval "ac_cv_file_$ac_safe=no"
3757 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
3758 echo "$ac_t""yes" 1>&6
3759 ac_tr_file=HAVE_`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3760 cat >> confdefs.h <<EOF
3761 #define $ac_tr_file 1
3764 cat >> confdefs.h <<\EOF
3765 #define HAVE_PROC_SELF_EXE 1
3769 echo "$ac_t""no" 1>&6
3775 for ac_func in gethostbyname_r
3777 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3778 echo "configure:3779: checking for $ac_func" >&5
3779 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3780 echo $ac_n "(cached) $ac_c" 1>&6
3782 cat > conftest.$ac_ext <<EOF
3783 #line 3784 "configure"
3784 #include "confdefs.h"
3785 /* System header to define __stub macros and hopefully few prototypes,
3786 which can conflict with char $ac_func(); below. */
3788 /* Override any gcc2 internal prototype to avoid an error. */
3789 /* We use char because int might match the return type of a gcc2
3790 builtin and then its argument prototype would still apply. */
3795 /* The GNU C library defines this for functions which it implements
3796 to always fail with ENOSYS. Some functions are actually named
3797 something starting with __ and the normal name is an alias. */
3798 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3806 if { (eval echo configure:3807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3808 eval "ac_cv_func_$ac_func=yes"
3810 echo "configure: failed program was:" >&5
3811 cat conftest.$ac_ext >&5
3813 eval "ac_cv_func_$ac_func=no"
3818 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3819 echo "$ac_t""yes" 1>&6
3820 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3821 cat >> confdefs.h <<EOF
3822 #define $ac_tr_func 1
3825 cat >> confdefs.h <<\EOF
3826 #define HAVE_GETHOSTBYNAME_R 1
3829 # There are two different kinds of gethostbyname_r.
3830 # We look for the one that returns `int'.
3831 # Hopefully this check is robust enough.
3832 cat > conftest.$ac_ext <<EOF
3833 #line 3834 "configure"
3834 #include "confdefs.h"
3837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3838 egrep "int.*gethostbyname_r" >/dev/null 2>&1; then
3841 cat >> confdefs.h <<\EOF
3842 #define GETHOSTBYNAME_R_RETURNS_INT 1
3850 *" -D_REENTRANT "*) ;;
3852 echo $ac_n "checking whether gethostbyname_r declaration requires -D_REENTRANT""... $ac_c" 1>&6
3853 echo "configure:3854: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
3854 if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
3855 echo $ac_n "(cached) $ac_c" 1>&6
3859 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3860 ac_cpp='$CXXCPP $CPPFLAGS'
3861 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3862 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3863 cross_compiling=$ac_cv_prog_cxx_cross
3865 cat > conftest.$ac_ext <<EOF
3866 #line 3867 "configure"
3867 #include "confdefs.h"
3870 gethostbyname_r("", 0, 0);
3873 if { (eval echo configure:3874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3875 libjava_cv_gethostbyname_r_needs_reentrant=no
3877 echo "configure: failed program was:" >&5
3878 cat conftest.$ac_ext >&5
3880 CPPFLAGS_SAVE="$CPPFLAGS"
3881 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
3882 cat > conftest.$ac_ext <<EOF
3883 #line 3884 "configure"
3884 #include "confdefs.h"
3887 gethostbyname_r("", 0, 0);
3890 if { (eval echo configure:3891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3892 libjava_cv_gethostbyname_r_needs_reentrant=yes
3894 echo "configure: failed program was:" >&5
3895 cat conftest.$ac_ext >&5
3897 libjava_cv_gethostbyname_r_needs_reentrant=fail
3900 CPPFLAGS="$CPPFLAGS_SAVE"
3905 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3906 ac_cpp='$CPP $CPPFLAGS'
3907 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3908 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3909 cross_compiling=$ac_cv_prog_cc_cross
3914 echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
3915 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
3916 cat >> confdefs.h <<\EOF
3917 #define _REENTRANT 1
3924 echo $ac_n "checking for struct hostent_data""... $ac_c" 1>&6
3925 echo "configure:3926: checking for struct hostent_data" >&5
3926 if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
3927 echo $ac_n "(cached) $ac_c" 1>&6
3929 cat > conftest.$ac_ext <<EOF
3930 #line 3931 "configure"
3931 #include "confdefs.h"
3933 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
3934 # define _REENTRANT 1
3938 struct hostent_data data;
3941 if { (eval echo configure:3942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3943 libjava_cv_struct_hostent_data=yes
3945 echo "configure: failed program was:" >&5
3946 cat conftest.$ac_ext >&5
3948 libjava_cv_struct_hostent_data=no
3953 echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
3954 if test "x$libjava_cv_struct_hostent_data" = xyes; then
3955 cat >> confdefs.h <<\EOF
3956 #define HAVE_STRUCT_HOSTENT_DATA 1
3962 echo "$ac_t""no" 1>&6
3967 for ac_func in gethostbyaddr_r
3969 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3970 echo "configure:3971: checking for $ac_func" >&5
3971 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3972 echo $ac_n "(cached) $ac_c" 1>&6
3974 cat > conftest.$ac_ext <<EOF
3975 #line 3976 "configure"
3976 #include "confdefs.h"
3977 /* System header to define __stub macros and hopefully few prototypes,
3978 which can conflict with char $ac_func(); below. */
3980 /* Override any gcc2 internal prototype to avoid an error. */
3981 /* We use char because int might match the return type of a gcc2
3982 builtin and then its argument prototype would still apply. */
3987 /* The GNU C library defines this for functions which it implements
3988 to always fail with ENOSYS. Some functions are actually named
3989 something starting with __ and the normal name is an alias. */
3990 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3998 if { (eval echo configure:3999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4000 eval "ac_cv_func_$ac_func=yes"
4002 echo "configure: failed program was:" >&5
4003 cat conftest.$ac_ext >&5
4005 eval "ac_cv_func_$ac_func=no"
4010 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4011 echo "$ac_t""yes" 1>&6
4012 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4013 cat >> confdefs.h <<EOF
4014 #define $ac_tr_func 1
4017 cat >> confdefs.h <<\EOF
4018 #define HAVE_GETHOSTBYADDR_R 1
4021 # There are two different kinds of gethostbyaddr_r.
4022 # We look for the one that returns `int'.
4023 # Hopefully this check is robust enough.
4024 cat > conftest.$ac_ext <<EOF
4025 #line 4026 "configure"
4026 #include "confdefs.h"
4029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4030 egrep "int.*gethostbyaddr_r" >/dev/null 2>&1; then
4033 cat >> confdefs.h <<\EOF
4034 #define GETHOSTBYADDR_R_RETURNS_INT 1
4041 echo "$ac_t""no" 1>&6
4046 for ac_func in gethostname
4048 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4049 echo "configure:4050: checking for $ac_func" >&5
4050 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4051 echo $ac_n "(cached) $ac_c" 1>&6
4053 cat > conftest.$ac_ext <<EOF
4054 #line 4055 "configure"
4055 #include "confdefs.h"
4056 /* System header to define __stub macros and hopefully few prototypes,
4057 which can conflict with char $ac_func(); below. */
4059 /* Override any gcc2 internal prototype to avoid an error. */
4060 /* We use char because int might match the return type of a gcc2
4061 builtin and then its argument prototype would still apply. */
4066 /* The GNU C library defines this for functions which it implements
4067 to always fail with ENOSYS. Some functions are actually named
4068 something starting with __ and the normal name is an alias. */
4069 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4077 if { (eval echo configure:4078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4079 eval "ac_cv_func_$ac_func=yes"
4081 echo "configure: failed program was:" >&5
4082 cat conftest.$ac_ext >&5
4084 eval "ac_cv_func_$ac_func=no"
4089 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4090 echo "$ac_t""yes" 1>&6
4091 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4092 cat >> confdefs.h <<EOF
4093 #define $ac_tr_func 1
4096 cat >> confdefs.h <<\EOF
4097 #define HAVE_GETHOSTNAME 1
4100 cat > conftest.$ac_ext <<EOF
4101 #line 4102 "configure"
4102 #include "confdefs.h"
4105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4106 egrep "gethostname" >/dev/null 2>&1; then
4109 cat >> confdefs.h <<\EOF
4110 #define HAVE_GETHOSTNAME_DECL 1
4117 echo "$ac_t""no" 1>&6
4122 # Look for these functions in the thread library, but only bother
4123 # if using POSIX threads.
4124 if test "$THREADS" = posix; then
4126 LIBS="$LIBS $THREADLIBS"
4127 # Some POSIX thread systems don't have pthread_mutexattr_settype.
4129 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
4131 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4132 echo "configure:4133: checking for $ac_func" >&5
4133 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4134 echo $ac_n "(cached) $ac_c" 1>&6
4136 cat > conftest.$ac_ext <<EOF
4137 #line 4138 "configure"
4138 #include "confdefs.h"
4139 /* System header to define __stub macros and hopefully few prototypes,
4140 which can conflict with char $ac_func(); below. */
4142 /* Override any gcc2 internal prototype to avoid an error. */
4143 /* We use char because int might match the return type of a gcc2
4144 builtin and then its argument prototype would still apply. */
4149 /* The GNU C library defines this for functions which it implements
4150 to always fail with ENOSYS. Some functions are actually named
4151 something starting with __ and the normal name is an alias. */
4152 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4160 if { (eval echo configure:4161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4162 eval "ac_cv_func_$ac_func=yes"
4164 echo "configure: failed program was:" >&5
4165 cat conftest.$ac_ext >&5
4167 eval "ac_cv_func_$ac_func=no"
4172 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4173 echo "$ac_t""yes" 1>&6
4174 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4175 cat >> confdefs.h <<EOF
4176 #define $ac_tr_func 1
4180 echo "$ac_t""no" 1>&6
4185 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
4186 # Solaris 7 the name librt is preferred.
4187 for ac_func in sched_yield
4189 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4190 echo "configure:4191: checking for $ac_func" >&5
4191 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4192 echo $ac_n "(cached) $ac_c" 1>&6
4194 cat > conftest.$ac_ext <<EOF
4195 #line 4196 "configure"
4196 #include "confdefs.h"
4197 /* System header to define __stub macros and hopefully few prototypes,
4198 which can conflict with char $ac_func(); below. */
4200 /* Override any gcc2 internal prototype to avoid an error. */
4201 /* We use char because int might match the return type of a gcc2
4202 builtin and then its argument prototype would still apply. */
4207 /* The GNU C library defines this for functions which it implements
4208 to always fail with ENOSYS. Some functions are actually named
4209 something starting with __ and the normal name is an alias. */
4210 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4218 if { (eval echo configure:4219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4220 eval "ac_cv_func_$ac_func=yes"
4222 echo "configure: failed program was:" >&5
4223 cat conftest.$ac_ext >&5
4225 eval "ac_cv_func_$ac_func=no"
4230 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4231 echo "$ac_t""yes" 1>&6
4232 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4233 cat >> confdefs.h <<EOF
4234 #define $ac_tr_func 1
4238 echo "$ac_t""no" 1>&6
4239 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
4240 echo "configure:4241: checking for sched_yield in -lrt" >&5
4241 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
4242 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4243 echo $ac_n "(cached) $ac_c" 1>&6
4245 ac_save_LIBS="$LIBS"
4247 cat > conftest.$ac_ext <<EOF
4248 #line 4249 "configure"
4249 #include "confdefs.h"
4250 /* Override any gcc2 internal prototype to avoid an error. */
4251 /* We use char because int might match the return type of a gcc2
4252 builtin and then its argument prototype would still apply. */
4259 if { (eval echo configure:4260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4261 eval "ac_cv_lib_$ac_lib_var=yes"
4263 echo "configure: failed program was:" >&5
4264 cat conftest.$ac_ext >&5
4266 eval "ac_cv_lib_$ac_lib_var=no"
4269 LIBS="$ac_save_LIBS"
4272 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4273 echo "$ac_t""yes" 1>&6
4275 cat >> confdefs.h <<\EOF
4276 #define HAVE_SCHED_YIELD 1
4279 THREADLIBS="$THREADLIBS -lrt"
4280 THREADSPEC="$THREADSPEC -lrt"
4282 echo "$ac_t""no" 1>&6
4284 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
4285 echo "configure:4286: checking for sched_yield in -lposix4" >&5
4286 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
4287 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4288 echo $ac_n "(cached) $ac_c" 1>&6
4290 ac_save_LIBS="$LIBS"
4291 LIBS="-lposix4 $LIBS"
4292 cat > conftest.$ac_ext <<EOF
4293 #line 4294 "configure"
4294 #include "confdefs.h"
4295 /* Override any gcc2 internal prototype to avoid an error. */
4296 /* We use char because int might match the return type of a gcc2
4297 builtin and then its argument prototype would still apply. */
4304 if { (eval echo configure:4305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4306 eval "ac_cv_lib_$ac_lib_var=yes"
4308 echo "configure: failed program was:" >&5
4309 cat conftest.$ac_ext >&5
4311 eval "ac_cv_lib_$ac_lib_var=no"
4314 LIBS="$ac_save_LIBS"
4317 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4318 echo "$ac_t""yes" 1>&6
4320 cat >> confdefs.h <<\EOF
4321 #define HAVE_SCHED_YIELD 1
4324 THREADLIBS="$THREADLIBS -lposix4"
4325 THREADSPEC="$THREADSPEC -lposix4"
4327 echo "$ac_t""no" 1>&6
4337 # We can save a little space at runtime if the mutex has m_count
4338 # or __m_count. This is a nice hack for Linux.
4339 cat > conftest.$ac_ext <<EOF
4340 #line 4341 "configure"
4341 #include "confdefs.h"
4342 #include <pthread.h>
4345 extern pthread_mutex_t *mutex; int q = mutex->m_count;
4349 if { (eval echo configure:4350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4351 cat >> confdefs.h <<\EOF
4352 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
4356 echo "configure: failed program was:" >&5
4357 cat conftest.$ac_ext >&5
4360 cat > conftest.$ac_ext <<EOF
4361 #line 4362 "configure"
4362 #include "confdefs.h"
4363 #include <pthread.h>
4366 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
4370 if { (eval echo configure:4371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4372 cat >> confdefs.h <<\EOF
4373 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
4377 echo "configure: failed program was:" >&5
4378 cat conftest.$ac_ext >&5
4385 # We require a way to get the time.
4387 for ac_func in gettimeofday time ftime
4389 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4390 echo "configure:4391: checking for $ac_func" >&5
4391 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4392 echo $ac_n "(cached) $ac_c" 1>&6
4394 cat > conftest.$ac_ext <<EOF
4395 #line 4396 "configure"
4396 #include "confdefs.h"
4397 /* System header to define __stub macros and hopefully few prototypes,
4398 which can conflict with char $ac_func(); below. */
4400 /* Override any gcc2 internal prototype to avoid an error. */
4401 /* We use char because int might match the return type of a gcc2
4402 builtin and then its argument prototype would still apply. */
4407 /* The GNU C library defines this for functions which it implements
4408 to always fail with ENOSYS. Some functions are actually named
4409 something starting with __ and the normal name is an alias. */
4410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4418 if { (eval echo configure:4419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4420 eval "ac_cv_func_$ac_func=yes"
4422 echo "configure: failed program was:" >&5
4423 cat conftest.$ac_ext >&5
4425 eval "ac_cv_func_$ac_func=no"
4430 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4431 echo "$ac_t""yes" 1>&6
4432 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4433 cat >> confdefs.h <<EOF
4434 #define $ac_tr_func 1
4438 echo "$ac_t""no" 1>&6
4442 if test "$time_found" = no; then
4443 { echo "configure: error: no function found to get the time" 1>&2; exit 1; }
4446 for ac_func in memmove
4448 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4449 echo "configure:4450: checking for $ac_func" >&5
4450 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4451 echo $ac_n "(cached) $ac_c" 1>&6
4453 cat > conftest.$ac_ext <<EOF
4454 #line 4455 "configure"
4455 #include "confdefs.h"
4456 /* System header to define __stub macros and hopefully few prototypes,
4457 which can conflict with char $ac_func(); below. */
4459 /* Override any gcc2 internal prototype to avoid an error. */
4460 /* We use char because int might match the return type of a gcc2
4461 builtin and then its argument prototype would still apply. */
4466 /* The GNU C library defines this for functions which it implements
4467 to always fail with ENOSYS. Some functions are actually named
4468 something starting with __ and the normal name is an alias. */
4469 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4477 if { (eval echo configure:4478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4479 eval "ac_cv_func_$ac_func=yes"
4481 echo "configure: failed program was:" >&5
4482 cat conftest.$ac_ext >&5
4484 eval "ac_cv_func_$ac_func=no"
4489 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4490 echo "$ac_t""yes" 1>&6
4491 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4492 cat >> confdefs.h <<EOF
4493 #define $ac_tr_func 1
4497 echo "$ac_t""no" 1>&6
4502 # We require memcpy.
4504 for ac_func in memcpy
4506 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4507 echo "configure:4508: checking for $ac_func" >&5
4508 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4509 echo $ac_n "(cached) $ac_c" 1>&6
4511 cat > conftest.$ac_ext <<EOF
4512 #line 4513 "configure"
4513 #include "confdefs.h"
4514 /* System header to define __stub macros and hopefully few prototypes,
4515 which can conflict with char $ac_func(); below. */
4517 /* Override any gcc2 internal prototype to avoid an error. */
4518 /* We use char because int might match the return type of a gcc2
4519 builtin and then its argument prototype would still apply. */
4524 /* The GNU C library defines this for functions which it implements
4525 to always fail with ENOSYS. Some functions are actually named
4526 something starting with __ and the normal name is an alias. */
4527 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4535 if { (eval echo configure:4536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4537 eval "ac_cv_func_$ac_func=yes"
4539 echo "configure: failed program was:" >&5
4540 cat conftest.$ac_ext >&5
4542 eval "ac_cv_func_$ac_func=no"
4547 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4548 echo "$ac_t""yes" 1>&6
4549 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4550 cat >> confdefs.h <<EOF
4551 #define $ac_tr_func 1
4555 echo "$ac_t""no" 1>&6
4559 if test "$memcpy_found" = no; then
4560 { echo "configure: error: memcpy is required" 1>&2; exit 1; }
4563 # Some library-finding code we stole from Tcl.
4564 #--------------------------------------------------------------------
4565 # Check for the existence of the -lsocket and -lnsl libraries.
4566 # The order here is important, so that they end up in the right
4567 # order in the command line generated by make. Here are some
4568 # special considerations:
4569 # 1. Use "connect" and "accept" to check for -lsocket, and
4570 # "gethostbyname" to check for -lnsl.
4571 # 2. Use each function name only once: can't redo a check because
4572 # autoconf caches the results of the last check and won't redo it.
4573 # 3. Use -lnsl and -lsocket only if they supply procedures that
4574 # aren't already present in the normal libraries. This is because
4575 # IRIX 5.2 has libraries, but they aren't needed and they're
4576 # bogus: they goof up name resolution if used.
4577 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
4578 # To get around this problem, check for both libraries together
4579 # if -lsocket doesn't work by itself.
4580 #--------------------------------------------------------------------
4582 echo $ac_n "checking for socket libraries""... $ac_c" 1>&6
4583 echo "configure:4584: checking for socket libraries" >&5
4584 if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
4585 echo $ac_n "(cached) $ac_c" 1>&6
4589 unset ac_cv_func_connect
4590 echo $ac_n "checking for connect""... $ac_c" 1>&6
4591 echo "configure:4592: checking for connect" >&5
4592 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
4593 echo $ac_n "(cached) $ac_c" 1>&6
4595 cat > conftest.$ac_ext <<EOF
4596 #line 4597 "configure"
4597 #include "confdefs.h"
4598 /* System header to define __stub macros and hopefully few prototypes,
4599 which can conflict with char connect(); below. */
4601 /* Override any gcc2 internal prototype to avoid an error. */
4602 /* We use char because int might match the return type of a gcc2
4603 builtin and then its argument prototype would still apply. */
4608 /* The GNU C library defines this for functions which it implements
4609 to always fail with ENOSYS. Some functions are actually named
4610 something starting with __ and the normal name is an alias. */
4611 #if defined (__stub_connect) || defined (__stub___connect)
4619 if { (eval echo configure:4620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4621 eval "ac_cv_func_connect=yes"
4623 echo "configure: failed program was:" >&5
4624 cat conftest.$ac_ext >&5
4626 eval "ac_cv_func_connect=no"
4631 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
4632 echo "$ac_t""yes" 1>&6
4635 echo "$ac_t""no" 1>&6
4639 if test "$gcj_checkSocket" = 1; then
4640 unset ac_cv_func_connect
4641 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4642 echo "configure:4643: checking for main in -lsocket" >&5
4643 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
4644 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4645 echo $ac_n "(cached) $ac_c" 1>&6
4647 ac_save_LIBS="$LIBS"
4648 LIBS="-lsocket $LIBS"
4649 cat > conftest.$ac_ext <<EOF
4650 #line 4651 "configure"
4651 #include "confdefs.h"
4657 if { (eval echo configure:4658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4659 eval "ac_cv_lib_$ac_lib_var=yes"
4661 echo "configure: failed program was:" >&5
4662 cat conftest.$ac_ext >&5
4664 eval "ac_cv_lib_$ac_lib_var=no"
4667 LIBS="$ac_save_LIBS"
4670 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4671 echo "$ac_t""yes" 1>&6
4672 gcj_cv_lib_sockets="-lsocket"
4674 echo "$ac_t""no" 1>&6
4679 if test "$gcj_checkBoth" = 1; then
4681 LIBS="$LIBS -lsocket -lnsl"
4682 unset ac_cv_func_accept
4683 echo $ac_n "checking for accept""... $ac_c" 1>&6
4684 echo "configure:4685: checking for accept" >&5
4685 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
4686 echo $ac_n "(cached) $ac_c" 1>&6
4688 cat > conftest.$ac_ext <<EOF
4689 #line 4690 "configure"
4690 #include "confdefs.h"
4691 /* System header to define __stub macros and hopefully few prototypes,
4692 which can conflict with char accept(); below. */
4694 /* Override any gcc2 internal prototype to avoid an error. */
4695 /* We use char because int might match the return type of a gcc2
4696 builtin and then its argument prototype would still apply. */
4701 /* The GNU C library defines this for functions which it implements
4702 to always fail with ENOSYS. Some functions are actually named
4703 something starting with __ and the normal name is an alias. */
4704 #if defined (__stub_accept) || defined (__stub___accept)
4712 if { (eval echo configure:4713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4714 eval "ac_cv_func_accept=yes"
4716 echo "configure: failed program was:" >&5
4717 cat conftest.$ac_ext >&5
4719 eval "ac_cv_func_accept=no"
4724 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
4725 echo "$ac_t""yes" 1>&6
4727 gcj_cv_lib_sockets="-lsocket -lnsl"
4729 echo "$ac_t""no" 1>&6
4732 unset ac_cv_func_accept
4735 unset ac_cv_func_gethostbyname
4737 LIBS="$LIBS $gcj_cv_lib_sockets"
4738 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4739 echo "configure:4740: checking for gethostbyname" >&5
4740 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
4741 echo $ac_n "(cached) $ac_c" 1>&6
4743 cat > conftest.$ac_ext <<EOF
4744 #line 4745 "configure"
4745 #include "confdefs.h"
4746 /* System header to define __stub macros and hopefully few prototypes,
4747 which can conflict with char gethostbyname(); below. */
4749 /* Override any gcc2 internal prototype to avoid an error. */
4750 /* We use char because int might match the return type of a gcc2
4751 builtin and then its argument prototype would still apply. */
4752 char gethostbyname();
4756 /* The GNU C library defines this for functions which it implements
4757 to always fail with ENOSYS. Some functions are actually named
4758 something starting with __ and the normal name is an alias. */
4759 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4767 if { (eval echo configure:4768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4769 eval "ac_cv_func_gethostbyname=yes"
4771 echo "configure: failed program was:" >&5
4772 cat conftest.$ac_ext >&5
4774 eval "ac_cv_func_gethostbyname=no"
4779 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
4780 echo "$ac_t""yes" 1>&6
4783 echo "$ac_t""no" 1>&6
4784 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4785 echo "configure:4786: checking for main in -lnsl" >&5
4786 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
4787 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4788 echo $ac_n "(cached) $ac_c" 1>&6
4790 ac_save_LIBS="$LIBS"
4792 cat > conftest.$ac_ext <<EOF
4793 #line 4794 "configure"
4794 #include "confdefs.h"
4800 if { (eval echo configure:4801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4802 eval "ac_cv_lib_$ac_lib_var=yes"
4804 echo "configure: failed program was:" >&5
4805 cat conftest.$ac_ext >&5
4807 eval "ac_cv_lib_$ac_lib_var=no"
4810 LIBS="$ac_save_LIBS"
4813 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4814 echo "$ac_t""yes" 1>&6
4815 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
4817 echo "$ac_t""no" 1>&6
4822 unset ac_cv_func_gethostbyname
4827 echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
4828 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
4830 if test "$with_system_zlib" = yes; then
4831 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
4832 echo "configure:4833: checking for deflate in -lz" >&5
4833 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
4834 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4835 echo $ac_n "(cached) $ac_c" 1>&6
4837 ac_save_LIBS="$LIBS"
4839 cat > conftest.$ac_ext <<EOF
4840 #line 4841 "configure"
4841 #include "confdefs.h"
4842 /* Override any gcc2 internal prototype to avoid an error. */
4843 /* We use char because int might match the return type of a gcc2
4844 builtin and then its argument prototype would still apply. */
4851 if { (eval echo configure:4852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4853 eval "ac_cv_lib_$ac_lib_var=yes"
4855 echo "configure: failed program was:" >&5
4856 cat conftest.$ac_ext >&5
4858 eval "ac_cv_lib_$ac_lib_var=no"
4861 LIBS="$ac_save_LIBS"
4864 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4865 echo "$ac_t""yes" 1>&6
4868 echo "$ac_t""no" 1>&6
4874 ZLIBTESTSPEC="-L`pwd`/../zlib/.libs -rpath `pwd`/../zlib/.libs"
4877 # On Solaris, and maybe other architectures, the Boehm collector
4879 if test "$GC" = boehm; then
4880 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
4881 echo "configure:4882: checking for main in -ldl" >&5
4882 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
4883 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4884 echo $ac_n "(cached) $ac_c" 1>&6
4886 ac_save_LIBS="$LIBS"
4888 cat > conftest.$ac_ext <<EOF
4889 #line 4890 "configure"
4890 #include "confdefs.h"
4896 if { (eval echo configure:4897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4898 eval "ac_cv_lib_$ac_lib_var=yes"
4900 echo "configure: failed program was:" >&5
4901 cat conftest.$ac_ext >&5
4903 eval "ac_cv_lib_$ac_lib_var=no"
4906 LIBS="$ac_save_LIBS"
4909 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4910 echo "$ac_t""yes" 1>&6
4911 SYSTEMSPEC="$SYSTEMSPEC -ldl"
4913 echo "$ac_t""no" 1>&6
4918 if test -z "${with_multisubdir}"; then
4922 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
4925 if test -x "${builddotdot}/../../gcc/gcj"; then
4926 dir="`cd ${builddotdot}/../../gcc && pwd`"
4927 GCJ="$dir/gcj -B`pwd`/ -B$dir/"
4935 # Create it, so that compile/link tests don't fail
4936 test -f libgcj.spec || touch libgcj.spec
4938 # We must search the source tree for java.lang, since we still don't
4939 # have libgcj.jar nor java/lang/*.class
4940 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
4941 CPPFLAGS="$CPPFLAGS -I`pwd` -I`cd $srcdir && pwd`"
4943 # Since some classes depend on this one, we need its source available
4944 # before we can do any GCJ compilation test :-(
4945 if test ! -f gnu/classpath/Configuration.java; then
4946 test -d gnu || mkdir gnu
4947 test -d gnu/classpath || mkdir gnu/classpath
4948 sed 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
4949 < $srcdir/gnu/classpath/Configuration.java.in \
4950 > gnu/classpath/Configuration.java
4951 # We do not want to redirect the output of the grep below to /dev/null,
4952 # but we add /dev/null to the input list so that grep will print the
4953 # filename of Configuration.java in case it finds any matches.
4954 if grep @ gnu/classpath/Configuration.java /dev/null; then
4955 { echo "configure: error: configure.in is missing the substitutions above" 1>&2; exit 1; }
4959 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
4960 set dummy ${ac_tool_prefix}gcj; ac_word=$2
4961 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4962 echo "configure:4963: checking for $ac_word" >&5
4963 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
4964 echo $ac_n "(cached) $ac_c" 1>&6
4966 if test -n "$GCJ"; then
4967 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
4969 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4971 for ac_dir in $ac_dummy; do
4972 test -z "$ac_dir" && ac_dir=.
4973 if test -f $ac_dir/$ac_word; then
4974 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
4981 GCJ="$ac_cv_prog_GCJ"
4982 if test -n "$GCJ"; then
4983 echo "$ac_t""$GCJ" 1>&6
4985 echo "$ac_t""no" 1>&6
4989 if test -z "$ac_cv_prog_GCJ"; then
4990 if test -n "$ac_tool_prefix"; then
4991 # Extract the first word of "gcj", so it can be a program name with args.
4992 set dummy gcj; ac_word=$2
4993 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4994 echo "configure:4995: checking for $ac_word" >&5
4995 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
4996 echo $ac_n "(cached) $ac_c" 1>&6
4998 if test -n "$GCJ"; then
4999 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5001 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5003 for ac_dir in $ac_dummy; do
5004 test -z "$ac_dir" && ac_dir=.
5005 if test -f $ac_dir/$ac_word; then
5006 ac_cv_prog_GCJ="gcj"
5011 test -z "$ac_cv_prog_GCJ" && ac_cv_prog_GCJ="no"
5014 GCJ="$ac_cv_prog_GCJ"
5015 if test -n "$GCJ"; then
5016 echo "$ac_t""$GCJ" 1>&6
5018 echo "$ac_t""no" 1>&6
5026 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
5030 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
5032 lt_save_CFLAGS="$CFLAGS"
5033 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
5034 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5035 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5036 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5037 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5038 deplibs_check_method="$deplibs_check_method" \
5039 file_magic_cmd="$file_magic_cmd" \
5040 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5041 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
5042 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
5044 CFLAGS="$lt_save_CFLAGS"
5046 # Redirect the config.log output again, so that the ltconfig log is not
5047 # clobbered by the next message.
5048 exec 5>>./config.log
5053 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
5055 echo $ac_n "checking size of void *""... $ac_c" 1>&6
5056 echo "configure:5057: checking size of void *" >&5
5057 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
5058 echo $ac_n "(cached) $ac_c" 1>&6
5060 if test "$cross_compiling" = yes; then
5061 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5063 cat > conftest.$ac_ext <<EOF
5064 #line 5065 "configure"
5065 #include "confdefs.h"
5069 FILE *f=fopen("conftestval", "w");
5071 fprintf(f, "%d\n", sizeof(void *));
5075 if { (eval echo configure:5076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5077 ac_cv_sizeof_void_p=`cat conftestval`
5079 echo "configure: failed program was:" >&5
5080 cat conftest.$ac_ext >&5
5082 ac_cv_sizeof_void_p=0
5088 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
5089 cat >> confdefs.h <<EOF
5090 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5098 if test "x$ZLIBSPEC" = "x-lzgcj"; then
5099 # We include the path to the zlib build directory.
5100 # See Makefile.am to understand why.
5101 ZDEPS='$(top_builddir)/../zlib/libzgcj.la'
5102 ZLIBS="$ZDEPS -L\$(here)/../zlib/$libsubdir"
5103 ZINCS='-I$(top_srcdir)/../zlib'
5115 if test "$CANADIAN" = yes; then
5124 if test "$NULL_TARGET" = yes; then
5126 NULL_TARGET_FALSE='#'
5128 NULL_TARGET_TRUE='#'
5133 if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
5142 if test -z "$with_cross_host"; then
5144 USE_LIBDIR_FALSE='#'
5151 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
5152 NEEDS_DATA_START_TRUE=
5153 NEEDS_DATA_START_FALSE='#'
5155 NEEDS_DATA_START_TRUE='#'
5156 NEEDS_DATA_START_FALSE=
5160 # Determine gcj version number.
5162 gcjvers="`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`"
5164 cat >> confdefs.h <<EOF
5165 #define GCJVERSION "$gcjvers"
5172 echo $ac_n "checking for g++ -ffloat-store bug""... $ac_c" 1>&6
5173 echo "configure:5174: checking for g++ -ffloat-store bug" >&5
5174 save_CFLAGS="$CFLAGS"
5175 CFLAGS="-x c++ -O2 -ffloat-store"
5176 cat > conftest.$ac_ext <<EOF
5177 #line 5178 "configure"
5178 #include "confdefs.h"
5184 if { (eval echo configure:5185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5186 echo "$ac_t""no" 1>&6
5188 echo "configure: failed program was:" >&5
5189 cat conftest.$ac_ext >&5
5191 cat >> confdefs.h <<\EOF
5192 #define __NO_MATH_INLINES 1
5195 echo "$ac_t""yes" 1>&6
5198 CFLAGS="$save_CFLAGS"
5200 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 locale.h
5202 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5203 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5204 echo "configure:5205: checking for $ac_hdr" >&5
5205 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5206 echo $ac_n "(cached) $ac_c" 1>&6
5208 cat > conftest.$ac_ext <<EOF
5209 #line 5210 "configure"
5210 #include "confdefs.h"
5213 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5214 { (eval echo configure:5215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5215 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5216 if test -z "$ac_err"; then
5218 eval "ac_cv_header_$ac_safe=yes"
5221 echo "configure: failed program was:" >&5
5222 cat conftest.$ac_ext >&5
5224 eval "ac_cv_header_$ac_safe=no"
5228 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5229 echo "$ac_t""yes" 1>&6
5230 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5231 cat >> confdefs.h <<EOF
5232 #define $ac_tr_hdr 1
5236 echo "$ac_t""no" 1>&6
5240 for ac_hdr in dirent.h
5242 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5243 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5244 echo "configure:5245: checking for $ac_hdr" >&5
5245 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5246 echo $ac_n "(cached) $ac_c" 1>&6
5248 cat > conftest.$ac_ext <<EOF
5249 #line 5250 "configure"
5250 #include "confdefs.h"
5253 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5254 { (eval echo configure:5255: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5255 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5256 if test -z "$ac_err"; then
5258 eval "ac_cv_header_$ac_safe=yes"
5261 echo "configure: failed program was:" >&5
5262 cat conftest.$ac_ext >&5
5264 eval "ac_cv_header_$ac_safe=no"
5268 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5269 echo "$ac_t""yes" 1>&6
5270 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5271 cat >> confdefs.h <<EOF
5272 #define $ac_tr_hdr 1
5276 echo "$ac_t""no" 1>&6
5281 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5282 echo "configure:5283: checking for ANSI C header files" >&5
5283 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5284 echo $ac_n "(cached) $ac_c" 1>&6
5286 cat > conftest.$ac_ext <<EOF
5287 #line 5288 "configure"
5288 #include "confdefs.h"
5294 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5295 { (eval echo configure:5296: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5296 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5297 if test -z "$ac_err"; then
5299 ac_cv_header_stdc=yes
5302 echo "configure: failed program was:" >&5
5303 cat conftest.$ac_ext >&5
5305 ac_cv_header_stdc=no
5309 if test $ac_cv_header_stdc = yes; then
5310 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5311 cat > conftest.$ac_ext <<EOF
5312 #line 5313 "configure"
5313 #include "confdefs.h"
5316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5317 egrep "memchr" >/dev/null 2>&1; then
5321 ac_cv_header_stdc=no
5327 if test $ac_cv_header_stdc = yes; then
5328 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5329 cat > conftest.$ac_ext <<EOF
5330 #line 5331 "configure"
5331 #include "confdefs.h"
5334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5335 egrep "free" >/dev/null 2>&1; then
5339 ac_cv_header_stdc=no
5345 if test $ac_cv_header_stdc = yes; then
5346 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5347 if test "$cross_compiling" = yes; then
5350 cat > conftest.$ac_ext <<EOF
5351 #line 5352 "configure"
5352 #include "confdefs.h"
5354 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5355 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5356 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5357 int main () { int i; for (i = 0; i < 256; i++)
5358 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5362 if { (eval echo configure:5363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5366 echo "configure: failed program was:" >&5
5367 cat conftest.$ac_ext >&5
5369 ac_cv_header_stdc=no
5377 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5378 if test $ac_cv_header_stdc = yes; then
5379 cat >> confdefs.h <<\EOF
5380 #define STDC_HEADERS 1
5385 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
5386 echo "configure:5387: checking for ssize_t" >&5
5387 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
5388 echo $ac_n "(cached) $ac_c" 1>&6
5390 cat > conftest.$ac_ext <<EOF
5391 #line 5392 "configure"
5392 #include "confdefs.h"
5393 #include <sys/types.h>
5399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5400 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5402 ac_cv_type_ssize_t=yes
5405 ac_cv_type_ssize_t=no
5410 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
5411 if test $ac_cv_type_ssize_t = no; then
5412 cat >> confdefs.h <<\EOF
5419 echo $ac_n "checking for in_addr_t""... $ac_c" 1>&6
5420 echo "configure:5421: checking for in_addr_t" >&5
5421 cat > conftest.$ac_ext <<EOF
5422 #line 5423 "configure"
5423 #include "confdefs.h"
5424 #include <sys/types.h>
5429 #if HAVE_NETINET_IN_H
5430 #include <netinet/in.h>
5436 if { (eval echo configure:5437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5438 cat >> confdefs.h <<\EOF
5439 #define HAVE_IN_ADDR_T 1
5442 echo "$ac_t""yes" 1>&6
5444 echo "configure: failed program was:" >&5
5445 cat conftest.$ac_ext >&5
5447 echo "$ac_t""no" 1>&6
5451 echo $ac_n "checking whether struct ip_mreq is in netinet/in.h""... $ac_c" 1>&6
5452 echo "configure:5453: checking whether struct ip_mreq is in netinet/in.h" >&5
5453 cat > conftest.$ac_ext <<EOF
5454 #line 5455 "configure"
5455 #include "confdefs.h"
5456 #include <netinet/in.h>
5458 struct ip_mreq mreq;
5461 if { (eval echo configure:5462: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5463 cat >> confdefs.h <<\EOF
5464 #define HAVE_STRUCT_IP_MREQ 1
5467 echo "$ac_t""yes" 1>&6
5469 echo "configure: failed program was:" >&5
5470 cat conftest.$ac_ext >&5
5472 echo "$ac_t""no" 1>&6
5476 echo $ac_n "checking whether struct sockaddr_in6 is in netinet/in.h""... $ac_c" 1>&6
5477 echo "configure:5478: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
5478 cat > conftest.$ac_ext <<EOF
5479 #line 5480 "configure"
5480 #include "confdefs.h"
5481 #include <netinet/in.h>
5483 struct sockaddr_in6 addr6;
5486 if { (eval echo configure:5487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5488 cat >> confdefs.h <<\EOF
5489 #define HAVE_INET6 1
5492 echo "$ac_t""yes" 1>&6
5494 echo "configure: failed program was:" >&5
5495 cat conftest.$ac_ext >&5
5497 echo "$ac_t""no" 1>&6
5501 echo $ac_n "checking for socklen_t in sys/socket.h""... $ac_c" 1>&6
5502 echo "configure:5503: checking for socklen_t in sys/socket.h" >&5
5503 cat > conftest.$ac_ext <<EOF
5504 #line 5505 "configure"
5505 #include "confdefs.h"
5506 #include <sys/types.h>
5507 #include <sys/socket.h>
5512 if { (eval echo configure:5513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5514 cat >> confdefs.h <<\EOF
5515 #define HAVE_SOCKLEN_T 1
5518 echo "$ac_t""yes" 1>&6
5520 echo "configure: failed program was:" >&5
5521 cat conftest.$ac_ext >&5
5523 echo "$ac_t""no" 1>&6
5527 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
5528 echo "configure:5529: checking for tm_gmtoff in struct tm" >&5
5529 cat > conftest.$ac_ext <<EOF
5530 #line 5531 "configure"
5531 #include "confdefs.h"
5534 struct tm tim; tim.tm_gmtoff = 0;
5537 if { (eval echo configure:5538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5539 cat >> confdefs.h <<\EOF
5540 #define STRUCT_TM_HAS_GMTOFF 1
5543 echo "$ac_t""yes" 1>&6
5545 echo "configure: failed program was:" >&5
5546 cat conftest.$ac_ext >&5
5548 echo "$ac_t""no" 1>&6
5549 echo $ac_n "checking for global timezone variable""... $ac_c" 1>&6
5550 echo "configure:5551: checking for global timezone variable" >&5
5551 cat > conftest.$ac_ext <<EOF
5552 #line 5553 "configure"
5553 #include "confdefs.h"
5559 if { (eval echo configure:5560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5561 cat >> confdefs.h <<\EOF
5562 #define HAVE_TIMEZONE 1
5565 echo "$ac_t""yes" 1>&6
5567 echo "configure: failed program was:" >&5
5568 cat conftest.$ac_ext >&5
5570 echo "$ac_t""no" 1>&6
5576 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5577 # for constant arguments. Useless!
5578 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5579 echo "configure:5580: checking for working alloca.h" >&5
5580 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5581 echo $ac_n "(cached) $ac_c" 1>&6
5583 cat > conftest.$ac_ext <<EOF
5584 #line 5585 "configure"
5585 #include "confdefs.h"
5588 char *p = alloca(2 * sizeof(int));
5591 if { (eval echo configure:5592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5593 ac_cv_header_alloca_h=yes
5595 echo "configure: failed program was:" >&5
5596 cat conftest.$ac_ext >&5
5598 ac_cv_header_alloca_h=no
5603 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5604 if test $ac_cv_header_alloca_h = yes; then
5605 cat >> confdefs.h <<\EOF
5606 #define HAVE_ALLOCA_H 1
5611 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5612 echo "configure:5613: checking for alloca" >&5
5613 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5614 echo $ac_n "(cached) $ac_c" 1>&6
5616 cat > conftest.$ac_ext <<EOF
5617 #line 5618 "configure"
5618 #include "confdefs.h"
5621 # define alloca __builtin_alloca
5624 # include <malloc.h>
5625 # define alloca _alloca
5628 # include <alloca.h>
5633 # ifndef alloca /* predefined by HP cc +Olibcalls */
5642 char *p = (char *) alloca(1);
5645 if { (eval echo configure:5646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5647 ac_cv_func_alloca_works=yes
5649 echo "configure: failed program was:" >&5
5650 cat conftest.$ac_ext >&5
5652 ac_cv_func_alloca_works=no
5657 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5658 if test $ac_cv_func_alloca_works = yes; then
5659 cat >> confdefs.h <<\EOF
5660 #define HAVE_ALLOCA 1
5665 if test $ac_cv_func_alloca_works = no; then
5666 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5667 # that cause trouble. Some versions do not even contain alloca or
5668 # contain a buggy version. If you still want to use their alloca,
5669 # use ar to extract alloca.o from them instead of compiling alloca.c.
5670 ALLOCA=alloca.${ac_objext}
5671 cat >> confdefs.h <<\EOF
5676 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5677 echo "configure:5678: checking whether alloca needs Cray hooks" >&5
5678 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5679 echo $ac_n "(cached) $ac_c" 1>&6
5681 cat > conftest.$ac_ext <<EOF
5682 #line 5683 "configure"
5683 #include "confdefs.h"
5684 #if defined(CRAY) && ! defined(CRAY2)
5691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5692 egrep "webecray" >/dev/null 2>&1; then
5703 echo "$ac_t""$ac_cv_os_cray" 1>&6
5704 if test $ac_cv_os_cray = yes; then
5705 for ac_func in _getb67 GETB67 getb67; do
5706 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5707 echo "configure:5708: checking for $ac_func" >&5
5708 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5709 echo $ac_n "(cached) $ac_c" 1>&6
5711 cat > conftest.$ac_ext <<EOF
5712 #line 5713 "configure"
5713 #include "confdefs.h"
5714 /* System header to define __stub macros and hopefully few prototypes,
5715 which can conflict with char $ac_func(); below. */
5717 /* Override any gcc2 internal prototype to avoid an error. */
5718 /* We use char because int might match the return type of a gcc2
5719 builtin and then its argument prototype would still apply. */
5724 /* The GNU C library defines this for functions which it implements
5725 to always fail with ENOSYS. Some functions are actually named
5726 something starting with __ and the normal name is an alias. */
5727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5735 if { (eval echo configure:5736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5737 eval "ac_cv_func_$ac_func=yes"
5739 echo "configure: failed program was:" >&5
5740 cat conftest.$ac_ext >&5
5742 eval "ac_cv_func_$ac_func=no"
5747 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5748 echo "$ac_t""yes" 1>&6
5749 cat >> confdefs.h <<EOF
5750 #define CRAY_STACKSEG_END $ac_func
5755 echo "$ac_t""no" 1>&6
5761 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5762 echo "configure:5763: checking stack direction for C alloca" >&5
5763 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5764 echo $ac_n "(cached) $ac_c" 1>&6
5766 if test "$cross_compiling" = yes; then
5767 ac_cv_c_stack_direction=0
5769 cat > conftest.$ac_ext <<EOF
5770 #line 5771 "configure"
5771 #include "confdefs.h"
5772 find_stack_direction ()
5774 static char *addr = 0;
5779 return find_stack_direction ();
5782 return (&dummy > addr) ? 1 : -1;
5786 exit (find_stack_direction() < 0);
5789 if { (eval echo configure:5790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5791 ac_cv_c_stack_direction=1
5793 echo "configure: failed program was:" >&5
5794 cat conftest.$ac_ext >&5
5796 ac_cv_c_stack_direction=-1
5803 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5804 cat >> confdefs.h <<EOF
5805 #define STACK_DIRECTION $ac_cv_c_stack_direction
5813 # Extract the first word of "$ac_prog", so it can be a program name with args.
5814 set dummy $ac_prog; ac_word=$2
5815 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5816 echo "configure:5817: checking for $ac_word" >&5
5817 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
5818 echo $ac_n "(cached) $ac_c" 1>&6
5820 if test -n "$PERL"; then
5821 ac_cv_prog_PERL="$PERL" # Let the user override the test.
5823 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5825 for ac_dir in $ac_dummy; do
5826 test -z "$ac_dir" && ac_dir=.
5827 if test -f $ac_dir/$ac_word; then
5828 ac_cv_prog_PERL="$ac_prog"
5835 PERL="$ac_cv_prog_PERL"
5836 if test -n "$PERL"; then
5837 echo "$ac_t""$PERL" 1>&6
5839 echo "$ac_t""no" 1>&6
5842 test -n "$PERL" && break
5844 test -n "$PERL" || PERL="false"
5851 SIGNAL_HANDLER=include/i386-signal.h
5854 SIGNAL_HANDLER=include/sparc-signal.h
5857 # SYSDEP_SOURCES=sysdep/ia64.c
5858 # test -d sysdep || mkdir sysdep
5861 SIGNAL_HANDLER=include/dwarf2-signal.h
5864 SIGNAL_HANDLER=include/dwarf2-signal.h
5867 SIGNAL_HANDLER=include/default-signal.h
5871 # If we're using sjlj exceptions, forget what we just learned.
5872 if test "$enable_sjlj_exceptions" = yes; then
5873 SIGNAL_HANDLER=include/default-signal.h
5880 if test "${multilib}" = "yes"; then
5881 multilib_arg="--enable-multilib"
5886 # If we find X, set shell vars x_includes and x_libraries to the
5887 # paths, otherwise set no_x=yes.
5888 # Uses ac_ vars as temps to allow command line to override cache and checks.
5889 # --without-x overrides everything else, but does not touch the cache.
5890 echo $ac_n "checking for X""... $ac_c" 1>&6
5891 echo "configure:5892: checking for X" >&5
5893 # Check whether --with-x or --without-x was given.
5894 if test "${with_x+set}" = set; then
5899 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5900 if test "x$with_x" = xno; then
5901 # The user explicitly disabled X.
5904 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5905 # Both variables are already set.
5908 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
5909 echo $ac_n "(cached) $ac_c" 1>&6
5911 # One or both of the vars are not set, and there is no cached value.
5912 ac_x_includes=NO ac_x_libraries=NO
5914 if mkdir conftestdir; then
5916 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5917 cat > Imakefile <<'EOF'
5919 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5921 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5922 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5923 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5924 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5925 for ac_extension in a so sl; do
5926 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5927 test -f $ac_im_libdir/libX11.$ac_extension; then
5928 ac_im_usrlibdir=$ac_im_libdir; break
5931 # Screen out bogus values from the imake configuration. They are
5932 # bogus both because they are the default anyway, and because
5933 # using them would break gcc on systems where it needs fixed includes.
5934 case "$ac_im_incroot" in
5936 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
5938 case "$ac_im_usrlibdir" in
5940 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
5947 if test "$ac_x_includes" = NO; then
5948 # Guess where to find include files, by looking for this one X11 .h file.
5949 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
5951 # First, try using that file with no special directory specified.
5952 cat > conftest.$ac_ext <<EOF
5953 #line 5954 "configure"
5954 #include "confdefs.h"
5955 #include <$x_direct_test_include>
5957 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5958 { (eval echo configure:5959: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5959 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5960 if test -z "$ac_err"; then
5962 # We can compile using X headers with no special include directory.
5966 echo "configure: failed program was:" >&5
5967 cat conftest.$ac_ext >&5
5969 # Look for the header file in a standard set of common directories.
5970 # Check X11 before X11Rn because it is often a symlink to the current release.
5973 /usr/X11R6/include \
5974 /usr/X11R5/include \
5975 /usr/X11R4/include \
5978 /usr/include/X11R6 \
5979 /usr/include/X11R5 \
5980 /usr/include/X11R4 \
5982 /usr/local/X11/include \
5983 /usr/local/X11R6/include \
5984 /usr/local/X11R5/include \
5985 /usr/local/X11R4/include \
5987 /usr/local/include/X11 \
5988 /usr/local/include/X11R6 \
5989 /usr/local/include/X11R5 \
5990 /usr/local/include/X11R4 \
5994 /usr/XFree86/include/X11 \
5997 /usr/local/include \
5998 /usr/unsupported/include \
5999 /usr/athena/include \
6000 /usr/local/x11r5/include \
6001 /usr/lpp/Xamples/include \
6003 /usr/openwin/include \
6004 /usr/openwin/share/include \
6007 if test -r "$ac_dir/$x_direct_test_include"; then
6008 ac_x_includes=$ac_dir
6014 fi # $ac_x_includes = NO
6016 if test "$ac_x_libraries" = NO; then
6017 # Check for the libraries.
6019 test -z "$x_direct_test_library" && x_direct_test_library=Xt
6020 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
6022 # See if we find them without any special options.
6023 # Don't add to $LIBS permanently.
6024 ac_save_LIBS="$LIBS"
6025 LIBS="-l$x_direct_test_library $LIBS"
6026 cat > conftest.$ac_ext <<EOF
6027 #line 6028 "configure"
6028 #include "confdefs.h"
6031 ${x_direct_test_function}()
6034 if { (eval echo configure:6035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6036 LIBS="$ac_save_LIBS"
6037 # We can link X programs with no special library path.
6040 echo "configure: failed program was:" >&5
6041 cat conftest.$ac_ext >&5
6043 LIBS="$ac_save_LIBS"
6044 # First see if replacing the include by lib works.
6045 # Check X11 before X11Rn because it is often a symlink to the current release.
6046 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
6057 /usr/local/X11/lib \
6058 /usr/local/X11R6/lib \
6059 /usr/local/X11R5/lib \
6060 /usr/local/X11R4/lib \
6062 /usr/local/lib/X11 \
6063 /usr/local/lib/X11R6 \
6064 /usr/local/lib/X11R5 \
6065 /usr/local/lib/X11R4 \
6069 /usr/XFree86/lib/X11 \
6073 /usr/unsupported/lib \
6075 /usr/local/x11r5/lib \
6076 /usr/lpp/Xamples/lib \
6080 /usr/openwin/share/lib \
6083 for ac_extension in a so sl; do
6084 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
6085 ac_x_libraries=$ac_dir
6092 fi # $ac_x_libraries = NO
6094 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
6095 # Didn't find X anywhere. Cache the known absence of X.
6096 ac_cv_have_x="have_x=no"
6098 # Record where we found X for the cache.
6099 ac_cv_have_x="have_x=yes \
6100 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6104 eval "$ac_cv_have_x"
6107 if test "$have_x" != yes; then
6108 echo "$ac_t""$have_x" 1>&6
6111 # If each of the values was on the command line, it overrides each guess.
6112 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6113 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6114 # Update the cache value to reflect the command line values.
6115 ac_cv_have_x="have_x=yes \
6116 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6117 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
6120 if test "$no_x" = yes; then
6121 # Not all programs may use this symbol, but it does not hurt to define it.
6122 cat >> confdefs.h <<\EOF
6123 #define X_DISPLAY_MISSING 1
6126 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6128 if test -n "$x_includes"; then
6129 X_CFLAGS="$X_CFLAGS -I$x_includes"
6132 # It would also be nice to do this for all -L options, not just this one.
6133 if test -n "$x_libraries"; then
6134 X_LIBS="$X_LIBS -L$x_libraries"
6135 # For Solaris; some versions of Sun CC require a space after -R and
6136 # others require no space. Words are not sufficient . . . .
6137 case "`(uname -sr) 2>/dev/null`" in
6139 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
6140 echo "configure:6141: checking whether -R must be followed by a space" >&5
6141 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
6142 cat > conftest.$ac_ext <<EOF
6143 #line 6144 "configure"
6144 #include "confdefs.h"
6150 if { (eval echo configure:6151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6154 echo "configure: failed program was:" >&5
6155 cat conftest.$ac_ext >&5
6160 if test $ac_R_nospace = yes; then
6161 echo "$ac_t""no" 1>&6
6162 X_LIBS="$X_LIBS -R$x_libraries"
6164 LIBS="$ac_xsave_LIBS -R $x_libraries"
6165 cat > conftest.$ac_ext <<EOF
6166 #line 6167 "configure"
6167 #include "confdefs.h"
6173 if { (eval echo configure:6174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6177 echo "configure: failed program was:" >&5
6178 cat conftest.$ac_ext >&5
6183 if test $ac_R_space = yes; then
6184 echo "$ac_t""yes" 1>&6
6185 X_LIBS="$X_LIBS -R $x_libraries"
6187 echo "$ac_t""neither works" 1>&6
6190 LIBS="$ac_xsave_LIBS"
6194 # Check for system-dependent libraries X programs must link with.
6195 # Do this before checking for the system-independent R6 libraries
6196 # (-lICE), since we may need -lsocket or whatever for X linking.
6198 if test "$ISC" = yes; then
6199 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6201 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
6202 # libraries were built with DECnet support. And karl@cs.umb.edu says
6203 # the Alpha needs dnet_stub (dnet does not exist).
6204 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
6205 echo "configure:6206: checking for dnet_ntoa in -ldnet" >&5
6206 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6207 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6208 echo $ac_n "(cached) $ac_c" 1>&6
6210 ac_save_LIBS="$LIBS"
6212 cat > conftest.$ac_ext <<EOF
6213 #line 6214 "configure"
6214 #include "confdefs.h"
6215 /* Override any gcc2 internal prototype to avoid an error. */
6216 /* We use char because int might match the return type of a gcc2
6217 builtin and then its argument prototype would still apply. */
6224 if { (eval echo configure:6225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6226 eval "ac_cv_lib_$ac_lib_var=yes"
6228 echo "configure: failed program was:" >&5
6229 cat conftest.$ac_ext >&5
6231 eval "ac_cv_lib_$ac_lib_var=no"
6234 LIBS="$ac_save_LIBS"
6237 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6238 echo "$ac_t""yes" 1>&6
6239 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6241 echo "$ac_t""no" 1>&6
6244 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6245 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
6246 echo "configure:6247: checking for dnet_ntoa in -ldnet_stub" >&5
6247 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6248 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6249 echo $ac_n "(cached) $ac_c" 1>&6
6251 ac_save_LIBS="$LIBS"
6252 LIBS="-ldnet_stub $LIBS"
6253 cat > conftest.$ac_ext <<EOF
6254 #line 6255 "configure"
6255 #include "confdefs.h"
6256 /* Override any gcc2 internal prototype to avoid an error. */
6257 /* We use char because int might match the return type of a gcc2
6258 builtin and then its argument prototype would still apply. */
6265 if { (eval echo configure:6266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6267 eval "ac_cv_lib_$ac_lib_var=yes"
6269 echo "configure: failed program was:" >&5
6270 cat conftest.$ac_ext >&5
6272 eval "ac_cv_lib_$ac_lib_var=no"
6275 LIBS="$ac_save_LIBS"
6278 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6279 echo "$ac_t""yes" 1>&6
6280 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6282 echo "$ac_t""no" 1>&6
6287 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6288 # to get the SysV transport functions.
6289 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
6291 # The nsl library prevents programs from opening the X display
6292 # on Irix 5.2, according to dickey@clark.net.
6293 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
6294 echo "configure:6295: checking for gethostbyname" >&5
6295 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
6296 echo $ac_n "(cached) $ac_c" 1>&6
6298 cat > conftest.$ac_ext <<EOF
6299 #line 6300 "configure"
6300 #include "confdefs.h"
6301 /* System header to define __stub macros and hopefully few prototypes,
6302 which can conflict with char gethostbyname(); below. */
6304 /* Override any gcc2 internal prototype to avoid an error. */
6305 /* We use char because int might match the return type of a gcc2
6306 builtin and then its argument prototype would still apply. */
6307 char gethostbyname();
6311 /* The GNU C library defines this for functions which it implements
6312 to always fail with ENOSYS. Some functions are actually named
6313 something starting with __ and the normal name is an alias. */
6314 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6322 if { (eval echo configure:6323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6324 eval "ac_cv_func_gethostbyname=yes"
6326 echo "configure: failed program was:" >&5
6327 cat conftest.$ac_ext >&5
6329 eval "ac_cv_func_gethostbyname=no"
6334 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
6335 echo "$ac_t""yes" 1>&6
6338 echo "$ac_t""no" 1>&6
6341 if test $ac_cv_func_gethostbyname = no; then
6342 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
6343 echo "configure:6344: checking for gethostbyname in -lnsl" >&5
6344 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
6345 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6346 echo $ac_n "(cached) $ac_c" 1>&6
6348 ac_save_LIBS="$LIBS"
6350 cat > conftest.$ac_ext <<EOF
6351 #line 6352 "configure"
6352 #include "confdefs.h"
6353 /* Override any gcc2 internal prototype to avoid an error. */
6354 /* We use char because int might match the return type of a gcc2
6355 builtin and then its argument prototype would still apply. */
6356 char gethostbyname();
6362 if { (eval echo configure:6363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6364 eval "ac_cv_lib_$ac_lib_var=yes"
6366 echo "configure: failed program was:" >&5
6367 cat conftest.$ac_ext >&5
6369 eval "ac_cv_lib_$ac_lib_var=no"
6372 LIBS="$ac_save_LIBS"
6375 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6376 echo "$ac_t""yes" 1>&6
6377 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6379 echo "$ac_t""no" 1>&6
6384 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6385 # socket/setsockopt and other routines are undefined under SCO ODT
6386 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6387 # on later versions), says simon@lia.di.epfl.ch: it contains
6388 # gethostby* variants that don't use the nameserver (or something).
6389 # -lsocket must be given before -lnsl if both are needed.
6390 # We assume that if connect needs -lnsl, so does gethostbyname.
6391 echo $ac_n "checking for connect""... $ac_c" 1>&6
6392 echo "configure:6393: checking for connect" >&5
6393 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
6394 echo $ac_n "(cached) $ac_c" 1>&6
6396 cat > conftest.$ac_ext <<EOF
6397 #line 6398 "configure"
6398 #include "confdefs.h"
6399 /* System header to define __stub macros and hopefully few prototypes,
6400 which can conflict with char connect(); below. */
6402 /* Override any gcc2 internal prototype to avoid an error. */
6403 /* We use char because int might match the return type of a gcc2
6404 builtin and then its argument prototype would still apply. */
6409 /* The GNU C library defines this for functions which it implements
6410 to always fail with ENOSYS. Some functions are actually named
6411 something starting with __ and the normal name is an alias. */
6412 #if defined (__stub_connect) || defined (__stub___connect)
6420 if { (eval echo configure:6421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6422 eval "ac_cv_func_connect=yes"
6424 echo "configure: failed program was:" >&5
6425 cat conftest.$ac_ext >&5
6427 eval "ac_cv_func_connect=no"
6432 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
6433 echo "$ac_t""yes" 1>&6
6436 echo "$ac_t""no" 1>&6
6439 if test $ac_cv_func_connect = no; then
6440 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
6441 echo "configure:6442: checking for connect in -lsocket" >&5
6442 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
6443 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6444 echo $ac_n "(cached) $ac_c" 1>&6
6446 ac_save_LIBS="$LIBS"
6447 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6448 cat > conftest.$ac_ext <<EOF
6449 #line 6450 "configure"
6450 #include "confdefs.h"
6451 /* Override any gcc2 internal prototype to avoid an error. */
6452 /* We use char because int might match the return type of a gcc2
6453 builtin and then its argument prototype would still apply. */
6460 if { (eval echo configure:6461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6462 eval "ac_cv_lib_$ac_lib_var=yes"
6464 echo "configure: failed program was:" >&5
6465 cat conftest.$ac_ext >&5
6467 eval "ac_cv_lib_$ac_lib_var=no"
6470 LIBS="$ac_save_LIBS"
6473 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6474 echo "$ac_t""yes" 1>&6
6475 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6477 echo "$ac_t""no" 1>&6
6482 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
6483 echo $ac_n "checking for remove""... $ac_c" 1>&6
6484 echo "configure:6485: checking for remove" >&5
6485 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
6486 echo $ac_n "(cached) $ac_c" 1>&6
6488 cat > conftest.$ac_ext <<EOF
6489 #line 6490 "configure"
6490 #include "confdefs.h"
6491 /* System header to define __stub macros and hopefully few prototypes,
6492 which can conflict with char remove(); below. */
6494 /* Override any gcc2 internal prototype to avoid an error. */
6495 /* We use char because int might match the return type of a gcc2
6496 builtin and then its argument prototype would still apply. */
6501 /* The GNU C library defines this for functions which it implements
6502 to always fail with ENOSYS. Some functions are actually named
6503 something starting with __ and the normal name is an alias. */
6504 #if defined (__stub_remove) || defined (__stub___remove)
6512 if { (eval echo configure:6513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6514 eval "ac_cv_func_remove=yes"
6516 echo "configure: failed program was:" >&5
6517 cat conftest.$ac_ext >&5
6519 eval "ac_cv_func_remove=no"
6524 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
6525 echo "$ac_t""yes" 1>&6
6528 echo "$ac_t""no" 1>&6
6531 if test $ac_cv_func_remove = no; then
6532 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
6533 echo "configure:6534: checking for remove in -lposix" >&5
6534 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
6535 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6536 echo $ac_n "(cached) $ac_c" 1>&6
6538 ac_save_LIBS="$LIBS"
6539 LIBS="-lposix $LIBS"
6540 cat > conftest.$ac_ext <<EOF
6541 #line 6542 "configure"
6542 #include "confdefs.h"
6543 /* Override any gcc2 internal prototype to avoid an error. */
6544 /* We use char because int might match the return type of a gcc2
6545 builtin and then its argument prototype would still apply. */
6552 if { (eval echo configure:6553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6554 eval "ac_cv_lib_$ac_lib_var=yes"
6556 echo "configure: failed program was:" >&5
6557 cat conftest.$ac_ext >&5
6559 eval "ac_cv_lib_$ac_lib_var=no"
6562 LIBS="$ac_save_LIBS"
6565 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6566 echo "$ac_t""yes" 1>&6
6567 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6569 echo "$ac_t""no" 1>&6
6574 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6575 echo $ac_n "checking for shmat""... $ac_c" 1>&6
6576 echo "configure:6577: checking for shmat" >&5
6577 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
6578 echo $ac_n "(cached) $ac_c" 1>&6
6580 cat > conftest.$ac_ext <<EOF
6581 #line 6582 "configure"
6582 #include "confdefs.h"
6583 /* System header to define __stub macros and hopefully few prototypes,
6584 which can conflict with char shmat(); below. */
6586 /* Override any gcc2 internal prototype to avoid an error. */
6587 /* We use char because int might match the return type of a gcc2
6588 builtin and then its argument prototype would still apply. */
6593 /* The GNU C library defines this for functions which it implements
6594 to always fail with ENOSYS. Some functions are actually named
6595 something starting with __ and the normal name is an alias. */
6596 #if defined (__stub_shmat) || defined (__stub___shmat)
6604 if { (eval echo configure:6605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6606 eval "ac_cv_func_shmat=yes"
6608 echo "configure: failed program was:" >&5
6609 cat conftest.$ac_ext >&5
6611 eval "ac_cv_func_shmat=no"
6616 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
6617 echo "$ac_t""yes" 1>&6
6620 echo "$ac_t""no" 1>&6
6623 if test $ac_cv_func_shmat = no; then
6624 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
6625 echo "configure:6626: checking for shmat in -lipc" >&5
6626 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
6627 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6628 echo $ac_n "(cached) $ac_c" 1>&6
6630 ac_save_LIBS="$LIBS"
6632 cat > conftest.$ac_ext <<EOF
6633 #line 6634 "configure"
6634 #include "confdefs.h"
6635 /* Override any gcc2 internal prototype to avoid an error. */
6636 /* We use char because int might match the return type of a gcc2
6637 builtin and then its argument prototype would still apply. */
6644 if { (eval echo configure:6645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6646 eval "ac_cv_lib_$ac_lib_var=yes"
6648 echo "configure: failed program was:" >&5
6649 cat conftest.$ac_ext >&5
6651 eval "ac_cv_lib_$ac_lib_var=no"
6654 LIBS="$ac_save_LIBS"
6657 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6658 echo "$ac_t""yes" 1>&6
6659 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6661 echo "$ac_t""no" 1>&6
6667 # Check for libraries that X11R6 Xt/Xaw programs need.
6668 ac_save_LDFLAGS="$LDFLAGS"
6669 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6670 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6671 # check for ICE first), but we must link in the order -lSM -lICE or
6672 # we get undefined symbols. So assume we have SM if we have ICE.
6673 # These have to be linked with before -lX11, unlike the other
6674 # libraries we check for below, so use a different variable.
6675 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
6676 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
6677 echo "configure:6678: checking for IceConnectionNumber in -lICE" >&5
6678 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
6679 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6680 echo $ac_n "(cached) $ac_c" 1>&6
6682 ac_save_LIBS="$LIBS"
6683 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6684 cat > conftest.$ac_ext <<EOF
6685 #line 6686 "configure"
6686 #include "confdefs.h"
6687 /* Override any gcc2 internal prototype to avoid an error. */
6688 /* We use char because int might match the return type of a gcc2
6689 builtin and then its argument prototype would still apply. */
6690 char IceConnectionNumber();
6693 IceConnectionNumber()
6696 if { (eval echo configure:6697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6698 eval "ac_cv_lib_$ac_lib_var=yes"
6700 echo "configure: failed program was:" >&5
6701 cat conftest.$ac_ext >&5
6703 eval "ac_cv_lib_$ac_lib_var=no"
6706 LIBS="$ac_save_LIBS"
6709 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6710 echo "$ac_t""yes" 1>&6
6711 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6713 echo "$ac_t""no" 1>&6
6716 LDFLAGS="$ac_save_LDFLAGS"
6721 # Check whether --enable-java-awt or --disable-java-awt was given.
6722 if test "${enable_java_awt+set}" = set; then
6723 enableval="$enable_java_awt"
6728 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
6732 for peer in $peerlibs ; do
6735 if test "$no_x" = yes; then
6736 echo "*** xlib peers requested but no X library available" 1>&2
6746 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
6753 if test "$use_xlib_awt" = yes; then
6762 if test "$use_gtk_awt" = yes; then
6774 # We get this from the environment.
6778 cat > confcache <<\EOF
6779 # This file is a shell script that caches the results of configure
6780 # tests run on this system so they can be shared between configure
6781 # scripts and configure runs. It is not useful on other systems.
6782 # If it contains results you don't want to keep, you may remove or edit it.
6784 # By default, configure uses ./config.cache as the cache file,
6785 # creating it if it does not exist already. You can give configure
6786 # the --cache-file=FILE option to use a different cache file; that is
6787 # what configure does when it calls configure scripts in
6788 # subdirectories, so they share the cache.
6789 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6790 # config.status only pays attention to the cache file if you give it the
6791 # --recheck option to rerun configure.
6794 # The following way of writing the cache mishandles newlines in values,
6795 # but we know of no workaround that is simple, portable, and efficient.
6796 # So, don't put newlines in cache variables' values.
6797 # Ultrix sh set writes to stderr and can't be redirected directly,
6798 # and sets the high bit in the cache file unless we assign to the vars.
6800 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6802 # `set' does not quote correctly, so add quotes (double-quote substitution
6803 # turns \\\\ into \\, and sed turns \\ into \).
6805 -e "s/'/'\\\\''/g" \
6806 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6809 # `set' quotes correctly as required by POSIX, so do not add quotes.
6810 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6813 if cmp -s $cache_file confcache; then
6816 if test -w $cache_file; then
6817 echo "updating cache $cache_file"
6818 cat confcache > $cache_file
6820 echo "not updating unwritable cache $cache_file"
6825 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6827 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6828 # Let make expand exec_prefix.
6829 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6831 # Any assignment to VPATH causes Sun make to only execute
6832 # the first set of double-colon rules, so remove it if not needed.
6833 # If there is a colon in the path, we need to keep it.
6834 if test "x$srcdir" = x.; then
6835 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6838 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6840 DEFS=-DHAVE_CONFIG_H
6842 # Without the "./", some shells look in PATH for config.status.
6843 : ${CONFIG_STATUS=./config.status}
6845 echo creating $CONFIG_STATUS
6846 rm -f $CONFIG_STATUS
6847 cat > $CONFIG_STATUS <<EOF
6849 # Generated automatically by configure.
6850 # Run this file to recreate the current configuration.
6851 # This directory was configured as follows,
6852 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6854 # $0 $ac_configure_args
6856 # Compiler output produced by configure, useful for debugging
6857 # configure, is in ./config.log if it exists.
6859 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6862 case "\$ac_option" in
6863 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6864 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6865 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6866 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6867 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6869 -help | --help | --hel | --he | --h)
6870 echo "\$ac_cs_usage"; exit 0 ;;
6871 *) echo "\$ac_cs_usage"; exit 1 ;;
6875 ac_given_srcdir=$srcdir
6876 ac_given_INSTALL="$INSTALL"
6878 trap 'rm -fr `echo "Makefile libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile include/config.h gcj/libgcj-config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6880 cat >> $CONFIG_STATUS <<EOF
6882 # Protect against being on the right side of a sed subst in config.status.
6883 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6884 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6888 s%@CFLAGS@%$CFLAGS%g
6889 s%@CPPFLAGS@%$CPPFLAGS%g
6890 s%@CXXFLAGS@%$CXXFLAGS%g
6891 s%@FFLAGS@%$FFLAGS%g
6893 s%@LDFLAGS@%$LDFLAGS%g
6895 s%@exec_prefix@%$exec_prefix%g
6896 s%@prefix@%$prefix%g
6897 s%@program_transform_name@%$program_transform_name%g
6898 s%@bindir@%$bindir%g
6899 s%@sbindir@%$sbindir%g
6900 s%@libexecdir@%$libexecdir%g
6901 s%@datadir@%$datadir%g
6902 s%@sysconfdir@%$sysconfdir%g
6903 s%@sharedstatedir@%$sharedstatedir%g
6904 s%@localstatedir@%$localstatedir%g
6905 s%@libdir@%$libdir%g
6906 s%@includedir@%$includedir%g
6907 s%@oldincludedir@%$oldincludedir%g
6908 s%@infodir@%$infodir%g
6909 s%@mandir@%$mandir%g
6911 s%@host_alias@%$host_alias%g
6912 s%@host_cpu@%$host_cpu%g
6913 s%@host_vendor@%$host_vendor%g
6914 s%@host_os@%$host_os%g
6915 s%@target@%$target%g
6916 s%@target_alias@%$target_alias%g
6917 s%@target_cpu@%$target_cpu%g
6918 s%@target_vendor@%$target_vendor%g
6919 s%@target_os@%$target_os%g
6921 s%@build_alias@%$build_alias%g
6922 s%@build_cpu@%$build_cpu%g
6923 s%@build_vendor@%$build_vendor%g
6924 s%@build_os@%$build_os%g
6926 s%@libgcj_basedir@%$libgcj_basedir%g
6929 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6930 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6931 s%@INSTALL_DATA@%$INSTALL_DATA%g
6932 s%@PACKAGE@%$PACKAGE%g
6933 s%@VERSION@%$VERSION%g
6934 s%@ACLOCAL@%$ACLOCAL%g
6935 s%@AUTOCONF@%$AUTOCONF%g
6936 s%@AUTOMAKE@%$AUTOMAKE%g
6937 s%@AUTOHEADER@%$AUTOHEADER%g
6938 s%@MAKEINFO@%$MAKEINFO%g
6939 s%@SET_MAKE@%$SET_MAKE%g
6942 s%@RANLIB@%$RANLIB%g
6943 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
6944 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
6946 s%@EXEEXT@%$EXEEXT%g
6947 s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
6948 s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
6949 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
6950 s%@INCLTDL@%$INCLTDL%g
6951 s%@LIBLTDL@%$LIBLTDL%g
6952 s%@DIRLTDL@%$DIRLTDL%g
6953 s%@OBJEXT@%$OBJEXT%g
6955 s%@LIBTOOL@%$LIBTOOL%g
6956 s%@CXXCPP@%$CXXCPP%g
6957 s%@subdirs@%$subdirs%g
6958 s%@COMPPATH@%$COMPPATH%g
6959 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
6960 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
6961 s%@LIBGCJDEBUG@%$LIBGCJDEBUG%g
6962 s%@LIBDATASTARTSPEC@%$LIBDATASTARTSPEC%g
6964 s%@SYSTEMSPEC@%$SYSTEMSPEC%g
6965 s%@LIBGCJTESTSPEC@%$LIBGCJTESTSPEC%g
6966 s%@ZLIBSPEC@%$ZLIBSPEC%g
6967 s%@ZLIBTESTSPEC@%$ZLIBTESTSPEC%g
6968 s%@GCLIBS@%$GCLIBS%g
6969 s%@GCINCS@%$GCINCS%g
6970 s%@GCDEPS@%$GCDEPS%g
6971 s%@GCOBJS@%$GCOBJS%g
6972 s%@GCSPEC@%$GCSPEC%g
6973 s%@JC1GCSPEC@%$JC1GCSPEC%g
6974 s%@GCTESTSPEC@%$GCTESTSPEC%g
6975 s%@THREADLIBS@%$THREADLIBS%g
6976 s%@THREADINCS@%$THREADINCS%g
6977 s%@THREADDEPS@%$THREADDEPS%g
6978 s%@THREADOBJS@%$THREADOBJS%g
6979 s%@THREADSPEC@%$THREADSPEC%g
6980 s%@HASH_SYNC_SPEC@%$HASH_SYNC_SPEC%g
6981 s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
6982 s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
6984 s%@GCJFLAGS@%$GCJFLAGS%g
6988 s%@DIVIDESPEC@%$DIVIDESPEC%g
6989 s%@EXCEPTIONSPEC@%$EXCEPTIONSPEC%g
6990 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
6991 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
6992 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
6993 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
6994 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
6995 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
6996 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
6997 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
6998 s%@NEEDS_DATA_START_TRUE@%$NEEDS_DATA_START_TRUE%g
6999 s%@NEEDS_DATA_START_FALSE@%$NEEDS_DATA_START_FALSE%g
7000 s%@GCC_UNWIND_INCLUDE@%$GCC_UNWIND_INCLUDE%g
7001 s%@GCJVERSION@%$GCJVERSION%g
7002 s%@AM_RUNTESTFLAGS@%$AM_RUNTESTFLAGS%g
7003 s%@ALLOCA@%$ALLOCA%g
7005 s%@SYSDEP_SOURCES@%$SYSDEP_SOURCES%g
7006 s%@X_CFLAGS@%$X_CFLAGS%g
7007 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
7008 s%@X_LIBS@%$X_LIBS%g
7009 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
7010 s%@XLIB_AWT_TRUE@%$XLIB_AWT_TRUE%g
7011 s%@XLIB_AWT_FALSE@%$XLIB_AWT_FALSE%g
7012 s%@GTK_AWT_TRUE@%$GTK_AWT_TRUE%g
7013 s%@GTK_AWT_FALSE@%$GTK_AWT_FALSE%g
7019 cat >> $CONFIG_STATUS <<\EOF
7021 # Split the substitutions into bite-sized pieces for seds with
7022 # small command number limits, like on Digital OSF/1 and HP-UX.
7023 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7024 ac_file=1 # Number of current file.
7025 ac_beg=1 # First line for current file.
7026 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7029 while $ac_more_lines; do
7030 if test $ac_beg -gt 1; then
7031 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7033 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7035 if test ! -s conftest.s$ac_file; then
7037 rm -f conftest.s$ac_file
7039 if test -z "$ac_sed_cmds"; then
7040 ac_sed_cmds="sed -f conftest.s$ac_file"
7042 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7044 ac_file=`expr $ac_file + 1`
7046 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7049 if test -z "$ac_sed_cmds"; then
7054 cat >> $CONFIG_STATUS <<EOF
7056 CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"}
7058 cat >> $CONFIG_STATUS <<\EOF
7059 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7060 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7062 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7063 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7064 *) ac_file_in="${ac_file}.in" ;;
7067 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7069 # Remove last slash and all that follows it. Not all systems have dirname.
7070 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7071 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7072 # The file is in a subdirectory.
7073 test ! -d "$ac_dir" && mkdir "$ac_dir"
7074 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7075 # A "../" for each directory in $ac_dir_suffix.
7076 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7078 ac_dir_suffix= ac_dots=
7081 case "$ac_given_srcdir" in
7083 if test -z "$ac_dots"; then top_srcdir=.
7084 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7085 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7087 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7088 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7091 case "$ac_given_INSTALL" in
7092 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7093 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7096 echo creating "$ac_file"
7098 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7100 *Makefile*) ac_comsub="1i\\
7101 # $configure_input" ;;
7105 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7107 s%@configure_input@%$configure_input%g
7108 s%@srcdir@%$srcdir%g
7109 s%@top_srcdir@%$top_srcdir%g
7110 s%@INSTALL@%$INSTALL%g
7111 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7115 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7116 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7118 # ac_d sets the value in "#define NAME VALUE" lines.
7119 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7120 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7123 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7124 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7125 ac_uB='\([ ]\)%\1#\2define\3'
7128 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7129 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7130 ac_eB='$%\1#\2define\3'
7134 if test "${CONFIG_HEADERS+set}" != set; then
7136 cat >> $CONFIG_STATUS <<EOF
7137 CONFIG_HEADERS="include/config.h gcj/libgcj-config.h"
7139 cat >> $CONFIG_STATUS <<\EOF
7141 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7142 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7144 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7145 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7146 *) ac_file_in="${ac_file}.in" ;;
7149 echo creating $ac_file
7151 rm -f conftest.frag conftest.in conftest.out
7152 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7153 cat $ac_file_inputs > conftest.in
7157 # Transform confdefs.h into a sed script conftest.vals that substitutes
7158 # the proper values into config.h.in to produce config.h. And first:
7159 # Protect against being on the right side of a sed subst in config.status.
7160 # Protect against being in an unquoted here document in config.status.
7162 cat > conftest.hdr <<\EOF
7165 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7169 sed -n -f conftest.hdr confdefs.h > conftest.vals
7172 # This sed command replaces #undef with comments. This is necessary, for
7173 # example, in the case of _POSIX_SOURCE, which is predefined and required
7174 # on some systems where configure will not decide to define it.
7175 cat >> conftest.vals <<\EOF
7176 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7179 # Break up conftest.vals because some shells have a limit on
7180 # the size of here documents, and old seds have small limits too.
7185 ac_lines=`grep -c . conftest.vals`
7186 # grep -c gives empty output for an empty file on some AIX systems.
7187 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7188 # Write a limited-size here document to conftest.frag.
7189 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7190 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7192 sed -f conftest.frag conftest.in > conftest.out
7194 mv conftest.out conftest.in
7196 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7198 mv conftest.tail conftest.vals
7202 cat >> $CONFIG_STATUS <<\EOF
7203 rm -f conftest.frag conftest.h
7204 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7205 cat conftest.in >> conftest.h
7207 if cmp -s $ac_file conftest.h 2>/dev/null; then
7208 echo "$ac_file is unchanged"
7211 # Remove last slash and all that follows it. Not all systems have dirname.
7212 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7213 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7214 # The file is in a subdirectory.
7215 test ! -d "$ac_dir" && mkdir "$ac_dir"
7218 mv conftest.h $ac_file
7224 cat >> $CONFIG_STATUS <<EOF
7225 ac_sources="java/io/$FILE_DESCRIPTOR java/lang/${PROCESS}Process.java java/lang/nat${PROCESS}Process.cc include/$GCHDR include/$THREADH $SIGNAL_HANDLER"
7226 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"
7229 cat >> $CONFIG_STATUS <<\EOF
7230 srcdir=$ac_given_srcdir
7231 while test -n "$ac_sources"; do
7232 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7233 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7235 echo "linking $srcdir/$ac_source to $ac_dest"
7237 if test ! -r $srcdir/$ac_source; then
7238 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
7242 # Make relative symlinks.
7243 # Remove last slash and all that follows it. Not all systems have dirname.
7244 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
7245 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
7246 # The dest file is in a subdirectory.
7247 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
7248 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
7249 # A "../" for each directory in $ac_dest_dir_suffix.
7250 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
7252 ac_dest_dir_suffix= ac_dots=
7256 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
7257 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
7260 # Make a symlink if possible; otherwise try a hard link.
7261 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
7262 ln $srcdir/$ac_source $ac_dest; then :
7264 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
7268 cat >> $CONFIG_STATUS <<EOF
7273 with_multisubdir=${with_multisubdir}
7274 ac_configure_args="${multilib_arg} ${ac_configure_args}"
7275 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
7276 libgcj_basedir=${libgcj_basedir}
7281 cat >> $CONFIG_STATUS <<\EOF
7283 for am_file in include/config.h gcj/libgcj-config.h; do
7284 case " $CONFIG_HEADERS " in
7286 echo timestamp > `echo $am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
7289 am_indx=`expr "$am_indx" + 1`
7291 # Only add multilib support code if we just rebuilt top-level Makefile.
7292 case " $CONFIG_FILES " in
7294 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
7298 # Make subdirectories and `.d' files. Look in both srcdir and
7299 # builddir for the .java files.
7302 ( (cd $srcdir && find . -name '*.java' -print) ;
7303 find . -name '*.java' -print) | \
7304 fgrep -v testsuite | \
7305 sed -e 's/\.java/.d/' | \
7307 echo "include $f" >> deps.mk
7310 d=`echo $f | sed -e 's,/[^/]*$,,'`
7312 $srcdir/../mkinstalldirs $d
7319 chmod +x $CONFIG_STATUS
7320 rm -fr confdefs* $ac_clean_files
7321 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7323 if test "$no_recursion" != yes; then
7325 # Remove --cache-file and --srcdir arguments so they do not pile up.
7326 ac_sub_configure_args=
7328 for ac_arg in $ac_configure_args; do
7329 if test -n "$ac_prev"; then
7334 -cache-file | --cache-file | --cache-fil | --cache-fi \
7335 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7336 ac_prev=cache_file ;;
7337 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7338 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
7340 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7342 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7344 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
7348 for ac_config_dir in $DIRLTDL; do
7350 # Do not complain, so a configure script can configure whichever
7351 # parts of a large source tree are present.
7352 if test ! -d $srcdir/$ac_config_dir; then
7356 echo configuring in $ac_config_dir
7361 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
7363 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
7371 # A "../" for each directory in /$ac_config_dir.
7372 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
7375 .) # No --srcdir option. We are building in place.
7376 ac_sub_srcdir=$srcdir ;;
7377 /*) # Absolute path.
7378 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
7380 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
7383 # Check for guested configure; otherwise get Cygnus style configure.
7384 if test -f $ac_sub_srcdir/configure; then
7385 ac_sub_configure=$ac_sub_srcdir/configure
7386 elif test -f $ac_sub_srcdir/configure.in; then
7387 ac_sub_configure=$ac_configure
7389 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
7393 # The recursion is here.
7394 if test -n "$ac_sub_configure"; then
7396 # Make the cache file name correct relative to the subdirectory.
7397 case "$cache_file" in
7398 /*) ac_sub_cache_file=$cache_file ;;
7400 ac_sub_cache_file="$ac_dots$cache_file" ;;
7402 case "$ac_given_INSTALL" in
7403 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7404 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7407 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
7408 # The eval makes quoting arguments work.
7409 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
7412 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }