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-libgcj-debug enable runtime debugging code"
44 --enable-interpreter enable interpreter"
46 --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
48 --disable-java-net disable java.net"
50 --disable-jvmpi disable JVMPI support"
52 --with-ecos enable runtime eCos target support"
54 --with-system-zlib use installed libz"
56 --enable-java-gc=TYPE choose garbage collector [boehm]"
58 --enable-threads=TYPE choose threading package"
60 --with-x use the X Window System"
62 --enable-java-awt list of AWT peer implementations to be built"
64 # Initialize some variables set by options.
65 # The variables have the same names as the options, with
66 # dashes changed to underlines.
68 cache_file=./config.cache
77 program_transform_name=s,x,x,
85 bindir='${exec_prefix}/bin'
86 sbindir='${exec_prefix}/sbin'
87 libexecdir='${exec_prefix}/libexec'
88 datadir='${prefix}/share'
89 sysconfdir='${prefix}/etc'
90 sharedstatedir='${prefix}/com'
91 localstatedir='${prefix}/var'
92 libdir='${exec_prefix}/lib'
93 includedir='${prefix}/include'
94 oldincludedir='/usr/include'
95 infodir='${prefix}/info'
96 mandir='${prefix}/man'
98 # Initialize some other variables.
101 SHELL=${CONFIG_SHELL-/bin/sh}
102 # Maximum number of lines to put in a shell here document.
109 # If the previous option needs an argument, assign it.
110 if test -n "$ac_prev"; then
111 eval "$ac_prev=\$ac_option"
117 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
121 # Accept the important Cygnus configure options, so we can diagnose typos.
125 -bindir | --bindir | --bindi | --bind | --bin | --bi)
127 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
128 bindir="$ac_optarg" ;;
130 -build | --build | --buil | --bui | --bu)
132 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
133 build="$ac_optarg" ;;
135 -cache-file | --cache-file | --cache-fil | --cache-fi \
136 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
137 ac_prev=cache_file ;;
138 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
139 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
140 cache_file="$ac_optarg" ;;
142 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
144 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
146 datadir="$ac_optarg" ;;
148 -disable-* | --disable-*)
149 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
150 # Reject names that are not valid shell variable names.
151 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
152 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
154 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
155 eval "enable_${ac_feature}=no" ;;
157 -enable-* | --enable-*)
158 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
159 # Reject names that are not valid shell variable names.
160 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
161 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
163 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
168 eval "enable_${ac_feature}='$ac_optarg'" ;;
170 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
171 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
172 | --exec | --exe | --ex)
173 ac_prev=exec_prefix ;;
174 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
175 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
176 | --exec=* | --exe=* | --ex=*)
177 exec_prefix="$ac_optarg" ;;
179 -gas | --gas | --ga | --g)
180 # Obsolete; use --with-gas.
183 -help | --help | --hel | --he)
184 # Omit some internal or obsolete options to make the list less imposing.
185 # This message is too long to be a string in the A/UX 3.1 sh.
187 Usage: configure [options] [host]
188 Options: [defaults in brackets after descriptions]
190 --cache-file=FILE cache test results in FILE
191 --help print this message
192 --no-create do not create output files
193 --quiet, --silent do not print \`checking...' messages
194 --version print the version of autoconf that created configure
195 Directory and file names:
196 --prefix=PREFIX install architecture-independent files in PREFIX
198 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
200 --bindir=DIR user executables in DIR [EPREFIX/bin]
201 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
202 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
203 --datadir=DIR read-only architecture-independent data in DIR
205 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
206 --sharedstatedir=DIR modifiable architecture-independent data in DIR
208 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
209 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
210 --includedir=DIR C header files in DIR [PREFIX/include]
211 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
212 --infodir=DIR info documentation in DIR [PREFIX/info]
213 --mandir=DIR man documentation in DIR [PREFIX/man]
214 --srcdir=DIR find the sources in DIR [configure dir or ..]
215 --program-prefix=PREFIX prepend PREFIX to installed program names
216 --program-suffix=SUFFIX append SUFFIX to installed program names
217 --program-transform-name=PROGRAM
218 run sed PROGRAM on installed program names
222 --build=BUILD configure for building on BUILD [BUILD=HOST]
223 --host=HOST configure for HOST [guessed]
224 --target=TARGET configure for TARGET [TARGET=HOST]
225 Features and packages:
226 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
227 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
228 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
229 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
230 --x-includes=DIR X include files are in DIR
231 --x-libraries=DIR X library files are in DIR
233 if test -n "$ac_help"; then
234 echo "--enable and --with options recognized:$ac_help"
238 -host | --host | --hos | --ho)
240 -host=* | --host=* | --hos=* | --ho=*)
243 -includedir | --includedir | --includedi | --included | --include \
244 | --includ | --inclu | --incl | --inc)
245 ac_prev=includedir ;;
246 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
247 | --includ=* | --inclu=* | --incl=* | --inc=*)
248 includedir="$ac_optarg" ;;
250 -infodir | --infodir | --infodi | --infod | --info | --inf)
252 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
253 infodir="$ac_optarg" ;;
255 -libdir | --libdir | --libdi | --libd)
257 -libdir=* | --libdir=* | --libdi=* | --libd=*)
258 libdir="$ac_optarg" ;;
260 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
261 | --libexe | --libex | --libe)
262 ac_prev=libexecdir ;;
263 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
264 | --libexe=* | --libex=* | --libe=*)
265 libexecdir="$ac_optarg" ;;
267 -localstatedir | --localstatedir | --localstatedi | --localstated \
268 | --localstate | --localstat | --localsta | --localst \
269 | --locals | --local | --loca | --loc | --lo)
270 ac_prev=localstatedir ;;
271 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
272 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
273 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
274 localstatedir="$ac_optarg" ;;
276 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
278 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
279 mandir="$ac_optarg" ;;
282 # Obsolete; use --without-fp.
285 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
289 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
290 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
293 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
294 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
295 | --oldin | --oldi | --old | --ol | --o)
296 ac_prev=oldincludedir ;;
297 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
298 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
299 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
300 oldincludedir="$ac_optarg" ;;
302 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
304 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
305 prefix="$ac_optarg" ;;
307 -program-prefix | --program-prefix | --program-prefi | --program-pref \
308 | --program-pre | --program-pr | --program-p)
309 ac_prev=program_prefix ;;
310 -program-prefix=* | --program-prefix=* | --program-prefi=* \
311 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
312 program_prefix="$ac_optarg" ;;
314 -program-suffix | --program-suffix | --program-suffi | --program-suff \
315 | --program-suf | --program-su | --program-s)
316 ac_prev=program_suffix ;;
317 -program-suffix=* | --program-suffix=* | --program-suffi=* \
318 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
319 program_suffix="$ac_optarg" ;;
321 -program-transform-name | --program-transform-name \
322 | --program-transform-nam | --program-transform-na \
323 | --program-transform-n | --program-transform- \
324 | --program-transform | --program-transfor \
325 | --program-transfo | --program-transf \
326 | --program-trans | --program-tran \
327 | --progr-tra | --program-tr | --program-t)
328 ac_prev=program_transform_name ;;
329 -program-transform-name=* | --program-transform-name=* \
330 | --program-transform-nam=* | --program-transform-na=* \
331 | --program-transform-n=* | --program-transform-=* \
332 | --program-transform=* | --program-transfor=* \
333 | --program-transfo=* | --program-transf=* \
334 | --program-trans=* | --program-tran=* \
335 | --progr-tra=* | --program-tr=* | --program-t=*)
336 program_transform_name="$ac_optarg" ;;
338 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
339 | -silent | --silent | --silen | --sile | --sil)
342 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
344 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
346 sbindir="$ac_optarg" ;;
348 -sharedstatedir | --sharedstatedir | --sharedstatedi \
349 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
350 | --sharedst | --shareds | --shared | --share | --shar \
352 ac_prev=sharedstatedir ;;
353 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
354 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
355 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
357 sharedstatedir="$ac_optarg" ;;
359 -site | --site | --sit)
361 -site=* | --site=* | --sit=*)
364 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
366 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
367 srcdir="$ac_optarg" ;;
369 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
370 | --syscon | --sysco | --sysc | --sys | --sy)
371 ac_prev=sysconfdir ;;
372 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
373 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
374 sysconfdir="$ac_optarg" ;;
376 -target | --target | --targe | --targ | --tar | --ta | --t)
378 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
379 target="$ac_optarg" ;;
381 -v | -verbose | --verbose | --verbos | --verbo | --verb)
384 -version | --version | --versio | --versi | --vers)
385 echo "configure generated by autoconf version 2.13"
389 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
390 # Reject names that are not valid shell variable names.
391 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
392 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
394 ac_package=`echo $ac_package| sed 's/-/_/g'`
399 eval "with_${ac_package}='$ac_optarg'" ;;
401 -without-* | --without-*)
402 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
403 # Reject names that are not valid shell variable names.
404 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
405 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
407 ac_package=`echo $ac_package| sed 's/-/_/g'`
408 eval "with_${ac_package}=no" ;;
411 # Obsolete; use --with-x.
414 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
415 | --x-incl | --x-inc | --x-in | --x-i)
416 ac_prev=x_includes ;;
417 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
418 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
419 x_includes="$ac_optarg" ;;
421 -x-libraries | --x-libraries | --x-librarie | --x-librari \
422 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
423 ac_prev=x_libraries ;;
424 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
425 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
426 x_libraries="$ac_optarg" ;;
428 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
432 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
433 echo "configure: warning: $ac_option: invalid host type" 1>&2
435 if test "x$nonopt" != xNONE; then
436 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
444 if test -n "$ac_prev"; then
445 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
448 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
450 # File descriptor usage:
453 # 2 errors and warnings
454 # 3 some systems may open it to /dev/tty
455 # 4 used on the Kubota Titan
456 # 6 checking for... messages and results
457 # 5 compiler messages saved in config.log
458 if test "$silent" = yes; then
466 This file contains any messages produced by compilers while
467 running configure, to aid debugging if configure makes a mistake.
470 # Strip out --no-create and --no-recursion so they do not pile up.
471 # Also quote any args containing shell metacharacters.
476 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
477 | --no-cr | --no-c) ;;
478 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
479 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
480 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
481 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
482 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
487 # Only set these to C if already set. These must not be set unconditionally
488 # because not all systems understand e.g. LANG=C (notably SCO).
489 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
490 # Non-C LC_CTYPE values break the ctype check.
491 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
492 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
493 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
494 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
496 # confdefs.h avoids OS command line length limits that DEFS can exceed.
497 rm -rf conftest* confdefs.h
498 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
501 # A filename unique to this package, relative to the directory that
502 # configure is in, which we can look for to find out if srcdir is correct.
503 ac_unique_file=java/lang/System.java
505 # Find the source files, if location was not specified.
506 if test -z "$srcdir"; then
507 ac_srcdir_defaulted=yes
508 # Try the directory containing this script, then its parent.
510 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
511 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
513 if test ! -r $srcdir/$ac_unique_file; then
517 ac_srcdir_defaulted=no
519 if test ! -r $srcdir/$ac_unique_file; then
520 if test "$ac_srcdir_defaulted" = yes; then
521 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
523 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
526 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
528 # Prefer explicitly selected file to automatically selected ones.
529 if test -z "$CONFIG_SITE"; then
530 if test "x$prefix" != xNONE; then
531 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
533 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
536 for ac_site_file in $CONFIG_SITE; do
537 if test -r "$ac_site_file"; then
538 echo "loading site script $ac_site_file"
543 if test -r "$cache_file"; then
544 echo "loading cache $cache_file"
547 echo "creating cache $cache_file"
552 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
553 ac_cpp='$CPP $CPPFLAGS'
554 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
555 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
556 cross_compiling=$ac_cv_prog_cc_cross
560 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
561 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
562 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
569 ac_n= ac_c='\c' ac_t=
575 for ac_dir in .. $srcdir/..; do
576 if test -f $ac_dir/install-sh; then
578 ac_install_sh="$ac_aux_dir/install-sh -c"
580 elif test -f $ac_dir/install.sh; then
582 ac_install_sh="$ac_aux_dir/install.sh -c"
586 if test -z "$ac_aux_dir"; then
587 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
589 ac_config_guess=$ac_aux_dir/config.guess
590 ac_config_sub=$ac_aux_dir/config.sub
591 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
595 # Do some error checking and defaulting for the host and target type.
597 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
600 # 1. You are not allowed to specify --host, --target, and nonopt at the
602 # 2. Host defaults to nonopt.
603 # 3. If nonopt is not specified, then host defaults to the current host,
604 # as determined by config.guess.
605 # 4. Target and build default to nonopt.
606 # 5. If nonopt is not specified, then target and build default to host.
608 # The aliases save the names the user supplied, while $host etc.
609 # will get canonicalized.
610 case $host---$target---$nonopt in
611 NONE---*---* | *---NONE---* | *---*---NONE) ;;
612 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
616 # Make sure we can run config.sub.
617 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
618 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
621 echo $ac_n "checking host system type""... $ac_c" 1>&6
622 echo "configure:623: checking host system type" >&5
625 case "$host_alias" in
629 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
630 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
632 *) host_alias=$nonopt ;;
636 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
637 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
638 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
639 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
640 echo "$ac_t""$host" 1>&6
642 echo $ac_n "checking target system type""... $ac_c" 1>&6
643 echo "configure:644: checking target system type" >&5
646 case "$target_alias" in
649 NONE) target_alias=$host_alias ;;
650 *) target_alias=$nonopt ;;
654 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
655 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
656 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
657 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
658 echo "$ac_t""$target" 1>&6
660 echo $ac_n "checking build system type""... $ac_c" 1>&6
661 echo "configure:662: checking build system type" >&5
664 case "$build_alias" in
667 NONE) build_alias=$host_alias ;;
668 *) build_alias=$nonopt ;;
672 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
673 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
674 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
675 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
676 echo "$ac_t""$build" 1>&6
678 test "$host_alias" != "$target_alias" &&
679 test "$program_prefix$program_suffix$program_transform_name" = \
681 program_prefix=${target_alias}-
683 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
684 echo "configure:685: checking whether ln -s works" >&5
685 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
686 echo $ac_n "(cached) $ac_c" 1>&6
689 if ln -s X conftestdata 2>/dev/null
692 ac_cv_prog_LN_S="ln -s"
697 LN_S="$ac_cv_prog_LN_S"
698 if test "$ac_cv_prog_LN_S" = "ln -s"; then
699 echo "$ac_t""yes" 1>&6
701 echo "$ac_t""no" 1>&6
705 # Check whether --with-target-subdir or --without-target-subdir was given.
706 if test "${with_target_subdir+set}" = set; then
707 withval="$with_target_subdir"
711 # Check whether --with-cross-host or --without-cross-host was given.
712 if test "${with_cross_host+set}" = set; then
713 withval="$with_cross_host"
718 # Find a good install program. We prefer a C program (faster),
719 # so one script is as good as another. But avoid the broken or
720 # incompatible versions:
721 # SysV /etc/install, /usr/sbin/install
722 # SunOS /usr/etc/install
725 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
726 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
727 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
728 # ./install, which can be erroneously created by make from ./install.sh.
729 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
730 echo "configure:731: checking for a BSD compatible install" >&5
731 if test -z "$INSTALL"; then
732 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
733 echo $ac_n "(cached) $ac_c" 1>&6
735 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
736 for ac_dir in $PATH; do
737 # Account for people who put trailing slashes in PATH elements.
739 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
741 # OSF1 and SCO ODT 3.0 have their own names for install.
742 # Don't use installbsd from OSF since it installs stuff as root
744 for ac_prog in ginstall scoinst install; do
745 if test -f $ac_dir/$ac_prog; then
746 if test $ac_prog = install &&
747 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
748 # AIX install. It has an incompatible calling convention.
751 ac_cv_path_install="$ac_dir/$ac_prog -c"
762 if test "${ac_cv_path_install+set}" = set; then
763 INSTALL="$ac_cv_path_install"
765 # As a last resort, use the slow shell script. We don't cache a
766 # path for INSTALL within a source directory, because that will
767 # break other packages using the cache if that directory is
768 # removed, or if the path is relative.
769 INSTALL="$ac_install_sh"
772 echo "$ac_t""$INSTALL" 1>&6
774 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
775 # It thinks the first close brace ends the variable substitution.
776 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
778 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
780 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
782 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
783 echo "configure:784: checking whether build environment is sane" >&5
786 echo timestamp > conftestfile
787 # Do `set' in a subshell so we don't clobber the current shell's
788 # arguments. Must try -L first in case configure is actually a
789 # symlink; some systems play weird games with the mod time of symlinks
790 # (eg FreeBSD returns the mod time of the symlink's containing
793 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
794 if test "$*" = "X"; then
796 set X `ls -t $srcdir/configure conftestfile`
798 if test "$*" != "X $srcdir/configure conftestfile" \
799 && test "$*" != "X conftestfile $srcdir/configure"; then
801 # If neither matched, then we have a broken ls. This can happen
802 # if, for instance, CONFIG_SHELL is bash and it inherits a
803 # broken ls alias from the environment. This has actually
804 # happened. Such a system could not be considered "sane".
805 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
806 alias in your environment" 1>&2; exit 1; }
809 test "$2" = conftestfile
815 { echo "configure: error: newly created file is older than distributed files!
816 Check your system clock" 1>&2; exit 1; }
819 echo "$ac_t""yes" 1>&6
820 if test "$program_transform_name" = s,x,x,; then
821 program_transform_name=
823 # Double any \ or $. echo might interpret backslashes.
824 cat <<\EOF_SED > conftestsed
825 s,\\,\\\\,g; s,\$,$$,g
827 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
830 test "$program_prefix" != NONE &&
831 program_transform_name="s,^,${program_prefix},; $program_transform_name"
832 # Use a double $ so make ignores it.
833 test "$program_suffix" != NONE &&
834 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
836 # sed with no file args requires a program.
837 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
839 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
840 echo "configure:841: checking whether ${MAKE-make} sets \${MAKE}" >&5
841 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
842 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
843 echo $ac_n "(cached) $ac_c" 1>&6
845 cat > conftestmake <<\EOF
847 @echo 'ac_maketemp="${MAKE}"'
849 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
850 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
851 if test -n "$ac_maketemp"; then
852 eval ac_cv_prog_make_${ac_make}_set=yes
854 eval ac_cv_prog_make_${ac_make}_set=no
858 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
859 echo "$ac_t""yes" 1>&6
862 echo "$ac_t""no" 1>&6
863 SET_MAKE="MAKE=${MAKE-make}"
866 if test $host != $build; then
867 ac_tool_prefix=${host_alias}-
872 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
873 echo "configure:874: checking for Cygwin environment" >&5
874 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
875 echo $ac_n "(cached) $ac_c" 1>&6
877 cat > conftest.$ac_ext <<EOF
878 #line 879 "configure"
879 #include "confdefs.h"
884 #define __CYGWIN__ __CYGWIN32__
889 if { (eval echo configure:890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
893 echo "configure: failed program was:" >&5
894 cat conftest.$ac_ext >&5
902 echo "$ac_t""$ac_cv_cygwin" 1>&6
904 test "$ac_cv_cygwin" = yes && CYGWIN=yes
905 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
906 echo "configure:907: checking for mingw32 environment" >&5
907 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
908 echo $ac_n "(cached) $ac_c" 1>&6
910 cat > conftest.$ac_ext <<EOF
911 #line 912 "configure"
912 #include "confdefs.h"
918 if { (eval echo configure:919: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
922 echo "configure: failed program was:" >&5
923 cat conftest.$ac_ext >&5
931 echo "$ac_t""$ac_cv_mingw32" 1>&6
933 test "$ac_cv_mingw32" = yes && MINGW32=yes
935 # Check whether --enable-multilib or --disable-multilib was given.
936 if test "${enable_multilib+set}" = set; then
937 enableval="$enable_multilib"
938 case "${enableval}" in
941 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
948 if test "${srcdir}" = "."; then
949 if test "${with_target_subdir}" != "."; then
950 libgcj_basedir="${srcdir}/${with_multisrctop}../."
952 libgcj_basedir="${srcdir}/${with_multisrctop}."
955 libgcj_basedir="${srcdir}/."
960 # Make sure we can run config.sub.
961 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
962 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
965 echo $ac_n "checking host system type""... $ac_c" 1>&6
966 echo "configure:967: checking host system type" >&5
969 case "$host_alias" in
973 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
974 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
976 *) host_alias=$nonopt ;;
980 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
981 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
982 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
983 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
984 echo "$ac_t""$host" 1>&6
990 # Extract the first word of "gcc", so it can be a program name with args.
991 set dummy gcc; ac_word=$2
992 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
993 echo "configure:994: checking for $ac_word" >&5
994 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
995 echo $ac_n "(cached) $ac_c" 1>&6
997 if test -n "$CC"; then
998 ac_cv_prog_CC="$CC" # Let the user override the test.
1000 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1002 for ac_dir in $ac_dummy; do
1003 test -z "$ac_dir" && ac_dir=.
1004 if test -f $ac_dir/$ac_word; then
1013 if test -n "$CC"; then
1014 echo "$ac_t""$CC" 1>&6
1016 echo "$ac_t""no" 1>&6
1019 if test -z "$CC"; then
1020 # Extract the first word of "cc", so it can be a program name with args.
1021 set dummy cc; ac_word=$2
1022 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1023 echo "configure:1024: checking for $ac_word" >&5
1024 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1025 echo $ac_n "(cached) $ac_c" 1>&6
1027 if test -n "$CC"; then
1028 ac_cv_prog_CC="$CC" # Let the user override the test.
1030 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1033 for ac_dir in $ac_dummy; do
1034 test -z "$ac_dir" && ac_dir=.
1035 if test -f $ac_dir/$ac_word; then
1036 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1037 ac_prog_rejected=yes
1045 if test $ac_prog_rejected = yes; then
1046 # We found a bogon in the path, so make sure we never use it.
1047 set dummy $ac_cv_prog_CC
1049 if test $# -gt 0; then
1050 # We chose a different compiler from the bogus one.
1051 # However, it has the same basename, so the bogon will be chosen
1052 # first if we set CC to just the basename; use the full file name.
1054 set dummy "$ac_dir/$ac_word" "$@"
1062 if test -n "$CC"; then
1063 echo "$ac_t""$CC" 1>&6
1065 echo "$ac_t""no" 1>&6
1068 if test -z "$CC"; then
1069 case "`uname -s`" in
1071 # Extract the first word of "cl", so it can be a program name with args.
1072 set dummy cl; ac_word=$2
1073 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1074 echo "configure:1075: checking for $ac_word" >&5
1075 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1076 echo $ac_n "(cached) $ac_c" 1>&6
1078 if test -n "$CC"; then
1079 ac_cv_prog_CC="$CC" # Let the user override the test.
1081 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1083 for ac_dir in $ac_dummy; do
1084 test -z "$ac_dir" && ac_dir=.
1085 if test -f $ac_dir/$ac_word; then
1094 if test -n "$CC"; then
1095 echo "$ac_t""$CC" 1>&6
1097 echo "$ac_t""no" 1>&6
1102 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1106 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1107 echo "configure:1108: checking whether we are using GNU C" >&5
1108 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1109 echo $ac_n "(cached) $ac_c" 1>&6
1111 cat > conftest.c <<EOF
1116 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1117: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1123 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1125 if test $ac_cv_prog_gcc = yes; then
1131 ac_test_CFLAGS="${CFLAGS+set}"
1132 ac_save_CFLAGS="$CFLAGS"
1134 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1135 echo "configure:1136: checking whether ${CC-cc} accepts -g" >&5
1136 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1137 echo $ac_n "(cached) $ac_c" 1>&6
1139 echo 'void f(){}' > conftest.c
1140 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1149 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1150 if test "$ac_test_CFLAGS" = set; then
1151 CFLAGS="$ac_save_CFLAGS"
1152 elif test $ac_cv_prog_cc_g = yes; then
1153 if test "$GCC" = yes; then
1159 if test "$GCC" = yes; then
1166 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1168 # Extract the first word of "$ac_prog", so it can be a program name with args.
1169 set dummy $ac_prog; ac_word=$2
1170 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1171 echo "configure:1172: checking for $ac_word" >&5
1172 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1173 echo $ac_n "(cached) $ac_c" 1>&6
1175 if test -n "$CXX"; then
1176 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1178 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1180 for ac_dir in $ac_dummy; do
1181 test -z "$ac_dir" && ac_dir=.
1182 if test -f $ac_dir/$ac_word; then
1183 ac_cv_prog_CXX="$ac_prog"
1190 CXX="$ac_cv_prog_CXX"
1191 if test -n "$CXX"; then
1192 echo "$ac_t""$CXX" 1>&6
1194 echo "$ac_t""no" 1>&6
1197 test -n "$CXX" && break
1199 test -n "$CXX" || CXX="gcc"
1203 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1204 echo "configure:1205: checking whether we are using GNU C++" >&5
1205 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1206 echo $ac_n "(cached) $ac_c" 1>&6
1208 cat > conftest.C <<EOF
1213 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1220 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1222 if test $ac_cv_prog_gxx = yes; then
1228 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1229 ac_save_CXXFLAGS="$CXXFLAGS"
1231 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1232 echo "configure:1233: checking whether ${CXX-g++} accepts -g" >&5
1233 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1234 echo $ac_n "(cached) $ac_c" 1>&6
1236 echo 'void f(){}' > conftest.cc
1237 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1238 ac_cv_prog_cxx_g=yes
1246 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1247 if test "$ac_test_CXXFLAGS" = set; then
1248 CXXFLAGS="$ac_save_CXXFLAGS"
1249 elif test $ac_cv_prog_cxx_g = yes; then
1250 if test "$GXX" = yes; then
1256 if test "$GXX" = yes; then
1270 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1271 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1273 cat >> confdefs.h <<EOF
1274 #define PACKAGE "$PACKAGE"
1277 cat >> confdefs.h <<EOF
1278 #define VERSION "$VERSION"
1283 missing_dir=`cd $ac_aux_dir && pwd`
1284 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1285 echo "configure:1286: checking for working aclocal" >&5
1286 # Run test in a subshell; some versions of sh will print an error if
1287 # an executable is not found, even if stderr is redirected.
1288 # Redirect stdin to placate older versions of autoconf. Sigh.
1289 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1291 echo "$ac_t""found" 1>&6
1293 ACLOCAL="$missing_dir/missing aclocal"
1294 echo "$ac_t""missing" 1>&6
1297 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1298 echo "configure:1299: checking for working autoconf" >&5
1299 # Run test in a subshell; some versions of sh will print an error if
1300 # an executable is not found, even if stderr is redirected.
1301 # Redirect stdin to placate older versions of autoconf. Sigh.
1302 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1304 echo "$ac_t""found" 1>&6
1306 AUTOCONF="$missing_dir/missing autoconf"
1307 echo "$ac_t""missing" 1>&6
1310 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1311 echo "configure:1312: checking for working automake" >&5
1312 # Run test in a subshell; some versions of sh will print an error if
1313 # an executable is not found, even if stderr is redirected.
1314 # Redirect stdin to placate older versions of autoconf. Sigh.
1315 if (automake --version) < /dev/null > /dev/null 2>&1; then
1317 echo "$ac_t""found" 1>&6
1319 AUTOMAKE="$missing_dir/missing automake"
1320 echo "$ac_t""missing" 1>&6
1323 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1324 echo "configure:1325: checking for working autoheader" >&5
1325 # Run test in a subshell; some versions of sh will print an error if
1326 # an executable is not found, even if stderr is redirected.
1327 # Redirect stdin to placate older versions of autoconf. Sigh.
1328 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1329 AUTOHEADER=autoheader
1330 echo "$ac_t""found" 1>&6
1332 AUTOHEADER="$missing_dir/missing autoheader"
1333 echo "$ac_t""missing" 1>&6
1336 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1337 echo "configure:1338: checking for working makeinfo" >&5
1338 # Run test in a subshell; some versions of sh will print an error if
1339 # an executable is not found, even if stderr is redirected.
1340 # Redirect stdin to placate older versions of autoconf. Sigh.
1341 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1343 echo "$ac_t""found" 1>&6
1345 MAKEINFO="$missing_dir/missing makeinfo"
1346 echo "$ac_t""missing" 1>&6
1351 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we dont
1352 # run it explicitly here, it will be run implicitly before
1353 # LIBGCJ_CONFIGURE, which doesn't work because that means that it will
1354 # be run before AC_CANONICAL_HOST.
1355 echo $ac_n "checking build system type""... $ac_c" 1>&6
1356 echo "configure:1357: checking build system type" >&5
1359 case "$build_alias" in
1362 NONE) build_alias=$host_alias ;;
1363 *) build_alias=$nonopt ;;
1367 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1368 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1369 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1370 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1371 echo "$ac_t""$build" 1>&6
1374 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1375 set dummy ${ac_tool_prefix}as; ac_word=$2
1376 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1377 echo "configure:1378: checking for $ac_word" >&5
1378 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1379 echo $ac_n "(cached) $ac_c" 1>&6
1381 if test -n "$AS"; then
1382 ac_cv_prog_AS="$AS" # Let the user override the test.
1384 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1386 for ac_dir in $ac_dummy; do
1387 test -z "$ac_dir" && ac_dir=.
1388 if test -f $ac_dir/$ac_word; then
1389 ac_cv_prog_AS="${ac_tool_prefix}as"
1394 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1398 if test -n "$AS"; then
1399 echo "$ac_t""$AS" 1>&6
1401 echo "$ac_t""no" 1>&6
1406 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1407 set dummy ${ac_tool_prefix}ar; ac_word=$2
1408 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1409 echo "configure:1410: checking for $ac_word" >&5
1410 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1411 echo $ac_n "(cached) $ac_c" 1>&6
1413 if test -n "$AR"; then
1414 ac_cv_prog_AR="$AR" # Let the user override the test.
1416 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1418 for ac_dir in $ac_dummy; do
1419 test -z "$ac_dir" && ac_dir=.
1420 if test -f $ac_dir/$ac_word; then
1421 ac_cv_prog_AR="${ac_tool_prefix}ar"
1426 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1430 if test -n "$AR"; then
1431 echo "$ac_t""$AR" 1>&6
1433 echo "$ac_t""no" 1>&6
1438 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1439 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1440 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1441 echo "configure:1442: checking for $ac_word" >&5
1442 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1443 echo $ac_n "(cached) $ac_c" 1>&6
1445 if test -n "$RANLIB"; then
1446 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1448 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1450 for ac_dir in $ac_dummy; do
1451 test -z "$ac_dir" && ac_dir=.
1452 if test -f $ac_dir/$ac_word; then
1453 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1460 RANLIB="$ac_cv_prog_RANLIB"
1461 if test -n "$RANLIB"; then
1462 echo "$ac_t""$RANLIB" 1>&6
1464 echo "$ac_t""no" 1>&6
1468 if test -z "$ac_cv_prog_RANLIB"; then
1469 if test -n "$ac_tool_prefix"; then
1470 # Extract the first word of "ranlib", so it can be a program name with args.
1471 set dummy ranlib; ac_word=$2
1472 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1473 echo "configure:1474: checking for $ac_word" >&5
1474 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1475 echo $ac_n "(cached) $ac_c" 1>&6
1477 if test -n "$RANLIB"; then
1478 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1480 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1482 for ac_dir in $ac_dummy; do
1483 test -z "$ac_dir" && ac_dir=.
1484 if test -f $ac_dir/$ac_word; then
1485 ac_cv_prog_RANLIB="ranlib"
1490 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1493 RANLIB="$ac_cv_prog_RANLIB"
1494 if test -n "$RANLIB"; then
1495 echo "$ac_t""$RANLIB" 1>&6
1497 echo "$ac_t""no" 1>&6
1506 # Find a good install program. We prefer a C program (faster),
1507 # so one script is as good as another. But avoid the broken or
1508 # incompatible versions:
1509 # SysV /etc/install, /usr/sbin/install
1510 # SunOS /usr/etc/install
1511 # IRIX /sbin/install
1513 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1514 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1515 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1516 # ./install, which can be erroneously created by make from ./install.sh.
1517 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1518 echo "configure:1519: checking for a BSD compatible install" >&5
1519 if test -z "$INSTALL"; then
1520 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1521 echo $ac_n "(cached) $ac_c" 1>&6
1523 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1524 for ac_dir in $PATH; do
1525 # Account for people who put trailing slashes in PATH elements.
1527 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1529 # OSF1 and SCO ODT 3.0 have their own names for install.
1530 # Don't use installbsd from OSF since it installs stuff as root
1532 for ac_prog in ginstall scoinst install; do
1533 if test -f $ac_dir/$ac_prog; then
1534 if test $ac_prog = install &&
1535 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1536 # AIX install. It has an incompatible calling convention.
1539 ac_cv_path_install="$ac_dir/$ac_prog -c"
1550 if test "${ac_cv_path_install+set}" = set; then
1551 INSTALL="$ac_cv_path_install"
1553 # As a last resort, use the slow shell script. We don't cache a
1554 # path for INSTALL within a source directory, because that will
1555 # break other packages using the cache if that directory is
1556 # removed, or if the path is relative.
1557 INSTALL="$ac_install_sh"
1560 echo "$ac_t""$INSTALL" 1>&6
1562 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1563 # It thinks the first close brace ends the variable substitution.
1564 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1566 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1568 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1571 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1572 echo "configure:1573: checking whether to enable maintainer-specific portions of Makefiles" >&5
1573 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1574 if test "${enable_maintainer_mode+set}" = set; then
1575 enableval="$enable_maintainer_mode"
1576 USE_MAINTAINER_MODE=$enableval
1578 USE_MAINTAINER_MODE=no
1581 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1584 if test $USE_MAINTAINER_MODE = yes; then
1585 MAINTAINER_MODE_TRUE=
1586 MAINTAINER_MODE_FALSE='#'
1588 MAINTAINER_MODE_TRUE='#'
1589 MAINTAINER_MODE_FALSE=
1591 MAINT=$MAINTAINER_MODE_TRUE
1595 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1596 # at least currently, we never actually build a program, so we never
1597 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1598 # fails, because we are probably configuring with a cross compiler
1599 # which cant create executables. So we include AC_EXEEXT to keep
1600 # automake happy, but we dont execute it, since we dont care about
1605 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1606 echo "configure:1607: checking for executable suffix" >&5
1607 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1608 echo $ac_n "(cached) $ac_c" 1>&6
1610 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1614 echo 'int main () { return 0; }' > conftest.$ac_ext
1616 if { (eval echo configure:1617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1617 for file in conftest.*; do
1619 *.c | *.o | *.obj) ;;
1620 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1624 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1627 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1632 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1633 echo "$ac_t""${ac_cv_exeext}" 1>&6
1638 # configure.host sets the following important variables
1639 # libgcj_cflags - host specific C compiler flags
1640 # libgcj_cxxflags - host specific C++ compiler flags
1641 # libgcj_javaflags - host specific Java compiler flags
1647 . ${libgcj_basedir}/configure.host
1649 case ${libgcj_basedir} in
1650 /* | A-Za-z:/\\*) libgcj_flagbasedir=${libgcj_basedir} ;;
1651 *) libgcj_flagbasedir='$(top_builddir)/'${libgcj_basedir} ;;
1654 LIBGCJ_CFLAGS="${libgcj_cflags}"
1655 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
1656 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
1666 # Only use libltdl for native builds.
1667 if test -z "${with_cross_host}"; then
1668 case $enable_ltdl_convenience in
1669 no) { echo "configure: error: this package needs a convenience libltdl" 1>&2; exit 1; } ;;
1670 "") enable_ltdl_convenience=yes
1671 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
1673 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
1674 INCLTDL='-I${top_srcdir}/''libltdl'
1678 cat >> confdefs.h <<\EOF
1682 # Sigh. Libtool's macro doesn't do the right thing.
1683 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
1688 # Check whether --enable-shared or --disable-shared was given.
1689 if test "${enable_shared+set}" = set; then
1690 enableval="$enable_shared"
1691 p=${PACKAGE-default}
1693 yes) enable_shared=yes ;;
1694 no) enable_shared=no ;;
1697 # Look at the argument we got. We use all the common list separators.
1698 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1699 for pkg in $enableval; do
1700 if test "X$pkg" = "X$p"; then
1711 # Check whether --enable-static or --disable-static was given.
1712 if test "${enable_static+set}" = set; then
1713 enableval="$enable_static"
1714 p=${PACKAGE-default}
1716 yes) enable_static=yes ;;
1717 no) enable_static=no ;;
1720 # Look at the argument we got. We use all the common list separators.
1721 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1722 for pkg in $enableval; do
1723 if test "X$pkg" = "X$p"; then
1734 # Check whether --enable-fast-install or --disable-fast-install was given.
1735 if test "${enable_fast_install+set}" = set; then
1736 enableval="$enable_fast_install"
1737 p=${PACKAGE-default}
1739 yes) enable_fast_install=yes ;;
1740 no) enable_fast_install=no ;;
1742 enable_fast_install=no
1743 # Look at the argument we got. We use all the common list separators.
1744 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1745 for pkg in $enableval; do
1746 if test "X$pkg" = "X$p"; then
1747 enable_fast_install=yes
1754 enable_fast_install=yes
1757 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1758 if test "${with_gnu_ld+set}" = set; then
1759 withval="$with_gnu_ld"
1760 test "$withval" = no || with_gnu_ld=yes
1766 if test "$GCC" = yes; then
1767 # Check if gcc -print-prog-name=ld gives a path.
1768 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1769 echo "configure:1770: checking for ld used by GCC" >&5
1772 # gcc leaves a trailing carriage return which upsets mingw
1773 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1775 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1778 # Accept absolute paths.
1779 [\\/]* | [A-Za-z]:[\\/]*)
1780 re_direlt='/[^/][^/]*/\.\./'
1781 # Canonicalize the path of ld
1782 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1783 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1784 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1786 test -z "$LD" && LD="$ac_prog"
1789 # If it fails, then pretend we aren't using GCC.
1793 # If it is relative, then search for the first ld in PATH.
1797 elif test "$with_gnu_ld" = yes; then
1798 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1799 echo "configure:1800: checking for GNU ld" >&5
1801 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1802 echo "configure:1803: checking for non-GNU ld" >&5
1804 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1805 echo $ac_n "(cached) $ac_c" 1>&6
1807 if test -z "$LD"; then
1808 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1809 for ac_dir in $PATH; do
1810 test -z "$ac_dir" && ac_dir=.
1811 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1812 lt_cv_path_LD="$ac_dir/$ac_prog"
1813 # Check to see if the program is GNU ld. I'd rather use --version,
1814 # but apparently some GNU ld's only accept -v.
1815 # Break only if it was the GNU/non-GNU ld that we prefer.
1816 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1817 test "$with_gnu_ld" != no && break
1819 test "$with_gnu_ld" != yes && break
1825 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1830 if test -n "$LD"; then
1831 echo "$ac_t""$LD" 1>&6
1833 echo "$ac_t""no" 1>&6
1835 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1836 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1837 echo "configure:1838: checking if the linker ($LD) is GNU ld" >&5
1838 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1839 echo $ac_n "(cached) $ac_c" 1>&6
1841 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1842 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1843 lt_cv_prog_gnu_ld=yes
1845 lt_cv_prog_gnu_ld=no
1849 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1850 with_gnu_ld=$lt_cv_prog_gnu_ld
1853 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1854 echo "configure:1855: checking for $LD option to reload object files" >&5
1855 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1856 echo $ac_n "(cached) $ac_c" 1>&6
1858 lt_cv_ld_reload_flag='-r'
1861 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1862 reload_flag=$lt_cv_ld_reload_flag
1863 test -n "$reload_flag" && reload_flag=" $reload_flag"
1865 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1866 echo "configure:1867: checking for BSD-compatible nm" >&5
1867 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1868 echo $ac_n "(cached) $ac_c" 1>&6
1870 if test -n "$NM"; then
1871 # Let the user override the test.
1874 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1875 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1876 test -z "$ac_dir" && ac_dir=.
1877 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1878 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1879 # Check to see if the nm accepts a BSD-compat flag.
1880 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1881 # nm: unknown option "B" ignored
1882 # Tru64's nm complains that /dev/null is an invalid object file
1883 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1884 lt_cv_path_NM="$tmp_nm -B"
1886 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1887 lt_cv_path_NM="$tmp_nm -p"
1890 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1891 continue # so that we can try to find one that supports BSD flags
1896 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1901 echo "$ac_t""$NM" 1>&6
1903 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1904 echo "configure:1905: checking how to recognise dependant libraries" >&5
1905 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1906 echo $ac_n "(cached) $ac_c" 1>&6
1908 lt_cv_file_magic_cmd='$MAGIC_CMD'
1909 lt_cv_file_magic_test_file=
1910 lt_cv_deplibs_check_method='unknown'
1911 # Need to set the preceding variable on all platforms that support
1912 # interlibrary dependencies.
1913 # 'none' -- dependencies not supported.
1914 # `unknown' -- same as none, but documents that we really don't know.
1915 # 'pass_all' -- all dependencies passed with no checks.
1916 # 'test_compile' -- check by making test program.
1917 # 'file_magic [regex]' -- check by looking for files in library path
1918 # which responds to the $file_magic_cmd with a given egrep regex.
1919 # If you have `file' or equivalent on your system and you're not sure
1920 # whether `pass_all' will *always* work, you probably want this one.
1924 lt_cv_deplibs_check_method=pass_all
1928 lt_cv_deplibs_check_method=pass_all
1932 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1933 lt_cv_file_magic_cmd='/usr/bin/file -L'
1934 lt_cv_file_magic_test_file=/shlib/libc.so
1937 cygwin* | mingw* |pw32*)
1938 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1939 lt_cv_file_magic_cmd='$OBJDUMP -f'
1942 darwin* | rhapsody*)
1943 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1944 lt_cv_file_magic_cmd=/usr/bin/file
1945 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
1949 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1952 # Not sure whether the presence of OpenBSD here was a mistake.
1953 # Let's accept both of them until this is cleared up.
1954 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1955 lt_cv_file_magic_cmd=/usr/bin/file
1956 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1960 lt_cv_deplibs_check_method=pass_all
1965 lt_cv_deplibs_check_method=pass_all
1969 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1970 lt_cv_file_magic_cmd=/usr/bin/file
1971 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1977 # this will be overridden with pass_all, but let us keep it just in case
1978 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1982 *-32|*"-32 ") libmagic=32-bit;;
1983 *-n32|*"-n32 ") libmagic=N32;;
1984 *-64|*"-64 ") libmagic=64-bit;;
1985 *) libmagic=never-match;;
1987 # this will be overridden with pass_all, but let us keep it just in case
1988 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1991 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1992 lt_cv_deplibs_check_method=pass_all
1995 # This must be Linux ELF.
1998 alpha* | i*86 | powerpc* | sparc* | ia64* )
1999 lt_cv_deplibs_check_method=pass_all ;;
2001 # glibc up to 2.1.1 does not perform some relocations on ARM
2002 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2004 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2008 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2009 lt_cv_deplibs_check_method='file_magic NetBSD/[a-z0-9]* demand paged shared library'
2011 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
2013 lt_cv_file_magic_cmd='/usr/bin/file -L'
2014 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2018 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2019 lt_cv_file_magic_cmd=/usr/bin/file
2020 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2023 osf3* | osf4* | osf5*)
2024 # this will be overridden with pass_all, but let us keep it just in case
2025 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2026 lt_cv_file_magic_test_file=/shlib/libc.so
2027 lt_cv_deplibs_check_method=pass_all
2031 lt_cv_deplibs_check_method=pass_all
2035 lt_cv_deplibs_check_method=pass_all
2036 lt_cv_file_magic_test_file=/lib/libc.so
2039 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2040 case $host_vendor in
2042 lt_cv_deplibs_check_method=pass_all
2045 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]'
2046 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2054 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2055 file_magic_cmd=$lt_cv_file_magic_cmd
2056 deplibs_check_method=$lt_cv_deplibs_check_method
2058 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2059 echo "configure:2060: checking for object suffix" >&5
2060 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2061 echo $ac_n "(cached) $ac_c" 1>&6
2064 echo 'int i = 1;' > conftest.$ac_ext
2065 if { (eval echo configure:2066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2066 for ac_file in conftest.*; do
2069 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2073 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2078 echo "$ac_t""$ac_cv_objext" 1>&6
2079 OBJEXT=$ac_cv_objext
2080 ac_objext=$ac_cv_objext
2082 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2084 # Only perform the check for file, if the check method requires it
2085 case $deplibs_check_method in
2087 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2088 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2089 echo "configure:2090: checking for ${ac_tool_prefix}file" >&5
2090 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2091 echo $ac_n "(cached) $ac_c" 1>&6
2095 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2098 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2101 ac_save_MAGIC_CMD="$MAGIC_CMD"
2102 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2103 ac_dummy="/usr/bin:$PATH"
2104 for ac_dir in $ac_dummy; do
2105 test -z "$ac_dir" && ac_dir=.
2106 if test -f $ac_dir/${ac_tool_prefix}file; then
2107 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2108 if test -n "$file_magic_test_file"; then
2109 case $deplibs_check_method in
2111 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2112 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2113 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2114 egrep "$file_magic_regex" > /dev/null; then
2119 *** Warning: the command libtool uses to detect shared libraries,
2120 *** $file_magic_cmd, produces output that libtool cannot recognize.
2121 *** The result is that libtool may fail to recognize shared libraries
2122 *** as such. This will affect the creation of libtool libraries that
2123 *** depend on shared libraries, but programs linked with such libtool
2124 *** libraries will work regardless of this problem. Nevertheless, you
2125 *** may want to report the problem to your system manager and/or to
2126 *** bug-libtool@gnu.org
2136 MAGIC_CMD="$ac_save_MAGIC_CMD"
2141 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2142 if test -n "$MAGIC_CMD"; then
2143 echo "$ac_t""$MAGIC_CMD" 1>&6
2145 echo "$ac_t""no" 1>&6
2148 if test -z "$lt_cv_path_MAGIC_CMD"; then
2149 if test -n "$ac_tool_prefix"; then
2150 echo $ac_n "checking for file""... $ac_c" 1>&6
2151 echo "configure:2152: checking for file" >&5
2152 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2153 echo $ac_n "(cached) $ac_c" 1>&6
2157 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2160 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2163 ac_save_MAGIC_CMD="$MAGIC_CMD"
2164 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2165 ac_dummy="/usr/bin:$PATH"
2166 for ac_dir in $ac_dummy; do
2167 test -z "$ac_dir" && ac_dir=.
2168 if test -f $ac_dir/file; then
2169 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2170 if test -n "$file_magic_test_file"; then
2171 case $deplibs_check_method in
2173 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2174 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2175 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2176 egrep "$file_magic_regex" > /dev/null; then
2181 *** Warning: the command libtool uses to detect shared libraries,
2182 *** $file_magic_cmd, produces output that libtool cannot recognize.
2183 *** The result is that libtool may fail to recognize shared libraries
2184 *** as such. This will affect the creation of libtool libraries that
2185 *** depend on shared libraries, but programs linked with such libtool
2186 *** libraries will work regardless of this problem. Nevertheless, you
2187 *** may want to report the problem to your system manager and/or to
2188 *** bug-libtool@gnu.org
2198 MAGIC_CMD="$ac_save_MAGIC_CMD"
2203 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2204 if test -n "$MAGIC_CMD"; then
2205 echo "$ac_t""$MAGIC_CMD" 1>&6
2207 echo "$ac_t""no" 1>&6
2219 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2220 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2221 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2222 echo "configure:2223: checking for $ac_word" >&5
2223 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2224 echo $ac_n "(cached) $ac_c" 1>&6
2226 if test -n "$RANLIB"; then
2227 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2229 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2231 for ac_dir in $ac_dummy; do
2232 test -z "$ac_dir" && ac_dir=.
2233 if test -f $ac_dir/$ac_word; then
2234 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2241 RANLIB="$ac_cv_prog_RANLIB"
2242 if test -n "$RANLIB"; then
2243 echo "$ac_t""$RANLIB" 1>&6
2245 echo "$ac_t""no" 1>&6
2249 if test -z "$ac_cv_prog_RANLIB"; then
2250 if test -n "$ac_tool_prefix"; then
2251 # Extract the first word of "ranlib", so it can be a program name with args.
2252 set dummy ranlib; ac_word=$2
2253 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2254 echo "configure:2255: checking for $ac_word" >&5
2255 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2256 echo $ac_n "(cached) $ac_c" 1>&6
2258 if test -n "$RANLIB"; then
2259 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2261 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2263 for ac_dir in $ac_dummy; do
2264 test -z "$ac_dir" && ac_dir=.
2265 if test -f $ac_dir/$ac_word; then
2266 ac_cv_prog_RANLIB="ranlib"
2271 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2274 RANLIB="$ac_cv_prog_RANLIB"
2275 if test -n "$RANLIB"; then
2276 echo "$ac_t""$RANLIB" 1>&6
2278 echo "$ac_t""no" 1>&6
2286 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2287 set dummy ${ac_tool_prefix}strip; ac_word=$2
2288 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2289 echo "configure:2290: checking for $ac_word" >&5
2290 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2291 echo $ac_n "(cached) $ac_c" 1>&6
2293 if test -n "$STRIP"; then
2294 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2296 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2298 for ac_dir in $ac_dummy; do
2299 test -z "$ac_dir" && ac_dir=.
2300 if test -f $ac_dir/$ac_word; then
2301 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2308 STRIP="$ac_cv_prog_STRIP"
2309 if test -n "$STRIP"; then
2310 echo "$ac_t""$STRIP" 1>&6
2312 echo "$ac_t""no" 1>&6
2316 if test -z "$ac_cv_prog_STRIP"; then
2317 if test -n "$ac_tool_prefix"; then
2318 # Extract the first word of "strip", so it can be a program name with args.
2319 set dummy strip; ac_word=$2
2320 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2321 echo "configure:2322: checking for $ac_word" >&5
2322 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2323 echo $ac_n "(cached) $ac_c" 1>&6
2325 if test -n "$STRIP"; then
2326 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2328 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2330 for ac_dir in $ac_dummy; do
2331 test -z "$ac_dir" && ac_dir=.
2332 if test -f $ac_dir/$ac_word; then
2333 ac_cv_prog_STRIP="strip"
2338 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2341 STRIP="$ac_cv_prog_STRIP"
2342 if test -n "$STRIP"; then
2343 echo "$ac_t""$STRIP" 1>&6
2345 echo "$ac_t""no" 1>&6
2354 # Check for any special flags to pass to ltconfig.
2355 libtool_flags="--cache-file=$cache_file"
2356 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2357 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2358 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2359 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2360 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2361 libtool_flags="$libtool_flags --enable-dlopen"
2363 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2364 if test "${enable_libtool_lock+set}" = set; then
2365 enableval="$enable_libtool_lock"
2369 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2370 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2372 # Check whether --with-pic or --without-pic was given.
2373 if test "${with_pic+set}" = set; then
2380 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2381 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2383 # Some flags need to be propagated to the compiler or linker for good
2387 # Find out which ABI we are using.
2388 echo '#line 2389 "configure"' > conftest.$ac_ext
2389 if { (eval echo configure:2390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2390 case `/usr/bin/file conftest.$ac_objext` in
2406 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2407 SAVE_CFLAGS="$CFLAGS"
2408 CFLAGS="$CFLAGS -belf"
2409 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2410 echo "configure:2411: checking whether the C compiler needs -belf" >&5
2411 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2412 echo $ac_n "(cached) $ac_c" 1>&6
2416 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2417 ac_cpp='$CPP $CPPFLAGS'
2418 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2419 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2420 cross_compiling=$ac_cv_prog_cc_cross
2422 cat > conftest.$ac_ext <<EOF
2423 #line 2424 "configure"
2424 #include "confdefs.h"
2430 if { (eval echo configure:2431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2432 lt_cv_cc_needs_belf=yes
2434 echo "configure: failed program was:" >&5
2435 cat conftest.$ac_ext >&5
2437 lt_cv_cc_needs_belf=no
2441 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2442 ac_cpp='$CPP $CPPFLAGS'
2443 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2444 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2445 cross_compiling=$ac_cv_prog_cc_cross
2449 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2450 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2451 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2452 CFLAGS="$SAVE_CFLAGS"
2459 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2460 echo "configure:2461: checking how to run the C++ preprocessor" >&5
2461 if test -z "$CXXCPP"; then
2462 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2463 echo $ac_n "(cached) $ac_c" 1>&6
2466 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2467 ac_cpp='$CXXCPP $CPPFLAGS'
2468 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2469 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2470 cross_compiling=$ac_cv_prog_cxx_cross
2471 CXXCPP="${CXX-g++} -E"
2472 cat > conftest.$ac_ext <<EOF
2473 #line 2474 "configure"
2474 #include "confdefs.h"
2477 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2478 { (eval echo configure:2479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2479 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2480 if test -z "$ac_err"; then
2484 echo "configure: failed program was:" >&5
2485 cat conftest.$ac_ext >&5
2490 ac_cv_prog_CXXCPP="$CXXCPP"
2492 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2493 ac_cpp='$CPP $CPPFLAGS'
2494 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2495 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2496 cross_compiling=$ac_cv_prog_cc_cross
2499 CXXCPP="$ac_cv_prog_CXXCPP"
2500 echo "$ac_t""$CXXCPP" 1>&6
2503 # Save cache, so that ltconfig can load it
2504 cat > confcache <<\EOF
2505 # This file is a shell script that caches the results of configure
2506 # tests run on this system so they can be shared between configure
2507 # scripts and configure runs. It is not useful on other systems.
2508 # If it contains results you don't want to keep, you may remove or edit it.
2510 # By default, configure uses ./config.cache as the cache file,
2511 # creating it if it does not exist already. You can give configure
2512 # the --cache-file=FILE option to use a different cache file; that is
2513 # what configure does when it calls configure scripts in
2514 # subdirectories, so they share the cache.
2515 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2516 # config.status only pays attention to the cache file if you give it the
2517 # --recheck option to rerun configure.
2520 # The following way of writing the cache mishandles newlines in values,
2521 # but we know of no workaround that is simple, portable, and efficient.
2522 # So, don't put newlines in cache variables' values.
2523 # Ultrix sh set writes to stderr and can't be redirected directly,
2524 # and sets the high bit in the cache file unless we assign to the vars.
2526 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2528 # `set' does not quote correctly, so add quotes (double-quote substitution
2529 # turns \\\\ into \\, and sed turns \\ into \).
2531 -e "s/'/'\\\\''/g" \
2532 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2535 # `set' quotes correctly as required by POSIX, so do not add quotes.
2536 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2539 if cmp -s $cache_file confcache; then
2542 if test -w $cache_file; then
2543 echo "updating cache $cache_file"
2544 cat confcache > $cache_file
2546 echo "not updating unwritable cache $cache_file"
2552 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2553 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2554 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2555 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2556 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2557 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2558 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2559 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2560 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2561 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2563 # Reload cache, that may have been modified by ltconfig
2564 if test -r "$cache_file"; then
2565 echo "loading cache $cache_file"
2568 echo "creating cache $cache_file"
2573 # This can be used to rebuild libtool when needed
2574 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2576 # Always use our own libtool.
2577 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2579 # Redirect the config.log output again, so that the ltconfig log is not
2580 # clobbered by the next message.
2581 exec 5>>./config.log
2585 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2587 lt_save_CFLAGS="$CFLAGS"
2588 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2589 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2590 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2591 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2592 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2593 deplibs_check_method="$deplibs_check_method" \
2594 file_magic_cmd="$file_magic_cmd" \
2595 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2596 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2597 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2599 CFLAGS="$lt_save_CFLAGS"
2601 # Redirect the config.log output again, so that the ltconfig log is not
2602 # clobbered by the next message.
2603 exec 5>>./config.log
2613 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
2622 if test -d $srcdir/testsuite; then
2624 TESTSUBDIR_FALSE='#'
2630 # Check whether --enable-fast-character or --disable-fast-character was given.
2631 if test "${enable_fast_character+set}" = set; then
2632 enableval="$enable_fast_character"
2636 cat >> confdefs.h <<\EOF
2637 #define COMPACT_CHARACTER 1
2643 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
2644 if test "${enable_getenv_properties+set}" = set; then
2645 enableval="$enable_getenv_properties"
2650 if test -n "$enable_getenv_properties"; then
2651 enable_getenv_properties=${enable_getenv_properties_default-yes}
2653 if test "$enable_getenv_properties" = no; then
2654 cat >> confdefs.h <<\EOF
2655 #define DISABLE_GETENV_PROPERTIES 1
2662 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2663 if test "${enable_libgcj_debug+set}" = set; then
2664 enableval="$enable_libgcj_debug"
2665 if test "$enable_libgcj_debug" = yes; then
2666 cat >> confdefs.h <<\EOF
2675 # Check whether --enable-interpreter or --disable-interpreter was given.
2676 if test "${enable_interpreter+set}" = set; then
2677 enableval="$enable_interpreter"
2678 if test "$enable_interpreter" = yes; then
2679 # This can also be set in configure.host.
2680 libgcj_interpreter=yes
2681 elif test "$enable_interpreter" = no; then
2682 libgcj_interpreter=no
2687 if test "$libgcj_interpreter" = yes; then
2688 cat >> confdefs.h <<\EOF
2689 #define INTERPRETER 1
2694 echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
2695 echo "configure:2696: checking for exception model to use" >&5
2698 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2699 ac_cpp='$CXXCPP $CPPFLAGS'
2700 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2701 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2702 cross_compiling=$ac_cv_prog_cxx_cross
2704 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
2705 if test "${enable_sjlj_exceptions+set}" = set; then
2706 enableval="$enable_sjlj_exceptions"
2709 cat > conftest.$ac_ext << EOF
2710 #line 2711 "configure"
2719 old_CXXFLAGS="$CXXFLAGS"
2721 if { (eval echo configure:2722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2722 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
2723 enable_sjlj_exceptions=yes
2724 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
2725 enable_sjlj_exceptions=no
2728 CXXFLAGS="$old_CXXFLAGS"
2732 if test x$enable_sjlj_exceptions = xyes; then
2733 cat >> confdefs.h <<\EOF
2734 #define SJLJ_EXCEPTIONS 1
2737 ac_exception_model_name=sjlj
2738 elif test x$enable_sjlj_exceptions = xno; then
2739 ac_exception_model_name="call frame"
2741 { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
2744 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2745 ac_cpp='$CPP $CPPFLAGS'
2746 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2747 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2748 cross_compiling=$ac_cv_prog_cc_cross
2750 echo "$ac_t""$ac_exception_model_name" 1>&6
2752 echo $ac_n "checking for data_start""... $ac_c" 1>&6
2753 echo "configure:2754: checking for data_start" >&5
2756 cat > conftest.$ac_ext <<EOF
2757 #line 2758 "configure"
2758 #include "confdefs.h"
2759 extern int data_start;
2761 return ((int) &data_start);
2764 if { (eval echo configure:2765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2766 echo "$ac_t""found it" 1>&6
2768 echo "configure: failed program was:" >&5
2769 cat conftest.$ac_ext >&5
2771 LIBDATASTARTSPEC="-u data_start libgcjdata.a%s"
2772 NEEDS_DATA_START=yes
2773 echo "$ac_t""missing" 1>&6
2778 # Check whether --enable-java-net or --disable-java-net was given.
2779 if test "${enable_java_net+set}" = set; then
2780 enableval="$enable_java_net"
2785 if test -n "$enable_java_net"; then
2786 enable_java_net=${enable_java_net_default-yes}
2788 if test "$enable_java_net" = no; then
2789 cat >> confdefs.h <<\EOF
2790 #define DISABLE_JAVA_NET 1
2795 # Check whether --enable-jvmpi or --disable-jvmpi was given.
2796 if test "${enable_jvmpi+set}" = set; then
2797 enableval="$enable_jvmpi"
2802 if test "$enable_jvmpi" != no; then
2803 cat >> confdefs.h <<\EOF
2804 #define ENABLE_JVMPI 1
2810 # Check whether --with-ecos or --without-ecos was given.
2811 if test "${with_ecos+set}" = set; then
2812 withval="$with_ecos"
2813 TARGET_ECOS="$with_ecos"
2818 case "$TARGET_ECOS" in
2820 FILE_DESCRIPTOR=natFileDescriptorPosix.cc
2821 PROCESS=${PROCESS-Posix}
2824 FILE_DESCRIPTOR=natFileDescriptorEcos.cc
2826 cat >> confdefs.h <<\EOF
2833 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2834 echo "configure:2835: checking how to run the C preprocessor" >&5
2835 # On Suns, sometimes $CPP names a directory.
2836 if test -n "$CPP" && test -d "$CPP"; then
2839 if test -z "$CPP"; then
2840 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2841 echo $ac_n "(cached) $ac_c" 1>&6
2843 # This must be in double quotes, not single quotes, because CPP may get
2844 # substituted into the Makefile and "${CC-cc}" will confuse make.
2846 # On the NeXT, cc -E runs the code through the compiler's parser,
2847 # not just through cpp.
2848 cat > conftest.$ac_ext <<EOF
2849 #line 2850 "configure"
2850 #include "confdefs.h"
2854 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2855 { (eval echo configure:2856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2856 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2857 if test -z "$ac_err"; then
2861 echo "configure: failed program was:" >&5
2862 cat conftest.$ac_ext >&5
2864 CPP="${CC-cc} -E -traditional-cpp"
2865 cat > conftest.$ac_ext <<EOF
2866 #line 2867 "configure"
2867 #include "confdefs.h"
2871 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2872 { (eval echo configure:2873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2873 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2874 if test -z "$ac_err"; then
2878 echo "configure: failed program was:" >&5
2879 cat conftest.$ac_ext >&5
2881 CPP="${CC-cc} -nologo -E"
2882 cat > conftest.$ac_ext <<EOF
2883 #line 2884 "configure"
2884 #include "confdefs.h"
2888 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2889 { (eval echo configure:2890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2890 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2891 if test -z "$ac_err"; then
2895 echo "configure: failed program was:" >&5
2896 cat conftest.$ac_ext >&5
2905 ac_cv_prog_CPP="$CPP"
2907 CPP="$ac_cv_prog_CPP"
2909 ac_cv_prog_CPP="$CPP"
2911 echo "$ac_t""$CPP" 1>&6
2913 cat > conftest.$ac_ext <<EOF
2914 #line 2915 "configure"
2915 #include "confdefs.h"
2918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2919 egrep "uint32_t" >/dev/null 2>&1; then
2921 cat >> confdefs.h <<\EOF
2922 #define HAVE_INT32_DEFINED 1
2928 cat > conftest.$ac_ext <<EOF
2929 #line 2930 "configure"
2930 #include "confdefs.h"
2931 #include <inttypes.h>
2933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2934 egrep "uint32_t" >/dev/null 2>&1; then
2936 cat >> confdefs.h <<\EOF
2937 #define HAVE_INT32_DEFINED 1
2943 cat > conftest.$ac_ext <<EOF
2944 #line 2945 "configure"
2945 #include "confdefs.h"
2946 #include <sys/types.h>
2948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2949 egrep "u_int32_t" >/dev/null 2>&1; then
2951 cat >> confdefs.h <<\EOF
2952 #define HAVE_BSD_INT32_DEFINED 1
2958 cat > conftest.$ac_ext <<EOF
2959 #line 2960 "configure"
2960 #include "confdefs.h"
2961 #include <sys/config.h>
2963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2964 egrep "u_int32_t" >/dev/null 2>&1; then
2966 cat >> confdefs.h <<\EOF
2967 #define HAVE_BSD_INT32_DEFINED 1
2975 cat > conftest.$ac_ext <<EOF
2976 #line 2977 "configure"
2977 #include "confdefs.h"
2980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2981 egrep "mktime" >/dev/null 2>&1; then
2983 cat >> confdefs.h <<\EOF
2984 #define HAVE_MKTIME 1
2990 cat > conftest.$ac_ext <<EOF
2991 #line 2992 "configure"
2992 #include "confdefs.h"
2995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2996 egrep "localtime" >/dev/null 2>&1; then
2998 cat >> confdefs.h <<\EOF
2999 #define HAVE_LOCALTIME 1
3006 test -d java || mkdir java
3007 test -d java/io || mkdir java/io
3008 test -d gnu || mkdir gnu
3011 test -d java/lang || mkdir java/lang
3018 LIBGCJTESTSPEC="-L`pwd`/.libs -rpath `pwd`/.libs"
3021 # Check whether --with-system-zlib or --without-system-zlib was given.
3022 if test "${with_system_zlib+set}" = set; then
3023 withval="$with_system_zlib"
3034 echo $ac_n "checking for garbage collector to use""... $ac_c" 1>&6
3035 echo "configure:3036: checking for garbage collector to use" >&5
3036 # Check whether --enable-java-gc or --disable-java-gc was given.
3037 if test "${enable_java_gc+set}" = set; then
3038 enableval="$enable_java_gc"
3054 echo "$ac_t""boehm" 1>&6
3055 GCDEPS='$(top_builddir)/../boehm-gc/libgcjgc.la'
3056 # We include the path to the boehm-gc build directory.
3057 # See Makefile.am to understand why.
3058 GCLIBS="$GCDEPS -L\$(here)/../boehm-gc/$libsubdir"
3059 GCINCS='-I$(top_srcdir)/../boehm-gc -I$(top_builddir)/../boehm-gc'
3061 JC1GCSPEC='-fuse-boehm-gc'
3062 GCTESTSPEC="-L`pwd`/../boehm-gc/.libs -rpath `pwd`/../boehm-gc/.libs"
3063 GCINCS="$GCINCS `cat ../boehm-gc/boehm-cflags`"
3066 cat >> confdefs.h <<\EOF
3067 #define HAVE_BOEHM_GC 1
3072 echo "$ac_t""none" 1>&6
3077 { echo "configure: error: unrecognized collector \"$GC\"" 1>&2; exit 1; }
3090 echo $ac_n "checking for threads package to use""... $ac_c" 1>&6
3091 echo "configure:3092: checking for threads package to use" >&5
3092 # Check whether --enable-threads or --disable-threads was given.
3093 if test "${enable_threads+set}" = set; then
3094 enableval="$enable_threads"
3101 if test "$THREADS" = yes; then
3107 # FIXME: this isn't correct in all cases.
3114 # FIXME: for now, choose POSIX, because we implement that.
3115 # Later, choose irix threads.
3119 # FIXME: for now, choose POSIX, because we implement that.
3120 # Later, choose solaris threads.
3138 cat >> confdefs.h <<\EOF
3139 #define LINUX_THREADS 1
3145 decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
3146 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
3149 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
3152 echo "$ac_t""$THREADS" 1>&6
3162 THREADLIBS=-lpthread
3163 THREADSPEC=-lpthread
3164 THREADOBJS=posix-threads.lo
3165 THREADH=posix-threads.h
3166 # MIT pthreads doesn't seem to have the mutexattr functions.
3167 # But for now we don't check for it. We just assume you aren't
3168 # using MIT pthreads.
3169 cat >> confdefs.h <<\EOF
3170 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3174 # If we're using the Boehm GC, then we happen to know that it
3175 # defines _REENTRANT, so we don't bother. Eww.
3176 if test "$GC" != boehm; then
3177 cat >> confdefs.h <<\EOF
3178 #define _REENTRANT 1
3182 cat >> confdefs.h <<\EOF
3183 #define _POSIX_PTHREAD_SEMANTICS 1
3189 THREADOBJS=no-threads.lo
3190 THREADH=no-threads.h
3202 if test "$GCC" = yes; then
3214 # We're in the tree with gcc, and need to include some of its headers.
3215 GCC_UNWIND_INCLUDE='-I$(top_srcdir)/../gcc'
3217 if test -n "${with_cross_host}"; then
3218 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
3219 # may not work correctly, because the compiler may not be able to
3222 # We assume newlib. This lets us hard-code the functions we know
3224 cat >> confdefs.h <<\EOF
3225 #define HAVE_MEMMOVE 1
3228 cat >> confdefs.h <<\EOF
3229 #define HAVE_MEMCPY 1
3232 cat >> confdefs.h <<\EOF
3233 #define HAVE_STRERROR 1
3236 cat >> confdefs.h <<\EOF
3237 #define HAVE_GMTIME_R 1
3240 cat >> confdefs.h <<\EOF
3241 #define HAVE_LOCALTIME_R 1
3244 cat >> confdefs.h <<\EOF
3245 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3248 cat >> confdefs.h <<\EOF
3249 #define HAVE_ALLOCA 1
3253 cat >> confdefs.h <<\EOF
3259 ZLIBTESTSPEC="-L`pwd`/../zlib/.libs -rpath `pwd`/../zlib/.libs"
3261 # If Canadian cross, then don't pick up tools from the build
3263 if test "$build" != "$with_cross_host"; then
3266 GCJ="${target_alias}-gcj"
3272 for ac_func in strerror ioctl select fstat open fsync sleep
3274 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3275 echo "configure:3276: checking for $ac_func" >&5
3276 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3277 echo $ac_n "(cached) $ac_c" 1>&6
3279 cat > conftest.$ac_ext <<EOF
3280 #line 3281 "configure"
3281 #include "confdefs.h"
3282 /* System header to define __stub macros and hopefully few prototypes,
3283 which can conflict with char $ac_func(); below. */
3285 /* Override any gcc2 internal prototype to avoid an error. */
3286 /* We use char because int might match the return type of a gcc2
3287 builtin and then its argument prototype would still apply. */
3292 /* The GNU C library defines this for functions which it implements
3293 to always fail with ENOSYS. Some functions are actually named
3294 something starting with __ and the normal name is an alias. */
3295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3303 if { (eval echo configure:3304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3305 eval "ac_cv_func_$ac_func=yes"
3307 echo "configure: failed program was:" >&5
3308 cat conftest.$ac_ext >&5
3310 eval "ac_cv_func_$ac_func=no"
3315 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3316 echo "$ac_t""yes" 1>&6
3317 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3318 cat >> confdefs.h <<EOF
3319 #define $ac_tr_func 1
3323 echo "$ac_t""no" 1>&6
3327 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
3329 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3330 echo "configure:3331: checking for $ac_func" >&5
3331 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3332 echo $ac_n "(cached) $ac_c" 1>&6
3334 cat > conftest.$ac_ext <<EOF
3335 #line 3336 "configure"
3336 #include "confdefs.h"
3337 /* System header to define __stub macros and hopefully few prototypes,
3338 which can conflict with char $ac_func(); below. */
3340 /* Override any gcc2 internal prototype to avoid an error. */
3341 /* We use char because int might match the return type of a gcc2
3342 builtin and then its argument prototype would still apply. */
3347 /* The GNU C library defines this for functions which it implements
3348 to always fail with ENOSYS. Some functions are actually named
3349 something starting with __ and the normal name is an alias. */
3350 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3358 if { (eval echo configure:3359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3360 eval "ac_cv_func_$ac_func=yes"
3362 echo "configure: failed program was:" >&5
3363 cat conftest.$ac_ext >&5
3365 eval "ac_cv_func_$ac_func=no"
3370 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3371 echo "$ac_t""yes" 1>&6
3372 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3373 cat >> confdefs.h <<EOF
3374 #define $ac_tr_func 1
3378 echo "$ac_t""no" 1>&6
3382 for ac_func in access stat mkdir rename rmdir unlink realpath utime chmod
3384 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3385 echo "configure:3386: checking for $ac_func" >&5
3386 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3387 echo $ac_n "(cached) $ac_c" 1>&6
3389 cat > conftest.$ac_ext <<EOF
3390 #line 3391 "configure"
3391 #include "confdefs.h"
3392 /* System header to define __stub macros and hopefully few prototypes,
3393 which can conflict with char $ac_func(); below. */
3395 /* Override any gcc2 internal prototype to avoid an error. */
3396 /* We use char because int might match the return type of a gcc2
3397 builtin and then its argument prototype would still apply. */
3402 /* The GNU C library defines this for functions which it implements
3403 to always fail with ENOSYS. Some functions are actually named
3404 something starting with __ and the normal name is an alias. */
3405 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3413 if { (eval echo configure:3414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3415 eval "ac_cv_func_$ac_func=yes"
3417 echo "configure: failed program was:" >&5
3418 cat conftest.$ac_ext >&5
3420 eval "ac_cv_func_$ac_func=no"
3425 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3426 echo "$ac_t""yes" 1>&6
3427 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3428 cat >> confdefs.h <<EOF
3429 #define $ac_tr_func 1
3433 echo "$ac_t""no" 1>&6
3437 for ac_func in iconv nl_langinfo setlocale
3439 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3440 echo "configure:3441: checking for $ac_func" >&5
3441 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3442 echo $ac_n "(cached) $ac_c" 1>&6
3444 cat > conftest.$ac_ext <<EOF
3445 #line 3446 "configure"
3446 #include "confdefs.h"
3447 /* System header to define __stub macros and hopefully few prototypes,
3448 which can conflict with char $ac_func(); below. */
3450 /* Override any gcc2 internal prototype to avoid an error. */
3451 /* We use char because int might match the return type of a gcc2
3452 builtin and then its argument prototype would still apply. */
3457 /* The GNU C library defines this for functions which it implements
3458 to always fail with ENOSYS. Some functions are actually named
3459 something starting with __ and the normal name is an alias. */
3460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3468 if { (eval echo configure:3469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3470 eval "ac_cv_func_$ac_func=yes"
3472 echo "configure: failed program was:" >&5
3473 cat conftest.$ac_ext >&5
3475 eval "ac_cv_func_$ac_func=no"
3480 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3481 echo "$ac_t""yes" 1>&6
3482 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3483 cat >> confdefs.h <<EOF
3484 #define $ac_tr_func 1
3488 echo "$ac_t""no" 1>&6
3492 for ac_func in inet_aton inet_addr
3494 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3495 echo "configure:3496: checking for $ac_func" >&5
3496 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3497 echo $ac_n "(cached) $ac_c" 1>&6
3499 cat > conftest.$ac_ext <<EOF
3500 #line 3501 "configure"
3501 #include "confdefs.h"
3502 /* System header to define __stub macros and hopefully few prototypes,
3503 which can conflict with char $ac_func(); below. */
3505 /* Override any gcc2 internal prototype to avoid an error. */
3506 /* We use char because int might match the return type of a gcc2
3507 builtin and then its argument prototype would still apply. */
3512 /* The GNU C library defines this for functions which it implements
3513 to always fail with ENOSYS. Some functions are actually named
3514 something starting with __ and the normal name is an alias. */
3515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3523 if { (eval echo configure:3524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3525 eval "ac_cv_func_$ac_func=yes"
3527 echo "configure: failed program was:" >&5
3528 cat conftest.$ac_ext >&5
3530 eval "ac_cv_func_$ac_func=no"
3535 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3536 echo "$ac_t""yes" 1>&6
3537 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3538 cat >> confdefs.h <<EOF
3539 #define $ac_tr_func 1
3543 echo "$ac_t""no" 1>&6
3547 for ac_func in inet_pton uname inet_ntoa
3549 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3550 echo "configure:3551: checking for $ac_func" >&5
3551 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3552 echo $ac_n "(cached) $ac_c" 1>&6
3554 cat > conftest.$ac_ext <<EOF
3555 #line 3556 "configure"
3556 #include "confdefs.h"
3557 /* System header to define __stub macros and hopefully few prototypes,
3558 which can conflict with char $ac_func(); below. */
3560 /* Override any gcc2 internal prototype to avoid an error. */
3561 /* We use char because int might match the return type of a gcc2
3562 builtin and then its argument prototype would still apply. */
3567 /* The GNU C library defines this for functions which it implements
3568 to always fail with ENOSYS. Some functions are actually named
3569 something starting with __ and the normal name is an alias. */
3570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3578 if { (eval echo configure:3579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3580 eval "ac_cv_func_$ac_func=yes"
3582 echo "configure: failed program was:" >&5
3583 cat conftest.$ac_ext >&5
3585 eval "ac_cv_func_$ac_func=no"
3590 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3591 echo "$ac_t""yes" 1>&6
3592 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3593 cat >> confdefs.h <<EOF
3594 #define $ac_tr_func 1
3598 echo "$ac_t""no" 1>&6
3602 for ac_func in backtrace fork execvp pipe
3604 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3605 echo "configure:3606: checking for $ac_func" >&5
3606 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3607 echo $ac_n "(cached) $ac_c" 1>&6
3609 cat > conftest.$ac_ext <<EOF
3610 #line 3611 "configure"
3611 #include "confdefs.h"
3612 /* System header to define __stub macros and hopefully few prototypes,
3613 which can conflict with char $ac_func(); below. */
3615 /* Override any gcc2 internal prototype to avoid an error. */
3616 /* We use char because int might match the return type of a gcc2
3617 builtin and then its argument prototype would still apply. */
3622 /* The GNU C library defines this for functions which it implements
3623 to always fail with ENOSYS. Some functions are actually named
3624 something starting with __ and the normal name is an alias. */
3625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3633 if { (eval echo configure:3634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3635 eval "ac_cv_func_$ac_func=yes"
3637 echo "configure: failed program was:" >&5
3638 cat conftest.$ac_ext >&5
3640 eval "ac_cv_func_$ac_func=no"
3645 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3646 echo "$ac_t""yes" 1>&6
3647 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3648 cat >> confdefs.h <<EOF
3649 #define $ac_tr_func 1
3653 echo "$ac_t""no" 1>&6
3657 for ac_hdr in execinfo.h unistd.h dlfcn.h
3659 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3660 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3661 echo "configure:3662: checking for $ac_hdr" >&5
3662 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3663 echo $ac_n "(cached) $ac_c" 1>&6
3665 cat > conftest.$ac_ext <<EOF
3666 #line 3667 "configure"
3667 #include "confdefs.h"
3670 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3671 { (eval echo configure:3672: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3672 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3673 if test -z "$ac_err"; then
3675 eval "ac_cv_header_$ac_safe=yes"
3678 echo "configure: failed program was:" >&5
3679 cat conftest.$ac_ext >&5
3681 eval "ac_cv_header_$ac_safe=no"
3685 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3686 echo "$ac_t""yes" 1>&6
3687 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3688 cat >> confdefs.h <<EOF
3689 #define $ac_tr_hdr 1
3693 echo "$ac_t""no" 1>&6
3697 echo $ac_n "checking for dladdr in -ldl""... $ac_c" 1>&6
3698 echo "configure:3699: checking for dladdr in -ldl" >&5
3699 ac_lib_var=`echo dl'_'dladdr | sed 'y%./+-%__p_%'`
3700 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3701 echo $ac_n "(cached) $ac_c" 1>&6
3703 ac_save_LIBS="$LIBS"
3705 cat > conftest.$ac_ext <<EOF
3706 #line 3707 "configure"
3707 #include "confdefs.h"
3708 /* Override any gcc2 internal prototype to avoid an error. */
3709 /* We use char because int might match the return type of a gcc2
3710 builtin and then its argument prototype would still apply. */
3717 if { (eval echo configure:3718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3719 eval "ac_cv_lib_$ac_lib_var=yes"
3721 echo "configure: failed program was:" >&5
3722 cat conftest.$ac_ext >&5
3724 eval "ac_cv_lib_$ac_lib_var=no"
3727 LIBS="$ac_save_LIBS"
3730 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3731 echo "$ac_t""yes" 1>&6
3733 cat >> confdefs.h <<\EOF
3734 #define HAVE_DLADDR 1
3738 echo "$ac_t""no" 1>&6
3741 for ac_file in /proc/self/exe
3744 ac_safe=`echo "$ac_file" | sed 'y%./+-%__p_%'`
3745 echo $ac_n "checking for $ac_file""... $ac_c" 1>&6
3746 echo "configure:3747: checking for $ac_file" >&5
3747 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
3748 echo $ac_n "(cached) $ac_c" 1>&6
3750 if test "$cross_compiling" = yes; then
3751 { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
3753 if test -r $ac_file; then
3754 eval "ac_cv_file_$ac_safe=yes"
3756 eval "ac_cv_file_$ac_safe=no"
3760 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
3761 echo "$ac_t""yes" 1>&6
3762 ac_tr_file=HAVE_`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3763 cat >> confdefs.h <<EOF
3764 #define $ac_tr_file 1
3767 cat >> confdefs.h <<\EOF
3768 #define HAVE_PROC_SELF_EXE 1
3772 echo "$ac_t""no" 1>&6
3778 for ac_func in gethostbyname_r
3780 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3781 echo "configure:3782: checking for $ac_func" >&5
3782 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3783 echo $ac_n "(cached) $ac_c" 1>&6
3785 cat > conftest.$ac_ext <<EOF
3786 #line 3787 "configure"
3787 #include "confdefs.h"
3788 /* System header to define __stub macros and hopefully few prototypes,
3789 which can conflict with char $ac_func(); below. */
3791 /* Override any gcc2 internal prototype to avoid an error. */
3792 /* We use char because int might match the return type of a gcc2
3793 builtin and then its argument prototype would still apply. */
3798 /* The GNU C library defines this for functions which it implements
3799 to always fail with ENOSYS. Some functions are actually named
3800 something starting with __ and the normal name is an alias. */
3801 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3809 if { (eval echo configure:3810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3811 eval "ac_cv_func_$ac_func=yes"
3813 echo "configure: failed program was:" >&5
3814 cat conftest.$ac_ext >&5
3816 eval "ac_cv_func_$ac_func=no"
3821 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3822 echo "$ac_t""yes" 1>&6
3823 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3824 cat >> confdefs.h <<EOF
3825 #define $ac_tr_func 1
3828 cat >> confdefs.h <<\EOF
3829 #define HAVE_GETHOSTBYNAME_R 1
3832 # There are two different kinds of gethostbyname_r.
3833 # We look for the one that returns `int'.
3834 # Hopefully this check is robust enough.
3835 cat > conftest.$ac_ext <<EOF
3836 #line 3837 "configure"
3837 #include "confdefs.h"
3840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3841 egrep "int.*gethostbyname_r" >/dev/null 2>&1; then
3844 cat >> confdefs.h <<\EOF
3845 #define GETHOSTBYNAME_R_RETURNS_INT 1
3853 *" -D_REENTRANT "*) ;;
3855 echo $ac_n "checking whether gethostbyname_r declaration requires -D_REENTRANT""... $ac_c" 1>&6
3856 echo "configure:3857: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
3857 if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
3858 echo $ac_n "(cached) $ac_c" 1>&6
3862 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3863 ac_cpp='$CXXCPP $CPPFLAGS'
3864 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3865 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3866 cross_compiling=$ac_cv_prog_cxx_cross
3868 cat > conftest.$ac_ext <<EOF
3869 #line 3870 "configure"
3870 #include "confdefs.h"
3873 gethostbyname_r("", 0, 0);
3876 if { (eval echo configure:3877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3878 libjava_cv_gethostbyname_r_needs_reentrant=no
3880 echo "configure: failed program was:" >&5
3881 cat conftest.$ac_ext >&5
3883 CPPFLAGS_SAVE="$CPPFLAGS"
3884 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
3885 cat > conftest.$ac_ext <<EOF
3886 #line 3887 "configure"
3887 #include "confdefs.h"
3890 gethostbyname_r("", 0, 0);
3893 if { (eval echo configure:3894: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3895 libjava_cv_gethostbyname_r_needs_reentrant=yes
3897 echo "configure: failed program was:" >&5
3898 cat conftest.$ac_ext >&5
3900 libjava_cv_gethostbyname_r_needs_reentrant=fail
3903 CPPFLAGS="$CPPFLAGS_SAVE"
3908 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3909 ac_cpp='$CPP $CPPFLAGS'
3910 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3911 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3912 cross_compiling=$ac_cv_prog_cc_cross
3917 echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
3918 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
3919 cat >> confdefs.h <<\EOF
3920 #define _REENTRANT 1
3927 echo $ac_n "checking for struct hostent_data""... $ac_c" 1>&6
3928 echo "configure:3929: checking for struct hostent_data" >&5
3929 if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
3930 echo $ac_n "(cached) $ac_c" 1>&6
3932 cat > conftest.$ac_ext <<EOF
3933 #line 3934 "configure"
3934 #include "confdefs.h"
3936 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
3937 # define _REENTRANT 1
3941 struct hostent_data data;
3944 if { (eval echo configure:3945: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3946 libjava_cv_struct_hostent_data=yes
3948 echo "configure: failed program was:" >&5
3949 cat conftest.$ac_ext >&5
3951 libjava_cv_struct_hostent_data=no
3956 echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
3957 if test "x$libjava_cv_struct_hostent_data" = xyes; then
3958 cat >> confdefs.h <<\EOF
3959 #define HAVE_STRUCT_HOSTENT_DATA 1
3965 echo "$ac_t""no" 1>&6
3970 for ac_func in gethostbyaddr_r
3972 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3973 echo "configure:3974: checking for $ac_func" >&5
3974 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3975 echo $ac_n "(cached) $ac_c" 1>&6
3977 cat > conftest.$ac_ext <<EOF
3978 #line 3979 "configure"
3979 #include "confdefs.h"
3980 /* System header to define __stub macros and hopefully few prototypes,
3981 which can conflict with char $ac_func(); below. */
3983 /* Override any gcc2 internal prototype to avoid an error. */
3984 /* We use char because int might match the return type of a gcc2
3985 builtin and then its argument prototype would still apply. */
3990 /* The GNU C library defines this for functions which it implements
3991 to always fail with ENOSYS. Some functions are actually named
3992 something starting with __ and the normal name is an alias. */
3993 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4001 if { (eval echo configure:4002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4003 eval "ac_cv_func_$ac_func=yes"
4005 echo "configure: failed program was:" >&5
4006 cat conftest.$ac_ext >&5
4008 eval "ac_cv_func_$ac_func=no"
4013 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4014 echo "$ac_t""yes" 1>&6
4015 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4016 cat >> confdefs.h <<EOF
4017 #define $ac_tr_func 1
4020 cat >> confdefs.h <<\EOF
4021 #define HAVE_GETHOSTBYADDR_R 1
4024 # There are two different kinds of gethostbyaddr_r.
4025 # We look for the one that returns `int'.
4026 # Hopefully this check is robust enough.
4027 cat > conftest.$ac_ext <<EOF
4028 #line 4029 "configure"
4029 #include "confdefs.h"
4032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4033 egrep "int.*gethostbyaddr_r" >/dev/null 2>&1; then
4036 cat >> confdefs.h <<\EOF
4037 #define GETHOSTBYADDR_R_RETURNS_INT 1
4044 echo "$ac_t""no" 1>&6
4049 for ac_func in gethostname
4051 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4052 echo "configure:4053: checking for $ac_func" >&5
4053 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4054 echo $ac_n "(cached) $ac_c" 1>&6
4056 cat > conftest.$ac_ext <<EOF
4057 #line 4058 "configure"
4058 #include "confdefs.h"
4059 /* System header to define __stub macros and hopefully few prototypes,
4060 which can conflict with char $ac_func(); below. */
4062 /* Override any gcc2 internal prototype to avoid an error. */
4063 /* We use char because int might match the return type of a gcc2
4064 builtin and then its argument prototype would still apply. */
4069 /* The GNU C library defines this for functions which it implements
4070 to always fail with ENOSYS. Some functions are actually named
4071 something starting with __ and the normal name is an alias. */
4072 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4080 if { (eval echo configure:4081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4082 eval "ac_cv_func_$ac_func=yes"
4084 echo "configure: failed program was:" >&5
4085 cat conftest.$ac_ext >&5
4087 eval "ac_cv_func_$ac_func=no"
4092 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4093 echo "$ac_t""yes" 1>&6
4094 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4095 cat >> confdefs.h <<EOF
4096 #define $ac_tr_func 1
4099 cat >> confdefs.h <<\EOF
4100 #define HAVE_GETHOSTNAME 1
4103 cat > conftest.$ac_ext <<EOF
4104 #line 4105 "configure"
4105 #include "confdefs.h"
4108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4109 egrep "gethostname" >/dev/null 2>&1; then
4112 cat >> confdefs.h <<\EOF
4113 #define HAVE_GETHOSTNAME_DECL 1
4120 echo "$ac_t""no" 1>&6
4125 # Look for these functions in the thread library, but only bother
4126 # if using POSIX threads.
4127 if test "$THREADS" = posix; then
4129 LIBS="$LIBS $THREADLIBS"
4130 # Some POSIX thread systems don't have pthread_mutexattr_settype.
4132 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
4134 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4135 echo "configure:4136: checking for $ac_func" >&5
4136 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4137 echo $ac_n "(cached) $ac_c" 1>&6
4139 cat > conftest.$ac_ext <<EOF
4140 #line 4141 "configure"
4141 #include "confdefs.h"
4142 /* System header to define __stub macros and hopefully few prototypes,
4143 which can conflict with char $ac_func(); below. */
4145 /* Override any gcc2 internal prototype to avoid an error. */
4146 /* We use char because int might match the return type of a gcc2
4147 builtin and then its argument prototype would still apply. */
4152 /* The GNU C library defines this for functions which it implements
4153 to always fail with ENOSYS. Some functions are actually named
4154 something starting with __ and the normal name is an alias. */
4155 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4163 if { (eval echo configure:4164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4165 eval "ac_cv_func_$ac_func=yes"
4167 echo "configure: failed program was:" >&5
4168 cat conftest.$ac_ext >&5
4170 eval "ac_cv_func_$ac_func=no"
4175 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4176 echo "$ac_t""yes" 1>&6
4177 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4178 cat >> confdefs.h <<EOF
4179 #define $ac_tr_func 1
4183 echo "$ac_t""no" 1>&6
4188 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
4189 # Solaris 7 the name librt is preferred.
4190 for ac_func in sched_yield
4192 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4193 echo "configure:4194: checking for $ac_func" >&5
4194 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4195 echo $ac_n "(cached) $ac_c" 1>&6
4197 cat > conftest.$ac_ext <<EOF
4198 #line 4199 "configure"
4199 #include "confdefs.h"
4200 /* System header to define __stub macros and hopefully few prototypes,
4201 which can conflict with char $ac_func(); below. */
4203 /* Override any gcc2 internal prototype to avoid an error. */
4204 /* We use char because int might match the return type of a gcc2
4205 builtin and then its argument prototype would still apply. */
4210 /* The GNU C library defines this for functions which it implements
4211 to always fail with ENOSYS. Some functions are actually named
4212 something starting with __ and the normal name is an alias. */
4213 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4221 if { (eval echo configure:4222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4223 eval "ac_cv_func_$ac_func=yes"
4225 echo "configure: failed program was:" >&5
4226 cat conftest.$ac_ext >&5
4228 eval "ac_cv_func_$ac_func=no"
4233 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4234 echo "$ac_t""yes" 1>&6
4235 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4236 cat >> confdefs.h <<EOF
4237 #define $ac_tr_func 1
4241 echo "$ac_t""no" 1>&6
4242 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
4243 echo "configure:4244: checking for sched_yield in -lrt" >&5
4244 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
4245 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4246 echo $ac_n "(cached) $ac_c" 1>&6
4248 ac_save_LIBS="$LIBS"
4250 cat > conftest.$ac_ext <<EOF
4251 #line 4252 "configure"
4252 #include "confdefs.h"
4253 /* Override any gcc2 internal prototype to avoid an error. */
4254 /* We use char because int might match the return type of a gcc2
4255 builtin and then its argument prototype would still apply. */
4262 if { (eval echo configure:4263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4264 eval "ac_cv_lib_$ac_lib_var=yes"
4266 echo "configure: failed program was:" >&5
4267 cat conftest.$ac_ext >&5
4269 eval "ac_cv_lib_$ac_lib_var=no"
4272 LIBS="$ac_save_LIBS"
4275 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4276 echo "$ac_t""yes" 1>&6
4278 cat >> confdefs.h <<\EOF
4279 #define HAVE_SCHED_YIELD 1
4282 THREADLIBS="$THREADLIBS -lrt"
4283 THREADSPEC="$THREADSPEC -lrt"
4285 echo "$ac_t""no" 1>&6
4287 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
4288 echo "configure:4289: checking for sched_yield in -lposix4" >&5
4289 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
4290 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4291 echo $ac_n "(cached) $ac_c" 1>&6
4293 ac_save_LIBS="$LIBS"
4294 LIBS="-lposix4 $LIBS"
4295 cat > conftest.$ac_ext <<EOF
4296 #line 4297 "configure"
4297 #include "confdefs.h"
4298 /* Override any gcc2 internal prototype to avoid an error. */
4299 /* We use char because int might match the return type of a gcc2
4300 builtin and then its argument prototype would still apply. */
4307 if { (eval echo configure:4308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4309 eval "ac_cv_lib_$ac_lib_var=yes"
4311 echo "configure: failed program was:" >&5
4312 cat conftest.$ac_ext >&5
4314 eval "ac_cv_lib_$ac_lib_var=no"
4317 LIBS="$ac_save_LIBS"
4320 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4321 echo "$ac_t""yes" 1>&6
4323 cat >> confdefs.h <<\EOF
4324 #define HAVE_SCHED_YIELD 1
4327 THREADLIBS="$THREADLIBS -lposix4"
4328 THREADSPEC="$THREADSPEC -lposix4"
4330 echo "$ac_t""no" 1>&6
4340 # We can save a little space at runtime if the mutex has m_count
4341 # or __m_count. This is a nice hack for Linux.
4342 cat > conftest.$ac_ext <<EOF
4343 #line 4344 "configure"
4344 #include "confdefs.h"
4345 #include <pthread.h>
4348 extern pthread_mutex_t *mutex; int q = mutex->m_count;
4352 if { (eval echo configure:4353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4354 cat >> confdefs.h <<\EOF
4355 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
4359 echo "configure: failed program was:" >&5
4360 cat conftest.$ac_ext >&5
4363 cat > conftest.$ac_ext <<EOF
4364 #line 4365 "configure"
4365 #include "confdefs.h"
4366 #include <pthread.h>
4369 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
4373 if { (eval echo configure:4374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4375 cat >> confdefs.h <<\EOF
4376 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
4380 echo "configure: failed program was:" >&5
4381 cat conftest.$ac_ext >&5
4388 # We require a way to get the time.
4390 for ac_func in gettimeofday time ftime
4392 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4393 echo "configure:4394: checking for $ac_func" >&5
4394 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4395 echo $ac_n "(cached) $ac_c" 1>&6
4397 cat > conftest.$ac_ext <<EOF
4398 #line 4399 "configure"
4399 #include "confdefs.h"
4400 /* System header to define __stub macros and hopefully few prototypes,
4401 which can conflict with char $ac_func(); below. */
4403 /* Override any gcc2 internal prototype to avoid an error. */
4404 /* We use char because int might match the return type of a gcc2
4405 builtin and then its argument prototype would still apply. */
4410 /* The GNU C library defines this for functions which it implements
4411 to always fail with ENOSYS. Some functions are actually named
4412 something starting with __ and the normal name is an alias. */
4413 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4421 if { (eval echo configure:4422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4423 eval "ac_cv_func_$ac_func=yes"
4425 echo "configure: failed program was:" >&5
4426 cat conftest.$ac_ext >&5
4428 eval "ac_cv_func_$ac_func=no"
4433 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4434 echo "$ac_t""yes" 1>&6
4435 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4436 cat >> confdefs.h <<EOF
4437 #define $ac_tr_func 1
4441 echo "$ac_t""no" 1>&6
4445 if test "$time_found" = no; then
4446 { echo "configure: error: no function found to get the time" 1>&2; exit 1; }
4449 for ac_func in memmove
4451 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4452 echo "configure:4453: checking for $ac_func" >&5
4453 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4454 echo $ac_n "(cached) $ac_c" 1>&6
4456 cat > conftest.$ac_ext <<EOF
4457 #line 4458 "configure"
4458 #include "confdefs.h"
4459 /* System header to define __stub macros and hopefully few prototypes,
4460 which can conflict with char $ac_func(); below. */
4462 /* Override any gcc2 internal prototype to avoid an error. */
4463 /* We use char because int might match the return type of a gcc2
4464 builtin and then its argument prototype would still apply. */
4469 /* The GNU C library defines this for functions which it implements
4470 to always fail with ENOSYS. Some functions are actually named
4471 something starting with __ and the normal name is an alias. */
4472 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4480 if { (eval echo configure:4481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4482 eval "ac_cv_func_$ac_func=yes"
4484 echo "configure: failed program was:" >&5
4485 cat conftest.$ac_ext >&5
4487 eval "ac_cv_func_$ac_func=no"
4492 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4493 echo "$ac_t""yes" 1>&6
4494 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4495 cat >> confdefs.h <<EOF
4496 #define $ac_tr_func 1
4500 echo "$ac_t""no" 1>&6
4505 # We require memcpy.
4507 for ac_func in memcpy
4509 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4510 echo "configure:4511: checking for $ac_func" >&5
4511 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4512 echo $ac_n "(cached) $ac_c" 1>&6
4514 cat > conftest.$ac_ext <<EOF
4515 #line 4516 "configure"
4516 #include "confdefs.h"
4517 /* System header to define __stub macros and hopefully few prototypes,
4518 which can conflict with char $ac_func(); below. */
4520 /* Override any gcc2 internal prototype to avoid an error. */
4521 /* We use char because int might match the return type of a gcc2
4522 builtin and then its argument prototype would still apply. */
4527 /* The GNU C library defines this for functions which it implements
4528 to always fail with ENOSYS. Some functions are actually named
4529 something starting with __ and the normal name is an alias. */
4530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4538 if { (eval echo configure:4539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4540 eval "ac_cv_func_$ac_func=yes"
4542 echo "configure: failed program was:" >&5
4543 cat conftest.$ac_ext >&5
4545 eval "ac_cv_func_$ac_func=no"
4550 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4551 echo "$ac_t""yes" 1>&6
4552 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4553 cat >> confdefs.h <<EOF
4554 #define $ac_tr_func 1
4558 echo "$ac_t""no" 1>&6
4562 if test "$memcpy_found" = no; then
4563 { echo "configure: error: memcpy is required" 1>&2; exit 1; }
4566 # Some library-finding code we stole from Tcl.
4567 #--------------------------------------------------------------------
4568 # Check for the existence of the -lsocket and -lnsl libraries.
4569 # The order here is important, so that they end up in the right
4570 # order in the command line generated by make. Here are some
4571 # special considerations:
4572 # 1. Use "connect" and "accept" to check for -lsocket, and
4573 # "gethostbyname" to check for -lnsl.
4574 # 2. Use each function name only once: can't redo a check because
4575 # autoconf caches the results of the last check and won't redo it.
4576 # 3. Use -lnsl and -lsocket only if they supply procedures that
4577 # aren't already present in the normal libraries. This is because
4578 # IRIX 5.2 has libraries, but they aren't needed and they're
4579 # bogus: they goof up name resolution if used.
4580 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
4581 # To get around this problem, check for both libraries together
4582 # if -lsocket doesn't work by itself.
4583 #--------------------------------------------------------------------
4585 echo $ac_n "checking for socket libraries""... $ac_c" 1>&6
4586 echo "configure:4587: checking for socket libraries" >&5
4587 if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
4588 echo $ac_n "(cached) $ac_c" 1>&6
4592 unset ac_cv_func_connect
4593 echo $ac_n "checking for connect""... $ac_c" 1>&6
4594 echo "configure:4595: checking for connect" >&5
4595 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
4596 echo $ac_n "(cached) $ac_c" 1>&6
4598 cat > conftest.$ac_ext <<EOF
4599 #line 4600 "configure"
4600 #include "confdefs.h"
4601 /* System header to define __stub macros and hopefully few prototypes,
4602 which can conflict with char connect(); below. */
4604 /* Override any gcc2 internal prototype to avoid an error. */
4605 /* We use char because int might match the return type of a gcc2
4606 builtin and then its argument prototype would still apply. */
4611 /* The GNU C library defines this for functions which it implements
4612 to always fail with ENOSYS. Some functions are actually named
4613 something starting with __ and the normal name is an alias. */
4614 #if defined (__stub_connect) || defined (__stub___connect)
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_func_connect=yes"
4626 echo "configure: failed program was:" >&5
4627 cat conftest.$ac_ext >&5
4629 eval "ac_cv_func_connect=no"
4634 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
4635 echo "$ac_t""yes" 1>&6
4638 echo "$ac_t""no" 1>&6
4642 if test "$gcj_checkSocket" = 1; then
4643 unset ac_cv_func_connect
4644 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4645 echo "configure:4646: checking for main in -lsocket" >&5
4646 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
4647 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4648 echo $ac_n "(cached) $ac_c" 1>&6
4650 ac_save_LIBS="$LIBS"
4651 LIBS="-lsocket $LIBS"
4652 cat > conftest.$ac_ext <<EOF
4653 #line 4654 "configure"
4654 #include "confdefs.h"
4660 if { (eval echo configure:4661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4662 eval "ac_cv_lib_$ac_lib_var=yes"
4664 echo "configure: failed program was:" >&5
4665 cat conftest.$ac_ext >&5
4667 eval "ac_cv_lib_$ac_lib_var=no"
4670 LIBS="$ac_save_LIBS"
4673 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4674 echo "$ac_t""yes" 1>&6
4675 gcj_cv_lib_sockets="-lsocket"
4677 echo "$ac_t""no" 1>&6
4682 if test "$gcj_checkBoth" = 1; then
4684 LIBS="$LIBS -lsocket -lnsl"
4685 unset ac_cv_func_accept
4686 echo $ac_n "checking for accept""... $ac_c" 1>&6
4687 echo "configure:4688: checking for accept" >&5
4688 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
4689 echo $ac_n "(cached) $ac_c" 1>&6
4691 cat > conftest.$ac_ext <<EOF
4692 #line 4693 "configure"
4693 #include "confdefs.h"
4694 /* System header to define __stub macros and hopefully few prototypes,
4695 which can conflict with char accept(); below. */
4697 /* Override any gcc2 internal prototype to avoid an error. */
4698 /* We use char because int might match the return type of a gcc2
4699 builtin and then its argument prototype would still apply. */
4704 /* The GNU C library defines this for functions which it implements
4705 to always fail with ENOSYS. Some functions are actually named
4706 something starting with __ and the normal name is an alias. */
4707 #if defined (__stub_accept) || defined (__stub___accept)
4715 if { (eval echo configure:4716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4717 eval "ac_cv_func_accept=yes"
4719 echo "configure: failed program was:" >&5
4720 cat conftest.$ac_ext >&5
4722 eval "ac_cv_func_accept=no"
4727 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
4728 echo "$ac_t""yes" 1>&6
4730 gcj_cv_lib_sockets="-lsocket -lnsl"
4732 echo "$ac_t""no" 1>&6
4735 unset ac_cv_func_accept
4738 unset ac_cv_func_gethostbyname
4740 LIBS="$LIBS $gcj_cv_lib_sockets"
4741 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4742 echo "configure:4743: checking for gethostbyname" >&5
4743 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
4744 echo $ac_n "(cached) $ac_c" 1>&6
4746 cat > conftest.$ac_ext <<EOF
4747 #line 4748 "configure"
4748 #include "confdefs.h"
4749 /* System header to define __stub macros and hopefully few prototypes,
4750 which can conflict with char gethostbyname(); below. */
4752 /* Override any gcc2 internal prototype to avoid an error. */
4753 /* We use char because int might match the return type of a gcc2
4754 builtin and then its argument prototype would still apply. */
4755 char gethostbyname();
4759 /* The GNU C library defines this for functions which it implements
4760 to always fail with ENOSYS. Some functions are actually named
4761 something starting with __ and the normal name is an alias. */
4762 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4770 if { (eval echo configure:4771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4772 eval "ac_cv_func_gethostbyname=yes"
4774 echo "configure: failed program was:" >&5
4775 cat conftest.$ac_ext >&5
4777 eval "ac_cv_func_gethostbyname=no"
4782 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
4783 echo "$ac_t""yes" 1>&6
4786 echo "$ac_t""no" 1>&6
4787 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4788 echo "configure:4789: checking for main in -lnsl" >&5
4789 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
4790 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4791 echo $ac_n "(cached) $ac_c" 1>&6
4793 ac_save_LIBS="$LIBS"
4795 cat > conftest.$ac_ext <<EOF
4796 #line 4797 "configure"
4797 #include "confdefs.h"
4803 if { (eval echo configure:4804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4805 eval "ac_cv_lib_$ac_lib_var=yes"
4807 echo "configure: failed program was:" >&5
4808 cat conftest.$ac_ext >&5
4810 eval "ac_cv_lib_$ac_lib_var=no"
4813 LIBS="$ac_save_LIBS"
4816 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4817 echo "$ac_t""yes" 1>&6
4818 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
4820 echo "$ac_t""no" 1>&6
4825 unset ac_cv_func_gethostbyname
4830 echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
4831 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
4833 if test "$with_system_zlib" = yes; then
4834 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
4835 echo "configure:4836: checking for deflate in -lz" >&5
4836 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
4837 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4838 echo $ac_n "(cached) $ac_c" 1>&6
4840 ac_save_LIBS="$LIBS"
4842 cat > conftest.$ac_ext <<EOF
4843 #line 4844 "configure"
4844 #include "confdefs.h"
4845 /* Override any gcc2 internal prototype to avoid an error. */
4846 /* We use char because int might match the return type of a gcc2
4847 builtin and then its argument prototype would still apply. */
4854 if { (eval echo configure:4855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4856 eval "ac_cv_lib_$ac_lib_var=yes"
4858 echo "configure: failed program was:" >&5
4859 cat conftest.$ac_ext >&5
4861 eval "ac_cv_lib_$ac_lib_var=no"
4864 LIBS="$ac_save_LIBS"
4867 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4868 echo "$ac_t""yes" 1>&6
4871 echo "$ac_t""no" 1>&6
4877 ZLIBTESTSPEC="-L`pwd`/../zlib/.libs -rpath `pwd`/../zlib/.libs"
4880 # On Solaris, and maybe other architectures, the Boehm collector
4882 if test "$GC" = boehm; then
4883 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
4884 echo "configure:4885: checking for main in -ldl" >&5
4885 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
4886 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4887 echo $ac_n "(cached) $ac_c" 1>&6
4889 ac_save_LIBS="$LIBS"
4891 cat > conftest.$ac_ext <<EOF
4892 #line 4893 "configure"
4893 #include "confdefs.h"
4899 if { (eval echo configure:4900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4901 eval "ac_cv_lib_$ac_lib_var=yes"
4903 echo "configure: failed program was:" >&5
4904 cat conftest.$ac_ext >&5
4906 eval "ac_cv_lib_$ac_lib_var=no"
4909 LIBS="$ac_save_LIBS"
4912 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4913 echo "$ac_t""yes" 1>&6
4914 SYSTEMSPEC="$SYSTEMSPEC -ldl"
4916 echo "$ac_t""no" 1>&6
4921 if test -z "${with_multisubdir}"; then
4925 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
4928 if test -x "${builddotdot}/../../gcc/gcj"; then
4929 dir="`cd ${builddotdot}/../../gcc && pwd`"
4930 GCJ="$dir/gcj -B`pwd`/ -B$dir/"
4938 # Create it, so that compile/link tests don't fail
4939 test -f libgcj.spec || touch libgcj.spec
4941 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
4942 set dummy ${ac_tool_prefix}gcj; ac_word=$2
4943 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4944 echo "configure:4945: checking for $ac_word" >&5
4945 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
4946 echo $ac_n "(cached) $ac_c" 1>&6
4948 if test -n "$GCJ"; then
4949 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
4951 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4953 for ac_dir in $ac_dummy; do
4954 test -z "$ac_dir" && ac_dir=.
4955 if test -f $ac_dir/$ac_word; then
4956 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
4963 GCJ="$ac_cv_prog_GCJ"
4964 if test -n "$GCJ"; then
4965 echo "$ac_t""$GCJ" 1>&6
4967 echo "$ac_t""no" 1>&6
4971 if test -z "$ac_cv_prog_GCJ"; then
4972 if test -n "$ac_tool_prefix"; then
4973 # Extract the first word of "gcj", so it can be a program name with args.
4974 set dummy gcj; ac_word=$2
4975 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4976 echo "configure:4977: checking for $ac_word" >&5
4977 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
4978 echo $ac_n "(cached) $ac_c" 1>&6
4980 if test -n "$GCJ"; then
4981 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
4983 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4985 for ac_dir in $ac_dummy; do
4986 test -z "$ac_dir" && ac_dir=.
4987 if test -f $ac_dir/$ac_word; then
4988 ac_cv_prog_GCJ="gcj"
4993 test -z "$ac_cv_prog_GCJ" && ac_cv_prog_GCJ="no"
4996 GCJ="$ac_cv_prog_GCJ"
4997 if test -n "$GCJ"; then
4998 echo "$ac_t""$GCJ" 1>&6
5000 echo "$ac_t""no" 1>&6
5008 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
5012 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
5014 lt_save_CFLAGS="$CFLAGS"
5015 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
5016 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5017 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5018 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5019 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5020 deplibs_check_method="$deplibs_check_method" \
5021 file_magic_cmd="$file_magic_cmd" \
5022 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5023 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
5024 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
5026 CFLAGS="$lt_save_CFLAGS"
5028 # Redirect the config.log output again, so that the ltconfig log is not
5029 # clobbered by the next message.
5030 exec 5>>./config.log
5035 echo $ac_n "checking size of void *""... $ac_c" 1>&6
5036 echo "configure:5037: checking size of void *" >&5
5037 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
5038 echo $ac_n "(cached) $ac_c" 1>&6
5040 if test "$cross_compiling" = yes; then
5041 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5043 cat > conftest.$ac_ext <<EOF
5044 #line 5045 "configure"
5045 #include "confdefs.h"
5049 FILE *f=fopen("conftestval", "w");
5051 fprintf(f, "%d\n", sizeof(void *));
5055 if { (eval echo configure:5056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5057 ac_cv_sizeof_void_p=`cat conftestval`
5059 echo "configure: failed program was:" >&5
5060 cat conftest.$ac_ext >&5
5062 ac_cv_sizeof_void_p=0
5068 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
5069 cat >> confdefs.h <<EOF
5070 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5078 if test "x$ZLIBSPEC" = "x-lzgcj"; then
5079 # We include the path to the zlib build directory.
5080 # See Makefile.am to understand why.
5081 ZDEPS='$(top_builddir)/../zlib/libzgcj.la'
5082 ZLIBS="$ZDEPS -L\$(here)/../zlib/$libsubdir"
5083 ZINCS='-I$(top_srcdir)/../zlib'
5094 if test "$CANADIAN" = yes; then
5103 if test "$NULL_TARGET" = yes; then
5105 NULL_TARGET_FALSE='#'
5107 NULL_TARGET_TRUE='#'
5112 if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
5121 if test -z "$with_cross_host"; then
5123 USE_LIBDIR_FALSE='#'
5130 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
5131 NEEDS_DATA_START_TRUE=
5132 NEEDS_DATA_START_FALSE='#'
5134 NEEDS_DATA_START_TRUE='#'
5135 NEEDS_DATA_START_FALSE=
5139 # Determine gcj version number.
5141 gcjvers="`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`"
5143 cat >> confdefs.h <<EOF
5144 #define GCJVERSION "$gcjvers"
5151 echo $ac_n "checking for g++ -ffloat-store bug""... $ac_c" 1>&6
5152 echo "configure:5153: checking for g++ -ffloat-store bug" >&5
5153 save_CFLAGS="$CFLAGS"
5154 CFLAGS="-x c++ -O2 -ffloat-store"
5155 cat > conftest.$ac_ext <<EOF
5156 #line 5157 "configure"
5157 #include "confdefs.h"
5163 if { (eval echo configure:5164: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5165 echo "$ac_t""no" 1>&6
5167 echo "configure: failed program was:" >&5
5168 cat conftest.$ac_ext >&5
5170 cat >> confdefs.h <<\EOF
5171 #define __NO_MATH_INLINES 1
5174 echo "$ac_t""yes" 1>&6
5177 CFLAGS="$save_CFLAGS"
5179 for ac_hdr in unistd.h bstring.h sys/time.h sys/types.h fcntl.h sys/ioctl.h sys/filio.h sys/stat.h sys/select.h sys/socket.h netinet/in.h arpa/inet.h netdb.h pwd.h sys/config.h inttypes.h stdint.h langinfo.h locale.h
5181 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5182 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5183 echo "configure:5184: checking for $ac_hdr" >&5
5184 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5185 echo $ac_n "(cached) $ac_c" 1>&6
5187 cat > conftest.$ac_ext <<EOF
5188 #line 5189 "configure"
5189 #include "confdefs.h"
5192 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5193 { (eval echo configure:5194: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5194 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5195 if test -z "$ac_err"; then
5197 eval "ac_cv_header_$ac_safe=yes"
5200 echo "configure: failed program was:" >&5
5201 cat conftest.$ac_ext >&5
5203 eval "ac_cv_header_$ac_safe=no"
5207 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5208 echo "$ac_t""yes" 1>&6
5209 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5210 cat >> confdefs.h <<EOF
5211 #define $ac_tr_hdr 1
5215 echo "$ac_t""no" 1>&6
5219 for ac_hdr in dirent.h
5221 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5222 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5223 echo "configure:5224: checking for $ac_hdr" >&5
5224 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5225 echo $ac_n "(cached) $ac_c" 1>&6
5227 cat > conftest.$ac_ext <<EOF
5228 #line 5229 "configure"
5229 #include "confdefs.h"
5232 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5233 { (eval echo configure:5234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5234 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5235 if test -z "$ac_err"; then
5237 eval "ac_cv_header_$ac_safe=yes"
5240 echo "configure: failed program was:" >&5
5241 cat conftest.$ac_ext >&5
5243 eval "ac_cv_header_$ac_safe=no"
5247 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5248 echo "$ac_t""yes" 1>&6
5249 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5250 cat >> confdefs.h <<EOF
5251 #define $ac_tr_hdr 1
5255 echo "$ac_t""no" 1>&6
5260 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5261 echo "configure:5262: checking for ANSI C header files" >&5
5262 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5263 echo $ac_n "(cached) $ac_c" 1>&6
5265 cat > conftest.$ac_ext <<EOF
5266 #line 5267 "configure"
5267 #include "confdefs.h"
5273 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5274 { (eval echo configure:5275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5275 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5276 if test -z "$ac_err"; then
5278 ac_cv_header_stdc=yes
5281 echo "configure: failed program was:" >&5
5282 cat conftest.$ac_ext >&5
5284 ac_cv_header_stdc=no
5288 if test $ac_cv_header_stdc = yes; then
5289 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5290 cat > conftest.$ac_ext <<EOF
5291 #line 5292 "configure"
5292 #include "confdefs.h"
5295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5296 egrep "memchr" >/dev/null 2>&1; then
5300 ac_cv_header_stdc=no
5306 if test $ac_cv_header_stdc = yes; then
5307 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5308 cat > conftest.$ac_ext <<EOF
5309 #line 5310 "configure"
5310 #include "confdefs.h"
5313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5314 egrep "free" >/dev/null 2>&1; then
5318 ac_cv_header_stdc=no
5324 if test $ac_cv_header_stdc = yes; then
5325 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5326 if test "$cross_compiling" = yes; then
5329 cat > conftest.$ac_ext <<EOF
5330 #line 5331 "configure"
5331 #include "confdefs.h"
5333 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5334 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5335 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5336 int main () { int i; for (i = 0; i < 256; i++)
5337 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5341 if { (eval echo configure:5342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5345 echo "configure: failed program was:" >&5
5346 cat conftest.$ac_ext >&5
5348 ac_cv_header_stdc=no
5356 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5357 if test $ac_cv_header_stdc = yes; then
5358 cat >> confdefs.h <<\EOF
5359 #define STDC_HEADERS 1
5364 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
5365 echo "configure:5366: checking for ssize_t" >&5
5366 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
5367 echo $ac_n "(cached) $ac_c" 1>&6
5369 cat > conftest.$ac_ext <<EOF
5370 #line 5371 "configure"
5371 #include "confdefs.h"
5372 #include <sys/types.h>
5378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5379 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5381 ac_cv_type_ssize_t=yes
5384 ac_cv_type_ssize_t=no
5389 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
5390 if test $ac_cv_type_ssize_t = no; then
5391 cat >> confdefs.h <<\EOF
5398 echo $ac_n "checking for in_addr_t""... $ac_c" 1>&6
5399 echo "configure:5400: checking for in_addr_t" >&5
5400 cat > conftest.$ac_ext <<EOF
5401 #line 5402 "configure"
5402 #include "confdefs.h"
5403 #include <sys/types.h>
5408 #if HAVE_NETINET_IN_H
5409 #include <netinet/in.h>
5415 if { (eval echo configure:5416: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5417 cat >> confdefs.h <<\EOF
5418 #define HAVE_IN_ADDR_T 1
5421 echo "$ac_t""yes" 1>&6
5423 echo "configure: failed program was:" >&5
5424 cat conftest.$ac_ext >&5
5426 echo "$ac_t""no" 1>&6
5430 echo $ac_n "checking whether struct ip_mreq is in netinet/in.h""... $ac_c" 1>&6
5431 echo "configure:5432: checking whether struct ip_mreq is in netinet/in.h" >&5
5432 cat > conftest.$ac_ext <<EOF
5433 #line 5434 "configure"
5434 #include "confdefs.h"
5435 #include <netinet/in.h>
5437 struct ip_mreq mreq;
5440 if { (eval echo configure:5441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5442 cat >> confdefs.h <<\EOF
5443 #define HAVE_STRUCT_IP_MREQ 1
5446 echo "$ac_t""yes" 1>&6
5448 echo "configure: failed program was:" >&5
5449 cat conftest.$ac_ext >&5
5451 echo "$ac_t""no" 1>&6
5455 echo $ac_n "checking whether struct sockaddr_in6 is in netinet/in.h""... $ac_c" 1>&6
5456 echo "configure:5457: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
5457 cat > conftest.$ac_ext <<EOF
5458 #line 5459 "configure"
5459 #include "confdefs.h"
5460 #include <netinet/in.h>
5462 struct sockaddr_in6 addr6;
5465 if { (eval echo configure:5466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5467 cat >> confdefs.h <<\EOF
5468 #define HAVE_INET6 1
5471 echo "$ac_t""yes" 1>&6
5473 echo "configure: failed program was:" >&5
5474 cat conftest.$ac_ext >&5
5476 echo "$ac_t""no" 1>&6
5480 echo $ac_n "checking for socklen_t in sys/socket.h""... $ac_c" 1>&6
5481 echo "configure:5482: checking for socklen_t in sys/socket.h" >&5
5482 cat > conftest.$ac_ext <<EOF
5483 #line 5484 "configure"
5484 #include "confdefs.h"
5485 #include <sys/types.h>
5486 #include <sys/socket.h>
5491 if { (eval echo configure:5492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5493 cat >> confdefs.h <<\EOF
5494 #define HAVE_SOCKLEN_T 1
5497 echo "$ac_t""yes" 1>&6
5499 echo "configure: failed program was:" >&5
5500 cat conftest.$ac_ext >&5
5502 echo "$ac_t""no" 1>&6
5506 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
5507 echo "configure:5508: checking for tm_gmtoff in struct tm" >&5
5508 cat > conftest.$ac_ext <<EOF
5509 #line 5510 "configure"
5510 #include "confdefs.h"
5513 struct tm tim; tim.tm_gmtoff = 0;
5516 if { (eval echo configure:5517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5518 cat >> confdefs.h <<\EOF
5519 #define STRUCT_TM_HAS_GMTOFF 1
5522 echo "$ac_t""yes" 1>&6
5524 echo "configure: failed program was:" >&5
5525 cat conftest.$ac_ext >&5
5527 echo "$ac_t""no" 1>&6
5528 echo $ac_n "checking for global timezone variable""... $ac_c" 1>&6
5529 echo "configure:5530: checking for global timezone variable" >&5
5530 cat > conftest.$ac_ext <<EOF
5531 #line 5532 "configure"
5532 #include "confdefs.h"
5538 if { (eval echo configure:5539: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5540 cat >> confdefs.h <<\EOF
5541 #define HAVE_TIMEZONE 1
5544 echo "$ac_t""yes" 1>&6
5546 echo "configure: failed program was:" >&5
5547 cat conftest.$ac_ext >&5
5549 echo "$ac_t""no" 1>&6
5555 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5556 # for constant arguments. Useless!
5557 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5558 echo "configure:5559: checking for working alloca.h" >&5
5559 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5560 echo $ac_n "(cached) $ac_c" 1>&6
5562 cat > conftest.$ac_ext <<EOF
5563 #line 5564 "configure"
5564 #include "confdefs.h"
5567 char *p = alloca(2 * sizeof(int));
5570 if { (eval echo configure:5571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5572 ac_cv_header_alloca_h=yes
5574 echo "configure: failed program was:" >&5
5575 cat conftest.$ac_ext >&5
5577 ac_cv_header_alloca_h=no
5582 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5583 if test $ac_cv_header_alloca_h = yes; then
5584 cat >> confdefs.h <<\EOF
5585 #define HAVE_ALLOCA_H 1
5590 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5591 echo "configure:5592: checking for alloca" >&5
5592 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5593 echo $ac_n "(cached) $ac_c" 1>&6
5595 cat > conftest.$ac_ext <<EOF
5596 #line 5597 "configure"
5597 #include "confdefs.h"
5600 # define alloca __builtin_alloca
5603 # include <malloc.h>
5604 # define alloca _alloca
5607 # include <alloca.h>
5612 # ifndef alloca /* predefined by HP cc +Olibcalls */
5621 char *p = (char *) alloca(1);
5624 if { (eval echo configure:5625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5626 ac_cv_func_alloca_works=yes
5628 echo "configure: failed program was:" >&5
5629 cat conftest.$ac_ext >&5
5631 ac_cv_func_alloca_works=no
5636 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5637 if test $ac_cv_func_alloca_works = yes; then
5638 cat >> confdefs.h <<\EOF
5639 #define HAVE_ALLOCA 1
5644 if test $ac_cv_func_alloca_works = no; then
5645 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5646 # that cause trouble. Some versions do not even contain alloca or
5647 # contain a buggy version. If you still want to use their alloca,
5648 # use ar to extract alloca.o from them instead of compiling alloca.c.
5649 ALLOCA=alloca.${ac_objext}
5650 cat >> confdefs.h <<\EOF
5655 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5656 echo "configure:5657: checking whether alloca needs Cray hooks" >&5
5657 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5658 echo $ac_n "(cached) $ac_c" 1>&6
5660 cat > conftest.$ac_ext <<EOF
5661 #line 5662 "configure"
5662 #include "confdefs.h"
5663 #if defined(CRAY) && ! defined(CRAY2)
5670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5671 egrep "webecray" >/dev/null 2>&1; then
5682 echo "$ac_t""$ac_cv_os_cray" 1>&6
5683 if test $ac_cv_os_cray = yes; then
5684 for ac_func in _getb67 GETB67 getb67; do
5685 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5686 echo "configure:5687: checking for $ac_func" >&5
5687 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5688 echo $ac_n "(cached) $ac_c" 1>&6
5690 cat > conftest.$ac_ext <<EOF
5691 #line 5692 "configure"
5692 #include "confdefs.h"
5693 /* System header to define __stub macros and hopefully few prototypes,
5694 which can conflict with char $ac_func(); below. */
5696 /* Override any gcc2 internal prototype to avoid an error. */
5697 /* We use char because int might match the return type of a gcc2
5698 builtin and then its argument prototype would still apply. */
5703 /* The GNU C library defines this for functions which it implements
5704 to always fail with ENOSYS. Some functions are actually named
5705 something starting with __ and the normal name is an alias. */
5706 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5714 if { (eval echo configure:5715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5716 eval "ac_cv_func_$ac_func=yes"
5718 echo "configure: failed program was:" >&5
5719 cat conftest.$ac_ext >&5
5721 eval "ac_cv_func_$ac_func=no"
5726 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5727 echo "$ac_t""yes" 1>&6
5728 cat >> confdefs.h <<EOF
5729 #define CRAY_STACKSEG_END $ac_func
5734 echo "$ac_t""no" 1>&6
5740 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5741 echo "configure:5742: checking stack direction for C alloca" >&5
5742 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5743 echo $ac_n "(cached) $ac_c" 1>&6
5745 if test "$cross_compiling" = yes; then
5746 ac_cv_c_stack_direction=0
5748 cat > conftest.$ac_ext <<EOF
5749 #line 5750 "configure"
5750 #include "confdefs.h"
5751 find_stack_direction ()
5753 static char *addr = 0;
5758 return find_stack_direction ();
5761 return (&dummy > addr) ? 1 : -1;
5765 exit (find_stack_direction() < 0);
5768 if { (eval echo configure:5769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5770 ac_cv_c_stack_direction=1
5772 echo "configure: failed program was:" >&5
5773 cat conftest.$ac_ext >&5
5775 ac_cv_c_stack_direction=-1
5782 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5783 cat >> confdefs.h <<EOF
5784 #define STACK_DIRECTION $ac_cv_c_stack_direction
5792 # Extract the first word of "$ac_prog", so it can be a program name with args.
5793 set dummy $ac_prog; ac_word=$2
5794 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5795 echo "configure:5796: checking for $ac_word" >&5
5796 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
5797 echo $ac_n "(cached) $ac_c" 1>&6
5799 if test -n "$PERL"; then
5800 ac_cv_prog_PERL="$PERL" # Let the user override the test.
5802 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5804 for ac_dir in $ac_dummy; do
5805 test -z "$ac_dir" && ac_dir=.
5806 if test -f $ac_dir/$ac_word; then
5807 ac_cv_prog_PERL="$ac_prog"
5814 PERL="$ac_cv_prog_PERL"
5815 if test -n "$PERL"; then
5816 echo "$ac_t""$PERL" 1>&6
5818 echo "$ac_t""no" 1>&6
5821 test -n "$PERL" && break
5823 test -n "$PERL" || PERL="false"
5830 SIGNAL_HANDLER=include/i386-signal.h
5833 SIGNAL_HANDLER=include/sparc-signal.h
5836 SYSDEP_SOURCES=sysdep/ia64.c
5837 test -d sysdep || mkdir sysdep
5840 SIGNAL_HANDLER=include/default-signal.h
5844 # If we're using sjlj exceptions, forget what we just learned.
5845 if test "$libgcj_sjlj" = yes; then
5846 SIGNAL_HANDLER=include/default-signal.h
5853 if test "${multilib}" = "yes"; then
5854 multilib_arg="--enable-multilib"
5859 # If we find X, set shell vars x_includes and x_libraries to the
5860 # paths, otherwise set no_x=yes.
5861 # Uses ac_ vars as temps to allow command line to override cache and checks.
5862 # --without-x overrides everything else, but does not touch the cache.
5863 echo $ac_n "checking for X""... $ac_c" 1>&6
5864 echo "configure:5865: checking for X" >&5
5866 # Check whether --with-x or --without-x was given.
5867 if test "${with_x+set}" = set; then
5872 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5873 if test "x$with_x" = xno; then
5874 # The user explicitly disabled X.
5877 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5878 # Both variables are already set.
5881 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
5882 echo $ac_n "(cached) $ac_c" 1>&6
5884 # One or both of the vars are not set, and there is no cached value.
5885 ac_x_includes=NO ac_x_libraries=NO
5887 if mkdir conftestdir; then
5889 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5890 cat > Imakefile <<'EOF'
5892 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5894 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5895 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5896 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5897 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5898 for ac_extension in a so sl; do
5899 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5900 test -f $ac_im_libdir/libX11.$ac_extension; then
5901 ac_im_usrlibdir=$ac_im_libdir; break
5904 # Screen out bogus values from the imake configuration. They are
5905 # bogus both because they are the default anyway, and because
5906 # using them would break gcc on systems where it needs fixed includes.
5907 case "$ac_im_incroot" in
5909 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
5911 case "$ac_im_usrlibdir" in
5913 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
5920 if test "$ac_x_includes" = NO; then
5921 # Guess where to find include files, by looking for this one X11 .h file.
5922 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
5924 # First, try using that file with no special directory specified.
5925 cat > conftest.$ac_ext <<EOF
5926 #line 5927 "configure"
5927 #include "confdefs.h"
5928 #include <$x_direct_test_include>
5930 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5931 { (eval echo configure:5932: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5932 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5933 if test -z "$ac_err"; then
5935 # We can compile using X headers with no special include directory.
5939 echo "configure: failed program was:" >&5
5940 cat conftest.$ac_ext >&5
5942 # Look for the header file in a standard set of common directories.
5943 # Check X11 before X11Rn because it is often a symlink to the current release.
5946 /usr/X11R6/include \
5947 /usr/X11R5/include \
5948 /usr/X11R4/include \
5951 /usr/include/X11R6 \
5952 /usr/include/X11R5 \
5953 /usr/include/X11R4 \
5955 /usr/local/X11/include \
5956 /usr/local/X11R6/include \
5957 /usr/local/X11R5/include \
5958 /usr/local/X11R4/include \
5960 /usr/local/include/X11 \
5961 /usr/local/include/X11R6 \
5962 /usr/local/include/X11R5 \
5963 /usr/local/include/X11R4 \
5967 /usr/XFree86/include/X11 \
5970 /usr/local/include \
5971 /usr/unsupported/include \
5972 /usr/athena/include \
5973 /usr/local/x11r5/include \
5974 /usr/lpp/Xamples/include \
5976 /usr/openwin/include \
5977 /usr/openwin/share/include \
5980 if test -r "$ac_dir/$x_direct_test_include"; then
5981 ac_x_includes=$ac_dir
5987 fi # $ac_x_includes = NO
5989 if test "$ac_x_libraries" = NO; then
5990 # Check for the libraries.
5992 test -z "$x_direct_test_library" && x_direct_test_library=Xt
5993 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
5995 # See if we find them without any special options.
5996 # Don't add to $LIBS permanently.
5997 ac_save_LIBS="$LIBS"
5998 LIBS="-l$x_direct_test_library $LIBS"
5999 cat > conftest.$ac_ext <<EOF
6000 #line 6001 "configure"
6001 #include "confdefs.h"
6004 ${x_direct_test_function}()
6007 if { (eval echo configure:6008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6009 LIBS="$ac_save_LIBS"
6010 # We can link X programs with no special library path.
6013 echo "configure: failed program was:" >&5
6014 cat conftest.$ac_ext >&5
6016 LIBS="$ac_save_LIBS"
6017 # First see if replacing the include by lib works.
6018 # Check X11 before X11Rn because it is often a symlink to the current release.
6019 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
6030 /usr/local/X11/lib \
6031 /usr/local/X11R6/lib \
6032 /usr/local/X11R5/lib \
6033 /usr/local/X11R4/lib \
6035 /usr/local/lib/X11 \
6036 /usr/local/lib/X11R6 \
6037 /usr/local/lib/X11R5 \
6038 /usr/local/lib/X11R4 \
6042 /usr/XFree86/lib/X11 \
6046 /usr/unsupported/lib \
6048 /usr/local/x11r5/lib \
6049 /usr/lpp/Xamples/lib \
6053 /usr/openwin/share/lib \
6056 for ac_extension in a so sl; do
6057 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
6058 ac_x_libraries=$ac_dir
6065 fi # $ac_x_libraries = NO
6067 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
6068 # Didn't find X anywhere. Cache the known absence of X.
6069 ac_cv_have_x="have_x=no"
6071 # Record where we found X for the cache.
6072 ac_cv_have_x="have_x=yes \
6073 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6077 eval "$ac_cv_have_x"
6080 if test "$have_x" != yes; then
6081 echo "$ac_t""$have_x" 1>&6
6084 # If each of the values was on the command line, it overrides each guess.
6085 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6086 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6087 # Update the cache value to reflect the command line values.
6088 ac_cv_have_x="have_x=yes \
6089 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6090 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
6093 if test "$no_x" = yes; then
6094 # Not all programs may use this symbol, but it does not hurt to define it.
6095 cat >> confdefs.h <<\EOF
6096 #define X_DISPLAY_MISSING 1
6099 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6101 if test -n "$x_includes"; then
6102 X_CFLAGS="$X_CFLAGS -I$x_includes"
6105 # It would also be nice to do this for all -L options, not just this one.
6106 if test -n "$x_libraries"; then
6107 X_LIBS="$X_LIBS -L$x_libraries"
6108 # For Solaris; some versions of Sun CC require a space after -R and
6109 # others require no space. Words are not sufficient . . . .
6110 case "`(uname -sr) 2>/dev/null`" in
6112 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
6113 echo "configure:6114: checking whether -R must be followed by a space" >&5
6114 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
6115 cat > conftest.$ac_ext <<EOF
6116 #line 6117 "configure"
6117 #include "confdefs.h"
6123 if { (eval echo configure:6124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6127 echo "configure: failed program was:" >&5
6128 cat conftest.$ac_ext >&5
6133 if test $ac_R_nospace = yes; then
6134 echo "$ac_t""no" 1>&6
6135 X_LIBS="$X_LIBS -R$x_libraries"
6137 LIBS="$ac_xsave_LIBS -R $x_libraries"
6138 cat > conftest.$ac_ext <<EOF
6139 #line 6140 "configure"
6140 #include "confdefs.h"
6146 if { (eval echo configure:6147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6150 echo "configure: failed program was:" >&5
6151 cat conftest.$ac_ext >&5
6156 if test $ac_R_space = yes; then
6157 echo "$ac_t""yes" 1>&6
6158 X_LIBS="$X_LIBS -R $x_libraries"
6160 echo "$ac_t""neither works" 1>&6
6163 LIBS="$ac_xsave_LIBS"
6167 # Check for system-dependent libraries X programs must link with.
6168 # Do this before checking for the system-independent R6 libraries
6169 # (-lICE), since we may need -lsocket or whatever for X linking.
6171 if test "$ISC" = yes; then
6172 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6174 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
6175 # libraries were built with DECnet support. And karl@cs.umb.edu says
6176 # the Alpha needs dnet_stub (dnet does not exist).
6177 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
6178 echo "configure:6179: checking for dnet_ntoa in -ldnet" >&5
6179 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6180 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6181 echo $ac_n "(cached) $ac_c" 1>&6
6183 ac_save_LIBS="$LIBS"
6185 cat > conftest.$ac_ext <<EOF
6186 #line 6187 "configure"
6187 #include "confdefs.h"
6188 /* Override any gcc2 internal prototype to avoid an error. */
6189 /* We use char because int might match the return type of a gcc2
6190 builtin and then its argument prototype would still apply. */
6197 if { (eval echo configure:6198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6199 eval "ac_cv_lib_$ac_lib_var=yes"
6201 echo "configure: failed program was:" >&5
6202 cat conftest.$ac_ext >&5
6204 eval "ac_cv_lib_$ac_lib_var=no"
6207 LIBS="$ac_save_LIBS"
6210 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6211 echo "$ac_t""yes" 1>&6
6212 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6214 echo "$ac_t""no" 1>&6
6217 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6218 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
6219 echo "configure:6220: checking for dnet_ntoa in -ldnet_stub" >&5
6220 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6221 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6222 echo $ac_n "(cached) $ac_c" 1>&6
6224 ac_save_LIBS="$LIBS"
6225 LIBS="-ldnet_stub $LIBS"
6226 cat > conftest.$ac_ext <<EOF
6227 #line 6228 "configure"
6228 #include "confdefs.h"
6229 /* Override any gcc2 internal prototype to avoid an error. */
6230 /* We use char because int might match the return type of a gcc2
6231 builtin and then its argument prototype would still apply. */
6238 if { (eval echo configure:6239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6240 eval "ac_cv_lib_$ac_lib_var=yes"
6242 echo "configure: failed program was:" >&5
6243 cat conftest.$ac_ext >&5
6245 eval "ac_cv_lib_$ac_lib_var=no"
6248 LIBS="$ac_save_LIBS"
6251 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6252 echo "$ac_t""yes" 1>&6
6253 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6255 echo "$ac_t""no" 1>&6
6260 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6261 # to get the SysV transport functions.
6262 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
6264 # The nsl library prevents programs from opening the X display
6265 # on Irix 5.2, according to dickey@clark.net.
6266 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
6267 echo "configure:6268: checking for gethostbyname" >&5
6268 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
6269 echo $ac_n "(cached) $ac_c" 1>&6
6271 cat > conftest.$ac_ext <<EOF
6272 #line 6273 "configure"
6273 #include "confdefs.h"
6274 /* System header to define __stub macros and hopefully few prototypes,
6275 which can conflict with char gethostbyname(); below. */
6277 /* Override any gcc2 internal prototype to avoid an error. */
6278 /* We use char because int might match the return type of a gcc2
6279 builtin and then its argument prototype would still apply. */
6280 char gethostbyname();
6284 /* The GNU C library defines this for functions which it implements
6285 to always fail with ENOSYS. Some functions are actually named
6286 something starting with __ and the normal name is an alias. */
6287 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6295 if { (eval echo configure:6296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6297 eval "ac_cv_func_gethostbyname=yes"
6299 echo "configure: failed program was:" >&5
6300 cat conftest.$ac_ext >&5
6302 eval "ac_cv_func_gethostbyname=no"
6307 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
6308 echo "$ac_t""yes" 1>&6
6311 echo "$ac_t""no" 1>&6
6314 if test $ac_cv_func_gethostbyname = no; then
6315 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
6316 echo "configure:6317: checking for gethostbyname in -lnsl" >&5
6317 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
6318 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6319 echo $ac_n "(cached) $ac_c" 1>&6
6321 ac_save_LIBS="$LIBS"
6323 cat > conftest.$ac_ext <<EOF
6324 #line 6325 "configure"
6325 #include "confdefs.h"
6326 /* Override any gcc2 internal prototype to avoid an error. */
6327 /* We use char because int might match the return type of a gcc2
6328 builtin and then its argument prototype would still apply. */
6329 char gethostbyname();
6335 if { (eval echo configure:6336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6337 eval "ac_cv_lib_$ac_lib_var=yes"
6339 echo "configure: failed program was:" >&5
6340 cat conftest.$ac_ext >&5
6342 eval "ac_cv_lib_$ac_lib_var=no"
6345 LIBS="$ac_save_LIBS"
6348 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6349 echo "$ac_t""yes" 1>&6
6350 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6352 echo "$ac_t""no" 1>&6
6357 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6358 # socket/setsockopt and other routines are undefined under SCO ODT
6359 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6360 # on later versions), says simon@lia.di.epfl.ch: it contains
6361 # gethostby* variants that don't use the nameserver (or something).
6362 # -lsocket must be given before -lnsl if both are needed.
6363 # We assume that if connect needs -lnsl, so does gethostbyname.
6364 echo $ac_n "checking for connect""... $ac_c" 1>&6
6365 echo "configure:6366: checking for connect" >&5
6366 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
6367 echo $ac_n "(cached) $ac_c" 1>&6
6369 cat > conftest.$ac_ext <<EOF
6370 #line 6371 "configure"
6371 #include "confdefs.h"
6372 /* System header to define __stub macros and hopefully few prototypes,
6373 which can conflict with char connect(); below. */
6375 /* Override any gcc2 internal prototype to avoid an error. */
6376 /* We use char because int might match the return type of a gcc2
6377 builtin and then its argument prototype would still apply. */
6382 /* The GNU C library defines this for functions which it implements
6383 to always fail with ENOSYS. Some functions are actually named
6384 something starting with __ and the normal name is an alias. */
6385 #if defined (__stub_connect) || defined (__stub___connect)
6393 if { (eval echo configure:6394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6395 eval "ac_cv_func_connect=yes"
6397 echo "configure: failed program was:" >&5
6398 cat conftest.$ac_ext >&5
6400 eval "ac_cv_func_connect=no"
6405 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
6406 echo "$ac_t""yes" 1>&6
6409 echo "$ac_t""no" 1>&6
6412 if test $ac_cv_func_connect = no; then
6413 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
6414 echo "configure:6415: checking for connect in -lsocket" >&5
6415 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
6416 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6417 echo $ac_n "(cached) $ac_c" 1>&6
6419 ac_save_LIBS="$LIBS"
6420 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6421 cat > conftest.$ac_ext <<EOF
6422 #line 6423 "configure"
6423 #include "confdefs.h"
6424 /* Override any gcc2 internal prototype to avoid an error. */
6425 /* We use char because int might match the return type of a gcc2
6426 builtin and then its argument prototype would still apply. */
6433 if { (eval echo configure:6434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6435 eval "ac_cv_lib_$ac_lib_var=yes"
6437 echo "configure: failed program was:" >&5
6438 cat conftest.$ac_ext >&5
6440 eval "ac_cv_lib_$ac_lib_var=no"
6443 LIBS="$ac_save_LIBS"
6446 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6447 echo "$ac_t""yes" 1>&6
6448 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6450 echo "$ac_t""no" 1>&6
6455 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
6456 echo $ac_n "checking for remove""... $ac_c" 1>&6
6457 echo "configure:6458: checking for remove" >&5
6458 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
6459 echo $ac_n "(cached) $ac_c" 1>&6
6461 cat > conftest.$ac_ext <<EOF
6462 #line 6463 "configure"
6463 #include "confdefs.h"
6464 /* System header to define __stub macros and hopefully few prototypes,
6465 which can conflict with char remove(); below. */
6467 /* Override any gcc2 internal prototype to avoid an error. */
6468 /* We use char because int might match the return type of a gcc2
6469 builtin and then its argument prototype would still apply. */
6474 /* The GNU C library defines this for functions which it implements
6475 to always fail with ENOSYS. Some functions are actually named
6476 something starting with __ and the normal name is an alias. */
6477 #if defined (__stub_remove) || defined (__stub___remove)
6485 if { (eval echo configure:6486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6487 eval "ac_cv_func_remove=yes"
6489 echo "configure: failed program was:" >&5
6490 cat conftest.$ac_ext >&5
6492 eval "ac_cv_func_remove=no"
6497 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
6498 echo "$ac_t""yes" 1>&6
6501 echo "$ac_t""no" 1>&6
6504 if test $ac_cv_func_remove = no; then
6505 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
6506 echo "configure:6507: checking for remove in -lposix" >&5
6507 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
6508 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6509 echo $ac_n "(cached) $ac_c" 1>&6
6511 ac_save_LIBS="$LIBS"
6512 LIBS="-lposix $LIBS"
6513 cat > conftest.$ac_ext <<EOF
6514 #line 6515 "configure"
6515 #include "confdefs.h"
6516 /* Override any gcc2 internal prototype to avoid an error. */
6517 /* We use char because int might match the return type of a gcc2
6518 builtin and then its argument prototype would still apply. */
6525 if { (eval echo configure:6526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6527 eval "ac_cv_lib_$ac_lib_var=yes"
6529 echo "configure: failed program was:" >&5
6530 cat conftest.$ac_ext >&5
6532 eval "ac_cv_lib_$ac_lib_var=no"
6535 LIBS="$ac_save_LIBS"
6538 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6539 echo "$ac_t""yes" 1>&6
6540 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6542 echo "$ac_t""no" 1>&6
6547 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6548 echo $ac_n "checking for shmat""... $ac_c" 1>&6
6549 echo "configure:6550: checking for shmat" >&5
6550 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
6551 echo $ac_n "(cached) $ac_c" 1>&6
6553 cat > conftest.$ac_ext <<EOF
6554 #line 6555 "configure"
6555 #include "confdefs.h"
6556 /* System header to define __stub macros and hopefully few prototypes,
6557 which can conflict with char shmat(); below. */
6559 /* Override any gcc2 internal prototype to avoid an error. */
6560 /* We use char because int might match the return type of a gcc2
6561 builtin and then its argument prototype would still apply. */
6566 /* The GNU C library defines this for functions which it implements
6567 to always fail with ENOSYS. Some functions are actually named
6568 something starting with __ and the normal name is an alias. */
6569 #if defined (__stub_shmat) || defined (__stub___shmat)
6577 if { (eval echo configure:6578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6579 eval "ac_cv_func_shmat=yes"
6581 echo "configure: failed program was:" >&5
6582 cat conftest.$ac_ext >&5
6584 eval "ac_cv_func_shmat=no"
6589 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
6590 echo "$ac_t""yes" 1>&6
6593 echo "$ac_t""no" 1>&6
6596 if test $ac_cv_func_shmat = no; then
6597 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
6598 echo "configure:6599: checking for shmat in -lipc" >&5
6599 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
6600 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6601 echo $ac_n "(cached) $ac_c" 1>&6
6603 ac_save_LIBS="$LIBS"
6605 cat > conftest.$ac_ext <<EOF
6606 #line 6607 "configure"
6607 #include "confdefs.h"
6608 /* Override any gcc2 internal prototype to avoid an error. */
6609 /* We use char because int might match the return type of a gcc2
6610 builtin and then its argument prototype would still apply. */
6617 if { (eval echo configure:6618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6619 eval "ac_cv_lib_$ac_lib_var=yes"
6621 echo "configure: failed program was:" >&5
6622 cat conftest.$ac_ext >&5
6624 eval "ac_cv_lib_$ac_lib_var=no"
6627 LIBS="$ac_save_LIBS"
6630 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6631 echo "$ac_t""yes" 1>&6
6632 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6634 echo "$ac_t""no" 1>&6
6640 # Check for libraries that X11R6 Xt/Xaw programs need.
6641 ac_save_LDFLAGS="$LDFLAGS"
6642 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6643 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6644 # check for ICE first), but we must link in the order -lSM -lICE or
6645 # we get undefined symbols. So assume we have SM if we have ICE.
6646 # These have to be linked with before -lX11, unlike the other
6647 # libraries we check for below, so use a different variable.
6648 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
6649 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
6650 echo "configure:6651: checking for IceConnectionNumber in -lICE" >&5
6651 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
6652 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6653 echo $ac_n "(cached) $ac_c" 1>&6
6655 ac_save_LIBS="$LIBS"
6656 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6657 cat > conftest.$ac_ext <<EOF
6658 #line 6659 "configure"
6659 #include "confdefs.h"
6660 /* Override any gcc2 internal prototype to avoid an error. */
6661 /* We use char because int might match the return type of a gcc2
6662 builtin and then its argument prototype would still apply. */
6663 char IceConnectionNumber();
6666 IceConnectionNumber()
6669 if { (eval echo configure:6670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6671 eval "ac_cv_lib_$ac_lib_var=yes"
6673 echo "configure: failed program was:" >&5
6674 cat conftest.$ac_ext >&5
6676 eval "ac_cv_lib_$ac_lib_var=no"
6679 LIBS="$ac_save_LIBS"
6682 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6683 echo "$ac_t""yes" 1>&6
6684 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6686 echo "$ac_t""no" 1>&6
6689 LDFLAGS="$ac_save_LDFLAGS"
6694 # Check whether --enable-java-awt or --disable-java-awt was given.
6695 if test "${enable_java_awt+set}" = set; then
6696 enableval="$enable_java_awt"
6701 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
6705 for peer in $peerlibs ; do
6708 if test "$no_x" = yes; then
6709 echo "*** xlib peers requested but no X library available" 1>&2
6719 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
6726 if test "$use_xlib_awt" = yes; then
6735 if test "$use_gtk_awt" = yes; then
6747 # We get this from the environment.
6751 cat > confcache <<\EOF
6752 # This file is a shell script that caches the results of configure
6753 # tests run on this system so they can be shared between configure
6754 # scripts and configure runs. It is not useful on other systems.
6755 # If it contains results you don't want to keep, you may remove or edit it.
6757 # By default, configure uses ./config.cache as the cache file,
6758 # creating it if it does not exist already. You can give configure
6759 # the --cache-file=FILE option to use a different cache file; that is
6760 # what configure does when it calls configure scripts in
6761 # subdirectories, so they share the cache.
6762 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6763 # config.status only pays attention to the cache file if you give it the
6764 # --recheck option to rerun configure.
6767 # The following way of writing the cache mishandles newlines in values,
6768 # but we know of no workaround that is simple, portable, and efficient.
6769 # So, don't put newlines in cache variables' values.
6770 # Ultrix sh set writes to stderr and can't be redirected directly,
6771 # and sets the high bit in the cache file unless we assign to the vars.
6773 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6775 # `set' does not quote correctly, so add quotes (double-quote substitution
6776 # turns \\\\ into \\, and sed turns \\ into \).
6778 -e "s/'/'\\\\''/g" \
6779 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6782 # `set' quotes correctly as required by POSIX, so do not add quotes.
6783 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6786 if cmp -s $cache_file confcache; then
6789 if test -w $cache_file; then
6790 echo "updating cache $cache_file"
6791 cat confcache > $cache_file
6793 echo "not updating unwritable cache $cache_file"
6798 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6800 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6801 # Let make expand exec_prefix.
6802 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6804 # Any assignment to VPATH causes Sun make to only execute
6805 # the first set of double-colon rules, so remove it if not needed.
6806 # If there is a colon in the path, we need to keep it.
6807 if test "x$srcdir" = x.; then
6808 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6811 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6813 DEFS=-DHAVE_CONFIG_H
6815 # Without the "./", some shells look in PATH for config.status.
6816 : ${CONFIG_STATUS=./config.status}
6818 echo creating $CONFIG_STATUS
6819 rm -f $CONFIG_STATUS
6820 cat > $CONFIG_STATUS <<EOF
6822 # Generated automatically by configure.
6823 # Run this file to recreate the current configuration.
6824 # This directory was configured as follows,
6825 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6827 # $0 $ac_configure_args
6829 # Compiler output produced by configure, useful for debugging
6830 # configure, is in ./config.log if it exists.
6832 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6835 case "\$ac_option" in
6836 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6837 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6838 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6839 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6840 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6842 -help | --help | --hel | --he | --h)
6843 echo "\$ac_cs_usage"; exit 0 ;;
6844 *) echo "\$ac_cs_usage"; exit 1 ;;
6848 ac_given_srcdir=$srcdir
6849 ac_given_INSTALL="$INSTALL"
6851 trap 'rm -fr `echo "Makefile libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6853 cat >> $CONFIG_STATUS <<EOF
6855 # Protect against being on the right side of a sed subst in config.status.
6856 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6857 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6861 s%@CFLAGS@%$CFLAGS%g
6862 s%@CPPFLAGS@%$CPPFLAGS%g
6863 s%@CXXFLAGS@%$CXXFLAGS%g
6864 s%@FFLAGS@%$FFLAGS%g
6866 s%@LDFLAGS@%$LDFLAGS%g
6868 s%@exec_prefix@%$exec_prefix%g
6869 s%@prefix@%$prefix%g
6870 s%@program_transform_name@%$program_transform_name%g
6871 s%@bindir@%$bindir%g
6872 s%@sbindir@%$sbindir%g
6873 s%@libexecdir@%$libexecdir%g
6874 s%@datadir@%$datadir%g
6875 s%@sysconfdir@%$sysconfdir%g
6876 s%@sharedstatedir@%$sharedstatedir%g
6877 s%@localstatedir@%$localstatedir%g
6878 s%@libdir@%$libdir%g
6879 s%@includedir@%$includedir%g
6880 s%@oldincludedir@%$oldincludedir%g
6881 s%@infodir@%$infodir%g
6882 s%@mandir@%$mandir%g
6884 s%@host_alias@%$host_alias%g
6885 s%@host_cpu@%$host_cpu%g
6886 s%@host_vendor@%$host_vendor%g
6887 s%@host_os@%$host_os%g
6888 s%@target@%$target%g
6889 s%@target_alias@%$target_alias%g
6890 s%@target_cpu@%$target_cpu%g
6891 s%@target_vendor@%$target_vendor%g
6892 s%@target_os@%$target_os%g
6894 s%@build_alias@%$build_alias%g
6895 s%@build_cpu@%$build_cpu%g
6896 s%@build_vendor@%$build_vendor%g
6897 s%@build_os@%$build_os%g
6899 s%@libgcj_basedir@%$libgcj_basedir%g
6902 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6903 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6904 s%@INSTALL_DATA@%$INSTALL_DATA%g
6905 s%@PACKAGE@%$PACKAGE%g
6906 s%@VERSION@%$VERSION%g
6907 s%@ACLOCAL@%$ACLOCAL%g
6908 s%@AUTOCONF@%$AUTOCONF%g
6909 s%@AUTOMAKE@%$AUTOMAKE%g
6910 s%@AUTOHEADER@%$AUTOHEADER%g
6911 s%@MAKEINFO@%$MAKEINFO%g
6912 s%@SET_MAKE@%$SET_MAKE%g
6915 s%@RANLIB@%$RANLIB%g
6916 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
6917 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
6919 s%@EXEEXT@%$EXEEXT%g
6920 s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
6921 s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
6922 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
6923 s%@INCLTDL@%$INCLTDL%g
6924 s%@LIBLTDL@%$LIBLTDL%g
6925 s%@DIRLTDL@%$DIRLTDL%g
6926 s%@OBJEXT@%$OBJEXT%g
6928 s%@LIBTOOL@%$LIBTOOL%g
6929 s%@CXXCPP@%$CXXCPP%g
6930 s%@subdirs@%$subdirs%g
6931 s%@COMPPATH@%$COMPPATH%g
6932 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
6933 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
6934 s%@LIBGCJDEBUG@%$LIBGCJDEBUG%g
6935 s%@LIBDATASTARTSPEC@%$LIBDATASTARTSPEC%g
6937 s%@SYSTEMSPEC@%$SYSTEMSPEC%g
6938 s%@LIBGCJTESTSPEC@%$LIBGCJTESTSPEC%g
6939 s%@ZLIBSPEC@%$ZLIBSPEC%g
6940 s%@ZLIBTESTSPEC@%$ZLIBTESTSPEC%g
6941 s%@GCLIBS@%$GCLIBS%g
6942 s%@GCINCS@%$GCINCS%g
6943 s%@GCDEPS@%$GCDEPS%g
6944 s%@GCOBJS@%$GCOBJS%g
6945 s%@GCSPEC@%$GCSPEC%g
6946 s%@JC1GCSPEC@%$JC1GCSPEC%g
6947 s%@GCTESTSPEC@%$GCTESTSPEC%g
6948 s%@THREADLIBS@%$THREADLIBS%g
6949 s%@THREADINCS@%$THREADINCS%g
6950 s%@THREADDEPS@%$THREADDEPS%g
6951 s%@THREADOBJS@%$THREADOBJS%g
6952 s%@THREADSPEC@%$THREADSPEC%g
6953 s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
6954 s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
6956 s%@GCJFLAGS@%$GCJFLAGS%g
6960 s%@DIVIDESPEC@%$DIVIDESPEC%g
6961 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
6962 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
6963 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
6964 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
6965 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
6966 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
6967 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
6968 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
6969 s%@NEEDS_DATA_START_TRUE@%$NEEDS_DATA_START_TRUE%g
6970 s%@NEEDS_DATA_START_FALSE@%$NEEDS_DATA_START_FALSE%g
6971 s%@GCC_UNWIND_INCLUDE@%$GCC_UNWIND_INCLUDE%g
6972 s%@GCJVERSION@%$GCJVERSION%g
6973 s%@AM_RUNTESTFLAGS@%$AM_RUNTESTFLAGS%g
6974 s%@ALLOCA@%$ALLOCA%g
6976 s%@SYSDEP_SOURCES@%$SYSDEP_SOURCES%g
6977 s%@X_CFLAGS@%$X_CFLAGS%g
6978 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
6979 s%@X_LIBS@%$X_LIBS%g
6980 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
6981 s%@XLIB_AWT_TRUE@%$XLIB_AWT_TRUE%g
6982 s%@XLIB_AWT_FALSE@%$XLIB_AWT_FALSE%g
6983 s%@GTK_AWT_TRUE@%$GTK_AWT_TRUE%g
6984 s%@GTK_AWT_FALSE@%$GTK_AWT_FALSE%g
6990 cat >> $CONFIG_STATUS <<\EOF
6992 # Split the substitutions into bite-sized pieces for seds with
6993 # small command number limits, like on Digital OSF/1 and HP-UX.
6994 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6995 ac_file=1 # Number of current file.
6996 ac_beg=1 # First line for current file.
6997 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7000 while $ac_more_lines; do
7001 if test $ac_beg -gt 1; then
7002 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7004 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7006 if test ! -s conftest.s$ac_file; then
7008 rm -f conftest.s$ac_file
7010 if test -z "$ac_sed_cmds"; then
7011 ac_sed_cmds="sed -f conftest.s$ac_file"
7013 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7015 ac_file=`expr $ac_file + 1`
7017 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7020 if test -z "$ac_sed_cmds"; then
7025 cat >> $CONFIG_STATUS <<EOF
7027 CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"}
7029 cat >> $CONFIG_STATUS <<\EOF
7030 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7031 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7033 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7034 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7035 *) ac_file_in="${ac_file}.in" ;;
7038 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7040 # Remove last slash and all that follows it. Not all systems have dirname.
7041 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7042 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7043 # The file is in a subdirectory.
7044 test ! -d "$ac_dir" && mkdir "$ac_dir"
7045 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7046 # A "../" for each directory in $ac_dir_suffix.
7047 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7049 ac_dir_suffix= ac_dots=
7052 case "$ac_given_srcdir" in
7054 if test -z "$ac_dots"; then top_srcdir=.
7055 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7056 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7058 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7059 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7062 case "$ac_given_INSTALL" in
7063 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7064 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7067 echo creating "$ac_file"
7069 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7071 *Makefile*) ac_comsub="1i\\
7072 # $configure_input" ;;
7076 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7078 s%@configure_input@%$configure_input%g
7079 s%@srcdir@%$srcdir%g
7080 s%@top_srcdir@%$top_srcdir%g
7081 s%@INSTALL@%$INSTALL%g
7082 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7086 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7087 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7089 # ac_d sets the value in "#define NAME VALUE" lines.
7090 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7091 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7094 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7095 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7096 ac_uB='\([ ]\)%\1#\2define\3'
7099 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7100 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7101 ac_eB='$%\1#\2define\3'
7105 if test "${CONFIG_HEADERS+set}" != set; then
7107 cat >> $CONFIG_STATUS <<EOF
7108 CONFIG_HEADERS="include/config.h"
7110 cat >> $CONFIG_STATUS <<\EOF
7112 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7113 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7115 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7116 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7117 *) ac_file_in="${ac_file}.in" ;;
7120 echo creating $ac_file
7122 rm -f conftest.frag conftest.in conftest.out
7123 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7124 cat $ac_file_inputs > conftest.in
7128 # Transform confdefs.h into a sed script conftest.vals that substitutes
7129 # the proper values into config.h.in to produce config.h. And first:
7130 # Protect against being on the right side of a sed subst in config.status.
7131 # Protect against being in an unquoted here document in config.status.
7133 cat > conftest.hdr <<\EOF
7136 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7140 sed -n -f conftest.hdr confdefs.h > conftest.vals
7143 # This sed command replaces #undef with comments. This is necessary, for
7144 # example, in the case of _POSIX_SOURCE, which is predefined and required
7145 # on some systems where configure will not decide to define it.
7146 cat >> conftest.vals <<\EOF
7147 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7150 # Break up conftest.vals because some shells have a limit on
7151 # the size of here documents, and old seds have small limits too.
7156 ac_lines=`grep -c . conftest.vals`
7157 # grep -c gives empty output for an empty file on some AIX systems.
7158 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7159 # Write a limited-size here document to conftest.frag.
7160 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7161 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7163 sed -f conftest.frag conftest.in > conftest.out
7165 mv conftest.out conftest.in
7167 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7169 mv conftest.tail conftest.vals
7173 cat >> $CONFIG_STATUS <<\EOF
7174 rm -f conftest.frag conftest.h
7175 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7176 cat conftest.in >> conftest.h
7178 if cmp -s $ac_file conftest.h 2>/dev/null; then
7179 echo "$ac_file is unchanged"
7182 # Remove last slash and all that follows it. Not all systems have dirname.
7183 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7184 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7185 # The file is in a subdirectory.
7186 test ! -d "$ac_dir" && mkdir "$ac_dir"
7189 mv conftest.h $ac_file
7195 cat >> $CONFIG_STATUS <<EOF
7196 ac_sources="java/io/$FILE_DESCRIPTOR java/lang/${PROCESS}Process.java java/lang/nat${PROCESS}Process.cc include/$GCHDR include/$THREADH $SIGNAL_HANDLER"
7197 ac_dests="java/io/natFileDescriptor.cc java/lang/ConcreteProcess.java java/lang/natConcreteProcess.cc include/java-gc.h include/java-threads.h include/java-signal.h"
7200 cat >> $CONFIG_STATUS <<\EOF
7201 srcdir=$ac_given_srcdir
7202 while test -n "$ac_sources"; do
7203 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7204 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7206 echo "linking $srcdir/$ac_source to $ac_dest"
7208 if test ! -r $srcdir/$ac_source; then
7209 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
7213 # Make relative symlinks.
7214 # Remove last slash and all that follows it. Not all systems have dirname.
7215 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
7216 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
7217 # The dest file is in a subdirectory.
7218 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
7219 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
7220 # A "../" for each directory in $ac_dest_dir_suffix.
7221 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
7223 ac_dest_dir_suffix= ac_dots=
7227 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
7228 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
7231 # Make a symlink if possible; otherwise try a hard link.
7232 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
7233 ln $srcdir/$ac_source $ac_dest; then :
7235 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
7239 cat >> $CONFIG_STATUS <<EOF
7244 with_multisubdir=${with_multisubdir}
7245 ac_configure_args="${multilib_arg} ${ac_configure_args}"
7246 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
7247 libgcj_basedir=${libgcj_basedir}
7252 cat >> $CONFIG_STATUS <<\EOF
7253 test -z "$CONFIG_HEADERS" || echo timestamp > include/stamp-h
7254 if test -n "$CONFIG_FILES"; then
7255 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
7258 # Make subdirectories and `.d' files. Look in both srcdir and
7259 # builddir for the .java files.
7262 ( (cd $srcdir && find . -name '*.java' -print) ;
7263 find . -name '*.java' -print) | \
7264 fgrep -v testsuite | \
7265 sed -e 's/\.java/.d/' | \
7267 echo "include $f" >> deps.mk
7270 d=`echo $f | sed -e 's,/[^/]*$,,'`
7272 $srcdir/../mkinstalldirs $d
7279 chmod +x $CONFIG_STATUS
7280 rm -fr confdefs* $ac_clean_files
7281 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7283 if test "$no_recursion" != yes; then
7285 # Remove --cache-file and --srcdir arguments so they do not pile up.
7286 ac_sub_configure_args=
7288 for ac_arg in $ac_configure_args; do
7289 if test -n "$ac_prev"; then
7294 -cache-file | --cache-file | --cache-fil | --cache-fi \
7295 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7296 ac_prev=cache_file ;;
7297 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7298 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
7300 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7302 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7304 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
7308 for ac_config_dir in $DIRLTDL; do
7310 # Do not complain, so a configure script can configure whichever
7311 # parts of a large source tree are present.
7312 if test ! -d $srcdir/$ac_config_dir; then
7316 echo configuring in $ac_config_dir
7321 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
7323 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
7331 # A "../" for each directory in /$ac_config_dir.
7332 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
7335 .) # No --srcdir option. We are building in place.
7336 ac_sub_srcdir=$srcdir ;;
7337 /*) # Absolute path.
7338 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
7340 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
7343 # Check for guested configure; otherwise get Cygnus style configure.
7344 if test -f $ac_sub_srcdir/configure; then
7345 ac_sub_configure=$ac_sub_srcdir/configure
7346 elif test -f $ac_sub_srcdir/configure.in; then
7347 ac_sub_configure=$ac_configure
7349 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
7353 # The recursion is here.
7354 if test -n "$ac_sub_configure"; then
7356 # Make the cache file name correct relative to the subdirectory.
7357 case "$cache_file" in
7358 /*) ac_sub_cache_file=$cache_file ;;
7360 ac_sub_cache_file="$ac_dots$cache_file" ;;
7362 case "$ac_given_INSTALL" in
7363 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7364 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7367 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
7368 # The eval makes quoting arguments work.
7369 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
7372 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }