allow all arm targets to use -mstructure-size-boundary=XX
[official-gcc.git] / libjava / configure
blobfa3703f29309f5b655fce0c08db8cfc57b1ea5bd
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 force libtool not to do file locking"
34 ac_help="$ac_help
35 --enable-fast-character prefer speed over size for Character"
36 ac_help="$ac_help
37 --disable-getenv-properties
38 don't set system properties from GCJ_PROPERTIES"
39 ac_help="$ac_help
40 --enable-libgcj-debug enable runtime debugging code"
41 ac_help="$ac_help
42 --enable-interpreter enable interpreter"
43 ac_help="$ac_help
44 --disable-java-net disable java.net"
45 ac_help="$ac_help
46 --with-ecos enable runtime eCos target support"
47 ac_help="$ac_help
48 --with-system-zlib use installed libz"
49 ac_help="$ac_help
50 --enable-java-gc=TYPE choose garbage collector [boehm]"
51 ac_help="$ac_help
52 --enable-threads=TYPE choose threading package"
54 # Initialize some variables set by options.
55 # The variables have the same names as the options, with
56 # dashes changed to underlines.
57 build=NONE
58 cache_file=./config.cache
59 exec_prefix=NONE
60 host=NONE
61 no_create=
62 nonopt=NONE
63 no_recursion=
64 prefix=NONE
65 program_prefix=NONE
66 program_suffix=NONE
67 program_transform_name=s,x,x,
68 silent=
69 site=
70 sitefile=
71 srcdir=
72 target=NONE
73 verbose=
74 x_includes=NONE
75 x_libraries=NONE
76 bindir='${exec_prefix}/bin'
77 sbindir='${exec_prefix}/sbin'
78 libexecdir='${exec_prefix}/libexec'
79 datadir='${prefix}/share'
80 sysconfdir='${prefix}/etc'
81 sharedstatedir='${prefix}/com'
82 localstatedir='${prefix}/var'
83 libdir='${exec_prefix}/lib'
84 includedir='${prefix}/include'
85 oldincludedir='/usr/include'
86 infodir='${prefix}/info'
87 mandir='${prefix}/man'
89 # Initialize some other variables.
90 subdirs=
91 MFLAGS= MAKEFLAGS=
92 SHELL=${CONFIG_SHELL-/bin/sh}
93 # Maximum number of lines to put in a shell here document.
94 ac_max_here_lines=12
96 ac_prev=
97 for ac_option
100 # If the previous option needs an argument, assign it.
101 if test -n "$ac_prev"; then
102 eval "$ac_prev=\$ac_option"
103 ac_prev=
104 continue
107 case "$ac_option" in
108 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
109 *) ac_optarg= ;;
110 esac
112 # Accept the important Cygnus configure options, so we can diagnose typos.
114 case "$ac_option" in
116 -bindir | --bindir | --bindi | --bind | --bin | --bi)
117 ac_prev=bindir ;;
118 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
119 bindir="$ac_optarg" ;;
121 -build | --build | --buil | --bui | --bu)
122 ac_prev=build ;;
123 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
124 build="$ac_optarg" ;;
126 -cache-file | --cache-file | --cache-fil | --cache-fi \
127 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
128 ac_prev=cache_file ;;
129 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
130 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
131 cache_file="$ac_optarg" ;;
133 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
134 ac_prev=datadir ;;
135 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
136 | --da=*)
137 datadir="$ac_optarg" ;;
139 -disable-* | --disable-*)
140 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
141 # Reject names that are not valid shell variable names.
142 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
143 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
145 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
146 eval "enable_${ac_feature}=no" ;;
148 -enable-* | --enable-*)
149 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
150 # Reject names that are not valid shell variable names.
151 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
152 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
154 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
155 case "$ac_option" in
156 *=*) ;;
157 *) ac_optarg=yes ;;
158 esac
159 eval "enable_${ac_feature}='$ac_optarg'" ;;
161 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
162 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
163 | --exec | --exe | --ex)
164 ac_prev=exec_prefix ;;
165 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
166 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
167 | --exec=* | --exe=* | --ex=*)
168 exec_prefix="$ac_optarg" ;;
170 -gas | --gas | --ga | --g)
171 # Obsolete; use --with-gas.
172 with_gas=yes ;;
174 -help | --help | --hel | --he)
175 # Omit some internal or obsolete options to make the list less imposing.
176 # This message is too long to be a string in the A/UX 3.1 sh.
177 cat << EOF
178 Usage: configure [options] [host]
179 Options: [defaults in brackets after descriptions]
180 Configuration:
181 --cache-file=FILE cache test results in FILE
182 --help print this message
183 --no-create do not create output files
184 --quiet, --silent do not print \`checking...' messages
185 --site-file=FILE use FILE as the site file
186 --version print the version of autoconf that created configure
187 Directory and file names:
188 --prefix=PREFIX install architecture-independent files in PREFIX
189 [$ac_default_prefix]
190 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
191 [same as prefix]
192 --bindir=DIR user executables in DIR [EPREFIX/bin]
193 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
194 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
195 --datadir=DIR read-only architecture-independent data in DIR
196 [PREFIX/share]
197 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
198 --sharedstatedir=DIR modifiable architecture-independent data in DIR
199 [PREFIX/com]
200 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
201 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
202 --includedir=DIR C header files in DIR [PREFIX/include]
203 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
204 --infodir=DIR info documentation in DIR [PREFIX/info]
205 --mandir=DIR man documentation in DIR [PREFIX/man]
206 --srcdir=DIR find the sources in DIR [configure dir or ..]
207 --program-prefix=PREFIX prepend PREFIX to installed program names
208 --program-suffix=SUFFIX append SUFFIX to installed program names
209 --program-transform-name=PROGRAM
210 run sed PROGRAM on installed program names
212 cat << EOF
213 Host type:
214 --build=BUILD configure for building on BUILD [BUILD=HOST]
215 --host=HOST configure for HOST [guessed]
216 --target=TARGET configure for TARGET [TARGET=HOST]
217 Features and packages:
218 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
219 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
220 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
221 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
222 --x-includes=DIR X include files are in DIR
223 --x-libraries=DIR X library files are in DIR
225 if test -n "$ac_help"; then
226 echo "--enable and --with options recognized:$ac_help"
228 exit 0 ;;
230 -host | --host | --hos | --ho)
231 ac_prev=host ;;
232 -host=* | --host=* | --hos=* | --ho=*)
233 host="$ac_optarg" ;;
235 -includedir | --includedir | --includedi | --included | --include \
236 | --includ | --inclu | --incl | --inc)
237 ac_prev=includedir ;;
238 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
239 | --includ=* | --inclu=* | --incl=* | --inc=*)
240 includedir="$ac_optarg" ;;
242 -infodir | --infodir | --infodi | --infod | --info | --inf)
243 ac_prev=infodir ;;
244 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
245 infodir="$ac_optarg" ;;
247 -libdir | --libdir | --libdi | --libd)
248 ac_prev=libdir ;;
249 -libdir=* | --libdir=* | --libdi=* | --libd=*)
250 libdir="$ac_optarg" ;;
252 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
253 | --libexe | --libex | --libe)
254 ac_prev=libexecdir ;;
255 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
256 | --libexe=* | --libex=* | --libe=*)
257 libexecdir="$ac_optarg" ;;
259 -localstatedir | --localstatedir | --localstatedi | --localstated \
260 | --localstate | --localstat | --localsta | --localst \
261 | --locals | --local | --loca | --loc | --lo)
262 ac_prev=localstatedir ;;
263 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
264 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
265 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
266 localstatedir="$ac_optarg" ;;
268 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
269 ac_prev=mandir ;;
270 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
271 mandir="$ac_optarg" ;;
273 -nfp | --nfp | --nf)
274 # Obsolete; use --without-fp.
275 with_fp=no ;;
277 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
278 | --no-cr | --no-c)
279 no_create=yes ;;
281 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
282 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
283 no_recursion=yes ;;
285 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
286 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
287 | --oldin | --oldi | --old | --ol | --o)
288 ac_prev=oldincludedir ;;
289 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
290 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
291 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
292 oldincludedir="$ac_optarg" ;;
294 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
295 ac_prev=prefix ;;
296 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
297 prefix="$ac_optarg" ;;
299 -program-prefix | --program-prefix | --program-prefi | --program-pref \
300 | --program-pre | --program-pr | --program-p)
301 ac_prev=program_prefix ;;
302 -program-prefix=* | --program-prefix=* | --program-prefi=* \
303 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
304 program_prefix="$ac_optarg" ;;
306 -program-suffix | --program-suffix | --program-suffi | --program-suff \
307 | --program-suf | --program-su | --program-s)
308 ac_prev=program_suffix ;;
309 -program-suffix=* | --program-suffix=* | --program-suffi=* \
310 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
311 program_suffix="$ac_optarg" ;;
313 -program-transform-name | --program-transform-name \
314 | --program-transform-nam | --program-transform-na \
315 | --program-transform-n | --program-transform- \
316 | --program-transform | --program-transfor \
317 | --program-transfo | --program-transf \
318 | --program-trans | --program-tran \
319 | --progr-tra | --program-tr | --program-t)
320 ac_prev=program_transform_name ;;
321 -program-transform-name=* | --program-transform-name=* \
322 | --program-transform-nam=* | --program-transform-na=* \
323 | --program-transform-n=* | --program-transform-=* \
324 | --program-transform=* | --program-transfor=* \
325 | --program-transfo=* | --program-transf=* \
326 | --program-trans=* | --program-tran=* \
327 | --progr-tra=* | --program-tr=* | --program-t=*)
328 program_transform_name="$ac_optarg" ;;
330 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
331 | -silent | --silent | --silen | --sile | --sil)
332 silent=yes ;;
334 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
335 ac_prev=sbindir ;;
336 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
337 | --sbi=* | --sb=*)
338 sbindir="$ac_optarg" ;;
340 -sharedstatedir | --sharedstatedir | --sharedstatedi \
341 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
342 | --sharedst | --shareds | --shared | --share | --shar \
343 | --sha | --sh)
344 ac_prev=sharedstatedir ;;
345 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
346 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
347 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
348 | --sha=* | --sh=*)
349 sharedstatedir="$ac_optarg" ;;
351 -site | --site | --sit)
352 ac_prev=site ;;
353 -site=* | --site=* | --sit=*)
354 site="$ac_optarg" ;;
356 -site-file | --site-file | --site-fil | --site-fi | --site-f)
357 ac_prev=sitefile ;;
358 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
359 sitefile="$ac_optarg" ;;
361 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
362 ac_prev=srcdir ;;
363 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
364 srcdir="$ac_optarg" ;;
366 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
367 | --syscon | --sysco | --sysc | --sys | --sy)
368 ac_prev=sysconfdir ;;
369 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
370 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
371 sysconfdir="$ac_optarg" ;;
373 -target | --target | --targe | --targ | --tar | --ta | --t)
374 ac_prev=target ;;
375 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
376 target="$ac_optarg" ;;
378 -v | -verbose | --verbose | --verbos | --verbo | --verb)
379 verbose=yes ;;
381 -version | --version | --versio | --versi | --vers)
382 echo "configure generated by autoconf version 2.13"
383 exit 0 ;;
385 -with-* | --with-*)
386 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
387 # Reject names that are not valid shell variable names.
388 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
389 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
391 ac_package=`echo $ac_package| sed 's/-/_/g'`
392 case "$ac_option" in
393 *=*) ;;
394 *) ac_optarg=yes ;;
395 esac
396 eval "with_${ac_package}='$ac_optarg'" ;;
398 -without-* | --without-*)
399 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
400 # Reject names that are not valid shell variable names.
401 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
402 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
404 ac_package=`echo $ac_package| sed 's/-/_/g'`
405 eval "with_${ac_package}=no" ;;
407 --x)
408 # Obsolete; use --with-x.
409 with_x=yes ;;
411 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
412 | --x-incl | --x-inc | --x-in | --x-i)
413 ac_prev=x_includes ;;
414 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
415 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
416 x_includes="$ac_optarg" ;;
418 -x-libraries | --x-libraries | --x-librarie | --x-librari \
419 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
420 ac_prev=x_libraries ;;
421 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
422 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
423 x_libraries="$ac_optarg" ;;
425 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
429 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
430 echo "configure: warning: $ac_option: invalid host type" 1>&2
432 if test "x$nonopt" != xNONE; then
433 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
435 nonopt="$ac_option"
438 esac
439 done
441 if test -n "$ac_prev"; then
442 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
445 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
447 # File descriptor usage:
448 # 0 standard input
449 # 1 file creation
450 # 2 errors and warnings
451 # 3 some systems may open it to /dev/tty
452 # 4 used on the Kubota Titan
453 # 6 checking for... messages and results
454 # 5 compiler messages saved in config.log
455 if test "$silent" = yes; then
456 exec 6>/dev/null
457 else
458 exec 6>&1
460 exec 5>./config.log
462 echo "\
463 This file contains any messages produced by compilers while
464 running configure, to aid debugging if configure makes a mistake.
465 " 1>&5
467 # Strip out --no-create and --no-recursion so they do not pile up.
468 # Also quote any args containing shell metacharacters.
469 ac_configure_args=
470 for ac_arg
472 case "$ac_arg" in
473 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
474 | --no-cr | --no-c) ;;
475 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
476 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
477 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
478 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
479 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
480 esac
481 done
483 # NLS nuisances.
484 # Only set these to C if already set. These must not be set unconditionally
485 # because not all systems understand e.g. LANG=C (notably SCO).
486 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
487 # Non-C LC_CTYPE values break the ctype check.
488 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
489 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
490 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
491 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
493 # confdefs.h avoids OS command line length limits that DEFS can exceed.
494 rm -rf conftest* confdefs.h
495 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
496 echo > confdefs.h
498 # A filename unique to this package, relative to the directory that
499 # configure is in, which we can look for to find out if srcdir is correct.
500 ac_unique_file=java/lang/System.java
502 # Find the source files, if location was not specified.
503 if test -z "$srcdir"; then
504 ac_srcdir_defaulted=yes
505 # Try the directory containing this script, then its parent.
506 ac_prog=$0
507 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
508 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
509 srcdir=$ac_confdir
510 if test ! -r $srcdir/$ac_unique_file; then
511 srcdir=..
513 else
514 ac_srcdir_defaulted=no
516 if test ! -r $srcdir/$ac_unique_file; then
517 if test "$ac_srcdir_defaulted" = yes; then
518 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
519 else
520 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
523 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
525 # Prefer explicitly selected file to automatically selected ones.
526 if test -z "$sitefile"; then
527 if test -z "$CONFIG_SITE"; then
528 if test "x$prefix" != xNONE; then
529 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
530 else
531 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
534 else
535 CONFIG_SITE="$sitefile"
537 for ac_site_file in $CONFIG_SITE; do
538 if test -r "$ac_site_file"; then
539 echo "loading site script $ac_site_file"
540 . "$ac_site_file"
542 done
544 if test -r "$cache_file"; then
545 echo "loading cache $cache_file"
546 . $cache_file
547 else
548 echo "creating cache $cache_file"
549 > $cache_file
552 ac_ext=c
553 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
554 ac_cpp='$CPP $CPPFLAGS'
555 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
556 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
557 cross_compiling=$ac_cv_prog_cc_cross
559 ac_exeext=
560 ac_objext=o
561 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
562 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
563 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
564 ac_n= ac_c='
565 ' ac_t=' '
566 else
567 ac_n=-n ac_c= ac_t=
569 else
570 ac_n= ac_c='\c' ac_t=
575 ac_aux_dir=
576 for ac_dir in .. $srcdir/..; do
577 if test -f $ac_dir/install-sh; then
578 ac_aux_dir=$ac_dir
579 ac_install_sh="$ac_aux_dir/install-sh -c"
580 break
581 elif test -f $ac_dir/install.sh; then
582 ac_aux_dir=$ac_dir
583 ac_install_sh="$ac_aux_dir/install.sh -c"
584 break
586 done
587 if test -z "$ac_aux_dir"; then
588 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
590 ac_config_guess=$ac_aux_dir/config.guess
591 ac_config_sub=$ac_aux_dir/config.sub
592 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
596 # Do some error checking and defaulting for the host and target type.
597 # The inputs are:
598 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
600 # The rules are:
601 # 1. You are not allowed to specify --host, --target, and nonopt at the
602 # same time.
603 # 2. Host defaults to nonopt.
604 # 3. If nonopt is not specified, then host defaults to the current host,
605 # as determined by config.guess.
606 # 4. Target and build default to nonopt.
607 # 5. If nonopt is not specified, then target and build default to host.
609 # The aliases save the names the user supplied, while $host etc.
610 # will get canonicalized.
611 case $host---$target---$nonopt in
612 NONE---*---* | *---NONE---* | *---*---NONE) ;;
613 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
614 esac
617 # Make sure we can run config.sub.
618 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
619 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
622 echo $ac_n "checking host system type""... $ac_c" 1>&6
623 echo "configure:624: checking host system type" >&5
625 host_alias=$host
626 case "$host_alias" in
627 NONE)
628 case $nonopt in
629 NONE)
630 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
631 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
632 fi ;;
633 *) host_alias=$nonopt ;;
634 esac ;;
635 esac
637 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
638 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
639 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
640 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
641 echo "$ac_t""$host" 1>&6
643 echo $ac_n "checking target system type""... $ac_c" 1>&6
644 echo "configure:645: checking target system type" >&5
646 target_alias=$target
647 case "$target_alias" in
648 NONE)
649 case $nonopt in
650 NONE) target_alias=$host_alias ;;
651 *) target_alias=$nonopt ;;
652 esac ;;
653 esac
655 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
656 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
657 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
658 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
659 echo "$ac_t""$target" 1>&6
661 echo $ac_n "checking build system type""... $ac_c" 1>&6
662 echo "configure:663: checking build system type" >&5
664 build_alias=$build
665 case "$build_alias" in
666 NONE)
667 case $nonopt in
668 NONE) build_alias=$host_alias ;;
669 *) build_alias=$nonopt ;;
670 esac ;;
671 esac
673 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
674 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
675 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
676 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
677 echo "$ac_t""$build" 1>&6
679 test "$host_alias" != "$target_alias" &&
680 test "$program_prefix$program_suffix$program_transform_name" = \
681 NONENONEs,x,x, &&
682 program_prefix=${target_alias}-
685 # Check whether --with-target-subdir or --without-target-subdir was given.
686 if test "${with_target_subdir+set}" = set; then
687 withval="$with_target_subdir"
691 # Check whether --with-cross-host or --without-cross-host was given.
692 if test "${with_cross_host+set}" = set; then
693 withval="$with_cross_host"
698 # Find a good install program. We prefer a C program (faster),
699 # so one script is as good as another. But avoid the broken or
700 # incompatible versions:
701 # SysV /etc/install, /usr/sbin/install
702 # SunOS /usr/etc/install
703 # IRIX /sbin/install
704 # AIX /bin/install
705 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
706 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
707 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
708 # ./install, which can be erroneously created by make from ./install.sh.
709 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
710 echo "configure:711: checking for a BSD compatible install" >&5
711 if test -z "$INSTALL"; then
712 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
713 echo $ac_n "(cached) $ac_c" 1>&6
714 else
715 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
716 for ac_dir in $PATH; do
717 # Account for people who put trailing slashes in PATH elements.
718 case "$ac_dir/" in
719 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
721 # OSF1 and SCO ODT 3.0 have their own names for install.
722 # Don't use installbsd from OSF since it installs stuff as root
723 # by default.
724 for ac_prog in ginstall scoinst install; do
725 if test -f $ac_dir/$ac_prog; then
726 if test $ac_prog = install &&
727 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
728 # AIX install. It has an incompatible calling convention.
730 else
731 ac_cv_path_install="$ac_dir/$ac_prog -c"
732 break 2
735 done
737 esac
738 done
739 IFS="$ac_save_IFS"
742 if test "${ac_cv_path_install+set}" = set; then
743 INSTALL="$ac_cv_path_install"
744 else
745 # As a last resort, use the slow shell script. We don't cache a
746 # path for INSTALL within a source directory, because that will
747 # break other packages using the cache if that directory is
748 # removed, or if the path is relative.
749 INSTALL="$ac_install_sh"
752 echo "$ac_t""$INSTALL" 1>&6
754 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
755 # It thinks the first close brace ends the variable substitution.
756 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
758 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
760 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
762 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
763 echo "configure:764: checking whether build environment is sane" >&5
764 # Just in case
765 sleep 1
766 echo timestamp > conftestfile
767 # Do `set' in a subshell so we don't clobber the current shell's
768 # arguments. Must try -L first in case configure is actually a
769 # symlink; some systems play weird games with the mod time of symlinks
770 # (eg FreeBSD returns the mod time of the symlink's containing
771 # directory).
772 if (
773 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
774 if test "$*" = "X"; then
775 # -L didn't work.
776 set X `ls -t $srcdir/configure conftestfile`
778 if test "$*" != "X $srcdir/configure conftestfile" \
779 && test "$*" != "X conftestfile $srcdir/configure"; then
781 # If neither matched, then we have a broken ls. This can happen
782 # if, for instance, CONFIG_SHELL is bash and it inherits a
783 # broken ls alias from the environment. This has actually
784 # happened. Such a system could not be considered "sane".
785 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
786 alias in your environment" 1>&2; exit 1; }
789 test "$2" = conftestfile
791 then
792 # Ok.
794 else
795 { echo "configure: error: newly created file is older than distributed files!
796 Check your system clock" 1>&2; exit 1; }
798 rm -f conftest*
799 echo "$ac_t""yes" 1>&6
800 if test "$program_transform_name" = s,x,x,; then
801 program_transform_name=
802 else
803 # Double any \ or $. echo might interpret backslashes.
804 cat <<\EOF_SED > conftestsed
805 s,\\,\\\\,g; s,\$,$$,g
806 EOF_SED
807 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
808 rm -f conftestsed
810 test "$program_prefix" != NONE &&
811 program_transform_name="s,^,${program_prefix},; $program_transform_name"
812 # Use a double $ so make ignores it.
813 test "$program_suffix" != NONE &&
814 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
816 # sed with no file args requires a program.
817 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
819 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
820 echo "configure:821: checking whether ${MAKE-make} sets \${MAKE}" >&5
821 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
822 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
823 echo $ac_n "(cached) $ac_c" 1>&6
824 else
825 cat > conftestmake <<\EOF
826 all:
827 @echo 'ac_maketemp="${MAKE}"'
829 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
830 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
831 if test -n "$ac_maketemp"; then
832 eval ac_cv_prog_make_${ac_make}_set=yes
833 else
834 eval ac_cv_prog_make_${ac_make}_set=no
836 rm -f conftestmake
838 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
839 echo "$ac_t""yes" 1>&6
840 SET_MAKE=
841 else
842 echo "$ac_t""no" 1>&6
843 SET_MAKE="MAKE=${MAKE-make}"
846 if test $host != $build; then
847 ac_tool_prefix=${host_alias}-
848 else
849 ac_tool_prefix=
852 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
853 echo "configure:854: checking for Cygwin environment" >&5
854 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
855 echo $ac_n "(cached) $ac_c" 1>&6
856 else
857 cat > conftest.$ac_ext <<EOF
858 #line 859 "configure"
859 #include "confdefs.h"
861 int main() {
863 #ifndef __CYGWIN__
864 #define __CYGWIN__ __CYGWIN32__
865 #endif
866 return __CYGWIN__;
867 ; return 0; }
869 if { (eval echo configure:870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
870 rm -rf conftest*
871 ac_cv_cygwin=yes
872 else
873 echo "configure: failed program was:" >&5
874 cat conftest.$ac_ext >&5
875 rm -rf conftest*
876 ac_cv_cygwin=no
878 rm -f conftest*
879 rm -f conftest*
882 echo "$ac_t""$ac_cv_cygwin" 1>&6
883 CYGWIN=
884 test "$ac_cv_cygwin" = yes && CYGWIN=yes
885 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
886 echo "configure:887: checking for mingw32 environment" >&5
887 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
888 echo $ac_n "(cached) $ac_c" 1>&6
889 else
890 cat > conftest.$ac_ext <<EOF
891 #line 892 "configure"
892 #include "confdefs.h"
894 int main() {
895 return __MINGW32__;
896 ; return 0; }
898 if { (eval echo configure:899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
899 rm -rf conftest*
900 ac_cv_mingw32=yes
901 else
902 echo "configure: failed program was:" >&5
903 cat conftest.$ac_ext >&5
904 rm -rf conftest*
905 ac_cv_mingw32=no
907 rm -f conftest*
908 rm -f conftest*
911 echo "$ac_t""$ac_cv_mingw32" 1>&6
912 MINGW32=
913 test "$ac_cv_mingw32" = yes && MINGW32=yes
915 # Check whether --enable-multilib or --disable-multilib was given.
916 if test "${enable_multilib+set}" = set; then
917 enableval="$enable_multilib"
918 case "${enableval}" in
919 yes) multilib=yes ;;
920 no) multilib=no ;;
921 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
922 esac
923 else
924 multilib=yes
928 if test "${srcdir}" = "."; then
929 if test "${with_target_subdir}" != "."; then
930 libgcj_basedir="${srcdir}/${with_multisrctop}../."
931 else
932 libgcj_basedir="${srcdir}/${with_multisrctop}."
934 else
935 libgcj_basedir="${srcdir}/."
940 # Make sure we can run config.sub.
941 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
942 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
945 echo $ac_n "checking host system type""... $ac_c" 1>&6
946 echo "configure:947: checking host system type" >&5
948 host_alias=$host
949 case "$host_alias" in
950 NONE)
951 case $nonopt in
952 NONE)
953 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
954 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
955 fi ;;
956 *) host_alias=$nonopt ;;
957 esac ;;
958 esac
960 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
961 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
962 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
963 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
964 echo "$ac_t""$host" 1>&6
967 version=0.0.7
969 PACKAGE=libjava
971 VERSION=$version
973 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
974 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
976 cat >> confdefs.h <<EOF
977 #define PACKAGE "$PACKAGE"
980 cat >> confdefs.h <<EOF
981 #define VERSION "$VERSION"
986 missing_dir=`cd $ac_aux_dir && pwd`
987 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
988 echo "configure:989: checking for working aclocal" >&5
989 # Run test in a subshell; some versions of sh will print an error if
990 # an executable is not found, even if stderr is redirected.
991 # Redirect stdin to placate older versions of autoconf. Sigh.
992 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
993 ACLOCAL=aclocal
994 echo "$ac_t""found" 1>&6
995 else
996 ACLOCAL="$missing_dir/missing aclocal"
997 echo "$ac_t""missing" 1>&6
1000 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1001 echo "configure:1002: checking for working autoconf" >&5
1002 # Run test in a subshell; some versions of sh will print an error if
1003 # an executable is not found, even if stderr is redirected.
1004 # Redirect stdin to placate older versions of autoconf. Sigh.
1005 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1006 AUTOCONF=autoconf
1007 echo "$ac_t""found" 1>&6
1008 else
1009 AUTOCONF="$missing_dir/missing autoconf"
1010 echo "$ac_t""missing" 1>&6
1013 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1014 echo "configure:1015: checking for working automake" >&5
1015 # Run test in a subshell; some versions of sh will print an error if
1016 # an executable is not found, even if stderr is redirected.
1017 # Redirect stdin to placate older versions of autoconf. Sigh.
1018 if (automake --version) < /dev/null > /dev/null 2>&1; then
1019 AUTOMAKE=automake
1020 echo "$ac_t""found" 1>&6
1021 else
1022 AUTOMAKE="$missing_dir/missing automake"
1023 echo "$ac_t""missing" 1>&6
1026 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1027 echo "configure:1028: checking for working autoheader" >&5
1028 # Run test in a subshell; some versions of sh will print an error if
1029 # an executable is not found, even if stderr is redirected.
1030 # Redirect stdin to placate older versions of autoconf. Sigh.
1031 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1032 AUTOHEADER=autoheader
1033 echo "$ac_t""found" 1>&6
1034 else
1035 AUTOHEADER="$missing_dir/missing autoheader"
1036 echo "$ac_t""missing" 1>&6
1039 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1040 echo "configure:1041: checking for working makeinfo" >&5
1041 # Run test in a subshell; some versions of sh will print an error if
1042 # an executable is not found, even if stderr is redirected.
1043 # Redirect stdin to placate older versions of autoconf. Sigh.
1044 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1045 MAKEINFO=makeinfo
1046 echo "$ac_t""found" 1>&6
1047 else
1048 MAKEINFO="$missing_dir/missing makeinfo"
1049 echo "$ac_t""missing" 1>&6
1054 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
1055 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1056 # are probably using a cross compiler, which will not be able to fully
1057 # link an executable. This should really be fixed in autoconf
1058 # itself.
1063 # Extract the first word of "gcc", so it can be a program name with args.
1064 set dummy gcc; ac_word=$2
1065 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1066 echo "configure:1067: checking for $ac_word" >&5
1067 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1068 echo $ac_n "(cached) $ac_c" 1>&6
1069 else
1070 if test -n "$CC"; then
1071 ac_cv_prog_CC="$CC" # Let the user override the test.
1072 else
1073 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1074 ac_dummy="$PATH"
1075 for ac_dir in $ac_dummy; do
1076 test -z "$ac_dir" && ac_dir=.
1077 if test -f $ac_dir/$ac_word; then
1078 ac_cv_prog_CC="gcc"
1079 break
1081 done
1082 IFS="$ac_save_ifs"
1085 CC="$ac_cv_prog_CC"
1086 if test -n "$CC"; then
1087 echo "$ac_t""$CC" 1>&6
1088 else
1089 echo "$ac_t""no" 1>&6
1092 if test -z "$CC"; then
1093 # Extract the first word of "cc", so it can be a program name with args.
1094 set dummy cc; ac_word=$2
1095 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1096 echo "configure:1097: checking for $ac_word" >&5
1097 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1098 echo $ac_n "(cached) $ac_c" 1>&6
1099 else
1100 if test -n "$CC"; then
1101 ac_cv_prog_CC="$CC" # Let the user override the test.
1102 else
1103 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1104 ac_prog_rejected=no
1105 ac_dummy="$PATH"
1106 for ac_dir in $ac_dummy; do
1107 test -z "$ac_dir" && ac_dir=.
1108 if test -f $ac_dir/$ac_word; then
1109 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1110 ac_prog_rejected=yes
1111 continue
1113 ac_cv_prog_CC="cc"
1114 break
1116 done
1117 IFS="$ac_save_ifs"
1118 if test $ac_prog_rejected = yes; then
1119 # We found a bogon in the path, so make sure we never use it.
1120 set dummy $ac_cv_prog_CC
1121 shift
1122 if test $# -gt 0; then
1123 # We chose a different compiler from the bogus one.
1124 # However, it has the same basename, so the bogon will be chosen
1125 # first if we set CC to just the basename; use the full file name.
1126 shift
1127 set dummy "$ac_dir/$ac_word" "$@"
1128 shift
1129 ac_cv_prog_CC="$@"
1134 CC="$ac_cv_prog_CC"
1135 if test -n "$CC"; then
1136 echo "$ac_t""$CC" 1>&6
1137 else
1138 echo "$ac_t""no" 1>&6
1141 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1144 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1145 echo "configure:1146: checking whether we are using GNU C" >&5
1146 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1147 echo $ac_n "(cached) $ac_c" 1>&6
1148 else
1149 cat > conftest.c <<EOF
1150 #ifdef __GNUC__
1151 yes;
1152 #endif
1154 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1155: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1155 ac_cv_prog_gcc=yes
1156 else
1157 ac_cv_prog_gcc=no
1161 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1163 if test $ac_cv_prog_gcc = yes; then
1164 GCC=yes
1165 ac_test_CFLAGS="${CFLAGS+set}"
1166 ac_save_CFLAGS="$CFLAGS"
1167 CFLAGS=
1168 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1169 echo "configure:1170: checking whether ${CC-cc} accepts -g" >&5
1170 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1171 echo $ac_n "(cached) $ac_c" 1>&6
1172 else
1173 echo 'void f(){}' > conftest.c
1174 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1175 ac_cv_prog_cc_g=yes
1176 else
1177 ac_cv_prog_cc_g=no
1179 rm -f conftest*
1183 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1184 if test "$ac_test_CFLAGS" = set; then
1185 CFLAGS="$ac_save_CFLAGS"
1186 elif test $ac_cv_prog_cc_g = yes; then
1187 CFLAGS="-g -O2"
1188 else
1189 CFLAGS="-O2"
1191 else
1192 GCC=
1193 test "${CFLAGS+set}" = set || CFLAGS="-g"
1197 # Likewise for AC_PROG_CXX.
1201 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1203 # Extract the first word of "$ac_prog", so it can be a program name with args.
1204 set dummy $ac_prog; ac_word=$2
1205 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1206 echo "configure:1207: checking for $ac_word" >&5
1207 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1208 echo $ac_n "(cached) $ac_c" 1>&6
1209 else
1210 if test -n "$CXX"; then
1211 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1212 else
1213 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1214 ac_dummy="$PATH"
1215 for ac_dir in $ac_dummy; do
1216 test -z "$ac_dir" && ac_dir=.
1217 if test -f $ac_dir/$ac_word; then
1218 ac_cv_prog_CXX="$ac_prog"
1219 break
1221 done
1222 IFS="$ac_save_ifs"
1225 CXX="$ac_cv_prog_CXX"
1226 if test -n "$CXX"; then
1227 echo "$ac_t""$CXX" 1>&6
1228 else
1229 echo "$ac_t""no" 1>&6
1232 test -n "$CXX" && break
1233 done
1234 test -n "$CXX" || CXX="gcc"
1236 test -z "$CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1238 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1239 echo "configure:1240: checking whether we are using GNU C++" >&5
1240 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1241 echo $ac_n "(cached) $ac_c" 1>&6
1242 else
1243 cat > conftest.C <<EOF
1244 #ifdef __GNUC__
1245 yes;
1246 #endif
1248 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1249: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1249 ac_cv_prog_gxx=yes
1250 else
1251 ac_cv_prog_gxx=no
1255 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1257 if test $ac_cv_prog_gxx = yes; then
1258 GXX=yes
1259 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1260 ac_save_CXXFLAGS="$CXXFLAGS"
1261 CXXFLAGS=
1262 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1263 echo "configure:1264: checking whether ${CXX-g++} accepts -g" >&5
1264 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1265 echo $ac_n "(cached) $ac_c" 1>&6
1266 else
1267 echo 'void f(){}' > conftest.cc
1268 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1269 ac_cv_prog_cxx_g=yes
1270 else
1271 ac_cv_prog_cxx_g=no
1273 rm -f conftest*
1277 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1278 if test "$ac_test_CXXFLAGS" = set; then
1279 CXXFLAGS="$ac_save_CXXFLAGS"
1280 elif test $ac_cv_prog_cxx_g = yes; then
1281 CXXFLAGS="-g -O2"
1282 else
1283 CXXFLAGS="-O2"
1285 else
1286 GXX=
1287 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1291 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we dont
1292 # run it explicitly here, it will be run implicitly before
1293 # LIBGCJ_CONFIGURE, which doesn't work because that means that it will
1294 # be run before AC_CANONICAL_HOST.
1295 echo $ac_n "checking build system type""... $ac_c" 1>&6
1296 echo "configure:1297: checking build system type" >&5
1298 build_alias=$build
1299 case "$build_alias" in
1300 NONE)
1301 case $nonopt in
1302 NONE) build_alias=$host_alias ;;
1303 *) build_alias=$nonopt ;;
1304 esac ;;
1305 esac
1307 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1308 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1309 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1310 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1311 echo "$ac_t""$build" 1>&6
1314 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1315 set dummy ${ac_tool_prefix}as; ac_word=$2
1316 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1317 echo "configure:1318: checking for $ac_word" >&5
1318 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1319 echo $ac_n "(cached) $ac_c" 1>&6
1320 else
1321 if test -n "$AS"; then
1322 ac_cv_prog_AS="$AS" # Let the user override the test.
1323 else
1324 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1325 ac_dummy="$PATH"
1326 for ac_dir in $ac_dummy; do
1327 test -z "$ac_dir" && ac_dir=.
1328 if test -f $ac_dir/$ac_word; then
1329 ac_cv_prog_AS="${ac_tool_prefix}as"
1330 break
1332 done
1333 IFS="$ac_save_ifs"
1334 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1337 AS="$ac_cv_prog_AS"
1338 if test -n "$AS"; then
1339 echo "$ac_t""$AS" 1>&6
1340 else
1341 echo "$ac_t""no" 1>&6
1346 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1347 set dummy ${ac_tool_prefix}ar; ac_word=$2
1348 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1349 echo "configure:1350: checking for $ac_word" >&5
1350 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1351 echo $ac_n "(cached) $ac_c" 1>&6
1352 else
1353 if test -n "$AR"; then
1354 ac_cv_prog_AR="$AR" # Let the user override the test.
1355 else
1356 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1357 ac_dummy="$PATH"
1358 for ac_dir in $ac_dummy; do
1359 test -z "$ac_dir" && ac_dir=.
1360 if test -f $ac_dir/$ac_word; then
1361 ac_cv_prog_AR="${ac_tool_prefix}ar"
1362 break
1364 done
1365 IFS="$ac_save_ifs"
1366 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1369 AR="$ac_cv_prog_AR"
1370 if test -n "$AR"; then
1371 echo "$ac_t""$AR" 1>&6
1372 else
1373 echo "$ac_t""no" 1>&6
1378 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1379 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1380 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1381 echo "configure:1382: checking for $ac_word" >&5
1382 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1383 echo $ac_n "(cached) $ac_c" 1>&6
1384 else
1385 if test -n "$RANLIB"; then
1386 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1387 else
1388 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1389 ac_dummy="$PATH"
1390 for ac_dir in $ac_dummy; do
1391 test -z "$ac_dir" && ac_dir=.
1392 if test -f $ac_dir/$ac_word; then
1393 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1394 break
1396 done
1397 IFS="$ac_save_ifs"
1400 RANLIB="$ac_cv_prog_RANLIB"
1401 if test -n "$RANLIB"; then
1402 echo "$ac_t""$RANLIB" 1>&6
1403 else
1404 echo "$ac_t""no" 1>&6
1408 if test -z "$ac_cv_prog_RANLIB"; then
1409 if test -n "$ac_tool_prefix"; then
1410 # Extract the first word of "ranlib", so it can be a program name with args.
1411 set dummy ranlib; ac_word=$2
1412 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1413 echo "configure:1414: checking for $ac_word" >&5
1414 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1415 echo $ac_n "(cached) $ac_c" 1>&6
1416 else
1417 if test -n "$RANLIB"; then
1418 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1419 else
1420 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1421 ac_dummy="$PATH"
1422 for ac_dir in $ac_dummy; do
1423 test -z "$ac_dir" && ac_dir=.
1424 if test -f $ac_dir/$ac_word; then
1425 ac_cv_prog_RANLIB="ranlib"
1426 break
1428 done
1429 IFS="$ac_save_ifs"
1430 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1433 RANLIB="$ac_cv_prog_RANLIB"
1434 if test -n "$RANLIB"; then
1435 echo "$ac_t""$RANLIB" 1>&6
1436 else
1437 echo "$ac_t""no" 1>&6
1440 else
1441 RANLIB=":"
1446 # Find a good install program. We prefer a C program (faster),
1447 # so one script is as good as another. But avoid the broken or
1448 # incompatible versions:
1449 # SysV /etc/install, /usr/sbin/install
1450 # SunOS /usr/etc/install
1451 # IRIX /sbin/install
1452 # AIX /bin/install
1453 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1454 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1455 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1456 # ./install, which can be erroneously created by make from ./install.sh.
1457 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1458 echo "configure:1459: checking for a BSD compatible install" >&5
1459 if test -z "$INSTALL"; then
1460 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1461 echo $ac_n "(cached) $ac_c" 1>&6
1462 else
1463 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1464 for ac_dir in $PATH; do
1465 # Account for people who put trailing slashes in PATH elements.
1466 case "$ac_dir/" in
1467 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1469 # OSF1 and SCO ODT 3.0 have their own names for install.
1470 # Don't use installbsd from OSF since it installs stuff as root
1471 # by default.
1472 for ac_prog in ginstall scoinst install; do
1473 if test -f $ac_dir/$ac_prog; then
1474 if test $ac_prog = install &&
1475 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1476 # AIX install. It has an incompatible calling convention.
1478 else
1479 ac_cv_path_install="$ac_dir/$ac_prog -c"
1480 break 2
1483 done
1485 esac
1486 done
1487 IFS="$ac_save_IFS"
1490 if test "${ac_cv_path_install+set}" = set; then
1491 INSTALL="$ac_cv_path_install"
1492 else
1493 # As a last resort, use the slow shell script. We don't cache a
1494 # path for INSTALL within a source directory, because that will
1495 # break other packages using the cache if that directory is
1496 # removed, or if the path is relative.
1497 INSTALL="$ac_install_sh"
1500 echo "$ac_t""$INSTALL" 1>&6
1502 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1503 # It thinks the first close brace ends the variable substitution.
1504 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1506 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1508 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1511 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1512 echo "configure:1513: checking whether to enable maintainer-specific portions of Makefiles" >&5
1513 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1514 if test "${enable_maintainer_mode+set}" = set; then
1515 enableval="$enable_maintainer_mode"
1516 USE_MAINTAINER_MODE=$enableval
1517 else
1518 USE_MAINTAINER_MODE=no
1521 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1524 if test $USE_MAINTAINER_MODE = yes; then
1525 MAINTAINER_MODE_TRUE=
1526 MAINTAINER_MODE_FALSE='#'
1527 else
1528 MAINTAINER_MODE_TRUE='#'
1529 MAINTAINER_MODE_FALSE=
1531 MAINT=$MAINTAINER_MODE_TRUE
1535 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1536 # at least currently, we never actually build a program, so we never
1537 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1538 # fails, because we are probably configuring with a cross compiler
1539 # which cant create executables. So we include AC_EXEEXT to keep
1540 # automake happy, but we dont execute it, since we dont care about
1541 # the result.
1542 if false; then
1545 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1546 echo "configure:1547: checking for executable suffix" >&5
1547 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1548 echo $ac_n "(cached) $ac_c" 1>&6
1549 else
1550 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1551 ac_cv_exeext=.exe
1552 else
1553 rm -f conftest*
1554 echo 'int main () { return 0; }' > conftest.$ac_ext
1555 ac_cv_exeext=
1556 if { (eval echo configure:1557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1557 for file in conftest.*; do
1558 case $file in
1559 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1560 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1561 esac
1562 done
1563 else
1564 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1566 rm -f conftest*
1567 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1571 EXEEXT=""
1572 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1573 echo "$ac_t""${ac_cv_exeext}" 1>&6
1574 ac_exeext=$EXEEXT
1578 # configure.host sets the following important variables
1579 # libgcj_cflags - host specific C compiler flags
1580 # libgcj_cxxflags - host specific C++ compiler flags
1581 # libgcj_javaflags - host specific Java compiler flags
1583 libgcj_cflags=
1584 libgcj_cxxflags=
1585 libgcj_javaflags=
1587 . ${libgcj_basedir}/configure.host
1589 case ${libgcj_basedir} in
1590 /* | A-Za-z:/\\*) libgcj_flagbasedir=${libgcj_basedir} ;;
1591 *) libgcj_flagbasedir='$(top_builddir)/'${libgcj_basedir} ;;
1592 esac
1594 LIBGCJ_CFLAGS="${libgcj_cflags}"
1595 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
1596 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
1606 # Check whether --enable-shared or --disable-shared was given.
1607 if test "${enable_shared+set}" = set; then
1608 enableval="$enable_shared"
1609 p=${PACKAGE-default}
1610 case "$enableval" in
1611 yes) enable_shared=yes ;;
1612 no) enable_shared=no ;;
1614 enable_shared=no
1615 # Look at the argument we got. We use all the common list separators.
1616 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1617 for pkg in $enableval; do
1618 if test "X$pkg" = "X$p"; then
1619 enable_shared=yes
1621 done
1622 IFS="$ac_save_ifs"
1624 esac
1625 else
1626 enable_shared=yes
1629 # Check whether --enable-static or --disable-static was given.
1630 if test "${enable_static+set}" = set; then
1631 enableval="$enable_static"
1632 p=${PACKAGE-default}
1633 case "$enableval" in
1634 yes) enable_static=yes ;;
1635 no) enable_static=no ;;
1637 enable_static=no
1638 # Look at the argument we got. We use all the common list separators.
1639 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1640 for pkg in $enableval; do
1641 if test "X$pkg" = "X$p"; then
1642 enable_static=yes
1644 done
1645 IFS="$ac_save_ifs"
1647 esac
1648 else
1649 enable_static=yes
1652 # Check whether --enable-fast-install or --disable-fast-install was given.
1653 if test "${enable_fast_install+set}" = set; then
1654 enableval="$enable_fast_install"
1655 p=${PACKAGE-default}
1656 case "$enableval" in
1657 yes) enable_fast_install=yes ;;
1658 no) enable_fast_install=no ;;
1660 enable_fast_install=no
1661 # Look at the argument we got. We use all the common list separators.
1662 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1663 for pkg in $enableval; do
1664 if test "X$pkg" = "X$p"; then
1665 enable_fast_install=yes
1667 done
1668 IFS="$ac_save_ifs"
1670 esac
1671 else
1672 enable_fast_install=yes
1675 # Extract the first word of "ranlib", so it can be a program name with args.
1676 set dummy ranlib; ac_word=$2
1677 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1678 echo "configure:1679: checking for $ac_word" >&5
1679 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1680 echo $ac_n "(cached) $ac_c" 1>&6
1681 else
1682 if test -n "$RANLIB"; then
1683 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1684 else
1685 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1686 ac_dummy="$PATH"
1687 for ac_dir in $ac_dummy; do
1688 test -z "$ac_dir" && ac_dir=.
1689 if test -f $ac_dir/$ac_word; then
1690 ac_cv_prog_RANLIB="ranlib"
1691 break
1693 done
1694 IFS="$ac_save_ifs"
1695 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1698 RANLIB="$ac_cv_prog_RANLIB"
1699 if test -n "$RANLIB"; then
1700 echo "$ac_t""$RANLIB" 1>&6
1701 else
1702 echo "$ac_t""no" 1>&6
1705 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1706 if test "${with_gnu_ld+set}" = set; then
1707 withval="$with_gnu_ld"
1708 test "$withval" = no || with_gnu_ld=yes
1709 else
1710 with_gnu_ld=no
1713 ac_prog=ld
1714 if test "$ac_cv_prog_gcc" = yes; then
1715 # Check if gcc -print-prog-name=ld gives a path.
1716 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1717 echo "configure:1718: checking for ld used by GCC" >&5
1718 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1719 case "$ac_prog" in
1720 # Accept absolute paths.
1721 /* | [A-Za-z]:[\\/]*)
1722 re_direlt='/[^/][^/]*/\.\./'
1723 # Canonicalize the path of ld
1724 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1725 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1726 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1727 done
1728 test -z "$LD" && LD="$ac_prog"
1731 # If it fails, then pretend we aren't using GCC.
1732 ac_prog=ld
1735 # If it is relative, then search for the first ld in PATH.
1736 with_gnu_ld=unknown
1738 esac
1739 elif test "$with_gnu_ld" = yes; then
1740 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1741 echo "configure:1742: checking for GNU ld" >&5
1742 else
1743 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1744 echo "configure:1745: checking for non-GNU ld" >&5
1746 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1747 echo $ac_n "(cached) $ac_c" 1>&6
1748 else
1749 if test -z "$LD"; then
1750 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1751 for ac_dir in $PATH; do
1752 test -z "$ac_dir" && ac_dir=.
1753 if test -f "$ac_dir/$ac_prog"; then
1754 ac_cv_path_LD="$ac_dir/$ac_prog"
1755 # Check to see if the program is GNU ld. I'd rather use --version,
1756 # but apparently some GNU ld's only accept -v.
1757 # Break only if it was the GNU/non-GNU ld that we prefer.
1758 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1759 test "$with_gnu_ld" != no && break
1760 else
1761 test "$with_gnu_ld" != yes && break
1764 done
1765 IFS="$ac_save_ifs"
1766 else
1767 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1771 LD="$ac_cv_path_LD"
1772 if test -n "$LD"; then
1773 echo "$ac_t""$LD" 1>&6
1774 else
1775 echo "$ac_t""no" 1>&6
1777 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1779 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1780 echo "configure:1781: checking if the linker ($LD) is GNU ld" >&5
1781 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1782 echo $ac_n "(cached) $ac_c" 1>&6
1783 else
1784 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1785 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1786 ac_cv_prog_gnu_ld=yes
1787 else
1788 ac_cv_prog_gnu_ld=no
1792 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1795 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1796 echo "configure:1797: checking for BSD-compatible nm" >&5
1797 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1798 echo $ac_n "(cached) $ac_c" 1>&6
1799 else
1800 if test -n "$NM"; then
1801 # Let the user override the test.
1802 ac_cv_path_NM="$NM"
1803 else
1804 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1805 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1806 test -z "$ac_dir" && ac_dir=.
1807 if test -f $ac_dir/nm; then
1808 # Check to see if the nm accepts a BSD-compat flag.
1809 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1810 # nm: unknown option "B" ignored
1811 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1812 ac_cv_path_NM="$ac_dir/nm -B"
1813 break
1814 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1815 ac_cv_path_NM="$ac_dir/nm -p"
1816 break
1817 else
1818 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1819 continue # so that we can try to find one that supports BSD flags
1822 done
1823 IFS="$ac_save_ifs"
1824 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1828 NM="$ac_cv_path_NM"
1829 echo "$ac_t""$NM" 1>&6
1832 # Check for command to grab the raw symbol name followed by C symbol from nm.
1833 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
1834 echo "configure:1835: checking command to parse $NM output" >&5
1835 if eval "test \"`echo '$''{'ac_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
1836 echo $ac_n "(cached) $ac_c" 1>&6
1837 else
1838 # These are sane defaults that work on at least a few old systems.
1839 # {They come from Ultrix. What could be older than Ultrix?!! ;)}
1841 # Character class describing NM global symbol codes.
1842 ac_symcode='[BCDEGRST]'
1844 # Regexp to match symbols that can be accessed directly from C.
1845 ac_sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
1847 # Transform the above into a raw symbol and a C symbol.
1848 ac_symxfrm='\1 \2\3 \3'
1850 # Transform an extracted symbol line into a proper C declaration
1851 ac_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
1853 # Define system-specific variables.
1854 case "$host_os" in
1855 aix*)
1856 ac_symcode='[BCDT]'
1858 cygwin* | mingw*)
1859 ac_symcode='[ABCDGISTW]'
1861 hpux*)
1862 ac_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
1864 irix*)
1865 ac_symcode='[BCDEGRST]'
1867 solaris*)
1868 ac_symcode='[BDT]'
1870 esac
1872 # If we're using GNU nm, then use its standard symbol codes.
1873 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
1874 ac_symcode='[ABCDGISTW]'
1877 # Try without a prefix undercore, then with it.
1878 for ac_symprfx in "" "_"; do
1880 ac_cv_sys_global_symbol_pipe="sed -n -e 's/^.* \($ac_symcode\) *\($ac_symprfx\)$ac_sympat$/$ac_symxfrm/p'"
1882 # Check to see that the pipe works correctly.
1883 ac_pipe_works=no
1884 rm -f conftest.$ac_ext
1885 cat > conftest.$ac_ext <<EOF
1886 #ifdef __cplusplus
1887 extern "C" {
1888 #endif
1889 char nm_test_var;
1890 void nm_test_func(){}
1891 #ifdef __cplusplus
1893 #endif
1894 int main(){nm_test_var='a';nm_test_func;return 0;}
1897 if { (eval echo configure:1898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1898 # Now try to grab the symbols.
1899 ac_nlist=conftest.nm
1901 if { (eval echo configure:1902: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
1903 # Try sorting and uniquifying the output.
1904 if sort "$ac_nlist" | uniq > "$ac_nlist"T; then
1905 mv -f "$ac_nlist"T "$ac_nlist"
1906 else
1907 rm -f "$ac_nlist"T
1910 # Make sure that we snagged all the symbols we need.
1911 if egrep ' nm_test_var$' "$ac_nlist" >/dev/null; then
1912 if egrep ' nm_test_func$' "$ac_nlist" >/dev/null; then
1913 cat <<EOF > conftest.c
1914 #ifdef __cplusplus
1915 extern "C" {
1916 #endif
1919 # Now generate the symbol file.
1920 eval "$ac_global_symbol_to_cdecl"' < "$ac_nlist" >> conftest.c'
1922 cat <<EOF >> conftest.c
1923 #if defined (__STDC__) && __STDC__
1924 # define lt_ptr_t void *
1925 #else
1926 # define lt_ptr_t char *
1927 # define const
1928 #endif
1930 /* The mapping between symbol names and symbols. */
1931 const struct {
1932 const char *name;
1933 lt_ptr_t address;
1935 lt_preloaded_symbols[] =
1938 sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$ac_nlist" >> conftest.c
1939 cat <<\EOF >> conftest.c
1940 {0, (lt_ptr_t) 0}
1943 #ifdef __cplusplus
1945 #endif
1947 # Now try linking the two files.
1948 mv conftest.$ac_objext conftestm.$ac_objext
1949 ac_save_LIBS="$LIBS"
1950 ac_save_CFLAGS="$CFLAGS"
1951 LIBS="conftestm.$ac_objext"
1952 CFLAGS="$CFLAGS$no_builtin_flag"
1953 if { (eval echo configure:1954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1954 ac_pipe_works=yes
1955 else
1956 echo "configure: failed program was:" >&5
1957 cat conftest.c >&5
1959 LIBS="$ac_save_LIBS"
1960 CFLAGS="$ac_save_CFLAGS"
1961 else
1962 echo "cannot find nm_test_func in $ac_nlist" >&5
1964 else
1965 echo "cannot find nm_test_var in $ac_nlist" >&5
1967 else
1968 echo "cannot run $ac_cv_sys_global_symbol_pipe" >&5
1970 else
1971 echo "$progname: failed program was:" >&5
1972 cat conftest.c >&5
1974 rm -rf conftest*
1976 # Do not use the global_symbol_pipe unless it works.
1977 if test "$ac_pipe_works" = yes; then
1978 if test x"$ac_symprfx" = x"_"; then
1979 ac_cv_sys_symbol_underscore=yes
1980 else
1981 ac_cv_sys_symbol_underscore=no
1983 break
1984 else
1985 ac_cv_sys_global_symbol_pipe=
1987 done
1992 ac_result=yes
1993 if test -z "$ac_cv_sys_global_symbol_pipe"; then
1994 ac_result=no
1996 echo "$ac_t""$ac_result" 1>&6
1998 echo $ac_n "checking for _ prefix in compiled symbols""... $ac_c" 1>&6
1999 echo "configure:2000: checking for _ prefix in compiled symbols" >&5
2000 if eval "test \"`echo '$''{'ac_cv_sys_symbol_underscore'+set}'`\" = set"; then
2001 echo $ac_n "(cached) $ac_c" 1>&6
2002 else
2003 ac_cv_sys_symbol_underscore=no
2004 cat > conftest.$ac_ext <<EOF
2005 void nm_test_func(){}
2006 int main(){nm_test_func;return 0;}
2008 if { (eval echo configure:2009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2009 # Now try to grab the symbols.
2010 ac_nlist=conftest.nm
2011 if { (eval echo configure:2012: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
2012 # See whether the symbols have a leading underscore.
2013 if egrep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
2014 ac_cv_sys_symbol_underscore=yes
2015 else
2016 if egrep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
2018 else
2019 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
2022 else
2023 echo "configure: cannot run $ac_cv_sys_global_symbol_pipe" >&5
2025 else
2026 echo "configure: failed program was:" >&5
2027 cat conftest.c >&5
2029 rm -rf conftest*
2033 echo "$ac_t""$ac_cv_sys_symbol_underscore" 1>&6
2034 USE_SYMBOL_UNDERSCORE=${ac_cv_sys_symbol_underscore=no}
2036 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2037 echo "configure:2038: checking whether ln -s works" >&5
2038 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2039 echo $ac_n "(cached) $ac_c" 1>&6
2040 else
2041 rm -f conftestdata
2042 if ln -s X conftestdata 2>/dev/null
2043 then
2044 rm -f conftestdata
2045 ac_cv_prog_LN_S="ln -s"
2046 else
2047 ac_cv_prog_LN_S=ln
2050 LN_S="$ac_cv_prog_LN_S"
2051 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2052 echo "$ac_t""yes" 1>&6
2053 else
2054 echo "$ac_t""no" 1>&6
2058 # Check for any special flags to pass to ltconfig.
2059 libtool_flags="--cache-file=$cache_file"
2060 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2061 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2062 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2063 test "$lt_dlopen" = yes && libtool_flags="$libtool_flags --enable-dlopen"
2064 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
2065 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2066 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2068 # Some flags need to be propagated to the compiler or linker for good
2069 # libtool support.
2070 case "$host" in
2071 *-*-irix6*)
2072 # Find out which ABI we are using.
2073 echo '#line 2074 "configure"' > conftest.$ac_ext
2074 if { (eval echo configure:2075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2075 case "`/usr/bin/file conftest.o`" in
2076 *32-bit*)
2077 LD="${LD-ld} -32"
2079 *N32*)
2080 LD="${LD-ld} -n32"
2082 *64-bit*)
2083 LD="${LD-ld} -64"
2085 esac
2087 rm -rf conftest*
2090 *-*-sco3.2v5*)
2091 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2092 SAVE_CFLAGS="$CFLAGS"
2093 CFLAGS="$CFLAGS -belf"
2094 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2095 echo "configure:2096: checking whether the C compiler needs -belf" >&5
2096 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2097 echo $ac_n "(cached) $ac_c" 1>&6
2098 else
2099 cat > conftest.$ac_ext <<EOF
2100 #line 2101 "configure"
2101 #include "confdefs.h"
2103 int main() {
2105 ; return 0; }
2107 if { (eval echo configure:2108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2108 rm -rf conftest*
2109 lt_cv_cc_needs_belf=yes
2110 else
2111 echo "configure: failed program was:" >&5
2112 cat conftest.$ac_ext >&5
2113 rm -rf conftest*
2114 lt_cv_cc_needs_belf=no
2116 rm -f conftest*
2119 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2120 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2121 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2122 CFLAGS="$SAVE_CFLAGS"
2126 *-*-cygwin*)
2127 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
2128 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
2129 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2130 echo "configure:2131: checking for $ac_word" >&5
2131 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2132 echo $ac_n "(cached) $ac_c" 1>&6
2133 else
2134 if test -n "$DLLTOOL"; then
2135 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2136 else
2137 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2138 ac_dummy="$PATH"
2139 for ac_dir in $ac_dummy; do
2140 test -z "$ac_dir" && ac_dir=.
2141 if test -f $ac_dir/$ac_word; then
2142 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
2143 break
2145 done
2146 IFS="$ac_save_ifs"
2149 DLLTOOL="$ac_cv_prog_DLLTOOL"
2150 if test -n "$DLLTOOL"; then
2151 echo "$ac_t""$DLLTOOL" 1>&6
2152 else
2153 echo "$ac_t""no" 1>&6
2157 if test -z "$ac_cv_prog_DLLTOOL"; then
2158 if test -n "$ac_tool_prefix"; then
2159 # Extract the first word of "dlltool", so it can be a program name with args.
2160 set dummy dlltool; ac_word=$2
2161 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2162 echo "configure:2163: checking for $ac_word" >&5
2163 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2164 echo $ac_n "(cached) $ac_c" 1>&6
2165 else
2166 if test -n "$DLLTOOL"; then
2167 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2168 else
2169 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2170 ac_dummy="$PATH"
2171 for ac_dir in $ac_dummy; do
2172 test -z "$ac_dir" && ac_dir=.
2173 if test -f $ac_dir/$ac_word; then
2174 ac_cv_prog_DLLTOOL="dlltool"
2175 break
2177 done
2178 IFS="$ac_save_ifs"
2179 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
2182 DLLTOOL="$ac_cv_prog_DLLTOOL"
2183 if test -n "$DLLTOOL"; then
2184 echo "$ac_t""$DLLTOOL" 1>&6
2185 else
2186 echo "$ac_t""no" 1>&6
2189 else
2190 DLLTOOL="false"
2194 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2195 set dummy ${ac_tool_prefix}as; ac_word=$2
2196 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2197 echo "configure:2198: checking for $ac_word" >&5
2198 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2199 echo $ac_n "(cached) $ac_c" 1>&6
2200 else
2201 if test -n "$AS"; then
2202 ac_cv_prog_AS="$AS" # Let the user override the test.
2203 else
2204 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2205 ac_dummy="$PATH"
2206 for ac_dir in $ac_dummy; do
2207 test -z "$ac_dir" && ac_dir=.
2208 if test -f $ac_dir/$ac_word; then
2209 ac_cv_prog_AS="${ac_tool_prefix}as"
2210 break
2212 done
2213 IFS="$ac_save_ifs"
2216 AS="$ac_cv_prog_AS"
2217 if test -n "$AS"; then
2218 echo "$ac_t""$AS" 1>&6
2219 else
2220 echo "$ac_t""no" 1>&6
2224 if test -z "$ac_cv_prog_AS"; then
2225 if test -n "$ac_tool_prefix"; then
2226 # Extract the first word of "as", so it can be a program name with args.
2227 set dummy as; ac_word=$2
2228 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2229 echo "configure:2230: checking for $ac_word" >&5
2230 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2231 echo $ac_n "(cached) $ac_c" 1>&6
2232 else
2233 if test -n "$AS"; then
2234 ac_cv_prog_AS="$AS" # Let the user override the test.
2235 else
2236 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2237 ac_dummy="$PATH"
2238 for ac_dir in $ac_dummy; do
2239 test -z "$ac_dir" && ac_dir=.
2240 if test -f $ac_dir/$ac_word; then
2241 ac_cv_prog_AS="as"
2242 break
2244 done
2245 IFS="$ac_save_ifs"
2246 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
2249 AS="$ac_cv_prog_AS"
2250 if test -n "$AS"; then
2251 echo "$ac_t""$AS" 1>&6
2252 else
2253 echo "$ac_t""no" 1>&6
2256 else
2257 AS="false"
2264 esac
2266 # enable the --disable-libtool-lock switch
2268 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2269 if test "${enable_libtool_lock+set}" = set; then
2270 enableval="$enable_libtool_lock"
2271 need_locks=$enableval
2272 else
2273 need_locks=yes
2277 if test x"$need_locks" = xno; then
2278 libtool_flags="$libtool_flags --disable-lock"
2282 # Save cache, so that ltconfig can load it
2283 cat > confcache <<\EOF
2284 # This file is a shell script that caches the results of configure
2285 # tests run on this system so they can be shared between configure
2286 # scripts and configure runs. It is not useful on other systems.
2287 # If it contains results you don't want to keep, you may remove or edit it.
2289 # By default, configure uses ./config.cache as the cache file,
2290 # creating it if it does not exist already. You can give configure
2291 # the --cache-file=FILE option to use a different cache file; that is
2292 # what configure does when it calls configure scripts in
2293 # subdirectories, so they share the cache.
2294 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2295 # config.status only pays attention to the cache file if you give it the
2296 # --recheck option to rerun configure.
2299 # The following way of writing the cache mishandles newlines in values,
2300 # but we know of no workaround that is simple, portable, and efficient.
2301 # So, don't put newlines in cache variables' values.
2302 # Ultrix sh set writes to stderr and can't be redirected directly,
2303 # and sets the high bit in the cache file unless we assign to the vars.
2304 (set) 2>&1 |
2305 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2306 *ac_space=\ *)
2307 # `set' does not quote correctly, so add quotes (double-quote substitution
2308 # turns \\\\ into \\, and sed turns \\ into \).
2309 sed -n \
2310 -e "s/'/'\\\\''/g" \
2311 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2314 # `set' quotes correctly as required by POSIX, so do not add quotes.
2315 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2317 esac >> confcache
2318 if cmp -s $cache_file confcache; then
2320 else
2321 if test -w $cache_file; then
2322 echo "updating cache $cache_file"
2323 cat confcache > $cache_file
2324 else
2325 echo "not updating unwritable cache $cache_file"
2328 rm -f confcache
2331 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2332 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2333 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
2334 DLLTOOL="$DLLTOOL" AS="$AS" \
2335 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2336 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2337 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2339 # Reload cache, that may have been modified by ltconfig
2340 if test -r "$cache_file"; then
2341 echo "loading cache $cache_file"
2342 . $cache_file
2343 else
2344 echo "creating cache $cache_file"
2345 > $cache_file
2349 # This can be used to rebuild libtool when needed
2350 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
2352 # Always use our own libtool.
2353 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2355 # Redirect the config.log output again, so that the ltconfig log is not
2356 # clobbered by the next message.
2357 exec 5>>./config.log
2360 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
2361 COMPPATH=.
2362 else
2363 COMPPATH=..
2369 if test -d $srcdir/testsuite; then
2370 TESTSUBDIR_TRUE=
2371 TESTSUBDIR_FALSE='#'
2372 else
2373 TESTSUBDIR_TRUE='#'
2374 TESTSUBDIR_FALSE=
2377 # Check whether --enable-fast-character or --disable-fast-character was given.
2378 if test "${enable_fast_character+set}" = set; then
2379 enableval="$enable_fast_character"
2380 # Nothing
2382 else
2383 cat >> confdefs.h <<\EOF
2384 #define COMPACT_CHARACTER 1
2390 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
2391 if test "${enable_getenv_properties+set}" = set; then
2392 enableval="$enable_getenv_properties"
2397 if test -n "$enable_getenv_properties"; then
2398 enable_getenv_properties=${enable_getenv_properties_default-yes}
2400 if test "$enable_getenv_properties" = no; then
2401 cat >> confdefs.h <<\EOF
2402 #define DISABLE_GETENV_PROPERTIES 1
2407 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2408 if test "${enable_libgcj_debug+set}" = set; then
2409 enableval="$enable_libgcj_debug"
2410 if test "$enable_libgcj_debug" = yes; then
2411 cat >> confdefs.h <<\EOF
2412 #define DEBUG 1
2419 # Check whether --enable-interpreter or --disable-interpreter was given.
2420 if test "${enable_interpreter+set}" = set; then
2421 enableval="$enable_interpreter"
2422 if test "$enable_interpreter" = yes; then
2423 cat >> confdefs.h <<\EOF
2424 #define INTERPRETER 1
2431 # Check whether --enable-java-net or --disable-java-net was given.
2432 if test "${enable_java_net+set}" = set; then
2433 enableval="$enable_java_net"
2438 if test -n "$enable_java_net"; then
2439 enable_java_net=${enable_java_net_default-yes}
2441 if test "$enable_java_net" = no; then
2442 cat >> confdefs.h <<\EOF
2443 #define DISABLE_JAVA_NET 1
2448 TARGET_ECOS="no"
2449 # Check whether --with-ecos or --without-ecos was given.
2450 if test "${with_ecos+set}" = set; then
2451 withval="$with_ecos"
2452 TARGET_ECOS="$with_ecos"
2457 case "$TARGET_ECOS" in
2459 FILE_DESCRIPTOR=natFileDescriptorPosix.cc
2460 PROCESS=${PROCESS-Posix}
2463 FILE_DESCRIPTOR=natFileDescriptorEcos.cc
2464 PROCESS=Ecos
2465 cat >> confdefs.h <<\EOF
2466 #define ECOS 1
2470 esac
2472 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2473 echo "configure:2474: checking how to run the C preprocessor" >&5
2474 # On Suns, sometimes $CPP names a directory.
2475 if test -n "$CPP" && test -d "$CPP"; then
2476 CPP=
2478 if test -z "$CPP"; then
2479 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2480 echo $ac_n "(cached) $ac_c" 1>&6
2481 else
2482 # This must be in double quotes, not single quotes, because CPP may get
2483 # substituted into the Makefile and "${CC-cc}" will confuse make.
2484 CPP="${CC-cc} -E"
2485 # On the NeXT, cc -E runs the code through the compiler's parser,
2486 # not just through cpp.
2487 cat > conftest.$ac_ext <<EOF
2488 #line 2489 "configure"
2489 #include "confdefs.h"
2490 #include <assert.h>
2491 Syntax Error
2493 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2494 { (eval echo configure:2495: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2495 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2496 if test -z "$ac_err"; then
2498 else
2499 echo "$ac_err" >&5
2500 echo "configure: failed program was:" >&5
2501 cat conftest.$ac_ext >&5
2502 rm -rf conftest*
2503 CPP="${CC-cc} -E -traditional-cpp"
2504 cat > conftest.$ac_ext <<EOF
2505 #line 2506 "configure"
2506 #include "confdefs.h"
2507 #include <assert.h>
2508 Syntax Error
2510 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2511 { (eval echo configure:2512: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2512 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2513 if test -z "$ac_err"; then
2515 else
2516 echo "$ac_err" >&5
2517 echo "configure: failed program was:" >&5
2518 cat conftest.$ac_ext >&5
2519 rm -rf conftest*
2520 CPP="${CC-cc} -nologo -E"
2521 cat > conftest.$ac_ext <<EOF
2522 #line 2523 "configure"
2523 #include "confdefs.h"
2524 #include <assert.h>
2525 Syntax Error
2527 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2528 { (eval echo configure:2529: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2529 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2530 if test -z "$ac_err"; then
2532 else
2533 echo "$ac_err" >&5
2534 echo "configure: failed program was:" >&5
2535 cat conftest.$ac_ext >&5
2536 rm -rf conftest*
2537 CPP=/lib/cpp
2539 rm -f conftest*
2541 rm -f conftest*
2543 rm -f conftest*
2544 ac_cv_prog_CPP="$CPP"
2546 CPP="$ac_cv_prog_CPP"
2547 else
2548 ac_cv_prog_CPP="$CPP"
2550 echo "$ac_t""$CPP" 1>&6
2552 cat > conftest.$ac_ext <<EOF
2553 #line 2554 "configure"
2554 #include "confdefs.h"
2555 #include <stdint.h>
2557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2558 egrep "uint32_t" >/dev/null 2>&1; then
2559 rm -rf conftest*
2560 cat >> confdefs.h <<\EOF
2561 #define HAVE_INT32_DEFINED 1
2565 rm -f conftest*
2567 cat > conftest.$ac_ext <<EOF
2568 #line 2569 "configure"
2569 #include "confdefs.h"
2570 #include <inttypes.h>
2572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2573 egrep "uint32_t" >/dev/null 2>&1; then
2574 rm -rf conftest*
2575 cat >> confdefs.h <<\EOF
2576 #define HAVE_INT32_DEFINED 1
2580 rm -f conftest*
2582 cat > conftest.$ac_ext <<EOF
2583 #line 2584 "configure"
2584 #include "confdefs.h"
2585 #include <sys/types.h>
2587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2588 egrep "u_int32_t" >/dev/null 2>&1; then
2589 rm -rf conftest*
2590 cat >> confdefs.h <<\EOF
2591 #define HAVE_BSD_INT32_DEFINED 1
2595 rm -f conftest*
2597 cat > conftest.$ac_ext <<EOF
2598 #line 2599 "configure"
2599 #include "confdefs.h"
2600 #include <sys/config.h>
2602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2603 egrep "u_int32_t" >/dev/null 2>&1; then
2604 rm -rf conftest*
2605 cat >> confdefs.h <<\EOF
2606 #define HAVE_BSD_INT32_DEFINED 1
2610 rm -f conftest*
2614 cat > conftest.$ac_ext <<EOF
2615 #line 2616 "configure"
2616 #include "confdefs.h"
2617 #include <time.h>
2619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2620 egrep "mktime" >/dev/null 2>&1; then
2621 rm -rf conftest*
2622 cat >> confdefs.h <<\EOF
2623 #define HAVE_MKTIME 1
2627 rm -f conftest*
2629 cat > conftest.$ac_ext <<EOF
2630 #line 2631 "configure"
2631 #include "confdefs.h"
2632 #include <time.h>
2634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2635 egrep "localtime" >/dev/null 2>&1; then
2636 rm -rf conftest*
2637 cat >> confdefs.h <<\EOF
2638 #define HAVE_LOCALTIME 1
2642 rm -f conftest*
2645 test -d java || mkdir java
2646 test -d java/io || mkdir java/io
2649 test -d java/lang || mkdir java/lang
2653 SYSTEMSPEC=
2656 # Check whether --with-system-zlib or --without-system-zlib was given.
2657 if test "${with_system_zlib+set}" = set; then
2658 withval="$with_system_zlib"
2662 ZLIBSPEC=
2665 libsubdir=.libs
2667 echo $ac_n "checking for garbage collector to use""... $ac_c" 1>&6
2668 echo "configure:2669: checking for garbage collector to use" >&5
2669 # Check whether --enable-java-gc or --disable-java-gc was given.
2670 if test "${enable_java_gc+set}" = set; then
2671 enableval="$enable_java_gc"
2673 GC=$enableval
2674 else
2675 GC=boehm
2678 GCLIBS=
2679 GCINCS=
2680 GCDEPS=
2681 GCOBJS=
2682 GCSPEC=
2683 case "$GC" in
2684 boehm)
2685 echo "$ac_t""boehm" 1>&6
2686 GCDEPS='$(top_builddir)/../boehm-gc/libgcjgc.la'
2687 # We include the path to the boehm-gc build directory.
2688 # See Makefile.am to understand why.
2689 GCLIBS="$GCDEPS -L\$(here)/../boehm-gc/$libsubdir"
2690 GCINCS='-I$(top_srcdir)/../boehm-gc -I$(top_builddir)/../boehm-gc'
2691 GCSPEC='-lgcjgc'
2692 GCINCS="$GCINCS `cat ../boehm-gc/boehm-cflags`"
2693 GCOBJS=boehm.lo
2694 GCHDR=boehm-gc.h
2695 cat >> confdefs.h <<\EOF
2696 #define HAVE_BOEHM_GC 1
2701 echo "$ac_t""none" 1>&6
2702 GCOBJS=nogc.lo
2703 GCHDR=no-gc.h
2706 { echo "configure: error: unrecognized collector \"$GC\"" 1>&2; exit 1; }
2708 esac
2717 echo $ac_n "checking for threads package to use""... $ac_c" 1>&6
2718 echo "configure:2719: checking for threads package to use" >&5
2719 # Check whether --enable-threads or --disable-threads was given.
2720 if test "${enable_threads+set}" = set; then
2721 enableval="$enable_threads"
2722 THREADS=$enableval
2723 else
2724 THREADS=no
2728 if test "$THREADS" = yes; then
2729 case "$host" in
2730 *-*-vxworks*)
2731 THREADS=vxworks
2733 *-*-linux*)
2734 # FIXME: this isn't correct in all cases.
2735 THREADS=posix
2737 *-*-win*)
2738 THREADS=win32
2740 *-*-irix*)
2741 # FIXME: for now, choose POSIX, because we implement that.
2742 # Later, choose irix threads.
2743 THREADS=posix
2745 *-*-solaris*)
2746 # FIXME: for now, choose POSIX, because we implement that.
2747 # Later, choose solaris threads.
2748 THREADS=posix
2751 # For now.
2752 THREADS=none
2754 esac
2757 case "$THREADS" in
2758 no | none | single)
2759 THREADS=none
2761 posix | pthreads)
2762 THREADS=posix
2763 case "$host" in
2764 *-*-linux*)
2765 cat >> confdefs.h <<\EOF
2766 #define LINUX_THREADS 1
2770 esac
2774 decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
2775 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
2778 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
2780 esac
2781 echo "$ac_t""$THREADS" 1>&6
2783 THREADLIBS=
2784 THREADINCS=
2785 THREADDEPS=
2786 THREADOBJS=
2787 THREADH=
2788 THREADSPEC=
2789 case "$THREADS" in
2790 posix)
2791 THREADLIBS=-lpthread
2792 THREADSPEC=-lpthread
2793 THREADOBJS=posix-threads.lo
2794 THREADH=posix-threads.h
2795 # MIT pthreads doesn't seem to have the mutexattr functions.
2796 # But for now we don't check for it. We just assume you aren't
2797 # using MIT pthreads.
2798 cat >> confdefs.h <<\EOF
2799 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
2805 THREADDEPS='$(top_builddir)/../qthreads/libgcjcoop.la'
2806 # We include the path to the qthreads build directory.
2807 # See Makefile.am to understand why.
2808 THREADLIBS="$THREADDEPS -L\$(here)/../qthreads/$libsubdir"
2809 THREADSPEC='-lgcjcoop'
2810 THREADOBJS=quick-threads.lo
2811 THREADINCS='-I$(top_srcdir)/../qthreads'
2812 THREADH=quick-threads.h
2815 none)
2816 THREADOBJS=no-threads.lo
2817 THREADH=no-threads.h
2819 esac
2829 if test "$GCC" = yes; then
2830 USING_GCC_TRUE=
2831 USING_GCC_FALSE='#'
2832 else
2833 USING_GCC_TRUE='#'
2834 USING_GCC_FALSE=
2837 CANADIAN=no
2838 NULL_TARGET=no
2839 NATIVE=yes
2841 # Find eh-common.h and support headers. If we're in the tree with
2842 # gcc, then look there. Otherwise look in compat-include. If all else
2843 # fails, just hope the user has set things up somehow.
2844 if test -r $srcdir/../gcc/eh-common.h; then
2845 EH_COMMON_INCLUDE='-I$(top_srcdir)/../gcc -I$(top_srcdir)/../include'
2846 else
2847 if test -d $srcdir/../compat-include; then
2848 EH_COMMON_INCLUDE='-I$(top_srcdir)/../compat-include'
2849 else
2850 EH_COMMON_INCLUDE=
2854 if test -n "${with_cross_host}"; then
2855 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
2856 # may not work correctly, because the compiler may not be able to
2857 # link executables.
2859 # We assume newlib. This lets us hard-code the functions we know
2860 # we'll have.
2861 cat >> confdefs.h <<\EOF
2862 #define HAVE_MEMMOVE 1
2865 cat >> confdefs.h <<\EOF
2866 #define HAVE_MEMCPY 1
2869 cat >> confdefs.h <<\EOF
2870 #define HAVE_STRERROR 1
2873 cat >> confdefs.h <<\EOF
2874 #define HAVE_GMTIME_R 1
2877 cat >> confdefs.h <<\EOF
2878 #define HAVE_LOCALTIME_R 1
2881 cat >> confdefs.h <<\EOF
2882 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
2885 cat >> confdefs.h <<\EOF
2886 #define HAVE_ALLOCA 1
2890 ZLIBSPEC=-lzgcj
2892 # If Canadian cross, then don't pick up tools from the build
2893 # directory.
2894 if test "$build" != "$with_cross_host"; then
2895 CANADIAN=yes
2896 EH_COMMON_INCLUDE=
2897 GCJ="${target_alias}-gcj"
2898 else
2899 GCJ=
2901 NATIVE=no
2902 else
2903 for ac_func in strerror ioctl select fstat open fsync sleep
2905 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2906 echo "configure:2907: checking for $ac_func" >&5
2907 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2908 echo $ac_n "(cached) $ac_c" 1>&6
2909 else
2910 cat > conftest.$ac_ext <<EOF
2911 #line 2912 "configure"
2912 #include "confdefs.h"
2913 /* System header to define __stub macros and hopefully few prototypes,
2914 which can conflict with char $ac_func(); below. */
2915 #include <assert.h>
2916 /* Override any gcc2 internal prototype to avoid an error. */
2917 /* We use char because int might match the return type of a gcc2
2918 builtin and then its argument prototype would still apply. */
2919 char $ac_func();
2921 int main() {
2923 /* The GNU C library defines this for functions which it implements
2924 to always fail with ENOSYS. Some functions are actually named
2925 something starting with __ and the normal name is an alias. */
2926 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2927 choke me
2928 #else
2929 $ac_func();
2930 #endif
2932 ; return 0; }
2934 if { (eval echo configure:2935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2935 rm -rf conftest*
2936 eval "ac_cv_func_$ac_func=yes"
2937 else
2938 echo "configure: failed program was:" >&5
2939 cat conftest.$ac_ext >&5
2940 rm -rf conftest*
2941 eval "ac_cv_func_$ac_func=no"
2943 rm -f conftest*
2946 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2947 echo "$ac_t""yes" 1>&6
2948 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2949 cat >> confdefs.h <<EOF
2950 #define $ac_tr_func 1
2953 else
2954 echo "$ac_t""no" 1>&6
2956 done
2958 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r
2960 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2961 echo "configure:2962: checking for $ac_func" >&5
2962 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2963 echo $ac_n "(cached) $ac_c" 1>&6
2964 else
2965 cat > conftest.$ac_ext <<EOF
2966 #line 2967 "configure"
2967 #include "confdefs.h"
2968 /* System header to define __stub macros and hopefully few prototypes,
2969 which can conflict with char $ac_func(); below. */
2970 #include <assert.h>
2971 /* Override any gcc2 internal prototype to avoid an error. */
2972 /* We use char because int might match the return type of a gcc2
2973 builtin and then its argument prototype would still apply. */
2974 char $ac_func();
2976 int main() {
2978 /* The GNU C library defines this for functions which it implements
2979 to always fail with ENOSYS. Some functions are actually named
2980 something starting with __ and the normal name is an alias. */
2981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2982 choke me
2983 #else
2984 $ac_func();
2985 #endif
2987 ; return 0; }
2989 if { (eval echo configure:2990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2990 rm -rf conftest*
2991 eval "ac_cv_func_$ac_func=yes"
2992 else
2993 echo "configure: failed program was:" >&5
2994 cat conftest.$ac_ext >&5
2995 rm -rf conftest*
2996 eval "ac_cv_func_$ac_func=no"
2998 rm -f conftest*
3001 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3002 echo "$ac_t""yes" 1>&6
3003 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3004 cat >> confdefs.h <<EOF
3005 #define $ac_tr_func 1
3008 else
3009 echo "$ac_t""no" 1>&6
3011 done
3013 for ac_func in access stat mkdir rename rmdir unlink realpath
3015 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3016 echo "configure:3017: checking for $ac_func" >&5
3017 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3018 echo $ac_n "(cached) $ac_c" 1>&6
3019 else
3020 cat > conftest.$ac_ext <<EOF
3021 #line 3022 "configure"
3022 #include "confdefs.h"
3023 /* System header to define __stub macros and hopefully few prototypes,
3024 which can conflict with char $ac_func(); below. */
3025 #include <assert.h>
3026 /* Override any gcc2 internal prototype to avoid an error. */
3027 /* We use char because int might match the return type of a gcc2
3028 builtin and then its argument prototype would still apply. */
3029 char $ac_func();
3031 int main() {
3033 /* The GNU C library defines this for functions which it implements
3034 to always fail with ENOSYS. Some functions are actually named
3035 something starting with __ and the normal name is an alias. */
3036 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3037 choke me
3038 #else
3039 $ac_func();
3040 #endif
3042 ; return 0; }
3044 if { (eval echo configure:3045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3045 rm -rf conftest*
3046 eval "ac_cv_func_$ac_func=yes"
3047 else
3048 echo "configure: failed program was:" >&5
3049 cat conftest.$ac_ext >&5
3050 rm -rf conftest*
3051 eval "ac_cv_func_$ac_func=no"
3053 rm -f conftest*
3056 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3057 echo "$ac_t""yes" 1>&6
3058 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3059 cat >> confdefs.h <<EOF
3060 #define $ac_tr_func 1
3063 else
3064 echo "$ac_t""no" 1>&6
3066 done
3068 for ac_func in inet_aton inet_addr
3070 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3071 echo "configure:3072: checking for $ac_func" >&5
3072 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3073 echo $ac_n "(cached) $ac_c" 1>&6
3074 else
3075 cat > conftest.$ac_ext <<EOF
3076 #line 3077 "configure"
3077 #include "confdefs.h"
3078 /* System header to define __stub macros and hopefully few prototypes,
3079 which can conflict with char $ac_func(); below. */
3080 #include <assert.h>
3081 /* Override any gcc2 internal prototype to avoid an error. */
3082 /* We use char because int might match the return type of a gcc2
3083 builtin and then its argument prototype would still apply. */
3084 char $ac_func();
3086 int main() {
3088 /* The GNU C library defines this for functions which it implements
3089 to always fail with ENOSYS. Some functions are actually named
3090 something starting with __ and the normal name is an alias. */
3091 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3092 choke me
3093 #else
3094 $ac_func();
3095 #endif
3097 ; return 0; }
3099 if { (eval echo configure:3100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3100 rm -rf conftest*
3101 eval "ac_cv_func_$ac_func=yes"
3102 else
3103 echo "configure: failed program was:" >&5
3104 cat conftest.$ac_ext >&5
3105 rm -rf conftest*
3106 eval "ac_cv_func_$ac_func=no"
3108 rm -f conftest*
3111 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3112 echo "$ac_t""yes" 1>&6
3113 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3114 cat >> confdefs.h <<EOF
3115 #define $ac_tr_func 1
3117 break
3118 else
3119 echo "$ac_t""no" 1>&6
3121 done
3123 for ac_func in inet_pton uname inet_ntoa
3125 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3126 echo "configure:3127: checking for $ac_func" >&5
3127 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3128 echo $ac_n "(cached) $ac_c" 1>&6
3129 else
3130 cat > conftest.$ac_ext <<EOF
3131 #line 3132 "configure"
3132 #include "confdefs.h"
3133 /* System header to define __stub macros and hopefully few prototypes,
3134 which can conflict with char $ac_func(); below. */
3135 #include <assert.h>
3136 /* Override any gcc2 internal prototype to avoid an error. */
3137 /* We use char because int might match the return type of a gcc2
3138 builtin and then its argument prototype would still apply. */
3139 char $ac_func();
3141 int main() {
3143 /* The GNU C library defines this for functions which it implements
3144 to always fail with ENOSYS. Some functions are actually named
3145 something starting with __ and the normal name is an alias. */
3146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3147 choke me
3148 #else
3149 $ac_func();
3150 #endif
3152 ; return 0; }
3154 if { (eval echo configure:3155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3155 rm -rf conftest*
3156 eval "ac_cv_func_$ac_func=yes"
3157 else
3158 echo "configure: failed program was:" >&5
3159 cat conftest.$ac_ext >&5
3160 rm -rf conftest*
3161 eval "ac_cv_func_$ac_func=no"
3163 rm -f conftest*
3166 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3167 echo "$ac_t""yes" 1>&6
3168 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3169 cat >> confdefs.h <<EOF
3170 #define $ac_tr_func 1
3173 else
3174 echo "$ac_t""no" 1>&6
3176 done
3179 for ac_func in gethostbyname_r
3181 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3182 echo "configure:3183: checking for $ac_func" >&5
3183 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3184 echo $ac_n "(cached) $ac_c" 1>&6
3185 else
3186 cat > conftest.$ac_ext <<EOF
3187 #line 3188 "configure"
3188 #include "confdefs.h"
3189 /* System header to define __stub macros and hopefully few prototypes,
3190 which can conflict with char $ac_func(); below. */
3191 #include <assert.h>
3192 /* Override any gcc2 internal prototype to avoid an error. */
3193 /* We use char because int might match the return type of a gcc2
3194 builtin and then its argument prototype would still apply. */
3195 char $ac_func();
3197 int main() {
3199 /* The GNU C library defines this for functions which it implements
3200 to always fail with ENOSYS. Some functions are actually named
3201 something starting with __ and the normal name is an alias. */
3202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3203 choke me
3204 #else
3205 $ac_func();
3206 #endif
3208 ; return 0; }
3210 if { (eval echo configure:3211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3211 rm -rf conftest*
3212 eval "ac_cv_func_$ac_func=yes"
3213 else
3214 echo "configure: failed program was:" >&5
3215 cat conftest.$ac_ext >&5
3216 rm -rf conftest*
3217 eval "ac_cv_func_$ac_func=no"
3219 rm -f conftest*
3222 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3223 echo "$ac_t""yes" 1>&6
3224 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3225 cat >> confdefs.h <<EOF
3226 #define $ac_tr_func 1
3229 cat >> confdefs.h <<\EOF
3230 #define HAVE_GETHOSTBYNAME_R 1
3233 # There are two different kinds of gethostbyname_r.
3234 # We look for the one that returns `int'.
3235 # Hopefully this check is robust enough.
3236 cat > conftest.$ac_ext <<EOF
3237 #line 3238 "configure"
3238 #include "confdefs.h"
3239 #include <netdb.h>
3241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3242 egrep "int.*gethostbyname_r" >/dev/null 2>&1; then
3243 rm -rf conftest*
3245 cat >> confdefs.h <<\EOF
3246 #define GETHOSTBYNAME_R_RETURNS_INT 1
3250 rm -f conftest*
3253 case " $GCINCS " in
3254 *" -D_REENTRANT "*) ;;
3256 echo $ac_n "checking whether gethostbyname_r declaration requires -D_REENTRANT""... $ac_c" 1>&6
3257 echo "configure:3258: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
3258 if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
3259 echo $ac_n "(cached) $ac_c" 1>&6
3260 else
3262 ac_ext=C
3263 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3264 ac_cpp='$CXXCPP $CPPFLAGS'
3265 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3266 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3267 cross_compiling=$ac_cv_prog_cxx_cross
3269 cat > conftest.$ac_ext <<EOF
3270 #line 3271 "configure"
3271 #include "confdefs.h"
3272 #include <netdb.h>
3273 int main() {
3274 gethostbyname_r("", 0, 0);
3275 ; return 0; }
3277 if { (eval echo configure:3278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3278 rm -rf conftest*
3279 libjava_cv_gethostbyname_r_needs_reentrant=no
3280 else
3281 echo "configure: failed program was:" >&5
3282 cat conftest.$ac_ext >&5
3283 rm -rf conftest*
3284 CPPFLAGS_SAVE="$CPPFLAGS"
3285 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
3286 cat > conftest.$ac_ext <<EOF
3287 #line 3288 "configure"
3288 #include "confdefs.h"
3289 #include <netdb.h>
3290 int main() {
3291 gethostbyname_r("", 0, 0);
3292 ; return 0; }
3294 if { (eval echo configure:3295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3295 rm -rf conftest*
3296 libjava_cv_gethostbyname_r_needs_reentrant=yes
3297 else
3298 echo "configure: failed program was:" >&5
3299 cat conftest.$ac_ext >&5
3300 rm -rf conftest*
3301 libjava_cv_gethostbyname_r_needs_reentrant=fail
3303 rm -f conftest*
3304 CPPFLAGS="$CPPFLAGS_SAVE"
3307 rm -f conftest*
3308 ac_ext=c
3309 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3310 ac_cpp='$CPP $CPPFLAGS'
3311 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3312 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3313 cross_compiling=$ac_cv_prog_cc_cross
3318 echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
3319 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
3320 cat >> confdefs.h <<\EOF
3321 #define GETHOSTBYNAME_R_NEEDS_REENTRANT 1
3326 esac
3328 echo $ac_n "checking for struct hostent_data""... $ac_c" 1>&6
3329 echo "configure:3330: checking for struct hostent_data" >&5
3330 if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
3331 echo $ac_n "(cached) $ac_c" 1>&6
3332 else
3333 cat > conftest.$ac_ext <<EOF
3334 #line 3335 "configure"
3335 #include "confdefs.h"
3337 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
3338 # define _REENTRANT 1
3339 #endif
3340 #include <netdb.h>
3341 int main() {
3342 struct hostent_data data;
3343 ; return 0; }
3345 if { (eval echo configure:3346: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3346 rm -rf conftest*
3347 libjava_cv_struct_hostent_data=yes
3348 else
3349 echo "configure: failed program was:" >&5
3350 cat conftest.$ac_ext >&5
3351 rm -rf conftest*
3352 libjava_cv_struct_hostent_data=no
3354 rm -f conftest*
3357 echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
3358 if test "x$libjava_cv_struct_hostent_data" = xyes; then
3359 cat >> confdefs.h <<\EOF
3360 #define HAVE_STRUCT_HOSTENT_DATA 1
3365 else
3366 echo "$ac_t""no" 1>&6
3368 done
3371 for ac_func in gethostbyaddr_r
3373 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3374 echo "configure:3375: checking for $ac_func" >&5
3375 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3376 echo $ac_n "(cached) $ac_c" 1>&6
3377 else
3378 cat > conftest.$ac_ext <<EOF
3379 #line 3380 "configure"
3380 #include "confdefs.h"
3381 /* System header to define __stub macros and hopefully few prototypes,
3382 which can conflict with char $ac_func(); below. */
3383 #include <assert.h>
3384 /* Override any gcc2 internal prototype to avoid an error. */
3385 /* We use char because int might match the return type of a gcc2
3386 builtin and then its argument prototype would still apply. */
3387 char $ac_func();
3389 int main() {
3391 /* The GNU C library defines this for functions which it implements
3392 to always fail with ENOSYS. Some functions are actually named
3393 something starting with __ and the normal name is an alias. */
3394 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3395 choke me
3396 #else
3397 $ac_func();
3398 #endif
3400 ; return 0; }
3402 if { (eval echo configure:3403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3403 rm -rf conftest*
3404 eval "ac_cv_func_$ac_func=yes"
3405 else
3406 echo "configure: failed program was:" >&5
3407 cat conftest.$ac_ext >&5
3408 rm -rf conftest*
3409 eval "ac_cv_func_$ac_func=no"
3411 rm -f conftest*
3414 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3415 echo "$ac_t""yes" 1>&6
3416 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3417 cat >> confdefs.h <<EOF
3418 #define $ac_tr_func 1
3421 cat >> confdefs.h <<\EOF
3422 #define HAVE_GETHOSTBYADDR_R 1
3425 # There are two different kinds of gethostbyaddr_r.
3426 # We look for the one that returns `int'.
3427 # Hopefully this check is robust enough.
3428 cat > conftest.$ac_ext <<EOF
3429 #line 3430 "configure"
3430 #include "confdefs.h"
3431 #include <netdb.h>
3433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3434 egrep "int.*gethostbyaddr_r" >/dev/null 2>&1; then
3435 rm -rf conftest*
3437 cat >> confdefs.h <<\EOF
3438 #define GETHOSTBYADDR_R_RETURNS_INT 1
3442 rm -f conftest*
3444 else
3445 echo "$ac_t""no" 1>&6
3447 done
3450 for ac_func in gethostname
3452 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3453 echo "configure:3454: checking for $ac_func" >&5
3454 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3455 echo $ac_n "(cached) $ac_c" 1>&6
3456 else
3457 cat > conftest.$ac_ext <<EOF
3458 #line 3459 "configure"
3459 #include "confdefs.h"
3460 /* System header to define __stub macros and hopefully few prototypes,
3461 which can conflict with char $ac_func(); below. */
3462 #include <assert.h>
3463 /* Override any gcc2 internal prototype to avoid an error. */
3464 /* We use char because int might match the return type of a gcc2
3465 builtin and then its argument prototype would still apply. */
3466 char $ac_func();
3468 int main() {
3470 /* The GNU C library defines this for functions which it implements
3471 to always fail with ENOSYS. Some functions are actually named
3472 something starting with __ and the normal name is an alias. */
3473 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3474 choke me
3475 #else
3476 $ac_func();
3477 #endif
3479 ; return 0; }
3481 if { (eval echo configure:3482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3482 rm -rf conftest*
3483 eval "ac_cv_func_$ac_func=yes"
3484 else
3485 echo "configure: failed program was:" >&5
3486 cat conftest.$ac_ext >&5
3487 rm -rf conftest*
3488 eval "ac_cv_func_$ac_func=no"
3490 rm -f conftest*
3493 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3494 echo "$ac_t""yes" 1>&6
3495 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3496 cat >> confdefs.h <<EOF
3497 #define $ac_tr_func 1
3500 cat >> confdefs.h <<\EOF
3501 #define HAVE_GETHOSTNAME 1
3504 cat > conftest.$ac_ext <<EOF
3505 #line 3506 "configure"
3506 #include "confdefs.h"
3507 #include <unistd.h>
3509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3510 egrep "gethostname" >/dev/null 2>&1; then
3511 rm -rf conftest*
3513 cat >> confdefs.h <<\EOF
3514 #define HAVE_GETHOSTNAME_DECL 1
3518 rm -f conftest*
3520 else
3521 echo "$ac_t""no" 1>&6
3523 done
3526 # Look for these functions in the thread library, but only bother
3527 # if using POSIX threads.
3528 if test "$THREADS" = posix; then
3529 save_LIBS="$LIBS"
3530 LIBS="$LIBS $THREADLIBS"
3531 # Some POSIX thread systems don't have pthread_mutexattr_settype.
3532 # E.g., Solaris.
3533 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
3535 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3536 echo "configure:3537: checking for $ac_func" >&5
3537 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3538 echo $ac_n "(cached) $ac_c" 1>&6
3539 else
3540 cat > conftest.$ac_ext <<EOF
3541 #line 3542 "configure"
3542 #include "confdefs.h"
3543 /* System header to define __stub macros and hopefully few prototypes,
3544 which can conflict with char $ac_func(); below. */
3545 #include <assert.h>
3546 /* Override any gcc2 internal prototype to avoid an error. */
3547 /* We use char because int might match the return type of a gcc2
3548 builtin and then its argument prototype would still apply. */
3549 char $ac_func();
3551 int main() {
3553 /* The GNU C library defines this for functions which it implements
3554 to always fail with ENOSYS. Some functions are actually named
3555 something starting with __ and the normal name is an alias. */
3556 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3557 choke me
3558 #else
3559 $ac_func();
3560 #endif
3562 ; return 0; }
3564 if { (eval echo configure:3565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3565 rm -rf conftest*
3566 eval "ac_cv_func_$ac_func=yes"
3567 else
3568 echo "configure: failed program was:" >&5
3569 cat conftest.$ac_ext >&5
3570 rm -rf conftest*
3571 eval "ac_cv_func_$ac_func=no"
3573 rm -f conftest*
3576 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3577 echo "$ac_t""yes" 1>&6
3578 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3579 cat >> confdefs.h <<EOF
3580 #define $ac_tr_func 1
3583 else
3584 echo "$ac_t""no" 1>&6
3586 done
3589 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
3590 # Solaris 7 the name librt is preferred.
3591 for ac_func in sched_yield
3593 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3594 echo "configure:3595: checking for $ac_func" >&5
3595 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3596 echo $ac_n "(cached) $ac_c" 1>&6
3597 else
3598 cat > conftest.$ac_ext <<EOF
3599 #line 3600 "configure"
3600 #include "confdefs.h"
3601 /* System header to define __stub macros and hopefully few prototypes,
3602 which can conflict with char $ac_func(); below. */
3603 #include <assert.h>
3604 /* Override any gcc2 internal prototype to avoid an error. */
3605 /* We use char because int might match the return type of a gcc2
3606 builtin and then its argument prototype would still apply. */
3607 char $ac_func();
3609 int main() {
3611 /* The GNU C library defines this for functions which it implements
3612 to always fail with ENOSYS. Some functions are actually named
3613 something starting with __ and the normal name is an alias. */
3614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3615 choke me
3616 #else
3617 $ac_func();
3618 #endif
3620 ; return 0; }
3622 if { (eval echo configure:3623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3623 rm -rf conftest*
3624 eval "ac_cv_func_$ac_func=yes"
3625 else
3626 echo "configure: failed program was:" >&5
3627 cat conftest.$ac_ext >&5
3628 rm -rf conftest*
3629 eval "ac_cv_func_$ac_func=no"
3631 rm -f conftest*
3634 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3635 echo "$ac_t""yes" 1>&6
3636 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3637 cat >> confdefs.h <<EOF
3638 #define $ac_tr_func 1
3641 else
3642 echo "$ac_t""no" 1>&6
3643 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
3644 echo "configure:3645: checking for sched_yield in -lrt" >&5
3645 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
3646 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3647 echo $ac_n "(cached) $ac_c" 1>&6
3648 else
3649 ac_save_LIBS="$LIBS"
3650 LIBS="-lrt $LIBS"
3651 cat > conftest.$ac_ext <<EOF
3652 #line 3653 "configure"
3653 #include "confdefs.h"
3654 /* Override any gcc2 internal prototype to avoid an error. */
3655 /* We use char because int might match the return type of a gcc2
3656 builtin and then its argument prototype would still apply. */
3657 char sched_yield();
3659 int main() {
3660 sched_yield()
3661 ; return 0; }
3663 if { (eval echo configure:3664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3664 rm -rf conftest*
3665 eval "ac_cv_lib_$ac_lib_var=yes"
3666 else
3667 echo "configure: failed program was:" >&5
3668 cat conftest.$ac_ext >&5
3669 rm -rf conftest*
3670 eval "ac_cv_lib_$ac_lib_var=no"
3672 rm -f conftest*
3673 LIBS="$ac_save_LIBS"
3676 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3677 echo "$ac_t""yes" 1>&6
3679 cat >> confdefs.h <<\EOF
3680 #define HAVE_SCHED_YIELD 1
3683 THREADLIBS="$THREADLIBS -lrt"
3684 THREADSPEC="$THREADSPEC -lrt"
3685 else
3686 echo "$ac_t""no" 1>&6
3688 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
3689 echo "configure:3690: checking for sched_yield in -lposix4" >&5
3690 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
3691 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3692 echo $ac_n "(cached) $ac_c" 1>&6
3693 else
3694 ac_save_LIBS="$LIBS"
3695 LIBS="-lposix4 $LIBS"
3696 cat > conftest.$ac_ext <<EOF
3697 #line 3698 "configure"
3698 #include "confdefs.h"
3699 /* Override any gcc2 internal prototype to avoid an error. */
3700 /* We use char because int might match the return type of a gcc2
3701 builtin and then its argument prototype would still apply. */
3702 char sched_yield();
3704 int main() {
3705 sched_yield()
3706 ; return 0; }
3708 if { (eval echo configure:3709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3709 rm -rf conftest*
3710 eval "ac_cv_lib_$ac_lib_var=yes"
3711 else
3712 echo "configure: failed program was:" >&5
3713 cat conftest.$ac_ext >&5
3714 rm -rf conftest*
3715 eval "ac_cv_lib_$ac_lib_var=no"
3717 rm -f conftest*
3718 LIBS="$ac_save_LIBS"
3721 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3722 echo "$ac_t""yes" 1>&6
3724 cat >> confdefs.h <<\EOF
3725 #define HAVE_SCHED_YIELD 1
3728 THREADLIBS="$THREADLIBS -lposix4"
3729 THREADSPEC="$THREADSPEC -lposix4"
3730 else
3731 echo "$ac_t""no" 1>&6
3737 done
3739 LIBS="$save_LIBS"
3741 # We can save a little space at runtime if the mutex has m_count
3742 # or __m_count. This is a nice hack for Linux.
3743 cat > conftest.$ac_ext <<EOF
3744 #line 3745 "configure"
3745 #include "confdefs.h"
3746 #include <pthread.h>
3747 int main() {
3749 extern pthread_mutex_t *mutex; int q = mutex->m_count;
3751 ; return 0; }
3753 if { (eval echo configure:3754: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3754 rm -rf conftest*
3755 cat >> confdefs.h <<\EOF
3756 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
3759 else
3760 echo "configure: failed program was:" >&5
3761 cat conftest.$ac_ext >&5
3762 rm -rf conftest*
3764 cat > conftest.$ac_ext <<EOF
3765 #line 3766 "configure"
3766 #include "confdefs.h"
3767 #include <pthread.h>
3768 int main() {
3770 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
3772 ; return 0; }
3774 if { (eval echo configure:3775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3775 rm -rf conftest*
3776 cat >> confdefs.h <<\EOF
3777 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
3780 else
3781 echo "configure: failed program was:" >&5
3782 cat conftest.$ac_ext >&5
3784 rm -f conftest*
3786 rm -f conftest*
3789 # We require a way to get the time.
3790 time_found=no
3791 for ac_func in gettimeofday time ftime
3793 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3794 echo "configure:3795: checking for $ac_func" >&5
3795 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3796 echo $ac_n "(cached) $ac_c" 1>&6
3797 else
3798 cat > conftest.$ac_ext <<EOF
3799 #line 3800 "configure"
3800 #include "confdefs.h"
3801 /* System header to define __stub macros and hopefully few prototypes,
3802 which can conflict with char $ac_func(); below. */
3803 #include <assert.h>
3804 /* Override any gcc2 internal prototype to avoid an error. */
3805 /* We use char because int might match the return type of a gcc2
3806 builtin and then its argument prototype would still apply. */
3807 char $ac_func();
3809 int main() {
3811 /* The GNU C library defines this for functions which it implements
3812 to always fail with ENOSYS. Some functions are actually named
3813 something starting with __ and the normal name is an alias. */
3814 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3815 choke me
3816 #else
3817 $ac_func();
3818 #endif
3820 ; return 0; }
3822 if { (eval echo configure:3823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3823 rm -rf conftest*
3824 eval "ac_cv_func_$ac_func=yes"
3825 else
3826 echo "configure: failed program was:" >&5
3827 cat conftest.$ac_ext >&5
3828 rm -rf conftest*
3829 eval "ac_cv_func_$ac_func=no"
3831 rm -f conftest*
3834 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3835 echo "$ac_t""yes" 1>&6
3836 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3837 cat >> confdefs.h <<EOF
3838 #define $ac_tr_func 1
3840 time_found=yes
3841 else
3842 echo "$ac_t""no" 1>&6
3844 done
3846 if test "$time_found" = no; then
3847 { echo "configure: error: no function found to get the time" 1>&2; exit 1; }
3850 for ac_func in memmove
3852 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3853 echo "configure:3854: checking for $ac_func" >&5
3854 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3855 echo $ac_n "(cached) $ac_c" 1>&6
3856 else
3857 cat > conftest.$ac_ext <<EOF
3858 #line 3859 "configure"
3859 #include "confdefs.h"
3860 /* System header to define __stub macros and hopefully few prototypes,
3861 which can conflict with char $ac_func(); below. */
3862 #include <assert.h>
3863 /* Override any gcc2 internal prototype to avoid an error. */
3864 /* We use char because int might match the return type of a gcc2
3865 builtin and then its argument prototype would still apply. */
3866 char $ac_func();
3868 int main() {
3870 /* The GNU C library defines this for functions which it implements
3871 to always fail with ENOSYS. Some functions are actually named
3872 something starting with __ and the normal name is an alias. */
3873 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3874 choke me
3875 #else
3876 $ac_func();
3877 #endif
3879 ; return 0; }
3881 if { (eval echo configure:3882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3882 rm -rf conftest*
3883 eval "ac_cv_func_$ac_func=yes"
3884 else
3885 echo "configure: failed program was:" >&5
3886 cat conftest.$ac_ext >&5
3887 rm -rf conftest*
3888 eval "ac_cv_func_$ac_func=no"
3890 rm -f conftest*
3893 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3894 echo "$ac_t""yes" 1>&6
3895 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3896 cat >> confdefs.h <<EOF
3897 #define $ac_tr_func 1
3900 else
3901 echo "$ac_t""no" 1>&6
3903 done
3906 # We require memcpy.
3907 memcpy_found=no
3908 for ac_func in memcpy
3910 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3911 echo "configure:3912: checking for $ac_func" >&5
3912 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3913 echo $ac_n "(cached) $ac_c" 1>&6
3914 else
3915 cat > conftest.$ac_ext <<EOF
3916 #line 3917 "configure"
3917 #include "confdefs.h"
3918 /* System header to define __stub macros and hopefully few prototypes,
3919 which can conflict with char $ac_func(); below. */
3920 #include <assert.h>
3921 /* Override any gcc2 internal prototype to avoid an error. */
3922 /* We use char because int might match the return type of a gcc2
3923 builtin and then its argument prototype would still apply. */
3924 char $ac_func();
3926 int main() {
3928 /* The GNU C library defines this for functions which it implements
3929 to always fail with ENOSYS. Some functions are actually named
3930 something starting with __ and the normal name is an alias. */
3931 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3932 choke me
3933 #else
3934 $ac_func();
3935 #endif
3937 ; return 0; }
3939 if { (eval echo configure:3940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3940 rm -rf conftest*
3941 eval "ac_cv_func_$ac_func=yes"
3942 else
3943 echo "configure: failed program was:" >&5
3944 cat conftest.$ac_ext >&5
3945 rm -rf conftest*
3946 eval "ac_cv_func_$ac_func=no"
3948 rm -f conftest*
3951 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3952 echo "$ac_t""yes" 1>&6
3953 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3954 cat >> confdefs.h <<EOF
3955 #define $ac_tr_func 1
3957 memcpy_found=yes
3958 else
3959 echo "$ac_t""no" 1>&6
3961 done
3963 if test "$memcpy_found" = no; then
3964 { echo "configure: error: memcpy is required" 1>&2; exit 1; }
3967 # Some library-finding code we stole from Tcl.
3968 #--------------------------------------------------------------------
3969 # Check for the existence of the -lsocket and -lnsl libraries.
3970 # The order here is important, so that they end up in the right
3971 # order in the command line generated by make. Here are some
3972 # special considerations:
3973 # 1. Use "connect" and "accept" to check for -lsocket, and
3974 # "gethostbyname" to check for -lnsl.
3975 # 2. Use each function name only once: can't redo a check because
3976 # autoconf caches the results of the last check and won't redo it.
3977 # 3. Use -lnsl and -lsocket only if they supply procedures that
3978 # aren't already present in the normal libraries. This is because
3979 # IRIX 5.2 has libraries, but they aren't needed and they're
3980 # bogus: they goof up name resolution if used.
3981 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
3982 # To get around this problem, check for both libraries together
3983 # if -lsocket doesn't work by itself.
3984 #--------------------------------------------------------------------
3986 echo $ac_n "checking for socket libraries""... $ac_c" 1>&6
3987 echo "configure:3988: checking for socket libraries" >&5
3988 if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
3989 echo $ac_n "(cached) $ac_c" 1>&6
3990 else
3991 gcj_cv_lib_sockets=
3992 gcj_checkBoth=0
3993 unset ac_cv_func_connect
3994 echo $ac_n "checking for connect""... $ac_c" 1>&6
3995 echo "configure:3996: checking for connect" >&5
3996 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3997 echo $ac_n "(cached) $ac_c" 1>&6
3998 else
3999 cat > conftest.$ac_ext <<EOF
4000 #line 4001 "configure"
4001 #include "confdefs.h"
4002 /* System header to define __stub macros and hopefully few prototypes,
4003 which can conflict with char connect(); below. */
4004 #include <assert.h>
4005 /* Override any gcc2 internal prototype to avoid an error. */
4006 /* We use char because int might match the return type of a gcc2
4007 builtin and then its argument prototype would still apply. */
4008 char connect();
4010 int main() {
4012 /* The GNU C library defines this for functions which it implements
4013 to always fail with ENOSYS. Some functions are actually named
4014 something starting with __ and the normal name is an alias. */
4015 #if defined (__stub_connect) || defined (__stub___connect)
4016 choke me
4017 #else
4018 connect();
4019 #endif
4021 ; return 0; }
4023 if { (eval echo configure:4024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4024 rm -rf conftest*
4025 eval "ac_cv_func_connect=yes"
4026 else
4027 echo "configure: failed program was:" >&5
4028 cat conftest.$ac_ext >&5
4029 rm -rf conftest*
4030 eval "ac_cv_func_connect=no"
4032 rm -f conftest*
4035 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
4036 echo "$ac_t""yes" 1>&6
4037 gcj_checkSocket=0
4038 else
4039 echo "$ac_t""no" 1>&6
4040 gcj_checkSocket=1
4043 if test "$gcj_checkSocket" = 1; then
4044 unset ac_cv_func_connect
4045 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4046 echo "configure:4047: checking for main in -lsocket" >&5
4047 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
4048 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4049 echo $ac_n "(cached) $ac_c" 1>&6
4050 else
4051 ac_save_LIBS="$LIBS"
4052 LIBS="-lsocket $LIBS"
4053 cat > conftest.$ac_ext <<EOF
4054 #line 4055 "configure"
4055 #include "confdefs.h"
4057 int main() {
4058 main()
4059 ; return 0; }
4061 if { (eval echo configure:4062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4062 rm -rf conftest*
4063 eval "ac_cv_lib_$ac_lib_var=yes"
4064 else
4065 echo "configure: failed program was:" >&5
4066 cat conftest.$ac_ext >&5
4067 rm -rf conftest*
4068 eval "ac_cv_lib_$ac_lib_var=no"
4070 rm -f conftest*
4071 LIBS="$ac_save_LIBS"
4074 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4075 echo "$ac_t""yes" 1>&6
4076 gcj_cv_lib_sockets="-lsocket"
4077 else
4078 echo "$ac_t""no" 1>&6
4079 gcj_checkBoth=1
4083 if test "$gcj_checkBoth" = 1; then
4084 gcj_oldLibs=$LIBS
4085 LIBS="$LIBS -lsocket -lnsl"
4086 unset ac_cv_func_accept
4087 echo $ac_n "checking for accept""... $ac_c" 1>&6
4088 echo "configure:4089: checking for accept" >&5
4089 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
4090 echo $ac_n "(cached) $ac_c" 1>&6
4091 else
4092 cat > conftest.$ac_ext <<EOF
4093 #line 4094 "configure"
4094 #include "confdefs.h"
4095 /* System header to define __stub macros and hopefully few prototypes,
4096 which can conflict with char accept(); below. */
4097 #include <assert.h>
4098 /* Override any gcc2 internal prototype to avoid an error. */
4099 /* We use char because int might match the return type of a gcc2
4100 builtin and then its argument prototype would still apply. */
4101 char accept();
4103 int main() {
4105 /* The GNU C library defines this for functions which it implements
4106 to always fail with ENOSYS. Some functions are actually named
4107 something starting with __ and the normal name is an alias. */
4108 #if defined (__stub_accept) || defined (__stub___accept)
4109 choke me
4110 #else
4111 accept();
4112 #endif
4114 ; return 0; }
4116 if { (eval echo configure:4117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4117 rm -rf conftest*
4118 eval "ac_cv_func_accept=yes"
4119 else
4120 echo "configure: failed program was:" >&5
4121 cat conftest.$ac_ext >&5
4122 rm -rf conftest*
4123 eval "ac_cv_func_accept=no"
4125 rm -f conftest*
4128 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
4129 echo "$ac_t""yes" 1>&6
4130 gcj_checkNsl=0
4131 gcj_cv_lib_sockets="-lsocket -lnsl"
4132 else
4133 echo "$ac_t""no" 1>&6
4136 unset ac_cv_func_accept
4137 LIBS=$gcj_oldLibs
4139 unset ac_cv_func_gethostbyname
4140 gcj_oldLibs=$LIBS
4141 LIBS="$LIBS $gcj_cv_lib_sockets"
4142 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4143 echo "configure:4144: checking for gethostbyname" >&5
4144 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
4145 echo $ac_n "(cached) $ac_c" 1>&6
4146 else
4147 cat > conftest.$ac_ext <<EOF
4148 #line 4149 "configure"
4149 #include "confdefs.h"
4150 /* System header to define __stub macros and hopefully few prototypes,
4151 which can conflict with char gethostbyname(); below. */
4152 #include <assert.h>
4153 /* Override any gcc2 internal prototype to avoid an error. */
4154 /* We use char because int might match the return type of a gcc2
4155 builtin and then its argument prototype would still apply. */
4156 char gethostbyname();
4158 int main() {
4160 /* The GNU C library defines this for functions which it implements
4161 to always fail with ENOSYS. Some functions are actually named
4162 something starting with __ and the normal name is an alias. */
4163 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4164 choke me
4165 #else
4166 gethostbyname();
4167 #endif
4169 ; return 0; }
4171 if { (eval echo configure:4172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4172 rm -rf conftest*
4173 eval "ac_cv_func_gethostbyname=yes"
4174 else
4175 echo "configure: failed program was:" >&5
4176 cat conftest.$ac_ext >&5
4177 rm -rf conftest*
4178 eval "ac_cv_func_gethostbyname=no"
4180 rm -f conftest*
4183 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
4184 echo "$ac_t""yes" 1>&6
4186 else
4187 echo "$ac_t""no" 1>&6
4188 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4189 echo "configure:4190: checking for main in -lnsl" >&5
4190 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
4191 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4192 echo $ac_n "(cached) $ac_c" 1>&6
4193 else
4194 ac_save_LIBS="$LIBS"
4195 LIBS="-lnsl $LIBS"
4196 cat > conftest.$ac_ext <<EOF
4197 #line 4198 "configure"
4198 #include "confdefs.h"
4200 int main() {
4201 main()
4202 ; return 0; }
4204 if { (eval echo configure:4205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4205 rm -rf conftest*
4206 eval "ac_cv_lib_$ac_lib_var=yes"
4207 else
4208 echo "configure: failed program was:" >&5
4209 cat conftest.$ac_ext >&5
4210 rm -rf conftest*
4211 eval "ac_cv_lib_$ac_lib_var=no"
4213 rm -f conftest*
4214 LIBS="$ac_save_LIBS"
4217 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4218 echo "$ac_t""yes" 1>&6
4219 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
4220 else
4221 echo "$ac_t""no" 1>&6
4226 unset ac_cv_func_gethostbyname
4227 LIBS=$gcj_oldLIBS
4231 echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
4232 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
4234 if test "$with_system_zlib" = yes; then
4235 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
4236 echo "configure:4237: checking for deflate in -lz" >&5
4237 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
4238 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4239 echo $ac_n "(cached) $ac_c" 1>&6
4240 else
4241 ac_save_LIBS="$LIBS"
4242 LIBS="-lz $LIBS"
4243 cat > conftest.$ac_ext <<EOF
4244 #line 4245 "configure"
4245 #include "confdefs.h"
4246 /* Override any gcc2 internal prototype to avoid an error. */
4247 /* We use char because int might match the return type of a gcc2
4248 builtin and then its argument prototype would still apply. */
4249 char deflate();
4251 int main() {
4252 deflate()
4253 ; return 0; }
4255 if { (eval echo configure:4256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4256 rm -rf conftest*
4257 eval "ac_cv_lib_$ac_lib_var=yes"
4258 else
4259 echo "configure: failed program was:" >&5
4260 cat conftest.$ac_ext >&5
4261 rm -rf conftest*
4262 eval "ac_cv_lib_$ac_lib_var=no"
4264 rm -f conftest*
4265 LIBS="$ac_save_LIBS"
4268 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4269 echo "$ac_t""yes" 1>&6
4270 ZLIBSPEC=-lz
4271 else
4272 echo "$ac_t""no" 1>&6
4273 ZLIBSPEC=-lzgcj
4276 else
4277 ZLIBSPEC=-lzgcj
4280 # On Solaris, and maybe other architectures, the Boehm collector
4281 # requires -ldl.
4282 if test "$GC" = boehm; then
4283 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
4284 echo "configure:4285: checking for main in -ldl" >&5
4285 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
4286 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4287 echo $ac_n "(cached) $ac_c" 1>&6
4288 else
4289 ac_save_LIBS="$LIBS"
4290 LIBS="-ldl $LIBS"
4291 cat > conftest.$ac_ext <<EOF
4292 #line 4293 "configure"
4293 #include "confdefs.h"
4295 int main() {
4296 main()
4297 ; return 0; }
4299 if { (eval echo configure:4300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4300 rm -rf conftest*
4301 eval "ac_cv_lib_$ac_lib_var=yes"
4302 else
4303 echo "configure: failed program was:" >&5
4304 cat conftest.$ac_ext >&5
4305 rm -rf conftest*
4306 eval "ac_cv_lib_$ac_lib_var=no"
4308 rm -f conftest*
4309 LIBS="$ac_save_LIBS"
4312 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4313 echo "$ac_t""yes" 1>&6
4314 SYSTEMSPEC="$SYSTEMSPEC -ldl"
4315 else
4316 echo "$ac_t""no" 1>&6
4321 if test -d "$libgcj_basedir/../gcc/java"; then
4322 GCJ=
4323 else
4324 CANADIAN=yes
4325 NULL_TARGET=yes
4326 GCJ=gcj
4330 ZLIBS=
4331 ZDEPS=
4332 ZINCS=
4333 if test "x$ZLIBSPEC" = "x-lzgcj"; then
4334 # We include the path to the zlib build directory.
4335 # See Makefile.am to understand why.
4336 ZDEPS='$(top_builddir)/../zlib/libzgcj.la'
4337 ZLIBS="$ZDEPS -L\$(here)/../zlib/$libsubdir"
4338 ZINCS='-I$(top_srcdir)/../zlib'
4339 else
4340 ZLIBS="$ZLIBSPEC"
4349 if test "$CANADIAN" = yes; then
4350 CANADIAN_TRUE=
4351 CANADIAN_FALSE='#'
4352 else
4353 CANADIAN_TRUE='#'
4354 CANADIAN_FALSE=
4358 if test "$NULL_TARGET" = yes; then
4359 NULL_TARGET_TRUE=
4360 NULL_TARGET_FALSE='#'
4361 else
4362 NULL_TARGET_TRUE='#'
4363 NULL_TARGET_FALSE=
4367 if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
4368 NATIVE_TRUE=
4369 NATIVE_FALSE='#'
4370 else
4371 NATIVE_TRUE='#'
4372 NATIVE_FALSE=
4376 if test -z "$with_cross_host"; then
4377 USE_LIBDIR_TRUE=
4378 USE_LIBDIR_FALSE='#'
4379 else
4380 USE_LIBDIR_TRUE='#'
4381 USE_LIBDIR_FALSE=
4385 # Determine gcj version number.
4386 if test "$GCJ" = ""; then
4387 if test -z "${with_multisubdir}"; then
4388 builddotdot=.
4389 else
4391 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
4394 dir="`cd ${builddotdot}/../../gcc && pwd`"
4395 GCJ="$dir/gcj -B$dir/"
4398 gcjvers="`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`"
4400 cat >> confdefs.h <<EOF
4401 #define GCJVERSION "$gcjvers"
4405 # See if gcj supports -fuse-divide-subroutine. gcc 2.95 does not, and
4406 # we want to continue to support that version.
4407 echo $ac_n "checking whether gcj supports -fuse-divide-subroutine""... $ac_c" 1>&6
4408 echo "configure:4409: checking whether gcj supports -fuse-divide-subroutine" >&5
4409 cat > conftest.java << 'END'
4410 public class conftest { }
4412 use_fuse=yes
4413 $GCJ -classpath $srcdir -fuse-divide-subroutine -fsyntax-only \
4414 conftest.java > /dev/null 2>&1 \
4415 || use_fuse=no
4416 rm -f conftest.java
4417 if test "$use_fuse" = no; then
4418 DIVIDESPEC=
4420 echo "$ac_t""$use_fuse" 1>&6
4424 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
4426 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4427 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4428 echo "configure:4429: checking for $ac_hdr" >&5
4429 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4430 echo $ac_n "(cached) $ac_c" 1>&6
4431 else
4432 cat > conftest.$ac_ext <<EOF
4433 #line 4434 "configure"
4434 #include "confdefs.h"
4435 #include <$ac_hdr>
4437 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4438 { (eval echo configure:4439: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4439 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4440 if test -z "$ac_err"; then
4441 rm -rf conftest*
4442 eval "ac_cv_header_$ac_safe=yes"
4443 else
4444 echo "$ac_err" >&5
4445 echo "configure: failed program was:" >&5
4446 cat conftest.$ac_ext >&5
4447 rm -rf conftest*
4448 eval "ac_cv_header_$ac_safe=no"
4450 rm -f conftest*
4452 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4453 echo "$ac_t""yes" 1>&6
4454 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4455 cat >> confdefs.h <<EOF
4456 #define $ac_tr_hdr 1
4459 else
4460 echo "$ac_t""no" 1>&6
4462 done
4464 for ac_hdr in dirent.h
4466 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4467 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4468 echo "configure:4469: checking for $ac_hdr" >&5
4469 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4470 echo $ac_n "(cached) $ac_c" 1>&6
4471 else
4472 cat > conftest.$ac_ext <<EOF
4473 #line 4474 "configure"
4474 #include "confdefs.h"
4475 #include <$ac_hdr>
4477 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4478 { (eval echo configure:4479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4479 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4480 if test -z "$ac_err"; then
4481 rm -rf conftest*
4482 eval "ac_cv_header_$ac_safe=yes"
4483 else
4484 echo "$ac_err" >&5
4485 echo "configure: failed program was:" >&5
4486 cat conftest.$ac_ext >&5
4487 rm -rf conftest*
4488 eval "ac_cv_header_$ac_safe=no"
4490 rm -f conftest*
4492 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4493 echo "$ac_t""yes" 1>&6
4494 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4495 cat >> confdefs.h <<EOF
4496 #define $ac_tr_hdr 1
4499 else
4500 echo "$ac_t""no" 1>&6
4502 done
4505 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4506 echo "configure:4507: checking for ANSI C header files" >&5
4507 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
4508 echo $ac_n "(cached) $ac_c" 1>&6
4509 else
4510 cat > conftest.$ac_ext <<EOF
4511 #line 4512 "configure"
4512 #include "confdefs.h"
4513 #include <stdlib.h>
4514 #include <stdarg.h>
4515 #include <string.h>
4516 #include <float.h>
4518 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4519 { (eval echo configure:4520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4520 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4521 if test -z "$ac_err"; then
4522 rm -rf conftest*
4523 ac_cv_header_stdc=yes
4524 else
4525 echo "$ac_err" >&5
4526 echo "configure: failed program was:" >&5
4527 cat conftest.$ac_ext >&5
4528 rm -rf conftest*
4529 ac_cv_header_stdc=no
4531 rm -f conftest*
4533 if test $ac_cv_header_stdc = yes; then
4534 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4535 cat > conftest.$ac_ext <<EOF
4536 #line 4537 "configure"
4537 #include "confdefs.h"
4538 #include <string.h>
4540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4541 egrep "memchr" >/dev/null 2>&1; then
4543 else
4544 rm -rf conftest*
4545 ac_cv_header_stdc=no
4547 rm -f conftest*
4551 if test $ac_cv_header_stdc = yes; then
4552 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4553 cat > conftest.$ac_ext <<EOF
4554 #line 4555 "configure"
4555 #include "confdefs.h"
4556 #include <stdlib.h>
4558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4559 egrep "free" >/dev/null 2>&1; then
4561 else
4562 rm -rf conftest*
4563 ac_cv_header_stdc=no
4565 rm -f conftest*
4569 if test $ac_cv_header_stdc = yes; then
4570 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4571 if test "$cross_compiling" = yes; then
4573 else
4574 cat > conftest.$ac_ext <<EOF
4575 #line 4576 "configure"
4576 #include "confdefs.h"
4577 #include <ctype.h>
4578 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4579 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4580 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4581 int main () { int i; for (i = 0; i < 256; i++)
4582 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4583 exit (0); }
4586 if { (eval echo configure:4587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4587 then
4589 else
4590 echo "configure: failed program was:" >&5
4591 cat conftest.$ac_ext >&5
4592 rm -fr conftest*
4593 ac_cv_header_stdc=no
4595 rm -fr conftest*
4601 echo "$ac_t""$ac_cv_header_stdc" 1>&6
4602 if test $ac_cv_header_stdc = yes; then
4603 cat >> confdefs.h <<\EOF
4604 #define STDC_HEADERS 1
4609 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
4610 echo "configure:4611: checking for ssize_t" >&5
4611 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
4612 echo $ac_n "(cached) $ac_c" 1>&6
4613 else
4614 cat > conftest.$ac_ext <<EOF
4615 #line 4616 "configure"
4616 #include "confdefs.h"
4617 #include <sys/types.h>
4618 #if STDC_HEADERS
4619 #include <stdlib.h>
4620 #include <stddef.h>
4621 #endif
4623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4624 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4625 rm -rf conftest*
4626 ac_cv_type_ssize_t=yes
4627 else
4628 rm -rf conftest*
4629 ac_cv_type_ssize_t=no
4631 rm -f conftest*
4634 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
4635 if test $ac_cv_type_ssize_t = no; then
4636 cat >> confdefs.h <<\EOF
4637 #define ssize_t int
4643 echo $ac_n "checking for in_addr_t""... $ac_c" 1>&6
4644 echo "configure:4645: checking for in_addr_t" >&5
4645 cat > conftest.$ac_ext <<EOF
4646 #line 4647 "configure"
4647 #include "confdefs.h"
4648 #include <sys/types.h>
4649 #if STDC_HEADERS
4650 #include <stdlib.h>
4651 #include <stddef.h>
4652 #endif
4653 #if HAVE_NETINET_IN_H
4654 #include <netinet/in.h>
4655 #endif
4656 int main() {
4657 in_addr_t foo;
4658 ; return 0; }
4660 if { (eval echo configure:4661: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4661 rm -rf conftest*
4662 cat >> confdefs.h <<\EOF
4663 #define HAVE_IN_ADDR_T 1
4666 echo "$ac_t""yes" 1>&6
4667 else
4668 echo "configure: failed program was:" >&5
4669 cat conftest.$ac_ext >&5
4670 rm -rf conftest*
4671 echo "$ac_t""no" 1>&6
4673 rm -f conftest*
4675 echo $ac_n "checking whether struct ip_mreq is in netinet/in.h""... $ac_c" 1>&6
4676 echo "configure:4677: checking whether struct ip_mreq is in netinet/in.h" >&5
4677 cat > conftest.$ac_ext <<EOF
4678 #line 4679 "configure"
4679 #include "confdefs.h"
4680 #include <netinet/in.h>
4681 int main() {
4682 struct ip_mreq mreq;
4683 ; return 0; }
4685 if { (eval echo configure:4686: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4686 rm -rf conftest*
4687 cat >> confdefs.h <<\EOF
4688 #define HAVE_STRUCT_IP_MREQ 1
4691 echo "$ac_t""yes" 1>&6
4692 else
4693 echo "configure: failed program was:" >&5
4694 cat conftest.$ac_ext >&5
4695 rm -rf conftest*
4696 echo "$ac_t""no" 1>&6
4698 rm -f conftest*
4700 echo $ac_n "checking whether struct sockaddr_in6 is in netinet/in.h""... $ac_c" 1>&6
4701 echo "configure:4702: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
4702 cat > conftest.$ac_ext <<EOF
4703 #line 4704 "configure"
4704 #include "confdefs.h"
4705 #include <netinet/in.h>
4706 int main() {
4707 struct sockaddr_in6 addr6;
4708 ; return 0; }
4710 if { (eval echo configure:4711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4711 rm -rf conftest*
4712 cat >> confdefs.h <<\EOF
4713 #define HAVE_INET6 1
4716 echo "$ac_t""yes" 1>&6
4717 else
4718 echo "configure: failed program was:" >&5
4719 cat conftest.$ac_ext >&5
4720 rm -rf conftest*
4721 echo "$ac_t""no" 1>&6
4723 rm -f conftest*
4725 echo $ac_n "checking for socklen_t in sys/socket.h""... $ac_c" 1>&6
4726 echo "configure:4727: checking for socklen_t in sys/socket.h" >&5
4727 cat > conftest.$ac_ext <<EOF
4728 #line 4729 "configure"
4729 #include "confdefs.h"
4730 #include <sys/socket.h>
4731 int main() {
4732 socklen_t x = 5;
4733 ; return 0; }
4735 if { (eval echo configure:4736: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4736 rm -rf conftest*
4737 cat >> confdefs.h <<\EOF
4738 #define HAVE_SOCKLEN_T 1
4741 echo "$ac_t""yes" 1>&6
4742 else
4743 echo "configure: failed program was:" >&5
4744 cat conftest.$ac_ext >&5
4745 rm -rf conftest*
4746 echo "$ac_t""no" 1>&6
4748 rm -f conftest*
4750 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
4751 echo "configure:4752: checking for tm_gmtoff in struct tm" >&5
4752 cat > conftest.$ac_ext <<EOF
4753 #line 4754 "configure"
4754 #include "confdefs.h"
4755 #include <time.h>
4756 int main() {
4757 struct tm tim; tim.tm_gmtoff = 0;
4758 ; return 0; }
4760 if { (eval echo configure:4761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4761 rm -rf conftest*
4762 cat >> confdefs.h <<\EOF
4763 #define STRUCT_TM_HAS_GMTOFF 1
4766 echo "$ac_t""yes" 1>&6
4767 else
4768 echo "configure: failed program was:" >&5
4769 cat conftest.$ac_ext >&5
4770 rm -rf conftest*
4771 echo "$ac_t""no" 1>&6
4772 echo $ac_n "checking for global timezone variable""... $ac_c" 1>&6
4773 echo "configure:4774: checking for global timezone variable" >&5
4774 cat > conftest.$ac_ext <<EOF
4775 #line 4776 "configure"
4776 #include "confdefs.h"
4777 #include <time.h>
4778 int main() {
4779 long z2 = timezone;
4780 ; return 0; }
4782 if { (eval echo configure:4783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4783 rm -rf conftest*
4784 cat >> confdefs.h <<\EOF
4785 #define HAVE_TIMEZONE 1
4788 echo "$ac_t""yes" 1>&6
4789 else
4790 echo "configure: failed program was:" >&5
4791 cat conftest.$ac_ext >&5
4792 rm -rf conftest*
4793 echo "$ac_t""no" 1>&6
4795 rm -f conftest*
4797 rm -f conftest*
4799 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4800 # for constant arguments. Useless!
4801 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4802 echo "configure:4803: checking for working alloca.h" >&5
4803 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4804 echo $ac_n "(cached) $ac_c" 1>&6
4805 else
4806 cat > conftest.$ac_ext <<EOF
4807 #line 4808 "configure"
4808 #include "confdefs.h"
4809 #include <alloca.h>
4810 int main() {
4811 char *p = alloca(2 * sizeof(int));
4812 ; return 0; }
4814 if { (eval echo configure:4815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4815 rm -rf conftest*
4816 ac_cv_header_alloca_h=yes
4817 else
4818 echo "configure: failed program was:" >&5
4819 cat conftest.$ac_ext >&5
4820 rm -rf conftest*
4821 ac_cv_header_alloca_h=no
4823 rm -f conftest*
4826 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4827 if test $ac_cv_header_alloca_h = yes; then
4828 cat >> confdefs.h <<\EOF
4829 #define HAVE_ALLOCA_H 1
4834 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4835 echo "configure:4836: checking for alloca" >&5
4836 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4837 echo $ac_n "(cached) $ac_c" 1>&6
4838 else
4839 cat > conftest.$ac_ext <<EOF
4840 #line 4841 "configure"
4841 #include "confdefs.h"
4843 #ifdef __GNUC__
4844 # define alloca __builtin_alloca
4845 #else
4846 # ifdef _MSC_VER
4847 # include <malloc.h>
4848 # define alloca _alloca
4849 # else
4850 # if HAVE_ALLOCA_H
4851 # include <alloca.h>
4852 # else
4853 # ifdef _AIX
4854 #pragma alloca
4855 # else
4856 # ifndef alloca /* predefined by HP cc +Olibcalls */
4857 char *alloca ();
4858 # endif
4859 # endif
4860 # endif
4861 # endif
4862 #endif
4864 int main() {
4865 char *p = (char *) alloca(1);
4866 ; return 0; }
4868 if { (eval echo configure:4869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4869 rm -rf conftest*
4870 ac_cv_func_alloca_works=yes
4871 else
4872 echo "configure: failed program was:" >&5
4873 cat conftest.$ac_ext >&5
4874 rm -rf conftest*
4875 ac_cv_func_alloca_works=no
4877 rm -f conftest*
4880 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4881 if test $ac_cv_func_alloca_works = yes; then
4882 cat >> confdefs.h <<\EOF
4883 #define HAVE_ALLOCA 1
4888 if test $ac_cv_func_alloca_works = no; then
4889 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4890 # that cause trouble. Some versions do not even contain alloca or
4891 # contain a buggy version. If you still want to use their alloca,
4892 # use ar to extract alloca.o from them instead of compiling alloca.c.
4893 ALLOCA=alloca.${ac_objext}
4894 cat >> confdefs.h <<\EOF
4895 #define C_ALLOCA 1
4899 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4900 echo "configure:4901: checking whether alloca needs Cray hooks" >&5
4901 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4902 echo $ac_n "(cached) $ac_c" 1>&6
4903 else
4904 cat > conftest.$ac_ext <<EOF
4905 #line 4906 "configure"
4906 #include "confdefs.h"
4907 #if defined(CRAY) && ! defined(CRAY2)
4908 webecray
4909 #else
4910 wenotbecray
4911 #endif
4914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4915 egrep "webecray" >/dev/null 2>&1; then
4916 rm -rf conftest*
4917 ac_cv_os_cray=yes
4918 else
4919 rm -rf conftest*
4920 ac_cv_os_cray=no
4922 rm -f conftest*
4926 echo "$ac_t""$ac_cv_os_cray" 1>&6
4927 if test $ac_cv_os_cray = yes; then
4928 for ac_func in _getb67 GETB67 getb67; do
4929 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4930 echo "configure:4931: checking for $ac_func" >&5
4931 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4932 echo $ac_n "(cached) $ac_c" 1>&6
4933 else
4934 cat > conftest.$ac_ext <<EOF
4935 #line 4936 "configure"
4936 #include "confdefs.h"
4937 /* System header to define __stub macros and hopefully few prototypes,
4938 which can conflict with char $ac_func(); below. */
4939 #include <assert.h>
4940 /* Override any gcc2 internal prototype to avoid an error. */
4941 /* We use char because int might match the return type of a gcc2
4942 builtin and then its argument prototype would still apply. */
4943 char $ac_func();
4945 int main() {
4947 /* The GNU C library defines this for functions which it implements
4948 to always fail with ENOSYS. Some functions are actually named
4949 something starting with __ and the normal name is an alias. */
4950 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4951 choke me
4952 #else
4953 $ac_func();
4954 #endif
4956 ; return 0; }
4958 if { (eval echo configure:4959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4959 rm -rf conftest*
4960 eval "ac_cv_func_$ac_func=yes"
4961 else
4962 echo "configure: failed program was:" >&5
4963 cat conftest.$ac_ext >&5
4964 rm -rf conftest*
4965 eval "ac_cv_func_$ac_func=no"
4967 rm -f conftest*
4970 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4971 echo "$ac_t""yes" 1>&6
4972 cat >> confdefs.h <<EOF
4973 #define CRAY_STACKSEG_END $ac_func
4976 break
4977 else
4978 echo "$ac_t""no" 1>&6
4981 done
4984 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4985 echo "configure:4986: checking stack direction for C alloca" >&5
4986 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4987 echo $ac_n "(cached) $ac_c" 1>&6
4988 else
4989 if test "$cross_compiling" = yes; then
4990 ac_cv_c_stack_direction=0
4991 else
4992 cat > conftest.$ac_ext <<EOF
4993 #line 4994 "configure"
4994 #include "confdefs.h"
4995 find_stack_direction ()
4997 static char *addr = 0;
4998 auto char dummy;
4999 if (addr == 0)
5001 addr = &dummy;
5002 return find_stack_direction ();
5004 else
5005 return (&dummy > addr) ? 1 : -1;
5007 main ()
5009 exit (find_stack_direction() < 0);
5012 if { (eval echo configure:5013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5013 then
5014 ac_cv_c_stack_direction=1
5015 else
5016 echo "configure: failed program was:" >&5
5017 cat conftest.$ac_ext >&5
5018 rm -fr conftest*
5019 ac_cv_c_stack_direction=-1
5021 rm -fr conftest*
5026 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5027 cat >> confdefs.h <<EOF
5028 #define STACK_DIRECTION $ac_cv_c_stack_direction
5034 for ac_prog in perl
5036 # Extract the first word of "$ac_prog", so it can be a program name with args.
5037 set dummy $ac_prog; ac_word=$2
5038 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5039 echo "configure:5040: checking for $ac_word" >&5
5040 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
5041 echo $ac_n "(cached) $ac_c" 1>&6
5042 else
5043 if test -n "$PERL"; then
5044 ac_cv_prog_PERL="$PERL" # Let the user override the test.
5045 else
5046 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5047 ac_dummy="$PATH"
5048 for ac_dir in $ac_dummy; do
5049 test -z "$ac_dir" && ac_dir=.
5050 if test -f $ac_dir/$ac_word; then
5051 ac_cv_prog_PERL="$ac_prog"
5052 break
5054 done
5055 IFS="$ac_save_ifs"
5058 PERL="$ac_cv_prog_PERL"
5059 if test -n "$PERL"; then
5060 echo "$ac_t""$PERL" 1>&6
5061 else
5062 echo "$ac_t""no" 1>&6
5065 test -n "$PERL" && break
5066 done
5067 test -n "$PERL" || PERL="false"
5070 case "${host}" in
5071 i?86-*-linux*)
5072 SIGNAL_HANDLER=include/i386-signal.h
5074 sparc-sun-solaris*)
5075 SIGNAL_HANDLER=include/sparc-signal.h
5078 SIGNAL_HANDLER=include/default-signal.h
5080 esac
5084 if test "${multilib}" = "yes"; then
5085 multilib_arg="--enable-multilib"
5086 else
5087 multilib_arg=
5090 here=`pwd`
5093 trap '' 1 2 15
5094 cat > confcache <<\EOF
5095 # This file is a shell script that caches the results of configure
5096 # tests run on this system so they can be shared between configure
5097 # scripts and configure runs. It is not useful on other systems.
5098 # If it contains results you don't want to keep, you may remove or edit it.
5100 # By default, configure uses ./config.cache as the cache file,
5101 # creating it if it does not exist already. You can give configure
5102 # the --cache-file=FILE option to use a different cache file; that is
5103 # what configure does when it calls configure scripts in
5104 # subdirectories, so they share the cache.
5105 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5106 # config.status only pays attention to the cache file if you give it the
5107 # --recheck option to rerun configure.
5110 # The following way of writing the cache mishandles newlines in values,
5111 # but we know of no workaround that is simple, portable, and efficient.
5112 # So, don't put newlines in cache variables' values.
5113 # Ultrix sh set writes to stderr and can't be redirected directly,
5114 # and sets the high bit in the cache file unless we assign to the vars.
5115 (set) 2>&1 |
5116 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5117 *ac_space=\ *)
5118 # `set' does not quote correctly, so add quotes (double-quote substitution
5119 # turns \\\\ into \\, and sed turns \\ into \).
5120 sed -n \
5121 -e "s/'/'\\\\''/g" \
5122 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5125 # `set' quotes correctly as required by POSIX, so do not add quotes.
5126 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5128 esac >> confcache
5129 if cmp -s $cache_file confcache; then
5131 else
5132 if test -w $cache_file; then
5133 echo "updating cache $cache_file"
5134 cat confcache > $cache_file
5135 else
5136 echo "not updating unwritable cache $cache_file"
5139 rm -f confcache
5141 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5143 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5144 # Let make expand exec_prefix.
5145 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5147 # Any assignment to VPATH causes Sun make to only execute
5148 # the first set of double-colon rules, so remove it if not needed.
5149 # If there is a colon in the path, we need to keep it.
5150 if test "x$srcdir" = x.; then
5151 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5154 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5156 DEFS=-DHAVE_CONFIG_H
5158 # Without the "./", some shells look in PATH for config.status.
5159 : ${CONFIG_STATUS=./config.status}
5161 echo creating $CONFIG_STATUS
5162 rm -f $CONFIG_STATUS
5163 cat > $CONFIG_STATUS <<EOF
5164 #! /bin/sh
5165 # Generated automatically by configure.
5166 # Run this file to recreate the current configuration.
5167 # This directory was configured as follows,
5168 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5170 # $0 $ac_configure_args
5172 # Compiler output produced by configure, useful for debugging
5173 # configure, is in ./config.log if it exists.
5175 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5176 for ac_option
5178 case "\$ac_option" in
5179 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5180 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5181 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5182 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5183 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5184 exit 0 ;;
5185 -help | --help | --hel | --he | --h)
5186 echo "\$ac_cs_usage"; exit 0 ;;
5187 *) echo "\$ac_cs_usage"; exit 1 ;;
5188 esac
5189 done
5191 ac_given_srcdir=$srcdir
5192 ac_given_INSTALL="$INSTALL"
5194 trap 'rm -fr `echo "Makefile libgcj.spec gcj/Makefile include/Makefile testsuite/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5196 cat >> $CONFIG_STATUS <<EOF
5198 # Protect against being on the right side of a sed subst in config.status.
5199 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5200 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5201 $ac_vpsub
5202 $extrasub
5203 s%@SHELL@%$SHELL%g
5204 s%@CFLAGS@%$CFLAGS%g
5205 s%@CPPFLAGS@%$CPPFLAGS%g
5206 s%@CXXFLAGS@%$CXXFLAGS%g
5207 s%@FFLAGS@%$FFLAGS%g
5208 s%@DEFS@%$DEFS%g
5209 s%@LDFLAGS@%$LDFLAGS%g
5210 s%@LIBS@%$LIBS%g
5211 s%@exec_prefix@%$exec_prefix%g
5212 s%@prefix@%$prefix%g
5213 s%@program_transform_name@%$program_transform_name%g
5214 s%@bindir@%$bindir%g
5215 s%@sbindir@%$sbindir%g
5216 s%@libexecdir@%$libexecdir%g
5217 s%@datadir@%$datadir%g
5218 s%@sysconfdir@%$sysconfdir%g
5219 s%@sharedstatedir@%$sharedstatedir%g
5220 s%@localstatedir@%$localstatedir%g
5221 s%@libdir@%$libdir%g
5222 s%@includedir@%$includedir%g
5223 s%@oldincludedir@%$oldincludedir%g
5224 s%@infodir@%$infodir%g
5225 s%@mandir@%$mandir%g
5226 s%@host@%$host%g
5227 s%@host_alias@%$host_alias%g
5228 s%@host_cpu@%$host_cpu%g
5229 s%@host_vendor@%$host_vendor%g
5230 s%@host_os@%$host_os%g
5231 s%@target@%$target%g
5232 s%@target_alias@%$target_alias%g
5233 s%@target_cpu@%$target_cpu%g
5234 s%@target_vendor@%$target_vendor%g
5235 s%@target_os@%$target_os%g
5236 s%@build@%$build%g
5237 s%@build_alias@%$build_alias%g
5238 s%@build_cpu@%$build_cpu%g
5239 s%@build_vendor@%$build_vendor%g
5240 s%@build_os@%$build_os%g
5241 s%@libgcj_basedir@%$libgcj_basedir%g
5242 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5243 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5244 s%@INSTALL_DATA@%$INSTALL_DATA%g
5245 s%@PACKAGE@%$PACKAGE%g
5246 s%@VERSION@%$VERSION%g
5247 s%@ACLOCAL@%$ACLOCAL%g
5248 s%@AUTOCONF@%$AUTOCONF%g
5249 s%@AUTOMAKE@%$AUTOMAKE%g
5250 s%@AUTOHEADER@%$AUTOHEADER%g
5251 s%@MAKEINFO@%$MAKEINFO%g
5252 s%@SET_MAKE@%$SET_MAKE%g
5253 s%@CC@%$CC%g
5254 s%@CXX@%$CXX%g
5255 s%@AS@%$AS%g
5256 s%@AR@%$AR%g
5257 s%@RANLIB@%$RANLIB%g
5258 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5259 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5260 s%@MAINT@%$MAINT%g
5261 s%@EXEEXT@%$EXEEXT%g
5262 s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
5263 s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
5264 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
5265 s%@LD@%$LD%g
5266 s%@NM@%$NM%g
5267 s%@USE_SYMBOL_UNDERSCORE@%$USE_SYMBOL_UNDERSCORE%g
5268 s%@LN_S@%$LN_S%g
5269 s%@DLLTOOL@%$DLLTOOL%g
5270 s%@LIBTOOL@%$LIBTOOL%g
5271 s%@COMPPATH@%$COMPPATH%g
5272 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
5273 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
5274 s%@CPP@%$CPP%g
5275 s%@SYSTEMSPEC@%$SYSTEMSPEC%g
5276 s%@ZLIBSPEC@%$ZLIBSPEC%g
5277 s%@GCLIBS@%$GCLIBS%g
5278 s%@GCINCS@%$GCINCS%g
5279 s%@GCDEPS@%$GCDEPS%g
5280 s%@GCOBJS@%$GCOBJS%g
5281 s%@GCSPEC@%$GCSPEC%g
5282 s%@THREADLIBS@%$THREADLIBS%g
5283 s%@THREADINCS@%$THREADINCS%g
5284 s%@THREADDEPS@%$THREADDEPS%g
5285 s%@THREADOBJS@%$THREADOBJS%g
5286 s%@THREADSPEC@%$THREADSPEC%g
5287 s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
5288 s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
5289 s%@ZLIBS@%$ZLIBS%g
5290 s%@ZDEPS@%$ZDEPS%g
5291 s%@ZINCS@%$ZINCS%g
5292 s%@DIVIDESPEC@%$DIVIDESPEC%g
5293 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
5294 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
5295 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
5296 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
5297 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
5298 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
5299 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
5300 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
5301 s%@EH_COMMON_INCLUDE@%$EH_COMMON_INCLUDE%g
5302 s%@AM_RUNTESTFLAGS@%$AM_RUNTESTFLAGS%g
5303 s%@ALLOCA@%$ALLOCA%g
5304 s%@PERL@%$PERL%g
5305 s%@here@%$here%g
5307 CEOF
5310 cat >> $CONFIG_STATUS <<\EOF
5312 # Split the substitutions into bite-sized pieces for seds with
5313 # small command number limits, like on Digital OSF/1 and HP-UX.
5314 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5315 ac_file=1 # Number of current file.
5316 ac_beg=1 # First line for current file.
5317 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5318 ac_more_lines=:
5319 ac_sed_cmds=""
5320 while $ac_more_lines; do
5321 if test $ac_beg -gt 1; then
5322 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5323 else
5324 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5326 if test ! -s conftest.s$ac_file; then
5327 ac_more_lines=false
5328 rm -f conftest.s$ac_file
5329 else
5330 if test -z "$ac_sed_cmds"; then
5331 ac_sed_cmds="sed -f conftest.s$ac_file"
5332 else
5333 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5335 ac_file=`expr $ac_file + 1`
5336 ac_beg=$ac_end
5337 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5339 done
5340 if test -z "$ac_sed_cmds"; then
5341 ac_sed_cmds=cat
5345 cat >> $CONFIG_STATUS <<EOF
5347 CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.spec gcj/Makefile include/Makefile testsuite/Makefile"}
5349 cat >> $CONFIG_STATUS <<\EOF
5350 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5351 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5352 case "$ac_file" in
5353 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5354 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5355 *) ac_file_in="${ac_file}.in" ;;
5356 esac
5358 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5360 # Remove last slash and all that follows it. Not all systems have dirname.
5361 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5362 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5363 # The file is in a subdirectory.
5364 test ! -d "$ac_dir" && mkdir "$ac_dir"
5365 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5366 # A "../" for each directory in $ac_dir_suffix.
5367 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5368 else
5369 ac_dir_suffix= ac_dots=
5372 case "$ac_given_srcdir" in
5373 .) srcdir=.
5374 if test -z "$ac_dots"; then top_srcdir=.
5375 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5376 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5377 *) # Relative path.
5378 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5379 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5380 esac
5382 case "$ac_given_INSTALL" in
5383 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5384 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5385 esac
5387 echo creating "$ac_file"
5388 rm -f "$ac_file"
5389 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5390 case "$ac_file" in
5391 *Makefile*) ac_comsub="1i\\
5392 # $configure_input" ;;
5393 *) ac_comsub= ;;
5394 esac
5396 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5397 sed -e "$ac_comsub
5398 s%@configure_input@%$configure_input%g
5399 s%@srcdir@%$srcdir%g
5400 s%@top_srcdir@%$top_srcdir%g
5401 s%@INSTALL@%$INSTALL%g
5402 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5403 fi; done
5404 rm -f conftest.s*
5406 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5407 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5409 # ac_d sets the value in "#define NAME VALUE" lines.
5410 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5411 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5412 ac_dC='\3'
5413 ac_dD='%g'
5414 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5415 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5416 ac_uB='\([ ]\)%\1#\2define\3'
5417 ac_uC=' '
5418 ac_uD='\4%g'
5419 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5420 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5421 ac_eB='$%\1#\2define\3'
5422 ac_eC=' '
5423 ac_eD='%g'
5425 if test "${CONFIG_HEADERS+set}" != set; then
5427 cat >> $CONFIG_STATUS <<EOF
5428 CONFIG_HEADERS="include/config.h"
5430 cat >> $CONFIG_STATUS <<\EOF
5432 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5433 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5434 case "$ac_file" in
5435 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5436 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5437 *) ac_file_in="${ac_file}.in" ;;
5438 esac
5440 echo creating $ac_file
5442 rm -f conftest.frag conftest.in conftest.out
5443 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5444 cat $ac_file_inputs > conftest.in
5448 # Transform confdefs.h into a sed script conftest.vals that substitutes
5449 # the proper values into config.h.in to produce config.h. And first:
5450 # Protect against being on the right side of a sed subst in config.status.
5451 # Protect against being in an unquoted here document in config.status.
5452 rm -f conftest.vals
5453 cat > conftest.hdr <<\EOF
5454 s/[\\&%]/\\&/g
5455 s%[\\$`]%\\&%g
5456 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5457 s%ac_d%ac_u%gp
5458 s%ac_u%ac_e%gp
5460 sed -n -f conftest.hdr confdefs.h > conftest.vals
5461 rm -f conftest.hdr
5463 # This sed command replaces #undef with comments. This is necessary, for
5464 # example, in the case of _POSIX_SOURCE, which is predefined and required
5465 # on some systems where configure will not decide to define it.
5466 cat >> conftest.vals <<\EOF
5467 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5470 # Break up conftest.vals because some shells have a limit on
5471 # the size of here documents, and old seds have small limits too.
5473 rm -f conftest.tail
5474 while :
5476 ac_lines=`grep -c . conftest.vals`
5477 # grep -c gives empty output for an empty file on some AIX systems.
5478 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5479 # Write a limited-size here document to conftest.frag.
5480 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5481 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5482 echo 'CEOF
5483 sed -f conftest.frag conftest.in > conftest.out
5484 rm -f conftest.in
5485 mv conftest.out conftest.in
5486 ' >> $CONFIG_STATUS
5487 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5488 rm -f conftest.vals
5489 mv conftest.tail conftest.vals
5490 done
5491 rm -f conftest.vals
5493 cat >> $CONFIG_STATUS <<\EOF
5494 rm -f conftest.frag conftest.h
5495 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5496 cat conftest.in >> conftest.h
5497 rm -f conftest.in
5498 if cmp -s $ac_file conftest.h 2>/dev/null; then
5499 echo "$ac_file is unchanged"
5500 rm -f conftest.h
5501 else
5502 # Remove last slash and all that follows it. Not all systems have dirname.
5503 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5504 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5505 # The file is in a subdirectory.
5506 test ! -d "$ac_dir" && mkdir "$ac_dir"
5508 rm -f $ac_file
5509 mv conftest.h $ac_file
5511 fi; done
5515 cat >> $CONFIG_STATUS <<EOF
5516 ac_sources="java/io/$FILE_DESCRIPTOR java/lang/${PROCESS}Process.java java/lang/nat${PROCESS}Process.cc include/$GCHDR include/$THREADH $SIGNAL_HANDLER"
5517 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"
5520 cat >> $CONFIG_STATUS <<\EOF
5521 srcdir=$ac_given_srcdir
5522 while test -n "$ac_sources"; do
5523 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5524 set $ac_sources; ac_source=$1; shift; ac_sources=$*
5526 echo "linking $srcdir/$ac_source to $ac_dest"
5528 if test ! -r $srcdir/$ac_source; then
5529 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
5531 rm -f $ac_dest
5533 # Make relative symlinks.
5534 # Remove last slash and all that follows it. Not all systems have dirname.
5535 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
5536 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
5537 # The dest file is in a subdirectory.
5538 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
5539 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
5540 # A "../" for each directory in $ac_dest_dir_suffix.
5541 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
5542 else
5543 ac_dest_dir_suffix= ac_dots=
5546 case "$srcdir" in
5547 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
5548 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
5549 esac
5551 # Make a symlink if possible; otherwise try a hard link.
5552 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
5553 ln $srcdir/$ac_source $ac_dest; then :
5554 else
5555 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
5557 done
5559 cat >> $CONFIG_STATUS <<EOF
5561 srcdir=${srcdir}
5562 host=${host}
5563 target=${target}
5564 with_multisubdir=${with_multisubdir}
5565 ac_configure_args="${multilib_arg} ${ac_configure_args}"
5566 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
5567 libgcj_basedir=${libgcj_basedir}
5568 CC="${CC}"
5569 CXX="${CXX}"
5572 cat >> $CONFIG_STATUS <<\EOF
5573 test -z "$CONFIG_HEADERS" || echo timestamp > include/stamp-h
5574 if test -n "$CONFIG_FILES"; then
5575 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
5577 exit 0
5579 chmod +x $CONFIG_STATUS
5580 rm -fr confdefs* $ac_clean_files
5581 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1