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-multilib build many library versions (default)"
24 --enable-maintainer-mode enable make rules and dependencies not useful
25 (and sometimes confusing) to the casual installer"
27 --enable-shared[=PKGS] build shared libraries [default=yes]"
29 --enable-static[=PKGS] build static libraries [default=yes]"
31 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
33 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
35 --disable-libtool-lock avoid locking (might break parallel builds)"
37 --with-pic try to use only PIC/non-PIC objects [default=use both]"
39 --disable-getenv-properties
40 don't set system properties from GCJ_PROPERTIES"
42 --enable-hash-synchronization
43 Use global hash table for monitor locks"
45 --enable-libgcj-debug enable runtime debugging code"
47 --enable-interpreter enable interpreter"
49 --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
51 --disable-java-net disable java.net"
53 --without-libffi don't use libffi"
55 --disable-jvmpi disable JVMPI support"
57 --with-ecos enable runtime eCos target support"
59 --with-system-zlib use installed libz"
61 --with-x use the X Window System"
63 --enable-java-awt list of AWT peer implementations to be built"
65 --enable-java-gc=TYPE choose garbage collector [boehm]"
67 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
69 --disable-gtktest do not try to compile and run a test GTK+ program"
71 --disable-glibtest do not try to compile and run a test GLIB program"
73 --with-libart-prefix=PFX Prefix where LIBART is installed (optional)"
75 --with-libart-exec-prefix=PFX Exec prefix where LIBART is installed (optional)"
77 --disable-libarttest Do not try to compile and run a test LIBART program"
79 # Initialize some variables set by options.
80 # The variables have the same names as the options, with
81 # dashes changed to underlines.
83 cache_file=./config.cache
92 program_transform_name=s,x,x,
100 bindir='${exec_prefix}/bin'
101 sbindir='${exec_prefix}/sbin'
102 libexecdir='${exec_prefix}/libexec'
103 datadir='${prefix}/share'
104 sysconfdir='${prefix}/etc'
105 sharedstatedir='${prefix}/com'
106 localstatedir='${prefix}/var'
107 libdir='${exec_prefix}/lib'
108 includedir='${prefix}/include'
109 oldincludedir='/usr/include'
110 infodir='${prefix}/info'
111 mandir='${prefix}/man'
113 # Initialize some other variables.
116 SHELL=${CONFIG_SHELL-/bin/sh}
117 # Maximum number of lines to put in a shell here document.
124 # If the previous option needs an argument, assign it.
125 if test -n "$ac_prev"; then
126 eval "$ac_prev=\$ac_option"
132 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
136 # Accept the important Cygnus configure options, so we can diagnose typos.
140 -bindir | --bindir | --bindi | --bind | --bin | --bi)
142 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
143 bindir="$ac_optarg" ;;
145 -build | --build | --buil | --bui | --bu)
147 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
148 build="$ac_optarg" ;;
150 -cache-file | --cache-file | --cache-fil | --cache-fi \
151 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
152 ac_prev=cache_file ;;
153 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
154 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
155 cache_file="$ac_optarg" ;;
157 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
159 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
161 datadir="$ac_optarg" ;;
163 -disable-* | --disable-*)
164 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
165 # Reject names that are not valid shell variable names.
166 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
167 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
169 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
170 eval "enable_${ac_feature}=no" ;;
172 -enable-* | --enable-*)
173 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
174 # Reject names that are not valid shell variable names.
175 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
176 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
178 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
183 eval "enable_${ac_feature}='$ac_optarg'" ;;
185 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
186 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
187 | --exec | --exe | --ex)
188 ac_prev=exec_prefix ;;
189 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
190 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
191 | --exec=* | --exe=* | --ex=*)
192 exec_prefix="$ac_optarg" ;;
194 -gas | --gas | --ga | --g)
195 # Obsolete; use --with-gas.
198 -help | --help | --hel | --he)
199 # Omit some internal or obsolete options to make the list less imposing.
200 # This message is too long to be a string in the A/UX 3.1 sh.
202 Usage: configure [options] [host]
203 Options: [defaults in brackets after descriptions]
205 --cache-file=FILE cache test results in FILE
206 --help print this message
207 --no-create do not create output files
208 --quiet, --silent do not print \`checking...' messages
209 --version print the version of autoconf that created configure
210 Directory and file names:
211 --prefix=PREFIX install architecture-independent files in PREFIX
213 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
215 --bindir=DIR user executables in DIR [EPREFIX/bin]
216 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
217 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
218 --datadir=DIR read-only architecture-independent data in DIR
220 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
221 --sharedstatedir=DIR modifiable architecture-independent data in DIR
223 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
224 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
225 --includedir=DIR C header files in DIR [PREFIX/include]
226 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
227 --infodir=DIR info documentation in DIR [PREFIX/info]
228 --mandir=DIR man documentation in DIR [PREFIX/man]
229 --srcdir=DIR find the sources in DIR [configure dir or ..]
230 --program-prefix=PREFIX prepend PREFIX to installed program names
231 --program-suffix=SUFFIX append SUFFIX to installed program names
232 --program-transform-name=PROGRAM
233 run sed PROGRAM on installed program names
237 --build=BUILD configure for building on BUILD [BUILD=HOST]
238 --host=HOST configure for HOST [guessed]
239 --target=TARGET configure for TARGET [TARGET=HOST]
240 Features and packages:
241 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
242 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
243 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
244 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
245 --x-includes=DIR X include files are in DIR
246 --x-libraries=DIR X library files are in DIR
248 if test -n "$ac_help"; then
249 echo "--enable and --with options recognized:$ac_help"
253 -host | --host | --hos | --ho)
255 -host=* | --host=* | --hos=* | --ho=*)
258 -includedir | --includedir | --includedi | --included | --include \
259 | --includ | --inclu | --incl | --inc)
260 ac_prev=includedir ;;
261 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
262 | --includ=* | --inclu=* | --incl=* | --inc=*)
263 includedir="$ac_optarg" ;;
265 -infodir | --infodir | --infodi | --infod | --info | --inf)
267 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
268 infodir="$ac_optarg" ;;
270 -libdir | --libdir | --libdi | --libd)
272 -libdir=* | --libdir=* | --libdi=* | --libd=*)
273 libdir="$ac_optarg" ;;
275 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
276 | --libexe | --libex | --libe)
277 ac_prev=libexecdir ;;
278 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
279 | --libexe=* | --libex=* | --libe=*)
280 libexecdir="$ac_optarg" ;;
282 -localstatedir | --localstatedir | --localstatedi | --localstated \
283 | --localstate | --localstat | --localsta | --localst \
284 | --locals | --local | --loca | --loc | --lo)
285 ac_prev=localstatedir ;;
286 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
287 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
288 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
289 localstatedir="$ac_optarg" ;;
291 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
293 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
294 mandir="$ac_optarg" ;;
297 # Obsolete; use --without-fp.
300 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
304 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
305 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
308 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
309 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
310 | --oldin | --oldi | --old | --ol | --o)
311 ac_prev=oldincludedir ;;
312 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
313 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
314 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
315 oldincludedir="$ac_optarg" ;;
317 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
319 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
320 prefix="$ac_optarg" ;;
322 -program-prefix | --program-prefix | --program-prefi | --program-pref \
323 | --program-pre | --program-pr | --program-p)
324 ac_prev=program_prefix ;;
325 -program-prefix=* | --program-prefix=* | --program-prefi=* \
326 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
327 program_prefix="$ac_optarg" ;;
329 -program-suffix | --program-suffix | --program-suffi | --program-suff \
330 | --program-suf | --program-su | --program-s)
331 ac_prev=program_suffix ;;
332 -program-suffix=* | --program-suffix=* | --program-suffi=* \
333 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
334 program_suffix="$ac_optarg" ;;
336 -program-transform-name | --program-transform-name \
337 | --program-transform-nam | --program-transform-na \
338 | --program-transform-n | --program-transform- \
339 | --program-transform | --program-transfor \
340 | --program-transfo | --program-transf \
341 | --program-trans | --program-tran \
342 | --progr-tra | --program-tr | --program-t)
343 ac_prev=program_transform_name ;;
344 -program-transform-name=* | --program-transform-name=* \
345 | --program-transform-nam=* | --program-transform-na=* \
346 | --program-transform-n=* | --program-transform-=* \
347 | --program-transform=* | --program-transfor=* \
348 | --program-transfo=* | --program-transf=* \
349 | --program-trans=* | --program-tran=* \
350 | --progr-tra=* | --program-tr=* | --program-t=*)
351 program_transform_name="$ac_optarg" ;;
353 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
354 | -silent | --silent | --silen | --sile | --sil)
357 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
359 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
361 sbindir="$ac_optarg" ;;
363 -sharedstatedir | --sharedstatedir | --sharedstatedi \
364 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
365 | --sharedst | --shareds | --shared | --share | --shar \
367 ac_prev=sharedstatedir ;;
368 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
369 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
370 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
372 sharedstatedir="$ac_optarg" ;;
374 -site | --site | --sit)
376 -site=* | --site=* | --sit=*)
379 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
381 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
382 srcdir="$ac_optarg" ;;
384 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
385 | --syscon | --sysco | --sysc | --sys | --sy)
386 ac_prev=sysconfdir ;;
387 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
388 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
389 sysconfdir="$ac_optarg" ;;
391 -target | --target | --targe | --targ | --tar | --ta | --t)
393 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
394 target="$ac_optarg" ;;
396 -v | -verbose | --verbose | --verbos | --verbo | --verb)
399 -version | --version | --versio | --versi | --vers)
400 echo "configure generated by autoconf version 2.13"
404 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
405 # Reject names that are not valid shell variable names.
406 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
407 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
409 ac_package=`echo $ac_package| sed 's/-/_/g'`
414 eval "with_${ac_package}='$ac_optarg'" ;;
416 -without-* | --without-*)
417 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
418 # Reject names that are not valid shell variable names.
419 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
420 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
422 ac_package=`echo $ac_package| sed 's/-/_/g'`
423 eval "with_${ac_package}=no" ;;
426 # Obsolete; use --with-x.
429 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
430 | --x-incl | --x-inc | --x-in | --x-i)
431 ac_prev=x_includes ;;
432 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
433 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
434 x_includes="$ac_optarg" ;;
436 -x-libraries | --x-libraries | --x-librarie | --x-librari \
437 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
438 ac_prev=x_libraries ;;
439 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
440 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
441 x_libraries="$ac_optarg" ;;
443 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
447 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
448 echo "configure: warning: $ac_option: invalid host type" 1>&2
450 if test "x$nonopt" != xNONE; then
451 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
459 if test -n "$ac_prev"; then
460 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
463 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
465 # File descriptor usage:
468 # 2 errors and warnings
469 # 3 some systems may open it to /dev/tty
470 # 4 used on the Kubota Titan
471 # 6 checking for... messages and results
472 # 5 compiler messages saved in config.log
473 if test "$silent" = yes; then
481 This file contains any messages produced by compilers while
482 running configure, to aid debugging if configure makes a mistake.
485 # Strip out --no-create and --no-recursion so they do not pile up.
486 # Also quote any args containing shell metacharacters.
491 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
492 | --no-cr | --no-c) ;;
493 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
494 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
495 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
496 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
497 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
502 # Only set these to C if already set. These must not be set unconditionally
503 # because not all systems understand e.g. LANG=C (notably SCO).
504 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
505 # Non-C LC_CTYPE values break the ctype check.
506 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
507 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
508 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
509 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
511 # confdefs.h avoids OS command line length limits that DEFS can exceed.
512 rm -rf conftest* confdefs.h
513 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
516 # A filename unique to this package, relative to the directory that
517 # configure is in, which we can look for to find out if srcdir is correct.
518 ac_unique_file=java/lang/System.java
520 # Find the source files, if location was not specified.
521 if test -z "$srcdir"; then
522 ac_srcdir_defaulted=yes
523 # Try the directory containing this script, then its parent.
525 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
526 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
528 if test ! -r $srcdir/$ac_unique_file; then
532 ac_srcdir_defaulted=no
534 if test ! -r $srcdir/$ac_unique_file; then
535 if test "$ac_srcdir_defaulted" = yes; then
536 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
538 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
541 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
543 # Prefer explicitly selected file to automatically selected ones.
544 if test -z "$CONFIG_SITE"; then
545 if test "x$prefix" != xNONE; then
546 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
548 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
551 for ac_site_file in $CONFIG_SITE; do
552 if test -r "$ac_site_file"; then
553 echo "loading site script $ac_site_file"
558 if test -r "$cache_file"; then
559 echo "loading cache $cache_file"
562 echo "creating cache $cache_file"
567 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
568 ac_cpp='$CPP $CPPFLAGS'
569 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
570 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
571 cross_compiling=$ac_cv_prog_cc_cross
575 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
576 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
577 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
584 ac_n= ac_c='\c' ac_t=
589 # This works around the fact that libtool configuration may change LD
590 # for this particular configuration, but some shells, instead of
591 # keeping the changes in LD private, export them just because LD is
593 ORIGINAL_LD_FOR_MULTILIBS=$LD
595 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
596 echo "configure:597: checking whether ln -s works" >&5
597 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
598 echo $ac_n "(cached) $ac_c" 1>&6
601 if ln -s X conftestdata 2>/dev/null
604 ac_cv_prog_LN_S="ln -s"
609 LN_S="$ac_cv_prog_LN_S"
610 if test "$ac_cv_prog_LN_S" = "ln -s"; then
611 echo "$ac_t""yes" 1>&6
613 echo "$ac_t""no" 1>&6
617 # Check whether --with-target-subdir or --without-target-subdir was given.
618 if test "${with_target_subdir+set}" = set; then
619 withval="$with_target_subdir"
623 # Check whether --with-cross-host or --without-cross-host was given.
624 if test "${with_cross_host+set}" = set; then
625 withval="$with_cross_host"
630 # Check whether --with-newlib or --without-newlib was given.
631 if test "${with_newlib+set}" = set; then
632 withval="$with_newlib"
637 # Find a good install program. We prefer a C program (faster),
638 # so one script is as good as another. But avoid the broken or
639 # incompatible versions:
640 # SysV /etc/install, /usr/sbin/install
641 # SunOS /usr/etc/install
644 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
645 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
646 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
647 # ./install, which can be erroneously created by make from ./install.sh.
648 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
649 echo "configure:650: checking for a BSD compatible install" >&5
650 if test -z "$INSTALL"; then
651 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
652 echo $ac_n "(cached) $ac_c" 1>&6
654 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
655 for ac_dir in $PATH; do
656 # Account for people who put trailing slashes in PATH elements.
658 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
660 # OSF1 and SCO ODT 3.0 have their own names for install.
661 # Don't use installbsd from OSF since it installs stuff as root
663 for ac_prog in ginstall scoinst install; do
664 if test -f $ac_dir/$ac_prog; then
665 if test $ac_prog = install &&
666 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
667 # AIX install. It has an incompatible calling convention.
670 ac_cv_path_install="$ac_dir/$ac_prog -c"
681 if test "${ac_cv_path_install+set}" = set; then
682 INSTALL="$ac_cv_path_install"
684 # As a last resort, use the slow shell script. We don't cache a
685 # path for INSTALL within a source directory, because that will
686 # break other packages using the cache if that directory is
687 # removed, or if the path is relative.
688 INSTALL="$ac_install_sh"
691 echo "$ac_t""$INSTALL" 1>&6
693 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
694 # It thinks the first close brace ends the variable substitution.
695 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
697 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
699 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
701 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
702 echo "configure:703: checking whether build environment is sane" >&5
705 echo timestamp > conftestfile
706 # Do `set' in a subshell so we don't clobber the current shell's
707 # arguments. Must try -L first in case configure is actually a
708 # symlink; some systems play weird games with the mod time of symlinks
709 # (eg FreeBSD returns the mod time of the symlink's containing
712 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
713 if test "$*" = "X"; then
715 set X `ls -t $srcdir/configure conftestfile`
717 if test "$*" != "X $srcdir/configure conftestfile" \
718 && test "$*" != "X conftestfile $srcdir/configure"; then
720 # If neither matched, then we have a broken ls. This can happen
721 # if, for instance, CONFIG_SHELL is bash and it inherits a
722 # broken ls alias from the environment. This has actually
723 # happened. Such a system could not be considered "sane".
724 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
725 alias in your environment" 1>&2; exit 1; }
728 test "$2" = conftestfile
734 { echo "configure: error: newly created file is older than distributed files!
735 Check your system clock" 1>&2; exit 1; }
738 echo "$ac_t""yes" 1>&6
739 if test "$program_transform_name" = s,x,x,; then
740 program_transform_name=
742 # Double any \ or $. echo might interpret backslashes.
743 cat <<\EOF_SED > conftestsed
744 s,\\,\\\\,g; s,\$,$$,g
746 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
749 test "$program_prefix" != NONE &&
750 program_transform_name="s,^,${program_prefix},; $program_transform_name"
751 # Use a double $ so make ignores it.
752 test "$program_suffix" != NONE &&
753 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
755 # sed with no file args requires a program.
756 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
758 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
759 echo "configure:760: checking whether ${MAKE-make} sets \${MAKE}" >&5
760 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
761 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
762 echo $ac_n "(cached) $ac_c" 1>&6
764 cat > conftestmake <<\EOF
766 @echo 'ac_maketemp="${MAKE}"'
768 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
769 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
770 if test -n "$ac_maketemp"; then
771 eval ac_cv_prog_make_${ac_make}_set=yes
773 eval ac_cv_prog_make_${ac_make}_set=no
777 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
778 echo "$ac_t""yes" 1>&6
781 echo "$ac_t""no" 1>&6
782 SET_MAKE="MAKE=${MAKE-make}"
785 if test $host != $build; then
786 ac_tool_prefix=${host_alias}-
791 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
792 echo "configure:793: checking for Cygwin environment" >&5
793 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
794 echo $ac_n "(cached) $ac_c" 1>&6
796 cat > conftest.$ac_ext <<EOF
797 #line 798 "configure"
798 #include "confdefs.h"
803 #define __CYGWIN__ __CYGWIN32__
808 if { (eval echo configure:809: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
812 echo "configure: failed program was:" >&5
813 cat conftest.$ac_ext >&5
821 echo "$ac_t""$ac_cv_cygwin" 1>&6
823 test "$ac_cv_cygwin" = yes && CYGWIN=yes
824 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
825 echo "configure:826: checking for mingw32 environment" >&5
826 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
827 echo $ac_n "(cached) $ac_c" 1>&6
829 cat > conftest.$ac_ext <<EOF
830 #line 831 "configure"
831 #include "confdefs.h"
837 if { (eval echo configure:838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
841 echo "configure: failed program was:" >&5
842 cat conftest.$ac_ext >&5
850 echo "$ac_t""$ac_cv_mingw32" 1>&6
852 test "$ac_cv_mingw32" = yes && MINGW32=yes
854 # Check whether --enable-multilib or --disable-multilib was given.
855 if test "${enable_multilib+set}" = set; then
856 enableval="$enable_multilib"
857 case "${enableval}" in
860 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
867 # When building with srcdir == objdir, links to the source files will
868 # be created in directories within the target_subdir. We have to
869 # adjust toplevel_srcdir accordingly, so that configure finds
870 # install-sh and other auxiliary files that live in the top-level
872 if test "${srcdir}" = "."; then
873 if test -z "${with_target_subdir}"; then
876 if test "${with_target_subdir}" != "."; then
877 toprel="${with_multisrctop}../.."
879 toprel="${with_multisrctop}.."
886 libgcj_basedir=$srcdir/$toprel/./libjava
890 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
891 if test -f $ac_dir/install-sh; then
893 ac_install_sh="$ac_aux_dir/install-sh -c"
895 elif test -f $ac_dir/install.sh; then
897 ac_install_sh="$ac_aux_dir/install.sh -c"
901 if test -z "$ac_aux_dir"; then
902 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
904 ac_config_guess=$ac_aux_dir/config.guess
905 ac_config_sub=$ac_aux_dir/config.sub
906 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
909 # This overrides the previous occurrence for automake, but not for
910 # autoconf, which is exactly what we want.
912 for ac_dir in .. $srcdir/..; do
913 if test -f $ac_dir/install-sh; then
915 ac_install_sh="$ac_aux_dir/install-sh -c"
917 elif test -f $ac_dir/install.sh; then
919 ac_install_sh="$ac_aux_dir/install.sh -c"
923 if test -z "$ac_aux_dir"; then
924 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
926 ac_config_guess=$ac_aux_dir/config.guess
927 ac_config_sub=$ac_aux_dir/config.sub
928 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
932 # This works around an automake problem.
933 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
937 # Do some error checking and defaulting for the host and target type.
939 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
942 # 1. You are not allowed to specify --host, --target, and nonopt at the
944 # 2. Host defaults to nonopt.
945 # 3. If nonopt is not specified, then host defaults to the current host,
946 # as determined by config.guess.
947 # 4. Target and build default to nonopt.
948 # 5. If nonopt is not specified, then target and build default to host.
950 # The aliases save the names the user supplied, while $host etc.
951 # will get canonicalized.
952 case $host---$target---$nonopt in
953 NONE---*---* | *---NONE---* | *---*---NONE) ;;
954 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
958 # Make sure we can run config.sub.
959 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
960 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
963 echo $ac_n "checking host system type""... $ac_c" 1>&6
964 echo "configure:965: checking host system type" >&5
967 case "$host_alias" in
971 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
972 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
974 *) host_alias=$nonopt ;;
978 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
979 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
980 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
981 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
982 echo "$ac_t""$host" 1>&6
984 echo $ac_n "checking target system type""... $ac_c" 1>&6
985 echo "configure:986: checking target system type" >&5
988 case "$target_alias" in
991 NONE) target_alias=$host_alias ;;
992 *) target_alias=$nonopt ;;
996 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
997 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
998 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
999 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1000 echo "$ac_t""$target" 1>&6
1002 echo $ac_n "checking build system type""... $ac_c" 1>&6
1003 echo "configure:1004: checking build system type" >&5
1006 case "$build_alias" in
1009 NONE) build_alias=$host_alias ;;
1010 *) build_alias=$nonopt ;;
1014 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1015 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1016 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1017 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1018 echo "$ac_t""$build" 1>&6
1020 test "$host_alias" != "$target_alias" &&
1021 test "$program_prefix$program_suffix$program_transform_name" = \
1023 program_prefix=${target_alias}-
1029 # Extract the first word of "gcc", so it can be a program name with args.
1030 set dummy gcc; ac_word=$2
1031 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1032 echo "configure:1033: checking for $ac_word" >&5
1033 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1034 echo $ac_n "(cached) $ac_c" 1>&6
1036 if test -n "$CC"; then
1037 ac_cv_prog_CC="$CC" # Let the user override the test.
1039 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1041 for ac_dir in $ac_dummy; do
1042 test -z "$ac_dir" && ac_dir=.
1043 if test -f $ac_dir/$ac_word; then
1052 if test -n "$CC"; then
1053 echo "$ac_t""$CC" 1>&6
1055 echo "$ac_t""no" 1>&6
1058 if test -z "$CC"; then
1059 # Extract the first word of "cc", so it can be a program name with args.
1060 set dummy cc; ac_word=$2
1061 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1062 echo "configure:1063: checking for $ac_word" >&5
1063 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1064 echo $ac_n "(cached) $ac_c" 1>&6
1066 if test -n "$CC"; then
1067 ac_cv_prog_CC="$CC" # Let the user override the test.
1069 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1072 for ac_dir in $ac_dummy; do
1073 test -z "$ac_dir" && ac_dir=.
1074 if test -f $ac_dir/$ac_word; then
1075 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1076 ac_prog_rejected=yes
1084 if test $ac_prog_rejected = yes; then
1085 # We found a bogon in the path, so make sure we never use it.
1086 set dummy $ac_cv_prog_CC
1088 if test $# -gt 0; then
1089 # We chose a different compiler from the bogus one.
1090 # However, it has the same basename, so the bogon will be chosen
1091 # first if we set CC to just the basename; use the full file name.
1093 set dummy "$ac_dir/$ac_word" "$@"
1101 if test -n "$CC"; then
1102 echo "$ac_t""$CC" 1>&6
1104 echo "$ac_t""no" 1>&6
1107 if test -z "$CC"; then
1108 case "`uname -s`" in
1110 # Extract the first word of "cl", so it can be a program name with args.
1111 set dummy cl; ac_word=$2
1112 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1113 echo "configure:1114: checking for $ac_word" >&5
1114 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1115 echo $ac_n "(cached) $ac_c" 1>&6
1117 if test -n "$CC"; then
1118 ac_cv_prog_CC="$CC" # Let the user override the test.
1120 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1122 for ac_dir in $ac_dummy; do
1123 test -z "$ac_dir" && ac_dir=.
1124 if test -f $ac_dir/$ac_word; then
1133 if test -n "$CC"; then
1134 echo "$ac_t""$CC" 1>&6
1136 echo "$ac_t""no" 1>&6
1141 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1145 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1146 echo "configure:1147: checking whether we are using GNU C" >&5
1147 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1148 echo $ac_n "(cached) $ac_c" 1>&6
1150 cat > conftest.c <<EOF
1155 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1156: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1162 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1164 if test $ac_cv_prog_gcc = yes; then
1170 ac_test_CFLAGS="${CFLAGS+set}"
1171 ac_save_CFLAGS="$CFLAGS"
1173 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1174 echo "configure:1175: checking whether ${CC-cc} accepts -g" >&5
1175 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1176 echo $ac_n "(cached) $ac_c" 1>&6
1178 echo 'void f(){}' > conftest.c
1179 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1188 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1189 if test "$ac_test_CFLAGS" = set; then
1190 CFLAGS="$ac_save_CFLAGS"
1191 elif test $ac_cv_prog_cc_g = yes; then
1192 if test "$GCC" = yes; then
1198 if test "$GCC" = yes; then
1206 # We use the libstdc++-v3 version of LIB_AC_PROG_CXX, but use
1207 # glibjava_CXX instead of glibcpp_CXX. That's because we're passed a
1208 # different definition of CXX than other directories, since we don't
1209 # depend on libstdc++-v3 having already been built.
1213 # Use glibjava_CXX so that we do not cause CXX to be cached with the
1214 # flags that come in CXX while configuring libjava. They're different
1215 # from those used for all other target libraries. If CXX is set in
1216 # the environment, respect that here.
1218 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1220 # Extract the first word of "$ac_prog", so it can be a program name with args.
1221 set dummy $ac_prog; ac_word=$2
1222 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1223 echo "configure:1224: checking for $ac_word" >&5
1224 if eval "test \"`echo '$''{'ac_cv_prog_glibjava_CXX'+set}'`\" = set"; then
1225 echo $ac_n "(cached) $ac_c" 1>&6
1227 if test -n "$glibjava_CXX"; then
1228 ac_cv_prog_glibjava_CXX="$glibjava_CXX" # Let the user override the test.
1230 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1232 for ac_dir in $ac_dummy; do
1233 test -z "$ac_dir" && ac_dir=.
1234 if test -f $ac_dir/$ac_word; then
1235 ac_cv_prog_glibjava_CXX="$ac_prog"
1242 glibjava_CXX="$ac_cv_prog_glibjava_CXX"
1243 if test -n "$glibjava_CXX"; then
1244 echo "$ac_t""$glibjava_CXX" 1>&6
1246 echo "$ac_t""no" 1>&6
1249 test -n "$glibjava_CXX" && break
1251 test -n "$glibjava_CXX" || glibjava_CXX="gcc"
1255 test -z "$glibjava_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1257 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1258 echo "configure:1259: checking whether we are using GNU C++" >&5
1259 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1260 echo $ac_n "(cached) $ac_c" 1>&6
1262 cat > conftest.C <<EOF
1267 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1274 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1276 if test $ac_cv_prog_gxx = yes; then
1278 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1279 ac_save_CXXFLAGS="$CXXFLAGS"
1281 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1282 echo "configure:1283: checking whether ${CXX-g++} accepts -g" >&5
1283 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1284 echo $ac_n "(cached) $ac_c" 1>&6
1286 echo 'void f(){}' > conftest.cc
1287 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1288 ac_cv_prog_cxx_g=yes
1296 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1297 if test "$ac_test_CXXFLAGS" = set; then
1298 CXXFLAGS="$ac_save_CXXFLAGS"
1299 elif test $ac_cv_prog_cxx_g = yes; then
1306 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1316 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1317 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1319 cat >> confdefs.h <<EOF
1320 #define PACKAGE "$PACKAGE"
1323 cat >> confdefs.h <<EOF
1324 #define VERSION "$VERSION"
1329 missing_dir=`cd $ac_aux_dir && pwd`
1330 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1331 echo "configure:1332: checking for working aclocal" >&5
1332 # Run test in a subshell; some versions of sh will print an error if
1333 # an executable is not found, even if stderr is redirected.
1334 # Redirect stdin to placate older versions of autoconf. Sigh.
1335 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1337 echo "$ac_t""found" 1>&6
1339 ACLOCAL="$missing_dir/missing aclocal"
1340 echo "$ac_t""missing" 1>&6
1343 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1344 echo "configure:1345: checking for working autoconf" >&5
1345 # Run test in a subshell; some versions of sh will print an error if
1346 # an executable is not found, even if stderr is redirected.
1347 # Redirect stdin to placate older versions of autoconf. Sigh.
1348 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1350 echo "$ac_t""found" 1>&6
1352 AUTOCONF="$missing_dir/missing autoconf"
1353 echo "$ac_t""missing" 1>&6
1356 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1357 echo "configure:1358: checking for working automake" >&5
1358 # Run test in a subshell; some versions of sh will print an error if
1359 # an executable is not found, even if stderr is redirected.
1360 # Redirect stdin to placate older versions of autoconf. Sigh.
1361 if (automake --version) < /dev/null > /dev/null 2>&1; then
1363 echo "$ac_t""found" 1>&6
1365 AUTOMAKE="$missing_dir/missing automake"
1366 echo "$ac_t""missing" 1>&6
1369 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1370 echo "configure:1371: checking for working autoheader" >&5
1371 # Run test in a subshell; some versions of sh will print an error if
1372 # an executable is not found, even if stderr is redirected.
1373 # Redirect stdin to placate older versions of autoconf. Sigh.
1374 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1375 AUTOHEADER=autoheader
1376 echo "$ac_t""found" 1>&6
1378 AUTOHEADER="$missing_dir/missing autoheader"
1379 echo "$ac_t""missing" 1>&6
1382 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1383 echo "configure:1384: checking for working makeinfo" >&5
1384 # Run test in a subshell; some versions of sh will print an error if
1385 # an executable is not found, even if stderr is redirected.
1386 # Redirect stdin to placate older versions of autoconf. Sigh.
1387 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1389 echo "$ac_t""found" 1>&6
1391 MAKEINFO="$missing_dir/missing makeinfo"
1392 echo "$ac_t""missing" 1>&6
1397 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1398 set dummy ${ac_tool_prefix}as; ac_word=$2
1399 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1400 echo "configure:1401: checking for $ac_word" >&5
1401 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1402 echo $ac_n "(cached) $ac_c" 1>&6
1404 if test -n "$AS"; then
1405 ac_cv_prog_AS="$AS" # Let the user override the test.
1407 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1409 for ac_dir in $ac_dummy; do
1410 test -z "$ac_dir" && ac_dir=.
1411 if test -f $ac_dir/$ac_word; then
1412 ac_cv_prog_AS="${ac_tool_prefix}as"
1417 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1421 if test -n "$AS"; then
1422 echo "$ac_t""$AS" 1>&6
1424 echo "$ac_t""no" 1>&6
1429 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1430 set dummy ${ac_tool_prefix}ar; ac_word=$2
1431 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1432 echo "configure:1433: checking for $ac_word" >&5
1433 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1434 echo $ac_n "(cached) $ac_c" 1>&6
1436 if test -n "$AR"; then
1437 ac_cv_prog_AR="$AR" # Let the user override the test.
1439 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1441 for ac_dir in $ac_dummy; do
1442 test -z "$ac_dir" && ac_dir=.
1443 if test -f $ac_dir/$ac_word; then
1444 ac_cv_prog_AR="${ac_tool_prefix}ar"
1449 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1453 if test -n "$AR"; then
1454 echo "$ac_t""$AR" 1>&6
1456 echo "$ac_t""no" 1>&6
1461 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1462 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1463 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1464 echo "configure:1465: checking for $ac_word" >&5
1465 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1466 echo $ac_n "(cached) $ac_c" 1>&6
1468 if test -n "$RANLIB"; then
1469 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1471 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1473 for ac_dir in $ac_dummy; do
1474 test -z "$ac_dir" && ac_dir=.
1475 if test -f $ac_dir/$ac_word; then
1476 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1483 RANLIB="$ac_cv_prog_RANLIB"
1484 if test -n "$RANLIB"; then
1485 echo "$ac_t""$RANLIB" 1>&6
1487 echo "$ac_t""no" 1>&6
1491 if test -z "$ac_cv_prog_RANLIB"; then
1492 if test -n "$ac_tool_prefix"; then
1493 # Extract the first word of "ranlib", so it can be a program name with args.
1494 set dummy ranlib; ac_word=$2
1495 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1496 echo "configure:1497: checking for $ac_word" >&5
1497 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1498 echo $ac_n "(cached) $ac_c" 1>&6
1500 if test -n "$RANLIB"; then
1501 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1503 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1505 for ac_dir in $ac_dummy; do
1506 test -z "$ac_dir" && ac_dir=.
1507 if test -f $ac_dir/$ac_word; then
1508 ac_cv_prog_RANLIB="ranlib"
1513 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1516 RANLIB="$ac_cv_prog_RANLIB"
1517 if test -n "$RANLIB"; then
1518 echo "$ac_t""$RANLIB" 1>&6
1520 echo "$ac_t""no" 1>&6
1529 # Find a good install program. We prefer a C program (faster),
1530 # so one script is as good as another. But avoid the broken or
1531 # incompatible versions:
1532 # SysV /etc/install, /usr/sbin/install
1533 # SunOS /usr/etc/install
1534 # IRIX /sbin/install
1536 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1537 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1538 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1539 # ./install, which can be erroneously created by make from ./install.sh.
1540 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1541 echo "configure:1542: checking for a BSD compatible install" >&5
1542 if test -z "$INSTALL"; then
1543 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1544 echo $ac_n "(cached) $ac_c" 1>&6
1546 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1547 for ac_dir in $PATH; do
1548 # Account for people who put trailing slashes in PATH elements.
1550 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1552 # OSF1 and SCO ODT 3.0 have their own names for install.
1553 # Don't use installbsd from OSF since it installs stuff as root
1555 for ac_prog in ginstall scoinst install; do
1556 if test -f $ac_dir/$ac_prog; then
1557 if test $ac_prog = install &&
1558 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1559 # AIX install. It has an incompatible calling convention.
1562 ac_cv_path_install="$ac_dir/$ac_prog -c"
1573 if test "${ac_cv_path_install+set}" = set; then
1574 INSTALL="$ac_cv_path_install"
1576 # As a last resort, use the slow shell script. We don't cache a
1577 # path for INSTALL within a source directory, because that will
1578 # break other packages using the cache if that directory is
1579 # removed, or if the path is relative.
1580 INSTALL="$ac_install_sh"
1583 echo "$ac_t""$INSTALL" 1>&6
1585 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1586 # It thinks the first close brace ends the variable substitution.
1587 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1589 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1591 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1594 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1595 echo "configure:1596: checking whether to enable maintainer-specific portions of Makefiles" >&5
1596 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1597 if test "${enable_maintainer_mode+set}" = set; then
1598 enableval="$enable_maintainer_mode"
1599 USE_MAINTAINER_MODE=$enableval
1601 USE_MAINTAINER_MODE=no
1604 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1607 if test $USE_MAINTAINER_MODE = yes; then
1608 MAINTAINER_MODE_TRUE=
1609 MAINTAINER_MODE_FALSE='#'
1611 MAINTAINER_MODE_TRUE='#'
1612 MAINTAINER_MODE_FALSE=
1614 MAINT=$MAINTAINER_MODE_TRUE
1620 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1621 echo "configure:1622: checking for executable suffix" >&5
1622 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1623 echo $ac_n "(cached) $ac_c" 1>&6
1625 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1629 echo 'int main () { return 0; }' > conftest.$ac_ext
1631 if { (eval echo configure:1632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1632 for file in conftest.*; do
1634 *.$ac_ext | *.c | *.o | *.obj) ;;
1635 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1639 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1642 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1647 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1648 echo "$ac_t""${ac_cv_exeext}" 1>&6
1652 # configure.host sets the following important variables
1653 # libgcj_cflags - host specific C compiler flags
1654 # libgcj_cxxflags - host specific C++ compiler flags
1655 # libgcj_javaflags - host specific Java compiler flags
1661 . ${srcdir}/configure.host
1663 LIBGCJ_CFLAGS="${libgcj_cflags}"
1664 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
1665 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
1675 # Only use libltdl for non-newlib builds.
1676 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
1677 case $enable_ltdl_convenience in
1678 no) { echo "configure: error: this package needs a convenience libltdl" 1>&2; exit 1; } ;;
1679 "") enable_ltdl_convenience=yes
1680 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
1682 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
1683 INCLTDL='-I${top_srcdir}/''libltdl'
1687 cat >> confdefs.h <<\EOF
1691 # Sigh. Libtool's macro doesn't do the right thing.
1692 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
1693 # FIXME: this is a hack.
1694 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
1695 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
1700 # Check whether --enable-shared or --disable-shared was given.
1701 if test "${enable_shared+set}" = set; then
1702 enableval="$enable_shared"
1703 p=${PACKAGE-default}
1705 yes) enable_shared=yes ;;
1706 no) enable_shared=no ;;
1709 # Look at the argument we got. We use all the common list separators.
1710 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1711 for pkg in $enableval; do
1712 if test "X$pkg" = "X$p"; then
1723 # Check whether --enable-static or --disable-static was given.
1724 if test "${enable_static+set}" = set; then
1725 enableval="$enable_static"
1726 p=${PACKAGE-default}
1728 yes) enable_static=yes ;;
1729 no) enable_static=no ;;
1732 # Look at the argument we got. We use all the common list separators.
1733 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1734 for pkg in $enableval; do
1735 if test "X$pkg" = "X$p"; then
1746 # Check whether --enable-fast-install or --disable-fast-install was given.
1747 if test "${enable_fast_install+set}" = set; then
1748 enableval="$enable_fast_install"
1749 p=${PACKAGE-default}
1751 yes) enable_fast_install=yes ;;
1752 no) enable_fast_install=no ;;
1754 enable_fast_install=no
1755 # Look at the argument we got. We use all the common list separators.
1756 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1757 for pkg in $enableval; do
1758 if test "X$pkg" = "X$p"; then
1759 enable_fast_install=yes
1766 enable_fast_install=yes
1769 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1770 if test "${with_gnu_ld+set}" = set; then
1771 withval="$with_gnu_ld"
1772 test "$withval" = no || with_gnu_ld=yes
1778 if test "$GCC" = yes; then
1779 # Check if gcc -print-prog-name=ld gives a path.
1780 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1781 echo "configure:1782: checking for ld used by GCC" >&5
1784 # gcc leaves a trailing carriage return which upsets mingw
1785 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1787 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1790 # Accept absolute paths.
1791 [\\/]* | [A-Za-z]:[\\/]*)
1792 re_direlt='/[^/][^/]*/\.\./'
1793 # Canonicalize the path of ld
1794 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1795 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1796 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1798 test -z "$LD" && LD="$ac_prog"
1801 # If it fails, then pretend we aren't using GCC.
1805 # If it is relative, then search for the first ld in PATH.
1809 elif test "$with_gnu_ld" = yes; then
1810 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1811 echo "configure:1812: checking for GNU ld" >&5
1813 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1814 echo "configure:1815: checking for non-GNU ld" >&5
1816 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1817 echo $ac_n "(cached) $ac_c" 1>&6
1819 if test -z "$LD"; then
1820 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1821 for ac_dir in $PATH; do
1822 test -z "$ac_dir" && ac_dir=.
1823 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1824 lt_cv_path_LD="$ac_dir/$ac_prog"
1825 # Check to see if the program is GNU ld. I'd rather use --version,
1826 # but apparently some GNU ld's only accept -v.
1827 # Break only if it was the GNU/non-GNU ld that we prefer.
1828 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1829 test "$with_gnu_ld" != no && break
1831 test "$with_gnu_ld" != yes && break
1837 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1842 if test -n "$LD"; then
1843 echo "$ac_t""$LD" 1>&6
1845 echo "$ac_t""no" 1>&6
1847 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1848 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1849 echo "configure:1850: checking if the linker ($LD) is GNU ld" >&5
1850 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1851 echo $ac_n "(cached) $ac_c" 1>&6
1853 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1854 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1855 lt_cv_prog_gnu_ld=yes
1857 lt_cv_prog_gnu_ld=no
1861 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1862 with_gnu_ld=$lt_cv_prog_gnu_ld
1865 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1866 echo "configure:1867: checking for $LD option to reload object files" >&5
1867 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1868 echo $ac_n "(cached) $ac_c" 1>&6
1870 lt_cv_ld_reload_flag='-r'
1873 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1874 reload_flag=$lt_cv_ld_reload_flag
1875 test -n "$reload_flag" && reload_flag=" $reload_flag"
1877 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1878 echo "configure:1879: checking for BSD-compatible nm" >&5
1879 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1880 echo $ac_n "(cached) $ac_c" 1>&6
1882 if test -n "$NM"; then
1883 # Let the user override the test.
1886 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1887 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1888 test -z "$ac_dir" && ac_dir=.
1889 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1890 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1891 # Check to see if the nm accepts a BSD-compat flag.
1892 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1893 # nm: unknown option "B" ignored
1894 # Tru64's nm complains that /dev/null is an invalid object file
1895 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1896 lt_cv_path_NM="$tmp_nm -B"
1898 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1899 lt_cv_path_NM="$tmp_nm -p"
1902 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1903 continue # so that we can try to find one that supports BSD flags
1908 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1913 echo "$ac_t""$NM" 1>&6
1915 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1916 echo "configure:1917: checking how to recognise dependant libraries" >&5
1917 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1918 echo $ac_n "(cached) $ac_c" 1>&6
1920 lt_cv_file_magic_cmd='$MAGIC_CMD'
1921 lt_cv_file_magic_test_file=
1922 lt_cv_deplibs_check_method='unknown'
1923 # Need to set the preceding variable on all platforms that support
1924 # interlibrary dependencies.
1925 # 'none' -- dependencies not supported.
1926 # `unknown' -- same as none, but documents that we really don't know.
1927 # 'pass_all' -- all dependencies passed with no checks.
1928 # 'test_compile' -- check by making test program.
1929 # 'file_magic [regex]' -- check by looking for files in library path
1930 # which responds to the $file_magic_cmd with a given egrep regex.
1931 # If you have `file' or equivalent on your system and you're not sure
1932 # whether `pass_all' will *always* work, you probably want this one.
1936 lt_cv_deplibs_check_method=pass_all
1940 lt_cv_deplibs_check_method=pass_all
1944 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1945 lt_cv_file_magic_cmd='/usr/bin/file -L'
1946 lt_cv_file_magic_test_file=/shlib/libc.so
1949 cygwin* | mingw* |pw32*)
1950 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1951 lt_cv_file_magic_cmd='$OBJDUMP -f'
1954 darwin* | rhapsody*)
1955 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1956 lt_cv_file_magic_cmd='/usr/bin/file -L'
1958 rhapsody* | darwin1.012)
1959 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1962 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1968 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1971 # Not sure whether the presence of OpenBSD here was a mistake.
1972 # Let's accept both of them until this is cleared up.
1973 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1974 lt_cv_file_magic_cmd=/usr/bin/file
1975 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1979 lt_cv_deplibs_check_method=pass_all
1984 lt_cv_deplibs_check_method=pass_all
1990 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1991 lt_cv_file_magic_cmd=/usr/bin/file
1992 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1995 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1996 lt_cv_file_magic_cmd=/usr/bin/file
1997 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2005 # this will be overridden with pass_all, but let us keep it just in case
2006 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2010 *-32|*"-32 ") libmagic=32-bit;;
2011 *-n32|*"-n32 ") libmagic=N32;;
2012 *-64|*"-64 ") libmagic=64-bit;;
2013 *) libmagic=never-match;;
2015 # this will be overridden with pass_all, but let us keep it just in case
2016 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2019 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2020 lt_cv_deplibs_check_method=pass_all
2023 # This must be Linux ELF.
2026 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2027 lt_cv_deplibs_check_method=pass_all ;;
2029 # glibc up to 2.1.1 does not perform some relocations on ARM
2030 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2032 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2036 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2037 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2039 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2044 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2045 lt_cv_file_magic_cmd=/usr/bin/file
2046 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2049 osf3* | osf4* | osf5*)
2050 # this will be overridden with pass_all, but let us keep it just in case
2051 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2052 lt_cv_file_magic_test_file=/shlib/libc.so
2053 lt_cv_deplibs_check_method=pass_all
2057 lt_cv_deplibs_check_method=pass_all
2061 lt_cv_deplibs_check_method=pass_all
2062 lt_cv_file_magic_test_file=/lib/libc.so
2065 sysv5uw[78]* | sysv4*uw2*)
2066 lt_cv_deplibs_check_method=pass_all
2069 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2070 case $host_vendor in
2072 lt_cv_deplibs_check_method=pass_all
2075 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]'
2076 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2084 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2085 file_magic_cmd=$lt_cv_file_magic_cmd
2086 deplibs_check_method=$lt_cv_deplibs_check_method
2088 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2089 echo "configure:2090: checking for object suffix" >&5
2090 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2091 echo $ac_n "(cached) $ac_c" 1>&6
2094 echo 'int i = 1;' > conftest.$ac_ext
2095 if { (eval echo configure:2096: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2096 for ac_file in conftest.*; do
2099 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2103 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2108 echo "$ac_t""$ac_cv_objext" 1>&6
2109 OBJEXT=$ac_cv_objext
2110 ac_objext=$ac_cv_objext
2112 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2114 # Only perform the check for file, if the check method requires it
2115 case $deplibs_check_method in
2117 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2118 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2119 echo "configure:2120: checking for ${ac_tool_prefix}file" >&5
2120 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2121 echo $ac_n "(cached) $ac_c" 1>&6
2125 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2128 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2131 ac_save_MAGIC_CMD="$MAGIC_CMD"
2132 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2133 ac_dummy="/usr/bin:$PATH"
2134 for ac_dir in $ac_dummy; do
2135 test -z "$ac_dir" && ac_dir=.
2136 if test -f $ac_dir/${ac_tool_prefix}file; then
2137 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2138 if test -n "$file_magic_test_file"; then
2139 case $deplibs_check_method in
2141 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2142 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2143 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2144 egrep "$file_magic_regex" > /dev/null; then
2149 *** Warning: the command libtool uses to detect shared libraries,
2150 *** $file_magic_cmd, produces output that libtool cannot recognize.
2151 *** The result is that libtool may fail to recognize shared libraries
2152 *** as such. This will affect the creation of libtool libraries that
2153 *** depend on shared libraries, but programs linked with such libtool
2154 *** libraries will work regardless of this problem. Nevertheless, you
2155 *** may want to report the problem to your system manager and/or to
2156 *** bug-libtool@gnu.org
2166 MAGIC_CMD="$ac_save_MAGIC_CMD"
2171 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2172 if test -n "$MAGIC_CMD"; then
2173 echo "$ac_t""$MAGIC_CMD" 1>&6
2175 echo "$ac_t""no" 1>&6
2178 if test -z "$lt_cv_path_MAGIC_CMD"; then
2179 if test -n "$ac_tool_prefix"; then
2180 echo $ac_n "checking for file""... $ac_c" 1>&6
2181 echo "configure:2182: checking for file" >&5
2182 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2183 echo $ac_n "(cached) $ac_c" 1>&6
2187 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2190 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2193 ac_save_MAGIC_CMD="$MAGIC_CMD"
2194 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2195 ac_dummy="/usr/bin:$PATH"
2196 for ac_dir in $ac_dummy; do
2197 test -z "$ac_dir" && ac_dir=.
2198 if test -f $ac_dir/file; then
2199 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2200 if test -n "$file_magic_test_file"; then
2201 case $deplibs_check_method in
2203 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2204 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2205 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2206 egrep "$file_magic_regex" > /dev/null; then
2211 *** Warning: the command libtool uses to detect shared libraries,
2212 *** $file_magic_cmd, produces output that libtool cannot recognize.
2213 *** The result is that libtool may fail to recognize shared libraries
2214 *** as such. This will affect the creation of libtool libraries that
2215 *** depend on shared libraries, but programs linked with such libtool
2216 *** libraries will work regardless of this problem. Nevertheless, you
2217 *** may want to report the problem to your system manager and/or to
2218 *** bug-libtool@gnu.org
2228 MAGIC_CMD="$ac_save_MAGIC_CMD"
2233 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2234 if test -n "$MAGIC_CMD"; then
2235 echo "$ac_t""$MAGIC_CMD" 1>&6
2237 echo "$ac_t""no" 1>&6
2249 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2250 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2251 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2252 echo "configure:2253: checking for $ac_word" >&5
2253 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2254 echo $ac_n "(cached) $ac_c" 1>&6
2256 if test -n "$RANLIB"; then
2257 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2259 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2261 for ac_dir in $ac_dummy; do
2262 test -z "$ac_dir" && ac_dir=.
2263 if test -f $ac_dir/$ac_word; then
2264 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2271 RANLIB="$ac_cv_prog_RANLIB"
2272 if test -n "$RANLIB"; then
2273 echo "$ac_t""$RANLIB" 1>&6
2275 echo "$ac_t""no" 1>&6
2279 if test -z "$ac_cv_prog_RANLIB"; then
2280 if test -n "$ac_tool_prefix"; then
2281 # Extract the first word of "ranlib", so it can be a program name with args.
2282 set dummy 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="ranlib"
2301 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2304 RANLIB="$ac_cv_prog_RANLIB"
2305 if test -n "$RANLIB"; then
2306 echo "$ac_t""$RANLIB" 1>&6
2308 echo "$ac_t""no" 1>&6
2316 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2317 set dummy ${ac_tool_prefix}strip; ac_word=$2
2318 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2319 echo "configure:2320: checking for $ac_word" >&5
2320 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2321 echo $ac_n "(cached) $ac_c" 1>&6
2323 if test -n "$STRIP"; then
2324 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2326 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2328 for ac_dir in $ac_dummy; do
2329 test -z "$ac_dir" && ac_dir=.
2330 if test -f $ac_dir/$ac_word; then
2331 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2338 STRIP="$ac_cv_prog_STRIP"
2339 if test -n "$STRIP"; then
2340 echo "$ac_t""$STRIP" 1>&6
2342 echo "$ac_t""no" 1>&6
2346 if test -z "$ac_cv_prog_STRIP"; then
2347 if test -n "$ac_tool_prefix"; then
2348 # Extract the first word of "strip", so it can be a program name with args.
2349 set dummy 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="strip"
2368 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2371 STRIP="$ac_cv_prog_STRIP"
2372 if test -n "$STRIP"; then
2373 echo "$ac_t""$STRIP" 1>&6
2375 echo "$ac_t""no" 1>&6
2384 # Check for any special flags to pass to ltconfig.
2385 libtool_flags="--cache-file=$cache_file"
2386 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2387 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2388 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2389 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2390 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2391 libtool_flags="$libtool_flags --enable-dlopen"
2393 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2394 if test "${enable_libtool_lock+set}" = set; then
2395 enableval="$enable_libtool_lock"
2399 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2400 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2402 # Check whether --with-pic or --without-pic was given.
2403 if test "${with_pic+set}" = set; then
2410 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2411 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2413 # Some flags need to be propagated to the compiler or linker for good
2417 # Find out which ABI we are using.
2418 echo '#line 2419 "configure"' > conftest.$ac_ext
2419 if { (eval echo configure:2420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2420 if test "$lt_cv_prog_gnu_ld" = yes; then
2421 case `/usr/bin/file conftest.$ac_objext` in
2423 LD="${LD-ld} -melf32bsmip"
2426 LD="${LD-ld} -melf32bmipn32"
2429 LD="${LD-ld} -melf64bmip"
2433 case `/usr/bin/file conftest.$ac_objext` in
2450 # Find out which ABI we are using.
2451 echo 'int i;' > conftest.$ac_ext
2452 if { (eval echo configure:2453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2453 case "`/usr/bin/file conftest.o`" in
2465 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
2466 # Find out which ABI we are using.
2467 echo 'int i;' > conftest.$ac_ext
2468 if { (eval echo configure:2469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2469 case "`/usr/bin/file conftest.o`" in
2473 LD="${LD-ld} -m elf_i386"
2475 ppc64-*linux*|powerpc64-*linux*)
2476 LD="${LD-ld} -m elf32ppclinux"
2479 LD="${LD-ld} -m elf_s390"
2482 LD="${LD-ld} -m elf32_sparc"
2489 LD="${LD-ld} -m elf_x86_64"
2491 ppc*-*linux*|powerpc*-*linux*)
2492 LD="${LD-ld} -m elf64ppc"
2495 LD="${LD-ld} -m elf64_s390"
2498 LD="${LD-ld} -m elf64_sparc"
2508 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2509 SAVE_CFLAGS="$CFLAGS"
2510 CFLAGS="$CFLAGS -belf"
2511 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2512 echo "configure:2513: checking whether the C compiler needs -belf" >&5
2513 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2514 echo $ac_n "(cached) $ac_c" 1>&6
2518 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2519 ac_cpp='$CPP $CPPFLAGS'
2520 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2521 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2522 cross_compiling=$ac_cv_prog_cc_cross
2524 cat > conftest.$ac_ext <<EOF
2525 #line 2526 "configure"
2526 #include "confdefs.h"
2532 if { (eval echo configure:2533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2534 lt_cv_cc_needs_belf=yes
2536 echo "configure: failed program was:" >&5
2537 cat conftest.$ac_ext >&5
2539 lt_cv_cc_needs_belf=no
2543 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2544 ac_cpp='$CPP $CPPFLAGS'
2545 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2546 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2547 cross_compiling=$ac_cv_prog_cc_cross
2551 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2552 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2553 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2554 CFLAGS="$SAVE_CFLAGS"
2561 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2562 echo "configure:2563: checking how to run the C++ preprocessor" >&5
2563 if test -z "$CXXCPP"; then
2564 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2565 echo $ac_n "(cached) $ac_c" 1>&6
2568 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2569 ac_cpp='$CXXCPP $CPPFLAGS'
2570 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2571 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2572 cross_compiling=$ac_cv_prog_cxx_cross
2573 CXXCPP="${CXX-g++} -E"
2574 cat > conftest.$ac_ext <<EOF
2575 #line 2576 "configure"
2576 #include "confdefs.h"
2579 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2580 { (eval echo configure:2581: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2581 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2582 if test -z "$ac_err"; then
2586 echo "configure: failed program was:" >&5
2587 cat conftest.$ac_ext >&5
2592 ac_cv_prog_CXXCPP="$CXXCPP"
2594 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2595 ac_cpp='$CPP $CPPFLAGS'
2596 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2597 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2598 cross_compiling=$ac_cv_prog_cc_cross
2601 CXXCPP="$ac_cv_prog_CXXCPP"
2602 echo "$ac_t""$CXXCPP" 1>&6
2605 # Save cache, so that ltconfig can load it
2606 cat > confcache <<\EOF
2607 # This file is a shell script that caches the results of configure
2608 # tests run on this system so they can be shared between configure
2609 # scripts and configure runs. It is not useful on other systems.
2610 # If it contains results you don't want to keep, you may remove or edit it.
2612 # By default, configure uses ./config.cache as the cache file,
2613 # creating it if it does not exist already. You can give configure
2614 # the --cache-file=FILE option to use a different cache file; that is
2615 # what configure does when it calls configure scripts in
2616 # subdirectories, so they share the cache.
2617 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2618 # config.status only pays attention to the cache file if you give it the
2619 # --recheck option to rerun configure.
2622 # The following way of writing the cache mishandles newlines in values,
2623 # but we know of no workaround that is simple, portable, and efficient.
2624 # So, don't put newlines in cache variables' values.
2625 # Ultrix sh set writes to stderr and can't be redirected directly,
2626 # and sets the high bit in the cache file unless we assign to the vars.
2628 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2630 # `set' does not quote correctly, so add quotes (double-quote substitution
2631 # turns \\\\ into \\, and sed turns \\ into \).
2633 -e "s/'/'\\\\''/g" \
2634 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2637 # `set' quotes correctly as required by POSIX, so do not add quotes.
2638 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2641 if cmp -s $cache_file confcache; then
2644 if test -w $cache_file; then
2645 echo "updating cache $cache_file"
2646 cat confcache > $cache_file
2648 echo "not updating unwritable cache $cache_file"
2654 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2655 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2656 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2657 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2658 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2659 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2660 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2661 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2662 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2663 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2665 # Reload cache, that may have been modified by ltconfig
2666 if test -r "$cache_file"; then
2667 echo "loading cache $cache_file"
2670 echo "creating cache $cache_file"
2675 # This can be used to rebuild libtool when needed
2676 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2678 # Always use our own libtool.
2679 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2681 # Redirect the config.log output again, so that the ltconfig log is not
2682 # clobbered by the next message.
2683 exec 5>>./config.log
2687 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2689 lt_save_CFLAGS="$CFLAGS"
2690 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2691 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2692 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2693 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2694 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2695 deplibs_check_method="$deplibs_check_method" \
2696 file_magic_cmd="$file_magic_cmd" \
2697 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2698 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2699 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2701 CFLAGS="$lt_save_CFLAGS"
2703 # Redirect the config.log output again, so that the ltconfig log is not
2704 # clobbered by the next message.
2705 exec 5>>./config.log
2715 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
2724 if test -d $srcdir/testsuite; then
2726 TESTSUBDIR_FALSE='#'
2732 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
2733 if test "${enable_getenv_properties+set}" = set; then
2734 enableval="$enable_getenv_properties"
2739 if test -z "$enable_getenv_properties"; then
2740 enable_getenv_properties=${enable_getenv_properties_default-yes}
2742 if test "$enable_getenv_properties" = no; then
2743 cat >> confdefs.h <<\EOF
2744 #define DISABLE_GETENV_PROPERTIES 1
2749 if test -z "$enable_main_args"; then
2750 enable_main_args=${enable_main_args_default-yes}
2752 if test "$enable_main_args" = no; then
2753 cat >> confdefs.h <<\EOF
2754 #define DISABLE_MAIN_ARGS 1
2760 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
2761 if test "${enable_hash_synchronization+set}" = set; then
2762 enableval="$enable_hash_synchronization"
2767 if test -z "$enable_hash_synchronization"; then
2768 enable_hash_synchronization=$enable_hash_synchronization_default
2771 if test "${slow_pthread_self}" = "yes"; then
2772 cat >> confdefs.h <<\EOF
2773 #define SLOW_PTHREAD_SELF 1
2781 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2782 if test "${enable_libgcj_debug+set}" = set; then
2783 enableval="$enable_libgcj_debug"
2784 if test "$enable_libgcj_debug" = yes; then
2785 cat >> confdefs.h <<\EOF
2794 # Check whether --enable-interpreter or --disable-interpreter was given.
2795 if test "${enable_interpreter+set}" = set; then
2796 enableval="$enable_interpreter"
2797 if test "$enable_interpreter" = yes; then
2798 # This can also be set in configure.host.
2799 libgcj_interpreter=yes
2800 elif test "$enable_interpreter" = no; then
2801 libgcj_interpreter=no
2806 if test "$libgcj_interpreter" = yes; then
2807 cat >> confdefs.h <<\EOF
2808 #define INTERPRETER 1
2812 INTERPRETER="$libgcj_interpreter"
2815 echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
2816 echo "configure:2817: checking for exception model to use" >&5
2819 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2820 ac_cpp='$CXXCPP $CPPFLAGS'
2821 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2822 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2823 cross_compiling=$ac_cv_prog_cxx_cross
2825 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
2826 if test "${enable_sjlj_exceptions+set}" = set; then
2827 enableval="$enable_sjlj_exceptions"
2830 cat > conftest.$ac_ext << EOF
2831 #line 2832 "configure"
2840 old_CXXFLAGS="$CXXFLAGS"
2842 if { (eval echo configure:2843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2843 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
2844 enable_sjlj_exceptions=yes
2845 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
2846 enable_sjlj_exceptions=no
2849 CXXFLAGS="$old_CXXFLAGS"
2853 if test x$enable_sjlj_exceptions = xyes; then
2854 cat >> confdefs.h <<\EOF
2855 #define SJLJ_EXCEPTIONS 1
2858 ac_exception_model_name=sjlj
2859 elif test x$enable_sjlj_exceptions = xno; then
2860 ac_exception_model_name="call frame"
2862 { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
2865 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2866 ac_cpp='$CPP $CPPFLAGS'
2867 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2868 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2869 cross_compiling=$ac_cv_prog_cc_cross
2871 echo "$ac_t""$ac_exception_model_name" 1>&6
2873 # If we are non using SJLJ exceptions, and this host does not have support
2874 # for unwinding from a signal handler, enable checked dereferences and divides.
2875 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
2876 CHECKREFSPEC=-fcheck-references
2877 DIVIDESPEC=-fuse-divide-subroutine
2881 # Check whether --enable-java-net or --disable-java-net was given.
2882 if test "${enable_java_net+set}" = set; then
2883 enableval="$enable_java_net"
2888 if test -z "$enable_java_net"; then
2889 enable_java_net=${enable_java_net_default-yes}
2891 if test "$enable_java_net" = no; then
2892 cat >> confdefs.h <<\EOF
2893 #define DISABLE_JAVA_NET 1
2898 # Check whether --with-libffi or --without-libffi was given.
2899 if test "${with_libffi+set}" = set; then
2900 withval="$with_libffi"
2903 with_libffi=${with_libffi_default-yes}
2909 if test "$with_libffi" != no; then
2910 cat >> confdefs.h <<\EOF
2911 #define USE_LIBFFI 1
2914 LIBFFI=../libffi/libffi_convenience.la
2915 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
2920 # Check whether --enable-jvmpi or --disable-jvmpi was given.
2921 if test "${enable_jvmpi+set}" = set; then
2922 enableval="$enable_jvmpi"
2927 if test "$enable_jvmpi" != no; then
2928 cat >> confdefs.h <<\EOF
2929 #define ENABLE_JVMPI 1
2934 TARGET_ECOS=${PROCESS-"no"}
2935 # Check whether --with-ecos or --without-ecos was given.
2936 if test "${with_ecos+set}" = set; then
2937 withval="$with_ecos"
2938 TARGET_ECOS="$with_ecos"
2944 case "$TARGET_ECOS" in
2949 PLATFORMOBJS=win32.lo
2952 echo $ac_n "checking whether 'ld' is at least 2.13""... $ac_c" 1>&6
2953 echo "configure:2954: checking whether 'ld' is at least 2.13" >&5
2954 LD_PROG=`$CC --print-prog-name=ld`
2955 LD_VERSION=`$LD_PROG --version`
2956 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
2957 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
2958 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
2961 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
2965 if test "x$LD_OK" != x; then
2966 echo "$ac_t""yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" 1>&6
2968 echo "$ac_t""no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" 1>&6
2969 echo "configure: warning: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." 1>&2
2970 cat >> confdefs.h <<\EOF
2971 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
2979 PLATFORMOBJS=posix.lo
2987 cat >> confdefs.h <<\EOF
2991 PLATFORMOBJS=posix.lo
2998 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2999 echo "configure:3000: checking how to run the C preprocessor" >&5
3000 # On Suns, sometimes $CPP names a directory.
3001 if test -n "$CPP" && test -d "$CPP"; then
3004 if test -z "$CPP"; then
3005 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
3006 echo $ac_n "(cached) $ac_c" 1>&6
3008 # This must be in double quotes, not single quotes, because CPP may get
3009 # substituted into the Makefile and "${CC-cc}" will confuse make.
3011 # On the NeXT, cc -E runs the code through the compiler's parser,
3012 # not just through cpp.
3013 cat > conftest.$ac_ext <<EOF
3014 #line 3015 "configure"
3015 #include "confdefs.h"
3019 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3020 { (eval echo configure:3021: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3021 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3022 if test -z "$ac_err"; then
3026 echo "configure: failed program was:" >&5
3027 cat conftest.$ac_ext >&5
3029 CPP="${CC-cc} -E -traditional-cpp"
3030 cat > conftest.$ac_ext <<EOF
3031 #line 3032 "configure"
3032 #include "confdefs.h"
3036 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3037 { (eval echo configure:3038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3038 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3039 if test -z "$ac_err"; then
3043 echo "configure: failed program was:" >&5
3044 cat conftest.$ac_ext >&5
3046 CPP="${CC-cc} -nologo -E"
3047 cat > conftest.$ac_ext <<EOF
3048 #line 3049 "configure"
3049 #include "confdefs.h"
3053 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3054 { (eval echo configure:3055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3055 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3056 if test -z "$ac_err"; then
3060 echo "configure: failed program was:" >&5
3061 cat conftest.$ac_ext >&5
3070 ac_cv_prog_CPP="$CPP"
3072 CPP="$ac_cv_prog_CPP"
3074 ac_cv_prog_CPP="$CPP"
3076 echo "$ac_t""$CPP" 1>&6
3078 cat > conftest.$ac_ext <<EOF
3079 #line 3080 "configure"
3080 #include "confdefs.h"
3083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3084 egrep "uint32_t" >/dev/null 2>&1; then
3086 cat >> confdefs.h <<\EOF
3087 #define HAVE_INT32_DEFINED 1
3093 cat > conftest.$ac_ext <<EOF
3094 #line 3095 "configure"
3095 #include "confdefs.h"
3096 #include <inttypes.h>
3098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3099 egrep "uint32_t" >/dev/null 2>&1; then
3101 cat >> confdefs.h <<\EOF
3102 #define HAVE_INT32_DEFINED 1
3108 cat > conftest.$ac_ext <<EOF
3109 #line 3110 "configure"
3110 #include "confdefs.h"
3111 #include <sys/types.h>
3113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3114 egrep "u_int32_t" >/dev/null 2>&1; then
3116 cat >> confdefs.h <<\EOF
3117 #define HAVE_BSD_INT32_DEFINED 1
3123 cat > conftest.$ac_ext <<EOF
3124 #line 3125 "configure"
3125 #include "confdefs.h"
3126 #include <sys/config.h>
3128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3129 egrep "u_int32_t" >/dev/null 2>&1; then
3131 cat >> confdefs.h <<\EOF
3132 #define HAVE_BSD_INT32_DEFINED 1
3140 cat > conftest.$ac_ext <<EOF
3141 #line 3142 "configure"
3142 #include "confdefs.h"
3145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3146 egrep "mktime" >/dev/null 2>&1; then
3148 cat >> confdefs.h <<\EOF
3149 #define HAVE_MKTIME 1
3155 cat > conftest.$ac_ext <<EOF
3156 #line 3157 "configure"
3157 #include "confdefs.h"
3160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3161 egrep "localtime" >/dev/null 2>&1; then
3163 cat >> confdefs.h <<\EOF
3164 #define HAVE_LOCALTIME 1
3171 test -d java || mkdir java
3172 test -d java/io || mkdir java/io
3173 test -d gnu || mkdir gnu
3177 test -d java/lang || mkdir java/lang
3181 test -d java/net || mkdir java/net
3185 test -d gnu/java || mkdir gnu/java
3186 test -d gnu/java/net || mkdir gnu/java/net
3192 SYSTEMSPEC="-lgdi32 -lwsock32 -lws2_32"
3200 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
3203 # Check whether --with-system-zlib or --without-system-zlib was given.
3204 if test "${with_system_zlib+set}" = set; then
3205 withval="$with_system_zlib"
3214 # If we find X, set shell vars x_includes and x_libraries to the
3215 # paths, otherwise set no_x=yes.
3216 # Uses ac_ vars as temps to allow command line to override cache and checks.
3217 # --without-x overrides everything else, but does not touch the cache.
3218 echo $ac_n "checking for X""... $ac_c" 1>&6
3219 echo "configure:3220: checking for X" >&5
3221 # Check whether --with-x or --without-x was given.
3222 if test "${with_x+set}" = set; then
3227 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3228 if test "x$with_x" = xno; then
3229 # The user explicitly disabled X.
3232 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3233 # Both variables are already set.
3236 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
3237 echo $ac_n "(cached) $ac_c" 1>&6
3239 # One or both of the vars are not set, and there is no cached value.
3240 ac_x_includes=NO ac_x_libraries=NO
3242 if mkdir conftestdir; then
3244 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3245 cat > Imakefile <<'EOF'
3247 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3249 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3250 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3251 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3252 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3253 for ac_extension in a so sl; do
3254 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3255 test -f $ac_im_libdir/libX11.$ac_extension; then
3256 ac_im_usrlibdir=$ac_im_libdir; break
3259 # Screen out bogus values from the imake configuration. They are
3260 # bogus both because they are the default anyway, and because
3261 # using them would break gcc on systems where it needs fixed includes.
3262 case "$ac_im_incroot" in
3264 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
3266 case "$ac_im_usrlibdir" in
3268 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
3275 if test "$ac_x_includes" = NO; then
3276 # Guess where to find include files, by looking for this one X11 .h file.
3277 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
3279 # First, try using that file with no special directory specified.
3280 cat > conftest.$ac_ext <<EOF
3281 #line 3282 "configure"
3282 #include "confdefs.h"
3283 #include <$x_direct_test_include>
3285 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3286 { (eval echo configure:3287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3287 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3288 if test -z "$ac_err"; then
3290 # We can compile using X headers with no special include directory.
3294 echo "configure: failed program was:" >&5
3295 cat conftest.$ac_ext >&5
3297 # Look for the header file in a standard set of common directories.
3298 # Check X11 before X11Rn because it is often a symlink to the current release.
3301 /usr/X11R6/include \
3302 /usr/X11R5/include \
3303 /usr/X11R4/include \
3306 /usr/include/X11R6 \
3307 /usr/include/X11R5 \
3308 /usr/include/X11R4 \
3310 /usr/local/X11/include \
3311 /usr/local/X11R6/include \
3312 /usr/local/X11R5/include \
3313 /usr/local/X11R4/include \
3315 /usr/local/include/X11 \
3316 /usr/local/include/X11R6 \
3317 /usr/local/include/X11R5 \
3318 /usr/local/include/X11R4 \
3322 /usr/XFree86/include/X11 \
3325 /usr/local/include \
3326 /usr/unsupported/include \
3327 /usr/athena/include \
3328 /usr/local/x11r5/include \
3329 /usr/lpp/Xamples/include \
3331 /usr/openwin/include \
3332 /usr/openwin/share/include \
3335 if test -r "$ac_dir/$x_direct_test_include"; then
3336 ac_x_includes=$ac_dir
3342 fi # $ac_x_includes = NO
3344 if test "$ac_x_libraries" = NO; then
3345 # Check for the libraries.
3347 test -z "$x_direct_test_library" && x_direct_test_library=Xt
3348 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
3350 # See if we find them without any special options.
3351 # Don't add to $LIBS permanently.
3352 ac_save_LIBS="$LIBS"
3353 LIBS="-l$x_direct_test_library $LIBS"
3354 cat > conftest.$ac_ext <<EOF
3355 #line 3356 "configure"
3356 #include "confdefs.h"
3359 ${x_direct_test_function}()
3362 if { (eval echo configure:3363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3364 LIBS="$ac_save_LIBS"
3365 # We can link X programs with no special library path.
3368 echo "configure: failed program was:" >&5
3369 cat conftest.$ac_ext >&5
3371 LIBS="$ac_save_LIBS"
3372 # First see if replacing the include by lib works.
3373 # Check X11 before X11Rn because it is often a symlink to the current release.
3374 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
3385 /usr/local/X11/lib \
3386 /usr/local/X11R6/lib \
3387 /usr/local/X11R5/lib \
3388 /usr/local/X11R4/lib \
3390 /usr/local/lib/X11 \
3391 /usr/local/lib/X11R6 \
3392 /usr/local/lib/X11R5 \
3393 /usr/local/lib/X11R4 \
3397 /usr/XFree86/lib/X11 \
3401 /usr/unsupported/lib \
3403 /usr/local/x11r5/lib \
3404 /usr/lpp/Xamples/lib \
3408 /usr/openwin/share/lib \
3411 for ac_extension in a so sl; do
3412 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
3413 ac_x_libraries=$ac_dir
3420 fi # $ac_x_libraries = NO
3422 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
3423 # Didn't find X anywhere. Cache the known absence of X.
3424 ac_cv_have_x="have_x=no"
3426 # Record where we found X for the cache.
3427 ac_cv_have_x="have_x=yes \
3428 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3432 eval "$ac_cv_have_x"
3435 if test "$have_x" != yes; then
3436 echo "$ac_t""$have_x" 1>&6
3439 # If each of the values was on the command line, it overrides each guess.
3440 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3441 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3442 # Update the cache value to reflect the command line values.
3443 ac_cv_have_x="have_x=yes \
3444 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3445 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
3448 if test "$no_x" = yes; then
3449 # Not all programs may use this symbol, but it does not hurt to define it.
3450 cat >> confdefs.h <<\EOF
3451 #define X_DISPLAY_MISSING 1
3454 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3456 if test -n "$x_includes"; then
3457 X_CFLAGS="$X_CFLAGS -I$x_includes"
3460 # It would also be nice to do this for all -L options, not just this one.
3461 if test -n "$x_libraries"; then
3462 X_LIBS="$X_LIBS -L$x_libraries"
3463 # For Solaris; some versions of Sun CC require a space after -R and
3464 # others require no space. Words are not sufficient . . . .
3465 case "`(uname -sr) 2>/dev/null`" in
3467 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
3468 echo "configure:3469: checking whether -R must be followed by a space" >&5
3469 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
3470 cat > conftest.$ac_ext <<EOF
3471 #line 3472 "configure"
3472 #include "confdefs.h"
3478 if { (eval echo configure:3479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3482 echo "configure: failed program was:" >&5
3483 cat conftest.$ac_ext >&5
3488 if test $ac_R_nospace = yes; then
3489 echo "$ac_t""no" 1>&6
3490 X_LIBS="$X_LIBS -R$x_libraries"
3492 LIBS="$ac_xsave_LIBS -R $x_libraries"
3493 cat > conftest.$ac_ext <<EOF
3494 #line 3495 "configure"
3495 #include "confdefs.h"
3501 if { (eval echo configure:3502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3505 echo "configure: failed program was:" >&5
3506 cat conftest.$ac_ext >&5
3511 if test $ac_R_space = yes; then
3512 echo "$ac_t""yes" 1>&6
3513 X_LIBS="$X_LIBS -R $x_libraries"
3515 echo "$ac_t""neither works" 1>&6
3518 LIBS="$ac_xsave_LIBS"
3522 # Check for system-dependent libraries X programs must link with.
3523 # Do this before checking for the system-independent R6 libraries
3524 # (-lICE), since we may need -lsocket or whatever for X linking.
3526 if test "$ISC" = yes; then
3527 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3529 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
3530 # libraries were built with DECnet support. And karl@cs.umb.edu says
3531 # the Alpha needs dnet_stub (dnet does not exist).
3532 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3533 echo "configure:3534: checking for dnet_ntoa in -ldnet" >&5
3534 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3535 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3536 echo $ac_n "(cached) $ac_c" 1>&6
3538 ac_save_LIBS="$LIBS"
3540 cat > conftest.$ac_ext <<EOF
3541 #line 3542 "configure"
3542 #include "confdefs.h"
3543 /* Override any gcc2 internal prototype to avoid an error. */
3544 /* We use char because int might match the return type of a gcc2
3545 builtin and then its argument prototype would still apply. */
3552 if { (eval echo configure:3553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3554 eval "ac_cv_lib_$ac_lib_var=yes"
3556 echo "configure: failed program was:" >&5
3557 cat conftest.$ac_ext >&5
3559 eval "ac_cv_lib_$ac_lib_var=no"
3562 LIBS="$ac_save_LIBS"
3565 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3566 echo "$ac_t""yes" 1>&6
3567 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3569 echo "$ac_t""no" 1>&6
3572 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3573 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
3574 echo "configure:3575: checking for dnet_ntoa in -ldnet_stub" >&5
3575 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3576 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3577 echo $ac_n "(cached) $ac_c" 1>&6
3579 ac_save_LIBS="$LIBS"
3580 LIBS="-ldnet_stub $LIBS"
3581 cat > conftest.$ac_ext <<EOF
3582 #line 3583 "configure"
3583 #include "confdefs.h"
3584 /* Override any gcc2 internal prototype to avoid an error. */
3585 /* We use char because int might match the return type of a gcc2
3586 builtin and then its argument prototype would still apply. */
3593 if { (eval echo configure:3594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3595 eval "ac_cv_lib_$ac_lib_var=yes"
3597 echo "configure: failed program was:" >&5
3598 cat conftest.$ac_ext >&5
3600 eval "ac_cv_lib_$ac_lib_var=no"
3603 LIBS="$ac_save_LIBS"
3606 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3607 echo "$ac_t""yes" 1>&6
3608 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3610 echo "$ac_t""no" 1>&6
3615 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3616 # to get the SysV transport functions.
3617 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
3619 # The nsl library prevents programs from opening the X display
3620 # on Irix 5.2, according to dickey@clark.net.
3621 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3622 echo "configure:3623: checking for gethostbyname" >&5
3623 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3624 echo $ac_n "(cached) $ac_c" 1>&6
3626 cat > conftest.$ac_ext <<EOF
3627 #line 3628 "configure"
3628 #include "confdefs.h"
3629 /* System header to define __stub macros and hopefully few prototypes,
3630 which can conflict with char gethostbyname(); below. */
3632 /* Override any gcc2 internal prototype to avoid an error. */
3633 /* We use char because int might match the return type of a gcc2
3634 builtin and then its argument prototype would still apply. */
3635 char gethostbyname();
3639 /* The GNU C library defines this for functions which it implements
3640 to always fail with ENOSYS. Some functions are actually named
3641 something starting with __ and the normal name is an alias. */
3642 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3650 if { (eval echo configure:3651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3652 eval "ac_cv_func_gethostbyname=yes"
3654 echo "configure: failed program was:" >&5
3655 cat conftest.$ac_ext >&5
3657 eval "ac_cv_func_gethostbyname=no"
3662 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3663 echo "$ac_t""yes" 1>&6
3666 echo "$ac_t""no" 1>&6
3669 if test $ac_cv_func_gethostbyname = no; then
3670 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3671 echo "configure:3672: checking for gethostbyname in -lnsl" >&5
3672 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3673 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3674 echo $ac_n "(cached) $ac_c" 1>&6
3676 ac_save_LIBS="$LIBS"
3678 cat > conftest.$ac_ext <<EOF
3679 #line 3680 "configure"
3680 #include "confdefs.h"
3681 /* Override any gcc2 internal prototype to avoid an error. */
3682 /* We use char because int might match the return type of a gcc2
3683 builtin and then its argument prototype would still apply. */
3684 char gethostbyname();
3690 if { (eval echo configure:3691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3692 eval "ac_cv_lib_$ac_lib_var=yes"
3694 echo "configure: failed program was:" >&5
3695 cat conftest.$ac_ext >&5
3697 eval "ac_cv_lib_$ac_lib_var=no"
3700 LIBS="$ac_save_LIBS"
3703 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3704 echo "$ac_t""yes" 1>&6
3705 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3707 echo "$ac_t""no" 1>&6
3712 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3713 # socket/setsockopt and other routines are undefined under SCO ODT
3714 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3715 # on later versions), says simon@lia.di.epfl.ch: it contains
3716 # gethostby* variants that don't use the nameserver (or something).
3717 # -lsocket must be given before -lnsl if both are needed.
3718 # We assume that if connect needs -lnsl, so does gethostbyname.
3719 echo $ac_n "checking for connect""... $ac_c" 1>&6
3720 echo "configure:3721: checking for connect" >&5
3721 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3722 echo $ac_n "(cached) $ac_c" 1>&6
3724 cat > conftest.$ac_ext <<EOF
3725 #line 3726 "configure"
3726 #include "confdefs.h"
3727 /* System header to define __stub macros and hopefully few prototypes,
3728 which can conflict with char connect(); below. */
3730 /* Override any gcc2 internal prototype to avoid an error. */
3731 /* We use char because int might match the return type of a gcc2
3732 builtin and then its argument prototype would still apply. */
3737 /* The GNU C library defines this for functions which it implements
3738 to always fail with ENOSYS. Some functions are actually named
3739 something starting with __ and the normal name is an alias. */
3740 #if defined (__stub_connect) || defined (__stub___connect)
3748 if { (eval echo configure:3749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3750 eval "ac_cv_func_connect=yes"
3752 echo "configure: failed program was:" >&5
3753 cat conftest.$ac_ext >&5
3755 eval "ac_cv_func_connect=no"
3760 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3761 echo "$ac_t""yes" 1>&6
3764 echo "$ac_t""no" 1>&6
3767 if test $ac_cv_func_connect = no; then
3768 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3769 echo "configure:3770: checking for connect in -lsocket" >&5
3770 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3771 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3772 echo $ac_n "(cached) $ac_c" 1>&6
3774 ac_save_LIBS="$LIBS"
3775 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3776 cat > conftest.$ac_ext <<EOF
3777 #line 3778 "configure"
3778 #include "confdefs.h"
3779 /* Override any gcc2 internal prototype to avoid an error. */
3780 /* We use char because int might match the return type of a gcc2
3781 builtin and then its argument prototype would still apply. */
3788 if { (eval echo configure:3789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3790 eval "ac_cv_lib_$ac_lib_var=yes"
3792 echo "configure: failed program was:" >&5
3793 cat conftest.$ac_ext >&5
3795 eval "ac_cv_lib_$ac_lib_var=no"
3798 LIBS="$ac_save_LIBS"
3801 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3802 echo "$ac_t""yes" 1>&6
3803 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3805 echo "$ac_t""no" 1>&6
3810 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
3811 echo $ac_n "checking for remove""... $ac_c" 1>&6
3812 echo "configure:3813: checking for remove" >&5
3813 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
3814 echo $ac_n "(cached) $ac_c" 1>&6
3816 cat > conftest.$ac_ext <<EOF
3817 #line 3818 "configure"
3818 #include "confdefs.h"
3819 /* System header to define __stub macros and hopefully few prototypes,
3820 which can conflict with char remove(); below. */
3822 /* Override any gcc2 internal prototype to avoid an error. */
3823 /* We use char because int might match the return type of a gcc2
3824 builtin and then its argument prototype would still apply. */
3829 /* The GNU C library defines this for functions which it implements
3830 to always fail with ENOSYS. Some functions are actually named
3831 something starting with __ and the normal name is an alias. */
3832 #if defined (__stub_remove) || defined (__stub___remove)
3840 if { (eval echo configure:3841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3842 eval "ac_cv_func_remove=yes"
3844 echo "configure: failed program was:" >&5
3845 cat conftest.$ac_ext >&5
3847 eval "ac_cv_func_remove=no"
3852 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
3853 echo "$ac_t""yes" 1>&6
3856 echo "$ac_t""no" 1>&6
3859 if test $ac_cv_func_remove = no; then
3860 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
3861 echo "configure:3862: checking for remove in -lposix" >&5
3862 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
3863 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3864 echo $ac_n "(cached) $ac_c" 1>&6
3866 ac_save_LIBS="$LIBS"
3867 LIBS="-lposix $LIBS"
3868 cat > conftest.$ac_ext <<EOF
3869 #line 3870 "configure"
3870 #include "confdefs.h"
3871 /* Override any gcc2 internal prototype to avoid an error. */
3872 /* We use char because int might match the return type of a gcc2
3873 builtin and then its argument prototype would still apply. */
3880 if { (eval echo configure:3881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3882 eval "ac_cv_lib_$ac_lib_var=yes"
3884 echo "configure: failed program was:" >&5
3885 cat conftest.$ac_ext >&5
3887 eval "ac_cv_lib_$ac_lib_var=no"
3890 LIBS="$ac_save_LIBS"
3893 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3894 echo "$ac_t""yes" 1>&6
3895 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3897 echo "$ac_t""no" 1>&6
3902 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3903 echo $ac_n "checking for shmat""... $ac_c" 1>&6
3904 echo "configure:3905: checking for shmat" >&5
3905 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
3906 echo $ac_n "(cached) $ac_c" 1>&6
3908 cat > conftest.$ac_ext <<EOF
3909 #line 3910 "configure"
3910 #include "confdefs.h"
3911 /* System header to define __stub macros and hopefully few prototypes,
3912 which can conflict with char shmat(); below. */
3914 /* Override any gcc2 internal prototype to avoid an error. */
3915 /* We use char because int might match the return type of a gcc2
3916 builtin and then its argument prototype would still apply. */
3921 /* The GNU C library defines this for functions which it implements
3922 to always fail with ENOSYS. Some functions are actually named
3923 something starting with __ and the normal name is an alias. */
3924 #if defined (__stub_shmat) || defined (__stub___shmat)
3932 if { (eval echo configure:3933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3934 eval "ac_cv_func_shmat=yes"
3936 echo "configure: failed program was:" >&5
3937 cat conftest.$ac_ext >&5
3939 eval "ac_cv_func_shmat=no"
3944 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
3945 echo "$ac_t""yes" 1>&6
3948 echo "$ac_t""no" 1>&6
3951 if test $ac_cv_func_shmat = no; then
3952 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
3953 echo "configure:3954: checking for shmat in -lipc" >&5
3954 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
3955 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3956 echo $ac_n "(cached) $ac_c" 1>&6
3958 ac_save_LIBS="$LIBS"
3960 cat > conftest.$ac_ext <<EOF
3961 #line 3962 "configure"
3962 #include "confdefs.h"
3963 /* Override any gcc2 internal prototype to avoid an error. */
3964 /* We use char because int might match the return type of a gcc2
3965 builtin and then its argument prototype would still apply. */
3972 if { (eval echo configure:3973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3974 eval "ac_cv_lib_$ac_lib_var=yes"
3976 echo "configure: failed program was:" >&5
3977 cat conftest.$ac_ext >&5
3979 eval "ac_cv_lib_$ac_lib_var=no"
3982 LIBS="$ac_save_LIBS"
3985 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3986 echo "$ac_t""yes" 1>&6
3987 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3989 echo "$ac_t""no" 1>&6
3995 # Check for libraries that X11R6 Xt/Xaw programs need.
3996 ac_save_LDFLAGS="$LDFLAGS"
3997 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3998 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3999 # check for ICE first), but we must link in the order -lSM -lICE or
4000 # we get undefined symbols. So assume we have SM if we have ICE.
4001 # These have to be linked with before -lX11, unlike the other
4002 # libraries we check for below, so use a different variable.
4003 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
4004 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
4005 echo "configure:4006: checking for IceConnectionNumber in -lICE" >&5
4006 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
4007 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4008 echo $ac_n "(cached) $ac_c" 1>&6
4010 ac_save_LIBS="$LIBS"
4011 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4012 cat > conftest.$ac_ext <<EOF
4013 #line 4014 "configure"
4014 #include "confdefs.h"
4015 /* Override any gcc2 internal prototype to avoid an error. */
4016 /* We use char because int might match the return type of a gcc2
4017 builtin and then its argument prototype would still apply. */
4018 char IceConnectionNumber();
4021 IceConnectionNumber()
4024 if { (eval echo configure:4025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4026 eval "ac_cv_lib_$ac_lib_var=yes"
4028 echo "configure: failed program was:" >&5
4029 cat conftest.$ac_ext >&5
4031 eval "ac_cv_lib_$ac_lib_var=no"
4034 LIBS="$ac_save_LIBS"
4037 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4038 echo "$ac_t""yes" 1>&6
4039 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4041 echo "$ac_t""no" 1>&6
4044 LDFLAGS="$ac_save_LDFLAGS"
4049 # Check whether --enable-java-awt or --disable-java-awt was given.
4050 if test "${enable_java_awt+set}" = set; then
4051 enableval="$enable_java_awt"
4056 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
4059 # The default toolkit to use is the first one specified.
4063 for peer in $peerlibs ; do
4066 if test "$no_x" = yes; then
4067 echo "*** xlib peers requested but no X library available" 1>&2
4071 if test -z "$TOOLKIT"; then
4072 TOOLKIT=gnu.awt.xlib.XToolkit
4077 if test "$no_x" = yes; then
4078 echo "*** xlib peers requested but no X library available" 1>&2
4082 if test -z "$TOOLKIT"; then
4083 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
4085 test -d jniinclude || mkdir jniinclude
4094 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
4101 if test "$use_xlib_awt" = yes; then
4110 if test "$use_gtk_awt" = yes; then
4121 echo $ac_n "checking for garbage collector to use""... $ac_c" 1>&6
4122 echo "configure:4123: checking for garbage collector to use" >&5
4123 # Check whether --enable-java-gc or --disable-java-gc was given.
4124 if test "${enable_java_gc+set}" = set; then
4125 enableval="$enable_java_gc"
4141 echo "$ac_t""boehm" 1>&6
4142 GCLIBS=../boehm-gc/libgcjgc_convenience.la
4143 JC1GCSPEC='-fuse-boehm-gc'
4144 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
4146 GCINCS="`cat ../boehm-gc/boehm-cflags`"
4149 cat >> confdefs.h <<\EOF
4150 #define HAVE_BOEHM_GC 1
4155 echo "$ac_t""none" 1>&6
4160 { echo "configure: error: unrecognized collector \"$GC\"" 1>&2; exit 1; }
4173 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
4174 echo "configure:4175: checking for thread model used by GCC" >&5
4175 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
4176 echo "$ac_t""$THREADS" 1>&6
4186 cat >> confdefs.h <<\EOF
4187 #define LINUX_THREADS 1
4195 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
4196 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
4199 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
4215 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
4220 # Before FreeBSD 5, it didn't have -lpthread (or any library which
4221 # merely adds pthread_* functions) but it does have a -pthread switch
4222 # which is required at link-time to select -lc_r *instead* of -lc.
4223 THREADLDFLAGS=-pthread
4224 # Don't set THREADSPEC here as might be expected since -pthread is
4225 # not processed when found within a spec file, it must come from
4226 # the command line. For now, the user must provide the -pthread
4227 # switch to link code compiled with gcj. In future, consider adding
4228 # support for weak references to pthread_* functions ala gthr.h API.
4229 THREADSPEC='%{!pthread: %eUnder this configuration, the user must provide -pthread when linking.}'
4232 # FreeBSD 5 implements a model much closer to other modern UNIX
4233 # which support threads. However, it still does not support
4235 THREADLDFLAGS=-pthread
4239 THREADCXXFLAGS=-pthread
4240 # boehm-gc needs some functions from librt, so link that too.
4241 THREADLIBS='-lpthread -lrt'
4242 THREADSPEC='-lpthread -lrt'
4245 THREADLIBS=-lpthread
4246 THREADSPEC=-lpthread
4249 THREADOBJS=posix-threads.lo
4250 THREADH=posix-threads.h
4251 # MIT pthreads doesn't seem to have the mutexattr functions.
4252 # But for now we don't check for it. We just assume you aren't
4253 # using MIT pthreads.
4254 cat >> confdefs.h <<\EOF
4255 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
4259 # If we're using the Boehm GC, then we happen to know that it
4260 # defines _REENTRANT, so we don't bother. Eww.
4261 if test "$GC" != boehm; then
4262 cat >> confdefs.h <<\EOF
4263 #define _REENTRANT 1
4267 cat >> confdefs.h <<\EOF
4268 #define _POSIX_PTHREAD_SEMANTICS 1
4274 THREADOBJS=win32-threads.lo
4275 THREADH=win32-threads.h
4279 THREADOBJS=no-threads.lo
4280 THREADH=no-threads.h
4292 if test -d sysdep; then true; else mkdir sysdep; fi
4296 # Hash synchronization is only useful with posix threads right now.
4297 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
4298 HASH_SYNC_SPEC=-fhash-synchronization
4299 cat >> confdefs.h <<\EOF
4300 #define JV_HASH_SYNCHRONIZATION 1
4309 if test "$GCC" = yes; then
4321 # We're in the tree with gcc, and need to include some of its headers.
4322 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
4324 # Figure out where generated headers like libgcj-config.h get installed.
4325 gcc_version_trigger=${libgcj_basedir}/../gcc/version.c
4326 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
4327 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
4328 tool_include_dir='$(libdir)/gcc/$(target_alias)/'${gcc_version}/include
4332 if test "x${with_newlib}" = "xyes"; then
4333 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
4334 # may not work correctly, because the compiler may not be able to
4337 # We assume newlib. This lets us hard-code the functions we know
4339 cat >> confdefs.h <<\EOF
4340 #define HAVE_MEMMOVE 1
4343 cat >> confdefs.h <<\EOF
4344 #define HAVE_MEMCPY 1
4347 cat >> confdefs.h <<\EOF
4348 #define HAVE_STRERROR 1
4351 cat >> confdefs.h <<\EOF
4355 cat >> confdefs.h <<\EOF
4356 #define HAVE_GMTIME_R 1
4359 cat >> confdefs.h <<\EOF
4360 #define HAVE_LOCALTIME_R 1
4363 cat >> confdefs.h <<\EOF
4364 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
4367 cat >> confdefs.h <<\EOF
4368 #define HAVE_ALLOCA 1
4372 cat >> confdefs.h <<\EOF
4378 for ac_func in strerror ioctl select fstat open fsync sleep opendir
4380 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4381 echo "configure:4382: checking for $ac_func" >&5
4382 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4383 echo $ac_n "(cached) $ac_c" 1>&6
4385 cat > conftest.$ac_ext <<EOF
4386 #line 4387 "configure"
4387 #include "confdefs.h"
4388 /* System header to define __stub macros and hopefully few prototypes,
4389 which can conflict with char $ac_func(); below. */
4391 /* Override any gcc2 internal prototype to avoid an error. */
4392 /* We use char because int might match the return type of a gcc2
4393 builtin and then its argument prototype would still apply. */
4398 /* The GNU C library defines this for functions which it implements
4399 to always fail with ENOSYS. Some functions are actually named
4400 something starting with __ and the normal name is an alias. */
4401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4409 if { (eval echo configure:4410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4411 eval "ac_cv_func_$ac_func=yes"
4413 echo "configure: failed program was:" >&5
4414 cat conftest.$ac_ext >&5
4416 eval "ac_cv_func_$ac_func=no"
4421 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4422 echo "$ac_t""yes" 1>&6
4423 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4424 cat >> confdefs.h <<EOF
4425 #define $ac_tr_func 1
4429 echo "$ac_t""no" 1>&6
4433 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
4435 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4436 echo "configure:4437: checking for $ac_func" >&5
4437 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4438 echo $ac_n "(cached) $ac_c" 1>&6
4440 cat > conftest.$ac_ext <<EOF
4441 #line 4442 "configure"
4442 #include "confdefs.h"
4443 /* System header to define __stub macros and hopefully few prototypes,
4444 which can conflict with char $ac_func(); below. */
4446 /* Override any gcc2 internal prototype to avoid an error. */
4447 /* We use char because int might match the return type of a gcc2
4448 builtin and then its argument prototype would still apply. */
4453 /* The GNU C library defines this for functions which it implements
4454 to always fail with ENOSYS. Some functions are actually named
4455 something starting with __ and the normal name is an alias. */
4456 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4464 if { (eval echo configure:4465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4466 eval "ac_cv_func_$ac_func=yes"
4468 echo "configure: failed program was:" >&5
4469 cat conftest.$ac_ext >&5
4471 eval "ac_cv_func_$ac_func=no"
4476 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4477 echo "$ac_t""yes" 1>&6
4478 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4479 cat >> confdefs.h <<EOF
4480 #define $ac_tr_func 1
4484 echo "$ac_t""no" 1>&6
4488 for ac_func in access stat mkdir rename rmdir unlink realpath utime chmod
4490 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4491 echo "configure:4492: checking for $ac_func" >&5
4492 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4493 echo $ac_n "(cached) $ac_c" 1>&6
4495 cat > conftest.$ac_ext <<EOF
4496 #line 4497 "configure"
4497 #include "confdefs.h"
4498 /* System header to define __stub macros and hopefully few prototypes,
4499 which can conflict with char $ac_func(); below. */
4501 /* Override any gcc2 internal prototype to avoid an error. */
4502 /* We use char because int might match the return type of a gcc2
4503 builtin and then its argument prototype would still apply. */
4508 /* The GNU C library defines this for functions which it implements
4509 to always fail with ENOSYS. Some functions are actually named
4510 something starting with __ and the normal name is an alias. */
4511 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4519 if { (eval echo configure:4520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4521 eval "ac_cv_func_$ac_func=yes"
4523 echo "configure: failed program was:" >&5
4524 cat conftest.$ac_ext >&5
4526 eval "ac_cv_func_$ac_func=no"
4531 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4532 echo "$ac_t""yes" 1>&6
4533 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4534 cat >> confdefs.h <<EOF
4535 #define $ac_tr_func 1
4539 echo "$ac_t""no" 1>&6
4543 for ac_func in nl_langinfo setlocale
4545 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4546 echo "configure:4547: checking for $ac_func" >&5
4547 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4548 echo $ac_n "(cached) $ac_c" 1>&6
4550 cat > conftest.$ac_ext <<EOF
4551 #line 4552 "configure"
4552 #include "confdefs.h"
4553 /* System header to define __stub macros and hopefully few prototypes,
4554 which can conflict with char $ac_func(); below. */
4556 /* Override any gcc2 internal prototype to avoid an error. */
4557 /* We use char because int might match the return type of a gcc2
4558 builtin and then its argument prototype would still apply. */
4563 /* The GNU C library defines this for functions which it implements
4564 to always fail with ENOSYS. Some functions are actually named
4565 something starting with __ and the normal name is an alias. */
4566 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4574 if { (eval echo configure:4575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4576 eval "ac_cv_func_$ac_func=yes"
4578 echo "configure: failed program was:" >&5
4579 cat conftest.$ac_ext >&5
4581 eval "ac_cv_func_$ac_func=no"
4586 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4587 echo "$ac_t""yes" 1>&6
4588 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4589 cat >> confdefs.h <<EOF
4590 #define $ac_tr_func 1
4594 echo "$ac_t""no" 1>&6
4598 for ac_func in inet_aton inet_addr
4600 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4601 echo "configure:4602: checking for $ac_func" >&5
4602 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4603 echo $ac_n "(cached) $ac_c" 1>&6
4605 cat > conftest.$ac_ext <<EOF
4606 #line 4607 "configure"
4607 #include "confdefs.h"
4608 /* System header to define __stub macros and hopefully few prototypes,
4609 which can conflict with char $ac_func(); below. */
4611 /* Override any gcc2 internal prototype to avoid an error. */
4612 /* We use char because int might match the return type of a gcc2
4613 builtin and then its argument prototype would still apply. */
4618 /* The GNU C library defines this for functions which it implements
4619 to always fail with ENOSYS. Some functions are actually named
4620 something starting with __ and the normal name is an alias. */
4621 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4629 if { (eval echo configure:4630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4631 eval "ac_cv_func_$ac_func=yes"
4633 echo "configure: failed program was:" >&5
4634 cat conftest.$ac_ext >&5
4636 eval "ac_cv_func_$ac_func=no"
4641 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4642 echo "$ac_t""yes" 1>&6
4643 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4644 cat >> confdefs.h <<EOF
4645 #define $ac_tr_func 1
4649 echo "$ac_t""no" 1>&6
4653 for ac_func in inet_pton uname inet_ntoa
4655 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4656 echo "configure:4657: checking for $ac_func" >&5
4657 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4658 echo $ac_n "(cached) $ac_c" 1>&6
4660 cat > conftest.$ac_ext <<EOF
4661 #line 4662 "configure"
4662 #include "confdefs.h"
4663 /* System header to define __stub macros and hopefully few prototypes,
4664 which can conflict with char $ac_func(); below. */
4666 /* Override any gcc2 internal prototype to avoid an error. */
4667 /* We use char because int might match the return type of a gcc2
4668 builtin and then its argument prototype would still apply. */
4673 /* The GNU C library defines this for functions which it implements
4674 to always fail with ENOSYS. Some functions are actually named
4675 something starting with __ and the normal name is an alias. */
4676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4684 if { (eval echo configure:4685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4686 eval "ac_cv_func_$ac_func=yes"
4688 echo "configure: failed program was:" >&5
4689 cat conftest.$ac_ext >&5
4691 eval "ac_cv_func_$ac_func=no"
4696 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4697 echo "$ac_t""yes" 1>&6
4698 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4699 cat >> confdefs.h <<EOF
4700 #define $ac_tr_func 1
4704 echo "$ac_t""no" 1>&6
4708 for ac_func in fork execvp pipe sigaction ftruncate
4710 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4711 echo "configure:4712: checking for $ac_func" >&5
4712 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4713 echo $ac_n "(cached) $ac_c" 1>&6
4715 cat > conftest.$ac_ext <<EOF
4716 #line 4717 "configure"
4717 #include "confdefs.h"
4718 /* System header to define __stub macros and hopefully few prototypes,
4719 which can conflict with char $ac_func(); below. */
4721 /* Override any gcc2 internal prototype to avoid an error. */
4722 /* We use char because int might match the return type of a gcc2
4723 builtin and then its argument prototype would still apply. */
4728 /* The GNU C library defines this for functions which it implements
4729 to always fail with ENOSYS. Some functions are actually named
4730 something starting with __ and the normal name is an alias. */
4731 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4739 if { (eval echo configure:4740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4741 eval "ac_cv_func_$ac_func=yes"
4743 echo "configure: failed program was:" >&5
4744 cat conftest.$ac_ext >&5
4746 eval "ac_cv_func_$ac_func=no"
4751 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4752 echo "$ac_t""yes" 1>&6
4753 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4754 cat >> confdefs.h <<EOF
4755 #define $ac_tr_func 1
4759 echo "$ac_t""no" 1>&6
4763 for ac_hdr in execinfo.h unistd.h dlfcn.h
4765 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4766 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4767 echo "configure:4768: checking for $ac_hdr" >&5
4768 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4769 echo $ac_n "(cached) $ac_c" 1>&6
4771 cat > conftest.$ac_ext <<EOF
4772 #line 4773 "configure"
4773 #include "confdefs.h"
4776 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4777 { (eval echo configure:4778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4778 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4779 if test -z "$ac_err"; then
4781 eval "ac_cv_header_$ac_safe=yes"
4784 echo "configure: failed program was:" >&5
4785 cat conftest.$ac_ext >&5
4787 eval "ac_cv_header_$ac_safe=no"
4791 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4792 echo "$ac_t""yes" 1>&6
4793 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4794 cat >> confdefs.h <<EOF
4795 #define $ac_tr_hdr 1
4799 echo "$ac_t""no" 1>&6
4803 echo $ac_n "checking for backtrace""... $ac_c" 1>&6
4804 echo "configure:4805: checking for backtrace" >&5
4805 if eval "test \"`echo '$''{'ac_cv_func_backtrace'+set}'`\" = set"; then
4806 echo $ac_n "(cached) $ac_c" 1>&6
4808 cat > conftest.$ac_ext <<EOF
4809 #line 4810 "configure"
4810 #include "confdefs.h"
4811 /* System header to define __stub macros and hopefully few prototypes,
4812 which can conflict with char backtrace(); below. */
4814 /* Override any gcc2 internal prototype to avoid an error. */
4815 /* We use char because int might match the return type of a gcc2
4816 builtin and then its argument prototype would still apply. */
4821 /* The GNU C library defines this for functions which it implements
4822 to always fail with ENOSYS. Some functions are actually named
4823 something starting with __ and the normal name is an alias. */
4824 #if defined (__stub_backtrace) || defined (__stub___backtrace)
4832 if { (eval echo configure:4833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4834 eval "ac_cv_func_backtrace=yes"
4836 echo "configure: failed program was:" >&5
4837 cat conftest.$ac_ext >&5
4839 eval "ac_cv_func_backtrace=no"
4844 if eval "test \"`echo '$ac_cv_func_'backtrace`\" = yes"; then
4845 echo "$ac_t""yes" 1>&6
4849 # Has broken backtrace()
4852 cat >> confdefs.h <<\EOF
4853 #define HAVE_BACKTRACE 1
4860 echo "$ac_t""no" 1>&6
4864 # Has backtrace() defined in libgcj itself
4865 cat >> confdefs.h <<\EOF
4866 #define HAVE_BACKTRACE 1
4875 echo $ac_n "checking for dladdr in -ldl""... $ac_c" 1>&6
4876 echo "configure:4877: checking for dladdr in -ldl" >&5
4877 ac_lib_var=`echo dl'_'dladdr | sed 'y%./+-%__p_%'`
4878 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4879 echo $ac_n "(cached) $ac_c" 1>&6
4881 ac_save_LIBS="$LIBS"
4883 cat > conftest.$ac_ext <<EOF
4884 #line 4885 "configure"
4885 #include "confdefs.h"
4886 /* Override any gcc2 internal prototype to avoid an error. */
4887 /* We use char because int might match the return type of a gcc2
4888 builtin and then its argument prototype would still apply. */
4895 if { (eval echo configure:4896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4897 eval "ac_cv_lib_$ac_lib_var=yes"
4899 echo "configure: failed program was:" >&5
4900 cat conftest.$ac_ext >&5
4902 eval "ac_cv_lib_$ac_lib_var=no"
4905 LIBS="$ac_save_LIBS"
4908 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4909 echo "$ac_t""yes" 1>&6
4911 cat >> confdefs.h <<\EOF
4912 #define HAVE_DLADDR 1
4916 echo "$ac_t""no" 1>&6
4919 if test x"$build" = x"$host"; then
4920 for ac_file in /proc/self/exe
4923 ac_safe=`echo "$ac_file" | sed 'y%./+-%__p_%'`
4924 echo $ac_n "checking for $ac_file""... $ac_c" 1>&6
4925 echo "configure:4926: checking for $ac_file" >&5
4926 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
4927 echo $ac_n "(cached) $ac_c" 1>&6
4929 if test "$cross_compiling" = yes; then
4930 { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
4932 if test -r $ac_file; then
4933 eval "ac_cv_file_$ac_safe=yes"
4935 eval "ac_cv_file_$ac_safe=no"
4939 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
4940 echo "$ac_t""yes" 1>&6
4941 ac_tr_file=HAVE_`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4942 cat >> confdefs.h <<EOF
4943 #define $ac_tr_file 1
4946 cat >> confdefs.h <<\EOF
4947 #define HAVE_PROC_SELF_EXE 1
4951 echo "$ac_t""no" 1>&6
4959 cat >> confdefs.h <<\EOF
4960 #define HAVE_PROC_SELF_EXE 1
4969 am_cv_lib_iconv_ldpath=
4970 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
4971 if test "${with_libiconv_prefix+set}" = set; then
4972 withval="$with_libiconv_prefix"
4974 for dir in `echo "$withval" | tr : ' '`; do
4975 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
4976 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
4982 echo $ac_n "checking for iconv""... $ac_c" 1>&6
4983 echo "configure:4984: checking for iconv" >&5
4984 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
4985 echo $ac_n "(cached) $ac_c" 1>&6
4988 am_cv_func_iconv="no, consider installing GNU libiconv"
4990 cat > conftest.$ac_ext <<EOF
4991 #line 4992 "configure"
4992 #include "confdefs.h"
4996 iconv_t cd = iconv_open("","");
4997 iconv(cd,NULL,NULL,NULL,NULL);
5001 if { (eval echo configure:5002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5003 am_cv_func_iconv=yes
5005 echo "configure: failed program was:" >&5
5006 cat conftest.$ac_ext >&5
5009 if test "$am_cv_func_iconv" != yes; then
5010 am_save_LIBS="$LIBS"
5011 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
5012 cat > conftest.$ac_ext <<EOF
5013 #line 5014 "configure"
5014 #include "confdefs.h"
5018 iconv_t cd = iconv_open("","");
5019 iconv(cd,NULL,NULL,NULL,NULL);
5023 if { (eval echo configure:5024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5026 am_cv_func_iconv=yes
5028 echo "configure: failed program was:" >&5
5029 cat conftest.$ac_ext >&5
5032 LIBS="$am_save_LIBS"
5037 echo "$ac_t""$am_cv_func_iconv" 1>&6
5038 if test "$am_cv_func_iconv" = yes; then
5039 cat >> confdefs.h <<\EOF
5040 #define HAVE_ICONV 1
5043 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
5044 echo "configure:5045: checking for iconv declaration" >&5
5045 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
5046 echo $ac_n "(cached) $ac_c" 1>&6
5049 cat > conftest.$ac_ext <<EOF
5050 #line 5051 "configure"
5051 #include "confdefs.h"
5059 #if defined(__STDC__) || defined(__cplusplus)
5060 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
5069 if { (eval echo configure:5070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5071 am_cv_proto_iconv_arg1=""
5073 echo "configure: failed program was:" >&5
5074 cat conftest.$ac_ext >&5
5076 am_cv_proto_iconv_arg1="const"
5079 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);"
5082 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
5083 echo "$ac_t""${ac_t:-
5084 }$am_cv_proto_iconv" 1>&6
5085 cat >> confdefs.h <<EOF
5086 #define ICONV_CONST $am_cv_proto_iconv_arg1
5091 if test "$am_cv_lib_iconv" = yes; then
5092 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
5096 if test $ac_cv_header_locale_h = yes; then
5097 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
5098 echo "configure:5099: checking for LC_MESSAGES" >&5
5099 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
5100 echo $ac_n "(cached) $ac_c" 1>&6
5102 cat > conftest.$ac_ext <<EOF
5103 #line 5104 "configure"
5104 #include "confdefs.h"
5110 if { (eval echo configure:5111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5112 am_cv_val_LC_MESSAGES=yes
5114 echo "configure: failed program was:" >&5
5115 cat conftest.$ac_ext >&5
5117 am_cv_val_LC_MESSAGES=no
5122 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
5123 if test $am_cv_val_LC_MESSAGES = yes; then
5124 cat >> confdefs.h <<\EOF
5125 #define HAVE_LC_MESSAGES 1
5130 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
5131 echo "configure:5132: checking whether struct tm is in sys/time.h or time.h" >&5
5132 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
5133 echo $ac_n "(cached) $ac_c" 1>&6
5135 cat > conftest.$ac_ext <<EOF
5136 #line 5137 "configure"
5137 #include "confdefs.h"
5138 #include <sys/types.h>
5141 struct tm *tp; tp->tm_sec;
5144 if { (eval echo configure:5145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5146 ac_cv_struct_tm=time.h
5148 echo "configure: failed program was:" >&5
5149 cat conftest.$ac_ext >&5
5151 ac_cv_struct_tm=sys/time.h
5156 echo "$ac_t""$ac_cv_struct_tm" 1>&6
5157 if test $ac_cv_struct_tm = sys/time.h; then
5158 cat >> confdefs.h <<\EOF
5159 #define TM_IN_SYS_TIME 1
5164 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
5165 echo "configure:5166: checking for tm_zone in struct tm" >&5
5166 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
5167 echo $ac_n "(cached) $ac_c" 1>&6
5169 cat > conftest.$ac_ext <<EOF
5170 #line 5171 "configure"
5171 #include "confdefs.h"
5172 #include <sys/types.h>
5173 #include <$ac_cv_struct_tm>
5175 struct tm tm; tm.tm_zone;
5178 if { (eval echo configure:5179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5180 ac_cv_struct_tm_zone=yes
5182 echo "configure: failed program was:" >&5
5183 cat conftest.$ac_ext >&5
5185 ac_cv_struct_tm_zone=no
5190 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
5191 if test "$ac_cv_struct_tm_zone" = yes; then
5192 cat >> confdefs.h <<\EOF
5193 #define HAVE_TM_ZONE 1
5197 echo $ac_n "checking for tzname""... $ac_c" 1>&6
5198 echo "configure:5199: checking for tzname" >&5
5199 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
5200 echo $ac_n "(cached) $ac_c" 1>&6
5202 cat > conftest.$ac_ext <<EOF
5203 #line 5204 "configure"
5204 #include "confdefs.h"
5206 #ifndef tzname /* For SGI. */
5207 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5213 if { (eval echo configure:5214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5215 ac_cv_var_tzname=yes
5217 echo "configure: failed program was:" >&5
5218 cat conftest.$ac_ext >&5
5225 echo "$ac_t""$ac_cv_var_tzname" 1>&6
5226 if test $ac_cv_var_tzname = yes; then
5227 cat >> confdefs.h <<\EOF
5228 #define HAVE_TZNAME 1
5235 for ac_func in gethostbyname_r
5237 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5238 echo "configure:5239: checking for $ac_func" >&5
5239 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5240 echo $ac_n "(cached) $ac_c" 1>&6
5242 cat > conftest.$ac_ext <<EOF
5243 #line 5244 "configure"
5244 #include "confdefs.h"
5245 /* System header to define __stub macros and hopefully few prototypes,
5246 which can conflict with char $ac_func(); below. */
5248 /* Override any gcc2 internal prototype to avoid an error. */
5249 /* We use char because int might match the return type of a gcc2
5250 builtin and then its argument prototype would still apply. */
5255 /* The GNU C library defines this for functions which it implements
5256 to always fail with ENOSYS. Some functions are actually named
5257 something starting with __ and the normal name is an alias. */
5258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5266 if { (eval echo configure:5267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5268 eval "ac_cv_func_$ac_func=yes"
5270 echo "configure: failed program was:" >&5
5271 cat conftest.$ac_ext >&5
5273 eval "ac_cv_func_$ac_func=no"
5278 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5279 echo "$ac_t""yes" 1>&6
5280 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5281 cat >> confdefs.h <<EOF
5282 #define $ac_tr_func 1
5285 cat >> confdefs.h <<\EOF
5286 #define HAVE_GETHOSTBYNAME_R 1
5289 # There are two different kinds of gethostbyname_r.
5290 # We look for the one that returns `int'.
5291 # Hopefully this check is robust enough.
5292 cat > conftest.$ac_ext <<EOF
5293 #line 5294 "configure"
5294 #include "confdefs.h"
5297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5298 egrep "int.*gethostbyname_r" >/dev/null 2>&1; then
5301 cat >> confdefs.h <<\EOF
5302 #define GETHOSTBYNAME_R_RETURNS_INT 1
5310 *" -D_REENTRANT "*) ;;
5312 echo $ac_n "checking whether gethostbyname_r declaration requires -D_REENTRANT""... $ac_c" 1>&6
5313 echo "configure:5314: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
5314 if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
5315 echo $ac_n "(cached) $ac_c" 1>&6
5319 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5320 ac_cpp='$CXXCPP $CPPFLAGS'
5321 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5322 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5323 cross_compiling=$ac_cv_prog_cxx_cross
5325 cat > conftest.$ac_ext <<EOF
5326 #line 5327 "configure"
5327 #include "confdefs.h"
5330 gethostbyname_r("", 0, 0);
5333 if { (eval echo configure:5334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5335 libjava_cv_gethostbyname_r_needs_reentrant=no
5337 echo "configure: failed program was:" >&5
5338 cat conftest.$ac_ext >&5
5340 CPPFLAGS_SAVE="$CPPFLAGS"
5341 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
5342 cat > conftest.$ac_ext <<EOF
5343 #line 5344 "configure"
5344 #include "confdefs.h"
5347 gethostbyname_r("", 0, 0);
5350 if { (eval echo configure:5351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5352 libjava_cv_gethostbyname_r_needs_reentrant=yes
5354 echo "configure: failed program was:" >&5
5355 cat conftest.$ac_ext >&5
5357 libjava_cv_gethostbyname_r_needs_reentrant=fail
5360 CPPFLAGS="$CPPFLAGS_SAVE"
5365 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5366 ac_cpp='$CPP $CPPFLAGS'
5367 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5368 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5369 cross_compiling=$ac_cv_prog_cc_cross
5374 echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
5375 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
5376 cat >> confdefs.h <<\EOF
5377 #define _REENTRANT 1
5384 echo $ac_n "checking for struct hostent_data""... $ac_c" 1>&6
5385 echo "configure:5386: checking for struct hostent_data" >&5
5386 if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
5387 echo $ac_n "(cached) $ac_c" 1>&6
5389 cat > conftest.$ac_ext <<EOF
5390 #line 5391 "configure"
5391 #include "confdefs.h"
5393 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
5394 # define _REENTRANT 1
5398 struct hostent_data data;
5401 if { (eval echo configure:5402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5403 libjava_cv_struct_hostent_data=yes
5405 echo "configure: failed program was:" >&5
5406 cat conftest.$ac_ext >&5
5408 libjava_cv_struct_hostent_data=no
5413 echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
5414 if test "x$libjava_cv_struct_hostent_data" = xyes; then
5415 cat >> confdefs.h <<\EOF
5416 #define HAVE_STRUCT_HOSTENT_DATA 1
5422 echo "$ac_t""no" 1>&6
5427 # FIXME: libjava source code expects to find a prototype for
5428 # gethostbyaddr_r in netdb.h. The outer check ensures that
5429 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
5430 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
5431 # linkage check is enough, yet C++ code requires proper prototypes.)
5432 cat > conftest.$ac_ext <<EOF
5433 #line 5434 "configure"
5434 #include "confdefs.h"
5437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5438 egrep "gethostbyaddr_r" >/dev/null 2>&1; then
5441 for ac_func in gethostbyaddr_r
5443 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5444 echo "configure:5445: checking for $ac_func" >&5
5445 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+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"
5451 /* System header to define __stub macros and hopefully few prototypes,
5452 which can conflict with char $ac_func(); below. */
5454 /* Override any gcc2 internal prototype to avoid an error. */
5455 /* We use char because int might match the return type of a gcc2
5456 builtin and then its argument prototype would still apply. */
5461 /* The GNU C library defines this for functions which it implements
5462 to always fail with ENOSYS. Some functions are actually named
5463 something starting with __ and the normal name is an alias. */
5464 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5472 if { (eval echo configure:5473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5474 eval "ac_cv_func_$ac_func=yes"
5476 echo "configure: failed program was:" >&5
5477 cat conftest.$ac_ext >&5
5479 eval "ac_cv_func_$ac_func=no"
5484 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5485 echo "$ac_t""yes" 1>&6
5486 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5487 cat >> confdefs.h <<EOF
5488 #define $ac_tr_func 1
5491 cat >> confdefs.h <<\EOF
5492 #define HAVE_GETHOSTBYADDR_R 1
5495 # There are two different kinds of gethostbyaddr_r.
5496 # We look for the one that returns `int'.
5497 # Hopefully this check is robust enough.
5498 cat > conftest.$ac_ext <<EOF
5499 #line 5500 "configure"
5500 #include "confdefs.h"
5503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5504 egrep "int.*gethostbyaddr_r" >/dev/null 2>&1; then
5507 cat >> confdefs.h <<\EOF
5508 #define GETHOSTBYADDR_R_RETURNS_INT 1
5515 echo "$ac_t""no" 1>&6
5523 for ac_func in gethostname
5525 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5526 echo "configure:5527: checking for $ac_func" >&5
5527 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5528 echo $ac_n "(cached) $ac_c" 1>&6
5530 cat > conftest.$ac_ext <<EOF
5531 #line 5532 "configure"
5532 #include "confdefs.h"
5533 /* System header to define __stub macros and hopefully few prototypes,
5534 which can conflict with char $ac_func(); below. */
5536 /* Override any gcc2 internal prototype to avoid an error. */
5537 /* We use char because int might match the return type of a gcc2
5538 builtin and then its argument prototype would still apply. */
5543 /* The GNU C library defines this for functions which it implements
5544 to always fail with ENOSYS. Some functions are actually named
5545 something starting with __ and the normal name is an alias. */
5546 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5554 if { (eval echo configure:5555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5556 eval "ac_cv_func_$ac_func=yes"
5558 echo "configure: failed program was:" >&5
5559 cat conftest.$ac_ext >&5
5561 eval "ac_cv_func_$ac_func=no"
5566 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5567 echo "$ac_t""yes" 1>&6
5568 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5569 cat >> confdefs.h <<EOF
5570 #define $ac_tr_func 1
5573 cat >> confdefs.h <<\EOF
5574 #define HAVE_GETHOSTNAME 1
5577 cat > conftest.$ac_ext <<EOF
5578 #line 5579 "configure"
5579 #include "confdefs.h"
5582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5583 egrep "gethostname" >/dev/null 2>&1; then
5586 cat >> confdefs.h <<\EOF
5587 #define HAVE_GETHOSTNAME_DECL 1
5594 echo "$ac_t""no" 1>&6
5599 for ac_func in usleep
5601 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5602 echo "configure:5603: checking for $ac_func" >&5
5603 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5604 echo $ac_n "(cached) $ac_c" 1>&6
5606 cat > conftest.$ac_ext <<EOF
5607 #line 5608 "configure"
5608 #include "confdefs.h"
5609 /* System header to define __stub macros and hopefully few prototypes,
5610 which can conflict with char $ac_func(); below. */
5612 /* Override any gcc2 internal prototype to avoid an error. */
5613 /* We use char because int might match the return type of a gcc2
5614 builtin and then its argument prototype would still apply. */
5619 /* The GNU C library defines this for functions which it implements
5620 to always fail with ENOSYS. Some functions are actually named
5621 something starting with __ and the normal name is an alias. */
5622 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5630 if { (eval echo configure:5631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5632 eval "ac_cv_func_$ac_func=yes"
5634 echo "configure: failed program was:" >&5
5635 cat conftest.$ac_ext >&5
5637 eval "ac_cv_func_$ac_func=no"
5642 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5643 echo "$ac_t""yes" 1>&6
5644 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5645 cat >> confdefs.h <<EOF
5646 #define $ac_tr_func 1
5649 cat > conftest.$ac_ext <<EOF
5650 #line 5651 "configure"
5651 #include "confdefs.h"
5654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5655 egrep "usleep" >/dev/null 2>&1; then
5658 cat >> confdefs.h <<\EOF
5659 #define HAVE_USLEEP_DECL 1
5666 echo "$ac_t""no" 1>&6
5671 # Look for these functions in the thread library, but only bother
5672 # if using POSIX threads.
5673 if test "$THREADS" = posix; then
5675 LIBS="$LIBS $THREADLIBS"
5676 # Some POSIX thread systems don't have pthread_mutexattr_settype.
5678 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
5680 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5681 echo "configure:5682: checking for $ac_func" >&5
5682 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5683 echo $ac_n "(cached) $ac_c" 1>&6
5685 cat > conftest.$ac_ext <<EOF
5686 #line 5687 "configure"
5687 #include "confdefs.h"
5688 /* System header to define __stub macros and hopefully few prototypes,
5689 which can conflict with char $ac_func(); below. */
5691 /* Override any gcc2 internal prototype to avoid an error. */
5692 /* We use char because int might match the return type of a gcc2
5693 builtin and then its argument prototype would still apply. */
5698 /* The GNU C library defines this for functions which it implements
5699 to always fail with ENOSYS. Some functions are actually named
5700 something starting with __ and the normal name is an alias. */
5701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5709 if { (eval echo configure:5710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5711 eval "ac_cv_func_$ac_func=yes"
5713 echo "configure: failed program was:" >&5
5714 cat conftest.$ac_ext >&5
5716 eval "ac_cv_func_$ac_func=no"
5721 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5722 echo "$ac_t""yes" 1>&6
5723 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5724 cat >> confdefs.h <<EOF
5725 #define $ac_tr_func 1
5729 echo "$ac_t""no" 1>&6
5734 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
5735 # Solaris 7 the name librt is preferred.
5736 for ac_func in sched_yield
5738 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5739 echo "configure:5740: checking for $ac_func" >&5
5740 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5741 echo $ac_n "(cached) $ac_c" 1>&6
5743 cat > conftest.$ac_ext <<EOF
5744 #line 5745 "configure"
5745 #include "confdefs.h"
5746 /* System header to define __stub macros and hopefully few prototypes,
5747 which can conflict with char $ac_func(); below. */
5749 /* Override any gcc2 internal prototype to avoid an error. */
5750 /* We use char because int might match the return type of a gcc2
5751 builtin and then its argument prototype would still apply. */
5756 /* The GNU C library defines this for functions which it implements
5757 to always fail with ENOSYS. Some functions are actually named
5758 something starting with __ and the normal name is an alias. */
5759 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5767 if { (eval echo configure:5768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5769 eval "ac_cv_func_$ac_func=yes"
5771 echo "configure: failed program was:" >&5
5772 cat conftest.$ac_ext >&5
5774 eval "ac_cv_func_$ac_func=no"
5779 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5780 echo "$ac_t""yes" 1>&6
5781 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5782 cat >> confdefs.h <<EOF
5783 #define $ac_tr_func 1
5787 echo "$ac_t""no" 1>&6
5788 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
5789 echo "configure:5790: checking for sched_yield in -lrt" >&5
5790 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
5791 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5792 echo $ac_n "(cached) $ac_c" 1>&6
5794 ac_save_LIBS="$LIBS"
5796 cat > conftest.$ac_ext <<EOF
5797 #line 5798 "configure"
5798 #include "confdefs.h"
5799 /* Override any gcc2 internal prototype to avoid an error. */
5800 /* We use char because int might match the return type of a gcc2
5801 builtin and then its argument prototype would still apply. */
5808 if { (eval echo configure:5809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5810 eval "ac_cv_lib_$ac_lib_var=yes"
5812 echo "configure: failed program was:" >&5
5813 cat conftest.$ac_ext >&5
5815 eval "ac_cv_lib_$ac_lib_var=no"
5818 LIBS="$ac_save_LIBS"
5821 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5822 echo "$ac_t""yes" 1>&6
5824 cat >> confdefs.h <<\EOF
5825 #define HAVE_SCHED_YIELD 1
5828 THREADLIBS="$THREADLIBS -lrt"
5829 THREADSPEC="$THREADSPEC -lrt"
5831 echo "$ac_t""no" 1>&6
5833 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
5834 echo "configure:5835: checking for sched_yield in -lposix4" >&5
5835 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
5836 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5837 echo $ac_n "(cached) $ac_c" 1>&6
5839 ac_save_LIBS="$LIBS"
5840 LIBS="-lposix4 $LIBS"
5841 cat > conftest.$ac_ext <<EOF
5842 #line 5843 "configure"
5843 #include "confdefs.h"
5844 /* Override any gcc2 internal prototype to avoid an error. */
5845 /* We use char because int might match the return type of a gcc2
5846 builtin and then its argument prototype would still apply. */
5853 if { (eval echo configure:5854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5855 eval "ac_cv_lib_$ac_lib_var=yes"
5857 echo "configure: failed program was:" >&5
5858 cat conftest.$ac_ext >&5
5860 eval "ac_cv_lib_$ac_lib_var=no"
5863 LIBS="$ac_save_LIBS"
5866 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5867 echo "$ac_t""yes" 1>&6
5869 cat >> confdefs.h <<\EOF
5870 #define HAVE_SCHED_YIELD 1
5873 THREADLIBS="$THREADLIBS -lposix4"
5874 THREADSPEC="$THREADSPEC -lposix4"
5876 echo "$ac_t""no" 1>&6
5886 # We can save a little space at runtime if the mutex has m_count
5887 # or __m_count. This is a nice hack for Linux.
5888 cat > conftest.$ac_ext <<EOF
5889 #line 5890 "configure"
5890 #include "confdefs.h"
5891 #include <pthread.h>
5894 extern pthread_mutex_t *mutex; int q = mutex->m_count;
5898 if { (eval echo configure:5899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5900 cat >> confdefs.h <<\EOF
5901 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
5905 echo "configure: failed program was:" >&5
5906 cat conftest.$ac_ext >&5
5909 cat > conftest.$ac_ext <<EOF
5910 #line 5911 "configure"
5911 #include "confdefs.h"
5912 #include <pthread.h>
5915 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
5919 if { (eval echo configure:5920: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5921 cat >> confdefs.h <<\EOF
5922 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
5926 echo "configure: failed program was:" >&5
5927 cat conftest.$ac_ext >&5
5934 # We require a way to get the time.
5936 for ac_func in gettimeofday time ftime
5938 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5939 echo "configure:5940: checking for $ac_func" >&5
5940 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5941 echo $ac_n "(cached) $ac_c" 1>&6
5943 cat > conftest.$ac_ext <<EOF
5944 #line 5945 "configure"
5945 #include "confdefs.h"
5946 /* System header to define __stub macros and hopefully few prototypes,
5947 which can conflict with char $ac_func(); below. */
5949 /* Override any gcc2 internal prototype to avoid an error. */
5950 /* We use char because int might match the return type of a gcc2
5951 builtin and then its argument prototype would still apply. */
5956 /* The GNU C library defines this for functions which it implements
5957 to always fail with ENOSYS. Some functions are actually named
5958 something starting with __ and the normal name is an alias. */
5959 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5967 if { (eval echo configure:5968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5969 eval "ac_cv_func_$ac_func=yes"
5971 echo "configure: failed program was:" >&5
5972 cat conftest.$ac_ext >&5
5974 eval "ac_cv_func_$ac_func=no"
5979 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5980 echo "$ac_t""yes" 1>&6
5981 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5982 cat >> confdefs.h <<EOF
5983 #define $ac_tr_func 1
5987 echo "$ac_t""no" 1>&6
5991 if test "$time_found" = no; then
5992 { echo "configure: error: no function found to get the time" 1>&2; exit 1; }
5995 for ac_func in memmove
5997 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5998 echo "configure:5999: checking for $ac_func" >&5
5999 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6000 echo $ac_n "(cached) $ac_c" 1>&6
6002 cat > conftest.$ac_ext <<EOF
6003 #line 6004 "configure"
6004 #include "confdefs.h"
6005 /* System header to define __stub macros and hopefully few prototypes,
6006 which can conflict with char $ac_func(); below. */
6008 /* Override any gcc2 internal prototype to avoid an error. */
6009 /* We use char because int might match the return type of a gcc2
6010 builtin and then its argument prototype would still apply. */
6015 /* The GNU C library defines this for functions which it implements
6016 to always fail with ENOSYS. Some functions are actually named
6017 something starting with __ and the normal name is an alias. */
6018 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6026 if { (eval echo configure:6027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6028 eval "ac_cv_func_$ac_func=yes"
6030 echo "configure: failed program was:" >&5
6031 cat conftest.$ac_ext >&5
6033 eval "ac_cv_func_$ac_func=no"
6038 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6039 echo "$ac_t""yes" 1>&6
6040 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6041 cat >> confdefs.h <<EOF
6042 #define $ac_tr_func 1
6046 echo "$ac_t""no" 1>&6
6051 # We require memcpy.
6053 for ac_func in memcpy
6055 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6056 echo "configure:6057: checking for $ac_func" >&5
6057 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6058 echo $ac_n "(cached) $ac_c" 1>&6
6060 cat > conftest.$ac_ext <<EOF
6061 #line 6062 "configure"
6062 #include "confdefs.h"
6063 /* System header to define __stub macros and hopefully few prototypes,
6064 which can conflict with char $ac_func(); below. */
6066 /* Override any gcc2 internal prototype to avoid an error. */
6067 /* We use char because int might match the return type of a gcc2
6068 builtin and then its argument prototype would still apply. */
6073 /* The GNU C library defines this for functions which it implements
6074 to always fail with ENOSYS. Some functions are actually named
6075 something starting with __ and the normal name is an alias. */
6076 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6084 if { (eval echo configure:6085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6086 eval "ac_cv_func_$ac_func=yes"
6088 echo "configure: failed program was:" >&5
6089 cat conftest.$ac_ext >&5
6091 eval "ac_cv_func_$ac_func=no"
6096 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6097 echo "$ac_t""yes" 1>&6
6098 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6099 cat >> confdefs.h <<EOF
6100 #define $ac_tr_func 1
6104 echo "$ac_t""no" 1>&6
6108 if test "$memcpy_found" = no; then
6109 { echo "configure: error: memcpy is required" 1>&2; exit 1; }
6112 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6113 echo "configure:6114: checking for dlopen in -ldl" >&5
6114 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
6115 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6116 echo $ac_n "(cached) $ac_c" 1>&6
6118 ac_save_LIBS="$LIBS"
6120 cat > conftest.$ac_ext <<EOF
6121 #line 6122 "configure"
6122 #include "confdefs.h"
6123 /* Override any gcc2 internal prototype to avoid an error. */
6124 /* We use char because int might match the return type of a gcc2
6125 builtin and then its argument prototype would still apply. */
6132 if { (eval echo configure:6133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6134 eval "ac_cv_lib_$ac_lib_var=yes"
6136 echo "configure: failed program was:" >&5
6137 cat conftest.$ac_ext >&5
6139 eval "ac_cv_lib_$ac_lib_var=no"
6142 LIBS="$ac_save_LIBS"
6145 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6146 echo "$ac_t""yes" 1>&6
6148 cat >> confdefs.h <<\EOF
6149 #define HAVE_DLOPEN 1
6153 echo "$ac_t""no" 1>&6
6157 # Some library-finding code we stole from Tcl.
6158 #--------------------------------------------------------------------
6159 # Check for the existence of the -lsocket and -lnsl libraries.
6160 # The order here is important, so that they end up in the right
6161 # order in the command line generated by make. Here are some
6162 # special considerations:
6163 # 1. Use "connect" and "accept" to check for -lsocket, and
6164 # "gethostbyname" to check for -lnsl.
6165 # 2. Use each function name only once: can't redo a check because
6166 # autoconf caches the results of the last check and won't redo it.
6167 # 3. Use -lnsl and -lsocket only if they supply procedures that
6168 # aren't already present in the normal libraries. This is because
6169 # IRIX 5.2 has libraries, but they aren't needed and they're
6170 # bogus: they goof up name resolution if used.
6171 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
6172 # To get around this problem, check for both libraries together
6173 # if -lsocket doesn't work by itself.
6174 #--------------------------------------------------------------------
6176 echo $ac_n "checking for socket libraries""... $ac_c" 1>&6
6177 echo "configure:6178: checking for socket libraries" >&5
6178 if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
6179 echo $ac_n "(cached) $ac_c" 1>&6
6183 unset ac_cv_func_connect
6184 echo $ac_n "checking for connect""... $ac_c" 1>&6
6185 echo "configure:6186: checking for connect" >&5
6186 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
6187 echo $ac_n "(cached) $ac_c" 1>&6
6189 cat > conftest.$ac_ext <<EOF
6190 #line 6191 "configure"
6191 #include "confdefs.h"
6192 /* System header to define __stub macros and hopefully few prototypes,
6193 which can conflict with char connect(); below. */
6195 /* Override any gcc2 internal prototype to avoid an error. */
6196 /* We use char because int might match the return type of a gcc2
6197 builtin and then its argument prototype would still apply. */
6202 /* The GNU C library defines this for functions which it implements
6203 to always fail with ENOSYS. Some functions are actually named
6204 something starting with __ and the normal name is an alias. */
6205 #if defined (__stub_connect) || defined (__stub___connect)
6213 if { (eval echo configure:6214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6215 eval "ac_cv_func_connect=yes"
6217 echo "configure: failed program was:" >&5
6218 cat conftest.$ac_ext >&5
6220 eval "ac_cv_func_connect=no"
6225 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
6226 echo "$ac_t""yes" 1>&6
6229 echo "$ac_t""no" 1>&6
6233 if test "$gcj_checkSocket" = 1; then
6234 unset ac_cv_func_connect
6235 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
6236 echo "configure:6237: checking for main in -lsocket" >&5
6237 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
6238 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6239 echo $ac_n "(cached) $ac_c" 1>&6
6241 ac_save_LIBS="$LIBS"
6242 LIBS="-lsocket $LIBS"
6243 cat > conftest.$ac_ext <<EOF
6244 #line 6245 "configure"
6245 #include "confdefs.h"
6251 if { (eval echo configure:6252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6253 eval "ac_cv_lib_$ac_lib_var=yes"
6255 echo "configure: failed program was:" >&5
6256 cat conftest.$ac_ext >&5
6258 eval "ac_cv_lib_$ac_lib_var=no"
6261 LIBS="$ac_save_LIBS"
6264 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6265 echo "$ac_t""yes" 1>&6
6266 gcj_cv_lib_sockets="-lsocket"
6268 echo "$ac_t""no" 1>&6
6273 if test "$gcj_checkBoth" = 1; then
6275 LIBS="$LIBS -lsocket -lnsl"
6276 unset ac_cv_func_accept
6277 echo $ac_n "checking for accept""... $ac_c" 1>&6
6278 echo "configure:6279: checking for accept" >&5
6279 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
6280 echo $ac_n "(cached) $ac_c" 1>&6
6282 cat > conftest.$ac_ext <<EOF
6283 #line 6284 "configure"
6284 #include "confdefs.h"
6285 /* System header to define __stub macros and hopefully few prototypes,
6286 which can conflict with char accept(); below. */
6288 /* Override any gcc2 internal prototype to avoid an error. */
6289 /* We use char because int might match the return type of a gcc2
6290 builtin and then its argument prototype would still apply. */
6295 /* The GNU C library defines this for functions which it implements
6296 to always fail with ENOSYS. Some functions are actually named
6297 something starting with __ and the normal name is an alias. */
6298 #if defined (__stub_accept) || defined (__stub___accept)
6306 if { (eval echo configure:6307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6308 eval "ac_cv_func_accept=yes"
6310 echo "configure: failed program was:" >&5
6311 cat conftest.$ac_ext >&5
6313 eval "ac_cv_func_accept=no"
6318 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
6319 echo "$ac_t""yes" 1>&6
6321 gcj_cv_lib_sockets="-lsocket -lnsl"
6323 echo "$ac_t""no" 1>&6
6326 unset ac_cv_func_accept
6329 unset ac_cv_func_gethostbyname
6331 LIBS="$LIBS $gcj_cv_lib_sockets"
6332 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
6333 echo "configure:6334: checking for gethostbyname" >&5
6334 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
6335 echo $ac_n "(cached) $ac_c" 1>&6
6337 cat > conftest.$ac_ext <<EOF
6338 #line 6339 "configure"
6339 #include "confdefs.h"
6340 /* System header to define __stub macros and hopefully few prototypes,
6341 which can conflict with char gethostbyname(); below. */
6343 /* Override any gcc2 internal prototype to avoid an error. */
6344 /* We use char because int might match the return type of a gcc2
6345 builtin and then its argument prototype would still apply. */
6346 char gethostbyname();
6350 /* The GNU C library defines this for functions which it implements
6351 to always fail with ENOSYS. Some functions are actually named
6352 something starting with __ and the normal name is an alias. */
6353 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6361 if { (eval echo configure:6362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6363 eval "ac_cv_func_gethostbyname=yes"
6365 echo "configure: failed program was:" >&5
6366 cat conftest.$ac_ext >&5
6368 eval "ac_cv_func_gethostbyname=no"
6373 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
6374 echo "$ac_t""yes" 1>&6
6377 echo "$ac_t""no" 1>&6
6378 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
6379 echo "configure:6380: checking for main in -lnsl" >&5
6380 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
6381 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6382 echo $ac_n "(cached) $ac_c" 1>&6
6384 ac_save_LIBS="$LIBS"
6386 cat > conftest.$ac_ext <<EOF
6387 #line 6388 "configure"
6388 #include "confdefs.h"
6394 if { (eval echo configure:6395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6396 eval "ac_cv_lib_$ac_lib_var=yes"
6398 echo "configure: failed program was:" >&5
6399 cat conftest.$ac_ext >&5
6401 eval "ac_cv_lib_$ac_lib_var=no"
6404 LIBS="$ac_save_LIBS"
6407 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6408 echo "$ac_t""yes" 1>&6
6409 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
6411 echo "$ac_t""no" 1>&6
6416 unset ac_cv_func_gethostbyname
6421 echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
6422 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
6424 if test "$with_system_zlib" = yes; then
6425 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
6426 echo "configure:6427: checking for deflate in -lz" >&5
6427 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
6428 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6429 echo $ac_n "(cached) $ac_c" 1>&6
6431 ac_save_LIBS="$LIBS"
6433 cat > conftest.$ac_ext <<EOF
6434 #line 6435 "configure"
6435 #include "confdefs.h"
6436 /* Override any gcc2 internal prototype to avoid an error. */
6437 /* We use char because int might match the return type of a gcc2
6438 builtin and then its argument prototype would still apply. */
6445 if { (eval echo configure:6446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6447 eval "ac_cv_lib_$ac_lib_var=yes"
6449 echo "configure: failed program was:" >&5
6450 cat conftest.$ac_ext >&5
6452 eval "ac_cv_lib_$ac_lib_var=no"
6455 LIBS="$ac_save_LIBS"
6458 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6459 echo "$ac_t""yes" 1>&6
6462 echo "$ac_t""no" 1>&6
6468 # Test for Gtk stuff, if asked for.
6469 if test "$use_gtk_awt" = yes; then
6470 # Check whether --enable-gtktest or --disable-gtktest was given.
6471 if test "${enable_gtktest+set}" = set; then
6472 enableval="$enable_gtktest"
6479 pkg_config_args=gtk+-2.0
6484 pkg_config_args="$pkg_config_args gthread-2.0"
6491 # Extract the first word of "pkg-config", so it can be a program name with args.
6492 set dummy pkg-config; ac_word=$2
6493 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6494 echo "configure:6495: checking for $ac_word" >&5
6495 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
6496 echo $ac_n "(cached) $ac_c" 1>&6
6498 case "$PKG_CONFIG" in
6500 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6503 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
6506 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6508 for ac_dir in $ac_dummy; do
6509 test -z "$ac_dir" && ac_dir=.
6510 if test -f $ac_dir/$ac_word; then
6511 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
6516 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6520 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6521 if test -n "$PKG_CONFIG"; then
6522 echo "$ac_t""$PKG_CONFIG" 1>&6
6524 echo "$ac_t""no" 1>&6
6528 if test x$PKG_CONFIG != xno ; then
6529 if pkg-config --atleast-pkgconfig-version 0.7 ; then
6532 echo *** pkg-config too old; version 0.7 or better required.
6540 min_gtk_version=2.0.0
6541 echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6
6542 echo "configure:6543: checking for GTK+ - version >= $min_gtk_version" >&5
6544 if test x$PKG_CONFIG != xno ; then
6545 ## don't try to run the test against uninstalled libtool libs
6546 if $PKG_CONFIG --uninstalled $pkg_config_args; then
6547 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
6551 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
6558 if test x"$no_gtk" = x ; then
6559 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
6560 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
6561 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
6562 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
6563 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
6564 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
6565 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
6566 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
6567 if test "x$enable_gtktest" = "xyes" ; then
6568 ac_save_CFLAGS="$CFLAGS"
6569 ac_save_LIBS="$LIBS"
6570 CFLAGS="$CFLAGS $GTK_CFLAGS"
6571 LIBS="$GTK_LIBS $LIBS"
6573 if test "$cross_compiling" = yes; then
6574 echo $ac_n "cross compiling; assumed OK... $ac_c"
6576 cat > conftest.$ac_ext <<EOF
6577 #line 6578 "configure"
6578 #include "confdefs.h"
6580 #include <gtk/gtk.h>
6587 int major, minor, micro;
6590 system ("touch conf.gtktest");
6592 /* HP/UX 9 (%@#!) writes to sscanf strings */
6593 tmp_version = g_strdup("$min_gtk_version");
6594 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
6595 printf("%s, bad version string\n", "$min_gtk_version");
6599 if ((gtk_major_version != $gtk_config_major_version) ||
6600 (gtk_minor_version != $gtk_config_minor_version) ||
6601 (gtk_micro_version != $gtk_config_micro_version))
6603 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
6604 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
6605 gtk_major_version, gtk_minor_version, gtk_micro_version);
6606 printf ("*** was found! If pkg-config was correct, then it is best\n");
6607 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
6608 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
6609 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
6610 printf("*** required on your system.\n");
6611 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
6612 printf("*** to point to the correct configuration files\n");
6614 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
6615 (gtk_minor_version != GTK_MINOR_VERSION) ||
6616 (gtk_micro_version != GTK_MICRO_VERSION))
6618 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
6619 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
6620 printf("*** library (version %d.%d.%d)\n",
6621 gtk_major_version, gtk_minor_version, gtk_micro_version);
6625 if ((gtk_major_version > major) ||
6626 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
6627 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
6633 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
6634 gtk_major_version, gtk_minor_version, gtk_micro_version);
6635 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
6636 major, minor, micro);
6637 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
6639 printf("*** If you have already installed a sufficiently new version, this error\n");
6640 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
6641 printf("*** being found. The easiest way to fix this is to remove the old version\n");
6642 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
6643 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
6644 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
6645 printf("*** so that the correct libraries are found at run-time))\n");
6652 if { (eval echo configure:6653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6656 echo "configure: failed program was:" >&5
6657 cat conftest.$ac_ext >&5
6664 CFLAGS="$ac_save_CFLAGS"
6665 LIBS="$ac_save_LIBS"
6668 if test "x$no_gtk" = x ; then
6669 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
6672 echo "$ac_t""no" 1>&6
6673 if test "$PKG_CONFIG" = "no" ; then
6674 echo "*** A new enough version of pkg-config was not found."
6675 echo "*** See http://pkgconfig.sourceforge.net"
6677 if test -f conf.gtktest ; then
6680 echo "*** Could not run GTK+ test program, checking why..."
6681 ac_save_CFLAGS="$CFLAGS"
6682 ac_save_LIBS="$LIBS"
6683 CFLAGS="$CFLAGS $GTK_CFLAGS"
6684 LIBS="$LIBS $GTK_LIBS"
6685 cat > conftest.$ac_ext <<EOF
6686 #line 6687 "configure"
6687 #include "confdefs.h"
6689 #include <gtk/gtk.h>
6693 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
6696 if { (eval echo configure:6697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6698 echo "*** The test program compiled, but did not run. This usually means"
6699 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
6700 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
6701 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
6702 echo "*** to the installed location Also, make sure you have run ldconfig if that"
6703 echo "*** is required on your system"
6705 echo "*** If you have an old version installed, it is best to remove it, although"
6706 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
6708 echo "configure: failed program was:" >&5
6709 cat conftest.$ac_ext >&5
6711 echo "*** The test program failed to compile or link. See the file config.log for the"
6712 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
6715 CFLAGS="$ac_save_CFLAGS"
6716 LIBS="$ac_save_LIBS"
6727 # Check whether --enable-glibtest or --disable-glibtest was given.
6728 if test "${enable_glibtest+set}" = set; then
6729 enableval="$enable_glibtest"
6736 pkg_config_args=glib-2.0
6737 for module in . gthread
6741 pkg_config_args="$pkg_config_args gmodule-2.0"
6744 pkg_config_args="$pkg_config_args gobject-2.0"
6747 pkg_config_args="$pkg_config_args gthread-2.0"
6752 # Extract the first word of "pkg-config", so it can be a program name with args.
6753 set dummy pkg-config; ac_word=$2
6754 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6755 echo "configure:6756: checking for $ac_word" >&5
6756 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
6757 echo $ac_n "(cached) $ac_c" 1>&6
6759 case "$PKG_CONFIG" in
6761 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6764 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
6767 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6769 for ac_dir in $ac_dummy; do
6770 test -z "$ac_dir" && ac_dir=.
6771 if test -f $ac_dir/$ac_word; then
6772 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
6777 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6781 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6782 if test -n "$PKG_CONFIG"; then
6783 echo "$ac_t""$PKG_CONFIG" 1>&6
6785 echo "$ac_t""no" 1>&6
6791 if test x$PKG_CONFIG != xno ; then
6792 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then
6795 echo *** pkg-config too old; version 0.7 or better required.
6803 min_glib_version=2.0.0
6804 echo $ac_n "checking for GLIB - version >= $min_glib_version""... $ac_c" 1>&6
6805 echo "configure:6806: checking for GLIB - version >= $min_glib_version" >&5
6807 if test x$PKG_CONFIG != xno ; then
6808 ## don't try to run the test against uninstalled libtool libs
6809 if $PKG_CONFIG --uninstalled $pkg_config_args; then
6810 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
6814 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
6821 if test x"$no_glib" = x ; then
6822 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
6823 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
6824 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
6826 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
6827 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
6828 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
6829 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
6830 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
6831 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
6832 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
6833 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
6834 if test "x$enable_glibtest" = "xyes" ; then
6835 ac_save_CFLAGS="$CFLAGS"
6836 ac_save_LIBS="$LIBS"
6837 CFLAGS="$CFLAGS $GLIB_CFLAGS"
6838 LIBS="$GLIB_LIBS $LIBS"
6840 if test "$cross_compiling" = yes; then
6841 echo $ac_n "cross compiling; assumed OK... $ac_c"
6843 cat > conftest.$ac_ext <<EOF
6844 #line 6845 "configure"
6845 #include "confdefs.h"
6854 int major, minor, micro;
6857 system ("touch conf.glibtest");
6859 /* HP/UX 9 (%@#!) writes to sscanf strings */
6860 tmp_version = g_strdup("$min_glib_version");
6861 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
6862 printf("%s, bad version string\n", "$min_glib_version");
6866 if ((glib_major_version != $glib_config_major_version) ||
6867 (glib_minor_version != $glib_config_minor_version) ||
6868 (glib_micro_version != $glib_config_micro_version))
6870 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
6871 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
6872 glib_major_version, glib_minor_version, glib_micro_version);
6873 printf ("*** was found! If pkg-config was correct, then it is best\n");
6874 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
6875 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
6876 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
6877 printf("*** required on your system.\n");
6878 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
6879 printf("*** to point to the correct configuration files\n");
6881 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
6882 (glib_minor_version != GLIB_MINOR_VERSION) ||
6883 (glib_micro_version != GLIB_MICRO_VERSION))
6885 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
6886 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
6887 printf("*** library (version %d.%d.%d)\n",
6888 glib_major_version, glib_minor_version, glib_micro_version);
6892 if ((glib_major_version > major) ||
6893 ((glib_major_version == major) && (glib_minor_version > minor)) ||
6894 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
6900 printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
6901 glib_major_version, glib_minor_version, glib_micro_version);
6902 printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
6903 major, minor, micro);
6904 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
6906 printf("*** If you have already installed a sufficiently new version, this error\n");
6907 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
6908 printf("*** being found. The easiest way to fix this is to remove the old version\n");
6909 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
6910 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
6911 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
6912 printf("*** so that the correct libraries are found at run-time))\n");
6919 if { (eval echo configure:6920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6923 echo "configure: failed program was:" >&5
6924 cat conftest.$ac_ext >&5
6931 CFLAGS="$ac_save_CFLAGS"
6932 LIBS="$ac_save_LIBS"
6935 if test "x$no_glib" = x ; then
6936 echo "$ac_t""yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" 1>&6
6939 echo "$ac_t""no" 1>&6
6940 if test "$PKG_CONFIG" = "no" ; then
6941 echo "*** A new enough version of pkg-config was not found."
6942 echo "*** See http://www.freedesktop.org/software/pkgconfig/"
6944 if test -f conf.glibtest ; then
6947 echo "*** Could not run GLIB test program, checking why..."
6948 ac_save_CFLAGS="$CFLAGS"
6949 ac_save_LIBS="$LIBS"
6950 CFLAGS="$CFLAGS $GLIB_CFLAGS"
6951 LIBS="$LIBS $GLIB_LIBS"
6952 cat > conftest.$ac_ext <<EOF
6953 #line 6954 "configure"
6954 #include "confdefs.h"
6960 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
6963 if { (eval echo configure:6964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6965 echo "*** The test program compiled, but did not run. This usually means"
6966 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
6967 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
6968 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
6969 echo "*** to the installed location Also, make sure you have run ldconfig if that"
6970 echo "*** is required on your system"
6972 echo "*** If you have an old version installed, it is best to remove it, although"
6973 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
6975 echo "configure: failed program was:" >&5
6976 cat conftest.$ac_ext >&5
6978 echo "*** The test program failed to compile or link. See the file config.log for the"
6979 echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
6982 CFLAGS="$ac_save_CFLAGS"
6983 LIBS="$ac_save_LIBS"
7000 enable_libarttest=no
7001 # Check whether --with-libart-prefix or --without-libart-prefix was given.
7002 if test "${with_libart_prefix+set}" = set; then
7003 withval="$with_libart_prefix"
7004 libart_prefix="$withval"
7009 # Check whether --with-libart-exec-prefix or --without-libart-exec-prefix was given.
7010 if test "${with_libart_exec_prefix+set}" = set; then
7011 withval="$with_libart_exec_prefix"
7012 libart_exec_prefix="$withval"
7014 libart_exec_prefix=""
7017 # Check whether --enable-libarttest or --disable-libarttest was given.
7018 if test "${enable_libarttest+set}" = set; then
7019 enableval="$enable_libarttest"
7022 enable_libarttest=yes
7026 if test x$libart_exec_prefix != x ; then
7027 libart_args="$libart_args --exec-prefix=$libart_exec_prefix"
7028 if test x${LIBART_CONFIG+set} != xset ; then
7029 LIBART_CONFIG=$libart_exec_prefix/bin/libart-config
7032 if test x$libart_prefix != x ; then
7033 libart_args="$libart_args --prefix=$libart_prefix"
7034 if test x${LIBART_CONFIG+set} != xset ; then
7035 LIBART_CONFIG=$libart_prefix/bin/libart-config
7039 # Extract the first word of "libart2-config", so it can be a program name with args.
7040 set dummy libart2-config; ac_word=$2
7041 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7042 echo "configure:7043: checking for $ac_word" >&5
7043 if eval "test \"`echo '$''{'ac_cv_path_LIBART_CONFIG'+set}'`\" = set"; then
7044 echo $ac_n "(cached) $ac_c" 1>&6
7046 case "$LIBART_CONFIG" in
7048 ac_cv_path_LIBART_CONFIG="$LIBART_CONFIG" # Let the user override the test with a path.
7051 ac_cv_path_LIBART_CONFIG="$LIBART_CONFIG" # Let the user override the test with a dos path.
7054 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7056 for ac_dir in $ac_dummy; do
7057 test -z "$ac_dir" && ac_dir=.
7058 if test -f $ac_dir/$ac_word; then
7059 ac_cv_path_LIBART_CONFIG="$ac_dir/$ac_word"
7064 test -z "$ac_cv_path_LIBART_CONFIG" && ac_cv_path_LIBART_CONFIG="no"
7068 LIBART_CONFIG="$ac_cv_path_LIBART_CONFIG"
7069 if test -n "$LIBART_CONFIG"; then
7070 echo "$ac_t""$LIBART_CONFIG" 1>&6
7072 echo "$ac_t""no" 1>&6
7075 if test "$LIBART_CONFIG" = "no" ; then
7076 # Extract the first word of "libart-config", so it can be a program name with args.
7077 set dummy libart-config; ac_word=$2
7078 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7079 echo "configure:7080: checking for $ac_word" >&5
7080 if eval "test \"`echo '$''{'ac_cv_path_LIBART_CONFIG'+set}'`\" = set"; then
7081 echo $ac_n "(cached) $ac_c" 1>&6
7083 case "$LIBART_CONFIG" in
7085 ac_cv_path_LIBART_CONFIG="$LIBART_CONFIG" # Let the user override the test with a path.
7088 ac_cv_path_LIBART_CONFIG="$LIBART_CONFIG" # Let the user override the test with a dos path.
7091 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7093 for ac_dir in $ac_dummy; do
7094 test -z "$ac_dir" && ac_dir=.
7095 if test -f $ac_dir/$ac_word; then
7096 ac_cv_path_LIBART_CONFIG="$ac_dir/$ac_word"
7101 test -z "$ac_cv_path_LIBART_CONFIG" && ac_cv_path_LIBART_CONFIG="no"
7105 LIBART_CONFIG="$ac_cv_path_LIBART_CONFIG"
7106 if test -n "$LIBART_CONFIG"; then
7107 echo "$ac_t""$LIBART_CONFIG" 1>&6
7109 echo "$ac_t""no" 1>&6
7113 min_libart_version=2.1.0
7114 echo $ac_n "checking for LIBART - version >= $min_libart_version""... $ac_c" 1>&6
7115 echo "configure:7116: checking for LIBART - version >= $min_libart_version" >&5
7117 if test "$LIBART_CONFIG" = "no" ; then
7120 LIBART_CFLAGS=`$LIBART_CONFIG $libartconf_args --cflags`
7121 LIBART_LIBS=`$LIBART_CONFIG $libartconf_args --libs`
7123 libart_major_version=`$LIBART_CONFIG $libart_args --version | \
7124 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7125 libart_minor_version=`$LIBART_CONFIG $libart_args --version | \
7126 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7127 libart_micro_version=`$LIBART_CONFIG $libart_config_args --version | \
7128 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7129 if test "x$enable_libarttest" = "xyes" ; then
7130 ac_save_CFLAGS="$CFLAGS"
7131 ac_save_LIBS="$LIBS"
7132 CFLAGS="$CFLAGS $LIBART_CFLAGS"
7133 LIBS="$LIBS $LIBART_LIBS"
7134 rm -f conf.libarttest
7135 if test "$cross_compiling" = yes; then
7136 echo $ac_n "cross compiling; assumed OK... $ac_c"
7138 cat > conftest.$ac_ext <<EOF
7139 #line 7140 "configure"
7140 #include "confdefs.h"
7145 #include <libart_lgpl/libart.h>
7148 my_strdup (char *str)
7154 new_str = malloc ((strlen (str) + 1) * sizeof(char));
7155 strcpy (new_str, str);
7165 int major, minor, micro;
7168 system ("touch conf.libarttest");
7170 /* HP/UX 9 (%@#!) writes to sscanf strings */
7171 tmp_version = my_strdup("$min_libart_version");
7172 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
7173 printf("%s, bad version string\n", "$min_libart_version");
7177 if (($libart_major_version > major) ||
7178 (($libart_major_version == major) && ($libart_minor_version > minor)) ||
7179 (($libart_major_version == major) && ($libart_minor_version == minor) && ($libart_micro_version >= micro)))
7185 printf("\n*** 'libart-config --version' returned %d.%d.%d, but the minimum version\n", $libart_major_version, $libart_minor_version, $libart_micro_version);
7186 printf("*** of LIBART required is %d.%d.%d. If libart-config is correct, then it is\n", major, minor, micro);
7187 printf("*** best to upgrade to the required version.\n");
7188 printf("*** If libart-config was wrong, set the environment variable LIBART_CONFIG\n");
7189 printf("*** to point to the correct copy of libart-config, and remove the file\n");
7190 printf("*** config.cache before re-running configure\n");
7197 if { (eval echo configure:7198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7201 echo "configure: failed program was:" >&5
7202 cat conftest.$ac_ext >&5
7209 CFLAGS="$ac_save_CFLAGS"
7210 LIBS="$ac_save_LIBS"
7213 if test "x$no_libart" = x ; then
7214 echo "$ac_t""yes" 1>&6
7217 echo "$ac_t""no" 1>&6
7218 if test "$LIBART_CONFIG" = "no" ; then
7219 echo "*** The libart-config script installed by LIBART could not be found"
7220 echo "*** If LIBART was installed in PREFIX, make sure PREFIX/bin is in"
7221 echo "*** your path, or set the LIBART_CONFIG environment variable to the"
7222 echo "*** full path to libart-config."
7224 if test -f conf.libarttest ; then
7227 echo "*** Could not run LIBART test program, checking why..."
7228 CFLAGS="$CFLAGS $LIBART_CFLAGS"
7229 LIBS="$LIBS $LIBART_LIBS"
7230 cat > conftest.$ac_ext <<EOF
7231 #line 7232 "configure"
7232 #include "confdefs.h"
7235 #include <libart_lgpl/libart.h>
7241 if { (eval echo configure:7242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7243 echo "*** The test program compiled, but did not run. This usually means"
7244 echo "*** that the run-time linker is not finding LIBART or finding the wrong"
7245 echo "*** version of LIBART. If it is not finding LIBART, you'll need to set your"
7246 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7247 echo "*** to the installed location Also, make sure you have run ldconfig if that"
7248 echo "*** is required on your system"
7250 echo "*** If you have an old version installed, it is best to remove it, although"
7251 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
7253 echo "configure: failed program was:" >&5
7254 cat conftest.$ac_ext >&5
7256 echo "*** The test program failed to compile or link. See the file config.log for the"
7257 echo "*** exact error that occured. This usually means LIBART was incorrectly installed"
7258 echo "*** or that you have moved LIBART since it was installed. In the latter case, you"
7259 echo "*** may want to edit the libart-config script: $LIBART_CONFIG"
7262 CFLAGS="$ac_save_CFLAGS"
7263 LIBS="$ac_save_LIBS"
7272 rm -f conf.libarttest
7276 # On Solaris, and maybe other architectures, the Boehm collector
7278 if test "$GC" = boehm; then
7279 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
7280 echo "configure:7281: checking for main in -ldl" >&5
7281 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
7282 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7283 echo $ac_n "(cached) $ac_c" 1>&6
7285 ac_save_LIBS="$LIBS"
7287 cat > conftest.$ac_ext <<EOF
7288 #line 7289 "configure"
7289 #include "confdefs.h"
7295 if { (eval echo configure:7296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7297 eval "ac_cv_lib_$ac_lib_var=yes"
7299 echo "configure: failed program was:" >&5
7300 cat conftest.$ac_ext >&5
7302 eval "ac_cv_lib_$ac_lib_var=no"
7305 LIBS="$ac_save_LIBS"
7308 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7309 echo "$ac_t""yes" 1>&6
7310 SYSTEMSPEC="$SYSTEMSPEC -ldl"
7312 echo "$ac_t""no" 1>&6
7318 if test -z "${with_multisubdir}"; then
7322 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
7326 # Which gcj do we use?
7328 built_gcc_dir="`cd ${builddotdot}/../../gcc && ${PWDCMD-pwd}`"
7329 if test -n "${with_cross_host}"; then
7330 # We are being configured with a cross compiler. We can't
7331 # use ac_exeext, because that is for the target platform.
7334 case "${with_cross_host}" in
7336 cross_host_exeext=.exe
7339 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
7340 if test x"$build_alias" = x"$with_cross_host"; then
7341 # Ordinary cross (host!=target and host=build)
7344 # Canadian cross (host!=target and host!=build)
7351 # We are being configured with a native or crossed-native compiler
7352 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
7353 if test x"$build" = x"$host"; then
7354 # True native build (host=target and host=build)
7357 # Crossed-native build (host=target and host!=build)
7364 case "${which_gcj}" in
7366 GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
7369 # See the comment in Makefile.am about CANADIAN being a misnomer
7372 if test "x${with_newlib}" = "xyes"; then
7373 # FIXME (comment): Why is this needed?
7375 GCJ="${target_alias}-gcj"
7377 GCJ="${target_alias}-gcj -B`${PWDCMD-pwd}`/"
7381 # See the comment in Makefile.am about CANADIAN being a misnomer
7384 GCJ="gcj -B`${PWDCMD-pwd}`/"
7388 # Create it, so that compile/link tests don't fail
7389 test -f libgcj.spec || touch libgcj.spec
7391 # We must search the source tree for java.lang, since we still don't
7392 # have libgcj.jar nor java/lang/*.class
7393 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
7394 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
7396 # Since some classes depend on this one, we need its source available
7397 # before we can do any GCJ compilation test :-(
7398 if test ! -f gnu/classpath/Configuration.java; then
7399 test -d gnu || mkdir gnu
7400 test -d gnu/classpath || mkdir gnu/classpath
7401 sed -e 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
7402 -e 's,@TOOLKIT@,$TOOLKIT,' \
7403 < $srcdir/gnu/classpath/Configuration.java.in \
7404 > gnu/classpath/Configuration.java
7405 # We do not want to redirect the output of the grep below to /dev/null,
7406 # but we add /dev/null to the input list so that grep will print the
7407 # filename of Configuration.java in case it finds any matches.
7408 if grep @ gnu/classpath/Configuration.java /dev/null; then
7409 { echo "configure: error: configure.in is missing the substitutions above" 1>&2; exit 1; }
7413 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
7414 set dummy ${ac_tool_prefix}gcj; ac_word=$2
7415 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7416 echo "configure:7417: checking for $ac_word" >&5
7417 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
7418 echo $ac_n "(cached) $ac_c" 1>&6
7420 if test -n "$GCJ"; then
7421 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
7423 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7425 for ac_dir in $ac_dummy; do
7426 test -z "$ac_dir" && ac_dir=.
7427 if test -f $ac_dir/$ac_word; then
7428 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
7435 GCJ="$ac_cv_prog_GCJ"
7436 if test -n "$GCJ"; then
7437 echo "$ac_t""$GCJ" 1>&6
7439 echo "$ac_t""no" 1>&6
7443 if test -z "$ac_cv_prog_GCJ"; then
7444 if test -n "$ac_tool_prefix"; then
7445 # Extract the first word of "gcj", so it can be a program name with args.
7446 set dummy gcj; ac_word=$2
7447 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7448 echo "configure:7449: checking for $ac_word" >&5
7449 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
7450 echo $ac_n "(cached) $ac_c" 1>&6
7452 if test -n "$GCJ"; then
7453 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
7455 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7457 for ac_dir in $ac_dummy; do
7458 test -z "$ac_dir" && ac_dir=.
7459 if test -f $ac_dir/$ac_word; then
7460 ac_cv_prog_GCJ="gcj"
7465 test -z "$ac_cv_prog_GCJ" && ac_cv_prog_GCJ="no"
7468 GCJ="$ac_cv_prog_GCJ"
7469 if test -n "$GCJ"; then
7470 echo "$ac_t""$GCJ" 1>&6
7472 echo "$ac_t""no" 1>&6
7480 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7484 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
7486 lt_save_CFLAGS="$CFLAGS"
7487 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
7488 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
7489 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
7490 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
7491 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
7492 deplibs_check_method="$deplibs_check_method" \
7493 file_magic_cmd="$file_magic_cmd" \
7494 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
7495 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
7496 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
7498 CFLAGS="$lt_save_CFLAGS"
7500 # Redirect the config.log output again, so that the ltconfig log is not
7501 # clobbered by the next message.
7502 exec 5>>./config.log
7507 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
7509 echo $ac_n "checking size of void *""... $ac_c" 1>&6
7510 echo "configure:7511: checking size of void *" >&5
7511 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
7512 echo $ac_n "(cached) $ac_c" 1>&6
7514 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
7515 cat > conftest.$ac_ext <<EOF
7516 #line 7517 "configure"
7517 #include "confdefs.h"
7518 #include "confdefs.h"
7519 #include <sys/types.h>
7523 switch (0) case 0: case (sizeof (void *) == $ac_size):;
7526 if { (eval echo configure:7527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7528 ac_cv_sizeof_void_p=$ac_size
7530 echo "configure: failed program was:" >&5
7531 cat conftest.$ac_ext >&5
7534 if test x$ac_cv_sizeof_void_p != x ; then break; fi
7539 if test x$ac_cv_sizeof_void_p = x ; then
7540 { echo "configure: error: cannot determine a size for void *" 1>&2; exit 1; }
7542 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
7543 cat >> confdefs.h <<EOF
7544 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7553 if test -z "$ZLIBSPEC"; then
7554 # Use zlib from the GCC tree.
7555 ZINCS='-I$(top_srcdir)/../zlib'
7556 ZLIBS=../zlib/libzgcj_convenience.la
7559 SYS_ZLIBS="$ZLIBSPEC"
7571 if test "$CANADIAN" = yes; then
7580 if test "$NULL_TARGET" = yes; then
7582 NULL_TARGET_FALSE='#'
7584 NULL_TARGET_TRUE='#'
7589 if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
7598 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
7599 NEEDS_DATA_START_TRUE=
7600 NEEDS_DATA_START_FALSE='#'
7602 NEEDS_DATA_START_TRUE='#'
7603 NEEDS_DATA_START_FALSE=
7607 if test -n "$with_cross_host" &&
7608 test x"$with_cross_host" != x"no"; then
7609 toolexecdir='$(exec_prefix)/$(target_alias)'
7610 toolexecmainlibdir='$(toolexecdir)/lib'
7612 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
7613 toolexecmainlibdir='$(libdir)'
7615 multi_os_directory=`$CC -print-multi-os-directory`
7616 case $multi_os_directory in
7617 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
7618 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
7624 # Determine gcj version number.
7626 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
7628 GCJVERSION=$gcjversion
7630 cat >> confdefs.h <<EOF
7631 #define GCJVERSION "$GCJVERSION"
7635 echo $ac_n "checking for g++ -ffloat-store bug""... $ac_c" 1>&6
7636 echo "configure:7637: checking for g++ -ffloat-store bug" >&5
7637 save_CFLAGS="$CFLAGS"
7638 CFLAGS="-x c++ -O2 -ffloat-store"
7639 cat > conftest.$ac_ext <<EOF
7640 #line 7641 "configure"
7641 #include "confdefs.h"
7647 if { (eval echo configure:7648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7649 echo "$ac_t""no" 1>&6
7651 echo "configure: failed program was:" >&5
7652 cat conftest.$ac_ext >&5
7654 cat >> confdefs.h <<\EOF
7655 #define __NO_MATH_INLINES 1
7658 echo "$ac_t""yes" 1>&6
7661 CFLAGS="$save_CFLAGS"
7663 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
7665 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7666 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7667 echo "configure:7668: checking for $ac_hdr" >&5
7668 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7669 echo $ac_n "(cached) $ac_c" 1>&6
7671 cat > conftest.$ac_ext <<EOF
7672 #line 7673 "configure"
7673 #include "confdefs.h"
7676 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7677 { (eval echo configure:7678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7678 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7679 if test -z "$ac_err"; then
7681 eval "ac_cv_header_$ac_safe=yes"
7684 echo "configure: failed program was:" >&5
7685 cat conftest.$ac_ext >&5
7687 eval "ac_cv_header_$ac_safe=no"
7691 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7692 echo "$ac_t""yes" 1>&6
7693 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7694 cat >> confdefs.h <<EOF
7695 #define $ac_tr_hdr 1
7699 echo "$ac_t""no" 1>&6
7703 for ac_hdr in dirent.h
7705 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7706 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7707 echo "configure:7708: checking for $ac_hdr" >&5
7708 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7709 echo $ac_n "(cached) $ac_c" 1>&6
7711 cat > conftest.$ac_ext <<EOF
7712 #line 7713 "configure"
7713 #include "confdefs.h"
7716 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7717 { (eval echo configure:7718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7718 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7719 if test -z "$ac_err"; then
7721 eval "ac_cv_header_$ac_safe=yes"
7724 echo "configure: failed program was:" >&5
7725 cat conftest.$ac_ext >&5
7727 eval "ac_cv_header_$ac_safe=no"
7731 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7732 echo "$ac_t""yes" 1>&6
7733 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7734 cat >> confdefs.h <<EOF
7735 #define $ac_tr_hdr 1
7739 echo "$ac_t""no" 1>&6
7743 for ac_hdr in inttypes.h
7745 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7746 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7747 echo "configure:7748: checking for $ac_hdr" >&5
7748 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7749 echo $ac_n "(cached) $ac_c" 1>&6
7751 cat > conftest.$ac_ext <<EOF
7752 #line 7753 "configure"
7753 #include "confdefs.h"
7756 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7757 { (eval echo configure:7758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7758 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7759 if test -z "$ac_err"; then
7761 eval "ac_cv_header_$ac_safe=yes"
7764 echo "configure: failed program was:" >&5
7765 cat conftest.$ac_ext >&5
7767 eval "ac_cv_header_$ac_safe=no"
7771 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7772 echo "$ac_t""yes" 1>&6
7773 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7774 cat >> confdefs.h <<EOF
7775 #define $ac_tr_hdr 1
7778 cat >> confdefs.h <<\EOF
7779 #define HAVE_INTTYPES_H 1
7782 cat >> confdefs.h <<\EOF
7783 #define JV_HAVE_INTTYPES_H 1
7788 echo "$ac_t""no" 1>&6
7792 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
7793 echo "configure:7794: checking for sys/wait.h that is POSIX.1 compatible" >&5
7794 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
7795 echo $ac_n "(cached) $ac_c" 1>&6
7797 cat > conftest.$ac_ext <<EOF
7798 #line 7799 "configure"
7799 #include "confdefs.h"
7800 #include <sys/types.h>
7801 #include <sys/wait.h>
7803 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7806 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7811 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7814 if { (eval echo configure:7815: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7816 ac_cv_header_sys_wait_h=yes
7818 echo "configure: failed program was:" >&5
7819 cat conftest.$ac_ext >&5
7821 ac_cv_header_sys_wait_h=no
7826 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
7827 if test $ac_cv_header_sys_wait_h = yes; then
7828 cat >> confdefs.h <<\EOF
7829 #define HAVE_SYS_WAIT_H 1
7835 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
7836 echo "configure:7837: checking for ANSI C header files" >&5
7837 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
7838 echo $ac_n "(cached) $ac_c" 1>&6
7840 cat > conftest.$ac_ext <<EOF
7841 #line 7842 "configure"
7842 #include "confdefs.h"
7848 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7849 { (eval echo configure:7850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7850 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7851 if test -z "$ac_err"; then
7853 ac_cv_header_stdc=yes
7856 echo "configure: failed program was:" >&5
7857 cat conftest.$ac_ext >&5
7859 ac_cv_header_stdc=no
7863 if test $ac_cv_header_stdc = yes; then
7864 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7865 cat > conftest.$ac_ext <<EOF
7866 #line 7867 "configure"
7867 #include "confdefs.h"
7870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7871 egrep "memchr" >/dev/null 2>&1; then
7875 ac_cv_header_stdc=no
7881 if test $ac_cv_header_stdc = yes; then
7882 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7883 cat > conftest.$ac_ext <<EOF
7884 #line 7885 "configure"
7885 #include "confdefs.h"
7888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7889 egrep "free" >/dev/null 2>&1; then
7893 ac_cv_header_stdc=no
7899 if test $ac_cv_header_stdc = yes; then
7900 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7901 if test "$cross_compiling" = yes; then
7904 cat > conftest.$ac_ext <<EOF
7905 #line 7906 "configure"
7906 #include "confdefs.h"
7908 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7909 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7910 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7911 int main () { int i; for (i = 0; i < 256; i++)
7912 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
7916 if { (eval echo configure:7917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7920 echo "configure: failed program was:" >&5
7921 cat conftest.$ac_ext >&5
7923 ac_cv_header_stdc=no
7931 echo "$ac_t""$ac_cv_header_stdc" 1>&6
7932 if test $ac_cv_header_stdc = yes; then
7933 cat >> confdefs.h <<\EOF
7934 #define STDC_HEADERS 1
7939 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
7940 echo "configure:7941: checking for ssize_t" >&5
7941 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
7942 echo $ac_n "(cached) $ac_c" 1>&6
7944 cat > conftest.$ac_ext <<EOF
7945 #line 7946 "configure"
7946 #include "confdefs.h"
7947 #include <sys/types.h>
7953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7954 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7956 ac_cv_type_ssize_t=yes
7959 ac_cv_type_ssize_t=no
7964 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
7965 if test $ac_cv_type_ssize_t = no; then
7966 cat >> confdefs.h <<\EOF
7973 echo $ac_n "checking for in_addr_t""... $ac_c" 1>&6
7974 echo "configure:7975: checking for in_addr_t" >&5
7975 cat > conftest.$ac_ext <<EOF
7976 #line 7977 "configure"
7977 #include "confdefs.h"
7978 #include <sys/types.h>
7983 #if HAVE_NETINET_IN_H
7984 #include <netinet/in.h>
7990 if { (eval echo configure:7991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7992 cat >> confdefs.h <<\EOF
7993 #define HAVE_IN_ADDR_T 1
7996 echo "$ac_t""yes" 1>&6
7998 echo "configure: failed program was:" >&5
7999 cat conftest.$ac_ext >&5
8001 echo "$ac_t""no" 1>&6
8005 echo $ac_n "checking whether struct ip_mreq is in netinet/in.h""... $ac_c" 1>&6
8006 echo "configure:8007: checking whether struct ip_mreq is in netinet/in.h" >&5
8007 cat > conftest.$ac_ext <<EOF
8008 #line 8009 "configure"
8009 #include "confdefs.h"
8010 #include <netinet/in.h>
8012 struct ip_mreq mreq;
8015 if { (eval echo configure:8016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8017 cat >> confdefs.h <<\EOF
8018 #define HAVE_STRUCT_IP_MREQ 1
8021 echo "$ac_t""yes" 1>&6
8023 echo "configure: failed program was:" >&5
8024 cat conftest.$ac_ext >&5
8026 echo "$ac_t""no" 1>&6
8030 echo $ac_n "checking whether struct ipv6_mreq is in netinet/in.h""... $ac_c" 1>&6
8031 echo "configure:8032: checking whether struct ipv6_mreq is in netinet/in.h" >&5
8032 cat > conftest.$ac_ext <<EOF
8033 #line 8034 "configure"
8034 #include "confdefs.h"
8035 #include <netinet/in.h>
8037 struct ipv6_mreq mreq6;
8040 if { (eval echo configure:8041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8042 cat >> confdefs.h <<\EOF
8043 #define HAVE_STRUCT_IPV6_MREQ 1
8046 echo "$ac_t""yes" 1>&6
8048 echo "configure: failed program was:" >&5
8049 cat conftest.$ac_ext >&5
8051 echo "$ac_t""no" 1>&6
8055 echo $ac_n "checking whether struct sockaddr_in6 is in netinet/in.h""... $ac_c" 1>&6
8056 echo "configure:8057: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
8057 cat > conftest.$ac_ext <<EOF
8058 #line 8059 "configure"
8059 #include "confdefs.h"
8060 #include <netinet/in.h>
8062 struct sockaddr_in6 addr6;
8065 if { (eval echo configure:8066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8067 cat >> confdefs.h <<\EOF
8068 #define HAVE_INET6 1
8071 echo "$ac_t""yes" 1>&6
8073 echo "configure: failed program was:" >&5
8074 cat conftest.$ac_ext >&5
8076 echo "$ac_t""no" 1>&6
8080 echo $ac_n "checking for socklen_t in sys/socket.h""... $ac_c" 1>&6
8081 echo "configure:8082: checking for socklen_t in sys/socket.h" >&5
8082 cat > conftest.$ac_ext <<EOF
8083 #line 8084 "configure"
8084 #include "confdefs.h"
8085 #define _POSIX_PII_SOCKET
8086 #include <sys/types.h>
8087 #include <sys/socket.h>
8092 if { (eval echo configure:8093: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8094 cat >> confdefs.h <<\EOF
8095 #define HAVE_SOCKLEN_T 1
8098 echo "$ac_t""yes" 1>&6
8100 echo "configure: failed program was:" >&5
8101 cat conftest.$ac_ext >&5
8103 echo "$ac_t""no" 1>&6
8107 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
8108 echo "configure:8109: checking for tm_gmtoff in struct tm" >&5
8109 cat > conftest.$ac_ext <<EOF
8110 #line 8111 "configure"
8111 #include "confdefs.h"
8114 struct tm tim; tim.tm_gmtoff = 0;
8117 if { (eval echo configure:8118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8119 cat >> confdefs.h <<\EOF
8120 #define STRUCT_TM_HAS_GMTOFF 1
8123 echo "$ac_t""yes" 1>&6
8125 echo "configure: failed program was:" >&5
8126 cat conftest.$ac_ext >&5
8128 echo "$ac_t""no" 1>&6
8129 echo $ac_n "checking for global timezone variable""... $ac_c" 1>&6
8130 echo "configure:8131: checking for global timezone variable" >&5
8131 cat > conftest.$ac_ext <<EOF
8132 #line 8133 "configure"
8133 #include "confdefs.h"
8136 void i(){long z2 = 2*timezone;}
8139 if { (eval echo configure:8140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8141 cat >> confdefs.h <<\EOF
8142 #define HAVE_TIMEZONE 1
8145 echo "$ac_t""yes" 1>&6
8147 echo "configure: failed program was:" >&5
8148 cat conftest.$ac_ext >&5
8150 echo "$ac_t""no" 1>&6
8151 echo $ac_n "checking for global _timezone variable""... $ac_c" 1>&6
8152 echo "configure:8153: checking for global _timezone variable" >&5
8153 cat > conftest.$ac_ext <<EOF
8154 #line 8155 "configure"
8155 #include "confdefs.h"
8158 long z2 = _timezone;
8161 if { (eval echo configure:8162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8163 cat >> confdefs.h <<\EOF
8164 #define HAVE_UNDERSCORE_TIMEZONE 1
8167 echo "$ac_t""yes" 1>&6
8169 echo "configure: failed program was:" >&5
8170 cat conftest.$ac_ext >&5
8172 echo "$ac_t""no" 1>&6
8180 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8181 # for constant arguments. Useless!
8182 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
8183 echo "configure:8184: checking for working alloca.h" >&5
8184 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
8185 echo $ac_n "(cached) $ac_c" 1>&6
8187 cat > conftest.$ac_ext <<EOF
8188 #line 8189 "configure"
8189 #include "confdefs.h"
8192 char *p = alloca(2 * sizeof(int));
8195 if { (eval echo configure:8196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8197 ac_cv_header_alloca_h=yes
8199 echo "configure: failed program was:" >&5
8200 cat conftest.$ac_ext >&5
8202 ac_cv_header_alloca_h=no
8207 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
8208 if test $ac_cv_header_alloca_h = yes; then
8209 cat >> confdefs.h <<\EOF
8210 #define HAVE_ALLOCA_H 1
8215 echo $ac_n "checking for alloca""... $ac_c" 1>&6
8216 echo "configure:8217: checking for alloca" >&5
8217 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
8218 echo $ac_n "(cached) $ac_c" 1>&6
8220 cat > conftest.$ac_ext <<EOF
8221 #line 8222 "configure"
8222 #include "confdefs.h"
8225 # define alloca __builtin_alloca
8228 # include <malloc.h>
8229 # define alloca _alloca
8232 # include <alloca.h>
8237 # ifndef alloca /* predefined by HP cc +Olibcalls */
8246 char *p = (char *) alloca(1);
8249 if { (eval echo configure:8250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8251 ac_cv_func_alloca_works=yes
8253 echo "configure: failed program was:" >&5
8254 cat conftest.$ac_ext >&5
8256 ac_cv_func_alloca_works=no
8261 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
8262 if test $ac_cv_func_alloca_works = yes; then
8263 cat >> confdefs.h <<\EOF
8264 #define HAVE_ALLOCA 1
8269 if test $ac_cv_func_alloca_works = no; then
8270 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8271 # that cause trouble. Some versions do not even contain alloca or
8272 # contain a buggy version. If you still want to use their alloca,
8273 # use ar to extract alloca.o from them instead of compiling alloca.c.
8274 ALLOCA=alloca.${ac_objext}
8275 cat >> confdefs.h <<\EOF
8280 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
8281 echo "configure:8282: checking whether alloca needs Cray hooks" >&5
8282 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
8283 echo $ac_n "(cached) $ac_c" 1>&6
8285 cat > conftest.$ac_ext <<EOF
8286 #line 8287 "configure"
8287 #include "confdefs.h"
8288 #if defined(CRAY) && ! defined(CRAY2)
8295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8296 egrep "webecray" >/dev/null 2>&1; then
8307 echo "$ac_t""$ac_cv_os_cray" 1>&6
8308 if test $ac_cv_os_cray = yes; then
8309 for ac_func in _getb67 GETB67 getb67; do
8310 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8311 echo "configure:8312: checking for $ac_func" >&5
8312 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8313 echo $ac_n "(cached) $ac_c" 1>&6
8315 cat > conftest.$ac_ext <<EOF
8316 #line 8317 "configure"
8317 #include "confdefs.h"
8318 /* System header to define __stub macros and hopefully few prototypes,
8319 which can conflict with char $ac_func(); below. */
8321 /* Override any gcc2 internal prototype to avoid an error. */
8322 /* We use char because int might match the return type of a gcc2
8323 builtin and then its argument prototype would still apply. */
8328 /* The GNU C library defines this for functions which it implements
8329 to always fail with ENOSYS. Some functions are actually named
8330 something starting with __ and the normal name is an alias. */
8331 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8339 if { (eval echo configure:8340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8341 eval "ac_cv_func_$ac_func=yes"
8343 echo "configure: failed program was:" >&5
8344 cat conftest.$ac_ext >&5
8346 eval "ac_cv_func_$ac_func=no"
8351 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8352 echo "$ac_t""yes" 1>&6
8353 cat >> confdefs.h <<EOF
8354 #define CRAY_STACKSEG_END $ac_func
8359 echo "$ac_t""no" 1>&6
8365 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
8366 echo "configure:8367: checking stack direction for C alloca" >&5
8367 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
8368 echo $ac_n "(cached) $ac_c" 1>&6
8370 if test "$cross_compiling" = yes; then
8371 ac_cv_c_stack_direction=0
8373 cat > conftest.$ac_ext <<EOF
8374 #line 8375 "configure"
8375 #include "confdefs.h"
8376 find_stack_direction ()
8378 static char *addr = 0;
8383 return find_stack_direction ();
8386 return (&dummy > addr) ? 1 : -1;
8390 exit (find_stack_direction() < 0);
8393 if { (eval echo configure:8394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8395 ac_cv_c_stack_direction=1
8397 echo "configure: failed program was:" >&5
8398 cat conftest.$ac_ext >&5
8400 ac_cv_c_stack_direction=-1
8407 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
8408 cat >> confdefs.h <<EOF
8409 #define STACK_DIRECTION $ac_cv_c_stack_direction
8414 for ac_hdr in unistd.h
8416 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8417 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8418 echo "configure:8419: checking for $ac_hdr" >&5
8419 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8420 echo $ac_n "(cached) $ac_c" 1>&6
8422 cat > conftest.$ac_ext <<EOF
8423 #line 8424 "configure"
8424 #include "confdefs.h"
8427 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8428 { (eval echo configure:8429: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8429 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8430 if test -z "$ac_err"; then
8432 eval "ac_cv_header_$ac_safe=yes"
8435 echo "configure: failed program was:" >&5
8436 cat conftest.$ac_ext >&5
8438 eval "ac_cv_header_$ac_safe=no"
8442 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8443 echo "$ac_t""yes" 1>&6
8444 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8445 cat >> confdefs.h <<EOF
8446 #define $ac_tr_hdr 1
8450 echo "$ac_t""no" 1>&6
8454 for ac_func in getpagesize
8456 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8457 echo "configure:8458: checking for $ac_func" >&5
8458 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8459 echo $ac_n "(cached) $ac_c" 1>&6
8461 cat > conftest.$ac_ext <<EOF
8462 #line 8463 "configure"
8463 #include "confdefs.h"
8464 /* System header to define __stub macros and hopefully few prototypes,
8465 which can conflict with char $ac_func(); below. */
8467 /* Override any gcc2 internal prototype to avoid an error. */
8468 /* We use char because int might match the return type of a gcc2
8469 builtin and then its argument prototype would still apply. */
8474 /* The GNU C library defines this for functions which it implements
8475 to always fail with ENOSYS. Some functions are actually named
8476 something starting with __ and the normal name is an alias. */
8477 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8485 if { (eval echo configure:8486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8487 eval "ac_cv_func_$ac_func=yes"
8489 echo "configure: failed program was:" >&5
8490 cat conftest.$ac_ext >&5
8492 eval "ac_cv_func_$ac_func=no"
8497 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8498 echo "$ac_t""yes" 1>&6
8499 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8500 cat >> confdefs.h <<EOF
8501 #define $ac_tr_func 1
8505 echo "$ac_t""no" 1>&6
8509 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
8510 echo "configure:8511: checking for working mmap" >&5
8511 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
8512 echo $ac_n "(cached) $ac_c" 1>&6
8514 if test "$cross_compiling" = yes; then
8515 ac_cv_func_mmap_fixed_mapped=no
8517 cat > conftest.$ac_ext <<EOF
8518 #line 8519 "configure"
8519 #include "confdefs.h"
8521 /* Thanks to Mike Haertel and Jim Avera for this test.
8522 Here is a matrix of mmap possibilities:
8523 mmap private not fixed
8524 mmap private fixed at somewhere currently unmapped
8525 mmap private fixed at somewhere already mapped
8526 mmap shared not fixed
8527 mmap shared fixed at somewhere currently unmapped
8528 mmap shared fixed at somewhere already mapped
8529 For private mappings, we should verify that changes cannot be read()
8530 back from the file, nor mmap's back from the file at a different
8531 address. (There have been systems where private was not correctly
8532 implemented like the infamous i386 svr4.0, and systems where the
8533 VM page cache was not coherent with the filesystem buffer cache
8534 like early versions of FreeBSD and possibly contemporary NetBSD.)
8535 For shared mappings, we should conversely verify that changes get
8536 propogated back to all the places they're supposed to be.
8538 Grep wants private fixed already mapped.
8539 The main things grep needs to know about mmap are:
8540 * does it exist and is it safe to write into the mmap'd area
8541 * how to use it (BSD variants) */
8542 #include <sys/types.h>
8544 #include <sys/mman.h>
8546 /* This mess was copied from the GNU getpagesize.h. */
8547 #ifndef HAVE_GETPAGESIZE
8548 # ifdef HAVE_UNISTD_H
8549 # include <unistd.h>
8552 /* Assume that all systems that can run configure have sys/param.h. */
8553 # ifndef HAVE_SYS_PARAM_H
8554 # define HAVE_SYS_PARAM_H 1
8557 # ifdef _SC_PAGESIZE
8558 # define getpagesize() sysconf(_SC_PAGESIZE)
8559 # else /* no _SC_PAGESIZE */
8560 # ifdef HAVE_SYS_PARAM_H
8561 # include <sys/param.h>
8562 # ifdef EXEC_PAGESIZE
8563 # define getpagesize() EXEC_PAGESIZE
8564 # else /* no EXEC_PAGESIZE */
8566 # define getpagesize() NBPG * CLSIZE
8569 # endif /* no CLSIZE */
8570 # else /* no NBPG */
8572 # define getpagesize() NBPC
8573 # else /* no NBPC */
8575 # define getpagesize() PAGESIZE
8576 # endif /* PAGESIZE */
8577 # endif /* no NBPC */
8578 # endif /* no NBPG */
8579 # endif /* no EXEC_PAGESIZE */
8580 # else /* no HAVE_SYS_PARAM_H */
8581 # define getpagesize() 8192 /* punt totally */
8582 # endif /* no HAVE_SYS_PARAM_H */
8583 # endif /* no _SC_PAGESIZE */
8585 #endif /* no HAVE_GETPAGESIZE */
8588 extern "C" { void *malloc(unsigned); }
8596 char *data, *data2, *data3;
8600 pagesize = getpagesize();
8603 * First, make a file with some known garbage in it.
8605 data = malloc(pagesize);
8608 for (i = 0; i < pagesize; ++i)
8609 *(data + i) = rand();
8611 fd = creat("conftestmmap", 0600);
8614 if (write(fd, data, pagesize) != pagesize)
8619 * Next, try to mmap the file at a fixed address which
8620 * already has something else allocated at it. If we can,
8621 * also make sure that we see the same garbage.
8623 fd = open("conftestmmap", O_RDWR);
8626 data2 = malloc(2 * pagesize);
8629 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
8630 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
8631 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8633 for (i = 0; i < pagesize; ++i)
8634 if (*(data + i) != *(data2 + i))
8638 * Finally, make sure that changes to the mapped area
8639 * do not percolate back to the file as seen by read().
8640 * (This is a bug on some variants of i386 svr4.0.)
8642 for (i = 0; i < pagesize; ++i)
8643 *(data2 + i) = *(data2 + i) + 1;
8644 data3 = malloc(pagesize);
8647 if (read(fd, data3, pagesize) != pagesize)
8649 for (i = 0; i < pagesize; ++i)
8650 if (*(data + i) != *(data3 + i))
8653 unlink("conftestmmap");
8658 if { (eval echo configure:8659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8660 ac_cv_func_mmap_fixed_mapped=yes
8662 echo "configure: failed program was:" >&5
8663 cat conftest.$ac_ext >&5
8665 ac_cv_func_mmap_fixed_mapped=no
8672 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
8673 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8674 cat >> confdefs.h <<\EOF
8683 # Extract the first word of "$ac_prog", so it can be a program name with args.
8684 set dummy $ac_prog; ac_word=$2
8685 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8686 echo "configure:8687: checking for $ac_word" >&5
8687 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
8688 echo $ac_n "(cached) $ac_c" 1>&6
8690 if test -n "$PERL"; then
8691 ac_cv_prog_PERL="$PERL" # Let the user override the test.
8693 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8695 for ac_dir in $ac_dummy; do
8696 test -z "$ac_dir" && ac_dir=.
8697 if test -f $ac_dir/$ac_word; then
8698 ac_cv_prog_PERL="$ac_prog"
8705 PERL="$ac_cv_prog_PERL"
8706 if test -n "$PERL"; then
8707 echo "$ac_t""$PERL" 1>&6
8709 echo "$ac_t""no" 1>&6
8712 test -n "$PERL" && break
8714 test -n "$PERL" || PERL="false"
8721 SIGNAL_HANDLER=include/i386-signal.h
8723 sparc*-sun-solaris*)
8724 SIGNAL_HANDLER=include/sparc-signal.h
8727 # SYSDEP_SOURCES=sysdep/ia64.c
8728 # test -d sysdep || mkdir sysdep
8731 SIGNAL_HANDLER=include/dwarf2-signal.h
8734 SIGNAL_HANDLER=include/powerpc-signal.h
8737 SIGNAL_HANDLER=include/dwarf2-signal.h
8740 SIGNAL_HANDLER=include/s390-signal.h
8743 SIGNAL_HANDLER=include/x86_64-signal.h
8746 SIGNAL_HANDLER=include/dwarf2-signal.h
8748 sh-*-linux* | sh[34]*-*-linux*)
8749 SIGNAL_HANDLER=include/dwarf2-signal.h
8752 SIGNAL_HANDLER=include/win32-signal.h
8755 SIGNAL_HANDLER=include/default-signal.h
8759 # If we're using sjlj exceptions, forget what we just learned.
8760 if test "$enable_sjlj_exceptions" = yes; then
8761 SIGNAL_HANDLER=include/default-signal.h
8764 # Define here any compiler flags that you need in order to make backtrace() work.
8768 BACKTRACESPEC=-fno-omit-frame-pointer
8777 if test "${multilib}" = "yes"; then
8778 multilib_arg="--enable-multilib"
8785 here=`${PWDCMD-pwd}`
8788 # We get this from the environment.
8792 cat > confcache <<\EOF
8793 # This file is a shell script that caches the results of configure
8794 # tests run on this system so they can be shared between configure
8795 # scripts and configure runs. It is not useful on other systems.
8796 # If it contains results you don't want to keep, you may remove or edit it.
8798 # By default, configure uses ./config.cache as the cache file,
8799 # creating it if it does not exist already. You can give configure
8800 # the --cache-file=FILE option to use a different cache file; that is
8801 # what configure does when it calls configure scripts in
8802 # subdirectories, so they share the cache.
8803 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8804 # config.status only pays attention to the cache file if you give it the
8805 # --recheck option to rerun configure.
8808 # The following way of writing the cache mishandles newlines in values,
8809 # but we know of no workaround that is simple, portable, and efficient.
8810 # So, don't put newlines in cache variables' values.
8811 # Ultrix sh set writes to stderr and can't be redirected directly,
8812 # and sets the high bit in the cache file unless we assign to the vars.
8814 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8816 # `set' does not quote correctly, so add quotes (double-quote substitution
8817 # turns \\\\ into \\, and sed turns \\ into \).
8819 -e "s/'/'\\\\''/g" \
8820 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8823 # `set' quotes correctly as required by POSIX, so do not add quotes.
8824 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8827 if cmp -s $cache_file confcache; then
8830 if test -w $cache_file; then
8831 echo "updating cache $cache_file"
8832 cat confcache > $cache_file
8834 echo "not updating unwritable cache $cache_file"
8839 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8841 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8842 # Let make expand exec_prefix.
8843 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8845 # Any assignment to VPATH causes Sun make to only execute
8846 # the first set of double-colon rules, so remove it if not needed.
8847 # If there is a colon in the path, we need to keep it.
8848 if test "x$srcdir" = x.; then
8849 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8852 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8854 DEFS=-DHAVE_CONFIG_H
8856 # Without the "./", some shells look in PATH for config.status.
8857 : ${CONFIG_STATUS=./config.status}
8859 echo creating $CONFIG_STATUS
8860 rm -f $CONFIG_STATUS
8861 cat > $CONFIG_STATUS <<EOF
8863 # Generated automatically by configure.
8864 # Run this file to recreate the current configuration.
8865 # This directory was configured as follows,
8866 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8868 # $0 $ac_configure_args
8870 # Compiler output produced by configure, useful for debugging
8871 # configure, is in ./config.log if it exists.
8873 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8876 case "\$ac_option" in
8877 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8878 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8879 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8880 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8881 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8883 -help | --help | --hel | --he | --h)
8884 echo "\$ac_cs_usage"; exit 0 ;;
8885 *) echo "\$ac_cs_usage"; exit 1 ;;
8889 ac_given_srcdir=$srcdir
8890 ac_given_INSTALL="$INSTALL"
8892 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
8894 cat >> $CONFIG_STATUS <<EOF
8896 # Protect against being on the right side of a sed subst in config.status.
8897 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8898 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8902 s%@CFLAGS@%$CFLAGS%g
8903 s%@CPPFLAGS@%$CPPFLAGS%g
8904 s%@CXXFLAGS@%$CXXFLAGS%g
8905 s%@FFLAGS@%$FFLAGS%g
8907 s%@LDFLAGS@%$LDFLAGS%g
8909 s%@exec_prefix@%$exec_prefix%g
8910 s%@prefix@%$prefix%g
8911 s%@program_transform_name@%$program_transform_name%g
8912 s%@bindir@%$bindir%g
8913 s%@sbindir@%$sbindir%g
8914 s%@libexecdir@%$libexecdir%g
8915 s%@datadir@%$datadir%g
8916 s%@sysconfdir@%$sysconfdir%g
8917 s%@sharedstatedir@%$sharedstatedir%g
8918 s%@localstatedir@%$localstatedir%g
8919 s%@libdir@%$libdir%g
8920 s%@includedir@%$includedir%g
8921 s%@oldincludedir@%$oldincludedir%g
8922 s%@infodir@%$infodir%g
8923 s%@mandir@%$mandir%g
8925 s%@libgcj_basedir@%$libgcj_basedir%g
8926 s%@mkinstalldirs@%$mkinstalldirs%g
8928 s%@host_alias@%$host_alias%g
8929 s%@host_cpu@%$host_cpu%g
8930 s%@host_vendor@%$host_vendor%g
8931 s%@host_os@%$host_os%g
8932 s%@target@%$target%g
8933 s%@target_alias@%$target_alias%g
8934 s%@target_cpu@%$target_cpu%g
8935 s%@target_vendor@%$target_vendor%g
8936 s%@target_os@%$target_os%g
8938 s%@build_alias@%$build_alias%g
8939 s%@build_cpu@%$build_cpu%g
8940 s%@build_vendor@%$build_vendor%g
8941 s%@build_os@%$build_os%g
8943 s%@glibjava_CXX@%$glibjava_CXX%g
8945 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8946 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8947 s%@INSTALL_DATA@%$INSTALL_DATA%g
8948 s%@PACKAGE@%$PACKAGE%g
8949 s%@VERSION@%$VERSION%g
8950 s%@ACLOCAL@%$ACLOCAL%g
8951 s%@AUTOCONF@%$AUTOCONF%g
8952 s%@AUTOMAKE@%$AUTOMAKE%g
8953 s%@AUTOHEADER@%$AUTOHEADER%g
8954 s%@MAKEINFO@%$MAKEINFO%g
8955 s%@SET_MAKE@%$SET_MAKE%g
8958 s%@RANLIB@%$RANLIB%g
8959 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
8960 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
8962 s%@EXEEXT@%$EXEEXT%g
8963 s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
8964 s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
8965 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
8966 s%@INCLTDL@%$INCLTDL%g
8967 s%@LIBLTDL@%$LIBLTDL%g
8968 s%@DIRLTDL@%$DIRLTDL%g
8969 s%@OBJEXT@%$OBJEXT%g
8971 s%@LIBTOOL@%$LIBTOOL%g
8972 s%@CXXCPP@%$CXXCPP%g
8973 s%@subdirs@%$subdirs%g
8974 s%@COMPPATH@%$COMPPATH%g
8975 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
8976 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
8977 s%@LIBGCJDEBUG@%$LIBGCJDEBUG%g
8978 s%@INTERPRETER@%$INTERPRETER%g
8979 s%@LIBFFI@%$LIBFFI%g
8980 s%@LIBFFIINCS@%$LIBFFIINCS%g
8981 s%@PLATFORMOBJS@%$PLATFORMOBJS%g
8983 s%@SYSTEMSPEC@%$SYSTEMSPEC%g
8984 s%@LIBGCJTESTSPEC@%$LIBGCJTESTSPEC%g
8985 s%@ZLIBSPEC@%$ZLIBSPEC%g
8986 s%@ZLIBTESTSPEC@%$ZLIBTESTSPEC%g
8987 s%@X_CFLAGS@%$X_CFLAGS%g
8988 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
8989 s%@X_LIBS@%$X_LIBS%g
8990 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
8991 s%@TOOLKIT@%$TOOLKIT%g
8992 s%@XLIB_AWT_TRUE@%$XLIB_AWT_TRUE%g
8993 s%@XLIB_AWT_FALSE@%$XLIB_AWT_FALSE%g
8994 s%@GTK_AWT_TRUE@%$GTK_AWT_TRUE%g
8995 s%@GTK_AWT_FALSE@%$GTK_AWT_FALSE%g
8996 s%@GCLIBS@%$GCLIBS%g
8997 s%@GCINCS@%$GCINCS%g
8998 s%@GCDEPS@%$GCDEPS%g
8999 s%@GCOBJS@%$GCOBJS%g
9000 s%@GCSPEC@%$GCSPEC%g
9001 s%@JC1GCSPEC@%$JC1GCSPEC%g
9002 s%@GCTESTSPEC@%$GCTESTSPEC%g
9003 s%@THREADLIBS@%$THREADLIBS%g
9004 s%@THREADINCS@%$THREADINCS%g
9005 s%@THREADDEPS@%$THREADDEPS%g
9006 s%@THREADOBJS@%$THREADOBJS%g
9007 s%@THREADSPEC@%$THREADSPEC%g
9008 s%@THREADLDFLAGS@%$THREADLDFLAGS%g
9009 s%@THREADCXXFLAGS@%$THREADCXXFLAGS%g
9010 s%@HASH_SYNC_SPEC@%$HASH_SYNC_SPEC%g
9011 s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
9012 s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
9013 s%@tool_include_dir@%$tool_include_dir%g
9014 s%@gcc_version@%$gcc_version%g
9015 s%@LIBICONV@%$LIBICONV%g
9016 s%@PKG_CONFIG@%$PKG_CONFIG%g
9017 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
9018 s%@GTK_LIBS@%$GTK_LIBS%g
9019 s%@GLIB_CFLAGS@%$GLIB_CFLAGS%g
9020 s%@GLIB_LIBS@%$GLIB_LIBS%g
9021 s%@GLIB_GENMARSHAL@%$GLIB_GENMARSHAL%g
9022 s%@GOBJECT_QUERY@%$GOBJECT_QUERY%g
9023 s%@GLIB_MKENUMS@%$GLIB_MKENUMS%g
9024 s%@LIBART_CONFIG@%$LIBART_CONFIG%g
9025 s%@LIBART_CFLAGS@%$LIBART_CFLAGS%g
9026 s%@LIBART_LIBS@%$LIBART_LIBS%g
9028 s%@GCJFLAGS@%$GCJFLAGS%g
9030 s%@SYS_ZLIBS@%$SYS_ZLIBS%g
9032 s%@DIVIDESPEC@%$DIVIDESPEC%g
9033 s%@CHECKREFSPEC@%$CHECKREFSPEC%g
9034 s%@EXCEPTIONSPEC@%$EXCEPTIONSPEC%g
9035 s%@IEEESPEC@%$IEEESPEC%g
9036 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
9037 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
9038 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
9039 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
9040 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
9041 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
9042 s%@NEEDS_DATA_START_TRUE@%$NEEDS_DATA_START_TRUE%g
9043 s%@NEEDS_DATA_START_FALSE@%$NEEDS_DATA_START_FALSE%g
9044 s%@GCC_UNWIND_INCLUDE@%$GCC_UNWIND_INCLUDE%g
9045 s%@toolexecdir@%$toolexecdir%g
9046 s%@toolexecmainlibdir@%$toolexecmainlibdir%g
9047 s%@toolexeclibdir@%$toolexeclibdir%g
9048 s%@GCJVERSION@%$GCJVERSION%g
9049 s%@ALLOCA@%$ALLOCA%g
9051 s%@BACKTRACESPEC@%$BACKTRACESPEC%g
9052 s%@SYSDEP_SOURCES@%$SYSDEP_SOURCES%g
9058 cat >> $CONFIG_STATUS <<\EOF
9060 # Split the substitutions into bite-sized pieces for seds with
9061 # small command number limits, like on Digital OSF/1 and HP-UX.
9062 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9063 ac_file=1 # Number of current file.
9064 ac_beg=1 # First line for current file.
9065 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9068 while $ac_more_lines; do
9069 if test $ac_beg -gt 1; then
9070 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9072 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9074 if test ! -s conftest.s$ac_file; then
9076 rm -f conftest.s$ac_file
9078 if test -z "$ac_sed_cmds"; then
9079 ac_sed_cmds="sed -f conftest.s$ac_file"
9081 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9083 ac_file=`expr $ac_file + 1`
9085 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9088 if test -z "$ac_sed_cmds"; then
9093 cat >> $CONFIG_STATUS <<EOF
9095 CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.pc libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"}
9097 cat >> $CONFIG_STATUS <<\EOF
9098 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9099 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9101 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9102 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9103 *) ac_file_in="${ac_file}.in" ;;
9106 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9108 # Remove last slash and all that follows it. Not all systems have dirname.
9109 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9110 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9111 # The file is in a subdirectory.
9112 test ! -d "$ac_dir" && mkdir "$ac_dir"
9113 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9114 # A "../" for each directory in $ac_dir_suffix.
9115 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9117 ac_dir_suffix= ac_dots=
9120 case "$ac_given_srcdir" in
9122 if test -z "$ac_dots"; then top_srcdir=.
9123 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9124 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9126 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9127 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9130 case "$ac_given_INSTALL" in
9131 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9132 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9135 echo creating "$ac_file"
9137 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9139 *Makefile*) ac_comsub="1i\\
9140 # $configure_input" ;;
9144 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9146 s%@configure_input@%$configure_input%g
9147 s%@srcdir@%$srcdir%g
9148 s%@top_srcdir@%$top_srcdir%g
9149 s%@INSTALL@%$INSTALL%g
9150 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9154 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9155 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9157 # ac_d sets the value in "#define NAME VALUE" lines.
9158 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9159 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9162 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9163 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9164 ac_uB='\([ ]\)%\1#\2define\3'
9167 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9168 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9169 ac_eB='$%\1#\2define\3'
9173 if test "${CONFIG_HEADERS+set}" != set; then
9175 cat >> $CONFIG_STATUS <<EOF
9176 CONFIG_HEADERS="include/config.h gcj/libgcj-config.h"
9178 cat >> $CONFIG_STATUS <<\EOF
9180 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9181 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9183 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9184 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9185 *) ac_file_in="${ac_file}.in" ;;
9188 echo creating $ac_file
9190 rm -f conftest.frag conftest.in conftest.out
9191 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9192 cat $ac_file_inputs > conftest.in
9196 # Transform confdefs.h into a sed script conftest.vals that substitutes
9197 # the proper values into config.h.in to produce config.h. And first:
9198 # Protect against being on the right side of a sed subst in config.status.
9199 # Protect against being in an unquoted here document in config.status.
9201 cat > conftest.hdr <<\EOF
9204 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9208 sed -n -f conftest.hdr confdefs.h > conftest.vals
9211 # This sed command replaces #undef with comments. This is necessary, for
9212 # example, in the case of _POSIX_SOURCE, which is predefined and required
9213 # on some systems where configure will not decide to define it.
9214 cat >> conftest.vals <<\EOF
9215 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9218 # Break up conftest.vals because some shells have a limit on
9219 # the size of here documents, and old seds have small limits too.
9224 ac_lines=`grep -c . conftest.vals`
9225 # grep -c gives empty output for an empty file on some AIX systems.
9226 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9227 # Write a limited-size here document to conftest.frag.
9228 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9229 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9231 sed -f conftest.frag conftest.in > conftest.out
9233 mv conftest.out conftest.in
9235 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9237 mv conftest.tail conftest.vals
9241 cat >> $CONFIG_STATUS <<\EOF
9242 rm -f conftest.frag conftest.h
9243 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9244 cat conftest.in >> conftest.h
9246 if cmp -s $ac_file conftest.h 2>/dev/null; then
9247 echo "$ac_file is unchanged"
9250 # Remove last slash and all that follows it. Not all systems have dirname.
9251 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9252 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9253 # The file is in a subdirectory.
9254 test ! -d "$ac_dir" && mkdir "$ac_dir"
9257 mv conftest.h $ac_file
9263 cat >> $CONFIG_STATUS <<EOF
9264 ac_sources="include/$PLATFORMH java/io/natFile${FILE-${PLATFORM}}.cc java/io/natFileDescriptor${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 include/$GCHDR include/$THREADH sysdep/$sysdeps_dir/locks.h $SIGNAL_HANDLER"
9265 ac_dests="include/platform.h java/io/natFile.cc java/io/natFileDescriptor.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 include/java-gc.h include/java-threads.h sysdep/locks.h include/java-signal.h"
9268 cat >> $CONFIG_STATUS <<\EOF
9269 srcdir=$ac_given_srcdir
9270 while test -n "$ac_sources"; do
9271 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
9272 set $ac_sources; ac_source=$1; shift; ac_sources=$*
9274 echo "linking $srcdir/$ac_source to $ac_dest"
9276 if test ! -r $srcdir/$ac_source; then
9277 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
9281 # Make relative symlinks.
9282 # Remove last slash and all that follows it. Not all systems have dirname.
9283 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
9284 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
9285 # The dest file is in a subdirectory.
9286 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
9287 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
9288 # A "../" for each directory in $ac_dest_dir_suffix.
9289 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
9291 ac_dest_dir_suffix= ac_dots=
9295 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
9296 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
9299 # Make a symlink if possible; otherwise try a hard link.
9300 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9301 ln $srcdir/$ac_source $ac_dest; then :
9303 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
9307 cat >> $CONFIG_STATUS <<EOF
9312 with_multisubdir=${with_multisubdir}
9313 ac_configure_args="${multilib_arg} ${ac_configure_args}"
9314 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
9315 libgcj_basedir=${libgcj_basedir}
9318 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
9321 cat >> $CONFIG_STATUS <<\EOF
9323 for am_file in include/config.h gcj/libgcj-config.h; do
9324 case " $CONFIG_HEADERS " in
9326 echo timestamp > `echo $am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
9329 am_indx=`expr "$am_indx" + 1`
9331 # Only add multilib support code if we just rebuilt top-level Makefile.
9332 case " $CONFIG_FILES " in
9334 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
9335 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
9339 # Make subdirectories and `.d' files. Look in both srcdir and
9340 # builddir for the .java files.
9343 ( (cd $srcdir && find . \( -name '*.java' -o -name '*.cc' -o -name '*.c' \) -print) ;
9344 find . \( -name '*.java' -o -name '*.cc' -o -name '*.c' \) -print) | \
9345 fgrep -v testsuite | \
9346 sed -e 's/\.java/.d/'\;'s/\.cc/.d/'\;'s/\.c/.d/' | \
9348 echo "include $f" >> deps.mk
9351 d=`echo $f | sed -e 's,/[^/]*$,,'`
9353 if test ! -d $d; then
9354 $libgcj_basedir/../mkinstalldirs $d
9362 chmod +x $CONFIG_STATUS
9363 rm -fr confdefs* $ac_clean_files
9364 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9366 if test "$no_recursion" != yes; then
9368 # Remove --cache-file and --srcdir arguments so they do not pile up.
9369 ac_sub_configure_args=
9371 for ac_arg in $ac_configure_args; do
9372 if test -n "$ac_prev"; then
9377 -cache-file | --cache-file | --cache-fil | --cache-fi \
9378 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9379 ac_prev=cache_file ;;
9380 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
9381 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
9383 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9385 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9387 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
9391 for ac_config_dir in $DIRLTDL; do
9393 # Do not complain, so a configure script can configure whichever
9394 # parts of a large source tree are present.
9395 if test ! -d $srcdir/$ac_config_dir; then
9399 echo configuring in $ac_config_dir
9404 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
9406 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
9414 # A "../" for each directory in /$ac_config_dir.
9415 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
9418 .) # No --srcdir option. We are building in place.
9419 ac_sub_srcdir=$srcdir ;;
9420 /*) # Absolute path.
9421 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
9423 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
9426 # Check for guested configure; otherwise get Cygnus style configure.
9427 if test -f $ac_sub_srcdir/configure; then
9428 ac_sub_configure=$ac_sub_srcdir/configure
9429 elif test -f $ac_sub_srcdir/configure.in; then
9430 ac_sub_configure=$ac_configure
9432 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
9436 # The recursion is here.
9437 if test -n "$ac_sub_configure"; then
9439 # Make the cache file name correct relative to the subdirectory.
9440 case "$cache_file" in
9441 /*) ac_sub_cache_file=$cache_file ;;
9443 ac_sub_cache_file="$ac_dots$cache_file" ;;
9445 case "$ac_given_INSTALL" in
9446 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9447 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9450 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
9451 # The eval makes quoting arguments work.
9452 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
9455 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }