* config/rs6000/rs6000.c (spe_init_builtins,
[official-gcc.git] / libjava / configure
blob82583b8870fb051c4450801831c30f2f9f78e00b
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 --with-newlib Configuring with newlib"
21 ac_help="$ac_help
22 --enable-multilib build many library versions (default)"
23 ac_help="$ac_help
24 --enable-maintainer-mode enable make rules and dependencies not useful
25 (and sometimes confusing) to the casual installer"
26 ac_help="$ac_help
27 --enable-shared[=PKGS] build shared libraries [default=yes]"
28 ac_help="$ac_help
29 --enable-static[=PKGS] build static libraries [default=yes]"
30 ac_help="$ac_help
31 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
32 ac_help="$ac_help
33 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
34 ac_help="$ac_help
35 --disable-libtool-lock avoid locking (might break parallel builds)"
36 ac_help="$ac_help
37 --with-pic try to use only PIC/non-PIC objects [default=use both]"
38 ac_help="$ac_help
39 --disable-getenv-properties
40 don't set system properties from GCJ_PROPERTIES"
41 ac_help="$ac_help
42 --enable-hash-synchronization
43 Use global hash table for monitor locks"
44 ac_help="$ac_help
45 --enable-libgcj-debug enable runtime debugging code"
46 ac_help="$ac_help
47 --enable-interpreter enable interpreter"
48 ac_help="$ac_help
49 --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
50 ac_help="$ac_help
51 --disable-java-net disable java.net"
52 ac_help="$ac_help
53 --without-libffi don't use libffi"
54 ac_help="$ac_help
55 --disable-jvmpi disable JVMPI support"
56 ac_help="$ac_help
57 --with-ecos enable runtime eCos target support"
58 ac_help="$ac_help
59 --with-system-zlib use installed libz"
60 ac_help="$ac_help
61 --enable-java-gc=TYPE choose garbage collector [boehm]"
62 ac_help="$ac_help
63 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
64 ac_help="$ac_help
65 --with-x use the X Window System"
66 ac_help="$ac_help
67 --enable-java-awt list of AWT peer implementations to be built"
69 # Initialize some variables set by options.
70 # The variables have the same names as the options, with
71 # dashes changed to underlines.
72 build=NONE
73 cache_file=./config.cache
74 exec_prefix=NONE
75 host=NONE
76 no_create=
77 nonopt=NONE
78 no_recursion=
79 prefix=NONE
80 program_prefix=NONE
81 program_suffix=NONE
82 program_transform_name=s,x,x,
83 silent=
84 site=
85 srcdir=
86 target=NONE
87 verbose=
88 x_includes=NONE
89 x_libraries=NONE
90 bindir='${exec_prefix}/bin'
91 sbindir='${exec_prefix}/sbin'
92 libexecdir='${exec_prefix}/libexec'
93 datadir='${prefix}/share'
94 sysconfdir='${prefix}/etc'
95 sharedstatedir='${prefix}/com'
96 localstatedir='${prefix}/var'
97 libdir='${exec_prefix}/lib'
98 includedir='${prefix}/include'
99 oldincludedir='/usr/include'
100 infodir='${prefix}/info'
101 mandir='${prefix}/man'
103 # Initialize some other variables.
104 subdirs=
105 MFLAGS= MAKEFLAGS=
106 SHELL=${CONFIG_SHELL-/bin/sh}
107 # Maximum number of lines to put in a shell here document.
108 ac_max_here_lines=12
110 ac_prev=
111 for ac_option
114 # If the previous option needs an argument, assign it.
115 if test -n "$ac_prev"; then
116 eval "$ac_prev=\$ac_option"
117 ac_prev=
118 continue
121 case "$ac_option" in
122 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
123 *) ac_optarg= ;;
124 esac
126 # Accept the important Cygnus configure options, so we can diagnose typos.
128 case "$ac_option" in
130 -bindir | --bindir | --bindi | --bind | --bin | --bi)
131 ac_prev=bindir ;;
132 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
133 bindir="$ac_optarg" ;;
135 -build | --build | --buil | --bui | --bu)
136 ac_prev=build ;;
137 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
138 build="$ac_optarg" ;;
140 -cache-file | --cache-file | --cache-fil | --cache-fi \
141 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
142 ac_prev=cache_file ;;
143 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
144 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
145 cache_file="$ac_optarg" ;;
147 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
148 ac_prev=datadir ;;
149 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
150 | --da=*)
151 datadir="$ac_optarg" ;;
153 -disable-* | --disable-*)
154 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
155 # Reject names that are not valid shell variable names.
156 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
157 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
159 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
160 eval "enable_${ac_feature}=no" ;;
162 -enable-* | --enable-*)
163 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
164 # Reject names that are not valid shell variable names.
165 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
166 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
168 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
169 case "$ac_option" in
170 *=*) ;;
171 *) ac_optarg=yes ;;
172 esac
173 eval "enable_${ac_feature}='$ac_optarg'" ;;
175 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
176 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
177 | --exec | --exe | --ex)
178 ac_prev=exec_prefix ;;
179 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
180 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
181 | --exec=* | --exe=* | --ex=*)
182 exec_prefix="$ac_optarg" ;;
184 -gas | --gas | --ga | --g)
185 # Obsolete; use --with-gas.
186 with_gas=yes ;;
188 -help | --help | --hel | --he)
189 # Omit some internal or obsolete options to make the list less imposing.
190 # This message is too long to be a string in the A/UX 3.1 sh.
191 cat << EOF
192 Usage: configure [options] [host]
193 Options: [defaults in brackets after descriptions]
194 Configuration:
195 --cache-file=FILE cache test results in FILE
196 --help print this message
197 --no-create do not create output files
198 --quiet, --silent do not print \`checking...' messages
199 --version print the version of autoconf that created configure
200 Directory and file names:
201 --prefix=PREFIX install architecture-independent files in PREFIX
202 [$ac_default_prefix]
203 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
204 [same as prefix]
205 --bindir=DIR user executables in DIR [EPREFIX/bin]
206 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
207 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
208 --datadir=DIR read-only architecture-independent data in DIR
209 [PREFIX/share]
210 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
211 --sharedstatedir=DIR modifiable architecture-independent data in DIR
212 [PREFIX/com]
213 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
214 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
215 --includedir=DIR C header files in DIR [PREFIX/include]
216 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
217 --infodir=DIR info documentation in DIR [PREFIX/info]
218 --mandir=DIR man documentation in DIR [PREFIX/man]
219 --srcdir=DIR find the sources in DIR [configure dir or ..]
220 --program-prefix=PREFIX prepend PREFIX to installed program names
221 --program-suffix=SUFFIX append SUFFIX to installed program names
222 --program-transform-name=PROGRAM
223 run sed PROGRAM on installed program names
225 cat << EOF
226 Host type:
227 --build=BUILD configure for building on BUILD [BUILD=HOST]
228 --host=HOST configure for HOST [guessed]
229 --target=TARGET configure for TARGET [TARGET=HOST]
230 Features and packages:
231 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
232 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
233 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
234 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
235 --x-includes=DIR X include files are in DIR
236 --x-libraries=DIR X library files are in DIR
238 if test -n "$ac_help"; then
239 echo "--enable and --with options recognized:$ac_help"
241 exit 0 ;;
243 -host | --host | --hos | --ho)
244 ac_prev=host ;;
245 -host=* | --host=* | --hos=* | --ho=*)
246 host="$ac_optarg" ;;
248 -includedir | --includedir | --includedi | --included | --include \
249 | --includ | --inclu | --incl | --inc)
250 ac_prev=includedir ;;
251 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
252 | --includ=* | --inclu=* | --incl=* | --inc=*)
253 includedir="$ac_optarg" ;;
255 -infodir | --infodir | --infodi | --infod | --info | --inf)
256 ac_prev=infodir ;;
257 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
258 infodir="$ac_optarg" ;;
260 -libdir | --libdir | --libdi | --libd)
261 ac_prev=libdir ;;
262 -libdir=* | --libdir=* | --libdi=* | --libd=*)
263 libdir="$ac_optarg" ;;
265 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
266 | --libexe | --libex | --libe)
267 ac_prev=libexecdir ;;
268 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
269 | --libexe=* | --libex=* | --libe=*)
270 libexecdir="$ac_optarg" ;;
272 -localstatedir | --localstatedir | --localstatedi | --localstated \
273 | --localstate | --localstat | --localsta | --localst \
274 | --locals | --local | --loca | --loc | --lo)
275 ac_prev=localstatedir ;;
276 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
277 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
278 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
279 localstatedir="$ac_optarg" ;;
281 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
282 ac_prev=mandir ;;
283 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
284 mandir="$ac_optarg" ;;
286 -nfp | --nfp | --nf)
287 # Obsolete; use --without-fp.
288 with_fp=no ;;
290 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
291 | --no-cr | --no-c)
292 no_create=yes ;;
294 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
295 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
296 no_recursion=yes ;;
298 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
299 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
300 | --oldin | --oldi | --old | --ol | --o)
301 ac_prev=oldincludedir ;;
302 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
303 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
304 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
305 oldincludedir="$ac_optarg" ;;
307 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
308 ac_prev=prefix ;;
309 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
310 prefix="$ac_optarg" ;;
312 -program-prefix | --program-prefix | --program-prefi | --program-pref \
313 | --program-pre | --program-pr | --program-p)
314 ac_prev=program_prefix ;;
315 -program-prefix=* | --program-prefix=* | --program-prefi=* \
316 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
317 program_prefix="$ac_optarg" ;;
319 -program-suffix | --program-suffix | --program-suffi | --program-suff \
320 | --program-suf | --program-su | --program-s)
321 ac_prev=program_suffix ;;
322 -program-suffix=* | --program-suffix=* | --program-suffi=* \
323 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
324 program_suffix="$ac_optarg" ;;
326 -program-transform-name | --program-transform-name \
327 | --program-transform-nam | --program-transform-na \
328 | --program-transform-n | --program-transform- \
329 | --program-transform | --program-transfor \
330 | --program-transfo | --program-transf \
331 | --program-trans | --program-tran \
332 | --progr-tra | --program-tr | --program-t)
333 ac_prev=program_transform_name ;;
334 -program-transform-name=* | --program-transform-name=* \
335 | --program-transform-nam=* | --program-transform-na=* \
336 | --program-transform-n=* | --program-transform-=* \
337 | --program-transform=* | --program-transfor=* \
338 | --program-transfo=* | --program-transf=* \
339 | --program-trans=* | --program-tran=* \
340 | --progr-tra=* | --program-tr=* | --program-t=*)
341 program_transform_name="$ac_optarg" ;;
343 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
344 | -silent | --silent | --silen | --sile | --sil)
345 silent=yes ;;
347 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
348 ac_prev=sbindir ;;
349 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
350 | --sbi=* | --sb=*)
351 sbindir="$ac_optarg" ;;
353 -sharedstatedir | --sharedstatedir | --sharedstatedi \
354 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
355 | --sharedst | --shareds | --shared | --share | --shar \
356 | --sha | --sh)
357 ac_prev=sharedstatedir ;;
358 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
359 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
360 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
361 | --sha=* | --sh=*)
362 sharedstatedir="$ac_optarg" ;;
364 -site | --site | --sit)
365 ac_prev=site ;;
366 -site=* | --site=* | --sit=*)
367 site="$ac_optarg" ;;
369 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
370 ac_prev=srcdir ;;
371 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
372 srcdir="$ac_optarg" ;;
374 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
375 | --syscon | --sysco | --sysc | --sys | --sy)
376 ac_prev=sysconfdir ;;
377 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
378 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
379 sysconfdir="$ac_optarg" ;;
381 -target | --target | --targe | --targ | --tar | --ta | --t)
382 ac_prev=target ;;
383 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
384 target="$ac_optarg" ;;
386 -v | -verbose | --verbose | --verbos | --verbo | --verb)
387 verbose=yes ;;
389 -version | --version | --versio | --versi | --vers)
390 echo "configure generated by autoconf version 2.13"
391 exit 0 ;;
393 -with-* | --with-*)
394 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
395 # Reject names that are not valid shell variable names.
396 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
397 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
399 ac_package=`echo $ac_package| sed 's/-/_/g'`
400 case "$ac_option" in
401 *=*) ;;
402 *) ac_optarg=yes ;;
403 esac
404 eval "with_${ac_package}='$ac_optarg'" ;;
406 -without-* | --without-*)
407 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
408 # Reject names that are not valid shell variable names.
409 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
410 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
412 ac_package=`echo $ac_package| sed 's/-/_/g'`
413 eval "with_${ac_package}=no" ;;
415 --x)
416 # Obsolete; use --with-x.
417 with_x=yes ;;
419 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
420 | --x-incl | --x-inc | --x-in | --x-i)
421 ac_prev=x_includes ;;
422 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
423 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
424 x_includes="$ac_optarg" ;;
426 -x-libraries | --x-libraries | --x-librarie | --x-librari \
427 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
428 ac_prev=x_libraries ;;
429 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
430 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
431 x_libraries="$ac_optarg" ;;
433 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
437 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
438 echo "configure: warning: $ac_option: invalid host type" 1>&2
440 if test "x$nonopt" != xNONE; then
441 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
443 nonopt="$ac_option"
446 esac
447 done
449 if test -n "$ac_prev"; then
450 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
453 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
455 # File descriptor usage:
456 # 0 standard input
457 # 1 file creation
458 # 2 errors and warnings
459 # 3 some systems may open it to /dev/tty
460 # 4 used on the Kubota Titan
461 # 6 checking for... messages and results
462 # 5 compiler messages saved in config.log
463 if test "$silent" = yes; then
464 exec 6>/dev/null
465 else
466 exec 6>&1
468 exec 5>./config.log
470 echo "\
471 This file contains any messages produced by compilers while
472 running configure, to aid debugging if configure makes a mistake.
473 " 1>&5
475 # Strip out --no-create and --no-recursion so they do not pile up.
476 # Also quote any args containing shell metacharacters.
477 ac_configure_args=
478 for ac_arg
480 case "$ac_arg" in
481 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
482 | --no-cr | --no-c) ;;
483 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
484 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
485 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
486 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
487 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
488 esac
489 done
491 # NLS nuisances.
492 # Only set these to C if already set. These must not be set unconditionally
493 # because not all systems understand e.g. LANG=C (notably SCO).
494 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
495 # Non-C LC_CTYPE values break the ctype check.
496 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
497 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
498 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
499 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
501 # confdefs.h avoids OS command line length limits that DEFS can exceed.
502 rm -rf conftest* confdefs.h
503 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
504 echo > confdefs.h
506 # A filename unique to this package, relative to the directory that
507 # configure is in, which we can look for to find out if srcdir is correct.
508 ac_unique_file=java/lang/System.java
510 # Find the source files, if location was not specified.
511 if test -z "$srcdir"; then
512 ac_srcdir_defaulted=yes
513 # Try the directory containing this script, then its parent.
514 ac_prog=$0
515 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
516 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
517 srcdir=$ac_confdir
518 if test ! -r $srcdir/$ac_unique_file; then
519 srcdir=..
521 else
522 ac_srcdir_defaulted=no
524 if test ! -r $srcdir/$ac_unique_file; then
525 if test "$ac_srcdir_defaulted" = yes; then
526 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
527 else
528 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
531 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
533 # Prefer explicitly selected file to automatically selected ones.
534 if test -z "$CONFIG_SITE"; then
535 if test "x$prefix" != xNONE; then
536 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
537 else
538 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
541 for ac_site_file in $CONFIG_SITE; do
542 if test -r "$ac_site_file"; then
543 echo "loading site script $ac_site_file"
544 . "$ac_site_file"
546 done
548 if test -r "$cache_file"; then
549 echo "loading cache $cache_file"
550 . $cache_file
551 else
552 echo "creating cache $cache_file"
553 > $cache_file
556 ac_ext=c
557 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
558 ac_cpp='$CPP $CPPFLAGS'
559 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
560 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
561 cross_compiling=$ac_cv_prog_cc_cross
563 ac_exeext=
564 ac_objext=o
565 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
566 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
567 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
568 ac_n= ac_c='
569 ' ac_t=' '
570 else
571 ac_n=-n ac_c= ac_t=
573 else
574 ac_n= ac_c='\c' ac_t=
579 # This works around the fact that libtool configuration may change LD
580 # for this particular configuration, but some shells, instead of
581 # keeping the changes in LD private, export them just because LD is
582 # exported.
583 ORIGINAL_LD_FOR_MULTILIBS=$LD
585 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
586 echo "configure:587: checking whether ln -s works" >&5
587 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
588 echo $ac_n "(cached) $ac_c" 1>&6
589 else
590 rm -f conftestdata
591 if ln -s X conftestdata 2>/dev/null
592 then
593 rm -f conftestdata
594 ac_cv_prog_LN_S="ln -s"
595 else
596 ac_cv_prog_LN_S=ln
599 LN_S="$ac_cv_prog_LN_S"
600 if test "$ac_cv_prog_LN_S" = "ln -s"; then
601 echo "$ac_t""yes" 1>&6
602 else
603 echo "$ac_t""no" 1>&6
607 # Check whether --with-target-subdir or --without-target-subdir was given.
608 if test "${with_target_subdir+set}" = set; then
609 withval="$with_target_subdir"
613 # Check whether --with-cross-host or --without-cross-host was given.
614 if test "${with_cross_host+set}" = set; then
615 withval="$with_cross_host"
620 # Check whether --with-newlib or --without-newlib was given.
621 if test "${with_newlib+set}" = set; then
622 withval="$with_newlib"
627 # Find a good install program. We prefer a C program (faster),
628 # so one script is as good as another. But avoid the broken or
629 # incompatible versions:
630 # SysV /etc/install, /usr/sbin/install
631 # SunOS /usr/etc/install
632 # IRIX /sbin/install
633 # AIX /bin/install
634 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
635 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
636 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
637 # ./install, which can be erroneously created by make from ./install.sh.
638 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
639 echo "configure:640: checking for a BSD compatible install" >&5
640 if test -z "$INSTALL"; then
641 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
642 echo $ac_n "(cached) $ac_c" 1>&6
643 else
644 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
645 for ac_dir in $PATH; do
646 # Account for people who put trailing slashes in PATH elements.
647 case "$ac_dir/" in
648 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
650 # OSF1 and SCO ODT 3.0 have their own names for install.
651 # Don't use installbsd from OSF since it installs stuff as root
652 # by default.
653 for ac_prog in ginstall scoinst install; do
654 if test -f $ac_dir/$ac_prog; then
655 if test $ac_prog = install &&
656 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
657 # AIX install. It has an incompatible calling convention.
659 else
660 ac_cv_path_install="$ac_dir/$ac_prog -c"
661 break 2
664 done
666 esac
667 done
668 IFS="$ac_save_IFS"
671 if test "${ac_cv_path_install+set}" = set; then
672 INSTALL="$ac_cv_path_install"
673 else
674 # As a last resort, use the slow shell script. We don't cache a
675 # path for INSTALL within a source directory, because that will
676 # break other packages using the cache if that directory is
677 # removed, or if the path is relative.
678 INSTALL="$ac_install_sh"
681 echo "$ac_t""$INSTALL" 1>&6
683 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
684 # It thinks the first close brace ends the variable substitution.
685 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
687 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
689 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
691 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
692 echo "configure:693: checking whether build environment is sane" >&5
693 # Just in case
694 sleep 1
695 echo timestamp > conftestfile
696 # Do `set' in a subshell so we don't clobber the current shell's
697 # arguments. Must try -L first in case configure is actually a
698 # symlink; some systems play weird games with the mod time of symlinks
699 # (eg FreeBSD returns the mod time of the symlink's containing
700 # directory).
701 if (
702 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
703 if test "$*" = "X"; then
704 # -L didn't work.
705 set X `ls -t $srcdir/configure conftestfile`
707 if test "$*" != "X $srcdir/configure conftestfile" \
708 && test "$*" != "X conftestfile $srcdir/configure"; then
710 # If neither matched, then we have a broken ls. This can happen
711 # if, for instance, CONFIG_SHELL is bash and it inherits a
712 # broken ls alias from the environment. This has actually
713 # happened. Such a system could not be considered "sane".
714 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
715 alias in your environment" 1>&2; exit 1; }
718 test "$2" = conftestfile
720 then
721 # Ok.
723 else
724 { echo "configure: error: newly created file is older than distributed files!
725 Check your system clock" 1>&2; exit 1; }
727 rm -f conftest*
728 echo "$ac_t""yes" 1>&6
729 if test "$program_transform_name" = s,x,x,; then
730 program_transform_name=
731 else
732 # Double any \ or $. echo might interpret backslashes.
733 cat <<\EOF_SED > conftestsed
734 s,\\,\\\\,g; s,\$,$$,g
735 EOF_SED
736 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
737 rm -f conftestsed
739 test "$program_prefix" != NONE &&
740 program_transform_name="s,^,${program_prefix},; $program_transform_name"
741 # Use a double $ so make ignores it.
742 test "$program_suffix" != NONE &&
743 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
745 # sed with no file args requires a program.
746 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
748 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
749 echo "configure:750: checking whether ${MAKE-make} sets \${MAKE}" >&5
750 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
751 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
752 echo $ac_n "(cached) $ac_c" 1>&6
753 else
754 cat > conftestmake <<\EOF
755 all:
756 @echo 'ac_maketemp="${MAKE}"'
758 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
759 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
760 if test -n "$ac_maketemp"; then
761 eval ac_cv_prog_make_${ac_make}_set=yes
762 else
763 eval ac_cv_prog_make_${ac_make}_set=no
765 rm -f conftestmake
767 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
768 echo "$ac_t""yes" 1>&6
769 SET_MAKE=
770 else
771 echo "$ac_t""no" 1>&6
772 SET_MAKE="MAKE=${MAKE-make}"
775 if test $host != $build; then
776 ac_tool_prefix=${host_alias}-
777 else
778 ac_tool_prefix=
781 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
782 echo "configure:783: checking for Cygwin environment" >&5
783 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
784 echo $ac_n "(cached) $ac_c" 1>&6
785 else
786 cat > conftest.$ac_ext <<EOF
787 #line 788 "configure"
788 #include "confdefs.h"
790 int main() {
792 #ifndef __CYGWIN__
793 #define __CYGWIN__ __CYGWIN32__
794 #endif
795 return __CYGWIN__;
796 ; return 0; }
798 if { (eval echo configure:799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
799 rm -rf conftest*
800 ac_cv_cygwin=yes
801 else
802 echo "configure: failed program was:" >&5
803 cat conftest.$ac_ext >&5
804 rm -rf conftest*
805 ac_cv_cygwin=no
807 rm -f conftest*
808 rm -f conftest*
811 echo "$ac_t""$ac_cv_cygwin" 1>&6
812 CYGWIN=
813 test "$ac_cv_cygwin" = yes && CYGWIN=yes
814 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
815 echo "configure:816: checking for mingw32 environment" >&5
816 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
817 echo $ac_n "(cached) $ac_c" 1>&6
818 else
819 cat > conftest.$ac_ext <<EOF
820 #line 821 "configure"
821 #include "confdefs.h"
823 int main() {
824 return __MINGW32__;
825 ; return 0; }
827 if { (eval echo configure:828: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
828 rm -rf conftest*
829 ac_cv_mingw32=yes
830 else
831 echo "configure: failed program was:" >&5
832 cat conftest.$ac_ext >&5
833 rm -rf conftest*
834 ac_cv_mingw32=no
836 rm -f conftest*
837 rm -f conftest*
840 echo "$ac_t""$ac_cv_mingw32" 1>&6
841 MINGW32=
842 test "$ac_cv_mingw32" = yes && MINGW32=yes
844 # Check whether --enable-multilib or --disable-multilib was given.
845 if test "${enable_multilib+set}" = set; then
846 enableval="$enable_multilib"
847 case "${enableval}" in
848 yes) multilib=yes ;;
849 no) multilib=no ;;
850 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
851 esac
852 else
853 multilib=yes
857 # When building with srcdir == objdir, links to the source files will
858 # be created in directories within the target_subdir. We have to
859 # adjust toplevel_srcdir accordingly, so that configure finds
860 # install-sh and other auxiliary files that live in the top-level
861 # source directory.
862 if test "${srcdir}" = "."; then
863 if test -z "${with_target_subdir}"; then
864 toprel=".."
865 else
866 if test "${with_target_subdir}" != "."; then
867 toprel="${with_multisrctop}../.."
868 else
869 toprel="${with_multisrctop}.."
872 else
873 toprel=".."
876 libgcj_basedir=$srcdir/$toprel/./libjava
879 ac_aux_dir=
880 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
881 if test -f $ac_dir/install-sh; then
882 ac_aux_dir=$ac_dir
883 ac_install_sh="$ac_aux_dir/install-sh -c"
884 break
885 elif test -f $ac_dir/install.sh; then
886 ac_aux_dir=$ac_dir
887 ac_install_sh="$ac_aux_dir/install.sh -c"
888 break
890 done
891 if test -z "$ac_aux_dir"; then
892 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
894 ac_config_guess=$ac_aux_dir/config.guess
895 ac_config_sub=$ac_aux_dir/config.sub
896 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
898 if :; then :; else
899 # This overrides the previous occurrence for automake, but not for
900 # autoconf, which is exactly what we want.
901 ac_aux_dir=
902 for ac_dir in .. $srcdir/..; do
903 if test -f $ac_dir/install-sh; then
904 ac_aux_dir=$ac_dir
905 ac_install_sh="$ac_aux_dir/install-sh -c"
906 break
907 elif test -f $ac_dir/install.sh; then
908 ac_aux_dir=$ac_dir
909 ac_install_sh="$ac_aux_dir/install.sh -c"
910 break
912 done
913 if test -z "$ac_aux_dir"; then
914 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
916 ac_config_guess=$ac_aux_dir/config.guess
917 ac_config_sub=$ac_aux_dir/config.sub
918 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
922 # This works around an automake problem.
923 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
927 # Do some error checking and defaulting for the host and target type.
928 # The inputs are:
929 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
931 # The rules are:
932 # 1. You are not allowed to specify --host, --target, and nonopt at the
933 # same time.
934 # 2. Host defaults to nonopt.
935 # 3. If nonopt is not specified, then host defaults to the current host,
936 # as determined by config.guess.
937 # 4. Target and build default to nonopt.
938 # 5. If nonopt is not specified, then target and build default to host.
940 # The aliases save the names the user supplied, while $host etc.
941 # will get canonicalized.
942 case $host---$target---$nonopt in
943 NONE---*---* | *---NONE---* | *---*---NONE) ;;
944 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
945 esac
948 # Make sure we can run config.sub.
949 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
950 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
953 echo $ac_n "checking host system type""... $ac_c" 1>&6
954 echo "configure:955: checking host system type" >&5
956 host_alias=$host
957 case "$host_alias" in
958 NONE)
959 case $nonopt in
960 NONE)
961 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
962 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
963 fi ;;
964 *) host_alias=$nonopt ;;
965 esac ;;
966 esac
968 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
969 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
970 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
971 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
972 echo "$ac_t""$host" 1>&6
974 echo $ac_n "checking target system type""... $ac_c" 1>&6
975 echo "configure:976: checking target system type" >&5
977 target_alias=$target
978 case "$target_alias" in
979 NONE)
980 case $nonopt in
981 NONE) target_alias=$host_alias ;;
982 *) target_alias=$nonopt ;;
983 esac ;;
984 esac
986 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
987 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
988 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
989 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
990 echo "$ac_t""$target" 1>&6
992 echo $ac_n "checking build system type""... $ac_c" 1>&6
993 echo "configure:994: checking build system type" >&5
995 build_alias=$build
996 case "$build_alias" in
997 NONE)
998 case $nonopt in
999 NONE) build_alias=$host_alias ;;
1000 *) build_alias=$nonopt ;;
1001 esac ;;
1002 esac
1004 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1005 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1006 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1007 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1008 echo "$ac_t""$build" 1>&6
1010 test "$host_alias" != "$target_alias" &&
1011 test "$program_prefix$program_suffix$program_transform_name" = \
1012 NONENONEs,x,x, &&
1013 program_prefix=${target_alias}-
1019 # Extract the first word of "gcc", so it can be a program name with args.
1020 set dummy gcc; ac_word=$2
1021 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1022 echo "configure:1023: checking for $ac_word" >&5
1023 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1024 echo $ac_n "(cached) $ac_c" 1>&6
1025 else
1026 if test -n "$CC"; then
1027 ac_cv_prog_CC="$CC" # Let the user override the test.
1028 else
1029 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1030 ac_dummy="$PATH"
1031 for ac_dir in $ac_dummy; do
1032 test -z "$ac_dir" && ac_dir=.
1033 if test -f $ac_dir/$ac_word; then
1034 ac_cv_prog_CC="gcc"
1035 break
1037 done
1038 IFS="$ac_save_ifs"
1041 CC="$ac_cv_prog_CC"
1042 if test -n "$CC"; then
1043 echo "$ac_t""$CC" 1>&6
1044 else
1045 echo "$ac_t""no" 1>&6
1048 if test -z "$CC"; then
1049 # Extract the first word of "cc", so it can be a program name with args.
1050 set dummy cc; ac_word=$2
1051 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1052 echo "configure:1053: checking for $ac_word" >&5
1053 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1054 echo $ac_n "(cached) $ac_c" 1>&6
1055 else
1056 if test -n "$CC"; then
1057 ac_cv_prog_CC="$CC" # Let the user override the test.
1058 else
1059 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1060 ac_prog_rejected=no
1061 ac_dummy="$PATH"
1062 for ac_dir in $ac_dummy; do
1063 test -z "$ac_dir" && ac_dir=.
1064 if test -f $ac_dir/$ac_word; then
1065 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1066 ac_prog_rejected=yes
1067 continue
1069 ac_cv_prog_CC="cc"
1070 break
1072 done
1073 IFS="$ac_save_ifs"
1074 if test $ac_prog_rejected = yes; then
1075 # We found a bogon in the path, so make sure we never use it.
1076 set dummy $ac_cv_prog_CC
1077 shift
1078 if test $# -gt 0; then
1079 # We chose a different compiler from the bogus one.
1080 # However, it has the same basename, so the bogon will be chosen
1081 # first if we set CC to just the basename; use the full file name.
1082 shift
1083 set dummy "$ac_dir/$ac_word" "$@"
1084 shift
1085 ac_cv_prog_CC="$@"
1090 CC="$ac_cv_prog_CC"
1091 if test -n "$CC"; then
1092 echo "$ac_t""$CC" 1>&6
1093 else
1094 echo "$ac_t""no" 1>&6
1097 if test -z "$CC"; then
1098 case "`uname -s`" in
1099 *win32* | *WIN32*)
1100 # Extract the first word of "cl", so it can be a program name with args.
1101 set dummy cl; ac_word=$2
1102 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1103 echo "configure:1104: checking for $ac_word" >&5
1104 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1105 echo $ac_n "(cached) $ac_c" 1>&6
1106 else
1107 if test -n "$CC"; then
1108 ac_cv_prog_CC="$CC" # Let the user override the test.
1109 else
1110 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1111 ac_dummy="$PATH"
1112 for ac_dir in $ac_dummy; do
1113 test -z "$ac_dir" && ac_dir=.
1114 if test -f $ac_dir/$ac_word; then
1115 ac_cv_prog_CC="cl"
1116 break
1118 done
1119 IFS="$ac_save_ifs"
1122 CC="$ac_cv_prog_CC"
1123 if test -n "$CC"; then
1124 echo "$ac_t""$CC" 1>&6
1125 else
1126 echo "$ac_t""no" 1>&6
1129 esac
1131 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1135 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1136 echo "configure:1137: checking whether we are using GNU C" >&5
1137 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1138 echo $ac_n "(cached) $ac_c" 1>&6
1139 else
1140 cat > conftest.c <<EOF
1141 #ifdef __GNUC__
1142 yes;
1143 #endif
1145 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1146 ac_cv_prog_gcc=yes
1147 else
1148 ac_cv_prog_gcc=no
1152 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1154 if test $ac_cv_prog_gcc = yes; then
1155 GCC=yes
1156 else
1157 GCC=
1160 ac_test_CFLAGS="${CFLAGS+set}"
1161 ac_save_CFLAGS="$CFLAGS"
1162 CFLAGS=
1163 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1164 echo "configure:1165: checking whether ${CC-cc} accepts -g" >&5
1165 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1166 echo $ac_n "(cached) $ac_c" 1>&6
1167 else
1168 echo 'void f(){}' > conftest.c
1169 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1170 ac_cv_prog_cc_g=yes
1171 else
1172 ac_cv_prog_cc_g=no
1174 rm -f conftest*
1178 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1179 if test "$ac_test_CFLAGS" = set; then
1180 CFLAGS="$ac_save_CFLAGS"
1181 elif test $ac_cv_prog_cc_g = yes; then
1182 if test "$GCC" = yes; then
1183 CFLAGS="-g -O2"
1184 else
1185 CFLAGS="-g"
1187 else
1188 if test "$GCC" = yes; then
1189 CFLAGS="-O2"
1190 else
1191 CFLAGS=
1196 # We use the libstdc++-v3 version of LIB_AC_PROG_CXX, but use
1197 # glibjava_CXX instead of glibcpp_CXX. That's because we're passed a
1198 # different definition of CXX than other directories, since we don't
1199 # depend on libstdc++-v3 having already been built.
1203 # Use glibjava_CXX so that we do not cause CXX to be cached with the
1204 # flags that come in CXX while configuring libjava. They're different
1205 # from those used for all other target libraries. If CXX is set in
1206 # the environment, respect that here.
1207 glibjava_CXX=$CXX
1208 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1210 # Extract the first word of "$ac_prog", so it can be a program name with args.
1211 set dummy $ac_prog; ac_word=$2
1212 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1213 echo "configure:1214: checking for $ac_word" >&5
1214 if eval "test \"`echo '$''{'ac_cv_prog_glibjava_CXX'+set}'`\" = set"; then
1215 echo $ac_n "(cached) $ac_c" 1>&6
1216 else
1217 if test -n "$glibjava_CXX"; then
1218 ac_cv_prog_glibjava_CXX="$glibjava_CXX" # Let the user override the test.
1219 else
1220 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1221 ac_dummy="$PATH"
1222 for ac_dir in $ac_dummy; do
1223 test -z "$ac_dir" && ac_dir=.
1224 if test -f $ac_dir/$ac_word; then
1225 ac_cv_prog_glibjava_CXX="$ac_prog"
1226 break
1228 done
1229 IFS="$ac_save_ifs"
1232 glibjava_CXX="$ac_cv_prog_glibjava_CXX"
1233 if test -n "$glibjava_CXX"; then
1234 echo "$ac_t""$glibjava_CXX" 1>&6
1235 else
1236 echo "$ac_t""no" 1>&6
1239 test -n "$glibjava_CXX" && break
1240 done
1241 test -n "$glibjava_CXX" || glibjava_CXX="gcc"
1244 CXX=$glibjava_CXX
1245 test -z "$glibjava_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1247 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1248 echo "configure:1249: checking whether we are using GNU C++" >&5
1249 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1250 echo $ac_n "(cached) $ac_c" 1>&6
1251 else
1252 cat > conftest.C <<EOF
1253 #ifdef __GNUC__
1254 yes;
1255 #endif
1257 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1258: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1258 ac_cv_prog_gxx=yes
1259 else
1260 ac_cv_prog_gxx=no
1264 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1266 if test $ac_cv_prog_gxx = yes; then
1267 GXX=yes
1268 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1269 ac_save_CXXFLAGS="$CXXFLAGS"
1270 CXXFLAGS=
1271 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1272 echo "configure:1273: checking whether ${CXX-g++} accepts -g" >&5
1273 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1274 echo $ac_n "(cached) $ac_c" 1>&6
1275 else
1276 echo 'void f(){}' > conftest.cc
1277 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1278 ac_cv_prog_cxx_g=yes
1279 else
1280 ac_cv_prog_cxx_g=no
1282 rm -f conftest*
1286 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1287 if test "$ac_test_CXXFLAGS" = set; then
1288 CXXFLAGS="$ac_save_CXXFLAGS"
1289 elif test $ac_cv_prog_cxx_g = yes; then
1290 CXXFLAGS="-g -O2"
1291 else
1292 CXXFLAGS="-O2"
1294 else
1295 GXX=
1296 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1300 version=0.0.7
1302 PACKAGE=libjava
1304 VERSION=$version
1306 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1307 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1309 cat >> confdefs.h <<EOF
1310 #define PACKAGE "$PACKAGE"
1313 cat >> confdefs.h <<EOF
1314 #define VERSION "$VERSION"
1319 missing_dir=`cd $ac_aux_dir && pwd`
1320 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1321 echo "configure:1322: checking for working aclocal" >&5
1322 # Run test in a subshell; some versions of sh will print an error if
1323 # an executable is not found, even if stderr is redirected.
1324 # Redirect stdin to placate older versions of autoconf. Sigh.
1325 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1326 ACLOCAL=aclocal
1327 echo "$ac_t""found" 1>&6
1328 else
1329 ACLOCAL="$missing_dir/missing aclocal"
1330 echo "$ac_t""missing" 1>&6
1333 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1334 echo "configure:1335: checking for working autoconf" >&5
1335 # Run test in a subshell; some versions of sh will print an error if
1336 # an executable is not found, even if stderr is redirected.
1337 # Redirect stdin to placate older versions of autoconf. Sigh.
1338 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1339 AUTOCONF=autoconf
1340 echo "$ac_t""found" 1>&6
1341 else
1342 AUTOCONF="$missing_dir/missing autoconf"
1343 echo "$ac_t""missing" 1>&6
1346 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1347 echo "configure:1348: checking for working automake" >&5
1348 # Run test in a subshell; some versions of sh will print an error if
1349 # an executable is not found, even if stderr is redirected.
1350 # Redirect stdin to placate older versions of autoconf. Sigh.
1351 if (automake --version) < /dev/null > /dev/null 2>&1; then
1352 AUTOMAKE=automake
1353 echo "$ac_t""found" 1>&6
1354 else
1355 AUTOMAKE="$missing_dir/missing automake"
1356 echo "$ac_t""missing" 1>&6
1359 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1360 echo "configure:1361: checking for working autoheader" >&5
1361 # Run test in a subshell; some versions of sh will print an error if
1362 # an executable is not found, even if stderr is redirected.
1363 # Redirect stdin to placate older versions of autoconf. Sigh.
1364 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1365 AUTOHEADER=autoheader
1366 echo "$ac_t""found" 1>&6
1367 else
1368 AUTOHEADER="$missing_dir/missing autoheader"
1369 echo "$ac_t""missing" 1>&6
1372 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1373 echo "configure:1374: checking for working makeinfo" >&5
1374 # Run test in a subshell; some versions of sh will print an error if
1375 # an executable is not found, even if stderr is redirected.
1376 # Redirect stdin to placate older versions of autoconf. Sigh.
1377 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1378 MAKEINFO=makeinfo
1379 echo "$ac_t""found" 1>&6
1380 else
1381 MAKEINFO="$missing_dir/missing makeinfo"
1382 echo "$ac_t""missing" 1>&6
1387 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we don't
1388 # run it explicitly here, it will be run implicitly before
1389 # LIBGCJ_CONFIGURE, which doesn't work because that means that it will
1390 # be run before AC_CANONICAL_HOST.
1391 echo $ac_n "checking build system type""... $ac_c" 1>&6
1392 echo "configure:1393: checking build system type" >&5
1394 build_alias=$build
1395 case "$build_alias" in
1396 NONE)
1397 case $nonopt in
1398 NONE) build_alias=$host_alias ;;
1399 *) build_alias=$nonopt ;;
1400 esac ;;
1401 esac
1403 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1404 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1405 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1406 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1407 echo "$ac_t""$build" 1>&6
1410 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1411 set dummy ${ac_tool_prefix}as; 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_AS'+set}'`\" = set"; then
1415 echo $ac_n "(cached) $ac_c" 1>&6
1416 else
1417 if test -n "$AS"; then
1418 ac_cv_prog_AS="$AS" # 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_AS="${ac_tool_prefix}as"
1426 break
1428 done
1429 IFS="$ac_save_ifs"
1430 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1433 AS="$ac_cv_prog_AS"
1434 if test -n "$AS"; then
1435 echo "$ac_t""$AS" 1>&6
1436 else
1437 echo "$ac_t""no" 1>&6
1442 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1443 set dummy ${ac_tool_prefix}ar; ac_word=$2
1444 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1445 echo "configure:1446: checking for $ac_word" >&5
1446 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1447 echo $ac_n "(cached) $ac_c" 1>&6
1448 else
1449 if test -n "$AR"; then
1450 ac_cv_prog_AR="$AR" # Let the user override the test.
1451 else
1452 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1453 ac_dummy="$PATH"
1454 for ac_dir in $ac_dummy; do
1455 test -z "$ac_dir" && ac_dir=.
1456 if test -f $ac_dir/$ac_word; then
1457 ac_cv_prog_AR="${ac_tool_prefix}ar"
1458 break
1460 done
1461 IFS="$ac_save_ifs"
1462 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1465 AR="$ac_cv_prog_AR"
1466 if test -n "$AR"; then
1467 echo "$ac_t""$AR" 1>&6
1468 else
1469 echo "$ac_t""no" 1>&6
1474 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1475 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1476 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1477 echo "configure:1478: checking for $ac_word" >&5
1478 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1479 echo $ac_n "(cached) $ac_c" 1>&6
1480 else
1481 if test -n "$RANLIB"; then
1482 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1483 else
1484 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1485 ac_dummy="$PATH"
1486 for ac_dir in $ac_dummy; do
1487 test -z "$ac_dir" && ac_dir=.
1488 if test -f $ac_dir/$ac_word; then
1489 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1490 break
1492 done
1493 IFS="$ac_save_ifs"
1496 RANLIB="$ac_cv_prog_RANLIB"
1497 if test -n "$RANLIB"; then
1498 echo "$ac_t""$RANLIB" 1>&6
1499 else
1500 echo "$ac_t""no" 1>&6
1504 if test -z "$ac_cv_prog_RANLIB"; then
1505 if test -n "$ac_tool_prefix"; then
1506 # Extract the first word of "ranlib", so it can be a program name with args.
1507 set dummy ranlib; ac_word=$2
1508 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1509 echo "configure:1510: checking for $ac_word" >&5
1510 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1511 echo $ac_n "(cached) $ac_c" 1>&6
1512 else
1513 if test -n "$RANLIB"; then
1514 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1515 else
1516 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1517 ac_dummy="$PATH"
1518 for ac_dir in $ac_dummy; do
1519 test -z "$ac_dir" && ac_dir=.
1520 if test -f $ac_dir/$ac_word; then
1521 ac_cv_prog_RANLIB="ranlib"
1522 break
1524 done
1525 IFS="$ac_save_ifs"
1526 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1529 RANLIB="$ac_cv_prog_RANLIB"
1530 if test -n "$RANLIB"; then
1531 echo "$ac_t""$RANLIB" 1>&6
1532 else
1533 echo "$ac_t""no" 1>&6
1536 else
1537 RANLIB=":"
1542 # Find a good install program. We prefer a C program (faster),
1543 # so one script is as good as another. But avoid the broken or
1544 # incompatible versions:
1545 # SysV /etc/install, /usr/sbin/install
1546 # SunOS /usr/etc/install
1547 # IRIX /sbin/install
1548 # AIX /bin/install
1549 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1550 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1551 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1552 # ./install, which can be erroneously created by make from ./install.sh.
1553 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1554 echo "configure:1555: checking for a BSD compatible install" >&5
1555 if test -z "$INSTALL"; then
1556 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1557 echo $ac_n "(cached) $ac_c" 1>&6
1558 else
1559 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1560 for ac_dir in $PATH; do
1561 # Account for people who put trailing slashes in PATH elements.
1562 case "$ac_dir/" in
1563 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1565 # OSF1 and SCO ODT 3.0 have their own names for install.
1566 # Don't use installbsd from OSF since it installs stuff as root
1567 # by default.
1568 for ac_prog in ginstall scoinst install; do
1569 if test -f $ac_dir/$ac_prog; then
1570 if test $ac_prog = install &&
1571 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1572 # AIX install. It has an incompatible calling convention.
1574 else
1575 ac_cv_path_install="$ac_dir/$ac_prog -c"
1576 break 2
1579 done
1581 esac
1582 done
1583 IFS="$ac_save_IFS"
1586 if test "${ac_cv_path_install+set}" = set; then
1587 INSTALL="$ac_cv_path_install"
1588 else
1589 # As a last resort, use the slow shell script. We don't cache a
1590 # path for INSTALL within a source directory, because that will
1591 # break other packages using the cache if that directory is
1592 # removed, or if the path is relative.
1593 INSTALL="$ac_install_sh"
1596 echo "$ac_t""$INSTALL" 1>&6
1598 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1599 # It thinks the first close brace ends the variable substitution.
1600 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1602 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1604 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1607 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1608 echo "configure:1609: checking whether to enable maintainer-specific portions of Makefiles" >&5
1609 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1610 if test "${enable_maintainer_mode+set}" = set; then
1611 enableval="$enable_maintainer_mode"
1612 USE_MAINTAINER_MODE=$enableval
1613 else
1614 USE_MAINTAINER_MODE=no
1617 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1620 if test $USE_MAINTAINER_MODE = yes; then
1621 MAINTAINER_MODE_TRUE=
1622 MAINTAINER_MODE_FALSE='#'
1623 else
1624 MAINTAINER_MODE_TRUE='#'
1625 MAINTAINER_MODE_FALSE=
1627 MAINT=$MAINTAINER_MODE_TRUE
1633 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1634 echo "configure:1635: checking for executable suffix" >&5
1635 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1636 echo $ac_n "(cached) $ac_c" 1>&6
1637 else
1638 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1639 ac_cv_exeext=.exe
1640 else
1641 rm -f conftest*
1642 echo 'int main () { return 0; }' > conftest.$ac_ext
1643 ac_cv_exeext=
1644 if { (eval echo configure:1645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1645 for file in conftest.*; do
1646 case $file in
1647 *.c | *.o | *.obj) ;;
1648 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1649 esac
1650 done
1651 else
1652 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1654 rm -f conftest*
1655 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1659 EXEEXT=""
1660 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1661 echo "$ac_t""${ac_cv_exeext}" 1>&6
1662 ac_exeext=$EXEEXT
1665 # configure.host sets the following important variables
1666 # libgcj_cflags - host specific C compiler flags
1667 # libgcj_cxxflags - host specific C++ compiler flags
1668 # libgcj_javaflags - host specific Java compiler flags
1670 libgcj_cflags=
1671 libgcj_cxxflags=
1672 libgcj_javaflags=
1674 . ${srcdir}/configure.host
1676 LIBGCJ_CFLAGS="${libgcj_cflags}"
1677 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
1678 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
1688 # Only use libltdl for native builds.
1689 if test -z "${with_cross_host}"; then
1690 case $enable_ltdl_convenience in
1691 no) { echo "configure: error: this package needs a convenience libltdl" 1>&2; exit 1; } ;;
1692 "") enable_ltdl_convenience=yes
1693 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
1694 esac
1695 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
1696 INCLTDL='-I${top_srcdir}/''libltdl'
1699 DIRLTDL=libltdl
1700 cat >> confdefs.h <<\EOF
1701 #define USE_LTDL 1
1704 # Sigh. Libtool's macro doesn't do the right thing.
1705 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
1706 # FIXME: this is a hack.
1707 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
1708 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
1713 # Check whether --enable-shared or --disable-shared was given.
1714 if test "${enable_shared+set}" = set; then
1715 enableval="$enable_shared"
1716 p=${PACKAGE-default}
1717 case $enableval in
1718 yes) enable_shared=yes ;;
1719 no) enable_shared=no ;;
1721 enable_shared=no
1722 # Look at the argument we got. We use all the common list separators.
1723 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1724 for pkg in $enableval; do
1725 if test "X$pkg" = "X$p"; then
1726 enable_shared=yes
1728 done
1729 IFS="$ac_save_ifs"
1731 esac
1732 else
1733 enable_shared=yes
1736 # Check whether --enable-static or --disable-static was given.
1737 if test "${enable_static+set}" = set; then
1738 enableval="$enable_static"
1739 p=${PACKAGE-default}
1740 case $enableval in
1741 yes) enable_static=yes ;;
1742 no) enable_static=no ;;
1744 enable_static=no
1745 # Look at the argument we got. We use all the common list separators.
1746 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1747 for pkg in $enableval; do
1748 if test "X$pkg" = "X$p"; then
1749 enable_static=yes
1751 done
1752 IFS="$ac_save_ifs"
1754 esac
1755 else
1756 enable_static=yes
1759 # Check whether --enable-fast-install or --disable-fast-install was given.
1760 if test "${enable_fast_install+set}" = set; then
1761 enableval="$enable_fast_install"
1762 p=${PACKAGE-default}
1763 case $enableval in
1764 yes) enable_fast_install=yes ;;
1765 no) enable_fast_install=no ;;
1767 enable_fast_install=no
1768 # Look at the argument we got. We use all the common list separators.
1769 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1770 for pkg in $enableval; do
1771 if test "X$pkg" = "X$p"; then
1772 enable_fast_install=yes
1774 done
1775 IFS="$ac_save_ifs"
1777 esac
1778 else
1779 enable_fast_install=yes
1782 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1783 if test "${with_gnu_ld+set}" = set; then
1784 withval="$with_gnu_ld"
1785 test "$withval" = no || with_gnu_ld=yes
1786 else
1787 with_gnu_ld=no
1790 ac_prog=ld
1791 if test "$GCC" = yes; then
1792 # Check if gcc -print-prog-name=ld gives a path.
1793 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1794 echo "configure:1795: checking for ld used by GCC" >&5
1795 case $host in
1796 *-*-mingw*)
1797 # gcc leaves a trailing carriage return which upsets mingw
1798 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1800 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1801 esac
1802 case $ac_prog in
1803 # Accept absolute paths.
1804 [\\/]* | [A-Za-z]:[\\/]*)
1805 re_direlt='/[^/][^/]*/\.\./'
1806 # Canonicalize the path of ld
1807 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1808 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1809 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1810 done
1811 test -z "$LD" && LD="$ac_prog"
1814 # If it fails, then pretend we aren't using GCC.
1815 ac_prog=ld
1818 # If it is relative, then search for the first ld in PATH.
1819 with_gnu_ld=unknown
1821 esac
1822 elif test "$with_gnu_ld" = yes; then
1823 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1824 echo "configure:1825: checking for GNU ld" >&5
1825 else
1826 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1827 echo "configure:1828: checking for non-GNU ld" >&5
1829 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1830 echo $ac_n "(cached) $ac_c" 1>&6
1831 else
1832 if test -z "$LD"; then
1833 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1834 for ac_dir in $PATH; do
1835 test -z "$ac_dir" && ac_dir=.
1836 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1837 lt_cv_path_LD="$ac_dir/$ac_prog"
1838 # Check to see if the program is GNU ld. I'd rather use --version,
1839 # but apparently some GNU ld's only accept -v.
1840 # Break only if it was the GNU/non-GNU ld that we prefer.
1841 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1842 test "$with_gnu_ld" != no && break
1843 else
1844 test "$with_gnu_ld" != yes && break
1847 done
1848 IFS="$ac_save_ifs"
1849 else
1850 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1854 LD="$lt_cv_path_LD"
1855 if test -n "$LD"; then
1856 echo "$ac_t""$LD" 1>&6
1857 else
1858 echo "$ac_t""no" 1>&6
1860 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1861 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1862 echo "configure:1863: checking if the linker ($LD) is GNU ld" >&5
1863 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1864 echo $ac_n "(cached) $ac_c" 1>&6
1865 else
1866 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1867 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1868 lt_cv_prog_gnu_ld=yes
1869 else
1870 lt_cv_prog_gnu_ld=no
1874 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1875 with_gnu_ld=$lt_cv_prog_gnu_ld
1878 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1879 echo "configure:1880: checking for $LD option to reload object files" >&5
1880 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1881 echo $ac_n "(cached) $ac_c" 1>&6
1882 else
1883 lt_cv_ld_reload_flag='-r'
1886 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1887 reload_flag=$lt_cv_ld_reload_flag
1888 test -n "$reload_flag" && reload_flag=" $reload_flag"
1890 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1891 echo "configure:1892: checking for BSD-compatible nm" >&5
1892 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1893 echo $ac_n "(cached) $ac_c" 1>&6
1894 else
1895 if test -n "$NM"; then
1896 # Let the user override the test.
1897 lt_cv_path_NM="$NM"
1898 else
1899 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1900 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1901 test -z "$ac_dir" && ac_dir=.
1902 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1903 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1904 # Check to see if the nm accepts a BSD-compat flag.
1905 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1906 # nm: unknown option "B" ignored
1907 # Tru64's nm complains that /dev/null is an invalid object file
1908 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1909 lt_cv_path_NM="$tmp_nm -B"
1910 break
1911 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1912 lt_cv_path_NM="$tmp_nm -p"
1913 break
1914 else
1915 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1916 continue # so that we can try to find one that supports BSD flags
1919 done
1920 IFS="$ac_save_ifs"
1921 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1925 NM="$lt_cv_path_NM"
1926 echo "$ac_t""$NM" 1>&6
1928 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1929 echo "configure:1930: checking how to recognise dependant libraries" >&5
1930 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1931 echo $ac_n "(cached) $ac_c" 1>&6
1932 else
1933 lt_cv_file_magic_cmd='$MAGIC_CMD'
1934 lt_cv_file_magic_test_file=
1935 lt_cv_deplibs_check_method='unknown'
1936 # Need to set the preceding variable on all platforms that support
1937 # interlibrary dependencies.
1938 # 'none' -- dependencies not supported.
1939 # `unknown' -- same as none, but documents that we really don't know.
1940 # 'pass_all' -- all dependencies passed with no checks.
1941 # 'test_compile' -- check by making test program.
1942 # 'file_magic [regex]' -- check by looking for files in library path
1943 # which responds to the $file_magic_cmd with a given egrep regex.
1944 # If you have `file' or equivalent on your system and you're not sure
1945 # whether `pass_all' will *always* work, you probably want this one.
1947 case $host_os in
1948 aix*)
1949 lt_cv_deplibs_check_method=pass_all
1952 beos*)
1953 lt_cv_deplibs_check_method=pass_all
1956 bsdi4*)
1957 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1958 lt_cv_file_magic_cmd='/usr/bin/file -L'
1959 lt_cv_file_magic_test_file=/shlib/libc.so
1962 cygwin* | mingw* |pw32*)
1963 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1964 lt_cv_file_magic_cmd='$OBJDUMP -f'
1967 darwin* | rhapsody*)
1968 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1969 lt_cv_file_magic_cmd='/usr/bin/file -L'
1970 case "$host_os" in
1971 rhapsody* | darwin1.012)
1972 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1974 *) # Darwin 1.3 on
1975 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1977 esac
1980 freebsd* )
1981 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1982 case $host_cpu in
1983 i*86 )
1984 # Not sure whether the presence of OpenBSD here was a mistake.
1985 # Let's accept both of them until this is cleared up.
1986 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1987 lt_cv_file_magic_cmd=/usr/bin/file
1988 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1990 esac
1991 else
1992 lt_cv_deplibs_check_method=pass_all
1996 gnu*)
1997 lt_cv_deplibs_check_method=pass_all
2000 hpux10.20*|hpux11*)
2001 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2002 lt_cv_file_magic_cmd=/usr/bin/file
2003 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2006 irix5* | irix6*)
2007 case $host_os in
2008 irix5*)
2009 # this will be overridden with pass_all, but let us keep it just in case
2010 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2013 case $LD in
2014 *-32|*"-32 ") libmagic=32-bit;;
2015 *-n32|*"-n32 ") libmagic=N32;;
2016 *-64|*"-64 ") libmagic=64-bit;;
2017 *) libmagic=never-match;;
2018 esac
2019 # this will be overridden with pass_all, but let us keep it just in case
2020 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2022 esac
2023 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2024 lt_cv_deplibs_check_method=pass_all
2027 # This must be Linux ELF.
2028 linux-gnu*)
2029 case $host_cpu in
2030 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2031 lt_cv_deplibs_check_method=pass_all ;;
2033 # glibc up to 2.1.1 does not perform some relocations on ARM
2034 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2035 esac
2036 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2039 netbsd*)
2040 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2041 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2042 else
2043 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2047 newsos6)
2048 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2049 lt_cv_file_magic_cmd=/usr/bin/file
2050 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2053 osf3* | osf4* | osf5*)
2054 # this will be overridden with pass_all, but let us keep it just in case
2055 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2056 lt_cv_file_magic_test_file=/shlib/libc.so
2057 lt_cv_deplibs_check_method=pass_all
2060 sco3.2v5*)
2061 lt_cv_deplibs_check_method=pass_all
2064 solaris*)
2065 lt_cv_deplibs_check_method=pass_all
2066 lt_cv_file_magic_test_file=/lib/libc.so
2069 sysv5uw[78]* | sysv4*uw2*)
2070 lt_cv_deplibs_check_method=pass_all
2073 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2074 case $host_vendor in
2075 ncr)
2076 lt_cv_deplibs_check_method=pass_all
2078 motorola)
2079 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
2080 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2082 esac
2084 esac
2088 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2089 file_magic_cmd=$lt_cv_file_magic_cmd
2090 deplibs_check_method=$lt_cv_deplibs_check_method
2092 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2093 echo "configure:2094: checking for object suffix" >&5
2094 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2095 echo $ac_n "(cached) $ac_c" 1>&6
2096 else
2097 rm -f conftest*
2098 echo 'int i = 1;' > conftest.$ac_ext
2099 if { (eval echo configure:2100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2100 for ac_file in conftest.*; do
2101 case $ac_file in
2102 *.c) ;;
2103 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2104 esac
2105 done
2106 else
2107 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2109 rm -f conftest*
2112 echo "$ac_t""$ac_cv_objext" 1>&6
2113 OBJEXT=$ac_cv_objext
2114 ac_objext=$ac_cv_objext
2116 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2118 # Only perform the check for file, if the check method requires it
2119 case $deplibs_check_method in
2120 file_magic*)
2121 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2122 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2123 echo "configure:2124: checking for ${ac_tool_prefix}file" >&5
2124 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2125 echo $ac_n "(cached) $ac_c" 1>&6
2126 else
2127 case $MAGIC_CMD in
2129 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2131 ?:/*)
2132 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2135 ac_save_MAGIC_CMD="$MAGIC_CMD"
2136 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2137 ac_dummy="/usr/bin:$PATH"
2138 for ac_dir in $ac_dummy; do
2139 test -z "$ac_dir" && ac_dir=.
2140 if test -f $ac_dir/${ac_tool_prefix}file; then
2141 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2142 if test -n "$file_magic_test_file"; then
2143 case $deplibs_check_method in
2144 "file_magic "*)
2145 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2146 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2147 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2148 egrep "$file_magic_regex" > /dev/null; then
2150 else
2151 cat <<EOF 1>&2
2153 *** Warning: the command libtool uses to detect shared libraries,
2154 *** $file_magic_cmd, produces output that libtool cannot recognize.
2155 *** The result is that libtool may fail to recognize shared libraries
2156 *** as such. This will affect the creation of libtool libraries that
2157 *** depend on shared libraries, but programs linked with such libtool
2158 *** libraries will work regardless of this problem. Nevertheless, you
2159 *** may want to report the problem to your system manager and/or to
2160 *** bug-libtool@gnu.org
2163 fi ;;
2164 esac
2166 break
2168 done
2169 IFS="$ac_save_ifs"
2170 MAGIC_CMD="$ac_save_MAGIC_CMD"
2172 esac
2175 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2176 if test -n "$MAGIC_CMD"; then
2177 echo "$ac_t""$MAGIC_CMD" 1>&6
2178 else
2179 echo "$ac_t""no" 1>&6
2182 if test -z "$lt_cv_path_MAGIC_CMD"; then
2183 if test -n "$ac_tool_prefix"; then
2184 echo $ac_n "checking for file""... $ac_c" 1>&6
2185 echo "configure:2186: checking for file" >&5
2186 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2187 echo $ac_n "(cached) $ac_c" 1>&6
2188 else
2189 case $MAGIC_CMD in
2191 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2193 ?:/*)
2194 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2197 ac_save_MAGIC_CMD="$MAGIC_CMD"
2198 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2199 ac_dummy="/usr/bin:$PATH"
2200 for ac_dir in $ac_dummy; do
2201 test -z "$ac_dir" && ac_dir=.
2202 if test -f $ac_dir/file; then
2203 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2204 if test -n "$file_magic_test_file"; then
2205 case $deplibs_check_method in
2206 "file_magic "*)
2207 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2208 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2209 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2210 egrep "$file_magic_regex" > /dev/null; then
2212 else
2213 cat <<EOF 1>&2
2215 *** Warning: the command libtool uses to detect shared libraries,
2216 *** $file_magic_cmd, produces output that libtool cannot recognize.
2217 *** The result is that libtool may fail to recognize shared libraries
2218 *** as such. This will affect the creation of libtool libraries that
2219 *** depend on shared libraries, but programs linked with such libtool
2220 *** libraries will work regardless of this problem. Nevertheless, you
2221 *** may want to report the problem to your system manager and/or to
2222 *** bug-libtool@gnu.org
2225 fi ;;
2226 esac
2228 break
2230 done
2231 IFS="$ac_save_ifs"
2232 MAGIC_CMD="$ac_save_MAGIC_CMD"
2234 esac
2237 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2238 if test -n "$MAGIC_CMD"; then
2239 echo "$ac_t""$MAGIC_CMD" 1>&6
2240 else
2241 echo "$ac_t""no" 1>&6
2244 else
2245 MAGIC_CMD=:
2251 esac
2253 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2254 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2255 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2256 echo "configure:2257: checking for $ac_word" >&5
2257 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2258 echo $ac_n "(cached) $ac_c" 1>&6
2259 else
2260 if test -n "$RANLIB"; then
2261 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2262 else
2263 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2264 ac_dummy="$PATH"
2265 for ac_dir in $ac_dummy; do
2266 test -z "$ac_dir" && ac_dir=.
2267 if test -f $ac_dir/$ac_word; then
2268 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2269 break
2271 done
2272 IFS="$ac_save_ifs"
2275 RANLIB="$ac_cv_prog_RANLIB"
2276 if test -n "$RANLIB"; then
2277 echo "$ac_t""$RANLIB" 1>&6
2278 else
2279 echo "$ac_t""no" 1>&6
2283 if test -z "$ac_cv_prog_RANLIB"; then
2284 if test -n "$ac_tool_prefix"; then
2285 # Extract the first word of "ranlib", so it can be a program name with args.
2286 set dummy ranlib; ac_word=$2
2287 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2288 echo "configure:2289: checking for $ac_word" >&5
2289 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2290 echo $ac_n "(cached) $ac_c" 1>&6
2291 else
2292 if test -n "$RANLIB"; then
2293 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2294 else
2295 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2296 ac_dummy="$PATH"
2297 for ac_dir in $ac_dummy; do
2298 test -z "$ac_dir" && ac_dir=.
2299 if test -f $ac_dir/$ac_word; then
2300 ac_cv_prog_RANLIB="ranlib"
2301 break
2303 done
2304 IFS="$ac_save_ifs"
2305 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2308 RANLIB="$ac_cv_prog_RANLIB"
2309 if test -n "$RANLIB"; then
2310 echo "$ac_t""$RANLIB" 1>&6
2311 else
2312 echo "$ac_t""no" 1>&6
2315 else
2316 RANLIB=":"
2320 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2321 set dummy ${ac_tool_prefix}strip; ac_word=$2
2322 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2323 echo "configure:2324: checking for $ac_word" >&5
2324 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2325 echo $ac_n "(cached) $ac_c" 1>&6
2326 else
2327 if test -n "$STRIP"; then
2328 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2329 else
2330 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2331 ac_dummy="$PATH"
2332 for ac_dir in $ac_dummy; do
2333 test -z "$ac_dir" && ac_dir=.
2334 if test -f $ac_dir/$ac_word; then
2335 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2336 break
2338 done
2339 IFS="$ac_save_ifs"
2342 STRIP="$ac_cv_prog_STRIP"
2343 if test -n "$STRIP"; then
2344 echo "$ac_t""$STRIP" 1>&6
2345 else
2346 echo "$ac_t""no" 1>&6
2350 if test -z "$ac_cv_prog_STRIP"; then
2351 if test -n "$ac_tool_prefix"; then
2352 # Extract the first word of "strip", so it can be a program name with args.
2353 set dummy strip; ac_word=$2
2354 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2355 echo "configure:2356: checking for $ac_word" >&5
2356 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2357 echo $ac_n "(cached) $ac_c" 1>&6
2358 else
2359 if test -n "$STRIP"; then
2360 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2361 else
2362 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2363 ac_dummy="$PATH"
2364 for ac_dir in $ac_dummy; do
2365 test -z "$ac_dir" && ac_dir=.
2366 if test -f $ac_dir/$ac_word; then
2367 ac_cv_prog_STRIP="strip"
2368 break
2370 done
2371 IFS="$ac_save_ifs"
2372 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2375 STRIP="$ac_cv_prog_STRIP"
2376 if test -n "$STRIP"; then
2377 echo "$ac_t""$STRIP" 1>&6
2378 else
2379 echo "$ac_t""no" 1>&6
2382 else
2383 STRIP=":"
2388 # Check for any special flags to pass to ltconfig.
2389 libtool_flags="--cache-file=$cache_file"
2390 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2391 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2392 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2393 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2394 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2395 libtool_flags="$libtool_flags --enable-dlopen"
2397 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2398 if test "${enable_libtool_lock+set}" = set; then
2399 enableval="$enable_libtool_lock"
2403 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2404 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2406 # Check whether --with-pic or --without-pic was given.
2407 if test "${with_pic+set}" = set; then
2408 withval="$with_pic"
2409 pic_mode="$withval"
2410 else
2411 pic_mode=default
2414 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2415 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2417 # Some flags need to be propagated to the compiler or linker for good
2418 # libtool support.
2419 case $host in
2420 *-*-irix6*)
2421 # Find out which ABI we are using.
2422 echo '#line 2423 "configure"' > conftest.$ac_ext
2423 if { (eval echo configure:2424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2424 case `/usr/bin/file conftest.$ac_objext` in
2425 *32-bit*)
2426 LD="${LD-ld} -32"
2428 *N32*)
2429 LD="${LD-ld} -n32"
2431 *64-bit*)
2432 LD="${LD-ld} -64"
2434 esac
2436 rm -rf conftest*
2439 *-*-sco3.2v5*)
2440 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2441 SAVE_CFLAGS="$CFLAGS"
2442 CFLAGS="$CFLAGS -belf"
2443 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2444 echo "configure:2445: checking whether the C compiler needs -belf" >&5
2445 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2446 echo $ac_n "(cached) $ac_c" 1>&6
2447 else
2449 ac_ext=c
2450 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2451 ac_cpp='$CPP $CPPFLAGS'
2452 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2453 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2454 cross_compiling=$ac_cv_prog_cc_cross
2456 cat > conftest.$ac_ext <<EOF
2457 #line 2458 "configure"
2458 #include "confdefs.h"
2460 int main() {
2462 ; return 0; }
2464 if { (eval echo configure:2465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2465 rm -rf conftest*
2466 lt_cv_cc_needs_belf=yes
2467 else
2468 echo "configure: failed program was:" >&5
2469 cat conftest.$ac_ext >&5
2470 rm -rf conftest*
2471 lt_cv_cc_needs_belf=no
2473 rm -f conftest*
2474 ac_ext=c
2475 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2476 ac_cpp='$CPP $CPPFLAGS'
2477 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2478 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2479 cross_compiling=$ac_cv_prog_cc_cross
2483 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2484 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2485 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2486 CFLAGS="$SAVE_CFLAGS"
2491 esac
2493 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2494 echo "configure:2495: checking how to run the C++ preprocessor" >&5
2495 if test -z "$CXXCPP"; then
2496 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2497 echo $ac_n "(cached) $ac_c" 1>&6
2498 else
2499 ac_ext=C
2500 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2501 ac_cpp='$CXXCPP $CPPFLAGS'
2502 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2503 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2504 cross_compiling=$ac_cv_prog_cxx_cross
2505 CXXCPP="${CXX-g++} -E"
2506 cat > conftest.$ac_ext <<EOF
2507 #line 2508 "configure"
2508 #include "confdefs.h"
2509 #include <stdlib.h>
2511 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2512 { (eval echo configure:2513: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2513 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2514 if test -z "$ac_err"; then
2516 else
2517 echo "$ac_err" >&5
2518 echo "configure: failed program was:" >&5
2519 cat conftest.$ac_ext >&5
2520 rm -rf conftest*
2521 CXXCPP=/lib/cpp
2523 rm -f conftest*
2524 ac_cv_prog_CXXCPP="$CXXCPP"
2525 ac_ext=c
2526 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2527 ac_cpp='$CPP $CPPFLAGS'
2528 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2529 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2530 cross_compiling=$ac_cv_prog_cc_cross
2533 CXXCPP="$ac_cv_prog_CXXCPP"
2534 echo "$ac_t""$CXXCPP" 1>&6
2537 # Save cache, so that ltconfig can load it
2538 cat > confcache <<\EOF
2539 # This file is a shell script that caches the results of configure
2540 # tests run on this system so they can be shared between configure
2541 # scripts and configure runs. It is not useful on other systems.
2542 # If it contains results you don't want to keep, you may remove or edit it.
2544 # By default, configure uses ./config.cache as the cache file,
2545 # creating it if it does not exist already. You can give configure
2546 # the --cache-file=FILE option to use a different cache file; that is
2547 # what configure does when it calls configure scripts in
2548 # subdirectories, so they share the cache.
2549 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2550 # config.status only pays attention to the cache file if you give it the
2551 # --recheck option to rerun configure.
2554 # The following way of writing the cache mishandles newlines in values,
2555 # but we know of no workaround that is simple, portable, and efficient.
2556 # So, don't put newlines in cache variables' values.
2557 # Ultrix sh set writes to stderr and can't be redirected directly,
2558 # and sets the high bit in the cache file unless we assign to the vars.
2559 (set) 2>&1 |
2560 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2561 *ac_space=\ *)
2562 # `set' does not quote correctly, so add quotes (double-quote substitution
2563 # turns \\\\ into \\, and sed turns \\ into \).
2564 sed -n \
2565 -e "s/'/'\\\\''/g" \
2566 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2569 # `set' quotes correctly as required by POSIX, so do not add quotes.
2570 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2572 esac >> confcache
2573 if cmp -s $cache_file confcache; then
2575 else
2576 if test -w $cache_file; then
2577 echo "updating cache $cache_file"
2578 cat confcache > $cache_file
2579 else
2580 echo "not updating unwritable cache $cache_file"
2583 rm -f confcache
2586 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2587 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2588 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2589 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2590 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2591 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2592 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2593 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2594 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2595 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2597 # Reload cache, that may have been modified by ltconfig
2598 if test -r "$cache_file"; then
2599 echo "loading cache $cache_file"
2600 . $cache_file
2601 else
2602 echo "creating cache $cache_file"
2603 > $cache_file
2607 # This can be used to rebuild libtool when needed
2608 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2610 # Always use our own libtool.
2611 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2613 # Redirect the config.log output again, so that the ltconfig log is not
2614 # clobbered by the next message.
2615 exec 5>>./config.log
2619 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2620 lt_save_CC="$CC"
2621 lt_save_CFLAGS="$CFLAGS"
2622 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2623 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2624 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2625 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2626 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2627 deplibs_check_method="$deplibs_check_method" \
2628 file_magic_cmd="$file_magic_cmd" \
2629 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2630 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2631 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2632 CC="$lt_save_CC"
2633 CFLAGS="$lt_save_CFLAGS"
2635 # Redirect the config.log output again, so that the ltconfig log is not
2636 # clobbered by the next message.
2637 exec 5>>./config.log
2644 subdirs="$DIRLTDL"
2647 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
2648 COMPPATH=.
2649 else
2650 COMPPATH=..
2656 if test -d $srcdir/testsuite; then
2657 TESTSUBDIR_TRUE=
2658 TESTSUBDIR_FALSE='#'
2659 else
2660 TESTSUBDIR_TRUE='#'
2661 TESTSUBDIR_FALSE=
2664 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
2665 if test "${enable_getenv_properties+set}" = set; then
2666 enableval="$enable_getenv_properties"
2671 if test -z "$enable_getenv_properties"; then
2672 enable_getenv_properties=${enable_getenv_properties_default-yes}
2674 if test "$enable_getenv_properties" = no; then
2675 cat >> confdefs.h <<\EOF
2676 #define DISABLE_GETENV_PROPERTIES 1
2681 if test -z "$enable_main_args"; then
2682 enable_main_args=${enable_main_args_default-yes}
2684 if test "$enable_main_args" = no; then
2685 cat >> confdefs.h <<\EOF
2686 #define DISABLE_MAIN_ARGS 1
2692 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
2693 if test "${enable_hash_synchronization+set}" = set; then
2694 enableval="$enable_hash_synchronization"
2699 if test -z "$enable_hash_synchronization"; then
2700 enable_hash_synchronization=$enable_hash_synchronization_default
2703 if test "${slow_pthread_self}" = "yes"; then
2704 cat >> confdefs.h <<\EOF
2705 #define SLOW_PTHREAD_SELF 1
2711 LIBGCJDEBUG="false"
2713 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2714 if test "${enable_libgcj_debug+set}" = set; then
2715 enableval="$enable_libgcj_debug"
2716 if test "$enable_libgcj_debug" = yes; then
2717 cat >> confdefs.h <<\EOF
2718 #define DEBUG 1
2721 LIBGCJDEBUG="true"
2726 # Check whether --enable-interpreter or --disable-interpreter was given.
2727 if test "${enable_interpreter+set}" = set; then
2728 enableval="$enable_interpreter"
2729 if test "$enable_interpreter" = yes; then
2730 # This can also be set in configure.host.
2731 libgcj_interpreter=yes
2732 elif test "$enable_interpreter" = no; then
2733 libgcj_interpreter=no
2738 if test "$libgcj_interpreter" = yes; then
2739 cat >> confdefs.h <<\EOF
2740 #define INTERPRETER 1
2744 INTERPRETER="$libgcj_interpreter"
2747 echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
2748 echo "configure:2749: checking for exception model to use" >&5
2750 ac_ext=C
2751 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2752 ac_cpp='$CXXCPP $CPPFLAGS'
2753 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2754 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2755 cross_compiling=$ac_cv_prog_cxx_cross
2757 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
2758 if test "${enable_sjlj_exceptions+set}" = set; then
2759 enableval="$enable_sjlj_exceptions"
2761 else
2762 cat > conftest.$ac_ext << EOF
2763 #line 2764 "configure"
2764 struct S { ~S(); };
2765 void bar();
2766 void foo()
2768 S s;
2769 bar();
2772 old_CXXFLAGS="$CXXFLAGS"
2773 CXXFLAGS=-S
2774 if { (eval echo configure:2775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2775 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
2776 enable_sjlj_exceptions=yes
2777 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
2778 enable_sjlj_exceptions=no
2781 CXXFLAGS="$old_CXXFLAGS"
2782 rm -f conftest*
2785 if test x$enable_sjlj_exceptions = xyes; then
2786 cat >> confdefs.h <<\EOF
2787 #define SJLJ_EXCEPTIONS 1
2790 ac_exception_model_name=sjlj
2791 elif test x$enable_sjlj_exceptions = xno; then
2792 ac_exception_model_name="call frame"
2793 else
2794 { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
2796 ac_ext=c
2797 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2798 ac_cpp='$CPP $CPPFLAGS'
2799 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2800 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2801 cross_compiling=$ac_cv_prog_cc_cross
2803 echo "$ac_t""$ac_exception_model_name" 1>&6
2805 # If we are non using SJLJ exceptions, and this host does not have support
2806 # for unwinding from a signal handler, enable checked dereferences and divides.
2807 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
2808 CHECKREFSPEC=-fcheck-references
2809 DIVIDESPEC=-fuse-divide-subroutine
2810 EXCEPTIONSPEC=
2813 # Check whether --enable-java-net or --disable-java-net was given.
2814 if test "${enable_java_net+set}" = set; then
2815 enableval="$enable_java_net"
2820 if test -z "$enable_java_net"; then
2821 enable_java_net=${enable_java_net_default-yes}
2823 if test "$enable_java_net" = no; then
2824 cat >> confdefs.h <<\EOF
2825 #define DISABLE_JAVA_NET 1
2830 # Check whether --with-libffi or --without-libffi was given.
2831 if test "${with_libffi+set}" = set; then
2832 withval="$with_libffi"
2834 else
2835 with_libffi=${with_libffi_default-yes}
2839 LIBFFI=
2840 LIBFFIINCS=
2841 if test "$with_libffi" != no; then
2842 cat >> confdefs.h <<\EOF
2843 #define USE_LIBFFI 1
2846 LIBFFI=../libffi/libffi_convenience.la
2847 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
2852 # Check whether --enable-jvmpi or --disable-jvmpi was given.
2853 if test "${enable_jvmpi+set}" = set; then
2854 enableval="$enable_jvmpi"
2859 if test "$enable_jvmpi" != no; then
2860 cat >> confdefs.h <<\EOF
2861 #define ENABLE_JVMPI 1
2866 TARGET_ECOS=${PROCESS-"no"}
2867 # Check whether --with-ecos or --without-ecos was given.
2868 if test "${with_ecos+set}" = set; then
2869 withval="$with_ecos"
2870 TARGET_ECOS="$with_ecos"
2875 PLATFORMOBJS=
2876 case "$TARGET_ECOS" in
2877 no) case "$host" in
2878 *mingw*)
2879 PLATFORM=Win32
2880 PLATFORMOBJS=win32.lo
2881 PLATFORMH=win32.h
2884 PLATFORM=Posix
2885 PLATFORMOBJS=posix.lo
2886 PLATFORMH=posix.h
2888 esac
2891 PLATFORM=Ecos
2892 cat >> confdefs.h <<\EOF
2893 #define ECOS 1
2896 PLATFORMOBJS=posix.lo
2897 PLATFORMH=posix.h
2899 esac
2903 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2904 echo "configure:2905: checking how to run the C preprocessor" >&5
2905 # On Suns, sometimes $CPP names a directory.
2906 if test -n "$CPP" && test -d "$CPP"; then
2907 CPP=
2909 if test -z "$CPP"; then
2910 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2911 echo $ac_n "(cached) $ac_c" 1>&6
2912 else
2913 # This must be in double quotes, not single quotes, because CPP may get
2914 # substituted into the Makefile and "${CC-cc}" will confuse make.
2915 CPP="${CC-cc} -E"
2916 # On the NeXT, cc -E runs the code through the compiler's parser,
2917 # not just through cpp.
2918 cat > conftest.$ac_ext <<EOF
2919 #line 2920 "configure"
2920 #include "confdefs.h"
2921 #include <assert.h>
2922 Syntax Error
2924 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2925 { (eval echo configure:2926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2926 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2927 if test -z "$ac_err"; then
2929 else
2930 echo "$ac_err" >&5
2931 echo "configure: failed program was:" >&5
2932 cat conftest.$ac_ext >&5
2933 rm -rf conftest*
2934 CPP="${CC-cc} -E -traditional-cpp"
2935 cat > conftest.$ac_ext <<EOF
2936 #line 2937 "configure"
2937 #include "confdefs.h"
2938 #include <assert.h>
2939 Syntax Error
2941 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2942 { (eval echo configure:2943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2943 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2944 if test -z "$ac_err"; then
2946 else
2947 echo "$ac_err" >&5
2948 echo "configure: failed program was:" >&5
2949 cat conftest.$ac_ext >&5
2950 rm -rf conftest*
2951 CPP="${CC-cc} -nologo -E"
2952 cat > conftest.$ac_ext <<EOF
2953 #line 2954 "configure"
2954 #include "confdefs.h"
2955 #include <assert.h>
2956 Syntax Error
2958 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2959 { (eval echo configure:2960: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2960 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2961 if test -z "$ac_err"; then
2963 else
2964 echo "$ac_err" >&5
2965 echo "configure: failed program was:" >&5
2966 cat conftest.$ac_ext >&5
2967 rm -rf conftest*
2968 CPP=/lib/cpp
2970 rm -f conftest*
2972 rm -f conftest*
2974 rm -f conftest*
2975 ac_cv_prog_CPP="$CPP"
2977 CPP="$ac_cv_prog_CPP"
2978 else
2979 ac_cv_prog_CPP="$CPP"
2981 echo "$ac_t""$CPP" 1>&6
2983 cat > conftest.$ac_ext <<EOF
2984 #line 2985 "configure"
2985 #include "confdefs.h"
2986 #include <stdint.h>
2988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2989 egrep "uint32_t" >/dev/null 2>&1; then
2990 rm -rf conftest*
2991 cat >> confdefs.h <<\EOF
2992 #define HAVE_INT32_DEFINED 1
2996 rm -f conftest*
2998 cat > conftest.$ac_ext <<EOF
2999 #line 3000 "configure"
3000 #include "confdefs.h"
3001 #include <inttypes.h>
3003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3004 egrep "uint32_t" >/dev/null 2>&1; then
3005 rm -rf conftest*
3006 cat >> confdefs.h <<\EOF
3007 #define HAVE_INT32_DEFINED 1
3011 rm -f conftest*
3013 cat > conftest.$ac_ext <<EOF
3014 #line 3015 "configure"
3015 #include "confdefs.h"
3016 #include <sys/types.h>
3018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3019 egrep "u_int32_t" >/dev/null 2>&1; then
3020 rm -rf conftest*
3021 cat >> confdefs.h <<\EOF
3022 #define HAVE_BSD_INT32_DEFINED 1
3026 rm -f conftest*
3028 cat > conftest.$ac_ext <<EOF
3029 #line 3030 "configure"
3030 #include "confdefs.h"
3031 #include <sys/config.h>
3033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3034 egrep "u_int32_t" >/dev/null 2>&1; then
3035 rm -rf conftest*
3036 cat >> confdefs.h <<\EOF
3037 #define HAVE_BSD_INT32_DEFINED 1
3041 rm -f conftest*
3045 cat > conftest.$ac_ext <<EOF
3046 #line 3047 "configure"
3047 #include "confdefs.h"
3048 #include <time.h>
3050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3051 egrep "mktime" >/dev/null 2>&1; then
3052 rm -rf conftest*
3053 cat >> confdefs.h <<\EOF
3054 #define HAVE_MKTIME 1
3058 rm -f conftest*
3060 cat > conftest.$ac_ext <<EOF
3061 #line 3062 "configure"
3062 #include "confdefs.h"
3063 #include <time.h>
3065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3066 egrep "localtime" >/dev/null 2>&1; then
3067 rm -rf conftest*
3068 cat >> confdefs.h <<\EOF
3069 #define HAVE_LOCALTIME 1
3073 rm -f conftest*
3076 test -d java || mkdir java
3077 test -d java/io || mkdir java/io
3078 test -d gnu || mkdir gnu
3082 test -d java/lang || mkdir java/lang
3086 case "${host}" in
3087 *mingw*)
3088 SYSTEMSPEC="-lgdi32 -lwsock32 -lws2_32"
3091 SYSTEMSPEC=
3093 esac
3096 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
3099 # Check whether --with-system-zlib or --without-system-zlib was given.
3100 if test "${with_system_zlib+set}" = set; then
3101 withval="$with_system_zlib"
3105 ZLIBSPEC=
3107 ZLIBTESTSPEC=
3110 libsubdir=.libs
3112 echo $ac_n "checking for garbage collector to use""... $ac_c" 1>&6
3113 echo "configure:3114: checking for garbage collector to use" >&5
3114 # Check whether --enable-java-gc or --disable-java-gc was given.
3115 if test "${enable_java_gc+set}" = set; then
3116 enableval="$enable_java_gc"
3118 GC=$enableval
3119 else
3120 GC=boehm
3123 GCLIBS=
3124 GCINCS=
3125 GCDEPS=
3126 GCOBJS=
3127 GCSPEC=
3128 JC1GCSPEC=
3129 GCTESTSPEC=
3130 case "$GC" in
3131 boehm)
3132 echo "$ac_t""boehm" 1>&6
3133 GCLIBS=../boehm-gc/libgcjgc_convenience.la
3134 GCINCS='-I$(top_srcdir)/../boehm-gc/include'
3135 JC1GCSPEC='-fuse-boehm-gc'
3136 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
3138 GCINCS="$GCINCS `cat ../boehm-gc/boehm-cflags`"
3139 GCOBJS=boehm.lo
3140 GCHDR=boehm-gc.h
3141 cat >> confdefs.h <<\EOF
3142 #define HAVE_BOEHM_GC 1
3147 echo "$ac_t""none" 1>&6
3148 GCOBJS=nogc.lo
3149 GCHDR=no-gc.h
3152 { echo "configure: error: unrecognized collector \"$GC\"" 1>&2; exit 1; }
3154 esac
3165 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3166 echo "configure:3167: checking for thread model used by GCC" >&5
3167 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3168 echo "$ac_t""$THREADS" 1>&6
3170 case "$THREADS" in
3171 no | none | single)
3172 THREADS=none
3174 posix | pthreads)
3175 THREADS=posix
3176 case "$host" in
3177 *-*-linux*)
3178 cat >> confdefs.h <<\EOF
3179 #define LINUX_THREADS 1
3183 esac
3185 win32)
3187 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
3188 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
3191 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
3193 esac
3195 THREADLDFLAGS=
3196 THREADLIBS=
3197 THREADINCS=
3198 THREADDEPS=
3199 THREADOBJS=
3200 THREADH=
3201 THREADSPEC=
3202 case "$THREADS" in
3203 posix)
3204 case "$host" in
3205 *-*-cygwin*)
3206 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
3209 *-*-freebsd[1234]*)
3211 # Before FreeBSD 5, it didn't have -lpthread (or any library which
3212 # merely adds pthread_* functions) but it does have a -pthread switch
3213 # which is required at link-time to select -lc_r *instead* of -lc.
3214 THREADLDFLAGS=-pthread
3215 # Don't set THREADSPEC here as might be expected since -pthread is
3216 # not processed when found within a spec file, it must come from
3217 # the command line. For now, the user must provide the -pthread
3218 # switch to link code compiled with gcj. In future, consider adding
3219 # support for weak references to pthread_* functions ala gthr.h API.
3220 THREADSPEC='%{!pthread: %eUnder this configuration, the user must provide -pthread when linking.}'
3222 *-*-freebsd*)
3223 # FreeBSD 5 implements a model much closer to other modern UNIX
3224 # which support threads. However, it still does not support
3225 # -lpthread.
3226 THREADLDFLAGS=-pthread
3227 THREADSPEC=-lc_r
3230 THREADLIBS=-lpthread
3231 THREADSPEC=-lpthread
3233 esac
3234 THREADOBJS=posix-threads.lo
3235 THREADH=posix-threads.h
3236 # MIT pthreads doesn't seem to have the mutexattr functions.
3237 # But for now we don't check for it. We just assume you aren't
3238 # using MIT pthreads.
3239 cat >> confdefs.h <<\EOF
3240 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3244 # If we're using the Boehm GC, then we happen to know that it
3245 # defines _REENTRANT, so we don't bother. Eww.
3246 if test "$GC" != boehm; then
3247 cat >> confdefs.h <<\EOF
3248 #define _REENTRANT 1
3252 cat >> confdefs.h <<\EOF
3253 #define _POSIX_PTHREAD_SEMANTICS 1
3258 win32)
3259 THREADOBJS=win32-threads.lo
3260 THREADH=win32-threads.h
3263 none)
3264 THREADOBJS=no-threads.lo
3265 THREADH=no-threads.h
3267 esac
3276 if test -d sysdep; then true; else mkdir sysdep; fi
3279 HASH_SYNC_SPEC=
3280 # Hash synchronization is only useful with posix threads right now.
3281 if test "$enable_hash_synchronization" = yes && test "$THREADS" = "posix"; then
3282 HASH_SYNC_SPEC=-fhash-synchronization
3283 cat >> confdefs.h <<\EOF
3284 #define JV_HASH_SYNCHRONIZATION 1
3293 if test "$GCC" = yes; then
3294 USING_GCC_TRUE=
3295 USING_GCC_FALSE='#'
3296 else
3297 USING_GCC_TRUE='#'
3298 USING_GCC_FALSE=
3301 CANADIAN=no
3302 NULL_TARGET=no
3303 NATIVE=yes
3305 # We're in the tree with gcc, and need to include some of its headers.
3306 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
3308 # Figure out where generated headers like libgcj-config.h get installed.
3309 gcc_version_trigger=${libgcj_basedir}/../gcc/version.c
3310 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
3311 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
3312 tool_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include
3316 if test "x${with_newlib}" = "xyes"; then
3317 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
3318 # may not work correctly, because the compiler may not be able to
3319 # link executables.
3321 # We assume newlib. This lets us hard-code the functions we know
3322 # we'll have.
3323 cat >> confdefs.h <<\EOF
3324 #define HAVE_MEMMOVE 1
3327 cat >> confdefs.h <<\EOF
3328 #define HAVE_MEMCPY 1
3331 cat >> confdefs.h <<\EOF
3332 #define HAVE_STRERROR 1
3335 cat >> confdefs.h <<\EOF
3336 #define HAVE_TIME 1
3339 cat >> confdefs.h <<\EOF
3340 #define HAVE_GMTIME_R 1
3343 cat >> confdefs.h <<\EOF
3344 #define HAVE_LOCALTIME_R 1
3347 cat >> confdefs.h <<\EOF
3348 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3351 cat >> confdefs.h <<\EOF
3352 #define HAVE_ALLOCA 1
3356 cat >> confdefs.h <<\EOF
3357 #define NO_GETUID 1
3361 # If Canadian cross, then don't pick up tools from the build
3362 # directory.
3363 if test x"$build" != x"$with_cross_host" \
3364 && test x"$build" != x"$target"; then
3365 CANADIAN=yes
3366 GCC_UNWIND_INCLUDE=
3367 GCJ="${target_alias}-gcj"
3369 NATIVE=no
3370 else
3371 for ac_func in strerror ioctl select fstat open fsync sleep opendir
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 else
3422 echo "$ac_t""no" 1>&6
3424 done
3426 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
3428 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3429 echo "configure:3430: checking for $ac_func" >&5
3430 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3431 echo $ac_n "(cached) $ac_c" 1>&6
3432 else
3433 cat > conftest.$ac_ext <<EOF
3434 #line 3435 "configure"
3435 #include "confdefs.h"
3436 /* System header to define __stub macros and hopefully few prototypes,
3437 which can conflict with char $ac_func(); below. */
3438 #include <assert.h>
3439 /* Override any gcc2 internal prototype to avoid an error. */
3440 /* We use char because int might match the return type of a gcc2
3441 builtin and then its argument prototype would still apply. */
3442 char $ac_func();
3444 int main() {
3446 /* The GNU C library defines this for functions which it implements
3447 to always fail with ENOSYS. Some functions are actually named
3448 something starting with __ and the normal name is an alias. */
3449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3450 choke me
3451 #else
3452 $ac_func();
3453 #endif
3455 ; return 0; }
3457 if { (eval echo configure:3458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3458 rm -rf conftest*
3459 eval "ac_cv_func_$ac_func=yes"
3460 else
3461 echo "configure: failed program was:" >&5
3462 cat conftest.$ac_ext >&5
3463 rm -rf conftest*
3464 eval "ac_cv_func_$ac_func=no"
3466 rm -f conftest*
3469 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3470 echo "$ac_t""yes" 1>&6
3471 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3472 cat >> confdefs.h <<EOF
3473 #define $ac_tr_func 1
3476 else
3477 echo "$ac_t""no" 1>&6
3479 done
3481 for ac_func in access stat mkdir rename rmdir unlink realpath utime chmod
3483 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3484 echo "configure:3485: checking for $ac_func" >&5
3485 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3486 echo $ac_n "(cached) $ac_c" 1>&6
3487 else
3488 cat > conftest.$ac_ext <<EOF
3489 #line 3490 "configure"
3490 #include "confdefs.h"
3491 /* System header to define __stub macros and hopefully few prototypes,
3492 which can conflict with char $ac_func(); below. */
3493 #include <assert.h>
3494 /* Override any gcc2 internal prototype to avoid an error. */
3495 /* We use char because int might match the return type of a gcc2
3496 builtin and then its argument prototype would still apply. */
3497 char $ac_func();
3499 int main() {
3501 /* The GNU C library defines this for functions which it implements
3502 to always fail with ENOSYS. Some functions are actually named
3503 something starting with __ and the normal name is an alias. */
3504 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3505 choke me
3506 #else
3507 $ac_func();
3508 #endif
3510 ; return 0; }
3512 if { (eval echo configure:3513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3513 rm -rf conftest*
3514 eval "ac_cv_func_$ac_func=yes"
3515 else
3516 echo "configure: failed program was:" >&5
3517 cat conftest.$ac_ext >&5
3518 rm -rf conftest*
3519 eval "ac_cv_func_$ac_func=no"
3521 rm -f conftest*
3524 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3525 echo "$ac_t""yes" 1>&6
3526 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3527 cat >> confdefs.h <<EOF
3528 #define $ac_tr_func 1
3531 else
3532 echo "$ac_t""no" 1>&6
3534 done
3536 for ac_func in nl_langinfo setlocale
3538 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3539 echo "configure:3540: checking for $ac_func" >&5
3540 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3541 echo $ac_n "(cached) $ac_c" 1>&6
3542 else
3543 cat > conftest.$ac_ext <<EOF
3544 #line 3545 "configure"
3545 #include "confdefs.h"
3546 /* System header to define __stub macros and hopefully few prototypes,
3547 which can conflict with char $ac_func(); below. */
3548 #include <assert.h>
3549 /* Override any gcc2 internal prototype to avoid an error. */
3550 /* We use char because int might match the return type of a gcc2
3551 builtin and then its argument prototype would still apply. */
3552 char $ac_func();
3554 int main() {
3556 /* The GNU C library defines this for functions which it implements
3557 to always fail with ENOSYS. Some functions are actually named
3558 something starting with __ and the normal name is an alias. */
3559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3560 choke me
3561 #else
3562 $ac_func();
3563 #endif
3565 ; return 0; }
3567 if { (eval echo configure:3568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3568 rm -rf conftest*
3569 eval "ac_cv_func_$ac_func=yes"
3570 else
3571 echo "configure: failed program was:" >&5
3572 cat conftest.$ac_ext >&5
3573 rm -rf conftest*
3574 eval "ac_cv_func_$ac_func=no"
3576 rm -f conftest*
3579 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3580 echo "$ac_t""yes" 1>&6
3581 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3582 cat >> confdefs.h <<EOF
3583 #define $ac_tr_func 1
3586 else
3587 echo "$ac_t""no" 1>&6
3589 done
3591 for ac_func in inet_aton inet_addr
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
3640 break
3641 else
3642 echo "$ac_t""no" 1>&6
3644 done
3646 for ac_func in inet_pton uname inet_ntoa
3648 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3649 echo "configure:3650: checking for $ac_func" >&5
3650 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3651 echo $ac_n "(cached) $ac_c" 1>&6
3652 else
3653 cat > conftest.$ac_ext <<EOF
3654 #line 3655 "configure"
3655 #include "confdefs.h"
3656 /* System header to define __stub macros and hopefully few prototypes,
3657 which can conflict with char $ac_func(); below. */
3658 #include <assert.h>
3659 /* Override any gcc2 internal prototype to avoid an error. */
3660 /* We use char because int might match the return type of a gcc2
3661 builtin and then its argument prototype would still apply. */
3662 char $ac_func();
3664 int main() {
3666 /* The GNU C library defines this for functions which it implements
3667 to always fail with ENOSYS. Some functions are actually named
3668 something starting with __ and the normal name is an alias. */
3669 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3670 choke me
3671 #else
3672 $ac_func();
3673 #endif
3675 ; return 0; }
3677 if { (eval echo configure:3678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3678 rm -rf conftest*
3679 eval "ac_cv_func_$ac_func=yes"
3680 else
3681 echo "configure: failed program was:" >&5
3682 cat conftest.$ac_ext >&5
3683 rm -rf conftest*
3684 eval "ac_cv_func_$ac_func=no"
3686 rm -f conftest*
3689 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3690 echo "$ac_t""yes" 1>&6
3691 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3692 cat >> confdefs.h <<EOF
3693 #define $ac_tr_func 1
3696 else
3697 echo "$ac_t""no" 1>&6
3699 done
3701 for ac_func in fork execvp pipe sigaction
3703 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3704 echo "configure:3705: checking for $ac_func" >&5
3705 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3706 echo $ac_n "(cached) $ac_c" 1>&6
3707 else
3708 cat > conftest.$ac_ext <<EOF
3709 #line 3710 "configure"
3710 #include "confdefs.h"
3711 /* System header to define __stub macros and hopefully few prototypes,
3712 which can conflict with char $ac_func(); below. */
3713 #include <assert.h>
3714 /* Override any gcc2 internal prototype to avoid an error. */
3715 /* We use char because int might match the return type of a gcc2
3716 builtin and then its argument prototype would still apply. */
3717 char $ac_func();
3719 int main() {
3721 /* The GNU C library defines this for functions which it implements
3722 to always fail with ENOSYS. Some functions are actually named
3723 something starting with __ and the normal name is an alias. */
3724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3725 choke me
3726 #else
3727 $ac_func();
3728 #endif
3730 ; return 0; }
3732 if { (eval echo configure:3733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3733 rm -rf conftest*
3734 eval "ac_cv_func_$ac_func=yes"
3735 else
3736 echo "configure: failed program was:" >&5
3737 cat conftest.$ac_ext >&5
3738 rm -rf conftest*
3739 eval "ac_cv_func_$ac_func=no"
3741 rm -f conftest*
3744 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3745 echo "$ac_t""yes" 1>&6
3746 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3747 cat >> confdefs.h <<EOF
3748 #define $ac_tr_func 1
3751 else
3752 echo "$ac_t""no" 1>&6
3754 done
3756 for ac_hdr in execinfo.h unistd.h dlfcn.h
3758 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3759 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3760 echo "configure:3761: checking for $ac_hdr" >&5
3761 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3762 echo $ac_n "(cached) $ac_c" 1>&6
3763 else
3764 cat > conftest.$ac_ext <<EOF
3765 #line 3766 "configure"
3766 #include "confdefs.h"
3767 #include <$ac_hdr>
3769 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3770 { (eval echo configure:3771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3771 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3772 if test -z "$ac_err"; then
3773 rm -rf conftest*
3774 eval "ac_cv_header_$ac_safe=yes"
3775 else
3776 echo "$ac_err" >&5
3777 echo "configure: failed program was:" >&5
3778 cat conftest.$ac_ext >&5
3779 rm -rf conftest*
3780 eval "ac_cv_header_$ac_safe=no"
3782 rm -f conftest*
3784 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3785 echo "$ac_t""yes" 1>&6
3786 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3787 cat >> confdefs.h <<EOF
3788 #define $ac_tr_hdr 1
3791 else
3792 echo "$ac_t""no" 1>&6
3794 done
3796 echo $ac_n "checking for backtrace""... $ac_c" 1>&6
3797 echo "configure:3798: checking for backtrace" >&5
3798 if eval "test \"`echo '$''{'ac_cv_func_backtrace'+set}'`\" = set"; then
3799 echo $ac_n "(cached) $ac_c" 1>&6
3800 else
3801 cat > conftest.$ac_ext <<EOF
3802 #line 3803 "configure"
3803 #include "confdefs.h"
3804 /* System header to define __stub macros and hopefully few prototypes,
3805 which can conflict with char backtrace(); below. */
3806 #include <assert.h>
3807 /* Override any gcc2 internal prototype to avoid an error. */
3808 /* We use char because int might match the return type of a gcc2
3809 builtin and then its argument prototype would still apply. */
3810 char backtrace();
3812 int main() {
3814 /* The GNU C library defines this for functions which it implements
3815 to always fail with ENOSYS. Some functions are actually named
3816 something starting with __ and the normal name is an alias. */
3817 #if defined (__stub_backtrace) || defined (__stub___backtrace)
3818 choke me
3819 #else
3820 backtrace();
3821 #endif
3823 ; return 0; }
3825 if { (eval echo configure:3826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3826 rm -rf conftest*
3827 eval "ac_cv_func_backtrace=yes"
3828 else
3829 echo "configure: failed program was:" >&5
3830 cat conftest.$ac_ext >&5
3831 rm -rf conftest*
3832 eval "ac_cv_func_backtrace=no"
3834 rm -f conftest*
3837 if eval "test \"`echo '$ac_cv_func_'backtrace`\" = yes"; then
3838 echo "$ac_t""yes" 1>&6
3840 case "$host" in
3841 ia64-*-linux*)
3842 # Has broken backtrace()
3844 s390*-*-linux*)
3845 # Has broken backtrace()
3848 cat >> confdefs.h <<\EOF
3849 #define HAVE_BACKTRACE 1
3853 esac
3855 else
3856 echo "$ac_t""no" 1>&6
3860 echo $ac_n "checking for dladdr in -ldl""... $ac_c" 1>&6
3861 echo "configure:3862: checking for dladdr in -ldl" >&5
3862 ac_lib_var=`echo dl'_'dladdr | sed 'y%./+-%__p_%'`
3863 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3864 echo $ac_n "(cached) $ac_c" 1>&6
3865 else
3866 ac_save_LIBS="$LIBS"
3867 LIBS="-ldl $LIBS"
3868 cat > conftest.$ac_ext <<EOF
3869 #line 3870 "configure"
3870 #include "confdefs.h"
3871 /* Override any gcc2 internal prototype to avoid an error. */
3872 /* We use char because int might match the return type of a gcc2
3873 builtin and then its argument prototype would still apply. */
3874 char dladdr();
3876 int main() {
3877 dladdr()
3878 ; return 0; }
3880 if { (eval echo configure:3881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3881 rm -rf conftest*
3882 eval "ac_cv_lib_$ac_lib_var=yes"
3883 else
3884 echo "configure: failed program was:" >&5
3885 cat conftest.$ac_ext >&5
3886 rm -rf conftest*
3887 eval "ac_cv_lib_$ac_lib_var=no"
3889 rm -f conftest*
3890 LIBS="$ac_save_LIBS"
3893 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3894 echo "$ac_t""yes" 1>&6
3896 cat >> confdefs.h <<\EOF
3897 #define HAVE_DLADDR 1
3900 else
3901 echo "$ac_t""no" 1>&6
3904 if test x"$build" = x"$host"; then
3905 for ac_file in /proc/self/exe
3908 ac_safe=`echo "$ac_file" | sed 'y%./+-%__p_%'`
3909 echo $ac_n "checking for $ac_file""... $ac_c" 1>&6
3910 echo "configure:3911: checking for $ac_file" >&5
3911 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
3912 echo $ac_n "(cached) $ac_c" 1>&6
3913 else
3914 if test "$cross_compiling" = yes; then
3915 { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
3916 else
3917 if test -r $ac_file; then
3918 eval "ac_cv_file_$ac_safe=yes"
3919 else
3920 eval "ac_cv_file_$ac_safe=no"
3924 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
3925 echo "$ac_t""yes" 1>&6
3926 ac_tr_file=HAVE_`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3927 cat >> confdefs.h <<EOF
3928 #define $ac_tr_file 1
3931 cat >> confdefs.h <<\EOF
3932 #define HAVE_PROC_SELF_EXE 1
3935 else
3936 echo "$ac_t""no" 1>&6
3939 done
3941 else
3942 case $host in
3943 *-linux*)
3944 cat >> confdefs.h <<\EOF
3945 #define HAVE_PROC_SELF_EXE 1
3949 esac
3954 am_cv_lib_iconv_ldpath=
3955 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
3956 if test "${with_libiconv_prefix+set}" = set; then
3957 withval="$with_libiconv_prefix"
3959 for dir in `echo "$withval" | tr : ' '`; do
3960 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
3961 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
3962 done
3967 echo $ac_n "checking for iconv""... $ac_c" 1>&6
3968 echo "configure:3969: checking for iconv" >&5
3969 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
3970 echo $ac_n "(cached) $ac_c" 1>&6
3971 else
3973 am_cv_func_iconv="no, consider installing GNU libiconv"
3974 am_cv_lib_iconv=no
3975 cat > conftest.$ac_ext <<EOF
3976 #line 3977 "configure"
3977 #include "confdefs.h"
3978 #include <stdlib.h>
3979 #include <iconv.h>
3980 int main() {
3981 iconv_t cd = iconv_open("","");
3982 iconv(cd,NULL,NULL,NULL,NULL);
3983 iconv_close(cd);
3984 ; return 0; }
3986 if { (eval echo configure:3987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3987 rm -rf conftest*
3988 am_cv_func_iconv=yes
3989 else
3990 echo "configure: failed program was:" >&5
3991 cat conftest.$ac_ext >&5
3993 rm -f conftest*
3994 if test "$am_cv_func_iconv" != yes; then
3995 am_save_LIBS="$LIBS"
3996 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
3997 cat > conftest.$ac_ext <<EOF
3998 #line 3999 "configure"
3999 #include "confdefs.h"
4000 #include <stdlib.h>
4001 #include <iconv.h>
4002 int main() {
4003 iconv_t cd = iconv_open("","");
4004 iconv(cd,NULL,NULL,NULL,NULL);
4005 iconv_close(cd);
4006 ; return 0; }
4008 if { (eval echo configure:4009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4009 rm -rf conftest*
4010 am_cv_lib_iconv=yes
4011 am_cv_func_iconv=yes
4012 else
4013 echo "configure: failed program was:" >&5
4014 cat conftest.$ac_ext >&5
4016 rm -f conftest*
4017 LIBS="$am_save_LIBS"
4022 echo "$ac_t""$am_cv_func_iconv" 1>&6
4023 if test "$am_cv_func_iconv" = yes; then
4024 cat >> confdefs.h <<\EOF
4025 #define HAVE_ICONV 1
4028 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
4029 echo "configure:4030: checking for iconv declaration" >&5
4030 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
4031 echo $ac_n "(cached) $ac_c" 1>&6
4032 else
4034 cat > conftest.$ac_ext <<EOF
4035 #line 4036 "configure"
4036 #include "confdefs.h"
4038 #include <stdlib.h>
4039 #include <iconv.h>
4040 extern
4041 #ifdef __cplusplus
4043 #endif
4044 #if defined(__STDC__) || defined(__cplusplus)
4045 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
4046 #else
4047 size_t iconv();
4048 #endif
4050 int main() {
4052 ; return 0; }
4054 if { (eval echo configure:4055: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4055 rm -rf conftest*
4056 am_cv_proto_iconv_arg1=""
4057 else
4058 echo "configure: failed program was:" >&5
4059 cat conftest.$ac_ext >&5
4060 rm -rf conftest*
4061 am_cv_proto_iconv_arg1="const"
4063 rm -f conftest*
4064 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
4067 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
4068 echo "$ac_t""${ac_t:-
4069 }$am_cv_proto_iconv" 1>&6
4070 cat >> confdefs.h <<EOF
4071 #define ICONV_CONST $am_cv_proto_iconv_arg1
4075 LIBICONV=
4076 if test "$am_cv_lib_iconv" = yes; then
4077 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
4081 if test $ac_cv_header_locale_h = yes; then
4082 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
4083 echo "configure:4084: checking for LC_MESSAGES" >&5
4084 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
4085 echo $ac_n "(cached) $ac_c" 1>&6
4086 else
4087 cat > conftest.$ac_ext <<EOF
4088 #line 4089 "configure"
4089 #include "confdefs.h"
4090 #include <locale.h>
4091 int main() {
4092 return LC_MESSAGES
4093 ; return 0; }
4095 if { (eval echo configure:4096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4096 rm -rf conftest*
4097 am_cv_val_LC_MESSAGES=yes
4098 else
4099 echo "configure: failed program was:" >&5
4100 cat conftest.$ac_ext >&5
4101 rm -rf conftest*
4102 am_cv_val_LC_MESSAGES=no
4104 rm -f conftest*
4107 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
4108 if test $am_cv_val_LC_MESSAGES = yes; then
4109 cat >> confdefs.h <<\EOF
4110 #define HAVE_LC_MESSAGES 1
4115 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4116 echo "configure:4117: checking whether struct tm is in sys/time.h or time.h" >&5
4117 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
4118 echo $ac_n "(cached) $ac_c" 1>&6
4119 else
4120 cat > conftest.$ac_ext <<EOF
4121 #line 4122 "configure"
4122 #include "confdefs.h"
4123 #include <sys/types.h>
4124 #include <time.h>
4125 int main() {
4126 struct tm *tp; tp->tm_sec;
4127 ; return 0; }
4129 if { (eval echo configure:4130: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4130 rm -rf conftest*
4131 ac_cv_struct_tm=time.h
4132 else
4133 echo "configure: failed program was:" >&5
4134 cat conftest.$ac_ext >&5
4135 rm -rf conftest*
4136 ac_cv_struct_tm=sys/time.h
4138 rm -f conftest*
4141 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4142 if test $ac_cv_struct_tm = sys/time.h; then
4143 cat >> confdefs.h <<\EOF
4144 #define TM_IN_SYS_TIME 1
4149 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4150 echo "configure:4151: checking for tm_zone in struct tm" >&5
4151 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
4152 echo $ac_n "(cached) $ac_c" 1>&6
4153 else
4154 cat > conftest.$ac_ext <<EOF
4155 #line 4156 "configure"
4156 #include "confdefs.h"
4157 #include <sys/types.h>
4158 #include <$ac_cv_struct_tm>
4159 int main() {
4160 struct tm tm; tm.tm_zone;
4161 ; return 0; }
4163 if { (eval echo configure:4164: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4164 rm -rf conftest*
4165 ac_cv_struct_tm_zone=yes
4166 else
4167 echo "configure: failed program was:" >&5
4168 cat conftest.$ac_ext >&5
4169 rm -rf conftest*
4170 ac_cv_struct_tm_zone=no
4172 rm -f conftest*
4175 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4176 if test "$ac_cv_struct_tm_zone" = yes; then
4177 cat >> confdefs.h <<\EOF
4178 #define HAVE_TM_ZONE 1
4181 else
4182 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4183 echo "configure:4184: checking for tzname" >&5
4184 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
4185 echo $ac_n "(cached) $ac_c" 1>&6
4186 else
4187 cat > conftest.$ac_ext <<EOF
4188 #line 4189 "configure"
4189 #include "confdefs.h"
4190 #include <time.h>
4191 #ifndef tzname /* For SGI. */
4192 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4193 #endif
4194 int main() {
4195 atoi(*tzname);
4196 ; return 0; }
4198 if { (eval echo configure:4199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4199 rm -rf conftest*
4200 ac_cv_var_tzname=yes
4201 else
4202 echo "configure: failed program was:" >&5
4203 cat conftest.$ac_ext >&5
4204 rm -rf conftest*
4205 ac_cv_var_tzname=no
4207 rm -f conftest*
4210 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4211 if test $ac_cv_var_tzname = yes; then
4212 cat >> confdefs.h <<\EOF
4213 #define HAVE_TZNAME 1
4220 for ac_func in gethostbyname_r
4222 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4223 echo "configure:4224: checking for $ac_func" >&5
4224 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4225 echo $ac_n "(cached) $ac_c" 1>&6
4226 else
4227 cat > conftest.$ac_ext <<EOF
4228 #line 4229 "configure"
4229 #include "confdefs.h"
4230 /* System header to define __stub macros and hopefully few prototypes,
4231 which can conflict with char $ac_func(); below. */
4232 #include <assert.h>
4233 /* Override any gcc2 internal prototype to avoid an error. */
4234 /* We use char because int might match the return type of a gcc2
4235 builtin and then its argument prototype would still apply. */
4236 char $ac_func();
4238 int main() {
4240 /* The GNU C library defines this for functions which it implements
4241 to always fail with ENOSYS. Some functions are actually named
4242 something starting with __ and the normal name is an alias. */
4243 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4244 choke me
4245 #else
4246 $ac_func();
4247 #endif
4249 ; return 0; }
4251 if { (eval echo configure:4252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4252 rm -rf conftest*
4253 eval "ac_cv_func_$ac_func=yes"
4254 else
4255 echo "configure: failed program was:" >&5
4256 cat conftest.$ac_ext >&5
4257 rm -rf conftest*
4258 eval "ac_cv_func_$ac_func=no"
4260 rm -f conftest*
4263 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4264 echo "$ac_t""yes" 1>&6
4265 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4266 cat >> confdefs.h <<EOF
4267 #define $ac_tr_func 1
4270 cat >> confdefs.h <<\EOF
4271 #define HAVE_GETHOSTBYNAME_R 1
4274 # There are two different kinds of gethostbyname_r.
4275 # We look for the one that returns `int'.
4276 # Hopefully this check is robust enough.
4277 cat > conftest.$ac_ext <<EOF
4278 #line 4279 "configure"
4279 #include "confdefs.h"
4280 #include <netdb.h>
4282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4283 egrep "int.*gethostbyname_r" >/dev/null 2>&1; then
4284 rm -rf conftest*
4286 cat >> confdefs.h <<\EOF
4287 #define GETHOSTBYNAME_R_RETURNS_INT 1
4291 rm -f conftest*
4294 case " $GCINCS " in
4295 *" -D_REENTRANT "*) ;;
4297 echo $ac_n "checking whether gethostbyname_r declaration requires -D_REENTRANT""... $ac_c" 1>&6
4298 echo "configure:4299: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
4299 if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
4300 echo $ac_n "(cached) $ac_c" 1>&6
4301 else
4303 ac_ext=C
4304 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4305 ac_cpp='$CXXCPP $CPPFLAGS'
4306 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4307 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4308 cross_compiling=$ac_cv_prog_cxx_cross
4310 cat > conftest.$ac_ext <<EOF
4311 #line 4312 "configure"
4312 #include "confdefs.h"
4313 #include <netdb.h>
4314 int main() {
4315 gethostbyname_r("", 0, 0);
4316 ; return 0; }
4318 if { (eval echo configure:4319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4319 rm -rf conftest*
4320 libjava_cv_gethostbyname_r_needs_reentrant=no
4321 else
4322 echo "configure: failed program was:" >&5
4323 cat conftest.$ac_ext >&5
4324 rm -rf conftest*
4325 CPPFLAGS_SAVE="$CPPFLAGS"
4326 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
4327 cat > conftest.$ac_ext <<EOF
4328 #line 4329 "configure"
4329 #include "confdefs.h"
4330 #include <netdb.h>
4331 int main() {
4332 gethostbyname_r("", 0, 0);
4333 ; return 0; }
4335 if { (eval echo configure:4336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4336 rm -rf conftest*
4337 libjava_cv_gethostbyname_r_needs_reentrant=yes
4338 else
4339 echo "configure: failed program was:" >&5
4340 cat conftest.$ac_ext >&5
4341 rm -rf conftest*
4342 libjava_cv_gethostbyname_r_needs_reentrant=fail
4344 rm -f conftest*
4345 CPPFLAGS="$CPPFLAGS_SAVE"
4348 rm -f conftest*
4349 ac_ext=c
4350 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4351 ac_cpp='$CPP $CPPFLAGS'
4352 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4353 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4354 cross_compiling=$ac_cv_prog_cc_cross
4359 echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
4360 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
4361 cat >> confdefs.h <<\EOF
4362 #define _REENTRANT 1
4367 esac
4369 echo $ac_n "checking for struct hostent_data""... $ac_c" 1>&6
4370 echo "configure:4371: checking for struct hostent_data" >&5
4371 if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
4372 echo $ac_n "(cached) $ac_c" 1>&6
4373 else
4374 cat > conftest.$ac_ext <<EOF
4375 #line 4376 "configure"
4376 #include "confdefs.h"
4378 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
4379 # define _REENTRANT 1
4380 #endif
4381 #include <netdb.h>
4382 int main() {
4383 struct hostent_data data;
4384 ; return 0; }
4386 if { (eval echo configure:4387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4387 rm -rf conftest*
4388 libjava_cv_struct_hostent_data=yes
4389 else
4390 echo "configure: failed program was:" >&5
4391 cat conftest.$ac_ext >&5
4392 rm -rf conftest*
4393 libjava_cv_struct_hostent_data=no
4395 rm -f conftest*
4398 echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
4399 if test "x$libjava_cv_struct_hostent_data" = xyes; then
4400 cat >> confdefs.h <<\EOF
4401 #define HAVE_STRUCT_HOSTENT_DATA 1
4406 else
4407 echo "$ac_t""no" 1>&6
4409 done
4412 # FIXME: libjava source code expects to find a prototype for
4413 # gethostbyaddr_r in netdb.h. The outer check ensures that
4414 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
4415 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
4416 # linkage check is enough, yet C++ code requires proper prototypes.)
4417 cat > conftest.$ac_ext <<EOF
4418 #line 4419 "configure"
4419 #include "confdefs.h"
4420 #include <netdb.h>
4422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4423 egrep "gethostbyaddr_r" >/dev/null 2>&1; then
4424 rm -rf conftest*
4426 for ac_func in gethostbyaddr_r
4428 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4429 echo "configure:4430: checking for $ac_func" >&5
4430 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4431 echo $ac_n "(cached) $ac_c" 1>&6
4432 else
4433 cat > conftest.$ac_ext <<EOF
4434 #line 4435 "configure"
4435 #include "confdefs.h"
4436 /* System header to define __stub macros and hopefully few prototypes,
4437 which can conflict with char $ac_func(); below. */
4438 #include <assert.h>
4439 /* Override any gcc2 internal prototype to avoid an error. */
4440 /* We use char because int might match the return type of a gcc2
4441 builtin and then its argument prototype would still apply. */
4442 char $ac_func();
4444 int main() {
4446 /* The GNU C library defines this for functions which it implements
4447 to always fail with ENOSYS. Some functions are actually named
4448 something starting with __ and the normal name is an alias. */
4449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4450 choke me
4451 #else
4452 $ac_func();
4453 #endif
4455 ; return 0; }
4457 if { (eval echo configure:4458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4458 rm -rf conftest*
4459 eval "ac_cv_func_$ac_func=yes"
4460 else
4461 echo "configure: failed program was:" >&5
4462 cat conftest.$ac_ext >&5
4463 rm -rf conftest*
4464 eval "ac_cv_func_$ac_func=no"
4466 rm -f conftest*
4469 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4470 echo "$ac_t""yes" 1>&6
4471 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4472 cat >> confdefs.h <<EOF
4473 #define $ac_tr_func 1
4476 cat >> confdefs.h <<\EOF
4477 #define HAVE_GETHOSTBYADDR_R 1
4480 # There are two different kinds of gethostbyaddr_r.
4481 # We look for the one that returns `int'.
4482 # Hopefully this check is robust enough.
4483 cat > conftest.$ac_ext <<EOF
4484 #line 4485 "configure"
4485 #include "confdefs.h"
4486 #include <netdb.h>
4488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4489 egrep "int.*gethostbyaddr_r" >/dev/null 2>&1; then
4490 rm -rf conftest*
4492 cat >> confdefs.h <<\EOF
4493 #define GETHOSTBYADDR_R_RETURNS_INT 1
4497 rm -f conftest*
4499 else
4500 echo "$ac_t""no" 1>&6
4502 done
4505 rm -f conftest*
4508 for ac_func in gethostname
4510 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4511 echo "configure:4512: checking for $ac_func" >&5
4512 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4513 echo $ac_n "(cached) $ac_c" 1>&6
4514 else
4515 cat > conftest.$ac_ext <<EOF
4516 #line 4517 "configure"
4517 #include "confdefs.h"
4518 /* System header to define __stub macros and hopefully few prototypes,
4519 which can conflict with char $ac_func(); below. */
4520 #include <assert.h>
4521 /* Override any gcc2 internal prototype to avoid an error. */
4522 /* We use char because int might match the return type of a gcc2
4523 builtin and then its argument prototype would still apply. */
4524 char $ac_func();
4526 int main() {
4528 /* The GNU C library defines this for functions which it implements
4529 to always fail with ENOSYS. Some functions are actually named
4530 something starting with __ and the normal name is an alias. */
4531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4532 choke me
4533 #else
4534 $ac_func();
4535 #endif
4537 ; return 0; }
4539 if { (eval echo configure:4540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4540 rm -rf conftest*
4541 eval "ac_cv_func_$ac_func=yes"
4542 else
4543 echo "configure: failed program was:" >&5
4544 cat conftest.$ac_ext >&5
4545 rm -rf conftest*
4546 eval "ac_cv_func_$ac_func=no"
4548 rm -f conftest*
4551 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4552 echo "$ac_t""yes" 1>&6
4553 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4554 cat >> confdefs.h <<EOF
4555 #define $ac_tr_func 1
4558 cat >> confdefs.h <<\EOF
4559 #define HAVE_GETHOSTNAME 1
4562 cat > conftest.$ac_ext <<EOF
4563 #line 4564 "configure"
4564 #include "confdefs.h"
4565 #include <unistd.h>
4567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4568 egrep "gethostname" >/dev/null 2>&1; then
4569 rm -rf conftest*
4571 cat >> confdefs.h <<\EOF
4572 #define HAVE_GETHOSTNAME_DECL 1
4576 rm -f conftest*
4578 else
4579 echo "$ac_t""no" 1>&6
4581 done
4584 # Look for these functions in the thread library, but only bother
4585 # if using POSIX threads.
4586 if test "$THREADS" = posix; then
4587 save_LIBS="$LIBS"
4588 LIBS="$LIBS $THREADLIBS"
4589 # Some POSIX thread systems don't have pthread_mutexattr_settype.
4590 # E.g., Solaris.
4591 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
4593 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4594 echo "configure:4595: checking for $ac_func" >&5
4595 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4596 echo $ac_n "(cached) $ac_c" 1>&6
4597 else
4598 cat > conftest.$ac_ext <<EOF
4599 #line 4600 "configure"
4600 #include "confdefs.h"
4601 /* System header to define __stub macros and hopefully few prototypes,
4602 which can conflict with char $ac_func(); below. */
4603 #include <assert.h>
4604 /* Override any gcc2 internal prototype to avoid an error. */
4605 /* We use char because int might match the return type of a gcc2
4606 builtin and then its argument prototype would still apply. */
4607 char $ac_func();
4609 int main() {
4611 /* The GNU C library defines this for functions which it implements
4612 to always fail with ENOSYS. Some functions are actually named
4613 something starting with __ and the normal name is an alias. */
4614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4615 choke me
4616 #else
4617 $ac_func();
4618 #endif
4620 ; return 0; }
4622 if { (eval echo configure:4623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4623 rm -rf conftest*
4624 eval "ac_cv_func_$ac_func=yes"
4625 else
4626 echo "configure: failed program was:" >&5
4627 cat conftest.$ac_ext >&5
4628 rm -rf conftest*
4629 eval "ac_cv_func_$ac_func=no"
4631 rm -f conftest*
4634 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4635 echo "$ac_t""yes" 1>&6
4636 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4637 cat >> confdefs.h <<EOF
4638 #define $ac_tr_func 1
4641 else
4642 echo "$ac_t""no" 1>&6
4644 done
4647 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
4648 # Solaris 7 the name librt is preferred.
4649 for ac_func in sched_yield
4651 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4652 echo "configure:4653: checking for $ac_func" >&5
4653 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4654 echo $ac_n "(cached) $ac_c" 1>&6
4655 else
4656 cat > conftest.$ac_ext <<EOF
4657 #line 4658 "configure"
4658 #include "confdefs.h"
4659 /* System header to define __stub macros and hopefully few prototypes,
4660 which can conflict with char $ac_func(); below. */
4661 #include <assert.h>
4662 /* Override any gcc2 internal prototype to avoid an error. */
4663 /* We use char because int might match the return type of a gcc2
4664 builtin and then its argument prototype would still apply. */
4665 char $ac_func();
4667 int main() {
4669 /* The GNU C library defines this for functions which it implements
4670 to always fail with ENOSYS. Some functions are actually named
4671 something starting with __ and the normal name is an alias. */
4672 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4673 choke me
4674 #else
4675 $ac_func();
4676 #endif
4678 ; return 0; }
4680 if { (eval echo configure:4681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4681 rm -rf conftest*
4682 eval "ac_cv_func_$ac_func=yes"
4683 else
4684 echo "configure: failed program was:" >&5
4685 cat conftest.$ac_ext >&5
4686 rm -rf conftest*
4687 eval "ac_cv_func_$ac_func=no"
4689 rm -f conftest*
4692 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4693 echo "$ac_t""yes" 1>&6
4694 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4695 cat >> confdefs.h <<EOF
4696 #define $ac_tr_func 1
4699 else
4700 echo "$ac_t""no" 1>&6
4701 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
4702 echo "configure:4703: checking for sched_yield in -lrt" >&5
4703 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
4704 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4705 echo $ac_n "(cached) $ac_c" 1>&6
4706 else
4707 ac_save_LIBS="$LIBS"
4708 LIBS="-lrt $LIBS"
4709 cat > conftest.$ac_ext <<EOF
4710 #line 4711 "configure"
4711 #include "confdefs.h"
4712 /* Override any gcc2 internal prototype to avoid an error. */
4713 /* We use char because int might match the return type of a gcc2
4714 builtin and then its argument prototype would still apply. */
4715 char sched_yield();
4717 int main() {
4718 sched_yield()
4719 ; return 0; }
4721 if { (eval echo configure:4722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4722 rm -rf conftest*
4723 eval "ac_cv_lib_$ac_lib_var=yes"
4724 else
4725 echo "configure: failed program was:" >&5
4726 cat conftest.$ac_ext >&5
4727 rm -rf conftest*
4728 eval "ac_cv_lib_$ac_lib_var=no"
4730 rm -f conftest*
4731 LIBS="$ac_save_LIBS"
4734 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4735 echo "$ac_t""yes" 1>&6
4737 cat >> confdefs.h <<\EOF
4738 #define HAVE_SCHED_YIELD 1
4741 THREADLIBS="$THREADLIBS -lrt"
4742 THREADSPEC="$THREADSPEC -lrt"
4743 else
4744 echo "$ac_t""no" 1>&6
4746 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
4747 echo "configure:4748: checking for sched_yield in -lposix4" >&5
4748 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
4749 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4750 echo $ac_n "(cached) $ac_c" 1>&6
4751 else
4752 ac_save_LIBS="$LIBS"
4753 LIBS="-lposix4 $LIBS"
4754 cat > conftest.$ac_ext <<EOF
4755 #line 4756 "configure"
4756 #include "confdefs.h"
4757 /* Override any gcc2 internal prototype to avoid an error. */
4758 /* We use char because int might match the return type of a gcc2
4759 builtin and then its argument prototype would still apply. */
4760 char sched_yield();
4762 int main() {
4763 sched_yield()
4764 ; return 0; }
4766 if { (eval echo configure:4767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4767 rm -rf conftest*
4768 eval "ac_cv_lib_$ac_lib_var=yes"
4769 else
4770 echo "configure: failed program was:" >&5
4771 cat conftest.$ac_ext >&5
4772 rm -rf conftest*
4773 eval "ac_cv_lib_$ac_lib_var=no"
4775 rm -f conftest*
4776 LIBS="$ac_save_LIBS"
4779 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4780 echo "$ac_t""yes" 1>&6
4782 cat >> confdefs.h <<\EOF
4783 #define HAVE_SCHED_YIELD 1
4786 THREADLIBS="$THREADLIBS -lposix4"
4787 THREADSPEC="$THREADSPEC -lposix4"
4788 else
4789 echo "$ac_t""no" 1>&6
4795 done
4797 LIBS="$save_LIBS"
4799 # We can save a little space at runtime if the mutex has m_count
4800 # or __m_count. This is a nice hack for Linux.
4801 cat > conftest.$ac_ext <<EOF
4802 #line 4803 "configure"
4803 #include "confdefs.h"
4804 #include <pthread.h>
4805 int main() {
4807 extern pthread_mutex_t *mutex; int q = mutex->m_count;
4809 ; return 0; }
4811 if { (eval echo configure:4812: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4812 rm -rf conftest*
4813 cat >> confdefs.h <<\EOF
4814 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
4817 else
4818 echo "configure: failed program was:" >&5
4819 cat conftest.$ac_ext >&5
4820 rm -rf conftest*
4822 cat > conftest.$ac_ext <<EOF
4823 #line 4824 "configure"
4824 #include "confdefs.h"
4825 #include <pthread.h>
4826 int main() {
4828 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
4830 ; return 0; }
4832 if { (eval echo configure:4833: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4833 rm -rf conftest*
4834 cat >> confdefs.h <<\EOF
4835 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
4838 else
4839 echo "configure: failed program was:" >&5
4840 cat conftest.$ac_ext >&5
4842 rm -f conftest*
4844 rm -f conftest*
4847 # We require a way to get the time.
4848 time_found=no
4849 for ac_func in gettimeofday time ftime
4851 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4852 echo "configure:4853: checking for $ac_func" >&5
4853 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4854 echo $ac_n "(cached) $ac_c" 1>&6
4855 else
4856 cat > conftest.$ac_ext <<EOF
4857 #line 4858 "configure"
4858 #include "confdefs.h"
4859 /* System header to define __stub macros and hopefully few prototypes,
4860 which can conflict with char $ac_func(); below. */
4861 #include <assert.h>
4862 /* Override any gcc2 internal prototype to avoid an error. */
4863 /* We use char because int might match the return type of a gcc2
4864 builtin and then its argument prototype would still apply. */
4865 char $ac_func();
4867 int main() {
4869 /* The GNU C library defines this for functions which it implements
4870 to always fail with ENOSYS. Some functions are actually named
4871 something starting with __ and the normal name is an alias. */
4872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4873 choke me
4874 #else
4875 $ac_func();
4876 #endif
4878 ; return 0; }
4880 if { (eval echo configure:4881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4881 rm -rf conftest*
4882 eval "ac_cv_func_$ac_func=yes"
4883 else
4884 echo "configure: failed program was:" >&5
4885 cat conftest.$ac_ext >&5
4886 rm -rf conftest*
4887 eval "ac_cv_func_$ac_func=no"
4889 rm -f conftest*
4892 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4893 echo "$ac_t""yes" 1>&6
4894 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4895 cat >> confdefs.h <<EOF
4896 #define $ac_tr_func 1
4898 time_found=yes
4899 else
4900 echo "$ac_t""no" 1>&6
4902 done
4904 if test "$time_found" = no; then
4905 { echo "configure: error: no function found to get the time" 1>&2; exit 1; }
4908 for ac_func in memmove
4910 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4911 echo "configure:4912: checking for $ac_func" >&5
4912 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4913 echo $ac_n "(cached) $ac_c" 1>&6
4914 else
4915 cat > conftest.$ac_ext <<EOF
4916 #line 4917 "configure"
4917 #include "confdefs.h"
4918 /* System header to define __stub macros and hopefully few prototypes,
4919 which can conflict with char $ac_func(); below. */
4920 #include <assert.h>
4921 /* Override any gcc2 internal prototype to avoid an error. */
4922 /* We use char because int might match the return type of a gcc2
4923 builtin and then its argument prototype would still apply. */
4924 char $ac_func();
4926 int main() {
4928 /* The GNU C library defines this for functions which it implements
4929 to always fail with ENOSYS. Some functions are actually named
4930 something starting with __ and the normal name is an alias. */
4931 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4932 choke me
4933 #else
4934 $ac_func();
4935 #endif
4937 ; return 0; }
4939 if { (eval echo configure:4940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4940 rm -rf conftest*
4941 eval "ac_cv_func_$ac_func=yes"
4942 else
4943 echo "configure: failed program was:" >&5
4944 cat conftest.$ac_ext >&5
4945 rm -rf conftest*
4946 eval "ac_cv_func_$ac_func=no"
4948 rm -f conftest*
4951 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4952 echo "$ac_t""yes" 1>&6
4953 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4954 cat >> confdefs.h <<EOF
4955 #define $ac_tr_func 1
4958 else
4959 echo "$ac_t""no" 1>&6
4961 done
4964 # We require memcpy.
4965 memcpy_found=no
4966 for ac_func in memcpy
4968 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4969 echo "configure:4970: checking for $ac_func" >&5
4970 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4971 echo $ac_n "(cached) $ac_c" 1>&6
4972 else
4973 cat > conftest.$ac_ext <<EOF
4974 #line 4975 "configure"
4975 #include "confdefs.h"
4976 /* System header to define __stub macros and hopefully few prototypes,
4977 which can conflict with char $ac_func(); below. */
4978 #include <assert.h>
4979 /* Override any gcc2 internal prototype to avoid an error. */
4980 /* We use char because int might match the return type of a gcc2
4981 builtin and then its argument prototype would still apply. */
4982 char $ac_func();
4984 int main() {
4986 /* The GNU C library defines this for functions which it implements
4987 to always fail with ENOSYS. Some functions are actually named
4988 something starting with __ and the normal name is an alias. */
4989 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4990 choke me
4991 #else
4992 $ac_func();
4993 #endif
4995 ; return 0; }
4997 if { (eval echo configure:4998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4998 rm -rf conftest*
4999 eval "ac_cv_func_$ac_func=yes"
5000 else
5001 echo "configure: failed program was:" >&5
5002 cat conftest.$ac_ext >&5
5003 rm -rf conftest*
5004 eval "ac_cv_func_$ac_func=no"
5006 rm -f conftest*
5009 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5010 echo "$ac_t""yes" 1>&6
5011 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5012 cat >> confdefs.h <<EOF
5013 #define $ac_tr_func 1
5015 memcpy_found=yes
5016 else
5017 echo "$ac_t""no" 1>&6
5019 done
5021 if test "$memcpy_found" = no; then
5022 { echo "configure: error: memcpy is required" 1>&2; exit 1; }
5025 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
5026 echo "configure:5027: checking for dlopen in -ldl" >&5
5027 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
5028 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5029 echo $ac_n "(cached) $ac_c" 1>&6
5030 else
5031 ac_save_LIBS="$LIBS"
5032 LIBS="-ldl $LIBS"
5033 cat > conftest.$ac_ext <<EOF
5034 #line 5035 "configure"
5035 #include "confdefs.h"
5036 /* Override any gcc2 internal prototype to avoid an error. */
5037 /* We use char because int might match the return type of a gcc2
5038 builtin and then its argument prototype would still apply. */
5039 char dlopen();
5041 int main() {
5042 dlopen()
5043 ; return 0; }
5045 if { (eval echo configure:5046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5046 rm -rf conftest*
5047 eval "ac_cv_lib_$ac_lib_var=yes"
5048 else
5049 echo "configure: failed program was:" >&5
5050 cat conftest.$ac_ext >&5
5051 rm -rf conftest*
5052 eval "ac_cv_lib_$ac_lib_var=no"
5054 rm -f conftest*
5055 LIBS="$ac_save_LIBS"
5058 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5059 echo "$ac_t""yes" 1>&6
5061 cat >> confdefs.h <<\EOF
5062 #define HAVE_DLOPEN 1
5065 else
5066 echo "$ac_t""no" 1>&6
5070 # Some library-finding code we stole from Tcl.
5071 #--------------------------------------------------------------------
5072 # Check for the existence of the -lsocket and -lnsl libraries.
5073 # The order here is important, so that they end up in the right
5074 # order in the command line generated by make. Here are some
5075 # special considerations:
5076 # 1. Use "connect" and "accept" to check for -lsocket, and
5077 # "gethostbyname" to check for -lnsl.
5078 # 2. Use each function name only once: can't redo a check because
5079 # autoconf caches the results of the last check and won't redo it.
5080 # 3. Use -lnsl and -lsocket only if they supply procedures that
5081 # aren't already present in the normal libraries. This is because
5082 # IRIX 5.2 has libraries, but they aren't needed and they're
5083 # bogus: they goof up name resolution if used.
5084 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
5085 # To get around this problem, check for both libraries together
5086 # if -lsocket doesn't work by itself.
5087 #--------------------------------------------------------------------
5089 echo $ac_n "checking for socket libraries""... $ac_c" 1>&6
5090 echo "configure:5091: checking for socket libraries" >&5
5091 if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
5092 echo $ac_n "(cached) $ac_c" 1>&6
5093 else
5094 gcj_cv_lib_sockets=
5095 gcj_checkBoth=0
5096 unset ac_cv_func_connect
5097 echo $ac_n "checking for connect""... $ac_c" 1>&6
5098 echo "configure:5099: checking for connect" >&5
5099 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
5100 echo $ac_n "(cached) $ac_c" 1>&6
5101 else
5102 cat > conftest.$ac_ext <<EOF
5103 #line 5104 "configure"
5104 #include "confdefs.h"
5105 /* System header to define __stub macros and hopefully few prototypes,
5106 which can conflict with char connect(); below. */
5107 #include <assert.h>
5108 /* Override any gcc2 internal prototype to avoid an error. */
5109 /* We use char because int might match the return type of a gcc2
5110 builtin and then its argument prototype would still apply. */
5111 char connect();
5113 int main() {
5115 /* The GNU C library defines this for functions which it implements
5116 to always fail with ENOSYS. Some functions are actually named
5117 something starting with __ and the normal name is an alias. */
5118 #if defined (__stub_connect) || defined (__stub___connect)
5119 choke me
5120 #else
5121 connect();
5122 #endif
5124 ; return 0; }
5126 if { (eval echo configure:5127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5127 rm -rf conftest*
5128 eval "ac_cv_func_connect=yes"
5129 else
5130 echo "configure: failed program was:" >&5
5131 cat conftest.$ac_ext >&5
5132 rm -rf conftest*
5133 eval "ac_cv_func_connect=no"
5135 rm -f conftest*
5138 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
5139 echo "$ac_t""yes" 1>&6
5140 gcj_checkSocket=0
5141 else
5142 echo "$ac_t""no" 1>&6
5143 gcj_checkSocket=1
5146 if test "$gcj_checkSocket" = 1; then
5147 unset ac_cv_func_connect
5148 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
5149 echo "configure:5150: checking for main in -lsocket" >&5
5150 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
5151 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5152 echo $ac_n "(cached) $ac_c" 1>&6
5153 else
5154 ac_save_LIBS="$LIBS"
5155 LIBS="-lsocket $LIBS"
5156 cat > conftest.$ac_ext <<EOF
5157 #line 5158 "configure"
5158 #include "confdefs.h"
5160 int main() {
5161 main()
5162 ; return 0; }
5164 if { (eval echo configure:5165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5165 rm -rf conftest*
5166 eval "ac_cv_lib_$ac_lib_var=yes"
5167 else
5168 echo "configure: failed program was:" >&5
5169 cat conftest.$ac_ext >&5
5170 rm -rf conftest*
5171 eval "ac_cv_lib_$ac_lib_var=no"
5173 rm -f conftest*
5174 LIBS="$ac_save_LIBS"
5177 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5178 echo "$ac_t""yes" 1>&6
5179 gcj_cv_lib_sockets="-lsocket"
5180 else
5181 echo "$ac_t""no" 1>&6
5182 gcj_checkBoth=1
5186 if test "$gcj_checkBoth" = 1; then
5187 gcj_oldLibs=$LIBS
5188 LIBS="$LIBS -lsocket -lnsl"
5189 unset ac_cv_func_accept
5190 echo $ac_n "checking for accept""... $ac_c" 1>&6
5191 echo "configure:5192: checking for accept" >&5
5192 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
5193 echo $ac_n "(cached) $ac_c" 1>&6
5194 else
5195 cat > conftest.$ac_ext <<EOF
5196 #line 5197 "configure"
5197 #include "confdefs.h"
5198 /* System header to define __stub macros and hopefully few prototypes,
5199 which can conflict with char accept(); below. */
5200 #include <assert.h>
5201 /* Override any gcc2 internal prototype to avoid an error. */
5202 /* We use char because int might match the return type of a gcc2
5203 builtin and then its argument prototype would still apply. */
5204 char accept();
5206 int main() {
5208 /* The GNU C library defines this for functions which it implements
5209 to always fail with ENOSYS. Some functions are actually named
5210 something starting with __ and the normal name is an alias. */
5211 #if defined (__stub_accept) || defined (__stub___accept)
5212 choke me
5213 #else
5214 accept();
5215 #endif
5217 ; return 0; }
5219 if { (eval echo configure:5220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5220 rm -rf conftest*
5221 eval "ac_cv_func_accept=yes"
5222 else
5223 echo "configure: failed program was:" >&5
5224 cat conftest.$ac_ext >&5
5225 rm -rf conftest*
5226 eval "ac_cv_func_accept=no"
5228 rm -f conftest*
5231 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
5232 echo "$ac_t""yes" 1>&6
5233 gcj_checkNsl=0
5234 gcj_cv_lib_sockets="-lsocket -lnsl"
5235 else
5236 echo "$ac_t""no" 1>&6
5239 unset ac_cv_func_accept
5240 LIBS=$gcj_oldLibs
5242 unset ac_cv_func_gethostbyname
5243 gcj_oldLibs=$LIBS
5244 LIBS="$LIBS $gcj_cv_lib_sockets"
5245 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5246 echo "configure:5247: checking for gethostbyname" >&5
5247 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
5248 echo $ac_n "(cached) $ac_c" 1>&6
5249 else
5250 cat > conftest.$ac_ext <<EOF
5251 #line 5252 "configure"
5252 #include "confdefs.h"
5253 /* System header to define __stub macros and hopefully few prototypes,
5254 which can conflict with char gethostbyname(); below. */
5255 #include <assert.h>
5256 /* Override any gcc2 internal prototype to avoid an error. */
5257 /* We use char because int might match the return type of a gcc2
5258 builtin and then its argument prototype would still apply. */
5259 char gethostbyname();
5261 int main() {
5263 /* The GNU C library defines this for functions which it implements
5264 to always fail with ENOSYS. Some functions are actually named
5265 something starting with __ and the normal name is an alias. */
5266 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5267 choke me
5268 #else
5269 gethostbyname();
5270 #endif
5272 ; return 0; }
5274 if { (eval echo configure:5275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5275 rm -rf conftest*
5276 eval "ac_cv_func_gethostbyname=yes"
5277 else
5278 echo "configure: failed program was:" >&5
5279 cat conftest.$ac_ext >&5
5280 rm -rf conftest*
5281 eval "ac_cv_func_gethostbyname=no"
5283 rm -f conftest*
5286 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5287 echo "$ac_t""yes" 1>&6
5289 else
5290 echo "$ac_t""no" 1>&6
5291 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
5292 echo "configure:5293: checking for main in -lnsl" >&5
5293 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
5294 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5295 echo $ac_n "(cached) $ac_c" 1>&6
5296 else
5297 ac_save_LIBS="$LIBS"
5298 LIBS="-lnsl $LIBS"
5299 cat > conftest.$ac_ext <<EOF
5300 #line 5301 "configure"
5301 #include "confdefs.h"
5303 int main() {
5304 main()
5305 ; return 0; }
5307 if { (eval echo configure:5308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5308 rm -rf conftest*
5309 eval "ac_cv_lib_$ac_lib_var=yes"
5310 else
5311 echo "configure: failed program was:" >&5
5312 cat conftest.$ac_ext >&5
5313 rm -rf conftest*
5314 eval "ac_cv_lib_$ac_lib_var=no"
5316 rm -f conftest*
5317 LIBS="$ac_save_LIBS"
5320 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5321 echo "$ac_t""yes" 1>&6
5322 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
5323 else
5324 echo "$ac_t""no" 1>&6
5329 unset ac_cv_func_gethostbyname
5330 LIBS=$gcj_oldLIBS
5334 echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
5335 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
5337 if test "$with_system_zlib" = yes; then
5338 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
5339 echo "configure:5340: checking for deflate in -lz" >&5
5340 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
5341 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5342 echo $ac_n "(cached) $ac_c" 1>&6
5343 else
5344 ac_save_LIBS="$LIBS"
5345 LIBS="-lz $LIBS"
5346 cat > conftest.$ac_ext <<EOF
5347 #line 5348 "configure"
5348 #include "confdefs.h"
5349 /* Override any gcc2 internal prototype to avoid an error. */
5350 /* We use char because int might match the return type of a gcc2
5351 builtin and then its argument prototype would still apply. */
5352 char deflate();
5354 int main() {
5355 deflate()
5356 ; return 0; }
5358 if { (eval echo configure:5359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5359 rm -rf conftest*
5360 eval "ac_cv_lib_$ac_lib_var=yes"
5361 else
5362 echo "configure: failed program was:" >&5
5363 cat conftest.$ac_ext >&5
5364 rm -rf conftest*
5365 eval "ac_cv_lib_$ac_lib_var=no"
5367 rm -f conftest*
5368 LIBS="$ac_save_LIBS"
5371 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5372 echo "$ac_t""yes" 1>&6
5373 ZLIBSPEC=-lz
5374 else
5375 echo "$ac_t""no" 1>&6
5376 ZLIBSPEC=
5381 # On Solaris, and maybe other architectures, the Boehm collector
5382 # requires -ldl.
5383 if test "$GC" = boehm; then
5384 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
5385 echo "configure:5386: checking for main in -ldl" >&5
5386 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
5387 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5388 echo $ac_n "(cached) $ac_c" 1>&6
5389 else
5390 ac_save_LIBS="$LIBS"
5391 LIBS="-ldl $LIBS"
5392 cat > conftest.$ac_ext <<EOF
5393 #line 5394 "configure"
5394 #include "confdefs.h"
5396 int main() {
5397 main()
5398 ; return 0; }
5400 if { (eval echo configure:5401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5401 rm -rf conftest*
5402 eval "ac_cv_lib_$ac_lib_var=yes"
5403 else
5404 echo "configure: failed program was:" >&5
5405 cat conftest.$ac_ext >&5
5406 rm -rf conftest*
5407 eval "ac_cv_lib_$ac_lib_var=no"
5409 rm -f conftest*
5410 LIBS="$ac_save_LIBS"
5413 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5414 echo "$ac_t""yes" 1>&6
5415 SYSTEMSPEC="$SYSTEMSPEC -ldl"
5416 else
5417 echo "$ac_t""no" 1>&6
5422 if test -z "${with_multisubdir}"; then
5423 builddotdot=.
5424 else
5426 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
5429 if test -x "${builddotdot}/../../gcc/gcj"; then
5430 dir="`cd ${builddotdot}/../../gcc && ${PWDCMD-pwd}`"
5431 GCJ="$dir/gcj -B`${PWDCMD-pwd}`/ -B$dir/"
5432 else
5433 CANADIAN=yes
5434 NULL_TARGET=yes
5435 GCJ="gcj -B`${PWDCMD-pwd}`/"
5439 # Create it, so that compile/link tests don't fail
5440 test -f libgcj.spec || touch libgcj.spec
5442 # We must search the source tree for java.lang, since we still don't
5443 # have libgcj.jar nor java/lang/*.class
5444 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
5445 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
5447 # Since some classes depend on this one, we need its source available
5448 # before we can do any GCJ compilation test :-(
5449 if test ! -f gnu/classpath/Configuration.java; then
5450 test -d gnu || mkdir gnu
5451 test -d gnu/classpath || mkdir gnu/classpath
5452 sed 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
5453 < $srcdir/gnu/classpath/Configuration.java.in \
5454 > gnu/classpath/Configuration.java
5455 # We do not want to redirect the output of the grep below to /dev/null,
5456 # but we add /dev/null to the input list so that grep will print the
5457 # filename of Configuration.java in case it finds any matches.
5458 if grep @ gnu/classpath/Configuration.java /dev/null; then
5459 { echo "configure: error: configure.in is missing the substitutions above" 1>&2; exit 1; }
5463 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
5464 set dummy ${ac_tool_prefix}gcj; ac_word=$2
5465 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5466 echo "configure:5467: checking for $ac_word" >&5
5467 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
5468 echo $ac_n "(cached) $ac_c" 1>&6
5469 else
5470 if test -n "$GCJ"; then
5471 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5472 else
5473 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5474 ac_dummy="$PATH"
5475 for ac_dir in $ac_dummy; do
5476 test -z "$ac_dir" && ac_dir=.
5477 if test -f $ac_dir/$ac_word; then
5478 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
5479 break
5481 done
5482 IFS="$ac_save_ifs"
5485 GCJ="$ac_cv_prog_GCJ"
5486 if test -n "$GCJ"; then
5487 echo "$ac_t""$GCJ" 1>&6
5488 else
5489 echo "$ac_t""no" 1>&6
5493 if test -z "$ac_cv_prog_GCJ"; then
5494 if test -n "$ac_tool_prefix"; then
5495 # Extract the first word of "gcj", so it can be a program name with args.
5496 set dummy gcj; ac_word=$2
5497 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5498 echo "configure:5499: checking for $ac_word" >&5
5499 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
5500 echo $ac_n "(cached) $ac_c" 1>&6
5501 else
5502 if test -n "$GCJ"; then
5503 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5504 else
5505 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5506 ac_dummy="$PATH"
5507 for ac_dir in $ac_dummy; do
5508 test -z "$ac_dir" && ac_dir=.
5509 if test -f $ac_dir/$ac_word; then
5510 ac_cv_prog_GCJ="gcj"
5511 break
5513 done
5514 IFS="$ac_save_ifs"
5515 test -z "$ac_cv_prog_GCJ" && ac_cv_prog_GCJ="no"
5518 GCJ="$ac_cv_prog_GCJ"
5519 if test -n "$GCJ"; then
5520 echo "$ac_t""$GCJ" 1>&6
5521 else
5522 echo "$ac_t""no" 1>&6
5525 else
5526 GCJ="no"
5530 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
5534 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
5535 lt_save_CC="$CC"
5536 lt_save_CFLAGS="$CFLAGS"
5537 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
5538 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5539 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5540 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5541 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5542 deplibs_check_method="$deplibs_check_method" \
5543 file_magic_cmd="$file_magic_cmd" \
5544 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5545 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
5546 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
5547 CC="$lt_save_CC"
5548 CFLAGS="$lt_save_CFLAGS"
5550 # Redirect the config.log output again, so that the ltconfig log is not
5551 # clobbered by the next message.
5552 exec 5>>./config.log
5557 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
5559 echo $ac_n "checking size of void *""... $ac_c" 1>&6
5560 echo "configure:5561: checking size of void *" >&5
5561 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
5562 echo $ac_n "(cached) $ac_c" 1>&6
5563 else
5564 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
5565 cat > conftest.$ac_ext <<EOF
5566 #line 5567 "configure"
5567 #include "confdefs.h"
5568 #include "confdefs.h"
5569 #include <sys/types.h>
5572 int main() {
5573 switch (0) case 0: case (sizeof (void *) == $ac_size):;
5574 ; return 0; }
5576 if { (eval echo configure:5577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5577 rm -rf conftest*
5578 ac_cv_sizeof_void_p=$ac_size
5579 else
5580 echo "configure: failed program was:" >&5
5581 cat conftest.$ac_ext >&5
5583 rm -f conftest*
5584 if test x$ac_cv_sizeof_void_p != x ; then break; fi
5585 done
5589 if test x$ac_cv_sizeof_void_p = x ; then
5590 { echo "configure: error: cannot determine a size for void *" 1>&2; exit 1; }
5592 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
5593 cat >> confdefs.h <<EOF
5594 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5599 ZLIBS=
5600 SYS_ZLIBS=
5601 ZINCS=
5603 if test -z "$ZLIBSPEC"; then
5604 # Use zlib from the GCC tree.
5605 ZINCS='-I$(top_srcdir)/../zlib'
5606 ZLIBS=../zlib/libzgcj_convenience.la
5607 else
5608 # System's zlib.
5609 SYS_ZLIBS="$ZLIBSPEC"
5620 if test "$CANADIAN" = yes; then
5621 CANADIAN_TRUE=
5622 CANADIAN_FALSE='#'
5623 else
5624 CANADIAN_TRUE='#'
5625 CANADIAN_FALSE=
5629 if test "$NULL_TARGET" = yes; then
5630 NULL_TARGET_TRUE=
5631 NULL_TARGET_FALSE='#'
5632 else
5633 NULL_TARGET_TRUE='#'
5634 NULL_TARGET_FALSE=
5638 if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
5639 NATIVE_TRUE=
5640 NATIVE_FALSE='#'
5641 else
5642 NATIVE_TRUE='#'
5643 NATIVE_FALSE=
5647 if test -z "$with_cross_host"; then
5648 USE_LIBDIR_TRUE=
5649 USE_LIBDIR_FALSE='#'
5650 else
5651 USE_LIBDIR_TRUE='#'
5652 USE_LIBDIR_FALSE=
5656 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
5657 NEEDS_DATA_START_TRUE=
5658 NEEDS_DATA_START_FALSE='#'
5659 else
5660 NEEDS_DATA_START_TRUE='#'
5661 NEEDS_DATA_START_FALSE=
5665 # Determine gcj version number.
5667 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
5669 GCJVERSION=$gcjversion
5671 cat >> confdefs.h <<EOF
5672 #define GCJVERSION "$GCJVERSION"
5676 echo $ac_n "checking for g++ -ffloat-store bug""... $ac_c" 1>&6
5677 echo "configure:5678: checking for g++ -ffloat-store bug" >&5
5678 save_CFLAGS="$CFLAGS"
5679 CFLAGS="-x c++ -O2 -ffloat-store"
5680 cat > conftest.$ac_ext <<EOF
5681 #line 5682 "configure"
5682 #include "confdefs.h"
5683 #include <math.h>
5684 int main() {
5686 ; return 0; }
5688 if { (eval echo configure:5689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5689 rm -rf conftest*
5690 echo "$ac_t""no" 1>&6
5691 else
5692 echo "configure: failed program was:" >&5
5693 cat conftest.$ac_ext >&5
5694 rm -rf conftest*
5695 cat >> confdefs.h <<\EOF
5696 #define __NO_MATH_INLINES 1
5699 echo "$ac_t""yes" 1>&6
5701 rm -f conftest*
5702 CFLAGS="$save_CFLAGS"
5704 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 stdint.h langinfo.h locale.h
5706 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5707 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5708 echo "configure:5709: checking for $ac_hdr" >&5
5709 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5710 echo $ac_n "(cached) $ac_c" 1>&6
5711 else
5712 cat > conftest.$ac_ext <<EOF
5713 #line 5714 "configure"
5714 #include "confdefs.h"
5715 #include <$ac_hdr>
5717 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5718 { (eval echo configure:5719: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5719 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5720 if test -z "$ac_err"; then
5721 rm -rf conftest*
5722 eval "ac_cv_header_$ac_safe=yes"
5723 else
5724 echo "$ac_err" >&5
5725 echo "configure: failed program was:" >&5
5726 cat conftest.$ac_ext >&5
5727 rm -rf conftest*
5728 eval "ac_cv_header_$ac_safe=no"
5730 rm -f conftest*
5732 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5733 echo "$ac_t""yes" 1>&6
5734 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5735 cat >> confdefs.h <<EOF
5736 #define $ac_tr_hdr 1
5739 else
5740 echo "$ac_t""no" 1>&6
5742 done
5744 for ac_hdr in dirent.h
5746 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5747 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5748 echo "configure:5749: checking for $ac_hdr" >&5
5749 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5750 echo $ac_n "(cached) $ac_c" 1>&6
5751 else
5752 cat > conftest.$ac_ext <<EOF
5753 #line 5754 "configure"
5754 #include "confdefs.h"
5755 #include <$ac_hdr>
5757 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5758 { (eval echo configure:5759: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5759 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5760 if test -z "$ac_err"; then
5761 rm -rf conftest*
5762 eval "ac_cv_header_$ac_safe=yes"
5763 else
5764 echo "$ac_err" >&5
5765 echo "configure: failed program was:" >&5
5766 cat conftest.$ac_ext >&5
5767 rm -rf conftest*
5768 eval "ac_cv_header_$ac_safe=no"
5770 rm -f conftest*
5772 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5773 echo "$ac_t""yes" 1>&6
5774 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5775 cat >> confdefs.h <<EOF
5776 #define $ac_tr_hdr 1
5779 else
5780 echo "$ac_t""no" 1>&6
5782 done
5784 for ac_hdr in inttypes.h
5786 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5787 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5788 echo "configure:5789: checking for $ac_hdr" >&5
5789 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5790 echo $ac_n "(cached) $ac_c" 1>&6
5791 else
5792 cat > conftest.$ac_ext <<EOF
5793 #line 5794 "configure"
5794 #include "confdefs.h"
5795 #include <$ac_hdr>
5797 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5798 { (eval echo configure:5799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5799 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5800 if test -z "$ac_err"; then
5801 rm -rf conftest*
5802 eval "ac_cv_header_$ac_safe=yes"
5803 else
5804 echo "$ac_err" >&5
5805 echo "configure: failed program was:" >&5
5806 cat conftest.$ac_ext >&5
5807 rm -rf conftest*
5808 eval "ac_cv_header_$ac_safe=no"
5810 rm -f conftest*
5812 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5813 echo "$ac_t""yes" 1>&6
5814 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5815 cat >> confdefs.h <<EOF
5816 #define $ac_tr_hdr 1
5819 cat >> confdefs.h <<\EOF
5820 #define HAVE_INTTYPES_H 1
5823 cat >> confdefs.h <<\EOF
5824 #define JV_HAVE_INTTYPES_H 1
5828 else
5829 echo "$ac_t""no" 1>&6
5831 done
5833 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
5834 echo "configure:5835: checking for sys/wait.h that is POSIX.1 compatible" >&5
5835 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
5836 echo $ac_n "(cached) $ac_c" 1>&6
5837 else
5838 cat > conftest.$ac_ext <<EOF
5839 #line 5840 "configure"
5840 #include "confdefs.h"
5841 #include <sys/types.h>
5842 #include <sys/wait.h>
5843 #ifndef WEXITSTATUS
5844 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5845 #endif
5846 #ifndef WIFEXITED
5847 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5848 #endif
5849 int main() {
5850 int s;
5851 wait (&s);
5852 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5853 ; return 0; }
5855 if { (eval echo configure:5856: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5856 rm -rf conftest*
5857 ac_cv_header_sys_wait_h=yes
5858 else
5859 echo "configure: failed program was:" >&5
5860 cat conftest.$ac_ext >&5
5861 rm -rf conftest*
5862 ac_cv_header_sys_wait_h=no
5864 rm -f conftest*
5867 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
5868 if test $ac_cv_header_sys_wait_h = yes; then
5869 cat >> confdefs.h <<\EOF
5870 #define HAVE_SYS_WAIT_H 1
5876 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5877 echo "configure:5878: checking for ANSI C header files" >&5
5878 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5879 echo $ac_n "(cached) $ac_c" 1>&6
5880 else
5881 cat > conftest.$ac_ext <<EOF
5882 #line 5883 "configure"
5883 #include "confdefs.h"
5884 #include <stdlib.h>
5885 #include <stdarg.h>
5886 #include <string.h>
5887 #include <float.h>
5889 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5890 { (eval echo configure:5891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5891 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5892 if test -z "$ac_err"; then
5893 rm -rf conftest*
5894 ac_cv_header_stdc=yes
5895 else
5896 echo "$ac_err" >&5
5897 echo "configure: failed program was:" >&5
5898 cat conftest.$ac_ext >&5
5899 rm -rf conftest*
5900 ac_cv_header_stdc=no
5902 rm -f conftest*
5904 if test $ac_cv_header_stdc = yes; then
5905 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5906 cat > conftest.$ac_ext <<EOF
5907 #line 5908 "configure"
5908 #include "confdefs.h"
5909 #include <string.h>
5911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5912 egrep "memchr" >/dev/null 2>&1; then
5914 else
5915 rm -rf conftest*
5916 ac_cv_header_stdc=no
5918 rm -f conftest*
5922 if test $ac_cv_header_stdc = yes; then
5923 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5924 cat > conftest.$ac_ext <<EOF
5925 #line 5926 "configure"
5926 #include "confdefs.h"
5927 #include <stdlib.h>
5929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5930 egrep "free" >/dev/null 2>&1; then
5932 else
5933 rm -rf conftest*
5934 ac_cv_header_stdc=no
5936 rm -f conftest*
5940 if test $ac_cv_header_stdc = yes; then
5941 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5942 if test "$cross_compiling" = yes; then
5944 else
5945 cat > conftest.$ac_ext <<EOF
5946 #line 5947 "configure"
5947 #include "confdefs.h"
5948 #include <ctype.h>
5949 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5950 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5951 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5952 int main () { int i; for (i = 0; i < 256; i++)
5953 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5954 exit (0); }
5957 if { (eval echo configure:5958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5958 then
5960 else
5961 echo "configure: failed program was:" >&5
5962 cat conftest.$ac_ext >&5
5963 rm -fr conftest*
5964 ac_cv_header_stdc=no
5966 rm -fr conftest*
5972 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5973 if test $ac_cv_header_stdc = yes; then
5974 cat >> confdefs.h <<\EOF
5975 #define STDC_HEADERS 1
5980 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
5981 echo "configure:5982: checking for ssize_t" >&5
5982 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
5983 echo $ac_n "(cached) $ac_c" 1>&6
5984 else
5985 cat > conftest.$ac_ext <<EOF
5986 #line 5987 "configure"
5987 #include "confdefs.h"
5988 #include <sys/types.h>
5989 #if STDC_HEADERS
5990 #include <stdlib.h>
5991 #include <stddef.h>
5992 #endif
5994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5995 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5996 rm -rf conftest*
5997 ac_cv_type_ssize_t=yes
5998 else
5999 rm -rf conftest*
6000 ac_cv_type_ssize_t=no
6002 rm -f conftest*
6005 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
6006 if test $ac_cv_type_ssize_t = no; then
6007 cat >> confdefs.h <<\EOF
6008 #define ssize_t int
6014 echo $ac_n "checking for in_addr_t""... $ac_c" 1>&6
6015 echo "configure:6016: checking for in_addr_t" >&5
6016 cat > conftest.$ac_ext <<EOF
6017 #line 6018 "configure"
6018 #include "confdefs.h"
6019 #include <sys/types.h>
6020 #if STDC_HEADERS
6021 #include <stdlib.h>
6022 #include <stddef.h>
6023 #endif
6024 #if HAVE_NETINET_IN_H
6025 #include <netinet/in.h>
6026 #endif
6027 int main() {
6028 in_addr_t foo;
6029 ; return 0; }
6031 if { (eval echo configure:6032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6032 rm -rf conftest*
6033 cat >> confdefs.h <<\EOF
6034 #define HAVE_IN_ADDR_T 1
6037 echo "$ac_t""yes" 1>&6
6038 else
6039 echo "configure: failed program was:" >&5
6040 cat conftest.$ac_ext >&5
6041 rm -rf conftest*
6042 echo "$ac_t""no" 1>&6
6044 rm -f conftest*
6046 echo $ac_n "checking whether struct ip_mreq is in netinet/in.h""... $ac_c" 1>&6
6047 echo "configure:6048: checking whether struct ip_mreq is in netinet/in.h" >&5
6048 cat > conftest.$ac_ext <<EOF
6049 #line 6050 "configure"
6050 #include "confdefs.h"
6051 #include <netinet/in.h>
6052 int main() {
6053 struct ip_mreq mreq;
6054 ; return 0; }
6056 if { (eval echo configure:6057: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6057 rm -rf conftest*
6058 cat >> confdefs.h <<\EOF
6059 #define HAVE_STRUCT_IP_MREQ 1
6062 echo "$ac_t""yes" 1>&6
6063 else
6064 echo "configure: failed program was:" >&5
6065 cat conftest.$ac_ext >&5
6066 rm -rf conftest*
6067 echo "$ac_t""no" 1>&6
6069 rm -f conftest*
6071 echo $ac_n "checking whether struct ipv6_mreq is in netinet/in.h""... $ac_c" 1>&6
6072 echo "configure:6073: checking whether struct ipv6_mreq is in netinet/in.h" >&5
6073 cat > conftest.$ac_ext <<EOF
6074 #line 6075 "configure"
6075 #include "confdefs.h"
6076 #include <netinet/in.h>
6077 int main() {
6078 struct ipv6_mreq mreq6;
6079 ; return 0; }
6081 if { (eval echo configure:6082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6082 rm -rf conftest*
6083 cat >> confdefs.h <<\EOF
6084 #define HAVE_STRUCT_IPV6_MREQ 1
6087 echo "$ac_t""yes" 1>&6
6088 else
6089 echo "configure: failed program was:" >&5
6090 cat conftest.$ac_ext >&5
6091 rm -rf conftest*
6092 echo "$ac_t""no" 1>&6
6094 rm -f conftest*
6096 echo $ac_n "checking whether struct sockaddr_in6 is in netinet/in.h""... $ac_c" 1>&6
6097 echo "configure:6098: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
6098 cat > conftest.$ac_ext <<EOF
6099 #line 6100 "configure"
6100 #include "confdefs.h"
6101 #include <netinet/in.h>
6102 int main() {
6103 struct sockaddr_in6 addr6;
6104 ; return 0; }
6106 if { (eval echo configure:6107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6107 rm -rf conftest*
6108 cat >> confdefs.h <<\EOF
6109 #define HAVE_INET6 1
6112 echo "$ac_t""yes" 1>&6
6113 else
6114 echo "configure: failed program was:" >&5
6115 cat conftest.$ac_ext >&5
6116 rm -rf conftest*
6117 echo "$ac_t""no" 1>&6
6119 rm -f conftest*
6121 echo $ac_n "checking for socklen_t in sys/socket.h""... $ac_c" 1>&6
6122 echo "configure:6123: checking for socklen_t in sys/socket.h" >&5
6123 cat > conftest.$ac_ext <<EOF
6124 #line 6125 "configure"
6125 #include "confdefs.h"
6126 #define _POSIX_PII_SOCKET
6127 #include <sys/types.h>
6128 #include <sys/socket.h>
6129 int main() {
6130 socklen_t x = 5;
6131 ; return 0; }
6133 if { (eval echo configure:6134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6134 rm -rf conftest*
6135 cat >> confdefs.h <<\EOF
6136 #define HAVE_SOCKLEN_T 1
6139 echo "$ac_t""yes" 1>&6
6140 else
6141 echo "configure: failed program was:" >&5
6142 cat conftest.$ac_ext >&5
6143 rm -rf conftest*
6144 echo "$ac_t""no" 1>&6
6146 rm -f conftest*
6148 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
6149 echo "configure:6150: checking for tm_gmtoff in struct tm" >&5
6150 cat > conftest.$ac_ext <<EOF
6151 #line 6152 "configure"
6152 #include "confdefs.h"
6153 #include <time.h>
6154 int main() {
6155 struct tm tim; tim.tm_gmtoff = 0;
6156 ; return 0; }
6158 if { (eval echo configure:6159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6159 rm -rf conftest*
6160 cat >> confdefs.h <<\EOF
6161 #define STRUCT_TM_HAS_GMTOFF 1
6164 echo "$ac_t""yes" 1>&6
6165 else
6166 echo "configure: failed program was:" >&5
6167 cat conftest.$ac_ext >&5
6168 rm -rf conftest*
6169 echo "$ac_t""no" 1>&6
6170 echo $ac_n "checking for global timezone variable""... $ac_c" 1>&6
6171 echo "configure:6172: checking for global timezone variable" >&5
6172 cat > conftest.$ac_ext <<EOF
6173 #line 6174 "configure"
6174 #include "confdefs.h"
6175 #include <time.h>
6176 int main() {
6177 void i(){long z2 = 2*timezone;}
6178 ; return 0; }
6180 if { (eval echo configure:6181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6181 rm -rf conftest*
6182 cat >> confdefs.h <<\EOF
6183 #define HAVE_TIMEZONE 1
6186 echo "$ac_t""yes" 1>&6
6187 else
6188 echo "configure: failed program was:" >&5
6189 cat conftest.$ac_ext >&5
6190 rm -rf conftest*
6191 echo "$ac_t""no" 1>&6
6192 echo $ac_n "checking for global _timezone variable""... $ac_c" 1>&6
6193 echo "configure:6194: checking for global _timezone variable" >&5
6194 cat > conftest.$ac_ext <<EOF
6195 #line 6196 "configure"
6196 #include "confdefs.h"
6197 #include <time.h>
6198 int main() {
6199 long z2 = _timezone;
6200 ; return 0; }
6202 if { (eval echo configure:6203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6203 rm -rf conftest*
6204 cat >> confdefs.h <<\EOF
6205 #define HAVE_UNDERSCORE_TIMEZONE 1
6208 echo "$ac_t""yes" 1>&6
6209 else
6210 echo "configure: failed program was:" >&5
6211 cat conftest.$ac_ext >&5
6212 rm -rf conftest*
6213 echo "$ac_t""no" 1>&6
6215 rm -f conftest*
6217 rm -f conftest*
6219 rm -f conftest*
6221 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6222 # for constant arguments. Useless!
6223 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
6224 echo "configure:6225: checking for working alloca.h" >&5
6225 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
6226 echo $ac_n "(cached) $ac_c" 1>&6
6227 else
6228 cat > conftest.$ac_ext <<EOF
6229 #line 6230 "configure"
6230 #include "confdefs.h"
6231 #include <alloca.h>
6232 int main() {
6233 char *p = alloca(2 * sizeof(int));
6234 ; return 0; }
6236 if { (eval echo configure:6237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6237 rm -rf conftest*
6238 ac_cv_header_alloca_h=yes
6239 else
6240 echo "configure: failed program was:" >&5
6241 cat conftest.$ac_ext >&5
6242 rm -rf conftest*
6243 ac_cv_header_alloca_h=no
6245 rm -f conftest*
6248 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
6249 if test $ac_cv_header_alloca_h = yes; then
6250 cat >> confdefs.h <<\EOF
6251 #define HAVE_ALLOCA_H 1
6256 echo $ac_n "checking for alloca""... $ac_c" 1>&6
6257 echo "configure:6258: checking for alloca" >&5
6258 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
6259 echo $ac_n "(cached) $ac_c" 1>&6
6260 else
6261 cat > conftest.$ac_ext <<EOF
6262 #line 6263 "configure"
6263 #include "confdefs.h"
6265 #ifdef __GNUC__
6266 # define alloca __builtin_alloca
6267 #else
6268 # ifdef _MSC_VER
6269 # include <malloc.h>
6270 # define alloca _alloca
6271 # else
6272 # if HAVE_ALLOCA_H
6273 # include <alloca.h>
6274 # else
6275 # ifdef _AIX
6276 #pragma alloca
6277 # else
6278 # ifndef alloca /* predefined by HP cc +Olibcalls */
6279 char *alloca ();
6280 # endif
6281 # endif
6282 # endif
6283 # endif
6284 #endif
6286 int main() {
6287 char *p = (char *) alloca(1);
6288 ; return 0; }
6290 if { (eval echo configure:6291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6291 rm -rf conftest*
6292 ac_cv_func_alloca_works=yes
6293 else
6294 echo "configure: failed program was:" >&5
6295 cat conftest.$ac_ext >&5
6296 rm -rf conftest*
6297 ac_cv_func_alloca_works=no
6299 rm -f conftest*
6302 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
6303 if test $ac_cv_func_alloca_works = yes; then
6304 cat >> confdefs.h <<\EOF
6305 #define HAVE_ALLOCA 1
6310 if test $ac_cv_func_alloca_works = no; then
6311 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6312 # that cause trouble. Some versions do not even contain alloca or
6313 # contain a buggy version. If you still want to use their alloca,
6314 # use ar to extract alloca.o from them instead of compiling alloca.c.
6315 ALLOCA=alloca.${ac_objext}
6316 cat >> confdefs.h <<\EOF
6317 #define C_ALLOCA 1
6321 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
6322 echo "configure:6323: checking whether alloca needs Cray hooks" >&5
6323 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
6324 echo $ac_n "(cached) $ac_c" 1>&6
6325 else
6326 cat > conftest.$ac_ext <<EOF
6327 #line 6328 "configure"
6328 #include "confdefs.h"
6329 #if defined(CRAY) && ! defined(CRAY2)
6330 webecray
6331 #else
6332 wenotbecray
6333 #endif
6336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6337 egrep "webecray" >/dev/null 2>&1; then
6338 rm -rf conftest*
6339 ac_cv_os_cray=yes
6340 else
6341 rm -rf conftest*
6342 ac_cv_os_cray=no
6344 rm -f conftest*
6348 echo "$ac_t""$ac_cv_os_cray" 1>&6
6349 if test $ac_cv_os_cray = yes; then
6350 for ac_func in _getb67 GETB67 getb67; do
6351 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6352 echo "configure:6353: checking for $ac_func" >&5
6353 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6354 echo $ac_n "(cached) $ac_c" 1>&6
6355 else
6356 cat > conftest.$ac_ext <<EOF
6357 #line 6358 "configure"
6358 #include "confdefs.h"
6359 /* System header to define __stub macros and hopefully few prototypes,
6360 which can conflict with char $ac_func(); below. */
6361 #include <assert.h>
6362 /* Override any gcc2 internal prototype to avoid an error. */
6363 /* We use char because int might match the return type of a gcc2
6364 builtin and then its argument prototype would still apply. */
6365 char $ac_func();
6367 int main() {
6369 /* The GNU C library defines this for functions which it implements
6370 to always fail with ENOSYS. Some functions are actually named
6371 something starting with __ and the normal name is an alias. */
6372 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6373 choke me
6374 #else
6375 $ac_func();
6376 #endif
6378 ; return 0; }
6380 if { (eval echo configure:6381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6381 rm -rf conftest*
6382 eval "ac_cv_func_$ac_func=yes"
6383 else
6384 echo "configure: failed program was:" >&5
6385 cat conftest.$ac_ext >&5
6386 rm -rf conftest*
6387 eval "ac_cv_func_$ac_func=no"
6389 rm -f conftest*
6392 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6393 echo "$ac_t""yes" 1>&6
6394 cat >> confdefs.h <<EOF
6395 #define CRAY_STACKSEG_END $ac_func
6398 break
6399 else
6400 echo "$ac_t""no" 1>&6
6403 done
6406 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
6407 echo "configure:6408: checking stack direction for C alloca" >&5
6408 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
6409 echo $ac_n "(cached) $ac_c" 1>&6
6410 else
6411 if test "$cross_compiling" = yes; then
6412 ac_cv_c_stack_direction=0
6413 else
6414 cat > conftest.$ac_ext <<EOF
6415 #line 6416 "configure"
6416 #include "confdefs.h"
6417 find_stack_direction ()
6419 static char *addr = 0;
6420 auto char dummy;
6421 if (addr == 0)
6423 addr = &dummy;
6424 return find_stack_direction ();
6426 else
6427 return (&dummy > addr) ? 1 : -1;
6429 main ()
6431 exit (find_stack_direction() < 0);
6434 if { (eval echo configure:6435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6435 then
6436 ac_cv_c_stack_direction=1
6437 else
6438 echo "configure: failed program was:" >&5
6439 cat conftest.$ac_ext >&5
6440 rm -fr conftest*
6441 ac_cv_c_stack_direction=-1
6443 rm -fr conftest*
6448 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
6449 cat >> confdefs.h <<EOF
6450 #define STACK_DIRECTION $ac_cv_c_stack_direction
6456 for ac_prog in perl
6458 # Extract the first word of "$ac_prog", so it can be a program name with args.
6459 set dummy $ac_prog; ac_word=$2
6460 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6461 echo "configure:6462: checking for $ac_word" >&5
6462 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
6463 echo $ac_n "(cached) $ac_c" 1>&6
6464 else
6465 if test -n "$PERL"; then
6466 ac_cv_prog_PERL="$PERL" # Let the user override the test.
6467 else
6468 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6469 ac_dummy="$PATH"
6470 for ac_dir in $ac_dummy; do
6471 test -z "$ac_dir" && ac_dir=.
6472 if test -f $ac_dir/$ac_word; then
6473 ac_cv_prog_PERL="$ac_prog"
6474 break
6476 done
6477 IFS="$ac_save_ifs"
6480 PERL="$ac_cv_prog_PERL"
6481 if test -n "$PERL"; then
6482 echo "$ac_t""$PERL" 1>&6
6483 else
6484 echo "$ac_t""no" 1>&6
6487 test -n "$PERL" && break
6488 done
6489 test -n "$PERL" || PERL="false"
6492 SYSDEP_SOURCES=
6494 case "${host}" in
6495 i?86-*-linux*)
6496 SIGNAL_HANDLER=include/i386-signal.h
6498 sparc*-sun-solaris*)
6499 SIGNAL_HANDLER=include/sparc-signal.h
6501 # ia64-*)
6502 # SYSDEP_SOURCES=sysdep/ia64.c
6503 # test -d sysdep || mkdir sysdep
6504 # ;;
6505 ia64-*-linux*)
6506 SIGNAL_HANDLER=include/dwarf2-signal.h
6508 powerpc-*-linux*)
6509 SIGNAL_HANDLER=include/dwarf2-signal.h
6511 alpha*-*-linux*)
6512 SIGNAL_HANDLER=include/dwarf2-signal.h
6514 s390*-*-linux*)
6515 SIGNAL_HANDLER=include/s390-signal.h
6517 x86_64*-*-linux*)
6518 SIGNAL_HANDLER=include/dwarf2-signal.h
6520 sparc*-*-linux*)
6521 SIGNAL_HANDLER=include/dwarf2-signal.h
6523 *mingw*)
6524 SIGNAL_HANDLER=include/win32-signal.h
6527 SIGNAL_HANDLER=include/default-signal.h
6529 esac
6531 # If we're using sjlj exceptions, forget what we just learned.
6532 if test "$enable_sjlj_exceptions" = yes; then
6533 SIGNAL_HANDLER=include/default-signal.h
6540 if test "${multilib}" = "yes"; then
6541 multilib_arg="--enable-multilib"
6542 else
6543 multilib_arg=
6546 # If we find X, set shell vars x_includes and x_libraries to the
6547 # paths, otherwise set no_x=yes.
6548 # Uses ac_ vars as temps to allow command line to override cache and checks.
6549 # --without-x overrides everything else, but does not touch the cache.
6550 echo $ac_n "checking for X""... $ac_c" 1>&6
6551 echo "configure:6552: checking for X" >&5
6553 # Check whether --with-x or --without-x was given.
6554 if test "${with_x+set}" = set; then
6555 withval="$with_x"
6559 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6560 if test "x$with_x" = xno; then
6561 # The user explicitly disabled X.
6562 have_x=disabled
6563 else
6564 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6565 # Both variables are already set.
6566 have_x=yes
6567 else
6568 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
6569 echo $ac_n "(cached) $ac_c" 1>&6
6570 else
6571 # One or both of the vars are not set, and there is no cached value.
6572 ac_x_includes=NO ac_x_libraries=NO
6573 rm -fr conftestdir
6574 if mkdir conftestdir; then
6575 cd conftestdir
6576 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6577 cat > Imakefile <<'EOF'
6578 acfindx:
6579 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6581 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6582 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6583 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6584 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6585 for ac_extension in a so sl; do
6586 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6587 test -f $ac_im_libdir/libX11.$ac_extension; then
6588 ac_im_usrlibdir=$ac_im_libdir; break
6590 done
6591 # Screen out bogus values from the imake configuration. They are
6592 # bogus both because they are the default anyway, and because
6593 # using them would break gcc on systems where it needs fixed includes.
6594 case "$ac_im_incroot" in
6595 /usr/include) ;;
6596 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
6597 esac
6598 case "$ac_im_usrlibdir" in
6599 /usr/lib | /lib) ;;
6600 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
6601 esac
6603 cd ..
6604 rm -fr conftestdir
6607 if test "$ac_x_includes" = NO; then
6608 # Guess where to find include files, by looking for this one X11 .h file.
6609 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
6611 # First, try using that file with no special directory specified.
6612 cat > conftest.$ac_ext <<EOF
6613 #line 6614 "configure"
6614 #include "confdefs.h"
6615 #include <$x_direct_test_include>
6617 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6618 { (eval echo configure:6619: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6619 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6620 if test -z "$ac_err"; then
6621 rm -rf conftest*
6622 # We can compile using X headers with no special include directory.
6623 ac_x_includes=
6624 else
6625 echo "$ac_err" >&5
6626 echo "configure: failed program was:" >&5
6627 cat conftest.$ac_ext >&5
6628 rm -rf conftest*
6629 # Look for the header file in a standard set of common directories.
6630 # Check X11 before X11Rn because it is often a symlink to the current release.
6631 for ac_dir in \
6632 /usr/X11/include \
6633 /usr/X11R6/include \
6634 /usr/X11R5/include \
6635 /usr/X11R4/include \
6637 /usr/include/X11 \
6638 /usr/include/X11R6 \
6639 /usr/include/X11R5 \
6640 /usr/include/X11R4 \
6642 /usr/local/X11/include \
6643 /usr/local/X11R6/include \
6644 /usr/local/X11R5/include \
6645 /usr/local/X11R4/include \
6647 /usr/local/include/X11 \
6648 /usr/local/include/X11R6 \
6649 /usr/local/include/X11R5 \
6650 /usr/local/include/X11R4 \
6652 /usr/X386/include \
6653 /usr/x386/include \
6654 /usr/XFree86/include/X11 \
6656 /usr/include \
6657 /usr/local/include \
6658 /usr/unsupported/include \
6659 /usr/athena/include \
6660 /usr/local/x11r5/include \
6661 /usr/lpp/Xamples/include \
6663 /usr/openwin/include \
6664 /usr/openwin/share/include \
6667 if test -r "$ac_dir/$x_direct_test_include"; then
6668 ac_x_includes=$ac_dir
6669 break
6671 done
6673 rm -f conftest*
6674 fi # $ac_x_includes = NO
6676 if test "$ac_x_libraries" = NO; then
6677 # Check for the libraries.
6679 test -z "$x_direct_test_library" && x_direct_test_library=Xt
6680 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
6682 # See if we find them without any special options.
6683 # Don't add to $LIBS permanently.
6684 ac_save_LIBS="$LIBS"
6685 LIBS="-l$x_direct_test_library $LIBS"
6686 cat > conftest.$ac_ext <<EOF
6687 #line 6688 "configure"
6688 #include "confdefs.h"
6690 int main() {
6691 ${x_direct_test_function}()
6692 ; return 0; }
6694 if { (eval echo configure:6695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6695 rm -rf conftest*
6696 LIBS="$ac_save_LIBS"
6697 # We can link X programs with no special library path.
6698 ac_x_libraries=
6699 else
6700 echo "configure: failed program was:" >&5
6701 cat conftest.$ac_ext >&5
6702 rm -rf conftest*
6703 LIBS="$ac_save_LIBS"
6704 # First see if replacing the include by lib works.
6705 # Check X11 before X11Rn because it is often a symlink to the current release.
6706 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
6707 /usr/X11/lib \
6708 /usr/X11R6/lib \
6709 /usr/X11R5/lib \
6710 /usr/X11R4/lib \
6712 /usr/lib/X11 \
6713 /usr/lib/X11R6 \
6714 /usr/lib/X11R5 \
6715 /usr/lib/X11R4 \
6717 /usr/local/X11/lib \
6718 /usr/local/X11R6/lib \
6719 /usr/local/X11R5/lib \
6720 /usr/local/X11R4/lib \
6722 /usr/local/lib/X11 \
6723 /usr/local/lib/X11R6 \
6724 /usr/local/lib/X11R5 \
6725 /usr/local/lib/X11R4 \
6727 /usr/X386/lib \
6728 /usr/x386/lib \
6729 /usr/XFree86/lib/X11 \
6731 /usr/lib \
6732 /usr/local/lib \
6733 /usr/unsupported/lib \
6734 /usr/athena/lib \
6735 /usr/local/x11r5/lib \
6736 /usr/lpp/Xamples/lib \
6737 /lib/usr/lib/X11 \
6739 /usr/openwin/lib \
6740 /usr/openwin/share/lib \
6743 for ac_extension in a so sl; do
6744 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
6745 ac_x_libraries=$ac_dir
6746 break 2
6748 done
6749 done
6751 rm -f conftest*
6752 fi # $ac_x_libraries = NO
6754 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
6755 # Didn't find X anywhere. Cache the known absence of X.
6756 ac_cv_have_x="have_x=no"
6757 else
6758 # Record where we found X for the cache.
6759 ac_cv_have_x="have_x=yes \
6760 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6764 eval "$ac_cv_have_x"
6765 fi # $with_x != no
6767 if test "$have_x" != yes; then
6768 echo "$ac_t""$have_x" 1>&6
6769 no_x=yes
6770 else
6771 # If each of the values was on the command line, it overrides each guess.
6772 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6773 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6774 # Update the cache value to reflect the command line values.
6775 ac_cv_have_x="have_x=yes \
6776 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6777 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
6780 if test "$no_x" = yes; then
6781 # Not all programs may use this symbol, but it does not hurt to define it.
6782 cat >> confdefs.h <<\EOF
6783 #define X_DISPLAY_MISSING 1
6786 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6787 else
6788 if test -n "$x_includes"; then
6789 X_CFLAGS="$X_CFLAGS -I$x_includes"
6792 # It would also be nice to do this for all -L options, not just this one.
6793 if test -n "$x_libraries"; then
6794 X_LIBS="$X_LIBS -L$x_libraries"
6795 # For Solaris; some versions of Sun CC require a space after -R and
6796 # others require no space. Words are not sufficient . . . .
6797 case "`(uname -sr) 2>/dev/null`" in
6798 "SunOS 5"*)
6799 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
6800 echo "configure:6801: checking whether -R must be followed by a space" >&5
6801 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
6802 cat > conftest.$ac_ext <<EOF
6803 #line 6804 "configure"
6804 #include "confdefs.h"
6806 int main() {
6808 ; return 0; }
6810 if { (eval echo configure:6811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6811 rm -rf conftest*
6812 ac_R_nospace=yes
6813 else
6814 echo "configure: failed program was:" >&5
6815 cat conftest.$ac_ext >&5
6816 rm -rf conftest*
6817 ac_R_nospace=no
6819 rm -f conftest*
6820 if test $ac_R_nospace = yes; then
6821 echo "$ac_t""no" 1>&6
6822 X_LIBS="$X_LIBS -R$x_libraries"
6823 else
6824 LIBS="$ac_xsave_LIBS -R $x_libraries"
6825 cat > conftest.$ac_ext <<EOF
6826 #line 6827 "configure"
6827 #include "confdefs.h"
6829 int main() {
6831 ; return 0; }
6833 if { (eval echo configure:6834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6834 rm -rf conftest*
6835 ac_R_space=yes
6836 else
6837 echo "configure: failed program was:" >&5
6838 cat conftest.$ac_ext >&5
6839 rm -rf conftest*
6840 ac_R_space=no
6842 rm -f conftest*
6843 if test $ac_R_space = yes; then
6844 echo "$ac_t""yes" 1>&6
6845 X_LIBS="$X_LIBS -R $x_libraries"
6846 else
6847 echo "$ac_t""neither works" 1>&6
6850 LIBS="$ac_xsave_LIBS"
6851 esac
6854 # Check for system-dependent libraries X programs must link with.
6855 # Do this before checking for the system-independent R6 libraries
6856 # (-lICE), since we may need -lsocket or whatever for X linking.
6858 if test "$ISC" = yes; then
6859 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6860 else
6861 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
6862 # libraries were built with DECnet support. And karl@cs.umb.edu says
6863 # the Alpha needs dnet_stub (dnet does not exist).
6864 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
6865 echo "configure:6866: checking for dnet_ntoa in -ldnet" >&5
6866 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6867 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6868 echo $ac_n "(cached) $ac_c" 1>&6
6869 else
6870 ac_save_LIBS="$LIBS"
6871 LIBS="-ldnet $LIBS"
6872 cat > conftest.$ac_ext <<EOF
6873 #line 6874 "configure"
6874 #include "confdefs.h"
6875 /* Override any gcc2 internal prototype to avoid an error. */
6876 /* We use char because int might match the return type of a gcc2
6877 builtin and then its argument prototype would still apply. */
6878 char dnet_ntoa();
6880 int main() {
6881 dnet_ntoa()
6882 ; return 0; }
6884 if { (eval echo configure:6885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6885 rm -rf conftest*
6886 eval "ac_cv_lib_$ac_lib_var=yes"
6887 else
6888 echo "configure: failed program was:" >&5
6889 cat conftest.$ac_ext >&5
6890 rm -rf conftest*
6891 eval "ac_cv_lib_$ac_lib_var=no"
6893 rm -f conftest*
6894 LIBS="$ac_save_LIBS"
6897 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6898 echo "$ac_t""yes" 1>&6
6899 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6900 else
6901 echo "$ac_t""no" 1>&6
6904 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6905 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
6906 echo "configure:6907: checking for dnet_ntoa in -ldnet_stub" >&5
6907 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6908 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6909 echo $ac_n "(cached) $ac_c" 1>&6
6910 else
6911 ac_save_LIBS="$LIBS"
6912 LIBS="-ldnet_stub $LIBS"
6913 cat > conftest.$ac_ext <<EOF
6914 #line 6915 "configure"
6915 #include "confdefs.h"
6916 /* Override any gcc2 internal prototype to avoid an error. */
6917 /* We use char because int might match the return type of a gcc2
6918 builtin and then its argument prototype would still apply. */
6919 char dnet_ntoa();
6921 int main() {
6922 dnet_ntoa()
6923 ; return 0; }
6925 if { (eval echo configure:6926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6926 rm -rf conftest*
6927 eval "ac_cv_lib_$ac_lib_var=yes"
6928 else
6929 echo "configure: failed program was:" >&5
6930 cat conftest.$ac_ext >&5
6931 rm -rf conftest*
6932 eval "ac_cv_lib_$ac_lib_var=no"
6934 rm -f conftest*
6935 LIBS="$ac_save_LIBS"
6938 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6939 echo "$ac_t""yes" 1>&6
6940 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6941 else
6942 echo "$ac_t""no" 1>&6
6947 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6948 # to get the SysV transport functions.
6949 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
6950 # needs -lnsl.
6951 # The nsl library prevents programs from opening the X display
6952 # on Irix 5.2, according to dickey@clark.net.
6953 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
6954 echo "configure:6955: checking for gethostbyname" >&5
6955 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
6956 echo $ac_n "(cached) $ac_c" 1>&6
6957 else
6958 cat > conftest.$ac_ext <<EOF
6959 #line 6960 "configure"
6960 #include "confdefs.h"
6961 /* System header to define __stub macros and hopefully few prototypes,
6962 which can conflict with char gethostbyname(); below. */
6963 #include <assert.h>
6964 /* Override any gcc2 internal prototype to avoid an error. */
6965 /* We use char because int might match the return type of a gcc2
6966 builtin and then its argument prototype would still apply. */
6967 char gethostbyname();
6969 int main() {
6971 /* The GNU C library defines this for functions which it implements
6972 to always fail with ENOSYS. Some functions are actually named
6973 something starting with __ and the normal name is an alias. */
6974 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6975 choke me
6976 #else
6977 gethostbyname();
6978 #endif
6980 ; return 0; }
6982 if { (eval echo configure:6983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6983 rm -rf conftest*
6984 eval "ac_cv_func_gethostbyname=yes"
6985 else
6986 echo "configure: failed program was:" >&5
6987 cat conftest.$ac_ext >&5
6988 rm -rf conftest*
6989 eval "ac_cv_func_gethostbyname=no"
6991 rm -f conftest*
6994 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
6995 echo "$ac_t""yes" 1>&6
6997 else
6998 echo "$ac_t""no" 1>&6
7001 if test $ac_cv_func_gethostbyname = no; then
7002 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
7003 echo "configure:7004: checking for gethostbyname in -lnsl" >&5
7004 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
7005 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7006 echo $ac_n "(cached) $ac_c" 1>&6
7007 else
7008 ac_save_LIBS="$LIBS"
7009 LIBS="-lnsl $LIBS"
7010 cat > conftest.$ac_ext <<EOF
7011 #line 7012 "configure"
7012 #include "confdefs.h"
7013 /* Override any gcc2 internal prototype to avoid an error. */
7014 /* We use char because int might match the return type of a gcc2
7015 builtin and then its argument prototype would still apply. */
7016 char gethostbyname();
7018 int main() {
7019 gethostbyname()
7020 ; return 0; }
7022 if { (eval echo configure:7023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7023 rm -rf conftest*
7024 eval "ac_cv_lib_$ac_lib_var=yes"
7025 else
7026 echo "configure: failed program was:" >&5
7027 cat conftest.$ac_ext >&5
7028 rm -rf conftest*
7029 eval "ac_cv_lib_$ac_lib_var=no"
7031 rm -f conftest*
7032 LIBS="$ac_save_LIBS"
7035 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7036 echo "$ac_t""yes" 1>&6
7037 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7038 else
7039 echo "$ac_t""no" 1>&6
7044 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7045 # socket/setsockopt and other routines are undefined under SCO ODT
7046 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7047 # on later versions), says simon@lia.di.epfl.ch: it contains
7048 # gethostby* variants that don't use the nameserver (or something).
7049 # -lsocket must be given before -lnsl if both are needed.
7050 # We assume that if connect needs -lnsl, so does gethostbyname.
7051 echo $ac_n "checking for connect""... $ac_c" 1>&6
7052 echo "configure:7053: checking for connect" >&5
7053 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
7054 echo $ac_n "(cached) $ac_c" 1>&6
7055 else
7056 cat > conftest.$ac_ext <<EOF
7057 #line 7058 "configure"
7058 #include "confdefs.h"
7059 /* System header to define __stub macros and hopefully few prototypes,
7060 which can conflict with char connect(); below. */
7061 #include <assert.h>
7062 /* Override any gcc2 internal prototype to avoid an error. */
7063 /* We use char because int might match the return type of a gcc2
7064 builtin and then its argument prototype would still apply. */
7065 char connect();
7067 int main() {
7069 /* The GNU C library defines this for functions which it implements
7070 to always fail with ENOSYS. Some functions are actually named
7071 something starting with __ and the normal name is an alias. */
7072 #if defined (__stub_connect) || defined (__stub___connect)
7073 choke me
7074 #else
7075 connect();
7076 #endif
7078 ; return 0; }
7080 if { (eval echo configure:7081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7081 rm -rf conftest*
7082 eval "ac_cv_func_connect=yes"
7083 else
7084 echo "configure: failed program was:" >&5
7085 cat conftest.$ac_ext >&5
7086 rm -rf conftest*
7087 eval "ac_cv_func_connect=no"
7089 rm -f conftest*
7092 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
7093 echo "$ac_t""yes" 1>&6
7095 else
7096 echo "$ac_t""no" 1>&6
7099 if test $ac_cv_func_connect = no; then
7100 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
7101 echo "configure:7102: checking for connect in -lsocket" >&5
7102 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
7103 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7104 echo $ac_n "(cached) $ac_c" 1>&6
7105 else
7106 ac_save_LIBS="$LIBS"
7107 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7108 cat > conftest.$ac_ext <<EOF
7109 #line 7110 "configure"
7110 #include "confdefs.h"
7111 /* Override any gcc2 internal prototype to avoid an error. */
7112 /* We use char because int might match the return type of a gcc2
7113 builtin and then its argument prototype would still apply. */
7114 char connect();
7116 int main() {
7117 connect()
7118 ; return 0; }
7120 if { (eval echo configure:7121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7121 rm -rf conftest*
7122 eval "ac_cv_lib_$ac_lib_var=yes"
7123 else
7124 echo "configure: failed program was:" >&5
7125 cat conftest.$ac_ext >&5
7126 rm -rf conftest*
7127 eval "ac_cv_lib_$ac_lib_var=no"
7129 rm -f conftest*
7130 LIBS="$ac_save_LIBS"
7133 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7134 echo "$ac_t""yes" 1>&6
7135 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7136 else
7137 echo "$ac_t""no" 1>&6
7142 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
7143 echo $ac_n "checking for remove""... $ac_c" 1>&6
7144 echo "configure:7145: checking for remove" >&5
7145 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
7146 echo $ac_n "(cached) $ac_c" 1>&6
7147 else
7148 cat > conftest.$ac_ext <<EOF
7149 #line 7150 "configure"
7150 #include "confdefs.h"
7151 /* System header to define __stub macros and hopefully few prototypes,
7152 which can conflict with char remove(); below. */
7153 #include <assert.h>
7154 /* Override any gcc2 internal prototype to avoid an error. */
7155 /* We use char because int might match the return type of a gcc2
7156 builtin and then its argument prototype would still apply. */
7157 char remove();
7159 int main() {
7161 /* The GNU C library defines this for functions which it implements
7162 to always fail with ENOSYS. Some functions are actually named
7163 something starting with __ and the normal name is an alias. */
7164 #if defined (__stub_remove) || defined (__stub___remove)
7165 choke me
7166 #else
7167 remove();
7168 #endif
7170 ; return 0; }
7172 if { (eval echo configure:7173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7173 rm -rf conftest*
7174 eval "ac_cv_func_remove=yes"
7175 else
7176 echo "configure: failed program was:" >&5
7177 cat conftest.$ac_ext >&5
7178 rm -rf conftest*
7179 eval "ac_cv_func_remove=no"
7181 rm -f conftest*
7184 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
7185 echo "$ac_t""yes" 1>&6
7187 else
7188 echo "$ac_t""no" 1>&6
7191 if test $ac_cv_func_remove = no; then
7192 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
7193 echo "configure:7194: checking for remove in -lposix" >&5
7194 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
7195 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7196 echo $ac_n "(cached) $ac_c" 1>&6
7197 else
7198 ac_save_LIBS="$LIBS"
7199 LIBS="-lposix $LIBS"
7200 cat > conftest.$ac_ext <<EOF
7201 #line 7202 "configure"
7202 #include "confdefs.h"
7203 /* Override any gcc2 internal prototype to avoid an error. */
7204 /* We use char because int might match the return type of a gcc2
7205 builtin and then its argument prototype would still apply. */
7206 char remove();
7208 int main() {
7209 remove()
7210 ; return 0; }
7212 if { (eval echo configure:7213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7213 rm -rf conftest*
7214 eval "ac_cv_lib_$ac_lib_var=yes"
7215 else
7216 echo "configure: failed program was:" >&5
7217 cat conftest.$ac_ext >&5
7218 rm -rf conftest*
7219 eval "ac_cv_lib_$ac_lib_var=no"
7221 rm -f conftest*
7222 LIBS="$ac_save_LIBS"
7225 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7226 echo "$ac_t""yes" 1>&6
7227 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7228 else
7229 echo "$ac_t""no" 1>&6
7234 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7235 echo $ac_n "checking for shmat""... $ac_c" 1>&6
7236 echo "configure:7237: checking for shmat" >&5
7237 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
7238 echo $ac_n "(cached) $ac_c" 1>&6
7239 else
7240 cat > conftest.$ac_ext <<EOF
7241 #line 7242 "configure"
7242 #include "confdefs.h"
7243 /* System header to define __stub macros and hopefully few prototypes,
7244 which can conflict with char shmat(); below. */
7245 #include <assert.h>
7246 /* Override any gcc2 internal prototype to avoid an error. */
7247 /* We use char because int might match the return type of a gcc2
7248 builtin and then its argument prototype would still apply. */
7249 char shmat();
7251 int main() {
7253 /* The GNU C library defines this for functions which it implements
7254 to always fail with ENOSYS. Some functions are actually named
7255 something starting with __ and the normal name is an alias. */
7256 #if defined (__stub_shmat) || defined (__stub___shmat)
7257 choke me
7258 #else
7259 shmat();
7260 #endif
7262 ; return 0; }
7264 if { (eval echo configure:7265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7265 rm -rf conftest*
7266 eval "ac_cv_func_shmat=yes"
7267 else
7268 echo "configure: failed program was:" >&5
7269 cat conftest.$ac_ext >&5
7270 rm -rf conftest*
7271 eval "ac_cv_func_shmat=no"
7273 rm -f conftest*
7276 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
7277 echo "$ac_t""yes" 1>&6
7279 else
7280 echo "$ac_t""no" 1>&6
7283 if test $ac_cv_func_shmat = no; then
7284 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
7285 echo "configure:7286: checking for shmat in -lipc" >&5
7286 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
7287 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7288 echo $ac_n "(cached) $ac_c" 1>&6
7289 else
7290 ac_save_LIBS="$LIBS"
7291 LIBS="-lipc $LIBS"
7292 cat > conftest.$ac_ext <<EOF
7293 #line 7294 "configure"
7294 #include "confdefs.h"
7295 /* Override any gcc2 internal prototype to avoid an error. */
7296 /* We use char because int might match the return type of a gcc2
7297 builtin and then its argument prototype would still apply. */
7298 char shmat();
7300 int main() {
7301 shmat()
7302 ; return 0; }
7304 if { (eval echo configure:7305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7305 rm -rf conftest*
7306 eval "ac_cv_lib_$ac_lib_var=yes"
7307 else
7308 echo "configure: failed program was:" >&5
7309 cat conftest.$ac_ext >&5
7310 rm -rf conftest*
7311 eval "ac_cv_lib_$ac_lib_var=no"
7313 rm -f conftest*
7314 LIBS="$ac_save_LIBS"
7317 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7318 echo "$ac_t""yes" 1>&6
7319 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7320 else
7321 echo "$ac_t""no" 1>&6
7327 # Check for libraries that X11R6 Xt/Xaw programs need.
7328 ac_save_LDFLAGS="$LDFLAGS"
7329 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7330 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7331 # check for ICE first), but we must link in the order -lSM -lICE or
7332 # we get undefined symbols. So assume we have SM if we have ICE.
7333 # These have to be linked with before -lX11, unlike the other
7334 # libraries we check for below, so use a different variable.
7335 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
7336 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
7337 echo "configure:7338: checking for IceConnectionNumber in -lICE" >&5
7338 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
7339 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7340 echo $ac_n "(cached) $ac_c" 1>&6
7341 else
7342 ac_save_LIBS="$LIBS"
7343 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7344 cat > conftest.$ac_ext <<EOF
7345 #line 7346 "configure"
7346 #include "confdefs.h"
7347 /* Override any gcc2 internal prototype to avoid an error. */
7348 /* We use char because int might match the return type of a gcc2
7349 builtin and then its argument prototype would still apply. */
7350 char IceConnectionNumber();
7352 int main() {
7353 IceConnectionNumber()
7354 ; return 0; }
7356 if { (eval echo configure:7357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7357 rm -rf conftest*
7358 eval "ac_cv_lib_$ac_lib_var=yes"
7359 else
7360 echo "configure: failed program was:" >&5
7361 cat conftest.$ac_ext >&5
7362 rm -rf conftest*
7363 eval "ac_cv_lib_$ac_lib_var=no"
7365 rm -f conftest*
7366 LIBS="$ac_save_LIBS"
7369 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7370 echo "$ac_t""yes" 1>&6
7371 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7372 else
7373 echo "$ac_t""no" 1>&6
7376 LDFLAGS="$ac_save_LDFLAGS"
7381 # Check whether --enable-java-awt or --disable-java-awt was given.
7382 if test "${enable_java_awt+set}" = set; then
7383 enableval="$enable_java_awt"
7388 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
7389 use_xlib_awt=""
7390 use_gtk_awt=""
7392 for peer in $peerlibs ; do
7393 case $peer in
7394 xlib)
7395 if test "$no_x" = yes; then
7396 echo "*** xlib peers requested but no X library available" 1>&2
7397 exit 1
7398 else
7399 use_xlib_awt="yes"
7402 gtk)
7403 # Nothing, yet...
7406 use_xlib_awt=
7407 use_gtk_awt=
7408 break
7411 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
7412 exit 1
7413 esac
7414 done
7418 if test "$use_xlib_awt" = yes; then
7419 XLIB_AWT_TRUE=
7420 XLIB_AWT_FALSE='#'
7421 else
7422 XLIB_AWT_TRUE='#'
7423 XLIB_AWT_FALSE=
7427 if test "$use_gtk_awt" = yes; then
7428 GTK_AWT_TRUE=
7429 GTK_AWT_FALSE='#'
7430 else
7431 GTK_AWT_TRUE='#'
7432 GTK_AWT_FALSE=
7436 here=`${PWDCMD-pwd}`
7439 # We get this from the environment.
7442 trap '' 1 2 15
7443 cat > confcache <<\EOF
7444 # This file is a shell script that caches the results of configure
7445 # tests run on this system so they can be shared between configure
7446 # scripts and configure runs. It is not useful on other systems.
7447 # If it contains results you don't want to keep, you may remove or edit it.
7449 # By default, configure uses ./config.cache as the cache file,
7450 # creating it if it does not exist already. You can give configure
7451 # the --cache-file=FILE option to use a different cache file; that is
7452 # what configure does when it calls configure scripts in
7453 # subdirectories, so they share the cache.
7454 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7455 # config.status only pays attention to the cache file if you give it the
7456 # --recheck option to rerun configure.
7459 # The following way of writing the cache mishandles newlines in values,
7460 # but we know of no workaround that is simple, portable, and efficient.
7461 # So, don't put newlines in cache variables' values.
7462 # Ultrix sh set writes to stderr and can't be redirected directly,
7463 # and sets the high bit in the cache file unless we assign to the vars.
7464 (set) 2>&1 |
7465 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7466 *ac_space=\ *)
7467 # `set' does not quote correctly, so add quotes (double-quote substitution
7468 # turns \\\\ into \\, and sed turns \\ into \).
7469 sed -n \
7470 -e "s/'/'\\\\''/g" \
7471 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7474 # `set' quotes correctly as required by POSIX, so do not add quotes.
7475 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7477 esac >> confcache
7478 if cmp -s $cache_file confcache; then
7480 else
7481 if test -w $cache_file; then
7482 echo "updating cache $cache_file"
7483 cat confcache > $cache_file
7484 else
7485 echo "not updating unwritable cache $cache_file"
7488 rm -f confcache
7490 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7492 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7493 # Let make expand exec_prefix.
7494 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7496 # Any assignment to VPATH causes Sun make to only execute
7497 # the first set of double-colon rules, so remove it if not needed.
7498 # If there is a colon in the path, we need to keep it.
7499 if test "x$srcdir" = x.; then
7500 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7503 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7505 DEFS=-DHAVE_CONFIG_H
7507 # Without the "./", some shells look in PATH for config.status.
7508 : ${CONFIG_STATUS=./config.status}
7510 echo creating $CONFIG_STATUS
7511 rm -f $CONFIG_STATUS
7512 cat > $CONFIG_STATUS <<EOF
7513 #! /bin/sh
7514 # Generated automatically by configure.
7515 # Run this file to recreate the current configuration.
7516 # This directory was configured as follows,
7517 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7519 # $0 $ac_configure_args
7521 # Compiler output produced by configure, useful for debugging
7522 # configure, is in ./config.log if it exists.
7524 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7525 for ac_option
7527 case "\$ac_option" in
7528 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7529 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7530 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7531 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7532 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7533 exit 0 ;;
7534 -help | --help | --hel | --he | --h)
7535 echo "\$ac_cs_usage"; exit 0 ;;
7536 *) echo "\$ac_cs_usage"; exit 1 ;;
7537 esac
7538 done
7540 ac_given_srcdir=$srcdir
7541 ac_given_INSTALL="$INSTALL"
7543 trap 'rm -fr `echo "Makefile libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile include/config.h gcj/libgcj-config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7545 cat >> $CONFIG_STATUS <<EOF
7547 # Protect against being on the right side of a sed subst in config.status.
7548 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7549 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7550 $ac_vpsub
7551 $extrasub
7552 s%@SHELL@%$SHELL%g
7553 s%@CFLAGS@%$CFLAGS%g
7554 s%@CPPFLAGS@%$CPPFLAGS%g
7555 s%@CXXFLAGS@%$CXXFLAGS%g
7556 s%@FFLAGS@%$FFLAGS%g
7557 s%@DEFS@%$DEFS%g
7558 s%@LDFLAGS@%$LDFLAGS%g
7559 s%@LIBS@%$LIBS%g
7560 s%@exec_prefix@%$exec_prefix%g
7561 s%@prefix@%$prefix%g
7562 s%@program_transform_name@%$program_transform_name%g
7563 s%@bindir@%$bindir%g
7564 s%@sbindir@%$sbindir%g
7565 s%@libexecdir@%$libexecdir%g
7566 s%@datadir@%$datadir%g
7567 s%@sysconfdir@%$sysconfdir%g
7568 s%@sharedstatedir@%$sharedstatedir%g
7569 s%@localstatedir@%$localstatedir%g
7570 s%@libdir@%$libdir%g
7571 s%@includedir@%$includedir%g
7572 s%@oldincludedir@%$oldincludedir%g
7573 s%@infodir@%$infodir%g
7574 s%@mandir@%$mandir%g
7575 s%@LN_S@%$LN_S%g
7576 s%@libgcj_basedir@%$libgcj_basedir%g
7577 s%@mkinstalldirs@%$mkinstalldirs%g
7578 s%@host@%$host%g
7579 s%@host_alias@%$host_alias%g
7580 s%@host_cpu@%$host_cpu%g
7581 s%@host_vendor@%$host_vendor%g
7582 s%@host_os@%$host_os%g
7583 s%@target@%$target%g
7584 s%@target_alias@%$target_alias%g
7585 s%@target_cpu@%$target_cpu%g
7586 s%@target_vendor@%$target_vendor%g
7587 s%@target_os@%$target_os%g
7588 s%@build@%$build%g
7589 s%@build_alias@%$build_alias%g
7590 s%@build_cpu@%$build_cpu%g
7591 s%@build_vendor@%$build_vendor%g
7592 s%@build_os@%$build_os%g
7593 s%@CC@%$CC%g
7594 s%@glibjava_CXX@%$glibjava_CXX%g
7595 s%@CXX@%$CXX%g
7596 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7597 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7598 s%@INSTALL_DATA@%$INSTALL_DATA%g
7599 s%@PACKAGE@%$PACKAGE%g
7600 s%@VERSION@%$VERSION%g
7601 s%@ACLOCAL@%$ACLOCAL%g
7602 s%@AUTOCONF@%$AUTOCONF%g
7603 s%@AUTOMAKE@%$AUTOMAKE%g
7604 s%@AUTOHEADER@%$AUTOHEADER%g
7605 s%@MAKEINFO@%$MAKEINFO%g
7606 s%@SET_MAKE@%$SET_MAKE%g
7607 s%@AS@%$AS%g
7608 s%@AR@%$AR%g
7609 s%@RANLIB@%$RANLIB%g
7610 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7611 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7612 s%@MAINT@%$MAINT%g
7613 s%@EXEEXT@%$EXEEXT%g
7614 s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
7615 s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
7616 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
7617 s%@INCLTDL@%$INCLTDL%g
7618 s%@LIBLTDL@%$LIBLTDL%g
7619 s%@DIRLTDL@%$DIRLTDL%g
7620 s%@OBJEXT@%$OBJEXT%g
7621 s%@STRIP@%$STRIP%g
7622 s%@LIBTOOL@%$LIBTOOL%g
7623 s%@CXXCPP@%$CXXCPP%g
7624 s%@subdirs@%$subdirs%g
7625 s%@COMPPATH@%$COMPPATH%g
7626 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
7627 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
7628 s%@LIBGCJDEBUG@%$LIBGCJDEBUG%g
7629 s%@INTERPRETER@%$INTERPRETER%g
7630 s%@LIBFFI@%$LIBFFI%g
7631 s%@LIBFFIINCS@%$LIBFFIINCS%g
7632 s%@PLATFORMOBJS@%$PLATFORMOBJS%g
7633 s%@CPP@%$CPP%g
7634 s%@SYSTEMSPEC@%$SYSTEMSPEC%g
7635 s%@LIBGCJTESTSPEC@%$LIBGCJTESTSPEC%g
7636 s%@ZLIBSPEC@%$ZLIBSPEC%g
7637 s%@ZLIBTESTSPEC@%$ZLIBTESTSPEC%g
7638 s%@GCLIBS@%$GCLIBS%g
7639 s%@GCINCS@%$GCINCS%g
7640 s%@GCDEPS@%$GCDEPS%g
7641 s%@GCOBJS@%$GCOBJS%g
7642 s%@GCSPEC@%$GCSPEC%g
7643 s%@JC1GCSPEC@%$JC1GCSPEC%g
7644 s%@GCTESTSPEC@%$GCTESTSPEC%g
7645 s%@THREADLIBS@%$THREADLIBS%g
7646 s%@THREADINCS@%$THREADINCS%g
7647 s%@THREADDEPS@%$THREADDEPS%g
7648 s%@THREADOBJS@%$THREADOBJS%g
7649 s%@THREADSPEC@%$THREADSPEC%g
7650 s%@THREADLDFLAGS@%$THREADLDFLAGS%g
7651 s%@HASH_SYNC_SPEC@%$HASH_SYNC_SPEC%g
7652 s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
7653 s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
7654 s%@tool_include_dir@%$tool_include_dir%g
7655 s%@gcc_version@%$gcc_version%g
7656 s%@LIBICONV@%$LIBICONV%g
7657 s%@GCJ@%$GCJ%g
7658 s%@GCJFLAGS@%$GCJFLAGS%g
7659 s%@ZLIBS@%$ZLIBS%g
7660 s%@SYS_ZLIBS@%$SYS_ZLIBS%g
7661 s%@ZINCS@%$ZINCS%g
7662 s%@DIVIDESPEC@%$DIVIDESPEC%g
7663 s%@CHECKREFSPEC@%$CHECKREFSPEC%g
7664 s%@EXCEPTIONSPEC@%$EXCEPTIONSPEC%g
7665 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
7666 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
7667 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
7668 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
7669 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
7670 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
7671 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
7672 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
7673 s%@NEEDS_DATA_START_TRUE@%$NEEDS_DATA_START_TRUE%g
7674 s%@NEEDS_DATA_START_FALSE@%$NEEDS_DATA_START_FALSE%g
7675 s%@GCC_UNWIND_INCLUDE@%$GCC_UNWIND_INCLUDE%g
7676 s%@GCJVERSION@%$GCJVERSION%g
7677 s%@ALLOCA@%$ALLOCA%g
7678 s%@PERL@%$PERL%g
7679 s%@SYSDEP_SOURCES@%$SYSDEP_SOURCES%g
7680 s%@X_CFLAGS@%$X_CFLAGS%g
7681 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
7682 s%@X_LIBS@%$X_LIBS%g
7683 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
7684 s%@XLIB_AWT_TRUE@%$XLIB_AWT_TRUE%g
7685 s%@XLIB_AWT_FALSE@%$XLIB_AWT_FALSE%g
7686 s%@GTK_AWT_TRUE@%$GTK_AWT_TRUE%g
7687 s%@GTK_AWT_FALSE@%$GTK_AWT_FALSE%g
7688 s%@here@%$here%g
7690 CEOF
7693 cat >> $CONFIG_STATUS <<\EOF
7695 # Split the substitutions into bite-sized pieces for seds with
7696 # small command number limits, like on Digital OSF/1 and HP-UX.
7697 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7698 ac_file=1 # Number of current file.
7699 ac_beg=1 # First line for current file.
7700 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7701 ac_more_lines=:
7702 ac_sed_cmds=""
7703 while $ac_more_lines; do
7704 if test $ac_beg -gt 1; then
7705 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7706 else
7707 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7709 if test ! -s conftest.s$ac_file; then
7710 ac_more_lines=false
7711 rm -f conftest.s$ac_file
7712 else
7713 if test -z "$ac_sed_cmds"; then
7714 ac_sed_cmds="sed -f conftest.s$ac_file"
7715 else
7716 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7718 ac_file=`expr $ac_file + 1`
7719 ac_beg=$ac_end
7720 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7722 done
7723 if test -z "$ac_sed_cmds"; then
7724 ac_sed_cmds=cat
7728 cat >> $CONFIG_STATUS <<EOF
7730 CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"}
7732 cat >> $CONFIG_STATUS <<\EOF
7733 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7734 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7735 case "$ac_file" in
7736 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7737 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7738 *) ac_file_in="${ac_file}.in" ;;
7739 esac
7741 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7743 # Remove last slash and all that follows it. Not all systems have dirname.
7744 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7745 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7746 # The file is in a subdirectory.
7747 test ! -d "$ac_dir" && mkdir "$ac_dir"
7748 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7749 # A "../" for each directory in $ac_dir_suffix.
7750 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7751 else
7752 ac_dir_suffix= ac_dots=
7755 case "$ac_given_srcdir" in
7756 .) srcdir=.
7757 if test -z "$ac_dots"; then top_srcdir=.
7758 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7759 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7760 *) # Relative path.
7761 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7762 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7763 esac
7765 case "$ac_given_INSTALL" in
7766 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7767 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7768 esac
7770 echo creating "$ac_file"
7771 rm -f "$ac_file"
7772 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7773 case "$ac_file" in
7774 *Makefile*) ac_comsub="1i\\
7775 # $configure_input" ;;
7776 *) ac_comsub= ;;
7777 esac
7779 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7780 sed -e "$ac_comsub
7781 s%@configure_input@%$configure_input%g
7782 s%@srcdir@%$srcdir%g
7783 s%@top_srcdir@%$top_srcdir%g
7784 s%@INSTALL@%$INSTALL%g
7785 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7786 fi; done
7787 rm -f conftest.s*
7789 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7790 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7792 # ac_d sets the value in "#define NAME VALUE" lines.
7793 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7794 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7795 ac_dC='\3'
7796 ac_dD='%g'
7797 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7798 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7799 ac_uB='\([ ]\)%\1#\2define\3'
7800 ac_uC=' '
7801 ac_uD='\4%g'
7802 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7803 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7804 ac_eB='$%\1#\2define\3'
7805 ac_eC=' '
7806 ac_eD='%g'
7808 if test "${CONFIG_HEADERS+set}" != set; then
7810 cat >> $CONFIG_STATUS <<EOF
7811 CONFIG_HEADERS="include/config.h gcj/libgcj-config.h"
7813 cat >> $CONFIG_STATUS <<\EOF
7815 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7816 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7817 case "$ac_file" in
7818 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7819 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7820 *) ac_file_in="${ac_file}.in" ;;
7821 esac
7823 echo creating $ac_file
7825 rm -f conftest.frag conftest.in conftest.out
7826 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7827 cat $ac_file_inputs > conftest.in
7831 # Transform confdefs.h into a sed script conftest.vals that substitutes
7832 # the proper values into config.h.in to produce config.h. And first:
7833 # Protect against being on the right side of a sed subst in config.status.
7834 # Protect against being in an unquoted here document in config.status.
7835 rm -f conftest.vals
7836 cat > conftest.hdr <<\EOF
7837 s/[\\&%]/\\&/g
7838 s%[\\$`]%\\&%g
7839 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7840 s%ac_d%ac_u%gp
7841 s%ac_u%ac_e%gp
7843 sed -n -f conftest.hdr confdefs.h > conftest.vals
7844 rm -f conftest.hdr
7846 # This sed command replaces #undef with comments. This is necessary, for
7847 # example, in the case of _POSIX_SOURCE, which is predefined and required
7848 # on some systems where configure will not decide to define it.
7849 cat >> conftest.vals <<\EOF
7850 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7853 # Break up conftest.vals because some shells have a limit on
7854 # the size of here documents, and old seds have small limits too.
7856 rm -f conftest.tail
7857 while :
7859 ac_lines=`grep -c . conftest.vals`
7860 # grep -c gives empty output for an empty file on some AIX systems.
7861 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7862 # Write a limited-size here document to conftest.frag.
7863 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7864 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7865 echo 'CEOF
7866 sed -f conftest.frag conftest.in > conftest.out
7867 rm -f conftest.in
7868 mv conftest.out conftest.in
7869 ' >> $CONFIG_STATUS
7870 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7871 rm -f conftest.vals
7872 mv conftest.tail conftest.vals
7873 done
7874 rm -f conftest.vals
7876 cat >> $CONFIG_STATUS <<\EOF
7877 rm -f conftest.frag conftest.h
7878 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7879 cat conftest.in >> conftest.h
7880 rm -f conftest.in
7881 if cmp -s $ac_file conftest.h 2>/dev/null; then
7882 echo "$ac_file is unchanged"
7883 rm -f conftest.h
7884 else
7885 # Remove last slash and all that follows it. Not all systems have dirname.
7886 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7887 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7888 # The file is in a subdirectory.
7889 test ! -d "$ac_dir" && mkdir "$ac_dir"
7891 rm -f $ac_file
7892 mv conftest.h $ac_file
7894 fi; done
7898 cat >> $CONFIG_STATUS <<EOF
7899 ac_sources="include/$PLATFORMH java/io/natFile${FILE-${PLATFORM}}.cc java/io/natFileDescriptor${FILE-${PLATFORM}}.cc java/lang/${PLATFORM}Process.java java/lang/nat${PLATFORM}Process.cc include/$GCHDR include/$THREADH sysdep/$sysdeps_dir/locks.h $SIGNAL_HANDLER"
7900 ac_dests="include/platform.h java/io/natFile.cc java/io/natFileDescriptor.cc java/lang/ConcreteProcess.java java/lang/natConcreteProcess.cc include/java-gc.h include/java-threads.h sysdep/locks.h include/java-signal.h"
7903 cat >> $CONFIG_STATUS <<\EOF
7904 srcdir=$ac_given_srcdir
7905 while test -n "$ac_sources"; do
7906 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7907 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7909 echo "linking $srcdir/$ac_source to $ac_dest"
7911 if test ! -r $srcdir/$ac_source; then
7912 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
7914 rm -f $ac_dest
7916 # Make relative symlinks.
7917 # Remove last slash and all that follows it. Not all systems have dirname.
7918 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
7919 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
7920 # The dest file is in a subdirectory.
7921 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
7922 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
7923 # A "../" for each directory in $ac_dest_dir_suffix.
7924 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
7925 else
7926 ac_dest_dir_suffix= ac_dots=
7929 case "$srcdir" in
7930 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
7931 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
7932 esac
7934 # Make a symlink if possible; otherwise try a hard link.
7935 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
7936 ln $srcdir/$ac_source $ac_dest; then :
7937 else
7938 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
7940 done
7942 cat >> $CONFIG_STATUS <<EOF
7944 srcdir=${srcdir}
7945 host=${host}
7946 target=${target}
7947 with_multisubdir=${with_multisubdir}
7948 ac_configure_args="${multilib_arg} ${ac_configure_args}"
7949 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
7950 libgcj_basedir=${libgcj_basedir}
7951 CC="${CC}"
7952 CXX="${CXX}"
7955 cat >> $CONFIG_STATUS <<\EOF
7956 am_indx=1
7957 for am_file in include/config.h gcj/libgcj-config.h; do
7958 case " $CONFIG_HEADERS " in
7959 *" $am_file "*)
7960 echo timestamp > `echo $am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
7962 esac
7963 am_indx=`expr "$am_indx" + 1`
7964 done
7965 # Only add multilib support code if we just rebuilt top-level Makefile.
7966 case " $CONFIG_FILES " in
7967 *" Makefile "*)
7968 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
7969 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
7971 esac
7973 # Make subdirectories and `.d' files. Look in both srcdir and
7974 # builddir for the .java files.
7975 h=`${PWDCMD-pwd}`
7976 : > deps.mk
7977 ( (cd $srcdir && find . \( -name '*.java' -o -name '*.cc' \) -print) ;
7978 find . \( -name '*.java' -o -name '*.cc' \) -print) | \
7979 fgrep -v testsuite | \
7980 sed -e 's/\.java/.d/'\;'s/\.cc/.d/' | \
7981 while read f; do
7982 echo "include $f" >> deps.mk
7983 test -f $f || {
7985 d=`echo $f | sed -e 's,/[^/]*$,,'`
7987 if test ! -d $d; then
7988 $libgcj_basedir/../mkinstalldirs $d
7990 echo > $f
7992 done
7994 exit 0
7996 chmod +x $CONFIG_STATUS
7997 rm -fr confdefs* $ac_clean_files
7998 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
8000 if test "$no_recursion" != yes; then
8002 # Remove --cache-file and --srcdir arguments so they do not pile up.
8003 ac_sub_configure_args=
8004 ac_prev=
8005 for ac_arg in $ac_configure_args; do
8006 if test -n "$ac_prev"; then
8007 ac_prev=
8008 continue
8010 case "$ac_arg" in
8011 -cache-file | --cache-file | --cache-fil | --cache-fi \
8012 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8013 ac_prev=cache_file ;;
8014 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8015 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
8017 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8018 ac_prev=srcdir ;;
8019 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8021 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
8022 esac
8023 done
8025 for ac_config_dir in $DIRLTDL; do
8027 # Do not complain, so a configure script can configure whichever
8028 # parts of a large source tree are present.
8029 if test ! -d $srcdir/$ac_config_dir; then
8030 continue
8033 echo configuring in $ac_config_dir
8035 case "$srcdir" in
8036 .) ;;
8038 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
8039 else
8040 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
8043 esac
8045 ac_popdir=`pwd`
8046 cd $ac_config_dir
8048 # A "../" for each directory in /$ac_config_dir.
8049 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
8051 case "$srcdir" in
8052 .) # No --srcdir option. We are building in place.
8053 ac_sub_srcdir=$srcdir ;;
8054 /*) # Absolute path.
8055 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
8056 *) # Relative path.
8057 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
8058 esac
8060 # Check for guested configure; otherwise get Cygnus style configure.
8061 if test -f $ac_sub_srcdir/configure; then
8062 ac_sub_configure=$ac_sub_srcdir/configure
8063 elif test -f $ac_sub_srcdir/configure.in; then
8064 ac_sub_configure=$ac_configure
8065 else
8066 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
8067 ac_sub_configure=
8070 # The recursion is here.
8071 if test -n "$ac_sub_configure"; then
8073 # Make the cache file name correct relative to the subdirectory.
8074 case "$cache_file" in
8075 /*) ac_sub_cache_file=$cache_file ;;
8076 *) # Relative path.
8077 ac_sub_cache_file="$ac_dots$cache_file" ;;
8078 esac
8079 case "$ac_given_INSTALL" in
8080 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8081 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8082 esac
8084 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
8085 # The eval makes quoting arguments work.
8086 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
8087 then :
8088 else
8089 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
8093 cd $ac_popdir
8094 done