Daily bump.
[official-gcc.git] / libjava / configure
blobf28388d2d0360de2e9faf3d5a0229e29c8db7e87
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 --enable-java-awt enable AWT implementation"
38 ac_help="$ac_help
39 --disable-getenv-properties
40 don't set system properties from GCJ_PROPERTIES"
41 ac_help="$ac_help
42 --enable-libgcj-debug enable runtime debugging code"
43 ac_help="$ac_help
44 --enable-interpreter enable interpreter"
45 ac_help="$ac_help
46 --enable-sjlj-exceptions use setjmp/longjmp exceptions"
47 ac_help="$ac_help
48 --disable-java-net disable java.net"
49 ac_help="$ac_help
50 --disable-jvmpi disable JVMPI support"
51 ac_help="$ac_help
52 --with-ecos enable runtime eCos target support"
53 ac_help="$ac_help
54 --with-system-zlib use installed libz"
55 ac_help="$ac_help
56 --enable-java-gc=TYPE choose garbage collector [boehm]"
57 ac_help="$ac_help
58 --enable-threads=TYPE choose threading package"
60 # Initialize some variables set by options.
61 # The variables have the same names as the options, with
62 # dashes changed to underlines.
63 build=NONE
64 cache_file=./config.cache
65 exec_prefix=NONE
66 host=NONE
67 no_create=
68 nonopt=NONE
69 no_recursion=
70 prefix=NONE
71 program_prefix=NONE
72 program_suffix=NONE
73 program_transform_name=s,x,x,
74 silent=
75 site=
76 sitefile=
77 srcdir=
78 target=NONE
79 verbose=
80 x_includes=NONE
81 x_libraries=NONE
82 bindir='${exec_prefix}/bin'
83 sbindir='${exec_prefix}/sbin'
84 libexecdir='${exec_prefix}/libexec'
85 datadir='${prefix}/share'
86 sysconfdir='${prefix}/etc'
87 sharedstatedir='${prefix}/com'
88 localstatedir='${prefix}/var'
89 libdir='${exec_prefix}/lib'
90 includedir='${prefix}/include'
91 oldincludedir='/usr/include'
92 infodir='${prefix}/info'
93 mandir='${prefix}/man'
95 # Initialize some other variables.
96 subdirs=
97 MFLAGS= MAKEFLAGS=
98 SHELL=${CONFIG_SHELL-/bin/sh}
99 # Maximum number of lines to put in a shell here document.
100 ac_max_here_lines=12
102 ac_prev=
103 for ac_option
106 # If the previous option needs an argument, assign it.
107 if test -n "$ac_prev"; then
108 eval "$ac_prev=\$ac_option"
109 ac_prev=
110 continue
113 case "$ac_option" in
114 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
115 *) ac_optarg= ;;
116 esac
118 # Accept the important Cygnus configure options, so we can diagnose typos.
120 case "$ac_option" in
122 -bindir | --bindir | --bindi | --bind | --bin | --bi)
123 ac_prev=bindir ;;
124 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
125 bindir="$ac_optarg" ;;
127 -build | --build | --buil | --bui | --bu)
128 ac_prev=build ;;
129 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
130 build="$ac_optarg" ;;
132 -cache-file | --cache-file | --cache-fil | --cache-fi \
133 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
134 ac_prev=cache_file ;;
135 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
136 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
137 cache_file="$ac_optarg" ;;
139 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
140 ac_prev=datadir ;;
141 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
142 | --da=*)
143 datadir="$ac_optarg" ;;
145 -disable-* | --disable-*)
146 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
147 # Reject names that are not valid shell variable names.
148 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
149 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
151 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
152 eval "enable_${ac_feature}=no" ;;
154 -enable-* | --enable-*)
155 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
156 # Reject names that are not valid shell variable names.
157 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
158 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
160 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
161 case "$ac_option" in
162 *=*) ;;
163 *) ac_optarg=yes ;;
164 esac
165 eval "enable_${ac_feature}='$ac_optarg'" ;;
167 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
168 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
169 | --exec | --exe | --ex)
170 ac_prev=exec_prefix ;;
171 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
172 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
173 | --exec=* | --exe=* | --ex=*)
174 exec_prefix="$ac_optarg" ;;
176 -gas | --gas | --ga | --g)
177 # Obsolete; use --with-gas.
178 with_gas=yes ;;
180 -help | --help | --hel | --he)
181 # Omit some internal or obsolete options to make the list less imposing.
182 # This message is too long to be a string in the A/UX 3.1 sh.
183 cat << EOF
184 Usage: configure [options] [host]
185 Options: [defaults in brackets after descriptions]
186 Configuration:
187 --cache-file=FILE cache test results in FILE
188 --help print this message
189 --no-create do not create output files
190 --quiet, --silent do not print \`checking...' messages
191 --site-file=FILE use FILE as the site file
192 --version print the version of autoconf that created configure
193 Directory and file names:
194 --prefix=PREFIX install architecture-independent files in PREFIX
195 [$ac_default_prefix]
196 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
197 [same as prefix]
198 --bindir=DIR user executables in DIR [EPREFIX/bin]
199 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
200 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
201 --datadir=DIR read-only architecture-independent data in DIR
202 [PREFIX/share]
203 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
204 --sharedstatedir=DIR modifiable architecture-independent data in DIR
205 [PREFIX/com]
206 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
207 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
208 --includedir=DIR C header files in DIR [PREFIX/include]
209 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
210 --infodir=DIR info documentation in DIR [PREFIX/info]
211 --mandir=DIR man documentation in DIR [PREFIX/man]
212 --srcdir=DIR find the sources in DIR [configure dir or ..]
213 --program-prefix=PREFIX prepend PREFIX to installed program names
214 --program-suffix=SUFFIX append SUFFIX to installed program names
215 --program-transform-name=PROGRAM
216 run sed PROGRAM on installed program names
218 cat << EOF
219 Host type:
220 --build=BUILD configure for building on BUILD [BUILD=HOST]
221 --host=HOST configure for HOST [guessed]
222 --target=TARGET configure for TARGET [TARGET=HOST]
223 Features and packages:
224 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
225 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
226 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
227 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
228 --x-includes=DIR X include files are in DIR
229 --x-libraries=DIR X library files are in DIR
231 if test -n "$ac_help"; then
232 echo "--enable and --with options recognized:$ac_help"
234 exit 0 ;;
236 -host | --host | --hos | --ho)
237 ac_prev=host ;;
238 -host=* | --host=* | --hos=* | --ho=*)
239 host="$ac_optarg" ;;
241 -includedir | --includedir | --includedi | --included | --include \
242 | --includ | --inclu | --incl | --inc)
243 ac_prev=includedir ;;
244 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
245 | --includ=* | --inclu=* | --incl=* | --inc=*)
246 includedir="$ac_optarg" ;;
248 -infodir | --infodir | --infodi | --infod | --info | --inf)
249 ac_prev=infodir ;;
250 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
251 infodir="$ac_optarg" ;;
253 -libdir | --libdir | --libdi | --libd)
254 ac_prev=libdir ;;
255 -libdir=* | --libdir=* | --libdi=* | --libd=*)
256 libdir="$ac_optarg" ;;
258 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
259 | --libexe | --libex | --libe)
260 ac_prev=libexecdir ;;
261 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
262 | --libexe=* | --libex=* | --libe=*)
263 libexecdir="$ac_optarg" ;;
265 -localstatedir | --localstatedir | --localstatedi | --localstated \
266 | --localstate | --localstat | --localsta | --localst \
267 | --locals | --local | --loca | --loc | --lo)
268 ac_prev=localstatedir ;;
269 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
270 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
271 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
272 localstatedir="$ac_optarg" ;;
274 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
275 ac_prev=mandir ;;
276 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
277 mandir="$ac_optarg" ;;
279 -nfp | --nfp | --nf)
280 # Obsolete; use --without-fp.
281 with_fp=no ;;
283 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
284 | --no-cr | --no-c)
285 no_create=yes ;;
287 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
288 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
289 no_recursion=yes ;;
291 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
292 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
293 | --oldin | --oldi | --old | --ol | --o)
294 ac_prev=oldincludedir ;;
295 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
296 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
297 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
298 oldincludedir="$ac_optarg" ;;
300 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
301 ac_prev=prefix ;;
302 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
303 prefix="$ac_optarg" ;;
305 -program-prefix | --program-prefix | --program-prefi | --program-pref \
306 | --program-pre | --program-pr | --program-p)
307 ac_prev=program_prefix ;;
308 -program-prefix=* | --program-prefix=* | --program-prefi=* \
309 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
310 program_prefix="$ac_optarg" ;;
312 -program-suffix | --program-suffix | --program-suffi | --program-suff \
313 | --program-suf | --program-su | --program-s)
314 ac_prev=program_suffix ;;
315 -program-suffix=* | --program-suffix=* | --program-suffi=* \
316 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
317 program_suffix="$ac_optarg" ;;
319 -program-transform-name | --program-transform-name \
320 | --program-transform-nam | --program-transform-na \
321 | --program-transform-n | --program-transform- \
322 | --program-transform | --program-transfor \
323 | --program-transfo | --program-transf \
324 | --program-trans | --program-tran \
325 | --progr-tra | --program-tr | --program-t)
326 ac_prev=program_transform_name ;;
327 -program-transform-name=* | --program-transform-name=* \
328 | --program-transform-nam=* | --program-transform-na=* \
329 | --program-transform-n=* | --program-transform-=* \
330 | --program-transform=* | --program-transfor=* \
331 | --program-transfo=* | --program-transf=* \
332 | --program-trans=* | --program-tran=* \
333 | --progr-tra=* | --program-tr=* | --program-t=*)
334 program_transform_name="$ac_optarg" ;;
336 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
337 | -silent | --silent | --silen | --sile | --sil)
338 silent=yes ;;
340 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
341 ac_prev=sbindir ;;
342 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
343 | --sbi=* | --sb=*)
344 sbindir="$ac_optarg" ;;
346 -sharedstatedir | --sharedstatedir | --sharedstatedi \
347 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
348 | --sharedst | --shareds | --shared | --share | --shar \
349 | --sha | --sh)
350 ac_prev=sharedstatedir ;;
351 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
352 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
353 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
354 | --sha=* | --sh=*)
355 sharedstatedir="$ac_optarg" ;;
357 -site | --site | --sit)
358 ac_prev=site ;;
359 -site=* | --site=* | --sit=*)
360 site="$ac_optarg" ;;
362 -site-file | --site-file | --site-fil | --site-fi | --site-f)
363 ac_prev=sitefile ;;
364 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
365 sitefile="$ac_optarg" ;;
367 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
368 ac_prev=srcdir ;;
369 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
370 srcdir="$ac_optarg" ;;
372 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
373 | --syscon | --sysco | --sysc | --sys | --sy)
374 ac_prev=sysconfdir ;;
375 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
376 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
377 sysconfdir="$ac_optarg" ;;
379 -target | --target | --targe | --targ | --tar | --ta | --t)
380 ac_prev=target ;;
381 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
382 target="$ac_optarg" ;;
384 -v | -verbose | --verbose | --verbos | --verbo | --verb)
385 verbose=yes ;;
387 -version | --version | --versio | --versi | --vers)
388 echo "configure generated by autoconf version 2.13"
389 exit 0 ;;
391 -with-* | --with-*)
392 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
393 # Reject names that are not valid shell variable names.
394 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
395 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
397 ac_package=`echo $ac_package| sed 's/-/_/g'`
398 case "$ac_option" in
399 *=*) ;;
400 *) ac_optarg=yes ;;
401 esac
402 eval "with_${ac_package}='$ac_optarg'" ;;
404 -without-* | --without-*)
405 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
406 # Reject names that are not valid shell variable names.
407 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
408 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
410 ac_package=`echo $ac_package| sed 's/-/_/g'`
411 eval "with_${ac_package}=no" ;;
413 --x)
414 # Obsolete; use --with-x.
415 with_x=yes ;;
417 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
418 | --x-incl | --x-inc | --x-in | --x-i)
419 ac_prev=x_includes ;;
420 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
421 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
422 x_includes="$ac_optarg" ;;
424 -x-libraries | --x-libraries | --x-librarie | --x-librari \
425 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
426 ac_prev=x_libraries ;;
427 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
428 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
429 x_libraries="$ac_optarg" ;;
431 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
435 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
436 echo "configure: warning: $ac_option: invalid host type" 1>&2
438 if test "x$nonopt" != xNONE; then
439 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
441 nonopt="$ac_option"
444 esac
445 done
447 if test -n "$ac_prev"; then
448 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
451 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
453 # File descriptor usage:
454 # 0 standard input
455 # 1 file creation
456 # 2 errors and warnings
457 # 3 some systems may open it to /dev/tty
458 # 4 used on the Kubota Titan
459 # 6 checking for... messages and results
460 # 5 compiler messages saved in config.log
461 if test "$silent" = yes; then
462 exec 6>/dev/null
463 else
464 exec 6>&1
466 exec 5>./config.log
468 echo "\
469 This file contains any messages produced by compilers while
470 running configure, to aid debugging if configure makes a mistake.
471 " 1>&5
473 # Strip out --no-create and --no-recursion so they do not pile up.
474 # Also quote any args containing shell metacharacters.
475 ac_configure_args=
476 for ac_arg
478 case "$ac_arg" in
479 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
480 | --no-cr | --no-c) ;;
481 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
482 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
483 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
484 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
485 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
486 esac
487 done
489 # NLS nuisances.
490 # Only set these to C if already set. These must not be set unconditionally
491 # because not all systems understand e.g. LANG=C (notably SCO).
492 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
493 # Non-C LC_CTYPE values break the ctype check.
494 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
495 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
496 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
497 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
499 # confdefs.h avoids OS command line length limits that DEFS can exceed.
500 rm -rf conftest* confdefs.h
501 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
502 echo > confdefs.h
504 # A filename unique to this package, relative to the directory that
505 # configure is in, which we can look for to find out if srcdir is correct.
506 ac_unique_file=java/lang/System.java
508 # Find the source files, if location was not specified.
509 if test -z "$srcdir"; then
510 ac_srcdir_defaulted=yes
511 # Try the directory containing this script, then its parent.
512 ac_prog=$0
513 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
514 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
515 srcdir=$ac_confdir
516 if test ! -r $srcdir/$ac_unique_file; then
517 srcdir=..
519 else
520 ac_srcdir_defaulted=no
522 if test ! -r $srcdir/$ac_unique_file; then
523 if test "$ac_srcdir_defaulted" = yes; then
524 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
525 else
526 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
529 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
531 # Prefer explicitly selected file to automatically selected ones.
532 if test -z "$sitefile"; then
533 if test -z "$CONFIG_SITE"; then
534 if test "x$prefix" != xNONE; then
535 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
536 else
537 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
540 else
541 CONFIG_SITE="$sitefile"
543 for ac_site_file in $CONFIG_SITE; do
544 if test -r "$ac_site_file"; then
545 echo "loading site script $ac_site_file"
546 . "$ac_site_file"
548 done
550 if test -r "$cache_file"; then
551 echo "loading cache $cache_file"
552 . $cache_file
553 else
554 echo "creating cache $cache_file"
555 > $cache_file
558 ac_ext=c
559 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
560 ac_cpp='$CPP $CPPFLAGS'
561 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
562 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
563 cross_compiling=$ac_cv_prog_cc_cross
565 ac_exeext=
566 ac_objext=o
567 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
568 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
569 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
570 ac_n= ac_c='
571 ' ac_t=' '
572 else
573 ac_n=-n ac_c= ac_t=
575 else
576 ac_n= ac_c='\c' ac_t=
581 ac_aux_dir=
582 for ac_dir in .. $srcdir/..; do
583 if test -f $ac_dir/install-sh; then
584 ac_aux_dir=$ac_dir
585 ac_install_sh="$ac_aux_dir/install-sh -c"
586 break
587 elif test -f $ac_dir/install.sh; then
588 ac_aux_dir=$ac_dir
589 ac_install_sh="$ac_aux_dir/install.sh -c"
590 break
592 done
593 if test -z "$ac_aux_dir"; then
594 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
596 ac_config_guess=$ac_aux_dir/config.guess
597 ac_config_sub=$ac_aux_dir/config.sub
598 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
602 # Do some error checking and defaulting for the host and target type.
603 # The inputs are:
604 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
606 # The rules are:
607 # 1. You are not allowed to specify --host, --target, and nonopt at the
608 # same time.
609 # 2. Host defaults to nonopt.
610 # 3. If nonopt is not specified, then host defaults to the current host,
611 # as determined by config.guess.
612 # 4. Target and build default to nonopt.
613 # 5. If nonopt is not specified, then target and build default to host.
615 # The aliases save the names the user supplied, while $host etc.
616 # will get canonicalized.
617 case $host---$target---$nonopt in
618 NONE---*---* | *---NONE---* | *---*---NONE) ;;
619 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
620 esac
623 # Make sure we can run config.sub.
624 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
625 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
628 echo $ac_n "checking host system type""... $ac_c" 1>&6
629 echo "configure:630: checking host system type" >&5
631 host_alias=$host
632 case "$host_alias" in
633 NONE)
634 case $nonopt in
635 NONE)
636 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
637 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
638 fi ;;
639 *) host_alias=$nonopt ;;
640 esac ;;
641 esac
643 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
644 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
645 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
646 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
647 echo "$ac_t""$host" 1>&6
649 echo $ac_n "checking target system type""... $ac_c" 1>&6
650 echo "configure:651: checking target system type" >&5
652 target_alias=$target
653 case "$target_alias" in
654 NONE)
655 case $nonopt in
656 NONE) target_alias=$host_alias ;;
657 *) target_alias=$nonopt ;;
658 esac ;;
659 esac
661 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
662 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
663 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
664 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
665 echo "$ac_t""$target" 1>&6
667 echo $ac_n "checking build system type""... $ac_c" 1>&6
668 echo "configure:669: checking build system type" >&5
670 build_alias=$build
671 case "$build_alias" in
672 NONE)
673 case $nonopt in
674 NONE) build_alias=$host_alias ;;
675 *) build_alias=$nonopt ;;
676 esac ;;
677 esac
679 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
680 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
681 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
682 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
683 echo "$ac_t""$build" 1>&6
685 test "$host_alias" != "$target_alias" &&
686 test "$program_prefix$program_suffix$program_transform_name" = \
687 NONENONEs,x,x, &&
688 program_prefix=${target_alias}-
691 # Check whether --with-target-subdir or --without-target-subdir was given.
692 if test "${with_target_subdir+set}" = set; then
693 withval="$with_target_subdir"
697 # Check whether --with-cross-host or --without-cross-host was given.
698 if test "${with_cross_host+set}" = set; then
699 withval="$with_cross_host"
704 # Find a good install program. We prefer a C program (faster),
705 # so one script is as good as another. But avoid the broken or
706 # incompatible versions:
707 # SysV /etc/install, /usr/sbin/install
708 # SunOS /usr/etc/install
709 # IRIX /sbin/install
710 # AIX /bin/install
711 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
712 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
713 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
714 # ./install, which can be erroneously created by make from ./install.sh.
715 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
716 echo "configure:717: checking for a BSD compatible install" >&5
717 if test -z "$INSTALL"; then
718 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
719 echo $ac_n "(cached) $ac_c" 1>&6
720 else
721 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
722 for ac_dir in $PATH; do
723 # Account for people who put trailing slashes in PATH elements.
724 case "$ac_dir/" in
725 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
727 # OSF1 and SCO ODT 3.0 have their own names for install.
728 # Don't use installbsd from OSF since it installs stuff as root
729 # by default.
730 for ac_prog in ginstall scoinst install; do
731 if test -f $ac_dir/$ac_prog; then
732 if test $ac_prog = install &&
733 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
734 # AIX install. It has an incompatible calling convention.
736 else
737 ac_cv_path_install="$ac_dir/$ac_prog -c"
738 break 2
741 done
743 esac
744 done
745 IFS="$ac_save_IFS"
748 if test "${ac_cv_path_install+set}" = set; then
749 INSTALL="$ac_cv_path_install"
750 else
751 # As a last resort, use the slow shell script. We don't cache a
752 # path for INSTALL within a source directory, because that will
753 # break other packages using the cache if that directory is
754 # removed, or if the path is relative.
755 INSTALL="$ac_install_sh"
758 echo "$ac_t""$INSTALL" 1>&6
760 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
761 # It thinks the first close brace ends the variable substitution.
762 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
764 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
766 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
768 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
769 echo "configure:770: checking whether build environment is sane" >&5
770 # Just in case
771 sleep 1
772 echo timestamp > conftestfile
773 # Do `set' in a subshell so we don't clobber the current shell's
774 # arguments. Must try -L first in case configure is actually a
775 # symlink; some systems play weird games with the mod time of symlinks
776 # (eg FreeBSD returns the mod time of the symlink's containing
777 # directory).
778 if (
779 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
780 if test "$*" = "X"; then
781 # -L didn't work.
782 set X `ls -t $srcdir/configure conftestfile`
784 if test "$*" != "X $srcdir/configure conftestfile" \
785 && test "$*" != "X conftestfile $srcdir/configure"; then
787 # If neither matched, then we have a broken ls. This can happen
788 # if, for instance, CONFIG_SHELL is bash and it inherits a
789 # broken ls alias from the environment. This has actually
790 # happened. Such a system could not be considered "sane".
791 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
792 alias in your environment" 1>&2; exit 1; }
795 test "$2" = conftestfile
797 then
798 # Ok.
800 else
801 { echo "configure: error: newly created file is older than distributed files!
802 Check your system clock" 1>&2; exit 1; }
804 rm -f conftest*
805 echo "$ac_t""yes" 1>&6
806 if test "$program_transform_name" = s,x,x,; then
807 program_transform_name=
808 else
809 # Double any \ or $. echo might interpret backslashes.
810 cat <<\EOF_SED > conftestsed
811 s,\\,\\\\,g; s,\$,$$,g
812 EOF_SED
813 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
814 rm -f conftestsed
816 test "$program_prefix" != NONE &&
817 program_transform_name="s,^,${program_prefix},; $program_transform_name"
818 # Use a double $ so make ignores it.
819 test "$program_suffix" != NONE &&
820 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
822 # sed with no file args requires a program.
823 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
825 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
826 echo "configure:827: checking whether ${MAKE-make} sets \${MAKE}" >&5
827 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
828 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
829 echo $ac_n "(cached) $ac_c" 1>&6
830 else
831 cat > conftestmake <<\EOF
832 all:
833 @echo 'ac_maketemp="${MAKE}"'
835 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
836 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
837 if test -n "$ac_maketemp"; then
838 eval ac_cv_prog_make_${ac_make}_set=yes
839 else
840 eval ac_cv_prog_make_${ac_make}_set=no
842 rm -f conftestmake
844 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
845 echo "$ac_t""yes" 1>&6
846 SET_MAKE=
847 else
848 echo "$ac_t""no" 1>&6
849 SET_MAKE="MAKE=${MAKE-make}"
852 if test $host != $build; then
853 ac_tool_prefix=${host_alias}-
854 else
855 ac_tool_prefix=
858 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
859 echo "configure:860: checking for Cygwin environment" >&5
860 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
861 echo $ac_n "(cached) $ac_c" 1>&6
862 else
863 cat > conftest.$ac_ext <<EOF
864 #line 865 "configure"
865 #include "confdefs.h"
867 int main() {
869 #ifndef __CYGWIN__
870 #define __CYGWIN__ __CYGWIN32__
871 #endif
872 return __CYGWIN__;
873 ; return 0; }
875 if { (eval echo configure:876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
876 rm -rf conftest*
877 ac_cv_cygwin=yes
878 else
879 echo "configure: failed program was:" >&5
880 cat conftest.$ac_ext >&5
881 rm -rf conftest*
882 ac_cv_cygwin=no
884 rm -f conftest*
885 rm -f conftest*
888 echo "$ac_t""$ac_cv_cygwin" 1>&6
889 CYGWIN=
890 test "$ac_cv_cygwin" = yes && CYGWIN=yes
891 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
892 echo "configure:893: checking for mingw32 environment" >&5
893 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
894 echo $ac_n "(cached) $ac_c" 1>&6
895 else
896 cat > conftest.$ac_ext <<EOF
897 #line 898 "configure"
898 #include "confdefs.h"
900 int main() {
901 return __MINGW32__;
902 ; return 0; }
904 if { (eval echo configure:905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
905 rm -rf conftest*
906 ac_cv_mingw32=yes
907 else
908 echo "configure: failed program was:" >&5
909 cat conftest.$ac_ext >&5
910 rm -rf conftest*
911 ac_cv_mingw32=no
913 rm -f conftest*
914 rm -f conftest*
917 echo "$ac_t""$ac_cv_mingw32" 1>&6
918 MINGW32=
919 test "$ac_cv_mingw32" = yes && MINGW32=yes
921 # Check whether --enable-multilib or --disable-multilib was given.
922 if test "${enable_multilib+set}" = set; then
923 enableval="$enable_multilib"
924 case "${enableval}" in
925 yes) multilib=yes ;;
926 no) multilib=no ;;
927 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
928 esac
929 else
930 multilib=yes
934 if test "${srcdir}" = "."; then
935 if test "${with_target_subdir}" != "."; then
936 libgcj_basedir="${srcdir}/${with_multisrctop}../."
937 else
938 libgcj_basedir="${srcdir}/${with_multisrctop}."
940 else
941 libgcj_basedir="${srcdir}/."
946 # Make sure we can run config.sub.
947 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
948 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
951 echo $ac_n "checking host system type""... $ac_c" 1>&6
952 echo "configure:953: checking host system type" >&5
954 host_alias=$host
955 case "$host_alias" in
956 NONE)
957 case $nonopt in
958 NONE)
959 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
960 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
961 fi ;;
962 *) host_alias=$nonopt ;;
963 esac ;;
964 esac
966 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
967 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
968 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
969 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
970 echo "$ac_t""$host" 1>&6
973 version=0.0.7
975 PACKAGE=libjava
977 VERSION=$version
979 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
980 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
982 cat >> confdefs.h <<EOF
983 #define PACKAGE "$PACKAGE"
986 cat >> confdefs.h <<EOF
987 #define VERSION "$VERSION"
992 missing_dir=`cd $ac_aux_dir && pwd`
993 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
994 echo "configure:995: checking for working aclocal" >&5
995 # Run test in a subshell; some versions of sh will print an error if
996 # an executable is not found, even if stderr is redirected.
997 # Redirect stdin to placate older versions of autoconf. Sigh.
998 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
999 ACLOCAL=aclocal
1000 echo "$ac_t""found" 1>&6
1001 else
1002 ACLOCAL="$missing_dir/missing aclocal"
1003 echo "$ac_t""missing" 1>&6
1006 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1007 echo "configure:1008: checking for working autoconf" >&5
1008 # Run test in a subshell; some versions of sh will print an error if
1009 # an executable is not found, even if stderr is redirected.
1010 # Redirect stdin to placate older versions of autoconf. Sigh.
1011 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1012 AUTOCONF=autoconf
1013 echo "$ac_t""found" 1>&6
1014 else
1015 AUTOCONF="$missing_dir/missing autoconf"
1016 echo "$ac_t""missing" 1>&6
1019 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1020 echo "configure:1021: checking for working automake" >&5
1021 # Run test in a subshell; some versions of sh will print an error if
1022 # an executable is not found, even if stderr is redirected.
1023 # Redirect stdin to placate older versions of autoconf. Sigh.
1024 if (automake --version) < /dev/null > /dev/null 2>&1; then
1025 AUTOMAKE=automake
1026 echo "$ac_t""found" 1>&6
1027 else
1028 AUTOMAKE="$missing_dir/missing automake"
1029 echo "$ac_t""missing" 1>&6
1032 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1033 echo "configure:1034: checking for working autoheader" >&5
1034 # Run test in a subshell; some versions of sh will print an error if
1035 # an executable is not found, even if stderr is redirected.
1036 # Redirect stdin to placate older versions of autoconf. Sigh.
1037 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1038 AUTOHEADER=autoheader
1039 echo "$ac_t""found" 1>&6
1040 else
1041 AUTOHEADER="$missing_dir/missing autoheader"
1042 echo "$ac_t""missing" 1>&6
1045 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1046 echo "configure:1047: checking for working makeinfo" >&5
1047 # Run test in a subshell; some versions of sh will print an error if
1048 # an executable is not found, even if stderr is redirected.
1049 # Redirect stdin to placate older versions of autoconf. Sigh.
1050 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1051 MAKEINFO=makeinfo
1052 echo "$ac_t""found" 1>&6
1053 else
1054 MAKEINFO="$missing_dir/missing makeinfo"
1055 echo "$ac_t""missing" 1>&6
1060 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
1061 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1062 # are probably using a cross compiler, which will not be able to fully
1063 # link an executable. This should really be fixed in autoconf
1064 # itself.
1069 # Extract the first word of "gcc", so it can be a program name with args.
1070 set dummy gcc; ac_word=$2
1071 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1072 echo "configure:1073: checking for $ac_word" >&5
1073 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1074 echo $ac_n "(cached) $ac_c" 1>&6
1075 else
1076 if test -n "$CC"; then
1077 ac_cv_prog_CC="$CC" # Let the user override the test.
1078 else
1079 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1080 ac_dummy="$PATH"
1081 for ac_dir in $ac_dummy; do
1082 test -z "$ac_dir" && ac_dir=.
1083 if test -f $ac_dir/$ac_word; then
1084 ac_cv_prog_CC="gcc"
1085 break
1087 done
1088 IFS="$ac_save_ifs"
1091 CC="$ac_cv_prog_CC"
1092 if test -n "$CC"; then
1093 echo "$ac_t""$CC" 1>&6
1094 else
1095 echo "$ac_t""no" 1>&6
1098 if test -z "$CC"; then
1099 # Extract the first word of "cc", so it can be a program name with args.
1100 set dummy cc; ac_word=$2
1101 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1102 echo "configure:1103: checking for $ac_word" >&5
1103 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1104 echo $ac_n "(cached) $ac_c" 1>&6
1105 else
1106 if test -n "$CC"; then
1107 ac_cv_prog_CC="$CC" # Let the user override the test.
1108 else
1109 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1110 ac_prog_rejected=no
1111 ac_dummy="$PATH"
1112 for ac_dir in $ac_dummy; do
1113 test -z "$ac_dir" && ac_dir=.
1114 if test -f $ac_dir/$ac_word; then
1115 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1116 ac_prog_rejected=yes
1117 continue
1119 ac_cv_prog_CC="cc"
1120 break
1122 done
1123 IFS="$ac_save_ifs"
1124 if test $ac_prog_rejected = yes; then
1125 # We found a bogon in the path, so make sure we never use it.
1126 set dummy $ac_cv_prog_CC
1127 shift
1128 if test $# -gt 0; then
1129 # We chose a different compiler from the bogus one.
1130 # However, it has the same basename, so the bogon will be chosen
1131 # first if we set CC to just the basename; use the full file name.
1132 shift
1133 set dummy "$ac_dir/$ac_word" "$@"
1134 shift
1135 ac_cv_prog_CC="$@"
1140 CC="$ac_cv_prog_CC"
1141 if test -n "$CC"; then
1142 echo "$ac_t""$CC" 1>&6
1143 else
1144 echo "$ac_t""no" 1>&6
1147 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1150 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1151 echo "configure:1152: checking whether we are using GNU C" >&5
1152 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1153 echo $ac_n "(cached) $ac_c" 1>&6
1154 else
1155 cat > conftest.c <<EOF
1156 #ifdef __GNUC__
1157 yes;
1158 #endif
1160 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1161: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1161 ac_cv_prog_gcc=yes
1162 else
1163 ac_cv_prog_gcc=no
1167 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1169 if test $ac_cv_prog_gcc = yes; then
1170 GCC=yes
1171 ac_test_CFLAGS="${CFLAGS+set}"
1172 ac_save_CFLAGS="$CFLAGS"
1173 CFLAGS=
1174 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1175 echo "configure:1176: checking whether ${CC-cc} accepts -g" >&5
1176 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1177 echo $ac_n "(cached) $ac_c" 1>&6
1178 else
1179 echo 'void f(){}' > conftest.c
1180 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1181 ac_cv_prog_cc_g=yes
1182 else
1183 ac_cv_prog_cc_g=no
1185 rm -f conftest*
1189 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1190 if test "$ac_test_CFLAGS" = set; then
1191 CFLAGS="$ac_save_CFLAGS"
1192 elif test $ac_cv_prog_cc_g = yes; then
1193 CFLAGS="-g -O2"
1194 else
1195 CFLAGS="-O2"
1197 else
1198 GCC=
1199 test "${CFLAGS+set}" = set || CFLAGS="-g"
1203 # Likewise for AC_PROG_CXX.
1207 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1209 # Extract the first word of "$ac_prog", so it can be a program name with args.
1210 set dummy $ac_prog; ac_word=$2
1211 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1212 echo "configure:1213: checking for $ac_word" >&5
1213 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1214 echo $ac_n "(cached) $ac_c" 1>&6
1215 else
1216 if test -n "$CXX"; then
1217 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1218 else
1219 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1220 ac_dummy="$PATH"
1221 for ac_dir in $ac_dummy; do
1222 test -z "$ac_dir" && ac_dir=.
1223 if test -f $ac_dir/$ac_word; then
1224 ac_cv_prog_CXX="$ac_prog"
1225 break
1227 done
1228 IFS="$ac_save_ifs"
1231 CXX="$ac_cv_prog_CXX"
1232 if test -n "$CXX"; then
1233 echo "$ac_t""$CXX" 1>&6
1234 else
1235 echo "$ac_t""no" 1>&6
1238 test -n "$CXX" && break
1239 done
1240 test -n "$CXX" || CXX="gcc"
1242 test -z "$CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1244 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1245 echo "configure:1246: checking whether we are using GNU C++" >&5
1246 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1247 echo $ac_n "(cached) $ac_c" 1>&6
1248 else
1249 cat > conftest.C <<EOF
1250 #ifdef __GNUC__
1251 yes;
1252 #endif
1254 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1255: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1255 ac_cv_prog_gxx=yes
1256 else
1257 ac_cv_prog_gxx=no
1261 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1263 if test $ac_cv_prog_gxx = yes; then
1264 GXX=yes
1265 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1266 ac_save_CXXFLAGS="$CXXFLAGS"
1267 CXXFLAGS=
1268 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1269 echo "configure:1270: checking whether ${CXX-g++} accepts -g" >&5
1270 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1271 echo $ac_n "(cached) $ac_c" 1>&6
1272 else
1273 echo 'void f(){}' > conftest.cc
1274 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1275 ac_cv_prog_cxx_g=yes
1276 else
1277 ac_cv_prog_cxx_g=no
1279 rm -f conftest*
1283 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1284 if test "$ac_test_CXXFLAGS" = set; then
1285 CXXFLAGS="$ac_save_CXXFLAGS"
1286 elif test $ac_cv_prog_cxx_g = yes; then
1287 CXXFLAGS="-g -O2"
1288 else
1289 CXXFLAGS="-O2"
1291 else
1292 GXX=
1293 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1297 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we dont
1298 # run it explicitly here, it will be run implicitly before
1299 # LIBGCJ_CONFIGURE, which doesn't work because that means that it will
1300 # be run before AC_CANONICAL_HOST.
1301 echo $ac_n "checking build system type""... $ac_c" 1>&6
1302 echo "configure:1303: checking build system type" >&5
1304 build_alias=$build
1305 case "$build_alias" in
1306 NONE)
1307 case $nonopt in
1308 NONE) build_alias=$host_alias ;;
1309 *) build_alias=$nonopt ;;
1310 esac ;;
1311 esac
1313 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1314 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1315 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1316 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1317 echo "$ac_t""$build" 1>&6
1320 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1321 set dummy ${ac_tool_prefix}as; ac_word=$2
1322 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1323 echo "configure:1324: checking for $ac_word" >&5
1324 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1325 echo $ac_n "(cached) $ac_c" 1>&6
1326 else
1327 if test -n "$AS"; then
1328 ac_cv_prog_AS="$AS" # Let the user override the test.
1329 else
1330 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1331 ac_dummy="$PATH"
1332 for ac_dir in $ac_dummy; do
1333 test -z "$ac_dir" && ac_dir=.
1334 if test -f $ac_dir/$ac_word; then
1335 ac_cv_prog_AS="${ac_tool_prefix}as"
1336 break
1338 done
1339 IFS="$ac_save_ifs"
1340 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1343 AS="$ac_cv_prog_AS"
1344 if test -n "$AS"; then
1345 echo "$ac_t""$AS" 1>&6
1346 else
1347 echo "$ac_t""no" 1>&6
1352 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1353 set dummy ${ac_tool_prefix}ar; ac_word=$2
1354 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1355 echo "configure:1356: checking for $ac_word" >&5
1356 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1357 echo $ac_n "(cached) $ac_c" 1>&6
1358 else
1359 if test -n "$AR"; then
1360 ac_cv_prog_AR="$AR" # Let the user override the test.
1361 else
1362 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1363 ac_dummy="$PATH"
1364 for ac_dir in $ac_dummy; do
1365 test -z "$ac_dir" && ac_dir=.
1366 if test -f $ac_dir/$ac_word; then
1367 ac_cv_prog_AR="${ac_tool_prefix}ar"
1368 break
1370 done
1371 IFS="$ac_save_ifs"
1372 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1375 AR="$ac_cv_prog_AR"
1376 if test -n "$AR"; then
1377 echo "$ac_t""$AR" 1>&6
1378 else
1379 echo "$ac_t""no" 1>&6
1384 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1385 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1386 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1387 echo "configure:1388: checking for $ac_word" >&5
1388 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1389 echo $ac_n "(cached) $ac_c" 1>&6
1390 else
1391 if test -n "$RANLIB"; then
1392 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1393 else
1394 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1395 ac_dummy="$PATH"
1396 for ac_dir in $ac_dummy; do
1397 test -z "$ac_dir" && ac_dir=.
1398 if test -f $ac_dir/$ac_word; then
1399 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1400 break
1402 done
1403 IFS="$ac_save_ifs"
1406 RANLIB="$ac_cv_prog_RANLIB"
1407 if test -n "$RANLIB"; then
1408 echo "$ac_t""$RANLIB" 1>&6
1409 else
1410 echo "$ac_t""no" 1>&6
1414 if test -z "$ac_cv_prog_RANLIB"; then
1415 if test -n "$ac_tool_prefix"; then
1416 # Extract the first word of "ranlib", so it can be a program name with args.
1417 set dummy ranlib; ac_word=$2
1418 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1419 echo "configure:1420: checking for $ac_word" >&5
1420 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1421 echo $ac_n "(cached) $ac_c" 1>&6
1422 else
1423 if test -n "$RANLIB"; then
1424 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1425 else
1426 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1427 ac_dummy="$PATH"
1428 for ac_dir in $ac_dummy; do
1429 test -z "$ac_dir" && ac_dir=.
1430 if test -f $ac_dir/$ac_word; then
1431 ac_cv_prog_RANLIB="ranlib"
1432 break
1434 done
1435 IFS="$ac_save_ifs"
1436 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1439 RANLIB="$ac_cv_prog_RANLIB"
1440 if test -n "$RANLIB"; then
1441 echo "$ac_t""$RANLIB" 1>&6
1442 else
1443 echo "$ac_t""no" 1>&6
1446 else
1447 RANLIB=":"
1452 # Find a good install program. We prefer a C program (faster),
1453 # so one script is as good as another. But avoid the broken or
1454 # incompatible versions:
1455 # SysV /etc/install, /usr/sbin/install
1456 # SunOS /usr/etc/install
1457 # IRIX /sbin/install
1458 # AIX /bin/install
1459 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1460 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1461 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1462 # ./install, which can be erroneously created by make from ./install.sh.
1463 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1464 echo "configure:1465: checking for a BSD compatible install" >&5
1465 if test -z "$INSTALL"; then
1466 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1467 echo $ac_n "(cached) $ac_c" 1>&6
1468 else
1469 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1470 for ac_dir in $PATH; do
1471 # Account for people who put trailing slashes in PATH elements.
1472 case "$ac_dir/" in
1473 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1475 # OSF1 and SCO ODT 3.0 have their own names for install.
1476 # Don't use installbsd from OSF since it installs stuff as root
1477 # by default.
1478 for ac_prog in ginstall scoinst install; do
1479 if test -f $ac_dir/$ac_prog; then
1480 if test $ac_prog = install &&
1481 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1482 # AIX install. It has an incompatible calling convention.
1484 else
1485 ac_cv_path_install="$ac_dir/$ac_prog -c"
1486 break 2
1489 done
1491 esac
1492 done
1493 IFS="$ac_save_IFS"
1496 if test "${ac_cv_path_install+set}" = set; then
1497 INSTALL="$ac_cv_path_install"
1498 else
1499 # As a last resort, use the slow shell script. We don't cache a
1500 # path for INSTALL within a source directory, because that will
1501 # break other packages using the cache if that directory is
1502 # removed, or if the path is relative.
1503 INSTALL="$ac_install_sh"
1506 echo "$ac_t""$INSTALL" 1>&6
1508 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1509 # It thinks the first close brace ends the variable substitution.
1510 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1512 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1514 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1517 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1518 echo "configure:1519: checking whether to enable maintainer-specific portions of Makefiles" >&5
1519 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1520 if test "${enable_maintainer_mode+set}" = set; then
1521 enableval="$enable_maintainer_mode"
1522 USE_MAINTAINER_MODE=$enableval
1523 else
1524 USE_MAINTAINER_MODE=no
1527 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1530 if test $USE_MAINTAINER_MODE = yes; then
1531 MAINTAINER_MODE_TRUE=
1532 MAINTAINER_MODE_FALSE='#'
1533 else
1534 MAINTAINER_MODE_TRUE='#'
1535 MAINTAINER_MODE_FALSE=
1537 MAINT=$MAINTAINER_MODE_TRUE
1541 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1542 # at least currently, we never actually build a program, so we never
1543 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1544 # fails, because we are probably configuring with a cross compiler
1545 # which cant create executables. So we include AC_EXEEXT to keep
1546 # automake happy, but we dont execute it, since we dont care about
1547 # the result.
1548 if false; then
1551 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1552 echo "configure:1553: checking for executable suffix" >&5
1553 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1554 echo $ac_n "(cached) $ac_c" 1>&6
1555 else
1556 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1557 ac_cv_exeext=.exe
1558 else
1559 rm -f conftest*
1560 echo 'int main () { return 0; }' > conftest.$ac_ext
1561 ac_cv_exeext=
1562 if { (eval echo configure:1563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1563 for file in conftest.*; do
1564 case $file in
1565 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1566 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1567 esac
1568 done
1569 else
1570 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1572 rm -f conftest*
1573 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1577 EXEEXT=""
1578 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1579 echo "$ac_t""${ac_cv_exeext}" 1>&6
1580 ac_exeext=$EXEEXT
1584 # configure.host sets the following important variables
1585 # libgcj_cflags - host specific C compiler flags
1586 # libgcj_cxxflags - host specific C++ compiler flags
1587 # libgcj_javaflags - host specific Java compiler flags
1589 libgcj_cflags=
1590 libgcj_cxxflags=
1591 libgcj_javaflags=
1593 . ${libgcj_basedir}/configure.host
1595 case ${libgcj_basedir} in
1596 /* | A-Za-z:/\\*) libgcj_flagbasedir=${libgcj_basedir} ;;
1597 *) libgcj_flagbasedir='$(top_builddir)/'${libgcj_basedir} ;;
1598 esac
1600 LIBGCJ_CFLAGS="${libgcj_cflags}"
1601 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
1602 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
1612 # Only use libltdl for native builds.
1613 if test -z "${with_cross_host}"; then
1614 case "$enable_ltdl_convenience" in
1615 no) { echo "configure: error: this package needs a convenience libltdl" 1>&2; exit 1; } ;;
1616 "") enable_ltdl_convenience=yes
1617 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
1618 esac
1619 LIBLTDL='${top_builddir}/libltdl'/libltdlc.la
1620 INCLTDL='-I${top_builddir}/libltdl'
1623 DIRLTDL=libltdl
1624 cat >> confdefs.h <<\EOF
1625 #define USE_LTDL 1
1628 # Sigh. Libtool's macro doesn't do the right thing.
1629 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
1634 # Check whether --enable-shared or --disable-shared was given.
1635 if test "${enable_shared+set}" = set; then
1636 enableval="$enable_shared"
1637 p=${PACKAGE-default}
1638 case "$enableval" in
1639 yes) enable_shared=yes ;;
1640 no) enable_shared=no ;;
1642 enable_shared=no
1643 # Look at the argument we got. We use all the common list separators.
1644 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1645 for pkg in $enableval; do
1646 if test "X$pkg" = "X$p"; then
1647 enable_shared=yes
1649 done
1650 IFS="$ac_save_ifs"
1652 esac
1653 else
1654 enable_shared=yes
1657 # Check whether --enable-static or --disable-static was given.
1658 if test "${enable_static+set}" = set; then
1659 enableval="$enable_static"
1660 p=${PACKAGE-default}
1661 case "$enableval" in
1662 yes) enable_static=yes ;;
1663 no) enable_static=no ;;
1665 enable_static=no
1666 # Look at the argument we got. We use all the common list separators.
1667 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1668 for pkg in $enableval; do
1669 if test "X$pkg" = "X$p"; then
1670 enable_static=yes
1672 done
1673 IFS="$ac_save_ifs"
1675 esac
1676 else
1677 enable_static=yes
1680 # Check whether --enable-fast-install or --disable-fast-install was given.
1681 if test "${enable_fast_install+set}" = set; then
1682 enableval="$enable_fast_install"
1683 p=${PACKAGE-default}
1684 case "$enableval" in
1685 yes) enable_fast_install=yes ;;
1686 no) enable_fast_install=no ;;
1688 enable_fast_install=no
1689 # Look at the argument we got. We use all the common list separators.
1690 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1691 for pkg in $enableval; do
1692 if test "X$pkg" = "X$p"; then
1693 enable_fast_install=yes
1695 done
1696 IFS="$ac_save_ifs"
1698 esac
1699 else
1700 enable_fast_install=yes
1703 # Extract the first word of "ranlib", so it can be a program name with args.
1704 set dummy ranlib; ac_word=$2
1705 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1706 echo "configure:1707: checking for $ac_word" >&5
1707 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1708 echo $ac_n "(cached) $ac_c" 1>&6
1709 else
1710 if test -n "$RANLIB"; then
1711 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1712 else
1713 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1714 ac_dummy="$PATH"
1715 for ac_dir in $ac_dummy; do
1716 test -z "$ac_dir" && ac_dir=.
1717 if test -f $ac_dir/$ac_word; then
1718 ac_cv_prog_RANLIB="ranlib"
1719 break
1721 done
1722 IFS="$ac_save_ifs"
1723 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1726 RANLIB="$ac_cv_prog_RANLIB"
1727 if test -n "$RANLIB"; then
1728 echo "$ac_t""$RANLIB" 1>&6
1729 else
1730 echo "$ac_t""no" 1>&6
1733 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1734 if test "${with_gnu_ld+set}" = set; then
1735 withval="$with_gnu_ld"
1736 test "$withval" = no || with_gnu_ld=yes
1737 else
1738 with_gnu_ld=no
1741 ac_prog=ld
1742 if test "$ac_cv_prog_gcc" = yes; then
1743 # Check if gcc -print-prog-name=ld gives a path.
1744 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1745 echo "configure:1746: checking for ld used by GCC" >&5
1746 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1747 case "$ac_prog" in
1748 # Accept absolute paths.
1749 [\\/]* | [A-Za-z]:[\\/]*)
1750 re_direlt='/[^/][^/]*/\.\./'
1751 # Canonicalize the path of ld
1752 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1753 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1754 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1755 done
1756 test -z "$LD" && LD="$ac_prog"
1759 # If it fails, then pretend we aren't using GCC.
1760 ac_prog=ld
1763 # If it is relative, then search for the first ld in PATH.
1764 with_gnu_ld=unknown
1766 esac
1767 elif test "$with_gnu_ld" = yes; then
1768 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1769 echo "configure:1770: checking for GNU ld" >&5
1770 else
1771 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1772 echo "configure:1773: checking for non-GNU ld" >&5
1774 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1775 echo $ac_n "(cached) $ac_c" 1>&6
1776 else
1777 if test -z "$LD"; then
1778 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1779 for ac_dir in $PATH; do
1780 test -z "$ac_dir" && ac_dir=.
1781 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1782 ac_cv_path_LD="$ac_dir/$ac_prog"
1783 # Check to see if the program is GNU ld. I'd rather use --version,
1784 # but apparently some GNU ld's only accept -v.
1785 # Break only if it was the GNU/non-GNU ld that we prefer.
1786 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1787 test "$with_gnu_ld" != no && break
1788 else
1789 test "$with_gnu_ld" != yes && break
1792 done
1793 IFS="$ac_save_ifs"
1794 else
1795 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1799 LD="$ac_cv_path_LD"
1800 if test -n "$LD"; then
1801 echo "$ac_t""$LD" 1>&6
1802 else
1803 echo "$ac_t""no" 1>&6
1805 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1806 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1807 echo "configure:1808: checking if the linker ($LD) is GNU ld" >&5
1808 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1809 echo $ac_n "(cached) $ac_c" 1>&6
1810 else
1811 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1812 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1813 ac_cv_prog_gnu_ld=yes
1814 else
1815 ac_cv_prog_gnu_ld=no
1819 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1822 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1823 echo "configure:1824: checking for BSD-compatible nm" >&5
1824 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1825 echo $ac_n "(cached) $ac_c" 1>&6
1826 else
1827 if test -n "$NM"; then
1828 # Let the user override the test.
1829 ac_cv_path_NM="$NM"
1830 else
1831 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1832 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1833 test -z "$ac_dir" && ac_dir=.
1834 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1835 # Check to see if the nm accepts a BSD-compat flag.
1836 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1837 # nm: unknown option "B" ignored
1838 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1839 ac_cv_path_NM="$ac_dir/nm -B"
1840 break
1841 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1842 ac_cv_path_NM="$ac_dir/nm -p"
1843 break
1844 else
1845 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1846 continue # so that we can try to find one that supports BSD flags
1849 done
1850 IFS="$ac_save_ifs"
1851 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1855 NM="$ac_cv_path_NM"
1856 echo "$ac_t""$NM" 1>&6
1858 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1859 echo "configure:1860: checking whether ln -s works" >&5
1860 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1861 echo $ac_n "(cached) $ac_c" 1>&6
1862 else
1863 rm -f conftestdata
1864 if ln -s X conftestdata 2>/dev/null
1865 then
1866 rm -f conftestdata
1867 ac_cv_prog_LN_S="ln -s"
1868 else
1869 ac_cv_prog_LN_S=ln
1872 LN_S="$ac_cv_prog_LN_S"
1873 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1874 echo "$ac_t""yes" 1>&6
1875 else
1876 echo "$ac_t""no" 1>&6
1880 case "$target" in
1881 NONE) lt_target="$host" ;;
1882 *) lt_target="$target" ;;
1883 esac
1885 # Check for any special flags to pass to ltconfig.
1886 libtool_flags="--cache-file=$cache_file"
1887 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1888 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1889 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1890 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1891 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1892 libtool_flags="$libtool_flags --enable-dlopen"
1894 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1895 if test "${enable_libtool_lock+set}" = set; then
1896 enableval="$enable_libtool_lock"
1900 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1901 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1903 # Some flags need to be propagated to the compiler or linker for good
1904 # libtool support.
1905 case "$lt_target" in
1906 *-*-irix6*)
1907 # Find out which ABI we are using.
1908 echo '#line 1909 "configure"' > conftest.$ac_ext
1909 if { (eval echo configure:1910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1910 case "`/usr/bin/file conftest.o`" in
1911 *32-bit*)
1912 LD="${LD-ld} -32"
1914 *N32*)
1915 LD="${LD-ld} -n32"
1917 *64-bit*)
1918 LD="${LD-ld} -64"
1920 esac
1922 rm -rf conftest*
1925 *-*-sco3.2v5*)
1926 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1927 SAVE_CFLAGS="$CFLAGS"
1928 CFLAGS="$CFLAGS -belf"
1929 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1930 echo "configure:1931: checking whether the C compiler needs -belf" >&5
1931 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1932 echo $ac_n "(cached) $ac_c" 1>&6
1933 else
1934 cat > conftest.$ac_ext <<EOF
1935 #line 1936 "configure"
1936 #include "confdefs.h"
1938 int main() {
1940 ; return 0; }
1942 if { (eval echo configure:1943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1943 rm -rf conftest*
1944 lt_cv_cc_needs_belf=yes
1945 else
1946 echo "configure: failed program was:" >&5
1947 cat conftest.$ac_ext >&5
1948 rm -rf conftest*
1949 lt_cv_cc_needs_belf=no
1951 rm -f conftest*
1954 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1955 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1956 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1957 CFLAGS="$SAVE_CFLAGS"
1962 esac
1965 # Save cache, so that ltconfig can load it
1966 cat > confcache <<\EOF
1967 # This file is a shell script that caches the results of configure
1968 # tests run on this system so they can be shared between configure
1969 # scripts and configure runs. It is not useful on other systems.
1970 # If it contains results you don't want to keep, you may remove or edit it.
1972 # By default, configure uses ./config.cache as the cache file,
1973 # creating it if it does not exist already. You can give configure
1974 # the --cache-file=FILE option to use a different cache file; that is
1975 # what configure does when it calls configure scripts in
1976 # subdirectories, so they share the cache.
1977 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1978 # config.status only pays attention to the cache file if you give it the
1979 # --recheck option to rerun configure.
1982 # The following way of writing the cache mishandles newlines in values,
1983 # but we know of no workaround that is simple, portable, and efficient.
1984 # So, don't put newlines in cache variables' values.
1985 # Ultrix sh set writes to stderr and can't be redirected directly,
1986 # and sets the high bit in the cache file unless we assign to the vars.
1987 (set) 2>&1 |
1988 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1989 *ac_space=\ *)
1990 # `set' does not quote correctly, so add quotes (double-quote substitution
1991 # turns \\\\ into \\, and sed turns \\ into \).
1992 sed -n \
1993 -e "s/'/'\\\\''/g" \
1994 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1997 # `set' quotes correctly as required by POSIX, so do not add quotes.
1998 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2000 esac >> confcache
2001 if cmp -s $cache_file confcache; then
2003 else
2004 if test -w $cache_file; then
2005 echo "updating cache $cache_file"
2006 cat confcache > $cache_file
2007 else
2008 echo "not updating unwritable cache $cache_file"
2011 rm -f confcache
2014 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2015 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2016 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2017 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
2018 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
2019 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2020 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
2021 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2023 # Reload cache, that may have been modified by ltconfig
2024 if test -r "$cache_file"; then
2025 echo "loading cache $cache_file"
2026 . $cache_file
2027 else
2028 echo "creating cache $cache_file"
2029 > $cache_file
2033 # This can be used to rebuild libtool when needed
2034 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
2036 # Always use our own libtool.
2037 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2039 # Redirect the config.log output again, so that the ltconfig log is not
2040 # clobbered by the next message.
2041 exec 5>>./config.log
2043 subdirs="$DIRLTDL"
2046 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
2047 COMPPATH=.
2048 else
2049 COMPPATH=..
2055 if test -d $srcdir/testsuite; then
2056 TESTSUBDIR_TRUE=
2057 TESTSUBDIR_FALSE='#'
2058 else
2059 TESTSUBDIR_TRUE='#'
2060 TESTSUBDIR_FALSE=
2063 # Check whether --enable-fast-character or --disable-fast-character was given.
2064 if test "${enable_fast_character+set}" = set; then
2065 enableval="$enable_fast_character"
2066 # Nothing
2068 else
2069 cat >> confdefs.h <<\EOF
2070 #define COMPACT_CHARACTER 1
2076 # Check whether --enable-java-awt or --disable-java-awt was given.
2077 if test "${enable_java_awt+set}" = set; then
2078 enableval="$enable_java_awt"
2079 awt=$enable_java_awt
2081 else
2082 # Default to enabled on native systems.
2083 if test -z "${with_cross_host}"; then
2084 awt=yes
2085 else
2086 awt=no
2093 if test "$awt" = yes; then
2094 AWT_TRUE=
2095 AWT_FALSE='#'
2096 else
2097 AWT_TRUE='#'
2098 AWT_FALSE=
2101 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
2102 if test "${enable_getenv_properties+set}" = set; then
2103 enableval="$enable_getenv_properties"
2108 if test -n "$enable_getenv_properties"; then
2109 enable_getenv_properties=${enable_getenv_properties_default-yes}
2111 if test "$enable_getenv_properties" = no; then
2112 cat >> confdefs.h <<\EOF
2113 #define DISABLE_GETENV_PROPERTIES 1
2118 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2119 if test "${enable_libgcj_debug+set}" = set; then
2120 enableval="$enable_libgcj_debug"
2121 if test "$enable_libgcj_debug" = yes; then
2122 cat >> confdefs.h <<\EOF
2123 #define DEBUG 1
2130 # Check whether --enable-interpreter or --disable-interpreter was given.
2131 if test "${enable_interpreter+set}" = set; then
2132 enableval="$enable_interpreter"
2133 if test "$enable_interpreter" = yes; then
2134 # This can also be set in configure.host.
2135 libgcj_interpreter=yes
2136 elif test "$enable_interpreter" = no; then
2137 libgcj_interpreter=no
2142 if test "$libgcj_interpreter" = yes; then
2143 cat >> confdefs.h <<\EOF
2144 #define INTERPRETER 1
2149 EXCEPTIONSPEC=
2150 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
2151 if test "${enable_sjlj_exceptions+set}" = set; then
2152 enableval="$enable_sjlj_exceptions"
2153 if test "$enable_sjlj_exceptions" = yes; then
2154 # This can be set in configure.host.
2155 libgcj_sjlj=yes
2160 if test "$libgcj_sjlj" = yes; then
2161 EXCEPTIONSPEC="-fsjlj-exceptions"
2162 cat >> confdefs.h <<\EOF
2163 #define SJLJ_EXCEPTIONS 1
2168 FORCELIBGCCSPEC=
2169 if test "$ac_cv_prog_gnu_ld" = yes; then
2170 FORCELIBGCCSPEC="-u __rethrow -u __frame_state_for -lgcc"
2173 echo $ac_n "checking for data_start""... $ac_c" 1>&6
2174 echo "configure:2175: checking for data_start" >&5
2175 LIBDATASTARTSPEC=
2176 NEEDS_DATA_START=
2177 cat > conftest.$ac_ext <<EOF
2178 #line 2179 "configure"
2179 #include "confdefs.h"
2180 extern int data_start;
2181 int main() {
2182 return ((int) &data_start);
2183 ; return 0; }
2185 if { (eval echo configure:2186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2186 rm -rf conftest*
2187 echo "$ac_t""found it" 1>&6
2188 else
2189 echo "configure: failed program was:" >&5
2190 cat conftest.$ac_ext >&5
2191 rm -rf conftest*
2192 LIBDATASTARTSPEC="-u data_start -lgcjdata"
2193 NEEDS_DATA_START=yes
2194 echo "$ac_t""missing" 1>&6
2196 rm -f conftest*
2199 # Check whether --enable-java-net or --disable-java-net was given.
2200 if test "${enable_java_net+set}" = set; then
2201 enableval="$enable_java_net"
2206 if test -n "$enable_java_net"; then
2207 enable_java_net=${enable_java_net_default-yes}
2209 if test "$enable_java_net" = no; then
2210 cat >> confdefs.h <<\EOF
2211 #define DISABLE_JAVA_NET 1
2216 # Check whether --enable-jvmpi or --disable-jvmpi was given.
2217 if test "${enable_jvmpi+set}" = set; then
2218 enableval="$enable_jvmpi"
2223 if test "$enable_jvmpi" != no; then
2224 cat >> confdefs.h <<\EOF
2225 #define ENABLE_JVMPI 1
2230 TARGET_ECOS="no"
2231 # Check whether --with-ecos or --without-ecos was given.
2232 if test "${with_ecos+set}" = set; then
2233 withval="$with_ecos"
2234 TARGET_ECOS="$with_ecos"
2239 case "$TARGET_ECOS" in
2241 FILE_DESCRIPTOR=natFileDescriptorPosix.cc
2242 PROCESS=${PROCESS-Posix}
2245 FILE_DESCRIPTOR=natFileDescriptorEcos.cc
2246 PROCESS=Ecos
2247 cat >> confdefs.h <<\EOF
2248 #define ECOS 1
2252 esac
2254 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2255 echo "configure:2256: checking how to run the C preprocessor" >&5
2256 # On Suns, sometimes $CPP names a directory.
2257 if test -n "$CPP" && test -d "$CPP"; then
2258 CPP=
2260 if test -z "$CPP"; then
2261 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2262 echo $ac_n "(cached) $ac_c" 1>&6
2263 else
2264 # This must be in double quotes, not single quotes, because CPP may get
2265 # substituted into the Makefile and "${CC-cc}" will confuse make.
2266 CPP="${CC-cc} -E"
2267 # On the NeXT, cc -E runs the code through the compiler's parser,
2268 # not just through cpp.
2269 cat > conftest.$ac_ext <<EOF
2270 #line 2271 "configure"
2271 #include "confdefs.h"
2272 #include <assert.h>
2273 Syntax Error
2275 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2276 { (eval echo configure:2277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2277 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2278 if test -z "$ac_err"; then
2280 else
2281 echo "$ac_err" >&5
2282 echo "configure: failed program was:" >&5
2283 cat conftest.$ac_ext >&5
2284 rm -rf conftest*
2285 CPP="${CC-cc} -E -traditional-cpp"
2286 cat > conftest.$ac_ext <<EOF
2287 #line 2288 "configure"
2288 #include "confdefs.h"
2289 #include <assert.h>
2290 Syntax Error
2292 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2293 { (eval echo configure:2294: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2294 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2295 if test -z "$ac_err"; then
2297 else
2298 echo "$ac_err" >&5
2299 echo "configure: failed program was:" >&5
2300 cat conftest.$ac_ext >&5
2301 rm -rf conftest*
2302 CPP="${CC-cc} -nologo -E"
2303 cat > conftest.$ac_ext <<EOF
2304 #line 2305 "configure"
2305 #include "confdefs.h"
2306 #include <assert.h>
2307 Syntax Error
2309 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2310 { (eval echo configure:2311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2311 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2312 if test -z "$ac_err"; then
2314 else
2315 echo "$ac_err" >&5
2316 echo "configure: failed program was:" >&5
2317 cat conftest.$ac_ext >&5
2318 rm -rf conftest*
2319 CPP=/lib/cpp
2321 rm -f conftest*
2323 rm -f conftest*
2325 rm -f conftest*
2326 ac_cv_prog_CPP="$CPP"
2328 CPP="$ac_cv_prog_CPP"
2329 else
2330 ac_cv_prog_CPP="$CPP"
2332 echo "$ac_t""$CPP" 1>&6
2334 cat > conftest.$ac_ext <<EOF
2335 #line 2336 "configure"
2336 #include "confdefs.h"
2337 #include <stdint.h>
2339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2340 egrep "uint32_t" >/dev/null 2>&1; then
2341 rm -rf conftest*
2342 cat >> confdefs.h <<\EOF
2343 #define HAVE_INT32_DEFINED 1
2347 rm -f conftest*
2349 cat > conftest.$ac_ext <<EOF
2350 #line 2351 "configure"
2351 #include "confdefs.h"
2352 #include <inttypes.h>
2354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2355 egrep "uint32_t" >/dev/null 2>&1; then
2356 rm -rf conftest*
2357 cat >> confdefs.h <<\EOF
2358 #define HAVE_INT32_DEFINED 1
2362 rm -f conftest*
2364 cat > conftest.$ac_ext <<EOF
2365 #line 2366 "configure"
2366 #include "confdefs.h"
2367 #include <sys/types.h>
2369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2370 egrep "u_int32_t" >/dev/null 2>&1; then
2371 rm -rf conftest*
2372 cat >> confdefs.h <<\EOF
2373 #define HAVE_BSD_INT32_DEFINED 1
2377 rm -f conftest*
2379 cat > conftest.$ac_ext <<EOF
2380 #line 2381 "configure"
2381 #include "confdefs.h"
2382 #include <sys/config.h>
2384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2385 egrep "u_int32_t" >/dev/null 2>&1; then
2386 rm -rf conftest*
2387 cat >> confdefs.h <<\EOF
2388 #define HAVE_BSD_INT32_DEFINED 1
2392 rm -f conftest*
2396 cat > conftest.$ac_ext <<EOF
2397 #line 2398 "configure"
2398 #include "confdefs.h"
2399 #include <time.h>
2401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2402 egrep "mktime" >/dev/null 2>&1; then
2403 rm -rf conftest*
2404 cat >> confdefs.h <<\EOF
2405 #define HAVE_MKTIME 1
2409 rm -f conftest*
2411 cat > conftest.$ac_ext <<EOF
2412 #line 2413 "configure"
2413 #include "confdefs.h"
2414 #include <time.h>
2416 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2417 egrep "localtime" >/dev/null 2>&1; then
2418 rm -rf conftest*
2419 cat >> confdefs.h <<\EOF
2420 #define HAVE_LOCALTIME 1
2424 rm -f conftest*
2427 test -d java || mkdir java
2428 test -d java/io || mkdir java/io
2431 test -d java/lang || mkdir java/lang
2435 SYSTEMSPEC=
2438 LIBGCJTESTSPEC="-L`pwd`/.libs -rpath `pwd`/.libs"
2441 # Check whether --with-system-zlib or --without-system-zlib was given.
2442 if test "${with_system_zlib+set}" = set; then
2443 withval="$with_system_zlib"
2447 ZLIBSPEC=
2449 ZLIBTESTSPEC=
2452 libsubdir=.libs
2454 echo $ac_n "checking for garbage collector to use""... $ac_c" 1>&6
2455 echo "configure:2456: checking for garbage collector to use" >&5
2456 # Check whether --enable-java-gc or --disable-java-gc was given.
2457 if test "${enable_java_gc+set}" = set; then
2458 enableval="$enable_java_gc"
2460 GC=$enableval
2461 else
2462 GC=boehm
2465 GCLIBS=
2466 GCINCS=
2467 GCDEPS=
2468 GCOBJS=
2469 GCSPEC=
2470 GCTESTSPEC=
2471 case "$GC" in
2472 boehm)
2473 echo "$ac_t""boehm" 1>&6
2474 GCDEPS='$(top_builddir)/../boehm-gc/libgcjgc.la'
2475 # We include the path to the boehm-gc build directory.
2476 # See Makefile.am to understand why.
2477 GCLIBS="$GCDEPS -L\$(here)/../boehm-gc/$libsubdir"
2478 GCINCS='-I$(top_srcdir)/../boehm-gc -I$(top_builddir)/../boehm-gc'
2479 GCSPEC='-lgcjgc'
2480 GCTESTSPEC="-L`pwd`/../boehm-gc/.libs -rpath `pwd`/../boehm-gc/.libs"
2481 GCINCS="$GCINCS `cat ../boehm-gc/boehm-cflags`"
2482 GCOBJS=boehm.lo
2483 GCHDR=boehm-gc.h
2484 cat >> confdefs.h <<\EOF
2485 #define HAVE_BOEHM_GC 1
2490 echo "$ac_t""none" 1>&6
2491 GCOBJS=nogc.lo
2492 GCHDR=no-gc.h
2495 { echo "configure: error: unrecognized collector \"$GC\"" 1>&2; exit 1; }
2497 esac
2507 echo $ac_n "checking for threads package to use""... $ac_c" 1>&6
2508 echo "configure:2509: checking for threads package to use" >&5
2509 # Check whether --enable-threads or --disable-threads was given.
2510 if test "${enable_threads+set}" = set; then
2511 enableval="$enable_threads"
2512 THREADS=$enableval
2513 else
2514 THREADS=no
2518 if test "$THREADS" = yes; then
2519 case "$host" in
2520 *-*-vxworks*)
2521 THREADS=vxworks
2523 *-*-linux*)
2524 # FIXME: this isn't correct in all cases.
2525 THREADS=posix
2527 *-*-win*)
2528 THREADS=win32
2530 *-*-irix*)
2531 # FIXME: for now, choose POSIX, because we implement that.
2532 # Later, choose irix threads.
2533 THREADS=posix
2535 *-*-solaris*)
2536 # FIXME: for now, choose POSIX, because we implement that.
2537 # Later, choose solaris threads.
2538 THREADS=posix
2541 # For now.
2542 THREADS=none
2544 esac
2547 case "$THREADS" in
2548 no | none | single)
2549 THREADS=none
2551 posix | pthreads)
2552 THREADS=posix
2553 case "$host" in
2554 *-*-linux*)
2555 cat >> confdefs.h <<\EOF
2556 #define LINUX_THREADS 1
2560 esac
2562 decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
2563 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
2566 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
2568 esac
2569 echo "$ac_t""$THREADS" 1>&6
2571 THREADLIBS=
2572 THREADINCS=
2573 THREADDEPS=
2574 THREADOBJS=
2575 THREADH=
2576 THREADSPEC=
2577 case "$THREADS" in
2578 posix)
2579 THREADLIBS=-lpthread
2580 THREADSPEC=-lpthread
2581 THREADOBJS=posix-threads.lo
2582 THREADH=posix-threads.h
2583 # MIT pthreads doesn't seem to have the mutexattr functions.
2584 # But for now we don't check for it. We just assume you aren't
2585 # using MIT pthreads.
2586 cat >> confdefs.h <<\EOF
2587 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
2591 # If we're using the Boehm GC, then we happen to know that it
2592 # defines _REENTRANT, so we don't bother. Eww.
2593 if test "$GC" != boehm; then
2594 cat >> confdefs.h <<\EOF
2595 #define _REENTRANT 1
2599 cat >> confdefs.h <<\EOF
2600 #define _POSIX_PTHREAD_SEMANTICS 1
2605 none)
2606 THREADOBJS=no-threads.lo
2607 THREADH=no-threads.h
2609 esac
2619 if test "$GCC" = yes; then
2620 USING_GCC_TRUE=
2621 USING_GCC_FALSE='#'
2622 else
2623 USING_GCC_TRUE='#'
2624 USING_GCC_FALSE=
2627 CANADIAN=no
2628 NULL_TARGET=no
2629 NATIVE=yes
2631 # Find eh-common.h and support headers. If we're in the tree with
2632 # gcc, then look there. Otherwise look in compat-include. If all else
2633 # fails, just hope the user has set things up somehow.
2634 if test -r $srcdir/../gcc/eh-common.h; then
2635 EH_COMMON_INCLUDE='-I$(top_srcdir)/../gcc -I$(top_srcdir)/../include'
2636 else
2637 if test -d $srcdir/../compat-include; then
2638 EH_COMMON_INCLUDE='-I$(top_srcdir)/../compat-include'
2639 else
2640 EH_COMMON_INCLUDE=
2644 if test -n "${with_cross_host}"; then
2645 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
2646 # may not work correctly, because the compiler may not be able to
2647 # link executables.
2649 # We assume newlib. This lets us hard-code the functions we know
2650 # we'll have.
2651 cat >> confdefs.h <<\EOF
2652 #define HAVE_MEMMOVE 1
2655 cat >> confdefs.h <<\EOF
2656 #define HAVE_MEMCPY 1
2659 cat >> confdefs.h <<\EOF
2660 #define HAVE_STRERROR 1
2663 cat >> confdefs.h <<\EOF
2664 #define HAVE_GMTIME_R 1
2667 cat >> confdefs.h <<\EOF
2668 #define HAVE_LOCALTIME_R 1
2671 cat >> confdefs.h <<\EOF
2672 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
2675 cat >> confdefs.h <<\EOF
2676 #define HAVE_ALLOCA 1
2680 cat >> confdefs.h <<\EOF
2681 #define NO_GETUID 1
2685 ZLIBSPEC=-lzgcj
2686 ZLIBTESTSPEC="-L`pwd`/../zlib/.libs -rpath `pwd`/../zlib/.libs"
2688 # If Canadian cross, then don't pick up tools from the build
2689 # directory.
2690 if test "$build" != "$with_cross_host"; then
2691 CANADIAN=yes
2692 EH_COMMON_INCLUDE=
2693 GCJ="${target_alias}-gcj"
2694 else
2695 GCJ=
2697 NATIVE=no
2698 else
2699 for ac_func in strerror ioctl select fstat open fsync sleep
2701 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2702 echo "configure:2703: checking for $ac_func" >&5
2703 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2704 echo $ac_n "(cached) $ac_c" 1>&6
2705 else
2706 cat > conftest.$ac_ext <<EOF
2707 #line 2708 "configure"
2708 #include "confdefs.h"
2709 /* System header to define __stub macros and hopefully few prototypes,
2710 which can conflict with char $ac_func(); below. */
2711 #include <assert.h>
2712 /* Override any gcc2 internal prototype to avoid an error. */
2713 /* We use char because int might match the return type of a gcc2
2714 builtin and then its argument prototype would still apply. */
2715 char $ac_func();
2717 int main() {
2719 /* The GNU C library defines this for functions which it implements
2720 to always fail with ENOSYS. Some functions are actually named
2721 something starting with __ and the normal name is an alias. */
2722 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2723 choke me
2724 #else
2725 $ac_func();
2726 #endif
2728 ; return 0; }
2730 if { (eval echo configure:2731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2731 rm -rf conftest*
2732 eval "ac_cv_func_$ac_func=yes"
2733 else
2734 echo "configure: failed program was:" >&5
2735 cat conftest.$ac_ext >&5
2736 rm -rf conftest*
2737 eval "ac_cv_func_$ac_func=no"
2739 rm -f conftest*
2742 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2743 echo "$ac_t""yes" 1>&6
2744 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2745 cat >> confdefs.h <<EOF
2746 #define $ac_tr_func 1
2749 else
2750 echo "$ac_t""no" 1>&6
2752 done
2754 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
2756 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2757 echo "configure:2758: checking for $ac_func" >&5
2758 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2759 echo $ac_n "(cached) $ac_c" 1>&6
2760 else
2761 cat > conftest.$ac_ext <<EOF
2762 #line 2763 "configure"
2763 #include "confdefs.h"
2764 /* System header to define __stub macros and hopefully few prototypes,
2765 which can conflict with char $ac_func(); below. */
2766 #include <assert.h>
2767 /* Override any gcc2 internal prototype to avoid an error. */
2768 /* We use char because int might match the return type of a gcc2
2769 builtin and then its argument prototype would still apply. */
2770 char $ac_func();
2772 int main() {
2774 /* The GNU C library defines this for functions which it implements
2775 to always fail with ENOSYS. Some functions are actually named
2776 something starting with __ and the normal name is an alias. */
2777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2778 choke me
2779 #else
2780 $ac_func();
2781 #endif
2783 ; return 0; }
2785 if { (eval echo configure:2786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2786 rm -rf conftest*
2787 eval "ac_cv_func_$ac_func=yes"
2788 else
2789 echo "configure: failed program was:" >&5
2790 cat conftest.$ac_ext >&5
2791 rm -rf conftest*
2792 eval "ac_cv_func_$ac_func=no"
2794 rm -f conftest*
2797 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2798 echo "$ac_t""yes" 1>&6
2799 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2800 cat >> confdefs.h <<EOF
2801 #define $ac_tr_func 1
2804 else
2805 echo "$ac_t""no" 1>&6
2807 done
2809 for ac_func in access stat mkdir rename rmdir unlink realpath iconv
2811 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2812 echo "configure:2813: checking for $ac_func" >&5
2813 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2814 echo $ac_n "(cached) $ac_c" 1>&6
2815 else
2816 cat > conftest.$ac_ext <<EOF
2817 #line 2818 "configure"
2818 #include "confdefs.h"
2819 /* System header to define __stub macros and hopefully few prototypes,
2820 which can conflict with char $ac_func(); below. */
2821 #include <assert.h>
2822 /* Override any gcc2 internal prototype to avoid an error. */
2823 /* We use char because int might match the return type of a gcc2
2824 builtin and then its argument prototype would still apply. */
2825 char $ac_func();
2827 int main() {
2829 /* The GNU C library defines this for functions which it implements
2830 to always fail with ENOSYS. Some functions are actually named
2831 something starting with __ and the normal name is an alias. */
2832 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2833 choke me
2834 #else
2835 $ac_func();
2836 #endif
2838 ; return 0; }
2840 if { (eval echo configure:2841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2841 rm -rf conftest*
2842 eval "ac_cv_func_$ac_func=yes"
2843 else
2844 echo "configure: failed program was:" >&5
2845 cat conftest.$ac_ext >&5
2846 rm -rf conftest*
2847 eval "ac_cv_func_$ac_func=no"
2849 rm -f conftest*
2852 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2853 echo "$ac_t""yes" 1>&6
2854 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2855 cat >> confdefs.h <<EOF
2856 #define $ac_tr_func 1
2859 else
2860 echo "$ac_t""no" 1>&6
2862 done
2864 for ac_func in inet_aton inet_addr
2866 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2867 echo "configure:2868: checking for $ac_func" >&5
2868 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2869 echo $ac_n "(cached) $ac_c" 1>&6
2870 else
2871 cat > conftest.$ac_ext <<EOF
2872 #line 2873 "configure"
2873 #include "confdefs.h"
2874 /* System header to define __stub macros and hopefully few prototypes,
2875 which can conflict with char $ac_func(); below. */
2876 #include <assert.h>
2877 /* Override any gcc2 internal prototype to avoid an error. */
2878 /* We use char because int might match the return type of a gcc2
2879 builtin and then its argument prototype would still apply. */
2880 char $ac_func();
2882 int main() {
2884 /* The GNU C library defines this for functions which it implements
2885 to always fail with ENOSYS. Some functions are actually named
2886 something starting with __ and the normal name is an alias. */
2887 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2888 choke me
2889 #else
2890 $ac_func();
2891 #endif
2893 ; return 0; }
2895 if { (eval echo configure:2896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2896 rm -rf conftest*
2897 eval "ac_cv_func_$ac_func=yes"
2898 else
2899 echo "configure: failed program was:" >&5
2900 cat conftest.$ac_ext >&5
2901 rm -rf conftest*
2902 eval "ac_cv_func_$ac_func=no"
2904 rm -f conftest*
2907 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2908 echo "$ac_t""yes" 1>&6
2909 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2910 cat >> confdefs.h <<EOF
2911 #define $ac_tr_func 1
2913 break
2914 else
2915 echo "$ac_t""no" 1>&6
2917 done
2919 for ac_func in inet_pton uname inet_ntoa
2921 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2922 echo "configure:2923: checking for $ac_func" >&5
2923 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2924 echo $ac_n "(cached) $ac_c" 1>&6
2925 else
2926 cat > conftest.$ac_ext <<EOF
2927 #line 2928 "configure"
2928 #include "confdefs.h"
2929 /* System header to define __stub macros and hopefully few prototypes,
2930 which can conflict with char $ac_func(); below. */
2931 #include <assert.h>
2932 /* Override any gcc2 internal prototype to avoid an error. */
2933 /* We use char because int might match the return type of a gcc2
2934 builtin and then its argument prototype would still apply. */
2935 char $ac_func();
2937 int main() {
2939 /* The GNU C library defines this for functions which it implements
2940 to always fail with ENOSYS. Some functions are actually named
2941 something starting with __ and the normal name is an alias. */
2942 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2943 choke me
2944 #else
2945 $ac_func();
2946 #endif
2948 ; return 0; }
2950 if { (eval echo configure:2951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2951 rm -rf conftest*
2952 eval "ac_cv_func_$ac_func=yes"
2953 else
2954 echo "configure: failed program was:" >&5
2955 cat conftest.$ac_ext >&5
2956 rm -rf conftest*
2957 eval "ac_cv_func_$ac_func=no"
2959 rm -f conftest*
2962 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2963 echo "$ac_t""yes" 1>&6
2964 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2965 cat >> confdefs.h <<EOF
2966 #define $ac_tr_func 1
2969 else
2970 echo "$ac_t""no" 1>&6
2972 done
2974 for ac_func in backtrace fork execvp pipe
2976 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2977 echo "configure:2978: checking for $ac_func" >&5
2978 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2979 echo $ac_n "(cached) $ac_c" 1>&6
2980 else
2981 cat > conftest.$ac_ext <<EOF
2982 #line 2983 "configure"
2983 #include "confdefs.h"
2984 /* System header to define __stub macros and hopefully few prototypes,
2985 which can conflict with char $ac_func(); below. */
2986 #include <assert.h>
2987 /* Override any gcc2 internal prototype to avoid an error. */
2988 /* We use char because int might match the return type of a gcc2
2989 builtin and then its argument prototype would still apply. */
2990 char $ac_func();
2992 int main() {
2994 /* The GNU C library defines this for functions which it implements
2995 to always fail with ENOSYS. Some functions are actually named
2996 something starting with __ and the normal name is an alias. */
2997 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2998 choke me
2999 #else
3000 $ac_func();
3001 #endif
3003 ; return 0; }
3005 if { (eval echo configure:3006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3006 rm -rf conftest*
3007 eval "ac_cv_func_$ac_func=yes"
3008 else
3009 echo "configure: failed program was:" >&5
3010 cat conftest.$ac_ext >&5
3011 rm -rf conftest*
3012 eval "ac_cv_func_$ac_func=no"
3014 rm -f conftest*
3017 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3018 echo "$ac_t""yes" 1>&6
3019 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3020 cat >> confdefs.h <<EOF
3021 #define $ac_tr_func 1
3024 else
3025 echo "$ac_t""no" 1>&6
3027 done
3029 for ac_hdr in execinfo.h unistd.h dlfcn.h
3031 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3032 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3033 echo "configure:3034: checking for $ac_hdr" >&5
3034 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3035 echo $ac_n "(cached) $ac_c" 1>&6
3036 else
3037 cat > conftest.$ac_ext <<EOF
3038 #line 3039 "configure"
3039 #include "confdefs.h"
3040 #include <$ac_hdr>
3042 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3043 { (eval echo configure:3044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3044 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3045 if test -z "$ac_err"; then
3046 rm -rf conftest*
3047 eval "ac_cv_header_$ac_safe=yes"
3048 else
3049 echo "$ac_err" >&5
3050 echo "configure: failed program was:" >&5
3051 cat conftest.$ac_ext >&5
3052 rm -rf conftest*
3053 eval "ac_cv_header_$ac_safe=no"
3055 rm -f conftest*
3057 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3058 echo "$ac_t""yes" 1>&6
3059 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3060 cat >> confdefs.h <<EOF
3061 #define $ac_tr_hdr 1
3064 else
3065 echo "$ac_t""no" 1>&6
3067 done
3069 echo $ac_n "checking for dladdr in -ldl""... $ac_c" 1>&6
3070 echo "configure:3071: checking for dladdr in -ldl" >&5
3071 ac_lib_var=`echo dl'_'dladdr | sed 'y%./+-%__p_%'`
3072 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3073 echo $ac_n "(cached) $ac_c" 1>&6
3074 else
3075 ac_save_LIBS="$LIBS"
3076 LIBS="-ldl $LIBS"
3077 cat > conftest.$ac_ext <<EOF
3078 #line 3079 "configure"
3079 #include "confdefs.h"
3080 /* Override any gcc2 internal prototype to avoid an error. */
3081 /* We use char because int might match the return type of a gcc2
3082 builtin and then its argument prototype would still apply. */
3083 char dladdr();
3085 int main() {
3086 dladdr()
3087 ; return 0; }
3089 if { (eval echo configure:3090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3090 rm -rf conftest*
3091 eval "ac_cv_lib_$ac_lib_var=yes"
3092 else
3093 echo "configure: failed program was:" >&5
3094 cat conftest.$ac_ext >&5
3095 rm -rf conftest*
3096 eval "ac_cv_lib_$ac_lib_var=no"
3098 rm -f conftest*
3099 LIBS="$ac_save_LIBS"
3102 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3103 echo "$ac_t""yes" 1>&6
3105 cat >> confdefs.h <<\EOF
3106 #define HAVE_DLADDR 1
3109 else
3110 echo "$ac_t""no" 1>&6
3113 for ac_file in /proc/self/exe
3116 ac_safe=`echo "$ac_file" | sed 'y%./+-%__p_%'`
3117 echo $ac_n "checking for $ac_file""... $ac_c" 1>&6
3118 echo "configure:3119: checking for $ac_file" >&5
3119 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
3120 echo $ac_n "(cached) $ac_c" 1>&6
3121 else
3122 if test "$cross_compiling" = yes; then
3123 { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
3124 else
3125 if test -r $ac_file; then
3126 eval "ac_cv_file_$ac_safe=yes"
3127 else
3128 eval "ac_cv_file_$ac_safe=no"
3132 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
3133 echo "$ac_t""yes" 1>&6
3134 ac_tr_file=HAVE_`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3135 cat >> confdefs.h <<EOF
3136 #define $ac_tr_file 1
3139 cat >> confdefs.h <<\EOF
3140 #define HAVE_PROC_SELF_EXE 1
3143 else
3144 echo "$ac_t""no" 1>&6
3147 done
3150 for ac_func in gethostbyname_r
3152 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3153 echo "configure:3154: checking for $ac_func" >&5
3154 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3155 echo $ac_n "(cached) $ac_c" 1>&6
3156 else
3157 cat > conftest.$ac_ext <<EOF
3158 #line 3159 "configure"
3159 #include "confdefs.h"
3160 /* System header to define __stub macros and hopefully few prototypes,
3161 which can conflict with char $ac_func(); below. */
3162 #include <assert.h>
3163 /* Override any gcc2 internal prototype to avoid an error. */
3164 /* We use char because int might match the return type of a gcc2
3165 builtin and then its argument prototype would still apply. */
3166 char $ac_func();
3168 int main() {
3170 /* The GNU C library defines this for functions which it implements
3171 to always fail with ENOSYS. Some functions are actually named
3172 something starting with __ and the normal name is an alias. */
3173 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3174 choke me
3175 #else
3176 $ac_func();
3177 #endif
3179 ; return 0; }
3181 if { (eval echo configure:3182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3182 rm -rf conftest*
3183 eval "ac_cv_func_$ac_func=yes"
3184 else
3185 echo "configure: failed program was:" >&5
3186 cat conftest.$ac_ext >&5
3187 rm -rf conftest*
3188 eval "ac_cv_func_$ac_func=no"
3190 rm -f conftest*
3193 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3194 echo "$ac_t""yes" 1>&6
3195 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3196 cat >> confdefs.h <<EOF
3197 #define $ac_tr_func 1
3200 cat >> confdefs.h <<\EOF
3201 #define HAVE_GETHOSTBYNAME_R 1
3204 # There are two different kinds of gethostbyname_r.
3205 # We look for the one that returns `int'.
3206 # Hopefully this check is robust enough.
3207 cat > conftest.$ac_ext <<EOF
3208 #line 3209 "configure"
3209 #include "confdefs.h"
3210 #include <netdb.h>
3212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3213 egrep "int.*gethostbyname_r" >/dev/null 2>&1; then
3214 rm -rf conftest*
3216 cat >> confdefs.h <<\EOF
3217 #define GETHOSTBYNAME_R_RETURNS_INT 1
3221 rm -f conftest*
3224 case " $GCINCS " in
3225 *" -D_REENTRANT "*) ;;
3227 echo $ac_n "checking whether gethostbyname_r declaration requires -D_REENTRANT""... $ac_c" 1>&6
3228 echo "configure:3229: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
3229 if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
3230 echo $ac_n "(cached) $ac_c" 1>&6
3231 else
3233 ac_ext=C
3234 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3235 ac_cpp='$CXXCPP $CPPFLAGS'
3236 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3237 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3238 cross_compiling=$ac_cv_prog_cxx_cross
3240 cat > conftest.$ac_ext <<EOF
3241 #line 3242 "configure"
3242 #include "confdefs.h"
3243 #include <netdb.h>
3244 int main() {
3245 gethostbyname_r("", 0, 0);
3246 ; return 0; }
3248 if { (eval echo configure:3249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3249 rm -rf conftest*
3250 libjava_cv_gethostbyname_r_needs_reentrant=no
3251 else
3252 echo "configure: failed program was:" >&5
3253 cat conftest.$ac_ext >&5
3254 rm -rf conftest*
3255 CPPFLAGS_SAVE="$CPPFLAGS"
3256 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
3257 cat > conftest.$ac_ext <<EOF
3258 #line 3259 "configure"
3259 #include "confdefs.h"
3260 #include <netdb.h>
3261 int main() {
3262 gethostbyname_r("", 0, 0);
3263 ; return 0; }
3265 if { (eval echo configure:3266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3266 rm -rf conftest*
3267 libjava_cv_gethostbyname_r_needs_reentrant=yes
3268 else
3269 echo "configure: failed program was:" >&5
3270 cat conftest.$ac_ext >&5
3271 rm -rf conftest*
3272 libjava_cv_gethostbyname_r_needs_reentrant=fail
3274 rm -f conftest*
3275 CPPFLAGS="$CPPFLAGS_SAVE"
3278 rm -f conftest*
3279 ac_ext=c
3280 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3281 ac_cpp='$CPP $CPPFLAGS'
3282 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3283 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3284 cross_compiling=$ac_cv_prog_cc_cross
3289 echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
3290 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
3291 cat >> confdefs.h <<\EOF
3292 #define _REENTRANT 1
3297 esac
3299 echo $ac_n "checking for struct hostent_data""... $ac_c" 1>&6
3300 echo "configure:3301: checking for struct hostent_data" >&5
3301 if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
3302 echo $ac_n "(cached) $ac_c" 1>&6
3303 else
3304 cat > conftest.$ac_ext <<EOF
3305 #line 3306 "configure"
3306 #include "confdefs.h"
3308 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
3309 # define _REENTRANT 1
3310 #endif
3311 #include <netdb.h>
3312 int main() {
3313 struct hostent_data data;
3314 ; return 0; }
3316 if { (eval echo configure:3317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3317 rm -rf conftest*
3318 libjava_cv_struct_hostent_data=yes
3319 else
3320 echo "configure: failed program was:" >&5
3321 cat conftest.$ac_ext >&5
3322 rm -rf conftest*
3323 libjava_cv_struct_hostent_data=no
3325 rm -f conftest*
3328 echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
3329 if test "x$libjava_cv_struct_hostent_data" = xyes; then
3330 cat >> confdefs.h <<\EOF
3331 #define HAVE_STRUCT_HOSTENT_DATA 1
3336 else
3337 echo "$ac_t""no" 1>&6
3339 done
3342 for ac_func in gethostbyaddr_r
3344 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3345 echo "configure:3346: checking for $ac_func" >&5
3346 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3347 echo $ac_n "(cached) $ac_c" 1>&6
3348 else
3349 cat > conftest.$ac_ext <<EOF
3350 #line 3351 "configure"
3351 #include "confdefs.h"
3352 /* System header to define __stub macros and hopefully few prototypes,
3353 which can conflict with char $ac_func(); below. */
3354 #include <assert.h>
3355 /* Override any gcc2 internal prototype to avoid an error. */
3356 /* We use char because int might match the return type of a gcc2
3357 builtin and then its argument prototype would still apply. */
3358 char $ac_func();
3360 int main() {
3362 /* The GNU C library defines this for functions which it implements
3363 to always fail with ENOSYS. Some functions are actually named
3364 something starting with __ and the normal name is an alias. */
3365 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3366 choke me
3367 #else
3368 $ac_func();
3369 #endif
3371 ; return 0; }
3373 if { (eval echo configure:3374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3374 rm -rf conftest*
3375 eval "ac_cv_func_$ac_func=yes"
3376 else
3377 echo "configure: failed program was:" >&5
3378 cat conftest.$ac_ext >&5
3379 rm -rf conftest*
3380 eval "ac_cv_func_$ac_func=no"
3382 rm -f conftest*
3385 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3386 echo "$ac_t""yes" 1>&6
3387 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3388 cat >> confdefs.h <<EOF
3389 #define $ac_tr_func 1
3392 cat >> confdefs.h <<\EOF
3393 #define HAVE_GETHOSTBYADDR_R 1
3396 # There are two different kinds of gethostbyaddr_r.
3397 # We look for the one that returns `int'.
3398 # Hopefully this check is robust enough.
3399 cat > conftest.$ac_ext <<EOF
3400 #line 3401 "configure"
3401 #include "confdefs.h"
3402 #include <netdb.h>
3404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3405 egrep "int.*gethostbyaddr_r" >/dev/null 2>&1; then
3406 rm -rf conftest*
3408 cat >> confdefs.h <<\EOF
3409 #define GETHOSTBYADDR_R_RETURNS_INT 1
3413 rm -f conftest*
3415 else
3416 echo "$ac_t""no" 1>&6
3418 done
3421 for ac_func in gethostname
3423 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3424 echo "configure:3425: checking for $ac_func" >&5
3425 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3426 echo $ac_n "(cached) $ac_c" 1>&6
3427 else
3428 cat > conftest.$ac_ext <<EOF
3429 #line 3430 "configure"
3430 #include "confdefs.h"
3431 /* System header to define __stub macros and hopefully few prototypes,
3432 which can conflict with char $ac_func(); below. */
3433 #include <assert.h>
3434 /* Override any gcc2 internal prototype to avoid an error. */
3435 /* We use char because int might match the return type of a gcc2
3436 builtin and then its argument prototype would still apply. */
3437 char $ac_func();
3439 int main() {
3441 /* The GNU C library defines this for functions which it implements
3442 to always fail with ENOSYS. Some functions are actually named
3443 something starting with __ and the normal name is an alias. */
3444 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3445 choke me
3446 #else
3447 $ac_func();
3448 #endif
3450 ; return 0; }
3452 if { (eval echo configure:3453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3453 rm -rf conftest*
3454 eval "ac_cv_func_$ac_func=yes"
3455 else
3456 echo "configure: failed program was:" >&5
3457 cat conftest.$ac_ext >&5
3458 rm -rf conftest*
3459 eval "ac_cv_func_$ac_func=no"
3461 rm -f conftest*
3464 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3465 echo "$ac_t""yes" 1>&6
3466 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3467 cat >> confdefs.h <<EOF
3468 #define $ac_tr_func 1
3471 cat >> confdefs.h <<\EOF
3472 #define HAVE_GETHOSTNAME 1
3475 cat > conftest.$ac_ext <<EOF
3476 #line 3477 "configure"
3477 #include "confdefs.h"
3478 #include <unistd.h>
3480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3481 egrep "gethostname" >/dev/null 2>&1; then
3482 rm -rf conftest*
3484 cat >> confdefs.h <<\EOF
3485 #define HAVE_GETHOSTNAME_DECL 1
3489 rm -f conftest*
3491 else
3492 echo "$ac_t""no" 1>&6
3494 done
3497 # Look for these functions in the thread library, but only bother
3498 # if using POSIX threads.
3499 if test "$THREADS" = posix; then
3500 save_LIBS="$LIBS"
3501 LIBS="$LIBS $THREADLIBS"
3502 # Some POSIX thread systems don't have pthread_mutexattr_settype.
3503 # E.g., Solaris.
3504 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
3506 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3507 echo "configure:3508: checking for $ac_func" >&5
3508 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3509 echo $ac_n "(cached) $ac_c" 1>&6
3510 else
3511 cat > conftest.$ac_ext <<EOF
3512 #line 3513 "configure"
3513 #include "confdefs.h"
3514 /* System header to define __stub macros and hopefully few prototypes,
3515 which can conflict with char $ac_func(); below. */
3516 #include <assert.h>
3517 /* Override any gcc2 internal prototype to avoid an error. */
3518 /* We use char because int might match the return type of a gcc2
3519 builtin and then its argument prototype would still apply. */
3520 char $ac_func();
3522 int main() {
3524 /* The GNU C library defines this for functions which it implements
3525 to always fail with ENOSYS. Some functions are actually named
3526 something starting with __ and the normal name is an alias. */
3527 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3528 choke me
3529 #else
3530 $ac_func();
3531 #endif
3533 ; return 0; }
3535 if { (eval echo configure:3536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3536 rm -rf conftest*
3537 eval "ac_cv_func_$ac_func=yes"
3538 else
3539 echo "configure: failed program was:" >&5
3540 cat conftest.$ac_ext >&5
3541 rm -rf conftest*
3542 eval "ac_cv_func_$ac_func=no"
3544 rm -f conftest*
3547 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3548 echo "$ac_t""yes" 1>&6
3549 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3550 cat >> confdefs.h <<EOF
3551 #define $ac_tr_func 1
3554 else
3555 echo "$ac_t""no" 1>&6
3557 done
3560 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
3561 # Solaris 7 the name librt is preferred.
3562 for ac_func in sched_yield
3564 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3565 echo "configure:3566: checking for $ac_func" >&5
3566 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3567 echo $ac_n "(cached) $ac_c" 1>&6
3568 else
3569 cat > conftest.$ac_ext <<EOF
3570 #line 3571 "configure"
3571 #include "confdefs.h"
3572 /* System header to define __stub macros and hopefully few prototypes,
3573 which can conflict with char $ac_func(); below. */
3574 #include <assert.h>
3575 /* Override any gcc2 internal prototype to avoid an error. */
3576 /* We use char because int might match the return type of a gcc2
3577 builtin and then its argument prototype would still apply. */
3578 char $ac_func();
3580 int main() {
3582 /* The GNU C library defines this for functions which it implements
3583 to always fail with ENOSYS. Some functions are actually named
3584 something starting with __ and the normal name is an alias. */
3585 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3586 choke me
3587 #else
3588 $ac_func();
3589 #endif
3591 ; return 0; }
3593 if { (eval echo configure:3594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3594 rm -rf conftest*
3595 eval "ac_cv_func_$ac_func=yes"
3596 else
3597 echo "configure: failed program was:" >&5
3598 cat conftest.$ac_ext >&5
3599 rm -rf conftest*
3600 eval "ac_cv_func_$ac_func=no"
3602 rm -f conftest*
3605 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3606 echo "$ac_t""yes" 1>&6
3607 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3608 cat >> confdefs.h <<EOF
3609 #define $ac_tr_func 1
3612 else
3613 echo "$ac_t""no" 1>&6
3614 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
3615 echo "configure:3616: checking for sched_yield in -lrt" >&5
3616 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
3617 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3618 echo $ac_n "(cached) $ac_c" 1>&6
3619 else
3620 ac_save_LIBS="$LIBS"
3621 LIBS="-lrt $LIBS"
3622 cat > conftest.$ac_ext <<EOF
3623 #line 3624 "configure"
3624 #include "confdefs.h"
3625 /* Override any gcc2 internal prototype to avoid an error. */
3626 /* We use char because int might match the return type of a gcc2
3627 builtin and then its argument prototype would still apply. */
3628 char sched_yield();
3630 int main() {
3631 sched_yield()
3632 ; return 0; }
3634 if { (eval echo configure:3635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3635 rm -rf conftest*
3636 eval "ac_cv_lib_$ac_lib_var=yes"
3637 else
3638 echo "configure: failed program was:" >&5
3639 cat conftest.$ac_ext >&5
3640 rm -rf conftest*
3641 eval "ac_cv_lib_$ac_lib_var=no"
3643 rm -f conftest*
3644 LIBS="$ac_save_LIBS"
3647 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3648 echo "$ac_t""yes" 1>&6
3650 cat >> confdefs.h <<\EOF
3651 #define HAVE_SCHED_YIELD 1
3654 THREADLIBS="$THREADLIBS -lrt"
3655 THREADSPEC="$THREADSPEC -lrt"
3656 else
3657 echo "$ac_t""no" 1>&6
3659 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
3660 echo "configure:3661: checking for sched_yield in -lposix4" >&5
3661 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
3662 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3663 echo $ac_n "(cached) $ac_c" 1>&6
3664 else
3665 ac_save_LIBS="$LIBS"
3666 LIBS="-lposix4 $LIBS"
3667 cat > conftest.$ac_ext <<EOF
3668 #line 3669 "configure"
3669 #include "confdefs.h"
3670 /* Override any gcc2 internal prototype to avoid an error. */
3671 /* We use char because int might match the return type of a gcc2
3672 builtin and then its argument prototype would still apply. */
3673 char sched_yield();
3675 int main() {
3676 sched_yield()
3677 ; return 0; }
3679 if { (eval echo configure:3680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3680 rm -rf conftest*
3681 eval "ac_cv_lib_$ac_lib_var=yes"
3682 else
3683 echo "configure: failed program was:" >&5
3684 cat conftest.$ac_ext >&5
3685 rm -rf conftest*
3686 eval "ac_cv_lib_$ac_lib_var=no"
3688 rm -f conftest*
3689 LIBS="$ac_save_LIBS"
3692 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3693 echo "$ac_t""yes" 1>&6
3695 cat >> confdefs.h <<\EOF
3696 #define HAVE_SCHED_YIELD 1
3699 THREADLIBS="$THREADLIBS -lposix4"
3700 THREADSPEC="$THREADSPEC -lposix4"
3701 else
3702 echo "$ac_t""no" 1>&6
3708 done
3710 LIBS="$save_LIBS"
3712 # We can save a little space at runtime if the mutex has m_count
3713 # or __m_count. This is a nice hack for Linux.
3714 cat > conftest.$ac_ext <<EOF
3715 #line 3716 "configure"
3716 #include "confdefs.h"
3717 #include <pthread.h>
3718 int main() {
3720 extern pthread_mutex_t *mutex; int q = mutex->m_count;
3722 ; return 0; }
3724 if { (eval echo configure:3725: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3725 rm -rf conftest*
3726 cat >> confdefs.h <<\EOF
3727 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
3730 else
3731 echo "configure: failed program was:" >&5
3732 cat conftest.$ac_ext >&5
3733 rm -rf conftest*
3735 cat > conftest.$ac_ext <<EOF
3736 #line 3737 "configure"
3737 #include "confdefs.h"
3738 #include <pthread.h>
3739 int main() {
3741 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
3743 ; return 0; }
3745 if { (eval echo configure:3746: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3746 rm -rf conftest*
3747 cat >> confdefs.h <<\EOF
3748 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
3751 else
3752 echo "configure: failed program was:" >&5
3753 cat conftest.$ac_ext >&5
3755 rm -f conftest*
3757 rm -f conftest*
3760 # We require a way to get the time.
3761 time_found=no
3762 for ac_func in gettimeofday time ftime
3764 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3765 echo "configure:3766: checking for $ac_func" >&5
3766 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3767 echo $ac_n "(cached) $ac_c" 1>&6
3768 else
3769 cat > conftest.$ac_ext <<EOF
3770 #line 3771 "configure"
3771 #include "confdefs.h"
3772 /* System header to define __stub macros and hopefully few prototypes,
3773 which can conflict with char $ac_func(); below. */
3774 #include <assert.h>
3775 /* Override any gcc2 internal prototype to avoid an error. */
3776 /* We use char because int might match the return type of a gcc2
3777 builtin and then its argument prototype would still apply. */
3778 char $ac_func();
3780 int main() {
3782 /* The GNU C library defines this for functions which it implements
3783 to always fail with ENOSYS. Some functions are actually named
3784 something starting with __ and the normal name is an alias. */
3785 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3786 choke me
3787 #else
3788 $ac_func();
3789 #endif
3791 ; return 0; }
3793 if { (eval echo configure:3794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3794 rm -rf conftest*
3795 eval "ac_cv_func_$ac_func=yes"
3796 else
3797 echo "configure: failed program was:" >&5
3798 cat conftest.$ac_ext >&5
3799 rm -rf conftest*
3800 eval "ac_cv_func_$ac_func=no"
3802 rm -f conftest*
3805 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3806 echo "$ac_t""yes" 1>&6
3807 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3808 cat >> confdefs.h <<EOF
3809 #define $ac_tr_func 1
3811 time_found=yes
3812 else
3813 echo "$ac_t""no" 1>&6
3815 done
3817 if test "$time_found" = no; then
3818 { echo "configure: error: no function found to get the time" 1>&2; exit 1; }
3821 for ac_func in memmove
3823 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3824 echo "configure:3825: checking for $ac_func" >&5
3825 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3826 echo $ac_n "(cached) $ac_c" 1>&6
3827 else
3828 cat > conftest.$ac_ext <<EOF
3829 #line 3830 "configure"
3830 #include "confdefs.h"
3831 /* System header to define __stub macros and hopefully few prototypes,
3832 which can conflict with char $ac_func(); below. */
3833 #include <assert.h>
3834 /* Override any gcc2 internal prototype to avoid an error. */
3835 /* We use char because int might match the return type of a gcc2
3836 builtin and then its argument prototype would still apply. */
3837 char $ac_func();
3839 int main() {
3841 /* The GNU C library defines this for functions which it implements
3842 to always fail with ENOSYS. Some functions are actually named
3843 something starting with __ and the normal name is an alias. */
3844 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3845 choke me
3846 #else
3847 $ac_func();
3848 #endif
3850 ; return 0; }
3852 if { (eval echo configure:3853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3853 rm -rf conftest*
3854 eval "ac_cv_func_$ac_func=yes"
3855 else
3856 echo "configure: failed program was:" >&5
3857 cat conftest.$ac_ext >&5
3858 rm -rf conftest*
3859 eval "ac_cv_func_$ac_func=no"
3861 rm -f conftest*
3864 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3865 echo "$ac_t""yes" 1>&6
3866 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3867 cat >> confdefs.h <<EOF
3868 #define $ac_tr_func 1
3871 else
3872 echo "$ac_t""no" 1>&6
3874 done
3877 # We require memcpy.
3878 memcpy_found=no
3879 for ac_func in memcpy
3881 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3882 echo "configure:3883: checking for $ac_func" >&5
3883 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3884 echo $ac_n "(cached) $ac_c" 1>&6
3885 else
3886 cat > conftest.$ac_ext <<EOF
3887 #line 3888 "configure"
3888 #include "confdefs.h"
3889 /* System header to define __stub macros and hopefully few prototypes,
3890 which can conflict with char $ac_func(); below. */
3891 #include <assert.h>
3892 /* Override any gcc2 internal prototype to avoid an error. */
3893 /* We use char because int might match the return type of a gcc2
3894 builtin and then its argument prototype would still apply. */
3895 char $ac_func();
3897 int main() {
3899 /* The GNU C library defines this for functions which it implements
3900 to always fail with ENOSYS. Some functions are actually named
3901 something starting with __ and the normal name is an alias. */
3902 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3903 choke me
3904 #else
3905 $ac_func();
3906 #endif
3908 ; return 0; }
3910 if { (eval echo configure:3911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3911 rm -rf conftest*
3912 eval "ac_cv_func_$ac_func=yes"
3913 else
3914 echo "configure: failed program was:" >&5
3915 cat conftest.$ac_ext >&5
3916 rm -rf conftest*
3917 eval "ac_cv_func_$ac_func=no"
3919 rm -f conftest*
3922 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3923 echo "$ac_t""yes" 1>&6
3924 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3925 cat >> confdefs.h <<EOF
3926 #define $ac_tr_func 1
3928 memcpy_found=yes
3929 else
3930 echo "$ac_t""no" 1>&6
3932 done
3934 if test "$memcpy_found" = no; then
3935 { echo "configure: error: memcpy is required" 1>&2; exit 1; }
3938 # Some library-finding code we stole from Tcl.
3939 #--------------------------------------------------------------------
3940 # Check for the existence of the -lsocket and -lnsl libraries.
3941 # The order here is important, so that they end up in the right
3942 # order in the command line generated by make. Here are some
3943 # special considerations:
3944 # 1. Use "connect" and "accept" to check for -lsocket, and
3945 # "gethostbyname" to check for -lnsl.
3946 # 2. Use each function name only once: can't redo a check because
3947 # autoconf caches the results of the last check and won't redo it.
3948 # 3. Use -lnsl and -lsocket only if they supply procedures that
3949 # aren't already present in the normal libraries. This is because
3950 # IRIX 5.2 has libraries, but they aren't needed and they're
3951 # bogus: they goof up name resolution if used.
3952 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
3953 # To get around this problem, check for both libraries together
3954 # if -lsocket doesn't work by itself.
3955 #--------------------------------------------------------------------
3957 echo $ac_n "checking for socket libraries""... $ac_c" 1>&6
3958 echo "configure:3959: checking for socket libraries" >&5
3959 if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
3960 echo $ac_n "(cached) $ac_c" 1>&6
3961 else
3962 gcj_cv_lib_sockets=
3963 gcj_checkBoth=0
3964 unset ac_cv_func_connect
3965 echo $ac_n "checking for connect""... $ac_c" 1>&6
3966 echo "configure:3967: checking for connect" >&5
3967 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3968 echo $ac_n "(cached) $ac_c" 1>&6
3969 else
3970 cat > conftest.$ac_ext <<EOF
3971 #line 3972 "configure"
3972 #include "confdefs.h"
3973 /* System header to define __stub macros and hopefully few prototypes,
3974 which can conflict with char connect(); below. */
3975 #include <assert.h>
3976 /* Override any gcc2 internal prototype to avoid an error. */
3977 /* We use char because int might match the return type of a gcc2
3978 builtin and then its argument prototype would still apply. */
3979 char connect();
3981 int main() {
3983 /* The GNU C library defines this for functions which it implements
3984 to always fail with ENOSYS. Some functions are actually named
3985 something starting with __ and the normal name is an alias. */
3986 #if defined (__stub_connect) || defined (__stub___connect)
3987 choke me
3988 #else
3989 connect();
3990 #endif
3992 ; return 0; }
3994 if { (eval echo configure:3995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3995 rm -rf conftest*
3996 eval "ac_cv_func_connect=yes"
3997 else
3998 echo "configure: failed program was:" >&5
3999 cat conftest.$ac_ext >&5
4000 rm -rf conftest*
4001 eval "ac_cv_func_connect=no"
4003 rm -f conftest*
4006 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
4007 echo "$ac_t""yes" 1>&6
4008 gcj_checkSocket=0
4009 else
4010 echo "$ac_t""no" 1>&6
4011 gcj_checkSocket=1
4014 if test "$gcj_checkSocket" = 1; then
4015 unset ac_cv_func_connect
4016 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4017 echo "configure:4018: checking for main in -lsocket" >&5
4018 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
4019 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4020 echo $ac_n "(cached) $ac_c" 1>&6
4021 else
4022 ac_save_LIBS="$LIBS"
4023 LIBS="-lsocket $LIBS"
4024 cat > conftest.$ac_ext <<EOF
4025 #line 4026 "configure"
4026 #include "confdefs.h"
4028 int main() {
4029 main()
4030 ; return 0; }
4032 if { (eval echo configure:4033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4033 rm -rf conftest*
4034 eval "ac_cv_lib_$ac_lib_var=yes"
4035 else
4036 echo "configure: failed program was:" >&5
4037 cat conftest.$ac_ext >&5
4038 rm -rf conftest*
4039 eval "ac_cv_lib_$ac_lib_var=no"
4041 rm -f conftest*
4042 LIBS="$ac_save_LIBS"
4045 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4046 echo "$ac_t""yes" 1>&6
4047 gcj_cv_lib_sockets="-lsocket"
4048 else
4049 echo "$ac_t""no" 1>&6
4050 gcj_checkBoth=1
4054 if test "$gcj_checkBoth" = 1; then
4055 gcj_oldLibs=$LIBS
4056 LIBS="$LIBS -lsocket -lnsl"
4057 unset ac_cv_func_accept
4058 echo $ac_n "checking for accept""... $ac_c" 1>&6
4059 echo "configure:4060: checking for accept" >&5
4060 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
4061 echo $ac_n "(cached) $ac_c" 1>&6
4062 else
4063 cat > conftest.$ac_ext <<EOF
4064 #line 4065 "configure"
4065 #include "confdefs.h"
4066 /* System header to define __stub macros and hopefully few prototypes,
4067 which can conflict with char accept(); below. */
4068 #include <assert.h>
4069 /* Override any gcc2 internal prototype to avoid an error. */
4070 /* We use char because int might match the return type of a gcc2
4071 builtin and then its argument prototype would still apply. */
4072 char accept();
4074 int main() {
4076 /* The GNU C library defines this for functions which it implements
4077 to always fail with ENOSYS. Some functions are actually named
4078 something starting with __ and the normal name is an alias. */
4079 #if defined (__stub_accept) || defined (__stub___accept)
4080 choke me
4081 #else
4082 accept();
4083 #endif
4085 ; return 0; }
4087 if { (eval echo configure:4088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4088 rm -rf conftest*
4089 eval "ac_cv_func_accept=yes"
4090 else
4091 echo "configure: failed program was:" >&5
4092 cat conftest.$ac_ext >&5
4093 rm -rf conftest*
4094 eval "ac_cv_func_accept=no"
4096 rm -f conftest*
4099 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
4100 echo "$ac_t""yes" 1>&6
4101 gcj_checkNsl=0
4102 gcj_cv_lib_sockets="-lsocket -lnsl"
4103 else
4104 echo "$ac_t""no" 1>&6
4107 unset ac_cv_func_accept
4108 LIBS=$gcj_oldLibs
4110 unset ac_cv_func_gethostbyname
4111 gcj_oldLibs=$LIBS
4112 LIBS="$LIBS $gcj_cv_lib_sockets"
4113 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4114 echo "configure:4115: checking for gethostbyname" >&5
4115 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
4116 echo $ac_n "(cached) $ac_c" 1>&6
4117 else
4118 cat > conftest.$ac_ext <<EOF
4119 #line 4120 "configure"
4120 #include "confdefs.h"
4121 /* System header to define __stub macros and hopefully few prototypes,
4122 which can conflict with char gethostbyname(); below. */
4123 #include <assert.h>
4124 /* Override any gcc2 internal prototype to avoid an error. */
4125 /* We use char because int might match the return type of a gcc2
4126 builtin and then its argument prototype would still apply. */
4127 char gethostbyname();
4129 int main() {
4131 /* The GNU C library defines this for functions which it implements
4132 to always fail with ENOSYS. Some functions are actually named
4133 something starting with __ and the normal name is an alias. */
4134 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4135 choke me
4136 #else
4137 gethostbyname();
4138 #endif
4140 ; return 0; }
4142 if { (eval echo configure:4143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4143 rm -rf conftest*
4144 eval "ac_cv_func_gethostbyname=yes"
4145 else
4146 echo "configure: failed program was:" >&5
4147 cat conftest.$ac_ext >&5
4148 rm -rf conftest*
4149 eval "ac_cv_func_gethostbyname=no"
4151 rm -f conftest*
4154 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
4155 echo "$ac_t""yes" 1>&6
4157 else
4158 echo "$ac_t""no" 1>&6
4159 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4160 echo "configure:4161: checking for main in -lnsl" >&5
4161 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
4162 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4163 echo $ac_n "(cached) $ac_c" 1>&6
4164 else
4165 ac_save_LIBS="$LIBS"
4166 LIBS="-lnsl $LIBS"
4167 cat > conftest.$ac_ext <<EOF
4168 #line 4169 "configure"
4169 #include "confdefs.h"
4171 int main() {
4172 main()
4173 ; return 0; }
4175 if { (eval echo configure:4176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4176 rm -rf conftest*
4177 eval "ac_cv_lib_$ac_lib_var=yes"
4178 else
4179 echo "configure: failed program was:" >&5
4180 cat conftest.$ac_ext >&5
4181 rm -rf conftest*
4182 eval "ac_cv_lib_$ac_lib_var=no"
4184 rm -f conftest*
4185 LIBS="$ac_save_LIBS"
4188 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4189 echo "$ac_t""yes" 1>&6
4190 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
4191 else
4192 echo "$ac_t""no" 1>&6
4197 unset ac_cv_func_gethostbyname
4198 LIBS=$gcj_oldLIBS
4202 echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
4203 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
4205 if test "$with_system_zlib" = yes; then
4206 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
4207 echo "configure:4208: checking for deflate in -lz" >&5
4208 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
4209 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4210 echo $ac_n "(cached) $ac_c" 1>&6
4211 else
4212 ac_save_LIBS="$LIBS"
4213 LIBS="-lz $LIBS"
4214 cat > conftest.$ac_ext <<EOF
4215 #line 4216 "configure"
4216 #include "confdefs.h"
4217 /* Override any gcc2 internal prototype to avoid an error. */
4218 /* We use char because int might match the return type of a gcc2
4219 builtin and then its argument prototype would still apply. */
4220 char deflate();
4222 int main() {
4223 deflate()
4224 ; return 0; }
4226 if { (eval echo configure:4227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4227 rm -rf conftest*
4228 eval "ac_cv_lib_$ac_lib_var=yes"
4229 else
4230 echo "configure: failed program was:" >&5
4231 cat conftest.$ac_ext >&5
4232 rm -rf conftest*
4233 eval "ac_cv_lib_$ac_lib_var=no"
4235 rm -f conftest*
4236 LIBS="$ac_save_LIBS"
4239 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4240 echo "$ac_t""yes" 1>&6
4241 ZLIBSPEC=-lz
4242 else
4243 echo "$ac_t""no" 1>&6
4244 ZLIBSPEC=-lzgcj
4247 else
4248 ZLIBSPEC=-lzgcj
4249 ZLIBTESTSPEC="-L`pwd`/../zlib/.libs -rpath `pwd`/../zlib/.libs"
4252 # On Solaris, and maybe other architectures, the Boehm collector
4253 # requires -ldl.
4254 if test "$GC" = boehm; then
4255 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
4256 echo "configure:4257: checking for main in -ldl" >&5
4257 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
4258 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4259 echo $ac_n "(cached) $ac_c" 1>&6
4260 else
4261 ac_save_LIBS="$LIBS"
4262 LIBS="-ldl $LIBS"
4263 cat > conftest.$ac_ext <<EOF
4264 #line 4265 "configure"
4265 #include "confdefs.h"
4267 int main() {
4268 main()
4269 ; return 0; }
4271 if { (eval echo configure:4272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4272 rm -rf conftest*
4273 eval "ac_cv_lib_$ac_lib_var=yes"
4274 else
4275 echo "configure: failed program was:" >&5
4276 cat conftest.$ac_ext >&5
4277 rm -rf conftest*
4278 eval "ac_cv_lib_$ac_lib_var=no"
4280 rm -f conftest*
4281 LIBS="$ac_save_LIBS"
4284 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4285 echo "$ac_t""yes" 1>&6
4286 SYSTEMSPEC="$SYSTEMSPEC -ldl"
4287 else
4288 echo "$ac_t""no" 1>&6
4293 if test -d "$libgcj_basedir/../gcc/java"; then
4294 GCJ=
4295 else
4296 CANADIAN=yes
4297 NULL_TARGET=yes
4298 GCJ=gcj
4302 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4303 echo "configure:4304: checking size of void *" >&5
4304 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
4305 echo $ac_n "(cached) $ac_c" 1>&6
4306 else
4307 if test "$cross_compiling" = yes; then
4308 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4309 else
4310 cat > conftest.$ac_ext <<EOF
4311 #line 4312 "configure"
4312 #include "confdefs.h"
4313 #include <stdio.h>
4314 main()
4316 FILE *f=fopen("conftestval", "w");
4317 if (!f) exit(1);
4318 fprintf(f, "%d\n", sizeof(void *));
4319 exit(0);
4322 if { (eval echo configure:4323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4323 then
4324 ac_cv_sizeof_void_p=`cat conftestval`
4325 else
4326 echo "configure: failed program was:" >&5
4327 cat conftest.$ac_ext >&5
4328 rm -fr conftest*
4329 ac_cv_sizeof_void_p=0
4331 rm -fr conftest*
4335 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
4336 cat >> confdefs.h <<EOF
4337 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4342 ZLIBS=
4343 ZDEPS=
4344 ZINCS=
4345 if test "x$ZLIBSPEC" = "x-lzgcj"; then
4346 # We include the path to the zlib build directory.
4347 # See Makefile.am to understand why.
4348 ZDEPS='$(top_builddir)/../zlib/libzgcj.la'
4349 ZLIBS="$ZDEPS -L\$(here)/../zlib/$libsubdir"
4350 ZINCS='-I$(top_srcdir)/../zlib'
4351 else
4352 ZLIBS="$ZLIBSPEC"
4363 if test "$CANADIAN" = yes; then
4364 CANADIAN_TRUE=
4365 CANADIAN_FALSE='#'
4366 else
4367 CANADIAN_TRUE='#'
4368 CANADIAN_FALSE=
4372 if test "$NULL_TARGET" = yes; then
4373 NULL_TARGET_TRUE=
4374 NULL_TARGET_FALSE='#'
4375 else
4376 NULL_TARGET_TRUE='#'
4377 NULL_TARGET_FALSE=
4381 if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
4382 NATIVE_TRUE=
4383 NATIVE_FALSE='#'
4384 else
4385 NATIVE_TRUE='#'
4386 NATIVE_FALSE=
4390 if test -z "$with_cross_host"; then
4391 USE_LIBDIR_TRUE=
4392 USE_LIBDIR_FALSE='#'
4393 else
4394 USE_LIBDIR_TRUE='#'
4395 USE_LIBDIR_FALSE=
4399 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
4400 NEEDS_DATA_START_TRUE=
4401 NEEDS_DATA_START_FALSE='#'
4402 else
4403 NEEDS_DATA_START_TRUE='#'
4404 NEEDS_DATA_START_FALSE=
4408 # Determine gcj version number.
4409 if test "$GCJ" = ""; then
4410 if test -z "${with_multisubdir}"; then
4411 builddotdot=.
4412 else
4414 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
4417 dir="`cd ${builddotdot}/../../gcc && pwd`"
4418 GCJ="$dir/gcj -B$dir/"
4421 gcjvers="`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`"
4423 cat >> confdefs.h <<EOF
4424 #define GCJVERSION "$gcjvers"
4428 # See if gcj supports -fuse-divide-subroutine. gcc 2.95 does not, and
4429 # we want to continue to support that version.
4430 echo $ac_n "checking whether gcj supports -fuse-divide-subroutine""... $ac_c" 1>&6
4431 echo "configure:4432: checking whether gcj supports -fuse-divide-subroutine" >&5
4432 cat > conftest.java << 'END'
4433 public class conftest { }
4435 use_fuse=yes
4436 $GCJ -classpath $srcdir -fuse-divide-subroutine -fsyntax-only \
4437 conftest.java > /dev/null 2>&1 \
4438 || use_fuse=no
4439 rm -f conftest.java
4440 if test "$use_fuse" = no; then
4441 DIVIDESPEC=
4443 echo "$ac_t""$use_fuse" 1>&6
4447 echo $ac_n "checking for g++ -ffloat-store bug""... $ac_c" 1>&6
4448 echo "configure:4449: checking for g++ -ffloat-store bug" >&5
4449 save_CFLAGS="$CFLAGS"
4450 CFLAGS="-x c++ -O2 -ffloat-store"
4451 cat > conftest.$ac_ext <<EOF
4452 #line 4453 "configure"
4453 #include "confdefs.h"
4454 #include <math.h>
4455 int main() {
4457 ; return 0; }
4459 if { (eval echo configure:4460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4460 rm -rf conftest*
4461 echo "$ac_t""no" 1>&6
4462 else
4463 echo "configure: failed program was:" >&5
4464 cat conftest.$ac_ext >&5
4465 rm -rf conftest*
4466 cat >> confdefs.h <<\EOF
4467 #define __NO_MATH_INLINES 1
4470 echo "$ac_t""yes" 1>&6
4472 rm -f conftest*
4473 CFLAGS="$save_CFLAGS"
4475 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
4477 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4478 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4479 echo "configure:4480: checking for $ac_hdr" >&5
4480 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4481 echo $ac_n "(cached) $ac_c" 1>&6
4482 else
4483 cat > conftest.$ac_ext <<EOF
4484 #line 4485 "configure"
4485 #include "confdefs.h"
4486 #include <$ac_hdr>
4488 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4489 { (eval echo configure:4490: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4490 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4491 if test -z "$ac_err"; then
4492 rm -rf conftest*
4493 eval "ac_cv_header_$ac_safe=yes"
4494 else
4495 echo "$ac_err" >&5
4496 echo "configure: failed program was:" >&5
4497 cat conftest.$ac_ext >&5
4498 rm -rf conftest*
4499 eval "ac_cv_header_$ac_safe=no"
4501 rm -f conftest*
4503 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4504 echo "$ac_t""yes" 1>&6
4505 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4506 cat >> confdefs.h <<EOF
4507 #define $ac_tr_hdr 1
4510 else
4511 echo "$ac_t""no" 1>&6
4513 done
4515 for ac_hdr in dirent.h
4517 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4518 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4519 echo "configure:4520: checking for $ac_hdr" >&5
4520 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4521 echo $ac_n "(cached) $ac_c" 1>&6
4522 else
4523 cat > conftest.$ac_ext <<EOF
4524 #line 4525 "configure"
4525 #include "confdefs.h"
4526 #include <$ac_hdr>
4528 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4529 { (eval echo configure:4530: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4530 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4531 if test -z "$ac_err"; then
4532 rm -rf conftest*
4533 eval "ac_cv_header_$ac_safe=yes"
4534 else
4535 echo "$ac_err" >&5
4536 echo "configure: failed program was:" >&5
4537 cat conftest.$ac_ext >&5
4538 rm -rf conftest*
4539 eval "ac_cv_header_$ac_safe=no"
4541 rm -f conftest*
4543 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4544 echo "$ac_t""yes" 1>&6
4545 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4546 cat >> confdefs.h <<EOF
4547 #define $ac_tr_hdr 1
4550 else
4551 echo "$ac_t""no" 1>&6
4553 done
4556 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4557 echo "configure:4558: checking for ANSI C header files" >&5
4558 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
4559 echo $ac_n "(cached) $ac_c" 1>&6
4560 else
4561 cat > conftest.$ac_ext <<EOF
4562 #line 4563 "configure"
4563 #include "confdefs.h"
4564 #include <stdlib.h>
4565 #include <stdarg.h>
4566 #include <string.h>
4567 #include <float.h>
4569 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4570 { (eval echo configure:4571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4571 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4572 if test -z "$ac_err"; then
4573 rm -rf conftest*
4574 ac_cv_header_stdc=yes
4575 else
4576 echo "$ac_err" >&5
4577 echo "configure: failed program was:" >&5
4578 cat conftest.$ac_ext >&5
4579 rm -rf conftest*
4580 ac_cv_header_stdc=no
4582 rm -f conftest*
4584 if test $ac_cv_header_stdc = yes; then
4585 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4586 cat > conftest.$ac_ext <<EOF
4587 #line 4588 "configure"
4588 #include "confdefs.h"
4589 #include <string.h>
4591 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4592 egrep "memchr" >/dev/null 2>&1; then
4594 else
4595 rm -rf conftest*
4596 ac_cv_header_stdc=no
4598 rm -f conftest*
4602 if test $ac_cv_header_stdc = yes; then
4603 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4604 cat > conftest.$ac_ext <<EOF
4605 #line 4606 "configure"
4606 #include "confdefs.h"
4607 #include <stdlib.h>
4609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4610 egrep "free" >/dev/null 2>&1; then
4612 else
4613 rm -rf conftest*
4614 ac_cv_header_stdc=no
4616 rm -f conftest*
4620 if test $ac_cv_header_stdc = yes; then
4621 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4622 if test "$cross_compiling" = yes; then
4624 else
4625 cat > conftest.$ac_ext <<EOF
4626 #line 4627 "configure"
4627 #include "confdefs.h"
4628 #include <ctype.h>
4629 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4630 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4631 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4632 int main () { int i; for (i = 0; i < 256; i++)
4633 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4634 exit (0); }
4637 if { (eval echo configure:4638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4638 then
4640 else
4641 echo "configure: failed program was:" >&5
4642 cat conftest.$ac_ext >&5
4643 rm -fr conftest*
4644 ac_cv_header_stdc=no
4646 rm -fr conftest*
4652 echo "$ac_t""$ac_cv_header_stdc" 1>&6
4653 if test $ac_cv_header_stdc = yes; then
4654 cat >> confdefs.h <<\EOF
4655 #define STDC_HEADERS 1
4660 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
4661 echo "configure:4662: checking for ssize_t" >&5
4662 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
4663 echo $ac_n "(cached) $ac_c" 1>&6
4664 else
4665 cat > conftest.$ac_ext <<EOF
4666 #line 4667 "configure"
4667 #include "confdefs.h"
4668 #include <sys/types.h>
4669 #if STDC_HEADERS
4670 #include <stdlib.h>
4671 #include <stddef.h>
4672 #endif
4674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4675 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4676 rm -rf conftest*
4677 ac_cv_type_ssize_t=yes
4678 else
4679 rm -rf conftest*
4680 ac_cv_type_ssize_t=no
4682 rm -f conftest*
4685 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
4686 if test $ac_cv_type_ssize_t = no; then
4687 cat >> confdefs.h <<\EOF
4688 #define ssize_t int
4694 echo $ac_n "checking for in_addr_t""... $ac_c" 1>&6
4695 echo "configure:4696: checking for in_addr_t" >&5
4696 cat > conftest.$ac_ext <<EOF
4697 #line 4698 "configure"
4698 #include "confdefs.h"
4699 #include <sys/types.h>
4700 #if STDC_HEADERS
4701 #include <stdlib.h>
4702 #include <stddef.h>
4703 #endif
4704 #if HAVE_NETINET_IN_H
4705 #include <netinet/in.h>
4706 #endif
4707 int main() {
4708 in_addr_t foo;
4709 ; return 0; }
4711 if { (eval echo configure:4712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4712 rm -rf conftest*
4713 cat >> confdefs.h <<\EOF
4714 #define HAVE_IN_ADDR_T 1
4717 echo "$ac_t""yes" 1>&6
4718 else
4719 echo "configure: failed program was:" >&5
4720 cat conftest.$ac_ext >&5
4721 rm -rf conftest*
4722 echo "$ac_t""no" 1>&6
4724 rm -f conftest*
4726 echo $ac_n "checking whether struct ip_mreq is in netinet/in.h""... $ac_c" 1>&6
4727 echo "configure:4728: checking whether struct ip_mreq is in netinet/in.h" >&5
4728 cat > conftest.$ac_ext <<EOF
4729 #line 4730 "configure"
4730 #include "confdefs.h"
4731 #include <netinet/in.h>
4732 int main() {
4733 struct ip_mreq mreq;
4734 ; return 0; }
4736 if { (eval echo configure:4737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4737 rm -rf conftest*
4738 cat >> confdefs.h <<\EOF
4739 #define HAVE_STRUCT_IP_MREQ 1
4742 echo "$ac_t""yes" 1>&6
4743 else
4744 echo "configure: failed program was:" >&5
4745 cat conftest.$ac_ext >&5
4746 rm -rf conftest*
4747 echo "$ac_t""no" 1>&6
4749 rm -f conftest*
4751 echo $ac_n "checking whether struct sockaddr_in6 is in netinet/in.h""... $ac_c" 1>&6
4752 echo "configure:4753: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
4753 cat > conftest.$ac_ext <<EOF
4754 #line 4755 "configure"
4755 #include "confdefs.h"
4756 #include <netinet/in.h>
4757 int main() {
4758 struct sockaddr_in6 addr6;
4759 ; return 0; }
4761 if { (eval echo configure:4762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4762 rm -rf conftest*
4763 cat >> confdefs.h <<\EOF
4764 #define HAVE_INET6 1
4767 echo "$ac_t""yes" 1>&6
4768 else
4769 echo "configure: failed program was:" >&5
4770 cat conftest.$ac_ext >&5
4771 rm -rf conftest*
4772 echo "$ac_t""no" 1>&6
4774 rm -f conftest*
4776 echo $ac_n "checking for socklen_t in sys/socket.h""... $ac_c" 1>&6
4777 echo "configure:4778: checking for socklen_t in sys/socket.h" >&5
4778 cat > conftest.$ac_ext <<EOF
4779 #line 4780 "configure"
4780 #include "confdefs.h"
4781 #include <sys/socket.h>
4782 int main() {
4783 socklen_t x = 5;
4784 ; return 0; }
4786 if { (eval echo configure:4787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4787 rm -rf conftest*
4788 cat >> confdefs.h <<\EOF
4789 #define HAVE_SOCKLEN_T 1
4792 echo "$ac_t""yes" 1>&6
4793 else
4794 echo "configure: failed program was:" >&5
4795 cat conftest.$ac_ext >&5
4796 rm -rf conftest*
4797 echo "$ac_t""no" 1>&6
4799 rm -f conftest*
4801 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
4802 echo "configure:4803: checking for tm_gmtoff in struct tm" >&5
4803 cat > conftest.$ac_ext <<EOF
4804 #line 4805 "configure"
4805 #include "confdefs.h"
4806 #include <time.h>
4807 int main() {
4808 struct tm tim; tim.tm_gmtoff = 0;
4809 ; return 0; }
4811 if { (eval echo configure:4812: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4812 rm -rf conftest*
4813 cat >> confdefs.h <<\EOF
4814 #define STRUCT_TM_HAS_GMTOFF 1
4817 echo "$ac_t""yes" 1>&6
4818 else
4819 echo "configure: failed program was:" >&5
4820 cat conftest.$ac_ext >&5
4821 rm -rf conftest*
4822 echo "$ac_t""no" 1>&6
4823 echo $ac_n "checking for global timezone variable""... $ac_c" 1>&6
4824 echo "configure:4825: checking for global timezone variable" >&5
4825 cat > conftest.$ac_ext <<EOF
4826 #line 4827 "configure"
4827 #include "confdefs.h"
4828 #include <time.h>
4829 int main() {
4830 long z2 = timezone;
4831 ; return 0; }
4833 if { (eval echo configure:4834: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4834 rm -rf conftest*
4835 cat >> confdefs.h <<\EOF
4836 #define HAVE_TIMEZONE 1
4839 echo "$ac_t""yes" 1>&6
4840 else
4841 echo "configure: failed program was:" >&5
4842 cat conftest.$ac_ext >&5
4843 rm -rf conftest*
4844 echo "$ac_t""no" 1>&6
4846 rm -f conftest*
4848 rm -f conftest*
4850 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4851 # for constant arguments. Useless!
4852 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4853 echo "configure:4854: checking for working alloca.h" >&5
4854 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4855 echo $ac_n "(cached) $ac_c" 1>&6
4856 else
4857 cat > conftest.$ac_ext <<EOF
4858 #line 4859 "configure"
4859 #include "confdefs.h"
4860 #include <alloca.h>
4861 int main() {
4862 char *p = alloca(2 * sizeof(int));
4863 ; return 0; }
4865 if { (eval echo configure:4866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4866 rm -rf conftest*
4867 ac_cv_header_alloca_h=yes
4868 else
4869 echo "configure: failed program was:" >&5
4870 cat conftest.$ac_ext >&5
4871 rm -rf conftest*
4872 ac_cv_header_alloca_h=no
4874 rm -f conftest*
4877 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4878 if test $ac_cv_header_alloca_h = yes; then
4879 cat >> confdefs.h <<\EOF
4880 #define HAVE_ALLOCA_H 1
4885 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4886 echo "configure:4887: checking for alloca" >&5
4887 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4888 echo $ac_n "(cached) $ac_c" 1>&6
4889 else
4890 cat > conftest.$ac_ext <<EOF
4891 #line 4892 "configure"
4892 #include "confdefs.h"
4894 #ifdef __GNUC__
4895 # define alloca __builtin_alloca
4896 #else
4897 # ifdef _MSC_VER
4898 # include <malloc.h>
4899 # define alloca _alloca
4900 # else
4901 # if HAVE_ALLOCA_H
4902 # include <alloca.h>
4903 # else
4904 # ifdef _AIX
4905 #pragma alloca
4906 # else
4907 # ifndef alloca /* predefined by HP cc +Olibcalls */
4908 char *alloca ();
4909 # endif
4910 # endif
4911 # endif
4912 # endif
4913 #endif
4915 int main() {
4916 char *p = (char *) alloca(1);
4917 ; return 0; }
4919 if { (eval echo configure:4920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4920 rm -rf conftest*
4921 ac_cv_func_alloca_works=yes
4922 else
4923 echo "configure: failed program was:" >&5
4924 cat conftest.$ac_ext >&5
4925 rm -rf conftest*
4926 ac_cv_func_alloca_works=no
4928 rm -f conftest*
4931 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4932 if test $ac_cv_func_alloca_works = yes; then
4933 cat >> confdefs.h <<\EOF
4934 #define HAVE_ALLOCA 1
4939 if test $ac_cv_func_alloca_works = no; then
4940 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4941 # that cause trouble. Some versions do not even contain alloca or
4942 # contain a buggy version. If you still want to use their alloca,
4943 # use ar to extract alloca.o from them instead of compiling alloca.c.
4944 ALLOCA=alloca.${ac_objext}
4945 cat >> confdefs.h <<\EOF
4946 #define C_ALLOCA 1
4950 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4951 echo "configure:4952: checking whether alloca needs Cray hooks" >&5
4952 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4953 echo $ac_n "(cached) $ac_c" 1>&6
4954 else
4955 cat > conftest.$ac_ext <<EOF
4956 #line 4957 "configure"
4957 #include "confdefs.h"
4958 #if defined(CRAY) && ! defined(CRAY2)
4959 webecray
4960 #else
4961 wenotbecray
4962 #endif
4965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4966 egrep "webecray" >/dev/null 2>&1; then
4967 rm -rf conftest*
4968 ac_cv_os_cray=yes
4969 else
4970 rm -rf conftest*
4971 ac_cv_os_cray=no
4973 rm -f conftest*
4977 echo "$ac_t""$ac_cv_os_cray" 1>&6
4978 if test $ac_cv_os_cray = yes; then
4979 for ac_func in _getb67 GETB67 getb67; do
4980 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4981 echo "configure:4982: checking for $ac_func" >&5
4982 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4983 echo $ac_n "(cached) $ac_c" 1>&6
4984 else
4985 cat > conftest.$ac_ext <<EOF
4986 #line 4987 "configure"
4987 #include "confdefs.h"
4988 /* System header to define __stub macros and hopefully few prototypes,
4989 which can conflict with char $ac_func(); below. */
4990 #include <assert.h>
4991 /* Override any gcc2 internal prototype to avoid an error. */
4992 /* We use char because int might match the return type of a gcc2
4993 builtin and then its argument prototype would still apply. */
4994 char $ac_func();
4996 int main() {
4998 /* The GNU C library defines this for functions which it implements
4999 to always fail with ENOSYS. Some functions are actually named
5000 something starting with __ and the normal name is an alias. */
5001 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5002 choke me
5003 #else
5004 $ac_func();
5005 #endif
5007 ; return 0; }
5009 if { (eval echo configure:5010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5010 rm -rf conftest*
5011 eval "ac_cv_func_$ac_func=yes"
5012 else
5013 echo "configure: failed program was:" >&5
5014 cat conftest.$ac_ext >&5
5015 rm -rf conftest*
5016 eval "ac_cv_func_$ac_func=no"
5018 rm -f conftest*
5021 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5022 echo "$ac_t""yes" 1>&6
5023 cat >> confdefs.h <<EOF
5024 #define CRAY_STACKSEG_END $ac_func
5027 break
5028 else
5029 echo "$ac_t""no" 1>&6
5032 done
5035 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5036 echo "configure:5037: checking stack direction for C alloca" >&5
5037 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5038 echo $ac_n "(cached) $ac_c" 1>&6
5039 else
5040 if test "$cross_compiling" = yes; then
5041 ac_cv_c_stack_direction=0
5042 else
5043 cat > conftest.$ac_ext <<EOF
5044 #line 5045 "configure"
5045 #include "confdefs.h"
5046 find_stack_direction ()
5048 static char *addr = 0;
5049 auto char dummy;
5050 if (addr == 0)
5052 addr = &dummy;
5053 return find_stack_direction ();
5055 else
5056 return (&dummy > addr) ? 1 : -1;
5058 main ()
5060 exit (find_stack_direction() < 0);
5063 if { (eval echo configure:5064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5064 then
5065 ac_cv_c_stack_direction=1
5066 else
5067 echo "configure: failed program was:" >&5
5068 cat conftest.$ac_ext >&5
5069 rm -fr conftest*
5070 ac_cv_c_stack_direction=-1
5072 rm -fr conftest*
5077 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5078 cat >> confdefs.h <<EOF
5079 #define STACK_DIRECTION $ac_cv_c_stack_direction
5085 for ac_prog in perl
5087 # Extract the first word of "$ac_prog", so it can be a program name with args.
5088 set dummy $ac_prog; ac_word=$2
5089 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5090 echo "configure:5091: checking for $ac_word" >&5
5091 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
5092 echo $ac_n "(cached) $ac_c" 1>&6
5093 else
5094 if test -n "$PERL"; then
5095 ac_cv_prog_PERL="$PERL" # Let the user override the test.
5096 else
5097 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5098 ac_dummy="$PATH"
5099 for ac_dir in $ac_dummy; do
5100 test -z "$ac_dir" && ac_dir=.
5101 if test -f $ac_dir/$ac_word; then
5102 ac_cv_prog_PERL="$ac_prog"
5103 break
5105 done
5106 IFS="$ac_save_ifs"
5109 PERL="$ac_cv_prog_PERL"
5110 if test -n "$PERL"; then
5111 echo "$ac_t""$PERL" 1>&6
5112 else
5113 echo "$ac_t""no" 1>&6
5116 test -n "$PERL" && break
5117 done
5118 test -n "$PERL" || PERL="false"
5121 if test "$enable_sjlj_exceptions" = yes; then
5122 SIGNAL_HANDLER=include/default-signal.h
5123 else
5124 case "${host}" in
5125 i?86-*-linux*)
5126 SIGNAL_HANDLER=include/i386-signal.h
5128 sparc-sun-solaris*)
5129 SIGNAL_HANDLER=include/sparc-signal.h
5132 SIGNAL_HANDLER=include/default-signal.h
5134 esac
5139 if test "${multilib}" = "yes"; then
5140 multilib_arg="--enable-multilib"
5141 else
5142 multilib_arg=
5145 here=`pwd`
5148 trap '' 1 2 15
5149 cat > confcache <<\EOF
5150 # This file is a shell script that caches the results of configure
5151 # tests run on this system so they can be shared between configure
5152 # scripts and configure runs. It is not useful on other systems.
5153 # If it contains results you don't want to keep, you may remove or edit it.
5155 # By default, configure uses ./config.cache as the cache file,
5156 # creating it if it does not exist already. You can give configure
5157 # the --cache-file=FILE option to use a different cache file; that is
5158 # what configure does when it calls configure scripts in
5159 # subdirectories, so they share the cache.
5160 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5161 # config.status only pays attention to the cache file if you give it the
5162 # --recheck option to rerun configure.
5165 # The following way of writing the cache mishandles newlines in values,
5166 # but we know of no workaround that is simple, portable, and efficient.
5167 # So, don't put newlines in cache variables' values.
5168 # Ultrix sh set writes to stderr and can't be redirected directly,
5169 # and sets the high bit in the cache file unless we assign to the vars.
5170 (set) 2>&1 |
5171 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5172 *ac_space=\ *)
5173 # `set' does not quote correctly, so add quotes (double-quote substitution
5174 # turns \\\\ into \\, and sed turns \\ into \).
5175 sed -n \
5176 -e "s/'/'\\\\''/g" \
5177 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5180 # `set' quotes correctly as required by POSIX, so do not add quotes.
5181 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5183 esac >> confcache
5184 if cmp -s $cache_file confcache; then
5186 else
5187 if test -w $cache_file; then
5188 echo "updating cache $cache_file"
5189 cat confcache > $cache_file
5190 else
5191 echo "not updating unwritable cache $cache_file"
5194 rm -f confcache
5196 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5198 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5199 # Let make expand exec_prefix.
5200 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5202 # Any assignment to VPATH causes Sun make to only execute
5203 # the first set of double-colon rules, so remove it if not needed.
5204 # If there is a colon in the path, we need to keep it.
5205 if test "x$srcdir" = x.; then
5206 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5209 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5211 DEFS=-DHAVE_CONFIG_H
5213 # Without the "./", some shells look in PATH for config.status.
5214 : ${CONFIG_STATUS=./config.status}
5216 echo creating $CONFIG_STATUS
5217 rm -f $CONFIG_STATUS
5218 cat > $CONFIG_STATUS <<EOF
5219 #! /bin/sh
5220 # Generated automatically by configure.
5221 # Run this file to recreate the current configuration.
5222 # This directory was configured as follows,
5223 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5225 # $0 $ac_configure_args
5227 # Compiler output produced by configure, useful for debugging
5228 # configure, is in ./config.log if it exists.
5230 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5231 for ac_option
5233 case "\$ac_option" in
5234 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5235 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5236 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5237 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5238 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5239 exit 0 ;;
5240 -help | --help | --hel | --he | --h)
5241 echo "\$ac_cs_usage"; exit 0 ;;
5242 *) echo "\$ac_cs_usage"; exit 1 ;;
5243 esac
5244 done
5246 ac_given_srcdir=$srcdir
5247 ac_given_INSTALL="$INSTALL"
5249 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
5251 cat >> $CONFIG_STATUS <<EOF
5253 # Protect against being on the right side of a sed subst in config.status.
5254 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5255 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5256 $ac_vpsub
5257 $extrasub
5258 s%@SHELL@%$SHELL%g
5259 s%@CFLAGS@%$CFLAGS%g
5260 s%@CPPFLAGS@%$CPPFLAGS%g
5261 s%@CXXFLAGS@%$CXXFLAGS%g
5262 s%@FFLAGS@%$FFLAGS%g
5263 s%@DEFS@%$DEFS%g
5264 s%@LDFLAGS@%$LDFLAGS%g
5265 s%@LIBS@%$LIBS%g
5266 s%@exec_prefix@%$exec_prefix%g
5267 s%@prefix@%$prefix%g
5268 s%@program_transform_name@%$program_transform_name%g
5269 s%@bindir@%$bindir%g
5270 s%@sbindir@%$sbindir%g
5271 s%@libexecdir@%$libexecdir%g
5272 s%@datadir@%$datadir%g
5273 s%@sysconfdir@%$sysconfdir%g
5274 s%@sharedstatedir@%$sharedstatedir%g
5275 s%@localstatedir@%$localstatedir%g
5276 s%@libdir@%$libdir%g
5277 s%@includedir@%$includedir%g
5278 s%@oldincludedir@%$oldincludedir%g
5279 s%@infodir@%$infodir%g
5280 s%@mandir@%$mandir%g
5281 s%@host@%$host%g
5282 s%@host_alias@%$host_alias%g
5283 s%@host_cpu@%$host_cpu%g
5284 s%@host_vendor@%$host_vendor%g
5285 s%@host_os@%$host_os%g
5286 s%@target@%$target%g
5287 s%@target_alias@%$target_alias%g
5288 s%@target_cpu@%$target_cpu%g
5289 s%@target_vendor@%$target_vendor%g
5290 s%@target_os@%$target_os%g
5291 s%@build@%$build%g
5292 s%@build_alias@%$build_alias%g
5293 s%@build_cpu@%$build_cpu%g
5294 s%@build_vendor@%$build_vendor%g
5295 s%@build_os@%$build_os%g
5296 s%@libgcj_basedir@%$libgcj_basedir%g
5297 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5298 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5299 s%@INSTALL_DATA@%$INSTALL_DATA%g
5300 s%@PACKAGE@%$PACKAGE%g
5301 s%@VERSION@%$VERSION%g
5302 s%@ACLOCAL@%$ACLOCAL%g
5303 s%@AUTOCONF@%$AUTOCONF%g
5304 s%@AUTOMAKE@%$AUTOMAKE%g
5305 s%@AUTOHEADER@%$AUTOHEADER%g
5306 s%@MAKEINFO@%$MAKEINFO%g
5307 s%@SET_MAKE@%$SET_MAKE%g
5308 s%@CC@%$CC%g
5309 s%@CXX@%$CXX%g
5310 s%@AS@%$AS%g
5311 s%@AR@%$AR%g
5312 s%@RANLIB@%$RANLIB%g
5313 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5314 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5315 s%@MAINT@%$MAINT%g
5316 s%@EXEEXT@%$EXEEXT%g
5317 s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
5318 s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
5319 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
5320 s%@INCLTDL@%$INCLTDL%g
5321 s%@LIBLTDL@%$LIBLTDL%g
5322 s%@DIRLTDL@%$DIRLTDL%g
5323 s%@LN_S@%$LN_S%g
5324 s%@LIBTOOL@%$LIBTOOL%g
5325 s%@subdirs@%$subdirs%g
5326 s%@COMPPATH@%$COMPPATH%g
5327 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
5328 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
5329 s%@AWT_TRUE@%$AWT_TRUE%g
5330 s%@AWT_FALSE@%$AWT_FALSE%g
5331 s%@LIBDATASTARTSPEC@%$LIBDATASTARTSPEC%g
5332 s%@CPP@%$CPP%g
5333 s%@SYSTEMSPEC@%$SYSTEMSPEC%g
5334 s%@LIBGCJTESTSPEC@%$LIBGCJTESTSPEC%g
5335 s%@ZLIBSPEC@%$ZLIBSPEC%g
5336 s%@ZLIBTESTSPEC@%$ZLIBTESTSPEC%g
5337 s%@GCLIBS@%$GCLIBS%g
5338 s%@GCINCS@%$GCINCS%g
5339 s%@GCDEPS@%$GCDEPS%g
5340 s%@GCOBJS@%$GCOBJS%g
5341 s%@GCSPEC@%$GCSPEC%g
5342 s%@GCTESTSPEC@%$GCTESTSPEC%g
5343 s%@THREADLIBS@%$THREADLIBS%g
5344 s%@THREADINCS@%$THREADINCS%g
5345 s%@THREADDEPS@%$THREADDEPS%g
5346 s%@THREADOBJS@%$THREADOBJS%g
5347 s%@THREADSPEC@%$THREADSPEC%g
5348 s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
5349 s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
5350 s%@ZLIBS@%$ZLIBS%g
5351 s%@ZDEPS@%$ZDEPS%g
5352 s%@ZINCS@%$ZINCS%g
5353 s%@DIVIDESPEC@%$DIVIDESPEC%g
5354 s%@EXCEPTIONSPEC@%$EXCEPTIONSPEC%g
5355 s%@FORCELIBGCCSPEC@%$FORCELIBGCCSPEC%g
5356 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
5357 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
5358 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
5359 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
5360 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
5361 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
5362 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
5363 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
5364 s%@NEEDS_DATA_START_TRUE@%$NEEDS_DATA_START_TRUE%g
5365 s%@NEEDS_DATA_START_FALSE@%$NEEDS_DATA_START_FALSE%g
5366 s%@EH_COMMON_INCLUDE@%$EH_COMMON_INCLUDE%g
5367 s%@AM_RUNTESTFLAGS@%$AM_RUNTESTFLAGS%g
5368 s%@ALLOCA@%$ALLOCA%g
5369 s%@PERL@%$PERL%g
5370 s%@here@%$here%g
5372 CEOF
5375 cat >> $CONFIG_STATUS <<\EOF
5377 # Split the substitutions into bite-sized pieces for seds with
5378 # small command number limits, like on Digital OSF/1 and HP-UX.
5379 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5380 ac_file=1 # Number of current file.
5381 ac_beg=1 # First line for current file.
5382 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5383 ac_more_lines=:
5384 ac_sed_cmds=""
5385 while $ac_more_lines; do
5386 if test $ac_beg -gt 1; then
5387 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5388 else
5389 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5391 if test ! -s conftest.s$ac_file; then
5392 ac_more_lines=false
5393 rm -f conftest.s$ac_file
5394 else
5395 if test -z "$ac_sed_cmds"; then
5396 ac_sed_cmds="sed -f conftest.s$ac_file"
5397 else
5398 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5400 ac_file=`expr $ac_file + 1`
5401 ac_beg=$ac_end
5402 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5404 done
5405 if test -z "$ac_sed_cmds"; then
5406 ac_sed_cmds=cat
5410 cat >> $CONFIG_STATUS <<EOF
5412 CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile"}
5414 cat >> $CONFIG_STATUS <<\EOF
5415 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5416 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5417 case "$ac_file" in
5418 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5419 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5420 *) ac_file_in="${ac_file}.in" ;;
5421 esac
5423 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5425 # Remove last slash and all that follows it. Not all systems have dirname.
5426 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5427 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5428 # The file is in a subdirectory.
5429 test ! -d "$ac_dir" && mkdir "$ac_dir"
5430 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5431 # A "../" for each directory in $ac_dir_suffix.
5432 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5433 else
5434 ac_dir_suffix= ac_dots=
5437 case "$ac_given_srcdir" in
5438 .) srcdir=.
5439 if test -z "$ac_dots"; then top_srcdir=.
5440 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5441 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5442 *) # Relative path.
5443 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5444 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5445 esac
5447 case "$ac_given_INSTALL" in
5448 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5449 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5450 esac
5452 echo creating "$ac_file"
5453 rm -f "$ac_file"
5454 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5455 case "$ac_file" in
5456 *Makefile*) ac_comsub="1i\\
5457 # $configure_input" ;;
5458 *) ac_comsub= ;;
5459 esac
5461 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5462 sed -e "$ac_comsub
5463 s%@configure_input@%$configure_input%g
5464 s%@srcdir@%$srcdir%g
5465 s%@top_srcdir@%$top_srcdir%g
5466 s%@INSTALL@%$INSTALL%g
5467 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5468 fi; done
5469 rm -f conftest.s*
5471 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5472 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5474 # ac_d sets the value in "#define NAME VALUE" lines.
5475 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5476 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5477 ac_dC='\3'
5478 ac_dD='%g'
5479 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5480 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5481 ac_uB='\([ ]\)%\1#\2define\3'
5482 ac_uC=' '
5483 ac_uD='\4%g'
5484 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5485 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5486 ac_eB='$%\1#\2define\3'
5487 ac_eC=' '
5488 ac_eD='%g'
5490 if test "${CONFIG_HEADERS+set}" != set; then
5492 cat >> $CONFIG_STATUS <<EOF
5493 CONFIG_HEADERS="include/config.h"
5495 cat >> $CONFIG_STATUS <<\EOF
5497 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5498 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5499 case "$ac_file" in
5500 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5501 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5502 *) ac_file_in="${ac_file}.in" ;;
5503 esac
5505 echo creating $ac_file
5507 rm -f conftest.frag conftest.in conftest.out
5508 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5509 cat $ac_file_inputs > conftest.in
5513 # Transform confdefs.h into a sed script conftest.vals that substitutes
5514 # the proper values into config.h.in to produce config.h. And first:
5515 # Protect against being on the right side of a sed subst in config.status.
5516 # Protect against being in an unquoted here document in config.status.
5517 rm -f conftest.vals
5518 cat > conftest.hdr <<\EOF
5519 s/[\\&%]/\\&/g
5520 s%[\\$`]%\\&%g
5521 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5522 s%ac_d%ac_u%gp
5523 s%ac_u%ac_e%gp
5525 sed -n -f conftest.hdr confdefs.h > conftest.vals
5526 rm -f conftest.hdr
5528 # This sed command replaces #undef with comments. This is necessary, for
5529 # example, in the case of _POSIX_SOURCE, which is predefined and required
5530 # on some systems where configure will not decide to define it.
5531 cat >> conftest.vals <<\EOF
5532 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5535 # Break up conftest.vals because some shells have a limit on
5536 # the size of here documents, and old seds have small limits too.
5538 rm -f conftest.tail
5539 while :
5541 ac_lines=`grep -c . conftest.vals`
5542 # grep -c gives empty output for an empty file on some AIX systems.
5543 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5544 # Write a limited-size here document to conftest.frag.
5545 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5546 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5547 echo 'CEOF
5548 sed -f conftest.frag conftest.in > conftest.out
5549 rm -f conftest.in
5550 mv conftest.out conftest.in
5551 ' >> $CONFIG_STATUS
5552 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5553 rm -f conftest.vals
5554 mv conftest.tail conftest.vals
5555 done
5556 rm -f conftest.vals
5558 cat >> $CONFIG_STATUS <<\EOF
5559 rm -f conftest.frag conftest.h
5560 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5561 cat conftest.in >> conftest.h
5562 rm -f conftest.in
5563 if cmp -s $ac_file conftest.h 2>/dev/null; then
5564 echo "$ac_file is unchanged"
5565 rm -f conftest.h
5566 else
5567 # Remove last slash and all that follows it. Not all systems have dirname.
5568 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5569 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5570 # The file is in a subdirectory.
5571 test ! -d "$ac_dir" && mkdir "$ac_dir"
5573 rm -f $ac_file
5574 mv conftest.h $ac_file
5576 fi; done
5580 cat >> $CONFIG_STATUS <<EOF
5581 ac_sources="java/io/$FILE_DESCRIPTOR java/lang/${PROCESS}Process.java java/lang/nat${PROCESS}Process.cc include/$GCHDR include/$THREADH $SIGNAL_HANDLER"
5582 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"
5585 cat >> $CONFIG_STATUS <<\EOF
5586 srcdir=$ac_given_srcdir
5587 while test -n "$ac_sources"; do
5588 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5589 set $ac_sources; ac_source=$1; shift; ac_sources=$*
5591 echo "linking $srcdir/$ac_source to $ac_dest"
5593 if test ! -r $srcdir/$ac_source; then
5594 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
5596 rm -f $ac_dest
5598 # Make relative symlinks.
5599 # Remove last slash and all that follows it. Not all systems have dirname.
5600 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
5601 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
5602 # The dest file is in a subdirectory.
5603 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
5604 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
5605 # A "../" for each directory in $ac_dest_dir_suffix.
5606 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
5607 else
5608 ac_dest_dir_suffix= ac_dots=
5611 case "$srcdir" in
5612 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
5613 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
5614 esac
5616 # Make a symlink if possible; otherwise try a hard link.
5617 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
5618 ln $srcdir/$ac_source $ac_dest; then :
5619 else
5620 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
5622 done
5624 cat >> $CONFIG_STATUS <<EOF
5626 srcdir=${srcdir}
5627 host=${host}
5628 target=${target}
5629 with_multisubdir=${with_multisubdir}
5630 ac_configure_args="${multilib_arg} ${ac_configure_args}"
5631 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
5632 libgcj_basedir=${libgcj_basedir}
5633 CC="${CC}"
5634 CXX="${CXX}"
5637 cat >> $CONFIG_STATUS <<\EOF
5638 test -z "$CONFIG_HEADERS" || echo timestamp > include/stamp-h
5639 if test -n "$CONFIG_FILES"; then
5640 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
5642 exit 0
5644 chmod +x $CONFIG_STATUS
5645 rm -fr confdefs* $ac_clean_files
5646 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5648 if test "$no_recursion" != yes; then
5650 # Remove --cache-file and --srcdir arguments so they do not pile up.
5651 ac_sub_configure_args=
5652 ac_prev=
5653 for ac_arg in $ac_configure_args; do
5654 if test -n "$ac_prev"; then
5655 ac_prev=
5656 continue
5658 case "$ac_arg" in
5659 -cache-file | --cache-file | --cache-fil | --cache-fi \
5660 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
5661 ac_prev=cache_file ;;
5662 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
5663 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
5665 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
5666 ac_prev=srcdir ;;
5667 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5669 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
5670 esac
5671 done
5673 for ac_config_dir in $DIRLTDL; do
5675 # Do not complain, so a configure script can configure whichever
5676 # parts of a large source tree are present.
5677 if test ! -d $srcdir/$ac_config_dir; then
5678 continue
5681 echo configuring in $ac_config_dir
5683 case "$srcdir" in
5684 .) ;;
5686 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
5687 else
5688 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
5691 esac
5693 ac_popdir=`pwd`
5694 cd $ac_config_dir
5696 # A "../" for each directory in /$ac_config_dir.
5697 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
5699 case "$srcdir" in
5700 .) # No --srcdir option. We are building in place.
5701 ac_sub_srcdir=$srcdir ;;
5702 /*) # Absolute path.
5703 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
5704 *) # Relative path.
5705 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
5706 esac
5708 # Check for guested configure; otherwise get Cygnus style configure.
5709 if test -f $ac_sub_srcdir/configure; then
5710 ac_sub_configure=$ac_sub_srcdir/configure
5711 elif test -f $ac_sub_srcdir/configure.in; then
5712 ac_sub_configure=$ac_configure
5713 else
5714 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
5715 ac_sub_configure=
5718 # The recursion is here.
5719 if test -n "$ac_sub_configure"; then
5721 # Make the cache file name correct relative to the subdirectory.
5722 case "$cache_file" in
5723 /*) ac_sub_cache_file=$cache_file ;;
5724 *) # Relative path.
5725 ac_sub_cache_file="$ac_dots$cache_file" ;;
5726 esac
5727 case "$ac_given_INSTALL" in
5728 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5729 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5730 esac
5732 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
5733 # The eval makes quoting arguments work.
5734 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
5735 then :
5736 else
5737 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
5741 cd $ac_popdir
5742 done