Add D30V options
[official-gcc.git] / libjava / configure
blob3cb30d46490541042b5d6d8c8c312587099f6f76
1 #! /bin/sh
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.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --with-target-subdir=SUBDIR
16 configuring in a subdirectory"
17 ac_help="$ac_help
18 --with-cross-host=HOST configuring with a cross compiler"
19 ac_help="$ac_help
20 --enable-multilib build many library versions (default)"
21 ac_help="$ac_help
22 --enable-maintainer-mode enable make rules and dependencies not useful
23 (and sometimes confusing) to the casual installer"
24 ac_help="$ac_help
25 --enable-shared[=PKGS] build shared libraries [default=yes]"
26 ac_help="$ac_help
27 --enable-static[=PKGS] build static libraries [default=yes]"
28 ac_help="$ac_help
29 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
30 ac_help="$ac_help
31 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
32 ac_help="$ac_help
33 --disable-libtool-lock avoid locking (might break parallel builds)"
34 ac_help="$ac_help
35 --enable-fast-character prefer speed over size for Character"
36 ac_help="$ac_help
37 --disable-getenv-properties
38 don't set system properties from GCJ_PROPERTIES"
39 ac_help="$ac_help
40 --enable-libgcj-debug enable runtime debugging code"
41 ac_help="$ac_help
42 --enable-interpreter enable interpreter"
43 ac_help="$ac_help
44 --enable-sjlj-exceptions use setjmp/longjmp exceptions"
45 ac_help="$ac_help
46 --disable-java-net disable java.net"
47 ac_help="$ac_help
48 --disable-jvmpi disable JVMPI support"
49 ac_help="$ac_help
50 --with-ecos enable runtime eCos target support"
51 ac_help="$ac_help
52 --with-system-zlib use installed libz"
53 ac_help="$ac_help
54 --enable-java-gc=TYPE choose garbage collector [boehm]"
55 ac_help="$ac_help
56 --enable-threads=TYPE choose threading package"
58 # Initialize some variables set by options.
59 # The variables have the same names as the options, with
60 # dashes changed to underlines.
61 build=NONE
62 cache_file=./config.cache
63 exec_prefix=NONE
64 host=NONE
65 no_create=
66 nonopt=NONE
67 no_recursion=
68 prefix=NONE
69 program_prefix=NONE
70 program_suffix=NONE
71 program_transform_name=s,x,x,
72 silent=
73 site=
74 sitefile=
75 srcdir=
76 target=NONE
77 verbose=
78 x_includes=NONE
79 x_libraries=NONE
80 bindir='${exec_prefix}/bin'
81 sbindir='${exec_prefix}/sbin'
82 libexecdir='${exec_prefix}/libexec'
83 datadir='${prefix}/share'
84 sysconfdir='${prefix}/etc'
85 sharedstatedir='${prefix}/com'
86 localstatedir='${prefix}/var'
87 libdir='${exec_prefix}/lib'
88 includedir='${prefix}/include'
89 oldincludedir='/usr/include'
90 infodir='${prefix}/info'
91 mandir='${prefix}/man'
93 # Initialize some other variables.
94 subdirs=
95 MFLAGS= MAKEFLAGS=
96 SHELL=${CONFIG_SHELL-/bin/sh}
97 # Maximum number of lines to put in a shell here document.
98 ac_max_here_lines=12
100 ac_prev=
101 for ac_option
104 # If the previous option needs an argument, assign it.
105 if test -n "$ac_prev"; then
106 eval "$ac_prev=\$ac_option"
107 ac_prev=
108 continue
111 case "$ac_option" in
112 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
113 *) ac_optarg= ;;
114 esac
116 # Accept the important Cygnus configure options, so we can diagnose typos.
118 case "$ac_option" in
120 -bindir | --bindir | --bindi | --bind | --bin | --bi)
121 ac_prev=bindir ;;
122 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
123 bindir="$ac_optarg" ;;
125 -build | --build | --buil | --bui | --bu)
126 ac_prev=build ;;
127 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
128 build="$ac_optarg" ;;
130 -cache-file | --cache-file | --cache-fil | --cache-fi \
131 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
132 ac_prev=cache_file ;;
133 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
134 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
135 cache_file="$ac_optarg" ;;
137 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
138 ac_prev=datadir ;;
139 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
140 | --da=*)
141 datadir="$ac_optarg" ;;
143 -disable-* | --disable-*)
144 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
145 # Reject names that are not valid shell variable names.
146 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
147 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
149 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
150 eval "enable_${ac_feature}=no" ;;
152 -enable-* | --enable-*)
153 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
154 # Reject names that are not valid shell variable names.
155 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
156 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
158 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
159 case "$ac_option" in
160 *=*) ;;
161 *) ac_optarg=yes ;;
162 esac
163 eval "enable_${ac_feature}='$ac_optarg'" ;;
165 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
166 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
167 | --exec | --exe | --ex)
168 ac_prev=exec_prefix ;;
169 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
170 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
171 | --exec=* | --exe=* | --ex=*)
172 exec_prefix="$ac_optarg" ;;
174 -gas | --gas | --ga | --g)
175 # Obsolete; use --with-gas.
176 with_gas=yes ;;
178 -help | --help | --hel | --he)
179 # Omit some internal or obsolete options to make the list less imposing.
180 # This message is too long to be a string in the A/UX 3.1 sh.
181 cat << EOF
182 Usage: configure [options] [host]
183 Options: [defaults in brackets after descriptions]
184 Configuration:
185 --cache-file=FILE cache test results in FILE
186 --help print this message
187 --no-create do not create output files
188 --quiet, --silent do not print \`checking...' messages
189 --site-file=FILE use FILE as the site file
190 --version print the version of autoconf that created configure
191 Directory and file names:
192 --prefix=PREFIX install architecture-independent files in PREFIX
193 [$ac_default_prefix]
194 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
195 [same as prefix]
196 --bindir=DIR user executables in DIR [EPREFIX/bin]
197 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
198 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
199 --datadir=DIR read-only architecture-independent data in DIR
200 [PREFIX/share]
201 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
202 --sharedstatedir=DIR modifiable architecture-independent data in DIR
203 [PREFIX/com]
204 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
205 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
206 --includedir=DIR C header files in DIR [PREFIX/include]
207 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
208 --infodir=DIR info documentation in DIR [PREFIX/info]
209 --mandir=DIR man documentation in DIR [PREFIX/man]
210 --srcdir=DIR find the sources in DIR [configure dir or ..]
211 --program-prefix=PREFIX prepend PREFIX to installed program names
212 --program-suffix=SUFFIX append SUFFIX to installed program names
213 --program-transform-name=PROGRAM
214 run sed PROGRAM on installed program names
216 cat << EOF
217 Host type:
218 --build=BUILD configure for building on BUILD [BUILD=HOST]
219 --host=HOST configure for HOST [guessed]
220 --target=TARGET configure for TARGET [TARGET=HOST]
221 Features and packages:
222 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
223 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
224 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
225 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
226 --x-includes=DIR X include files are in DIR
227 --x-libraries=DIR X library files are in DIR
229 if test -n "$ac_help"; then
230 echo "--enable and --with options recognized:$ac_help"
232 exit 0 ;;
234 -host | --host | --hos | --ho)
235 ac_prev=host ;;
236 -host=* | --host=* | --hos=* | --ho=*)
237 host="$ac_optarg" ;;
239 -includedir | --includedir | --includedi | --included | --include \
240 | --includ | --inclu | --incl | --inc)
241 ac_prev=includedir ;;
242 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
243 | --includ=* | --inclu=* | --incl=* | --inc=*)
244 includedir="$ac_optarg" ;;
246 -infodir | --infodir | --infodi | --infod | --info | --inf)
247 ac_prev=infodir ;;
248 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
249 infodir="$ac_optarg" ;;
251 -libdir | --libdir | --libdi | --libd)
252 ac_prev=libdir ;;
253 -libdir=* | --libdir=* | --libdi=* | --libd=*)
254 libdir="$ac_optarg" ;;
256 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
257 | --libexe | --libex | --libe)
258 ac_prev=libexecdir ;;
259 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
260 | --libexe=* | --libex=* | --libe=*)
261 libexecdir="$ac_optarg" ;;
263 -localstatedir | --localstatedir | --localstatedi | --localstated \
264 | --localstate | --localstat | --localsta | --localst \
265 | --locals | --local | --loca | --loc | --lo)
266 ac_prev=localstatedir ;;
267 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
268 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
269 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
270 localstatedir="$ac_optarg" ;;
272 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
273 ac_prev=mandir ;;
274 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
275 mandir="$ac_optarg" ;;
277 -nfp | --nfp | --nf)
278 # Obsolete; use --without-fp.
279 with_fp=no ;;
281 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
282 | --no-cr | --no-c)
283 no_create=yes ;;
285 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
286 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
287 no_recursion=yes ;;
289 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
290 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
291 | --oldin | --oldi | --old | --ol | --o)
292 ac_prev=oldincludedir ;;
293 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
294 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
295 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
296 oldincludedir="$ac_optarg" ;;
298 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
299 ac_prev=prefix ;;
300 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
301 prefix="$ac_optarg" ;;
303 -program-prefix | --program-prefix | --program-prefi | --program-pref \
304 | --program-pre | --program-pr | --program-p)
305 ac_prev=program_prefix ;;
306 -program-prefix=* | --program-prefix=* | --program-prefi=* \
307 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
308 program_prefix="$ac_optarg" ;;
310 -program-suffix | --program-suffix | --program-suffi | --program-suff \
311 | --program-suf | --program-su | --program-s)
312 ac_prev=program_suffix ;;
313 -program-suffix=* | --program-suffix=* | --program-suffi=* \
314 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
315 program_suffix="$ac_optarg" ;;
317 -program-transform-name | --program-transform-name \
318 | --program-transform-nam | --program-transform-na \
319 | --program-transform-n | --program-transform- \
320 | --program-transform | --program-transfor \
321 | --program-transfo | --program-transf \
322 | --program-trans | --program-tran \
323 | --progr-tra | --program-tr | --program-t)
324 ac_prev=program_transform_name ;;
325 -program-transform-name=* | --program-transform-name=* \
326 | --program-transform-nam=* | --program-transform-na=* \
327 | --program-transform-n=* | --program-transform-=* \
328 | --program-transform=* | --program-transfor=* \
329 | --program-transfo=* | --program-transf=* \
330 | --program-trans=* | --program-tran=* \
331 | --progr-tra=* | --program-tr=* | --program-t=*)
332 program_transform_name="$ac_optarg" ;;
334 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
335 | -silent | --silent | --silen | --sile | --sil)
336 silent=yes ;;
338 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
339 ac_prev=sbindir ;;
340 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
341 | --sbi=* | --sb=*)
342 sbindir="$ac_optarg" ;;
344 -sharedstatedir | --sharedstatedir | --sharedstatedi \
345 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
346 | --sharedst | --shareds | --shared | --share | --shar \
347 | --sha | --sh)
348 ac_prev=sharedstatedir ;;
349 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
350 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
351 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
352 | --sha=* | --sh=*)
353 sharedstatedir="$ac_optarg" ;;
355 -site | --site | --sit)
356 ac_prev=site ;;
357 -site=* | --site=* | --sit=*)
358 site="$ac_optarg" ;;
360 -site-file | --site-file | --site-fil | --site-fi | --site-f)
361 ac_prev=sitefile ;;
362 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
363 sitefile="$ac_optarg" ;;
365 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
366 ac_prev=srcdir ;;
367 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
368 srcdir="$ac_optarg" ;;
370 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
371 | --syscon | --sysco | --sysc | --sys | --sy)
372 ac_prev=sysconfdir ;;
373 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
374 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
375 sysconfdir="$ac_optarg" ;;
377 -target | --target | --targe | --targ | --tar | --ta | --t)
378 ac_prev=target ;;
379 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
380 target="$ac_optarg" ;;
382 -v | -verbose | --verbose | --verbos | --verbo | --verb)
383 verbose=yes ;;
385 -version | --version | --versio | --versi | --vers)
386 echo "configure generated by autoconf version 2.13"
387 exit 0 ;;
389 -with-* | --with-*)
390 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
391 # Reject names that are not valid shell variable names.
392 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
393 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
395 ac_package=`echo $ac_package| sed 's/-/_/g'`
396 case "$ac_option" in
397 *=*) ;;
398 *) ac_optarg=yes ;;
399 esac
400 eval "with_${ac_package}='$ac_optarg'" ;;
402 -without-* | --without-*)
403 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
404 # Reject names that are not valid shell variable names.
405 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
406 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
408 ac_package=`echo $ac_package| sed 's/-/_/g'`
409 eval "with_${ac_package}=no" ;;
411 --x)
412 # Obsolete; use --with-x.
413 with_x=yes ;;
415 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
416 | --x-incl | --x-inc | --x-in | --x-i)
417 ac_prev=x_includes ;;
418 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
419 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
420 x_includes="$ac_optarg" ;;
422 -x-libraries | --x-libraries | --x-librarie | --x-librari \
423 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
424 ac_prev=x_libraries ;;
425 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
426 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
427 x_libraries="$ac_optarg" ;;
429 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
433 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
434 echo "configure: warning: $ac_option: invalid host type" 1>&2
436 if test "x$nonopt" != xNONE; then
437 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
439 nonopt="$ac_option"
442 esac
443 done
445 if test -n "$ac_prev"; then
446 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
449 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
451 # File descriptor usage:
452 # 0 standard input
453 # 1 file creation
454 # 2 errors and warnings
455 # 3 some systems may open it to /dev/tty
456 # 4 used on the Kubota Titan
457 # 6 checking for... messages and results
458 # 5 compiler messages saved in config.log
459 if test "$silent" = yes; then
460 exec 6>/dev/null
461 else
462 exec 6>&1
464 exec 5>./config.log
466 echo "\
467 This file contains any messages produced by compilers while
468 running configure, to aid debugging if configure makes a mistake.
469 " 1>&5
471 # Strip out --no-create and --no-recursion so they do not pile up.
472 # Also quote any args containing shell metacharacters.
473 ac_configure_args=
474 for ac_arg
476 case "$ac_arg" in
477 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
478 | --no-cr | --no-c) ;;
479 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
480 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
481 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
482 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
483 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
484 esac
485 done
487 # NLS nuisances.
488 # Only set these to C if already set. These must not be set unconditionally
489 # because not all systems understand e.g. LANG=C (notably SCO).
490 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
491 # Non-C LC_CTYPE values break the ctype check.
492 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
493 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
494 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
495 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
497 # confdefs.h avoids OS command line length limits that DEFS can exceed.
498 rm -rf conftest* confdefs.h
499 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
500 echo > confdefs.h
502 # A filename unique to this package, relative to the directory that
503 # configure is in, which we can look for to find out if srcdir is correct.
504 ac_unique_file=java/lang/System.java
506 # Find the source files, if location was not specified.
507 if test -z "$srcdir"; then
508 ac_srcdir_defaulted=yes
509 # Try the directory containing this script, then its parent.
510 ac_prog=$0
511 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
512 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
513 srcdir=$ac_confdir
514 if test ! -r $srcdir/$ac_unique_file; then
515 srcdir=..
517 else
518 ac_srcdir_defaulted=no
520 if test ! -r $srcdir/$ac_unique_file; then
521 if test "$ac_srcdir_defaulted" = yes; then
522 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
523 else
524 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
527 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
529 # Prefer explicitly selected file to automatically selected ones.
530 if test -z "$sitefile"; then
531 if test -z "$CONFIG_SITE"; then
532 if test "x$prefix" != xNONE; then
533 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
534 else
535 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
538 else
539 CONFIG_SITE="$sitefile"
541 for ac_site_file in $CONFIG_SITE; do
542 if test -r "$ac_site_file"; then
543 echo "loading site script $ac_site_file"
544 . "$ac_site_file"
546 done
548 if test -r "$cache_file"; then
549 echo "loading cache $cache_file"
550 . $cache_file
551 else
552 echo "creating cache $cache_file"
553 > $cache_file
556 ac_ext=c
557 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
558 ac_cpp='$CPP $CPPFLAGS'
559 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
560 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
561 cross_compiling=$ac_cv_prog_cc_cross
563 ac_exeext=
564 ac_objext=o
565 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
566 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
567 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
568 ac_n= ac_c='
569 ' ac_t=' '
570 else
571 ac_n=-n ac_c= ac_t=
573 else
574 ac_n= ac_c='\c' ac_t=
579 ac_aux_dir=
580 for ac_dir in .. $srcdir/..; do
581 if test -f $ac_dir/install-sh; then
582 ac_aux_dir=$ac_dir
583 ac_install_sh="$ac_aux_dir/install-sh -c"
584 break
585 elif test -f $ac_dir/install.sh; then
586 ac_aux_dir=$ac_dir
587 ac_install_sh="$ac_aux_dir/install.sh -c"
588 break
590 done
591 if test -z "$ac_aux_dir"; then
592 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
594 ac_config_guess=$ac_aux_dir/config.guess
595 ac_config_sub=$ac_aux_dir/config.sub
596 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
600 # Do some error checking and defaulting for the host and target type.
601 # The inputs are:
602 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
604 # The rules are:
605 # 1. You are not allowed to specify --host, --target, and nonopt at the
606 # same time.
607 # 2. Host defaults to nonopt.
608 # 3. If nonopt is not specified, then host defaults to the current host,
609 # as determined by config.guess.
610 # 4. Target and build default to nonopt.
611 # 5. If nonopt is not specified, then target and build default to host.
613 # The aliases save the names the user supplied, while $host etc.
614 # will get canonicalized.
615 case $host---$target---$nonopt in
616 NONE---*---* | *---NONE---* | *---*---NONE) ;;
617 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
618 esac
621 # Make sure we can run config.sub.
622 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
623 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
626 echo $ac_n "checking host system type""... $ac_c" 1>&6
627 echo "configure:628: checking host system type" >&5
629 host_alias=$host
630 case "$host_alias" in
631 NONE)
632 case $nonopt in
633 NONE)
634 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
635 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
636 fi ;;
637 *) host_alias=$nonopt ;;
638 esac ;;
639 esac
641 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
642 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
643 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
644 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
645 echo "$ac_t""$host" 1>&6
647 echo $ac_n "checking target system type""... $ac_c" 1>&6
648 echo "configure:649: checking target system type" >&5
650 target_alias=$target
651 case "$target_alias" in
652 NONE)
653 case $nonopt in
654 NONE) target_alias=$host_alias ;;
655 *) target_alias=$nonopt ;;
656 esac ;;
657 esac
659 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
660 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
661 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
662 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
663 echo "$ac_t""$target" 1>&6
665 echo $ac_n "checking build system type""... $ac_c" 1>&6
666 echo "configure:667: checking build system type" >&5
668 build_alias=$build
669 case "$build_alias" in
670 NONE)
671 case $nonopt in
672 NONE) build_alias=$host_alias ;;
673 *) build_alias=$nonopt ;;
674 esac ;;
675 esac
677 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
678 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
679 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
680 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
681 echo "$ac_t""$build" 1>&6
683 test "$host_alias" != "$target_alias" &&
684 test "$program_prefix$program_suffix$program_transform_name" = \
685 NONENONEs,x,x, &&
686 program_prefix=${target_alias}-
689 # Check whether --with-target-subdir or --without-target-subdir was given.
690 if test "${with_target_subdir+set}" = set; then
691 withval="$with_target_subdir"
695 # Check whether --with-cross-host or --without-cross-host was given.
696 if test "${with_cross_host+set}" = set; then
697 withval="$with_cross_host"
702 # Find a good install program. We prefer a C program (faster),
703 # so one script is as good as another. But avoid the broken or
704 # incompatible versions:
705 # SysV /etc/install, /usr/sbin/install
706 # SunOS /usr/etc/install
707 # IRIX /sbin/install
708 # AIX /bin/install
709 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
710 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
711 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
712 # ./install, which can be erroneously created by make from ./install.sh.
713 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
714 echo "configure:715: checking for a BSD compatible install" >&5
715 if test -z "$INSTALL"; then
716 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
717 echo $ac_n "(cached) $ac_c" 1>&6
718 else
719 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
720 for ac_dir in $PATH; do
721 # Account for people who put trailing slashes in PATH elements.
722 case "$ac_dir/" in
723 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
725 # OSF1 and SCO ODT 3.0 have their own names for install.
726 # Don't use installbsd from OSF since it installs stuff as root
727 # by default.
728 for ac_prog in ginstall scoinst install; do
729 if test -f $ac_dir/$ac_prog; then
730 if test $ac_prog = install &&
731 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
732 # AIX install. It has an incompatible calling convention.
734 else
735 ac_cv_path_install="$ac_dir/$ac_prog -c"
736 break 2
739 done
741 esac
742 done
743 IFS="$ac_save_IFS"
746 if test "${ac_cv_path_install+set}" = set; then
747 INSTALL="$ac_cv_path_install"
748 else
749 # As a last resort, use the slow shell script. We don't cache a
750 # path for INSTALL within a source directory, because that will
751 # break other packages using the cache if that directory is
752 # removed, or if the path is relative.
753 INSTALL="$ac_install_sh"
756 echo "$ac_t""$INSTALL" 1>&6
758 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
759 # It thinks the first close brace ends the variable substitution.
760 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
762 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
764 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
766 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
767 echo "configure:768: checking whether build environment is sane" >&5
768 # Just in case
769 sleep 1
770 echo timestamp > conftestfile
771 # Do `set' in a subshell so we don't clobber the current shell's
772 # arguments. Must try -L first in case configure is actually a
773 # symlink; some systems play weird games with the mod time of symlinks
774 # (eg FreeBSD returns the mod time of the symlink's containing
775 # directory).
776 if (
777 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
778 if test "$*" = "X"; then
779 # -L didn't work.
780 set X `ls -t $srcdir/configure conftestfile`
782 if test "$*" != "X $srcdir/configure conftestfile" \
783 && test "$*" != "X conftestfile $srcdir/configure"; then
785 # If neither matched, then we have a broken ls. This can happen
786 # if, for instance, CONFIG_SHELL is bash and it inherits a
787 # broken ls alias from the environment. This has actually
788 # happened. Such a system could not be considered "sane".
789 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
790 alias in your environment" 1>&2; exit 1; }
793 test "$2" = conftestfile
795 then
796 # Ok.
798 else
799 { echo "configure: error: newly created file is older than distributed files!
800 Check your system clock" 1>&2; exit 1; }
802 rm -f conftest*
803 echo "$ac_t""yes" 1>&6
804 if test "$program_transform_name" = s,x,x,; then
805 program_transform_name=
806 else
807 # Double any \ or $. echo might interpret backslashes.
808 cat <<\EOF_SED > conftestsed
809 s,\\,\\\\,g; s,\$,$$,g
810 EOF_SED
811 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
812 rm -f conftestsed
814 test "$program_prefix" != NONE &&
815 program_transform_name="s,^,${program_prefix},; $program_transform_name"
816 # Use a double $ so make ignores it.
817 test "$program_suffix" != NONE &&
818 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
820 # sed with no file args requires a program.
821 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
823 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
824 echo "configure:825: checking whether ${MAKE-make} sets \${MAKE}" >&5
825 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
826 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
827 echo $ac_n "(cached) $ac_c" 1>&6
828 else
829 cat > conftestmake <<\EOF
830 all:
831 @echo 'ac_maketemp="${MAKE}"'
833 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
834 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
835 if test -n "$ac_maketemp"; then
836 eval ac_cv_prog_make_${ac_make}_set=yes
837 else
838 eval ac_cv_prog_make_${ac_make}_set=no
840 rm -f conftestmake
842 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
843 echo "$ac_t""yes" 1>&6
844 SET_MAKE=
845 else
846 echo "$ac_t""no" 1>&6
847 SET_MAKE="MAKE=${MAKE-make}"
850 if test $host != $build; then
851 ac_tool_prefix=${host_alias}-
852 else
853 ac_tool_prefix=
856 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
857 echo "configure:858: checking for Cygwin environment" >&5
858 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
859 echo $ac_n "(cached) $ac_c" 1>&6
860 else
861 cat > conftest.$ac_ext <<EOF
862 #line 863 "configure"
863 #include "confdefs.h"
865 int main() {
867 #ifndef __CYGWIN__
868 #define __CYGWIN__ __CYGWIN32__
869 #endif
870 return __CYGWIN__;
871 ; return 0; }
873 if { (eval echo configure:874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
874 rm -rf conftest*
875 ac_cv_cygwin=yes
876 else
877 echo "configure: failed program was:" >&5
878 cat conftest.$ac_ext >&5
879 rm -rf conftest*
880 ac_cv_cygwin=no
882 rm -f conftest*
883 rm -f conftest*
886 echo "$ac_t""$ac_cv_cygwin" 1>&6
887 CYGWIN=
888 test "$ac_cv_cygwin" = yes && CYGWIN=yes
889 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
890 echo "configure:891: checking for mingw32 environment" >&5
891 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
892 echo $ac_n "(cached) $ac_c" 1>&6
893 else
894 cat > conftest.$ac_ext <<EOF
895 #line 896 "configure"
896 #include "confdefs.h"
898 int main() {
899 return __MINGW32__;
900 ; return 0; }
902 if { (eval echo configure:903: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
903 rm -rf conftest*
904 ac_cv_mingw32=yes
905 else
906 echo "configure: failed program was:" >&5
907 cat conftest.$ac_ext >&5
908 rm -rf conftest*
909 ac_cv_mingw32=no
911 rm -f conftest*
912 rm -f conftest*
915 echo "$ac_t""$ac_cv_mingw32" 1>&6
916 MINGW32=
917 test "$ac_cv_mingw32" = yes && MINGW32=yes
919 # Check whether --enable-multilib or --disable-multilib was given.
920 if test "${enable_multilib+set}" = set; then
921 enableval="$enable_multilib"
922 case "${enableval}" in
923 yes) multilib=yes ;;
924 no) multilib=no ;;
925 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
926 esac
927 else
928 multilib=yes
932 if test "${srcdir}" = "."; then
933 if test "${with_target_subdir}" != "."; then
934 libgcj_basedir="${srcdir}/${with_multisrctop}../."
935 else
936 libgcj_basedir="${srcdir}/${with_multisrctop}."
938 else
939 libgcj_basedir="${srcdir}/."
944 # Make sure we can run config.sub.
945 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
946 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
949 echo $ac_n "checking host system type""... $ac_c" 1>&6
950 echo "configure:951: checking host system type" >&5
952 host_alias=$host
953 case "$host_alias" in
954 NONE)
955 case $nonopt in
956 NONE)
957 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
958 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
959 fi ;;
960 *) host_alias=$nonopt ;;
961 esac ;;
962 esac
964 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
965 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
966 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
967 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
968 echo "$ac_t""$host" 1>&6
971 version=0.0.7
973 PACKAGE=libjava
975 VERSION=$version
977 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
978 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
980 cat >> confdefs.h <<EOF
981 #define PACKAGE "$PACKAGE"
984 cat >> confdefs.h <<EOF
985 #define VERSION "$VERSION"
990 missing_dir=`cd $ac_aux_dir && pwd`
991 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
992 echo "configure:993: checking for working aclocal" >&5
993 # Run test in a subshell; some versions of sh will print an error if
994 # an executable is not found, even if stderr is redirected.
995 # Redirect stdin to placate older versions of autoconf. Sigh.
996 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
997 ACLOCAL=aclocal
998 echo "$ac_t""found" 1>&6
999 else
1000 ACLOCAL="$missing_dir/missing aclocal"
1001 echo "$ac_t""missing" 1>&6
1004 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1005 echo "configure:1006: checking for working autoconf" >&5
1006 # Run test in a subshell; some versions of sh will print an error if
1007 # an executable is not found, even if stderr is redirected.
1008 # Redirect stdin to placate older versions of autoconf. Sigh.
1009 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1010 AUTOCONF=autoconf
1011 echo "$ac_t""found" 1>&6
1012 else
1013 AUTOCONF="$missing_dir/missing autoconf"
1014 echo "$ac_t""missing" 1>&6
1017 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1018 echo "configure:1019: checking for working automake" >&5
1019 # Run test in a subshell; some versions of sh will print an error if
1020 # an executable is not found, even if stderr is redirected.
1021 # Redirect stdin to placate older versions of autoconf. Sigh.
1022 if (automake --version) < /dev/null > /dev/null 2>&1; then
1023 AUTOMAKE=automake
1024 echo "$ac_t""found" 1>&6
1025 else
1026 AUTOMAKE="$missing_dir/missing automake"
1027 echo "$ac_t""missing" 1>&6
1030 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1031 echo "configure:1032: checking for working autoheader" >&5
1032 # Run test in a subshell; some versions of sh will print an error if
1033 # an executable is not found, even if stderr is redirected.
1034 # Redirect stdin to placate older versions of autoconf. Sigh.
1035 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1036 AUTOHEADER=autoheader
1037 echo "$ac_t""found" 1>&6
1038 else
1039 AUTOHEADER="$missing_dir/missing autoheader"
1040 echo "$ac_t""missing" 1>&6
1043 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1044 echo "configure:1045: checking for working makeinfo" >&5
1045 # Run test in a subshell; some versions of sh will print an error if
1046 # an executable is not found, even if stderr is redirected.
1047 # Redirect stdin to placate older versions of autoconf. Sigh.
1048 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1049 MAKEINFO=makeinfo
1050 echo "$ac_t""found" 1>&6
1051 else
1052 MAKEINFO="$missing_dir/missing makeinfo"
1053 echo "$ac_t""missing" 1>&6
1058 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
1059 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1060 # are probably using a cross compiler, which will not be able to fully
1061 # link an executable. This should really be fixed in autoconf
1062 # itself.
1067 # Extract the first word of "gcc", so it can be a program name with args.
1068 set dummy gcc; ac_word=$2
1069 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1070 echo "configure:1071: checking for $ac_word" >&5
1071 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1072 echo $ac_n "(cached) $ac_c" 1>&6
1073 else
1074 if test -n "$CC"; then
1075 ac_cv_prog_CC="$CC" # Let the user override the test.
1076 else
1077 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1078 ac_dummy="$PATH"
1079 for ac_dir in $ac_dummy; do
1080 test -z "$ac_dir" && ac_dir=.
1081 if test -f $ac_dir/$ac_word; then
1082 ac_cv_prog_CC="gcc"
1083 break
1085 done
1086 IFS="$ac_save_ifs"
1089 CC="$ac_cv_prog_CC"
1090 if test -n "$CC"; then
1091 echo "$ac_t""$CC" 1>&6
1092 else
1093 echo "$ac_t""no" 1>&6
1096 if test -z "$CC"; then
1097 # Extract the first word of "cc", so it can be a program name with args.
1098 set dummy cc; ac_word=$2
1099 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1100 echo "configure:1101: checking for $ac_word" >&5
1101 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1102 echo $ac_n "(cached) $ac_c" 1>&6
1103 else
1104 if test -n "$CC"; then
1105 ac_cv_prog_CC="$CC" # Let the user override the test.
1106 else
1107 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1108 ac_prog_rejected=no
1109 ac_dummy="$PATH"
1110 for ac_dir in $ac_dummy; do
1111 test -z "$ac_dir" && ac_dir=.
1112 if test -f $ac_dir/$ac_word; then
1113 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1114 ac_prog_rejected=yes
1115 continue
1117 ac_cv_prog_CC="cc"
1118 break
1120 done
1121 IFS="$ac_save_ifs"
1122 if test $ac_prog_rejected = yes; then
1123 # We found a bogon in the path, so make sure we never use it.
1124 set dummy $ac_cv_prog_CC
1125 shift
1126 if test $# -gt 0; then
1127 # We chose a different compiler from the bogus one.
1128 # However, it has the same basename, so the bogon will be chosen
1129 # first if we set CC to just the basename; use the full file name.
1130 shift
1131 set dummy "$ac_dir/$ac_word" "$@"
1132 shift
1133 ac_cv_prog_CC="$@"
1138 CC="$ac_cv_prog_CC"
1139 if test -n "$CC"; then
1140 echo "$ac_t""$CC" 1>&6
1141 else
1142 echo "$ac_t""no" 1>&6
1145 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1148 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1149 echo "configure:1150: checking whether we are using GNU C" >&5
1150 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1151 echo $ac_n "(cached) $ac_c" 1>&6
1152 else
1153 cat > conftest.c <<EOF
1154 #ifdef __GNUC__
1155 yes;
1156 #endif
1158 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1159: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1159 ac_cv_prog_gcc=yes
1160 else
1161 ac_cv_prog_gcc=no
1165 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1167 if test $ac_cv_prog_gcc = yes; then
1168 GCC=yes
1169 ac_test_CFLAGS="${CFLAGS+set}"
1170 ac_save_CFLAGS="$CFLAGS"
1171 CFLAGS=
1172 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1173 echo "configure:1174: checking whether ${CC-cc} accepts -g" >&5
1174 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1175 echo $ac_n "(cached) $ac_c" 1>&6
1176 else
1177 echo 'void f(){}' > conftest.c
1178 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1179 ac_cv_prog_cc_g=yes
1180 else
1181 ac_cv_prog_cc_g=no
1183 rm -f conftest*
1187 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1188 if test "$ac_test_CFLAGS" = set; then
1189 CFLAGS="$ac_save_CFLAGS"
1190 elif test $ac_cv_prog_cc_g = yes; then
1191 CFLAGS="-g -O2"
1192 else
1193 CFLAGS="-O2"
1195 else
1196 GCC=
1197 test "${CFLAGS+set}" = set || CFLAGS="-g"
1201 # Likewise for AC_PROG_CXX.
1205 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1207 # Extract the first word of "$ac_prog", so it can be a program name with args.
1208 set dummy $ac_prog; ac_word=$2
1209 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1210 echo "configure:1211: checking for $ac_word" >&5
1211 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1212 echo $ac_n "(cached) $ac_c" 1>&6
1213 else
1214 if test -n "$CXX"; then
1215 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1216 else
1217 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1218 ac_dummy="$PATH"
1219 for ac_dir in $ac_dummy; do
1220 test -z "$ac_dir" && ac_dir=.
1221 if test -f $ac_dir/$ac_word; then
1222 ac_cv_prog_CXX="$ac_prog"
1223 break
1225 done
1226 IFS="$ac_save_ifs"
1229 CXX="$ac_cv_prog_CXX"
1230 if test -n "$CXX"; then
1231 echo "$ac_t""$CXX" 1>&6
1232 else
1233 echo "$ac_t""no" 1>&6
1236 test -n "$CXX" && break
1237 done
1238 test -n "$CXX" || CXX="gcc"
1240 test -z "$CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1242 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1243 echo "configure:1244: checking whether we are using GNU C++" >&5
1244 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1245 echo $ac_n "(cached) $ac_c" 1>&6
1246 else
1247 cat > conftest.C <<EOF
1248 #ifdef __GNUC__
1249 yes;
1250 #endif
1252 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1253 ac_cv_prog_gxx=yes
1254 else
1255 ac_cv_prog_gxx=no
1259 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1261 if test $ac_cv_prog_gxx = yes; then
1262 GXX=yes
1263 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1264 ac_save_CXXFLAGS="$CXXFLAGS"
1265 CXXFLAGS=
1266 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1267 echo "configure:1268: checking whether ${CXX-g++} accepts -g" >&5
1268 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1269 echo $ac_n "(cached) $ac_c" 1>&6
1270 else
1271 echo 'void f(){}' > conftest.cc
1272 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1273 ac_cv_prog_cxx_g=yes
1274 else
1275 ac_cv_prog_cxx_g=no
1277 rm -f conftest*
1281 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1282 if test "$ac_test_CXXFLAGS" = set; then
1283 CXXFLAGS="$ac_save_CXXFLAGS"
1284 elif test $ac_cv_prog_cxx_g = yes; then
1285 CXXFLAGS="-g -O2"
1286 else
1287 CXXFLAGS="-O2"
1289 else
1290 GXX=
1291 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1295 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we dont
1296 # run it explicitly here, it will be run implicitly before
1297 # LIBGCJ_CONFIGURE, which doesn't work because that means that it will
1298 # be run before AC_CANONICAL_HOST.
1299 echo $ac_n "checking build system type""... $ac_c" 1>&6
1300 echo "configure:1301: checking build system type" >&5
1302 build_alias=$build
1303 case "$build_alias" in
1304 NONE)
1305 case $nonopt in
1306 NONE) build_alias=$host_alias ;;
1307 *) build_alias=$nonopt ;;
1308 esac ;;
1309 esac
1311 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1312 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1313 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1314 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1315 echo "$ac_t""$build" 1>&6
1318 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1319 set dummy ${ac_tool_prefix}as; ac_word=$2
1320 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1321 echo "configure:1322: checking for $ac_word" >&5
1322 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1323 echo $ac_n "(cached) $ac_c" 1>&6
1324 else
1325 if test -n "$AS"; then
1326 ac_cv_prog_AS="$AS" # Let the user override the test.
1327 else
1328 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1329 ac_dummy="$PATH"
1330 for ac_dir in $ac_dummy; do
1331 test -z "$ac_dir" && ac_dir=.
1332 if test -f $ac_dir/$ac_word; then
1333 ac_cv_prog_AS="${ac_tool_prefix}as"
1334 break
1336 done
1337 IFS="$ac_save_ifs"
1338 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1341 AS="$ac_cv_prog_AS"
1342 if test -n "$AS"; then
1343 echo "$ac_t""$AS" 1>&6
1344 else
1345 echo "$ac_t""no" 1>&6
1350 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1351 set dummy ${ac_tool_prefix}ar; ac_word=$2
1352 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1353 echo "configure:1354: checking for $ac_word" >&5
1354 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1355 echo $ac_n "(cached) $ac_c" 1>&6
1356 else
1357 if test -n "$AR"; then
1358 ac_cv_prog_AR="$AR" # Let the user override the test.
1359 else
1360 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1361 ac_dummy="$PATH"
1362 for ac_dir in $ac_dummy; do
1363 test -z "$ac_dir" && ac_dir=.
1364 if test -f $ac_dir/$ac_word; then
1365 ac_cv_prog_AR="${ac_tool_prefix}ar"
1366 break
1368 done
1369 IFS="$ac_save_ifs"
1370 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1373 AR="$ac_cv_prog_AR"
1374 if test -n "$AR"; then
1375 echo "$ac_t""$AR" 1>&6
1376 else
1377 echo "$ac_t""no" 1>&6
1382 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1383 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1384 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1385 echo "configure:1386: checking for $ac_word" >&5
1386 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1387 echo $ac_n "(cached) $ac_c" 1>&6
1388 else
1389 if test -n "$RANLIB"; then
1390 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1391 else
1392 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1393 ac_dummy="$PATH"
1394 for ac_dir in $ac_dummy; do
1395 test -z "$ac_dir" && ac_dir=.
1396 if test -f $ac_dir/$ac_word; then
1397 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1398 break
1400 done
1401 IFS="$ac_save_ifs"
1404 RANLIB="$ac_cv_prog_RANLIB"
1405 if test -n "$RANLIB"; then
1406 echo "$ac_t""$RANLIB" 1>&6
1407 else
1408 echo "$ac_t""no" 1>&6
1412 if test -z "$ac_cv_prog_RANLIB"; then
1413 if test -n "$ac_tool_prefix"; then
1414 # Extract the first word of "ranlib", so it can be a program name with args.
1415 set dummy ranlib; ac_word=$2
1416 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1417 echo "configure:1418: checking for $ac_word" >&5
1418 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1419 echo $ac_n "(cached) $ac_c" 1>&6
1420 else
1421 if test -n "$RANLIB"; then
1422 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1423 else
1424 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1425 ac_dummy="$PATH"
1426 for ac_dir in $ac_dummy; do
1427 test -z "$ac_dir" && ac_dir=.
1428 if test -f $ac_dir/$ac_word; then
1429 ac_cv_prog_RANLIB="ranlib"
1430 break
1432 done
1433 IFS="$ac_save_ifs"
1434 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1437 RANLIB="$ac_cv_prog_RANLIB"
1438 if test -n "$RANLIB"; then
1439 echo "$ac_t""$RANLIB" 1>&6
1440 else
1441 echo "$ac_t""no" 1>&6
1444 else
1445 RANLIB=":"
1450 # Find a good install program. We prefer a C program (faster),
1451 # so one script is as good as another. But avoid the broken or
1452 # incompatible versions:
1453 # SysV /etc/install, /usr/sbin/install
1454 # SunOS /usr/etc/install
1455 # IRIX /sbin/install
1456 # AIX /bin/install
1457 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1458 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1459 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1460 # ./install, which can be erroneously created by make from ./install.sh.
1461 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1462 echo "configure:1463: checking for a BSD compatible install" >&5
1463 if test -z "$INSTALL"; then
1464 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1465 echo $ac_n "(cached) $ac_c" 1>&6
1466 else
1467 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1468 for ac_dir in $PATH; do
1469 # Account for people who put trailing slashes in PATH elements.
1470 case "$ac_dir/" in
1471 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1473 # OSF1 and SCO ODT 3.0 have their own names for install.
1474 # Don't use installbsd from OSF since it installs stuff as root
1475 # by default.
1476 for ac_prog in ginstall scoinst install; do
1477 if test -f $ac_dir/$ac_prog; then
1478 if test $ac_prog = install &&
1479 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1480 # AIX install. It has an incompatible calling convention.
1482 else
1483 ac_cv_path_install="$ac_dir/$ac_prog -c"
1484 break 2
1487 done
1489 esac
1490 done
1491 IFS="$ac_save_IFS"
1494 if test "${ac_cv_path_install+set}" = set; then
1495 INSTALL="$ac_cv_path_install"
1496 else
1497 # As a last resort, use the slow shell script. We don't cache a
1498 # path for INSTALL within a source directory, because that will
1499 # break other packages using the cache if that directory is
1500 # removed, or if the path is relative.
1501 INSTALL="$ac_install_sh"
1504 echo "$ac_t""$INSTALL" 1>&6
1506 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1507 # It thinks the first close brace ends the variable substitution.
1508 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1510 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1512 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1515 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1516 echo "configure:1517: checking whether to enable maintainer-specific portions of Makefiles" >&5
1517 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1518 if test "${enable_maintainer_mode+set}" = set; then
1519 enableval="$enable_maintainer_mode"
1520 USE_MAINTAINER_MODE=$enableval
1521 else
1522 USE_MAINTAINER_MODE=no
1525 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1528 if test $USE_MAINTAINER_MODE = yes; then
1529 MAINTAINER_MODE_TRUE=
1530 MAINTAINER_MODE_FALSE='#'
1531 else
1532 MAINTAINER_MODE_TRUE='#'
1533 MAINTAINER_MODE_FALSE=
1535 MAINT=$MAINTAINER_MODE_TRUE
1539 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1540 # at least currently, we never actually build a program, so we never
1541 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1542 # fails, because we are probably configuring with a cross compiler
1543 # which cant create executables. So we include AC_EXEEXT to keep
1544 # automake happy, but we dont execute it, since we dont care about
1545 # the result.
1546 if false; then
1549 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1550 echo "configure:1551: checking for executable suffix" >&5
1551 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1552 echo $ac_n "(cached) $ac_c" 1>&6
1553 else
1554 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1555 ac_cv_exeext=.exe
1556 else
1557 rm -f conftest*
1558 echo 'int main () { return 0; }' > conftest.$ac_ext
1559 ac_cv_exeext=
1560 if { (eval echo configure:1561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1561 for file in conftest.*; do
1562 case $file in
1563 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1564 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1565 esac
1566 done
1567 else
1568 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1570 rm -f conftest*
1571 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1575 EXEEXT=""
1576 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1577 echo "$ac_t""${ac_cv_exeext}" 1>&6
1578 ac_exeext=$EXEEXT
1582 # configure.host sets the following important variables
1583 # libgcj_cflags - host specific C compiler flags
1584 # libgcj_cxxflags - host specific C++ compiler flags
1585 # libgcj_javaflags - host specific Java compiler flags
1587 libgcj_cflags=
1588 libgcj_cxxflags=
1589 libgcj_javaflags=
1591 . ${libgcj_basedir}/configure.host
1593 case ${libgcj_basedir} in
1594 /* | A-Za-z:/\\*) libgcj_flagbasedir=${libgcj_basedir} ;;
1595 *) libgcj_flagbasedir='$(top_builddir)/'${libgcj_basedir} ;;
1596 esac
1598 LIBGCJ_CFLAGS="${libgcj_cflags}"
1599 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
1600 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
1610 # Only use libltdl for native builds.
1611 if test -z "${with_cross_host}"; then
1612 case "$enable_ltdl_convenience" in
1613 no) { echo "configure: error: this package needs a convenience libltdl" 1>&2; exit 1; } ;;
1614 "") enable_ltdl_convenience=yes
1615 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
1616 esac
1617 LIBLTDL='${top_builddir}/libltdl'/libltdlc.la
1618 INCLTDL='-I${top_builddir}/libltdl'
1621 DIRLTDL=libltdl
1622 cat >> confdefs.h <<\EOF
1623 #define USE_LTDL 1
1626 # Sigh. Libtool's macro doesn't do the right thing.
1627 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
1632 # Check whether --enable-shared or --disable-shared was given.
1633 if test "${enable_shared+set}" = set; then
1634 enableval="$enable_shared"
1635 p=${PACKAGE-default}
1636 case "$enableval" in
1637 yes) enable_shared=yes ;;
1638 no) enable_shared=no ;;
1640 enable_shared=no
1641 # Look at the argument we got. We use all the common list separators.
1642 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1643 for pkg in $enableval; do
1644 if test "X$pkg" = "X$p"; then
1645 enable_shared=yes
1647 done
1648 IFS="$ac_save_ifs"
1650 esac
1651 else
1652 enable_shared=yes
1655 # Check whether --enable-static or --disable-static was given.
1656 if test "${enable_static+set}" = set; then
1657 enableval="$enable_static"
1658 p=${PACKAGE-default}
1659 case "$enableval" in
1660 yes) enable_static=yes ;;
1661 no) enable_static=no ;;
1663 enable_static=no
1664 # Look at the argument we got. We use all the common list separators.
1665 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1666 for pkg in $enableval; do
1667 if test "X$pkg" = "X$p"; then
1668 enable_static=yes
1670 done
1671 IFS="$ac_save_ifs"
1673 esac
1674 else
1675 enable_static=yes
1678 # Check whether --enable-fast-install or --disable-fast-install was given.
1679 if test "${enable_fast_install+set}" = set; then
1680 enableval="$enable_fast_install"
1681 p=${PACKAGE-default}
1682 case "$enableval" in
1683 yes) enable_fast_install=yes ;;
1684 no) enable_fast_install=no ;;
1686 enable_fast_install=no
1687 # Look at the argument we got. We use all the common list separators.
1688 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1689 for pkg in $enableval; do
1690 if test "X$pkg" = "X$p"; then
1691 enable_fast_install=yes
1693 done
1694 IFS="$ac_save_ifs"
1696 esac
1697 else
1698 enable_fast_install=yes
1701 # Extract the first word of "ranlib", so it can be a program name with args.
1702 set dummy ranlib; ac_word=$2
1703 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1704 echo "configure:1705: checking for $ac_word" >&5
1705 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1706 echo $ac_n "(cached) $ac_c" 1>&6
1707 else
1708 if test -n "$RANLIB"; then
1709 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1710 else
1711 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1712 ac_dummy="$PATH"
1713 for ac_dir in $ac_dummy; do
1714 test -z "$ac_dir" && ac_dir=.
1715 if test -f $ac_dir/$ac_word; then
1716 ac_cv_prog_RANLIB="ranlib"
1717 break
1719 done
1720 IFS="$ac_save_ifs"
1721 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1724 RANLIB="$ac_cv_prog_RANLIB"
1725 if test -n "$RANLIB"; then
1726 echo "$ac_t""$RANLIB" 1>&6
1727 else
1728 echo "$ac_t""no" 1>&6
1731 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1732 if test "${with_gnu_ld+set}" = set; then
1733 withval="$with_gnu_ld"
1734 test "$withval" = no || with_gnu_ld=yes
1735 else
1736 with_gnu_ld=no
1739 ac_prog=ld
1740 if test "$ac_cv_prog_gcc" = yes; then
1741 # Check if gcc -print-prog-name=ld gives a path.
1742 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1743 echo "configure:1744: checking for ld used by GCC" >&5
1744 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1745 case "$ac_prog" in
1746 # Accept absolute paths.
1747 [\\/]* | [A-Za-z]:[\\/]*)
1748 re_direlt='/[^/][^/]*/\.\./'
1749 # Canonicalize the path of ld
1750 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1751 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1752 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1753 done
1754 test -z "$LD" && LD="$ac_prog"
1757 # If it fails, then pretend we aren't using GCC.
1758 ac_prog=ld
1761 # If it is relative, then search for the first ld in PATH.
1762 with_gnu_ld=unknown
1764 esac
1765 elif test "$with_gnu_ld" = yes; then
1766 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1767 echo "configure:1768: checking for GNU ld" >&5
1768 else
1769 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1770 echo "configure:1771: checking for non-GNU ld" >&5
1772 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1773 echo $ac_n "(cached) $ac_c" 1>&6
1774 else
1775 if test -z "$LD"; then
1776 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1777 for ac_dir in $PATH; do
1778 test -z "$ac_dir" && ac_dir=.
1779 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1780 ac_cv_path_LD="$ac_dir/$ac_prog"
1781 # Check to see if the program is GNU ld. I'd rather use --version,
1782 # but apparently some GNU ld's only accept -v.
1783 # Break only if it was the GNU/non-GNU ld that we prefer.
1784 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1785 test "$with_gnu_ld" != no && break
1786 else
1787 test "$with_gnu_ld" != yes && break
1790 done
1791 IFS="$ac_save_ifs"
1792 else
1793 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1797 LD="$ac_cv_path_LD"
1798 if test -n "$LD"; then
1799 echo "$ac_t""$LD" 1>&6
1800 else
1801 echo "$ac_t""no" 1>&6
1803 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1804 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1805 echo "configure:1806: checking if the linker ($LD) is GNU ld" >&5
1806 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1807 echo $ac_n "(cached) $ac_c" 1>&6
1808 else
1809 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1810 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1811 ac_cv_prog_gnu_ld=yes
1812 else
1813 ac_cv_prog_gnu_ld=no
1817 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1820 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1821 echo "configure:1822: checking for BSD-compatible nm" >&5
1822 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1823 echo $ac_n "(cached) $ac_c" 1>&6
1824 else
1825 if test -n "$NM"; then
1826 # Let the user override the test.
1827 ac_cv_path_NM="$NM"
1828 else
1829 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1830 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1831 test -z "$ac_dir" && ac_dir=.
1832 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1833 # Check to see if the nm accepts a BSD-compat flag.
1834 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1835 # nm: unknown option "B" ignored
1836 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1837 ac_cv_path_NM="$ac_dir/nm -B"
1838 break
1839 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1840 ac_cv_path_NM="$ac_dir/nm -p"
1841 break
1842 else
1843 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1844 continue # so that we can try to find one that supports BSD flags
1847 done
1848 IFS="$ac_save_ifs"
1849 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1853 NM="$ac_cv_path_NM"
1854 echo "$ac_t""$NM" 1>&6
1856 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1857 echo "configure:1858: checking whether ln -s works" >&5
1858 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1859 echo $ac_n "(cached) $ac_c" 1>&6
1860 else
1861 rm -f conftestdata
1862 if ln -s X conftestdata 2>/dev/null
1863 then
1864 rm -f conftestdata
1865 ac_cv_prog_LN_S="ln -s"
1866 else
1867 ac_cv_prog_LN_S=ln
1870 LN_S="$ac_cv_prog_LN_S"
1871 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1872 echo "$ac_t""yes" 1>&6
1873 else
1874 echo "$ac_t""no" 1>&6
1878 case "$target" in
1879 NONE) lt_target="$host" ;;
1880 *) lt_target="$target" ;;
1881 esac
1883 # Check for any special flags to pass to ltconfig.
1884 libtool_flags="--cache-file=$cache_file"
1885 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1886 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1887 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1888 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1889 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1890 libtool_flags="$libtool_flags --enable-dlopen"
1892 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1893 if test "${enable_libtool_lock+set}" = set; then
1894 enableval="$enable_libtool_lock"
1898 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1899 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1901 # Some flags need to be propagated to the compiler or linker for good
1902 # libtool support.
1903 case "$lt_target" in
1904 *-*-irix6*)
1905 # Find out which ABI we are using.
1906 echo '#line 1907 "configure"' > conftest.$ac_ext
1907 if { (eval echo configure:1908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1908 case "`/usr/bin/file conftest.o`" in
1909 *32-bit*)
1910 LD="${LD-ld} -32"
1912 *N32*)
1913 LD="${LD-ld} -n32"
1915 *64-bit*)
1916 LD="${LD-ld} -64"
1918 esac
1920 rm -rf conftest*
1923 *-*-sco3.2v5*)
1924 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1925 SAVE_CFLAGS="$CFLAGS"
1926 CFLAGS="$CFLAGS -belf"
1927 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1928 echo "configure:1929: checking whether the C compiler needs -belf" >&5
1929 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1930 echo $ac_n "(cached) $ac_c" 1>&6
1931 else
1932 cat > conftest.$ac_ext <<EOF
1933 #line 1934 "configure"
1934 #include "confdefs.h"
1936 int main() {
1938 ; return 0; }
1940 if { (eval echo configure:1941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1941 rm -rf conftest*
1942 lt_cv_cc_needs_belf=yes
1943 else
1944 echo "configure: failed program was:" >&5
1945 cat conftest.$ac_ext >&5
1946 rm -rf conftest*
1947 lt_cv_cc_needs_belf=no
1949 rm -f conftest*
1952 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1953 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1954 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1955 CFLAGS="$SAVE_CFLAGS"
1960 esac
1963 # Save cache, so that ltconfig can load it
1964 cat > confcache <<\EOF
1965 # This file is a shell script that caches the results of configure
1966 # tests run on this system so they can be shared between configure
1967 # scripts and configure runs. It is not useful on other systems.
1968 # If it contains results you don't want to keep, you may remove or edit it.
1970 # By default, configure uses ./config.cache as the cache file,
1971 # creating it if it does not exist already. You can give configure
1972 # the --cache-file=FILE option to use a different cache file; that is
1973 # what configure does when it calls configure scripts in
1974 # subdirectories, so they share the cache.
1975 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1976 # config.status only pays attention to the cache file if you give it the
1977 # --recheck option to rerun configure.
1980 # The following way of writing the cache mishandles newlines in values,
1981 # but we know of no workaround that is simple, portable, and efficient.
1982 # So, don't put newlines in cache variables' values.
1983 # Ultrix sh set writes to stderr and can't be redirected directly,
1984 # and sets the high bit in the cache file unless we assign to the vars.
1985 (set) 2>&1 |
1986 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1987 *ac_space=\ *)
1988 # `set' does not quote correctly, so add quotes (double-quote substitution
1989 # turns \\\\ into \\, and sed turns \\ into \).
1990 sed -n \
1991 -e "s/'/'\\\\''/g" \
1992 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1995 # `set' quotes correctly as required by POSIX, so do not add quotes.
1996 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1998 esac >> confcache
1999 if cmp -s $cache_file confcache; then
2001 else
2002 if test -w $cache_file; then
2003 echo "updating cache $cache_file"
2004 cat confcache > $cache_file
2005 else
2006 echo "not updating unwritable cache $cache_file"
2009 rm -f confcache
2012 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2013 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2014 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2015 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
2016 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
2017 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2018 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
2019 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2021 # Reload cache, that may have been modified by ltconfig
2022 if test -r "$cache_file"; then
2023 echo "loading cache $cache_file"
2024 . $cache_file
2025 else
2026 echo "creating cache $cache_file"
2027 > $cache_file
2031 # This can be used to rebuild libtool when needed
2032 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
2034 # Always use our own libtool.
2035 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2037 # Redirect the config.log output again, so that the ltconfig log is not
2038 # clobbered by the next message.
2039 exec 5>>./config.log
2041 subdirs="$DIRLTDL"
2044 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
2045 COMPPATH=.
2046 else
2047 COMPPATH=..
2053 if test -d $srcdir/testsuite; then
2054 TESTSUBDIR_TRUE=
2055 TESTSUBDIR_FALSE='#'
2056 else
2057 TESTSUBDIR_TRUE='#'
2058 TESTSUBDIR_FALSE=
2061 # Check whether --enable-fast-character or --disable-fast-character was given.
2062 if test "${enable_fast_character+set}" = set; then
2063 enableval="$enable_fast_character"
2064 # Nothing
2066 else
2067 cat >> confdefs.h <<\EOF
2068 #define COMPACT_CHARACTER 1
2074 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
2075 if test "${enable_getenv_properties+set}" = set; then
2076 enableval="$enable_getenv_properties"
2081 if test -n "$enable_getenv_properties"; then
2082 enable_getenv_properties=${enable_getenv_properties_default-yes}
2084 if test "$enable_getenv_properties" = no; then
2085 cat >> confdefs.h <<\EOF
2086 #define DISABLE_GETENV_PROPERTIES 1
2091 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2092 if test "${enable_libgcj_debug+set}" = set; then
2093 enableval="$enable_libgcj_debug"
2094 if test "$enable_libgcj_debug" = yes; then
2095 cat >> confdefs.h <<\EOF
2096 #define DEBUG 1
2103 # Check whether --enable-interpreter or --disable-interpreter was given.
2104 if test "${enable_interpreter+set}" = set; then
2105 enableval="$enable_interpreter"
2106 if test "$enable_interpreter" = yes; then
2107 # This can also be set in configure.host.
2108 libgcj_interpreter=yes
2109 elif test "$enable_interpreter" = no; then
2110 libgcj_interpreter=no
2115 if test "$libgcj_interpreter" = yes; then
2116 cat >> confdefs.h <<\EOF
2117 #define INTERPRETER 1
2122 EXCEPTIONSPEC=
2123 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
2124 if test "${enable_sjlj_exceptions+set}" = set; then
2125 enableval="$enable_sjlj_exceptions"
2126 if test "$enable_sjlj_exceptions" = yes; then
2127 # This can be set in configure.host.
2128 libgcj_sjlj=yes
2133 if test "$libgcj_sjlj" = yes; then
2134 EXCEPTIONSPEC="-fsjlj-exceptions"
2135 cat >> confdefs.h <<\EOF
2136 #define SJLJ_EXCEPTIONS 1
2141 FORCELIBGCCSPEC=
2142 if test "$ac_cv_prog_gnu_ld" = yes; then
2143 FORCELIBGCCSPEC="-u __rethrow -u __frame_state_for -lgcc"
2146 echo $ac_n "checking for data_start""... $ac_c" 1>&6
2147 echo "configure:2148: checking for data_start" >&5
2148 LIBDATASTARTSPEC=
2149 NEEDS_DATA_START=
2150 cat > conftest.$ac_ext <<EOF
2151 #line 2152 "configure"
2152 #include "confdefs.h"
2153 extern int data_start;
2154 int main() {
2155 return ((int) &data_start);
2156 ; return 0; }
2158 if { (eval echo configure:2159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2159 rm -rf conftest*
2160 echo "$ac_t""found it" 1>&6
2161 else
2162 echo "configure: failed program was:" >&5
2163 cat conftest.$ac_ext >&5
2164 rm -rf conftest*
2165 LIBDATASTARTSPEC="-u data_start -lgcjdata"
2166 NEEDS_DATA_START=yes
2167 echo "$ac_t""missing" 1>&6
2169 rm -f conftest*
2172 # Check whether --enable-java-net or --disable-java-net was given.
2173 if test "${enable_java_net+set}" = set; then
2174 enableval="$enable_java_net"
2179 if test -n "$enable_java_net"; then
2180 enable_java_net=${enable_java_net_default-yes}
2182 if test "$enable_java_net" = no; then
2183 cat >> confdefs.h <<\EOF
2184 #define DISABLE_JAVA_NET 1
2189 # Check whether --enable-jvmpi or --disable-jvmpi was given.
2190 if test "${enable_jvmpi+set}" = set; then
2191 enableval="$enable_jvmpi"
2196 if test "$enable_jvmpi" != no; then
2197 cat >> confdefs.h <<\EOF
2198 #define ENABLE_JVMPI 1
2203 TARGET_ECOS="no"
2204 # Check whether --with-ecos or --without-ecos was given.
2205 if test "${with_ecos+set}" = set; then
2206 withval="$with_ecos"
2207 TARGET_ECOS="$with_ecos"
2212 case "$TARGET_ECOS" in
2214 FILE_DESCRIPTOR=natFileDescriptorPosix.cc
2215 PROCESS=${PROCESS-Posix}
2218 FILE_DESCRIPTOR=natFileDescriptorEcos.cc
2219 PROCESS=Ecos
2220 cat >> confdefs.h <<\EOF
2221 #define ECOS 1
2225 esac
2227 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2228 echo "configure:2229: checking how to run the C preprocessor" >&5
2229 # On Suns, sometimes $CPP names a directory.
2230 if test -n "$CPP" && test -d "$CPP"; then
2231 CPP=
2233 if test -z "$CPP"; then
2234 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2235 echo $ac_n "(cached) $ac_c" 1>&6
2236 else
2237 # This must be in double quotes, not single quotes, because CPP may get
2238 # substituted into the Makefile and "${CC-cc}" will confuse make.
2239 CPP="${CC-cc} -E"
2240 # On the NeXT, cc -E runs the code through the compiler's parser,
2241 # not just through cpp.
2242 cat > conftest.$ac_ext <<EOF
2243 #line 2244 "configure"
2244 #include "confdefs.h"
2245 #include <assert.h>
2246 Syntax Error
2248 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2249 { (eval echo configure:2250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2250 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2251 if test -z "$ac_err"; then
2253 else
2254 echo "$ac_err" >&5
2255 echo "configure: failed program was:" >&5
2256 cat conftest.$ac_ext >&5
2257 rm -rf conftest*
2258 CPP="${CC-cc} -E -traditional-cpp"
2259 cat > conftest.$ac_ext <<EOF
2260 #line 2261 "configure"
2261 #include "confdefs.h"
2262 #include <assert.h>
2263 Syntax Error
2265 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2266 { (eval echo configure:2267: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2267 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2268 if test -z "$ac_err"; then
2270 else
2271 echo "$ac_err" >&5
2272 echo "configure: failed program was:" >&5
2273 cat conftest.$ac_ext >&5
2274 rm -rf conftest*
2275 CPP="${CC-cc} -nologo -E"
2276 cat > conftest.$ac_ext <<EOF
2277 #line 2278 "configure"
2278 #include "confdefs.h"
2279 #include <assert.h>
2280 Syntax Error
2282 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2283 { (eval echo configure:2284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2284 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2285 if test -z "$ac_err"; then
2287 else
2288 echo "$ac_err" >&5
2289 echo "configure: failed program was:" >&5
2290 cat conftest.$ac_ext >&5
2291 rm -rf conftest*
2292 CPP=/lib/cpp
2294 rm -f conftest*
2296 rm -f conftest*
2298 rm -f conftest*
2299 ac_cv_prog_CPP="$CPP"
2301 CPP="$ac_cv_prog_CPP"
2302 else
2303 ac_cv_prog_CPP="$CPP"
2305 echo "$ac_t""$CPP" 1>&6
2307 cat > conftest.$ac_ext <<EOF
2308 #line 2309 "configure"
2309 #include "confdefs.h"
2310 #include <stdint.h>
2312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2313 egrep "uint32_t" >/dev/null 2>&1; then
2314 rm -rf conftest*
2315 cat >> confdefs.h <<\EOF
2316 #define HAVE_INT32_DEFINED 1
2320 rm -f conftest*
2322 cat > conftest.$ac_ext <<EOF
2323 #line 2324 "configure"
2324 #include "confdefs.h"
2325 #include <inttypes.h>
2327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2328 egrep "uint32_t" >/dev/null 2>&1; then
2329 rm -rf conftest*
2330 cat >> confdefs.h <<\EOF
2331 #define HAVE_INT32_DEFINED 1
2335 rm -f conftest*
2337 cat > conftest.$ac_ext <<EOF
2338 #line 2339 "configure"
2339 #include "confdefs.h"
2340 #include <sys/types.h>
2342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2343 egrep "u_int32_t" >/dev/null 2>&1; then
2344 rm -rf conftest*
2345 cat >> confdefs.h <<\EOF
2346 #define HAVE_BSD_INT32_DEFINED 1
2350 rm -f conftest*
2352 cat > conftest.$ac_ext <<EOF
2353 #line 2354 "configure"
2354 #include "confdefs.h"
2355 #include <sys/config.h>
2357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2358 egrep "u_int32_t" >/dev/null 2>&1; then
2359 rm -rf conftest*
2360 cat >> confdefs.h <<\EOF
2361 #define HAVE_BSD_INT32_DEFINED 1
2365 rm -f conftest*
2369 cat > conftest.$ac_ext <<EOF
2370 #line 2371 "configure"
2371 #include "confdefs.h"
2372 #include <time.h>
2374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2375 egrep "mktime" >/dev/null 2>&1; then
2376 rm -rf conftest*
2377 cat >> confdefs.h <<\EOF
2378 #define HAVE_MKTIME 1
2382 rm -f conftest*
2384 cat > conftest.$ac_ext <<EOF
2385 #line 2386 "configure"
2386 #include "confdefs.h"
2387 #include <time.h>
2389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2390 egrep "localtime" >/dev/null 2>&1; then
2391 rm -rf conftest*
2392 cat >> confdefs.h <<\EOF
2393 #define HAVE_LOCALTIME 1
2397 rm -f conftest*
2400 test -d java || mkdir java
2401 test -d java/io || mkdir java/io
2404 test -d java/lang || mkdir java/lang
2408 SYSTEMSPEC=
2411 LIBGCJTESTSPEC="-L`pwd`/.libs -rpath `pwd`/.libs"
2414 # Check whether --with-system-zlib or --without-system-zlib was given.
2415 if test "${with_system_zlib+set}" = set; then
2416 withval="$with_system_zlib"
2420 ZLIBSPEC=
2422 ZLIBTESTSPEC=
2425 libsubdir=.libs
2427 echo $ac_n "checking for garbage collector to use""... $ac_c" 1>&6
2428 echo "configure:2429: checking for garbage collector to use" >&5
2429 # Check whether --enable-java-gc or --disable-java-gc was given.
2430 if test "${enable_java_gc+set}" = set; then
2431 enableval="$enable_java_gc"
2433 GC=$enableval
2434 else
2435 GC=boehm
2438 GCLIBS=
2439 GCINCS=
2440 GCDEPS=
2441 GCOBJS=
2442 GCSPEC=
2443 GCTESTSPEC=
2444 case "$GC" in
2445 boehm)
2446 echo "$ac_t""boehm" 1>&6
2447 GCDEPS='$(top_builddir)/../boehm-gc/libgcjgc.la'
2448 # We include the path to the boehm-gc build directory.
2449 # See Makefile.am to understand why.
2450 GCLIBS="$GCDEPS -L\$(here)/../boehm-gc/$libsubdir"
2451 GCINCS='-I$(top_srcdir)/../boehm-gc -I$(top_builddir)/../boehm-gc'
2452 GCSPEC='-lgcjgc'
2453 GCTESTSPEC="-L`pwd`/../boehm-gc/.libs -rpath `pwd`/../boehm-gc/.libs"
2454 GCINCS="$GCINCS `cat ../boehm-gc/boehm-cflags`"
2455 GCOBJS=boehm.lo
2456 GCHDR=boehm-gc.h
2457 cat >> confdefs.h <<\EOF
2458 #define HAVE_BOEHM_GC 1
2463 echo "$ac_t""none" 1>&6
2464 GCOBJS=nogc.lo
2465 GCHDR=no-gc.h
2468 { echo "configure: error: unrecognized collector \"$GC\"" 1>&2; exit 1; }
2470 esac
2480 echo $ac_n "checking for threads package to use""... $ac_c" 1>&6
2481 echo "configure:2482: checking for threads package to use" >&5
2482 # Check whether --enable-threads or --disable-threads was given.
2483 if test "${enable_threads+set}" = set; then
2484 enableval="$enable_threads"
2485 THREADS=$enableval
2486 else
2487 THREADS=no
2491 if test "$THREADS" = yes; then
2492 case "$host" in
2493 *-*-vxworks*)
2494 THREADS=vxworks
2496 *-*-linux*)
2497 # FIXME: this isn't correct in all cases.
2498 THREADS=posix
2500 *-*-win*)
2501 THREADS=win32
2503 *-*-irix*)
2504 # FIXME: for now, choose POSIX, because we implement that.
2505 # Later, choose irix threads.
2506 THREADS=posix
2508 *-*-solaris*)
2509 # FIXME: for now, choose POSIX, because we implement that.
2510 # Later, choose solaris threads.
2511 THREADS=posix
2514 # For now.
2515 THREADS=none
2517 esac
2520 case "$THREADS" in
2521 no | none | single)
2522 THREADS=none
2524 posix | pthreads)
2525 THREADS=posix
2526 case "$host" in
2527 *-*-linux*)
2528 cat >> confdefs.h <<\EOF
2529 #define LINUX_THREADS 1
2533 esac
2535 decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
2536 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
2539 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
2541 esac
2542 echo "$ac_t""$THREADS" 1>&6
2544 THREADLIBS=
2545 THREADINCS=
2546 THREADDEPS=
2547 THREADOBJS=
2548 THREADH=
2549 THREADSPEC=
2550 case "$THREADS" in
2551 posix)
2552 THREADLIBS=-lpthread
2553 THREADSPEC=-lpthread
2554 THREADOBJS=posix-threads.lo
2555 THREADH=posix-threads.h
2556 # MIT pthreads doesn't seem to have the mutexattr functions.
2557 # But for now we don't check for it. We just assume you aren't
2558 # using MIT pthreads.
2559 cat >> confdefs.h <<\EOF
2560 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
2564 # If we're using the Boehm GC, then we happen to know that it
2565 # defines _REENTRANT, so we don't bother. Eww.
2566 if test "$GC" != boehm; then
2567 cat >> confdefs.h <<\EOF
2568 #define _REENTRANT 1
2572 cat >> confdefs.h <<\EOF
2573 #define _POSIX_PTHREAD_SEMANTICS 1
2578 none)
2579 THREADOBJS=no-threads.lo
2580 THREADH=no-threads.h
2582 esac
2592 if test "$GCC" = yes; then
2593 USING_GCC_TRUE=
2594 USING_GCC_FALSE='#'
2595 else
2596 USING_GCC_TRUE='#'
2597 USING_GCC_FALSE=
2600 CANADIAN=no
2601 NULL_TARGET=no
2602 NATIVE=yes
2604 # Find eh-common.h and support headers. If we're in the tree with
2605 # gcc, then look there. Otherwise look in compat-include. If all else
2606 # fails, just hope the user has set things up somehow.
2607 if test -r $srcdir/../gcc/eh-common.h; then
2608 EH_COMMON_INCLUDE='-I$(top_srcdir)/../gcc -I$(top_srcdir)/../include'
2609 else
2610 if test -d $srcdir/../compat-include; then
2611 EH_COMMON_INCLUDE='-I$(top_srcdir)/../compat-include'
2612 else
2613 EH_COMMON_INCLUDE=
2617 if test -n "${with_cross_host}"; then
2618 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
2619 # may not work correctly, because the compiler may not be able to
2620 # link executables.
2622 # We assume newlib. This lets us hard-code the functions we know
2623 # we'll have.
2624 cat >> confdefs.h <<\EOF
2625 #define HAVE_MEMMOVE 1
2628 cat >> confdefs.h <<\EOF
2629 #define HAVE_MEMCPY 1
2632 cat >> confdefs.h <<\EOF
2633 #define HAVE_STRERROR 1
2636 cat >> confdefs.h <<\EOF
2637 #define HAVE_GMTIME_R 1
2640 cat >> confdefs.h <<\EOF
2641 #define HAVE_LOCALTIME_R 1
2644 cat >> confdefs.h <<\EOF
2645 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
2648 cat >> confdefs.h <<\EOF
2649 #define HAVE_ALLOCA 1
2653 cat >> confdefs.h <<\EOF
2654 #define NO_GETUID 1
2658 ZLIBSPEC=-lzgcj
2659 ZLIBTESTSPEC="-L`pwd`/../zlib/.libs -rpath `pwd`/../zlib/.libs"
2661 # If Canadian cross, then don't pick up tools from the build
2662 # directory.
2663 if test "$build" != "$with_cross_host"; then
2664 CANADIAN=yes
2665 EH_COMMON_INCLUDE=
2666 GCJ="${target_alias}-gcj"
2667 else
2668 GCJ=
2670 NATIVE=no
2671 else
2672 for ac_func in strerror ioctl select fstat open fsync sleep
2674 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2675 echo "configure:2676: checking for $ac_func" >&5
2676 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2677 echo $ac_n "(cached) $ac_c" 1>&6
2678 else
2679 cat > conftest.$ac_ext <<EOF
2680 #line 2681 "configure"
2681 #include "confdefs.h"
2682 /* System header to define __stub macros and hopefully few prototypes,
2683 which can conflict with char $ac_func(); below. */
2684 #include <assert.h>
2685 /* Override any gcc2 internal prototype to avoid an error. */
2686 /* We use char because int might match the return type of a gcc2
2687 builtin and then its argument prototype would still apply. */
2688 char $ac_func();
2690 int main() {
2692 /* The GNU C library defines this for functions which it implements
2693 to always fail with ENOSYS. Some functions are actually named
2694 something starting with __ and the normal name is an alias. */
2695 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2696 choke me
2697 #else
2698 $ac_func();
2699 #endif
2701 ; return 0; }
2703 if { (eval echo configure:2704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2704 rm -rf conftest*
2705 eval "ac_cv_func_$ac_func=yes"
2706 else
2707 echo "configure: failed program was:" >&5
2708 cat conftest.$ac_ext >&5
2709 rm -rf conftest*
2710 eval "ac_cv_func_$ac_func=no"
2712 rm -f conftest*
2715 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2716 echo "$ac_t""yes" 1>&6
2717 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2718 cat >> confdefs.h <<EOF
2719 #define $ac_tr_func 1
2722 else
2723 echo "$ac_t""no" 1>&6
2725 done
2727 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
2729 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2730 echo "configure:2731: checking for $ac_func" >&5
2731 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2732 echo $ac_n "(cached) $ac_c" 1>&6
2733 else
2734 cat > conftest.$ac_ext <<EOF
2735 #line 2736 "configure"
2736 #include "confdefs.h"
2737 /* System header to define __stub macros and hopefully few prototypes,
2738 which can conflict with char $ac_func(); below. */
2739 #include <assert.h>
2740 /* Override any gcc2 internal prototype to avoid an error. */
2741 /* We use char because int might match the return type of a gcc2
2742 builtin and then its argument prototype would still apply. */
2743 char $ac_func();
2745 int main() {
2747 /* The GNU C library defines this for functions which it implements
2748 to always fail with ENOSYS. Some functions are actually named
2749 something starting with __ and the normal name is an alias. */
2750 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2751 choke me
2752 #else
2753 $ac_func();
2754 #endif
2756 ; return 0; }
2758 if { (eval echo configure:2759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2759 rm -rf conftest*
2760 eval "ac_cv_func_$ac_func=yes"
2761 else
2762 echo "configure: failed program was:" >&5
2763 cat conftest.$ac_ext >&5
2764 rm -rf conftest*
2765 eval "ac_cv_func_$ac_func=no"
2767 rm -f conftest*
2770 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2771 echo "$ac_t""yes" 1>&6
2772 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2773 cat >> confdefs.h <<EOF
2774 #define $ac_tr_func 1
2777 else
2778 echo "$ac_t""no" 1>&6
2780 done
2782 for ac_func in access stat mkdir rename rmdir unlink realpath iconv
2784 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2785 echo "configure:2786: checking for $ac_func" >&5
2786 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2787 echo $ac_n "(cached) $ac_c" 1>&6
2788 else
2789 cat > conftest.$ac_ext <<EOF
2790 #line 2791 "configure"
2791 #include "confdefs.h"
2792 /* System header to define __stub macros and hopefully few prototypes,
2793 which can conflict with char $ac_func(); below. */
2794 #include <assert.h>
2795 /* Override any gcc2 internal prototype to avoid an error. */
2796 /* We use char because int might match the return type of a gcc2
2797 builtin and then its argument prototype would still apply. */
2798 char $ac_func();
2800 int main() {
2802 /* The GNU C library defines this for functions which it implements
2803 to always fail with ENOSYS. Some functions are actually named
2804 something starting with __ and the normal name is an alias. */
2805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2806 choke me
2807 #else
2808 $ac_func();
2809 #endif
2811 ; return 0; }
2813 if { (eval echo configure:2814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2814 rm -rf conftest*
2815 eval "ac_cv_func_$ac_func=yes"
2816 else
2817 echo "configure: failed program was:" >&5
2818 cat conftest.$ac_ext >&5
2819 rm -rf conftest*
2820 eval "ac_cv_func_$ac_func=no"
2822 rm -f conftest*
2825 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2826 echo "$ac_t""yes" 1>&6
2827 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2828 cat >> confdefs.h <<EOF
2829 #define $ac_tr_func 1
2832 else
2833 echo "$ac_t""no" 1>&6
2835 done
2837 for ac_func in inet_aton inet_addr
2839 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2840 echo "configure:2841: checking for $ac_func" >&5
2841 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2842 echo $ac_n "(cached) $ac_c" 1>&6
2843 else
2844 cat > conftest.$ac_ext <<EOF
2845 #line 2846 "configure"
2846 #include "confdefs.h"
2847 /* System header to define __stub macros and hopefully few prototypes,
2848 which can conflict with char $ac_func(); below. */
2849 #include <assert.h>
2850 /* Override any gcc2 internal prototype to avoid an error. */
2851 /* We use char because int might match the return type of a gcc2
2852 builtin and then its argument prototype would still apply. */
2853 char $ac_func();
2855 int main() {
2857 /* The GNU C library defines this for functions which it implements
2858 to always fail with ENOSYS. Some functions are actually named
2859 something starting with __ and the normal name is an alias. */
2860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2861 choke me
2862 #else
2863 $ac_func();
2864 #endif
2866 ; return 0; }
2868 if { (eval echo configure:2869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2869 rm -rf conftest*
2870 eval "ac_cv_func_$ac_func=yes"
2871 else
2872 echo "configure: failed program was:" >&5
2873 cat conftest.$ac_ext >&5
2874 rm -rf conftest*
2875 eval "ac_cv_func_$ac_func=no"
2877 rm -f conftest*
2880 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2881 echo "$ac_t""yes" 1>&6
2882 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2883 cat >> confdefs.h <<EOF
2884 #define $ac_tr_func 1
2886 break
2887 else
2888 echo "$ac_t""no" 1>&6
2890 done
2892 for ac_func in inet_pton uname inet_ntoa
2894 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2895 echo "configure:2896: checking for $ac_func" >&5
2896 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2897 echo $ac_n "(cached) $ac_c" 1>&6
2898 else
2899 cat > conftest.$ac_ext <<EOF
2900 #line 2901 "configure"
2901 #include "confdefs.h"
2902 /* System header to define __stub macros and hopefully few prototypes,
2903 which can conflict with char $ac_func(); below. */
2904 #include <assert.h>
2905 /* Override any gcc2 internal prototype to avoid an error. */
2906 /* We use char because int might match the return type of a gcc2
2907 builtin and then its argument prototype would still apply. */
2908 char $ac_func();
2910 int main() {
2912 /* The GNU C library defines this for functions which it implements
2913 to always fail with ENOSYS. Some functions are actually named
2914 something starting with __ and the normal name is an alias. */
2915 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2916 choke me
2917 #else
2918 $ac_func();
2919 #endif
2921 ; return 0; }
2923 if { (eval echo configure:2924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2924 rm -rf conftest*
2925 eval "ac_cv_func_$ac_func=yes"
2926 else
2927 echo "configure: failed program was:" >&5
2928 cat conftest.$ac_ext >&5
2929 rm -rf conftest*
2930 eval "ac_cv_func_$ac_func=no"
2932 rm -f conftest*
2935 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2936 echo "$ac_t""yes" 1>&6
2937 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2938 cat >> confdefs.h <<EOF
2939 #define $ac_tr_func 1
2942 else
2943 echo "$ac_t""no" 1>&6
2945 done
2947 for ac_func in backtrace fork execvp pipe
2949 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2950 echo "configure:2951: checking for $ac_func" >&5
2951 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2952 echo $ac_n "(cached) $ac_c" 1>&6
2953 else
2954 cat > conftest.$ac_ext <<EOF
2955 #line 2956 "configure"
2956 #include "confdefs.h"
2957 /* System header to define __stub macros and hopefully few prototypes,
2958 which can conflict with char $ac_func(); below. */
2959 #include <assert.h>
2960 /* Override any gcc2 internal prototype to avoid an error. */
2961 /* We use char because int might match the return type of a gcc2
2962 builtin and then its argument prototype would still apply. */
2963 char $ac_func();
2965 int main() {
2967 /* The GNU C library defines this for functions which it implements
2968 to always fail with ENOSYS. Some functions are actually named
2969 something starting with __ and the normal name is an alias. */
2970 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2971 choke me
2972 #else
2973 $ac_func();
2974 #endif
2976 ; return 0; }
2978 if { (eval echo configure:2979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2979 rm -rf conftest*
2980 eval "ac_cv_func_$ac_func=yes"
2981 else
2982 echo "configure: failed program was:" >&5
2983 cat conftest.$ac_ext >&5
2984 rm -rf conftest*
2985 eval "ac_cv_func_$ac_func=no"
2987 rm -f conftest*
2990 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2991 echo "$ac_t""yes" 1>&6
2992 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2993 cat >> confdefs.h <<EOF
2994 #define $ac_tr_func 1
2997 else
2998 echo "$ac_t""no" 1>&6
3000 done
3002 for ac_hdr in execinfo.h unistd.h dlfcn.h
3004 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3005 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3006 echo "configure:3007: checking for $ac_hdr" >&5
3007 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3008 echo $ac_n "(cached) $ac_c" 1>&6
3009 else
3010 cat > conftest.$ac_ext <<EOF
3011 #line 3012 "configure"
3012 #include "confdefs.h"
3013 #include <$ac_hdr>
3015 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3016 { (eval echo configure:3017: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3017 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3018 if test -z "$ac_err"; then
3019 rm -rf conftest*
3020 eval "ac_cv_header_$ac_safe=yes"
3021 else
3022 echo "$ac_err" >&5
3023 echo "configure: failed program was:" >&5
3024 cat conftest.$ac_ext >&5
3025 rm -rf conftest*
3026 eval "ac_cv_header_$ac_safe=no"
3028 rm -f conftest*
3030 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3031 echo "$ac_t""yes" 1>&6
3032 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3033 cat >> confdefs.h <<EOF
3034 #define $ac_tr_hdr 1
3037 else
3038 echo "$ac_t""no" 1>&6
3040 done
3042 echo $ac_n "checking for dladdr in -ldl""... $ac_c" 1>&6
3043 echo "configure:3044: checking for dladdr in -ldl" >&5
3044 ac_lib_var=`echo dl'_'dladdr | sed 'y%./+-%__p_%'`
3045 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3046 echo $ac_n "(cached) $ac_c" 1>&6
3047 else
3048 ac_save_LIBS="$LIBS"
3049 LIBS="-ldl $LIBS"
3050 cat > conftest.$ac_ext <<EOF
3051 #line 3052 "configure"
3052 #include "confdefs.h"
3053 /* Override any gcc2 internal prototype to avoid an error. */
3054 /* We use char because int might match the return type of a gcc2
3055 builtin and then its argument prototype would still apply. */
3056 char dladdr();
3058 int main() {
3059 dladdr()
3060 ; return 0; }
3062 if { (eval echo configure:3063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3063 rm -rf conftest*
3064 eval "ac_cv_lib_$ac_lib_var=yes"
3065 else
3066 echo "configure: failed program was:" >&5
3067 cat conftest.$ac_ext >&5
3068 rm -rf conftest*
3069 eval "ac_cv_lib_$ac_lib_var=no"
3071 rm -f conftest*
3072 LIBS="$ac_save_LIBS"
3075 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3076 echo "$ac_t""yes" 1>&6
3078 cat >> confdefs.h <<\EOF
3079 #define HAVE_DLADDR 1
3082 else
3083 echo "$ac_t""no" 1>&6
3086 for ac_file in /proc/self/exe
3089 ac_safe=`echo "$ac_file" | sed 'y%./+-%__p_%'`
3090 echo $ac_n "checking for $ac_file""... $ac_c" 1>&6
3091 echo "configure:3092: checking for $ac_file" >&5
3092 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
3093 echo $ac_n "(cached) $ac_c" 1>&6
3094 else
3095 if test "$cross_compiling" = yes; then
3096 { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
3097 else
3098 if test -r $ac_file; then
3099 eval "ac_cv_file_$ac_safe=yes"
3100 else
3101 eval "ac_cv_file_$ac_safe=no"
3105 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
3106 echo "$ac_t""yes" 1>&6
3107 ac_tr_file=HAVE_`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3108 cat >> confdefs.h <<EOF
3109 #define $ac_tr_file 1
3112 cat >> confdefs.h <<\EOF
3113 #define HAVE_PROC_SELF_EXE 1
3116 else
3117 echo "$ac_t""no" 1>&6
3120 done
3123 for ac_func in gethostbyname_r
3125 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3126 echo "configure:3127: checking for $ac_func" >&5
3127 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3128 echo $ac_n "(cached) $ac_c" 1>&6
3129 else
3130 cat > conftest.$ac_ext <<EOF
3131 #line 3132 "configure"
3132 #include "confdefs.h"
3133 /* System header to define __stub macros and hopefully few prototypes,
3134 which can conflict with char $ac_func(); below. */
3135 #include <assert.h>
3136 /* Override any gcc2 internal prototype to avoid an error. */
3137 /* We use char because int might match the return type of a gcc2
3138 builtin and then its argument prototype would still apply. */
3139 char $ac_func();
3141 int main() {
3143 /* The GNU C library defines this for functions which it implements
3144 to always fail with ENOSYS. Some functions are actually named
3145 something starting with __ and the normal name is an alias. */
3146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3147 choke me
3148 #else
3149 $ac_func();
3150 #endif
3152 ; return 0; }
3154 if { (eval echo configure:3155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3155 rm -rf conftest*
3156 eval "ac_cv_func_$ac_func=yes"
3157 else
3158 echo "configure: failed program was:" >&5
3159 cat conftest.$ac_ext >&5
3160 rm -rf conftest*
3161 eval "ac_cv_func_$ac_func=no"
3163 rm -f conftest*
3166 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3167 echo "$ac_t""yes" 1>&6
3168 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3169 cat >> confdefs.h <<EOF
3170 #define $ac_tr_func 1
3173 cat >> confdefs.h <<\EOF
3174 #define HAVE_GETHOSTBYNAME_R 1
3177 # There are two different kinds of gethostbyname_r.
3178 # We look for the one that returns `int'.
3179 # Hopefully this check is robust enough.
3180 cat > conftest.$ac_ext <<EOF
3181 #line 3182 "configure"
3182 #include "confdefs.h"
3183 #include <netdb.h>
3185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3186 egrep "int.*gethostbyname_r" >/dev/null 2>&1; then
3187 rm -rf conftest*
3189 cat >> confdefs.h <<\EOF
3190 #define GETHOSTBYNAME_R_RETURNS_INT 1
3194 rm -f conftest*
3197 case " $GCINCS " in
3198 *" -D_REENTRANT "*) ;;
3200 echo $ac_n "checking whether gethostbyname_r declaration requires -D_REENTRANT""... $ac_c" 1>&6
3201 echo "configure:3202: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
3202 if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
3203 echo $ac_n "(cached) $ac_c" 1>&6
3204 else
3206 ac_ext=C
3207 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3208 ac_cpp='$CXXCPP $CPPFLAGS'
3209 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3210 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3211 cross_compiling=$ac_cv_prog_cxx_cross
3213 cat > conftest.$ac_ext <<EOF
3214 #line 3215 "configure"
3215 #include "confdefs.h"
3216 #include <netdb.h>
3217 int main() {
3218 gethostbyname_r("", 0, 0);
3219 ; return 0; }
3221 if { (eval echo configure:3222: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3222 rm -rf conftest*
3223 libjava_cv_gethostbyname_r_needs_reentrant=no
3224 else
3225 echo "configure: failed program was:" >&5
3226 cat conftest.$ac_ext >&5
3227 rm -rf conftest*
3228 CPPFLAGS_SAVE="$CPPFLAGS"
3229 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
3230 cat > conftest.$ac_ext <<EOF
3231 #line 3232 "configure"
3232 #include "confdefs.h"
3233 #include <netdb.h>
3234 int main() {
3235 gethostbyname_r("", 0, 0);
3236 ; return 0; }
3238 if { (eval echo configure:3239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3239 rm -rf conftest*
3240 libjava_cv_gethostbyname_r_needs_reentrant=yes
3241 else
3242 echo "configure: failed program was:" >&5
3243 cat conftest.$ac_ext >&5
3244 rm -rf conftest*
3245 libjava_cv_gethostbyname_r_needs_reentrant=fail
3247 rm -f conftest*
3248 CPPFLAGS="$CPPFLAGS_SAVE"
3251 rm -f conftest*
3252 ac_ext=c
3253 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3254 ac_cpp='$CPP $CPPFLAGS'
3255 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3256 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3257 cross_compiling=$ac_cv_prog_cc_cross
3262 echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
3263 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
3264 cat >> confdefs.h <<\EOF
3265 #define _REENTRANT 1
3270 esac
3272 echo $ac_n "checking for struct hostent_data""... $ac_c" 1>&6
3273 echo "configure:3274: checking for struct hostent_data" >&5
3274 if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
3275 echo $ac_n "(cached) $ac_c" 1>&6
3276 else
3277 cat > conftest.$ac_ext <<EOF
3278 #line 3279 "configure"
3279 #include "confdefs.h"
3281 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
3282 # define _REENTRANT 1
3283 #endif
3284 #include <netdb.h>
3285 int main() {
3286 struct hostent_data data;
3287 ; return 0; }
3289 if { (eval echo configure:3290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3290 rm -rf conftest*
3291 libjava_cv_struct_hostent_data=yes
3292 else
3293 echo "configure: failed program was:" >&5
3294 cat conftest.$ac_ext >&5
3295 rm -rf conftest*
3296 libjava_cv_struct_hostent_data=no
3298 rm -f conftest*
3301 echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
3302 if test "x$libjava_cv_struct_hostent_data" = xyes; then
3303 cat >> confdefs.h <<\EOF
3304 #define HAVE_STRUCT_HOSTENT_DATA 1
3309 else
3310 echo "$ac_t""no" 1>&6
3312 done
3315 for ac_func in gethostbyaddr_r
3317 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3318 echo "configure:3319: checking for $ac_func" >&5
3319 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3320 echo $ac_n "(cached) $ac_c" 1>&6
3321 else
3322 cat > conftest.$ac_ext <<EOF
3323 #line 3324 "configure"
3324 #include "confdefs.h"
3325 /* System header to define __stub macros and hopefully few prototypes,
3326 which can conflict with char $ac_func(); below. */
3327 #include <assert.h>
3328 /* Override any gcc2 internal prototype to avoid an error. */
3329 /* We use char because int might match the return type of a gcc2
3330 builtin and then its argument prototype would still apply. */
3331 char $ac_func();
3333 int main() {
3335 /* The GNU C library defines this for functions which it implements
3336 to always fail with ENOSYS. Some functions are actually named
3337 something starting with __ and the normal name is an alias. */
3338 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3339 choke me
3340 #else
3341 $ac_func();
3342 #endif
3344 ; return 0; }
3346 if { (eval echo configure:3347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3347 rm -rf conftest*
3348 eval "ac_cv_func_$ac_func=yes"
3349 else
3350 echo "configure: failed program was:" >&5
3351 cat conftest.$ac_ext >&5
3352 rm -rf conftest*
3353 eval "ac_cv_func_$ac_func=no"
3355 rm -f conftest*
3358 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3359 echo "$ac_t""yes" 1>&6
3360 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3361 cat >> confdefs.h <<EOF
3362 #define $ac_tr_func 1
3365 cat >> confdefs.h <<\EOF
3366 #define HAVE_GETHOSTBYADDR_R 1
3369 # There are two different kinds of gethostbyaddr_r.
3370 # We look for the one that returns `int'.
3371 # Hopefully this check is robust enough.
3372 cat > conftest.$ac_ext <<EOF
3373 #line 3374 "configure"
3374 #include "confdefs.h"
3375 #include <netdb.h>
3377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3378 egrep "int.*gethostbyaddr_r" >/dev/null 2>&1; then
3379 rm -rf conftest*
3381 cat >> confdefs.h <<\EOF
3382 #define GETHOSTBYADDR_R_RETURNS_INT 1
3386 rm -f conftest*
3388 else
3389 echo "$ac_t""no" 1>&6
3391 done
3394 for ac_func in gethostname
3396 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3397 echo "configure:3398: checking for $ac_func" >&5
3398 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3399 echo $ac_n "(cached) $ac_c" 1>&6
3400 else
3401 cat > conftest.$ac_ext <<EOF
3402 #line 3403 "configure"
3403 #include "confdefs.h"
3404 /* System header to define __stub macros and hopefully few prototypes,
3405 which can conflict with char $ac_func(); below. */
3406 #include <assert.h>
3407 /* Override any gcc2 internal prototype to avoid an error. */
3408 /* We use char because int might match the return type of a gcc2
3409 builtin and then its argument prototype would still apply. */
3410 char $ac_func();
3412 int main() {
3414 /* The GNU C library defines this for functions which it implements
3415 to always fail with ENOSYS. Some functions are actually named
3416 something starting with __ and the normal name is an alias. */
3417 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3418 choke me
3419 #else
3420 $ac_func();
3421 #endif
3423 ; return 0; }
3425 if { (eval echo configure:3426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3426 rm -rf conftest*
3427 eval "ac_cv_func_$ac_func=yes"
3428 else
3429 echo "configure: failed program was:" >&5
3430 cat conftest.$ac_ext >&5
3431 rm -rf conftest*
3432 eval "ac_cv_func_$ac_func=no"
3434 rm -f conftest*
3437 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3438 echo "$ac_t""yes" 1>&6
3439 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3440 cat >> confdefs.h <<EOF
3441 #define $ac_tr_func 1
3444 cat >> confdefs.h <<\EOF
3445 #define HAVE_GETHOSTNAME 1
3448 cat > conftest.$ac_ext <<EOF
3449 #line 3450 "configure"
3450 #include "confdefs.h"
3451 #include <unistd.h>
3453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3454 egrep "gethostname" >/dev/null 2>&1; then
3455 rm -rf conftest*
3457 cat >> confdefs.h <<\EOF
3458 #define HAVE_GETHOSTNAME_DECL 1
3462 rm -f conftest*
3464 else
3465 echo "$ac_t""no" 1>&6
3467 done
3470 # Look for these functions in the thread library, but only bother
3471 # if using POSIX threads.
3472 if test "$THREADS" = posix; then
3473 save_LIBS="$LIBS"
3474 LIBS="$LIBS $THREADLIBS"
3475 # Some POSIX thread systems don't have pthread_mutexattr_settype.
3476 # E.g., Solaris.
3477 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
3479 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3480 echo "configure:3481: checking for $ac_func" >&5
3481 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3482 echo $ac_n "(cached) $ac_c" 1>&6
3483 else
3484 cat > conftest.$ac_ext <<EOF
3485 #line 3486 "configure"
3486 #include "confdefs.h"
3487 /* System header to define __stub macros and hopefully few prototypes,
3488 which can conflict with char $ac_func(); below. */
3489 #include <assert.h>
3490 /* Override any gcc2 internal prototype to avoid an error. */
3491 /* We use char because int might match the return type of a gcc2
3492 builtin and then its argument prototype would still apply. */
3493 char $ac_func();
3495 int main() {
3497 /* The GNU C library defines this for functions which it implements
3498 to always fail with ENOSYS. Some functions are actually named
3499 something starting with __ and the normal name is an alias. */
3500 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3501 choke me
3502 #else
3503 $ac_func();
3504 #endif
3506 ; return 0; }
3508 if { (eval echo configure:3509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3509 rm -rf conftest*
3510 eval "ac_cv_func_$ac_func=yes"
3511 else
3512 echo "configure: failed program was:" >&5
3513 cat conftest.$ac_ext >&5
3514 rm -rf conftest*
3515 eval "ac_cv_func_$ac_func=no"
3517 rm -f conftest*
3520 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3521 echo "$ac_t""yes" 1>&6
3522 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3523 cat >> confdefs.h <<EOF
3524 #define $ac_tr_func 1
3527 else
3528 echo "$ac_t""no" 1>&6
3530 done
3533 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
3534 # Solaris 7 the name librt is preferred.
3535 for ac_func in sched_yield
3537 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3538 echo "configure:3539: checking for $ac_func" >&5
3539 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3540 echo $ac_n "(cached) $ac_c" 1>&6
3541 else
3542 cat > conftest.$ac_ext <<EOF
3543 #line 3544 "configure"
3544 #include "confdefs.h"
3545 /* System header to define __stub macros and hopefully few prototypes,
3546 which can conflict with char $ac_func(); below. */
3547 #include <assert.h>
3548 /* Override any gcc2 internal prototype to avoid an error. */
3549 /* We use char because int might match the return type of a gcc2
3550 builtin and then its argument prototype would still apply. */
3551 char $ac_func();
3553 int main() {
3555 /* The GNU C library defines this for functions which it implements
3556 to always fail with ENOSYS. Some functions are actually named
3557 something starting with __ and the normal name is an alias. */
3558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3559 choke me
3560 #else
3561 $ac_func();
3562 #endif
3564 ; return 0; }
3566 if { (eval echo configure:3567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3567 rm -rf conftest*
3568 eval "ac_cv_func_$ac_func=yes"
3569 else
3570 echo "configure: failed program was:" >&5
3571 cat conftest.$ac_ext >&5
3572 rm -rf conftest*
3573 eval "ac_cv_func_$ac_func=no"
3575 rm -f conftest*
3578 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3579 echo "$ac_t""yes" 1>&6
3580 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3581 cat >> confdefs.h <<EOF
3582 #define $ac_tr_func 1
3585 else
3586 echo "$ac_t""no" 1>&6
3587 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
3588 echo "configure:3589: checking for sched_yield in -lrt" >&5
3589 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
3590 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3591 echo $ac_n "(cached) $ac_c" 1>&6
3592 else
3593 ac_save_LIBS="$LIBS"
3594 LIBS="-lrt $LIBS"
3595 cat > conftest.$ac_ext <<EOF
3596 #line 3597 "configure"
3597 #include "confdefs.h"
3598 /* Override any gcc2 internal prototype to avoid an error. */
3599 /* We use char because int might match the return type of a gcc2
3600 builtin and then its argument prototype would still apply. */
3601 char sched_yield();
3603 int main() {
3604 sched_yield()
3605 ; return 0; }
3607 if { (eval echo configure:3608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3608 rm -rf conftest*
3609 eval "ac_cv_lib_$ac_lib_var=yes"
3610 else
3611 echo "configure: failed program was:" >&5
3612 cat conftest.$ac_ext >&5
3613 rm -rf conftest*
3614 eval "ac_cv_lib_$ac_lib_var=no"
3616 rm -f conftest*
3617 LIBS="$ac_save_LIBS"
3620 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3621 echo "$ac_t""yes" 1>&6
3623 cat >> confdefs.h <<\EOF
3624 #define HAVE_SCHED_YIELD 1
3627 THREADLIBS="$THREADLIBS -lrt"
3628 THREADSPEC="$THREADSPEC -lrt"
3629 else
3630 echo "$ac_t""no" 1>&6
3632 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
3633 echo "configure:3634: checking for sched_yield in -lposix4" >&5
3634 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
3635 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3636 echo $ac_n "(cached) $ac_c" 1>&6
3637 else
3638 ac_save_LIBS="$LIBS"
3639 LIBS="-lposix4 $LIBS"
3640 cat > conftest.$ac_ext <<EOF
3641 #line 3642 "configure"
3642 #include "confdefs.h"
3643 /* Override any gcc2 internal prototype to avoid an error. */
3644 /* We use char because int might match the return type of a gcc2
3645 builtin and then its argument prototype would still apply. */
3646 char sched_yield();
3648 int main() {
3649 sched_yield()
3650 ; return 0; }
3652 if { (eval echo configure:3653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3653 rm -rf conftest*
3654 eval "ac_cv_lib_$ac_lib_var=yes"
3655 else
3656 echo "configure: failed program was:" >&5
3657 cat conftest.$ac_ext >&5
3658 rm -rf conftest*
3659 eval "ac_cv_lib_$ac_lib_var=no"
3661 rm -f conftest*
3662 LIBS="$ac_save_LIBS"
3665 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3666 echo "$ac_t""yes" 1>&6
3668 cat >> confdefs.h <<\EOF
3669 #define HAVE_SCHED_YIELD 1
3672 THREADLIBS="$THREADLIBS -lposix4"
3673 THREADSPEC="$THREADSPEC -lposix4"
3674 else
3675 echo "$ac_t""no" 1>&6
3681 done
3683 LIBS="$save_LIBS"
3685 # We can save a little space at runtime if the mutex has m_count
3686 # or __m_count. This is a nice hack for Linux.
3687 cat > conftest.$ac_ext <<EOF
3688 #line 3689 "configure"
3689 #include "confdefs.h"
3690 #include <pthread.h>
3691 int main() {
3693 extern pthread_mutex_t *mutex; int q = mutex->m_count;
3695 ; return 0; }
3697 if { (eval echo configure:3698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3698 rm -rf conftest*
3699 cat >> confdefs.h <<\EOF
3700 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
3703 else
3704 echo "configure: failed program was:" >&5
3705 cat conftest.$ac_ext >&5
3706 rm -rf conftest*
3708 cat > conftest.$ac_ext <<EOF
3709 #line 3710 "configure"
3710 #include "confdefs.h"
3711 #include <pthread.h>
3712 int main() {
3714 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
3716 ; return 0; }
3718 if { (eval echo configure:3719: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3719 rm -rf conftest*
3720 cat >> confdefs.h <<\EOF
3721 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
3724 else
3725 echo "configure: failed program was:" >&5
3726 cat conftest.$ac_ext >&5
3728 rm -f conftest*
3730 rm -f conftest*
3733 # We require a way to get the time.
3734 time_found=no
3735 for ac_func in gettimeofday time ftime
3737 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3738 echo "configure:3739: checking for $ac_func" >&5
3739 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3740 echo $ac_n "(cached) $ac_c" 1>&6
3741 else
3742 cat > conftest.$ac_ext <<EOF
3743 #line 3744 "configure"
3744 #include "confdefs.h"
3745 /* System header to define __stub macros and hopefully few prototypes,
3746 which can conflict with char $ac_func(); below. */
3747 #include <assert.h>
3748 /* Override any gcc2 internal prototype to avoid an error. */
3749 /* We use char because int might match the return type of a gcc2
3750 builtin and then its argument prototype would still apply. */
3751 char $ac_func();
3753 int main() {
3755 /* The GNU C library defines this for functions which it implements
3756 to always fail with ENOSYS. Some functions are actually named
3757 something starting with __ and the normal name is an alias. */
3758 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3759 choke me
3760 #else
3761 $ac_func();
3762 #endif
3764 ; return 0; }
3766 if { (eval echo configure:3767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3767 rm -rf conftest*
3768 eval "ac_cv_func_$ac_func=yes"
3769 else
3770 echo "configure: failed program was:" >&5
3771 cat conftest.$ac_ext >&5
3772 rm -rf conftest*
3773 eval "ac_cv_func_$ac_func=no"
3775 rm -f conftest*
3778 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3779 echo "$ac_t""yes" 1>&6
3780 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3781 cat >> confdefs.h <<EOF
3782 #define $ac_tr_func 1
3784 time_found=yes
3785 else
3786 echo "$ac_t""no" 1>&6
3788 done
3790 if test "$time_found" = no; then
3791 { echo "configure: error: no function found to get the time" 1>&2; exit 1; }
3794 for ac_func in memmove
3796 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3797 echo "configure:3798: checking for $ac_func" >&5
3798 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3799 echo $ac_n "(cached) $ac_c" 1>&6
3800 else
3801 cat > conftest.$ac_ext <<EOF
3802 #line 3803 "configure"
3803 #include "confdefs.h"
3804 /* System header to define __stub macros and hopefully few prototypes,
3805 which can conflict with char $ac_func(); below. */
3806 #include <assert.h>
3807 /* Override any gcc2 internal prototype to avoid an error. */
3808 /* We use char because int might match the return type of a gcc2
3809 builtin and then its argument prototype would still apply. */
3810 char $ac_func();
3812 int main() {
3814 /* The GNU C library defines this for functions which it implements
3815 to always fail with ENOSYS. Some functions are actually named
3816 something starting with __ and the normal name is an alias. */
3817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3818 choke me
3819 #else
3820 $ac_func();
3821 #endif
3823 ; return 0; }
3825 if { (eval echo configure:3826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3826 rm -rf conftest*
3827 eval "ac_cv_func_$ac_func=yes"
3828 else
3829 echo "configure: failed program was:" >&5
3830 cat conftest.$ac_ext >&5
3831 rm -rf conftest*
3832 eval "ac_cv_func_$ac_func=no"
3834 rm -f conftest*
3837 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3838 echo "$ac_t""yes" 1>&6
3839 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3840 cat >> confdefs.h <<EOF
3841 #define $ac_tr_func 1
3844 else
3845 echo "$ac_t""no" 1>&6
3847 done
3850 # We require memcpy.
3851 memcpy_found=no
3852 for ac_func in memcpy
3854 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3855 echo "configure:3856: checking for $ac_func" >&5
3856 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3857 echo $ac_n "(cached) $ac_c" 1>&6
3858 else
3859 cat > conftest.$ac_ext <<EOF
3860 #line 3861 "configure"
3861 #include "confdefs.h"
3862 /* System header to define __stub macros and hopefully few prototypes,
3863 which can conflict with char $ac_func(); below. */
3864 #include <assert.h>
3865 /* Override any gcc2 internal prototype to avoid an error. */
3866 /* We use char because int might match the return type of a gcc2
3867 builtin and then its argument prototype would still apply. */
3868 char $ac_func();
3870 int main() {
3872 /* The GNU C library defines this for functions which it implements
3873 to always fail with ENOSYS. Some functions are actually named
3874 something starting with __ and the normal name is an alias. */
3875 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3876 choke me
3877 #else
3878 $ac_func();
3879 #endif
3881 ; return 0; }
3883 if { (eval echo configure:3884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3884 rm -rf conftest*
3885 eval "ac_cv_func_$ac_func=yes"
3886 else
3887 echo "configure: failed program was:" >&5
3888 cat conftest.$ac_ext >&5
3889 rm -rf conftest*
3890 eval "ac_cv_func_$ac_func=no"
3892 rm -f conftest*
3895 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3896 echo "$ac_t""yes" 1>&6
3897 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3898 cat >> confdefs.h <<EOF
3899 #define $ac_tr_func 1
3901 memcpy_found=yes
3902 else
3903 echo "$ac_t""no" 1>&6
3905 done
3907 if test "$memcpy_found" = no; then
3908 { echo "configure: error: memcpy is required" 1>&2; exit 1; }
3911 # Some library-finding code we stole from Tcl.
3912 #--------------------------------------------------------------------
3913 # Check for the existence of the -lsocket and -lnsl libraries.
3914 # The order here is important, so that they end up in the right
3915 # order in the command line generated by make. Here are some
3916 # special considerations:
3917 # 1. Use "connect" and "accept" to check for -lsocket, and
3918 # "gethostbyname" to check for -lnsl.
3919 # 2. Use each function name only once: can't redo a check because
3920 # autoconf caches the results of the last check and won't redo it.
3921 # 3. Use -lnsl and -lsocket only if they supply procedures that
3922 # aren't already present in the normal libraries. This is because
3923 # IRIX 5.2 has libraries, but they aren't needed and they're
3924 # bogus: they goof up name resolution if used.
3925 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
3926 # To get around this problem, check for both libraries together
3927 # if -lsocket doesn't work by itself.
3928 #--------------------------------------------------------------------
3930 echo $ac_n "checking for socket libraries""... $ac_c" 1>&6
3931 echo "configure:3932: checking for socket libraries" >&5
3932 if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
3933 echo $ac_n "(cached) $ac_c" 1>&6
3934 else
3935 gcj_cv_lib_sockets=
3936 gcj_checkBoth=0
3937 unset ac_cv_func_connect
3938 echo $ac_n "checking for connect""... $ac_c" 1>&6
3939 echo "configure:3940: checking for connect" >&5
3940 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3941 echo $ac_n "(cached) $ac_c" 1>&6
3942 else
3943 cat > conftest.$ac_ext <<EOF
3944 #line 3945 "configure"
3945 #include "confdefs.h"
3946 /* System header to define __stub macros and hopefully few prototypes,
3947 which can conflict with char connect(); below. */
3948 #include <assert.h>
3949 /* Override any gcc2 internal prototype to avoid an error. */
3950 /* We use char because int might match the return type of a gcc2
3951 builtin and then its argument prototype would still apply. */
3952 char connect();
3954 int main() {
3956 /* The GNU C library defines this for functions which it implements
3957 to always fail with ENOSYS. Some functions are actually named
3958 something starting with __ and the normal name is an alias. */
3959 #if defined (__stub_connect) || defined (__stub___connect)
3960 choke me
3961 #else
3962 connect();
3963 #endif
3965 ; return 0; }
3967 if { (eval echo configure:3968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3968 rm -rf conftest*
3969 eval "ac_cv_func_connect=yes"
3970 else
3971 echo "configure: failed program was:" >&5
3972 cat conftest.$ac_ext >&5
3973 rm -rf conftest*
3974 eval "ac_cv_func_connect=no"
3976 rm -f conftest*
3979 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3980 echo "$ac_t""yes" 1>&6
3981 gcj_checkSocket=0
3982 else
3983 echo "$ac_t""no" 1>&6
3984 gcj_checkSocket=1
3987 if test "$gcj_checkSocket" = 1; then
3988 unset ac_cv_func_connect
3989 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
3990 echo "configure:3991: checking for main in -lsocket" >&5
3991 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
3992 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3993 echo $ac_n "(cached) $ac_c" 1>&6
3994 else
3995 ac_save_LIBS="$LIBS"
3996 LIBS="-lsocket $LIBS"
3997 cat > conftest.$ac_ext <<EOF
3998 #line 3999 "configure"
3999 #include "confdefs.h"
4001 int main() {
4002 main()
4003 ; return 0; }
4005 if { (eval echo configure:4006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4006 rm -rf conftest*
4007 eval "ac_cv_lib_$ac_lib_var=yes"
4008 else
4009 echo "configure: failed program was:" >&5
4010 cat conftest.$ac_ext >&5
4011 rm -rf conftest*
4012 eval "ac_cv_lib_$ac_lib_var=no"
4014 rm -f conftest*
4015 LIBS="$ac_save_LIBS"
4018 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4019 echo "$ac_t""yes" 1>&6
4020 gcj_cv_lib_sockets="-lsocket"
4021 else
4022 echo "$ac_t""no" 1>&6
4023 gcj_checkBoth=1
4027 if test "$gcj_checkBoth" = 1; then
4028 gcj_oldLibs=$LIBS
4029 LIBS="$LIBS -lsocket -lnsl"
4030 unset ac_cv_func_accept
4031 echo $ac_n "checking for accept""... $ac_c" 1>&6
4032 echo "configure:4033: checking for accept" >&5
4033 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
4034 echo $ac_n "(cached) $ac_c" 1>&6
4035 else
4036 cat > conftest.$ac_ext <<EOF
4037 #line 4038 "configure"
4038 #include "confdefs.h"
4039 /* System header to define __stub macros and hopefully few prototypes,
4040 which can conflict with char accept(); below. */
4041 #include <assert.h>
4042 /* Override any gcc2 internal prototype to avoid an error. */
4043 /* We use char because int might match the return type of a gcc2
4044 builtin and then its argument prototype would still apply. */
4045 char accept();
4047 int main() {
4049 /* The GNU C library defines this for functions which it implements
4050 to always fail with ENOSYS. Some functions are actually named
4051 something starting with __ and the normal name is an alias. */
4052 #if defined (__stub_accept) || defined (__stub___accept)
4053 choke me
4054 #else
4055 accept();
4056 #endif
4058 ; return 0; }
4060 if { (eval echo configure:4061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4061 rm -rf conftest*
4062 eval "ac_cv_func_accept=yes"
4063 else
4064 echo "configure: failed program was:" >&5
4065 cat conftest.$ac_ext >&5
4066 rm -rf conftest*
4067 eval "ac_cv_func_accept=no"
4069 rm -f conftest*
4072 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
4073 echo "$ac_t""yes" 1>&6
4074 gcj_checkNsl=0
4075 gcj_cv_lib_sockets="-lsocket -lnsl"
4076 else
4077 echo "$ac_t""no" 1>&6
4080 unset ac_cv_func_accept
4081 LIBS=$gcj_oldLibs
4083 unset ac_cv_func_gethostbyname
4084 gcj_oldLibs=$LIBS
4085 LIBS="$LIBS $gcj_cv_lib_sockets"
4086 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4087 echo "configure:4088: checking for gethostbyname" >&5
4088 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
4089 echo $ac_n "(cached) $ac_c" 1>&6
4090 else
4091 cat > conftest.$ac_ext <<EOF
4092 #line 4093 "configure"
4093 #include "confdefs.h"
4094 /* System header to define __stub macros and hopefully few prototypes,
4095 which can conflict with char gethostbyname(); below. */
4096 #include <assert.h>
4097 /* Override any gcc2 internal prototype to avoid an error. */
4098 /* We use char because int might match the return type of a gcc2
4099 builtin and then its argument prototype would still apply. */
4100 char gethostbyname();
4102 int main() {
4104 /* The GNU C library defines this for functions which it implements
4105 to always fail with ENOSYS. Some functions are actually named
4106 something starting with __ and the normal name is an alias. */
4107 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4108 choke me
4109 #else
4110 gethostbyname();
4111 #endif
4113 ; return 0; }
4115 if { (eval echo configure:4116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4116 rm -rf conftest*
4117 eval "ac_cv_func_gethostbyname=yes"
4118 else
4119 echo "configure: failed program was:" >&5
4120 cat conftest.$ac_ext >&5
4121 rm -rf conftest*
4122 eval "ac_cv_func_gethostbyname=no"
4124 rm -f conftest*
4127 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
4128 echo "$ac_t""yes" 1>&6
4130 else
4131 echo "$ac_t""no" 1>&6
4132 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4133 echo "configure:4134: checking for main in -lnsl" >&5
4134 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
4135 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4136 echo $ac_n "(cached) $ac_c" 1>&6
4137 else
4138 ac_save_LIBS="$LIBS"
4139 LIBS="-lnsl $LIBS"
4140 cat > conftest.$ac_ext <<EOF
4141 #line 4142 "configure"
4142 #include "confdefs.h"
4144 int main() {
4145 main()
4146 ; return 0; }
4148 if { (eval echo configure:4149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4149 rm -rf conftest*
4150 eval "ac_cv_lib_$ac_lib_var=yes"
4151 else
4152 echo "configure: failed program was:" >&5
4153 cat conftest.$ac_ext >&5
4154 rm -rf conftest*
4155 eval "ac_cv_lib_$ac_lib_var=no"
4157 rm -f conftest*
4158 LIBS="$ac_save_LIBS"
4161 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4162 echo "$ac_t""yes" 1>&6
4163 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
4164 else
4165 echo "$ac_t""no" 1>&6
4170 unset ac_cv_func_gethostbyname
4171 LIBS=$gcj_oldLIBS
4175 echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
4176 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
4178 if test "$with_system_zlib" = yes; then
4179 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
4180 echo "configure:4181: checking for deflate in -lz" >&5
4181 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
4182 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4183 echo $ac_n "(cached) $ac_c" 1>&6
4184 else
4185 ac_save_LIBS="$LIBS"
4186 LIBS="-lz $LIBS"
4187 cat > conftest.$ac_ext <<EOF
4188 #line 4189 "configure"
4189 #include "confdefs.h"
4190 /* Override any gcc2 internal prototype to avoid an error. */
4191 /* We use char because int might match the return type of a gcc2
4192 builtin and then its argument prototype would still apply. */
4193 char deflate();
4195 int main() {
4196 deflate()
4197 ; return 0; }
4199 if { (eval echo configure:4200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4200 rm -rf conftest*
4201 eval "ac_cv_lib_$ac_lib_var=yes"
4202 else
4203 echo "configure: failed program was:" >&5
4204 cat conftest.$ac_ext >&5
4205 rm -rf conftest*
4206 eval "ac_cv_lib_$ac_lib_var=no"
4208 rm -f conftest*
4209 LIBS="$ac_save_LIBS"
4212 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4213 echo "$ac_t""yes" 1>&6
4214 ZLIBSPEC=-lz
4215 else
4216 echo "$ac_t""no" 1>&6
4217 ZLIBSPEC=-lzgcj
4220 else
4221 ZLIBSPEC=-lzgcj
4222 ZLIBTESTSPEC="-L`pwd`/../zlib/.libs -rpath `pwd`/../zlib/.libs"
4225 # On Solaris, and maybe other architectures, the Boehm collector
4226 # requires -ldl.
4227 if test "$GC" = boehm; then
4228 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
4229 echo "configure:4230: checking for main in -ldl" >&5
4230 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
4231 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4232 echo $ac_n "(cached) $ac_c" 1>&6
4233 else
4234 ac_save_LIBS="$LIBS"
4235 LIBS="-ldl $LIBS"
4236 cat > conftest.$ac_ext <<EOF
4237 #line 4238 "configure"
4238 #include "confdefs.h"
4240 int main() {
4241 main()
4242 ; return 0; }
4244 if { (eval echo configure:4245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4245 rm -rf conftest*
4246 eval "ac_cv_lib_$ac_lib_var=yes"
4247 else
4248 echo "configure: failed program was:" >&5
4249 cat conftest.$ac_ext >&5
4250 rm -rf conftest*
4251 eval "ac_cv_lib_$ac_lib_var=no"
4253 rm -f conftest*
4254 LIBS="$ac_save_LIBS"
4257 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4258 echo "$ac_t""yes" 1>&6
4259 SYSTEMSPEC="$SYSTEMSPEC -ldl"
4260 else
4261 echo "$ac_t""no" 1>&6
4266 if test -d "$libgcj_basedir/../gcc/java"; then
4267 GCJ=
4268 else
4269 CANADIAN=yes
4270 NULL_TARGET=yes
4271 GCJ=gcj
4275 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4276 echo "configure:4277: checking size of void *" >&5
4277 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
4278 echo $ac_n "(cached) $ac_c" 1>&6
4279 else
4280 if test "$cross_compiling" = yes; then
4281 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4282 else
4283 cat > conftest.$ac_ext <<EOF
4284 #line 4285 "configure"
4285 #include "confdefs.h"
4286 #include <stdio.h>
4287 main()
4289 FILE *f=fopen("conftestval", "w");
4290 if (!f) exit(1);
4291 fprintf(f, "%d\n", sizeof(void *));
4292 exit(0);
4295 if { (eval echo configure:4296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4296 then
4297 ac_cv_sizeof_void_p=`cat conftestval`
4298 else
4299 echo "configure: failed program was:" >&5
4300 cat conftest.$ac_ext >&5
4301 rm -fr conftest*
4302 ac_cv_sizeof_void_p=0
4304 rm -fr conftest*
4308 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
4309 cat >> confdefs.h <<EOF
4310 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4315 ZLIBS=
4316 ZDEPS=
4317 ZINCS=
4318 if test "x$ZLIBSPEC" = "x-lzgcj"; then
4319 # We include the path to the zlib build directory.
4320 # See Makefile.am to understand why.
4321 ZDEPS='$(top_builddir)/../zlib/libzgcj.la'
4322 ZLIBS="$ZDEPS -L\$(here)/../zlib/$libsubdir"
4323 ZINCS='-I$(top_srcdir)/../zlib'
4324 else
4325 ZLIBS="$ZLIBSPEC"
4336 if test "$CANADIAN" = yes; then
4337 CANADIAN_TRUE=
4338 CANADIAN_FALSE='#'
4339 else
4340 CANADIAN_TRUE='#'
4341 CANADIAN_FALSE=
4345 if test "$NULL_TARGET" = yes; then
4346 NULL_TARGET_TRUE=
4347 NULL_TARGET_FALSE='#'
4348 else
4349 NULL_TARGET_TRUE='#'
4350 NULL_TARGET_FALSE=
4354 if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
4355 NATIVE_TRUE=
4356 NATIVE_FALSE='#'
4357 else
4358 NATIVE_TRUE='#'
4359 NATIVE_FALSE=
4363 if test -z "$with_cross_host"; then
4364 USE_LIBDIR_TRUE=
4365 USE_LIBDIR_FALSE='#'
4366 else
4367 USE_LIBDIR_TRUE='#'
4368 USE_LIBDIR_FALSE=
4372 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
4373 NEEDS_DATA_START_TRUE=
4374 NEEDS_DATA_START_FALSE='#'
4375 else
4376 NEEDS_DATA_START_TRUE='#'
4377 NEEDS_DATA_START_FALSE=
4381 # Determine gcj version number.
4382 if test "$GCJ" = ""; then
4383 if test -z "${with_multisubdir}"; then
4384 builddotdot=.
4385 else
4387 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
4390 dir="`cd ${builddotdot}/../../gcc && pwd`"
4391 GCJ="$dir/gcj -B$dir/"
4394 gcjvers="`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`"
4396 cat >> confdefs.h <<EOF
4397 #define GCJVERSION "$gcjvers"
4401 # See if gcj supports -fuse-divide-subroutine. gcc 2.95 does not, and
4402 # we want to continue to support that version.
4403 echo $ac_n "checking whether gcj supports -fuse-divide-subroutine""... $ac_c" 1>&6
4404 echo "configure:4405: checking whether gcj supports -fuse-divide-subroutine" >&5
4405 cat > conftest.java << 'END'
4406 public class conftest { }
4408 use_fuse=yes
4409 $GCJ -classpath $srcdir -fuse-divide-subroutine -fsyntax-only \
4410 conftest.java > /dev/null 2>&1 \
4411 || use_fuse=no
4412 rm -f conftest.java
4413 if test "$use_fuse" = no; then
4414 DIVIDESPEC=
4416 echo "$ac_t""$use_fuse" 1>&6
4420 echo $ac_n "checking for g++ -ffloat-store bug""... $ac_c" 1>&6
4421 echo "configure:4422: checking for g++ -ffloat-store bug" >&5
4422 save_CFLAGS="$CFLAGS"
4423 CFLAGS="-x c++ -O2 -ffloat-store"
4424 cat > conftest.$ac_ext <<EOF
4425 #line 4426 "configure"
4426 #include "confdefs.h"
4427 #include <math.h>
4428 int main() {
4430 ; return 0; }
4432 if { (eval echo configure:4433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4433 rm -rf conftest*
4434 echo "$ac_t""no" 1>&6
4435 else
4436 echo "configure: failed program was:" >&5
4437 cat conftest.$ac_ext >&5
4438 rm -rf conftest*
4439 cat >> confdefs.h <<\EOF
4440 #define __NO_MATH_INLINES 1
4443 echo "$ac_t""yes" 1>&6
4445 rm -f conftest*
4446 CFLAGS="$save_CFLAGS"
4448 for ac_hdr in unistd.h bstring.h sys/time.h sys/types.h fcntl.h sys/ioctl.h sys/filio.h sys/stat.h sys/select.h sys/socket.h netinet/in.h arpa/inet.h netdb.h pwd.h sys/config.h inttypes.h stdint.h
4450 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4451 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4452 echo "configure:4453: checking for $ac_hdr" >&5
4453 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4454 echo $ac_n "(cached) $ac_c" 1>&6
4455 else
4456 cat > conftest.$ac_ext <<EOF
4457 #line 4458 "configure"
4458 #include "confdefs.h"
4459 #include <$ac_hdr>
4461 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4462 { (eval echo configure:4463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4463 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4464 if test -z "$ac_err"; then
4465 rm -rf conftest*
4466 eval "ac_cv_header_$ac_safe=yes"
4467 else
4468 echo "$ac_err" >&5
4469 echo "configure: failed program was:" >&5
4470 cat conftest.$ac_ext >&5
4471 rm -rf conftest*
4472 eval "ac_cv_header_$ac_safe=no"
4474 rm -f conftest*
4476 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4477 echo "$ac_t""yes" 1>&6
4478 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4479 cat >> confdefs.h <<EOF
4480 #define $ac_tr_hdr 1
4483 else
4484 echo "$ac_t""no" 1>&6
4486 done
4488 for ac_hdr in dirent.h
4490 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4491 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4492 echo "configure:4493: checking for $ac_hdr" >&5
4493 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4494 echo $ac_n "(cached) $ac_c" 1>&6
4495 else
4496 cat > conftest.$ac_ext <<EOF
4497 #line 4498 "configure"
4498 #include "confdefs.h"
4499 #include <$ac_hdr>
4501 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4502 { (eval echo configure:4503: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4503 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4504 if test -z "$ac_err"; then
4505 rm -rf conftest*
4506 eval "ac_cv_header_$ac_safe=yes"
4507 else
4508 echo "$ac_err" >&5
4509 echo "configure: failed program was:" >&5
4510 cat conftest.$ac_ext >&5
4511 rm -rf conftest*
4512 eval "ac_cv_header_$ac_safe=no"
4514 rm -f conftest*
4516 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4517 echo "$ac_t""yes" 1>&6
4518 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4519 cat >> confdefs.h <<EOF
4520 #define $ac_tr_hdr 1
4523 else
4524 echo "$ac_t""no" 1>&6
4526 done
4529 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4530 echo "configure:4531: checking for ANSI C header files" >&5
4531 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
4532 echo $ac_n "(cached) $ac_c" 1>&6
4533 else
4534 cat > conftest.$ac_ext <<EOF
4535 #line 4536 "configure"
4536 #include "confdefs.h"
4537 #include <stdlib.h>
4538 #include <stdarg.h>
4539 #include <string.h>
4540 #include <float.h>
4542 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4543 { (eval echo configure:4544: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4544 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4545 if test -z "$ac_err"; then
4546 rm -rf conftest*
4547 ac_cv_header_stdc=yes
4548 else
4549 echo "$ac_err" >&5
4550 echo "configure: failed program was:" >&5
4551 cat conftest.$ac_ext >&5
4552 rm -rf conftest*
4553 ac_cv_header_stdc=no
4555 rm -f conftest*
4557 if test $ac_cv_header_stdc = yes; then
4558 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4559 cat > conftest.$ac_ext <<EOF
4560 #line 4561 "configure"
4561 #include "confdefs.h"
4562 #include <string.h>
4564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4565 egrep "memchr" >/dev/null 2>&1; then
4567 else
4568 rm -rf conftest*
4569 ac_cv_header_stdc=no
4571 rm -f conftest*
4575 if test $ac_cv_header_stdc = yes; then
4576 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4577 cat > conftest.$ac_ext <<EOF
4578 #line 4579 "configure"
4579 #include "confdefs.h"
4580 #include <stdlib.h>
4582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4583 egrep "free" >/dev/null 2>&1; then
4585 else
4586 rm -rf conftest*
4587 ac_cv_header_stdc=no
4589 rm -f conftest*
4593 if test $ac_cv_header_stdc = yes; then
4594 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4595 if test "$cross_compiling" = yes; then
4597 else
4598 cat > conftest.$ac_ext <<EOF
4599 #line 4600 "configure"
4600 #include "confdefs.h"
4601 #include <ctype.h>
4602 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4603 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4604 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4605 int main () { int i; for (i = 0; i < 256; i++)
4606 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4607 exit (0); }
4610 if { (eval echo configure:4611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4611 then
4613 else
4614 echo "configure: failed program was:" >&5
4615 cat conftest.$ac_ext >&5
4616 rm -fr conftest*
4617 ac_cv_header_stdc=no
4619 rm -fr conftest*
4625 echo "$ac_t""$ac_cv_header_stdc" 1>&6
4626 if test $ac_cv_header_stdc = yes; then
4627 cat >> confdefs.h <<\EOF
4628 #define STDC_HEADERS 1
4633 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
4634 echo "configure:4635: checking for ssize_t" >&5
4635 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
4636 echo $ac_n "(cached) $ac_c" 1>&6
4637 else
4638 cat > conftest.$ac_ext <<EOF
4639 #line 4640 "configure"
4640 #include "confdefs.h"
4641 #include <sys/types.h>
4642 #if STDC_HEADERS
4643 #include <stdlib.h>
4644 #include <stddef.h>
4645 #endif
4647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4648 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4649 rm -rf conftest*
4650 ac_cv_type_ssize_t=yes
4651 else
4652 rm -rf conftest*
4653 ac_cv_type_ssize_t=no
4655 rm -f conftest*
4658 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
4659 if test $ac_cv_type_ssize_t = no; then
4660 cat >> confdefs.h <<\EOF
4661 #define ssize_t int
4667 echo $ac_n "checking for in_addr_t""... $ac_c" 1>&6
4668 echo "configure:4669: checking for in_addr_t" >&5
4669 cat > conftest.$ac_ext <<EOF
4670 #line 4671 "configure"
4671 #include "confdefs.h"
4672 #include <sys/types.h>
4673 #if STDC_HEADERS
4674 #include <stdlib.h>
4675 #include <stddef.h>
4676 #endif
4677 #if HAVE_NETINET_IN_H
4678 #include <netinet/in.h>
4679 #endif
4680 int main() {
4681 in_addr_t foo;
4682 ; return 0; }
4684 if { (eval echo configure:4685: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4685 rm -rf conftest*
4686 cat >> confdefs.h <<\EOF
4687 #define HAVE_IN_ADDR_T 1
4690 echo "$ac_t""yes" 1>&6
4691 else
4692 echo "configure: failed program was:" >&5
4693 cat conftest.$ac_ext >&5
4694 rm -rf conftest*
4695 echo "$ac_t""no" 1>&6
4697 rm -f conftest*
4699 echo $ac_n "checking whether struct ip_mreq is in netinet/in.h""... $ac_c" 1>&6
4700 echo "configure:4701: checking whether struct ip_mreq is in netinet/in.h" >&5
4701 cat > conftest.$ac_ext <<EOF
4702 #line 4703 "configure"
4703 #include "confdefs.h"
4704 #include <netinet/in.h>
4705 int main() {
4706 struct ip_mreq mreq;
4707 ; return 0; }
4709 if { (eval echo configure:4710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4710 rm -rf conftest*
4711 cat >> confdefs.h <<\EOF
4712 #define HAVE_STRUCT_IP_MREQ 1
4715 echo "$ac_t""yes" 1>&6
4716 else
4717 echo "configure: failed program was:" >&5
4718 cat conftest.$ac_ext >&5
4719 rm -rf conftest*
4720 echo "$ac_t""no" 1>&6
4722 rm -f conftest*
4724 echo $ac_n "checking whether struct sockaddr_in6 is in netinet/in.h""... $ac_c" 1>&6
4725 echo "configure:4726: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
4726 cat > conftest.$ac_ext <<EOF
4727 #line 4728 "configure"
4728 #include "confdefs.h"
4729 #include <netinet/in.h>
4730 int main() {
4731 struct sockaddr_in6 addr6;
4732 ; return 0; }
4734 if { (eval echo configure:4735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4735 rm -rf conftest*
4736 cat >> confdefs.h <<\EOF
4737 #define HAVE_INET6 1
4740 echo "$ac_t""yes" 1>&6
4741 else
4742 echo "configure: failed program was:" >&5
4743 cat conftest.$ac_ext >&5
4744 rm -rf conftest*
4745 echo "$ac_t""no" 1>&6
4747 rm -f conftest*
4749 echo $ac_n "checking for socklen_t in sys/socket.h""... $ac_c" 1>&6
4750 echo "configure:4751: checking for socklen_t in sys/socket.h" >&5
4751 cat > conftest.$ac_ext <<EOF
4752 #line 4753 "configure"
4753 #include "confdefs.h"
4754 #include <sys/socket.h>
4755 int main() {
4756 socklen_t x = 5;
4757 ; return 0; }
4759 if { (eval echo configure:4760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4760 rm -rf conftest*
4761 cat >> confdefs.h <<\EOF
4762 #define HAVE_SOCKLEN_T 1
4765 echo "$ac_t""yes" 1>&6
4766 else
4767 echo "configure: failed program was:" >&5
4768 cat conftest.$ac_ext >&5
4769 rm -rf conftest*
4770 echo "$ac_t""no" 1>&6
4772 rm -f conftest*
4774 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
4775 echo "configure:4776: checking for tm_gmtoff in struct tm" >&5
4776 cat > conftest.$ac_ext <<EOF
4777 #line 4778 "configure"
4778 #include "confdefs.h"
4779 #include <time.h>
4780 int main() {
4781 struct tm tim; tim.tm_gmtoff = 0;
4782 ; return 0; }
4784 if { (eval echo configure:4785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4785 rm -rf conftest*
4786 cat >> confdefs.h <<\EOF
4787 #define STRUCT_TM_HAS_GMTOFF 1
4790 echo "$ac_t""yes" 1>&6
4791 else
4792 echo "configure: failed program was:" >&5
4793 cat conftest.$ac_ext >&5
4794 rm -rf conftest*
4795 echo "$ac_t""no" 1>&6
4796 echo $ac_n "checking for global timezone variable""... $ac_c" 1>&6
4797 echo "configure:4798: checking for global timezone variable" >&5
4798 cat > conftest.$ac_ext <<EOF
4799 #line 4800 "configure"
4800 #include "confdefs.h"
4801 #include <time.h>
4802 int main() {
4803 long z2 = timezone;
4804 ; return 0; }
4806 if { (eval echo configure:4807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4807 rm -rf conftest*
4808 cat >> confdefs.h <<\EOF
4809 #define HAVE_TIMEZONE 1
4812 echo "$ac_t""yes" 1>&6
4813 else
4814 echo "configure: failed program was:" >&5
4815 cat conftest.$ac_ext >&5
4816 rm -rf conftest*
4817 echo "$ac_t""no" 1>&6
4819 rm -f conftest*
4821 rm -f conftest*
4823 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4824 # for constant arguments. Useless!
4825 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4826 echo "configure:4827: checking for working alloca.h" >&5
4827 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4828 echo $ac_n "(cached) $ac_c" 1>&6
4829 else
4830 cat > conftest.$ac_ext <<EOF
4831 #line 4832 "configure"
4832 #include "confdefs.h"
4833 #include <alloca.h>
4834 int main() {
4835 char *p = alloca(2 * sizeof(int));
4836 ; return 0; }
4838 if { (eval echo configure:4839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4839 rm -rf conftest*
4840 ac_cv_header_alloca_h=yes
4841 else
4842 echo "configure: failed program was:" >&5
4843 cat conftest.$ac_ext >&5
4844 rm -rf conftest*
4845 ac_cv_header_alloca_h=no
4847 rm -f conftest*
4850 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4851 if test $ac_cv_header_alloca_h = yes; then
4852 cat >> confdefs.h <<\EOF
4853 #define HAVE_ALLOCA_H 1
4858 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4859 echo "configure:4860: checking for alloca" >&5
4860 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4861 echo $ac_n "(cached) $ac_c" 1>&6
4862 else
4863 cat > conftest.$ac_ext <<EOF
4864 #line 4865 "configure"
4865 #include "confdefs.h"
4867 #ifdef __GNUC__
4868 # define alloca __builtin_alloca
4869 #else
4870 # ifdef _MSC_VER
4871 # include <malloc.h>
4872 # define alloca _alloca
4873 # else
4874 # if HAVE_ALLOCA_H
4875 # include <alloca.h>
4876 # else
4877 # ifdef _AIX
4878 #pragma alloca
4879 # else
4880 # ifndef alloca /* predefined by HP cc +Olibcalls */
4881 char *alloca ();
4882 # endif
4883 # endif
4884 # endif
4885 # endif
4886 #endif
4888 int main() {
4889 char *p = (char *) alloca(1);
4890 ; return 0; }
4892 if { (eval echo configure:4893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4893 rm -rf conftest*
4894 ac_cv_func_alloca_works=yes
4895 else
4896 echo "configure: failed program was:" >&5
4897 cat conftest.$ac_ext >&5
4898 rm -rf conftest*
4899 ac_cv_func_alloca_works=no
4901 rm -f conftest*
4904 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4905 if test $ac_cv_func_alloca_works = yes; then
4906 cat >> confdefs.h <<\EOF
4907 #define HAVE_ALLOCA 1
4912 if test $ac_cv_func_alloca_works = no; then
4913 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4914 # that cause trouble. Some versions do not even contain alloca or
4915 # contain a buggy version. If you still want to use their alloca,
4916 # use ar to extract alloca.o from them instead of compiling alloca.c.
4917 ALLOCA=alloca.${ac_objext}
4918 cat >> confdefs.h <<\EOF
4919 #define C_ALLOCA 1
4923 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4924 echo "configure:4925: checking whether alloca needs Cray hooks" >&5
4925 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4926 echo $ac_n "(cached) $ac_c" 1>&6
4927 else
4928 cat > conftest.$ac_ext <<EOF
4929 #line 4930 "configure"
4930 #include "confdefs.h"
4931 #if defined(CRAY) && ! defined(CRAY2)
4932 webecray
4933 #else
4934 wenotbecray
4935 #endif
4938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4939 egrep "webecray" >/dev/null 2>&1; then
4940 rm -rf conftest*
4941 ac_cv_os_cray=yes
4942 else
4943 rm -rf conftest*
4944 ac_cv_os_cray=no
4946 rm -f conftest*
4950 echo "$ac_t""$ac_cv_os_cray" 1>&6
4951 if test $ac_cv_os_cray = yes; then
4952 for ac_func in _getb67 GETB67 getb67; do
4953 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4954 echo "configure:4955: checking for $ac_func" >&5
4955 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4956 echo $ac_n "(cached) $ac_c" 1>&6
4957 else
4958 cat > conftest.$ac_ext <<EOF
4959 #line 4960 "configure"
4960 #include "confdefs.h"
4961 /* System header to define __stub macros and hopefully few prototypes,
4962 which can conflict with char $ac_func(); below. */
4963 #include <assert.h>
4964 /* Override any gcc2 internal prototype to avoid an error. */
4965 /* We use char because int might match the return type of a gcc2
4966 builtin and then its argument prototype would still apply. */
4967 char $ac_func();
4969 int main() {
4971 /* The GNU C library defines this for functions which it implements
4972 to always fail with ENOSYS. Some functions are actually named
4973 something starting with __ and the normal name is an alias. */
4974 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4975 choke me
4976 #else
4977 $ac_func();
4978 #endif
4980 ; return 0; }
4982 if { (eval echo configure:4983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4983 rm -rf conftest*
4984 eval "ac_cv_func_$ac_func=yes"
4985 else
4986 echo "configure: failed program was:" >&5
4987 cat conftest.$ac_ext >&5
4988 rm -rf conftest*
4989 eval "ac_cv_func_$ac_func=no"
4991 rm -f conftest*
4994 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4995 echo "$ac_t""yes" 1>&6
4996 cat >> confdefs.h <<EOF
4997 #define CRAY_STACKSEG_END $ac_func
5000 break
5001 else
5002 echo "$ac_t""no" 1>&6
5005 done
5008 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5009 echo "configure:5010: checking stack direction for C alloca" >&5
5010 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5011 echo $ac_n "(cached) $ac_c" 1>&6
5012 else
5013 if test "$cross_compiling" = yes; then
5014 ac_cv_c_stack_direction=0
5015 else
5016 cat > conftest.$ac_ext <<EOF
5017 #line 5018 "configure"
5018 #include "confdefs.h"
5019 find_stack_direction ()
5021 static char *addr = 0;
5022 auto char dummy;
5023 if (addr == 0)
5025 addr = &dummy;
5026 return find_stack_direction ();
5028 else
5029 return (&dummy > addr) ? 1 : -1;
5031 main ()
5033 exit (find_stack_direction() < 0);
5036 if { (eval echo configure:5037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5037 then
5038 ac_cv_c_stack_direction=1
5039 else
5040 echo "configure: failed program was:" >&5
5041 cat conftest.$ac_ext >&5
5042 rm -fr conftest*
5043 ac_cv_c_stack_direction=-1
5045 rm -fr conftest*
5050 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5051 cat >> confdefs.h <<EOF
5052 #define STACK_DIRECTION $ac_cv_c_stack_direction
5058 for ac_prog in perl
5060 # Extract the first word of "$ac_prog", so it can be a program name with args.
5061 set dummy $ac_prog; ac_word=$2
5062 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5063 echo "configure:5064: checking for $ac_word" >&5
5064 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
5065 echo $ac_n "(cached) $ac_c" 1>&6
5066 else
5067 if test -n "$PERL"; then
5068 ac_cv_prog_PERL="$PERL" # Let the user override the test.
5069 else
5070 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5071 ac_dummy="$PATH"
5072 for ac_dir in $ac_dummy; do
5073 test -z "$ac_dir" && ac_dir=.
5074 if test -f $ac_dir/$ac_word; then
5075 ac_cv_prog_PERL="$ac_prog"
5076 break
5078 done
5079 IFS="$ac_save_ifs"
5082 PERL="$ac_cv_prog_PERL"
5083 if test -n "$PERL"; then
5084 echo "$ac_t""$PERL" 1>&6
5085 else
5086 echo "$ac_t""no" 1>&6
5089 test -n "$PERL" && break
5090 done
5091 test -n "$PERL" || PERL="false"
5094 SYSDEP_SOURCES=
5096 case "${host}" in
5097 i?86-*-linux*)
5098 SIGNAL_HANDLER=include/i386-signal.h
5100 sparc-sun-solaris*)
5101 SIGNAL_HANDLER=include/sparc-signal.h
5103 ia64-*)
5104 SYSDEP_SOURCES=sysdep/ia64.c
5105 test -d sysdep || mkdir sysdep
5108 SIGNAL_HANDLER=include/default-signal.h
5110 esac
5112 # If we're using sjlj exceptions, forget what we just learned.
5113 if test "$libgcj_sjlj" = yes; then
5114 SIGNAL_HANDLER=include/default-signal.h
5121 if test "${multilib}" = "yes"; then
5122 multilib_arg="--enable-multilib"
5123 else
5124 multilib_arg=
5127 here=`pwd`
5130 trap '' 1 2 15
5131 cat > confcache <<\EOF
5132 # This file is a shell script that caches the results of configure
5133 # tests run on this system so they can be shared between configure
5134 # scripts and configure runs. It is not useful on other systems.
5135 # If it contains results you don't want to keep, you may remove or edit it.
5137 # By default, configure uses ./config.cache as the cache file,
5138 # creating it if it does not exist already. You can give configure
5139 # the --cache-file=FILE option to use a different cache file; that is
5140 # what configure does when it calls configure scripts in
5141 # subdirectories, so they share the cache.
5142 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5143 # config.status only pays attention to the cache file if you give it the
5144 # --recheck option to rerun configure.
5147 # The following way of writing the cache mishandles newlines in values,
5148 # but we know of no workaround that is simple, portable, and efficient.
5149 # So, don't put newlines in cache variables' values.
5150 # Ultrix sh set writes to stderr and can't be redirected directly,
5151 # and sets the high bit in the cache file unless we assign to the vars.
5152 (set) 2>&1 |
5153 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5154 *ac_space=\ *)
5155 # `set' does not quote correctly, so add quotes (double-quote substitution
5156 # turns \\\\ into \\, and sed turns \\ into \).
5157 sed -n \
5158 -e "s/'/'\\\\''/g" \
5159 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5162 # `set' quotes correctly as required by POSIX, so do not add quotes.
5163 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5165 esac >> confcache
5166 if cmp -s $cache_file confcache; then
5168 else
5169 if test -w $cache_file; then
5170 echo "updating cache $cache_file"
5171 cat confcache > $cache_file
5172 else
5173 echo "not updating unwritable cache $cache_file"
5176 rm -f confcache
5178 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5180 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5181 # Let make expand exec_prefix.
5182 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5184 # Any assignment to VPATH causes Sun make to only execute
5185 # the first set of double-colon rules, so remove it if not needed.
5186 # If there is a colon in the path, we need to keep it.
5187 if test "x$srcdir" = x.; then
5188 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5191 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5193 DEFS=-DHAVE_CONFIG_H
5195 # Without the "./", some shells look in PATH for config.status.
5196 : ${CONFIG_STATUS=./config.status}
5198 echo creating $CONFIG_STATUS
5199 rm -f $CONFIG_STATUS
5200 cat > $CONFIG_STATUS <<EOF
5201 #! /bin/sh
5202 # Generated automatically by configure.
5203 # Run this file to recreate the current configuration.
5204 # This directory was configured as follows,
5205 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5207 # $0 $ac_configure_args
5209 # Compiler output produced by configure, useful for debugging
5210 # configure, is in ./config.log if it exists.
5212 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5213 for ac_option
5215 case "\$ac_option" in
5216 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5217 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5218 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5219 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5220 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5221 exit 0 ;;
5222 -help | --help | --hel | --he | --h)
5223 echo "\$ac_cs_usage"; exit 0 ;;
5224 *) echo "\$ac_cs_usage"; exit 1 ;;
5225 esac
5226 done
5228 ac_given_srcdir=$srcdir
5229 ac_given_INSTALL="$INSTALL"
5231 trap 'rm -fr `echo "Makefile libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5233 cat >> $CONFIG_STATUS <<EOF
5235 # Protect against being on the right side of a sed subst in config.status.
5236 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5237 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5238 $ac_vpsub
5239 $extrasub
5240 s%@SHELL@%$SHELL%g
5241 s%@CFLAGS@%$CFLAGS%g
5242 s%@CPPFLAGS@%$CPPFLAGS%g
5243 s%@CXXFLAGS@%$CXXFLAGS%g
5244 s%@FFLAGS@%$FFLAGS%g
5245 s%@DEFS@%$DEFS%g
5246 s%@LDFLAGS@%$LDFLAGS%g
5247 s%@LIBS@%$LIBS%g
5248 s%@exec_prefix@%$exec_prefix%g
5249 s%@prefix@%$prefix%g
5250 s%@program_transform_name@%$program_transform_name%g
5251 s%@bindir@%$bindir%g
5252 s%@sbindir@%$sbindir%g
5253 s%@libexecdir@%$libexecdir%g
5254 s%@datadir@%$datadir%g
5255 s%@sysconfdir@%$sysconfdir%g
5256 s%@sharedstatedir@%$sharedstatedir%g
5257 s%@localstatedir@%$localstatedir%g
5258 s%@libdir@%$libdir%g
5259 s%@includedir@%$includedir%g
5260 s%@oldincludedir@%$oldincludedir%g
5261 s%@infodir@%$infodir%g
5262 s%@mandir@%$mandir%g
5263 s%@host@%$host%g
5264 s%@host_alias@%$host_alias%g
5265 s%@host_cpu@%$host_cpu%g
5266 s%@host_vendor@%$host_vendor%g
5267 s%@host_os@%$host_os%g
5268 s%@target@%$target%g
5269 s%@target_alias@%$target_alias%g
5270 s%@target_cpu@%$target_cpu%g
5271 s%@target_vendor@%$target_vendor%g
5272 s%@target_os@%$target_os%g
5273 s%@build@%$build%g
5274 s%@build_alias@%$build_alias%g
5275 s%@build_cpu@%$build_cpu%g
5276 s%@build_vendor@%$build_vendor%g
5277 s%@build_os@%$build_os%g
5278 s%@libgcj_basedir@%$libgcj_basedir%g
5279 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5280 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5281 s%@INSTALL_DATA@%$INSTALL_DATA%g
5282 s%@PACKAGE@%$PACKAGE%g
5283 s%@VERSION@%$VERSION%g
5284 s%@ACLOCAL@%$ACLOCAL%g
5285 s%@AUTOCONF@%$AUTOCONF%g
5286 s%@AUTOMAKE@%$AUTOMAKE%g
5287 s%@AUTOHEADER@%$AUTOHEADER%g
5288 s%@MAKEINFO@%$MAKEINFO%g
5289 s%@SET_MAKE@%$SET_MAKE%g
5290 s%@CC@%$CC%g
5291 s%@CXX@%$CXX%g
5292 s%@AS@%$AS%g
5293 s%@AR@%$AR%g
5294 s%@RANLIB@%$RANLIB%g
5295 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5296 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5297 s%@MAINT@%$MAINT%g
5298 s%@EXEEXT@%$EXEEXT%g
5299 s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
5300 s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
5301 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
5302 s%@INCLTDL@%$INCLTDL%g
5303 s%@LIBLTDL@%$LIBLTDL%g
5304 s%@DIRLTDL@%$DIRLTDL%g
5305 s%@LN_S@%$LN_S%g
5306 s%@LIBTOOL@%$LIBTOOL%g
5307 s%@subdirs@%$subdirs%g
5308 s%@COMPPATH@%$COMPPATH%g
5309 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
5310 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
5311 s%@LIBDATASTARTSPEC@%$LIBDATASTARTSPEC%g
5312 s%@CPP@%$CPP%g
5313 s%@SYSTEMSPEC@%$SYSTEMSPEC%g
5314 s%@LIBGCJTESTSPEC@%$LIBGCJTESTSPEC%g
5315 s%@ZLIBSPEC@%$ZLIBSPEC%g
5316 s%@ZLIBTESTSPEC@%$ZLIBTESTSPEC%g
5317 s%@GCLIBS@%$GCLIBS%g
5318 s%@GCINCS@%$GCINCS%g
5319 s%@GCDEPS@%$GCDEPS%g
5320 s%@GCOBJS@%$GCOBJS%g
5321 s%@GCSPEC@%$GCSPEC%g
5322 s%@GCTESTSPEC@%$GCTESTSPEC%g
5323 s%@THREADLIBS@%$THREADLIBS%g
5324 s%@THREADINCS@%$THREADINCS%g
5325 s%@THREADDEPS@%$THREADDEPS%g
5326 s%@THREADOBJS@%$THREADOBJS%g
5327 s%@THREADSPEC@%$THREADSPEC%g
5328 s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
5329 s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
5330 s%@ZLIBS@%$ZLIBS%g
5331 s%@ZDEPS@%$ZDEPS%g
5332 s%@ZINCS@%$ZINCS%g
5333 s%@DIVIDESPEC@%$DIVIDESPEC%g
5334 s%@EXCEPTIONSPEC@%$EXCEPTIONSPEC%g
5335 s%@FORCELIBGCCSPEC@%$FORCELIBGCCSPEC%g
5336 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
5337 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
5338 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
5339 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
5340 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
5341 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
5342 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
5343 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
5344 s%@NEEDS_DATA_START_TRUE@%$NEEDS_DATA_START_TRUE%g
5345 s%@NEEDS_DATA_START_FALSE@%$NEEDS_DATA_START_FALSE%g
5346 s%@EH_COMMON_INCLUDE@%$EH_COMMON_INCLUDE%g
5347 s%@AM_RUNTESTFLAGS@%$AM_RUNTESTFLAGS%g
5348 s%@ALLOCA@%$ALLOCA%g
5349 s%@PERL@%$PERL%g
5350 s%@SYSDEP_SOURCES@%$SYSDEP_SOURCES%g
5351 s%@here@%$here%g
5353 CEOF
5356 cat >> $CONFIG_STATUS <<\EOF
5358 # Split the substitutions into bite-sized pieces for seds with
5359 # small command number limits, like on Digital OSF/1 and HP-UX.
5360 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5361 ac_file=1 # Number of current file.
5362 ac_beg=1 # First line for current file.
5363 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5364 ac_more_lines=:
5365 ac_sed_cmds=""
5366 while $ac_more_lines; do
5367 if test $ac_beg -gt 1; then
5368 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5369 else
5370 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5372 if test ! -s conftest.s$ac_file; then
5373 ac_more_lines=false
5374 rm -f conftest.s$ac_file
5375 else
5376 if test -z "$ac_sed_cmds"; then
5377 ac_sed_cmds="sed -f conftest.s$ac_file"
5378 else
5379 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5381 ac_file=`expr $ac_file + 1`
5382 ac_beg=$ac_end
5383 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5385 done
5386 if test -z "$ac_sed_cmds"; then
5387 ac_sed_cmds=cat
5391 cat >> $CONFIG_STATUS <<EOF
5393 CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile"}
5395 cat >> $CONFIG_STATUS <<\EOF
5396 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5397 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5398 case "$ac_file" in
5399 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5400 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5401 *) ac_file_in="${ac_file}.in" ;;
5402 esac
5404 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5406 # Remove last slash and all that follows it. Not all systems have dirname.
5407 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5408 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5409 # The file is in a subdirectory.
5410 test ! -d "$ac_dir" && mkdir "$ac_dir"
5411 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5412 # A "../" for each directory in $ac_dir_suffix.
5413 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5414 else
5415 ac_dir_suffix= ac_dots=
5418 case "$ac_given_srcdir" in
5419 .) srcdir=.
5420 if test -z "$ac_dots"; then top_srcdir=.
5421 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5422 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5423 *) # Relative path.
5424 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5425 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5426 esac
5428 case "$ac_given_INSTALL" in
5429 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5430 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5431 esac
5433 echo creating "$ac_file"
5434 rm -f "$ac_file"
5435 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5436 case "$ac_file" in
5437 *Makefile*) ac_comsub="1i\\
5438 # $configure_input" ;;
5439 *) ac_comsub= ;;
5440 esac
5442 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5443 sed -e "$ac_comsub
5444 s%@configure_input@%$configure_input%g
5445 s%@srcdir@%$srcdir%g
5446 s%@top_srcdir@%$top_srcdir%g
5447 s%@INSTALL@%$INSTALL%g
5448 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5449 fi; done
5450 rm -f conftest.s*
5452 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5453 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5455 # ac_d sets the value in "#define NAME VALUE" lines.
5456 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5457 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5458 ac_dC='\3'
5459 ac_dD='%g'
5460 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5461 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5462 ac_uB='\([ ]\)%\1#\2define\3'
5463 ac_uC=' '
5464 ac_uD='\4%g'
5465 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5466 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5467 ac_eB='$%\1#\2define\3'
5468 ac_eC=' '
5469 ac_eD='%g'
5471 if test "${CONFIG_HEADERS+set}" != set; then
5473 cat >> $CONFIG_STATUS <<EOF
5474 CONFIG_HEADERS="include/config.h"
5476 cat >> $CONFIG_STATUS <<\EOF
5478 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5479 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5480 case "$ac_file" in
5481 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5482 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5483 *) ac_file_in="${ac_file}.in" ;;
5484 esac
5486 echo creating $ac_file
5488 rm -f conftest.frag conftest.in conftest.out
5489 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5490 cat $ac_file_inputs > conftest.in
5494 # Transform confdefs.h into a sed script conftest.vals that substitutes
5495 # the proper values into config.h.in to produce config.h. And first:
5496 # Protect against being on the right side of a sed subst in config.status.
5497 # Protect against being in an unquoted here document in config.status.
5498 rm -f conftest.vals
5499 cat > conftest.hdr <<\EOF
5500 s/[\\&%]/\\&/g
5501 s%[\\$`]%\\&%g
5502 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5503 s%ac_d%ac_u%gp
5504 s%ac_u%ac_e%gp
5506 sed -n -f conftest.hdr confdefs.h > conftest.vals
5507 rm -f conftest.hdr
5509 # This sed command replaces #undef with comments. This is necessary, for
5510 # example, in the case of _POSIX_SOURCE, which is predefined and required
5511 # on some systems where configure will not decide to define it.
5512 cat >> conftest.vals <<\EOF
5513 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5516 # Break up conftest.vals because some shells have a limit on
5517 # the size of here documents, and old seds have small limits too.
5519 rm -f conftest.tail
5520 while :
5522 ac_lines=`grep -c . conftest.vals`
5523 # grep -c gives empty output for an empty file on some AIX systems.
5524 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5525 # Write a limited-size here document to conftest.frag.
5526 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5527 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5528 echo 'CEOF
5529 sed -f conftest.frag conftest.in > conftest.out
5530 rm -f conftest.in
5531 mv conftest.out conftest.in
5532 ' >> $CONFIG_STATUS
5533 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5534 rm -f conftest.vals
5535 mv conftest.tail conftest.vals
5536 done
5537 rm -f conftest.vals
5539 cat >> $CONFIG_STATUS <<\EOF
5540 rm -f conftest.frag conftest.h
5541 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5542 cat conftest.in >> conftest.h
5543 rm -f conftest.in
5544 if cmp -s $ac_file conftest.h 2>/dev/null; then
5545 echo "$ac_file is unchanged"
5546 rm -f conftest.h
5547 else
5548 # Remove last slash and all that follows it. Not all systems have dirname.
5549 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5550 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5551 # The file is in a subdirectory.
5552 test ! -d "$ac_dir" && mkdir "$ac_dir"
5554 rm -f $ac_file
5555 mv conftest.h $ac_file
5557 fi; done
5561 cat >> $CONFIG_STATUS <<EOF
5562 ac_sources="java/io/$FILE_DESCRIPTOR java/lang/${PROCESS}Process.java java/lang/nat${PROCESS}Process.cc include/$GCHDR include/$THREADH $SIGNAL_HANDLER"
5563 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"
5566 cat >> $CONFIG_STATUS <<\EOF
5567 srcdir=$ac_given_srcdir
5568 while test -n "$ac_sources"; do
5569 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5570 set $ac_sources; ac_source=$1; shift; ac_sources=$*
5572 echo "linking $srcdir/$ac_source to $ac_dest"
5574 if test ! -r $srcdir/$ac_source; then
5575 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
5577 rm -f $ac_dest
5579 # Make relative symlinks.
5580 # Remove last slash and all that follows it. Not all systems have dirname.
5581 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
5582 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
5583 # The dest file is in a subdirectory.
5584 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
5585 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
5586 # A "../" for each directory in $ac_dest_dir_suffix.
5587 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
5588 else
5589 ac_dest_dir_suffix= ac_dots=
5592 case "$srcdir" in
5593 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
5594 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
5595 esac
5597 # Make a symlink if possible; otherwise try a hard link.
5598 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
5599 ln $srcdir/$ac_source $ac_dest; then :
5600 else
5601 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
5603 done
5605 cat >> $CONFIG_STATUS <<EOF
5607 srcdir=${srcdir}
5608 host=${host}
5609 target=${target}
5610 with_multisubdir=${with_multisubdir}
5611 ac_configure_args="${multilib_arg} ${ac_configure_args}"
5612 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
5613 libgcj_basedir=${libgcj_basedir}
5614 CC="${CC}"
5615 CXX="${CXX}"
5618 cat >> $CONFIG_STATUS <<\EOF
5619 test -z "$CONFIG_HEADERS" || echo timestamp > include/stamp-h
5620 if test -n "$CONFIG_FILES"; then
5621 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
5623 exit 0
5625 chmod +x $CONFIG_STATUS
5626 rm -fr confdefs* $ac_clean_files
5627 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5629 if test "$no_recursion" != yes; then
5631 # Remove --cache-file and --srcdir arguments so they do not pile up.
5632 ac_sub_configure_args=
5633 ac_prev=
5634 for ac_arg in $ac_configure_args; do
5635 if test -n "$ac_prev"; then
5636 ac_prev=
5637 continue
5639 case "$ac_arg" in
5640 -cache-file | --cache-file | --cache-fil | --cache-fi \
5641 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
5642 ac_prev=cache_file ;;
5643 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
5644 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
5646 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
5647 ac_prev=srcdir ;;
5648 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5650 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
5651 esac
5652 done
5654 for ac_config_dir in $DIRLTDL; do
5656 # Do not complain, so a configure script can configure whichever
5657 # parts of a large source tree are present.
5658 if test ! -d $srcdir/$ac_config_dir; then
5659 continue
5662 echo configuring in $ac_config_dir
5664 case "$srcdir" in
5665 .) ;;
5667 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
5668 else
5669 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
5672 esac
5674 ac_popdir=`pwd`
5675 cd $ac_config_dir
5677 # A "../" for each directory in /$ac_config_dir.
5678 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
5680 case "$srcdir" in
5681 .) # No --srcdir option. We are building in place.
5682 ac_sub_srcdir=$srcdir ;;
5683 /*) # Absolute path.
5684 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
5685 *) # Relative path.
5686 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
5687 esac
5689 # Check for guested configure; otherwise get Cygnus style configure.
5690 if test -f $ac_sub_srcdir/configure; then
5691 ac_sub_configure=$ac_sub_srcdir/configure
5692 elif test -f $ac_sub_srcdir/configure.in; then
5693 ac_sub_configure=$ac_configure
5694 else
5695 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
5696 ac_sub_configure=
5699 # The recursion is here.
5700 if test -n "$ac_sub_configure"; then
5702 # Make the cache file name correct relative to the subdirectory.
5703 case "$cache_file" in
5704 /*) ac_sub_cache_file=$cache_file ;;
5705 *) # Relative path.
5706 ac_sub_cache_file="$ac_dots$cache_file" ;;
5707 esac
5708 case "$ac_given_INSTALL" in
5709 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5710 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5711 esac
5713 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
5714 # The eval makes quoting arguments work.
5715 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
5716 then :
5717 else
5718 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
5722 cd $ac_popdir
5723 done