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 Configuring in a subdirectory"
17 --with-cross-host=HOST Configuring with a cross compiler"
19 --enable-multilib build many library versions (default)"
21 --enable-maintainer-mode enable make rules and dependencies not useful
22 (and sometimes confusing) to the casual installer"
24 --enable-shared[=PKGS] build shared libraries [default=yes]"
26 --enable-static[=PKGS] build static libraries [default=yes]"
28 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
30 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
32 --disable-libtool-lock force libtool not to do file locking"
34 --enable-fast-character Prefer speed over size for Character"
36 --enable-libgcj-debug Enable runtime debugging code"
38 --with-ecos Enable runtime eCos target support."
40 --with-system-zlib Use installed libz"
42 --enable-java-gc=TYPE choose garbage collector [boehm]"
44 --enable-threads=TYPE choose threading package"
46 # Initialize some variables set by options.
47 # The variables have the same names as the options, with
48 # dashes changed to underlines.
50 cache_file
=.
/config.cache
59 program_transform_name
=s
,x
,x
,
67 bindir
='${exec_prefix}/bin'
68 sbindir
='${exec_prefix}/sbin'
69 libexecdir
='${exec_prefix}/libexec'
70 datadir
='${prefix}/share'
71 sysconfdir
='${prefix}/etc'
72 sharedstatedir
='${prefix}/com'
73 localstatedir
='${prefix}/var'
74 libdir
='${exec_prefix}/lib'
75 includedir
='${prefix}/include'
76 oldincludedir
='/usr/include'
77 infodir
='${prefix}/info'
78 mandir
='${prefix}/man'
80 # Initialize some other variables.
83 SHELL
=${CONFIG_SHELL-/bin/sh}
84 # Maximum number of lines to put in a shell here document.
91 # If the previous option needs an argument, assign it.
92 if test -n "$ac_prev"; then
93 eval "$ac_prev=\$ac_option"
99 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
103 # Accept the important Cygnus configure options, so we can diagnose typos.
107 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
109 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
110 bindir
="$ac_optarg" ;;
112 -build |
--build |
--buil |
--bui |
--bu)
114 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
115 build
="$ac_optarg" ;;
117 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
118 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
119 ac_prev
=cache_file
;;
120 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
121 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
122 cache_file
="$ac_optarg" ;;
124 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
126 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
128 datadir
="$ac_optarg" ;;
130 -disable-* |
--disable-*)
131 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
132 # Reject names that are not valid shell variable names.
133 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
134 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
136 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
137 eval "enable_${ac_feature}=no" ;;
139 -enable-* |
--enable-*)
140 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
141 # Reject names that are not valid shell variable names.
142 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
143 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
145 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
150 eval "enable_${ac_feature}='$ac_optarg'" ;;
152 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
153 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
154 |
--exec |
--exe |
--ex)
155 ac_prev
=exec_prefix
;;
156 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
157 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
158 |
--exec=* |
--exe=* |
--ex=*)
159 exec_prefix
="$ac_optarg" ;;
161 -gas |
--gas |
--ga |
--g)
162 # Obsolete; use --with-gas.
165 -help |
--help |
--hel |
--he)
166 # Omit some internal or obsolete options to make the list less imposing.
167 # This message is too long to be a string in the A/UX 3.1 sh.
169 Usage: configure [options] [host]
170 Options: [defaults in brackets after descriptions]
172 --cache-file=FILE cache test results in FILE
173 --help print this message
174 --no-create do not create output files
175 --quiet, --silent do not print \`checking...' messages
176 --version print the version of autoconf that created configure
177 Directory and file names:
178 --prefix=PREFIX install architecture-independent files in PREFIX
180 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
182 --bindir=DIR user executables in DIR [EPREFIX/bin]
183 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
184 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
185 --datadir=DIR read-only architecture-independent data in DIR
187 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
188 --sharedstatedir=DIR modifiable architecture-independent data in DIR
190 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
191 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
192 --includedir=DIR C header files in DIR [PREFIX/include]
193 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
194 --infodir=DIR info documentation in DIR [PREFIX/info]
195 --mandir=DIR man documentation in DIR [PREFIX/man]
196 --srcdir=DIR find the sources in DIR [configure dir or ..]
197 --program-prefix=PREFIX prepend PREFIX to installed program names
198 --program-suffix=SUFFIX append SUFFIX to installed program names
199 --program-transform-name=PROGRAM
200 run sed PROGRAM on installed program names
204 --build=BUILD configure for building on BUILD [BUILD=HOST]
205 --host=HOST configure for HOST [guessed]
206 --target=TARGET configure for TARGET [TARGET=HOST]
207 Features and packages:
208 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
209 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
210 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
211 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
212 --x-includes=DIR X include files are in DIR
213 --x-libraries=DIR X library files are in DIR
215 if test -n "$ac_help"; then
216 echo "--enable and --with options recognized:$ac_help"
220 -host |
--host |
--hos |
--ho)
222 -host=* |
--host=* |
--hos=* |
--ho=*)
225 -includedir |
--includedir |
--includedi |
--included |
--include \
226 |
--includ |
--inclu |
--incl |
--inc)
227 ac_prev
=includedir
;;
228 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
229 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
230 includedir
="$ac_optarg" ;;
232 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
234 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
235 infodir
="$ac_optarg" ;;
237 -libdir |
--libdir |
--libdi |
--libd)
239 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
240 libdir
="$ac_optarg" ;;
242 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
243 |
--libexe |
--libex |
--libe)
244 ac_prev
=libexecdir
;;
245 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
246 |
--libexe=* |
--libex=* |
--libe=*)
247 libexecdir
="$ac_optarg" ;;
249 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
250 |
--localstate |
--localstat |
--localsta |
--localst \
251 |
--locals |
--local |
--loca |
--loc |
--lo)
252 ac_prev
=localstatedir
;;
253 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
254 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
255 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
256 localstatedir
="$ac_optarg" ;;
258 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
260 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
261 mandir
="$ac_optarg" ;;
264 # Obsolete; use --without-fp.
267 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
271 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
272 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
275 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
276 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
277 |
--oldin |
--oldi |
--old |
--ol |
--o)
278 ac_prev
=oldincludedir
;;
279 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
280 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
281 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
282 oldincludedir
="$ac_optarg" ;;
284 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
286 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
287 prefix
="$ac_optarg" ;;
289 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
290 |
--program-pre |
--program-pr |
--program-p)
291 ac_prev
=program_prefix
;;
292 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
293 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
294 program_prefix
="$ac_optarg" ;;
296 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
297 |
--program-suf |
--program-su |
--program-s)
298 ac_prev
=program_suffix
;;
299 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
300 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
301 program_suffix
="$ac_optarg" ;;
303 -program-transform-name |
--program-transform-name \
304 |
--program-transform-nam |
--program-transform-na \
305 |
--program-transform-n |
--program-transform- \
306 |
--program-transform |
--program-transfor \
307 |
--program-transfo |
--program-transf \
308 |
--program-trans |
--program-tran \
309 |
--progr-tra |
--program-tr |
--program-t)
310 ac_prev
=program_transform_name
;;
311 -program-transform-name=* |
--program-transform-name=* \
312 |
--program-transform-nam=* |
--program-transform-na=* \
313 |
--program-transform-n=* |
--program-transform-=* \
314 |
--program-transform=* |
--program-transfor=* \
315 |
--program-transfo=* |
--program-transf=* \
316 |
--program-trans=* |
--program-tran=* \
317 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
318 program_transform_name
="$ac_optarg" ;;
320 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
321 |
-silent |
--silent |
--silen |
--sile |
--sil)
324 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
326 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
328 sbindir
="$ac_optarg" ;;
330 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
331 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
332 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
334 ac_prev
=sharedstatedir
;;
335 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
336 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
337 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
339 sharedstatedir
="$ac_optarg" ;;
341 -site |
--site |
--sit)
343 -site=* |
--site=* |
--sit=*)
346 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
348 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
349 srcdir
="$ac_optarg" ;;
351 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
352 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
353 ac_prev
=sysconfdir
;;
354 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
355 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
356 sysconfdir
="$ac_optarg" ;;
358 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
360 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
361 target
="$ac_optarg" ;;
363 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
366 -version |
--version |
--versio |
--versi |
--vers)
367 echo "configure generated by autoconf version 2.13"
371 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
372 # Reject names that are not valid shell variable names.
373 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
374 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
376 ac_package
=`echo $ac_package| sed 's/-/_/g'`
381 eval "with_${ac_package}='$ac_optarg'" ;;
383 -without-* |
--without-*)
384 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
385 # Reject names that are not valid shell variable names.
386 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
387 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
389 ac_package
=`echo $ac_package| sed 's/-/_/g'`
390 eval "with_${ac_package}=no" ;;
393 # Obsolete; use --with-x.
396 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
397 |
--x-incl |
--x-inc |
--x-in |
--x-i)
398 ac_prev
=x_includes
;;
399 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
400 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
401 x_includes
="$ac_optarg" ;;
403 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
404 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
405 ac_prev
=x_libraries
;;
406 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
407 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
408 x_libraries
="$ac_optarg" ;;
410 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
414 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
415 echo "configure: warning: $ac_option: invalid host type" 1>&2
417 if test "x$nonopt" != xNONE
; then
418 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
426 if test -n "$ac_prev"; then
427 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
430 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
432 # File descriptor usage:
435 # 2 errors and warnings
436 # 3 some systems may open it to /dev/tty
437 # 4 used on the Kubota Titan
438 # 6 checking for... messages and results
439 # 5 compiler messages saved in config.log
440 if test "$silent" = yes; then
448 This file contains any messages produced by compilers while
449 running configure, to aid debugging if configure makes a mistake.
452 # Strip out --no-create and --no-recursion so they do not pile up.
453 # Also quote any args containing shell metacharacters.
458 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
459 |
--no-cr |
--no-c) ;;
460 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
461 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
462 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
463 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
464 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
469 # Only set these to C if already set. These must not be set unconditionally
470 # because not all systems understand e.g. LANG=C (notably SCO).
471 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
472 # Non-C LC_CTYPE values break the ctype check.
473 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
474 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
475 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
476 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
478 # confdefs.h avoids OS command line length limits that DEFS can exceed.
479 rm -rf conftest
* confdefs.h
480 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
483 # A filename unique to this package, relative to the directory that
484 # configure is in, which we can look for to find out if srcdir is correct.
485 ac_unique_file
=java
/lang
/System.java
487 # Find the source files, if location was not specified.
488 if test -z "$srcdir"; then
489 ac_srcdir_defaulted
=yes
490 # Try the directory containing this script, then its parent.
492 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
493 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
495 if test ! -r $srcdir/$ac_unique_file; then
499 ac_srcdir_defaulted
=no
501 if test ! -r $srcdir/$ac_unique_file; then
502 if test "$ac_srcdir_defaulted" = yes; then
503 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
505 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
508 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
510 # Prefer explicitly selected file to automatically selected ones.
511 if test -z "$CONFIG_SITE"; then
512 if test "x$prefix" != xNONE
; then
513 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
515 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
518 for ac_site_file
in $CONFIG_SITE; do
519 if test -r "$ac_site_file"; then
520 echo "loading site script $ac_site_file"
525 if test -r "$cache_file"; then
526 echo "loading cache $cache_file"
529 echo "creating cache $cache_file"
534 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
535 ac_cpp
='$CPP $CPPFLAGS'
536 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
537 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
538 cross_compiling
=$ac_cv_prog_cc_cross
542 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
543 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
544 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
551 ac_n
= ac_c
='\c' ac_t
=
557 for ac_dir
in ..
$srcdir/..
; do
558 if test -f $ac_dir/install-sh
; then
560 ac_install_sh
="$ac_aux_dir/install-sh -c"
562 elif test -f $ac_dir/install.sh
; then
564 ac_install_sh
="$ac_aux_dir/install.sh -c"
568 if test -z "$ac_aux_dir"; then
569 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
571 ac_config_guess
=$ac_aux_dir/config.guess
572 ac_config_sub
=$ac_aux_dir/config.sub
573 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
577 # Do some error checking and defaulting for the host and target type.
579 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
582 # 1. You are not allowed to specify --host, --target, and nonopt at the
584 # 2. Host defaults to nonopt.
585 # 3. If nonopt is not specified, then host defaults to the current host,
586 # as determined by config.guess.
587 # 4. Target and build default to nonopt.
588 # 5. If nonopt is not specified, then target and build default to host.
590 # The aliases save the names the user supplied, while $host etc.
591 # will get canonicalized.
592 case $host---$target---$nonopt in
593 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
594 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
598 # Make sure we can run config.sub.
599 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
600 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
603 echo $ac_n "checking host system type""... $ac_c" 1>&6
604 echo "configure:605: checking host system type" >&5
607 case "$host_alias" in
611 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
612 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
614 *) host_alias
=$nonopt ;;
618 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
619 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
620 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
621 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
622 echo "$ac_t""$host" 1>&6
624 echo $ac_n "checking target system type""... $ac_c" 1>&6
625 echo "configure:626: checking target system type" >&5
628 case "$target_alias" in
631 NONE
) target_alias
=$host_alias ;;
632 *) target_alias
=$nonopt ;;
636 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
637 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
638 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
639 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
640 echo "$ac_t""$target" 1>&6
642 echo $ac_n "checking build system type""... $ac_c" 1>&6
643 echo "configure:644: checking build system type" >&5
646 case "$build_alias" in
649 NONE
) build_alias
=$host_alias ;;
650 *) build_alias
=$nonopt ;;
654 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
655 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
656 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
657 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
658 echo "$ac_t""$build" 1>&6
660 test "$host_alias" != "$target_alias" &&
661 test "$program_prefix$program_suffix$program_transform_name" = \
663 program_prefix
=${target_alias}-
666 # Check whether --with-target-subdir or --without-target-subdir was given.
667 if test "${with_target_subdir+set}" = set; then
668 withval
="$with_target_subdir"
672 # Check whether --with-cross-host or --without-cross-host was given.
673 if test "${with_cross_host+set}" = set; then
674 withval
="$with_cross_host"
679 # Find a good install program. We prefer a C program (faster),
680 # so one script is as good as another. But avoid the broken or
681 # incompatible versions:
682 # SysV /etc/install, /usr/sbin/install
683 # SunOS /usr/etc/install
686 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
687 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
688 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
689 # ./install, which can be erroneously created by make from ./install.sh.
690 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
691 echo "configure:692: checking for a BSD compatible install" >&5
692 if test -z "$INSTALL"; then
693 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
694 echo $ac_n "(cached) $ac_c" 1>&6
696 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
697 for ac_dir
in $PATH; do
698 # Account for people who put trailing slashes in PATH elements.
700 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
702 # OSF1 and SCO ODT 3.0 have their own names for install.
703 # Don't use installbsd from OSF since it installs stuff as root
705 for ac_prog
in ginstall scoinst
install; do
706 if test -f $ac_dir/$ac_prog; then
707 if test $ac_prog = install &&
708 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
709 # AIX install. It has an incompatible calling convention.
712 ac_cv_path_install
="$ac_dir/$ac_prog -c"
723 if test "${ac_cv_path_install+set}" = set; then
724 INSTALL
="$ac_cv_path_install"
726 # As a last resort, use the slow shell script. We don't cache a
727 # path for INSTALL within a source directory, because that will
728 # break other packages using the cache if that directory is
729 # removed, or if the path is relative.
730 INSTALL
="$ac_install_sh"
733 echo "$ac_t""$INSTALL" 1>&6
735 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
736 # It thinks the first close brace ends the variable substitution.
737 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
739 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
741 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
743 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
744 echo "configure:745: checking whether build environment is sane" >&5
747 echo timestamp
> conftestfile
748 # Do `set' in a subshell so we don't clobber the current shell's
749 # arguments. Must try -L first in case configure is actually a
750 # symlink; some systems play weird games with the mod time of symlinks
751 # (eg FreeBSD returns the mod time of the symlink's containing
754 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
755 if test "$*" = "X"; then
757 set X
`ls -t $srcdir/configure conftestfile`
759 if test "$*" != "X $srcdir/configure conftestfile" \
760 && test "$*" != "X conftestfile $srcdir/configure"; then
762 # If neither matched, then we have a broken ls. This can happen
763 # if, for instance, CONFIG_SHELL is bash and it inherits a
764 # broken ls alias from the environment. This has actually
765 # happened. Such a system could not be considered "sane".
766 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
767 alias in your environment" 1>&2; exit 1; }
770 test "$2" = conftestfile
776 { echo "configure: error: newly created file is older than distributed files!
777 Check your system clock" 1>&2; exit 1; }
780 echo "$ac_t""yes" 1>&6
781 if test "$program_transform_name" = s
,x
,x
,; then
782 program_transform_name
=
784 # Double any \ or $. echo might interpret backslashes.
785 cat <<\EOF_SED
> conftestsed
786 s
,\\,\\\\,g
; s
,\$
,$$
,g
788 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
791 test "$program_prefix" != NONE
&&
792 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
793 # Use a double $ so make ignores it.
794 test "$program_suffix" != NONE
&&
795 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
797 # sed with no file args requires a program.
798 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
800 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
801 echo "configure:802: checking whether ${MAKE-make} sets \${MAKE}" >&5
802 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
803 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
804 echo $ac_n "(cached) $ac_c" 1>&6
806 cat > conftestmake
<<\EOF
808 @
echo 'ac_maketemp="${MAKE}"'
810 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
811 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
812 if test -n "$ac_maketemp"; then
813 eval ac_cv_prog_make_
${ac_make}_set
=yes
815 eval ac_cv_prog_make_
${ac_make}_set
=no
819 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
820 echo "$ac_t""yes" 1>&6
823 echo "$ac_t""no" 1>&6
824 SET_MAKE
="MAKE=${MAKE-make}"
827 if test $host != $build; then
828 ac_tool_prefix
=${host_alias}-
833 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
834 echo "configure:835: checking for Cygwin environment" >&5
835 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
836 echo $ac_n "(cached) $ac_c" 1>&6
838 cat > conftest.
$ac_ext <<EOF
839 #line 840 "configure"
840 #include "confdefs.h"
845 #define __CYGWIN__ __CYGWIN32__
850 if { (eval echo configure
:851: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
854 echo "configure: failed program was:" >&5
855 cat conftest.
$ac_ext >&5
863 echo "$ac_t""$ac_cv_cygwin" 1>&6
865 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
866 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
867 echo "configure:868: checking for mingw32 environment" >&5
868 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
869 echo $ac_n "(cached) $ac_c" 1>&6
871 cat > conftest.
$ac_ext <<EOF
872 #line 873 "configure"
873 #include "confdefs.h"
879 if { (eval echo configure
:880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
883 echo "configure: failed program was:" >&5
884 cat conftest.
$ac_ext >&5
892 echo "$ac_t""$ac_cv_mingw32" 1>&6
894 test "$ac_cv_mingw32" = yes && MINGW32
=yes
896 # Check whether --enable-multilib or --disable-multilib was given.
897 if test "${enable_multilib+set}" = set; then
898 enableval
="$enable_multilib"
899 case "${enableval}" in
902 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
909 if test "${srcdir}" = "."; then
910 if test "${with_target_subdir}" != "."; then
911 libgcj_basedir
="${srcdir}/${with_multisrctop}../."
913 libgcj_basedir
="${srcdir}/${with_multisrctop}."
916 libgcj_basedir
="${srcdir}/."
921 # Make sure we can run config.sub.
922 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
923 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
926 echo $ac_n "checking host system type""... $ac_c" 1>&6
927 echo "configure:928: checking host system type" >&5
930 case "$host_alias" in
934 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
935 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
937 *) host_alias
=$nonopt ;;
941 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
942 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
943 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
944 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
945 echo "$ac_t""$host" 1>&6
954 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
955 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
957 cat >> confdefs.h
<<EOF
958 #define PACKAGE "$PACKAGE"
961 cat >> confdefs.h
<<EOF
962 #define VERSION "$VERSION"
967 missing_dir
=`cd $ac_aux_dir && pwd`
968 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
969 echo "configure:970: checking for working aclocal" >&5
970 # Run test in a subshell; some versions of sh will print an error if
971 # an executable is not found, even if stderr is redirected.
972 # Redirect stdin to placate older versions of autoconf. Sigh.
973 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
975 echo "$ac_t""found" 1>&6
977 ACLOCAL
="$missing_dir/missing aclocal"
978 echo "$ac_t""missing" 1>&6
981 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
982 echo "configure:983: checking for working autoconf" >&5
983 # Run test in a subshell; some versions of sh will print an error if
984 # an executable is not found, even if stderr is redirected.
985 # Redirect stdin to placate older versions of autoconf. Sigh.
986 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
988 echo "$ac_t""found" 1>&6
990 AUTOCONF
="$missing_dir/missing autoconf"
991 echo "$ac_t""missing" 1>&6
994 echo $ac_n "checking for working automake""... $ac_c" 1>&6
995 echo "configure:996: checking for working automake" >&5
996 # Run test in a subshell; some versions of sh will print an error if
997 # an executable is not found, even if stderr is redirected.
998 # Redirect stdin to placate older versions of autoconf. Sigh.
999 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
1001 echo "$ac_t""found" 1>&6
1003 AUTOMAKE
="$missing_dir/missing automake"
1004 echo "$ac_t""missing" 1>&6
1007 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1008 echo "configure:1009: checking for working autoheader" >&5
1009 # Run test in a subshell; some versions of sh will print an error if
1010 # an executable is not found, even if stderr is redirected.
1011 # Redirect stdin to placate older versions of autoconf. Sigh.
1012 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
1013 AUTOHEADER
=autoheader
1014 echo "$ac_t""found" 1>&6
1016 AUTOHEADER
="$missing_dir/missing autoheader"
1017 echo "$ac_t""missing" 1>&6
1020 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1021 echo "configure:1022: checking for working makeinfo" >&5
1022 # Run test in a subshell; some versions of sh will print an error if
1023 # an executable is not found, even if stderr is redirected.
1024 # Redirect stdin to placate older versions of autoconf. Sigh.
1025 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
1027 echo "$ac_t""found" 1>&6
1029 MAKEINFO
="$missing_dir/missing makeinfo"
1030 echo "$ac_t""missing" 1>&6
1035 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
1036 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1037 # are probably using a cross compiler, which will not be able to fully
1038 # link an executable. This should really be fixed in autoconf
1043 # Extract the first word of "gcc", so it can be a program name with args.
1044 set dummy gcc
; ac_word
=$2
1045 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1046 echo "configure:1047: checking for $ac_word" >&5
1047 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1048 echo $ac_n "(cached) $ac_c" 1>&6
1050 if test -n "$CC"; then
1051 ac_cv_prog_CC
="$CC" # Let the user override the test.
1053 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1055 for ac_dir
in $ac_dummy; do
1056 test -z "$ac_dir" && ac_dir
=.
1057 if test -f $ac_dir/$ac_word; then
1066 if test -n "$CC"; then
1067 echo "$ac_t""$CC" 1>&6
1069 echo "$ac_t""no" 1>&6
1072 if test -z "$CC"; then
1073 # Extract the first word of "cc", so it can be a program name with args.
1074 set dummy cc
; ac_word
=$2
1075 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1076 echo "configure:1077: checking for $ac_word" >&5
1077 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1078 echo $ac_n "(cached) $ac_c" 1>&6
1080 if test -n "$CC"; then
1081 ac_cv_prog_CC
="$CC" # Let the user override the test.
1083 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1086 for ac_dir
in $ac_dummy; do
1087 test -z "$ac_dir" && ac_dir
=.
1088 if test -f $ac_dir/$ac_word; then
1089 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1090 ac_prog_rejected
=yes
1098 if test $ac_prog_rejected = yes; then
1099 # We found a bogon in the path, so make sure we never use it.
1100 set dummy
$ac_cv_prog_CC
1102 if test $# -gt 0; then
1103 # We chose a different compiler from the bogus one.
1104 # However, it has the same basename, so the bogon will be chosen
1105 # first if we set CC to just the basename; use the full file name.
1107 set dummy
"$ac_dir/$ac_word" "$@"
1115 if test -n "$CC"; then
1116 echo "$ac_t""$CC" 1>&6
1118 echo "$ac_t""no" 1>&6
1121 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1124 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1125 echo "configure:1126: checking whether we are using GNU C" >&5
1126 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1127 echo $ac_n "(cached) $ac_c" 1>&6
1129 cat > conftest.c
<<EOF
1134 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1141 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1143 if test $ac_cv_prog_gcc = yes; then
1145 ac_test_CFLAGS
="${CFLAGS+set}"
1146 ac_save_CFLAGS
="$CFLAGS"
1148 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1149 echo "configure:1150: checking whether ${CC-cc} accepts -g" >&5
1150 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1151 echo $ac_n "(cached) $ac_c" 1>&6
1153 echo 'void f(){}' > conftest.c
1154 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1163 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1164 if test "$ac_test_CFLAGS" = set; then
1165 CFLAGS
="$ac_save_CFLAGS"
1166 elif test $ac_cv_prog_cc_g = yes; then
1173 test "${CFLAGS+set}" = set || CFLAGS
="-g"
1177 # Likewise for AC_PROG_CXX.
1180 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++
1182 # Extract the first word of "$ac_prog", so it can be a program name with args.
1183 set dummy
$ac_prog; ac_word
=$2
1184 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1185 echo "configure:1186: checking for $ac_word" >&5
1186 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1187 echo $ac_n "(cached) $ac_c" 1>&6
1189 if test -n "$CXX"; then
1190 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
1192 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1194 for ac_dir
in $ac_dummy; do
1195 test -z "$ac_dir" && ac_dir
=.
1196 if test -f $ac_dir/$ac_word; then
1197 ac_cv_prog_CXX
="$ac_prog"
1204 CXX
="$ac_cv_prog_CXX"
1205 if test -n "$CXX"; then
1206 echo "$ac_t""$CXX" 1>&6
1208 echo "$ac_t""no" 1>&6
1211 test -n "$CXX" && break
1213 test -n "$CXX" || CXX
="gcc"
1215 test -z "$CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1217 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1218 echo "configure:1219: checking whether we are using GNU C++" >&5
1219 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1220 echo $ac_n "(cached) $ac_c" 1>&6
1222 cat > conftest.C
<<EOF
1227 if { ac_try
='${CXX-g++} -E conftest.C'; { (eval echo configure
:1228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1234 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1236 if test $ac_cv_prog_gxx = yes; then
1238 ac_test_CXXFLAGS
="${CXXFLAGS+set}"
1239 ac_save_CXXFLAGS
="$CXXFLAGS"
1241 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1242 echo "configure:1243: checking whether ${CXX-g++} accepts -g" >&5
1243 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1244 echo $ac_n "(cached) $ac_c" 1>&6
1246 echo 'void f(){}' > conftest.cc
1247 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1248 ac_cv_prog_cxx_g
=yes
1256 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1257 if test "$ac_test_CXXFLAGS" = set; then
1258 CXXFLAGS
="$ac_save_CXXFLAGS"
1259 elif test $ac_cv_prog_cxx_g = yes; then
1266 test "${CXXFLAGS+set}" = set || CXXFLAGS
="-g"
1270 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we dont
1271 # run it explicitly here, it will be run implicitly before
1272 # LIBGCJ_CONFIGURE, which doesn't work because that means that it will
1273 # be run before AC_CANONICAL_HOST.
1274 echo $ac_n "checking build system type""... $ac_c" 1>&6
1275 echo "configure:1276: checking build system type" >&5
1278 case "$build_alias" in
1281 NONE
) build_alias
=$host_alias ;;
1282 *) build_alias
=$nonopt ;;
1286 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1287 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1288 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1289 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1290 echo "$ac_t""$build" 1>&6
1293 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1294 set dummy
${ac_tool_prefix}as
; ac_word
=$2
1295 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1296 echo "configure:1297: checking for $ac_word" >&5
1297 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1298 echo $ac_n "(cached) $ac_c" 1>&6
1300 if test -n "$AS"; then
1301 ac_cv_prog_AS
="$AS" # Let the user override the test.
1303 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1305 for ac_dir
in $ac_dummy; do
1306 test -z "$ac_dir" && ac_dir
=.
1307 if test -f $ac_dir/$ac_word; then
1308 ac_cv_prog_AS
="${ac_tool_prefix}as"
1313 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS
="as"
1317 if test -n "$AS"; then
1318 echo "$ac_t""$AS" 1>&6
1320 echo "$ac_t""no" 1>&6
1325 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1326 set dummy
${ac_tool_prefix}ar; ac_word
=$2
1327 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1328 echo "configure:1329: checking for $ac_word" >&5
1329 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1330 echo $ac_n "(cached) $ac_c" 1>&6
1332 if test -n "$AR"; then
1333 ac_cv_prog_AR
="$AR" # Let the user override the test.
1335 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1337 for ac_dir
in $ac_dummy; do
1338 test -z "$ac_dir" && ac_dir
=.
1339 if test -f $ac_dir/$ac_word; then
1340 ac_cv_prog_AR
="${ac_tool_prefix}ar"
1345 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
1349 if test -n "$AR"; then
1350 echo "$ac_t""$AR" 1>&6
1352 echo "$ac_t""no" 1>&6
1357 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1358 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1359 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1360 echo "configure:1361: checking for $ac_word" >&5
1361 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1362 echo $ac_n "(cached) $ac_c" 1>&6
1364 if test -n "$RANLIB"; then
1365 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1367 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1369 for ac_dir
in $ac_dummy; do
1370 test -z "$ac_dir" && ac_dir
=.
1371 if test -f $ac_dir/$ac_word; then
1372 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1379 RANLIB
="$ac_cv_prog_RANLIB"
1380 if test -n "$RANLIB"; then
1381 echo "$ac_t""$RANLIB" 1>&6
1383 echo "$ac_t""no" 1>&6
1387 if test -z "$ac_cv_prog_RANLIB"; then
1388 if test -n "$ac_tool_prefix"; then
1389 # Extract the first word of "ranlib", so it can be a program name with args.
1390 set dummy ranlib
; ac_word
=$2
1391 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1392 echo "configure:1393: checking for $ac_word" >&5
1393 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1394 echo $ac_n "(cached) $ac_c" 1>&6
1396 if test -n "$RANLIB"; then
1397 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1399 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1401 for ac_dir
in $ac_dummy; do
1402 test -z "$ac_dir" && ac_dir
=.
1403 if test -f $ac_dir/$ac_word; then
1404 ac_cv_prog_RANLIB
="ranlib"
1409 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1412 RANLIB
="$ac_cv_prog_RANLIB"
1413 if test -n "$RANLIB"; then
1414 echo "$ac_t""$RANLIB" 1>&6
1416 echo "$ac_t""no" 1>&6
1425 # Find a good install program. We prefer a C program (faster),
1426 # so one script is as good as another. But avoid the broken or
1427 # incompatible versions:
1428 # SysV /etc/install, /usr/sbin/install
1429 # SunOS /usr/etc/install
1430 # IRIX /sbin/install
1432 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1433 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1434 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1435 # ./install, which can be erroneously created by make from ./install.sh.
1436 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1437 echo "configure:1438: checking for a BSD compatible install" >&5
1438 if test -z "$INSTALL"; then
1439 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1440 echo $ac_n "(cached) $ac_c" 1>&6
1442 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1443 for ac_dir
in $PATH; do
1444 # Account for people who put trailing slashes in PATH elements.
1446 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1448 # OSF1 and SCO ODT 3.0 have their own names for install.
1449 # Don't use installbsd from OSF since it installs stuff as root
1451 for ac_prog
in ginstall scoinst
install; do
1452 if test -f $ac_dir/$ac_prog; then
1453 if test $ac_prog = install &&
1454 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1455 # AIX install. It has an incompatible calling convention.
1458 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1469 if test "${ac_cv_path_install+set}" = set; then
1470 INSTALL
="$ac_cv_path_install"
1472 # As a last resort, use the slow shell script. We don't cache a
1473 # path for INSTALL within a source directory, because that will
1474 # break other packages using the cache if that directory is
1475 # removed, or if the path is relative.
1476 INSTALL
="$ac_install_sh"
1479 echo "$ac_t""$INSTALL" 1>&6
1481 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1482 # It thinks the first close brace ends the variable substitution.
1483 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1485 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1487 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1490 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1491 echo "configure:1492: checking whether to enable maintainer-specific portions of Makefiles" >&5
1492 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1493 if test "${enable_maintainer_mode+set}" = set; then
1494 enableval
="$enable_maintainer_mode"
1495 USE_MAINTAINER_MODE
=$enableval
1497 USE_MAINTAINER_MODE
=no
1500 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1503 if test $USE_MAINTAINER_MODE = yes; then
1504 MAINTAINER_MODE_TRUE
=
1505 MAINTAINER_MODE_FALSE
='#'
1507 MAINTAINER_MODE_TRUE
='#'
1508 MAINTAINER_MODE_FALSE
=
1510 MAINT
=$MAINTAINER_MODE_TRUE
1514 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1515 # at least currently, we never actually build a program, so we never
1516 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1517 # fails, because we are probably configuring with a cross compiler
1518 # which cant create executables. So we include AC_EXEEXT to keep
1519 # automake happy, but we dont execute it, since we dont care about
1524 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1525 echo "configure:1526: checking for executable suffix" >&5
1526 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1527 echo $ac_n "(cached) $ac_c" 1>&6
1529 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
1533 echo 'int main () { return 0; }' > conftest.
$ac_ext
1535 if { (eval echo configure
:1536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1536 for file in conftest.
*; do
1538 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
1539 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1543 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1546 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1551 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1552 echo "$ac_t""${ac_cv_exeext}" 1>&6
1557 # configure.host sets the following important variables
1558 # libgcj_cflags - host specific C compiler flags
1559 # libgcj_cxxflags - host specific C++ compiler flags
1560 # libgcj_javaflags - host specific Java compiler flags
1566 .
${libgcj_basedir}/configure.
host
1568 case ${libgcj_basedir} in
1569 /* | A-Za-z
:/\\*) libgcj_flagbasedir
=${libgcj_basedir} ;;
1570 *) libgcj_flagbasedir
='$(top_builddir)/'${libgcj_basedir} ;;
1573 LIBGCJ_CFLAGS
="${libgcj_cflags}"
1574 LIBGCJ_CXXFLAGS
="${libgcj_cxxflags}"
1575 LIBGCJ_JAVAFLAGS
="${libgcj_javaflags}"
1585 # Check whether --enable-shared or --disable-shared was given.
1586 if test "${enable_shared+set}" = set; then
1587 enableval
="$enable_shared"
1588 p
=${PACKAGE-default}
1589 case "$enableval" in
1590 yes) enable_shared
=yes ;;
1591 no
) enable_shared
=no
;;
1594 # Look at the argument we got. We use all the common list separators.
1595 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1596 for pkg
in $enableval; do
1597 if test "X$pkg" = "X$p"; then
1608 # Check whether --enable-static or --disable-static was given.
1609 if test "${enable_static+set}" = set; then
1610 enableval
="$enable_static"
1611 p
=${PACKAGE-default}
1612 case "$enableval" in
1613 yes) enable_static
=yes ;;
1614 no
) enable_static
=no
;;
1617 # Look at the argument we got. We use all the common list separators.
1618 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1619 for pkg
in $enableval; do
1620 if test "X$pkg" = "X$p"; then
1631 # Check whether --enable-fast-install or --disable-fast-install was given.
1632 if test "${enable_fast_install+set}" = set; then
1633 enableval
="$enable_fast_install"
1634 p
=${PACKAGE-default}
1635 case "$enableval" in
1636 yes) enable_fast_install
=yes ;;
1637 no
) enable_fast_install
=no
;;
1639 enable_fast_install
=no
1640 # Look at the argument we got. We use all the common list separators.
1641 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1642 for pkg
in $enableval; do
1643 if test "X$pkg" = "X$p"; then
1644 enable_fast_install
=yes
1651 enable_fast_install
=yes
1654 # Extract the first word of "ranlib", so it can be a program name with args.
1655 set dummy ranlib
; ac_word
=$2
1656 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1657 echo "configure:1658: checking for $ac_word" >&5
1658 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1659 echo $ac_n "(cached) $ac_c" 1>&6
1661 if test -n "$RANLIB"; then
1662 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1664 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1666 for ac_dir
in $ac_dummy; do
1667 test -z "$ac_dir" && ac_dir
=.
1668 if test -f $ac_dir/$ac_word; then
1669 ac_cv_prog_RANLIB
="ranlib"
1674 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1677 RANLIB
="$ac_cv_prog_RANLIB"
1678 if test -n "$RANLIB"; then
1679 echo "$ac_t""$RANLIB" 1>&6
1681 echo "$ac_t""no" 1>&6
1684 # Extract the first word of "gcc", so it can be a program name with args.
1685 set dummy gcc
; ac_word
=$2
1686 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1687 echo "configure:1688: checking for $ac_word" >&5
1688 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1689 echo $ac_n "(cached) $ac_c" 1>&6
1691 if test -n "$CC"; then
1692 ac_cv_prog_CC
="$CC" # Let the user override the test.
1694 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1696 for ac_dir
in $ac_dummy; do
1697 test -z "$ac_dir" && ac_dir
=.
1698 if test -f $ac_dir/$ac_word; then
1707 if test -n "$CC"; then
1708 echo "$ac_t""$CC" 1>&6
1710 echo "$ac_t""no" 1>&6
1713 if test -z "$CC"; then
1714 # Extract the first word of "cc", so it can be a program name with args.
1715 set dummy cc
; ac_word
=$2
1716 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1717 echo "configure:1718: checking for $ac_word" >&5
1718 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1719 echo $ac_n "(cached) $ac_c" 1>&6
1721 if test -n "$CC"; then
1722 ac_cv_prog_CC
="$CC" # Let the user override the test.
1724 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1727 for ac_dir
in $ac_dummy; do
1728 test -z "$ac_dir" && ac_dir
=.
1729 if test -f $ac_dir/$ac_word; then
1730 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1731 ac_prog_rejected
=yes
1739 if test $ac_prog_rejected = yes; then
1740 # We found a bogon in the path, so make sure we never use it.
1741 set dummy
$ac_cv_prog_CC
1743 if test $# -gt 0; then
1744 # We chose a different compiler from the bogus one.
1745 # However, it has the same basename, so the bogon will be chosen
1746 # first if we set CC to just the basename; use the full file name.
1748 set dummy
"$ac_dir/$ac_word" "$@"
1756 if test -n "$CC"; then
1757 echo "$ac_t""$CC" 1>&6
1759 echo "$ac_t""no" 1>&6
1762 if test -z "$CC"; then
1763 case "`uname -s`" in
1765 # Extract the first word of "cl", so it can be a program name with args.
1766 set dummy cl
; ac_word
=$2
1767 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1768 echo "configure:1769: checking for $ac_word" >&5
1769 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1770 echo $ac_n "(cached) $ac_c" 1>&6
1772 if test -n "$CC"; then
1773 ac_cv_prog_CC
="$CC" # Let the user override the test.
1775 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1777 for ac_dir
in $ac_dummy; do
1778 test -z "$ac_dir" && ac_dir
=.
1779 if test -f $ac_dir/$ac_word; then
1788 if test -n "$CC"; then
1789 echo "$ac_t""$CC" 1>&6
1791 echo "$ac_t""no" 1>&6
1796 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1799 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1800 echo "configure:1801: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1803 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1804 ac_cpp
='$CPP $CPPFLAGS'
1805 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1806 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1807 cross_compiling
=$ac_cv_prog_cc_cross
1809 cat > conftest.
$ac_ext << EOF
1811 #line 1812 "configure"
1812 #include "confdefs.h"
1816 if { (eval echo configure
:1817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1817 ac_cv_prog_cc_works
=yes
1818 # If we can't run a trivial program, we are probably using a cross compiler.
1819 if (.
/conftest
; exit) 2>/dev
/null
; then
1820 ac_cv_prog_cc_cross
=no
1822 ac_cv_prog_cc_cross
=yes
1825 echo "configure: failed program was:" >&5
1826 cat conftest.
$ac_ext >&5
1827 ac_cv_prog_cc_works
=no
1831 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1832 ac_cpp
='$CPP $CPPFLAGS'
1833 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1834 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1835 cross_compiling
=$ac_cv_prog_cc_cross
1837 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1838 if test $ac_cv_prog_cc_works = no
; then
1839 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1841 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1842 echo "configure:1843: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1843 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1844 cross_compiling
=$ac_cv_prog_cc_cross
1846 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1847 echo "configure:1848: checking whether we are using GNU C" >&5
1848 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1849 echo $ac_n "(cached) $ac_c" 1>&6
1851 cat > conftest.c
<<EOF
1856 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1863 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1865 if test $ac_cv_prog_gcc = yes; then
1871 ac_test_CFLAGS
="${CFLAGS+set}"
1872 ac_save_CFLAGS
="$CFLAGS"
1874 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1875 echo "configure:1876: checking whether ${CC-cc} accepts -g" >&5
1876 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1877 echo $ac_n "(cached) $ac_c" 1>&6
1879 echo 'void f(){}' > conftest.c
1880 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1889 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1890 if test "$ac_test_CFLAGS" = set; then
1891 CFLAGS
="$ac_save_CFLAGS"
1892 elif test $ac_cv_prog_cc_g = yes; then
1893 if test "$GCC" = yes; then
1899 if test "$GCC" = yes; then
1906 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1907 if test "${with_gnu_ld+set}" = set; then
1908 withval
="$with_gnu_ld"
1909 test "$withval" = no || with_gnu_ld
=yes
1915 if test "$ac_cv_prog_gcc" = yes; then
1916 # Check if gcc -print-prog-name=ld gives a path.
1917 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1918 echo "configure:1919: checking for ld used by GCC" >&5
1919 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1921 # Accept absolute paths.
1922 /* |
[A-Za-z
]:[\\/]*)
1923 re_direlt
='/[^/][^/]*/\.\./'
1924 # Canonicalize the path of ld
1925 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1926 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1927 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1929 test -z "$LD" && LD
="$ac_prog"
1932 # If it fails, then pretend we aren't using GCC.
1936 # If it is relative, then search for the first ld in PATH.
1940 elif test "$with_gnu_ld" = yes; then
1941 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1942 echo "configure:1943: checking for GNU ld" >&5
1944 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1945 echo "configure:1946: checking for non-GNU ld" >&5
1947 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1948 echo $ac_n "(cached) $ac_c" 1>&6
1950 if test -z "$LD"; then
1951 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1952 for ac_dir
in $PATH; do
1953 test -z "$ac_dir" && ac_dir
=.
1954 if test -f "$ac_dir/$ac_prog"; then
1955 ac_cv_path_LD
="$ac_dir/$ac_prog"
1956 # Check to see if the program is GNU ld. I'd rather use --version,
1957 # but apparently some GNU ld's only accept -v.
1958 # Break only if it was the GNU/non-GNU ld that we prefer.
1959 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1960 test "$with_gnu_ld" != no
&& break
1962 test "$with_gnu_ld" != yes && break
1968 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1973 if test -n "$LD"; then
1974 echo "$ac_t""$LD" 1>&6
1976 echo "$ac_t""no" 1>&6
1978 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1980 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1981 echo "configure:1982: checking if the linker ($LD) is GNU ld" >&5
1982 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1983 echo $ac_n "(cached) $ac_c" 1>&6
1985 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1986 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1987 ac_cv_prog_gnu_ld
=yes
1989 ac_cv_prog_gnu_ld
=no
1993 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1996 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1997 echo "configure:1998: checking for BSD-compatible nm" >&5
1998 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1999 echo $ac_n "(cached) $ac_c" 1>&6
2001 if test -n "$NM"; then
2002 # Let the user override the test.
2005 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2006 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
2007 test -z "$ac_dir" && ac_dir
=.
2008 if test -f $ac_dir/nm
; then
2009 # Check to see if the nm accepts a BSD-compat flag.
2010 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2011 # nm: unknown option "B" ignored
2012 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
2013 ac_cv_path_NM
="$ac_dir/nm -B"
2015 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
2016 ac_cv_path_NM
="$ac_dir/nm -p"
2019 ac_cv_path_NM
=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
2020 continue # so that we can try to find one that supports BSD flags
2025 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
2030 echo "$ac_t""$NM" 1>&6
2033 # Check for command to grab the raw symbol name followed by C symbol from nm.
2034 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
2035 echo "configure:2036: checking command to parse $NM output" >&5
2036 if eval "test \"`echo '$''{'ac_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
2037 echo $ac_n "(cached) $ac_c" 1>&6
2039 # These are sane defaults that work on at least a few old systems.
2040 # {They come from Ultrix. What could be older than Ultrix?!! ;)}
2042 # Character class describing NM global symbol codes.
2043 ac_symcode
='[BCDEGRST]'
2045 # Regexp to match symbols that can be accessed directly from C.
2046 ac_sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
2048 # Transform the above into a raw symbol and a C symbol.
2049 ac_symxfrm
='\1 \2\3 \3'
2051 # Transform an extracted symbol line into a proper C declaration
2052 ac_global_symbol_to_cdecl
="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
2054 # Define system-specific variables.
2060 ac_symcode
='[ABCDGISTW]'
2063 ac_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
2066 ac_symcode
='[BCDEGRST]'
2073 # If we're using GNU nm, then use its standard symbol codes.
2074 if $NM -V 2>&1 |
egrep '(GNU|with BFD)' > /dev
/null
; then
2075 ac_symcode
='[ABCDGISTW]'
2078 # Try without a prefix undercore, then with it.
2079 for ac_symprfx
in "" "_"; do
2081 ac_cv_sys_global_symbol_pipe
="sed -n -e 's/^.* \($ac_symcode\) *\($ac_symprfx\)$ac_sympat$/$ac_symxfrm/p'"
2083 # Check to see that the pipe works correctly.
2085 rm -f conftest.
$ac_ext
2086 cat > conftest.
$ac_ext <<EOF
2091 void nm_test_func(){}
2095 int main(){nm_test_var='a';nm_test_func;return 0;}
2098 if { (eval echo configure
:2099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2099 # Now try to grab the symbols.
2100 ac_nlist
=conftest.nm
2102 if { (eval echo configure
:2103: \"$NM conftest.
$ac_objext \|
$ac_cv_sys_global_symbol_pipe \
> $ac_nlist\") 1>&5; (eval $NM conftest.
$ac_objext \|
$ac_cv_sys_global_symbol_pipe \
> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
2104 # Try sorting and uniquifying the output.
2105 if sort "$ac_nlist" |
uniq > "$ac_nlist"T
; then
2106 mv -f "$ac_nlist"T
"$ac_nlist"
2111 # Make sure that we snagged all the symbols we need.
2112 if egrep ' nm_test_var$' "$ac_nlist" >/dev
/null
; then
2113 if egrep ' nm_test_func$' "$ac_nlist" >/dev
/null
; then
2114 cat <<EOF > conftest.c
2120 # Now generate the symbol file.
2121 eval "$ac_global_symbol_to_cdecl"' < "$ac_nlist" >> conftest.c'
2123 cat <<EOF >> conftest.c
2124 #if defined (__STDC__) && __STDC__
2125 # define lt_ptr_t void *
2127 # define lt_ptr_t char *
2131 /* The mapping between symbol names and symbols. */
2136 lt_preloaded_symbols[] =
2139 sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$ac_nlist" >> conftest.c
2140 cat <<\EOF
>> conftest.c
2148 # Now try linking the two files.
2149 mv conftest.
$ac_objext conftestm.
$ac_objext
2150 ac_save_LIBS
="$LIBS"
2151 ac_save_CFLAGS
="$CFLAGS"
2152 LIBS
="conftestm.$ac_objext"
2153 CFLAGS
="$CFLAGS$no_builtin_flag"
2154 if { (eval echo configure
:2155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2157 echo "configure: failed program was:" >&5
2160 LIBS
="$ac_save_LIBS"
2161 CFLAGS
="$ac_save_CFLAGS"
2163 echo "cannot find nm_test_func in $ac_nlist" >&5
2166 echo "cannot find nm_test_var in $ac_nlist" >&5
2169 echo "cannot run $ac_cv_sys_global_symbol_pipe" >&5
2172 echo "$progname: failed program was:" >&5
2177 # Do not use the global_symbol_pipe unless it works.
2178 if test "$ac_pipe_works" = yes; then
2179 if test x
"$ac_symprfx" = x
"_"; then
2180 ac_cv_sys_symbol_underscore
=yes
2182 ac_cv_sys_symbol_underscore
=no
2186 ac_cv_sys_global_symbol_pipe
=
2194 if test -z "$ac_cv_sys_global_symbol_pipe"; then
2197 echo "$ac_t""$ac_result" 1>&6
2199 echo $ac_n "checking for _ prefix in compiled symbols""... $ac_c" 1>&6
2200 echo "configure:2201: checking for _ prefix in compiled symbols" >&5
2201 if eval "test \"`echo '$''{'ac_cv_sys_symbol_underscore'+set}'`\" = set"; then
2202 echo $ac_n "(cached) $ac_c" 1>&6
2204 ac_cv_sys_symbol_underscore
=no
2205 cat > conftest.
$ac_ext <<EOF
2206 void nm_test_func(){}
2207 int main(){nm_test_func;return 0;}
2209 if { (eval echo configure
:2210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2210 # Now try to grab the symbols.
2211 ac_nlist
=conftest.nm
2212 if { (eval echo configure
:2213: \"$NM conftest.
$ac_objext \|
$ac_cv_sys_global_symbol_pipe \
> $ac_nlist\") 1>&5; (eval $NM conftest.
$ac_objext \|
$ac_cv_sys_global_symbol_pipe \
> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
2213 # See whether the symbols have a leading underscore.
2214 if egrep '^. _nm_test_func' "$ac_nlist" >/dev
/null
; then
2215 ac_cv_sys_symbol_underscore
=yes
2217 if egrep '^. nm_test_func ' "$ac_nlist" >/dev
/null
; then
2220 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
2224 echo "configure: cannot run $ac_cv_sys_global_symbol_pipe" >&5
2227 echo "configure: failed program was:" >&5
2234 echo "$ac_t""$ac_cv_sys_symbol_underscore" 1>&6
2235 USE_SYMBOL_UNDERSCORE
=${ac_cv_sys_symbol_underscore=no}
2237 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2238 echo "configure:2239: checking whether ln -s works" >&5
2239 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2240 echo $ac_n "(cached) $ac_c" 1>&6
2243 if ln -s X conftestdata
2>/dev
/null
2246 ac_cv_prog_LN_S
="ln -s"
2251 LN_S
="$ac_cv_prog_LN_S"
2252 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2253 echo "$ac_t""yes" 1>&6
2255 echo "$ac_t""no" 1>&6
2259 # Check for any special flags to pass to ltconfig.
2260 libtool_flags
="--cache-file=$cache_file"
2261 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
2262 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
2263 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
2264 test "$lt_dlopen" = yes && libtool_flags
="$libtool_flags --enable-dlopen"
2265 test "$silent" = yes && libtool_flags
="$libtool_flags --silent"
2266 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
2267 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
2269 # Some flags need to be propagated to the compiler or linker for good
2273 # Find out which ABI we are using.
2274 echo '#line 2275 "configure"' > conftest.
$ac_ext
2275 if { (eval echo configure
:2276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2276 case "`/usr/bin/file conftest.o`" in
2292 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2293 SAVE_CFLAGS
="$CFLAGS"
2294 CFLAGS
="$CFLAGS -belf"
2295 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2296 echo "configure:2297: checking whether the C compiler needs -belf" >&5
2297 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2298 echo $ac_n "(cached) $ac_c" 1>&6
2300 cat > conftest.
$ac_ext <<EOF
2301 #line 2302 "configure"
2302 #include "confdefs.h"
2308 if { (eval echo configure
:2309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2310 lt_cv_cc_needs_belf
=yes
2312 echo "configure: failed program was:" >&5
2313 cat conftest.
$ac_ext >&5
2315 lt_cv_cc_needs_belf
=no
2320 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2321 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
2322 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2323 CFLAGS
="$SAVE_CFLAGS"
2328 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
2329 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
2330 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2331 echo "configure:2332: checking for $ac_word" >&5
2332 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2333 echo $ac_n "(cached) $ac_c" 1>&6
2335 if test -n "$DLLTOOL"; then
2336 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
2338 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2340 for ac_dir
in $ac_dummy; do
2341 test -z "$ac_dir" && ac_dir
=.
2342 if test -f $ac_dir/$ac_word; then
2343 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
2350 DLLTOOL
="$ac_cv_prog_DLLTOOL"
2351 if test -n "$DLLTOOL"; then
2352 echo "$ac_t""$DLLTOOL" 1>&6
2354 echo "$ac_t""no" 1>&6
2358 if test -z "$ac_cv_prog_DLLTOOL"; then
2359 if test -n "$ac_tool_prefix"; then
2360 # Extract the first word of "dlltool", so it can be a program name with args.
2361 set dummy dlltool
; ac_word
=$2
2362 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2363 echo "configure:2364: checking for $ac_word" >&5
2364 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2365 echo $ac_n "(cached) $ac_c" 1>&6
2367 if test -n "$DLLTOOL"; then
2368 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
2370 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2372 for ac_dir
in $ac_dummy; do
2373 test -z "$ac_dir" && ac_dir
=.
2374 if test -f $ac_dir/$ac_word; then
2375 ac_cv_prog_DLLTOOL
="dlltool"
2380 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL
="false"
2383 DLLTOOL
="$ac_cv_prog_DLLTOOL"
2384 if test -n "$DLLTOOL"; then
2385 echo "$ac_t""$DLLTOOL" 1>&6
2387 echo "$ac_t""no" 1>&6
2395 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2396 set dummy
${ac_tool_prefix}as
; ac_word
=$2
2397 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2398 echo "configure:2399: checking for $ac_word" >&5
2399 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2400 echo $ac_n "(cached) $ac_c" 1>&6
2402 if test -n "$AS"; then
2403 ac_cv_prog_AS
="$AS" # Let the user override the test.
2405 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2407 for ac_dir
in $ac_dummy; do
2408 test -z "$ac_dir" && ac_dir
=.
2409 if test -f $ac_dir/$ac_word; then
2410 ac_cv_prog_AS
="${ac_tool_prefix}as"
2418 if test -n "$AS"; then
2419 echo "$ac_t""$AS" 1>&6
2421 echo "$ac_t""no" 1>&6
2425 if test -z "$ac_cv_prog_AS"; then
2426 if test -n "$ac_tool_prefix"; then
2427 # Extract the first word of "as", so it can be a program name with args.
2428 set dummy as
; ac_word
=$2
2429 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2430 echo "configure:2431: checking for $ac_word" >&5
2431 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2432 echo $ac_n "(cached) $ac_c" 1>&6
2434 if test -n "$AS"; then
2435 ac_cv_prog_AS
="$AS" # Let the user override the test.
2437 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2439 for ac_dir
in $ac_dummy; do
2440 test -z "$ac_dir" && ac_dir
=.
2441 if test -f $ac_dir/$ac_word; then
2447 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS
="false"
2451 if test -n "$AS"; then
2452 echo "$ac_t""$AS" 1>&6
2454 echo "$ac_t""no" 1>&6
2467 # enable the --disable-libtool-lock switch
2469 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2470 if test "${enable_libtool_lock+set}" = set; then
2471 enableval
="$enable_libtool_lock"
2472 need_locks
=$enableval
2478 if test x
"$need_locks" = xno
; then
2479 libtool_flags
="$libtool_flags --disable-lock"
2483 # Save cache, so that ltconfig can load it
2484 cat > confcache
<<\EOF
2485 # This file is a shell script that caches the results of configure
2486 # tests run on this system so they can be shared between configure
2487 # scripts and configure runs. It is not useful on other systems.
2488 # If it contains results you don't want to keep, you may remove or edit it.
2490 # By default, configure uses ./config.cache as the cache file,
2491 # creating it if it does not exist already. You can give configure
2492 # the --cache-file=FILE option to use a different cache file; that is
2493 # what configure does when it calls configure scripts in
2494 # subdirectories, so they share the cache.
2495 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2496 # config.status only pays attention to the cache file if you give it the
2497 # --recheck option to rerun configure.
2500 # The following way of writing the cache mishandles newlines in values,
2501 # but we know of no workaround that is simple, portable, and efficient.
2502 # So, don't put newlines in cache variables' values.
2503 # Ultrix sh set writes to stderr and can't be redirected directly,
2504 # and sets the high bit in the cache file unless we assign to the vars.
2506 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2508 # `set' does not quote correctly, so add quotes (double-quote substitution
2509 # turns \\\\ into \\, and sed turns \\ into \).
2511 -e "s/'/'\\\\''/g" \
2512 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2515 # `set' quotes correctly as required by POSIX, so do not add quotes.
2516 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2519 if cmp -s $cache_file confcache
; then
2522 if test -w $cache_file; then
2523 echo "updating cache $cache_file"
2524 cat confcache
> $cache_file
2526 echo "not updating unwritable cache $cache_file"
2532 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2533 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
2534 LD
="$LD" NM
="$NM" RANLIB
="$RANLIB" LN_S
="$LN_S" \
2535 DLLTOOL
="$DLLTOOL" AS
="$AS" \
2536 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
2537 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$host \
2538 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2540 # Reload cache, that may have been modified by ltconfig
2541 if test -r "$cache_file"; then
2542 echo "loading cache $cache_file"
2545 echo "creating cache $cache_file"
2550 # This can be used to rebuild libtool when needed
2551 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
2553 # Always use our own libtool.
2554 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
2556 # Redirect the config.log output again, so that the ltconfig log is not
2557 # clobbered by the next message.
2558 exec 5>>.
/config.log
2561 if test -z "$with_target_subdir" ||
test "$with_target_subdir" = "."; then
2570 if test -d $srcdir/testsuite
; then
2572 TESTSUBDIR_FALSE
='#'
2578 # Check whether --enable-fast-character or --disable-fast-character was given.
2579 if test "${enable_fast_character+set}" = set; then
2580 enableval
="$enable_fast_character"
2584 cat >> confdefs.h
<<\EOF
2585 #define COMPACT_CHARACTER 1
2591 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2592 if test "${enable_libgcj_debug+set}" = set; then
2593 enableval
="$enable_libgcj_debug"
2594 if test "$enable_libgcj_debug" = yes; then
2595 cat >> confdefs.h
<<\EOF
2604 # Check whether --with-ecos or --without-ecos was given.
2605 if test "${with_ecos+set}" = set; then
2606 withval
="$with_ecos"
2607 TARGET_ECOS
="$with_ecos"
2612 case "$TARGET_ECOS" in
2614 FILE_DESCRIPTOR
=natFileDescriptorPosix.cc
2618 FILE_DESCRIPTOR
=natFileDescriptorEcos.cc
2620 cat >> confdefs.h
<<\EOF
2627 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2628 echo "configure:2629: checking how to run the C preprocessor" >&5
2629 # On Suns, sometimes $CPP names a directory.
2630 if test -n "$CPP" && test -d "$CPP"; then
2633 if test -z "$CPP"; then
2634 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2635 echo $ac_n "(cached) $ac_c" 1>&6
2637 # This must be in double quotes, not single quotes, because CPP may get
2638 # substituted into the Makefile and "${CC-cc}" will confuse make.
2640 # On the NeXT, cc -E runs the code through the compiler's parser,
2641 # not just through cpp.
2642 cat > conftest.
$ac_ext <<EOF
2643 #line 2644 "configure"
2644 #include "confdefs.h"
2648 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2649 { (eval echo configure
:2650: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2650 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2651 if test -z "$ac_err"; then
2655 echo "configure: failed program was:" >&5
2656 cat conftest.
$ac_ext >&5
2658 CPP
="${CC-cc} -E -traditional-cpp"
2659 cat > conftest.
$ac_ext <<EOF
2660 #line 2661 "configure"
2661 #include "confdefs.h"
2665 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2666 { (eval echo configure
:2667: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2667 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2668 if test -z "$ac_err"; then
2672 echo "configure: failed program was:" >&5
2673 cat conftest.
$ac_ext >&5
2675 CPP
="${CC-cc} -nologo -E"
2676 cat > conftest.
$ac_ext <<EOF
2677 #line 2678 "configure"
2678 #include "confdefs.h"
2682 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2683 { (eval echo configure
:2684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2684 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2685 if test -z "$ac_err"; then
2689 echo "configure: failed program was:" >&5
2690 cat conftest.
$ac_ext >&5
2699 ac_cv_prog_CPP
="$CPP"
2701 CPP
="$ac_cv_prog_CPP"
2703 ac_cv_prog_CPP
="$CPP"
2705 echo "$ac_t""$CPP" 1>&6
2707 cat > conftest.
$ac_ext <<EOF
2708 #line 2709 "configure"
2709 #include "confdefs.h"
2710 #include <sys/types.h>
2712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2713 egrep "__uint32_t" >/dev
/null
2>&1; then
2715 cat >> confdefs.h
<<\EOF
2716 #define HAVE_INT32_DEFINED 1
2722 cat > conftest.
$ac_ext <<EOF
2723 #line 2724 "configure"
2724 #include "confdefs.h"
2725 #include <sys/config.h>
2727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2728 egrep "__uint32_t" >/dev
/null
2>&1; then
2730 cat >> confdefs.h
<<\EOF
2731 #define HAVE_INT32_DEFINED 1
2738 cat > conftest.
$ac_ext <<EOF
2739 #line 2740 "configure"
2740 #include "confdefs.h"
2743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2744 egrep "mktime" >/dev
/null
2>&1; then
2746 cat >> confdefs.h
<<\EOF
2747 #define HAVE_MKTIME 1
2753 cat > conftest.
$ac_ext <<EOF
2754 #line 2755 "configure"
2755 #include "confdefs.h"
2758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2759 egrep "localtime" >/dev
/null
2>&1; then
2761 cat >> confdefs.h
<<\EOF
2762 #define HAVE_LOCALTIME 1
2769 test -d java || mkdir java
2770 test -d java
/io || mkdir java
/io
2773 test -d java
/lang || mkdir java
/lang
2780 # Check whether --with-system-zlib or --without-system-zlib was given.
2781 if test "${with_system_zlib+set}" = set; then
2782 withval
="$with_system_zlib"
2791 echo $ac_n "checking for garbage collector to use""... $ac_c" 1>&6
2792 echo "configure:2793: checking for garbage collector to use" >&5
2793 # Check whether --enable-java-gc or --disable-java-gc was given.
2794 if test "${enable_java_gc+set}" = set; then
2795 enableval
="$enable_java_gc"
2809 echo "$ac_t""boehm" 1>&6
2810 GCDEPS
='$(top_builddir)/../boehm-gc/libgcjgc.la'
2811 # We include the path to the boehm-gc build directory.
2812 # See Makefile.am to understand why.
2813 GCLIBS
="$GCDEPS -L\$(here)/../boehm-gc/$libsubdir"
2814 GCINCS
='-I$(top_srcdir)/../boehm-gc -I$(top_builddir)/../boehm-gc'
2816 GCINCS
="$GCINCS `cat ../boehm-gc/boehm-cflags`"
2819 cat >> confdefs.h
<<\EOF
2820 #define HAVE_BOEHM_GC 1
2825 echo "$ac_t""none" 1>&6
2830 { echo "configure: error: unrecognized collector \"$GC\"" 1>&2; exit 1; }
2841 echo $ac_n "checking for threads package to use""... $ac_c" 1>&6
2842 echo "configure:2843: checking for threads package to use" >&5
2843 # Check whether --enable-threads or --disable-threads was given.
2844 if test "${enable_threads+set}" = set; then
2845 enableval
="$enable_threads"
2852 if test "$THREADS" = yes; then
2858 # FIXME: this isn't correct in all cases.
2865 # FIXME: for now, choose POSIX, because we implement that.
2866 # Later, choose irix threads.
2870 # FIXME: for now, choose POSIX, because we implement that.
2871 # Later, choose solaris threads.
2889 cat >> confdefs.h
<<\EOF
2890 #define LINUX_THREADS 1
2898 decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks
)
2899 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
2902 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
2905 echo "$ac_t""$THREADS" 1>&6
2915 THREADLIBS
=-lpthread
2916 THREADSPEC
=-lpthread
2917 THREADOBJS
=posix-threads.lo
2918 THREADH
=posix-threads.h
2919 # MIT pthreads doesn't seem to have the mutexattr functions.
2920 # But for now we don't check for it. We just assume you aren't
2921 # using MIT pthreads.
2922 cat >> confdefs.h
<<\EOF
2923 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
2929 THREADDEPS
='$(top_builddir)/../qthreads/libgcjcoop.la'
2930 # We include the path to the qthreads build directory.
2931 # See Makefile.am to understand why.
2932 THREADLIBS
="$THREADDEPS -L\$(here)/../qthreads/$libsubdir"
2933 THREADSPEC
='-lgcjcoop'
2934 THREADOBJS
=quick-threads.lo
2935 THREADINCS
='-I$(top_srcdir)/../qthreads'
2936 THREADH
=quick-threads.h
2940 THREADOBJS
=no-threads.lo
2941 THREADH
=no-threads.h
2953 if test "$GCC" = yes; then
2964 # Find eh-common.h and support headers. If we're in the tree with
2965 # gcc, then look there. Otherwise look in compat-include. If all else
2966 # fails, just hope the user has set things up somehow.
2967 if test -r $srcdir/..
/gcc
/eh-common.h
; then
2968 EH_COMMON_INCLUDE
='-I$(top_srcdir)/../gcc -I$(top_srcdir)/../include'
2970 if test -d $srcdir/..
/compat-include
; then
2971 EH_COMMON_INCLUDE
='-I$(top_srcdir)/../compat-include'
2977 if test -n "${with_cross_host}"; then
2978 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
2979 # may not work correctly, because the compiler may not be able to
2982 # We assume newlib. This lets us hard-code the functions we know
2984 cat >> confdefs.h
<<\EOF
2985 #define HAVE_MEMMOVE 1
2988 cat >> confdefs.h
<<\EOF
2989 #define HAVE_MEMCPY 1
2992 cat >> confdefs.h
<<\EOF
2993 #define HAVE_STRERROR 1
2996 cat >> confdefs.h
<<\EOF
2997 #define HAVE_CTIME_R 1
3000 cat >> confdefs.h
<<\EOF
3001 #define HAVE_GMTIME_R 1
3004 cat >> confdefs.h
<<\EOF
3005 #define HAVE_LOCALTIME_R 1
3008 cat >> confdefs.h
<<\EOF
3009 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3012 cat >> confdefs.h
<<\EOF
3013 #define HAVE_ALLOCA 1
3019 # If Canadian cross, then don't pick up tools from the build
3021 if test "$build" != "$with_cross_host"; then
3024 GCJ
="${target_alias}/gcj"
3029 # Some POSIX thread systems don't have pthread_mutexattr_settype.
3031 for ac_func
in strerror ioctl
select open fsync
sleep
3033 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3034 echo "configure:3035: checking for $ac_func" >&5
3035 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3036 echo $ac_n "(cached) $ac_c" 1>&6
3038 cat > conftest.
$ac_ext <<EOF
3039 #line 3040 "configure"
3040 #include "confdefs.h"
3041 /* System header to define __stub macros and hopefully few prototypes,
3042 which can conflict with char $ac_func(); below. */
3044 /* Override any gcc2 internal prototype to avoid an error. */
3045 /* We use char because int might match the return type of a gcc2
3046 builtin and then its argument prototype would still apply. */
3051 /* The GNU C library defines this for functions which it implements
3052 to always fail with ENOSYS. Some functions are actually named
3053 something starting with __ and the normal name is an alias. */
3054 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3062 if { (eval echo configure
:3063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3064 eval "ac_cv_func_$ac_func=yes"
3066 echo "configure: failed program was:" >&5
3067 cat conftest.
$ac_ext >&5
3069 eval "ac_cv_func_$ac_func=no"
3074 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3075 echo "$ac_t""yes" 1>&6
3076 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3077 cat >> confdefs.h
<<EOF
3078 #define $ac_tr_func 1
3082 echo "$ac_t""no" 1>&6
3086 for ac_func
in ctime_r ctime
3088 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3089 echo "configure:3090: checking for $ac_func" >&5
3090 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3091 echo $ac_n "(cached) $ac_c" 1>&6
3093 cat > conftest.
$ac_ext <<EOF
3094 #line 3095 "configure"
3095 #include "confdefs.h"
3096 /* System header to define __stub macros and hopefully few prototypes,
3097 which can conflict with char $ac_func(); below. */
3099 /* Override any gcc2 internal prototype to avoid an error. */
3100 /* We use char because int might match the return type of a gcc2
3101 builtin and then its argument prototype would still apply. */
3106 /* The GNU C library defines this for functions which it implements
3107 to always fail with ENOSYS. Some functions are actually named
3108 something starting with __ and the normal name is an alias. */
3109 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3117 if { (eval echo configure
:3118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3119 eval "ac_cv_func_$ac_func=yes"
3121 echo "configure: failed program was:" >&5
3122 cat conftest.
$ac_ext >&5
3124 eval "ac_cv_func_$ac_func=no"
3129 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3130 echo "$ac_t""yes" 1>&6
3131 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3132 cat >> confdefs.h
<<EOF
3133 #define $ac_tr_func 1
3137 echo "$ac_t""no" 1>&6
3141 for ac_func
in gmtime_r localtime_r readdir_r getpwuid_r
3143 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3144 echo "configure:3145: checking for $ac_func" >&5
3145 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3146 echo $ac_n "(cached) $ac_c" 1>&6
3148 cat > conftest.
$ac_ext <<EOF
3149 #line 3150 "configure"
3150 #include "confdefs.h"
3151 /* System header to define __stub macros and hopefully few prototypes,
3152 which can conflict with char $ac_func(); below. */
3154 /* Override any gcc2 internal prototype to avoid an error. */
3155 /* We use char because int might match the return type of a gcc2
3156 builtin and then its argument prototype would still apply. */
3161 /* The GNU C library defines this for functions which it implements
3162 to always fail with ENOSYS. Some functions are actually named
3163 something starting with __ and the normal name is an alias. */
3164 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3172 if { (eval echo configure
:3173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3174 eval "ac_cv_func_$ac_func=yes"
3176 echo "configure: failed program was:" >&5
3177 cat conftest.
$ac_ext >&5
3179 eval "ac_cv_func_$ac_func=no"
3184 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3185 echo "$ac_t""yes" 1>&6
3186 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3187 cat >> confdefs.h
<<EOF
3188 #define $ac_tr_func 1
3192 echo "$ac_t""no" 1>&6
3196 for ac_func
in access stat mkdir rename
rmdir unlink realpath
3198 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3199 echo "configure:3200: checking for $ac_func" >&5
3200 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3201 echo $ac_n "(cached) $ac_c" 1>&6
3203 cat > conftest.
$ac_ext <<EOF
3204 #line 3205 "configure"
3205 #include "confdefs.h"
3206 /* System header to define __stub macros and hopefully few prototypes,
3207 which can conflict with char $ac_func(); below. */
3209 /* Override any gcc2 internal prototype to avoid an error. */
3210 /* We use char because int might match the return type of a gcc2
3211 builtin and then its argument prototype would still apply. */
3216 /* The GNU C library defines this for functions which it implements
3217 to always fail with ENOSYS. Some functions are actually named
3218 something starting with __ and the normal name is an alias. */
3219 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3227 if { (eval echo configure
:3228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3229 eval "ac_cv_func_$ac_func=yes"
3231 echo "configure: failed program was:" >&5
3232 cat conftest.
$ac_ext >&5
3234 eval "ac_cv_func_$ac_func=no"
3239 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3240 echo "$ac_t""yes" 1>&6
3241 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3242 cat >> confdefs.h
<<EOF
3243 #define $ac_tr_func 1
3247 echo "$ac_t""no" 1>&6
3251 for ac_func
in inet_aton inet_addr
3253 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3254 echo "configure:3255: checking for $ac_func" >&5
3255 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3256 echo $ac_n "(cached) $ac_c" 1>&6
3258 cat > conftest.
$ac_ext <<EOF
3259 #line 3260 "configure"
3260 #include "confdefs.h"
3261 /* System header to define __stub macros and hopefully few prototypes,
3262 which can conflict with char $ac_func(); below. */
3264 /* Override any gcc2 internal prototype to avoid an error. */
3265 /* We use char because int might match the return type of a gcc2
3266 builtin and then its argument prototype would still apply. */
3271 /* The GNU C library defines this for functions which it implements
3272 to always fail with ENOSYS. Some functions are actually named
3273 something starting with __ and the normal name is an alias. */
3274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3282 if { (eval echo configure
:3283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3284 eval "ac_cv_func_$ac_func=yes"
3286 echo "configure: failed program was:" >&5
3287 cat conftest.
$ac_ext >&5
3289 eval "ac_cv_func_$ac_func=no"
3294 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3295 echo "$ac_t""yes" 1>&6
3296 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3297 cat >> confdefs.h
<<EOF
3298 #define $ac_tr_func 1
3302 echo "$ac_t""no" 1>&6
3306 for ac_func
in inet_pton uname
3308 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3309 echo "configure:3310: checking for $ac_func" >&5
3310 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3311 echo $ac_n "(cached) $ac_c" 1>&6
3313 cat > conftest.
$ac_ext <<EOF
3314 #line 3315 "configure"
3315 #include "confdefs.h"
3316 /* System header to define __stub macros and hopefully few prototypes,
3317 which can conflict with char $ac_func(); below. */
3319 /* Override any gcc2 internal prototype to avoid an error. */
3320 /* We use char because int might match the return type of a gcc2
3321 builtin and then its argument prototype would still apply. */
3326 /* The GNU C library defines this for functions which it implements
3327 to always fail with ENOSYS. Some functions are actually named
3328 something starting with __ and the normal name is an alias. */
3329 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3337 if { (eval echo configure
:3338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3339 eval "ac_cv_func_$ac_func=yes"
3341 echo "configure: failed program was:" >&5
3342 cat conftest.
$ac_ext >&5
3344 eval "ac_cv_func_$ac_func=no"
3349 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3350 echo "$ac_t""yes" 1>&6
3351 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3352 cat >> confdefs.h
<<EOF
3353 #define $ac_tr_func 1
3357 echo "$ac_t""no" 1>&6
3362 for ac_func
in gethostbyname_r
3364 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3365 echo "configure:3366: checking for $ac_func" >&5
3366 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3367 echo $ac_n "(cached) $ac_c" 1>&6
3369 cat > conftest.
$ac_ext <<EOF
3370 #line 3371 "configure"
3371 #include "confdefs.h"
3372 /* System header to define __stub macros and hopefully few prototypes,
3373 which can conflict with char $ac_func(); below. */
3375 /* Override any gcc2 internal prototype to avoid an error. */
3376 /* We use char because int might match the return type of a gcc2
3377 builtin and then its argument prototype would still apply. */
3382 /* The GNU C library defines this for functions which it implements
3383 to always fail with ENOSYS. Some functions are actually named
3384 something starting with __ and the normal name is an alias. */
3385 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3393 if { (eval echo configure
:3394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3395 eval "ac_cv_func_$ac_func=yes"
3397 echo "configure: failed program was:" >&5
3398 cat conftest.
$ac_ext >&5
3400 eval "ac_cv_func_$ac_func=no"
3405 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3406 echo "$ac_t""yes" 1>&6
3407 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3408 cat >> confdefs.h
<<EOF
3409 #define $ac_tr_func 1
3412 cat >> confdefs.h
<<\EOF
3413 #define HAVE_GETHOSTBYNAME_R 1
3416 # There are two different kinds of gethostbyname_r.
3417 # We look for the one that returns `int'.
3418 # Hopefully this check is robust enough.
3419 cat > conftest.
$ac_ext <<EOF
3420 #line 3421 "configure"
3421 #include "confdefs.h"
3424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3425 egrep "int.*gethostbyname_r" >/dev
/null
2>&1; then
3428 cat >> confdefs.h
<<\EOF
3429 #define GETHOSTBYNAME_R_RETURNS_INT 1
3436 echo "$ac_t""no" 1>&6
3441 for ac_func
in gethostbyaddr_r
3443 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3444 echo "configure:3445: checking for $ac_func" >&5
3445 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3446 echo $ac_n "(cached) $ac_c" 1>&6
3448 cat > conftest.
$ac_ext <<EOF
3449 #line 3450 "configure"
3450 #include "confdefs.h"
3451 /* System header to define __stub macros and hopefully few prototypes,
3452 which can conflict with char $ac_func(); below. */
3454 /* Override any gcc2 internal prototype to avoid an error. */
3455 /* We use char because int might match the return type of a gcc2
3456 builtin and then its argument prototype would still apply. */
3461 /* The GNU C library defines this for functions which it implements
3462 to always fail with ENOSYS. Some functions are actually named
3463 something starting with __ and the normal name is an alias. */
3464 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3472 if { (eval echo configure
:3473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3474 eval "ac_cv_func_$ac_func=yes"
3476 echo "configure: failed program was:" >&5
3477 cat conftest.
$ac_ext >&5
3479 eval "ac_cv_func_$ac_func=no"
3484 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3485 echo "$ac_t""yes" 1>&6
3486 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3487 cat >> confdefs.h
<<EOF
3488 #define $ac_tr_func 1
3491 cat >> confdefs.h
<<\EOF
3492 #define HAVE_GETHOSTBYADDR_R 1
3495 # There are two different kinds of gethostbyaddr_r.
3496 # We look for the one that returns `int'.
3497 # Hopefully this check is robust enough.
3498 cat > conftest.
$ac_ext <<EOF
3499 #line 3500 "configure"
3500 #include "confdefs.h"
3503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3504 egrep "int.*gethostbyaddr_r" >/dev
/null
2>&1; then
3507 cat >> confdefs.h
<<\EOF
3508 #define GETHOSTBYADDR_R_RETURNS_INT 1
3515 echo "$ac_t""no" 1>&6
3520 for ac_func
in gethostname
3522 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3523 echo "configure:3524: checking for $ac_func" >&5
3524 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3525 echo $ac_n "(cached) $ac_c" 1>&6
3527 cat > conftest.
$ac_ext <<EOF
3528 #line 3529 "configure"
3529 #include "confdefs.h"
3530 /* System header to define __stub macros and hopefully few prototypes,
3531 which can conflict with char $ac_func(); below. */
3533 /* Override any gcc2 internal prototype to avoid an error. */
3534 /* We use char because int might match the return type of a gcc2
3535 builtin and then its argument prototype would still apply. */
3540 /* The GNU C library defines this for functions which it implements
3541 to always fail with ENOSYS. Some functions are actually named
3542 something starting with __ and the normal name is an alias. */
3543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3551 if { (eval echo configure
:3552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3553 eval "ac_cv_func_$ac_func=yes"
3555 echo "configure: failed program was:" >&5
3556 cat conftest.
$ac_ext >&5
3558 eval "ac_cv_func_$ac_func=no"
3563 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3564 echo "$ac_t""yes" 1>&6
3565 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3566 cat >> confdefs.h
<<EOF
3567 #define $ac_tr_func 1
3570 cat >> confdefs.h
<<\EOF
3571 #define HAVE_GETHOSTNAME 1
3574 cat > conftest.
$ac_ext <<EOF
3575 #line 3576 "configure"
3576 #include "confdefs.h"
3579 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3580 egrep "gethostname" >/dev
/null
2>&1; then
3583 cat >> confdefs.h
<<\EOF
3584 #define HAVE_GETHOSTNAME_DECL 1
3591 echo "$ac_t""no" 1>&6
3596 # Look for these functions in the thread library.
3598 LIBS
="$LIBS $THREADLIBS"
3599 for ac_func
in pthread_mutexattr_settype pthread_mutexattr_setkind_np sched_yield
3601 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3602 echo "configure:3603: checking for $ac_func" >&5
3603 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3604 echo $ac_n "(cached) $ac_c" 1>&6
3606 cat > conftest.
$ac_ext <<EOF
3607 #line 3608 "configure"
3608 #include "confdefs.h"
3609 /* System header to define __stub macros and hopefully few prototypes,
3610 which can conflict with char $ac_func(); below. */
3612 /* Override any gcc2 internal prototype to avoid an error. */
3613 /* We use char because int might match the return type of a gcc2
3614 builtin and then its argument prototype would still apply. */
3619 /* The GNU C library defines this for functions which it implements
3620 to always fail with ENOSYS. Some functions are actually named
3621 something starting with __ and the normal name is an alias. */
3622 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3630 if { (eval echo configure
:3631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3632 eval "ac_cv_func_$ac_func=yes"
3634 echo "configure: failed program was:" >&5
3635 cat conftest.
$ac_ext >&5
3637 eval "ac_cv_func_$ac_func=no"
3642 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3643 echo "$ac_t""yes" 1>&6
3644 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3645 cat >> confdefs.h
<<EOF
3646 #define $ac_tr_func 1
3650 echo "$ac_t""no" 1>&6
3654 # Look for sched_yield. Sometimes it is in the posix4 library.
3655 for ac_func
in sched_yield
3657 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3658 echo "configure:3659: checking for $ac_func" >&5
3659 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3660 echo $ac_n "(cached) $ac_c" 1>&6
3662 cat > conftest.
$ac_ext <<EOF
3663 #line 3664 "configure"
3664 #include "confdefs.h"
3665 /* System header to define __stub macros and hopefully few prototypes,
3666 which can conflict with char $ac_func(); below. */
3668 /* Override any gcc2 internal prototype to avoid an error. */
3669 /* We use char because int might match the return type of a gcc2
3670 builtin and then its argument prototype would still apply. */
3675 /* The GNU C library defines this for functions which it implements
3676 to always fail with ENOSYS. Some functions are actually named
3677 something starting with __ and the normal name is an alias. */
3678 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3686 if { (eval echo configure
:3687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3688 eval "ac_cv_func_$ac_func=yes"
3690 echo "configure: failed program was:" >&5
3691 cat conftest.
$ac_ext >&5
3693 eval "ac_cv_func_$ac_func=no"
3698 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3699 echo "$ac_t""yes" 1>&6
3700 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3701 cat >> confdefs.h
<<EOF
3702 #define $ac_tr_func 1
3706 echo "$ac_t""no" 1>&6
3707 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
3708 echo "configure:3709: checking for sched_yield in -lposix4" >&5
3709 ac_lib_var
=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
3710 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3711 echo $ac_n "(cached) $ac_c" 1>&6
3713 ac_save_LIBS
="$LIBS"
3714 LIBS
="-lposix4 $LIBS"
3715 cat > conftest.
$ac_ext <<EOF
3716 #line 3717 "configure"
3717 #include "confdefs.h"
3718 /* Override any gcc2 internal prototype to avoid an error. */
3719 /* We use char because int might match the return type of a gcc2
3720 builtin and then its argument prototype would still apply. */
3727 if { (eval echo configure
:3728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3729 eval "ac_cv_lib_$ac_lib_var=yes"
3731 echo "configure: failed program was:" >&5
3732 cat conftest.
$ac_ext >&5
3734 eval "ac_cv_lib_$ac_lib_var=no"
3737 LIBS
="$ac_save_LIBS"
3740 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3741 echo "$ac_t""yes" 1>&6
3743 cat >> confdefs.h
<<\EOF
3744 #define HAVE_SCHED_YIELD 1
3747 THREADLIBS
="$THREADLIBS -lposix4"
3749 echo "$ac_t""no" 1>&6
3757 # We require a way to get the time.
3759 for ac_func
in gettimeofday
time ftime
3761 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3762 echo "configure:3763: checking for $ac_func" >&5
3763 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3764 echo $ac_n "(cached) $ac_c" 1>&6
3766 cat > conftest.
$ac_ext <<EOF
3767 #line 3768 "configure"
3768 #include "confdefs.h"
3769 /* System header to define __stub macros and hopefully few prototypes,
3770 which can conflict with char $ac_func(); below. */
3772 /* Override any gcc2 internal prototype to avoid an error. */
3773 /* We use char because int might match the return type of a gcc2
3774 builtin and then its argument prototype would still apply. */
3779 /* The GNU C library defines this for functions which it implements
3780 to always fail with ENOSYS. Some functions are actually named
3781 something starting with __ and the normal name is an alias. */
3782 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3790 if { (eval echo configure
:3791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3792 eval "ac_cv_func_$ac_func=yes"
3794 echo "configure: failed program was:" >&5
3795 cat conftest.
$ac_ext >&5
3797 eval "ac_cv_func_$ac_func=no"
3802 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3803 echo "$ac_t""yes" 1>&6
3804 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3805 cat >> confdefs.h
<<EOF
3806 #define $ac_tr_func 1
3810 echo "$ac_t""no" 1>&6
3814 if test "$time_found" = no
; then
3815 { echo "configure: error: no function found to get the time" 1>&2; exit 1; }
3818 # We require memmove.
3820 for ac_func
in memmove
3822 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3823 echo "configure:3824: checking for $ac_func" >&5
3824 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3825 echo $ac_n "(cached) $ac_c" 1>&6
3827 cat > conftest.
$ac_ext <<EOF
3828 #line 3829 "configure"
3829 #include "confdefs.h"
3830 /* System header to define __stub macros and hopefully few prototypes,
3831 which can conflict with char $ac_func(); below. */
3833 /* Override any gcc2 internal prototype to avoid an error. */
3834 /* We use char because int might match the return type of a gcc2
3835 builtin and then its argument prototype would still apply. */
3840 /* The GNU C library defines this for functions which it implements
3841 to always fail with ENOSYS. Some functions are actually named
3842 something starting with __ and the normal name is an alias. */
3843 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3851 if { (eval echo configure
:3852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3853 eval "ac_cv_func_$ac_func=yes"
3855 echo "configure: failed program was:" >&5
3856 cat conftest.
$ac_ext >&5
3858 eval "ac_cv_func_$ac_func=no"
3863 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3864 echo "$ac_t""yes" 1>&6
3865 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3866 cat >> confdefs.h
<<EOF
3867 #define $ac_tr_func 1
3871 echo "$ac_t""no" 1>&6
3875 if test "$memmove_found" = no
; then
3876 { echo "configure: error: memmove is required" 1>&2; exit 1; }
3879 # We require memcpy.
3881 for ac_func
in memcpy
3883 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3884 echo "configure:3885: checking for $ac_func" >&5
3885 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3886 echo $ac_n "(cached) $ac_c" 1>&6
3888 cat > conftest.
$ac_ext <<EOF
3889 #line 3890 "configure"
3890 #include "confdefs.h"
3891 /* System header to define __stub macros and hopefully few prototypes,
3892 which can conflict with char $ac_func(); below. */
3894 /* Override any gcc2 internal prototype to avoid an error. */
3895 /* We use char because int might match the return type of a gcc2
3896 builtin and then its argument prototype would still apply. */
3901 /* The GNU C library defines this for functions which it implements
3902 to always fail with ENOSYS. Some functions are actually named
3903 something starting with __ and the normal name is an alias. */
3904 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3912 if { (eval echo configure
:3913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3914 eval "ac_cv_func_$ac_func=yes"
3916 echo "configure: failed program was:" >&5
3917 cat conftest.
$ac_ext >&5
3919 eval "ac_cv_func_$ac_func=no"
3924 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3925 echo "$ac_t""yes" 1>&6
3926 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3927 cat >> confdefs.h
<<EOF
3928 #define $ac_tr_func 1
3932 echo "$ac_t""no" 1>&6
3936 if test "$memcpy_found" = no
; then
3937 { echo "configure: error: memcpy is required" 1>&2; exit 1; }
3940 # Some library-finding code we stole from Tcl.
3941 #--------------------------------------------------------------------
3942 # Check for the existence of the -lsocket and -lnsl libraries.
3943 # The order here is important, so that they end up in the right
3944 # order in the command line generated by make. Here are some
3945 # special considerations:
3946 # 1. Use "connect" and "accept" to check for -lsocket, and
3947 # "gethostbyname" to check for -lnsl.
3948 # 2. Use each function name only once: can't redo a check because
3949 # autoconf caches the results of the last check and won't redo it.
3950 # 3. Use -lnsl and -lsocket only if they supply procedures that
3951 # aren't already present in the normal libraries. This is because
3952 # IRIX 5.2 has libraries, but they aren't needed and they're
3953 # bogus: they goof up name resolution if used.
3954 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
3955 # To get around this problem, check for both libraries together
3956 # if -lsocket doesn't work by itself.
3957 #--------------------------------------------------------------------
3959 echo $ac_n "checking for socket libraries""... $ac_c" 1>&6
3960 echo "configure:3961: checking for socket libraries" >&5
3961 if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
3962 echo $ac_n "(cached) $ac_c" 1>&6
3966 unset ac_cv_func_connect
3967 echo $ac_n "checking for connect""... $ac_c" 1>&6
3968 echo "configure:3969: checking for connect" >&5
3969 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3970 echo $ac_n "(cached) $ac_c" 1>&6
3972 cat > conftest.
$ac_ext <<EOF
3973 #line 3974 "configure"
3974 #include "confdefs.h"
3975 /* System header to define __stub macros and hopefully few prototypes,
3976 which can conflict with char connect(); below. */
3978 /* Override any gcc2 internal prototype to avoid an error. */
3979 /* We use char because int might match the return type of a gcc2
3980 builtin and then its argument prototype would still apply. */
3985 /* The GNU C library defines this for functions which it implements
3986 to always fail with ENOSYS. Some functions are actually named
3987 something starting with __ and the normal name is an alias. */
3988 #if defined (__stub_connect) || defined (__stub___connect)
3996 if { (eval echo configure
:3997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3998 eval "ac_cv_func_connect=yes"
4000 echo "configure: failed program was:" >&5
4001 cat conftest.
$ac_ext >&5
4003 eval "ac_cv_func_connect=no"
4008 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
4009 echo "$ac_t""yes" 1>&6
4012 echo "$ac_t""no" 1>&6
4016 if test "$gcj_checkSocket" = 1; then
4017 unset ac_cv_func_connect
4018 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4019 echo "configure:4020: checking for main in -lsocket" >&5
4020 ac_lib_var
=`echo socket'_'main | sed 'y%./+-%__p_%'`
4021 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4022 echo $ac_n "(cached) $ac_c" 1>&6
4024 ac_save_LIBS
="$LIBS"
4025 LIBS
="-lsocket $LIBS"
4026 cat > conftest.
$ac_ext <<EOF
4027 #line 4028 "configure"
4028 #include "confdefs.h"
4034 if { (eval echo configure
:4035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4036 eval "ac_cv_lib_$ac_lib_var=yes"
4038 echo "configure: failed program was:" >&5
4039 cat conftest.
$ac_ext >&5
4041 eval "ac_cv_lib_$ac_lib_var=no"
4044 LIBS
="$ac_save_LIBS"
4047 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4048 echo "$ac_t""yes" 1>&6
4049 gcj_cv_lib_sockets
="-lsocket"
4051 echo "$ac_t""no" 1>&6
4056 if test "$gcj_checkBoth" = 1; then
4058 LIBS
="$LIBS -lsocket -lnsl"
4059 unset ac_cv_func_accept
4060 echo $ac_n "checking for accept""... $ac_c" 1>&6
4061 echo "configure:4062: checking for accept" >&5
4062 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
4063 echo $ac_n "(cached) $ac_c" 1>&6
4065 cat > conftest.
$ac_ext <<EOF
4066 #line 4067 "configure"
4067 #include "confdefs.h"
4068 /* System header to define __stub macros and hopefully few prototypes,
4069 which can conflict with char accept(); below. */
4071 /* Override any gcc2 internal prototype to avoid an error. */
4072 /* We use char because int might match the return type of a gcc2
4073 builtin and then its argument prototype would still apply. */
4078 /* The GNU C library defines this for functions which it implements
4079 to always fail with ENOSYS. Some functions are actually named
4080 something starting with __ and the normal name is an alias. */
4081 #if defined (__stub_accept) || defined (__stub___accept)
4089 if { (eval echo configure
:4090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4091 eval "ac_cv_func_accept=yes"
4093 echo "configure: failed program was:" >&5
4094 cat conftest.
$ac_ext >&5
4096 eval "ac_cv_func_accept=no"
4101 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
4102 echo "$ac_t""yes" 1>&6
4104 gcj_cv_lib_sockets
="-lsocket -lnsl"
4106 echo "$ac_t""no" 1>&6
4109 unset ac_cv_func_accept
4112 unset ac_cv_func_gethostbyname
4114 LIBS
="$LIBS $gcj_cv_lib_sockets"
4115 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4116 echo "configure:4117: checking for gethostbyname" >&5
4117 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
4118 echo $ac_n "(cached) $ac_c" 1>&6
4120 cat > conftest.
$ac_ext <<EOF
4121 #line 4122 "configure"
4122 #include "confdefs.h"
4123 /* System header to define __stub macros and hopefully few prototypes,
4124 which can conflict with char gethostbyname(); below. */
4126 /* Override any gcc2 internal prototype to avoid an error. */
4127 /* We use char because int might match the return type of a gcc2
4128 builtin and then its argument prototype would still apply. */
4129 char gethostbyname();
4133 /* The GNU C library defines this for functions which it implements
4134 to always fail with ENOSYS. Some functions are actually named
4135 something starting with __ and the normal name is an alias. */
4136 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4144 if { (eval echo configure
:4145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4146 eval "ac_cv_func_gethostbyname=yes"
4148 echo "configure: failed program was:" >&5
4149 cat conftest.
$ac_ext >&5
4151 eval "ac_cv_func_gethostbyname=no"
4156 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
4157 echo "$ac_t""yes" 1>&6
4160 echo "$ac_t""no" 1>&6
4161 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4162 echo "configure:4163: checking for main in -lnsl" >&5
4163 ac_lib_var
=`echo nsl'_'main | sed 'y%./+-%__p_%'`
4164 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4165 echo $ac_n "(cached) $ac_c" 1>&6
4167 ac_save_LIBS
="$LIBS"
4169 cat > conftest.
$ac_ext <<EOF
4170 #line 4171 "configure"
4171 #include "confdefs.h"
4177 if { (eval echo configure
:4178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4179 eval "ac_cv_lib_$ac_lib_var=yes"
4181 echo "configure: failed program was:" >&5
4182 cat conftest.
$ac_ext >&5
4184 eval "ac_cv_lib_$ac_lib_var=no"
4187 LIBS
="$ac_save_LIBS"
4190 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4191 echo "$ac_t""yes" 1>&6
4192 gcj_cv_lib_sockets
="$gcj_cv_lib_sockets -lnsl"
4194 echo "$ac_t""no" 1>&6
4199 unset ac_cv_func_gethostbyname
4204 echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
4205 SYSTEMSPEC
="$SYSTEMSPEC $gcj_cv_lib_sockets"
4207 if test "$with_system_zlib" = yes; then
4208 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
4209 echo "configure:4210: checking for deflate in -lz" >&5
4210 ac_lib_var
=`echo z'_'deflate | sed 'y%./+-%__p_%'`
4211 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4212 echo $ac_n "(cached) $ac_c" 1>&6
4214 ac_save_LIBS
="$LIBS"
4216 cat > conftest.
$ac_ext <<EOF
4217 #line 4218 "configure"
4218 #include "confdefs.h"
4219 /* Override any gcc2 internal prototype to avoid an error. */
4220 /* We use char because int might match the return type of a gcc2
4221 builtin and then its argument prototype would still apply. */
4228 if { (eval echo configure
:4229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4230 eval "ac_cv_lib_$ac_lib_var=yes"
4232 echo "configure: failed program was:" >&5
4233 cat conftest.
$ac_ext >&5
4235 eval "ac_cv_lib_$ac_lib_var=no"
4238 LIBS
="$ac_save_LIBS"
4241 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4242 echo "$ac_t""yes" 1>&6
4245 echo "$ac_t""no" 1>&6
4253 # On Solaris, and maybe other architectures, the Boehm collector
4255 if test "$GC" = boehm
; then
4256 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
4257 echo "configure:4258: checking for main in -ldl" >&5
4258 ac_lib_var
=`echo dl'_'main | sed 'y%./+-%__p_%'`
4259 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4260 echo $ac_n "(cached) $ac_c" 1>&6
4262 ac_save_LIBS
="$LIBS"
4264 cat > conftest.
$ac_ext <<EOF
4265 #line 4266 "configure"
4266 #include "confdefs.h"
4272 if { (eval echo configure
:4273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4274 eval "ac_cv_lib_$ac_lib_var=yes"
4276 echo "configure: failed program was:" >&5
4277 cat conftest.
$ac_ext >&5
4279 eval "ac_cv_lib_$ac_lib_var=no"
4282 LIBS
="$ac_save_LIBS"
4285 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4286 echo "$ac_t""yes" 1>&6
4287 SYSTEMSPEC
="$SYSTEMSPEC -ldl"
4289 echo "$ac_t""no" 1>&6
4294 if test -d "$libgcj_basedir/../gcc/java"; then
4306 if test "x$ZLIBSPEC" = "x-lzgcj"; then
4307 # We include the path to the zlib build directory.
4308 # See Makefile.am to understand why.
4309 ZDEPS
='$(top_builddir)/../zlib/libzgcj.la'
4310 ZLIBS
="$ZDEPS -L\$(here)/../zlib/$libsubdir"
4311 ZINCS
='-I$(top_srcdir)/../zlib'
4321 if test "$CANADIAN" = yes; then
4330 if test "$NULL_TARGET" = yes; then
4332 NULL_TARGET_FALSE
='#'
4334 NULL_TARGET_TRUE
='#'
4339 if test "$CANADIAN" = no ||
test "$NULL_TARGET" = yes; then
4348 # Determine gcj version number.
4349 if test "$GCJ" = ""; then
4350 if test -z "${with_multisubdir}"; then
4353 builddotdot
=`echo ${with_multisubdir} | sed -e 's:^/^/*:..:g'`
4355 dir
="`cd ${builddotdot}/../../gcc && pwd`"
4356 GCJ
="$dir/gcj -B$dir/"
4359 gcjvers
="`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`"
4361 cat >> confdefs.h
<<EOF
4362 #define GCJVERSION "$gcjvers"
4368 for ac_hdr
in unistd.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
4370 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4371 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4372 echo "configure:4373: checking for $ac_hdr" >&5
4373 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4374 echo $ac_n "(cached) $ac_c" 1>&6
4376 cat > conftest.
$ac_ext <<EOF
4377 #line 4378 "configure"
4378 #include "confdefs.h"
4381 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4382 { (eval echo configure
:4383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4383 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4384 if test -z "$ac_err"; then
4386 eval "ac_cv_header_$ac_safe=yes"
4389 echo "configure: failed program was:" >&5
4390 cat conftest.
$ac_ext >&5
4392 eval "ac_cv_header_$ac_safe=no"
4396 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4397 echo "$ac_t""yes" 1>&6
4398 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4399 cat >> confdefs.h
<<EOF
4400 #define $ac_tr_hdr 1
4404 echo "$ac_t""no" 1>&6
4408 for ac_hdr
in dirent.h
4410 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4411 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4412 echo "configure:4413: checking for $ac_hdr" >&5
4413 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4414 echo $ac_n "(cached) $ac_c" 1>&6
4416 cat > conftest.
$ac_ext <<EOF
4417 #line 4418 "configure"
4418 #include "confdefs.h"
4421 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4422 { (eval echo configure
:4423: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4423 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4424 if test -z "$ac_err"; then
4426 eval "ac_cv_header_$ac_safe=yes"
4429 echo "configure: failed program was:" >&5
4430 cat conftest.
$ac_ext >&5
4432 eval "ac_cv_header_$ac_safe=no"
4436 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4437 echo "$ac_t""yes" 1>&6
4438 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4439 cat >> confdefs.h
<<EOF
4440 #define $ac_tr_hdr 1
4444 echo "$ac_t""no" 1>&6
4449 echo $ac_n "checking whether struct sockaddr_in6 is in netinet/in.h""... $ac_c" 1>&6
4450 echo "configure:4451: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
4451 cat > conftest.
$ac_ext <<EOF
4452 #line 4453 "configure"
4453 #include "confdefs.h"
4454 #include <netinet/in.h>
4456 struct sockaddr_in6 addr6;
4459 if { (eval echo configure
:4460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4461 cat >> confdefs.h
<<\EOF
4462 #define HAVE_INET6 1
4465 echo "$ac_t""yes" 1>&6
4467 echo "configure: failed program was:" >&5
4468 cat conftest.
$ac_ext >&5
4470 echo "$ac_t""no" 1>&6
4474 echo $ac_n "checking for socklen_t in sys/socket.h""... $ac_c" 1>&6
4475 echo "configure:4476: checking for socklen_t in sys/socket.h" >&5
4476 cat > conftest.
$ac_ext <<EOF
4477 #line 4478 "configure"
4478 #include "confdefs.h"
4479 #include <sys/socket.h>
4484 if { (eval echo configure
:4485: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4486 cat >> confdefs.h
<<\EOF
4487 #define HAVE_SOCKLEN_T 1
4490 echo "$ac_t""yes" 1>&6
4492 echo "configure: failed program was:" >&5
4493 cat conftest.
$ac_ext >&5
4495 echo "$ac_t""no" 1>&6
4499 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
4500 echo "configure:4501: checking for tm_gmtoff in struct tm" >&5
4501 cat > conftest.
$ac_ext <<EOF
4502 #line 4503 "configure"
4503 #include "confdefs.h"
4506 struct tm tim; tim.tm_gmtoff = 0;
4509 if { (eval echo configure
:4510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4511 cat >> confdefs.h
<<\EOF
4512 #define STRUCT_TM_HAS_GMTOFF 1
4515 echo "$ac_t""yes" 1>&6
4517 echo "configure: failed program was:" >&5
4518 cat conftest.
$ac_ext >&5
4520 echo "$ac_t""no" 1>&6
4521 echo $ac_n "checking for global timezone variable""... $ac_c" 1>&6
4522 echo "configure:4523: checking for global timezone variable" >&5
4523 cat > conftest.
$ac_ext <<EOF
4524 #line 4525 "configure"
4525 #include "confdefs.h"
4531 if { (eval echo configure
:4532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4533 cat >> confdefs.h
<<\EOF
4534 #define HAVE_TIMEZONE 1
4537 echo "$ac_t""yes" 1>&6
4539 echo "configure: failed program was:" >&5
4540 cat conftest.
$ac_ext >&5
4542 echo "$ac_t""no" 1>&6
4548 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4549 # for constant arguments. Useless!
4550 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4551 echo "configure:4552: checking for working alloca.h" >&5
4552 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4553 echo $ac_n "(cached) $ac_c" 1>&6
4555 cat > conftest.
$ac_ext <<EOF
4556 #line 4557 "configure"
4557 #include "confdefs.h"
4560 char *p = alloca(2 * sizeof(int));
4563 if { (eval echo configure
:4564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4565 ac_cv_header_alloca_h
=yes
4567 echo "configure: failed program was:" >&5
4568 cat conftest.
$ac_ext >&5
4570 ac_cv_header_alloca_h
=no
4575 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4576 if test $ac_cv_header_alloca_h = yes; then
4577 cat >> confdefs.h
<<\EOF
4578 #define HAVE_ALLOCA_H 1
4583 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4584 echo "configure:4585: checking for alloca" >&5
4585 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4586 echo $ac_n "(cached) $ac_c" 1>&6
4588 cat > conftest.
$ac_ext <<EOF
4589 #line 4590 "configure"
4590 #include "confdefs.h"
4593 # define alloca __builtin_alloca
4596 # include <malloc.h>
4597 # define alloca _alloca
4600 # include <alloca.h>
4605 # ifndef alloca /* predefined by HP cc +Olibcalls */
4614 char *p = (char *) alloca(1);
4617 if { (eval echo configure
:4618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4619 ac_cv_func_alloca_works
=yes
4621 echo "configure: failed program was:" >&5
4622 cat conftest.
$ac_ext >&5
4624 ac_cv_func_alloca_works
=no
4629 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4630 if test $ac_cv_func_alloca_works = yes; then
4631 cat >> confdefs.h
<<\EOF
4632 #define HAVE_ALLOCA 1
4637 if test $ac_cv_func_alloca_works = no
; then
4638 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4639 # that cause trouble. Some versions do not even contain alloca or
4640 # contain a buggy version. If you still want to use their alloca,
4641 # use ar to extract alloca.o from them instead of compiling alloca.c.
4642 ALLOCA
=alloca.
${ac_objext}
4643 cat >> confdefs.h
<<\EOF
4648 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4649 echo "configure:4650: checking whether alloca needs Cray hooks" >&5
4650 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4651 echo $ac_n "(cached) $ac_c" 1>&6
4653 cat > conftest.
$ac_ext <<EOF
4654 #line 4655 "configure"
4655 #include "confdefs.h"
4656 #if defined(CRAY) && ! defined(CRAY2)
4663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4664 egrep "webecray" >/dev
/null
2>&1; then
4675 echo "$ac_t""$ac_cv_os_cray" 1>&6
4676 if test $ac_cv_os_cray = yes; then
4677 for ac_func
in _getb67 GETB67 getb67
; do
4678 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4679 echo "configure:4680: checking for $ac_func" >&5
4680 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4681 echo $ac_n "(cached) $ac_c" 1>&6
4683 cat > conftest.
$ac_ext <<EOF
4684 #line 4685 "configure"
4685 #include "confdefs.h"
4686 /* System header to define __stub macros and hopefully few prototypes,
4687 which can conflict with char $ac_func(); below. */
4689 /* Override any gcc2 internal prototype to avoid an error. */
4690 /* We use char because int might match the return type of a gcc2
4691 builtin and then its argument prototype would still apply. */
4696 /* The GNU C library defines this for functions which it implements
4697 to always fail with ENOSYS. Some functions are actually named
4698 something starting with __ and the normal name is an alias. */
4699 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4707 if { (eval echo configure
:4708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4709 eval "ac_cv_func_$ac_func=yes"
4711 echo "configure: failed program was:" >&5
4712 cat conftest.
$ac_ext >&5
4714 eval "ac_cv_func_$ac_func=no"
4719 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4720 echo "$ac_t""yes" 1>&6
4721 cat >> confdefs.h
<<EOF
4722 #define CRAY_STACKSEG_END $ac_func
4727 echo "$ac_t""no" 1>&6
4733 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4734 echo "configure:4735: checking stack direction for C alloca" >&5
4735 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4736 echo $ac_n "(cached) $ac_c" 1>&6
4738 if test "$cross_compiling" = yes; then
4739 ac_cv_c_stack_direction
=0
4741 cat > conftest.
$ac_ext <<EOF
4742 #line 4743 "configure"
4743 #include "confdefs.h"
4744 find_stack_direction ()
4746 static char *addr = 0;
4751 return find_stack_direction ();
4754 return (&dummy > addr) ? 1 : -1;
4758 exit (find_stack_direction() < 0);
4761 if { (eval echo configure
:4762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4763 ac_cv_c_stack_direction
=1
4765 echo "configure: failed program was:" >&5
4766 cat conftest.
$ac_ext >&5
4768 ac_cv_c_stack_direction
=-1
4775 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4776 cat >> confdefs.h
<<EOF
4777 #define STACK_DIRECTION $ac_cv_c_stack_direction
4785 # Extract the first word of "$ac_prog", so it can be a program name with args.
4786 set dummy
$ac_prog; ac_word
=$2
4787 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4788 echo "configure:4789: checking for $ac_word" >&5
4789 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
4790 echo $ac_n "(cached) $ac_c" 1>&6
4792 if test -n "$PERL"; then
4793 ac_cv_prog_PERL
="$PERL" # Let the user override the test.
4795 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4797 for ac_dir
in $ac_dummy; do
4798 test -z "$ac_dir" && ac_dir
=.
4799 if test -f $ac_dir/$ac_word; then
4800 ac_cv_prog_PERL
="$ac_prog"
4807 PERL
="$ac_cv_prog_PERL"
4808 if test -n "$PERL"; then
4809 echo "$ac_t""$PERL" 1>&6
4811 echo "$ac_t""no" 1>&6
4814 test -n "$PERL" && break
4816 test -n "$PERL" || PERL
="false"
4821 SIGNAL_HANDLER
=include
/i386-signal.h
4824 SIGNAL_HANDLER
=include
/sparc-signal.h
4827 SIGNAL_HANDLER
=include
/default-signal.h
4833 if test "${multilib}" = "yes"; then
4834 multilib_arg
="--enable-multilib"
4843 cat > confcache
<<\EOF
4844 # This file is a shell script that caches the results of configure
4845 # tests run on this system so they can be shared between configure
4846 # scripts and configure runs. It is not useful on other systems.
4847 # If it contains results you don't want to keep, you may remove or edit it.
4849 # By default, configure uses ./config.cache as the cache file,
4850 # creating it if it does not exist already. You can give configure
4851 # the --cache-file=FILE option to use a different cache file; that is
4852 # what configure does when it calls configure scripts in
4853 # subdirectories, so they share the cache.
4854 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4855 # config.status only pays attention to the cache file if you give it the
4856 # --recheck option to rerun configure.
4859 # The following way of writing the cache mishandles newlines in values,
4860 # but we know of no workaround that is simple, portable, and efficient.
4861 # So, don't put newlines in cache variables' values.
4862 # Ultrix sh set writes to stderr and can't be redirected directly,
4863 # and sets the high bit in the cache file unless we assign to the vars.
4865 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4867 # `set' does not quote correctly, so add quotes (double-quote substitution
4868 # turns \\\\ into \\, and sed turns \\ into \).
4870 -e "s/'/'\\\\''/g" \
4871 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4874 # `set' quotes correctly as required by POSIX, so do not add quotes.
4875 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4878 if cmp -s $cache_file confcache
; then
4881 if test -w $cache_file; then
4882 echo "updating cache $cache_file"
4883 cat confcache
> $cache_file
4885 echo "not updating unwritable cache $cache_file"
4890 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4892 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4893 # Let make expand exec_prefix.
4894 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4896 # Any assignment to VPATH causes Sun make to only execute
4897 # the first set of double-colon rules, so remove it if not needed.
4898 # If there is a colon in the path, we need to keep it.
4899 if test "x$srcdir" = x.
; then
4900 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
4903 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4905 DEFS
=-DHAVE_CONFIG_H
4907 # Without the "./", some shells look in PATH for config.status.
4908 : ${CONFIG_STATUS=./config.status}
4910 echo creating
$CONFIG_STATUS
4911 rm -f $CONFIG_STATUS
4912 cat > $CONFIG_STATUS <<EOF
4914 # Generated automatically by configure.
4915 # Run this file to recreate the current configuration.
4916 # This directory was configured as follows,
4917 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4919 # $0 $ac_configure_args
4921 # Compiler output produced by configure, useful for debugging
4922 # configure, is in ./config.log if it exists.
4924 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4927 case "\$ac_option" in
4928 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4929 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4930 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4931 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4932 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4934 -help | --help | --hel | --he | --h)
4935 echo "\$ac_cs_usage"; exit 0 ;;
4936 *) echo "\$ac_cs_usage"; exit 1 ;;
4940 ac_given_srcdir=$srcdir
4941 ac_given_INSTALL="$INSTALL"
4943 trap 'rm -fr `echo "Makefile libgcj.spec testsuite/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4945 cat >> $CONFIG_STATUS <<EOF
4947 # Protect against being on the right side of a sed subst in config.status.
4948 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4949 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4953 s%@CFLAGS@%$CFLAGS%g
4954 s%@CPPFLAGS@%$CPPFLAGS%g
4955 s%@CXXFLAGS@%$CXXFLAGS%g
4956 s%@FFLAGS@%$FFLAGS%g
4958 s%@LDFLAGS@%$LDFLAGS%g
4960 s%@exec_prefix@%$exec_prefix%g
4961 s%@prefix@%$prefix%g
4962 s%@program_transform_name@%$program_transform_name%g
4963 s%@bindir@%$bindir%g
4964 s%@sbindir@%$sbindir%g
4965 s%@libexecdir@%$libexecdir%g
4966 s%@datadir@%$datadir%g
4967 s%@sysconfdir@%$sysconfdir%g
4968 s%@sharedstatedir@%$sharedstatedir%g
4969 s%@localstatedir@%$localstatedir%g
4970 s%@libdir@%$libdir%g
4971 s%@includedir@%$includedir%g
4972 s%@oldincludedir@%$oldincludedir%g
4973 s%@infodir@%$infodir%g
4974 s%@mandir@%$mandir%g
4976 s%@host_alias@%$host_alias%g
4977 s%@host_cpu@%$host_cpu%g
4978 s%@host_vendor@%$host_vendor%g
4979 s%@host_os@%$host_os%g
4980 s%@target@%$target%g
4981 s%@target_alias@%$target_alias%g
4982 s%@target_cpu@%$target_cpu%g
4983 s%@target_vendor@%$target_vendor%g
4984 s%@target_os@%$target_os%g
4986 s%@build_alias@%$build_alias%g
4987 s%@build_cpu@%$build_cpu%g
4988 s%@build_vendor@%$build_vendor%g
4989 s%@build_os@%$build_os%g
4990 s%@libgcj_basedir@%$libgcj_basedir%g
4991 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4992 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4993 s%@INSTALL_DATA@%$INSTALL_DATA%g
4994 s%@PACKAGE@%$PACKAGE%g
4995 s%@VERSION@%$VERSION%g
4996 s%@ACLOCAL@%$ACLOCAL%g
4997 s%@AUTOCONF@%$AUTOCONF%g
4998 s%@AUTOMAKE@%$AUTOMAKE%g
4999 s%@AUTOHEADER@%$AUTOHEADER%g
5000 s%@MAKEINFO@%$MAKEINFO%g
5001 s%@SET_MAKE@%$SET_MAKE%g
5006 s%@RANLIB@%$RANLIB%g
5007 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5008 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5010 s%@EXEEXT@%$EXEEXT%g
5011 s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
5012 s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
5013 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
5016 s%@USE_SYMBOL_UNDERSCORE@%$USE_SYMBOL_UNDERSCORE%g
5018 s%@DLLTOOL@%$DLLTOOL%g
5019 s%@LIBTOOL@%$LIBTOOL%g
5020 s%@COMPPATH@%$COMPPATH%g
5021 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
5022 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
5024 s%@SYSTEMSPEC@%$SYSTEMSPEC%g
5025 s%@ZLIBSPEC@%$ZLIBSPEC%g
5026 s%@GCLIBS@%$GCLIBS%g
5027 s%@GCINCS@%$GCINCS%g
5028 s%@GCDEPS@%$GCDEPS%g
5029 s%@GCOBJS@%$GCOBJS%g
5030 s%@GCSPEC@%$GCSPEC%g
5031 s%@THREADLIBS@%$THREADLIBS%g
5032 s%@THREADINCS@%$THREADINCS%g
5033 s%@THREADDEPS@%$THREADDEPS%g
5034 s%@THREADOBJS@%$THREADOBJS%g
5035 s%@THREADSPEC@%$THREADSPEC%g
5036 s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
5037 s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
5041 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
5042 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
5043 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
5044 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
5045 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
5046 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
5047 s%@EH_COMMON_INCLUDE@%$EH_COMMON_INCLUDE%g
5048 s%@AM_RUNTESTFLAGS@%$AM_RUNTESTFLAGS%g
5049 s%@ALLOCA@%$ALLOCA%g
5056 cat >> $CONFIG_STATUS <<\EOF
5058 # Split the substitutions into bite-sized pieces for seds with
5059 # small command number limits, like on Digital OSF/1 and HP-UX.
5060 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5061 ac_file
=1 # Number of current file.
5062 ac_beg
=1 # First line for current file.
5063 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5066 while $ac_more_lines; do
5067 if test $ac_beg -gt 1; then
5068 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5070 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5072 if test ! -s conftest.s
$ac_file; then
5074 rm -f conftest.s
$ac_file
5076 if test -z "$ac_sed_cmds"; then
5077 ac_sed_cmds
="sed -f conftest.s$ac_file"
5079 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5081 ac_file
=`expr $ac_file + 1`
5083 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5086 if test -z "$ac_sed_cmds"; then
5091 cat >> $CONFIG_STATUS <<EOF
5093 CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.spec testsuite/Makefile"}
5095 cat >> $CONFIG_STATUS <<\EOF
5096 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5097 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5099 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5100 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5101 *) ac_file_in
="${ac_file}.in" ;;
5104 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5106 # Remove last slash and all that follows it. Not all systems have dirname.
5107 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5108 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5109 # The file is in a subdirectory.
5110 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5111 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5112 # A "../" for each directory in $ac_dir_suffix.
5113 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5115 ac_dir_suffix
= ac_dots
=
5118 case "$ac_given_srcdir" in
5120 if test -z "$ac_dots"; then top_srcdir
=.
5121 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5122 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5124 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5125 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5128 case "$ac_given_INSTALL" in
5129 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5130 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5133 echo creating
"$ac_file"
5135 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5137 *Makefile
*) ac_comsub
="1i\\
5138 # $configure_input" ;;
5142 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5144 s%@configure_input@%$configure_input%g
5145 s%@srcdir@%$srcdir%g
5146 s%@top_srcdir@%$top_srcdir%g
5147 s%@INSTALL@%$INSTALL%g
5148 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5152 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5153 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5155 # ac_d sets the value in "#define NAME VALUE" lines.
5156 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5157 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5160 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5161 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5162 ac_uB
='\([ ]\)%\1#\2define\3'
5165 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5166 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5167 ac_eB
='$%\1#\2define\3'
5171 if test "${CONFIG_HEADERS+set}" != set; then
5173 cat >> $CONFIG_STATUS <<EOF
5174 CONFIG_HEADERS="include/config.h"
5176 cat >> $CONFIG_STATUS <<\EOF
5178 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5179 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5181 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5182 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5183 *) ac_file_in
="${ac_file}.in" ;;
5186 echo creating
$ac_file
5188 rm -f conftest.frag conftest.
in conftest.out
5189 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5190 cat $ac_file_inputs > conftest.
in
5194 # Transform confdefs.h into a sed script conftest.vals that substitutes
5195 # the proper values into config.h.in to produce config.h. And first:
5196 # Protect against being on the right side of a sed subst in config.status.
5197 # Protect against being in an unquoted here document in config.status.
5199 cat > conftest.hdr
<<\EOF
5202 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5206 sed -n -f conftest.hdr confdefs.h > conftest.vals
5209 # This sed command replaces #undef with comments. This is necessary, for
5210 # example, in the case of _POSIX_SOURCE, which is predefined and required
5211 # on some systems where configure will not decide to define it.
5212 cat >> conftest.vals <<\EOF
5213 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5216 # Break up conftest.vals because some shells have a limit on
5217 # the size of here documents, and old seds have small limits too.
5222 ac_lines=`grep -c . conftest.vals
`
5223 # grep -c gives empty output for an empty file on some AIX systems.
5224 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5225 # Write a limited-size here document to conftest.frag.
5226 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5227 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5229 sed -f conftest.frag conftest.in > conftest.out
5231 mv conftest.out conftest.in
5233 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5235 mv conftest.tail conftest.vals
5239 cat >> $CONFIG_STATUS <<\EOF
5240 rm -f conftest.frag conftest.h
5241 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5242 cat conftest.in >> conftest.h
5244 if cmp -s $ac_file conftest.h 2>/dev/null; then
5245 echo "$ac_file is unchanged"
5248 # Remove last slash and all that follows it. Not all systems have dirname.
5249 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5250 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5251 # The file is in a subdirectory.
5252 test ! -d "$ac_dir" && mkdir "$ac_dir"
5255 mv conftest.h $ac_file
5261 cat >> $CONFIG_STATUS <<EOF
5262 ac_sources="java/io/$FILE_DESCRIPTOR java/lang/${PROCESS}Process.java java/lang/nat${PROCESS}Process.cc include/$GCHDR include/$THREADH $SIGNAL_HANDLER"
5263 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"
5266 cat >> $CONFIG_STATUS <<\EOF
5267 srcdir=$ac_given_srcdir
5268 while test -n "$ac_sources"; do
5269 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5270 set $ac_sources; ac_source=$1; shift; ac_sources=$*
5272 echo "linking $srcdir/$ac_source to $ac_dest"
5274 if test ! -r $srcdir/$ac_source; then
5275 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
5279 # Make relative symlinks.
5280 # Remove last slash and all that follows it. Not all systems have dirname.
5281 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
5282 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
5283 # The dest file is in a subdirectory.
5284 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
5285 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
5286 # A "../" for each directory in $ac_dest_dir_suffix.
5287 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
5289 ac_dest_dir_suffix= ac_dots=
5293 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
5294 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
5297 # Make a symlink if possible; otherwise try a hard link.
5298 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
5299 ln $srcdir/$ac_source $ac_dest; then :
5301 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
5305 cat >> $CONFIG_STATUS <<EOF
5310 with_multisubdir=${with_multisubdir}
5311 ac_configure_args="${multilib_arg} ${ac_configure_args}"
5312 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
5313 libgcj_basedir=${libgcj_basedir}
5318 cat >> $CONFIG_STATUS <<\EOF
5319 test -z "$CONFIG_HEADERS" || echo timestamp > include/stamp-h
5320 if test -n "$CONFIG_FILES"; then
5321 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
5325 chmod +x $CONFIG_STATUS
5326 rm -fr confdefs* $ac_clean_files
5327 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1