3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-target-subdir=SUBDIR
16 configuring in a subdirectory"
18 --with-cross-host=HOST configuring with a cross compiler"
20 --enable-multilib build many library versions (default)"
22 --enable-maintainer-mode enable make rules and dependencies not useful
23 (and sometimes confusing) to the casual installer"
25 --enable-shared[=PKGS] build shared libraries [default=yes]"
27 --enable-static[=PKGS] build static libraries [default=yes]"
29 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
31 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
33 --disable-libtool-lock avoid locking (might break parallel builds)"
35 --with-pic try to use only PIC/non-PIC objects [default=use both]"
37 --enable-fast-character prefer speed over size for Character"
39 --disable-getenv-properties
40 don't set system properties from GCJ_PROPERTIES"
42 --enable-hash-synchronization
43 Use global hash table for monitor locks"
45 --enable-libgcj-debug enable runtime debugging code"
47 --enable-interpreter enable interpreter"
49 --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
51 --disable-java-net disable java.net"
53 --without-libffi don't use libffi"
55 --disable-jvmpi disable JVMPI support"
57 --with-ecos enable runtime eCos target support"
59 --with-system-zlib use installed libz"
61 --enable-java-gc=TYPE choose garbage collector [boehm]"
63 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
65 --with-x use the X Window System"
67 --enable-java-awt list of AWT peer implementations to be built"
69 # Initialize some variables set by options.
70 # The variables have the same names as the options, with
71 # dashes changed to underlines.
73 cache_file=./config.cache
82 program_transform_name=s,x,x,
90 bindir='${exec_prefix}/bin'
91 sbindir='${exec_prefix}/sbin'
92 libexecdir='${exec_prefix}/libexec'
93 datadir='${prefix}/share'
94 sysconfdir='${prefix}/etc'
95 sharedstatedir='${prefix}/com'
96 localstatedir='${prefix}/var'
97 libdir='${exec_prefix}/lib'
98 includedir='${prefix}/include'
99 oldincludedir='/usr/include'
100 infodir='${prefix}/info'
101 mandir='${prefix}/man'
103 # Initialize some other variables.
106 SHELL=${CONFIG_SHELL-/bin/sh}
107 # Maximum number of lines to put in a shell here document.
114 # If the previous option needs an argument, assign it.
115 if test -n "$ac_prev"; then
116 eval "$ac_prev=\$ac_option"
122 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
126 # Accept the important Cygnus configure options, so we can diagnose typos.
130 -bindir | --bindir | --bindi | --bind | --bin | --bi)
132 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
133 bindir="$ac_optarg" ;;
135 -build | --build | --buil | --bui | --bu)
137 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
138 build="$ac_optarg" ;;
140 -cache-file | --cache-file | --cache-fil | --cache-fi \
141 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
142 ac_prev=cache_file ;;
143 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
144 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
145 cache_file="$ac_optarg" ;;
147 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
149 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
151 datadir="$ac_optarg" ;;
153 -disable-* | --disable-*)
154 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
155 # Reject names that are not valid shell variable names.
156 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
157 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
159 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
160 eval "enable_${ac_feature}=no" ;;
162 -enable-* | --enable-*)
163 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
164 # Reject names that are not valid shell variable names.
165 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
166 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
168 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
173 eval "enable_${ac_feature}='$ac_optarg'" ;;
175 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
176 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
177 | --exec | --exe | --ex)
178 ac_prev=exec_prefix ;;
179 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
180 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
181 | --exec=* | --exe=* | --ex=*)
182 exec_prefix="$ac_optarg" ;;
184 -gas | --gas | --ga | --g)
185 # Obsolete; use --with-gas.
188 -help | --help | --hel | --he)
189 # Omit some internal or obsolete options to make the list less imposing.
190 # This message is too long to be a string in the A/UX 3.1 sh.
192 Usage: configure [options] [host]
193 Options: [defaults in brackets after descriptions]
195 --cache-file=FILE cache test results in FILE
196 --help print this message
197 --no-create do not create output files
198 --quiet, --silent do not print \`checking...' messages
199 --version print the version of autoconf that created configure
200 Directory and file names:
201 --prefix=PREFIX install architecture-independent files in PREFIX
203 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
205 --bindir=DIR user executables in DIR [EPREFIX/bin]
206 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
207 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
208 --datadir=DIR read-only architecture-independent data in DIR
210 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
211 --sharedstatedir=DIR modifiable architecture-independent data in DIR
213 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
214 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
215 --includedir=DIR C header files in DIR [PREFIX/include]
216 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
217 --infodir=DIR info documentation in DIR [PREFIX/info]
218 --mandir=DIR man documentation in DIR [PREFIX/man]
219 --srcdir=DIR find the sources in DIR [configure dir or ..]
220 --program-prefix=PREFIX prepend PREFIX to installed program names
221 --program-suffix=SUFFIX append SUFFIX to installed program names
222 --program-transform-name=PROGRAM
223 run sed PROGRAM on installed program names
227 --build=BUILD configure for building on BUILD [BUILD=HOST]
228 --host=HOST configure for HOST [guessed]
229 --target=TARGET configure for TARGET [TARGET=HOST]
230 Features and packages:
231 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
232 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
233 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
234 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
235 --x-includes=DIR X include files are in DIR
236 --x-libraries=DIR X library files are in DIR
238 if test -n "$ac_help"; then
239 echo "--enable and --with options recognized:$ac_help"
243 -host | --host | --hos | --ho)
245 -host=* | --host=* | --hos=* | --ho=*)
248 -includedir | --includedir | --includedi | --included | --include \
249 | --includ | --inclu | --incl | --inc)
250 ac_prev=includedir ;;
251 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
252 | --includ=* | --inclu=* | --incl=* | --inc=*)
253 includedir="$ac_optarg" ;;
255 -infodir | --infodir | --infodi | --infod | --info | --inf)
257 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
258 infodir="$ac_optarg" ;;
260 -libdir | --libdir | --libdi | --libd)
262 -libdir=* | --libdir=* | --libdi=* | --libd=*)
263 libdir="$ac_optarg" ;;
265 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
266 | --libexe | --libex | --libe)
267 ac_prev=libexecdir ;;
268 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
269 | --libexe=* | --libex=* | --libe=*)
270 libexecdir="$ac_optarg" ;;
272 -localstatedir | --localstatedir | --localstatedi | --localstated \
273 | --localstate | --localstat | --localsta | --localst \
274 | --locals | --local | --loca | --loc | --lo)
275 ac_prev=localstatedir ;;
276 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
277 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
278 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
279 localstatedir="$ac_optarg" ;;
281 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
283 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
284 mandir="$ac_optarg" ;;
287 # Obsolete; use --without-fp.
290 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
294 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
295 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
298 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
299 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
300 | --oldin | --oldi | --old | --ol | --o)
301 ac_prev=oldincludedir ;;
302 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
303 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
304 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
305 oldincludedir="$ac_optarg" ;;
307 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
309 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
310 prefix="$ac_optarg" ;;
312 -program-prefix | --program-prefix | --program-prefi | --program-pref \
313 | --program-pre | --program-pr | --program-p)
314 ac_prev=program_prefix ;;
315 -program-prefix=* | --program-prefix=* | --program-prefi=* \
316 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
317 program_prefix="$ac_optarg" ;;
319 -program-suffix | --program-suffix | --program-suffi | --program-suff \
320 | --program-suf | --program-su | --program-s)
321 ac_prev=program_suffix ;;
322 -program-suffix=* | --program-suffix=* | --program-suffi=* \
323 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
324 program_suffix="$ac_optarg" ;;
326 -program-transform-name | --program-transform-name \
327 | --program-transform-nam | --program-transform-na \
328 | --program-transform-n | --program-transform- \
329 | --program-transform | --program-transfor \
330 | --program-transfo | --program-transf \
331 | --program-trans | --program-tran \
332 | --progr-tra | --program-tr | --program-t)
333 ac_prev=program_transform_name ;;
334 -program-transform-name=* | --program-transform-name=* \
335 | --program-transform-nam=* | --program-transform-na=* \
336 | --program-transform-n=* | --program-transform-=* \
337 | --program-transform=* | --program-transfor=* \
338 | --program-transfo=* | --program-transf=* \
339 | --program-trans=* | --program-tran=* \
340 | --progr-tra=* | --program-tr=* | --program-t=*)
341 program_transform_name="$ac_optarg" ;;
343 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
344 | -silent | --silent | --silen | --sile | --sil)
347 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
349 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
351 sbindir="$ac_optarg" ;;
353 -sharedstatedir | --sharedstatedir | --sharedstatedi \
354 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
355 | --sharedst | --shareds | --shared | --share | --shar \
357 ac_prev=sharedstatedir ;;
358 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
359 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
360 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
362 sharedstatedir="$ac_optarg" ;;
364 -site | --site | --sit)
366 -site=* | --site=* | --sit=*)
369 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
371 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
372 srcdir="$ac_optarg" ;;
374 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
375 | --syscon | --sysco | --sysc | --sys | --sy)
376 ac_prev=sysconfdir ;;
377 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
378 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
379 sysconfdir="$ac_optarg" ;;
381 -target | --target | --targe | --targ | --tar | --ta | --t)
383 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
384 target="$ac_optarg" ;;
386 -v | -verbose | --verbose | --verbos | --verbo | --verb)
389 -version | --version | --versio | --versi | --vers)
390 echo "configure generated by autoconf version 2.13"
394 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
395 # Reject names that are not valid shell variable names.
396 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
397 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
399 ac_package=`echo $ac_package| sed 's/-/_/g'`
404 eval "with_${ac_package}='$ac_optarg'" ;;
406 -without-* | --without-*)
407 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
408 # Reject names that are not valid shell variable names.
409 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
410 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
412 ac_package=`echo $ac_package| sed 's/-/_/g'`
413 eval "with_${ac_package}=no" ;;
416 # Obsolete; use --with-x.
419 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
420 | --x-incl | --x-inc | --x-in | --x-i)
421 ac_prev=x_includes ;;
422 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
423 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
424 x_includes="$ac_optarg" ;;
426 -x-libraries | --x-libraries | --x-librarie | --x-librari \
427 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
428 ac_prev=x_libraries ;;
429 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
430 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
431 x_libraries="$ac_optarg" ;;
433 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
437 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
438 echo "configure: warning: $ac_option: invalid host type" 1>&2
440 if test "x$nonopt" != xNONE; then
441 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
449 if test -n "$ac_prev"; then
450 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
453 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
455 # File descriptor usage:
458 # 2 errors and warnings
459 # 3 some systems may open it to /dev/tty
460 # 4 used on the Kubota Titan
461 # 6 checking for... messages and results
462 # 5 compiler messages saved in config.log
463 if test "$silent" = yes; then
471 This file contains any messages produced by compilers while
472 running configure, to aid debugging if configure makes a mistake.
475 # Strip out --no-create and --no-recursion so they do not pile up.
476 # Also quote any args containing shell metacharacters.
481 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
482 | --no-cr | --no-c) ;;
483 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
484 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
485 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
486 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
487 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
492 # Only set these to C if already set. These must not be set unconditionally
493 # because not all systems understand e.g. LANG=C (notably SCO).
494 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
495 # Non-C LC_CTYPE values break the ctype check.
496 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
497 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
498 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
499 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
501 # confdefs.h avoids OS command line length limits that DEFS can exceed.
502 rm -rf conftest* confdefs.h
503 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
506 # A filename unique to this package, relative to the directory that
507 # configure is in, which we can look for to find out if srcdir is correct.
508 ac_unique_file=java/lang/System.java
510 # Find the source files, if location was not specified.
511 if test -z "$srcdir"; then
512 ac_srcdir_defaulted=yes
513 # Try the directory containing this script, then its parent.
515 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
516 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
518 if test ! -r $srcdir/$ac_unique_file; then
522 ac_srcdir_defaulted=no
524 if test ! -r $srcdir/$ac_unique_file; then
525 if test "$ac_srcdir_defaulted" = yes; then
526 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
528 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
531 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
533 # Prefer explicitly selected file to automatically selected ones.
534 if test -z "$CONFIG_SITE"; then
535 if test "x$prefix" != xNONE; then
536 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
538 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
541 for ac_site_file in $CONFIG_SITE; do
542 if test -r "$ac_site_file"; then
543 echo "loading site script $ac_site_file"
548 if test -r "$cache_file"; then
549 echo "loading cache $cache_file"
552 echo "creating cache $cache_file"
557 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
558 ac_cpp='$CPP $CPPFLAGS'
559 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
560 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
561 cross_compiling=$ac_cv_prog_cc_cross
565 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
566 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
567 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
574 ac_n= ac_c='\c' ac_t=
579 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
580 echo "configure:581: checking whether ln -s works" >&5
581 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
582 echo $ac_n "(cached) $ac_c" 1>&6
585 if ln -s X conftestdata 2>/dev/null
588 ac_cv_prog_LN_S="ln -s"
593 LN_S="$ac_cv_prog_LN_S"
594 if test "$ac_cv_prog_LN_S" = "ln -s"; then
595 echo "$ac_t""yes" 1>&6
597 echo "$ac_t""no" 1>&6
601 # Check whether --with-target-subdir or --without-target-subdir was given.
602 if test "${with_target_subdir+set}" = set; then
603 withval="$with_target_subdir"
607 # Check whether --with-cross-host or --without-cross-host was given.
608 if test "${with_cross_host+set}" = set; then
609 withval="$with_cross_host"
614 # Find a good install program. We prefer a C program (faster),
615 # so one script is as good as another. But avoid the broken or
616 # incompatible versions:
617 # SysV /etc/install, /usr/sbin/install
618 # SunOS /usr/etc/install
621 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
622 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
623 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
624 # ./install, which can be erroneously created by make from ./install.sh.
625 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
626 echo "configure:627: checking for a BSD compatible install" >&5
627 if test -z "$INSTALL"; then
628 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
629 echo $ac_n "(cached) $ac_c" 1>&6
631 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
632 for ac_dir in $PATH; do
633 # Account for people who put trailing slashes in PATH elements.
635 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
637 # OSF1 and SCO ODT 3.0 have their own names for install.
638 # Don't use installbsd from OSF since it installs stuff as root
640 for ac_prog in ginstall scoinst install; do
641 if test -f $ac_dir/$ac_prog; then
642 if test $ac_prog = install &&
643 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
644 # AIX install. It has an incompatible calling convention.
647 ac_cv_path_install="$ac_dir/$ac_prog -c"
658 if test "${ac_cv_path_install+set}" = set; then
659 INSTALL="$ac_cv_path_install"
661 # As a last resort, use the slow shell script. We don't cache a
662 # path for INSTALL within a source directory, because that will
663 # break other packages using the cache if that directory is
664 # removed, or if the path is relative.
665 INSTALL="$ac_install_sh"
668 echo "$ac_t""$INSTALL" 1>&6
670 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
671 # It thinks the first close brace ends the variable substitution.
672 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
674 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
676 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
678 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
679 echo "configure:680: checking whether build environment is sane" >&5
682 echo timestamp > conftestfile
683 # Do `set' in a subshell so we don't clobber the current shell's
684 # arguments. Must try -L first in case configure is actually a
685 # symlink; some systems play weird games with the mod time of symlinks
686 # (eg FreeBSD returns the mod time of the symlink's containing
689 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
690 if test "$*" = "X"; then
692 set X `ls -t $srcdir/configure conftestfile`
694 if test "$*" != "X $srcdir/configure conftestfile" \
695 && test "$*" != "X conftestfile $srcdir/configure"; then
697 # If neither matched, then we have a broken ls. This can happen
698 # if, for instance, CONFIG_SHELL is bash and it inherits a
699 # broken ls alias from the environment. This has actually
700 # happened. Such a system could not be considered "sane".
701 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
702 alias in your environment" 1>&2; exit 1; }
705 test "$2" = conftestfile
711 { echo "configure: error: newly created file is older than distributed files!
712 Check your system clock" 1>&2; exit 1; }
715 echo "$ac_t""yes" 1>&6
716 if test "$program_transform_name" = s,x,x,; then
717 program_transform_name=
719 # Double any \ or $. echo might interpret backslashes.
720 cat <<\EOF_SED > conftestsed
721 s,\\,\\\\,g; s,\$,$$,g
723 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
726 test "$program_prefix" != NONE &&
727 program_transform_name="s,^,${program_prefix},; $program_transform_name"
728 # Use a double $ so make ignores it.
729 test "$program_suffix" != NONE &&
730 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
732 # sed with no file args requires a program.
733 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
735 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
736 echo "configure:737: checking whether ${MAKE-make} sets \${MAKE}" >&5
737 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
738 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
739 echo $ac_n "(cached) $ac_c" 1>&6
741 cat > conftestmake <<\EOF
743 @echo 'ac_maketemp="${MAKE}"'
745 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
746 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
747 if test -n "$ac_maketemp"; then
748 eval ac_cv_prog_make_${ac_make}_set=yes
750 eval ac_cv_prog_make_${ac_make}_set=no
754 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
755 echo "$ac_t""yes" 1>&6
758 echo "$ac_t""no" 1>&6
759 SET_MAKE="MAKE=${MAKE-make}"
762 if test $host != $build; then
763 ac_tool_prefix=${host_alias}-
768 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
769 echo "configure:770: checking for Cygwin environment" >&5
770 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
771 echo $ac_n "(cached) $ac_c" 1>&6
773 cat > conftest.$ac_ext <<EOF
774 #line 775 "configure"
775 #include "confdefs.h"
780 #define __CYGWIN__ __CYGWIN32__
785 if { (eval echo configure:786: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
789 echo "configure: failed program was:" >&5
790 cat conftest.$ac_ext >&5
798 echo "$ac_t""$ac_cv_cygwin" 1>&6
800 test "$ac_cv_cygwin" = yes && CYGWIN=yes
801 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
802 echo "configure:803: checking for mingw32 environment" >&5
803 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
804 echo $ac_n "(cached) $ac_c" 1>&6
806 cat > conftest.$ac_ext <<EOF
807 #line 808 "configure"
808 #include "confdefs.h"
814 if { (eval echo configure:815: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
818 echo "configure: failed program was:" >&5
819 cat conftest.$ac_ext >&5
827 echo "$ac_t""$ac_cv_mingw32" 1>&6
829 test "$ac_cv_mingw32" = yes && MINGW32=yes
831 # Check whether --enable-multilib or --disable-multilib was given.
832 if test "${enable_multilib+set}" = set; then
833 enableval="$enable_multilib"
834 case "${enableval}" in
837 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
844 # When building with srcdir == objdir, links to the source files will
845 # be created in directories within the target_subdir. We have to
846 # adjust toplevel_srcdir accordingly, so that configure finds
847 # install-sh and other auxiliary files that live in the top-level
849 if test "${srcdir}" = "."; then
850 if test -z "${with_target_subdir}"; then
853 if test "${with_target_subdir}" != "."; then
854 toprel="${with_multisrctop}../.."
856 toprel="${with_multisrctop}.."
863 libgcj_basedir=$srcdir/$toprel/./libjava
867 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
868 if test -f $ac_dir/install-sh; then
870 ac_install_sh="$ac_aux_dir/install-sh -c"
872 elif test -f $ac_dir/install.sh; then
874 ac_install_sh="$ac_aux_dir/install.sh -c"
878 if test -z "$ac_aux_dir"; then
879 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
881 ac_config_guess=$ac_aux_dir/config.guess
882 ac_config_sub=$ac_aux_dir/config.sub
883 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
886 # This overrides the previous occurrence for automake, but not for
887 # autoconf, which is exactly what we want.
889 for ac_dir in .. $srcdir/..; do
890 if test -f $ac_dir/install-sh; then
892 ac_install_sh="$ac_aux_dir/install-sh -c"
894 elif test -f $ac_dir/install.sh; then
896 ac_install_sh="$ac_aux_dir/install.sh -c"
900 if test -z "$ac_aux_dir"; then
901 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
903 ac_config_guess=$ac_aux_dir/config.guess
904 ac_config_sub=$ac_aux_dir/config.sub
905 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
909 # This works around an automake problem.
910 mkinstalldirs="`cd $ac_aux_dir && pwd`/mkinstalldirs"
914 # Do some error checking and defaulting for the host and target type.
916 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
919 # 1. You are not allowed to specify --host, --target, and nonopt at the
921 # 2. Host defaults to nonopt.
922 # 3. If nonopt is not specified, then host defaults to the current host,
923 # as determined by config.guess.
924 # 4. Target and build default to nonopt.
925 # 5. If nonopt is not specified, then target and build default to host.
927 # The aliases save the names the user supplied, while $host etc.
928 # will get canonicalized.
929 case $host---$target---$nonopt in
930 NONE---*---* | *---NONE---* | *---*---NONE) ;;
931 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
935 # Make sure we can run config.sub.
936 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
937 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
940 echo $ac_n "checking host system type""... $ac_c" 1>&6
941 echo "configure:942: checking host system type" >&5
944 case "$host_alias" in
948 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
949 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
951 *) host_alias=$nonopt ;;
955 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
956 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
957 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
958 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
959 echo "$ac_t""$host" 1>&6
961 echo $ac_n "checking target system type""... $ac_c" 1>&6
962 echo "configure:963: checking target system type" >&5
965 case "$target_alias" in
968 NONE) target_alias=$host_alias ;;
969 *) target_alias=$nonopt ;;
973 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
974 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
975 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
976 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
977 echo "$ac_t""$target" 1>&6
979 echo $ac_n "checking build system type""... $ac_c" 1>&6
980 echo "configure:981: checking build system type" >&5
983 case "$build_alias" in
986 NONE) build_alias=$host_alias ;;
987 *) build_alias=$nonopt ;;
991 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
992 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
993 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
994 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
995 echo "$ac_t""$build" 1>&6
997 test "$host_alias" != "$target_alias" &&
998 test "$program_prefix$program_suffix$program_transform_name" = \
1000 program_prefix=${target_alias}-
1006 # Extract the first word of "gcc", so it can be a program name with args.
1007 set dummy gcc; ac_word=$2
1008 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1009 echo "configure:1010: checking for $ac_word" >&5
1010 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1011 echo $ac_n "(cached) $ac_c" 1>&6
1013 if test -n "$CC"; then
1014 ac_cv_prog_CC="$CC" # Let the user override the test.
1016 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1018 for ac_dir in $ac_dummy; do
1019 test -z "$ac_dir" && ac_dir=.
1020 if test -f $ac_dir/$ac_word; then
1029 if test -n "$CC"; then
1030 echo "$ac_t""$CC" 1>&6
1032 echo "$ac_t""no" 1>&6
1035 if test -z "$CC"; then
1036 # Extract the first word of "cc", so it can be a program name with args.
1037 set dummy cc; ac_word=$2
1038 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1039 echo "configure:1040: checking for $ac_word" >&5
1040 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1041 echo $ac_n "(cached) $ac_c" 1>&6
1043 if test -n "$CC"; then
1044 ac_cv_prog_CC="$CC" # Let the user override the test.
1046 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1049 for ac_dir in $ac_dummy; do
1050 test -z "$ac_dir" && ac_dir=.
1051 if test -f $ac_dir/$ac_word; then
1052 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1053 ac_prog_rejected=yes
1061 if test $ac_prog_rejected = yes; then
1062 # We found a bogon in the path, so make sure we never use it.
1063 set dummy $ac_cv_prog_CC
1065 if test $# -gt 0; then
1066 # We chose a different compiler from the bogus one.
1067 # However, it has the same basename, so the bogon will be chosen
1068 # first if we set CC to just the basename; use the full file name.
1070 set dummy "$ac_dir/$ac_word" "$@"
1078 if test -n "$CC"; then
1079 echo "$ac_t""$CC" 1>&6
1081 echo "$ac_t""no" 1>&6
1084 if test -z "$CC"; then
1085 case "`uname -s`" in
1087 # Extract the first word of "cl", so it can be a program name with args.
1088 set dummy cl; ac_word=$2
1089 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1090 echo "configure:1091: checking for $ac_word" >&5
1091 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1092 echo $ac_n "(cached) $ac_c" 1>&6
1094 if test -n "$CC"; then
1095 ac_cv_prog_CC="$CC" # Let the user override the test.
1097 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1099 for ac_dir in $ac_dummy; do
1100 test -z "$ac_dir" && ac_dir=.
1101 if test -f $ac_dir/$ac_word; then
1110 if test -n "$CC"; then
1111 echo "$ac_t""$CC" 1>&6
1113 echo "$ac_t""no" 1>&6
1118 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1122 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1123 echo "configure:1124: checking whether we are using GNU C" >&5
1124 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1125 echo $ac_n "(cached) $ac_c" 1>&6
1127 cat > conftest.c <<EOF
1132 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1139 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1141 if test $ac_cv_prog_gcc = yes; then
1147 ac_test_CFLAGS="${CFLAGS+set}"
1148 ac_save_CFLAGS="$CFLAGS"
1150 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1151 echo "configure:1152: checking whether ${CC-cc} accepts -g" >&5
1152 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1153 echo $ac_n "(cached) $ac_c" 1>&6
1155 echo 'void f(){}' > conftest.c
1156 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1165 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1166 if test "$ac_test_CFLAGS" = set; then
1167 CFLAGS="$ac_save_CFLAGS"
1168 elif test $ac_cv_prog_cc_g = yes; then
1169 if test "$GCC" = yes; then
1175 if test "$GCC" = yes; then
1182 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1184 # Extract the first word of "$ac_prog", so it can be a program name with args.
1185 set dummy $ac_prog; ac_word=$2
1186 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1187 echo "configure:1188: checking for $ac_word" >&5
1188 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1189 echo $ac_n "(cached) $ac_c" 1>&6
1191 if test -n "$CXX"; then
1192 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1194 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1196 for ac_dir in $ac_dummy; do
1197 test -z "$ac_dir" && ac_dir=.
1198 if test -f $ac_dir/$ac_word; then
1199 ac_cv_prog_CXX="$ac_prog"
1206 CXX="$ac_cv_prog_CXX"
1207 if test -n "$CXX"; then
1208 echo "$ac_t""$CXX" 1>&6
1210 echo "$ac_t""no" 1>&6
1213 test -n "$CXX" && break
1215 test -n "$CXX" || CXX="gcc"
1219 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1220 echo "configure:1221: checking whether we are using GNU C++" >&5
1221 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1222 echo $ac_n "(cached) $ac_c" 1>&6
1224 cat > conftest.C <<EOF
1229 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1236 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1238 if test $ac_cv_prog_gxx = yes; then
1244 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1245 ac_save_CXXFLAGS="$CXXFLAGS"
1247 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1248 echo "configure:1249: checking whether ${CXX-g++} accepts -g" >&5
1249 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1250 echo $ac_n "(cached) $ac_c" 1>&6
1252 echo 'void f(){}' > conftest.cc
1253 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1254 ac_cv_prog_cxx_g=yes
1262 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1263 if test "$ac_test_CXXFLAGS" = set; then
1264 CXXFLAGS="$ac_save_CXXFLAGS"
1265 elif test $ac_cv_prog_cxx_g = yes; then
1266 if test "$GXX" = yes; then
1272 if test "$GXX" = yes; then
1286 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1287 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1289 cat >> confdefs.h <<EOF
1290 #define PACKAGE "$PACKAGE"
1293 cat >> confdefs.h <<EOF
1294 #define VERSION "$VERSION"
1299 missing_dir=`cd $ac_aux_dir && pwd`
1300 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1301 echo "configure:1302: checking for working aclocal" >&5
1302 # Run test in a subshell; some versions of sh will print an error if
1303 # an executable is not found, even if stderr is redirected.
1304 # Redirect stdin to placate older versions of autoconf. Sigh.
1305 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1307 echo "$ac_t""found" 1>&6
1309 ACLOCAL="$missing_dir/missing aclocal"
1310 echo "$ac_t""missing" 1>&6
1313 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1314 echo "configure:1315: checking for working autoconf" >&5
1315 # Run test in a subshell; some versions of sh will print an error if
1316 # an executable is not found, even if stderr is redirected.
1317 # Redirect stdin to placate older versions of autoconf. Sigh.
1318 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1320 echo "$ac_t""found" 1>&6
1322 AUTOCONF="$missing_dir/missing autoconf"
1323 echo "$ac_t""missing" 1>&6
1326 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1327 echo "configure:1328: checking for working automake" >&5
1328 # Run test in a subshell; some versions of sh will print an error if
1329 # an executable is not found, even if stderr is redirected.
1330 # Redirect stdin to placate older versions of autoconf. Sigh.
1331 if (automake --version) < /dev/null > /dev/null 2>&1; then
1333 echo "$ac_t""found" 1>&6
1335 AUTOMAKE="$missing_dir/missing automake"
1336 echo "$ac_t""missing" 1>&6
1339 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1340 echo "configure:1341: checking for working autoheader" >&5
1341 # Run test in a subshell; some versions of sh will print an error if
1342 # an executable is not found, even if stderr is redirected.
1343 # Redirect stdin to placate older versions of autoconf. Sigh.
1344 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1345 AUTOHEADER=autoheader
1346 echo "$ac_t""found" 1>&6
1348 AUTOHEADER="$missing_dir/missing autoheader"
1349 echo "$ac_t""missing" 1>&6
1352 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1353 echo "configure:1354: checking for working makeinfo" >&5
1354 # Run test in a subshell; some versions of sh will print an error if
1355 # an executable is not found, even if stderr is redirected.
1356 # Redirect stdin to placate older versions of autoconf. Sigh.
1357 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1359 echo "$ac_t""found" 1>&6
1361 MAKEINFO="$missing_dir/missing makeinfo"
1362 echo "$ac_t""missing" 1>&6
1367 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we don't
1368 # run it explicitly here, it will be run implicitly before
1369 # LIBGCJ_CONFIGURE, which doesn't work because that means that it will
1370 # be run before AC_CANONICAL_HOST.
1371 echo $ac_n "checking build system type""... $ac_c" 1>&6
1372 echo "configure:1373: checking build system type" >&5
1375 case "$build_alias" in
1378 NONE) build_alias=$host_alias ;;
1379 *) build_alias=$nonopt ;;
1383 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1384 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1385 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1386 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1387 echo "$ac_t""$build" 1>&6
1390 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1391 set dummy ${ac_tool_prefix}as; ac_word=$2
1392 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1393 echo "configure:1394: checking for $ac_word" >&5
1394 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1395 echo $ac_n "(cached) $ac_c" 1>&6
1397 if test -n "$AS"; then
1398 ac_cv_prog_AS="$AS" # Let the user override the test.
1400 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1402 for ac_dir in $ac_dummy; do
1403 test -z "$ac_dir" && ac_dir=.
1404 if test -f $ac_dir/$ac_word; then
1405 ac_cv_prog_AS="${ac_tool_prefix}as"
1410 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1414 if test -n "$AS"; then
1415 echo "$ac_t""$AS" 1>&6
1417 echo "$ac_t""no" 1>&6
1422 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1423 set dummy ${ac_tool_prefix}ar; ac_word=$2
1424 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1425 echo "configure:1426: checking for $ac_word" >&5
1426 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1427 echo $ac_n "(cached) $ac_c" 1>&6
1429 if test -n "$AR"; then
1430 ac_cv_prog_AR="$AR" # Let the user override the test.
1432 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1434 for ac_dir in $ac_dummy; do
1435 test -z "$ac_dir" && ac_dir=.
1436 if test -f $ac_dir/$ac_word; then
1437 ac_cv_prog_AR="${ac_tool_prefix}ar"
1442 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1446 if test -n "$AR"; then
1447 echo "$ac_t""$AR" 1>&6
1449 echo "$ac_t""no" 1>&6
1454 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1455 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1456 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1457 echo "configure:1458: checking for $ac_word" >&5
1458 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1459 echo $ac_n "(cached) $ac_c" 1>&6
1461 if test -n "$RANLIB"; then
1462 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1464 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1466 for ac_dir in $ac_dummy; do
1467 test -z "$ac_dir" && ac_dir=.
1468 if test -f $ac_dir/$ac_word; then
1469 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1476 RANLIB="$ac_cv_prog_RANLIB"
1477 if test -n "$RANLIB"; then
1478 echo "$ac_t""$RANLIB" 1>&6
1480 echo "$ac_t""no" 1>&6
1484 if test -z "$ac_cv_prog_RANLIB"; then
1485 if test -n "$ac_tool_prefix"; then
1486 # Extract the first word of "ranlib", so it can be a program name with args.
1487 set dummy ranlib; ac_word=$2
1488 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1489 echo "configure:1490: checking for $ac_word" >&5
1490 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1491 echo $ac_n "(cached) $ac_c" 1>&6
1493 if test -n "$RANLIB"; then
1494 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1496 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1498 for ac_dir in $ac_dummy; do
1499 test -z "$ac_dir" && ac_dir=.
1500 if test -f $ac_dir/$ac_word; then
1501 ac_cv_prog_RANLIB="ranlib"
1506 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1509 RANLIB="$ac_cv_prog_RANLIB"
1510 if test -n "$RANLIB"; then
1511 echo "$ac_t""$RANLIB" 1>&6
1513 echo "$ac_t""no" 1>&6
1522 # Find a good install program. We prefer a C program (faster),
1523 # so one script is as good as another. But avoid the broken or
1524 # incompatible versions:
1525 # SysV /etc/install, /usr/sbin/install
1526 # SunOS /usr/etc/install
1527 # IRIX /sbin/install
1529 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1530 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1531 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1532 # ./install, which can be erroneously created by make from ./install.sh.
1533 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1534 echo "configure:1535: checking for a BSD compatible install" >&5
1535 if test -z "$INSTALL"; then
1536 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1537 echo $ac_n "(cached) $ac_c" 1>&6
1539 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1540 for ac_dir in $PATH; do
1541 # Account for people who put trailing slashes in PATH elements.
1543 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1545 # OSF1 and SCO ODT 3.0 have their own names for install.
1546 # Don't use installbsd from OSF since it installs stuff as root
1548 for ac_prog in ginstall scoinst install; do
1549 if test -f $ac_dir/$ac_prog; then
1550 if test $ac_prog = install &&
1551 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1552 # AIX install. It has an incompatible calling convention.
1555 ac_cv_path_install="$ac_dir/$ac_prog -c"
1566 if test "${ac_cv_path_install+set}" = set; then
1567 INSTALL="$ac_cv_path_install"
1569 # As a last resort, use the slow shell script. We don't cache a
1570 # path for INSTALL within a source directory, because that will
1571 # break other packages using the cache if that directory is
1572 # removed, or if the path is relative.
1573 INSTALL="$ac_install_sh"
1576 echo "$ac_t""$INSTALL" 1>&6
1578 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1579 # It thinks the first close brace ends the variable substitution.
1580 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1582 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1584 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1587 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1588 echo "configure:1589: checking whether to enable maintainer-specific portions of Makefiles" >&5
1589 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1590 if test "${enable_maintainer_mode+set}" = set; then
1591 enableval="$enable_maintainer_mode"
1592 USE_MAINTAINER_MODE=$enableval
1594 USE_MAINTAINER_MODE=no
1597 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1600 if test $USE_MAINTAINER_MODE = yes; then
1601 MAINTAINER_MODE_TRUE=
1602 MAINTAINER_MODE_FALSE='#'
1604 MAINTAINER_MODE_TRUE='#'
1605 MAINTAINER_MODE_FALSE=
1607 MAINT=$MAINTAINER_MODE_TRUE
1611 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1612 # at least currently, we never actually build a program, so we never
1613 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1614 # fails, because we are probably configuring with a cross compiler
1615 # which cant create executables. So we include AC_EXEEXT to keep
1616 # automake happy, but we don't execute it, since we don't care about
1619 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1620 # to nothing, so nothing would remain between `then' and `fi' if it
1621 # were not for the `:' below.
1625 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1626 echo "configure:1627: checking for executable suffix" >&5
1627 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1628 echo $ac_n "(cached) $ac_c" 1>&6
1630 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1634 echo 'int main () { return 0; }' > conftest.$ac_ext
1636 if { (eval echo configure:1637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1637 for file in conftest.*; do
1639 *.c | *.o | *.obj) ;;
1640 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1644 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1647 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1652 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1653 echo "$ac_t""${ac_cv_exeext}" 1>&6
1658 # configure.host sets the following important variables
1659 # libgcj_cflags - host specific C compiler flags
1660 # libgcj_cxxflags - host specific C++ compiler flags
1661 # libgcj_javaflags - host specific Java compiler flags
1667 . ${srcdir}/configure.host
1669 LIBGCJ_CFLAGS="${libgcj_cflags}"
1670 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
1671 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
1681 # Only use libltdl for native builds.
1682 if test -z "${with_cross_host}"; then
1683 case $enable_ltdl_convenience in
1684 no) { echo "configure: error: this package needs a convenience libltdl" 1>&2; exit 1; } ;;
1685 "") enable_ltdl_convenience=yes
1686 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
1688 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
1689 INCLTDL='-I${top_srcdir}/''libltdl'
1693 cat >> confdefs.h <<\EOF
1697 # Sigh. Libtool's macro doesn't do the right thing.
1698 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
1699 # FIXME: this is a hack.
1700 sub_auxdir="`cd $ac_aux_dir && pwd`"
1701 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
1706 # Check whether --enable-shared or --disable-shared was given.
1707 if test "${enable_shared+set}" = set; then
1708 enableval="$enable_shared"
1709 p=${PACKAGE-default}
1711 yes) enable_shared=yes ;;
1712 no) enable_shared=no ;;
1715 # Look at the argument we got. We use all the common list separators.
1716 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1717 for pkg in $enableval; do
1718 if test "X$pkg" = "X$p"; then
1729 # Check whether --enable-static or --disable-static was given.
1730 if test "${enable_static+set}" = set; then
1731 enableval="$enable_static"
1732 p=${PACKAGE-default}
1734 yes) enable_static=yes ;;
1735 no) enable_static=no ;;
1738 # Look at the argument we got. We use all the common list separators.
1739 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1740 for pkg in $enableval; do
1741 if test "X$pkg" = "X$p"; then
1752 # Check whether --enable-fast-install or --disable-fast-install was given.
1753 if test "${enable_fast_install+set}" = set; then
1754 enableval="$enable_fast_install"
1755 p=${PACKAGE-default}
1757 yes) enable_fast_install=yes ;;
1758 no) enable_fast_install=no ;;
1760 enable_fast_install=no
1761 # Look at the argument we got. We use all the common list separators.
1762 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1763 for pkg in $enableval; do
1764 if test "X$pkg" = "X$p"; then
1765 enable_fast_install=yes
1772 enable_fast_install=yes
1775 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1776 if test "${with_gnu_ld+set}" = set; then
1777 withval="$with_gnu_ld"
1778 test "$withval" = no || with_gnu_ld=yes
1784 if test "$GCC" = yes; then
1785 # Check if gcc -print-prog-name=ld gives a path.
1786 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1787 echo "configure:1788: checking for ld used by GCC" >&5
1790 # gcc leaves a trailing carriage return which upsets mingw
1791 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1793 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1796 # Accept absolute paths.
1797 [\\/]* | [A-Za-z]:[\\/]*)
1798 re_direlt='/[^/][^/]*/\.\./'
1799 # Canonicalize the path of ld
1800 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1801 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1802 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1804 test -z "$LD" && LD="$ac_prog"
1807 # If it fails, then pretend we aren't using GCC.
1811 # If it is relative, then search for the first ld in PATH.
1815 elif test "$with_gnu_ld" = yes; then
1816 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1817 echo "configure:1818: checking for GNU ld" >&5
1819 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1820 echo "configure:1821: checking for non-GNU ld" >&5
1822 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1823 echo $ac_n "(cached) $ac_c" 1>&6
1825 if test -z "$LD"; then
1826 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1827 for ac_dir in $PATH; do
1828 test -z "$ac_dir" && ac_dir=.
1829 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1830 lt_cv_path_LD="$ac_dir/$ac_prog"
1831 # Check to see if the program is GNU ld. I'd rather use --version,
1832 # but apparently some GNU ld's only accept -v.
1833 # Break only if it was the GNU/non-GNU ld that we prefer.
1834 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1835 test "$with_gnu_ld" != no && break
1837 test "$with_gnu_ld" != yes && break
1843 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1848 if test -n "$LD"; then
1849 echo "$ac_t""$LD" 1>&6
1851 echo "$ac_t""no" 1>&6
1853 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1854 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1855 echo "configure:1856: checking if the linker ($LD) is GNU ld" >&5
1856 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1857 echo $ac_n "(cached) $ac_c" 1>&6
1859 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1860 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1861 lt_cv_prog_gnu_ld=yes
1863 lt_cv_prog_gnu_ld=no
1867 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1868 with_gnu_ld=$lt_cv_prog_gnu_ld
1871 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1872 echo "configure:1873: checking for $LD option to reload object files" >&5
1873 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1874 echo $ac_n "(cached) $ac_c" 1>&6
1876 lt_cv_ld_reload_flag='-r'
1879 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1880 reload_flag=$lt_cv_ld_reload_flag
1881 test -n "$reload_flag" && reload_flag=" $reload_flag"
1883 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1884 echo "configure:1885: checking for BSD-compatible nm" >&5
1885 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1886 echo $ac_n "(cached) $ac_c" 1>&6
1888 if test -n "$NM"; then
1889 # Let the user override the test.
1892 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1893 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1894 test -z "$ac_dir" && ac_dir=.
1895 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1896 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1897 # Check to see if the nm accepts a BSD-compat flag.
1898 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1899 # nm: unknown option "B" ignored
1900 # Tru64's nm complains that /dev/null is an invalid object file
1901 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1902 lt_cv_path_NM="$tmp_nm -B"
1904 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1905 lt_cv_path_NM="$tmp_nm -p"
1908 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1909 continue # so that we can try to find one that supports BSD flags
1914 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1919 echo "$ac_t""$NM" 1>&6
1921 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1922 echo "configure:1923: checking how to recognise dependant libraries" >&5
1923 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1924 echo $ac_n "(cached) $ac_c" 1>&6
1926 lt_cv_file_magic_cmd='$MAGIC_CMD'
1927 lt_cv_file_magic_test_file=
1928 lt_cv_deplibs_check_method='unknown'
1929 # Need to set the preceding variable on all platforms that support
1930 # interlibrary dependencies.
1931 # 'none' -- dependencies not supported.
1932 # `unknown' -- same as none, but documents that we really don't know.
1933 # 'pass_all' -- all dependencies passed with no checks.
1934 # 'test_compile' -- check by making test program.
1935 # 'file_magic [regex]' -- check by looking for files in library path
1936 # which responds to the $file_magic_cmd with a given egrep regex.
1937 # If you have `file' or equivalent on your system and you're not sure
1938 # whether `pass_all' will *always* work, you probably want this one.
1942 lt_cv_deplibs_check_method=pass_all
1946 lt_cv_deplibs_check_method=pass_all
1950 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1951 lt_cv_file_magic_cmd='/usr/bin/file -L'
1952 lt_cv_file_magic_test_file=/shlib/libc.so
1955 cygwin* | mingw* |pw32*)
1956 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1957 lt_cv_file_magic_cmd='$OBJDUMP -f'
1960 darwin* | rhapsody*)
1961 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1962 lt_cv_file_magic_cmd='/usr/bin/file -L'
1964 rhapsody* | darwin1.012)
1965 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1968 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1974 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1977 # Not sure whether the presence of OpenBSD here was a mistake.
1978 # Let's accept both of them until this is cleared up.
1979 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1980 lt_cv_file_magic_cmd=/usr/bin/file
1981 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1985 lt_cv_deplibs_check_method=pass_all
1990 lt_cv_deplibs_check_method=pass_all
1994 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1995 lt_cv_file_magic_cmd=/usr/bin/file
1996 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2002 # this will be overridden with pass_all, but let us keep it just in case
2003 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2007 *-32|*"-32 ") libmagic=32-bit;;
2008 *-n32|*"-n32 ") libmagic=N32;;
2009 *-64|*"-64 ") libmagic=64-bit;;
2010 *) libmagic=never-match;;
2012 # this will be overridden with pass_all, but let us keep it just in case
2013 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2016 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2017 lt_cv_deplibs_check_method=pass_all
2020 # This must be Linux ELF.
2023 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2024 lt_cv_deplibs_check_method=pass_all ;;
2026 # glibc up to 2.1.1 does not perform some relocations on ARM
2027 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2029 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2033 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2034 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2036 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2041 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2042 lt_cv_file_magic_cmd=/usr/bin/file
2043 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2046 osf3* | osf4* | osf5*)
2047 # this will be overridden with pass_all, but let us keep it just in case
2048 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2049 lt_cv_file_magic_test_file=/shlib/libc.so
2050 lt_cv_deplibs_check_method=pass_all
2054 lt_cv_deplibs_check_method=pass_all
2058 lt_cv_deplibs_check_method=pass_all
2059 lt_cv_file_magic_test_file=/lib/libc.so
2062 sysv5uw[78]* | sysv4*uw2*)
2063 lt_cv_deplibs_check_method=pass_all
2066 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2067 case $host_vendor in
2069 lt_cv_deplibs_check_method=pass_all
2072 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]'
2073 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2081 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2082 file_magic_cmd=$lt_cv_file_magic_cmd
2083 deplibs_check_method=$lt_cv_deplibs_check_method
2085 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2086 echo "configure:2087: checking for object suffix" >&5
2087 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2088 echo $ac_n "(cached) $ac_c" 1>&6
2091 echo 'int i = 1;' > conftest.$ac_ext
2092 if { (eval echo configure:2093: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2093 for ac_file in conftest.*; do
2096 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2100 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2105 echo "$ac_t""$ac_cv_objext" 1>&6
2106 OBJEXT=$ac_cv_objext
2107 ac_objext=$ac_cv_objext
2109 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2111 # Only perform the check for file, if the check method requires it
2112 case $deplibs_check_method in
2114 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2115 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2116 echo "configure:2117: checking for ${ac_tool_prefix}file" >&5
2117 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2118 echo $ac_n "(cached) $ac_c" 1>&6
2122 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2125 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2128 ac_save_MAGIC_CMD="$MAGIC_CMD"
2129 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2130 ac_dummy="/usr/bin:$PATH"
2131 for ac_dir in $ac_dummy; do
2132 test -z "$ac_dir" && ac_dir=.
2133 if test -f $ac_dir/${ac_tool_prefix}file; then
2134 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2135 if test -n "$file_magic_test_file"; then
2136 case $deplibs_check_method in
2138 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2139 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2140 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2141 egrep "$file_magic_regex" > /dev/null; then
2146 *** Warning: the command libtool uses to detect shared libraries,
2147 *** $file_magic_cmd, produces output that libtool cannot recognize.
2148 *** The result is that libtool may fail to recognize shared libraries
2149 *** as such. This will affect the creation of libtool libraries that
2150 *** depend on shared libraries, but programs linked with such libtool
2151 *** libraries will work regardless of this problem. Nevertheless, you
2152 *** may want to report the problem to your system manager and/or to
2153 *** bug-libtool@gnu.org
2163 MAGIC_CMD="$ac_save_MAGIC_CMD"
2168 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2169 if test -n "$MAGIC_CMD"; then
2170 echo "$ac_t""$MAGIC_CMD" 1>&6
2172 echo "$ac_t""no" 1>&6
2175 if test -z "$lt_cv_path_MAGIC_CMD"; then
2176 if test -n "$ac_tool_prefix"; then
2177 echo $ac_n "checking for file""... $ac_c" 1>&6
2178 echo "configure:2179: checking for file" >&5
2179 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2180 echo $ac_n "(cached) $ac_c" 1>&6
2184 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2187 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2190 ac_save_MAGIC_CMD="$MAGIC_CMD"
2191 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2192 ac_dummy="/usr/bin:$PATH"
2193 for ac_dir in $ac_dummy; do
2194 test -z "$ac_dir" && ac_dir=.
2195 if test -f $ac_dir/file; then
2196 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2197 if test -n "$file_magic_test_file"; then
2198 case $deplibs_check_method in
2200 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2201 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2202 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2203 egrep "$file_magic_regex" > /dev/null; then
2208 *** Warning: the command libtool uses to detect shared libraries,
2209 *** $file_magic_cmd, produces output that libtool cannot recognize.
2210 *** The result is that libtool may fail to recognize shared libraries
2211 *** as such. This will affect the creation of libtool libraries that
2212 *** depend on shared libraries, but programs linked with such libtool
2213 *** libraries will work regardless of this problem. Nevertheless, you
2214 *** may want to report the problem to your system manager and/or to
2215 *** bug-libtool@gnu.org
2225 MAGIC_CMD="$ac_save_MAGIC_CMD"
2230 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2231 if test -n "$MAGIC_CMD"; then
2232 echo "$ac_t""$MAGIC_CMD" 1>&6
2234 echo "$ac_t""no" 1>&6
2246 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2247 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2248 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2249 echo "configure:2250: checking for $ac_word" >&5
2250 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2251 echo $ac_n "(cached) $ac_c" 1>&6
2253 if test -n "$RANLIB"; then
2254 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2256 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2258 for ac_dir in $ac_dummy; do
2259 test -z "$ac_dir" && ac_dir=.
2260 if test -f $ac_dir/$ac_word; then
2261 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2268 RANLIB="$ac_cv_prog_RANLIB"
2269 if test -n "$RANLIB"; then
2270 echo "$ac_t""$RANLIB" 1>&6
2272 echo "$ac_t""no" 1>&6
2276 if test -z "$ac_cv_prog_RANLIB"; then
2277 if test -n "$ac_tool_prefix"; then
2278 # Extract the first word of "ranlib", so it can be a program name with args.
2279 set dummy ranlib; ac_word=$2
2280 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2281 echo "configure:2282: checking for $ac_word" >&5
2282 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2283 echo $ac_n "(cached) $ac_c" 1>&6
2285 if test -n "$RANLIB"; then
2286 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2288 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2290 for ac_dir in $ac_dummy; do
2291 test -z "$ac_dir" && ac_dir=.
2292 if test -f $ac_dir/$ac_word; then
2293 ac_cv_prog_RANLIB="ranlib"
2298 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2301 RANLIB="$ac_cv_prog_RANLIB"
2302 if test -n "$RANLIB"; then
2303 echo "$ac_t""$RANLIB" 1>&6
2305 echo "$ac_t""no" 1>&6
2313 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2314 set dummy ${ac_tool_prefix}strip; ac_word=$2
2315 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2316 echo "configure:2317: checking for $ac_word" >&5
2317 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2318 echo $ac_n "(cached) $ac_c" 1>&6
2320 if test -n "$STRIP"; then
2321 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2323 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2325 for ac_dir in $ac_dummy; do
2326 test -z "$ac_dir" && ac_dir=.
2327 if test -f $ac_dir/$ac_word; then
2328 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2335 STRIP="$ac_cv_prog_STRIP"
2336 if test -n "$STRIP"; then
2337 echo "$ac_t""$STRIP" 1>&6
2339 echo "$ac_t""no" 1>&6
2343 if test -z "$ac_cv_prog_STRIP"; then
2344 if test -n "$ac_tool_prefix"; then
2345 # Extract the first word of "strip", so it can be a program name with args.
2346 set dummy strip; ac_word=$2
2347 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2348 echo "configure:2349: checking for $ac_word" >&5
2349 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2350 echo $ac_n "(cached) $ac_c" 1>&6
2352 if test -n "$STRIP"; then
2353 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2355 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2357 for ac_dir in $ac_dummy; do
2358 test -z "$ac_dir" && ac_dir=.
2359 if test -f $ac_dir/$ac_word; then
2360 ac_cv_prog_STRIP="strip"
2365 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2368 STRIP="$ac_cv_prog_STRIP"
2369 if test -n "$STRIP"; then
2370 echo "$ac_t""$STRIP" 1>&6
2372 echo "$ac_t""no" 1>&6
2381 # Check for any special flags to pass to ltconfig.
2382 libtool_flags="--cache-file=$cache_file"
2383 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2384 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2385 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2386 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2387 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2388 libtool_flags="$libtool_flags --enable-dlopen"
2390 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2391 if test "${enable_libtool_lock+set}" = set; then
2392 enableval="$enable_libtool_lock"
2396 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2397 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2399 # Check whether --with-pic or --without-pic was given.
2400 if test "${with_pic+set}" = set; then
2407 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2408 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2410 # Some flags need to be propagated to the compiler or linker for good
2414 # Find out which ABI we are using.
2415 echo '#line 2416 "configure"' > conftest.$ac_ext
2416 if { (eval echo configure:2417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2417 case `/usr/bin/file conftest.$ac_objext` in
2433 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2434 SAVE_CFLAGS="$CFLAGS"
2435 CFLAGS="$CFLAGS -belf"
2436 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2437 echo "configure:2438: checking whether the C compiler needs -belf" >&5
2438 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2439 echo $ac_n "(cached) $ac_c" 1>&6
2443 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2444 ac_cpp='$CPP $CPPFLAGS'
2445 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2446 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2447 cross_compiling=$ac_cv_prog_cc_cross
2449 cat > conftest.$ac_ext <<EOF
2450 #line 2451 "configure"
2451 #include "confdefs.h"
2457 if { (eval echo configure:2458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2459 lt_cv_cc_needs_belf=yes
2461 echo "configure: failed program was:" >&5
2462 cat conftest.$ac_ext >&5
2464 lt_cv_cc_needs_belf=no
2468 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2469 ac_cpp='$CPP $CPPFLAGS'
2470 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2471 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2472 cross_compiling=$ac_cv_prog_cc_cross
2476 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2477 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2478 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2479 CFLAGS="$SAVE_CFLAGS"
2486 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2487 echo "configure:2488: checking how to run the C++ preprocessor" >&5
2488 if test -z "$CXXCPP"; then
2489 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2490 echo $ac_n "(cached) $ac_c" 1>&6
2493 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2494 ac_cpp='$CXXCPP $CPPFLAGS'
2495 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2496 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2497 cross_compiling=$ac_cv_prog_cxx_cross
2498 CXXCPP="${CXX-g++} -E"
2499 cat > conftest.$ac_ext <<EOF
2500 #line 2501 "configure"
2501 #include "confdefs.h"
2504 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2505 { (eval echo configure:2506: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2506 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2507 if test -z "$ac_err"; then
2511 echo "configure: failed program was:" >&5
2512 cat conftest.$ac_ext >&5
2517 ac_cv_prog_CXXCPP="$CXXCPP"
2519 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2520 ac_cpp='$CPP $CPPFLAGS'
2521 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2522 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2523 cross_compiling=$ac_cv_prog_cc_cross
2526 CXXCPP="$ac_cv_prog_CXXCPP"
2527 echo "$ac_t""$CXXCPP" 1>&6
2530 # Save cache, so that ltconfig can load it
2531 cat > confcache <<\EOF
2532 # This file is a shell script that caches the results of configure
2533 # tests run on this system so they can be shared between configure
2534 # scripts and configure runs. It is not useful on other systems.
2535 # If it contains results you don't want to keep, you may remove or edit it.
2537 # By default, configure uses ./config.cache as the cache file,
2538 # creating it if it does not exist already. You can give configure
2539 # the --cache-file=FILE option to use a different cache file; that is
2540 # what configure does when it calls configure scripts in
2541 # subdirectories, so they share the cache.
2542 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2543 # config.status only pays attention to the cache file if you give it the
2544 # --recheck option to rerun configure.
2547 # The following way of writing the cache mishandles newlines in values,
2548 # but we know of no workaround that is simple, portable, and efficient.
2549 # So, don't put newlines in cache variables' values.
2550 # Ultrix sh set writes to stderr and can't be redirected directly,
2551 # and sets the high bit in the cache file unless we assign to the vars.
2553 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2555 # `set' does not quote correctly, so add quotes (double-quote substitution
2556 # turns \\\\ into \\, and sed turns \\ into \).
2558 -e "s/'/'\\\\''/g" \
2559 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2562 # `set' quotes correctly as required by POSIX, so do not add quotes.
2563 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2566 if cmp -s $cache_file confcache; then
2569 if test -w $cache_file; then
2570 echo "updating cache $cache_file"
2571 cat confcache > $cache_file
2573 echo "not updating unwritable cache $cache_file"
2579 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2580 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2581 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2582 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2583 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2584 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2585 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2586 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2587 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2588 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2590 # Reload cache, that may have been modified by ltconfig
2591 if test -r "$cache_file"; then
2592 echo "loading cache $cache_file"
2595 echo "creating cache $cache_file"
2600 # This can be used to rebuild libtool when needed
2601 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2603 # Always use our own libtool.
2604 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2606 # Redirect the config.log output again, so that the ltconfig log is not
2607 # clobbered by the next message.
2608 exec 5>>./config.log
2612 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2614 lt_save_CFLAGS="$CFLAGS"
2615 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2616 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2617 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2618 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2619 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2620 deplibs_check_method="$deplibs_check_method" \
2621 file_magic_cmd="$file_magic_cmd" \
2622 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2623 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2624 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2626 CFLAGS="$lt_save_CFLAGS"
2628 # Redirect the config.log output again, so that the ltconfig log is not
2629 # clobbered by the next message.
2630 exec 5>>./config.log
2640 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
2649 if test -d $srcdir/testsuite; then
2651 TESTSUBDIR_FALSE='#'
2657 # Check whether --enable-fast-character or --disable-fast-character was given.
2658 if test "${enable_fast_character+set}" = set; then
2659 enableval="$enable_fast_character"
2663 cat >> confdefs.h <<\EOF
2664 #define COMPACT_CHARACTER 1
2670 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
2671 if test "${enable_getenv_properties+set}" = set; then
2672 enableval="$enable_getenv_properties"
2677 if test -z "$enable_getenv_properties"; then
2678 enable_getenv_properties=${enable_getenv_properties_default-yes}
2680 if test "$enable_getenv_properties" = no; then
2681 cat >> confdefs.h <<\EOF
2682 #define DISABLE_GETENV_PROPERTIES 1
2687 if test -z "$enable_main_args"; then
2688 enable_main_args=${enable_main_args_default-yes}
2690 if test "$enable_main_args" = no; then
2691 cat >> confdefs.h <<\EOF
2692 #define DISABLE_MAIN_ARGS 1
2698 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
2699 if test "${enable_hash_synchronization+set}" = set; then
2700 enableval="$enable_hash_synchronization"
2705 if test -z "$enable_hash_synchronization"; then
2706 enable_hash_synchronization=$enable_hash_synchronization_default
2712 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2713 if test "${enable_libgcj_debug+set}" = set; then
2714 enableval="$enable_libgcj_debug"
2715 if test "$enable_libgcj_debug" = yes; then
2716 cat >> confdefs.h <<\EOF
2725 # Check whether --enable-interpreter or --disable-interpreter was given.
2726 if test "${enable_interpreter+set}" = set; then
2727 enableval="$enable_interpreter"
2728 if test "$enable_interpreter" = yes; then
2729 # This can also be set in configure.host.
2730 libgcj_interpreter=yes
2731 elif test "$enable_interpreter" = no; then
2732 libgcj_interpreter=no
2737 if test "$libgcj_interpreter" = yes; then
2738 cat >> confdefs.h <<\EOF
2739 #define INTERPRETER 1
2744 echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
2745 echo "configure:2746: checking for exception model to use" >&5
2748 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2749 ac_cpp='$CXXCPP $CPPFLAGS'
2750 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2751 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2752 cross_compiling=$ac_cv_prog_cxx_cross
2754 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
2755 if test "${enable_sjlj_exceptions+set}" = set; then
2756 enableval="$enable_sjlj_exceptions"
2759 cat > conftest.$ac_ext << EOF
2760 #line 2761 "configure"
2769 old_CXXFLAGS="$CXXFLAGS"
2771 if { (eval echo configure:2772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2772 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
2773 enable_sjlj_exceptions=yes
2774 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
2775 enable_sjlj_exceptions=no
2778 CXXFLAGS="$old_CXXFLAGS"
2782 if test x$enable_sjlj_exceptions = xyes; then
2783 cat >> confdefs.h <<\EOF
2784 #define SJLJ_EXCEPTIONS 1
2787 ac_exception_model_name=sjlj
2788 elif test x$enable_sjlj_exceptions = xno; then
2789 ac_exception_model_name="call frame"
2791 { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
2794 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2795 ac_cpp='$CPP $CPPFLAGS'
2796 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2797 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2798 cross_compiling=$ac_cv_prog_cc_cross
2800 echo "$ac_t""$ac_exception_model_name" 1>&6
2802 # Check whether --enable-java-net or --disable-java-net was given.
2803 if test "${enable_java_net+set}" = set; then
2804 enableval="$enable_java_net"
2809 if test -z "$enable_java_net"; then
2810 enable_java_net=${enable_java_net_default-yes}
2812 if test "$enable_java_net" = no; then
2813 cat >> confdefs.h <<\EOF
2814 #define DISABLE_JAVA_NET 1
2819 # Check whether --with-libffi or --without-libffi was given.
2820 if test "${with_libffi+set}" = set; then
2821 withval="$with_libffi"
2824 with_libffi=${with_libffi_default-yes}
2830 if test "$with_libffi" != no; then
2831 cat >> confdefs.h <<\EOF
2832 #define USE_LIBFFI 1
2835 LIBFFI=../libffi/libfficonvenience.la
2836 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I$(MULTIBUILDTOP)../libffi/include'
2841 # Check whether --enable-jvmpi or --disable-jvmpi was given.
2842 if test "${enable_jvmpi+set}" = set; then
2843 enableval="$enable_jvmpi"
2848 if test "$enable_jvmpi" != no; then
2849 cat >> confdefs.h <<\EOF
2850 #define ENABLE_JVMPI 1
2855 TARGET_ECOS=${PROCESS-"no"}
2856 # Check whether --with-ecos or --without-ecos was given.
2857 if test "${with_ecos+set}" = set; then
2858 withval="$with_ecos"
2859 TARGET_ECOS="$with_ecos"
2865 case "$TARGET_ECOS" in
2869 PLATFORMOBJS=win32.lo
2874 PLATFORMOBJS=posix.lo
2881 cat >> confdefs.h <<\EOF
2885 PLATFORMOBJS=posix.lo
2892 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2893 echo "configure:2894: checking how to run the C preprocessor" >&5
2894 # On Suns, sometimes $CPP names a directory.
2895 if test -n "$CPP" && test -d "$CPP"; then
2898 if test -z "$CPP"; then
2899 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2900 echo $ac_n "(cached) $ac_c" 1>&6
2902 # This must be in double quotes, not single quotes, because CPP may get
2903 # substituted into the Makefile and "${CC-cc}" will confuse make.
2905 # On the NeXT, cc -E runs the code through the compiler's parser,
2906 # not just through cpp.
2907 cat > conftest.$ac_ext <<EOF
2908 #line 2909 "configure"
2909 #include "confdefs.h"
2913 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2914 { (eval echo configure:2915: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2915 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2916 if test -z "$ac_err"; then
2920 echo "configure: failed program was:" >&5
2921 cat conftest.$ac_ext >&5
2923 CPP="${CC-cc} -E -traditional-cpp"
2924 cat > conftest.$ac_ext <<EOF
2925 #line 2926 "configure"
2926 #include "confdefs.h"
2930 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2931 { (eval echo configure:2932: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2932 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2933 if test -z "$ac_err"; then
2937 echo "configure: failed program was:" >&5
2938 cat conftest.$ac_ext >&5
2940 CPP="${CC-cc} -nologo -E"
2941 cat > conftest.$ac_ext <<EOF
2942 #line 2943 "configure"
2943 #include "confdefs.h"
2947 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2948 { (eval echo configure:2949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2949 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2950 if test -z "$ac_err"; then
2954 echo "configure: failed program was:" >&5
2955 cat conftest.$ac_ext >&5
2964 ac_cv_prog_CPP="$CPP"
2966 CPP="$ac_cv_prog_CPP"
2968 ac_cv_prog_CPP="$CPP"
2970 echo "$ac_t""$CPP" 1>&6
2972 cat > conftest.$ac_ext <<EOF
2973 #line 2974 "configure"
2974 #include "confdefs.h"
2977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2978 egrep "uint32_t" >/dev/null 2>&1; then
2980 cat >> confdefs.h <<\EOF
2981 #define HAVE_INT32_DEFINED 1
2987 cat > conftest.$ac_ext <<EOF
2988 #line 2989 "configure"
2989 #include "confdefs.h"
2990 #include <inttypes.h>
2992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2993 egrep "uint32_t" >/dev/null 2>&1; then
2995 cat >> confdefs.h <<\EOF
2996 #define HAVE_INT32_DEFINED 1
3002 cat > conftest.$ac_ext <<EOF
3003 #line 3004 "configure"
3004 #include "confdefs.h"
3005 #include <sys/types.h>
3007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3008 egrep "u_int32_t" >/dev/null 2>&1; then
3010 cat >> confdefs.h <<\EOF
3011 #define HAVE_BSD_INT32_DEFINED 1
3017 cat > conftest.$ac_ext <<EOF
3018 #line 3019 "configure"
3019 #include "confdefs.h"
3020 #include <sys/config.h>
3022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3023 egrep "u_int32_t" >/dev/null 2>&1; then
3025 cat >> confdefs.h <<\EOF
3026 #define HAVE_BSD_INT32_DEFINED 1
3034 cat > conftest.$ac_ext <<EOF
3035 #line 3036 "configure"
3036 #include "confdefs.h"
3039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3040 egrep "mktime" >/dev/null 2>&1; then
3042 cat >> confdefs.h <<\EOF
3043 #define HAVE_MKTIME 1
3049 cat > conftest.$ac_ext <<EOF
3050 #line 3051 "configure"
3051 #include "confdefs.h"
3054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3055 egrep "localtime" >/dev/null 2>&1; then
3057 cat >> confdefs.h <<\EOF
3058 #define HAVE_LOCALTIME 1
3065 test -d java || mkdir java
3066 test -d java/io || mkdir java/io
3067 test -d gnu || mkdir gnu
3070 test -d java/lang || mkdir java/lang
3076 SYSTEMSPEC="-lgdi32 -lwsock32 -lws2_32"
3084 LIBGCJTESTSPEC="-L`pwd`/.libs -rpath `pwd`/.libs"
3087 # Check whether --with-system-zlib or --without-system-zlib was given.
3088 if test "${with_system_zlib+set}" = set; then
3089 withval="$with_system_zlib"
3100 echo $ac_n "checking for garbage collector to use""... $ac_c" 1>&6
3101 echo "configure:3102: checking for garbage collector to use" >&5
3102 # Check whether --enable-java-gc or --disable-java-gc was given.
3103 if test "${enable_java_gc+set}" = set; then
3104 enableval="$enable_java_gc"
3120 echo "$ac_t""boehm" 1>&6
3121 GCDEPS='$(top_builddir)/../boehm-gc/libgcjgc.la'
3122 # We include the path to the boehm-gc build directory.
3123 # See Makefile.am to understand why.
3124 GCLIBS="$GCDEPS -L\$(here)/../boehm-gc/$libsubdir"
3125 GCINCS='-I$(top_srcdir)/../boehm-gc/include'
3127 JC1GCSPEC='-fuse-boehm-gc'
3128 GCTESTSPEC="-L`pwd`/../boehm-gc/.libs -rpath `pwd`/../boehm-gc/.libs"
3129 GCINCS="$GCINCS `cat ../boehm-gc/boehm-cflags`"
3132 cat >> confdefs.h <<\EOF
3133 #define HAVE_BOEHM_GC 1
3138 echo "$ac_t""none" 1>&6
3143 { echo "configure: error: unrecognized collector \"$GC\"" 1>&2; exit 1; }
3156 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3157 echo "configure:3158: checking for thread model used by GCC" >&5
3158 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3159 echo "$ac_t""$THREADS" 1>&6
3169 cat >> confdefs.h <<\EOF
3170 #define LINUX_THREADS 1
3178 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
3179 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
3182 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
3196 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
3201 # Before FreeBSD 5, it didn't have -lpthread (or any library which
3202 # merely adds pthread_* functions) but it does have a -pthread switch
3203 # which is required at link-time to select -lc_r *instead* of -lc.
3205 # Don't set THREADSPEC here as might be expected since -pthread is
3206 # not processed when found within a spec file, it must come from
3207 # the command line. For now, the user must provide the -pthread
3208 # switch to link code compiled with gcj. In future, consider adding
3209 # support for weak references to pthread_* functions ala gthr.h API.
3210 THREADSPEC='%{!pthread: %eUnder this configuration, the user must provide -pthread when linking.}'
3213 # FreeBSD 5 implements a model much closer to other modern UNIX
3214 # which support threads. However, it still does not support
3220 THREADLIBS=-lpthread
3221 THREADSPEC=-lpthread
3224 THREADOBJS=posix-threads.lo
3225 THREADH=posix-threads.h
3226 # MIT pthreads doesn't seem to have the mutexattr functions.
3227 # But for now we don't check for it. We just assume you aren't
3228 # using MIT pthreads.
3229 cat >> confdefs.h <<\EOF
3230 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3234 # If we're using the Boehm GC, then we happen to know that it
3235 # defines _REENTRANT, so we don't bother. Eww.
3236 if test "$GC" != boehm; then
3237 cat >> confdefs.h <<\EOF
3238 #define _REENTRANT 1
3242 cat >> confdefs.h <<\EOF
3243 #define _POSIX_PTHREAD_SEMANTICS 1
3249 THREADOBJS=win32-threads.lo
3250 THREADH=win32-threads.h
3254 THREADOBJS=no-threads.lo
3255 THREADH=no-threads.h
3266 # Hash synchronization is only useful with posix threads right now.
3267 if test "$enable_hash_synchronization" = yes && test "$THREADS" = "posix"; then
3268 HASH_SYNC_SPEC=-fhash-synchronization
3269 cat >> confdefs.h <<\EOF
3270 #define JV_HASH_SYNCHRONIZATION 1
3279 if test "$GCC" = yes; then
3291 # We're in the tree with gcc, and need to include some of its headers.
3292 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
3294 if test -n "${with_cross_host}"; then
3295 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
3296 # may not work correctly, because the compiler may not be able to
3299 # We assume newlib. This lets us hard-code the functions we know
3301 cat >> confdefs.h <<\EOF
3302 #define HAVE_MEMMOVE 1
3305 cat >> confdefs.h <<\EOF
3306 #define HAVE_MEMCPY 1
3309 cat >> confdefs.h <<\EOF
3310 #define HAVE_STRERROR 1
3313 cat >> confdefs.h <<\EOF
3314 #define HAVE_GMTIME_R 1
3317 cat >> confdefs.h <<\EOF
3318 #define HAVE_LOCALTIME_R 1
3321 cat >> confdefs.h <<\EOF
3322 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3325 cat >> confdefs.h <<\EOF
3326 #define HAVE_ALLOCA 1
3330 cat >> confdefs.h <<\EOF
3336 ZLIBTESTSPEC="-L`pwd`/../zlib/.libs -rpath `pwd`/../zlib/.libs"
3338 # If Canadian cross, then don't pick up tools from the build
3340 if test x"$build" != x"$with_cross_host" && x"$build" != x"$target"; then
3343 GCJ="${target_alias}-gcj"
3347 for ac_func in strerror ioctl select fstat open fsync sleep opendir
3349 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3350 echo "configure:3351: checking for $ac_func" >&5
3351 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3352 echo $ac_n "(cached) $ac_c" 1>&6
3354 cat > conftest.$ac_ext <<EOF
3355 #line 3356 "configure"
3356 #include "confdefs.h"
3357 /* System header to define __stub macros and hopefully few prototypes,
3358 which can conflict with char $ac_func(); below. */
3360 /* Override any gcc2 internal prototype to avoid an error. */
3361 /* We use char because int might match the return type of a gcc2
3362 builtin and then its argument prototype would still apply. */
3367 /* The GNU C library defines this for functions which it implements
3368 to always fail with ENOSYS. Some functions are actually named
3369 something starting with __ and the normal name is an alias. */
3370 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3378 if { (eval echo configure:3379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3380 eval "ac_cv_func_$ac_func=yes"
3382 echo "configure: failed program was:" >&5
3383 cat conftest.$ac_ext >&5
3385 eval "ac_cv_func_$ac_func=no"
3390 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3391 echo "$ac_t""yes" 1>&6
3392 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3393 cat >> confdefs.h <<EOF
3394 #define $ac_tr_func 1
3398 echo "$ac_t""no" 1>&6
3402 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
3404 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3405 echo "configure:3406: checking for $ac_func" >&5
3406 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3407 echo $ac_n "(cached) $ac_c" 1>&6
3409 cat > conftest.$ac_ext <<EOF
3410 #line 3411 "configure"
3411 #include "confdefs.h"
3412 /* System header to define __stub macros and hopefully few prototypes,
3413 which can conflict with char $ac_func(); below. */
3415 /* Override any gcc2 internal prototype to avoid an error. */
3416 /* We use char because int might match the return type of a gcc2
3417 builtin and then its argument prototype would still apply. */
3422 /* The GNU C library defines this for functions which it implements
3423 to always fail with ENOSYS. Some functions are actually named
3424 something starting with __ and the normal name is an alias. */
3425 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3433 if { (eval echo configure:3434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3435 eval "ac_cv_func_$ac_func=yes"
3437 echo "configure: failed program was:" >&5
3438 cat conftest.$ac_ext >&5
3440 eval "ac_cv_func_$ac_func=no"
3445 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3446 echo "$ac_t""yes" 1>&6
3447 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3448 cat >> confdefs.h <<EOF
3449 #define $ac_tr_func 1
3453 echo "$ac_t""no" 1>&6
3457 for ac_func in access stat mkdir rename rmdir unlink realpath utime chmod
3459 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3460 echo "configure:3461: checking for $ac_func" >&5
3461 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3462 echo $ac_n "(cached) $ac_c" 1>&6
3464 cat > conftest.$ac_ext <<EOF
3465 #line 3466 "configure"
3466 #include "confdefs.h"
3467 /* System header to define __stub macros and hopefully few prototypes,
3468 which can conflict with char $ac_func(); below. */
3470 /* Override any gcc2 internal prototype to avoid an error. */
3471 /* We use char because int might match the return type of a gcc2
3472 builtin and then its argument prototype would still apply. */
3477 /* The GNU C library defines this for functions which it implements
3478 to always fail with ENOSYS. Some functions are actually named
3479 something starting with __ and the normal name is an alias. */
3480 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3488 if { (eval echo configure:3489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3490 eval "ac_cv_func_$ac_func=yes"
3492 echo "configure: failed program was:" >&5
3493 cat conftest.$ac_ext >&5
3495 eval "ac_cv_func_$ac_func=no"
3500 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3501 echo "$ac_t""yes" 1>&6
3502 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3503 cat >> confdefs.h <<EOF
3504 #define $ac_tr_func 1
3508 echo "$ac_t""no" 1>&6
3512 for ac_func in nl_langinfo setlocale
3514 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3515 echo "configure:3516: checking for $ac_func" >&5
3516 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3517 echo $ac_n "(cached) $ac_c" 1>&6
3519 cat > conftest.$ac_ext <<EOF
3520 #line 3521 "configure"
3521 #include "confdefs.h"
3522 /* System header to define __stub macros and hopefully few prototypes,
3523 which can conflict with char $ac_func(); below. */
3525 /* Override any gcc2 internal prototype to avoid an error. */
3526 /* We use char because int might match the return type of a gcc2
3527 builtin and then its argument prototype would still apply. */
3532 /* The GNU C library defines this for functions which it implements
3533 to always fail with ENOSYS. Some functions are actually named
3534 something starting with __ and the normal name is an alias. */
3535 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3543 if { (eval echo configure:3544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3545 eval "ac_cv_func_$ac_func=yes"
3547 echo "configure: failed program was:" >&5
3548 cat conftest.$ac_ext >&5
3550 eval "ac_cv_func_$ac_func=no"
3555 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3556 echo "$ac_t""yes" 1>&6
3557 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3558 cat >> confdefs.h <<EOF
3559 #define $ac_tr_func 1
3563 echo "$ac_t""no" 1>&6
3567 for ac_func in inet_aton inet_addr
3569 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3570 echo "configure:3571: checking for $ac_func" >&5
3571 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3572 echo $ac_n "(cached) $ac_c" 1>&6
3574 cat > conftest.$ac_ext <<EOF
3575 #line 3576 "configure"
3576 #include "confdefs.h"
3577 /* System header to define __stub macros and hopefully few prototypes,
3578 which can conflict with char $ac_func(); below. */
3580 /* Override any gcc2 internal prototype to avoid an error. */
3581 /* We use char because int might match the return type of a gcc2
3582 builtin and then its argument prototype would still apply. */
3587 /* The GNU C library defines this for functions which it implements
3588 to always fail with ENOSYS. Some functions are actually named
3589 something starting with __ and the normal name is an alias. */
3590 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3598 if { (eval echo configure:3599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3600 eval "ac_cv_func_$ac_func=yes"
3602 echo "configure: failed program was:" >&5
3603 cat conftest.$ac_ext >&5
3605 eval "ac_cv_func_$ac_func=no"
3610 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3611 echo "$ac_t""yes" 1>&6
3612 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3613 cat >> confdefs.h <<EOF
3614 #define $ac_tr_func 1
3618 echo "$ac_t""no" 1>&6
3622 for ac_func in inet_pton uname inet_ntoa
3624 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3625 echo "configure:3626: checking for $ac_func" >&5
3626 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3627 echo $ac_n "(cached) $ac_c" 1>&6
3629 cat > conftest.$ac_ext <<EOF
3630 #line 3631 "configure"
3631 #include "confdefs.h"
3632 /* System header to define __stub macros and hopefully few prototypes,
3633 which can conflict with char $ac_func(); below. */
3635 /* Override any gcc2 internal prototype to avoid an error. */
3636 /* We use char because int might match the return type of a gcc2
3637 builtin and then its argument prototype would still apply. */
3642 /* The GNU C library defines this for functions which it implements
3643 to always fail with ENOSYS. Some functions are actually named
3644 something starting with __ and the normal name is an alias. */
3645 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3653 if { (eval echo configure:3654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3655 eval "ac_cv_func_$ac_func=yes"
3657 echo "configure: failed program was:" >&5
3658 cat conftest.$ac_ext >&5
3660 eval "ac_cv_func_$ac_func=no"
3665 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3666 echo "$ac_t""yes" 1>&6
3667 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3668 cat >> confdefs.h <<EOF
3669 #define $ac_tr_func 1
3673 echo "$ac_t""no" 1>&6
3677 for ac_func in backtrace fork execvp pipe sigaction
3679 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3680 echo "configure:3681: checking for $ac_func" >&5
3681 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3682 echo $ac_n "(cached) $ac_c" 1>&6
3684 cat > conftest.$ac_ext <<EOF
3685 #line 3686 "configure"
3686 #include "confdefs.h"
3687 /* System header to define __stub macros and hopefully few prototypes,
3688 which can conflict with char $ac_func(); below. */
3690 /* Override any gcc2 internal prototype to avoid an error. */
3691 /* We use char because int might match the return type of a gcc2
3692 builtin and then its argument prototype would still apply. */
3697 /* The GNU C library defines this for functions which it implements
3698 to always fail with ENOSYS. Some functions are actually named
3699 something starting with __ and the normal name is an alias. */
3700 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3708 if { (eval echo configure:3709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3710 eval "ac_cv_func_$ac_func=yes"
3712 echo "configure: failed program was:" >&5
3713 cat conftest.$ac_ext >&5
3715 eval "ac_cv_func_$ac_func=no"
3720 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3721 echo "$ac_t""yes" 1>&6
3722 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3723 cat >> confdefs.h <<EOF
3724 #define $ac_tr_func 1
3728 echo "$ac_t""no" 1>&6
3732 for ac_hdr in execinfo.h unistd.h dlfcn.h
3734 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3735 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3736 echo "configure:3737: checking for $ac_hdr" >&5
3737 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3738 echo $ac_n "(cached) $ac_c" 1>&6
3740 cat > conftest.$ac_ext <<EOF
3741 #line 3742 "configure"
3742 #include "confdefs.h"
3745 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3746 { (eval echo configure:3747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3747 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3748 if test -z "$ac_err"; then
3750 eval "ac_cv_header_$ac_safe=yes"
3753 echo "configure: failed program was:" >&5
3754 cat conftest.$ac_ext >&5
3756 eval "ac_cv_header_$ac_safe=no"
3760 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3761 echo "$ac_t""yes" 1>&6
3762 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3763 cat >> confdefs.h <<EOF
3764 #define $ac_tr_hdr 1
3768 echo "$ac_t""no" 1>&6
3772 echo $ac_n "checking for dladdr in -ldl""... $ac_c" 1>&6
3773 echo "configure:3774: checking for dladdr in -ldl" >&5
3774 ac_lib_var=`echo dl'_'dladdr | sed 'y%./+-%__p_%'`
3775 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3776 echo $ac_n "(cached) $ac_c" 1>&6
3778 ac_save_LIBS="$LIBS"
3780 cat > conftest.$ac_ext <<EOF
3781 #line 3782 "configure"
3782 #include "confdefs.h"
3783 /* Override any gcc2 internal prototype to avoid an error. */
3784 /* We use char because int might match the return type of a gcc2
3785 builtin and then its argument prototype would still apply. */
3792 if { (eval echo configure:3793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3794 eval "ac_cv_lib_$ac_lib_var=yes"
3796 echo "configure: failed program was:" >&5
3797 cat conftest.$ac_ext >&5
3799 eval "ac_cv_lib_$ac_lib_var=no"
3802 LIBS="$ac_save_LIBS"
3805 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3806 echo "$ac_t""yes" 1>&6
3808 cat >> confdefs.h <<\EOF
3809 #define HAVE_DLADDR 1
3813 echo "$ac_t""no" 1>&6
3816 for ac_file in /proc/self/exe
3819 ac_safe=`echo "$ac_file" | sed 'y%./+-%__p_%'`
3820 echo $ac_n "checking for $ac_file""... $ac_c" 1>&6
3821 echo "configure:3822: checking for $ac_file" >&5
3822 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
3823 echo $ac_n "(cached) $ac_c" 1>&6
3825 if test "$cross_compiling" = yes; then
3826 { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
3828 if test -r $ac_file; then
3829 eval "ac_cv_file_$ac_safe=yes"
3831 eval "ac_cv_file_$ac_safe=no"
3835 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
3836 echo "$ac_t""yes" 1>&6
3837 ac_tr_file=HAVE_`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3838 cat >> confdefs.h <<EOF
3839 #define $ac_tr_file 1
3842 cat >> confdefs.h <<\EOF
3843 #define HAVE_PROC_SELF_EXE 1
3847 echo "$ac_t""no" 1>&6
3855 am_cv_lib_iconv_ldpath=
3856 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
3857 if test "${with_libiconv_prefix+set}" = set; then
3858 withval="$with_libiconv_prefix"
3860 for dir in `echo "$withval" | tr : ' '`; do
3861 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
3862 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
3868 echo $ac_n "checking for iconv""... $ac_c" 1>&6
3869 echo "configure:3870: checking for iconv" >&5
3870 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
3871 echo $ac_n "(cached) $ac_c" 1>&6
3874 am_cv_func_iconv="no, consider installing GNU libiconv"
3876 cat > conftest.$ac_ext <<EOF
3877 #line 3878 "configure"
3878 #include "confdefs.h"
3882 iconv_t cd = iconv_open("","");
3883 iconv(cd,NULL,NULL,NULL,NULL);
3887 if { (eval echo configure:3888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3889 am_cv_func_iconv=yes
3891 echo "configure: failed program was:" >&5
3892 cat conftest.$ac_ext >&5
3895 if test "$am_cv_func_iconv" != yes; then
3896 am_save_LIBS="$LIBS"
3897 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
3898 cat > conftest.$ac_ext <<EOF
3899 #line 3900 "configure"
3900 #include "confdefs.h"
3904 iconv_t cd = iconv_open("","");
3905 iconv(cd,NULL,NULL,NULL,NULL);
3909 if { (eval echo configure:3910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3912 am_cv_func_iconv=yes
3914 echo "configure: failed program was:" >&5
3915 cat conftest.$ac_ext >&5
3918 LIBS="$am_save_LIBS"
3923 echo "$ac_t""$am_cv_func_iconv" 1>&6
3924 if test "$am_cv_func_iconv" = yes; then
3925 cat >> confdefs.h <<\EOF
3926 #define HAVE_ICONV 1
3929 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
3930 echo "configure:3931: checking for iconv declaration" >&5
3931 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
3932 echo $ac_n "(cached) $ac_c" 1>&6
3935 cat > conftest.$ac_ext <<EOF
3936 #line 3937 "configure"
3937 #include "confdefs.h"
3945 #if defined(__STDC__) || defined(__cplusplus)
3946 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
3955 if { (eval echo configure:3956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3957 am_cv_proto_iconv_arg1=""
3959 echo "configure: failed program was:" >&5
3960 cat conftest.$ac_ext >&5
3962 am_cv_proto_iconv_arg1="const"
3965 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);"
3968 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
3969 echo "$ac_t""${ac_t:-
3970 }$am_cv_proto_iconv" 1>&6
3971 cat >> confdefs.h <<EOF
3972 #define ICONV_CONST $am_cv_proto_iconv_arg1
3977 if test "$am_cv_lib_iconv" = yes; then
3978 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
3982 if test $ac_cv_header_locale_h = yes; then
3983 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3984 echo "configure:3985: checking for LC_MESSAGES" >&5
3985 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3986 echo $ac_n "(cached) $ac_c" 1>&6
3988 cat > conftest.$ac_ext <<EOF
3989 #line 3990 "configure"
3990 #include "confdefs.h"
3996 if { (eval echo configure:3997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3998 am_cv_val_LC_MESSAGES=yes
4000 echo "configure: failed program was:" >&5
4001 cat conftest.$ac_ext >&5
4003 am_cv_val_LC_MESSAGES=no
4008 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
4009 if test $am_cv_val_LC_MESSAGES = yes; then
4010 cat >> confdefs.h <<\EOF
4011 #define HAVE_LC_MESSAGES 1
4016 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4017 echo "configure:4018: checking whether struct tm is in sys/time.h or time.h" >&5
4018 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
4019 echo $ac_n "(cached) $ac_c" 1>&6
4021 cat > conftest.$ac_ext <<EOF
4022 #line 4023 "configure"
4023 #include "confdefs.h"
4024 #include <sys/types.h>
4027 struct tm *tp; tp->tm_sec;
4030 if { (eval echo configure:4031: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4032 ac_cv_struct_tm=time.h
4034 echo "configure: failed program was:" >&5
4035 cat conftest.$ac_ext >&5
4037 ac_cv_struct_tm=sys/time.h
4042 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4043 if test $ac_cv_struct_tm = sys/time.h; then
4044 cat >> confdefs.h <<\EOF
4045 #define TM_IN_SYS_TIME 1
4050 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4051 echo "configure:4052: checking for tm_zone in struct tm" >&5
4052 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
4053 echo $ac_n "(cached) $ac_c" 1>&6
4055 cat > conftest.$ac_ext <<EOF
4056 #line 4057 "configure"
4057 #include "confdefs.h"
4058 #include <sys/types.h>
4059 #include <$ac_cv_struct_tm>
4061 struct tm tm; tm.tm_zone;
4064 if { (eval echo configure:4065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4066 ac_cv_struct_tm_zone=yes
4068 echo "configure: failed program was:" >&5
4069 cat conftest.$ac_ext >&5
4071 ac_cv_struct_tm_zone=no
4076 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4077 if test "$ac_cv_struct_tm_zone" = yes; then
4078 cat >> confdefs.h <<\EOF
4079 #define HAVE_TM_ZONE 1
4083 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4084 echo "configure:4085: checking for tzname" >&5
4085 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
4086 echo $ac_n "(cached) $ac_c" 1>&6
4088 cat > conftest.$ac_ext <<EOF
4089 #line 4090 "configure"
4090 #include "confdefs.h"
4092 #ifndef tzname /* For SGI. */
4093 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4099 if { (eval echo configure:4100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4101 ac_cv_var_tzname=yes
4103 echo "configure: failed program was:" >&5
4104 cat conftest.$ac_ext >&5
4111 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4112 if test $ac_cv_var_tzname = yes; then
4113 cat >> confdefs.h <<\EOF
4114 #define HAVE_TZNAME 1
4121 for ac_func in gethostbyname_r
4123 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4124 echo "configure:4125: checking for $ac_func" >&5
4125 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4126 echo $ac_n "(cached) $ac_c" 1>&6
4128 cat > conftest.$ac_ext <<EOF
4129 #line 4130 "configure"
4130 #include "confdefs.h"
4131 /* System header to define __stub macros and hopefully few prototypes,
4132 which can conflict with char $ac_func(); below. */
4134 /* Override any gcc2 internal prototype to avoid an error. */
4135 /* We use char because int might match the return type of a gcc2
4136 builtin and then its argument prototype would still apply. */
4141 /* The GNU C library defines this for functions which it implements
4142 to always fail with ENOSYS. Some functions are actually named
4143 something starting with __ and the normal name is an alias. */
4144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4152 if { (eval echo configure:4153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4154 eval "ac_cv_func_$ac_func=yes"
4156 echo "configure: failed program was:" >&5
4157 cat conftest.$ac_ext >&5
4159 eval "ac_cv_func_$ac_func=no"
4164 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4165 echo "$ac_t""yes" 1>&6
4166 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4167 cat >> confdefs.h <<EOF
4168 #define $ac_tr_func 1
4171 cat >> confdefs.h <<\EOF
4172 #define HAVE_GETHOSTBYNAME_R 1
4175 # There are two different kinds of gethostbyname_r.
4176 # We look for the one that returns `int'.
4177 # Hopefully this check is robust enough.
4178 cat > conftest.$ac_ext <<EOF
4179 #line 4180 "configure"
4180 #include "confdefs.h"
4183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4184 egrep "int.*gethostbyname_r" >/dev/null 2>&1; then
4187 cat >> confdefs.h <<\EOF
4188 #define GETHOSTBYNAME_R_RETURNS_INT 1
4196 *" -D_REENTRANT "*) ;;
4198 echo $ac_n "checking whether gethostbyname_r declaration requires -D_REENTRANT""... $ac_c" 1>&6
4199 echo "configure:4200: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
4200 if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
4201 echo $ac_n "(cached) $ac_c" 1>&6
4205 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4206 ac_cpp='$CXXCPP $CPPFLAGS'
4207 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4208 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4209 cross_compiling=$ac_cv_prog_cxx_cross
4211 cat > conftest.$ac_ext <<EOF
4212 #line 4213 "configure"
4213 #include "confdefs.h"
4216 gethostbyname_r("", 0, 0);
4219 if { (eval echo configure:4220: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4221 libjava_cv_gethostbyname_r_needs_reentrant=no
4223 echo "configure: failed program was:" >&5
4224 cat conftest.$ac_ext >&5
4226 CPPFLAGS_SAVE="$CPPFLAGS"
4227 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
4228 cat > conftest.$ac_ext <<EOF
4229 #line 4230 "configure"
4230 #include "confdefs.h"
4233 gethostbyname_r("", 0, 0);
4236 if { (eval echo configure:4237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4238 libjava_cv_gethostbyname_r_needs_reentrant=yes
4240 echo "configure: failed program was:" >&5
4241 cat conftest.$ac_ext >&5
4243 libjava_cv_gethostbyname_r_needs_reentrant=fail
4246 CPPFLAGS="$CPPFLAGS_SAVE"
4251 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4252 ac_cpp='$CPP $CPPFLAGS'
4253 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4254 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4255 cross_compiling=$ac_cv_prog_cc_cross
4260 echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
4261 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
4262 cat >> confdefs.h <<\EOF
4263 #define _REENTRANT 1
4270 echo $ac_n "checking for struct hostent_data""... $ac_c" 1>&6
4271 echo "configure:4272: checking for struct hostent_data" >&5
4272 if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
4273 echo $ac_n "(cached) $ac_c" 1>&6
4275 cat > conftest.$ac_ext <<EOF
4276 #line 4277 "configure"
4277 #include "confdefs.h"
4279 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
4280 # define _REENTRANT 1
4284 struct hostent_data data;
4287 if { (eval echo configure:4288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4289 libjava_cv_struct_hostent_data=yes
4291 echo "configure: failed program was:" >&5
4292 cat conftest.$ac_ext >&5
4294 libjava_cv_struct_hostent_data=no
4299 echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
4300 if test "x$libjava_cv_struct_hostent_data" = xyes; then
4301 cat >> confdefs.h <<\EOF
4302 #define HAVE_STRUCT_HOSTENT_DATA 1
4308 echo "$ac_t""no" 1>&6
4313 # FIXME: libjava source code expects to find a prototype for
4314 # gethostbyaddr_r in netdb.h. The outer check ensures that
4315 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
4316 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
4317 # linkage check is enough, yet C++ code requires proper prototypes.)
4318 cat > conftest.$ac_ext <<EOF
4319 #line 4320 "configure"
4320 #include "confdefs.h"
4323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4324 egrep "gethostbyaddr_r" >/dev/null 2>&1; then
4327 for ac_func in gethostbyaddr_r
4329 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4330 echo "configure:4331: checking for $ac_func" >&5
4331 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4332 echo $ac_n "(cached) $ac_c" 1>&6
4334 cat > conftest.$ac_ext <<EOF
4335 #line 4336 "configure"
4336 #include "confdefs.h"
4337 /* System header to define __stub macros and hopefully few prototypes,
4338 which can conflict with char $ac_func(); below. */
4340 /* Override any gcc2 internal prototype to avoid an error. */
4341 /* We use char because int might match the return type of a gcc2
4342 builtin and then its argument prototype would still apply. */
4347 /* The GNU C library defines this for functions which it implements
4348 to always fail with ENOSYS. Some functions are actually named
4349 something starting with __ and the normal name is an alias. */
4350 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4358 if { (eval echo configure:4359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4360 eval "ac_cv_func_$ac_func=yes"
4362 echo "configure: failed program was:" >&5
4363 cat conftest.$ac_ext >&5
4365 eval "ac_cv_func_$ac_func=no"
4370 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4371 echo "$ac_t""yes" 1>&6
4372 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4373 cat >> confdefs.h <<EOF
4374 #define $ac_tr_func 1
4377 cat >> confdefs.h <<\EOF
4378 #define HAVE_GETHOSTBYADDR_R 1
4381 # There are two different kinds of gethostbyaddr_r.
4382 # We look for the one that returns `int'.
4383 # Hopefully this check is robust enough.
4384 cat > conftest.$ac_ext <<EOF
4385 #line 4386 "configure"
4386 #include "confdefs.h"
4389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4390 egrep "int.*gethostbyaddr_r" >/dev/null 2>&1; then
4393 cat >> confdefs.h <<\EOF
4394 #define GETHOSTBYADDR_R_RETURNS_INT 1
4401 echo "$ac_t""no" 1>&6
4409 for ac_func in gethostname
4411 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4412 echo "configure:4413: checking for $ac_func" >&5
4413 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4414 echo $ac_n "(cached) $ac_c" 1>&6
4416 cat > conftest.$ac_ext <<EOF
4417 #line 4418 "configure"
4418 #include "confdefs.h"
4419 /* System header to define __stub macros and hopefully few prototypes,
4420 which can conflict with char $ac_func(); below. */
4422 /* Override any gcc2 internal prototype to avoid an error. */
4423 /* We use char because int might match the return type of a gcc2
4424 builtin and then its argument prototype would still apply. */
4429 /* The GNU C library defines this for functions which it implements
4430 to always fail with ENOSYS. Some functions are actually named
4431 something starting with __ and the normal name is an alias. */
4432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4440 if { (eval echo configure:4441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4442 eval "ac_cv_func_$ac_func=yes"
4444 echo "configure: failed program was:" >&5
4445 cat conftest.$ac_ext >&5
4447 eval "ac_cv_func_$ac_func=no"
4452 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4453 echo "$ac_t""yes" 1>&6
4454 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4455 cat >> confdefs.h <<EOF
4456 #define $ac_tr_func 1
4459 cat >> confdefs.h <<\EOF
4460 #define HAVE_GETHOSTNAME 1
4463 cat > conftest.$ac_ext <<EOF
4464 #line 4465 "configure"
4465 #include "confdefs.h"
4468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4469 egrep "gethostname" >/dev/null 2>&1; then
4472 cat >> confdefs.h <<\EOF
4473 #define HAVE_GETHOSTNAME_DECL 1
4480 echo "$ac_t""no" 1>&6
4485 # Look for these functions in the thread library, but only bother
4486 # if using POSIX threads.
4487 if test "$THREADS" = posix; then
4489 LIBS="$LIBS $THREADLIBS"
4490 # Some POSIX thread systems don't have pthread_mutexattr_settype.
4492 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
4494 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4495 echo "configure:4496: checking for $ac_func" >&5
4496 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4497 echo $ac_n "(cached) $ac_c" 1>&6
4499 cat > conftest.$ac_ext <<EOF
4500 #line 4501 "configure"
4501 #include "confdefs.h"
4502 /* System header to define __stub macros and hopefully few prototypes,
4503 which can conflict with char $ac_func(); below. */
4505 /* Override any gcc2 internal prototype to avoid an error. */
4506 /* We use char because int might match the return type of a gcc2
4507 builtin and then its argument prototype would still apply. */
4512 /* The GNU C library defines this for functions which it implements
4513 to always fail with ENOSYS. Some functions are actually named
4514 something starting with __ and the normal name is an alias. */
4515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4523 if { (eval echo configure:4524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4525 eval "ac_cv_func_$ac_func=yes"
4527 echo "configure: failed program was:" >&5
4528 cat conftest.$ac_ext >&5
4530 eval "ac_cv_func_$ac_func=no"
4535 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4536 echo "$ac_t""yes" 1>&6
4537 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4538 cat >> confdefs.h <<EOF
4539 #define $ac_tr_func 1
4543 echo "$ac_t""no" 1>&6
4548 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
4549 # Solaris 7 the name librt is preferred.
4550 for ac_func in sched_yield
4552 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4553 echo "configure:4554: checking for $ac_func" >&5
4554 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4555 echo $ac_n "(cached) $ac_c" 1>&6
4557 cat > conftest.$ac_ext <<EOF
4558 #line 4559 "configure"
4559 #include "confdefs.h"
4560 /* System header to define __stub macros and hopefully few prototypes,
4561 which can conflict with char $ac_func(); below. */
4563 /* Override any gcc2 internal prototype to avoid an error. */
4564 /* We use char because int might match the return type of a gcc2
4565 builtin and then its argument prototype would still apply. */
4570 /* The GNU C library defines this for functions which it implements
4571 to always fail with ENOSYS. Some functions are actually named
4572 something starting with __ and the normal name is an alias. */
4573 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4581 if { (eval echo configure:4582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4583 eval "ac_cv_func_$ac_func=yes"
4585 echo "configure: failed program was:" >&5
4586 cat conftest.$ac_ext >&5
4588 eval "ac_cv_func_$ac_func=no"
4593 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4594 echo "$ac_t""yes" 1>&6
4595 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4596 cat >> confdefs.h <<EOF
4597 #define $ac_tr_func 1
4601 echo "$ac_t""no" 1>&6
4602 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
4603 echo "configure:4604: checking for sched_yield in -lrt" >&5
4604 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
4605 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4606 echo $ac_n "(cached) $ac_c" 1>&6
4608 ac_save_LIBS="$LIBS"
4610 cat > conftest.$ac_ext <<EOF
4611 #line 4612 "configure"
4612 #include "confdefs.h"
4613 /* Override any gcc2 internal prototype to avoid an error. */
4614 /* We use char because int might match the return type of a gcc2
4615 builtin and then its argument prototype would still apply. */
4622 if { (eval echo configure:4623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4624 eval "ac_cv_lib_$ac_lib_var=yes"
4626 echo "configure: failed program was:" >&5
4627 cat conftest.$ac_ext >&5
4629 eval "ac_cv_lib_$ac_lib_var=no"
4632 LIBS="$ac_save_LIBS"
4635 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4636 echo "$ac_t""yes" 1>&6
4638 cat >> confdefs.h <<\EOF
4639 #define HAVE_SCHED_YIELD 1
4642 THREADLIBS="$THREADLIBS -lrt"
4643 THREADSPEC="$THREADSPEC -lrt"
4645 echo "$ac_t""no" 1>&6
4647 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
4648 echo "configure:4649: checking for sched_yield in -lposix4" >&5
4649 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
4650 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4651 echo $ac_n "(cached) $ac_c" 1>&6
4653 ac_save_LIBS="$LIBS"
4654 LIBS="-lposix4 $LIBS"
4655 cat > conftest.$ac_ext <<EOF
4656 #line 4657 "configure"
4657 #include "confdefs.h"
4658 /* Override any gcc2 internal prototype to avoid an error. */
4659 /* We use char because int might match the return type of a gcc2
4660 builtin and then its argument prototype would still apply. */
4667 if { (eval echo configure:4668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4669 eval "ac_cv_lib_$ac_lib_var=yes"
4671 echo "configure: failed program was:" >&5
4672 cat conftest.$ac_ext >&5
4674 eval "ac_cv_lib_$ac_lib_var=no"
4677 LIBS="$ac_save_LIBS"
4680 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4681 echo "$ac_t""yes" 1>&6
4683 cat >> confdefs.h <<\EOF
4684 #define HAVE_SCHED_YIELD 1
4687 THREADLIBS="$THREADLIBS -lposix4"
4688 THREADSPEC="$THREADSPEC -lposix4"
4690 echo "$ac_t""no" 1>&6
4700 # We can save a little space at runtime if the mutex has m_count
4701 # or __m_count. This is a nice hack for Linux.
4702 cat > conftest.$ac_ext <<EOF
4703 #line 4704 "configure"
4704 #include "confdefs.h"
4705 #include <pthread.h>
4708 extern pthread_mutex_t *mutex; int q = mutex->m_count;
4712 if { (eval echo configure:4713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4714 cat >> confdefs.h <<\EOF
4715 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
4719 echo "configure: failed program was:" >&5
4720 cat conftest.$ac_ext >&5
4723 cat > conftest.$ac_ext <<EOF
4724 #line 4725 "configure"
4725 #include "confdefs.h"
4726 #include <pthread.h>
4729 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
4733 if { (eval echo configure:4734: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4735 cat >> confdefs.h <<\EOF
4736 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
4740 echo "configure: failed program was:" >&5
4741 cat conftest.$ac_ext >&5
4748 # We require a way to get the time.
4750 for ac_func in gettimeofday time ftime
4752 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4753 echo "configure:4754: checking for $ac_func" >&5
4754 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4755 echo $ac_n "(cached) $ac_c" 1>&6
4757 cat > conftest.$ac_ext <<EOF
4758 #line 4759 "configure"
4759 #include "confdefs.h"
4760 /* System header to define __stub macros and hopefully few prototypes,
4761 which can conflict with char $ac_func(); below. */
4763 /* Override any gcc2 internal prototype to avoid an error. */
4764 /* We use char because int might match the return type of a gcc2
4765 builtin and then its argument prototype would still apply. */
4770 /* The GNU C library defines this for functions which it implements
4771 to always fail with ENOSYS. Some functions are actually named
4772 something starting with __ and the normal name is an alias. */
4773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4781 if { (eval echo configure:4782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4783 eval "ac_cv_func_$ac_func=yes"
4785 echo "configure: failed program was:" >&5
4786 cat conftest.$ac_ext >&5
4788 eval "ac_cv_func_$ac_func=no"
4793 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4794 echo "$ac_t""yes" 1>&6
4795 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4796 cat >> confdefs.h <<EOF
4797 #define $ac_tr_func 1
4801 echo "$ac_t""no" 1>&6
4805 if test "$time_found" = no; then
4806 { echo "configure: error: no function found to get the time" 1>&2; exit 1; }
4809 for ac_func in memmove
4811 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4812 echo "configure:4813: checking for $ac_func" >&5
4813 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4814 echo $ac_n "(cached) $ac_c" 1>&6
4816 cat > conftest.$ac_ext <<EOF
4817 #line 4818 "configure"
4818 #include "confdefs.h"
4819 /* System header to define __stub macros and hopefully few prototypes,
4820 which can conflict with char $ac_func(); below. */
4822 /* Override any gcc2 internal prototype to avoid an error. */
4823 /* We use char because int might match the return type of a gcc2
4824 builtin and then its argument prototype would still apply. */
4829 /* The GNU C library defines this for functions which it implements
4830 to always fail with ENOSYS. Some functions are actually named
4831 something starting with __ and the normal name is an alias. */
4832 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4840 if { (eval echo configure:4841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4842 eval "ac_cv_func_$ac_func=yes"
4844 echo "configure: failed program was:" >&5
4845 cat conftest.$ac_ext >&5
4847 eval "ac_cv_func_$ac_func=no"
4852 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4853 echo "$ac_t""yes" 1>&6
4854 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4855 cat >> confdefs.h <<EOF
4856 #define $ac_tr_func 1
4860 echo "$ac_t""no" 1>&6
4865 # We require memcpy.
4867 for ac_func in memcpy
4869 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4870 echo "configure:4871: checking for $ac_func" >&5
4871 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4872 echo $ac_n "(cached) $ac_c" 1>&6
4874 cat > conftest.$ac_ext <<EOF
4875 #line 4876 "configure"
4876 #include "confdefs.h"
4877 /* System header to define __stub macros and hopefully few prototypes,
4878 which can conflict with char $ac_func(); below. */
4880 /* Override any gcc2 internal prototype to avoid an error. */
4881 /* We use char because int might match the return type of a gcc2
4882 builtin and then its argument prototype would still apply. */
4887 /* The GNU C library defines this for functions which it implements
4888 to always fail with ENOSYS. Some functions are actually named
4889 something starting with __ and the normal name is an alias. */
4890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4898 if { (eval echo configure:4899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4900 eval "ac_cv_func_$ac_func=yes"
4902 echo "configure: failed program was:" >&5
4903 cat conftest.$ac_ext >&5
4905 eval "ac_cv_func_$ac_func=no"
4910 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4911 echo "$ac_t""yes" 1>&6
4912 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4913 cat >> confdefs.h <<EOF
4914 #define $ac_tr_func 1
4918 echo "$ac_t""no" 1>&6
4922 if test "$memcpy_found" = no; then
4923 { echo "configure: error: memcpy is required" 1>&2; exit 1; }
4926 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4927 echo "configure:4928: checking for dlopen in -ldl" >&5
4928 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4929 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4930 echo $ac_n "(cached) $ac_c" 1>&6
4932 ac_save_LIBS="$LIBS"
4934 cat > conftest.$ac_ext <<EOF
4935 #line 4936 "configure"
4936 #include "confdefs.h"
4937 /* Override any gcc2 internal prototype to avoid an error. */
4938 /* We use char because int might match the return type of a gcc2
4939 builtin and then its argument prototype would still apply. */
4946 if { (eval echo configure:4947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4948 eval "ac_cv_lib_$ac_lib_var=yes"
4950 echo "configure: failed program was:" >&5
4951 cat conftest.$ac_ext >&5
4953 eval "ac_cv_lib_$ac_lib_var=no"
4956 LIBS="$ac_save_LIBS"
4959 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4960 echo "$ac_t""yes" 1>&6
4962 cat >> confdefs.h <<\EOF
4963 #define HAVE_DLOPEN 1
4967 echo "$ac_t""no" 1>&6
4971 # Some library-finding code we stole from Tcl.
4972 #--------------------------------------------------------------------
4973 # Check for the existence of the -lsocket and -lnsl libraries.
4974 # The order here is important, so that they end up in the right
4975 # order in the command line generated by make. Here are some
4976 # special considerations:
4977 # 1. Use "connect" and "accept" to check for -lsocket, and
4978 # "gethostbyname" to check for -lnsl.
4979 # 2. Use each function name only once: can't redo a check because
4980 # autoconf caches the results of the last check and won't redo it.
4981 # 3. Use -lnsl and -lsocket only if they supply procedures that
4982 # aren't already present in the normal libraries. This is because
4983 # IRIX 5.2 has libraries, but they aren't needed and they're
4984 # bogus: they goof up name resolution if used.
4985 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
4986 # To get around this problem, check for both libraries together
4987 # if -lsocket doesn't work by itself.
4988 #--------------------------------------------------------------------
4990 echo $ac_n "checking for socket libraries""... $ac_c" 1>&6
4991 echo "configure:4992: checking for socket libraries" >&5
4992 if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
4993 echo $ac_n "(cached) $ac_c" 1>&6
4997 unset ac_cv_func_connect
4998 echo $ac_n "checking for connect""... $ac_c" 1>&6
4999 echo "configure:5000: checking for connect" >&5
5000 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
5001 echo $ac_n "(cached) $ac_c" 1>&6
5003 cat > conftest.$ac_ext <<EOF
5004 #line 5005 "configure"
5005 #include "confdefs.h"
5006 /* System header to define __stub macros and hopefully few prototypes,
5007 which can conflict with char connect(); below. */
5009 /* Override any gcc2 internal prototype to avoid an error. */
5010 /* We use char because int might match the return type of a gcc2
5011 builtin and then its argument prototype would still apply. */
5016 /* The GNU C library defines this for functions which it implements
5017 to always fail with ENOSYS. Some functions are actually named
5018 something starting with __ and the normal name is an alias. */
5019 #if defined (__stub_connect) || defined (__stub___connect)
5027 if { (eval echo configure:5028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5029 eval "ac_cv_func_connect=yes"
5031 echo "configure: failed program was:" >&5
5032 cat conftest.$ac_ext >&5
5034 eval "ac_cv_func_connect=no"
5039 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
5040 echo "$ac_t""yes" 1>&6
5043 echo "$ac_t""no" 1>&6
5047 if test "$gcj_checkSocket" = 1; then
5048 unset ac_cv_func_connect
5049 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
5050 echo "configure:5051: checking for main in -lsocket" >&5
5051 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
5052 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5053 echo $ac_n "(cached) $ac_c" 1>&6
5055 ac_save_LIBS="$LIBS"
5056 LIBS="-lsocket $LIBS"
5057 cat > conftest.$ac_ext <<EOF
5058 #line 5059 "configure"
5059 #include "confdefs.h"
5065 if { (eval echo configure:5066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5067 eval "ac_cv_lib_$ac_lib_var=yes"
5069 echo "configure: failed program was:" >&5
5070 cat conftest.$ac_ext >&5
5072 eval "ac_cv_lib_$ac_lib_var=no"
5075 LIBS="$ac_save_LIBS"
5078 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5079 echo "$ac_t""yes" 1>&6
5080 gcj_cv_lib_sockets="-lsocket"
5082 echo "$ac_t""no" 1>&6
5087 if test "$gcj_checkBoth" = 1; then
5089 LIBS="$LIBS -lsocket -lnsl"
5090 unset ac_cv_func_accept
5091 echo $ac_n "checking for accept""... $ac_c" 1>&6
5092 echo "configure:5093: checking for accept" >&5
5093 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
5094 echo $ac_n "(cached) $ac_c" 1>&6
5096 cat > conftest.$ac_ext <<EOF
5097 #line 5098 "configure"
5098 #include "confdefs.h"
5099 /* System header to define __stub macros and hopefully few prototypes,
5100 which can conflict with char accept(); below. */
5102 /* Override any gcc2 internal prototype to avoid an error. */
5103 /* We use char because int might match the return type of a gcc2
5104 builtin and then its argument prototype would still apply. */
5109 /* The GNU C library defines this for functions which it implements
5110 to always fail with ENOSYS. Some functions are actually named
5111 something starting with __ and the normal name is an alias. */
5112 #if defined (__stub_accept) || defined (__stub___accept)
5120 if { (eval echo configure:5121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5122 eval "ac_cv_func_accept=yes"
5124 echo "configure: failed program was:" >&5
5125 cat conftest.$ac_ext >&5
5127 eval "ac_cv_func_accept=no"
5132 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
5133 echo "$ac_t""yes" 1>&6
5135 gcj_cv_lib_sockets="-lsocket -lnsl"
5137 echo "$ac_t""no" 1>&6
5140 unset ac_cv_func_accept
5143 unset ac_cv_func_gethostbyname
5145 LIBS="$LIBS $gcj_cv_lib_sockets"
5146 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5147 echo "configure:5148: checking for gethostbyname" >&5
5148 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
5149 echo $ac_n "(cached) $ac_c" 1>&6
5151 cat > conftest.$ac_ext <<EOF
5152 #line 5153 "configure"
5153 #include "confdefs.h"
5154 /* System header to define __stub macros and hopefully few prototypes,
5155 which can conflict with char gethostbyname(); below. */
5157 /* Override any gcc2 internal prototype to avoid an error. */
5158 /* We use char because int might match the return type of a gcc2
5159 builtin and then its argument prototype would still apply. */
5160 char gethostbyname();
5164 /* The GNU C library defines this for functions which it implements
5165 to always fail with ENOSYS. Some functions are actually named
5166 something starting with __ and the normal name is an alias. */
5167 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5175 if { (eval echo configure:5176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5177 eval "ac_cv_func_gethostbyname=yes"
5179 echo "configure: failed program was:" >&5
5180 cat conftest.$ac_ext >&5
5182 eval "ac_cv_func_gethostbyname=no"
5187 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5188 echo "$ac_t""yes" 1>&6
5191 echo "$ac_t""no" 1>&6
5192 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
5193 echo "configure:5194: checking for main in -lnsl" >&5
5194 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
5195 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5196 echo $ac_n "(cached) $ac_c" 1>&6
5198 ac_save_LIBS="$LIBS"
5200 cat > conftest.$ac_ext <<EOF
5201 #line 5202 "configure"
5202 #include "confdefs.h"
5208 if { (eval echo configure:5209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5210 eval "ac_cv_lib_$ac_lib_var=yes"
5212 echo "configure: failed program was:" >&5
5213 cat conftest.$ac_ext >&5
5215 eval "ac_cv_lib_$ac_lib_var=no"
5218 LIBS="$ac_save_LIBS"
5221 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5222 echo "$ac_t""yes" 1>&6
5223 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
5225 echo "$ac_t""no" 1>&6
5230 unset ac_cv_func_gethostbyname
5235 echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
5236 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
5238 if test "$with_system_zlib" = yes; then
5239 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
5240 echo "configure:5241: checking for deflate in -lz" >&5
5241 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
5242 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5243 echo $ac_n "(cached) $ac_c" 1>&6
5245 ac_save_LIBS="$LIBS"
5247 cat > conftest.$ac_ext <<EOF
5248 #line 5249 "configure"
5249 #include "confdefs.h"
5250 /* Override any gcc2 internal prototype to avoid an error. */
5251 /* We use char because int might match the return type of a gcc2
5252 builtin and then its argument prototype would still apply. */
5259 if { (eval echo configure:5260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5261 eval "ac_cv_lib_$ac_lib_var=yes"
5263 echo "configure: failed program was:" >&5
5264 cat conftest.$ac_ext >&5
5266 eval "ac_cv_lib_$ac_lib_var=no"
5269 LIBS="$ac_save_LIBS"
5272 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5273 echo "$ac_t""yes" 1>&6
5276 echo "$ac_t""no" 1>&6
5282 ZLIBTESTSPEC="-L`pwd`/../zlib/.libs -rpath `pwd`/../zlib/.libs"
5285 # On Solaris, and maybe other architectures, the Boehm collector
5287 if test "$GC" = boehm; then
5288 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
5289 echo "configure:5290: checking for main in -ldl" >&5
5290 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
5291 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5292 echo $ac_n "(cached) $ac_c" 1>&6
5294 ac_save_LIBS="$LIBS"
5296 cat > conftest.$ac_ext <<EOF
5297 #line 5298 "configure"
5298 #include "confdefs.h"
5304 if { (eval echo configure:5305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5306 eval "ac_cv_lib_$ac_lib_var=yes"
5308 echo "configure: failed program was:" >&5
5309 cat conftest.$ac_ext >&5
5311 eval "ac_cv_lib_$ac_lib_var=no"
5314 LIBS="$ac_save_LIBS"
5317 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5318 echo "$ac_t""yes" 1>&6
5319 SYSTEMSPEC="$SYSTEMSPEC -ldl"
5321 echo "$ac_t""no" 1>&6
5326 if test -z "${with_multisubdir}"; then
5330 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
5333 if test -x "${builddotdot}/../../gcc/gcj"; then
5334 dir="`cd ${builddotdot}/../../gcc && pwd`"
5335 GCJ="$dir/gcj -B`pwd`/ -B$dir/"
5343 # Create it, so that compile/link tests don't fail
5344 test -f libgcj.spec || touch libgcj.spec
5346 # We must search the source tree for java.lang, since we still don't
5347 # have libgcj.jar nor java/lang/*.class
5348 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
5349 CPPFLAGS="$CPPFLAGS -I`pwd` -I`cd $srcdir && pwd`"
5351 # Since some classes depend on this one, we need its source available
5352 # before we can do any GCJ compilation test :-(
5353 if test ! -f gnu/classpath/Configuration.java; then
5354 test -d gnu || mkdir gnu
5355 test -d gnu/classpath || mkdir gnu/classpath
5356 sed 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
5357 < $srcdir/gnu/classpath/Configuration.java.in \
5358 > gnu/classpath/Configuration.java
5359 # We do not want to redirect the output of the grep below to /dev/null,
5360 # but we add /dev/null to the input list so that grep will print the
5361 # filename of Configuration.java in case it finds any matches.
5362 if grep @ gnu/classpath/Configuration.java /dev/null; then
5363 { echo "configure: error: configure.in is missing the substitutions above" 1>&2; exit 1; }
5367 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
5368 set dummy ${ac_tool_prefix}gcj; ac_word=$2
5369 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5370 echo "configure:5371: checking for $ac_word" >&5
5371 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
5372 echo $ac_n "(cached) $ac_c" 1>&6
5374 if test -n "$GCJ"; then
5375 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5377 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5379 for ac_dir in $ac_dummy; do
5380 test -z "$ac_dir" && ac_dir=.
5381 if test -f $ac_dir/$ac_word; then
5382 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
5389 GCJ="$ac_cv_prog_GCJ"
5390 if test -n "$GCJ"; then
5391 echo "$ac_t""$GCJ" 1>&6
5393 echo "$ac_t""no" 1>&6
5397 if test -z "$ac_cv_prog_GCJ"; then
5398 if test -n "$ac_tool_prefix"; then
5399 # Extract the first word of "gcj", so it can be a program name with args.
5400 set dummy gcj; ac_word=$2
5401 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5402 echo "configure:5403: checking for $ac_word" >&5
5403 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
5404 echo $ac_n "(cached) $ac_c" 1>&6
5406 if test -n "$GCJ"; then
5407 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5409 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5411 for ac_dir in $ac_dummy; do
5412 test -z "$ac_dir" && ac_dir=.
5413 if test -f $ac_dir/$ac_word; then
5414 ac_cv_prog_GCJ="gcj"
5419 test -z "$ac_cv_prog_GCJ" && ac_cv_prog_GCJ="no"
5422 GCJ="$ac_cv_prog_GCJ"
5423 if test -n "$GCJ"; then
5424 echo "$ac_t""$GCJ" 1>&6
5426 echo "$ac_t""no" 1>&6
5434 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
5438 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
5440 lt_save_CFLAGS="$CFLAGS"
5441 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
5442 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5443 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5444 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5445 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5446 deplibs_check_method="$deplibs_check_method" \
5447 file_magic_cmd="$file_magic_cmd" \
5448 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5449 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
5450 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
5452 CFLAGS="$lt_save_CFLAGS"
5454 # Redirect the config.log output again, so that the ltconfig log is not
5455 # clobbered by the next message.
5456 exec 5>>./config.log
5461 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
5463 echo $ac_n "checking size of void *""... $ac_c" 1>&6
5464 echo "configure:5465: checking size of void *" >&5
5465 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
5466 echo $ac_n "(cached) $ac_c" 1>&6
5468 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
5469 cat > conftest.$ac_ext <<EOF
5470 #line 5471 "configure"
5471 #include "confdefs.h"
5472 #include "confdefs.h"
5473 #include <sys/types.h>
5477 switch (0) case 0: case (sizeof (void *) == $ac_size):;
5480 if { (eval echo configure:5481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5482 ac_cv_sizeof_void_p=$ac_size
5484 echo "configure: failed program was:" >&5
5485 cat conftest.$ac_ext >&5
5488 if test x$ac_cv_sizeof_void_p != x ; then break; fi
5493 if test x$ac_cv_sizeof_void_p = x ; then
5494 { echo "configure: error: cannot determine a size for void *" 1>&2; exit 1; }
5496 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
5497 cat >> confdefs.h <<EOF
5498 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5506 if test "x$ZLIBSPEC" = "x-lzgcj"; then
5507 # We include the path to the zlib build directory.
5508 # See Makefile.am to understand why.
5509 ZDEPS='$(top_builddir)/../zlib/libzgcj.la'
5510 ZLIBS="$ZDEPS -L\$(here)/../zlib/$libsubdir"
5511 ZINCS='-I$(top_srcdir)/../zlib'
5523 if test "$CANADIAN" = yes; then
5532 if test "$NULL_TARGET" = yes; then
5534 NULL_TARGET_FALSE='#'
5536 NULL_TARGET_TRUE='#'
5541 if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
5550 if test -z "$with_cross_host"; then
5552 USE_LIBDIR_FALSE='#'
5559 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
5560 NEEDS_DATA_START_TRUE=
5561 NEEDS_DATA_START_FALSE='#'
5563 NEEDS_DATA_START_TRUE='#'
5564 NEEDS_DATA_START_FALSE=
5568 # Determine gcj version number.
5570 gcjvers="`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`"
5572 cat >> confdefs.h <<EOF
5573 #define GCJVERSION "$gcjvers"
5580 echo $ac_n "checking for g++ -ffloat-store bug""... $ac_c" 1>&6
5581 echo "configure:5582: checking for g++ -ffloat-store bug" >&5
5582 save_CFLAGS="$CFLAGS"
5583 CFLAGS="-x c++ -O2 -ffloat-store"
5584 cat > conftest.$ac_ext <<EOF
5585 #line 5586 "configure"
5586 #include "confdefs.h"
5592 if { (eval echo configure:5593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5594 echo "$ac_t""no" 1>&6
5596 echo "configure: failed program was:" >&5
5597 cat conftest.$ac_ext >&5
5599 cat >> confdefs.h <<\EOF
5600 #define __NO_MATH_INLINES 1
5603 echo "$ac_t""yes" 1>&6
5606 CFLAGS="$save_CFLAGS"
5608 for ac_hdr in unistd.h bstring.h sys/time.h sys/types.h fcntl.h sys/ioctl.h sys/filio.h sys/stat.h sys/select.h sys/socket.h netinet/in.h arpa/inet.h netdb.h pwd.h sys/config.h stdint.h langinfo.h locale.h
5610 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5611 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5612 echo "configure:5613: checking for $ac_hdr" >&5
5613 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5614 echo $ac_n "(cached) $ac_c" 1>&6
5616 cat > conftest.$ac_ext <<EOF
5617 #line 5618 "configure"
5618 #include "confdefs.h"
5621 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5622 { (eval echo configure:5623: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5623 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5624 if test -z "$ac_err"; then
5626 eval "ac_cv_header_$ac_safe=yes"
5629 echo "configure: failed program was:" >&5
5630 cat conftest.$ac_ext >&5
5632 eval "ac_cv_header_$ac_safe=no"
5636 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5637 echo "$ac_t""yes" 1>&6
5638 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5639 cat >> confdefs.h <<EOF
5640 #define $ac_tr_hdr 1
5644 echo "$ac_t""no" 1>&6
5648 for ac_hdr in dirent.h
5650 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5651 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5652 echo "configure:5653: checking for $ac_hdr" >&5
5653 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5654 echo $ac_n "(cached) $ac_c" 1>&6
5656 cat > conftest.$ac_ext <<EOF
5657 #line 5658 "configure"
5658 #include "confdefs.h"
5661 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5662 { (eval echo configure:5663: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5663 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5664 if test -z "$ac_err"; then
5666 eval "ac_cv_header_$ac_safe=yes"
5669 echo "configure: failed program was:" >&5
5670 cat conftest.$ac_ext >&5
5672 eval "ac_cv_header_$ac_safe=no"
5676 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5677 echo "$ac_t""yes" 1>&6
5678 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5679 cat >> confdefs.h <<EOF
5680 #define $ac_tr_hdr 1
5684 echo "$ac_t""no" 1>&6
5688 for ac_hdr in inttypes.h
5690 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5691 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5692 echo "configure:5693: checking for $ac_hdr" >&5
5693 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5694 echo $ac_n "(cached) $ac_c" 1>&6
5696 cat > conftest.$ac_ext <<EOF
5697 #line 5698 "configure"
5698 #include "confdefs.h"
5701 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5702 { (eval echo configure:5703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5703 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5704 if test -z "$ac_err"; then
5706 eval "ac_cv_header_$ac_safe=yes"
5709 echo "configure: failed program was:" >&5
5710 cat conftest.$ac_ext >&5
5712 eval "ac_cv_header_$ac_safe=no"
5716 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5717 echo "$ac_t""yes" 1>&6
5718 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5719 cat >> confdefs.h <<EOF
5720 #define $ac_tr_hdr 1
5723 cat >> confdefs.h <<\EOF
5724 #define HAVE_INTTYPES_H 1
5727 cat >> confdefs.h <<\EOF
5728 #define JV_HAVE_INTTYPES_H 1
5733 echo "$ac_t""no" 1>&6
5737 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
5738 echo "configure:5739: checking for sys/wait.h that is POSIX.1 compatible" >&5
5739 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
5740 echo $ac_n "(cached) $ac_c" 1>&6
5742 cat > conftest.$ac_ext <<EOF
5743 #line 5744 "configure"
5744 #include "confdefs.h"
5745 #include <sys/types.h>
5746 #include <sys/wait.h>
5748 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5751 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5756 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5759 if { (eval echo configure:5760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5761 ac_cv_header_sys_wait_h=yes
5763 echo "configure: failed program was:" >&5
5764 cat conftest.$ac_ext >&5
5766 ac_cv_header_sys_wait_h=no
5771 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
5772 if test $ac_cv_header_sys_wait_h = yes; then
5773 cat >> confdefs.h <<\EOF
5774 #define HAVE_SYS_WAIT_H 1
5780 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5781 echo "configure:5782: checking for ANSI C header files" >&5
5782 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5783 echo $ac_n "(cached) $ac_c" 1>&6
5785 cat > conftest.$ac_ext <<EOF
5786 #line 5787 "configure"
5787 #include "confdefs.h"
5793 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5794 { (eval echo configure:5795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5795 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5796 if test -z "$ac_err"; then
5798 ac_cv_header_stdc=yes
5801 echo "configure: failed program was:" >&5
5802 cat conftest.$ac_ext >&5
5804 ac_cv_header_stdc=no
5808 if test $ac_cv_header_stdc = yes; then
5809 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5810 cat > conftest.$ac_ext <<EOF
5811 #line 5812 "configure"
5812 #include "confdefs.h"
5815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5816 egrep "memchr" >/dev/null 2>&1; then
5820 ac_cv_header_stdc=no
5826 if test $ac_cv_header_stdc = yes; then
5827 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5828 cat > conftest.$ac_ext <<EOF
5829 #line 5830 "configure"
5830 #include "confdefs.h"
5833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5834 egrep "free" >/dev/null 2>&1; then
5838 ac_cv_header_stdc=no
5844 if test $ac_cv_header_stdc = yes; then
5845 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5846 if test "$cross_compiling" = yes; then
5849 cat > conftest.$ac_ext <<EOF
5850 #line 5851 "configure"
5851 #include "confdefs.h"
5853 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5854 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5855 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5856 int main () { int i; for (i = 0; i < 256; i++)
5857 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5861 if { (eval echo configure:5862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5865 echo "configure: failed program was:" >&5
5866 cat conftest.$ac_ext >&5
5868 ac_cv_header_stdc=no
5876 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5877 if test $ac_cv_header_stdc = yes; then
5878 cat >> confdefs.h <<\EOF
5879 #define STDC_HEADERS 1
5884 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
5885 echo "configure:5886: checking for ssize_t" >&5
5886 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
5887 echo $ac_n "(cached) $ac_c" 1>&6
5889 cat > conftest.$ac_ext <<EOF
5890 #line 5891 "configure"
5891 #include "confdefs.h"
5892 #include <sys/types.h>
5898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5899 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5901 ac_cv_type_ssize_t=yes
5904 ac_cv_type_ssize_t=no
5909 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
5910 if test $ac_cv_type_ssize_t = no; then
5911 cat >> confdefs.h <<\EOF
5918 echo $ac_n "checking for in_addr_t""... $ac_c" 1>&6
5919 echo "configure:5920: checking for in_addr_t" >&5
5920 cat > conftest.$ac_ext <<EOF
5921 #line 5922 "configure"
5922 #include "confdefs.h"
5923 #include <sys/types.h>
5928 #if HAVE_NETINET_IN_H
5929 #include <netinet/in.h>
5935 if { (eval echo configure:5936: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5937 cat >> confdefs.h <<\EOF
5938 #define HAVE_IN_ADDR_T 1
5941 echo "$ac_t""yes" 1>&6
5943 echo "configure: failed program was:" >&5
5944 cat conftest.$ac_ext >&5
5946 echo "$ac_t""no" 1>&6
5950 echo $ac_n "checking whether struct ip_mreq is in netinet/in.h""... $ac_c" 1>&6
5951 echo "configure:5952: checking whether struct ip_mreq is in netinet/in.h" >&5
5952 cat > conftest.$ac_ext <<EOF
5953 #line 5954 "configure"
5954 #include "confdefs.h"
5955 #include <netinet/in.h>
5957 struct ip_mreq mreq;
5960 if { (eval echo configure:5961: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5962 cat >> confdefs.h <<\EOF
5963 #define HAVE_STRUCT_IP_MREQ 1
5966 echo "$ac_t""yes" 1>&6
5968 echo "configure: failed program was:" >&5
5969 cat conftest.$ac_ext >&5
5971 echo "$ac_t""no" 1>&6
5975 echo $ac_n "checking whether struct ipv6_mreq is in netinet/in.h""... $ac_c" 1>&6
5976 echo "configure:5977: checking whether struct ipv6_mreq is in netinet/in.h" >&5
5977 cat > conftest.$ac_ext <<EOF
5978 #line 5979 "configure"
5979 #include "confdefs.h"
5980 #include <netinet/in.h>
5982 struct ipv6_mreq mreq6;
5985 if { (eval echo configure:5986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5987 cat >> confdefs.h <<\EOF
5988 #define HAVE_STRUCT_IPV6_MREQ 1
5991 echo "$ac_t""yes" 1>&6
5993 echo "configure: failed program was:" >&5
5994 cat conftest.$ac_ext >&5
5996 echo "$ac_t""no" 1>&6
6000 echo $ac_n "checking whether struct sockaddr_in6 is in netinet/in.h""... $ac_c" 1>&6
6001 echo "configure:6002: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
6002 cat > conftest.$ac_ext <<EOF
6003 #line 6004 "configure"
6004 #include "confdefs.h"
6005 #include <netinet/in.h>
6007 struct sockaddr_in6 addr6;
6010 if { (eval echo configure:6011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6012 cat >> confdefs.h <<\EOF
6013 #define HAVE_INET6 1
6016 echo "$ac_t""yes" 1>&6
6018 echo "configure: failed program was:" >&5
6019 cat conftest.$ac_ext >&5
6021 echo "$ac_t""no" 1>&6
6025 echo $ac_n "checking for socklen_t in sys/socket.h""... $ac_c" 1>&6
6026 echo "configure:6027: checking for socklen_t in sys/socket.h" >&5
6027 cat > conftest.$ac_ext <<EOF
6028 #line 6029 "configure"
6029 #include "confdefs.h"
6030 #define _POSIX_PII_SOCKET
6031 #include <sys/types.h>
6032 #include <sys/socket.h>
6037 if { (eval echo configure:6038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6039 cat >> confdefs.h <<\EOF
6040 #define HAVE_SOCKLEN_T 1
6043 echo "$ac_t""yes" 1>&6
6045 echo "configure: failed program was:" >&5
6046 cat conftest.$ac_ext >&5
6048 echo "$ac_t""no" 1>&6
6052 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
6053 echo "configure:6054: checking for tm_gmtoff in struct tm" >&5
6054 cat > conftest.$ac_ext <<EOF
6055 #line 6056 "configure"
6056 #include "confdefs.h"
6059 struct tm tim; tim.tm_gmtoff = 0;
6062 if { (eval echo configure:6063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6064 cat >> confdefs.h <<\EOF
6065 #define STRUCT_TM_HAS_GMTOFF 1
6068 echo "$ac_t""yes" 1>&6
6070 echo "configure: failed program was:" >&5
6071 cat conftest.$ac_ext >&5
6073 echo "$ac_t""no" 1>&6
6074 echo $ac_n "checking for global timezone variable""... $ac_c" 1>&6
6075 echo "configure:6076: checking for global timezone variable" >&5
6076 cat > conftest.$ac_ext <<EOF
6077 #line 6078 "configure"
6078 #include "confdefs.h"
6084 if { (eval echo configure:6085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6086 cat >> confdefs.h <<\EOF
6087 #define HAVE_TIMEZONE 1
6090 echo "$ac_t""yes" 1>&6
6092 echo "configure: failed program was:" >&5
6093 cat conftest.$ac_ext >&5
6095 echo "$ac_t""no" 1>&6
6101 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6102 # for constant arguments. Useless!
6103 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
6104 echo "configure:6105: checking for working alloca.h" >&5
6105 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
6106 echo $ac_n "(cached) $ac_c" 1>&6
6108 cat > conftest.$ac_ext <<EOF
6109 #line 6110 "configure"
6110 #include "confdefs.h"
6113 void *p = alloca(2 * sizeof(int));
6116 if { (eval echo configure:6117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6118 ac_cv_header_alloca_h=yes
6120 echo "configure: failed program was:" >&5
6121 cat conftest.$ac_ext >&5
6123 ac_cv_header_alloca_h=no
6128 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
6129 if test $ac_cv_header_alloca_h = yes; then
6130 cat >> confdefs.h <<\EOF
6131 #define HAVE_ALLOCA_H 1
6136 echo $ac_n "checking for alloca""... $ac_c" 1>&6
6137 echo "configure:6138: checking for alloca" >&5
6138 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
6139 echo $ac_n "(cached) $ac_c" 1>&6
6141 cat > conftest.$ac_ext <<EOF
6142 #line 6143 "configure"
6143 #include "confdefs.h"
6146 # define alloca __builtin_alloca
6149 # include <malloc.h>
6150 # define alloca _alloca
6153 # include <alloca.h>
6158 # ifndef alloca /* predefined by HP cc +Olibcalls */
6167 char *p = (char *) alloca(1);
6170 if { (eval echo configure:6171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6172 ac_cv_func_alloca_works=yes
6174 echo "configure: failed program was:" >&5
6175 cat conftest.$ac_ext >&5
6177 ac_cv_func_alloca_works=no
6182 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
6183 if test $ac_cv_func_alloca_works = yes; then
6184 cat >> confdefs.h <<\EOF
6185 #define HAVE_ALLOCA 1
6190 if test $ac_cv_func_alloca_works = no; then
6191 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6192 # that cause trouble. Some versions do not even contain alloca or
6193 # contain a buggy version. If you still want to use their alloca,
6194 # use ar to extract alloca.o from them instead of compiling alloca.c.
6195 ALLOCA=alloca.${ac_objext}
6196 cat >> confdefs.h <<\EOF
6201 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
6202 echo "configure:6203: checking whether alloca needs Cray hooks" >&5
6203 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
6204 echo $ac_n "(cached) $ac_c" 1>&6
6206 cat > conftest.$ac_ext <<EOF
6207 #line 6208 "configure"
6208 #include "confdefs.h"
6209 #if defined(CRAY) && ! defined(CRAY2)
6216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6217 egrep "webecray" >/dev/null 2>&1; then
6228 echo "$ac_t""$ac_cv_os_cray" 1>&6
6229 if test $ac_cv_os_cray = yes; then
6230 for ac_func in _getb67 GETB67 getb67; do
6231 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6232 echo "configure:6233: checking for $ac_func" >&5
6233 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6234 echo $ac_n "(cached) $ac_c" 1>&6
6236 cat > conftest.$ac_ext <<EOF
6237 #line 6238 "configure"
6238 #include "confdefs.h"
6239 /* System header to define __stub macros and hopefully few prototypes,
6240 which can conflict with char $ac_func(); below. */
6242 /* Override any gcc2 internal prototype to avoid an error. */
6243 /* We use char because int might match the return type of a gcc2
6244 builtin and then its argument prototype would still apply. */
6249 /* The GNU C library defines this for functions which it implements
6250 to always fail with ENOSYS. Some functions are actually named
6251 something starting with __ and the normal name is an alias. */
6252 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6260 if { (eval echo configure:6261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6262 eval "ac_cv_func_$ac_func=yes"
6264 echo "configure: failed program was:" >&5
6265 cat conftest.$ac_ext >&5
6267 eval "ac_cv_func_$ac_func=no"
6272 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6273 echo "$ac_t""yes" 1>&6
6274 cat >> confdefs.h <<EOF
6275 #define CRAY_STACKSEG_END $ac_func
6280 echo "$ac_t""no" 1>&6
6286 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
6287 echo "configure:6288: checking stack direction for C alloca" >&5
6288 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
6289 echo $ac_n "(cached) $ac_c" 1>&6
6291 if test "$cross_compiling" = yes; then
6292 ac_cv_c_stack_direction=0
6294 cat > conftest.$ac_ext <<EOF
6295 #line 6296 "configure"
6296 #include "confdefs.h"
6297 find_stack_direction ()
6299 static char *addr = 0;
6304 return find_stack_direction ();
6307 return (&dummy > addr) ? 1 : -1;
6311 exit (find_stack_direction() < 0);
6314 if { (eval echo configure:6315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6316 ac_cv_c_stack_direction=1
6318 echo "configure: failed program was:" >&5
6319 cat conftest.$ac_ext >&5
6321 ac_cv_c_stack_direction=-1
6328 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
6329 cat >> confdefs.h <<EOF
6330 #define STACK_DIRECTION $ac_cv_c_stack_direction
6338 # Extract the first word of "$ac_prog", so it can be a program name with args.
6339 set dummy $ac_prog; ac_word=$2
6340 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6341 echo "configure:6342: checking for $ac_word" >&5
6342 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
6343 echo $ac_n "(cached) $ac_c" 1>&6
6345 if test -n "$PERL"; then
6346 ac_cv_prog_PERL="$PERL" # Let the user override the test.
6348 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6350 for ac_dir in $ac_dummy; do
6351 test -z "$ac_dir" && ac_dir=.
6352 if test -f $ac_dir/$ac_word; then
6353 ac_cv_prog_PERL="$ac_prog"
6360 PERL="$ac_cv_prog_PERL"
6361 if test -n "$PERL"; then
6362 echo "$ac_t""$PERL" 1>&6
6364 echo "$ac_t""no" 1>&6
6367 test -n "$PERL" && break
6369 test -n "$PERL" || PERL="false"
6376 SIGNAL_HANDLER=include/i386-signal.h
6379 SIGNAL_HANDLER=include/sparc-signal.h
6382 # SYSDEP_SOURCES=sysdep/ia64.c
6383 # test -d sysdep || mkdir sysdep
6386 SIGNAL_HANDLER=include/dwarf2-signal.h
6389 SIGNAL_HANDLER=include/dwarf2-signal.h
6392 SIGNAL_HANDLER=include/win32-signal.h
6395 SIGNAL_HANDLER=include/default-signal.h
6399 # If we're using sjlj exceptions, forget what we just learned.
6400 if test "$enable_sjlj_exceptions" = yes; then
6401 SIGNAL_HANDLER=include/default-signal.h
6408 if test "${multilib}" = "yes"; then
6409 multilib_arg="--enable-multilib"
6414 # If we find X, set shell vars x_includes and x_libraries to the
6415 # paths, otherwise set no_x=yes.
6416 # Uses ac_ vars as temps to allow command line to override cache and checks.
6417 # --without-x overrides everything else, but does not touch the cache.
6418 echo $ac_n "checking for X""... $ac_c" 1>&6
6419 echo "configure:6420: checking for X" >&5
6421 # Check whether --with-x or --without-x was given.
6422 if test "${with_x+set}" = set; then
6427 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6428 if test "x$with_x" = xno; then
6429 # The user explicitly disabled X.
6432 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6433 # Both variables are already set.
6436 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
6437 echo $ac_n "(cached) $ac_c" 1>&6
6439 # One or both of the vars are not set, and there is no cached value.
6440 ac_x_includes=NO ac_x_libraries=NO
6442 if mkdir conftestdir; then
6444 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6445 cat > Imakefile <<'EOF'
6447 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6449 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6450 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6451 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6452 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6453 for ac_extension in a so sl; do
6454 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6455 test -f $ac_im_libdir/libX11.$ac_extension; then
6456 ac_im_usrlibdir=$ac_im_libdir; break
6459 # Screen out bogus values from the imake configuration. They are
6460 # bogus both because they are the default anyway, and because
6461 # using them would break gcc on systems where it needs fixed includes.
6462 case "$ac_im_incroot" in
6464 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
6466 case "$ac_im_usrlibdir" in
6468 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
6475 if test "$ac_x_includes" = NO; then
6476 # Guess where to find include files, by looking for this one X11 .h file.
6477 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
6479 # First, try using that file with no special directory specified.
6480 cat > conftest.$ac_ext <<EOF
6481 #line 6482 "configure"
6482 #include "confdefs.h"
6483 #include <$x_direct_test_include>
6485 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6486 { (eval echo configure:6487: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6487 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6488 if test -z "$ac_err"; then
6490 # We can compile using X headers with no special include directory.
6494 echo "configure: failed program was:" >&5
6495 cat conftest.$ac_ext >&5
6497 # Look for the header file in a standard set of common directories.
6498 # Check X11 before X11Rn because it is often a symlink to the current release.
6501 /usr/X11R6/include \
6502 /usr/X11R5/include \
6503 /usr/X11R4/include \
6506 /usr/include/X11R6 \
6507 /usr/include/X11R5 \
6508 /usr/include/X11R4 \
6510 /usr/local/X11/include \
6511 /usr/local/X11R6/include \
6512 /usr/local/X11R5/include \
6513 /usr/local/X11R4/include \
6515 /usr/local/include/X11 \
6516 /usr/local/include/X11R6 \
6517 /usr/local/include/X11R5 \
6518 /usr/local/include/X11R4 \
6522 /usr/XFree86/include/X11 \
6525 /usr/local/include \
6526 /usr/unsupported/include \
6527 /usr/athena/include \
6528 /usr/local/x11r5/include \
6529 /usr/lpp/Xamples/include \
6531 /usr/openwin/include \
6532 /usr/openwin/share/include \
6535 if test -r "$ac_dir/$x_direct_test_include"; then
6536 ac_x_includes=$ac_dir
6542 fi # $ac_x_includes = NO
6544 if test "$ac_x_libraries" = NO; then
6545 # Check for the libraries.
6547 test -z "$x_direct_test_library" && x_direct_test_library=Xt
6548 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
6550 # See if we find them without any special options.
6551 # Don't add to $LIBS permanently.
6552 ac_save_LIBS="$LIBS"
6553 LIBS="-l$x_direct_test_library $LIBS"
6554 cat > conftest.$ac_ext <<EOF
6555 #line 6556 "configure"
6556 #include "confdefs.h"
6559 ${x_direct_test_function}()
6562 if { (eval echo configure:6563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6564 LIBS="$ac_save_LIBS"
6565 # We can link X programs with no special library path.
6568 echo "configure: failed program was:" >&5
6569 cat conftest.$ac_ext >&5
6571 LIBS="$ac_save_LIBS"
6572 # First see if replacing the include by lib works.
6573 # Check X11 before X11Rn because it is often a symlink to the current release.
6574 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
6585 /usr/local/X11/lib \
6586 /usr/local/X11R6/lib \
6587 /usr/local/X11R5/lib \
6588 /usr/local/X11R4/lib \
6590 /usr/local/lib/X11 \
6591 /usr/local/lib/X11R6 \
6592 /usr/local/lib/X11R5 \
6593 /usr/local/lib/X11R4 \
6597 /usr/XFree86/lib/X11 \
6601 /usr/unsupported/lib \
6603 /usr/local/x11r5/lib \
6604 /usr/lpp/Xamples/lib \
6608 /usr/openwin/share/lib \
6611 for ac_extension in a so sl; do
6612 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
6613 ac_x_libraries=$ac_dir
6620 fi # $ac_x_libraries = NO
6622 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
6623 # Didn't find X anywhere. Cache the known absence of X.
6624 ac_cv_have_x="have_x=no"
6626 # Record where we found X for the cache.
6627 ac_cv_have_x="have_x=yes \
6628 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6632 eval "$ac_cv_have_x"
6635 if test "$have_x" != yes; then
6636 echo "$ac_t""$have_x" 1>&6
6639 # If each of the values was on the command line, it overrides each guess.
6640 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6641 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6642 # Update the cache value to reflect the command line values.
6643 ac_cv_have_x="have_x=yes \
6644 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6645 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
6648 if test "$no_x" = yes; then
6649 # Not all programs may use this symbol, but it does not hurt to define it.
6650 cat >> confdefs.h <<\EOF
6651 #define X_DISPLAY_MISSING 1
6654 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6656 if test -n "$x_includes"; then
6657 X_CFLAGS="$X_CFLAGS -I$x_includes"
6660 # It would also be nice to do this for all -L options, not just this one.
6661 if test -n "$x_libraries"; then
6662 X_LIBS="$X_LIBS -L$x_libraries"
6663 # For Solaris; some versions of Sun CC require a space after -R and
6664 # others require no space. Words are not sufficient . . . .
6665 case "`(uname -sr) 2>/dev/null`" in
6667 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
6668 echo "configure:6669: checking whether -R must be followed by a space" >&5
6669 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
6670 cat > conftest.$ac_ext <<EOF
6671 #line 6672 "configure"
6672 #include "confdefs.h"
6678 if { (eval echo configure:6679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6682 echo "configure: failed program was:" >&5
6683 cat conftest.$ac_ext >&5
6688 if test $ac_R_nospace = yes; then
6689 echo "$ac_t""no" 1>&6
6690 X_LIBS="$X_LIBS -R$x_libraries"
6692 LIBS="$ac_xsave_LIBS -R $x_libraries"
6693 cat > conftest.$ac_ext <<EOF
6694 #line 6695 "configure"
6695 #include "confdefs.h"
6701 if { (eval echo configure:6702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6705 echo "configure: failed program was:" >&5
6706 cat conftest.$ac_ext >&5
6711 if test $ac_R_space = yes; then
6712 echo "$ac_t""yes" 1>&6
6713 X_LIBS="$X_LIBS -R $x_libraries"
6715 echo "$ac_t""neither works" 1>&6
6718 LIBS="$ac_xsave_LIBS"
6722 # Check for system-dependent libraries X programs must link with.
6723 # Do this before checking for the system-independent R6 libraries
6724 # (-lICE), since we may need -lsocket or whatever for X linking.
6726 if test "$ISC" = yes; then
6727 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6729 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
6730 # libraries were built with DECnet support. And karl@cs.umb.edu says
6731 # the Alpha needs dnet_stub (dnet does not exist).
6732 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
6733 echo "configure:6734: checking for dnet_ntoa in -ldnet" >&5
6734 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6735 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6736 echo $ac_n "(cached) $ac_c" 1>&6
6738 ac_save_LIBS="$LIBS"
6740 cat > conftest.$ac_ext <<EOF
6741 #line 6742 "configure"
6742 #include "confdefs.h"
6743 /* Override any gcc2 internal prototype to avoid an error. */
6744 /* We use char because int might match the return type of a gcc2
6745 builtin and then its argument prototype would still apply. */
6752 if { (eval echo configure:6753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6754 eval "ac_cv_lib_$ac_lib_var=yes"
6756 echo "configure: failed program was:" >&5
6757 cat conftest.$ac_ext >&5
6759 eval "ac_cv_lib_$ac_lib_var=no"
6762 LIBS="$ac_save_LIBS"
6765 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6766 echo "$ac_t""yes" 1>&6
6767 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6769 echo "$ac_t""no" 1>&6
6772 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6773 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
6774 echo "configure:6775: checking for dnet_ntoa in -ldnet_stub" >&5
6775 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6776 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6777 echo $ac_n "(cached) $ac_c" 1>&6
6779 ac_save_LIBS="$LIBS"
6780 LIBS="-ldnet_stub $LIBS"
6781 cat > conftest.$ac_ext <<EOF
6782 #line 6783 "configure"
6783 #include "confdefs.h"
6784 /* Override any gcc2 internal prototype to avoid an error. */
6785 /* We use char because int might match the return type of a gcc2
6786 builtin and then its argument prototype would still apply. */
6793 if { (eval echo configure:6794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6795 eval "ac_cv_lib_$ac_lib_var=yes"
6797 echo "configure: failed program was:" >&5
6798 cat conftest.$ac_ext >&5
6800 eval "ac_cv_lib_$ac_lib_var=no"
6803 LIBS="$ac_save_LIBS"
6806 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6807 echo "$ac_t""yes" 1>&6
6808 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6810 echo "$ac_t""no" 1>&6
6815 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6816 # to get the SysV transport functions.
6817 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
6819 # The nsl library prevents programs from opening the X display
6820 # on Irix 5.2, according to dickey@clark.net.
6821 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
6822 echo "configure:6823: checking for gethostbyname" >&5
6823 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
6824 echo $ac_n "(cached) $ac_c" 1>&6
6826 cat > conftest.$ac_ext <<EOF
6827 #line 6828 "configure"
6828 #include "confdefs.h"
6829 /* System header to define __stub macros and hopefully few prototypes,
6830 which can conflict with char gethostbyname(); below. */
6832 /* Override any gcc2 internal prototype to avoid an error. */
6833 /* We use char because int might match the return type of a gcc2
6834 builtin and then its argument prototype would still apply. */
6835 char gethostbyname();
6839 /* The GNU C library defines this for functions which it implements
6840 to always fail with ENOSYS. Some functions are actually named
6841 something starting with __ and the normal name is an alias. */
6842 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6850 if { (eval echo configure:6851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6852 eval "ac_cv_func_gethostbyname=yes"
6854 echo "configure: failed program was:" >&5
6855 cat conftest.$ac_ext >&5
6857 eval "ac_cv_func_gethostbyname=no"
6862 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
6863 echo "$ac_t""yes" 1>&6
6866 echo "$ac_t""no" 1>&6
6869 if test $ac_cv_func_gethostbyname = no; then
6870 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
6871 echo "configure:6872: checking for gethostbyname in -lnsl" >&5
6872 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
6873 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6874 echo $ac_n "(cached) $ac_c" 1>&6
6876 ac_save_LIBS="$LIBS"
6878 cat > conftest.$ac_ext <<EOF
6879 #line 6880 "configure"
6880 #include "confdefs.h"
6881 /* Override any gcc2 internal prototype to avoid an error. */
6882 /* We use char because int might match the return type of a gcc2
6883 builtin and then its argument prototype would still apply. */
6884 char gethostbyname();
6890 if { (eval echo configure:6891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6892 eval "ac_cv_lib_$ac_lib_var=yes"
6894 echo "configure: failed program was:" >&5
6895 cat conftest.$ac_ext >&5
6897 eval "ac_cv_lib_$ac_lib_var=no"
6900 LIBS="$ac_save_LIBS"
6903 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6904 echo "$ac_t""yes" 1>&6
6905 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6907 echo "$ac_t""no" 1>&6
6912 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6913 # socket/setsockopt and other routines are undefined under SCO ODT
6914 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6915 # on later versions), says simon@lia.di.epfl.ch: it contains
6916 # gethostby* variants that don't use the nameserver (or something).
6917 # -lsocket must be given before -lnsl if both are needed.
6918 # We assume that if connect needs -lnsl, so does gethostbyname.
6919 echo $ac_n "checking for connect""... $ac_c" 1>&6
6920 echo "configure:6921: checking for connect" >&5
6921 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
6922 echo $ac_n "(cached) $ac_c" 1>&6
6924 cat > conftest.$ac_ext <<EOF
6925 #line 6926 "configure"
6926 #include "confdefs.h"
6927 /* System header to define __stub macros and hopefully few prototypes,
6928 which can conflict with char connect(); below. */
6930 /* Override any gcc2 internal prototype to avoid an error. */
6931 /* We use char because int might match the return type of a gcc2
6932 builtin and then its argument prototype would still apply. */
6937 /* The GNU C library defines this for functions which it implements
6938 to always fail with ENOSYS. Some functions are actually named
6939 something starting with __ and the normal name is an alias. */
6940 #if defined (__stub_connect) || defined (__stub___connect)
6948 if { (eval echo configure:6949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6950 eval "ac_cv_func_connect=yes"
6952 echo "configure: failed program was:" >&5
6953 cat conftest.$ac_ext >&5
6955 eval "ac_cv_func_connect=no"
6960 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
6961 echo "$ac_t""yes" 1>&6
6964 echo "$ac_t""no" 1>&6
6967 if test $ac_cv_func_connect = no; then
6968 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
6969 echo "configure:6970: checking for connect in -lsocket" >&5
6970 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
6971 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6972 echo $ac_n "(cached) $ac_c" 1>&6
6974 ac_save_LIBS="$LIBS"
6975 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6976 cat > conftest.$ac_ext <<EOF
6977 #line 6978 "configure"
6978 #include "confdefs.h"
6979 /* Override any gcc2 internal prototype to avoid an error. */
6980 /* We use char because int might match the return type of a gcc2
6981 builtin and then its argument prototype would still apply. */
6988 if { (eval echo configure:6989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6990 eval "ac_cv_lib_$ac_lib_var=yes"
6992 echo "configure: failed program was:" >&5
6993 cat conftest.$ac_ext >&5
6995 eval "ac_cv_lib_$ac_lib_var=no"
6998 LIBS="$ac_save_LIBS"
7001 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7002 echo "$ac_t""yes" 1>&6
7003 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7005 echo "$ac_t""no" 1>&6
7010 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
7011 echo $ac_n "checking for remove""... $ac_c" 1>&6
7012 echo "configure:7013: checking for remove" >&5
7013 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
7014 echo $ac_n "(cached) $ac_c" 1>&6
7016 cat > conftest.$ac_ext <<EOF
7017 #line 7018 "configure"
7018 #include "confdefs.h"
7019 /* System header to define __stub macros and hopefully few prototypes,
7020 which can conflict with char remove(); below. */
7022 /* Override any gcc2 internal prototype to avoid an error. */
7023 /* We use char because int might match the return type of a gcc2
7024 builtin and then its argument prototype would still apply. */
7029 /* The GNU C library defines this for functions which it implements
7030 to always fail with ENOSYS. Some functions are actually named
7031 something starting with __ and the normal name is an alias. */
7032 #if defined (__stub_remove) || defined (__stub___remove)
7040 if { (eval echo configure:7041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7042 eval "ac_cv_func_remove=yes"
7044 echo "configure: failed program was:" >&5
7045 cat conftest.$ac_ext >&5
7047 eval "ac_cv_func_remove=no"
7052 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
7053 echo "$ac_t""yes" 1>&6
7056 echo "$ac_t""no" 1>&6
7059 if test $ac_cv_func_remove = no; then
7060 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
7061 echo "configure:7062: checking for remove in -lposix" >&5
7062 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
7063 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7064 echo $ac_n "(cached) $ac_c" 1>&6
7066 ac_save_LIBS="$LIBS"
7067 LIBS="-lposix $LIBS"
7068 cat > conftest.$ac_ext <<EOF
7069 #line 7070 "configure"
7070 #include "confdefs.h"
7071 /* Override any gcc2 internal prototype to avoid an error. */
7072 /* We use char because int might match the return type of a gcc2
7073 builtin and then its argument prototype would still apply. */
7080 if { (eval echo configure:7081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7082 eval "ac_cv_lib_$ac_lib_var=yes"
7084 echo "configure: failed program was:" >&5
7085 cat conftest.$ac_ext >&5
7087 eval "ac_cv_lib_$ac_lib_var=no"
7090 LIBS="$ac_save_LIBS"
7093 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7094 echo "$ac_t""yes" 1>&6
7095 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7097 echo "$ac_t""no" 1>&6
7102 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7103 echo $ac_n "checking for shmat""... $ac_c" 1>&6
7104 echo "configure:7105: checking for shmat" >&5
7105 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
7106 echo $ac_n "(cached) $ac_c" 1>&6
7108 cat > conftest.$ac_ext <<EOF
7109 #line 7110 "configure"
7110 #include "confdefs.h"
7111 /* System header to define __stub macros and hopefully few prototypes,
7112 which can conflict with char shmat(); below. */
7114 /* Override any gcc2 internal prototype to avoid an error. */
7115 /* We use char because int might match the return type of a gcc2
7116 builtin and then its argument prototype would still apply. */
7121 /* The GNU C library defines this for functions which it implements
7122 to always fail with ENOSYS. Some functions are actually named
7123 something starting with __ and the normal name is an alias. */
7124 #if defined (__stub_shmat) || defined (__stub___shmat)
7132 if { (eval echo configure:7133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7134 eval "ac_cv_func_shmat=yes"
7136 echo "configure: failed program was:" >&5
7137 cat conftest.$ac_ext >&5
7139 eval "ac_cv_func_shmat=no"
7144 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
7145 echo "$ac_t""yes" 1>&6
7148 echo "$ac_t""no" 1>&6
7151 if test $ac_cv_func_shmat = no; then
7152 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
7153 echo "configure:7154: checking for shmat in -lipc" >&5
7154 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
7155 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7156 echo $ac_n "(cached) $ac_c" 1>&6
7158 ac_save_LIBS="$LIBS"
7160 cat > conftest.$ac_ext <<EOF
7161 #line 7162 "configure"
7162 #include "confdefs.h"
7163 /* Override any gcc2 internal prototype to avoid an error. */
7164 /* We use char because int might match the return type of a gcc2
7165 builtin and then its argument prototype would still apply. */
7172 if { (eval echo configure:7173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7174 eval "ac_cv_lib_$ac_lib_var=yes"
7176 echo "configure: failed program was:" >&5
7177 cat conftest.$ac_ext >&5
7179 eval "ac_cv_lib_$ac_lib_var=no"
7182 LIBS="$ac_save_LIBS"
7185 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7186 echo "$ac_t""yes" 1>&6
7187 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7189 echo "$ac_t""no" 1>&6
7195 # Check for libraries that X11R6 Xt/Xaw programs need.
7196 ac_save_LDFLAGS="$LDFLAGS"
7197 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7198 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7199 # check for ICE first), but we must link in the order -lSM -lICE or
7200 # we get undefined symbols. So assume we have SM if we have ICE.
7201 # These have to be linked with before -lX11, unlike the other
7202 # libraries we check for below, so use a different variable.
7203 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
7204 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
7205 echo "configure:7206: checking for IceConnectionNumber in -lICE" >&5
7206 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
7207 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7208 echo $ac_n "(cached) $ac_c" 1>&6
7210 ac_save_LIBS="$LIBS"
7211 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7212 cat > conftest.$ac_ext <<EOF
7213 #line 7214 "configure"
7214 #include "confdefs.h"
7215 /* Override any gcc2 internal prototype to avoid an error. */
7216 /* We use char because int might match the return type of a gcc2
7217 builtin and then its argument prototype would still apply. */
7218 char IceConnectionNumber();
7221 IceConnectionNumber()
7224 if { (eval echo configure:7225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7226 eval "ac_cv_lib_$ac_lib_var=yes"
7228 echo "configure: failed program was:" >&5
7229 cat conftest.$ac_ext >&5
7231 eval "ac_cv_lib_$ac_lib_var=no"
7234 LIBS="$ac_save_LIBS"
7237 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7238 echo "$ac_t""yes" 1>&6
7239 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7241 echo "$ac_t""no" 1>&6
7244 LDFLAGS="$ac_save_LDFLAGS"
7249 # Check whether --enable-java-awt or --disable-java-awt was given.
7250 if test "${enable_java_awt+set}" = set; then
7251 enableval="$enable_java_awt"
7256 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
7260 for peer in $peerlibs ; do
7263 if test "$no_x" = yes; then
7264 echo "*** xlib peers requested but no X library available" 1>&2
7279 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
7286 if test "$use_xlib_awt" = yes; then
7295 if test "$use_gtk_awt" = yes; then
7307 # We get this from the environment.
7311 cat > confcache <<\EOF
7312 # This file is a shell script that caches the results of configure
7313 # tests run on this system so they can be shared between configure
7314 # scripts and configure runs. It is not useful on other systems.
7315 # If it contains results you don't want to keep, you may remove or edit it.
7317 # By default, configure uses ./config.cache as the cache file,
7318 # creating it if it does not exist already. You can give configure
7319 # the --cache-file=FILE option to use a different cache file; that is
7320 # what configure does when it calls configure scripts in
7321 # subdirectories, so they share the cache.
7322 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7323 # config.status only pays attention to the cache file if you give it the
7324 # --recheck option to rerun configure.
7327 # The following way of writing the cache mishandles newlines in values,
7328 # but we know of no workaround that is simple, portable, and efficient.
7329 # So, don't put newlines in cache variables' values.
7330 # Ultrix sh set writes to stderr and can't be redirected directly,
7331 # and sets the high bit in the cache file unless we assign to the vars.
7333 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7335 # `set' does not quote correctly, so add quotes (double-quote substitution
7336 # turns \\\\ into \\, and sed turns \\ into \).
7338 -e "s/'/'\\\\''/g" \
7339 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7342 # `set' quotes correctly as required by POSIX, so do not add quotes.
7343 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7346 if cmp -s $cache_file confcache; then
7349 if test -w $cache_file; then
7350 echo "updating cache $cache_file"
7351 cat confcache > $cache_file
7353 echo "not updating unwritable cache $cache_file"
7358 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7360 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7361 # Let make expand exec_prefix.
7362 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7364 # Any assignment to VPATH causes Sun make to only execute
7365 # the first set of double-colon rules, so remove it if not needed.
7366 # If there is a colon in the path, we need to keep it.
7367 if test "x$srcdir" = x.; then
7368 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7371 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7373 DEFS=-DHAVE_CONFIG_H
7375 # Without the "./", some shells look in PATH for config.status.
7376 : ${CONFIG_STATUS=./config.status}
7378 echo creating $CONFIG_STATUS
7379 rm -f $CONFIG_STATUS
7380 cat > $CONFIG_STATUS <<EOF
7382 # Generated automatically by configure.
7383 # Run this file to recreate the current configuration.
7384 # This directory was configured as follows,
7385 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7387 # $0 $ac_configure_args
7389 # Compiler output produced by configure, useful for debugging
7390 # configure, is in ./config.log if it exists.
7392 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7395 case "\$ac_option" in
7396 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7397 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7398 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7399 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7400 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7402 -help | --help | --hel | --he | --h)
7403 echo "\$ac_cs_usage"; exit 0 ;;
7404 *) echo "\$ac_cs_usage"; exit 1 ;;
7408 ac_given_srcdir=$srcdir
7409 ac_given_INSTALL="$INSTALL"
7411 trap 'rm -fr `echo "Makefile libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile include/config.h gcj/libgcj-config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7413 cat >> $CONFIG_STATUS <<EOF
7415 # Protect against being on the right side of a sed subst in config.status.
7416 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7417 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7421 s%@CFLAGS@%$CFLAGS%g
7422 s%@CPPFLAGS@%$CPPFLAGS%g
7423 s%@CXXFLAGS@%$CXXFLAGS%g
7424 s%@FFLAGS@%$FFLAGS%g
7426 s%@LDFLAGS@%$LDFLAGS%g
7428 s%@exec_prefix@%$exec_prefix%g
7429 s%@prefix@%$prefix%g
7430 s%@program_transform_name@%$program_transform_name%g
7431 s%@bindir@%$bindir%g
7432 s%@sbindir@%$sbindir%g
7433 s%@libexecdir@%$libexecdir%g
7434 s%@datadir@%$datadir%g
7435 s%@sysconfdir@%$sysconfdir%g
7436 s%@sharedstatedir@%$sharedstatedir%g
7437 s%@localstatedir@%$localstatedir%g
7438 s%@libdir@%$libdir%g
7439 s%@includedir@%$includedir%g
7440 s%@oldincludedir@%$oldincludedir%g
7441 s%@infodir@%$infodir%g
7442 s%@mandir@%$mandir%g
7444 s%@libgcj_basedir@%$libgcj_basedir%g
7445 s%@mkinstalldirs@%$mkinstalldirs%g
7447 s%@host_alias@%$host_alias%g
7448 s%@host_cpu@%$host_cpu%g
7449 s%@host_vendor@%$host_vendor%g
7450 s%@host_os@%$host_os%g
7451 s%@target@%$target%g
7452 s%@target_alias@%$target_alias%g
7453 s%@target_cpu@%$target_cpu%g
7454 s%@target_vendor@%$target_vendor%g
7455 s%@target_os@%$target_os%g
7457 s%@build_alias@%$build_alias%g
7458 s%@build_cpu@%$build_cpu%g
7459 s%@build_vendor@%$build_vendor%g
7460 s%@build_os@%$build_os%g
7463 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7464 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7465 s%@INSTALL_DATA@%$INSTALL_DATA%g
7466 s%@PACKAGE@%$PACKAGE%g
7467 s%@VERSION@%$VERSION%g
7468 s%@ACLOCAL@%$ACLOCAL%g
7469 s%@AUTOCONF@%$AUTOCONF%g
7470 s%@AUTOMAKE@%$AUTOMAKE%g
7471 s%@AUTOHEADER@%$AUTOHEADER%g
7472 s%@MAKEINFO@%$MAKEINFO%g
7473 s%@SET_MAKE@%$SET_MAKE%g
7476 s%@RANLIB@%$RANLIB%g
7477 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7478 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7480 s%@EXEEXT@%$EXEEXT%g
7481 s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
7482 s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
7483 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
7484 s%@INCLTDL@%$INCLTDL%g
7485 s%@LIBLTDL@%$LIBLTDL%g
7486 s%@DIRLTDL@%$DIRLTDL%g
7487 s%@OBJEXT@%$OBJEXT%g
7489 s%@LIBTOOL@%$LIBTOOL%g
7490 s%@CXXCPP@%$CXXCPP%g
7491 s%@subdirs@%$subdirs%g
7492 s%@COMPPATH@%$COMPPATH%g
7493 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
7494 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
7495 s%@LIBGCJDEBUG@%$LIBGCJDEBUG%g
7496 s%@LIBFFI@%$LIBFFI%g
7497 s%@LIBFFIINCS@%$LIBFFIINCS%g
7498 s%@PLATFORMOBJS@%$PLATFORMOBJS%g
7500 s%@SYSTEMSPEC@%$SYSTEMSPEC%g
7501 s%@LIBGCJTESTSPEC@%$LIBGCJTESTSPEC%g
7502 s%@ZLIBSPEC@%$ZLIBSPEC%g
7503 s%@ZLIBTESTSPEC@%$ZLIBTESTSPEC%g
7504 s%@GCLIBS@%$GCLIBS%g
7505 s%@GCINCS@%$GCINCS%g
7506 s%@GCDEPS@%$GCDEPS%g
7507 s%@GCOBJS@%$GCOBJS%g
7508 s%@GCSPEC@%$GCSPEC%g
7509 s%@JC1GCSPEC@%$JC1GCSPEC%g
7510 s%@GCTESTSPEC@%$GCTESTSPEC%g
7511 s%@THREADLIBS@%$THREADLIBS%g
7512 s%@THREADINCS@%$THREADINCS%g
7513 s%@THREADDEPS@%$THREADDEPS%g
7514 s%@THREADOBJS@%$THREADOBJS%g
7515 s%@THREADSPEC@%$THREADSPEC%g
7516 s%@HASH_SYNC_SPEC@%$HASH_SYNC_SPEC%g
7517 s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
7518 s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
7519 s%@LIBICONV@%$LIBICONV%g
7521 s%@GCJFLAGS@%$GCJFLAGS%g
7525 s%@DIVIDESPEC@%$DIVIDESPEC%g
7526 s%@EXCEPTIONSPEC@%$EXCEPTIONSPEC%g
7527 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
7528 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
7529 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
7530 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
7531 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
7532 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
7533 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
7534 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
7535 s%@NEEDS_DATA_START_TRUE@%$NEEDS_DATA_START_TRUE%g
7536 s%@NEEDS_DATA_START_FALSE@%$NEEDS_DATA_START_FALSE%g
7537 s%@GCC_UNWIND_INCLUDE@%$GCC_UNWIND_INCLUDE%g
7538 s%@GCJVERSION@%$GCJVERSION%g
7539 s%@AM_RUNTESTFLAGS@%$AM_RUNTESTFLAGS%g
7540 s%@ALLOCA@%$ALLOCA%g
7542 s%@SYSDEP_SOURCES@%$SYSDEP_SOURCES%g
7543 s%@X_CFLAGS@%$X_CFLAGS%g
7544 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
7545 s%@X_LIBS@%$X_LIBS%g
7546 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
7547 s%@XLIB_AWT_TRUE@%$XLIB_AWT_TRUE%g
7548 s%@XLIB_AWT_FALSE@%$XLIB_AWT_FALSE%g
7549 s%@GTK_AWT_TRUE@%$GTK_AWT_TRUE%g
7550 s%@GTK_AWT_FALSE@%$GTK_AWT_FALSE%g
7556 cat >> $CONFIG_STATUS <<\EOF
7558 # Split the substitutions into bite-sized pieces for seds with
7559 # small command number limits, like on Digital OSF/1 and HP-UX.
7560 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7561 ac_file=1 # Number of current file.
7562 ac_beg=1 # First line for current file.
7563 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7566 while $ac_more_lines; do
7567 if test $ac_beg -gt 1; then
7568 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7570 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7572 if test ! -s conftest.s$ac_file; then
7574 rm -f conftest.s$ac_file
7576 if test -z "$ac_sed_cmds"; then
7577 ac_sed_cmds="sed -f conftest.s$ac_file"
7579 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7581 ac_file=`expr $ac_file + 1`
7583 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7586 if test -z "$ac_sed_cmds"; then
7591 cat >> $CONFIG_STATUS <<EOF
7593 CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"}
7595 cat >> $CONFIG_STATUS <<\EOF
7596 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7597 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7599 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7600 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7601 *) ac_file_in="${ac_file}.in" ;;
7604 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7606 # Remove last slash and all that follows it. Not all systems have dirname.
7607 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7608 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7609 # The file is in a subdirectory.
7610 test ! -d "$ac_dir" && mkdir "$ac_dir"
7611 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7612 # A "../" for each directory in $ac_dir_suffix.
7613 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7615 ac_dir_suffix= ac_dots=
7618 case "$ac_given_srcdir" in
7620 if test -z "$ac_dots"; then top_srcdir=.
7621 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7622 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7624 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7625 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7628 case "$ac_given_INSTALL" in
7629 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7630 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7633 echo creating "$ac_file"
7635 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7637 *Makefile*) ac_comsub="1i\\
7638 # $configure_input" ;;
7642 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7644 s%@configure_input@%$configure_input%g
7645 s%@srcdir@%$srcdir%g
7646 s%@top_srcdir@%$top_srcdir%g
7647 s%@INSTALL@%$INSTALL%g
7648 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7652 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7653 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7655 # ac_d sets the value in "#define NAME VALUE" lines.
7656 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7657 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7660 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7661 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7662 ac_uB='\([ ]\)%\1#\2define\3'
7665 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7666 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7667 ac_eB='$%\1#\2define\3'
7671 if test "${CONFIG_HEADERS+set}" != set; then
7673 cat >> $CONFIG_STATUS <<EOF
7674 CONFIG_HEADERS="include/config.h gcj/libgcj-config.h"
7676 cat >> $CONFIG_STATUS <<\EOF
7678 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7679 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7681 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7682 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7683 *) ac_file_in="${ac_file}.in" ;;
7686 echo creating $ac_file
7688 rm -f conftest.frag conftest.in conftest.out
7689 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7690 cat $ac_file_inputs > conftest.in
7694 # Transform confdefs.h into a sed script conftest.vals that substitutes
7695 # the proper values into config.h.in to produce config.h. And first:
7696 # Protect against being on the right side of a sed subst in config.status.
7697 # Protect against being in an unquoted here document in config.status.
7699 cat > conftest.hdr <<\EOF
7702 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7706 sed -n -f conftest.hdr confdefs.h > conftest.vals
7709 # This sed command replaces #undef with comments. This is necessary, for
7710 # example, in the case of _POSIX_SOURCE, which is predefined and required
7711 # on some systems where configure will not decide to define it.
7712 cat >> conftest.vals <<\EOF
7713 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7716 # Break up conftest.vals because some shells have a limit on
7717 # the size of here documents, and old seds have small limits too.
7722 ac_lines=`grep -c . conftest.vals`
7723 # grep -c gives empty output for an empty file on some AIX systems.
7724 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7725 # Write a limited-size here document to conftest.frag.
7726 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7727 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7729 sed -f conftest.frag conftest.in > conftest.out
7731 mv conftest.out conftest.in
7733 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7735 mv conftest.tail conftest.vals
7739 cat >> $CONFIG_STATUS <<\EOF
7740 rm -f conftest.frag conftest.h
7741 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7742 cat conftest.in >> conftest.h
7744 if cmp -s $ac_file conftest.h 2>/dev/null; then
7745 echo "$ac_file is unchanged"
7748 # Remove last slash and all that follows it. Not all systems have dirname.
7749 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7750 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7751 # The file is in a subdirectory.
7752 test ! -d "$ac_dir" && mkdir "$ac_dir"
7755 mv conftest.h $ac_file
7761 cat >> $CONFIG_STATUS <<EOF
7762 ac_sources="include/$PLATFORMH java/io/natFileDescriptor${PLATFORM}.cc java/lang/${PLATFORM}Process.java java/lang/nat${PLATFORM}Process.cc include/$GCHDR include/$THREADH $SIGNAL_HANDLER"
7763 ac_dests="include/platform.h java/io/natFileDescriptor.cc java/lang/ConcreteProcess.java java/lang/natConcreteProcess.cc include/java-gc.h include/java-threads.h include/java-signal.h"
7766 cat >> $CONFIG_STATUS <<\EOF
7767 srcdir=$ac_given_srcdir
7768 while test -n "$ac_sources"; do
7769 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7770 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7772 echo "linking $srcdir/$ac_source to $ac_dest"
7774 if test ! -r $srcdir/$ac_source; then
7775 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
7779 # Make relative symlinks.
7780 # Remove last slash and all that follows it. Not all systems have dirname.
7781 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
7782 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
7783 # The dest file is in a subdirectory.
7784 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
7785 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
7786 # A "../" for each directory in $ac_dest_dir_suffix.
7787 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
7789 ac_dest_dir_suffix= ac_dots=
7793 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
7794 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
7797 # Make a symlink if possible; otherwise try a hard link.
7798 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
7799 ln $srcdir/$ac_source $ac_dest; then :
7801 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
7805 cat >> $CONFIG_STATUS <<EOF
7810 with_multisubdir=${with_multisubdir}
7811 ac_configure_args="${multilib_arg} ${ac_configure_args}"
7812 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
7813 libgcj_basedir=${libgcj_basedir}
7818 cat >> $CONFIG_STATUS <<\EOF
7820 for am_file in include/config.h gcj/libgcj-config.h; do
7821 case " $CONFIG_HEADERS " in
7823 echo timestamp > `echo $am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
7826 am_indx=`expr "$am_indx" + 1`
7828 # Only add multilib support code if we just rebuilt top-level Makefile.
7829 case " $CONFIG_FILES " in
7831 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
7835 # Make subdirectories and `.d' files. Look in both srcdir and
7836 # builddir for the .java files.
7839 ( (cd $srcdir && find . \( -name '*.java' -o -name '*.cc' \) -print) ;
7840 find . \( -name '*.java' -o -name '*.cc' \) -print) | \
7841 fgrep -v testsuite | \
7842 sed -e 's/\.java/.d/'\;'s/\.cc/.d/' | \
7844 echo "include $f" >> deps.mk
7847 d=`echo $f | sed -e 's,/[^/]*$,,'`
7849 if test ! -d $d; then
7850 $libgcj_basedir/../mkinstalldirs $d
7858 chmod +x $CONFIG_STATUS
7859 rm -fr confdefs* $ac_clean_files
7860 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7862 if test "$no_recursion" != yes; then
7864 # Remove --cache-file and --srcdir arguments so they do not pile up.
7865 ac_sub_configure_args=
7867 for ac_arg in $ac_configure_args; do
7868 if test -n "$ac_prev"; then
7873 -cache-file | --cache-file | --cache-fil | --cache-fi \
7874 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7875 ac_prev=cache_file ;;
7876 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7877 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
7879 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7881 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7883 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
7887 for ac_config_dir in $DIRLTDL; do
7889 # Do not complain, so a configure script can configure whichever
7890 # parts of a large source tree are present.
7891 if test ! -d $srcdir/$ac_config_dir; then
7895 echo configuring in $ac_config_dir
7900 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
7902 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
7910 # A "../" for each directory in /$ac_config_dir.
7911 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
7914 .) # No --srcdir option. We are building in place.
7915 ac_sub_srcdir=$srcdir ;;
7916 /*) # Absolute path.
7917 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
7919 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
7922 # Check for guested configure; otherwise get Cygnus style configure.
7923 if test -f $ac_sub_srcdir/configure; then
7924 ac_sub_configure=$ac_sub_srcdir/configure
7925 elif test -f $ac_sub_srcdir/configure.in; then
7926 ac_sub_configure=$ac_configure
7928 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
7932 # The recursion is here.
7933 if test -n "$ac_sub_configure"; then
7935 # Make the cache file name correct relative to the subdirectory.
7936 case "$cache_file" in
7937 /*) ac_sub_cache_file=$cache_file ;;
7939 ac_sub_cache_file="$ac_dots$cache_file" ;;
7941 case "$ac_given_INSTALL" in
7942 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7943 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7946 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
7947 # The eval makes quoting arguments work.
7948 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
7951 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }