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 --with-newlib Configuring with newlib"
22 --enable-version-specific-runtime-libs
23 specify that runtime libraries should be installed in a compiler-specific
26 --enable-multilib build many library versions (default)"
28 --enable-maintainer-mode enable make rules and dependencies not useful
29 (and sometimes confusing) to the casual installer"
31 --enable-shared[=PKGS] build shared libraries [default=yes]"
33 --enable-static[=PKGS] build static libraries [default=yes]"
35 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
37 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
39 --disable-libtool-lock avoid locking (might break parallel builds)"
41 --with-pic try to use only PIC/non-PIC objects [default=use both]"
43 --disable-getenv-properties
44 don't set system properties from GCJ_PROPERTIES"
46 --enable-hash-synchronization
47 use global hash table for monitor locks"
49 --enable-libgcj-multifile
50 allow compilation of several files at once"
52 --with-win32-nlsapi=ansi, unicows or unicode
53 native MinGW libgcj Win32 OS API [ansi]"
55 --enable-libgcj-debug enable runtime debugging code"
57 --enable-interpreter enable interpreter"
59 --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
61 --disable-java-net disable java.net"
63 --without-libffi don't use libffi"
65 --disable-jvmpi disable JVMPI support"
67 --with-ecos enable runtime eCos target support"
69 --with-system-zlib use installed libz"
71 --with-x use the X Window System"
73 --enable-java-awt list of AWT peer implementations to be built"
75 --enable-gtk-cairo build the cairo Graphics2D implementation on GTK"
77 --enable-java-gc=TYPE choose garbage collector [boehm]"
79 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
81 # Initialize some variables set by options.
82 # The variables have the same names as the options, with
83 # dashes changed to underlines.
85 cache_file=./config.cache
94 program_transform_name=s,x,x,
102 bindir='${exec_prefix}/bin'
103 sbindir='${exec_prefix}/sbin'
104 libexecdir='${exec_prefix}/libexec'
105 datadir='${prefix}/share'
106 sysconfdir='${prefix}/etc'
107 sharedstatedir='${prefix}/com'
108 localstatedir='${prefix}/var'
109 libdir='${exec_prefix}/lib'
110 includedir='${prefix}/include'
111 oldincludedir='/usr/include'
112 infodir='${prefix}/info'
113 mandir='${prefix}/man'
115 # Initialize some other variables.
118 SHELL=${CONFIG_SHELL-/bin/sh}
119 # Maximum number of lines to put in a shell here document.
126 # If the previous option needs an argument, assign it.
127 if test -n "$ac_prev"; then
128 eval "$ac_prev=\$ac_option"
134 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
138 # Accept the important Cygnus configure options, so we can diagnose typos.
142 -bindir | --bindir | --bindi | --bind | --bin | --bi)
144 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
145 bindir="$ac_optarg" ;;
147 -build | --build | --buil | --bui | --bu)
149 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
150 build="$ac_optarg" ;;
152 -cache-file | --cache-file | --cache-fil | --cache-fi \
153 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
154 ac_prev=cache_file ;;
155 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
156 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
157 cache_file="$ac_optarg" ;;
159 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
161 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
163 datadir="$ac_optarg" ;;
165 -disable-* | --disable-*)
166 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
167 # Reject names that are not valid shell variable names.
168 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
169 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
171 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
172 eval "enable_${ac_feature}=no" ;;
174 -enable-* | --enable-*)
175 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
176 # Reject names that are not valid shell variable names.
177 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
178 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
180 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
185 eval "enable_${ac_feature}='$ac_optarg'" ;;
187 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
188 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
189 | --exec | --exe | --ex)
190 ac_prev=exec_prefix ;;
191 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
192 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
193 | --exec=* | --exe=* | --ex=*)
194 exec_prefix="$ac_optarg" ;;
196 -gas | --gas | --ga | --g)
197 # Obsolete; use --with-gas.
200 -help | --help | --hel | --he)
201 # Omit some internal or obsolete options to make the list less imposing.
202 # This message is too long to be a string in the A/UX 3.1 sh.
204 Usage: configure [options] [host]
205 Options: [defaults in brackets after descriptions]
207 --cache-file=FILE cache test results in FILE
208 --help print this message
209 --no-create do not create output files
210 --quiet, --silent do not print \`checking...' messages
211 --version print the version of autoconf that created configure
212 Directory and file names:
213 --prefix=PREFIX install architecture-independent files in PREFIX
215 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
217 --bindir=DIR user executables in DIR [EPREFIX/bin]
218 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
219 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
220 --datadir=DIR read-only architecture-independent data in DIR
222 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
223 --sharedstatedir=DIR modifiable architecture-independent data in DIR
225 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
226 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
227 --includedir=DIR C header files in DIR [PREFIX/include]
228 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
229 --infodir=DIR info documentation in DIR [PREFIX/info]
230 --mandir=DIR man documentation in DIR [PREFIX/man]
231 --srcdir=DIR find the sources in DIR [configure dir or ..]
232 --program-prefix=PREFIX prepend PREFIX to installed program names
233 --program-suffix=SUFFIX append SUFFIX to installed program names
234 --program-transform-name=PROGRAM
235 run sed PROGRAM on installed program names
239 --build=BUILD configure for building on BUILD [BUILD=HOST]
240 --host=HOST configure for HOST [guessed]
241 --target=TARGET configure for TARGET [TARGET=HOST]
242 Features and packages:
243 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
244 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
245 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
246 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
247 --x-includes=DIR X include files are in DIR
248 --x-libraries=DIR X library files are in DIR
250 if test -n "$ac_help"; then
251 echo "--enable and --with options recognized:$ac_help"
255 -host | --host | --hos | --ho)
257 -host=* | --host=* | --hos=* | --ho=*)
260 -includedir | --includedir | --includedi | --included | --include \
261 | --includ | --inclu | --incl | --inc)
262 ac_prev=includedir ;;
263 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
264 | --includ=* | --inclu=* | --incl=* | --inc=*)
265 includedir="$ac_optarg" ;;
267 -infodir | --infodir | --infodi | --infod | --info | --inf)
269 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
270 infodir="$ac_optarg" ;;
272 -libdir | --libdir | --libdi | --libd)
274 -libdir=* | --libdir=* | --libdi=* | --libd=*)
275 libdir="$ac_optarg" ;;
277 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
278 | --libexe | --libex | --libe)
279 ac_prev=libexecdir ;;
280 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
281 | --libexe=* | --libex=* | --libe=*)
282 libexecdir="$ac_optarg" ;;
284 -localstatedir | --localstatedir | --localstatedi | --localstated \
285 | --localstate | --localstat | --localsta | --localst \
286 | --locals | --local | --loca | --loc | --lo)
287 ac_prev=localstatedir ;;
288 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
289 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
290 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
291 localstatedir="$ac_optarg" ;;
293 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
295 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
296 mandir="$ac_optarg" ;;
299 # Obsolete; use --without-fp.
302 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
306 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
307 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
310 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
311 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
312 | --oldin | --oldi | --old | --ol | --o)
313 ac_prev=oldincludedir ;;
314 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
315 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
316 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
317 oldincludedir="$ac_optarg" ;;
319 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
321 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
322 prefix="$ac_optarg" ;;
324 -program-prefix | --program-prefix | --program-prefi | --program-pref \
325 | --program-pre | --program-pr | --program-p)
326 ac_prev=program_prefix ;;
327 -program-prefix=* | --program-prefix=* | --program-prefi=* \
328 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
329 program_prefix="$ac_optarg" ;;
331 -program-suffix | --program-suffix | --program-suffi | --program-suff \
332 | --program-suf | --program-su | --program-s)
333 ac_prev=program_suffix ;;
334 -program-suffix=* | --program-suffix=* | --program-suffi=* \
335 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
336 program_suffix="$ac_optarg" ;;
338 -program-transform-name | --program-transform-name \
339 | --program-transform-nam | --program-transform-na \
340 | --program-transform-n | --program-transform- \
341 | --program-transform | --program-transfor \
342 | --program-transfo | --program-transf \
343 | --program-trans | --program-tran \
344 | --progr-tra | --program-tr | --program-t)
345 ac_prev=program_transform_name ;;
346 -program-transform-name=* | --program-transform-name=* \
347 | --program-transform-nam=* | --program-transform-na=* \
348 | --program-transform-n=* | --program-transform-=* \
349 | --program-transform=* | --program-transfor=* \
350 | --program-transfo=* | --program-transf=* \
351 | --program-trans=* | --program-tran=* \
352 | --progr-tra=* | --program-tr=* | --program-t=*)
353 program_transform_name="$ac_optarg" ;;
355 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
356 | -silent | --silent | --silen | --sile | --sil)
359 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
361 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
363 sbindir="$ac_optarg" ;;
365 -sharedstatedir | --sharedstatedir | --sharedstatedi \
366 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
367 | --sharedst | --shareds | --shared | --share | --shar \
369 ac_prev=sharedstatedir ;;
370 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
371 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
372 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
374 sharedstatedir="$ac_optarg" ;;
376 -site | --site | --sit)
378 -site=* | --site=* | --sit=*)
381 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
383 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
384 srcdir="$ac_optarg" ;;
386 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
387 | --syscon | --sysco | --sysc | --sys | --sy)
388 ac_prev=sysconfdir ;;
389 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
390 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
391 sysconfdir="$ac_optarg" ;;
393 -target | --target | --targe | --targ | --tar | --ta | --t)
395 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
396 target="$ac_optarg" ;;
398 -v | -verbose | --verbose | --verbos | --verbo | --verb)
401 -version | --version | --versio | --versi | --vers)
402 echo "configure generated by autoconf version 2.13"
406 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
407 # Reject names that are not valid shell variable names.
408 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
409 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
411 ac_package=`echo $ac_package| sed 's/-/_/g'`
416 eval "with_${ac_package}='$ac_optarg'" ;;
418 -without-* | --without-*)
419 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
420 # Reject names that are not valid shell variable names.
421 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
422 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
424 ac_package=`echo $ac_package| sed 's/-/_/g'`
425 eval "with_${ac_package}=no" ;;
428 # Obsolete; use --with-x.
431 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
432 | --x-incl | --x-inc | --x-in | --x-i)
433 ac_prev=x_includes ;;
434 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
435 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
436 x_includes="$ac_optarg" ;;
438 -x-libraries | --x-libraries | --x-librarie | --x-librari \
439 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
440 ac_prev=x_libraries ;;
441 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
442 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
443 x_libraries="$ac_optarg" ;;
445 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
449 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
450 echo "configure: warning: $ac_option: invalid host type" 1>&2
452 if test "x$nonopt" != xNONE; then
453 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
461 if test -n "$ac_prev"; then
462 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
465 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
467 # File descriptor usage:
470 # 2 errors and warnings
471 # 3 some systems may open it to /dev/tty
472 # 4 used on the Kubota Titan
473 # 6 checking for... messages and results
474 # 5 compiler messages saved in config.log
475 if test "$silent" = yes; then
483 This file contains any messages produced by compilers while
484 running configure, to aid debugging if configure makes a mistake.
487 # Strip out --no-create and --no-recursion so they do not pile up.
488 # Also quote any args containing shell metacharacters.
493 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
494 | --no-cr | --no-c) ;;
495 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
496 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
497 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
498 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
499 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
504 # Only set these to C if already set. These must not be set unconditionally
505 # because not all systems understand e.g. LANG=C (notably SCO).
506 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
507 # Non-C LC_CTYPE values break the ctype check.
508 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
509 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
510 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
511 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
513 # confdefs.h avoids OS command line length limits that DEFS can exceed.
514 rm -rf conftest* confdefs.h
515 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
518 # A filename unique to this package, relative to the directory that
519 # configure is in, which we can look for to find out if srcdir is correct.
520 ac_unique_file=java/lang/System.java
522 # Find the source files, if location was not specified.
523 if test -z "$srcdir"; then
524 ac_srcdir_defaulted=yes
525 # Try the directory containing this script, then its parent.
527 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
528 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
530 if test ! -r $srcdir/$ac_unique_file; then
534 ac_srcdir_defaulted=no
536 if test ! -r $srcdir/$ac_unique_file; then
537 if test "$ac_srcdir_defaulted" = yes; then
538 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
540 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
543 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
545 # Prefer explicitly selected file to automatically selected ones.
546 if test -z "$CONFIG_SITE"; then
547 if test "x$prefix" != xNONE; then
548 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
550 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
553 for ac_site_file in $CONFIG_SITE; do
554 if test -r "$ac_site_file"; then
555 echo "loading site script $ac_site_file"
560 if test -r "$cache_file"; then
561 echo "loading cache $cache_file"
564 echo "creating cache $cache_file"
569 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
570 ac_cpp='$CPP $CPPFLAGS'
571 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
572 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
573 cross_compiling=$ac_cv_prog_cc_cross
577 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
578 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
579 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
586 ac_n= ac_c='\c' ac_t=
591 # Check whether --with-target-subdir or --without-target-subdir was given.
592 if test "${with_target_subdir+set}" = set; then
593 withval="$with_target_subdir"
599 # When building with srcdir == objdir, links to the source files will
600 # be created in directories within the target_subdir. We have to
601 # adjust toplevel_srcdir accordingly, so that configure finds
602 # install-sh and other auxiliary files that live in the top-level
604 if test "${srcdir}" = "."; then
605 if test -z "${with_target_subdir}"; then
608 if test "${with_target_subdir}" != "."; then
609 toprel="${with_multisrctop}../.."
611 toprel="${with_multisrctop}.."
618 libgcj_basedir=$srcdir/$toprel/./libjava
622 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
623 if test -f $ac_dir/install-sh; then
625 ac_install_sh="$ac_aux_dir/install-sh -c"
627 elif test -f $ac_dir/install.sh; then
629 ac_install_sh="$ac_aux_dir/install.sh -c"
633 if test -z "$ac_aux_dir"; then
634 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
636 ac_config_guess=$ac_aux_dir/config.guess
637 ac_config_sub=$ac_aux_dir/config.sub
638 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
641 # This overrides the previous occurrence for automake, but not for
642 # autoconf, which is exactly what we want.
644 for ac_dir in .. $srcdir/..; do
645 if test -f $ac_dir/install-sh; then
647 ac_install_sh="$ac_aux_dir/install-sh -c"
649 elif test -f $ac_dir/install.sh; then
651 ac_install_sh="$ac_aux_dir/install.sh -c"
655 if test -z "$ac_aux_dir"; then
656 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
658 ac_config_guess=$ac_aux_dir/config.guess
659 ac_config_sub=$ac_aux_dir/config.sub
660 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
665 # Do some error checking and defaulting for the host and target type.
667 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
670 # 1. You are not allowed to specify --host, --target, and nonopt at the
672 # 2. Host defaults to nonopt.
673 # 3. If nonopt is not specified, then host defaults to the current host,
674 # as determined by config.guess.
675 # 4. Target and build default to nonopt.
676 # 5. If nonopt is not specified, then target and build default to host.
678 # The aliases save the names the user supplied, while $host etc.
679 # will get canonicalized.
680 case $host---$target---$nonopt in
681 NONE---*---* | *---NONE---* | *---*---NONE) ;;
682 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
686 # Make sure we can run config.sub.
687 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
688 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
691 echo $ac_n "checking host system type""... $ac_c" 1>&6
692 echo "configure:693: checking host system type" >&5
695 case "$host_alias" in
699 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
700 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
702 *) host_alias=$nonopt ;;
706 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
707 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
708 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
709 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
710 echo "$ac_t""$host" 1>&6
712 echo $ac_n "checking target system type""... $ac_c" 1>&6
713 echo "configure:714: checking target system type" >&5
716 case "$target_alias" in
719 NONE) target_alias=$host_alias ;;
720 *) target_alias=$nonopt ;;
724 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
725 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
726 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
727 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
728 echo "$ac_t""$target" 1>&6
730 echo $ac_n "checking build system type""... $ac_c" 1>&6
731 echo "configure:732: checking build system type" >&5
734 case "$build_alias" in
737 NONE) build_alias=$host_alias ;;
738 *) build_alias=$nonopt ;;
742 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
743 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
744 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
745 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
746 echo "$ac_t""$build" 1>&6
748 test "$host_alias" != "$target_alias" &&
749 test "$program_prefix$program_suffix$program_transform_name" = \
751 program_prefix=${target_alias}-
753 case ${build_alias} in
754 "") build_noncanonical=${build} ;;
755 *) build_noncanonical=${build_alias} ;;
758 case ${host_alias} in
759 "") host_noncanonical=${build_noncanonical} ;;
760 *) host_noncanonical=${host_alias} ;;
763 case ${target_alias} in
764 "") target_noncanonical=${host_noncanonical} ;;
765 *) target_noncanonical=${target_alias} ;;
769 # This works around the fact that libtool configuration may change LD
770 # for this particular configuration, but some shells, instead of
771 # keeping the changes in LD private, export them just because LD is
773 ORIGINAL_LD_FOR_MULTILIBS=$LD
775 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
776 echo "configure:777: checking whether ln -s works" >&5
777 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
778 echo $ac_n "(cached) $ac_c" 1>&6
781 if ln -s X conftestdata 2>/dev/null
784 ac_cv_prog_LN_S="ln -s"
789 LN_S="$ac_cv_prog_LN_S"
790 if test "$ac_cv_prog_LN_S" = "ln -s"; then
791 echo "$ac_t""yes" 1>&6
793 echo "$ac_t""no" 1>&6
797 # This works around an automake problem.
798 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
801 # Check whether --with-cross-host or --without-cross-host was given.
802 if test "${with_cross_host+set}" = set; then
803 withval="$with_cross_host"
808 # Check whether --with-newlib or --without-newlib was given.
809 if test "${with_newlib+set}" = set; then
810 withval="$with_newlib"
815 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
816 if test "${enable_version_specific_runtime_libs+set}" = set; then
817 enableval="$enable_version_specific_runtime_libs"
819 yes) version_specific_libs=yes ;;
820 no) version_specific_libs=no ;;
821 *) { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
824 version_specific_libs=no
829 # Check whether --enable-multilib or --disable-multilib was given.
830 if test "${enable_multilib+set}" = set; then
831 enableval="$enable_multilib"
832 case "${enableval}" in
835 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
844 # Extract the first word of "gcc", so it can be a program name with args.
845 set dummy gcc; ac_word=$2
846 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
847 echo "configure:848: checking for $ac_word" >&5
848 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
849 echo $ac_n "(cached) $ac_c" 1>&6
851 if test -n "$CC"; then
852 ac_cv_prog_CC="$CC" # Let the user override the test.
854 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
856 for ac_dir in $ac_dummy; do
857 test -z "$ac_dir" && ac_dir=.
858 if test -f $ac_dir/$ac_word; then
867 if test -n "$CC"; then
868 echo "$ac_t""$CC" 1>&6
870 echo "$ac_t""no" 1>&6
873 if test -z "$CC"; then
874 # Extract the first word of "cc", so it can be a program name with args.
875 set dummy cc; ac_word=$2
876 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
877 echo "configure:878: checking for $ac_word" >&5
878 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
879 echo $ac_n "(cached) $ac_c" 1>&6
881 if test -n "$CC"; then
882 ac_cv_prog_CC="$CC" # Let the user override the test.
884 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
887 for ac_dir in $ac_dummy; do
888 test -z "$ac_dir" && ac_dir=.
889 if test -f $ac_dir/$ac_word; then
890 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
899 if test $ac_prog_rejected = yes; then
900 # We found a bogon in the path, so make sure we never use it.
901 set dummy $ac_cv_prog_CC
903 if test $# -gt 0; then
904 # We chose a different compiler from the bogus one.
905 # However, it has the same basename, so the bogon will be chosen
906 # first if we set CC to just the basename; use the full file name.
908 set dummy "$ac_dir/$ac_word" "$@"
916 if test -n "$CC"; then
917 echo "$ac_t""$CC" 1>&6
919 echo "$ac_t""no" 1>&6
922 if test -z "$CC"; then
925 # Extract the first word of "cl", so it can be a program name with args.
926 set dummy cl; ac_word=$2
927 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
928 echo "configure:929: checking for $ac_word" >&5
929 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
930 echo $ac_n "(cached) $ac_c" 1>&6
932 if test -n "$CC"; then
933 ac_cv_prog_CC="$CC" # Let the user override the test.
935 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
937 for ac_dir in $ac_dummy; do
938 test -z "$ac_dir" && ac_dir=.
939 if test -f $ac_dir/$ac_word; then
948 if test -n "$CC"; then
949 echo "$ac_t""$CC" 1>&6
951 echo "$ac_t""no" 1>&6
956 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
960 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
961 echo "configure:962: checking whether we are using GNU C" >&5
962 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
963 echo $ac_n "(cached) $ac_c" 1>&6
965 cat > conftest.c <<EOF
970 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
977 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
979 if test $ac_cv_prog_gcc = yes; then
985 ac_test_CFLAGS="${CFLAGS+set}"
986 ac_save_CFLAGS="$CFLAGS"
988 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
989 echo "configure:990: checking whether ${CC-cc} accepts -g" >&5
990 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
991 echo $ac_n "(cached) $ac_c" 1>&6
993 echo 'void f(){}' > conftest.c
994 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1003 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1004 if test "$ac_test_CFLAGS" = set; then
1005 CFLAGS="$ac_save_CFLAGS"
1006 elif test $ac_cv_prog_cc_g = yes; then
1007 if test "$GCC" = yes; then
1013 if test "$GCC" = yes; then
1021 # We use the libstdc++-v3 version of LIB_AC_PROG_CXX, but use
1022 # glibjava_CXX instead of glibcpp_CXX. That's because we're passed a
1023 # different definition of CXX than other directories, since we don't
1024 # depend on libstdc++-v3 having already been built.
1028 # Use glibjava_CXX so that we do not cause CXX to be cached with the
1029 # flags that come in CXX while configuring libjava. They're different
1030 # from those used for all other target libraries. If CXX is set in
1031 # the environment, respect that here.
1033 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1035 # Extract the first word of "$ac_prog", so it can be a program name with args.
1036 set dummy $ac_prog; ac_word=$2
1037 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1038 echo "configure:1039: checking for $ac_word" >&5
1039 if eval "test \"`echo '$''{'ac_cv_prog_glibjava_CXX'+set}'`\" = set"; then
1040 echo $ac_n "(cached) $ac_c" 1>&6
1042 if test -n "$glibjava_CXX"; then
1043 ac_cv_prog_glibjava_CXX="$glibjava_CXX" # Let the user override the test.
1045 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1047 for ac_dir in $ac_dummy; do
1048 test -z "$ac_dir" && ac_dir=.
1049 if test -f $ac_dir/$ac_word; then
1050 ac_cv_prog_glibjava_CXX="$ac_prog"
1057 glibjava_CXX="$ac_cv_prog_glibjava_CXX"
1058 if test -n "$glibjava_CXX"; then
1059 echo "$ac_t""$glibjava_CXX" 1>&6
1061 echo "$ac_t""no" 1>&6
1064 test -n "$glibjava_CXX" && break
1066 test -n "$glibjava_CXX" || glibjava_CXX="gcc"
1070 test -z "$glibjava_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1072 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1073 echo "configure:1074: checking whether we are using GNU C++" >&5
1074 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1075 echo $ac_n "(cached) $ac_c" 1>&6
1077 cat > conftest.C <<EOF
1082 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1089 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1091 if test $ac_cv_prog_gxx = yes; then
1093 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1094 ac_save_CXXFLAGS="$CXXFLAGS"
1096 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1097 echo "configure:1098: checking whether ${CXX-g++} accepts -g" >&5
1098 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1099 echo $ac_n "(cached) $ac_c" 1>&6
1101 echo 'void f(){}' > conftest.cc
1102 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1103 ac_cv_prog_cxx_g=yes
1111 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1112 if test "$ac_test_CXXFLAGS" = set; then
1113 CXXFLAGS="$ac_save_CXXFLAGS"
1114 elif test $ac_cv_prog_cxx_g = yes; then
1121 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1126 # Find a good install program. We prefer a C program (faster),
1127 # so one script is as good as another. But avoid the broken or
1128 # incompatible versions:
1129 # SysV /etc/install, /usr/sbin/install
1130 # SunOS /usr/etc/install
1131 # IRIX /sbin/install
1133 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1134 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1135 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1136 # ./install, which can be erroneously created by make from ./install.sh.
1137 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1138 echo "configure:1139: checking for a BSD compatible install" >&5
1139 if test -z "$INSTALL"; then
1140 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1141 echo $ac_n "(cached) $ac_c" 1>&6
1143 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1144 for ac_dir in $PATH; do
1145 # Account for people who put trailing slashes in PATH elements.
1147 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1149 # OSF1 and SCO ODT 3.0 have their own names for install.
1150 # Don't use installbsd from OSF since it installs stuff as root
1152 for ac_prog in ginstall scoinst install; do
1153 if test -f $ac_dir/$ac_prog; then
1154 if test $ac_prog = install &&
1155 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1156 # AIX install. It has an incompatible calling convention.
1159 ac_cv_path_install="$ac_dir/$ac_prog -c"
1170 if test "${ac_cv_path_install+set}" = set; then
1171 INSTALL="$ac_cv_path_install"
1173 # As a last resort, use the slow shell script. We don't cache a
1174 # path for INSTALL within a source directory, because that will
1175 # break other packages using the cache if that directory is
1176 # removed, or if the path is relative.
1177 INSTALL="$ac_install_sh"
1180 echo "$ac_t""$INSTALL" 1>&6
1182 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1183 # It thinks the first close brace ends the variable substitution.
1184 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1186 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1188 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1190 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1191 echo "configure:1192: checking whether build environment is sane" >&5
1194 echo timestamp > conftestfile
1195 # Do `set' in a subshell so we don't clobber the current shell's
1196 # arguments. Must try -L first in case configure is actually a
1197 # symlink; some systems play weird games with the mod time of symlinks
1198 # (eg FreeBSD returns the mod time of the symlink's containing
1201 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1202 if test "$*" = "X"; then
1204 set X `ls -t $srcdir/configure conftestfile`
1206 if test "$*" != "X $srcdir/configure conftestfile" \
1207 && test "$*" != "X conftestfile $srcdir/configure"; then
1209 # If neither matched, then we have a broken ls. This can happen
1210 # if, for instance, CONFIG_SHELL is bash and it inherits a
1211 # broken ls alias from the environment. This has actually
1212 # happened. Such a system could not be considered "sane".
1213 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1214 alias in your environment" 1>&2; exit 1; }
1217 test "$2" = conftestfile
1223 { echo "configure: error: newly created file is older than distributed files!
1224 Check your system clock" 1>&2; exit 1; }
1227 echo "$ac_t""yes" 1>&6
1228 if test "$program_transform_name" = s,x,x,; then
1229 program_transform_name=
1231 # Double any \ or $. echo might interpret backslashes.
1232 cat <<\EOF_SED > conftestsed
1233 s,\\,\\\\,g; s,\$,$$,g
1235 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1238 test "$program_prefix" != NONE &&
1239 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1240 # Use a double $ so make ignores it.
1241 test "$program_suffix" != NONE &&
1242 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1244 # sed with no file args requires a program.
1245 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1247 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1248 echo "configure:1249: checking whether ${MAKE-make} sets \${MAKE}" >&5
1249 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1250 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1251 echo $ac_n "(cached) $ac_c" 1>&6
1253 cat > conftestmake <<\EOF
1255 @echo 'ac_maketemp="${MAKE}"'
1257 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1258 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1259 if test -n "$ac_maketemp"; then
1260 eval ac_cv_prog_make_${ac_make}_set=yes
1262 eval ac_cv_prog_make_${ac_make}_set=no
1266 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1267 echo "$ac_t""yes" 1>&6
1270 echo "$ac_t""no" 1>&6
1271 SET_MAKE="MAKE=${MAKE-make}"
1279 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1280 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1282 cat >> confdefs.h <<EOF
1283 #define PACKAGE "$PACKAGE"
1286 cat >> confdefs.h <<EOF
1287 #define VERSION "$VERSION"
1292 missing_dir=`cd $ac_aux_dir && pwd`
1293 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1294 echo "configure:1295: checking for working aclocal" >&5
1295 # Run test in a subshell; some versions of sh will print an error if
1296 # an executable is not found, even if stderr is redirected.
1297 # Redirect stdin to placate older versions of autoconf. Sigh.
1298 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1300 echo "$ac_t""found" 1>&6
1302 ACLOCAL="$missing_dir/missing aclocal"
1303 echo "$ac_t""missing" 1>&6
1306 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1307 echo "configure:1308: checking for working autoconf" >&5
1308 # Run test in a subshell; some versions of sh will print an error if
1309 # an executable is not found, even if stderr is redirected.
1310 # Redirect stdin to placate older versions of autoconf. Sigh.
1311 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1313 echo "$ac_t""found" 1>&6
1315 AUTOCONF="$missing_dir/missing autoconf"
1316 echo "$ac_t""missing" 1>&6
1319 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1320 echo "configure:1321: checking for working automake" >&5
1321 # Run test in a subshell; some versions of sh will print an error if
1322 # an executable is not found, even if stderr is redirected.
1323 # Redirect stdin to placate older versions of autoconf. Sigh.
1324 if (automake --version) < /dev/null > /dev/null 2>&1; then
1326 echo "$ac_t""found" 1>&6
1328 AUTOMAKE="$missing_dir/missing automake"
1329 echo "$ac_t""missing" 1>&6
1332 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1333 echo "configure:1334: checking for working autoheader" >&5
1334 # Run test in a subshell; some versions of sh will print an error if
1335 # an executable is not found, even if stderr is redirected.
1336 # Redirect stdin to placate older versions of autoconf. Sigh.
1337 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1338 AUTOHEADER=autoheader
1339 echo "$ac_t""found" 1>&6
1341 AUTOHEADER="$missing_dir/missing autoheader"
1342 echo "$ac_t""missing" 1>&6
1345 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1346 echo "configure:1347: checking for working makeinfo" >&5
1347 # Run test in a subshell; some versions of sh will print an error if
1348 # an executable is not found, even if stderr is redirected.
1349 # Redirect stdin to placate older versions of autoconf. Sigh.
1350 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1352 echo "$ac_t""found" 1>&6
1354 MAKEINFO="$missing_dir/missing makeinfo"
1355 echo "$ac_t""missing" 1>&6
1360 if test $host != $build; then
1361 ac_tool_prefix=${host_alias}-
1366 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1367 set dummy ${ac_tool_prefix}as; ac_word=$2
1368 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1369 echo "configure:1370: checking for $ac_word" >&5
1370 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1371 echo $ac_n "(cached) $ac_c" 1>&6
1373 if test -n "$AS"; then
1374 ac_cv_prog_AS="$AS" # Let the user override the test.
1376 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1378 for ac_dir in $ac_dummy; do
1379 test -z "$ac_dir" && ac_dir=.
1380 if test -f $ac_dir/$ac_word; then
1381 ac_cv_prog_AS="${ac_tool_prefix}as"
1386 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1390 if test -n "$AS"; then
1391 echo "$ac_t""$AS" 1>&6
1393 echo "$ac_t""no" 1>&6
1398 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1399 set dummy ${ac_tool_prefix}ar; ac_word=$2
1400 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1401 echo "configure:1402: checking for $ac_word" >&5
1402 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1403 echo $ac_n "(cached) $ac_c" 1>&6
1405 if test -n "$AR"; then
1406 ac_cv_prog_AR="$AR" # Let the user override the test.
1408 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1410 for ac_dir in $ac_dummy; do
1411 test -z "$ac_dir" && ac_dir=.
1412 if test -f $ac_dir/$ac_word; then
1413 ac_cv_prog_AR="${ac_tool_prefix}ar"
1418 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1422 if test -n "$AR"; then
1423 echo "$ac_t""$AR" 1>&6
1425 echo "$ac_t""no" 1>&6
1430 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1431 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1432 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1433 echo "configure:1434: checking for $ac_word" >&5
1434 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1435 echo $ac_n "(cached) $ac_c" 1>&6
1437 if test -n "$RANLIB"; then
1438 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1440 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1442 for ac_dir in $ac_dummy; do
1443 test -z "$ac_dir" && ac_dir=.
1444 if test -f $ac_dir/$ac_word; then
1445 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1452 RANLIB="$ac_cv_prog_RANLIB"
1453 if test -n "$RANLIB"; then
1454 echo "$ac_t""$RANLIB" 1>&6
1456 echo "$ac_t""no" 1>&6
1460 if test -z "$ac_cv_prog_RANLIB"; then
1461 if test -n "$ac_tool_prefix"; then
1462 # Extract the first word of "ranlib", so it can be a program name with args.
1463 set dummy ranlib; ac_word=$2
1464 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1465 echo "configure:1466: checking for $ac_word" >&5
1466 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1467 echo $ac_n "(cached) $ac_c" 1>&6
1469 if test -n "$RANLIB"; then
1470 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1472 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1474 for ac_dir in $ac_dummy; do
1475 test -z "$ac_dir" && ac_dir=.
1476 if test -f $ac_dir/$ac_word; then
1477 ac_cv_prog_RANLIB="ranlib"
1482 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1485 RANLIB="$ac_cv_prog_RANLIB"
1486 if test -n "$RANLIB"; then
1487 echo "$ac_t""$RANLIB" 1>&6
1489 echo "$ac_t""no" 1>&6
1498 # Find a good install program. We prefer a C program (faster),
1499 # so one script is as good as another. But avoid the broken or
1500 # incompatible versions:
1501 # SysV /etc/install, /usr/sbin/install
1502 # SunOS /usr/etc/install
1503 # IRIX /sbin/install
1505 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1506 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1507 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1508 # ./install, which can be erroneously created by make from ./install.sh.
1509 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1510 echo "configure:1511: checking for a BSD compatible install" >&5
1511 if test -z "$INSTALL"; then
1512 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1513 echo $ac_n "(cached) $ac_c" 1>&6
1515 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1516 for ac_dir in $PATH; do
1517 # Account for people who put trailing slashes in PATH elements.
1519 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1521 # OSF1 and SCO ODT 3.0 have their own names for install.
1522 # Don't use installbsd from OSF since it installs stuff as root
1524 for ac_prog in ginstall scoinst install; do
1525 if test -f $ac_dir/$ac_prog; then
1526 if test $ac_prog = install &&
1527 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1528 # AIX install. It has an incompatible calling convention.
1531 ac_cv_path_install="$ac_dir/$ac_prog -c"
1542 if test "${ac_cv_path_install+set}" = set; then
1543 INSTALL="$ac_cv_path_install"
1545 # As a last resort, use the slow shell script. We don't cache a
1546 # path for INSTALL within a source directory, because that will
1547 # break other packages using the cache if that directory is
1548 # removed, or if the path is relative.
1549 INSTALL="$ac_install_sh"
1552 echo "$ac_t""$INSTALL" 1>&6
1554 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1555 # It thinks the first close brace ends the variable substitution.
1556 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1558 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1560 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1563 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1564 echo "configure:1565: checking whether to enable maintainer-specific portions of Makefiles" >&5
1565 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1566 if test "${enable_maintainer_mode+set}" = set; then
1567 enableval="$enable_maintainer_mode"
1568 USE_MAINTAINER_MODE=$enableval
1570 USE_MAINTAINER_MODE=no
1573 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1576 if test $USE_MAINTAINER_MODE = yes; then
1577 MAINTAINER_MODE_TRUE=
1578 MAINTAINER_MODE_FALSE='#'
1580 MAINTAINER_MODE_TRUE='#'
1581 MAINTAINER_MODE_FALSE=
1583 MAINT=$MAINTAINER_MODE_TRUE
1587 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1588 echo "configure:1589: checking for Cygwin environment" >&5
1589 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1590 echo $ac_n "(cached) $ac_c" 1>&6
1592 cat > conftest.$ac_ext <<EOF
1593 #line 1594 "configure"
1594 #include "confdefs.h"
1599 #define __CYGWIN__ __CYGWIN32__
1604 if { (eval echo configure:1605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1608 echo "configure: failed program was:" >&5
1609 cat conftest.$ac_ext >&5
1617 echo "$ac_t""$ac_cv_cygwin" 1>&6
1619 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1620 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1621 echo "configure:1622: checking for mingw32 environment" >&5
1622 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1623 echo $ac_n "(cached) $ac_c" 1>&6
1625 cat > conftest.$ac_ext <<EOF
1626 #line 1627 "configure"
1627 #include "confdefs.h"
1633 if { (eval echo configure:1634: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1637 echo "configure: failed program was:" >&5
1638 cat conftest.$ac_ext >&5
1646 echo "$ac_t""$ac_cv_mingw32" 1>&6
1648 test "$ac_cv_mingw32" = yes && MINGW32=yes
1651 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1652 echo "configure:1653: checking for executable suffix" >&5
1653 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1654 echo $ac_n "(cached) $ac_c" 1>&6
1656 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1660 echo 'int main () { return 0; }' > conftest.$ac_ext
1662 if { (eval echo configure:1663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1663 for file in conftest.*; do
1665 *.$ac_ext | *.c | *.o | *.obj) ;;
1666 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1670 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1673 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1678 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1679 echo "$ac_t""${ac_cv_exeext}" 1>&6
1683 # configure.host sets the following important variables
1684 # libgcj_cflags - host specific C compiler flags
1685 # libgcj_cxxflags - host specific C++ compiler flags
1686 # libgcj_javaflags - host specific Java compiler flags
1692 . ${srcdir}/configure.host
1694 LIBGCJ_CFLAGS="${libgcj_cflags}"
1695 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
1696 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
1705 # Only use libltdl for non-newlib builds.
1706 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
1707 case $enable_ltdl_convenience in
1708 no) { echo "configure: error: this package needs a convenience libltdl" 1>&2; exit 1; } ;;
1709 "") enable_ltdl_convenience=yes
1710 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
1712 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
1713 INCLTDL='-I${top_srcdir}/''libltdl'
1717 cat >> confdefs.h <<\EOF
1721 # Sigh. Libtool's macro doesn't do the right thing.
1722 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
1723 # FIXME: this is a hack.
1724 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
1725 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
1730 # Check whether --enable-shared or --disable-shared was given.
1731 if test "${enable_shared+set}" = set; then
1732 enableval="$enable_shared"
1733 p=${PACKAGE-default}
1735 yes) enable_shared=yes ;;
1736 no) enable_shared=no ;;
1739 # Look at the argument we got. We use all the common list separators.
1740 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1741 for pkg in $enableval; do
1742 if test "X$pkg" = "X$p"; then
1753 # Check whether --enable-static or --disable-static was given.
1754 if test "${enable_static+set}" = set; then
1755 enableval="$enable_static"
1756 p=${PACKAGE-default}
1758 yes) enable_static=yes ;;
1759 no) enable_static=no ;;
1762 # Look at the argument we got. We use all the common list separators.
1763 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1764 for pkg in $enableval; do
1765 if test "X$pkg" = "X$p"; then
1776 # Check whether --enable-fast-install or --disable-fast-install was given.
1777 if test "${enable_fast_install+set}" = set; then
1778 enableval="$enable_fast_install"
1779 p=${PACKAGE-default}
1781 yes) enable_fast_install=yes ;;
1782 no) enable_fast_install=no ;;
1784 enable_fast_install=no
1785 # Look at the argument we got. We use all the common list separators.
1786 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1787 for pkg in $enableval; do
1788 if test "X$pkg" = "X$p"; then
1789 enable_fast_install=yes
1796 enable_fast_install=yes
1799 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1800 if test "${with_gnu_ld+set}" = set; then
1801 withval="$with_gnu_ld"
1802 test "$withval" = no || with_gnu_ld=yes
1808 if test "$GCC" = yes; then
1809 # Check if gcc -print-prog-name=ld gives a path.
1810 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1811 echo "configure:1812: checking for ld used by GCC" >&5
1814 # gcc leaves a trailing carriage return which upsets mingw
1815 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1817 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1820 # Accept absolute paths.
1821 [\\/]* | [A-Za-z]:[\\/]*)
1822 re_direlt='/[^/][^/]*/\.\./'
1823 # Canonicalize the path of ld
1824 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1825 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1826 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1828 test -z "$LD" && LD="$ac_prog"
1831 # If it fails, then pretend we aren't using GCC.
1835 # If it is relative, then search for the first ld in PATH.
1839 elif test "$with_gnu_ld" = yes; then
1840 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1841 echo "configure:1842: checking for GNU ld" >&5
1843 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1844 echo "configure:1845: checking for non-GNU ld" >&5
1846 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1847 echo $ac_n "(cached) $ac_c" 1>&6
1849 if test -z "$LD"; then
1850 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1851 for ac_dir in $PATH; do
1852 test -z "$ac_dir" && ac_dir=.
1853 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1854 lt_cv_path_LD="$ac_dir/$ac_prog"
1855 # Check to see if the program is GNU ld. I'd rather use --version,
1856 # but apparently some GNU ld's only accept -v.
1857 # Break only if it was the GNU/non-GNU ld that we prefer.
1858 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1859 test "$with_gnu_ld" != no && break
1861 test "$with_gnu_ld" != yes && break
1867 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1872 if test -n "$LD"; then
1873 echo "$ac_t""$LD" 1>&6
1875 echo "$ac_t""no" 1>&6
1877 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1878 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1879 echo "configure:1880: checking if the linker ($LD) is GNU ld" >&5
1880 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1881 echo $ac_n "(cached) $ac_c" 1>&6
1883 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1884 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1885 lt_cv_prog_gnu_ld=yes
1887 lt_cv_prog_gnu_ld=no
1891 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1892 with_gnu_ld=$lt_cv_prog_gnu_ld
1895 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1896 echo "configure:1897: checking for $LD option to reload object files" >&5
1897 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1898 echo $ac_n "(cached) $ac_c" 1>&6
1900 lt_cv_ld_reload_flag='-r'
1903 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1904 reload_flag=$lt_cv_ld_reload_flag
1905 test -n "$reload_flag" && reload_flag=" $reload_flag"
1907 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1908 echo "configure:1909: checking for BSD-compatible nm" >&5
1909 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1910 echo $ac_n "(cached) $ac_c" 1>&6
1912 if test -n "$NM"; then
1913 # Let the user override the test.
1916 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1917 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1918 test -z "$ac_dir" && ac_dir=.
1919 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1920 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1921 # Check to see if the nm accepts a BSD-compat flag.
1922 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1923 # nm: unknown option "B" ignored
1924 # Tru64's nm complains that /dev/null is an invalid object file
1925 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1926 lt_cv_path_NM="$tmp_nm -B"
1928 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1929 lt_cv_path_NM="$tmp_nm -p"
1932 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1933 continue # so that we can try to find one that supports BSD flags
1938 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1943 echo "$ac_t""$NM" 1>&6
1945 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1946 echo "configure:1947: checking how to recognise dependant libraries" >&5
1947 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1948 echo $ac_n "(cached) $ac_c" 1>&6
1950 lt_cv_file_magic_cmd='$MAGIC_CMD'
1951 lt_cv_file_magic_test_file=
1952 lt_cv_deplibs_check_method='unknown'
1953 # Need to set the preceding variable on all platforms that support
1954 # interlibrary dependencies.
1955 # 'none' -- dependencies not supported.
1956 # `unknown' -- same as none, but documents that we really don't know.
1957 # 'pass_all' -- all dependencies passed with no checks.
1958 # 'test_compile' -- check by making test program.
1959 # 'file_magic [regex]' -- check by looking for files in library path
1960 # which responds to the $file_magic_cmd with a given egrep regex.
1961 # If you have `file' or equivalent on your system and you're not sure
1962 # whether `pass_all' will *always* work, you probably want this one.
1966 lt_cv_deplibs_check_method=pass_all
1970 lt_cv_deplibs_check_method=pass_all
1974 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1975 lt_cv_file_magic_cmd='/usr/bin/file -L'
1976 lt_cv_file_magic_test_file=/shlib/libc.so
1979 cygwin* | mingw* |pw32*)
1980 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1981 lt_cv_file_magic_cmd='$OBJDUMP -f'
1984 darwin* | rhapsody*)
1985 # this will be overwritten by pass_all, but leave it in just in case
1986 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1987 lt_cv_file_magic_cmd='/usr/bin/file -L'
1989 rhapsody* | darwin1.012)
1990 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1993 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1996 lt_cv_deplibs_check_method=pass_all
1999 freebsd* | kfreebsd*-gnu)
2000 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2003 # Not sure whether the presence of OpenBSD here was a mistake.
2004 # Let's accept both of them until this is cleared up.
2005 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2006 lt_cv_file_magic_cmd=/usr/bin/file
2007 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2011 lt_cv_deplibs_check_method=pass_all
2016 lt_cv_deplibs_check_method=pass_all
2022 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2023 lt_cv_file_magic_cmd=/usr/bin/file
2024 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2027 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
2028 lt_cv_file_magic_cmd=/usr/bin/file
2029 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2037 # this will be overridden with pass_all, but let us keep it just in case
2038 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2042 *-32|*"-32 ") libmagic=32-bit;;
2043 *-n32|*"-n32 ") libmagic=N32;;
2044 *-64|*"-64 ") libmagic=64-bit;;
2045 *) libmagic=never-match;;
2047 # this will be overridden with pass_all, but let us keep it just in case
2048 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2051 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2052 lt_cv_deplibs_check_method=pass_all
2055 # This must be Linux ELF.
2058 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* | sh* )
2059 lt_cv_deplibs_check_method=pass_all ;;
2061 # glibc up to 2.1.1 does not perform some relocations on ARM
2062 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2064 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2067 netbsd* | knetbsd*-gnu)
2068 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2069 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2071 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2076 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2077 lt_cv_file_magic_cmd=/usr/bin/file
2078 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2081 osf3* | osf4* | osf5*)
2082 # this will be overridden with pass_all, but let us keep it just in case
2083 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2084 lt_cv_file_magic_test_file=/shlib/libc.so
2085 lt_cv_deplibs_check_method=pass_all
2089 lt_cv_deplibs_check_method=pass_all
2093 lt_cv_deplibs_check_method=pass_all
2094 lt_cv_file_magic_test_file=/lib/libc.so
2097 sysv5uw[78]* | sysv4*uw2*)
2098 lt_cv_deplibs_check_method=pass_all
2101 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2102 case $host_vendor in
2104 lt_cv_deplibs_check_method=pass_all
2107 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]'
2108 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2116 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2117 file_magic_cmd=$lt_cv_file_magic_cmd
2118 deplibs_check_method=$lt_cv_deplibs_check_method
2120 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2121 echo "configure:2122: checking for object suffix" >&5
2122 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2123 echo $ac_n "(cached) $ac_c" 1>&6
2126 echo 'int i = 1;' > conftest.$ac_ext
2127 if { (eval echo configure:2128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2128 for ac_file in conftest.*; do
2131 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2135 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2140 echo "$ac_t""$ac_cv_objext" 1>&6
2141 OBJEXT=$ac_cv_objext
2142 ac_objext=$ac_cv_objext
2144 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2146 # Only perform the check for file, if the check method requires it
2147 case $deplibs_check_method in
2149 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2150 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2151 echo "configure:2152: checking for ${ac_tool_prefix}file" >&5
2152 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2153 echo $ac_n "(cached) $ac_c" 1>&6
2157 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2160 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2163 ac_save_MAGIC_CMD="$MAGIC_CMD"
2164 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2165 ac_dummy="/usr/bin:$PATH"
2166 for ac_dir in $ac_dummy; do
2167 test -z "$ac_dir" && ac_dir=.
2168 if test -f $ac_dir/${ac_tool_prefix}file; then
2169 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2170 if test -n "$file_magic_test_file"; then
2171 case $deplibs_check_method in
2173 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2174 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2175 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2176 egrep "$file_magic_regex" > /dev/null; then
2181 *** Warning: the command libtool uses to detect shared libraries,
2182 *** $file_magic_cmd, produces output that libtool cannot recognize.
2183 *** The result is that libtool may fail to recognize shared libraries
2184 *** as such. This will affect the creation of libtool libraries that
2185 *** depend on shared libraries, but programs linked with such libtool
2186 *** libraries will work regardless of this problem. Nevertheless, you
2187 *** may want to report the problem to your system manager and/or to
2188 *** bug-libtool@gnu.org
2198 MAGIC_CMD="$ac_save_MAGIC_CMD"
2203 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2204 if test -n "$MAGIC_CMD"; then
2205 echo "$ac_t""$MAGIC_CMD" 1>&6
2207 echo "$ac_t""no" 1>&6
2210 if test -z "$lt_cv_path_MAGIC_CMD"; then
2211 if test -n "$ac_tool_prefix"; then
2212 echo $ac_n "checking for file""... $ac_c" 1>&6
2213 echo "configure:2214: checking for file" >&5
2214 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2215 echo $ac_n "(cached) $ac_c" 1>&6
2219 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2222 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2225 ac_save_MAGIC_CMD="$MAGIC_CMD"
2226 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2227 ac_dummy="/usr/bin:$PATH"
2228 for ac_dir in $ac_dummy; do
2229 test -z "$ac_dir" && ac_dir=.
2230 if test -f $ac_dir/file; then
2231 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2232 if test -n "$file_magic_test_file"; then
2233 case $deplibs_check_method in
2235 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2236 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2237 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2238 egrep "$file_magic_regex" > /dev/null; then
2243 *** Warning: the command libtool uses to detect shared libraries,
2244 *** $file_magic_cmd, produces output that libtool cannot recognize.
2245 *** The result is that libtool may fail to recognize shared libraries
2246 *** as such. This will affect the creation of libtool libraries that
2247 *** depend on shared libraries, but programs linked with such libtool
2248 *** libraries will work regardless of this problem. Nevertheless, you
2249 *** may want to report the problem to your system manager and/or to
2250 *** bug-libtool@gnu.org
2260 MAGIC_CMD="$ac_save_MAGIC_CMD"
2265 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2266 if test -n "$MAGIC_CMD"; then
2267 echo "$ac_t""$MAGIC_CMD" 1>&6
2269 echo "$ac_t""no" 1>&6
2281 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2282 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2283 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2284 echo "configure:2285: checking for $ac_word" >&5
2285 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2286 echo $ac_n "(cached) $ac_c" 1>&6
2288 if test -n "$RANLIB"; then
2289 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2291 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2293 for ac_dir in $ac_dummy; do
2294 test -z "$ac_dir" && ac_dir=.
2295 if test -f $ac_dir/$ac_word; then
2296 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2303 RANLIB="$ac_cv_prog_RANLIB"
2304 if test -n "$RANLIB"; then
2305 echo "$ac_t""$RANLIB" 1>&6
2307 echo "$ac_t""no" 1>&6
2311 if test -z "$ac_cv_prog_RANLIB"; then
2312 if test -n "$ac_tool_prefix"; then
2313 # Extract the first word of "ranlib", so it can be a program name with args.
2314 set dummy ranlib; ac_word=$2
2315 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2316 echo "configure:2317: checking for $ac_word" >&5
2317 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2318 echo $ac_n "(cached) $ac_c" 1>&6
2320 if test -n "$RANLIB"; then
2321 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2323 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2325 for ac_dir in $ac_dummy; do
2326 test -z "$ac_dir" && ac_dir=.
2327 if test -f $ac_dir/$ac_word; then
2328 ac_cv_prog_RANLIB="ranlib"
2333 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2336 RANLIB="$ac_cv_prog_RANLIB"
2337 if test -n "$RANLIB"; then
2338 echo "$ac_t""$RANLIB" 1>&6
2340 echo "$ac_t""no" 1>&6
2348 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2349 set dummy ${ac_tool_prefix}strip; ac_word=$2
2350 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2351 echo "configure:2352: checking for $ac_word" >&5
2352 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2353 echo $ac_n "(cached) $ac_c" 1>&6
2355 if test -n "$STRIP"; then
2356 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2358 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2360 for ac_dir in $ac_dummy; do
2361 test -z "$ac_dir" && ac_dir=.
2362 if test -f $ac_dir/$ac_word; then
2363 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2370 STRIP="$ac_cv_prog_STRIP"
2371 if test -n "$STRIP"; then
2372 echo "$ac_t""$STRIP" 1>&6
2374 echo "$ac_t""no" 1>&6
2378 if test -z "$ac_cv_prog_STRIP"; then
2379 if test -n "$ac_tool_prefix"; then
2380 # Extract the first word of "strip", so it can be a program name with args.
2381 set dummy strip; ac_word=$2
2382 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2383 echo "configure:2384: checking for $ac_word" >&5
2384 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2385 echo $ac_n "(cached) $ac_c" 1>&6
2387 if test -n "$STRIP"; then
2388 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2390 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2392 for ac_dir in $ac_dummy; do
2393 test -z "$ac_dir" && ac_dir=.
2394 if test -f $ac_dir/$ac_word; then
2395 ac_cv_prog_STRIP="strip"
2400 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2403 STRIP="$ac_cv_prog_STRIP"
2404 if test -n "$STRIP"; then
2405 echo "$ac_t""$STRIP" 1>&6
2407 echo "$ac_t""no" 1>&6
2416 # Check for any special flags to pass to ltconfig.
2417 libtool_flags="--cache-file=$cache_file"
2418 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2419 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2420 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2421 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2422 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2423 libtool_flags="$libtool_flags --enable-dlopen"
2425 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2426 if test "${enable_libtool_lock+set}" = set; then
2427 enableval="$enable_libtool_lock"
2431 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2432 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2434 # Check whether --with-pic or --without-pic was given.
2435 if test "${with_pic+set}" = set; then
2442 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2443 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2445 # Some flags need to be propagated to the compiler or linker for good
2449 # Find out which ABI we are using.
2450 echo '#line 2451 "configure"' > conftest.$ac_ext
2451 if { (eval echo configure:2452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2452 if test "$lt_cv_prog_gnu_ld" = yes; then
2453 case `/usr/bin/file conftest.$ac_objext` in
2455 LD="${LD-ld} -melf32bsmip"
2458 LD="${LD-ld} -melf32bmipn32"
2461 LD="${LD-ld} -melf64bmip"
2465 case `/usr/bin/file conftest.$ac_objext` in
2482 # Find out which ABI we are using.
2483 echo 'int i;' > conftest.$ac_ext
2484 if { (eval echo configure:2485: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2485 case "`/usr/bin/file conftest.o`" in
2497 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
2498 # Find out which ABI we are using.
2499 echo 'int i;' > conftest.$ac_ext
2500 if { (eval echo configure:2501: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2501 case "`/usr/bin/file conftest.o`" in
2505 LD="${LD-ld} -m elf_i386"
2507 ppc64-*linux*|powerpc64-*linux*)
2508 LD="${LD-ld} -m elf32ppclinux"
2511 LD="${LD-ld} -m elf_s390"
2514 LD="${LD-ld} -m elf32_sparc"
2521 LD="${LD-ld} -m elf_x86_64"
2523 ppc*-*linux*|powerpc*-*linux*)
2524 LD="${LD-ld} -m elf64ppc"
2527 LD="${LD-ld} -m elf64_s390"
2530 LD="${LD-ld} -m elf64_sparc"
2540 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2541 SAVE_CFLAGS="$CFLAGS"
2542 CFLAGS="$CFLAGS -belf"
2543 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2544 echo "configure:2545: checking whether the C compiler needs -belf" >&5
2545 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2546 echo $ac_n "(cached) $ac_c" 1>&6
2550 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2551 ac_cpp='$CPP $CPPFLAGS'
2552 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2553 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2554 cross_compiling=$ac_cv_prog_cc_cross
2556 cat > conftest.$ac_ext <<EOF
2557 #line 2558 "configure"
2558 #include "confdefs.h"
2564 if { (eval echo configure:2565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2566 lt_cv_cc_needs_belf=yes
2568 echo "configure: failed program was:" >&5
2569 cat conftest.$ac_ext >&5
2571 lt_cv_cc_needs_belf=no
2575 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2576 ac_cpp='$CPP $CPPFLAGS'
2577 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2578 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2579 cross_compiling=$ac_cv_prog_cc_cross
2583 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2584 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2585 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2586 CFLAGS="$SAVE_CFLAGS"
2593 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2594 echo "configure:2595: checking how to run the C++ preprocessor" >&5
2595 if test -z "$CXXCPP"; then
2596 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2597 echo $ac_n "(cached) $ac_c" 1>&6
2600 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2601 ac_cpp='$CXXCPP $CPPFLAGS'
2602 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2603 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2604 cross_compiling=$ac_cv_prog_cxx_cross
2605 CXXCPP="${CXX-g++} -E"
2606 cat > conftest.$ac_ext <<EOF
2607 #line 2608 "configure"
2608 #include "confdefs.h"
2611 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2612 { (eval echo configure:2613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2613 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2614 if test -z "$ac_err"; then
2618 echo "configure: failed program was:" >&5
2619 cat conftest.$ac_ext >&5
2624 ac_cv_prog_CXXCPP="$CXXCPP"
2626 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2627 ac_cpp='$CPP $CPPFLAGS'
2628 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2629 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2630 cross_compiling=$ac_cv_prog_cc_cross
2633 CXXCPP="$ac_cv_prog_CXXCPP"
2634 echo "$ac_t""$CXXCPP" 1>&6
2637 # Save cache, so that ltconfig can load it
2638 cat > confcache <<\EOF
2639 # This file is a shell script that caches the results of configure
2640 # tests run on this system so they can be shared between configure
2641 # scripts and configure runs. It is not useful on other systems.
2642 # If it contains results you don't want to keep, you may remove or edit it.
2644 # By default, configure uses ./config.cache as the cache file,
2645 # creating it if it does not exist already. You can give configure
2646 # the --cache-file=FILE option to use a different cache file; that is
2647 # what configure does when it calls configure scripts in
2648 # subdirectories, so they share the cache.
2649 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2650 # config.status only pays attention to the cache file if you give it the
2651 # --recheck option to rerun configure.
2654 # The following way of writing the cache mishandles newlines in values,
2655 # but we know of no workaround that is simple, portable, and efficient.
2656 # So, don't put newlines in cache variables' values.
2657 # Ultrix sh set writes to stderr and can't be redirected directly,
2658 # and sets the high bit in the cache file unless we assign to the vars.
2660 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2662 # `set' does not quote correctly, so add quotes (double-quote substitution
2663 # turns \\\\ into \\, and sed turns \\ into \).
2665 -e "s/'/'\\\\''/g" \
2666 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2669 # `set' quotes correctly as required by POSIX, so do not add quotes.
2670 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2673 if cmp -s $cache_file confcache; then
2676 if test -w $cache_file; then
2677 echo "updating cache $cache_file"
2678 cat confcache > $cache_file
2680 echo "not updating unwritable cache $cache_file"
2686 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2687 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2688 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2689 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2690 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2691 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2692 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2693 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2694 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2695 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2697 # Reload cache, that may have been modified by ltconfig
2698 if test -r "$cache_file"; then
2699 echo "loading cache $cache_file"
2702 echo "creating cache $cache_file"
2707 # This can be used to rebuild libtool when needed
2708 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2710 # Always use our own libtool.
2711 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2713 # Redirect the config.log output again, so that the ltconfig log is not
2714 # clobbered by the next message.
2715 exec 5>>./config.log
2719 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2721 lt_save_CFLAGS="$CFLAGS"
2722 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2723 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2724 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2725 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2726 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2727 deplibs_check_method="$deplibs_check_method" \
2728 file_magic_cmd="$file_magic_cmd" \
2729 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2730 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2731 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2733 CFLAGS="$lt_save_CFLAGS"
2735 # Redirect the config.log output again, so that the ltconfig log is not
2736 # clobbered by the next message.
2737 exec 5>>./config.log
2747 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
2756 if test -d $srcdir/testsuite; then
2758 TESTSUBDIR_FALSE='#'
2764 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
2765 if test "${enable_getenv_properties+set}" = set; then
2766 enableval="$enable_getenv_properties"
2771 if test -z "$enable_getenv_properties"; then
2772 enable_getenv_properties=${enable_getenv_properties_default-yes}
2774 if test "$enable_getenv_properties" = no; then
2775 cat >> confdefs.h <<\EOF
2776 #define DISABLE_GETENV_PROPERTIES 1
2781 if test -z "$enable_main_args"; then
2782 enable_main_args=${enable_main_args_default-yes}
2784 if test "$enable_main_args" = no; then
2785 cat >> confdefs.h <<\EOF
2786 #define DISABLE_MAIN_ARGS 1
2792 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
2793 if test "${enable_hash_synchronization+set}" = set; then
2794 enableval="$enable_hash_synchronization"
2799 if test -z "$enable_hash_synchronization"; then
2800 enable_hash_synchronization=$enable_hash_synchronization_default
2803 # Do we allow intermodule optimizations (i.e. compiling many files at once)?
2804 # Check whether --enable-libgcj-multifile or --disable-libgcj-multifile was given.
2805 if test "${enable_libgcj_multifile+set}" = set; then
2806 enableval="$enable_libgcj_multifile"
2807 case "${enableval}" in
2808 yes) enable_libgcj_multifile=yes ;;
2809 no) enable_libgcj_multifile=no ;;
2810 *) { echo "configure: error: bad value ${enableval} for --enable-libgcj-multifile" 1>&2; exit 1; } ;;
2813 enable_libgcj_multifile=no
2818 if test "$enable_libgcj_multifile" = yes; then
2826 # What is the native OS API for MinGW?
2827 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
2828 if test "${with_win32_nlsapi+set}" = set; then
2829 withval="$with_win32_nlsapi"
2831 case "${withval}" in
2832 ansi) with_win32_nlsapi=ansi ;;
2833 unicows) with_win32_nlsapi=unicows ;;
2834 unicode) with_win32_nlsapi=unicode ;;
2835 *) { echo "configure: error: Bad value ${withval} for --with-win32-nlsapi." 1>&2; exit 1; } ;;
2838 with_win32_nlsapi=ansi
2842 case "${with_win32_nlsapi}" in
2844 cat >> confdefs.h <<\EOF
2845 #define MINGW_LIBGCJ_UNICODE 1
2851 if test "${slow_pthread_self}" = "yes"; then
2852 cat >> confdefs.h <<\EOF
2853 #define SLOW_PTHREAD_SELF 1
2861 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2862 if test "${enable_libgcj_debug+set}" = set; then
2863 enableval="$enable_libgcj_debug"
2864 if test "$enable_libgcj_debug" = yes; then
2865 cat >> confdefs.h <<\EOF
2874 # Check whether --enable-interpreter or --disable-interpreter was given.
2875 if test "${enable_interpreter+set}" = set; then
2876 enableval="$enable_interpreter"
2877 if test "$enable_interpreter" = yes; then
2878 # This can also be set in configure.host.
2879 libgcj_interpreter=yes
2880 elif test "$enable_interpreter" = no; then
2881 libgcj_interpreter=no
2886 if test "$libgcj_interpreter" = yes; then
2887 cat >> confdefs.h <<\EOF
2888 #define INTERPRETER 1
2892 INTERPRETER="$libgcj_interpreter"
2895 echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
2896 echo "configure:2897: checking for exception model to use" >&5
2899 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2900 ac_cpp='$CXXCPP $CPPFLAGS'
2901 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2902 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2903 cross_compiling=$ac_cv_prog_cxx_cross
2905 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
2906 if test "${enable_sjlj_exceptions+set}" = set; then
2907 enableval="$enable_sjlj_exceptions"
2910 cat > conftest.$ac_ext << EOF
2911 #line 2912 "configure"
2920 old_CXXFLAGS="$CXXFLAGS"
2922 if { (eval echo configure:2923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2923 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
2924 enable_sjlj_exceptions=yes
2925 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
2926 enable_sjlj_exceptions=no
2929 CXXFLAGS="$old_CXXFLAGS"
2933 if test x$enable_sjlj_exceptions = xyes; then
2934 cat >> confdefs.h <<\EOF
2935 #define SJLJ_EXCEPTIONS 1
2938 ac_exception_model_name=sjlj
2939 elif test x$enable_sjlj_exceptions = xno; then
2940 ac_exception_model_name="call frame"
2942 { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
2945 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2946 ac_cpp='$CPP $CPPFLAGS'
2947 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2948 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2949 cross_compiling=$ac_cv_prog_cc_cross
2951 echo "$ac_t""$ac_exception_model_name" 1>&6
2953 # If we are non using SJLJ exceptions, and this host does not have support
2954 # for unwinding from a signal handler, enable checked dereferences and divides.
2955 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
2956 CHECKREFSPEC=-fcheck-references
2957 DIVIDESPEC=-fuse-divide-subroutine
2961 # Check whether --enable-java-net or --disable-java-net was given.
2962 if test "${enable_java_net+set}" = set; then
2963 enableval="$enable_java_net"
2968 if test -z "$enable_java_net"; then
2969 enable_java_net=${enable_java_net_default-yes}
2971 if test "$enable_java_net" = no; then
2972 cat >> confdefs.h <<\EOF
2973 #define DISABLE_JAVA_NET 1
2978 # Check whether --with-libffi or --without-libffi was given.
2979 if test "${with_libffi+set}" = set; then
2980 withval="$with_libffi"
2983 with_libffi=${with_libffi_default-yes}
2989 if test "$with_libffi" != no; then
2990 cat >> confdefs.h <<\EOF
2991 #define USE_LIBFFI 1
2994 LIBFFI=../libffi/libffi_convenience.la
2995 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
3000 # Check whether --enable-jvmpi or --disable-jvmpi was given.
3001 if test "${enable_jvmpi+set}" = set; then
3002 enableval="$enable_jvmpi"
3007 if test "$enable_jvmpi" != no; then
3008 cat >> confdefs.h <<\EOF
3009 #define ENABLE_JVMPI 1
3014 TARGET_ECOS=${PROCESS-"no"}
3015 # Check whether --with-ecos or --without-ecos was given.
3016 if test "${with_ecos+set}" = set; then
3017 withval="$with_ecos"
3018 TARGET_ECOS="$with_ecos"
3027 case "$TARGET_ECOS" in
3032 PLATFORMOBJS=win32.lo
3035 echo $ac_n "checking whether 'ld' is at least 2.13""... $ac_c" 1>&6
3036 echo "configure:3037: checking whether 'ld' is at least 2.13" >&5
3037 LD_PROG=`$CC --print-prog-name=ld`
3038 LD_VERSION=`$LD_PROG --version`
3039 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
3040 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
3041 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
3044 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
3048 if test "x$LD_OK" != x; then
3049 echo "$ac_t""yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" 1>&6
3051 echo "$ac_t""no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" 1>&6
3052 echo "configure: warning: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." 1>&2
3053 cat >> confdefs.h <<\EOF
3054 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
3062 PLATFORMOBJS=posix.lo
3070 cat >> confdefs.h <<\EOF
3074 PLATFORMOBJS=posix.lo
3081 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3082 echo "configure:3083: checking how to run the C preprocessor" >&5
3083 # On Suns, sometimes $CPP names a directory.
3084 if test -n "$CPP" && test -d "$CPP"; then
3087 if test -z "$CPP"; then
3088 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
3089 echo $ac_n "(cached) $ac_c" 1>&6
3091 # This must be in double quotes, not single quotes, because CPP may get
3092 # substituted into the Makefile and "${CC-cc}" will confuse make.
3094 # On the NeXT, cc -E runs the code through the compiler's parser,
3095 # not just through cpp.
3096 cat > conftest.$ac_ext <<EOF
3097 #line 3098 "configure"
3098 #include "confdefs.h"
3102 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3103 { (eval echo configure:3104: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3104 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3105 if test -z "$ac_err"; then
3109 echo "configure: failed program was:" >&5
3110 cat conftest.$ac_ext >&5
3112 CPP="${CC-cc} -E -traditional-cpp"
3113 cat > conftest.$ac_ext <<EOF
3114 #line 3115 "configure"
3115 #include "confdefs.h"
3119 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3120 { (eval echo configure:3121: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3121 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3122 if test -z "$ac_err"; then
3126 echo "configure: failed program was:" >&5
3127 cat conftest.$ac_ext >&5
3129 CPP="${CC-cc} -nologo -E"
3130 cat > conftest.$ac_ext <<EOF
3131 #line 3132 "configure"
3132 #include "confdefs.h"
3136 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3137 { (eval echo configure:3138: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3138 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3139 if test -z "$ac_err"; then
3143 echo "configure: failed program was:" >&5
3144 cat conftest.$ac_ext >&5
3153 ac_cv_prog_CPP="$CPP"
3155 CPP="$ac_cv_prog_CPP"
3157 ac_cv_prog_CPP="$CPP"
3159 echo "$ac_t""$CPP" 1>&6
3161 cat > conftest.$ac_ext <<EOF
3162 #line 3163 "configure"
3163 #include "confdefs.h"
3166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3167 egrep "uint32_t" >/dev/null 2>&1; then
3169 cat >> confdefs.h <<\EOF
3170 #define HAVE_INT32_DEFINED 1
3176 cat > conftest.$ac_ext <<EOF
3177 #line 3178 "configure"
3178 #include "confdefs.h"
3179 #include <inttypes.h>
3181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3182 egrep "uint32_t" >/dev/null 2>&1; then
3184 cat >> confdefs.h <<\EOF
3185 #define HAVE_INT32_DEFINED 1
3191 cat > conftest.$ac_ext <<EOF
3192 #line 3193 "configure"
3193 #include "confdefs.h"
3194 #include <sys/types.h>
3196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3197 egrep "u_int32_t" >/dev/null 2>&1; then
3199 cat >> confdefs.h <<\EOF
3200 #define HAVE_BSD_INT32_DEFINED 1
3206 cat > conftest.$ac_ext <<EOF
3207 #line 3208 "configure"
3208 #include "confdefs.h"
3209 #include <sys/config.h>
3211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3212 egrep "u_int32_t" >/dev/null 2>&1; then
3214 cat >> confdefs.h <<\EOF
3215 #define HAVE_BSD_INT32_DEFINED 1
3223 cat > conftest.$ac_ext <<EOF
3224 #line 3225 "configure"
3225 #include "confdefs.h"
3228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3229 egrep "mktime" >/dev/null 2>&1; then
3231 cat >> confdefs.h <<\EOF
3232 #define HAVE_MKTIME 1
3238 cat > conftest.$ac_ext <<EOF
3239 #line 3240 "configure"
3240 #include "confdefs.h"
3243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3244 egrep "localtime" >/dev/null 2>&1; then
3246 cat >> confdefs.h <<\EOF
3247 #define HAVE_LOCALTIME 1
3254 test -d java || mkdir java
3255 test -d java/io || mkdir java/io
3256 test -d gnu || mkdir gnu
3259 test -d java/lang || mkdir java/lang
3263 test -d java/net || mkdir java/net
3267 test -d gnu/java || mkdir gnu/java
3268 test -d gnu/java/net || mkdir gnu/java/net
3272 test -d gnu/java/nio || mkdir gnu/java/nio
3275 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
3280 SYSTEMSPEC="-lgdi32 -lwsock32 -lws2_32"
3281 if test "${with_win32_nlsapi}" = "unicows"; then
3282 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
3291 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
3294 # Check whether --with-system-zlib or --without-system-zlib was given.
3295 if test "${with_system_zlib+set}" = set; then
3296 withval="$with_system_zlib"
3305 # If we find X, set shell vars x_includes and x_libraries to the
3306 # paths, otherwise set no_x=yes.
3307 # Uses ac_ vars as temps to allow command line to override cache and checks.
3308 # --without-x overrides everything else, but does not touch the cache.
3309 echo $ac_n "checking for X""... $ac_c" 1>&6
3310 echo "configure:3311: checking for X" >&5
3312 # Check whether --with-x or --without-x was given.
3313 if test "${with_x+set}" = set; then
3318 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3319 if test "x$with_x" = xno; then
3320 # The user explicitly disabled X.
3323 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3324 # Both variables are already set.
3327 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
3328 echo $ac_n "(cached) $ac_c" 1>&6
3330 # One or both of the vars are not set, and there is no cached value.
3331 ac_x_includes=NO ac_x_libraries=NO
3333 if mkdir conftestdir; then
3335 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3336 cat > Imakefile <<'EOF'
3338 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3340 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3341 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3342 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3343 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3344 for ac_extension in a so sl; do
3345 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3346 test -f $ac_im_libdir/libX11.$ac_extension; then
3347 ac_im_usrlibdir=$ac_im_libdir; break
3350 # Screen out bogus values from the imake configuration. They are
3351 # bogus both because they are the default anyway, and because
3352 # using them would break gcc on systems where it needs fixed includes.
3353 case "$ac_im_incroot" in
3355 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
3357 case "$ac_im_usrlibdir" in
3359 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
3366 if test "$ac_x_includes" = NO; then
3367 # Guess where to find include files, by looking for this one X11 .h file.
3368 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
3370 # First, try using that file with no special directory specified.
3371 cat > conftest.$ac_ext <<EOF
3372 #line 3373 "configure"
3373 #include "confdefs.h"
3374 #include <$x_direct_test_include>
3376 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3377 { (eval echo configure:3378: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3378 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3379 if test -z "$ac_err"; then
3381 # We can compile using X headers with no special include directory.
3385 echo "configure: failed program was:" >&5
3386 cat conftest.$ac_ext >&5
3388 # Look for the header file in a standard set of common directories.
3389 # Check X11 before X11Rn because it is often a symlink to the current release.
3392 /usr/X11R6/include \
3393 /usr/X11R5/include \
3394 /usr/X11R4/include \
3397 /usr/include/X11R6 \
3398 /usr/include/X11R5 \
3399 /usr/include/X11R4 \
3401 /usr/local/X11/include \
3402 /usr/local/X11R6/include \
3403 /usr/local/X11R5/include \
3404 /usr/local/X11R4/include \
3406 /usr/local/include/X11 \
3407 /usr/local/include/X11R6 \
3408 /usr/local/include/X11R5 \
3409 /usr/local/include/X11R4 \
3413 /usr/XFree86/include/X11 \
3416 /usr/local/include \
3417 /usr/unsupported/include \
3418 /usr/athena/include \
3419 /usr/local/x11r5/include \
3420 /usr/lpp/Xamples/include \
3422 /usr/openwin/include \
3423 /usr/openwin/share/include \
3426 if test -r "$ac_dir/$x_direct_test_include"; then
3427 ac_x_includes=$ac_dir
3433 fi # $ac_x_includes = NO
3435 if test "$ac_x_libraries" = NO; then
3436 # Check for the libraries.
3438 test -z "$x_direct_test_library" && x_direct_test_library=Xt
3439 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
3441 # See if we find them without any special options.
3442 # Don't add to $LIBS permanently.
3443 ac_save_LIBS="$LIBS"
3444 LIBS="-l$x_direct_test_library $LIBS"
3445 cat > conftest.$ac_ext <<EOF
3446 #line 3447 "configure"
3447 #include "confdefs.h"
3450 ${x_direct_test_function}()
3453 if { (eval echo configure:3454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3455 LIBS="$ac_save_LIBS"
3456 # We can link X programs with no special library path.
3459 echo "configure: failed program was:" >&5
3460 cat conftest.$ac_ext >&5
3462 LIBS="$ac_save_LIBS"
3463 # First see if replacing the include by lib works.
3464 # Check X11 before X11Rn because it is often a symlink to the current release.
3465 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
3476 /usr/local/X11/lib \
3477 /usr/local/X11R6/lib \
3478 /usr/local/X11R5/lib \
3479 /usr/local/X11R4/lib \
3481 /usr/local/lib/X11 \
3482 /usr/local/lib/X11R6 \
3483 /usr/local/lib/X11R5 \
3484 /usr/local/lib/X11R4 \
3488 /usr/XFree86/lib/X11 \
3492 /usr/unsupported/lib \
3494 /usr/local/x11r5/lib \
3495 /usr/lpp/Xamples/lib \
3499 /usr/openwin/share/lib \
3502 for ac_extension in a so sl; do
3503 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
3504 ac_x_libraries=$ac_dir
3511 fi # $ac_x_libraries = NO
3513 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
3514 # Didn't find X anywhere. Cache the known absence of X.
3515 ac_cv_have_x="have_x=no"
3517 # Record where we found X for the cache.
3518 ac_cv_have_x="have_x=yes \
3519 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3523 eval "$ac_cv_have_x"
3526 if test "$have_x" != yes; then
3527 echo "$ac_t""$have_x" 1>&6
3530 # If each of the values was on the command line, it overrides each guess.
3531 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3532 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3533 # Update the cache value to reflect the command line values.
3534 ac_cv_have_x="have_x=yes \
3535 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3536 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
3539 if test "$no_x" = yes; then
3540 # Not all programs may use this symbol, but it does not hurt to define it.
3541 cat >> confdefs.h <<\EOF
3542 #define X_DISPLAY_MISSING 1
3545 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3547 if test -n "$x_includes"; then
3548 X_CFLAGS="$X_CFLAGS -I$x_includes"
3551 # It would also be nice to do this for all -L options, not just this one.
3552 if test -n "$x_libraries"; then
3553 X_LIBS="$X_LIBS -L$x_libraries"
3554 # For Solaris; some versions of Sun CC require a space after -R and
3555 # others require no space. Words are not sufficient . . . .
3556 case "`(uname -sr) 2>/dev/null`" in
3558 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
3559 echo "configure:3560: checking whether -R must be followed by a space" >&5
3560 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
3561 cat > conftest.$ac_ext <<EOF
3562 #line 3563 "configure"
3563 #include "confdefs.h"
3569 if { (eval echo configure:3570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3573 echo "configure: failed program was:" >&5
3574 cat conftest.$ac_ext >&5
3579 if test $ac_R_nospace = yes; then
3580 echo "$ac_t""no" 1>&6
3581 X_LIBS="$X_LIBS -R$x_libraries"
3583 LIBS="$ac_xsave_LIBS -R $x_libraries"
3584 cat > conftest.$ac_ext <<EOF
3585 #line 3586 "configure"
3586 #include "confdefs.h"
3592 if { (eval echo configure:3593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3596 echo "configure: failed program was:" >&5
3597 cat conftest.$ac_ext >&5
3602 if test $ac_R_space = yes; then
3603 echo "$ac_t""yes" 1>&6
3604 X_LIBS="$X_LIBS -R $x_libraries"
3606 echo "$ac_t""neither works" 1>&6
3609 LIBS="$ac_xsave_LIBS"
3613 # Check for system-dependent libraries X programs must link with.
3614 # Do this before checking for the system-independent R6 libraries
3615 # (-lICE), since we may need -lsocket or whatever for X linking.
3617 if test "$ISC" = yes; then
3618 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3620 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
3621 # libraries were built with DECnet support. And karl@cs.umb.edu says
3622 # the Alpha needs dnet_stub (dnet does not exist).
3623 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3624 echo "configure:3625: checking for dnet_ntoa in -ldnet" >&5
3625 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3626 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3627 echo $ac_n "(cached) $ac_c" 1>&6
3629 ac_save_LIBS="$LIBS"
3631 cat > conftest.$ac_ext <<EOF
3632 #line 3633 "configure"
3633 #include "confdefs.h"
3634 /* Override any gcc2 internal prototype to avoid an error. */
3635 /* We use char because int might match the return type of a gcc2
3636 builtin and then its argument prototype would still apply. */
3643 if { (eval echo configure:3644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3645 eval "ac_cv_lib_$ac_lib_var=yes"
3647 echo "configure: failed program was:" >&5
3648 cat conftest.$ac_ext >&5
3650 eval "ac_cv_lib_$ac_lib_var=no"
3653 LIBS="$ac_save_LIBS"
3656 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3657 echo "$ac_t""yes" 1>&6
3658 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3660 echo "$ac_t""no" 1>&6
3663 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3664 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
3665 echo "configure:3666: checking for dnet_ntoa in -ldnet_stub" >&5
3666 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3667 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3668 echo $ac_n "(cached) $ac_c" 1>&6
3670 ac_save_LIBS="$LIBS"
3671 LIBS="-ldnet_stub $LIBS"
3672 cat > conftest.$ac_ext <<EOF
3673 #line 3674 "configure"
3674 #include "confdefs.h"
3675 /* Override any gcc2 internal prototype to avoid an error. */
3676 /* We use char because int might match the return type of a gcc2
3677 builtin and then its argument prototype would still apply. */
3684 if { (eval echo configure:3685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3686 eval "ac_cv_lib_$ac_lib_var=yes"
3688 echo "configure: failed program was:" >&5
3689 cat conftest.$ac_ext >&5
3691 eval "ac_cv_lib_$ac_lib_var=no"
3694 LIBS="$ac_save_LIBS"
3697 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3698 echo "$ac_t""yes" 1>&6
3699 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3701 echo "$ac_t""no" 1>&6
3706 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3707 # to get the SysV transport functions.
3708 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
3710 # The nsl library prevents programs from opening the X display
3711 # on Irix 5.2, according to dickey@clark.net.
3712 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3713 echo "configure:3714: checking for gethostbyname" >&5
3714 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3715 echo $ac_n "(cached) $ac_c" 1>&6
3717 cat > conftest.$ac_ext <<EOF
3718 #line 3719 "configure"
3719 #include "confdefs.h"
3720 /* System header to define __stub macros and hopefully few prototypes,
3721 which can conflict with char gethostbyname(); below. */
3723 /* Override any gcc2 internal prototype to avoid an error. */
3724 /* We use char because int might match the return type of a gcc2
3725 builtin and then its argument prototype would still apply. */
3726 char gethostbyname();
3730 /* The GNU C library defines this for functions which it implements
3731 to always fail with ENOSYS. Some functions are actually named
3732 something starting with __ and the normal name is an alias. */
3733 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3741 if { (eval echo configure:3742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3743 eval "ac_cv_func_gethostbyname=yes"
3745 echo "configure: failed program was:" >&5
3746 cat conftest.$ac_ext >&5
3748 eval "ac_cv_func_gethostbyname=no"
3753 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3754 echo "$ac_t""yes" 1>&6
3757 echo "$ac_t""no" 1>&6
3760 if test $ac_cv_func_gethostbyname = no; then
3761 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3762 echo "configure:3763: checking for gethostbyname in -lnsl" >&5
3763 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3764 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3765 echo $ac_n "(cached) $ac_c" 1>&6
3767 ac_save_LIBS="$LIBS"
3769 cat > conftest.$ac_ext <<EOF
3770 #line 3771 "configure"
3771 #include "confdefs.h"
3772 /* Override any gcc2 internal prototype to avoid an error. */
3773 /* We use char because int might match the return type of a gcc2
3774 builtin and then its argument prototype would still apply. */
3775 char gethostbyname();
3781 if { (eval echo configure:3782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3783 eval "ac_cv_lib_$ac_lib_var=yes"
3785 echo "configure: failed program was:" >&5
3786 cat conftest.$ac_ext >&5
3788 eval "ac_cv_lib_$ac_lib_var=no"
3791 LIBS="$ac_save_LIBS"
3794 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3795 echo "$ac_t""yes" 1>&6
3796 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3798 echo "$ac_t""no" 1>&6
3803 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3804 # socket/setsockopt and other routines are undefined under SCO ODT
3805 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3806 # on later versions), says simon@lia.di.epfl.ch: it contains
3807 # gethostby* variants that don't use the nameserver (or something).
3808 # -lsocket must be given before -lnsl if both are needed.
3809 # We assume that if connect needs -lnsl, so does gethostbyname.
3810 echo $ac_n "checking for connect""... $ac_c" 1>&6
3811 echo "configure:3812: checking for connect" >&5
3812 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3813 echo $ac_n "(cached) $ac_c" 1>&6
3815 cat > conftest.$ac_ext <<EOF
3816 #line 3817 "configure"
3817 #include "confdefs.h"
3818 /* System header to define __stub macros and hopefully few prototypes,
3819 which can conflict with char connect(); below. */
3821 /* Override any gcc2 internal prototype to avoid an error. */
3822 /* We use char because int might match the return type of a gcc2
3823 builtin and then its argument prototype would still apply. */
3828 /* The GNU C library defines this for functions which it implements
3829 to always fail with ENOSYS. Some functions are actually named
3830 something starting with __ and the normal name is an alias. */
3831 #if defined (__stub_connect) || defined (__stub___connect)
3839 if { (eval echo configure:3840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3841 eval "ac_cv_func_connect=yes"
3843 echo "configure: failed program was:" >&5
3844 cat conftest.$ac_ext >&5
3846 eval "ac_cv_func_connect=no"
3851 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3852 echo "$ac_t""yes" 1>&6
3855 echo "$ac_t""no" 1>&6
3858 if test $ac_cv_func_connect = no; then
3859 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3860 echo "configure:3861: checking for connect in -lsocket" >&5
3861 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3862 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3863 echo $ac_n "(cached) $ac_c" 1>&6
3865 ac_save_LIBS="$LIBS"
3866 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3867 cat > conftest.$ac_ext <<EOF
3868 #line 3869 "configure"
3869 #include "confdefs.h"
3870 /* Override any gcc2 internal prototype to avoid an error. */
3871 /* We use char because int might match the return type of a gcc2
3872 builtin and then its argument prototype would still apply. */
3879 if { (eval echo configure:3880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3881 eval "ac_cv_lib_$ac_lib_var=yes"
3883 echo "configure: failed program was:" >&5
3884 cat conftest.$ac_ext >&5
3886 eval "ac_cv_lib_$ac_lib_var=no"
3889 LIBS="$ac_save_LIBS"
3892 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3893 echo "$ac_t""yes" 1>&6
3894 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3896 echo "$ac_t""no" 1>&6
3901 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
3902 echo $ac_n "checking for remove""... $ac_c" 1>&6
3903 echo "configure:3904: checking for remove" >&5
3904 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
3905 echo $ac_n "(cached) $ac_c" 1>&6
3907 cat > conftest.$ac_ext <<EOF
3908 #line 3909 "configure"
3909 #include "confdefs.h"
3910 /* System header to define __stub macros and hopefully few prototypes,
3911 which can conflict with char remove(); below. */
3913 /* Override any gcc2 internal prototype to avoid an error. */
3914 /* We use char because int might match the return type of a gcc2
3915 builtin and then its argument prototype would still apply. */
3920 /* The GNU C library defines this for functions which it implements
3921 to always fail with ENOSYS. Some functions are actually named
3922 something starting with __ and the normal name is an alias. */
3923 #if defined (__stub_remove) || defined (__stub___remove)
3931 if { (eval echo configure:3932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3933 eval "ac_cv_func_remove=yes"
3935 echo "configure: failed program was:" >&5
3936 cat conftest.$ac_ext >&5
3938 eval "ac_cv_func_remove=no"
3943 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
3944 echo "$ac_t""yes" 1>&6
3947 echo "$ac_t""no" 1>&6
3950 if test $ac_cv_func_remove = no; then
3951 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
3952 echo "configure:3953: checking for remove in -lposix" >&5
3953 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
3954 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3955 echo $ac_n "(cached) $ac_c" 1>&6
3957 ac_save_LIBS="$LIBS"
3958 LIBS="-lposix $LIBS"
3959 cat > conftest.$ac_ext <<EOF
3960 #line 3961 "configure"
3961 #include "confdefs.h"
3962 /* Override any gcc2 internal prototype to avoid an error. */
3963 /* We use char because int might match the return type of a gcc2
3964 builtin and then its argument prototype would still apply. */
3971 if { (eval echo configure:3972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3973 eval "ac_cv_lib_$ac_lib_var=yes"
3975 echo "configure: failed program was:" >&5
3976 cat conftest.$ac_ext >&5
3978 eval "ac_cv_lib_$ac_lib_var=no"
3981 LIBS="$ac_save_LIBS"
3984 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3985 echo "$ac_t""yes" 1>&6
3986 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3988 echo "$ac_t""no" 1>&6
3993 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3994 echo $ac_n "checking for shmat""... $ac_c" 1>&6
3995 echo "configure:3996: checking for shmat" >&5
3996 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
3997 echo $ac_n "(cached) $ac_c" 1>&6
3999 cat > conftest.$ac_ext <<EOF
4000 #line 4001 "configure"
4001 #include "confdefs.h"
4002 /* System header to define __stub macros and hopefully few prototypes,
4003 which can conflict with char shmat(); below. */
4005 /* Override any gcc2 internal prototype to avoid an error. */
4006 /* We use char because int might match the return type of a gcc2
4007 builtin and then its argument prototype would still apply. */
4012 /* The GNU C library defines this for functions which it implements
4013 to always fail with ENOSYS. Some functions are actually named
4014 something starting with __ and the normal name is an alias. */
4015 #if defined (__stub_shmat) || defined (__stub___shmat)
4023 if { (eval echo configure:4024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4025 eval "ac_cv_func_shmat=yes"
4027 echo "configure: failed program was:" >&5
4028 cat conftest.$ac_ext >&5
4030 eval "ac_cv_func_shmat=no"
4035 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
4036 echo "$ac_t""yes" 1>&6
4039 echo "$ac_t""no" 1>&6
4042 if test $ac_cv_func_shmat = no; then
4043 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
4044 echo "configure:4045: checking for shmat in -lipc" >&5
4045 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
4046 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4047 echo $ac_n "(cached) $ac_c" 1>&6
4049 ac_save_LIBS="$LIBS"
4051 cat > conftest.$ac_ext <<EOF
4052 #line 4053 "configure"
4053 #include "confdefs.h"
4054 /* Override any gcc2 internal prototype to avoid an error. */
4055 /* We use char because int might match the return type of a gcc2
4056 builtin and then its argument prototype would still apply. */
4063 if { (eval echo configure:4064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4065 eval "ac_cv_lib_$ac_lib_var=yes"
4067 echo "configure: failed program was:" >&5
4068 cat conftest.$ac_ext >&5
4070 eval "ac_cv_lib_$ac_lib_var=no"
4073 LIBS="$ac_save_LIBS"
4076 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4077 echo "$ac_t""yes" 1>&6
4078 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4080 echo "$ac_t""no" 1>&6
4086 # Check for libraries that X11R6 Xt/Xaw programs need.
4087 ac_save_LDFLAGS="$LDFLAGS"
4088 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4089 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4090 # check for ICE first), but we must link in the order -lSM -lICE or
4091 # we get undefined symbols. So assume we have SM if we have ICE.
4092 # These have to be linked with before -lX11, unlike the other
4093 # libraries we check for below, so use a different variable.
4094 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
4095 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
4096 echo "configure:4097: checking for IceConnectionNumber in -lICE" >&5
4097 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
4098 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4099 echo $ac_n "(cached) $ac_c" 1>&6
4101 ac_save_LIBS="$LIBS"
4102 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4103 cat > conftest.$ac_ext <<EOF
4104 #line 4105 "configure"
4105 #include "confdefs.h"
4106 /* Override any gcc2 internal prototype to avoid an error. */
4107 /* We use char because int might match the return type of a gcc2
4108 builtin and then its argument prototype would still apply. */
4109 char IceConnectionNumber();
4112 IceConnectionNumber()
4115 if { (eval echo configure:4116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4117 eval "ac_cv_lib_$ac_lib_var=yes"
4119 echo "configure: failed program was:" >&5
4120 cat conftest.$ac_ext >&5
4122 eval "ac_cv_lib_$ac_lib_var=no"
4125 LIBS="$ac_save_LIBS"
4128 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4129 echo "$ac_t""yes" 1>&6
4130 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4132 echo "$ac_t""no" 1>&6
4135 LDFLAGS="$ac_save_LDFLAGS"
4140 # Check whether --enable-java-awt or --disable-java-awt was given.
4141 if test "${enable_java_awt+set}" = set; then
4142 enableval="$enable_java_awt"
4147 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
4150 # The default toolkit to use is the first one specified.
4154 for peer in $peerlibs ; do
4157 if test "$no_x" = yes; then
4158 echo "*** xlib peers requested but no X library available" 1>&2
4162 if test -z "$TOOLKIT"; then
4163 TOOLKIT=gnu.awt.xlib.XToolkit
4168 if test "$no_x" = yes; then
4169 echo "*** xlib peers requested but no X library available" 1>&2
4173 if test -z "$TOOLKIT"; then
4174 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
4176 test -d jniinclude || mkdir jniinclude
4185 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
4192 if test "$use_xlib_awt" = yes; then
4201 if test "$use_gtk_awt" = yes; then
4209 # Check whether --enable-gtk-cairo or --disable-gtk-cairo was given.
4210 if test "${enable_gtk_cairo+set}" = set; then
4211 enableval="$enable_gtk_cairo"
4217 if test "x${enable_gtk_cairo}" = xyes; then
4224 if test "x${enable_gtk_cairo}" = xyes
4229 if test -z "$PKG_CONFIG"; then
4230 # Extract the first word of "pkg-config", so it can be a program name with args.
4231 set dummy pkg-config; ac_word=$2
4232 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4233 echo "configure:4234: checking for $ac_word" >&5
4234 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
4235 echo $ac_n "(cached) $ac_c" 1>&6
4237 case "$PKG_CONFIG" in
4239 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4242 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
4245 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4247 for ac_dir in $ac_dummy; do
4248 test -z "$ac_dir" && ac_dir=.
4249 if test -f $ac_dir/$ac_word; then
4250 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
4255 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
4259 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4260 if test -n "$PKG_CONFIG"; then
4261 echo "$ac_t""$PKG_CONFIG" 1>&6
4263 echo "$ac_t""no" 1>&6
4268 if test "$PKG_CONFIG" = "no" ; then
4269 echo "*** The pkg-config script could not be found. Make sure it is"
4270 echo "*** in your path, or set the PKG_CONFIG environment variable"
4271 echo "*** to the full path to pkg-config."
4272 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
4274 PKG_CONFIG_MIN_VERSION=0.9.0
4275 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
4276 echo $ac_n "checking for cairo""... $ac_c" 1>&6
4277 echo "configure:4278: checking for cairo" >&5
4279 if $PKG_CONFIG --exists "cairo" ; then
4280 echo "$ac_t""yes" 1>&6
4283 echo $ac_n "checking CAIRO_CFLAGS""... $ac_c" 1>&6
4284 echo "configure:4285: checking CAIRO_CFLAGS" >&5
4285 CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo"`
4286 echo "$ac_t""$CAIRO_CFLAGS" 1>&6
4288 echo $ac_n "checking CAIRO_LIBS""... $ac_c" 1>&6
4289 echo "configure:4290: checking CAIRO_LIBS" >&5
4290 CAIRO_LIBS=`$PKG_CONFIG --libs "cairo"`
4291 echo "$ac_t""$CAIRO_LIBS" 1>&6
4295 ## If we have a custom action on failure, don't print errors, but
4296 ## do set a variable so people can do so.
4297 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
4298 echo $CAIRO_PKG_ERRORS
4304 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
4305 echo "*** See http://www.freedesktop.org/software/pkgconfig"
4309 if test $succeeded = yes; then
4312 { echo "configure: error: Library requirements (cairo) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." 1>&2; exit 1; }
4318 if test -z "$PKG_CONFIG"; then
4319 # Extract the first word of "pkg-config", so it can be a program name with args.
4320 set dummy pkg-config; ac_word=$2
4321 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4322 echo "configure:4323: checking for $ac_word" >&5
4323 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
4324 echo $ac_n "(cached) $ac_c" 1>&6
4326 case "$PKG_CONFIG" in
4328 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4331 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
4334 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4336 for ac_dir in $ac_dummy; do
4337 test -z "$ac_dir" && ac_dir=.
4338 if test -f $ac_dir/$ac_word; then
4339 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
4344 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
4348 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4349 if test -n "$PKG_CONFIG"; then
4350 echo "$ac_t""$PKG_CONFIG" 1>&6
4352 echo "$ac_t""no" 1>&6
4357 if test "$PKG_CONFIG" = "no" ; then
4358 echo "*** The pkg-config script could not be found. Make sure it is"
4359 echo "*** in your path, or set the PKG_CONFIG environment variable"
4360 echo "*** to the full path to pkg-config."
4361 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
4363 PKG_CONFIG_MIN_VERSION=0.9.0
4364 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
4365 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
4366 echo "configure:4367: checking for pangoft2" >&5
4368 if $PKG_CONFIG --exists "pangoft2" ; then
4369 echo "$ac_t""yes" 1>&6
4372 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
4373 echo "configure:4374: checking PANGOFT2_CFLAGS" >&5
4374 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
4375 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
4377 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
4378 echo "configure:4379: checking PANGOFT2_LIBS" >&5
4379 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
4380 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
4384 ## If we have a custom action on failure, don't print errors, but
4385 ## do set a variable so people can do so.
4386 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
4387 echo $PANGOFT2_PKG_ERRORS
4393 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
4394 echo "*** See http://www.freedesktop.org/software/pkgconfig"
4398 if test $succeeded = yes; then
4401 { echo "configure: error: Library requirements (pangoft2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." 1>&2; exit 1; }
4412 echo $ac_n "checking for garbage collector to use""... $ac_c" 1>&6
4413 echo "configure:4414: checking for garbage collector to use" >&5
4414 # Check whether --enable-java-gc or --disable-java-gc was given.
4415 if test "${enable_java_gc+set}" = set; then
4416 enableval="$enable_java_gc"
4432 echo "$ac_t""boehm" 1>&6
4433 GCLIBS=../boehm-gc/libgcjgc_convenience.la
4434 JC1GCSPEC='-fuse-boehm-gc'
4435 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
4437 GCINCS="`cat ../boehm-gc/boehm-cflags`"
4440 cat >> confdefs.h <<\EOF
4441 #define HAVE_BOEHM_GC 1
4446 echo "$ac_t""none" 1>&6
4451 { echo "configure: error: unrecognized collector \"$GC\"" 1>&2; exit 1; }
4464 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
4465 echo "configure:4466: checking for thread model used by GCC" >&5
4466 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
4467 echo "$ac_t""$THREADS" 1>&6
4477 cat >> confdefs.h <<\EOF
4478 #define LINUX_THREADS 1
4486 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
4487 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
4490 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
4506 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
4511 # Before FreeBSD 5, it didn't have -lpthread (or any library which
4512 # merely adds pthread_* functions) but it does have a -pthread switch
4513 # which is required at link-time to select -lc_r *instead* of -lc.
4514 THREADLDFLAGS=-pthread
4515 # Don't set THREADSPEC here as might be expected since -pthread is
4516 # not processed when found within a spec file, it must come from
4517 # the command line. For now, the user must provide the -pthread
4518 # switch to link code compiled with gcj. In future, consider adding
4519 # support for weak references to pthread_* functions ala gthr.h API.
4520 THREADSPEC='%{!pthread: %eUnder this configuration, the user must provide -pthread when linking.}'
4523 # FreeBSD 5 implements a model much closer to other modern UNIX
4524 # which support threads. However, it still does not support
4526 THREADLDFLAGS=-pthread
4530 THREADCXXFLAGS=-pthread
4531 # boehm-gc needs some functions from librt, so link that too.
4532 THREADLIBS='-lpthread -lrt'
4533 THREADSPEC='-lpthread -lrt'
4536 THREADLIBS=-lpthread
4537 THREADSPEC=-lpthread
4540 THREADOBJS=posix-threads.lo
4541 THREADH=posix-threads.h
4542 # MIT pthreads doesn't seem to have the mutexattr functions.
4543 # But for now we don't check for it. We just assume you aren't
4544 # using MIT pthreads.
4545 cat >> confdefs.h <<\EOF
4546 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
4550 # If we're using the Boehm GC, then we happen to know that it
4551 # defines _REENTRANT, so we don't bother. Eww.
4552 if test "$GC" != boehm; then
4553 cat >> confdefs.h <<\EOF
4554 #define _REENTRANT 1
4558 cat >> confdefs.h <<\EOF
4559 #define _POSIX_PTHREAD_SEMANTICS 1
4565 THREADOBJS=win32-threads.lo
4566 THREADH=win32-threads.h
4570 THREADOBJS=no-threads.lo
4571 THREADH=no-threads.h
4583 if test -d sysdep; then true; else mkdir sysdep; fi
4587 # Hash synchronization is only useful with posix threads right now.
4588 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
4589 HASH_SYNC_SPEC=-fhash-synchronization
4590 cat >> confdefs.h <<\EOF
4591 #define JV_HASH_SYNCHRONIZATION 1
4600 if test "$GCC" = yes; then
4608 # We're in the tree with gcc, and need to include some of its headers.
4609 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
4611 # Figure out where generated headers like libgcj-config.h get installed.
4612 gcc_version_trigger=${libgcj_basedir}/../gcc/version.c
4613 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
4614 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
4615 tool_include_dir='$(libdir)/gcc/$(target_noncanonical)/'${gcc_version}/include
4619 if test "x${with_newlib}" = "xyes"; then
4620 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
4621 # may not work correctly, because the compiler may not be able to
4624 # We assume newlib. This lets us hard-code the functions we know
4626 cat >> confdefs.h <<\EOF
4627 #define HAVE_MEMMOVE 1
4630 cat >> confdefs.h <<\EOF
4631 #define HAVE_MEMCPY 1
4634 cat >> confdefs.h <<\EOF
4635 #define HAVE_STRERROR 1
4638 cat >> confdefs.h <<\EOF
4642 cat >> confdefs.h <<\EOF
4643 #define HAVE_GMTIME_R 1
4646 cat >> confdefs.h <<\EOF
4647 #define HAVE_LOCALTIME_R 1
4650 cat >> confdefs.h <<\EOF
4651 #define HAVE_USLEEP_DECL 1
4654 cat >> confdefs.h <<\EOF
4655 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
4658 cat >> confdefs.h <<\EOF
4659 #define HAVE_ALLOCA 1
4663 cat >> confdefs.h <<\EOF
4669 for ac_func in strerror ioctl select fstat open fsync sleep opendir
4671 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4672 echo "configure:4673: checking for $ac_func" >&5
4673 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4674 echo $ac_n "(cached) $ac_c" 1>&6
4676 cat > conftest.$ac_ext <<EOF
4677 #line 4678 "configure"
4678 #include "confdefs.h"
4679 /* System header to define __stub macros and hopefully few prototypes,
4680 which can conflict with char $ac_func(); below. */
4682 /* Override any gcc2 internal prototype to avoid an error. */
4683 /* We use char because int might match the return type of a gcc2
4684 builtin and then its argument prototype would still apply. */
4689 /* The GNU C library defines this for functions which it implements
4690 to always fail with ENOSYS. Some functions are actually named
4691 something starting with __ and the normal name is an alias. */
4692 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4700 if { (eval echo configure:4701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4702 eval "ac_cv_func_$ac_func=yes"
4704 echo "configure: failed program was:" >&5
4705 cat conftest.$ac_ext >&5
4707 eval "ac_cv_func_$ac_func=no"
4712 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4713 echo "$ac_t""yes" 1>&6
4714 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4715 cat >> confdefs.h <<EOF
4716 #define $ac_tr_func 1
4720 echo "$ac_t""no" 1>&6
4724 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
4726 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4727 echo "configure:4728: checking for $ac_func" >&5
4728 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4729 echo $ac_n "(cached) $ac_c" 1>&6
4731 cat > conftest.$ac_ext <<EOF
4732 #line 4733 "configure"
4733 #include "confdefs.h"
4734 /* System header to define __stub macros and hopefully few prototypes,
4735 which can conflict with char $ac_func(); below. */
4737 /* Override any gcc2 internal prototype to avoid an error. */
4738 /* We use char because int might match the return type of a gcc2
4739 builtin and then its argument prototype would still apply. */
4744 /* The GNU C library defines this for functions which it implements
4745 to always fail with ENOSYS. Some functions are actually named
4746 something starting with __ and the normal name is an alias. */
4747 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4755 if { (eval echo configure:4756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4757 eval "ac_cv_func_$ac_func=yes"
4759 echo "configure: failed program was:" >&5
4760 cat conftest.$ac_ext >&5
4762 eval "ac_cv_func_$ac_func=no"
4767 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4768 echo "$ac_t""yes" 1>&6
4769 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4770 cat >> confdefs.h <<EOF
4771 #define $ac_tr_func 1
4775 echo "$ac_t""no" 1>&6
4779 for ac_func in access stat mkdir rename rmdir unlink realpath utime chmod
4781 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4782 echo "configure:4783: checking for $ac_func" >&5
4783 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4784 echo $ac_n "(cached) $ac_c" 1>&6
4786 cat > conftest.$ac_ext <<EOF
4787 #line 4788 "configure"
4788 #include "confdefs.h"
4789 /* System header to define __stub macros and hopefully few prototypes,
4790 which can conflict with char $ac_func(); below. */
4792 /* Override any gcc2 internal prototype to avoid an error. */
4793 /* We use char because int might match the return type of a gcc2
4794 builtin and then its argument prototype would still apply. */
4799 /* The GNU C library defines this for functions which it implements
4800 to always fail with ENOSYS. Some functions are actually named
4801 something starting with __ and the normal name is an alias. */
4802 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4810 if { (eval echo configure:4811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4812 eval "ac_cv_func_$ac_func=yes"
4814 echo "configure: failed program was:" >&5
4815 cat conftest.$ac_ext >&5
4817 eval "ac_cv_func_$ac_func=no"
4822 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4823 echo "$ac_t""yes" 1>&6
4824 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4825 cat >> confdefs.h <<EOF
4826 #define $ac_tr_func 1
4830 echo "$ac_t""no" 1>&6
4834 for ac_func in nl_langinfo setlocale
4836 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4837 echo "configure:4838: checking for $ac_func" >&5
4838 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4839 echo $ac_n "(cached) $ac_c" 1>&6
4841 cat > conftest.$ac_ext <<EOF
4842 #line 4843 "configure"
4843 #include "confdefs.h"
4844 /* System header to define __stub macros and hopefully few prototypes,
4845 which can conflict with char $ac_func(); below. */
4847 /* Override any gcc2 internal prototype to avoid an error. */
4848 /* We use char because int might match the return type of a gcc2
4849 builtin and then its argument prototype would still apply. */
4854 /* The GNU C library defines this for functions which it implements
4855 to always fail with ENOSYS. Some functions are actually named
4856 something starting with __ and the normal name is an alias. */
4857 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4865 if { (eval echo configure:4866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4867 eval "ac_cv_func_$ac_func=yes"
4869 echo "configure: failed program was:" >&5
4870 cat conftest.$ac_ext >&5
4872 eval "ac_cv_func_$ac_func=no"
4877 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4878 echo "$ac_t""yes" 1>&6
4879 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4880 cat >> confdefs.h <<EOF
4881 #define $ac_tr_func 1
4885 echo "$ac_t""no" 1>&6
4889 for ac_func in inet_aton inet_addr
4891 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4892 echo "configure:4893: checking for $ac_func" >&5
4893 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4894 echo $ac_n "(cached) $ac_c" 1>&6
4896 cat > conftest.$ac_ext <<EOF
4897 #line 4898 "configure"
4898 #include "confdefs.h"
4899 /* System header to define __stub macros and hopefully few prototypes,
4900 which can conflict with char $ac_func(); below. */
4902 /* Override any gcc2 internal prototype to avoid an error. */
4903 /* We use char because int might match the return type of a gcc2
4904 builtin and then its argument prototype would still apply. */
4909 /* The GNU C library defines this for functions which it implements
4910 to always fail with ENOSYS. Some functions are actually named
4911 something starting with __ and the normal name is an alias. */
4912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
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_func_$ac_func=yes"
4924 echo "configure: failed program was:" >&5
4925 cat conftest.$ac_ext >&5
4927 eval "ac_cv_func_$ac_func=no"
4932 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4933 echo "$ac_t""yes" 1>&6
4934 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4935 cat >> confdefs.h <<EOF
4936 #define $ac_tr_func 1
4940 echo "$ac_t""no" 1>&6
4944 for ac_func in inet_pton uname inet_ntoa
4946 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4947 echo "configure:4948: checking for $ac_func" >&5
4948 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4949 echo $ac_n "(cached) $ac_c" 1>&6
4951 cat > conftest.$ac_ext <<EOF
4952 #line 4953 "configure"
4953 #include "confdefs.h"
4954 /* System header to define __stub macros and hopefully few prototypes,
4955 which can conflict with char $ac_func(); below. */
4957 /* Override any gcc2 internal prototype to avoid an error. */
4958 /* We use char because int might match the return type of a gcc2
4959 builtin and then its argument prototype would still apply. */
4964 /* The GNU C library defines this for functions which it implements
4965 to always fail with ENOSYS. Some functions are actually named
4966 something starting with __ and the normal name is an alias. */
4967 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4975 if { (eval echo configure:4976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4977 eval "ac_cv_func_$ac_func=yes"
4979 echo "configure: failed program was:" >&5
4980 cat conftest.$ac_ext >&5
4982 eval "ac_cv_func_$ac_func=no"
4987 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4988 echo "$ac_t""yes" 1>&6
4989 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4990 cat >> confdefs.h <<EOF
4991 #define $ac_tr_func 1
4995 echo "$ac_t""no" 1>&6
4999 for ac_func in fork execvp pipe sigaction ftruncate
5001 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5002 echo "configure:5003: checking for $ac_func" >&5
5003 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5004 echo $ac_n "(cached) $ac_c" 1>&6
5006 cat > conftest.$ac_ext <<EOF
5007 #line 5008 "configure"
5008 #include "confdefs.h"
5009 /* System header to define __stub macros and hopefully few prototypes,
5010 which can conflict with char $ac_func(); below. */
5012 /* Override any gcc2 internal prototype to avoid an error. */
5013 /* We use char because int might match the return type of a gcc2
5014 builtin and then its argument prototype would still apply. */
5019 /* The GNU C library defines this for functions which it implements
5020 to always fail with ENOSYS. Some functions are actually named
5021 something starting with __ and the normal name is an alias. */
5022 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5030 if { (eval echo configure:5031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5032 eval "ac_cv_func_$ac_func=yes"
5034 echo "configure: failed program was:" >&5
5035 cat conftest.$ac_ext >&5
5037 eval "ac_cv_func_$ac_func=no"
5042 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5043 echo "$ac_t""yes" 1>&6
5044 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5045 cat >> confdefs.h <<EOF
5046 #define $ac_tr_func 1
5050 echo "$ac_t""no" 1>&6
5054 for ac_hdr in execinfo.h unistd.h dlfcn.h
5056 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5057 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5058 echo "configure:5059: checking for $ac_hdr" >&5
5059 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5060 echo $ac_n "(cached) $ac_c" 1>&6
5062 cat > conftest.$ac_ext <<EOF
5063 #line 5064 "configure"
5064 #include "confdefs.h"
5067 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5068 { (eval echo configure:5069: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5069 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5070 if test -z "$ac_err"; then
5072 eval "ac_cv_header_$ac_safe=yes"
5075 echo "configure: failed program was:" >&5
5076 cat conftest.$ac_ext >&5
5078 eval "ac_cv_header_$ac_safe=no"
5082 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5083 echo "$ac_t""yes" 1>&6
5084 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5085 cat >> confdefs.h <<EOF
5086 #define $ac_tr_hdr 1
5090 echo "$ac_t""no" 1>&6
5094 echo $ac_n "checking for backtrace""... $ac_c" 1>&6
5095 echo "configure:5096: checking for backtrace" >&5
5096 if eval "test \"`echo '$''{'ac_cv_func_backtrace'+set}'`\" = set"; then
5097 echo $ac_n "(cached) $ac_c" 1>&6
5099 cat > conftest.$ac_ext <<EOF
5100 #line 5101 "configure"
5101 #include "confdefs.h"
5102 /* System header to define __stub macros and hopefully few prototypes,
5103 which can conflict with char backtrace(); below. */
5105 /* Override any gcc2 internal prototype to avoid an error. */
5106 /* We use char because int might match the return type of a gcc2
5107 builtin and then its argument prototype would still apply. */
5112 /* The GNU C library defines this for functions which it implements
5113 to always fail with ENOSYS. Some functions are actually named
5114 something starting with __ and the normal name is an alias. */
5115 #if defined (__stub_backtrace) || defined (__stub___backtrace)
5123 if { (eval echo configure:5124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5125 eval "ac_cv_func_backtrace=yes"
5127 echo "configure: failed program was:" >&5
5128 cat conftest.$ac_ext >&5
5130 eval "ac_cv_func_backtrace=no"
5135 if eval "test \"`echo '$ac_cv_func_'backtrace`\" = yes"; then
5136 echo "$ac_t""yes" 1>&6
5140 # Has broken backtrace()
5143 # Has broken backtrace(), but we supply our own.
5144 if test -d sysdep; then true; else mkdir -p sysdep; fi
5145 EXTRA_CC_FILES="${EXTRA_CC_FILES} sysdep/dwarf2-backtrace.cc"
5146 cat >> confdefs.h <<\EOF
5147 #define HAVE_BACKTRACE 1
5152 cat >> confdefs.h <<\EOF
5153 #define HAVE_BACKTRACE 1
5160 echo "$ac_t""no" 1>&6
5164 # Has backtrace() defined in libgcj itself
5165 cat >> confdefs.h <<\EOF
5166 #define HAVE_BACKTRACE 1
5175 echo $ac_n "checking for dladdr in -ldl""... $ac_c" 1>&6
5176 echo "configure:5177: checking for dladdr in -ldl" >&5
5177 ac_lib_var=`echo dl'_'dladdr | sed 'y%./+-%__p_%'`
5178 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5179 echo $ac_n "(cached) $ac_c" 1>&6
5181 ac_save_LIBS="$LIBS"
5183 cat > conftest.$ac_ext <<EOF
5184 #line 5185 "configure"
5185 #include "confdefs.h"
5186 /* Override any gcc2 internal prototype to avoid an error. */
5187 /* We use char because int might match the return type of a gcc2
5188 builtin and then its argument prototype would still apply. */
5195 if { (eval echo configure:5196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5197 eval "ac_cv_lib_$ac_lib_var=yes"
5199 echo "configure: failed program was:" >&5
5200 cat conftest.$ac_ext >&5
5202 eval "ac_cv_lib_$ac_lib_var=no"
5205 LIBS="$ac_save_LIBS"
5208 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5209 echo "$ac_t""yes" 1>&6
5211 if test "x${disable_dladdr}" = "xyes"; then
5215 cat >> confdefs.h <<\EOF
5216 #define HAVE_DLADDR 1
5222 echo "$ac_t""no" 1>&6
5225 if test x"$build" = x"$host"; then
5226 for ac_file in /proc/self/exe
5229 ac_safe=`echo "$ac_file" | sed 'y%./+-%__p_%'`
5230 echo $ac_n "checking for $ac_file""... $ac_c" 1>&6
5231 echo "configure:5232: checking for $ac_file" >&5
5232 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
5233 echo $ac_n "(cached) $ac_c" 1>&6
5235 if test "$cross_compiling" = yes; then
5236 { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
5238 if test -r $ac_file; then
5239 eval "ac_cv_file_$ac_safe=yes"
5241 eval "ac_cv_file_$ac_safe=no"
5245 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
5246 echo "$ac_t""yes" 1>&6
5247 ac_tr_file=HAVE_`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5248 cat >> confdefs.h <<EOF
5249 #define $ac_tr_file 1
5252 cat >> confdefs.h <<\EOF
5253 #define HAVE_PROC_SELF_EXE 1
5257 echo "$ac_t""no" 1>&6
5265 cat >> confdefs.h <<\EOF
5266 #define HAVE_PROC_SELF_EXE 1
5275 am_cv_lib_iconv_ldpath=
5276 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5277 if test "${with_libiconv_prefix+set}" = set; then
5278 withval="$with_libiconv_prefix"
5280 for dir in `echo "$withval" | tr : ' '`; do
5281 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
5282 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
5288 echo $ac_n "checking for iconv""... $ac_c" 1>&6
5289 echo "configure:5290: checking for iconv" >&5
5290 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
5291 echo $ac_n "(cached) $ac_c" 1>&6
5294 am_cv_func_iconv="no, consider installing GNU libiconv"
5296 cat > conftest.$ac_ext <<EOF
5297 #line 5298 "configure"
5298 #include "confdefs.h"
5302 iconv_t cd = iconv_open("","");
5303 iconv(cd,NULL,NULL,NULL,NULL);
5307 if { (eval echo configure:5308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5309 am_cv_func_iconv=yes
5311 echo "configure: failed program was:" >&5
5312 cat conftest.$ac_ext >&5
5315 if test "$am_cv_func_iconv" != yes; then
5316 am_save_LIBS="$LIBS"
5317 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
5318 cat > conftest.$ac_ext <<EOF
5319 #line 5320 "configure"
5320 #include "confdefs.h"
5324 iconv_t cd = iconv_open("","");
5325 iconv(cd,NULL,NULL,NULL,NULL);
5329 if { (eval echo configure:5330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5332 am_cv_func_iconv=yes
5334 echo "configure: failed program was:" >&5
5335 cat conftest.$ac_ext >&5
5338 LIBS="$am_save_LIBS"
5343 echo "$ac_t""$am_cv_func_iconv" 1>&6
5344 if test "$am_cv_func_iconv" = yes; then
5345 cat >> confdefs.h <<\EOF
5346 #define HAVE_ICONV 1
5349 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
5350 echo "configure:5351: checking for iconv declaration" >&5
5351 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
5352 echo $ac_n "(cached) $ac_c" 1>&6
5355 cat > conftest.$ac_ext <<EOF
5356 #line 5357 "configure"
5357 #include "confdefs.h"
5365 #if defined(__STDC__) || defined(__cplusplus)
5366 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
5375 if { (eval echo configure:5376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5377 am_cv_proto_iconv_arg1=""
5379 echo "configure: failed program was:" >&5
5380 cat conftest.$ac_ext >&5
5382 am_cv_proto_iconv_arg1="const"
5385 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
5388 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
5389 echo "$ac_t""${ac_t:-
5390 }$am_cv_proto_iconv" 1>&6
5391 cat >> confdefs.h <<EOF
5392 #define ICONV_CONST $am_cv_proto_iconv_arg1
5397 if test "$am_cv_lib_iconv" = yes; then
5398 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
5402 for ac_hdr in locale.h
5404 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5405 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5406 echo "configure:5407: checking for $ac_hdr" >&5
5407 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5408 echo $ac_n "(cached) $ac_c" 1>&6
5410 cat > conftest.$ac_ext <<EOF
5411 #line 5412 "configure"
5412 #include "confdefs.h"
5415 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5416 { (eval echo configure:5417: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5417 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5418 if test -z "$ac_err"; then
5420 eval "ac_cv_header_$ac_safe=yes"
5423 echo "configure: failed program was:" >&5
5424 cat conftest.$ac_ext >&5
5426 eval "ac_cv_header_$ac_safe=no"
5430 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5431 echo "$ac_t""yes" 1>&6
5432 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5433 cat >> confdefs.h <<EOF
5434 #define $ac_tr_hdr 1
5438 echo "$ac_t""no" 1>&6
5442 if test $ac_cv_header_locale_h = yes; then
5443 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
5444 echo "configure:5445: checking for LC_MESSAGES" >&5
5445 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
5446 echo $ac_n "(cached) $ac_c" 1>&6
5448 cat > conftest.$ac_ext <<EOF
5449 #line 5450 "configure"
5450 #include "confdefs.h"
5456 if { (eval echo configure:5457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5458 am_cv_val_LC_MESSAGES=yes
5460 echo "configure: failed program was:" >&5
5461 cat conftest.$ac_ext >&5
5463 am_cv_val_LC_MESSAGES=no
5468 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
5469 if test $am_cv_val_LC_MESSAGES = yes; then
5470 cat >> confdefs.h <<\EOF
5471 #define HAVE_LC_MESSAGES 1
5476 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
5477 echo "configure:5478: checking whether struct tm is in sys/time.h or time.h" >&5
5478 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
5479 echo $ac_n "(cached) $ac_c" 1>&6
5481 cat > conftest.$ac_ext <<EOF
5482 #line 5483 "configure"
5483 #include "confdefs.h"
5484 #include <sys/types.h>
5487 struct tm *tp; tp->tm_sec;
5490 if { (eval echo configure:5491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5492 ac_cv_struct_tm=time.h
5494 echo "configure: failed program was:" >&5
5495 cat conftest.$ac_ext >&5
5497 ac_cv_struct_tm=sys/time.h
5502 echo "$ac_t""$ac_cv_struct_tm" 1>&6
5503 if test $ac_cv_struct_tm = sys/time.h; then
5504 cat >> confdefs.h <<\EOF
5505 #define TM_IN_SYS_TIME 1
5510 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
5511 echo "configure:5512: checking for tm_zone in struct tm" >&5
5512 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
5513 echo $ac_n "(cached) $ac_c" 1>&6
5515 cat > conftest.$ac_ext <<EOF
5516 #line 5517 "configure"
5517 #include "confdefs.h"
5518 #include <sys/types.h>
5519 #include <$ac_cv_struct_tm>
5521 struct tm tm; tm.tm_zone;
5524 if { (eval echo configure:5525: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5526 ac_cv_struct_tm_zone=yes
5528 echo "configure: failed program was:" >&5
5529 cat conftest.$ac_ext >&5
5531 ac_cv_struct_tm_zone=no
5536 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
5537 if test "$ac_cv_struct_tm_zone" = yes; then
5538 cat >> confdefs.h <<\EOF
5539 #define HAVE_TM_ZONE 1
5543 echo $ac_n "checking for tzname""... $ac_c" 1>&6
5544 echo "configure:5545: checking for tzname" >&5
5545 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
5546 echo $ac_n "(cached) $ac_c" 1>&6
5548 cat > conftest.$ac_ext <<EOF
5549 #line 5550 "configure"
5550 #include "confdefs.h"
5552 #ifndef tzname /* For SGI. */
5553 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5559 if { (eval echo configure:5560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5561 ac_cv_var_tzname=yes
5563 echo "configure: failed program was:" >&5
5564 cat conftest.$ac_ext >&5
5571 echo "$ac_t""$ac_cv_var_tzname" 1>&6
5572 if test $ac_cv_var_tzname = yes; then
5573 cat >> confdefs.h <<\EOF
5574 #define HAVE_TZNAME 1
5581 for ac_func in gethostbyname_r
5583 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5584 echo "configure:5585: checking for $ac_func" >&5
5585 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5586 echo $ac_n "(cached) $ac_c" 1>&6
5588 cat > conftest.$ac_ext <<EOF
5589 #line 5590 "configure"
5590 #include "confdefs.h"
5591 /* System header to define __stub macros and hopefully few prototypes,
5592 which can conflict with char $ac_func(); below. */
5594 /* Override any gcc2 internal prototype to avoid an error. */
5595 /* We use char because int might match the return type of a gcc2
5596 builtin and then its argument prototype would still apply. */
5601 /* The GNU C library defines this for functions which it implements
5602 to always fail with ENOSYS. Some functions are actually named
5603 something starting with __ and the normal name is an alias. */
5604 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5612 if { (eval echo configure:5613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5614 eval "ac_cv_func_$ac_func=yes"
5616 echo "configure: failed program was:" >&5
5617 cat conftest.$ac_ext >&5
5619 eval "ac_cv_func_$ac_func=no"
5624 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5625 echo "$ac_t""yes" 1>&6
5626 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5627 cat >> confdefs.h <<EOF
5628 #define $ac_tr_func 1
5631 cat >> confdefs.h <<\EOF
5632 #define HAVE_GETHOSTBYNAME_R 1
5635 # There are two different kinds of gethostbyname_r.
5636 # We look for the one that returns `int'.
5637 # Hopefully this check is robust enough.
5638 cat > conftest.$ac_ext <<EOF
5639 #line 5640 "configure"
5640 #include "confdefs.h"
5643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5644 egrep "int.*gethostbyname_r" >/dev/null 2>&1; then
5647 cat >> confdefs.h <<\EOF
5648 #define GETHOSTBYNAME_R_RETURNS_INT 1
5656 *" -D_REENTRANT "*) ;;
5658 echo $ac_n "checking whether gethostbyname_r declaration requires -D_REENTRANT""... $ac_c" 1>&6
5659 echo "configure:5660: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
5660 if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
5661 echo $ac_n "(cached) $ac_c" 1>&6
5665 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5666 ac_cpp='$CXXCPP $CPPFLAGS'
5667 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5668 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5669 cross_compiling=$ac_cv_prog_cxx_cross
5671 cat > conftest.$ac_ext <<EOF
5672 #line 5673 "configure"
5673 #include "confdefs.h"
5676 gethostbyname_r("", 0, 0);
5679 if { (eval echo configure:5680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5681 libjava_cv_gethostbyname_r_needs_reentrant=no
5683 echo "configure: failed program was:" >&5
5684 cat conftest.$ac_ext >&5
5686 CPPFLAGS_SAVE="$CPPFLAGS"
5687 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
5688 cat > conftest.$ac_ext <<EOF
5689 #line 5690 "configure"
5690 #include "confdefs.h"
5693 gethostbyname_r("", 0, 0);
5696 if { (eval echo configure:5697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5698 libjava_cv_gethostbyname_r_needs_reentrant=yes
5700 echo "configure: failed program was:" >&5
5701 cat conftest.$ac_ext >&5
5703 libjava_cv_gethostbyname_r_needs_reentrant=fail
5706 CPPFLAGS="$CPPFLAGS_SAVE"
5711 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5712 ac_cpp='$CPP $CPPFLAGS'
5713 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5714 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5715 cross_compiling=$ac_cv_prog_cc_cross
5720 echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
5721 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
5722 cat >> confdefs.h <<\EOF
5723 #define _REENTRANT 1
5730 echo $ac_n "checking for struct hostent_data""... $ac_c" 1>&6
5731 echo "configure:5732: checking for struct hostent_data" >&5
5732 if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+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"
5739 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
5740 # define _REENTRANT 1
5744 struct hostent_data data;
5747 if { (eval echo configure:5748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5749 libjava_cv_struct_hostent_data=yes
5751 echo "configure: failed program was:" >&5
5752 cat conftest.$ac_ext >&5
5754 libjava_cv_struct_hostent_data=no
5759 echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
5760 if test "x$libjava_cv_struct_hostent_data" = xyes; then
5761 cat >> confdefs.h <<\EOF
5762 #define HAVE_STRUCT_HOSTENT_DATA 1
5768 echo "$ac_t""no" 1>&6
5773 # FIXME: libjava source code expects to find a prototype for
5774 # gethostbyaddr_r in netdb.h. The outer check ensures that
5775 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
5776 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
5777 # linkage check is enough, yet C++ code requires proper prototypes.)
5778 cat > conftest.$ac_ext <<EOF
5779 #line 5780 "configure"
5780 #include "confdefs.h"
5783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5784 egrep "gethostbyaddr_r" >/dev/null 2>&1; then
5787 for ac_func in gethostbyaddr_r
5789 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5790 echo "configure:5791: checking for $ac_func" >&5
5791 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5792 echo $ac_n "(cached) $ac_c" 1>&6
5794 cat > conftest.$ac_ext <<EOF
5795 #line 5796 "configure"
5796 #include "confdefs.h"
5797 /* System header to define __stub macros and hopefully few prototypes,
5798 which can conflict with char $ac_func(); below. */
5800 /* Override any gcc2 internal prototype to avoid an error. */
5801 /* We use char because int might match the return type of a gcc2
5802 builtin and then its argument prototype would still apply. */
5807 /* The GNU C library defines this for functions which it implements
5808 to always fail with ENOSYS. Some functions are actually named
5809 something starting with __ and the normal name is an alias. */
5810 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5818 if { (eval echo configure:5819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5820 eval "ac_cv_func_$ac_func=yes"
5822 echo "configure: failed program was:" >&5
5823 cat conftest.$ac_ext >&5
5825 eval "ac_cv_func_$ac_func=no"
5830 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5831 echo "$ac_t""yes" 1>&6
5832 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5833 cat >> confdefs.h <<EOF
5834 #define $ac_tr_func 1
5837 cat >> confdefs.h <<\EOF
5838 #define HAVE_GETHOSTBYADDR_R 1
5841 # There are two different kinds of gethostbyaddr_r.
5842 # We look for the one that returns `int'.
5843 # Hopefully this check is robust enough.
5844 cat > conftest.$ac_ext <<EOF
5845 #line 5846 "configure"
5846 #include "confdefs.h"
5849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5850 egrep "int.*gethostbyaddr_r" >/dev/null 2>&1; then
5853 cat >> confdefs.h <<\EOF
5854 #define GETHOSTBYADDR_R_RETURNS_INT 1
5861 echo "$ac_t""no" 1>&6
5869 for ac_func in gethostname
5871 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5872 echo "configure:5873: checking for $ac_func" >&5
5873 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5874 echo $ac_n "(cached) $ac_c" 1>&6
5876 cat > conftest.$ac_ext <<EOF
5877 #line 5878 "configure"
5878 #include "confdefs.h"
5879 /* System header to define __stub macros and hopefully few prototypes,
5880 which can conflict with char $ac_func(); below. */
5882 /* Override any gcc2 internal prototype to avoid an error. */
5883 /* We use char because int might match the return type of a gcc2
5884 builtin and then its argument prototype would still apply. */
5889 /* The GNU C library defines this for functions which it implements
5890 to always fail with ENOSYS. Some functions are actually named
5891 something starting with __ and the normal name is an alias. */
5892 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5900 if { (eval echo configure:5901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5902 eval "ac_cv_func_$ac_func=yes"
5904 echo "configure: failed program was:" >&5
5905 cat conftest.$ac_ext >&5
5907 eval "ac_cv_func_$ac_func=no"
5912 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5913 echo "$ac_t""yes" 1>&6
5914 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5915 cat >> confdefs.h <<EOF
5916 #define $ac_tr_func 1
5919 cat >> confdefs.h <<\EOF
5920 #define HAVE_GETHOSTNAME 1
5923 cat > conftest.$ac_ext <<EOF
5924 #line 5925 "configure"
5925 #include "confdefs.h"
5928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5929 egrep "gethostname" >/dev/null 2>&1; then
5932 cat >> confdefs.h <<\EOF
5933 #define HAVE_GETHOSTNAME_DECL 1
5940 echo "$ac_t""no" 1>&6
5945 for ac_func in usleep
5947 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5948 echo "configure:5949: checking for $ac_func" >&5
5949 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5950 echo $ac_n "(cached) $ac_c" 1>&6
5952 cat > conftest.$ac_ext <<EOF
5953 #line 5954 "configure"
5954 #include "confdefs.h"
5955 /* System header to define __stub macros and hopefully few prototypes,
5956 which can conflict with char $ac_func(); below. */
5958 /* Override any gcc2 internal prototype to avoid an error. */
5959 /* We use char because int might match the return type of a gcc2
5960 builtin and then its argument prototype would still apply. */
5965 /* The GNU C library defines this for functions which it implements
5966 to always fail with ENOSYS. Some functions are actually named
5967 something starting with __ and the normal name is an alias. */
5968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5976 if { (eval echo configure:5977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5978 eval "ac_cv_func_$ac_func=yes"
5980 echo "configure: failed program was:" >&5
5981 cat conftest.$ac_ext >&5
5983 eval "ac_cv_func_$ac_func=no"
5988 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5989 echo "$ac_t""yes" 1>&6
5990 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5991 cat >> confdefs.h <<EOF
5992 #define $ac_tr_func 1
5995 cat > conftest.$ac_ext <<EOF
5996 #line 5997 "configure"
5997 #include "confdefs.h"
6000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6001 egrep "usleep" >/dev/null 2>&1; then
6004 cat >> confdefs.h <<\EOF
6005 #define HAVE_USLEEP_DECL 1
6012 echo "$ac_t""no" 1>&6
6017 # Look for these functions in the thread library, but only bother
6018 # if using POSIX threads.
6019 if test "$THREADS" = posix; then
6021 LIBS="$LIBS $THREADLIBS"
6022 # Some POSIX thread systems don't have pthread_mutexattr_settype.
6024 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
6026 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6027 echo "configure:6028: checking for $ac_func" >&5
6028 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6029 echo $ac_n "(cached) $ac_c" 1>&6
6031 cat > conftest.$ac_ext <<EOF
6032 #line 6033 "configure"
6033 #include "confdefs.h"
6034 /* System header to define __stub macros and hopefully few prototypes,
6035 which can conflict with char $ac_func(); below. */
6037 /* Override any gcc2 internal prototype to avoid an error. */
6038 /* We use char because int might match the return type of a gcc2
6039 builtin and then its argument prototype would still apply. */
6044 /* The GNU C library defines this for functions which it implements
6045 to always fail with ENOSYS. Some functions are actually named
6046 something starting with __ and the normal name is an alias. */
6047 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6055 if { (eval echo configure:6056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6057 eval "ac_cv_func_$ac_func=yes"
6059 echo "configure: failed program was:" >&5
6060 cat conftest.$ac_ext >&5
6062 eval "ac_cv_func_$ac_func=no"
6067 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6068 echo "$ac_t""yes" 1>&6
6069 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6070 cat >> confdefs.h <<EOF
6071 #define $ac_tr_func 1
6075 echo "$ac_t""no" 1>&6
6080 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
6081 # Solaris 7 the name librt is preferred.
6082 for ac_func in sched_yield
6084 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6085 echo "configure:6086: checking for $ac_func" >&5
6086 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6087 echo $ac_n "(cached) $ac_c" 1>&6
6089 cat > conftest.$ac_ext <<EOF
6090 #line 6091 "configure"
6091 #include "confdefs.h"
6092 /* System header to define __stub macros and hopefully few prototypes,
6093 which can conflict with char $ac_func(); below. */
6095 /* Override any gcc2 internal prototype to avoid an error. */
6096 /* We use char because int might match the return type of a gcc2
6097 builtin and then its argument prototype would still apply. */
6102 /* The GNU C library defines this for functions which it implements
6103 to always fail with ENOSYS. Some functions are actually named
6104 something starting with __ and the normal name is an alias. */
6105 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6113 if { (eval echo configure:6114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6115 eval "ac_cv_func_$ac_func=yes"
6117 echo "configure: failed program was:" >&5
6118 cat conftest.$ac_ext >&5
6120 eval "ac_cv_func_$ac_func=no"
6125 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6126 echo "$ac_t""yes" 1>&6
6127 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6128 cat >> confdefs.h <<EOF
6129 #define $ac_tr_func 1
6133 echo "$ac_t""no" 1>&6
6134 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
6135 echo "configure:6136: checking for sched_yield in -lrt" >&5
6136 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
6137 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6138 echo $ac_n "(cached) $ac_c" 1>&6
6140 ac_save_LIBS="$LIBS"
6142 cat > conftest.$ac_ext <<EOF
6143 #line 6144 "configure"
6144 #include "confdefs.h"
6145 /* Override any gcc2 internal prototype to avoid an error. */
6146 /* We use char because int might match the return type of a gcc2
6147 builtin and then its argument prototype would still apply. */
6154 if { (eval echo configure:6155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6156 eval "ac_cv_lib_$ac_lib_var=yes"
6158 echo "configure: failed program was:" >&5
6159 cat conftest.$ac_ext >&5
6161 eval "ac_cv_lib_$ac_lib_var=no"
6164 LIBS="$ac_save_LIBS"
6167 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6168 echo "$ac_t""yes" 1>&6
6170 cat >> confdefs.h <<\EOF
6171 #define HAVE_SCHED_YIELD 1
6174 THREADLIBS="$THREADLIBS -lrt"
6175 THREADSPEC="$THREADSPEC -lrt"
6177 echo "$ac_t""no" 1>&6
6179 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
6180 echo "configure:6181: checking for sched_yield in -lposix4" >&5
6181 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
6182 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6183 echo $ac_n "(cached) $ac_c" 1>&6
6185 ac_save_LIBS="$LIBS"
6186 LIBS="-lposix4 $LIBS"
6187 cat > conftest.$ac_ext <<EOF
6188 #line 6189 "configure"
6189 #include "confdefs.h"
6190 /* Override any gcc2 internal prototype to avoid an error. */
6191 /* We use char because int might match the return type of a gcc2
6192 builtin and then its argument prototype would still apply. */
6199 if { (eval echo configure:6200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6201 eval "ac_cv_lib_$ac_lib_var=yes"
6203 echo "configure: failed program was:" >&5
6204 cat conftest.$ac_ext >&5
6206 eval "ac_cv_lib_$ac_lib_var=no"
6209 LIBS="$ac_save_LIBS"
6212 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6213 echo "$ac_t""yes" 1>&6
6215 cat >> confdefs.h <<\EOF
6216 #define HAVE_SCHED_YIELD 1
6219 THREADLIBS="$THREADLIBS -lposix4"
6220 THREADSPEC="$THREADSPEC -lposix4"
6222 echo "$ac_t""no" 1>&6
6232 # We can save a little space at runtime if the mutex has m_count
6233 # or __m_count. This is a nice hack for Linux.
6234 cat > conftest.$ac_ext <<EOF
6235 #line 6236 "configure"
6236 #include "confdefs.h"
6237 #include <pthread.h>
6240 extern pthread_mutex_t *mutex; int q = mutex->m_count;
6244 if { (eval echo configure:6245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6246 cat >> confdefs.h <<\EOF
6247 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
6251 echo "configure: failed program was:" >&5
6252 cat conftest.$ac_ext >&5
6255 cat > conftest.$ac_ext <<EOF
6256 #line 6257 "configure"
6257 #include "confdefs.h"
6258 #include <pthread.h>
6261 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
6265 if { (eval echo configure:6266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6267 cat >> confdefs.h <<\EOF
6268 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
6272 echo "configure: failed program was:" >&5
6273 cat conftest.$ac_ext >&5
6280 # We require a way to get the time.
6282 for ac_func in gettimeofday time ftime
6284 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6285 echo "configure:6286: checking for $ac_func" >&5
6286 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6287 echo $ac_n "(cached) $ac_c" 1>&6
6289 cat > conftest.$ac_ext <<EOF
6290 #line 6291 "configure"
6291 #include "confdefs.h"
6292 /* System header to define __stub macros and hopefully few prototypes,
6293 which can conflict with char $ac_func(); below. */
6295 /* Override any gcc2 internal prototype to avoid an error. */
6296 /* We use char because int might match the return type of a gcc2
6297 builtin and then its argument prototype would still apply. */
6302 /* The GNU C library defines this for functions which it implements
6303 to always fail with ENOSYS. Some functions are actually named
6304 something starting with __ and the normal name is an alias. */
6305 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6313 if { (eval echo configure:6314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6315 eval "ac_cv_func_$ac_func=yes"
6317 echo "configure: failed program was:" >&5
6318 cat conftest.$ac_ext >&5
6320 eval "ac_cv_func_$ac_func=no"
6325 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6326 echo "$ac_t""yes" 1>&6
6327 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6328 cat >> confdefs.h <<EOF
6329 #define $ac_tr_func 1
6333 echo "$ac_t""no" 1>&6
6337 if test "$time_found" = no; then
6338 { echo "configure: error: no function found to get the time" 1>&2; exit 1; }
6341 for ac_func in memmove
6343 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6344 echo "configure:6345: checking for $ac_func" >&5
6345 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6346 echo $ac_n "(cached) $ac_c" 1>&6
6348 cat > conftest.$ac_ext <<EOF
6349 #line 6350 "configure"
6350 #include "confdefs.h"
6351 /* System header to define __stub macros and hopefully few prototypes,
6352 which can conflict with char $ac_func(); below. */
6354 /* Override any gcc2 internal prototype to avoid an error. */
6355 /* We use char because int might match the return type of a gcc2
6356 builtin and then its argument prototype would still apply. */
6361 /* The GNU C library defines this for functions which it implements
6362 to always fail with ENOSYS. Some functions are actually named
6363 something starting with __ and the normal name is an alias. */
6364 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6372 if { (eval echo configure:6373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6374 eval "ac_cv_func_$ac_func=yes"
6376 echo "configure: failed program was:" >&5
6377 cat conftest.$ac_ext >&5
6379 eval "ac_cv_func_$ac_func=no"
6384 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6385 echo "$ac_t""yes" 1>&6
6386 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6387 cat >> confdefs.h <<EOF
6388 #define $ac_tr_func 1
6392 echo "$ac_t""no" 1>&6
6397 # We require memcpy.
6399 for ac_func in memcpy
6401 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6402 echo "configure:6403: checking for $ac_func" >&5
6403 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6404 echo $ac_n "(cached) $ac_c" 1>&6
6406 cat > conftest.$ac_ext <<EOF
6407 #line 6408 "configure"
6408 #include "confdefs.h"
6409 /* System header to define __stub macros and hopefully few prototypes,
6410 which can conflict with char $ac_func(); below. */
6412 /* Override any gcc2 internal prototype to avoid an error. */
6413 /* We use char because int might match the return type of a gcc2
6414 builtin and then its argument prototype would still apply. */
6419 /* The GNU C library defines this for functions which it implements
6420 to always fail with ENOSYS. Some functions are actually named
6421 something starting with __ and the normal name is an alias. */
6422 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6430 if { (eval echo configure:6431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6432 eval "ac_cv_func_$ac_func=yes"
6434 echo "configure: failed program was:" >&5
6435 cat conftest.$ac_ext >&5
6437 eval "ac_cv_func_$ac_func=no"
6442 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6443 echo "$ac_t""yes" 1>&6
6444 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6445 cat >> confdefs.h <<EOF
6446 #define $ac_tr_func 1
6450 echo "$ac_t""no" 1>&6
6454 if test "$memcpy_found" = no; then
6455 { echo "configure: error: memcpy is required" 1>&2; exit 1; }
6458 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6459 echo "configure:6460: checking for dlopen in -ldl" >&5
6460 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
6461 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6462 echo $ac_n "(cached) $ac_c" 1>&6
6464 ac_save_LIBS="$LIBS"
6466 cat > conftest.$ac_ext <<EOF
6467 #line 6468 "configure"
6468 #include "confdefs.h"
6469 /* Override any gcc2 internal prototype to avoid an error. */
6470 /* We use char because int might match the return type of a gcc2
6471 builtin and then its argument prototype would still apply. */
6478 if { (eval echo configure:6479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6480 eval "ac_cv_lib_$ac_lib_var=yes"
6482 echo "configure: failed program was:" >&5
6483 cat conftest.$ac_ext >&5
6485 eval "ac_cv_lib_$ac_lib_var=no"
6488 LIBS="$ac_save_LIBS"
6491 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6492 echo "$ac_t""yes" 1>&6
6494 cat >> confdefs.h <<\EOF
6495 #define HAVE_DLOPEN 1
6499 echo "$ac_t""no" 1>&6
6503 # Some library-finding code we stole from Tcl.
6504 #--------------------------------------------------------------------
6505 # Check for the existence of the -lsocket and -lnsl libraries.
6506 # The order here is important, so that they end up in the right
6507 # order in the command line generated by make. Here are some
6508 # special considerations:
6509 # 1. Use "connect" and "accept" to check for -lsocket, and
6510 # "gethostbyname" to check for -lnsl.
6511 # 2. Use each function name only once: can't redo a check because
6512 # autoconf caches the results of the last check and won't redo it.
6513 # 3. Use -lnsl and -lsocket only if they supply procedures that
6514 # aren't already present in the normal libraries. This is because
6515 # IRIX 5.2 has libraries, but they aren't needed and they're
6516 # bogus: they goof up name resolution if used.
6517 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
6518 # To get around this problem, check for both libraries together
6519 # if -lsocket doesn't work by itself.
6520 #--------------------------------------------------------------------
6522 echo $ac_n "checking for socket libraries""... $ac_c" 1>&6
6523 echo "configure:6524: checking for socket libraries" >&5
6524 if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
6525 echo $ac_n "(cached) $ac_c" 1>&6
6529 unset ac_cv_func_connect
6530 echo $ac_n "checking for connect""... $ac_c" 1>&6
6531 echo "configure:6532: checking for connect" >&5
6532 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
6533 echo $ac_n "(cached) $ac_c" 1>&6
6535 cat > conftest.$ac_ext <<EOF
6536 #line 6537 "configure"
6537 #include "confdefs.h"
6538 /* System header to define __stub macros and hopefully few prototypes,
6539 which can conflict with char connect(); below. */
6541 /* Override any gcc2 internal prototype to avoid an error. */
6542 /* We use char because int might match the return type of a gcc2
6543 builtin and then its argument prototype would still apply. */
6548 /* The GNU C library defines this for functions which it implements
6549 to always fail with ENOSYS. Some functions are actually named
6550 something starting with __ and the normal name is an alias. */
6551 #if defined (__stub_connect) || defined (__stub___connect)
6559 if { (eval echo configure:6560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6561 eval "ac_cv_func_connect=yes"
6563 echo "configure: failed program was:" >&5
6564 cat conftest.$ac_ext >&5
6566 eval "ac_cv_func_connect=no"
6571 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
6572 echo "$ac_t""yes" 1>&6
6575 echo "$ac_t""no" 1>&6
6579 if test "$gcj_checkSocket" = 1; then
6580 unset ac_cv_func_connect
6581 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
6582 echo "configure:6583: checking for main in -lsocket" >&5
6583 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
6584 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6585 echo $ac_n "(cached) $ac_c" 1>&6
6587 ac_save_LIBS="$LIBS"
6588 LIBS="-lsocket $LIBS"
6589 cat > conftest.$ac_ext <<EOF
6590 #line 6591 "configure"
6591 #include "confdefs.h"
6597 if { (eval echo configure:6598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6599 eval "ac_cv_lib_$ac_lib_var=yes"
6601 echo "configure: failed program was:" >&5
6602 cat conftest.$ac_ext >&5
6604 eval "ac_cv_lib_$ac_lib_var=no"
6607 LIBS="$ac_save_LIBS"
6610 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6611 echo "$ac_t""yes" 1>&6
6612 gcj_cv_lib_sockets="-lsocket"
6614 echo "$ac_t""no" 1>&6
6619 if test "$gcj_checkBoth" = 1; then
6621 LIBS="$LIBS -lsocket -lnsl"
6622 unset ac_cv_func_accept
6623 echo $ac_n "checking for accept""... $ac_c" 1>&6
6624 echo "configure:6625: checking for accept" >&5
6625 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
6626 echo $ac_n "(cached) $ac_c" 1>&6
6628 cat > conftest.$ac_ext <<EOF
6629 #line 6630 "configure"
6630 #include "confdefs.h"
6631 /* System header to define __stub macros and hopefully few prototypes,
6632 which can conflict with char accept(); below. */
6634 /* Override any gcc2 internal prototype to avoid an error. */
6635 /* We use char because int might match the return type of a gcc2
6636 builtin and then its argument prototype would still apply. */
6641 /* The GNU C library defines this for functions which it implements
6642 to always fail with ENOSYS. Some functions are actually named
6643 something starting with __ and the normal name is an alias. */
6644 #if defined (__stub_accept) || defined (__stub___accept)
6652 if { (eval echo configure:6653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6654 eval "ac_cv_func_accept=yes"
6656 echo "configure: failed program was:" >&5
6657 cat conftest.$ac_ext >&5
6659 eval "ac_cv_func_accept=no"
6664 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
6665 echo "$ac_t""yes" 1>&6
6667 gcj_cv_lib_sockets="-lsocket -lnsl"
6669 echo "$ac_t""no" 1>&6
6672 unset ac_cv_func_accept
6675 unset ac_cv_func_gethostbyname
6677 LIBS="$LIBS $gcj_cv_lib_sockets"
6678 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
6679 echo "configure:6680: checking for gethostbyname" >&5
6680 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
6681 echo $ac_n "(cached) $ac_c" 1>&6
6683 cat > conftest.$ac_ext <<EOF
6684 #line 6685 "configure"
6685 #include "confdefs.h"
6686 /* System header to define __stub macros and hopefully few prototypes,
6687 which can conflict with char gethostbyname(); below. */
6689 /* Override any gcc2 internal prototype to avoid an error. */
6690 /* We use char because int might match the return type of a gcc2
6691 builtin and then its argument prototype would still apply. */
6692 char gethostbyname();
6696 /* The GNU C library defines this for functions which it implements
6697 to always fail with ENOSYS. Some functions are actually named
6698 something starting with __ and the normal name is an alias. */
6699 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6707 if { (eval echo configure:6708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6709 eval "ac_cv_func_gethostbyname=yes"
6711 echo "configure: failed program was:" >&5
6712 cat conftest.$ac_ext >&5
6714 eval "ac_cv_func_gethostbyname=no"
6719 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
6720 echo "$ac_t""yes" 1>&6
6723 echo "$ac_t""no" 1>&6
6724 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
6725 echo "configure:6726: checking for main in -lnsl" >&5
6726 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
6727 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6728 echo $ac_n "(cached) $ac_c" 1>&6
6730 ac_save_LIBS="$LIBS"
6732 cat > conftest.$ac_ext <<EOF
6733 #line 6734 "configure"
6734 #include "confdefs.h"
6740 if { (eval echo configure:6741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6742 eval "ac_cv_lib_$ac_lib_var=yes"
6744 echo "configure: failed program was:" >&5
6745 cat conftest.$ac_ext >&5
6747 eval "ac_cv_lib_$ac_lib_var=no"
6750 LIBS="$ac_save_LIBS"
6753 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6754 echo "$ac_t""yes" 1>&6
6755 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
6757 echo "$ac_t""no" 1>&6
6762 unset ac_cv_func_gethostbyname
6767 echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
6768 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
6770 if test "$with_system_zlib" = yes; then
6771 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
6772 echo "configure:6773: checking for deflate in -lz" >&5
6773 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
6774 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6775 echo $ac_n "(cached) $ac_c" 1>&6
6777 ac_save_LIBS="$LIBS"
6779 cat > conftest.$ac_ext <<EOF
6780 #line 6781 "configure"
6781 #include "confdefs.h"
6782 /* Override any gcc2 internal prototype to avoid an error. */
6783 /* We use char because int might match the return type of a gcc2
6784 builtin and then its argument prototype would still apply. */
6791 if { (eval echo configure:6792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6793 eval "ac_cv_lib_$ac_lib_var=yes"
6795 echo "configure: failed program was:" >&5
6796 cat conftest.$ac_ext >&5
6798 eval "ac_cv_lib_$ac_lib_var=no"
6801 LIBS="$ac_save_LIBS"
6804 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6805 echo "$ac_t""yes" 1>&6
6808 echo "$ac_t""no" 1>&6
6814 # Test for Gtk stuff, if asked for.
6815 if test "$use_gtk_awt" = yes; then
6819 if test -z "$PKG_CONFIG"; then
6820 # Extract the first word of "pkg-config", so it can be a program name with args.
6821 set dummy pkg-config; ac_word=$2
6822 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6823 echo "configure:6824: checking for $ac_word" >&5
6824 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
6825 echo $ac_n "(cached) $ac_c" 1>&6
6827 case "$PKG_CONFIG" in
6829 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6832 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
6835 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6837 for ac_dir in $ac_dummy; do
6838 test -z "$ac_dir" && ac_dir=.
6839 if test -f $ac_dir/$ac_word; then
6840 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
6845 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6849 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6850 if test -n "$PKG_CONFIG"; then
6851 echo "$ac_t""$PKG_CONFIG" 1>&6
6853 echo "$ac_t""no" 1>&6
6858 if test "$PKG_CONFIG" = "no" ; then
6859 echo "*** The pkg-config script could not be found. Make sure it is"
6860 echo "*** in your path, or set the PKG_CONFIG environment variable"
6861 echo "*** to the full path to pkg-config."
6862 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
6864 PKG_CONFIG_MIN_VERSION=0.9.0
6865 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6866 echo $ac_n "checking for gtk+-2.0 >= 2.2""... $ac_c" 1>&6
6867 echo "configure:6868: checking for gtk+-2.0 >= 2.2" >&5
6869 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.2" ; then
6870 echo "$ac_t""yes" 1>&6
6873 echo $ac_n "checking GTK_CFLAGS""... $ac_c" 1>&6
6874 echo "configure:6875: checking GTK_CFLAGS" >&5
6875 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.2"`
6876 echo "$ac_t""$GTK_CFLAGS" 1>&6
6878 echo $ac_n "checking GTK_LIBS""... $ac_c" 1>&6
6879 echo "configure:6880: checking GTK_LIBS" >&5
6880 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.2"`
6881 echo "$ac_t""$GTK_LIBS" 1>&6
6885 ## If we have a custom action on failure, don't print errors, but
6886 ## do set a variable so people can do so.
6887 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.2"`
6888 echo $GTK_PKG_ERRORS
6894 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6895 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6899 if test $succeeded = yes; then
6902 { echo "configure: error: Library requirements (gtk+-2.0 >= 2.2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." 1>&2; exit 1; }
6911 if test -z "$PKG_CONFIG"; then
6912 # Extract the first word of "pkg-config", so it can be a program name with args.
6913 set dummy pkg-config; ac_word=$2
6914 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6915 echo "configure:6916: checking for $ac_word" >&5
6916 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
6917 echo $ac_n "(cached) $ac_c" 1>&6
6919 case "$PKG_CONFIG" in
6921 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6924 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
6927 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6929 for ac_dir in $ac_dummy; do
6930 test -z "$ac_dir" && ac_dir=.
6931 if test -f $ac_dir/$ac_word; then
6932 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
6937 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6941 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6942 if test -n "$PKG_CONFIG"; then
6943 echo "$ac_t""$PKG_CONFIG" 1>&6
6945 echo "$ac_t""no" 1>&6
6950 if test "$PKG_CONFIG" = "no" ; then
6951 echo "*** The pkg-config script could not be found. Make sure it is"
6952 echo "*** in your path, or set the PKG_CONFIG environment variable"
6953 echo "*** to the full path to pkg-config."
6954 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
6956 PKG_CONFIG_MIN_VERSION=0.9.0
6957 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6958 echo $ac_n "checking for glib-2.0 >= 2.2 gthread-2.0 >= 2.2""... $ac_c" 1>&6
6959 echo "configure:6960: checking for glib-2.0 >= 2.2 gthread-2.0 >= 2.2" >&5
6961 if $PKG_CONFIG --exists "glib-2.0 >= 2.2 gthread-2.0 >= 2.2" ; then
6962 echo "$ac_t""yes" 1>&6
6965 echo $ac_n "checking GLIB_CFLAGS""... $ac_c" 1>&6
6966 echo "configure:6967: checking GLIB_CFLAGS" >&5
6967 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.2 gthread-2.0 >= 2.2"`
6968 echo "$ac_t""$GLIB_CFLAGS" 1>&6
6970 echo $ac_n "checking GLIB_LIBS""... $ac_c" 1>&6
6971 echo "configure:6972: checking GLIB_LIBS" >&5
6972 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.2 gthread-2.0 >= 2.2"`
6973 echo "$ac_t""$GLIB_LIBS" 1>&6
6977 ## If we have a custom action on failure, don't print errors, but
6978 ## do set a variable so people can do so.
6979 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.2 gthread-2.0 >= 2.2"`
6980 echo $GLIB_PKG_ERRORS
6986 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6987 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6991 if test $succeeded = yes; then
6994 { echo "configure: error: Library requirements (glib-2.0 >= 2.2 gthread-2.0 >= 2.2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." 1>&2; exit 1; }
7003 if test -z "$PKG_CONFIG"; then
7004 # Extract the first word of "pkg-config", so it can be a program name with args.
7005 set dummy pkg-config; ac_word=$2
7006 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7007 echo "configure:7008: checking for $ac_word" >&5
7008 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
7009 echo $ac_n "(cached) $ac_c" 1>&6
7011 case "$PKG_CONFIG" in
7013 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7016 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
7019 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7021 for ac_dir in $ac_dummy; do
7022 test -z "$ac_dir" && ac_dir=.
7023 if test -f $ac_dir/$ac_word; then
7024 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
7029 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7033 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7034 if test -n "$PKG_CONFIG"; then
7035 echo "$ac_t""$PKG_CONFIG" 1>&6
7037 echo "$ac_t""no" 1>&6
7042 if test "$PKG_CONFIG" = "no" ; then
7043 echo "*** The pkg-config script could not be found. Make sure it is"
7044 echo "*** in your path, or set the PKG_CONFIG environment variable"
7045 echo "*** to the full path to pkg-config."
7046 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
7048 PKG_CONFIG_MIN_VERSION=0.9.0
7049 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7050 echo $ac_n "checking for libart-2.0 >= 2.1""... $ac_c" 1>&6
7051 echo "configure:7052: checking for libart-2.0 >= 2.1" >&5
7053 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
7054 echo "$ac_t""yes" 1>&6
7057 echo $ac_n "checking LIBART_CFLAGS""... $ac_c" 1>&6
7058 echo "configure:7059: checking LIBART_CFLAGS" >&5
7059 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
7060 echo "$ac_t""$LIBART_CFLAGS" 1>&6
7062 echo $ac_n "checking LIBART_LIBS""... $ac_c" 1>&6
7063 echo "configure:7064: checking LIBART_LIBS" >&5
7064 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
7065 echo "$ac_t""$LIBART_LIBS" 1>&6
7069 ## If we have a custom action on failure, don't print errors, but
7070 ## do set a variable so people can do so.
7071 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
7072 echo $LIBART_PKG_ERRORS
7078 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7079 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7083 if test $succeeded = yes; then
7086 { echo "configure: error: Library requirements (libart-2.0 >= 2.1) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." 1>&2; exit 1; }
7093 # On Solaris, and maybe other architectures, the Boehm collector
7095 if test "$GC" = boehm; then
7096 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
7097 echo "configure:7098: checking for main in -ldl" >&5
7098 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
7099 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7100 echo $ac_n "(cached) $ac_c" 1>&6
7102 ac_save_LIBS="$LIBS"
7104 cat > conftest.$ac_ext <<EOF
7105 #line 7106 "configure"
7106 #include "confdefs.h"
7112 if { (eval echo configure:7113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7114 eval "ac_cv_lib_$ac_lib_var=yes"
7116 echo "configure: failed program was:" >&5
7117 cat conftest.$ac_ext >&5
7119 eval "ac_cv_lib_$ac_lib_var=no"
7122 LIBS="$ac_save_LIBS"
7125 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7126 echo "$ac_t""yes" 1>&6
7127 SYSTEMSPEC="$SYSTEMSPEC -ldl"
7129 echo "$ac_t""no" 1>&6
7135 if test -z "${with_multisubdir}"; then
7139 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
7145 # Which gcj do we use?
7147 built_gcc_dir="`cd ${builddotdot}/../../gcc && ${PWDCMD-pwd}`"
7148 if test -n "${with_cross_host}"; then
7149 # We are being configured with a cross compiler. We can't
7150 # use ac_exeext, because that is for the target platform.
7153 case "${with_cross_host}" in
7155 cross_host_exeext=.exe
7158 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
7159 if test x"$build_noncanonical" = x"$with_cross_host"; then
7160 # Ordinary cross (host!=target and host=build)
7163 # Canadian cross (host!=target and host!=build)
7170 # We are being configured with a native or crossed-native compiler
7171 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
7172 if test x"$build" = x"$host"; then
7173 # True native build (host=target and host=build)
7176 # Crossed-native build (host=target and host!=build)
7183 case "${which_gcj}" in
7185 GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
7186 GCJH='$(MULTIBUILDTOP)../$(COMPPATH)/gcc/gcjh'
7187 ZIP='$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/jar'
7190 if test "x${with_newlib}" = "xyes"; then
7191 # FIXME (comment): Why is this needed?
7193 GCJ="${target_noncanonical}-gcj"
7195 GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
7198 GCJH='$(target_noncanonical)-gcjh'
7201 GCJ="gcj -B`${PWDCMD-pwd}`/"
7202 ## In this case, gcj is found outside the build tree. However, zip is
7203 ## found in the build tree.
7204 ZIP='$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/jar'
7212 # Create it, so that compile/link tests don't fail
7213 test -f libgcj.spec || touch libgcj.spec
7215 # We must search the source tree for java.lang, since we still don't
7216 # have libgcj.jar nor java/lang/*.class
7217 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
7218 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
7220 # Since some classes depend on this one, we need its source available
7221 # before we can do any GCJ compilation test :-(
7222 if test ! -f gnu/classpath/Configuration.java; then
7223 test -d gnu || mkdir gnu
7224 test -d gnu/classpath || mkdir gnu/classpath
7225 sed -e 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
7226 -e 's,@TOOLKIT@,$TOOLKIT,' \
7227 < $srcdir/gnu/classpath/Configuration.java.in \
7228 > gnu/classpath/Configuration.java
7229 # We do not want to redirect the output of the grep below to /dev/null,
7230 # but we add /dev/null to the input list so that grep will print the
7231 # filename of Configuration.java in case it finds any matches.
7232 if grep @ gnu/classpath/Configuration.java /dev/null; then
7233 { echo "configure: error: configure.in is missing the substitutions above" 1>&2; exit 1; }
7237 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
7238 set dummy ${ac_tool_prefix}gcj; ac_word=$2
7239 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7240 echo "configure:7241: checking for $ac_word" >&5
7241 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
7242 echo $ac_n "(cached) $ac_c" 1>&6
7244 if test -n "$GCJ"; then
7245 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
7247 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7249 for ac_dir in $ac_dummy; do
7250 test -z "$ac_dir" && ac_dir=.
7251 if test -f $ac_dir/$ac_word; then
7252 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
7259 GCJ="$ac_cv_prog_GCJ"
7260 if test -n "$GCJ"; then
7261 echo "$ac_t""$GCJ" 1>&6
7263 echo "$ac_t""no" 1>&6
7267 if test -z "$ac_cv_prog_GCJ"; then
7268 if test -n "$ac_tool_prefix"; then
7269 # Extract the first word of "gcj", so it can be a program name with args.
7270 set dummy gcj; ac_word=$2
7271 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7272 echo "configure:7273: checking for $ac_word" >&5
7273 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
7274 echo $ac_n "(cached) $ac_c" 1>&6
7276 if test -n "$GCJ"; then
7277 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
7279 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7281 for ac_dir in $ac_dummy; do
7282 test -z "$ac_dir" && ac_dir=.
7283 if test -f $ac_dir/$ac_word; then
7284 ac_cv_prog_GCJ="gcj"
7289 test -z "$ac_cv_prog_GCJ" && ac_cv_prog_GCJ="no"
7292 GCJ="$ac_cv_prog_GCJ"
7293 if test -n "$GCJ"; then
7294 echo "$ac_t""$GCJ" 1>&6
7296 echo "$ac_t""no" 1>&6
7304 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7308 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
7310 lt_save_CFLAGS="$CFLAGS"
7311 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
7312 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
7313 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
7314 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
7315 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
7316 deplibs_check_method="$deplibs_check_method" \
7317 file_magic_cmd="$file_magic_cmd" \
7318 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
7319 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
7320 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
7322 CFLAGS="$lt_save_CFLAGS"
7324 # Redirect the config.log output again, so that the ltconfig log is not
7325 # clobbered by the next message.
7326 exec 5>>./config.log
7331 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
7333 echo $ac_n "checking size of void *""... $ac_c" 1>&6
7334 echo "configure:7335: checking size of void *" >&5
7335 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
7336 echo $ac_n "(cached) $ac_c" 1>&6
7338 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
7339 cat > conftest.$ac_ext <<EOF
7340 #line 7341 "configure"
7341 #include "confdefs.h"
7342 #include "confdefs.h"
7343 #include <sys/types.h>
7347 switch (0) case 0: case (sizeof (void *) == $ac_size):;
7350 if { (eval echo configure:7351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7352 ac_cv_sizeof_void_p=$ac_size
7354 echo "configure: failed program was:" >&5
7355 cat conftest.$ac_ext >&5
7358 if test x$ac_cv_sizeof_void_p != x ; then break; fi
7363 if test x$ac_cv_sizeof_void_p = x ; then
7364 { echo "configure: error: cannot determine a size for void *" 1>&2; exit 1; }
7366 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
7367 cat >> confdefs.h <<EOF
7368 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7377 if test -z "$ZLIBSPEC"; then
7378 # Use zlib from the GCC tree.
7379 ZINCS='-I$(top_srcdir)/../zlib'
7380 ZLIBS=../zlib/libzgcj_convenience.la
7383 SYS_ZLIBS="$ZLIBSPEC"
7395 if test "$NATIVE" = yes; then
7404 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
7405 NEEDS_DATA_START_TRUE=
7406 NEEDS_DATA_START_FALSE='#'
7408 NEEDS_DATA_START_TRUE='#'
7409 NEEDS_DATA_START_FALSE=
7413 # Process the option "--enable-version-specific-runtime-libs"
7414 # Calculate toolexeclibdir
7415 case ${version_specific_libs} in
7417 # Need the gcc compiler version to know where to install libraries
7418 # and header files if --enable-version-specific-runtime-libs option
7420 includedir='${libdir}/gcc/${target_noncanonical}/'$gcc_version/include/
7421 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
7422 toolexecmainlibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
7423 toolexeclibdir=$toolexecmainlibdir
7426 if test -n "$with_cross_host" &&
7427 test x"$with_cross_host" != x"no"; then
7428 # Install a library built with a cross compiler in tooldir, not libdir.
7429 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
7430 toolexecmainlibdir='$(toolexecdir)/lib'
7432 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
7433 toolexecmainlibdir='$(libdir)'
7435 multi_os_directory=`$CC -print-multi-os-directory`
7436 case $multi_os_directory in
7437 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
7438 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
7446 # Determine gcj version number.
7448 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
7450 GCJVERSION=$gcjversion
7452 cat >> confdefs.h <<EOF
7453 #define GCJVERSION "$GCJVERSION"
7457 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 net/if.h pwd.h sys/config.h stdint.h langinfo.h locale.h
7459 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7460 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7461 echo "configure:7462: checking for $ac_hdr" >&5
7462 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7463 echo $ac_n "(cached) $ac_c" 1>&6
7465 cat > conftest.$ac_ext <<EOF
7466 #line 7467 "configure"
7467 #include "confdefs.h"
7470 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7471 { (eval echo configure:7472: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7472 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7473 if test -z "$ac_err"; then
7475 eval "ac_cv_header_$ac_safe=yes"
7478 echo "configure: failed program was:" >&5
7479 cat conftest.$ac_ext >&5
7481 eval "ac_cv_header_$ac_safe=no"
7485 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7486 echo "$ac_t""yes" 1>&6
7487 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7488 cat >> confdefs.h <<EOF
7489 #define $ac_tr_hdr 1
7493 echo "$ac_t""no" 1>&6
7497 for ac_hdr in dirent.h
7499 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7500 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7501 echo "configure:7502: checking for $ac_hdr" >&5
7502 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7503 echo $ac_n "(cached) $ac_c" 1>&6
7505 cat > conftest.$ac_ext <<EOF
7506 #line 7507 "configure"
7507 #include "confdefs.h"
7510 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7511 { (eval echo configure:7512: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7512 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7513 if test -z "$ac_err"; then
7515 eval "ac_cv_header_$ac_safe=yes"
7518 echo "configure: failed program was:" >&5
7519 cat conftest.$ac_ext >&5
7521 eval "ac_cv_header_$ac_safe=no"
7525 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7526 echo "$ac_t""yes" 1>&6
7527 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7528 cat >> confdefs.h <<EOF
7529 #define $ac_tr_hdr 1
7533 echo "$ac_t""no" 1>&6
7537 for ac_hdr in inttypes.h
7539 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7540 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7541 echo "configure:7542: checking for $ac_hdr" >&5
7542 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7543 echo $ac_n "(cached) $ac_c" 1>&6
7545 cat > conftest.$ac_ext <<EOF
7546 #line 7547 "configure"
7547 #include "confdefs.h"
7550 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7551 { (eval echo configure:7552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7552 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7553 if test -z "$ac_err"; then
7555 eval "ac_cv_header_$ac_safe=yes"
7558 echo "configure: failed program was:" >&5
7559 cat conftest.$ac_ext >&5
7561 eval "ac_cv_header_$ac_safe=no"
7565 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7566 echo "$ac_t""yes" 1>&6
7567 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7568 cat >> confdefs.h <<EOF
7569 #define $ac_tr_hdr 1
7572 cat >> confdefs.h <<\EOF
7573 #define HAVE_INTTYPES_H 1
7576 cat >> confdefs.h <<\EOF
7577 #define JV_HAVE_INTTYPES_H 1
7582 echo "$ac_t""no" 1>&6
7586 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
7587 echo "configure:7588: checking for sys/wait.h that is POSIX.1 compatible" >&5
7588 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
7589 echo $ac_n "(cached) $ac_c" 1>&6
7591 cat > conftest.$ac_ext <<EOF
7592 #line 7593 "configure"
7593 #include "confdefs.h"
7594 #include <sys/types.h>
7595 #include <sys/wait.h>
7597 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7600 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7605 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7608 if { (eval echo configure:7609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7610 ac_cv_header_sys_wait_h=yes
7612 echo "configure: failed program was:" >&5
7613 cat conftest.$ac_ext >&5
7615 ac_cv_header_sys_wait_h=no
7620 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
7621 if test $ac_cv_header_sys_wait_h = yes; then
7622 cat >> confdefs.h <<\EOF
7623 #define HAVE_SYS_WAIT_H 1
7629 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
7630 echo "configure:7631: checking for ANSI C header files" >&5
7631 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
7632 echo $ac_n "(cached) $ac_c" 1>&6
7634 cat > conftest.$ac_ext <<EOF
7635 #line 7636 "configure"
7636 #include "confdefs.h"
7642 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7643 { (eval echo configure:7644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7644 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7645 if test -z "$ac_err"; then
7647 ac_cv_header_stdc=yes
7650 echo "configure: failed program was:" >&5
7651 cat conftest.$ac_ext >&5
7653 ac_cv_header_stdc=no
7657 if test $ac_cv_header_stdc = yes; then
7658 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7659 cat > conftest.$ac_ext <<EOF
7660 #line 7661 "configure"
7661 #include "confdefs.h"
7664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7665 egrep "memchr" >/dev/null 2>&1; then
7669 ac_cv_header_stdc=no
7675 if test $ac_cv_header_stdc = yes; then
7676 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7677 cat > conftest.$ac_ext <<EOF
7678 #line 7679 "configure"
7679 #include "confdefs.h"
7682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7683 egrep "free" >/dev/null 2>&1; then
7687 ac_cv_header_stdc=no
7693 if test $ac_cv_header_stdc = yes; then
7694 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7695 if test "$cross_compiling" = yes; then
7698 cat > conftest.$ac_ext <<EOF
7699 #line 7700 "configure"
7700 #include "confdefs.h"
7702 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7703 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7704 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7705 int main () { int i; for (i = 0; i < 256; i++)
7706 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
7710 if { (eval echo configure:7711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7714 echo "configure: failed program was:" >&5
7715 cat conftest.$ac_ext >&5
7717 ac_cv_header_stdc=no
7725 echo "$ac_t""$ac_cv_header_stdc" 1>&6
7726 if test $ac_cv_header_stdc = yes; then
7727 cat >> confdefs.h <<\EOF
7728 #define STDC_HEADERS 1
7733 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
7734 echo "configure:7735: checking for ssize_t" >&5
7735 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
7736 echo $ac_n "(cached) $ac_c" 1>&6
7738 cat > conftest.$ac_ext <<EOF
7739 #line 7740 "configure"
7740 #include "confdefs.h"
7741 #include <sys/types.h>
7747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7748 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7750 ac_cv_type_ssize_t=yes
7753 ac_cv_type_ssize_t=no
7758 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
7759 if test $ac_cv_type_ssize_t = no; then
7760 cat >> confdefs.h <<\EOF
7767 echo $ac_n "checking for in_addr_t""... $ac_c" 1>&6
7768 echo "configure:7769: checking for in_addr_t" >&5
7769 cat > conftest.$ac_ext <<EOF
7770 #line 7771 "configure"
7771 #include "confdefs.h"
7772 #include <sys/types.h>
7777 #if HAVE_NETINET_IN_H
7778 #include <netinet/in.h>
7784 if { (eval echo configure:7785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7786 cat >> confdefs.h <<\EOF
7787 #define HAVE_IN_ADDR_T 1
7790 echo "$ac_t""yes" 1>&6
7792 echo "configure: failed program was:" >&5
7793 cat conftest.$ac_ext >&5
7795 echo "$ac_t""no" 1>&6
7799 echo $ac_n "checking whether struct ip_mreq is in netinet/in.h""... $ac_c" 1>&6
7800 echo "configure:7801: checking whether struct ip_mreq is in netinet/in.h" >&5
7801 cat > conftest.$ac_ext <<EOF
7802 #line 7803 "configure"
7803 #include "confdefs.h"
7804 #include <netinet/in.h>
7806 struct ip_mreq mreq;
7809 if { (eval echo configure:7810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7811 cat >> confdefs.h <<\EOF
7812 #define HAVE_STRUCT_IP_MREQ 1
7815 echo "$ac_t""yes" 1>&6
7817 echo "configure: failed program was:" >&5
7818 cat conftest.$ac_ext >&5
7820 echo "$ac_t""no" 1>&6
7824 echo $ac_n "checking whether struct ipv6_mreq is in netinet/in.h""... $ac_c" 1>&6
7825 echo "configure:7826: checking whether struct ipv6_mreq is in netinet/in.h" >&5
7826 cat > conftest.$ac_ext <<EOF
7827 #line 7828 "configure"
7828 #include "confdefs.h"
7829 #include <netinet/in.h>
7831 struct ipv6_mreq mreq6;
7834 if { (eval echo configure:7835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7836 cat >> confdefs.h <<\EOF
7837 #define HAVE_STRUCT_IPV6_MREQ 1
7840 echo "$ac_t""yes" 1>&6
7842 echo "configure: failed program was:" >&5
7843 cat conftest.$ac_ext >&5
7845 echo "$ac_t""no" 1>&6
7849 echo $ac_n "checking whether struct sockaddr_in6 is in netinet/in.h""... $ac_c" 1>&6
7850 echo "configure:7851: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
7851 cat > conftest.$ac_ext <<EOF
7852 #line 7853 "configure"
7853 #include "confdefs.h"
7854 #include <netinet/in.h>
7856 struct sockaddr_in6 addr6;
7859 if { (eval echo configure:7860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7861 cat >> confdefs.h <<\EOF
7862 #define HAVE_INET6 1
7865 echo "$ac_t""yes" 1>&6
7867 echo "configure: failed program was:" >&5
7868 cat conftest.$ac_ext >&5
7870 echo "$ac_t""no" 1>&6
7874 echo $ac_n "checking for socklen_t in sys/socket.h""... $ac_c" 1>&6
7875 echo "configure:7876: checking for socklen_t in sys/socket.h" >&5
7876 cat > conftest.$ac_ext <<EOF
7877 #line 7878 "configure"
7878 #include "confdefs.h"
7879 #define _POSIX_PII_SOCKET
7880 #include <sys/types.h>
7881 #include <sys/socket.h>
7886 if { (eval echo configure:7887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7888 cat >> confdefs.h <<\EOF
7889 #define HAVE_SOCKLEN_T 1
7892 echo "$ac_t""yes" 1>&6
7894 echo "configure: failed program was:" >&5
7895 cat conftest.$ac_ext >&5
7897 echo "$ac_t""no" 1>&6
7901 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
7902 echo "configure:7903: checking for tm_gmtoff in struct tm" >&5
7903 cat > conftest.$ac_ext <<EOF
7904 #line 7905 "configure"
7905 #include "confdefs.h"
7908 struct tm tim; tim.tm_gmtoff = 0;
7911 if { (eval echo configure:7912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7913 cat >> confdefs.h <<\EOF
7914 #define STRUCT_TM_HAS_GMTOFF 1
7917 echo "$ac_t""yes" 1>&6
7919 echo "configure: failed program was:" >&5
7920 cat conftest.$ac_ext >&5
7922 echo "$ac_t""no" 1>&6
7923 echo $ac_n "checking for global timezone variable""... $ac_c" 1>&6
7924 echo "configure:7925: checking for global timezone variable" >&5
7925 cat > conftest.$ac_ext <<EOF
7926 #line 7927 "configure"
7927 #include "confdefs.h"
7930 void i(){long z2 = 2*timezone;}
7933 if { (eval echo configure:7934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7935 cat >> confdefs.h <<\EOF
7936 #define HAVE_TIMEZONE 1
7939 echo "$ac_t""yes" 1>&6
7941 echo "configure: failed program was:" >&5
7942 cat conftest.$ac_ext >&5
7944 echo "$ac_t""no" 1>&6
7945 echo $ac_n "checking for global _timezone variable""... $ac_c" 1>&6
7946 echo "configure:7947: checking for global _timezone variable" >&5
7947 cat > conftest.$ac_ext <<EOF
7948 #line 7949 "configure"
7949 #include "confdefs.h"
7952 long z2 = _timezone;
7955 if { (eval echo configure:7956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7957 cat >> confdefs.h <<\EOF
7958 #define HAVE_UNDERSCORE_TIMEZONE 1
7961 echo "$ac_t""yes" 1>&6
7963 echo "configure: failed program was:" >&5
7964 cat conftest.$ac_ext >&5
7966 echo "$ac_t""no" 1>&6
7974 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7975 # for constant arguments. Useless!
7976 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
7977 echo "configure:7978: checking for working alloca.h" >&5
7978 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
7979 echo $ac_n "(cached) $ac_c" 1>&6
7981 cat > conftest.$ac_ext <<EOF
7982 #line 7983 "configure"
7983 #include "confdefs.h"
7986 char *p = alloca(2 * sizeof(int));
7989 if { (eval echo configure:7990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7991 ac_cv_header_alloca_h=yes
7993 echo "configure: failed program was:" >&5
7994 cat conftest.$ac_ext >&5
7996 ac_cv_header_alloca_h=no
8001 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
8002 if test $ac_cv_header_alloca_h = yes; then
8003 cat >> confdefs.h <<\EOF
8004 #define HAVE_ALLOCA_H 1
8009 echo $ac_n "checking for alloca""... $ac_c" 1>&6
8010 echo "configure:8011: checking for alloca" >&5
8011 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
8012 echo $ac_n "(cached) $ac_c" 1>&6
8014 cat > conftest.$ac_ext <<EOF
8015 #line 8016 "configure"
8016 #include "confdefs.h"
8019 # define alloca __builtin_alloca
8022 # include <malloc.h>
8023 # define alloca _alloca
8026 # include <alloca.h>
8031 # ifndef alloca /* predefined by HP cc +Olibcalls */
8040 char *p = (char *) alloca(1);
8043 if { (eval echo configure:8044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8045 ac_cv_func_alloca_works=yes
8047 echo "configure: failed program was:" >&5
8048 cat conftest.$ac_ext >&5
8050 ac_cv_func_alloca_works=no
8055 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
8056 if test $ac_cv_func_alloca_works = yes; then
8057 cat >> confdefs.h <<\EOF
8058 #define HAVE_ALLOCA 1
8063 if test $ac_cv_func_alloca_works = no; then
8064 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8065 # that cause trouble. Some versions do not even contain alloca or
8066 # contain a buggy version. If you still want to use their alloca,
8067 # use ar to extract alloca.o from them instead of compiling alloca.c.
8068 ALLOCA=alloca.${ac_objext}
8069 cat >> confdefs.h <<\EOF
8074 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
8075 echo "configure:8076: checking whether alloca needs Cray hooks" >&5
8076 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
8077 echo $ac_n "(cached) $ac_c" 1>&6
8079 cat > conftest.$ac_ext <<EOF
8080 #line 8081 "configure"
8081 #include "confdefs.h"
8082 #if defined(CRAY) && ! defined(CRAY2)
8089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8090 egrep "webecray" >/dev/null 2>&1; then
8101 echo "$ac_t""$ac_cv_os_cray" 1>&6
8102 if test $ac_cv_os_cray = yes; then
8103 for ac_func in _getb67 GETB67 getb67; do
8104 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8105 echo "configure:8106: checking for $ac_func" >&5
8106 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8107 echo $ac_n "(cached) $ac_c" 1>&6
8109 cat > conftest.$ac_ext <<EOF
8110 #line 8111 "configure"
8111 #include "confdefs.h"
8112 /* System header to define __stub macros and hopefully few prototypes,
8113 which can conflict with char $ac_func(); below. */
8115 /* Override any gcc2 internal prototype to avoid an error. */
8116 /* We use char because int might match the return type of a gcc2
8117 builtin and then its argument prototype would still apply. */
8122 /* The GNU C library defines this for functions which it implements
8123 to always fail with ENOSYS. Some functions are actually named
8124 something starting with __ and the normal name is an alias. */
8125 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8133 if { (eval echo configure:8134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8135 eval "ac_cv_func_$ac_func=yes"
8137 echo "configure: failed program was:" >&5
8138 cat conftest.$ac_ext >&5
8140 eval "ac_cv_func_$ac_func=no"
8145 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8146 echo "$ac_t""yes" 1>&6
8147 cat >> confdefs.h <<EOF
8148 #define CRAY_STACKSEG_END $ac_func
8153 echo "$ac_t""no" 1>&6
8159 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
8160 echo "configure:8161: checking stack direction for C alloca" >&5
8161 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
8162 echo $ac_n "(cached) $ac_c" 1>&6
8164 if test "$cross_compiling" = yes; then
8165 ac_cv_c_stack_direction=0
8167 cat > conftest.$ac_ext <<EOF
8168 #line 8169 "configure"
8169 #include "confdefs.h"
8170 find_stack_direction ()
8172 static char *addr = 0;
8177 return find_stack_direction ();
8180 return (&dummy > addr) ? 1 : -1;
8184 exit (find_stack_direction() < 0);
8187 if { (eval echo configure:8188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8189 ac_cv_c_stack_direction=1
8191 echo "configure: failed program was:" >&5
8192 cat conftest.$ac_ext >&5
8194 ac_cv_c_stack_direction=-1
8201 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
8202 cat >> confdefs.h <<EOF
8203 #define STACK_DIRECTION $ac_cv_c_stack_direction
8208 for ac_hdr in unistd.h
8210 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8211 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8212 echo "configure:8213: checking for $ac_hdr" >&5
8213 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8214 echo $ac_n "(cached) $ac_c" 1>&6
8216 cat > conftest.$ac_ext <<EOF
8217 #line 8218 "configure"
8218 #include "confdefs.h"
8221 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8222 { (eval echo configure:8223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8223 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8224 if test -z "$ac_err"; then
8226 eval "ac_cv_header_$ac_safe=yes"
8229 echo "configure: failed program was:" >&5
8230 cat conftest.$ac_ext >&5
8232 eval "ac_cv_header_$ac_safe=no"
8236 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8237 echo "$ac_t""yes" 1>&6
8238 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8239 cat >> confdefs.h <<EOF
8240 #define $ac_tr_hdr 1
8244 echo "$ac_t""no" 1>&6
8248 for ac_func in getpagesize
8250 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8251 echo "configure:8252: checking for $ac_func" >&5
8252 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8253 echo $ac_n "(cached) $ac_c" 1>&6
8255 cat > conftest.$ac_ext <<EOF
8256 #line 8257 "configure"
8257 #include "confdefs.h"
8258 /* System header to define __stub macros and hopefully few prototypes,
8259 which can conflict with char $ac_func(); below. */
8261 /* Override any gcc2 internal prototype to avoid an error. */
8262 /* We use char because int might match the return type of a gcc2
8263 builtin and then its argument prototype would still apply. */
8268 /* The GNU C library defines this for functions which it implements
8269 to always fail with ENOSYS. Some functions are actually named
8270 something starting with __ and the normal name is an alias. */
8271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8279 if { (eval echo configure:8280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8281 eval "ac_cv_func_$ac_func=yes"
8283 echo "configure: failed program was:" >&5
8284 cat conftest.$ac_ext >&5
8286 eval "ac_cv_func_$ac_func=no"
8291 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8292 echo "$ac_t""yes" 1>&6
8293 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8294 cat >> confdefs.h <<EOF
8295 #define $ac_tr_func 1
8299 echo "$ac_t""no" 1>&6
8303 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
8304 echo "configure:8305: checking for working mmap" >&5
8305 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
8306 echo $ac_n "(cached) $ac_c" 1>&6
8308 if test "$cross_compiling" = yes; then
8309 ac_cv_func_mmap_fixed_mapped=no
8311 cat > conftest.$ac_ext <<EOF
8312 #line 8313 "configure"
8313 #include "confdefs.h"
8315 /* Thanks to Mike Haertel and Jim Avera for this test.
8316 Here is a matrix of mmap possibilities:
8317 mmap private not fixed
8318 mmap private fixed at somewhere currently unmapped
8319 mmap private fixed at somewhere already mapped
8320 mmap shared not fixed
8321 mmap shared fixed at somewhere currently unmapped
8322 mmap shared fixed at somewhere already mapped
8323 For private mappings, we should verify that changes cannot be read()
8324 back from the file, nor mmap's back from the file at a different
8325 address. (There have been systems where private was not correctly
8326 implemented like the infamous i386 svr4.0, and systems where the
8327 VM page cache was not coherent with the filesystem buffer cache
8328 like early versions of FreeBSD and possibly contemporary NetBSD.)
8329 For shared mappings, we should conversely verify that changes get
8330 propogated back to all the places they're supposed to be.
8332 Grep wants private fixed already mapped.
8333 The main things grep needs to know about mmap are:
8334 * does it exist and is it safe to write into the mmap'd area
8335 * how to use it (BSD variants) */
8336 #include <sys/types.h>
8338 #include <sys/mman.h>
8340 /* This mess was copied from the GNU getpagesize.h. */
8341 #ifndef HAVE_GETPAGESIZE
8342 # ifdef HAVE_UNISTD_H
8343 # include <unistd.h>
8346 /* Assume that all systems that can run configure have sys/param.h. */
8347 # ifndef HAVE_SYS_PARAM_H
8348 # define HAVE_SYS_PARAM_H 1
8351 # ifdef _SC_PAGESIZE
8352 # define getpagesize() sysconf(_SC_PAGESIZE)
8353 # else /* no _SC_PAGESIZE */
8354 # ifdef HAVE_SYS_PARAM_H
8355 # include <sys/param.h>
8356 # ifdef EXEC_PAGESIZE
8357 # define getpagesize() EXEC_PAGESIZE
8358 # else /* no EXEC_PAGESIZE */
8360 # define getpagesize() NBPG * CLSIZE
8363 # endif /* no CLSIZE */
8364 # else /* no NBPG */
8366 # define getpagesize() NBPC
8367 # else /* no NBPC */
8369 # define getpagesize() PAGESIZE
8370 # endif /* PAGESIZE */
8371 # endif /* no NBPC */
8372 # endif /* no NBPG */
8373 # endif /* no EXEC_PAGESIZE */
8374 # else /* no HAVE_SYS_PARAM_H */
8375 # define getpagesize() 8192 /* punt totally */
8376 # endif /* no HAVE_SYS_PARAM_H */
8377 # endif /* no _SC_PAGESIZE */
8379 #endif /* no HAVE_GETPAGESIZE */
8382 extern "C" { void *malloc(unsigned); }
8390 char *data, *data2, *data3;
8394 pagesize = getpagesize();
8397 * First, make a file with some known garbage in it.
8399 data = malloc(pagesize);
8402 for (i = 0; i < pagesize; ++i)
8403 *(data + i) = rand();
8405 fd = creat("conftestmmap", 0600);
8408 if (write(fd, data, pagesize) != pagesize)
8413 * Next, try to mmap the file at a fixed address which
8414 * already has something else allocated at it. If we can,
8415 * also make sure that we see the same garbage.
8417 fd = open("conftestmmap", O_RDWR);
8420 data2 = malloc(2 * pagesize);
8423 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
8424 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
8425 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8427 for (i = 0; i < pagesize; ++i)
8428 if (*(data + i) != *(data2 + i))
8432 * Finally, make sure that changes to the mapped area
8433 * do not percolate back to the file as seen by read().
8434 * (This is a bug on some variants of i386 svr4.0.)
8436 for (i = 0; i < pagesize; ++i)
8437 *(data2 + i) = *(data2 + i) + 1;
8438 data3 = malloc(pagesize);
8441 if (read(fd, data3, pagesize) != pagesize)
8443 for (i = 0; i < pagesize; ++i)
8444 if (*(data + i) != *(data3 + i))
8447 unlink("conftestmmap");
8452 if { (eval echo configure:8453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8454 ac_cv_func_mmap_fixed_mapped=yes
8456 echo "configure: failed program was:" >&5
8457 cat conftest.$ac_ext >&5
8459 ac_cv_func_mmap_fixed_mapped=no
8466 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
8467 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8468 cat >> confdefs.h <<\EOF
8477 # Extract the first word of "$ac_prog", so it can be a program name with args.
8478 set dummy $ac_prog; ac_word=$2
8479 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8480 echo "configure:8481: checking for $ac_word" >&5
8481 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
8482 echo $ac_n "(cached) $ac_c" 1>&6
8484 if test -n "$PERL"; then
8485 ac_cv_prog_PERL="$PERL" # Let the user override the test.
8487 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8489 for ac_dir in $ac_dummy; do
8490 test -z "$ac_dir" && ac_dir=.
8491 if test -f $ac_dir/$ac_word; then
8492 ac_cv_prog_PERL="$ac_prog"
8499 PERL="$ac_cv_prog_PERL"
8500 if test -n "$PERL"; then
8501 echo "$ac_t""$PERL" 1>&6
8503 echo "$ac_t""no" 1>&6
8506 test -n "$PERL" && break
8508 test -n "$PERL" || PERL="false"
8516 SIGNAL_HANDLER=include/i386-signal.h
8518 sparc*-sun-solaris*)
8519 SIGNAL_HANDLER=include/sparc-signal.h
8522 # SYSDEP_SOURCES=sysdep/ia64.c
8523 # test -d sysdep || mkdir sysdep
8526 SIGNAL_HANDLER=include/pa-signal.h
8529 SIGNAL_HANDLER=include/dwarf2-signal.h
8532 SIGNAL_HANDLER=include/powerpc-signal.h
8535 SIGNAL_HANDLER=include/dwarf2-signal.h
8538 SIGNAL_HANDLER=include/s390-signal.h
8541 SIGNAL_HANDLER=include/x86_64-signal.h
8542 SIGNAL_HANDLER_AUX=include/i386-signal.h
8545 SIGNAL_HANDLER=include/dwarf2-signal.h
8547 sh-*-linux* | sh[34]*-*-linux*)
8548 SIGNAL_HANDLER=include/dwarf2-signal.h
8551 SIGNAL_HANDLER=include/win32-signal.h
8554 SIGNAL_HANDLER=include/mips-signal.h
8557 SIGNAL_HANDLER=include/darwin-signal.h
8560 SIGNAL_HANDLER=include/default-signal.h
8564 # If we're using sjlj exceptions, forget what we just learned.
8565 if test "$enable_sjlj_exceptions" = yes; then
8566 SIGNAL_HANDLER=include/default-signal.h
8570 # Define here any compiler flags that you need in order to make backtrace() work.
8573 x86_64*-*-linux*|i?86-*)
8574 BACKTRACESPEC=-fno-omit-frame-pointer
8581 if test -z "$SIGNAL_HANDLER_AUX"; then
8582 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
8587 if test "${multilib}" = "yes"; then
8588 multilib_arg="--enable-multilib"
8595 here=`${PWDCMD-pwd}`
8598 # We get this from the environment.
8602 cat > confcache <<\EOF
8603 # This file is a shell script that caches the results of configure
8604 # tests run on this system so they can be shared between configure
8605 # scripts and configure runs. It is not useful on other systems.
8606 # If it contains results you don't want to keep, you may remove or edit it.
8608 # By default, configure uses ./config.cache as the cache file,
8609 # creating it if it does not exist already. You can give configure
8610 # the --cache-file=FILE option to use a different cache file; that is
8611 # what configure does when it calls configure scripts in
8612 # subdirectories, so they share the cache.
8613 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8614 # config.status only pays attention to the cache file if you give it the
8615 # --recheck option to rerun configure.
8618 # The following way of writing the cache mishandles newlines in values,
8619 # but we know of no workaround that is simple, portable, and efficient.
8620 # So, don't put newlines in cache variables' values.
8621 # Ultrix sh set writes to stderr and can't be redirected directly,
8622 # and sets the high bit in the cache file unless we assign to the vars.
8624 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8626 # `set' does not quote correctly, so add quotes (double-quote substitution
8627 # turns \\\\ into \\, and sed turns \\ into \).
8629 -e "s/'/'\\\\''/g" \
8630 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8633 # `set' quotes correctly as required by POSIX, so do not add quotes.
8634 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8637 if cmp -s $cache_file confcache; then
8640 if test -w $cache_file; then
8641 echo "updating cache $cache_file"
8642 cat confcache > $cache_file
8644 echo "not updating unwritable cache $cache_file"
8649 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8651 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8652 # Let make expand exec_prefix.
8653 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8655 # Any assignment to VPATH causes Sun make to only execute
8656 # the first set of double-colon rules, so remove it if not needed.
8657 # If there is a colon in the path, we need to keep it.
8658 if test "x$srcdir" = x.; then
8659 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8662 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8664 DEFS=-DHAVE_CONFIG_H
8666 # Without the "./", some shells look in PATH for config.status.
8667 : ${CONFIG_STATUS=./config.status}
8669 echo creating $CONFIG_STATUS
8670 rm -f $CONFIG_STATUS
8671 cat > $CONFIG_STATUS <<EOF
8673 # Generated automatically by configure.
8674 # Run this file to recreate the current configuration.
8675 # This directory was configured as follows,
8676 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8678 # $0 $ac_configure_args
8680 # Compiler output produced by configure, useful for debugging
8681 # configure, is in ./config.log if it exists.
8683 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8686 case "\$ac_option" in
8687 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8688 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8689 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8690 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8691 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8693 -help | --help | --hel | --he | --h)
8694 echo "\$ac_cs_usage"; exit 0 ;;
8695 *) echo "\$ac_cs_usage"; exit 1 ;;
8699 ac_given_srcdir=$srcdir
8700 ac_given_INSTALL="$INSTALL"
8702 trap 'rm -fr `echo "Makefile libgcj.pc 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
8704 cat >> $CONFIG_STATUS <<EOF
8706 # Protect against being on the right side of a sed subst in config.status.
8707 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8708 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8712 s%@CFLAGS@%$CFLAGS%g
8713 s%@CPPFLAGS@%$CPPFLAGS%g
8714 s%@CXXFLAGS@%$CXXFLAGS%g
8715 s%@FFLAGS@%$FFLAGS%g
8717 s%@LDFLAGS@%$LDFLAGS%g
8719 s%@exec_prefix@%$exec_prefix%g
8720 s%@prefix@%$prefix%g
8721 s%@program_transform_name@%$program_transform_name%g
8722 s%@bindir@%$bindir%g
8723 s%@sbindir@%$sbindir%g
8724 s%@libexecdir@%$libexecdir%g
8725 s%@datadir@%$datadir%g
8726 s%@sysconfdir@%$sysconfdir%g
8727 s%@sharedstatedir@%$sharedstatedir%g
8728 s%@localstatedir@%$localstatedir%g
8729 s%@libdir@%$libdir%g
8730 s%@includedir@%$includedir%g
8731 s%@oldincludedir@%$oldincludedir%g
8732 s%@infodir@%$infodir%g
8733 s%@mandir@%$mandir%g
8734 s%@libgcj_basedir@%$libgcj_basedir%g
8736 s%@host_alias@%$host_alias%g
8737 s%@host_cpu@%$host_cpu%g
8738 s%@host_vendor@%$host_vendor%g
8739 s%@host_os@%$host_os%g
8740 s%@target@%$target%g
8741 s%@target_alias@%$target_alias%g
8742 s%@target_cpu@%$target_cpu%g
8743 s%@target_vendor@%$target_vendor%g
8744 s%@target_os@%$target_os%g
8746 s%@build_alias@%$build_alias%g
8747 s%@build_cpu@%$build_cpu%g
8748 s%@build_vendor@%$build_vendor%g
8749 s%@build_os@%$build_os%g
8751 s%@mkinstalldirs@%$mkinstalldirs%g
8753 s%@glibjava_CXX@%$glibjava_CXX%g
8755 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8756 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8757 s%@INSTALL_DATA@%$INSTALL_DATA%g
8758 s%@PACKAGE@%$PACKAGE%g
8759 s%@VERSION@%$VERSION%g
8760 s%@ACLOCAL@%$ACLOCAL%g
8761 s%@AUTOCONF@%$AUTOCONF%g
8762 s%@AUTOMAKE@%$AUTOMAKE%g
8763 s%@AUTOHEADER@%$AUTOHEADER%g
8764 s%@MAKEINFO@%$MAKEINFO%g
8765 s%@SET_MAKE@%$SET_MAKE%g
8768 s%@RANLIB@%$RANLIB%g
8769 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
8770 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
8772 s%@EXEEXT@%$EXEEXT%g
8773 s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
8774 s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
8775 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
8776 s%@INCLTDL@%$INCLTDL%g
8777 s%@LIBLTDL@%$LIBLTDL%g
8778 s%@DIRLTDL@%$DIRLTDL%g
8779 s%@OBJEXT@%$OBJEXT%g
8781 s%@LIBTOOL@%$LIBTOOL%g
8782 s%@CXXCPP@%$CXXCPP%g
8783 s%@subdirs@%$subdirs%g
8784 s%@COMPPATH@%$COMPPATH%g
8785 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
8786 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
8787 s%@ONESTEP_TRUE@%$ONESTEP_TRUE%g
8788 s%@ONESTEP_FALSE@%$ONESTEP_FALSE%g
8789 s%@LIBGCJDEBUG@%$LIBGCJDEBUG%g
8790 s%@INTERPRETER@%$INTERPRETER%g
8791 s%@LIBFFI@%$LIBFFI%g
8792 s%@LIBFFIINCS@%$LIBFFIINCS%g
8793 s%@EXTRA_CC_FILES@%$EXTRA_CC_FILES%g
8794 s%@PLATFORMOBJS@%$PLATFORMOBJS%g
8796 s%@SYSTEMSPEC@%$SYSTEMSPEC%g
8797 s%@LIBGCJTESTSPEC@%$LIBGCJTESTSPEC%g
8798 s%@ZLIBSPEC@%$ZLIBSPEC%g
8799 s%@ZLIBTESTSPEC@%$ZLIBTESTSPEC%g
8800 s%@X_CFLAGS@%$X_CFLAGS%g
8801 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
8802 s%@X_LIBS@%$X_LIBS%g
8803 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
8804 s%@TOOLKIT@%$TOOLKIT%g
8805 s%@XLIB_AWT_TRUE@%$XLIB_AWT_TRUE%g
8806 s%@XLIB_AWT_FALSE@%$XLIB_AWT_FALSE%g
8807 s%@GTK_AWT_TRUE@%$GTK_AWT_TRUE%g
8808 s%@GTK_AWT_FALSE@%$GTK_AWT_FALSE%g
8809 s%@GTK_CAIRO_TRUE@%$GTK_CAIRO_TRUE%g
8810 s%@GTK_CAIRO_FALSE@%$GTK_CAIRO_FALSE%g
8811 s%@PKG_CONFIG@%$PKG_CONFIG%g
8812 s%@CAIRO_CFLAGS@%$CAIRO_CFLAGS%g
8813 s%@CAIRO_LIBS@%$CAIRO_LIBS%g
8814 s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g
8815 s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g
8816 s%@GCLIBS@%$GCLIBS%g
8817 s%@GCINCS@%$GCINCS%g
8818 s%@GCDEPS@%$GCDEPS%g
8819 s%@GCOBJS@%$GCOBJS%g
8820 s%@GCSPEC@%$GCSPEC%g
8821 s%@JC1GCSPEC@%$JC1GCSPEC%g
8822 s%@GCTESTSPEC@%$GCTESTSPEC%g
8823 s%@THREADLIBS@%$THREADLIBS%g
8824 s%@THREADINCS@%$THREADINCS%g
8825 s%@THREADDEPS@%$THREADDEPS%g
8826 s%@THREADOBJS@%$THREADOBJS%g
8827 s%@THREADSPEC@%$THREADSPEC%g
8828 s%@THREADLDFLAGS@%$THREADLDFLAGS%g
8829 s%@THREADCXXFLAGS@%$THREADCXXFLAGS%g
8830 s%@HASH_SYNC_SPEC@%$HASH_SYNC_SPEC%g
8831 s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
8832 s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
8833 s%@tool_include_dir@%$tool_include_dir%g
8834 s%@gcc_version@%$gcc_version%g
8835 s%@LIBICONV@%$LIBICONV%g
8836 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
8837 s%@GTK_LIBS@%$GTK_LIBS%g
8838 s%@GLIB_CFLAGS@%$GLIB_CFLAGS%g
8839 s%@GLIB_LIBS@%$GLIB_LIBS%g
8840 s%@LIBART_CFLAGS@%$LIBART_CFLAGS%g
8841 s%@LIBART_LIBS@%$LIBART_LIBS%g
8845 s%@GCJFLAGS@%$GCJFLAGS%g
8847 s%@SYS_ZLIBS@%$SYS_ZLIBS%g
8849 s%@DIVIDESPEC@%$DIVIDESPEC%g
8850 s%@CHECKREFSPEC@%$CHECKREFSPEC%g
8851 s%@EXCEPTIONSPEC@%$EXCEPTIONSPEC%g
8852 s%@IEEESPEC@%$IEEESPEC%g
8853 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
8854 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
8855 s%@NEEDS_DATA_START_TRUE@%$NEEDS_DATA_START_TRUE%g
8856 s%@NEEDS_DATA_START_FALSE@%$NEEDS_DATA_START_FALSE%g
8857 s%@GCC_UNWIND_INCLUDE@%$GCC_UNWIND_INCLUDE%g
8858 s%@toolexecdir@%$toolexecdir%g
8859 s%@toolexecmainlibdir@%$toolexecmainlibdir%g
8860 s%@toolexeclibdir@%$toolexeclibdir%g
8861 s%@GCJVERSION@%$GCJVERSION%g
8862 s%@ALLOCA@%$ALLOCA%g
8864 s%@BACKTRACESPEC@%$BACKTRACESPEC%g
8865 s%@SYSDEP_SOURCES@%$SYSDEP_SOURCES%g
8871 cat >> $CONFIG_STATUS <<\EOF
8873 # Split the substitutions into bite-sized pieces for seds with
8874 # small command number limits, like on Digital OSF/1 and HP-UX.
8875 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8876 ac_file=1 # Number of current file.
8877 ac_beg=1 # First line for current file.
8878 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8881 while $ac_more_lines; do
8882 if test $ac_beg -gt 1; then
8883 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8885 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8887 if test ! -s conftest.s$ac_file; then
8889 rm -f conftest.s$ac_file
8891 if test -z "$ac_sed_cmds"; then
8892 ac_sed_cmds="sed -f conftest.s$ac_file"
8894 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8896 ac_file=`expr $ac_file + 1`
8898 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8901 if test -z "$ac_sed_cmds"; then
8906 cat >> $CONFIG_STATUS <<EOF
8908 CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.pc libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"}
8910 cat >> $CONFIG_STATUS <<\EOF
8911 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8912 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8914 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8915 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8916 *) ac_file_in="${ac_file}.in" ;;
8919 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8921 # Remove last slash and all that follows it. Not all systems have dirname.
8922 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8923 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8924 # The file is in a subdirectory.
8925 test ! -d "$ac_dir" && mkdir "$ac_dir"
8926 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8927 # A "../" for each directory in $ac_dir_suffix.
8928 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8930 ac_dir_suffix= ac_dots=
8933 case "$ac_given_srcdir" in
8935 if test -z "$ac_dots"; then top_srcdir=.
8936 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8937 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8939 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8940 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8943 case "$ac_given_INSTALL" in
8944 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8945 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8948 echo creating "$ac_file"
8950 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8952 *Makefile*) ac_comsub="1i\\
8953 # $configure_input" ;;
8957 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8959 s%@configure_input@%$configure_input%g
8960 s%@srcdir@%$srcdir%g
8961 s%@top_srcdir@%$top_srcdir%g
8962 s%@INSTALL@%$INSTALL%g
8963 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8967 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8968 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8970 # ac_d sets the value in "#define NAME VALUE" lines.
8971 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8972 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8975 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8976 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8977 ac_uB='\([ ]\)%\1#\2define\3'
8980 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8981 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8982 ac_eB='$%\1#\2define\3'
8986 if test "${CONFIG_HEADERS+set}" != set; then
8988 cat >> $CONFIG_STATUS <<EOF
8989 CONFIG_HEADERS="include/config.h gcj/libgcj-config.h"
8991 cat >> $CONFIG_STATUS <<\EOF
8993 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8994 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8996 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8997 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8998 *) ac_file_in="${ac_file}.in" ;;
9001 echo creating $ac_file
9003 rm -f conftest.frag conftest.in conftest.out
9004 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9005 cat $ac_file_inputs > conftest.in
9009 # Transform confdefs.h into a sed script conftest.vals that substitutes
9010 # the proper values into config.h.in to produce config.h. And first:
9011 # Protect against being on the right side of a sed subst in config.status.
9012 # Protect against being in an unquoted here document in config.status.
9014 cat > conftest.hdr <<\EOF
9017 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9021 sed -n -f conftest.hdr confdefs.h > conftest.vals
9024 # This sed command replaces #undef with comments. This is necessary, for
9025 # example, in the case of _POSIX_SOURCE, which is predefined and required
9026 # on some systems where configure will not decide to define it.
9027 cat >> conftest.vals <<\EOF
9028 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9031 # Break up conftest.vals because some shells have a limit on
9032 # the size of here documents, and old seds have small limits too.
9037 ac_lines=`grep -c . conftest.vals`
9038 # grep -c gives empty output for an empty file on some AIX systems.
9039 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9040 # Write a limited-size here document to conftest.frag.
9041 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9042 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9044 sed -f conftest.frag conftest.in > conftest.out
9046 mv conftest.out conftest.in
9048 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9050 mv conftest.tail conftest.vals
9054 cat >> $CONFIG_STATUS <<\EOF
9055 rm -f conftest.frag conftest.h
9056 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9057 cat conftest.in >> conftest.h
9059 if cmp -s $ac_file conftest.h 2>/dev/null; then
9060 echo "$ac_file is unchanged"
9063 # Remove last slash and all that follows it. Not all systems have dirname.
9064 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9065 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9066 # The file is in a subdirectory.
9067 test ! -d "$ac_dir" && mkdir "$ac_dir"
9070 mv conftest.h $ac_file
9076 cat >> $CONFIG_STATUS <<EOF
9077 ac_sources="include/$PLATFORMH java/io/natFile${FILE-${PLATFORM}}.cc java/lang/${PLATFORM}Process.java java/lang/nat${PLATFORM}Process.cc java/net/natInetAddress${PLATFORMNET}.cc java/net/natNetworkInterface${PLATFORMNET}.cc gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc gnu/java/nio/natPipeImpl${PLATFORM}.cc gnu/java/nio/natSelectorImpl${PLATFORM}.cc gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc include/$GCHDR include/$THREADH sysdep/$sysdeps_dir/locks.h $SIGNAL_HANDLER $SIGNAL_HANDLER_AUX"
9078 ac_dests="include/platform.h java/io/natFile.cc java/lang/ConcreteProcess.java java/lang/natConcreteProcess.cc java/net/natInetAddress.cc java/net/natNetworkInterface.cc gnu/java/net/natPlainSocketImpl.cc gnu/java/net/natPlainDatagramSocketImpl.cc gnu/java/nio/natPipeImpl.cc gnu/java/nio/natSelectorImpl.cc gnu/java/nio/channels/natFileChannelImpl.cc include/java-gc.h include/java-threads.h sysdep/locks.h include/java-signal.h include/java-signal-aux.h"
9081 cat >> $CONFIG_STATUS <<\EOF
9082 srcdir=$ac_given_srcdir
9083 while test -n "$ac_sources"; do
9084 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
9085 set $ac_sources; ac_source=$1; shift; ac_sources=$*
9087 echo "linking $srcdir/$ac_source to $ac_dest"
9089 if test ! -r $srcdir/$ac_source; then
9090 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
9094 # Make relative symlinks.
9095 # Remove last slash and all that follows it. Not all systems have dirname.
9096 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
9097 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
9098 # The dest file is in a subdirectory.
9099 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
9100 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
9101 # A "../" for each directory in $ac_dest_dir_suffix.
9102 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
9104 ac_dest_dir_suffix= ac_dots=
9108 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
9109 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
9112 # Make a symlink if possible; otherwise try a hard link.
9113 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9114 ln $srcdir/$ac_source $ac_dest; then :
9116 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
9120 cat >> $CONFIG_STATUS <<EOF
9125 with_multisubdir=${with_multisubdir}
9126 ac_configure_args="${multilib_arg} ${ac_configure_args}"
9127 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
9128 libgcj_basedir=${libgcj_basedir}
9131 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
9134 cat >> $CONFIG_STATUS <<\EOF
9136 for am_file in include/config.h gcj/libgcj-config.h; do
9137 case " $CONFIG_HEADERS " in
9139 echo timestamp > `echo $am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
9142 am_indx=`expr "$am_indx" + 1`
9144 # Only add multilib support code if we just rebuilt top-level Makefile.
9145 case " $CONFIG_FILES " in
9147 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
9148 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
9152 # Make subdirectories and `.d' files. Look in both srcdir and
9153 # builddir for the .java files.
9156 ( (cd $srcdir && find . \( -name '*.java' -o -name '*.cc' -o -name '*.c' \) -print) ;
9157 find . \( -name '*.java' -o -name '*.cc' -o -name '*.c' \) -print) | \
9158 fgrep -v testsuite | \
9159 sed -e 's/\.java/.d/'\;'s/\.cc/.d/'\;'s/\.c/.d/' | \
9161 echo "include $f" >> deps.mk
9164 d=`echo $f | sed -e 's,/[^/]*$,,'`
9166 if test ! -d $d; then
9167 $libgcj_basedir/../mkinstalldirs $d
9175 chmod +x $CONFIG_STATUS
9176 rm -fr confdefs* $ac_clean_files
9177 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9179 if test "$no_recursion" != yes; then
9181 # Remove --cache-file and --srcdir arguments so they do not pile up.
9182 ac_sub_configure_args=
9184 for ac_arg in $ac_configure_args; do
9185 if test -n "$ac_prev"; then
9190 -cache-file | --cache-file | --cache-fil | --cache-fi \
9191 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9192 ac_prev=cache_file ;;
9193 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
9194 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
9196 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9198 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9200 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
9204 for ac_config_dir in $DIRLTDL; do
9206 # Do not complain, so a configure script can configure whichever
9207 # parts of a large source tree are present.
9208 if test ! -d $srcdir/$ac_config_dir; then
9212 echo configuring in $ac_config_dir
9217 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
9219 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
9227 # A "../" for each directory in /$ac_config_dir.
9228 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
9231 .) # No --srcdir option. We are building in place.
9232 ac_sub_srcdir=$srcdir ;;
9233 /*) # Absolute path.
9234 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
9236 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
9239 # Check for guested configure; otherwise get Cygnus style configure.
9240 if test -f $ac_sub_srcdir/configure; then
9241 ac_sub_configure=$ac_sub_srcdir/configure
9242 elif test -f $ac_sub_srcdir/configure.in; then
9243 ac_sub_configure=$ac_configure
9245 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
9249 # The recursion is here.
9250 if test -n "$ac_sub_configure"; then
9252 # Make the cache file name correct relative to the subdirectory.
9253 case "$cache_file" in
9254 /*) ac_sub_cache_file=$cache_file ;;
9256 ac_sub_cache_file="$ac_dots$cache_file" ;;
9258 case "$ac_given_INSTALL" in
9259 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9260 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9263 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
9264 # The eval makes quoting arguments work.
9265 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
9268 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }