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 --without-libffi don't use libffi"
55 --disable-jvmpi disable JVMPI support"
57 --with-ecos enable runtime eCos target support"
59 --with-system-zlib use installed libz"
61 --enable-java-gc=TYPE choose garbage collector [boehm]"
63 --with-x use the X Window System"
65 --enable-java-awt list of AWT peer implementations to be built"
67 # Initialize some variables set by options.
68 # The variables have the same names as the options, with
69 # dashes changed to underlines.
71 cache_file=./config.cache
80 program_transform_name=s,x,x,
88 bindir='${exec_prefix}/bin'
89 sbindir='${exec_prefix}/sbin'
90 libexecdir='${exec_prefix}/libexec'
91 datadir='${prefix}/share'
92 sysconfdir='${prefix}/etc'
93 sharedstatedir='${prefix}/com'
94 localstatedir='${prefix}/var'
95 libdir='${exec_prefix}/lib'
96 includedir='${prefix}/include'
97 oldincludedir='/usr/include'
98 infodir='${prefix}/info'
99 mandir='${prefix}/man'
101 # Initialize some other variables.
104 SHELL=${CONFIG_SHELL-/bin/sh}
105 # Maximum number of lines to put in a shell here document.
112 # If the previous option needs an argument, assign it.
113 if test -n "$ac_prev"; then
114 eval "$ac_prev=\$ac_option"
120 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
124 # Accept the important Cygnus configure options, so we can diagnose typos.
128 -bindir | --bindir | --bindi | --bind | --bin | --bi)
130 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
131 bindir="$ac_optarg" ;;
133 -build | --build | --buil | --bui | --bu)
135 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
136 build="$ac_optarg" ;;
138 -cache-file | --cache-file | --cache-fil | --cache-fi \
139 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
140 ac_prev=cache_file ;;
141 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
142 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
143 cache_file="$ac_optarg" ;;
145 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
147 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
149 datadir="$ac_optarg" ;;
151 -disable-* | --disable-*)
152 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
153 # Reject names that are not valid shell variable names.
154 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
155 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
157 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
158 eval "enable_${ac_feature}=no" ;;
160 -enable-* | --enable-*)
161 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
162 # Reject names that are not valid shell variable names.
163 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
164 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
166 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
171 eval "enable_${ac_feature}='$ac_optarg'" ;;
173 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
174 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
175 | --exec | --exe | --ex)
176 ac_prev=exec_prefix ;;
177 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
178 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
179 | --exec=* | --exe=* | --ex=*)
180 exec_prefix="$ac_optarg" ;;
182 -gas | --gas | --ga | --g)
183 # Obsolete; use --with-gas.
186 -help | --help | --hel | --he)
187 # Omit some internal or obsolete options to make the list less imposing.
188 # This message is too long to be a string in the A/UX 3.1 sh.
190 Usage: configure [options] [host]
191 Options: [defaults in brackets after descriptions]
193 --cache-file=FILE cache test results in FILE
194 --help print this message
195 --no-create do not create output files
196 --quiet, --silent do not print \`checking...' messages
197 --version print the version of autoconf that created configure
198 Directory and file names:
199 --prefix=PREFIX install architecture-independent files in PREFIX
201 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
203 --bindir=DIR user executables in DIR [EPREFIX/bin]
204 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
205 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
206 --datadir=DIR read-only architecture-independent data in DIR
208 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
209 --sharedstatedir=DIR modifiable architecture-independent data in DIR
211 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
212 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
213 --includedir=DIR C header files in DIR [PREFIX/include]
214 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
215 --infodir=DIR info documentation in DIR [PREFIX/info]
216 --mandir=DIR man documentation in DIR [PREFIX/man]
217 --srcdir=DIR find the sources in DIR [configure dir or ..]
218 --program-prefix=PREFIX prepend PREFIX to installed program names
219 --program-suffix=SUFFIX append SUFFIX to installed program names
220 --program-transform-name=PROGRAM
221 run sed PROGRAM on installed program names
225 --build=BUILD configure for building on BUILD [BUILD=HOST]
226 --host=HOST configure for HOST [guessed]
227 --target=TARGET configure for TARGET [TARGET=HOST]
228 Features and packages:
229 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
230 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
231 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
232 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
233 --x-includes=DIR X include files are in DIR
234 --x-libraries=DIR X library files are in DIR
236 if test -n "$ac_help"; then
237 echo "--enable and --with options recognized:$ac_help"
241 -host | --host | --hos | --ho)
243 -host=* | --host=* | --hos=* | --ho=*)
246 -includedir | --includedir | --includedi | --included | --include \
247 | --includ | --inclu | --incl | --inc)
248 ac_prev=includedir ;;
249 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
250 | --includ=* | --inclu=* | --incl=* | --inc=*)
251 includedir="$ac_optarg" ;;
253 -infodir | --infodir | --infodi | --infod | --info | --inf)
255 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
256 infodir="$ac_optarg" ;;
258 -libdir | --libdir | --libdi | --libd)
260 -libdir=* | --libdir=* | --libdi=* | --libd=*)
261 libdir="$ac_optarg" ;;
263 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
264 | --libexe | --libex | --libe)
265 ac_prev=libexecdir ;;
266 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
267 | --libexe=* | --libex=* | --libe=*)
268 libexecdir="$ac_optarg" ;;
270 -localstatedir | --localstatedir | --localstatedi | --localstated \
271 | --localstate | --localstat | --localsta | --localst \
272 | --locals | --local | --loca | --loc | --lo)
273 ac_prev=localstatedir ;;
274 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
275 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
276 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
277 localstatedir="$ac_optarg" ;;
279 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
281 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
282 mandir="$ac_optarg" ;;
285 # Obsolete; use --without-fp.
288 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
292 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
293 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
296 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
297 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
298 | --oldin | --oldi | --old | --ol | --o)
299 ac_prev=oldincludedir ;;
300 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
301 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
302 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
303 oldincludedir="$ac_optarg" ;;
305 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
307 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
308 prefix="$ac_optarg" ;;
310 -program-prefix | --program-prefix | --program-prefi | --program-pref \
311 | --program-pre | --program-pr | --program-p)
312 ac_prev=program_prefix ;;
313 -program-prefix=* | --program-prefix=* | --program-prefi=* \
314 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
315 program_prefix="$ac_optarg" ;;
317 -program-suffix | --program-suffix | --program-suffi | --program-suff \
318 | --program-suf | --program-su | --program-s)
319 ac_prev=program_suffix ;;
320 -program-suffix=* | --program-suffix=* | --program-suffi=* \
321 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
322 program_suffix="$ac_optarg" ;;
324 -program-transform-name | --program-transform-name \
325 | --program-transform-nam | --program-transform-na \
326 | --program-transform-n | --program-transform- \
327 | --program-transform | --program-transfor \
328 | --program-transfo | --program-transf \
329 | --program-trans | --program-tran \
330 | --progr-tra | --program-tr | --program-t)
331 ac_prev=program_transform_name ;;
332 -program-transform-name=* | --program-transform-name=* \
333 | --program-transform-nam=* | --program-transform-na=* \
334 | --program-transform-n=* | --program-transform-=* \
335 | --program-transform=* | --program-transfor=* \
336 | --program-transfo=* | --program-transf=* \
337 | --program-trans=* | --program-tran=* \
338 | --progr-tra=* | --program-tr=* | --program-t=*)
339 program_transform_name="$ac_optarg" ;;
341 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
342 | -silent | --silent | --silen | --sile | --sil)
345 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
347 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
349 sbindir="$ac_optarg" ;;
351 -sharedstatedir | --sharedstatedir | --sharedstatedi \
352 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
353 | --sharedst | --shareds | --shared | --share | --shar \
355 ac_prev=sharedstatedir ;;
356 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
357 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
358 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
360 sharedstatedir="$ac_optarg" ;;
362 -site | --site | --sit)
364 -site=* | --site=* | --sit=*)
367 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
369 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
370 srcdir="$ac_optarg" ;;
372 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
373 | --syscon | --sysco | --sysc | --sys | --sy)
374 ac_prev=sysconfdir ;;
375 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
376 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
377 sysconfdir="$ac_optarg" ;;
379 -target | --target | --targe | --targ | --tar | --ta | --t)
381 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
382 target="$ac_optarg" ;;
384 -v | -verbose | --verbose | --verbos | --verbo | --verb)
387 -version | --version | --versio | --versi | --vers)
388 echo "configure generated by autoconf version 2.13"
392 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
393 # Reject names that are not valid shell variable names.
394 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
395 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
397 ac_package=`echo $ac_package| sed 's/-/_/g'`
402 eval "with_${ac_package}='$ac_optarg'" ;;
404 -without-* | --without-*)
405 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
406 # Reject names that are not valid shell variable names.
407 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
408 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
410 ac_package=`echo $ac_package| sed 's/-/_/g'`
411 eval "with_${ac_package}=no" ;;
414 # Obsolete; use --with-x.
417 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
418 | --x-incl | --x-inc | --x-in | --x-i)
419 ac_prev=x_includes ;;
420 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
421 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
422 x_includes="$ac_optarg" ;;
424 -x-libraries | --x-libraries | --x-librarie | --x-librari \
425 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
426 ac_prev=x_libraries ;;
427 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
428 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
429 x_libraries="$ac_optarg" ;;
431 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
435 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
436 echo "configure: warning: $ac_option: invalid host type" 1>&2
438 if test "x$nonopt" != xNONE; then
439 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
447 if test -n "$ac_prev"; then
448 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
451 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
453 # File descriptor usage:
456 # 2 errors and warnings
457 # 3 some systems may open it to /dev/tty
458 # 4 used on the Kubota Titan
459 # 6 checking for... messages and results
460 # 5 compiler messages saved in config.log
461 if test "$silent" = yes; then
469 This file contains any messages produced by compilers while
470 running configure, to aid debugging if configure makes a mistake.
473 # Strip out --no-create and --no-recursion so they do not pile up.
474 # Also quote any args containing shell metacharacters.
479 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
480 | --no-cr | --no-c) ;;
481 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
482 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
483 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
484 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
485 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
490 # Only set these to C if already set. These must not be set unconditionally
491 # because not all systems understand e.g. LANG=C (notably SCO).
492 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
493 # Non-C LC_CTYPE values break the ctype check.
494 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
495 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
496 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
497 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
499 # confdefs.h avoids OS command line length limits that DEFS can exceed.
500 rm -rf conftest* confdefs.h
501 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
504 # A filename unique to this package, relative to the directory that
505 # configure is in, which we can look for to find out if srcdir is correct.
506 ac_unique_file=java/lang/System.java
508 # Find the source files, if location was not specified.
509 if test -z "$srcdir"; then
510 ac_srcdir_defaulted=yes
511 # Try the directory containing this script, then its parent.
513 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
514 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
516 if test ! -r $srcdir/$ac_unique_file; then
520 ac_srcdir_defaulted=no
522 if test ! -r $srcdir/$ac_unique_file; then
523 if test "$ac_srcdir_defaulted" = yes; then
524 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
526 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
529 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
531 # Prefer explicitly selected file to automatically selected ones.
532 if test -z "$CONFIG_SITE"; then
533 if test "x$prefix" != xNONE; then
534 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
536 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
539 for ac_site_file in $CONFIG_SITE; do
540 if test -r "$ac_site_file"; then
541 echo "loading site script $ac_site_file"
546 if test -r "$cache_file"; then
547 echo "loading cache $cache_file"
550 echo "creating cache $cache_file"
555 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
556 ac_cpp='$CPP $CPPFLAGS'
557 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
558 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
559 cross_compiling=$ac_cv_prog_cc_cross
563 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
564 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
565 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
572 ac_n= ac_c='\c' ac_t=
578 for ac_dir in .. $srcdir/..; do
579 if test -f $ac_dir/install-sh; then
581 ac_install_sh="$ac_aux_dir/install-sh -c"
583 elif test -f $ac_dir/install.sh; then
585 ac_install_sh="$ac_aux_dir/install.sh -c"
589 if test -z "$ac_aux_dir"; then
590 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
592 ac_config_guess=$ac_aux_dir/config.guess
593 ac_config_sub=$ac_aux_dir/config.sub
594 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
598 # Do some error checking and defaulting for the host and target type.
600 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
603 # 1. You are not allowed to specify --host, --target, and nonopt at the
605 # 2. Host defaults to nonopt.
606 # 3. If nonopt is not specified, then host defaults to the current host,
607 # as determined by config.guess.
608 # 4. Target and build default to nonopt.
609 # 5. If nonopt is not specified, then target and build default to host.
611 # The aliases save the names the user supplied, while $host etc.
612 # will get canonicalized.
613 case $host---$target---$nonopt in
614 NONE---*---* | *---NONE---* | *---*---NONE) ;;
615 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
619 # Make sure we can run config.sub.
620 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
621 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
624 echo $ac_n "checking host system type""... $ac_c" 1>&6
625 echo "configure:626: checking host system type" >&5
628 case "$host_alias" in
632 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
633 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
635 *) host_alias=$nonopt ;;
639 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
640 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
641 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
642 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
643 echo "$ac_t""$host" 1>&6
645 echo $ac_n "checking target system type""... $ac_c" 1>&6
646 echo "configure:647: checking target system type" >&5
649 case "$target_alias" in
652 NONE) target_alias=$host_alias ;;
653 *) target_alias=$nonopt ;;
657 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
658 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
659 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
660 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
661 echo "$ac_t""$target" 1>&6
663 echo $ac_n "checking build system type""... $ac_c" 1>&6
664 echo "configure:665: checking build system type" >&5
667 case "$build_alias" in
670 NONE) build_alias=$host_alias ;;
671 *) build_alias=$nonopt ;;
675 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
676 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
677 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
678 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
679 echo "$ac_t""$build" 1>&6
681 test "$host_alias" != "$target_alias" &&
682 test "$program_prefix$program_suffix$program_transform_name" = \
684 program_prefix=${target_alias}-
686 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
687 echo "configure:688: checking whether ln -s works" >&5
688 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
689 echo $ac_n "(cached) $ac_c" 1>&6
692 if ln -s X conftestdata 2>/dev/null
695 ac_cv_prog_LN_S="ln -s"
700 LN_S="$ac_cv_prog_LN_S"
701 if test "$ac_cv_prog_LN_S" = "ln -s"; then
702 echo "$ac_t""yes" 1>&6
704 echo "$ac_t""no" 1>&6
708 # Check whether --with-target-subdir or --without-target-subdir was given.
709 if test "${with_target_subdir+set}" = set; then
710 withval="$with_target_subdir"
714 # Check whether --with-cross-host or --without-cross-host was given.
715 if test "${with_cross_host+set}" = set; then
716 withval="$with_cross_host"
721 # Find a good install program. We prefer a C program (faster),
722 # so one script is as good as another. But avoid the broken or
723 # incompatible versions:
724 # SysV /etc/install, /usr/sbin/install
725 # SunOS /usr/etc/install
728 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
729 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
730 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
731 # ./install, which can be erroneously created by make from ./install.sh.
732 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
733 echo "configure:734: checking for a BSD compatible install" >&5
734 if test -z "$INSTALL"; then
735 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
736 echo $ac_n "(cached) $ac_c" 1>&6
738 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
739 for ac_dir in $PATH; do
740 # Account for people who put trailing slashes in PATH elements.
742 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
744 # OSF1 and SCO ODT 3.0 have their own names for install.
745 # Don't use installbsd from OSF since it installs stuff as root
747 for ac_prog in ginstall scoinst install; do
748 if test -f $ac_dir/$ac_prog; then
749 if test $ac_prog = install &&
750 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
751 # AIX install. It has an incompatible calling convention.
754 ac_cv_path_install="$ac_dir/$ac_prog -c"
765 if test "${ac_cv_path_install+set}" = set; then
766 INSTALL="$ac_cv_path_install"
768 # As a last resort, use the slow shell script. We don't cache a
769 # path for INSTALL within a source directory, because that will
770 # break other packages using the cache if that directory is
771 # removed, or if the path is relative.
772 INSTALL="$ac_install_sh"
775 echo "$ac_t""$INSTALL" 1>&6
777 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
778 # It thinks the first close brace ends the variable substitution.
779 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
781 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
783 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
785 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
786 echo "configure:787: checking whether build environment is sane" >&5
789 echo timestamp > conftestfile
790 # Do `set' in a subshell so we don't clobber the current shell's
791 # arguments. Must try -L first in case configure is actually a
792 # symlink; some systems play weird games with the mod time of symlinks
793 # (eg FreeBSD returns the mod time of the symlink's containing
796 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
797 if test "$*" = "X"; then
799 set X `ls -t $srcdir/configure conftestfile`
801 if test "$*" != "X $srcdir/configure conftestfile" \
802 && test "$*" != "X conftestfile $srcdir/configure"; then
804 # If neither matched, then we have a broken ls. This can happen
805 # if, for instance, CONFIG_SHELL is bash and it inherits a
806 # broken ls alias from the environment. This has actually
807 # happened. Such a system could not be considered "sane".
808 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
809 alias in your environment" 1>&2; exit 1; }
812 test "$2" = conftestfile
818 { echo "configure: error: newly created file is older than distributed files!
819 Check your system clock" 1>&2; exit 1; }
822 echo "$ac_t""yes" 1>&6
823 if test "$program_transform_name" = s,x,x,; then
824 program_transform_name=
826 # Double any \ or $. echo might interpret backslashes.
827 cat <<\EOF_SED > conftestsed
828 s,\\,\\\\,g; s,\$,$$,g
830 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
833 test "$program_prefix" != NONE &&
834 program_transform_name="s,^,${program_prefix},; $program_transform_name"
835 # Use a double $ so make ignores it.
836 test "$program_suffix" != NONE &&
837 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
839 # sed with no file args requires a program.
840 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
842 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
843 echo "configure:844: checking whether ${MAKE-make} sets \${MAKE}" >&5
844 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
845 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
846 echo $ac_n "(cached) $ac_c" 1>&6
848 cat > conftestmake <<\EOF
850 @echo 'ac_maketemp="${MAKE}"'
852 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
853 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
854 if test -n "$ac_maketemp"; then
855 eval ac_cv_prog_make_${ac_make}_set=yes
857 eval ac_cv_prog_make_${ac_make}_set=no
861 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
862 echo "$ac_t""yes" 1>&6
865 echo "$ac_t""no" 1>&6
866 SET_MAKE="MAKE=${MAKE-make}"
869 if test $host != $build; then
870 ac_tool_prefix=${host_alias}-
875 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
876 echo "configure:877: checking for Cygwin environment" >&5
877 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
878 echo $ac_n "(cached) $ac_c" 1>&6
880 cat > conftest.$ac_ext <<EOF
881 #line 882 "configure"
882 #include "confdefs.h"
887 #define __CYGWIN__ __CYGWIN32__
892 if { (eval echo configure:893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
896 echo "configure: failed program was:" >&5
897 cat conftest.$ac_ext >&5
905 echo "$ac_t""$ac_cv_cygwin" 1>&6
907 test "$ac_cv_cygwin" = yes && CYGWIN=yes
908 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
909 echo "configure:910: checking for mingw32 environment" >&5
910 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
911 echo $ac_n "(cached) $ac_c" 1>&6
913 cat > conftest.$ac_ext <<EOF
914 #line 915 "configure"
915 #include "confdefs.h"
921 if { (eval echo configure:922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
925 echo "configure: failed program was:" >&5
926 cat conftest.$ac_ext >&5
934 echo "$ac_t""$ac_cv_mingw32" 1>&6
936 test "$ac_cv_mingw32" = yes && MINGW32=yes
938 # Check whether --enable-multilib or --disable-multilib was given.
939 if test "${enable_multilib+set}" = set; then
940 enableval="$enable_multilib"
941 case "${enableval}" in
944 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
951 if test "${srcdir}" = "."; then
952 if test "${with_target_subdir}" != "."; then
953 libgcj_basedir="${srcdir}/${with_multisrctop}../."
955 libgcj_basedir="${srcdir}/${with_multisrctop}."
958 libgcj_basedir="${srcdir}/."
963 # Make sure we can run config.sub.
964 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
965 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
968 echo $ac_n "checking host system type""... $ac_c" 1>&6
969 echo "configure:970: checking host system type" >&5
972 case "$host_alias" in
976 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
977 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
979 *) host_alias=$nonopt ;;
983 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
984 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
985 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
986 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
987 echo "$ac_t""$host" 1>&6
993 # Extract the first word of "gcc", so it can be a program name with args.
994 set dummy gcc; ac_word=$2
995 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
996 echo "configure:997: checking for $ac_word" >&5
997 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
998 echo $ac_n "(cached) $ac_c" 1>&6
1000 if test -n "$CC"; then
1001 ac_cv_prog_CC="$CC" # Let the user override the test.
1003 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1005 for ac_dir in $ac_dummy; do
1006 test -z "$ac_dir" && ac_dir=.
1007 if test -f $ac_dir/$ac_word; then
1016 if test -n "$CC"; then
1017 echo "$ac_t""$CC" 1>&6
1019 echo "$ac_t""no" 1>&6
1022 if test -z "$CC"; then
1023 # Extract the first word of "cc", so it can be a program name with args.
1024 set dummy cc; ac_word=$2
1025 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1026 echo "configure:1027: checking for $ac_word" >&5
1027 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1028 echo $ac_n "(cached) $ac_c" 1>&6
1030 if test -n "$CC"; then
1031 ac_cv_prog_CC="$CC" # Let the user override the test.
1033 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1036 for ac_dir in $ac_dummy; do
1037 test -z "$ac_dir" && ac_dir=.
1038 if test -f $ac_dir/$ac_word; then
1039 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1040 ac_prog_rejected=yes
1048 if test $ac_prog_rejected = yes; then
1049 # We found a bogon in the path, so make sure we never use it.
1050 set dummy $ac_cv_prog_CC
1052 if test $# -gt 0; then
1053 # We chose a different compiler from the bogus one.
1054 # However, it has the same basename, so the bogon will be chosen
1055 # first if we set CC to just the basename; use the full file name.
1057 set dummy "$ac_dir/$ac_word" "$@"
1065 if test -n "$CC"; then
1066 echo "$ac_t""$CC" 1>&6
1068 echo "$ac_t""no" 1>&6
1071 if test -z "$CC"; then
1072 case "`uname -s`" in
1074 # Extract the first word of "cl", so it can be a program name with args.
1075 set dummy cl; ac_word=$2
1076 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1077 echo "configure:1078: checking for $ac_word" >&5
1078 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1079 echo $ac_n "(cached) $ac_c" 1>&6
1081 if test -n "$CC"; then
1082 ac_cv_prog_CC="$CC" # Let the user override the test.
1084 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1086 for ac_dir in $ac_dummy; do
1087 test -z "$ac_dir" && ac_dir=.
1088 if test -f $ac_dir/$ac_word; then
1097 if test -n "$CC"; then
1098 echo "$ac_t""$CC" 1>&6
1100 echo "$ac_t""no" 1>&6
1105 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1109 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1110 echo "configure:1111: checking whether we are using GNU C" >&5
1111 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1112 echo $ac_n "(cached) $ac_c" 1>&6
1114 cat > conftest.c <<EOF
1119 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1120: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1126 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1128 if test $ac_cv_prog_gcc = yes; then
1134 ac_test_CFLAGS="${CFLAGS+set}"
1135 ac_save_CFLAGS="$CFLAGS"
1137 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1138 echo "configure:1139: checking whether ${CC-cc} accepts -g" >&5
1139 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1140 echo $ac_n "(cached) $ac_c" 1>&6
1142 echo 'void f(){}' > conftest.c
1143 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1152 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1153 if test "$ac_test_CFLAGS" = set; then
1154 CFLAGS="$ac_save_CFLAGS"
1155 elif test $ac_cv_prog_cc_g = yes; then
1156 if test "$GCC" = yes; then
1162 if test "$GCC" = yes; then
1169 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1171 # Extract the first word of "$ac_prog", so it can be a program name with args.
1172 set dummy $ac_prog; ac_word=$2
1173 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1174 echo "configure:1175: checking for $ac_word" >&5
1175 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1176 echo $ac_n "(cached) $ac_c" 1>&6
1178 if test -n "$CXX"; then
1179 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1181 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1183 for ac_dir in $ac_dummy; do
1184 test -z "$ac_dir" && ac_dir=.
1185 if test -f $ac_dir/$ac_word; then
1186 ac_cv_prog_CXX="$ac_prog"
1193 CXX="$ac_cv_prog_CXX"
1194 if test -n "$CXX"; then
1195 echo "$ac_t""$CXX" 1>&6
1197 echo "$ac_t""no" 1>&6
1200 test -n "$CXX" && break
1202 test -n "$CXX" || CXX="gcc"
1206 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1207 echo "configure:1208: checking whether we are using GNU C++" >&5
1208 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1209 echo $ac_n "(cached) $ac_c" 1>&6
1211 cat > conftest.C <<EOF
1216 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1223 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1225 if test $ac_cv_prog_gxx = yes; then
1231 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1232 ac_save_CXXFLAGS="$CXXFLAGS"
1234 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1235 echo "configure:1236: checking whether ${CXX-g++} accepts -g" >&5
1236 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1237 echo $ac_n "(cached) $ac_c" 1>&6
1239 echo 'void f(){}' > conftest.cc
1240 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1241 ac_cv_prog_cxx_g=yes
1249 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1250 if test "$ac_test_CXXFLAGS" = set; then
1251 CXXFLAGS="$ac_save_CXXFLAGS"
1252 elif test $ac_cv_prog_cxx_g = yes; then
1253 if test "$GXX" = yes; then
1259 if test "$GXX" = yes; then
1273 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1274 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1276 cat >> confdefs.h <<EOF
1277 #define PACKAGE "$PACKAGE"
1280 cat >> confdefs.h <<EOF
1281 #define VERSION "$VERSION"
1286 missing_dir=`cd $ac_aux_dir && pwd`
1287 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1288 echo "configure:1289: checking for working aclocal" >&5
1289 # Run test in a subshell; some versions of sh will print an error if
1290 # an executable is not found, even if stderr is redirected.
1291 # Redirect stdin to placate older versions of autoconf. Sigh.
1292 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1294 echo "$ac_t""found" 1>&6
1296 ACLOCAL="$missing_dir/missing aclocal"
1297 echo "$ac_t""missing" 1>&6
1300 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1301 echo "configure:1302: checking for working autoconf" >&5
1302 # Run test in a subshell; some versions of sh will print an error if
1303 # an executable is not found, even if stderr is redirected.
1304 # Redirect stdin to placate older versions of autoconf. Sigh.
1305 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1307 echo "$ac_t""found" 1>&6
1309 AUTOCONF="$missing_dir/missing autoconf"
1310 echo "$ac_t""missing" 1>&6
1313 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1314 echo "configure:1315: checking for working automake" >&5
1315 # Run test in a subshell; some versions of sh will print an error if
1316 # an executable is not found, even if stderr is redirected.
1317 # Redirect stdin to placate older versions of autoconf. Sigh.
1318 if (automake --version) < /dev/null > /dev/null 2>&1; then
1320 echo "$ac_t""found" 1>&6
1322 AUTOMAKE="$missing_dir/missing automake"
1323 echo "$ac_t""missing" 1>&6
1326 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1327 echo "configure:1328: checking for working autoheader" >&5
1328 # Run test in a subshell; some versions of sh will print an error if
1329 # an executable is not found, even if stderr is redirected.
1330 # Redirect stdin to placate older versions of autoconf. Sigh.
1331 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1332 AUTOHEADER=autoheader
1333 echo "$ac_t""found" 1>&6
1335 AUTOHEADER="$missing_dir/missing autoheader"
1336 echo "$ac_t""missing" 1>&6
1339 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1340 echo "configure:1341: checking for working makeinfo" >&5
1341 # Run test in a subshell; some versions of sh will print an error if
1342 # an executable is not found, even if stderr is redirected.
1343 # Redirect stdin to placate older versions of autoconf. Sigh.
1344 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1346 echo "$ac_t""found" 1>&6
1348 MAKEINFO="$missing_dir/missing makeinfo"
1349 echo "$ac_t""missing" 1>&6
1354 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we dont
1355 # run it explicitly here, it will be run implicitly before
1356 # LIBGCJ_CONFIGURE, which doesn't work because that means that it will
1357 # be run before AC_CANONICAL_HOST.
1358 echo $ac_n "checking build system type""... $ac_c" 1>&6
1359 echo "configure:1360: checking build system type" >&5
1362 case "$build_alias" in
1365 NONE) build_alias=$host_alias ;;
1366 *) build_alias=$nonopt ;;
1370 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1371 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1372 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1373 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1374 echo "$ac_t""$build" 1>&6
1377 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1378 set dummy ${ac_tool_prefix}as; ac_word=$2
1379 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1380 echo "configure:1381: checking for $ac_word" >&5
1381 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1382 echo $ac_n "(cached) $ac_c" 1>&6
1384 if test -n "$AS"; then
1385 ac_cv_prog_AS="$AS" # Let the user override the test.
1387 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1389 for ac_dir in $ac_dummy; do
1390 test -z "$ac_dir" && ac_dir=.
1391 if test -f $ac_dir/$ac_word; then
1392 ac_cv_prog_AS="${ac_tool_prefix}as"
1397 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1401 if test -n "$AS"; then
1402 echo "$ac_t""$AS" 1>&6
1404 echo "$ac_t""no" 1>&6
1409 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1410 set dummy ${ac_tool_prefix}ar; ac_word=$2
1411 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1412 echo "configure:1413: checking for $ac_word" >&5
1413 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1414 echo $ac_n "(cached) $ac_c" 1>&6
1416 if test -n "$AR"; then
1417 ac_cv_prog_AR="$AR" # Let the user override the test.
1419 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1421 for ac_dir in $ac_dummy; do
1422 test -z "$ac_dir" && ac_dir=.
1423 if test -f $ac_dir/$ac_word; then
1424 ac_cv_prog_AR="${ac_tool_prefix}ar"
1429 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1433 if test -n "$AR"; then
1434 echo "$ac_t""$AR" 1>&6
1436 echo "$ac_t""no" 1>&6
1441 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1442 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1443 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1444 echo "configure:1445: checking for $ac_word" >&5
1445 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1446 echo $ac_n "(cached) $ac_c" 1>&6
1448 if test -n "$RANLIB"; then
1449 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1451 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1453 for ac_dir in $ac_dummy; do
1454 test -z "$ac_dir" && ac_dir=.
1455 if test -f $ac_dir/$ac_word; then
1456 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1463 RANLIB="$ac_cv_prog_RANLIB"
1464 if test -n "$RANLIB"; then
1465 echo "$ac_t""$RANLIB" 1>&6
1467 echo "$ac_t""no" 1>&6
1471 if test -z "$ac_cv_prog_RANLIB"; then
1472 if test -n "$ac_tool_prefix"; then
1473 # Extract the first word of "ranlib", so it can be a program name with args.
1474 set dummy ranlib; ac_word=$2
1475 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1476 echo "configure:1477: checking for $ac_word" >&5
1477 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1478 echo $ac_n "(cached) $ac_c" 1>&6
1480 if test -n "$RANLIB"; then
1481 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1483 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1485 for ac_dir in $ac_dummy; do
1486 test -z "$ac_dir" && ac_dir=.
1487 if test -f $ac_dir/$ac_word; then
1488 ac_cv_prog_RANLIB="ranlib"
1493 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1496 RANLIB="$ac_cv_prog_RANLIB"
1497 if test -n "$RANLIB"; then
1498 echo "$ac_t""$RANLIB" 1>&6
1500 echo "$ac_t""no" 1>&6
1509 # Find a good install program. We prefer a C program (faster),
1510 # so one script is as good as another. But avoid the broken or
1511 # incompatible versions:
1512 # SysV /etc/install, /usr/sbin/install
1513 # SunOS /usr/etc/install
1514 # IRIX /sbin/install
1516 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1517 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1518 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1519 # ./install, which can be erroneously created by make from ./install.sh.
1520 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1521 echo "configure:1522: checking for a BSD compatible install" >&5
1522 if test -z "$INSTALL"; then
1523 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1524 echo $ac_n "(cached) $ac_c" 1>&6
1526 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1527 for ac_dir in $PATH; do
1528 # Account for people who put trailing slashes in PATH elements.
1530 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1532 # OSF1 and SCO ODT 3.0 have their own names for install.
1533 # Don't use installbsd from OSF since it installs stuff as root
1535 for ac_prog in ginstall scoinst install; do
1536 if test -f $ac_dir/$ac_prog; then
1537 if test $ac_prog = install &&
1538 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1539 # AIX install. It has an incompatible calling convention.
1542 ac_cv_path_install="$ac_dir/$ac_prog -c"
1553 if test "${ac_cv_path_install+set}" = set; then
1554 INSTALL="$ac_cv_path_install"
1556 # As a last resort, use the slow shell script. We don't cache a
1557 # path for INSTALL within a source directory, because that will
1558 # break other packages using the cache if that directory is
1559 # removed, or if the path is relative.
1560 INSTALL="$ac_install_sh"
1563 echo "$ac_t""$INSTALL" 1>&6
1565 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1566 # It thinks the first close brace ends the variable substitution.
1567 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1569 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1571 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1574 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1575 echo "configure:1576: checking whether to enable maintainer-specific portions of Makefiles" >&5
1576 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1577 if test "${enable_maintainer_mode+set}" = set; then
1578 enableval="$enable_maintainer_mode"
1579 USE_MAINTAINER_MODE=$enableval
1581 USE_MAINTAINER_MODE=no
1584 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1587 if test $USE_MAINTAINER_MODE = yes; then
1588 MAINTAINER_MODE_TRUE=
1589 MAINTAINER_MODE_FALSE='#'
1591 MAINTAINER_MODE_TRUE='#'
1592 MAINTAINER_MODE_FALSE=
1594 MAINT=$MAINTAINER_MODE_TRUE
1598 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1599 # at least currently, we never actually build a program, so we never
1600 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1601 # fails, because we are probably configuring with a cross compiler
1602 # which cant create executables. So we include AC_EXEEXT to keep
1603 # automake happy, but we dont execute it, since we dont care about
1608 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1609 echo "configure:1610: checking for executable suffix" >&5
1610 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1611 echo $ac_n "(cached) $ac_c" 1>&6
1613 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1617 echo 'int main () { return 0; }' > conftest.$ac_ext
1619 if { (eval echo configure:1620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1620 for file in conftest.*; do
1622 *.c | *.o | *.obj) ;;
1623 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1627 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1630 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1635 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1636 echo "$ac_t""${ac_cv_exeext}" 1>&6
1641 # configure.host sets the following important variables
1642 # libgcj_cflags - host specific C compiler flags
1643 # libgcj_cxxflags - host specific C++ compiler flags
1644 # libgcj_javaflags - host specific Java compiler flags
1650 . ${libgcj_basedir}/configure.host
1652 case ${libgcj_basedir} in
1653 /* | A-Za-z:/\\*) libgcj_flagbasedir=${libgcj_basedir} ;;
1654 *) libgcj_flagbasedir='$(top_builddir)/'${libgcj_basedir} ;;
1657 LIBGCJ_CFLAGS="${libgcj_cflags}"
1658 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
1659 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
1669 # Only use libltdl for native builds.
1670 if test -z "${with_cross_host}"; then
1671 case $enable_ltdl_convenience in
1672 no) { echo "configure: error: this package needs a convenience libltdl" 1>&2; exit 1; } ;;
1673 "") enable_ltdl_convenience=yes
1674 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
1676 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
1677 INCLTDL='-I${top_srcdir}/''libltdl'
1681 cat >> confdefs.h <<\EOF
1685 # Sigh. Libtool's macro doesn't do the right thing.
1686 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
1691 # Check whether --enable-shared or --disable-shared was given.
1692 if test "${enable_shared+set}" = set; then
1693 enableval="$enable_shared"
1694 p=${PACKAGE-default}
1696 yes) enable_shared=yes ;;
1697 no) enable_shared=no ;;
1700 # Look at the argument we got. We use all the common list separators.
1701 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1702 for pkg in $enableval; do
1703 if test "X$pkg" = "X$p"; then
1714 # Check whether --enable-static or --disable-static was given.
1715 if test "${enable_static+set}" = set; then
1716 enableval="$enable_static"
1717 p=${PACKAGE-default}
1719 yes) enable_static=yes ;;
1720 no) enable_static=no ;;
1723 # Look at the argument we got. We use all the common list separators.
1724 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1725 for pkg in $enableval; do
1726 if test "X$pkg" = "X$p"; then
1737 # Check whether --enable-fast-install or --disable-fast-install was given.
1738 if test "${enable_fast_install+set}" = set; then
1739 enableval="$enable_fast_install"
1740 p=${PACKAGE-default}
1742 yes) enable_fast_install=yes ;;
1743 no) enable_fast_install=no ;;
1745 enable_fast_install=no
1746 # Look at the argument we got. We use all the common list separators.
1747 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1748 for pkg in $enableval; do
1749 if test "X$pkg" = "X$p"; then
1750 enable_fast_install=yes
1757 enable_fast_install=yes
1760 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1761 if test "${with_gnu_ld+set}" = set; then
1762 withval="$with_gnu_ld"
1763 test "$withval" = no || with_gnu_ld=yes
1769 if test "$GCC" = yes; then
1770 # Check if gcc -print-prog-name=ld gives a path.
1771 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1772 echo "configure:1773: checking for ld used by GCC" >&5
1775 # gcc leaves a trailing carriage return which upsets mingw
1776 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1778 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1781 # Accept absolute paths.
1782 [\\/]* | [A-Za-z]:[\\/]*)
1783 re_direlt='/[^/][^/]*/\.\./'
1784 # Canonicalize the path of ld
1785 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1786 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1787 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1789 test -z "$LD" && LD="$ac_prog"
1792 # If it fails, then pretend we aren't using GCC.
1796 # If it is relative, then search for the first ld in PATH.
1800 elif test "$with_gnu_ld" = yes; then
1801 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1802 echo "configure:1803: checking for GNU ld" >&5
1804 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1805 echo "configure:1806: checking for non-GNU ld" >&5
1807 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1808 echo $ac_n "(cached) $ac_c" 1>&6
1810 if test -z "$LD"; then
1811 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1812 for ac_dir in $PATH; do
1813 test -z "$ac_dir" && ac_dir=.
1814 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1815 lt_cv_path_LD="$ac_dir/$ac_prog"
1816 # Check to see if the program is GNU ld. I'd rather use --version,
1817 # but apparently some GNU ld's only accept -v.
1818 # Break only if it was the GNU/non-GNU ld that we prefer.
1819 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1820 test "$with_gnu_ld" != no && break
1822 test "$with_gnu_ld" != yes && break
1828 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1833 if test -n "$LD"; then
1834 echo "$ac_t""$LD" 1>&6
1836 echo "$ac_t""no" 1>&6
1838 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1839 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1840 echo "configure:1841: checking if the linker ($LD) is GNU ld" >&5
1841 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1842 echo $ac_n "(cached) $ac_c" 1>&6
1844 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1845 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1846 lt_cv_prog_gnu_ld=yes
1848 lt_cv_prog_gnu_ld=no
1852 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1853 with_gnu_ld=$lt_cv_prog_gnu_ld
1856 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1857 echo "configure:1858: checking for $LD option to reload object files" >&5
1858 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1859 echo $ac_n "(cached) $ac_c" 1>&6
1861 lt_cv_ld_reload_flag='-r'
1864 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1865 reload_flag=$lt_cv_ld_reload_flag
1866 test -n "$reload_flag" && reload_flag=" $reload_flag"
1868 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1869 echo "configure:1870: checking for BSD-compatible nm" >&5
1870 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1871 echo $ac_n "(cached) $ac_c" 1>&6
1873 if test -n "$NM"; then
1874 # Let the user override the test.
1877 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1878 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1879 test -z "$ac_dir" && ac_dir=.
1880 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1881 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1882 # Check to see if the nm accepts a BSD-compat flag.
1883 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1884 # nm: unknown option "B" ignored
1885 # Tru64's nm complains that /dev/null is an invalid object file
1886 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1887 lt_cv_path_NM="$tmp_nm -B"
1889 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1890 lt_cv_path_NM="$tmp_nm -p"
1893 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1894 continue # so that we can try to find one that supports BSD flags
1899 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1904 echo "$ac_t""$NM" 1>&6
1906 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1907 echo "configure:1908: checking how to recognise dependant libraries" >&5
1908 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1909 echo $ac_n "(cached) $ac_c" 1>&6
1911 lt_cv_file_magic_cmd='$MAGIC_CMD'
1912 lt_cv_file_magic_test_file=
1913 lt_cv_deplibs_check_method='unknown'
1914 # Need to set the preceding variable on all platforms that support
1915 # interlibrary dependencies.
1916 # 'none' -- dependencies not supported.
1917 # `unknown' -- same as none, but documents that we really don't know.
1918 # 'pass_all' -- all dependencies passed with no checks.
1919 # 'test_compile' -- check by making test program.
1920 # 'file_magic [regex]' -- check by looking for files in library path
1921 # which responds to the $file_magic_cmd with a given egrep regex.
1922 # If you have `file' or equivalent on your system and you're not sure
1923 # whether `pass_all' will *always* work, you probably want this one.
1927 lt_cv_deplibs_check_method=pass_all
1931 lt_cv_deplibs_check_method=pass_all
1935 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1936 lt_cv_file_magic_cmd='/usr/bin/file -L'
1937 lt_cv_file_magic_test_file=/shlib/libc.so
1940 cygwin* | mingw* |pw32*)
1941 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1942 lt_cv_file_magic_cmd='$OBJDUMP -f'
1945 darwin* | rhapsody*)
1946 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1947 lt_cv_file_magic_cmd='/usr/bin/file -L'
1949 rhapsody* | darwin1.012)
1950 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1953 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1959 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1962 # Not sure whether the presence of OpenBSD here was a mistake.
1963 # Let's accept both of them until this is cleared up.
1964 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1965 lt_cv_file_magic_cmd=/usr/bin/file
1966 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1970 lt_cv_deplibs_check_method=pass_all
1975 lt_cv_deplibs_check_method=pass_all
1979 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1980 lt_cv_file_magic_cmd=/usr/bin/file
1981 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1987 # this will be overridden with pass_all, but let us keep it just in case
1988 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1992 *-32|*"-32 ") libmagic=32-bit;;
1993 *-n32|*"-n32 ") libmagic=N32;;
1994 *-64|*"-64 ") libmagic=64-bit;;
1995 *) libmagic=never-match;;
1997 # this will be overridden with pass_all, but let us keep it just in case
1998 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2001 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2002 lt_cv_deplibs_check_method=pass_all
2005 # This must be Linux ELF.
2008 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2009 lt_cv_deplibs_check_method=pass_all ;;
2011 # glibc up to 2.1.1 does not perform some relocations on ARM
2012 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2014 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2018 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2019 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2021 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2026 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2027 lt_cv_file_magic_cmd=/usr/bin/file
2028 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2031 osf3* | osf4* | osf5*)
2032 # this will be overridden with pass_all, but let us keep it just in case
2033 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2034 lt_cv_file_magic_test_file=/shlib/libc.so
2035 lt_cv_deplibs_check_method=pass_all
2039 lt_cv_deplibs_check_method=pass_all
2043 lt_cv_deplibs_check_method=pass_all
2044 lt_cv_file_magic_test_file=/lib/libc.so
2047 sysv5uw[78]* | sysv4*uw2*)
2048 lt_cv_deplibs_check_method=pass_all
2051 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2052 case $host_vendor in
2054 lt_cv_deplibs_check_method=pass_all
2057 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]'
2058 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2066 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2067 file_magic_cmd=$lt_cv_file_magic_cmd
2068 deplibs_check_method=$lt_cv_deplibs_check_method
2070 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2071 echo "configure:2072: checking for object suffix" >&5
2072 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2073 echo $ac_n "(cached) $ac_c" 1>&6
2076 echo 'int i = 1;' > conftest.$ac_ext
2077 if { (eval echo configure:2078: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2078 for ac_file in conftest.*; do
2081 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2085 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2090 echo "$ac_t""$ac_cv_objext" 1>&6
2091 OBJEXT=$ac_cv_objext
2092 ac_objext=$ac_cv_objext
2094 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2096 # Only perform the check for file, if the check method requires it
2097 case $deplibs_check_method in
2099 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2100 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2101 echo "configure:2102: checking for ${ac_tool_prefix}file" >&5
2102 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2103 echo $ac_n "(cached) $ac_c" 1>&6
2107 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2110 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2113 ac_save_MAGIC_CMD="$MAGIC_CMD"
2114 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2115 ac_dummy="/usr/bin:$PATH"
2116 for ac_dir in $ac_dummy; do
2117 test -z "$ac_dir" && ac_dir=.
2118 if test -f $ac_dir/${ac_tool_prefix}file; then
2119 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2120 if test -n "$file_magic_test_file"; then
2121 case $deplibs_check_method in
2123 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2124 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2125 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2126 egrep "$file_magic_regex" > /dev/null; then
2131 *** Warning: the command libtool uses to detect shared libraries,
2132 *** $file_magic_cmd, produces output that libtool cannot recognize.
2133 *** The result is that libtool may fail to recognize shared libraries
2134 *** as such. This will affect the creation of libtool libraries that
2135 *** depend on shared libraries, but programs linked with such libtool
2136 *** libraries will work regardless of this problem. Nevertheless, you
2137 *** may want to report the problem to your system manager and/or to
2138 *** bug-libtool@gnu.org
2148 MAGIC_CMD="$ac_save_MAGIC_CMD"
2153 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2154 if test -n "$MAGIC_CMD"; then
2155 echo "$ac_t""$MAGIC_CMD" 1>&6
2157 echo "$ac_t""no" 1>&6
2160 if test -z "$lt_cv_path_MAGIC_CMD"; then
2161 if test -n "$ac_tool_prefix"; then
2162 echo $ac_n "checking for file""... $ac_c" 1>&6
2163 echo "configure:2164: checking for file" >&5
2164 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2165 echo $ac_n "(cached) $ac_c" 1>&6
2169 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2172 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2175 ac_save_MAGIC_CMD="$MAGIC_CMD"
2176 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2177 ac_dummy="/usr/bin:$PATH"
2178 for ac_dir in $ac_dummy; do
2179 test -z "$ac_dir" && ac_dir=.
2180 if test -f $ac_dir/file; then
2181 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2182 if test -n "$file_magic_test_file"; then
2183 case $deplibs_check_method in
2185 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2186 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2187 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2188 egrep "$file_magic_regex" > /dev/null; then
2193 *** Warning: the command libtool uses to detect shared libraries,
2194 *** $file_magic_cmd, produces output that libtool cannot recognize.
2195 *** The result is that libtool may fail to recognize shared libraries
2196 *** as such. This will affect the creation of libtool libraries that
2197 *** depend on shared libraries, but programs linked with such libtool
2198 *** libraries will work regardless of this problem. Nevertheless, you
2199 *** may want to report the problem to your system manager and/or to
2200 *** bug-libtool@gnu.org
2210 MAGIC_CMD="$ac_save_MAGIC_CMD"
2215 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2216 if test -n "$MAGIC_CMD"; then
2217 echo "$ac_t""$MAGIC_CMD" 1>&6
2219 echo "$ac_t""no" 1>&6
2231 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2232 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2233 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2234 echo "configure:2235: checking for $ac_word" >&5
2235 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2236 echo $ac_n "(cached) $ac_c" 1>&6
2238 if test -n "$RANLIB"; then
2239 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2241 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2243 for ac_dir in $ac_dummy; do
2244 test -z "$ac_dir" && ac_dir=.
2245 if test -f $ac_dir/$ac_word; then
2246 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2253 RANLIB="$ac_cv_prog_RANLIB"
2254 if test -n "$RANLIB"; then
2255 echo "$ac_t""$RANLIB" 1>&6
2257 echo "$ac_t""no" 1>&6
2261 if test -z "$ac_cv_prog_RANLIB"; then
2262 if test -n "$ac_tool_prefix"; then
2263 # Extract the first word of "ranlib", so it can be a program name with args.
2264 set dummy ranlib; ac_word=$2
2265 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2266 echo "configure:2267: checking for $ac_word" >&5
2267 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2268 echo $ac_n "(cached) $ac_c" 1>&6
2270 if test -n "$RANLIB"; then
2271 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2273 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2275 for ac_dir in $ac_dummy; do
2276 test -z "$ac_dir" && ac_dir=.
2277 if test -f $ac_dir/$ac_word; then
2278 ac_cv_prog_RANLIB="ranlib"
2283 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2286 RANLIB="$ac_cv_prog_RANLIB"
2287 if test -n "$RANLIB"; then
2288 echo "$ac_t""$RANLIB" 1>&6
2290 echo "$ac_t""no" 1>&6
2298 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2299 set dummy ${ac_tool_prefix}strip; ac_word=$2
2300 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2301 echo "configure:2302: checking for $ac_word" >&5
2302 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2303 echo $ac_n "(cached) $ac_c" 1>&6
2305 if test -n "$STRIP"; then
2306 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2308 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2310 for ac_dir in $ac_dummy; do
2311 test -z "$ac_dir" && ac_dir=.
2312 if test -f $ac_dir/$ac_word; then
2313 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2320 STRIP="$ac_cv_prog_STRIP"
2321 if test -n "$STRIP"; then
2322 echo "$ac_t""$STRIP" 1>&6
2324 echo "$ac_t""no" 1>&6
2328 if test -z "$ac_cv_prog_STRIP"; then
2329 if test -n "$ac_tool_prefix"; then
2330 # Extract the first word of "strip", so it can be a program name with args.
2331 set dummy strip; ac_word=$2
2332 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2333 echo "configure:2334: checking for $ac_word" >&5
2334 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2335 echo $ac_n "(cached) $ac_c" 1>&6
2337 if test -n "$STRIP"; then
2338 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2340 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2342 for ac_dir in $ac_dummy; do
2343 test -z "$ac_dir" && ac_dir=.
2344 if test -f $ac_dir/$ac_word; then
2345 ac_cv_prog_STRIP="strip"
2350 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2353 STRIP="$ac_cv_prog_STRIP"
2354 if test -n "$STRIP"; then
2355 echo "$ac_t""$STRIP" 1>&6
2357 echo "$ac_t""no" 1>&6
2366 # Check for any special flags to pass to ltconfig.
2367 libtool_flags="--cache-file=$cache_file"
2368 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2369 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2370 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2371 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2372 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2373 libtool_flags="$libtool_flags --enable-dlopen"
2375 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2376 if test "${enable_libtool_lock+set}" = set; then
2377 enableval="$enable_libtool_lock"
2381 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2382 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2384 # Check whether --with-pic or --without-pic was given.
2385 if test "${with_pic+set}" = set; then
2392 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2393 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2395 # Some flags need to be propagated to the compiler or linker for good
2399 # Find out which ABI we are using.
2400 echo '#line 2401 "configure"' > conftest.$ac_ext
2401 if { (eval echo configure:2402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2402 case `/usr/bin/file conftest.$ac_objext` in
2418 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2419 SAVE_CFLAGS="$CFLAGS"
2420 CFLAGS="$CFLAGS -belf"
2421 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2422 echo "configure:2423: checking whether the C compiler needs -belf" >&5
2423 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2424 echo $ac_n "(cached) $ac_c" 1>&6
2428 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2429 ac_cpp='$CPP $CPPFLAGS'
2430 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2431 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2432 cross_compiling=$ac_cv_prog_cc_cross
2434 cat > conftest.$ac_ext <<EOF
2435 #line 2436 "configure"
2436 #include "confdefs.h"
2442 if { (eval echo configure:2443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2444 lt_cv_cc_needs_belf=yes
2446 echo "configure: failed program was:" >&5
2447 cat conftest.$ac_ext >&5
2449 lt_cv_cc_needs_belf=no
2453 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2454 ac_cpp='$CPP $CPPFLAGS'
2455 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2456 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2457 cross_compiling=$ac_cv_prog_cc_cross
2461 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2462 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2463 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2464 CFLAGS="$SAVE_CFLAGS"
2471 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2472 echo "configure:2473: checking how to run the C++ preprocessor" >&5
2473 if test -z "$CXXCPP"; then
2474 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2475 echo $ac_n "(cached) $ac_c" 1>&6
2478 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2479 ac_cpp='$CXXCPP $CPPFLAGS'
2480 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2481 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2482 cross_compiling=$ac_cv_prog_cxx_cross
2483 CXXCPP="${CXX-g++} -E"
2484 cat > conftest.$ac_ext <<EOF
2485 #line 2486 "configure"
2486 #include "confdefs.h"
2489 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2490 { (eval echo configure:2491: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2491 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2492 if test -z "$ac_err"; then
2496 echo "configure: failed program was:" >&5
2497 cat conftest.$ac_ext >&5
2502 ac_cv_prog_CXXCPP="$CXXCPP"
2504 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2505 ac_cpp='$CPP $CPPFLAGS'
2506 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2507 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2508 cross_compiling=$ac_cv_prog_cc_cross
2511 CXXCPP="$ac_cv_prog_CXXCPP"
2512 echo "$ac_t""$CXXCPP" 1>&6
2515 # Save cache, so that ltconfig can load it
2516 cat > confcache <<\EOF
2517 # This file is a shell script that caches the results of configure
2518 # tests run on this system so they can be shared between configure
2519 # scripts and configure runs. It is not useful on other systems.
2520 # If it contains results you don't want to keep, you may remove or edit it.
2522 # By default, configure uses ./config.cache as the cache file,
2523 # creating it if it does not exist already. You can give configure
2524 # the --cache-file=FILE option to use a different cache file; that is
2525 # what configure does when it calls configure scripts in
2526 # subdirectories, so they share the cache.
2527 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2528 # config.status only pays attention to the cache file if you give it the
2529 # --recheck option to rerun configure.
2532 # The following way of writing the cache mishandles newlines in values,
2533 # but we know of no workaround that is simple, portable, and efficient.
2534 # So, don't put newlines in cache variables' values.
2535 # Ultrix sh set writes to stderr and can't be redirected directly,
2536 # and sets the high bit in the cache file unless we assign to the vars.
2538 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2540 # `set' does not quote correctly, so add quotes (double-quote substitution
2541 # turns \\\\ into \\, and sed turns \\ into \).
2543 -e "s/'/'\\\\''/g" \
2544 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2547 # `set' quotes correctly as required by POSIX, so do not add quotes.
2548 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2551 if cmp -s $cache_file confcache; then
2554 if test -w $cache_file; then
2555 echo "updating cache $cache_file"
2556 cat confcache > $cache_file
2558 echo "not updating unwritable cache $cache_file"
2564 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2565 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2566 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2567 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2568 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2569 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2570 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2571 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2572 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2573 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2575 # Reload cache, that may have been modified by ltconfig
2576 if test -r "$cache_file"; then
2577 echo "loading cache $cache_file"
2580 echo "creating cache $cache_file"
2585 # This can be used to rebuild libtool when needed
2586 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2588 # Always use our own libtool.
2589 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2591 # Redirect the config.log output again, so that the ltconfig log is not
2592 # clobbered by the next message.
2593 exec 5>>./config.log
2597 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2599 lt_save_CFLAGS="$CFLAGS"
2600 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2601 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2602 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2603 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2604 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2605 deplibs_check_method="$deplibs_check_method" \
2606 file_magic_cmd="$file_magic_cmd" \
2607 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2608 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2609 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2611 CFLAGS="$lt_save_CFLAGS"
2613 # Redirect the config.log output again, so that the ltconfig log is not
2614 # clobbered by the next message.
2615 exec 5>>./config.log
2625 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
2634 if test -d $srcdir/testsuite; then
2636 TESTSUBDIR_FALSE='#'
2642 # Check whether --enable-fast-character or --disable-fast-character was given.
2643 if test "${enable_fast_character+set}" = set; then
2644 enableval="$enable_fast_character"
2648 cat >> confdefs.h <<\EOF
2649 #define COMPACT_CHARACTER 1
2655 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
2656 if test "${enable_getenv_properties+set}" = set; then
2657 enableval="$enable_getenv_properties"
2662 if test -z "$enable_getenv_properties"; then
2663 enable_getenv_properties=${enable_getenv_properties_default-yes}
2665 if test "$enable_getenv_properties" = no; then
2666 cat >> confdefs.h <<\EOF
2667 #define DISABLE_GETENV_PROPERTIES 1
2673 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
2674 if test "${enable_hash_synchronization+set}" = set; then
2675 enableval="$enable_hash_synchronization"
2680 if test -z "$enable_hash_synchronization"; then
2681 enable_hash_synchronization=$enable_hash_synchronization_default
2687 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2688 if test "${enable_libgcj_debug+set}" = set; then
2689 enableval="$enable_libgcj_debug"
2690 if test "$enable_libgcj_debug" = yes; then
2691 cat >> confdefs.h <<\EOF
2700 # Check whether --enable-interpreter or --disable-interpreter was given.
2701 if test "${enable_interpreter+set}" = set; then
2702 enableval="$enable_interpreter"
2703 if test "$enable_interpreter" = yes; then
2704 # This can also be set in configure.host.
2705 libgcj_interpreter=yes
2706 elif test "$enable_interpreter" = no; then
2707 libgcj_interpreter=no
2712 if test "$libgcj_interpreter" = yes; then
2713 cat >> confdefs.h <<\EOF
2714 #define INTERPRETER 1
2719 echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
2720 echo "configure:2721: checking for exception model to use" >&5
2723 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2724 ac_cpp='$CXXCPP $CPPFLAGS'
2725 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2726 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2727 cross_compiling=$ac_cv_prog_cxx_cross
2729 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
2730 if test "${enable_sjlj_exceptions+set}" = set; then
2731 enableval="$enable_sjlj_exceptions"
2734 cat > conftest.$ac_ext << EOF
2735 #line 2736 "configure"
2744 old_CXXFLAGS="$CXXFLAGS"
2746 if { (eval echo configure:2747: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2747 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
2748 enable_sjlj_exceptions=yes
2749 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
2750 enable_sjlj_exceptions=no
2753 CXXFLAGS="$old_CXXFLAGS"
2757 if test x$enable_sjlj_exceptions = xyes; then
2758 cat >> confdefs.h <<\EOF
2759 #define SJLJ_EXCEPTIONS 1
2762 ac_exception_model_name=sjlj
2763 elif test x$enable_sjlj_exceptions = xno; then
2764 ac_exception_model_name="call frame"
2766 { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
2769 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2770 ac_cpp='$CPP $CPPFLAGS'
2771 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2772 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2773 cross_compiling=$ac_cv_prog_cc_cross
2775 echo "$ac_t""$ac_exception_model_name" 1>&6
2777 echo $ac_n "checking for data_start""... $ac_c" 1>&6
2778 echo "configure:2779: checking for data_start" >&5
2781 cat > conftest.$ac_ext <<EOF
2782 #line 2783 "configure"
2783 #include "confdefs.h"
2784 extern int data_start;
2786 return ((int) &data_start);
2789 if { (eval echo configure:2790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2791 echo "$ac_t""found it" 1>&6
2793 echo "configure: failed program was:" >&5
2794 cat conftest.$ac_ext >&5
2796 LIBDATASTARTSPEC="-u data_start libgcjdata.a%s"
2797 NEEDS_DATA_START=yes
2798 echo "$ac_t""missing" 1>&6
2803 # Check whether --enable-java-net or --disable-java-net was given.
2804 if test "${enable_java_net+set}" = set; then
2805 enableval="$enable_java_net"
2810 if test -z "$enable_java_net"; then
2811 enable_java_net=${enable_java_net_default-yes}
2813 if test "$enable_java_net" = no; then
2814 cat >> confdefs.h <<\EOF
2815 #define DISABLE_JAVA_NET 1
2820 # Check whether --with-libffi or --without-libffi was given.
2821 if test "${with_libffi+set}" = set; then
2822 withval="$with_libffi"
2825 with_libffi=${with_libffi_default-yes}
2831 if test "$with_libffi" != no; then
2832 cat >> confdefs.h <<\EOF
2833 #define USE_LIBFFI 1
2836 LIBFFI=../libffi/libfficonvenience.la
2837 LIBFFIINCS="-I$(top_srcdir)/../libffi/include -I$(MULTIBUILDTOP)../libffi/include"
2842 # Check whether --enable-jvmpi or --disable-jvmpi was given.
2843 if test "${enable_jvmpi+set}" = set; then
2844 enableval="$enable_jvmpi"
2849 if test "$enable_jvmpi" != no; then
2850 cat >> confdefs.h <<\EOF
2851 #define ENABLE_JVMPI 1
2857 # Check whether --with-ecos or --without-ecos was given.
2858 if test "${with_ecos+set}" = set; then
2859 withval="$with_ecos"
2860 TARGET_ECOS="$with_ecos"
2865 case "$TARGET_ECOS" in
2867 FILE_DESCRIPTOR=natFileDescriptorPosix.cc
2868 PROCESS=${PROCESS-Posix}
2871 FILE_DESCRIPTOR=natFileDescriptorEcos.cc
2873 cat >> confdefs.h <<\EOF
2880 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2881 echo "configure:2882: checking how to run the C preprocessor" >&5
2882 # On Suns, sometimes $CPP names a directory.
2883 if test -n "$CPP" && test -d "$CPP"; then
2886 if test -z "$CPP"; then
2887 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2888 echo $ac_n "(cached) $ac_c" 1>&6
2890 # This must be in double quotes, not single quotes, because CPP may get
2891 # substituted into the Makefile and "${CC-cc}" will confuse make.
2893 # On the NeXT, cc -E runs the code through the compiler's parser,
2894 # not just through cpp.
2895 cat > conftest.$ac_ext <<EOF
2896 #line 2897 "configure"
2897 #include "confdefs.h"
2901 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2902 { (eval echo configure:2903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2903 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2904 if test -z "$ac_err"; then
2908 echo "configure: failed program was:" >&5
2909 cat conftest.$ac_ext >&5
2911 CPP="${CC-cc} -E -traditional-cpp"
2912 cat > conftest.$ac_ext <<EOF
2913 #line 2914 "configure"
2914 #include "confdefs.h"
2918 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2919 { (eval echo configure:2920: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2920 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2921 if test -z "$ac_err"; then
2925 echo "configure: failed program was:" >&5
2926 cat conftest.$ac_ext >&5
2928 CPP="${CC-cc} -nologo -E"
2929 cat > conftest.$ac_ext <<EOF
2930 #line 2931 "configure"
2931 #include "confdefs.h"
2935 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2936 { (eval echo configure:2937: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2937 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2938 if test -z "$ac_err"; then
2942 echo "configure: failed program was:" >&5
2943 cat conftest.$ac_ext >&5
2952 ac_cv_prog_CPP="$CPP"
2954 CPP="$ac_cv_prog_CPP"
2956 ac_cv_prog_CPP="$CPP"
2958 echo "$ac_t""$CPP" 1>&6
2960 cat > conftest.$ac_ext <<EOF
2961 #line 2962 "configure"
2962 #include "confdefs.h"
2965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2966 egrep "uint32_t" >/dev/null 2>&1; then
2968 cat >> confdefs.h <<\EOF
2969 #define HAVE_INT32_DEFINED 1
2975 cat > conftest.$ac_ext <<EOF
2976 #line 2977 "configure"
2977 #include "confdefs.h"
2978 #include <inttypes.h>
2980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2981 egrep "uint32_t" >/dev/null 2>&1; then
2983 cat >> confdefs.h <<\EOF
2984 #define HAVE_INT32_DEFINED 1
2990 cat > conftest.$ac_ext <<EOF
2991 #line 2992 "configure"
2992 #include "confdefs.h"
2993 #include <sys/types.h>
2995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2996 egrep "u_int32_t" >/dev/null 2>&1; then
2998 cat >> confdefs.h <<\EOF
2999 #define HAVE_BSD_INT32_DEFINED 1
3005 cat > conftest.$ac_ext <<EOF
3006 #line 3007 "configure"
3007 #include "confdefs.h"
3008 #include <sys/config.h>
3010 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3011 egrep "u_int32_t" >/dev/null 2>&1; then
3013 cat >> confdefs.h <<\EOF
3014 #define HAVE_BSD_INT32_DEFINED 1
3022 cat > conftest.$ac_ext <<EOF
3023 #line 3024 "configure"
3024 #include "confdefs.h"
3027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3028 egrep "mktime" >/dev/null 2>&1; then
3030 cat >> confdefs.h <<\EOF
3031 #define HAVE_MKTIME 1
3037 cat > conftest.$ac_ext <<EOF
3038 #line 3039 "configure"
3039 #include "confdefs.h"
3042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3043 egrep "localtime" >/dev/null 2>&1; then
3045 cat >> confdefs.h <<\EOF
3046 #define HAVE_LOCALTIME 1
3053 test -d java || mkdir java
3054 test -d java/io || mkdir java/io
3055 test -d gnu || mkdir gnu
3058 test -d java/lang || mkdir java/lang
3065 LIBGCJTESTSPEC="-L`pwd`/.libs -rpath `pwd`/.libs"
3068 # Check whether --with-system-zlib or --without-system-zlib was given.
3069 if test "${with_system_zlib+set}" = set; then
3070 withval="$with_system_zlib"
3081 echo $ac_n "checking for garbage collector to use""... $ac_c" 1>&6
3082 echo "configure:3083: checking for garbage collector to use" >&5
3083 # Check whether --enable-java-gc or --disable-java-gc was given.
3084 if test "${enable_java_gc+set}" = set; then
3085 enableval="$enable_java_gc"
3101 echo "$ac_t""boehm" 1>&6
3102 GCDEPS='$(top_builddir)/../boehm-gc/libgcjgc.la'
3103 # We include the path to the boehm-gc build directory.
3104 # See Makefile.am to understand why.
3105 GCLIBS="$GCDEPS -L\$(here)/../boehm-gc/$libsubdir"
3106 GCINCS='-I$(top_srcdir)/../boehm-gc/include'
3108 JC1GCSPEC='-fuse-boehm-gc'
3109 GCTESTSPEC="-L`pwd`/../boehm-gc/.libs -rpath `pwd`/../boehm-gc/.libs"
3110 GCINCS="$GCINCS `cat ../boehm-gc/boehm-cflags`"
3113 cat >> confdefs.h <<\EOF
3114 #define HAVE_BOEHM_GC 1
3119 echo "$ac_t""none" 1>&6
3124 { echo "configure: error: unrecognized collector \"$GC\"" 1>&2; exit 1; }
3137 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3138 echo "configure:3139: checking for thread model used by GCC" >&5
3139 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3140 echo "$ac_t""$THREADS" 1>&6
3150 cat >> confdefs.h <<\EOF
3151 #define LINUX_THREADS 1
3157 decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
3158 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
3161 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
3173 THREADLIBS=-lpthread
3174 THREADSPEC=-lpthread
3175 THREADOBJS=posix-threads.lo
3176 THREADH=posix-threads.h
3177 # MIT pthreads doesn't seem to have the mutexattr functions.
3178 # But for now we don't check for it. We just assume you aren't
3179 # using MIT pthreads.
3180 cat >> confdefs.h <<\EOF
3181 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3185 # If we're using the Boehm GC, then we happen to know that it
3186 # defines _REENTRANT, so we don't bother. Eww.
3187 if test "$GC" != boehm; then
3188 cat >> confdefs.h <<\EOF
3189 #define _REENTRANT 1
3193 cat >> confdefs.h <<\EOF
3194 #define _POSIX_PTHREAD_SEMANTICS 1
3200 THREADOBJS=no-threads.lo
3201 THREADH=no-threads.h
3212 # Hash synchronization is only useful with posix threads right now.
3213 if test "$enable_hash_synchronization" = yes && test "$THREADS" = "posix"; then
3214 HASH_SYNC_SPEC=-fhash-synchronization
3215 cat >> confdefs.h <<\EOF
3216 #define JV_HASH_SYNCHRONIZATION 1
3225 if test "$GCC" = yes; then
3237 # We're in the tree with gcc, and need to include some of its headers.
3238 GCC_UNWIND_INCLUDE='-I$(top_srcdir)/../gcc'
3240 if test -n "${with_cross_host}"; then
3241 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
3242 # may not work correctly, because the compiler may not be able to
3245 # We assume newlib. This lets us hard-code the functions we know
3247 cat >> confdefs.h <<\EOF
3248 #define HAVE_MEMMOVE 1
3251 cat >> confdefs.h <<\EOF
3252 #define HAVE_MEMCPY 1
3255 cat >> confdefs.h <<\EOF
3256 #define HAVE_STRERROR 1
3259 cat >> confdefs.h <<\EOF
3260 #define HAVE_GMTIME_R 1
3263 cat >> confdefs.h <<\EOF
3264 #define HAVE_LOCALTIME_R 1
3267 cat >> confdefs.h <<\EOF
3268 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3271 cat >> confdefs.h <<\EOF
3272 #define HAVE_ALLOCA 1
3276 cat >> confdefs.h <<\EOF
3282 ZLIBTESTSPEC="-L`pwd`/../zlib/.libs -rpath `pwd`/../zlib/.libs"
3284 # If Canadian cross, then don't pick up tools from the build
3286 if test x"$build" != x"$with_cross_host" && x"$build" != x"$target"; then
3289 GCJ="${target_alias}-gcj"
3293 for ac_func in strerror ioctl select fstat open fsync sleep
3295 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3296 echo "configure:3297: checking for $ac_func" >&5
3297 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3298 echo $ac_n "(cached) $ac_c" 1>&6
3300 cat > conftest.$ac_ext <<EOF
3301 #line 3302 "configure"
3302 #include "confdefs.h"
3303 /* System header to define __stub macros and hopefully few prototypes,
3304 which can conflict with char $ac_func(); below. */
3306 /* Override any gcc2 internal prototype to avoid an error. */
3307 /* We use char because int might match the return type of a gcc2
3308 builtin and then its argument prototype would still apply. */
3313 /* The GNU C library defines this for functions which it implements
3314 to always fail with ENOSYS. Some functions are actually named
3315 something starting with __ and the normal name is an alias. */
3316 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3324 if { (eval echo configure:3325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3326 eval "ac_cv_func_$ac_func=yes"
3328 echo "configure: failed program was:" >&5
3329 cat conftest.$ac_ext >&5
3331 eval "ac_cv_func_$ac_func=no"
3336 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3337 echo "$ac_t""yes" 1>&6
3338 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3339 cat >> confdefs.h <<EOF
3340 #define $ac_tr_func 1
3344 echo "$ac_t""no" 1>&6
3348 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
3350 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3351 echo "configure:3352: checking for $ac_func" >&5
3352 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3353 echo $ac_n "(cached) $ac_c" 1>&6
3355 cat > conftest.$ac_ext <<EOF
3356 #line 3357 "configure"
3357 #include "confdefs.h"
3358 /* System header to define __stub macros and hopefully few prototypes,
3359 which can conflict with char $ac_func(); below. */
3361 /* Override any gcc2 internal prototype to avoid an error. */
3362 /* We use char because int might match the return type of a gcc2
3363 builtin and then its argument prototype would still apply. */
3368 /* The GNU C library defines this for functions which it implements
3369 to always fail with ENOSYS. Some functions are actually named
3370 something starting with __ and the normal name is an alias. */
3371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3379 if { (eval echo configure:3380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3381 eval "ac_cv_func_$ac_func=yes"
3383 echo "configure: failed program was:" >&5
3384 cat conftest.$ac_ext >&5
3386 eval "ac_cv_func_$ac_func=no"
3391 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3392 echo "$ac_t""yes" 1>&6
3393 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3394 cat >> confdefs.h <<EOF
3395 #define $ac_tr_func 1
3399 echo "$ac_t""no" 1>&6
3403 for ac_func in access stat mkdir rename rmdir unlink realpath utime chmod
3405 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3406 echo "configure:3407: checking for $ac_func" >&5
3407 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3408 echo $ac_n "(cached) $ac_c" 1>&6
3410 cat > conftest.$ac_ext <<EOF
3411 #line 3412 "configure"
3412 #include "confdefs.h"
3413 /* System header to define __stub macros and hopefully few prototypes,
3414 which can conflict with char $ac_func(); below. */
3416 /* Override any gcc2 internal prototype to avoid an error. */
3417 /* We use char because int might match the return type of a gcc2
3418 builtin and then its argument prototype would still apply. */
3423 /* The GNU C library defines this for functions which it implements
3424 to always fail with ENOSYS. Some functions are actually named
3425 something starting with __ and the normal name is an alias. */
3426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3434 if { (eval echo configure:3435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3436 eval "ac_cv_func_$ac_func=yes"
3438 echo "configure: failed program was:" >&5
3439 cat conftest.$ac_ext >&5
3441 eval "ac_cv_func_$ac_func=no"
3446 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3447 echo "$ac_t""yes" 1>&6
3448 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3449 cat >> confdefs.h <<EOF
3450 #define $ac_tr_func 1
3454 echo "$ac_t""no" 1>&6
3458 for ac_func in iconv nl_langinfo setlocale
3460 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3461 echo "configure:3462: checking for $ac_func" >&5
3462 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3463 echo $ac_n "(cached) $ac_c" 1>&6
3465 cat > conftest.$ac_ext <<EOF
3466 #line 3467 "configure"
3467 #include "confdefs.h"
3468 /* System header to define __stub macros and hopefully few prototypes,
3469 which can conflict with char $ac_func(); below. */
3471 /* Override any gcc2 internal prototype to avoid an error. */
3472 /* We use char because int might match the return type of a gcc2
3473 builtin and then its argument prototype would still apply. */
3478 /* The GNU C library defines this for functions which it implements
3479 to always fail with ENOSYS. Some functions are actually named
3480 something starting with __ and the normal name is an alias. */
3481 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3489 if { (eval echo configure:3490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3491 eval "ac_cv_func_$ac_func=yes"
3493 echo "configure: failed program was:" >&5
3494 cat conftest.$ac_ext >&5
3496 eval "ac_cv_func_$ac_func=no"
3501 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3502 echo "$ac_t""yes" 1>&6
3503 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3504 cat >> confdefs.h <<EOF
3505 #define $ac_tr_func 1
3509 echo "$ac_t""no" 1>&6
3513 for ac_func in inet_aton inet_addr
3515 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3516 echo "configure:3517: checking for $ac_func" >&5
3517 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3518 echo $ac_n "(cached) $ac_c" 1>&6
3520 cat > conftest.$ac_ext <<EOF
3521 #line 3522 "configure"
3522 #include "confdefs.h"
3523 /* System header to define __stub macros and hopefully few prototypes,
3524 which can conflict with char $ac_func(); below. */
3526 /* Override any gcc2 internal prototype to avoid an error. */
3527 /* We use char because int might match the return type of a gcc2
3528 builtin and then its argument prototype would still apply. */
3533 /* The GNU C library defines this for functions which it implements
3534 to always fail with ENOSYS. Some functions are actually named
3535 something starting with __ and the normal name is an alias. */
3536 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3544 if { (eval echo configure:3545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3546 eval "ac_cv_func_$ac_func=yes"
3548 echo "configure: failed program was:" >&5
3549 cat conftest.$ac_ext >&5
3551 eval "ac_cv_func_$ac_func=no"
3556 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3557 echo "$ac_t""yes" 1>&6
3558 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3559 cat >> confdefs.h <<EOF
3560 #define $ac_tr_func 1
3564 echo "$ac_t""no" 1>&6
3568 for ac_func in inet_pton uname inet_ntoa
3570 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3571 echo "configure:3572: checking for $ac_func" >&5
3572 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3573 echo $ac_n "(cached) $ac_c" 1>&6
3575 cat > conftest.$ac_ext <<EOF
3576 #line 3577 "configure"
3577 #include "confdefs.h"
3578 /* System header to define __stub macros and hopefully few prototypes,
3579 which can conflict with char $ac_func(); below. */
3581 /* Override any gcc2 internal prototype to avoid an error. */
3582 /* We use char because int might match the return type of a gcc2
3583 builtin and then its argument prototype would still apply. */
3588 /* The GNU C library defines this for functions which it implements
3589 to always fail with ENOSYS. Some functions are actually named
3590 something starting with __ and the normal name is an alias. */
3591 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3599 if { (eval echo configure:3600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3601 eval "ac_cv_func_$ac_func=yes"
3603 echo "configure: failed program was:" >&5
3604 cat conftest.$ac_ext >&5
3606 eval "ac_cv_func_$ac_func=no"
3611 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3612 echo "$ac_t""yes" 1>&6
3613 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3614 cat >> confdefs.h <<EOF
3615 #define $ac_tr_func 1
3619 echo "$ac_t""no" 1>&6
3623 for ac_func in backtrace fork execvp pipe sigaction
3625 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3626 echo "configure:3627: checking for $ac_func" >&5
3627 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3628 echo $ac_n "(cached) $ac_c" 1>&6
3630 cat > conftest.$ac_ext <<EOF
3631 #line 3632 "configure"
3632 #include "confdefs.h"
3633 /* System header to define __stub macros and hopefully few prototypes,
3634 which can conflict with char $ac_func(); below. */
3636 /* Override any gcc2 internal prototype to avoid an error. */
3637 /* We use char because int might match the return type of a gcc2
3638 builtin and then its argument prototype would still apply. */
3643 /* The GNU C library defines this for functions which it implements
3644 to always fail with ENOSYS. Some functions are actually named
3645 something starting with __ and the normal name is an alias. */
3646 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3654 if { (eval echo configure:3655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3656 eval "ac_cv_func_$ac_func=yes"
3658 echo "configure: failed program was:" >&5
3659 cat conftest.$ac_ext >&5
3661 eval "ac_cv_func_$ac_func=no"
3666 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3667 echo "$ac_t""yes" 1>&6
3668 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3669 cat >> confdefs.h <<EOF
3670 #define $ac_tr_func 1
3674 echo "$ac_t""no" 1>&6
3678 for ac_hdr in execinfo.h unistd.h dlfcn.h
3680 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3681 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3682 echo "configure:3683: checking for $ac_hdr" >&5
3683 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3684 echo $ac_n "(cached) $ac_c" 1>&6
3686 cat > conftest.$ac_ext <<EOF
3687 #line 3688 "configure"
3688 #include "confdefs.h"
3691 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3692 { (eval echo configure:3693: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3693 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3694 if test -z "$ac_err"; then
3696 eval "ac_cv_header_$ac_safe=yes"
3699 echo "configure: failed program was:" >&5
3700 cat conftest.$ac_ext >&5
3702 eval "ac_cv_header_$ac_safe=no"
3706 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3707 echo "$ac_t""yes" 1>&6
3708 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3709 cat >> confdefs.h <<EOF
3710 #define $ac_tr_hdr 1
3714 echo "$ac_t""no" 1>&6
3718 echo $ac_n "checking for dladdr in -ldl""... $ac_c" 1>&6
3719 echo "configure:3720: checking for dladdr in -ldl" >&5
3720 ac_lib_var=`echo dl'_'dladdr | sed 'y%./+-%__p_%'`
3721 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3722 echo $ac_n "(cached) $ac_c" 1>&6
3724 ac_save_LIBS="$LIBS"
3726 cat > conftest.$ac_ext <<EOF
3727 #line 3728 "configure"
3728 #include "confdefs.h"
3729 /* Override any gcc2 internal prototype to avoid an error. */
3730 /* We use char because int might match the return type of a gcc2
3731 builtin and then its argument prototype would still apply. */
3738 if { (eval echo configure:3739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3740 eval "ac_cv_lib_$ac_lib_var=yes"
3742 echo "configure: failed program was:" >&5
3743 cat conftest.$ac_ext >&5
3745 eval "ac_cv_lib_$ac_lib_var=no"
3748 LIBS="$ac_save_LIBS"
3751 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3752 echo "$ac_t""yes" 1>&6
3754 cat >> confdefs.h <<\EOF
3755 #define HAVE_DLADDR 1
3759 echo "$ac_t""no" 1>&6
3762 for ac_file in /proc/self/exe
3765 ac_safe=`echo "$ac_file" | sed 'y%./+-%__p_%'`
3766 echo $ac_n "checking for $ac_file""... $ac_c" 1>&6
3767 echo "configure:3768: checking for $ac_file" >&5
3768 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
3769 echo $ac_n "(cached) $ac_c" 1>&6
3771 if test "$cross_compiling" = yes; then
3772 { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
3774 if test -r $ac_file; then
3775 eval "ac_cv_file_$ac_safe=yes"
3777 eval "ac_cv_file_$ac_safe=no"
3781 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
3782 echo "$ac_t""yes" 1>&6
3783 ac_tr_file=HAVE_`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3784 cat >> confdefs.h <<EOF
3785 #define $ac_tr_file 1
3788 cat >> confdefs.h <<\EOF
3789 #define HAVE_PROC_SELF_EXE 1
3793 echo "$ac_t""no" 1>&6
3799 for ac_func in gethostbyname_r
3801 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3802 echo "configure:3803: checking for $ac_func" >&5
3803 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3804 echo $ac_n "(cached) $ac_c" 1>&6
3806 cat > conftest.$ac_ext <<EOF
3807 #line 3808 "configure"
3808 #include "confdefs.h"
3809 /* System header to define __stub macros and hopefully few prototypes,
3810 which can conflict with char $ac_func(); below. */
3812 /* Override any gcc2 internal prototype to avoid an error. */
3813 /* We use char because int might match the return type of a gcc2
3814 builtin and then its argument prototype would still apply. */
3819 /* The GNU C library defines this for functions which it implements
3820 to always fail with ENOSYS. Some functions are actually named
3821 something starting with __ and the normal name is an alias. */
3822 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3830 if { (eval echo configure:3831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3832 eval "ac_cv_func_$ac_func=yes"
3834 echo "configure: failed program was:" >&5
3835 cat conftest.$ac_ext >&5
3837 eval "ac_cv_func_$ac_func=no"
3842 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3843 echo "$ac_t""yes" 1>&6
3844 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3845 cat >> confdefs.h <<EOF
3846 #define $ac_tr_func 1
3849 cat >> confdefs.h <<\EOF
3850 #define HAVE_GETHOSTBYNAME_R 1
3853 # There are two different kinds of gethostbyname_r.
3854 # We look for the one that returns `int'.
3855 # Hopefully this check is robust enough.
3856 cat > conftest.$ac_ext <<EOF
3857 #line 3858 "configure"
3858 #include "confdefs.h"
3861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3862 egrep "int.*gethostbyname_r" >/dev/null 2>&1; then
3865 cat >> confdefs.h <<\EOF
3866 #define GETHOSTBYNAME_R_RETURNS_INT 1
3874 *" -D_REENTRANT "*) ;;
3876 echo $ac_n "checking whether gethostbyname_r declaration requires -D_REENTRANT""... $ac_c" 1>&6
3877 echo "configure:3878: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
3878 if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
3879 echo $ac_n "(cached) $ac_c" 1>&6
3883 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3884 ac_cpp='$CXXCPP $CPPFLAGS'
3885 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3886 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3887 cross_compiling=$ac_cv_prog_cxx_cross
3889 cat > conftest.$ac_ext <<EOF
3890 #line 3891 "configure"
3891 #include "confdefs.h"
3894 gethostbyname_r("", 0, 0);
3897 if { (eval echo configure:3898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3899 libjava_cv_gethostbyname_r_needs_reentrant=no
3901 echo "configure: failed program was:" >&5
3902 cat conftest.$ac_ext >&5
3904 CPPFLAGS_SAVE="$CPPFLAGS"
3905 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
3906 cat > conftest.$ac_ext <<EOF
3907 #line 3908 "configure"
3908 #include "confdefs.h"
3911 gethostbyname_r("", 0, 0);
3914 if { (eval echo configure:3915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3916 libjava_cv_gethostbyname_r_needs_reentrant=yes
3918 echo "configure: failed program was:" >&5
3919 cat conftest.$ac_ext >&5
3921 libjava_cv_gethostbyname_r_needs_reentrant=fail
3924 CPPFLAGS="$CPPFLAGS_SAVE"
3929 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3930 ac_cpp='$CPP $CPPFLAGS'
3931 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3932 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3933 cross_compiling=$ac_cv_prog_cc_cross
3938 echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
3939 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
3940 cat >> confdefs.h <<\EOF
3941 #define _REENTRANT 1
3948 echo $ac_n "checking for struct hostent_data""... $ac_c" 1>&6
3949 echo "configure:3950: checking for struct hostent_data" >&5
3950 if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
3951 echo $ac_n "(cached) $ac_c" 1>&6
3953 cat > conftest.$ac_ext <<EOF
3954 #line 3955 "configure"
3955 #include "confdefs.h"
3957 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
3958 # define _REENTRANT 1
3962 struct hostent_data data;
3965 if { (eval echo configure:3966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3967 libjava_cv_struct_hostent_data=yes
3969 echo "configure: failed program was:" >&5
3970 cat conftest.$ac_ext >&5
3972 libjava_cv_struct_hostent_data=no
3977 echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
3978 if test "x$libjava_cv_struct_hostent_data" = xyes; then
3979 cat >> confdefs.h <<\EOF
3980 #define HAVE_STRUCT_HOSTENT_DATA 1
3986 echo "$ac_t""no" 1>&6
3991 for ac_func in gethostbyaddr_r
3993 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3994 echo "configure:3995: checking for $ac_func" >&5
3995 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3996 echo $ac_n "(cached) $ac_c" 1>&6
3998 cat > conftest.$ac_ext <<EOF
3999 #line 4000 "configure"
4000 #include "confdefs.h"
4001 /* System header to define __stub macros and hopefully few prototypes,
4002 which can conflict with char $ac_func(); below. */
4004 /* Override any gcc2 internal prototype to avoid an error. */
4005 /* We use char because int might match the return type of a gcc2
4006 builtin and then its argument prototype would still apply. */
4011 /* The GNU C library defines this for functions which it implements
4012 to always fail with ENOSYS. Some functions are actually named
4013 something starting with __ and the normal name is an alias. */
4014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4022 if { (eval echo configure:4023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4024 eval "ac_cv_func_$ac_func=yes"
4026 echo "configure: failed program was:" >&5
4027 cat conftest.$ac_ext >&5
4029 eval "ac_cv_func_$ac_func=no"
4034 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4035 echo "$ac_t""yes" 1>&6
4036 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4037 cat >> confdefs.h <<EOF
4038 #define $ac_tr_func 1
4041 cat >> confdefs.h <<\EOF
4042 #define HAVE_GETHOSTBYADDR_R 1
4045 # There are two different kinds of gethostbyaddr_r.
4046 # We look for the one that returns `int'.
4047 # Hopefully this check is robust enough.
4048 cat > conftest.$ac_ext <<EOF
4049 #line 4050 "configure"
4050 #include "confdefs.h"
4053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4054 egrep "int.*gethostbyaddr_r" >/dev/null 2>&1; then
4057 cat >> confdefs.h <<\EOF
4058 #define GETHOSTBYADDR_R_RETURNS_INT 1
4065 echo "$ac_t""no" 1>&6
4070 for ac_func in gethostname
4072 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4073 echo "configure:4074: checking for $ac_func" >&5
4074 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4075 echo $ac_n "(cached) $ac_c" 1>&6
4077 cat > conftest.$ac_ext <<EOF
4078 #line 4079 "configure"
4079 #include "confdefs.h"
4080 /* System header to define __stub macros and hopefully few prototypes,
4081 which can conflict with char $ac_func(); below. */
4083 /* Override any gcc2 internal prototype to avoid an error. */
4084 /* We use char because int might match the return type of a gcc2
4085 builtin and then its argument prototype would still apply. */
4090 /* The GNU C library defines this for functions which it implements
4091 to always fail with ENOSYS. Some functions are actually named
4092 something starting with __ and the normal name is an alias. */
4093 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4101 if { (eval echo configure:4102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4103 eval "ac_cv_func_$ac_func=yes"
4105 echo "configure: failed program was:" >&5
4106 cat conftest.$ac_ext >&5
4108 eval "ac_cv_func_$ac_func=no"
4113 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4114 echo "$ac_t""yes" 1>&6
4115 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4116 cat >> confdefs.h <<EOF
4117 #define $ac_tr_func 1
4120 cat >> confdefs.h <<\EOF
4121 #define HAVE_GETHOSTNAME 1
4124 cat > conftest.$ac_ext <<EOF
4125 #line 4126 "configure"
4126 #include "confdefs.h"
4129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4130 egrep "gethostname" >/dev/null 2>&1; then
4133 cat >> confdefs.h <<\EOF
4134 #define HAVE_GETHOSTNAME_DECL 1
4141 echo "$ac_t""no" 1>&6
4146 # Look for these functions in the thread library, but only bother
4147 # if using POSIX threads.
4148 if test "$THREADS" = posix; then
4150 LIBS="$LIBS $THREADLIBS"
4151 # Some POSIX thread systems don't have pthread_mutexattr_settype.
4153 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
4155 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4156 echo "configure:4157: checking for $ac_func" >&5
4157 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4158 echo $ac_n "(cached) $ac_c" 1>&6
4160 cat > conftest.$ac_ext <<EOF
4161 #line 4162 "configure"
4162 #include "confdefs.h"
4163 /* System header to define __stub macros and hopefully few prototypes,
4164 which can conflict with char $ac_func(); below. */
4166 /* Override any gcc2 internal prototype to avoid an error. */
4167 /* We use char because int might match the return type of a gcc2
4168 builtin and then its argument prototype would still apply. */
4173 /* The GNU C library defines this for functions which it implements
4174 to always fail with ENOSYS. Some functions are actually named
4175 something starting with __ and the normal name is an alias. */
4176 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4184 if { (eval echo configure:4185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4186 eval "ac_cv_func_$ac_func=yes"
4188 echo "configure: failed program was:" >&5
4189 cat conftest.$ac_ext >&5
4191 eval "ac_cv_func_$ac_func=no"
4196 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4197 echo "$ac_t""yes" 1>&6
4198 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4199 cat >> confdefs.h <<EOF
4200 #define $ac_tr_func 1
4204 echo "$ac_t""no" 1>&6
4209 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
4210 # Solaris 7 the name librt is preferred.
4211 for ac_func in sched_yield
4213 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4214 echo "configure:4215: checking for $ac_func" >&5
4215 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4216 echo $ac_n "(cached) $ac_c" 1>&6
4218 cat > conftest.$ac_ext <<EOF
4219 #line 4220 "configure"
4220 #include "confdefs.h"
4221 /* System header to define __stub macros and hopefully few prototypes,
4222 which can conflict with char $ac_func(); below. */
4224 /* Override any gcc2 internal prototype to avoid an error. */
4225 /* We use char because int might match the return type of a gcc2
4226 builtin and then its argument prototype would still apply. */
4231 /* The GNU C library defines this for functions which it implements
4232 to always fail with ENOSYS. Some functions are actually named
4233 something starting with __ and the normal name is an alias. */
4234 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4242 if { (eval echo configure:4243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4244 eval "ac_cv_func_$ac_func=yes"
4246 echo "configure: failed program was:" >&5
4247 cat conftest.$ac_ext >&5
4249 eval "ac_cv_func_$ac_func=no"
4254 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4255 echo "$ac_t""yes" 1>&6
4256 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4257 cat >> confdefs.h <<EOF
4258 #define $ac_tr_func 1
4262 echo "$ac_t""no" 1>&6
4263 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
4264 echo "configure:4265: checking for sched_yield in -lrt" >&5
4265 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
4266 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4267 echo $ac_n "(cached) $ac_c" 1>&6
4269 ac_save_LIBS="$LIBS"
4271 cat > conftest.$ac_ext <<EOF
4272 #line 4273 "configure"
4273 #include "confdefs.h"
4274 /* Override any gcc2 internal prototype to avoid an error. */
4275 /* We use char because int might match the return type of a gcc2
4276 builtin and then its argument prototype would still apply. */
4283 if { (eval echo configure:4284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4285 eval "ac_cv_lib_$ac_lib_var=yes"
4287 echo "configure: failed program was:" >&5
4288 cat conftest.$ac_ext >&5
4290 eval "ac_cv_lib_$ac_lib_var=no"
4293 LIBS="$ac_save_LIBS"
4296 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4297 echo "$ac_t""yes" 1>&6
4299 cat >> confdefs.h <<\EOF
4300 #define HAVE_SCHED_YIELD 1
4303 THREADLIBS="$THREADLIBS -lrt"
4304 THREADSPEC="$THREADSPEC -lrt"
4306 echo "$ac_t""no" 1>&6
4308 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
4309 echo "configure:4310: checking for sched_yield in -lposix4" >&5
4310 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
4311 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4312 echo $ac_n "(cached) $ac_c" 1>&6
4314 ac_save_LIBS="$LIBS"
4315 LIBS="-lposix4 $LIBS"
4316 cat > conftest.$ac_ext <<EOF
4317 #line 4318 "configure"
4318 #include "confdefs.h"
4319 /* Override any gcc2 internal prototype to avoid an error. */
4320 /* We use char because int might match the return type of a gcc2
4321 builtin and then its argument prototype would still apply. */
4328 if { (eval echo configure:4329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4330 eval "ac_cv_lib_$ac_lib_var=yes"
4332 echo "configure: failed program was:" >&5
4333 cat conftest.$ac_ext >&5
4335 eval "ac_cv_lib_$ac_lib_var=no"
4338 LIBS="$ac_save_LIBS"
4341 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4342 echo "$ac_t""yes" 1>&6
4344 cat >> confdefs.h <<\EOF
4345 #define HAVE_SCHED_YIELD 1
4348 THREADLIBS="$THREADLIBS -lposix4"
4349 THREADSPEC="$THREADSPEC -lposix4"
4351 echo "$ac_t""no" 1>&6
4361 # We can save a little space at runtime if the mutex has m_count
4362 # or __m_count. This is a nice hack for Linux.
4363 cat > conftest.$ac_ext <<EOF
4364 #line 4365 "configure"
4365 #include "confdefs.h"
4366 #include <pthread.h>
4369 extern pthread_mutex_t *mutex; int q = mutex->m_count;
4373 if { (eval echo configure:4374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4375 cat >> confdefs.h <<\EOF
4376 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
4380 echo "configure: failed program was:" >&5
4381 cat conftest.$ac_ext >&5
4384 cat > conftest.$ac_ext <<EOF
4385 #line 4386 "configure"
4386 #include "confdefs.h"
4387 #include <pthread.h>
4390 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
4394 if { (eval echo configure:4395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4396 cat >> confdefs.h <<\EOF
4397 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
4401 echo "configure: failed program was:" >&5
4402 cat conftest.$ac_ext >&5
4409 # We require a way to get the time.
4411 for ac_func in gettimeofday time ftime
4413 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4414 echo "configure:4415: checking for $ac_func" >&5
4415 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4416 echo $ac_n "(cached) $ac_c" 1>&6
4418 cat > conftest.$ac_ext <<EOF
4419 #line 4420 "configure"
4420 #include "confdefs.h"
4421 /* System header to define __stub macros and hopefully few prototypes,
4422 which can conflict with char $ac_func(); below. */
4424 /* Override any gcc2 internal prototype to avoid an error. */
4425 /* We use char because int might match the return type of a gcc2
4426 builtin and then its argument prototype would still apply. */
4431 /* The GNU C library defines this for functions which it implements
4432 to always fail with ENOSYS. Some functions are actually named
4433 something starting with __ and the normal name is an alias. */
4434 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4442 if { (eval echo configure:4443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4444 eval "ac_cv_func_$ac_func=yes"
4446 echo "configure: failed program was:" >&5
4447 cat conftest.$ac_ext >&5
4449 eval "ac_cv_func_$ac_func=no"
4454 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4455 echo "$ac_t""yes" 1>&6
4456 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4457 cat >> confdefs.h <<EOF
4458 #define $ac_tr_func 1
4462 echo "$ac_t""no" 1>&6
4466 if test "$time_found" = no; then
4467 { echo "configure: error: no function found to get the time" 1>&2; exit 1; }
4470 for ac_func in memmove
4472 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4473 echo "configure:4474: checking for $ac_func" >&5
4474 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4475 echo $ac_n "(cached) $ac_c" 1>&6
4477 cat > conftest.$ac_ext <<EOF
4478 #line 4479 "configure"
4479 #include "confdefs.h"
4480 /* System header to define __stub macros and hopefully few prototypes,
4481 which can conflict with char $ac_func(); below. */
4483 /* Override any gcc2 internal prototype to avoid an error. */
4484 /* We use char because int might match the return type of a gcc2
4485 builtin and then its argument prototype would still apply. */
4490 /* The GNU C library defines this for functions which it implements
4491 to always fail with ENOSYS. Some functions are actually named
4492 something starting with __ and the normal name is an alias. */
4493 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4501 if { (eval echo configure:4502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4503 eval "ac_cv_func_$ac_func=yes"
4505 echo "configure: failed program was:" >&5
4506 cat conftest.$ac_ext >&5
4508 eval "ac_cv_func_$ac_func=no"
4513 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4514 echo "$ac_t""yes" 1>&6
4515 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4516 cat >> confdefs.h <<EOF
4517 #define $ac_tr_func 1
4521 echo "$ac_t""no" 1>&6
4526 # We require memcpy.
4528 for ac_func in memcpy
4530 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4531 echo "configure:4532: checking for $ac_func" >&5
4532 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4533 echo $ac_n "(cached) $ac_c" 1>&6
4535 cat > conftest.$ac_ext <<EOF
4536 #line 4537 "configure"
4537 #include "confdefs.h"
4538 /* System header to define __stub macros and hopefully few prototypes,
4539 which can conflict with char $ac_func(); below. */
4541 /* Override any gcc2 internal prototype to avoid an error. */
4542 /* We use char because int might match the return type of a gcc2
4543 builtin and then its argument prototype would still apply. */
4548 /* The GNU C library defines this for functions which it implements
4549 to always fail with ENOSYS. Some functions are actually named
4550 something starting with __ and the normal name is an alias. */
4551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4559 if { (eval echo configure:4560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4561 eval "ac_cv_func_$ac_func=yes"
4563 echo "configure: failed program was:" >&5
4564 cat conftest.$ac_ext >&5
4566 eval "ac_cv_func_$ac_func=no"
4571 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4572 echo "$ac_t""yes" 1>&6
4573 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4574 cat >> confdefs.h <<EOF
4575 #define $ac_tr_func 1
4579 echo "$ac_t""no" 1>&6
4583 if test "$memcpy_found" = no; then
4584 { echo "configure: error: memcpy is required" 1>&2; exit 1; }
4587 # Some library-finding code we stole from Tcl.
4588 #--------------------------------------------------------------------
4589 # Check for the existence of the -lsocket and -lnsl libraries.
4590 # The order here is important, so that they end up in the right
4591 # order in the command line generated by make. Here are some
4592 # special considerations:
4593 # 1. Use "connect" and "accept" to check for -lsocket, and
4594 # "gethostbyname" to check for -lnsl.
4595 # 2. Use each function name only once: can't redo a check because
4596 # autoconf caches the results of the last check and won't redo it.
4597 # 3. Use -lnsl and -lsocket only if they supply procedures that
4598 # aren't already present in the normal libraries. This is because
4599 # IRIX 5.2 has libraries, but they aren't needed and they're
4600 # bogus: they goof up name resolution if used.
4601 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
4602 # To get around this problem, check for both libraries together
4603 # if -lsocket doesn't work by itself.
4604 #--------------------------------------------------------------------
4606 echo $ac_n "checking for socket libraries""... $ac_c" 1>&6
4607 echo "configure:4608: checking for socket libraries" >&5
4608 if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
4609 echo $ac_n "(cached) $ac_c" 1>&6
4613 unset ac_cv_func_connect
4614 echo $ac_n "checking for connect""... $ac_c" 1>&6
4615 echo "configure:4616: checking for connect" >&5
4616 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
4617 echo $ac_n "(cached) $ac_c" 1>&6
4619 cat > conftest.$ac_ext <<EOF
4620 #line 4621 "configure"
4621 #include "confdefs.h"
4622 /* System header to define __stub macros and hopefully few prototypes,
4623 which can conflict with char connect(); below. */
4625 /* Override any gcc2 internal prototype to avoid an error. */
4626 /* We use char because int might match the return type of a gcc2
4627 builtin and then its argument prototype would still apply. */
4632 /* The GNU C library defines this for functions which it implements
4633 to always fail with ENOSYS. Some functions are actually named
4634 something starting with __ and the normal name is an alias. */
4635 #if defined (__stub_connect) || defined (__stub___connect)
4643 if { (eval echo configure:4644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4645 eval "ac_cv_func_connect=yes"
4647 echo "configure: failed program was:" >&5
4648 cat conftest.$ac_ext >&5
4650 eval "ac_cv_func_connect=no"
4655 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
4656 echo "$ac_t""yes" 1>&6
4659 echo "$ac_t""no" 1>&6
4663 if test "$gcj_checkSocket" = 1; then
4664 unset ac_cv_func_connect
4665 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4666 echo "configure:4667: checking for main in -lsocket" >&5
4667 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
4668 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4669 echo $ac_n "(cached) $ac_c" 1>&6
4671 ac_save_LIBS="$LIBS"
4672 LIBS="-lsocket $LIBS"
4673 cat > conftest.$ac_ext <<EOF
4674 #line 4675 "configure"
4675 #include "confdefs.h"
4681 if { (eval echo configure:4682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4683 eval "ac_cv_lib_$ac_lib_var=yes"
4685 echo "configure: failed program was:" >&5
4686 cat conftest.$ac_ext >&5
4688 eval "ac_cv_lib_$ac_lib_var=no"
4691 LIBS="$ac_save_LIBS"
4694 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4695 echo "$ac_t""yes" 1>&6
4696 gcj_cv_lib_sockets="-lsocket"
4698 echo "$ac_t""no" 1>&6
4703 if test "$gcj_checkBoth" = 1; then
4705 LIBS="$LIBS -lsocket -lnsl"
4706 unset ac_cv_func_accept
4707 echo $ac_n "checking for accept""... $ac_c" 1>&6
4708 echo "configure:4709: checking for accept" >&5
4709 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
4710 echo $ac_n "(cached) $ac_c" 1>&6
4712 cat > conftest.$ac_ext <<EOF
4713 #line 4714 "configure"
4714 #include "confdefs.h"
4715 /* System header to define __stub macros and hopefully few prototypes,
4716 which can conflict with char accept(); below. */
4718 /* Override any gcc2 internal prototype to avoid an error. */
4719 /* We use char because int might match the return type of a gcc2
4720 builtin and then its argument prototype would still apply. */
4725 /* The GNU C library defines this for functions which it implements
4726 to always fail with ENOSYS. Some functions are actually named
4727 something starting with __ and the normal name is an alias. */
4728 #if defined (__stub_accept) || defined (__stub___accept)
4736 if { (eval echo configure:4737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4738 eval "ac_cv_func_accept=yes"
4740 echo "configure: failed program was:" >&5
4741 cat conftest.$ac_ext >&5
4743 eval "ac_cv_func_accept=no"
4748 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
4749 echo "$ac_t""yes" 1>&6
4751 gcj_cv_lib_sockets="-lsocket -lnsl"
4753 echo "$ac_t""no" 1>&6
4756 unset ac_cv_func_accept
4759 unset ac_cv_func_gethostbyname
4761 LIBS="$LIBS $gcj_cv_lib_sockets"
4762 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4763 echo "configure:4764: checking for gethostbyname" >&5
4764 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
4765 echo $ac_n "(cached) $ac_c" 1>&6
4767 cat > conftest.$ac_ext <<EOF
4768 #line 4769 "configure"
4769 #include "confdefs.h"
4770 /* System header to define __stub macros and hopefully few prototypes,
4771 which can conflict with char gethostbyname(); below. */
4773 /* Override any gcc2 internal prototype to avoid an error. */
4774 /* We use char because int might match the return type of a gcc2
4775 builtin and then its argument prototype would still apply. */
4776 char gethostbyname();
4780 /* The GNU C library defines this for functions which it implements
4781 to always fail with ENOSYS. Some functions are actually named
4782 something starting with __ and the normal name is an alias. */
4783 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4791 if { (eval echo configure:4792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4793 eval "ac_cv_func_gethostbyname=yes"
4795 echo "configure: failed program was:" >&5
4796 cat conftest.$ac_ext >&5
4798 eval "ac_cv_func_gethostbyname=no"
4803 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
4804 echo "$ac_t""yes" 1>&6
4807 echo "$ac_t""no" 1>&6
4808 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4809 echo "configure:4810: checking for main in -lnsl" >&5
4810 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
4811 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4812 echo $ac_n "(cached) $ac_c" 1>&6
4814 ac_save_LIBS="$LIBS"
4816 cat > conftest.$ac_ext <<EOF
4817 #line 4818 "configure"
4818 #include "confdefs.h"
4824 if { (eval echo configure:4825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4826 eval "ac_cv_lib_$ac_lib_var=yes"
4828 echo "configure: failed program was:" >&5
4829 cat conftest.$ac_ext >&5
4831 eval "ac_cv_lib_$ac_lib_var=no"
4834 LIBS="$ac_save_LIBS"
4837 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4838 echo "$ac_t""yes" 1>&6
4839 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
4841 echo "$ac_t""no" 1>&6
4846 unset ac_cv_func_gethostbyname
4851 echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
4852 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
4854 if test "$with_system_zlib" = yes; then
4855 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
4856 echo "configure:4857: checking for deflate in -lz" >&5
4857 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
4858 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4859 echo $ac_n "(cached) $ac_c" 1>&6
4861 ac_save_LIBS="$LIBS"
4863 cat > conftest.$ac_ext <<EOF
4864 #line 4865 "configure"
4865 #include "confdefs.h"
4866 /* Override any gcc2 internal prototype to avoid an error. */
4867 /* We use char because int might match the return type of a gcc2
4868 builtin and then its argument prototype would still apply. */
4875 if { (eval echo configure:4876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4877 eval "ac_cv_lib_$ac_lib_var=yes"
4879 echo "configure: failed program was:" >&5
4880 cat conftest.$ac_ext >&5
4882 eval "ac_cv_lib_$ac_lib_var=no"
4885 LIBS="$ac_save_LIBS"
4888 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4889 echo "$ac_t""yes" 1>&6
4892 echo "$ac_t""no" 1>&6
4898 ZLIBTESTSPEC="-L`pwd`/../zlib/.libs -rpath `pwd`/../zlib/.libs"
4901 # On Solaris, and maybe other architectures, the Boehm collector
4903 if test "$GC" = boehm; then
4904 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
4905 echo "configure:4906: checking for main in -ldl" >&5
4906 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
4907 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4908 echo $ac_n "(cached) $ac_c" 1>&6
4910 ac_save_LIBS="$LIBS"
4912 cat > conftest.$ac_ext <<EOF
4913 #line 4914 "configure"
4914 #include "confdefs.h"
4920 if { (eval echo configure:4921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4922 eval "ac_cv_lib_$ac_lib_var=yes"
4924 echo "configure: failed program was:" >&5
4925 cat conftest.$ac_ext >&5
4927 eval "ac_cv_lib_$ac_lib_var=no"
4930 LIBS="$ac_save_LIBS"
4933 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4934 echo "$ac_t""yes" 1>&6
4935 SYSTEMSPEC="$SYSTEMSPEC -ldl"
4937 echo "$ac_t""no" 1>&6
4942 if test -z "${with_multisubdir}"; then
4946 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
4949 if test -x "${builddotdot}/../../gcc/gcj"; then
4950 dir="`cd ${builddotdot}/../../gcc && pwd`"
4951 GCJ="$dir/gcj -B`pwd`/ -B$dir/"
4959 # Create it, so that compile/link tests don't fail
4960 test -f libgcj.spec || touch libgcj.spec
4962 # We must search the source tree for java.lang, since we still don't
4963 # have libgcj.jar nor java/lang/*.class
4964 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
4965 CPPFLAGS="$CPPFLAGS -I`pwd` -I`cd $srcdir && pwd`"
4967 # Since some classes depend on this one, we need its source available
4968 # before we can do any GCJ compilation test :-(
4969 if test ! -f gnu/classpath/Configuration.java; then
4970 test -d gnu || mkdir gnu
4971 test -d gnu/classpath || mkdir gnu/classpath
4972 sed 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
4973 < $srcdir/gnu/classpath/Configuration.java.in \
4974 > gnu/classpath/Configuration.java
4975 # We do not want to redirect the output of the grep below to /dev/null,
4976 # but we add /dev/null to the input list so that grep will print the
4977 # filename of Configuration.java in case it finds any matches.
4978 if grep @ gnu/classpath/Configuration.java /dev/null; then
4979 { echo "configure: error: configure.in is missing the substitutions above" 1>&2; exit 1; }
4983 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
4984 set dummy ${ac_tool_prefix}gcj; ac_word=$2
4985 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4986 echo "configure:4987: checking for $ac_word" >&5
4987 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
4988 echo $ac_n "(cached) $ac_c" 1>&6
4990 if test -n "$GCJ"; then
4991 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
4993 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4995 for ac_dir in $ac_dummy; do
4996 test -z "$ac_dir" && ac_dir=.
4997 if test -f $ac_dir/$ac_word; then
4998 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
5005 GCJ="$ac_cv_prog_GCJ"
5006 if test -n "$GCJ"; then
5007 echo "$ac_t""$GCJ" 1>&6
5009 echo "$ac_t""no" 1>&6
5013 if test -z "$ac_cv_prog_GCJ"; then
5014 if test -n "$ac_tool_prefix"; then
5015 # Extract the first word of "gcj", so it can be a program name with args.
5016 set dummy gcj; ac_word=$2
5017 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5018 echo "configure:5019: checking for $ac_word" >&5
5019 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
5020 echo $ac_n "(cached) $ac_c" 1>&6
5022 if test -n "$GCJ"; then
5023 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5025 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5027 for ac_dir in $ac_dummy; do
5028 test -z "$ac_dir" && ac_dir=.
5029 if test -f $ac_dir/$ac_word; then
5030 ac_cv_prog_GCJ="gcj"
5035 test -z "$ac_cv_prog_GCJ" && ac_cv_prog_GCJ="no"
5038 GCJ="$ac_cv_prog_GCJ"
5039 if test -n "$GCJ"; then
5040 echo "$ac_t""$GCJ" 1>&6
5042 echo "$ac_t""no" 1>&6
5050 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
5054 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
5056 lt_save_CFLAGS="$CFLAGS"
5057 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
5058 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5059 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5060 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5061 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5062 deplibs_check_method="$deplibs_check_method" \
5063 file_magic_cmd="$file_magic_cmd" \
5064 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5065 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
5066 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
5068 CFLAGS="$lt_save_CFLAGS"
5070 # Redirect the config.log output again, so that the ltconfig log is not
5071 # clobbered by the next message.
5072 exec 5>>./config.log
5077 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
5079 echo $ac_n "checking size of void *""... $ac_c" 1>&6
5080 echo "configure:5081: checking size of void *" >&5
5081 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
5082 echo $ac_n "(cached) $ac_c" 1>&6
5084 if test "$cross_compiling" = yes; then
5085 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5087 cat > conftest.$ac_ext <<EOF
5088 #line 5089 "configure"
5089 #include "confdefs.h"
5093 FILE *f=fopen("conftestval", "w");
5095 fprintf(f, "%d\n", sizeof(void *));
5099 if { (eval echo configure:5100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5101 ac_cv_sizeof_void_p=`cat conftestval`
5103 echo "configure: failed program was:" >&5
5104 cat conftest.$ac_ext >&5
5106 ac_cv_sizeof_void_p=0
5112 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
5113 cat >> confdefs.h <<EOF
5114 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5122 if test "x$ZLIBSPEC" = "x-lzgcj"; then
5123 # We include the path to the zlib build directory.
5124 # See Makefile.am to understand why.
5125 ZDEPS='$(top_builddir)/../zlib/libzgcj.la'
5126 ZLIBS="$ZDEPS -L\$(here)/../zlib/$libsubdir"
5127 ZINCS='-I$(top_srcdir)/../zlib'
5139 if test "$CANADIAN" = yes; then
5148 if test "$NULL_TARGET" = yes; then
5150 NULL_TARGET_FALSE='#'
5152 NULL_TARGET_TRUE='#'
5157 if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
5166 if test -z "$with_cross_host"; then
5168 USE_LIBDIR_FALSE='#'
5175 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
5176 NEEDS_DATA_START_TRUE=
5177 NEEDS_DATA_START_FALSE='#'
5179 NEEDS_DATA_START_TRUE='#'
5180 NEEDS_DATA_START_FALSE=
5184 # Determine gcj version number.
5186 gcjvers="`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`"
5188 cat >> confdefs.h <<EOF
5189 #define GCJVERSION "$gcjvers"
5196 echo $ac_n "checking for g++ -ffloat-store bug""... $ac_c" 1>&6
5197 echo "configure:5198: checking for g++ -ffloat-store bug" >&5
5198 save_CFLAGS="$CFLAGS"
5199 CFLAGS="-x c++ -O2 -ffloat-store"
5200 cat > conftest.$ac_ext <<EOF
5201 #line 5202 "configure"
5202 #include "confdefs.h"
5208 if { (eval echo configure:5209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5210 echo "$ac_t""no" 1>&6
5212 echo "configure: failed program was:" >&5
5213 cat conftest.$ac_ext >&5
5215 cat >> confdefs.h <<\EOF
5216 #define __NO_MATH_INLINES 1
5219 echo "$ac_t""yes" 1>&6
5222 CFLAGS="$save_CFLAGS"
5224 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
5226 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5227 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5228 echo "configure:5229: checking for $ac_hdr" >&5
5229 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5230 echo $ac_n "(cached) $ac_c" 1>&6
5232 cat > conftest.$ac_ext <<EOF
5233 #line 5234 "configure"
5234 #include "confdefs.h"
5237 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5238 { (eval echo configure:5239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5239 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5240 if test -z "$ac_err"; then
5242 eval "ac_cv_header_$ac_safe=yes"
5245 echo "configure: failed program was:" >&5
5246 cat conftest.$ac_ext >&5
5248 eval "ac_cv_header_$ac_safe=no"
5252 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5253 echo "$ac_t""yes" 1>&6
5254 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5255 cat >> confdefs.h <<EOF
5256 #define $ac_tr_hdr 1
5260 echo "$ac_t""no" 1>&6
5264 for ac_hdr in dirent.h
5266 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5267 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5268 echo "configure:5269: checking for $ac_hdr" >&5
5269 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5270 echo $ac_n "(cached) $ac_c" 1>&6
5272 cat > conftest.$ac_ext <<EOF
5273 #line 5274 "configure"
5274 #include "confdefs.h"
5277 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5278 { (eval echo configure:5279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5279 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5280 if test -z "$ac_err"; then
5282 eval "ac_cv_header_$ac_safe=yes"
5285 echo "configure: failed program was:" >&5
5286 cat conftest.$ac_ext >&5
5288 eval "ac_cv_header_$ac_safe=no"
5292 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5293 echo "$ac_t""yes" 1>&6
5294 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5295 cat >> confdefs.h <<EOF
5296 #define $ac_tr_hdr 1
5300 echo "$ac_t""no" 1>&6
5305 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5306 echo "configure:5307: checking for ANSI C header files" >&5
5307 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5308 echo $ac_n "(cached) $ac_c" 1>&6
5310 cat > conftest.$ac_ext <<EOF
5311 #line 5312 "configure"
5312 #include "confdefs.h"
5318 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5319 { (eval echo configure:5320: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5320 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5321 if test -z "$ac_err"; then
5323 ac_cv_header_stdc=yes
5326 echo "configure: failed program was:" >&5
5327 cat conftest.$ac_ext >&5
5329 ac_cv_header_stdc=no
5333 if test $ac_cv_header_stdc = yes; then
5334 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5335 cat > conftest.$ac_ext <<EOF
5336 #line 5337 "configure"
5337 #include "confdefs.h"
5340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5341 egrep "memchr" >/dev/null 2>&1; then
5345 ac_cv_header_stdc=no
5351 if test $ac_cv_header_stdc = yes; then
5352 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5353 cat > conftest.$ac_ext <<EOF
5354 #line 5355 "configure"
5355 #include "confdefs.h"
5358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5359 egrep "free" >/dev/null 2>&1; then
5363 ac_cv_header_stdc=no
5369 if test $ac_cv_header_stdc = yes; then
5370 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5371 if test "$cross_compiling" = yes; then
5374 cat > conftest.$ac_ext <<EOF
5375 #line 5376 "configure"
5376 #include "confdefs.h"
5378 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5379 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5380 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5381 int main () { int i; for (i = 0; i < 256; i++)
5382 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5386 if { (eval echo configure:5387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5390 echo "configure: failed program was:" >&5
5391 cat conftest.$ac_ext >&5
5393 ac_cv_header_stdc=no
5401 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5402 if test $ac_cv_header_stdc = yes; then
5403 cat >> confdefs.h <<\EOF
5404 #define STDC_HEADERS 1
5409 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
5410 echo "configure:5411: checking for ssize_t" >&5
5411 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
5412 echo $ac_n "(cached) $ac_c" 1>&6
5414 cat > conftest.$ac_ext <<EOF
5415 #line 5416 "configure"
5416 #include "confdefs.h"
5417 #include <sys/types.h>
5423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5424 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5426 ac_cv_type_ssize_t=yes
5429 ac_cv_type_ssize_t=no
5434 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
5435 if test $ac_cv_type_ssize_t = no; then
5436 cat >> confdefs.h <<\EOF
5443 echo $ac_n "checking for in_addr_t""... $ac_c" 1>&6
5444 echo "configure:5445: checking for in_addr_t" >&5
5445 cat > conftest.$ac_ext <<EOF
5446 #line 5447 "configure"
5447 #include "confdefs.h"
5448 #include <sys/types.h>
5453 #if HAVE_NETINET_IN_H
5454 #include <netinet/in.h>
5460 if { (eval echo configure:5461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5462 cat >> confdefs.h <<\EOF
5463 #define HAVE_IN_ADDR_T 1
5466 echo "$ac_t""yes" 1>&6
5468 echo "configure: failed program was:" >&5
5469 cat conftest.$ac_ext >&5
5471 echo "$ac_t""no" 1>&6
5475 echo $ac_n "checking whether struct ip_mreq is in netinet/in.h""... $ac_c" 1>&6
5476 echo "configure:5477: checking whether struct ip_mreq is in netinet/in.h" >&5
5477 cat > conftest.$ac_ext <<EOF
5478 #line 5479 "configure"
5479 #include "confdefs.h"
5480 #include <netinet/in.h>
5482 struct ip_mreq mreq;
5485 if { (eval echo configure:5486: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5487 cat >> confdefs.h <<\EOF
5488 #define HAVE_STRUCT_IP_MREQ 1
5491 echo "$ac_t""yes" 1>&6
5493 echo "configure: failed program was:" >&5
5494 cat conftest.$ac_ext >&5
5496 echo "$ac_t""no" 1>&6
5500 echo $ac_n "checking whether struct sockaddr_in6 is in netinet/in.h""... $ac_c" 1>&6
5501 echo "configure:5502: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
5502 cat > conftest.$ac_ext <<EOF
5503 #line 5504 "configure"
5504 #include "confdefs.h"
5505 #include <netinet/in.h>
5507 struct sockaddr_in6 addr6;
5510 if { (eval echo configure:5511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5512 cat >> confdefs.h <<\EOF
5513 #define HAVE_INET6 1
5516 echo "$ac_t""yes" 1>&6
5518 echo "configure: failed program was:" >&5
5519 cat conftest.$ac_ext >&5
5521 echo "$ac_t""no" 1>&6
5525 echo $ac_n "checking for socklen_t in sys/socket.h""... $ac_c" 1>&6
5526 echo "configure:5527: checking for socklen_t in sys/socket.h" >&5
5527 cat > conftest.$ac_ext <<EOF
5528 #line 5529 "configure"
5529 #include "confdefs.h"
5530 #include <sys/types.h>
5531 #include <sys/socket.h>
5536 if { (eval echo configure:5537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5538 cat >> confdefs.h <<\EOF
5539 #define HAVE_SOCKLEN_T 1
5542 echo "$ac_t""yes" 1>&6
5544 echo "configure: failed program was:" >&5
5545 cat conftest.$ac_ext >&5
5547 echo "$ac_t""no" 1>&6
5551 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
5552 echo "configure:5553: checking for tm_gmtoff in struct tm" >&5
5553 cat > conftest.$ac_ext <<EOF
5554 #line 5555 "configure"
5555 #include "confdefs.h"
5558 struct tm tim; tim.tm_gmtoff = 0;
5561 if { (eval echo configure:5562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5563 cat >> confdefs.h <<\EOF
5564 #define STRUCT_TM_HAS_GMTOFF 1
5567 echo "$ac_t""yes" 1>&6
5569 echo "configure: failed program was:" >&5
5570 cat conftest.$ac_ext >&5
5572 echo "$ac_t""no" 1>&6
5573 echo $ac_n "checking for global timezone variable""... $ac_c" 1>&6
5574 echo "configure:5575: checking for global timezone variable" >&5
5575 cat > conftest.$ac_ext <<EOF
5576 #line 5577 "configure"
5577 #include "confdefs.h"
5583 if { (eval echo configure:5584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5585 cat >> confdefs.h <<\EOF
5586 #define HAVE_TIMEZONE 1
5589 echo "$ac_t""yes" 1>&6
5591 echo "configure: failed program was:" >&5
5592 cat conftest.$ac_ext >&5
5594 echo "$ac_t""no" 1>&6
5600 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5601 # for constant arguments. Useless!
5602 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5603 echo "configure:5604: checking for working alloca.h" >&5
5604 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5605 echo $ac_n "(cached) $ac_c" 1>&6
5607 cat > conftest.$ac_ext <<EOF
5608 #line 5609 "configure"
5609 #include "confdefs.h"
5612 char *p = alloca(2 * sizeof(int));
5615 if { (eval echo configure:5616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5617 ac_cv_header_alloca_h=yes
5619 echo "configure: failed program was:" >&5
5620 cat conftest.$ac_ext >&5
5622 ac_cv_header_alloca_h=no
5627 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5628 if test $ac_cv_header_alloca_h = yes; then
5629 cat >> confdefs.h <<\EOF
5630 #define HAVE_ALLOCA_H 1
5635 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5636 echo "configure:5637: checking for alloca" >&5
5637 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5638 echo $ac_n "(cached) $ac_c" 1>&6
5640 cat > conftest.$ac_ext <<EOF
5641 #line 5642 "configure"
5642 #include "confdefs.h"
5645 # define alloca __builtin_alloca
5648 # include <malloc.h>
5649 # define alloca _alloca
5652 # include <alloca.h>
5657 # ifndef alloca /* predefined by HP cc +Olibcalls */
5666 char *p = (char *) alloca(1);
5669 if { (eval echo configure:5670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5671 ac_cv_func_alloca_works=yes
5673 echo "configure: failed program was:" >&5
5674 cat conftest.$ac_ext >&5
5676 ac_cv_func_alloca_works=no
5681 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5682 if test $ac_cv_func_alloca_works = yes; then
5683 cat >> confdefs.h <<\EOF
5684 #define HAVE_ALLOCA 1
5689 if test $ac_cv_func_alloca_works = no; then
5690 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5691 # that cause trouble. Some versions do not even contain alloca or
5692 # contain a buggy version. If you still want to use their alloca,
5693 # use ar to extract alloca.o from them instead of compiling alloca.c.
5694 ALLOCA=alloca.${ac_objext}
5695 cat >> confdefs.h <<\EOF
5700 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5701 echo "configure:5702: checking whether alloca needs Cray hooks" >&5
5702 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5703 echo $ac_n "(cached) $ac_c" 1>&6
5705 cat > conftest.$ac_ext <<EOF
5706 #line 5707 "configure"
5707 #include "confdefs.h"
5708 #if defined(CRAY) && ! defined(CRAY2)
5715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5716 egrep "webecray" >/dev/null 2>&1; then
5727 echo "$ac_t""$ac_cv_os_cray" 1>&6
5728 if test $ac_cv_os_cray = yes; then
5729 for ac_func in _getb67 GETB67 getb67; do
5730 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5731 echo "configure:5732: checking for $ac_func" >&5
5732 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5733 echo $ac_n "(cached) $ac_c" 1>&6
5735 cat > conftest.$ac_ext <<EOF
5736 #line 5737 "configure"
5737 #include "confdefs.h"
5738 /* System header to define __stub macros and hopefully few prototypes,
5739 which can conflict with char $ac_func(); below. */
5741 /* Override any gcc2 internal prototype to avoid an error. */
5742 /* We use char because int might match the return type of a gcc2
5743 builtin and then its argument prototype would still apply. */
5748 /* The GNU C library defines this for functions which it implements
5749 to always fail with ENOSYS. Some functions are actually named
5750 something starting with __ and the normal name is an alias. */
5751 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5759 if { (eval echo configure:5760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5761 eval "ac_cv_func_$ac_func=yes"
5763 echo "configure: failed program was:" >&5
5764 cat conftest.$ac_ext >&5
5766 eval "ac_cv_func_$ac_func=no"
5771 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5772 echo "$ac_t""yes" 1>&6
5773 cat >> confdefs.h <<EOF
5774 #define CRAY_STACKSEG_END $ac_func
5779 echo "$ac_t""no" 1>&6
5785 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5786 echo "configure:5787: checking stack direction for C alloca" >&5
5787 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5788 echo $ac_n "(cached) $ac_c" 1>&6
5790 if test "$cross_compiling" = yes; then
5791 ac_cv_c_stack_direction=0
5793 cat > conftest.$ac_ext <<EOF
5794 #line 5795 "configure"
5795 #include "confdefs.h"
5796 find_stack_direction ()
5798 static char *addr = 0;
5803 return find_stack_direction ();
5806 return (&dummy > addr) ? 1 : -1;
5810 exit (find_stack_direction() < 0);
5813 if { (eval echo configure:5814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5815 ac_cv_c_stack_direction=1
5817 echo "configure: failed program was:" >&5
5818 cat conftest.$ac_ext >&5
5820 ac_cv_c_stack_direction=-1
5827 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5828 cat >> confdefs.h <<EOF
5829 #define STACK_DIRECTION $ac_cv_c_stack_direction
5837 # Extract the first word of "$ac_prog", so it can be a program name with args.
5838 set dummy $ac_prog; ac_word=$2
5839 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5840 echo "configure:5841: checking for $ac_word" >&5
5841 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
5842 echo $ac_n "(cached) $ac_c" 1>&6
5844 if test -n "$PERL"; then
5845 ac_cv_prog_PERL="$PERL" # Let the user override the test.
5847 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5849 for ac_dir in $ac_dummy; do
5850 test -z "$ac_dir" && ac_dir=.
5851 if test -f $ac_dir/$ac_word; then
5852 ac_cv_prog_PERL="$ac_prog"
5859 PERL="$ac_cv_prog_PERL"
5860 if test -n "$PERL"; then
5861 echo "$ac_t""$PERL" 1>&6
5863 echo "$ac_t""no" 1>&6
5866 test -n "$PERL" && break
5868 test -n "$PERL" || PERL="false"
5875 SIGNAL_HANDLER=include/i386-signal.h
5878 SIGNAL_HANDLER=include/sparc-signal.h
5881 # SYSDEP_SOURCES=sysdep/ia64.c
5882 # test -d sysdep || mkdir sysdep
5885 SIGNAL_HANDLER=include/dwarf2-signal.h
5888 SIGNAL_HANDLER=include/dwarf2-signal.h
5891 SIGNAL_HANDLER=include/default-signal.h
5895 # If we're using sjlj exceptions, forget what we just learned.
5896 if test "$enable_sjlj_exceptions" = yes; then
5897 SIGNAL_HANDLER=include/default-signal.h
5904 if test "${multilib}" = "yes"; then
5905 multilib_arg="--enable-multilib"
5910 # If we find X, set shell vars x_includes and x_libraries to the
5911 # paths, otherwise set no_x=yes.
5912 # Uses ac_ vars as temps to allow command line to override cache and checks.
5913 # --without-x overrides everything else, but does not touch the cache.
5914 echo $ac_n "checking for X""... $ac_c" 1>&6
5915 echo "configure:5916: checking for X" >&5
5917 # Check whether --with-x or --without-x was given.
5918 if test "${with_x+set}" = set; then
5923 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5924 if test "x$with_x" = xno; then
5925 # The user explicitly disabled X.
5928 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5929 # Both variables are already set.
5932 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
5933 echo $ac_n "(cached) $ac_c" 1>&6
5935 # One or both of the vars are not set, and there is no cached value.
5936 ac_x_includes=NO ac_x_libraries=NO
5938 if mkdir conftestdir; then
5940 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5941 cat > Imakefile <<'EOF'
5943 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5945 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5946 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5947 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5948 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5949 for ac_extension in a so sl; do
5950 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5951 test -f $ac_im_libdir/libX11.$ac_extension; then
5952 ac_im_usrlibdir=$ac_im_libdir; break
5955 # Screen out bogus values from the imake configuration. They are
5956 # bogus both because they are the default anyway, and because
5957 # using them would break gcc on systems where it needs fixed includes.
5958 case "$ac_im_incroot" in
5960 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
5962 case "$ac_im_usrlibdir" in
5964 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
5971 if test "$ac_x_includes" = NO; then
5972 # Guess where to find include files, by looking for this one X11 .h file.
5973 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
5975 # First, try using that file with no special directory specified.
5976 cat > conftest.$ac_ext <<EOF
5977 #line 5978 "configure"
5978 #include "confdefs.h"
5979 #include <$x_direct_test_include>
5981 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5982 { (eval echo configure:5983: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5983 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5984 if test -z "$ac_err"; then
5986 # We can compile using X headers with no special include directory.
5990 echo "configure: failed program was:" >&5
5991 cat conftest.$ac_ext >&5
5993 # Look for the header file in a standard set of common directories.
5994 # Check X11 before X11Rn because it is often a symlink to the current release.
5997 /usr/X11R6/include \
5998 /usr/X11R5/include \
5999 /usr/X11R4/include \
6002 /usr/include/X11R6 \
6003 /usr/include/X11R5 \
6004 /usr/include/X11R4 \
6006 /usr/local/X11/include \
6007 /usr/local/X11R6/include \
6008 /usr/local/X11R5/include \
6009 /usr/local/X11R4/include \
6011 /usr/local/include/X11 \
6012 /usr/local/include/X11R6 \
6013 /usr/local/include/X11R5 \
6014 /usr/local/include/X11R4 \
6018 /usr/XFree86/include/X11 \
6021 /usr/local/include \
6022 /usr/unsupported/include \
6023 /usr/athena/include \
6024 /usr/local/x11r5/include \
6025 /usr/lpp/Xamples/include \
6027 /usr/openwin/include \
6028 /usr/openwin/share/include \
6031 if test -r "$ac_dir/$x_direct_test_include"; then
6032 ac_x_includes=$ac_dir
6038 fi # $ac_x_includes = NO
6040 if test "$ac_x_libraries" = NO; then
6041 # Check for the libraries.
6043 test -z "$x_direct_test_library" && x_direct_test_library=Xt
6044 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
6046 # See if we find them without any special options.
6047 # Don't add to $LIBS permanently.
6048 ac_save_LIBS="$LIBS"
6049 LIBS="-l$x_direct_test_library $LIBS"
6050 cat > conftest.$ac_ext <<EOF
6051 #line 6052 "configure"
6052 #include "confdefs.h"
6055 ${x_direct_test_function}()
6058 if { (eval echo configure:6059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6060 LIBS="$ac_save_LIBS"
6061 # We can link X programs with no special library path.
6064 echo "configure: failed program was:" >&5
6065 cat conftest.$ac_ext >&5
6067 LIBS="$ac_save_LIBS"
6068 # First see if replacing the include by lib works.
6069 # Check X11 before X11Rn because it is often a symlink to the current release.
6070 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
6081 /usr/local/X11/lib \
6082 /usr/local/X11R6/lib \
6083 /usr/local/X11R5/lib \
6084 /usr/local/X11R4/lib \
6086 /usr/local/lib/X11 \
6087 /usr/local/lib/X11R6 \
6088 /usr/local/lib/X11R5 \
6089 /usr/local/lib/X11R4 \
6093 /usr/XFree86/lib/X11 \
6097 /usr/unsupported/lib \
6099 /usr/local/x11r5/lib \
6100 /usr/lpp/Xamples/lib \
6104 /usr/openwin/share/lib \
6107 for ac_extension in a so sl; do
6108 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
6109 ac_x_libraries=$ac_dir
6116 fi # $ac_x_libraries = NO
6118 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
6119 # Didn't find X anywhere. Cache the known absence of X.
6120 ac_cv_have_x="have_x=no"
6122 # Record where we found X for the cache.
6123 ac_cv_have_x="have_x=yes \
6124 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6128 eval "$ac_cv_have_x"
6131 if test "$have_x" != yes; then
6132 echo "$ac_t""$have_x" 1>&6
6135 # If each of the values was on the command line, it overrides each guess.
6136 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6137 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6138 # Update the cache value to reflect the command line values.
6139 ac_cv_have_x="have_x=yes \
6140 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6141 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
6144 if test "$no_x" = yes; then
6145 # Not all programs may use this symbol, but it does not hurt to define it.
6146 cat >> confdefs.h <<\EOF
6147 #define X_DISPLAY_MISSING 1
6150 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6152 if test -n "$x_includes"; then
6153 X_CFLAGS="$X_CFLAGS -I$x_includes"
6156 # It would also be nice to do this for all -L options, not just this one.
6157 if test -n "$x_libraries"; then
6158 X_LIBS="$X_LIBS -L$x_libraries"
6159 # For Solaris; some versions of Sun CC require a space after -R and
6160 # others require no space. Words are not sufficient . . . .
6161 case "`(uname -sr) 2>/dev/null`" in
6163 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
6164 echo "configure:6165: checking whether -R must be followed by a space" >&5
6165 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
6166 cat > conftest.$ac_ext <<EOF
6167 #line 6168 "configure"
6168 #include "confdefs.h"
6174 if { (eval echo configure:6175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6178 echo "configure: failed program was:" >&5
6179 cat conftest.$ac_ext >&5
6184 if test $ac_R_nospace = yes; then
6185 echo "$ac_t""no" 1>&6
6186 X_LIBS="$X_LIBS -R$x_libraries"
6188 LIBS="$ac_xsave_LIBS -R $x_libraries"
6189 cat > conftest.$ac_ext <<EOF
6190 #line 6191 "configure"
6191 #include "confdefs.h"
6197 if { (eval echo configure:6198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6201 echo "configure: failed program was:" >&5
6202 cat conftest.$ac_ext >&5
6207 if test $ac_R_space = yes; then
6208 echo "$ac_t""yes" 1>&6
6209 X_LIBS="$X_LIBS -R $x_libraries"
6211 echo "$ac_t""neither works" 1>&6
6214 LIBS="$ac_xsave_LIBS"
6218 # Check for system-dependent libraries X programs must link with.
6219 # Do this before checking for the system-independent R6 libraries
6220 # (-lICE), since we may need -lsocket or whatever for X linking.
6222 if test "$ISC" = yes; then
6223 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6225 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
6226 # libraries were built with DECnet support. And karl@cs.umb.edu says
6227 # the Alpha needs dnet_stub (dnet does not exist).
6228 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
6229 echo "configure:6230: checking for dnet_ntoa in -ldnet" >&5
6230 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6231 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6232 echo $ac_n "(cached) $ac_c" 1>&6
6234 ac_save_LIBS="$LIBS"
6236 cat > conftest.$ac_ext <<EOF
6237 #line 6238 "configure"
6238 #include "confdefs.h"
6239 /* Override any gcc2 internal prototype to avoid an error. */
6240 /* We use char because int might match the return type of a gcc2
6241 builtin and then its argument prototype would still apply. */
6248 if { (eval echo configure:6249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6250 eval "ac_cv_lib_$ac_lib_var=yes"
6252 echo "configure: failed program was:" >&5
6253 cat conftest.$ac_ext >&5
6255 eval "ac_cv_lib_$ac_lib_var=no"
6258 LIBS="$ac_save_LIBS"
6261 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6262 echo "$ac_t""yes" 1>&6
6263 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6265 echo "$ac_t""no" 1>&6
6268 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6269 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
6270 echo "configure:6271: checking for dnet_ntoa in -ldnet_stub" >&5
6271 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6272 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6273 echo $ac_n "(cached) $ac_c" 1>&6
6275 ac_save_LIBS="$LIBS"
6276 LIBS="-ldnet_stub $LIBS"
6277 cat > conftest.$ac_ext <<EOF
6278 #line 6279 "configure"
6279 #include "confdefs.h"
6280 /* Override any gcc2 internal prototype to avoid an error. */
6281 /* We use char because int might match the return type of a gcc2
6282 builtin and then its argument prototype would still apply. */
6289 if { (eval echo configure:6290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6291 eval "ac_cv_lib_$ac_lib_var=yes"
6293 echo "configure: failed program was:" >&5
6294 cat conftest.$ac_ext >&5
6296 eval "ac_cv_lib_$ac_lib_var=no"
6299 LIBS="$ac_save_LIBS"
6302 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6303 echo "$ac_t""yes" 1>&6
6304 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6306 echo "$ac_t""no" 1>&6
6311 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6312 # to get the SysV transport functions.
6313 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
6315 # The nsl library prevents programs from opening the X display
6316 # on Irix 5.2, according to dickey@clark.net.
6317 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
6318 echo "configure:6319: checking for gethostbyname" >&5
6319 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
6320 echo $ac_n "(cached) $ac_c" 1>&6
6322 cat > conftest.$ac_ext <<EOF
6323 #line 6324 "configure"
6324 #include "confdefs.h"
6325 /* System header to define __stub macros and hopefully few prototypes,
6326 which can conflict with char gethostbyname(); below. */
6328 /* Override any gcc2 internal prototype to avoid an error. */
6329 /* We use char because int might match the return type of a gcc2
6330 builtin and then its argument prototype would still apply. */
6331 char gethostbyname();
6335 /* The GNU C library defines this for functions which it implements
6336 to always fail with ENOSYS. Some functions are actually named
6337 something starting with __ and the normal name is an alias. */
6338 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6346 if { (eval echo configure:6347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6348 eval "ac_cv_func_gethostbyname=yes"
6350 echo "configure: failed program was:" >&5
6351 cat conftest.$ac_ext >&5
6353 eval "ac_cv_func_gethostbyname=no"
6358 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
6359 echo "$ac_t""yes" 1>&6
6362 echo "$ac_t""no" 1>&6
6365 if test $ac_cv_func_gethostbyname = no; then
6366 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
6367 echo "configure:6368: checking for gethostbyname in -lnsl" >&5
6368 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
6369 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6370 echo $ac_n "(cached) $ac_c" 1>&6
6372 ac_save_LIBS="$LIBS"
6374 cat > conftest.$ac_ext <<EOF
6375 #line 6376 "configure"
6376 #include "confdefs.h"
6377 /* Override any gcc2 internal prototype to avoid an error. */
6378 /* We use char because int might match the return type of a gcc2
6379 builtin and then its argument prototype would still apply. */
6380 char gethostbyname();
6386 if { (eval echo configure:6387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6388 eval "ac_cv_lib_$ac_lib_var=yes"
6390 echo "configure: failed program was:" >&5
6391 cat conftest.$ac_ext >&5
6393 eval "ac_cv_lib_$ac_lib_var=no"
6396 LIBS="$ac_save_LIBS"
6399 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6400 echo "$ac_t""yes" 1>&6
6401 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6403 echo "$ac_t""no" 1>&6
6408 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6409 # socket/setsockopt and other routines are undefined under SCO ODT
6410 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6411 # on later versions), says simon@lia.di.epfl.ch: it contains
6412 # gethostby* variants that don't use the nameserver (or something).
6413 # -lsocket must be given before -lnsl if both are needed.
6414 # We assume that if connect needs -lnsl, so does gethostbyname.
6415 echo $ac_n "checking for connect""... $ac_c" 1>&6
6416 echo "configure:6417: checking for connect" >&5
6417 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
6418 echo $ac_n "(cached) $ac_c" 1>&6
6420 cat > conftest.$ac_ext <<EOF
6421 #line 6422 "configure"
6422 #include "confdefs.h"
6423 /* System header to define __stub macros and hopefully few prototypes,
6424 which can conflict with char connect(); below. */
6426 /* Override any gcc2 internal prototype to avoid an error. */
6427 /* We use char because int might match the return type of a gcc2
6428 builtin and then its argument prototype would still apply. */
6433 /* The GNU C library defines this for functions which it implements
6434 to always fail with ENOSYS. Some functions are actually named
6435 something starting with __ and the normal name is an alias. */
6436 #if defined (__stub_connect) || defined (__stub___connect)
6444 if { (eval echo configure:6445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6446 eval "ac_cv_func_connect=yes"
6448 echo "configure: failed program was:" >&5
6449 cat conftest.$ac_ext >&5
6451 eval "ac_cv_func_connect=no"
6456 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
6457 echo "$ac_t""yes" 1>&6
6460 echo "$ac_t""no" 1>&6
6463 if test $ac_cv_func_connect = no; then
6464 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
6465 echo "configure:6466: checking for connect in -lsocket" >&5
6466 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
6467 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6468 echo $ac_n "(cached) $ac_c" 1>&6
6470 ac_save_LIBS="$LIBS"
6471 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6472 cat > conftest.$ac_ext <<EOF
6473 #line 6474 "configure"
6474 #include "confdefs.h"
6475 /* Override any gcc2 internal prototype to avoid an error. */
6476 /* We use char because int might match the return type of a gcc2
6477 builtin and then its argument prototype would still apply. */
6484 if { (eval echo configure:6485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6486 eval "ac_cv_lib_$ac_lib_var=yes"
6488 echo "configure: failed program was:" >&5
6489 cat conftest.$ac_ext >&5
6491 eval "ac_cv_lib_$ac_lib_var=no"
6494 LIBS="$ac_save_LIBS"
6497 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6498 echo "$ac_t""yes" 1>&6
6499 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6501 echo "$ac_t""no" 1>&6
6506 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
6507 echo $ac_n "checking for remove""... $ac_c" 1>&6
6508 echo "configure:6509: checking for remove" >&5
6509 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
6510 echo $ac_n "(cached) $ac_c" 1>&6
6512 cat > conftest.$ac_ext <<EOF
6513 #line 6514 "configure"
6514 #include "confdefs.h"
6515 /* System header to define __stub macros and hopefully few prototypes,
6516 which can conflict with char remove(); below. */
6518 /* Override any gcc2 internal prototype to avoid an error. */
6519 /* We use char because int might match the return type of a gcc2
6520 builtin and then its argument prototype would still apply. */
6525 /* The GNU C library defines this for functions which it implements
6526 to always fail with ENOSYS. Some functions are actually named
6527 something starting with __ and the normal name is an alias. */
6528 #if defined (__stub_remove) || defined (__stub___remove)
6536 if { (eval echo configure:6537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6538 eval "ac_cv_func_remove=yes"
6540 echo "configure: failed program was:" >&5
6541 cat conftest.$ac_ext >&5
6543 eval "ac_cv_func_remove=no"
6548 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
6549 echo "$ac_t""yes" 1>&6
6552 echo "$ac_t""no" 1>&6
6555 if test $ac_cv_func_remove = no; then
6556 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
6557 echo "configure:6558: checking for remove in -lposix" >&5
6558 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
6559 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6560 echo $ac_n "(cached) $ac_c" 1>&6
6562 ac_save_LIBS="$LIBS"
6563 LIBS="-lposix $LIBS"
6564 cat > conftest.$ac_ext <<EOF
6565 #line 6566 "configure"
6566 #include "confdefs.h"
6567 /* Override any gcc2 internal prototype to avoid an error. */
6568 /* We use char because int might match the return type of a gcc2
6569 builtin and then its argument prototype would still apply. */
6576 if { (eval echo configure:6577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6578 eval "ac_cv_lib_$ac_lib_var=yes"
6580 echo "configure: failed program was:" >&5
6581 cat conftest.$ac_ext >&5
6583 eval "ac_cv_lib_$ac_lib_var=no"
6586 LIBS="$ac_save_LIBS"
6589 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6590 echo "$ac_t""yes" 1>&6
6591 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6593 echo "$ac_t""no" 1>&6
6598 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6599 echo $ac_n "checking for shmat""... $ac_c" 1>&6
6600 echo "configure:6601: checking for shmat" >&5
6601 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
6602 echo $ac_n "(cached) $ac_c" 1>&6
6604 cat > conftest.$ac_ext <<EOF
6605 #line 6606 "configure"
6606 #include "confdefs.h"
6607 /* System header to define __stub macros and hopefully few prototypes,
6608 which can conflict with char shmat(); below. */
6610 /* Override any gcc2 internal prototype to avoid an error. */
6611 /* We use char because int might match the return type of a gcc2
6612 builtin and then its argument prototype would still apply. */
6617 /* The GNU C library defines this for functions which it implements
6618 to always fail with ENOSYS. Some functions are actually named
6619 something starting with __ and the normal name is an alias. */
6620 #if defined (__stub_shmat) || defined (__stub___shmat)
6628 if { (eval echo configure:6629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6630 eval "ac_cv_func_shmat=yes"
6632 echo "configure: failed program was:" >&5
6633 cat conftest.$ac_ext >&5
6635 eval "ac_cv_func_shmat=no"
6640 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
6641 echo "$ac_t""yes" 1>&6
6644 echo "$ac_t""no" 1>&6
6647 if test $ac_cv_func_shmat = no; then
6648 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
6649 echo "configure:6650: checking for shmat in -lipc" >&5
6650 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
6651 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6652 echo $ac_n "(cached) $ac_c" 1>&6
6654 ac_save_LIBS="$LIBS"
6656 cat > conftest.$ac_ext <<EOF
6657 #line 6658 "configure"
6658 #include "confdefs.h"
6659 /* Override any gcc2 internal prototype to avoid an error. */
6660 /* We use char because int might match the return type of a gcc2
6661 builtin and then its argument prototype would still apply. */
6668 if { (eval echo configure:6669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6670 eval "ac_cv_lib_$ac_lib_var=yes"
6672 echo "configure: failed program was:" >&5
6673 cat conftest.$ac_ext >&5
6675 eval "ac_cv_lib_$ac_lib_var=no"
6678 LIBS="$ac_save_LIBS"
6681 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6682 echo "$ac_t""yes" 1>&6
6683 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6685 echo "$ac_t""no" 1>&6
6691 # Check for libraries that X11R6 Xt/Xaw programs need.
6692 ac_save_LDFLAGS="$LDFLAGS"
6693 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6694 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6695 # check for ICE first), but we must link in the order -lSM -lICE or
6696 # we get undefined symbols. So assume we have SM if we have ICE.
6697 # These have to be linked with before -lX11, unlike the other
6698 # libraries we check for below, so use a different variable.
6699 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
6700 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
6701 echo "configure:6702: checking for IceConnectionNumber in -lICE" >&5
6702 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
6703 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6704 echo $ac_n "(cached) $ac_c" 1>&6
6706 ac_save_LIBS="$LIBS"
6707 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6708 cat > conftest.$ac_ext <<EOF
6709 #line 6710 "configure"
6710 #include "confdefs.h"
6711 /* Override any gcc2 internal prototype to avoid an error. */
6712 /* We use char because int might match the return type of a gcc2
6713 builtin and then its argument prototype would still apply. */
6714 char IceConnectionNumber();
6717 IceConnectionNumber()
6720 if { (eval echo configure:6721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6722 eval "ac_cv_lib_$ac_lib_var=yes"
6724 echo "configure: failed program was:" >&5
6725 cat conftest.$ac_ext >&5
6727 eval "ac_cv_lib_$ac_lib_var=no"
6730 LIBS="$ac_save_LIBS"
6733 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6734 echo "$ac_t""yes" 1>&6
6735 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6737 echo "$ac_t""no" 1>&6
6740 LDFLAGS="$ac_save_LDFLAGS"
6745 # Check whether --enable-java-awt or --disable-java-awt was given.
6746 if test "${enable_java_awt+set}" = set; then
6747 enableval="$enable_java_awt"
6752 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
6756 for peer in $peerlibs ; do
6759 if test "$no_x" = yes; then
6760 echo "*** xlib peers requested but no X library available" 1>&2
6770 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
6777 if test "$use_xlib_awt" = yes; then
6786 if test "$use_gtk_awt" = yes; then
6798 # We get this from the environment.
6802 cat > confcache <<\EOF
6803 # This file is a shell script that caches the results of configure
6804 # tests run on this system so they can be shared between configure
6805 # scripts and configure runs. It is not useful on other systems.
6806 # If it contains results you don't want to keep, you may remove or edit it.
6808 # By default, configure uses ./config.cache as the cache file,
6809 # creating it if it does not exist already. You can give configure
6810 # the --cache-file=FILE option to use a different cache file; that is
6811 # what configure does when it calls configure scripts in
6812 # subdirectories, so they share the cache.
6813 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6814 # config.status only pays attention to the cache file if you give it the
6815 # --recheck option to rerun configure.
6818 # The following way of writing the cache mishandles newlines in values,
6819 # but we know of no workaround that is simple, portable, and efficient.
6820 # So, don't put newlines in cache variables' values.
6821 # Ultrix sh set writes to stderr and can't be redirected directly,
6822 # and sets the high bit in the cache file unless we assign to the vars.
6824 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6826 # `set' does not quote correctly, so add quotes (double-quote substitution
6827 # turns \\\\ into \\, and sed turns \\ into \).
6829 -e "s/'/'\\\\''/g" \
6830 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6833 # `set' quotes correctly as required by POSIX, so do not add quotes.
6834 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6837 if cmp -s $cache_file confcache; then
6840 if test -w $cache_file; then
6841 echo "updating cache $cache_file"
6842 cat confcache > $cache_file
6844 echo "not updating unwritable cache $cache_file"
6849 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6851 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6852 # Let make expand exec_prefix.
6853 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6855 # Any assignment to VPATH causes Sun make to only execute
6856 # the first set of double-colon rules, so remove it if not needed.
6857 # If there is a colon in the path, we need to keep it.
6858 if test "x$srcdir" = x.; then
6859 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6862 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6864 DEFS=-DHAVE_CONFIG_H
6866 # Without the "./", some shells look in PATH for config.status.
6867 : ${CONFIG_STATUS=./config.status}
6869 echo creating $CONFIG_STATUS
6870 rm -f $CONFIG_STATUS
6871 cat > $CONFIG_STATUS <<EOF
6873 # Generated automatically by configure.
6874 # Run this file to recreate the current configuration.
6875 # This directory was configured as follows,
6876 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6878 # $0 $ac_configure_args
6880 # Compiler output produced by configure, useful for debugging
6881 # configure, is in ./config.log if it exists.
6883 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6886 case "\$ac_option" in
6887 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6888 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6889 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6890 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6891 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6893 -help | --help | --hel | --he | --h)
6894 echo "\$ac_cs_usage"; exit 0 ;;
6895 *) echo "\$ac_cs_usage"; exit 1 ;;
6899 ac_given_srcdir=$srcdir
6900 ac_given_INSTALL="$INSTALL"
6902 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
6904 cat >> $CONFIG_STATUS <<EOF
6906 # Protect against being on the right side of a sed subst in config.status.
6907 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6908 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6912 s%@CFLAGS@%$CFLAGS%g
6913 s%@CPPFLAGS@%$CPPFLAGS%g
6914 s%@CXXFLAGS@%$CXXFLAGS%g
6915 s%@FFLAGS@%$FFLAGS%g
6917 s%@LDFLAGS@%$LDFLAGS%g
6919 s%@exec_prefix@%$exec_prefix%g
6920 s%@prefix@%$prefix%g
6921 s%@program_transform_name@%$program_transform_name%g
6922 s%@bindir@%$bindir%g
6923 s%@sbindir@%$sbindir%g
6924 s%@libexecdir@%$libexecdir%g
6925 s%@datadir@%$datadir%g
6926 s%@sysconfdir@%$sysconfdir%g
6927 s%@sharedstatedir@%$sharedstatedir%g
6928 s%@localstatedir@%$localstatedir%g
6929 s%@libdir@%$libdir%g
6930 s%@includedir@%$includedir%g
6931 s%@oldincludedir@%$oldincludedir%g
6932 s%@infodir@%$infodir%g
6933 s%@mandir@%$mandir%g
6935 s%@host_alias@%$host_alias%g
6936 s%@host_cpu@%$host_cpu%g
6937 s%@host_vendor@%$host_vendor%g
6938 s%@host_os@%$host_os%g
6939 s%@target@%$target%g
6940 s%@target_alias@%$target_alias%g
6941 s%@target_cpu@%$target_cpu%g
6942 s%@target_vendor@%$target_vendor%g
6943 s%@target_os@%$target_os%g
6945 s%@build_alias@%$build_alias%g
6946 s%@build_cpu@%$build_cpu%g
6947 s%@build_vendor@%$build_vendor%g
6948 s%@build_os@%$build_os%g
6950 s%@libgcj_basedir@%$libgcj_basedir%g
6953 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6954 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6955 s%@INSTALL_DATA@%$INSTALL_DATA%g
6956 s%@PACKAGE@%$PACKAGE%g
6957 s%@VERSION@%$VERSION%g
6958 s%@ACLOCAL@%$ACLOCAL%g
6959 s%@AUTOCONF@%$AUTOCONF%g
6960 s%@AUTOMAKE@%$AUTOMAKE%g
6961 s%@AUTOHEADER@%$AUTOHEADER%g
6962 s%@MAKEINFO@%$MAKEINFO%g
6963 s%@SET_MAKE@%$SET_MAKE%g
6966 s%@RANLIB@%$RANLIB%g
6967 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
6968 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
6970 s%@EXEEXT@%$EXEEXT%g
6971 s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
6972 s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
6973 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
6974 s%@INCLTDL@%$INCLTDL%g
6975 s%@LIBLTDL@%$LIBLTDL%g
6976 s%@DIRLTDL@%$DIRLTDL%g
6977 s%@OBJEXT@%$OBJEXT%g
6979 s%@LIBTOOL@%$LIBTOOL%g
6980 s%@CXXCPP@%$CXXCPP%g
6981 s%@subdirs@%$subdirs%g
6982 s%@COMPPATH@%$COMPPATH%g
6983 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
6984 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
6985 s%@LIBGCJDEBUG@%$LIBGCJDEBUG%g
6986 s%@LIBDATASTARTSPEC@%$LIBDATASTARTSPEC%g
6987 s%@LIBFFI@%$LIBFFI%g
6988 s%@LIBFFIINCS@%$LIBFFIINCS%g
6990 s%@SYSTEMSPEC@%$SYSTEMSPEC%g
6991 s%@LIBGCJTESTSPEC@%$LIBGCJTESTSPEC%g
6992 s%@ZLIBSPEC@%$ZLIBSPEC%g
6993 s%@ZLIBTESTSPEC@%$ZLIBTESTSPEC%g
6994 s%@GCLIBS@%$GCLIBS%g
6995 s%@GCINCS@%$GCINCS%g
6996 s%@GCDEPS@%$GCDEPS%g
6997 s%@GCOBJS@%$GCOBJS%g
6998 s%@GCSPEC@%$GCSPEC%g
6999 s%@JC1GCSPEC@%$JC1GCSPEC%g
7000 s%@GCTESTSPEC@%$GCTESTSPEC%g
7001 s%@THREADLIBS@%$THREADLIBS%g
7002 s%@THREADINCS@%$THREADINCS%g
7003 s%@THREADDEPS@%$THREADDEPS%g
7004 s%@THREADOBJS@%$THREADOBJS%g
7005 s%@THREADSPEC@%$THREADSPEC%g
7006 s%@HASH_SYNC_SPEC@%$HASH_SYNC_SPEC%g
7007 s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
7008 s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
7010 s%@GCJFLAGS@%$GCJFLAGS%g
7014 s%@DIVIDESPEC@%$DIVIDESPEC%g
7015 s%@EXCEPTIONSPEC@%$EXCEPTIONSPEC%g
7016 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
7017 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
7018 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
7019 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
7020 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
7021 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
7022 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
7023 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
7024 s%@NEEDS_DATA_START_TRUE@%$NEEDS_DATA_START_TRUE%g
7025 s%@NEEDS_DATA_START_FALSE@%$NEEDS_DATA_START_FALSE%g
7026 s%@GCC_UNWIND_INCLUDE@%$GCC_UNWIND_INCLUDE%g
7027 s%@GCJVERSION@%$GCJVERSION%g
7028 s%@AM_RUNTESTFLAGS@%$AM_RUNTESTFLAGS%g
7029 s%@ALLOCA@%$ALLOCA%g
7031 s%@SYSDEP_SOURCES@%$SYSDEP_SOURCES%g
7032 s%@X_CFLAGS@%$X_CFLAGS%g
7033 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
7034 s%@X_LIBS@%$X_LIBS%g
7035 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
7036 s%@XLIB_AWT_TRUE@%$XLIB_AWT_TRUE%g
7037 s%@XLIB_AWT_FALSE@%$XLIB_AWT_FALSE%g
7038 s%@GTK_AWT_TRUE@%$GTK_AWT_TRUE%g
7039 s%@GTK_AWT_FALSE@%$GTK_AWT_FALSE%g
7045 cat >> $CONFIG_STATUS <<\EOF
7047 # Split the substitutions into bite-sized pieces for seds with
7048 # small command number limits, like on Digital OSF/1 and HP-UX.
7049 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7050 ac_file=1 # Number of current file.
7051 ac_beg=1 # First line for current file.
7052 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7055 while $ac_more_lines; do
7056 if test $ac_beg -gt 1; then
7057 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7059 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7061 if test ! -s conftest.s$ac_file; then
7063 rm -f conftest.s$ac_file
7065 if test -z "$ac_sed_cmds"; then
7066 ac_sed_cmds="sed -f conftest.s$ac_file"
7068 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7070 ac_file=`expr $ac_file + 1`
7072 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7075 if test -z "$ac_sed_cmds"; then
7080 cat >> $CONFIG_STATUS <<EOF
7082 CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"}
7084 cat >> $CONFIG_STATUS <<\EOF
7085 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7086 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7088 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7089 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7090 *) ac_file_in="${ac_file}.in" ;;
7093 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7095 # Remove last slash and all that follows it. Not all systems have dirname.
7096 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7097 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7098 # The file is in a subdirectory.
7099 test ! -d "$ac_dir" && mkdir "$ac_dir"
7100 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7101 # A "../" for each directory in $ac_dir_suffix.
7102 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7104 ac_dir_suffix= ac_dots=
7107 case "$ac_given_srcdir" in
7109 if test -z "$ac_dots"; then top_srcdir=.
7110 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7111 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7113 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7114 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7117 case "$ac_given_INSTALL" in
7118 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7119 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7122 echo creating "$ac_file"
7124 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7126 *Makefile*) ac_comsub="1i\\
7127 # $configure_input" ;;
7131 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7133 s%@configure_input@%$configure_input%g
7134 s%@srcdir@%$srcdir%g
7135 s%@top_srcdir@%$top_srcdir%g
7136 s%@INSTALL@%$INSTALL%g
7137 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7141 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7142 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7144 # ac_d sets the value in "#define NAME VALUE" lines.
7145 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7146 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7149 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7150 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7151 ac_uB='\([ ]\)%\1#\2define\3'
7154 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7155 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7156 ac_eB='$%\1#\2define\3'
7160 if test "${CONFIG_HEADERS+set}" != set; then
7162 cat >> $CONFIG_STATUS <<EOF
7163 CONFIG_HEADERS="include/config.h gcj/libgcj-config.h"
7165 cat >> $CONFIG_STATUS <<\EOF
7167 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7168 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7170 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7171 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7172 *) ac_file_in="${ac_file}.in" ;;
7175 echo creating $ac_file
7177 rm -f conftest.frag conftest.in conftest.out
7178 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7179 cat $ac_file_inputs > conftest.in
7183 # Transform confdefs.h into a sed script conftest.vals that substitutes
7184 # the proper values into config.h.in to produce config.h. And first:
7185 # Protect against being on the right side of a sed subst in config.status.
7186 # Protect against being in an unquoted here document in config.status.
7188 cat > conftest.hdr <<\EOF
7191 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7195 sed -n -f conftest.hdr confdefs.h > conftest.vals
7198 # This sed command replaces #undef with comments. This is necessary, for
7199 # example, in the case of _POSIX_SOURCE, which is predefined and required
7200 # on some systems where configure will not decide to define it.
7201 cat >> conftest.vals <<\EOF
7202 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7205 # Break up conftest.vals because some shells have a limit on
7206 # the size of here documents, and old seds have small limits too.
7211 ac_lines=`grep -c . conftest.vals`
7212 # grep -c gives empty output for an empty file on some AIX systems.
7213 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7214 # Write a limited-size here document to conftest.frag.
7215 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7216 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7218 sed -f conftest.frag conftest.in > conftest.out
7220 mv conftest.out conftest.in
7222 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7224 mv conftest.tail conftest.vals
7228 cat >> $CONFIG_STATUS <<\EOF
7229 rm -f conftest.frag conftest.h
7230 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7231 cat conftest.in >> conftest.h
7233 if cmp -s $ac_file conftest.h 2>/dev/null; then
7234 echo "$ac_file is unchanged"
7237 # Remove last slash and all that follows it. Not all systems have dirname.
7238 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7239 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7240 # The file is in a subdirectory.
7241 test ! -d "$ac_dir" && mkdir "$ac_dir"
7244 mv conftest.h $ac_file
7250 cat >> $CONFIG_STATUS <<EOF
7251 ac_sources="java/io/$FILE_DESCRIPTOR java/lang/${PROCESS}Process.java java/lang/nat${PROCESS}Process.cc include/$GCHDR include/$THREADH $SIGNAL_HANDLER"
7252 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"
7255 cat >> $CONFIG_STATUS <<\EOF
7256 srcdir=$ac_given_srcdir
7257 while test -n "$ac_sources"; do
7258 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7259 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7261 echo "linking $srcdir/$ac_source to $ac_dest"
7263 if test ! -r $srcdir/$ac_source; then
7264 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
7268 # Make relative symlinks.
7269 # Remove last slash and all that follows it. Not all systems have dirname.
7270 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
7271 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
7272 # The dest file is in a subdirectory.
7273 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
7274 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
7275 # A "../" for each directory in $ac_dest_dir_suffix.
7276 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
7278 ac_dest_dir_suffix= ac_dots=
7282 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
7283 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
7286 # Make a symlink if possible; otherwise try a hard link.
7287 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
7288 ln $srcdir/$ac_source $ac_dest; then :
7290 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
7294 cat >> $CONFIG_STATUS <<EOF
7299 with_multisubdir=${with_multisubdir}
7300 ac_configure_args="${multilib_arg} ${ac_configure_args}"
7301 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
7302 libgcj_basedir=${libgcj_basedir}
7307 cat >> $CONFIG_STATUS <<\EOF
7309 for am_file in include/config.h gcj/libgcj-config.h; do
7310 case " $CONFIG_HEADERS " in
7312 echo timestamp > `echo $am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
7315 am_indx=`expr "$am_indx" + 1`
7317 # Only add multilib support code if we just rebuilt top-level Makefile.
7318 case " $CONFIG_FILES " in
7320 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
7324 # Make subdirectories and `.d' files. Look in both srcdir and
7325 # builddir for the .java files.
7328 ( (cd $srcdir && find . -name '*.java' -print) ;
7329 find . -name '*.java' -print) | \
7330 fgrep -v testsuite | \
7331 sed -e 's/\.java/.d/' | \
7333 echo "include $f" >> deps.mk
7336 d=`echo $f | sed -e 's,/[^/]*$,,'`
7338 $srcdir/../mkinstalldirs $d
7345 chmod +x $CONFIG_STATUS
7346 rm -fr confdefs* $ac_clean_files
7347 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7349 if test "$no_recursion" != yes; then
7351 # Remove --cache-file and --srcdir arguments so they do not pile up.
7352 ac_sub_configure_args=
7354 for ac_arg in $ac_configure_args; do
7355 if test -n "$ac_prev"; then
7360 -cache-file | --cache-file | --cache-fil | --cache-fi \
7361 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7362 ac_prev=cache_file ;;
7363 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7364 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
7366 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7368 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7370 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
7374 for ac_config_dir in $DIRLTDL; do
7376 # Do not complain, so a configure script can configure whichever
7377 # parts of a large source tree are present.
7378 if test ! -d $srcdir/$ac_config_dir; then
7382 echo configuring in $ac_config_dir
7387 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
7389 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
7397 # A "../" for each directory in /$ac_config_dir.
7398 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
7401 .) # No --srcdir option. We are building in place.
7402 ac_sub_srcdir=$srcdir ;;
7403 /*) # Absolute path.
7404 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
7406 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
7409 # Check for guested configure; otherwise get Cygnus style configure.
7410 if test -f $ac_sub_srcdir/configure; then
7411 ac_sub_configure=$ac_sub_srcdir/configure
7412 elif test -f $ac_sub_srcdir/configure.in; then
7413 ac_sub_configure=$ac_configure
7415 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
7419 # The recursion is here.
7420 if test -n "$ac_sub_configure"; then
7422 # Make the cache file name correct relative to the subdirectory.
7423 case "$cache_file" in
7424 /*) ac_sub_cache_file=$cache_file ;;
7426 ac_sub_cache_file="$ac_dots$cache_file" ;;
7428 case "$ac_given_INSTALL" in
7429 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7430 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7433 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
7434 # The eval makes quoting arguments work.
7435 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
7438 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }